Skip to content

Config

  • Path: world/carpetlmsaddition/checkStorageConfig.json
  • Purpose: Read by checkStorage and the built-in website feature. Includes port, auto-start flag, whether password is required, token expiry days, and the storage list filenames to process.
  • Example (auto-generated by default):
{
"port": 7000,
"autoStartWebsite": false,
"customWebsite": false,
"noPassword": false,
"expireDay": 0,
"storageList": ["example.json"]
}
  • noPassword: false:
    • /api/storage/getData requires Authorization: Bearer <token>.
    • /api/storage/getItem requires Authorization: Bearer <token>.
    • /api/storage/sendGetItemResult requires Authorization: Bearer <token>.
  • noPassword: true:
    • /api/storage/getData can be accessed without token.
    • /api/storage/getItem can be accessed without token.
    • /api/storage/sendGetItemResult still requires Authorization: Bearer <token>.
  • If a token is provided:
    • /api/storage/getData and /api/storage/getItem try to validate it first.
    • When noPassword: true and token validation fails, these two APIs fall back to anonymous access.
    • /api/storage/sendGetItemResult never falls back to anonymous access.
  • customWebsite: false: use the built-in storage website.
  • customWebsite: true: load files from world/carpetlmsaddition/customStorageWebsite/ (the mod ensures index.html exists automatically).
  • Path: world/carpetlmsaddition/checkStorageList/*.json
  • Purpose: Coordinate list read by checkStorage. Which files are read is controlled by storageList in checkStorageConfig.json.
  • Example file: world/carpetlmsaddition/checkStorageList/example.json
  • Example:
{
"overworld": [[0, 0, 0]],
"end": [],
"nether": []
}