Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- args = {...}
- if #args ~= 2 then
- print("Usage: Resume <x> <z>")
- exit()
- end
- if not fs.exists("location") then
- print("Only functions after started with Begin")
- exit()
- end
- h = fs.open("location","r")
- size = tonumber(h.readLine())
- startX = tonumber(h.readLine())
- startZ = tonumber(h.readline())
- x = tonumber(args[1]) - startX + 1
- z = tonumber(args[2]) - startZ + 1
- write(string.format("Resuming quarry of size %d at %d, %d in: ",size,startX,startY))
- for i=1,5 do
- write(6-i)
- os.sleep(1)
- end
- shell.run("run",size,x,z)
Advertisement
Add Comment
Please, Sign In to add comment