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
/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:{}}
Right click the villager
→ ✔ It cannot be traded withReopen the world
Right click the villager
→ ❌ It has trades
Linked issues
is duplicated by 3
Attachments
Comments 6
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!
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.