Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glass = peripheral.wrap("right")
- MonU3 = peripheral.wrap("monitor_0")
- MonU2 = peripheral.wrap("monitor_1")
- MonU1 = peripheral.wrap("monitor_2")
- MonE = peripheral.wrap("monitor_3")
- Mon1 = peripheral.wrap("monitor_4")
- Mon2 = peripheral.wrap("monitor_5")
- Nr = 0
- lastColor = 1
- allColors = 0
- lastLevel = 0
- level = {[16384] = "U3" , [8192] = "U2" , [4096] = "U1" , [2048] = "E" , [1024] = "1" , [512] = "2" }
- while true do
- event = os.pullEvent("redstone")
- Nr = Nr +1
- allColors = redstone.getBundledInput("left")
- if allColors ~= 0 then
- if colors.test(allColors,lastColor) == true then
- lastRealElevatorCOlor = allColors
- else
- lastColor = colors.subtract(allColors, lastRealElevatorColor)
- end
- end
- if lastColor ~= lastLevel then
- ColorNr = tonumber(lastColor)
- print("Letzte Etage: "..lastColor)
- glass.clear()
- glass.addText(5,2,"Letzte Etage: "..level[lastColor],0xFF0000)
- glass.sync()
- end
- lastLevel = lastColor
- end
- function DisplayAllDisplays(Message)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement