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
trueif the dimension has a sky,falseotherwise.- Return type:
Boolean
- Boolean dim.isSuperFlat()
Returns whether the dimension is super flat.
- Returns:
Returns
trueif the current dimension is super flat,falseotherwise.- Return type:
Boolean