HomeJavaModsAstruct
Astruct
ModsJava

Astruct

by SkyeShade · on Modrinth

Async Structure Generator: build jigsaw structures far beyond vanilla limits with off-thread planning to reduce server lag.

⬇ Download on Modrinth

Async Structure Generator (Astruct)

Astruct lets you generate massive jigsaw-based structures without freezing the server. It plans structures off-thread, queues placements, and only builds blocks once the required chunks are loaded.

In practice, very large structures may “stream in” over a few seconds—especially after teleporting—since planning can take time. In survival, this is usually unnoticeable when plan_horizon_chunks is set high enough.


Why use Astruct?


How it works (short version)

  1. Centers – The world is partitioned into “cells” (spacing). Each cell gets a deterministic, seed-based center per structure ID.
  2. Proximity scan – As players roam, Astruct pre-plans cells well ahead of them.
  3. Async expansion – Jigsaw expansion runs off-thread.
  4. Placement queue – Finished plans enqueue pieces, keyed by the chunks they need.
  5. Chunk-safe build – On chunk load (and periodic sweeps), Astruct places only pieces whose chunks are currently loaded.

JSON definition (datapack)

Place JSON files at:

data/<namespace>/worldgen/async_structure/<id>.json

Example

{
  "id": "example:castle",
  "dimension": "minecraft:the_nether",
  "start_pool": "castle:start",
  "fallback_pool": "castle:caps",

  "soft_radius_chunks": 16,
  "plan_horizon_chunks": 160,

  "budgets": {
    "max_steps": 30,
    "max_open_connectors": 128
  },

  "gen_y": { "mode": "surface", "value": 0 },

  "spacing": 2048
}

Field reference


Field reference


Commands

Astruct plugs into the vanilla /locate root:


Config (server)

astruct-common.toml:


Performance notes


Compatibility


Troubleshooting


Roadmap


Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more