Skip to main content

TerrainData

The data about how the terrain of a planet generates.


Height

It will always have a length of 2.

It is an array whose values are of the type number.


Life

Inherits the value of the planet's Atmosphere. It is of the type boolean.


MountainDensity

It will always have a length of 2.

It is an array whose values are of the type number.


RockDensity

It will always have a length of 2.

It is an array whose values are of the type number.


Roughness

It will always have a length of 2.

It is an array whose values are of the type number.


Slopes

It will always have a length of 2.

It is an array whose values are of the type number.


Temperature

It will always have a length of 2.

It is an array whose values are of the type number.


TreeSettings


amount_of_branches

It will always have a length of 2.

It is an array whose values are of the type number.


amount_of_splits

It will always have a length of 2.

It is an array whose values are of the type number.


branch_angles

It will always have a length of 2.

It is an array whose values are of the type number.


branch_offset

It will always have a length of 2.

It is an array whose values are of the type number.


branch_size_percentage


max


height

It is of the type number.


width

It is of the type number.


min


height

It is of the type number.


width

It is of the type number.


trunk_size


max


height

It is of the type number.


width

It is of the type number.


min


height

It is of the type number.


width

It is of the type number.


Water

Inherits the value of the planet's WaterLevel ~= nil. It is of the type boolean.

Luau Type

This is the luau type for TerrainData. It may help clear up mistranslations from the raw data to the wiki page (as it is an automatic process).

type TerrainData = {
TreeSettings: {
branch_size_percentage: {
max: {
height: number,
width: number,
},
min: {
height: number,
width: number,
},
},
branch_angles: { number },
trunk_size: {
max: {
height: number,
width: number,
},
min: {
height: number,
width: number,
},
},
branch_offset: { number },
amount_of_branches: { number },
amount_of_splits: { number },
},
Slopes: { number },
Life: boolean,
Water: boolean,
Temperature: { number },
Height: { number },
RockDensity: { number },
MountainDensity: { number },
Roughness: { number },
}