aboutsummaryrefslogtreecommitdiff
path: root/games/minimal/mods
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-04-04 13:32:08 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-04-04 13:32:08 +0300
commita869d2345161e30163f8007b6b833bceffd98ebb (patch)
treeaf649061119044678d53c52bb6652a735e79412c /games/minimal/mods
parent41f4941b743512c9cf3b4b009f58879fa3dc6d82 (diff)
downloadminetest-a869d2345161e30163f8007b6b833bceffd98ebb.tar.gz
minetest-a869d2345161e30163f8007b6b833bceffd98ebb.tar.bz2
minetest-a869d2345161e30163f8007b6b833bceffd98ebb.zip
Fix sound direction and add experimental:soundblock alias sb in minimal for testing
Diffstat (limited to 'games/minimal/mods')
-rw-r--r--games/minimal/mods/experimental/init.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/games/minimal/mods/experimental/init.lua b/games/minimal/mods/experimental/init.lua
index 11f32b3f9..cb0b209d8 100644
--- a/games/minimal/mods/experimental/init.lua
+++ b/games/minimal/mods/experimental/init.lua
@@ -20,6 +20,25 @@ function switch_player_visual()
end
minetest.after(1.0, switch_player_visual)
+minetest.register_node("experimental:soundblock", {
+ tile_images = {"unknown_block.png", "default_tnt_bottom.png",
+ "default_tnt_side.png", "default_tnt_side.png",
+ "default_tnt_side.png", "default_tnt_side.png"},
+ inventory_image = minetest.inventorycube("unknown_block.png",
+ "default_tnt_side.png", "default_tnt_side.png"),
+})
+
+minetest.register_alias("sb", "experimental:soundblock")
+
+minetest.register_abm({
+ nodenames = {"experimental:soundblock"},
+ interval = 1,
+ chance = 1,
+ action = function(p0, node, _, _)
+ minetest.sound_play("default_grass_footstep", {pos=p0, gain=0.5})
+ end,
+})
+
--[[
stepsound = -1
function test_sound()