minetest/games/devtest/mods/tiled/init.lua
Jude Melton-Houghton 1f3b5e553b
Fix plantlike_rooted world-aligned node base textures (#12994)
Co-authored-by: Wuzzy <Wuzzy@disroot.org>
2022-12-12 08:45:09 -05:00

51 lines
1.6 KiB
Lua
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

local align_help = "Texture spans over a space of 8×8 nodes"
local align_help_n = "Tiles looks the same for every node"
minetest.register_node("tiled:tiled", {
description = "Tiled Node (world-aligned)".."\n"..align_help,
tiles = {{
name = "tiled_tiled.png",
align_style = "world",
scale = 8,
}},
groups = {cracky=3},
})
minetest.register_node("tiled:tiled_rooted", {
description = "Tiled 'plantlike_rooted' Node (world-aligned)".."\n"..
"Base node texture spans over a space of 8×8 nodes".."\n"..
"A plantlike thing grows on top",
paramtype = "light",
drawtype = "plantlike_rooted",
tiles = {{
name = "tiled_tiled.png",
align_style = "world",
scale = 8,
}},
special_tiles = {"tiled_tiled_node.png"},
groups = {cracky=3},
})
minetest.register_node("tiled:tiled_n", {
description = "Tiled Node (node-aligned)".."\n"..align_help_n,
tiles = {{
name = "tiled_tiled_node.png",
align_style = "node",
}},
groups = {cracky=3},
})
stairs.register_stair_and_slab("tiled_n", "tiled:tiled_n",
{cracky=3},
{{name="tiled_tiled_node.png", align_style="node"}},
"Tiled Stair (node-aligned)".."\n"..align_help_n,
"Tiled Slab (node-aligned)".."\n"..align_help_n)
stairs.register_stair_and_slab("tiled", "tiled:tiled",
{cracky=3},
{{name="tiled_tiled.png", align_style="world", scale=8}},
"Tiled Stair (world-aligned)".."\n"..align_help,
"Tiled Slab (world-aligned)".."\n"..align_help)