Item modifier

Item modifiers are technical JSON files can be created inside data packs and are used to add loot table functions into existing items using the command.

Usage
An item modifier is a loot table function or an array of functions to apply at the item. They can be applied using the command.



Tags
Item modifiers are defined using the JSON format. Below are a list of tags used.


 * : Namespaced ID of the function to apply. List of valid functions can be found here.
 * : Namespaced ID of the function to apply. List of valid functions can be found here.

Data packs
Custom data packs can add new item modifiers. This is the file structure:


 * world save folder
 * datapacks
 * data pack
 * data
 * custom_namespace
 * item_modifiers
 * item modifier name.json

The JSON files go in this folder. Item modifiers are namespaced. To create an item modifier, first create a new folder for the custom namespace, and then create item modifiers within following a similar structure. Then, use /item ... modify with the name of the directory and file (without the .json extension) as the, such as.

Issues
物品修饰符