Hi, I Got A Question. When I Saw To OwnagePE I Saw The Rainbow Particle Keep Circling The Player Pn The Spawn. Question: A. How They Got The Rainbow Particles? B. How The Rainbow Particle Keep Circling? Thats It!Please Reply.
Here's the full code. use the Scheduler (RepeatingTask), to keep PHP: //PlayerMoveEvent as $sender$sender = $event->getPlayer();$level = $sender->getLevel();$x = $sender->x;$y = $sender->y;$z = $sender->z;$center = new Vector3($x, $y, $z);$radius = 0.5;$count = 100;$particle = new DustParticle($center, mt_rand(), mt_rand(), mt_rand(), mt_rand()); //Colorfor($yaw = 0, $y = $center->y; $y < $center->y + 4; $yaw += (M_PI * 2) / 20, $y += 1 / 20){$x = -sin($yaw) + $center->x;$z = cos($yaw) + $center->z;$particle->setComponents($x, $y, $z);$level->addParticle($particle); There is the sample video. If you want to see, please reply me. But it's japanese
PHP: public function onJoin(PlayerJoinEvent $event){$player = $event->getPlayer();$level = $player->getLevel();$xpos = $player->getX();$ypos = $player->getY();$zpos = $player->getZ();$c = new Vector3($xpos, $ypos, $zpos);$sound = new BlazeShootSound($c);$level->addSound($sound);$r = mt_rand();$g = mt_rand();$b = mt_rand();$a = 1;$radius = 0.5;$count = 250;$particle = new DustParticle($c, $r, $g, $b, $a);for($yaw = 0, $y = $c->y; $y < $c->y + 4; $yaw += (M_PI * 2) / 20, $y += 1 / 20){$x = -sin($yaw) + $c->x;$z = cos($yaw) + $c->z;$r = mt_rand();$g = mt_rand();$b = mt_rand();$a = 1;$particle = new DustParticle($c, $r, $g, $b, $a);$particle->setComponents($x, $y, $z);$level->addParticle($particle);}}
Understand you probs don't know PHP, but this is common sense. REPEATING TASK a TASK that REPEATS And is this your plugin?