Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function check()
- drop = 0
- check = 0
- total = 0
- for i =1,16 do
- drop = drop + 1
- turtle.select(drop)
- items = turtle.getItemCount()
- total = total + items
- term.clear()
- term.setCursorPos(1,1)
- print("Count: ",total)
- if total >= 250 == true then
- print("VOLL")
- local check = 1
- print("Clearing ...")
- turtle.up()
- turtle.turnLeft()
- turtle.turnLeft()
- h = fs.open("/stripmineprogramm/number","r")
- distance3 = h.readAll()
- h.close()
- distance2 = distance3 * 3
- for i=1,distance2 do
- mine2.mine2()
- end
- if turtle.detectDown() == true then
- turtle.digDown()
- turtle.down()
- elseif turtle.detectDown() == false then
- turtle.down()
- end
- mine.clear()
- turtle.turnRight()
- turtle.turnRight()
- turtle.up()
- for i=1,distance2 do
- mine2.mine2()
- end
- turtle.down()
- break
- elseif total < 250 == true then
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement