Mojira Archive
MC-124876

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

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

Fixed

Jay Eff

[Mojang] Cory Scheviak

2018-02-09, 04:24 AM

2018-08-24, 03:35 AM

2018-06-17, 03:04 PM

11

8

Confirmed

damage-value, villager, villager-trade

Minecraft 18w05a - Minecraft 1.13-pre2Minecraft 18w05a, Minecraft 18w06a, Minecraft 18w11a, Minecraft 18w19b, Minecraft 18w20c, Minecraft 18w22c, Minecraft 1.13-pre1, Minecraft 1.13-pre2

Minecraft 1.13-pre3