StiGMaT14

Computer Craft: Start Cc Chunk Loader [PC]

Sep 1st, 2025 (edited)
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. -- Stationary computer: (Standard/Advanced) With Peripheral: "Cc Chunk Loader" attached to any side
  2. -- Made by StiGMaT - https://discord.gg/MqMF4ucy9R"
  3. local p = peripheral.find("CcChunkLoader")
  4. if not p then error("No chunkloader peripheral found") end
  5.  
  6. -- Prompt for password
  7. write("Enter password: ")
  8. local password = read("*")  -- use read() for visible input, read("*") hides it while typing
  9.  
  10. -- Try enabling with user-provided password
  11. local ok, msg = p.enableChunkLoader(password)
  12. print("enable:", ok, msg)
  13.  
  14. -- Show status
  15. local status = p.getStatus and p.getStatus() or {}
  16. print("status:", textutils.serialize(status))
  17.  
  18. -- Later, you can disable with:
  19. -- p.disableChunkLoader()
Advertisement
Add Comment
Please, Sign In to add comment