1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00
luanti/games/devtest/mods/tiled/init.lua

134 lines
3.6 KiB
Lua
Raw Normal View History

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,
}
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},
})
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},
})
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},
2025-05-04 21:22:18 +02:00
{scaled_tile},
"Tiled Stair (world-aligned)".."\n"..align_help,
"Tiled Slab (world-aligned)".."\n"..align_help)
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,
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,
})
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"..
"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},
})
core.register_node("tiled:tiled_glasslike_framed_optional", {
2025-05-04 21:22:18 +02:00
description =
"Tiled 'glasslike_framed_optional' Node (world-aligned)".."\n"..
2025-05-04 21:22:18 +02:00
align_help,
paramtype = "light",
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},
})
core.register_node("tiled:tiled_allfaces", {
2025-05-04 21:22:18 +02:00
description =
"Tiled 'allfaces' Node (world-aligned)".."\n"..
align_help.."\n",
2025-05-04 21:22:18 +02:00
paramtype = "light",
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},
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},
})