Creating an unstackable item?

Discussion in 'Plugin Development' started by MTN, Jul 12, 2013.

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


    Hi there,
    I want that some custom named Items won't stack so I can create custom tools on items that would normally stack.
    I hoped for something like item.setMaxStackSize(int) but it does not seem to exist for items, only for whole inventories, which I can't use...

    Anyone knows a solution?
    I am not that motivated to use pickup and inventory events and manually overwright everything.... :/
  2. Offline


  3. Offline


    MTN You'll have to use the InventoryClickEvent, and test if the amount of the clicked item is larger than one, then cancel the event.
Thread Status:
Not open for further replies.

Share This Page