Tick Rate (Entity Condition Type)
Checks the tick rate the entity is running at, once its own rate, its chunk's rate and its dimension's rate have been resolved in that order. A passenger reports the rate of the vehicle at the bottom of its stack.
Type ID: apoli:tick_rate
Fields
| Field | Type | Default | Description |
|---|---|---|---|
scope | String (entity, chunk, dimension or server) | entity | Which rate to read: the entity's own effective rate, the rate of the chunk it stands in, the dimension's, or Minecraft's own server tick rate. |
comparison | Comparison | optional | How to compare the rate. Leave it out to test only frozen. |
compare_to | Integer or Expression | 0 | The value the rate is compared against. |
frozen | Boolean | optional | When set, the scope must be frozen (true) or must not be (false). A frozen scope reads as rate 0. |
An entity with no override anywhere reports the server's own tick rate, which is 20 unless an operator has changed it.
Examples
{
"type": "apoli:tick_rate",
"comparison": "<",
"compare_to": 20
}This passes while the entity runs slower than the server.
{
"type": "apoli:tick_rate",
"scope": "chunk",
"frozen": true
}This passes while the chunk the entity is standing in is frozen.