Advertisement
CodeCrafter

appels

Nov 11th, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1.  
  2.  
  3.  
  4. Mon = peripheral.wrap(“left”)
  5. while true do
  6. Mon.clear()
  7.  
  8. Mon.setCursorPos(1,1)
  9.  
  10. if rs.getInput(“right”) then
  11.  
  12. Mon.setCursorPos(1,5)
  13.  
  14. Mon.write(“ 1 b/s”)
  15.  
  16. else
  17.  
  18. Mon.setCursorPos(1,5)
  19.  
  20. Mon.write(“ 0 b/s”)
  21.  
  22.  
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement