daggorr

make me a plugin that makes a dash mace and i can dash 10 blocks in the way im looking

Kodari AI
KodariApr 21 at 11:42 pm 8,491 (v2)

I’ll create a dash mace plugin that lets players dash 10 blocks forward when using the item.

DashMace
A Minecraft plugin that adds a custom dash mace item. Players can right-click the mace to instantly dash 10 blocks in the direction they're looking. Features include configurable cooldowns, particle effects, sound effects, customizable dash distance and power, and admin commands to give the dash mace to players. Includes permission-based access control and full configuration options.

Created DashMace plugin with custom dash mace item that launches players 10 blocks forward. Includes configurable dash power, cooldown system, particle/sound effects, give command, and reload functionality.

daggorr

make it can go up 10 blocks too

Kodari AI
KodariApr 21 at 11:45 pm 3,130 (v2)

I’ll modify the dash system to include vertical movement based on where you’re looking, so you can dash upward when looking up.

Modified the dash mace to include vertical movement based on your looking direction. Now when you look up and dash, you’ll go upward up to 10 blocks. Look straight up to dash vertically, or at an angle to dash diagonally!

daggorr

and make the cooldown to 15 seconds and make it you need to shift right click

Kodari AI
KodariApr 21 at 11:46 pm 2,162 (v2)

I’ll update the cooldown to 15 seconds and require shift + right click to activate the dash.

Updated the dash mace to require shift + right click and set the cooldown to 15 seconds. The item lore also now reflects the shift requirement.

daggorr

then when you use it make it have cooldown on the weapon aka cooldown visible in the invortory and make the same thing but with a netherite spear

Kodari AI
KodariApr 21 at 11:53 pm 16,329 (v2)

I’ll add visual cooldown to the weapon using the durability bar and create a netherite spear with the same functionality.

Added visual cooldown system using durability bar, created netherite spear with same dash functionality, and updated commands to support both items. The cooldown is now visible on the weapon in your inventory!

daggorr

make it 15 blocks for both too

Kodari AI
KodariApr 21 at 11:56 pm 2,682 (v2)

Updated dash distance to 15 blocks for both the dash mace and netherite spear!

daggorr

make the spear a minecraft spear jit and make when you use the mace or the spear you dont take fall damage and fix the deceripcsion of the spear

Kodari AI
KodariApr 22 at 12:02 am 6,215 (v2)

I’ll change the spear to a trident, add fall damage protection after dashing, and fix the spear description.

Updated the spear to use a trident, fixed the description to “Dash Spear”, and added fall damage immunity after dashing for both items!

daggorr

dont make a trident make it a netherite spear like in the game

Kodari AI
KodariApr 22 at 12:04 am 1,973 (v2)

I’ll change it back to a netherite sword since there’s no actual spear item in vanilla Minecraft. The netherite sword will represent the “spear”.

Changed the spear back to a netherite sword since vanilla Minecraft doesn’t have a spear item. The netherite sword will represent your “spear” with the dash ability!

daggorr

yes it does in 1.21.11 they added a spear

Kodari AI
KodariApr 22 at 12:05 am 1,801 (v2)

I’ll update the spear to use the actual spear material from 1.21.11!

Updated the spear to use the actual NETHERITE_SPEAR material from Minecraft 1.21.11!

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

import com.dashmace.command.DashMaceCommand;
import com.dashmace.config.ConfigManager;
import com.dashmace.listener.DashMaceListener;
import com.dashmace.manager.CooldownManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class DashMace extends JavaPlugin {
    private ConfigManager configManager;
    private CooldownManager cooldownManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        this.configManager = new ConfigManager(this);
        this.cooldownManager = new CooldownManager(this);

        getServer().getPluginManager().registerEvents(new DashMaceListener(this), this);
        getCommand("dashmace").setExecutor(new DashMaceCommand(this));

        getLogger().info("DashMace has been enabled!");
    }

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