From ac289e964cb55daa3ea131ca897f7473d74f6770 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Wed, 11 Jan 2023 01:06:35 +0300 Subject: [PATCH] mobs will despawn after 18000 ticks(900 seconds) --- src/entity/Living.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/entity/Living.php b/src/entity/Living.php index 352b60bb..877352c1 100644 --- a/src/entity/Living.php +++ b/src/entity/Living.php @@ -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(){