mrpanzerottomiki

Can you adjust the dash velocity/strength to reach roughly 20 blocks distance

Kodari AI
KodariMay 7 at 6:07 pm 5,261 (v2)

I’ll help you adjust the dash velocity to reach roughly 20 blocks. Let me first examine the current implementation.

Now I can see the current dash implementation. The dash power is currently set to 1.5 for both dash-sword and dash-mace, which gives roughly 8-10 blocks of distance. To reach approximately 20 blocks, I need to increase the power to around 3.0.

Perfect! I’ve adjusted the dash power values in the config:

  • Dash Sword: 1.5 → 3.0 (roughly 20 blocks)

  • Dash Mace: 1.5 → 3.0 (roughly 20 blocks)

  • Dash Bow: 1.2 → 2.8 (roughly 18 blocks)

With a power of 3.0, the dash mechanics should now propel players approximately 20 blocks horizontally. The upward velocity component (Y = 0.3 * power) will also increase to 0.9, giving a nice arc to the dash. The dash bow is slightly lower since players are already shooting an arrow, making the dash a supplementary movement rather than the primary action.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
12 766
src/main/java/com/ffatools/FFAToolsPlugin.java
package com.ffatools;

import com.ffatools.listeners.CombatListener;
import com.ffatools.listeners.InteractListener;
import com.ffatools.listeners.ProjectileListener;
import com.ffatools.managers.CooldownManager;
import com.ffatools.managers.ItemManager;
import com.ffatools.commands.FFAToolsCommand;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class FFAToolsPlugin extends JavaPlugin {
    
    private CooldownManager cooldownManager;
    private ItemManager itemManager;
    
    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.cooldownManager = new CooldownManager();
        this.itemManager = new ItemManager(this);
        
        getCommand("ffatools").setExecutor(new FFAToolsCommand(this));
        
        getServer().getPluginManager().registerEvents(new InteractListener(this), this);
        getServer().getPluginManager().registerEvents(new CombatListener(this), this);
        getServer().getPluginManager().registerEvents(new ProjectileListener(this), this);
        
        getLogger().info("FFATools has been enabled!");
    }
    
    @Override
    public void onDisable() {
        getLogger().info("FFATools has been disabled!");
    }
    
    public void reloadPlugin() {
        reloadConfig();
        this.itemManager = new ItemManager(this);
    }
}