xzutils
🟡 Updated this yearPreview

🔍 Analysis
- 🏆 #1062 of 1745 datapack mods in this game by downloads
📋 About This Mod
# XZUtils XZUtils is a library designed to aid datapack developmnent in niche ways. ### Functions <details> <summary>Enchantment Data Restructuring</summary> Enchantment data is stored in items like so: `{id:level,id:level}` This is difficult to work with. This outputs a copy formatted as `` for easy enchantment manipulation. ie; `{"minecraft:sharpness":5,"minecraft:looting":2}` converts to `` USAGE: 1. in storage, set `xzu:temp in` to your enchantment map. 2. run `function xzu:enchant/build_enchantment_map/main` 3. your formatted map is located in `xzu:temp out` Example: ``` # put enchantments from players held item in storage input data modify storage xzu:temp in set from entity @p SelectedItem.components."minecraft:enchantments" # convert map function xzu:enchant/build_enchantment_map/main # see formatted data data get storage xzu:temp out ``` NOTE: This requires 0 0 to be chunkloaded, and will set 0 0 0 to be air. XZUtils handles this automatically, but there will be an air block at 0 0 0 every time this function is used. </details>
XZUtils is a library designed to aid datapack developmnent in niche ways.
### Functions
Enchantment Data Restructuring
Enchantment data is stored in items like so:
`{id:level,id:level}`
This is difficult to work with. This outputs a copy formatted as `[{id:
ie; `{"minecraft:sharpness":5,"minecraft:looting":2}` converts to `[{"id":"minecraft:sharpness","level":5},{"id":"minecraft:looting","level":2}]`
1. in storage, set `xzu:temp in` to your enchantment map. 2. run `function xzu:enchant/build_enchantment_map/main` 3. your formatted map is located in `xzu:temp out`
Example: ``` # put enchantments from players held item in storage input data modify storage xzu:temp in set from entity @p SelectedItem.components."minecraft:enchantments"
# convert map function xzu:enchant/build_enchantment_map/main
# see formatted data data get storage xzu:temp out ```
📊 Mod Details
- Game
- Minecraft Data Packs
- Author
- xokz
- Version
- 1.0.0
- Downloads
- 26
- Endorsements
- 0
- Category
- datapack
- Created
- 3/12/2026
- Updated
- 3/10/2026
- Game Versions
- 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
- Tags
- library, utility
🔧 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 xzutils support?
The author lists 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10. Other versions may work but are untested by the author.
What is the latest version of xzutils?
Version 1.0.0, published 2026-03-10 with 26 downloads recorded at the source.
Keep browsing — more Minecraft Data Packs mods await