Temporary Dimension
Temporary Dimension Definition
Manifest entry defining a temporary dimension accessible via a custom command. When a player executes the command with the required permission, a temporary world is created from one of the template worlds and the player is teleported to a random safe location within the spawn zone.
Campos
| Campo | Tipo | Padrão | Descrição | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
commandName | String | — | Command name to access this dimension (without slash, e.g. 'nether') | ||||||||||||||||||||||||||||
permission | String | — | Permission required to use the command (e.g. 'temporarydimension.access.nether') | ||||||||||||||||||||||||||||
templateWorlds | List<String> | empty | List of template world names (one will be selected randomly) | ||||||||||||||||||||||||||||
spawnZone | SpawnZone | — | Spawn zone - players will spawn randomly within this area
|
| Campo | Tipo | Padrão | Descrição |
|---|---|---|---|
x1 | Int | 0 | First corner X coordinate |
y1 | Int | 64 | First corner Y coordinate |
z1 | Int | 0 | First corner Z coordinate |
x2 | Int | 0 | Second corner X coordinate |
y2 | Int | 64 | Second corner Y coordinate |
z2 | Int | 0 | Second corner Z coordinate |
spawnBlockWhitelistList<Material>emptyblacklistedCommandsList<String>emptyonEnterList<Ref<TriggerableEntry>>emptyonExitList<Ref<TriggerableEntry>>emptynoPermissionMessageString<red>You don't have permission to access this dimension.enterMessageString<green>You have entered <dimension>.exitMessageString<yellow>You have left <dimension>.commandBlockedMessageString<red>This command is not allowed in this dimension.How to use it
One entry describes one dimension. templateWorlds lists template names, one of which is picked at random on each entry, so you can offer several layouts of the same dungeon.
spawnZone is a box given by two corners in block coordinates of the template world (their order does not matter). The extension tries 64 random points in the box, then rings around its centre up to 16 blocks away at several heights. A point is valid when the block and the one above are air and the block below is solid and not lava, fire, cactus or magma. If spawnBlockWhitelist is not empty, the floor must also be one of the listed materials. Put the box at floor level with a little height rather than a huge volume.
commandName gives /typewriter tempdim <commandName>; permission guards it. Messages use MiniMessage; <dimension> is the entry name. onEnter and onExit run once the teleport has succeeded and after the player is back, respectively.