entity.death event from 0.8

This commit is contained in:
GameHerobrine 2023-11-22 18:05:17 +03:00
parent e1368ce4a1
commit ac1a3b67fb

View file

@ -1387,6 +1387,7 @@ class Entity extends Position
}
public function makeDead($cause){
if($this->server->api->dhandle("entity.death", ["entity" => $this, "cause" => $cause]) === false) return false;
$this->spawnDrops();
$this->air = 200;
$this->fire = 0;