What a bot costs the server
#MirageRoster bots are real players on the server, so each one costs something even when it only stands there. The header of plugins/MirageRoster/config.yml lists what you pay per bot:
- about 5 to 15 KB of heap (the player object, its inventory and advancements);
- chunk loading around the bot;
- entity tracking, tab list updates and packet broadcasts;
- one turn in every plugin loop that scans the player list.
A ghost is a bot that stays in the tab list, the player count and chat but has no body on any client and no simulation. Ghosts cost almost nothing, so a 200-name tab list with thirty bots actually walking around costs what thirty bots cost.
The same header gives rough expectations for a mid-range host (Ryzen 5, 16 GB). They are the plugin's own guidance, not a measurement of your server, and there is no published benchmark:
| Bots | Expected impact | Profile to start from |
|---|---|---|
| 30 to 50 | No noticeable impact; default settings are fine. | high (default) or ultra |
| 100 to 200 | About +1 to 2 ms per tick. | balanced |
| 300 to 500 | Significant; physics off. | low |
| 500 and more | Cluster the bots, physics off, raise every interval. | minimal or ghosts |
Placement matters: the config says 500 bots in one spot load about 9 chunks, while 500 scattered bots load about 4,500. Lower the server's own view distance before you raise the bot count.
How to size the roster for your server
#Use only documented settings and commands, one step at a time:
- Names versus bodies. Decide how many names you want in the tab list and how many bodies you want walking around. Set
performance.visible-limitto the bodies you need (-1= no limit), or run/mirage ghost limit <n>. Bodies are only taken from bots no real player is near. - Profile.
/mirage perflists the profiles (ultra,high,balanced,low,minimal) and shows the cost per task. Apply one with/mirage perf <name>; no restart is needed. Settings that match no profile show as custom. The Quick Setup screen (/mirage menu) also has Small, Medium and Large Server presets for the bot range. - Grow in steps. Raise the target (
roster.limit,presence.max-onlineor thepopulationschedule) or add bots over time with/mirage add 10 1h, and read/mirage perfand/mirage debug(per-pulse cost) after each step. - Watch the load guard. If
/mirage debugprintsload guard holding bodies at N, the server is already behind and bodies are being turned into ghosts. - Trim by cost. Use the table in the next section, biggest saving first.
- Last resort.
/mirage perf virtual onturns every bot into a ghost; nobody can see or hit bots until you switch it off.
After a server update run /mirage debug and check that its NMS bridge: line says OK (/mirage nms does the same on builds that have it). Startup is the other peak: raise presence.join-spacing (default 0.5 seconds) or lower performance.spawn-batch-size (default 5) if joining a large roster spikes the tick.
Settings that save the most
#Defaults are in the second column; apply changes with /mirage reload or in /mirage menu, Settings. The notes are the config's own.
| Key | Default | What it saves |
|---|---|---|
physics.enabled | true | The single largest CPU saving. Off: bots float in place, with no gravity, collision or knockback. |
physics.pushing | true | A per-bot scan every tick. Turn it off at scale. |
movement.look-around | true | Big saving at 200 or more bots. To save CPU while keeping it, raise movement.look-decision-ms (1200), not movement.turn-speed. |
tab.dynamic-ping | true | false keeps every bot at its base ping, the cheapest option. performance.ping-interval-ticks (40) is one packet per real player, nearly free. |
performance.equipment-resync-ticks | 100 | Walks the whole roster; raise it (minimum 20) on large rosters. |
performance.physics-interval-ticks | 1 | 2 to 4 is recommended from 100 bots. |
performance.simulate-distance | 128.0 | Bots with no real player this close are simulated at a fraction of the rate (performance.distant-simulation-divisor, 4). The config calls it the biggest saving for a roster spread over a map. |
performance.packet-view-distance | 96 | Skips head and equipment packets for players farther away (minimum 16). |
integration.move-event-interval-ms | 10000 | Every published bot move runs other plugins' listeners; the config calls it the most expensive single thing the plugin can do. integration.fire-move-events: false stops it but AFK plugins then count bots as idle. |
performance.bot-advancements | true | false removes per-tick advancement checks for bots. |
performance.bot-player-data | true | Keep true: with false bot statistics such as play time reset on restart. |
The per-bot footprint keys are already trimmed by default: performance.bot-view-distance and bot-simulation-distance are 2, bot-send-distance is 0, and bots-affect-mob-spawning is false.
Ghosts, the visible limit and the load guard
#| Key | Default | Meaning |
|---|---|---|
performance.virtual-bots | false | Every bot is a ghost. Live: /mirage perf virtual on or off. |
performance.virtual-placement | stay | Where ghosts wait: stay, spawn or sky. |
performance.visible-limit | -1 | At most this many bots keep a body. Live: /mirage ghost limit <n>. |
performance.load-guard.enabled | true | When the server falls behind, bodies become ghosts a few at a time, farthest from players first. Not active on Folia. |
performance.load-guard.mspt-high | 45.0 | Average ms per tick at which bodies start being taken away. |
performance.load-guard.mspt-low | 35.0 | At or below this they are handed back. |
performance.load-guard.step | 5 | Bodies taken or returned per check (every 5 seconds). |
performance.load-guard.min-visible | 5 | Bodies never drop below this. |
Pin single bots with /mirage ghost <bot> on or ghost: true on the identity. /mirage ghost reveal lets only you see ghosts. If bots vanish at peak times while the tab list stays full, the load guard or a visible limit is the reason; see FAQ and troubleshooting.
Stopping bot movement
#There is no single "freeze all bots" switch, no /mirage freeze command and no per-bot movement setting. Each behaviour has its own switch:
| To stop | Setting | Default |
|---|---|---|
| Strolling around the anchor | movement.wander.enabled: false (Quick Setup tile Walk Around) | true |
| Heads turning, looking at players | movement.look-around: false, movement.look-at-players-radius: 0, movement.look-at-speaker.enabled: false | true, 16.0, true |
| Crouch greetings | movement.sneak-greet.enabled: false | true |
| Swings, hotbar scrolling, crouching, eating | motion.gestures.enabled: false | true |
| Running away when hit | physics.flee-on-hit: false | true |
| Fighting back and chasing | pvp.enabled: false | true |
| Zone and routine trips | lifecycle.enabled: false | false |
| All physics (bots float in place) | physics.enabled: false | true |
motion.enabled: false does not stop movement: it only switches off the learned model, and the bots then use the movement: settings. Still able to move a bot: knockback and pushes (physics.knockback, physics.pushing), /mirage bring, /mirage follow, /mirage record play, /mirage possess, island homing and teleports from other plugins. While no real player is online, performance.skip-physics-when-empty: true (default) pauses bot movement anyway.
In zones.yml (read only when lifecycle.enabled: true) a zone's idle-chance is the chance a bot just stands for its whole stay and wander-radius is how far it drifts inside the zone. Outside zones, movement.wander.radius (12.0, minimum 2.0) is the stroll radius. Per bot you can only make a ghost (/mirage ghost <bot> on), dismiss it (/mirage depart <bot>) or move it (/mirage bring <bot>).
Silencing bot chat
#| To silence | Setting | Default |
|---|---|---|
| Idle lines from the pool | chat.enabled: false (Quick Setup tile Bot Chat) | true |
| Idle lines written by the AI | ai.auto-chat.enabled: false | true |
| AI answers to players | ai.enabled: false | false |
/msg and teleport replies, reactions, chat triggers | social.enabled: false | true |
For quieter rather than silent bots: chat.quiet-share (0.2, the share of bots that never start anything), chat.min-interval-seconds and max-interval-seconds (40 and 200), chat.need-real-players (true), chat.afk-silent (true), and the permission mirageroster.ai.ignore for staff. /mirage say <bot> <message> and /mirage sudo still send chat as a bot on purpose. See AI chat and social.
Where bots appear
#No command takes coordinates; /mirage arrive <name> takes only a name.
| Need | How |
|---|---|
| A world per bot | world: on the identity in identities.names. Otherwise roster.default-world, otherwise the first loaded world. |
| A place for all bots | Stand there, run /mirage spawnpoint add [weight] [radius], then /mirage spawnpoint on (roster.spawn-points.enabled). roster.spawn-points.mode: first-join (default) or always. Also list, tp <#>, remove <#>, clear. Each point stores its world, coordinates, yaw, pitch, weight and radius. |
| One bot at one spot | Stand there and run /mirage bring <bot>; its position is saved and restored (persistence.enabled, default true). /mirage info <bot> shows its location. |
| Places bots walk to | Zones in zones.yml with lifecycle.enabled: true: a sphere (center, radius) or a box (corner-1, corner-2), with world and ground-level y. |
zones:
market:
display: "&eMarket"
world: world
type: social
shape: box
corner-1: { x: 100, y: 64, z: 50 }
corner-2: { x: 120, y: 70, z: 70 }
capacity: 6
weight: 30
stay-seconds: { min: 90, max: 300 }
idle-chance: 0.5
Found a mistake or something missing? Open a ticket on Discord.
Report an issue