860e

a fire-breathing dragon

Kodari AI
KodariAug 17 at 8:41 am 1
DragonBreath
A Minecraft plugin that adds fire-breathing dragons to the game. Players can summon a dragon companion that follows them and breathes fire on command, damaging enemies and igniting blocks. The plugin includes configurable dragon stats, cooldowns, particle effects, and sound effects. Dragons can be tamed, fed, and leveled up through gameplay. Custom fire breath mechanics include directional targeting, area-of-effect damage, and burning status effects. Administrators can configure spawn rates, dragon types, and permission nodes for full control over the dragon system.
  • Create a Gradle-based Spigot plugin project.

  • Add /dragon summon, /dragon dismiss, and /dragon reload.

  • Track each summoned dragon, protect its owner, and periodically launch dragon fireballs at nearby players.

  • Add configurable messages, targeting range, breath interval, and block-damage behavior.

Created a complete Spigot plugin project for a fire-breathing dragon.

Features:

  • /dragon summon

  • /dragon dismiss

  • /dragon reload

  • Configurable dragon health, name, targeting range, breath interval, explosion yield, and block damage

  • Owner protection from dragon attacks and fireballs

  • Automatic cleanup on shutdown or dragon death

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
8 481
src/main/java/com/kodari/firebreathingdragon/FireBreathingDragonPlugin.java
package com.kodari.firebreathingdragon;

import org.bukkit.command.PluginCommand;
import org.bukkit.plugin.java.JavaPlugin;

public final class FireBreathingDragonPlugin extends JavaPlugin {

    private DragonManager dragonManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        dragonManager = new DragonManager(this);
        dragonManager.start();

        DragonCommand dragonCommand = new DragonCommand(this, dragonManager);
        PluginCommand command = getCommand("dragon");
        if (command == null) {
            getLogger().severe("The dragon command is missing from plugin.yml.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }

        command.setExecutor(dragonCommand);
        command.setTabCompleter(dragonCommand);
        getServer().getPluginManager().registerEvents(new DragonListener(dragonManager), this);
    }

    @Override
    public void onDisable() {
        if (dragonManager != null) {
            dragonManager.shutdown();
        }
    }

    public DragonManager getDragonManager() {
        return dragonManager;
    }
}