mojira.dev
MC-157950

Custom villager without offers appears with trades when reconnecting/reloading chunk

The bug

Summoning a villager with an empty Offers tag correctly spawn a villager which cannot be traded with. However, when reopening the world the villager has trades.

How to reproduce

  1. /summon minecraft:villager ~ ~2 ~ {CustomNameVisible:1b,PersistenceRequired:1b,Health:20000f,CustomName:"{\"text\":\"John\",\"bold\":\"true\",\"color\":\"green\"}",VillagerData:{level:1,profession:"minecraft:leatherworker",type:"minecraft:snow"},NoAI:1b,Offers:{}}
  2. Right click the villager
    → ✔ It cannot be traded with

  3. Reopen the world

  4. Right click the villager
    → ❌ It has trades

Linked issues

Attachments

Comments 6

I tried putting in "Recipes:[{}]" in his "Offers" which resulted in him having a trade of nothing for nothing, however this persist after exiting and reentering the game. I have included a screenshot of this.

Otherwise I were able to reproduce the same result where the custom villager gets trades after relogging.
The same happens if his level is changed to 2 or higher.

Still seeing this bug in 1.16.3.  It's driving me nuts.  Would love to see a fix! Can anyone comment on if this issue is being looked at and when it might be resolved? Many thanks!

Can confirm in 20w49a.

Can confirm in 1.16.5 and 21w08b. Video attached.

Can confirm in 1.18.1.

Can't reproduce/Fixed in 24w05a. An empty offer will show the default trades in 24w05a and onwards instead of disallowing the villager from trading.

24w04a:

[media]



24w05a:

[media]

Carlos Jiménez

(Unassigned)

Confirmed

(Unassigned)

1.14.4, 1.15.1, 1.15.2 Pre-release 2, 1.15.2, 20w06a, 20w49a, 1.16.5, 21w08b, 1.18.1

Retrieved