Program 2.4
public unlisted lua v1 · immutable-- _PROGRAM 2.4local robot = require("robot")local component = require("component")function checkSwitch()if robot.count(1) > 50 then robot.setLightColor(0xF4FF0D) if robot.count(1) > 50 then component.inventory_controller.equip() endfunction expUse()robot.setLightColor(0x00FF00) --green print("Extracting...")robot.use()while true docheckSwitch()endwhile true doexpUse()end