mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
better breeding, baby entities will follow their parent
This commit is contained in:
parent
eff034e897
commit
eab6573b84
10 changed files with 64 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue