How lebrops/sporbels-inventions works
Purpose and Runtime
This is a data-driven Mindustry mod, not a standalone application. Mindustry loads the mod manifest, then discovers JSON content definitions and packaged campaign maps. The current repository provides an unfinished military/industrial content set and example .msav maps; the stated next major feature is a Thrahe campaign.
Mod Entry Point and Content Loading
mod.json is the runtime entry point and establishes the mod for the Mindustry loader. There is no source-code layer in the tree: behavior is expressed through Mindustry content schemas, references among definitions, and saved maps.
• mod.json
• content/
• maps/
Resource and Production Economy
Item and liquid definitions establish the economy consumed or produced by blocks. Production blocks form the transformation layer, covering raw extraction, metal/alloy processing, Hyperion materials, weapons, and recycling.
• content/items/iron.json
• content/items/hyperion.json
• content/liquids/liquidhyperion.json
• content/blocks/drill/deepextractor1.json
• content/blocks/production/hyperionfactory.json
• content/blocks/production/recycler.json
Primary flow is extraction → item/liquid logistics supplied by the base game → factories convert inputs into intermediate and advanced materials → output supports construction, power, defenses, and units. Recipe references are the key coupling boundary: renaming an item requires updating dependent block definitions.
Power and Infrastructure
Nuclear/reactor block definitions provide a power-progression subsystem, while builders and walls turn produced materials into base expansion and fortification capabilities.
• content/blocks/power/tinynuclearreactor.json
• content/blocks/power/hyperionreactor.json
• content/blocks/unit/groundbuilder.json
• content/blocks/wall/hyperionwall.json
This content relies on Mindustry’s native power network, placement, health, building, and resource-transport systems rather than custom infrastructure code.
Combat Payloads and Defenses
The mod’s military layer comprises turret blocks, crafted ammunition/payload items, status effects, and combat units. Factories such as missile, shell, and nuclear production feed defensive or offensive capabilities defined elsewhere in the content graph.
• content/blocks/turret/nuclearlauncher.json
• content/blocks/turret/skybreaker.json
• content/blocks/production/missilefactory.json
• content/items/nuke.json
• content/status/sabotaged.json
Combat execution is delegated to Mindustry’s built-in projectile, targeting, damage, and status-effect runtime.
Unit Catalog
Units are organized by thematic families—aircraft, ground forces, Hyperion, RT Jet, apathy, and novelty content—rather than a single explicit progression hierarchy. Unit-production blocks are separate from these definitions and likely provide the bridge from base economy to deployable units.
• content/units/Real Life Aircraft/f22.json
• content/units/Real Life Ground/t34.json
• content/units/Hyperion/hyperionbug.json
• content/units/RT Jet/rtjet1.json
• content/blocks/unit/airbuilder.json
Campaign and Map Boundary
Campaign content is currently represented by prebuilt Mindustry save maps, which serve as examples and playable scenarios. No planet, sector, or campaign .hjson definitions are present; adding Thrahe requires introducing those declarative campaign assets and linking its sectors/levels to map content.
• maps/A New Path.msav
• maps/First Hyperion Threat.msav
• maps/Hyperion Cancer.msav
The major external dependency is the Mindustry engine/editor: it interprets content JSON, serializes maps as .msav, and provides the planned campaign runtime.
Main entry points: hyperion.json Hyperion material · hyperionfactory.json Hyperion factory · iron.json Iron · nuclearlauncher.json Turret defenses
Components 20
Mindustry Runtime
- Mod manifest · Registers the mod with Mindustry.
mod.json - Mindustry engine · Loads content and supplies native simulation systems.
- Content definitions · Declarative blocks, items, liquids, units, and statuses.
- Native logistics · Base-game item, liquid, placement, and power networks.
Economy & Infrastructure
- Iron
content/items/iron.json - Hyperion material
content/items/hyperion.json - Liquid Hyperion
content/liquids/liquidhyperion.json - Deep extractor · Extracts raw resources.
content/blocks/drill/deepextractor1.json - Hyperion factory · Converts recipe inputs into advanced materials.
content/blocks/production/hyperionfactory.json - Recycler
content/blocks/production/recycler.json - Nuclear power · Progression power generation.
content/blocks/power/hyperionreactor.json - Base construction · Expansion and defensive fortification.
content/blocks/wall/hyperionwall.json
Combat & Units
- Missile factory · Crafts combat payloads.
content/blocks/production/missilefactory.json - Nuclear payload
content/items/nuke.json - Turret defenses · Consumes payloads for defensive or offensive fire.
content/blocks/turret/nuclearlauncher.json - Sabotaged status
content/status/sabotaged.json - Unit families · Aircraft, ground, Hyperion, RT Jet, apathy, and novelty units.
content/units/Hyperion/hyperionbug.json - Air builder · Bridges base economy to deployable units.
content/blocks/unit/airbuilder.json
Maps & Campaign
- Playable save maps · Prebuilt Mindustry map saves.
- Planned Thrahe campaign · Requires planet and sector definitions linked to maps.
Connections 27
- Mod manifest → Mindustry engine: loaded by
- Mindustry engine → Content definitions: discovers
- Mindustry engine → Playable save maps: loads
- Content definitions → Iron: defines
- Content definitions → Hyperion material: defines
- Content definitions → Liquid Hyperion: defines
- Content definitions → Deep extractor: defines
- Content definitions → Hyperion factory: defines
- Content definitions → Turret defenses: defines
- Content definitions → Unit families: defines
- Deep extractor → Iron: extracts
- Iron → Hyperion factory: recipe input
- Liquid Hyperion → Hyperion factory: recipe input
- Hyperion factory → Hyperion material: produces
- Recycler → Native logistics: returns materials through
- Hyperion material → Nuclear power: supports construction
- Hyperion material → Base construction: builds
- Hyperion material → Missile factory: recipe input
- Missile factory → Nuclear payload: crafts
- Nuclear payload → Turret defenses: payload
- Turret defenses → Sabotaged status: applies
- Hyperion material → Air builder: supports production
- Air builder → Unit families: deploys
- Native logistics → Hyperion factory: supplies inputs
- Native logistics → Nuclear power: connects
- Playable save maps → Planned Thrahe campaign: future sector links
- Mindustry engine → Planned Thrahe campaign: future campaign runtime