Particles Editor
Last updated
Last updated
The portal inside the editor cannot be rotate yet and all particles will seem like they are in the same Z axis. Don't worry, they are not.
The particles editor is a tool that simulates the particles spawning. It's supposed to make creating particle packs easier
We are going to create the same example from here, but this time using the particle editor.
First, we have the start block and we instantiate any variable we want to use, which are:
amount = 50
radius = 4
increment = (2 * 3.14) / amount
frequency = 20
In order to add these variables to the start block, we have to click at start in the Explorer and the Assets window will update to show us all the available options. We click at Variable and then at the right part of your screen you click on Add.
After you have pressed Add, tempVariable will be added to start.
Now click at tempVariable1 and look at the right of your screen.
Now we change the name to amount and the value to 50 and we click Save.
We repeat that for all the variables we need, and we end up with:
Now that we have set up some of the variables we will be needing, we will now head to the main body of the "pack".
For this example, we want to use a for loop, for the center of the portal, so we will use portal and not tile
So in order to create a circle around the portal we will need these:
A for loop where i starts with the value 0 and the for loop runs only while i is less than the amount (that we set at start). And after each run of the loop, we want to increase i by 1.
Inside the loop we need to add a runnable so we put some code to run and inside the runnable we add
Inside the for loop we add these variables (to create a circle) angle = i* increment x = locX + (radius * cos(angle)) z = locZ + (radius * sin(angle))
And lastly we add a particle that plays REDSTONE at x locY z 3 0 0 0 and has DustOptions(Color(0,255,0),2)
For the for loop we click at portal->for and then at the assets we click on For loop (it will add a runnable automatically) and we set it like that
Then we add the variables inside the runnable and we end up with this:
Finally we add our particle which should look like this:
And now if we click on Run it will show us how it will look in minecraft: