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
- for calcWidth = 1,Width,1
- do
- for calcHeight = 1,Height,1
- do
- turtle.dig()
- if calcHeight ~= Height then
- turtle.up()
- end
- end
- for calcHeight = Height-1,1,-1
- do
- turtle.down()
- end
- if calcWidth ~= Width then
- MoveRight(1)
- end
- end
- MoveLeft(Width-1)
- if calcDepth ~= Depth then
- turtle.forward()
- end
- end
- end
- -- Checks if block is present in front, if not break loop, otherwise mine said block
- function Dig()
- end
- -- Moves x blocks Left
- function MoveLeft(Move)
- turtle.turnLeft()
- for i = 1,Move,1
- do
- turtle.forward()
- end
- turtle.turnRight()
- end
- -- Moves x blocks Right
- function MoveRight(Move)
- turtle.turnRight()
- for i = 1,Move,1
- do
- turtle.forward()
- end
- turtle.turnLeft()
- end
- Mine(Width, Depth, Height)
- print("Job completed, boss.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement