1.16.5 Make villager trade ignore item NBT

Discussion in 'Spigot Plugin Development' started by PieHater25, Jul 4, 2021.

  1. Currently, I have a special item that has an NBT that bound to a specific player UUID.
    I create a Shopkeeper to make players able to use that item to trade for another item.

    Is there a way to make Shopkeeper or Villager trade in general ignore NBT of that item and able to trade?

    I was thinking about checking InventoryClick then set the item, but maybe there is a better approach.

    Thanks!
     
    #1 PieHater25, Jul 4, 2021
    Last edited: Jul 4, 2021
  2. TradeSelectEvent - but maybe you'll have to un-ignore cancelled ones in your case
     
    • Useful Useful x 1