mojira.dev
MC-77061

Villager trading: when [buy] and [buyB] tags are the same only one item is required

Create a custom villager with a trade containing things like

buy:{id:minecraft:flint_and_steel,Count:1b,Damage:0s},
buyB:{id:minecraft:flint_and_steel,Count:1b,Damage:0s},
sell:{id:minecraft:emerald,Count:1b,Damage:0s}

(should buy two flint and steel for one emerald)
because flint and steels are not stackable that is what I did.

It would look something like <see attachment 1|2>

The thing is though. whenever you put in ONE flint and steel it will already validate the trade and letting you take an emerald. thus only paying ONE flint and steel instead of two for one emerald!

it does NOT matter whether you put it in the first or second slot.
One flint and steel validates.

Linked issues

Attachments

Comments 2

Is this still an issue in the current Minecraft Snapshot 15w46a or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

Seems to be fixed!
Confirmed in 16w06a to be fixed.
creating a villager with the same trade will require both slots to be filled!

AgentM

(Unassigned)

Unconfirmed

Minecraft 1.8, Minecraft 1.8.1, Minecraft 1.8.2-pre4, Minecraft 1.8.2-pre5, Minecraft 1.8.2-pre6

Retrieved