Skip to content

Phase

Namespace Mc.Scripting · Kind enum

public enum Phase : int

Server tick phases in execution order (the engine’s phases). Deferred changes (entity creation, component add/set/remove) made in one phase are visible to every later phase of the same tick, e.g. an entity a native NetworkReceive system creates is seen by Tick systems.

Name Value Description
NetworkReceive 0 Drain inbound packets, apply them to entities.
PreTick 1 Timers, scheduled tasks, input integration.
Tick 2 Game logic (entities, blocks, …).
PostTick 3 Removals, collision resolution, derived state.
Tracking 4 Spatial index update, view diffs.
NetworkSend 5 Build and encode outbound packets.
AsyncIntegration 6 Integrate worker results (chunk loads, lighting).