Minecraft:Density function: Difference between revisions
More actions
Sync: updated from Minecraft |
Sync: updated from Minecraft |
||
| Line 39: | Line 39: | ||
=== {{cd|cache_once}} === | === {{cd|cache_once}} === | ||
Renamed to {{cd|cache}}. | Renamed to {{cd|cache}}. If this density function is referenced twice, it is only computed once per block position. | ||
<div class="treeview"> | <div class="treeview"> | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>cache_once</code>{{until|JE 26.3}} / <code>cache</code> | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>cache_once</code>{{until|JE 26.3}} / <code>cache</code>). | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input}}: {{json ref/density function}} — The input to be cached. | ||
</div> | </div> | ||
| Line 60: | Line 60: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>interpolated</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>interpolated</code>). | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input}}: {{json ref/density function}} — The input to be interpolated. | ||
** {{nbt|int|cell_size_xz | ** {{nbt|int|cell_size_xz}}: Size in blocks of the interpolation grid cells on the X and Z axes. The number must not be negative. | ||
** {{nbt|int|cell_size_y | ** {{nbt|int|cell_size_y}}: Size in blocks of the interpolation grid cells on the Y axis. The number must not be negative. | ||
</div> | </div> | ||
| Line 76: | Line 76: | ||
** {{Nbt|double|xz_scale}}: Scales the X and Z before sampling. | ** {{Nbt|double|xz_scale}}: Scales the X and Z before sampling. | ||
** {{Nbt|double|y_scale}}: Scales the Y before sampling. | ** {{Nbt|double|y_scale}}: Scales the Y before sampling. | ||
** {{nbt|double|shift_x | ** {{nbt|double|shift_x}}: Optional; A domain warp to apply on X. If not specified, no warping will be applied (equivalent to 0). | ||
** {{nbt|double|shift_y | ** {{nbt|double|shift_y}}: Optional; A domain warp to apply on Y. If not specified, no warping will be applied (equivalent to 0). | ||
** {{nbt|double|shift_z | ** {{nbt|double|shift_z}}: Optional; A domain warp to apply on Z. If not specified, no warping will be applied (equivalent to 0). | ||
</div> | </div> | ||
| Line 98: | Line 98: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>shift</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>shift</code>). | ||
** {{Nbt|string|argument}}{{until|JE 26.3}} / {{nbt|string|noise | ** {{Nbt|string|argument}}{{until|JE 26.3}} / {{nbt|string|noise}}: {{json ref|noise|Custom noise}} — The noise to sample. | ||
</div> | </div> | ||
| Line 106: | Line 106: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>shift_a</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>shift_a</code>). | ||
** {{Nbt|string|argument}}{{until|JE 26.3}} / {{nbt|string|noise | ** {{Nbt|string|argument}}{{until|JE 26.3}} / {{nbt|string|noise}}: {{json ref|noise|Custom noise}} — The noise to sample. | ||
</div> | </div> | ||
| Line 114: | Line 114: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>shift_b</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>shift_b</code>). | ||
** {{Nbt|string|argument}}{{until|JE 26.3}} / {{nbt|string|noise | ** {{Nbt|string|argument}}{{until|JE 26.3}} / {{nbt|string|noise}}: {{json ref|noise|Custom noise}} — The noise to sample. | ||
</div> | </div> | ||
| Line 139: | Line 139: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>abs</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>abs</code>). | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input}}: {{json ref/density function}} — The input of the calculation. | ||
</div> | </div> | ||
| Line 147: | Line 147: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>add</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>add</code>). | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument1}}{{until|JE 26.3}} / {{nbt|double|left | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument1}}{{until|JE 26.3}} / {{nbt|double|left}}: {{json ref/density function}} — The first input of the calculation. | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument2}}{{until|JE 26.3}} / {{nbt|double|right | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument2}}{{until|JE 26.3}} / {{nbt|double|right}}: {{json ref/density function}} — The second input of the calculation. | ||
</div> | </div> | ||
=== {{cd|ceil}} === | === {{cd|ceil}} === | ||
Rounds the input value to positive infinity. | Rounds the input value to positive infinity. | ||
<div class="treeview"> | <div class="treeview"> | ||
| Line 176: | Line 176: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>constant</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>constant</code>). | ||
** {{Nbt|double|argument}}{{until|JE 26.3}} / {{nbt|double|value | ** {{Nbt|double|argument}}{{until|JE 26.3}} / {{nbt|double|value}}: A constant value. Value between −1000000.0 and 1000000.0 (both inclusive). | ||
</div> | </div> | ||
| Line 184: | Line 184: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>cube</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>cube</code>). | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input}}: {{json ref/density function}} — The input of the calculation. | ||
</div> | </div> | ||
=== {{cd|div}} === | === {{cd|div}} === | ||
Performs division between two arguments. | Performs division between two arguments. | ||
<div class="treeview"> | <div class="treeview"> | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
| Line 197: | Line 197: | ||
=== {{cd|floor}} === | === {{cd|floor}} === | ||
Rounds the input value to negative infinity. | Rounds the input value to negative infinity. | ||
<div class="treeview"> | <div class="treeview"> | ||
| Line 207: | Line 207: | ||
=== {{cd|invert}} === | === {{cd|invert}} === | ||
Renamed to {{cd|reciprocal}}. | Renamed to {{cd|reciprocal}}. | ||
Inverts the input (<code>1/x</code>). | Inverts the input (<code>1/x</code>). | ||
<div class="treeview"> | <div class="treeview"> | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>invert</code>{{until|JE 26.3}} / <code>reciprocal</code> | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>invert</code>{{until|JE 26.3}} / <code>reciprocal</code>). | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}: {{json ref/density function}} — The input of the calculation. | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}: {{json ref/density function}} — The input of the calculation. | ||
</div> | </div> | ||
=== {{cd|log}} === | === {{cd|log}} === | ||
Computes the natural logarithm of the given input. | Computes the natural logarithm of the given input. | ||
<div class="treeview"> | <div class="treeview"> | ||
| Line 229: | Line 229: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>mul</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>mul</code>). | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument1}}{{until|JE 26.3}} / {{nbt|double|left | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument1}}{{until|JE 26.3}} / {{nbt|double|left}}: {{json ref/density function}} — The first input of the calculation. | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument2}}{{until|JE 26.3}} / {{nbt|double|right | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument2}}{{until|JE 26.3}} / {{nbt|double|right}}: {{json ref/density function}} — The second input of the calculation. | ||
</div> | </div> | ||
| Line 238: | Line 238: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>min</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>min</code>). | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument1}}{{until|JE 26.3}} / {{nbt|double|left | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument1}}{{until|JE 26.3}} / {{nbt|double|left}}: {{json ref/density function}} — The first input of the calculation. | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument2}}{{until|JE 26.3}} / {{nbt|double|right | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument2}}{{until|JE 26.3}} / {{nbt|double|right}}: {{json ref/density function}} — The second input of the calculation. | ||
</div> | </div> | ||
| Line 247: | Line 247: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>max</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>max</code>). | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument1}}{{until|JE 26.3}} / {{nbt|double|left | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument1}}{{until|JE 26.3}} / {{nbt|double|left}}: {{json ref/density function}} — The first input of the calculation. | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument2}}{{until|JE 26.3}} / {{nbt|double|right | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument2}}{{until|JE 26.3}} / {{nbt|double|right}}: {{json ref/density function}} — The second input of the calculation. | ||
</div> | </div> | ||
=== {{cd|negate}} === | === {{cd|negate}} === | ||
Negates the input. | Negates the input. | ||
<div class="treeview"> | <div class="treeview"> | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
| Line 260: | Line 260: | ||
=== {{cd|pow}} === | === {{cd|pow}} === | ||
Raises the given base value to an exponent. | Raises the given base value to an exponent. | ||
<div class="treeview"> | <div class="treeview"> | ||
| Line 270: | Line 270: | ||
=== {{cd|round}} === | === {{cd|round}} === | ||
Rounds the input value to to the nearest integer (ties round up). | Rounds the input value to to the nearest integer (ties round up). | ||
<div class="treeview"> | <div class="treeview"> | ||
| Line 280: | Line 280: | ||
=== {{cd|sub}} === | === {{cd|sub}} === | ||
Performs subtraction between two arguments. | Performs subtraction between two arguments. | ||
<div class="treeview"> | <div class="treeview"> | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
| Line 289: | Line 289: | ||
=== {{cd|sign}} === | === {{cd|sign}} === | ||
Computes the sign of the given input. If positive, it returns as 1. If the input is 0, it returns 0. If negative, it returns as -1. | Computes the sign of the given input. If positive, it returns as 1. If the input is 0, it returns 0. If negative, it returns as -1. | ||
<div class="treeview"> | <div class="treeview"> | ||
| Line 298: | Line 298: | ||
=== {{cd|sqrt}} === | === {{cd|sqrt}} === | ||
Computes the square root of the given input. | Computes the square root of the given input. | ||
<div class="treeview"> | <div class="treeview"> | ||
| Line 311: | Line 311: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>square</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>square</code>). | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input}}: {{json ref/density function}} — The input of the calculation. | ||
</div> | </div> | ||
=== {{cd|truncate}} === | === {{cd|truncate}} === | ||
Rounds the input value to 0. | Rounds the input value to 0. | ||
<div class="treeview"> | <div class="treeview"> | ||
| Line 328: | Line 328: | ||
=== {{cd|gradient}} === | === {{cd|gradient}} === | ||
[[File:Gradient tiling.png|thumb|Demonstration of the different tiling options for the {{cd|gradient}} density function | [[File:Gradient tiling.png|thumb|Demonstration of the different tiling options for the {{cd|gradient}} density function, using both an input range of -100 to 100 and an output range of -1 to 1.]] | ||
Clamps the given coordinate and maps the gradient to a range. | Clamps the given coordinate and maps the gradient to a range. | ||
<div class="treeview"> | <div class="treeview"> | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
| Line 338: | Line 338: | ||
*** <code>repeat</code>: The gradient will be repeated outside its boundaries. | *** <code>repeat</code>: The gradient will be repeated outside its boundaries. | ||
*** <code>mirrored_repeat</code>: The gradient will be repeated as such that odd repetitions are mirrored, ensuring continuity between repetitions. | *** <code>mirrored_repeat</code>: The gradient will be repeated as such that odd repetitions are mirrored, ensuring continuity between repetitions. | ||
** {{nbt|int|from_coordinate | ** {{nbt|int|from_coordinate}}: The coordinate at which the gradient starts. | ||
** {{nbt|int|to_coordinate}}: The coordinate at which the gradient ends. It must not equal {{cd|from_coordinate}}. | ** {{nbt|int|to_coordinate}}: The coordinate at which the gradient ends. It must not equal {{cd|from_coordinate}}. | ||
** {{nbt|float|from_value}}: The value at which the gradient starts. | ** {{nbt|float|from_value}}: The value at which the gradient starts. | ||
| Line 345: | Line 345: | ||
=== {{cd|lerp}} === | === {{cd|lerp}} === | ||
Performs (unclamped) linear interpolation between two arguments based on an alpha. | Performs (unclamped) linear interpolation between two arguments based on an alpha. The returned value is: <code>first*(1-alpha) + second*alpha</code> | ||
<div class="treeview"> | <div class="treeview"> | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
| Line 359: | Line 359: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>squeeze</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>squeeze</code>). | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input}}: {{json ref/density function}} — The input of the calculation. | ||
</div> | </div> | ||
| Line 377: | Line 377: | ||
=== {{cd|y_clamped_gradient}} === | === {{cd|y_clamped_gradient}} === | ||
Replaced with {{cd|gradient}}. | Replaced with {{cd|gradient}}. | ||
Clamps the Y coordinate between <code>from_y</code> and <code>to_y</code> and then linearly maps it to a range.{{until|JE 26.3}} | Clamps the Y coordinate between <code>from_y</code> and <code>to_y</code> and then linearly maps it to a range.{{until|JE 26.3}} | ||
| Line 397: | Line 397: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>half_negative</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>half_negative</code>). | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input}}: {{json ref/density function}} — The input of the calculation. | ||
</div> | </div> | ||
| Line 419: | Line 419: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>quarter_negative</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>quarter_negative</code>). | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input}}: {{json ref/density function}} — The input of the calculation. | ||
</div> | </div> | ||
| Line 454: | Line 454: | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>blend_density</code>). | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>blend_density</code>). | ||
** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input | ** {{Nbt|string}}{{Nbt|double}}{{Nbt|compound|argument}}{{until|JE 26.3}} / {{nbt|double|input}}: {{json ref/density function}} — The desired density of new chunks. | ||
</div> | </div> | ||
| Line 465: | Line 465: | ||
=== {{cd|distance_to_point}} === | === {{cd|distance_to_point}} === | ||
[[File:Distance to point options.png|thumb|Demonstration of the different metric options for the {{cd|distance_to_point}} density function | [[File:Distance to point options.png|thumb|Demonstration of the different metric options for the {{cd|distance_to_point}} density function, using the distance from the point (0, 0).]] | ||
Computes the distance to a fixed point using the specified distance function. | Computes the distance to a fixed point using the specified distance function. | ||
<div class="treeview"> | <div class="treeview"> | ||
| Line 480: | Line 480: | ||
=== {{cd|end_islands}} === | === {{cd|end_islands}} === | ||
Renamed to {{cd|end_outer_islands}}. | Renamed to {{cd|end_outer_islands}}. | ||
Samples at current position using a noise algorithm used for end islands. Its minimum value is −0.84375 and its maximum value is 0.5625. | Samples at current position using a noise algorithm used for end islands. Its minimum value is −0.84375 and its maximum value is 0.5625. | ||
<div class="treeview"> | <div class="treeview"> | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>end_islands</code>{{until|JE 26.3}} / <code>end_outer_islands</code> | ** {{Nbt|string|type}}: The ID of the density function type (in this case, <code>end_islands</code>{{until|JE 26.3}} / <code>end_outer_islands</code>). | ||
</div> | </div> | ||
| Line 499: | Line 499: | ||
=== {{cd|ore_vein}} === | === {{cd|ore_vein}} === | ||
<div class="treeview"> | <div class="treeview"> | ||
* {{nbt|compound}}: Root object. | * {{nbt|compound}}: Root object. | ||
| Line 513: | Line 513: | ||
=== {{cd|slice}} === | === {{cd|slice}} === | ||
Removes a dimension from the input domain by taking a "slice" along an axis with a specific coordinate (e.g. with the axis equaling y and the coordinate of 0, a slice will be taken along the XZ plane, with all values sampled at y=0). | Removes a dimension from the input domain by taking a "slice" along an axis with a specific coordinate (e.g. with the axis equaling y and the coordinate of 0, a slice will be taken along the XZ plane, with all values sampled at y=0). | ||
<div class="treeview"> | <div class="treeview"> | ||
| Line 607: | Line 607: | ||
|{{HistoryLine||26.2|dev=snap1|Density function {{cd|minecraft:clamp}} can now take a density function ID as an input.}} | |{{HistoryLine||26.2|dev=snap1|Density function {{cd|minecraft:clamp}} can now take a density function ID as an input.}} | ||
|{{HistoryLine|||dev=snap5|Added density function {{cd|minecraft:interval_select}}.|Removed density function {{cd|minecraft:weird_scale_sampler}}. Its functionality has been replaced with {{cd|interval_select}}.}} | |{{HistoryLine|||dev=snap5|Added density function {{cd|minecraft:interval_select}}.|Removed density function {{cd|minecraft:weird_scale_sampler}}. Its functionality has been replaced with {{cd|interval_select}}.}} | ||
|{{HistoryLine||26.3|dev=snap4|Added the following density functions: | |{{HistoryLine||26.3|dev=snap4|Added the following density functions: | ||
* {{cd|ceil}} | * {{cd|ceil}} | ||
Revision as of 11:17, 16 September 2026
Template:Exclusive
Density functions make up mathematical expressions to obtain a number from a position, stored as Minecraft:JSON files within a Minecraft:data pack in the path data/<namespace>/worldgen/density_function. They are referenced from the Minecraft:noise router in Minecraft:noise settings.
JSON format
A density function can be a constant number or an object.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type.
- Other additional fields depend on the value of Template:Nbt, described below.
If the Template:Nbt is constant, a shorthand format is:
- Template:Nbt: A constant number. Value between −1000000.0 and 1000000.0 (both inclusive).
Marker functions
Template:Cd
Template:Until Only computes the input density once per horizontal position.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
cache_2d). - Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function — The input to be cached.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Template:Until
Used by the game onto final_density and should not be referenced in data packs.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
cache_all_in_cell). - Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function — The input to be cached.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Renamed to Template:Cd. If this density function is referenced twice, it is only computed once per block position.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
cache_onceTemplate:Until /cache). - Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The input to be cached.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Template:Until
Calculate the value per 4×4 column (Value at each block in one column is the same). And it is calculated only once per column, at Y=0. Used often in combination with interpolated.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
flat_cache). - Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function — The input to be cached.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Interpolates at each block in one cell based on the input density function value of some cells around. The size of each cell is size_horizontal * 4 and size_vertical * 4. Used often in combination with flat_cache.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
interpolated). - Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The input to be interpolated.
- Template:Nbt: Size in blocks of the interpolation grid cells on the X and Z axes. The number must not be negative.
- Template:Nbt: Size in blocks of the interpolation grid cells on the Y axis. The number must not be negative.
- Template:Nbt: The ID of the density function type (in this case,
Noise sampling functions
These density functions are used to sample noises.
Template:Cd
Samples a noise.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
noise). - Template:Nbt: Template:Json ref — The noise to sample.
- Template:Nbt: Scales the X and Z before sampling.
- Template:Nbt: Scales the Y before sampling.
- Template:Nbt: Optional; A domain warp to apply on X. If not specified, no warping will be applied (equivalent to 0).
- Template:Nbt: Optional; A domain warp to apply on Y. If not specified, no warping will be applied (equivalent to 0).
- Template:Nbt: Optional; A domain warp to apply on Z. If not specified, no warping will be applied (equivalent to 0).
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Samples a legacy noise. Template:Info needed
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
old_blended_noise). - Template:Nbt: Value between 0.001 and 1000.0 (both inclusive).
- Template:Nbt: Value between 0.001 and 1000.0 (both inclusive).
- Template:Nbt: Value between 0.001 and 1000.0 (both inclusive).
- Template:Nbt: Value between 0.001 and 1000.0 (both inclusive).
- Template:Nbt: Value between 1.0 and 8.0 (both inclusive).
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Samples a noise at (x/4, y/4, z/4), then multiplies it by 4.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
shift). - Template:NbtTemplate:Until / Template:Nbt: Template:Json ref — The noise to sample.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Samples a noise at (x/4, 0, z/4), then multiplies it by 4.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
shift_a). - Template:NbtTemplate:Until / Template:Nbt: Template:Json ref — The noise to sample.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Samples a noise at (z/4, x/4, 0), then multiplies it by 4.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
shift_b). - Template:NbtTemplate:Until / Template:Nbt: Template:Json ref — The noise to sample.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Template:Until
Similar to noise, but first shifts the input coordinates.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
shifted_noise). - Template:Nbt: Template:Json ref — The noise to sample.
- Template:Nbt: Scales the X and Z before sampling.
- Template:Nbt: Scales the Y before sampling.
- Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function — offset of the position in the X direction.
- Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function — offset of the position in the Y direction.
- Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function — offset of the position in the Z direction.
- Template:Nbt: The ID of the density function type (in this case,
Mathematical density functions
These density functions are used to perform mathematical operations.
Template:Cd
Calculates the absolute value of the input density function.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
abs). - Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The input of the calculation.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Adds two density functions together.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
add). - Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The first input of the calculation.
- Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The second input of the calculation.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Rounds the input value to positive infinity.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
ceil). - Template:NbtTemplate:NbtTemplate:Nbt: Density Function to round.
- Template:NbtTemplate:NbtTemplate:Nbt: The output will be rounded to an integer multiple of the value returned by this Density Function. If not specified, defaults to a constant 1.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Clamps the input between two values.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
clamp). - Template:NbtTemplate:NbtTemplate:Nbt: One density function — The input to clamp.
- Template:Nbt: The lower bound. Value between −1000000.0 and 1000000.0 (both inclusive).
- Template:Nbt: The upper bound. Value between −1000000.0 and 1000000.0 (both inclusive).
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
A constant value.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
constant). - Template:NbtTemplate:Until / Template:Nbt: A constant value. Value between −1000000.0 and 1000000.0 (both inclusive).
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Cubes the input (x^3).
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
cube). - Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The input of the calculation.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Performs division between two arguments.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
div). - Template:NbtTemplate:NbtTemplate:Nbt — The left-hand side of the operation.
- Template:NbtTemplate:NbtTemplate:Nbt — The right-hand side of the operation.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Rounds the input value to negative infinity.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
floor). - Template:NbtTemplate:NbtTemplate:Nbt: Density Function to round.
- Template:NbtTemplate:NbtTemplate:Nbt: The output will be rounded to an integer multiple of the value returned by this Density Function. If not specified, defaults to a constant 1.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Renamed to Template:Cd.
Inverts the input (1/x).
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
invertTemplate:Until /reciprocal). - Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function — The input of the calculation.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Computes the natural logarithm of the given input.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
log). - Template:NbtTemplate:NbtTemplate:Nbt: Density Function for which to compute the natural logarithm.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Multiplies two inputs.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
mul). - Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The first input of the calculation.
- Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The second input of the calculation.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Returns the minimum of two inputs.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
min). - Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The first input of the calculation.
- Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The second input of the calculation.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Returns the maximum of two inputs.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
max). - Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The first input of the calculation.
- Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The second input of the calculation.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Negates the input.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
negate). - Template:NbtTemplate:NbtTemplate:Nbt: Density Function to negate.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Raises the given base value to an exponent.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
pow). - Template:NbtTemplate:NbtTemplate:Nbt: the base value (Density Function).
- Template:NbtTemplate:NbtTemplate:Nbt: the exponent (Density Function).
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Rounds the input value to to the nearest integer (ties round up).
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
round). - Template:NbtTemplate:NbtTemplate:Nbt: Density Function to round.
- Template:NbtTemplate:NbtTemplate:Nbt: The output will be rounded to an integer multiple of the value returned by this Density Function. If not specified, defaults to a constant 1.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Performs subtraction between two arguments.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
sub). - Template:NbtTemplate:NbtTemplate:Nbt — The left-hand side of the operation.
- Template:NbtTemplate:NbtTemplate:Nbt — The right-hand side of the operation.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Computes the sign of the given input. If positive, it returns as 1. If the input is 0, it returns 0. If negative, it returns as -1.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
sign). - Template:NbtTemplate:NbtTemplate:Nbt: Density Function for which to compute the sign.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Computes the square root of the given input.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
sqrt). - Template:NbtTemplate:NbtTemplate:Nbt: Density Function for which to compute the square root.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Squares the input. (x^2)
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
square). - Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The input of the calculation.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Rounds the input value to 0.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
truncate). - Template:NbtTemplate:NbtTemplate:Nbt: Density Function to round.
- Template:NbtTemplate:NbtTemplate:Nbt: The output will be rounded to an integer multiple of the value returned by this Density Function. If not specified, defaults to a constant 1.
- Template:Nbt: The ID of the density function type (in this case,
Mapped density functions
These density functions map a set of values onto another set of values.
Template:Cd
Clamps the given coordinate and maps the gradient to a range.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
gradient). - Template:Nbt: Template:Cd, Template:Cd. or Template:Cd: The axis over which to define the gradient .
- Template:Nbt: How the density function handles values outside the specified coordinate range. 3 options:
clamp_to_edge: outside the gradient boundaries, the value at the nearest boundary will be used.repeat: The gradient will be repeated outside its boundaries.mirrored_repeat: The gradient will be repeated as such that odd repetitions are mirrored, ensuring continuity between repetitions.
- Template:Nbt: The coordinate at which the gradient starts.
- Template:Nbt: The coordinate at which the gradient ends. It must not equal Template:Cd.
- Template:Nbt: The value at which the gradient starts.
- Template:Nbt: The value at which the gradient ends.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Performs (unclamped) linear interpolation between two arguments based on an alpha. The returned value is: first*(1-alpha) + second*alpha
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
lerp). - Template:NbtTemplate:NbtTemplate:Nbt: Density function representing the interpolation factor (e.g. 0 = first, 1 = second). Any value outside of Template:Cd will extrapolate.
- Template:NbtTemplate:NbtTemplate:Nbt: Density Function to use at Template:Cd.
- Template:NbtTemplate:NbtTemplate:Nbt: Density Function to use at Template:Cd.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
First clamps the input between −1 and 1, then transforms it using x/2 - x*x*x/24.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
squeeze). - Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The input of the calculation.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Computes a cubic spline.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
spline). - Template:NbtTemplate:Nbt: The spline. Can be either a number or an object.
- Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function — Input determining the location on the spline.
- Template:Nbt: (Cannot be empty) List of points of the cubic spline.
- Template:Nbt: A point of the cubic spline.
- Template:Nbt: The location of this point.
- Template:NbtTemplate:Nbt: The value of this point. Can be either a number or a spline object.
- Template:Nbt: The slope at this point.
- Template:Nbt: A point of the cubic spline.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Replaced with Template:Cd.
Clamps the Y coordinate between from_y and to_y and then linearly maps it to a range.Template:Until
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
y_clamped_gradient). - Template:Nbt: The value to be mapped to
from_value. Value between −4064 and 4062 (both inclusive). - Template:Nbt: The value to be mapped to
to_value. Value between −4064 and 4062 (both inclusive). - Template:Nbt: The value to map
from_yto. Value between −1000000.0 and 1000000.0 (both inclusive). - Template:Nbt: The value to map
to_yto. Value between −1000000.0 and 1000000.0 (both inclusive).
- Template:Nbt: The ID of the density function type (in this case,
Conditional density functions
These density functions are used to apply "if-then" logic.
Template:Cd
If the input is negative, returns half of the input. Otherwise returns the input. (x < 0 ? x/2 : x)
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
half_negative). - Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The input of the calculation.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Selects between a number of density functions based on an input density function and a set of threshold values.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
interval_select). - Template:NbtTemplate:NbtTemplate:Nbt: Density Function to be compared with any given Template:Cd.
- Template:Nbt: (List of Floats) The threshold values to compare Template:Cd with.
- If the input value is less than the threshold values, the result of Template:Cd will be selected.
- If the input value is greater than the last threshold value, the last function will be selected.
- There must be one fewer Template:Cd than Template:Cd.
- Template:Nbt: The resulting functions (at least two) to be selected from.
- There must be one more element in Template:Cd than Template:Cd.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
If the input is negative, returns a quarter of the input. Otherwise returns the input. (x < 0 ? x/4 : x)
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
quarter_negative). - Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The input of the calculation.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Computes the input value, and depending on that result returns one of two other density functions. Basically an if-then-else statement.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
range_choice). - Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function — The value to compare
- Template:Nbt: The lower bound of the range. Value between −1000000.0 and 1000000.0 (both inclusive).
- Template:Nbt: The upper bound of the range. Value between −1000000.0 and 1000000.0 (both inclusive).
- Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function — Used when the input is inside the range.
- Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function — Used when the input is outside the range.
- Template:Nbt: The ID of the density function type (in this case,
Other density functions
Template:Cd
Adds beards for structures (see the terrain_adaptation field in structures). Its value is added to the final_density in noise setting by the game. Should not be referenced in data packs.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
beardifier).
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Used in vanilla for smooth transition to chunks generated in old versions.Template:Info needed
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
blend_alpha).
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Used in vanilla for smooth transition to chunks generated in old versions.Template:Info needed
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
blend_density). - Template:NbtTemplate:NbtTemplate:NbtTemplate:Until / Template:Nbt: Template:Json ref/density function — The desired density of new chunks.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Used in vanilla for smooth transition to chunks generated in old versions.Template:Info needed
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
blend_offset).
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Computes the distance to a fixed point using the specified distance function.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
distance_to_point). - Template:Nbt: Template:Cd; the point to compute distance to
- Template:Nbt:
- Template:Nbt: (i.e. Template:Cd)
- Template:Nbt: (i.e. Template:Cd)
- Template:Nbt: (i.e. Template:Cd)
- Template:Nbt: (i.e. Template:Cd)
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Renamed to Template:Cd. Samples at current position using a noise algorithm used for end islands. Its minimum value is −0.84375 and its maximum value is 0.5625.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
end_islandsTemplate:Until /end_outer_islands).
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Scans through a column of an input density and returns the topmost y-level that is above 0. If no such position exists within the bounds, the Template:Nbt is returned.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
find_top_surface). - Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function — The density function to scan.
- Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function — The y-level to start the scan at. Usually a 2D density function.
- Template:Nbt: The y-level to stop the scan.
- Template:Nbt: The resolution of the scan. E.g. if set to
4, then only every 4th block is checked.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
ore_vein). - Template:Nbt: The ore block to place.
- Template:Nbt: The raw ore block to place.
- Template:Nbt: The filler block to place.
- Template:Nbt: The probability for a raw ore block to be placed instead of an ore block. Value between 0 and 1 (inclusive).
- Template:Nbt: The probability for the ore vein to replace a block. If the value is 0 or lower, no block will be replaced.
- Template:Nbt: The probability for an ore block or a raw ore block to be placed, as opposed to Template:Cd. If the value is 0 or lower, all blocks will be the filler block. If the value is 1 or greater, no blocks will be the filler block.
- Template:Nbt: Overrides Template:Cd; if the value is positive, Template:Cd will always be placed.
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Removes a dimension from the input domain by taking a "slice" along an axis with a specific coordinate (e.g. with the axis equaling y and the coordinate of 0, a slice will be taken along the XZ plane, with all values sampled at y=0).
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
slice). - Template:Nbt: Template:Cd, Template:Cd, or Template:Cd; the axis to remove.
- Template:Nbt: The fixed coordinate to be passed to the input function.
- Template:NbtTemplate:NbtTemplate:Nbt: The input function.
- Template:Nbt: The ID of the density function type (in this case,
Removed density functions
Template:Cd
Removed in Minecraft:22w12a
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
slide). - Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function
- Template:Nbt: The ID of the density function type (in this case,
The legacy "spline"
Removed in Minecraft:22w11a
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
spline). - Template:NbtTemplate:Nbt: The spline. Can be either a number or an object.
- Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function — Input determining the location on the spline.
- Template:Nbt: (Cannot be empty) List of points of the cubic spline.
- Template:Nbt: The location of this point.
- Template:NbtTemplate:Nbt: The value of this point. Can be either a number or a spline object.
- Template:Nbt: The slope at this point.
- Template:Nbt: The min value of the output. Value between −1000000.0 and 1000000.0 (both inclusive).
- Template:Nbt: The max value of the output. Value between −1000000.0 and 1000000.0 (both inclusive).
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Removed in Minecraft:22w11a
Calculate the spline from the noise settings.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
terrain_shaper_spline). - Template:Nbt: Can be
offset,factor, orjaggedness. - Template:Nbt: The min value of the output. Value between −1000000.0 and 1000000.0 (both inclusive).
- Template:Nbt: The max value of the output. Value between −1000000.0 and 1000000.0 (both inclusive).
- Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function
- Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function
- Template:NbtTemplate:NbtTemplate:Nbt: Template:Json ref/density function
- Template:Nbt: The ID of the density function type (in this case,
Template:Cd
Removed in Minecraft:26.2-snap5
According to the input value, scales and enhances (or weakens) some regions of the specified noise, and then returns the absolute value.
- Template:Nbt: Root object.
- Template:Nbt: The ID of the density function type (in this case,
weird_scaled_sampler). - Template:Nbt: Can be
type_1(The minimum scale is 0.75, and the maximum is 2.0)ortype_2(The minimum scale is 0.5, and the maximum is 3.0.) - Template:Nbt: Template:Json ref — The noise to sample.
- Template:NbtTemplate:NbtTemplate:Nbt: The input density function. Can be an ID of a density function, or a density function in the form of a JSON object or a constant number.
- Template:Nbt: The ID of the density function type (in this case,
History
Issues
References
External links
Template:Navbox Java Edition technical
Minecraft:de:Dichtefunktion Minecraft:fr:Fonction de densité Minecraft:ko:밀도 함수 Minecraft:pt:Função de densidade Minecraft:zh:密度函数