-
Notifications
You must be signed in to change notification settings - Fork 15
Density Function Types
Apollo edited this page Apr 22, 2026
·
4 revisions
The listed density functions compute their respective mathematical functions.
{
"type": "lithostitched:sin",
"argument": 5
}-
argument: The input density function.
The axis density function computes the current position on the given axis.
{
"type": "lithostitched:axis",
"axis": "x"
}-
axis: The axis to get the position from.
The mix density function smoothly transitions between argument1 and argument2 using input as the delta between them.
{
"type": "lithostitched:mix",
"input": "minecraft:overworld/depth",
"argument1": "something:on_the_surface",
"argument2": "something:deep_underground"
}-
input: The input argument.- If computes to (-∞,0], returns
argument1 - If computes to [1,∞), returns
argument2
- If computes to (-∞,0], returns
The shift density function shifts the computed position
{
"type": "lithostitched:shift",
"input": "minecraft:overworld/depth",
"shift_x": 15,
"shift_y": 0,
"shift_z": 15
}-
input: The input argument. -
shift_?: The density function to shift theinputby on the?axis.
The select density function selects a density function to compute based on the given input function
{
"type": "lithostitched:select",
"input": "minecraft:overworld/depth",
"fallback": 0,
"selections": [
{
"range": [
-2,
-1
],
"function": "my_mod:high_skies"
},
{
"range": [
1,
2
],
"function": "my_mod:deep_depths"
}
]
}-
input: The input density function. -
fallback: The fallback density function to compute if no objects inselectionsmatch. -
selections: A list of selection objects.-
range: The double range (e.g.0.1,[-0.1,0.1]) theinputoutput must resolve to in order to select this object'sfunction. -
function: The density function to compute if the selection is chosen.
-
The fast_noise density function samples a fast noise config object.
{
"type": "lithostitched:fast_noise",
"config": "lithostitched:region/overworld",
"xz_scale": 1,
"y_scale": 0,
"shift_x": "lithostitched:region/shift_x",
"shift_z": "lithostitched:region/shift_z"
}-
config: The fast noise config to sample. -
xz_scale: The scale of the noise on the x and z-axes, as a double. Defaults to 1. -
y_scale: The scale of the noise on the y-axis, as a double. Defaults to 1. -
shift_?: The shift on the?axis, as a density function. Defaults to a constant 0.
All json here can be generated using the Lithostitched generator website!