HomeJavaModsGradientAPI
Simple API to make Gradient Text in minecraft...

Code (Text):
import org.bukkit.ChatColor;
public class GradientAPI {

    public String generateGradient(String message) {
        StringBuilder gradientMessage = new StringBuilder();
        ChatColor[] colors = {
                ChatColor.RED, ChatColor.GOLD, ChatColor.YELLOW, ChatColor.GREEN, ChatColor.AQUA, ChatColor.BLUE, ChatColor.LIGHT_PURPLE
        };

        int colorIndex = 0;
        for (char c : message.toCharArray()) {
            ChatColor color = colors[colorIndex];
            gradientMessage.append(color + String.valueOf(c));
            colorIndex = (colorIndex + 1) % colors.length;
        }

        return gradientMessage.toString();
    }
}
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

GradientAPI is a free Minecraft Java mod. Compatible with Minecraft 1.19, 1.20. Downloaded 56 times (via Spigot). Download it and open it directly in the game.

Explore more