remove loose variants.
rewrite some node registration code, removing the so far unused loose nodes, and putting in place some data that outlines how they might be implemented in the future.
This commit is contained in:
parent
bab59828f8
commit
c6157df12c
1 changed files with 21 additions and 12 deletions
|
@ -11,9 +11,17 @@ blockgame.register_node(modname .. ":stone", {
|
|||
},
|
||||
drop = modname .. ":cobblestone",
|
||||
})
|
||||
blockgame.reg_simple_node("cobblestone", "Cobblestone", {
|
||||
|
||||
blockgame.register_node(modname .. ":cobblestone", {
|
||||
description = "Cobblestone",
|
||||
tiles = {
|
||||
modname .. "_cobblestone.png",
|
||||
},
|
||||
groups = {
|
||||
cracky = 3,
|
||||
stoney = 1,
|
||||
},
|
||||
loose_variant = modname .. ":cobblestone_loose",
|
||||
})
|
||||
|
||||
minetest.register_alias("mapgen_stone", modname .. ":stone")
|
||||
|
@ -25,18 +33,19 @@ blockgame.register_node(modname .. ":grass", {
|
|||
modname .. "_grass.png",
|
||||
},
|
||||
groups = {
|
||||
cracky = 3,
|
||||
dirty = 1,
|
||||
},
|
||||
drop = modname .. ":dirt",
|
||||
})
|
||||
|
||||
blockgame.reg_simple_node("dirt", "Dirt", {
|
||||
cracky = 3,
|
||||
blockgame.register_node(modname .. ":dirt", {
|
||||
description = "Dirt",
|
||||
tiles = {
|
||||
modname .. "_dirt.png",
|
||||
},
|
||||
groups = {
|
||||
dirty = 1,
|
||||
grassable = 1,
|
||||
},
|
||||
loose_variant = modname .. ":dirt_loose",
|
||||
})
|
||||
|
||||
blockgame.register_loose_version(modname .. ":dirt")
|
||||
blockgame.register_loose_version(modname .. ":grass")
|
||||
blockgame.register_loose_version(modname .. ":cobblestone")
|
||||
|
|
Loading…
Reference in a new issue