No Mob Griefing
No Mob Griefing
This is a lightweight plugin that let's the user disable or enable griefing for certain mobs without having to use '/gamerule doMobGriefing false'. The player can disable or enable griefing worldwide and after configuring once, the plugin will remember it and there is no need to change the settings again.
For those who do not know, this is not the same as disabling the gamerule mobGriefing, because that will also stop snowgolems from generating snow, villagers from harvesting food (needed for a villager breeder) and the picking up of items by other mobs. This plugin enables to user to choose which mobs can grief and which mobs can not grief. This plugin also supports extra functions that are not included in the doMobGriefing gamerule, for example tnt griefing.
Commands
These commands can only be executed by a player.
/nmg - Basic command that shows info about the plugin and shows all commands that a player has permission for.
/nmg list - A command that shows a list of all mobs and wether their griefing has been enabled or disabled.
/nmg creeper [enable|disable] - Enables/disables creepers destroying blocks.
/nmg door [enable|disable] - Enables/disables zombies breaking doors.
/nmg enderdragon [enable|disable] - Enables/disables the enderdragon destroying blocks.
/nmg enderman [enable|disable] - Enables/disables endermen picking up blocks.
/nmg ghast [enable|disable] - Enables/disables ghasts destroying blocks.
/nmg sheep[enable|disable] - Enables/disables sheep eating grass.
/nmg silverfish[enable|disable] - Enables/disables silverfish entering or leaving blocks.
/nmg snowgolem [enable|disable] - Enables/disables snowgolems leaving snow trails.
/nmg rabbit[enable|disable] - Enables/disables rabits eating crops.
/nmg ravager[enable|disable] - Enables/disables ravagers destroying blocks.
/nmg tnt [enable|disable] - Enables/disables tnt destroying blocks.
/nmg tntminecart [enable|disable] - Enables/disables tnt minecarts destroying blocks.
/nmg turtle_egg [enable|disable] - Enables/disables zombies breaking turtle eggs.
/nmg trampling[enable|disable] - Enables/disables mobs trampling farmland (not the player).
/nmg wither [enable|disable] - Enables/disables withers destroying blocks.
Permissions
There are only permissions for the commands, see the table below.
Permission node | Default |
---|---|
nmg.list | true (everyone) |
nmg.creeper | op |
nmg.door | op |
nmg.turtle_egg | op |
nmg.enderman | op |
nmg.snowgolem | op |
nmg.ghast | op |
nmg.wither | op |
nmg.enderdragon | op |
nmg.sheep | op |
nmg.rabbit | op |
nmg.ravager | op |
nmg.trampling | op |
nmg.tnt | op |
nmg.tntminecart | op |
nmg.silverfish | op |
Changelog
v2.5.2
- Added metrics
- Minor text changes
v2.5.1
- Hotfix
- Changed the versions to match industry standards
v2.5.0
- Updated to 1.16
- Added a command for silverfish
- Fixed explosions being able to destroy item/block entities (armor stands, paintings, etc.)
- Fixed a few missing permissions
- Commands and config are now in alphabetical order
v2.4.0
- Updated to 1.15
- Added a command to enable/disable tnt minecarts destroying blocks.
v2.3.0
- Fixed bug where ghasts could destroy blocks (this time for real).
- Fixed bug where withers were able to destroy blocks they came in contact with.
- Added a command to enable/disable zombies breaking turtle eggs.
- Renamed the 'zombie' command to 'door'. If you are experiencing any weird things, try deleting the config folder of the NoMobGriefing plugin.
v2.2.0
- Fixed a bug where the ghast griefing option was not working
- Added a command to enable/disable ravagers destroying blocks
- Added a command to enable/disable sheep eating grass
- Added a command to enable/disable rabbits eating crops
- Added a command to enable/disable mobs trampling farmland
v2.1.0
- Updated to 1.14
v2.0.0
- Updated to 1.13
- Minor text fixes
- Minor performance updates.
v1.3.0
- Fixed permission nodes
- Added a command to enable/disable zombies breaking doors
- Added a command to enable/disable tnt destroying blocks
v1.2.0
- Added a command to enable/disable snowgolems leaving snow behind
v1.1.1
- Hotfix
v1.1.0
- Added smart tab completion for commands
- Organised permission nodes
v1.0.0
- Initial release
Suggestions/planned features
Feel free to comment what features you would like to see added in this plugin. Please contact me when something does not work properly, it helps when you attach an error message (if available).
Currently planned:
- Nothing, feel free to suggest something in the comments down below!
Other plugins
Custom Manhunt - A plugin that enables you to play the manhunt minigame.
Quality of Life - A plugin that adds a ton of life enhancing features.
Easy Deaths - A plugin that makes dying a little less harsh.
In reply to crazydude998132:
I haven't tested it yet, but I will update the plugin to be 100% sure it will work :)
So far this plugin seems amazing! Would you be able to make it so creepers and skeletons can't break picture frames, item frames, and armor stands? I don't know if there would ever be a reason you'd want mobs to break these, or if this would cause any issues.
In reply to THEBrotherHolmes:
Great suggestion, I will implement this!
Edit: the API does not provide a great way to differentiate between arrows shot by the player and arrows shot by a skeleton, so I'm afraid I can't implement everything you suggested.
Any plans to make this a mod for forge servers?
In reply to zachthemicrohybrid:
Unfortunatly not. For this to happen I would need to learn how to make mods again and rebuild this from scratch and ATM I don't really have time for that.
Will you make a version of this for the paper plugin?
In reply to Forge_User_32479279:
I might do this later, but currently I don't have plans for it.
Great plugin...exactly what I needed. Question though...how do you use the permission nodes? I didn't see that in the description and I need to lock this down so my players don't get any funny ideas about changing the settings.
In reply to strangedos69:
To be honest, I don't really know a lot about permission and admin stuff. It should be implemented in a way that's configurable but you might need to look up a general tutorial on permissions. By default, only OP's should be able to change the settings.
Hello! This is a really cool plugin because this is the only thing I've found that solves the problem of villagers not being able to reproduce when you want mob griefing turned on.
However, I do have a suggestion! It would be nice if you can enable and disable rules per world. For example, having creepers explode when they're in the nether but not in the overworld.
Thank you for this!
Edit: Also, turning on sheep not eating grass causes them to not get back their wool anymore, I also suggest having them not change the grass blocks instead of just not eating! Thank you again!
Edit edit: Also, just one more thing! Silverfish can grief by entering stone blocks and calling out other silverfish from stone. Maybe that could be another feature? Thank you! :)
In reply to Solar_Heat:
Thanks for you comment and suggestions! I will make sure to try and fix the sheep and add a rule for silverfish. About the rules per world; I like the idea but the plugin would need some rewriting to be able to accomplish that, so I don't think I will add it in the near future.
Edit: for me the sheep seem to get their wool back just fine. They should still eat but the block change event is cancelled so it should only affect the block.
Good work
Add TNT Minecarts please!
In reply to R2bEEaton:
Good suggestion! This feature is added in the newest version (0.2.4).
Hi! An option to control whether zombies, etc destroy turtle eggs would be useful please
In reply to Forge_User_59401544:
Thanks for the suggestion! If you download the newest version (0.2.3) you can now use this feature.
Hi Domoco, I love the plugin has helped out with us exploring with the new villagers. We did run into a problem with the wither though. The balls it shoots don't break anything but when it charges or runs into blocks those blocks get destroyed. If possible can this be part of the next update? We used the method of digging a whole around bed rock and then spawning and he ended up making a huge cavern by the time we finished with him. Thanks your plugin rocks.
In reply to Oliverwald:
Nice one noticing that bug, it is now fixed in the latest version (0.2.3)!
hi there!! thanks for the great addon!
i'm currently using v0.2.2 but it seems like ghasts are still able to break blocks.
the other mobs have been working fine. not sure what other info i should provide, please let me know!
In reply to michelles:
You are right, it should be fixed in the new version (0.2.3).