Bring Your Text to Life with Smooth RGB Gradients!
What is GradientAPI? GradientAPI is a lightweight, Adventure-basedutility library that lets developers easily apply smooth RGB gradients to Minecraft text — perfect for chat messages, titles, menus, or anywhere you use Component!
✅ No dependencies used other than Adventure ✅ Java 17+ compatible ✅ Battle-tested across multiple projects ✅ Works in any plugin with Adventure API
Installation If you are a user (you downloaded a plugin that needs this):
Download the latest file.
Drop it into your server's /plugins/ folder.
Restart the server. Done!
✅You do not need to configure anything. The plugin using GradientAPI will handle the rest. If you are a developer: Maven Setup
List
<Color
> primaryColors
=List.
of( newColor(102,
255,
255),
// Aqua Glow (#66FFFF) newColor(0,
191,
255),
// Deep Sky Blue (#00BFFF) newColor(0,
128,
255)// Vivid Blue (#0080FF) );
Component result
= GradientAPI.
gradient("Ocean Breeze", primaryColors
);
The text "Ocean Breeze" will flow from bright aqua to deep sky blue to vivid blue.
And to show it to player:
Code (Java):
importnet.kyori.adventure.text.Component; player.
sendMessage(Component.
text().
append(first_gradient
).
append(Component.
text("any other text messages if required")).
append(second_gradient_if_required_etc
).
build());
API Summary
Code (Java):
publicstaticComponent gradient
(String text, List
<Color
> gradientColors
)
text: The string to colorize (each character will get a color)
gradientColors: List of java.awt.Color to transition between
Minimum of
2 colors required.
Why Use GradientAPI? Because
plain colors are boring, and this gives your plugin: