# bmprojects-development/escr architecture

> Architecture diagram of the GitHub repository bmprojects-development/escr, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bmprojects-development/escr
- Repository: https://github.com/bmprojects-development/escr

## Overview

Essential Craft: Reimagined is a Minecraft content mod with a shared API, loader-specific Fabric and NeoForge bootstraps, and a runtime of blocks, machines, items, research, and visual effects. A representative player workflow is to build a multiblock, have its controller detect and operate it using MRU, then inspect its structure in the research book. The README gives no detailed capability map; the broader branches below follow the repository tree. Relationships are limited to excerpted code and SOURCE INDEX references, so unsampled links are omitted.

Main entry points: [`runtime/src/main/kotlin/client/book/controller/MultiblockBookPreviewController.kt`](https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/client/book/controller/MultiblockBookPreviewController.kt) (Book Preview Controls), [`runtime/src/main/kotlin/common/block/EnrichmentChamberController.kt`](https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/common/block/EnrichmentChamberController.kt) (Chamber Block), [`runtime/src/main/kotlin/common/block/entity/enrichment/EnrichmentChamberControllerEntity.kt`](https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/common/block/entity/enrichment/EnrichmentChamberControllerEntity.kt) (Chamber Controller), [`api/src/main/kotlin/client/render/MultiblockPreviewGuiBridge.kt`](https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/client/render/MultiblockPreviewGuiBridge.kt) (Preview GUI Bridge)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_platform["Platform and API"]
  node_fabric["Fabric Bootstrap"]
  node_neoforge["NeoForge Bootstrap"]
  node_events["Event Bus<br/>[Event.kt]"]
  node_registries["Registration API"]
end

subgraph group_world["World and Machines"]
  node_blocks["Block Registry<br/>[BlockRegistry.kt]"]
  node_enrichment["Chamber Block"]
  node_controller["Chamber Controller"]
  node_menu["Chamber Menu"]
  node_multiblocks["Multiblock Definitions<br/>[Multiblock.kt]"]
  node_assembly["Assembly Runtime"]
end

subgraph group_research["Research and Recipes"]
  node_researchdata["Research Content<br/>[ResearchCatalog.kt]"]
  node_recipes["Recipe System<br/>[RecipeCompiler.kt]"]
  node_book["Research Book"]
  node_previewcontroller["Book Preview Controls"]
end

subgraph group_visuals["Client Presentation"]
  node_previewstate["Preview Render State"]
  node_previewbridge["Preview GUI Bridge"]
  node_worldpreview["World Preview"]
  node_geo["Bedrock GEO Renderer"]
  node_particles["Bedrock Particles<br/>[ParticleSystem.kt]"]
end

subgraph group_magic["Magic Systems"]
  node_mrustorage[("MRU Storage<br/>[IOMRUStorage.kt]")]
  node_molang["Molang Runtime<br/>[MolangContext.kt]"]
end

node_player(("Player"))
node_machine(("Player Machine Use"))

node_fabric -->|"publishes events"| node_events
node_neoforge -->|"publishes events"| node_events
node_fabric -->|"initializes preview"| node_previewbridge
node_neoforge -->|"installs renderer"| node_previewbridge
node_blocks -->|"registers block"| node_enrichment
node_enrichment -->|"creates entity"| node_controller
node_enrichment -.->|"opens menu"| node_menu
node_controller -->|"checks structure"| node_multiblocks
node_controller -->|"stores MRU"| node_mrustorage
node_player -->|"uses block"| node_enrichment
node_machine -.->|"operates machine"| node_controller
node_previewcontroller -->|"creates render state"| node_previewstate
node_previewcontroller -->|"submits preview"| node_previewbridge
node_previewcontroller -->|"places structure"| node_worldpreview
node_previewcontroller -->|"reads definitions"| node_multiblocks
node_geo -->|"evaluates animation"| node_molang
node_book -.->|"presents research"| node_researchdata

