mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
fixed tasklookaround
This commit is contained in:
parent
b7f9d3f1c5
commit
3d1dba6b86
14 changed files with 58 additions and 24 deletions
|
|
@ -14,6 +14,7 @@ class Chicken extends Animal{
|
|||
$this->ai->addTask(new TaskRandomWalk(0.25));
|
||||
$this->ai->addTask(new TaskLookAtPlayer(6));
|
||||
$this->ai->addTask(new TaskPanic(0.375));
|
||||
$this->ai->addTask(new TaskLookAround());
|
||||
}
|
||||
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