Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Dimension definition: Difference between revisions

From SAS Gaming Wiki
SyncBot (talk | contribs)
Sync: updated from Minecraft
SyncBot (talk | contribs)
Sync: updated from Minecraft
Line 3: Line 3:
[[File:Floating Islands custom dimension.png|thumb|300px|A custom dimension using a [[dimension type|custom type]], a fixed [[Minecraft:plains]] biome, and the <code>minecraft:floating_islands</code> [[Minecraft:noise settings]].]]
[[File:Floating Islands custom dimension.png|thumb|300px|A custom dimension using a [[dimension type|custom type]], a fixed [[Minecraft:plains]] biome, and the <code>minecraft:floating_islands</code> [[Minecraft:noise settings]].]]
{{relevant tutorial|Adding a new dimension}}
{{relevant tutorial|Adding a new dimension}}
'''Dimensions''' are [[Minecraft:JSON]] files located in [[Minecraft:data pack]]s that define dimensions for the game. New dimensions added can be accessed by using commands, like {{cmd|/execute in <dimension> run teleport <coordinates>}}.
'''Dimensions''' are [[Minecraft:JSON]] files located in [[Minecraft:data pack]]s {{in|java}} and in [[Minecraft:behavior pack]]s {{in|bedrock}}. They define new dimensions for the game. New dimensions added can be accessed by using commands, like {{cmd|/execute in <dimension> run teleport <coordinates>}}.


== Usage ==
== Usage ==
=== ''Java Edition'' ===
Dimensions are stored as [[Minecraft:JSON]] files within a data pack, at the path <code>data/<namespace>/dimension/<name>.json</code>. Alternatively, a [[Minecraft:Custom world preset]] can be used to customize all dimensions in a world. Dimensions stored separately override the dimension set in the selected world preset. This allows datapacks to only override a single dimension while keeping the other dimensions untouched. However, the user-selected world preset then doesn't have an impact on the given dimension.
Dimensions are stored as [[Minecraft:JSON]] files within a data pack, at the path <code>data/<namespace>/dimension/<name>.json</code>. Alternatively, a [[Minecraft:Custom world preset]] can be used to customize all dimensions in a world. Dimensions stored separately override the dimension set in the selected world preset. This allows datapacks to only override a single dimension while keeping the other dimensions untouched. However, the user-selected world preset then doesn't have an impact on the given dimension.
=== ''Bedrock Edition'' ===
Dimensions are stored as [[Minecraft:JSON]] files within a behavior pack, at the path <code><root BP>/dimension/<name>.json</code>.


