Prevent Trinket Equip/Unequip
Prevents the player from equipping or unequipping a trinket.
Type IDs: shappoli:prevent_trinket_equip and shappoli:prevent_trinket_unequip
Note
This power requires Trinkets to be installed.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
slot |
Trinket Slot | optional | The slot to prevent the player from equipping or unequipping a trinket from. |
slots |
Array of Trinket Slot | optional | The slots to prevent the player from equipping or unequipping a trinket from. |
item_condition |
Item Condition Type | optional | Condition that must be met for the action to trigger. |
allow_in_creative |
Boolean | true |
Whether this power is ignored in creative mode. |
Examples
This example will prevent the player from equipping any trinket in the chest group.
{
"type": "shappoli:prevent_trinket_unequip",
"slots": [
{
"name": "ring"
}
],
"allow_in_creative": false
}
This example will prevent the player from unequipping any trinket from the ring slot, even in creative mode.