Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sg = peripheral.find("stargate")
- term.clear()
- while true do
- term.setCursorPos(0,0)
- print("type in command here")
- print("type help for a list of commands")
- input = read()
- if input == "Iris" then
- if sg.irisState() == "Open" then
- sg.closeIris()
- else
- sg.openIris()
- end
- end
- if input == "help" then
- term.clear()
- print("Iris -- toggles the Iris")
- print(" -- Any unkown command will be dialed in so to dial just type in the gate address")
- print("Term --Terminates Connection to other gate")
- end
- sg.dial(input)
- if input == "Address" then
- print(sg.localAddress())
- end
- if input == "Term" then
- sg.diconnect()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement