summaryrefslogtreecommitdiff
path: root/pacmine/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pacmine/init.lua')
-rw-r--r--pacmine/init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/pacmine/init.lua b/pacmine/init.lua
index 53fbb53..5e8823b 100644
--- a/pacmine/init.lua
+++ b/pacmine/init.lua
@@ -35,6 +35,10 @@ minetest.register_node("pacmine:pellet_1", {
{0, 0, 0, 0, 0, 0},
}
},
+ on_player_collision = function(pos, player, gameid)
+ minetest.remove_node(pos)
+ pacmine.on_player_got_pellet(player)
+ end
})
--Power Pellets. Need to make these do something
@@ -68,6 +72,10 @@ minetest.register_node("pacmine:pellet_2", {
{0, 0, 0, 0, 0, 0},
}
},
+ on_player_collision = function(pos, player, gameid)
+ minetest.remove_node(pos)
+ pacmine.on_player_got_power_pellet(player)
+ end
})
--The placer block for pacmine