Total Miner Forums

Total Miner => Creative Features => Topic started by: crazytater94 on July 02, 2018, 03:12:20 AM

Title: Fireworks script for the 4th of july
Post by: crazytater94 on July 02, 2018, 03:12:20 AM
Here is how to script a basic Blue firework: (There are also Fireworks modded into my new 2.0 Release of the Pokemon Leaf Green Mod, released today.)
(Substitute the color parameters for other values to create different colors [Red,Green,Blue] - [255,255,255] **Colora are marked with Asterisks**)
**NOTE: DO NOT ADD THE ASTERISKS IN YOUR SCRIPTS, OR THEY WILL NOT WORK.


// Sets your current XYZ as the spawn point for the fireworks.
var [xx] = [Pos:x]
var [yy] = [Pos:y]
var [zz] = [Pos:z]

// Sets your current XYZ as the spawn point for the fireworks. From here, we add 1 block forward, and 28 blocks up, since this is where the explosion happens.
var [xx1] = [Pos:x] + [1]
var [yy1] = [Pos:y] + [28]

// Create the jet, which launches the firework in the air.
ParticleEmitter [xx,yy,zz] [1] [.05] [3] [0,10,0] [.1,.1,.1,3] *[100,100,255]* [ 0] [12.56] [1] *[0,0,255]* [0,0,0] [0,0,0]

// Waits for the jet to finish, and adds a 1/2 second delay before the bang.
Wait [3500]

// Creates the big bang in the air.
// Here is where you may add a sound script, if you want to.
ParticleEmitter [xx,yy,zz] [1] [.0125] [3] [0,0,0] [.4,.4,.4,.25] *[0,0,255]* [2] [ 0] [3] *[255,255,255]* [3,3,3] [0,0,0]

ParticleEmitter [xx,yy,zz] [1] [.0125] [3] [0,0,0] [.4,.4,.4,.25] *[100,100,255]* [2] [ 0] [3] *[255,255,255]* [3,3,3] [0,0,0]

ParticleEmitter [xx,yy,zz] [1] [.0125] [3] [0,0,0] [.4,.4,.4,.25] *[200,200,255]* [2] [ 0] [3] *[255,255,255]* [3,3,3] [0,0,0]

// Adds a smaller, but wider set of particles the big bang in the air.
ParticleEmitter [xx,yy,zz] [3] [.00625] [5] [0,0,0] [.2,.2,.2,.5] *[0,0,255]* [1.5] [ 0] [3] *[255,255,255]* [3,3,3] [0,0,0]

// Adds an even smaller, but even wider set of particles the big bang in the air.
ParticleEmitter [xx,yy,zz] [5] [.00125] [5] [0,0,0] [.1,.1,.1,.5] *[200,200,255]* [1] [ 0] [3] *[255,255,255]* [9,9,9] [0,0,0]