# moog-s-mods/moogsvoyagerstructures architecture

> Architecture diagram of the GitHub repository moog-s-mods/moogsvoyagerstructures, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/moog-s-mods/moogsvoyagerstructures
- Repository: https://github.com/moog-s-mods/moogsvoyagerstructures

## Overview

Moogs Voyager Structures is a data-driven Minecraft mod: its resource pack supplies world-generation definitions, structure templates, and loot tables that add structures, loot, enemies, and villagers to the game. Players encounter the content through Minecraft world generation; datapacks can customize its settings. The repository also includes authoring utilities for inspecting and editing NBT structures and template pools. The README documents the player-facing capabilities, while sampled scripts show specific tooling behavior; runtime registration and resource wiring were not sampled, so those links are shown only where documentation supports them.

Main entry points: [`scripts/_paths.py`](https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/_paths.py) (Path Detection), [`src/main/resources/data/mvs/structure`](https://github.com/moog-s-mods/moogsvoyagerstructures/tree/1.21-datapack/src/main/resources/data/mvs/structure) (Structure Templates), [`scripts/fix_loot.py`](https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/fix_loot.py) (Loot Editor), [`scripts/fix_versioned_blocks.py`](https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/fix_versioned_blocks.py) (Versioned Block Fixer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_worldgen["World Generation"]
  node_structure_defs["Structure Definitions"]
  node_structure_sets["Structure Sets"]
  node_biome_tags["Biome Tags"]
  node_template_pools["Template Pools"]
end

subgraph group_content["Structure Content"]
  node_structure_nbt["Structure Templates"]
  node_processors["Processor Lists"]
end

subgraph group_loot["Loot Content"]
  node_loot_tables["Loot Tables"]
end

subgraph group_tools["Content Tools"]
  node_path_config["Path Detection<br/>[_paths.py]"]
  node_loot_editor["Loot Editor<br/>[fix_loot.py]"]
  node_batch_loot["Batch Loot Patcher"]
  node_version_blocks["Versioned Block Fixer"]
  node_pool_updater["Pool Version Updater"]
  node_nbt_validator["NBT Validator<br/>[nbt_check.py]"]
  node_nbt_search["NBT String Search"]
  node_nbt_replace["NBT String Replacer"]
  node_structure_index["Structure Indexer<br/>[structure_index.py]"]
end

node_player(("Player"))
node_minecraft["Minecraft"]

node_player -->|"explores"| node_minecraft
node_minecraft -->|"adds structures"| node_structure_defs
node_minecraft -->|"provides loot"| node_loot_tables
node_minecraft -->|"uses templates"| node_structure_nbt
node_batch_loot -->|"calls"| node_loot_editor
node_loot_editor -->|"scans tables"| node_loot_tables
node_loot_editor -->|"patches NBT"| node_structure_nbt
node_version_blocks -->|"copies and swaps"| node_structure_nbt
node_version_blocks -->|"versionizes pools"| node_template_pools
node_pool_updater -->|"finds variants"| node_structure_nbt
node_pool_updater -->|"updates ranges"| node_template_pools
node_nbt_validator -->|"validates files"| node_structure_nbt
node_nbt_search -->|"searches strings"| node_structure_nbt
node_nbt_replace -->|"replaces strings"| node_structure_nbt
node_structure_index -->|"reads definitions"| node_structure_defs
node_structure_index -->|"reads references"| node_template_pools
node_path_config -->|"configures paths"| node_loot_editor
node_path_config -->|"configures paths"| node_batch_loot
node_path_config -->|"configures paths"| node_version_blocks
node_path_config -->|"configures paths"| node_pool_updater
node_path_config -->|"configures paths"| node_nbt_validator
node_path_config -->|"configures paths"| node_nbt_search
node_path_config -->|"configures paths"| node_nbt_replace
node_path_config -->|"configures paths"| node_structure_index

click node_structure_defs "https://github.com/moog-s-mods/moogsvoyagerstructures/tree/1.21-datapack/src/main/resources/data/mvs/worldgen/structure"
click node_structure_sets "https://github.com/moog-s-mods/moogsvoyagerstructures/tree/1.21-datapack/src/main/resources/data/mvs/worldgen/structure_set"
click node_biome_tags "https://github.com/moog-s-mods/moogsvoyagerstructures/tree/1.21-datapack/src/main/resources/data/mvs/tags/worldgen/biome"
click node_template_pools "https://github.com/moog-s-mods/moogsvoyagerstructures/tree/1.21-datapack/src/main/resources/data/mvs/worldgen/template_pool"
click node_structure_nbt "https://github.com/moog-s-mods/moogsvoyagerstructures/tree/1.21-datapack/src/main/resources/data/mvs/structure"
click node_processors "https://github.com/moog-s-mods/moogsvoyagerstructures/tree/1.21-datapack/src/main/resources/data/mvs/worldgen/processor_list"
click node_loot_tables "https://github.com/moog-s-mods/moogsvoyagerstructures/tree/1.21-datapack/src/main/resources/data/mvs/loot_table"
click node_path_config "https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/_paths.py"
click node_loot_editor "https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/fix_loot.py"
click node_batch_loot "https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/batch_patch_loot.py"
click node_version_blocks "https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/fix_versioned_blocks.py"
click node_pool_updater "https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/update_template_pools.py"
click node_nbt_validator "https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/nbt_check.py"
click node_nbt_search "https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/nbt_string_search.py"
click node_nbt_replace "https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/nbt_string_replacer.py"
click node_structure_index "https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/structure_index.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_structure_defs,node_structure_sets,node_biome_tags,node_template_pools toneBlue
class node_structure_nbt,node_processors toneAmber
class node_loot_tables toneMint
class node_path_config,node_loot_editor,node_batch_loot,node_version_blocks,node_pool_updater,node_nbt_validator,node_nbt_search,node_nbt_replace,node_structure_index toneRose
class node_player,node_minecraft toneIndigo
```

## Components

### World Generation

- [Structure Definitions](https://github.com/moog-s-mods/moogsvoyagerstructures/tree/1.21-datapack/src/main/resources/data/mvs/worldgen/structure): `src/main/resources/data/mvs/worldgen/structure`
- [Structure Sets](https://github.com/moog-s-mods/moogsvoyagerstructures/tree/1.21-datapack/src/main/resources/data/mvs/worldgen/structure_set): `src/main/resources/data/mvs/worldgen/structure_set`
- [Biome Tags](https://github.com/moog-s-mods/moogsvoyagerstructures/tree/1.21-datapack/src/main/resources/data/mvs/tags/worldgen/biome): `src/main/resources/data/mvs/tags/worldgen/biome`
- [Template Pools](https://github.com/moog-s-mods/moogsvoyagerstructures/tree/1.21-datapack/src/main/resources/data/mvs/worldgen/template_pool): `src/main/resources/data/mvs/worldgen/template_pool`

### Structure Content

- [Structure Templates](https://github.com/moog-s-mods/moogsvoyagerstructures/tree/1.21-datapack/src/main/resources/data/mvs/structure): `src/main/resources/data/mvs/structure`
- [Processor Lists](https://github.com/moog-s-mods/moogsvoyagerstructures/tree/1.21-datapack/src/main/resources/data/mvs/worldgen/processor_list): `src/main/resources/data/mvs/worldgen/processor_list`

### Loot Content

- [Loot Tables](https://github.com/moog-s-mods/moogsvoyagerstructures/tree/1.21-datapack/src/main/resources/data/mvs/loot_table): `src/main/resources/data/mvs/loot_table`

### Content Tools

- [Path Detection](https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/_paths.py): `scripts/_paths.py`
- [Loot Editor](https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/fix_loot.py): `scripts/fix_loot.py`
- [Batch Loot Patcher](https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/batch_patch_loot.py): `scripts/batch_patch_loot.py`
- [Versioned Block Fixer](https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/fix_versioned_blocks.py): `scripts/fix_versioned_blocks.py`
- [Pool Version Updater](https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/update_template_pools.py): `scripts/update_template_pools.py`
- [NBT Validator](https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/nbt_check.py): `scripts/nbt_check.py`
- [NBT String Search](https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/nbt_string_search.py): `scripts/nbt_string_search.py`
- [NBT String Replacer](https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/nbt_string_replacer.py): `scripts/nbt_string_replacer.py`
- [Structure Indexer](https://github.com/moog-s-mods/moogsvoyagerstructures/blob/1.21-datapack/scripts/structure_index.py): `scripts/structure_index.py`

### Other components

- **Player**
- **Minecraft**

## Connections

- Player → Minecraft: explores (evidence: `README.md`)
- Minecraft → Structure Definitions: adds structures (evidence: `README.md`)
- Minecraft → Loot Tables: provides loot (evidence: `README.md`)
- Minecraft → Structure Templates: uses templates (evidence: `README.md`)
- Batch Loot Patcher → Loot Editor: calls (evidence: `scripts/batch_patch_loot.py`)
- Loot Editor → Loot Tables: scans tables (evidence: `scripts/fix_loot.py`)
- Loot Editor → Structure Templates: patches NBT (evidence: `scripts/fix_loot.py`)
- Versioned Block Fixer → Structure Templates: copies and swaps (evidence: `scripts/fix_versioned_blocks.py`)
- Versioned Block Fixer → Template Pools: versionizes pools (evidence: `scripts/fix_versioned_blocks.py`)
- Pool Version Updater → Structure Templates: finds variants (evidence: `scripts/update_template_pools.py`)
- Pool Version Updater → Template Pools: updates ranges (evidence: `scripts/update_template_pools.py`)
- NBT Validator → Structure Templates: validates files (evidence: `scripts/nbt_check.py`)
- NBT String Search → Structure Templates: searches strings (evidence: `scripts/nbt_string_search.py`)
- NBT String Replacer → Structure Templates: replaces strings (evidence: `scripts/nbt_string_replacer.py`)
- Structure Indexer → Structure Definitions: reads definitions (evidence: `scripts/structure_index.py`)
- Structure Indexer → Template Pools: reads references (evidence: `scripts/structure_index.py`)
- Path Detection → Loot Editor: configures paths (evidence: `scripts/fix_loot.py`)
- Path Detection → Batch Loot Patcher: configures paths (evidence: `scripts/batch_patch_loot.py`)
- Path Detection → Versioned Block Fixer: configures paths (evidence: `scripts/fix_versioned_blocks.py`)
- Path Detection → Pool Version Updater: configures paths (evidence: `scripts/update_template_pools.py`)
- Path Detection → NBT Validator: configures paths (evidence: `scripts/nbt_check.py`)
- Path Detection → NBT String Search: configures paths (evidence: `scripts/nbt_string_search.py`)
- Path Detection → NBT String Replacer: configures paths (evidence: `scripts/nbt_string_replacer.py`)
- Path Detection → Structure Indexer: configures paths (evidence: `scripts/structure_index.py`)
