evil_hui

I want a Minecraft plugin with three custom weapons and unique abilities.

  1. Magical Wonder

The weapon name should be “Magical Wonder” in black color.

Abilities:

Shift + Right Click:

Perform a smooth dash up to 5 blocks forward and slightly upward.

Left Click:

Create a circular black particle area at the location the player is looking at.

The area should stay active for 25 seconds.

Special Effect:

Any player inside the area should become trapped.

Everyone except the owner/user should be affected.

If trapped players try to escape using an Ender Pearl, they should instantly be pulled back into the circle.

  1. Damage Dealer Trident

The trident name should be “Damage Dealer” in white color.

Abilities:

Shift + Right Click:

Perform a dash attack.

If the player dashes through another player, that player should take damage.

Left Click:

Summon a lightning strike.

Cooldown:

The lightning ability should have a 15-second cooldown.

  1. Namaskar Sword

The sword name should be “Namaskar Sword” in red color.

Abilities:

When the sword hits a player:

The target should immediately take damage.

After 2 seconds, the target should receive the same amount of damage again.

The target should also receive a Poison effect.

Shift + Right Click:

Give the user Strength V for 10 seconds.

Kodari AI
KodariMay 17 at 2:02 pm 11,661 (v2)

I’ll create a custom weapons plugin with three unique weapons and special abilities.

MysticWeapons
A custom weapons plugin featuring three powerful items with unique abilities. Magical Wonder creates trap zones and performs dashes. Damage Dealer trident executes dash attacks and lightning strikes. Namaskar Sword applies delayed damage and poison effects. Each weapon has distinct particle effects, cooldown systems, and special interactions including trap mechanics that prevent escapes.

MysticWeapons plugin created! Three custom weapons with unique abilities:

  • Magical Wonder (black): Dash forward + create trap zones that prevent escape

  • Damage Dealer (white trident): Dash attack + lightning strike with cooldown

  • Namaskar Sword (red): Delayed damage + poison on hit + Strength V ability

All weapons use XSeries for cross-version compatibility, include proper cooldown systems, particle effects, and trap mechanics that prevent ender pearl escapes. Use /mw <weapon> to obtain weapons.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
10 804
src/main/java/com/mysticweapons/MysticWeapons.java
package com.mysticweapons;

import com.mysticweapons.commands.WeaponCommand;
import com.mysticweapons.listeners.WeaponListener;
import com.mysticweapons.managers.CooldownManager;
import com.mysticweapons.managers.TrapManager;
import com.mysticweapons.managers.WeaponManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class MysticWeapons extends JavaPlugin {
    
    private WeaponManager weaponManager;
    private CooldownManager cooldownManager;
    private TrapManager trapManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.weaponManager = new WeaponManager(this);
        this.cooldownManager = new CooldownManager();
        this.trapManager = new TrapManager(this);
        
        getServer().getPluginManager().registerEvents(new WeaponListener(this), this);
        getCommand("mysticweapons").setExecutor(new WeaponCommand(this));
        
        trapManager.startTrapTask();
        
        getLogger().info("MysticWeapons has been enabled!");
    }
    
    @Override
    public void onDisable() {
        if (trapManager != null) {
            trapManager.cleanup();
        }
        getLogger().info("MysticWeapons has been disabled!");
    }
}