Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shell.run("label set Sorting_PC")
- shell.run("clear")
- if peripheral.isPresent("right") then
- print("Opening Modem on the right...")
- rednet.open("right")
- end
- if peripheral.isPresent("left") then
- print("Opening Modem on the left...")
- rednet.open("left")
- end
- if peripheral.isPresent("top") then
- print("Opening Modem on the top...")
- rednet.open("top")
- end
- if peripheral.isPresent("bottom") then
- print("Opening Modem on the bottom...")
- rednet.open("bottom")
- end
- if peripheral.isPresent("front") then
- print("Opening Modem on the front...")
- rednet.open("front")
- end
- if peripheral.isPresent("back") then
- print("Opening Modem on the back...")
- rednet.open("back")
- end
- term.write("Which Command?>")
- Andersfc = read()
- rednet.broadcast(Andersfc)
- x,y,z = rednet.receive()
- print(y)
- if y == Andersfc then
- term.write("How many "..Andersfc.."?, MAX 64>")
- Andersfc2 = read()
- rednet.broadcast(Andersfc2)
- shell.run("clear")
- term.setCursorPos(1,8)
- print(Andersfc2.." "..Andersfc.." have been requested")
- end
- sleep(3)
- shell.run("startup")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement