LokaLib
by 0neEye
LokaLib gives datapack authors a shared library of events, timers, utility functions and debug tools so custom logic can stay focused on gameplay.
What it does
A datapack that depends on LokaLib can register callbacks for named events through its central event bus, and the library fires its own load event when the world starts. Scheduled timers cover delayed and repeating actions, and the library runs its own scheduler for periodic internal work, so projects do not need to build one. Utility functions handle common checks for players, world state, time of day and math.
The library is built as a datapack-first foundation with a lightweight event system and a load, tick and unload lifecycle. It creates the scoreboards and storage it needs on startup and includes logging, state inspection and compatibility detection for supported server environments. The author aims to keep the core stable and avoid repeated boilerplate in individual projects.
Installation requires Fabric for the server. The server must run the library, while players may leave it out. Files are published for 1.20.3 – 26.1 on Fabric, with snapshot builds published as well, and the latest file is v0.1.0-beta.1 for 26.1 on the beta channel. The code is released under the MIT License and is not open source.
Key features
Named event callbacks
Gameplay logic can register callbacks for named events, keeping it separate from the library's core infrastructure.
Delayed and repeating timers
Timers run delayed or repeating actions, so a project can schedule work without building its own scheduler.
Shared utility functions
Helpers cover player and world state checks, time of day logic, math and debugging output used across datapacks.
Organized namespace layout
Functions sit in a structured namespace that the author arranged to stay readable in larger projects.
Compatibility
Latest build for each game version and loader.
26.x1 of 1 version with builds
1.21.x12 of 12 versions with builds
1.20.x1 of 1 version with builds
This mod also publishes snapshot builds. Snapshots are not shown in the matrix.
Use cases
Who it’s for: Datapack developers who want a common foundation for events, timers and utilities across their projects, and server owners who need the library installed for datapacks that depend on it.
How it compares
TPSnitch is a server-side Fabric mod under the Apache License 2.0 with files for 1.21 – 26.2, and it is open source, which LokaLib is not. KTimer is a client-side Fabric mod under the MIT License, covering 1.21.10 – 26.2, so it addresses a different side of the game than the server-required LokaLib. DataTweaks is a server-side Fabric mod covering 1.21.2 – 1.21.5 under All rights reserved.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| LokaLib | Fabric | 1.20.3 – 26.1 | Server required, client optional | 2026-04-06 |
| TPSnitch | Fabric | 1.21 – 26.2 | Server-side only | 2026-07-09 |
| KTimer | Fabric | 1.21.10 – 26.2 | Client-side only | 2026-08-22 |
| DataTweaks | Fabric | 1.21.2 – 1.21.5 | Server-side only | 2025-06-18 |
Questions
Does a server need LokaLib installed?
Which Minecraft versions does LokaLib support?
In the catalog
LokaLib is one of 8,016 Management mods on ModsFinder, and one of 5,930 Management mods for Fabric. 11,959 mods support Minecraft 26.1.
Similar mods
What the author says
LokaLib is a modern, performance-focused Minecraft datapack library built to make datapack development faster, cleaner, and easier to maintain. It is designed as a datapack-first foundation for other projects, giving developers a structured API, a lightweight event system, scheduled timers, utility functions, debug…
Official listing
- Modrinth page
- modrinth.com/mod/lokalib
- Owner
- 0neEye
- Published
- 2026-04-04
- Updated on Modrinth
- 2026-04-06
- Facts verified
- 2026-10-15
