mojira.dev
MC-148949

Heavily traded villagers from 1.13 are buggy and can allow infinite trading

I have a Toolsmith that was heavily traded with in 1.13.  When I look at that villager in 1.14 Pre 5, it just says "Toolsmith" and no XP bar.  All the trades I'd expect to see from 1.13 are present, but no matter how much I trade, it never unlocks shovels or anything or changes to "Master Toolsmith".  Again, there's simply no XP bar journeyman thing present.

 

And trade I can!  The diamond pick NEVER trades out.  I can trade infinitely, as long as the emeralds hold out.  All the other trades will trade out.

I have another toolsmith I never traded much with that did show up with Journeyman XP and still all the 1.13 trades unlocked (including the diamond pick) and then it goes and I get another pick from the vendor as I level it and eventually the shovel and then that's it.

Linked issues

Attachments

Comments 5

Full level Villagers do not show an EXP bar. Are all the trades unlocked?

All the 1.13 trades were already unlocked before loading it up in 1.14 PR on both traders.  In 1.13 the trader had been heavily traded with.  The other, not so much.

The heavily traded villager has no XP bar, is only called Toolsmith, and I can infinitely trade diamond picks with no lockout.  The lesser traded one does get the XP bar and eventually goes away when I trade through to Master Toolsmith, as expected.  However, it already had all its tools unlocked, so it still added a couple things, but didn't look right.  When unlocking them, I probably traded 1 lot of coal, let the refresh occur, then 1 lot of iron, so that would expose the diamond pick.  Minimal trading.

In 1.14, the XP and levels add another pick and then a shovel and then it's at master.

Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.

Please attach (or provide a download link of) the world here so we can reproduce the issue.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki

The trades are not infinite, just a large number. This can be verified by looking at the NBT for the trade offers for the villagers (I used NBTExplorer). Eventually, the trades will lock if they are used enough.

To see this, here is a sample of such an "infinite" trade for a villager that I have in my world, a cleric with the seven 1.8 trades:

  • buy: 1 emerald

  • buyB: 0 air (this is normal for the second slot)

  • sell: 4 redstone

  • demand: -91122920

  • maxUses: 5210

  • priceMultiplier: 0

  • rewardExp: 1

  • specialPrice: 0

  • uses: 3448

  • xp: 1

Notice how the maxUses is a large number, and the uses is also large. If uses was equal to maxUses, the trade will lock.

[media]

has some villagers that exhibit the "infinite" trading behaviour. Go to the andesite pillar at the world spawnpoint and press the button to be teleported to the villagers.

Zerathon

(Unassigned)

Community Consensus

(Unassigned)

Minecraft 1.14 Pre-Release 5

Retrieved