#How do you modify armor values 1.20.1

11 messages · Page 1 of 1 (latest)

worldly cradle
#

I tried multiple different terms but nothing seems to be working

I got this as the base item tier/tag

ItemEvents.armorTierRegistry(event => {
event.add('dragonite_tier', tier => {
tier.toughness = 6;
tier.knockbackResistance = 0.2;
});
});

But when I try adding
tier.armorProtection it just says it's an invalid term.

I also tried modifying induvidual armor pieces using,

.armor
But it says that's also not a valid term.
What should I be using?
Toughness and knockbac is working

tall nebulaBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

hazy copper
#

Are you on a phone?

worldly cradle
worldly cradle
#

That's probably not relevant tho because everything else works as intended

ivory dune
#
ItemEvents.armorTierRegistry(event => {
  event.add('copper', tier => {
    tier.durabilityMultiplier = 30 // Each slot will be multiplied with [13, 15, 16, 11]
    tier.slotProtections = [1, 3, 4, 1] // Slot indicies are [FEET, LEGS, BODY, HEAD]
    tier.enchantmentValue = 8
    tier.equipSound = 'minecraft:item.armor.equip_iron'
    tier.repairIngredient = '#forge:ingots/copper'
    tier.toughness = 0.0 // diamond has 2.0, netherite 3.0
    tier.knockbackResistance = 0.0
  })
})
#

Pretty sure thats an example from the wiki

worldly cradle