View difference between Paste ID: DGHpdDt5 and VuixBdUD
SHOW: | | - or go back to the newest paste.
1
function drop()
2
      for i=1, 16 do
3
         turtle.select(i)
4
         turtle.dropDown()
5
end
6
end
7
8
function shear()
9
	if not turtle.attack() then
10
	turtle.turnLeft()
11
	end
12
end
13
14
while true do
15
    if not shear()then
16
    turtle.select(1)
17
    if turtle.getItemCount(1)>=1 then
18
       drop()
19
    end
20
    sleep(1)
21
end
22
end