# itskirby69/minedusty architecture

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

- Interactive diagram: https://gitdiagram.com/itskirby69/minedusty
- Repository: https://github.com/itskirby69/minedusty

## Overview

MineDusty is a Mindustry content mod: loading registers new resources, blocks, units, effects, weather, planets, and campaign sectors; players then explore and fight across its custom worlds. The graph emphasizes that registration and the documented environmental and campaign capabilities, with rendering and reusable gameplay mechanics as supporting layers. Several subsystems are represented from the file tree and README rather than inspected implementation; their internal wiring is therefore omitted where evidence is unavailable.

Main entry points: [`src/minedusty/MineDustyMod.java`](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/MineDustyMod.java) (Mod lifecycle), [`src/minedusty/blocks/DustEnv.java`](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/blocks/DustEnv.java) (Terrain and flora), [`src/minedusty/planets/DustPlanets.java`](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/planets/DustPlanets.java) (Planet definitions), [`src/minedusty/blocks/DustPlants.java`](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/blocks/DustPlants.java) (Living plants)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_bootstrap["Mod bootstrap"]
  node_mod["Mod lifecycle<br/>[MineDustyMod.java]"]
end

subgraph group_content["World and content"]
  node_blocks["Block registry"]
  node_environment["Terrain and flora<br/>[DustEnv.java]"]
  node_plants["Living plants<br/>[DustPlants.java]"]
  node_resources["Items and liquids<br/>[DustItems.java]"]
  node_turrets["Turrets and ammo<br/>[DustTurrets.java]"]
  node_units["Unit types<br/>[DustUnitTypes.java]"]
  node_weather["Weather types<br/>[DustWeathers.java]"]
  node_status["Status effects"]
end

subgraph group_campaign["Planet campaign"]
  node_sectors["Campaign sectors<br/>[DustSectors.java]"]
  node_tech["Tech trees"]
  node_planets["Planet definitions<br/>[DustPlanets.java]"]
  node_generators["World generation"]
end

subgraph group_runtime["Gameplay and presentation"]
  node_effects["Combat effects<br/>[DustyEffects.java]"]
  node_menu["Menu renderer"]
  node_palette["Color palette<br/>[DustPalette.java]"]
  node_effecthelper["Effect utilities<br/>[EffectHelper.java]"]
  node_settings["Player settings<br/>[DustSettings.java]"]
end

node_mindustry(("Mindustry game"))

node_mindustry -->|"loads mod"| node_mod
node_mod -->|"loads content"| node_blocks
node_mod -->|"loads units"| node_units
node_mod -->|"loads planets"| node_planets
node_mod -->|"loads sectors"| node_sectors
node_mod -->|"loads tech tree"| node_tech
node_environment -->|"provides terrain"| node_plants
node_environment -->|"uses items"| node_resources
node_environment -->|"uses effects"| node_effects
node_plants -->|"uses effects"| node_effecthelper
node_turrets -->|"uses ammo"| node_resources
node_turrets -->|"uses effects"| node_effects
node_status -->|"uses effects"| node_effects
node_resources -->|"uses colors"| node_palette
node_planets -->|"configures generators"| node_generators
node_sectors -->|"assigns sectors"| node_planets
node_generators -->|"uses weather"| node_weather
node_menu -->|"renders terrain"| node_environment
node_menu -->|"renders plants"| node_plants
node_settings -->|"reads planet data"| node_planets

