Mojira Archive
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 ~ ~ ~ {ArmorItems:[{},{},{},{id:"minecraft:carved_pumpkin"}],HandItems:[{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

Unresolved

[Helper] clam lol

2024-12-05, 07:09 AM

2024-12-06, 08:27 AM

3

1

Community Consensus

Low

Platform

Commands

1.21.4

-