Skip to content

[Feature Request] Add mob griefing event  #3931

Open
@MichaelHillcox

Description

@MichaelHillcox

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority: lowLow priority PRs that don't immediately need to be resolved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions