How to use
Each player must own and stand on a separate Contract active circle. The circles must be in the same dimension and within CONTRACT_RADIUS blocks of each other. They form the Contract when both players can pay CONTRACT_MANA_COST.
Function
Forming a Contract
Both players pay CONTRACT_MANA_COST and receive a confirmation in the action bar. If either player cannot pay, no mana is taken and no Contract is formed.
Spell ally protection
Many Mahou spells treat contracted players and their tamed animals as allies. Contracts also grant access to some owned projectors and Mana Circuits.
Contract protection applies only to spells and items that recognize allies; it does not disable ordinary friendly fire.
Breaking a Contract
The Contract ends when either player damages the other. Both players receive a message. Otherwise, the Contract persists across sessions.
Configuration
| Setting | Default | Range | Effect |
|---|---|---|---|
CONTRACT_MANA_COSTmahoutsukai-server.tomlexchangecontract | 10 | 0–100000000 mana per formation | Mana charged to the player whose circle first completes a new Contract. |
CONTRACT_BLOCK_CYCLEmahoutsukai-server.tomlexchangecontract | 4 | 1–100000000 ticks | Interval between Contract circle checks for players. |
CONTRACT_RADIUSmahoutsukai-server.tomlexchangecontract | 10 | 0–100000000 blocks on each axis | Maximum search distance on each axis from one Contract circle to another. |



