#(idyllicx) Making leather armor last as long as diamond/netherite

16 messages · Page 1 of 1 (latest)

red sphinx
#

Hi guys! Any idea how I can achieve this using Denizen?

flint thornBOT
#

(idyllicx) Making leather armor last as long as diamond/netherite

flint thornBOT
#

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>

boreal matrix
#

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?

vestal orchid
#

!e item takes damage

cloud ravineBOT
# vestal orchid !e item takes damage
Group

Player

Event Lines

player item takes damage player <item> takes damage

Triggers

when the player damages an item.

Has Player

Always. - this adds switches flagged:<flag name> + permission:<node>, in addition to the <player> link.

Context

<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.

Determine

ElementTag(Number) to set the amount of damage the item will take.

Has Known Location

True - this adds switches in:<area> + location_flagged:<flag name>.

Cancellable

True - this adds <context.cancelled> and determines cancelled + cancelled:false.

autumn tundra
#

!m durability

cloud ravineBOT
# autumn tundra !m durability

Changes the durability of damageable items.

Object

ItemTag

Input

ElementTag(Number)

Tags

<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...

autumn tundra
#

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

trail gardenBOT
#
Thread Closing Reminder

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