color = DyeColor::WHITE(); parent::__construct($idInfo, $name, $breakInfo ?? new BlockBreakInfo(0.5, BlockToolType::SHOVEL)); } public function onNearbyBlockChange() : void{ if(($block = $this->checkAdjacentWater()) !== null){ $this->pos->getWorld()->setBlock($this->pos, $block); }else{ $this->startFalling(); } } public function tickFalling() : ?Block{ return $this->checkAdjacentWater(); } private function checkAdjacentWater() : ?Block{ foreach(Facing::ALL as $i){ if($i === Facing::DOWN){ continue; } if($this->getSide($i) instanceof Water){ return VanillaBlocks::CONCRETE()->setColor($this->color); } } return null; } }