SHOW:
|
|
- or go back to the newest paste.
1 | local sindex = 2 | |
2 | local hasGlowStone = false | |
3 | while true do | |
4 | while turtle.getFuelLevel() < 500 do | |
5 | turtle.refuel(1) | |
6 | end | |
7 | turtle.turnLeft() | |
8 | turtle.dig() | |
9 | while hasGlowStone == false do | |
10 | turtle.select(sindex) | |
11 | local data = turtle.getItemDetail(sindex) | |
12 | print("Item name: ", data.name) | |
13 | if data.name == "ExtraUtilities:color_lightgem" then | |
14 | hasGlowStone = true | |
15 | else | |
16 | sindex = sindex + 1 | |
17 | end | |
18 | end | |
19 | ||
20 | turtle.place(sindex) | |
21 | turtle.turnRight() | |
22 | turtle.dig() | |
23 | turtle.forward() | |
24 | turtle.dig() | |
25 | turtle.forward() | |
26 | turtle.dig() | |
27 | turtle.forward() | |
28 | turtle.dig() | |
29 | turtle.forward() | |
30 | turtle.dig() | |
31 | turtle.forward() | |
32 | hasGlowStone = false | |
33 | end |