Height provider

Helpers that build a minecraft:height_provider object, one for each of its types. Where a field takes one, write the helper's call; its name is the type it makes. Click a type to see what it accepts.

BiasedToBottom

BiasedToBottom

A random height from min_inclusive to max_inclusive, with low heights more likely.

BiasedToBottom(min_inclusive, max_inclusive, inner?)
min_inclusive
VerticalAnchor
max_inclusive
VerticalAnchor
inneroptional
int 1..

Constant

Constant

Always the same height.

Constant(value)
value
VerticalAnchor

Trapezoid

Trapezoid

A random height from min_inclusive to max_inclusive, most likely in the middle. Vanilla ores that peak at one depth use it.

Trapezoid(min_inclusive, max_inclusive, plateau?)
min_inclusive
VerticalAnchor
max_inclusive
VerticalAnchor
plateauoptional
int

Width of the most likely band in the middle. Defaults to 0, a triangle.

Uniform

Uniform

A random height from min_inclusive to max_inclusive, each equally likely.

Uniform(min_inclusive, max_inclusive)
min_inclusive
VerticalAnchor
max_inclusive
VerticalAnchor
PlacedFeature low_iron {
  feature = minecraft:ore_iron
  placement = [Count(10), InSquare(), HeightRange(Uniform(AboveBottom(0), Absolute(64)))]
}

VeryBiasedToBottom

VeryBiasedToBottom

Like BiasedToBottom, with low heights even more likely.

VeryBiasedToBottom(min_inclusive, max_inclusive, inner?)
min_inclusive
VerticalAnchor
max_inclusive
VerticalAnchor
inneroptional
int 1..

WeightedList

WeightedList

Picks one of several height providers by weight.

WeightedList(distribution)
distribution
NonEmptyWeightedList of HeightProvider