Jump to content

Elyon13

Members
  • Posts

    1
  • Joined

  • Last visited

Elyon13's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I believe this is the code that the item armor uses to do thisI believe this is the code that the item armor uses to do this public Multimap<String, AttributeModifier> getItemAttributeModifiers(EntityEquipmentSlot equipmentSlot) { Multimap<String, AttributeModifier> multimap = super.getItemAttributeModifiers(equipmentSlot); if (equipmentSlot == this.armorType) { multimap.put(SharedMonsterAttributes.ARMOR.getName(), new AttributeModifier(ARMOR_MODIFIERS[equipmentSlot.getIndex()], "Armor modifier", (double)this.damageReduceAmount, 0)); multimap.put(SharedMonsterAttributes.ARMOR_TOUGHNESS.getName(), new AttributeModifier(ARMOR_MODIFIERS[equipmentSlot.getIndex()], "Armor toughness", (double)this.toughness, 0)); } return multimap; }
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.