-- _PROGRAM 2.6 local 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() end function expUse() robot.setLightColor(0x00FF00) --green component.inventory_controller.equip() print("Extracting...") for i=itemsCount,1 do robot.use() end while true do getItems() end