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


    • Icon: Bug Bug
    • Resolution: Fixed
    • Minecraft 1.13-pre3
    • Minecraft 18w05a, Minecraft 18w06a, Minecraft 18w11a, Minecraft 18w19b, Minecraft 18w20c, Minecraft 18w22c, Minecraft 1.13-pre1, Minecraft 1.13-pre2
    • Confirmed

      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

            cojomax99 [Mojang] Cory Scheviak
            puppetpal clem Jay Eff
            11 Vote for this issue
            8 Start watching this issue