Appearance
helix / HoldingOptions
Interface: HoldingOptions
Defined in: core/values/holding.ts:6
Options for holdingPredicate.
Properties
exact?
optionalexact?:boolean
Defined in: core/values/holding.ts:19
Match the item's full identity (components/NBT), not just its base id.
Off by default: the predicate keys on the base id alone (zzz/holding/<id>), which is cheap and lets every definition of the same base item share one file
- but two items with the same base id and different components would collide on that name. Set
exact: trueto fold a hash of the item's full rendered stack into the slug, so distinct components get distinct predicates (matching the exact item, at the cost of one predicate file per variant).
slot?
optionalslot?: keyof EquipmentSpec
Defined in: core/values/holding.ts:8
Equipment slot to test (default mainhand - a player's selected item).