The Inventory Weight plugin for Minecraft (Spigot 1.12 - 1.21) enables server administrators to impose weight constraints on a player's inventory. This affects the player’s movement speed and can restrict movement entirely if the inventory weight exceeds a specified threshold. Check out the plugin on the Spigot resource page to learn more and download the plugin.
- Adjustable weight limits for inventory items.
- Customizable movement speed based on inventory weight.
- Option to disable player movement when the weight limit is exceeded.
- Supports custom weight for specific items, item types, and lore tags.
- Configurable update intervals and world-specific behavior.
- Item limits to control the quantity of specific items.
The plugin configuration is managed through a YAML file called config.yml. Below is a breakdown of the available options.
weightLimit: 500
disableMovement: trueweightLimit: Sets the maximum weight a player can carry before their speed will no longer decrease. This allows for a broader range of speed variance as the weight limit increases. Default is500.disableMovement: Iftrue, once the player reaches or exceeds the weight limit, they will be unable to move until they reduce their weight. Default istrue.blindAtMax: true: Iftrue, the player will be blinded when they reach the weight limit. Default isfalse. This can be beneficial because player's can not sprint when they're blinded. Which prevents the player from "jump sprinting" which can bypass the speed reduction.
maxWalkSpeed: 0.30
minWalkSpeed: 0.05
beginSlowdown: 0.0maxWalkSpeed: Defines the player's walking speed when their inventory is empty or under thebeginSlowdownthreshold. Default is0.30.minWalkSpeed: Defines the player's walking speed once the inventory weight reaches or exceeds theweightLimit. Default is0.05.beginSlowdown: Sets the percentage of the weight limit at which the player’s speed will begin to decrease. For example, if set to0.5, speed reduction will start when the player reaches 50% of the weight limit. Default is0.0, meaning slowdown begins immediately.
checkInventoryTimer: 2checkInventoryTimer: Specifies the time in seconds for how frequently the plugin will recalculate the player’s inventory weight. Default is2seconds.
worlds: []worlds: List of world names where the plugin should be active. Leave empty to apply to all worlds. Example:worlds: - world - nether
armorOnly: falsearmorOnly: When set totrue, only the armor slots will contribute to the player’s total inventory weight. Default isfalse.
When defining item weights, you can set custom weights for specific materials, custom item names, and lore tags. When there are conflicts the order of importance is as follows: item model id, lore tags, custom item name, material then default weight.
defaultWeight: 1defaultWeight: This sets the default weight applied to any item that is not specifically listed in the configuration. Default is1.
materialWeights:
- material: IRON_PICKAXE
weight: 5
- material: IRON_SWORD
weight: 10materialWeights: Define custom weights for specific materials. A full list of available materials can be found here.
modelIdWeights:
- modelId: 1000
weight: 13modelIdWeights: Custom item model IDs can have specific weights. This is useful when using plugins like Oraxen that add custom items with unique model IDs.
customItemWeights:
- name: Diamond Sword of Doom
weight: 20customItemWeights: Custom item names can have specific weights, even if they share the same material type as other items.
loreTag: 'Weight:'
capacityTag: 'Capacity:'loreTag: Add a custom lore line to any item with the formatWeight: XwhereXis the weight value. The plugin will recognize this lore and use it to set the item’s weight.capacityTag: Custom lore tags can also be used to indicate an item’s carrying capacity.
itemLimits:
- material: SHULKER_BOX
limit: 5
- limit: 5
modelId: 1000 # use custom model id with plugin like oraxen
- material: SHULKER_BOX
permission: 'somepermission.node' # only applied to people with the permitemLimits: Limits the number of specific items a player can carry. For example, a player can carry no more than5shulker boxes. If they exceed this limit, they will be treated as if they’ve exceeded the max weight. This format checks if materials have the same name, so GREEN_SHULKER_BOX will be included in the count. You can also use permissions to limit items to specific players. Use modelId instead of material to specify custom items. Material and modelId are optional, but at least one must be present, if both are present, the modelId will be used.
The plugin offers a set of commands to interact with the inventory weight system. Below is a list of available commands and their usage:
| Command | Description |
|---|---|
/iw |
Returns a help message, which can be configured in the messages.yml file. |
/iw help |
Same as /iw, returns the help message. |
/iw weight |
Displays your current weight and movement speed. This command will not work if:
|
/iw get |
Returns the weight of the item in your main hand. |
/iw get [Material Name] |
Displays the default weight for the specified material. For example, /iw get IRON_SWORD will return the default weight for an iron sword. |
/iw reload |
Reloads the config.yml file. This allows administrators to make changes to the configuration without restarting the server. |
inventoryweight.reload: Grants permission for a player to reload theconfig.yml.inventoryweight.off: The player with this permission will not be affected by the Inventory Weight plugin.inventoryweight.maxweight.[maxweight value]: Allows the player’s maximum weight to be set to the specified value. For example, if a player hasinventoryweight.maxweight.100, their max weight will be100, overriding the default weight limit.
The following placeholders can be used with plugins that support PlaceholderAPI:
%inventoryweight_weight%: Displays the player’s current inventory weight.%inventoryweight_maxweight%: Displays the maximum weight limit for the player.%inventoryweight_speed%: Displays the player’s current movement speed.%inventoryweight_inventorybar%: Displays a visual bar representing the player's inventory weight.%inventoryweight_weightPercentage%: Displays the percentage of the player’s current weight relative to their maximum weight.
- Survival Servers: Add realism to survival gameplay by limiting how much players can carry, encouraging strategic inventory management.
- Role-Playing Servers: Use the plugin to simulate encumbrance mechanics, adding depth to role-playing scenarios.
- Challenge Servers: Create unique challenges where players must manage their inventories carefully to avoid being slowed down or immobilized.
The Inventory Weight plugin provides a flexible system for managing player inventory weight and speed, with highly customizable options for materials, custom items, and world-specific configurations. Whether used for immersion, balance, or challenge, it enhances gameplay by adding depth to the inventory system.
For more information or to download the plugin, visit the plugin page.