SHOW:
|
|
- or go back to the newest paste.
| 1 | function test() | |
| 2 | - | |
| 2 | + | |
| 3 | - | turtle.place() |
| 3 | + | print("** "..i)
|
| 4 | - | |
| 4 | + | |
| 5 | end | |
| 6 | - | print(i) |
| 6 | + | print("_____________")
|
| 7 | end | |
| 8 | ||
| 9 | - | |
| 9 | + | |
| 10 | turtle.place() | |
| 11 | while true do | |
| 12 | print("waiting...")
| |
| 13 | test() | |
| 14 | sleep(5) | |
| 15 | if peripheral.call("right", "get")["Full Energy"] == true then
| |
| 16 | print("Cellule chargee!")
| |
| 17 | turtle.dig() | |
| 18 | return true | |
| 19 | end | |
| 20 | end | |
| 21 | end | |
| 22 | ||
| 23 | for i=1,16 do | |
| 24 | turtle.select(i) | |
| 25 | print("Recharging slot"..i)
| |
| 26 | rechargeCell() | |
| 27 | end |