Prevent Accessory Unequip (Power Type)

Stops the entity taking accessories off.

Stops the holder removing accessories once they are on. The natural pairing is a cursed item the player cannot get rid of.

Type ID: apoli:prevent_accessory_unequip (alias apoli:prevent_trinket_unequip)

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.
item_conditionItem ConditionoptionalOnly block items matching this.

Example

A cursed amulet you cannot take off while it still has charge:

{
  "type": "apoli:prevent_accessory_unequip",
  "item_condition": {
    "type": "apoli:ingredient",
    "ingredient": { "item": "minecraft:echo_shard" }
  },
  "condition": {
    "type": "apoli:resource",
    "resource": "mypack:curse_charge",
    "comparison": ">",
    "compare_to": 0
  }
}

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.