68 $world = $this->position->getWorld();
69 if($this->age < self::STAGE_MATURE && $item instanceof
Fertilizer){
72 if(BlockEventHelper::grow($this, $block, $player)){
75 }elseif(($dropAmount = $this->getBerryDropAmount()) > 0){
76 $world->setBlock($this->position, $this->setAge(self::STAGE_BUSH_NO_BERRIES));
77 $world->dropItem($this->position, $this->
asItem()->setCount($dropAmount));
89 $count = match($this->age){
90 self::STAGE_MATURE => FortuneDropHelper::discrete($item, 2, 3),
91 self::STAGE_BUSH_SOME_BERRIES => FortuneDropHelper::discrete($item, 1, 2),
95 $this->asItem()->setCount($count)