Advertisement
Guest User

startup

a guest
Jul 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. rednet.open("bottom")
  2.  
  3. m=peripheral.wrap("left")
  4.  
  5. function anzeige()
  6.   m.clear()
  7.   m.setCursorPos(1,1)
  8.   if rs.getInput("front")==true then
  9.     m.setBackgroundColor(colors.red)
  10.     --m.write("Da")
  11.   else
  12.     m.setBackgroundColor(colors.lime)
  13.     --m.write("Anfordern")
  14.   end
  15. end
  16. anzeige()
  17.  
  18. while true do
  19.   ev={os.pullEvent()}
  20.  
  21.   if ev[1]=="redstone" then
  22.     anzeige()
  23.   elseif ev[1]=="monitor_touch" then
  24.     rednet.send(6250,"EG")
  25.     print("ja")
  26.   end
  27.   sleep(0.5)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement