Tick Tok lib

Quick rating

Community listing page, reviews here may not be monitored by the author.

Tick Tok lib

No reviews yet

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.

No Theme
No Genre
QoL & Tweaks
API/Library
Mod Loaders
NeoForge
Minecraft

Community voices

Reviews

List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Show per page
10
25
50
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

About

Project Details

Type
Mod
Latest Version
ticktoklib-1.4.3.jar

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

CurseForge ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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);
    }
}

Screenshots

Gallery

This project has no gallery images yet.

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

~11,000
Downloads
Last Updated
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