[LEGACY] Shared Structures

Allows asset packs to generate structures in existing zones and biomes

THE MOD IS OUTDATED  

It is now licensed under MIT, so you may port or rehost this mod. I'm not going to provide source code though, this honestly needs a rebuild from the groound up. Happy coding ~~  

Shared Structures

Generate custom prefab structures in existing biomes/zones using vanilla-style placement patterns.

What it does

  • Loads structure entries from your asset packs
  • Places prefabs during world generation using pattern rules (grid/noise/height/parent/masks)
  • Supports entities and block spawners embedded in prefabs

How to add structuresCreate JSON config files in your pack at:

  • Server/WorldGen/SharedStructures/Prefabs/*.json

Each file contains an array of entries.

Fields

  • Id: unique name for the entry
  • Prefab: prefab asset id(s)
  • Weight: weights matching the Prefab list
  • BiomeMask: wildcard match against the biome id
  • ZoneMask: wildcard match against the zone id
  • Pattern: either { "File": "A.B.C" } or an inline pattern object

Notes

  • Patterns are resolved relative to the worldgen data folder. A file reference A.B.C loads A/B/C.json.
  • Prefabs should be stored under Server/Prefabs/ in your pack.

Example:

[ { "Id": "castlearena", "Prefab": ["YourPack.CastleArena"], "Weight": [1.0], "BiomeMask": ["*Plains*"], "ZoneMask": ["Zone1_Tier1"], "Pattern": { "File": "World.Default.Zones.Pattern_Monuments"} } ]

The [LEGACY] Shared Structures Team

Grand Artisan tier frameprofile avatar
  • 72
    Followers
  • 17
    Projects
  • 31.2M
    Downloads

More from joshieman