Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turtle.select(1)
- OK = (turtle.getItemCount(1) >= 1)
- if not OK then
- print ("Please place torches in the first slot.")
- end
- elseif OK then
- print ("What type of mine would you like to make?")
- mineType = io.read()
- if mineType == "Strip Mine" then
- print ("How long do you want the mine?")
- length = io.read(int)
- if length ~= "" then
- print ("How wide do you want the mine?")
- width = io.read(int)
- if width ~= "" then
- newWidth = width - 1
- print ("How tall do you want the mine?")
- height = io.read(int)
- if height ~= "" then
- newHeight = height - 1
- print ("Mining...")
- sleep(1)
- end
- function turtleMine()
- turtle.dig()
- turtle.forward()
- for i = 1, newHeight do
- turtle.digUp()
- turtle.up()
- end
- turtle.turnRight()
- for i = 1, newWidth do
- turtle.dig()
- turtle.forward()
- end
- turtle.turnRight()
- turtle.turnRight()
- for i = 1, newHeight do
- turtle.digDown()
- turtle.down()
- end
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- turtle.forward()
- end
- for i = 1, x do
- while x < length do
- turtleMine()
- if
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement