Skip to main content
πŸ”₯Popular⭐Recommended

Item Limiter

Restrict how many of a specific item type a player can have in their inventory.

Overview​

The Item Limiter sets maximum quantities for any item type. You can prevent players from carrying 10 totems or unlimited golden apples. You can also ban items entirely by setting their limit to 0.

Item Limiter demo

Configuration​

features:
item-limiter:
enabled: false
notify-player: true
notify-message: "Β§c[Vanilla Core] Β§7Excess items removed: {item} x{amount} (limit: {limit})"
drop-excess: true
limits:
GOLDEN_APPLE:
material: GOLDEN_APPLE
limit: 96
COBWEB:
material: COBWEB
limit: 64
TOTEM_OF_UNDYING:
material: TOTEM_OF_UNDYING
limit: 2
EXPERIENCE_BOTTLE:
material: EXPERIENCE_BOTTLE
limit: 128
WIND_CHARGE:
material: WIND_CHARGE
limit: 64
SPLASH_POTION_STRONG_STRENGTH:
material: SPLASH_POTION
limit: 0
potionType: STRONG_STRENGTH

Configuration Options​

OptionTypeDefaultDescription
enabledbooleanfalseMaster toggle for the item limiter
notify-playerbooleantrueWhether to notify players when items are removed
notify-messagestring(see below)Message shown when excess items are removed
drop-excessbooleantrueWhether to drop excess items (true) or delete them (false)
limitsmapvariesMap of item limit configurations

Message Placeholders​

The notify-message supports these placeholders:

PlaceholderReplaced With
{item}The item type name (formatted nicely)
{amount}Number of items removed
{limit}The configured limit for that item

Excess Item Handling​

When drop-excess: true (default):

  • Excess items are dropped at the player's feet
  • Items can be picked up by other players

When drop-excess: false:

  • Excess items are permanently deleted
  • Use with caution

Limit Configuration​

Each limit entry can use simple or advanced format:

Simple Format​

limits:
TOTEM_OF_UNDYING:
material: TOTEM_OF_UNDYING
limit: 2

Advanced Format (Custom Items)​

limits:
custom_key:
material: MATERIAL_NAME
limit: 3
customModelData: 123 # Optional - match specific custom model data
displayName: "Β§cCustom Name" # Optional - match specific display name
potionType: POTION_TYPE # Optional - for potions only
PropertyTypeRequiredDescription
materialstringYesMinecraft material name
limitintegerYesMaximum quantity (0 = banned)
customModelDataintegerNoMatch items with specific custom model data
displayNamestringNoMatch items with specific display name
potionTypestringNoMatch potions with specific type

Using the GUI​

  1. Run /smp to open the main menu
  2. Click on Item Limiter
  3. Left Click: Toggle the feature on/off
  4. Right Click: Open the Item Limiter settings menu

Adding a New Limit via GUI​

  1. Open the Item Limiter settings menu
  2. Click the "Add New Limit" button
  3. Type the material name in chat (e.g., totem_of_undying)
  4. Type the limit number in chat (e.g., 2)
  5. The limit is saved

Modifying an Existing Limit​

  1. Click on the item in the menu
  2. Type the new limit in chat

Removing a Limit​

Shift + click on the item to remove its limit.

Banning Items​

Set an item's limit to 0 to completely ban it:

limits:
MACE:
material: MACE
limit: 0

This prevents players from having ANY of that item in their inventory.

Potion Limits​

You can limit specific potion types:

limits:
# Ban strength II splash potions
SPLASH_POTION_STRONG_STRENGTH:
material: SPLASH_POTION
limit: 0
potionType: STRONG_STRENGTH

# Ban swiftness II splash potions
SPLASH_POTION_STRONG_SWIFTNESS:
material: SPLASH_POTION
limit: 0
potionType: STRONG_SWIFTNESS

Potion Type Reference​

TypeDescription
STRENGTHStrength I
STRONG_STRENGTHStrength II
SWIFTNESSSpeed I
STRONG_SWIFTNESSSpeed II
LONG_SWIFTNESSSpeed I (extended)
HEALINGInstant Health I
STRONG_HEALINGInstant Health II
HARMINGInstant Damage I
STRONG_HARMINGInstant Damage II
POISONPoison I
STRONG_POISONPoison II
INVISIBILITYInvisibility
LONG_INVISIBILITYInvisibility (extended)

Custom Model Data Matching​

Match items from resource packs with specific custom model data:

limits:
custom_sword:
material: DIAMOND_SWORD
limit: 1
customModelData: 12345

Suggested Limits​

Essential PvP Limits​

ItemSuggested LimitReasoning
TOTEM_OF_UNDYING1-2Prevents totem stacking
ENCHANTED_GOLDEN_APPLE2-3Limits healing advantage
GOLDEN_APPLE64-96Moderate healing available
END_CRYSTAL2-4Prevents crystal PvP spam

Mobility Limits​

ItemSuggested LimitReasoning
ELYTRA1No backup elytras
ENDER_PEARL16Limited escape options
CHORUS_FRUIT16Prevents teleport spam

1.21+ Combat Items​

ItemSuggested LimitReasoning
WIND_CHARGE64Limits knockback spam
BREEZE_ROD64Crafting component
MACE1One mace per player (or use Mace Limiter)

Item Bans​

Common items to ban (limit: 0):

limits:
# Ban Strength II potions
SPLASH_POTION_STRONG_STRENGTH:
material: SPLASH_POTION
limit: 0
potionType: STRONG_STRENGTH

# Ban cobwebs (if not using Enchantment Limiter for knockback)
COBWEB:
material: COBWEB
limit: 0

Finding Material Names​

Use Minecraft's internal material names. Common ones:

ItemMaterial Name
Totem of UndyingTOTEM_OF_UNDYING
Golden AppleGOLDEN_APPLE
Enchanted Golden AppleENCHANTED_GOLDEN_APPLE
End CrystalEND_CRYSTAL
Ender PearlENDER_PEARL
ElytraELYTRA
MaceMACE
Wind ChargeWIND_CHARGE
Splash PotionSPLASH_POTION
Lingering PotionLINGERING_POTION
PotionPOTION

For a complete list, check the Spigot Material Documentation.

Troubleshooting​

Items not being limited​

  1. Check enabled: true in config
  2. Verify material name is correct (uppercase with underscores)
  3. Ensure limit entry has both material and limit fields
  4. Run /smp reload after config changes

Potion limits not working​

  1. Ensure you're using the correct potionType
  2. Check you're targeting the right material (SPLASH_POTION, LINGERING_POTION, or POTION)

Custom model data not matching​

  1. Verify the exact custom model data number from the resource pack
  2. Ensure the material matches the actual item type