Pixel Dream StudiosWiki

Config

Every option in the common config: contracts, spawning, behavior and name lists.

Magic Realms ships with a single common config file at config/magic_realms-common.toml, generated automatically on first run.

Contracts

Controls the timing of the contract / hire system.

KeyDefaultRangePurpose
minutesPerContract101 – ∞How long a single contract lasts before it expires and the mercenary returns to neutral.
minutesUntilPermanent2001 – ∞Total contracted time (across renewals) needed before a mercenary can accept a permanent contract.

Spawning and population

KeyDefaultRangePurpose
customTextureChance0.10.0 – 1.0Probability that a newly spawned mercenary uses a complete skin preset instead of compositing skin parts. 0.1 = 10%. Set to 0.0 to disable presets, 1.0 to make every mercenary use one (requires enough presets in the catalog or some will share).
maxMercenariesInRadius81 – ∞Limits how many mercenaries can occupy chairs / bar stools inside a 20-block radius. Prevents tavern overcrowding inside taverns.

Behavior tuning

KeyDefaultRangePurpose
immortalStunDuration101 – 60Seconds an immortal entity (e.g. a Mercenary with a Hell's Pass) stays stunned after being knocked out, before recovering.
attemptCastUnclassifiedSpellsfalseboolIf true, Mercenaries will try to cast spells from addons that haven't been categorized into Magic Realms' class spell tags (classes/mage/*, classes/warrior/*, classes/archer/*, classes/assassin/*). Set at your own risk - uncategorized spells may not work as expected, may target nothing useful, or may break combat AI.

Name, hometown, and tip lists

These string lists are fully editable in the config - you can replace, add to, or trim them without writing a datapack. Translation keys in tavernTips need matching language entries in any active resource pack.

KeyTypeDefault sizePurpose
maleNameslist of strings~140 entriesPool used to name male mercenaries when no name comes from a fixed personality or skin preset.
femaleNameslist of strings~120 entriesSame, for female mercenaries.
hometownslist of strings35 entriesPool used to roll a hometown string for the personality panel ("Westhollow", "Stormkeep", etc.). Picked once per mercenary at spawn.
tavernTipslist of strings5 entriesTranslation keys the Tavernkeeper picks from when offering advice (message.magic_realms.tavernkeep_tip.1 through …tip.5 by default). Each entry must be a key, not the literal text - extend your language file in parallel to add new tips.

On this page