Custom world generation/height provider

📌 Mirrored from Minecraft Wiki

This article is reproduced from Custom world generation/height provider on the Minecraft Wiki. Mirrored from revision 3711827. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.

    • Specifying a constant height:
    • Choices for a vertical anchor (must choose only one of the three) see Template:Nbt inherit/vertical anchor/template
    • Either specifying a constant height directly as above, or specifying the types and additional fields as below:
    • [String] type: The type of the height provider. One of constant (specify a constant height), uniform (random value in a uniform distribution), biased_to_bottom (random value, biased towards the bottom), very_biased_to_bottom (random value, stronger biased towards the bottom), trapezoid (random value, isosceles trapezoidal distribution), and weighted_list (random value from a weighted list).
      If type is constant, additional fields are as follows:
    • [NBT Compound / JSON Object] value: The vertical anchor to use as constant height.
      If type is uniform, additional fields are as follows:
    • [NBT Compound / JSON Object] min_inclusive: The vertical anchor to use as minimum height.
    • [NBT Compound / JSON Object] max_inclusive: The vertical anchor to use as maximum height.
      If type is biased_to_bottom or very_biased_to_bottom, additional fields are as follows:
    • [NBT Compound / JSON Object] min_inclusive: The vertical anchor to use as minimum height.
    • [NBT Compound / JSON Object] max_inclusive: The vertical anchor to use as maximum height.
    • [Int] inner: (optional, defaults to 1). Value between 1 and max_height - min_height from anchors (inclusive). Graph below [Int] inner (inclusive) looks like a random distribution and above looks like an exponential distribution. very_biased_to_bottom will have a sharper exponential distribution.
      If type is trapezoid, additional fields are as follows:
    • [NBT Compound / JSON Object] min_inclusive: The vertical anchor to use as minimum height.
    • [NBT Compound / JSON Object] max_inclusive: The vertical anchor to use as maximum height.
    • [Int] plateau: (optional, defaults to 0) The length of the range in the middle of the trapezoid distribution that has a uniform distribution.
      If type is weighted_list, additional fields are as follows:
    • [NBT List / JSON Array] distribution: (Cannot be empty) A random weighted pool of height providers.

Sources