ZenitCoder

5 cutom power mace with different look and abilities with custom look particles on use

Kodari AI
KodariMar 26 at 11:35 am 9,517 (v2)

I’ll create a custom power mace plugin with 5 unique maces, each with distinct abilities and particles.

PowerMaces
A custom weapon plugin featuring five unique power maces with special abilities and particle effects. Each mace has distinct powers: Thunder strikes lightning, Frost freezes enemies, Inferno burns targets, Void teleports behind foes, and Nature heals while poisoning. All maces feature custom appearances, particle effects on use, and configurable cooldowns and damage values.

All 5 custom power maces created with unique abilities, particle effects, and visual customization! Each mace has configurable damage, cooldowns, and special powers. Use /mace <type> to obtain them.

ZenitCoder

/mace

Kodari AI
KodariMar 26 at 11:37 am 7,439 (v2)

I’ll read the PowerMaces plugin files to show you what the /mace command does.

PowerMaces Plugin - /mace Command

The /mace command gives players special power maces with unique elemental abilities.

Command Usage

Plain Text
/mace <thunder|frost|inferno|void|nature>

Permission

  • powermaces.give - Allows giving maces (default: op)

  • powermaces.use - Allows using mace abilities (default: true)

Available Maces

  1. Thunder Mace (/mace thunder)

    • Damage: 12.0

    • Cooldown: 5 seconds

    • Ability: Strikes lightning on the target

    • Particles: Electric sparks

  2. Frost Mace (/mace frost)

    • Damage: 10.0

    • Cooldown: 6 seconds

    • Ability: Slows enemies (Slowness II for 5 seconds)

    • Particles: Snowflakes

  3. Inferno Mace (/mace inferno)

    • Damage: 11.0

    • Cooldown: 5 seconds

    • Ability: Sets enemies on fire for 5 seconds

    • Particles: Flames

  4. Void Mace (/mace void)

    • Damage: 13.0

    • Cooldown: 8 seconds

    • Ability: Teleports player behind the target

    • Particles: Portal effect

  5. Nature Mace (/mace nature)

    • Damage: 9.0

    • Cooldown: 7 seconds

    • Ability: Heals player 4 HP and poisons enemy (Poison II for 3 seconds)

    • Particles: Happy villager

How It Works

  • Run /mace <type> to receive a power mace

  • Attack an entity to trigger the ability

  • Each mace has a cooldown before you can use the ability again

  • Cooldown messages show remaining time

  • Tab completion shows available mace types

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
8 549
src/main/java/com/powermaces/PowerMaces.java
package com.powermaces;

import com.powermaces.command.MaceCommand;
import com.powermaces.listener.MaceListener;
import com.powermaces.manager.MaceManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class PowerMaces extends JavaPlugin {
    
    private MaceManager maceManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.maceManager = new MaceManager(this);
        maceManager.loadMaces();
        
        getServer().getPluginManager().registerEvents(new MaceListener(this), this);
        
        getCommand("mace").setExecutor(new MaceCommand(this));
        
        getLogger().info("PowerMaces has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("PowerMaces has been disabled!");
    }
}