QtCraft API C++ classes QML types Handbook

QcTerrainSettings Struct

Settings of the terrain generator (worldgen/terrain.json): sea level, base blocks, caves, bedrock, rivers, deltas, the biome scale and the settings of dungeons, mine shafts, coastal towers and cold edges. More...

Header: #include <common/content/worldgen/QcWorldgenDefinitions.h>

Public Variables

QString bedrockBlock
int bedrockLayers
double biomeScale
double caveCavernThreshold
double caveEntrances
QString caveLiquidBlock
int caveLiquidLevel
int caveRoof
double caveTunnelWidth
bool caves
QcCoastalTowerSettings coastalTowers
QcColdEdgeSettings coldEdges
QString deltaBiome
double deltaShare
bool deltas
QcDungeonSettings dungeons
QcMineshaftSettings mineshafts
QString riverBiome
bool rivers
int seaLevel
QString stoneBlock
QString vegetationBiome
QString waterBlock

Static Public Members

const double maxBiomeScale
const double minBiomeScale

Detailed Description

A later pack replaces the whole object. Server side only.

Member Variable Documentation

QString QcTerrainSettings::bedrockBlock

The bottom layers' block ("bedrock"); empty: stoneBlock.

int QcTerrainSettings::bedrockLayers

Bedrock: the bottom layer is solid, the layers above it get thinner up to this many layers.

double QcTerrainSettings::biomeScale

Size of the biomes against the content's (decision E-917): the climate maps stretch by this factor, so 2 makes biomes and mountain chains about twice as wide; the coasts stay.

double QcTerrainSettings::caveCavernThreshold

Lower values make the open caverns larger (threshold on one noise field).

double QcTerrainSettings::caveEntrances

Share of the land, about, where caves may open to the surface.

QString QcTerrainSettings::caveLiquidBlock

Cave air at or below caveLiquidLevel is filled with this block ("caveLiquid"; lava lakes deep down); an empty block name keeps the caves dry.

int QcTerrainSettings::caveLiquidLevel

Highest cave cell filled with caveLiquidBlock ("caveLiquidLevel").

int QcTerrainSettings::caveRoof

Caves break through the ground only where an entrance noise allows it; elsewhere this many blocks of rock stay above them.

double QcTerrainSettings::caveTunnelWidth

Larger values make the spaghetti tunnels wider (threshold on two noise fields).

bool QcTerrainSettings::caves

Whether caves are carved ("caves").

QcCoastalTowerSettings QcTerrainSettings::coastalTowers

Towers on the coasts with a trapped chest at the top (decision E-605).

QcColdEdgeSettings QcTerrainSettings::coldEdges

Freezing by temperature and mixed ground at biome borders (decision E-858).

QString QcTerrainSettings::deltaBiome

The delta biome of land biomes that name none (decision E-850); empty: the first delta biome.

double QcTerrainSettings::deltaShare

The share of the wide river mouths that get a delta (0..1; decision E-850): deltas are rare.

bool QcTerrainSettings::deltas

River deltas (decision E-850): where wide rivers run through flat land into the sea; need rivers.

QcDungeonSettings QcTerrainSettings::dungeons

Dungeons with spawners and corridors to caves (decision E-522).

QcMineshaftSettings QcTerrainSettings::mineshafts

Mine shafts with levels, staircases, bridges and surface entrances (decision E-570).

QString QcTerrainSettings::riverBiome

The river biome of land biomes that name none (decision E-840); empty: the first river biome.

bool QcTerrainSettings::rivers

Rivers (decision E-840): winding channels down to the sea level through the land.

int QcTerrainSettings::seaLevel

Water fills the columns up to just below this height ("seaLevel").

QString QcTerrainSettings::stoneBlock

The ground's block below the soil ("stone", required).

QString QcTerrainSettings::vegetationBiome

Biome whose vegetation bone meal grows where the world generator names no biome (flat, showcase and void worlds; decision E-814); empty: none there.

QString QcTerrainSettings::waterBlock

The sea's block ("water", required).