Tomodachi94

stargazerstaffdoor_config

Jun 26th, 2026 (edited)
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.78 KB | Source Code | 0 0
  1. -- SPDX-FileCopyrightText: 2026 Tomodachi94
  2. -- SPDX-License-Identifier: MIT
  3. -- A door that unlocks when an authorized user is nearby.
  4. -- Contains messages specific to the Stargazer Lounge.
  5. os.loadAPI("ocs/apis/sensor")
  6. local proximity_sensor = sensor.wrap("bottom")
  7.  
  8. local config = {}
  9.  
  10. config.authorized = {}
  11. config.authorized["Tomodachi94"] = true
  12. config.authorized["Rolcam"] = true
  13. config.authorized["GleefulLasahs"] = true
  14.  
  15. config.unlock_side = "right"
  16. config.debug_side = "back"
  17. config.sensor_side = "bottom"
  18. config.hostname = "stargazerstaffdoor"
  19.  
  20. function config.welcomeMessage()
  21.     term.setCursorPos(1, 1)
  22.     term.setTextColor(colors.purple)
  23.     term.write("Stargazer Lounge")
  24.     term.setTextColor(colors.red)
  25.     term.write(" staff only beyond this point.")
  26. end
  27.  
  28. return config
  29.  
Advertisement
Add Comment
Please, Sign In to add comment