All pastes #3185540 Raw Edit

OpenComputers Xp Farm Programs

public unlisted lua v1 · immutable
#3185540 ·published 2015-10-08 15:20 UTC
rendered paste body
///// _Program 1local robot : require("robot")while true dorobot.use()           ||||||||||||||||| Add duration instead of tick-loopend         \\\\\\\\\\\\\  Collect In front of him (Essence berry bush)) with right-click                And use the equipped tool (Watering Can) at the same time. ///// _Program 2local robot : require("robot")local component : require("component")while true doif robot.count(1) = 64 then do=component.inventory_controller.equip()endwhile true dorobot.use() if = trueelse endendend///// _Program 2.1local robot : require("robot")local component : require("component")function checkSwitch()if robot.count(1) > 50 then=component.inventory_controller.equip()expUse()else expUse()endfunction expUse()robot.use()if robot.use() == "true" then robot.use()else checkSwitch()endwhile true docheckSwitch()end\\\\\\\\\\\\\\  Check If the main slot contains 64 items,                 If True, swap the content of the tool slot with the selected slot.				Robot will use right-click If it can place/use an item (Condensed Essence Berry),				If it can't place it then it will switch to next step.				///// _Program 3local robot : require("robot")local component : require("component")num = 1function row123()robot.turnLeft()robot.use()robot.turnAround()robot.use()robot.turnLeft()robot.forward()robot.turnLeft()robot.use()robot.turnAround()robot.use()robot.turnLeft()robot.forward()robot.turnLeft()robot.use()robot.turnAround()robot.use()robot.turnLeft()robot.forward()robot.turnLeft()robot.use()robot.turnAround()robot.use()robot.turnLeft()robot.forward()robot.turnLeft()robot.use()robot.turnAround()robot.use()robot.turnLeft()robot.forward()robot.turnLeft()robot.use()robot.turnAround()robot.use()robot.turnLeft()robot.turnAround()robot.up()endfunction row4()robot.turnLeft()robot.use()robot.turnAround()robot.use()robot.turnLeft()robot.forward()robot.turnLeft()robot.use()robot.turnAround()robot.use()robot.turnLeft()robot.forward()robot.turnLeft()robot.use()robot.turnAround()robot.use()robot.turnLeft()robot.forward()robot.turnLeft()robot.use()robot.turnAround()robot.use()robot.turnLeft()robot.forward()robot.turnLeft()robot.use()robot.turnAround()robot.use()robot.turnLeft()robot.forward()robot.turnLeft()robot.use()robot.turnAround()robot.use()robot.turnLeft()robot.turnAround()robot.down()robot.down()robot.down()endfunction droptime() for i = 1, 16 do   turtle.select(num)   turtle.drop()   num = num + 1  end  num = 1    turtle.select(1)  sleep(10) endwhile true do row123()row123()row123()row4()droptime()end