Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local robot = require("robot")
- --local sides = require("sides")
- function hoe()
- robot.select(3)
- for i = 1 , 16 do
- robot.place()
- i=i+1
- end
- end
- function axe()
- robot.swing()
- end
- function tree()
- robot.select(1)
- robot.place()
- end
- function unload()
- for i = 1,2 do
- robot.select(i)
- if robot.count() > 32 then
- robot.dropDown(16)
- end
- i = i+1
- end
- end
- function suck()
- i=0
- for i = 1,2 do
- robot.suckUp()
- robot.suck()
- i= i+1
- end
- end
- while true do
- tree()
- suck()
- hoe()
- axe()
- suck()
- unload()
- os.sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment