Skip to main content

Prevent Accessory Equip (Power Type)

Stops the holder from putting accessories on. Anything already equipped stays where it is, and apoli:prevent_accessory_unequip covers the other half.

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

note

This type only exists when an accessory mod is installed: Trinkets, Accessories or Curios, depending on your loader. A pack that uses it must depend on one.

Fields

FieldTypeDefaultDescription
slotsArray of slots[]The accessory slots to block. A string is slot, group/slot or group/slot/index, such as "ring", "hand/ring" or "hand/ring/0". An empty list means every slot.
allow_in_creativeBooleantrueLets players in creative mode ignore the restriction, so building and testing still work.
item_conditionItem Condition TypeoptionalOnly blocks items that pass it.

Examples

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

This blocks rings entirely.

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

This origin can't wear anything matching the minecraft:iron_tool_materials tag in any slot, in creative mode too.