fixed tasklookaround

This commit is contained in:
GameHerobrine 2024-01-12 05:54:19 +03:00
parent b7f9d3f1c5
commit 3d1dba6b86
14 changed files with 58 additions and 24 deletions

View file

@ -49,7 +49,13 @@ class MobController
public function isRotationCompleted(){
return $this->finalHeadYaw === $this->entity->headYaw;
}
public function setMovingTarget($x, $y, $z, $speed){
$this->moveToX = $x;
$this->moveToY = $y;
$this->moveToZ = $z;
$this->speed = $speed;
$this->updateMove = true;
}
public function setMovingOffset($x, $y, $z, $speed){
$this->moveToX = $this->entity->x + ($x);
$this->moveToY = $this->entity->y + ($y);