mojira.dev
MC-150589

Villagers still hold a trade offer in their hand if the player is in spectator mode

The bug

When a player switches into spectator mode while standing in front of a villager and holding an item that this villager wants to trade, the villager will keep the item equipped for a while.

To reproduce

  1. Stand in front of a villager that has available trades

  2. Hold an item that the villager wants to trade (for example, emeralds)

  3. Switch into spectator mode
    β†’ ❌ The villager is still holding the item it wants to trade

Video

[media]

Linked issues

Attachments

Comments 13

Can confirm in 20w51a.

Can confirm in 21w03a.

Can confirm in 21w05a.

Can confirm in 21w05b.

Can confirm in 21w06a.

3 more comments

Can confirm in 1.17.

Can confirm in 1.17.1.

Can confirm in 1.18.1.

Can confirm in 1.19 and 1.19.1 Pre-release 1.

Can confirm in 1.19.2.

violine1101

(Unassigned)

Confirmed

Mob behaviour

game-mode-switch

Minecraft 1.14, 1.15 Pre-release 6, 1.15.1, 20w51a, 21w03a, ..., 1.19.1 Pre-release 1, 1.19.2, 1.19.4, 23w18a, 1.20.1

Retrieved