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. It is read-only, it cannot be assigned to.


Life

Inherits the value of the planet's Atmosphere. It is of the type boolean. It is read-only, it cannot be assigned to.


MountainDensity

It will always have a length of 2.

It is an array whose values are of the type number. It is read-only, it cannot be assigned to.


RockDensity

It will always have a length of 2.

It is an array whose values are of the type number. It is read-only, it cannot be assigned to.


Roughness

It will always have a length of 2.

It is an array whose values are of the type number. It is read-only, it cannot be assigned to.


Slopes

It will always have a length of 2.

It is an array whose values are of the type number. It is read-only, it cannot be assigned to.


Temperature

It will always have a length of 2.

It is an array whose values are of the type number. It is read-only, it cannot be assigned to.


TreeSettings


amount_of_branches

It will always have a length of 2.

It is an array whose values are of the type number. It is read-only, it cannot be assigned to.


amount_of_splits

It will always have a length of 2.

It is an array whose values are of the type number. It is read-only, it cannot be assigned to.


branch_angles

It will always have a length of 2.

It is an array whose values are of the type number. It is read-only, it cannot be assigned to.


branch_offset

It will always have a length of 2.

It is an array whose values are of the type number. It is read-only, it cannot be assigned to.


branch_size_percentage


max

height

It is of the type number. It is read-only, it cannot be assigned to.


width

It is of the type number. It is read-only, it cannot be assigned to.

It is read-only, it cannot be assigned to.


min

height

It is of the type number. It is read-only, it cannot be assigned to.


width

It is of the type number. It is read-only, it cannot be assigned to.

It is read-only, it cannot be assigned to.

It is read-only, it cannot be assigned to.


trunk_size


max

height

It is of the type number. It is read-only, it cannot be assigned to.


width

It is of the type number. It is read-only, it cannot be assigned to.

It is read-only, it cannot be assigned to.


min

height

It is of the type number. It is read-only, it cannot be assigned to.


width

It is of the type number. It is read-only, it cannot be assigned to.

It is read-only, it cannot be assigned to.

It is read-only, it cannot be assigned to.

It is read-only, it cannot be assigned to.


Water

Inherits the value of the planet's WaterLevel ~= nil. It is of the type boolean. It is read-only, it cannot be assigned to.

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 = {
read TreeSettings: {
read branch_size_percentage: {
read max: {
read height: number,
read width: number,
},
read min: {
read height: number,
read width: number,
},
},
read branch_angles: { number },
read trunk_size: {
read max: {
read height: number,
read width: number,
},
read min: {
read height: number,
read width: number,
},
},
read branch_offset: { number },
read amount_of_branches: { number },
read amount_of_splits: { number },
},
read Slopes: { number },
read Life: boolean,
read Water: boolean,
read Temperature: { number },
read Height: { number },
read RockDensity: { number },
read MountainDensity: { number },
read Roughness: { number },
}