mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-04 21:10:04 -04:00
Merge 05bc6100f2
into 24578ca968
This commit is contained in:
commit
3a10b14261
2 changed files with 9 additions and 0 deletions
|
@ -26,3 +26,6 @@
|
||||||
# Enable the stairs mod ABM that replaces the old 'upside down'
|
# Enable the stairs mod ABM that replaces the old 'upside down'
|
||||||
# stair and slab nodes in old maps with the new param2 versions.
|
# stair and slab nodes in old maps with the new param2 versions.
|
||||||
#enable_stairs_replace_abm = false
|
#enable_stairs_replace_abm = false
|
||||||
|
|
||||||
|
# Notify player with the location of their dropped bones
|
||||||
|
#show_bone_pos = false
|
||||||
|
|
|
@ -181,6 +181,12 @@ 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
|
||||||
|
local pos_string = minetest.pos_to_string(pos)
|
||||||
|
minetest.chat_send_player(player_name, "Your bones were left at "..pos_string)
|
||||||
|
minetest.log("action", player_name.." left their bones at "..pos_string)
|
||||||
|
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