[SPIGOT-3285] Villagers won't trade items with NBT tags Created: 02/Jun/17  Updated: 02/Jun/17  Resolved: 02/Jun/17

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Adam Taylor Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: 1.11, bug, spigot, villagers
Environment:

macOS 10.12.5, Java 1.8.0_131, Minecraft 1.11.2


Attachments: PNG File 2017-06-01_20.20.30.png    

 Description   

Created a villager who trades an unbreakable flower for a mushroom.

summon Villager ~ ~1 ~ {Profession:0,CustomName:"Frank",CustomNameVisible:1,Career:1,CareerLevel:42,CanPickUpLoot:0,Invulnerable:1,Offers:{Recipes:[{buy:{id:"red_flower",Count:1,tag:{Unbreakable:1,HideFlags:4}},maxUses:1,sell:{id:"red_mushroom",Count:1,tag:{Unbreakable:1,HideFlags:4}},rewardExp:false}]}}

When first opening the trade window, everything looks fine. After inserting the buy item (the red flower) and clicking on the sell item (the mushroom) the action will be cancelled and the trade will be locked, with a Trade something else to unlock! message

 

This only seems to affect the buy item. If I add tags to the sell item, there don't appear to be any issues. I have also tested this on a singleplayer world, and found no issues.



 Comments   
Comment by md_5 [ 02/Jun/17 ]

Cannot reproduce. Trade works fine for me (1.12-pre6)

Generated at Thu Apr 03 15:45:19 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.