# junerhobart/blume architecture

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

- Interactive diagram: https://gitdiagram.com/junerhobart/blume
- Repository: https://github.com/junerhobart/blume

## Overview

1. **What this repo is**
   Blume is a **Paper/Bukkit Minecraft server plugin** that adds “vanilla+” gameplay features. The runtime center is the plugin JAR, while the repo also ships a **Java resource pack**, a **Bedrock/Geyser asset pack**, a small **datapack**, and a **static documentation site**.

2. **Primary runtime boundary**
   The main server-side entrypoint is `io.blume.BlumePlugin`, with feature areas split into modules: **admin**, **ecology**, **enchants**, **qol**, **resourcepack**, **update**, and general listeners/commands. The architecture is event-driven: most behavior is implemented as **listeners, services, and command handlers** reacting to player, block, inventory, and world events.

3. **Configuration and startup flow**
   Shared configuration lives in `src/main/resources/config.yml` and `paper-plugin.yml`, then gets surfaced through feature-specific config classes such as `BlumeConfig`, `AdminConfig`, `EcologyConfig`, `EnchantsConfig`, and `QolConfig`. This suggests a boot flow where the plugin loads global config, initializes modules, and registers listeners/commands based on feature settings.

4. **Admin subsystem**
   The admin module implements **graylisting / vouching**: new players are restricted until another user vouches for them. `VouchCommand`, `GraylistListener`, and `GraylistService` handle the gameplay and enforcement side, while the `luckperms` package bridges into **LuckPerms** so verified players can be promoted into a group (`VerifiedGroupPromoter`, `LuckPermsHook`, `LuckPermsBridge`). This subsystem also includes `CommandBroadcastListener` for admin-facing command logging/broadcasts.

5. **Enchant subsystem**
   The enchants module provides custom enchantment behavior such as **auto-smelt, sickle, timber, unbreakable, and veinminer**. `BlumeBootstrap`, `BlumeEnchantments`, `EnchantKeys`, `EnchantContext`, and `EnchantChecks` define the enchantment framework, while feature listeners in subpackages implement the actual gameplay effects. Support classes like `SmeltRecipes`, `OreXp`, `VeinFill`, `ManualBreak`, and `Logs` show that the flow is: detect action → validate enchant/context → rewrite block/item outcome → optionally adjust drops, XP, or logs.

6. **Ecology subsystem**
   Ecology adds world and item mechanics around farming and natural biomes: **wild crops, mixed seeds, crop seeds, pollination, natural grass, pasture welfare, and custom planting**. `EcologyModule`, `EcologyConfig`, and `EcologyKeys` coordinate the feature set; listeners and tasks like `WildCropPopulator`, `WildCropGuardListener`, `SeedPlantListener`, `BeePollinationListener`, `NaturalGrassTask`, and `MixedSeedDropListener` mutate world generation, drops, and crop behavior. This module also defines custom items through `EcologyItems` and command support via `EcologyGiveCommand`.

7. **QoL subsystem**
   The QoL module contains player convenience mechanics that are mostly local event transforms: **creeper rebuild**, **desire paths**, **double doors**, **harvest replant**, **path speed**, **death drops**, and **anvil limits**. Each feature has a focused listener/service pair where needed, such as `CreeperRebuildListener` + `CreeperRebuildService`, `DesirePathListener` + `DesirePathService`, and `HarvestListener` + `CropHarvest`. This area is primarily about reacting to block interaction, movement, or explosions and then altering nearby blocks or drops.

8. **Resource-pack and Bedrock support**
   Custom items and textures are not only server-side logic; they are backed by assets in `resourcepack/java` and `resourcepack/bedrock`, plus datapack loot tables in `src/main/resources/blume_datapack`. `ResourcePackService`, `JavaResourcePackSource`, and `GeyserAssetInstaller` indicate that the plugin can distribute or install client-facing assets, including **Java textures/models**, **Bedrock item textures/manifest**, and **translated item definitions**. This is a key architectural boundary: gameplay logic lives in the plugin, while visuals and item identity are shipped through resource-pack/datapack artifacts.

9. **External integrations**
   The only clearly material external integrations are **LuckPerms** for role/group promotion and **Geyser** for Bedrock asset compatibility. There is also an `UpdateChecker`, implying the plugin checks for newer releases, likely as part of startup or periodic maintenance. No database or web API service is evident from the tree; the plugin appears to rely mainly on Minecraft server state plus these platform integrations.

