dim Namespace

Namespace containing functions related to the player’s current dimension.

Note

These functions are not available for biome condition scripts.

String dim.getId()

Gets the ID of the dimension as a string.

Returns:

The resource location ID of the dimension

Return type:

String

String dim.getDimName()

Gets the name of the dimension.

Returns:

The dimension name

Return type:

String

Boolean dim.hasSky()

Returns whether the dimension has a sky.

Returns:

Returns true if the dimension has a sky, false otherwise.

Return type:

Boolean

Boolean dim.isSuperFlat()

Returns whether the dimension is super flat.

Returns:

Returns true if the current dimension is super flat, false otherwise.

Return type:

Boolean