From ff0c1eef4b5e4e06b02b164509590c18e7b450b9 Mon Sep 17 00:00:00 2001 From: DonBatman Date: Mon, 26 Oct 2015 16:33:48 -0700 Subject: added sound files to mario fixed portal issue updated schematic started on turtles and gamestate --- mario/blocks.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mario/blocks.lua') 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, }) -- cgit v1.2.3