Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- if (colors.test(redstone.getBundledInput("back"), colors.green)) then
- clear()
- print("Tank Level is: 12.5%")
- end
- if (colors.test(redstone.getBundledInput("back"), colors.grey)) then
- clear()
- print("Tank Level is: 25%")
- end
- if(colors.test(redstone.getBundledInput("back"), colors.pink)) then
- clear()
- print("Tank Level is: 37.5%")
- end
- if(colors.test(redstone.getBundledInput("back"), colors.green)) then
- clear()
- print("Tank Level is: 50%")
- end
- if(colors.test(redstone.getBundledInput("back"), colors.magenta)) then
- clear()
- print("Tank Level is: 62.5%")
- end
- if(colors.test(redstone.getBundledInput("back"), color.yellow)) then
- clear()
- print("Tank Level is: 75%")
- end
- if(colors.test(redstone.getBundledInput("back"), colors.orange)) then
- clear()
- print("Tank Level is: 87.5%")
- end
- if(colors.test(redstone.getBundledInput("back"), colors.blue)) then
- clear()
- print("Tank is FULL")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement