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), andweighted_list(random value from a weighted list).- If
typeisconstant, additional fields are as follows:
- If
- [NBT Compound / JSON Object] value: The vertical anchor to use as constant height.
- Choices for a vertical anchor (must choose only one of the three) see Template:Nbt inherit/vertical anchor/template
- If
typeisuniform, additional fields are as follows:
- [NBT Compound / JSON Object] min_inclusive: The vertical anchor to use as minimum height.
- Choices for a vertical anchor (must choose only one of the three) see Template:Nbt inherit/vertical anchor/template
- [NBT Compound / JSON Object] max_inclusive: The vertical anchor to use as maximum height.
- Choices for a vertical anchor (must choose only one of the three) see Template:Nbt inherit/vertical anchor/template
- If
typeisbiased_to_bottomorvery_biased_to_bottom, additional fields are as follows:
- [NBT Compound / JSON Object] min_inclusive: The vertical anchor to use as minimum height.
- Choices for a vertical anchor (must choose only one of the three) see Template:Nbt inherit/vertical anchor/template
- [NBT Compound / JSON Object] max_inclusive: The vertical anchor to use as maximum height.
- Choices for a vertical anchor (must choose only one of the three) see Template:Nbt inherit/vertical anchor/template
- [Int] inner: (optional, defaults to 1). Value between 1 and
max_height - min_heightfrom anchors (inclusive). Graph below [Int] inner (inclusive) looks like a random distribution and above looks like an exponential distribution.very_biased_to_bottomwill have a sharper exponential distribution.- If
typeistrapezoid, additional fields are as follows:
- If
- [NBT Compound / JSON Object] min_inclusive: The vertical anchor to use as minimum height.
- Choices for a vertical anchor (must choose only one of the three) see Template:Nbt inherit/vertical anchor/template
- [NBT Compound / JSON Object] max_inclusive: The vertical anchor to use as maximum height.
- Choices for a vertical anchor (must choose only one of the three) see Template:Nbt inherit/vertical anchor/template
- [Int] plateau: (optional, defaults to 0) The length of the range in the middle of the trapezoid distribution that has a uniform distribution.
- If
typeisweighted_list, additional fields are as follows:
- If
- [NBT List / JSON Array] distribution: (Cannot be empty) A random weighted pool of height providers.
- [NBT Compound / JSON Object] One entry in the random pool.
- [Int] data: A height provider.
- Height provider see Template:Nbt inherit/height provider/template
- [Int] weight: The weight of this entry.
- [Int] data: A height provider.
- [NBT Compound / JSON Object] One entry in the random pool.
Sources
- Custom world generation/height provider — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3711827.