Skip to content

CropComponent

Parameters

NameTypeDefaultDescription
stateNameStringmorefood:stage
maxStageNumber7

Methods

onPlayerInteract

onRandomTick

canGrow

getGrowthAmount

applyGrowth

grow

Example

js
new CropComponent("stage", 7);

Not associated with or approved by Mojang Studios or Microsoft