PHP: public function BlockBreak (BlockBreakEvent $e) {player = $e->getPlayer();$block = $e->getBlock();How to add particles Location Player ?}
This code creates a spiral series of particles. @PmMc is asking for creating particles when player breaks blocks. Please do not post if you don't even know what we are doing, and do not post any code if you don't know exactly what every line of the code means. These posts are one of the reasons why the PocketMine community is changing in nature and dying so quickly after its short prosperity. PHP: // define your own $particle$e->getBlock()->getLevel()->addParticle($particle->setComponents($player->x, $player->y, $player->z);