mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 19:55:33 +00:00
Perfect explosions
This commit is contained in:
parent
e7e05d37b3
commit
a00375b1a9
@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
class Explosion{
|
||||
private $i = 12; //Rays
|
||||
private $i = 16; //Rays
|
||||
public $level;
|
||||
public $source;
|
||||
public $size;
|
||||
@ -100,7 +100,7 @@ class Explosion{
|
||||
"y" => $block->y + 0.5,
|
||||
"z" => $block->z + 0.5,
|
||||
"power" => 4,
|
||||
"fuse" => mt_rand(10, 30), //0.5 to 3 seconds
|
||||
"fuse" => mt_rand(10, 30), //0.5 to 1.5 seconds
|
||||
);
|
||||
$e = $server->api->entity->add($this->level, ENTITY_OBJECT, OBJECT_PRIMEDTNT, $data);
|
||||
$server->api->entity->spawnToAll($e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user