Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local bCool = true
- rednet.open('top')
- while bCool == true do
- local senderId, message, distance = rednet.receive()
- if senderId ~= nil then
- if message == 'on' then
- if redstone.getOutput('bottom') == false then
- redstone.setOutput('bottom',true)
- end
- elseif message == 'off' then
- if redstone.getOutput('bottom') == true then
- redstone.setOutput('bottom',false)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment