Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / holdingPredicate

Function: holdingPredicate() โ€‹

holdingPredicate(dp, like, opts?): string | PredicateRef

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

Registers the holding predicate for item once and returns its ref. Built with Predicate.holding from the same item you give.

Parameters โ€‹

dp โ€‹

Datapack

like โ€‹

ItemLike

opts? โ€‹

HoldingOptions = {}

Returns โ€‹

string | PredicateRef

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.