mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
133 lines
3.6 KiB
Lua
133 lines
3.6 KiB
Lua
local align_help = "Texture spans over a space of 8×8 nodes"
|
||
local align_help_n = "Tiles looks the same for every node"
|
||
|
||
local scaled_tile = {
|
||
name = "tiled_tiled.png",
|
||
align_style = "world",
|
||
scale = 8,
|
||
}
|
||
|
||
core.register_node("tiled:tiled", {
|
||
description = "Tiled 'normal' Node (world-aligned)".."\n"..align_help,
|
||
tiles = {scaled_tile},
|
||
groups = {cracky=3},
|
||
})
|
||
|
||
core.register_node("tiled:tiled_n", {
|
||
description = "Tiled 'normal' 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},
|
||
{scaled_tile},
|
||
"Tiled Stair (world-aligned)".."\n"..align_help,
|
||
"Tiled Slab (world-aligned)".."\n"..align_help)
|
||
|
||
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,
|
||
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", {
|
||
description =
|
||
"Tiled 'glasslike' Node (world-aligned)".."\n"..
|
||
"Broken",
|
||
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", {
|
||
description =
|
||
"Tiled 'glasslike_framed_optional' Node (world-aligned)".."\n"..
|
||
align_help,
|
||
paramtype = "light",
|
||
drawtype = "glasslike_framed_optional",
|
||
tiles = {scaled_tile, "testnodes_glasslike_detail.png"}, --TODO: tiled detail png
|
||
groups = {cracky=3},
|
||
})
|
||
|
||
core.register_node("tiled:tiled_allfaces", {
|
||
description =
|
||
"Tiled 'allfaces' Node (world-aligned)".."\n"..
|
||
align_help.."\n",
|
||
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},
|
||
groups = {cracky=3},
|
||
waving = 2,
|
||
})
|
||
|
||
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},
|
||
})
|