Race API-26.2-0.7.0
Curse Maven Snippet
What's new
Race API 0.7.0 — Resource System ✨ New Features Resource-type Powers
Added a new power type — resource (mana/stamina-style) — with the following parameters:
max — the size of the pool regen — regeneration per second
The current value persists across relogs and is always clamped to the range [0..max].
Ability Costs
Added a cost JSON parameter, available on any power with a bind slot.
On activation, the cost is deducted from the resource pool. If the pool doesn't have enough left, the activation is cancelled, and the player sees "Недостаточно сил!" ("Not enough resources!") in the action bar. Client Sync New network packet: raceapi:resource Resource values are reset on world exit and on race removal API Additions Power.getResourceCost() @CostedPower decorator Resources class — max / current / tryConsume() / add() / sync() / clear() Composite Conditions: all_of and any_of all_of — true while ALL sub-conditions are true any_of — true while AT LEAST ONE sub-condition is true Sub-conditions are passed as a conditions array of regular condition objects, and can be nested without limit A malformed/broken array is treated as an always-false condition
This mod has no additional files

