Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-274841

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.21
    • None
    • Confirmed
    • Mob behaviour

      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. Watch the attached video.

      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},{}]}

            Unassigned Unassigned
            PauseKawa KawaMood
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: