better breeding, baby entities will follow their parent

This commit is contained in:
GameHerobrine 2024-03-12 06:50:01 +03:00
parent eff034e897
commit eab6573b84
10 changed files with 64 additions and 7 deletions

View file

@ -18,7 +18,7 @@ class Chicken extends Animal{
$this->ai->addTask(new TaskSwimming());
$this->ai->addTask(new TaskTempt(1.0));
$this->ai->addTask(new TaskMate(1.0));
$this->ai->addTask(new TaskFollowParent(1.0));
}
public function isFood($id){
return $id === PUMPKIN_SEEDS || $id === MELON_SEEDS || $id === BEETROOT_SEEDS || $id === WHEAT_SEEDS;