diff options
author | Wuzzy <wuzzy2@mail.ru> | 2021-07-15 19:19:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 21:19:59 +0200 |
commit | f4d8cc0f0bf33a998aa0d6d95de4b34f69fb31db (patch) | |
tree | bff947ef11780c27de4304b7a05be1de71be3d89 /games/devtest/mods/testnodes | |
parent | 68143ed8eca81857d3d28c2c4059411d72a78e8e (diff) | |
download | minetest-f4d8cc0f0bf33a998aa0d6d95de4b34f69fb31db.tar.gz minetest-f4d8cc0f0bf33a998aa0d6d95de4b34f69fb31db.tar.bz2 minetest-f4d8cc0f0bf33a998aa0d6d95de4b34f69fb31db.zip |
Add wallmounted support for plantlike and plantlike_rooted nodes (#11379)
Diffstat (limited to 'games/devtest/mods/testnodes')
-rw-r--r-- | games/devtest/mods/testnodes/drawtypes.lua | 30 | ||||
-rw-r--r-- | games/devtest/mods/testnodes/textures/testnodes_plantlike_rooted_base_side_wallmounted.png | bin | 0 -> 224 bytes | |||
-rw-r--r-- | games/devtest/mods/testnodes/textures/testnodes_plantlike_rooted_wallmounted.png | bin | 0 -> 268 bytes | |||
-rw-r--r-- | games/devtest/mods/testnodes/textures/testnodes_plantlike_wallmounted.png | bin | 0 -> 268 bytes |
4 files changed, 30 insertions, 0 deletions
diff --git a/games/devtest/mods/testnodes/drawtypes.lua b/games/devtest/mods/testnodes/drawtypes.lua index 2bc7ec2e3..208774f6c 100644 --- a/games/devtest/mods/testnodes/drawtypes.lua +++ b/games/devtest/mods/testnodes/drawtypes.lua @@ -208,6 +208,19 @@ minetest.register_node("testnodes:plantlike_waving", { groups = { dig_immediate = 3 }, }) +minetest.register_node("testnodes:plantlike_wallmounted", { + description = S("Wallmounted Plantlike Drawtype Test Node"), + drawtype = "plantlike", + paramtype = "light", + paramtype2 = "wallmounted", + tiles = { "testnodes_plantlike_wallmounted.png" }, + leveled = 1, + + + walkable = false, + sunlight_propagates = true, + groups = { dig_immediate = 3 }, +}) -- param2 will rotate @@ -320,6 +333,20 @@ minetest.register_node("testnodes:plantlike_rooted", { groups = { dig_immediate = 3 }, }) +minetest.register_node("testnodes:plantlike_rooted_wallmounted", { + description = S("Wallmounted Rooted Plantlike Drawtype Test Node"), + drawtype = "plantlike_rooted", + paramtype = "light", + paramtype2 = "wallmounted", + tiles = { + "testnodes_plantlike_rooted_base.png", + "testnodes_plantlike_rooted_base.png", + "testnodes_plantlike_rooted_base_side_wallmounted.png" }, + special_tiles = { "testnodes_plantlike_rooted_wallmounted.png" }, + + groups = { dig_immediate = 3 }, +}) + minetest.register_node("testnodes:plantlike_rooted_waving", { description = S("Waving Rooted Plantlike Drawtype Test Node"), drawtype = "plantlike_rooted", @@ -588,6 +615,9 @@ scale("allfaces_optional_waving", scale("plantlike", S("Double-sized Plantlike Drawtype Test Node"), S("Half-sized Plantlike Drawtype Test Node")) +scale("plantlike_wallmounted", + S("Double-sized Wallmounted Plantlike Drawtype Test Node"), + S("Half-sized Wallmounted Plantlike Drawtype Test Node")) scale("torchlike_wallmounted", S("Double-sized Wallmounted Torchlike Drawtype Test Node"), S("Half-sized Wallmounted Torchlike Drawtype Test Node")) diff --git a/games/devtest/mods/testnodes/textures/testnodes_plantlike_rooted_base_side_wallmounted.png b/games/devtest/mods/testnodes/textures/testnodes_plantlike_rooted_base_side_wallmounted.png Binary files differnew file mode 100644 index 000000000..b0be8d077 --- /dev/null +++ b/games/devtest/mods/testnodes/textures/testnodes_plantlike_rooted_base_side_wallmounted.png diff --git a/games/devtest/mods/testnodes/textures/testnodes_plantlike_rooted_wallmounted.png b/games/devtest/mods/testnodes/textures/testnodes_plantlike_rooted_wallmounted.png Binary files differnew file mode 100644 index 000000000..421466407 --- /dev/null +++ b/games/devtest/mods/testnodes/textures/testnodes_plantlike_rooted_wallmounted.png diff --git a/games/devtest/mods/testnodes/textures/testnodes_plantlike_wallmounted.png b/games/devtest/mods/testnodes/textures/testnodes_plantlike_wallmounted.png Binary files differnew file mode 100644 index 000000000..c89b29e30 --- /dev/null +++ b/games/devtest/mods/testnodes/textures/testnodes_plantlike_wallmounted.png |