Minecraft AbilityCraft — Complete Plugin Development Prompt
Create a complete, production-ready Minecraft Java Edition plugin called AbilityCraft.
The plugin is a progression-based Ability Tools, Weapons, Mace, Elytra & Armor system where players obtain special items through crafting and level them up by using them.
---
- PLATFORM
Target:
- Minecraft Java Edition
- Paper
- Java 21
- Modern Minecraft versions supported by the selected Paper API
- No client-side mod required
- No resource pack required
Use vanilla Minecraft materials, items, particles, sounds and crafting mechanics wherever possible.
---
- CORE CONCEPT
Create special Ability Items.
Each Ability Item must have:
- Unique crafting recipe
- Unique internal Ability ID
- Unique ability
- Level 1
- Level 2
- Level 3 MAX
- Progression system
- Ability-specific level-up target
- Unique particle effect
- Appropriate sound
- Custom name
- Custom lore
- Persistent data
IMPORTANT
Normal players must obtain Ability Items through crafting.
Do NOT provide normal players with commands to obtain Ability Items.
Admin commands are allowed only for administration/testing.
---
- ITEM IDENTITY
Never identify an Ability Item only by its display name or lore.
Use:
"PersistentDataContainer"
with a unique "NamespacedKey".
Example:
"abilitycraft:item_id = thunder_pickaxe"
Also store required progression information safely.
The item must remain recognized after:
- Anvil rename
- Enchanting
- Inventory movement
- Dropping
- Picking up
- Server restart
- Player logout/login
Players must not be able to create fake Ability Items simply by copying the item's name or lore.
---
- LEVEL SYSTEM
Every Ability Item has exactly 3 levels:
Level 1 → Level 2 → Level 3 MAX
Each item has its own progression objective.
Examples:
- Pickaxe → ores/blocks mined
- Axe → damage dealt/mobs killed
- Shovel → blocks dug
- Hoe → crops harvested
- Sword → enemies killed/damage dealt
- Bow → successful arrow hits
- Mace → successful mace/smash hits
- Elytra → blocks travelled while flying
- Boots → distance travelled/jumps
- Chestplate → damage received/absorbed
- Helmet → time worn
Do not use a generic XP system for every item.
---
- LEVEL-UP BEHAVIOR
When the required target is completed:
- Increase item level.
- Update ability power.
- Update item lore.
- Show a level-up message.
- Play a level-up sound.
- Spawn a special particle burst.
- Show the new level through ActionBar or chat.
Example:
"⚡ LEVEL UP!"
"Thunder Pickaxe → Level 2"
At Level 3:
"⚡ MAX LEVEL REACHED!"
Once Level 3 is reached:
- No further progression.
- Level cannot exceed 3.
- Display "MAX LEVEL".
---
- ITEM LORE
Example:
⚡ Thunder Pickaxe
Ability: Thunder Strike Level: 2/3
Progress: 347 / 500 Ores
Current Power: 15% Lightning Chance
Next Level:
Mine 153 more ores
At Level 3:
⚡ Thunder Pickaxe
Ability: Thunder Strike Level: 3/3
MAX LEVEL
Current Power: 25% Lightning Chance
Do not update lore every tick.
Only update when progress/level changes or at a reasonable interval.
---
- PARTICLE SYSTEM
Every Ability Item must have a unique themed particle effect.
Examples:
Thunder: "ELECTRIC_SPARK"
Fire: "FLAME" "LAVA"
Void: "PORTAL" "REVERSE_PORTAL"
Frost: "SNOWFLAKE"
Nature: "HAPPY_VILLAGER"
Wind: "CLOUD" "GUST"
Soul: "SOUL" "SOUL_FIRE_FLAME"
Ender: "PORTAL"
Solar: "END_ROD"
Particles must become stronger at higher levels.
Level 1:
Small effect
Level 2:
Medium effect
Level 3:
Strong effect
Make particle settings configurable:
- Amount
- Interval
- Radius
- Enabled/disabled
Never create excessive particles that cause server lag.
---
- ABILITY TOOLS
- Thunder Pickaxe
Recipe:
Diamond Pickaxe + Lightning Rod + Amethyst Shard
Level 1: 8% chance for lightning effect while mining ores.
Level 2: 15% chance + stronger effect.
Level 3: 25% chance + controlled AoE lightning damage.
Particle:
ELECTRIC_SPARK
Progress: 100 → 500 → 1500 ores mined
---
- Inferno Pickaxe
Recipe:
Diamond Pickaxe + Blaze Rod + Magma Cream
Level 1: 10% auto-smelt chance.
Level 2: 20%.
Level 3: 35% + fire effect.
Particle:
FLAME / LAVA
Progress: 250 → 1000 → 3000 blocks mined
---
- Void Pickaxe
Recipe:
Netherite Pickaxe + Echo Shard + Obsidian
Level 1: 5% chance to automatically collect mined drops.
Level 2: 12%.
Level 3: 20% + stronger magnet effect.
Particle:
PORTAL / REVERSE_PORTAL
Progress: 500 → 2000 → 5000 blocks mined
---
- Gale Axe
Recipe:
Diamond Axe + Breeze Rod + Feather
Level 1:
Small knockback.
Level 2:
Stronger knockback.
Level 3:
AoE wind burst.
Particle:
CLOUD / GUST
Progress: 100 → 500 → 1500 mobs hit
---
- Vampire Axe
Recipe:
Netherite Axe + Ghast Tear + Crimson Fungus
Level 1: 3% lifesteal.
Level 2: 6%.
Level 3: 10% + regeneration after kills.
Particle:
HEART / DAMAGE_INDICATOR
Progress: 1000 → 5000 → 15000 damage dealt
---
- Frost Axe
Recipe:
Diamond Axe + Packed Ice + Snowball
Level 1: 1 second Slowness.
Level 2: 2 seconds.
Level 3: 3 seconds + freeze chance.
Particle:
SNOWFLAKE
Progress: 100 → 400 → 1000 mobs hit
---
- Wind Shovel
Recipe:
Diamond Shovel + Feather + Breeze Rod
Level 1:
Digging gives a small speed burst.
Level 2:
Stronger speed burst.
Level 3:
Small wind wave.
Particle:
CLOUD / GUST
Progress: 250 → 1000 → 3000 blocks dug
---
- Magma Shovel
Recipe:
Netherite Shovel + Magma Cream + Nether Brick
Level 1:
Improved sand/gravel digging.
Level 2: 10% auto-smelt chance where applicable.
Level 3: 20% + fire effect.
Particle:
LAVA / FLAME
Progress: 300 → 1200 → 3500 blocks dug
---
- Nature Hoe
Recipe:
Diamond Hoe + Moss Block + Bone Meal
Level 1: 5% bonus crop chance.
Level 2: 12%.
Level 3: 20% + nearby crop growth.
Particle:
HAPPY_VILLAGER / COMPOSTER
Progress: 100 → 500 → 2000 crops harvested
---
- Storm Hoe
Recipe:
Netherite Hoe + Copper Block + Amethyst
Level 1:
Electric harvest effect.
Level 2: 10% bonus crop chance.
Level 3: 20% bonus crop chance + lightning effect.
Particle:
ELECTRIC_SPARK
Progress: 200 → 750 → 2500 crops harvested
---
- SPECIAL WEAPONS
- Shadow Sword
Recipe:
Netherite Sword + Echo Shard + Phantom Membrane
Level 1:
Sneak + Right Click → short invisibility.
Level 2:
Longer invisibility + Speed.
Level 3:
Shadow Dash + invisibility.
Particle:
SMOKE / PORTAL
Progress: 25 → 100 → 300 enemies killed
---
- Thunder Sword
Recipe:
Netherite Sword + Lightning Rod + Copper Block
Level 1: 5% lightning chance.
Level 2: 10%.
Level 3: 18% + AoE lightning.
Particle:
ELECTRIC_SPARK
Progress: 25 → 100 → 300 mobs killed
---
- Inferno Sword
Recipe:
Diamond Sword + Blaze Rod + Magma Cream
Level 1: 2-second fire.
Level 2: 4-second fire.
Level 3: 6-second fire + AoE.
Particle:
FLAME / LAVA
Progress: 1000 → 5000 → 15000 damage dealt
---
- Frost Sword
Recipe:
Diamond Sword + Blue Ice + Prismarine Crystal
Level 1:
Slowness I.
Level 2:
Slowness II.
Level 3:
Slowness + freeze chance.
Particle:
SNOWFLAKE
Progress: 100 → 500 → 1500 enemies hit
---
- Soul Reaper
Recipe:
Netherite Sword + Soul Sand + Wither Skeleton Skull
Level 1: 10% kill chance for temporary Strength.
Level 2: 20%.
Level 3: 30% + Soul particle burst.
Particle:
SOUL / SOUL_FIRE_FLAME
Progress: 50 → 200 → 500 hostile mobs killed
---
- Cyclone Bow
Recipe:
Bow + Breeze Rod + Feather
Level 1:
Arrow hit → knockback.
Level 2:
Stronger knockback.
Level 3:
AoE wind burst.
Particle:
CLOUD / GUST
Progress: 50 → 250 → 750 successful hits
---
- Venom Bow
Recipe:
Bow + Spider Eye + Fermented Spider Eye
Level 1:
Poison I.
Level 2:
Poison II.
Level 3:
Longer Poison II.
Particle:
SPELL_MOB_AMBIENT
Progress: 50 → 200 → 600 successful hits
---
- Ender Bow
Recipe:
Bow + Ender Pearl + Eye of Ender
Level 1: 5% teleport effect.
Level 2: 10%.
Level 3: 15% + Ender Dash.
Particle:
PORTAL
Progress: 50 → 250 → 750 successful hits
---
- MACE ABILITIES
- Gravity Mace
Recipe:
Vanilla Mace + Heavy Core + Echo Shard + Obsidian
Level 1:
Successful mace hit creates extra knockback.
Level 2:
Stronger knockback + small gravity pull.
Level 3:
Powerful gravity burst on smash attack + controlled AoE damage.
Particle:
REVERSE_PORTAL / END_ROD
Progress: 50 → 200 → 500 successful mace hits
Add a configurable cooldown.
---
- Meteor Mace
Recipe:
Mace + Nether Star + Blaze Rod + Fire Charge
Level 1:
Smash attack creates small flame impact.
Level 2:
Larger impact + additional fire damage.
Level 3:
Meteor-style controlled AoE impact.
Particle:
FLAME / LAVA / EXPLOSION
Progress: 50 → 200 → 500 successful smash attacks
IMPORTANT:
Do not destroy terrain by default.
Do not create uncontrolled explosions.
---
- ABILITY ELYTRA
- Storm Elytra
Recipe:
Elytra + Lightning Rod + Amethyst Shard + Copper Block
Level 1:
Electric particle trail while flying.
Level 2:
Improved flight acceleration + landing electric effect.
Level 3:
Powerful electric aura + controlled lightning landing effect.
Particle:
ELECTRIC_SPARK / END_ROD
Progress: 2000 → 7500 blocks flown
Add cooldown to landing ability.
---
- Void Elytra
Recipe:
Elytra + Echo Shard + Ender Pearl + Obsidian
Level 1:
Portal particle trail.
Level 2:
Improved flight control + small dash chance.
Level 3:
Controlled mid-air dash + portal burst.
Particle:
PORTAL / REVERSE_PORTAL
Progress: 2000 → 7500 blocks flown
---
- Inferno Elytra
Recipe:
Elytra + Blaze Rod + Fire Charge + Magma Cream
Level 1:
Fire particle trail.
Level 2:
Stronger fire trail.
Level 3:
Powerful flame trail + controlled landing fire burst.
Particle:
FLAME / LAVA
Progress: 2000 → 7500 blocks flown
Do not grief terrain by default.
---
- ABILITY ARMOR
- Thunder Helmet
Recipe:
Diamond Helmet + Lightning Rod + Amethyst
Level 1:
Night Vision.
Level 2:
Night Vision + Speed.
Level 3:
Night Vision + Speed + storm lightning aura.
Particle:
ELECTRIC_SPARK
Progress: 10 → 30 → 90 minutes worn
---
- Inferno Chestplate
Recipe:
Netherite Chestplate + Blaze Rod + Magma Block
Level 1:
Fire Resistance.
Level 2:
Fire Resistance + weak Fire Aura.
Level 3:
Fire Resistance + strong Fire Aura.
Particle:
FLAME / LAVA
Progress: 500 → 2000 → 5000 fire/lava damage survived
---
- Shadow Chestplate
Recipe:
Netherite Chestplate + Echo Shard + Phantom Membrane
Level 1:
Sneaking gives short invisibility.
Level 2:
Longer invisibility.
Level 3:
Invisibility + Speed while sneaking.
Particle:
SMOKE
Progress: 5 → 20 → 60 minutes sneaking
---
- Titan Chestplate
Recipe:
Netherite Chestplate + Iron Block + Obsidian
Level 1:
Resistance I.
Level 2:
Resistance I + Knockback Resistance.
Level 3:
Resistance II.
Particle:
BLOCK_CRACK
Progress: 1000 → 5000 → 15000 damage received
---
- Nature Helmet
Recipe:
Diamond Helmet + Moss Block + Glow Berries
Level 1:
Small regeneration.
Level 2:
Stronger regeneration.
Level 3:
Regeneration + Saturation.
Particle:
HAPPY_VILLAGER / FALLING_SPORE_BLOSSOM
Progress: 100 → 500 → 1500 crop/nature interactions
---
- Frost Chestplate
Recipe:
Diamond Chestplate + Blue Ice + Snow Block
Level 1:
Powder Snow immunity.
Level 2:
Nearby enemies receive Slowness.
Level 3:
Strong Frost Aura + freeze chance.
Particle:
SNOWFLAKE
Progress: 500 → 2000 → 5000 blocks travelled on snow/ice
---
- Wind Leggings
Recipe:
Diamond Leggings + Feather + Breeze Rod
Level 1:
Speed I.
Level 2:
Speed II.
Level 3:
Speed II + reduced fall damage.
Particle:
CLOUD / GUST
Progress: 1000 → 5000 → 15000 blocks travelled
---
- Angel Boots
Recipe:
Diamond Boots + Feather + Phantom Membrane + Glowstone
Level 1:
Jump Boost I.
Level 2:
Jump Boost II + reduced fall damage.
Level 3:
Double Jump.
Particle:
END_ROD / CLOUD
Progress: 100 → 500 → 1500 jumps
---
- Void Boots
Recipe:
Netherite Boots + Ender Pearl + Obsidian + Echo Shard
Level 1:
Short teleport.
Level 2:
Longer teleport.
Level 3:
Teleport + short cooldown dash.
Particle:
PORTAL / REVERSE_PORTAL
Progress: 1000 → 5000 → 15000 blocks travelled
---
- Vampire Leggings
Recipe:
Netherite Leggings + Ghast Tear + Red Mushroom
Level 1:
Mob kill → small regeneration.
Level 2:
Stronger regeneration.
Level 3:
Mob kill → Regeneration + Strength.
Particle:
HEART / DAMAGE_INDICATOR
Progress: 50 → 250 → 750 hostile mobs killed
---
- FULL ARMOR SET BONUSES
Implement set detection.
If a player wears all 4 pieces of a compatible Ability Armor Set, activate a Full Set Bonus.
Storm Set
- Speed
- Lightning particle aura
- Storm effects
- Level 3 → periodic controlled AoE lightning
Inferno Set
- Fire Resistance
- Lava immunity
- Fire Aura
- Level 3 → Flame Burst
Shadow Set
- Sneak invisibility
- Shadow Dash
- Speed
- Level 3 → improved dash
Frost Set
- Ice walking
- Frost Aura
- Slowness
- Level 3 → freeze chance
Nature Set
- Regeneration
- Saturation
- Crop growth bonus
- Level 3 → nearby crops automatically grow
Set bonuses must only activate when the required complete set is equipped.
---
- ADMIN COMMANDS
Create:
"/ability give <player> <item> [level]"
"/ability list"
"/ability info <item>"
"/ability level <player> <item> <1-3>"
"/ability reset <player> <item>"
"/ability reload"
Permission:
"abilitycraft.admin"
Only admins/players with the permission can use these commands.
Normal players must NOT have a command to obtain Ability Items.
---
- CONFIGURATION
Create a clean "config.yml".
Allow configuration of:
- Ability damage
- Ability chance
- Ability cooldown
- Level requirements
- Particle amount
- Particle interval
- Particle radius
- Sounds
- Messages
- Recipes
- Set bonuses
- Enabled/disabled abilities
- Disabled worlds
- Debug mode
Example:
particles: enabled: true interval: 5 amount: 5
abilities: thunder_pickaxe: enabled: true level_1_chance: 0.08 level_2_chance: 0.15 level_3_chance: 0.25
---
- COOLDOWN SYSTEM
Abilities that can be abused must have cooldowns.
Prevent:
- Teleport spam
- Lightning spam
- AoE spam
- Double-jump spam
- Elytra dash spam
- Excessive regeneration
- Excessive particles
Display cooldown through ActionBar.
Example:
"⚡ Thunder Strike: READY"
or
"⚡ Thunder Strike: 4.2s"
Cooldowns must be configurable.
---
- DATA PERSISTENCE
Progression must survive:
- Server restart
- Player logout/login
- Item drop
- Item pickup
- Inventory movement
Use:
- PersistentDataContainer for item identity
- Safe persistent storage for progression if required
Multiple Ability Items must be able to exist simultaneously.
Do not store progression only by player UUID because one player may own multiple copies of the same Ability Item.
---
- MULTI-VERSION SUPPORT
The plugin must use a version-adapter architecture.
Keep the core plugin version-independent.
Create something similar to:
common/ version/ v1_xx_x/ v1_xx_x/
Use a common interface such as:
"AbilityVersionAdapter"
Example methods:
- "createAbilityItem()"
- "registerRecipes()"
- "spawnParticles()"
- "isMaterialSupported()"
- "isParticleSupported()"
- "isFeatureSupported()"
- "applyVersionSpecificEffect()"
The plugin automatically detects the server version and selects the appropriate adapter.
---
- IMPORTANT VERSION RULE
Do NOT pretend that newer Minecraft features exist on older versions.
For example:
- Mace requires a Minecraft version where Mace exists.
- Heavy Core requires its corresponding version.
- Breeze Rod requires its corresponding version.
- New particles must not be referenced on versions that do not support them.
If an Ability Item requires an unavailable vanilla feature:
- Do not register its recipe.
- Disable only that specific Ability Item.
- Keep the rest of the plugin running.
- Log a clear message.
Example:
"[AbilityCraft] Meteor Mace disabled: required material is unavailable on this Minecraft version."
Never crash the server because of version incompatibility.
---
- NMS RULE
Avoid NMS whenever possible.
Prefer:
- Paper API
- Bukkit API
- Adventure API
- PersistentDataContainer
- NamespacedKey
- Modern Paper events
If NMS is absolutely required for a version-specific feature:
- Put it only inside the relevant version adapter.
- Never expose NMS code to the core system.
---
- ELYTRA PERFORMANCE
Elytra particles must not run excessively.
Do NOT create expensive particle tasks for every player every tick.
Use configurable intervals.
Disable Elytra abilities when:
- Player is dead
- Player is spectator
- Player is in a disabled world
- Ability is on cooldown
---
- WORLD CONFIGURATION
Allow admins to disable AbilityCraft in specific worlds.
Example:
disabled-worlds: - world_pvp_disabled - event_world
No ability should activate in disabled worlds.
---
- PERFORMANCE REQUIREMENTS
Optimize the plugin for multiplayer.
Do not:
- Scan all players every tick
- Create huge particle counts
- Perform unnecessary database writes
- Use expensive synchronous operations unnecessarily
- Run unnecessary repeating tasks
Prefer event-driven logic.
Clean up:
- Cooldowns
- Temporary effects
- Cached data
- Player references
when they are no longer required.
---
- ERROR HANDLING
Gracefully handle:
- Invalid Ability ID
- Invalid command
- Missing configuration
- Invalid recipe
- Unsupported material
- Unsupported particle
- Corrupted progression
- Offline player
- Reload errors
Never crash the server because of an Ability Item.
Log useful information to console.
---
- PROJECT STRUCTURE
Use clean modular architecture.
Example:
src/main/java/ abilitycraft/ AbilityCraft.java
ability/ Ability.java AbilityManager.java ThunderAbility.java FireAbility.java VoidAbility.java ...
item/ AbilityItem.java AbilityItemManager.java
progression/ ProgressionManager.java LevelManager.java
recipe/ RecipeManager.java
armor/ ArmorManager.java SetBonusManager.java
weapon/ WeaponManager.java
particle/ ParticleManager.java
command/ AbilityCommand.java
listener/ MiningListener.java CombatListener.java ArmorListener.java ElytraListener.java ProgressionListener.java
storage/ DataManager.java
config/ ConfigManager.java
version/ AbilityVersionAdapter.java ...
util/ CooldownManager.java ItemUtil.java
Keep each ability modular.
Do NOT create one enormous Java class containing the entire plugin.
---
- FINAL QUALITY REQUIREMENTS
Do NOT provide pseudocode.
Do NOT leave TODOs.
Do NOT leave placeholder methods.
Do NOT provide fake implementations.
Create the actual working source code.
Every:
- Ability
- Recipe
- Command
- Level system
- Particle effect
- Progression target
- Cooldown
- Item identity
- Data persistence
- Armor set bonus
- Mace ability
- Elytra ability
must actually work.
Before finalizing the project, verify:
- Imports are correct.
- No deprecated/broken API is unnecessarily used.
- Recipes register correctly.
- Commands work.
- Permissions work.
- PDC item identification works.
- Level progression works.
- Level 3 MAX works.
- Lore updates correctly.
- Data survives restart.
- Particles are optimized.
- Cooldowns work.
- Armor detection works.
- Set bonuses work.
- Mace abilities work on supported versions.
- Elytra abilities work.
- Unsupported-version features fail gracefully.
- "plugin.yml" is valid.
- Build configuration is valid.
- The project compiles successfully.
And wait for next prompt to make it more professional Make it ready for next prompt
Create the Gradle/Paper project metadata and default configuration.
Build the version-independent ability registry, PDC item identity, progression, recipes, particles, and cooldown services.
Add modular effects, armor/set handling, listeners, and admin command support for all listed ability IDs.
Register everything from the plugin entry point with graceful unsupported-material handling.
Initialized the AbilityCraft Paper/Java 21 project with:
Gradle build configuration and
plugin.yml33 registered ability definitions with unique recipes
PersistentDataContainer item identity, levels, progress, and per-item instance IDs
Configurable progression targets, chances, cooldowns, particles, disabled worlds, and set settings
Progression tracking for mining, combat, kills, crops, travel, elytra flight, armor use, sneaking, damage, and jumps
Ability effects for tools, weapons, bows, mace, elytra, armor, and armor sets
Version adapter using XSeries for materials and particles
Optimized particle scheduling and cooldown cleanup
Admin-only commands:
/ability give/ability list/ability info/ability level/ability reset/ability reload
The project is ready for the next prompt for refinement, balancing, UI improvements, expanded set armor pieces, or additional production hardening.
Here next prompt
- REQUIRED FINAL OUTPUT
Provide the complete project including:
Complete Java source code Build file plugin.yml config.yml Any required data/config files README Installation guide Command documentation Permission documentation All crafting recipes All 33 Ability Items All Level 1/2/3 abilities All progression requirements Particle system Cooldown system Armor Set Bonus system Mace system Elytra system Multi-version compatibility system The final result must be a fully functional, optimized, maintainable Minecraft AbilityCraft plugin, not a demo or conceptual example.
Audit the existing project and build setup.
Implement the core plugin, configuration, progression, cooldowns, particles, armor, mace, and Elytra systems.
Add all 33 ability items, their Level 1/2/3 behavior, recipes, commands, permissions, and GUI integration.
Add multi-version compatibility through the existing project conventions.
Complete
README, installation, command/permission, progression, recipe, and ability documentation.
Task 1 is complete: the repository already contains a 33-item foundation, but several systems are incomplete or inconsistent. I’m tightening the core behavior first, including armor-set matching, missing progression tracking, and cleanup before documenting the full feature set.
The core systems are now aligned around the existing 33 definitions: configurable requirements/chances are explicit, invalid set references are removed, hand-held set pieces work, armor-only kill progression is tracked, and projectile tracking is bounded. I’m adding the player-facing ability menu and then the complete documentation package.
Implemented the complete AbilityCraft plugin project.
Included:
33 fully registered ability items
Level 1/2/3 progression and per-item persistent progress
Configurable requirements and activation chances
Particle effects and configurable particle settings
Cooldown system with action-bar feedback
Armor piece effects and functional armor sets
Mace hit and smash-attack abilities
Elytra flight, boost, landing, and damage abilities
Multi-version material and particle handling through XSeries
Unsupported-material safeguards for older versions
Complete shaped crafting recipes
Player
/ability menuGUIAdministration commands:
/ability give/ability list/ability info/ability level/ability reset/ability reload
Permission nodes:
abilitycraft.menuabilitycraft.admin
Full
config.ymlcontaining all 33 ability configurationsUpdated
plugin.ymlGradle build configuration
Comprehensive README with installation, commands, permissions, recipes, progression, abilities, armor sets, and compatibility details
Target platform: Paper 1.20.5+ with Java 21.
package abilitycraft;
import abilitycraft.ability.AbilityRegistry;
import abilitycraft.armor.ArmorService;
import abilitycraft.command.AbilityCommand;
import abilitycraft.effect.AbilityEffectService;
import abilitycraft.item.AbilityItemService;
import abilitycraft.inventory.GUIListener;
import abilitycraft.inventory.GUIManager;
import abilitycraft.listener.AbilityListener;
import abilitycraft.particle.ParticleManager;
import abilitycraft.progression.ProgressionService;
import abilitycraft.recipe.RecipeManager;
import abilitycraft.util.CooldownManager;
import abilitycraft.version.AbilityVersionAdapter;
import abilitycraft.version.PaperVersionAdapter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public final class AbilityCraft extends JavaPlugin {
private AbilityRegistry registry;
private AbilityItemService items;
private ProgressionService progression;
private CooldownManager cooldowns;
private ParticleManager particles;
private ArmorService armor;
private GUIManager guiManager;
@Override
public void onEnable() {
saveDefaultConfig();
AbilityVersionAdapter adapter = new PaperVersionAdapter(this);
registry = new AbilityRegistry(this);
items = new AbilityItemService(this, registry, adapter);
progression = new ProgressionService(this, items);
cooldowns = new CooldownManager(this);
particles = new ParticleManager(this, registry, items);
armor = new ArmorService(this, registry, items, progression, particles);
guiManager = new GUIManager();
new RecipeManager(this, registry, items, adapter).registerAll();
AbilityEffectService effects = new AbilityEffectService(this, registry, items, progression, cooldowns, particles);
Bukkit.getPluginManager().registerEvents(new AbilityListener(this, registry, items, progression, effects, armor, particles), this);
Bukkit.getPluginManager().registerEvents(armor, this);
Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
AbilityCommand command = new AbilityCommand(this, registry, items, guiManager);
if (getCommand("ability") != null) {
getCommand("ability").setExecutor(command);
getCommand("ability").setTabCompleter(command);
}
particles.start();
armor.start();
getLogger().info("AbilityCraft enabled with " + registry.all().size() + " ability definitions.");
}
@Override
public void onDisable() {
if (cooldowns != null) {
cooldowns.clear();
}
}
public AbilityRegistry registry() { return registry; }
public AbilityItemService items() { return items; }
public ProgressionService progression() { return progression; }
public CooldownManager cooldowns() { return cooldowns; }
public GUIManager guiManager() { return guiManager; }
}