Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Across: ")
- local widthAmt = tonumber(read())
- print("Forward: ")
- local forwardAmt = tonumber(read())
- print("Down: ")
- local downAmt = tonumber(read())
- print("Start Down: ")
- local startDownAmt = tonumber(read())
- if fs.exists("disk/startup.lua") then
- fs.delete("disk/startup.lua")
- end
- fs.copy("minerProgram.lua", "disk/startup.lua")
- for i = 1, widthAmt, 2 do
- while turtle.suckDown(1) == false do
- print("Put more mining turtles in chest below, then press enter")
- read()
- end
- local minerParams = {
- ["acrossAmt"] = i - 1,
- ["forwardAmt"] = forwardAmt,
- ["downAmt"] = downAmt,
- ["startDownAmt"] = startDownAmt
- }
- local file = fs.open("disk/minerParams.lua", "w")
- file.write(textutils.serialise(minerParams))
- file.close()
- turtle.place()
- local turtleInfront = peripheral.wrap("front")
- turtleInfront.turnOn()
- sleep(3)
- while turtle.detect() do
- turtle.turnRight()
- while turtle.suck(32) == false do
- turtle.drop(32)
- print("Put more fuel in chest infront, then press enter")
- read()
- end
- turtle.turnLeft()
- if turtle.detect() then
- turtle.drop(32)
- end
- sleep(2)
- end
- turtle.turnRight()
- for i = 1, 2 do
- turtle.drop(64)
- end
- turtle.turnLeft()
- turtle.dropUp(64)
- fs.delete("disk/minerParams.lua")
- end
Add Comment
Please, Sign In to add comment