Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- local args = {...}
- local nr = tonumber(args[1])
- local side = "bottom"
- while true do
- local id, msg = rednet.receive()
- if id == nr then
- if msg == "spawner on" then
- rs.setOutput(side, true)
- end
- if msg == "spawner off" then
- rs.setOutput(side, false)
- end
- end
- sleep(0.4)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement