Leafdecay: Register leafdecay for bush leaves

This commit is contained in:
paramat 2017-03-09 20:18:58 +00:00
parent d5e19d70c2
commit 07a5fca432
1 changed files with 16 additions and 0 deletions

View File

@ -1308,6 +1308,8 @@ minetest.register_node("default:bush_leaves", {
paramtype = "light",
groups = {snappy = 3, flammable = 2, leaves = 1},
sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves,
})
minetest.register_node("default:acacia_bush_stem", {
@ -1335,6 +1337,8 @@ minetest.register_node("default:acacia_bush_leaves", {
paramtype = "light",
groups = {snappy = 3, flammable = 2, leaves = 1},
sounds = default.node_sound_leaves_defaults(),
after_place_node = default.after_place_leaves,
})
@ -2200,3 +2204,15 @@ default.register_leafdecay({
leaves = {"default:aspen_leaves"},
radius = 2,
})
default.register_leafdecay({
trunks = {"default:bush_stem"},
leaves = {"default:bush_leaves"},
radius = 1,
})
default.register_leafdecay({
trunks = {"default:acacia_bush_stem"},
leaves = {"default:acacia_bush_leaves"},
radius = 1,
})