Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- t = turtle
- local function scanAirWaves()
- rednet.open("right")
- id, message = rednet.receive()
- print(message)
- if message == "spawn 1 on" then
- redstone.setAnalogOutput("bottom", 15)
- end
- if message == "spawn 1 off" then
- redstone.setAnalogOutput("bottom", 0)
- end
- end
- while true do
- scanAirWaves()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement