mirror of
https://notabug.org/TenPlus1/lucky_block.git
synced 2024-08-21 03:14:07 +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}
|
damage_groups = {fleshy = 5}
|
||||||
}, nil)
|
}, nil)
|
||||||
|
|
||||||
|
minetest.sound_play("player_damage", {pos = pos, gain = 1.0})
|
||||||
|
|
||||||
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!"))
|
||||||
end
|
end
|
||||||
@ -496,6 +498,8 @@ local lucky_block = function(pos, digger)
|
|||||||
max_hear_distance = 25
|
max_hear_distance = 25
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.set_node(pos, {name = "fire:permanent_flame"})
|
||||||
|
|
||||||
-- falling nodes
|
-- falling nodes
|
||||||
elseif action == "fal" then
|
elseif action == "fal" then
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user