The ItemCompostableComponent class in @minecraft/server.
Class in @minecraft/server
Extends ItemComponent
import { ItemCompostableComponent } from '@minecraft/server';Constructor
Section titled “Constructor”protected constructor();Properties
Section titled “Properties”compostingChance
Section titled “compostingChance”read-only
readonly compostingChance: number;componentId
Section titled “componentId”static read-only
static readonly componentId = 'minecraft:compostable';Inherited
Section titled “Inherited”From ItemComponent: typeId, isValid