Experimental

An early preview: docs, the API and the dashboard may change or break.

Report a problem

types.ItemType

Signals that fire only for stacks of one item type, or of any type in an item tag.

Signals

itemType.consumed: types.Signal<types.ConsumeEvent>
#
read only

Fires after a player eats or drinks an item of the type; only for items declared consumable.

itemType.used: types.Signal<types.UseEvent>
#
read only

Fires after a player right-clicks with an item of the type, in the air or on a block that doesn't take the click.

Fields

itemType.id: string
#
read only

The item id, or the tag's id.