mirror of https://github.com/minetest/minetest.git
Update doc based on review. Update some of test nodes.
This commit is contained in:
parent
20aac1b8ae
commit
f1c082cd62
|
@ -9316,10 +9316,13 @@ Used by `minetest.register_node`.
|
|||
-- tiles, overlay_tiles and special_tiles
|
||||
-- defined above (outside from variants table).
|
||||
{ -- Variant number 1.
|
||||
-- this field is reused from above definition if is not specified.
|
||||
tiles = {tile definition 1, def2, def3, def4, def5, def6},
|
||||
|
||||
-- this field is reused from above definition if is not specified.
|
||||
overlay_tiles = {def1, def2, def3, def4, def5, def6},
|
||||
|
||||
-- this field is reused from above definition if is not specified.
|
||||
special_tiles = {def1, def2},
|
||||
},
|
||||
{ -- Variant number 2.
|
||||
|
|
|
@ -163,14 +163,22 @@ minetest.register_node("testnodes:variant_overlay", {
|
|||
S("Has two variants"),
|
||||
is_ground_content = false,
|
||||
groups = {dig_immediate = 3},
|
||||
variant_count = 2,
|
||||
variant_count = 4,
|
||||
param2_variant = {width = 1, offset = 0},
|
||||
tiles = {"testnodes_node.png"},
|
||||
overlay_tiles = {{name = "testnodes_overlay.png", color = "#555"}},
|
||||
variants = {
|
||||
{
|
||||
tiles = {"testnodes_node.png"},
|
||||
},
|
||||
{
|
||||
tiles = {"testnodes_node.png"},
|
||||
overlay_tiles = {{name = "testnodes_overlay.png", color = "#FFF"}},
|
||||
},
|
||||
{
|
||||
tiles = {"testnodes_node.png"},
|
||||
overlay_tiles = {},
|
||||
},
|
||||
},
|
||||
color = "#F00",
|
||||
})
|
||||
|
@ -182,7 +190,7 @@ minetest.register_node("testnodes:variant_plantlike_rooted", {
|
|||
is_ground_content = false,
|
||||
groups = {dig_immediate = 3},
|
||||
drawtype = "plantlike_rooted",
|
||||
variant_count = 6,
|
||||
variant_count = 8,
|
||||
param2_variant = {width = 8, offset = 0},
|
||||
tiles = {"testnodes_1.png"},
|
||||
special_tiles = {"testnodes_6.png"},
|
||||
|
@ -192,6 +200,8 @@ minetest.register_node("testnodes:variant_plantlike_rooted", {
|
|||
{tiles = {"testnodes_4.png"}, special_tiles = {"testnodes_3.png"}},
|
||||
{tiles = {"testnodes_5.png"}, special_tiles = {"testnodes_2.png"}},
|
||||
{tiles = {"testnodes_6.png"}, special_tiles = {"testnodes_1.png"}},
|
||||
{tiles = {"testnodes_6.png"}},
|
||||
{special_tiles = {"testnodes_1.png"}},
|
||||
},
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue