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
- 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}}]}} - Get a diamond pickaxe via crafting or the creative inventory
- Try to trade
→
It won’t work - Get a diamond pickaxe via
/give @s diamond_pickaxe{Damage:0} - Try to trade
→
It works
2018-02-09, 04:24 AM
2018-08-24, 03:35 AM
2018-06-17, 03:04 PM
11
8
damage-value, villager, villager-trade