[Question] Adding an extra trinket slot from an armor piece
MHanak1 opened this issue ยท 1 comments
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.