init mod
This commit is contained in:
commit
49c523762c
8
init.lua
Normal file
8
init.lua
Normal file
@ -0,0 +1,8 @@
|
||||
minetest.register_on_respawnplayer(function(player)
|
||||
if player:get_hp() == 0 then
|
||||
local name = player:get_player_name()
|
||||
player:set_hp(20)
|
||||
minetest.log("action", "respawn_patch: " .. name .. " restoration of life")
|
||||
minetest.chat_send_all(dump(player:get_hp()))
|
||||
end
|
||||
end)
|
Loading…
Reference in New Issue
Block a user