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)
- local calcDepth = 0
- while calcDepth < Depth do
- local calcHeight = 0
- while calcHeight < Height do
- turtle.dig()
- turtle.up()
- calcHeight = calcHeight + 1
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- calcHeight = 0
- while calcHeight < Height do
- turtle.dig()
- turtle.down()
- calcHeight = calcHeight + 1
- end
- turtle.turnRight()
- turtle.forward()
- turtle.turnLeft()
- calcHeight = 0
- while calcHeight < Height do
- turtle.dig()
- turtle.up()
- calcHeight = calcHeight + 1
- end
- turtle.turnLeft()
- for i = 0,Width,1
- do
- turtle.forward()
- end
- turtle.turnRight()
- for i = 0,Height,1
- do
- turtle.down()
- end
- calcDepth = calcDepth + 1
- turtle.forward()
- 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