MatrixColorAPI is a powerful and flexible library for processing and applying custom colors, gradients, and text decorations in Minecraft servers. It supports hex colors, legacy Minecraft color codes, and more advanced formatting like gradients and solid colors.
This library simplifies color management while allowing developers to build beautifully formatted text with ease!
!Thumbnail
While MatrixColorAPI is designed to work with all Minecraft server software, it has currently been extensively tested only on Bukkit platforms. We encourage users on other platforms to try it out and report any issues they encounter. Your feedback is crucial in making MatrixColorAPI universally compatible!
!API Version
MatrixColorAPI is hosted on Jitpack, making it easy to integrate with your Maven or Gradle projects. Follow the steps below to add it to your project:
Add the Jitpack repository to your build.gradle file (inside repositories block):
repositories {
maven { url 'https://jitpack.io' }
}
Add the dependency in your dependencies block:
dependencies {
implementation 'com.github.MatrixCreations:MatrixColorAPI:v1.0.7'
}
Add the Jitpack repository to your pom.xml:
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
Add the dependency in your dependencies block:
<dependency>
<groupId>com.github.MatrixCreations</groupId>
<artifactId>MatrixColorAPI</artifactId>
<version>v1.0.7</version>
</dependency>
!Solid Color Example
String text = "<SOLID:#FFD700>This is yellow text";
String processed = MatrixColorAPI.process(text);
!Gradient Color Example
String gradientText = "<GRADIENT:#FF0000>This is a red to yellow gradient</GRADIENT:#FFFF00>";
String processedGradient = MatrixColorAPI.process(gradientText);
!Legacy Color Example
String legacyText = "&aThis is a green text with &lBOLD";
String processedLegacy = MatrixColorAPI.process(legacyText);
!Hex Color Example
String hexText = "&#FFD700This is a yellow text with &lBOLD";
String processedLegacy = MatrixColorAPI.process(hexText);
process(String text): Process a single string for color codes, gradients, and formatting.process(List<String> texts): Process a list of strings for color codes and formatting.We welcome contributions! To get started:
Make sure to follow the coding standards and include tests where appropriate.
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
Thanks to everyone contributing to this project! Your support and feedback help make MatrixColorAPI even better.
For any questions or feedback, feel free to open an issue or reach out to us on our discord server.

Powerful Minecraft Color Parser Library. Supporting every version from 1.16.5 to 1.21+ on every server software!