View difference between Paste ID: 2nzVqZq7 and xaaAs89v
SHOW: | | - or go back to the newest paste.
1
while true do
2
nolapis = false
3
lapis1 = turtle.getItemCount(5)
4
lapis2 = turtle.getItemCount(6)
5
lapis3 = turtle.getItemCount(9)
6
lapis4 = turtle.getItemCount(10)
7
if lapis1 < 2 then
8
nolapis = true
9
elseif lapis2 < 2 then
10
nolapis = true
11
elseif lapis3 < 2 then
12
nolapis = true
13
elseif lapis4 < 2 then
14
nolapis = true
15
end
16
if nolapis == true then
17
print("No lapis!")
18
sleep(1)
19
end
20
if nolapis == false then
21
print("Crafting diamond!")
22
if turtle.craft() == false then
23-
turtle.dropDown(3)
23+
turtle.select(16)
24-
turtle.dropDown(4)
24+
25-
turtle.dropDown(7)
25+
26-
turtle.dropDown(8)
26+
27-
turtle.dropDown(11)
27+