mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-04 21:10:04 -04:00
Merge 818be4e2fc
into be4dd6479d
This commit is contained in:
commit
8ae00e2a68
2 changed files with 8 additions and 0 deletions
|
@ -22,3 +22,6 @@
|
||||||
|
|
||||||
# The radius of a TNT explosion
|
# The radius of a TNT explosion
|
||||||
#tnt_radius = 3
|
#tnt_radius = 3
|
||||||
|
|
||||||
|
#Notify player with the location of their dropped bones
|
||||||
|
#show_bone_pos = false
|
||||||
|
|
|
@ -181,6 +181,11 @@ minetest.register_on_dieplayer(function(player)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.set_node(pos, {name="bones:bones", param2=param2})
|
minetest.set_node(pos, {name="bones:bones", param2=param2})
|
||||||
|
|
||||||
|
if minetest.setting_getbool("show_bone_pos") then
|
||||||
|
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))
|
||||||
|
end
|
||||||
|
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
|
|
Loading…
Add table
Reference in a new issue