HytaleHub
Explore
Shared Structures

Shared Structures

by joshieman

utility

Generate custom prefab structures in existing biomes using vanilla-style placement patterns. Load structure entries from asset packs and place prefabs during world generation with configurable pattern rules.

Shared Structures enables custom prefab structure generation in existing biomes using vanilla-style placement patterns. Created by joshieman, this mod lets modders add their structures to world generation without complex code.

What Does This Mod Do?

  • Loads structure entries from your asset packs
  • Places prefabs during world generation using pattern rules
  • Supports grid, noise, height, parent, and mask-based placement
  • Handles entities and block spawners in prefabs

For Developers

Adding Structures

Create JSON config files in your pack at:

Server/WorldGen/SharedStructures/Prefabs/*.json

Each file contains an array of structure entries.

Example Configuration

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

Configuration Fields

  • Id: Unique name for the entry
  • Prefab: Prefab asset ID(s)
  • Weight: Weights matching the Prefab list
  • BiomeMask: Wildcard match against biome ID
  • ZoneMask: Wildcard match against zone ID
  • Pattern: File reference or inline pattern object

Notes

  • Patterns resolve relative to the worldgen data folder
  • A file reference A.B.C loads A/B/C.json
  • Store prefabs under Server/Prefabs/ in your pack

Key Features

Vanilla-Style Patterns

Use the same placement patterns as vanilla structures.

Flexible Masking

Control where structures spawn with biome and zone masks.

Weighted Selection

Multiple prefabs with weight-based random selection.

Who Is This Mod For?

This mod is for:

  • Mod developers adding world structures
  • Adventure map creators
  • Content pack makers

You don’t need this if:

  • You’re just playing standard mods
  • You don’t create custom content

Compatibility

  • Hytale Version: Early Access and above
  • License: All Rights Reserved

About the Author

joshieman creates world generation and utility tools for Hytale modders.