Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("How wide do I mine, boss?")
- local Width = tonumber(read())
- print("How deep do I mine, boss?")
- local Depth = tonumber(read())
- print("How high do I mine, boss?")
- local Height = tonumber(read())
- function Mine(Width,Depth,Height)
- for calcDepth = 1,Depth,1
- do
- file = io.open("log.txt", "a")
- file:write("Current depth: " .. calcDepth .. ". Expected depth: " .. Depth .. "\n")
- file:write("What gives? (d) " .. tostring(calcDepth < Depth) .. "\n")
- file:close()
- for calcHeight = 1,Height,1
- do
- file = io.open("log.txt", "a")
- file:write("Current height: " .. calcHeight .. ". Expected height: " .. Height .. "\n")
- file:write("What gives? (h) " .. tostring(calcHeight < Height))
- file:write("\n")
- file:close()
- turtle.dig()
- turtle.up()
- end
- end
- for i = 1,Height,1
- do
- turtle.down()
- end
- for i = 1,Depth,1
- do
- turtle.back()
- end
- end
- Mine(Width, Depth, Height)
- print("Job completed, boss.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement