Jodo32

FTB - Full cell List Debug

Jul 19th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. -- Statements
  2. local mon = peripheral.wrap("right")
  3. os.loadAPI ("bundleAPI")
  4. mon.clear()
  5.  
  6. -- Back Colored Wires
  7. -- White
  8. local bWhite = 0
  9. if bundleAPI.getInput("back", "white") == true then
  10. print("BWhite") -- Displays on Computer
  11. bWhite = 1
  12. else bWhite = 0
  13. print("NobWhite") -- Displays on Computer
  14. end
  15. -- Orange
  16. local bOrange = 0
  17. if bundleAPI.getInput("back", "orange") == true then
  18. print("BOrange") -- Displays on Computer
  19. bOrange = 1
  20. else bOrange = 0
  21. print("NobOrange") -- Displays on Computer
  22. end
  23. -- Blue
  24. local bBlue = 0
  25. if bundleAPI.getInput("back", "blue") == true then
  26. print("BBlue") -- Displays on Computer
  27. bBlue = 1
  28. else bBlue = 0
  29. print("NobBlue") -- Displays on Computer
  30. end
  31. -- Light Blue
  32. local bLightBlue = 0
  33. if bundleAPI.getInput("back", "lightblue") == true then
  34. print("BLightBlue") -- Displays on Computer
  35. bLightBlue = 1
  36. else bLightBlue = 0
  37. print("NobLightBLue") -- Displays on Computer
  38. end
  39. -- Yellow
  40. local bYellow = 0
  41. if bundleAPI.getInput("back", "yellow") == true then
  42. print("BYellow") -- Displays on Computer
  43. bYellow = 1
  44. else bYellow = 0
  45. print("NobYellow") -- Displays on Computer
  46. end
  47. -- Lime
  48. local bLime = 0
  49. if bundleAPI.getInput("back", "lime") == true then
  50. print("BLime") -- Displays on Computer
  51. bLime = 1
  52. else bLime = 0
  53. print("NobLime") -- Displays on Computer
  54. end
  55. -- Left Colored Wires
  56. -- White
  57. local lWhite = 0
  58. if bundleAPI.getInput("left", "white") == true then
  59. print("lWhite") -- Displays on Computer
  60. lWhite = 1
  61. else lWhite = 0
  62. print("NolWhite") -- Displays on Computer
  63. end
  64. -- Orange
  65. local lOrange = 0
  66. if bundleAPI.getInput("left", "orange") == true then
  67. print("lOrange") -- Displays on Computer
  68. lOrange = 1
  69. else lOrange = 0
  70. print("NolOrange") -- Displays on Computer
  71. end
  72. -- Blue
  73. local lBlue = 0
  74. if bundleAPI.getInput("left", "blue") == true then
  75. print("lBlue") -- Displays on Computer
  76. lBlue = 1
  77. else lBlue = 0
  78. print("NolBlue") -- Displays on Computer
  79. end
  80. -- Light Blue
  81. local lLightBlue = 0
  82. if bundleAPI.getInput("left", "lightblue") == true then
  83. print("lLightBlue") -- Displays on Computer
  84. lLightBlue = 1
  85. else lLightBlue = 0
  86. print("NolLightBLue") -- Displays on Computer
  87. end
  88. -- Yellow
  89. local lYellow = 0
  90. if bundleAPI.getInput("left", "yellow") == true then
  91. print("lYellow") -- Displays on Computer
  92. lYellow = 1
  93. else lYellow = 0
  94. print("NolYellow") -- Displays on Computer
  95. end
  96. -- Lime
  97. local lLime = 0
  98. if bundleAPI.getInput("left", "lime") == true then
  99. print("lLime") -- Displays on Computer
  100. lLime = 1
  101. else lLime = 0
  102. print("NolLime") -- Displays on Computer
  103. end
  104.  
  105. bTotal = bWhite + bOrange + bBlue + bLightBlue + bYellow + bLime
  106. lTotal = lWhite + lOrange + lBlue + lLightBlue + lYellow + lLime
  107. MJTotal = bTotal + lTotal
  108. MJTotal = MJTotal*600000
  109. mon.setTextScale(5)
  110. mon.setCursorPos(1,1)
  111. mon.write(MJTotal)
  112. sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment