Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m = peripheral.wrap("right")
- while true do
- turtle.select(1)
- -- Get battery from Battery Box
- m.suckSneakyDown(0,1)
- -- Determine whether battery is empty
- if turtle.compareTo(16) then
- turtle.drop()
- else
- -- Put battery back in the box
- m.dropSneakyDown(0,1)
- end
- os.sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment