Bossking7767

Make a mod that makes it so when i press the aassinged button you run 2.5x the normal RUN speed add a setting in the keybinding section so i can bind this to any button give me a JAR file please

Kodari AI
KodariMay 15 at 7:54 pm 1,672 (v2)

I create Minecraft plugins (Bukkit/Spigot/Paper) for multiplayer servers, not client-side mods (Forge/Fabric).

Key difference:

  • Mods = client-side, can add keybindings, require Forge/Fabric

  • Plugins = server-side, run commands/mechanics, work on Spigot/Paper servers

I cannot create a mod with custom keybindings — that requires Forge/Fabric mod development expertise, which is outside my scope.


What I CAN do instead (as a plugin):

  1. Command-based sprint toggle → /sprint to enable 2.5x speed until you toggle it off

  2. Hold-item sprint → Hold a specific item (like a feather) to run at 2.5x speed

  3. Automatic sprint detection → Automatically boost speed when you’re sprinting (double-tap W)

  4. Crouch/sneak toggle → Shift to activate speed boost

These are server-side plugins that work on any Spigot/Paper server without client mods.

Would you like me to create one of these options instead? Let me know which approach works best for you, or if you need something else!

Bossking7767

ok make it so when i croutch and jump it activates

Kodari AI
KodariMay 15 at 7:56 pm 5,893 (v2)

I’ll create a speed boost plugin that activates when you crouch and jump simultaneously.

TurboSprint
A speed boost plugin that gives players 2.5x running speed when they crouch and jump together. The boost toggles on and off with the same crouch-jump action. Includes configurable speed multiplier, cooldown system, and permission controls. Perfect for giving players a quick mobility boost without client-side mods. Works on any Spigot/Paper server.

Plan:

  • Detect crouch + jump action via sneak toggle + velocity check

  • Toggle speed boost on/off (2.5x speed multiplier)

  • Config for speed multiplier, cooldown, permissions

  • Simple and lightweight

—Done! I’ve created the TurboSprint plugin.

How it works:

  • Crouch + Jump together to toggle 2.5x speed boost on/off

  • Works by detecting when you start crouching while jumping/airborne

  • 1-second cooldown prevents spam

  • Command: /turbosprint to manually toggle or reload config

Compile to JAR:

Shell
./gradlew build

Your JAR will be in build/libs/TurboSprint-1.0.0.jar

Install:

  1. Drop the JAR into your server’s plugins/ folder

  2. Restart server

  3. Crouch + jump to activate speed boost!

Config options (in plugins/TurboSprint/config.yml):

  • speed-multiplier: 2.5 — change speed (max 5.0)

  • cooldown-seconds: 1 — prevent spam

  • detection-window-ms: 300 — how forgiving the crouch+jump timing is

All players have permission by default. The speed boost stays active until you crouch+jump again to toggle it off!

Bossking7767

you cant make client side mods ? right?

Kodari AI
KodariMay 15 at 7:57 pm 2,072 (v2)

Correct — I cannot make client-side mods.

What I CAN’T do:

  • ❌ Forge mods

  • ❌ Fabric mods

  • ❌ NeoForge mods

  • ❌ Custom keybindings (like pressing a specific key)

  • ❌ Client-side rendering (custom GUIs, overlays, shaders)

  • ❌ Anything that requires the player to install a mod on their client

What I CAN do:

  • ✅ Bukkit/Spigot/Paper plugins (server-side only)

  • ✅ BungeeCord/Waterfall plugins (proxy plugins)

  • ✅ Velocity plugins (modern proxy)

All of these are server-side and players can join without installing anything.


So the plugin I just made:

  • Works on any Spigot/Paper server

  • Players don’t need to install anything

  • Uses crouch+jump detection (server-side) instead of a custom keybind

  • This was the closest I could get to your original request

If you need a real client-side mod with a custom keybind, you’d need a Forge/Fabric mod developer. I specialize in server-side plugins only! 🎯

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
5 304
src/main/java/com/turbosprint/TurboSprint.java
package com.turbosprint;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;

import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.UUID;

public class TurboSprint extends JavaPlugin {

    private static final float DEFAULT_WALK_SPEED = 0.2f;
    
    private final Set<UUID> activePlayers = new HashSet<>();
    private final Map<UUID, Long> cooldowns = new HashMap<>();
    
    private float speedMultiplier;
    private int cooldownMs;
    private int detectionWindowMs;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        loadConfigValues();
        
        Bukkit.getPluginManager().registerEvents(new SpeedBoostListener(this), this);
        
        getLogger().info("TurboSprint has been enabled!");
    }

    @Override
    public void onDisable() {
        for (UUID uuid : activePlayers) {
            Player player = Bukkit.getPlayer(uuid);
            if (player != null && player.isOnline()) {
                player.setWalkSpeed(DEFAULT_WALK_SPEED);
            }
        }
        activePlayers.clear();
        cooldowns.clear();
        
        getLogger().info("TurboSprint has been disabled!");
    }

    @Override
    public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (!(sender instanceof Player)) {
            sender.sendMessage(colorize("&cThis command can only be used by players!"));
            return true;
        }

        Player player = (Player) sender;

        if (args.length > 0 && args[0].equalsIgnoreCase("reload")) {
            if (!player.hasPermission("turbosprint.reload")) {
                player.sendMessage(colorize(getConfig().getString("messages.no-permission")));
                return true;
            }
            reloadConfig();
            loadConfigValues();
            player.sendMessage(colorize(getConfig().getString("messages.reload")));
            return true;
        }

        if (!player.hasPermission("turbosprint.use")) {
            player.sendMessage(colorize(getConfig().getString("messages.no-permission")));
            return true;
        }

        if (args.length > 0 && args[0].equalsIgnoreCase("off")) {
            disableSpeedBoost(player);
            return true;
        }

        if (args.length > 0 && args[0].equalsIgnoreCase("on")) {
            if (isOnCooldown(player.getUniqueId())) {
                long remaining = getRemainingCooldown(player.getUniqueId());
                String msg = getConfig().getString("messages.cooldown")
                        .replace("{time}", String.format("%.1f", remaining / 1000.0));
                player.sendMessage(colorize(msg));
                return true;
            }
            enableSpeedBoost(player);
            return true;
        }

        toggleSpeedBoost(player);
        return true;
    }

    public void toggleSpeedBoost(Player player) {
        if (activePlayers.contains(player.getUniqueId())) {
            disableSpeedBoost(player);
        } else {
            if (isOnCooldown(player.getUniqueId())) {
                long remaining = getRemainingCooldown(player.getUniqueId());
                String msg = getConfig().getString("messages.cooldown")
                        .replace("{time}", String.format("%.1f", remaining / 1000.0));
                player.sendMessage(colorize(msg));
                return;
            }
            enableSpeedBoost(player);
        }
    }

    public void enableSpeedBoost(Player player) {
        activePlayers.add(player.getUniqueId());
        float newSpeed = DEFAULT_WALK_SPEED * speedMultiplier;
        newSpeed = Math.min(newSpeed, 1.0f);
        player.setWalkSpeed(newSpeed);
        
        String msg = getConfig().getString("messages.enabled")
                .replace("{multiplier}", String.valueOf(speedMultiplier));
        player.sendMessage(colorize(msg));
        
        setCooldown(player.getUniqueId());
    }

    public void disableSpeedBoost(Player player) {
        activePlayers.remove(player.getUniqueId());
        player.setWalkSpeed(DEFAULT_WALK_SPEED);
        player.sendMessage(colorize(getConfig().getString("messages.disabled")));
    }

    public boolean hasSpeedBoost(UUID uuid) {
        return activePlayers.contains(uuid);
    }

    public boolean isOnCooldown(UUID uuid) {
        if (!cooldowns.containsKey(uuid)) {
            return false;
        }
        long elapsed = System.currentTimeMillis() - cooldowns.get(uuid);
        return elapsed < cooldownMs;
    }

    public long getRemainingCooldown(UUID uuid) {
        if (!cooldowns.containsKey(uuid)) {
            return 0;
        }
        long elapsed = System.currentTimeMillis() - cooldowns.get(uuid);
        return cooldownMs - elapsed;
    }

    public void setCooldown(UUID uuid) {
        cooldowns.put(uuid, System.currentTimeMillis());
    }

    public int getDetectionWindowMs() {
        return detectionWindowMs;
    }

    private void loadConfigValues() {
        speedMultiplier = (float) getConfig().getDouble("speed-multiplier", 2.5);
        int cooldownSeconds = getConfig().getInt("cooldown-seconds", 1);
        cooldownMs = cooldownSeconds * 1000;
        detectionWindowMs = getConfig().getInt("detection-window-ms", 300);
    }

    private String colorize(String text) {
        return ChatColor.translateAlternateColorCodes('&', text);
    }
}