Closed MHanak1 closed 2 months ago
i want to have an armor piece that adds an extra back slot. here is my code:
public final class LightCombatArmorItem extends ArmorItem implements GeoItem { @Override public Multimap<EntityAttribute, EntityAttributeModifier> getAttributeModifiers(ItemStack stack, EquipmentSlot slot) { var modifiers = super.getAttributeModifiers(slot); if (slot == EquipmentSlot.CHEST && stack.getHolder() != null) { SlotAttributes.addSlotModifier(modifiers, "chest/back", ??? , 1, EntityAttributeModifier.Operation.ADDITION); } return modifiers; } // more unimportant stuff here }
the problem is i cannot get the uuid argument, because the method i am overriding in ArmorItem does not require it.
ArmorItem
I am closing this, since i decided to write my own system for what i need
i want to have an armor piece that adds an extra back slot. here is my code:
the problem is i cannot get the uuid argument, because the method i am overriding in
ArmorItem
does not require it.