Community listing page, reviews here may not be monitored by the author.
xzutils
No reviews yet
Useful and obscure. Provides enchantment reformatting for data manipulation.
Community voices
Reviews
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
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.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
XZUtils
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:<name>,level:<value>},{id:<name>,level:<value>}] for easy enchantment manipulation.
ie;
{"minecraft:sharpness":5,"minecraft:looting":2}
converts to
[{"id":"minecraft:sharpness","level":5},{"id":"minecraft:looting","level":2}]
USAGE:
- in storage, set
xzu:temp into your enchantment map. - run
function xzu:enchant/build_enchantment_map/main - 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.
Screenshots
Gallery
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
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources