#Changing plate armor attributes on beta release of Tinkers Construct

3 messages · Page 1 of 1 (latest)

prime sierra
#

I'm trying to edit the attribute armorKnockbackResistance on the beta release of Tinkers Construct, when I run my code it loads without errors but it's not affecting the armor.

stiff nightBOT
#

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

prime sierra
#
ItemEvents.modification(event => {
  
  event.modify('tconstruct:plate_chestplate', item => {
    item.armorKnockbackResistance = 0
  })
    event.modify('tconstruct:plate_leggings', item => {
    item.armorKnockbackResistance = 0
  })
    event.modify('tconstruct:plate_helmet', item => {
    item.armorKnockbackResistance = 0
  })
    event.modify('tconstruct:plate_boots', item => {
    item.armorKnockbackResistance = 0
  })
   
})```