Started by
kabutomiyatake
on
Topic category: Help with MCreator software
I am planning to overhaul the damaging system of explosions so that damage area and amount matches the crater it creates, and to do that, I need to get an explosion's power as a variable. However, it seems like the trigger "when an explosion occurs" does not give the explosion's power as a number dependency.
Is there a way to get an explosion's power?
I know a way you can see an explosion's power, though it may be a bit outdated as I'm using Mcreator's 2022.3 version. In the procedure menu the second code block under world management there is a block named "Explode at x:". In the code generator the lines look like this.
public static void execute(LevelAccessor world, double x, double y, double z) {
if (world instanceof Level _level && !_level.isClientSide())
_level.explode(null, x, y, z, 3, Explosion.BlockInteraction.BREAK);
I hope that this is able to help you.