# Multiverse

Creates worlds, each a level of its own, and moves players between them, with per-world game mode and access.

Install it from the server console with `addon install multiverse`.

- Version: 1.0.0, released Nov 22, 2026
- Runs on: JSPrismarine 0.25.0 or newer
- Published by: JSPrismarine ([source](https://github.com/JSPrismarine/JSPrismarine/tree/master/addons/multiverse), [issues](https://github.com/JSPrismarine/JSPrismarine/issues))
- License: (MIT OR MPL-2.0)
- Pack SHA-256: `27f9490d38352664c8c7b35740b3cf82875566b95566d0febdd84e0d1007c7f9`

## Commands

Each command's name is also its permission node in `permissions.json`. With no entry for the node, the command's level decides, so a command above level 0 needs an operator or a `level` meta. An entry that grants the node lets a player run the command at any level, and a node with a leading `-` takes it away, even from an operator. [The command reference](https://jsprismarine.dev/guide/commands.md#who-can-run-a-command) explains both.

| Command | Description | Permission | Level | Granted to |
| --- | --- | --- | --- | --- |
| `/jsp:mv <list\|info\|tp\|spawn\|who\|coords\|create\|load\|unload\|setspawn\|modify> [world] [name] [value]`, also `/mv` | Lists the worlds, moves between them, and for operators creates, loads and changes them. | `jsp:mv` | 0 | Everyone |

## README

From the addon's README.md, version 1.0.0.

Creates worlds and moves players between them, each world with its own game mode and access. It
brings the core of [Multiverse-Core](https://www.spigotmc.org/resources/multiverse-core.390/) from
Java Edition servers to JSPrismarine.

## Worlds

A world is one of the server's levels: a world of its own, with an Overworld, a Nether and an End,
its own spawn, and each player's inventory, health and position in it
([Managing worlds while the server runs](https://jsprismarine.dev/guide/running.md#managing-worlds-while-the-server-runs)
describes them). The level `level-name` names is the one players join first. `/mv create` makes a
new level, `/mv unload` detaches one and keeps its files, and `/mv load` brings it back, as
`/world` does. A player moving to another world leaves their inventory behind and picks up the one
they had there, unless the server's `player-data-groups` share it.

Multiverse runs in every level, so `/mv` acts in the world the player who types it is in.

## Commands

`/mv <action>` does everything. Anyone may run
`list`, `info`, `tp`, `spawn`, `who` and `coords`,
and operators and the console also
`create`, `load`, `unload`, `setspawn` and `modify`.

| Command | What it does |
| --- | --- |
| `/mv list` | Lists the worlds and how many players each has. Operators also see the unloaded ones. |
| `/mv info <world>` | Shows a world's rules and its UUID. |
| `/mv tp <world> [player]` | Sends you, or for an operator another player in your world, to a world's spawn. |
| `/mv spawn` | Sends you to the spawn of the world you are in. |
| `/mv who [world]` | Lists the players in each world, or in one. |
| `/mv coords` | Shows the world and dimension you are in and your position. |
| `/mv create <name> [preset] [seed]` | Creates a world, `minecraft:normal` unless you name another preset such as `minecraft:flat`. A name is 1 to 64 letters, digits, `_` or `-`. |
| `/mv load <world>` | Loads an unloaded world again. |
| `/mv unload <world>` | Saves a world, sends its players to the world players join first, and unloads it. Its files stay. |
| `/mv setspawn` | Makes where you stand the spawn of the world you are in. Stand in its Overworld. |
| `/mv modify <world> <property> <value>` | Changes one rule of a world. |

`create`, `load` and `unload` take a moment. The command answers at once, and the player who ran
it, or the console's log, hears when it is done.

A hidden world is left out of `/mv list` for players, and only operators can enter it. The player
limit and the game mode bind players who are not operators.

## Rules

`/mv modify` sets these properties, and `none` clears one:


| Property       | Value                                            |
| -------------- | ------------------------------------------------ |
| `alias`        | a name to show for the world, or none            |
| `gamemode`     | survival, creative, adventure, spectator or none |
| `hidden`       | true or false                                    |
| `playerlimit`  | a whole number of players, or none               |
| `respawnworld` | a world, or none                                 |


- `gamemode` is the mode a player is put in when they join the server in the world or arrive
  there.
- `playerlimit` caps how many players `/mv tp` lets in.
- `respawnworld` is the world a player who dies in this one respawns in, at its spawn, when they
  have no bed or respawn anchor. Without it they respawn in the world they died in.

The rules live in `addons/multiverse.config.json` beside the addon, keyed by each level's UUID,
which `/mv info` shows. A UUID stays the same when a level is renamed, so the rules follow it.
You can edit the file by hand: Multiverse reads a change without a restart, and the console says
which fields it could not read.

```json
{
    "worlds": {
        "6f1c9d2a-3b4e-4f5a-8b6c-7d8e9f0a1b2c": { "alias": "Creative", "gamemode": "creative" },
        "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d": {
            "hidden": true,
            "playerLimit": 20,
            "respawnWorld": "6f1c9d2a-3b4e-4f5a-8b6c-7d8e9f0a1b2c"
        }
    }
}
```

## Placeholders

Where a pack renders placeholders, such as the [tab list](https://jsprismarine.dev/addons/tab-list.md),
`{multiverse:world}` is the name of the player's world and `{multiverse:alias}` its alias.

## Installing it

From the server console:

```text
addon install multiverse
```

It needs JSPrismarine 0.25.0 or newer,
which manages levels while it runs. The pack also loads on Bedrock Dedicated Server, which has one
world, and `/mv` says it needs JSPrismarine there.

## What it cannot do

Multiverse-Core also deletes, copies and regenerates worlds, and turns PvP off per world. A world
unloaded here keeps its files, and the stable Script API cannot cancel damage, so this addon does
none of those.
