How frqnny/mostructures works
Mo’ Structures is a Minecraft mod that adds world-generated structures, mini-dungeons, and related gameplay behavior. The principal workflow is platform startup into shared initialization and registration, followed by Minecraft world generation consulting structure placement/configuration and generating structure content. Datapack resources define structure templates, pools, biome eligibility, and loot; custom processors vary placed blocks. Configuration controls activation and placement spacing. The source index supports the registration and config links shown; resource-to-runtime wiring and several mixin effects are not established by excerpts, so those links are omitted or marked unverified.
Main entry points: MoStructures.java Shared Initialization · ProcessorTypes.java Processor Registration · ModStructurePlacement.java Structure Placement · Structures.java Structure Registration
Components 21
Startup and Configuration
- Fabric Adapter
fabric/src/main/java/io/github/frqnny/mostructures/fabric/MoStructuresFabric.java - NeoForge Adapter
neoforge/src/main/java/io/github/frqnny/mostructures/neoforge/MoStructuresNeoForge.java - Shared Initialization
common/src/main/java/io/github/frqnny/mostructures/MoStructures.java - Structure Settings
common/src/main/java/io/github/frqnny/mostructures/config/MoStructuresConfig.java - Setting Entry
common/src/main/java/io/github/frqnny/mostructures/config/StructureConfigEntry.java
World Generation
- Structure Registration
common/src/main/java/io/github/frqnny/mostructures/init/Structures.java - Structure Placement
common/src/main/java/io/github/frqnny/mostructures/structure/ModStructurePlacement.java - Structure Generation
common/src/main/java/io/github/frqnny/mostructures/structure/ModStructure.java - Processor Registration
common/src/main/java/io/github/frqnny/mostructures/init/ProcessorTypes.java - Stone Variation
common/src/main/java/io/github/frqnny/mostructures/processor/SimpleStoneStructureProcessor.java - Cobblestone Variation
common/src/main/java/io/github/frqnny/mostructures/processor/SimpleCobblestoneProcessor.java
Structure Content
- Biome Eligibility
common/src/main/resources/data/mostructures/tags/worldgen/biome/has_structure - Template Pools
common/src/main/resources/data/mostructures/worldgen/template_pool - Structure Templates
common/src/main/resources/data/mostructures/structure - Loot Tables
common/src/main/resources/data/mostructures/loot_table
Gameplay Hooks
- Lake Generation Hook
common/src/main/java/io/github/frqnny/mostructures/mixin/LakeFeatureMixin.java - Living Entity Hook
common/src/main/java/io/github/frqnny/mostructures/mixin/MixinLivingEntity.java - Rabbit Hook
common/src/main/java/io/github/frqnny/mostructures/mixin/MixinRabbitEntity.java - Item Utilities
common/src/main/java/io/github/frqnny/mostructures/util/ItemUtils.java
Other components
- Minecraft Player
- Minecraft Runtime
Connections 25
- Fabric Adapter → Shared Initialization: initializes
fabric/src/main/java/io/github/frqnny/mostructures/fabric/MoStructuresFabric.java - NeoForge Adapter → Shared Initialization: initializes
neoforge/src/main/java/io/github/frqnny/mostructures/neoforge/MoStructuresNeoForge.java - Shared Initialization → Processor Registration: registers processors
common/src/main/java/io/github/frqnny/mostructures/MoStructures.java - Shared Initialization → Structure Registration: registers structures
common/src/main/java/io/github/frqnny/mostructures/MoStructures.java - Shared Initialization → Structure Settings: registers config
common/src/main/java/io/github/frqnny/mostructures/MoStructures.java - Structure Settings → Setting Entry: creates entries
common/src/main/java/io/github/frqnny/mostructures/config/MoStructuresConfig.java - Structure Placement → Structure Settings: reads settings
common/src/main/java/io/github/frqnny/mostructures/structure/ModStructurePlacement.java - Structure Placement → Setting Entry: reads values
common/src/main/java/io/github/frqnny/mostructures/structure/ModStructurePlacement.java - Structure Placement → Structure Registration: gets placement type
common/src/main/java/io/github/frqnny/mostructures/structure/ModStructurePlacement.java - Structure Generation → Structure Registration: gets structure type
common/src/main/java/io/github/frqnny/mostructures/structure/ModStructure.java - Processor Registration → Stone Variation: registers codec
common/src/main/java/io/github/frqnny/mostructures/init/ProcessorTypes.java - Processor Registration → Cobblestone Variation: registers codec
common/src/main/java/io/github/frqnny/mostructures/init/ProcessorTypes.java - Stone Variation → Processor Registration: gets processor type
common/src/main/java/io/github/frqnny/mostructures/processor/SimpleStoneStructureProcessor.java - Cobblestone Variation → Processor Registration: gets processor type
common/src/main/java/io/github/frqnny/mostructures/processor/SimpleCobblestoneProcessor.java - Lake Generation Hook → Structure Registration: checks structure tag
common/src/main/java/io/github/frqnny/mostructures/mixin/LakeFeatureMixin.java - Living Entity Hook → Item Utilities: uses utilities
common/src/main/java/io/github/frqnny/mostructures/mixin/MixinLivingEntity.java - Minecraft Player → Minecraft Runtime: plays in
- Minecraft Runtime → Structure Placement: checks placement
- Minecraft Runtime → Structure Generation: generates structures
- Minecraft Runtime → Biome Eligibility: uses eligibility data
- Minecraft Runtime → Template Pools: loads pools
- Minecraft Runtime → Structure Templates: loads templates
- Minecraft Runtime → Loot Tables: loads loot
- Minecraft Runtime → Stone Variation: applies processor
- Minecraft Runtime → Cobblestone Variation: applies processor