
Player Weight Mod
Customize Item Weight in Inventory
Player Weight Mod is an innovative solution that allows players to control the mass of each item in their inventory and configure consequences when reaching specific weight thresholds.
Important Note: The mod does not assign weight automatically. Users must manually select weight for each item or set default values. This is designed for complete system customization.
Functional Features
Modern Forge versions enable detection of inventories inside items, and the mod utilizes this capability. The system also recognizes fluids in containers and adds their mass to the total item weight.
If fluid weight is not specified, the standard formula is used: (fluid density / 1000) × fluid amount / 1000. For custom fluids, the formula is: (custom weight × fluid amount / 1000).
Measurement System
Weight in the mod is represented by floating-point numbers, ensuring maximum flexibility:
- 1000 = 1 ton
- 1 = 1 kg
- 0.001 = 1 gram
- 0.000001 = 1 milligram
Configuration File Types
Weight Files (XML Format)
Example entry: <type=item name=minecraft:wool meta=5 weight=0.2>
Available entry types:
- item — individual items with metadata specification
- ore — OreDictionary support for identical blocks/items
- fluid — fluid checking in containers
- defaultWeight — default weight for unregistered items
- defaultPlayerWeight — player base weight
- size — maximum stack size modification
Effect Files (JSON Format)
{
"effects": [
{
"type": "potion",
"cooldown": "20",
"min": 1,
"max": 200,
"potions": [
{
"name": "minecraft:speed",
"duration": "40",
"amplifier": 1
}
]
}
]
}
Available effect types:
- potion — applying potion effects at specific weight levels
- attribute — modifying player attributes
- exhaustion — additional exhaustion
- advancement — increasing carrying capacity through achievements
- damage — damage when overloaded
- potion_modify — temporary carrying capacity increase
- kill_ridden — destroying overloaded rideable entities
Configuration Interface
To access the configuration interface, set the "loadHelperUI" parameter to true in the configuration folder before starting the game. The interface provides access to all Minecraft data and allows:
- Configuring weight of individual items and categories
- Modifying maximum stack size
- Setting default weights
- Sorting elements by various criteria
- Exporting changes to configuration files
Changes take effect after exporting and applying via reload command, eliminating the need to restart the game.