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