mojira.dev
MC-274841

Mobs with range-attack AI struggle on non-full blocks

Context

Mobs like skeletons with bows and piglins with crossbows try to keep a safety range with their target while shooting, making them recoil when the player is too close to them.

Problem

This behavior works correctly on full blocks, but it seems to not work on non-full block such as slabs, dirt path, soul sand... On them, these mobs just rush their target, as if they had a melee-attack.

[media]

{}.

How to reproduce

  1. Place a platform of non-full blocks, such as dirt path:

    /fill ~ ~ ~ ~20 ~ ~20 dirt_path
  2. Summon a skeleton with a bow on it, and see how it behaves (the helmet is optional, it is used to protect it from the sun):

    /summon skeleton ~ ~ ~ {ArmorItems:[{},{},{},{id:"leather_helmet",count:1b}],HandItems:[{id:"bow",count:1},{}]}

Linked issues

Attachments

Comments

Alex_light
[Mod] turbo

Does MC-174500 describe your issue?

KawaMood

Hi, yes it is indeed the same issue as MC-174500

I searched with many terms but didn't manage to find it. You can mark it as duplicate then, thanks!

KawaMood

(Unassigned)

Confirmed

Mob behaviour

1.21

Retrieved