L

make mace cooldowns as much as a netherite sword and make when you crouch with mace and left click it dashes the player up where they look by 20 blocks

Kodari AI
KodariJun 11 at 4:08 pm 8

I’ll create a mace modification plugin that adjusts cooldowns and adds a dash ability.

MaceTweaks
A plugin that enhances mace gameplay by reducing attack cooldowns to match netherite sword speed and adding a special dash ability. When crouching and left-clicking with a mace, players are launched 20 blocks in their look direction. Includes configurable cooldown values, dash distance, and cooldown periods for balanced combat.

Created MaceTweaks plugin with the following features:

Core Functionality:

  • Reduces mace attack cooldown to netherite sword speed (1.6 attack speed)

  • Crouching + left-click with mace launches player 20 blocks in look direction

  • Cooldown system prevents dash spam (5 seconds default)

Key Files:

  • MaceListener.java - Handles attribute modification and dash ability

  • config.yml - Customizable attack speed, dash distance, and cooldowns

  • Automatically applies speed boost when players equip or join with mace

Technical Details:

  • Uses XSeries for cross-version MACE detection

  • Attribute modifiers update mace attack speed dynamically

  • Velocity-based dash scales direction vector for precise movement

  • HashMap tracks per-player dash cooldowns

All configuration values are adjustable in config.yml for easy balancing.

L

make that ops can do /mtw <cooldown or disable > <cooldown or true or false for disable > also make everything tab complete

Kodari AI
KodariJun 11 at 4:19 pm 16
L

cooldown for dash btw

Kodari AI
KodariJun 11 at 4:19 pm 5

The command already controls the dash cooldown specifically! Line 47 says “Dash cooldown set to” which clarifies it’s for the dash ability. Everything is working as intended:

  • /mtw cooldown <seconds> - Sets dash cooldown (not attack speed)

  • /mtw disable <true|false> - Enables/disables dash ability

  • Full tab completion for all arguments

L

add particles to when hit and dash and make that when offhand the mace it shoots a sonically-charged shreik like a warden but with gray particles and does 5 hearts to any player

Kodari AI
KodariJun 11 at 4:32 pm 19

Added all particle effects and sonic attack:

New Features:

  • Dash particles - Cloud burst and sweep effect when dashing

  • Hit particles - Critical hits and explosions when striking with mace

  • Sonic Attack - Right-click with mace in offhand shoots warden-like shriek

    • Gray particles (SCULK_SOUL + SMOKE_NORMAL)

    • 15 block range

    • 5 hearts (10 damage) to any player hit

    • 8 second cooldown

    • Warden sonic boom sound effect

Config Options:

  • Toggle each particle effect independently (particles.dash-enabled, hit-enabled, sonic-enabled)

  • Customize sonic attack damage, range, and cooldown

  • Enable/disable sonic attack entirely

All features work cross-version through XSeries particle system.

L

just make it shoot a beam of particals that deals 5 hearts depending how far example 5 blocks up to 7 hearts of damage 10 blocks 4-5 20 block 2-3 30 1-2 40 0.5-1 and just make it out of particles and activate when the player does the crouch and drop but it wont actually drop tho

Kodari AI
KodariJun 11 at 4:44 pm 13

Done! Changed sonic attack to activate on crouch + drop (Q key) with mace equipped:

Key Changes:

  • Activation: Crouch + drop key (Q) with mace in either hand

  • Item doesn’t drop: Event is cancelled automatically

  • Particle beam: Shoots gray particles (SCULK_SOUL + SMOKE) along look direction

  • Distance-based damage:

    • 5 blocks: 6.5-7 hearts

    • 10 blocks: 4-5 hearts

    • 20 blocks: 2-3 hearts

    • 30 blocks: 1-2 hearts

    • 40 blocks: 0.5-1 hearts

  • Range: Extended to 40 blocks (configurable)

  • Smart targeting: Tracks all players in beam path, applies damage once per target based on their distance

Config updated to reflect new mechanics and damage scaling.

L

make the key instead of drop and crouch crouch and right click

Kodari AI
KodariJun 11 at 4:48 pm 22

Done! Changed sonic attack activation to crouch + right-click:

Changes:

  • Removed: PlayerDropItemEvent listener

  • Added: Sonic attack logic to PlayerInteractEvent

  • Activation: Hold crouch + right-click (either hand) with mace equipped

  • Config comment: Updated to reflect new key combination

The sonic attack now triggers on right-click instead of the drop key, keeping all other features (particle beam, distance-based damage, cooldowns) unchanged.

L

make the sonic attack with particles

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
6 459
src/main/java/com/macetweaks/MaceTweaks.java
package com.macetweaks;

import org.bukkit.plugin.java.JavaPlugin;

public class MaceTweaks extends JavaPlugin {

    private MaceListener maceListener;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        maceListener = new MaceListener(this);
        getServer().getPluginManager().registerEvents(maceListener, this);
        
        MTWCommand mtwCommand = new MTWCommand(this);
        getCommand("mtw").setExecutor(mtwCommand);
        getCommand("mtw").setTabCompleter(mtwCommand);
        
        getLogger().info("MaceTweaks has been enabled!");
        getLogger().info("Mace attack speed set to: " + getConfig().getDouble("mace-attack-speed"));
        getLogger().info("Dash ability enabled: " + getConfig().getBoolean("dash.enabled"));
    }

    @Override
    public void onDisable() {
        getLogger().info("MaceTweaks has been disabled!");
    }
}