Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function main(...)
- local modem = peripheral.find("modem", rednet.open)
- local args = {...}
- print("Width: ")
- local width = tonumber(read())
- print("Height: ")
- local height = tonumber(read())
- print("Depth: ")
- local depth = tonumber(read())
- local expectedTurtles
- if #args > 0 then
- expectedTurtles = tonumber(args[1])
- end
- local turtleCount = 1
- local turtles = {}
- while turtleCount <= expectedTurtles do
- local id, message = rednet.receive("turtnettoserver")
- turtles[turtleCount] = id
- turtleCount = turtleCount + 1
- end
- print("Launch? (y/n)")
- if read() == 'y' then
- for i = 1, #turtles do
- rednet.send(turtles[i], "4x" .. tostring(height) .. "x4", "turtnettoclient")
- end
- end
- end
- main(...)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement