wip new tasks, readme fix

This commit is contained in:
GameHerobrine 2022-12-20 13:40:51 +03:00
parent 22603a9085
commit 1b85ffd4c6
5 changed files with 68 additions and 3 deletions

View file

@ -15,7 +15,8 @@ abstract class Creature extends Living{
//$this->setName((isset($mobs[$this->type]) ? $mobs[$this->type]:$this->type));
if(Entity::$updateOnTick){
$this->ai->addTask(new TaskLookAround());
$this->ai->addTask(new TaskRandomWalk());
$this->ai->addTask(new TaskRandomWalk());
//$this->ai->addTask(new TaskLookAtPlayer());
}
}
@ -66,4 +67,4 @@ abstract class Creature extends Living{
$player->dataPacket($pk);
}
}
}