Skip to content

Add SpearChargeDismountEvent #13883

@CatTeaA

Description

@CatTeaA

Is your feature request related to a problem?

When the attack event caused by SpearCharge is cancelled, the entity will still dismount from boat and minecart.
#13583

Many players trap various mobs inside minecarts and boats for display purposes, and some mob farms also rely on this mechanic. However, SpearCharge can now bypass protection in these areas; while it cannot deal damage to the mobs, it is able to force them to dismount.

Describe the solution you'd like.

Added SpearChargeDismountEvent, which provides access to the SpearCharge attacker. Region protection plugins can perform fine-grained permission checks to allow or prevent the dismount event

Describe alternatives you've considered.

Or make EntityDismountEvent able to capture the attacker, if an attacker exists.

Other

No response

Metadata

Metadata

Assignees

No one assigned
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions