mirror of
https://notabug.org/TenPlus1/lucky_block.git
synced 2024-11-19 23:43:44 +01:00
sound tweaks
This commit is contained in:
parent
400f741291
commit
0d31ccfc66
@ -143,7 +143,7 @@ local function punchy(pos, player)
|
|||||||
damage_groups = {fleshy = 5}
|
damage_groups = {fleshy = 5}
|
||||||
}, nil)
|
}, nil)
|
||||||
|
|
||||||
minetest.sound_play("player_damage", {pos = pos, gain = 1.0})
|
minetest.sound_play("player_damage", {pos = pos, gain = 1.0}, true)
|
||||||
|
|
||||||
minetest.chat_send_player(player:get_player_name(),
|
minetest.chat_send_player(player:get_player_name(),
|
||||||
green .. S("Stop hitting yourself!"))
|
green .. S("Stop hitting yourself!"))
|
||||||
@ -162,7 +162,7 @@ local function pint(pos, player)
|
|||||||
minetest.chat_send_player(player:get_player_name(),
|
minetest.chat_send_player(player:get_player_name(),
|
||||||
green .. S("Pint Sized Player!"))
|
green .. S("Pint Sized Player!"))
|
||||||
|
|
||||||
minetest.sound_play("default_place_node", {pos = pos, gain = 1.0})
|
minetest.sound_play("default_place_node", {pos = pos, gain = 1.0}, true)
|
||||||
|
|
||||||
minetest.after (180, function(player, pos) -- 3 minutes
|
minetest.after (180, function(player, pos) -- 3 minutes
|
||||||
|
|
||||||
@ -175,7 +175,7 @@ local function pint(pos, player)
|
|||||||
stepheight = 0.6
|
stepheight = 0.6
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.sound_play("default_place_node", {pos = pos, gain = 1.0})
|
minetest.sound_play("default_place_node", {pos = pos, gain = 1.0}, true)
|
||||||
end
|
end
|
||||||
end, player)
|
end, player)
|
||||||
end
|
end
|
||||||
@ -314,7 +314,7 @@ minetest.register_tool("lucky_block:lightning_staff", {
|
|||||||
pos = pos,
|
pos = pos,
|
||||||
gain = 1.0,
|
gain = 1.0,
|
||||||
max_hear_distance = 25
|
max_hear_distance = 25
|
||||||
})
|
}, true)
|
||||||
|
|
||||||
itemstack:add_wear(65535 / 50) -- 50 uses
|
itemstack:add_wear(65535 / 50) -- 50 uses
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user