Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clear()
- term.clear()
- term.setCursorPos(1, 1)
- rs.setOutput("top", false)
- end
- re = "Rotore in esaurimento"
- while true do
- clear()
- print("Guasti in corso: ")
- print("")
- if colors.test(redstone.getBundledInput("back"), colors.white) == true then
- print("Turbina 1.1: "..re)
- rs.setOutput("top", true)
- end
- if colors.test(redstone.getBundledInput("back"), colors.orange) == true then
- print("Turbina 1.2: "..re)
- rs.setOutput("top", true)
- end
- if colors.test(redstone.getBundledInput("back"), colors.magenta) == true then
- print("Turbina 2.1: "..re)
- rs.setOutput("top", true)
- end
- if colors.test(redstone.getBundledInput("back"), colors.lightBlue) == true then
- print("Turbina 2.2: "..re)
- rs.setOutput("top", true)
- end
- if colors.test(redstone.getBundledInput("back"), colors.lime) == true then
- print("Turbina 3.1: "..re)
- rs.setOutput("top", true)
- end
- if colors.test(redstone.getBundledInput("back"), colors.pink) == true then
- print("Turbina 3.2: "..re)
- rs.setOutput("top", true)
- end
- if colors.test(redstone.getBundledInput("back"), colors.gray) == true then
- print("Turbina 4.1: "..re)
- rs.setOutput("top", true)
- end
- if colors.test(redstone.getBundledInput("back"), colors.lightGray) == true then
- print("Turbina 4.2: "..re)
- rs.setOutput("top", true)
- end
- sleep(3)
- end
Advertisement
Add Comment
Please, Sign In to add comment