mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 03:59:43 +00:00
tnt will not regenerate you now + will add knockback to players
This commit is contained in:
parent
a10c6a1d57
commit
2678243d8b
4 changed files with 50 additions and 32 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue