Started by
SirPogsalot
on
Topic category: Help with MCreator software
Hey, I need a way to make an explosion that also places fire after it explodes, the way a Ghast fireball does. I can't find any forum topics about it, but it's kind of a necessary part of my mod. Thanks!
Before giving the tip, is it a ?:
-Block
-Ranged Item
-Item
-Mob
-Other (which?)
I wait for the answer!
Sorry my bad English!
Any of those. At the moment, I'm working a TNT-like block that I want to have a fiery explosion. Klemen said you can use random block placement to make fire everywhere.
Yes, you use the randomization system!
But you have to define what you want for example:
When the block is destroyed by the player:
{If [Random 0,1] <[0.7]
Of
Explodes at x, y, z with power [1]
Place block at x, y, z = FIRE.BLOCK}
More or less this procedure?
(of course not just a block of fire)
But I need there to be more than one fire block, and have them spawn in different places around the blast area.
In the box
[Place block at x, y, z = FIRE.BLOCK]
You duplicate and modify the coordinates of the blocks of fire
for example:
Do = [Place block at x, y, z = FIRE.BLOCK]
[Place block at x-3, y, z = FIRE.BLOCK]
[Place block at x, y, z-3 = FIRE.BLOCK]
This means that it will put a block of fire where it exploded + a block of fire in the x-3 (in the case from the origin) + a block of fire in the z-3 (from the origin)
There are three blocks in different places!
Using this as a basis will add you until it stays the way you want it!
I hope I've helped a bit!
Is it possible to insert random numbers (literally, like with the Random procedure block) into the coordinates?
Yes, it is. Just use math + block and use coordinate and add a random number to it using the math random block multiplied by the max. number the value can get.
Am I right in guessing that the Random [0,1] block picks a random non-integral decimal value between 0 and 1, such as 0.7 or 0.2?
Look at this table:
0.1 = 10%
0.2 = 20%
0.3 = 30%
0.4 = 40%
0.5 = 50%
0.6 = 60%
0.7 = 70%
0.8 = 80%
0.9 = 90%
And I believe that 10 equals 100%!
Example of positions:
y = block
-y = block below y
+ y = block above y
Are those chance probabilities or actual values? By that I mean, does 0.7 mean it has a 70% chance of happening, or is it just a number that I can multiply by 10 to get 7?
In 70% of cases it will happen!