NBT
Provides the value of the NBT if it's a boolean, or check if the count of the NBT is greater than 1 if it's not a boolean.
Type ID: kaya:nbt
Format
| Field | Type | Default | Description |
|---|---|---|---|
source |
NBT Provider | The source to get an NBT from. | |
path |
NBT Path | The path of the desired NBT to get from the source. |
Example
{
"type": "kaya:nbt",
"source": {
"type": "kaya:storage",
"id": "example:data"// (1)!
},
"path": "value"
}
-
An example data storage with the following contents:
This example queries the value of the value NBT from the example:data data storage.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |