Help with random fire placement

Started by _CrimsonInferno_ on Tue, 01/29/2019 - 14:31

Topic category: Help with MCreator software

Last seen on 03:01, 29. Oct 2020
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Help with random fire placement
Tue, 01/29/2019 - 14:31

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!

Last seen on 22:36, 26. May 2020
Joined Aug 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Before giving the tip, is it…
Tue, 01/29/2019 - 17:29

Before giving the tip, is it a ?:
-Block
-Ranged Item
-Item
-Mob
-Other (which?)
I wait for the answer!

Sorry my bad English!

Last seen on 03:01, 29. Oct 2020
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Any of those. At the moment,…
Tue, 01/29/2019 - 17:48

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.

Last seen on 22:36, 26. May 2020
Joined Aug 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yes, you use the…
Tue, 01/29/2019 - 18:54

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)

Last seen on 03:01, 29. Oct 2020
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
But I need there to be more…
Tue, 01/29/2019 - 19:37

But I need there to be more than one fire block, and have them spawn in different places around the blast area.

Last seen on 22:36, 26. May 2020
Joined Aug 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
  In the box [Place block at…
Tue, 01/29/2019 - 19:51

 

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!

Last seen on 03:01, 29. Oct 2020
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Is it possible to insert…
Thu, 01/31/2019 - 15:11

Is it possible to insert random numbers (literally, like with the Random procedure block) into the coordinates?

Last seen on 20:55, 29. Oct 2020
Joined Apr 2010
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Yes, it is. Just use math +…
Thu, 01/31/2019 - 15:34

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.

Last seen on 03:01, 29. Oct 2020
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Am I right in guessing that…
Thu, 01/31/2019 - 15:37

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?

Last seen on 22:36, 26. May 2020
Joined Aug 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Look at this table: 0.1 = 10…
Thu, 01/31/2019 - 18:45

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%!

Last seen on 22:36, 26. May 2020
Joined Aug 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Example of positions: y =…
Thu, 01/31/2019 - 18:47

Example of positions:
y = block
-y = block below y
+ y = block above y

Last seen on 03:01, 29. Oct 2020
Joined May 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Are those chance…
Thu, 01/31/2019 - 18:56

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?

Last seen on 22:36, 26. May 2020
Joined Aug 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
In 70% of cases it will…
Tue, 02/05/2019 - 17:43

In 70% of cases it will happen!