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:
In reply to anselhelm:
1.17 was a pretty minor change and the changes so far only affect buckets and cauldrons. If you're not overriding those, it should be pretty safe to use the latest version on 1.17. There's a couple more things that I'm looking to implement before release and I don't typically give ETAs for updates. With that said, if you run into any issues or want to watch for dev updates, please feel free to stop by the discord.
In reply to Ryan_plays_mediocrely:
Thank you kindly for the reply and your continued, amazing efforts with this plugin. It's genuinely fantastic ^_^
Super cool plugin! You can even set those values for furnaces, change the xp outcome from furnaces and much more! You can also add groups for items such as all sword types.
The plugin is working perfect for me on 1.16.4 and 1.16.5.
I would recommend to also add this plugin on spigot!
Can you have different permission levels?
What i want is to be able to make ONLY my VIP users be able to stack potions, but not the "default" users.
In reply to chxpx:
Yes, you can use the "group" level seen on the configuration page.
Can you disable which items are stackable?
In reply to maydayrains:
You can modify stack sizes up or down per material, world, inventory, and player.
How can I force stack items? Lets say I'm buying genbuckets from shop and I want them automatically to be stacked when bought (I'm using shopguiplus). Do you know how could I do that?
In reply to Forge_User_23336009:
As mentioned on discord, there isn't an easy way to handle this. Shop plugins tend to use the default give and have no knowledge of StackableItems stack sizes.
Do you plan making a 1.16.x support?
In reply to koliasm:
Unfortunately, this year has been crazy and I fell behind on the 1.16 update. It should mostly work still and my schedule should be clearing up so I hopefully will have some time in the near future to get back to this.
I apologize if this is the wrong forum. I installed the latest stackable items plugin to my shockbyte hosted spigot server but I could not find the items.yml file for modification. Only the items.example.yml file. Where can I find the file ? Thank you. If there is a better place to present this comment please direct me there.
In reply to mrstaab1:
There's a bug in the latest version that is causing it to not be autocreated. Just create a new file called "items.yml" and edit that.
In reply to Ryan_plays_mediocrely:
Thank you very much
This happens now with Netherite Armor
Love the plugin. Two suggestions I would love to be implemented are ways to have separate stack sizes for the same item with different NBT, and for it to check the inventory for things to properly stack when the server gives the player an item, and not just when they pick it up or click in their inventory. Other than that, works very well.
Is there a way to have different stack sizes for the same item but with different NBT like CustomModelData?
In reply to DanMizu:
Not at this time, no.
I just downloaded the plugin and encountered an issue with the MIN and MAX settings.
I tried the following:
allWorlds: default: MIN: 120
inventory: chest: MAX: 65
The overall MIN setting works just fine. But the MAX setting for chests behaves weird.
Everything above MAX 63 turns the stack-size inside a chest to 120.
But MAX 30 or MAX 63 will work as expected.
What I want to achieve is to have higher inventory size for all players on my papermc server but chests need to stay at default stack size.
Can somebody give me an idea what I'm doing wrong?
Edit: Just tried the following:
allWorlds:
player: 6dxxxxe0-xxxx-xxxx-xxxx-64e2cxxxx7a6: original-name: inn0s MIN: 100 inventory: chest: MAX: 64
It will result in the same issue described above.
stacksize for me is 100 but chest stacksize is also 100.
I tried commenting inventory:chest out but with no luck. same issue.
In reply to Forge_User_38305099:
MIN and MAX are confusing and I wish I would have designed them better and had clearer documentation behind them. The complication is that they aren't intended to override each other, but instead the vanilla behavior.
What you can do is instead of setting the default for everything to be a MIN of 120, you can set the player inventory to a MIN of 120 so that everything else is left as vanilla.