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

Villagers requesting tools with no damage provided specifically want Damage:0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 18w05a, Minecraft 18w06a, Minecraft 18w11a, Minecraft 18w19b, Minecraft 18w20c, Minecraft 18w22c, Minecraft 1.13-pre1, Minecraft 1.13-pre2
    • Fix Version/s: Minecraft 1.13-pre3
    • Confirmation Status:
      Confirmed

      Description

      The bug

      When a villager wants to buy a tool, it will look for a Damage:0 tag while it should be ignored. Normally obtained tools do not have Damage ever set to 0 (until after a reload – more information in MC-125880).

      Steps to reproduce

      1. Summon a villager which asks for a diamond pickaxe:
        /summon villager ~ ~ ~ {Offers:{Recipes:[{uses:0,maxUses:1,buy:{id:diamond_pickaxe,Count:1},sell:{id:emerald,Count:1}}]}}
      2. Get a diamond pickaxe via crafting or the creative inventory
      3. Try to trade
        It won’t work
      4. Get a diamond pickaxe via
        /give @s diamond_pickaxe{Damage:0}
        
      5. Try to trade
        It works

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cojomax99 [Mojang] Cory Scheviak
                Reporter:
                puppetpal clem Jay Eff
              • Votes:
                11 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: