mojira.dev
MC-269615

Non-player entities do not sustain damage when teleported using an ender pearl

Players suffer damage when teleported by an ender pearl, whereas mobs remain unharmed upon the teleportation process.

Steps to Reproduce:

  1. Summon a polar bear into existence

  2. Throw an ender pearl

  3. Execute the following command before the ender pearl lands:

    /execute as @e[type=minecraft:ender_pearl] at @s run data modify entity @s Owner set from entity @e[type=minecraft:polar_bear,limit=1] UUID

Expected Behavior:

Non-player entities would take damage the same way the player does when throwing an ender pearl.

Observed behavior:

Non-player entities (like the polar bear in this example) do not take damage from teleportation from ender pearl.

Linked issues

Attachments

Comments 3

When addressing this issue, ensure that the fix also covers non-living entities such as minecarts, etc., and ender dragons (as depicted in the video). It's important to note that ender pearls have the ability to teleport any entity, regardless of whether it is living or non-living.

Paintings are invisible

[Mod] Jingy

(Unassigned)

Confirmed

Platform

Low

Commands, Mob behaviour

ender_pearl

1.20.4, 24w11a, 24w12a, 1.21.3, 24w45a

Retrieved