Solved Make Custom Item Not Stack

Discussion in 'Plugin Development' started by XDemonic25, Feb 27, 2013.

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

    XDemonic25

    Im creating a custom item using the "Compass"
    It has a Custom Name and everything. But I wish to not let it stack at all.

    I got some code working so u cant stack them in ur inventory and chest etc. But what about picking up the item. And on a further note, When you drop a certain amount of item of the same type doesnt bukkit/minecraft automatically Group them together? how can this be prevented?
     
  2. Offline

    Tirelessly

    If it has a custom name it won't stack.
     
  3. Offline

    XDemonic25

    They Do Stack
    The Custom item is Created Through the Workbench. You can create multiple of them. I coded so you cant Stack them "in the inventory" but when i press "Q" (to drop the item) then pick it up. Itll stack ontop of my Other Custom Item.

    As for the 2nd problem. If I drop 2 Custom Items (using Q) at the same location. They get Grouped Together.
     
  4. Offline

    Tirelessly

    Oh, ok. Try setMaxStackSize.
     
    XDemonic25 likes this.
  5. Offline

    XDemonic25

    How is that used?

    Figured it out, Thanks

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 31, 2016
Thread Status:
Not open for further replies.

Share This Page