Have a robot build a layered structure from a 0/1 schematic plan file.
- Repository:
opencomputers - System:
opencomputers - Type:
command
OpenComputers/src\main\resources\assets\opencomputers\loot\builder\usr\bin\build.luaOpenComputers/src\main\resources\assets\opencomputers\loot\builder\usr\man\build.man
build PLANbuild PLAN FROM TORead a plan file where 0 means air, 1 means a solid block, and lines starting with # separate vertical layers. The robot analyzes the model, estimates required materials, optionally resumes from a saved .state file, and then builds the selected slab range while returning to its chest for blocks and charging when needed.
PLAN: Plan file to load. The resolver appends.planwhen no suffix is supplied.FROM: Zero-based starting slab index along the plan depth axis.TO: Number of slabs to build starting atFROM. If omitted, build the remaining slabs.
build pyramid.planAnalyze pyramid.plan, ask for confirmation, and build the full structure.
build some.plan 0 2Build the slab range starting at 0 and spanning 2 depth slices from some.plan.
build used.planResume a previously interrupted build when a matching .state file is present.
- The robot expects a chest in front of it, building material in that chest, and one stack of dirt in inventory slot
1. - Regular building blocks are pulled into slots
2through16. - If energy falls dangerously low away from the chest, the script saves state and shuts the robot down.