Minecraft server plugin (supports PaperMC and SpigotMC) to toggle various individual protections, much more fine-grained than /gamerule mobGriefing
It also applies the same rules across all dimensions where /gamerule mobGriefing
needs to be updated per-world on spigot servers
You can achieve the same result + dimension-specific rules using WorldGuard but this is a simpler plugin for my small simple server :) (Also it was an excuse to try Maven)
Here is the full list of config options and what setting them to false
does:
allowCreeperBlockDamage
- When false, Creeper explosions do not destroy blocks. Explosion still deals damageallowGhastBlockDamage
- Same as Creeper explosions but for Ghast fireballsallowWitherBlockDamage
- Same as Creeper explosions but for Wither initial explosion when it spawns inallowWitherSkullBlockDamage
- Same as Creeper explosions but for Wither blue skull projectilesallowTntBlockDamage
- Same as Creeper explosions but for lit TNTallowMinecartTntBlockDamage
- Same as Creeper explosions but for TNT minecartsallowEndCrystalBlockDamage
- Same as Creeper explosions but for End crystalsallowEnderDragonBlockDamage
- When false, the Ender Dragon does not destroy blocks it flies throughallowEndermanBlockEdits
- When false, Enderman cannot pick up or place blocksallowVillagerBlockEdits
- When false, Villagers cannot break or plant crops. They can still pick up items and food you dropallowSheepBlockEdits
- When false, Sheep do not turn grass into dirt when they eat it. They still regrow their woolallowRavagerBlockEdits
- When false, Ravagers do not destroy leaves or cropsallowSilverfishBlockEdits
- When false, Silverfish do not summon additional silverfish from nearby blocks, nor do they hide in blocks. They still spawn if a player mines an infested blockallowBoatBlockEdits
- When false, Boats do not break lily pads when riding into them. The boat will be obstructed insteadallowWitherBlockEdits
- When false, Withers cannot mine blocks around them when obstructedallowSnowGolemBlockEdits
- When false, Snow Golems do not place snow at their feetallowRabbitBlockEdits
- When false, Rabbits cannot eat carrot cropsallowZombieBreakDoors
- When false, Zombies (or Zombified Piglins) cannot break doorsallowFarmlandTrampling
- When false, no entities can trample farmland, including playersallowBedExplosionBlockDamage
- When false, exploding beds do not destroy blocks. Explosion still deals damageallowRespawnAnchorExplosionBlockDamage
- When false, exploding respawn anchors do not destroy blocks. Explosion still deals damage
⚠️ ALL of these settings are true by default, which means by default when you install this plugin, nothing about your game changes.
To change these settings, edit config.yml
in the Guardian folder found in your Plugins folder
It will only exist after the server has been started once.
To apply changes to these settings, save the file and then restart your server.
This plugin was written for my private server, but I have made my code available for anyone that may find it useful.
If you stumble upon this repository and have any requests, feel free to open an issue