Armour Weight
Requires cloth config
Armour Weight is a very configurable utility/game mechanics mod. Where players used to go into battle with full netherite has now been replaced with a much better system that prioritizes unique armour layouts. Players will now have to account for the weight of their armour, with heavy armour offering better defence at the cost of lots of speed.

Developers
Armour Weight has an API! see wiki for documentation This allows you to easily add your own weight definitions for your modded armour in just 2 lines of code. (smaller code snippet below)
public static armourWeightDef exampledef = new armourWeightDef(armourType.CHEST,1f,Example_Chestplate); // define the weight for our example chestplate
@Override
public void onInitialize() {
WeightUtil.addElement(exampledef); // register our armour
}
Armour Weight also has datapack support (1.4 and up), allowing you to define weight easily with zero programming knowledge!
In data/armourweight/weightdata/[any name].json...
{
"id_namespace": "your_mod_id",
"id_path": "your_item_name",
"weight": PUT_NUMBER_HERE,
"type": "type_here"
}
id_namespace - your mod id's namespace, (i.e. the minecraft in minecraft:dirt )
id_path - your mod's path name (i.e. the dirt in minecraft:dirt)
weight - how much your item weighs (decimal values allowed).
type - what type your armour is. Can be: boots,head,chest,leggings. Anything else will be treated as other.
please note that Armour Weight will generate weights automatically if it thinks a weight value is broken/doesn't exist, so make sure it's actually using YOUR weight value.
Modpacks
You are 100% allowed to bundle this into your Modpacks!
planned features
- Trinkets support
- a much more robust config setup.
All Versions
+ Add VersionAfter a long, long time of Armour Weight being idle, I'm back with an update. (Hooray!)
What's changed?
Minor changes:
- Brought the "armour weight" bar back, with it's own texture.
- Made the weight bar move upward based off the amount of saturation/health a player has.
Major change(s):
- Added a brand-new system for datapacks that use Armour Weight's functionality. By creating a file, with a path like this:
data/armourweight/functions/your_item_name.mcfunction
Using this, you can implement whatever you want to happen at certain weights with certain gear, and implement interactions that are out of the scope of what I intend for effects. If you need extra configuration, try out the Java API as well!
Due to the function API this uses, 1.20.2 and lower will not work.
Let me know over on the issue tracker/discussions at github if you have any issues, ideas, or want to share a datapack you made!
> Note: <br>
> The HUD elements are broken because i was too lazy to port the breaking hud changes over to 1.20.2.
- fixed a few bugs, made sure that air wasn't calculated.
- updated to 1.20.x
.json file in a datapack! Just put your custom definition in the armourweight/weightdata directory, and it should work. Documentation for this will come... eventually, when I remember to.- fixed a few bugs
- added a sources jar for developers
- Updated to support 1.19.4
- The weight bar can be toggled in config now
- added the ability to calculate weight via the CalculateWeight command. This will return as the weight * 10 however, so do keep that in mind when storing it.
Brings many fixes, such as language files and an icon. Debugging has also been made a bit easier.