Copy Operation
An object that determines how NBT is copied from the specified source NBT path to the target NBT path.
Fields
Field | Type | Default | Description |
---|---|---|---|
source |
NBT Path | The NBT path to copy from. | |
target |
NBT Path | The NBT path to copy to. | |
op |
String | Determines how the NBT is copied. Accepts either "replace" , "merge" (for merging objects) or "append" (for adding to the end of an array). |
Examples
This example will completely replace the contents of the collectedGems
NBT path with the data from the Item.tag.gems
NBT path.