OpenMiner/docs/lua-api-dimension.md

857 B

Lua API: Dimension

Example

mod:dimension {
	id = "overworld",
	name = "Overworld",

	biomes = {"default:grassland", "default:desert"},

	sky = "default:sky_overworld",
}

Attributes

id

ID of the dimension. Mandatory field.

Example:

id = "dimension_nether"

IDs are usually of the form mod:dimension but the mod: prefix is prepended automatically so it's not needed.

name

Label of the dimension. Mandatory field.

Example:

name = "Nether"

This label is the name that will appear everywhere in the game.

biomes

Table containing all the string IDs of the possible biomes for this dimension.

Example:

biomes = {"default:grassland", "default:desert"}

sky

String ID of the sky definition used for this dimension.

Example:

sky = "default:sky_nether"