ported 1.5.2 way of mob movement but broke everything else

This commit is contained in:
GameHerobrine 2024-01-09 06:44:19 +03:00
parent 8684e3092a
commit 5161d087ba
5 changed files with 169 additions and 93 deletions

View file

@ -11,10 +11,10 @@ abstract class Creature extends Living{
$this->setHealth(isset($this->data["Health"]) ? $this->data["Health"] : 1, "generic");
$this->enableAutojump = true;
//$this->setName((isset($mobs[$this->type]) ? $mobs[$this->type]:$this->type));
$this->ai->addTask(new TaskLookAround());
$this->ai->addTask(new TaskRandomWalk());
$this->ai->addTask(new TaskLookAtPlayer());
$this->ai->addTask(new TaskSwimming());
//$this->ai->addTask(new TaskLookAround());
//$this->ai->addTask(new TaskRandomWalk());
//$this->ai->addTask(new TaskLookAtPlayer());
//$this->ai->addTask(new TaskSwimming());
}
public function createSaveData(){