Experimental

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

Report a problem
Typecontent.luau

HeldItem

The item form of a block, under the block's own key: placing it puts the block down. It shows the block's own name when the block has a name or the item a model or a colour, and its base item's otherwise.

Fields

heldItem.base: string?
#

the vanilla item it is built on, a minecraft: key; default "minecraft:paper", or with vanilla the vanilla block's item

heldItem.color: number?
#

colour of the block's name, 0xRRGGBB

heldItem.model: string?
#

a model key (see content.model); omitted, the base item's own look

heldItem.stack: number?
#

max stack size, 1..99