Advertisement
Guest User

startup.lua

a guest
Jul 26th, 2024
643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1, 1)
  3.  
  4. os.pullEvent=os.pullEventRaw
  5.  
  6. print("Pasword:")
  7.  
  8. input = read("*")
  9.  
  10.  if input == "9339" then --this line containes the pasword to open the door
  11.  term.clear()
  12.  term.setCursorPos(1, 1)
  13.  redstone.setOutput("right", true)
  14.  print("Welcome")
  15.  sleep(3)
  16.  redstone.setOutput("right", false)
  17.  os.reboot()
  18.  elseif input == "terminal.admin_69.420 = terminate" then --this line containes the default acces to the code as the ctr+t has been disabled
  19.  term.clear()
  20.  term.setCursorPos(1, 1)
  21.  print("Welcome to the terminal!")
  22.  sleep(1)
  23.  error()
  24.  else
  25.  term.clear()
  26.  term.setCursorPos(1, 1)
  27.  print("Sorry, please try again...")
  28.  sleep(2)
  29.  os.reboot()
  30.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement