Mojira Archive
MC-147446

Making a trade with villager by shift-clicking non-stackable item gives you only one item.

  1. Spawn a villager (you can set NoAI to 1b on him to make reproduction easier).
  2. Make him sell a nonstackable item and set recipe's maxUses to a low value:
    /data modify entity @e[type=villager,sort=nearest,limit=1] Offers.Recipes[0] merge value {uses:0,maxUses:8,buy:{id:"minecraft:emerald",Count:1b},sell:{id:"minecraft:stone_shovel",Count:1b}}
  3. Put 8 emeralds in a first trade slot, watch your inventory and shiftclick the shovel.
  4. 7 shovels flashed and disappeared right away, you got only 1 shovel, and the trade has reached it's max uses: /data get entity @e[type=villager,sort=nearest,limit=1] Offers.Recipes[0].uses

Duplicate

xParadoxical_

2019-04-04, 11:10 PM

2019-04-05, 06:12 AM

2019-04-05, 06:12 AM

0

0

Unconfirmed

Minecraft 19w14a

-