How to use
Aim directly at an unobstructed living entity or dropped item within GLOBAL_LOOK_RANGE, then release the scroll. Each attempt costs GEAS_MANA_COST, and GEAS_BLACKLIST prevents listed entity types from being selected.
Function
Entity Geasa
Targeting a player creates a Geas for that player. Targeting an unnamed creature creates a Geas for the whole type, such as every Sheep. A named creature creates a restriction for that name and type; crouch to record the whole type instead.
A matching Geas cancels direct attack attempts and incoming damage attributed to the restricted player caster. It is also part of the shared ally check used by many Mahou spells, items, projectiles, and owned utility blocks.
Item Geasa
Targeting a dropped item records its displayed item name. The caster is then prevented from picking up item stacks with the same displayed name.
Item restrictions match display text. Renamed and translated item names can therefore be treated as different restrictions.
Managing Geasa
Casting without a selectable target prints the caster's current Geasa. The attempt costs mana but preserves the scroll.
Targeting an existing matching Geas removes that restriction. Removal also costs mana and preserves the scroll.
To clear every Geas, drop a Geas scroll and destroy it with fire or lava while the item still records the player as its owner. The scroll is destroyed and the owner's entire saved Geas set is cleared.
Mana regeneration
Each unique creature type Geas adds MANA_REGEN_PER_GEAS to passive mana regeneration each tick. Restrictions for names and items do not count.
The complete Geas contribution is capped at GEAS_MAX_MANA_REGEN before being truncated to a whole mana value. Setting the cap to 0 disables passive regeneration from Geas while preserving existing restrictions.
Configuration
| Setting | Default | Range | Effect |
|---|---|---|---|
GEAS_MANA_COSTmahoutsukai-server.tomlsecretgeas | 30 | 0–100000000 mana per attempt | Mana paid before a Geas target is added, removed, or listed. |
MANA_REGEN_PER_GEASmahoutsukai-server.tomlsecretgeas | 3 | 0–100000000 mana per tick per creature type Geas | Passive mana regeneration added for each unique Geas on an unnamed creature type. |
GEAS_MAX_MANA_REGENmahoutsukai-server.tomlsecretgeas | 10000000 | 0–100000000 mana per tick | Maximum total passive mana regeneration per tick from all qualifying creature type Geases. |
GEAS_BLACKLISTmahoutsukai-server.tomlsecretgeas | ["minecraft:armor_stand"] | — | Entity identifiers rejected by Geas targeting. |
GLOBAL_LOOK_RANGEmahoutsukai-server.tomlgeneral | 100 | 0–100000000 blocks | Maximum unobstructed selection range shared by several spells and items. |



