Skip to main content

Disabling explosion damage

Method Comparison

MethodScopeAffects Vanilla MobsAffects EliteMobsRecommendation
/gamerule mobGriefing falseGlobalYesPossibly not*Use for vanilla mobs only
WorldGuard elitemobs-explosion-block-damagePer-regionNoYesBest for selective protection
doExplosionRegen: falseGlobalNoYes (prevents regeneration)Use if you want permanent damage

*mobGriefing effectiveness against EliteMobs is not confirmed due to custom explosion handling

Disabling block damage

Using gamerule

Run the command /gamerule mobGriefing false. This prevents block damage from vanilla mob explosions.

WARNING: This may not affect EliteMobs explosions due to custom explosion handling. EliteMobs explosions have their own regeneration system. Use the EliteMobs-specific methods below for guaranteed results.

Using WorldGuard

Set the custom EliteMobs WorldGuard flag elitemobs-explosion-block-damage to deny in your WorldGuard region. This prevents EliteMobs explosions from damaging blocks.

Note: This requires both EliteMobs and WorldGuard to be installed. This is a custom flag registered by EliteMobs, not a standard WorldGuard flag. It only affects explosions from EliteMobs, not vanilla mobs.

Stopping EliteMobs fireballs from damaging blocks

EliteMobs' fireball powers (such as attack_fireball and tracking_fireball) are Lua scripts in the plugins/EliteMobs/powers/ folder. There is no per-power isEnabled toggle for these built-in Lua powers — the recommended way to stop their block damage is one of the supported block-damage controls below:

  • Per region: set the WorldGuard flag elitemobs-explosion-block-damage to deny (see the WorldGuard section above). This stops EliteMobs explosions from breaking blocks in that region while still allowing the rest of the power's effects (knockback, entity damage).
  • Server-wide cleanup: leave doExplosionRegen: true (the default) so any blocks that are broken automatically regenerate about a minute later, making the damage temporary.

Configuring EliteMobs Explosion Regeneration

EliteMobs explosions automatically begin regenerating blocks about 1 minute after the explosion. You can control this behavior in the config.yml file:

  1. Open plugins/EliteMobs/config.yml
  2. Find the following settings:
    • doExplosionRegen: Set to false to prevent block regeneration (blocks stay destroyed)
    • doRegenerateContainers: Set to false to prevent chest/container regeneration

Note: If doExplosionRegen is true (default), blocks will automatically repair themselves, making explosion damage temporary rather than permanent.

Other Explosion/Fire Powers

EliteMobs ships several other powers that cause explosions or fire. These are Lua scripts in the plugins/EliteMobs/powers/ folder:

Ender Dragon Powers:

  • ender_dragon_aimed_fireball.lua
  • ender_dragon_disco_fireballs.lua
  • ender_dragon_fireball_bombardment.lua
  • ender_dragon_ender_fireball_bombardment.lua

Other Explosion Powers:

  • gold_explosion.lua
  • arrow_fireworks.lua
  • fireworks_barrage.lua

Fire-based Powers:

  • firestorm.lua
  • flame_pyre.lua
  • flamethrower.lua
  • attack_fire.lua

As with the fireball powers, these built-in Lua powers do not have a per-power isEnabled toggle. To stop the block damage they cause, use the WorldGuard elitemobs-explosion-block-damage flag or the explosion regeneration settings described above.

Regional Explosion Control (WorldGuard Required)

If you want to disable explosions only in specific areas:

  1. Install WorldGuard plugin
  2. Create or select a WorldGuard region
  3. Set the EliteMobs custom flag:
    /region flag <region-name> elitemobs-explosion-block-damage deny

This prevents EliteMobs explosions from damaging blocks only within that region, while allowing explosions elsewhere.

Troubleshooting

If blocks are still being damaged after setting the WorldGuard flag:

  1. Confirm the region actually covers the area where the explosions happen (check with /region info)
  2. Verify the flag is set to deny: /region flag <region-name> elitemobs-explosion-block-damage deny
  3. Make sure both EliteMobs and WorldGuard are installed and loaded (check the startup log)
  4. Check server logs for EliteMobs or WorldGuard errors

If blocks are being destroyed and not coming back:

  1. Check if doExplosionRegen is enabled - blocks will start regenerating about 1 minute after the explosion
  2. The WorldGuard flag prevents block damage entirely within a region; explosion regen only controls cleanup of damage that did occur
  3. For permanent block protection across the whole server, set doExplosionRegen: false in config.yml