ThePredictdocs v0.0.1 RC

Reference

FAQ

Short answers to the questions server admins and mob authors ask first.

ThePredict 0.0.1 is a release candidate: these pages describe this build, checked against its source code, but it has not been verified on a live server yet. If your server behaves differently, report it (see the last question).

Do I need a TypeSafe key?

No. Without a key ThePredict never contacts any service: bound mobs fight with the local planner of their profile, at no cost, and MythicMobs works as usual. With a key in the TYPESAFE_API_KEY environment variable, Jev picks among the tactics your profile offers. See Jev connection.

What does it cost?

Only Jev's input tokens are billed; the output is free. At the price published when this release was tested (0.042 USD per million input tokens, which TypeSafe may change), a lone mob in continuous combat measured about 1 884 tokens per request with the default full detail: about 0.28 USD per hour at one request per heartbeat, or 0.14 USD with compact. The default reactive cadence asks more often, up to about 0.95 USD per mob and hour in the worst case. decision.maxInputTokensPerMinute caps the total (the shipped cap is about 1.5 USD per hour at most); mobs over budget simply play locally. /thepredict status shows a live hourly estimate.

Does ThePredict change my skills or add effects?

No. It never edits MythicMobs files and never adds particles, sounds, glow or animations. It decides when and how your skills come out, and it publishes signals (PREDICTOR_*), conditions and placeholders your own skills can react to. Every visual or sound the player sees comes from your skills. Even /thepredict intention suggest only prints lines for you to copy.

Can players see it?

Players only see the mob fight differently. ThePredict sends them no messages and they have no command. Whatever they see or hear on a decision comes from your skills, for example a line on ~onSignal:PREDICTOR_RETREAT_AND_DEFEND.

Which mobs work?

Any MythicMobs mob with Predictor: true and a profile whose MythicID names it. This release targets ground mobs. Species with a Brain (piglins, hoglins, wardens, villagers, breezes, frogs, goats and a few more) keep their own movement and only accept Movement: NONE tactics, so ThePredict still picks and casts their skills. Slimes, magma cubes, ghasts, phantoms and bats keep their MythicMobs AI entirely. See Movement & goals.

What about flying or swimming mobs?

Not recommended yet. Flyers and swimmers that are regular creatures do get movement goals, but their movement has not been tested.

Can mobs fight other mobs?

Yes. Allow other living entities as participants (participants.entities.allow or the profile's Participants.Entities.Allow), give the mob a native target selector such as nearestOtherFactionMonsters, and use MythicMobs factions or scoreboard teams to set the sides. /thepredict duel records such fights. See Targets, participants & threat.

How do I make a skill fire only during one tactic?

With the default CastMode: any_ready, every skill with a valid Intention line fires as soon as it is ready. To tie a skill to its tactic, pick one:

  • add - predictortactic{t=<tactic>} true to the skill's Conditions (ThePredict checks them before casting and waits while they fail);
  • leave the skill without an Intention line: an untyped skill only fires as the choice of its own tactic;
  • set Timing.CastMode to intent_only for the whole profile.

Why does my boss hit less than the classic version?

While ThePredict controls a mob, its base melee goal does not hit; ThePredict adds no automatic vanilla hits. Put the melee damage in a skill of a tactic, or add a Kind: VANILLA_MELEE choice, which hits at most once every 20 ticks like vanilla. Tune that skill's Cooldown and damage when you compare with a classic boss.

How do I turn it off for one mob?

Set Predictor: false in the mob file (or remove its profile) and run /mm reload. ThePredict releases the mob and MythicMobs puts its own goals back. To remove ThePredict entirely, take the JAR out and restart. See Install & requirements.

Do I need to restart after a change?

For config.yml and the key, yes: they are read only at startup. Profiles, mobs and skills only need /mm reload.

Do I have to write in English?

Objective, tactic IDs and Description reach Jev, which reads English best. The catalog warns, without blocking, when a text looks like another language. Choice and context IDs never leave the server.

Does it read players' keyboard input?

No. A player's tendency (strafing, backing off, chasing) is read from their observed movement, never from raw input. MythicMobs' own input condition is your choice in your skills; ThePredict does not read it. See Patterns.

Does it see through walls?

No. A mob only considers participants within its FollowRange (capped by decision.searchRadiusBlocks), sees a player's shield, drawn bow, held item and effects only with a line of sight and only if the player is not invisible, and Jev receives distance bands and aliases (player_1), never coordinates, names or UUIDs. See Targets, participants & threat.

Is it fair to players?

Changing soon

Today a fight against players runs under fairness rules: minimum tell lengths before heavy hits, attack tokens and spacing between hits when several mobs gang up, no lethal pushes, limits on exploiting a player's habits, and a difficulty controller that aims the fight at a target length. These rules are about to be redefined as intelligence levels.

See Difficulty, Stances, tells & poise and Groups for how each works in the current build.

Does it work with Folia?

No. ThePredict needs Paper 26.2, Java 25 and MythicMobs Premium 5.13.1 or newer.

How do I report a bug?

Send the output of /thepredict status and /thepredict inspect nearest, the console lines around the problem (turn on decision.logDecisions for the decision log), the profile, the mob and skill files, and your Java, Paper and MythicMobs versions. Never share your key or any file that holds it. ThePredict never prints the key, so its own output is safe to share. See Troubleshooting & status.

ThePredict 0.0.1 · release candidate. These pages describe this build, checked against its source code; it has not been verified on a live server yet.

ThePredict is an independent MythicMobs addon. Jev is TypeSafe's decision model; naming it does not imply endorsement. Fonts: Pixelify Sans, Inter and JetBrains Mono, under the SIL Open Font License.