ModsJava
ColorAPI
Java mod listed for Minecraft 1.16–1.20. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotColorAPI is an intuitive API plugin that introduces an innovative approach to working with
colors in Minecraft!
This plugin allows you to create entirely new and bespoke color codes, with gradient capabilities, for all text in your Minecraft servers!
Effortlessly adjust color settings using the user-friendly config.yml file. Adapt your color scheme to complement your server theme and captivate players with visually stunning designs.
For Developers:
Easily integrate ColorAPI into all your plugins. Enhance your creations by exploiting the full potential of colors:
Usage
Include the API
How to include the API with Maven:
How to include the API with Gradle:
Implementing ColorAPI
Enrich your Minecraft experience with the creative potential of ColorAPI! Create captivating visuals and immersive gameplay using the power of custom colors and gradients. Whether you're a server administrator or a developer, ColorAPI offers an exceptional way to engage players and elevate your Minecraft projects to new heights.
This plugin allows you to create entirely new and bespoke color codes, with gradient capabilities, for all text in your Minecraft servers!
(Example of a chat plugin using ColorAPI)
Your plugin does not use ColorAPI? Contact the plugin author to add ColorAPI!
It's very easy to add!
For Server Administrators:
It's very easy to add!
Effortlessly adjust color settings using the user-friendly config.yml file. Adapt your color scheme to complement your server theme and captivate players with visually stunning designs.
Config.yml
Code (YAML):
# ----------- Config -----------
# For example, in your text
# - '&y': Light Blue
# - '&z': Red
# - '&X': Gradient Red-Green
colors:
x:
color : "#ECFF00"
y:
color : "#B2EAF4" # Light Blue
z:
color : "#FF0000" # Red
a:
color : "#FFA500" # Orange
b:
color : "#FFC0CB" # Pink
c:
color : "#008000" # Green
d:
color : "#800080" # Purple
gradients:
X:
color1 : "#FF0000" # Red
color2 : "#00FF00" # Green
Y:
color1 : "#0000FF" # Blue
color2 : "#FFFF00" # Yellow
Z:
color1 : "#FF00FF" # Magenta
color2 : "#00FFFF" # Cyan
A:
color1 : "#FFA500" # Orange
color2 : "#FFC0CB" # Pink
B:
color1 : "#008000" # Green
color2 : "#800080" # Purple
C:
color1 : "#800000" # Maroon
color2 : "#00CED1" # Dark Turquoise
# For example, in your text
# - '&y': Light Blue
# - '&z': Red
# - '&X': Gradient Red-Green
colors:
x:
color : "#ECFF00"
y:
color : "#B2EAF4" # Light Blue
z:
color : "#FF0000" # Red
a:
color : "#FFA500" # Orange
b:
color : "#FFC0CB" # Pink
c:
color : "#008000" # Green
d:
color : "#800080" # Purple
gradients:
X:
color1 : "#FF0000" # Red
color2 : "#00FF00" # Green
Y:
color1 : "#0000FF" # Blue
color2 : "#FFFF00" # Yellow
Z:
color1 : "#FF00FF" # Magenta
color2 : "#00FFFF" # Cyan
A:
color1 : "#FFA500" # Orange
color2 : "#FFC0CB" # Pink
B:
color1 : "#008000" # Green
color2 : "#800080" # Purple
C:
color1 : "#800000" # Maroon
color2 : "#00CED1" # Dark Turquoise
For Developers:
Easily integrate ColorAPI into all your plugins. Enhance your creations by exploiting the full potential of colors:
Usage
Code (Java):
String text
=
"&y"
+
"This is a custom colored broadcast!"
;
if (colorAPI != null )
text = colorAPI. translateColorCodes (text ) ;
Bukkit. broadcastMessage (text ) ;
if (colorAPI != null )
text = colorAPI. translateColorCodes (text ) ;
Bukkit. broadcastMessage (text ) ;
Include the API
How to include the API with Maven:
Code (Text):
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.Echo24h</groupId>
<artifactId>ColorAPI</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.Echo24h</groupId>
<artifactId>ColorAPI</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
Code (Text):
repositories {
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly "com.github.Echo24h:ColorAPI:1.0"
}
maven { url 'https://jitpack.io' }
}
dependencies {
compileOnly "com.github.Echo24h:ColorAPI:1.0"
}
Code (Java):
package
com.example.plugin
;
import com.github.colorapi.ColorAPI ;
import org.bukkit.plugin.RegisteredServiceProvider ;
import org.bukkit.plugin.java.JavaPlugin ;
public final class MyPlugin extends JavaPlugin {
private static ColorAPI colorAPI ;
@Override
public void onEnable ( ) {
if ( !setupColorAPI ( ) ) {
getLogger ( ). warning ( "Failed to hook into ColorAPI" ) ;
}
}
private boolean setupColorAPI ( ) {
if (getServer ( ). getPluginManager ( ). getPlugin ( "ColorAPI" ) == null )
return false ;
RegisteredServiceProvider <ColorAPI > rsp = getServer ( ). getServicesManager ( ). getRegistration (ColorAPI. class ) ;
if (rsp == null )
return false ;
colorAPI = rsp. getProvider ( ) ;
return colorAPI != null ;
}
}
import com.github.colorapi.ColorAPI ;
import org.bukkit.plugin.RegisteredServiceProvider ;
import org.bukkit.plugin.java.JavaPlugin ;
public final class MyPlugin extends JavaPlugin {
private static ColorAPI colorAPI ;
@Override
public void onEnable ( ) {
if ( !setupColorAPI ( ) ) {
getLogger ( ). warning ( "Failed to hook into ColorAPI" ) ;
}
}
private boolean setupColorAPI ( ) {
if (getServer ( ). getPluginManager ( ). getPlugin ( "ColorAPI" ) == null )
return false ;
RegisteredServiceProvider <ColorAPI > rsp = getServer ( ). getServicesManager ( ). getRegistration (ColorAPI. class ) ;
if (rsp == null )
return false ;
colorAPI = rsp. getProvider ( ) ;
return colorAPI != null ;
}
}
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.16, 1.17, 1.18
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
ColorAPI is a free Minecraft Java mod. Compatible with Minecraft 1.16, 1.17, 1.18, 1.19 and newer. Downloaded 231 times (via Spigot). Download it and open it directly in the game.