Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1, 1)
- print("------------------------------------")
- print(" STRIP-MINE")
- print("------------------------------------")
- score = 0
- print("How long can be the strip tunnel?")
- input1 = tonumber(read())
- print("How long can the turtle dig in the sites")
- input2 = tonumber(read())
- print("Calculate fuel ...")
- fuel = turtle.getFuelLevel()
- cal1 = ( input1*3 + input2 + input2 * 0.5 ) * 2
- block = (input1*3) + (input2 + input2 * 2) * 2
- print("Fuel needed :",cal1)
- print("Your FUEL: ",fuel)
- sleep(1)
- term.clear()
- term.setCursorPos(1, 1)
- print("Mining Blocks: ",block)
- print("Mined Blocks: ",score)
- function function1()
- for i=1,input1 do
- mine2.mine()
- mine.bridge()
- score = score +1
- score = score+1
- term.clear()
- term.setCursorPos(1, 1)
- print("Mining Blocks: ",block)
- print("Mined Blocks: ",score)
- mine2.mine()
- mine.bridge()
- score = score +1
- score = score+1
- term.clear()
- term.setCursorPos(1, 1)
- print("Mining Blocks: ",block)
- print("Mined Blocks: ",score)
- mine2.mine()
- mine.bridge()
- score = score +1
- score = score+1
- term.clear()
- term.setCursorPos(1, 1)
- print("Mining Blocks: ",block)
- print("Mined Blocks: ",score)
- mine.torch()
- turtle.turnLeft()
- for i=1,input2 do
- mine2.mine()
- mine.bridge()
- score = score +1
- score = score+1
- term.clear()
- term.setCursorPos(1, 1)
- print("Mining Blocks: ",block)
- print("Mined Blocks: ",score)
- end
- turtle.turnLeft()
- turtle.turnLeft()
- for i =1,input2 do
- mine2.mine()
- end
- for i=1,input2 do
- mine2.mine()
- mine.bridge()
- score = score +1
- score = score+1
- term.clear()
- term.setCursorPos(1, 1)
- print("Mining Blocks: ",block)
- print("Mined Blocks: ",score)
- end
- turtle.turnLeft()
- turtle.turnLeft()
- for i =1,input2 do
- mine2.mine()
- end
- turtle.turnRight()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.up()
- te = input1*3
- for i = 1,te do
- mine.gravel()
- end
- turtle.down()
- mine.clear()
- end
- function1()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement