Data component predicate/collection predicate
Minecraft Wiki article. Categories: Data_component_format_subpages
📌 Mirrored from Minecraft Wiki
This article is reproduced from Data component predicate/collection predicate on the Minecraft Wiki. Mirrored from revision 3556474. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
- [NBT List / JSON Array] contains: (Optional. Can be empty) Checks if there is any {{{1}}} passing a test. To succeed, each test must be passed by at least one {{{1}}}, but one {{{1}}} does not have to pass all the tests.
- [NBT Compound / JSON Object]: A test.
- {{nbt inherit/{{{2}}}}}
- [NBT Compound / JSON Object]: A test.
- [Int] size: (Optional) Checks the total number of {{{1}}}s. Matches an exact [Int]value, or checks if the value is between a range.
- [NBT Compound / JSON Object] size: (Optional) Another format.
- [Int] max: (Optional) The maximum value.
- [Int] min: (Optional) The minimum value.
- [NBT List / JSON Array] count: (Optional. Can be empty) Checks the number of {{{1}}}s that pass a test.
- [NBT Compound / JSON Object]: A test and required number.
- [NBT Compound / JSON Object] test: A test.
- {{nbt inherit/{{{2}}}}}
- [Int] count: Matches an exact [Int]value, or checks if the value is between a range.
- [NBT Compound / JSON Object] count: Another format.
- [Int] max: The maximum value.
- [Int] min: The minimum value.
- [NBT Compound / JSON Object] test: A test.
- [NBT Compound / JSON Object]: A test and required number.
- [NBT List / JSON Array] contains: (Optional. Can be empty) Checks if there is any {{{1}}} passing a test. To succeed, each test must be passed by at least one {{{1}}}, but one {{{1}}} does not have to pass all the tests.
Sources
- Data component predicate/collection predicate — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3556474.