From f90a128f6c7e3e554fcd77d9bb6800415e919c60 Mon Sep 17 00:00:00 2001 From: Craig Davison Date: Sat, 17 Jan 2015 20:22:37 +0000 Subject: [PATCH] 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. --- mods/bones/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/bones/init.lua b/mods/bones/init.lua index f35d5192..5ae806a0 100644 --- a/mods/bones/init.lua +++ b/mods/bones/init.lua @@ -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()