If a datapack adds the below compound tag to an Enchantments or StoredEnchantments list tag:
{id:"mynamespace:myenchantment", lvl:1s}
Currently the anvil arrow is crossed out, or this compound tag is removed from the output item (depending on order). Instead by default it should be applied to the output item, no mater what the item is.
Then to extent this, have a JSON file similar to recipes or advancements where you can register the enchantment. This file would define a list of items the enchantment can be applied to, the base xp cost, and perhaps function hooks for various events involving an enchanted item (attack, used, damaged etc).
This is how I'd love to see custom item/block registration done in datapacks too.
Please sign in to leave a comment.
1 Comments