SHOW:
|
|
- or go back to the newest paste.
1 | -- push button to signal redstone to turtle's right, it turns left, grabs a stack of books from the first slot of a chest to it's left | |
2 | -- moves back to drop the anvil, then goes back and lifts the anvil over its head and waits to repeat. (disenchant books ATM10) | |
3 | ||
4 | while true do | |
5 | if redstone.getInput("right") then | |
6 | turtle.turnLeft() | |
7 | -- for i=1,16 do | |
8 | for i=1,1 do -- just use the first slot | |
9 | turtle.select(i) | |
10 | while turtle.suck() do | |
11 | turtle.dropDown() | |
12 | end | |
13 | end | |
14 | turtle.turnLeft() | |
15 | turtle.forward() | |
16 | turtle.turnRight() | |
17 | turtle.turnRight() | |
18 | turtle.forward() | |
19 | end | |
20 | turtle.digDown() | |
21 | turtle.placeUp() | |
22 | os.sleep(.5) | |
23 | print("rinse, repeat.") | |
24 | end | |
25 | ||
26 |