
target: The NBT path to copy to, starting from the item's tag tag.
A resource location specifying the storage ID to copy NBT from. This add-on currently adds 14 unique, customisable tools. source: Included only if type is set to storage. Tinkers Construct is a Java mod, first created by mDiyo, now recreated in Bedrock Edition This add-on adds a variety of new tools and weapons to the game, along with some extra features.Can be block_entity, this, killer, direct_killer, or killer_player. Specifies an entity or block entity from loot context to copy NBT from. It also shows the JSON structure of a loot function, the primary JSON structure within an item modifier.
This page describes how item modifiers are defined and invoked.
target: Included only if type is set to context. Item modifiers are technical JSON files that can be created inside data packs and are used to add loot functions into existing items using the command /item. type: Set to context to use a block entity or an entity as the source, or storage to use a command storage as the source. source: Information of the block entity, entity or storage to copy NBT from. Specifies an entity or block entity from loot context. source: Shorthand form of source below with type set to context. copy_nbt-Copies NBT values from a specified block entity or entity, or from command storage to the item's tag tag. Multiple item functions may be entered into one item modifier by placing them into a JSON array. This section describes the JSON format of a single item function. Item replace (block | entity ) from (block | entity ) Īlthough item modifiers are only invokable using commands, item functions (the underlying structure) can be entered into other files such as Loot tables. There are two variations of this command: / item modify invokes a modifier alone upon the target slot, / item replace replaces the item in the target slot with another and subsequently invokes a modifier upon it. When doing so, it is required to specify a target slot to invoke the modifier upon, either an item inside a container block's contents, or inside an entity's inventory. Item modifiers can only be invoked with the / item command. The root element of an item modifier can be either an object, following the structure of an item function below, or an array, containing multiple item functions.