Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-147446

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Minecraft 19w14a
    • None
    • None
    • Unconfirmed

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xParadoxical_ xParadoxical_
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: