Prevent Accessory Equip (Power Type)

Stops the entity equipping accessories.

Stops the holder putting accessories on. Anything already equipped stays where it is — use apoli:prevent_accessory_unequip for the other half.

Type ID: apoli:prevent_accessory_equip (alias apoli:prevent_trinket_equip)

Fields

FieldTypeDefaultDescription
slotsarray of String or objects[]Which accessory slots to look at. A string is slot, group/slot, or group/slot/index — for example "ring", "hand/ring", "hand/ring/0". An empty list means every slot.
allow_in_creativeBooleantrueLet creative-mode players ignore the restriction, so building and testing still work.
item_conditionItem ConditionoptionalOnly block items matching this.

Examples

No rings at all:

{
  "type": "apoli:prevent_accessory_equip",
  "slots": ["hand/ring"]
}

An origin that cannot wear anything made of iron, in any slot, creative included:

{
  "type": "apoli:prevent_accessory_equip",
  "allow_in_creative": false,
  "item_condition": {
    "type": "apoli:ingredient",
    "ingredient": { "tag": "minecraft:iron_tool_materials" }
  }
}

Needs an accessory mod — Trinkets, Accessories or Curios, depending on your loader. These types do not exist without one, so a pack using them must depend on it.