Advertisement
TJtheDJ701

Untitled

Sep 24th, 2021
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. local locked = true;
  2.  
  3. while locked == true do
  4. term.clear()
  5. term.setCursorPos(1,1)
  6. term.setCursorBlink(true)
  7. textutils.slowWrite("Welcome Lucas... \nPassword: ")
  8. local ePass = read("*")
  9. term.clear()
  10. term.setCursorPos(1,1)
  11.  
  12. if ePass == "pass" then
  13.  
  14. locked = false;
  15.  
  16. textutils.slowPrint("Correct!")
  17.  
  18. turtle.refuel()
  19. textutils.slowPrint("Refueling my ass")
  20.  
  21. while turtle.detectDown() do
  22.  
  23. local success1 = turtle.inspect()
  24.  
  25. if success1 then
  26. turtle.dig()
  27. else
  28. turtle.forward()
  29. end
  30.  
  31. local success2 = turtle.inspectDown()
  32.  
  33. if success2 then
  34. turtle.digDown()
  35. else
  36. turtle.forward()
  37. end
  38. end
  39. else
  40. -- Most likely Willy
  41. textutils.slowPrint("Go away willlly")
  42. sleep(1)
  43. os.shutdown()
  44. sleep(2)
  45. end
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement