From 129b24b159592d424c1dcf30254530436c8d04ef Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Tue, 12 Mar 2024 11:13:16 +0000 Subject: [PATCH] add entity name in infotext --- api.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.lua b/api.lua index b7aa64c..7ef63b9 100644 --- a/api.lua +++ b/api.lua @@ -14,7 +14,7 @@ local use_vh1 = minetest.get_modpath("visual_harm_1ndicators") -- Global mobs = { mod = "redo", - version = "20240303", + version = "20240312", translate = S, invis = minetest.global_exists("invisibility") and invisibility or {}, 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.owner == "" and "" or "\nOwner: " .. self.owner) + .. ("\nEntity: " .. self.name) .. text -- set infotext changes