Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add mob griefing event #3931

Open
MichaelHillcox opened this issue Jul 9, 2024 · 1 comment
Open

[Feature Request] Add mob griefing event #3931

MichaelHillcox opened this issue Jul 9, 2024 · 1 comment
Labels
enhancement New feature or request priority:low Low priority PRs that don't immediately need to be resolved

Comments

@MichaelHillcox
Copy link

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

@modmuss50 modmuss50 changed the title [Feature Request] Add Forge like MobGriefingEvent [Feature Request] Add mob griefing event Jul 9, 2024
@modmuss50
Copy link
Member

A very quick look suggests this is going to need patching in about 30 places (going by where the game rule is checked), and would be a nightmare to maintain going into new versions. If anyone has a good way to do this then it sounds like a reasonable idea.

@modmuss50 modmuss50 added enhancement New feature or request priority:low Low priority PRs that don't immediately need to be resolved labels Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority:low Low priority PRs that don't immediately need to be resolved
Projects
None yet
Development

No branches or pull requests

2 participants