rail logic ported from 1.5.2, disabled 1 action in mobai

This commit is contained in:
GameHerobrine 2023-05-14 20:11:50 +03:00
parent 8bb5667a55
commit 218a000c41
6 changed files with 278 additions and 164 deletions

View file

@ -17,7 +17,7 @@ class Sheep extends Animal{
}elseif($this->isBaby() and Entity::$updateOnTick){
$this->server->schedule(mt_rand(400, 1000), [$this, "eatGrass"], null, true); //unknown time
}*/
$this->ai->addTask(new TaskEatTileGoal());
//$this->ai->addTask(new TaskEatTileGoal()); TODO enable after grass spread fix
}
public function createSaveData(){
$data = parent::createSaveData();