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

helix / Consumable

Interface: Consumable โ€‹

Defined in: core/values/item/consumable.ts:60

The consumable component (1.21.2+), for ItemBuilder.consumable.

Properties โ€‹

animation? โ€‹

readonly optional animation?: ItemUseAnimation

Defined in: core/values/item/consumable.ts:64

Default eat.


consumeSeconds? โ€‹

readonly optional consumeSeconds?: number

Defined in: core/values/item/consumable.ts:62

Seconds to finish using it (default 1.6). A huge value makes an item that's held in use and never eaten.


hasConsumeParticles? โ€‹

readonly optional hasConsumeParticles?: boolean

Defined in: core/values/item/consumable.ts:68

The item particles while using it (default true).


onConsumeEffects? โ€‹

readonly optional onConsumeEffects?: readonly ConsumeEffect[]

Defined in: core/values/item/consumable.ts:69


sound? โ€‹

readonly optional sound?: ConsumeSound

Defined in: core/values/item/consumable.ts:66

Played while using and on finishing.

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