promotional bannermobile promotional banner

Tick Tok lib

this lib converts ticks into milliseconds, seconds, minutes, and hours so you can develop your mod easier. it also comes with 2 features displays the ingame time and your system time.
affiliate banner image

this will change your developing experince by converting ticks into seconds so in your dev enviroment you can mod with ease instead of calculating in ticks you can code with seconds minuts or hours or both.

  

we also added 2 features it will display the game time ingame and your systems local time. you can turn it on or off and choose the placment in the configs area. you have to hold a clock to use it.

 

example is under me, i also suggest reading through the codebase to understand it more

package com.example.examplemod;

import com.thunder.ticktoklib.TickTokAPI;

/**
 * Demonstrates how to use Tick Tock Lib to convert between Minecraft ticks and real-world time.
 */
public class TickTokExampleUsage {

    public void runExamples() {
        //  Convert 10 seconds into ticks
        int cooldownTicks = TickTokAPI.toTicks(10);
        System.out.println("10 seconds = " + cooldownTicks + " ticks");

        //  Convert 3 minutes into ticks
        int durationTicks = TickTokAPI.toTicksMinutes(3);
        System.out.println("3 minutes = " + durationTicks + " ticks");

        //  Convert ticks back into hours, minutes, and seconds
        int totalTicks = 54000; // Example: 45 minutes
        float seconds = TickTokAPI.toSeconds(totalTicks);
        float minutes = TickTokAPI.toMinutes(totalTicks);
        float hours = TickTokAPI.toHours(totalTicks);

        System.out.println("54000 ticks = " + seconds + "s = " + minutes + "m = " + hours + "h");

        //  Use full time duration on one line
        int customDuration = TickTokAPI.duration(1, 25, 0); // 1 hour, 25 minutes
        System.out.println("1h 25m = " + customDuration + " ticks");

        // Format ticks into readable time
        String asMinSec = TickTokAPI.formatTicksToMinSec(7280);   // "6:04"
        String asHMS = TickTokAPI.formatTicksToHMS(72800);        // "1:00:40"

        System.out.println("7280 ticks = " + asMinSec);
        System.out.println("72800 ticks = " + asHMS);
    }
}

The Tick Tok lib Team

profile avatar
  • 5
    Followers
  • 18
    Projects
  • 135.0K
    Downloads

More from thunderrock424242View all

  • Locate Fixer project image

    Locate Fixer

    • 87.5K
    • Mods

    you ever get that annoying msg that says biome not found or structure not found? well this fixes that command and adds some features, also the locate command runs async which improve performance.

    • 87.5K
    • May 13, 2026
    • Mods
    • +4
  • Sticky Redstone project image

    Sticky Redstone

    • 89
    • Mods

    Sticky Redstone allows Redstone to be placed on walls and ceilings to craft its one slime ball and Redstone dust

    • 89
    • April 13, 2026
    • Mods
    • +2
  • Debug Guardian project image

    Debug Guardian

    • 4.1K
    • Mods

    this mod will help and aid in finding what is causing your crash or issue.

    • 4.1K
    • February 3, 2026
    • Mods
    • +1
  • Wilderness Odyssey API project image

    Wilderness Odyssey API

    • 8.7K
    • Mods

    this is a mod made for the modpack wilderness odessy. it has lots of tools and things in it. and others can use it too

    • 8.7K
    • January 23, 2026
    • Mods
    • +2
  • Locate Fixer project image

    Locate Fixer

    • 87.5K
    • Mods

    you ever get that annoying msg that says biome not found or structure not found? well this fixes that command and adds some features, also the locate command runs async which improve performance.

    • 87.5K
    • May 13, 2026
    • Mods
    • +4
  • Sticky Redstone project image

    Sticky Redstone

    • 89
    • Mods

    Sticky Redstone allows Redstone to be placed on walls and ceilings to craft its one slime ball and Redstone dust

    • 89
    • April 13, 2026
    • Mods
    • +2
  • Debug Guardian project image

    Debug Guardian

    • 4.1K
    • Mods

    this mod will help and aid in finding what is causing your crash or issue.

    • 4.1K
    • February 3, 2026
    • Mods
    • +1
  • Wilderness Odyssey API project image

    Wilderness Odyssey API

    • 8.7K
    • Mods

    this is a mod made for the modpack wilderness odessy. it has lots of tools and things in it. and others can use it too

    • 8.7K
    • January 23, 2026
    • Mods
    • +2