mirror of
https://notabug.org/TenPlus1/lucky_block.git
synced 2024-10-05 22:53:06 +02:00
added sound to "stop hitting yourself" and flame to lightning strike
This commit is contained in:
parent
ec56644e03
commit
ad970aa667
4
init.lua
4
init.lua
@ -18,6 +18,8 @@ local function punchy(pos, player)
|
||||
damage_groups = {fleshy = 5}
|
||||
}, nil)
|
||||
|
||||
minetest.sound_play("player_damage", {pos = pos, gain = 1.0})
|
||||
|
||||
minetest.chat_send_player(player:get_player_name(),
|
||||
green .. S("Stop hitting yourself!"))
|
||||
end
|
||||
@ -496,6 +498,8 @@ local lucky_block = function(pos, digger)
|
||||
max_hear_distance = 25
|
||||
})
|
||||
|
||||
minetest.set_node(pos, {name = "fire:permanent_flame"})
|
||||
|
||||
-- falling nodes
|
||||
elseif action == "fal" then
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user