Skip to content

How structure checks work

Faboslav edited this page Oct 21, 2026 · 1 revision

Structurify adds several checks to the structure generation, which decide whenever the structure is generated or not. This page explains when the checks run and in which order, which is useful when configuring them or debugging the structure generation.

Placement checks

These checks run when the game decides where the structure should be placed, before the structure layout is generated.

  1. Disabled structures and structure sets: Disabled structures and structure sets are skipped entirely.
  2. Structure set spread: Spacing, separation, salt and frequency of the structure set decide the position of the structure.
  3. Distance from world center: The position is skipped when it is closer than the min. distance or farther than the max. distance from the world center.

When the position fails, the placement attempts of the structure set decide whenever another position within the same region is tried.

Generation checks

These checks run after the structure layout is generated, when the bounding box and all the pieces of the structure are known. The checks are ordered from the cheapest to the most expensive one, so a failed structure costs as little as possible.

  1. Overlap prevention: The chunk sections of the structure (including the padding) are claimed, the check fails when some of them is already claimed by another structure.
  2. Biome check: The biomes at the sampled positions of the structure pieces are checked against the structure biomes (strict mode) or the blacklisted biomes (blacklist mode).
  3. Flatness check: The terrain height at the sampled positions of the structure pieces is checked, the check fails when the height difference is bigger than allowed.

When any of the checks fails, the structure is not generated and its overlap claims are released, so other structures can generate there. The results of the checks are cached, so every structure is checked only once.

Samples

The biome check and the flatness check do not check every block of the structure, only the sampled positions. Small structure pieces and pieces inside of other pieces are skipped, the corners of the remaining pieces are sampled and the touching positions are merged together. The samples can be rendered in the world with the debug renderer.

Settings levels

Every check can be configured on three levels, the more specific level overrides the less specific one:

  1. Global settings
  2. Structure namespace settings
  3. Specific structure settings

Namespace and structure settings are used only when their "Override global settings" toggle is enabled.

Clone this wiki locally