
UI Timer Lib
A simple UI timer for mod creators, made to be as easy to use a possible.
Screenshots





About this Mod
UI Utils
UI Utils is a small Fabric library that makes it easy to display simple HUD elements without having to write your own renderer.
It is designed for mod developers who want a quick and lightweight way to show text and timers on the player's screen.
Here is an example of this library in use.
Features
- Display custom text on the HUD
- Show countdown timers
- Change text colors
- Show and hide the overlay with a simple API
- Lightweight and easy to integrate into other mods
Setting it up
Download the latest
ui-utils-<version>.jarfrom the Versions tab.Add the JAR to your project dependencies.
Add UI Utils as a dependency in your mod.
fabric.mod.json
{ "depends": { "fabricloader": "*", "minecraft": "1.21.6", "ui-utils": "*" } }Import within your Java file.
Main.java
import com.uitutils.UIUtils;
Usage
- Show a labeled timer
UIUtils.show(String label, int seconds);
- Hide timer
UIUtils.hide();
- Set timer value
UIUtils.setTime(int seconds);
- Set timer color
UIUtils.setColor(int rgb);
Internal fields
These fields exist for direct access but are not required for normal usage.
- Query current HUD text string
UIUtils.text;
- Query countdown value in seconds
UIUtils.secondsRemaining;
- Query HUD visibility
UIUtils.visible;
- Query HUD text color
UIUtils.color;
Available Versions
How to Install UI Timer Lib on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.11).
Install Mod
Open the mod browser in the dashboard and search for "UI Timer Lib". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.11, 1.21.10, 1.21.9 (+3 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
UI Timer Lib server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.
Is UI Timer Lib compatible with fabric?
UI Timer Lib officially supports fabric for Minecraft 1.21.11, 1.21.10, 1.21.9. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with UI Timer Lib – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if UI Timer Lib consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install UI Timer Lib with just one click on your server.
