Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("bottom")
- m=peripheral.wrap("left")
- function anzeige()
- m.clear()
- m.setCursorPos(1,1)
- if rs.getInput("front")==true then
- m.setBackgroundColor(colors.red)
- --m.write("Da")
- else
- m.setBackgroundColor(colors.lime)
- --m.write("Anfordern")
- end
- end
- anzeige()
- while true do
- ev={os.pullEvent()}
- if ev[1]=="redstone" then
- anzeige()
- elseif ev[1]=="monitor_touch" then
- rednet.send(6250,"EG")
- print("ja")
- end
- sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement