Skip to main content
Version: 26.1.x

Tick Events

dev.architectury.event.events.common.TickEvent

Fires every game tick on the server. Each event has a PRE variant (before the tick is processed) and a POST variant (after). All are notifications.

Events

EventListener receivesWhen
SERVER_PRE / SERVER_POSTMinecraftServerAround each server tick.
SERVER_LEVEL_PRE / SERVER_LEVEL_POSTServerLevelAround each server level tick.
PLAYER_PRE / PLAYER_POSTPlayerAround each player tick.

Every listener implements a single tick(instance) method, where instance is the type in the table above.

Example

TickEvent.SERVER_POST.register(server -> {
// runs 20 times per second on the server thread
});

TickEvent.PLAYER_PRE.register(player -> {
// runs every tick for each player
});
Keep tick listeners cheap

These run extremely often. Avoid heavy work directly inside a tick listener - it runs for every server tick (or every player, every tick).

note

For client ticks, see Client Tick Events.