mojira.dev
MC-307142

Mobs using a ranged weapon can not hit targets at longer ranges

Mobs using a ranged weapon (skeletons, pillagers, drowned with trident etc.) are unable to hit targets at long range.

Steps to reproduce:

  1. Summon one of the above mobs with an increased follow range in a flat area:

    /summon skeleton ~ ~2 ~ {equipment:{mainhand:{id:"minecraft:bow",count:1}},attributes:[{id:"minecraft:follow_range",base:250},{id:"minecraft:movement_speed",base:0}]}
  2. Walk away from the mob until it can no longer hit you (about 16 blocks). It will continue to fire in your direction but be unable to hit you.

  3. Walking even further away causes the distance shot to increase, but never to the position of the player.

The same applies with verticality.

  1. Repeat the above process but summon the mob higher than your position:

    /summon skeleton ~ ~50 ~ {equipment:{mainhand:{id:"minecraft:bow",count:1}},attributes:[{id:"minecraft:follow_range",base:250},{id:"minecraft:gravity",base:0},{id:"minecraft:movement_speed",base:0}]}
  2. The mob will hit just in front of the player. Walking a couple blocks backwards confirms the mob should be able to hit the players position, the mob was just unable to target it.

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media][media]

Brianthecoo

(Unassigned)

Unconfirmed

(Unassigned)

26.1

Retrieved