DimensionTypeBuilder

class DimensionTypeBuilder(id: ResourceLocation) : RegistryElementBuilder<DimensionType>

Builder for DimensionTypes. Use build to get the DimensionType instance or register to register it. Check out the docs page on dimensions for more information.

See also

Constructors

Link copied to clipboard
constructor(id: ResourceLocation)

Properties

Link copied to clipboard
val id: ResourceLocation

Functions

Link copied to clipboard
fun ambientLight(ambientLight: Float)

Sets the ambientLight property of this DimensionType.

Link copied to clipboard
fun bedWorks(bedWorks: Boolean)

Sets the bedWorks property of this DimensionType, which will lead to beds blowing up when trying to sleep if set to false.

Link copied to clipboard

Sets the coordinateScale property of this DimensionType, which determines the multiplier applied to the coordinates when leaving the dimension. (e.g. 8.0 for the nether)

Link copied to clipboard
fun effects(effects: ResourceLocation)

Sets the effects property of this DimensionType, which determines the ambient effects the client will display in levels of this DimensionType. These are hardcoded client-side so only the vanilla values can be used:

Link copied to clipboard
fun fixedTime(time: Long)

Sets the fixedTime property of this DimensionType. If this is set the tick time of any level of this dimension type will be fixed to the given value. To revert it back to null use noFixedTime.

Link copied to clipboard
fun hasCeiling(ceiling: Boolean)

Sets the hasCeiling property of this DimensionType, which determines if this dimension type has a bedrock ceiling (like the nether). Please note that this property won't actually lead to a bedrock ceiling being generated. It's only used to handle other gameplay mechanics like mob spawning or maps.

Link copied to clipboard
fun hasSkyLight(skylight: Boolean)

Sets the hasSkyLight property of this DimensionType, which determines if this dimension type has a sky light source.

Link copied to clipboard
fun height(height: Int)

Sets the height property of this DimensionType, which determines the amount of layers that can contain blocks. Must be a multiple of 16 and a value between 0 and 4096. The max height (minY + height - 1) cannot exceed 2031.

Link copied to clipboard
fun infiniBurn(infiniBurn: TagKey<Block>)

Sets the infiniBurn property of this DimensionType, which determines the tag of blocks that will burn infinitely. (For example netherrack and magma blocks in the overworld). Minecraft ships the following default tags:

Link copied to clipboard
fun logicalHeight(logicalHeight: Int)

Sets the logicalHeight property of this DimensionType, which determines the max y level a player can be teleported to by chorus fruits and nether portals. Can't be higher than the height property.

Link copied to clipboard
fun minY(minY: Int)

Sets the minY property of this DimensionType, which determines the minimum y level that can contain blocks. Must be a multiple of 16 and a value between -2032 and 2016. The max height (minY + height - 1) cannot exceed 2031.

Link copied to clipboard

Sets the MonsterSettings of this DimensionType using a MonsterSettingsBuilder.

fun monsterSettings(monsterSettings: DimensionType.MonsterSettings)

Sets the MonsterSettings of this DimensionType. For more information check out the MonsterSettingsBuilder

Link copied to clipboard
fun natural(natural: Boolean)

Sets the natural property of this DimensionType. If this is set to false, compasses will spin randomly, beds are useless regarding spawn points. If true they will work as expected and nether portals will spawn zombified piglins.

Link copied to clipboard

Sets the fixedTime property of this DimensionType to null and thus re-enables a normal day/light cycle.

Link copied to clipboard
fun respawnAnchorWorks(respawnAnchorWorks: Boolean)

Sets the respawnAnchorWorks property of this DimensionType, which will lead to respawn anchors blowing up when trying to use them if set to false.

Link copied to clipboard
fun ultraWarm(ultraWarm: Boolean)

Sets the ultraWarm property of this DimensionType, which determines if this dimension type should behave similar to the nether regarding water evaporation, lava spread or stalactite fluid drops.