Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not fs.exists("mine") == true or not fs.exists("mine2") == true or not fs.exists("mine3") == true then
- shell.run("pastebin get DR91aDvE mine")
- shell.run("pastebin get YgXdrd9z mine2")
- shell.run("pastebin get SzSkce8k mine3")
- end
- term.clear()
- turtle.turnLeft()
- distance = 0
- local check = 0
- turtle.turnLeft()
- if turtle.detect() == true then
- chest = 1
- else
- chest = 2
- end
- h = fs.open("/stripmineprogramm/number","w")
- h.write(distance)
- h.close()
- turtle.turnLeft()
- turtle.turnLeft()
- term.setCursorPos(1, 1)
- os.loadAPI("mine")
- os.loadAPI("mine2")
- os.loadAPI("mine3")
- 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 * 2 + (input2 + input2) * 2 * input1
- print("Fuel needed :",cal1)
- print("Your FUEL: ",fuel)
- sleep(1.25)
- mineblock = 0
- if chest == 1 == true then
- term.clear()
- term.setCursorPos(1, 1)
- print("CHEST: ON")
- end
- if chest == 2 == true then
- term.clear()
- term.setCursorPos(1, 1)
- print("CHEST: OFF")
- end
- sleep(0.75)
- term.clear()
- term.setCursorPos(1, 1)
- print("Mining Blocks: ",block)
- print("Mined Blocks: ",score)
- 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)
- mineblock = mineblock + 1
- mine2.mine()
- mine.bridge()
- score = score +1
- score = score+1
- term.clear()
- term.setCursorPos(1, 1)
- print("Mining Blocks: ",block)
- print("Mined Blocks: ",score)
- mineblock = mineblock + 1
- mine2.mine()
- mine.bridge()
- score = score +1
- score = score+1
- term.clear()
- term.setCursorPos(1, 1)
- print("Mining Blocks: ",block)
- print("Mined Blocks: ",score)
- mineblock = mineblock + 1
- if mineblock > 6 == true then
- mine3.torch()
- mineblock = 0
- end
- 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
- distance = distance + 1
- h = fs.open("/stripmineprogramm/number","w")
- h.write(distance)
- h.close()
- turtle.turnRight()
- if chest == 1 == true then
- mine3.check()
- end
- end
- if chest == 1 == true then
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.up()
- te = input1*3
- for i = 1,te do
- mine2.mine2()
- end
- turtle.down()
- mine.clear()
- end
Add Comment
Please, Sign In to add comment