diff options
author | DonBatman <serfdon@gmail.com> | 2015-10-26 16:33:48 -0700 |
---|---|---|
committer | DonBatman <serfdon@gmail.com> | 2015-10-26 16:33:48 -0700 |
commit | ff0c1eef4b5e4e06b02b164509590c18e7b450b9 (patch) | |
tree | ef0852788832607dab0540a62ae2255b7e4dcf33 /mario/blocks.lua | |
parent | 551b77b9dc7da84299c39f333314eaa36e699981 (diff) |
added sound files to mario
fixed portal issue
updated schematic
started on turtles and gamestate
Diffstat (limited to 'mario/blocks.lua')
-rw-r--r-- | mario/blocks.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mario/blocks.lua b/mario/blocks.lua index f2afdac..7005de3 100644 --- a/mario/blocks.lua +++ b/mario/blocks.lua @@ -49,6 +49,9 @@ minetest.register_node("mario:coin", { paramtype = "light", walkable = false, groups = {cracky = 2}, + on_destruct = function(pos) + minetest.sound_play("mario-coin", {pos = pos,max_hear_distance = 40,gain = 10.0,}) + end, }) local nbox = { @@ -79,6 +82,9 @@ minetest.register_node("mario:mushroom",{ paramtype = "light", groups = {cracky = 3}, node_box = nbox, + on_destruct = function(pos) + minetest.sound_play("mario-bonus", {pos = pos,max_hear_distance = 40,gain = 10.0,}) + end, }) minetest.register_node("mario:mushroom_green",{ @@ -95,4 +101,7 @@ minetest.register_node("mario:mushroom_green",{ paramtype = "light", groups = {cracky = 3}, node_box = nbox, + on_destruct = function(pos) + minetest.sound_play("mario-1-up", {pos = pos,max_hear_distance = 40,gain = 10.0,}) + end, }) |