NBT (Item Condition Type)
Checks whether the item's NBT contains the given data.
Type ID: apoli:nbt
Fields
| Field | Type | Default | Description |
|---|---|---|---|
nbt | NBT | required | The NBT data to look for. |
Examples
"item_condition": {
"type": "apoli:nbt",
"nbt": "{exampleCustomTag: 1b}"
}This checks whether the item stack has the exampleCustomTag: 1b NBT.
note
apoli:custom_data is the same condition. The original Apoli uses that name because it reads the item's minecraft:custom_data component, and both IDs do the same thing here.