メインコンテンツまでスキップ

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.

フィールド

フィールド型デフォルト説明
commandNameString—Command name to access this dimension (without slash, e.g. 'nether')
permissionString—Permission required to use the command (e.g. 'temporarydimension.access.nether')
templateWorldsList<String>emptyList of template world names (one will be selected randomly)
spawnZoneSpawnZone—Spawn zone - players will spawn randomly within this area
SpawnZone(6)
フィールド型デフォルト説明
x1Int0First corner X coordinate
y1Int64First corner Y coordinate
z1Int0First corner Z coordinate
x2Int0Second corner X coordinate
y2Int64Second corner Y coordinate
z2Int0Second corner Z coordinate
spawnBlockWhitelistList<Material>emptyOptional whitelist of blocks where players can spawn (empty = any solid block)
blacklistedCommandsList<String>emptyCommands that are blocked while in this dimension (without slash)
onEnterList<Ref<TriggerableEntry>>emptyTriggers executed when a player enters the dimension
onExitList<Ref<TriggerableEntry>>emptyTriggers executed when a player exits the dimension
noPermissionMessageString<red>You don't have permission to access this dimension.Message shown when player lacks permission (MiniMessage format)
enterMessageString<green>You have entered <dimension>.Message shown when entering the dimension (MiniMessage format)
exitMessageString<yellow>You have left <dimension>.Message shown when leaving the dimension (MiniMessage format)
commandBlockedMessageString<red>This command is not allowed in this dimension.Message shown when a command is blocked (MiniMessage format)

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.