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
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{about|data pack and behavior pack contents|other uses|Dimension}}
{{about|data pack and behavior pack contents|other uses|Dimension}}
[[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]].]]
{{Split|Dimension definition (Java Edition)| Dimension definition (Bedrock Edition)|reason=There are few similarities between the versions.}}
{{relevant tutorial|Adding a new dimension}}
 
'''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>}}.
[[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}}'''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 ==
Line 8: Line 9:
=== ''Java Edition'' ===
=== ''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:World preset definition|world preset]] can be used to define 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.
 
The dimension definitions for the three default dimensions are not present in the dimensions file in vanilla data pack, they are present in the world preset.


=== ''Bedrock Edition'' ===
=== ''Bedrock Edition'' ===
Line 38: Line 41:
**** {{nbt|string|identifier}}: A [[Minecraft:namespaced identifier]] for the dimension. If this matches the identifier of a dimension registered by script, this definition will take priority.
**** {{nbt|string|identifier}}: A [[Minecraft:namespaced identifier]] for the dimension. If this matches the identifier of a dimension registered by script, this definition will take priority.
*** {{nbt|compound|components}}: Components that define the properties of the dimension.
*** {{nbt|compound|components}}: Components that define the properties of the dimension.
**** {{nbt|compound|minecraft:clouds}}:{{upcoming|26.60}} Defines if and where [[Minecraft:cloud]]s will be in the dimension. Omitting this component will result in the dimension not having clouds.
***** {{nbt|int|height}}: Determines the height at which clouds will appear in the dimension. Must be a number between -512 and 512.
**** {{nbt|compound|minecraft:default_biome}}: Defines the default biome used in the dimension.
**** {{nbt|compound|minecraft:default_biome}}: Defines the default biome used in the dimension.
***** {{nbt|string|biome}}: The identifier of the biome to make default.
***** {{nbt|string|biome}}: The identifier of the biome to make default.
Line 45: Line 50:
**** {{nbt|compound|minecraft:generation}}: ''Required.'' Defines how the dimension generates.
**** {{nbt|compound|minecraft:generation}}: ''Required.'' Defines how the dimension generates.
***** {{nbt|string|generator_type}}: The generator type to use for this dimension. Currently only {{cd|void}} is supported.
***** {{nbt|string|generator_type}}: The generator type to use for this dimension. Currently only {{cd|void}} is supported.
**** {{nbt|compound|minecraft:clouds}}: Defines determines if there will be [[Minecraft:clouds]] in the dimension.
***** {{nbt|string|height}}: Determines the height at which the cloud will be in the dimension, it is not possible to set heights higher than the overworld height.
</div>
</div>


Line 157: Line 160:
|[[Minecraft:Dimension type]]s can no longer be inlined in the dimension, they have to be a reference to a separate dimension_type file.}}
|[[Minecraft:Dimension type]]s can no longer be inlined in the dimension, they have to be a reference to a separate dimension_type file.}}
|{{HistoryLine||1.19.4|dev=pre1|Added multi-noise biome source parameter list.}}
|{{HistoryLine||1.19.4|dev=pre1|Added multi-noise biome source parameter list.}}
|{{HistoryLine||?|The Overworld's original fractal based biome source can no longer be picked.}}
}}
}}


Line 169: Line 173:
|{{HistoryLine|upcoming Bedrock}}
|{{HistoryLine|upcoming Bedrock}}
|{{HistoryLine||26.60|dev=Preview 26.60.21|Added the {{cd|minecraft:clouds}} component, letting custom dimensions configure the height at which clouds render. No component means clouds do not render.}}
|{{HistoryLine||26.60|dev=Preview 26.60.21|Added the {{cd|minecraft:clouds}} component, letting custom dimensions configure the height at which clouds render. No component means clouds do not render.}}
|{{HistoryLine|||dev=Preview 26.60.28|Clouds can now be set between -512 and 512 instead of -64 and 320.}}
}}
}}



Latest revision as of 11:10, 18 October 2026

Template:Split

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 tutorialDimensions 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 world preset can be used to define 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.

The dimension definitions for the three default dimensions are not present in the dimensions file in vanilla data pack, they are present in the world preset.

Bedrock Edition

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

Dimensions can also be created by scripts using the Template:Cd method, although this is not required. If the same dimension is created using both methods, it will be overridden by the behavior pack JSON definition, and a content warning will be logged.

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:维度定义格式