2022-10-09 14:05:22 +02:00
|
|
|
|
local align_help = "Texture spans over a space of 8×8 nodes"
|
|
|
|
|
local align_help_n = "Tiles looks the same for every node"
|
|
|
|
|
|
2020-05-24 15:46:26 +02:00
|
|
|
|
minetest.register_node("tiled:tiled", {
|
2022-10-09 14:05:22 +02:00
|
|
|
|
description = "Tiled Node (world-aligned)".."\n"..align_help,
|
2020-05-24 15:46:26 +02:00
|
|
|
|
tiles = {{
|
|
|
|
|
name = "tiled_tiled.png",
|
|
|
|
|
align_style = "world",
|
|
|
|
|
scale = 8,
|
|
|
|
|
}},
|
|
|
|
|
groups = {cracky=3},
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
minetest.register_node("tiled:tiled_n", {
|
2022-10-09 14:05:22 +02:00
|
|
|
|
description = "Tiled Node (node-aligned)".."\n"..align_help_n,
|
2020-05-24 15:46:26 +02:00
|
|
|
|
tiles = {{
|
2022-10-06 18:25:40 +02:00
|
|
|
|
name = "tiled_tiled_node.png",
|
2020-05-24 15:46:26 +02:00
|
|
|
|
align_style = "node",
|
|
|
|
|
}},
|
|
|
|
|
groups = {cracky=3},
|
|
|
|
|
})
|
|
|
|
|
|
2022-10-06 18:25:40 +02:00
|
|
|
|
stairs.register_stair_and_slab("tiled_n", "tiled:tiled_n",
|
2020-05-24 15:46:26 +02:00
|
|
|
|
{cracky=3},
|
2022-10-06 18:25:40 +02:00
|
|
|
|
{{name="tiled_tiled_node.png", align_style="node"}},
|
2022-10-09 14:05:22 +02:00
|
|
|
|
"Tiled Stair (node-aligned)".."\n"..align_help_n,
|
|
|
|
|
"Tiled Slab (node-aligned)".."\n"..align_help_n)
|
2020-05-24 15:46:26 +02:00
|
|
|
|
|
|
|
|
|
stairs.register_stair_and_slab("tiled", "tiled:tiled",
|
|
|
|
|
{cracky=3},
|
|
|
|
|
{{name="tiled_tiled.png", align_style="world", scale=8}},
|
2022-10-09 14:05:22 +02:00
|
|
|
|
"Tiled Stair (world-aligned)".."\n"..align_help,
|
|
|
|
|
"Tiled Slab (world-aligned)".."\n"..align_help)
|
2020-05-24 15:46:26 +02:00
|
|
|
|
|
|
|
|
|
|