From 75320e7e88ab5088a46c9e42c1e789cbdacb13b0 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Sun, 15 Oct 2017 10:34:14 +0300 Subject: Real global textures (#6105) * Real global textures * Add world-aligned textures * Update minimal to support world-aligned tiles * Update minimal --- games/minimal/mods/experimental/init.lua | 51 ++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'games/minimal/mods/experimental/init.lua') 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", -- cgit v1.2.3