Jatin Boiii

Create a Minecraft plugin that contains eight custom swords, each with its own unique abilities.

Every sword should have one Passive Skill and one Active Skill.

The Active Skills should be powerful and visually impressive, similar to abilities like a Blaze fire-charge/fireball attack.

When a player joins the server for the first time, they should receive one random sword from the eight custom swords.

Each sword should have its own unique theme, abilities, and effects.

Add some operator/admin commands that allow admins to:

Give a specific custom sword to a player.

Remove/take a custom sword from a player's inventory.

Manage the custom swords through commands.

Kodari AI
KodariSep 14 at 5:06 pm 2
OctoBlades
A Minecraft plugin introducing eight unique custom swords, each with a distinct theme, passive skill, and visually impressive active ability. New players receive a random sword upon first join. Admin commands allow giving specific swords to players, removing swords from inventories, and managing the sword collection. Each blade features custom lore, particle effects, and cooldown-based active skills like fireballs, lightning strikes, and explosive charges, creating a dynamic combat experience.

Created the CustomSwords Minecraft plugin with:

  • Eight custom swords:

    • Emberblade

    • Frostfang

    • Stormcaller

    • Earthshaker

    • Shadowfang

    • Lifebloom

    • Venomedge

    • Tidebreaker

  • One passive and one active ability per sword.

  • Visual effects, sounds, projectiles, lightning, particles, knockback, healing, poison, fire, and teleport abilities.

  • Random sword awarded on a player’s first join.

  • Custom sword identification using Persistent Data Containers.

  • Admin commands:

    • /customsword give <player> <sword> [amount]

    • /customsword remove <player> <sword> [amount]

    • /customsword random <player>

    • /customsword list

    • /customsword reload

  • Aliases: /cs and /swords

  • Operator permission: customswords.admin

  • Gradle build configuration and plugin metadata.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
10 757
src/main/java/com/kodari/customswords/CustomSwordsPlugin.java
package com.kodari.customswords;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.Objects;

public class CustomSwordsPlugin extends JavaPlugin {
    private SwordItemFactory itemFactory;
    private CooldownManager cooldownManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        itemFactory = new SwordItemFactory(this);
        cooldownManager = new CooldownManager();

        SwordListener listener = new SwordListener(this, itemFactory, cooldownManager);
        Bukkit.getPluginManager().registerEvents(listener, this);

        SwordCommand command = new SwordCommand(this);
        Objects.requireNonNull(getCommand("customsword")).setExecutor(command);
        Objects.requireNonNull(getCommand("customsword")).setTabCompleter(command);
        getLogger().info("CustomSwords enabled with eight unique swords.");
    }

    public SwordItemFactory getItemFactory() {
        return itemFactory;
    }
}