Sueta

Item_Stacker

1.2

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

·Plugin

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:

/stackitems -> Merge all items like the one in your hand together

Permissions:

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:

# 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.

Be aware with higher than default stack sizes

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.

Similar projects

Plugin →