Skip to content

Cancel EntityInteractEvent when a zombie tramples a turtle egg makes him fly on top of it. #14224

Description

@kacimiamine

Expected behavior

The zombie should just continue jumping on the turtle egg.

Observed/Actual behavior

The zombie starts jumping and after a few seconds, his Y position increases, making the zombie jump while "flying" on top of the turtle egg.

Steps/models to reproduce

  • Cancel EntityInteractEvent, a code example:
@EventHandler
public void onInteract(EntityInteractEvent event) {
    if (!(event.getEntity() instanceof Zombie)) return;

    if (event.getBlock().getType() != Material.TURTLE_EGG) return;

    event.setCancelled(true);
}
  • Put a turtle egg and spawn a zombie
  • Notice how the zombie will fly after a few seconds when trampling on the turtle egg.

Plugin and Datapack List

Fresh server, only the test plugin:

[10:15:55 INFO]: ℹ Server Plugins (1):
[10:15:55 INFO]: Paper Plugins:
[10:15:55 INFO]:  - Paper-Test-Plugin
[10:16:43 INFO]: There are 2 data pack(s) enabled: [vanilla (built-in)], [paper (built-in)]
[10:16:43 INFO]: There are no more data packs available

Paper version

[09:14:46 INFO]: Checking version, please wait...
[09:14:46 INFO]: This server is running Paper version 26.2-121-main@a2a42c5 (2026-08-29T11:32:25Z) (Implementing API version 26.2.build.121-stable)
You are running the latest version

Other

Screencast_20260901_101841.webm

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions