Advertisement
TJtheDJ701

Untitled

Sep 24th, 2021
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 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. if turtle.inspect() == true then
  23. turtle.dig()
  24. end
  25.  
  26. if inspectDown() == true then
  27. turtle.digDown()
  28. turtle.forward()
  29. else
  30. turtle.forward()
  31. end
  32. end
  33. else
  34. -- Most likely Willy
  35. textutils.slowPrint("Go away willlly")
  36. sleep(1)
  37. os.shutdown()
  38. sleep(2)
  39. end
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement