### Updated Feature: Item Cost Types
A new interaction type, `USE_ON_BLOCK`, has been introduced to the stamina system. Stamina is now consumed if the tool successfully modifies the block state, such as stripping a log, tilling dirt, or flattening a path.
**Configuration Examples:**
```
# Format: "ItemId;USE_ON_BLOCK;Cost"
```
```
# Example: Iron Axe stripping logs costs 3.0 stamina
"minecraft:iron_axe;USE_ON_BLOCK;3.0"
```
```
# Example: Diamond Shovel making paths costs 2.5 stamina
"minecraft:diamond_shovel;USE_ON_BLOCK;2.5"
```
```
# Example: Flint and Steel usage (only costs if fire is actually placed)
"minecraft:flint_and_steel;USE_ON_BLOCK;2.5"
```
### New Feature: Configurable Elytra Stalling
A new configuration option is available to control flight mechanics when exhausted. By default, hitting 0 stamina while flying causes the player to rapidly lose speed and lift, which eventually forces a landing.
**Configurations:**
```
# If true, players stall and fall when stamina hits 0.
# If false, players can continue flying normally at 0 stamina.
disableElytraWhenExhausted = true
# How much horizontal speed is RETAINED per tick when stalling.
# 0.9 = 10% speed loss per tick. Lower = faster stop.
exhaustedElytraDrag = 0.86
# Extra vertical gravity applied per tick when stalling.
# Negative value pulls down.
exhaustedElytraGravity = -0.025
# Speed threshold below which the Elytra will force-close and drop the player.
exhaustedElytraMinSpeed = 0.5
# How often (in ticks) the drag physics are applied.
# 1 = Every tick.
# 4 = Every 4 ticks.
exhaustedElytraTickInterval = 3
```
### Updated Default Configurations
The default `peak_stamina-common.toml` has been updated to utilize the new `USE_ON_BLOCK` system for all vanilla tools. If updating from a previous version, delete your old config file to generate these new defaults automatically. (sorry)
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" }