NBT
Provides the value of the NBT if it's a float, or the count of the NBT it's not a float.
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": "stuff"
}
-
An example data storage with the following contents:
This example queries the value (or rather the amount of elements) of the stuff NBT from the example:data data storage.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |