StackableItems
StackableItems
StackableItems allows you to raise or lower the default stack amounts for any item. Items can also be disabled (disallows pickup and crafting). Items can be set in three different ways: individual players, permission groups (requires Vault), and universally.
Example use cases:
- Carrying 16 snowballs while carrying 64 cubic meters of dirt is ridiculous.
- Carry a stack of water buckets or mushroom soup with you so you never run out
- Make potions stack
- Limit stacks of food for a hardcore survival server
- Allow only privileged users to craft/pickup TNT
- Allow individual players to craft custom items
Download: BukkitDev
Source Code: Github
Example configurations
- Items are capped to 127 max to prevent item loss.
- Configurations use Bukkit Material names.
More info on the Configurations page.
Custom configs per group/player
Each Permissions group or player can be setup to use their own custom config by creating a new file in the StackableItems directory. Examples for me would be: I am in group admin and player haveric, so I could use admin.yml or haveric.yml
A group file will override defaultItems for the Permission group.
A player file will override a group file or defaultItems for the given player.
Permissions
- - stackableitems.admin
- Allows a player to use in-game commands to set stack amounts and reload the config.
- Permissions can also be used to create groups which can be handled with group.yml (ex: admin.yml) files
Options
See the options page for detailed descriptions of each option in options.yml
Changelog
See the full changelog on github.
Problem or Bug?
If you are having any issues or encounter any bugs, check the issue tracker on github first, and submit a new one if needed. If you're not sure if you've found a bug or just want to ask for help, jump on the Discord server below to ask around.
If you find my plugins useful and want to help support future development and faster updates, please consider donating and fueling my need for coffee:
HELLO! this is the main plugin for my server. The idea : pvp server like 1.7 food doesnt stack, but all food heals. Problem is, when players craft bread or smelt beef or porkchops, the food stacks. :( It is ruining the pvp! Please help me!
@Kickasher
This should be fixed in the latest version, 0.8.2. If you are running this version, please let me know and provide steps to reproduce.
@MRCartm0n
I can confirm that's items stacking tools enchants them all :/
Any news on the fix?
@MRCartm0n
I'll take a look tonight or tomorrow when I get a chance and see if I can replicate that.
Thanks for the report.
Virtual items is set to false.
I'm running CraftBukkit 1.2.5 R3.0 and I don't have any other plugins who change the inventory in some way.
@MRCartm0n
Is this with the default config of Virtual Items set to false? Also, what version of CraftBukkit are you running and do you have any other plugins that deal with inventory?
Found a major bug: When you pick up an undamaged stackable item it can stack with enchanted stuff and every item from the stack gets enchanted.
@RamTamSpecial
I don't think any of those should be a problem and it works fine for me on #2203, unless one of them modifies potions or inventory that I don't know about.
Can you zip up the StackableItems folder in the plugins directory and send it to me?
I'm using the recommend build #2203 1.2.5 R.3.0 Oh a lot of plugins, a lot of people said that I have to many :D
AntiMobSpawn Appleseed BHNS Burning Mobs Creative Gates DwarfForge EasyVanish EchantedXP Giant_trees iChat GlobalShop Iconomy PermissionsEX MobDisguise MoreEXP PistonChest Scavenger SignColours SimpleChestLock SimpleFly StackableItems Spectate StickyBlock TimeShift TheExperienceMiner Vault VoxelSniper Wireless Redstone WorldEdit WorldGuard
@RamTamSpecial You do want the decimal code as 21 matches to Potion of Healing which works for me. What version of CraftBukkit are you running and what plugins do you have?
@ChromoTrigger Could you post a full error log please? Also what version of CraftBukkit are you running and what other plugins are you using?
Since v0.8 (including v0.8.1) it fails completely to work on my server, throwing the error "[SEVERE] Could not pass event PlayerInteractEvent to StackableItems" if I try to change stack sizes.
I did not have this problem with v0.7.5 and previous versions, and this error does not occur if I downgrade to that one.
Nope it does not work :/ I used both of the reload commands and I restart the server manually.. I use world guard too, there is a /stack command wich can used as a alternative but your plugin is much easier and better :/ Do I use the Dec or Hex code?
@RamTamSpecial
Alright, for healing potions, 373 21: 64 and potion 21: 64 both work
Make sure that you either reload the server or use /stackableitems reload after changing the file to reload the configurations.
Let me know if that works. If it doesn't, there may be other things causing problems.
Of course I'm so sorry that I missed it. ALL ITEMS MAX: -1 POTIONS 21: 64 POTIONS 31: 64 SNOW_BALL: 64 This is the defaultitem.yml
Virtual Items: false Furnace Amount: -1 This is in the config.yml
The furnaces.yml in the data folder is empty Not quite sure what it is for.. Ah and I also use Vault
@RamTamSpecial
Can you post your exact defaultitems.yml and config.yml files? That would greatly help, thanks.
Does it work for potions? I tried the Dec code 373 and after that the Deccode from this side: http://www.minecraftwiki.net/wiki/Data_values#Potions Am I doing it right? I changed/added the setting in the defaultitems.yml and added my two groups in the groups.yml.. Ah it do work for snowballs with your given setting..
@HavenOfKairos
Unfortunately no, I'll have a chance to tackle that again this week though since I am finally done with school. Last time, issues came up with chests I believe that caused duplication of items.
Shift-clicking problem fixed? Easy to figure out by anyone, mostly by accident.
EDIT: Problem solved. Faulty permissions.