Wiki ArticleJava EditionNeeds updatingInformation neededData packs

Density function

Density functions make up mathematical expressions to obtain a number from a position, stored as JSON files within a data pack in the path data/<namespace>/worldgen/density_function. They are referenced from the noise router in noise settings.

A density function can be a constant number or an object.

If the [String]&#160;type is constant, a shorthand format is:

Complete article available

This cached Wiki page is unusually large, so it is loaded on demand to keep the initial page fast.