RemoveOverstackedItems - dniym/IllegalStack GitHub Wiki

ON BY DEFAULT - Affects ALL Versions

Detects and removes items that have amounts larger than the vanilla stack size, other than an admin using /give or /more on a non-stackable item there shouldn't currently be a way for players to overstack items. However; if you're using a 1.12 world that has been upgraded the chance is VERY high your server has some of these items, as the dupe that overstacked them was extremely simple to do.

This would result in people duping stacks of enchanted diamond armor, swords etc, then loading them inside shulker boxes and doing it again, creating TONS of duped items, many of these get stored by players for literal YEARS.


To enable / disable this protection use the following command: /istack toggle RemoveOverstackedItems


  • IllegalStackMode - If TRUE the whitelist is a whitelist, if FALSE this list is a blacklist.
  • AllowStack - Items added to this list can be larger than the vanilla stack sizes, ie Potions/Ender Pearls
  • PreventOverStackedItemInHoppers - Removes overstacked items if they are found inside hoppers, this can be turned off safely if you do not have players with large stored amounts of overstacked items... If off players can use hoppers to extract items from a large stack one by one.
  • FixOverstackedItemInstead - Instead of removing the entire stack, set the stack to the maximum stack size for that item type.
  • AllowStackForGroup - Items added to this list will be allowed for players with the IllegalStack.OverStack permission. (You can add a * here to allow players with this permission to overstack ANY item).
  • RemoveItemTypes - Item types (eg STRUCTURE_BLOCK) added to this list will be removed if found in a players inventory, useful if players on your server have obtained blocks you do not wish for them to have such as Bedrock.