Advertisement
lucifersamfr

mjRecharger

Jun 14th, 2013
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. function rechargeCell()
  2.   turtle.select(0)
  3.   turtle.place()
  4.   isFull = false
  5.   while (!isFull) do
  6.     sleep(5)
  7.     if  peripheral.call("right", "get")["Full Energy"] == nil then
  8.       turtle.dig()
  9.     end
  10.   done
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement