Minecraft:Advancement/Conditions/block
From SAS Gaming Wiki
More actions
- Template:NbtTemplate:Nbt: (Optional) Template:Json ref/block. Test fails if the block is not a matching block type.
- Template:Nbt: (Optional) Tests the Minecraft:block state. Test fails if the block doesn't have matching block state properties.
- Template:Nbt: Property key and value.
- Template:Nbt: Property key and value range. If neither Template:Nbt nor Template:Nbt is specified, any value will match.
- Template:Nbt: (Optional) Minimum value. Despite being represented as a string, comparison is done using the property's actual type. Integers use numeric order, and booleans order Template:Cd before Template:Cd.
- Template:Nbt: (Optional) Maximum value.
- Template:NbtTemplate:Nbt: (Optional) An Minecraft:NBT compound, represented either as an object or a string containing Minecraft:SNBT. In JSON files, SNBT form is the only way to test for some NBT types. Test fails if the block doesn't have matching NBT data.
- Template:Nbt: (Optional) Data components to match exactly. Each key in this object is a component ID, and its value is a full component of that type. Test fails if the block doesn't have exactly the same value for every provided component.
- Template:Nbt: (Optional) Minecraft:Data component predicates to match components loosely. Each key in this object is a component predicate ID, and its value is a component predicate of that type. Test fails if the block's components do not match all predicates.