khromiumm

HeadLife SMP Plugin Players obtain heads using a Reroll Token (opens reroll INVENTORY GUI).

Heads can be leveled to Level 3 using a Level Book.

Heads must be worn in the helmet slot to activate abilities.

ABILITIES ARE ACTIVATED BY DOING /l2 or /l3 based on which level you are, BEING ON LEVEL 3 YOU CAN ALSO DO SHIFT + RIGHT CLICK!

βš”οΈ No 1: Titan Head Level 1: Auto Sharpness V on weapons Level 2: Shift + Offhand β†’ Clear potion effects in 10 block radius Level 3: Every 3 crits β†’ next hit 2x damage, every 8 crits β†’ 2x damage + knockback Weakness: Permanent Slowness I

🌌 No 2: Cosmic Head** Level 1: 15% chance attacks phase through you Level 2: Right Click β†’ Astral Projection (ghost form, fly 8s) Level 3: Shift + Left Click β†’ Shoot 5 daggers (3 hearts each, disable abilities 10s) Weakness: +20% melee damage taken πŸ’š No 3: Vital Head Level 1: Immune to Wither Level 2: Heart Drainer removes 4 hearts over 20s in a 10 block radius Level 3: Circle of Life β†’ 8 block aura slowly repairs armor Weakness: +15% fire damage

πŸŒͺ️ No 4: Cyclone Head Level 1: No fall damage + Double Jump Level 2: Shift + Offhand β†’ Dash forward dealing 2 hearts Level 3: Shift + Left Click β†’ Lift players in 8 blocks 35 blocks up then slam them down Weakness: +15% melee damage

⚑ No 5: Surge Head Level 1: Immune to Weakness, Slowness, Hunger Level 2: Shift + Left Click β†’ Kinetic Burst (knockback + disable abilities 5s) Level 3: Shift + Offhand β†’ Surge Beam sonic blast Weakness: +20% fire damage

πŸ”₯ No 6: Flame Head Level 1: Auto Flame + Fire Aspect II, permanent Fire Resistance Level 2: Shift + Offhand β†’ Cozy Campfire heals for 10s Level 3: Shift + Left Click β†’ Spawn Fireball Weakness: +15% water damage

⚑ No 7: Swift Head Level 1: Speed III, Dolphin’s Grace, immune to Soul Sand, auto Efficiency V tools Level 2: Shift + Offhand β†’ Target gets Slowness II + Mining Fatigue III, removes Speed Level 3: Shift + Left Click β†’ Speed Storm (8 block thunderstorm, lightning stuns players) Weakness: +15% melee damage

πŸͺ™ No 8: Fortune Head Level 1: Looting I on weapons Level 2: Permanent Hero of the Village Level 3: Passive Speed I Weakness: -10% melee damage Add admin commands and ways to withdraw and all of that

Kodari AI
KodariApr 10 at 12:07 am 53,462 (v2)
HeadLifeSMP
A feature-rich SMP plugin where players obtain custom Heads via Reroll Tokens through a GUI. Each of the 8 unique Heads (Titan, Cosmic, Vital, Cyclone, Surge, Flame, Swift, Fortune) has 3 tiers of abilities unlocked with Level Books, plus a unique weakness. Abilities activate via /l2, /l3, or Shift+Right Click at max level. Includes full admin commands to give tokens, books, and specific heads at any level.
  • 8 unique head types with 3 ability levels each, distinct weaknesses, passive effects and active cooldown-gated abilities

  • Reroll GUI (inventory) opens from Reroll Token; Level Books upgrade head level (1β†’2β†’3); heads wearable as helmets with PDC-tracked type/level

  • Central AbilityManager drives all passive tasks, enchant management, and active ability routing; DamageListener handles bonuses/weaknesses; full admin command suite

The plugin is fully implemented with all 8 unique heads, 3 tiers of abilities each, passive effects, weaknesses, a Reroll Token GUI system, Level Book upgrades, and a complete /headlife give/info/reload admin command with tab completion. Key highlights: Titan L3 tracks crits and deals 2x/2x+KB strikes; Cosmic L2 gives ghostly flight; Cyclone L1 enables double jump via flight toggle; Vital L3 runs an armor-repair aura; Surge L3 fires a projectile beam; Swift L3 calls targeted lightning storms; all weaknesses apply appropriate damage multipliers in DamageListener; /l2, /l3, and Shift+RightClick all trigger active abilities.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
19 1,657
src/main/java/com/headlife/HeadLifePlugin.java
package com.headlife;

import com.headlife.commands.HeadLifeCommand;
import com.headlife.commands.L2Command;
import com.headlife.commands.L3Command;
import com.headlife.gui.RerollGUI;
import com.headlife.listeners.DamageListener;
import com.headlife.listeners.HeadEquipListener;
import com.headlife.listeners.InteractListener;
import com.headlife.listeners.PlayerListener;
import com.headlife.managers.AbilityManager;
import com.headlife.managers.CooldownManager;
import com.headlife.managers.HeadManager;
import com.headlife.managers.PlayerDataManager;
import lombok.Getter;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class HeadLifePlugin extends JavaPlugin {

    @Getter
    private static HeadLifePlugin instance;

    private NamespacedKey itemTypeKey;
    private NamespacedKey headTypeKey;
    private NamespacedKey headLevelKey;
    private NamespacedKey cosmicDaggerKey;
    private NamespacedKey surgeBeamKey;
    private NamespacedKey originalSharpnessKey;
    private NamespacedKey originalFireAspectKey;
    private NamespacedKey originalEfficiencyKey;

    private HeadManager headManager;
    private PlayerDataManager playerDataManager;
    private CooldownManager cooldownManager;
    private AbilityManager abilityManager;
    private RerollGUI rerollGUI;

    @Override
    public void onEnable() {
        instance = this;

        itemTypeKey = new NamespacedKey(this, "item_type");
        headTypeKey = new NamespacedKey(this, "head_type");
        headLevelKey = new NamespacedKey(this, "head_level");
        cosmicDaggerKey = new NamespacedKey(this, "cosmic_dagger");
        surgeBeamKey = new NamespacedKey(this, "surge_beam");
        originalSharpnessKey = new NamespacedKey(this, "original_sharpness");
        originalFireAspectKey = new NamespacedKey(this, "original_fire_aspect");
        originalEfficiencyKey = new NamespacedKey(this, "original_efficiency");

        headManager = new HeadManager(this);
        playerDataManager = new PlayerDataManager();
        cooldownManager = new CooldownManager();
        abilityManager = new AbilityManager(this);
        rerollGUI = new RerollGUI(this);

        getCommand("headlife").setExecutor(new HeadLifeCommand(this));
        getCommand("l2").setExecutor(new L2Command(this));
        getCommand("l3").setExecutor(new L3Command(this));

        getServer().getPluginManager().registerEvents(new DamageListener(this), this);
        getServer().getPluginManager().registerEvents(new HeadEquipListener(this), this);
        getServer().getPluginManager().registerEvents(new InteractListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerListener(this), this);

        abilityManager.startPassiveTasks();
        getLogger().info("HeadLife enabled successfully.");
    }

    @Override
    public void onDisable() {
        abilityManager.stopTasks();
        getLogger().info("HeadLife disabled.");
    }
}