Skip to main content

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

FieldTypeDefaultDescription
scopeString (entity, chunk, dimension or server)entityWhich 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.
comparisonComparisonoptionalHow to compare the rate. Leave it out to test only frozen.
compare_toInteger or Expression0The value the rate is compared against.
frozenBooleanoptionalWhen 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.