Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Spawner
- rednet.open("left")
- local mottafra = 8
- local output = "right"
- while true do
- id, msg = rednet.receive()
- print("")
- print("Fra "..id)
- print(msg)
- if id == mottafra and msg == "spawneron" then
- print("Spawner er på!")
- rs.setOutput(output, true)
- end
- if id == mottafra and msg == "spawneroff" then
- print("Spawner er av!")
- rs.setOutput(output, false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement