bones: colorize message, colorize infotext for fresh bones (infotext not yet working)
This commit is contained in:
parent
35c0025fda
commit
f0d43fc90f
1 changed files with 3 additions and 3 deletions
|
@ -210,7 +210,7 @@ minetest.register_on_dieplayer(function(player)
|
|||
|
||||
local param2 = minetest.dir_to_facedir(player:get_look_dir())
|
||||
minetest.set_node(pos, {name = "bones:bones", param2 = param2})
|
||||
minetest.chat_send_player(player_name, "Your stuff is waiting for you at "..minetest.pos_to_string(pos).. ". Go and grab it! ;-)")
|
||||
minetest.chat_send_player(player_name, core.colorize("#F6A10A", "Your stuff is waiting for you at "..minetest.pos_to_string(pos).. ". Hurry. ;-)"))
|
||||
minetest.log("action", player_name.." left their bones at "..minetest.pos_to_string(pos))
|
||||
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
@ -235,7 +235,7 @@ minetest.register_on_dieplayer(function(player)
|
|||
meta:set_string("owner", player_name)
|
||||
|
||||
if share_bones_time ~= 0 then
|
||||
meta:set_string("infotext", player_name .. "'s fresh bones")
|
||||
meta:set_string("infotext", core.colorize("#F35400", player_name .. "'s fresh bones"))
|
||||
|
||||
if share_bones_time_early == 0 or not minetest.is_protected(pos, player_name) then
|
||||
meta:set_int("time", 0)
|
||||
|
@ -245,6 +245,6 @@ minetest.register_on_dieplayer(function(player)
|
|||
|
||||
minetest.get_node_timer(pos):start(10)
|
||||
else
|
||||
meta:set_string("infotext", player_name.."'s bones")
|
||||
meta:set_string("infotext", core.colorize("#37CA39", player_name.."'s bones"))
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue