Skip to content

add EntityFertilizeEggEvent (paper) #7819

@Fusezion

Description

@Fusezion

Suggestion

Add the EntityFertilizeEggEvent you can find a link to it here

Why?

Similar to EntityBreedEvent this is called for when a turtle has an egg, a frog is pregnant, and when a sniffer finds a sniffer egg, however there is no child in this event.

Other

A key thing to note, while this could be implemented into the on entity breed event, this is likely best separated as to not confuse people why [bred] (child|offspring) returns null. *this could also just be mentioned under the description*

One last thing to note would be both EntityBreedEvent and EntityFertilizeEggEvent should be given an event-value error when using event-entity similar to how it is done in Damage/Death and ProjectileHit events.

My reasoning for that is event-entity in EntityBreedEvent is the child where as event-entity in EntityFertilizeEggEvent is the mother (despite having a getMother())

Agreement

  • I have read the guidelines above and affirm I am following them with this suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature request, an issue about something that could be improved, or a PR improving something.good first issueAn issue that would be good for a first-time contributor to make a PR forpriority: lowest"Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions