Advertisement
bennyuoppd

Minecraft CC rednet door controll

May 5th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw;
  2. term.clear()
  3. rednet.open("back")
  4. while true do
  5. id,msg = rednet.receive()
  6. if msg == "Open" then
  7. redstone.setOutput("right",true)
  8. elseif msg == "Close" then
  9. redstone.setOutput("right",false)
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement