Hotfix 2
- Fixed Crash on startup for dedicated servers [issue #10](https://github.com/Swiss8191/Peak-Stamina/issues/10)
- Fixed some suggestion boxes not showing all possible options. (a good example of this is the suggestion box for weight not showing minecraft:oak_log.) <br><br><br>
Hey! Never thought I would make it to this point but here I am. Version 2.0.0 was quite a struggle but its here and with some QOL changes and some other requested features. If you have any bugs (or suggestions) please let me know by either posting a comment or making an issue in github, enjoy! <br><br><br>
## Major Features <br>
**In-game config menu:** Added an in-game config menu (made it myself, no dependencies) that you can access in Menu -> Mods -> Peak Stamina -> Config. You can see som ephotos of what it looks like in the gallery. <br><br>
It features:<br>
* **Categorized Sidebar:** A sidebar to jump between different categories and sub sections, with scroll tracking. <br><br>
* **Search Bar:** Instantly filter and find specific settings by their name or description, utilizing a clean top-right dropdown search menu. <br><br>
* **Setting Descriptions:** Hovering directly over a setting name displays detailed <br><br>descriptions. If a setting is disabled, the tooltip will tell you exactly which master toggle you need to turn on first. <br><br>
* **Quick Navigation:** You can click a category or a sub category to instantly go to that section. <br><br>
* **Advanced List Editor:** Complex string lists open in a dedicated sub-screen with a format guide that will appear when you click the button on the top right, syntax validation, and an autocomplete suggestion system. <br><br>
**Custom UI texture sheet:** Created a dedicated texture sheet that you can freely paint over to create resource packs and anything else, as long as you correctly label the starting X and Y coordinates, as well as the width and height of the texture. A tutorial on how to use it is included in the `.txt` file inside the assets folder. <br><br>
**Customizable regen indicators:** Moved away from code created textures into pixel art so people can use resource packs with it for the regen indicators. You can select to use the default `>>>` text or use the custom texture on the texture sheet. <br><br>
Configs:<br>
* `regenIndicatorStyle`: Regen Arrow Style: DEFAULT (uses >>> ), CUSTOM (uses your custom texture made in the sprite sheet) or OFF. (Default: `RegenIndicatorStyle.DEFAULT`)<br>
* `showRegenBorder`: If true, draws a slightly dark border around the regen indicators (>). (Default: `true`) <br><br>
## Minor Features <br>
**Updated exhaustion penalties:** Exhaustion penalties can now accept status effects.<br><br>
Configs:<br>
* `customExhaustionPenalties`: List of Attribute Penalties to apply when Stamina hits 0… You can also apply Potion Effects. (Default: `["minecraft:generic.movement_speed;-0.10;2", "minecraft:generic.attack_speed;-0.15;2", "minecraft:generic.attack_damage;-0.15;2", "minecraft:slowness;0;30"]`) <br><br>
**Dynamic weight display:** Weight display in the inventory can now be in `kg`, `lbs`, or `custom` (the mod will automatically convert `lbs` to `kg` or `kg` to `lbs` when switching). <br><br>
Configs:<br>
* `enableWeightHUD`: Enable the dynamic Weight/Encumbrance text on the inventory screen. (Default: `true`)<br>
* `displayUnit`: The unit of measurement to display for weight. (Internal logic remains in lbs). (Default: `WeightUnit.kg`)<br>
* `customUnitLabel`: If displayUnit is CUSTOM, what label should be shown? (e.g., 'oz', 'stones'). (Default: `"kg"`)<br>
* `customUnitMultiplier`: If displayUnit is CUSTOM, what should the internal lbs value be multiplied by. (Default: `1.0`) <br><br>
**Tooltip weight units:** Added units to the weight display in item tooltips. This will also natively follow your configured weight measurement. <br><br>
Configs:<br>
* `enableTooltips`: Enable stamina information on item tooltips. (Default: `true`)<br>
* `advancedTooltipsOnly`: Only show tooltips when advanced tooltips are enabled (F3+H). (Default: `false`)<br>
* `labelWeight`: Text shown before the Weight value. (Default: `"Weight: "`)<br>
* `customTooltips`: Define multiple tooltips to display on items. (Order here dictates order shown in-game). (Default: `["WEIGHT;BOTTOM;DARK_GRAY;WHITE", "ATTACK_COST;BOTTOM;DARK_GRAY;WHITE", ...]`) <br>
**Weight HUD offset changes:** Changed the name of `weightHUDX` to `WeightXOffset` and `weightHUDY` to `WeightYOffset`. The default values were changed from -49 and -75 to 0 and 0. The HUD will remain in the exact same spot; the old values were just where it was on the screen, while the new values act as an offset from that point. <br><br>
Configs:<br>
* `weightXOffset`: X position offset for the Weight HUD (0 is the center of the screen). (Default: `0`)<br>
* `weightYOffset`: Y position offset for the Weight HUD (0 is the center of the screen). (Default: `1`) <br><br>
**Config auto refresh:** Made universal penalties and similar lists auto refresh. Changes will be applied in game when the file is saved or a new row is added in the config menu. <br><br>
Configs:<br>
* `universalPenalties`: Universal Compatibility with Scaling Penalties… Allows you to link external mod data (NBT tags or Potion Effects) to the stamina system. (Default: `["NBT;thirstLevel;<;6;0;20.0;38143;💧", "NBT;targetTemperatureLevel;>;2;4;15.0;16724016;🔥", ... ]`) <br><br>
* `universalBuffs`: Universal Compatibility for granting Bonus Stamina. Uses same logic as universal penalties. (Default: `["EFFECT;minecraft:strength;PASSIVE_OVER;-1;20.0;1.0", "EFFECT;minecraft:resistance;BURST_OVER;-1;100;25.0", ... ]`) <br><br>
**File reorganization:** Organized the mod's files into specific folders so it's much easier to navigate and update things moving forward. <br><br>
**Version number fix:** The version number displayed in the Minecraft mods tab is now correctly formatted. <br><br>
**Added mod compatibilities:** Added native stamina integration for a few other mods. <br><br>
## Compatibilities <br>
**Shield Expansion:** Added compatibility for stamina drain during parries and blocking. <br> <br>
Configs:<br>
* `shieldExpParryMult`: Multiplier for the stamina block cost when successfully parrying. 0.0 = Free parry, 0.5 = Half stamina cost, 1.0 = Normal block cost. (Default: `0.0`)<br>
* `shieldExpParryBonus`: Flat amount of Bonus Stamina (Yellow Bar) to grant when successfully parrying. Set to 0.0 to disable. (Default: `15.0`)<br><br>
**Wall-Jump! TXF:** Added compatibility for wall-jumping actions. <br><br>
Configs:<br>
* `wallJumpActionCosts`: Wall-Jump! TXF Action Stamina Costs. Types: START = One-time cost when action begins, CONTINUE = Cost per tick while action is active. (Default: `["WallJump;START;10.0", "DoubleJump;START;15.0", "WallCling;START;3.0;CONTINUE;0.15"]`) <br><br>
* `speedBoostExtraLvl1`: Extra stamina drained per tick for Speed Boost Level 1. (Default: `0.02`)<br>
* `speedBoostExtraLvl2`: Extra stamina drained per tick for Speed Boost Level 2. (Default: `0.05`)<br>
* `speedBoostExtraLvl3`: Extra stamina drained per tick for Speed Boost Level 3. (Default: `0.1`)<br><br>
* `dropOnEmptyWallCling`: If true, the player will be forced to let go of the wall if they run out of stamina. (Default: `true`)<br>
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }