View difference between Paste ID: XjpMSFBh and N5KTaCEe
SHOW: | | - or go back to the newest paste.
1
while true do
2-
if rs.getInput("left") then
2+
if rs.testBundledInput("left", colours.red) then
3
  rednet.open("right")
4-
  rednet.broadcast("111")
4+
  rednet.broadcast("STOP")
5-
  sleep(1)
5+
  sleep(0.1)
6
  rednet.broadcast("000")
7
end
8-
  sleep(1)
8+
9
if rs.testBundledInput("left", colours.blue) then
10
  rednet.open("right")
11
  rednet.broadcast("SP1")
12
  sleep(0.1)
13
  rednet.broadcast("000")
14
end
15
16
if rs.testBundledInput("left", colours.purple) then
17
  rednet.open("right")
18
  rednet.broadcast("SP2")
19
  sleep(0.1)
20
  rednet.broadcast("000")
21
end
22
23
if rs.testBundledInput("left", colours.yellow) then
24
  rednet.open("right")
25
  rednet.broadcast("SP3")
26
  sleep(0.1)
27
  rednet.broadcast("000")
28
end
29
30
sleep(1)
31
end