Program 2.5
public unlisted lua v1 · immutable-- _PROGRAM 2.5local robot = require("robot")local component = require("component")function getItems()robot.setLightColor(0xF4FF0D) --yellow print("Pulling...")robot.select(1)robot.suck()expUse()endfunction expUse()robot.setLightColor(0x00FF00) --greencomponent.inventory_controller.equip() print("Extracting...")for i=64,1 do robot.use() endwhile true dogetItems()end