click node_fabric "https://github.com/bmprojects-development/escr/blob/main/bootstrap-fabric/src/main/kotlin/init/FabricClientInit.kt"
click node_neoforge "https://github.com/bmprojects-development/escr/blob/main/bootstrap-neoforge/src/main/kotlin/init/NeoForgeClientInit.kt"
click node_events "https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/event/engine/Event.kt"
click node_registries "https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/registries/RegistrationHandler.kt"
click node_blocks "https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/registry/BlockRegistry.kt"
click node_enrichment "https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/common/block/EnrichmentChamberController.kt"
click node_controller "https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/common/block/entity/enrichment/EnrichmentChamberControllerEntity.kt"
click node_menu "https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/common/menu/EnrichmentChamberControllerMenu.kt"
click node_multiblocks "https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/multiblock/Multiblock.kt"
click node_assembly "https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/common/assembled/AssembledMultiblockRuntime.kt"
click node_researchdata "https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/research/ResearchCatalog.kt"
click node_recipes "https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/recipe/dsl/RecipeCompiler.kt"
click node_book "https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/client/book/ResearchBookClient.kt"
click node_previewcontroller "https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/client/book/controller/MultiblockBookPreviewController.kt"
click node_previewstate "https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/client/render/MultiblockPreviewRenderState.kt"
click node_previewbridge "https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/client/render/MultiblockPreviewGuiBridge.kt"
click node_worldpreview "https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/client/render/MultiblockWorldPreview.kt"
click node_geo "https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/geo/client/BedrockGeoRenderEngine.kt"
click node_particles "https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/particle/ParticleSystem.kt"
click node_mrustorage "https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/mru/storage/IOMRUStorage.kt"
click node_molang "https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/molang/runtime/MolangContext.kt"

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_fabric,node_neoforge,node_events,node_registries toneBlue
class node_blocks,node_enrichment,node_controller,node_menu,node_multiblocks,node_assembly toneAmber
class node_researchdata,node_recipes,node_book,node_previewcontroller toneMint
class node_previewstate,node_previewbridge,node_worldpreview,node_geo,node_particles toneRose
class node_mrustorage,node_molang,node_player,node_machine toneIndigo
```

## Components

### Platform and API

- [Fabric Bootstrap](https://github.com/bmprojects-development/escr/blob/main/bootstrap-fabric/src/main/kotlin/init/FabricClientInit.kt): `bootstrap-fabric/src/main/kotlin/init/FabricClientInit.kt`
- [NeoForge Bootstrap](https://github.com/bmprojects-development/escr/blob/main/bootstrap-neoforge/src/main/kotlin/init/NeoForgeClientInit.kt): `bootstrap-neoforge/src/main/kotlin/init/NeoForgeClientInit.kt`
- [Event Bus](https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/event/engine/Event.kt): `api/src/main/kotlin/event/engine/Event.kt`
- [Registration API](https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/registries/RegistrationHandler.kt): `api/src/main/kotlin/registries/RegistrationHandler.kt`

### World and Machines

- [Block Registry](https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/registry/BlockRegistry.kt): `runtime/src/main/kotlin/registry/BlockRegistry.kt`
- [Chamber Block](https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/common/block/EnrichmentChamberController.kt): `runtime/src/main/kotlin/common/block/EnrichmentChamberController.kt`
- [Chamber Controller](https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/common/block/entity/enrichment/EnrichmentChamberControllerEntity.kt): `runtime/src/main/kotlin/common/block/entity/enrichment/EnrichmentChamberControllerEntity.kt`
- [Chamber Menu](https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/common/menu/EnrichmentChamberControllerMenu.kt): `runtime/src/main/kotlin/common/menu/EnrichmentChamberControllerMenu.kt`
- [Multiblock Definitions](https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/multiblock/Multiblock.kt): `api/src/main/kotlin/multiblock/Multiblock.kt`
- [Assembly Runtime](https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/common/assembled/AssembledMultiblockRuntime.kt): `runtime/src/main/kotlin/common/assembled/AssembledMultiblockRuntime.kt`

### Research and Recipes

- [Research Content](https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/research/ResearchCatalog.kt): `api/src/main/kotlin/research/ResearchCatalog.kt`
- [Recipe System](https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/recipe/dsl/RecipeCompiler.kt): `api/src/main/kotlin/recipe/dsl/RecipeCompiler.kt`
- [Research Book](https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/client/book/ResearchBookClient.kt): `runtime/src/main/kotlin/client/book/ResearchBookClient.kt`
- [Book Preview Controls](https://github.com/bmprojects-development/escr/blob/main/runtime/src/main/kotlin/client/book/controller/MultiblockBookPreviewController.kt): `runtime/src/main/kotlin/client/book/controller/MultiblockBookPreviewController.kt`

### Client Presentation

- [Preview Render State](https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/client/render/MultiblockPreviewRenderState.kt): `api/src/main/kotlin/client/render/MultiblockPreviewRenderState.kt`
- [Preview GUI Bridge](https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/client/render/MultiblockPreviewGuiBridge.kt): `api/src/main/kotlin/client/render/MultiblockPreviewGuiBridge.kt`
- [World Preview](https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/client/render/MultiblockWorldPreview.kt): `api/src/main/kotlin/client/render/MultiblockWorldPreview.kt`
- [Bedrock GEO Renderer](https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/geo/client/BedrockGeoRenderEngine.kt): `api/src/main/kotlin/geo/client/BedrockGeoRenderEngine.kt`
- [Bedrock Particles](https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/particle/ParticleSystem.kt): `api/src/main/kotlin/particle/ParticleSystem.kt`

### Magic Systems

- [MRU Storage](https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/mru/storage/IOMRUStorage.kt): `api/src/main/kotlin/mru/storage/IOMRUStorage.kt`
- [Molang Runtime](https://github.com/bmprojects-development/escr/blob/main/api/src/main/kotlin/molang/runtime/MolangContext.kt): `api/src/main/kotlin/molang/runtime/MolangContext.kt`

### Other components

- **Player**
- **Player Machine Use**

## Connections

- Fabric Bootstrap → Event Bus: publishes events (evidence: `bootstrap-fabric/src/main/kotlin/init/FabricClientInit.kt`)
- NeoForge Bootstrap → Event Bus: publishes events (evidence: `bootstrap-neoforge/src/main/kotlin/init/NeoForgeClientInit.kt`)
- Fabric Bootstrap → Preview GUI Bridge: initializes preview
- NeoForge Bootstrap → Preview GUI Bridge: installs renderer (evidence: `bootstrap-neoforge/src/main/kotlin/init/NeoForgeClientInit.kt`)
- Block Registry → Chamber Block: registers block (evidence: `runtime/src/main/kotlin/registry/BlockRegistry.kt`)
- Chamber Block → Chamber Controller: creates entity (evidence: `runtime/src/main/kotlin/common/block/EnrichmentChamberController.kt`)
- Chamber Block → Chamber Menu: opens menu
- Chamber Controller → Multiblock Definitions: checks structure (evidence: `runtime/src/main/kotlin/common/block/entity/enrichment/EnrichmentChamberControllerEntity.kt`)
- Chamber Controller → MRU Storage: stores MRU (evidence: `runtime/src/main/kotlin/common/block/entity/enrichment/EnrichmentChamberControllerEntity.kt`)
- Player → Chamber Block: uses block (evidence: `runtime/src/main/kotlin/common/block/EnrichmentChamberController.kt`)
- Player Machine Use → Chamber Controller: operates machine
- Book Preview Controls → Preview Render State: creates render state (evidence: `runtime/src/main/kotlin/client/book/controller/MultiblockBookPreviewController.kt`)
- Book Preview Controls → Preview GUI Bridge: submits preview (evidence: `runtime/src/main/kotlin/client/book/controller/MultiblockBookPreviewController.kt`)
- Book Preview Controls → World Preview: places structure (evidence: `runtime/src/main/kotlin/client/book/controller/MultiblockBookPreviewController.kt`)
- Book Preview Controls → Multiblock Definitions: reads definitions (evidence: `runtime/src/main/kotlin/client/book/controller/MultiblockBookPreviewController.kt`)
- Bedrock GEO Renderer → Molang Runtime: evaluates animation (evidence: `api/src/main/kotlin/geo/client/BedrockGeoRenderEngine.kt`)
- Research Book → Research Content: presents research
