mojira.dev
MC-245903

Endermen mostly don't avoid wither skulls that don't have an Owner

The Bug

Most of the time, endermen fail to teleport away from wither skull projectiles without an Owner, which should be the intended behavior as per MC-178441.

Reproduce

  • Summon an Enderman

  • Run the following command

    /execute at @e[type=minecraft:enderman] run summon minecraft:wither_skull ~-3 ~2 ~ {NoGravity:1b,Motion:[0.5,0.0,0.0]}

Observed Result

The enderman failed to teleport away from the wither skull

Expected Result

Endermen should teleport away from wither skulls as they do with certain projectiles.

Linked issues

Attachments

Comments 5

Relates to MC-109147 and MC-186119.

Can confirm this behavior. You can summon an enderman and run the following command in order to easily reproduce this.

/execute at @e[type=minecraft:enderman] run summon minecraft:wither_skull ~-3 ~2 ~ {NoGravity:1b,Motion:[0.5,0.0,0.0]}

This bug is actually the same as MC-186119. It was actually a by-product, the enderman actually does dodge the wither skull correctly all the time.

As explained in MC-186119, using the command:

/execute at @e[type=minecraft:enderman] run summon minecraft:wither_skull ~-3 ~2 ~ {NoGravity:1b,Motion:[0.5,0.0,0.0]}

Actually yields different results than using a real wither. Once the fix for MC-186119 is applied the enderman actually dodges the wither skulls just fine.

It's still a bit weird that they don't dodge it due to it not having an owner, so maybe just re-purpose this bug report for that instead.

@unknown Thanks for the insight.

Can confirm in 1.19.

ampolive

(Unassigned)

Confirmed

Platform

Low

Mob behaviour

enderman, mob-behavior

1.18.1, 22w03a, 22w05a, 22w06a, 1.18.2, ..., 1.20.2, 1.20.4, 1.21, 1.21.3, 1.21.5

Retrieved