illuna_aestival: add hint for death location, closes #23
parent
695f64f86d
commit
9756282802
|
@ -16,3 +16,4 @@ dofile(path .. "/replacer.lua")
|
|||
dofile(path .. "/mobs.lua")
|
||||
dofile(path .. "/portal.lua")
|
||||
dofile(path .. "/moreblocks.lua")
|
||||
dofile(path .. "/functions.lua")
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
minetest.register_on_dieplayer(function(player)
|
||||
local player_name = player:get_player_name()
|
||||
local pos = vector.round(player:get_pos())
|
||||
local pos_string = minetest.pos_to_string(pos)
|
||||
minetest.chat_send_player(player_name, core.colorize("#F6A10A", "You have died at "..minetest.pos_to_string(pos).. ". Go and grab your stuff, before somebody else does! ;-)"))
|
||||
end)
|
||||
|
Loading…
Reference in New Issue