How to make fire after explosion?

Started by UAPvP on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make fire after explosion?

So I have a problem, I made an anchor like block, and I want it to create fire at random block in radius after explosion.
I tried to make something, but it either crashes my game  or works the wrong way.
 
If you can, please make a guide





( https://imgur.com/TXMObQu in case image with my bad code doesn't work)

 

 

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
After your explosion has…
Sat, 01/27/2024 - 13:05

After your explosion has finished, you need to trigger a procedure. Something like this:

  • For every block in an 9*9*9 box centered on the explosion.... (You can use a modified version of the 'check for block in 6*6*6 box' procedure template for this, just rip out all the stuff about checking for blocks)
  • ...If the block is solid, and there's air above it, and a random check passes, (something like a 5% chance), place fire at the position of the currently selected block, plus one.

I can send a screenshot if that'd be helpful. (But I recommend trying it first!)