Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- timer = 0
- while true do
- sender, message, protocol = rednet.receive(1)
- print("dideldi")
- if message == "start" then
- print("System gestartet")
- rednet.send(23, "start")
- while true do
- print("Sensoren Aktiv")
- senderB, messageB, protocolB = rednet.receive()
- if messageB == "CheckTrack" then
- print("CheckTrack")
- if redstone.getInput("back") == true then
- timer = timer + 1
- print("Timer erhoeht")
- if timer >= 15 then
- print("ZugLang")
- rednet.send(23, "LangB")
- else
- rednet.send(23, "Belegt")
- print("Belegt")
- end
- else
- rednet.send(23, "Frei")
- timer = 0
- print("frei")
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement