Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Init
- print("Enter the excavate diameter")
- local size = read()
- size = tonumber(size)
- if size < 1 then
- print("Excavate diameter must be positive")
- return
- end
- print("Enter the excavate max depth (current yPos minus desired yPos)")
- local max_depth = read()
- max_depth = tonumber(max_depth)
- if max_depth < 1 then
- print("Excavate maximun depth must be positive")
- return
- end
- print("Enter the length of a chunk")
- local chunk_len = read()
- chunk_len = tonumber(chunk_len)
- if chunk_len < 1 then
- print("This number must be positive as well")
- return
- end
- print("Enter the number of chunks to scan")
- local num_of_chunks = read()
- num_of_chunks = tonumber(num_of_chunks)
- if num_of_chunks < 1 then
- print("This number must be positive as well")
- return
- end
- -- Load excavate and tunnel scripts
- os.loadAPI("/ByNaruto/excavateSM")
- os.loadAPI("/ByNaruto/tunnelSM")
- -- Run!
- for chunk_count = 1, num_of_chunks do
- excavateSM.excavate(size, max_depth)
- tunnelSM.tunnel(chunk_len)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement