Your own dimension

Own server

New world near Nether and EndLearn more

Add a new world to the game next to normal, Neser and End: topography, light, sky, height, bed and anchor to choose. Get a date pack with an entry command and /trigger for players without operator rights.

My game select version

We'll remember in this browser and set up where your version is available. Open link settings are more important than this choice; the Vicki versions do not change.

Name and basis

"space:name" in lowercase Latin letters - that's what the commands call it.

The basis is a vanilla world, whose rules are taken as a model: fog, music, lava and water, mobs. Everything below changes its copy.

Dirt

Properties of the world

Result

custom:dream
Height
from Y -64 to Y 319
Sky
normal
Light without torches
no
Ceiling
no
Scale
1 : 1
Bed
you can sleep
Respawn Anchor
explodes

Login - operator command

/function custom:dream/go

For players without rights - back and forth

/trigger custom.dream
/trigger custom.dream set 2
Download datapack
What's inside the archive - 9 files

data/minecraft/tags/function/load.json

Load tag: the game calls these functions when loading the world and after /reload.

{
  "values": [
    "custom:dream/load"
  ]
}

data/minecraft/tags/function/tick.json

Tick tag: these functions run every tick - 20 times per second.

{
  "values": [
    "custom:dream/tick"
  ]
}

data/custom/dimension_type/dream.json

World properties: height, light, sky, ceiling, scale, bed and anchor.

{
  "ambient_light": 0.0,
  "attributes": {
    "minecraft:audio/ambient_sounds": {
      "mood": {
        "block_search_extent": 8,
        "offset": 2.0,
        "sound": "minecraft:ambient.cave",
        "tick_delay": 6000
      }
    },
    "minecraft:audio/background_music": {
      "creative": {
        "max_delay": 24000,
        "min_delay": 12000,
        "sound": "minecraft:music.creative"
      },
      "default": {
        "max_delay": 24000,
        "min_delay": 12000,
        "sound": "minecraft:music.game"
      }
    },
    "minecraft:gameplay/bed_rule": {
      "can_set_spawn": "always",
      "can_sleep": "when_dark",
      "error_message": {
        "translate": "block.minecraft.bed.no_sleep"
      }
    },
    "minecraft:gameplay/nether_portal_spawns_piglin": true,
    "minecraft:gameplay/respawn_anchor_works": false,
    "minecraft:gameplay/straw_bed_rule": {
      "can_set_spawn": "never",
      "can_sleep": "when_dark",
      "destroy_on_leave": true,
      "error_message": {
        "translate": "block.minecraft.bed.no_sleep"
      }
    },
    "minecraft:visual/ambient_light_color": "#0a0a0a",
    "minecraft:visual/cloud_color": "#ccffffff",
    "minecraft:visual/cloud_height": 192.33,
    "minecraft:visual/fog_color": "#c0d8ff",
    "minecraft:visual/sky_color": "#78a7ff"
  },
  "coordinate_scale": 1.0,
  "default_clock": "minecraft:overworld",
  "has_ceiling": false,
  "has_ender_dragon_fight": false,
  "has_skylight": true,
  "height": 384,
  "infiniburn": "#minecraft:infiniburn_overworld",
  "logical_height": 384,
  "min_y": -64,
  "monster_spawn_block_light_limit": 0,
  "monster_spawn_light_level": {
    "type": "minecraft:uniform",
    "max_inclusive": 7,
    "min_inclusive": 0
  },
  "timelines": "#minecraft:in_overworld"
}

data/custom/dimension/dream.json

The world itself: what type it is and how the earth is built.

{
  "type": "custom:dream",
  "generator": {
    "type": "minecraft:noise",
    "biome_source": {
      "type": "minecraft:multi_noise",
      "preset": "minecraft:overworld"
    },
    "settings": "minecraft:overworld"
  }
}

data/custom/function/dream/load.mcfunction

When loading: count /trigger and memory where they left.

scoreboard objectives add custom.dream trigger
scoreboard objectives add custom.dream.x dummy
scoreboard objectives add custom.dream.y dummy
scoreboard objectives add custom.dream.z dummy

data/custom/function/dream/go.mcfunction

Into dimension. From the ordinary world, he remembers where he left.

execute in minecraft:overworld if entity @s[distance=0..] store result score @s custom.dream.x run data get entity @s Pos[0]
execute in minecraft:overworld if entity @s[distance=0..] store result score @s custom.dream.y run data get entity @s Pos[1]
execute in minecraft:overworld if entity @s[distance=0..] store result score @s custom.dream.z run data get entity @s Pos[2]
execute in custom:dream run spreadplayers 0 0 1 16 false @s

data/custom/function/dream/back.mcfunction

Back to the ordinary world - to the place from which they left.

execute unless score @s custom.dream.y matches -2147483648.. run return run tellraw @s {"text":"Вы ещё не уходили из обычного мира — возвращаться некуда.","color":"red"}
execute store result storage custom:dream_back x int 1 run scoreboard players get @s custom.dream.x
execute store result storage custom:dream_back y int 1 run scoreboard players get @s custom.dream.y
execute store result storage custom:dream_back z int 1 run scoreboard players get @s custom.dream.z
function custom:dream/back_to with storage custom:dream_back

data/custom/function/dream/back_to.mcfunction

Transfer according to stored coordinates (macro) - to the middle of the block.

$execute in minecraft:overworld run tp @s $(x) $(y) $(z)
execute at @s run tp @s ~0.5 ~ ~0.5

data/custom/function/dream/tick.mcfunction

Each tick: /trigger custom.dream is there, /trigger business.dreum set 2 is back.

execute as @a[scores={custom.dream=1}] run function custom:dream/go
execute as @a[scores={custom.dream=2}] run function custom:dream/back
scoreboard players set @a[scores={custom.dream=1..}] custom.dream 0
scoreboard players enable @a custom.dream

How to use

  1. Server

    Put the zip in a folder world/datapacks and restart the server: a new dimension appears on startup, /reload will not add it. There is no need to recreate the world.

  2. Single player

    New World: Create New World → Miscellaneous → Datasets → Drag zip. Ready world: put zip in saves/<world>/datapacks and rediscover the world.

  3. Login

    Operator - /function custom:dream/go, players - /trigger custom.dream; back - /trigger custom.dream set 2, to the place where they left.

What you need to know

  • Verified by server. The package downloaded the selected servers 26.3 and 1.21.11: the world of the height chosen, the entrance and return are working. The player entered on 26.3 via /trigger and the bed, anchor and portal behaved as selected.
  • The recording is different for the versions. In 1.21.11 the Neser bed explodes by expodes, in 26.3 by Destroy_on_use, and 26.3 have mandatory fields that are not available in 1.21.11. The version is therefore selected and the game file of this version is based.
  • Nether Portal from its dimension leads to Neser, and the coordinates are divided by scale: at 1:8 as in Neser - one to one. Neser's portal leads back to the normal world.
  • Height less than relief cuts off mountains and caves, and ores outside the height are skipped - the server will warn about this in the log with the line Empty height range. This is not a mistake.
  • There is no dragon. With the "End" base, there will be islands, and the fight with the dragon will only happen in the real End.

What is the difference between the ordinary world, Nether and End - on the wiki "measurements". Remake the ordinary world itself into one biome - The World of One Bioma, edit world files manually - NBT editor.

Frequently asked questions

How to add your own dimension to Minecraft?

Datapack: It contains the type of measurement and the world itself. Put the archive in the world/datapacks folder and restart the server; it will also appear in the already created world.

How to get into your dimension?

By command / function space: name/go – it transports there via execute in. Players without operator rights – /trigger space.name, backwards – /trigger space.name set 2.

Why didn't the dimension appear?

A new dimension of the game adds when launched: once a package is put in place, restart the server or re-open the world -- /reload will not add it. The version of the package should coincide with the game version.