Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- strona monitora
- mon = peripheral.wrap("top")
- -- strona kabla
- strona = "bottom"
- -- Maszyny
- -- np. txt1 = "reaktor1"
- txt1 = "" -- White
- txt2 = "" -- Orange
- txt3 = "" -- Magenta
- txt4 = "" -- Light blue
- txt5 = "" -- Yellow
- txt6 = "" -- Lime
- txt7 = "" -- Pink
- txt8 = "" -- Gray
- txt9 = "" -- Light gray
- txt10 = "" -- Cyan
- txt11 = "" -- Purple
- txt12 = "" -- Blue
- txt13 = "" -- Brown
- txt14 = "" -- Green
- txt15 = "" -- Red
- txt16 = "" -- Black
- while true do
- mon.clear()
- mon.setCursorPos(4,1)
- mon.write(txt1)
- mon.setCursorPos(4,2)
- mon.write(txt2)
- mon.setCursorPos(4,3)
- mon.write(txt3)
- mon.setCursorPos(4,4)
- mon.write(txt4)
- mon.setCursorPos(4,5)
- mon.write(txt5)
- mon.setCursorPos(4,6)
- mon.write(txt6)
- mon.setCursorPos(4,7)
- mon.write(txt7)
- mon.setCursorPos(4,8)
- mon.write(txt8)
- mon.setCursorPos(4,9)
- mon.write(txt9)
- mon.setCursorPos(4,10)
- mon.write(txt10)
- mon.setCursorPos(4,11)
- mon.write(txt11)
- mon.setCursorPos(4,12)
- mon.write(txt12)
- mon.setCursorPos(4,13)
- mon.write(txt13)
- mon.setCursorPos(4,14)
- mon.write(txt14)
- mon.setCursorPos(4,15)
- mon.write(txt15)
- mon.setCursorPos(4,16)
- mon.write(txt16)
- color = redstone.getBundledInput(strona)
- if colors.test(color, colors.white) == true then
- mon.setCursorPos(1,1)
- mon.write("ON")
- elseif colors.test(color, colors.white) == false then
- mon.setCursorPos(1,1)
- mon.write("OFF")
- end
- if colors.test(color, colors.orange) == true then
- mon.setCursorPos(1,2)
- mon.write("ON")
- elseif colors.test(color, colors.orange) == false then
- mon.setCursorPos(1,2)
- mon.write("OFF")
- end
- if colors.test(color, colors.magenta) == true then
- mon.setCursorPos(1,3)
- mon.write("ON")
- elseif colors.test(color, colors.magenta) == false then
- mon.setCursorPos(1,3)
- mon.write("OFF")
- end
- if colors.test(color, colors.lightBlue) == true then
- mon.setCursorPos(1,4)
- mon.write("ON")
- elseif colors.test(color, colors.lightBlue) == false then
- mon.setCursorPos(1,4)
- mon.write("OFF")
- end
- if colors.test(color, colors.yellow) == true then
- mon.setCursorPos(1,5)
- mon.write("ON")
- elseif colors.test(color, colors.yellow) == false then
- mon.setCursorPos(1,5)
- mon.write("OFF")
- end
- if colors.test(color, colors.lime) == true then
- mon.setCursorPos(1,6)
- mon.write("ON")
- elseif colors.test(color, colors.lime) == false then
- mon.setCursorPos(1,6)
- mon.write("OFF")
- end
- if colors.test(color, colors.pink) == true then
- mon.setCursorPos(1,7)
- mon.write("ON")
- elseif colors.test(color, colors.pink) == false then
- mon.setCursorPos(1,7)
- mon.write("OFF")
- end
- if colors.test(color, colors.gray) == true then
- mon.setCursorPos(1,8)
- mon.write("ON")
- elseif colors.test(color, colors.gray) == false then
- mon.setCursorPos(1,8)
- mon.write("OFF")
- end
- if colors.test(color, colors.lightGray) == true then
- mon.setCursorPos(1,9)
- mon.write("ON")
- elseif colors.test(color, colors.lightGray) == false then
- mon.setCursorPos(1,9)
- mon.write("OFF")
- end
- if colors.test(color, colors.cyan) == true then
- mon.setCursorPos(1,10)
- mon.write("ON")
- elseif colors.test(color, colors.cyan) == false then
- mon.setCursorPos(1,10)
- mon.write("OFF")
- end
- if colors.test(color, colors.purple) == true then
- mon.setCursorPos(1,11)
- mon.write("ON")
- elseif colors.test(color, colors.purple) == false then
- mon.setCursorPos(1,11)
- mon.write("OFF")
- end
- if colors.test(color, colors.blue) == true then
- mon.setCursorPos(1,12)
- mon.write("ON")
- elseif colors.test(color, colors.blue) == false then
- mon.setCursorPos(1,12)
- mon.write("OFF")
- end
- if colors.test(color, colors.brown) == true then
- mon.setCursorPos(1,13)
- mon.write("ON")
- elseif colors.test(color, colors.brown) == false then
- mon.setCursorPos(1,13)
- mon.write("OFF")
- end
- if colors.test(color, colors.green) == true then
- mon.setCursorPos(1,14)
- mon.write("ON")
- elseif colors.test(color, colors.green) == false then
- mon.setCursorPos(1,14)
- mon.write("OFF")
- end
- if colors.test(color, colors.red) == true then
- mon.setCursorPos(1,15)
- mon.write("ON")
- elseif colors.test(color, colors.red) == false then
- mon.setCursorPos(1,15)
- mon.write("OFF")
- end
- if colors.test(color, colors.black) == true then
- mon.setCursorPos(1,16)
- mon.write("ON")
- elseif colors.test(color, colors.black) == false then
- mon.setCursorPos(1,16)
- mon.write("OFF")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement