Advertisement
Guest User

mainmenu

a guest
Mar 29th, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. shell.run("clear")
  2.  print("[1] Open main door")
  3.  print("[2] Close main door")
  4.  print("[3] Lights on")
  5.  print("[4] Lights off")
  6.  print("[5] Logout")
  7.  input = read()
  8.  if input == "1" then
  9.  print("oening door")
  10.  redstone.setOutput("back", true)
  11.  sleep(1)
  12.  end
  13.  if input =="2" then
  14.  print("closing door")
  15.  redstone.setOutput("back", false)
  16.  sleep(2)
  17.  end
  18.  if input == "3" then
  19.  print("lights on")
  20.  redstone.setOutput("left", true)
  21.  sleep(2)
  22.  end
  23.  if input == "4" then
  24.  print("lights off")
  25.  redstone.setOutput("left", false)
  26.  sleep(2)
  27.  end
  28.  if input == "5" then
  29.  print("logging out")
  30.  sleep(3)
  31.  os.shutdown()
  32.   else print("please stand by...") sleep(2) shell.run("insert program")
  33.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement