From 239cc107532d1868b426b69968a1bc17603e7e33 Mon Sep 17 00:00:00 2001 From: Fernando Carmona Varo Date: Sat, 24 Oct 2015 19:51:47 +0200 Subject: Implemented fruits and extra lifes --- pacmine/fruit.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pacmine/fruit.lua') 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 -- cgit v1.2.3