Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modemSide = "right"
- nexusComputerID = 7
- monitorSide = "left" --can be set to nil
- rednet.open(modemSide)
- if monitorSide == nil then
- m = term
- else
- m = peripheral.wrap(monitorSide)
- end
- while true do
- sendID,mess,dist=rednet.receive()
- print(mess)
- if sendID == nexusComputerID then
- print("Opening portal #"..mess)
- local i = tonumber(mess)
- turtle.select(i)
- turtle.drop()
- for i=5,1,-1 do
- m.clear()
- m.setCursorPos(1,1)
- m.write("Go!")
- m.setCursorPos(2,2)
- m.setTextScale(2)
- m.write(tostring(i))
- sleep(1)
- end
- m.clear()
- turtle.suck()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement