Seen from above at Y 64, 768 × 256 blocks · from the standard noise

Terrain

Subtract Densities

Subtracts density B from density A.

density.subtract

Subtract DensitiesAOutputB

What it does

Lower one field wherever another field is high. Subtract works on values, so it is useful for sinking a height field according to a second pattern.

Put the original height in A and the amount to remove in B. To turn a height into ground, subtract Y. To cut out a solid shape instead, use Minimum with that shape negated.

On noise

The same noise before and after this node, seen from above.

Before
After

In 3D

The same output in relief: each value becomes a height, coloured like the map above. Drag to look around.

Drag to look around · 256 × 256 blocks

Inputs and outputs

NameTypeDefaultWhat it changes
Inputs
ADensityThe density you want to subtract from.
BDensityThe density to take away; higher values lower the result further.
Output
OutputDensityThe first density minus the second at every position.

See also