← Назад к ресурсам

Armour Weight

A highly configurable mod that makes combat more enjoyable

Modrinth equipment game-mechanics library

Описание

# Armour Weight Requires [cloth config](https://modrinth.com/mod/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. ![footage](https://github.com/AnOpenSauceDev/assets/blob/main/Minecraft%202023.01.24%20-%2016.10.32.03.gif?raw=true) ## Developers **Armour Weight has an [API!](https://github.com/AnOpenSauceDev/Weight)** _see wiki for documentation_ This allows you to _easily add your own weight definitions for your modded armour in [just 2 lines of code](https://github.com/AnOpenSauceDev/Armour-Weight-Integration)._ (smaller code snippet below) ```java 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`... ```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](https://modrinth.com/mod/trinkets) support - a much more robust config setup.