tnt will not regenerate you now + will add knockback to players

This commit is contained in:
GameHerobrine 2024-03-26 06:26:32 +03:00
parent a10c6a1d57
commit 2678243d8b
4 changed files with 50 additions and 32 deletions

View file

@ -13,7 +13,6 @@ class PrimedTNT extends Entity{
$this->setSize(0.98, 0.98);
$this->yOffset = $this->height / 2;
$this->setHealth(10000000, "generic");
//$this->server->schedule(5, [$this, "updateFuse"], [], true);
}
public function isPickable(){
@ -66,20 +65,6 @@ class PrimedTNT extends Entity{
$this->lastUpdate = $now;
}
/*public function updateFuse(){
if($this->closed === true){
return false;
}
if($this->type === OBJECT_PRIMEDTNT){
$this->updateMetadata();
if(((microtime(true) - $this->spawntime) * 20) >= $this->data["fuse"]){
$this->close();
$explosion = new Explosion($this, $this->data["power"]);
$explosion->explode();
}
}
}*/
public function spawn($player){
$pk = new AddEntityPacket;
$pk->eid = $this->eid;