LokaLib

Quick rating

LokaLib

No reviews yet

Modern, performance-focused Minecraft datapack library with events, timers, utilities, and developer tools.

Mod Loaders
Datapack
Fabric
Minecraft
26.1

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
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

Compatibility

Supported Environments

Dev Environment
Client Optional
Server Required

About

Project Details

Type
Mod
License
MIT License
Authors

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

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

LokaLib

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 tools, and compatibility helpers in one coherent package.

LokaLib focuses on:

high performance low boilerplate clean architecture logical organization easy reuse developer-friendly workflows

It is made for datapack creators who want a library that feels simple to use, but still stays powerful and scalable under the hood.

What LokaLib does

LokaLib provides a reusable foundation for building datapacks without having to reinvent common systems every time.

It includes:

an event bus for registering and firing callbacks a timer system for delayed and repeating actions player utility functions for common checks world utility functions for time and day logic math utilities for common calculations debug tools for logging and state inspection compatibility detection for supported server environments a clean load / tick / unload lifecycle

The goal is to keep your custom datapack logic focused on gameplay, not infrastructure.

How it works

LokaLib runs as a normal datapack and initializes on world load.

During startup, it:

creates and prepares its internal scoreboards and storage detects supported runtime compatibility signals initializes its event and timer registries fires a library load event

During gameplay, LokaLib:

processes events through a central event bus handles timers without requiring every project to build its own scheduler exposes utility APIs for common tasks runs periodic internal logic in a controlled and optimized way

This structure keeps the core stable and avoids unnecessary repetitive logic in user datapacks.

Main focus

LokaLib is centered around three goals:

  1. Simplicity

The API is meant to be easy to understand and fast to adopt. Developers should not need to fight the framework just to use basic features.

  1. Performance

The library is designed to stay lightweight, avoid excessive tick overhead, and keep work centralized instead of scattered across many datapack systems.

  1. Structure

The namespace and function layout are organized so that the library remains readable, scalable, and maintainable even in larger projects.

Features Event system

Register callbacks for named events and keep gameplay logic separated from core infrastructure.

Timer system

Create delayed or repeating timers without manually building a scheduler each time.

Utility APIs

Common helpers for:

players world state math debugging Debug tools

Useful for development, testing, and state inspection without polluting the main logic.

Compatibility helpers

LokaLib includes runtime compatibility detection and integration-oriented structure intended to work well in hosted environments such as Paper-based and Fabric-based server setups.

Example use cases

LokaLib is useful for datapacks that need:

quest systems minigame logic custom mechanics player state tracking scheduled actions clean reusable code shared utilities across multiple datapacks

It works especially well as a base library for projects that would otherwise repeat the same utility functions over and over again.

Developer notes

LokaLib is not meant to replace gameplay design. It is meant to remove technical friction.

Instead of building the same timer, event, and debug systems in every datapack, you can use LokaLib as a shared foundation and keep your own pack focused on actual content.

Recommended use:

keep custom gameplay logic in your own namespace use LokaLib for utility and infrastructure register callbacks instead of hardcoding everything into tick logic prefer event-driven and timer-based behavior over constant polling Compatibility notes

LokaLib is a datapack, so it runs in the datapack layer of the server.

It includes compatibility detection and structure intended to cooperate better with environments commonly associated with Paper and Fabric hosting. However, because datapacks do not directly replace plugins or mods, any deeper integration depends on the server setup around it.

In practice:

vanilla datapack behavior is the core target Paper support is approached through runtime compatibility awareness Fabric support is treated as best-effort compatibility within the limits of datapacks

This keeps the library realistic and safe to use across different server environments.

Available modules

LokaLib currently includes:

core — load, tick, unload, version, and compatibility initialization event — event registration, dispatching, and hooks timer — delayed and repeating function scheduling math — common numeric helpers player — player state checks world — world time and day utilities debug — logging, assertions, and state inspection compat — server environment detection helpers Typical usage philosophy

A good LokaLib datapack should:

do as little work as possible every tick keep logic modular use registered events instead of scattered checks use timers instead of manual wait loops keep function names short and predictable avoid unnecessary scoreboards and repeated storage reads Summary

LokaLib is a clean, lightweight, and highly structured datapack library for developers who want to build better Minecraft datapacks with less friction.

It is built to be:

fast organized reusable easy to expand practical for real projects

If you want a datapack foundation that feels modern and disciplined, LokaLib is designed for exactly that.

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

<1,000
Downloads
Last Updated
CurseForge
Modrinth
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