Getting started
Install & requirements
What ThePredict needs, what the first start creates, where every file lives and how to move an older configuration.
Requirements
| Component | Version | Notes |
|---|---|---|
| Java | 25 or newer | Checked at startup. |
| Paper | 26.2 | Folia is not supported. |
| MythicMobs Premium | 5.13.1 or newer | Required dependency (depend: [MythicMobs]). |
| A TypeSafe key | — | Optional. Only needed for Jev to decide; without it mobs fight with their profile's local planner, at no cost. See Jev connection. |
The combination tested while building this release is Java 25, Paper 26.2 (build 129), MythicMobs Premium 5.13.1 and the Jev model jev-1.13.0. Any other combination is untested.
A wrong version disables the plugin at startup with one of these lines:
Startup prerequisite failed: Java <n> is unsupported; ThePredict requires Java 25 or newer
Startup prerequisite failed: Minecraft <version> is unsupported; this Paper build requires 26.2 or newer
Startup prerequisite failed: MythicMobs <version> is unsupported; minimum version is 5.13.1Install
- Put the ThePredict JAR (for example
ThePredict-{{fact:plugin.version}}.jar) inplugins/, next to MythicMobs Premium. - Start the server. The first start creates only the files that are missing and never replaces one that exists:
plugins/MythicMobs/AIConfig/config.yml: the master file (schema 2, empty key, tested model).plugins/MythicMobs/AIConfig/Profiles/README.txtandProfiles/example.yml.example: a profile template, ignored until you copy it to a.ymlfile.plugins/ThePredict/examples/: the example boss (a mob, its skills and its profile), inactive where it is.examples/README.txtexplains how to try it.
- Read the console. A fresh install is not an error; each line says what to do next:
Jev not configured: set TYPESAFE_API_KEY or jev.apiKey. MythicMobs works normally. Next: set the key and restart the server, then run /thepredict status.
No profiles: copy examples/ or create a .yml file in plugins/MythicMobs/AIConfig/Profiles/. Next: read plugins/MythicMobs/AIConfig/Profiles/README.txt.With profiles but no mob set to Predictor: true yet, it says <n> profiles read, but no mob targeted by a profile has Predictor: true. Next: set Predictor: true on the MythicMobs mob and run /mm reload.
- Optional: set the Jev key and restart (see Jev connection). With a key, ThePredict checks the service without spending tokens and reports, for example:
Jev check: READY (credential valid; model unverified until first inference). Decisions are enabled. - Continue with the Quick start.
An administrator with thepredict.admin who joins gets one line when something needs attention, for example [ThePredict] some profiles have errors; Jev is UNCONFIGURED. Run /thepredict status for details.
Where things live
People edit files in the MythicMobs data folder; ThePredict keeps everything it generates in its own folder. Outside AIConfig/, ThePredict writes nothing inside plugins/MythicMobs/.
| What | Where |
|---|---|
| Master configuration | plugins/MythicMobs/AIConfig/config.yml |
Profiles (.yml and .yaml) | plugins/MythicMobs/AIConfig/Profiles/ |
| Profile template | Profiles/README.txt and Profiles/example.yml.example (not loaded) |
| Example boss | plugins/ThePredict/examples/ |
| Records, backups, exports | plugins/ThePredict/records/ (with backups/, exports/ and a .lock) |
| Aggregates database | plugins/ThePredict/aggregates.db, beside records/, not inside |
| Duels, scenarios, migration proposals | plugins/ThePredict/duels/, scenarios/, migration/ |
| Learning and overlays | plugins/ThePredict/learn/, plugins/ThePredict/autoconfig/ |
Reloads and restarts
| You changed | Do this |
|---|---|
config.yml or the key | Restart the server. Both are read only at startup. /thepredict check re-checks the service with the key already loaded; it does not read a new one. |
| A profile | /mm reload. It re-reads MythicMobs mobs and skills, then re-reads and re-binds every profile. |
| A mob or a skill | /mm reload. |
| A datapack tag used in a selector | /minecraft:reload, then /mm reload. |
There is no /thepredict reload.
Watch out A broken config.yml keeps ThePredict off
An unknown key, a key from the old schema or a value out of range keeps ThePredict inactive, and the console names the problem: Invalid configuration: AIConfig/config.yml: <path>: <reason>. ThePredict stays inactive and /thepredict status still works. MythicMobs keeps working, and storage is not opened (no records/, no aggregates.db). Fix the file and restart.
Moving from the old location
Older builds kept their files in plugins/ThePredict/config.yml and plugins/ThePredict/AI/. ThePredict never moves or deletes them; what happens depends on where your files are:
- Only the old location has content (the master file, or a
.ymlinAI/): ThePredict loads nothing from it, enables no requests and writes a proposal inplugins/ThePredict/migration/<yyyyMMdd-HHmmss>/withAIConfig/config.yml.proposed, oneAIConfig/Profiles/<file>.proposedper profile and areport.md. The console saysMigration proposal: review <report> and the .proposed files next to it, then copy them into plugins/MythicMobs/AIConfig/ by hand. No file was changed and no query was enabled.The same proposal is reused on every start while your files do not change. - Both locations have content:
AIConfig/wins. The console,/thepredict statusand the join notice sayOld files in plugins/ThePredict/config.yml and plugins/ThePredict/AI/ are ignored because plugins/MythicMobs/AIConfig/ already has configuration. Nothing was moved or deleted. - Only the new location has content: no notice.
README.txt and example.yml.example do not count as content.
Migrating from schema 1
There is no migration command: ThePredict never changes your files. When it finds schema 1 files (a master file with a provider section or other old keys, or profiles with Behaviors, Operations or no Tactics), it does not load them and writes the same kind of proposal as above, already converted to schema 2 and to the new paths.
How to apply a proposal:
- Stop the server and keep a copy of
plugins/MythicMobs/AIConfig/and of any oldplugins/ThePredict/config.ymlandAI/files. - Read every decision in
report.mdand fix what it lists under manual review. - Copy each
.proposedfile intoplugins/MythicMobs/and remove the.proposedextension (AIConfig/config.yml.proposedbecomesplugins/MythicMobs/AIConfig/config.yml). - Set
TYPESAFE_API_KEYyourself. A key from the old provider is never copied, because it is not a TypeSafe key. - Start the server and run
/thepredict status. Keep the old files untilstatusno longer asks for the proposal.
What the converter does: the provider section becomes jev with the tested model and an empty key; limits with an equivalent move over when they fit the new ranges (for example decision.maxConcurrentRequests becomes decision.maxInFlightRequests, profileDefaults.decisionIntervalTicks becomes minimumDecisionIntervalTicks, profileDefaults.lowHealthRatio becomes criticalHealthRatio); keys without an equivalent are listed with the reason; each old choice becomes a tactic without movement; each Operation becomes the matching shortcut context; DirectChoice becomes DirectTactic. After migrating, give your tactics a movement (see Movement & goals).
Turning it off
- One mob: set
Predictor: falsein its MythicMobs file and run/mm reload. ThePredict closes the session, removes its goals and MythicMobs puts the mob's ownAIGoalSelectorsback. Removing the mob's profile fromProfiles/and running/mm reloaddoes the same. - The whole plugin: remove the JAR and restart. On shutdown ThePredict stops its task, cancels requests in flight, sets every
predictor*condition to false, releases the goals of its sessions, stops a duel recording, flushes records and aggregates, and closes the Jev client last. It can take a couple of seconds longer while scenario recording or the records writer is flushing. - No key: nothing leaves the server, and bound mobs fight with their profile's local planner.