skeletons are peaceful and will not attack player, entity will seaatch 16 block radius to find attackable player

This commit is contained in:
GameHerobrine 2023-01-25 19:27:27 +03:00
parent ed30995f9d
commit 395e35ad5d
4 changed files with 17 additions and 4 deletions

View file

@ -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();
}