From b93b6d1153fbacdbb6b5290f644c0b2c3c3cb597 Mon Sep 17 00:00:00 2001 From: Kazooo Date: Sat, 6 Apr 2024 21:21:51 +0000 Subject: [PATCH] Improved entity infotext Improved entity infotext by moving entity name to top and showing entity type aswell --- api.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api.lua b/api.lua index 7598f57..851c5ed 100644 --- a/api.lua +++ b/api.lua @@ -718,9 +718,9 @@ function mob_class:update_tag(newname) end end - self.infotext = "Health: " .. self.health .. " / " .. prop.hp_max + self.infotext = "Entity: " .. self.name .. " | Type: " .. self.type + .. ("\nHealth: " .. self.health .. " / " .. prop.hp_max) .. (self.owner == "" and "" or "\nOwner: " .. self.owner) - .. ("\nEntity: " .. self.name) .. text -- set infotext changes