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

SettingDefaultRangeEffect
CONTRACT_MANA_COSTmahoutsukai-server.tomlexchangecontract100–100000000 mana per formationMana charged to the player whose circle first completes a new Contract.
CONTRACT_BLOCK_CYCLEmahoutsukai-server.tomlexchangecontract41–100000000 ticksInterval between Contract circle checks for players.
CONTRACT_RADIUSmahoutsukai-server.tomlexchangecontract100–100000000 blocks on each axisMaximum search distance on each axis from one Contract circle to another.