• Hey! Register here to create your account, engage with the community, and talk about what is new!

How to re-enable block destruction by explosions

EarthMonkeyii

New member
Joined
Feb 27, 2022
Messages
12
Reaction score
1
I'm trying to do something that in theory is quite simple: create an explosion that destroys blocks. I want to use the vanilla system for this, but DiamondFire has it disabled, and I can't figure out how to re-enable it.

Ideally I'd be able to simply enable block destruction with ALL explosions on the plot, but if I need to spawn a separate explosion every time a fireball hits something that's fine.

Is there a way to do any of this, or do I have to manually recreate the block destruction?
 

CoderElias

Notorious member
Overlord
Joined
Jun 15, 2022
Messages
103
Reaction score
17
Currently, on DiamondFire, there isn't a way to easily enable/disable tnt explosions. There is another way though, but that is a bit tedious. First, on 'Explosion' event (I don't remember exactly what its called, but I believe its an entity event) you should place a repeat on list. Enter any variable in the first slot of the chest and a game value in the second. The game value should be 'Affected Blocks' (again, not exactly sure what its called). This should act as a list of the affected blocks in an explosion. Now, the loop will run through that list and you can do whatever you want with those blocks. If you want to make them explode just use the game action 'Break Block'. You can also add particles, or maybe even block physics. Its all up to you!
 
Top Bottom