diff options
Diffstat (limited to 'games/minimal')
-rw-r--r-- | games/minimal/mods/experimental/depends.txt | 2 | ||||
-rw-r--r-- | games/minimal/mods/experimental/init.lua | 51 | ||||
-rw-r--r-- | games/minimal/mods/experimental/textures/experimental_tiled.png | bin | 0 -> 1041 bytes | |||
-rw-r--r-- | games/minimal/mods/stairs/init.lua | 4 |
4 files changed, 54 insertions, 3 deletions
diff --git a/games/minimal/mods/experimental/depends.txt b/games/minimal/mods/experimental/depends.txt index 3a7daa1d7..3296b1e0a 100644 --- a/games/minimal/mods/experimental/depends.txt +++ b/games/minimal/mods/experimental/depends.txt @@ -1,2 +1,2 @@ default - +stairs diff --git a/games/minimal/mods/experimental/init.lua b/games/minimal/mods/experimental/init.lua index 657148dce..578c35364 100644 --- a/games/minimal/mods/experimental/init.lua +++ b/games/minimal/mods/experimental/init.lua @@ -501,6 +501,57 @@ minetest.register_node("experimental:tester_node_1", { end, }) +minetest.register_node("experimental:tiled", { + description = "Tiled stone", + tiles = {{ + name = "experimental_tiled.png", + align_style = "world", + scale = 8, + }}, + groups = {cracky=2}, +}) + +stairs.register_stair_and_slab("tiled_n", "experimental:tiled", + {cracky=2}, + {{name="experimental_tiled.png", align_style="node", scale=8}}, + "Tiled stair (node-aligned)", + "Tiled slab (node-aligned)") + +stairs.register_stair_and_slab("tiled", "experimantal:tiled", + {cracky=2}, + {{name="experimental_tiled.png", align_style="world", scale=8}}, + "Tiled stair", + "Tiled slab") + +minetest.register_craft({ + output = 'experimental:tiled 4', + recipe = { + {'default:cobble', '', 'default:cobble'}, + {'', '', ''}, + {'default:cobble', '', 'default:cobble'}, + } +}) + +minetest.register_craft({ + output = 'stairs:stair_tiled', + recipe = {{'stairs:stair_tiled_n'}} +}) + +minetest.register_craft({ + output = 'stairs:stair_tiled_n', + recipe = {{'stairs:stair_tiled'}} +}) + +minetest.register_craft({ + output = 'stairs:slab_tiled', + recipe = {{'stairs:slab_tiled_n'}} +}) + +minetest.register_craft({ + output = 'stairs:slab_tiled_n', + recipe = {{'stairs:slab_tiled'}} +}) + minetest.register_craftitem("experimental:tester_tool_1", { description = "Tester Tool 1", inventory_image = "experimental_tester_tool_1.png", diff --git a/games/minimal/mods/experimental/textures/experimental_tiled.png b/games/minimal/mods/experimental/textures/experimental_tiled.png Binary files differnew file mode 100644 index 000000000..67397b902 --- /dev/null +++ b/games/minimal/mods/experimental/textures/experimental_tiled.png diff --git a/games/minimal/mods/stairs/init.lua b/games/minimal/mods/stairs/init.lua index c3bbc561e..74b7890ee 100644 --- a/games/minimal/mods/stairs/init.lua +++ b/games/minimal/mods/stairs/init.lua @@ -2,7 +2,7 @@ stairs = {} -- Node will be called stairs:stair_<subname> function stairs.register_stair(subname, recipeitem, groups, images, description) - minetest.register_node("stairs:stair_" .. subname, { + minetest.register_node(":stairs:stair_" .. subname, { description = description, drawtype = "nodebox", tiles = images, @@ -31,7 +31,7 @@ end -- Node will be called stairs:slab_<subname> function stairs.register_slab(subname, recipeitem, groups, images, description) - minetest.register_node("stairs:slab_" .. subname, { + minetest.register_node(":stairs:slab_" .. subname, { description = description, drawtype = "nodebox", tiles = images, |