ther2as

Develop a Minecraft plugin featuring three unique swords: Sword of Fire, Sword of Ice, and Sword of Wind, each with specific abilities activated by right-clicking. The Sword of Fire has Sharpness 7, Fire Aspect 3, and can shoot a fireball that deals 3 hearts of damage and explodes; the Sword of Ice stuns enemies with a snowball; and the Sword of Wind launches a wind charge. Include a INVENTORY GUI command (/INVENTORY GUI) to display all swords with colorful descriptions, and an info command to provide credits and a Discord link:

Made by ther2as https://discord.gg/sUT8SSEG join server for free plugins! :) .

Kodari AI
KodariJan 6 at 11:00 pm 11,393 (v2)

I’ll create a custom swords plugin with inventory GUI and special abilities.

ElementalSwords
Three unique elemental swords with special right-click abilities. Sword of Fire shoots explosive fireballs, Sword of Ice stuns enemies with snowballs, and Sword of Wind launches wind charges. Features an interactive GUI menu to obtain all swords with colorful descriptions and custom enchantments including Sharpness 7 and Fire Aspect 3.

Plugin Created Successfully! ✨

Features:

  • 3 Elemental Swords with unique abilities (Fire, Ice, Wind)

  • Sword of Fire: Sharpness VII, Fire Aspect III, shoots explosive fireballs (3 hearts damage)

  • Sword of Ice: Sharpness V, Knockback II, stuns enemies with slowness & blindness

  • Sword of Wind: Sharpness VI, Sweeping Edge III, launches wind charges with knockback

  • Interactive GUI (/swordgui) to claim all swords with colorful descriptions

  • Info Command (/swordinfo) with your credits and Discord link

  • Right-click abilities with 3-second cooldown

  • Cross-version compatible using XSeries (1.8-1.21+)

Commands:

  • /swordgui (aliases: /swords, /sgui) - Open the elemental swords menu

  • /swordinfo (alias: /sinfo) - View plugin information and credits

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
13 670
src/main/java/com/ther2as/elementalswords/ElementalSwords.java
package com.ther2as.elementalswords;

import com.ther2as.elementalswords.commands.SwordGUICommand;
import com.ther2as.elementalswords.commands.SwordInfoCommand;
import com.ther2as.elementalswords.inventory.gui.GUIListener;
import com.ther2as.elementalswords.inventory.gui.GUIManager;
import com.ther2as.elementalswords.listeners.SwordAbilityListener;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class ElementalSwords extends JavaPlugin {
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        guiManager = new GUIManager();

        Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
        Bukkit.getPluginManager().registerEvents(new SwordAbilityListener(), this);

        getCommand("swordgui").setExecutor(new SwordGUICommand(this));
        getCommand("swordinfo").setExecutor(new SwordInfoCommand());

        getLogger().info("ElementalSwords has been enabled!");
    }

    @Override
    public void onDisable() {
        getLogger().info("ElementalSwords has been disabled!");
    }
}