ScheduledTickDispatcherLib is a lightweight library mod built on top of the Fabric API, providing a clean, secure, and memory-safe way to schedule ticking tasks in Minecraft.
Designed for mod developers, it allows you to register both immediate and delayed tasks that automatically unregister themselves upon completion (or allow you to unregister them manually) — eliminating memory leaks and ensuring optimal performance.
START_SERVER_TICK, END_CLIENT_WORLD_TICK) for exact control.Add the library as a dependency via Maven:
repositories {
maven {
url "https://cursemaven.com"
}
}
dependencies {
//Change latest_version to version of the file you're downloading.
//Current latest is 6397403.
modImplementation "curse.maven:scheduledtickdispatcherlib-1236960:latest_version"
}
Then, refresh your project dependencies and you're good to go!
ScheduledTickDispatcher contains rich javadoc all over the place, documenting every class and method, as well as an example mod in the repository. For more in-depth explanation to cover most use cases, please view the Wiki.
To ensure stability and prevent abuse: