Moxlib

⭐ — (10 endorsements) 📥 1,380 downloads 📌 v0.5.13 📅 12/30/2022
⚪ Last updated 2024

By moxvallix · datapack

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 6/19/2024 📅 Created: 12/30/2022

🔍 Analysis

  • 👍 0.7% endorsement rate
  • 🏆 #1033 of 2025 datapack mods in this game by downloads

📋 About This Mod

# Moxlib ## Moxvallix's Datapack Creation Library Moxlib aims to make Datapack creation fun and enjoyable. With a predictable API, and a focus on data driven functionality, Moxlib serves as an excellent foundation to any Datapack project. Moxlib aims to run as little as possible on the tick function. Most functions in the pack only run when they are called. Another focus of the pack is instantaneous functions. Most of the functions in the pack have been designed to run in a single tick, and do not use schedules, or other timer based methods. Moxlib is licensed under the GNU LGPL, meaning you are free to use it in your own Datapacks, themselves under any license, but any changes you make to Moxlib must be released under the terms of the LGPL. See (https://github.com/moxvallix/moxlib/blob/main/LICENSE.md) for full license. Suggestions and contributions welcomed! ## The API ### Conventions Any function outside of the `moxlib:api` folder is considered private, and is not supported. Functions that take in data storage as an input, will read and write data at the same path you would use to call the function. Eg. `/function moxlib:api/helpers/block/get` writes to `/data get storage moxlib:api/helpers/block/get` However, the `test` and `tui` modules are an exception, using more semantic language for their respective tasks. See their individual documentations. Functions will usually take in a `target`. Think of this as the main input. It is the piece of data that the function will manipulate. Functions will occasionally ask for other data as well. Functions, if they output anything, will write to `output`. Optionally, they might also record their success to a `success` tag, although not all functions implement this. Some functions and modules are marked as "experimental". These require (https://github.com/moxvallix/moxlib-exp) to function. ### Modules #### Helpers (https://github.com/moxvallix/moxlib/blob/main/docs/helpers.md) The helpers module contains small, miscellaneous, but helpful functions. These functions are too small and specific to warrant a module of their own. #### Data (https://github.com/moxvallix/moxlib/blob/main/docs/data.md) The data module contains functions specifically for working with arrays of NBT data. #### Test (https://github.com/moxvallix/moxlib/blob/main/docs/test.md) The test module contains functions for testing other functions. Currently, it can only test to see that a function returned the correct value. #### TUI (https://github.com/moxvallix/moxlib/blob/main/docs/tui.md) The TUI module allows for easy creation of data driven TUIs. #### Math (https://github.com/moxvallix/moxlib/blob/main/docs/math.md) The Math module provides some helpful math functions. #### Player (https://github.com/moxvallix/moxlib/blob/main/docs/player.md) The Player module exposes some helpful information about the player. #### String (https://github.com/moxvallix/moxlib/blob/main/docs/string.md) The String module provides functions to manipulate strings. #### Dimension (https://github.com/moxvallix/moxlib/blob/main/docs/dimension.md) Moxlib provides a dimension for storing and accessing blocks. (Requires Moxlib Exp)

# Moxlib ## Moxvallix's Datapack Creation Library

Moxlib aims to make Datapack creation fun and enjoyable.

With a predictable API, and a focus on data driven functionality, Moxlib serves as an excellent foundation to any Datapack project.

Moxlib aims to run as little as possible on the tick function. Most functions in the pack only run when they are called.

Another focus of the pack is instantaneous functions. Most of the functions in the pack have been designed to run in a single tick, and do not use schedules, or other timer based methods.

Moxlib is licensed under the GNU LGPL, meaning you are free to use it in your own Datapacks, themselves under any license, but any changes you make to Moxlib must be released under the terms of the LGPL. See (https://github.com/moxvallix/moxlib/blob/main/LICENSE.md) for full license.

Suggestions and contributions welcomed!

## The API ### Conventions Any function outside of the `moxlib:api` folder is considered private, and is not supported.

Functions that take in data storage as an input, will read and write data at the same path you would use to call the function.

Eg. `/function moxlib:api/helpers/block/get` writes to `/data get storage moxlib:api/helpers/block/get`

However, the `test` and `tui` modules are an exception, using more semantic language for their respective tasks. See their individual documentations.

Functions will usually take in a `target`. Think of this as the main input. It is the piece of data that the function will manipulate. Functions will occasionally ask for other data as well.

Functions, if they output anything, will write to `output`. Optionally, they might also record their success to a `success` tag, although not all functions implement this.

Some functions and modules are marked as "experimental". These require (https://github.com/moxvallix/moxlib-exp) to function.

### Modules #### Helpers (https://github.com/moxvallix/moxlib/blob/main/docs/helpers.md)

The helpers module contains small, miscellaneous, but helpful functions.

These functions are too small and specific to warrant a module of their own.

#### Data (https://github.com/moxvallix/moxlib/blob/main/docs/data.md)

The data module contains functions specifically for working with arrays of NBT data.

#### Test (https://github.com/moxvallix/moxlib/blob/main/docs/test.md)

The test module contains functions for testing other functions.

Currently, it can only test to see that a function returned the correct value.

#### TUI (https://github.com/moxvallix/moxlib/blob/main/docs/tui.md)

The TUI module allows for easy creation of data driven TUIs.

#### Math (https://github.com/moxvallix/moxlib/blob/main/docs/math.md)

The Math module provides some helpful math functions.

#### Player (https://github.com/moxvallix/moxlib/blob/main/docs/player.md)

The Player module exposes some helpful information about the player.

#### String (https://github.com/moxvallix/moxlib/blob/main/docs/string.md)

The String module provides functions to manipulate strings.

#### Dimension (https://github.com/moxvallix/moxlib/blob/main/docs/dimension.md)

Moxlib provides a dimension for storing and accessing blocks. (Requires Moxlib Exp)

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Data Packs
Author
moxvallix
Version
0.5.13
Downloads
1,380
Endorsements
10
Category
datapack
Created
12/30/2022
Updated
6/19/2024
Game Versions
1.21
Tags
library

🔧 How to Install Minecraft Data Packs Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Data Packs →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Data Packs commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Data Packs versions does Moxlib support?

The author lists 1.21. Other versions may work but are untested by the author.

What is the latest version of Moxlib?

Version 0.5.13, published 2024-06-19 with 1,380 downloads recorded at the source.

Keep browsing — more Minecraft Data Packs mods await

📋 All Minecraft Data Packs Mods 🏆 Top 25 📂 More datapack 👤 More by moxvallix 🔎 Similar Mods 🌐 Best datapack (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods