mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
add doc for drawtypes and add more test nodes to devtest/tiled
This commit is contained in:
parent
36118770a1
commit
1b848cc551
2 changed files with 54 additions and 25 deletions
|
@ -9719,21 +9719,16 @@ Long form:
|
|||
--
|
||||
-- * `normal`
|
||||
-- * `liquid` (but not `flowingliquid`)
|
||||
-- * `flowingliquid`: no, TODO
|
||||
-- * `glasslike`: no, TODO
|
||||
-- * `glasslike_framed`: Only frame (tile 1). With `paramtype2`
|
||||
-- `glasslikeliquidlevel`, `special_tiles` also don't support this.
|
||||
-- * `glasslike_framed_optional`: Same limitations as for `glasslike_framed`.
|
||||
-- And if the `connected_glass` setting is disabled, it may be drawn like
|
||||
-- `scale` TODO.
|
||||
-- * `allfaces` TODO?
|
||||
-- * `allfaces_optional` TODO?
|
||||
-- * `torchlike` TODO?
|
||||
-- * `signlike` TODO?
|
||||
-- * `plantlike` TODO?
|
||||
-- * `firelike` TODO?
|
||||
-- * `fencelike` TODO?
|
||||
-- * `raillike` TODO?
|
||||
-- * `nodebox` TODO?
|
||||
-- * `mesh` TODO?
|
||||
-- only the `1/scale` base tile is drawn. TODO: just support glasslike
|
||||
-- * `allfaces`
|
||||
-- * `allfaces_optional`: no, because of leaves_style simple
|
||||
-- * `nodebox`
|
||||
-- * `plantlike_rooted` (only the cube part)
|
||||
--
|
||||
-- If a drawtype (or part of it) is not supported, don't use this feature,
|
||||
|
|
|
@ -41,14 +41,36 @@ core.register_node("tiled:tiled_liquid", {
|
|||
tiles = {scaled_tile},
|
||||
groups = {cracky=3},
|
||||
waving = 3,
|
||||
liquidtype = "none",
|
||||
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_glasslike", { -- broken
|
||||
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"..
|
||||
align_help,
|
||||
"Broken",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
drawtype = "glasslike",
|
||||
|
@ -66,26 +88,38 @@ core.register_node("tiled:tiled_glasslike_framed", {
|
|||
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, "testnodes_glasslike_detail.png"},
|
||||
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"},
|
||||
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"..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue