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

Snow Golem, Witch, Llama, Drowned, and Wither will keep attacking after its target is gone if `generic.movement_speed` is 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 22w24a
    • 1.14.4, 1.15.2, 20w19a, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4, 20w45a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w08b, 21w10a, 21w11a, 21w15a, 21w18a, 21w19a, 21w20a, 1.17 Release Candidate 1, 1.17, 1.17.1, 21w43a, 1.18 Pre-release 1, 1.18 Pre-release 5, 1.18 Pre-release 7, 1.18 Pre-release 8, 1.18 Release Candidate 3, 1.18, 1.18.1 Pre-release 1, 1.18.1 Release Candidate 1, 1.18.1 Release Candidate 2, 1.18.1, 22w05a, 22w07a, 1.18.2 Pre-release 1, 1.18.2, 22w11a, 22w14a, 22w15a, 22w17a, 22w18a, 22w19a, 1.19 Pre-release 1, 1.19 Pre-release 2, 1.19 Pre-release 3, 1.19 Pre-release 4, 1.19
    • Confirmed
    • Mob behaviour
    • Normal

      Snow Golems will continuously shoot snowballs when its target is dead. Though it can be difficult to replicate it, I have managed to do so in the video attached to this issue.

      (The video shows the zombie being teleported instead of dying. In 1.17c1 the snow golem stopped shooting when zombie was teleported away. But when they die they continue to shoot. So video is a little outdated now.) [VIDEO|example.mp4]

       

      First Command Block: (note that giving the Snow Golem slowness 150 gets the same results)

      /summon minecraft:snow_golem ~ ~1 ~ {Attributes:[{Name:generic.movement_speed,Base:0}]}
      

      Second Command Block:

      /summon minecraft:zombie ~ ~1 ~ {Attributes:[{Name:generic.movement_speed,Base:0}]}
      

      Then the zombie gets pushed into a pressure plate that kills him:

      execute as @e[type=minecraft:zombie,sort=nearest] run kill @s

       

      CODE ANALYSIS

      See comment by PR0CESS here.

            Unassigned Unassigned
            _BOBE Brody Romhanyi
            Votes:
            20 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: