Float provider

Helpers that build a minecraft:float_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.

ClampedNormal

ClampedNormal

A number from a bell curve around mean, kept from min to max.

ClampedNormal(min, max, mean, deviation)
min
number 0..
max
number 0..
mean
number

The most likely value.

deviation
number

How widely values spread around mean.

Constant

Constant

Always the same number. A plain number does the same thing.

Constant(value)
value
number 0..

Trapezoid

Trapezoid

A number from min to max, most likely in a middle band plateau wide.

Trapezoid(min, max, plateau)
min
number 0..
max
number 0..
plateau
number

Uniform

Uniform

A random number from min_inclusive up to (not including) max_exclusive. Usually written as a range, 0.5..1.5.

Uniform(min_inclusive, max_exclusive)
min_inclusive
number 0..
max_exclusive
number 0..