10. **Docs, demos, and release workflow**
   `docs/` is a full static documentation site with feature pages, JSON categories, CSS/JS, and media demos. GitHub Actions workflows cover **CI**, **GitHub Pages deployment**, and **release publishing**, while the `run/` directory provides a local server harness and sync scripts for testing the built plugin in a Minecraft server environment. In diagram terms, the repo has three deliverable paths: **server plugin JAR**, **client-facing asset packs**, and **published documentation site**.

Main entry points: [`src/main/java/io/blume/BlumePlugin.java`](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/BlumePlugin.java) (BlumePlugin), [`src/main/java/io/blume/ecology/EcologyModule.java`](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/ecology/EcologyModule.java) (Ecology), [`src/main/java/io/blume/admin/AdminModule.java`](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/admin/AdminModule.java) (Admin), [`src/main/java/io/blume/enchants/BlumeEnchantments.java`](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/enchants/BlumeEnchantments.java) (Enchant core)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Server plugin"]
  node_blume_plugin["BlumePlugin<br/>plugin entrypoint<br/>[BlumePlugin.java]"]
  node_blume_config["Core config<br/>shared config<br/>[BlumeConfig.java]"]
  node_admin_module["Admin<br/>graylist module<br/>[AdminModule.java]"]
  node_graylist_service["Graylist<br/>enforcement service"]
  node_luckperms_bridge["LuckPerms<br/>integration bridge"]
  node_enchants_module["Enchants<br/>custom enchant module"]
  node_blume_enchantments["Enchant core<br/>enchant framework"]
  node_auto_smelt["Auto-smelt<br/>enchant listener"]
  node_veinminer["Veinminer<br/>enchant listener"]
  node_ecology_module["Ecology<br/>world mechanics module<br/>[EcologyModule.java]"]
  node_ecology_items["Ecology items<br/>item definitions<br/>[EcologyItems.java]"]
  node_wild_crop_populator["Wild crops<br/>world listener"]
  node_bee_pollination["Pollination<br/>interaction listener"]
  node_qol_module["QoL<br/>convenience module<br/>[QolModule.java]"]
  node_creeper_rebuild["Creeper rebuild<br/>explosion service"]
  node_desire_path["Desire paths<br/>movement service"]
  node_resourcepack_service["Resource pack<br/>asset distributor"]
  node_geyser_installer["Geyser<br/>bedrock bridge"]
  node_update_checker["Update check<br/>version checker<br/>[UpdateChecker.java]"]
end

subgraph group_assets["Client assets"]
  node_java_assets["Java assets<br/>client pack source"]
  node_bedrock_assets["Bedrock assets<br/>geyser pack"]
  node_datapack["Datapack<br/>loot pack"]
end

subgraph group_docs["Docs & release"]
  node_docs_site["Docs site<br/>static site<br/>[index.html]"]
  node_workflows["CI / release<br/>github actions<br/>[workflows]"]
end

node_blume_plugin -->|"loads"| node_blume_config
node_blume_plugin -->|"enables"| node_admin_module
node_blume_plugin -->|"enables"| node_enchants_module
node_blume_plugin -->|"enables"| node_ecology_module
node_blume_plugin -->|"enables"| node_qol_module
node_blume_plugin -->|"serves"| node_resourcepack_service
node_blume_plugin -->|"installs"| node_geyser_installer
node_blume_plugin -->|"checks"| node_update_checker
node_admin_module -->|"uses"| node_graylist_service
node_admin_module -->|"bridges"| node_luckperms_bridge
node_enchants_module -->|"registers"| node_blume_enchantments
node_blume_enchantments -->|"drives"| node_auto_smelt
node_blume_enchantments -->|"drives"| node_veinminer
node_ecology_module -->|"defines"| node_ecology_items
node_ecology_module -->|"spawns"| node_wild_crop_populator
node_ecology_module -->|"handles"| node_bee_pollination
node_qol_module -->|"uses"| node_creeper_rebuild
node_qol_module -->|"uses"| node_desire_path
node_resourcepack_service -->|"sources"| node_java_assets
node_resourcepack_service -->|"sources"| node_bedrock_assets
node_ecology_items -->|"backed by"| node_datapack
node_docs_site -.->|"published by"| node_workflows

click node_blume_plugin "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/BlumePlugin.java"
click node_blume_config "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/config/BlumeConfig.java"
click node_admin_module "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/admin/AdminModule.java"
click node_graylist_service "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/admin/graylist/GraylistService.java"
click node_luckperms_bridge "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/admin/luckperms/LuckPermsBridge.java"
click node_enchants_module "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/enchants/EnchantsModule.java"
click node_blume_enchantments "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/enchants/BlumeEnchantments.java"
click node_auto_smelt "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/enchants/autosmelt/AutoSmeltListener.java"
click node_veinminer "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/enchants/veinminer/VeinminerListener.java"
click node_ecology_module "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/ecology/EcologyModule.java"
click node_ecology_items "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/ecology/items/EcologyItems.java"
click node_wild_crop_populator "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/ecology/wild/WildCropPopulator.java"
click node_bee_pollination "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/ecology/pollination/BeePollinationListener.java"
click node_qol_module "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/qol/QolModule.java"
click node_creeper_rebuild "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/qol/creeper/CreeperRebuildService.java"
click node_desire_path "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/qol/paths/DesirePathService.java"
click node_resourcepack_service "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/resourcepack/ResourcePackService.java"
click node_java_assets "https://github.com/junerhobart/blume/tree/main/resourcepack/java"
click node_bedrock_assets "https://github.com/junerhobart/blume/tree/main/resourcepack/bedrock"
click node_datapack "https://github.com/junerhobart/blume/tree/main/src/main/resources/blume_datapack"
click node_geyser_installer "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/geyser/GeyserAssetInstaller.java"
click node_update_checker "https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/update/UpdateChecker.java"
click node_docs_site "https://github.com/junerhobart/blume/blob/main/docs/index.html"
click node_workflows "https://github.com/junerhobart/blume/blob/main/.github/workflows"

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_blume_plugin,node_blume_config,node_admin_module,node_graylist_service,node_luckperms_bridge,node_enchants_module,node_blume_enchantments,node_auto_smelt,node_veinminer,node_ecology_module,node_ecology_items,node_wild_crop_populator,node_bee_pollination,node_qol_module,node_creeper_rebuild,node_desire_path,node_resourcepack_service,node_geyser_installer,node_update_checker toneBlue
class node_java_assets,node_bedrock_assets,node_datapack toneAmber
class node_docs_site,node_workflows toneMint
```

## Components

### Server plugin

Paper/Bukkit runtime, feature modules, and integrations.

- [BlumePlugin](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/BlumePlugin.java): plugin entrypoint · Main Paper/Bukkit plugin bootstrap and module coordinator. · `src/main/java/io/blume/BlumePlugin.java`
- [Core config](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/config/BlumeConfig.java): shared config · Global plugin settings and placeholder expansion. · `src/main/java/io/blume/config/BlumeConfig.java`
- [Admin](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/admin/AdminModule.java): graylist module · Player verification, command broadcast logging, and LuckPerms promotion. · `src/main/java/io/blume/admin/AdminModule.java`
- [Graylist](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/admin/graylist/GraylistService.java): enforcement service · Tracks restricted players and vouch-based access. · `src/main/java/io/blume/admin/graylist/GraylistService.java`
- [LuckPerms](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/admin/luckperms/LuckPermsBridge.java): integration bridge · Connects verified players to LuckPerms group promotion. · `src/main/java/io/blume/admin/luckperms/LuckPermsBridge.java`
- [Enchants](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/enchants/EnchantsModule.java): custom enchant module · Framework and gameplay effects for custom block/item enchantments. · `src/main/java/io/blume/enchants/EnchantsModule.java`
- [Enchant core](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/enchants/BlumeEnchantments.java): enchant framework · Registers enchantments and shared checks/context. · `src/main/java/io/blume/enchants/BlumeEnchantments.java`
- [Auto-smelt](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/enchants/autosmelt/AutoSmeltListener.java): enchant listener · Transforms mined drops into smelted results. · `src/main/java/io/blume/enchants/autosmelt/AutoSmeltListener.java`
- [Veinminer](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/enchants/veinminer/VeinminerListener.java): enchant listener · Expands block breaking across connected ore blocks. · `src/main/java/io/blume/enchants/veinminer/VeinminerListener.java`
- [Ecology](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/ecology/EcologyModule.java): world mechanics module · Farming, grass, pollination, and custom seed/item mechanics. · `src/main/java/io/blume/ecology/EcologyModule.java`
- [Ecology items](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/ecology/items/EcologyItems.java): item definitions · Custom seeds and related gameplay items. · `src/main/java/io/blume/ecology/items/EcologyItems.java`
- [Wild crops](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/ecology/wild/WildCropPopulator.java): world listener · Places and protects naturally spawned crops. · `src/main/java/io/blume/ecology/wild/WildCropPopulator.java`
- [Pollination](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/ecology/pollination/BeePollinationListener.java): interaction listener · Adds bee-driven crop pollination behavior. · `src/main/java/io/blume/ecology/pollination/BeePollinationListener.java`
- [QoL](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/qol/QolModule.java): convenience module · Small event transforms for movement, block interaction, and drops. · `src/main/java/io/blume/qol/QolModule.java`
- [Creeper rebuild](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/qol/creeper/CreeperRebuildService.java): explosion service · Restores terrain after creeper damage. · `src/main/java/io/blume/qol/creeper/CreeperRebuildService.java`
- [Desire paths](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/qol/paths/DesirePathService.java): movement service · Tracks and accelerates frequently walked paths. · `src/main/java/io/blume/qol/paths/DesirePathService.java`
- [Resource pack](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/resourcepack/ResourcePackService.java): asset distributor · Serves Java resource-pack assets to clients. · `src/main/java/io/blume/resourcepack/ResourcePackService.java`
- [Geyser](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/geyser/GeyserAssetInstaller.java): bedrock bridge · Installs or adapts Bedrock-facing assets. · `src/main/java/io/blume/geyser/GeyserAssetInstaller.java`
- [Update check](https://github.com/junerhobart/blume/blob/main/src/main/java/io/blume/update/UpdateChecker.java): version checker · Compares releases and reports newer plugin versions. · `src/main/java/io/blume/update/UpdateChecker.java`

### Client assets

Resource packs and datapack artifacts shipped with the plugin.

- [Java assets](https://github.com/junerhobart/blume/tree/main/resourcepack/java): client pack source · Java edition textures, models, and language assets. · `resourcepack/java`
- [Bedrock assets](https://github.com/junerhobart/blume/tree/main/resourcepack/bedrock): geyser pack · Bedrock textures and manifest data for Geyser compatibility. · `resourcepack/bedrock`
- [Datapack](https://github.com/junerhobart/blume/tree/main/src/main/resources/blume_datapack): loot pack · Server datapack loot tables for custom items. · `src/main/resources/blume_datapack`

### Docs & release

Static docs site and repository automation.

- [Docs site](https://github.com/junerhobart/blume/blob/main/docs/index.html): static site · Feature documentation, media demos, and site scripts. · `docs/index.html`
- [CI / release](https://github.com/junerhobart/blume/blob/main/.github/workflows): github actions · Build, Pages deployment, and release publishing automation. · `.github/workflows`

## Connections

- BlumePlugin → Core config: loads · Bootstraps shared configuration before enabling features.
- BlumePlugin → Admin: enables · Registers the admin/graylist subsystem.
- BlumePlugin → Enchants: enables · Registers the custom enchantment subsystem.
- BlumePlugin → Ecology: enables · Registers farming and biome mechanics.
- BlumePlugin → QoL: enables · Registers local quality-of-life event transforms.
- BlumePlugin → Resource pack: serves · Publishes client-facing assets from the plugin runtime.
- BlumePlugin → Geyser: installs · Pushes Bedrock-compatible assets when Geyser is present.
- BlumePlugin → Update check: checks · Looks for newer releases during startup or maintenance.
- Admin → Graylist: uses · Routes vouching and access enforcement through the service.
- Admin → LuckPerms: bridges · Promotes verified players into LuckPerms groups.
- Enchants → Enchant core: registers · Sets up the shared enchantment framework and keys.
- Enchant core → Auto-smelt: drives · Dispatches the auto-smelt gameplay effect.
- Enchant core → Veinminer: drives · Dispatches the vein-mining gameplay effect.
- Ecology → Ecology items: defines · Creates the custom seed and ecology item set.
- Ecology → Wild crops: spawns · Controls wild crop generation and protection.
- Ecology → Pollination: handles · Applies pollination behavior to crops.
- QoL → Creeper rebuild: uses · Coordinates post-explosion terrain restoration.
- QoL → Desire paths: uses · Coordinates path wear and movement bonuses.
- Resource pack → Java assets: sources · Packages Java edition models, textures, and lang files.
- Resource pack → Bedrock assets: sources · Packages Bedrock-compatible asset definitions.
- Ecology items → Datapack: backed by · Custom seeds are mirrored in server-side loot tables.
- Docs site → CI / release: published by · Documentation site is deployed through GitHub Actions.
