{"id":106640,"date":"2026-06-06T06:46:52","date_gmt":"2026-06-06T03:46:52","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/moxlib\/"},"modified":"2026-06-06T06:46:52","modified_gmt":"2026-06-06T03:46:52","slug":"moxlib","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/moxlib\/","title":{"rendered":"Moxlib"},"content":{"rendered":"<p># Moxlib<br \/>\n## Moxvallix&#8217;s Datapack Creation Library<\/p>\n<p>Moxlib aims to make Datapack creation fun and enjoyable.<\/p>\n<p>With a predictable API, and a focus on data driven functionality, Moxlib serves<br \/>\nas an excellent foundation to any Datapack project.<\/p>\n<p>Moxlib aims to run as little as possible on the tick function. Most functions<br \/>\nin the pack only run when they are called.<\/p>\n<p>Another focus of the pack is instantaneous functions. Most of the functions<br \/>\nin the pack have been designed to run in a single tick, and do not use schedules,<br \/>\nor other timer based methods.<\/p>\n<p>Moxlib is licensed under the GNU LGPL, meaning you are free to use it in your<br \/>\nown Datapacks, themselves under any license, but any changes you make to Moxlib must<br \/>\nbe released under the terms of the LGPL. See LICENSE.md for full license.<\/p>\n<p>Suggestions and contributions welcomed!<\/p>\n<p>## The API<br \/>\n### Conventions<br \/>\nAny function outside of the `moxlib:api` folder is considered private, and is not supported.<\/p>\n<p>Functions that take in data storage as an input, will read and write data at the same path<br \/>\nyou would use to call the function.<\/p>\n<p>Eg. `\/function moxlib:api\/helpers\/block\/get` writes to `\/data get storage moxlib:api\/helpers\/block\/get`<\/p>\n<p>However, the `test` and `tui` modules are an exception, using more semantic language for their<br \/>\nrespective tasks. See their individual documentations.<\/p>\n<p>Functions will usually take in a `target`. Think of this as the main input. It is the piece of<br \/>\ndata that the function will manipulate. Functions will occasionally ask for other data as well.<\/p>\n<p>Functions, if they output anything, will write to `output`. Optionally, they might also record<br \/>\ntheir success to a `success` tag, although not all functions implement this.<\/p>\n<p>Some functions and modules are marked as &#8220;experimental&#8221;. These require Moxlib Exp<br \/>\nto function.<\/p>\n<p>### Modules<br \/>\n#### Helpers<br \/>\nSee documentation&#8230;<\/p>\n<p>The helpers module contains small, miscellaneous, but helpful functions.<\/p>\n<p>These functions are too small and specific to warrant a module of their own.<\/p>\n<p>#### Data<br \/>\nSee documentation&#8230;<\/p>\n<p>The data module contains functions specifically for working with arrays of<br \/>\nNBT data.<\/p>\n<p>#### Test<br \/>\nSee documentation&#8230;<\/p>\n<p>The test module contains functions for testing other functions.<\/p>\n<p>Currently, it can only test to see that a function returned the correct value.<\/p>\n<p>#### TUI<br \/>\nSee documentation&#8230;<\/p>\n<p>The TUI module allows for easy creation of data driven TUIs.<\/p>\n<p>#### Math<br \/>\nSee documentation&#8230;<\/p>\n<p>The Math module provides some helpful math functions.<\/p>\n<p>#### Player<br \/>\nSee documentation&#8230;<\/p>\n<p>The Player module exposes some helpful information about the player.<\/p>\n<p>#### String<br \/>\nSee documentation&#8230;<\/p>\n<p>The String module provides functions to manipulate strings.<\/p>\n<p>#### Dimension<br \/>\nSee documentation&#8230;<\/p>\n<p>Moxlib provides a dimension for storing and accessing blocks. (Requires Moxlib Exp)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A library of many helpful functions, tags and predicates, to improve the datapack developer&#8217;s day.<\/p>\n","protected":false},"featured_media":106641,"template":"","meta":{"_minecraft_slug":"moxlib","_minecraft_project_id":"1a4OiT8y","_minecraft_author":"moxvallix","_minecraft_license":"LGPL-3.0-or-later","_minecraft_downloads":1161,"_minecraft_follows":10,"_minecraft_client_side":"optional","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"moxlib.zip","_minecraft_size_bytes":2098644,"_minecraft_version_count":18,"_minecraft_updated_at":"2026-05-16T05:04:42.509638Z","_minecraft_date_created":"2022-12-30T05:14:40.597050Z","_minecraft_date_modified":"2024-06-19T14:24:22.892627Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/moxlib","_minecraft_icon_attachment_id":106641,"_minecraft_imported_at":"2026-06-06T03:46:53+00:00","_minecraft_import_hash":"5e73987518ab0acc9e25ddeab161d879","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[84,873],"mod_loader":[86],"minecraft_version":[54,55,56,57,58,59,36,60,93,94,101,102,62,680],"class_list":["post-106640","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-datapack","mod_category-library","mod_loader-datapack","minecraft_version-1-19","minecraft_version-1-19-1","minecraft_version-1-19-2","minecraft_version-1-19-3","minecraft_version-1-19-4","minecraft_version-1-20","minecraft_version-1-20-1","minecraft_version-1-20-2","minecraft_version-1-20-3","minecraft_version-1-20-4","minecraft_version-1-20-5","minecraft_version-1-20-6","minecraft_version-1-21","minecraft_version-23w03a"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Moxlib - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/moxlib\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Moxlib - Minecraft\" \/>\n<meta property=\"og:description\" content=\"A library of many helpful functions, tags and predicates, to improve the datapack developer&#039;s day.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/moxlib\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/moxlib\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/moxlib\\\/\",\"name\":\"Moxlib - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/moxlib\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/moxlib\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/moxlib-icon-6efac95bb4707c317cd1f1629f678079db8e0799.png\",\"datePublished\":\"2026-06-06T03:46:52+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/moxlib\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/moxlib\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/moxlib\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/moxlib-icon-6efac95bb4707c317cd1f1629f678079db8e0799.png\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/moxlib-icon-6efac95bb4707c317cd1f1629f678079db8e0799.png\",\"width\":256,\"height\":256},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/moxlib\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Moxlib\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Moxlib - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/moxlib\/","og_locale":"en_US","og_type":"article","og_title":"Moxlib - Minecraft","og_description":"A library of many helpful functions, tags and predicates, to improve the datapack developer's day.","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/moxlib\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/moxlib\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/moxlib\/","name":"Moxlib - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/moxlib\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/moxlib\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/moxlib-icon-6efac95bb4707c317cd1f1629f678079db8e0799.png","datePublished":"2026-06-06T03:46:52+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/moxlib\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/moxlib\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/moxlib\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/moxlib-icon-6efac95bb4707c317cd1f1629f678079db8e0799.png","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/moxlib-icon-6efac95bb4707c317cd1f1629f678079db8e0799.png","width":256,"height":256},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/moxlib\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"Moxlib"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/106640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/106641"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=106640"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=106640"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=106640"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=106640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}