Mineuniverse
Log in Register
Mods

[SBW] ColorableLib

SuperbWarfare library for easy vehicle coloring.
by NotPancerny
Download Claim this project
746 downloads
0 likes
Updated Jul 6, 2026
0 hypes
API and Library Cosmetic Server Utility Technology Utility & QoL

Library used to easily implement SuperbWarfare vehicles coloring.

ColorableLib is a lightweight library dedicated for SuperbWarfare addons. ColorableLib is based on Capability logic and implements management engine and automatic server-client synchronization, also changing SuperbWarfere vehicle renderer.

import colorable.capability.EntityColorCapability;
import net.minecraft.world.entity.Entity;

/**
 * Example usage of the ColorableLib API.
 */
public class ColorableExample {

    /**
     * Demonstrates how to manipulate entity color layers.
     * 
     * @param targetEntity The entity to be colored (must support the capability).
     * @param color        Color in decimal or hex format (e.g., 0xFF0000 for red).
     */
    public void exampleMethod(Entity targetEntity, int color) {
        // Access the color capability of the target entity
        targetEntity.getCapability(EntityColorCapability.CAPABILITY).ifPresent(cap -> {
            if (!targetEntity.level().isClientSide) {
                
                // Add or update a specific color layer
                cap.setLayer(targetEntity, "example_id", color);

                // Removed a specified layer
                cap.removeLayer(targetEntity, "example_id");
            }
        });
    }
}
ColorableLib-1.0.0.jar
MC Client, 1.20.1, Forge, Server
Release 2026-05-06 Get

More from NotPancerny

[SBW] Colorized!
5,176
[SBW] Drill, baby, drill!
28,576
[DISCONTINUED] [SBW] Wrecked!
18,775

You Might Also Like

Vivecraft
A Minecraft VR mod on a loader of your choice!
9,988,339
Athena
A crossplatform (Forge/Fabric) solution to connected block textures for 1.19.4+
99,799,527
Lodestone
A collection of code used throughout projects under the Lodestar team.
9,914,417
TheDragonLib
A library for most of sokratis12GR's Mods
9,910,232
Multi Mob Library
A library mod containing essential files for Daveyx0's mob mods
9,892,767
FTB Library (Forge) (Legacy)
FTB Library is a library mod that is used for some of our mods.
98,265,314