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

Started by TheCatalystGaming on

Topic category: Help with modding (Java Edition)

Last seen on 19:36, 13. Nov 2022
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.

Last seen on 14:43, 2. Aug 2022
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.

Last seen on 22:45, 26. Mar 2024
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.