Advertisement
Guest User

startup

a guest
Apr 6th, 2020
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. rednet.open("bottom")
  2. while true do
  3.   sender, message, protocol = rednet.receive(1)
  4.   print("dideldi")
  5.   if message == "start" then
  6.     print("System gestartet")
  7.     rednet.send(23, "start")
  8.     while true do
  9.       print("Sensoren Aktiv")
  10.       senderB, messageB, protocolB = rednet.receive()
  11.       if messageB == "CheckTrack" then
  12.         print("CheckTrack")
  13.         if redstone.getInput("back") == true then
  14.           rednet.send(23, "Belegt")
  15.           print("Belegt")
  16.         else
  17.           rednet.send(23, "Frei")
  18.           print("Frei")
  19.         end
  20.       end
  21.     end
  22.   end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement