How to make smoke particles that go up into the sky 1 block each second and when it goes up 30 blocks it explodes lots of different color ink? Sorry, I would do it but I'm really bad at calculating the math xD
My way: Create a custom object (Entity) for example: PHP: class FireWorks extends Arrow {} I did this once when creating Bazooka
It's easier tho. Creating FireWork projectile is easier to calculate colisions, easier manage multi fireworks at once etc. PHP: public function onRun($tick) { if(alive){ // Don't bother about this if($this->y - $this->startY > 30){ $this->explode(); } else { // Add smoke particle $this->y++; } } $this->updateMovement();}
What the f*ck was that? He is trying to help you. It's you who need it not he. You just act like an #ass -.-
DUde, I come here because I need help to do it, if I could do it myself, why would I even aks. #Y-U-SO-DUM
Help != Doing stuff for you. https://github.com/PocketMine/Pocke...rc/pocketmine/level/particle/DustParticle.php It seems that dust particle is the only one with changeable colours and suits your need.
OMG!!!!! I know how to spawn particles. PEOPLE DON'T READ THAT I want to spawn LOTS OF DIFFERENT COLOR DYE/INK when particles reach 30 BLOCKS HIGH!
So, look in my initial post i explained you how to make an particle go up 30 blocks. Now if the 30 blocks are reached, you just spawn particles with mt_rand again my (improved) ROUGH DRAFT: Make repeating task (1 tick) //or all 2 ticks __construct accepts x y z (start position) make var (CurrentStartOffset = 0) onRun: spawn Particle(x ,y + CurrentStartOffset ,z) CurrentStartOffset = CurrentStartOffset + 0.1; if(CurrentStartOffset == 30) for(100){ spawn Particle(mt_rand(x-2, x+2),mt_rand(y+CurrentStartOffset-2, y+CurrentStartOffset+2)mt_rand(y-2, y+2)) }