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
/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 with - Reopen the world
- Right click the villager
→
It has trades
2019-07-28, 11:37 PM
2024-10-19, 08:27 PM
2024-10-19, 08:27 PM
9
5
-