click node_mod "https://github.com/itskirby69/minedusty/blob/master/src/minedusty/MineDustyMod.java"
click node_blocks "https://github.com/itskirby69/minedusty/tree/master/src/minedusty/blocks"
click node_environment "https://github.com/itskirby69/minedusty/blob/master/src/minedusty/blocks/DustEnv.java"
click node_plants "https://github.com/itskirby69/minedusty/blob/master/src/minedusty/blocks/DustPlants.java"
click node_resources "https://github.com/itskirby69/minedusty/blob/master/src/minedusty/content/DustItems.java"
click node_turrets "https://github.com/itskirby69/minedusty/blob/master/src/minedusty/blocks/DustTurrets.java"
click node_units "https://github.com/itskirby69/minedusty/blob/master/src/minedusty/content/DustUnitTypes.java"
click node_weather "https://github.com/itskirby69/minedusty/blob/master/src/minedusty/content/DustWeathers.java"
click node_status "https://github.com/itskirby69/minedusty/blob/master/src/minedusty/content/DustStatusEffects.java"
click node_effects "https://github.com/itskirby69/minedusty/blob/master/src/minedusty/content/DustyEffects.java"
click node_sectors "https://github.com/itskirby69/minedusty/blob/master/src/minedusty/content/DustSectors.java"
click node_tech "https://github.com/itskirby69/minedusty/tree/master/src/minedusty/content"
click node_planets "https://github.com/itskirby69/minedusty/blob/master/src/minedusty/planets/DustPlanets.java"
click node_generators "https://github.com/itskirby69/minedusty/tree/master/src/minedusty/planets"
click node_menu "https://github.com/itskirby69/minedusty/blob/master/src/minedusty/graphics/DustMenuRender.java"
click node_palette "https://github.com/itskirby69/minedusty/blob/master/src/minedusty/graphics/DustPalette.java"
click node_effecthelper "https://github.com/itskirby69/minedusty/blob/master/src/minedusty/utils/EffectHelper.java"
click node_settings "https://github.com/itskirby69/minedusty/blob/master/src/minedusty/ui/DustSettings.java"

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_mod toneBlue
class node_blocks,node_environment,node_plants,node_resources,node_turrets,node_units,node_weather,node_status toneAmber
class node_sectors,node_tech,node_planets,node_generators toneMint
class node_effects,node_menu,node_palette,node_effecthelper,node_settings toneRose
class node_mindustry toneIndigo
```

## Components

### Mod bootstrap

- [Mod lifecycle](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/MineDustyMod.java): `src/minedusty/MineDustyMod.java`

### World and content

- [Block registry](https://github.com/itskirby69/minedusty/tree/master/src/minedusty/blocks): `src/minedusty/blocks`
- [Terrain and flora](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/blocks/DustEnv.java): `src/minedusty/blocks/DustEnv.java`
- [Living plants](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/blocks/DustPlants.java): `src/minedusty/blocks/DustPlants.java`
- [Items and liquids](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/content/DustItems.java): `src/minedusty/content/DustItems.java`
- [Turrets and ammo](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/blocks/DustTurrets.java): `src/minedusty/blocks/DustTurrets.java`
- [Unit types](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/content/DustUnitTypes.java): `src/minedusty/content/DustUnitTypes.java`
- [Weather types](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/content/DustWeathers.java): `src/minedusty/content/DustWeathers.java`
- [Status effects](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/content/DustStatusEffects.java): `src/minedusty/content/DustStatusEffects.java`

### Planet campaign

- [Campaign sectors](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/content/DustSectors.java): `src/minedusty/content/DustSectors.java`
- [Tech trees](https://github.com/itskirby69/minedusty/tree/master/src/minedusty/content): `src/minedusty/content`
- [Planet definitions](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/planets/DustPlanets.java): `src/minedusty/planets/DustPlanets.java`
- [World generation](https://github.com/itskirby69/minedusty/tree/master/src/minedusty/planets): `src/minedusty/planets`

### Gameplay and presentation

- [Combat effects](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/content/DustyEffects.java): `src/minedusty/content/DustyEffects.java`
- [Menu renderer](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/graphics/DustMenuRender.java): `src/minedusty/graphics/DustMenuRender.java`
- [Color palette](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/graphics/DustPalette.java): `src/minedusty/graphics/DustPalette.java`
- [Effect utilities](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/utils/EffectHelper.java): `src/minedusty/utils/EffectHelper.java`
- [Player settings](https://github.com/itskirby69/minedusty/blob/master/src/minedusty/ui/DustSettings.java): `src/minedusty/ui/DustSettings.java`

### Other components

- **Mindustry game**

## Connections

- Mindustry game → Mod lifecycle: loads mod
- Mod lifecycle → Block registry: loads content (evidence: `src/minedusty/MineDustyMod.java`)
- Mod lifecycle → Unit types: loads units (evidence: `src/minedusty/MineDustyMod.java`)
- Mod lifecycle → Planet definitions: loads planets (evidence: `src/minedusty/MineDustyMod.java`)
- Mod lifecycle → Campaign sectors: loads sectors (evidence: `src/minedusty/MineDustyMod.java`)
- Mod lifecycle → Tech trees: loads tech tree (evidence: `src/minedusty/MineDustyMod.java`)
- Terrain and flora → Living plants: provides terrain (evidence: `src/minedusty/blocks/DustPlants.java`)
- Terrain and flora → Items and liquids: uses items (evidence: `src/minedusty/blocks/DustEnv.java`)
- Terrain and flora → Combat effects: uses effects (evidence: `src/minedusty/blocks/DustEnv.java`)
- Living plants → Effect utilities: uses effects (evidence: `src/minedusty/blocks/DustPlants.java`)
- Turrets and ammo → Items and liquids: uses ammo (evidence: `src/minedusty/blocks/DustTurrets.java`)
- Turrets and ammo → Combat effects: uses effects (evidence: `src/minedusty/blocks/DustTurrets.java`)
- Status effects → Combat effects: uses effects (evidence: `src/minedusty/content/DustStatusEffects.java`)
- Items and liquids → Color palette: uses colors (evidence: `src/minedusty/content/DustItems.java`)
- Planet definitions → World generation: configures generators (evidence: `src/minedusty/planets/DustPlanets.java`)
- Campaign sectors → Planet definitions: assigns sectors (evidence: `src/minedusty/content/DustSectors.java`)
- World generation → Weather types: uses weather (evidence: `src/minedusty/planets/TheiaPlanetGenerator.java`)
- Menu renderer → Terrain and flora: renders terrain (evidence: `src/minedusty/graphics/DustMenuRender.java`)
- Menu renderer → Living plants: renders plants (evidence: `src/minedusty/graphics/DustMenuRender.java`)
- Player settings → Planet definitions: reads planet data (evidence: `src/minedusty/ui/DustSettings.java`)
