mobs will despawn after 18000 ticks(900 seconds)

This commit is contained in:
GameHerobrine 2023-01-11 01:06:35 +03:00
parent 05c2c6b085
commit ac289e964c

View file

@ -13,6 +13,7 @@ abstract class Living extends Entity implements Damageable, Pathfindable{
$this->canBeAttacked = true;
$this->hasGravity = true;
$this->hasKnockback = true;
$this->server->schedule(18000, [$this, "close"]); //900*20
}
public function hasPath(){