Skip to main content

NBT (Block Condition Type)

Checks whether the NBT of the block's block entity contains the given data.

Type ID: apoli:nbt

Fields

FieldTypeDefaultDescription
nbtNBTrequiredThe NBT data to look for.

Examples

"block_condition": {
    "type": "apoli:and",
    "conditions": [
        {
            "type": "apoli:block",
            "block": "minecraft:beacon"
        },
        {
            "type": "apoli:nbt",
            "nbt": "{Levels: 1}"
        }
    ]
}

This checks whether a beacon has a Levels value of 1.