== JSON format ==
== JSON format ==
=== ''Java Edition'' ===
<div class="treeview">
<div class="treeview">
When stored as separate dimensions, they follow the following syntax:
When stored as separate dimensions, they follow the following syntax:
Line 16: Line 26:
*** {{nbt|string|type}}: The [[#Generator types|generator]] type as [[Minecraft:resource location]]. One of <code>noise</code>, <code>flat</code>, or <code>debug</code>.
*** {{nbt|string|type}}: The [[#Generator types|generator]] type as [[Minecraft:resource location]]. One of <code>noise</code>, <code>flat</code>, or <code>debug</code>.
*** Additional fields of the generator, described below.
*** Additional fields of the generator, described below.
</div>
=== ''Bedrock Edition'' ===
<div class="treeview">
* {{nbt|compound}} The root tag.
** {{nbt|string|format_version}}: The format version of the file, requires <code>"1.26.50"</code> for all current features.
** {{nbt|compound|minecraft:dimension}}: The biome definition.
*** {{nbt|compound|description}}
**** {{nbt|string|identifier}}: A [[Minecraft:namespaced identifier]] for the dimension.
*** {{nbt|compound|components}}: Components used to define the dimension's generation.
**** {{nbt|compound|minecraft:dimension_height}}: Defines the height range of the dimension.
***** {{nbt|float|min_y}}: The y level that is the bottom of the dimension. This must be a multiple of 16.
***** {{nbt|float|height_range}}: The height of the dimension in blocks. This is added on top of {{cd|min_y}}. Can be a max of 1024.
**** {{nbt|compound|minecraft:default_biome}}: Defines the default biome of the dimension.
***** {{nbt|string|biome}}: A biome identifier.
**** {{nbt|compound|minecraft:generation}}: Defines the generation of the dimension.
***** {{nbt|string|generator_type}}: A generator type. Can only be {{cd|void}}.
</div>
</div>


== Generator types ==
== Generator types ==
=== void ===
{{exclusive|bedrock|section=1}}
Has no terrain generation. This generator has no additional fields.


=== debug ===
=== debug ===
{{exclusive|java|section=1}}
The generator type used when selecting [[Minecraft:debug mode]] in the world creation menu. This generator has no additional fields.
The generator type used when selecting [[Minecraft:debug mode]] in the world creation menu. This generator has no additional fields.


=== flat ===
=== flat ===
{{exclusive|java|section=1}}
The generator type used for [[Minecraft:superflat]] worlds.
The generator type used for [[Minecraft:superflat]] worlds.
<div class="treeview">
<div class="treeview">
Line 32: Line 66:


=== noise ===
=== noise ===
{{exclusive|java|section=1}}
The generator used in all the default [[Minecraft:dimension]]s.
The generator used in all the default [[Minecraft:dimension]]s.
<div class="treeview">
<div class="treeview">
Line 42: Line 77:


== Biome sources ==
== Biome sources ==
{{exclusive|java|section=1}}


=== checkerboard ===
=== checkerboard ===
Line 100: Line 136:


== Multi noise parameter list ==
== Multi noise parameter list ==
{{exclusive|java|section=1}}
A multi-noise biome source parameter list is stored as [[Minecraft:JSON]] files within a data pack, at the path <code>data/<namespace>/worldgen/multi_noise_biome_source_parameter_list/<name>.json</code>. It is used to avoid changing world preset files when adding new biomes to experimental data packs.
A multi-noise biome source parameter list is stored as [[Minecraft:JSON]] files within a data pack, at the path <code>data/<namespace>/worldgen/multi_noise_biome_source_parameter_list/<name>.json</code>. It is used to avoid changing world preset files when adding new biomes to experimental data packs.



Revision as of 11:04, 22 August 2026

Template:Update

File:Floating Islands custom dimension.png
A custom dimension using a custom type, a fixed Minecraft:plains biome, and the minecraft:floating_islands Minecraft:noise settings.

Template:Relevant tutorial Dimensions are Minecraft:JSON files located in Minecraft:data packs Template:In and in Minecraft:behavior packs Template:In. They define new dimensions for the game. New dimensions added can be accessed by using commands, like Template:Cmd.

Usage

Java Edition

Dimensions are stored as Minecraft:JSON files within a data pack, at the path data/<namespace>/dimension/<name>.json. Alternatively, a Minecraft:Custom world preset can be used to customize all dimensions in a world. Dimensions stored separately override the dimension set in the selected world preset. This allows datapacks to only override a single dimension while keeping the other dimensions untouched. However, the user-selected world preset then doesn't have an impact on the given dimension.

Bedrock Edition

Dimensions are stored as Minecraft:JSON files within a behavior pack, at the path <root BP>/dimension/<name>.json.

JSON format

Java Edition

When stored as separate dimensions, they follow the following syntax:

Bedrock Edition

Generator types

void

Template:Exclusive Has no terrain generation. This generator has no additional fields.

debug

Template:Exclusive The generator type used when selecting Minecraft:debug mode in the world creation menu. This generator has no additional fields.

flat

Template:Exclusive The generator type used for Minecraft:superflat worlds.

noise

Template:Exclusive The generator used in all the default Minecraft:dimensions.

Biome sources

Template:Exclusive

checkerboard

The checkerboard biome source places biomes in a checkerboard pattern.

fixed

The fixed biome source, also called Minecraft:single biome, uses one specified biome everywhere.

multi_noise

A biome source that depends on multiple parameters defined in the Minecraft:noise router. Each biome is defined within a 4×4×4 cube based on the noise values at its edges.

the_end

The biome source used for Minecraft:the End dimension. This biome source has no additional fields.

Biomes are calculated based on each Minecraft:chunk for the x and z axes, and every 4 blocks for the y-axis.

  • If the distance from the chunk edges to the origin is 1024 or less, the end biome is assigned.
  • Otherwise, the biome is determined based on the erosion value (defined in Minecraft:noise router) calculated at the center of the chunk and the y-coordinate.
Erosion (e) Biome
N/A Template:BiomeLink
e > Template:Frac Template:BiomeLink
Template:Frac ≥ e ≥ −Template:Frac Template:BiomeLink
Template:Frac > e ≥ −Template:Frac Template:BiomeLink
e < −Template:Frac Template:BiomeLink

Multi noise parameter list

Template:Exclusive A multi-noise biome source parameter list is stored as Minecraft:JSON files within a data pack, at the path data/<namespace>/worldgen/multi_noise_biome_source_parameter_list/<name>.json. It is used to avoid changing world preset files when adding new biomes to experimental data packs.

The syntax is as follows:

    • Template:Nbt: A reference to a hardcoded parameter list preset. The available presets are overworld and nether.

History

Java Edition

Template:HistoryTable

Bedrock Edition

Template:HistoryTable

External links

Navigation

Template:Navbox Java Edition technical

Minecraft:de:Dimensionsdefinition Minecraft:fr:Définition de dimension Minecraft:ja:カスタムディメンション Minecraft:pt:Definição de dimensão Minecraft:zh:维度定义格式