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.