Skip to content

Instantly share code, notes, and snippets.

@ZeekDaGeek
Created July 23, 2015 11:58
Show Gist options
  • Save ZeekDaGeek/d0cd48ba2784dd5b989f to your computer and use it in GitHub Desktop.
Save ZeekDaGeek/d0cd48ba2784dd5b989f to your computer and use it in GitHub Desktop.
-- 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