getSide(Facing::DOWN)->getTypeId() === BlockTypeIds::SOUL_SAND; } public function ticksRandomly() : bool{ return $this->age < self::MAX_AGE; } public function onRandomTick() : void{ if($this->age < self::MAX_AGE && mt_rand(0, 10) === 0){ //Still growing $block = clone $this; $block->age++; BlockEventHelper::grow($this, $block, null); } } public function getDropsForCompatibleTool(Item $item) : array{ return [ $this->asItem()->setCount($this->age === self::MAX_AGE ? FortuneDropHelper::discrete($item, 2, 4) : 1) ]; } }