Back to mods
CooldownLib project artwork

Modrinth · Minecraft mod

CooldownLib

A lightweight Fabric library that makes adding cooldown systems to Minecraft mods simple. Create, manage, and customize cooldowns with an easy-to-use API. Simple cooldowns. Clean code.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which CooldownLib release matches 26.2?

Updated yesterday
Best match for your filters 2.0.0-mc.26.2
Game version 26.2
Loader Fabric

CooldownLib 2.0.0-mc.26.2 targets 26.2 with Fabric. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.

Where it goes

Is CooldownLib required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does CooldownLib 2.0.0-mc.26.2 need?

2.0.0-mc.26.2 on 26.2. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add CooldownLib without breaking your instance.

Built for CooldownLib 2.0.0-mc.26.2 on 26.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 2.0.0-mc.26.2. It targets 26.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 2.0.0-mc.26.2. It opens that exact file at the source.

About this project

What does CooldownLib add?

CooldownLib is a simple and lightweight Fabric library that allows Minecraft mod developers to easily add cooldown systems to their mods.

Instead of creating custom timers, HashMaps, and tick logic for every ability or item, CooldownLib provides a clean and easy-to-use API for managing cooldowns.

Example:

            Cooldown.trigger(player)
           
            .key("fireball")
   
    .ticks(20 * 10)
    
    .message("§cFireball is still on cooldown!")
    
    .run(() -> {
   
        castFireball();
   
    });

CooldownLib automatically handles:

Cooldown storage
Multiple cooldowns per player
Time calculation
Cooldown expiration
Custom cooldown messages
Features

✅ Simple and readable Fluent API

✅ Multiple cooldowns per player

✅ Tick-based cooldown system

✅ Custom cooldown keys

✅ Custom cooldown messages

✅ Lightweight and easy to integrate

Many Minecraft mods need cooldown systems for:

Abilities
Spells
Weapons
Special attacks
Items
Machines
Custom mechanics

Without a library, developers often have to create their own cooldown handling system again and again.

CooldownLib provides a clean and reusable solution, allowing developers to focus on creating their gameplay features instead of rewriting cooldown code.

Installation

Add CooldownLib as a dependency to your Fabric mod.

Import:

import com.cooldown.lib.Cooldown;

Example:

    Cooldown.trigger(player)
    
    .key("dash")
    
    .ticks(200)
    
    .message("§cDash is still charging!")
    
    .run(() -> {

        performDash();

    });

API Usage
Create a Cooldown

    Cooldown.trigger(player)
    
    .key("ability")
    
    .ticks(100)
    
    .message("Ability is unavailable!")
    
    .run(() -> {

        // Your action here

    });

Check a Cooldown

Cooldown.active(player, "ability");

Remove a Cooldown

Cooldown.clear(player, "ability");

Supported Versions

Minecraft: 1.21.11
Loader: Fabric
Language: Java

Project description from Modrinth.

Pick your setup

CooldownLib by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

2 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

CooldownLib versions and loaders

1 of 2 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.