query · world.construction

Active construction

Returns a bounded stable-ID window of current construction projects.

world.construction.active(filters?, cursor?, page_size?) -> query-page
Stable ID
world.construction.active
Owner
game.construction
Authority
read_only
Timing
immediate
Availability
active-session
Side effects
none
Determinism
stable owner order at the current committed tick
Introduced
1.5.0

Usage

Read current active construction records, including worker-interruption blockage, recovery timing, and successful handoff history, before presenting status or submitting cancellation. Returned records are detached and cannot change the project.

Parameters

Returns

Active Construction identities, definitions, Work revisions and player priority, stages, blockage, interruption timing, successful handoff history, and failure cause in stable order.

Cost

Bounded active Construction index visits.

Fields

IDTypeUnitsRequiredDescription
blockageenumerationnoneyesCurrent blockage reason.
blocked_since_tickunsigned-integer-or-nullfixed-ticksnoTick when the current blockage began.
construction_idstable-idnoneyesConstruction identity.
definition_idstringnoneyesAuthored building definition identity.
failure_causeenumerationnoneyesRetained terminal failure cause.
job_idstable-idnoneyesConstruction Work job identity.
job_revisionrevisionnoneyesCurrent Work job revision.
last_worker_interruption_tickunsigned-integer-or-nullfixed-ticksnoMost recent retained worker-interruption tick.
last_worker_reassignment_tickunsigned-integer-or-nullfixed-ticksnoMost recent successful worker-handoff tick.
origin_xsigned-integergrid-cellsyesConstruction origin X coordinate.
origin_ysigned-integergrid-cellsyesConstruction origin Y coordinate.
player_priorityunsigned-integerbasis-pointsyesDurable player-priority contribution.
revisionrevisionnoneyesCurrent construction revision.
stageenumerationnoneyesCurrent construction stage.
worker_handoff_countunsigned-integernoneyesSuccessful worker handoffs retained by Construction.
worker_interruption_deadline_tickunsigned-integer-or-nullfixed-ticksnoTick when the worker-interruption recovery window expires.
worker_interruption_grace_ticks_remainingunsigned-integer-or-nullfixed-ticksnoRecovery ticks remaining before worker-interruption failure.

Errors

Examples

local active = world.query("world.construction.active", {page_size = 16})

API history

Related symbols

Project references