Set max stack size of custom items

Discussion in 'Plugin Development' started by youngbawss22, Dec 30, 2012.

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

    fireblast709

    Not sure how you would set its own max stack amount
     
  2. Offline

    tommycake50

    its easy.
    if its got that name let stacks get big.
    basically listen for inventory click events and get the amount being added.
    then remove the itemstack and replace it with the old amount + the new amount being added.
    call yourself a problem solver...
     
  3. Offline

    fireblast709

    Yes that is what I did for the PlayerPickupItemEvent on the previous page (which is like, a part of the solution)
     
  4. Offline

    tommycake50

    oh right lol.
     
  5. Offline

    youngbawss22

    Wait.. no it would not conflict with the stick's maximum stacking amount?
     
  6. Offline

    tommycake50

    well.
    i beleive not because the stacking of names items i believe is handled separately but i could be wrong.
    its still a different itemstack isn't it?
     
  7. Offline

    youngbawss22

    Yes, the ItemMeta is different. I would have to agree with you here.
     
  8. Offline

    tommycake50

    i guess the only way is to test it out!
     
Thread Status:
Not open for further replies.

Share This Page