mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-28 09:36:27 -04:00
Notify player with the location of their dropped bones
Also, log the action so you (or the server owner) can find the bones even if you weren't looking at the chat at the time.
This commit is contained in:
parent
03c00a831d
commit
f90a128f6c
1 changed files with 3 additions and 0 deletions
|
@ -181,6 +181,9 @@ minetest.register_on_dieplayer(function(player)
|
|||
end
|
||||
|
||||
minetest.set_node(pos, {name="bones:bones", param2=param2})
|
||||
|
||||
minetest.chat_send_player(player_name, "Your bones were left at "..minetest.pos_to_string(pos))
|
||||
minetest.log("action", player_name.." left their bones at "..minetest.pos_to_string(pos))
|
||||
|
||||
local meta = minetest.get_meta(pos)
|
||||
local inv = meta:get_inventory()
|
||||
|
|
Loading…
Add table
Reference in a new issue