Advertisement
Guest User

startup

a guest
Aug 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. local correct, answer = "putcommandcodehere", ""
  2. rednet.open("bottom")
  3. sleep(1)
  4. while answer ~= correct do
  5. local id, message, protocol = rednet.receive()
  6.   if message == "**" then
  7.     redstone.setOutput("back", true)
  8.     print("activating")
  9.     sleep(1)
  10.     redstone.setOutput("back", false)
  11.    else
  12.      print("sorry, that ain't it chief")
  13.    end
  14. answer = message
  15. end
  16. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement