Advertisement
Guest User

tank

a guest
Oct 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.03 KB | None | 0 0
  1. function clear()
  2.   term.clear()
  3.   term.setCursorPos(1,1)
  4. end
  5.  
  6.   if (colors.test(redstone.getBundledInput("back"), colors.green)) then
  7.           clear()
  8.         print("Tank Level is: 12.5%")
  9.   end
  10.   if (colors.test(redstone.getBundledInput("back"), colors.grey)) then
  11.   clear()
  12.   print("Tank Level is: 25%")
  13.   end
  14.   if(colors.test(redstone.getBundledInput("back"), colors.pink)) then
  15.   clear()
  16.   print("Tank Level is: 37.5%")
  17.   end
  18.   if(colors.test(redstone.getBundledInput("back"), colors.green)) then
  19.   clear()
  20.   print("Tank Level is: 50%")
  21.   end
  22.   if(colors.test(redstone.getBundledInput("back"), colors.magenta)) then
  23.   clear()
  24.   print("Tank Level is: 62.5%")
  25.   end
  26.   if(colors.test(redstone.getBundledInput("back"), color.yellow)) then
  27.   clear()
  28.   print("Tank Level is: 75%")
  29.   end
  30.   if(colors.test(redstone.getBundledInput("back"), colors.orange)) then
  31.   clear()
  32.   print("Tank Level is: 87.5%")
  33.   end
  34.   if(colors.test(redstone.getBundledInput("back"), colors.blue)) then
  35.   clear()
  36.   print("Tank is FULL")
  37.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement