Advertisement
Guest User

testing

a guest
Jul 27th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. function clear()
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. end
  5.  
  6. codestring = ("")
  7.  
  8. function main()
  9. while true do
  10. input = redstone.getBundledInput("right")
  11. if input == ("1") then
  12. inputred = redstone.getBundledInput("right", colors.red)
  13. inputwhite = redstone.getBundledInput("right", colors.white)
  14.  
  15. if inputred == ("1") then
  16. codestring = (codestring.. "r")
  17. print(codestring)
  18. elseif inputwhite == ("1") then
  19. codestring = (codestring.. "w")
  20. print(codestring)
  21. end
  22. end
  23. end
  24. end
  25.  
  26. clear()
  27. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement