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