## Minor<br>
**Updated Custom Action Hooks:** Added three new hook types to the experimental action system:<br>
- `KILL_ENTITY`: Apply stamina costs or rewards upon killing an entity. Supports negative values (restores stamina on kill).<br>
- `INTERACT_BLOCK`: Gate right-click block interactions (e.g., workstations, machines, doors) behind stamina costs. Cancels the interaction if stamina is insufficient.<br>
- `BREAK_BLOCK_SPECIFIC`: Assign unique, heavy stamina costs to mining specific blocks (e.g., obsidian) independently from global block-breaking costs.<br><br>
**Priority:** Prioritizes exact namespace/ID matches before falling back to `ANY`.<br><br>
**Auto HUD Rework:** Fixed an issue where active penalties (such as a 30-point weight penalty) would permanently cap stamina and prevent the Auto HUD from ever fading out, even when "Auto Hud Show On Penalties" was set to `False`. <br><br><br>
### Configuration & Defaults<br>
**Default Experimental Hooks:** Updated default `customActionHooks` with clear vanilla examples showcasing stamina refunds, workstation interactions, and high-cost block mining:<br>
- `KILL_ENTITY; ANY; -10.0`<br>
- `INTERACT_BLOCK; minecraft:anvil; 5.0`<br>
- `BREAK_BLOCK_SPECIFIC; minecraft:obsidian; 20.0`<br>
### Bug Fixes<br>
**Better Combat & Item Cooldowns Crashes:** Fixed a critical issue where attacking with a weapon on cooldown (e.g., from a Simply Swords weapon ability) would cause an `UnsupportedOperationException` crash with Better Combat. Peak Stamina now properly respects the `enableAttackCooldownWhenExhausted` config and no longer illegally cancels `LeftClickEmpty` events when the feature is disabled.<br>
- With that being said, peak stamina is now technically fully compatible with better combat and simply swords (unless there is another crash I don't know about, please let me know!)<br><br>
**Dedicated Server Crash ("Invalid Player Data"):** Fixed a critical error where dedicated servers threw an exception and kicked connecting players with "Invalid Player Data" during login. The `ConfigMigrator` now strictly checks for a physical client environment before querying `client.toml` settings.<br><br>
**Admin Only Config Warnings:** Outdated config chat alerts on dedicated servers are now restricted to server operators (permission level 2+) and singleplayer sessions.<br><br>
**Dual Wielding Offhand Bypass:** Fixed a bug where offhand weapons could bypass stamina cooldown restrictions. Raw mouse and key inputs are now intercepted at high priority to block offhand swings while on cooldown.<br><br>
**ParCool + Auto HUD Bug:** Fixed an issue where performing ParCool movement actions would permanently freeze the stamina bar on the screen until the player relogged. <br><br>
**Auto HUD Text Flashing:** Fixed a vanilla Minecraft font rendering quirk where text elements (the numerical readout, text-based icons, bonus multipliers, and regen indicators) would briefly flash solid white right before the Auto HUD completely faded out. <br><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" }