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: ENTITY_LIGHTNING_BOLT_THUNDER Cooldown: 20s
VOID CORE Passive: 20% dodge chance Active: Blink + blindness Particles: PORTAL + DRAGON_BREATH Sound: ENTITY_ENDERMAN_TELEPORT Cooldown: 18s
EARTH CORE Passive: Resistance II Active: Stone cage trap Particles: BLOCK_CRACK (STONE) Sound: BLOCK_STONE_PLACE Cooldown: 35s
CELESTIAL CORE Passive: Regeneration I Active: Heal self + damage nearby enemies Particles: END_ROD + HEART Sound: ENTITY_PLAYER_LEVELUP Cooldown: 40s
Each core must include full lore explaining passive, active and cooldown.
================================================== PERMISSIONS ==================================================
heavencores.admin • /heavencore give <player> <core> • /heavencore giveall <player> • /heavencore INVENTORY GUI
heavencores.ritual • /start ritual <core> • /close ritual • /forceclose ritual
================================================== CORE INVENTORY GUI ==================================================
Inventory INVENTORY GUI title: "Heaven Cores" • Shows all 6 cores • Clicking gives core • Admin only • Lore visible
================================================== RITUAL SYSTEM (FULL + FINAL FIXED) ==================================================
Prevent starting ritual if already active.
-------------------------------------------------- CRITICAL MOVEMENT RULE --------------------------------------------------
Movement lock ONLY during: • 3-second ascension lift • 5-second player lottery
After player selection: • REMOVE ALL movement restrictions • Players move freely on ground and in air • Target player fully playable • No camera freeze • No zoom effect
-------------------------------------------------- PHASE 1 — ASCENSION (INSTANT TITLE) --------------------------------------------------
Immediately when ritual starts:
TITLE: HEAVEN SMP <CORE NAME> SUBTITLE: Choosing Player
ALL players: • Smooth velocity lift to ~10 blocks (3 sec) • Can look around freely • Cannot walk during lift • No teleport spam • No levitation spam • Cancel fall damage during lift
Particles: PORTAL + END_ROD + FLAME Sound: Beacon + End portal ambience
-------------------------------------------------- PHASE 2 — PLAYER LOTTERY (5 SEC) --------------------------------------------------
After lift → wait 1 sec → start lottery.
Duration EXACTLY 5 seconds: • Rapidly cycle ALL player names • Tick sound each change
Then instantly select random player:
TITLE: <PlayerName> SUBTITLE: Player has been selected
REMOVE movement lock immediately.
-------------------------------------------------- PHASE 3 — BOUNTY HUNT (20 MIN) --------------------------------------------------
BossBar countdown timer.
ActionBar updates EVERY SECOND:
Target: <player> | X Y Z
Players move freely everywhere.
-------------------------------------------------- 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 • Particle settings • Sound settings • 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