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},
|
|
|
|
|
})
|
|
|
|
|
|
2022-12-12 14:45:09 +01:00
|
|
|
|
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},
|
|
|
|
|
})
|
|
|
|
|
|
2020-05-24 15:46:26 +02:00
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|