UI Timer Lib

Quick rating

UI Timer Lib

No reviews yet

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

API/Library
Minigame
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Required
Server Unsupported

About

Project Details

Type
Mod
License
MIT License
Latest Version
1.0.0
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

About

Description

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 live countdown timers
  • Change text and background colors easily
  • Show and hide the overlay
  • 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 (24-bit RGB hexadecimal integer)
UIUtils.setColor(int rgb);
  • Set background color (24-bit RGB hexadecimal integer)
UIUtils.setBackground(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;
  • Query background color
UIUtils.background;

Screenshots

Gallery

  • Timer library in use
    Timer library in use Timer library in use in my "Random Effects Every Minute " mod
  • Timer in low GUI scale and low width chat setting
    Timer in low GUI scale and low width chat setting The timer in use with personal settings in use. Looks pretty good in game.
  • UI Utils feature explanation sheet
    UI Utils feature explanation sheet This library is a free library that implements a timer with a label that is fully customizable
  • UI Utils explanation poster
    UI Utils explanation poster This mod will make HUD timers easier to make than ever. Custom controls with no hassle.
  • UI Utils labeled timer library GUI examples
    UI Utils labeled timer library GUI examples Labeled timer library for mods like minecraft challenge every minute effect and chaos

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works