Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("spiral")
- os.loadAPI("file")
- rednet.open("right")
- parent = 1637
- while true do
- ID, message = rednet.receive()
- if message == "start" then
- state = file.read("state")
- if state ~= nil then
- dists = state[1]
- is = state[2]
- js = state[3]
- end
- if dists == nil then
- dists = 1
- end
- if is == nil then
- is = 1
- end
- if js == nil then
- js = 1
- end
- spiral.start(dists, is, js)
- else
- rednet.send(parent, message)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement