mojira.dev
MC-161572

Pillagers/Piglins with pre-loaded crossbows will still try to load their crossbows

The bug

Pillagers summoned with loaded crossbows will still load their already loaded crossbows instead of automatically shooting it. This can also happen if the player save and quit the world while their is a pillager with a loaded crossbow.

To reproduce

  1. Spawn a pillager

  2. Run

    /summon pillager ~ ~ ~ {HandItems:[{id:crossbow,Count:1b, tag:{ChargedProjectiles:[{id:"arrow",Count:1b}],Charged:1b}}]}
  3. Switch gamemode to survival

Alternative

  1. Spawn a pillager

  2. Go to survival, and wait for the pillager to load it's crossbow

  3. Save and quit to title

  4. Re-enter the world
    → ❌ The pillager "loads" pre-loaded crossbow

Notes: This happens if the player save and quit to title or summoning them with commands.

Linked issues

Attachments

Comments 12

Can confirm in 21w03a.

Can confirm in 21w07a.

Can someone approximately tell when this is gonna be fixed? I need this glitch to be fixed for a boss battle I've done for a custom map

Can confirm in 21w15a. @unknown, there is no set date or approximate date of when a bug will be fixed. When the time feels right, Mojang will handle this appropriately. Please be patient. 🙂

2 more comments

I have literally no clue on how to make a datapack to fix this bug

Can confirm in 1.17.

Can confirm in 1.17.1.

Can confirm in 1.18.1.

Can confirm in 1.18.2 and 22w11a.

DrownedZombie

(Unassigned)

Confirmed

Gameplay

Low

Mob behaviour

1.14.4, 19w38b, 19w39a, 19w40a, 19w41a, ..., 1.19.4, 1.20 Release Candidate 1, 1.20, 1.20.1, 1.21

Retrieved