60 $playerBlockPos = $player->getPosition()->floor();
61 $directionVector = $blockReplace->position->subtractVector($playerBlockPos)->normalize();
62 $angle = rad2deg(atan2($directionVector->getZ(), $directionVector->getX()));
64 if($angle <= 45 || 315 <= $angle || (135 <= $angle && $angle <= 225)){
67 $this->axis = Axis::Z;
71 $this->dead = !$this->isCoveredWithWater();
73 return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player);