Skip to main content

NBT

Substitutes the NBT-value at a given path as retrieved from various sources; this tag acts as a placeholder and must thereby be self-closing (does not accept content).

Block

Retrieves data from a block within the player's world.

AttributeTypeMandatoryDescription
coordinates ScalaryesCoordinates of the block
path ScalaryesPath of NBT-value
separator MarkupnoSeparator for list-items
interpret true/falsenoInterpreted values as components
<block-nbt
coordinates="123 43 -87"
path="my.path"
separator={
<gray>,
}
/>

Entity

Retrieves data from an entity within the player's world.

AttributeTypeMandatoryDescription
selector ScalaryesTarget selector
path ScalaryesPath of NBT-value
separator MarkupnoSeparator for list-items
interpret true/falsenoInterpreted values as components
<entity-nbt
selector="@e[limit=5,sort=nearest]"
path="my.path"
separator={
<gray>,
}
/>

Storage

Retrieves data from a resource-location or command-storage.

AttributeTypeMandatoryDescription
key ScalaryesResource location
path ScalaryesPath of NBT-value
separator MarkupnoSeparator for list-items
interpret true/falsenoInterpreted values as components
<storage-nbt
key="my.resource"
path="my.path"
separator={
<gray>,
}
/>