#Display durability percentage in lore.

1 messages · Page 1 of 1 (latest)

gleaming mason
#

What's the simplest way to display this in-general formula in the lore of the item (where the component referenced is the Item's component.

Durability Percent: [{(max_damage - damage) * 100}/max_damage]%

umbral atlasBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1722257705:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

gleaming mason
#

anything in brackets is just a maths function

hot dune
#

macros

gleaming mason
#

okay but

#

ik

#

how would a command like that look

#

cause I can't think of a way do use macros to do it

meager beacon
#

oh my god TIL macros

#

macros look so gud

distant spear
#

The command will get very long and bulky since it’s an inline item modifier but eh

#

You can also try and use regular json text component shenanigans to insert the values and then use a non macro item modifier

gleaming mason
crisp cape
#

No

gleaming mason
#

k thx