snipeymain
📎 1 file 2,648 chars
📄
dragon_heads_plugin (1).txt
txt 80 lines
▶
End Portal SMP - Dragon Heads Plugin Specification (Paper 1.21+)

======================== PLUGIN NAME IDEAS ======================== 1.
DragonBond SMP 2. EnderDragon Origins 3. DragonHead Realms 4. Draconic
SMP 5. End Portal: Dragon Pact

======================== CORE FEATURES ========================

12 Unique Dragon Heads & Effects: Purple → Speed II Yellow → Strength I
Orange → Fire Resistance Green → Luck I Light Green → Nausea White →
Invisibility I Black → Blindness I Brown → Weakness I Red → Efficiency
II Pink → Regeneration I Blue → Resistance II Grey → Mining Fatigue I

-   Effects last 5 minutes and refresh while holding the head.

First Join System: - Each player gets a random dragon head. - Assignment
is permanent and saved.

Personal Dragon System: - Each player owns a dragon matching their
color. - Can summon/desummon. - Dragon follows player and flies.

======================== ABILITIES ========================

Perch: - Shift + Right Click - Dash to nearest target - Deals 25%
current HP as true damage - Cooldown: 20s

Dragon Breath: - Shift + Left Click - Fires colored projectile -
Explodes with special effect - Cooldown: 50s

======================== DRAGON BOND SYSTEM ========================

-   Feed Dragon Breath Potions
-   Levels: 1 → 10
-   Each level increases:
    -   Health
    -   Damage
    -   Speed
    -   Ability strength
-   Visual feedback via particles and action bar

======================== BREATH EFFECTS ========================

Purple → Speed zone Yellow → Damage boost zone Orange → Fire AoE Green →
Luck aura Light Green → Confusion cloud White → Invisibility zone Black
→ Blindness cloud Brown → Weakness zone Red → Haste/mining boost Pink →
Healing aura Blue → Resistance shield zone Grey → Mining fatigue debuff
zone

======================== COMMANDS ========================

/summondragon /desummondragon /dragonhead /dragongive /dragonbond
/dragoninfo

======================== PERMISSIONS ========================

dragonheads.use dragonheads.admin

======================== CONFIG OPTIONS ========================

-   Ability cooldowns
-   Damage values
-   Bond progression speed
-   Max bond level
-   Dragon stats scaling
-   Effect durations

======================== VISUAL DESIGN ========================

-   Custom textured Ender Dragon
-   Glowing colored eyes
-   Particle trails based on color
-   Unique breath particles

======================== EXTRA FEATURES ========================

-   Dragon leveling sounds & roars
-   PvP balancing (cooldowns + scaling)
-   Roleplay messages: “Your dragon awakens with a mighty roar!” “Your
    bond strengthens…”
Kodari AI
KodariMar 31 at 2:37 pm 50,252 (v2)
DragonHeads
A Dragon Heads SMP plugin for Paper 1.21+ featuring 12 unique dragon colors, each granting distinct potion effects while held. Players receive a random dragon on first join, can summon/desummon their personal dragon, and use two abilities: Perch (Shift+RClick - dash & true damage) and Dragon Breath (Shift+LClick - colored AoE projectile). A bond system lets players level up their dragon by feeding it Dragon's Breath potions, scaling health, damage, and ability strength up to level 10.

Here’s a summary of everything built:

19 files created across a full plugin structure:

  • 12 DragonColors (Purple/Yellow/Orange/Green/Light Green/White/Black/Brown/Red/Pink/Blue/Grey) each with unique potion effects via XPotion, particle colors, and breath AoE behaviors

  • First-join system — random color assigned permanently, head given, welcome message sent

  • Dragon summoning — real EnderDragon entity with AI disabled, invulnerable, follows player via tick task with velocity/teleport logic and color-matched particle trails

  • Perch ability — Shift+RClick, finds nearest entity in 20 blocks, teleports dragon to target, deals configurable % of HP as true damage, 20s cooldown

  • Dragon Breath — Shift+LClick, fires tracked Snowball, on ProjectileHitEvent applies color-specific AoE effect to nearby entities (buff colors help owner, debuff colors skip owner)

  • Bond system — feed Dragon’s Breath items while dragon is summoned, XP accumulates, levels 1→10 scale damage/health/ability strength

  • /dragoninfo GUI — 27-slot inventory showing head, bond level, stats, and abilities

  • All 6 commands with dragonheads.use / dragonheads.admin permissions

  • config.yml exposes all cooldowns, damage values, bond scaling, and dragon stats

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
20 1,464
src/main/java/com/example/dragonheads/DragonHeadsPlugin.java
package com.example.dragonheads;

import com.example.dragonheads.command.DragonCommand;
import com.example.dragonheads.gui.DragonInfoGUI;
import com.example.dragonheads.listener.DragonEntityListener;
import com.example.dragonheads.listener.PlayerInteractListener;
import com.example.dragonheads.listener.PlayerJoinListener;
import com.example.dragonheads.manager.AbilityManager;
import com.example.dragonheads.manager.BondManager;
import com.example.dragonheads.manager.ConfigManager;
import com.example.dragonheads.manager.DataManager;
import com.example.dragonheads.manager.DragonHeadManager;
import com.example.dragonheads.manager.DragonManager;
import com.example.dragonheads.manager.EffectManager;
import com.example.dragonheads.task.DragonTickTask;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class DragonHeadsPlugin extends JavaPlugin {
    private ConfigManager configManager;
    private DataManager dataManager;
    private DragonHeadManager dragonHeadManager;
    private DragonManager dragonManager;
    private BondManager bondManager;
    private AbilityManager abilityManager;
    private EffectManager effectManager;
    private DragonInfoGUI dragonInfoGUI;

    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.dataManager = new DataManager(this);
        this.dragonHeadManager = new DragonHeadManager(this);
        this.dragonManager = new DragonManager(this);
        this.bondManager = new BondManager(this);
        this.abilityManager = new AbilityManager(this);
        this.effectManager = new EffectManager(this);
        this.dragonInfoGUI = new DragonInfoGUI(this);

        getServer().getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        getServer().getPluginManager().registerEvents(new PlayerInteractListener(this), this);
        getServer().getPluginManager().registerEvents(new DragonEntityListener(this), this);

        DragonCommand dragonCommand = new DragonCommand(this);
        getCommand("summondragon").setExecutor(dragonCommand);
        getCommand("desummondragon").setExecutor(dragonCommand);
        getCommand("dragonhead").setExecutor(dragonCommand);
        getCommand("dragongive").setExecutor(dragonCommand);
        getCommand("dragonbond").setExecutor(dragonCommand);
        getCommand("dragoninfo").setExecutor(dragonCommand);

        new DragonTickTask(this).runTaskTimer(this, 20L, 20L);
        effectManager.runTaskTimer(this, 60L, 60L);

        getLogger().info("DragonHeads enabled! 12 dragon colors ready.");
    }

    @Override
    public void onDisable() {
        if (dragonManager != null) dragonManager.desummonAll();
        if (dataManager != null) dataManager.saveData();
        if (effectManager != null && !effectManager.isCancelled()) effectManager.cancel();
        getLogger().info("DragonHeads disabled. All dragons dismissed.");
    }
}