[Feature Request] Add mob griefing event #3931
Labels
enhancement
New feature or request
priority:low
Low priority PRs that don't immediately need to be resolved
I'd like to request a Forge/NeoForge like MobGriefingEvent that would allow mods to block mobs from griefing an area in the game.
The current target for this would be for things like the Endermen where they like to pick up blocks which is essentially the same as a player destroying the block.
Mods that would use this would be land claiming / protection based mods, blocks that prevent griefing, etc
The NeoForge implementation:
https://github.com/neoforged/NeoForge/blob/1.21.x/src/main/java/net/neoforged/neoforge/event/entity/EntityMobGriefingEvent.java
This looks to be deeply rooted in the breaking of a blocks checking but not so deeply that a mixin would be massively complicated
Let me know if you need any more information
The text was updated successfully, but these errors were encountered: