diff options
author | DonBatman <serfdon@gmail.com> | 2015-10-24 18:11:33 -0700 |
---|---|---|
committer | DonBatman <serfdon@gmail.com> | 2015-10-24 18:11:33 -0700 |
commit | 4a9d35295a47539ebf9a525f14702f8f73f0776d (patch) | |
tree | 752d2099a1ff72426706f4feb7abd9d907537bef /pacmine/init.lua | |
parent | f35d70f55d91c016546f5d569a34b0411a9f1711 (diff) | |
parent | 289cacf17a5812c5fb6cfc7134dedabfea0d86e7 (diff) |
Merge branch 'master' of https://github.com/DonBatman/myarcade
Diffstat (limited to 'pacmine/init.lua')
-rw-r--r-- | pacmine/init.lua | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/pacmine/init.lua b/pacmine/init.lua index 4d4db2a..e9e37dc 100644 --- a/pacmine/init.lua +++ b/pacmine/init.lua @@ -22,23 +22,13 @@ minetest.register_node("pacmine:pellet_1", { walkable = false, light_source = 11, drop = "", - groups = {dig_immediate = 3, not_in_creative_inventory = 0}, + groups = {immortal = 1, not_in_creative_inventory = 1}, node_box = { type = "fixed", fixed = { {-0.625, 0.25, -0.125, -0.375, 0.5, 0.125}, } }, - on_destruct = function(pos) - minetest.sound_play("pacmine_chomp", { - pos = pos, - max_hear_distance = 100, - gain = 10.0, - }) - end, - after_dig_node = function(pos, oldnode, oldmetadata, digger) - pacmine.on_player_got_pellet(digger) - end, }) --Power Pellets. Need to make these do something @@ -56,7 +46,7 @@ minetest.register_node("pacmine:pellet_2", { {items = {"pacmine:peach"},rarity = 4,}, {items = {"pacmine:strawberry"},rarity = 4,},}, }, - groups = {dig_immediate = 3, not_in_creative_inventory = 0}, + groups = {immortal = 1, not_in_creative_inventory = 1}, node_box = { type = "fixed", fixed = { @@ -66,15 +56,6 @@ minetest.register_node("pacmine:pellet_2", { {-0.6875, -0.1875, -0.1875, -0.3125, 0.1875, 0.1875}, } }, - after_dig_node = function(pos, oldnode, oldmetadata, digger) - pacmine.on_player_got_power_pellet(digger) - - minetest.sound_play("pacmine_eatfruit", { - pos = pos, - max_hear_distance = 100, - gain = 10.0, - }) - end, }) --The placer block |