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

Villager trades ignore item count

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.21.1
    • None
    • Windows 10
    • Unconfirmed

      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}]}}_

            Unassigned Unassigned
            TheSich TheSich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: