Standalone Worlds & Storage
Built-in worlds/ management replacing Multiverse-Core, world.yml config, RAM-only mode (0 disk writes), and stale session.lock recovery.
Apis includes built-in multi-world management that replaces external plugins like Multiverse-Core. It works out of the box when dimensions.mode: standalone is set in configs/apis.yml.
The worlds/ Folder & Auto-Loading
Section titled “The worlds/ Folder & Auto-Loading”Instead of cluttering the root folder with world/, world_nether/, and world_the_end/, Apis keeps all worlds inside worlds/ (configurable via --worlds-dir):
- Nether and End are not auto-created or loaded in
standalonemode. - Every subfolder inside
worlds/(excluding hidden dot-folders like.git) auto-loads at startup as an empty Void world with no ore, biome, or structure generation. - Each world lives cleanly at
worlds/<name>/without nesteddimensions/minecraft/...subdirectories.
Fallback World (fallback-world)
Section titled “Fallback World (fallback-world)”dimensions.fallback-world (default hub) defines the primary server world:
- Players spawn here on join and get evacuated to its spawn point when another world is unloaded via
/world unload. - If
worlds/hub/is empty on first boot, Apis generates a starter bedrock platform at(0, 60, 0)and writesworlds/hub/world.ymlwith spawn(0.5, 61.0, 0.5).
World Config: worlds/<world>/world.yml
Section titled “World Config: worlds/<world>/world.yml”Each world folder in worlds/ gets its own world.yml:
spawn: x: 0.5 y: 61.0 z: 0.5 yaw: 0.0 pitch: 0.0force-spawn: truedefault-game-mode: adventure| Key | Default | Behavior |
|---|---|---|
spawn.x, spawn.y, spawn.z |
0.5, 61.0, 0.5 |
Exact spawn coordinates |
spawn.yaw, spawn.pitch |
0.0, 0.0 |
Player camera orientation |
force-spawn |
true |
Teleports joining players to world.yml spawn every time instead of last logout position |
default-game-mode |
"survival" |
survival, creative, adventure, or spectator. Enforced on join, respawn, and world change |
RAM-Only Mode (storage.world-saving: false)
Section titled “RAM-Only Mode (storage.world-saving: false)”For hubs and minigame arenas that should reset cleanly on every restart, disable disk saving in configs/apis.yml:
storage: world-saving: falseIn this mode:
- chunks, region files,
level.dat, anddata/*.datare never written to disk; - player data (
playerdata/,stats/,advancements/) is not written and creates zero empty folders (legacy stats migration is skipped too); - empty worlds outside
dimensions.always-tickingautomatically sleep with 0 players (dimensions.never-tickingblocks ticking even when players are inside); - server shutdown skips flushing world buffers (especially fast when paired with
system.lifecycle.graceful-shutdown: false).
Stale session.lock Auto-Recovery
Section titled “Stale session.lock Auto-Recovery”After an abrupt container kill (SIGKILL), leftover session.lock files normally block startup.
- Normal mode: Apis stores the owning process PID and host ID inside
session.lock. If a lock conflict occurs on boot and that PID is no longer alive on the same host, Apis clears the stalesession.lockand continues starting. - With
storage.world-saving: false: any oldsession.lockis deleted automatically and no new disk lock file is created.
Returning to Standard Mode (vanilla)
Section titled “Returning to Standard Mode (vanilla)”If you need normal terrain generation, Nether, and End for a survival server, switch mode in configs/apis.yml:
dimensions: mode: vanilla enabled: - minecraft:overworld - minecraft:the_nether - minecraft:the_end