Inventory Weight [1.16 - 1.21] icon

Inventory Weight [1.16 - 1.21] -----

Player speed is affected by your inventory weight, great for hardcore and roleplay servers!



file.png
This plugin tracks of the number of items a player has in their inventory. While letting you configure the weight of those items by material, item name, or item lore! The heavier your inventory is the slower your player will move. There are tons of ways to configure the plugin to make sure it fits your server's needs. This is a great mechanic to add to hardcore servers or to make roleplay servers more realistic.

Features
  • Player speed decreases as their inventory weight grows.
  • Customize the range of movement speed
  • Set the percentage of weight capacity where you want the player's speed to begin decreasing.
  • Customize the weight of each item by material, item name, or through the item lore with lore tags.
  • Customize messages in the plugin to fit your needs and cater to different languages.
  • Freeze player movement at a given max weight.
  • Per player weight capacity with permissions (See the inventoryweight.maxweight permission node).
  • Placeholder API support
  • Configure which worlds use this plugin
  • Custom model id configuration to support custom item plugins!
InventoryWeightPlugin.PNG

Commands
/iw help - returns a help message than can be configured in the messages.yml file
/iw weight - shows your current weight and speed. Note: this command will not work if the user has the inventoryweight.off permission, the user is in creative or weight is disabled in the given world.
/iw get - returns the weight of the item in your main hand
/iw get [Material Name] - returns the default weight for a material
/iw reload - reloads the config.yml, this allows you to make changes to the config while the server is running.



Permissions

inventoryweight.reload - gives permission for a player to reload the config.yml.

inventoryweight.off - the given player is not affected by the inventory weight plugin.

inventoryweight.maxweight.[maxweight value] - if a player has this permission set their max weight will be the given value. For example, if a player has the permission inventoryweight.maxweight.100, then their max weight will be 100, this overrides the default max weight.

Placeholders
  • %inventoryweight_weight%
  • %inventoryweight_maxweight%
  • %inventoryweight_speed%
  • %inventoryweight_inventorybar%
  • %inventoryweight_weightPercentage%
Configuration
The config.yml can be used to change the way this plugin works. You can use min walk speed and max walk speed to control how fast or slow players can move at the maximum weight and 0. The max weight limit is used for all players (multiple max weights can be set via permission nodes). At the weight limit, the player will reach the minimum speed or lose the ability to move completely (this can be changed in the configuration file). A disable movement flag can be set true and the player will not be able to move once at maximum capacity. The weight of each item can be set in the config either by material, by display name, or using lore tags. If the weight of an item isn't set then it will take on the default weight.

The beginSlowdown value in the config allows you to set a percentage of the weight limit capacity that you want speed changes to begin to be applied to the player.

Lore Tags


minecraftloretag.png

An important part of the configuration is the 'loreTag' value, which lets you control the weight of an item from the item lore. This is great for custom items, see the image above. It works by setting a lore tag in the config for example "Weight:". To set a custom weight you would need to have a line in the item lore equal to something like "Weight: 17.8" The item would have a weight of 17.8. The plugin is looking for a number in the same line as the given tag. There must be a space key in front of the number. This is the highest priority way to set the weight of an item.

Additionally, there is a capacityTag value in the config. Use this to set a lore tag similar to the above. This tag will increase the max weight of the player holding the item.



If you enjoy using this plugin please leave a review and let me know what features you'd like me to add in the future!

Please report all bugs/issues in the discussion thread or send me a direct message here or on discord at wonka19

I enjoy making free plugins but if you'd like to support me and motivate me to continue working on them feel free to use my donation link.

Upcoming Features
  • Premade config.yml files for specific use cases (ex. Armor and weapons only)
  • More customization options
  • The ability to disable players from picking up more items at a certain weight
I appreciate the feedback I've gotten so far. I'd love to get some more ideas for additional features as I work to improve the quality of this plugin.
Resource Information
Author:
----------
Total Downloads: 8,703
First Release: Aug 31, 2019
Last Update: Dec 9, 2024
Category: ---------------
All-Time Rating:
32 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings