Skip to content

HangingComponent

Parameters

NameTypeDefaultDescription
cropItemString
stateNameStringmorefood:stage
maxStageNumber7

Methods

onPlayerInteract

pickItem

Example

js
new HangingComponent("minecraft:apple", "stage", 7);

Not associated with or approved by Mojang Studios or Microsoft