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

helix / LootFunctionSpec

Type Alias: LootFunctionSpec โ€‹

LootFunctionSpec = { args: object; id: keyof LootFunctionArgs; kind: "vanilla"; } | { json: Record<string, unknown>; kind: "raw"; } | { entity: LootEntity; kind: "set_lore"; lines: LoreLine[]; } | { kind: "enchant_with_levels"; levels: NumberProvider; treasure: boolean; }

Defined in: core/values/loot-function.ts:21

A loot function's input: a vanilla function's typed arguments, or one of the shortcuts below.

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