Race API-26.2-0.7.5-hotfix3
Curse Maven Snippet
What's new
⚙️ Race API (v0.7.5)
Resource & Cooldown Logic
-
No Wasted Mana on Cooldown: Pressing a power key while the ability is on cooldown will no longer consume Mana into the void. The pipeline now correctly checks cooldowns first and silently rejects the action.
-
No Wasted Mana on Conditions:
ConditionalPowerabilities will no longer consume Mana if the required condition is currently unmet (e.g., trying to use a night-only power during the day is now a guaranteed no-op). -
Resource Persistence: Your Mana/Stamina pool now survives relogs and deaths! It is properly saved via
PlayerPersistedand will only reset if you explicitly change your race.
Power & Gameplay Fixes
-
Attribute Power Conflicts Resolved: Multiple powers modifying the same attribute (e.g., two powers altering Max Health) no longer overwrite or delete each other. They now use unique keys based on their power ID, and a cleanup sweep removes any leftover modifiers upon respawning or reloading.
-
LightSensitive Actually Burns: The sun weakness power used to apply a purely visual 1-tick fire. It now applies ≥25 ticks, ensuring that actual vanilla fire damage ticks every ~0.5 seconds while in sunlight.
-
ShadowStep Weakness: Fixed a parsing bug where the weakness debuff lasted 20x longer than intended (60 seconds instead of 3).
-
Kinetic Strike Penalty: The cooldown penalty for missing a Kinetic Counter-strike actually works now, applying the cooldown from the exact moment of the miss.
Core Engine Updates
-
Accurate Slot Validation: The
/raceapi validatecommand now calculates ability slots exactly like the game engine does, eliminating false conflict warnings between different races. -
ID Collision Warnings: Overwriting a built-in Java power or race with a custom JSON file now throws a proper warning in
ParseErrors(visible via/raceapi validate) instead of failing silently. -
Code Cleanup: Removed completely unused
PehkuiCompatdead code (race scaling is natively handled via the vanillaSCALEattribute).
(Note regarding deliberate design choices: Missing an ability—like blinking into a wall—will still consume Mana, as success is only determined during execution. Additionally, race width/height parameters do not alter hitboxes; this is intentional, and hitboxes are solely modified via the scale attribute).
This mod has no additional files

