promotional bannermobile promotional banner

RaceAPI

A powerful and extensible race/power API for Minecraft
Back to Files

Race API-26.2-0.7.0

File nameRace API-26.2-0.7.0.jar
Uploader
naccelnaccel
Uploaded
Aug 23, 2026
Downloads
8
Size
244.8 KB
Mod Loaders
NeoForge
File ID
8715088
Type
A
Alpha
Supported game versions
  • 26.2

Curse Maven Snippet

NeoForge

implementation "curse.maven:raceapi-1643125:8715088"

Learn more about Curse Maven

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