I can't send you an error message since for whatever reason Minecraft won't open up right now, but I'll send you an excerpt of the code.
function loopWait()
loopOff = false
db.clear(1)
me.store({name = "minecraft:record_wait"}, db.address, 1)
selectEmpty()
me.requestItems(db.address, 1, 1)
ic.equip()
robot.useUp()
repeat
_, _, _, _, _, serialized_message = event.pull(239, "modem_message")
received_table = require("serialization").unserialize(serialized_message)
if recieved_table.loopSwitch == "off" then
loopOff = true
end
robot.useUp()
selectFu