Rupesh Jaswal

I need a plugin that adds 6 custom weapons to the server, with each weapon having its own unique abilities.

  1. Evoker’s Blade

Ability 1: It can release spikes from the ground. When a spike is released, it should check the ground underneath and make grass/ground particles come out from below. It can also spawn Vexes. The Vexes should not attack the player who used the weapon; they should attack other players.

  1. Honey Sword

Ability 1: It should give the player Flight for 1 minute.

Ability 2: It should allow the player to heal themselves, similar to a honey-related healing ability.

The cooldown should be 1 minute after each use.

  1. Emperor Axe

Ability 1: When the axe hits the ground, the ground should crack, and players in front of it should be launched into the air.

Ability 2: It should give the player Strength II for 1 minute.

The cooldown should be 2 minutes.

  1. Ender Blade

Ability 1: It should teleport the player to the location they are looking at.

The cooldown should be 10 seconds.

Ability 2: It should allow the player to disguise/change into another form or entity.

  1. Frosty Double-Bladed Sword

Ability 1: It should be able to freeze enemies in front of the player for 2 minutes.

Ability 2: It should give the player Frost Walker, so whenever the player walks over water, the water turns into ice.

  1. Light Hammer

Ability 1: It should be able to crack/break the ground beneath the player or in front of them.

The cooldown should be 15 seconds.

Ability 2: It should launch the player upward.

The hammer should have:

  • Wind Burst II
  • Density VII
  • Unbreaking III

It should allow the player to jump/launch themselves into the air and use the hammer to perform a powerful attack.

Kodari AI
KodariOct 7 at 1:04 pm 2
SixLegendaryWeapons
A Minecraft plugin adding six unique legendary weapons, each with distinct abilities. The Evoker's Blade releases ground spikes and spawns Vexes that attack other players. The Honey Sword grants flight and healing with a one-minute cooldown. The Emperor Axe cracks the ground launching players and grants Strength II for two minutes. The Ender Blade teleports to looked-at locations and allows entity disguises. The Frosty Double-Bladed Sword freezes enemies and grants Frost Walker. The Light Hammer cracks ground, launches players upward, and features Wind Burst II, Density VII, and Unbreaking III enchantments.
  1. Create the plugin scaffold, weapon definitions, item tags, and /weapons command.

  2. Add Evoker’s Blade, Honey Sword, and Emperor Axe abilities.

  3. Add Ender Blade, Frosty Double-Bladed Sword, and Light Hammer abilities.

  4. Configure plugin metadata and the build.

Created the CustomWeapons plugin with all six weapons and /weapons list and /weapons give <player> <weapon> commands. Giving weapons requires customweapons.admin.

Controls: Right-click uses Ability 1; left-click uses Ability 2. For the Frosty Double-Bladed Sword, sneak + right-click toggles Frost Walker.

Implemented flight and healing for the Honey Sword, the Emperor Axe’s ground slam and Strength II, Ender Blade teleport and a cycling mob-proxy morph, enemy freezing and water-to-ice Frost Walker, and the Light Hammer’s launch and shockwave. The hammer is given Wind Burst II, Density VII, and Unbreaking III when those enchantments are available.

Where you didn’t specify a cooldown, Evoker’s Blade spikes use 20 seconds, Frosty’s freeze uses 30 seconds, and Ender’s morph uses 30 seconds.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
7 728
src/main/java/com/kodari/customweapons/CustomWeaponsPlugin.java
package com.kodari.customweapons;

import org.bukkit.plugin.java.JavaPlugin;

public final class CustomWeaponsPlugin extends JavaPlugin {
    private WeaponManager weaponManager;

    @Override
    public void onEnable() {
        weaponManager = new WeaponManager(this);
        WeaponListener listener = new WeaponListener(this, weaponManager);
        getServer().getPluginManager().registerEvents(listener, this);

        WeaponCommand command = new WeaponCommand(weaponManager);
        getCommand("weapons").setExecutor(command);
        getCommand("weapons").setTabCompleter(command);
    }

    public WeaponManager getWeaponManager() {
        return weaponManager;
    }
}