Function
Draining targets
Every DRAIN_LIFE_BARRIER_CYCLE ticks, the circle damages unprotected living entities within DRAIN_LIFE_BARRIER_RADIUS, excluding types in DRAIN_LIFE_ENTITY_BLACKLIST.
Each target receives DRAIN_LIFE_DAMAGE magic damage. If that removes less health than configured, the spell follows with generic damage equal to DRAIN_LIFE_DAMAGE × DRAIN_LIFE_PUNISH_RESIST.
Rewards
For every target the drain accepts, the caster receives one reward. Missing health is restored first by DRAIN_LIFE_HEAL_FACTOR. At full health, one food point is restored if food is below 20 and DRAIN_LIFE_IGNORE_HUNGER=false. Otherwise the caster gains DRAIN_LIFE_MANA_REGEN mana, capped at maximum mana.
DRAIN_LIFE_AFFECTED_LIMIT caps the targets affected each cycle. Zero disables targeting.
Named exclusion
Throw a renamed Name Tag onto the circle as its owner to save that display name as an additional exclusion. Any entity whose displayed name exactly matches is skipped.
Mana
Cost: DRAIN_LIFE_BARRIER_MANA_COST mana.
Payment cycle: Every DRAIN_LIFE_BARRIER_MANA_CYCLE seconds.
Nearby Mana Circuits are used before personal mana. The damage cycle is configured separately.
Redstone
Redstone power inverts the circle's saved on/off state.
Configuration
| Setting | Default | Range | Effect |
|---|---|---|---|
DRAIN_LIFE_BARRIER_MANA_COSTmahoutsukai-server.tomlboundarydrain life | 5 | 0–100000000 mana per payment | Mana spent by an operational Boundary of Drain Life at each mana interval. |
DRAIN_LIFE_AFFECTED_LIMITmahoutsukai-server.tomlboundarydrain life | 100000 | 0–100000000 targets per operation | Maximum number of targets processed during each Drain Life operation; zero processes no targets. |
DRAIN_LIFE_BARRIER_MANA_CYCLEmahoutsukai-server.tomlboundarydrain life | 1 | 1–100000000 seconds | Seconds between Boundary of Drain Life mana payments; the minimum is 1 second. |
DRAIN_LIFE_BARRIER_RADIUSmahoutsukai-server.tomlboundarydrain life | 10 | 0–100000000 blocks along each axis | Distance from the circle to each edge of the Boundary of Drain Life target cube. |
DRAIN_LIFE_BARRIER_CYCLEmahoutsukai-server.tomlboundarydrain life | 20 | 1–100000000 ticks | Ticks between Boundary of Drain Life target checks. |
DRAIN_LIFE_IGNORE_HUNGERmahoutsukai-server.tomlboundarydrain life | false | — | Skips hunger restoration when true, sending Drain Life rewards directly to mana at full health. |
DRAIN_LIFE_HEAL_FACTORmahoutsukai-server.tomlboundarydrain life | 0.5 | -10000000–10000000 health per accepted target | Health restored to an injured caster for each target accepted by Drain Life. |
DRAIN_LIFE_MANA_REGENmahoutsukai-server.tomlboundarydrain life | 1 | 0–10000000 mana per accepted target | Mana restored when the Drain Life caster has full health and its hunger step is complete or disabled. |
DRAIN_LIFE_DAMAGEmahoutsukai-server.tomlboundarydrain life | 2 | 0–10000000 damage per target | Initial magic damage attempted against each accepted Drain Life target. |
DRAIN_LIFE_PUNISH_RESISTmahoutsukai-server.tomlboundarydrain life | 1.8 | 0–10000000 damage multiplier | Multiplier for Drain Life's additional generic damage when the initial hit removes less health than configured. |
DRAIN_LIFE_ENTITY_BLACKLISTmahoutsukai-server.tomlboundarydrain life | [] | — | Exact entity registry IDs excluded from the Boundary of Drain Life. |



