The Meaning of Life, the Universe, and Everything.
Location:
Earth
Join Date:
11/15/2014
Posts:
129
Xbox:
thejaustinPE
Member Details
I'm making a mod right now using Level.addParticle, I've looked into your code trying to figure out how you made multiple particles with this mod, but couldn't find much, and got extremely confused. I'm using this for a smoke bomb, so I'm trying to make a bunch of particles appear so they will fill your screen...ish.
dent=30px]
use a for loop to excecute the addParticle method several timesI used Math.random() to chose a random position around x y z function useItem(x, y, z, itemId, blockId, side, itemDamage, blockDamage) { if (itemId === 267) { //iron sword var width = 0.5, //particles arise randomly in a box with * with * with around xyz count = 30, //particle quantity i; //iterator for (i = 0; i < count; i += 1) { Level.addParticle(ParticleType.cloud, x + 0.5 + ((Math.random() - 0.5) * width), y + 0.5 + ((Math.random() - 0.5) * width), z + 0.5 + ((Math.random() - 0.5) * width), 0, 0.1, 0, 1); } } }
[/indent]
Thanks! Still figuring things out, but this was a big help!
Umm, there's one tiny bug... Whenever I try to use a firework (be it by launcher or by ground-tapping), it says that the smoke particles should be at least 100. Please update this mod, I really like it.
By the way, I'm using 0.14.2, idk Blocklauncher version.
Thanks, that's a MiniMap mod in the top left Corner. I will publish it when it is finished.
The webpage at http://adf.ly/vix39 might be temporarily down or it may have moved permanently to a new web address.
Suggestions:
Make sure you have a data connection
Reload this webpage later
Check the address you entered
Its still like this
I sent you a PM with the link
I'm making a mod right now using Level.addParticle, I've looked into your code trying to figure out how you made multiple particles with this mod, but couldn't find much, and got extremely confused. I'm using this for a smoke bomb, so I'm trying to make a bunch of particles appear so they will fill your screen...ish.
Here's the code I'm currently using:
function useItem(x,y,z,itemId,blockId,side){
if(itemId==511){
Level.addParticle(ParticleType.cloud,x,y,z,0,0.1,0,0);
}
}
The item id 511 is the id for the smoke bomb.
Thanks in advance!
~thejaustin
PayPal Donations: https://www.paypal.me/AustinF
use a for loop to excecute the addParticle method several times
I used Math.random() to chose a random position around x y z
function useItem(x, y, z, itemId, blockId, side, itemDamage, blockDamage) {
}
~thejaustin
PayPal Donations: https://www.paypal.me/AustinF
It's an old mod, it needs to be updated to the newest Minecraft PE
---------------------------------
| |
---------------------------------
It wont let me use the guns o block launvher pro it says that its missing something
Cqn you help me understand what i have to do
i cant download your fireworks mod can you send me the link
Umm, there's one tiny bug... Whenever I try to use a firework (be it by launcher or by ground-tapping), it says that the smoke particles should be at least 100. Please update this mod, I really like it.
By the way, I'm using 0.14.2, idk Blocklauncher version.