Skip to main content

Prevent Accessory Unequip (Power Type)

Stops the holder from removing accessories once they are on. It pairs naturally with a cursed item the player can't get rid of.

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

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 lock. 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.
item_conditionItem Condition TypeoptionalOnly blocks items that pass it.

Example

{
  "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
  }
}

This cursed amulet, an echo shard, can't be taken off while the mypack:curse_charge resource is above 0.