Mojira Archive
MC-277556

Villager trades ignore item count

In version 1.21.1 (which seems to use JDK 21), when using the villager spawn command with certain trades, the item count is ignored.
What I expected to happen was...:
If it is written that a villager buys 2 dirts and sells 1 dirt, then here is what he should do

What actually happened was...:
He buys 1 dirt for 1 dirt

Steps to Reproduce:
1. Use a command like _/summon villager ~ ~ ~ {VillagerData

{profession:farmer,level:2,type:plains}

,Offers:{Recipes:[{buy:

{id:dirt,Count:2}

,sell:{id:stone,Count:1},rewardExp:0b,maxUses:9999999}]}}_

Invalid

TheSich

2024-10-12, 09:44 AM

2024-10-12, 03:17 PM

2024-10-12, 10:57 AM

0

2

Unconfirmed

1.21.1

-