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

helix / TypeSpecificSpec

Type Alias: TypeSpecificSpec โ€‹

TypeSpecificSpec = object & PlayerSpec | { inOpenWater?: boolean; type: "fishing_hook"; } | { blocksSetOnFire?: Bound; entityStruck?: EntityPredicateSpec; type: "lightning"; } | { hasRaid?: boolean; isCaptain?: boolean; type: "raider"; } | { color?: DyeColor; sheared?: boolean; type: "sheep"; } | { size?: Bound; type: "slime"; } | { type: VariantMob; variant: IdList; }

Defined in: core/values/predicate/types/type-specific.ts:53

A check that only applies to one kind of entity, chosen by type.

Union Members โ€‹

object & PlayerSpec


Type Literal โ€‹

{ inOpenWater?: boolean; type: "fishing_hook"; }


Type Literal โ€‹

{ blocksSetOnFire?: Bound; entityStruck?: EntityPredicateSpec; type: "lightning"; }


Type Literal โ€‹

{ hasRaid?: boolean; isCaptain?: boolean; type: "raider"; }


Type Literal โ€‹

{ color?: DyeColor; sheared?: boolean; type: "sheep"; }

color was removed in 1.21.5.


Type Literal โ€‹

{ size?: Bound; type: "slime"; }

Slimes and magma cubes.


Type Literal โ€‹

{ type: VariantMob; variant: IdList; }

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