mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
mobs will despawn after 18000 ticks(900 seconds)
This commit is contained in:
parent
05c2c6b085
commit
ac289e964c
1 changed files with 1 additions and 0 deletions
|
|
@ -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(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue