How junerhobart/blume works
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: BlumePlugin.java BlumePlugin · EcologyModule.java Ecology · AdminModule.java Admin · BlumeEnchantments.java Enchant core
Components 24
Server plugin
Paper/Bukkit runtime, feature modules, and integrations.
- BlumePlugin · Main Paper/Bukkit plugin bootstrap and module coordinator.
src/main/java/io/blume/BlumePlugin.java - Core config · Global plugin settings and placeholder expansion.
src/main/java/io/blume/config/BlumeConfig.java - Admin · Player verification, command broadcast logging, and LuckPerms promotion.
src/main/java/io/blume/admin/AdminModule.java - Graylist · Tracks restricted players and vouch-based access.
src/main/java/io/blume/admin/graylist/GraylistService.java - LuckPerms · Connects verified players to LuckPerms group promotion.
src/main/java/io/blume/admin/luckperms/LuckPermsBridge.java - Enchants · Framework and gameplay effects for custom block/item enchantments.
src/main/java/io/blume/enchants/EnchantsModule.java - Enchant core · Registers enchantments and shared checks/context.
src/main/java/io/blume/enchants/BlumeEnchantments.java - Auto-smelt · Transforms mined drops into smelted results.
src/main/java/io/blume/enchants/autosmelt/AutoSmeltListener.java - Veinminer · Expands block breaking across connected ore blocks.
src/main/java/io/blume/enchants/veinminer/VeinminerListener.java - Ecology · Farming, grass, pollination, and custom seed/item mechanics.
src/main/java/io/blume/ecology/EcologyModule.java - Ecology items · Custom seeds and related gameplay items.
src/main/java/io/blume/ecology/items/EcologyItems.java - Wild crops · Places and protects naturally spawned crops.
src/main/java/io/blume/ecology/wild/WildCropPopulator.java - Pollination · Adds bee-driven crop pollination behavior.
src/main/java/io/blume/ecology/pollination/BeePollinationListener.java - QoL · Small event transforms for movement, block interaction, and drops.
src/main/java/io/blume/qol/QolModule.java - Creeper rebuild · Restores terrain after creeper damage.
src/main/java/io/blume/qol/creeper/CreeperRebuildService.java - Desire paths · Tracks and accelerates frequently walked paths.
src/main/java/io/blume/qol/paths/DesirePathService.java - Resource pack · Serves Java resource-pack assets to clients.
src/main/java/io/blume/resourcepack/ResourcePackService.java - Geyser · Installs or adapts Bedrock-facing assets.
src/main/java/io/blume/geyser/GeyserAssetInstaller.java - Update check · 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 · Java edition textures, models, and language assets.
resourcepack/java - Bedrock assets · Bedrock textures and manifest data for Geyser compatibility.
resourcepack/bedrock - Datapack · Server datapack loot tables for custom items.
src/main/resources/blume_datapack
Docs & release
Static docs site and repository automation.
- Docs site · Feature documentation, media demos, and site scripts.
docs/index.html - CI / release · Build, Pages deployment, and release publishing automation.
.github/workflows
Connections 22
- 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.