getSide($face); //TODO: amethyst buds can spawn in water - we need waterlogging support for this $newStage = null; if($adjacent->getTypeId() === BlockTypeIds::AIR){ $newStage = AmethystCluster::STAGE_SMALL_BUD; }elseif( $adjacent->getTypeId() === BlockTypeIds::AMETHYST_CLUSTER && $adjacent instanceof AmethystCluster && $adjacent->getStage() < AmethystCluster::STAGE_CLUSTER && $adjacent->getFacing() === $face ){ $newStage = $adjacent->getStage() + 1; } if($newStage !== null){ BlockEventHelper::grow($adjacent, VanillaBlocks::AMETHYST_CLUSTER()->setStage($newStage)->setFacing($face), null); } } } public function getDropsForCompatibleTool(Item $item) : array{ return []; } }