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

Started by TheCatalystGaming on Fri, 10/16/2020 - 22:58

Topic category: Help with modding (Java Edition)

Last seen on 23:33, 8. May 2021
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to have an explosion that doesn't destroy blocks?
Fri, 10/16/2020 - 22:58

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 17:09, 10. May 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.