data
: Root command node.get
: Gets the value of an NBT. It will be printed in display and passed in the command result value.- A target data object
[<path>]
: Optional. An NBT path for tag retrieval.[<scale>]
: Optional; requires[<path>]
. The scale to multiply the retrieved number tag by, so that float-point numbers can be stored properly in a command result.
- A target data object
merge
: Merges a hardcoded NBT into a data object.- A target data object
<nbt>
: A Compound NBT written in the command definition to merge into the root tag of the target.
- A target data object
modify
: Modifies a target data object from an NBT source.- A target data object
<targetPath>
: An NBT path for tag retrieval.append
: Inserts the source NBT into the end of the target NBT list or array. Same asinsert -1
.- An NBT source
insert
: Adds the source NBT to a specific location in the target NBT if the target NBT is an array or a list.<index>
: The intended index of the inserted source NBT in the list or array after the operation. A negative number indicates its index from the end of the array, such as-1
indicates the source NBT will be the last element in the list or array after insertion.- An NBT source
merge
: Merges the source NBT into the target NBT.- An NBT source
prepend
: Inserts the source NBT into the beginning of the target NBT list or array. Same asinsert 0
.- An NBT source
set
: Overrides the source NBT with the target NBT.- An NBT source
- A target data object
remove
: Removes the NBT on an NBT path.- A target data object
<path>
: An NBT path for tag retrieval.
- A target data object
A target or source data object:
block
: Indicates a block entity target or source.<targetPos>
/<sourcePos>
: A coordinate for the block entity.
entity
: Indicates an entity target or source.<target>
/<source>
: A target selector for the entity, in which thelimit
argument must be set to1
.
storage
: Indicates an command storage target or source.<target>
/<source>
: A namespaced ID of this storage.
An NBT source
from
: Indicates a block entity/entity source.- A source data object
[<path>]
: Optional. An NBT path for tag retrieval.
- A source data object
value
: Indicates a hardcoded NBT source.<nbt>
: An NBT value written in the command definition.