OBJECT HUB

Creep API Hub

A focused hub for Creep movement, harvesting, hauling, Controller upgrading, return codes, guides, and tools.

This hub does not duplicate the existing Creep tutorials. It connects action APIs to debugging paths. Save return codes for state-changing calls and verify position, Store, or target state on later ticks.

API

Covered API surfaces

These entries come from the shared quick-reference dataset. The highest-value surfaces stay visible; secondary entries remain available on demand.

6
Creep

creep.moveTo(target, opts)

Schedule Creep movement. OK means the movement request was accepted, not that the position already changed.

movementERR_NO_PATHfatiguepath
Open in API reference →
Creep

creep.harvest(target)

Harvest from an allowed Source, Mineral, or other resource target when the Creep has the required body parts.

SourceEnergyWORKharvest
Open in API reference →
Creep

creep.transfer(target, resourceType, amount?)

Transfer a resource from the Creep Store to a target that can receive it.

haulingEnergyStoreSpawn
Open in API reference →
Creep

creep.withdraw(target, resourceType, amount?)

Withdraw a resource from a Structure, Tombstone, or Ruin Store.

ContainerStorageStorewithdraw
Open in API reference →
Creep

creep.pickup(resource)

Pick up a dropped Resource object. Stored resources in Containers and similar targets use withdraw instead.

dropped resourceEnergyResource
Open in API reference →
Creep

creep.upgradeController(controller)

Spend carried Energy through WORK parts to add progress to an owned Controller.

ControllerupgradeWORKUpgrader
Open in API reference →

RETURN CODES

High-signal return codes

These are the return-code paths already connected to this object in the site's existing guides and error reference.

Show more return codes · 3

GUIDES

Focused guides

Use the focused guides for workflow details instead of duplicating full tutorials on this hub.

Show more focused guides · 1

PROVE

Runtime verification

Only guides that pass the existing Markdown acceptance boundary and have an accepted Console or live verification level appear here.

1
CONSOLE

Screeps upgradeController(): Build Your First Upgrader Loop

Build one Upgrader1 loop that harvests from an active Source, moves within Controller range 3, spends Energy with upgradeController(), and switches state across ticks.

2026-08-11 · 2 evidenceOpen verified guide →