View difference between Paste ID: Rzu4V22s and hMjdcyxG
SHOW: | | - or go back to the newest paste.
1
args={...}
2
3
local args[1] = z
4
local x = 0
5
6-
  elseif turtle getItemCount(2) > 0 then
6+
7
  if turtle.getItemCount(1) > 0 then
8
    turtle.select(1)
9
  elseif turtle.getItemCount(2) > 0 then
10
    turtle.select(2)
11
  elseif turtle.getItemCount(3) > 0 then
12
    turtle.select(3)
13
  elseif turtle.getItemCount(4) > 0 then 
14
    turtle.select(4)
15
  end
16
end  
17
18
function abyssal()
19
  if turtle.getItemCount(5) > 0 then
20
    turtle.select(5)
21
  elseif turtle.getItemCount(6) > 0 then
22
    turtle.select(6)
23
  elseif turtle.getItemCount(7) > 0 then
24
    turtle.select(7)
25
  elseif turtle.getItemcount(8) > 0 then
26
    turtle.select(8)
27
  end
28
end
29
30
function fence()
31
  if turtle.getItemCount(9) > 0 then
32
    turtle.select(9)
33
  elseif turtle.getItemCount(10) > 0 then
34
    turtle.select(10)
35
  elseif turtle.getItemcount(11) > 0 then
36
    turtle.select(11)
37
  elseif turtle.getItemCount(12) > 0 then
38
    turtle.select(12)
39
  end
40
end
41
42
function quarried()
43
  if turtle.getItemCount(13) > 0 then
44
    turtle.select(13)
45
  elseif turtle.getItemCount(14) > 0 then
46
    turtle.select(14)
47
  elseif turtle.getItemCount(15) > 0 then
48
    turtle.select(15)
49
  elseif turtle.getItemCount(16) > 0 then
50
    turtle.select(16)
51
  end
52
end
53
54
function up()
55
  turtle.up()
56
  x = x + 1
57
end
58
59
60
for i = 1, z do
61
up()
62
abyssal()
63
turtle.placeDown()
64
up()
65
quarried()
66
turtle.placeDown()
67
up()
68
fence()
69
turtle.placeDown()
70
up()
71
turtle.placeDown()
72
up()
73
turtle.placeDown()
74
up()
75
up()
76
up()
77
end