Rewrite the ENTIRE HeavenCores plugin from scratch.
Target:
Minecraft Paper/Spigot 1.20 Java 17 Maven project Must compile with: mvn clean package Production ready.
================================================== PLUGIN NAME ================================================== HeavenCores
================================================== CORE ABILITY SYSTEM ==================================================
Create 6 Nether Star cores with CustomModelData support.
Holding core → Passive ability active Right click → Active ability
Cooldown system: • Per player • Per core • Independent cooldowns • ActionBar shows remaining seconds • Small cooldown BossBar while ability cooling down
-------------------------------------------------- CORES + PARTICLES + SOUNDS --------------------------------------------------
INFERNO CORE Passive: Fire immune + enemies burn when hit Active: 10 block fire explosion storm Particles: FLAME + LAVA + SMOKE Sound: ENTITY_GENERIC_EXPLODE Cooldown: 25s
FROST CORE Passive: Freeze water under feet Active: Freeze enemies 5 sec Particles: SNOWFLAKE + CLOUD Sound: BLOCK_GLASS_BREAK Cooldown: 30s
STORM CORE Passive: Speed II Active: Lightning rain Particles: ELECTRIC_SPARK Sound: LIGHTNING_THUNDER Cooldown: 20s
VOID CORE Passive: 20% dodge chance Active: Blink + blindness Particles: PORTAL + DRAGON_BREATH Sound: ENDERMAN_TELEPORT Cooldown: 18s
EARTH CORE Passive: Resistance II Active: Stone cage trap Particles: BLOCK_CRACK_STONE Sound: STONE_PLACE Cooldown: 35s
CELESTIAL CORE Passive: Regeneration I Active: Heal self + damage enemies Particles: END_ROD + HEART Sound: PLAYER_LEVELUP Cooldown: 40s
Each core must contain full lore.
================================================== PERMISSIONS ==================================================
heavencores.admin → give + INVENTORY GUI heavencores.ritual → ritual commands
Commands: /heavencore give <player> <core> /heavencore giveall <player> /heavencore INVENTORY GUI
================================================== CORE INVENTORY GUI ==================================================
Inventory INVENTORY GUI: "Heaven Cores" Click item → give core Admin only.
================================================== RITUAL SYSTEM (FULL + FIXED) ==================================================
Command: /start ritual <core>
Prevent starting if ritual already active.
-------------------------------------------------- PHASE 1 — ASCENSION (INSTANT TITLE FIX) --------------------------------------------------
Immediately when command runs:
TITLE: HEAVEN SMP <CORE NAME> SUBTITLE: Choosing Player
No delay.
ALL players: • Smooth velocity lift to ~10 blocks (3 seconds) • Can LOOK around freely • Cannot walk during lift • NO camera zoom • NO teleport spam • NO levitation spam • NO fall damage during lift
Particles around players:
PORTAL + END_ROD + FLAME Sound: Beacon + End portal ambience
-------------------------------------------------- PHASE 2 — PLAYER LOTTERY (TIMING FIX) --------------------------------------------------
After lift completes → wait 1 second → start lottery.
Lottery duration EXACTLY 5 seconds: • Rapidly cycle ALL online player names • Tick sound each change • Players still floating
After 5 sec → instantly select random player.
TITLE: <PlayerName> SUBTITLE: Player has been selected
Broadcast bounty message.
IMPORTANT:
REMOVE movement lock immediately after selection.
Players must walk normally now.
-------------------------------------------------- PHASE 3 — BOUNTY HUNT (COORD FIX) --------------------------------------------------
Duration: 20 minutes.
BossBar timer countdown.
ActionBar MUST update EVERY SECOND:
Target: <player> | X Y Z
Live coordinates required.
-------------------------------------------------- TARGET SHIFT SYSTEM --------------------------------------------------
If target dies: • Killer becomes new target instantly • Timer DOES NOT reset • Broadcast new hunted player.
-------------------------------------------------- RITUAL END --------------------------------------------------
/close ritual → cancel safely /forceclose ritual → give target core + end ritual
Forceclose MUST ALWAYS GIVE CORE.
================================================== CONFIG SYSTEM ==================================================
config.yml: • Cooldowns • Ritual duration • Levitation height • Ability radius/damage • Particles • Sounds • BossBar colors
================================================== OUTPUT REQUIREMENTS ==================================================
Provide FULL Maven project: pom.xml plugin.yml config.yml All Java classes implemented.
Use Spigot ActionBar API.
Must compile: mvn clean package