mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
skeletons are peaceful and will not attack player, entity will seaatch 16 block radius to find attackable player
This commit is contained in:
parent
ed30995f9d
commit
395e35ad5d
4 changed files with 17 additions and 4 deletions
|
|
@ -6,6 +6,7 @@ class Skeleton extends Monster{
|
|||
parent::__construct($level, $eid, $class, $type, $data);
|
||||
$this->setHealth(isset($this->data["Health"]) ? $this->data["Health"] : 10, "generic");
|
||||
$this->setName("Skeleton");
|
||||
$this->ai->removeTask("TaskAttackPlayer");
|
||||
$this->setSpeed(0.25);
|
||||
$this->update();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue