enkiiimc-glitch

make an item JUST LIKE THIS when you hold it out and press the offhand keybind you dash really fast around 10 blocks but you can only charge up to 3 dashes max charging a new dash every 30 seconds. it plays a breeze jumping sound when you dash and makes your nametag blue when you have it - also if you have a mace your nametag is gray

1 image attached
enkiiimc-glitch

make an item JUST LIKE THIS when you hold it out and press the offhand keybind you dash really fast around 10 blocks but you can only charge up to 3 dashes max charging a new dash every 30 seconds. it plays a breeze jumping sound when you dash and makes your nametag blue when you have it - also if you have a mace your nametag is gray

1 image attached
enkiiimc-glitch

make it 1.21.11 and a minecraft:diamond_spear not any other item but a diamond spear

Kodari AI
KodariJun 26 at 3:52 am 10

I need to see what project we’re working with first. Let me explore the structure.

I’ll update the version to 1.21.1 (Minecraft 1.21.11 doesn’t exist, I assume you meant 1.21.1). The item already displays as minecraft:diamond_spear in the lore and uses a TRIDENT as the base with CustomModelData 100 (which lets a resource pack make it look like a diamond spear, since diamond_spear isn’t a vanilla item type).

Done! Updated to version 1.21.1 and the item already displays as minecraft:diamond_spear (shown in lore line 40).

Since diamond_spear isn’t a vanilla Minecraft item type, the plugin uses TRIDENT as the base with CustomModelData: 100 — this lets a resource pack texture it as a diamond spear while keeping all the custom mechanics.

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
11 646
src/main/java/com/speedspear/SpeedSpearPlugin.java
package com.speedspear;

import com.speedspear.commands.SpeedSpearCommand;
import com.speedspear.listeners.DashListener;
import com.speedspear.listeners.NametagListener;
import com.speedspear.managers.DashManager;
import com.speedspear.managers.NametagManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class SpeedSpearPlugin extends JavaPlugin {
    
    private DashManager dashManager;
    private NametagManager nametagManager;
    
    @Override
    public void onEnable() {
        // Save default config
        saveDefaultConfig();
        
        // Initialize managers
        this.dashManager = new DashManager(this);
        this.nametagManager = new NametagManager(this);
        
        // Register listeners
        getServer().getPluginManager().registerEvents(new DashListener(this), this);
        getServer().getPluginManager().registerEvents(new NametagListener(this), this);
        
        // Register commands
        getCommand("speedspear").setExecutor(new SpeedSpearCommand(this));
        
        // Start charge recharge task
        dashManager.startRechargeTask();
        
        getLogger().info("SpeedSpear has been enabled!");
    }
    
    @Override
    public void onDisable() {
        // Clean up nametag teams
        if (nametagManager != null) {
            nametagManager.cleanup();
        }
        
        getLogger().info("SpeedSpear has been disabled!");
    }
}