diff options
author | Auke Kok <sofar@foo-projects.org> | 2015-11-25 22:25:41 -0800 |
---|---|---|
committer | Auke Kok <sofar@foo-projects.org> | 2015-11-25 22:25:41 -0800 |
commit | 5329ff5b369602918fbb70b61351b2d89ae440eb (patch) | |
tree | e733b404acb8d415aaacad51275d72dce72d1b7b /corn.lua | |
parent | f5908b08afddf6da3d569c2328fd61784da7a0c3 (diff) |
Particle spawner on dead plants: flies.
These buzz around dead plants, right after they die.
Diffstat (limited to 'corn.lua')
-rw-r--r-- | corn.lua | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -290,8 +290,7 @@ minetest.register_node("crops:corn_top_3", { for i = 1,math.random(2 - (damage / 100), 4 - (3 * (damage / 100))) do table.insert(drops, ('crops:corn_cob')) end - minetest.set_node(pos, { name = "crops:corn_top_4" }) - minetest.set_node(below, { name = "crops:corn_base_3" }) + crops.die(below) core.handle_node_drops(pos, drops, digger) end }) |