erika.loves.u_33036

Change the max speed of horses to 20 blocks per second, but make it very very rare to reach that

Kodari AI
KodariApr 18 at 12:50 pm 7,933 (v2)

I’ll create a plugin that modifies horse speed mechanics with a rarity-based system.

EliteHorses
A horse speed modification plugin that allows horses to reach up to 20 blocks per second with a weighted rarity system. Most horses spawn with normal speed, while elite horses with maximum speed are extremely rare. Uses a configurable power distribution curve to control rarity. Speed is persistent and survives server restarts. Automatically applies to naturally spawned and bred horses.

All files created! The plugin implements a weighted rarity system where:

  • Most horses spawn with speeds between 9-12 blocks/second (normal range)

  • The rarity exponent of 4.0 makes higher speeds exponentially rarer

  • Only the top ~1% of horses will reach speeds near 20 blocks/second

  • Speed is stored persistently using PDC so horses keep their speed after restarts

erika.loves.u_33036

just let it have the same mechanics as in the normal game with the breeding and stuff, just expand the max speed to 20

erika.loves.u_33036

just let it have the same mechanics as in the normal game with the breeding and stuff, just expand the max speed to 20

Kodari AI
KodariApr 18 at 1:33 pm 4,749 (v2)

I’ll simplify the plugin to just extend the maximum speed cap while keeping vanilla breeding mechanics intact.

Plugin updated! Now it:

  • Preserves vanilla horse breeding genetics and mechanics

  • Scales the existing vanilla speed range (4.5-14.5 blocks/sec) proportionally to the new range (4.5-20 blocks/sec)

  • Horses that roll max vanilla speed will reach 20 blocks/sec (very rare naturally)

  • Breeding two fast horses still produces faster offspring following vanilla inheritance

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
8 370
src/main/java/com/elitehorses/EliteHorses.java
package com.elitehorses;

import com.elitehorses.command.EliteHorsesCommand;
import com.elitehorses.listener.HorseListener;
import com.elitehorses.manager.ConfigManager;
import com.elitehorses.manager.HorseSpeedManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class EliteHorses extends JavaPlugin {

    private ConfigManager configManager;
    private HorseSpeedManager horseSpeedManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        
        this.configManager = new ConfigManager(this);
        this.horseSpeedManager = new HorseSpeedManager(this);
        
        getServer().getPluginManager().registerEvents(new HorseListener(this), this);
        
        EliteHorsesCommand commandExecutor = new EliteHorsesCommand(this);
        getCommand("elitehorses").setExecutor(commandExecutor);
        getCommand("elitehorses").setTabCompleter(commandExecutor);
        
        getLogger().info("EliteHorses has been enabled!");
    }

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