22declare(strict_types=1);
27use pocketmine\block\utils\CoralTypeTrait;
36 $this->position->getWorld()->scheduleDelayedBlockUpdate($this->position, mt_rand(40, 200));
42 $world = $this->position->getWorld();
45 foreach($this->position->sides() as $vector3){
46 if($world->getBlock($vector3) instanceof
Water){
52 BlockEventHelper::die($this, (clone $this)->setDead(
true));
58 return [(clone $this)->setDead(true)->asItem()];
getDropsForCompatibleTool(Item $item)