How to have an explosion that doesn't destroy blocks?

Started by TheCatalystGaming on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to have an explosion that doesn't destroy blocks?

As the title says, I'm wondering if there is any way to have an explosion that is fairly powerful, but doesn't destroy blocks, only damaging and knocking back entities.

Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
world.getWorld()…
Tue, 12/22/2020 - 17:09

world.getWorld().createExplosion(null, (int) x, (int) y, (int) z, (float) 3, Explosion.Mode.NONE);

I think this will work but I can't check as MCreator has either removed or accidently prevented the code view from working.

Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
just use the explode block,…
Sat, 08/26/2023 - 16:25

just use the explode block, if you're using block coding, and set the effect to NONE.