Skip to content

A server-side Minecraft mod for handling explosion griefing and wither griefing separately from mobGriefing

License

Notifications You must be signed in to change notification settings

Enecske/MobExplosionGriefingGamerule

Repository files navigation

MobExplosionGriefingGamerule

Environment

This Minecraft mods separates explosions and other destructive mob actions from the mob_griefing gamerule.

It adds a custom gamerule, mob_explosion_griefing:mob_explosion_griefing, which makes all mob explosions (except Withers) not destroy blocks. Other actions, like fireballs lighting fires, will still happen.

Additionally, certain actions can also be controlled separately.

  • By turning mob_explosion_griefing:creeper_Griefing off, Creepers will not destroy blocks when exploding.
  • By turning mob_explosion_griefing:ghast_griefing off, Ghasts will not destroy blocks when shooting Fireballs. They won't light fires either.
  • By turning mob_explosion_griefing:wither_griefing off, Withers will not destroy blocks with their spawn explosion, when taking damage or when shooting Skulls. However, Wither Roses will still be placed.
  • By turning mob_explosion_griefing:enderman_griefing off, Endermen will not pick up or place blocks.
  • By turning mob_explosion_griefing:door_breaking_griefing off, mobs will not be able to break doors, no matter the difficulty.
  • By turning mob_explosion_griefing:step_and_destroy_goal off, mobs will not pathfind to blocks with the objective of stepping on them and destroying them (e.g. Zombies won't attack Turtle Eggs). If they (or the player) do end up stepping on the block, it will still be destroyed.

All of these gamerules are true by default.

Turning mob_explosion_griefing:mob_explosion_griefing off will disable all explosions of the above (except Withers'), but other actions will still be allowed. For example, if mobExplosionGriefing is false, but ghastGriefing is true, Fireballs won't destroy blocks, but they will still light fires.

Turning mob_griefing off will disable all destructive mob actions, just like in vanilla, and will ignore the values of all gamerules added by this mod.

After updating to 1.21.11 or above, the values of all game rules added by this mod will be reset to true. You need to reset them manually!

Other vanilla functionality should not be affected. If you find any bugs or have any ideas on how the mod could be enhanced, please post a GitHub Issue.

About

A server-side Minecraft mod for handling explosion griefing and wither griefing separately from mobGriefing

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 3

  •  
  •  
  •  

Languages