Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MY_FLOOR = 1
- SECRET = 'first'
- rednet.open('back')
- print('Waiting for activation...')
- while true do
- id, floor = rednet.receive(SECRET)
- print('Got this floor: ', floor)
- if floor == MY_FLOOR then
- print('Activating teleporter to floor', MY_FLOOR)
- rs.setOutput('front', true)
- sleep(1)
- rs.setOutput('front', false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement