Перейти к содержимому
Mineforgian

Armour Weight

A highly configurable mod that makes combat more enjoyable

135K загрузок60 подписчиковMITfabricquilt

Обновлён 27 марта 2024 г. · опубликован 23 января 2023 г.

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.

footage

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.

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
1.7Релиз1.20.3, 1.20.4fabric, quilt27 марта 2024 г..jar (27 КБ)
1.6Релиз1.20.1, 1.20.2, 1.20.3, 1.20.4fabric12 октября 2023 г..jar (26 КБ)
1.5Релиз1.20, 1.20.1fabric23 июля 2023 г..jar (24 КБ)
1.4Релиз1.19.1, 1.19.2, 1.19.3, 1.19.4fabric, quilt3 мая 2023 г..jar (27 КБ)
1.3Релиз1.19.1, 1.19.2, 1.19.3, 1.19.4fabric, quilt12 апреля 2023 г..jar (23 КБ)
1.3Релиз1.19.3, 1.19.4fabric, quilt17 марта 2023 г..jar (23 КБ)
1.2Релиз1.19.3fabric, quilt26 февраля 2023 г..jar (23 КБ)
1.1Релиз1.19.3fabric, quilt26 января 2023 г..jar (21 КБ)
1.0Релиз1.19.3fabric24 января 2023 г..jar (19 КБ)

Ченджлог

1.7Релиз1.20.3, 1.20.4 · 27 марта 2024 г.

Armour Weight 1.7

After 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 you can make a function is run every tick that the item is equiped, and using the integer output of the CalculateWeight command, you can track the weight of a player alongside equipment. This function is run as the player.

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!

1.6Релиз1.20.2, 1.20.3, 1.20.4 · 12 октября 2023 г.

Not much of note client-side (apart from 1.20.2 support), but a lot of API changes have happened (docs coming alongside a standalone addon).

Note:
The HUD elements are broken because i was too lazy to port the breaking hud changes over to 1.20.2.

1.5Релиз1.20, 1.20.1 · 23 июля 2023 г.

Armour Weight 1.5

  • fixed a few bugs, made sure that air wasn't calculated.
  • updated to 1.20.x
1.4Релиз1.19.2, 1.19.3, 1.19.4 · 3 мая 2023 г.

You now can easily create your own new weight definitions, by filling out a .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
1.3Релиз1.19.2, 1.19.3, 1.19.4 · 12 апреля 2023 г.

should solve this issue, by removing some code that wasn't used.

1.3Релиз1.19.3, 1.19.4 · 17 марта 2023 г.

Armour Weight 1.3

  • Updated to support 1.19.4
  • The weight bar can be toggled in config now
1.2Релиз1.19.3 · 26 февраля 2023 г.
  • 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.
1.1Релиз1.19.3 · 26 января 2023 г.

Armour Weight 1.1

Brings many fixes, such as language files and an icon. Debugging has also been made a bit easier.

Полная история изменений — на Modrinth.

Комментарии

Загружаем…