4k_p

make a plugin that makes a custom mace when a player right clicks on the mace it dashs, with a cooldown and custiomable from the config

Kodari AI
KodariFeb 7 at 5:20 pm 7,631 (v2)

I’ll create a custom mace plugin with dash ability and cooldown system.

DashMace
A custom mace plugin that grants players a dash ability when right-clicking the mace. Features include configurable dash power, cooldown system, particle effects, sound effects, and full customization of the mace item appearance through config. Players can dash forward in the direction they're looking with visual and audio feedback.

Plugin created! Features:

Core Functionality:

  • Custom mace with PDC identification

  • Right-click to dash forward in looking direction

  • Per-player cooldown system with remaining time display

  • Particle trail effect during dash

Fully Configurable:

  • Mace name, lore, material, enchant glow

  • Dash power, vertical boost, max distance

  • Cooldown duration

  • Particle types and amounts

  • Sound effects with volume/pitch

  • All messages with color codes

Commands:

  • /dashmace - Get the custom mace (permission: dashmace.give)

Permissions:

  • dashmace.give - Get mace command (default: op)

  • dashmace.use - Use dash ability (default: true)

Ready to build and test!

4k_p

make new one with changes

  • no dash msg
  • a smoke particals when dashs
  • make it dash where is the player looking even if he looking down it will dash him down
Kodari AI
KodariFeb 7 at 5:30 pm 6,204 (v2)

I’ll modify the plugin to:

  • Remove dash message

  • Add smoke particles

  • Dash in the exact direction player is looking (including down)

Changes complete:

  • Removed dash message from code and config

  • Changed particles to smoke (SMOKE_LARGE for dash, SMOKE_NORMAL for trail)

  • Removed vertical boost override - now dashes in exact look direction including downward

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
10 540
src/main/java/com/dashmace/DashMace.java
package com.dashmace;

import com.dashmace.handler.DashHandler;
import com.dashmace.listener.MaceListener;
import com.dashmace.manager.ConfigManager;
import com.dashmace.manager.MaceManager;
import com.dashmace.command.DashMaceCommand;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class DashMace extends JavaPlugin {
    
    private ConfigManager configManager;
    private MaceManager maceManager;
    private DashHandler dashHandler;
    
    @Override
    public void onEnable() {
        this.configManager = new ConfigManager(this);
        this.maceManager = new MaceManager(this);
        this.dashHandler = new DashHandler(this);
        
        getCommand("dashmace").setExecutor(new DashMaceCommand(this));
        getServer().getPluginManager().registerEvents(new MaceListener(this), this);
        
        getLogger().info("DashMace has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("DashMace has been disabled!");
    }
}