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

SettingDefaultRangeEffect
DRAIN_LIFE_BARRIER_MANA_COSTmahoutsukai-server.tomlboundarydrain life50–100000000 mana per paymentMana spent by an operational Boundary of Drain Life at each mana interval.
DRAIN_LIFE_AFFECTED_LIMITmahoutsukai-server.tomlboundarydrain life1000000–100000000 targets per operationMaximum number of targets processed during each Drain Life operation; zero processes no targets.
DRAIN_LIFE_BARRIER_MANA_CYCLEmahoutsukai-server.tomlboundarydrain life11–100000000 secondsSeconds between Boundary of Drain Life mana payments; the minimum is 1 second.
DRAIN_LIFE_BARRIER_RADIUSmahoutsukai-server.tomlboundarydrain life100–100000000 blocks along each axisDistance from the circle to each edge of the Boundary of Drain Life target cube.
DRAIN_LIFE_BARRIER_CYCLEmahoutsukai-server.tomlboundarydrain life201–100000000 ticksTicks between Boundary of Drain Life target checks.
DRAIN_LIFE_IGNORE_HUNGERmahoutsukai-server.tomlboundarydrain lifefalseSkips hunger restoration when true, sending Drain Life rewards directly to mana at full health.
DRAIN_LIFE_HEAL_FACTORmahoutsukai-server.tomlboundarydrain life0.5-10000000–10000000 health per accepted targetHealth restored to an injured caster for each target accepted by Drain Life.
DRAIN_LIFE_MANA_REGENmahoutsukai-server.tomlboundarydrain life10–10000000 mana per accepted targetMana restored when the Drain Life caster has full health and its hunger step is complete or disabled.
DRAIN_LIFE_DAMAGEmahoutsukai-server.tomlboundarydrain life20–10000000 damage per targetInitial magic damage attempted against each accepted Drain Life target.
DRAIN_LIFE_PUNISH_RESISTmahoutsukai-server.tomlboundarydrain life1.80–10000000 damage multiplierMultiplier 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.