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!
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
should solve this issue, by removing some code that wasn't used.