#(idyllicx) Making leather armor last as long as diamond/netherite
16 messages · Page 1 of 1 (latest)
(idyllicx) Making leather armor last as long as diamond/netherite
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
Unfortunately without a custom durability system of your own, you cannot change the maximum durability of an item. Perhaps with some flags you can do some math on when the item should be taking damage instead?
!e item takes damage
Player
player item takes damage player <item> takes damage
when the player damages an item.
Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.
<context.damage> returns the amount of damage the item has taken.
<context.original_damage> returns the original amount of damage the item would have taken, before ...
<context.item> returns the item that has taken damage.
<context.slot> returns the slot of the item that has taken damage. This value is a bit of a hack and is not reliable.
ElementTag(Number) to set the amount of damage the item will take.
True - this adds switches in:<area> + location_flagged:<flag name>.
True - this adds <context.cancelled> and determines cancelled + cancelled:false.
!m durability
Changes the durability of damageable items.
ItemTag
ElementTag(Number)
<ItemTag.durability> Returns the current durability (number of uses) on the item.
<ItemTag.max_durability> Returns the maximum durability (number of uses) of this item. For use wit...
<ItemTag.repairable> Returns whether the item can be repaired. If this returns true, it will enabl...
you'll need to change this when armor/durable tools are supposed to be damaged
if you want it to be truly customizable though you'll need to account for things like repairing, enchantments, etc
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@red sphinx