Skip to content

SaplingComponent

Parameters

NameTypeDefaultDescription
generatorSaplingGenerator
stateNameStringmorefood:stage

Methods

onPlayerInteract

onRandomTick

generate

canGrow

grow

Example

js
var generator = new SaplingGenerator();
new SaplingComponent(generator, "stage");

Not associated with or approved by Mojang Studios or Microsoft