sayer_2004

make a sword called nebula witch will be a new item with its own crafting recipe and we introduce a a new item in the custom crafting recipe called nebula shard that can be obtained from killing wardens and withers so its 8 nebula shard and a netherite sword for the nebula sword and the abilities are nebula slam summons a giant form of the sword dealing aoi burning and one shots a player if its a direct hit second ability nebula dash that dashes 15 blocks and when its aimed at a player it summons a lighting strike that deals half of the players damage the last one is nebula vortex witch sucks all nearby player but you into a vortex that stuns u for 15 seconds dealing half a hearts a second and the command to get it is /deranged weapon nebula and the command is only for operators

Kodari AI
KodariAug 20 at 3:52 am 3
NebulaSwordPlugin
A Minecraft plugin introducing the Nebula Sword, a custom weapon with unique crafting. Crafted from 8 Nebula Shards and a Netherite Sword, shards drop from Wardens and Withers. Features three abilities: Nebula Slam summons a giant sword dealing AoE burning and one-shotting on direct hit; Nebula Dash dashes 15 blocks, striking lightning on aimed players dealing half their damage; Nebula Vortex pulls nearby players into a stunning vortex dealing half a heart per second for 15 seconds. Obtainable via /deranged weapon nebula, operator-only.
  1. Create the Gradle/Paper plugin skeleton and operator-only command.

  2. Add the Nebula Sword and Nebula Shard items, drops, and exact custom recipe.

  3. Implement Slam, Dash, and Vortex abilities with cooldowns, effects, and stun handling.

Created the Nebula Weapon plugin from scratch.

  • Added /deranged weapon nebula, restricted to operators.

  • Added the custom Nebula Witch netherite sword.

  • Added Nebula Shards, dropped by Wardens and Withers.

  • Added recipe: 8 Nebula Shards surrounding 1 Netherite Sword.

  • Added abilities:

    • Right-click: Nebula Slam — area damage, burning, giant sword effect, direct-hit instant kill.

    • Sneak + right-click: Nebula Dash — dashes up to 15 blocks and strikes aimed players for half their maximum health.

    • Left-click: Nebula Vortex — pulls nearby players, stuns them for 15 seconds, and deals half a heart per second.

  • Added ability cooldowns, particles, sounds, and obstacle-aware dashing.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
nebula
settings.gradle
Code
9 540
src/main/java/com/kodari/nebula/NebulaPlugin.java
package com.kodari.nebula;

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

public final class NebulaPlugin extends JavaPlugin {

    private NebulaItemManager itemManager;
    private NebulaAbilityManager abilityManager;

    @Override
    public void onEnable() {
        itemManager = new NebulaItemManager(this);
        itemManager.registerRecipe();

        abilityManager = new NebulaAbilityManager(this);
        getServer().getPluginManager().registerEvents(new NebulaListener(itemManager, abilityManager), this);

        PluginCommand command = getCommand("deranged");
        if (command != null) {
            NebulaCommand nebulaCommand = new NebulaCommand(itemManager);
            command.setExecutor(nebulaCommand);
            command.setTabCompleter(nebulaCommand);
        }
    }

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