← BACK

// incremental · programmable

factory code

FACTORY GRID · 5×5

Select a machine type, click grid to place. Click a cell to edit its script.

SCRIPT · no machine selected
1
UPGRADES
LOG
> factory online. place machines, write scripts, press RUN.
API DOCS

Each machine runs your JS once per tick. One argument: api.

api.input(id) · api.output(id) · api.consume(id,n) · api.produce(id,n)

api.pull(id,n) · api.push(id,n) · api.log(msg) · api.tick

Items: iron_ore iron_plate copper_ore copper_wire