76 $world = $this->position->getWorld();
77 if($this->age < self::STAGE_MATURE && $item instanceof
Fertilizer){
80 if(BlockEventHelper::grow($this, $block, $player)){
83 }elseif(($dropAmount = $this->getBerryDropAmount()) > 0){
84 $world->setBlock($this->position, $this->setAge(self::STAGE_BUSH_NO_BERRIES));
85 $world->dropItem($this->position, $this->asItem()->setCount($dropAmount));
97 $count = match($this->age){
98 self::STAGE_MATURE => FortuneDropHelper::discrete($item, 2, 3),
99 self::STAGE_BUSH_SOME_BERRIES => FortuneDropHelper::discrete($item, 1, 2),
103 $this->asItem()->setCount($count)