Advertisement
Guest User

TempPD

a guest
Apr 11th, 2013
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. term.clear()
  2. mon = peripheral.wrap("top")
  3. p = peripheral.wrap("bottom")
  4. print("Please right click the Player Detector.")
  5. mon.clear()
  6. mon.setCursorPos(6,2)
  7. mon.write("Please right click the Player Detector.")
  8. mon.setCursorPos(8,3)
  9. mon.write("(The box below the computer)")
  10. a, b = os.pullEvent()
  11. if b == "Shivy011" then
  12. print("Welcome "..b.."!")
  13. mon.clear()
  14. mon.setCursorPos(18,2)
  15. mon.write("Welcome "..b.."!")
  16. redstone.setOutput("left", true)
  17. sleep (5)
  18. mon.clear()
  19. redstone.setOutput("left", false)
  20. else
  21. mon.clear()
  22.  mon.setCursorPos(8,2)
  23.  mon.write("Unauthorised Player - Go away "..b)
  24.  print("Wrong Player - GO AWAY "..b)
  25.  
  26. sleep(10)
  27. end
  28. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement