Materials

Material by Density

Chooses between two materials using a density threshold.

material.density_split

Material by DensityThreshold0.0Lowstone ⏷Highminecraft:air ⏷DensityOutput

What it does

Paint patches with either of two materials. A density decides which side of the threshold each block falls on; it can be a separate noise rather than the field shaping your terrain.

Connect that field to Density, then choose Low and High. Move Threshold while looking at the material preview to change the balance. Put the result inside Material by Solidity if it should only paint solid ground.

Inputs and outputs

NameTypeDefaultWhat it changes
Inputs
DensityDensityThe field used to choose between the two materials.
LowMaterialstoneThe material used below the threshold.
HighMaterialminecraft:airThe material used at or above the threshold.
ThresholdReal0.0Higher values favour the lower material; equality chooses the upper material.
Output
OutputMaterialThe chosen material, including in empty terrain unless restricted.

Good to know

Leave room for the next rule

Choosing air is still a block choice and stops a Material Queue. Use Density Bands if the rule should make no choice outside a region.

See also