Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Main Function
- function main()
- display()
- print("Quarry will consist of a 16x16 square...")
- print("Please place ender-chest in slot 16...")
- event, key = os.pullEvent("key")
- if key == "keys.space" do
- x,y,z = gps.locate(5)
- if not x then
- print("GPS did not work...")
- end
- result = 256*y
- if turtle.getFuelLevel() < result then
- print("Not enough fuel for entire quarry...")
- print("Please insert fuel...")
- print("Press SPACE to proceed...")
- event, key == os.pullEvent("key") do
- if key == "keys.space" then
- main()
- end
- end
- quarry()
- end
- end
- -- Mini Functions
- function quarry()
- for i = 0,y do
- for w = 1,16 do
- row()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- turtle.forward()
- row()
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- turtle.forward()
- end
- turtle.select(16)
- turtle.select(1)
- for e = 1,16 do
- turtle.select(e)
- turtle.drop()
- end
- turtle.select(16)
- turtle.dig()
- turtle.select(1)
- end
- end
- function row()
- for q = 1,16 do
- turtle.digUp()
- turtle.digDown()
- turtle.dig()
- turtle.forward()
- end
- end
- function display()
- term.clear()
- term.setCursorPos(1,1)
- print("Quarry Miner 1.0")
- end
- -- Function List
- main()
Advertisement
Add Comment
Please, Sign In to add comment