Administration
Troubleshooting & status
Find out why a mob is not doing what you expect, from the console, /thepredict status and /thepredict inspect.
First checks
/thepredict status. ReadState(the Jev service),Profiles(the catalog),Bound mobs(who ThePredict controls, by level) andRecent failures/Recent fallbacks./thepredict inspect nearestnext to the mob.Sessionsays whether it is bound,Intentwhat it is doing,Whythe last fallback and cast result,Goalswhether its movement goals are installed.- The console. Every profile problem names the file and the path:
<file>: <profile>.<path>: <message>. For a live decision log, setdecision.logDecisionstotrueand restart. - Reload or restart? Profiles, mob and skill files:
/mm reload.config.ymland the key: restart the server, there is no reload command. After/minecraft:reload(datapack tags), run/mm reloadtoo.
Startup messages
ThePredict reports a fresh installation as information, never as an error. Each line ends with the next step.
| Console line | What it means |
|---|---|
Startup prerequisite failed: Java <n> is unsupported; ThePredict requires Java 25 or newer | The plugin disables itself. Run the server on Java 25. |
Startup prerequisite failed: Minecraft <v> is unsupported; this Paper build requires 26.2 or newer | Use Paper 26.2. |
Startup prerequisite failed: MythicMobs <v> is unsupported; minimum version is 5.13.1 | Update MythicMobs Premium. MythicMobs must be installed and enabled means it is missing or failed. |
Created setup files: … | First start: the missing setup files were created. Existing files are never replaced. |
Invalid configuration: <file>: <path>: <reason>. ThePredict stays inactive and /thepredict status still works. Next: fix plugins/MythicMobs/AIConfig/config.yml and restart the server, then run /thepredict status. | config.yml has an unknown key, an old-schema key or a value out of range. MythicMobs keeps working; storage is not opened. |
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 key. Bound mobs fight with their local planner, at no cost. |
No profiles: copy examples/ or create a .yml file in plugins/MythicMobs/AIConfig/Profiles/. Next: read plugins/MythicMobs/AIConfig/Profiles/README.txt. | No profile yet. |
<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. | Profiles load, but no mob has opted in. |
Profile catalog SETUP_PENDING (revision N, 0 profiles read, 0 active, 0 errors, 0 warnings): configuration pending; copy AIConfig/Profiles/example.yml.example to a .yml file | The catalog summary. LOADED is healthy; INVALID adds the first error. |
Checking Jev without spending tokens; the result follows in the console. | With a key, a free check runs (GET /v1/models). Then, for example, Jev check: READY (…). Decisions are enabled. |
Migration 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. | An old configuration was found. See Install & requirements. |
Old files in plugins/ThePredict/config.yml and plugins/ThePredict/AI/ are ignored because plugins/MythicMobs/AIConfig/ already has configuration. Nothing was moved or deleted. | Both the old and the new location have files; the new one wins. Delete the old files when you are done. |
jdk.httpclient.HttpClient.log asks the JDK to log headers, which would write the Authorization header of every Jev request to its log; remove headers and all from it | Your JVM flags would log the key. Remove headers and all from that property. |
AIConfig/config.yml: <key>: has no effect in this build | Your config.yml changes a key this build accepts but does not read, so the change does nothing. ThePredict starts normally. Set the key back to the shipped value, or leave it for a later release. The keys are marked no effect yet in the config.yml reference. |
An administrator (thepredict.admin) who joins while something needs attention gets one line: [ThePredict] <causes>. Run /thepredict status for details. The causes are plugins/MythicMobs/AIConfig/config.yml has errors, old configuration files are ignored, some profiles have errors, a migration is pending and Jev is <STATE> (also shown for UNCONFIGURED and CHECKING, which are only informative).
Service states
The State line of /thepredict status and the answer of /thepredict check.
| Value | Meaning | What to do |
|---|---|---|
UNCONFIGURED | No key is configured. | Set the TYPESAFE_API_KEY environment variable (or jev.apiKey) and restart. Meanwhile mobs fight with their local planner, at no cost. |
INVALID_CONFIGURATION | config.yml is invalid; the console names the file, the path and the reason. | Fix the file and restart. ThePredict stays inactive; MythicMobs keeps working. |
CHECKING | The service is being checked (at startup, or after a pause). | Wait for the result in the console or in /thepredict status. |
READY | The service accepts requests. | Nothing. |
PAUSED | Requests are paused after a rate limit (429), an overload (529), network or service errors, two timeouts in a row, three invalid answers in a row, or a rejected request (60 s). | Wait: ThePredict retries with a growing pause (1 to 60 s), then a single trial request. If it repeats, check roundtrip latency and the limits. |
INVALID_CREDENTIALS | The key was rejected (401). | Check the key in your TypeSafe account, set it and restart: the key is read only at startup. |
INVALID_MODEL | The configured model does not exist. | Use the tested model ID jev-1.13.0 and restart. |
With INVALID_CREDENTIALS (a 401 or 403) or INVALID_MODEL, ThePredict sends nothing until a restart or a /thepredict check; mobs fight locally meanwhile. The key itself is read only at startup.
Fallback reasons
When a mob drops to a lower control level, the reason shows in inspect (Why: last fallback …), in status (fallbacks and Recent fallbacks) and, with decision.logDecisions, as Mob <uuid> fell back: <REASON>.
| Value | Meaning | What to do |
|---|---|---|
SERVICE_PAUSED | The service is paused (429, 529, timeout, network) or still being checked. | Wait out the pause; check latency and limits if it repeats. |
SERVICE_BLOCKED | The service cannot be used without a configuration change: UNCONFIGURED, INVALID_CONFIGURATION, INVALID_CREDENTIALS or INVALID_MODEL. | Read State in /thepredict status, fix the key or the model and restart. |
NO_BUDGET | The request, token or in-flight budget is spent (server, world or encounter). | Review decision.maxRequestsPerMinute, decision.maxInputTokensPerMinute and the load. Mobs without budget fight locally, without errors. |
LOW_CONFIDENCE | Several answers in a row stayed below the minimum confidence. | Review the profile: contexts, tactic names and descriptions. |
INVALID_RESPONSE | The answer had no applicable tactic. | Make sure the profile offers eligible tactics; report it with the log if it repeats. |
EXPIRED | The intent expired without a replacement. | Normal now and then. If frequent, compare roundtrip latency with profileDefaults.maximumIntentDurationTicks. |
NO_PROGRESS | The movement made no progress for two decisions (target on a pillar, behind a wall, in water). | Check the terrain, the arena and the mob's species. |
RETREAT_LIMIT | The encounter already has as many simultaneous retreats as it allows (one per three members, at least one). | Nothing; it is coordination between mobs. |
SESSION_INVALID | The mob was reloaded, died or changed world. | Nothing; it is transient. |
INTERNAL_ERROR | An exception inside ThePredict; the console says how many sessions fell back to the base AI. | Report it with the log. The mob returns to its base AI. |
Other counters
The Counters section of status groups running totals. Each group lists only non-zero values, or none. totals also counts options_merged (options not sent because they read like another option) and the contingencies asked, fired and effective.
failures
Why a request to Jev failed.
| Value | Meaning |
|---|---|
AUTHENTICATION | The key was rejected (401). |
MODEL_UNAVAILABLE | The model does not exist. |
INVALID_REQUEST | The request was rejected, or was too large to prepare. |
RATE_LIMITED | The account's rate limit was hit (429). |
OVERLOADED | The service is overloaded (529). |
SERVICE_ERROR | The service answered with an error status (a 5xx other than 529, or an unexpected status). |
NETWORK | The connection failed. |
TIMEOUT | No answer arrived within jev.timeoutMillis. |
INVALID_RESPONSE | The answer could not be understood. |
dispatch
What happened to an encounter that was due for a decision.
| Value | Meaning |
|---|---|
SENT | A request was sent. |
EMPTY_CAPTURE | No member of the encounter could be read. |
NO_QUESTIONS | No mob qualified for a question (an active session with installed goals, no debug intent, a perceived target and two distinct eligible tactics), and there is no group plan question. |
SERVICE_UNAVAILABLE | The service is not ready, is paused, or is running its single trial request. |
NO_BUDGET | A request, token or in-flight limit refused the prepared request; the mobs play locally. |
NOTHING_TO_ASK | While preparing, no question kept two options that read differently: nothing is sent or reserved and the mobs play locally. |
PREPARE_FAILED | The request could not be encoded (for example, over the size guard). It counts as INVALID_REQUEST, nothing is sent, that encounter plays locally and the service is not paused, so other encounters keep asking. |
CLIENT_ERROR | The client failed to accept the request (a bug); counted as INVALID_REQUEST. |
CACHE_HIT | An identical earlier answer was reused (only with decision.answerCache on). |
outcomes
Result of trying to cast the skill of an intent.
| Value | Meaning |
|---|---|
CAST | The skill was cast. |
DEFERRED_INVULNERABLE | The target is in its invulnerability frames; the cast is retried in a later tick. |
SKIPPED_SHIELD | The target blocks with a shield and the skill cannot ignore it. |
REJECTED_BY_MYTHICMOBS | MythicMobs refused the skill (a failed chance, a cancelled event, no charges left). |
NOT_ELIGIBLE | The skill is not ready yet (cooldown, reach, conditions); retried in a later tick. |
EXPIRED | The intent expired before the skill could be cast. |
discards
Why an answer that arrived was not applied.
| Value | Meaning |
|---|---|
STALE_SEQUENCE | A newer request of the same encounter was already sent; the older answer is dropped. |
SESSION_CHANGED | The mob's session changed while the request was in flight (it was reloaded, respawned or moved to another encounter). |
SESSION_INACTIVE | The mob's session is not active, or a debug intent holds it. |
CATALOG_CHANGED | Profiles or MythicMobs were reloaded while the request was in flight. |
MODEL_CHANGED | A model other than the configured one answered. |
TOO_OLD | The answer arrived after it could still be applied (see decision.maxDecisionAgeMillis). |
TARGET_CHANGED | The mob changed target; the answer was about the old one. |
PROBE_UNAVAILABLE | The mob could not be read when the answer arrived. |
SITUATION_CHANGED | A reactive answer no longer matched the live situation. |
GROUP_EPOCH_CHANGED | The group plan was captured under another group membership; the leader's question is kept. |
Profile problems
An error excludes that profile (the others keep loading); a warning keeps it. Errors and warnings are logged at load and after every /mm reload, and Profiles: in status counts them.
| Message | What to do |
|---|---|
guardian_ai.MythicID: unknown mob 'guardian'; IDs are case-sensitive, did you mean 'Guardian'? | Copy the exact MythicMobs ID. The same goes for unknown skill '…'. |
<Mob>.Predictor: is true but no valid AI profile targets this mob | The mob opted in but its profile is missing or has an error. |
<Mob>.Predictor: must be true or false | Same rule for PredictorTraining, PredictorEntropy; PredictorDifficulty must name a preset. |
<Mob>.PredictorTraining: requires Predictor: true | Training only applies to a bound mob. |
mob '<Mob>' has 2 profiles (a, b); all of them are excluded | One profile per mob. |
… is not a known field | A typo or a key from another section. Keys are case-sensitive. |
… is a schema 1 field; review the migration proposal under migration/ | An old-format profile. See Install & requirements. |
… uses a reserved tactic name ('none' or the prefix 'debug_') / (prefix 'tell_' or 'stance_') | Rename the tactic. |
Tactics.<id>.Choice: is required for Movement FLANK | FLANK needs a skill to strike with. |
Tactics.<id>.Movement: species PIGLIN uses a Brain; only Movement: NONE is allowed | Brain-driven species keep their own movement. See Movement & goals. |
MythicMobs rejected the condition '…'; context '…' is disabled | Only that context is off. Fix the condition line. |
no plugin resolved the condition '…'; context '…' is disabled | A condition from a plugin that is not installed. |
… has the same Priority 50 as context '…'; the one declared first wins when both are active | Give the contexts different priorities. |
Tactics.<a> and Tactics.<b> describe the same option to Jev; Jev only sees '<a>' | Give one of them a different Description, movement or skill purpose. |
Timing.FitChecks: is ignored: fit checks are only sent with QuestionDetail full, and this profile uses compact | Use QuestionDetail: full or drop FitChecks. |
skill '<S>' has no Intention; the choice is untyped and only casts with its own tactic | Add an Intention line to the skill. See Skills & intents. |
PredictValues of skill '<S>' are no longer read; write an Intention | Same: PredictValues are history. |
Choices.<id>.Purpose overrides the Intention of skill '<S>' | The profile's Purpose wins. Remove it to use the skill's line. |
skill '<S>' checks lineofsight but its purpose has no NEEDS_LINE_OF_SIGHT risk (and the reverse) | Make the Intention line and the skill agree. Same for purpose deals damage but skill '<S>' has no damage mechanic and ignores shields but the purpose says BLOCKED_BY_SHIELD. |
skill '<S>': it runs nested skills, projectiles or auras that ThePredict does not follow; it may deal damage and a knockback is assumed | Expected for skill{s=…}, randomskill, projectile or aura. If it does not push, set Choices.<id>.Displacement to NONE. |
skill '<S>' has no static Cooldown; with CastMode ANY_READY it fires whenever it can | Add a native Cooldown, or the skill will spam. |
mob '<Mob>' also casts '<S>' from its Skills with a trigger; it may add damage while ThePredict controls the mob | Gate the trigger line with predictorcontrol false. |
Movement KEEP_DISTANCE keeps the target beyond Band.Inner 5 but skill 'melee' reaches 2.5; this tactic never casts | The movement never lets the skill reach. Change the movement or the skill. |
Threat.UnreachableDecayPerSecond: is ignored because mob '<Mob>' enables ThreatTable.DecayUnreachable | MythicMobs already decays it; nothing to do. |
Objective: may not be in English (contains the word 'objetivo', which is common in other languages); Jev reads English | Write Objective and Description in English. |
Participants.Entities.Allow: is ignored: participants.entities.profilesMayAllow is false | The administrator only allows the global list. |
<profile>.Decision.Pruning: has no effect in this build (also Decision.MaxOptions, Decision.CandidateScoring, Decision.Diversity, Stances.Describe and Group.PlanQuestion) | The profile asks for something this build does not do yet. It loads normally; remove the key or set it back to its default. |
Changing soon Tell warnings
Warnings about tells (for example telegraph has no visual (or audio) cue; ThePredict adds none: add a ~onSignal:PREDICTOR_TELL_<ANSWER> handler) belong to the tell system, which will be redefined soon. ThePredict never adds effects: the warning asks you to react to the signal in your own skill.
Effectiveness
Each time a mob adopts a new intent at level JEV, ALTERNATIVE or LOCAL (never on a renewal), ThePredict opens an outcome window. It closes when the intent ends or after 60 ticks, whichever comes first, and records:
- damage dealt and taken, as fractions of the victim's max health;
- casts, and confirmed hits (the target took damage within 20 ticks of a damaging cast);
- whether the movement reached its goal (
APPROACHgot to melee,KEEP_DISTANCEended at range,RETREATended farther than it started,FLANKcast while flanking;HOLDandNONEhave no goal); - whether the mob or its target died.
| Where | What to read |
|---|---|
status, Effectiveness: outcomes: level=JEV windows=3 dealt=0.12 taken=0.03 reach=0.67 hit_rate=0.50 effect=0.21 | One line per level. dealt and taken are means per window, reach the share of windows that reached their goal, hit_rate confirmed hits per cast, effect the mean of dealt − taken + 0.25·reached + target died − mob died. Without data: outcomes: no closed window yet. |
status: contingencies: asked=4 fired=2 effective=1 | Contingencies sent, fired in combat, and fired with a positive window. |
inspect: Outcomes: JEV keep_distance_and_shoot dealt=0.12 taken=0.03 reached=yes casts=1 hits=1; … | The mob's last 8 windows, newest last, with mob died or target died when it happened. |
Console with decision.logDecisions: Outcome JEV keep_distance_and_shoot dealt=0.12 … | One line per closed window. |
The effect index is a comparison tool, not a verdict: use it to compare levels or two versions of the same profile.
Common symptoms
The mob ignores ThePredict. Check, in order: Predictor: true in the mob file; a profile whose MythicID matches the mob ID exactly (case-sensitive); no profile error in the console; inspect says Goals: installed for revision <n>. Species with a Brain (piglins, wardens, villagers…) only accept Movement: NONE, and slimes, magma cubes, ghasts, phantoms and bats keep their own AI (Goals: not installed (MythicMobs keeps its AI)).
It fights, but always at LOCAL. Normal without a key. With a key, read State in status and the Why line of inspect: SERVICE_BLOCKED, NO_BUDGET and LOW_CONFIDENCE are the usual causes.
A skill spams. With the default CastMode: any_ready, every skill with a valid Intention line fires as soon as it is ready. A skill without a native Cooldown is ready all the time. Give it a Cooldown (or Charges); ThePredict adds no floor of its own.
Double damage. The mob's own trigger lines (~onAttack, ~onTimer) keep running while ThePredict controls it. Gate them with predictorcontrol false so they only fire when ThePredict is not in control.
The boss hits less than its classic version. While ThePredict controls a mob, its base melee goal does not hit. Put the melee damage in a skill of a tactic, or add a Kind: VANILLA_MELEE choice (one vanilla hit every 20 ticks at most).
A predictor* condition is always false. The control conditions (predictorcontrol, predictormove, predictortactic, predictorrole, predictorplan, predictortoken, predictorzone, predictorpattern) are false at BASE and once the intent expires; predictorstance is the exception. predictorzone only has data with an effective zone mode of full, and predictorpattern only in the bias or full pattern modes. A wrong argument makes the condition always false and logs a warning at load.
A signal never fires. The handler must be a line ~onSignal:PREDICTOR_<NAME> (or a bare ~onSignal) in the Skills of the mob or of its Template. A handler written inside another skill does not count, because MythicMobs does not register it either. Write the signal name in upper case. PREDICTOR_PATTERN_* signals are only sent in the bias and full pattern modes, and PREDICTOR_PLAN_* and PREDICTOR_ROLE_* only while the group has a plan (see Groups).
A signal fires again and again. A local mob that makes no progress drops to level 4 and picks the same tactic again at the next decision, and each return counts as a new tactic: its PREDICTOR_<TACTIC> signal can fire around 30 times a minute. Do not put effects that must not repeat in such a handler, and fix the terrain or the arena (NO_PROGRESS).
The decision is dropped when the target changes. When MythicMobs picks a new target, the decision in progress is discarded and the mob runs its base AI until the next capture of its encounter (2 to 4 ticks, around 22 at most).
Two groups that meet stay separate. Mobs that started fighting in two different places keep two encounters and two requests, even after they join.
Decision log
With decision.logDecisions set to true (and a restart), the console prints every decision, fallback, cast result, threat change and closed outcome window, at most 20 lines every 10 seconds. No player names, only aliases:
Mob <uuid> fell back: NO_PROGRESS
Threat +1.50 ALLY_ASSISTED for player_2 sent to the table of mob <uuid>
Threat -2.00 UNREACHABLE for player_1 sent to the table of mob <uuid>
Outcome JEV keep_distance_and_shoot dealt=0.12 taken=0.03 reached=yes casts=1 hits=1Local output may show the full UUID of the mob; player names never appear.
When you report a bug, include the status and inspect output, these console lines, the profile and the mob and skill files, and your versions. Never include the key: ThePredict never prints it, so nothing you copy from its output contains it.