View difference between Paste ID: 5c2y8ZAw and gFKk6WvL
SHOW: | | - or go back to the newest paste.
1
local modem = peripheral.find("modem")
2-
rednet.open("top")
2+
rednet.open("back)
3
4
while true do
5
 	local id, message
6
 	id, message = rednet.receive()
7-
 		if message == "N4" then
7+
 		if message == "spon" then
8-
 		redstone.setOutput("back", true)
8+
 		redstone.setOutput("bottom", true)
9-
 		sleep(0.4)
9+
10-
 		redstone.setOutput("back", false)
10+
		if message == "spoff" then
11
 		redstone.setOutput("bottom", false)
12
 		end
13
end
14