Advertisement
Zekrommaster110

[LUA | CC1.4.7] test for bundled wire color input

Oct 7th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.26 KB | None | 0 0
  1. if redstone.testBundledInput("right", 1^0) == true then
  2.     print("1")
  3. end
  4.  
  5. if redstone.testBundledInput("right", 2^1) == true then
  6.     print("2")
  7. end
  8.  
  9. if redstone.testBundledInput("right", 2^2) == true then
  10.     print("3")
  11. end
  12.  
  13. if redstone.testBundledInput("right", 2^3) == true then
  14.     print("4")
  15. end
  16.  
  17. if redstone.testBundledInput("right", 2^4) == true then
  18.     print("5")
  19. end
  20.  
  21. if redstone.testBundledInput("right", 2^5) == true then
  22.     print("6")
  23. end
  24.  
  25. if redstone.testBundledInput("right", 2^6) == true then
  26.     print("7")
  27. end
  28.  
  29. if redstone.testBundledInput("right", 2^7) == true then
  30.     print("8")
  31. end
  32.  
  33. if redstone.testBundledInput("right", 2^8) == true then
  34.     print("9")
  35. end
  36.  
  37. if redstone.testBundledInput("right", 2^9) == true then
  38.     print("10")
  39. end
  40.  
  41. if redstone.testBundledInput("right", 2^10) == true then
  42.     print("11")
  43. end
  44.  
  45. if redstone.testBundledInput("right", 2^11) == true then
  46.     print("12")
  47. end
  48.  
  49. if redstone.testBundledInput("right", 2^12) == true then
  50.     print("13")
  51. end
  52.  
  53. if redstone.testBundledInput("right", 2^13) == true then
  54.     print("14")
  55. end
  56.  
  57. if redstone.testBundledInput("right", 2^14) == true then
  58.     print("15")
  59. end
  60.  
  61. if redstone.testBundledInput("right", 2^15) == true then
  62.     print("16")
  63. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement