mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
Explosions
This commit is contained in:
parent
a6615560bc
commit
bab3b8274a
3 changed files with 106 additions and 12 deletions
|
|
@ -31,16 +31,9 @@ class TNTBlock extends SolidBlock{
|
|||
}
|
||||
public function getDrops(Item $item, Player $player){
|
||||
if($this->inWorld === true){
|
||||
$player->dataPacket(MC_EXPLOSION, array(
|
||||
"x" => $this->x,
|
||||
"y" => $this->y,
|
||||
"z" => $this->z,
|
||||
"radius" => 2,
|
||||
"records" => array(),
|
||||
));
|
||||
$ex = new Explosion(ServerAPI::request()->api->block, $this, 0.5);
|
||||
$ex->explode();
|
||||
}
|
||||
return array(
|
||||
array(TNT, 0, 1),
|
||||
);
|
||||
return array();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue