File tree Expand file tree Collapse file tree
src/routes/wiki/files/predicates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11---
22title: Predicates
33description: Predicates are a type of file which can be called to check if a certain condition is true.
4- version: 1.21.4
4+ version: 1.21.5
55---
66
77# Predicates
@@ -124,6 +124,8 @@ These are all the possible conditions that can be used in a predicate.
124124 - `movement`: An object which matches the movement of the entity.
125125 - `periodic_tick`: Returns true once every `x` ticks of the entity's lifetime.
126126 - `movement_affected_by`: Following the same structure as `location`, this matches what affects the movement of the entity.
127+ - `components` - Matches entity components exactly (the component must be exactly equal to what is being checked).
128+ - `predicates` - Matches entity components ignoring any other data in the component (the component must contain what is being checked).
127129
128130### `entity_scores`
129131`entity_scores` checks if the entity's score on an object matches a specified value or range.
You can’t perform that action at this time.
0 commit comments