Move or turn a robot by a specified positive count.
- Repository:
opencomputers - System:
opencomputers - Type:
command
OpenComputers/src\main\resources\assets\opencomputers\lua\component\robot\bin\go.lua
go DIRECTION [COUNT]Execute one robot movement or turn operation repeatedly. Supported directions are forward, back, up, down, left, and right, and the count defaults to one.
DIRECTION: One offorward,back,up,down,left, orright.COUNT: Optional positive integer repetition count. Fractional values are floored.
go forwardMove the robot one block forward.
go left 2Turn the robot left twice.
go up 3Move the robot upward three times.
- The command validates the count but does not stop early if a robot action fails; it simply calls the selected robot API repeatedly.