Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function test()
- for i, j in pairs(peripheral.call("right","get")) do
- print("** "..i)
- print(j)
- end
- print("_____________")
- end
- function rechargeCell()
- turtle.place()
- while true do
- print("waiting...")
- test()
- sleep(5)
- if peripheral.call("right", "get")["Full Energy"] == true then
- print("Cellule chargee!")
- turtle.dig()
- return true
- end
- end
- end
- for i=1,16 do
- turtle.select(i)
- print("Recharging slot"..i)
- rechargeCell()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement