Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- If your computer does not have my API, this program will automatically download it.
- if not fs.exists("raiu") then
- shell.run("pastebin","get","pgHT115i","raiu")
- end
- os.loadAPI("raiu")
- local args = {...}
- -- This program digs out the maximum distance needed to place a torch to prevent mob spawning.
- -- The first argument needs to be based on how many torches you want placed.
- -- If t == torches and d == distance of your mine then d = t * 13.
- if #args < 1 then
- error("First argument must be the number of torches.")
- end
- -- The second argument is optional.
- -- Pass "true" or "false" to the second argument to run the Vein Miner program.
- -- Leaving this blank will default to "false".
- -- Other data types will throw an error.
- if args[2] == nil then
- args[2] = false
- elseif type(textutils.unserialize(args[2])) == "boolean" then
- args[2] = textutils.unserialize(args[2])
- else
- error("Second argument must be nil or boolean.")
- end
- for a = 1, args[1] do
- raiu.hallway(-1,13, args[2])
- turtle.select(1)
- turtle.placeDown()
- end
- -- 8/31/2021 - v1.1
- -- Added optional argument to use my vein miner program which will be automatically downloaded by the API.
Add Comment
Please, Sign In to add comment