mojira.dev
MC-278700

Ranged mobs do not account for their target's scale attribute when aiming

When I reduce my scale attribute to 0.1, blazes and skeletons will sill aim for where my head would have been if my scale were still 1.0, with the result that they very rarely hit me. This likely applies to other ranged mobs as well.

Expected behavior

Ranged mobs should aim for the target's upper body regardless of the target's scale attribute. (The accuracy of the attacks would be unaffected, so a smaller scale would still make the target harder to hit.)

To reproduce

  1. /effect give @s minecraft:regeneration infinite 10 true

  2. /summon minecraft:skeleton ~ ~ ~ {equipment:{head:{id:"minecraft:carved_pumpkin"},mainhand:{id:"minecraft:bow"}}}

  3. /summon minecraft:blaze

  4. Move 5 or so blocks away from the summoned mobs and switch into survival mode
    ✔ The mobs can hit you reliably

  5. /attribute @s minecraft:scale base set 0.1

    ❌ The mobs' projectiles fly over your head, and the skeleton will essentially never hit you, while the blaze may occasionally get lucky with its fireball deviation

Attachments

Comments 1

BugTracker

Can confirm.

clamlol

(Unassigned)

Community Consensus

Platform

Low

Commands

1.21.4, 1.21.6 Pre-Release 2

Retrieved