Trade inventory

Discussion in 'Plugin Development' started by TheGamblingMan, Jun 2, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    TheGamblingMan

    Hey is there a way to create a Villager trade inventory without editing nms classes?
     
  2. You can use an event that triggers when you interact with an entity, and then check if the player is clicking the right villager, and cancel the event and send them the packets with the inventory.
     
  3. Hey,

    I've spent some hours to write code, creating custom villagers. Just look at the thread here in the same category. Unfortunately this only works (at the moment) only with completely different items in one villager.

    Bram0101: May you give an example. I tried it myself but a Merchant Inventory never appears (a Workbench Inventory did). And I don't know, how to set the slots best. Thanks for answer ;)

    greetings,
    Arcalio
     
Thread Status:
Not open for further replies.

Share This Page