illuna_aestival: add hint for death location, closes #23

master
Milan 2021-02-01 19:02:04 +01:00
parent 695f64f86d
commit 9756282802
2 changed files with 8 additions and 0 deletions

View File

@ -16,3 +16,4 @@ dofile(path .. "/replacer.lua")
dofile(path .. "/mobs.lua")
dofile(path .. "/portal.lua")
dofile(path .. "/moreblocks.lua")
dofile(path .. "/functions.lua")

View File

@ -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)