SHOW:
|
|
- or go back to the newest paste.
1 | xp=peripheral.wrap("right") | |
2 | turtle.select(1) | |
3 | while true do | |
4 | xp.getUp() | |
5 | turtle.drop() | |
6 | print(xp.getLevels()) | |
7 | if xp.getLevels()>=30 then | |
8 | turtle.select(3) | |
9 | if turtle.getItemCount(3)==0 then | |
10 | turtle.suckDown() | |
11 | end | |
12 | turtle.transferTo(2,1) | |
13 | turtle.select(2) | |
14 | xp.enchant(30) | |
15 | turtle.dropDown() | |
16 | turtle.select(1) | |
17 | end | |
18 | sleep(0.2) | |
19 | end |