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"
|
|
|
|
|
|
2025-05-04 21:22:18 +02:00
|
|
|
|
local scaled_tile = {
|
|
|
|
|
name = "tiled_tiled.png",
|
|
|
|
|
align_style = "world",
|
|
|
|
|
scale = 8,
|
|
|
|
|
}
|
2020-05-24 15:46:26 +02:00
|
|
|
|
|
2025-05-04 21:22:18 +02:00
|
|
|
|
core.register_node("tiled:tiled", {
|
|
|
|
|
description = "Tiled 'normal' Node (world-aligned)".."\n"..align_help,
|
|
|
|
|
tiles = {scaled_tile},
|
2024-09-04 19:15:39 +02:00
|
|
|
|
groups = {cracky=3},
|
2022-12-12 08:45:09 -05:00
|
|
|
|
})
|
|
|
|
|
|
2024-10-28 15:57:54 +01:00
|
|
|
|
core.register_node("tiled:tiled_n", {
|
2025-05-04 21:22:18 +02:00
|
|
|
|
description = "Tiled 'normal' Node (node-aligned)".."\n"..align_help_n,
|
|
|
|
|
tiles = {{name="tiled_tiled_node.png", align_style="node"}},
|
2024-09-04 19:15:39 +02:00
|
|
|
|
groups = {cracky=3},
|
2020-05-24 15:46:26 +02:00
|
|
|
|
})
|
|
|
|
|
|
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},
|
2025-05-04 21:22:18 +02:00
|
|
|
|
{scaled_tile},
|
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
|
|
|
|
|
2025-05-04 21:22:18 +02:00
|
|
|
|
core.register_node("tiled:tiled_liquid", {
|
|
|
|
|
description =
|
|
|
|
|
"Tiled 'liquid' Node (world-aligned)".."\n"..
|
|
|
|
|
align_help.."\n"..
|
|
|
|
|
"(waving = 3)",
|
|
|
|
|
paramtype = "light",
|
|
|
|
|
drawtype = "liquid",
|
|
|
|
|
tiles = {scaled_tile},
|
|
|
|
|
groups = {cracky=3},
|
|
|
|
|
waving = 3,
|
2025-05-04 21:57:21 +02:00
|
|
|
|
liquidtype = "source",
|
|
|
|
|
liquid_alternative_flowing = "tiled:tiled_flowingliquid",
|
|
|
|
|
liquid_alternative_source = "tiled:tiled_liquid",
|
|
|
|
|
liquid_renewable = false,
|
2025-05-04 21:22:18 +02:00
|
|
|
|
buildable_to = true,
|
|
|
|
|
})
|
|
|
|
|
|
2025-05-04 21:57:21 +02:00
|
|
|
|
core.register_node("tiled:tiled_flowingliquid", {
|
|
|
|
|
description =
|
|
|
|
|
"Tiled 'flowingliquid' Node (world-aligned)".."\n"..
|
|
|
|
|
"Broken".."\n"..
|
|
|
|
|
"(waving = 3)",
|
|
|
|
|
paramtype = "light",
|
|
|
|
|
paramtype2 = "flowingliquid",
|
|
|
|
|
drawtype = "flowingliquid",
|
|
|
|
|
tiles = {scaled_tile},
|
|
|
|
|
special_tiles = {scaled_tile, scaled_tile},
|
|
|
|
|
groups = {cracky=3},
|
|
|
|
|
waving = 3,
|
|
|
|
|
liquidtype = "flowing",
|
|
|
|
|
liquid_alternative_flowing = "tiled:tiled_flowingliquid",
|
|
|
|
|
liquid_alternative_source = "tiled:tiled_liquid",
|
|
|
|
|
liquid_renewable = false,
|
|
|
|
|
buildable_to = true,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
core.register_node("tiled:tiled_glasslike", {
|
2025-05-04 21:22:18 +02:00
|
|
|
|
description =
|
|
|
|
|
"Tiled 'glasslike' Node (world-aligned)".."\n"..
|
2025-05-04 21:57:21 +02:00
|
|
|
|
"Broken",
|
2025-05-04 21:22:18 +02:00
|
|
|
|
paramtype = "light",
|
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
|
drawtype = "glasslike",
|
|
|
|
|
tiles = {scaled_tile},
|
|
|
|
|
groups = {cracky=3},
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
core.register_node("tiled:tiled_glasslike_framed", {
|
|
|
|
|
description =
|
|
|
|
|
"Tiled 'glasslike_framed' Node (world-aligned)".."\n"..
|
|
|
|
|
align_help,
|
|
|
|
|
paramtype = "light",
|
|
|
|
|
drawtype = "glasslike_framed",
|
|
|
|
|
tiles = {scaled_tile, scaled_tile},
|
|
|
|
|
groups = {cracky=3},
|
|
|
|
|
})
|
|
|
|
|
|
2025-05-04 21:57:21 +02:00
|
|
|
|
core.register_node("tiled:tiled_glasslike_framed_optional", {
|
2025-05-04 21:22:18 +02:00
|
|
|
|
description =
|
2025-05-04 21:57:21 +02:00
|
|
|
|
"Tiled 'glasslike_framed_optional' Node (world-aligned)".."\n"..
|
2025-05-04 21:22:18 +02:00
|
|
|
|
align_help,
|
|
|
|
|
paramtype = "light",
|
2025-05-04 21:57:21 +02:00
|
|
|
|
drawtype = "glasslike_framed_optional",
|
|
|
|
|
tiles = {scaled_tile, "testnodes_glasslike_detail.png"}, --TODO: tiled detail png
|
2025-05-04 21:22:18 +02:00
|
|
|
|
groups = {cracky=3},
|
|
|
|
|
})
|
2020-05-24 15:46:26 +02:00
|
|
|
|
|
2025-05-04 21:57:21 +02:00
|
|
|
|
core.register_node("tiled:tiled_allfaces", {
|
2025-05-04 21:22:18 +02:00
|
|
|
|
description =
|
2025-05-04 21:57:21 +02:00
|
|
|
|
"Tiled 'allfaces' Node (world-aligned)".."\n"..
|
|
|
|
|
align_help.."\n",
|
2025-05-04 21:22:18 +02:00
|
|
|
|
paramtype = "light",
|
2025-05-04 21:57:21 +02:00
|
|
|
|
drawtype = "allfaces",
|
|
|
|
|
tiles = {scaled_tile},
|
|
|
|
|
groups = {cracky=3},
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
core.register_node("tiled:tiled_allfaces_optional", {
|
|
|
|
|
description =
|
|
|
|
|
"Tiled 'allfaces_optional' Node (world-aligned)".."\n"..
|
|
|
|
|
"Broken for leaves_style = simple".."\n"..
|
|
|
|
|
"(waving = 2)",
|
|
|
|
|
paramtype = "light",
|
|
|
|
|
drawtype = "allfaces_optional",
|
|
|
|
|
tiles = {scaled_tile},
|
2025-05-04 21:22:18 +02:00
|
|
|
|
groups = {cracky=3},
|
2025-05-04 21:57:21 +02:00
|
|
|
|
waving = 2,
|
2025-05-04 21:22:18 +02:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
core.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 = {scaled_tile},
|
|
|
|
|
special_tiles = {"tiled_tiled_node.png"},
|
|
|
|
|
groups = {cracky=3},
|
|
|
|
|
})
|