Skip to content

Commit

Permalink
Leafdecay: Register leafdecay for bush leaves
Browse files Browse the repository at this point in the history
  • Loading branch information
paramat committed Mar 12, 2017
1 parent d5e19d7 commit 07a5fca
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions mods/default/nodes.lua
Expand Up @@ -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", {
Expand Down Expand Up @@ -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,
})
Expand Down Expand Up @@ -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,
})

0 comments on commit 07a5fca

Please sign in to comment.