SHOW:
|
|
- or go back to the newest paste.
| 1 | - | print("auto Drop coal pour botania v0.1")
|
| 1 | + | print("auto Drop coal pour botania v1")
|
| 2 | - | print("programme beta")
|
| 2 | + | |
| 3 | while true do | |
| 4 | sleep(.1) | |
| 5 | ||
| 6 | while rs.getInput("left") do -- attente du signal start
| |
| 7 | ||
| 8 | -- prend les item resté au sol | |
| 9 | ||
| 10 | turtle.select(2) | |
| 11 | - | turtle.select(1) |
| 11 | + | turtle.down() |
| 12 | - | turtle.down() |
| 12 | + | print("recuperation des item au sol")
|
| 13 | - | turtle.suck() |
| 13 | + | print("et depose dans le coffre")
|
| 14 | - | turtle.up() |
| 14 | + | turtle.suckDown() |
| 15 | - | turtle.drop("back")
|
| 15 | + | turtle.suck() |
| 16 | turtle.up() | |
| 17 | - | -- prise des 4 item du coffre et drop au sol |
| 17 | + | turtle.turnRight() |
| 18 | - | turtle.suckUp(4) |
| 18 | + | turtle.turnRight() |
| 19 | - | turtle.dropDown(4) |
| 19 | + | turtle.drop() |
| 20 | - | sleep(60) |
| 20 | + | turtle.turnLeft() |
| 21 | - | print("drop 4 item au sol ")
|
| 21 | + | turtle.turnLeft() |
| 22 | - | print("et attend 1 min")
|
| 22 | + | turtle.select(1) |
| 23 | - | |
| 23 | + | print(" prend 5 item du coffre prend 1 item et refuel et drop les 4 au sol")
|
| 24 | turtle.suckUp(5) | |
| 25 | turtle.refuel(1) | |
| 26 | turtle.dropDown(4) | |
| 27 | print(" je suis en pause de 30sec")
| |
| 28 | sleep(30) | |
| 29 | print("en attente du signal de redstone")
| |
| 30 | end | |
| 31 | end |