mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2025-03-28 06:50:29 +01:00
add entity name in infotext
This commit is contained in:
parent
35cc60c355
commit
129b24b159
3
api.lua
3
api.lua
@ -14,7 +14,7 @@ local use_vh1 = minetest.get_modpath("visual_harm_1ndicators")
|
|||||||
-- Global
|
-- Global
|
||||||
mobs = {
|
mobs = {
|
||||||
mod = "redo",
|
mod = "redo",
|
||||||
version = "20240303",
|
version = "20240312",
|
||||||
translate = S,
|
translate = S,
|
||||||
invis = minetest.global_exists("invisibility") and invisibility or {},
|
invis = minetest.global_exists("invisibility") and invisibility or {},
|
||||||
node_snow = minetest.registered_aliases["mapgen_snow"]
|
node_snow = minetest.registered_aliases["mapgen_snow"]
|
||||||
@ -717,6 +717,7 @@ function mob_class:update_tag(newname)
|
|||||||
|
|
||||||
self.infotext = "Health: " .. self.health .. " / " .. prop.hp_max
|
self.infotext = "Health: " .. self.health .. " / " .. prop.hp_max
|
||||||
.. (self.owner == "" and "" or "\nOwner: " .. self.owner)
|
.. (self.owner == "" and "" or "\nOwner: " .. self.owner)
|
||||||
|
.. ("\nEntity: " .. self.name)
|
||||||
.. text
|
.. text
|
||||||
|
|
||||||
-- set infotext changes
|
-- set infotext changes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user