Changelog
TECHNICAL IMPROVEMENTS This version is the first that is only available for Minecraft 1.20.2 and above. This has given me extra freedom to experiment with a bunch of command wizardry newly added by Mojang. Chief among them are function macros, which are easily the best thing to have happened to data pack writing since I began developing them in 2020. I rebuilt Attrition from the ground up using these function macros; thanks to them, version 2.5.0 is an incredible 42% lighter than the previous one, all while having more features than before!
ENDLESS CUSTOMIZABILITY Function macros don't just help make data packs more compact. They're also great for making them more flexible. If you want to truly customize your experience with Attrition, head to the developer settings (available from the options menu by clicking the words 'options menu'), where you'll find that:
-- The health cap option now supports any number. The built-in limit to max health is said to be 1024 health points, so anything above that might not work correctly. -- You can now define the health gain increment, that is, the number of health points that are gained when consuming an enchanted golden apple. Again, this can now be any number, including odd (half-heart) numbers. -- You can also independently define the health loss increment, which of course is the number of health points that are lost when dying. This can also be any number, including odd (half-heart) numbers.
In a related change once again made possible because of function macros, the fixed text messages are now dynamic. This means that if you set the health loss increment to 1, then the fixed text will read "<playername> has surrendered a half-heart of maximum health!" ; for values greater than 2, it will read "<playername> has surrendered some amount of maximum health!"
DIVINE WRATH All of this customizability made the Health Upgrade toggle, formerly available from the options menu, completely redundant. It has been replaced with a new option, Divine Wrath, which is toggled off by default. When toggled on, all spirits (players who have lost all of their max health) will be given permanent blindness. This is meant to make it harder for dead players to spectate for alive players in multiplayer settings.
MULTI-VERSION SUPPORT Another new feature from Mojang is the ability to define more than one supported version (technically, pack format number) at the same time in data packs. Because of this, Attrition 2.5.0 works seamlessly in Minecraft versions 1.20.2, 1.20.3, and 1.20.4 at the same time. The resource pack has been given this update, too.
External resources
Project members
MacchuPicchu
Owner