Skip to content

helix / holdingPredicateName

Function: holdingPredicateName()

holdingPredicateName(item, opts, dp): string

Defined in: core/values/holding.ts:47

The canonical zzz/holding/<slug> name for a held-item predicate - the one place the slug convention lives, so every consumer (spool's Selector.holding, twine's behavioural items, any bubble-style mechanism) names the file the same way and shares it. base-id only by default; component-aware when exact is set (see HoldingOptions.exact). version disambiguates the exact-match hash and is fixed for a build.

Parameters

item

ItemValue

opts

HoldingOptions

dp

Datapack

Returns

string

Released under the MIT License · Credits