Item_Stacker 1.2

Merge items into one stack by one Command. Highly costomizable to fit your needs.

  1. Michel_0
    Item_Stacker

    This plugin allows you to stack all items of the same type like the one in your hand into one stack.

    Fifth birthday is near!
    Time for a revival?
    [Read more]

    It automatically combines only identical items, so you can even stack things like books or other items containing custom NBT Tags.
    It merges all items together into complete stacks. The stack size and many other things can be defined in the config.yml:

    Functions:
    • Define what items should be stackable by permissions
    • Define who should be able to use it by one main permission
    • If needed, turn off per-item permissions in the config
    • Define a global stack size for all items (minimum: 1, maximum: 127)
    • or just use vanilla default stack sizes
    • Define specific special stack sizes for each item (1 - 127)
    • Merge stacks by one command
    • Customize all messages in the config
    Commands:
    Code (Text):
    /stackitems -> Merge all items like the one in your hand together
    Permissions:
    Code (Text):
    itemstacker.use -> needed to use any function of this plugin

    itemstacker.stack.<Material>
      -> when "per-item-perms" in config.yml is true, these permissions are needed for each item a player should be able to merge.
      All Materials can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
      Missing material permissions will be displayed in the default deny-message, so you could look up the material name there, too.
    Configuration:
    Code (YAML):
    # Do you want to use this command only for specific items?
    # If this is true, players will need the itemstacker.stack.<ITEM> permission.
    # e.g. itemstacker.stack.COBBLESTONE
    # All item names can be found here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
    per-item-perms
    : true

    # Default stack size for every item
    # ! DO NOT SET SIZE HIGHER THAN 127 !
    # Maximum possible stack size of Minecraft vanilla clients is 127
    # Value 0 -> will stack each item on its normal vanilla-default value
    stack-size
    : 0

    # Different stack size for specific items
    # Stack sizes in here will override default stack-size defined above
    # e.g. 'EGG': '32'
    # You need to use Item names, like they are defined here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
    # An empty map would look like this: special-sizes: {}
    special-sizes
    :
      'WATER_BUCKET'
    : '16'
      'LAVA_BUCKET'
    : '16'

    # Define the ingame messages.
    messages
    :
      'no-perm'
    : '&7[&eStacker&7]&2 You are not permitted to use this command.'
      'no-itemperm'
    : '&7[&eStacker&7]&2 You need &a&o<PERM>&2 to stack this item.'
      'no-player'
    : '&7[&eStacker&7]&2 Only players can use this command.'
      'no-item'
    : '&7[&eStacker&7]&2 You need to hold the item you want to stack in your hand.'
      'stacked'
    : '&7[&eStacker&7]&2 All &a&o<TYPE>&2 items has been combined.'
    • No external API used (only Spigot)
    • No other plugins necessary
    • Detailed tested on Spigot 1.8.8 without any Problems
    • Compiled by Java 8 SDK, your Server should be running on Java 8 JRE to use this plugin
    • This plugin uses Metrics by MC Stats (http://mcstats.org/plugin/Item_Stacker)
    Need additional Features or got some interesting ideas?
    Leave a reply and i'll add this or other functions if requested.

    Special thanks to @DfieldJr who game me the idea of this plugin (here).

    Replys, ratings and suggestions welcome.

    [​IMG]
    You can use this plugin to bypass default stack size limits.
    But the plugin does not affect how minecraft (spigot) treats these stacks!
    Few examples:
    • if you stack lava / water buckets, spigot will empty all buckets of the stack
    • if you stack any kind of tools (pickaxes, shovels,...) spigot will damage all tools of each stack together
    This is how minecraft handles stacks exeeding the default maximum amount and it's not controlled by this plugin.

    Maybe I'll start correcting these minecraft "malfunctions" of too high stack sizes in the future, but to find, modify and correct all of them will be a never-ending story.
    minez and zThana like this.

Recent Updates

  1. Variable Stack sizes

Recent Reviews

  1. jeane1
    jeane1
    3/5,
    Version: 1.2
    please add automatic stack
    - pick up
    - travel by inventory
    ................................
  2. BlvckBytes
    BlvckBytes
    1/5,
    Version: 1.2
    You just copied that Code out of WorldGuard.

    _______________________________________
    1. Michel_0
      Author's Response
      I used this plugin project to learn things by myself.

      Merging item stacks isn't really hard to do. So if WG comes up with a similar solution, that's not astonishing.

      Imagine 2 people got the task to calculate 1+1. Person 1 does "1+1=2" and person 2 does "1+1=2"... did person 2 just copy from person 1?

      For the protocol:
      I did not decompile WorldGurard. I don't know the source of WorldGuard. I implemented all code out of the ideas of myself.
  3. kyleNalbandian
    kyleNalbandian
    1/5,
    Version: 1.2
    if i stack 5 buckets of lava and i lace it on the ground im only left with one bucket
    1. Michel_0
      Author's Response
      Please read the description!
      "You can use this plugin to bypass default stack size limits. But the plugin does not affect how minecraft (spigot) treats these stacks!
      This is how minecraft handles stacks exeeding the default maximum amount and it's not controlled by this plugin."
      I tried it on v1.12 and it works well. What Version are you using?
      Reply here https://www.spigotmc.org/threads/105960/ for further Support.
  4. Tophop
    Tophop
    4/5,
    Version: 1.2
    Would be very helpful if you told what versions this runs for on Minecraft, I ran it on 1.11 and it did not work. Maybe I am just blind, but I do not see the versions list.
  5. minez
    minez
    4/5,
    Version: 1.2
    I hope that this is a great plugin, so can't use it because of the limitations of java (I have 1.7). But the author is responsive and I hope the plugin will get support for lower versions of Java. If the tests show stable work of the plugin on this version, ready to support me financially.

    Will gladly leave a rating of 5 points
  6. edtheted123
    edtheted123
    2/5,
    Version: 1.2
    No config file gets generated for me? is this a bug? Or is it called something different to Item stacker?
    1. Michel_0
      Author's Response
  7. LunaticGamer
    LunaticGamer
    4/5,
    Version: 1.2
    Good features just needs 1 or 2 things added or changed.

    For some reason the plugin does not recognise the difference between splash potions and drinkable potions.
    1. Michel_0
      Author's Response
      It stacks splash and normal potions together? I highly doubt that. I couln't reproduce this malfunction. When I try to stack potions, normal and splash keeps seperated.
      What PL Version where you using and what server version?
      Make sure, that this really happens, when you use "/item_stacker:stackitems".

      Please reply by PM or here: https://www.spigotmc.org/threads/item_stacker.105960/

      Anyway thanks for your reply.
  8. Kismett
    Kismett
    4/5,
    Version: 1.1
    This is the simplest item stacking plugin out there! Please add the ability to set individual item stack limits! Other than that, everything else works properly. Thank you!
    1. Michel_0
      Author's Response
      Thanks for your reply.
      I just implemented your requested feature.
      Feel free to test, use, reply the new version of Item_Stacker.
  9. DfieldJr
    DfieldJr
    5/5,
    Version: 1.1
    ty ^_^
    Woah! Allready 16 downloads amazing :)
    ------------------------------------------------------
    Thanks bud
    1. Michel_0
      Author's Response
      You're welcome.
      Also check out new Item_Stacker v1.2.