diff options
author | Fernando Carmona Varo <ferkiwi@gmail.com> | 2015-10-24 19:51:47 +0200 |
---|---|---|
committer | Fernando Carmona Varo <ferkiwi@gmail.com> | 2015-10-24 19:51:47 +0200 |
commit | 239cc107532d1868b426b69968a1bc17603e7e33 (patch) | |
tree | 50bef965c04b165b5f2ad8fce1d3ff36d07e0da1 /pacmine/fruit.lua | |
parent | b59eefaa974a295c4d332545c7ed91b740ba1479 (diff) |
Implemented fruits and extra lifes
Diffstat (limited to 'pacmine/fruit.lua')
-rw-r--r-- | pacmine/fruit.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pacmine/fruit.lua b/pacmine/fruit.lua index 29389a8..2969ecc 100644 --- a/pacmine/fruit.lua +++ b/pacmine/fruit.lua @@ -24,12 +24,13 @@ minetest.register_node("pacmine:"..itm,{ paramtype2 = "facedir", walkable = false, light_source = 14, - groups = {cracky=3,not_in_creative_inventory = 0}, + groups = {immortal=1,not_in_creative_inventory = 0}, --node_box = cbox, selection_box = cbox, collision_box = cbox, - after_destruct = function(pos, oldnode) - pacmine.on_player_got_fruit() - end, + on_timer = function(pos, dtime) + print("DELETEEE??") + minetest.remove_node(pos) + end }) end |