make regular leaves leveled.
This commit is contained in:
parent
0f1452ca06
commit
54267faa88
|
@ -1,5 +1,7 @@
|
|||
local modname = minetest.get_current_modname()
|
||||
|
||||
local leaves_level_max = 4
|
||||
|
||||
local base_def = {
|
||||
drawtype = "allfaces_optional",
|
||||
paramtype = "light",
|
||||
|
@ -43,11 +45,17 @@ local nutty_drops = {
|
|||
},
|
||||
}
|
||||
|
||||
reg_leaves("leaves", {
|
||||
blockgame.register_leveled_node(modname .. ":leaves", blockgame.underride({
|
||||
description = "Leaves",
|
||||
level_max = leaves_level_max,
|
||||
tiles = {
|
||||
modname .. "_leaves.png",
|
||||
},
|
||||
walkable = false,
|
||||
supports_falling = true,
|
||||
})
|
||||
level_max = leaves_level_max,
|
||||
}, base_def))
|
||||
|
||||
reg_leaves("leaves_growing", {
|
||||
description = "Growing Leaves",
|
||||
texture = "leaves_alive",
|
||||
|
@ -64,19 +72,16 @@ reg_leaves("leaves_alive", {
|
|||
},
|
||||
})
|
||||
|
||||
|
||||
local decomposing_leaves_layers = 4
|
||||
|
||||
blockgame.register_leveled_node("leaves_decomposing", blockgame.underride({
|
||||
description = "Decomposing Leaves",
|
||||
level_max = decomposing_leaves_layers,
|
||||
level_max = leaves_level_max,
|
||||
tiles = {
|
||||
modname .. "_leaves_decomposing.png",
|
||||
},
|
||||
groups = {
|
||||
leaves_decomposing = decomposing_leaves_layers,
|
||||
leaves_decomposing = leaves_level_max,
|
||||
},
|
||||
walkable = false,
|
||||
supports_falling = true,
|
||||
level_max = decomposing_leaves_layers,
|
||||
level_max = leaves_level_max,
|
||||
}, base_def))
|
||||
|
|
Loading…
Reference in New Issue