HomeJavaModsTickScheduler API
TickScheduler API
TickScheduler API — screenshot 1

TickScheduler is a lightweight Tick library for mods:

FULL INFO ON GITHUB:

You can use it to:

Commands:

API classes:

SchedulerAPI - High-level scheduling interface
TickScheduler - Internal engine
Types - Task types, context, builder, priorities
PersistentStorage - Save & load persistent tasks
ConditionScheduler- Condition-based logic
TaskRegistry - Restore persistent task types

Example: Custom persistent task

SchedulerAPI.builder()
    .delay(60)
    .repeat(10)
    .maxRuns(5)
    .priority(Types.Priority.HIGH)
    .persistent()
    .type("regenerate")
    .submit(ctx -> {
        System.out.println("Regenerating at " + ctx.tick);
    });

Persistent tasks survive world reloads. Profiler measures real execution time of scheduled tasks.


Port on NeoForge and on 1.21.1 later maybe...

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more