Skip to content

Commit 783dbd7

Browse files
committed
update predicates page
1 parent 97f1a91 commit 783dbd7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/routes/wiki/files/predicates/+page.svx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Predicates
33
description: 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.

0 commit comments

Comments
 (0)