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:
@Wannab007
Well that's why. It doesn't automatically make potions stackable. You have to add the id or name to defaultItems.yml or a player/group config.
By default, it sets the 'All items Max' node to -1 which is saying to use default values. If you want to override all items, you could change that to 64 and all items will stack up to 64. If you just want potions, you can add a line '373: 64' without quotes.
my default config is whats been generated, i made no changes
other plugins are core protect, grief prevention, lockette, essentials, WE/WG, world border, group manager and simple region market
@Wannab007
I need to know what your defaultItems.yml looks like as well as any other plugins you are using as those stack just fine for me.
i cannot stack potions or water bottles, im using 0.7.5 with bukkit 1.2.5R1 b2149
every thing else seems to stack fine, but no potions will
@KnightsOfTables
That is not too surprising, but should be easily fixable. It does seem odd that you can use a single sign to do that though. Thanks for the report. I'll test it out tonight and see what's going on.
@piousminion Commands are planned for the very near future and a reload will be easy to add with them. I do not run a large production server, so I do not come across this. This is why I released it with basic functionality early to get feedback and comments about it.
It's possible to duplicate items using this plugin.
Example:
Have 1 pre-made sign in your inventory. Place the materials to make a sign in a crafting bench. Now put the pre-made sign on top of the sign that is currently shown as the outcome of the bench. They will stack, you can grab them off the bench now, and the items originally used to craft the first sign will not be taken. Thus, you get a free sign. Have only tested with signs, I'd assume it works with any item.
I've created a ticket with this info as well.
@piousminion
A large server should be running a test server for this reason, load the plugin there, test for bugs, create & setup configs. THEN when it is ready you can go live with a single restart.
The number one complaint I have with many plugins including this one:
There is no command to reload the config. This means a large production server has to restart at least twice. Once to create the config, then leave the server on in a misconfigured state while you configure the plugin, then restart again to make it active. While this may be okay for small servers, it's unacceptable for larger ones.
Please add a command to reload the config. thanks.
@HavenOfKairos
That is the first thing on the Todo/Ideas list above so it is known. I attempted to fix this before the last update, but ended up reverting it due to it being inconsistent, unreliable, and occasionally duplicated items. I'll be taking another look at before the next update, but I cannot promise anything.
Found a problem, shift-clicking an item allows the items to stack to their normal amounts.
@haveric
Thank you, working like a charm Vaul permissions also :)
@ZarethD
It's impossible for me to tell when you post it in a line like that, try using code tags. They look about like this:
<<code>>
<</code>>My guess would be that it's not valid yaml. Try running it through an online parser, such as this
Also, check out the plugin's wiki if you still need help.
Hah great. now that I have installed PEX I can't even log in.. this is way too complicated for some reason.
Alright... I downloaded PEX.
It created a Folder PermisionsEX Is that where I'm supposed to be looking?
It looks like this if I edit the permissions.yml in that folder.
groups: default: default: true permissions: - stackableitems.stack - modifyworld.*
But it puts this line in red in notepad "- stackableitems.stack" , and it still doesn't work.
@ZarethD
That depends on what permissions plugin you are using. I only have experience with PEX, but it should be similar for the others.
You should just need to add the '- stackableitems.stack' node under the group or player node you wish to have this.
Okay, my DefaultItems.yml now looks like this
All items Max: -1 Gold_Ingot: 100
Still not working, so I assume this is permissions.
I don't know where I am supposed to put stuff for permissions though.
Can I set a permission for all players and how would I do so and where do I put it? Or does it already exist somewhere and I just need to add a line to it or something?
Sorry again and thanks for your help
@ZarethD
I changed the files around a few versions ago when adding stuff, so config.yml was where everything was held. It is now in defaultItems.yml and any custom file names you make associated with permissions.
@haveric
That is what I don't get....
Everyone posts what is in their config as just
"All items Max: -1 GOLD_INGOT: 100"
But mine has an extra line, do I leave it, delete it, put it at the beginning or at the end?
!!!! I edit defaultItems.yml and not the config?!
Woah, might help if I had done that, everyone said they were editing the config file so that might be my problem..
@ZarethD
First of all, if you were supposed to delete the files in the config after you installed it, that wouldn't really make much sense. It may not be the clearest thing though, and I'll try to see what I can do about that in the future. The files each have their purpose and if you delete them, they'll just get remade anyway.
For gold ingots, you can use either GOLD_INGOT, gold_ingot, or 266. If you are unsure of what something is called, you can use the id or look it up here: http://jd.bukkit.org/doxygen/d7/dd9/namespaceorg_1_1bukkit.html#ab7fa290bb19b9a830362aa88028ec80a
I'm not sure why you would think deleting a line in a file would be your best option. Virtual Items is a feature that is not fully implemented that you are free to set to true if you wish. It just could cause duplication of items, or loss of items in the current state.
You can ignore config, customTools, and defaultTools as they won't apply to you. What you need to edit is defaultItems.yml or see above for permission based files.
The proper use then is:
Yes, you do need to do something with permissions. Any person or group that you want to be affected should have the permission node listed above.
I can't make this work.
I assume I edit the config... why are there three other files in the directory? Can I / should I delete CustomTools, DefaultItems, and DefaultTools?
I am trying to make Gold Ingots stack to 100...
Do I delete the line in the config that says "Virtual Items: false"?
Do I write Gold_Ingots, GOLD_INGOTS, GOLDINGOTS, GOLDINGOTS, or 266? I have tried all of them and they do not work.
Do I HAVE to do something with permissions? I am using vault but have not had to do any permissions stuff yet so I have no clue...
Alright,trying this out! :D