Download Moxlib — Minecraft Mods — MetaMods
Moxlib

Moxlib

Active

Downloads

0

Last update

1 year ago

Versions

1.19 — 1.21
Server
Libraries

Moxlib

Universal Library for Datapack Creation

Moxlib transforms the datapack development process into an engaging experience. This library offers a predictable API and data-driven approach, making it an ideal foundation for any datapack projects.

One of the key features of Moxlib is minimal use of the tick function. Most package functions activate only when directly called, enhancing performance.

Execution efficiency is another development priority. Core library functions are designed to operate within a single tick, without using delayed calls or timer-based methods.

Core Operating Principles

All functions outside the moxlib:api folder are considered internal and not supported for external use.

Functions working with data storage perform read and write operations via the same paths used to call them. For example, the command /function moxlib:api/helpers/block/get interacts with data through /data get storage moxlib:api/helpers/block/get.

In most cases, functions accept a target parameter, which serves as the primary object for manipulation. When results are available, functions write them to the output section, while execution status may be recorded via the success parameter.

Functional Modules

Helpers - contains compact specialized functions for solving various tasks.

Data - a set of tools for processing NBT data arrays.

Testing - functionality for verifying the correct operation of other functions, allowing confirmation of returned values.

TUI - a module for easily creating data-driven user interfaces.

Mathematics - a collection of useful mathematical functions.

Player - tools for obtaining information about player status.

Strings - tools for working with and transforming string data.

Dimensions - functionality for storing and accessing block data (requires Moxlib Exp installation).

Some modules and functions are marked as experimental and require the additional Moxlib Exp library to function.