Sable allows datapacks to specify custom physics parameters for any dimension via JSON files atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ryanhcode/sable/llms.txt
Use this file to discover all available pages before exploring further.
/data/<namespace>/dimension_physics/<name>.json. Multiple files can target the same dimension;
the one with the highest priority value wins. Sable’s built-in defaults all use priority 0,
so any datapack config overrides them automatically.
Fields
Resource location of the dimension this config applies to (e.g.
minecraft:overworld or
examplemod:moon).When multiple configs target the same dimension, the one with the highest priority wins.
Sable’s built-in defaults use priority
0, so datapack values take effect without any extra
configuration.Gravitational acceleration as a 3D vector in m/s². The default pulls straight down at 11 m/s².
You can set a non-vertical vector to simulate unusual gravitational fields.
Pressure multiplier applied uniformly across the entire dimension. Set to
0.0 for a vacuum.
If pressure_function is also defined, the two values combine.A list of bezier control points for altitude-based pressure variation. Omit this field for
uniform pressure at
base_pressure. Each point has three fields:altitude— y-level at which the point is anchored.value— pressure multiplier at that altitude.slope— rate of change of pressure at that altitude.
Flat drag coefficient applied to all motion in the dimension. Higher values slow objects down
more quickly.
Direction vector pointing toward magnetic north.
[0.0, 0.0, 0.0] means no magnetic field is
present in the dimension.Example
A moon dimension with lower gravity, no drag, and no air pressure:Built-in defaults
Sable generates physics configs for all three vanilla dimensions. These are shown below for reference with approximate values. All three usepriority: 0 so any datapack can override them.
The pressure_function in each config approximates an exponential pressure decay curve centered
around sea level. Underground pressure is clamped to at most 1.5, and there is a smooth 40-metre
drop-off near the build height limit where pressure falls to 0.0.
Overworld
Overworld
Nether
Nether
End
End
