Created
July 23, 2015 11:58
-
-
Save ZeekDaGeek/d0cd48ba2784dd5b989f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Robots level up by mining, toss a bunch of ores that drop experience | |
-- into your robots inventory, give it a pick and let it mine away. | |
-- By: ZeekDaGeek | |
local robot = require("robot") | |
haveOre = true | |
while haveOre == true do | |
if robot.count() == 0 or robot.place() == false then | |
slot = 1 | |
while slot <= 16 do | |
robot.select(slot) | |
robot.dropDown() | |
slot = slot + 1 | |
end | |
robot.select(1) | |
robot.suckUp() | |
if robot.count() == 0 then | |
haveOre = false | |
return true | |
end | |
end | |
robot.swing() | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment