UI Timer Lib

UI Timer Lib

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

by
6 Downloads
fabriclibraryminigameutility
Rent Server with this Mod

Screenshots

Timer library in use
Timer in low GUI scale and low width chat setting
UI Utils feature explanation sheet
UI Utils explanation poster
UI Utils labeled timer library GUI examples

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.

2026-06-15-11-15-40

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>.jar from 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

UI Timer Lib 1.0.0release
MC 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11fabric
June 12, 2026

How to Install UI Timer Lib on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.11).

3

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

fabric

Minecraft Versions

1.21.11, 1.21.10, 1.21.9 (+3 more)

Server-side

Required

Recommended 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.

Rent Modded Server

Install UI Timer Lib with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.111.21.101.21.91.21.81.21.71.21.6