diff --git a/.gitattributes b/.gitattributes index 1ff0c423..0c1f2291 100644 --- a/.gitattributes +++ b/.gitattributes @@ -60,4 +60,9 @@ #*.pdf diff=astextplain #*.PDF diff=astextplain #*.rtf diff=astextplain + +# Frozen macOS credential component: preserve executable and source provenance. +/src/SHOU.Launcher.Desktop/Native/MacOS/credential_broker.c text eol=lf +/src/SHOU.Launcher.Desktop/Native/MacOS/frozen-arm64-v1/manifest.json text eol=lf +/src/SHOU.Launcher.Desktop/Native/MacOS/frozen-arm64-v1/SHOU.CredentialBroker binary #*.RTF diff=astextplain diff --git a/.github/workflows/conduit-build.yml b/.github/workflows/conduit-build.yml index 1a4e74a1..912a3f9c 100644 --- a/.github/workflows/conduit-build.yml +++ b/.github/workflows/conduit-build.yml @@ -1,4 +1,4 @@ -name: Conduit Build +name: Legacy WPF regression on: workflow_dispatch: @@ -40,11 +40,11 @@ jobs: fetch-depth: 0 - uses: actions/setup-dotnet@v5 with: - dotnet-version: '10.0.x' + dotnet-version: '10.0.403' - name: Verify build environment parsing shell: pwsh run: ./scripts/conduit/Test-BuildEnvironment.ps1 - - name: Publish club launcher + - name: Publish legacy verification package (not a release) id: publish shell: pwsh env: diff --git a/.github/workflows/conduit-release.yml b/.github/workflows/conduit-release.yml index 8b1c46bc..c6367ae5 100644 --- a/.github/workflows/conduit-release.yml +++ b/.github/workflows/conduit-release.yml @@ -1,12 +1,18 @@ -name: Conduit Release Draft +name: Conduit Desktop Release Draft on: + push: + tags: ['v*'] workflow_dispatch: inputs: tag: - description: 'Existing main-based tag matching the source version (e.g. v1.3.1)' + description: 'Existing version tag; source outside main is a prerelease' required: true type: string + prerelease: + description: 'Prerelease outside main (stable releases still require main)' + type: boolean + default: false permissions: contents: read @@ -14,43 +20,89 @@ permissions: jobs: validate: if: github.repository == 'Conduit-Club/SHOU-Launcher' - runs-on: ubuntu-latest + runs-on: windows-2025 + outputs: + tag: ${{ steps.identity.outputs.tag }} + source_sha: ${{ steps.identity.outputs.source_sha }} + version: ${{ steps.identity.outputs.version }} + codename: ${{ steps.identity.outputs.codename }} + prerelease: ${{ steps.identity.outputs.prerelease }} steps: - uses: actions/checkout@v6 with: - ref: ${{ inputs.tag }} + ref: ${{ inputs.tag || github.ref_name }} fetch-depth: 0 - - name: Validate release tag and source + - name: Validate tag, source and release mode + id: identity shell: pwsh env: - RELEASE_TAG: ${{ inputs.tag }} - run: ./scripts/conduit/Get-BuildIdentity.ps1 -Configuration Release -ReleaseTag $env:RELEASE_TAG + RELEASE_TAG: ${{ inputs.tag || github.ref_name }} + REQUEST_PRERELEASE: ${{ inputs.prerelease && 'true' || 'false' }} + run: | + git merge-base --is-ancestor HEAD origin/main + if($LASTEXITCODE -notin @(0,1)){throw 'Cannot determine release source ancestry.'} + $onMain=$LASTEXITCODE -eq 0 + $pre=-not $onMain -or $env:REQUEST_PRERELEASE -eq 'true' -or $env:RELEASE_TAG -cmatch '^v\d+\.\d+$' -or $env:RELEASE_TAG -cmatch '^v\d+\.\d+\.\d+-' + $identity=./scripts/conduit/Get-BuildIdentity.ps1 -Configuration Release -ReleaseTag $env:RELEASE_TAG -Prerelease:$pre + "tag=$($identity.ReleaseTag)" >> $env:GITHUB_OUTPUT + "source_sha=$($identity.Commit)" >> $env:GITHUB_OUTPUT + "version=$($identity.Version)" >> $env:GITHUB_OUTPUT + "codename=$($identity.Codename)" >> $env:GITHUB_OUTPUT + "prerelease=$($pre.ToString().ToLowerInvariant())" >> $env:GITHUB_OUTPUT build: needs: validate - uses: ./.github/workflows/conduit-build.yml + uses: ./.github/workflows/cross-platform-desktop.yml with: - source_ref: ${{ inputs.tag }} - release_tag: ${{ inputs.tag }} + source_ref: ${{ needs.validate.outputs.tag }} + release_tag: ${{ needs.validate.outputs.tag }} + prerelease: ${{ needs.validate.outputs.prerelease == 'true' }} secrets: inherit draft: - needs: build - runs-on: ubuntu-latest + needs: [validate, build] + runs-on: windows-2025 permissions: contents: write steps: + - uses: actions/checkout@v6 + with: + ref: ${{ needs.validate.outputs.source_sha }} - uses: actions/download-artifact@v8 with: - name: ${{ needs.build.outputs.artifact_name }} - path: package - - name: Create reviewable release draft + pattern: Desktop-Release-*-${{ github.run_id }} + path: candidates + - name: Validate and collect all three Desktop packages + shell: pwsh + env: + RELEASE_TAG: ${{ needs.validate.outputs.tag }} + RELEASE_SOURCE: ${{ needs.validate.outputs.source_sha }} + RELEASE_VERSION: ${{ needs.validate.outputs.version }} + RELEASE_CODENAME: ${{ needs.validate.outputs.codename }} + RELEASE_PRERELEASE: ${{ needs.validate.outputs.prerelease }} + run: | + ./scripts/conduit/Collect-ReleaseAssets.ps1 -InputRoot candidates -OutputRoot release-assets -Tag $env:RELEASE_TAG -SourceSha $env:RELEASE_SOURCE -Version $env:RELEASE_VERSION -Codename $env:RELEASE_CODENAME -Prerelease:($env:RELEASE_PRERELEASE -eq 'true') + - name: Preserve internal release verification evidence + uses: actions/upload-artifact@v7 + with: + name: Desktop-Release-Evidence-${{ needs.validate.outputs.tag }}-${{ github.run_id }} + path: release-assets/evidence/ + if-no-files-found: error + - name: Create reviewable Desktop release draft + shell: pwsh env: GH_TOKEN: ${{ github.token }} GH_REPO: ${{ github.repository }} - RELEASE_TAG: ${{ inputs.tag }} - shell: pwsh + RELEASE_TAG: ${{ needs.validate.outputs.tag }} + RELEASE_VERSION: ${{ needs.validate.outputs.version }} + RELEASE_CODENAME: ${{ needs.validate.outputs.codename }} + RELEASE_PRERELEASE: ${{ needs.validate.outputs.prerelease }} run: | - gh release create $env:RELEASE_TAG --verify-tag --draft --title $env:RELEASE_TAG --generate-notes - if ($LASTEXITCODE -ne 0) { throw 'Cannot create release draft; an existing release is never overwritten.' } - $files = Get-ChildItem package -File | ForEach-Object FullName + $flags=@('--verify-tag','--draft','--latest=false') + if($env:RELEASE_PRERELEASE -eq 'true'){$flags+='--prerelease'} + $notes="docs/conduit/RELEASE-v$($env:RELEASE_VERSION).md" + if(-not (Test-Path -LiteralPath $notes -PathType Leaf)){throw 'Version-specific release notes are required.'} + gh release create $env:RELEASE_TAG @flags --title "SHOU-Launcher v$($env:RELEASE_VERSION) · $($env:RELEASE_CODENAME)" --notes-file $notes + if($LASTEXITCODE -ne 0){throw 'Cannot create draft; existing tags/releases are never overwritten.'} + $files=@('osx-arm64','win-x64','win-arm64') | ForEach-Object { Join-Path release-assets "SHOU-Launcher-$_-$($env:RELEASE_TAG).zip" } + foreach($file in $files){if(-not (Test-Path -LiteralPath $file -PathType Leaf)){throw 'A compiled release package is missing.'}} gh release upload $env:RELEASE_TAG @files - if ($LASTEXITCODE -ne 0) { throw 'Release asset upload failed.' } + if($LASTEXITCODE -ne 0){throw 'Release asset upload failed; draft stays unpublished.'} diff --git a/.github/workflows/cross-platform-desktop.yml b/.github/workflows/cross-platform-desktop.yml new file mode 100644 index 00000000..d4ad6814 --- /dev/null +++ b/.github/workflows/cross-platform-desktop.yml @@ -0,0 +1,159 @@ +name: Shared Desktop migration + +on: + workflow_dispatch: + inputs: + source_ref: + description: 'Optional same-repository source ref' + type: string + default: '' + release_tag: + description: 'Existing source tag; empty for a development candidate' + type: string + default: '' + prerelease: + description: 'Allow a matching prerelease tag outside main' + type: boolean + default: false + workflow_call: + inputs: + source_ref: + type: string + default: '' + release_tag: + type: string + default: '' + prerelease: + type: boolean + default: false + secrets: + CLIENT_ID: + required: false + CURSEFORGE_API_KEY: + required: false + MACOS_SIGNING_CERTIFICATE_BASE64: + required: false + MACOS_SIGNING_PASSWORD: + required: false + pull_request: + branches: [dev, main] + push: + branches: [dev, main, features/macos-arm64, features/windows-parity] + +permissions: + contents: read + +jobs: + desktop: + strategy: + fail-fast: false + matrix: + include: + - runner: macos-15 + rid: osx-arm64 + publish: true + - runner: windows-2025 + rid: win-x64 + publish: true + runs-on: ${{ matrix.runner }} + timeout-minutes: 45 + steps: + - uses: actions/checkout@v6 + with: + ref: ${{ inputs.source_ref || github.sha }} + fetch-depth: 0 + - uses: actions/setup-dotnet@v5 + with: + dotnet-version: '10.0.403' + - uses: actions/setup-java@v5 + with: + distribution: temurin + java-version: '21.0.13+9.0.LTS' + overwrite-settings: false + settings-path: ${{ runner.temp }}/shou-java-settings + - name: Register isolated runner paths and tools + shell: pwsh + run: ./scripts/dev/Initialize-CI.ps1 -TaskRoot (Join-Path $env:RUNNER_TEMP 'shou-desktop-dev') + - name: Verify parser contract + shell: pwsh + run: ./scripts/conduit/Test-BuildEnvironment.ps1 + - name: Verify release tag policy and asset selection + shell: pwsh + run: | + $tools=Get-Content -Raw (Join-Path $env:SHOU_DEV_ROOT 'control/tools.json') | ConvertFrom-Json + & $tools.python.executable scripts/conduit/test_release_pipeline.py --directory "$env:SHOU_DEV_ROOT/reports/release-pipeline" + if($LASTEXITCODE -ne 0){throw 'Release pipeline regression failed.'} + - name: Portable Core and protocol tests + shell: pwsh + env: + TARGET_RID: ${{ matrix.rid }} + run: | + $filter='TestCategory!=NativeCredential&TestCategory!=OnlineJava&TestCategory!=JavaTrustInterop' + if(-not $IsMacOS){$filter+='&TestCategory!=MacOSNativeArgv'} + if($IsWindows){$filter+='&TestCategory!=JavaTrustPosixLinks'} + ./scripts/dev/Invoke-Dev.ps1 -RunId core -Action Test -EntryProject tests/SHOU.Launcher.Core.Tests/SHOU.Launcher.Core.Tests.csproj -RuntimeIdentifier $env:TARGET_RID -Configuration Release -TestFilter $filter + - name: Shared Avalonia Headless tests + shell: pwsh + env: + TARGET_RID: ${{ matrix.rid }} + run: ./scripts/dev/Invoke-Dev.ps1 -RunId headless -Action Test -EntryProject tests/SHOU.Launcher.Desktop.Tests/SHOU.Launcher.Desktop.Tests.csproj -RuntimeIdentifier $env:TARGET_RID -Configuration Release + - name: Import fixed Mac candidate signing identity + if: matrix.rid == 'osx-arm64' && github.event_name != 'pull_request' + env: + MACOS_SIGNING_CERTIFICATE_BASE64: ${{ secrets.MACOS_SIGNING_CERTIFICATE_BASE64 }} + MACOS_SIGNING_PASSWORD: ${{ secrets.MACOS_SIGNING_PASSWORD }} + run: python3 scripts/macos/manage_signing.py install-ci --directory "$RUNNER_TEMP/shou-macos-signing" + - name: Verify Mac signing continuity and Keychain access + if: matrix.rid == 'osx-arm64' && github.event_name != 'pull_request' + run: python3 scripts/macos/test_signing.py --directory "$SHOU_DEV_ROOT/reports/signing-continuity" + - name: Verify stable Mac credential broker and caller isolation + if: matrix.rid == 'osx-arm64' && github.event_name != 'pull_request' + run: python3 scripts/macos/test_credential_broker.py --directory "$SHOU_DEV_ROOT/reports/credential-broker" + - name: Publish same Desktop candidate + if: matrix.publish + shell: pwsh + env: + TARGET_RID: ${{ matrix.rid }} + PCL_MS_CLIENT_ID: ${{ github.event_name != 'pull_request' && secrets.CLIENT_ID || '' }} + PCL_CURSEFORGE_API_KEY: ${{ github.event_name != 'pull_request' && secrets.CURSEFORGE_API_KEY || '' }} + SHOU_MACOS_ALLOW_ADHOC: ${{ github.event_name == 'pull_request' && '1' || '0' }} + RELEASE_TAG: ${{ inputs.release_tag }} + RELEASE_PRERELEASE: ${{ inputs.prerelease && 'true' || 'false' }} + run: | + $release=@{} + if($env:RELEASE_TAG){$release.ReleaseTag=$env:RELEASE_TAG} + if($env:RELEASE_PRERELEASE -eq 'true'){$release.Prerelease=$true} + ./scripts/dev/Invoke-Dev.ps1 -RunId candidate -Action Publish -RuntimeIdentifier $env:TARGET_RID -Configuration Release @release + - name: Verify real Mac candidate upgrade and credential fault handling + if: matrix.rid == 'osx-arm64' && github.event_name != 'pull_request' + run: python3 scripts/macos/test_packaged_credentials.py --app "$SHOU_DEV_ROOT/dist/candidate/Desktop/Release/osx-arm64/default/SHOU Launcher.app" --directory "$SHOU_DEV_ROOT/reports/packaged-credential-upgrade" + - name: Preserve Windows ARM64 build + if: matrix.rid == 'win-x64' + shell: pwsh + env: + PCL_MS_CLIENT_ID: ${{ github.event_name != 'pull_request' && secrets.CLIENT_ID || '' }} + PCL_CURSEFORGE_API_KEY: ${{ github.event_name != 'pull_request' && secrets.CURSEFORGE_API_KEY || '' }} + RELEASE_TAG: ${{ inputs.release_tag }} + RELEASE_PRERELEASE: ${{ inputs.prerelease && 'true' || 'false' }} + run: | + $release=@{} + if($env:RELEASE_TAG){$release.ReleaseTag=$env:RELEASE_TAG} + if($env:RELEASE_PRERELEASE -eq 'true'){$release.Prerelease=$true} + ./scripts/dev/Invoke-Dev.ps1 -RunId candidate-arm64 -Action Publish -RuntimeIdentifier win-arm64 -Configuration Release @release + - name: Remove ephemeral Mac signing identity + if: always() && matrix.rid == 'osx-arm64' && github.event_name != 'pull_request' + run: python3 scripts/macos/manage_signing.py cleanup-ci --directory "$RUNNER_TEMP/shou-macos-signing" + - name: Upload candidate and evidence + if: always() + uses: actions/upload-artifact@v7 + with: + name: Desktop-Release-${{ matrix.rid }}-${{ github.sha }}-${{ github.run_id }} + path: | + ${{ runner.temp }}/shou-desktop-dev/dist/**/*.zip + ${{ runner.temp }}/shou-desktop-dev/dist/**/*.sha256 + ${{ runner.temp }}/shou-desktop-dev/dist/**/BUILD-INFO.json + ${{ runner.temp }}/shou-desktop-dev/dist/**/SIGNING-INFO.json + ${{ runner.temp }}/shou-desktop-dev/dist/**/CREDENTIAL-BROKER-INFO.json + ${{ runner.temp }}/shou-desktop-dev/build/**/reports/** + ${{ runner.temp }}/shou-desktop-dev/reports/** + if-no-files-found: warn diff --git a/.github/workflows/reusable-build.yml b/.github/workflows/reusable-build.yml index 829b13ed..3c0e5c08 100644 --- a/.github/workflows/reusable-build.yml +++ b/.github/workflows/reusable-build.yml @@ -21,7 +21,7 @@ on: jobs: build: name: Build - runs-on: ubuntu-latest + runs-on: windows-2025 env: LANG: en_US.UTF-8 @@ -29,37 +29,24 @@ jobs: - name: Checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - name: Resolve build identity - id: identity - shell: pwsh - env: - BUILD_ARCH: ${{ inputs.architecture }} - run: | - $identity = ./scripts/conduit/Get-BuildIdentity.ps1 -Architecture $env:BUILD_ARCH -Configuration CI - "artifact_name=$($identity.ArchiveStem)" | Add-Content -LiteralPath $env:GITHUB_OUTPUT - - name: Setup .NET SDK uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0 with: - dotnet-version: 10.0.x + dotnet-version: '10.0.403' - name: Build Project + id: publish shell: pwsh env: - PCL_WRITE_SECRET: '1' PCL_MS_CLIENT_ID: ${{ secrets.CLIENT_ID }} PCL_CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }} - PCL_GITHUB_SHA: ${{ github.sha }} BUILD_CONFIGURATION: ${{ inputs.configuration }} BUILD_ARCHITECTURE: ${{ inputs.architecture }} run: | - dotnet publish "Plain Craft Launcher 2/Plain Craft Launcher 2.csproj" "-p:Configuration=$env:BUILD_CONFIGURATION" "-p:Platform=$env:BUILD_ARCHITECTURE" -p:UseSharedCompilation=false -p:DeleteExistingFiles=true -o ./artifact --no-self-contained - if ($LASTEXITCODE -ne 0) { throw "dotnet publish failed: $LASTEXITCODE" } - $coreAssembly = "PCL.Core/bin/${env:BUILD_CONFIGURATION}-${env:BUILD_ARCHITECTURE}/net10.0-windows/PCL.Core.dll" - ./scripts/conduit/Assert-ClientCredentials.ps1 -AssemblyPath $coreAssembly + ./scripts/conduit/Publish.ps1 -Architecture $env:BUILD_ARCHITECTURE -Configuration $env:BUILD_CONFIGURATION -OutputRoot artifact - name: Upload the Build Artifact uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: - name: ${{ steps.identity.outputs.artifact_name }} + name: ${{ steps.publish.outputs.artifact_name }} path: artifact/** diff --git a/.gitignore b/.gitignore index 39876983..a2aefbb4 100644 --- a/.gitignore +++ b/.gitignore @@ -223,6 +223,9 @@ ClientBin/ *.dbproj.schemaview *.jfm *.pfx +*.p12 +*.keychain +*.keychain-db *.publishsettings orleans.codegen.cs diff --git a/AGENTS.md b/AGENTS.md index 7a6098e3..07b6663f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -20,3 +20,15 @@ - `dev` 验证通过后,创建或更新 `dev → main` PR,说明功能、版本、验证结果和已知限制;检查无误并完成审查后再合并。 - 正式新版本基于合并后的 `main` 打标签、构建和发布,更新版本号、代号与发行说明,并记录源码提交、SDK 版本、架构、构建配置及 SHA-256。 - 直接基于 `dev` 的候选包默认作为预发布;用户明确指定发行来源或流程时按其要求执行。创建 PR 不代表已经获准合并或正式发布。 +## 临时开发范围:启动器外壳与功能 + +- 默认禁止启动 Minecraft 游戏进行验证。只有用户在当前任务中明确要求启动游戏测试时,才可进行对应游戏验证;历史授权、旧门禁、todo 或验收脚本不视为本次授权。 +- 当前阶段验证以启动器原生 UI、社团内容/网络/配置功能,以及不启动 Minecraft 的自动化测试为主。不得为了验证外壳、按钮、下载或页面流程而自动启动游戏。 + +## 产品范围补充(2026-11-07) + +- 中文社团用户为主要受众;按 R34 用户要求,界面只提供简体中文、繁體中文和 English。旧语言配置回退到这三种语言;其他历史翻译保留在源码中,不再随桌面包加载或继续维护。 +- 启动器只允许在设置页手动检查发行版本并由用户前往浏览器自行下载;不实现启动自动检查、自动下载、应用内更新替换或自动回退。 +- 背景保留图片轮播,不开发视频背景。不新增完整许可清单界面;现有许可文件与必要归属保留。 +- 游戏启动验证仍按上方默认禁止规则执行。本轮 R17 的明确授权仅覆盖 XPlus 26.2 启动并连接社团 SMP,不推定为后续任务的常驻授权。 +- R18 用户明确要求不启动游戏。加载器安装只允许执行必要的无界面安装处理器和 Java 探测;不调用游戏入口,不用历史游戏授权运行 Minecraft。 diff --git a/CONTRACTS.md b/CONTRACTS.md new file mode 100644 index 00000000..91feb398 --- /dev/null +++ b/CONTRACTS.md @@ -0,0 +1,92 @@ +# Shared contracts — B0 + +Authoritative definitions: `src/SHOU.Launcher.Core/Abstractions/`. Core is net10.0 and has no old WPF/Core reference. One Desktop supports osx-arm64, win-x64 and win-arm64; WPF stays the Windows default. + +Platform worker implements `SHOU.Launcher.Desktop.Platform.PlatformServicesFactory.Create(PlatformOptions, IVerifiedDownloader)` returning `PlatformServices`. Its additive three-argument overload accepts an explicit `ICredentialStore` for portable service tests; the production two-argument entry retains native Windows/macOS storage and rejects unsupported hosts. Constructors calculate paths only. Bootstrap acquires `DataLock` before initializing any write service; disposal drains writes, stops only owned processes, then releases the lease. `--data-dir` must isolate all mutable roots, keys and lock. + +UI uses `Bootstrap.Launcher` (`ILauncherService`) and `Bootstrap.ExternalLauncher`. It owns `App`, creates `MainWindow`/VM from these, and must show a clear error if host wiring is absent. Snapshot/event callbacks may originate off UI thread. Unsubscribe/dispose view models; no credentials in account DTOs or logs. UI cancellation uses CancellationToken, game stop is separate. Host owns service disposal. + +`JavaInstallation` is a real probe result; arch is selected Java arch, separate from hardware/process. Installer must use official catalog, verify file size/hash, handle links/executable/bundle and only return usable after probe. `IVerifiedDownloader` is main-owned; platform may request factory injection instead of inventing downloader contracts. + +`ProcessSpec.Arguments` is argv. Never shell/split. Stdout/stderr read concurrently with bounded capture and cancellation. Credential read null means absent; failures throw typed errors and must disable persistence without replacing existing secrets. Test stores are explicit. + +`ILauncherService` supplies six-page production flows; tests may supply clearly named fakes. `LaunchPlan.ToRedactedReport()` excludes raw Arguments/Environment; raw plan must never be JSON serialized to a report. Account IDs and instance IDs are stable opaque IDs. + +New generator owns new Core configuration dictionary, settings key registry and startup-order registry. The shared three-input capture helper is also used by the legacy generator. Exact resource name remains `PCL.metadata.json`, embedding original metadata; no fake defaults. Release/Beta/CI never read runtime PCL secrets; SHA never has runtime fallback. + +Frozen for first batch. Interface change requests go to main before edits; main distributes narrow patches. Build artifacts, caches and data live below SHOU_DEV_ROOT, never in source/obj defaults. B0 is architecture/compilation evidence only, not product functionality acceptance. + +Legacy runtime continuity: first-run Windows discovery reads only the allowlisted global Java and memory preferences, and first-run/manual instance attachment copies compatible per-instance preferences into the new sidecar. Legacy Java bin/home/executable JSON and current absolute/contained-relative selections retain existing executable paths; missing, escaping or ambiguous selections are reported and left unset. Import never runs an executable. Custom RAM uses the original piecewise PCL slider rule, restricted to the supported 512–32768 MiB range; initial heap is capped by the imported maximum. Existing desktop sidecars, credentials and original WPF/instance files are not rewritten. Explicit legacy-settings reads return a draft (including optional JavaExecutable/MemoryMiB); applying it still requires a save. Per-instance automatic RAM remains subject to the existing global-follow/fixed-memory UI and emits a notice when a conflicting manual global mode cannot be represented. + +Local display JSON may omit empty-name properties used as comment separators by existing mods. Named properties, including duplicate identity/version/dependency declarations, retain their original validation. This normalization is not used for remote catalog identities or installation manifests and never rewrites the original archive. + +B1 downloader clarification: hash-bearing requests verify before atomic replacement. Unhashed official catalog metadata is always fetched fresh, without cache hits or resume; transport validates declared size only, and the caller must parse and validate its typed catalog/target contract before trusting it. This is not runtime-installation evidence. Existing symlink/reparse-point destinations and staging sidecars are refused. Redacted LaunchPlan reports never copy argv, including user-supplied JVM arguments. + +Attached-instance file continuity: `DownloadRequest.LocalSources` contains explicit root/relative-path candidates from the attached `ExternalInstanceOrigin`. Before network/RPC transfer, the downloader may copy a candidate into an owned temporary file and verify the requested hash and size before atomic cache replacement. Client JARs (including inherited profiles), libraries, asset indexes and objects can be reused; unhashed, missing, corrupt, traversing or linked sources cannot bypass normal verification. Original instance files remain read-only. Successful reuse reports `Source=cache` so the task manager counts reused bytes separately from network transfer. + +Selected-account appearance reads restore the protected session before remote access. Microsoft credentials with refresh tokens and unknown/near expiry refresh first; legacy access-only sessions may still read while valid. Only an official authenticated profile 401 can trigger one serialized refresh/retry. Yggdrasil sessions renew once after restoration, while public profile/texture reads stay anonymous. Refresh preserves the selected account and existing credential failure/persistence rules. Token renewal does not change the avatar's character identity or cancel its own in-flight read. Authentication failures retain the roster and credentials and do not automatically loop. +# P1 protected Java and Fabric additions + +ProcessSpec.SensitiveInput is optional, one-shot, bounded and excluded from JSON. The runner owns and clears consumed bytes; transfer failures stop only the owned child and never retry via argv/files. Java bootstrap protocol v1 is SHOUBOOT + big-endian version/body length + strict UTF-8 length-prefixed main/argv, max1MiB body. All game args use stdin when the packaged helper is present; real accounts fail closed when it is absent. Public JVM options may not override the trusted helper classpath/entry; the verified helper precedes game libraries. LaunchPlan.MainClassIndex is the explicit JVM/game boundary and BootstrapSha256 is public provenance. + +CreateFabricInstanceAsync(name, gameVersionId, loaderVersion, ct) creates a real Fabric profile/instance. The existing Loader/LoaderVersion DTO fields are retained. Unknown loaders remain unsupported. Product RIDs remain osx-arm64/win-x64/win-arm64; linux-x64 is an explicit portable-test restore target only. + + +## B8 Java trust variant contract + +`IJavaTrustService` and the finding/request/result DTOs are in `Abstractions/JavaTrustContracts.cs`. Source runtime trees remain read-only. Derived copies live below the caller's explicit `derived-trust` root, preserve contained relative links and executable modes, and require a completed marker, policy provenance, source/output tree fingerprints and the exact allowed certificate transformation. Original Mojang manifest checks remain mandatory; only a verified installer result carries `JavaInstallation.ValidatedManifestSha1`. + +`LauncherSettings.ConduitJavaTrustAutoRepair` retains the default true preference. It automatically derives a newly installed official runtime; existing external Java requires the explicit copy action. Automatic selection creates no hidden instance override. Matching completed variants have priority only when the user has no explicit Java selection, and every selected derived runtime is revalidated even when automatic repair is disabled. Manual copy selection changes only the global default after persistence succeeds; explicit instance overrides remain. + +Production `DerivedJavaTrustService` receives `IProcessRunner` for internal probes after its tree validation. Public discovery and direct probe reject incomplete/corrupt/escaping owned variants before execution; there is no public staging bypass. CLI trust modes require explicit isolated data/Java paths and do not claim GUI/game acceptance. UI scan errors/unknown findings cannot be presented as a safe result. + +## Final credential failure contract + +Keychain operations are noninteractive. The existing authentication-UI query flag stays in place; the legacy process-local interaction state is saved, disabled and restored inside one static synchronous gate covering every store instance. Native state/restore errors are typed failures. This changes no item ACL, user preference or keychain backend, and does not promise a hard timeout against every possible Security daemon failure. A new binary denied access must retain existing data and report denial; it must not delete/recreate the item or fall back to plaintext. + +`AccountProfile.Persisted` must describe committed account state. Account/selection UI publication follows the sidecar commit. When credential reading/writing fails, new accounts remain explicitly session-only and the original disk account list/selection are preserved. If refresh already rotated the credential before a sidecar failure, keep the new valid in-memory session, mark an existing profile session-only, freeze subsequent account persistence and rethrow the real save failure; never append an unsaved new profile or reuse the old token. Cross-configuration safe denial and actual credential access continuity are separate gates. + +## R40 read-only mod declarations + +`IInstanceModRelationsService` is an optional additive service for the instance relationship page. It returns physical hosts, recursive declaration nodes, dependency requirements and provider paths. Presence states describe declarations found in enabled/disabled files; they do not claim loader candidate selection or version compatibility. Reads support cancellation, never extract or execute JAR contents, and report incomplete analysis explicitly. Navigation discards stale results, and mod writes await cancelled relationship readers before moving files. + +## R41 resource display metadata + +`IInstanceContentMetadataService` is an optional read-only enrichment service for resource packs and shaders. It verifies SHA-1/size, release/project identity and project kind before returning display names, current versions and categories; it never creates update tokens or changes instance files. The UI keeps local rows available, discards stale page results, loads local pack icons/descriptions first, and shares cancellation/draining with mod reads before any import/write. + +## R42 resource pack and shader updates + +`IInstanceResourceUpdateService` is additive and accepts only `resourcepacks` and `shaders`. It shares the existing file-update DTOs and backup result with mod management; `InstanceModOnlineInfo.Version` and `Requirements`, and update-result `Notices`, are optional for older callers. Checks verify installed hashes, project kind and compatible release identity, use no mod-loader filter, and issue short-lived kind-bound tokens. Automatic checks use the six-hour cache; explicit refresh bypasses it. No instance file is changed by a check. + +Resource row and selected updates execute directly, while mod update warnings remain. Resource updates replace only the selected archive, as in WPF; they do not install/upgrade dependency mods. Declared requirements remain available in resource details and a completion notice. The existing download/backup/rollback transaction now supports resource kinds, preserves installed resource filenames so game enablement references survive, and backs up exact original bytes and receipts below `.shou-resource-backups`. Apply rechecks the instance, running sessions, original hashes, manifest, and selected online file. UI navigation/cancellation rejects late results; writes drain automatic and manual readers first. Unsupported older services retain read-only metadata enrichment. + +## R43 local resource recovery and catalog navigation + +`IInstanceContentTrashService` adds reversible file removal for `resourcepacks`, `shaders` and `schematics`. It reuses the mod trash DTO and transaction; old mod callers and `.shou-mod-trash` receipts keep their format. Other kinds store receipts in `.shou-content-trash/`, bound to the instance, kind and exact file paths. Files and removed installation entries are restored together, preserving optional roles and later unrelated installs. Untracked resource files do not create an installation manifest. Restore verifies size, both hashes and literal paths, refuses occupied targets, and rolls moved files back on cancellation/failure. No permanent purge or non-mod enable/disable action is added. + +The UI captures row/batch paths before confirmation, drains cancelled metadata/update readers before moves, discards stale trash reads after navigation, and scopes recovery to the current instance/category. Closing the compact recovery panel hides it without deleting receipts. Verified local mod/resource/shader details can open the existing catalog/version page with the exact instance and game version; resource/shader queries use no mod-loader filter. Back returns to the original resource section and search if its instance/directory still matches. Unknown files retain local details; an unrelated catalog open clears the return context. + +## R45 screenshot, export and read-only interface parity + +Screenshot enumeration, decoding, clipboard and recovery support PNG, JPG/JPEG, BMP, WebP and TIF/TIFF. Skia handles its supported formats; managed LibTiff handles TIFF. Decoders check dimensions before raster allocation, retain the existing file/pixel budgets, and never change source bytes. The gallery appends 20 at a time on scroll or an explicit load-more action with no 60-item cutoff. Navigation/disposal cancels reads and disposes previews; stale reads cannot publish or open files in another context. Existing screenshot trash receipts (including their internal payload filename) remain compatible; original file extension and SHA-256 are preserved. + +`IInstanceExportSelectionService` adds read-only directory browsing, scoped to the exact instance. The UI can select whole directories or individual files, retains choices within the same instance, clears them on instance/directory identity changes, and passes explicit relative paths to the existing CF/MRpack export options. Parent selections subsume selected children. Selection does not relax export path validation, credential exclusions, archive budgets or transactional publication; no selected file is executed. `ILocalFileLauncher` is an optional additive OS opener for current screenshots and historical log files; URI opening policy is unchanged. + +Instance server status uses the existing Minecraft status probe with additive optional MOTD, maximum player count, version, icon and response-duration fields. Duration includes connection/query work and is not a protocol ping/pong RTT. Status reads do not write servers.dat; UI queries are cancellable, limited to four concurrent reads and discarded after context/row changes. Only bounded PNG favicons are accepted for display, and unsupported images do not affect other server information. Rich colored MOTD rendering and protocol ping remain outside this phase. Favorite icons use existing cancellable reads and the shared image gate; favorites search is local and does not alter saved entries. Windows console-Java preference is now connected to the existing global launch option, and hidden on other platforms. + +## R46 schematic directory navigation + +`IInstanceContentBrowserService` is an additive adapter for schematic directories, matching the WPF loader's schematic-only folder enumeration. Paths are relative to `schematics`, stay within the selected game directory, and reject parent traversal and links in all existing components. Browsing is shallow and cancellable; folders sort before files. The UI supports enter/double-click/Enter, parent/Backspace, current-path display, and opening the current folder. Category or actual instance-directory changes reset navigation; stale reads and picker results cannot populate or import into another directory. + +Local file selection and drops install into the captured schematic directory. A missing child directory fails rather than silently recreating it or redirecting to the category root. Supported files retain existing import/collision rules and running-instance protection. Schematic file trash/restore preserves full relative paths and exact original bytes through the existing receipt transaction; receipts and other categories remain compatible. Folders are navigation entries, excluded from file selection, update and trash operations. Folder-tree removal, directory-level imports and schematic format previews are not implemented. Mod, resource-pack and shader enumeration/update ranges are unchanged. + +Screenshot image buttons expose the actual filename as their accessible name. Favorites distinguish a nonempty saved collection with no search matches from an empty collection; filtering never rewrites favorites. + +## R47:主页组件、收藏协议与页面信息 + +- `CustomHomeDocument` 解释本地/HTTPS 文档中的常用 WPF 展示组件(MyCard、TextBlock、Image、MyButton、StackPanel、WrapPanel,Grid 暂按纵向容器降级);不调用运行时 XAML/CLR 加载器。按钮当前只适配 OpenUrl/打开网页;未适配的控件和事件明确报错。TXT/Markdown 继续作为纯文本显示。网络文档不能引用本地图片;读取/图片取消、大小预算和迟到结果保护生效。 +- `ICustomHomeImageService` 为展示组件读取本地或匿名 HTTPS 图片。`IContentDescriptionService` 仅由用户点击发起旧 WPF 的公开简介翻译请求;不带 CF/微软凭据,404 表示暂无翻译,换页取消/丢弃迟到结果。 +- `ContentReferenceIndex` 从本仓库原 `mcmod.buf` 可重复生成,不新抓取数据库。按资源来源的精确 slug 匹配 mod/datapack,只有找到真实 ID 时才显示 MC 百科入口。 +- 收藏文件从旧项目数组读取,首次修改写入 version 2 的项目/分组文档,并保留上一版本 `.bak`;损坏/未知版本保留原文件。分组可以共享项目,删除分组把项目移入其余分组而不删除收藏。分享码与 WPF `GetShareCode` 一致为 JSON 字符串 ID 数组(CF 去掉内部 `cf-` 前缀);导入逐项目读取并验证官方身份,失败项明示,已成功项目可继续保存。分享所选项或当前完整分组,不因搜索而隐式缩减整个分组。 +- 全局 `DebugLogging`/`ClasspathPrepend` 接既有 `GameLaunchOptions` 与自动保存;Windows console Java 仍按平台显示。未移植的 WPF 渲染器/专用 agent、GPU 和自动崩溃分析不伪装成可用开关;已取消的自动发行提示不恢复。 +- `ClubServer.PingMilliseconds` 仅表示状态连接上的 Ping/Pong 往返,需精确 nonce 相符;无 Pong/错误 Pong 不丢弃已取得的在线状态。`ResponseMilliseconds` 仍为查询耗时,二者在 UI 中区分。此路径只发送状态查询,不连接游戏会话或写 `servers.dat`。 diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 00000000..f3158a4a --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,26 @@ + + + 14.0 + enable + enable + Debug;CI;Beta;Release + true + + osx-arm64;win-x64;win-arm64;linux-x64 + true + false + 1.6.2 + Conduit Club; PCL Community contributors + + + CI;TRACE + + + BETA;PUBLISH + true + + + RELEASE;PUBLISH + + diff --git a/OWNERSHIP.md b/OWNERSHIP.md new file mode 100644 index 00000000..3aa4fa70 --- /dev/null +++ b/OWNERSHIP.md @@ -0,0 +1,53 @@ +# macOS migration ownership — contract B0 + +## Active WPF parity cleanroom phase — 2026-11-05 + +Current primary checkout uses `features/wpf-parity`, inheriting the validated migration checkpoint +`3d9205cc`. The two isolated worker branches are `features/wpf-parity-shell` and +`features/wpf-parity-settings`; old source branches and dirty worktrees remain preserved. +The user explicitly requested reference-faithful Avalonia UI migration and parallel branch work. +Only screenshots and sanitized observable notes from `UI-Reference-WPF-20261105.zip` are used +for UI reconstruction. Do not read legacy WPF UI/XAML or the archive's XAML-derived control +structures/source mappings/collector scripts. Existing portable business services remain reusable. +The exact per-phase write contract is `.shou-dev/reports/wpf-parity/CONTRACT.md`. +Main owns Core integration and instance behavior; shell owns shared chrome/home/tools/download +views and VMs; settings owns setting/account views and the separate new World/Server NBT backend. +Two workers only, gpt-6.1-sol/max, no recursive agents. All heavy jobs use the shared lock and budget. +Local phased commits in these three branches only; no push, PR merge, release, history rewrite, +original .env modification or legacy deletion before parity/native/data gates pass. Reference +coverage, visual matching and working business behavior must be reported separately. + +## Previous native validation checkpoint — 2026-11-05 + +Current development uses `features/macos-native-validation` in the primary repository checkout. +The previous integration worktree is retained detached at the validation checkpoint. +The user explicitly authorized combining the three local feature histories and continuing here. +Source heads were `features/macos-arm64` at `7decdd17`, UI at `8e5fc6f8`, and platform at `de6ebe86`. +All worker-owned implementation paths matched the reviewed integration tree before merging. +Two history-reconciliation merges retain that exact tree and make all three source heads ancestors; +the older shared scaffolding and lock files do not replace subsequent tested fixes. +The old branches and their uncommitted shared inputs remain preserved. New fixes and validation +notes belong on the new branch. Push, PR merge, tags, remote Actions and publication remain +unauthorized. The overnight cutoff and its no-merge rule are historical, superseded only for +the explicitly requested local consolidation. Evidence lives in `.shou-dev/reports/day-native/`. + +## Historical overnight ownership + +Base HEAD for all worktrees: `b97b565678cbcdc8f602b57973d0837d3ac556a2`. +Local phase commits on the three named feature branches are authorized (reports/night/local-commit-authorization.json). Use existing identity/signing/hooks, Angular messages via -F, and validated stage content. Push, PR, merge, cherry-pick, rebase, reset, clean, tag, amend, Actions dispatch and release remain unauthorized. + +| Owner | Exclusive writes | +|---|---| +| main | solutions, all csproj/global.json/locks; shared interfaces/DTO; non-Java Core; Program/Bootstrap; generators; build/CI/package scripts; migration docs and PROGRESS.json | +| ui_worker | Desktop/Views, ViewModels, Themes, Assets, App.axaml and App.axaml.cs; Desktop.Tests test content | +| platform_worker | Desktop/Platform (Windows, MacOS, required shared implementation); Core/Java; Core.Tests/Platform and Java test content | + +Workers write only their absolute worktree. No recursive agents. All three use configured gpt-6.1-sol/max. +Before a handoff, freeze changed files and produce an exact patch (including new files) against received B0/Bn, SHA-256 manifest and structured handoff under the role's reports directory. Main reviews and applies sequentially; never copy a whole directory over another owner. +Every heavy operation uses `.shou-dev/control/dev.py`, one machine-wide lock, independent job artifacts. No credentials in argv, reports or generated source dumps. No HOME/CODEX_HOME/system changes. +Main seeded App for B0 compilation; ownership transfers to UI after B0 distribution. Core API additions are requested from main. + + +B8 scope: main writes JavaTrustContracts/shared settings and manifest DTOs, dependency pins/locks, LauncherService.JavaTrust/automatic-selection orchestration, CLI and reports. UI owns Settings scan/copy display and protocol Headless tests. Platform owns the migrated trust policy/JKS/PKCS12 engine, independent runtime trees/provenance, discovery pre-execution checks and real-copy/keytool tests. Shared DTO/csproj/lock changes supplied by main stay outside worker commits and own-only patches, with dirty prerequisite hashes recorded. Original tool/B5 JDKs are read-only; only fresh derived copies may be repaired. Native Windows/GUI/external-account acceptance stays separate from fixtures and cross-publish. + +Final N5 candidate source is clean integration commit `573ce8e74b9abf429aa6b882b055ebc16c123832`; UI own HEAD is `8e5fc6f87d2110a372d3baf0885098b28c3135a2`, platform own HEAD is `de6ebe869e7fd1b3fb786bb3268ee65901b17068`. B8/B8.1/B9 and the late credential own-only increments were reviewed and sequentially applied; shared prerequisite dirty files remain explicitly excluded from worker commits. Main personally owns the account persistence/rotated-session fix; platform owns the process-local native Keychain guard and its three new native tests. Final role handoffs live under `reports/night/handoffs//FINAL-handoff.json`; main owns the final delivery index, precise source patches and truthful incomplete-gate report. Documentation-only commits after the frozen source do not change the candidates' BUILD-INFO provenance. diff --git a/PCL.Core.SourceGenerators/ClientBuildInputs.cs b/PCL.Core.SourceGenerators/ClientBuildInputs.cs new file mode 100644 index 00000000..44a19a30 --- /dev/null +++ b/PCL.Core.SourceGenerators/ClientBuildInputs.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; + +namespace SHOU.Build.Generation; + +// Shared by both hosts: presence of the switch enables only these three distributable inputs. +internal static class ClientBuildInputs +{ + internal static Dictionary Capture() + { + var result = new Dictionary(StringComparer.Ordinal); +#pragma warning disable RS1035 + var environment = Environment.GetEnvironmentVariables(); +#pragma warning restore RS1035 + if (!environment.Contains("PCL_WRITE_SECRET")) return result; + foreach (var name in new[] { "MS_CLIENT_ID", "CURSEFORGE_API_KEY", "GITHUB_SHA" }) + { + var value = environment["PCL_" + name]?.ToString(); + if (!string.IsNullOrWhiteSpace(value)) result.Add(name, value!); + } + return result; + } + internal static string Literal(string value) => "@\"" + value.Replace("\"", "\"\"") + "\""; +} diff --git a/PCL.Core.SourceGenerators/EnvironmentInteropGenerator.cs b/PCL.Core.SourceGenerators/EnvironmentInteropGenerator.cs index eaf6befa..322ce24b 100644 --- a/PCL.Core.SourceGenerators/EnvironmentInteropGenerator.cs +++ b/PCL.Core.SourceGenerators/EnvironmentInteropGenerator.cs @@ -19,18 +19,9 @@ public void Initialize(IncrementalGeneratorInitializationContext context) // These three values are deliberately distributed with the client. // Never capture unrelated service tokens or private keys from the build environment. #pragma warning disable RS1035 - var envs = Environment.GetEnvironmentVariables(); + var approved = SHOU.Build.Generation.ClientBuildInputs.Capture(); #pragma warning restore RS1035 - var secretPairs = envs.Contains("PCL_WRITE_SECRET") ? ( - from key in ( - from key in envs.Keys.Cast() - where key is "PCL_MS_CLIENT_ID" or "PCL_CURSEFORGE_API_KEY" or "PCL_GITHUB_SHA" - select key - ) - let value = envs[key]?.ToString() - where !string.IsNullOrWhiteSpace(value) - select (key.Substring(4), value) - ) : []; + var secretPairs = approved.Select(pair => (pair.Key, pair.Value)); return secretPairs; }); diff --git a/PCL.Core.Test/Conduit/Aria2RpcClientTest.cs b/PCL.Core.Test/Conduit/Aria2RpcClientTest.cs index 857743cd..927b0775 100644 --- a/PCL.Core.Test/Conduit/Aria2RpcClientTest.cs +++ b/PCL.Core.Test/Conduit/Aria2RpcClientTest.cs @@ -79,17 +79,22 @@ public async Task CancellationPausesOnlyOwnedTask() var path = Path.Combine(Path.GetTempPath(), Guid.NewGuid() + ".part"); using var cancellation = new CancellationTokenSource(); var polls = 0; + var paused = false; using var handler = new Handler(body => (string?)body["method"] switch { "aria2.tellStatus" when polls++ == 0 => Missing(), - "aria2.tellStatus" => Result(new JsonObject { ["status"] = "active" }), + "aria2.tellStatus" => Result(new JsonObject { ["status"] = paused ? "paused" : "active", ["connections"] = "0" }), + "aria2.pause" => Pause(), _ => Result(JsonValue.Create("OK")!) }); + JsonObject Pause() { paused = true; return Result(JsonValue.Create("OK")!); } using var http = new HttpClient(handler); var rpc = new Aria2RpcClient(http, new Uri("http://127.0.0.1:6800/jsonrpc"), ""); await Assert.ThrowsExactlyAsync(() => rpc.DownloadAsync(["https://test/a"], path, "", _ => cancellation.Cancel(), cancellation.Token)); - Assert.AreEqual("aria2.forcePause", (string)handler.Requests[^1]["method"]!); - Assert.AreEqual(Aria2RpcClient.TaskId(path), (string)handler.Requests[^1]["params"]![0]!); + CollectionAssert.AreEqual(new[] { "aria2.tellStatus", "aria2.addUri", "aria2.tellStatus", "aria2.pause", "aria2.tellStatus", "aria2.tellStatus" }, + handler.Requests.ConvertAll(r => (string)r["method"]!).ToArray()); + foreach (var request in handler.Requests.FindAll(r => (string?)r["method"] != "aria2.addUri")) + Assert.AreEqual(Aria2RpcClient.TaskId(path), (string)request["params"]![0]!); } [TestMethod] @@ -98,15 +103,28 @@ public async Task ExistingPausedJobIsReattachedWithoutCreatingDuplicate() var path = Path.GetTempFileName(); try { - var polls = 0; - using var handler = new Handler(body => (string?)body["method"] == "aria2.tellStatus" - ? Result(new JsonObject { ["status"] = polls++ == 0 ? "paused" : "complete", ["files"] = new JsonArray(new JsonObject { ["path"] = path }) }) - : Result(JsonValue.Create("OK")!)); + var removed = false; + var added = false; + using var handler = new Handler(body => (string?)body["method"] switch + { + "aria2.tellStatus" => Result(new JsonObject { ["status"] = added ? "complete" : removed ? "removed" : "paused", ["files"] = new JsonArray(new JsonObject { ["path"] = path }) }), + "aria2.remove" => Remove(), + "aria2.addUri" => Add(), + "aria2.removeDownloadResult" => Result(JsonValue.Create("OK")!), + _ => throw new InvalidOperationException("Unexpected reattachment RPC.") + }); + JsonObject Remove() { removed = true; return Result(JsonValue.Create("OK")!); } + JsonObject Add() { added = true; return Result(JsonValue.Create(Aria2RpcClient.TaskId(path))!); } using var http = new HttpClient(handler); var rpc = new Aria2RpcClient(http, new Uri("http://127.0.0.1:6800/jsonrpc"), ""); await rpc.DownloadAsync(["https://test/a"], path, "", null); - Assert.AreEqual(3, handler.Requests.Count); - Assert.AreEqual("aria2.unpause", (string)handler.Requests[1]["method"]!); + CollectionAssert.AreEqual(new[] { "aria2.tellStatus", "aria2.remove", "aria2.tellStatus", "aria2.removeDownloadResult", "aria2.addUri", "aria2.tellStatus" }, + handler.Requests.ConvertAll(r => (string)r["method"]!).ToArray()); + var options = handler.Requests[4]["params"]![1]!; + Assert.AreEqual(Aria2RpcClient.TaskId(path), (string)options["gid"]!); + Assert.AreEqual(Path.GetDirectoryName(path), (string)options["dir"]!); + Assert.AreEqual(Path.GetFileName(path), (string)options["out"]!); + Assert.AreEqual("true", (string)options["continue"]!); } finally { File.Delete(path); } } diff --git a/PCL.Core.Test/PCL.Core.Test.csproj b/PCL.Core.Test/PCL.Core.Test.csproj index ce6b74c7..9b76501e 100644 --- a/PCL.Core.Test/PCL.Core.Test.csproj +++ b/PCL.Core.Test/PCL.Core.Test.csproj @@ -20,7 +20,7 @@ true full false - bin\ + bin\ $(Platform) diff --git a/PCL.Core/Conduit/Aria2RpcClient.cs b/PCL.Core/Conduit/Aria2RpcClient.cs index 0c953d24..d0a782f7 100644 --- a/PCL.Core/Conduit/Aria2RpcClient.cs +++ b/PCL.Core/Conduit/Aria2RpcClient.cs @@ -44,7 +44,7 @@ public async Task CallAsync(string method, object[] arguments, Cancell var result = JsonNode.Parse(await response.Content.ReadAsStringAsync(timeout.Token).ConfigureAwait(false)) ?? throw new IOException("aria2 RPC 未返回 JSON。"); if ((string?)result["id"] != id || (string?)result["jsonrpc"] != "2.0") throw new IOException("aria2 RPC 响应 ID 或协议版本无效。"); - if (result["error"] is { } error) throw new Aria2RpcException((int?)error["code"] ?? -1); + if (result["error"] is { } error) { var failure = new Aria2RpcException((int?)error["code"] ?? -1); failure.Data["method"] = method; throw failure; } response.EnsureSuccessStatusCode(); return result["result"]?.DeepClone() ?? throw new IOException("aria2 RPC 未返回结果。"); } @@ -52,14 +52,22 @@ public async Task CallAsync(string method, object[] arguments, Cancell public async Task GetVersionAsync(CancellationToken cancellationToken = default) => (string?)(await CallAsync("getVersion", [], cancellationToken).ConfigureAwait(false))["version"] ?? "未知版本"; - public static string TaskId(string path) => Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(Path.GetFullPath(path).ToUpperInvariant())))[..16].ToLowerInvariant(); + public static string TaskId(string path) + { + var identity = Path.GetFullPath(path); + // Keep Windows GIDs compatible; Unix case-sensitive paths must remain distinct. + if (OperatingSystem.IsWindows()) identity = identity.ToUpperInvariant(); + return Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(identity)))[..16].ToLowerInvariant(); + } public async Task DownloadAsync(IReadOnlyList urls, string partialPath, string userAgent, - Action? progress, CancellationToken cancellationToken = default) + Action? progress, CancellationToken cancellationToken = default, int connections = 1, IReadOnlyDictionary? requestOptions = null) { if (urls.Count == 0) throw new ArgumentException("未提供 aria2 下载地址。"); var fullPath = Path.GetFullPath(partialPath); var gid = TaskId(fullPath); + if (requestOptions?.Keys.Any(k => k is not ("all-proxy" or "all-proxy-user" or "all-proxy-passwd" or "no-proxy")) == true) throw new ArgumentException("Unsupported aria2 transport option."); + var slots = Math.Clamp(connections, 1, 16).ToString(CultureInfo.InvariantCulture); var attached = false; try { @@ -69,7 +77,7 @@ public async Task DownloadAsync(IReadOnlyList urls, string partialPath, if (existing != null) { var actual = (string?)existing["files"]?[0]?["path"]; - if (actual == null || !string.Equals(Path.GetFullPath(actual), fullPath, StringComparison.OrdinalIgnoreCase)) + if (actual == null || !string.Equals(Path.GetFullPath(actual), fullPath, OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal)) throw new IOException("aria2 任务的输出路径不匹配,拒绝接管。"); attached = true; var status = (string?)existing["status"]; @@ -78,8 +86,29 @@ public async Task DownloadAsync(IReadOnlyList urls, string partialPath, await CallAsync("removeDownloadResult", [gid], cancellationToken).ConfigureAwait(false); existing = null; } - else if (status == "paused") - await CallAsync("unpause", [gid], cancellationToken).ConfigureAwait(false); + else if (status != "complete") + { + // Re-register only this owned GID from its preserved .aria2 sidecar. + // Direct unpause can abort aria2 1.37.0 in Piece::initWrCache; + // a fresh request group also safely refreshes expiring relay URIs. + if (status != "paused") await PauseOwnedAsync(gid, cancellationToken).ConfigureAwait(false); + await CallAsync("remove", [gid], cancellationToken).ConfigureAwait(false); + using var cleanup = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); + cleanup.CancelAfter(TimeSpan.FromSeconds(5)); + while (true) + { + JsonNode removed; + try { removed = await CallAsync("tellStatus", [gid], cleanup.Token).ConfigureAwait(false); } + catch (Aria2RpcException ex) when (ex.Code == 1) { break; } // A paused waiting job is removed immediately. + if ((string?)removed["status"] == "removed") + { + await CallAsync("removeDownloadResult", [gid], cancellationToken).ConfigureAwait(false); + break; + } + await Task.Delay(100, cleanup.Token).ConfigureAwait(false); + } + existing = null; + } } if (existing == null) { @@ -87,9 +116,10 @@ public async Task DownloadAsync(IReadOnlyList urls, string partialPath, { ["gid"] = gid, ["dir"] = Path.GetDirectoryName(fullPath)!, ["out"] = Path.GetFileName(fullPath), ["continue"] = "true", ["auto-file-renaming"] = "false", ["allow-overwrite"] = "true", - ["file-allocation"] = "none", ["uri-selector"] = "inorder", ["split"] = "1", - ["max-connection-per-server"] = "1", ["max-tries"] = "1", ["connect-timeout"] = "15", ["timeout"] = "30" + ["file-allocation"] = "none", ["uri-selector"] = "inorder", ["split"] = slots, ["min-split-size"] = "1M", + ["max-connection-per-server"] = slots, ["max-tries"] = "2", ["connect-timeout"] = "15", ["timeout"] = "30" }; + if (requestOptions is not null) foreach (var option in requestOptions) options[option.Key] = option.Value; if (!string.IsNullOrWhiteSpace(userAgent)) options["user-agent"] = userAgent; attached = true; await CallAsync("addUri", [urls.ToArray(), options], cancellationToken).ConfigureAwait(false); @@ -118,11 +148,38 @@ public async Task DownloadAsync(IReadOnlyList urls, string partialPath, if (attached) { using var pauseTimeout = new CancellationTokenSource(TimeSpan.FromSeconds(5)); - try { await CallAsync("forcePause", [gid], pauseTimeout.Token).ConfigureAwait(false); } + try { await PauseOwnedAsync(gid, pauseTimeout.Token).ConfigureAwait(false); } catch (Exception) { /* RPC may be unavailable; leave the job and its files available for reconnect. */ } } throw; } + catch + { + if (attached) + { + using var pauseTimeout = new CancellationTokenSource(TimeSpan.FromSeconds(5)); + try { await PauseOwnedAsync(gid, pauseTimeout.Token).ConfigureAwait(false); } + catch (Exception) { /* Leave only this owned GID available for reconnect. */ } + } + throw; + } + } + + private async Task PauseOwnedAsync(string gid, CancellationToken ct) + { + await CallAsync("pause", [gid], ct).ConfigureAwait(false); + // A paused status can precede disk-cache/connection cleanup. Wait for a + // stable idle observation before allowing immediate reattachment. + var idle = false; + while (true) + { + await Task.Delay(100, ct).ConfigureAwait(false); + var state = await CallAsync("tellStatus", [gid], ct).ConfigureAwait(false); + if ((string?)state["status"] is "complete" or "error" or "removed") return; + var stopped = (string?)state["status"] == "paused" && (string?)state["connections"] == "0"; + if (stopped && idle) return; + idle = stopped; + } } public async Task ForgetCompletedAsync(string partialPath, CancellationToken cancellationToken = default) diff --git a/PCL.Core/Conduit/ClubRelease.cs b/PCL.Core/Conduit/ClubRelease.cs index 2ac1d92a..f4ac414b 100644 --- a/PCL.Core/Conduit/ClubRelease.cs +++ b/PCL.Core/Conduit/ClubRelease.cs @@ -7,8 +7,8 @@ namespace PCL.Core.Conduit; public sealed record ClubRelease(string Tag, string Title, string Notes, string PageUrl) { - public const string CurrentVersion = "1.5.0"; - public const string CurrentCodename = "wyc"; + public const string CurrentVersion = "1.6.2"; + public const string CurrentCodename = "xb"; public const string CurrentTag = "v" + CurrentVersion; public bool IsNewerThan(string currentTag) diff --git a/PCL.Core/PCL.Core.csproj b/PCL.Core/PCL.Core.csproj index 500ececa..33c23b25 100644 --- a/PCL.Core/PCL.Core.csproj +++ b/PCL.Core/PCL.Core.csproj @@ -7,8 +7,8 @@ PCL Community PCL.Core Copyright © PCL Community - 1.5.0.0 - 1.5.0.0 + 1.6.2.0 + 1.6.2.0 Debug @@ -25,7 +25,7 @@ enable prompt 4 - bin\$(Configuration)-$(Platform)\ + bin\$(Configuration)-$(Platform)\ $(Platform) $(NoWarn);CS9113 diff --git a/Plain Craft Launcher 2/Plain Craft Launcher 2.csproj b/Plain Craft Launcher 2/Plain Craft Launcher 2.csproj index 6da6ed28..95af3c27 100644 --- a/Plain Craft Launcher 2/Plain Craft Launcher 2.csproj +++ b/Plain Craft Launcher 2/Plain Craft Launcher 2.csproj @@ -28,8 +28,8 @@ Minecraft 启动器 (作者: 龙腾猫跃; 经社区二次开发版本) Plain Craft Launcher Community Edition Copyright © 龙腾猫跃 2016. All Rights Reserved. - 1.5.0.0 - 1.5.0.0 + 1.6.2.0 + 1.6.2.0 41999;42016;42017;42018;42019;42020;42021;42022;42032;42036;42314; VSTHRD002;VSTHRD003;VSTHRD110;VSTHRD200 @@ -38,28 +38,28 @@ false - bin\Debug\ + bin\Debug\ true full false TRACE;DEBUG - bin\CI\ + bin\CI\ true full false TRACE;DEBUGCI - bin\Release\ + bin\Release\ false none true RELEASE - bin\Beta\ + bin\Beta\ false none true diff --git a/Plain Craft Launcher 2/metadata.json b/Plain Craft Launcher 2/metadata.json index 8e45f48e..8d67c3de 100644 --- a/Plain Craft Launcher 2/metadata.json +++ b/Plain Craft Launcher 2/metadata.json @@ -1,7 +1,8 @@ { "name": "潮涌核心社启动器", + "codename": "xb", "version": { - "base": "1.5.0", + "base": "1.6.2", "upstream": "2.12.1", "suffix": "", "code": 529 diff --git a/README.md b/README.md index e3d0e75f..435062a8 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ 从 [Releases](https://github.com/Conduit-Club/SHOU-Launcher/releases/latest) 下载 Windows x64 启动器包,解压后运行,添加账户并选择游戏实例即可开始。运行启动器无需另装 .NET,启动 Minecraft 仍需 Java。 -当前开发目标为 [v1.5.0 · wyc](docs/conduit/RELEASE-v1.5.0.md),正式发行以社团 Releases 为准。`main` 为稳定分支,`dev` 为开发分支;历史迁移与来源见 [历史说明](docs/conduit/HISTORY.md)。版本变化与已知限制见对应发行说明;源码构建请参阅[构建文档](docs/conduit/BUILD.md)。社团 QQ 群:**756155087**。 +当前开发目标为双端 [v1.6.2 · xb](docs/conduit/RELEASE-v1.6.2.md),延续双端预发布验证;稳定发行仍以社团 Releases 为准。`main` 为稳定分支,`dev` 为开发分支;历史迁移与来源见 [历史说明](docs/conduit/HISTORY.md)。版本变化与已知限制见对应发行说明;源码构建请参阅[构建文档](docs/conduit/BUILD.md)。社团 QQ 群:**756155087**。 ## 社团实景 diff --git a/SHOU.CrossPlatform.slnx b/SHOU.CrossPlatform.slnx new file mode 100644 index 00000000..4f5476e3 --- /dev/null +++ b/SHOU.CrossPlatform.slnx @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/docs/conduit/BUILD.md b/docs/conduit/BUILD.md index c14dc7fb..f1437431 100644 --- a/docs/conduit/BUILD.md +++ b/docs/conduit/BUILD.md @@ -1,53 +1,48 @@ # Conduit-Club 构建 -本项目是 Conduit-Club 基于 PCL-CE 独立维护的第三方社团 Minecraft 启动器。当前已加入第一阶段社团定制,详见 CUSTOMIZATION.md;微软登录配置见 MICROSOFT-LOGIN.md。 +当前发行入口是共享 Avalonia Desktop:Windows x64、Windows ARM64 和 Apple Silicon macOS。旧 WPF 工程与构建脚本保留作回归和历史参考,不再供新版 Release 取包。开发基线为 `dev`,稳定分支为 `main`;当前目标为 **1.6.2 / xb**。 -## 上游 +## Desktop 本地构建 -- 自 2026-10-20 起独立维护,不再自动同步原上游;默认分支为 `main`,开发与候选发行分支为 `dev`,通过 `dev → main` PR 审查。 -- 最后纳入的 PCL-CE 基线:`f00b458e7bcf1368ea4e00148cf5db09bd1f5133`(2026-10-15),此次同步新增 9 个提交;旧发布工作流的两处删除冲突已按社团独立发行策略处理。历史迁移见 [HISTORY.md](HISTORY.md)。 -- 直接 PCL-CE 基线版本:`2.15.1`;当前版本目标为 `v1.5.0`(wyc),已发布包以社团 Releases 页面显示的版本为准。`v1.0.0`(zst)首发说明保留作历史记录。正式发行标签使用 `v` 前缀,同时兼容读取旧 `conduit-v` 标签,不冒充 CE 官方发行版。 - -## 环境 - -本机 .NET SDK 10.0.401 / Windows Desktop Runtime 10.0.12 位于 `D:\Programs_Dev\dotnet`。 -SDK 通过微软官方 `https://dot.net/v1/dotnet-install.ps1` 安装,使用 `-Channel 10.0 -Quality GA -Architecture x64 -InstallDir D:\Programs_Dev\dotnet`。 -用户 PATH 和 DOTNET_ROOT 指向该目录;更改后请新开终端。NuGet 缓存位于 `D:\DevCache\nuget`。 +使用仓库锁定的 .NET SDK 10.0.403、PowerShell 7 和 Python 3;Java 21 用于不启动游戏的加载器/协议回归。任务工具和依赖缓存放入 `.shou-dev`,使用 [任务入口](../../scripts/dev/Invoke-Dev.ps1) 和现有工具注册。 ```powershell -./scripts/conduit/Publish.ps1 -Dotnet D:\Programs_Dev\dotnet\dotnet.exe -./scripts/conduit/Publish.ps1 -Configuration Release -Dotnet D:\Programs_Dev\dotnet\dotnet.exe -OutputRoot artifacts/conduit-release -dotnet test PCL.Core.Test/PCL.Core.Test.csproj -c Beta -p:Platform=x64 +./scripts/dev/Invoke-Dev.ps1 -TaskRoot <已注册任务目录> -RunId desktop-tests -Action Test -EntryProject tests/SHOU.Launcher.Desktop.Tests/SHOU.Launcher.Desktop.Tests.csproj -RuntimeIdentifier win-x64 -Configuration Release +./scripts/dev/Invoke-Dev.ps1 -TaskRoot <已注册任务目录> -RunId candidate -Action Publish -RuntimeIdentifier win-x64 -Configuration Release ``` -脚本默认构建 Windows x64、Beta、自包含单文件程序;正式首发可传入 `-Configuration Release`,输出到 `artifacts/conduit`(或显式指定的新目录),ZIP 内含 EXE、许可文件及构建信息。无需额外安装 .NET 运行时,不是 MSI/Setup 安装向导。可通过 `-OutputRoot artifacts/conduit-club1` 指定新输出目录;保留旧目录可避免混入旧文件。可使用 `-Architecture ARM64` 交叉编译,但不能替代 ARM64 真机验证。 +macOS 将 RID 改为 `osx-arm64`;Windows ARM64 使用 `win-arm64`。`Invoke-Dev.ps1` 通过任务门禁执行 `Validate-Desktop.ps1` / `Publish-Desktop.ps1`,保存构建记录、TRX 和包旁元数据;`Initialize-CI.ps1` 仅用于临时 GitHub runner,不能在本机运行或替换现有控制器。已有本机工具注册和空间策略应继续复用,不能因打包绕过空间门禁。 + +Windows ZIP 只含一个自包含 `SHOU.Launcher.Desktop.exe`,无需用户复制散落 DLL 或安装 .NET。macOS ZIP 含签名的 `SHOU Launcher.app` 和固定凭据组件。普通候选名带源码短 SHA;每包旁置 SHA-256 与 `BUILD-INFO.json`,记录完整源码、版本、代号、SDK、RID、配置、凭据注入布尔结果和 Windows 内嵌负载信息。ARM64 交叉编译不代替 ARM64 真机验收。 -## 发布 +## 凭据与 Mac 签名 -### 本地配置与 GitHub Secrets +复制 `.env.example` 为根目录 `.env`,填写公开的 Microsoft Client ID 与项目获准的 CurseForge API Key;也可用进程环境,后者优先。`Publish-Desktop.ps1 -EnvFile <路径>` 明确指定本机文件。解析器只读取受支持键,不执行命令、插值或表达式,保留 Key 中的 `$`;不注入 Client Secret、GitHub Token 或服务私钥。`.env` 不提交、不上传为产物,也不自动同步云端。 -复制 `.env.example` 为仓库根目录 `.env`,填写 `PCL_MS_CLIENT_ID=应用程序GUID`。`.env` 及其变体被 Git 忽略,不能放入提交或上传为 artifact。`Publish.ps1` 自动读取它,进程环境优先;不执行文件内的命令、变量插值或表达式。值支持不加引号或使用一对单/双引号,CurseForge Key 中的 `$` 按原样保留。 +Actions 的仓库 Secrets 使用 `CLIENT_ID`、`CURSEFORGE_API_KEY`、`MACOS_SIGNING_CERTIFICATE_BASE64` 和 `MACOS_SIGNING_PASSWORD`。PR(包括同仓 PR)不注入秘密或固定签名,仍运行双端编译/测试,Mac 使用显式临时签名。受信 push / 手动 / 标签构建注入客户端配置;Mac 临时导入固定证书,检查稳定凭据组件和真实包跨更新回读,最后清理 CI 钥匙串。证书和 P12 不进入 artifact。 -当前构建入口和源码生成器只允许注入公开的 Microsoft Client ID、项目获准的 CurseForge API Key 和源码 SHA。脚本会临时隔离其他 `PCL_*` 环境变量并在退出时还原;不要填写 Client Secret、GitHub Token 或服务器私钥。每次构建会 clean 并关闭共享编译,防止环境配置变化后沿用旧生成代码。编译后通过 `Assert-ClientCredentials.ps1` 核对已配置的三项值确实进入 `PCL.Core.dll`,日志和构建信息只显示布尔结果。 +项目 Key 会随客户端分发,GitHub Secrets 保护构建输入,不能使客户端内的 Key 保密。详细边界见 [凭据构建说明](CLIENT-CREDENTIALS-20261031.md)。Mac 固定证书、冻结组件与首次旧项授权见 [Mac 签名说明](MACOS-SIGNING.md)。当前没有 Apple Developer ID 公证或 Windows Authenticode;完整性哈希不等于平台认证。 -GitHub Actions 使用仓库 Secret `CLIENT_ID` 映射为 `PCL_MS_CLIENT_ID`;可选的 `CURSEFORGE_API_KEY` 映射为 `PCL_CURSEFORGE_API_KEY`,也可在本地 `.env` 中填写同名变量。社团工作流在面向 `main` / `dev` 的 PR、这两个分支的 push 和手动运行时构建,分开运行社团回归与全量测试;全量测试失败仍保留失败状态和 TRX 报告。Fork PR 无法读取仓库 Secrets,仍可执行无 Client ID 编译。 +## CI 与发行 -本地还兼容 `CURSEFORGE_API_KEY`、`CURSEFORGE_API` 两个别名;同一来源中,`PCL_CURSEFORGE_API_KEY` 优先,其次依上述顺序取值。2026-10-30 已使用本机 `.env` 的真实 Key 验证官方 API;2026-10-31 按维护者最新决定,将其手动配置为仓库级 `CURSEFORGE_API_KEY` Secret,用于客户端构建注入。本地 `.env` 不会自行同步到 GitHub。构建配置解析回归使用 `./scripts/conduit/Test-BuildEnvironment.ps1`,不输出 Key。 +- `Shared Desktop migration`:面向 dev/main 的 PR、dev/main 及保留的移植分支 push 都构建双端;受信构建启用固定 Mac 签名。执行 Core、Headless、发行策略/收集回归,产出三个 RID;Windows 同时检查单 EXE 与内嵌负载。 +- `Legacy WPF regression`:保留旧工程验证包,不参与新版 Release 资产选择。 +- `Conduit Desktop Release Draft`:版本标签 push,或手动选择已有标签;复用同一 Desktop 构建工作流,只有两个宿主的编译、测试、签名与打包全部通过才收集资产。 -此方案会将项目 Key 带入分发的客户端,可从程序中提取。GitHub Secrets 保护源码仓库及构建输入,不提供客户端运行时保密;这一选择及各工作流的核对方式见 [凭据构建说明](CLIENT-CREDENTIALS-20261031.md)。 +稳定包必须 `Release`、精确 `v<三段版本>` 标签指向所构建源码,且源码属于 `origin/main`。打包脚本的预发布显式使用 `-Prerelease`,允许同版本的完整标签、`v1.6`(仅源码补丁号为 0)或带后缀标签,不要求提前合并 main。标签工作流根据源码是否已进入 `origin/main` 决定默认通道:main 之外的源码默认为预发布,短标签、后缀或手动指定也标为预发布;正式版仍需完整版本标签且源码属于 main。历史 `v1.6` 对应 1.6.0 / xb;当前目标 `v1.6.2` 对应 1.6.2 / xb,继续从移植功能分支预发布,不设为 Latest 或提前合并 PR。 -2026-10-03 已配置并审核通过 `CLIENT_ID`。CurseForge 项目 Key 已于 2026-10-31 配置;Natayark、联机、遥测等服务未配置凭据,也未复制上游凭据。原 CE GPG / MirrorChyan 发行工作流在社团仓库保持禁用。微软应用注入已验证,真实账户授权与 Minecraft 服务联调仍需单独确认。 +`Collect-ReleaseAssets.ps1` 只从 Actions 产物的 `dist` 收集包,拒绝测试夹具、缺平台、混合源码/配置、散落 DLL、错误 PE 架构、损坏哈希、变化的固定凭据组件或不一致的 Mac 构建信息。全部验证后,公开上传目录仅保留三个平台 ZIP;构建/签名信息、`.sha256`、`SHA256SUMS.txt` 与 `RELEASE-MANIFEST.json` 移入 `evidence/`,单独存为 Actions 的 `Desktop-Release-Evidence--` 验证产物,不附加到 GitHub Release。公开文件通过 GitHub 自带的 SHA-256 摘要核对;内部来源与完整性检查继续执行。发行说明只描述功能、下载和用户需要知道的兼容事项,分支/PR、源码/SDK、测试编号和过程留在维护报告。先创建**草稿**,不覆盖已有发行、不自动公开;维护者核对资产后再将预发布公开,正式发行仍遵循 dev → main 审查流程。 -`Conduit Build` 工作流可在 GitHub Actions 手动运行,会上传 x64 构建产物,不使用上游密钥或镜像服务。当前版本目标为 v1.5.0(wyc),正式包、历史 v1.0.0 包和对应说明均以社团 Releases 页面为准;发行包使用 ZIP 旁的 SHA-256 文件校验,不把 PR 或开发构建链接当作已发布包。 +工作流进入分支的代码不代表分支已推送或被验证。首次运行结果和未完成原生验收见 [R55](MACOS-R55.md)、[v1.6.0 说明](RELEASE-v1.6.0.md) 与 [todo](../../todo.md)。不启动 Minecraft 的编译、Headless、凭据专项不代替完整游戏/真机矩阵。 -原 CE Release 与 MirrorChyan 工作流仅允许在 `PCL-Community/PCL-CE` 仓库运行,避免重写社团发行说明或调用上游服务;独立维护后继续保留此隔离。 +## 旧 WPF 构建(历史参考) -## 当前限制 +```powershell +./scripts/conduit/Publish.ps1 -Configuration Release -Dotnet -OutputRoot artifacts/legacy-verification +dotnet test PCL.Core.Test/PCL.Core.Test.csproj -c Beta -p:Platform=x64 +``` -- 微软公共 Client ID 和获准的 CurseForge 项目 Key 可由上述构建入口注入;缺少 Key 的构建仍需依赖可用的镜像回退。联机不再依赖 Natayark 凭据;仍需真实两端验证。 -- 社团 UI、服务器入口和更新源已完成首轮接入;更新页手动追踪社团 GitHub Releases。 -- 未使用上游 GPG 私钥,也未做 Authenticode 签名;SHA-256 仅用于核对文件完整性。 -- 编译和单元测试不能替代登录、下载、安装游戏、启动 Minecraft 的端到端验证。 +旧脚本继续保留原元数据、凭据注入校验和 main 正式标签策略。原 PCL-CE 来源和迁移历史仅见 [HISTORY.md](HISTORY.md),不再跟踪或同步其上游。 ## 首次本机验证(v1.0.0,2026-10-02 历史记录) diff --git a/docs/conduit/CI-PR15-20261113.md b/docs/conduit/CI-PR15-20261113.md new file mode 100644 index 00000000..548a8ff7 --- /dev/null +++ b/docs/conduit/CI-PR15-20261113.md @@ -0,0 +1,27 @@ +# PR #15:CI 环境与测试隔离修复 + +本轮仅修复审阅分支的 CI,不调整产品版本,不合并、发行或启动 Minecraft。 + +## 失败原因与改动 + +- `setup-java@v5` 的完整构建版本匹配会比较 build metadata;`21.0.13+9` 与供应方返回的 `21.0.13+9.0.LTS` 不相等。固定为已返回的完整版本,保留 Temurin、Java 21 和原生架构检查。依据为 [setup-java 的匹配实现](https://github.com/actions/setup-java/blob/v5/src/util.ts) 及原失败作业。 +- 可移植 Core 服务夹具在构造工厂时提前选择生产原生凭据,Linux 尚无适配器,导致大量业务断言没有执行。保留原有双参数生产入口,新增显式 `ICredentialStore` 注入重载;57 处 Core 和 3 处 Headless 服务夹具通过 `tests/Shared/TestPlatformServices.cs` 使用各自独立的内存存储,不访问当前用户 DPAPI/Keychain。原生适配器和真实旧账户测试保留原入口。 +- 新回归核对显式存储组合、字节隔离及不生成原生凭据文件;Linux 默认生产入口仍须抛出 `PlatformNotSupportedException`,没有新增 Linux 产品发行或明文凭据回退。 +- Headless 页面初始化还会读取内存信息;共享夹具显式提供总量 16 GiB / 可用 8 GiB 的固定测试快照,避免进一步调用不支持 Linux 的 `NativeMemoryInfo`。生产内存适配器未变,既有测试需要其它内存情景时仍可显式覆盖。 +- 首页隐藏偏好持久化测试显式选择直连,避免把默认系统代理带入不支持该能力的 Linux 平台;仍核对无错误、草稿清除、文件内容与重新加载后的隐藏状态,并让失败断言展示实际反馈。不假报平台支持系统代理或放宽产品保存校验。 +- Conduit Build 另有两项旧 aria2 RPC 夹具仍期待 `forcePause` / 直接 `unpause`。按现有生产实现补齐暂停后连续 idle 状态、移除旧请求组再以同 GID/路径及 `continue=true` 续传的响应与断言。未改 aria2 产品协议、未移除所有权校验或跳过失败用例;同一 RPC 回归文件也纳入共享 Core 测试。 +- Windows 英文 runner 的 Java 启动器将不能映射到系统 ANSI 代码页的中文源码路径变为 `??`。Java 夹具改用工作目录内的相对源码路径,stdout/stderr 明确为 UTF-8;通用 OS argv 的完整中文、引号、空值、换行和 shell 字面量断言使用同测试程序集的受控 .NET 子进程。Java 的管道、环境变量、超时、取消、脱离存活和关闭上下文仍用原生 Java 子进程验证,未改系统区域设置,也不将 OS argv 测试当作 Java 任意 Unicode 命令行兼容性保证。[Java 21 发布说明](https://www.oracle.com/java/technologies/javase/21-0-9-relnotes.html)记录了该 ANSI 转换边界。 + +## 本地验证 + +通过注册的 `control/dev.py` 与 `Invoke-Dev.ps1` 执行 Windows x64 / Release:构建 0 警告、0 错误;Core **905 通过、11 条件跳过、0 失败,共 916**,包含五项 aria2 RPC 回归及显式凭据注入检查。使用与 CI 相同的 Windows 类别筛选,未启用真实账户读写、在线 Java 安装或原生 aria2 条件门禁。 + +后续共享夹具修复通过 Headless **364/364**;相对 Java 源码、UTF-8 输出、受控 .NET argv、停止上下文、凭据注入和 RPC 的针对回归 **16/16**。两次构建均为 0 警告、0 错误。证据分别在 `pr15-ci-headless-r2`、`pr15-ci-process-r2` 的注册任务构建目录;没有为了测试调整宿主系统代码页。 + +显式测试内存补齐后,首页设置、实例展示及截图库三项原失败页面针对回归 **3/3**,构建仍为 0 警告、0 错误;证据在 `pr15-ci-memory-r3`。 + +首页夹具显式直连后的保存与重读回归 **1/1**,证据在 `pr15-ci-proxy-r4`。本节零警告指 C# 构建计数;Java bootstrap 的三条既有 source/target 8 工具链提示未屏蔽。 + +Linux 默认生产入口的专属断言在 Windows 条件跳过。首轮修复的 Linux runner 已通过 Core 873 项 / 6 条件跳过,随后 Headless 发现其余三处同类夹具依赖;补齐共享注入,未扩大平台排除或删除这三项测试。macOS/Windows Java 解析、三端桌面测试及打包最终结果以最终修复提交的 Actions 为准;原失败记录继续保留,不将本地 Windows 结果冒称为三端通过。 + +本地证据位于 `artifacts/windows-main-20261105/build/main/pr15-ci-core-r1/Desktop/Release/win-x64/default/reports`;这些产物不提交,不影响原用户进程、旧工作区改动或凭据数据。 diff --git a/docs/conduit/MACOS-MIGRATION.md b/docs/conduit/MACOS-MIGRATION.md new file mode 100644 index 00000000..c97a6075 --- /dev/null +++ b/docs/conduit/MACOS-MIGRATION.md @@ -0,0 +1,175 @@ +# Windows/macOS 共用 UI 迁移 + +状态:RUNNING,B1–B4 UI/平台增量已顺序整合,Core正式业务链与Host已接通。真实基线 `b97b565678cbcdc8f602b57973d0837d3ac556a2`;integration 分支 `features/macos-arm64`,B0本地提交为 `53d31370c47e76deee7cf1644b22b8e6a6e1d3b0`;后续源码与精确dirty检查点见总报告。 + +本轮使用同一 .NET 10.0.403 + Avalonia 12.1.5 Desktop;保留 WPF 默认入口。所有权见 ../../OWNERSHIP.md,接口见 ../../CONTRACTS.md。工具与重任务门禁由 `.shou-dev/control/dev.py` 提供。 + +预检已通过,但预检 fixture 不作为产品候选。当前原生 Windows/WPF/DPAPI 门禁 BLOCKED(无主机),远程 CI 未授权,真实账户/社团服与签名公证单列。不得把本地交叉编译当成 Windows 实窗通过。 + +当前动作:完成集成回归,从统一入口发布实际产品候选,然后验证原生窗口与隔离Minecraft。总进度、真实命令和交接见 `.shou-dev/reports/night/PROGRESS.json` 与 role handoffs。 + +## B0 检查点(2026-11-04) + +- 主agent已建立同一 Core/Desktop、生成器、共享 DTO、Program/Bootstrap 和统一构建脚本;API 以 CONTRACTS.md 为准。 +- Desktop Release/osx-arm64 编译:PASS,0警告0错误;Core真实测试:PASS,3/3,含metadata精确资源名、生成注册和无WPF程序集依赖。 +- 真实命令:`control/dev.py --worker main --job b0-build … -- pwsh -File scripts/dev/Validate-Desktop.ps1 -Action Build …`;报告:`.shou-dev/build/main/b0/Desktop/Release/osx-arm64/default/reports/`。Core测试报告在对应 `Tests/…/reports/tests.trx`。 +- B0仍是共享架构检查点,六页业务/平台/游戏链尚未接入,不能当成产品候选。UI、platform只读梳理均完成;之后按精确patch并行实现。 +- 权限为Full Access/never;指挥官现已允许三功能分支内的本地阶段提交,仍不推送、合并、改写历史或发行。初始基线保持审计SHA,当前HEAD与dirty内容另列;交接继续使用精确patch+hash,主agent顺序应用后独立提交。 + +当前下一步:完成metadata/download逻辑回归,接库/assets/LaunchPlan,顺序复测统一发布;UI/platform在独立工作树实现B1。测试失败及脚本修复见PROGRESS.json,未将失败标为通过。 + +## B1 接线(进行中) + +主agent已实现metadata/rules/继承/libraries/assets/校验下载/LaunchPlan、配置sidecar、认证协议与生产启动编排;Core集成实测46/46通过(0警告/错误)。平台B1的12个文件与UI B1的26个文件均已按冻结patch应用并逐文件hash核对。UI独立Headless18/18通过,集成复测进行中。账户/网络模块正由UI worker只读审查;平台worker已审查游戏Core,三项P1均已修并纳入46项回归。 + +平台完整工厂、runtime安装、Keychain与DPAPI尚在B2;真实窗口/游戏主菜单尚未验收,Windows默认入口为NOT_READY。所有数量按各次报告记录,未将worker与集成重叠测试累加。 + +## B2 实窗前门禁(进行中) + +平台B2已顺序整合(9文件hash匹配),含真实Keychain/DPAPI新store、官方runtime安装器和组合工厂;worker37/37通过。UI B2角色选择与取消26/26通过,等待父分支复测。账户审查4项P1与3项P2均接受并修复:单角色token绑定、保护身份来源、下载task归属、设置事务、原子网络快照、进程代际、Xuid。 + +Windows x64统一发布/最终owner校验通过,归档在dist/B1-architecture,仅为架构包;Bootstrap尚未接通时不算功能候选。Mac打包依赖检查已修,PE DLL子组件签名需求已用独立fixture验证;正式重跑在后续记录。真实产品实窗、游戏主菜单仍NOT_RUN;旧Windows数据接管NOT_READY。 + +## B1–B4 集成检查点(2026-11-05 00:47 SGT) + +Core集成83/83及新增官方1.21.1回归后的86/86均实测通过,0警告0错误;精确命令与退出码在reports/night/MVP/core-run.json及official-core-run.json。相同Core中间根复用,未用新obj掩盖回归。后一次TRX覆盖同路径,前次结果保留在独立命令日志。官方fixture来自Mojang原始metadata与assets索引,核对SHA-1,生产resolver与独立预期比对63库、16个普通native artifact、Java21/runtime-delta、3888个去重assets;这些测试不表示真实游戏已启动。 + +平台B3只读Windows旧凭据兼容读取与B4原生macOS路径规范化已整合;B4三文件SHA-256精确匹配。UI B2的26项Headless正在集成分支复测。新增构建/打包脚本PowerShell语法检查11/11通过;旧WPF发布仅可做本地交叉验证,仍需Windows真机。Mac逐文件签名、bundle签名和ditto归档结构fixture已经通过,正式产品包尚待本节之后的实际记录。 + +## 产品与配置验证(2026-11-05 01:35 SGT) + +集成实现提交为`c9b9e094a4cf3103abec8290261be1b7622b88c8`,快速退出状态竞态及许可目录布局修复提交为`30fa63f10f1ba7a81706db7719a451797849c8d4`。Core87/87、共用UI Headless26/26已实测。正式Mac ARM64归档位于任务根`dist/MVP-fix1/Desktop/Release/osx-arm64/default`,附SHA-256、BUILD-INFO与native依赖报告。该包经统一restore→clean→publish→实际owner校验→完整许可→逐文件/bundle ad-hoc签名→归档,最终zip用ditto解压到中文空格路径后严格验签通过。它是本地未公证候选。 + +清除构建PCL变量并移除SDK/pwsh所在PATH后,最终包diagnostics启动成功,加载自身.NET10.0.14与新Core,真实发现并probe Temurin21 ARM64。首次原生Avalonia启动在`AvaloniaNativeRenderTimer.EnsureRegistered`失败,尚未创建App/VM;系统同时报告内置屏幕休眠,与[上游休眠显示定时器问题](https://github.com/AvaloniaUI/Avalonia/issues/18895)一致,但未将相关性冒充最终根因证明。失败命令、脱敏方法栈与CUA尝试均在`reports/night/MVP`。当前L3原生窗口为条件BLOCKED,不使用应用自报窗口状态替代真实观察。 + +同一正式候选通过生产服务真实安装固定原版1.21.1(client+63库+3888去重assets),生成脱敏LaunchPlan,并启动Java进程至音频引擎和纹理图集初始化。六个实例native库为ARM64,临时Cocoa库含ARM64 slice;所有这些可写文件位于隔离根。CUA没有可用的Java app绑定,未观察可交互主菜单;180秒测试时限后停止自有进程,exit137/cancelled,启动命令exit1。此结果不算L4或正常退出通过,日志/计划/native文件hash保留。 + +平台B5测试增量已整合:worker真实调用生产runtime安装器和真实probe,官方Java21.0.7+6-LTS ARM64下载约104MB,145文件/205链接逐项校验,第二次只刷新catalog、0 payload复用。在线专项1/1通过;默认禁联网专项明确Inconclusive,无在线目录创建。它使用标明的测试HTTPS适配器,不能代替最终包下载器或游戏主菜单验收。 + +构建专项实测发现PowerShell把.NET方法的null字符串参数转为空串,原清除方法使存在敏感的PCL_WRITE_SECRET仍保留;共享入口已改Env provider显式移除,缺失与空串分别还原。B05/B06四种开关、白名单及转义,B11四配置runtime读取边界、Debug内置优先,以及源码SHA禁止runtime覆盖共九项实际编译/owner消费已通过(同一compiler中间根)。反射验证器改用实际owner的hash一致独立副本,避开CLR同路径PE映射复用;未更换obj。原失败与后续PASS均保留在`reports/night/BUILD-CONTRACT`。B07完整Desktop A→B→none仍待执行,不在此提前标通过。 + +新增独立跨平台workflow,保留Windows旧入口gate;reusable legacy构建改走同一Publish链,SDK统一10.0.403。标准runner规格仅列14GB SSD([GitHub官方资料](https://docs.github.com/en/actions/reference/runners/github-hosted-runners)),因此仅全新ephemeral GitHub任务根显式登记8GiB保留量/10GiB停止线;现有本机night controller仍保持20GiB保留量、10GiB停止线、35GiB任务上限。CI按真实free决定是否放行,不使用收费runner,不绕本机控制器。新增脚本语法与合成空间fixture通过,云端未获运行授权,状态NOT_RUN。 + +当前下一步:集成Core/Headless回归、构建输入异常/还原检查、本地阶段提交;再冻结同一源码执行B07,随后生成当前Windows x64/ARM64候选。Windows原生、旧数据导入/往返、DPAPI及默认接管仍未完成。 + +## B07 源码不变门禁与恢复目标修正 + +首轮B07的A包已完成真实owner检查,但正常restore将Core/生成器锁文件从无RID改为win-x64目标,源码指纹检查正确拒绝该轮,未继续把它记为三步通过。保留原ArtifactsRoot与A归档,没有删除obj。新SHOU工程统一声明osx-arm64/win-x64/win-arm64及仅供可移植测试的linux-x64恢复目标;五份锁文件现在均含同一目标集合,避免切换入口/RID时再改写源码锁文件。产品Publish仍只接受Windows/macOS三RID,Linux没有产品宿主支持声明。 + +修正后Core89通过/1项在线opt-in跳过,Headless26/26通过,均0警告/错误;独立TRX保存于reports/night/P0-GATES。UI B3单文件增量已按hash整合,Application.Name在XAML加载前来自真实metadata/provider,未手写品牌默认值;worker和集成各26项,数量不累加。下一条实际动作是从新干净本地检查点,以原B07中间根和新的fixture输出目录重跑完整A→B→none。 + +## B07 通过与 P1 接线(2026-11-05 02:55 SGT) + +B07完整三步已在`69080e24c9b14f90f53e4d03e98ab7b52ba9e918`实测通过,A/B/none使用同一Desktop、Release、win-x64、同一有效中间根及完全相同源码指纹`f966185089ea73d79d7b53850163f7c87efc871a4a4ab0d1dd0813f41d771a40`。三份实际owner只含对应本轮假配置、none不含A/B,环境精确还原。失败阶段保留原ArtifactsRoot;固定RID目标后SDK使用稳定RID pivot,正式三步没有人为清空或逐次更换obj。报告在`reports/night/B07/stable`,其归档明确仅为配置fixture。 + +同一干净SHA的真实配置Windows x64与ARM64候选均已生成于`dist/N1/Desktop/Release//default`,附SHA-256/BUILD-INFO;实际publish与最终owner均校验通过,Windows真机仍BLOCKED。Mac30fa最终归档的独立进程凭据write/read/delete三步全部PASS(仅唯一隔离假key),不表示跨版本签名连续性通过。 + +P1已把目标main与全部game args移到受控anonymous stdin。随包Java bootstrap以Java8字节码运行在原main线程,JVM公开argv不含游戏凭据;不用argfile、明文参数文件或raw-argv降级。Java helper由统一构建使用注册JDK编译、hash作为Desktop元数据/嵌入资源身份;初始化获lease后校验并原子提取到缓存,运行时不需要javac。没有helper的真实账户启动明确拒绝。主编排/共享DTO/资源构建由主亲写;平台B6传输/protocol五文件精确patch整合,10项真实Java与传输专项通过。 + +现代Fabric0.16.14+1.21.1已接生产接口、现有Loader来源fallback、metadata继承与Maven校验;六库采用官方profile声明的SHA1/size,另外两库按来源顺序获取checksum sidecar。UI提供原版/Fabric选择并显示loader,未知loader明确拒绝。既有DownloadSources/ModDownloadSources及CF凭据host边界测试直接复用,无旧WPF/PCL.Core程序集引用。 + +P1完整Core127通过、1项默认在线opt-in跳过;首轮只有路径负例断言类型错误,生产拒绝行为正确,测试修正后通过。集成Headless28/28通过。平台只读复审指出helper类可被前置库遮蔽及等号classpath覆盖,主已修为受信helper首位并拒绝替代入口/路径形式;后续五项保护回归通过,含真实JVM同名恶意类负例。详细报告在`reports/night/P1`。JDK21编译release8产生三条目标过时兼容提示,与.NET0警告分开记录。下一步是P1正式候选包及从最终归档执行保护后的原版/Fabric安装与进程验证;当前不预报主菜单通过。 + + +## N2/N3 候选与边界验证(2026-11-05) + +N2从干净的`853c41e28dd346a4598019b81f7e1f7e273e0ed1`经统一入口生成同一Desktop的Mac ARM64 Beta/Release、Windows x64/ARM64四份候选,BUILD-INFO与SHA-256随包。Mac Release由最终zip重新ditto解包后严格验签;移除构建变量及SDK/pwsh PATH后的diagnostics、同一产物Keychain假键跨进程write/read/delete、真实原版1.21.1与Fabric0.16.14安装/计划全部exit0,证据在`reports/night/N2`。 + +两种真实Java游戏进程均通过私有stdin引导至游戏渲染/音频初始化,实际OS argv/HotSpot检查不含游戏凭据参数,ARM64由活进程os.arch与加载native佐证。Fabric首轮检查器把官方profile公开的`-DFabricMcEmu= net.minecraft.client.main.Main`误判为实际KnotClient泄漏;首轮FAIL保留,修正为检查所选target后重跑PASS,产品未为此改动。60秒观察上限由启动器停止进程,命令exit1,不能算正常Quit或L4。CUA无Java/Minecraft绑定,显示条件与原生AvaloniaRenderTimer阻塞仍单列;未宣称可交互主菜单。 + +N3顺序应用UI `90c9706`和platform `de23f5d`的精确增量:联机后端尚未实现,所有非none目的地均禁用启动;aria2仅支持本机RPC,界面与真实Core一致。通用Java保护断言与Mac OS argv专项分开,避免其他OS整项skip。CI固定Temurin21并在临时任务根登记同一JDK别名,wrapper注入JAVA_HOME,helper不再回退系统javac;setup-java Maven输出也在runner.temp,空间计量跳过POSIX链接与Windows reparse。仅本机CI工具注册/alias/gate/编译fixture通过,Actions未运行。 + +吾亲写的下载修复把aria2输出、控制sidecar、cache命中纳入路径门禁与独占锁,单次捕获网络配置;无哈希目录走内部新请求。内部下载在HTTP await之后、任何截断前复查路径,resume以CreateNew临时文件原子替换,新写来源身份为URL摘要且兼容旧明文身份。阻塞真实HTTP期间替换.part或.resume链接的负例保护独立fixture字节不变。此边界不等同于抵御拥有目录写权限的恶意进程所有原子级双重TOCTOU。RPC是本地协议fixture,未冒充真实aria2二进制。 + +集成全量Core最终137 passed、1显式OnlineJava opt-in skipped、0 failed;Headless30/30通过,.NET编译零警告/错误。Java8兼容helper由Java21编译仍有3条目标8过时提示,未隐去。不可变TRX、真实命令/退出码与两次worker只读审查在`reports/night/N3`及各handoff目录。后续进入受控Java trust派生副本;绝不原地修复官方runtime后继续宣称原manifest不变。 + + +旧WPF回退已实际交叉发布x64和ARM64:`reports/night/LEGACY/publish-x64-fix1-run.json`与`publish-arm64-run.json`均exit0,实际PCL.Core owner及最终单文件exe均验证三项配置嵌入布尔值,zip/hash/BUILD-INFO齐全。首轮x64编译/publish成功后owner定位失败,发现SDK引用项目实际移除RID;统一脚本现分别评估入口RID与引用RID-less上下文。旧generator去掉无意义nullable tuple转换;旧WPF原有大量告警仍如实保留。此交叉构建不证明WPF/DPAPI/Windows界面能在真机运行,W01–W10仍有主机阻塞与配置导入/往返内部缺口,旧入口继续为默认。 + + +## B8 独立Java信任副本 + +三角色已整合完整独立派生内核与真实设置入口。源JavaHome只读复制并保留安全相对链接/权限,hash覆盖路径/type/文件bytes/link文本/mode;不复用源硬链接。只允许策略命中的信任文件与精确备份/receipt发生变化,重新扫描保留其他证书。源/输出/provenance全部重核,失败/不完整变体不可被发现或执行;生产公开probe在执行前验证,自身发布probe只在已验树内使用显式runner,未开放公共staging bypass。 + +新增官方`System.Security.Cryptography.Pkcs 10.0.14`用于纯内存PKCS12 Decode/VerifyMac/Decrypt,拒绝私钥/未知bag与无界KDF声明,仅将X509 CertBag裸DER交给证书读取器。macOS EphemeralKeySet导入与OCTET封装问题的前两轮失败已保留;没有改用DefaultKeySet,也没有把PFX导入临时/持久Keychain。第三轮定点→完整fixture→真实B5 JKS/同副本keytool PKCS12的子命令均exit0。包装器误按MSTest错误notExecuted counter断言导致外层exit1,原记录保留;只读assessment按UnitTestResult确认实际PASS与默认2项SKIPPED,不重写退出码。 + +主亲写扫描/派生/持久设置编排、CLI隔离入口与事务回归。自动修复偏好默认true,只为新下载官方Java创建派生副本;不写隐藏实例覆盖。无显式Java时优先匹配metadata的完成变体,显式原路径可以选回,既有实例显式覆盖保持。派生变体即使auto=false也必须验provenance,字面路径/实际home逃逸不降成普通Java;观察性日志失败不把已提交切换变成假失败,日志链接不写独立fixture。 + +集成Core181 PASS、3显式SKIPPED(OnlineJava1、trust interop默认2)、0FAIL;Headless34/34,.NET编译0warning/error。真实副本互操作由worker另表,不与集成重复相加。证据在`reports/night/B8`及platform B8 handoff。已发现macOS Path.GetRelativePath默认大小写比较不适合严格卷边界,B9将独立硬化;本节不宣称已验证case-sensitive卷。最终候选重包与GUI/Windows/外部账户门禁仍按真实层级单列。 + + +## B9 路径与日志边界收束 + +Java/Platform内不再用macOS默认忽略大小写的Path.GetRelativePath作root门禁。共享JavaPathBoundary复用B4固定arity getattrlist取得现存祖先的实际case/Unicode,再用明确POSIX Ordinal边界;未知后缀不折叠。Core.SafePath委托同一实现,不新增第二份Mac PInvoke;隔离游戏根、派生home/exe返回、literal逃逸归属均重核。当前FS同inode大小写别名、内外链接与相邻前缀已实测;独立case-sensitive卷仍NOT_RUN。 + +观察性Log在append前拒绝symlink/reparse/父逃逸,也复用单regular+nlink==1身份检查;真实ln负例证明独立保护fixture不会被日志追加。磁盘/权限/PInvoke不可用只保留内存日志,不把已完成配置事务显示为失败。主新增测试首次因漏using无法编译,失败日志保留;仅补导入后全量通过,没有降低生产拒绝语义。平台B9旧broken-link异常断言同样保留首轮FAIL后精确修正。 + +最终集成Release Core188 passed、3显式skipped(OnlineJava1/trustInterop默认2),Headless34/34;无Secrets的本地CI配置Core187/187并真实编译同一Desktop,均0.NET warning/error。重叠worker专项不累加。证据`reports/night/B9`与两worker只读review/handoff。功能范围到此冻结,仅做同源码B07、最终统一候选、产品包实际验证和交付报告。 + +## N4 最终候选与分层结论(2026-11-05) + +最终产品源码为干净的本地提交`5f99195b95b26cb6c96af8ca67c67775ca44a6ea`,真实基线仍为`b97b565678cbcdc8f602b57973d0837d3ac556a2`。同一Desktop经统一入口依次生成Windows x64 Release、Windows ARM64 Release、Mac ARM64 Beta及Release;全部restore→clean→publish→实际owner程序集验证→打包通过,原`.env`仅以外部只读`-EnvFile`引用,未复制进工作树或报告。归档、SHA-256与BUILD-INFO位于任务根`dist/N4/Desktop///default`。后续文档提交与候选源码SHA分别记录,不把文档HEAD冒充构建来源。 + +| 候选 | SHA-256 | +|---|---| +| Mac ARM64 Release | `edd3ddba491611fbc6103f21a43176866cfccfbbfc7a797a7781708857875f2f` | +| Mac ARM64 Beta | `cb87ba45402578722b20ff1d371fd57ae7e8d3055eecc4160d20a616e311d7a5` | +| Windows x64 Release | `cadf341f275d0af9f260541d540058b660735cfbcf2177d5c4728b64973b1e14` | +| Windows ARM64 Release | `730a33185d2e6f26c0e731cbb93035bff5064e8df535af090177daf926bf02f1` | + +四包均为自包含多文件产物,关闭single-file/trimming/AOT;包含正式图标、资源及23个依赖包许可。Mac采用本地ad-hoc签名,Release最终zip在中文空格目录重新ditto解包后严格验签通过;没有Developer ID或公证。两个Windows包各19个原生PE文件分别匹配x64/ARM64,另有204个managed PE;它们是交叉构建候选,未在Windows执行,未签名。旧WPF x64/ARM64回退包另有较早精确检查点与dirty补丁记录,不能与N4源码身份混用。 + +B07在最终源码再次完整通过A→B→none三步,仍使用最初登记的`build/main/BUILD-CONTRACT/Desktop/Release/win-x64/B07/B07-Desktop`有效中间根;三步源码指纹均为`6cb952171031ed10f36ac50d3197277a9d45af1d4031621eb03705ae133de42f`,环境精确还原,没有换obj或人工删除缓存来掩盖残留。B07归档仅是假配置fixture,不列为产品候选。 + +最终Mac Release归档的生产程序在清除PCL/build别名、SDK/pwsh PATH后,通过diagnostics、唯一假键Keychain跨进程write/read/delete、JKS独立副本创建/复用/重验、纯内存PKCS12读取与副本keytool修复。原PKCS12源`cacerts`仍为1814字节,SHA-256保持`491a44284c39806db780678e08d0667911ee25e38f576cd4013d0bee38df433c`;源JDK不被修改。完整来源与输出树hash、provenance和命令保存在`reports/night/N4`。 + +同一最终包选用其已验证的Microsoft Java21.0.7 ARM64派生副本,真实安装并运行Minecraft1.21.1原版及Fabric0.16.14。两次活进程均见`os.arch=aarch64`、9个任务内native库及受信bootstrap,OS argv/HotSpot command不含目标main、游戏参数或离线档案名;Fabric官方公开兼容property另列,不误判成私有target泄漏。真实游戏日志含loader、音频和纹理图集初始化。每次60秒观察上限由启动器停止自有Java,exit137/cancelled、命令exit1;原始FAIL payload保留,不能算主菜单或正常Quit通过。 + +原生GUI首轮在显示器休眠时于Avalonia render timer初始化失败。最终一次限时`caffeinate -u`用户活动断言未改持久电源设置或解锁;显示器查询的asleep字段消失,不能单凭字段缺失断言已醒。相同N4包随后自报窗口句柄并按150秒定时exit0,但CUA连接该存活程序的确切.app路径仍返回`cgWindowNotFound`,未取得实际窗口交互或截图,故L3仍BLOCKED。旧CUA记录的写盘时刻晚于游戏退出,已移除不能独立复现的“观察时仍存活”表述,保留时间不确定性。 + +分层结果为L0编译/包、L1 Core、L2 Headless通过;L3原生GUI、L4可交互游戏主菜单及正常Quit、L5真实账户/入服仍未通过。Windows W01–W10因缺原生主机保持BLOCKED;旧配置/实例/禁用Java往返与生产根双入口接管还存在内部实现缺口,不能全归因于主机缺失。selected-server生产路径未完成,UI明确禁用非none目的地;Forge/NeoForge、完整mod/modpack内容管理及旧Java/LWJGL2兼容矩阵尚未迁移。旧WPF继续为Windows默认入口。 + +本轮仅在三个指定功能分支进行普通本地阶段提交,未推送、合并、创建PR、打标签、调用远程Actions或发行。原工作区仍为main。最终交付索引在任务根`reports/night/DELIVERY.md`和`delivery.json`,包含六份实际归档的hash、BUILD-INFO、真实测试命令/退出码、L/B/W/D门禁、三角色handoff、精确patch/源码hash与可执行续跑步骤。迁移整体仍未完成,`all_executable_work_done`不得据此改为true。 + +## N5 凭据失败修复与最终检查点 + +N4补充跨配置实测发现真实失败:Beta写入唯一隔离假键后,Release新进程读取40.26秒超时,exit124且没有结果JSON;Beta随后成功删除假键。此前同一Release二进制的跨进程write/read/delete三步PASS仍只适用于同一产物,不表示跨配置或未来签名连续性。原始失败保留于`reports/night/N4/cross-configuration-credential-suite.json`。 + +平台核实原实现已经有`kSecUseAuthenticationUIFail`,没有把重复补flag冒充修复。结合CLT头文件和[Apple Security进程内实现](https://github.com/apple-oss-distributions/Security/blob/main/OSX/libsecurity_keychain/lib/Globals.h),为旧Keychain入口增加进程内交互状态的保存、禁用、调用及finally还原;所有store实例共用同步门,Darwin Boolean按字节传递,保存/禁用/还原的OSStatus均检查。未修改用户电源/安全偏好、Keychain ACL或存储后端。独立ad-hoc creator创建的唯一假项由生产reader约54ms拒绝读取,原creator核验原值并清理;原生状态/异常还原、串行门及既有roundtrip共4项通过。此证据不唯一证明旧挂起根因,也不保证任意Security daemon故障都有硬超时。 + +主线程亲修账户事务:档案落盘后才发布“已保存”及选择;凭据不可写时新档案明确仅本次会话,磁盘原账户/选择不被部分视图覆盖。若刷新已轮换令牌而sidecar保存失败,保留新有效内存session,已有账户显示会话状态,冻结后续账户持久写并继续抛出真实保存失败,防止重试沿用旧token。五项定点回归全部通过,含二轮refresh令牌序列及原磁盘列表保持;UI worker独立复核确认路径关闭。 + +新候选在干净提交`573ce8e74b9abf429aa6b882b055ebc16c123832`冻结后实测,驱动逐步核对相同HEAD/clean状态:Release Core196 PASS、3显式SKIPPED,Headless34/34,本地无Secrets的CI Core192/192,均0.NET warning/error。Java8兼容helper仍保留Java21编译的3条目标8过时提示。B07再次使用最初有效中间根,A/B/none三步源码指纹均为`3b52ba8b719c82426e87a80f018af4b733909a4b963dae41ce292914a3b95663`,owner及环境还原通过。 + +| 最终N5候选 | SHA-256 | +|---|---| +| Mac ARM64 Release | `5656227d1f0564049d0e1678db2c01271a679a5b19b96fb44209940a885d6ac2` | +| Mac ARM64 Beta | `fa3f5a02839319d8393bed443630900e6d69e9ac2256ca7eb55ec3921b741e06` | +| Windows x64 Release | `db1b89acd2d43b1d544d70ee975db065dff726d2bacc141596a726cdc3736036` | +| Windows ARM64 Release | `1cb5c4bfd36fb7ca412daa9630891fab4fb3964c64b7e8bde4659175ca670cff` | + +四包均经同一正式入口生成于`dist/N5/Desktop///default`。Mac Beta和Release最终zip解包严格验签通过;清除构建输入、SDK/pwsh PATH后的实际运行、同Release三进程假键、生产JKS/PKCS12独立副本及源保持再次通过。Windows两包PE架构检查通过但没有真机执行。跨配置N5读取在0.577秒内以typed CredentialStoreException、exit1明确拒绝,Beta复读原值与清理均exit0;无交互失败边界PASS,访问/签名连续性仍BLOCKED,原N4超时未被改写。 + +同一最终N5 Release包再次实际运行原版1.21.1及Fabric0.16.14,Java21 ARM64、私有stdin/argv和native加载组件通过;60秒上限停止自有进程,命令exit1/cancelled仍如实保留。未在原生CUA条件无变化时重复盲试GUI,N5没有可交互主菜单、截图或正常Quit验收。L3/L4、Windows W01–W10、真实账户/入服及签名/公证仍按条件单列;旧数据往返、selected-server和其他完整功能缺口仍在续跑清单,Windows默认入口继续保留旧WPF。 + +任务在最后45分钟仅收束包、回归、hash与报告。最终六份归档(N5四份及较早WPF回退两份)再次SHA-256核验通过,任务占用约26.9GiB触发25GiB警告但低于35GiB上限,系统free约381GiB;没有为消除警告删除源码、报告、用户数据或全局缓存。全部真实命令/退出码、精确源码patch/hash、三角色handoff、环境/路径/空间与续跑步骤由`reports/night/DELIVERY.md`及`delivery.json`索引。候选已生成不代表整体迁移完成,`all_executable_work_done=false`。 + +## 截止前恢复收束 + +恢复后沿用相同三角色、工具、分支和截止时间,没有重装环境或重复已通过套件。当前显示器仍报告休眠,未在GUI前提未满足时再次启动候选。两worker重新审计next_step,修正平台handoff中已经过期的“N5验证pending”措辞;主进度中的旧冻结SHA也已改为实际候选`573ce8e74b9abf429aa6b882b055ebc16c123832`。 + +原先未执行的独立大小写敏感卷检查已实际补充:在任务根内创建256MiB稀疏Case-sensitive APFS镜像,只从N5发布包加载原Core.dll,用JavaPathBoundary/SafePath验证原生不同大小写目录inode、内部路径、大小写不同兄弟拒绝、相对路径拒绝、链接逃逸及新子路径共六项,全部PASS。单锁命令exit0、13.669秒、无timeout,保护fixture字节不变,实际detach exit0;只读hdiutil精确image路径确认无遗留挂载。DLL SHA-256为`62c22ce59e528913a1c142320b7e8937c847a145cf80679cfbdd3699ab71c497`,实际BUILD-INFO仍指向573ce8e且source_dirty=false。 + +此结果只覆盖该卷上的JavaPathBoundary/SafePath,未推广到AppPaths、凭据namespace、完整Java trust或其他OS。harness的partial-attach/timeout故障清理分支没有注入验证,不标PASS,也不为此重跑已经通过的六项。原始命令、结果与卸载receipt位于`reports/night/resume`,平台独立review位于`handoffs/platform/CASE-SENSITIVE-NATIVE-REVIEW`。 + +仍有Windows旧配置/实例/禁用Java导入与往返、selected-server等真实内部实现缺口,另有GUI、Windows真机、真实账户、签名等条件门禁;不能声称“只剩外部阻塞”,不能把all_executable_work_done改为true。原截止时间保持不变,本轮剩余只收束交付证据和续跑状态,产品代码及N5候选保持冻结。 + +## 白天原生验收与本地分支整合(2026-11-05) + +指挥官明确授权后,从最新`origin/dev`的`b97b5656`建立`features/macos-native-validation`,快进纳入主集成分支,再合并UI与platform的本地历史。两worker负责的实现文件事先逐项核对,与已评审的集成树完全相同;因此两次历史整合使用`--strategy=ours`保留该树,全部三个源分支头均成为祖先,没有把旧共享骨架或锁文件覆盖回去。源分支及其未提交共享输入保持,另有精确备份。后续开发转到主仓库目录的新分支;旧integration worktree保留为detached检查点。未推送、合并PR、更新main/dev、打标签或发布。 + +同一N5 Mac Release最终zip重新解包验签后,在已唤醒的Mac上取得真实启动器窗口和截图,六页导航全部实际切换。随后从GUI启动隔离离线实例Minecraft1.21.1,Temurin21.0.13 ARM64、2048MiB、目的地none。CUA无法绑定无bundle ID的Java窗口;用户分别授权仅限本次窗口的macOS原生查询/截图/输入及辅助功能。PID限定的Tab/Return/Escape完成首次引导、主菜单、Options、返回及Quit Game,独立截图保存。游戏记录`Stopping!`后exit0、cancelled=False、timeout=False,进程消失;再关闭启动器窗口,`reason=normal_close`、state=Ready、进程exit0且无timeout。临时工具的系统辅助功能项已移除,授权receipt关闭;未操作真实账户或入服。 + +首轮授权设置期间到达`--exit-after900`,游戏被停止为exit137/cancelled;启动器窗口关闭后进程仍残留,保存采样后仅向自有PID发送SIGTERM恢复,外层记录exit-15。原失败保留,不能算正常退出通过。重试采用3600秒上限,在289秒内主动完成游戏及启动器退出。活动游戏期间关闭启动器的残留问题单列为待修复项,尚未确立根因。 + +本次补齐N5 Release的L3实窗/六页导航,以及原版1.21.1的L4可交互主菜单与正常Quit;没有扩大为Fabric主菜单、全部业务流或L5通过。产品源码、候选zip与既有测试对象未变,沿用N5的Core196通过/3显式跳过、Headless34通过、本地CI Core192通过,数量不累加,本轮未重复运行这些套件。完整白天验收、截图、退出码、分支审计及更新的未完成清单见[白天验收记录](MACOS-NATIVE-VALIDATION-20261105.md)与任务根`reports/day-native/`。整体迁移仍未完成。 diff --git a/docs/conduit/MACOS-NATIVE-VALIDATION-20261105.md b/docs/conduit/MACOS-NATIVE-VALIDATION-20261105.md new file mode 100644 index 00000000..41b1a1d0 --- /dev/null +++ b/docs/conduit/MACOS-NATIVE-VALIDATION-20261105.md @@ -0,0 +1,82 @@ +# 2026-11-05 Mac 原生验收 + +N5 Mac Release已通过真实启动器六页导航、Minecraft1.21.1原版主菜单与Options交互、Quit Game正常退出,以及随后关闭启动器。活动游戏期间触发启动器定时退出存在进程残留问题,首轮失败完整保留。整体迁移尚未完成。 + +## 当前分支 + +- 开发分支:`features/macos-native-validation`,主仓库目录直接使用此分支。 +- 基线:本次fetch确认`origin/dev=b97b565678cbcdc8f602b57973d0837d3ac556a2`。 +- 主集成来源:`features/macos-arm64@7decdd17e91d7a48764f96e07968af5a3811530c`,快进纳入。 +- UI来源:`features/macos-arm64-ui@8e5fc6f87d2110a372d3baf0885098b28c3135a2`,历史整合提交`df517d95af14283c1daea3ae8a74e2118605bea8`。 +- 平台来源:`features/macos-arm64-platform@de6ebe869e7fd1b3fb786bb3268ee65901b17068`,历史整合提交`6b716785795efe7e24f9dd1346aed3a170b4e7d4`。 + +两worker的实现此前已按增量集成。合并前检查各自负责的全部已提交路径,无缺失、实现字节一致;较旧共享依赖不替换后续集成修复。因此两次非快进合并使用`--strategy=ours`,合并后完整树与`7decdd17`相同,三个源头均为祖先,源引用不变。worker未提交共享前置文件保留原处并备份,未作为新产品变更重复纳入。 + +本次最终文档提交不改变产品源码。旧integration worktree保留为detached检查点;旧UI/platform工作树及原始计划文件保留。`main`、`dev`和远程引用未被推进,未推送、创建/合并PR、运行远程Actions、打标签或发布。 + +## 候选与输入 + +| 项目 | 实际值 | +|---|---| +| 候选 | `dist/N5/Desktop/Release/osx-arm64/default/SHOU-Launcher-osx-arm64-v1.5.0-dev.g573ce8e7.zip` | +| 源码 | `573ce8e74b9abf429aa6b882b055ebc16c123832`,原构建时干净 | +| SHA-256 | `5656227d1f0564049d0e1678db2c01271a679a5b19b96fb44209940a885d6ac2`,本次重新核对一致 | +| 宿主 | Apple Silicon,macOS26.6,进程Arm64 | +| 发布方式 | 自包含多文件,single-file/trimming/AOT关闭;本地ad-hoc签名,未公证 | +| 解包 | `test-data/白天候选验证/N5-release/SHOU Launcher.app`,重新ditto解包并严格验签 | +| 隔离数据 | `test-data/day-native-20261105`,从原离线fixture克隆并重定位;原fixture保留 | +| 游戏 | 原版Minecraft1.21.1;离线`SHOUNightTest`;只启动、不入服 | +| Java | 官方Temurin21.0.13+9 ARM64,2048MiB | + +表中`dist/`、`test-data/`和下文`reports/`均位于本机任务根`.shou-dev/`。启动子进程清除了PCL/build输入及SDK/pwsh PATH,程序目录无`.env`。本次没有新增真实账户授权、Keychain ACL变更或服务器连接。 + +## 本次实际观察 + +| 验证 | 结果与边界 | +|---|---| +| 启动器实窗 | CUA取得真实标题、版本、Release及源码SHA;实际截图可见品牌首页 | +| 六页导航 | 首页、实例与启动、下载任务、账户、设置、日志均实际打开 | +| 游戏启动 | 从启动器`LaunchGameButton`点击启动,非仅生成计划 | +| 首次引导 | 独立截图确认Continue后,以限定PID键盘事件继续 | +| 主菜单 | 独立窗口截图可见Minecraft1.21.1、Singleplayer、Options、Quit Game | +| 交互 | 打开Options,Escape返回主菜单,再选择Quit Game | +| 游戏退出 | `Stopping!`,exit0、cancelled=False、timeout=False,PID57421消失 | +| 启动器退出 | 游戏结束后关闭窗口,`normal_close`、Ready,PID57405进程exit0,无timeout | +| 清理 | 自有测试进程均结束;临时辅助功能列表项移除,PID授权receipt关闭 | + +Java无bundle ID,当前CUA无法绑定,用户明确授权了限于本次游戏窗口的原生替代方式及辅助功能。重试更换PID后再次确认目标授权。原生工具仅针对授权PID查询窗口、截图、发送Tab/Return/Escape;点击因窗口onscreen标志为false而被工具门禁拒绝,没有绕过该门禁。选中按钮的截图与随后界面变化独立佐证实际输入生效。 + +辅助功能开关关闭后的一次即时原生查询仍报告trusted=true;随后已从系统设置移除工具项,并关闭工具自身的PID授权receipt,此后没有发送原生输入。没有更改ChatGPT/Codex已有授权。 + +## 保留的失败与待修复项 + +首轮启动器PID56568、游戏PID56693在授权设置期间达到900秒测试上限。应用报告`exit_after`,游戏exit137/cancelled=True,不能算正常Quit。启动器进程在窗口关闭后残留;保存1秒进程采样后,仅对该自有PID发送SIGTERM,外层记录exit-15、无外层timeout。 + +重试上限为3600秒,实际289秒内完成主动退出,游戏与启动器均exit0。两个路径分开记账。活动游戏关闭启动器时的进程残留尚待最小复现、定位和修复;应优先核查ProcessRunner停止/释放过程是否捕获已停止的UI同步上下文,该推测尚未验证。 + +## 测试与剩余范围 + +本次合并保持原集成产品树,后续仅新增文档,候选没有重包。沿用同一冻结源码的夜间证据:Core196通过、3显式跳过;Headless34通过;本地无Secrets的CI Core192通过;B07同中间根A→B→none通过。套件有重叠,不累加;这些套件本轮没有重复运行。 + +已补齐N5 Release的L3实窗/导航与原版1.21.1的L4交互/正常Quit。仍未完成: + +- 活动游戏期间关闭启动器的进程残留修复与回归。 +- Fabric主菜单/正常Quit及更多原生业务流。 +- Windows真机W01–W10;旧配置、实例、禁用Java导入与旧→新→旧往返、双入口接管。 +- selected-server生产启动路径;真实Microsoft/MUA/LittleSkin账户及入服。 +- Developer ID/公证、Windows签名、Keychain跨配置与后续更新身份连续性。 +- Forge/NeoForge、完整mod/modpack内容管理、旧Java/LWJGL2兼容矩阵及真实aria2二进制端到端。 +- 大小写敏感卷上的AppPaths/凭据namespace/完整trust服务;已有六项JavaPathBoundary/SafePath通过不推广到全链路。 + +## 证据索引 + +`.shou-dev/reports/day-native/`保存: + +- `delivery.json`、`tests.json`、`unfinished.json`:当前交付与未完成清单;原夜间报告保留为历史。 +- `merge-result.json`、`merge-plan-and-preservation.json`、`preserved-worker-inputs/`:合并、归属核对与原文件备份。 +- `native-inputs.json`、`gui-observations.json`:候选身份与外部观察。 +- `vanilla-main-menu-confirmed.png`、`vanilla-options.png`、`vanilla-quit-game-focused.png`:真实游戏窗口截图。 +- `game-normal-quit.json`、`minecraft-normal-quit.log`、`launcher-after-normal-game-quit.log`:游戏正常退出。 +- `ui-retry-process-run.json`、`ui-retry-native-report.json`:启动器正常关闭与进程退出0。 +- `first-attempt-assessment.json`、`ui-process-run.json`、`first-attempt-exit-sample.txt`:首轮失败及定向恢复。 +- `native-ui-grant-first-attempt.json`、`native-ui-grant.json`:授权范围和完成后关闭状态。 diff --git a/docs/conduit/MACOS-R31.md b/docs/conduit/MACOS-R31.md new file mode 100644 index 00000000..0f7b25c4 --- /dev/null +++ b/docs/conduit/MACOS-R31.md @@ -0,0 +1,81 @@ +# Mac R31:同一整合包多窗口与下载链 + +日期:2026-11-11。开发分支:`features/windows-parity`。用户本轮授权两个隔离 Minecraft,仅主菜单/本地单机;不连接服务器、不操作个人实例。不合并主线或发布正式版本。 + +## 行为变化 + +- 已运行的已安装整合包可再次启动,首页显示“再开一个游戏窗口”。两次启动共用实例配置与存档,Minecraft 自身的世界锁仍适用;不可同时打开同一世界。 +- 每次启动单独分配临时目录和原生库目录;重复启动只校验既有客户端、库和资源,不修复正在使用的基础文件、不重复执行加载器处理器、不重写安装完成标记。缺失/坏文件明确要求退出全部窗口后补全。 +- 完成私密启动参数交接后即释放全局操作;窗口探测在独立观察任务中执行。游戏按 PID 登记与观察,一个退出不清空其余会话。会话文件兼容旧单条格式,并登记全部存活 PID 与操作系统创建时间。 +- 关闭启动器时交接游戏进程和独立日志,重开通过会话记录识别仍运行的窗口。模组/资源/实例写入保护仍按物理目录内任一存活游戏判断。停止命令只针对本启动器拥有的所选实例最新进程,磁盘记录不授予杀进程权限。 +- CF/FTB 的官方 CDN 专用传输接入共享并发/限速配置,继续独立验证重定向与认证头,不交由外部 RPC 绕过来源校验。整合包、库和资源生产循环使用配置中的并发数。 +- Aria2 非默认并发可实际使用;≥16 MiB 的已校验文件最多四段,每一段占用共享连接预算。小文件单连接。取消暂停本任务 GID,重试重连后续传;断线/失败后尝试暂停,再回退内置传输;发布前本机复验大小和哈希。 +- 下载条目显示实际后端、连接/速度、重试或切源、哈希校验。严格 HTTPS 与全局限速仍选择内置后端并说明原因,未暗中修改用户已有 daemon 的全局设置。 +- 安装任务区分包下载、清单解析、包文件安装、游戏本体/加载器准备。最后阶段给出库/资源真实检查计数、原生库解包及状态保存;剩余阶段未知时用不定进度,全部返回成功后才完成总任务。 + +- 本轮实窗发现的运行中“补全/校验”、启动计划和脚本入口已同步禁用;实例概览的启动按钮也显示再次开窗文案。模组更新查询增加已检查/总数/当前文件,取消后的迟到进度不能覆盖结果。 + +## 正式 WPF 下载链对照 + +基线:正式标签 `v1.5.0`,提交 `8746ad26f9df1eff9f5a3ea57311f82a14ec181b`。通过 `git show v1.5.0:<路径>` 阅读实际旧实现,并结合 `git diff v1.5.0 -- <相关路径>` 追踪新调用链。旧新目录不同,不能仅靠文件名判断有无移植。 + +| 能力/旧实现入口 | 新实现与状态 | 验证/剩余范围 | +| --- | --- | --- | +| `FileDownloader.DownloadCoreAsync` 来源顺序与 `ExpandVersionMetadata` | `DownloadSources` / `ModDownloadSources`、版本解析器及 `VerifiedDownloader` 已有逐源重试;本轮显示重试/来源和后端 | 坏源、哈希、Range/ETag 的现有回归;全提供方实际联网矩阵仍待补 | +| `ClubAria2Download.DownloadAsync` / `Aria2RpcClient` | `DownloadCoordinator` 本机 RPC、最终哈希校验、故障回退;本轮非默认并发与加权分段预算 | 增加真实 daemon 镜像回退/取消测试;服务自动发现/安装/启停尚未实现 | +| `FileDownloader` 的 `AdaptiveRangeDownloader` | 内置后端仍为单文件逐源传输;Aria2 分段可多源并行 | 尚未移植内置自适应分块算法;不可将“有多个来源”称为全部后端都支持多源分片 | +| WPF CF API key 分流 | CF 元数据只在固定 API 携带 key;文件下载保留 CDN 允许列表 | 本轮仅接齐共享预算,不把认证头交给 aria2 或任意镜像 | +| 旧 DownloadFile 字节、速度、活动线程与任务阶段 | 新端四阶段任务 + 文件行 + 全局速率;补后端、重试/校验、游戏资源真实计数 | 历史文件快照最多 250 行,不用它估算完整大包总文件数;任意单文件暂停/恢复尚未形成完整 UI | +| 失败/取消后的恢复 | 内部同源续传收据、aria2 owned GID;整包失败可重试,已导入包不重复导入 | 网络切换/SMB 中断与 Windows 原生下载窗口尚待验 | + +这张表仅完成下载部分的本轮逐项核对。账户、实例、设置、工具和其它页面仍须按正式 WPF 实际行为扩展清单;已明确移除的联机/视频背景不恢复。 + +## RLCraft 调查记录 + +已读用户提供的 GPT Pro 分享:https://chatgpt.com/share/6af44d44-d1a4-83ee-9270-65c1938f48e5 。纠正“LWJGL 2 必须 x64 Java/Rosetta”的绝对判断:存在 ARM64 Java 8 与匹配 LWJGL 2/JInput/OpenAL 的原生路径。当前仅纳入调查与实现清单,不安装 Rosetta、不启动 RLCraft。 + +原始资料: + +- Prism 官方 Java 表:https://prismlauncher.org/wiki/getting-started/installing-java/ +- MinecraftMachina ARM64 补丁元数据:https://minecraftmachina.github.io/meta-multimc-arm64/ +- LWJGL 2 补丁发布:https://github.com/MinecraftMachina/lwjgl/releases/tag/2.9.4-20150209-mmachina.2 +- Prism 规则:https://raw.githubusercontent.com/PrismLauncher/meta/main/meta/common/mojang-library-patches.json +- aria2 参数/RPC 语义:https://aria2.github.io/manual/en/html/aria2c + +后续以实际 Java 架构、固定补丁版本/哈希为规则,在 loader 合并后处理;不把 LWJGL 2 升为 3,不泛改旧模组或混合 ARM/x64 动态库。先原版→Forge→原包,核对输入、声音、全屏/DPI和 Windows 回归;具体数字版本尚须固定元数据 revision 后核验。 + +## 验证与交付 + +本轮证据目录:`.shou-dev/reports/macos-r31-20261111/`。首次失败与修复后的记录保留。 + +- Core 全量 732 通过、5 个沿用平台跳过;包括真实 aria2 daemon 的镜像回退、本机校验、取消暂停和重连续传。最后记录 `core-final.json/.log`。 +- Desktop 全量 243 通过、0 失败/跳过;含同包再次启动、运行中准备入口保护、整包等待最终准备/发布、模组更新计数及取消后迟到回调。最后记录 `ui-final.json/.log`。 +- RC1 已在真实同一个隔离 XPlus 1.21.1 副本启动两个游戏,PID/创建时间分别保留,临时/原生目录各两份;退出启动器后两者 PPID 均变为 1,重开识别运行状态,模组写入操作受保护。 +- RC1 真实 ATM10 更新列表:检查 494 项,37 项更新、6 项未核实;版本选择与确认启用/撤回通过,未应用更新。RC2 已实窗观察 67/494→105/494 的计数与当前文件,取消后立即恢复操作,未应用模组更新。 +- 第一对进程在等待原生 UI 许可期间已按准确 PID/创建身份用 TERM 收起,未冒称主菜单或正常菜单退出。用户随后明确批准本轮 QA 启动器和两个隔离游戏的原生接口;RC2 已使用同一副本完成后续验收。 + +剩余跟踪见 `todo.md` 的 R31/R30。用户个人 `/Applications` 安装与 `~/Games` 实例不作为测试目标。 + + +## RC2 最终原生验收 + +- 同一隔离 XPlus 6.1.3 / Minecraft 1.21.1 / Fabric 0.18.4,85 个顶层模组 JAR(游戏主菜单报告含嵌入项共 98 Mods),官方安装的 ARM64 Java 21,单窗口内存 3072 MiB。 +- 两个窗口分别为 PID 92737、92822,独立主菜单均实见。退出父启动器后,两进程同 PID/创建时间继续运行,PPID 为 1;重开启动器重新识别运行状态,准备/修复/启动计划与脚本入口保持保护。 +- 在第一窗口创建并进入隔离世界 `R3 Isolated`;第二窗口显示红色“Locked by another running instance of Minecraft”,禁止同时打开同一世界。第一窗口“Save and Quit to Title”后显示保存完成,第二窗口刷新后解除锁定并成功读回该世界,位置与场景保留。 +- 第一窗口从 Quit Game 退出时第二窗口独立存活并进入存档;第二窗口随后保存、回到标题并 Quit Game。两进程均消失,独立日志均包含 Stopping。因父启动器故意脱离,未另行采集这两个游戏的退出码,不将菜单退出观察伪写成 code=0。测试启动器两次关闭均由受监视 open 进程记录 exit0。 +- 用户个人应用、个人实例与存档未操作。全部测试游戏和 QA 窗口已关闭,原生工具本轮目标授权表已设 inactive;QA 启动器配置恢复为测试前逐字节副本。隔离测试世界与证据保留。 +- 关键证据:`rc2-game-results.json`、`rc2-first-normal-quit.json`、`rc2-two-games-{before-close,after-launcher-close,after-launcher-reopen}.json`、`rc2-native.json`、`rc2-reopen.json`、`cleanup-and-preservation.json`,以及 `native-evidence/04` 至 `19` 图像。 + +### 候选包 + +- 源码:`f5aa2dccba667ac5380a5cd801393bc1c414c43b`。后续文档提交不改变此包的应用源码。 +- ZIP:`/Users/moear/Code/SHOU-Launcher/.shou-dev/dist/MACOS-R31-20261111/rc2/SHOU-Launcher-osx-arm64-v1.5.0-dev.gf5aa2dcc.zip` +- SHA-256:`1f8610ecd1d389dd45675270af4e908416980cfaa2c2bfa894dbcb9b113027bc`;大小 51,906,331 字节。 +- .NET SDK 10.0.403、Avalonia 12.1.5、Release / osx-arm64 自包含;显式传入原 `.env`,构建核实 Microsoft/CurseForge 配置存在,未输出其值。 +- 本机 ad-hoc 签名候选,未公证、未正式发布。为避免 CUA 绑定个人应用,QA 副本只换 bundle 标识/显示名并重签 apphost;Core/Desktop 程序集逐字节一致,正式 ZIP 保持原样。 + +### 仍待完成 + +Aria2 服务发现/安装/启停,CF/FTB 在保持来源允许列表下的外部 RPC 支持,内置自适应分片与完整单文件暂停/恢复;下载管理完整历史与大包指标仍需扩展。实例目录重命名/迁移/恢复尚未做成产品能力。全 WPF 页面逐项差表、Windows 本轮原生回归、长时游玩与更多包/加载器矩阵继续跟踪。 + +RLCraft 的 ARM64 Java 8/LWJGL 2 补丁方案只完成资料调查与 TODO,未安装或启动。原生自动化在 Minecraft 文本框出现输入丢字,本轮使用实际可见的 `R3 Isolated` 名称完成测试,不能据此判断用户键盘输入或启动器存在确定缺陷。Mac 长列表滚动后的 CUA 点击几何不可靠,官方接口选中后 Enter 可进入;真实鼠标双击与搜索交互仍待独立复核。 diff --git a/docs/conduit/MACOS-R32.md b/docs/conduit/MACOS-R32.md new file mode 100644 index 00000000..bac1bfe1 --- /dev/null +++ b/docs/conduit/MACOS-R32.md @@ -0,0 +1,48 @@ +# Mac R32:外部 Aria2 端口优先 + +本轮接续 `features/windows-parity`;用户更正设计为“默认 localhost:6800/jsonrpc,用户提前启动 aria2/GUI,连接成功就用,否则内置”。不启动 Minecraft,不覆盖个人应用/实例,不创建服务、不修改全局 shell 配置;正常本地提交/功能分支推送沿用授权,不合并或发布。 + +## 行为与配置 + +- 默认 RPC 地址 `http://localhost:6800/jsonrpc`,保留可选密钥与现有优先使用开关;设置 → 管理中可保存后测试连接。只支持本机 RPC,共享输出路径无须映射。已保存的开关/端口保持原值,不覆盖用户配置。 +- 启动器不自动发现 `aria2c`、不安装、不开进程、不启停 GUI/daemon。Homebrew aria2 **1.37.0** 已按最初要求安装于 `/opt/homebrew/bin/aria2c`,未启用后台常驻。Windows 无需 winget 或 PATH 中存在 aria2。 +- 下载前以 `aria2.getVersion` 探测,2 秒连接探测时限;RPC 直连本机,不走系统代理、不跟随重定向。成功结果短时复用 10 秒,失败 3 秒,避免整包离线时每文件等待;显式测试立即重新探测。配置修订使缓存失效。 +- 未连接、密钥错误、RPC/传输异常或最终大小/哈希不符时走内置。用户取消时只暂停对应 GID,不回退重新下载。RPC 错误仅显示代码/类型,不展示响应正文、密钥或签名来源 URL。 +- 每个外部任务的来源/输出路径/分段数单独传入。代理按当前设置配置到新任务,不改 daemon 全局选项;不同系统代理规则不能准确表达时使用内置。控制 RPC 始终本机直连。 + +若自行在终端启动,可使用下列前台命令,另开终端保留它运行;也可在 GUI 中开启相同 RPC 端口。密钥如由 GUI 设置,在启动器设置填写同一值,不要放进报告或截图。 + +```sh +/opt/homebrew/bin/aria2c --enable-rpc=true --rpc-listen-all=false --rpc-listen-port=6800 +``` + +## CF/FTB 通道 + +保持 `CurseForgePackResolver` 的官方 CDN 允许列表与无 API 密钥重定向传输。为 Aria2 暴露生命周期受限的固定资源中继:只绑定 `127.0.0.1` 随机端口、随机能力路径,限定单资源 GET/HEAD、Host/请求头/单 Range;无任意 URL 转发入口。上游仍经过原受检 HTTP 传输与共享限速,Aria2 每段占用共享连接预算。离线回退重新指向原始允许来源,中继和请求随操作释放。 + +普通下载的严格 HTTPS 或全局限速尚不能由裸 RPC 完整约束,仍走内置并显示原因;不声称所有网络字节均走外部引擎。FTB 接口复用该通道,本轮没有下载真实 FTB 整包。 + +## 取消与恢复修正 + +真实 Homebrew 1.37.0 在取消后直接 `unpause` 可触发 `Piece::initWrCache` 断言并 exit134;先前中间回归保留于忽略目录,未作为通过结果。移除运行时 `changeOption` 仍能复现,因此不将原因归结于代理选项。 + +修正为暂停并等待空闲,保留 `.aria2-part` / `.aria2`,仅对 GID 与输出路径均匹配的本启动器任务移除旧请求记录,再以相同输出/新来源重新登记,由 daemon 侧车恢复分片。兼容暂停队列移除后直接不存在 GID 的行为。此方式也允许 CF 中继重建时安全更新端口。外部服务全局设置与其它任务不动;不调用 shutdown/pauseAll/removeAll。 + +## 验证与限制 + +聚焦回归 **15 通过 / 0 失败**,包含真实 `/opt/homebrew/bin/aria2c`:镜像失败切源、共享并发/最终哈希、取消后续传、CF 受检传输与限速/HTTPS、禁止重定向不覆盖原文件、新中继恢复;连接失败缓存、手动重新连接、错误/不可达端口回退及 RPC 重定向阻止亦通过。所有 daemon 由测试夹具启动在临时端口并只在夹具结束清理,不属于产品自动启动。 + +Core 全量 **737 通过 / 5 沿用跳过 / 0 失败**,Desktop 最终全量 **244 通过 / 0 失败**,均为 0 构建警告/0 错误。新增控件回归覆盖相同设置的后台快照不重建来源行、不清除连接结果且保持滚动位置。未启动游戏,未触碰个人存档;未做 Windows 本轮原生测试。持续大包聚合指标、内置自适应分段、任意文件完整暂停/恢复 UI、长时间断网及真实 CF/FTB 大包矩阵保留在 `todo.md`。 + +参考:[aria2 官方 RPC 文档](https://aria2.github.io/manual/en/html/aria2c.html)、[Homebrew aria2](https://formulae.brew.sh/formula/aria2)。验收依据为本机受控回归,不把官方文档当作产品测试结果。 + +## 最终候选与原生验收 + +- 源码 `224d61450b885f1ce040ff891292ec8069b96e32`;前一实现提交 `1d86c0de`。SDK 10.0.403 / macOS arm64 / Release / self-contained / Avalonia 12.1.5,显式读取原 `.env`,构建只记录 Microsoft/CF 凭据存在与提交匹配,未输出值。 +- 候选 `/Users/moear/Code/SHOU-Launcher/.shou-dev/dist/MACOS-R32-20261111/rc2/SHOU-Launcher-osx-arm64-v1.5.0-dev.g224d6145.zip`,51,919,457 字节;SHA-256 `c2ec7b114924dcfb5e02af68dde781abfda0debb17f308c283b10514b0af75bb`。ZIP 全条目 CRC、原始 app 与 QA 副本 `codesign --verify --deep --strict` 通过。本机 ad-hoc 候选,未公证、未正式发布;个人 `/Applications` 应用未替换。 +- CUA 真实窗口:管理页默认地址 `http://localhost:6800/jsonrpc`,开启优先外部并保存,连接到预先启动的 Homebrew 1.37.0;改为 `localhost:1` 并保存后显示“未连接…将使用内置下载器”,恢复 6800 后重连成功。这里离线提示为实窗结果,实际失败转内置传输另由核心回归核实。 +- RC1 实窗发现操作/后台快照重载会清空提示并跳位。RC2 采用设置页自身可取消读操作,未改变的设置不重复 Load;连接测试前后滚动位置 882 保持,结果不被普通快照清除。保存修改本身仍可能重建来源列表并跳位,单列 `R32-UI02`,不宣称整个设置页滚动完全修好。 +- Command–Q 后原生结果为 `normal_close` 且窗口句柄确已观察;夹具核对外部 daemon 仍存活,再在夹具清理阶段终止测试 PID。应用代码无 aria2 进程发现/启动/停止。QA 副本仅更改 bundle 身份/签名,Core/Desktop 程序集与原包一致。 +- 首轮 Mac 锁屏导致 Avalonia 原生渲染初始化失败;用户解锁后同候选启动恢复,锁屏失败记录仍保留,不将首次失败当作通过。未尝试自动解锁。 + +忽略目录证据:`.shou-dev/reports/macos-r32-20261111` 下 `core-full.json/.log`、`ui-stability.json/.log`、`external-gate2.json/.log`、`publish-rc2.json/.log`、`candidate.json`、`native-rc2.json`、`native-result.json`、`final-check.json`。真实窗口连接/断连结果另见本轮 CUA 记录;未伪造独立游戏或 Windows 验收。测试用外部 daemon 已退出,未创建常驻服务。 diff --git a/docs/conduit/MACOS-R33.md b/docs/conduit/MACOS-R33.md new file mode 100644 index 00000000..365975aa --- /dev/null +++ b/docs/conduit/MACOS-R33.md @@ -0,0 +1,53 @@ +# Mac R33:完整传输统计与设置保存 + +本轮在用户要求“继续完善 todo”下接续 `features/windows-parity`,从 `7c1d701` 开始;与 origin 功能分支相同、较 origin/dev 领先 171 提交且无分叉,继续原已授权功能任务,不另整合 dev/main。只验证启动器和文件,不启动 Minecraft、不读取真实账户凭据,不覆盖个人安装或存档。 + +## 完成范围 + +- 完整文件统计在 Core 按任务身份增量维护,覆盖全部本次启动的文件任务;UI 的最近 250 行不决定总数/字节/连接。重复完成替换旧贡献,重试回退进度、未知大小完成时补实测大小,缓存复用单独计数。 +- `DownloadTotals` 是本次启动汇总;`DownloadActivity` 是当前/最近一组;`DownloadHistory` 最多 50 组会话内操作记录。当前进度取当前组,旧失败记录仍可见而不拖低新成功组。累计就绪包含续传/缓存,不等于网络流量;解析会继续发现文件,未知工作和后处理保留不定进度。 +- HTTP 传输刷出最后字节的进度回调;重复完成不重复累计速度,显示超过 1.5 秒无新样本时归零。CF/FTB 固定资源通道保留 cache 标识。内置每文件按一个活动传输计,Aria2 采用报告的分段连接数;校验/结束后归零。 +- UI 后台快照通知合并为一次读取最新快照;完整统计在 Core 保留,不依赖处理每条 UI 通知。未知大小文件完成/取消后不再无止境转圈。 +- 设置来源内容语义相同时保留原行与选择,保存不会因为无关设置重载列表而跳位;有实质变更的放弃草稿仍读回旧值。中文限速说明按实际内置/外部后端策略修正。 +- Aria2 保持用户要求的本机端口连接优先,没有加入发现、安装、进程启停或 Windows 包管理器依赖。 + +## 旧新对应 + +以本仓库最后正式 WPF `v1.5.0` 为参照,读取版本内的实际调用链,不同步原上游,也未复制旧实现。 + +| 旧版本入口/数据 | 新端本轮对应与边界 | +| --- | --- | +| `Modules/Network/Models/DownloadFile.cs` 的 TotalSize / IsUnknownSize / DownloadedBytes / Speed / Progress | `DownloadStatistics`、`DownloadActivityTracker` 与行模型分离:累计就绪/已知总量/未知量、缓存和阶段明确;当前操作进度与会话总量独立 | +| `Modules/Network/Downloader/FileDownloader.cs` 的回调/分段分流 | 本轮补完整回调、速度终态和计数;旧 AdaptiveRangeDownloader 内置自适应分段尚待移植 | +| 原任务入口与下载状态展示 | 现有四阶段包任务保留;新加本次启动汇总和最近 50 组记录,不将其称作跨重启持久历史或完整逐文件暂停/恢复 | + +## 自动化 + +- Core **744 通过 / 5 沿用跳过 / 0 失败**。聚焦下载回归 94 通过,包含真实 Homebrew Aria2 以及本轮计数/CF 缓存保护。 +- Desktop 最终 **248 通过 / 0 失败**。构建均 **0 警告 / 0 错误**。 +- 310 文件 MRpack 服务实际导入,快照只留 250 行而完整统计/分组为 310;1,200 并发任务的重复完成保持计数/缓存不变;50 组历史裁剪不裁会话总量。 +- 未知大小、重试归零、校验、取消、零字节终态、旧失败不拖低新组、速度无新样本归零均有回归。1,000 条后台快照在 UI 队列只刷新一次并保留最后统计。 +- 设置修改后保存保留来源对象、选择与位置;放弃实质修改恢复旧值;880×560 汇总文字宽度和四阶段包准备行为保留验证。 + +## 原生验收 + +同候选使用仅更换 bundle 身份/签名的 QA 副本,Core/Desktop 程序集逐字节相同。复用隔离数据中的已安装原版 MC 1.21.1,仅点击“补全 / 校验文件”,没有点击任何游戏启动入口。 + +CUA 任务页与分组历史显示 **3,953/3,953 文件任务,875.81 MiB 就绪 / 已知总量 / 缓存复用**;明细 250 行,失败/取消/待处理均 0,活动连接 0、速度 0.00 MiB/s。展开历史仍为完整 3,953/3,953,未从最近行推算。全部为已有缓存核验,不冒写成大包在线下载或网络吞吐验收。 + +设置页把隔离 RPC 地址改为 6801 并保存,保存前后位置均 **602**,来源没有重新建行;正常 Command–Q 退出,结果 `normal_close`。原隔离主配置备份按原字节恢复,个人 `/Applications/SHOU Launcher.app` 和个人实例未触碰。 + +CUA 对滚轮反复报 `noWindowsAvailable`,重绑后仍存在;同一 CUA 内使用 Tab/Enter 进入任务页,用字段焦点定位设置完成验收。未擅自改用外部键鼠接口,也不将驱动失败直接判为产品滚动缺陷。此次没有 Windows 原生验证、游戏或服务器游玩。 + +## 候选与证据 + +- 源码 `35f4b0852030600af4fe068e6c93af3cf07a51d5`;SDK 10.0.403 / Avalonia 12.1.5 / osx-arm64 / Release / self-contained。显式使用原 `.env`,构建仅核对凭据存在与提交匹配,不输出值。 +- ZIP `/Users/moear/Code/SHOU-Launcher/.shou-dev/dist/MACOS-R33-20261111/rc1/SHOU-Launcher-osx-arm64-v1.5.0-dev.g35f4b085.zip`,51,926,202 字节。 +- SHA-256:`cec3c07c14f340e108b5f85328bd0b98d9fb031e480218c14d023050db82e1fa`。 +- 本机 ad-hoc 候选,非公证正式发行;不合并 PR、不修改 main/dev、不发布 GitHub Release。 +- 忽略目录证据 `.shou-dev/reports/macos-r33-20261111`:`core-focused`、`core-full`、`ui-final`、`publish`、`native-ui`、`native-result.json`、`native-observations.json`、`candidate.json`。首次 UI 聚焦仅因断言期望 GiB 而实际显示 MiB 失败,已改为实际单位并经最终全量通过;未隐藏失败记录。 +- 35 GiB 预估空间门禁生效,曾阻止下一轮测试;验证归档 CRC/程序集对应后回收 N2/N4 旧 app 解包副本与可重建发布 staging,保留 ZIP、报告和用户数据。未提高任务预算。 + +## 未完成 + +跨重启历史、精确网络字节/ETA、内置自适应分段及完整跨源续传,单项暂停/恢复和整组重试、失败定位仍待做。真实在线 CF/FTB 大包/断网、Windows、DPI/跨屏/VoiceOver、更多加载器与旧版兼容矩阵不在本轮完成清单;详见 `todo.md`。本次只完成所列下载与设置任务,不称整个启动器已完全取代 WPF。 diff --git a/docs/conduit/MACOS-R34.md b/docs/conduit/MACOS-R34.md new file mode 100644 index 00000000..74b5b272 --- /dev/null +++ b/docs/conduit/MACOS-R34.md @@ -0,0 +1,48 @@ +# R34:个性化、软件信息与自动保存 + +本轮依据用户提供的 WPF 截图和仓库正式 `v1.5.0` 的 `PageSetupUI` / `PageSetupAbout`、旧配色数据核对功能,在 Avalonia 桌面端补齐实现。继续 `features/windows-parity`,不合并 PR、不变更 main/dev、不正式发行。不启动 Minecraft,不替换个人安装或修改个人实例。 + +## 改动 + +| 页面 | 本轮恢复或调整 | +| --- | --- | +| 个性化基础 | 保留不透明度、窗口锁定、启动图标、提示、社团日志与材质;补天空蓝、龙猫蓝、死机蓝、嘉然、爱弥斯和高雅人士配色,浅深色可独立选择;旧 default/blue/jade 偏好仍可读。语义颜色覆盖页面、卡片、输入框、导航和标题栏,两套主题分别配置,顶部白色选中按钮保持深色文字。 | +| 字体与背景 | 全局和 MOTD 字体独立选择;三张既有社团照片轮播与淡入过渡,本机图片选择/恢复/刷新;九种适应方式、图片不透明度、模糊及 5–300 秒间隔。旧配置缺少新字段时使用默认值;保留跨平台字体名称,避免打开设置即清空。 | +| 背景音乐 | 本机 WAV/MP3/M4A 列表、播放/停止、音量、循环/随机、自动播放以及游戏运行时保持/停止/仅运行时播放策略。游戏状态来自已有会话快照,本轮未启动游戏验收这些策略。 | +| 标题与主页 | 无/默认/文字/图片标题;默认社团内容、空白、本地及网络主页;社团介绍和服务器显示开关。本地/网络主页沿用安全纯文本/Markdown,不执行旧 WPF/XAML;图片轮播保留,视频仍不在范围。 | +| 功能隐藏 | 按主导航、设置、工具、实例和特定功能分组;可隐藏模组更新和隐藏设置本身。F12 临时显示,再按恢复;不改持久偏好,不属于权限控制。 | +| 软件信息 | 原作者/PCL Community/社团头像及来源入口,ZRY/ZST 鸣谢、历史项目、Moeary/Codex 贡献者、隐私/版权、现有许可文本及运行环境;注明 EasyTier 仅为历史贡献,新版已移除大厅。更新仓库隐私说明,分开当前桌面版与旧 WPF 历史行为。 | +| 语言 | 只打包并显示简体中文、繁體中文、English 三个 UI 词典;旧非中文语言回退 English,港澳/繁体标签映射繁体。区域日期/数字格式仍独立,历史其他词典保留源码、不随桌面包加载。 | + +## 自动保存 + +移除设置页底部保存、放弃和草稿状态条。有效编辑合并 350 ms 后自动写入,关闭前补写;输入错误在页面内提示,保留上次有效配置,不跳转页面或弹阻塞对话框。实例和存档的显式保存流程保留,关闭时仍提醒未保存修改。 + +每次写入先捕获不可变配置和界面偏好,串行保存;保存期间的新编辑留待下一次写入,不用较旧回调覆盖。凭据通过安全存储,密码输入失焦才更新绑定,失败保留输入以便重试、提示不回显密钥。默认 Java 被工具更改时,仍保留冲突选择,避免较早的设置覆盖新的安全副本。工具操作不强制提交无关未完成设置;aria2 连接测试会先保存有效连接参数,仍遵守本机端口优先和内置回退。 + +## 验证 + +- Core 全量:744 通过、5 沿用条件跳过、0 失败。跳过为两个 Windows 目录句柄用例和三个需额外运行环境/证书夹具的用例。 +- Desktop 最终全量:261 通过、0 失败;构建均 0 警告/0 错误。包含连续输入合并、慢速写盘期间新编辑、失败重试/密钥引用、无效输入不覆盖、关闭补写与实例提示、三语言最小 880×560 布局、配色/背景/字体/音乐参数持久化、隐藏恢复、鸣谢头像和外链路由、分类切换/保存滚动位置、大标题行高、Mac 资源许可路径(含末尾斜杠)、英文最小窗口品牌图标边界。 +- 初轮失败记录保留:修正重复 XAML 属性;适配移除手动保存后的旧断言;回归发现的深色标题选中文字对比度已修正。最后只补翻译文本和 XAML 排版,经候选发布构建通过。 +- ZIP CRC、原候选和 QA 副本签名、Core/Desktop 程序集一致性已核对。QA 副本仅改 bundle 身份及根签名。 +- 2026-11-12 解锁后完成 CUA 原生验收:RC1 发现音乐空目录提示串页、软件名称裁切及跨分类滚动继承;RC2 发现 Mac 许可区域为空和英文品牌挤出右侧图标。均已修正,并新增相应回归,最终使用 RC3 复验。 +- 最终 RC3:中文/繁体/English 切换和保存,浅色嘉然/深色默认配色、标题图标与完整软件名称、历史鸣谢展开、四份既有许可文档及 Apache 正文、运行环境通过。原生窗口默认 976×636;880×560 最小窗口三语布局和英文图标边界为 headless 回归,不冒写所有 DPI 原生完成。 +- 自动保存实测:文本 `R34-native-autosave`、不透明度 95、嘉然配色、语言和主题在关闭重开后读回;输入相对游戏目录时页面内报错、配置仍保留有效值,清空后提示消失。无需保存/放弃条,也没有设置草稿退出弹窗。 +- 同时隐藏设置导航和隐藏面板,F12 临时恢复两者后取消隐藏,再按 F12 恢复正常状态,配置最终 `hiddenSections=[]`;滚动与展开可用。Mac 标题栏记录为同父容器 976×48,三按钮框 x=7/27/47、y=16、14×16,中心与标题栏一致。 +- 在隔离音乐目录创建静音 WAV,经 UI 设置零音量并播放,观察到一个仅指向该测试文件的系统 afplay,停止后所属播放器消失。未声称其他音频格式或游戏运行策略已原生完成。 +- 最终 RC3 两次 Command–Q 正常退出,结果均 `normal_close`、原生句柄已观察;没有启动 Minecraft,个人安装和个人实例未改。 + +## 候选与证据 + +- 源码 `c4ac0e6d8b7b0daf61613de457b2a78341b57c17`;SDK 10.0.403、Avalonia 12.1.5、osx-arm64、Release、自包含。显式使用原 `.env`,不输出或修改凭据。 +- `.shou-dev/dist/MACOS-R34-20261111/rc3/SHOU-Launcher-osx-arm64-v1.5.0-dev.gc4ac0e6d.zip`,52,817,431 字节。 +- SHA-256:`191017c5d608ae54de52dc045d444dd9547ef210b12b2c9e5878310d0e32b2bd`。 +- 本机 ad-hoc 候选,非公证正式发行;个人 `/Applications/SHOU Launcher.app` 未替换。 +- 忽略目录证据 `.shou-dev/reports/macos-r34-20261111`:`rc3-desktop.trx`、`core-full.trx`、聚焦/全量日志、`rc3-publish.json`、`candidate.json`、`native-result-4/5.json`、`native-observations.json`、`native-music.json` 及 PNG。空间门禁曾拒绝打包;核对 ZIP CRC 与程序集后仅回收旧 app 解包副本,保留对应 ZIP/报告,未提高 35 GiB 预算。 + +## 未完成 + +- Windows 原生、跨屏/DPI/VoiceOver、全部个性化组合、其他音频格式及游戏运行策略仍待验;Windows SMTC/系统媒体键尚未恢复。Mac 更改播放音量会从当前曲目开头重新播放,平滑调音待完善。 +- 既有账户/首页的繁体词条与部分英文校验提示仍会回退到简体或 English,待仅针对三语整理;不把切换验收写成所有旧词条已翻译完成。 +- 不把这些改动称作所有 WPF 功能完全复刻;下载跨重启历史、精确网络字节/ETA、内置自适应分段/完整逐文件恢复与真实 CF/FTB 大包矩阵仍见 `todo.md`。 diff --git a/docs/conduit/MACOS-R35.md b/docs/conduit/MACOS-R35.md new file mode 100644 index 00000000..84c6e06a --- /dev/null +++ b/docs/conduit/MACOS-R35.md @@ -0,0 +1,71 @@ +# R35:macOS 旧版 Minecraft 原生运行兼容 + +本轮按用户要求恢复 RLCraft 调查,目标为 macOS 上 RLCraft 可玩、McMouser 可用,补丁不得改变 Windows 体验。最终 RC2 已通过本机 RLCraft 2.9.3 / Minecraft 1.12.2 / Forge 14.23.5.2860 的真实主菜单、普通世界创建、创意/生存操作、McMouser、存档读回和正常退出验收;使用原生 ARM64 Java 8,无需 Rosetta。 + +## 实现范围 + +- 仅 macOS ARM64 Java 应用已知版本的运行库覆盖,在加载器继承合并后解析。原始 Mojang/Forge JSON 不改写;Windows、Linux、Intel Mac 不应用 ARM64 覆盖。 +- 旧 LWJGL 2 bindings/util 与 MinecraftMachina ARM64 natives、JInput Universal、JNA 5.13、text2speech 1.11.3 和 Objective-C bridge 使用固定 URL、大小和哈希;不把 LWJGL 2 升成 LWJGL 3。平台方案进入 Mac 原生缓存指纹,按版本、实际 Java 架构和启动会话隔离。 +- 原生库检查 Mach-O / Universal CPU 表,`.jnilib` 保留原文件并建立相同字节的 `.dylib` 别名;架构不符不启动。仅检查 McMouser 自带的 LWJGL 覆盖,不把其它模组内附多平台二进制误判为不兼容。 +- macOS LWJGL 2 不再强加 `-XstartOnFirstThread`;现代 LWJGL 3 保留该参数。Windows 的库、参数和原生缓存指纹不变。 +- macOS ARM64 的 Mojang `jre-legacy` / Java 8 缺口由 Azul 官方 Zulu 8u512 原生 JDK 补足,安装到启动器管理目录。固定 SHA-256、实际大小、路径/链接边界、解包预算、临时发布、Java 版本/架构探测与复用完整性检查;不改系统 Java 或默认 JAVA_HOME 25。自定义 Mojang catalog、其它系统/架构/Java 版本仍使用原安装器。 +- 只在 macOS 接受 Minecraft 1.12.2 / Forge 14.23.5 的已核实 LaunchWrapper 入口,同时核对 profile ID、Forge/LaunchWrapper 坐标、FMLTweaker 和继承身份;仍由经哈希验证的官方 Forge 安装器执行安装,不手造成功收据。Windows 不启用这个新增入口。 +- 不自动给用户整合包增加或替换 McMouser;本轮仅在隔离 RLCraft 中加入官方 1.0.3 文件进行验收。 + +- 首轮实窗发现 CurseForge 导入白名单漏掉 `resources` 与 `structures`,造成菜单缺图并漏掉结构数据。补回这两个游戏数据目录,仍拦截既有宿主脚本/可执行扩展;重新经生产导入服务下载、核验、安装,补回 816 个资源文件和 338 个结构文件。此为两端共享的数据完整性修复,Windows 的运行时、启动参数及原生库策略不变。 + +## 验证与当前限制 + +| 项目 | 结果 | +| --- | --- | +| Core 全量 | 765 通过,5 项沿用条件跳过,0 失败 | +| Desktop 全量 | 261 通过,0 失败 | +| 编译 | macOS ARM64 Release,0 警告/错误 | +| Java 8 | 官方归档 SHA-256 校验通过,真实执行为 `1.8.0_512-b09 / Arm64` | +| RLCraft 2.9.3 | 原包 Minecraft 1.12.2 / Forge 14.23.5.2860;187 项 required 全部解析,3,562 项导入清单完成(首轮 2,408 项,遗漏已补),官方 Forge 安装与游戏依赖准备完成 | +| 受限模组 | 复用 R29 浏览器从官方取得的 SRParasites 与 RTG 文件,重新核验官方大小/哈希,只复制到隔离缓存 | +| 原生库 | LWJGL、OpenAL 均 ARM64;JInput 与 McMouser LWJGL 均包含 ARM64 / x86_64 slice;JNI 别名字节一致 | +| 候选启动器 | CUA 真实点击启动隔离实例,游戏交接后恢复“再开一个游戏窗口”;没有全局忙碌锁住 | +| 游戏启动日志 | 最终 Java 进程 PID 22851;McMouser `Everything loaded`、`Enabled LWJGL mouse buttons 4 and 5`;OpenAL 初始化、Apple GPU OpenGL 2.1 初始化 | +| 真实主菜单与单机 | RC2 菜单纹理恢复;普通世界建档,创意放置石头、Ctrl+左键破坏、移动/跳跃/背包通过;切换生存模式后生命/饥饿/口渴 UI 与操作正常 | +| McMouser 输入 | 真实 macOS 事件验证 Ctrl+左键、滚轮 1→9、Shift+滚轮 9→1,控制设置分别识别 Button 4/5;测试后 Jump 恢复 SPACE/57。未宣称已遍历实体鼠标厂商驱动 | +| 存档读回 | 保存后从世界列表重新进入 `R35MacQAQA`,位置、石头/泥土快捷栏和生存状态保留;NBT 核对玩家模式 0、生命 20、14 个 region 文件 | +| 正常退出 | 两次保存世界后回到主菜单,点击 Quit Game;PID 22851 退出 code=0、cancelled=False、timeout=False。QA 启动器 Command–Q,原生结果 normal_close,两个 PID 均消失 | +| Windows | 平台门控及既有全量核心/界面回归通过;本轮未做 Windows 真机、Java 8/RLCraft 原生验证 | + +CUA 对 Minecraft 和实际 `com.azul.zulu.java` 均不能绑定;获得用户本轮明确授权后,使用 macOS 官方辅助功能、截图与键鼠接口,仅操作按 PID/创建身份登记的隔离窗口(含重启),没有沿用旧轮授权。验收结束后已关闭窗口并撤销本轮脚本的活动授权标记。 + +旧模组仍有 module-info 扫描、个别模组纹理/签名/旧网络资源警告,FoamFix 提示旧世界暂留,OpenAL 退出有 effect/filter 清理警告;本轮未见崩溃,读回及退出均正常。这是短时单机与输入验收,不替代长期游玩、着色器或全模组兼容矩阵。自动输入世界名的选择/事件差异仍记入旧待办,未把工具失准认作产品故障。 + +自动回归还覆盖非 Mac 平台不接收库覆盖、Windows 原始 JNA/URL/线程参数、旧 Forge 合并后解析、现代 Mac 首线程、Universal/错误架构、未知模组不误拦、损坏归档、越界条目/链接、错误 Java、已装文件篡改、锁/状态链接及其它平台原安装器委派。 + +## 候选与证据 + +- 产品提交:`0cb94d648990edeab6d7ff1b00d97d2deca5ef01`(前序原生运行时提交 `80e36d6c`,整合包资源修复提交 `0cb94d64`),分支 `features/windows-parity`。 +- ZIP:`.shou-dev/dist/MACOS-R35-20261112/rc2/SHOU-Launcher-osx-arm64-v1.5.0-dev.g0cb94d64.zip` +- SHA-256:`c1223412b5d99371515ee62b69ff305a9584edb47c175b72ba91c20c2bf93b20` +- 显式 `.env` 构建,微软/CurseForge 配置与提交身份校验通过,不记录值。ZIP CRC、ad-hoc 签名及 QA/候选 Core、Desktop 程序集一致性通过。RC2 构建 dirty 标记来自待收尾的报告/todo 和已有未跟踪计划文档;产品代码对应上述提交。 +- QA 包仅改 bundle 身份和根签名,以免绑定个人应用:`.shou-dev/dist/MACOS-R35-20261112/qa-rc2/SHOU R35 RC2 QA.app`。 +- 隔离数据:`.shou-dev/test-data/r35-native`;实例 `274686a781a54cda9a5444cf120d3ec6`。 +- 详细测试、归档、运行时、原生架构与窗口证据:`.shou-dev/reports/macos-r35-20261112/`。 +- 35 GiB 开发目录门禁曾阻止原生验收启动;核对保留 ZIP/重复文件后回收旧候选解包、重复构建暂存和两次全通过回归生成的 GUID 临时夹具;旧构建完整归档并校验,RC1 失败截图/日志、非模组备份、全部文件哈希与来源均保留,再通过原有门禁。没有提高额度或修改个人应用/存档。 + +## 未完成与使用边界 + +- Windows 真机、Intel Mac、其它旧版本/加载器与不同实体鼠标驱动尚未覆盖;本轮不扩展 Windows 的旧 Forge 支持,也不自动安装 Rosetta。 +- 已用旧版本导入而遗漏这两个目录的实例,需从原包重新导入;本轮没有自动覆盖用户现有实例或存档。Mac Java 8 安装在本轮隔离数据中,正常用户数据目录由同一安装器按需管理。 +- McMouser 本轮只安装到隔离 QA;用户自己的 Forge 1.12.2 实例可从下方官方发布页取得匹配 JAR 后放入 mods。不会暗中改动整合包模组集合。 +- 长期内存/世界切换、旧模组告警、游戏 Dock 名称/图标、更多 Mac 组合和现代游戏实测仍在 todo;其它下载/UI 待办继续保留。 + +## 来源与独立实现 + +用户提供的 [GPT Pro 分享](https://chatgpt.com/share/6af44d44-d1a4-83ee-9270-65c1938f48e5) 的前轮摘要仅作为调查线索;运行库实际身份按官方数据重新核实。 + +- [Prism Java 文档](https://prismlauncher.org/wiki/getting-started/installing-java/),[Prism 固定提交补丁表](https://github.com/PrismLauncher/meta/blob/9cac2ca1cf410146d3a04fbd33752820fefdd70e/meta/common/mojang-library-patches.json)。 +- [Prism 启动参数实现](https://github.com/PrismLauncher/PrismLauncher/blob/0786c494b02b93c51d7f401ca5376813f104a7d8/launcher/minecraft/MinecraftInstance.cpp),用于核对首线程参数的条件。 +- [ManyMC ARM64 运行库说明](https://minecraftmachina.github.io/meta-multimc-arm64/),[JInput 固定提交](https://github.com/r58Playz/jinput-m1/tree/8b2c3a10b4853923efc92f29cbad8e0f304dbd6d)。 +- [McMouser 官方 1.12.2 Forge 1.0.3](https://github.com/MinecraftMachina/McMouser/releases/tag/v1.12.2-forge-1.0.3),JAR SHA-256 `91ce2cec14ce932b44b8428b288431521841f49173e948b3dc4905024637a7e7`。 +- [Azul 官方归档](https://cdn.azul.com/zulu/bin/zulu8.98.0.111-ca-jdk8.0.512-macosx_aarch64.tar.gz),SHA-256 `523a350b96563e1ff406cf3c55e0211a5816b482a67b5f88a5ea9ba799fd32be`,实际大小 103,741,261 字节(元数据 API 的 size 为取整值 103,741,000,不能直接作精确下载上限)。 +- [Forge 官方安装器](https://maven.minecraftforge.net/net/minecraftforge/forge/1.12.2-14.23.5.2860/forge-1.12.2-14.23.5.2860-installer.jar);测试夹具只存官方元数据与出处哈希。 + +Prism 源码用于行为核对,未复制其 GPL C++/Python 代码;本轮 C# 解析、平台门控、归档安装与验证独立实现。未安装 Rosetta,未自动替换整合包中的模组,也未发布正式版本或合并 PR。 diff --git a/docs/conduit/MACOS-R36.md b/docs/conduit/MACOS-R36.md new file mode 100644 index 00000000..2d7a23a4 --- /dev/null +++ b/docs/conduit/MACOS-R36.md @@ -0,0 +1,45 @@ +# Mac R36:本地整合包手动补文件恢复 + +本轮继续 `features/windows-parity` 的 R29-P01:让本地 CurseForge ZIP 与软件内下载共用手动补文件行。官网文件需通过原归档、项目/文件身份、大小和哈希核实,逐项补充后重新预检;所有必需项就绪后仍需用户确认导入。 + +## 实现 + +- 本地面板提供官网、选择已下载文件和重新预检;文件名、大小、官方文件 ID 及换行操作布局共用同一模板,搜索页继续只保留搜索旁的本地入口。 +- 自动重新预检保留实例名称、准备游戏选项及同一归档的可选文件选择。预检失败或取消后禁止安装,保留可重试的剩余项;显式重检成功后恢复。 +- 切换归档、界面销毁、取消后迟到响应和原包哈希变化均有保护;旧文件选择回调不能补到另一个整合包。在线安装仍在全部补齐后继续后台任务,本地安装仍需显式确认。 +- 新增提示只维护简体中文、繁體中文、English,复用底层既有校验与允许来源策略;未改 Windows/macOS 运行库或游戏参数。 + +## 自动回归 + +- Core:765 通过、5 项沿用条件跳过;真实本机 aria2 夹具启用。 +- Desktop:269 全通过,其中新增 8 项覆盖错文件、逐个重检、保留名称/选项、取消后迟到结果、重检失败恢复、换包回调、归档改变、其它依赖继续阻塞及最小 880×560 布局。 +- 构建 0 警告、0 错误;首次定向回归的 UI 断言读了局部 `IsEnabled`,改为 Avalonia 实际可交互属性 `IsEffectivelyEnabled` 后全量通过。 +- 完整日志、TRX 与受限执行结果在 `.shou-dev/reports/macos-r36-20261112/`。 + +## 候选与范围 + +- 源码:`32b07f7e`;.NET SDK 10.0.403,Release / osx-arm64;显式使用仓库 `.env`,凭据值未输出或提交。 +- ZIP:`.shou-dev/dist/MACOS-R36-20261112/rc1/SHOU-Launcher-osx-arm64-v1.5.0-dev.g32b07f7e.zip`。 +- SHA-256:`d5f81cb028e99019df27edf15cf658e81223e6a95d110b8998e856f68b513c65`。 +- ZIP CRC 和应用签名通过;隔离 QA 应用仅修改 bundle 标识与根签名,Core/Desktop 程序集与候选相同。 +- 当前任务仅授权启动器和安装流程,本轮未启动 Minecraft。个人 `/Applications` 安装与 `~/Games/SHOU-Launcher` 未操作。 + +## 实窗与未完成 + +CUA 使用本轮候选的独立 QA 标识和 `.shou-dev/test-data/r36-native`: + +1. 从搜索旁“安装本地…”选择原 RLCraft 2.9.3 ZIP,显示 SRParasites(4436467)与 RTG(2782568)两项待补,未创建实例、安装禁用。 +2. 自定义名称为“R36 本地补文件验收”,勾选准备游戏文件;取消原生文件选择后,两项、名称及选项仍在。 +3. 刻意选择 ZIP 作为 JAR,得到明确的 SHA-1/大小不匹配提示;两项仍保留,不能安装。 +4. 通过原生选择器提供 Downloads 中原官网指定版本 JAR。首项成功后重新预检为剩余一项,名称/选项保留。 +5. 第二项写入验证缓存后取消重新预检:安装仍禁用;显式重新预检成功后待补清空,安装才启用。确认前实例目录为空。 +6. 关闭“同时下载并安装游戏文件”,明确点击导入,成功创建并选中一个新实例。3,562 项文件全部大小/SHA-1/SHA-512 复核,合计 367,546,238 字节,其中 `resources/` 816 项、`structures/` 338 项。没有执行游戏入口或准备游戏运行环境。 +7. 返回首页显示新实例;Command–Q 触发 `normal_close`,运行报告 native handle 为真,包装进程退出 0,QA 进程消失。 + +原归档 SHA-256 为 `5caa25d31f47f4ac69846e4faa741811baa9239804747769f6d54f7b1bbf1291`。复用 R35 已验证的不可变内容/加载器下载缓存硬链接以节省空间,排除手动补文件缓存、账户、配置、运行时和实例;本轮两份手动文件由真实选择器加入并按官方元数据校验。故此结果属于真实 UI、官方元数据与缓存安装验收,不是所有模组的全新网络下载性能测试。 + +本地证据包括 `native-wrong-file.png`、`native-installed.png`、各阶段 AX、`native-result-1.json`、`installed-manifest-verification.json`、`preservation-and-exit.json`;均位于本轮报告目录。任务仍执行 35 GiB 空间上限,回收范围仅限已通过回归运行产生的 GUID 合成夹具,完整日志/TRX 保留。 + + + +Windows 原生文件选择器、更广现代 CF 包/断网矩阵、跨重启任务恢复仍待补;本地预检仍以阶段文字为主,尚无逐项解析计数。其它下载、模组、国际化和跨平台待办保留在 `todo.md`,本轮不称完整功能复刻完成。 diff --git a/docs/conduit/MACOS-R38.md b/docs/conduit/MACOS-R38.md new file mode 100644 index 00000000..23bf28ad --- /dev/null +++ b/docs/conduit/MACOS-R38.md @@ -0,0 +1,63 @@ +# R38:整合包可选文件选择与恢复 + +本轮补齐 R37 审计发现的 CurseForge 可选文件缺口。旧 WPF v1.5.0(`8746ad26`)在 `ModModpack.cs` 中收集 `required=false` 并询问是否下载;移植版此前只解析必需项。本轮恢复用户选择能力,使用集中列表代替逐个弹窗。继续在既有 `features/windows-parity` 分支开发,未改动 `dev`、`main` 或正式发布。 + +## 行为与实现 + +- 本地 CF ZIP 显示默认展开的客户端可选文件列表,默认均不勾选;选择后自动重新核实,再执行导入。必需项不受选择影响。名称和“同时下载并安装游戏文件”选项在重检、补文件后保留。 +- 软件内下载任务遇到 CF/MRpack 可选项时停在“等待选择可选文件”,点击“按所选项目继续安装”才继续;可以明确选择全部跳过。不会自动全装,也不会无提示略过。MRpack 本地既有选择能力保持。 +- CF 名称由官方文件元数据提供;未选项的元数据不可用时显示项目/文件 ID 和提示,不阻塞必需项。选中后仍须通过原有官方解析、来源、大小和哈希核验。 +- 预检计划以归档 SHA-256 和所选键集合共同标识。未知键、重复键、将必需项伪装成可选项均拒绝;切换选择不能误用另一份缓存计划。归档内容变化清除旧选择认可,重新确认后再继续。 +- 选中不允许第三方下载的 CF 文件时,沿用官网获取、选择已下载文件、官方身份/大小/哈希核验与重新预检流程。取消选择会撤销对应补文件入口;迟到的选择器回调、取消后回调、页面销毁均不能偷偷导入。后台取消/重试保留同包选择,但重新要求确认。 +- 安装清单将所选 CF 可选项记为 `Client=optional`;CF 再导出保留 `required=false`,不把可选项转成必需项。 +- 本次选择只控制 manifest 中的**可选下载**。CF overrides 仍按 R37 完整复制;包作者已经放进 overrides 的同名内容不会因取消远程下载而被删除。未重新加入目录或扩展名白名单。 +- 新增提示维护简体中文、繁體中文和 English;不代表历史词条已全部译齐。 + +涉及 Core 的 `LocalPackContracts`、`CurseForgePackSelection`、解析器、预检/手动补文件/暂存及导出,以及 Desktop 的本地安装、后台任务、共享选择模板和三语资源。没有改变 Windows 的运行库、Java 或游戏启动策略。 + +## 自动化验证 + +最终源码提交:`6154ba27017c6dc0a561552d1f304e598ac589b6`。 + +| 项目 | 通过 | 跳过 | 失败 | +|---|---:|---:|---:| +| Core 全量 | 786 | 5 | 0 | +| Desktop 全量 | 283 | 0 | 0 | + +构建 0 警告、0 错误。新增 20 项回归(Core 7、Desktop 13),包含真实服务/下载器夹具的子集与缓存隔离、未选元数据不可用、选中缺文件、错误/正确手动文件、导出可选标志,以及本地和后台的取消/重试、归档变化、迟到回调、页面销毁与 880×560 布局。后台 MRpack 的显式选择也有回归。 + +五项沿用条件跳过为两项 Windows 目录句柄用例及三项需要外部真实 Java/证书环境的用例,未计作通过。aria2 测试使用本机已安装的官方工具路径,不要求产品自动发现或启动守护进程。 + +日志和最终 TRX:`.shou-dev/reports/macos-r38-20261112/core-final.*`、`desktop-full.*`。 + +## Mac 原生验收 + +使用 CUA 操作最终候选的隔离 QA 应用和原生文件选择器。样本为合成 CF manifest,引用 BetterTabs 与 RTG 的真实官方项目/文件身份;元数据在线获取,内容使用先前验证缓存。手动补充 RTG 由真实 Downloads 文件选择器完成。此证据不等同于重新联网下载一个完整整合包或网络性能测试。 + +| 流程 | 观察与落盘结果 | +|---|---| +| 不勾选可选项 | `R38 None` 仅含配置,1 文件 | +| 仅选 BetterTabs | 自动重检并导入 `R38 BetterTabs`,配置 + BetterTabs,2 文件 | +| 仅选 RTG,需手动补充 | 先停在缺文件状态,不创建第三实例;选错 ZIP 明确拒绝;选择正确 RTG 后名称/勾选保留,显式导入 `R38 Manual RTG`,配置 + RTG,2 文件 | + +三个实例的实际文件集合与安装清单完全一致,配置原字节 SHA-256、全部文件大小/SHA-1/SHA-512、官方文件身份和可选标志均核实。未选的另一个模组不存在。原生滚动和文件选择器可用;Command–Q 正常退出,退出结果 `normal_close`、原生窗口句柄为真,QA 进程消失。 + +本轮未启动 Minecraft,三个实例都未准备游戏本体;隔离账户为空、游戏会话不存在。没有操作个人应用或个人实例,`.env` 元数据和无关计划文件哈希不变。 + +本地证据包含 `native-manual-pending.ax.txt`、`native-wrong-file.ax.txt`、`native-manual-ready.ax.txt`、`native-manual-installed.ax.txt`、选择截图、`native-subsets-final.json`、`native-result-1.json` 和 `preservation-and-exit.json`。空间门禁保持 35 GiB/预留 20 GiB;只回收已通过运行时间范围内的合成 GUID 夹具,完整日志/TRX/候选保留。 + +## 候选包 + +- .NET SDK 10.0.403,Release / osx-arm64;显式使用本地 `.env` 编译,未输出或提交凭据值。 +- ZIP:`.shou-dev/dist/MACOS-R38-20261112/rc1/SHOU-Launcher-osx-arm64-v1.5.0-dev.g6154ba27.zip`。 +- SHA-256:`8fccc6a47b909eb0502b4bfc8a5bf16361d2187b462f56fedc891a7e21015e3b`。 +- ZIP CRC、应用签名通过;QA 只改变 bundle 身份与根签名,Core/Desktop 程序集与标准候选逐字节一致。此为本地候选,未正式发布,也未覆盖个人安装。 + +## 尚未完成 + +- Windows 真机可选列表/原生选择器;真实软件内在线整合包的完整可选项 UI 流程。本轮后台路径由集成与 Avalonia 测试覆盖,实窗覆盖本地入口。 +- 更大 ZIP 的流式处理、ZIP64、多卷及固定预算替换;HMCL/MCBBS/MultiMC/普通压缩实例和多加载器组合,继续沿 R37 待办推进。 +- 远程 aria2、重复确认交互、跨重启传输历史与恢复、真实网络字节/ETA等仍未完成。 +- Intel Mac、其它游戏/加载器、长期游玩和实体鼠标矩阵沿 R35 待办保留;本轮没有扩张游戏验收结论。 + +完整剩余项见仓库 `todo.md`。已由用户取消的联机大厅、视频背景、自动更新及额外语言不重新列入实现范围。 diff --git a/docs/conduit/MACOS-R39.md b/docs/conduit/MACOS-R39.md new file mode 100644 index 00000000..1b1d96da --- /dev/null +++ b/docs/conduit/MACOS-R39.md @@ -0,0 +1,75 @@ +# R39:拖入安装与实例模组管理 + +按旧 WPF 正式版 `8746ad26` 的 `FormMain.FileDrag`、`PageInstanceCompResource`、`ModLocalComp` 和 `MyLocalModItem` 核对交互,在既有 Core/Avalonia 中实现。旧 WPF 文件保持不变;未引入 WPF 运行时或更改 Java、游戏进程及 Mac 原生库补丁策略。 + +## 拖入安装 + +| 输入与上下文 | 本轮行为 | +|---|---| +| 单个 ZIP/MRpack,非实例资源页 | 自动识别并进入安装和游戏文件准备;无额外选择时直接继续。有可选文件、缺文件、无效/冲突名称时保留面板供处理;不自动启动游戏 | +| ZIP 内容、RAR 后缀 | 与旧版一样尝试按 ZIP 读取;不声称支持真正的 RAR | +| 当前实例资源包/光影页的 ZIP | 分别装入 `resourcepacks` / `shaderpacks`,刷新当前列表,不跳整合包页 | +| 模组文件 | 支持同扩展名的批量 JAR/LiteMod 及 `.disabled/.old` 包装;在模组页直接安装,在其它页面确认目标实例。安装时恢复启用状态,LiteLoader 文件继续核实加载器 | +| 同名模组 | 恢复旧 WPF 的替换语义,原 JAR 与精确清单另存 `.shou-mod-backups/local-import-*`;移除被替换文件的旧在线身份,再按实际新文件核对来源。复制失败/取消不覆盖原文件 | +| 同名资源包/光影 | 沿旧版分支拒绝同名覆盖,原文件保留 | +| 投影文件 | 支持同类型批量 `.litematic/.nbt/.schematic/.schem`,当前页直接导入,其它页确认实例 | +| 存档列表的 ZIP | 接入已有世界预检/导入服务,成功预检后继续安装;沿用当前已验证的世界格式和版本边界 | +| 本地文件 URI | 可接收浏览器提供的本地 `file:` URI;不把任意网页链接当作本机文件 | + +目标实例在选择器/确认后重新核对。列表导入改用固定实例/类别快照;批量发生错误时明确报告已完成数量。移除单个本地内容文件 512 MiB 和实例列表静默 2,000 项截断;复制使用临时文件,枚举可取消,源复制期间变化会失败。归档本身的 R37-LIMITS 没有据此宣称完成。 + +## 模组管理 + +- 进入模组页后自动后台检查,不占用全局忙碌遮罩。进度、取消、离页/换实例/销毁后的迟到回调均有处理。实际写入前等待已取消的扫描关闭 JAR 句柄,兼顾 Windows 文件共享语义。 +- 本地大小/SHA-1/SHA-512 与安装清单先核对。Modrinth 批量哈希识别,CF 已登记文件保留精确项目/文件身份,未登记文件增加官方 fingerprint 批量匹配;CF 身份仍独立核对 SHA-1 和大小。指纹使用与旧版一致的过滤空白 Murmur2,以两遍流式读取实现。 +- 按实际哈希、大小、游戏版本、加载器、来源和目录配置隔离六小时元数据缓存;读取不延长原检查时间。自动检查复用缓存,手动检查强制重新查询;每次生成新的短期更新令牌。失败不计为最新版,项目图标/介绍失败不丢弃已经核实的更新。 +- 原列表支持全部、启用、禁用、可更新、错误和重复筛选,显示数量,并与文字搜索组合。重复项综合本地 Mod ID 与官方项目 ID 判定,单边在线识别不会拆散已知重复项。 +- 行内显示更新状态和更新入口;可查看新旧版本、更新日志及本地详情。补在线名称、介绍和图标;五种排序使用名称、文件名、创建时间、大小和已取得的分类标签。 +- 选中后才显示批量工具栏。批量启停、更新、回收与恢复均接入;更新使用一次明确的操作提示,移除原先重复勾选确认。多个更新分别保留备份,失败项记录后继续其它项,结果显示成功/总数。 +- 删除移入实例内回收目录,带文件双哈希与原清单条目。恢复核对实例、文件、冲突和清单变化;事务中途失败回退,既有文件不覆盖,恢复后保留诊断收据。未提供永久清空。 +- 增加基础归档错误、重复 ID、声明的依赖 ID 和第一层内嵌 JAR 信息检查,以及 TXT/CSV 信息导出。未将它称为完整依赖兼容分析。 +- 新增静态提示维护简体中文、繁體中文与 English;历史动态提示和全部旧词条的翻译仍按 R34-LANG-NEXT 保留。 + +## 验证 + +Core 最终全量 **802 通过 / 5 条件跳过 / 0 失败**,Desktop **295 全通过**,Windows x64 交叉编译通过,0 构建警告/错误。日志/TRX 为 `.shou-dev/reports/macos-r39-20261112/core-final2.*`、`desktop-rc3.*` 和 `windows-rc3.*`(RC3 仅调整 Desktop 布局,Core 结果沿用未变的 Core 源码)。五项沿用跳过为 Windows 目录句柄及外部真实 Java/证书环境用例。 + +新增 Core 16 项、Desktop 12 项回归,包含路由、选择目标变化、自动查询与取消、筛选/排序、一次确认批量更新、部分失败继续、回收恢复、原文件/清单变化、同名模组替换、超过 2,000 项列表、嵌套元数据、官方指纹向量和身份匹配、六小时缓存与手动重查、最小窗口及等待扫描释放后才写入。RC3 加强已有最小窗口用例:长条未核实信息默认折叠、展开后可见,880×560 下首行模组保持可见。 + +使用空间门禁串行执行构建/测试,预算保持 35 GiB、系统预留 20 GiB。回收的仅为已通过运行时间窗口内的 GUID 合成夹具及已核对 ZIP 内容、没有运行进程的旧展开候选;对应 ZIP、全部日志/TRX、个人应用和实例保留。 + +## 实窗与候选状态 + +最终 RC3 源码 `e81480b9045d083849a99be194c72b2e09fd808a`(主体功能 `2c8853e9`,重复判定修复 `c4a2d4e1`),.NET SDK 10.0.403,Release / osx-arm64;显式使用本地 `.env`,未输出或提交凭据值。 + +- ZIP:`.shou-dev/dist/MACOS-R39-20261112/rc3/SHOU-Launcher-osx-arm64-v1.5.0-dev.ge81480b9.zip`。 +- SHA-256:`9b49290681866b0ed01c5b00c0040c8f9e9c17875b70e8a1a52ecd5c0c49d4f8`。 +- ZIP CRC、标准/QA 应用签名及 Core/Desktop 程序集一致性均通过。QA 仅修改 bundle 身份与根签名。RC1 锁屏初始化失败及 RC2 验证脚本曾误指旧 QA 的拦截记录保留;解锁后未再复现初始化失败。 + +锁屏期间,另一份无账户隔离数据直接调用 RC2 生产程序集:在线检查 4 个模组,识别 Sodium 0.8.12 → `mc1.21.1-0.8.13-fabric` 并完成更新。新 JAR 大小/SHA-1/SHA-512、原 JAR 及精确清单备份一致;批量禁用 → 回收 → 恢复 → 启用通过,恢复哈希不变。证据为 `production-service.json`、`production-service-run.*`;这是服务/API 验收。 + +用户解锁后,完成以下真实界面验收: + +| 候选 | 操作与观察 | 证据 | +|---|---|---| +| RC2 | 进入模组页自动检查,4 项中找到 Sodium 一项更新;“可更新”筛选原列表为一行。行内更新经一次提示后成功,旧 JAR/精确清单备份和新文件双哈希一致,再查变为零项更新 | `native-auto-complete.ax.txt`、`native-sodium-updated.ax.txt`、`native-update-trash-integrity.json` | +| RC2 | 重复项筛选选中 Alpha/Beta 两项,批量禁用、回收到实例内回收站、恢复、启用;计数/文件后缀随操作变化,恢复字节不变,诊断收据保留 | `native-trash.ax.txt`、`native-update-trash-integrity.json` | +| RC2 | 错误筛选只显示损坏归档;检查模组展示基础重复/依赖/内嵌信息。文件选择器安装资源包留在当前页,文件字节一致 | `native-update-trash-integrity.json` | +| RC3 | 真实 Finder 多选并拖入两项 JAR,当前模组列表从 4 变 6,并显示“已导入 2 个文件”;资源包和光影 ZIP 分别直接进入当前实例对应目录及列表 | `native-drag-mods.ax.txt`、`native-drag-resource.ax.txt`、`native-drag-shader.ax.txt`、`native-drag-integrity.json` | +| RC3 | MRpack 拖入自动解析后,因存在客户端可选文件而停留面板,默认未勾选该文件。关闭本次样本的游戏准备选项后,创建独立实例成功;可选文件未下载。这是合成包的可选项/文件导入验收,没有覆盖无选择时全自动游戏文件准备 | `native-drag-mrpack.ax.txt`、`native-mrpack-installed.ax.txt`、`native-drag-integrity.json` | +| RC3 | 去掉大块快捷操作卡片,状态摘要与默认折叠详情分开,筛选使用启动器配色;展开/收回信息正常,未知文件保持未核实。鼠标拖边实测 880×560,首行完整可见,列表及侧栏保留滚动入口 | `native-rc3-minimum.png`、`native-rc3-final.ax.txt`、`native-resize.json` | +| RC2/RC3 | 原生窗口建立成功,两轮均经 Cmd-Q 正常退出,包装脚本退出 0 | `native-result-2.json`、`native-result-3.json`、`native-rc2.*`、`native-rc3.*` | + +CUA 能操作大部分控件,但滚动报告 `noWindowsAvailable`,未提供跨应用拖入坐标。用户明确授权后,限定本轮 QA 可执行文件与 `samples` Finder 窗口,使用 macOS 官方窗口/辅助功能/拖动接口补验;QA 程序及样本文件均在隔离根下。辅助功能设置尺寸虽返回成功但实际尺寸未改变,随后用窗口边缘实际拖动并查询窗口边界确认 880×560。未操作个人应用、账户或游戏实例;未启动 Minecraft。样本 Finder 窗口和两轮 QA 已关闭。 + +所有原始证据位于 `.shou-dev/reports/macos-r39-20261112/`。最终布局修正后 Desktop 全量 295 通过、Windows x64 交叉编译再次通过,0 警告/错误;新增布局测试第一次编译缺少命名空间引用,修正后通过,初次失败日志保留。 + +## 保留的差距 + +- 完整递归 Jar-in-Jar、依赖版本范围/冲突图、禁用删除级联、子目录浏览、资源收藏/分享等仍未齐;当前基础检查只给诊断,不擅自启停依赖。 +- CF 没有第三方下载 URL 的模组更新仍需完整手动更新闭环;本轮不猜 CDN。更新仍沿用现有同游戏/加载器正式版策略,不能承诺整合包整体组合兼容。 +- HMCL/MCBBS/MultiMC/普通压缩实例及更大归档/ZIP64 沿 R37 清单推进;Authlib URI、XAML 主页和错误报告的统一拖入尚未复刻。 +- 资源包/光影的在线身份、完整更新/启用语义及游戏内效果仍待核验;窗口文件导入不等同于游戏效果通过。 +- Windows 原生拖入/文件锁/选择器、Mac 全部拖入来源与格式、完整 DPI/键盘/VoiceOver 矩阵仍待实机;交叉编译和自动化不替代这些结果。 + +完整未完成项见仓库 `todo.md`。本轮不合并 PR、不改稳定分支、不正式发布。 diff --git a/docs/conduit/MACOS-R40.md b/docs/conduit/MACOS-R40.md new file mode 100644 index 00000000..af1cbb0d --- /dev/null +++ b/docs/conduit/MACOS-R40.md @@ -0,0 +1,55 @@ +# R40:递归模组声明与关系页(2026-11-12) + +本轮承接 R39 的模组管理,对照旧 WPF 的 `ModJarInJar`、`ModJarInJarIndex` 与 `PageInstanceCompJarInJar`,在独立 Core/Avalonia 中补齐只读声明分析。旧 WPF 源码、游戏启动参数、平台兼容补丁、个人应用和实例均未改动。 + +## 本轮实现 + +- 独立的 `IInstanceModRelationsService`:进入关系页才读取递归声明,搜索和筛选使用已读取结果,不增加模组列表首屏的递归工作;不请求在线目录,不提取或执行 JAR 内容。 +- 读取 Fabric/Quilt 的 ID、别名、必需/可选依赖及原始版本要求,递归声明中的 JAR;读取 Forge/NeoForge 多 Mod ID、依赖和 JarJar 清单,以及 `mcmod.info` 中的多个 ID/必需依赖。多加载器 JAR 优先使用当前实例加载器的声明;NeoForge 的冲突声明不误列成依赖。 +- 依赖来源区分独立声明、内嵌声明、仅存在于已禁用文件、未找到声明、读取不完整。内嵌节点继承物理宿主的启用状态;损坏子归档保留父节点,未核实项不当作兼容或最新版。 +- 新的“模组关系”页提供文件选择、深层 ID/依赖搜索、“只看需要检查的文件”、依赖来源路径、缩进的递归声明树、错误详情、重新读取与返回模组。“检查模组”入口接入此页;不支持新接口的测试/旧服务保留原基础诊断。 +- 读取有独立取消和代际检查:离页、切换实例、关闭界面丢弃迟到结果。模组写操作等待已取消的关系读取释放文件句柄,继续保留 Windows 的读写顺序。 +- 新增界面静态文案维护简体中文、繁體中文和 English。 + +分析边界沿旧 WPF 读取器的五层嵌入、每宿主 512 节点、单内嵌项 256 MiB、每宿主 512 MiB、整次读取 2 GiB;超出时明确展示不完整。它们只约束这次只读分析,不限制导入、删改、游戏加载,也不会过滤整合包内容。源码读取还核对大小/修改时间和取消,不把被修改的文件继续作为完整结果。 + +## 验证 + +- Core 全量:**813 通过、5 沿用条件跳过、0 失败**,日志/TRX 为 `.shou-dev/reports/macos-r40-20261112/core-full-final.*`。新增 11 项覆盖多层内嵌、别名、禁用宿主、多个提供者、损坏子归档、预算截断、不安全路径、Quilt、Forge/JarJar、多加载器及取消。五项跳过仍为 Windows 目录句柄和外部 Java/证书环境用例。 +- 全量编译暴露 R39 测试中一处可空断言警告,补上明确非空断言后,对新读取器与该缓存用例共 **12 项定向复核通过,0 构建警告/错误**;见 `core-final-focus.*`。Core 产品代码此后未改动。 +- Desktop 最终全量:**300 全通过,0 构建警告/错误**,见 `desktop-final2.*`。新增 5 项覆盖进入自动读取、递归搜索、筛选、取消重读、实例/页面切换、销毁、写入等待,以及 880×560 布局与选择器一致性。 +- 首次 Desktop 全量抓到空数据时的根路径绑定错误,改为父容器控制可见性后通过。RC1 实窗进一步发现选择器初始化时先选择后填列表,造成初始显示空白;RC2 修正顺序,保留重读选中项并使用模组名称作辅助功能标签,回归已补齐。首次失败日志保留。 +- Windows x64 最终交叉编译通过,0 警告/错误,见 `windows-final.*`。这不替代 Windows 实机验收。 +- 所有重任务串行经过空间门禁,维持 35 GiB 总预算及 20 GiB 系统预留。门禁曾拦截预算不足的测试;仅回收已校验 ZIP 的闲置展开候选,以及按成功运行时间窗口识别的 GUID 合成夹具,ZIP/日志/TRX/原生测试数据和个人文件保留。全量测试预留峰值按同类运行的实际临时文件体量调整为 1 GiB,未提高总预算。 + +## 候选与实窗 + +最终 **RC2** 源码 `8d3a8f5667501a1f2f301b5e786ab6e300de702f`,.NET SDK 10.0.403 / Release / osx-arm64;显式使用本地 `.env`,未输出或提交凭据值。 + +- ZIP:`.shou-dev/dist/MACOS-R40-20261112/rc2/SHOU-Launcher-osx-arm64-v1.5.0-dev.g8d3a8f56.zip`。 +- SHA-256:`12912d59a7642c0117a1f468434d04603919d03f09ae1a4182b56bb1903c8096`。 +- ZIP CRC、标准/QA 应用严格签名、Core/Desktop 程序集一致性通过;QA 只改 bundle 身份与根签名。 + +CUA 在独立无账户实例进行真实界面验证,使用五个合成 JAR 加一份真实 Sodium 0.8.13 文件:共 **6 个物理文件、15 个声明节点、11 项依赖**。 + +| 操作 | 实际结果 | 原始证据 | +|---|---|---| +| 从“检查模组”进入关系页 | 初始选择器明确显示 R40 Consumer,详情一致;依赖 alias 指向三层路径,禁用提供者单列,可选未知项保持未核实 | `native-consumer-rc2.ax.txt`、`native-consumer-rc2.png` | +| 搜索 `r40_inner` | 选择器切到 R40 Host,显示 Host → Middle → Inner 与别名及完整内嵌路径;没有把内嵌文件提取到磁盘 | `native-nested-rc2.ax.txt`、`native-final-tree.*` | +| 重新读取 | 搜索和当前 Host 选择保留,选择器与详情同步 | `native-reload-rc2.ax.txt` | +| 搜索不存在的模组 | 显示没有匹配,清除选择及旧详情 | `native-empty-rc2.ax.txt` | +| “只看需要检查的文件” | 仅余 Consumer 与 Broken Host;正常宿主和真实 Sodium 不被错误列入 | `native-issues-choices-rc2.ax.txt` | +| 查看损坏内嵌归档 | 父模组名称/ID 保留,子项明确显示不完整 | `native-broken-rc2.*` | +| 文件与退出检查 | 六个物理 JAR 的 SHA-256 逐项不变,没有额外实例文件;RC1/RC2 均 Cmd-Q 正常退出,包装脚本退出 0 | `native-preservation.json`、`native-result-1.json`、`native-result-2.json`、`native-rc1.*`、`native-rc2.*` | + +本轮界面操作只使用 CUA,没有沿用 R39 的原生接口授权。CUA 初始绑定先于候选注册,首次返回 Invalid app;待候选已建立窗口后按独立完整路径绑定成功。文本输入首次漏掉下划线,经读取当前文本发现后改用 CUA 值设置/粘贴核对;未当作产品搜索故障。原始 RC1 选择器缺陷与修正前证据保留。 + +本轮不启动 Minecraft,个人安装和实例未操作。880×560 为本轮控件布局回归结果;未新增声称原生最小尺寸、Windows 或游戏效果验收。全部日志、TRX、截图及隔离收据在 `.shou-dev/reports/macos-r40-20261112/`。 + + +## 尚未完成 + +- 本轮是声明树与 ID 来源分析;展示原始版本约束,不求解 Fabric/Quilt/Maven 版本范围,不宣称实际可加载。Forge JarJar/Fabric 多版本候选选择、Minecraft/环境过滤、完整别名版本、硬冲突/软冲突图和启停删除级联仍待完善。 +- Quilt 组合依赖等无法解析的声明会标为不完整;未知注解/旧元数据、更多格式、复杂 TOML 方言及完整读取缓存/增量刷新仍待补。 +- 无选择 MRpack 的全自动游戏准备、非资源页目标确认、世界/投影拖入、CF 无下载 URL 手动更新、资源包/光影完整更新语义、子目录/收藏分享继续按 `todo.md` 推进。 +- Windows/Intel Mac 原生、完整 DPI、键盘及 VoiceOver 矩阵仍待实机。本轮不启动 Minecraft,不将界面结果写成游戏兼容验收。 diff --git a/docs/conduit/MACOS-R41.md b/docs/conduit/MACOS-R41.md new file mode 100644 index 00000000..f509c942 --- /dev/null +++ b/docs/conduit/MACOS-R41.md @@ -0,0 +1,43 @@ +# R41:实例资源列表贴近旧 WPF(2026-11-12) + +本轮以用户提供的模组、资源包、光影三张 WPF 实窗图为直接视觉参考,对照 `PageInstanceCompResource` 与 `MyLocalCompItem`,改进现有 Core/Avalonia。旧 WPF 源码保持不变;当前功能分支继续为 `features/windows-parity`。 + +## 界面与交互 + +- 三页恢复共同结构:带搜索图标的搜索卡片、工具栏卡片、带筛选和右侧排序的列表卡片。工具顺序为打开文件夹、从文件安装、下载新资源、全选、导出信息;模组页另有模组关系。 +- 列表实际行高 44 像素,图标 34×34;名称与版本在同一行,下一行是标签、文件名与描述。长文字省略并保留详情,不再每项占用四行。更新标记紧跟版本。 +- 模组行提供详情、定位文件、启停和回收图标;鼠标悬停、键盘焦点和选中状态下显示。资源包/光影保留可用的详情与定位,不放置尚未实现的启停/回收空按钮。 +- 行点击和空格支持选择;按钮操作不会再次切换选择。多选工具条放到右下浮层,选中时不把列表整体向下推;导出优先采用实际选中项,未选时导出筛选结果。资源包和光影的全选与导出一并可用。 +- 按旧 WPF 的规则显示有意义的筛选:全部/当前筛选保留,其余仅在有对应文件时显示;全部启用时不重复显示启用筛选。排序与筛选在同一卡片头部,手动重查、重新读取和回收入口保留,自动检查状态移至列表尾部。 +- 共享文件列表也适用于投影目录,截图和存档继续使用各自专用视图。新静态文案及资源包/光影分类标签维护简体中文、繁體中文、English,搜索仍保留原始分类标识。 + +## 本地与在线展示信息 + +- 资源包和光影 ZIP 可读取本地 `pack.png`/`icon.png`,资源包描述支持普通文本与 JSON 文本组件。元数据仅用于显示,不解包、不执行、不改变导入规则;坏描述不遮掉有效图标,坏 ZIP 仍保留文件行和明确错误。 +- 新的只读资源信息服务按文件 SHA-1/大小核实 Modrinth 版本,再核实项目 ID 与资源类型,补名称、当前版本、描述、分类与在线图标。已核实结果按内容身份缓存六小时,读取不会延长原检查时间。 +- 本地模组/资源包展示和关系读取兼容 BOM、注释、尾逗号及说明字符串的原始换行;说明压成单行,标识与归档路径校验保留,不用于远端身份或安装清单。真实 BetterGrassify 归档不再因换行被误报损坏,坏结构仍提示错误,原 JAR 不改写。 +- 每项有超时、并发上限与取消;未识别/网络失败继续保留本机信息。离页、换实例或重新读取丢弃迟到结果,写入等待已取消的读取释放句柄。 +- 这不是资源包/光影的更新安装实现:未生成更新令牌、未猜测新版本、未显示虚假的“可更新”计数。CF 专有身份等无法核实的资源继续用本地展示信息。 + +## 验证 + +- Core 最终全量 **827 通过 / 5 条件跳过 / 0 失败**,新增 14 项:本地图标/描述与只读性、坏描述、展示预算、坏 ZIP 保留、真实生产服务的哈希/大小/项目 ID/资源类型校验与缓存。 +- Desktop 最终全量 **311 全通过**,新增 11 项:三页共同结构、44 像素行高、880×560 六项可见、标签搜索、选中导出、非模组能力边界、单行操作/旧行失效、实际鼠标选择及图标按钮不误触、异步资源信息与迟到结果、旧服务回收能力。 +- Windows x64 最终交叉编译通过。最终构建 0 警告/错误;原始日志/TRX 位于 `.shou-dev/reports/macos-r41-20261112/core-final.*`、`desktop-complete.*`、`windows-rc3.*`。 +- 布局回归发现旧通用列表样式仍在添加 16 像素留白,纠正激活器优先级后验证实际行距为 44。早期测试的处理器委托参数错误和错误在线身份未按单文件降级的问题均已修正,失败日志保留。末轮标签回归的内部只读属性测试接法及初始化等待条件已修正,最终通过生产异步信息路径验证,失败记录保留。 +- 重任务维持 35 GiB 任务预算、20 GiB 系统预留、单重任务门禁;仅回收已核对 ZIP 与程序集、没有运行进程的旧展开候选,以及已通过全量运行创建的 GUID 合成夹具;RC1 正常关闭后保留 ZIP、实窗证据并回收展开副本。ZIP、日志、原生夹具和个人数据保留。 + +## 候选与实窗 + +- 最终 RC3 源码 `f327cd002974d27eec17d65dd8ccfd2042123a92`,ZIP `SHOU-Launcher-osx-arm64-v1.5.0-dev.gf327cd00.zip`,大小 52,940,869 字节。SHA-256:`48d3e65ed40d03bc7cffcee6064fdfa8f2f7defffe7ba63b7b22091f3606a15a`。显式 `.env` 构建,Microsoft/CurseForge 配置均确认;ZIP CRC、标准/QA 签名、Core/Desktop 程序集一致性通过。QA 仅更名与重签根签名,不替换个人 `/Applications` 安装。 +- 隔离样本为 13 个真实模组、4 个资源包、4 个光影,共 21 文件;使用已有嘉然配色(garnet)对照用户截图,不改变产品默认值或个人偏好。 +- RC2 已经 CUA 实窗验证:13 项模组显示与 8 项自动更新筛选、原始换行说明不再误报、右下多选条、详情不改变选择、单行禁用/恢复启用和回收精确目标后取消;资源包全部选择/取消;光影名称搜索。资源包 2 项在线核实/2 项本机保留,光影 4 项全部核实,图标与版本正确。 +- RC1、RC2 均以 Command–Q 正常退出;样本 21 文件复核 SHA-256 不变,未启动游戏、未改个人实例和账户。CUA 语义点击列表行只改变系统高亮,多选通过实际复选框/全选验收;普通鼠标行点击另有 Avalonia 实际指针回归,不能把系统高亮当作多选证据。 +- 解锁后重新打开同一 RC3(源码与 ZIP 哈希未变),CUA 补验三页最终画面:13 模组/8 更新,资源包 2 项核实/2 项本机保留,4 光影均核实;原版风、含语言、兼容模组、泛光、卡通风、低配、彩色光照、幻想风、极低配、半写实和阴影等中文分类显示正常。Command–Q 后 `normal_close`、进程消失,21 个样本文件 SHA-256 不变。最终截图为 `.shou-dev/reports/macos-r41-20261112/native-rc3-{mods,resourcepacks,shaders}.png`,多选条仍见 RC2 的 `native-rc2-mods-selected.png`。 +- 锁屏期间首个 RC3 QA 达到预设计时而退出,记录为 `exit_after`,不算交互验收通过;解锁后的运行 `r41-native-4` 才作为最终通过证据。原始限时退出、重启日志和验收结果均保留在 `native-rc3.*`、`native-rc3-resume.*`、`native-result-4.json` 与 `native-rc3-complete.json`。本次仅补实窗与文档,未修改产品代码或重编候选。 + +## 未完成 + +- 资源包/光影完整更新、游戏内启用语义和回收、CF 专有来源的完整在线身份、收藏分享、目录层级等仍按 todo 推进;当前未用占位按钮伪装实现。 +- 旧 WPF 其它页面及全部交互并未一次性复刻完成;模组关系的版本约束求解、实际内嵌选择、冲突/级联继续保留。 +- Windows 原生、Intel Mac、完整 DPI/三语长文本、键盘/VoiceOver 矩阵与游戏效果仍待覆盖;本轮不启动 Minecraft,不将交叉编译当作 Windows 实窗通过。 diff --git a/docs/conduit/MACOS-R42.md b/docs/conduit/MACOS-R42.md new file mode 100644 index 00000000..c8a41795 --- /dev/null +++ b/docs/conduit/MACOS-R42.md @@ -0,0 +1,38 @@ +# R42:资源包与光影包更新(2026-11-12) + +本轮延续 `features/windows-parity`,对照旧 WPF `PageInstanceCompResource.UpdateResource` 的共同资源列表行为,在独立 Core/Avalonia 实现资源包、光影包更新。旧 WPF 源码、个人应用及个人实例保持不变;未启动 Minecraft。 + +## 本轮功能 + +- 进入资源包或光影页自动检查,不弹全页遮挡;按已安装文件的 SHA-1、SHA-512、大小及安装来源核对身份。支持 Modrinth 哈希识别与 CurseForge 来源/指纹识别;无法核实的文件保留本地信息,不计作最新版。 +- 按项目类型和当前游戏版本查正式版更新;资源包/光影不套用实例的 Fabric/Forge 加载器条件。自动检查使用六小时缓存,手动重查绕过缓存;检查进度、取消、超时及迟到结果保护复用现有流程。 +- “可更新”计数与筛选、名称旁更新箭头、右下“更新所选”均接入真实更新令牌。资源包/光影点击后直接更新,模组继续保留原警告;某项失败会记录并继续余项。 +- 先下载校验,再备份原压缩包与精确原安装清单,最后替换和提交清单;错误、取消或目标变化回滚。备份位于实例 `.shou-resource-backups`;原有模组备份目录保持。 +- 保留所选资源在实例中的文件名,避免资源包启用列表及 Iris/OptiFine 光影引用失效;显示版本来自已核实的在线文件身份,不通过改文件名猜版本。 +- 按旧 WPF 的所选资源更新范围,仅替换所选压缩包,不顺带安装或升级依赖模组。依赖声明保留在详情,完成提示说明本次范围;不把声明当成完整兼容分析。 +- 更新后筛选归零显示“当前筛选下没有可更新的资源”,不再误称实例没有资源。新增静态提示维护简体中文、繁體中文、English。 + +## 验证 + +- Core 最终全量 **847 通过 / 5 条件跳过 / 0 失败**,Desktop 最终全量 **320 全通过**,Windows x64 交叉编译通过,最终构建 0 警告/错误。新增 Core 20 项、Desktop 9 项。 +- 覆盖精确文件身份、资源类型、正式版/同游戏版本、缓存与强制重查、CF 资源类型及不附带加载器条件、过期/跨类型令牌、备份清单、固定安装文件名和游戏配置不变、下载失败/取消/外部变化、发布后回滚、资源依赖不安装模组及拒绝额外文件事务。 +- 桌面覆盖自动检查不挡操作、原列表可更新筛选、行内直接更新、批量失败继续、手动重查、旧行/离页迟到结果、最小窗口控件、依赖详情及更新归零提示;原模组确认流程回归保留。 +- 首轮合成下载失败的测试预期未处理下载器聚合异常,已修正并保留失败日志。首轮原生验证还发现资源更新会顺带安装依赖模组,以及筛选归零文案不准确;已修正后重新编译测试,首轮 QA 数据和日志完整保留,不能把该轮当作最终范围验收通过。 +- 原始报告:`.shou-dev/reports/macos-r42-20261112/core-final.{json,log,trx}`、`desktop-final.{json,log,trx}`、`windows-final.{json,log}`。SDK 为任务工具链 .NET SDK 10.0.403;macOS arm64、Release。 +- 重任务维持 35 GiB 任务预算、20 GiB 系统预留及单任务门禁;空间检查曾拦下新任务,仅回收已验证 ZIP 的无运行展开副本及通过测试的 GUID 合成夹具。所有候选 ZIP、日志/TRX、原生证据与个人文件保留。 + +## 候选与实窗 + +- 最终 RC2 源码 `ea75d0e7162d984699abfb40ce206054a9a56ee8`,ZIP `SHOU-Launcher-osx-arm64-v1.5.0-dev.gea75d0e7.zip`,大小 52,947,681 字节;SHA-256:`c5775437f902813582e351759a7cfffd2cc14ce14d8ac95de5c8145cadc4570f`。显式 `.env` 构建,Microsoft/CurseForge 配置确认,ZIP CRC、标准及 QA 签名、Core/Desktop 程序集一致性通过。 +- 独立数据目录、无账户及未安装游戏的 QA 实例,复制 4 个真实资源包、4 个真实光影;不替换个人安装。首次候选的副作用数据单独保留,RC2 使用新复制的数据。 +- CUA 实窗完成资源包自动检查 → 可更新筛选 → 行内直接更新 Translations for Sodium **v7.12.0 → v8.23.0**;依赖声明在详情,完成提示说明范围,筛选归零提示正确。资源包共 4 项,其中 1 项无法核实,未标为最新版。 +- CUA 实窗完成光影自动检查 → 可更新筛选 → 勾选 BSL → 右下“更新所选” → **10.1.1 → 10.1.8**,无模组确认弹窗。返回全部列表显示新版本,手动重查仍为 0 项更新。 +- 两个更新文件与独立读取的官方 Modrinth 版本数据核对大小、SHA-1、SHA-512 全部相符;保留原安装文件名。6 个未选压缩包 SHA-256 不变;`options.txt`、`optionsshaders.txt`、`config/iris.properties` 三份启用配置字节不变,未创建 `mods` 目录,最终安装清单仅含所选资源包与光影两项。 +- 两个原压缩包备份 SHA-256 与输入相同;首次资源包更新前无清单,因此备份中也无伪造清单;光影更新备份的原清单与更新前捕获字节完全相等。Command–Q 后 `normal_close`,QA 进程消失,未启动游戏。 +- 证据在 `.shou-dev/reports/macos-r42-20261112/native-final*.{json,ax.txt,png}`、`native-result-2.json`、`official-resourcepack-release.json` 与 `official-shader-release.json`;更新所选界面见 `native-final-shader-selected.png`,最终列表见 `native-final-shaders-updated.png`。 + +## 仍待完善 + +- Windows 真机、Intel Mac、完整 DPI/键盘/VoiceOver、游戏内实际显示效果未验;交叉编译不等于 Windows 实窗验收。 +- CF 禁止第三方下载时的手动更新补档、更多版本选择策略、完整依赖兼容/冲突求解、资源启停和回收、收藏分享与子目录等继续按 todo 推进。 +- 本轮没有验证游戏内重新载入资源或光影效果;保持启用引用的文件字节,只证明更新未改写配置,不代表运行时兼容已经通过。 diff --git a/docs/conduit/MACOS-R43.md b/docs/conduit/MACOS-R43.md new file mode 100644 index 00000000..7cff5f38 --- /dev/null +++ b/docs/conduit/MACOS-R43.md @@ -0,0 +1,61 @@ +# R43:WPF 资源回收与下载详情衔接 + +2026-11-12;续作 `features/windows-parity`,起点 `b6de92f1`。本轮核对旧 WPF 的实例资源行为,优先补删除/恢复与下载详情衔接;保持旧 WPF 源码不变,未启动 Minecraft,未改个人应用、实例或账户。 + +## 旧新差距与本轮结果 + +参考 `Plain Craft Launcher 2/Pages/PageInstance/PageInstanceCompResource.xaml.cs` 的 `BuildLocalCompItemBtnHandler`、`Info_Click`、收藏和分享处理。旧代码作为行为参考,跨平台实现沿用现有 Core 事务和桌面页面。 + +| WPF 行为 | 本轮处理 | +| --- | --- | +| 非模组文件提供信息、定位、删除;只有模组额外提供启停 | 资源包、光影和投影补行内删除与批量删除;采用实例内可恢复回收,不添加非模组启停开关 | +| 已识别资源信息可进入下载详情 | 本地详情加“查看下载详情”,复用版本、下载、收藏;保留精确实例、目录、游戏版本和返回原页搜索的上下文。比旧版直接跳转多一步 | +| 收藏分组、批量收藏、特定分享码协议 | 尚未复刻;已有单项目收藏可经详情访问,复制链接不等于旧分享码 | +| 文件夹双击进入 | 目录层级仍待补,当前回收范围为现有顶层文件列表 | + +## 实现 + +- 增量 `IInstanceContentTrashService` 支持 `resourcepacks`、`shaders`、`schematics`。复用模组的移动、精确收据、双哈希、安装清单同步、取消/失败回滚及冲突保护;不同类别使用 `.shou-content-trash/<目录>`,旧 `.shou-mod-trash` 和收据格式不变。 +- 恢复保留已登记条目的角色字段与后续无关安装;未登记资源不凭空创建安装清单。目标被外部占用、收据或回收文件改变、路径越界/链接时拒绝恢复,不覆盖外来文件。 +- UI 捕获实际单项/多选文件后确认;写入先取消并排空检查句柄。回收读取和恢复结果核对当前实例、目录与类别,离页结果不污染其它页面。恢复面板为单行,收起只隐藏列表,重新读取仍可恢复;没有永久清空入口。 +- 已核实的模组/资源包/光影详情可进入现有版本页;资源/光影不套用模组加载器过滤。返回时验证原实例/目录/类别,保留原搜索;未知文件无伪造下载入口,无关项目打开会清除旧返回上下文。 + +接口与边界记录于 [CONTRACTS](../../CONTRACTS.md)。 + +## 自动验证 + +SDK `.NET 10.0.403`,Release;重任务通过既有空间和串行门禁运行,预算维持 35 GiB、系统余量 20 GiB。 + +| 验证 | 结果 | +| --- | --- | +| Core 全量 | 860 通过、5 条件跳过、0 失败;新增 13 项 | +| Desktop/Avalonia 全量 | 332 通过、0 失败;新增 12 项 | +| Windows x64 交叉构建 | 通过,0 警告/错误;不代替 Windows 真机 | +| macOS arm64 构建/打包 | 通过,0 警告/错误;显式读取本机 `.env`,微软/CF 配置检查为真,未输出机密值 | + +新增用例覆盖三类回收/恢复、服务重建、后续安装合并、未登记资源、取消回滚、占用/篡改/越界/链接、跨类别和实例、读句柄排空、旧行和迟到结果、最小窗口恢复面板、真实目标/过滤/返回上下文以及无关项目导航。初次 UI 针对测试因夹具给两个项目同名而失败 2 条,修正夹具后 28 条针对及全量通过;初轮记录保留。 + +5 条跳过沿用条件:两项 Windows 目录锁、真实 B5 证书运行时、真实 PKCS12/keytool、官方 Delta21 下载探测;未将其记为通过。原 aria2 显式本机回归配置继续用于全量测试。 + +## Mac 实窗与落盘证据 + +生产程序集的独立 QA bundle,测试目录 `.shou-dev/test-data/r43-native`,无账户、未安装游戏本体;只复制上轮隔离验收的 4 个资源包、4 个光影及 3 份启用配置。 + +1. 资源包 SodiumTranslations:取消回收仍 4 项;单行回收后 3 项、安装记录从 2 到 1;收起、菜单重读、恢复后 4 项。 +2. 光影 BSL 与 Complementary Reimagined:真实勾选两项,确认清单准确;批量回收后 2 项。切到资源包读取回收站不出现光影记录;切回光影重读同一双文件收据并恢复到 4 项。 +3. Sodium 搜索→本地详情→下载详情:显示目标 `r43-managed` 的真实隔离目录、1.21.1、加载器“任意”,在线版本列表读取成功;收藏→取消收藏后返回原实例资源页,保留 Sodium 搜索。未点安装/下载,不触发依赖模组安装。未识别的 Mod Menu Helper 只显示本地详情,无“查看下载详情”。 +4. 正常 Cmd-Q 退出、CUA 库存无 QA 应用、进程消失,native result 为 `normal_close`。8 归档与 3 配置的 SHA-256 全部与验收前一致,2 项安装条目语义精确恢复;两份 `restored.json` 保留,无活动回收收据,无 mods 目录,账户仍 0。 + +截图、完整 AX、TRX、JSON 与原生结果位于 `.shou-dev/reports/macos-r43-20261112/`。本机 `.env` 的 inode/mtime/size/mode 与未跟踪计划文件 SHA-256 均保持不变。仅回收成功测试的 GUID 合成夹具及经 ZIP/程序集匹配、确认未运行的旧候选展开目录;原 ZIP、日志、原生夹具及失败证据保留。 + +## 候选 + +- 源码:`4600994357a24bc04b522af8fdcdbcb896b00f17`。 +- 文件:`.shou-dev/dist/MACOS-R43-20261112/rc1/SHOU-Launcher-osx-arm64-v1.5.0-dev.g46009943.zip`。 +- 大小:52,953,210 字节。 +- SHA-256:`add79b89c834fbd3229aec7124267bb7bd75ed441618bf4984c8625689b9478b`。 +- ZIP CRC、标准应用与 QA 的代码签名验证、Core/Desktop 程序集逐字节一致性通过。QA 仅更改 bundle 身份与根签名。此为功能分支本地候选,未正式发布。 + +## 尚未完成 + +收藏分组/批量收藏、旧分享码协议、文件夹导航和 CF 无下载 URL 的手动补档优先保留;资源版本选择、依赖兼容及更新备份恢复入口仍需核对。回收日期需统一本地时区和三语计数格式。投影原生回收、重启恢复实窗、Windows 真机/Intel Mac/完整 DPI/键盘/VoiceOver、游戏内启用/重载与实际效果尚未覆盖。服务重建/恢复由自动测试覆盖,不冒称跨平台原生或游戏验证完成。 diff --git a/docs/conduit/MACOS-R45.md b/docs/conduit/MACOS-R45.md new file mode 100644 index 00000000..0b037ba8 --- /dev/null +++ b/docs/conduit/MACOS-R45.md @@ -0,0 +1,82 @@ +# R45:截图、导出目录与 WPF 页面衔接 + +2026-11-12,续作 `features/windows-parity`,起点 `333f56db`,包含已拉取的 `origin/dev`。本轮按 R44 的只读审计,先修截图格式/60 张限制,再接 CF/MRpack 目录选择,随后补服务器状态、日志打开、收藏图标/搜索与 Windows 全局 Java 控制台设置。旧 WPF 源码仅作行为参考,未改旧端;用户本轮明确不启动 Minecraft。 + +## 旧新行为与本轮处理 + +| 对照项 | 旧 WPF 入口与行为 | R45 结果 | +| --- | --- | --- | +| 截图格式 | `PageInstanceScreenshot.xaml.cs` 枚举 PNG/JPG/JPEG/BMP/WebP/TIFF | 统一枚举、缩略图和复制解码,另兼容 TIF;不再出现 JPG 可列出却无法解码的问题 | +| 截图续载与打开 | `RequireAppend`、`ListAppendAsync(20, ...)`;点击缩略图由默认程序打开 | 每批 20 张,滚到底追加,另有手动续载;移除 60 张总上限并显示已加载/总数;补原图打开 | +| 客户端导出 | `PageInstanceExport.xaml.cs` 可选其它目录、存档及资源分项 | 新目录浏览与单文件/整目录选择接既有 `OverridePaths`;显示选择清单,可移除/清空,父目录覆盖子项时去重 | +| 实例服务器 | `ServerCard.xaml/.cs` 图标、MOTD、人数、状态、刷新/复制 | 复用状态查询,补图标、纯文本 MOTD、人数上限、版本、查询耗时和单项/全部刷新、复制地址;不是重新读取 `servers.dat` 冒充网络刷新 | +| 历史日志 | `PageSetupLog.xaml.cs` 条目打开原日志 | 补独立打开按钮,通过系统默认程序打开精确文件;脱敏导出路径不变 | +| 收藏 | `PageDownloadCompFavorites.xaml.cs` 图标与本地搜索 | 收藏恢复线上图标,新增名称/作者/描述/来源/类型的本地包含匹配;分组、批量与旧分享码尚未接 | +| Windows Java 控制台 | 旧启动设置及现有 Core 的 `UseConsoleJava` | 补全局设置绑定、加载/自动保存;仅 Windows 显示,Mac 不接 Windows 可执行文件选择 | + +R44 的原始审计与实窗证据保存在 `.shou-dev/reports/macos-r44-audit-20261112/AUDIT.md`,不将那轮旧候选测试计作本轮新测试。 + +## 实现边界 + +- 图片文件继续限制 32 MiB,尺寸轴不超过 16,384、总像素不超过 64 Mi;这是解码预算,不是截图张数上限。按批异步解码,离页/换实例/销毁取消并释放图片,旧回调不污染新页。复制沿用现有剪贴板所有权及竞争保护。 +- TIFF 使用纯托管 `BitMiracle.LibTiff.NET 2.4.660`,避免依赖 Mac 外部命令或给 Windows 添系统工具要求;先检查尺寸再分配有界栅格,缩略图最大 480×270。压缩变体、EXIF 方向/多页等更大矩阵尚未穷尽,解码不能保证任意损坏文件可读。 +- 包中随附新依赖的官方许可正文、来源和 SHA-256;构建采集本地固定文件,不在打包时临时联网。参考 [官方 API](https://bitmiracle.github.io/libtiff.net/help/api/BitMiracle.LibTiff.Classic.Tiff.html) 与 [官方许可源文件](https://github.com/BitMiracle/libtiff.net/blob/master/license.txt)。 +- 目录枚举只读并检查链接、相对路径和当前实例;根凭据文件显示不可选。可以明确选择未知模组目录、脚本、存档或普通文件,没有添加导入/导出类型白名单。原归档预算、精确凭据排除、事务和运行实例写保护仍保留。 +- CF/MRpack 选择共用现有本地配置/资源复选框;同实例切页保留额外选择,换实例清空。服务/UI 可取消,旧目录行、迟到结果和旧实例回调不生效。 +- 服务器最多四项并发查询,失败清理旧状态,取消/切页/换实例防迟到回填;只读取状态协议,不启动游戏,不写服务器 NBT。显示的耗时含连接与查询,**不称为 Minecraft 协议 ping RTT**;彩色 MOTD 和完整信号/菜单尚未还原。 + +详细接口见 [CONTRACTS](../../CONTRACTS.md)。 + +## 自动验证 + +SDK `.NET 10.0.403`,Release,macOS arm64。重任务串行并使用既有空间门禁;35 GiB 任务预算与 20 GiB 系统余量未放宽。 + +| 检查 | 结果 | +| --- | --- | +| Core 全量 | 872 通过、5 条件跳过、0 失败;较 R43 新增 12 项 | +| Desktop/Avalonia 全量 | 347 通过、0 跳过/失败;较 R43 新增 15 项 | +| Windows x64 交叉构建 | 通过,0 警告/错误;不代替 Windows 真机 | +| Mac 发布构建 | 通过,0 警告/错误;显式使用本机 `.env`,微软/CF 配置检查为真,未输出值 | + +新增覆盖七种图片扩展名、83 张续载、非 PNG 回收恢复、目录/文件导出及导入往返、越界/链接/凭据/取消、状态协议元数据/坏图标/取消、旧页面回调、日志文件路径、收藏图标/搜索,以及 Windows 设置持久化和 Mac 能力区分。5 条跳过沿用两项 Windows 目录锁、真实 B5 证书运行时、PKCS12/keytool 与官方 Delta21 下载条件。 + +初轮 SKCodec 调用使用错误重载导致编译失败,修正为托管流;针对测试还先后发现图片夹具父目录未创建、MRpack 测试误用 `overrides/` 而不是 `client-overrides/`,均已修正后通过针对及全量。Windows 首次门禁统计与夹具回收并发导致 `du` 路径消失,未开始编译;改为串行后交叉构建通过。补许可后的打包曾被 35 GiB 预算拦住,核实未运行、ZIP CRC 与程序集一致后回收旧展开候选,保留 ZIP/日志/证据再构建。未关闭门禁或将这些失败记成通过。 + +## Mac 实窗与文件核验 + +完整功能实窗使用 RC1,产品源码提交 `4ded8c1530f55273c743b3fdda99ea82de31a36d`。隔离目录 `.shou-dev/test-data/r45-native`,账户 0,无游戏本体;只有受控资源、截图与脚本样本。服务器在线样本是 Python 在 localhost 返回的一份协议响应,不是 Minecraft 或实际游戏服务器进服。 + +1. 20→40→60→80→83 张截图随滚动追加,末尾续载按钮消失;PNG、JPG、JPEG、BMP、WebP、TIFF、TIF 缩略图显示。TIFF 删除后总数 82,恢复后 83 且原字节/扩展名一致;JPEG 点击在 Preview 打开精确测试路径,随后只关闭该测试文档。 +2. 导出页勾选整个 `kubejs`,进入 `scripts` 只选 `one.zs`,同时包含 config 和现有本地资源。真实生成 CF ZIP 与 MRpack;分别检查 `overrides/`、`client-overrides/` 恰好 12 份文件、全部 SHA-256 与输入一致。未选的脚本/存档/根 `.env`、截图与服务器文件未混入。Core 另验证导入往返,不冒称做了外部启动器实窗互认。 +3. 实例服务器自动显示图标、两行 MOTD、3/12、1.21.1 和响应毫秒;离线样本显示不可用。行内/全部刷新完成,原始 `servers.dat` 哈希不变。复制地址由 Avalonia 测试覆盖,本轮未读取或覆盖用户剪贴板做额外原生验证。 +4. 收藏官方 Sodium 翻译资源显示真实图标,搜索 Sodium 命中,不匹配词过滤为空,清空后恢复;没有修改收藏集合。日志按钮在 Console 打开精确隔离 `launcher.log`,只关闭该测试文档。 +5. 正常 Cmd-Q 退出,CUA 库存中独立 QA bundle 消失,native result 为 `normal_close`,测试进程已退出。101 份实例原文件 SHA-256 均与测试前相同,截图仍 83 张;本机 `.env` 元数据与未跟踪计划文件 SHA-256 保持不变。 + +补许可后的 RC2 不改产品行为,最终补验与候选校验值见下方。证据根 `.shou-dev/reports/macos-r45-20261112/`,包括完整 AX、JPEG、TRX、原生结果和 `native-integrity.json`;旧失败记录保留。未操作个人应用、实例或账户,未启动 Minecraft。 + +## 最终候选 + +- 源码:`d4504777224c23dc7c720f81bec41d1ed410819d`;相较完整功能验收的 `4ded8c15` 只补打包许可,`src`、`tests`、`CONTRACTS.md` 无差异。 +- 文件:`.shou-dev/dist/MACOS-R45-20261112/rc2/SHOU-Launcher-osx-arm64-v1.5.0-dev.gd4504777.zip`。 +- 大小:53,166,667 字节。 +- SHA-256:`135b5835a320931e0a9603980c8fe45cecfdbf5968c971120c403d1cbb5f883c`。 +- ZIP CRC、标准应用/QA 的代码签名验证、Core/Desktop 程序集逐字节一致性与新许可正文包含检查均通过;显式 `.env` 构建,微软/CF 配置验证为真。QA 仅改 bundle 身份和根签名。 +- RC2 首轮 CUA 遇锁屏,180 秒后按 `exit_after` 退出,要求 `normal_close` 的烟测脚本因此失败,原记录保留。用户解锁后使用同一 ZIP/QA 产物补验通过,详见下节。本地 ad-hoc 签名候选,未正式发布。 + +## 解锁后 RC2 补验 + +2026-11-12 21:45–21:48(UTC+8),复用同一隔离目录,未重新编译或更改候选。启动身份为 `d4504777`,原生窗口、微软/CF 配置检查和精确测试目录正确。 + +- CUA 核对首页与账户 0;截图页再次完成 20→40→60→80→83 张滚动续载,末尾无继续加载按钮。七类扩展名在列表中,首尾缩略图实际渲染正常;已知辅助名称问题仍单列待办。 +- 导出页确认根 `.env` 不可选;选择整个 `kubejs`,进入 `scripts` 只选 `one.zs`,加现有 config 和本地资源,重新导出 CF ZIP 与 MRpack。两包分别恰好 12 份所选内容,逐文件 SHA-256 与原始输入一致,未选内容没有混入。 +- Cmd-Q 正常退出,CUA 库存无该 QA 应用,受监视进程结束,结果为 `normal_close`;补验脚本 exit 0、未超时。101 份实例原文件哈希、账户 0、候选 ZIP SHA-256、本机 `.env` 元数据和未跟踪计划哈希均保持不变。未启动 Minecraft,未操作个人应用或实例。 + +证据:`native-result-rc2-unlocked.json`、`native-rc2-unlocked-run.json`、`rc2-unlocked-integrity.json` 与 `rc2-unlocked-*.ax.txt/.jpg`。此为最终 RC2 的截图/导出/退出补验;前文服务器、收藏、日志、图片回收和外部看图等完整功能验收仍记作 RC1,未冒称全套重新测试。 + +## 下一优先级 + +1. P1:R37 归档/清单固定预算与其它旧格式,CF 无第三方 URL 的手动补档;客户端导出逐资源来源策略、外部启动器互认、资源子目录与更新备份恢复入口。完整依赖版本求解与冲突处理仍单列,不能把读取声明当作兼容通过。 +2. P2:收藏分类分组/批量/旧分享码及模糊搜索;简介翻译与有依据时的 MC 百科链接;跨平台可交互自定义主页。其它渲染器/兼容设置须按平台逐项实现,不能照搬 Windows Mesa/Java 方案到 Mac。 +3. UI/验收:截图按钮辅助名称仍读到隐藏的“无法预览”文字,视觉显示正常;收藏无匹配提示和完整三语长文本待改。彩色 MOTD、协议 ping/信号样式、完整菜单、Windows 真机/Intel Mac/DPI/键盘/VoiceOver 与跨应用图片剪贴板矩阵未齐。本轮不验证游戏行为。 + +本轮完成项及未完成项同步记录在 [todo](../../todo.md),未将整套 WPF 复刻勾为完成。 diff --git a/docs/conduit/MACOS-R46.md b/docs/conduit/MACOS-R46.md new file mode 100644 index 00000000..57a13abc --- /dev/null +++ b/docs/conduit/MACOS-R46.md @@ -0,0 +1,66 @@ +# R46:投影目录与界面补齐 + +2026-11-12,续作 `features/windows-parity`,起点 `4f599706`;已核对本社团 `origin`,当前迁移分支包含 `origin/dev`,未合并或改写开发/稳定分支。沿用本轮不启动 Minecraft 的约束,只操作隔离启动器和测试文件。 + +## WPF 对照与范围 + +继续追 `PageInstanceCompResource.xaml.cs` 的 `EnterFolder`、`GoBackToParentFolder`、`InstallCompFiles`,并核对 `ModLocalComp.cs` 的实际枚举。旧版共享页面虽然有通用目录代码,底层只有投影分支构造文件夹项,普通模组/资源包/光影主要读取顶层文件;旧 Forge 的 MC 版本子目录另有特例。本轮据此优先恢复投影,不将其它三类“不递归”直接视为缺陷,也没有擅自扩大自动更新范围。 + +| 本轮内容 | 结果 | +| --- | --- | +| 目录浏览 | 投影目录置顶、当前路径、双击/Enter/行内进入、上一级/Backspace、空目录提示、打开当前文件夹 | +| 当前目录安装 | 原生选择器与拖入服务捕获目标目录;子目录消失即失败,禁止悄悄安装到根目录 | +| 子目录文件回收 | 沿用已有事务与收据,保留完整相对路径、原字节、原收据兼容性;根目录同名文件不受影响 | +| 导航并发 | 离页/换实例重置路径,丢弃迟到读取和过期选择器结果,旧行不能操作新页面 | +| 小项 UI | 截图原图按钮的辅助名称改为真实文件名;收藏无搜索匹配时显示明确提示,清空搜索恢复原收藏 | + +文件夹目前作为导航项,排除在文件批量选择和回收之外;文件夹树回收/恢复、目录级导入、投影材质/尺寸预览与游戏内兼容仍未实现。不把文件复制成功记作投影格式加载或游戏可用。新提示维护简体中文、繁體中文与 English。 + +新增可选接口 `IInstanceContentBrowserService`,目录相对于 `schematics`,检查路径越界和各级链接;现有接口与其它资源列表、更新检查范围不变。投影子目录文件复用 `ModFileManagement` 的哈希、回滚、清单和目标冲突保护;目录被替换成链接时拒绝恢复,移除链接后收据和原文件仍可恢复。接口细节见 [CONTRACTS](../../CONTRACTS.md)。 + +## 自动验证 + +SDK `.NET 10.0.403`、Release、macOS arm64;重任务串行,空间预算维持 35 GiB,系统余量 20 GiB。 + +| 检查 | 结果 | +| --- | --- | +| Core 全量 | 875 通过、5 沿用条件跳过、0 失败;新增 3 项 | +| Desktop/Avalonia 全量 | 最终 350 通过,0 跳过/失败;新增 3 项,包含实际视图的键盘/双击输入 | +| Windows x64 交叉构建 | 修整后再次通过,0 警告/错误;不代替 Windows 原生验收 | +| Mac 候选构建 | 最终 RC2 通过,0 警告/错误;显式 `.env`,微软/CF 配置验证为真,未输出机密值 | + +Core 新增目录枚举/嵌套路径、取消/越界/链接、缺失目录不回退、同名文件隔离、当前目录导入、回收恢复及父目录变化测试。Desktop 新增导航/文件夹置顶、全选/反选不选目录、当前目录安装、迟到读取/旧行/过期选择器和实际视图输入回归,并扩充收藏空态断言。5 项跳过仍为两项 Windows 目录锁、B5 运行时、PKCS12/keytool 与官方 Delta21 下载条件。 + +初轮 Core 针对测试错误地期望危险链接目标仍列入可恢复列表;修正为先拒绝、去掉链接后再次读取并恢复,通过。实际视图测试还发现列表默认 Enter 处理截走导航事件,改用隧道路由后,Enter、Backspace 和真实双击输入通过针对回归;首轮失败日志/TRX 保留。实窗发现未收录的 `folder` 图标和固定宽度按钮中的文字裁切,改用已有 `folder-open` 与有辅助名称的进入箭头。 + +打包曾被空间门禁阻断;仅回收已通过测试、可重建的 Windows 编译 bin,以及经 ZIP CRC/程序集匹配确认未运行的旧展开候选,保留 ZIP、日志、原生夹具与失败记录。通过的 Core 全量运行所生成 GUID 合成目录按运行时间窗口回收,未动个人数据或放宽门禁。 + +## 原生过程与证据 + +隔离目录 `.shou-dev/test-data/r46-native`,账户 0、没有游戏本体。输入为 7 类图片扩展名、3 个合成 NBT 投影文件和嵌套/空目录;另有 140 字节投影导入样本。此为启动器文件管理验证,不声称游戏已解析该样本。 + +RC1 源码 `4e90cc7c7c56fe11d655b865e179f056203cbf14`:首次启动在 `AvaloniaNativeRenderTimer.EnsureRegistered` 初始化失败,CUA 随后可读取 Finder,没有确认到锁屏;同一候选重试成功。原因仍待定,不能一概归为锁屏,原失败记录保留。 + +- 行内进入 `builds`→`deep`,原生选择器安装到 `schematics/builds/deep/imported.schem`;回收确认列出完整相对路径,回收后仅剩原 `leaf.schem`,恢复后新文件重现。 +- 上一级逐层返回,空目录显示“当前文件夹为空”;7 张截图原图按钮均读出对应文件名,未再读隐藏的“无法预览”。 +- 收藏输入无匹配词显示“没有匹配的收藏”,仍保存 1 项;清空恢复原条目,收藏集合未变。 +- Cmd-Q 正常退出、QA 从 CUA 库存消失,结果 `normal_close`。10 份原始实例文件 SHA-256 全部不变,导入/恢复文件与源样本哈希相同,根目录无误装副本;1 份已恢复收据保留,无活动回收收据,账户仍 0。 + +最终 RC2 使用源码 `69ede99ea669434d0cf415a20fcc61a1b79cf820`,同一隔离目录补验文件夹图标、行内箭头和 Enter 进入/Backspace 返回;键盘实窗通过,双击由实际视图的指针输入回归覆盖。正常 Cmd-Q 退出,结果 `normal_close`,进程消失。原始 10 文件、已恢复导入样本、候选 ZIP、本机 `.env` 元数据与未跟踪计划哈希均不变;账户仍 0。首轮原生初始化失败仍单列未解决,RC1 文件管理证据与 RC2 图标/键盘补验分别记录。完整 AX、JPEG、TRX、运行结果与 `native-integrity.json` 位于 `.shou-dev/reports/macos-r46-20261112/`;未启动 Minecraft,未操作个人应用、实例或账户。 + +## 最终候选 + +- 源码:`69ede99ea669434d0cf415a20fcc61a1b79cf820`。 +- 文件:`.shou-dev/dist/MACOS-R46-20261112/rc2/SHOU-Launcher-osx-arm64-v1.5.0-dev.g69ede99e.zip`。 +- 大小:53,171,382 字节。 +- SHA-256:`a0c3a2cb33c3c9567bb19b50743d83d3fc65e43521274cd7af03415b21a1bbf1`。 +- 标准应用与 QA 的代码签名、ZIP CRC、Core/Desktop 程序集一致性通过;QA 仅修改 bundle 身份与根签名。此为本地 ad-hoc 签名候选,未正式发布。 + +## 剩余优先项 + +- 原生渲染初始化偶发失败的触发条件与恢复仍待定位;本轮重试成功不等于问题已修复。 +- R37 归档/清单预算与旧格式、CF 无第三方下载 URL 的手动补档、资源更新备份恢复入口和完整依赖版本求解仍为 P1。 +- 投影目录树操作/格式预览、旧 Forge 版本目录读取特例、收藏分组/批量/旧分享码、简介翻译/条件百科、自定义交互主页及平台高级设置继续对照。 +- 当前目录的真实 Finder 拖入、Windows 原生文件锁/选择器、Intel Mac、完整 DPI/键盘/VoiceOver 与游戏效果仍未全覆盖。拖入入口的目录分流由自动测试覆盖,不能记作完成所有原生拖入来源。 + +已完成与未完成范围同步至 [todo](../../todo.md)。 diff --git a/docs/conduit/MACOS-R47.md b/docs/conduit/MACOS-R47.md new file mode 100644 index 00000000..2f8d7044 --- /dev/null +++ b/docs/conduit/MACOS-R47.md @@ -0,0 +1,53 @@ +# R47:对照清单补齐 WPF 页面衔接 + +日期:2026-11-12。延续 `features/windows-parity`,不合并 dev/main,不建或合并 PR,不正式发布。保留 cleanroom 独立实现;只参考本仓库旧 WPF 的行为、协议和既有资源数据,不检查原上游。 + +本轮只启动隔离 QA 启动器;未启动 Minecraft、未操作个人应用/实例、未登录账户。 + +| 用户截图项目 | 最终状态与边界 | +| --- | --- | +| 七种截图与 60 张限制 | R45 已修,R46 已修真实文件名辅助名称;本轮完整回归覆盖,未宣称重新执行全部原生图片矩阵。 | +| CF/MRpack 内容选择 | R45 已支持目录/单文件选择、kubejs/scripts;本轮完整回归覆盖。外部启动器互认、逐资源导出策略仍独立待办。 | +| 实例服务器 | R45 图标/纯文本 MOTD/人数/版本/刷新/行内复制;本轮加协议 Ping/Pong nonce 校验和右键复制菜单。无 Pong 保留已读状态,查询耗时与 Ping 分开。彩色 MOTD、信号样式及完整旧菜单仍待补。 | +| 全局高级设置 | 接通已有后端的详细日志和 Classpath,Windows console Java 保持按平台显示。移除重复的永久灰色占位卡片,未恢复已取消的发行自动提示。旧 Windows Mesa 渲染器、GPU、JLW/LegacyFix/Unsafe Agent、自动崩溃分析尚未迁移,不能记成已完成。 | +| 自定义主页 | 支持常用 WPF MyCard/文字/图片/网页按钮及容器,TXT/MD 保留纯文本;本地选择器支持 XAML,补手动刷新。未调用运行时 XAML/CLR;未适配控件/事件明确报错。Grid 当前纵向降级,高级样式、运行命令/改设置等事件及文件监视刷新未完成。 | +| 历史日志 | R45 已接系统默认程序打开实际日志文件;本轮完整回归覆盖。 | +| 收藏与详情 | 加新建/重命名/删除分组(保留项目)、分组共享项目、批量选择/移除、旧 WPF JSON ID 分享码及读取真实项目导入;原数组迁移到 v2,保存上一版本备份。图标/本地搜索沿用;加显式简介翻译、简中且精确 WikiId 存在时才显示百科入口。备注、批量下载、旧配置文件整体迁移、模糊搜索及完整 WPF 管理菜单仍未全部复刻。 | + +收藏分享逐项处理失败资源,明示未成功 ID;不生成虚假成功资源。百科索引从原有 `mcmod.buf` 可重复转换为 25,146 条静态记录,按来源 slug 精确匹配,未新抓取数据库。翻译沿用旧 WPF 的公开端点,不带 CF/微软密钥,404 显示暂无翻译,取消/换页丢弃迟到结果。 + +原生 RC1:常用主页卡片/本地图片/刷新;旧收藏读取、新建分组、真实 Sodium ID `AANobbMI` 分享码导入、重命名及删除分组后两项收藏保留;真实中文简介返回;默认 Chrome 打开正确 Sodium 百科 `class/2785`,仅关闭本轮新开的标签。隔离本地状态夹具显示 3/12、MOTD/版本、协议 Ping;此夹具不是 Minecraft 游戏服务器。全局详细日志经键盘操作自动保存,Cmd-Q 正常退出。 + +RC1 原生暴露空分组提示/辅助名称不准确,RC2 修正。右键菜单原生坐标操作报 `noWindowsAvailable`;新增 Avalonia 实际右键输入测试也发现菜单挂在透明内网格导致空白处不触发,移到整行卡片后针对测试通过,复制结果/上下文与只读保护均核实。原生右键触发未冒称完成。 + +13 份实例原文件(含 servers.dat)、主页文档、候选 ZIP 哈希不变,账户 0。原生只改隔离收藏与启动设置。R46 首轮渲染初始化异常仍未定位;本轮首次原生启动成功不能消除这一 P1。 + +测试:Core 882 通过/5 条件跳过;Desktop 最终 354 全通过;Windows x64 最终交叉构建通过,全部构建 0 警告/错误。新增 Core 7 项、Desktop 4 项,并扩充服务器实际右键/复制与空分组回归。初轮收藏样本共用 slug 导致筛选断言失败,修正样本后通过;右键菜单失败及修正证据保留。 + +打包显式读取 `.env`,验证只输出凭据配置布尔值;源码/候选哈希、CRC、签名、QA/标准程序集一致性单独记录。空间门禁曾拦截收尾,保留预算,回收已核实的可重建展开包/构建输出与通过测试的合成夹具,保留 ZIP、日志、TRX 和失败记录。 + +RC2 原生复核:首次启动即建立原生窗口,常用主页卡片/本地图片可见;重开仍为两项收藏,分组辅助值只显示名称,行按钮辅助名为真实项目名。新建空分组明确显示“当前收藏夹还没有资源”,正常 Cmd-Q 退出并由 CUA 再核实进程消失。原 13 文件哈希、候选 ZIP 不变,账户 0。完整分享码导入/翻译/百科/在线 Ping 流程证据属于 RC1;RC2 产品差异只为提示、辅助名称及服务器菜单挂载,后者由实际指针右键与复制回归覆盖,原生右键仍待工具可用时补验。 + +本轮 Core 5 条件跳过沿用 Windows 目录锁 2 条、B5 真实运行时、PKCS12/keytool 和官方 Delta21 下载;不写成全部平台/外网矩阵通过。Windows 真机、Intel Mac、完整 DPI/VoiceOver/三语组合未验。 + +候选包为本地 arm64 预发布构建,SDK 10.0.403、Release、显式 `.env`;ad-hoc 签名,未正式发布或公证。未创建/合并 PR,未改 main/dev。新增功能代码提交 `040c7ce`,最终候选源码如下。 + +- 最终源码:`f26a7ab58801f2ddfbb33741fa46bb5670c4c065`。 +- ZIP:`SHOU-Launcher-osx-arm64-v1.5.0-dev.gf26a7ab5.zip`,53,821,353 字节。 +- SHA-256:`5ccbcad165f81240806b00b383e2d8a04e3ad67884e88a3518e1bfec9981a05f`。 +- [本地候选 ZIP](/Users/moear/Code/SHOU-Launcher/.shou-dev/dist/MACOS-R47-20261112/rc3/SHOU-Launcher-osx-arm64-v1.5.0-dev.gf26a7ab5.zip)。 +- 详细证据目录:`.shou-dev/reports/macos-r47-20261112`,含各轮 TRX、构建/空间门禁、原生 AX/截图、协议夹具与完整性结果;失败记录保留。 + +收尾修正 `f26a7ab`:在 4 秒状态查询期限内已收到有效状态,随后等待 Pong 超时,继续保留在线人数/MOTD而不误报离线;用户主动取消仍传播。3.5 秒延迟状态、跨共享期限不返回 Pong 的真实套接字回归通过,最终 Core 全量 882 通过/5 条件跳过,Windows x64 再次交叉构建通过。GUI 产品代码与已完整通过的 RC2 相同。 + +RC3 首轮启动记录已观察到原生句柄并核实源码/数据根,CUA 随后明确报告 Mac 锁屏;该次运行在 900 秒限时后以 `exit_after` 退出,未记为正常退出验收。原始失败/锁屏证据保留。R46-BOOT 原因依然未定位;本次明确锁屏与该异常分开记录。 + +## 2026-11-13:解锁后同一 RC3 补验完成 + +用户手动解锁后,直接复用原 RC3 标准包与隔离 QA 副本,未重新编译;源码仍为 `f26a7ab58801f2ddfbb33741fa46bb5670c4c065`,ZIP SHA-256 与上文一致。启动前重新核实 ZIP CRC、签名、QA/标准 Core 和 Desktop 程序集一致性及原文件哈希。 + +CUA 实际核对自定义主页卡片、本地图片、网页按钮展示与刷新;收藏重开仍为两项,实际图标和辅助名称正常。搜索无匹配出现明确提示,清空恢复两项;切换已有空分组显示“当前收藏夹还没有资源”,再切回默认分组恢复列表。Cmd-Q 正常退出,CUA 随后确认 `club.conduit.shou.launcher.r47rc3qa` 已不在运行应用中。 + +原生结果 `reason=normal_close`;13 份实例文件、主页文档和候选 ZIP 哈希不变,账户 0。未启动 Minecraft、未操作个人安装/实例,未改源码或系统设置。本次只补最终候选的可见窗口与正常退出,完整导入/翻译/百科/在线 Ping 流程沿用 RC1/RC2 已记录的实窗结果;自动化沿用同源码的 Core 882 通过/5 条件跳过、Desktop 354 全通过和最终 Windows x64 交叉构建,不冒称今早重复全量测试。 + +补验目录:`.shou-dev/reports/macos-r47-followup-20261113`,包含 `native-run.json`、`native-result.json`、`integrity.json`、各步骤 AX 和主页/收藏截图。其他未完成项按 todo 保留,特别是 R46-BOOT、旧平台专属兼容选项与完整主页/收藏管理。 diff --git a/docs/conduit/MACOS-R48.md b/docs/conduit/MACOS-R48.md new file mode 100644 index 00000000..cb067925 --- /dev/null +++ b/docs/conduit/MACOS-R48.md @@ -0,0 +1,58 @@ +# R48:自定义主页与收藏夹 WPF 体验补齐 + +2026-11-13,延续 `features/windows-parity`。本轮仅启动隔离 QA 启动器,不启动 Minecraft,不操作个人应用、账户或实例;未合并 dev/main、PR 或正式发布。 + +## 对照与实现 + +对照本仓库旧 `PageDownloadCompFavorites.xaml.cs`、`ModComp.CompFavorites.FavData`、`CustomEvent.cs`、`PageLaunchRight.xaml.cs` 和 `FormMain` 的可见行为与协议,独立实现可移植部分,未检查或同步原上游。 + +- 自定义主页:Grid 行列/跨格、尺寸/边距/对齐/常用颜色/文字属性、可折叠卡片;支持旧中文/英文网页、复制、刷新、提示、对话框、常用切页事件及 Events 集合。本地文件原子替换后防抖刷新,离开解除监视、返回读取最新文件。纯文本与既有图片边界保持;不调用运行时 XAML/CLR。 +- 收藏:备注按组保存,编辑保存/取消;按类型折叠、中文名/备注/描述/标签搜索与基础拼写容错。复制/移动所选至其他组时保留目标既有备注。旧版删除组会确认并移除该组内容,R47 自动移动至另一组的行为已纠正;其他组成员不变,保留上次文件备份。 +- 旧收藏导入:支持 Favs/Notes 数组、原分享 ID 数组、含 Game.CompFavorites 的 JSON 导出。只读取收藏字段,不导入账户或其他设置;按旧组身份去重,失败 ID 和备注持久保留并可重试。保存 v3,兼容原数组/v1/v2/v3;未知/损坏文件原样保留,旧客户端不应覆写不认识的 v3。 +- 批量下载:并行查询所选项目,先求共同加载器/游戏版本,用户选保存目录,展示最新对应文件计划(可能含测试版),沿用已有传输后端/任务通知/取消与分组重试。正确文件复用,同名不同内容不覆盖;各项失败继续其他项,失败组重试会复用完成文件;下载后再次校验大小/SHA-1,临时文件不作为成功文件出现。换选择/换组/离页使旧方案和迟到的目录选择失效。只保存资源文件,不安装到实例。 + +新增界面静态文案提供简中、繁中、English;未把全界面三语与 VoiceOver 矩阵记作通过。模糊匹配是独立近似实现,不声称与旧 WPF 搜索权重完全相同。 + +## 验证 + +Core **886 通过 / 5 条件跳过**;Desktop **359 全通过**;Windows x64 交叉构建通过,构建均为 0 警告/错误。新增 Core 4 项与 Desktop 5 项;覆盖实际 Grid、剪贴板/弹窗/切页、文件监视、备注与分组/备份、旧 JSON/失败重试、共同版本/迟到方案、冲突保留/校验/取消。未运行 Minecraft。 + +5 条件跳过沿用 Windows 目录句柄 2 项、B5 真实运行时、PKCS12/keytool 和官方 Delta21 下载,不能视为这些外部矩阵已验证。初轮编译缺少 Avalonia 剪贴板扩展/FontWeight 解析、导入异常未拦截、查询失败留用旧下载方案及真实 ComboBox 空选择的失败证据均保留,修正后全量通过。 + +显式 `.env` 打包,微软/CF 配置验证为 true,未输出密钥。沿用 35 GiB 工作区/20 GiB 系统余量门禁;打包首次被门禁拦截,验证归档逐文件哈希及 ZIP CRC 后回收旧展开候选和可重建 Windows bin、已通过的合成测试夹具;保留日志/TRX、失败样本、归档与个人数据。 + +## 原生候选 + +首轮复现 `AvaloniaNativeRenderTimer.EnsureRegistered` 初始化异常;CUA 随后确认 Finder 可正常交互,未归因于锁屏。保留 `native-result.json`;同一标准/QA 程序集第二次启动得到真实窗口,源码和隔离数据根已核实。R46-BOOT P1 继续保留,重试成功不是修复声明。 + +RC1 实窗已验证双列卡片/图片、提示、对话框正常关闭、主页切至收藏夹、本地主页原子替换后自动刷新、备注保存/取消、拼写容错、旧 JSON 文件选择导入分组及独立备注。Cmd-Q 正常退出,13 份原实例文件与 ZIP 哈希不变,账户 0。 + +RC1 真实下载目录选择暴露尾斜杠被路径检查误判;另外加载器选项初次加载显示为空。两项均补回归:真实 ComboBox 默认选中值与带尾斜杠目录;采用稳定选项集合并先加载再选中,以及规范化尾分隔符后仍执行原符号链接检查。修正后 Core 886 通过/5 条件跳过、Desktop 359 全通过、Windows x64 交叉构建再次通过,0 警告/错误。 + +RC2 首次即建立原生窗口;自定义主页/图片可见,重开收藏与备注保留,加载器默认显示 fabric。实际选共同版本 1.21.1,经 macOS 原生目录选择器下载到隔离的 favorite-downloads 目录;右下任务通知可进入任务页,显示 2 项文件任务、2 完成、0 待处理/失败/取消。实际保存: + +| 文件 | 字节 | SHA-1 | +| --- | ---: | --- | +| SodiumTranslations.zip | 289,761 | ad9631dfbf5b23ad80604110e4a00215a7f44f1d | +| sodium-fabric-0.8.13+mc1.21.1.jar | 1,574,609 | 003c114c85ca88ef3362e018deb6aca0c682d6a1 | + +两文件与已校验缓存逐字节一致,未安装入实例;Cmd-Q 正常退出,CUA 确认 QA 进程消失,13 份原实例文件与候选 ZIP 哈希不变,账户 0,合成凭据标记未迁移。正常退出与完整性记录均为通过。本轮真实传输使用内置后端;外接 aria2 的完整矩阵沿用既有自动化,未冒称本次实窗切换过所有后端。复制/移动/删除取消等分组边界由自动化覆盖,未记作逐项原生复验。 + +RC1 完整主页事件/备注/旧 JSON 导入交互证据仍属于 RC1;RC2 记录重开与真实下载;RC3 最终收尾如下。R46-BOOT P1 仍未定位,不把 RC2 启动成功写成修复。 + +RC3 收尾修正 `895351f`:编辑备注草稿时切换分组,会立即关闭编辑并恢复目标组已保存的备注,防止草稿误写到另一组。Desktop 全量 359 再次通过、Windows x64 再次交叉构建通过(0 警告/错误);Core 业务代码自 RC2 未改,沿用最终 Core 886 通过/5 条件跳过。 + +最终 RC3 首次启动建立窗口;CUA 验证自定义主页与图片、重开收藏/备注、在默认组输入未保存草稿后切至 WPF 导入组,编辑框关闭且目标备注为“WPF 性能优化备注”,切回默认组仍为“R48 性能优化备注”。Cmd-Q 正常退出,CUA 确认进程消失;13 份原实例文件/ZIP 哈希不变,账户 0,未启动 Minecraft。真实下载及任务进度证据属于 RC2,未宣称在 RC3 再做相同网络下载。 + +功能提交 `1d166b0`、下载路径修正 `a96706b`、备注草稿隔离 `895351f`。候选源码:`895351f63424989ffef6e70ca6a7715fb3e77eaa`;SDK 10.0.403、Release、osx-arm64,ad-hoc 签名,本地预发布候选。 + +- ZIP:`SHOU-Launcher-osx-arm64-v1.5.0-dev.g895351f6.zip`,53,860,674 字节。 +- SHA-256:`3cf78470a2ad91963e02fb0818f90fa4d8028fed2c8f7acd263c5108e7babc86`。 +- [本地候选 ZIP](/Users/moear/Code/SHOU-Launcher/.shou-dev/dist/MACOS-R48-20261113/rc3/SHOU-Launcher-osx-arm64-v1.5.0-dev.g895351f6.zip)。 +- 证据:`.shou-dev/reports/macos-r48-20261113`,包含完整 TRX、构建/门禁、原生 AX/截图、候选元数据及完整性记录。 + +打包元数据 `source_dirty=true`:任务前已有的未跟踪计划文件保留;打包时产品源码与测试已提交,收尾文档另作提交。未将无关计划文件纳入提交。 + +## 剩余差距 + +主页完整 WPF 样式/数据绑定、运行文件/命令/改设置等事件、JSON 实时补丁协议尚未迁移。此次文件监视刷新不等于旧 JSON 补丁协议。收藏完整上下文菜单、含分组备注的旧格式导出、失效项逐条管理、旧配置存储文件直接读取与更多排序/搜索细节仍待核对。Windows 真机、Intel Mac、完整三语/DPI/VoiceOver 以及 R46-BOOT P1 保留;其他旧 todo 未作笼统完成声明。 diff --git a/docs/conduit/MACOS-R49.md b/docs/conduit/MACOS-R49.md new file mode 100644 index 00000000..daa78796 --- /dev/null +++ b/docs/conduit/MACOS-R49.md @@ -0,0 +1,50 @@ +# R49:旧格式安装、CF 手动更新与崩溃分析 + +2026-11-13;分支 `features/windows-parity`,沿用本社团 origin/dev 基线上的移植分支。无 PR 合并、正式发行或个人应用覆盖。本轮不启动 Minecraft。 + +## 行为 + +整合包取消移植时加入的归档/展开大小、文件数量、压缩率产品门槛,使用 ZIP64 读取与流式 CRC/SHA-1/SHA-512/复制。真实磁盘空间检查保留;空间不足、归档改变、CRC/哈希错误、路径越界、重复目标或取消会进入原事务失败/回滚处理,不发布半成品实例。开发任务的 35 GiB/系统 20 GiB 留量门禁不属于产品限制,保持原样。 + +HMCL 的 minecraft 层、MCBBS addons/overrides、MultiMC components/instance.cfg/patches/.minecraft 与普通 versions/id/id.json 压缩实例接入真实暂存、注册和重启读取。任意合法的游戏载荷均保留,不以目录或扩展名猜测是否有用。内存、附加 JVM/游戏参数、随包客户端/依赖库和已覆盖加载器元数据保留;独立缓存命名空间避免改写共享版本。移植版仅允许少数 JVM/游戏参数的白名单已撤销,恢复旧版自定义参数;导入本身不执行启动命令。 + +CF 缺少第三方 downloadUrl 的正式新版继续出现在可更新列表。预检收集根文件与 required 依赖的官方项目/版本/大小/SHA-1,界面提供官网与选择文件,校验后接回已有备份/替换链。错误文件不会被采纳,离页回调不会继续更新;重查使旧令牌失效。资源包和光影仍按旧版只更新所选归档,不顺带安装模组。没有猜测 CDN 或绕过作者下载方式。 + +崩溃分析复用本仓库原版 CrashRuleCatalog、CrashEvidenceExtractor、CrashStackAnalyzer 及原因文本;Core 编译可移植业务文件,不引用 WPF UI。原顺序为 Fatal、Primary、堆栈、Secondary;本地 Mod 索引和日志分类/首尾取样仍按旧业务规则。百宝箱提供日志/ZIP/GZip/BZip2、当前实例分析及完整脱敏日志 ZIP 导出。非正常退出分析本次会话输出,按启动时间排除陈旧实例日志,通知提供直达按钮。用户此前取消的发行更新检查提示没有恢复。 + +## 验证 + +- Core 全量:904 通过,5 条件跳过,0 失败;真实 aria2 路径显式传入。新增历史格式注册/重启、加载器 patch/随包库、257 MiB 实际归档与单文件、CF 手动模组/资源包/光影/必需依赖、旧原因规则、三语、ZIP 报告脱敏和取消回归。 +- 65,536 条目(ZIP64)和超过旧 10,000 文件清单的回归通过;不据此宣称已实测 4 GiB 以上物理文件。 +- Desktop 全量:363 通过,0 失败;覆盖官网补档后续接、离页回调、崩溃分析/导出及自动报告不覆盖后续人工分析。最后展示文字清理另跑 18 项针对回归,全部通过。 +- Windows x64 交叉编译通过,0 警告/错误;不等同 Windows 真机验收。 +- 早期失败包括已移除门槛的旧断言、参数白名单阻断旧包、完整版本错误继承和暂存清单测试身份不符,均已修复并保留日志。大文件失败夹具压缩保留后逐文件 SHA-256/CRC 核对,未丢弃失败证据;仅退休通过验证的生成夹具/不活动展开应用,保留候选 ZIP 和日志/TRX。 + +## 候选与实窗 + +源码:`912888c132ccc4627dfb9b30c36b2365ba451d40`;Release / osx-arm64 / .NET SDK 10.0.403。候选为本地预发布,未覆盖个人应用,也未正式发布。 + +候选:`.shou-dev/dist/MACOS-R49-20261113/rc1/SHOU-Launcher-osx-arm64-v1.5.0-dev.g912888c1.zip` +大小:54,067,930 字节 +SHA-256:`aa28eb8e818c417b5d55acdacfdb7e084353d1b7e237795f8897802db468ee82` + +`.env` 显式作为构建输入,未打印、未提交、inode/mtime 保持不变。包签名、ZIP CRC 和隔离 QA 对应程序集一致性通过。构建 source_dirty 仅因原有未跟踪计划文件,源码和测试均已提交。 + +CUA 已在唯一 R49 隔离候选完成: + +- HMCL、MultiMC、MCBBS、普通压缩实例分别由原生文件选择器导入,结果页显示创建成功,实例列表显示 4 个实例;未选补齐游戏文件,未启动游戏。 +- 文件核对确认任意自定义载荷保留,MultiMC 4096 MiB/JVM 参数、MCBBS JVM/游戏参数正确,普通实例携带的客户端留在独立缓存;0 账户,输入样本哈希不变。 +- 选择 latest.log 后显示旧版“Minecraft 内存不足”原因和建议。原生保存对话框导出 ZIP,CRC 通过,原日志保留,合成 accessToken 被替换为脱敏文本。 +- 最终 normal_close、原生窗口标志为真,隔离进程已退出,候选哈希未改变。CUA 退出后瞬时应用清单缓存仍显示运行,结果文件及进程核对确认退出;没有借此重开或绑定个人启动器。 +- CF 无 URL 的官方浏览器下载/原生手动补档未另做真实网络验收;本轮验证是 Core 的实际服务/事务链与 Desktop 的控件行为回归,不能混称为已通过官方端到端实网验证。 + +截图:`.shou-dev/reports/macos-r49-20261113/crash-analysis.jpg`、`hmcl-import.jpg`、`ordinary-import.jpg`、`instances-four-formats.jpg`。 + +## 仍需继续 + +- 嵌套 modpack.zip 安装分发壳、更多特殊 MMC patch/多加载器组合与真实历史样本。 +- 更多历史日志字符编码;当前解析支持 BOM 与 UTF-8 路径,尚未复刻全部自动编码探测。 +- 真正的大型公开整合包、旧包的游戏内体验、各系统原生库、Windows 真机/Intel Mac。游戏测试须按当前任务授权另行安排,本轮未启动游戏。 +- 其他 WPF 差距仍见 todo 的 R48-NEXT;R46-BOOT 首次渲染间歇问题仍保留。 + +本轮原始证据保存在 `.shou-dev/reports/macos-r49-20261113/`。 diff --git a/docs/conduit/MACOS-R50.md b/docs/conduit/MACOS-R50.md new file mode 100644 index 00000000..dcfb82be --- /dev/null +++ b/docs/conduit/MACOS-R50.md @@ -0,0 +1,45 @@ +# R50:个人 Mac 更新、Windows 单文件与旧数据接续 + +本轮用户明确要求更新已安装 Mac 应用,并让 Laptop 的现有工程编译/测试 Windows;Windows 应为单个 EXE,放回旧目录后自动沿用实例与可恢复登录凭据。不启动 Minecraft,不合并 PR 或正式发行。 + +## Mac 当前安装 + +已将 `/Applications/SHOU Launcher.app` 从源码 e16683c7 经 R49 候选 912888c1 更新到 R50 钥匙串补丁 8cb5cb48,正常路径启动并建立原生窗口。更新时先正常退出旧进程,保存完整旧应用 ZIP 和原配置备份,逐文件哈希/ZIP CRC 核对后原子替换。安装期间 3 个账户、1 个 XPlus 实例及配置均保留。 + +两次完整应用和配置备份分别位于 `~/Library/Application Support/SHOU-Launcher/backups/app-update-r50-20261113-110159`、`app-update-r50-20261113-115553`;配置备份权限为 0600、目录为 0700,未导出钥匙串秘密。用户应用与实例没有用于整合包测试。 + +原生启动后旧登录项读取失败,适配器的后台读取强制禁止交互。显式恢复触发系统授权并在用户完成后成功读回,确认本次确有授权衔接问题。恢复入口补丁已增加:普通后台启动仍不会弹窗;用户明确点击“重新授权钥匙串”时,仅为读取原有同作用域项启用系统交互,随后恢复进程原交互状态。读取后校验账户身份、清除临时字节并恢复内存会话,不为此重写原记录或轮换 token。拒绝、取消、数据不符时保留原记录;未完成全部读取时仍保护账户持久写入。该能力仅由 macOS 适配器提供,不改变 Windows DPAPI 行为。 + +用户先完成系统授权;首次重开发现另一个登录项仍需授权,补齐该项的“始终允许”后再次正常重开,两项 Microsoft 凭据均自动读取,恢复提示消失。随后通过安装包内置账户菜单真实刷新所选 Microsoft 登录,令牌有效期推进、皮肤 3D 预览恢复可用,未重新登录、未启动游戏。安装与只读恢复期间配置哈希不变;明确点击刷新后由正常流程更新所选账户元数据和受保护令牌,3 个原账户 ID 与 1 个实例记录保持。未导出任何钥匙串秘密。 + +当前候选仍为临时本地签名。未来更换签名的构建可能再次触发系统对已有项目的确认;本轮不通过放宽钥匙串 ACL 或绕过系统授权来掩盖此情况。 + +Apple 的 [kSecUseAuthenticationUIFail 说明](https://developer.apple.com/documentation/security/ksecuseauthenticationuifail)明确指出:需要用户认证时,该策略返回交互不允许错误。补丁为用户操作提供系统授权入口,没有修改钥匙串 ACL、关闭证书校验或导出凭据。 + +## Windows 并行验证 + +复用 Laptop 的“整理各页面 UI 截图”会话、工程 `D:/Code/C#/SHOU-Launcher-Windows`。起点为 origin/features/windows-parity 的 5268c28。父任务未修改 Windows 启动、打包与旧数据迁移文件,Mac 修复单独保留待接入。 + +共享 `smb://100.127.0.5/PCL-CE-SHOU` 已通过 Finder 挂载到 `/Volumes/PCL-CE-SHOU`;本轮交接目录为 `artifacts/windows-r50-20261113/handoff`。源码 bundle、候选和脱敏报告通过共享交换;真实账户秘密只在 Laptop 原用户上下文使用。 + +Laptop 交接已核对:34 个实例、6 个账户,DPAPI 可保存和重读,1 个 Microsoft 账户完成实际刷新、所有权及 profile 验证;原 Profile 与 UserKey.bin 哈希不变。Windows 200% DPI 实窗走查首页、版本目录、实例模组/资源包、设置、工具和崩溃分析;两版候选四次正常退出均 exit0,重开时 4 个配置/实例源文件哈希不变。真实旧数据验证在原 Windows 用户的隔离服务宿主完成;原生 UI 使用虚构账户和隔离实例,未覆盖真实旧 WPF 启动器。 + +单文件实现按 [Microsoft 单文件部署说明](https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file)处理:分发 EXE 内包含应用和运行时依赖,原生库可在运行时解压到缓存;目录定位需使用单文件入口所在目录,不能依赖空的 Assembly.Location。分发目录和 ZIP 运行载荷均只有 `SHOU.Launcher.Desktop.exe`,无散放 DLL。实际原生库从受控解压缓存载入,新的缓存目录及不存在的 DOTNET_ROOT 下四个独立命令均通过。EXE 内嵌图片、三语、Java bootstrap 和许可材料;本轮没有更改 Mac 应用包形式。 + +## 本轮证据 + +`.shou-dev/reports/macos-r50-20261113/` 保存安装前后信息、原配置哈希、Mac 凭据恢复/取消/原生交互范围测试与桌面回归。Windows 的 170 项日志/TRX/原生证据与 25 张截图位于 `windows-r50-evidence.zip`;交接文件大小和 SHA-256、ZIP CRC、包内单 EXE 与裸 EXE 一致性均已由 Mac 复核,未带用户凭据数据。 + +Mac 安装源提交 8cb5cb48 的 Core 最终全量 910 通过、5 个平台/环境条件跳过;恢复/原生交互专项 9 项通过。Desktop 全量 364 项通过。首次编译修复和原始报告均保留。 + +Mac 安装 ZIP:`SHOU-Launcher-osx-arm64-v1.5.0-dev.g8cb5cb48.zip`,54,072,077 字节;SHA-256 `9cf4326798345f6ebf79a83bd24187d4f237203b0f3d8d0005d400700dca5582`。构建使用 .NET SDK 10.0.403、Release/osx-arm64,带现有编译环境配置。打包时源码无未提交的产品修改,BUILD-INFO 的 source_dirty=true 来自保留的未跟踪计划及本轮报告草稿。安装包继续留在 `.shou-dev/dist/MACOS-R50-20261113/rc1/`。 + +## 两端整合与交付 + +Windows 源码从基点 5268c283 通过 27,938 字节增量 bundle 交回,头为 aec07e1a;包含 e1286dc4 产品源码及后续测试/报告。Mac 的 8cb5cb48 与其在当前功能分支整合为 `7002883febf7e8be0fc1c80d7cd546c991d7b1ab`,无冲突、无改写历史,未触及 dev/main 或合并 PR。整合后 Mac Core 全量 917 通过/6 条件跳过、Desktop 364 全通过;同一整合源码的 Windows x64 交叉编译通过,0 警告/错误(不替代 Laptop 原生证据)。实际游戏不在本轮授权内。 + +Windows 候选源为 `e1286dc4e07e2ec19a458cb1867cd8f144f427e6`;Mac 安装源为上方 8cb5cb48,两份候选分别对应已验收的原生构建,不能将两者误写成整合提交的同一构建。Windows EXE 为 118,917,066 字节,SHA-256 `321e6329e41342ca72027c8e2eade040dd74df5ed82416e505964b61dfe5fc80`,位于 SMB 交接根的 `candidate/SHOU.Launcher.Desktop.exe`;ZIP SHA-256 `fb41fbd87e33c8b65dd8f96f9bb8c527be99e603466a92cb9ee0fdb86ef048fe`。Windows Core 全量 899 通过/18 条件跳过、最后路径回归 7 项通过、Desktop 363 全通过。更多说明见 [Windows R50](WINDOWS-R50.md)。 + +截图复核发现:`screens/final-mods.png` 的详情页右上角未见三按钮,而 `screens/final-home.png` 首页三按钮可见。当前代码仍定义三按钮,首页实际最小化/最大化/还原已验;需另以 Windows 实窗核实详情页是否隐藏/越界或捕获差异,不能以 UIA Invoke 正常关闭代替可见性验收。本轮记录为待办,未当作已修复。 + +剩余重点:Windows 详情页三按钮可见性;正式签名及新机器/ARM64;更多历史缓存、第三方 provider、失效凭据/断网与旧目录布局。Mac 临时签名变化可能再次需系统授权。R49 的整合包样本与实际游戏门禁继续保留。 diff --git a/docs/conduit/MACOS-R53.md b/docs/conduit/MACOS-R53.md new file mode 100644 index 00000000..bd5ca213 --- /dev/null +++ b/docs/conduit/MACOS-R53.md @@ -0,0 +1,53 @@ +# R53:Mac 更新后的钥匙串授权 + +## 结果与范围 + +普通启动器更新改为经稳定的原生凭据组件访问钥匙串。主程序的代码哈希变化不再改变实际钥匙串调用者。 +Mac 本机已用真实签名候选验证更新前后无交互读取、更新及删除;保留旧版本回读能力。 +Windows 继续使用原 DPAPI 适配器和单 EXE 流程,没有加入这个组件。 + +旧登录项仍在原钥匙串、原 service/account 下,凭据格式不变,不要求再次登录微软或皮肤站。 +**第一次从旧版切换时,每个旧登录项仍可能需要一次系统授权。** 在启动器现有的“重新授权钥匙串”入口触发后, +由用户在系统提示中审阅并选择“始终允许”,可让该组件以后继续读取该项。 +提示可能显示 `SHOU.CredentialBroker`。组件或签名身份更换、用户撤销访问或钥匙串本身锁定,仍可能要求授权。 +这不是绕过 macOS 授权,也不是取消密码保护。 + +本轮没有替换 `/Applications/SHOU Launcher.app`,没有读取、导出、改写或删除个人登录项,没有启动 Minecraft。 +真实账户的首次切换授权留待安装时由用户亲自完成;不将隔离测试描述为个人账户迁移已通过。 + +## 实现 + +- `MacCredentialBrokerClient` 使用私有匿名管道,并在发送数据前核实运行中的原生子进程。 +- 原生组件要求同证书、精确的启动器标识,验证父进程完整代码和资源;收到请求后重验。 + 更换或修改托管程序集也会被拒绝,不只检查 .NET apphost。 +- 冻结的原生签名二进制随每个候选原样复制,不随主程序 SDK、版本或构建机重编/重签。 + 主程序和原生组件相互验证身份,组件启用 hardened runtime,无第三方动态库或 JIT 例外。 +- 原 service/account 和 Core 凭据恢复逻辑保留。后台禁止弹授权,显式恢复读取才允许系统交互。 + 没有新增登录按钮、凭据明文缓存、后台 daemon 或全局钥匙串设置。 +- 组件缺失、损坏、冒充、父程序篡改时拒绝,不静默回退到旧存储。 + 30 秒普通请求和 5 分钟授权请求上限,取消或父进程退出不会留下无限等待的组件。 + +组件 SHA-256:`753543641f62113e3ad3f5d237c2978965ac2a87a4fcc559de43f9c617cb25ce`。 +cdhash:`b52770a28e3a962111114fccf06023cdbc08793f`。 +签名证书:`BBFC2DA005E308768F21B86F4BA73D5B691305C9`。 +源码、冻结产物、编译器/SDK 与构建说明一起保留于 [原生组件目录](../../src/SHOU.Launcher.Desktop/Native/MacOS/README.md)。 + +## 本机验证 + +- macOS ARM64 Core:949 通过,7 既定条件跳过;Desktop:365 全通过。C# 构建均无警告/错误。 +- Windows x64 交叉编译通过,C# 无警告/错误;Java bootstrap 仍有既有 source/target 8 过时提示。 +- 原生签名测试 10 项通过:两个不同主程序 cdhash 共用冻结组件读写,不同签名、同证书不同应用、父资源篡改及无关 service 均拒绝。 +- 完整候选升级/故障验证:更新前后读写、回读、删除与恢复;父资源/托管程序集篡改拒绝;组件缺失无旧后端回退;冒充组件收到零字节。 + 测试仅使用当前登录钥匙串中的唯一隔离命名空间,删除模拟项,保留输入候选原字节。 +- 提交前 RC2 使用显式 `.env` 发布载荷;修正 native 组件后仅重打包,C# 产品代码与通过测试的载荷一致。 + 提交后的最终候选以随包 `BUILD-INFO.json` 和 SHA-256 旁文件记录源码;云端可信 push 另执行 Mac 15 的同样原生及完整候选检查。 + +## 保留事项 + +- 个人旧登录项首次授权,以及授权后实际普通更新的个人账户回读,仍需用户安装时验收;本轮不自动触发系统密码提示。 +- Apple Developer ID/公证和 Windows 签名不在本次修复中,现有本地自签身份保持。 +- ad-hoc PR 包及未打包开发宿主继续使用旧适配器;验证/分发固定组件效果须使用维护者签名的可信 Mac 候选。 + +背景依据:[Apple TN3137](https://developer.apple.com/documentation/technotes/tn3137-on-mac-keychains)、 +[Apple Security 的分区身份实现](https://github.com/apple-oss-distributions/Security/blob/main/securityd/src/clientid.cpp)、 +[分区与应用 ACL 校验](https://github.com/apple-oss-distributions/Security/blob/main/securityd/src/acls.cpp)。 diff --git a/docs/conduit/MACOS-R55.md b/docs/conduit/MACOS-R55.md new file mode 100644 index 00000000..41b2bca5 --- /dev/null +++ b/docs/conduit/MACOS-R55.md @@ -0,0 +1,46 @@ +# R55:Desktop 发行流程与验收收尾 + +本轮按用户要求切换双端发行、补 dev/main 受信构建,并准备 `v1.6` 预发布。程序版本为 **1.6.0 / xb**;延续 `features/windows-parity`,不合并 PR、不修改 main/dev,不启动 Minecraft。 + +## 发行链 + +`Conduit Desktop Release Draft` 校验标签与源码,复用 `Shared Desktop migration` 的 Mac ARM64 / Windows x64 宿主和相同 Publish/Validate 入口,Windows 额外产出 ARM64 单 EXE。工作流合入相应 dev/main 后,其 push 也走受信签名与凭据专项;PR 不注入 Secrets,临时签名验证继续保留。旧 WPF 回归仍运行,其包不再用于新版发行。 + +正式版仍要求 `origin/main`、Release、精确三段版本标签;显式预发布可使用用户指定的 `v1.6` 短标签。标签必须指向实际构建源码,不允许混入本地未提交内容。新版收集器只读取 artifact 的 `dist`,先验证三个 RID、版本/代号/源码/模式、SHA-256、Windows PE 与单文件负载、Mac 固定组件与内外构建信息,全部通过后生成原子化的资产目录和统一清单。先建草稿,不自动公开或覆盖已有发行。 + +## 本机验证 + +- 发行脚本真实 PowerShell/Git/ZIP 夹具 **21/21**;包括短标签必须显式预发布、main 稳定策略、Actions 嵌套目录、报告假包忽略及拒绝混合源码/缺平台/配置/错误 PE/散落 DLL/变化组件/不一致元数据。不修改真实仓库标签。 +- Desktop 完整 Headless **374 通过、3 跳过**(两个 Windows 平台布局用例、一个需显式启用的原生探测),零失败;C# 编译 0 警告/0 错误。9 项纯策略回归覆盖非 Mac 不加载/等待、健康不延迟、瞬态恢复、持续失败有界、错误码脱敏。 +- 显式 CoreVideo 探测在锁屏期间 **失败:Create/-6661**;用户手动解锁后复测 **10/10 通过**。失败和成功报告分别保留,不能用后者抹去前者或推定历史 R46 同一根因。 +- 新候选以本机 `.env` 明确注入,MS/CF/SHA 三项布尔核验通过;固定凭据组件整文件哈希不变,签名验证通过。此提交前 QA 包的 metadata 明确为 dirty,不用作标签发行资产。 +- CUA 已观察新候选隔离首页(账户 0)、设置/软件信息 **1.6.0 / xb** 和原生窗口;Cmd-Q 正常关闭,报告 `normal_close`、`nativeWindowHandleObserved=true`、CoreVideo 一次成功。 + +## 两项验收更正 + +1. **Windows 三按钮误判**:重新查看 R50 完整 1952×1272 的 `windows-screenshots/final-mods.png`,右上角最小化、最大化和关闭确实可见。未按误判修改正常标题栏;新增 Windows 专用 880/976 宽度、超长实例名的按钮可见性/边界回归,实际执行由 Windows CI 确认。 +2. **个人旧账户回读**:R53 个人安装已在授权后退出重开,两个旧微软项均为持久化已保存,无恢复面板;新 R55 QA 普通窗口也已读到原选微软项和原 XPlus 实例。CUA 绑定发生在异步隔离启动完成前,额外打开了同候选普通数据窗口,核对后已正常关闭,再单独绑定隔离窗口。此过程未录入密码、删除账户或启动游戏。HTTP401 外观响应是过期在线令牌,不等同钥匙串访问失败;最终已提交包的替换回读另列。 + +## Mac 原生启动 + +依据 Avalonia 12.1.5 的 [托管渲染时钟](https://github.com/AvaloniaUI/Avalonia/blob/12.1.5/src/Avalonia.Native/AvaloniaNativeRenderTimer.cs)、[macOS RegisterTick](https://github.com/AvaloniaUI/Avalonia/blob/12.1.5/native/Avalonia.Native/src/OSX/PlatformRenderTimer.mm) 和 [平台初始化](https://github.com/AvaloniaUI/Avalonia/blob/12.1.5/src/Avalonia.Native/AvaloniaNativePlatform.cs),使用同一公开 CoreVideo Create/SetOutputCallback API 在 Avalonia 一次性初始化前探测。健康路径不等待,瞬态错误最多等待约 1.75 秒;不重用半初始化 AppBuilder,不反射替换 Avalonia,不将软件绘图误作原生显示时钟的替代方案。Windows 路径立即返回,不加载 Mac 框架或等待。 + +持续失败报告只添加阶段、次数与整数原生状态;不复制原始异常消息、参数或令牌。R46 历史报告未保存原生错误码,故**根因仍未确认**,此版属于恢复缓解和诊断补齐。 + +## 云端结果与剩余边界 + +代码提交 `d61458e7e33519181d3c20fccb0305f60a613552` 的 [受信 push](https://github.com/Conduit-Club/SHOU-Launcher/actions/runs/43584210751)、[双端 PR](https://github.com/Conduit-Club/SHOU-Launcher/actions/runs/43584216880)、通用与 WPF 回归全部通过。Mac Core 941 通过/7 跳过、Headless 374/3;Windows Core 931/11、Headless 376/1(两项新标题栏用例实际通过);各套分列,不累加重复检查。固定凭据组件 10 项、真实包更新/故障 17 项通过。 + +已创建并推送精确 `v1.6` 注释标签(tag object `08589f7a64f95d2c82fb314717dea8094bb348c6`),指向上述源码;[标签发行运行](https://github.com/Conduit-Club/SHOU-Launcher/actions/runs/43584891437) 四个 job 全部通过,先生成 Prerelease 草稿,经资产与最终个人回读核对后已[公开预发布](https://github.com/Conduit-Club/SHOU-Launcher/releases/tag/v1.6),未设为 Latest,稳定 Latest 仍为 v1.5.0。13 个资产齐套,三包的 GitHub SHA-256 摘要与统一清单、单包旁置校验均一致;Mac ZIP 本机 CRC、内外元数据和固定组件整文件再次一致。标签版 Mac 包已安装到 `/Applications/SHOU Launcher.app`,旧程序和本机 JSON 配置备份位于 `~/Library/Application Support/SHOU-Launcher/backups/app-update-r55-20261114-182917/`;安装前后配置字节一致,实例目录未移动。 + +| 包 | SHA-256 | +| --- | --- | +| osx-arm64 | `e73f3f88aeb03db4ae534cd49951e2fb013a0d83339a251c3908c14c8f351fb4` | +| win-x64 | `1c38cedd3702f1de9a718256e5a80c21eb9d2d2ff1c015c65d03e0723327a2e2` | +| win-arm64 | `3ee8ee8e1697cde24055513a5688b8c6638002ca99e831d073c9542978a18a9a` | + +最终标签包安装后,桌面恢复可用,CUA 已核对两个旧微软项持久化已保存和原 XPlus 实例;Cmd-Q 正常退出重开后再次核对两项均自动回读,无恢复面板或新的钥匙串密码请求,软件信息为 1.6.0 / xb。未更改所选账户,窗口保留在首页。HTTP401 外观提示仍属过期在线令牌,本轮没有刷新登录。普通绘图 6 次、按实际 `local/shou.desktop.v1.json` 启用的软件绘图 6 次,共 12 次冷启均建立原生窗口并按时正常退出,CoreVideo 均一次成功。首轮脚本写错配置路径的所谓“软件”结果已标记无效,不计入这 12 次。Windows ARM64 真机、完整 DPI/跨屏/VoiceOver、旧格式/provider 游戏矩阵继续按 todo 留存。本轮原生与凭据检查不启动游戏,也不替代在线令牌刷新验证。 + +详细本机证据保存在 `.shou-dev/reports/macos-r55-release/`;最终标签产物源码、SDK、RID、Release 配置及 SHA-256 以随包 BUILD-INFO / RELEASE-MANIFEST 为准。 + +本轮源代码与流程提交为 `d61458e`;`ef3b4ed` 及后续交付文档提交只更新运行证据与待办,不移动已验证的 v1.6 标签。PR #15 保持打开、未合并,main/dev 引用未变;用户原计划文件和 .env 保留。 diff --git a/docs/conduit/MACOS-R60-LAUNCH.md b/docs/conduit/MACOS-R60-LAUNCH.md new file mode 100644 index 00000000..9ea9ac54 --- /dev/null +++ b/docs/conduit/MACOS-R60-LAUNCH.md @@ -0,0 +1,47 @@ +# R60:启动进度与游戏窗口交接(2026-11-14) + +本轮在 `features/windows-parity`、基线 `158dc4e` 上修复启动器过早结束进度的问题;R60 本地验收结束时没有提交、推送或发布。2026-11-15 按用户要求将补丁提交交接,Windows 真机复核见 todo 的 R61 项。Mac 补丁候选为 `MACOS-R60-LAUNCH-20261114/rc2`,个人安装仍为已发布的 v1.6.1,验收后已重新打开。 + +## 原因与测量 + +原实现将 `ProcessRunner.StartAsync` 完成私有参数交接视为启动操作完成,随后清空 `LaunchActivity`,首页进度消失。游戏此时还在初始化 JVM、Fabric/Mixin、模组和图形窗口。原有窗口观察仅用于 Windows 改标题,异步结果没有参与加载界面;Mac 路径直接返回 false。最小化、隐藏和关闭策略也在进程交接后立即执行。 + +现有个人日志可定位到:19:08:39.685 Java 交接,19:08:40 Fabric 加载 215 个模组,19:08:49 LWJGL、19:08:50 OpenGL 初始化。代码中未发现人为增加十几秒的固定等待。WPF 原实现的 `McLaunchWait` 则持续等待 watcher 离开 Loading,再执行启动结束处理。 + +本轮两次隔离测试均使用 XPlus v6.1.3 / Minecraft 1.21.1 / Fabric 0.18.4、Temurin Java 21、4096 MiB、1000×650 游戏区域、离线角色和同一份隔离缓存。不复制个人账户或世界,不连接服务器。 + +| 阶段 | 发行版基准 | RC2 补丁 | +| --- | --- | --- | +| 点击启动(UTC) | 13:52:50.290 | 14:09:49.469 | +| Java 交接 | 13:52:54.297 | 14:09:52.322 | +| 文件与 Java 准备 | 未单独计时 | 2618 ms | +| 账户/参数就绪累计 | 未单独计时 | 2698 ms | +| 窗口出现前的启动器状态 | 13:52:58.466 已恢复首页,之后游戏仍在初始化图形 | 14:09:54.677 仍显示“游戏正在初始化”“已等待 2 秒”和“返回启动器” | +| 实际窗口确认 | 授权到达时窗口已出现,不能追认精确首窗时刻;日志 LWJGL 21:53:07、OpenGL 21:53:08 | Core 14:10:05.594,Java 启动调用后 13296 ms | +| 独立原生窗口采样 | 有主菜单截图 | 最后未见窗口 14:10:05.416,首次见窗口 14:10:05.722;Core 确认时间位于该区间内 | +| 后续结果 | 主菜单、Quit Game、退出码 0 | 窗口后首页恢复,主菜单、Quit Game、退出码 0 | + +两轮顺序及缓存温度不同,不能把差值当作启动加速收益。本轮证明的是窗口出现前仍有可见进度、结束点与真实窗口对齐;没有证明整合包自身加载时间显著下降。UI 的精确逐帧完成延迟未单独测量,不把 150 ms 轮询间隔当作实测 UI 延迟。 + +## 实现 + +- 启动准备操作和后台窗口观察分离,Java 交接后释放全局操作锁;按 PID 保留启动进度,旧窗口的回调不能清除较新一次启动。 +- Mac 使用 CoreGraphics 的目标 PID、普通窗口层级、可见窗口范围和透明度确认实际窗口,排除微小 AWT 辅助窗口。只查询元数据,不读取标题或像素、不申请屏幕录制/辅助功能权限。参见 [Apple 窗口列表接口](https://developer.apple.com/documentation/coregraphics/cgwindowlistcopywindowinfo(_:_:)) 与 [必需元数据键](https://developer.apple.com/documentation/coregraphics/required-window-list-keys)。验收工具的截图/键鼠回退单独取得用户当轮授权,不是产品运行条件。 +- 等待阶段显示初始化状态和秒数,下载文件百分比与游戏初始化分开。原取消按钮在参数交接后变成“返回启动器”,仅收起进度,不停止游戏;允许继续使用、同包多开和关闭启动器后游戏继续。 +- 最小化/隐藏/关闭在确认窗口后执行;最后一个可见游戏退出、另一个仍在初始化时,隐藏的启动器恢复。窗口观察不设固定秒数的“启动成功”截止;窗口出现、进程退出或启动器关闭会结束观察,查询失败保留“窗口尚未确认”的状态,不终止游戏。 +- 分别记录准备、账户/参数、Java 交接和首窗耗时,持续时间使用单调时钟;保留私有 stdin 参数交接及原有凭据组件。 +- Windows 继续使用原 Win32 窗口和标题路径;新增 Mac 查询仅在 macOS 执行。共享进度逻辑按相同窗口信号结束,未修改 JVM、模组、认证、下载或 Windows 凭据读取逻辑。 + +## 验证与证据 + +- 最终源码:进程生命周期/多开/私有交接回归 11/11;完整桌面测试 388 通过、3 条件跳过、0 失败;Windows x64 交叉编译通过。C# 编译均 0 警告、0 错误。 +- 回归覆盖操作锁不被窗口等待占用、旧 PID 不清除新进度、窗口观察失败不停止游戏、退出清理、返回后可继续多开、隐藏/恢复策略以及 Mac 辅助窗口排除。 +- 最终 RC2 显式使用原 `.env` 构建,严格签名、ZIP CRC/SHA-256、固定凭据组件一致性通过;源提交标记为 `158dc4e` 且 `source_dirty=true`,不是该提交的干净发行包。 +- 两轮实际到达主菜单并正常退出;没有 Stop/Kill、服务端连接、个人游戏启动或世界操作。Minecraft 自动创建了空 `saves` 目录,目录内无世界。个人配置 SHA-256 保持一致,恢复后仍为原 3 账户/1 XPlus 实例;已安装发行包未替换。 +- `.shou-dev/reports/macos-r60-launch-window/` 保存候选身份、两轮生命周期、窗口采样、CUA 状态时间点、主菜单与窗口后的截图、原始脱敏日志及最终自动化报告。等待阶段证据是带时刻的 CUA 控件树;`patched-after-window.png` 是窗口后的首页,未冒称加载中截图。 + +## 后续 + +- 用更多受控冷/暖启动样本和 JFR 等剖析 JVM、Mixin/模组、图形初始化及文件准备的实际占比,之后再评估可验证的总耗时优化;不直接改整合包内容或套用未验证 JVM 参数。 +- Windows 真机的交接/隐藏/关闭、更多加载器与长初始化整合包仍需验证;Mac 锁屏、跨 Space、显示器切换及重开启动器接回既存会话的状态回查继续补齐。本轮没有重新验证全部历史平台矩阵。 +- 源码按 R61 交给 Windows 端复核;当前 Mac 候选保留原 dirty 构建标记,后续安装、集成与发行另行安排,v1.6/v1.6.1 标签与公开发行不移动。 diff --git a/docs/conduit/MACOS-R63-DOWNLOADS.md b/docs/conduit/MACOS-R63-DOWNLOADS.md new file mode 100644 index 00000000..aac9294c --- /dev/null +++ b/docs/conduit/MACOS-R63-DOWNLOADS.md @@ -0,0 +1,42 @@ +# R63:内置下载并发与重复校验(2026-11-16) + +本轮按用户要求提高新实例下载速度,接续尚未合并的 `features/windows-parity` 缺陷修复;本地基点为 `c3fa1b4`,与 origin 同步、较 origin/dev 领先 257 提交且没有分叉。R63 验收时尚未提交或推送;之后按用户明确授权,将已验证修复交接到同一分支与 PR #15,供 Windows 端继续开发。候选仍保留验收时的旧基点 dirty 标记,不改写来源。未合并、发布、覆盖个人安装或启动 Minecraft。 + +## 修改 + +- 内置总并发默认直接设为 **256**,配置和设置页上限同为 256。参照旧 WPF `Modules/Network/Facade/ModNet.cs` 的 256 总连接上限和单文件 8 连接;旧 WPF 默认 64、新端旧默认 8。本轮按用户“拉满”的要求采用上限作为默认值。 +- 库、资源、整合包文件和 Java 下载不再被旧的 8/4 文件生产队列截断;内置传输和 aria2 仍共享实际连接预算。排队由释放名额唤醒,移除 25 ms 轮询间隙。缓存核对和旧文件复制不占网络名额。 +- 已保存的旧默认 8、且没有并发配置修订标记时,一次性提升到 256;新版本写入标记,之后用户明确改回 8 也能保留。其他已设置值保留,可自行调低。旧配置中曾手动选择 8 与旧默认无法区分,同样会进行这次迁移。 +- 有已知大小和哈希的大文件,从 8 MiB 起使用最多 **8 路 HTTP Range**。以每路约 1 MiB 的有界窗口预取,顺序写入及计算哈希,不把完整文件放进内存;取消后保留连续前缀,后续可续传。来源不支持分段时回退普通传输。 +- 普通和分段下载均边写入边计算元数据提供的 SHA-1/SHA-256,移除下载完成后重新整文件读盘的校验阶段;已有缓存同时校验两种哈希时也只读一遍。旧目录复用在复制时计算哈希,省去复制后的再读盘。 +- 元数据没有哈希的 Maven 库,不再强制额外请求 `.sha1`。这类库显式允许复用已有非空文件;有声明大小时仍比对大小。无哈希目录/清单默认继续获取新内容,不将目录响应当作可复用的库文件。 +- 传输超时按无数据活动计算;用户主动限速的排队等待不计为网络停顿,避免高并发低限速时反复超时重下。取消、错误源回退、原文件的原子替换保持有效。 + +## 验证 + +Core 全量 **971 通过 / 11 条件跳过 / 0 失败**;最后的下载、限速、旧文件复用及 RPC 回退专项 **52/52**。完整 Headless **389 通过 / 3 条件跳过**,包含默认 256 和自定义值即时保存。Windows x64 交叉编译通过,所有最终构建 0 警告/错误。 + +真实本机 HTTP 服务、256 个 16 KiB 文件、每次响应延迟 60 ms;对同一最终下载器设置不同并发: + +| 并发设置 | 实测峰值连接 | 耗时 | +| --- | --- | --- | +| 8 | 8 | 2116 ms | +| 64 | 64 | 316 ms | +| 256 | 256 | 149 ms | + +这验证并发实际生效,不是旧发行版与新包的完整对比,也不保证外网带宽具有相同比例的提升。回归还覆盖双哈希、真实 8 路 HTTP Range、不支持 Range 的两种回退、取消后按前缀续传、多大文件共享名额、损坏内容不覆盖原文件,以及无需 `.sha1` 的库安装和缓存复用。 + +## Mac 候选与实窗 + +- 候选 `SHOU-Launcher-osx-arm64-v1.6.2-r63.zip`,54,519,765 字节;SHA-256 `14c566756db70b83d5649a82b4e40dea4879865c9be8dee7dbf4eac9e7012e43`。来源为 `c3fa1b4` 加本轮未提交改动,明确记录 dirty,不冒用已发行标签的干净来源。 +- 固定证书签名、ZIP CRC、程序包与程序集对应、客户端配置注入布尔结果、冻结凭据组件原样均通过。未改签名证书或凭据组件。 +- CUA 使用单独 bundle 身份和数据目录,产品 Core/Desktop 程序集与候选一致;不复制个人账户。实窗由旧默认 8 显示为 256,调为 255 再回到 256 后即时保存,落盘为 256 且修订标记为 1。 +- 实窗读取官方目录,下载 Minecraft **1.21.1 客户端 JAR**,界面显示“已下载并通过校验”。独立核对 26,836,906 字节和官方元数据 SHA-1 `30c73b1c5da787909b2f73340419fdf13b9def88` 一致。只下载文件,不启动游戏;这不代替完整新实例全部资源的外网吞吐验收。 +- CUA 滚轮报 `noWindowsAvailable`,使用同工具的 Tab 定位完成;保存面板折叠态 Save 初始禁用,展开后正常保存。窗口随后按本轮 600 秒测试计时正常退出,进程退出码 0。 +- 首次 QA 副本使用 Python 拷贝,丢失通用文件签名扩展属性而未通过严格核对;原候选签名正常。改用 `ditto` 保留扩展属性后通过,冻结凭据组件及程序集字节仍与原包一致。该过程属于测试副本准备,没有修改产品下载代码或个人安装。 + +本机证据在 `.shou-dev/reports/macos-r63-download-performance`:全量与专项 TRX、受控计时、Windows 编译、候选校验、QA 配置和退出记录。原 `.env`、无关计划文件、个人应用和数据保留。 + +## 后续 + +完整新实例全部依赖/资源的外网对比、Windows 原生 UI、低内存设备、长时间弱网/代理/服务端限流,以及 CF/MRpack 后续清单生成的读盘成本继续验收。aria2 的独立产物校验、归档格式解析和安装提交检查没有作为本轮下载后重复扫描一并取消。Mac 原生保存面板的折叠态刷新行为另行复核。 diff --git a/docs/conduit/MACOS-SIGNING.md b/docs/conduit/MACOS-SIGNING.md new file mode 100644 index 00000000..4b523b36 --- /dev/null +++ b/docs/conduit/MACOS-SIGNING.md @@ -0,0 +1,95 @@ +# Mac 固定本地签名与 CI + +## 当前方案 + +Mac 候选使用同一份自签代码签名证书;应用标识仍为 `club.conduit.shou.launcher`。 +应用的 designated requirement 同时绑定应用标识与证书 SHA-1 指纹,不再绑定每次编译变化的代码哈希。 +证书并非 Apple Developer ID,包仍未公证,不代表通过 Gatekeeper 的默认外部分发检查。 +Windows 单 EXE 打包及签名行为保持原样。 + +本机初始化: + +```sh +python3 scripts/macos/manage_signing.py init +``` + +默认保存于 `~/Library/Application Support/SHOU-Launcher-Signing/`: + +- `identity.p12`:加密的证书与私钥,可用于恢复或导入 CI。 +- `password.txt`:该导出的密码,也是专用签名钥匙串的密码。 +- `certificate.pem`:公开证书。 +- `signing.json`:公开指纹与本机专用钥匙串路径。 +- `signing.keychain-db`:仅供本项目签名使用的钥匙串。 + +目录为 0700,私钥导出、密码及钥匙串为 0600;不可加入 Git、SMB 交接或构建 artifact。 +请在安全位置保留私钥导出和密码的恢复副本。后续初始化会复用原身份,不会每次生成证书。 +更换电脑时应导入这份原身份;重新创建证书会改变应用身份。 +签名只在操作期间加入专用钥匙串搜索路径,成功或失败均还原原搜索列表,不更换默认钥匙串、不添加系统信任。 + +正常使用原 `Publish-Desktop.ps1` / `Invoke-Dev.ps1` 构建入口即可;它们读取本机配置并解锁专用签名钥匙串。 +也可以显式传入 `SHOU_MACOS_SIGNING_IDENTITY`(证书 SHA-1)和 `SHOU_MACOS_SIGNING_KEYCHAIN`。 +没有固定身份时会报错;仅 PR/测试包可以显式设置 `SHOU_MACOS_ALLOW_ADHOC=1`,构建信息会标明临时签名。 +`BUILD-INFO.json`、`SIGNING-INFO.json` 和原生依赖报告均记录实际签名方式,不宣称已公证。 + +## GitHub Actions + +`Shared Desktop migration` 已接入相同身份的导入、签名、原生诊断与清理。 +需要仓库维护者配置以下两个 Actions Secrets: + +| Secret | 内容 | +| --- | --- | +| `MACOS_SIGNING_CERTIFICATE_BASE64` | 本机 `identity.p12` 的 Base64 内容 | +| `MACOS_SIGNING_PASSWORD` | 对应导出密码 | + +不要在聊天、命令日志或提交中粘贴这些值。通过 GitHub Secrets 网页或 `gh secret set` 的标准输入添加。 +2026-11-14 经维护者明确授权,已将本机同一身份的加密 P12 和导出密码存入本仓库上述 Actions Secrets;私钥不进入源码、构建日志或 artifact。 +本地已验证导入成功/密码错误的清理与搜索列表恢复。 + +### 云端验证(2026-11-14) + +代码提交 `a001ff141eda590ac8f367dba267d7211e1e3d6a` 的 +[可信推送构建](https://github.com/Conduit-Club/SHOU-Launcher/actions/runs/43546419732) +和 [PR 桌面检查](https://github.com/Conduit-Club/SHOU-Launcher/actions/runs/43546424831) 均通过; +同一提交的 Build (CI) 与 Conduit Build 也通过。 + +- macOS:Core 941 通过 / 7 条件跳过,Desktop 365 通过;固定证书导入、隔离原生签名测试、候选打包、临时私钥清理均成功。 +- Windows:Core 931 通过 / 11 条件跳过,Desktop 365 通过;x64 和 ARM64 单 EXE 候选打包成功,Mac 签名步骤按平台跳过。 +- PR 构建明确跳过签名私钥导入和签名诊断,仍可生成临时签名测试包;可信 push 使用固定签名。 +- 已下载可信 Mac artifact 并独立复核 ZIP CRC / SHA-256、完整应用的 `codesign --verify --deep --strict`、构建来源与配置注入布尔记录。 + 云端包的证书指纹与本机均为 `BBFC2DA005E308768F21B86F4BA73D5B691305C9`,DR 绑定证书与应用标识。 + artifact 与内层候选均无 P12、密码或私有钥匙串;未启动该云端应用、未替换个人安装。 + +可信候选 `SHOU-Launcher-osx-arm64-v1.5.0-dev.8.ga001ff14.zip`:54,563,625 字节, +SHA-256 `4ea28e796e41543c04d74a2ad026b021fb02b255ea6aa19c944b7b31a1afdd0b`。 +这是未公证的开发候选,不是正式发布,也不表示下方真实登录钥匙串的无感更新问题已解决。 + +可信的手动/分支构建把原 P12 导入 runner 临时钥匙串;结束时 `always()` 清理钥匙串、P12 和临时证书。 +PR 构建不读取签名 Secrets,继续生成明确标注的临时签名测试包,避免将私钥交给 PR 代码。 +可信构建缺少上述 Secrets 时明确失败,不能默默生成另一张自签证书或临时签名来冒充固定身份。 +当前工作流由 `features/macos-arm64` / `features/windows-parity` 推送及面向 dev/main 的 PR 触发。 +签名能力通过当前功能分支的 push 验证;`workflow_dispatch` 须等工作流进入默认分支后再使用。 +尚未把 Mac 包接入正式 Release 发布。 + +本机和 CI 必须复用同一个 P12。单纯给两张证书起相同名字,不能保持应用身份。 +公证需要以后切换到 Apple Developer ID;不需要为每款软件另买会员。 + +## R52 直接访问钥匙串的复现(修复前) + +固定证书可以保持代码签名身份,但**不能保证当前 macOS 的旧文件钥匙串更新后不再授权**。 +2026-11-14 的原生验证发现:当前用户登录钥匙串里严格绑定测试程序的模拟项除应用 DR 外,还被系统附加了 `cdhash:` 分区。 +两版程序 DR 相同、代码哈希不同,更新版无交互读取返回 `-25293`;旧版本可读取,无关签名同样被拒绝。 +实际完整候选也通过 LaunchServices 启动,使用唯一隔离数据目录及模拟凭据:旧版写入/读取成功,改变 bundle 哈希并用同一证书签名后的新版读取失败,旧版删除成功。 +没有改真实登录项、放宽 ACL、信任根证书或关闭系统保护。当前个人安装保持 R51 原样,未为了尝试这个方案再触发用户授权。 + +`scripts/macos/test_signing.py --directory <新测试目录>` 会编译三个小型原生探针,验证 DR 稳定性、不同代码哈希、 +无关签名拒绝,并记录模拟项实际分区与跨版本读取结果;当前脚本在单独的临时测试钥匙串内操作,禁用交互,结束删除整个测试钥匙串。 +这项专用钥匙串测试在本机和同一 P12 的模拟 CI 导入后均通过,但它不能替代上述当前登录钥匙串的真实候选结果。 +如果签名稳定但系统仍阻止读取,报告 `PASS_WITH_KEYCHAIN_LIMITATION` 并在 CI 发出 warning,不能记作凭据无感更新通过。 +对当前个人安装与真实账户的首次签名切换/后续更新授权仍需单独验收,不能承诺换成本地证书就只再授权最后一次。 + +R53 已改为使用冻结的原生凭据组件,普通主程序更新不再改变钥匙串调用者。 +两个不同代码哈希的完整候选已经通过无交互读写和故障拒绝验证;原记录保留,首次切换仍可能需要系统“始终允许”。 +详见 [R53 验证与边界](MACOS-R53.md) 和 [组件维护约定](../../src/SHOU.Launcher.Desktop/Native/MacOS/README.md)。 + +参考:[Apple TN2206](https://developer.apple.com/library/archive/technotes/tn2206/)、 +[GitHub macOS runner 证书导入](https://docs.github.com/en/actions/how-tos/deploy/deploy-to-third-party-platforms/sign-xcode-applications)。 diff --git a/docs/conduit/MACOS-UI-R27.md b/docs/conduit/MACOS-UI-R27.md new file mode 100644 index 00000000..36d3bef5 --- /dev/null +++ b/docs/conduit/MACOS-UI-R27.md @@ -0,0 +1,109 @@ +# Mac R27:失败项修复与整合包实测 + +本轮结论:上轮 7 项失败已修复,XPlus 的导入、实际游玩、导出再导入和最终候选主菜单 / 退出通过。StoneBlock 4 已由软件内下载,修复三处启动器边界后仍被三个必需文件的下载来源阻塞,完整安装未通过;真实 Fabric 世界 ZIP 的身份核验缺口保留待办。 + +日期:2026-11-11。工作分支 `features/windows-parity`;只做本分支普通提交与推送,不合并 `dev` / `main`、不创建或合并 PR、不正式发布。沿用 cleanroom 边界,仅修改新 Core / Avalonia 实现及其测试,不读取旧 WPF 视图或模板。 + +## 已完成的修复 + +- 修正 Unix 打开文件句柄与原子替换的测试契约,保留 Windows 锁失败验证;另以备份路径被目录占用验证真正的发布失败回滚。 +- 用移动完成的内部测试检查点确定性验证数据包回收 / 更新取消回滚,不依赖 macOS FileSystemWatcher 投递时序。 +- 分离 detached Java 进程的完成证据与父进程的 ExitCode 读取,保留日志脱敏和启动器退出后游戏存活验证。 +- 修复跨平台绝对路径测试;数据包启停写盘成功时替换过期反馈并通知控件。 +- MRpack 导出对明确选入的本地覆盖文件使用当前字节、大小和哈希,规划及 ZIP 写入再次核对;未选入远端资源仍按安装清单严格校验。 +- 缓存内容下载恢复其 2 GiB 边界,避免把 215.63 MiB 的外层整合包当成 128 MiB 的包内单文件;重定向、来源、哈希与凭据隔离验证保留。 +- 操作覆盖层显示当前文件和实际传输 MiB,结束后清空;Mac 增加 Control–Command–F 全屏往返。 +- ZIP 条目上限统一为 10,000;客户端文件上限 8,192;实例安装清单上限 10,000。外层 256 MiB、展开 512 MiB、包内单文件 128 MiB、清单 4 MiB、CF 引用 512 项及下载总量 4 GiB 保留。 +- CurseForge 包覆盖文件支持 KubeJS / scripts 游戏脚本、datapacks、configureddefaults、ftbteambases、schematics 和 default-server.properties。系统可执行脚本仍拒绝,`.js` 仅允许在 kubejs / scripts 中;玩家 saves 与启动器账户路径仍不导入。 +- CF 模组、资源包、光影、数据包按明确 classId 和扩展名分配目录;数据包仅放实例全局 datapacks,不自动改写任何已有世界启停状态。所有安装清单发布前统一校验 4 MiB 字节预算,避免写出随后无法读回的文件。 + +## 提交与构建 + +| 源码提交 | 内容 | +|---|---| +| `107bfeb59634e4d3f194c953854a5a5647b2a587` | 原生回归契约、MRpack 本地配置导出和反馈 | +| `d07b7daf191d5516032001362afcc883ce04b7a0` | 大缓存文件下载、传输提示及 Mac 全屏快捷键 | +| `761819d87fbd30de3cdb61abde4d97ac8ad784e2` | 大型 CF 包数量预算与必需游戏数据覆盖目录 | +| `2ad242d424ed87cf4b32d443fc76db1afce5c73d` | CF 光影 / 数据包类型及安装清单发布前字节预算 | +| `cf90727f35ba93e8593fa826e9ee189edd8b016c` | Mac Command–M 最小化及全屏保护 | + +上述提交已普通推送到社团 `origin/features/windows-parity`。原有未跟踪的 `SHOU_Launcher_macOS_Codex_Plan.md` 未改动、未提交。 + +最新 RC5 为干净 detached 源码构建,.NET SDK 10.0.403、Release、自包含、osx-arm64,版本 `1.5.0-dev.gcf90727f`。ZIP 解包及 `codesign --verify --deep --strict` 通过;签名为本地 ad-hoc,未公证。 + +- 候选:`.shou-dev/dist/MACOS-R27-20261111/rc5/osx-arm64/SHOU-Launcher-osx-arm64-v1.5.0-dev.gcf90727f.zip` +- SHA-256:`3d811b7f9e70e06d228dade8bcdab30d2f6c6dd52f09b98496c143e45b459413` +- 元数据:`.shou-dev/reports/macos-r27-20261111/candidate-rc5.json` + +## 自动化验证 + +Core **679 通过 / 5 显式跳过 / 0 失败**(2ad242d;RC5 的 Core 与 Core.Tests 无差异,见 core-source-unchanged-rc5.json);Desktop 最新 **230 通过 / 0 失败**(cf90727f)。C# 构建为 0 警告 / 0 错误。跳过项是条件限定的 Windows 目录句柄,以及需要单独显式启用的真实 Java 修复 / 下载测试,未算作通过。 + +大包回归包含 6,500 多个文件的真实暂存与清单读回、必需游戏脚本及预设数据保留、超额客户端 / ZIP 条目 / 安装清单拒绝。其余新增回归覆盖当前本地内容导出再导入、移动后取消回滚、真实反馈绑定、当前文件传输显示和缓存 / 包内文件大小边界。 + +结果与 TRX:`.shou-dev/reports/macos-r27-20261111/validation/rc4-core/`、`validation/rc5-desktop/`;有界运行记录为 `core-resource-final.json`、`desktop-shortcut.json` 和 `publish-rc5.json`。 + +## 原生验证记录 + +所有操作使用任务隔离数据 `.shou-dev/test-data/day-native-20261105` 和合成离线角色;未读取或修改真实登录凭据,未加入社团服务器。游戏窗口在 CUA 无法绑定时沿用本聊天已获准的 macOS 官方接口范围,目标进程 / 可执行文件 / 窗口先登记再操作。 + +### XPlus Fabric + +作者 Wudji 的官方 Modrinth 项目 `UCpApD3P`,选用 Minecraft 1.21.1 的 `v6.1.3-fabric-mc1.21.1`,版本 ID `1jWN3guT`。下载 MRpack 2,046,006 字节,按官方元数据 SHA-512 核验。 + +RC1 原生文件选择器读取、预检、显式新实例导入完成;清单 332 文件,85 个顶层模组 JAR。首页首次单击自动准备 Minecraft / Fabric 0.18.4,实际主菜单显示 98 Mods,生成并渲染本地世界,保存后回主菜单并 Quit Game。游戏日志记录 `code=0, cancelled=False, timeout=False`。 + +独立清单采样发生在首次启动已经点击之后:5 个配置文件由模组改写,其他清单项和模组 JAR 相符,不能称作启动前所有 332 项独立匹配。Mac OpenGL 有驱动诊断输出,但本次未崩溃且世界已渲染;长时间运行 / 更多光影组合仍待扩展。 + +RC4 对导出后重新导入的新实例执行首次单击启动,自动补全游戏 / Fabric,再次到达 98 Mods 的真实主菜单并 Quit Game,exit0。RC5 也实际重开同实例、观察主菜单及正常 Quit Game,exit0。真实世界渲染证据来自本轮 RC1,不冒充 RC5 又生成了世界。 + +证据:`native-evidence/01-xplus-first-window.png`、`03-xplus-world.png`、`05-xplus-saved.png`、`12-rc4-xplus-menu.png`、`16-rc5-xplus-menu.png` 与 `native-observations.json`。 + +### FTB StoneBlock 4 + +软件内搜索官方 FTB / FTBTeam 项目,选择 `1.24.1`(Minecraft 1.21.1 / NeoForge 21.1.262)。外层 ZIP 226,103,028 字节,独立 SHA-1 `17b277a094b575210a48e3e2ae3708bd745b73c3` 与下载记录相符;含 418 项 required 引用、6,477 个文件条目,展开约 322.76 MiB,推荐内存 8,192 MiB。 + +首轮错误使用 128 MiB 单文件限额;RC2 修复后软件内下载和校验完成,随后因旧 5,000 条目上限预检失败。RC3 修复数量边界与覆盖目录后,418 项引用中四项阻塞:三个文件无第三方 URL 且 Modrinth 同 SHA-1 查询 404,另一项 Extra Data Models 数据包属于尚未接入的包级资源类别。其[官方文件页](https://www.curseforge.com/minecraft/data-packs/extra-data-models/files/8644133)确认项目 1010203 / 文件 8644133;早期曾误称着色器,已更正。RC4 补齐类型后原生重新核验,数据包已解析,剩三个 required 阻塞:1289504/8640618、1138140/7964810、1189887/6139357,均为 Modrinth 精确同哈希查询 HTTP404。未创建不完整实例,完整安装、主菜单与世界未通过;RC5 仅改 Mac 快捷键,Core 与 RC4 相同。证据见 native-evidence/11-stoneblock-three-blockers.png。未用外部解包或手工填充实例冒充软件内安装成功。 + +### 窗口及其他 UI + +RC2 / RC4 / RC5 原生 Control–Command–F 全屏往返成功。RC4 经标准 AXMinimizeButton 的 AXPress 实际最小化,CG 窗口不可见;Raise 恢复后位置 / 尺寸保持 X247 Y131 / 976×636。RC2 曾出现恢复到 X=-77,历史现象保留,未以单次正常恢复替代完整位置矩阵。RC4 真实拖动窗口角至 **880×560**,主要导航、账户、实例选择及启动入口可见,证据 15-rc4-minimum-boundary.png。 + +RC4 的 Command–M 未响应;RC5 新增 Mac 快捷键并实窗验证:正常状态下最小化(CG onscreen=false),Raise 恢复,全屏状态下不会错误最小化,Control–Command–F 仍能返回。 + +RC3 本轮新增代表用例: + +| 流程 | 结果与证据 | +|---|---| +| 游玩后的 MRpack 导出 → 原生再导入 | 通过;124,955,038 字节,952 覆盖文件全部与当前实例 SHA-512 相符,5 个运行时配置保留;新实例 952 文件。见 xplus-native-export.json | +| 世界 ZIP 原生选择器 / Finder 文件剪贴板 | 两种入口均预检后显式确认创建新目录;源夹 SHA-256 不变。采用隔离 R5 编辑对照世界,不称作真实游戏世界成功迁移 | +| 真实 Fabric 世界 ZIP → 同为 Fabric 的新实例 | 失败:内建包 fabric 未核实,拒绝发布;见 R27-W01。对照成功不抵消该失败 | +| 数据包加载顺序 | 界面下移并显式保存,独立解码 NBT 验证 qa-disabled → qa-enabled 顺序;vanilla 保留 | +| 本地 ZIP 替换、更新备份、预检恢复、明确确认恢复 | 通过;新文件与样本字节相同,原包备份精确;恢复后 level.dat 与两原包逐字节一致,新版本另存保留。见 datapack-native-update / restore / order.json | +| Finder 数据包文件剪贴板 → 启用 | 通过;3 个包可见,启用成功后旧的“尚未修改世界启停状态”消失;截图 10-datapack-enabled-feedback.png | +| 独立内存 / JVM 参数 → 重命名 → 保存 | 通过;独立 3072 MiB、-Dfile.encoding=UTF-8,实例 ID / 路径不变,全局 2048 MiB 不变 | +| Mac 脚本原生另存 | 通过;脚本路由到明确实例及隔离目录,sh -n 通过,未含凭据字段;仅导出检查,未执行 | + +RC4 重启已在实窗读回改名后的实例、独立内存 / JVM 参数、两个世界、三个数据包及保存的加载顺序。 + +## 测试工具问题与边界 + +首次测试参数误设 `--exit-after 6500`,超过工具 3,600 秒上限,启动失败记录保留。改为 3,300 秒后,直接执行文件启动与 CUA 按 Bundle ID 激活混用时,CUA 曾打开已登记的旧 RC1 空白默认窗口;未在这些窗口执行登录、导入或保存,随后正常关闭。默认目录可能更新启动日志 / 锁 / bootstrap 缓存,不声称零写入。 + +缓解:仅注销旧任务候选的 LaunchServices 登记,登记当前候选,用 `open -n -W --args` 传隔离参数,核对 Ready 收据 / PID / 数据目录后再绑定 CUA。旧候选文件未改动,登记可恢复。关闭后避免 `getAXState()` 自动重开。 + +RC4 的 CUA 最小化坐标点击未隐藏窗口,左上可见另一个蓝色系统控件,定位影响尚未确认;改用已授权的标准 AXMinimizeButton 动作完成验证。AX 设置尺寸也未改变实际 CG 尺寸,故最小窗口以真实角拖动和截图几何为准,不把调用成功当作调整成功。 + +任务保持 `.shou-dev` 35 GiB 总预算和系统 20 GiB 余量检查,重活互斥;仅回收可重建的闲置旧 build 目录,保留源码、候选、报告和测试数据。回收收据见 `reclaimed-builds.json`。 + +## 未完成 + +本轮测试已结束,候选与两个最终游戏进程均正常退出,无测试任务留在后台。最终交付前的完整性检查见 final-audit.json。以下事项保留在 todo.md,未算作通过: + +- **R27-P01 / P1**:StoneBlock 三个 required 文件没有合法自动来源;需设计合法手动补文件、精确哈希校验和重试流程。完整安装 / 主菜单 / 世界仍阻塞。 +- **R27-W01 / P2**:真实 Fabric 世界 ZIP 的内建 / 模组包身份未与目标实例核验,预检拒绝 fabric;保留原 NBT,不手改样本去掉身份。 +- 世界列表快捷游玩尚未接入;Mac 自定义游戏标题适配仍缺。 +- 导入已显示当前文件 / 实传 MiB,总文件数、解析阶段和失败重试诊断尚不完整。 +- 数据包真实在线更新、CF 数据包外网更新、更多加载器 / Java / 光影组合、已有目录切换、classpath / 启动前程序和导出脚本实际执行等原生矩阵仍待验。 +- 完整 DPI / 跨屏 / VoiceOver / 键盘 / SMB 中断矩阵,以及没有系统覆盖控件时的交通灯鼠标操作未全量验收。 +- 真实在线账户、在线皮肤披风、认证入服未测;本轮只用合成离线角色。大型 CF 包包含新增覆盖目录后的各导出格式往返也未全量覆盖。 diff --git a/docs/conduit/MACOS-UI-R28.md b/docs/conduit/MACOS-UI-R28.md new file mode 100644 index 00000000..9a6e8049 --- /dev/null +++ b/docs/conduit/MACOS-UI-R28.md @@ -0,0 +1,47 @@ +# Mac R28:整合包直装与原生验收 + +本轮延续 `features/windows-parity`。用户授权修改、提交和推送当前功能分支,未授权合并 main/dev、合并 PR 或正式发布。本轮隔离游戏授权覆盖主菜单、单机和正常退出;未读取真实账户凭据、未连接服务器、未上传游戏日志。 + +## 候选与环境 + +- 最终候选:`.shou-dev/dist/MACOS-R28-20261111/rc7/osx-arm64/SHOU-Launcher-osx-arm64-v1.5.0-dev.g2591d500.zip`(本地 ad-hoc 签名,非正式发行)。 +- 源码:`2591d50091129f2f61f7e39e02daf4de0a58275b`;.NET SDK `10.0.403`,Release / osx-arm64。报告提交可晚于构建源码提交。 +- SHA-256:`7b3aa22a8b3b7ad48316d1e3ab89bdeee8dc230bd1688d32fae35c55a9b92802`。 +- macOS 26.6 / Apple Silicon;游戏 Java 21.0.13+9。候选通过既有 EnvFile 流程载入本机 `.env`;微软/CurseForge 配置均验证已嵌入,只记录布尔结果,不输出值。无需 SMB 复制。 + +## 已实现 + +- 整合包版本行直接启动后台下载、解析、独立实例导入及本体/加载器准备。右下角通知进入任务管理;过程中可导航和浏览社区资源。整合包任务与文件传输分别计数,明细可展开。 +- 展示阶段、文件进度、剩余文件及最近一秒网络速度;未知总数明确显示“统计中”。短文件、并发和尾块计入,缓存命中与断点偏移不当成新流量。 +- 最多四个文件并发。取消等待所有写入者停止后回滚暂存;基础游戏准备失败保留已导入实例,重试不会重复导入。重复点击和迟到进度有保护。 +- CF 未提供地址时,仅接受 FTB 官方公开同版本清单中匹配 MC/加载器、CF 项目/文件 ID、目录、大小和 SHA-1 的地址,再校验 SHA-512。保留不可用、恶意、已删除及归档限制,不重建 CDN URL,不向 FTB/Modrinth/CDN 发送 CF key。读取包建议内存并应用于新实例。 +- Mac 品牌顺序为 **SHOU → 潮涌核心社启动器 → 图标**。使用 AppKit 标准交通灯,以 NSView 坐标转换维持 48pt 标题栏的中心;最小化/全屏跳过维护,关闭停止。修复大号数值裁切及进度条越界。 +- 修复 BootstrapLauncher 原版 JAR 重复模块:加载器 profile 身份与实际继承客户端 JAR 名不同,导致官方 `${version_name}.jar` 忽略项失配。仅为声明该模板的 BootstrapLauncher 补入实际文件名,保留 profile、其它过滤项和 classpath,不改包内模组。[官方语义](https://github.com/McModLauncher/bootstraplauncher/blob/main/README.md)。 +- Fabric 1.21.1 世界的 `fabric`、`fabric-convention-tags-v2` 按目标实例中未改动的安装清单双哈希、模块元数据及资源内容核验。预检与发布前重新核对,不删除/改写 NBT 包身份;未知 ID/其它版本继续阻塞。[官方资源包提供实现](https://github.com/FabricMC/fabric/blob/1.21.1/fabric-resource-loader-v0/src/main/java/net/fabricmc/fabric/impl/resource/loader/ModResourcePackCreator.java)。 + +## 测试与原生结果 + +Core **707 通过 / 5 显式跳过 / 0 失败**;Desktop **233 通过 / 0 失败**,构建零警告/错误。Core 新增 28 项覆盖 FTB 身份/来源/哈希、并发取消、速度统计、Fabric 世界身份和 Bootstrap 参数;Desktop 新增 3 项覆盖后台导航/通知、最小窗口、取消/重试、保留实例及迟到进度。5 项跳过为 Windows 文件语义两项,以及需要特定真实运行时环境的三项,未伪称通过。 + +| 实测项 | 结果与证据 | +| --- | --- | +| CF StoneBlock 4 1.24.1 | 软件内一键完整安装;418 项 required,安装清单 6,894 项,建议内存 8,192 MiB。三个旧阻塞文件由同版本 FTB 清单解决,大小/SHA-1/SHA-512 均匹配。 | +| StoneBlock 游戏 | 修复前模块冲突失败日志已留存。RC5 修复后观察 437 Mods / MC 1.21.1 / NeoForge 21.1.262 主菜单,创建并进入单机 `New World`,保存回标题后点击退出;启动器记录 `code=0, cancelled=False, timeout=False`。默认关闭光影。 | +| Modrinth XPlus Fabric 6.1.3 | RC6 软件内一键下载、解析、安装 332 项文件并准备 Fabric 0.18.4;85 个顶层模组 JAR,实际 98 Mods 主菜单,点击游戏退出并记录 code=0。实窗速度曾为 5.06 MiB/s。 | +| 真实 Fabric 世界 ZIP | 原 R27 样本成功预检/导入为 `Mac28-ImportedFabric`;22 项文件全部与 ZIP 字节一致。`level.dat` SHA-256 保持 `c0f47e5643b21200e693ba8363d5dd519b5440683ad387a6e79112a9bedf92ee`。 | +| Mac 窗口 | 实际拖到 880×560 后任务指标/卡片可读;原生按钮中心距顶 24pt。全屏来回、原生最小化/恢复/关闭已验。系统共享浮层覆盖交通灯的鼠标区域时使用已授权 AX 动作,不把覆盖层当作产品按钮。 | +| 取消与最终收尾 | RC1 下载阶段正常关闭后无残留暂存、无残缺 StoneBlock 实例。四并发取消另有确定性回归。最终 RC7 开窗收据校验源码/隔离目录/原生句柄,原生关闭 `normal_close`,测试启动器及 Java 进程均已结束。 | + +游戏验收分别在 RC5、RC6;RC7 仅改变任务摘要计数,Core 与 RC6 相同,并另作真实开窗/关闭检查。CUA 无法绑定 Java 窗口时沿用用户明确授权的 macOS 官方接口,校验 PID、可执行文件、窗口和前台状态;未操控其它应用。 + +完整收据/截图位于 `.shou-dev/reports/macos-r28-20261111/`:`stoneblock-installed.json`、`stoneblock-native-result.json`、`xplus-direct-native.json`、`fabric-world-import.json`、`native-final-result.json`、`native-evidence/`;TRX 留存于其中 `validation/`。 + +## 未完成与边界 + +详见根目录 `todo.md` 的 R28 条目:其它无公开同哈希来源包的合法手动补文件流程、未知世界内建包/版本、世界快捷游玩、更多 UI 徽标/二级文案/默认实例名,以及 Windows 真机、真实登录/皮肤、DPI/跨屏/VoiceOver、断网/限速和更多加载器矩阵。未据本轮结果宣称已经完全取代 WPF。 + +StoneBlock 基础游玩通过,日志仍出现 Malum 配置反复纠正、Apple OpenGL copy-buffer 与 Vector API 优化告警。未改写原包掩盖问题;全部机器/配方、长期游玩与光影仍需下一轮兼容验证。 + +## 旧实现参考 + +用户本轮明确允许参考旧实现,因此本轮不再声称源代码隔离的 cleanroom。实际阅读 `Plain Craft Launcher 2/Pages/PageDownload/Comp/PageDownloadCompDetail.xaml.cs` 的 `Install_Click` 以核对后台组合任务/通知行为;仅检索 `Plain Craft Launcher 2/Modules/Minecraft/ModModpack.cs` 的入口/阶段。新 Core/Desktop 不引用旧 WPF 项目。原有未跟踪计划文件保留,未纳入提交。 diff --git a/docs/conduit/MACOS-UI-R29.md b/docs/conduit/MACOS-UI-R29.md new file mode 100644 index 00000000..11160231 --- /dev/null +++ b/docs/conduit/MACOS-UI-R29.md @@ -0,0 +1,59 @@ +# Mac R29:热门整合包、模组管理与授权体验 + +本轮延续 `features/windows-parity`,仅推送该功能分支;不合并 PR、不改 `main/dev`、不发布。用户随后明确跳过旧版游戏准备,因此未安装 Rosetta 或 Java 8,未保留旧 Forge 专用改动。本轮只验证启动器、文件安装与 Java 探测,没有启动 Minecraft,也没有读取或完成真实账户登录。 + +## 候选与构建 + +最终 RC3 源码 `e16683c7b209d7562992648351afdc845239eb7c`,.NET SDK 10.0.403,Avalonia 12.1.5,Release / osx-arm64 / self-contained;本地 ad-hoc 签名,未公证、未正式发行。 + +候选位于 `.shou-dev/dist/MACOS-R29-20261111/rc3/osx-arm64/SHOU-Launcher-osx-arm64-v1.5.0-dev.ge16683c7.zip`,SHA-256: + +`b4b54b35253c4672f91c2ccc8e1206297a38232fdd959c6b15ec92d7c6c62556` + +构建显式传入本机已有 `.env`,Microsoft / CurseForge 配置嵌入校验均通过,不输出值。`BUILD-INFO.json` 的 `source_dirty=true` 来自保留的未跟踪计划文件 `SHOU_Launcher_macOS_Codex_Plan.md`;构建时已跟踪源码无差异,该计划文件未进入提交和包。构建、测试、原生下载串行通过空间门禁,任务预算 35 GiB、系统保留 20 GiB,未绕开门禁另存重型产物。最终回归前门禁曾阻止超过预算的新任务;仅归档本轮失败测试的 GUID 临时样本、移除已通过测试的可丢弃样本后恢复,保留所有候选、原生数据、日志和 TRX,清理清单与可恢复归档在本轮报告目录。 + +## 修改 + +- CF 热门版本中个别历史文件缺 SHA-1 时,单独显示不可下载说明,不再让整个项目列表失败。ATM10 的历史文件 6273343 正是此前整页报错的触发点;其它有效版本保持可用,身份、来源、哈希与大小仍严格校验。 +- 对确实没有第三方下载 URL 的 required 文件,后台任务提供官方页面与选择已下载文件入口。重新核验原整合包、官方项目/文件身份、大小及 SHA-1,再计算 SHA-512 并纳入暂存;补齐后自动重试,不能跳过 required 文件。拒绝恶意/已删除等状态,不猜 CDN 地址。该通用流程有受控端到端回归,旧版 RLCraft 原生补齐/运行按用户指示跳过。 +- 本地安装改为搜索旁的紧凑按钮,空白导入大卡片不再占位;项目详情显示真实图标,版本列表默认展开,移除无关收藏空提示,并避免 CF 新实例名重复拼接项目标题。 +- 实例模组读取归档内的名称、版本与 PNG 图标,异常元数据安全回退;扫描不阻塞 UI,图片和元数据有独立大小预算。搜索覆盖名称、文件名与版本。 +- 模组页可带入明确实例、游戏版本与加载器下载资源;资源包和光影不再误用模组加载器筛选。更新检查按本地哈希确认官方身份,只列出同游戏版本/加载器的正式版。兼容旧 CF 清单的 `cf-文件ID` 身份,不改写旧收据;更新需明确选择与确认,原 JAR 和精确安装清单先备份,再校验和发布,失败回滚,保留禁用状态。 +- RC2 实测暴露大包更新检查的四分钟超时会丢掉全部结果。随后改为整次检查共享 CF 连接;服务超时返回已核实更新并逐个标记尚未核实/尚未查询的文件,用户主动取消仍终止操作,不伪称全部已查完。RC3 全量自动化通过;锁屏期间直接加载最终包程序集调用只读服务,在 97.36 秒内查完 494 个模组,找到 36 项正式版更新,6 项未核实且文件保留。另查明这六项当前 CF 版本均未提供第三方下载 URL,现有更新检查不能将其作为可下载身份核实;需要后续合法手动更新入口,不伪称最新。未批量升级整合包;最终大包查询实窗因 Mac 锁屏仍待重试。 +- 微软设备授权收到代码后自动复制并打开系统默认浏览器;单次授权只打开一次,复制/浏览器失败有手动回退。移除遮挡授权面板的全局等待层;等待时隐藏重复登录表单,取消按钮固定在账户区域底部,小窗口仍可见。迟到的授权进度不能重开浏览器。 +- “游戏资源”成为独立非选择标题,与“存档”分开;游戏本体和资源导航各自选择,侧栏可滚动。 +- macOS 优先发现常规安装目录中的 JDK,再考虑托管回退;按游戏所需主版本匹配,不把 JAVA_HOME 25 强行用于要求 21 的游戏。 + +## JDK + +官方 Eclipse Temurin arm64 归档下载后逐一核对 SHA-256,安装于当前用户标准目录,无需系统级写入: + +| 版本 | 安装目录 | +| --- | --- | +| 17.0.21+9 | `~/Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home` | +| 21.0.13+9-LTS | `~/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home` | +| 25.0.5+8-LTS | `~/Library/Java/JavaVirtualMachines/temurin-25.jdk/Contents/Home` | + +`/usr/libexec/java_home -V` 可见三者。`~/.zprofile` 已备份并设置 JAVA_HOME / PATH 指向 25,`launchctl` 的 JAVA_HOME 同步为 25,新的登录 shell 实测为 25。开发门禁明确登记这三个安装目录;受控测试使用正式安装的 21,候选 Java 探测使用正式安装的 25,不再依赖临时工具目录。隔离启动器的全局 Java 偏好已在实窗改为自动并保存;Fabric QA 实例通过实窗、原版 QA 实例通过最终包的 `UpdateInstanceAsync` 服务接口,将两个明确指向临时 JDK 21 的覆盖迁移到正式安装的同版本 JDK 21,原配置均已备份,其余字段保留。已独立确认隔离数据没有残余临时 Java 覆盖。安装收据见 `jdk-installed.json`。[Temurin 归档安装说明](https://adoptium.net/installation/archives)。 + +## 验证 + +最终 Core **727 通过 / 5 显式跳过 / 0 失败**;Desktop **240 通过 / 0 失败**,编译零警告、零错误。跳过为两个 Windows 文件句柄语义测试及三个需要特定真实运行时环境的测试。新增回归覆盖损坏历史 CF 版本隔离、合法手动补文件、图标边界、更新事务/依赖/回滚、旧清单到目录接口的身份链、资源类别筛选、时间预算下部分结果保留/显式取消的区分及 880×560 授权取消可见性。早期失败日志保留,最终结果以 `core-final-all`、`ui-final-all` 为准,TRX 在本轮 `validation/`。 + +| 原生测试 | 观察结果 | +| --- | --- | +| ATM10 8.5 | RC1 软件内点击版本行,通知跳转任务管理,四阶段全部 100%;498 个 required 引用均解析,安装清单 4,382 项,顶层模组 JAR 494 个,MC 1.21.1 / NeoForge 21.1.265,建议内存 8,196 MiB。安装完成可选中实例、启动按钮可用;没有点击启动。 | +| 模组列表 | 实际 ATM10 图标/名称/版本显示,`jei` 搜索缩小到五行;侧栏“游戏资源”与“存档”分离。 | +| 微软设备授权 | RC1 自动打开默认 Chrome 的微软设备页,剪贴板与当次代码比较一致。RC2 真实窗口拖至 880×560 后,等待时底部取消按钮通过 CUA 直接点击成功,正常回到登录表单;没有保存设备代码或完成真实账户登录。 | +| 最终包只读更新服务 | 直接加载 RC3 中的 Core/Desktop 程序集,确认源码身份后调用同一个检查方法;97.36 秒,494 个已检查,36 项更新,6 项未核实,正常返回,安装清单原 SHA-256 未变。隔离配置仅离线档案及系统代理,未读取真实凭据或启动游戏。此项是服务/API 实测,不替代原生界面验收。 | +| 最终 RC3 实窗 | 启动收据在 AvaloniaNativeRenderTimer.EnsureRegistered 阶段失败;随后 CUA 与系统会话均确认 Mac 锁屏。进程已退出,无窗口可操作。需手动解锁后重试,区分会话状态和应用问题,最终开窗/ATM10 大批量查询/正常退出未计通过;RC2 的成功不抵消此项。 | +| 单个模组安装与更新 | 空白 Fabric 1.21.1 隔离实例软件内安装 Sodium 0.8.12;实际检查发现正式版 0.8.13,逐项确认更新成功。仅一个新 JAR,旧 JAR 和更新前精确清单均在 `.shou-mod-backups/`,独立核对新文件大小/SHA-1/SHA-512及备份原字节一致,没有重复旧 JAR,没有启动游戏。 | +| 资源包与光影 | 同一明确实例软件内安装 Faithful 32x / 1.21.1 June 2026(10.52 MiB)及 Complementary Reimagined r5.9.3(0.53 MiB);资源包筛选实际显示“任意”加载器,光影按 1.21.1 筛选,目标实例与正式 JDK 21 保留。三种资源的最终大小/SHA-1/SHA-512均匹配安装清单;没有把下载成功视为游戏内渲染通过。 | + +原生证据位于 `.shou-dev/reports/macos-r29-20261111/`,包括 `atm10-native-installed.json`、`auth-native.json`、`auth-minimum-rc2.json`、`sodium-update-native.json`、`resources-native.json`、`candidate-final.json`、`atm10-updates-rc3-service.json`、`atm10-unverified-diagnostics.json`、`vanilla-installed-java.json`、`native-rc3-result.json`、`native-evidence/`。RC1、RC2 均正常关闭,未触发退出计时。CUA 无法稳定截图/输入时,沿用用户明确授权的 macOS 官方接口,仅绑定本轮候选的 PID、可执行文件、窗口与前台状态;不操作其它窗口或游戏。 + +## 范围与后续 + +RLCraft/旧 Forge/Java 8/Rosetta 按用户指示跳过,不作为本轮基础功能的完成门槛。未据文件安装推断 ATM10 游戏可玩,未据正式版筛选推断数百个模组升级后的组合兼容。真实微软登录/外观、游戏内光影/资源效果、完整 WPF 差距、跨屏/DPI/VoiceOver 与网络故障矩阵仍需后续验证,见 `todo.md`。 + +本轮按用户要求阅读旧 WPF 的模组资源行和更新入口实现以确认交互,不宣称源代码隔离的 cleanroom;新 Core/Desktop 没有引用旧 WPF 项目。 diff --git a/docs/conduit/PACK-COMPATIBILITY-R37.md b/docs/conduit/PACK-COMPATIBILITY-R37.md new file mode 100644 index 00000000..164015d6 --- /dev/null +++ b/docs/conduit/PACK-COMPATIBILITY-R37.md @@ -0,0 +1,48 @@ +# R37:撤销整合包内容过滤与移植限制审计 + +本轮按用户要求,撤销移植时额外添加的目录/扩展名白名单,恢复旧 WPF v1.5.0 的客户端覆盖内容复制语义。旧版参考为 `8746ad26f9df1eff9f5a3ea57311f82a14ec181b`,以本仓库历史文件核对,不追踪原上游。 + +## 修正 + +| 项目 | 旧版调用链/行为 | 此前移植差异 | 本轮处理 | +|---|---|---|---| +| CF overrides | `ModModpack.CopyOverrideDirectory → ModBase.CopyDirectory → EnumerateFiles("*", AllDirectories)` | 名单外目录/脚本/原生库/存档直接跳过 | 全量复制指定覆盖内容,`SkippedFiles` 不再因自设类型过滤增加 | +| MRpack 客户端内容 | 下载清单 + overrides + client-overrides | 仅接受七种目录与三个根文件 | 合法路径均可导入,客户端覆盖层优先 | +| 脚本与原生库 | 覆盖目录中原样复制 | `.sh/.dll/.so/.js` 等额外过滤 | 按字节保存;导入/导出程序不调用它们。游戏加载模组脚本的行为保持 | +| MRpack 下载来源 | 读取包内 downloads,再应用下载源设置 | 强制单一 CDN、默认端口、最多八个来源 | 读取包内 HTTP(S) 来源,保留既有 HTTPS 用户设置、大小/SHA-1/SHA-512 与无 URL 账号密码要求;有实际 VerifiedDownloader 夹具 | +| MRpack 附加文档 | 解压后只复制格式声明的覆盖层 | README/额外目录使整包拒绝 | 附加文档可共存,只从客户端层取游戏内容;路径/归档检查仍覆盖 ZIP | +| 包裹目录 | 旧入口能识别一层包目录 | CF/MRpack 只接受根标识 | 支持一层包裹目录,多个有效候选仍明确报错 | +| CF 根覆盖 | 旧版处理 `.` / `./` | 作为非法相对路径拒绝 | 恢复根覆盖及尾斜杠写法;原 manifest 作为覆盖内容保留 | +| CF 文件数 | 原列表未设 512 项产品上限 | 硬上限 512 | 与现有整体 8,192 文件预算统一;600 项清单/解析回归通过,解析总时限随工作量调整 | +| CF 世界 ZIP | `level.dat` 类型路由到 saves | 世界类被拒绝 | 恢复官方 world 类到 saves 的 ZIP 路由;未宣称已自动解压/可进入世界 | +| MRpack/CF 导出 | 旧导出可选择其它目录 | 导出沿用目录/扩展限制 | 选择或安装清单中的合法内容可往返 | +| SHOU 导出/导入 | 新格式,无同名旧格式 | `account/token/password` 关键词、点文件、扩展名及 2,048 项过滤 | 去除关键词/扩展/隐藏文件误判;默认导出增加已导入清单的目录和根文件;数量使用共同预算 | +| 首次在线查询 | 旧页保留搜索和本地入口 | 无结果时全页加载遮挡入口 | 查询徽标/取消保留,本地预检不必等待网络;最小窗口有延迟请求回归 | +| 根覆盖再导出 | 完整内容可保留原 manifest | SHOU 再导入将原 manifest 误判为第二格式 | 精确 SHOU 清单明确列出的其它标识视为数据并继续逐文件验哈希;自身元数据名冲突明确报错,可换 MRpack/CF 格式 | + +凭据的导入与保存内容是两条路径:导入覆盖目录中的同名 JSON 仅保存为实例文件,不读取成启动器账户。导出仍排除已知**根目录**凭据文件 `launcher_accounts.json`、`launcher_accounts_microsoft_store.json`、`shou.desktop.v1.json`、`credentials.json`、`accounts.json`、`authentication.json` 和 `.env`;`config/account-token-addon.json` 等普通模组配置不再按名字猜测并丢弃。旧导出也有独立的启动器配置选项,不能将隐私排除混同为游戏数据目录白名单。 + +保留路径越界、链接/重解析点、大小写/Unicode 冲突、CRC、下载哈希、原归档变化、事务失败回滚及生成清单名冲突检查。工作副本改放在暂存目录旁,避免与同名合法包文件互相覆盖。这些检查失败会明确拒绝本次导入,不删掉一部分文件再冒称成功。 + +## 其它审计发现与待办 + +本轮静态扫描命中 39 个文件、137 处限制/能力提示,再追上述旧版调用链及设置、工具的相关条件。这是一次定点审计,尚未完成整个旧 WPF 的逐功能审计。 + +- **CF 可选文件选择缺失(P1,R38 已补)**:本轮审计时新 resolver 仅解析 required,缺少旧版 `required=false` 询问能力。后续 [R38](MACOS-R38.md) 已接入本地/后台选择、重新预检及手动补文件恢复;Windows 与真实在线后台实窗矩阵仍保留待办。 +- **归档工程边界(P1)**:仍有 ZIP 256 MiB、展开 512 MiB、单文件 128 MiB、整体 8,192 文件/10,000 ZIP 条目、下载合计 4 GiB、安装清单 4 MiB,以及 ZIP64/多卷不支持。这些是移植边界,不是已核实的旧版产品限制。后续须以流式读写、磁盘余量和可取消检查替代过小固定边界,不能只调大内存上限或去掉完整性检查。 +- **更多格式/加载器(P1)**:旧版还有 HMCL、MCBBS、MultiMC 和普通压缩实例等入口;当前 MultiMC 仅预检、其它格式未完整接入,多个加载器组合也受限。属于尚未完成的移植,不能显示成旧版原有禁止项。 +- **远程 aria2(P2)**:用户要求默认 localhost:6800 与端口优先,并未要求禁止远程端点。当前仅本机校验是额外的实现边界;远程普通文件与 CF 本机中继如何衔接仍需完成,未擅自暴露中继监听地址。 +- **额外勾选门槛(P2)**:更新单个模组、修改加载器采用确认勾选后再按按钮;旧版有确认提示,但交互形态不同。应另行核对并简化重复确认,文件替换/删除的恢复保护继续保留。 +- **目录与下载差距**:实例目录命名/迁移、内置自适应分段、逐文件暂停、跨重启历史等沿用 R30/R33 待办,不能据已有设置或按钮称为完成。 + +联机大厅、视频背景、启动器自动更新以及额外语言,均有用户明确缩减范围的记录,本轮保留相应决定。系统/运行时架构校验及运行中实例写保护属于可核实的执行条件,未一并撤掉。 + +## 验证与候选 + +- Core 最终全量:779 通过、5 项沿用条件跳过;Desktop:270 全通过。0 构建警告/错误;新增 15 项用例,含完整数据落盘、三种格式往返、额外文档、包裹目录、来源、600 项清单、世界类型及生成清单冲突。完整日志/TRX 在 `.shou-dev/reports/macos-r37-20261112/`。 +- 最终 RC2 源码 `55ea700b03ec90d2f5c75f0e50fc17fc1588084f`(内容修正 `1a9d9c4a`,本地入口修正 `55ea700b`),.NET SDK 10.0.403,Release / osx-arm64;显式 `.env`,未输出或提交凭据值。 +- 本轮只验证启动器、导入/导出及非游戏回归,不启动 Minecraft,不操作个人安装/实例。 +- 最终 ZIP:`.shou-dev/dist/MACOS-R37-20261112/rc2/SHOU-Launcher-osx-arm64-v1.5.0-dev.g55ea700b.zip`;SHA-256 `c240d5b995218695cf7a12903ac93728bef2833888f47a7f9f448291e3f83d3b`。ZIP CRC、应用签名、QA Core/Desktop 程序集一致性均核实;QA 只改变 bundle 标识与根签名。 +- 原生验收:最终 RC2 查询期间入口可见可用,两个合成包分别完整导入 7/6 文件;逐文件原字节与双哈希核对、脚本执行标记不存在。真实 RLCraft 在同候选成功导入 3,568 文件(367,683,283 字节),全部大小/SHA-1/SHA-512 一致;3,381 项 overrides 逐项与原 ZIP 字节相等。补回 `optionsof.txt`、三个 Changelog、`server.properties` 和附带说明六项。复用先前已验证的下载/加载器/手动文件缓存,非所有模组重新联网下载。 +- 首页选中 R37 RLCraft;Command–Q 正常关闭,native handle 为真、包装进程退出 0、QA 进程消失。脚本标记不存在,隔离数据无账户/游戏会话,`.env` 元数据及无关计划文件哈希不变。未启动游戏,未更新个人安装/实例;Windows 真机本轮未验证。 +- 本地证据:`native-local-during-search.ax.txt`、`native-synthetic-integrity.json`、`rlcraft-full-integrity.json`、两份安装截图、`native-result-rc2.json` 和 `preservation-and-exit.json`。空间门禁仍为 35 GiB;仅按已通过运行的时间窗口回收 GUID 合成夹具,完整日志/TRX/候选归档保留。RC1 仅用于发现入口遮挡,最终结果均为 RC2。 diff --git a/docs/conduit/PRIVACY.md b/docs/conduit/PRIVACY.md index 6f905601..daf83fc7 100644 --- a/docs/conduit/PRIVACY.md +++ b/docs/conduit/PRIVACY.md @@ -2,19 +2,31 @@ 本说明对应当前开发源码,已发布版本可能仍采用旧行为,需以实际版本为准。 -## 遥测与日志 +## 跨平台桌面版本 + +新版不提供联机大厅或 EasyTier 连接,也不会启动时自动检查、下载或替换启动器。发行检查须由用户在设置页手动触发,下载新版由用户在浏览器中完成。 + +账户令牌与连接密钥交由平台安全存储;启动器配置和诊断日志保存在本机。分享日志由用户决定,分享前请检查目录、账户标识、启动参数和服务器地址。 + +登录、资源下载、社团内容、自定义在线主页及域名解析会联系用户选择的服务。外部 aria2 仅连接用户配置的本机 RPC,无法连接时使用内置下载器;启动器不自动寻找或启动 aria2 程序。 + +个性化使用本机字体、图片与音频文件;标题图片和本机主页不会自动上传。自定义主页按纯文本/Markdown 读取,不执行旧 WPF/XAML 界面代码。 + +以下联机改造说明只描述旧 WPF 历史版本,不代表新版仍提供该功能。 + +## 旧 WPF 版本:遥测与日志 启动器已移除 Sentry 设备调查、错误自动上报、联机集中信息上报,以及原 PCL-CE 服务器的远程联机功能开关。旧遥测配置仅保留用于清除旧授权,不再启用数据发送。 诊断日志保存在本机,可能包含启动参数、目录、服务器地址和本地设备识别码。设备识别码仍用于本地兼容处理;账户加密方式没有随本次联机改造改变。用户选择分享日志或崩溃报告时,应先检查其中的个人信息。 -## 联机 +## 旧 WPF 版本:联机 大厅不再需要 Natayark 账户,也不自动刷新旧 Natayark 令牌。联机昵称来自本机设置或当前游戏账户;自定义节点来自本机设置。启用公共节点时,启动器使用内置的 EasyTier 公共节点地址,不再下载原项目的远程策略或中继列表。EasyTier 程序从其官方 GitHub Releases 下载。 建立联机连接时,节点运营方和其他参与者可能接触到必要的 IP 地址、昵称、连接状态和大厅信息。联机协议使用本次启动随机生成的会话标识,不再发送本机硬件派生识别码。公共节点由第三方运营,其可用性及数据处理不由本项目控制;可以选择“仅使用自定义节点”。 -## 登录、下载与在线内容 +## 登录、下载与在线内容(服务范围) - 微软、LittleSkin、MUA 或用户指定的认证服务按用户选择处理登录请求;密码和令牌不发送给社团代码仓库。 - Minecraft、模组、整合包与加载器下载会联系所选官方服务或镜像。下载服务可见请求的资源、网络地址和启动器版本标识。 diff --git a/docs/conduit/RELEASE-v1.6.0.md b/docs/conduit/RELEASE-v1.6.0.md new file mode 100644 index 00000000..7cf92420 --- /dev/null +++ b/docs/conduit/RELEASE-v1.6.0.md @@ -0,0 +1,31 @@ +# 潮涌核心社启动器 v1.6.0 · xb + +新版双端启动器预发布,支持 Windows 和 Apple Silicon Mac。 + +## 本次更新 + +- 延续旧版界面与使用习惯,更新首页、账户、下载、实例管理和设置页面。 +- 支持整合包拖入安装、导入与导出;补齐模组、资源包和光影包的自动检查更新、可更新筛选与直接更新。 +- 改善 macOS 游戏启动和账户保存体验,普通更新后可继续读取已保存的账户。 +- 支持连接已启动的 aria2 下载服务;服务不可用时自动使用内置下载。 +- 设置修改即时保存,提供简体中文、繁體中文和 English。 + +## 选择下载包 + +| 设备 | 下载文件 | +| --- | --- | +| 常规 Windows 电脑(Intel / AMD) | `SHOU-Launcher-win-x64-v1.6.zip` | +| Windows ARM64 设备 | `SHOU-Launcher-win-arm64-v1.6.zip` | +| Mac M 系列芯片 | `SHOU-Launcher-osx-arm64-v1.6.zip` | + +Windows:解压后运行 EXE,无需另装 .NET。更新时退出启动器,将新程序放回原目录,可继续使用原实例和同一 Windows 用户保存的账户。 + +macOS:解压后将「SHOU Launcher.app」放入「应用程序」,替换前先退出旧版。首次迁移旧账户时,可能需要按系统提示完成一次钥匙串授权。 + +## 使用提示 + +- 这是预发布版本,部分旧整合包和设备适配仍在完善;目前不提供 Intel Mac 版本。 +- Mac 唤醒或切换显示器后若偶发无法打开窗口,请待桌面恢复后重新打开。 +- Mac 版尚未通过 Apple 公证,Windows 版暂未提供数字签名,首次运行可能出现系统安全提示。 + +遇到问题可通过启动器的「反馈」页面提交。 diff --git a/docs/conduit/RELEASE-v1.6.1.md b/docs/conduit/RELEASE-v1.6.1.md new file mode 100644 index 00000000..34755834 --- /dev/null +++ b/docs/conduit/RELEASE-v1.6.1.md @@ -0,0 +1,30 @@ +# 潮涌核心社启动器 v1.6.1 · xb + +本次预发布重点修复旧版本迁移后的资源重复下载和首页头像读取问题。 + +## 本次修复 + +- 接入旧实例后,校验并复用已有客户端、依赖库、资源索引和资源文件,只补充缺失或损坏的文件,减少重复下载。 +- 首页自动恢复已保存的在线账户,必要时刷新登录,再加载头像、皮肤和披风,无需先启动游戏。 +- 修复令牌刷新时头像请求被中断的问题;认证失败会保留账户并提示重新登录,不会循环重试。 +- 精简下载附件,仅提供三个平台的启动器编译包;文件 SHA-256 可直接在 GitHub 查看。 + +## 选择下载包 + +| 设备 | 下载文件 | +| --- | --- | +| 常规 Windows 电脑(Intel / AMD) | `SHOU-Launcher-win-x64-v1.6.1.zip` | +| Windows ARM64 设备 | `SHOU-Launcher-win-arm64-v1.6.1.zip` | +| Mac M 系列芯片 | `SHOU-Launcher-osx-arm64-v1.6.1.zip` | + +Windows:退出启动器后解压,将新 EXE 放回原目录。无需另装 .NET,可继续使用原实例和同一 Windows 用户保存的账户。 + +macOS:退出旧版,将解压后的「SHOU Launcher.app」放入「应用程序」替换。首次迁移旧账户时,可能需要按系统提示完成一次钥匙串授权。 + +## 使用提示 + +- 这是预发布版本,部分旧整合包和设备适配仍在完善;目前不提供 Intel Mac 版本。 +- Mac 唤醒或切换显示器后若偶发无法打开窗口,请待桌面恢复后重新打开。 +- Mac 版尚未通过 Apple 公证,Windows 版暂未提供数字签名,首次运行可能出现系统安全提示。 + +遇到问题可通过启动器的「反馈」页面提交。 diff --git a/docs/conduit/RELEASE-v1.6.2.md b/docs/conduit/RELEASE-v1.6.2.md new file mode 100644 index 00000000..300fc60b --- /dev/null +++ b/docs/conduit/RELEASE-v1.6.2.md @@ -0,0 +1,33 @@ +# 潮涌核心社启动器 v1.6.2 · xb + +本次预发布修复点击启动后,启动器已结束加载、游戏窗口却尚未出现的等待体验。 + +## 本次修复 + +- Java 启动后继续显示游戏初始化状态和等待秒数,确认游戏窗口出现后再结束启动进度。 +- 初始化期间可点击「返回启动器」继续使用其他功能,游戏仍会在后台启动;保留同一整合包多开窗口的能力。 +- 启动后的自动最小化、隐藏或关闭,改为在游戏窗口出现后执行。 +- 修正多个游戏正在启动时的状态交接,避免较早启动的进程覆盖当前进度。 + +本次主要改善等待提示和窗口交接。游戏本身的加载时间仍取决于整合包、Java、设备和图形初始化。 + +## 选择下载包 + +| 设备 | 下载文件 | +| --- | --- | +| 常规 Windows 电脑(Intel / AMD) | `SHOU-Launcher-win-x64-v1.6.2.zip` | +| Windows ARM64 设备 | `SHOU-Launcher-win-arm64-v1.6.2.zip` | +| Mac M 系列芯片 | `SHOU-Launcher-osx-arm64-v1.6.2.zip` | + +Windows:退出启动器后解压,将新 EXE 放回原目录。无需另装 .NET,可继续使用原实例和同一 Windows 用户保存的账户。 + +macOS:退出旧版,将解压后的「SHOU Launcher.app」放入「应用程序」替换。沿用已保存的实例和账户;首次迁移旧账户时,可能需要按系统提示完成一次钥匙串授权。 + +## 使用提示 + +- 这是预发布版本,部分旧整合包和设备适配仍在完善;目前不提供 Intel Mac 版本。 +- Mac 唤醒或切换显示器后若偶发无法打开窗口,请待桌面恢复后重新打开。 +- Mac 版尚未通过 Apple 公证,Windows 版暂未提供数字签名,首次运行可能出现系统安全提示。 +- 下载附件仅提供三个平台的编译包;文件 SHA-256 可直接在 GitHub 查看。 + +遇到问题可通过启动器的「反馈」页面提交。 diff --git a/docs/conduit/UI-PARITY-REVIEW-20261106.md b/docs/conduit/UI-PARITY-REVIEW-20261106.md new file mode 100644 index 00000000..f71623ce --- /dev/null +++ b/docs/conduit/UI-PARITY-REVIEW-20261106.md @@ -0,0 +1,243 @@ +# 双端 UI 与功能对等复核(2026-11-06) + +> 本次仅复核、保存文档与本地 Git 整理,不执行 UI、启动流程、进程生命周期或 Java 修复,不新构建候选,不重新运行登录/游戏。本文是下一轮开发清单,不是迁移完成证明。 + +## 1. 基线、证据和本次结论 + +- 复核代码基线:c1470b19(最近产品提交 268f6526)。沿用现有 Avalonia 12.1.5 / Core 跨平台实现,不恢复 WPF fallback,不拆成两个产品。 +- 用户本次提供 10 张截图。图 1 是新版空账户/空实例首页;图 2 是旧版有账户/实例首页;图 3–7 为旧版账户和启动过程;图 8 为新版与旧版下载页对照;图 9–10 为新版 Java 两处界面。 +- 这 10 张是静态截图,含不同窗口大小、主题色、数据状态和外层聊天背景,并非同一视频的连续等尺寸原始帧。本次按图、区域和状态对照,不宣称完成逐像素/逐视频帧验收,也不把截图像素直接当 DIP。 +- 原样参考副本保存在本机忽略目录 [ui-review-input-20261106](../../artifacts/windows-main-20261105/ui-review-input-20261106/),图号统一为 figure-01.png 至 figure-10.png,尺寸与 SHA-256 见该目录 manifest.json。未把含真实角色名称/头像的截图提交 Git;本文不抄录账户标识。下次换机器须另传获准的净化参考,不能假定 Git 已含这些图片。 +- 进一步使用此前正式的 132 张 PNG/54 类页面清单、R5/R6/R7 记录及新版源码交叉核对。未读取旧 WPF 视图、样式模板、控件映射 JSON 或旧采集脚本。本次图标核对仅涉及独立 SVG 资产、项目资源声明和许可文本。 +- 所有“已实现”均不自动等于“与旧版对等”;历史原生验收、当前源码确认、未实测判断分开列出。旧版截图中可见按钮也不自动等于该业务已在本次旧版实测。 + +**核心结论:先修启动与账户区的完整体验,再统一品牌、图标、字体、间距和各页状态。实际正版进入主菜单已经通过,但关闭启动器独立保留游戏、多实例并行与左侧进度流程尚未完成。Windows 右上角三钮保留。Java 修复按本次新口径全部收口到工具页。** + +## 2. 对用户 0–7 项意见逐条复核 + +| 编号 | 本次口径与复核 | 下一轮处理 | 验收要点 | +|---|---|---|---| +| 0 | 保留新版最小化、最大化/还原、关闭按钮。旧图没有最大化不代表应回退。 | 不再为外观复刻重做三钮或撤掉已验证的 Windows 窗口行为;Mac 仍走原生左侧三钮适配。 | 拖动、双击、贴靠、Alt+Space、工作区、恢复尺寸和可访问名称无回归。 | +| 1 | 图 1 的白底 SHOU 徽标文字视觉中心、字号/字重、上下留白与图 2 不同;不是字面内容写错。 | 调整品牌组件的排版和文字度量,不能用针对单张截图的任意偏移硬凑。 | Logo、中文标题、SHOU 徽标与导航纵向对齐;不同 DPI/中英混排仍稳定。 | +| 2 | 图 1 的账户数为 0,且没有已选角色,因此没有头像不能单凭此图判定“没有头像实现”。新版已有头像、外观读取、离线皮肤和 3D 预览代码。但旧图 3/4 的三个工具槽位与新版两个槽位确有差距。 | 同状态检查头像;补齐账户区工具条形态和语义,覆盖有账户、空账户、加载失败、缓存、悬停、键盘焦点及弹层。 | 有效角色头像能出现;无角色有准确空态;按钮不被底部启动区遮挡;切换角色无旧头像闪回。 | +| 3 | 字体、按钮、输入框、下拉箭头、复选框和图标基线尚不统一;窗口缩放/截图差异不能解释所有组件留白问题。 | 建立共享排版与尺寸规则,使用平台实际字体回退;逐页检查行高、内边距、字重、焦点框。 | 同行控件基线一致;中文和拉丁字母不挤压;小窗口、长文本及主题下无裁切/粘连。 | +| 4 | 旧图 5/6 在左侧账户区呈现启动进度,图 7 游戏出现后恢复头像首页。新版使用全局底部长条、运行 PID 和停止按钮。更重要的是当前单游戏限制、Running 全局禁写、关闭时停止游戏均能从源码确认。 | 先改会话生命周期,再做左侧启动状态;主界面不常驻 PID。启动成功恢复账户区;运行其它实例、关闭启动器保留已启动游戏。 | 必须实测“游戏运行时关启动器后游戏仍在”“启动第二个不同实例”“单实例冲突”“取消只影响本次准备”。不能只测 Quit 后再关启动器。 | +| 5 | 新版多为自绘 Path,旧仓库存在独立 Lucide SVG;图 8 左侧图标造型、大小和文字间距明显不同。将“没有阻拦”按截图理解为缺少间隔/留白,不理解为要加操作拦截。Minecraft 后端可读目录,但进入下载页没有自动读取。 | 在许可范围复用独立图标资产,统一图标组件与图文间距;补下载页首次进入自动加载、刷新/缓存/失败恢复。 | Minecraft 与整合包图标语义区分;图标不贴文字;不用点刷新才出现首屏版本列表;失败可重试而不丢已有内容。 | +| 6 | 之前交接允许设置保留自动修复偏好/跳转;本次明确改为“修复全部在工具,设置 Java 只管 Java”。最新要求覆盖旧安排。 | 设置 Java 保留发现、添加、探测、自动/手动选择和全局/实例优先级;移走其证书卡、自动修复开关和修复入口。工具承担诊断、修复、偏好、核验、选用、回退与记录。 | 只有工具页管理修复;设置页只管理运行环境;共用 Core 服务,不复制一套业务。 | +| 7 | 本次不修产品,只复核和保存下轮清单;现有产品/验收改动已在此前本地提交。 | 本次仅提交文档。当前分支提交后更名 features/windows-parity,继续跟踪 origin/features/wpf-parity。 | 无推送、合并、发布、默认入口切换;原 main 工作树的未跟踪参考与 todo 保留。 | + +## 3. 逐图、逐状态对照 + +| 图 | 观察区域/状态 | 新旧差距与限制 | 下轮需要的同状态证据 | +|---|---|---|---| +| 1 ↔ 2 | 标题品牌、首页、左侧账户区 | SHOU 徽标文字偏上感、导航图标尺度/线条、字体度量和按钮留白不同。两图分别为空档案和已有档案,不能据账户数量、禁用启动按钮或头像缺席推断业务缺失。两图配色不同,须先确认主题/自定义色。 | 同一窗口客户区尺寸、同 DPI/主题、各有相同非敏感测试角色和实例;分别对齐品牌、四渠道、角色选择、头像、底部两按钮和右侧卡片。 | +| 3 | 旧头像悬停工具条 | 旧版三个槽位;其中箭头的提示为“选择档案”。新版只有皮肤/披风与刷新授权两按钮。中间铅笔按钮确切作用需旧版点击观察,不凭图形臆造改名/密码功能。 | 三槽位的默认、悬停、焦点、点击与提示;与账户下拉、“全部”入口之间关系清楚。 | +| 4 | 旧皮肤/披风菜单 | 新版已有修改皮肤、保存皮肤、刷新头像、修改披风、3D 开关/预览等菜单声明,不能整项记“未实现”。在线修改主要是官网入口,不能据菜单存在算作启动器内上传/穿戴已实现。 | 已选微软、外置认证、离线角色逐项点击;真实 PNG 保存、在线读取、权限不足、加载失败、3D 操作;Mac 弹层归属与 Esc。 | +| 5 | 左侧“正在启动游戏” | 旧版用账户区中的图标、实例名、省略、当前步骤、验证方式、进度和底部取消。新版没有对应的左侧启动状态宿主,只有全局操作条/不定进度。 | 准备、登录、下载、校验、启动各状态和取消;阶段不应伪造精确百分比。 | +| 6 | 左侧“已启动游戏/等待窗口” | 进程已创建与游戏窗口出现是不同状态;旧图还含提示卡。新版直接 Running + PID,既不等同主菜单也未恢复旧版流程。 | 进程创建、窗口出现、早退/崩溃、超时、成功恢复头像;提示卡可后排,不得挡取消/错误。 | +| 7 | 游戏窗口已出现、启动器恢复首页 | 旧图已显示恢复后的头像和可用启动区。新版单个游戏字段、全局 Running 状态及退出清理不满足“继续开其它实例/关启动器”。截图中的多人游戏属于 Minecraft 原生功能,不属于已移除大厅。 | 第一实例运行时操作启动器、第二实例启动、正常关闭/重开启动器、游戏仍可操作及正常 Quit。 | +| 8 | Minecraft 下载页和左侧栏 | 新版停“点击刷新”,旧图已有最新正式/预览与版本分组。新版图标造型不同、图文间距偏紧,版本行当前共用社团 Logo,不等同旧图草方块/命令方块。 | 新数据根首次进入、再次进入、离线缓存、后台刷新、手动重试;分组/版本图标/时间格式/滚动与安装选中项保留。 | +| 9 | 设置 → Java 证书卡 | 当前仍含自动修复和工具跳转,符合旧交接安排但不符合本次新职责。 | 删除该修复卡后的纯 Java 管理页;偏好迁移不丢已有值。 | +| 10 | 工具 → Java 证书 | 手动路径、扫描、修复和记录已有;但共享整个 Settings VM,诊断路径绑定全局默认 Java,出现“保存设置”与全局草稿文案,职责仍耦合。 | 诊断路径独立;扫描不改默认 Java;只在明确选用副本时改所选作用域,不能顺带提交其它设置草稿;失败/取消不选残件。 | + +### 不应直接照旧图硬改的地方 + +1. 保留新版三个 Windows 窗口按钮及已验证行为。 +2. 不把“离线角色”退回“盗版登录”措辞;离线能力不能冒充正版。 +3. 不将隔离验证中社团在线数“未知”直接改成旧图数字。当前隔离数据根刻意不探测服务器;普通数据根探测与失败反馈另验。 +4. 社团卡选中项、实例名称、账户数量不同首先是数据状态差异;但卡片真实自动入服被拒绝是独立业务缺口。 +5. 不为了复刻菜单外观而移除既有凭据保护、哈希、回滚和权限边界。 + +## 4. 高优先级:启动状态与游戏生命周期 + +### 4.1 已确认的当前实现 + +- [MainWindow.axaml](../../src/SHOU.Launcher.Desktop/Views/MainWindow.axaml) 的 OperationBar 位于全局底部;Running 时显示停止游戏按钮和 StateSummary。 +- [MainWindowViewModel.cs](../../src/SHOU.Launcher.Desktop/ViewModels/MainWindowViewModel.cs) 的 StateSummary 拼入 PID;ShowOperationStatus 在 IsBusy 或 HasRunningGame 时为真。CanMutate 仅允许 Ready/Error,所以游戏运行会影响账户、实例及设置操作,不只是按钮外观。 +- [LauncherService.cs](../../src/SHOU.Launcher.Core/LauncherService.cs) 仅维护一个 game / gameObserver / GameProcessId;LaunchAsync 在现有游戏未退出时拒绝再次启动。 +- 游戏 StartAsync 使用 LauncherService 的 lifetime.Token。DisposeAsync 取消 lifetime 并调用 current.StopAsync。 +- [Bootstrap.Hosting.cs](../../src/SHOU.Launcher.Desktop/Bootstrap.Hosting.cs) 在退出时执行 ShutdownHostAsync,释放 Launcher 和 Processes;[ProcessRunner.cs](../../src/SHOU.Launcher.Desktop/Platform/ProcessRunner.cs) 对所拥有进程的 Dispose/Stop 也有终止路径。 + +因此“关启动器会杀游戏”是当前源码中的实际风险,不是只需改一条文案的误会。此前 R7 验收是游戏内 Quit exit0,然后关闭启动器;没有证明游戏运行时关启动器能独立存活。本次不通过实启/杀进程再现来改动用户会话。 + +### 4.2 下一轮目标状态序列 + +正常账户/头像区 → 左侧准备状态 → 登录/下载/校验状态 → 创建游戏进程 → 等待游戏窗口 → 恢复正常账户/头像区。 + +- 左侧保留当前步骤、真实可用的阶段进度、实例名省略/完整提示、明确取消;错误/取消回到可重试状态并保留选择。 +- 创建 PID 不代表窗口出现或主菜单完成;不能把启动次数、PID 或启动计划当作视觉成功。 +- 正常首页不常驻 PID 长条;会话技术信息可放实例详情/日志。其它页面的真实后台下载可保留适当任务入口,不要求把所有任务反馈都塞到左栏。 +- “取消准备”“停止指定游戏”“关闭启动器”必须是三种不同动作。游戏已成功启动后,不可因关窗口或 UI 释放触发停止游戏。 +- 允许不同实例并行;同一实例写盘冲突应给出准确限制,而不是全启动器 Running 全局禁用。 + +### 4.3 不是简单删掉 StopAsync + +需要将 UI 生命周期、准备任务取消和已启动游戏会话所有权分开。保持安全 stdin 引导、启动前失败清理和取消不继续启动;解决 stdout/stderr 关闭、日志持续写入、退出观察、重启识别与进程句柄释放。若采用受控辅助进程/会话注册表,平台差异放在适配层,共享策略放 Core。 + +实例写入锁也要随游戏会话有效:启动器关闭后释放全局数据根锁,不等于可以允许另一个启动器编辑仍在运行的实例。识别会话不能仅凭 PID,需防止 PID 复用、错认/终止其它 Java 进程;不得将令牌写到命令行、会话登记、日志或可共享目录。 + +验收必须包含:运行中正常关闭启动器后游戏仍活着、重开能正确识别;不同实例 A/B 并开;同实例冲突;取消/失败只回滚本次准备;游戏崩溃不锁死 UI;两个游戏分别 Quit;只停止用户明确选中的会话。Windows 与 macOS 都要原生验证。 + +## 5. 图标、字体与版式的可复用边界 + +### 5.1 可以复用什么 + +本地独立素材目录 [PCL.Core/UI/Assets/IconPacks/lucide](../../PCL.Core/UI/Assets/IconPacks/lucide/) 现有 87 个 SVG。文件注释标识 lucide-static v1.17.0;检查的 play/puzzle 等文件使用 24×24 ViewBox、currentColor 描边及统一线条属性。随目录的 [LICENSE.txt](../../PCL.Core/UI/Assets/IconPacks/lucide/LICENSE.txt) 为 ISC,并对列明的 Feather 派生图标附 MIT 条款和版权声明。 + +**结论:具备复用这些独立 SVG 到双端图标组件的可行基础。** 下轮应逐项记录所用文件、来源/版本/哈希与随包许可,保留对应版权及许可文本。只复用资产,不把 WPF ResourceDictionary、控件模板、转换器或控件树作为跨平台实现输入,也不因复用图标引入 WPF 运行时依赖。本次不复制进产品资产目录、不改图标组件。 + +旧工程另有 Font.ttf,仅发现文件不代表已经核实来源和再分发许可;不顺带打包该字体。版本方块图、Logo 等非 Lucide 素材分别核对来源,不能将图标包许可扩张到全部旧资源。 + +### 5.2 当前差异和下一轮组件规则 + +- 新版 [ClubIcons.cs](../../src/SHOU.Launcher.Desktop/Themes/ClubIcons.cs) 是自绘路径集合,顶栏还含独立内联 Path;并非直接使用上述完整 SVG 组件。 +- [DownloadsView.axaml](../../src/SHOU.Launcher.Desktop/Views/DownloadsView.axaml) 的侧栏是 22 DIP 图标列配 18 DIP 图形,文字没有独立间距列;需连同描边/图形留白检查,不能只看控件 Width。 +- 新版 Minecraft 与整合包若共用立方体路径,会削弱旧版两种语义的区分;下轮按语义选图,不能只改颜色。 +- 共享组件应统一 ViewBox、外框尺寸、笔画、圆端/圆角、缩放方式、主题色、图文间距、垂直中心和命中区域;图标不独立抢 Tab 焦点,按钮仍有完整可访问名称。 +- Windows 实际字体与中文回退、macOS 实际字体与中文回退分别测量;共享字号/字重/行高规范,不以 Mac 字体是否存在决定 Windows 排版。当前 ClubStyles 的系统字体列表不等于已经逐字验证实际 fallback。 +- 检查 SHOU 徽标、标题导航、侧栏、按钮、TextBox、ComboBox、NumericUpDown、CheckBox、菜单/提示、长路径、省略和滚动。图 1/2 的主题差异须先对齐设置,不把用户配色覆盖成固定色。 + +## 6. 自动读取 Minecraft 目录与 Java 职责 + +### 6.1 目录不是后端未实现,而是进入行为缺失 + +[DownloadsPageViewModel.cs](../../src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.cs) 已有 RefreshCatalogAsync 与版本分组;SelectCategory 只改变分类/提示,初始分类已是 Minecraft。MainWindowViewModel 初始化和 ShowDownloadsCommand 当前没有触发目录加载,所以图 8 的初始空态有源码依据。 + +下轮目标:首次进入自动读取,显示合理加载态;可用缓存先展示并适时刷新;重复进入不发重复并发请求,手动刷新可重试。失败显示原因、保留已有列表;切页/取消和迟到请求不覆盖当前页面。保留安装草稿、选中版本、加载器与筛选,不能以“自动刷新”为名重置选择。手动刷新按钮继续保留。 + +分组、最新正式/预览、时间格式、版本图标、键盘选择及列表滚动一起对照旧图。原版/Fabric 有实际链路不等于全部历史版本都实测;Forge/NeoForge/Quilt 当前安装范围仍受 1.21.1 等已验证条件限制。 + +### 6.2 Java 新口径 + +| 页面 | 保留/集中 | 应移走或解耦 | +|---|---|---| +| 设置 → Java | 当前默认、自动选择、添加路径、重新发现、选择运行环境、兼容性信息、全局与实例优先级 | Java 证书保护卡、自动修复开关、修复操作/重复说明不再留在此页。 | +| 工具 → Java 修复 | 只读诊断、健康/需修复/未知、修复原因、自动修复偏好、独立副本、核验、明确选用/回退、备份/收据/来源 | 将诊断目标路径与全局默认 Java 草稿解耦;保存工具偏好不能顺带保存其它设置草稿。 | + +当前 ToolsView/JavaTrustToolsView 的 DataContext 是 Root.Settings,路径直接绑定 JavaExecutable,通用 SaveCommand 与其它设置共享。代码复用已有,但界面职责仍需收口。工具中的“Java 设置与自动修复偏好”回跳也应随新分工调整,不能只是删设置卡而留下错误导航。 + +不改 Core 既有安全约束:源 Java 和其它证书保持、只建独立副本、核验后才按明确作用域选用、失败/取消不选残件、不关闭 TLS。已存在的取消残件保留策略/受控清理缺口仍应单独跟踪,不为 UI 简化删除备份或来源记录。 + +## 7. 54 类页面的功能差距与后续核验 + +下表沿正式参考页编号覆盖,不表示本次重新打开/逐按钮实测了 54 页。代码没有足够证据的项目标“待核验”;已完成的共享能力不再按早期 R4 记录误列为缺失。旧图所见入口是否有效,仍按运行观察确认。 + +状态:**已有/待对齐**=可用链路存在,视觉或交互尚不等同;**缺口**=明确禁用、未接或受限;**待原生**=不能用代码/Headless 替代 Windows/Mac 实测;**移除**=本轮产品范围决定,不恢复。 + +| 参考页 | 当前事实 | 差距、未完成及下一轮动作 | +|---|---|---| +| 01 首页 | 社团介绍、四个服务器选择、新配置默认显示与隐藏偏好持久化已有。 | 品牌/头像/工具条/启动状态对齐;社团状态按同一网络模式对比;自动入服仍被拒绝,非仅显示差异。 | +| 02 账户管理 | 两微软账户导入、授权链、切换、刷新、系统存储重启重读已在 Windows 验证。 | 账户区三槽工具条、编辑/选择档案语义、空态/加载态完善;其它认证渠道的真实完整业务与 Mac 新改动待原生。不要重做已验证的凭据流程。 | +| 03 皮肤与披风 | 离线 PNG、Classic/Slim、头像、UV 3D、外层/披风预览和 PNG 导出已有;在线读取/官网入口已有。 | 不能称“没有头像/3D”。在线真正上传皮肤/穿戴披风未接为启动器内写操作;已登录头像读取、失败占位、菜单对齐和两端原生待验。 | +| 04 添加账户 | Microsoft 设备代码、Yggdrasil 密码/角色选择、离线档案已有;Windows 旧微软显式导入已验证。 | 标准设备授权本轮未实际交互验证;MUA 页 OAuth 仍未接;窗口焦点、离页取消、迟到响应和错误提示继续原生对齐,不让用户以为每种渠道都已实测。 | +| 05 社团更新历史 | 社团链接/外部更新入口已有。 | 内嵌历史列表及其加载/失败/分页等旧版体验未移植。 | +| 10 启动选项 | 窗口尺寸/全屏、初始与最大内存等已有;实例实际使用独立目录。 | 可见性、进程优先级、IP 偏好、游戏标题、隔离策略选择和多项高级参数仍为禁用/未接;任意参数/前置命令不能破坏安全引导。要补能力,不把灰控件或隐藏控件算完成。 | +| 11 Java 设置 | 自动选择、添加路径、重新发现、选择 Java、默认值及实例覆盖已有。 | 按本次新职责移出证书卡和修复偏好;补版本/架构/来源/失效路径的清晰呈现与两端实测。 | +| 12 管理与下载 | 来源顺序等共享网络配置已有。 | 并发/限速/协议等旧控件仍有禁用项;来源编辑体验和保存、失败回退逐项核验,不把技术 JSON 文案当完整产品交互。 | +| 13 设置联机 | 移除。 | 不恢复 EasyTier/P2P/穿透专属设置;历史未知字段与用户数据保留。HTTP 代理不属于移除范围。 | +| 14 个性化 | 主题、透明度及首页卡片显示偏好有实现。 | 颜色、背景、圆角、阴影和选择态统一;其它旧版细项逐项核验;不要覆盖用户明确保存的主题/隐藏偏好。 | +| 15 语言 | 语言偏好可保存。 | 全界面本地化未接齐,不能将保存选择当作完成切换;中英回退、截断和排序待验。 | +| 16 杂项 | HTTP 代理/连接凭据等部分能力存在。 | 旧杂项的完整条目、重启状态及平台适用性仍需逐项核验;不要以删除联机为由删下载代理/正版认证。 | +| 17 软件信息 | 产品与构建身份、版本/源码信息已有。 | 第三方许可展示、来源和排版对齐;不能把内部验收字段塞入默认主流程。 | +| 18 软件更新 | 说明/仓库入口有。 | 自动检查、下载、校验、更新/回退链未完成;Windows 签名/Mac 签名公证及原生验收不能由链接按钮替代。 | +| 19 反馈 | 有入口/部分结构。 | 内嵌流程、日志脱敏附件与完整可操作性待核验;本次不发送任何反馈。 | +| 20 日志 | 脱敏日志列表与运行记录已有。 | 默认不展示 PID 等技术状态替代正常 UI;筛选、复制/导出、滚动和路径隐私的完整体验待原生。 | +| 21 联机大厅 | 移除。 | 不恢复房间/P2P/EasyTier;继续保留 Minecraft 原生多人和实例服务器。 | +| 22 工具/百宝箱 | Java 只读诊断、独立修复副本、核验/复用/回退已有真实 Windows 证据。 | Java 全收口且解除全局设置草稿耦合;清理游戏垃圾、今日人品、快捷方式、启动计数工具及自定义下载等仍有禁用占位。 | +| 23 通用弹窗 | 菜单、提示、账户选择和部分内嵌弹层已有;Mac 有同窗覆盖适配。 | 位置、焦点、Tab/Enter/Esc、边界、DPI/跨屏、长内容、主题及无障碍一致性待原生;菜单打开不等于业务执行成功。 | +| 30 Minecraft 自动安装列表 | 后端目录和手动刷新、最新项/版本分组已有。 | 首次进入自动加载缺失;旧图“愚人节版”专组在当前按 release/snapshot/old_alpha/old_beta/other 的分组中未见独立实现;版本图标也未对齐。 | +| 31 安装配置 | 原版/Fabric 创建、下载、校验与一键准备可用;FO 1.21.1/Fabric 实际首启通过。 | 版本/加载器选择、命名冲突、依赖说明、取消/重试、保留草稿和旧版布局对齐;不能推成所有版本/加载器已实测。 | +| 32 模组下载 | Modrinth 检索、详情、缓存、兼容实例选择、required 依赖/冲突预检及清单安装已有。 | 其它来源/完整标签、依赖可解释性、手工 JAR 项目身份、原生安装与更新体验仍有缺口;CF 包解析不等于 CF 全站资源搜索。 | +| 33 资源详情 | 项目/版本/文件详情、下载/装入实例入口已有。 | 完整介绍、字段、加载/失败、兼容性和旧版细节逐项核验;按钮不能统称已迁移。 | +| 34 整合包 | ZIP/MRpack 真实拖入、预检、确认、独立实例、回滚与精确校验已有。Win MRpack 正版主菜单/Quit 通过;Mac R6 两格式游戏通过。 | 当前主要支持 vanilla/Fabric;其它 loader/格式未齐;Windows CF 游戏运行尚未实测。成功提示已精简,但整个列表、提示和异常恢复仍需对齐。 | +| 35 数据包下载 | Modrinth 搜索/缓存可沿资源流程;世界内包导入/部分启停是另一链路。 | 通用实例装入不支持 datapack,须明确选择具体存档;搜索→世界目标→兼容/冲突→安装完整 UX 未齐。 | +| 36 资源包下载 | 检索、缓存与受校验实例装入已有。 | 版本/兼容性、目标选择、覆盖与错误恢复、原生实际使用及 UI 对齐待验。 | +| 37 光影包下载 | 检索、缓存与实例装入能力已有。 | 文件存在不等于游戏可用;需对应加载器/光影 Mod 的真实验证及目标/错误交互对齐。 | +| 38 世界下载 | 当前来源明确不支持,页面禁用搜索。 | 缺有效数据源与完整安装链。与本地存档管理区分,不把禁用算迁移完成。 | +| 39 收藏夹 | 资源收藏 JSON 与实例收藏/分类筛选已有。 | 空态、筛选、失效资源、去重、重启/跨端显示及旧版样式待原生。 | +| 40 Minecraft 独立安装包 | 自动创建游戏可用。 | 独立安装包下载/保存页尚未移植,官网跳转不等同保存能力。 | +| 41 OptiFine | 主要是官网入口/说明。 | 下载、校验、版本兼容、安装及游戏验证未完成。 | +| 42 Forge | 自动安装配置页已有官方目录/处理器链,范围受限;曾完成 1.21.1 安装/计划验证。 | 独立安装器保存页未齐;其它 MC 版本、Windows 真实游戏和失败恢复待验,不仅是图标问题。 | +| 43 NeoForge | 与 Forge 类似,已有受限自动链路。 | 独立保存、其它版本与真实游戏门禁未齐。 | +| 44 Cleanroom | 官网入口/说明。 | 安装器下载、安装及运行链尚未迁移。 | +| 45 Fabric | 自动配置中可选择,Windows/Mac 实际 FO 游戏已有证据。 | 独立 Fabric 安装器下载保存页尚未移植;不能把自动安装和此独立页面混为一项。 | +| 46 Legacy Fabric | 官网入口/说明。 | 下载/安装/运行链缺口。 | +| 47 LabyMod | 官网入口/说明。 | 下载/安装/运行链缺口。 | +| 48 LiteLoader | 官网入口/说明。 | 下载/安装/运行链缺口。 | +| 50 实例选择 | 列表、筛选、选择及已有导航回归存在。 | 不同实例并开被全局单游戏限制拦住;空态、分类/收藏、长名称、键盘及重启选择继续原生对齐。 | +| 51 实例概览 | 改名、图标、分类、描述、收藏、进程创建次数等已有。 | 运行状态需改为每会话/每实例;“测试游戏/检查启动计划”等技术入口需产品化归位。启动次数不能当作主菜单成功数。 | +| 52 实例设置 | 独立 Java/内存和全局优先级链路已有。 | 完整高级选项未齐;运行中实例写保护须与新多会话/关闭保留游戏机制配合,不应禁用所有其它实例。 | +| 53 实例修改 | 部分已有结构/信息。 | 组件/加载器修改的完整可执行链与旧版菜单逐项核验;不得用仅能浏览的结构算迁移完成。 | +| 54 实例导出 | SHOU ZIP 与 vanilla/Fabric MRpack 导出已有,过滤私有文件。 | CF 导出未完成;SHOU ZIP 反向导入在当前识别器中明确阻止;新旧导出→导入往返、非 Fabric loader 与原生选择器待验。 | +| 55 存档列表 | 隔离实例的 NBT 列表、检索和元数据读取已有。 | 普通数据根/更多版本、运行中锁、完整旧版操作待核验;不能因能读列表而视为所有存档操作已齐。 | +| 56 截图 | PNG 画廊、损坏回退、复制、实例内回收与最近恢复已有。 | Windows 原生/跨应用剪贴板及完整 UI 仍待验;回收非永久删除是当前边界,不应笼统记“没有删除”或擅改成永久删除。 | +| 57 模组管理 | 目录列表、导入、启停以及下载清单安装已有接口/实现。 | 批量操作、身份/更新、冲突依赖、手工 JAR 来源和原生启停后游戏验证未齐;和只读“模组关系”页区分。 | +| 58 资源包管理 | 文件列表/导入与下载装入已有。 | 排序、更新、启用语义及实际游戏效果、旧版完整操作待核验。 | +| 59 光影包管理 | 文件列表/导入及目标装入已有。 | 兼容/启用/预览、实际游戏使用和完整 UI 待核验。 | +| 60 投影原理图 | 文件工作区可提供列表/导入结构。 | 不能据此宣称格式解析、材质/尺寸预览、完整管理和游戏使用都已实现;逐项核验。 | +| 61 服务器 | NBT 服务器增改删草稿、显式保存、备份/冲突保护已有。 | ping/快捷连接、首页自动入服尚未完成;不能与已移除大厅混淆。多实例运行时写保护待改造。 | +| 62 模组关系 | 有页面/部分结构。 | 完整依赖图、冲突诊断、跳转及操作未齐,不能仅凭清单的 required 依赖解析宣称关系页完整。 | +| 63 存档详情 | 1.21.1/3955 隔离世界的作弊/难度/难度锁保存和备份等已有;长路径回归通过。 | 其它格式/版本、普通目录、直接进入世界和游戏中重载待验;现有写入范围不要为对齐 UI 而放宽。 | +| 64 存档数据包 | 已知 format 48、无 features 的 file/* 包支持受保护启停与显式保存。 | 更新/删除/排序、其它格式、游戏内重载和全状态原生验证未齐。 | +| 65 不支持模组 | 有相关结构/兼容限制提示。 | 完整识别、分类、原因和处理动作需核验;不允许以猜名称/猜版本绕过身份与兼容校验。 | + +### 跨页还需单列的缺口 + +- 首页服务器卡当前自动入服会在 Core 被 serverId 非 none 条件拒绝,实例 LaunchCommand 也限制选择“只启动游戏”。这是保留功能范围内的未完成项,不是移除联机大厅的理由。提示中“真实账户门禁尚未通过”也已落后于 R7 实测,后续须区分登录已通过与入服未通过。 +- 运行生命周期之外,全局状态过度绑定 CanMutate,影响设置/账户/其它实例操作;不能只把底栏隐藏后声称恢复并行能力。 +- 技术性/重复文案、灰态占位、菜单项无行为、错误恢复与空态需要逐页按“可见→可操作→真实执行→重启保持”复核;已有文案精简不代表全页已经干净。 +- 未知配置字段、写前备份、损坏配置禁写、旧→新→旧往返、同根双入口互斥仍是正式替代门禁。关闭启动器后保留游戏会新增跨进程实例锁要求。 +- 普通路径、中文/空格、长路径、网络断开、SMB 中断、下载取消/重试/关闭清理、其它加载器真实游戏、未完成 Java .staging 的受控清理均需按对应门禁继续,不以本次 UI 计划放宽安全边界。 + +## 8. 下一轮建议顺序与验收清单 + +### P0:先定行为和进程边界 + +1. 按第 4 节拆开准备任务、UI 退出和游戏会话生命周期;实现不同实例并行与实例锁,保留安全凭据 stdin。 +2. 左侧增加启动状态宿主,明确正常、准备/登录/下载/校验、等待窗口、失败/取消、恢复头像几个状态。正常用户流程移走 PID/全局 Running 长条。 +3. Windows 与 Mac 各测“游戏运行时关启动器、游戏仍存活”“重开启动器”“A/B 两实例、同实例冲突”“分别 Quit/明确停止”。Mac 无机器时留待验,不能仅交叉构建销账。 + +### P1:共享视觉和入口职责 + +4. 统一品牌徽标、系统字体回退、行高、按钮/输入/勾选/下拉箭头、图标组件、图文间距和主题 token。复用独立 Lucide SVG 时携带来源与许可,不复制 WPF 控件实现。 +5. 完整账户区和三槽工具条;先确认旧铅笔动作的可观察语义,再决定新版等价操作。已实现头像/皮肤/3D 复用,不另写一套;有效账户和空账户都测。 +6. Minecraft 下载页自动首载、缓存/重试、旧分组/图标/时间格式和安装草稿保留。 +7. Java 修复 UI 全收工具,设置 Java 纯管理;诊断目标和默认 Java 设置解耦,共用 Core 安全服务及持久化偏好。 + +### P2:按表补有效能力和全页回归 + +8. 来源/加载器、导出回导、资源和实例管理、世界/服务器/截图、百宝箱等逐项补齐;不把删入口或“尚未迁移”说明视为完成。 +9. 建立同状态的新旧对照:同客户区大小、同 DPI/主题、非敏感同类测试数据。至少 880×560 配置下限、常用尺寸、100/125/150/200% DPI、浅/深色、长文本、弹层边缘和键盘路径。现 Windows 原生最小跟踪客户区曾为 880×566 DIP,不能冒称已精确达到 880×560。 +10. 新截图只用脱敏测试档案;不将真实缓存/密码/令牌或可见会话密钥带入截图、Git、SMB、候选或报告。保留原始失败记录,区分产品失败与采集脚本失败。 + +### 每阶段交付 + +- 本表问题 ID/参考页的已修项及仍待验项;源码本地提交;对应干净候选的架构、配置、SHA-256。 +- 本轮实际测试计数与跳过原因,不把前轮数字算作新执行。 +- 原生窗口/交互和必要的真实业务证据;Mac 无法验收时明确写待验。 +- 不在本次授权之外推送、PR、合并、切默认入口、删除旧 WPF 或发布。 + +## 9. 下次接手入口与本次 Git 整理 + +- 阅读本文件,再看 [WINDOWS-PARITY-R7.md](WINDOWS-PARITY-R7.md) 的分阶段证据、[WPF-PARITY-R5.md](WPF-PARITY-R5.md)、[WPF-PARITY-R6.md](WPF-PARITY-R6.md) 和 [MACOS-MIGRATION.md](MACOS-MIGRATION.md)。历史清单中的“未完成”须与本文件和当前源码核对,不能复用过时结论。 +- 独立工作树:D:/Code/C#/SHOU-Launcher-Windows。接手续作分支在本次文档提交后更名为 **features/windows-parity**,跟踪的远端迁移分支仍为 origin/features/wpf-parity;不改远端分支,不合并 dev/main。 +- 本次开始时该工作树干净,没有遗留未提交产品代码;前轮产品 268f6526 和验收文档 c1470b19 已在本地。原主工作树 D:/Code/C#/PCL-CE-SHOU 仍在 main,其参考截图、压缩包、哈希与 todo 等未跟踪内容保持。 +- 已只读更新 origin/features/wpf-parity 引用,仍为 fb1b483a;无拉取/合并其它开发线。本次新增仅此复核文档,参考图片原样存入忽略目录,不提交用户图片或凭据。 +- 本次验证为截图内容/源码路径复核、文档链接/编号检查、Git diff 与分支/工作树检查。不执行构建、自动化测试、登录/游戏、Java 修复或重新截图运行应用,因此没有新的候选包和测试计数。 +- 可沿用的历史证据:R7 Windows 两微软账户、主菜单/Mod Menu/Quit exit0、重启刷新;Desktop 120 通过,最近完整 Core 342 通过/16 显式跳过。它们只证明各自范围,不证明本次新提出的关闭保留游戏、多实例或 UI 对等。 + +## 10. 源码证据索引(新版) + +| 核对项 | 入口 | +|---|---| +| 品牌、窗口三钮、全局操作条 | [MainWindow.axaml](../../src/SHOU.Launcher.Desktop/Views/MainWindow.axaml)、[MainWindow.Windows.cs](../../src/SHOU.Launcher.Desktop/Views/MainWindow.Windows.cs) | +| Running/PID、全局 CanMutate、下载页进入 | [MainWindowViewModel.cs](../../src/SHOU.Launcher.Desktop/ViewModels/MainWindowViewModel.cs) | +| 单游戏限制、非 none 入服拒绝、游戏与服务 lifetime、退出停止 | [LauncherService.cs](../../src/SHOU.Launcher.Core/LauncherService.cs)、[Bootstrap.Hosting.cs](../../src/SHOU.Launcher.Desktop/Bootstrap.Hosting.cs)、[ProcessRunner.cs](../../src/SHOU.Launcher.Desktop/Platform/ProcessRunner.cs) | +| 头像显隐、两槽工具条、皮肤菜单、外观读取/预览 | [AccountsView.axaml](../../src/SHOU.Launcher.Desktop/Views/AccountsView.axaml)、[AccountsPageViewModel.Panel.cs](../../src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.Panel.cs)、[AccountsPageViewModel.Appearance.cs](../../src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.Appearance.cs) | +| 自绘图标与侧栏间距、系统字体列表 | [ClubIcons.cs](../../src/SHOU.Launcher.Desktop/Themes/ClubIcons.cs)、[ClubStyles.axaml](../../src/SHOU.Launcher.Desktop/Themes/ClubStyles.axaml)、[DownloadsView.axaml](../../src/SHOU.Launcher.Desktop/Views/DownloadsView.axaml) | +| 可复用 SVG 和许可 | [Lucide 独立素材](../../PCL.Core/UI/Assets/IconPacks/lucide/)、[LICENSE.txt](../../PCL.Core/UI/Assets/IconPacks/lucide/LICENSE.txt) | +| 目录手动刷新/分组、安装器独立页缺口、其它 loader 限制 | [DownloadsPageViewModel.cs](../../src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.cs)、[DownloadsPageViewModel.Loaders.cs](../../src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Loaders.cs)、[LauncherCatalog.cs](../../src/SHOU.Launcher.Core/Catalog/LauncherCatalog.cs) | +| 社团服务器 UI 能力提示 | [HomePageViewModel.cs](../../src/SHOU.Launcher.Desktop/ViewModels/HomePageViewModel.cs)、[InstancesPageViewModel.cs](../../src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.cs) | +| Java 职责和草稿耦合 | [SettingsView.axaml](../../src/SHOU.Launcher.Desktop/Views/SettingsView.axaml)、[ToolsView.axaml](../../src/SHOU.Launcher.Desktop/Views/ToolsView.axaml)、[JavaTrustToolsView.axaml](../../src/SHOU.Launcher.Desktop/Views/JavaTrustToolsView.axaml)、[SettingsPageViewModel.cs](../../src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.cs) | +| 本地包支持与 SHOU 回导缺口 | [LocalPackArchive.cs](../../src/SHOU.Launcher.Core/Content/LocalPackArchive.cs)、[ModrinthPackArchive.Export.cs](../../src/SHOU.Launcher.Core/Content/ModrinthPackArchive.Export.cs) | +| 工具灰态占位 | [ToolsView.axaml](../../src/SHOU.Launcher.Desktop/Views/ToolsView.axaml)、[ToolsPageViewModel.cs](../../src/SHOU.Launcher.Desktop/ViewModels/ToolsPageViewModel.cs) | diff --git a/docs/conduit/WINDOWS-HANDOFF-R6.md b/docs/conduit/WINDOWS-HANDOFF-R6.md new file mode 100644 index 00000000..2f90dd64 --- /dev/null +++ b/docs/conduit/WINDOWS-HANDOFF-R6.md @@ -0,0 +1,81 @@ +# Windows 接手开发 Prompt + +请接手潮涌核心社启动器的 Windows 主开发工作。目标是沿用现有 Avalonia 跨平台实现,继续复刻旧 WPF 的可观察 UI 和有效功能,最终达到替换旧版的条件。不要另做一套 Windows 专用启动器,也不要把已验证的 Mac 能力丢掉。 + +## 0. 接手分支与边界 + +仓库为 https://github.com/Conduit-Club/SHOU-Launcher,接手分支为 origin/features/wpf-parity。先读 AGENTS.md、CONTRIBUTING.md、docs/conduit/WPF-PARITY.md、WPF-PARITY-R5.md、WPF-PARITY-R6.md 及 MACOS-MIGRATION.md,检查 Git 状态、origin 实际地址和分支关系。 + +这次是在既有迁移分支上续作。产品最后检查点为 69fe954,另有交接文档提交;先取得远端该分支最新头,不要退回旧候选源码,也不要擅自把 main/dev 合进来。保留 Windows 原工作区的已有修改,优先新建独立工作树。若分支已存在或远端分叉,先分析并报告,禁止 reset --hard、强推或覆盖当前工作。 + +允许按功能做本地分阶段提交。后续推送、PR、合并、Windows 默认入口切换和正式发布,按我在本会话的明确授权执行;Mac 这一轮的推送授权不扩展成无限发布权限。每个阶段说明改动、验证与剩余项。 + +当前核心为 .NET SDK 10.0.403、Avalonia 12.1.5,遵循仓库锁定版本及构建入口。Laptop 曾只有运行时而没有 SDK,先核实本机状态,再在项目隔离工具目录恢复必要工具。不要盲用 Mac 的绝对路径或污染全局环境。 + +## 1. 先短预检,再开始开发 + +先确认依赖能恢复、win-x64 自包含候选能打开、磁盘预算/取消/超时和日志脱敏有效,旧 WPF 与新 UI 都能独立运行。提前处理必须由我交互的登录/系统授权步骤;等待授权、进程存活、Headless 成功均不能算实窗验收通过。 + +本地样本和既有 Windows 报告可能位于 D:\Code\C#\PCL-CE-SHOU\artifacts\mac-validation-r6,按实际路径核实。跨机器传候选和非敏感证据优先 SMB,复制前后核对 SHA-256;Git 传源码,SMB 传候选/测试素材/报告。 + +不要在工作目录执行整个旧解决方案加 RID 的试探构建。使用仓库的 Desktop/Core 项目及 Publish-Desktop.ps1、Validate-Desktop.ps1,先读脚本参数;重任务串行,保存首次失败、命令、源码 SHA、SDK/RID、TRX 和最终结果。 + +## 2. 以旧 WPF 实窗为参照校对 UI + +保持 cleanroom:可以运行旧 WPF、点击观察、并排截图、记录尺寸和交互;实现只用净化后的正式 PNG、可观察说明、新 SHOU 代码和可移植业务接口。不要读取或复制旧 WPF 视图、样式模板、结构映射 JSON 或采集脚本作为实现输入。git diff 用来检查新实现和本轮变化。 + +先制作逐页差异清单,按“视觉差异、交互缺失、业务未完成、计划移除”登记,然后按用户影响排序处理。不要只处理首页,也不要把旧版无效功能照搬成占位按钮。 + +优先修复: +- Windows 右上角缺少最大化/还原按钮。补齐最小化、最大化/还原、关闭及可访问名称;验证标题栏拖动、双击、系统贴靠、快捷键、最大化后的工作区和恢复尺寸。 +- 图标大小、ViewBox、笔画、按钮内边距、文字与图标基线、菜单/输入框行高、复选框、下拉箭头及状态图标的一致性。 +- 检查 Windows 实际字体及中文回退,统一字号/字重/行高,避免中文和拉丁字体造成错位;不要依赖 Mac 字体,也不要未经许可打包字体。 +- 核对 100%、125%、150%、200% DPI、跨显示器移动、880×560 最小窗及常用尺寸,检查文字裁切、滚动、弹层定位、焦点、Tab/Enter/Esc 和高对比/浅深主题。 +- 保留平台差异:Mac 原生三钮在左,Logo/标题靠右;Windows 标准窗口按钮在右。平台差异留在窗口适配层,共享页面继续共用实现。 +- 补验新配置首页默认显示社团介绍与服务器卡片;已保存隐藏偏好仍须保留。Mac 最后发现并提交了这项修复,尚未构建新的原生候选。 + +## 3. 移除启动器联机模块 + +本轮移除范围为启动器的联机大厅、房间/P2P/EasyTier/穿透及其专属入口、设置和无用依赖;Minecraft 原生多人游戏、服务器列表/地址、社团服务器信息、正版认证、下载网络和 HTTP 代理继续保留。 + +先列出新版中的联机 UI、命令、服务、配置和依赖引用,确认边界后清理;不要只藏按钮却留下失效导航。旧配置里的未知/历史字段要兼容保留,避免旧→新→旧往返时丢数据。不要为了这项清理改写或删除用户原数据、旧 WPF 参考工程。 + +## 4. 将 Java 证书修复增加到工具页 + +现有 Core 已有 Java 信任检查和创建独立修复副本能力,设置页也有入口。本轮把手动诊断/修复整理为工具页中明确、易理解的入口,复用原服务与状态管理;Java 设置页保留自动修复偏好或跳转入口,避免维护两套逻辑。 + +流程应能选择明确的 Java 路径、只读扫描、区分健康/需修复/未知结果、显示可执行修复、创建并核验独立副本、明确选用与回退。保留原 Java、备份/收据/来源记录和其它证书;失败或取消不得选用不完整副本。不要关闭 TLS 验证、信任所有证书或直接修改系统/原 JDK 信任库。 + +在 Windows 上用真实 Java 和受控损坏副本验证,并核对原始 Java 哈希不变、修复后能探测/启动,重复执行能安全复用。常规检测不应无故触发管理员权限。 + +## 5. 完成有效功能并验证真实正版登录 + +逐页核对“能看到、能操作、真正执行、写盘后重启仍有效”,特别关注账号添加/切换/刷新/移除、Java 自动/手动选择、实例隔离和设置优先级、下载与加载器、整合包、模组/资源包、存档/截图/服务器以及取消/重试/错误反馈。 + +可以使用我这台 Windows 上、我提供或明确用于本项目的旧启动器数据目录中的正版账户缓存进行登录兼容测试。优先沿用应用支持的读取/迁移路径、Windows 当前用户的 DPAPI/凭据服务。限定于本项目和当前用户,保留原目录和原文件;无法正常读取时按标准 OAuth 授权登录。 + +禁止把密码、Cookie、access/refresh token、会话密钥、完整账户缓存写入聊天、终端输出、截图、测试夹具、Git、SMB、候选包或报告。不要扫描无关浏览器或其它账号存储。报告只记录脱敏结果、错误类别和是否成功。 + +真正验证账户刷新、Minecraft profile/所有权、一次正版游戏启动到主菜单和正常 Quit;沿用现有安全凭据传递,不把 token 放到可见命令行。旧账户读取成功、离线角色成功或生成启动计划均不能代替正版登录成功。需要我交互时清楚指出步骤,继续其它不依赖它的工作。 + +## 6. 保住已有跨平台能力 + +已有 R6 RC3 在 Mac/Windows 均能运行。Mac 的 FO 6.5 ZIP 与 MRpack 均已真实拖入、安装 113 文件/48 Mod JAR/3 资源 ZIP,并完成 Minecraft 1.21.1、Fabric 0.19.3 主菜单、Mod Menu、隔离单人世界渲染保存与正常 Quit exit0。Windows 已实际导入 MRpack、CF 6.5 和 CF 6.4,逐文件核验,并完成启动器原生导航/最小窗/最小化恢复/正常关闭;Windows 游戏及真实正版认证尚未测。 + +保留: +- ZIP/MRpack 真实系统拖入、预检后显式确认、独立新实例、失败/取消回滚。 +- 精确清单身份、类别/路径、哈希与大小校验,无下载 sidecar 混入实例。 +- 官方 CDN 逐跳白名单、API 凭据隔离;CF 无下载地址时仅用独立发布的精确哈希匹配文件。 +- 归档必装历史依赖的窄范围支持,拒绝删除/恶意/拒审文件;不猜地址或补装未知版本。 +- 导入后的首次一键准备与启动,失败/取消不启动。 +- Windows DPAPI、Mac Keychain、数据根互斥、配置未知字段、写前备份与安全回退。 + +共享业务放在 Core,平台行为经适配层实现;禁止在业务里堆 Windows 绝对路径或用 WPF fallback 掩盖新 UI 缺失。为 Mac 构建候选并通过 SMB 交回原生验收;Mac 暂时不可用就明确列为待验,不把交叉构建等同于真实运行。 + +## 7. 额外检查与交付 + +同时检查新装/空账号/空实例/损坏配置/网络失败/取消/重试、隐藏偏好与重启持久化、旧数据往返和双入口互斥;减少成功页面重复堆叠的内部技术提示,把详细诊断放到可展开区域。检查打包中的架构、原生依赖、配置来源和敏感文件排除。 + +若并行开 agent,给出独立工作树和文件归属,由主 agent 整合、串行构建/测试;不要多人同时改共享文件或同时下载/发布。阻塞先记录原因和复现,再继续可做部分,不把功能禁用或删除当成完成迁移。 + +每阶段给我:差异清单与已修项、源码提交、候选包及 SHA-256、测试计数/跳过原因、原生窗口与游戏/登录证据、未完成和阻塞项。完整门禁通过前保留旧 WPF 及默认入口。不要自行发布、合并 dev/main 或删除旧工程。 diff --git a/docs/conduit/WINDOWS-PARITY-R7.md b/docs/conduit/WINDOWS-PARITY-R7.md new file mode 100644 index 00000000..c40c6295 --- /dev/null +++ b/docs/conduit/WINDOWS-PARITY-R7.md @@ -0,0 +1,164 @@ +# Windows 主开发差异清单(R7) + +接手:`origin/features/wpf-parity@fb1b483a`,独立分支 `codex/windows-parity`。保留旧 WPF 与 Windows 默认入口。任务根为 `artifacts/windows-main-20261105`。 + +实现输入仅为 132 张正式 PNG、可观察行为、既有 SHOU 实现及可移植业务接口。未读取旧 WPF 视图、样式、结构映射或采集脚本。下表的交接状态是历史线索,不等于本轮 Windows 原生验收。每一页分开记录视觉、交互、业务及移除范围。 + +## 按影响排序 + +1. Windows 窗口:最大化/还原、可访问名称、原生拖动/双击/贴靠/系统菜单、工作区和恢复尺寸。 +2. 启动器专属联机:删除导航、房间/P2P/EasyTier 专属页面/状态;保留原生多人、服务器、认证、HTTP 代理和未知历史字段。 +3. Java 工具:共用设置中的信任服务,明确路径、只读诊断、独立修复、验证、选用与回退。 +4. 图标/字体/输入行高与各页滚动、空态、弹层、错误与取消。 +5. Windows 正版缓存兼容、刷新、所有权、真实主菜单/Quit、重启状态;凭据不进入证据。 +6. 全页功能、旧数据往返与互斥、下载恢复、打包及跨平台门禁。 + +## 逐页清单 + +“待原生复核”保留为未完成,不能由 Headless 或文档历史自动改成通过。 + +| 页面 | 视觉差异 | 交互缺失/待验 | 业务未完成/交接线索 | 本轮计划移除 | +|---|---|---|---|---| +| 01-启动-首页 | 新配置两卡/四服务器已实测;最大化、还原、原生菜单及窗口行为已通过 200% DPI 实窗 | 显式隐藏保存已验证,重启保持已截图 | R2实窗已校对:134/239DIP卡片、四导航与真实动态数据 | 无 | +| 02-启动-账户管理 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 2 个微软账户真实导入/切换/刷新/系统存储重启重读及所有权/profile 已通过;Windows MRpack 正版主菜单/Mod Menu/Quit exit0 已通过 | 无 | +| 03-启动-皮肤与披风 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | R5 已实现离线 PNG/Classic/Slim、头像/UV 3D 拖动缩放和导出;在线外观读取及官网入口已有,Windows 原生待验 | 无 | +| 04-启动-添加账户 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 05-首页-社团更新历史 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 外部更新入口可用,内嵌历史未移植 | 无 | +| 10-设置-启动选项 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 结构与窗口/初始内存已接入;可见性/优先级等未接入 | 无 | +| 11-设置-Java | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 12-设置-管理与下载 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 13-设置-联机 | 本轮已移除 | 专属页面/路由/状态已移除,导航回归通过 | 新 SHOU 原无专属后端或依赖;历史未知字段保持 | 整页及专属路由/命令;不移除 HTTP 代理/原生多人 | +| 14-设置-个性化 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 15-设置-语言 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 选择器偏好可保存,全文语言切换未接入 | 无 | +| 16-设置-杂项 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 17-设置-软件信息 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 18-设置-软件更新 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 说明与仓库入口;自动更新未接入 | 无 | +| 19-设置-反馈 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 部分结构 / 功能待补 | 无 | +| 20-设置-查看日志 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 21-工具-联机大厅 | 本轮已移除 | 专属页面/路由/状态已移除,导航回归通过 | 新 SHOU 原无专属后端或依赖;历史未知字段保持 | 整页及专属路由/命令;不移除 HTTP 代理/原生多人 | +| 22-工具-百宝箱 | 待 Windows 逐页复核 | Java 手动诊断、独立副本选用/复用/回退、取消及重启保持已通过 Windows 原生验收 | 部分结构 / 功能待补 | 无 | +| 23-通用弹窗 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 部分结构 / 功能待补 | 无 | +| 30-下载-自动安装 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 真实官方目录/分组已实窗,安装已有业务/交互测试 | 无 | +| 31-下载-安装配置 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 原版与Fabric可实际创建安装,目录切换滚动已修正 | 无 | +| 32-下载-模组 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | R5 已实现兼容实例选择、required 依赖/冲突预检、双哈希清单安装;Windows 原生资源安装待验 | 无 | +| 33-下载-资源详情 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 34-下载-整合包 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | Windows ZIP/MRpack 真实拖入、各 113 文件及取消回滚通过;MRpack 首次一键准备、正版主菜单/Mod Menu/Quit exit0 通过;CF 游戏运行仍待验 | 无 | +| 35-下载-数据包 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 36-下载-资源包 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 37-下载-光影包 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 38-下载-世界 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 尚无可用数据源,明确禁用 | 无 | +| 39-下载-收藏夹 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 资源收藏 JSON 与 R5 实例收藏/分类筛选已实现;Windows 原生持久化待验 | 无 | +| 40-安装包-Minecraft | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 部分结构 / 功能待补 | 无 | +| 41-安装包-OptiFine | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 部分结构 / 功能待补 | 无 | +| 42-安装包-Forge | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 部分结构 / 功能待补 | 无 | +| 43-安装包-NeoForge | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 部分结构 / 功能待补 | 无 | +| 44-安装包-Cleanroom | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 部分结构 / 功能待补 | 无 | +| 45-安装包-Fabric | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 部分结构 / 功能待补 | 无 | +| 46-安装包-LegacyFabric | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 部分结构 / 功能待补 | 无 | +| 47-安装包-LabyMod | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 部分结构 / 功能待补 | 无 | +| 48-安装包-LiteLoader | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 部分结构 / 功能待补 | 无 | +| 50-实例-选择 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | R2实窗筛选清除恢复已通过;无匹配行禁用打开已回归 | 无 | +| 51-实例-概览 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | R5 已实现图标/分类/描述/收藏/进程创建次数持久化;Windows 原生待验,不以次数代替主菜单证据 | 无 | +| 52-实例-设置 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 独立Java/内存可保存,完整高级参数待补 | 无 | +| 53-实例-修改 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 54-实例-导出 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | SHOU ZIP 与 R5 MRpack 可按清单/显式本地路径导出;CurseForge 导出未完成,Windows 原生导出待验 | 无 | +| 55-实例-存档 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 选中隔离实例NBT列表/检索已通过R3实窗 | 无 | +| 56-实例-截图 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | R5 已实现真实 PNG 画廊、复制、实例回收与最近恢复及竞态保护;Windows 原生/跨应用剪贴板待验 | 无 | +| 57-实例-模组 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 58-实例-资源包 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 59-实例-光影包 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 60-实例-投影原理图 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | +| 61-实例-服务器 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | NBT增改删草稿/显式保存/备份/冲突已接入;ping/快捷连接待补 | 无 | +| 62-实例-模组关系 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 部分结构 / 功能待补 | 无 | +| 63-存档-详情 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | R5 已实现 1.21.1/3955 隔离世界作弊/难度/难度锁显式保存、冲突检测和原字节备份;Windows 长路径回归通过,游戏内加载/直接进入待验 | 无 | +| 64-存档-数据包 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | R5 已实现格式 48 且无 features 的已知 file/* 包批量启停和原 NBT 保留;Windows 原生待验,更新/删除/其它格式未完成 | 无 | +| 65-实例-不支持模组 | 待 Windows 逐页复核 | 空态/焦点/弹层/重启持久化待验 | 首批实现,待实窗逐页校正 | 无 | + +## 短预检与首次失败 + +- 锁定 SDK 10.0.403 已在任务 tools 下恢复;官方 SHA-512 匹配。Avalonia 保持 12.1.5。全局 SDK、Java 与 PATH 不变。 +- 重任务由本地控制器串行执行:20 GiB 系统余量、35 GiB 任务预算、20 分钟期限;保留首次日志/TRX,超时/取消仅清理自有进程树。 +- 首次 Desktop:100 通过、15 失败;修正 Mac 绝对路径夹具后剩 3 失败。进一步发现原生世界身份 API 不接受长路径;修正后 115/115 通过。 +- 首次 Core:321 通过、10 失败、18 显式跳过;包含测试 JDK 17/21 差异、Windows 文件系统异常类型、测试 injector 路径及 Windows 10 原生 ChaCha20-Poly1305 不可用。首次结果均保留,后续结果另记。 +- 使用正式 Publish-Desktop.ps1 生成 win-x64 Release 自包含预检候选;该包记录交接 HEAD 与 dirty=true(测试夹具改动),不作为已冻结阶段包。 +- 原生新配置首页两卡/四选项与最小窗口均已截图;客户区最小跟踪实测 880×566 DIP,配置下限为 880×560。通过设置界面保存隐藏偏好后,重启两卡仍隐藏;两次正常关窗。 +- 旧 WPF 可执行文件复制到隔离观察目录后实际打开,能读到系统上的旧账户外观;未执行登录/游戏/配置修改,随后正常关闭。不能声称该观察程序完全隔绝全局旧配置读取。 +- Mac 当前不可用:所有改动后的 Mac 原生行为待验,既有 R6 RC3 证据保留。 + +## 证据边界 + +原生证据:`evidence-baseline/01-fresh-home.png`、`02-fresh-minimum.png`、`09-explicit-hidden-home.png`、`11-hidden-after-restart.png` 及相邻 UIA JSON。SDK/JDK 元数据、哈希、构建入口命令、TRX 与进程结果见任务 reports/build 子目录。报告不复制账户缓存、密钥或完整生产配置。 + +窗口实现参考:[Avalonia 官方窗口指南](https://docs.avaloniaui.net/docs/how-to/window-how-to)。原生长路径参考:[Microsoft 文件路径命名规范](https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file)。Windows 10 凭据后备使用固定版本 [BouncyCastle.Cryptography 2.7.0](https://www.nuget.org/packages/BouncyCastle.Cryptography/2.7.0),不自行编写认证算法。 + +## 首阶段源码回归 + +- `9d14c53a`:原生世界身份长路径、Windows 10 旧认证密文后备、平台测试夹具与具体文件系统异常断言。完整 Core 331 通过、18 显式跳过、0 失败;新增长中文/空格路径保存与精确备份回归。跳过含 Mac Keychain/argv、POSIX 链接、显式 Java 在线/信任互操作,逐项原因在 TRX。 +- 当前窗口/工具修改:Desktop 117 通过、0 失败/跳过。新增最大化/还原状态与可访问名称、工具/设置共享状态、源 Java 回退探测失败不改选择。 +- 首次窗口回归因原测试要求无边框而失败,更新为保留 Windows 原生边框的产品约定;工具首次构建有子节点 xmlns 声明错误,修正后又抓到导航数量仍按 11 项,删去专属联机后为 10 项。所有首次失败均保留,未降低回滚或认证拒绝断言。 +- 专属大厅/EasyTier UI、命令与设置路由已移除;新版原本没有实际 P2P/EasyTier 后端或包依赖。旧 WPF 与其用户数据不动。HTTP 代理、社团服务器、Minecraft 原生多人不在移除范围。 +- 新版成功导入后的长诊断提示、全页字体/图标/DPI、真实正版/游戏和未知旧配置往返仍是待办,不能据本阶段删除旧入口。 + +## 原生首包发现与修正 + +`f7331eb9` 首包原生检查:最大化可见边框等于工作区 `[145,0,3840,2160]`,还原客户区 976×636 DIP,标题栏双击、120×80 像素拖动、拖到左缘的系统半屏贴靠、最小化恢复和正常关窗 exit0 均已观察。首包 Alt+Space 未打开系统菜单,保留失败;Windows 适配层现补用原生系统菜单,待下一包复测。原生最小跟踪客户区实测 880×566 DIP,不能把外框尺寸或 Headless 的 880×560 冒充原生客户区精确结果。 + +真实 Temurin 21.0.13 默认 cacerts 为无密码、无 MacData 的纯证书 PKCS12,首包原读取器返回未知;[JDK 18 官方发行说明](https://www.oracle.com/java/technologies/javase/18-relnote-issues.html)明确记录这一格式。现仅在 Java 公开信任库扫描显式允许该格式,仍拒绝私钥/秘密/嵌套/未认证加密、损坏 MAC、尾随数据与超预算;原严格 API 默认保持不变。新回归后完整 Core 332 通过/18 显式跳过、Desktop 117 通过/0 跳过。真实副本修复与新包菜单待验。 + +只读旧凭据核对已用发布包的 WindowsLegacyCredentialReader 解密当前用户 PCLCE 的 Profile 容器,仅输出字段结构与保留布尔值;源配置和 UserKey 哈希相同。没有把缓存/密钥/令牌复制到任务目录、SMB、报告或 Git;尚未进行账户导入、刷新或正版游戏。 + +## Java 原生互操作补验 + +`59d8a30d` win-x64 Release ZIP 已实际验证工具页只读扫描、识别精确撤信任指纹、取消保持源选择、重试成功、验证后选用、重复执行复用同一变体及显式回退。独立 Python/OpenSSL 核验原 JDK 490 文件哈希不变,受控源副本不变,119 张证书仅移除指定 1 张、其它 118 张保留,阻止名单由 38 项增为 54 项且原项保留;两份备份、收据前后哈希与实际文件吻合。派生 java.exe -version exit0。详情见任务 reports/java-independent-verification.json、java-reuse.json、java-rollback.json 与 evidence-r7-stage1-rc2。 + +取消后的未完成 Java 副本按既有隔离设计留在 .staging 中,未登记或选用;保留这一磁盘清理缺口,不将其列为已清理完成。未删除该诊断副本、源 Java、备份或来源记录。 + +菜单复测确认标准 SC_KEYMENU 消息能打开候选原生系统菜单,但第一版在按键按下时直接 TrackPopupMenu 的路径未通过实体 Alt+Space/右击测试。改为截获原始手势并交回 Windows 标准系统命令、抑制重复 WM_SYSCHAR;取消提示也改为不含安装专属措辞。修正后的实体交互仍待下一包,不能用系统消息诊断替代键盘通过。 + +## 阶段一冻结结果(2026-11-06) + +最终产品提交 `3675321f9fe63c08f181a950cb43bb510acc76a2`。win-x64 / Release / 自包含 ZIP:`SHOU-Launcher-win-x64-v1.5.0-dev.g3675321f.zip`,80,745,638 字节,SHA-256 `7d72f1a48ad06b6e7c035e9d1954e387a9bf5ee082cc0c89c2b43c407e776398`。冻结构建 source_dirty=false,解包无 .env、无打包字体。未切入口、推送、合并或发布。 + +- 最后 Desktop 117/117;最近完整 Core 332 通过、18 显式跳过、0 失败。最后两个提交仅 Windows 窗口代码,未修改 Core;完整 Desktop 已在最终产品树重跑。各跳过的原始原因已提取到 reports/core-skips.json,包含 Mac 专属、Windows 链接夹具、受控 Java opt-in 与 OnlineJava,不能视为通过。 +- RC5 实体 Alt+Space、标题栏右击、右击菜单键盘选择最大化、按钮还原、双击、拖动、左缘贴靠、最小化恢复与 Alt+F4 exit0 已通过。最大化可见边框等于工作区;系统菜单归属于候选 PID。200% DPI/单显示器实测;100/125/150%、跨屏与 Mac 原生仍待验。RC1–RC4 菜单失败与采集工具输出失败均保留。 +- RC4 从 Windows 资源管理器的中文/空格路径真实拖入 ZIP/MRpack,预检后点击显式确认,各安装 113 文件、48 Mod JAR、3 资源 ZIP。独立核验精确清单身份、大小/哈希、路径集合与全部覆盖内容,无下载临时文件混入。CF 身份再对照 R6 留存的官方元数据,不声称重新请求了该元数据。未启动游戏。 +- 专门再次开始 ZIP 导入并点击取消:未登记取消实例、无包暂存目录,既有两个实例共 226 文件哈希不变。此前一次取消测试赶在安装完成之后,控件已消失,记录为采集竞态而非取消通过。 +- Java RC5 再验健康只读扫描、不可用路径返回无法确认;未保存诊断草稿,源选择不变。RC2 的真实修复/复用/回退及独立证书/收据核验保留。不存在路径的诊断故意进入错误提示,随后 Alt+F4 正常 exit0,不冒称该状态 Ready。 +- Windows 当前用户旧 Profile 容器可只读解密,旧配置与 UserKey 哈希保持;仅在进程内检查结构,未复制完整缓存或输出凭据。尚未完成支持的账户导入路径、刷新、profile/所有权、正版主菜单及 Quit;仍为替代门禁阻塞。 + +证据位于任务 reports、evidence-r7-stage1-rc2/rc3/rc4/rc5。完整阶段摘要和候选校验见 reports/r7-stage1-summary.json;后续功能继续从该产品树推进。 + +## 阶段二:旧微软账户的显式验证导入 + +产品提交 `6d3c3eb1d28b6d8e0c0fc5c04b9a73313f8bb0d7`。仅 Windows 平台注册当前用户 PCLCE 的只读来源,界面先读取候选,再由用户明确选择及点击验证导入。Core 重读源记录,走既有 OAuth refresh → Xbox → Minecraft 所有权/profile,并核对原 UUID 后才进入既有系统凭据存储与档案提交。不会照搬旧 access token 作为成功授权;Mac 不显示 Windows 导入入口。 + +- 新回归覆盖有界读取、BOM、其它来源隔离、凭据不序列化、损坏/超预算/重复身份拒绝;无所有权、身份不符、invalid_grant、源记录变化及取消均不保存、不发布账户;成功路径检查刷新与重启后的受保护重读。UI 要求明确选择,并在离页后取消且丢弃迟到结果。 +- 完整 Desktop **120/120**。Core 新功能回归 **340 通过、18 显式跳过**;随后 `1d60a34c` 仅补测试夹具,以无提升权限的真实 Windows junction 和硬链接运行原断言,完整 Core **342 通过、16 显式跳过、0 失败**。下载/缓存的联接祖先被拒绝、独立日志硬链接目标不被改写。其余 Windows 链接/竞态夹具和 Mac/opt-in 门禁仍未通过,不能一并销账。 +- 第一次账户 Core 构建因测试 JSON helper 参数数目不符失败;第一次新增 UI 测试因误用不可访问的 LayoutManager 失败,均已修正且保留首次构建日志。未减少安全断言。 +- 干净产品树构建 win-x64 / Release / 自包含:`SHOU-Launcher-win-x64-v1.5.0-dev.g6d3c3eb1.zip`,80,756,343 字节,SHA-256 `32f5f009f80d4f0c20f8b871a63bdacf5824ba9747440f506dad6d6e082b440b`。19 个本机 PE 均为 AMD64,含自包含 CoreCLR/HostFXR;无 .env、用户缓存、日志、测试程序集或额外字体。沿用构建入口原有 4 个 PDB,未将符号文件误认作用户凭据。包检查脚本的 PDB 假设及字符串/数值比较错误记录已另存,修正后的检查通过,候选字节未变。 +- 发布包的默认 Windows reader **真实只读识别 3 个微软候选**,源 config 与 UserKey 哈希不变。尚未导入这些账户,更未取得刷新/所有权/游戏成功证据;不能把候选数量当作登录成功。 +- 真实账户验收数据根另放当前用户 LocalApplicationData 下;应用输出也留在该私有位置。任务目录只留脱敏计数、布尔结果和错误类别,未复制原缓存。原生鼠标操作被前台 LockApp 阻挡,已请求用户解锁,未操作锁屏或系统安全设置;真实导入、切换/刷新、正版主菜单/Quit、重启凭据待继续。 +- 系统字体只读核对 Segoe UI、Microsoft YaHei UI、Microsoft YaHei、Consolas 均已安装。尚未完成字体/图标视觉统一与全部 DPI/主题原生验收,未以字体存在冒充排版通过。 + +阶段摘要:任务 `reports/r7-stage2-summary.json`、`r7-published-legacy-read.json`、`r7-account-rc1-native-package.json`、`core-skips-stage2.json`。旧 WPF、Windows 默认入口、源 Java 和旧账户文件继续保留;无推送、PR、合并或发布。 + +## 阶段三:Windows 真实正版与游戏验收(2026-11-06) + +锁屏解除后,以正式 win-x64 自包含候选 `6d3c3eb1` 运行受支持的账户界面,不读浏览器或其它账户存储。真实旧缓存识别的 3 个微软候选中,明确选择并验证导入 2 个;各自完成 OAuth refresh、Xbox、Minecraft Java 所有权及 profile,核对 UUID 后保存。实际 0→1→0 切换已写盘,首次导入前后原 config 与 UserKey 哈希相同。未走离线角色或把读取成功替代授权成功。 + +随后从资源管理器真实拖入 FO 6.5 MRpack,在私有隔离数据根导入 113 文件/48 Mod JAR/3 资源 ZIP,逐文件核验通过。首页一次点击完成游戏本体、库、资产和本机 natives 准备,并使用本机已有 Mojang Java 21 启动到 Minecraft 1.21.1/Fabric 主菜单。Mod Menu 已打开;主菜单报告 44 Mods,Mod Menu 的当前过滤列表显示 41 项,与归档内 48 个 JAR 是不同计数口径,不冒充一一相等。 + +游戏 PID 明确属于本次启动器进程;实际 OS 命令行仅记录“使用受信任 Bootstrap”“无可见游戏身份参数”等布尔值,没有保存或输出原命令行。游戏内点击 Quit Game,实际退出码 **0**;启动器恢复可启动状态,没有残留自有 Java 游戏进程。主菜单、Mod Menu 和退出前主菜单截图仅含游戏窗口,不含账户界面。 + +最终产品提交 `268f652667fe6e2a5abccbc3b7771b3551b69d66` 仅进一步精简整合包成功摘要,把完整提示及跳过项保留在可展开详情中;相对游戏实测的 `6d3c3eb1`,Core 业务源码没有变化。新候选实际重启同一私有数据根:2 账户、选中账户、1 个已安装实例及选择保持,sidecar 原字节不变;两个不同账户均在新进程中从系统凭据存储重读并再次刷新,有效期前进且没有错误。两次启动器均正常关闭 exit0,无超时。 + +新候选另以无真实账户的公共验收数据根真实拖入并导入 MRpack,113 文件核验通过。成功摘要只保留创建与首次启动说明,详情可实际展开且文本仍在;原先完整诊断未丢失。完整 Desktop **120/120**,Core 仍沿用最近完整 **342 通过/16 显式跳过**(本次未改 Core)。未为文案逐字编写镜像测试。 + +- 包:`SHOU-Launcher-win-x64-v1.5.0-dev.g268f6526.zip`,win-x64 / Release / 自包含,80,756,546 字节,source_dirty=false,无 .env。 +- SHA-256:`4bd5322d8a6a1abe1bcae34cc34e8df745f19fc788e8d4ce721b416c101d7984`。 +- 登录/重启:`reports/r7-account2-import-visible-0.json`、`r7-account2-import-second.json`、`r7-account2-switching.json`、`r7-account3-restart-state.json`、`r7-account3-restart-refresh.json`。 +- 游戏:`evidence-r7-account2/03-game-first-frame.png`、`04-game-mod-menu.png`、`05-main-menu-before-quit.png`,以及 `reports/r7-account2-game-launch.json`、`r7-account2-41-normal-quit-game-input.json`、`r7-private-session-final.json`。 +- 摘要改动:`evidence-r7-ui-summary/03-compact-success.png`、`04-details-retained.png`、`reports/r7-compact-summary-native.json`、`r7-ui-summary-mr-verification.json`。 +- 首次采集偏差保留:被固定底栏遮住的控件仍被 UIA 标为可见;采集脚本现先滚入视区并核对实际命中 ID/PID。旧原生按键脚本的导航键结果错误,Computer Use 标准 Home/Down/Return 已正确选中第二项;不据此修改产品键盘逻辑。脚本复制时的进程路径守卫拒绝也已保留,未对不匹配窗口输入。资产统计脚本曾把 resume JSON 当索引解析,属于统计脚本错误,实际安装及资产校验完成。 + +当前已解除“Windows 真实正版与一次游戏主菜单/Quit”的阻塞,**整体替代门禁仍未通过**。仍需字体/图标、100/125/150% DPI 与跨屏、54 页视觉/交互/业务、旧新数据往返及双入口原生互斥、其它加载器/CF 游戏、剩余文件链接竞态与下载/网络/SMB 恢复。Mac 不可用,改动后的原生回归仍待交回。旧 WPF 与默认入口保持,无推送、PR、合并或正式发布。 diff --git a/docs/conduit/WINDOWS-R50.md b/docs/conduit/WINDOWS-R50.md new file mode 100644 index 00000000..5c57fbc4 --- /dev/null +++ b/docs/conduit/WINDOWS-R50.md @@ -0,0 +1,67 @@ +# R50:Windows 单文件与旧数据衔接 + +2026-11-13。`features/windows-parity` 从 `e6354d9a` 干净快进到 Mac 交接头 `5268c283` 后续作。未合并 dev/main、推送、发布或覆盖真实旧启动器。原工作目录的 AGENTS.md 修改、参考资料和旧 stash 保留。本轮没有启动 Minecraft,也没有改账户皮肤、披风或密码。 + +## 结果与候选 + +最终候选源码:`e1286dc4e07e2ec19a458cb1867cd8f144f427e6`。后续报告提交不是候选源码。 + +- Windows x64 / Release / self-contained single-file;.NET SDK 10.0.403、运行时 10.0.14、Avalonia 12.1.5。源码干净,未签名。 +- EXE:`SHOU.Launcher.Desktop.exe`,118,917,066 字节。SHA-256:`321e6329e41342ca72027c8e2eade040dd74df5ed82416e505964b61dfe5fc80`。 +- ZIP:`SHOU-Launcher-win-x64-v1.5.0-dev.ge1286dc4.zip`,SHA-256:`fb41fbd87e33c8b65dd8f96f9bb8c527be99e603466a92cb9ee0fdb86ef048fe`。归档与分发目录均只有 EXE。 +- 本机任务根:`D:/Code/C#/SHOU-Launcher-Windows/artifacts/windows-main-20261105`;最终输出 `dist/r50-final`。 +- SMB 交接根:`PCL-CE-SHOU/artifacts/windows-r50-20261113`,Mac 已挂载为 `/Volumes/PCL-CE-SHOU/artifacts/windows-r50-20261113`。源码用 `windows-r50-source.bundle`,候选在 `candidate`,脱敏证据另放 ZIP;不搬运用户凭据。 + +## 实现 + +Windows 发布使用 .NET singlefilehost,运行时自包含;Skia、HarfBuzz 与 GLES 内嵌,启动时由运行时解压至缓存。托管调试信息内嵌,原生 PDB 不放入分发。图片、图标、现有三语文本、Java bootstrap 和 26 个运行时依赖的许可材料均保留。没有新增字体包或许可清单界面。Mac 继续原应用包入口。 + +`Assert-DesktopBundle.ps1` 使用锁定 SDK 的 Bundler 检查格式,核对 212 项清单、包内 Core 与新构建 owner 的哈希、自包含 runtimeconfig、所有原生 PE 架构及敏感文件名排除;分发目录强制恰好一个 EXE。程序集来源报告改为程序集名称,不依赖 single-file 下为空的 Assembly.Location。Java bootstrap 从程序集资源释放并校验,仍用私有 stdin 传递敏感启动参数。 + +许可证先由精确 deps 清单收集后内嵌;保留原依赖锁。Windows 发布关闭会额外引入隐式 ILLink 包的 single-file 分析器,不做 trimming/AOT,改由上述实际包校验及冷启动验收把关。[.NET single-file 设计](https://github.com/dotnet/designs/blob/main/accepted/2020/single-file/design.md)和 SDK Manifest/FileEntry 是包布局依据。 + +Windows 未指定 `--data-dir` 时,先保留已经存在的生产 sidecar;其次保留旧预览数据根及其安全存储。没有新版状态才启用旧数据首次接入。因此把新版更新放在旧 WPF 旁边不会抛弃已有新版设置;已有 sidecar 时不会自动合并或重新导入用户已移除的账户。 + +首次接入读取同目录及立即子目录的 versions、旧 LaunchFolders、PCL/config.v1.yml 和 Setup.ini 的公共目录选择字段;实例复用既有预检、继承链、图标及隔离规则,不移动游戏文件。账户只读当前 Windows 用户 PCLCE 的 Profile 与 UserKey.bin,复用现有旧字段解密器,支持可识别的微软、离线及 Authlib 档案。密码、rawJson 与无关账户存储不迁移;未知 provider 不冒充微软或普通 Yggdrasil。 + +可恢复凭据写入当前用户 DPAPI 安全存储;已有新凭据不被旧缓存覆盖。先完成安全存储再原子提交非敏感 sidecar;取消或提交失败回滚本轮新建的凭据记录,不删除既有记录。凭据不可恢复时保留旧文件并记录原因类别,仍可正常重新认证。恢复缓存不代表已通过在线验证,后续沿用正常刷新和所有权检查。 + +## 验证 + +| 范围 | 结果 | +|---|---| +| Windows Core 全量 | 899 通过、18 条件跳过、0 失败,共 917;真实 aria2 1.35.0 传输/取消/续传通过 | +| Windows Desktop 全量 | 最终 363 通过、0 跳过/失败;构建 0 警告/错误 | +| 最后路径优先级修复 | 源码 e1286dc4 针对回归 7/7,含既有预览、旧目录同址更新、原凭据不覆盖、保存/重读、取消/失败回滚 | +| macOS ARM64 | e1286dc4 交叉构建通过,0 警告/错误;不作为原生 Mac 验收 | +| 真实旧数据原生服务验收 | 6 账户、34 实例,当前用户 DPAPI 保存后重读通过;1 个微软账户完成真实刷新、所有权与 profile 校验;源配置及 UserKey.bin 字节未变 | +| 最终单文件命令进程 | diagnostics、DPAPI write/read/delete 四个独立进程均 exit0;新解压目录,DOTNET_ROOT 指向不存在目录 | +| 原生窗口 | 200% DPI(192),仅 EXE 的新分发目录冷启动;首页、下载、实例模组/资源包、设置、工具和 OOM 分析可操作,有逐页截图 | +| 窗口状态与重启 | 9c2f8855 代表候选最小化恢复、最大化还原、正常关闭重开各 exit0;e1286dc4 最终候选重新核对页面、最大化还原和 exit0,配置与实例源文件重启哈希核验保留 | + +真实账户验收运行在测试宿主的隔离数据根;真实旧目录只读,没有直接将候选覆盖到真实 WPF 安装目录。单文件宿主另验原生 DPAPI。截图仅含虚构账户和隔离实例,没有真实账户、缓存或授权代码。没有浏览器 Cookie/账号扫描。原生截图/鼠标/键盘回退在本轮重新取得用户明确授权后才使用;关闭重开的部分步骤使用实际窗口按钮的原生 UIA Invoke。 + +18 项跳过主要为 Mac Keychain/Java/原生库、需要符号链接权限的矩阵和显式启用的真实旧账户测试;后者本轮已单独通过。完整原因见证据中的 `r50-core-skips.json`,不与通过数重复累计。Java bootstrap 的 javac --release 8 仍有工具链的三条旧目标提示;C# 构建均无警告/错误。 + +## 首次失败与修复 + +- 迁移回滚夹具在 Windows 返回 UnauthorizedAccessException,原断言只接受 IOException;修正为两个确定的文件系统类别,凭据回滚及无暂存残件断言保留。 +- 新增凭据保留测试一度缺 Configuration 命名空间,已补齐;首败编译日志保留。 +- 状态协议夹具只读握手首字节就关闭,Windows 会因未读数据重置连接;改为完整读完请求,在线人数/图标断言不变。 +- aria2 存活检查写死 Mac 的 1.37.0;改为核对操作前后同一实际 daemon 版本,下载字节、哈希、取消/续传及未停止 daemon 的断言保留。 +- Desktop 日志夹具混合路径分隔符,以及设置导航断言忽略 R42 的 350 ms 自动保存。分别规范化路径、改为核对所有页面的值保持且最终确实持久保存。 +- 首次发布在子作用域追加属性时丢失已有 artifact 参数,已固定为独立完整参数数组,并在 publish 前再次验证输出边界。误生的项目 obj 已移至本轮失败夹具目录,锁文件变更留差异证据后还原。 +- 包检查最初错误要求静态内置运行时有独立 coreclr/clrjit 项,且原生 NuGet PDB 形成旁文件;按 SDK 实际 singlefilehost 与 runtimeconfig 核验,PDB 在发布项阶段排除,所有必需运行库仍核验。 +- 测试工具将带正斜杠、尚不存在的 Windows 解压目录传给 .NET 原生宿主时,命令在托管入口前以 0xC00000FD 退出;控制矩阵定位到该环境变量,换为 GetFullPath 的 Windows 规范路径后,新目录冷启动及四命令均通过。不是通过改 Java、凭据或 TLS 掩盖失败。 + +各轮日志/TRX、首败和修复后结果保留;只清理了已完成构建的 bin/obj,未删候选、源文件、用户数据或旧工程。 + +## 仍需后续验收 + +- Mac 主任务已在本机安装 8cb5cb48,完成 Keychain 恢复、重开自动读取与真实微软刷新;详见 [Mac R50](MACOS-R50.md)。此 Windows 会话自身仅做 Mac 交叉编译,完整原生选择器矩阵仍保留。 +- Windows ARM64、签名、新机器依赖、完整 DPI/跨屏/键盘/无障碍与虚拟文件选择器矩阵。 +- 更多老版仅 Setup.ini 账户缓存、未知 provider、失效凭据/断网与不同旧目录布局;本轮不宣称全部历史格式无感登录。 +- LittleSkin/MUA 本轮仅恢复与安全保存,没有逐账户在线刷新或外观写入;微软本轮只验证一个真实账户。 +- `todo.md` 既有 R49-NEXT、R48-NEXT、R46-BOOT 和完整替代门禁继续保留。未启动游戏,不能据此宣称游玩、入服或主菜单门禁通过。 + +Mac 接回复核:final-mods 等详情页截图右上角未见三按钮,首页三钮可见。当前记录为需要 Windows 实窗复现的可见性问题,尚未确定是布局/隐藏还是捕获差异;正常 UIA Invoke 关闭与首页最大化通过不能覆盖此项。见 todo 的 R50-WIN-CAPTION。 diff --git a/docs/conduit/WINDOWS-UI-R10.md b/docs/conduit/WINDOWS-UI-R10.md new file mode 100644 index 00000000..083d5cb6 --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R10.md @@ -0,0 +1,92 @@ +# R10:Java 工具收口与 Minecraft 目录状态 + +2026-11-06,继续现有 Avalonia 产品。Windows 本轮范围完成,Mac ARM64 交叉构建通过,Mac 原生待验。**没有启动 Minecraft,没有切换默认入口,没有推送、合并或正式发布。** + +## 源码、参考与边界 + +- 独立工作树:`D:\Code\C#\SHOU-Launcher-Windows`,本地分支 `features/windows-parity`,续接 `origin/features/wpf-parity`。预检取得远端引用,迁移分支仍为 `fb1b483a3373359fe9a257bcc86d498d068864b6`;没有整合 dev/main。 +- origin:`https://github.com/Conduit-Club/SHOU-Launcher.git`。原工作目录的 AGENTS.md 修改、参考 ZIP/文件夹及未跟踪 todo.md 保留。 +- `v1.5.0` 是带注释标签,目标提交 `8746ad26f9df1eff9f5a3ea57311f82a14ec181b`。比较了限定目录的文件统计、可移植 `PCL.Core/Conduit/Aria2RpcClient.cs` 差异及标签中的 Java 信任文档。新 `src` 在该标签尚不存在,不能把全部新增文件当作逐页功能完成的依据。 +- 视觉参考使用正式截图归档中的 Java 设置、自动安装和安装配置 PNG,以及用户截图和可观察说明。没有读取旧 WPF 视图、样式、控件结构 JSON 或采集脚本作为实现输入。 +- 旧 Java 文档包含原地修复方案;本轮继续采用现有的独立副本与来源校验。跨平台路径大小写规则及已有下载/凭据隔离保持,不引入旧 WPF fallback。 + +本地阶段提交: + +| 提交 | 内容 | +|---|---| +| `690e2a6cafb695092969e13b28872db53e61a71b` | Java 独立工具流程、持久回退记录、设置草稿协调、Minecraft 缓存及安装草稿、Windows 原子目录发布重试 | +| `42f8f66a0f65c7e354bf6fb71c587dd32985a302` | 去除工具偏好保存后的重复确认;最终候选源码 | + +## UI/功能差异与已修项 + +| 页面/类别 | 此前差距 | R10 结果 | +|---|---|---| +| Java 设置 / 职责 | 修复偏好仍在设置页,工具与设置共用整个草稿 | 设置仅管理默认路径、发现结果和工具跳转;移除证书卡和修复偏好 | +| Java 工具 / 交互 | 修改检查目标也会改变默认 Java 草稿;创建副本直接选用 | 独立检查目标;扫描、生成并核验、明确设为默认分开;来源与检查详情可展开 | +| Java 工具 / 业务 | 回退假定为源 Java,无法恢复先前自动选择;重启丢失回退入口 | 与默认选择同次持久化此前路径或自动选择;回退前检查当前选择,显式路径再探测,避免覆盖后来选择 | +| 设置 / 交互 | 工具选用结果可能被旧设置草稿覆盖 | 未改动的 Java 字段跟随最新保存值,其他草稿保留;两边都改过时明确选择“使用已保存的选择”或“保留我的 Java 草稿”,解决前禁用保存 | +| Minecraft 目录 / 业务 | 重启或离线后没有目录;刷新结果随离页被丢弃 | 15 分钟内复用有效磁盘缓存,手动刷新强制请求;失败保留有日期的缓存,不将失败当新成功;共享结果跨两个 Minecraft 路由复用 | +| 下载 / 交互 | 独立 JAR 文件页与自动安装共用所选版本;返回重置安装名/加载器 | 分开保存两个版本;同会话返回同一未完成版本时保留名称、Fabric 与额外加载器选择,不创建空实例 | +| 通用 / 错误恢复 | Windows 短暂目录占用使 Java 或包原子发布失败 | 仅对 Windows 访问/共享/锁冲突重试,最多约 1.55 秒等待;每次检查路径及目标,不覆盖、不改为复制删除,等待可取消 | +| 工具 / 视觉文案 | 偏好保存成功出现两条相同提示 | RC2 仅保留一条状态说明,原生确认文本数量为 1 | + +目录缓存只存公开版本身份与来源主机名,不保存请求凭据或原始来源配置。配置以 SHA-256 区分缓存;有字节/条目/字段/时间及路径边界检查、原子写入。坏缓存不作为成功回退;取消继续向上传播。安装仍通过已有元数据、来源与文件校验链执行。 + +Java 新增流程位于 Core;两端共享工具页和设置协调逻辑。Windows 重试放在 IO 适配行为中,不改变 Mac 的原子移动语义。正常探测未要求管理员权限。 + +## 原生与真实 Java 验证 + +全部使用隔离目录和受控离线角色 `SHOU_UI_Demo`;没有读取真实账户缓存,也没有创建或启动游戏实例。 + +- RC1 实际鼠标进入工具页,扫描受控 Java 21.0.13 x64;扫描和生成副本后,写盘默认 Java 仍为空。点击“设为默认 Java”才保存副本及回退记录。 +- 重启后仍保留副本选择、自动修复偏好及“恢复自动选择”入口;实际回退并再重启后默认 Java 为空、偏好恢复为 true。 +- 设置页保留 Java 路径草稿时,从工具页回退触发冲突;原生确认草稿存在、保存禁用,选择已保存值后才能继续保存。 +- 健康副本实际只读检查为健康,修复按钮禁用。未知结果及取消/失败不能产生可选副本另由自动化覆盖。 +- 通过候选中相同服务执行真实 Windows Java 的生成、显式选用、服务重启重读、重新核验复用、取消和自动回退;不访问网络,不运行 Minecraft。 +- 原 JDK **490** 个文件及受控源 **491** 个文件的逐文件 SHA-256 均不变。副本 119 张证书只移除受控夹具命中的 1 张,其余 118 张保持;两份修复收据与备份有效,其他源文件保持,副本文件无硬链接。控制台和 UI 生成的副本分别通过独立核对。 + +证据:[真实 Java 流程](../../artifacts/windows-main-20261105/reports/r10-java-native-workflow.json)、[独立核对](../../artifacts/windows-main-20261105/reports/r10-java-independent-verification.json)、[UI 副本核对](../../artifacts/windows-main-20261105/reports/r10-java-ui-independent-verification.json)、[生成但未选用](../../artifacts/windows-main-20261105/evidence-r10-shell/11-prepared-visible.png)、[草稿冲突](../../artifacts/windows-main-20261105/evidence-r10-shell/44-java-draft-conflict.png)。运行验证指 Java 探测和 keytool,不能替代 Minecraft 验证。 + +目录实际读取 **922** 个版本。给隔离启动器配置不可连接的本机 HTTP 代理,并将该测试缓存回溯 20 分钟,验证过期缓存回退及手动刷新失败保留列表与旧时间;没有改系统网络。恢复原配置后,RC2 重读成功并显示新时间。[离线状态](../../artifacts/windows-main-20261105/evidence-r10-shell/33-offline-cache.png)、[恢复连接](../../artifacts/windows-main-20261105/evidence-r10-shell/54-network-restored-catalog.png)。 + +自动安装选 26.3,名称设为“R10 中文 草稿”,转到独立文件页浏览 26.4-snapshot-7 后返回,名称与原安装版本仍保持。只查询元数据,没有点击安装或下载游戏文件;实例数始终为 0。[草稿记录](../../artifacts/windows-main-20261105/reports/r10-installation-draft.json)。 + +Windows 本轮实际 DPI 为 **200%**:默认 976×636、最小 880×560,浅/深色、滚动与新增工具按钮原生通过。三个启动器运行均鼠标正常关闭 exit0,未触发超时清理,无本轮残留进程。锁屏期间停止 UI 输入;用户解锁后补齐实际鼠标操作。没有更改全局快捷键或系统 DPI。 + +## 构建、测试与首次失败 + +| 检查 | 结果 | 位置(均在 artifacts/windows-main-20261105 下) | +|---|---|---| +| Core 完整回归 | **364 通过、16 显式跳过、0 失败** | `build/main/r10-core-final/.../reports/tests.trx` | +| 最终 Desktop 完整回归 | **133 通过、0 跳过、0 失败** | `build/main/r10-final-ui/.../reports/tests.trx` | +| Windows 自包含 Publish | 通过,干净源码 `42f8f66a` | `build/main/r10-shell-rc2/.../reports/publish.log` | +| 最终 Mac ARM64 交叉 Build | 通过 | `build/main/r10-mac-final/.../reports/build.log` | + +Core 回归对应 `690e2a6c`;之后仅删除重复提示,没有 Core 或其它业务变化。最终 Desktop、Windows Publish 与 Mac Build 均对应 `42f8f66a`。使用锁定 SDK **10.0.403**、Avalonia **12.1.5**、Release。Dotnet 编译 0 警告/错误;Java bootstrap 编译器仍有既有的 Java 8 source/target 兼容目标提示。 + +16 个跳过与 R9 一致:4 个 macOS 原生 Keychain/argv、9 个 POSIX 或需另配 Windows 链接/失败子进程夹具、2 个显式真实 Java 门禁、1 个在线 Java 下载门禁。R10 真实 Java 另由受控候选服务验证,不把这些跳过计为通过。完整名称和原因见[跳过记录](../../artifacts/windows-main-20261105/reports/r10-core-skips.json)。 + +构建/测试首次失败保留独立日志与报告,没有覆盖;脚本前置失败另记错误类别: + +1. `r10-tools-first`:新增测试缺 JavaInstallation.Source 参数,旧布局测试仍引用设置中的旧命令;修正后 `r10-tools-second` 128 全过。 +2. `r10-core-workflow`:353 通过/3 失败/16 跳过,均是已有原子 Directory.Move 的 Windows 拒绝访问;定向重跑 25 通过/4 跳过。`r10-core-full2` 又在包发布和 Java 发布出现同类错误,加入有界重试及实际句柄/取消/目标保护测试后,完整回归 364 通过。 +3. `r10-catalog-desktop`:新夹具方法 Task 返回类型错误;`r10-catalog-desktop2` 130 通过/1 失败,旧测试假定首次加载使用手动刷新命令的 ExecutionTask。按实际自动加载行为修正后,后续完整 Desktop 通过。 +4. `r10-core-full`:360 通过/1 失败/16 跳过,新缓存未捕获 InvalidDataException,损坏缓存阻挡恢复读取;补正确异常分类后坏缓存矩阵通过。 +5. 独立证书核对脚本首次缺 cryptography;改用同一已验证 JDK 的只读 keytool 列出公开 CA 指纹,不新增全局依赖,核对通过。[首次错误记录](../../artifacts/windows-main-20261105/reports/r10-java-verifier-first-failure.txt)。 +6. 通用递归清理被自动审批拒绝,未执行;后续仅用受控 dotnet clean 回收已成功构建的编译产物,保留首次失败、候选和数据。最终 Mac 首次 1 GiB 预留触发 35 GiB 任务预算拒绝,清理成功产物后按已测构建规模预留 0.5 GiB 重跑通过。没有放宽总预算或磁盘余量门禁。[预算前置失败记录](../../artifacts/windows-main-20261105/reports/r10-mac-rc2-admission-failure.txt)。交付时任务目录约 34.143 GiB、D 盘余量约 299 GiB,无重任务占用锁;[交付状态](../../artifacts/windows-main-20261105/reports/r10-delivery-state.json)。 + +## 候选与非敏感证据 + +[Windows x64 自包含 RC2](../../artifacts/windows-main-20261105/dist/r10-shell-rc2/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.g42f8f66a.zip),**80,833,504 字节**。 + +SHA-256:`8b8a14fc1ef993f2d3e32b7162790ac9208bd42f55414e1a08696100a4466396` + +源码 `42f8f66a0f65c7e354bf6fb71c587dd32985a302`,Release / win-x64 / self-contained,构建时工作区干净。主程序、CoreCLR 与 Skia 本机库均为 AMD64;266 个归档条目未发现配置缓存、凭据、日志、实例、测试数据或 .env。候选未签名,Windows 默认入口仍为旧 WPF。[打包核对](../../artifacts/windows-main-20261105/reports/r10-final-candidate-audit.json)。 + +- [按页截图文件夹](../../artifacts/windows-main-20261105/public-evidence-r10/README.md):6 页、17 张截图,每页有说明;主要流程 RC1,最终文案及恢复连接 RC2。 +- [证据 ZIP](../../artifacts/windows-main-20261105/SHOU-UI-Evidence-R10-RC2-20261106.zip):3,652,502 字节,SHA-256 `e5b1be3d64caaa1ad966b4acf00fafb0d285a07c02322d08a1f0216390b4754b`。截图复制前后哈希相同;不含原始 UIA、账户缓存、JDK 或程序。 +- 没有向 Mac/SMB 复制候选;跨机器传输时继续核对上述 SHA-256。Mac 本轮只有交叉构建,不能作为原生验收。 + +## 后续差距 + +[todo.md](../../todo.md) 仅勾选本轮明确范围。全局字体/图标/控件一致性、125%/150% 与跨屏、Mac 原生、愚人节/特殊历史目录、更多加载器和安装恢复、工具箱其它禁用占位、Java 取消残件的受控清理仍待完善。安装草稿只保留同一会话;没有宣称跨重启恢复,也没有将独立文件浏览算作基础游戏安装完成。完整替代门禁仍未通过,旧 WPF 与默认入口保留。 diff --git a/docs/conduit/WINDOWS-UI-R11.md b/docs/conduit/WINDOWS-UI-R11.md new file mode 100644 index 00000000..ec1bec3d --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R11.md @@ -0,0 +1,109 @@ +# R11:跨页字体、图标与控件一致性 + +2026-11-06。继续同一套 Avalonia 页面和样式,Windows 与 macOS 共用实现。**本轮没有启动 Minecraft,也没有推送、合并、切换默认入口或正式发布。** + +## 源码与参考 + +- 工作树 `D:\Code\C#\SHOU-Launcher-Windows`,分支 `features/windows-parity`;续接迁移分支,没有合并 dev/main。原目录的未提交修改和参考归档保留。 +- origin 为 `https://github.com/Conduit-Club/SHOU-Launcher.git`;本轮 fetch 后 `origin/features/wpf-parity` 仍为 `fb1b483a3373359fe9a257bcc86d498d068864b6`。 +- 本地阶段提交:`65b7c1f58ded6d709a14325e5f1e56a03b683c53` 统一共享字体、图标和控件;`7fff046e7f7808ec36a8215765bd8cfc9f8bfbe5` 收起加载器目录说明;`5a1622339b9c6b8128e1d3e8634f7ddb9d23dc96` 修正原生数值框、滑块与展开布局;`23f56a15198639f13c64f5b523dbd2ae6ee5de44` 修正工具选中图标与内存标签;`e26e2f996ff1f4302f22c355f23e944f5538c723` 收起实例重复说明、分开日志加载/空结果并补实例侧栏可访问名称。**最终 RC5 源码为 e26e2f99。** +- 对照用户截图,以及正式 WPF 归档中的启动设置、管理与下载、百宝箱、资源搜索、安装配置/Fabric 展开和皮肤预览 PNG。参考图为 200% DPI,按逻辑尺寸核对间距、字号和侧栏图文位置。 +- v1.5.0 目标提交 `8746ad26f9df1eff9f5a3ea57311f82a14ec181b`。独立 Lucide SVG 目录在该标签与当前分支之间无差异;只复用许可明确的独立图片,不读取旧 WPF 视图、样式、模板、结构 JSON 或采集脚本。 + +## 差异与本轮已修 + +| 范围 | 此前差异 | 本轮结果 | +|---|---|---| +| 共享字体 | 正文、弹出菜单和输入内容行高不一致;中文与 Latin 控件中心不齐 | 正文 13/18、侧栏 14/20、节标题 14/20;输入框内容行高 18。菜单沿用平台中文字体;日志使用平台等宽字体,不新增打包字体 | +| 图标 | 下载、设置、实例、存档页面混用自行画出的路径和字体符号 | 统一为 Lucide 24 单位 SVG,侧栏控件 20×20、图文间距 10、两端共用;选中标记不挤动图文位置;动作补可访问名称 | +| 按钮和输入 | 默认高度、边距及内容对齐各自不同 | 通用按钮、单行输入、下拉与数值输入统一最小高度 28;图标按钮使用正方形;保留首页账户 32×32 与标题栏独立尺寸 | +| 数值与滑块 | 原生滑块占高 50,数值框随行拉高;不透明度编辑区被两个旋钮按钮挤掉 | 滑块与数值输入 28 高;旋钮按钮各 16 宽,数值编辑区至少 40 宽;不透明度完整显示 100;内存标签单行呈现 | +| 展开按钮 | 默认宽度与箭头位置游离,外套卡片重复边框 | 折叠栏填满内容宽度,高 38;箭头、主题边框和卡片间距一致,保留原生焦点与展开行为 | +| 复选框 | Fluent 模板使普通 margin 覆盖无效,文字紧贴方框 | 在启用/禁用状态模板层覆盖,文字间隔 8;保留模板自身键盘与交互状态 | +| 菜单与焦点 | 菜单字体/颜色游离,焦点不够一致 | 共用字体、背景、边框和选择色;按钮与输入沿用共享焦点色,保留框架交互模板 | +| 工具选择态 | 深色下选中文字变色,图标仍为白色或原色 | 图标跟随所属选项前景色;两个工具栏目原生确认 | +| 默认说明 | 设置、工具、下载和实例页常驻迁移说明、重复成功说明;目录额外显示成功计数和来源段落 | 收起默认说明,必要的能力边界放在对应控件的 tooltip;目录来源/更新时间可悬停刷新查看,正常目录与有效名称不再额外出现提示段落 | +| 实际反馈 | 直接按文字内容判断是否隐藏,可能误吞离线提示 | 使用显式显示状态。保留加载、空结果、错误、取消、离线缓存和用户实际操作结果;增加离线通知不是中文时仍显示的回归 | +| 加载器目录 | 展开配置后常驻“点击读取”与成功计数,读取完还可能残留加载中说明 | 默认与成功列表不另加段落;保留加载、空构建、不支持安装、错误与取消,读取不自动选用加载器 | +| 皮肤和日志 | 本地换衣增加额外说明,3D 页底部新增提示项,日志等宽字体依赖 Windows | 本地文件限制移到选择按钮 tooltip,3D 页常驻提示对齐参考;日志 Windows 用 Consolas,macOS 用 Menlo | +| 社团更新状态 | 读取中同时出现“尚无记录”;正常结果常驻缓存使用说明 | 加载与真正空结果分别显示;正常结果收起额外说明,实际离线/错误继续提示 | +| 实例页面 | 正常存档与服务器页反复显示内部范围说明;UIA 读出侧栏记录对象字段 | 正常说明移至读取按钮 tooltip,受限原因仍显示;十二个栏目提供正常名称,鼠标与方向键导航保留 | + +涉及共享 Themes、ClubIcon、全部主要页面及少量呈现状态;**Core 与 Windows 窗口适配层没有修改**。字体主族继续由平台提供:Windows `Microsoft YaHei UI`、macOS `PingFang SC`,不依赖 Mac 字体在 Windows 显示。 + +SVG 共 87 个,新增 79 个;`Assets/Icons/Lucide/SOURCE.txt` 记录原文件与 LF 归一化后的 SHA-256,87 条全部核对通过。ISC/Feather MIT 许可继续保留。没有把旧 WPF 的控件结构带进新版。 + +数值框、滑块与展开栏调整依据锁定版本的框架模板核对,沿用框架控件及交互语义:[ButtonSpinner](https://raw.githubusercontent.com/AvaloniaUI/Avalonia/5825bf8c66fba0c11e67c980d8ece6444576bffa/src/Avalonia.Themes.Fluent/Controls/ButtonSpinner.xaml)、[Slider](https://raw.githubusercontent.com/AvaloniaUI/Avalonia/5825bf8c66fba0c11e67c980d8ece6444576bffa/src/Avalonia.Themes.Fluent/Controls/Slider.xaml)、[Expander](https://raw.githubusercontent.com/AvaloniaUI/Avalonia/5825bf8c66fba0c11e67c980d8ece6444576bffa/src/Avalonia.Themes.Fluent/Controls/Expander.xaml)。 + +仍禁用的高级选项、工具箱功能、加载器下载等没有因此完成。详细缺口继续保留在 [todo.md](../../todo.md),不将收起说明等同于实现业务。 + +## 构建与测试 + +| 检查 | 结果 | 证据(artifacts/windows-main-20261105 下) | +|---|---|---| +| 最终 Desktop 完整回归 | **141 通过、0 跳过、0 失败** | `build/main/r11-native-hints-recheck/Desktop/Release/win-x64/default/reports/tests.trx` | +| Windows x64 自包含 Publish | 通过,干净源码 `e26e2f99` | `build/main/r11-shared-ui-rc5/Desktop/Release/win-x64/default/reports/publish.log` | +| macOS ARM64 交叉 Build | 通过,0 警告/错误,同一源码 `e26e2f99` | `build/main/r11-macos-rc5/Desktop/Release/osx-arm64/default/reports/build.log` | +| 独立 SVG 清单与几何 | 87 条 SHA-256 与视口边界通过 | `SOURCE.txt`、`SharedPresentationTests` | +| Core | 本轮未重跑,代码无改动 | 最近 R10:364 通过、16 显式跳过;不是本轮测试计数 | + +锁定 SDK **10.0.403**、Avalonia **12.1.5**、Release。使用现有 Invoke-Dev / Validate-Desktop / Publish-Desktop 入口及 35 GiB 任务预算、20 GiB 余量和超时/清理守卫,重任务串行执行。仅用 `dotnet clean` 回收已成功的旧编译产物,保留首次失败、候选、日志和数据。 + +交付核对时任务占用 **34.902 GiB / 35 GiB**,磁盘空闲 **277.613 GiB**,无重任务所有者和本轮残留启动器进程。[交付状态](../../artifacts/windows-main-20261105/reports/r11-final-delivery-state.json)。 + +新增测试覆盖全部 SVG、十个设置栏目在浅/深色下的图文位置、含中文/Latin 输入高度与复选框间距、滑块/数值旋钮/展开栏实际尺寸、工具选中颜色、默认多余说明隐藏、正常目录成功与离线/错误通知的区别。受控异步测试验证读取中不显示空日志;原有存档写保护回归确认正常说明收起后,非隔离或运行中原因仍保留。完整页面夹具核对十二个侧栏的可访问名称。 + +最终测试在提交前工作区执行,控制报告中的 HEAD 为 `23f56a15`;测试通过后将同一产品与测试内容提交为 `e26e2f99`,随后以干净源码构建 RC5,未再修改产品代码。Core 本轮未变,不重复计算历史 Core 成绩。 + +首次失败及修复均保留原报告,没有覆盖失败记录: + +1. `r11-style-first`:AccountsView 新 SVG 控件缺 views 命名空间,编译失败;补齐后继续。 +2. `r11-style-second`:132 通过、1 失败,旧测试仍查找已移入 tooltip 的 Aria2 说明;更新为能力限制仍保留的检查。 +3. `r11-style-third`:135 通过、2 失败,新增检查发现单行输入默认行高 15,以及百宝箱遗留常驻说明;修正为 18 并收起说明。 +4. `r11-presentation-targeted`:2 通过、2 失败,复选框普通样式被 Fluent 模板 margin 覆盖,以及百宝箱说明;改用状态模板选择器,修正说明。 +5. `r11-style-fourth`:136 通过、1 失败,旧结构测试仍要求百宝箱说明常驻;改为检查禁用入口及 tooltip。 +6. 随后完整 `r11-desktop-full` 137 通过;新增显式离线状态回归后 `r11-status-final`、`r11-presentation-final`、`r11-loader-presentation` 均为 138 全部通过。解锁后增加原生发现的尺寸回归,`r11-native-layout`、`r11-native-presentation-final`、`r11-resumed-final` 均为 140 全部通过。 +7. `r11-tools-colors-final`:新增测试缺 `ToggleButton` 命名空间,CS0246 编译失败;补导入后 `r11-tools-colors-recheck` 140 全部通过。 +8. `r11-native-hints-final`:140 通过、1 失败;新增侧栏检查误放入仅挂载存档子页的夹具,找不到侧栏。移至完整页面夹具后,最终 `r11-native-hints-recheck` **141 全部通过**。 +9. RC5 首次 Publish 在执行构建前被 35 GiB 预算守卫拒绝;保留 `reports/r11-rc5-admission-first.json`。只对已成功的编译产物执行 `dotnet clean` 后重试成功,没有清理失败报告、候选包或数据,也没有降低预算。 + +## Windows 原生核对 + +隔离数据目录 `native-r11-ui` 只含受控离线角色 SHOU_UI_Demo、演示皮肤和两个未安装实例,无真实账户凭据。没有点击启动、安装基础游戏或准备并启动。 + +用户解锁后已续完代表状态走查。Computer Use 可定位窗口与读取控件,但点击仍报 `coordinate input geometry is unavailable`;沿用用户已明确允许的 UIA 读取、Win32 鼠标/键盘及本地截图备用接口。每次输入前核对进程、可执行路径、窗口归属和前台;没有向 LockApp 或其它应用发送输入,没有改系统快捷键或 DPI。重任务进行时个别前台核对未通过,守卫没有点击;重任务结束重新核对后继续。 + +| 原生范围 | 实际结果与限制 | +|---|---| +| 首页 | 200% DPI、976×636 与 880×560,浅/深色圆角和无白边保持;真实只读查询显示社团在线人数,受控头像、账户下拉与 32×32 增删按钮对齐;不涉及真实账户认证 | +| 十个设置栏目 | 浅色常用尺寸、深色最小窗口逐页核对;不透明度 100 完整,数值框高 28、旋钮不挤掉数值,内存标签单行,滑块紧凑;滚动可达底部保存栏 | +| 主题下拉与持久化 | 鼠标展开、Down/Enter 选择深色、保存;RC4 重启仍为深色。随后 Up/Enter 恢复浅色并保存,RC5 重启仍为浅色;只改隔离数据偏好 | +| Java 工具与百宝箱 | 深色最小窗口实际切换,选中图标与文字同色,侧栏填满宽度;未扫描或修复 Java,未执行百宝箱占位动作 | +| Minecraft 与下载 | 自动加载目录、分组宽度、配置展开箭头;中文名称输入,Tab 到 Forge 展开按钮、Shift+Tab 返回。模组只读搜索 sodium 获得真实资源列表;整合包重复说明已收起。未创建实例、下载游戏或安装资源 | +| 账户菜单与 3D | 深色菜单实际打开,Esc 关闭;进入真实 UV 模型预览并缩为最小窗口,Esc 正常关闭。皮肤为色块夹具,未上传皮肤或修改在线账户 | +| 社团更新日志 | RC4 深色最小窗口实际展开/收起日期与阅读正文;RC5 浅色复验加载中不出现空记录,读取后显示正文且无常驻缓存说明;未外发内容 | +| 十二个实例栏目 | 鼠标进入设置,方向键遍历修改、导出、存档、截图、模组、资源包、光影包、投影原理图、服务器、模组关系;图文与空态可见。RC5 UIA 读到十二个正常栏目名称,存档/服务器正常重复说明已收起;未保存、安装、导出或启动 | +| 窗口与退出 | RC4 真实点击最小化后恢复,常用/最小尺寸可切换;标准三钮保留。续验 RC2、RC3、RC4、RC5 均点击关闭后 exit0,无外层超时清理,stderr 均为空 | + +截图来源按 RC3/RC4/RC5 的真实源码区分。RC4 在 RC3 上仅修正工具选中图标和内存标签;RC5 在 RC4 上仅收起重复说明、区分日志加载/空结果及补侧栏名称。共享控件及其它页面沿用同一实现。完整页图见下方证据包,每页附说明,不将空页面走查当作全部业务完成。 + +[续验 RC2 退出](../../artifacts/windows-main-20261105/reports/r11-native-resumed-exit.json)、[RC3 退出](../../artifacts/windows-main-20261105/reports/r11-native-rc3-exit.json)、[RC4 退出](../../artifacts/windows-main-20261105/reports/r11-native-rc4-exit.json)、[RC5 退出](../../artifacts/windows-main-20261105/reports/r11-native-rc5-exit.json)。此前锁屏与置前台阻挡已解除,原阻挡报告保留为历史记录。 + +## 候选 + +[Windows x64 自包含 RC5](../../artifacts/windows-main-20261105/dist/r11-shared-ui-rc5/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.ge26e2f99.zip),**80,854,659 字节**。 + +SHA-256:`eac1bb03eb4cfed72daba215c37de2f4f4e7c919b4e2588d60f939bb27f39efd` + +源码 `e26e2f996ff1f4302f22c355f23e944f5538c723`,Release / win-x64 / self-contained,构建工作区干净。主程序、CoreCLR、Skia 本机库为 AMD64;266 个条目未发现 .env、账户缓存、实例、日志、密钥或测试数据。[打包核对](../../artifacts/windows-main-20261105/reports/r11-rc5-candidate-audit.json)。未签名,本机候选,默认入口仍为旧 WPF。RC1–RC4 包及对应核对记录保留,不作为最终交付来源。 + +[按页截图与说明](../../artifacts/windows-main-20261105/public-evidence-r11-final/README.md)共 **33 个页面文件夹、39 张截图**;每张标记真实源码、DPI、逻辑尺寸、采集方式和 SHA-256。[截图 ZIP](../../artifacts/windows-main-20261105/SHOU-UI-Evidence-R11-RC5-20261106.zip)为 **7,518,052 字节**,SHA-256 `698019faa685510e67963bc479c70912cbb762e16d184b97008debdcbfb22573`。复制前后哈希一致、ZIP 完整性通过;白名单只包括人工查看过的 PNG、说明和清单,不含原始 UIA、账户缓存、日志内容、程序或 Java。[归档核对](../../artifacts/windows-main-20261105/reports/r11-final-public-evidence.json)。此前 RC2 仅首页的证据包保留。 + +macOS 只有交叉构建,**原生排版、弹层、菜单、窗口与键盘复验待有 Mac 时完成**。本轮没有传送候选到 SMB/Mac,没有游戏或登录新证据。 + +## 仍待完善 + +- N04/N04e:已填充的资源与存档详情、其它下载类别及全部弹层状态还需逐项核对;完整焦点、屏幕阅读器名称、系统强调色和高对比度矩阵尚未完成。 +- N05/G01:本轮原生主要为 200% DPI;125%/150%、跨显示器、系统贴靠/快捷键、触屏及 macOS 原生待验,不用布局测试或交叉构建替代。 +- 原逐页业务缺口继续保留在 todo.md;语言、更新安装链、其它加载器、在线皮肤/披风写操作等没有因统一样式而完成,也没有通过隐藏入口来勾选。 +- 未启动 Minecraft,未验证游戏、登录、自动入服或任何游戏内效果。后续只有用户在当前任务明确要求,才可启动游戏验收。 diff --git a/docs/conduit/WINDOWS-UI-R12.md b/docs/conduit/WINDOWS-UI-R12.md new file mode 100644 index 00000000..5161fd9f --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R12.md @@ -0,0 +1,118 @@ +# R12:下载目录自动加载与页面内状态 + +2026-11-06 至 11-07。继续 `features/windows-parity` 上的 Avalonia 跨平台实现;本轮没有启动 Minecraft、运行安装器、读取真实账户缓存、推送、合并或切换默认入口。 + +## 源码与参考 + +- 工作树 `D:\Code\C#\SHOU-Launcher-Windows`;origin 为 `https://github.com/Conduit-Club/SHOU-Launcher.git`。本轮 fetch 后迁移分支远端仍为 `fb1b483a3373359fe9a257bcc86d498d068864b6`,没有合并 dev/main,原目录修改保留。 +- 产品提交:`1b74f35294c24ee4116f086f5cdecda2b6b2ba73` 实现目录与页面内状态;`3cd5f4bcc837246713e20f7518c0305921d66c8d` 修正官方仓库地址、NeoForge 热修复分组和预发行隔离;`656f4ebef9331cd3e43fdfb34d1ed134e41c97d9` 支持并转义合法 Maven build 坐标;`16689afc2d7bb0373354e8f8e9fcaea3414ba90e` 修复原生发现的 Fabric 目录失败、资源行换行和加载图案颜色;`572c8b101728e018f13f5c54b0f4b38aaf4adc36` 修正新增回归的来源夹具。**最终 RC3 源码为 572c8b10。** +- 参考用户提供的六张截图:加载器横条、目录加载卡、热门模组列表和 Forge 独立安装器目录。仅复用 v1.5.0 的独立 Anvil/Fabric/Quilt PNG,来源与哈希见 [素材记录](../../src/SHOU.Launcher.Desktop/Assets/Minecraft/README.md);未读取旧 WPF 视图、样式模板、控件结构 JSON 或采集脚本。 +- 新增的 pickaxe 来自固定版本的 [Lucide 原始 SVG](https://raw.githubusercontent.com/lucide-icons/lucide/0.468.0/icons/pickaxe.svg),沿用已有许可记录。共享图标共 88 个;未打包新字体。 + +## 差异与本轮修改 + +| 范围 | 此前差异 | 本轮实现 | +|---|---|---| +| 首次浏览 | 目录/社区资源需要手动读取或搜索;加载时出现底部进度条 | 首次进入自动查询;空列表在右侧内容区显示镐子加载卡,刷新已有列表时显示局部图标与取消入口,不挤压页面 | +| 加载器配置 | 默认大段展开、无版本图标、需逐个读取;无目录与不支持安装容易混淆 | Minecraft 版本选定后独立读取 Fabric/Forge/NeoForge/Quilt;四项默认收成整行,显示图标、可添加/已选版本/仅浏览/无可用版本,展开后显示真实版本与图标 | +| 热门资源 | 首次空白、默认相关性排序、只用首字替代图标,元信息少 | 模组、整合包、数据包、资源包、光影包首次空查询并按下载量排序;接入真实缩略图、标签、版本/加载器、下载量、更新时间与来源 | +| 筛选 | 修改条件后仍需再次搜索;离页丢列表与条件 | 查询及筛选变化经 350ms 合并后自动查询;保留 Enter/搜索按钮;分类型缓存条件和结果 5 分钟,离页取消,回来自动补读缺失/过期结果 | +| 数据包 | 旧 mod + datapack 标签组合遗漏热门数据包 | 使用实际 `project_type:datapack` 目录;项目链接按返回的实际类型构造。通用实例装入仍不代替存档目标选择 | +| 独立安装器 | Forge 等只有官网/返回按钮和空版本框 | Forge、NeoForge、Fabric、Quilt、Legacy Fabric 自动读取官方目录;按 Minecraft 版本或通用安装器分组,首组展开,Forge 推荐版有标记;点具体版本进入系统另存 | +| 跨页操作 | 所有长操作都在底部增加状态和进度条 | 全局长操作改为相应内容区的加载卡与取消;浏览目录使用独立状态,不锁住导航、搜索条件或已有结果。下载任务页自身的真实传输进度保留 | + +解锁后的原生走查还发现并修正三项:Fabric 官方响应同时包含历史 `0.10.6+build.214` 等坐标,原标识校验使整份列表失败;现在只隔开安装身份策略尚不支持的历史 build 坐标,保留现代版本,非法路径仍拒绝。资源简介与标签受通用 muted 换行样式影响,行高和标签背景被拉长;改为单行截断及标签垂直居中。加载镐子原来被图标默认色覆盖,现显式跟随调用处的强调色;加载器横条状态字重也恢复正常。 + +最终 Core 对 **26.3 和 1.21.1** 的真实 Fabric 请求均返回 **157** 项,首项 0.20.1;[联网修复验证](../../artifacts/windows-main-20261105/reports/r12-live-fabric-fixed.json)。这只证明目录可读,不宣称所有历史加载器都已安装或运行验证。 + +本轮没有为了显示“可以添加”而放宽安装范围。Forge/NeoForge/Quilt 的游戏安装仍限定已验证的 Minecraft 1.21.1;其它版本可读目录,明确显示仅浏览。Fabric 安装范围沿用现有后端。未自动选择加载器、创建实例或执行下载。 + +官方目录与筛选依据:[Modrinth 搜索接口](https://docs.modrinth.com/api/operations/searchprojects/)、[Fabric Meta](https://meta.fabricmc.net/) 与各项目官方 Maven 元数据。标签来源为官方 Modrinth tag/category;数据包当前沿用其 mod 分类标签。现有 Modrinth 镜像/HTTP 代理规则继续生效,独立安装器只使用官方来源并保留 HTTP 代理。 + +联网复核后补修:Legacy Fabric 原 Maven 域名会跳转,改用其 [官方现址](https://repo.legacyfabric.net/legacyfabric/net/legacyfabric/fabric-installer/1.1.1/),继续禁止自动跳转;其 `1.1.0+1` 合法坐标按单个 URL 段转义,仍拒绝路径、查询串和任意 URL。NeoForge 按 [官方版本规则](https://docs.neoforged.net/docs/gettingstarted/versioning/) 区分旧三段号与新四段号,例如 `26.1.2.126` 属于 Minecraft 26.1.2,`26.1.0.19-beta` 属于 26.1;暂不支持的 alpha/snapshot 坐标单独跳过,不拖垮正式目录,不冒认兼容性。 + +## 取消、校验与保留范围 + +- 每类浏览请求有取消令牌和 45 秒页面超时;网络读取另有现有的有界超时。新请求替换旧请求,迟到结果不能覆盖新条件;离页取消不会向新页面显示旧错误。 +- 社区缩略图最多四路加载;离页释放图片,缓存返回时重新读取缺失图标。搜索结果仍可操作,读取不使用全局 busy 锁。 +- 独立安装器 URL 从经过标识校验的版本坐标构造,不接受元数据里的任意下载 URL。使用不附带 API 凭据、禁止自动重定向的专用传输;取得官方 SHA-1 和 HEAD 大小后才下载,单文件上限 64 MiB。 +- 安装器先进入应用临时目录,经大小/哈希验证后复制到另存位置旁的唯一临时文件,再发布完整目标。失败或取消保留原目标,清理本次暂存;不运行 JAR,不创建实例。 +- 共享业务位于 Core,页面和加载图案由 Desktop 共用;没有增加 Windows 专属业务路径或 WPF fallback。既有凭据、清单、归档导入和实例安装边界未放宽。 + +## 自动验证 + +使用项目锁定的 .NET SDK **10.0.403**、Avalonia **12.1.5**,经既有 Invoke-Dev / Validate-Desktop / Publish-Desktop 入口串行执行。没有构建整个旧解决方案加 RID。 + +| 检查 | 最终结果 | 记录 | +|---|---|---| +| Desktop Release / win-x64 | **145 通过,0 失败,0 跳过** | [TRX](../../artifacts/windows-main-20261105/build/main/r12-desktop-rc3/Desktop/Release/win-x64/default/reports/tests.trx) | +| Core Release / win-x64 | **374 通过,0 失败,16 显式跳过** | [TRX](../../artifacts/windows-main-20261105/build/main/r12-core-rc3-fixed/Desktop/Release/win-x64/default/reports/tests.trx) | +| Windows RC3 自包含发布 | 成功;干净源码 `572c8b10` | [控制记录](../../artifacts/windows-main-20261105/reports/r12-download-rc3-Publish-win-x64-default-controller.json) | +| macOS ARM64 RC3 交叉构建 | 成功,0 warning / 0 error;原生待验 | [控制记录](../../artifacts/windows-main-20261105/reports/r12-macos-rc3-Build-osx-arm64-default-controller.json) | + +新增有行为意义的回归:五类资源自动加载/排序与导航可用、迟到响应隔离、右侧加载范围、四类加载器自动读取/横条宽度/图标/无隐式选择、全局加载不增加底行;官方安装器身份/推荐版/类别字段、拒绝 DTD、忽略任意元数据 URL、真实文件保存/重复执行、坏哈希与取消均保留原文件并清理暂存。 + +早期候选直接调用 **Core DLL(656f4ebe)** 完成如下真实联网验证,没有启动 UI 或 Java;相关社区目录和独立安装器代码在 RC3 保持相同,最终 RC3 另有上文 Fabric 探测及下文 UI 复验: + +| 范围 | 实际结果 | +|---|---| +| 五类热门资源 | 每类 30 项,空查询 + downloads 排序,首项真实 CDN 图标读取成功;模组首三项为 Fabric API / Sodium / Iris Shaders,数据包首项 VeinMiner | +| 独立安装器目录 | Forge 5104、NeoForge 1838、Fabric 67、Quilt 34、Legacy Fabric 6 个版本;NeoForge 最新首组为 26.3,热修复单独分组 | +| Fabric 1.1.2 真实另存 | 212123 字节,SHA-256 `61e035bf7bf70153e127440ce34de47c9036f0a2d0c65d1529454bd35ceefe4f`;两次保存一致,暂存文件为 0 | +| Legacy Fabric 1.1.1 真实另存 | 193716 字节,SHA-256 `5923d75fd549943deedd79ec209e98fbfc100b03194e529661e15193b3dcfebd`;两次保存一致,暂存文件为 0 | + +[Core 社区目录记录](../../artifacts/windows-main-20261105/reports/r12-real-core-community-final.json)、[Core 安装器记录](../../artifacts/windows-main-20261105/reports/r12-real-core-installers-final.json)。保存仅在任务的受控目录进行,使用禁止自动重定向/不携带凭据的 HTTP 客户端;文件没有执行、安装或进入候选包。它们不代替系统另存窗口或鼠标验收。 + +16 项跳过原因:8 项 POSIX 链接场景需另行配置 Windows reparse/junction 原生夹具;1 项 POSIX 失败 keytool 子进程场景;4 项 macOS 原生 argv/Keychain 场景;2 项显式受控 Java 副本门禁未启用;1 项在线 Java 门禁未启用。没有将这些跳过计为通过,也没有为外壳修改自动扫描或执行用户 Java。 + +首次失败与修正均保留: + +1. `r12-download-first`:编译 CS0236,命令初始化器错误引用实例字段;改为执行条件和方法守卫。 +2. `r12-download-second`:138 通过、3 失败。发现离页取消后 loader loading 标志未复位并修正;另两项旧测试仍假定全局 busy/手动首次搜索,更新为实际的页面局部读取语义。 +3. `r12-download-third`:144 通过、1 失败。旧夹具在选版本触发自动读取后才替换响应,调整夹具设置顺序;`r12-download-fourth` 随后 145 全过。最终版本另跑上述完整 Desktop/Core 回归。 +4. [首轮公开端点探测](../../artifacts/windows-main-20261105/reports/r12-official-installer-probe.json)发现 Legacy Fabric 跳转;[首轮真实 Core 目录探测](../../artifacts/windows-main-20261105/reports/r12-real-core-installers.json)发现合法 `+1` 坐标被拒绝。均已补修,最终五类目录和两类真实另存全部通过。社区探测助手首轮有 PowerShell 单元素数组解包错误,未发送请求;修正助手返回方式后五类真实 Core 请求通过,原记录保留。此助手错误不计为产品缺陷。 +5. RC2 原生发现 Fabric 整份目录失败,原因与修复见上。`r12-core-rc3` 新增回归首轮 373 通过、1 失败、16 跳过:测试只配置了 Mod 来源,加载器请求没有候选地址;修正为 Loader 官方来源后 `r12-core-rc3-fixed` 374 通过。首轮 TRX 和日志保留,未清理失败输出;Desktop 随后 145 全过。 + +首轮 Mac 构建被 **35 GiB 任务预算**在执行前阻止,[原记录](../../artifacts/windows-main-20261105/reports/r12-macos-rc1-admission-first.json)保留。仅对已确认 exit0 的历史任务在核对绝对 buildRoot 后执行编译器 `dotnet clean`,保留失败输出、报告、候选和数据;重试成功。磁盘保留 20 GiB 下限,没有提高预算或递归删除工作目录。 + +## Windows 原生验收 + +**2026-11-07 用户解锁后,先前下载页原生验收阻挡已解除。** Computer Use 仍报 `coordinate input geometry is unavailable`,按本会话既有授权使用 Win32/UIA 备用接口;每次核对候选 EXE、PID、窗口归属与前台。200% DPI,全新空账户/空实例隔离数据;没有向其它应用或锁屏发送输入。 + +| 实际范围 | 结果与边界 | +|---|---| +| Minecraft 目录 | 首次进入右侧加载卡,随后自动显示最新版本和分组;没有点击读取或安装 | +| 加载器配置 | 26.3 的四类横条独立自动读取;Fabric 修复后展开可见 0.20.1 等版本和图标,状态字重正常;其它三类在此版本明确仅浏览 | +| 五类社区资源 | 空查询自动按下载量排序;真实图标、单行简介、紧凑标签及元信息;未安装任何资源 | +| 输入与缓存 | UIA 输入 sodium 后自动更新,无需点击搜索;离页返回保留同会话查询与结果,图标缺失时局部补读 | +| 刷新取消与恢复 | 深色最小窗口中真实 Esc 取消正在读取的查询/图标并保留当前列表;随后 Enter 重试,取消状态消失,结果恢复 | +| 五类独立安装器 | RC2 实际自动打开 Forge/NeoForge/Fabric/Quilt/Legacy Fabric 目录和图标;RC3 又复验深色最小窗口的 Quilt 加载及结果;未点击 JAR 另存或执行安装器 | +| 主题与最小窗口 | 浅色 976×636、深色 880×560;资源控件与元信息可读,加载卡和横条无底部进度栏;最小化后恢复正常 | +| 保存与重启 | 仅在隔离数据中选择深色并保存;正常关闭再启动后仍为深色,设置页实际显示“深色” | +| 正常退出 | RC2 续验、RC3、RC3 重启三次均点击关闭按钮后 **exit0**,stderr 为空,无外层超时清理 | + +[RC2 续验退出](../../artifacts/windows-main-20261105/reports/r12-native-rc2-resumed-exit.json)、[RC3 退出](../../artifacts/windows-main-20261105/reports/r12-native-rc3-exit.json)、[RC3 重启退出](../../artifacts/windows-main-20261105/reports/r12-native-rc3-restart-exit.json)。控件树切换期间两次只读 UIA 快照出现瞬时异常;重新观察后继续,并为采集增加最多三次的只读重取,没有重复导航或写入。 + +此前 RC1 锁屏时误命名为 catalog 的 001–003 实际为首页,仍不作为下载页证据;[原阻挡记录](../../artifacts/windows-main-20261105/reports/r12-native-blocker.json)和 [RC1 清理记录](../../artifacts/windows-main-20261105/reports/r12-native-rc1-owned-cleanup.json)保留为历史,不再作为当前阻挡。未触碰用户原有 WPF 窗口或默认入口。 + +## Windows 候选 + +[Windows x64 自包含 RC3](../../artifacts/windows-main-20261105/dist/r12-download-rc3/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.g572c8b10.zip),**80,886,341 字节**。 + +SHA-256:`fa094223eabddbfdf77050c3dd8b5a45c6b00b798dd51441df60d74bec4b2313` + +Release / win-x64 / self-contained,构建来源 `572c8b101728e018f13f5c54b0f4b38aaf4adc36`,工作区干净。主程序、CoreCLR、Skia 本机库均为 AMD64;266 个包内条目未发现 .env、账户缓存、实例、日志、密钥或测试数据。[RC3 候选审计](../../artifacts/windows-main-20261105/reports/r12-rc3-candidate-audit.json)。未签名,只有本机候选;旧 WPF 工程和默认入口保留。RC1/RC2 及其审计保留为早期结果,不作为最终交付包。未向 SMB/Mac 外传包或截图。 + +[按页截图与说明](../../artifacts/windows-main-20261105/public-evidence-r12-final/README.md)为 **13 个页面文件夹、23 张实际截图**;每张记录真实源码、DPI、尺寸与 SHA-256。四张未改布局的独立安装器目录来自 RC2,其余为最终 RC3;已区分来源,不将 RC2 的 Fabric 配置失败图放入最终参考。[截图 ZIP](../../artifacts/windows-main-20261105/SHOU-UI-Evidence-R12-RC3-20261107.zip)为 **4,569,550 字节**,SHA-256 `665e4899fa1f808078794e643ab4967749de32601c04885902469462ad9429e4`;复制哈希一致、ZIP 完整性通过,白名单仅 PNG/说明/清单,不含 UIA、账户、日志、程序或 JAR。[归档核对](../../artifacts/windows-main-20261105/reports/r12-final-public-evidence.json)。 + +续验收尾:任务占用 **34.769 / 35 GiB**,D 盘可用 **277.026 GiB**,保留 20 GiB 下限;无 heavy owner,续验的三个候选进程均已正常结束。只清理已核对成功输出的编译器产物,失败目录、报告、候选、原工作区 AGENTS.md 修改、参考归档和 todo 均保留。[最终收尾记录](../../artifacts/windows-main-20261105/reports/r12-resumed-delivery-final.json)。 + +## 未完成项 + +- 世界目录仍缺可靠可移植数据源;CF 包解析不等于 CF 全站搜索。当前社区来源为 Modrinth,不宣称其它来源与全部标签均已迁移。 +- OptiFine、Cleanroom、LabyMod、LiteLoader 的可校验独立安装器目录仍未接入;入口显示实际限制和官网,不以隐藏/禁用算完成。历史 Forge 工件并非都提供 installer.jar,更多历史版本的另存与失败恢复需原生补验。 +- 安装器本轮已做受控文件系统成功/坏哈希/取消/重复执行回归,以及两类真实官方 JAR 另存;真实系统选择器的完整提供方、取消/断网/覆盖矩阵待验。独立安装器暂未接镜像优先级。 +- 资源详情长介绍、完整兼容性、其它来源、依赖与存档目标安装链仍按 todo.md 追踪。数据包可浏览不等于已支持通用实例直接装入。 +- 加载器组与 Fabric 之间的间距、本机整合包导入卡占高,以及更多标签中文名仍需下一轮继续收紧;不将代表状态走查写成逐像素或所有业务已齐。 +- macOS 原生、125%/150%、跨显示器、全键盘/焦点、屏幕阅读器和高对比度完整矩阵待验。交叉构建不代替原生运行。 +- 没有新增游戏、正版登录或游戏内效果证据;不执行游戏验证,除非用户在后续当前任务中明确要求。 diff --git a/docs/conduit/WINDOWS-UI-R13.md b/docs/conduit/WINDOWS-UI-R13.md new file mode 100644 index 00000000..0c6dd46a --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R13.md @@ -0,0 +1,88 @@ +# R13:下载来源、愚人节分组与独立安装器 + +2026-11-07。产品提交 **a77f75f7d129b9a2abbb2db06a28f37ae6e9b6aa**,分支 `features/windows-parity`。本轮依据用户新截图和要求续作迁移分支;没有合并 dev/main、推送、切换默认入口或正式发布。旧 WPF 和原工作区已有改动保留。没有启动 Minecraft,也没有执行下载的安装器。 + +## 差异与本轮结果 + +| 用户指出的差异 | R13 结果 | 验证边界 | +|---|---|---| +| Minecraft 缺少愚人节版 | 九个实际 ID 单独分组;不改变原始 kind/安装能力,不伪造缺失条目 | Core 回归、实际 Windows 目录 | +| 来源只有 Modrinth,世界搜不到 | 接入全部/CurseForge/Modrinth;世界使用 CF classId 17,另五类对应各自官方分类 | CF 六类各返回 30 项并读取文件;原生切换来源和世界下载 | +| 排序应改回默认 | UI 初始/重置为“默认”;空关键词仍展示热门,输入关键词后按提供方默认相关性读取 | Desktop 回归、原生初始与切换 | +| OptiFine 空页面 | BMCLAPI 502 项正式/预览目录、实际文件名校对、官方文件另存及 SHA-1 验证 | 正式 J1、历史预览 J1_pre15 真实保存和复用;候选界面另存 K2_pre5 | +| Cleanroom 空页面 | 官方 Maven 73 项目录、1.12.2 分组、独立安装器及官方 SHA-1 | 0.7.14-alpha 实际保存,文件哈希与官方发布摘要一致 | +| LabyMod 空页面 | 官方稳定/快照 manifest,48.4/49 和真实发布日期;另存官方 Java 安装器 | 实际保存 529637 字节;上游没有提供此安装器哈希 | +| LiteLoader 空页面 | 官方历史清单 16 组、独立图标和安装器地址 | 1.7.10 实际保存;1.12.2 Jenkins HTTPS 在本机超时,未冒认成功 | +| 推荐/最新版埋在列表里 | 每组推荐、最新版置顶,其下全部版本;同一行可同时标记;仅一两项时直接排列 | Forge 26.3 实窗:推荐 66.1.0、最新 66.1.5、全部 18 项;Desktop 布局回归 | + +本次目录实际显示 103 个正式版、749 个普通预览版、61 个远古版和 9 个愚人节版。没有为了与旧图计数相同而修改版本类型或添加假条目。愚人节 ID 明确列出,包括 1.RV-Pre1;同日普通正式版 26.1.1 不误分。特殊历史名称的安装限制保留,独立分组不等于所有历史版本都可安装。 + +## 共享实现与下载边界 + +- 数据协议、CF 检索/文件/依赖接口、安装器目录与另存放在 Core;页面、图标、按钮和筛选继续由同一套 Avalonia 实现承担。没有增加 Windows 业务路径或 WPF fallback。 +- 仅参照旧业务模块中的元数据协议和下载地址,以及用户截图;没有读取旧 WPF 视图、样式、模板或结构映射。Cleanroom/LabyMod/Egg 位图来自已有独立素材目录,来源与 SHA-256 记在 Assets/Minecraft/README.md。 +- CF 项目/版本身份使用 `cf-` 前缀,和已有 Modrinth 收藏隔离;旧收藏缺少 Source 字段时仍按 Modrinth 读取。来源变化会重新读取,草稿/缓存按页面保留;本轮不宣称搜索草稿跨重启持久化。 +- “全部”每页从两个提供方分别读取 15 项,合并展示;单来源读取 30 项。热门/下载量在当页排序,不能视作跨两个独立站点所有页面的统一全局排行榜。选择提供方后按该站点完整分页。 +- CF key 仅附在固定 `https://api.curseforge.com/v1/` 请求,使用禁止自动跳转的专用传输。图标和文件请求不带 key;现有 CF 官方 CDN 逐跳白名单、哈希/大小验证复用。未改 MRpack 的 Modrinth 下载域名边界、CF 整合包精确哈希替代规则、实例隔离与回滚。 +- 作者未提供第三方下载地址,或文件已不可用时,不拼接 CDN 地址;展示版本及项目页入口和原因。真实例子 Fresh Animations 返回 30 个版本,但当前均无第三方地址,不能算“可直接下载 30 个文件”。 +- OptiFine 的 BMCLAPI 预览记录以 `HD_U_J1 + pre15` 等形式表示,不能仅接受 `HD_U`。自然数字排序避免 pre9 排到 pre10 前面。官方文件不可用时只访问固定 BMCLAPI 所委派的、带预期 SHA-1 的单个 HTTPS 节点,不跟随后续跳转、不发送凭据;拒绝字面 IP/本机/私网目标,兼容系统代理的 198.18/15 fake-IP 映射。不会关闭 TLS 校验。 +- Cleanroom 使用官方 Maven 的 SHA-1。LabyMod 清单 sha1 属于客户端,LiteLoader 清单 md5 属于加载器本体,**都不冒用于独立安装器**。这两个安装器仅做官方 HTTPS、有效大小/有界完整传输和 JAR 结构检查;本地 SHA-256 用于交付核对,不是上游签名或发布者哈希。 +- 四类新增下载先落入独立暂存,经检查后通过目标旁临时文件发布;失败/取消保留原目标并清理本次暂存。下载的 JAR 不自动运行、不创建实例。独立安装器当前上限 64 MiB,有界请求/取消继续有效。 + +协议依据:[CurseForge 官方 API](https://docs.curseforge.com/rest-api/)、[BMCLAPI 维护者接口文档](https://bmclapidoc.bangbang93.com/)、[Cleanroom 官方 Maven](https://maven.cleanroommc.com/com/cleanroommc/cleanroom/maven-metadata.xml)、[LabyMod 官方 manifest](https://releases.r2.labymod.net/api/v1/manifest/production/latest.json)、[LiteLoader 官方清单](https://dl.liteloader.com/versions/versions.json)。实际响应与下载结果另存为脱敏记录,没有保存 API key、账户缓存或认证响应。 + +## 验证与首次问题 + +项目锁定 .NET SDK **10.0.403**、Avalonia **12.1.5**;通过已有 Invoke-Dev、Validate-Desktop、Publish-Desktop 串行构建测试。 + +| 验证 | 结果 | 原始记录 | +|---|---|---| +| Core Release / win-x64 | **383 通过,0 失败,16 显式跳过** | [TRX](../../artifacts/windows-main-20261105/build/main/r13-core-rc1/Desktop/Release/win-x64/default/reports/tests.trx) | +| Desktop Release / win-x64 | **148 通过,0 失败,0 跳过** | [TRX](../../artifacts/windows-main-20261105/build/main/r13-desktop-rc1/Desktop/Release/win-x64/default/reports/tests.trx) | +| Windows 自包含候选 | 干净源码 a77f75f7,Release/win-x64;EXE/CoreCLR/Skia 均 AMD64 | [包审计](../../artifacts/windows-main-20261105/reports/r13-rc1-candidate-audit.json) | +| macOS ARM64 交叉构建 | 成功,0 warning/error;**未做 Mac 原生运行** | [控制记录](../../artifacts/windows-main-20261105/reports/r13-macos-rc1-Build-osx-arm64-default-controller.json) | +| Windows 原生 UI | 200% DPI,976×636 与 880×560 DIP;三来源、自动读取、世界文件、四类目录/另存、推荐区、深色、最小化恢复、重启收藏 | [逐页证据](../../artifacts/windows-main-20261105/public-evidence-r13/README.md) | + +16 项跳过沿用已有门禁:8 项 POSIX 链接/Windows reparse 场景、1 项 POSIX 失败 keytool 夹具、4 项 Mac argv/Keychain、2 项受控 Java 副本门禁未启用、1 项在线 Java 门禁未启用。没有将跳过算作通过,也没有为外壳修改开启游戏测试。 + +新增回归覆盖愚人节与普通发布的区分、CF 世界分类/编码/来源身份/凭据作用域/拒绝跳转/缺 key、文件项目身份/哈希/CDN/无第三方地址、四类目录、OptiFine 预览自然排序与真实校验、拒绝私网节点、坏哈希/HTML/取消保留旧文件和清理暂存,以及来源控件/世界路由/默认排序/推荐区和 CF 收藏重读。 + +本轮自动构建与测试首轮均通过;真实联网检查暴露并修正的记录保留: + +1. 最初只接受 OptiFine `HD_U`,185 项目录漏掉预览类型;修正后为 502 项,增加预览字段回归。 +2. [首次历史预览另存](../../artifacts/windows-main-20261105/reports/r13-real-core-final.json)失败:官网只返回缺文件文本,大小检查拒绝,未发布错误文件。 +3. [首次镜像回退](../../artifacts/windows-main-20261105/reports/r13-real-preview-fixed.json)被代理 fake-IP 映射误拦;修正后保留真实私网限制,[最终 J1_pre15](../../artifacts/windows-main-20261105/reports/r13-real-preview-rc1.json)两次保存同 SHA-256、暂存 0。 +4. 原生另存辅助脚本的早期文件名输入常量及前台守卫曾失败,原始记录保留;最终用实际系统选择器和候选状态/输出文件核对结果。两个安装器保存在既有受控 package-download-r9 目录,另外两个保存在 r13-native-save;未覆盖或移动旧验收资料,不将输入异常伪报为产品失败或通过。 + +[首次问题索引](../../artifacts/windows-main-20261105/reports/r13-first-observations.json) 汇总上述问题、修正和剩余上游阻塞。 + +测试在提交前的开发工作树完成,控制记录的 HEAD 为 2d44f8d2,包含待提交的 R13 源码;随后提交为 a77f75f7,候选和 Mac 交叉构建均来自该干净提交。没有因版本标识变化而重复整套测试。 + +## 实际文件与原生证据 + +[六类 CF 及四类安装器首轮联网](../../artifacts/windows-main-20261105/reports/r13-real-core-first.json)、[候选原生下载收据](../../artifacts/windows-main-20261105/reports/r13-native-downloads.json)。这里只核对文件,不执行安装器或解压世界。 + +| 文件 | 实际字节数 | 检查 | +|---|---:|---| +| OptiFine 26.2 K2_pre5 安装器 | 7,849,368 | 原生另存,预期 SHA-1 | +| Cleanroom 0.7.14-alpha 安装器 | 15,327,470 | 原生另存,官方 SHA-1 | +| LabyMod 48.4 安装器 | 529,637 | 原生另存,HTTPS/大小/JAR;无上游安装器哈希 | +| LiteLoader 1.7.10 安装器 | 2,896,561 | 原生另存,HTTPS/大小/JAR;无上游安装器哈希 | +| Oneblock v3.4.8 世界 ZIP | 29,945,532 | 候选实际下载,官方 SHA-1 `155a1adac41d25c7b3da20101756065973dd0b64` | + +真实 Core 重复保存还包括 OptiFine 1.21.1 J1/J1_pre15、Cleanroom、LabyMod 和 LiteLoader 1.7.10,文件一致,暂存均为 0。每个文件的完整 SHA-256 见下载收据/联网记录。 + +候选两次正常关闭均 exit0,stderr 为 0,未触发外层超时清理;重启后深色及 CF 收藏仍可见。重启窗口恢复默认 976×636,不能当作窗口尺寸持久化通过。收藏页缩略图仍为占位,已保留 P39。 + +## 交付与剩余项 + +- [Windows RC1 ZIP](../../artifacts/windows-main-20261105/dist/r13-download-rc1/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.ga77f75f7.zip):**80,930,095 字节**,Release / win-x64 / self-contained,未签名本地候选。 + SHA-256:`4221af2004a59793d5d257290e3fc323ada0bf94f14cd5b2e09a80ca63060e32`。 +- [逐页证据 ZIP](../../artifacts/windows-main-20261105/SHOU-UI-Evidence-R13-20261107.zip):13 页/19 图及说明,**4,310,086 字节**;不含原始 UIA、运行数据、日志或下载文件。 + SHA-256:`18a0b5e9a74851fd54adfac316fecc90f3671b1ee5b103f9f582cb389f6d3010`。 +- 候选包 266 项,架构与 SHA-256 已核对,未包含 .env、账户/凭据缓存、私钥、日志、测试夹具或验收下载。API 构建配置继续由 Core 拥有,未在报告或截图输出值。 +- [最终审计](../../artifacts/windows-main-20261105/reports/r13-final-delivery-audit.json):任务目录 **33.728 / 35 GiB**,磁盘剩余 **277.537 GiB**,20 GiB 预留满足;重任务锁可正常取得,两个候选进程均已退出。仅用 dotnet clean 回收已成功运行的编译输出;报告、失败记录、候选和验收数据均保留。公开截图/文本还对本机构建值做了不输出内容的检查,未发现泄漏。 + +未完成:LiteLoader 1.12.2 等 Jenkins HTTPS 源的可达性;LabyMod/LiteLoader 上游安装器哈希;完整系统另存取消/断网/覆盖/历史版本矩阵;CF 世界/数据包明确目标与解压安装链;CF 资源依赖装入真实实例的原生验证;更多标签中文名、收藏缩略图、窗口尺寸持久化及完整 UI 对齐;Mac 原生、更多 DPI/跨屏和无障碍。新增四类入口是独立安装器下载,不代表游戏实例安装或运行链迁移完成。 + +已完成项见 [todo.md](../../todo.md) 的 D09a–D09e;D06/D07、D09f 与各页剩余业务仍未勾选。旧 WPF 与默认入口继续保留。 diff --git a/docs/conduit/WINDOWS-UI-R14.md b/docs/conduit/WINDOWS-UI-R14.md new file mode 100644 index 00000000..e0500c8f --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R14.md @@ -0,0 +1,77 @@ +# Windows R14:工具接入与账户表单收敛 + +2026-11-07。产品提交 `6b65c639`(主要实现)、`879489e7`(迟到进度/关闭清理与提示收敛)。沿用 `features/windows-parity` 迁移分支;没有合并 main/dev、推送、切换默认入口或正式发布。原工作区已有修改保持原状。 + +本轮没有启动 Minecraft,没有执行下载的安装器,没有读取真实旧账户缓存,也没有填写真实登录凭据。现有 Microsoft 标准设备授权及 MUA/LittleSkin 密码认证服务保留,真实登录不计为本轮通过。 + +## UI/功能差异与完成范围 + +| 原差距 | 本轮行为 | 验证边界 | +| --- | --- | --- | +| 社团入口在百宝箱底部 | 移至第一张卡,Wiki、入服指南、社团更新日志、启动器日志各有有效导航 | 更新日志从工具入口真实打开并读取正文;既有 Wiki/指南地址保留 | +| 百宝箱四项按钮灰色 | 日志扫描/回收/恢复、今日人品、启动器快捷方式、真实记录计数均接入 | 日志移动/恢复用受控 Core 文件验证;原生只扫描空实例,未清理用户数据 | +| 自定义下载为占位 | HTTP(S) 地址、目录选择、文件名、打开目录、下载/取消/重试 | 实际文件 SHA-256 一致;取消及关闭后无半成品/暂存 | +| 皮肤、服务器查询为占位 | 复用公开纹理解析和 Minecraft 状态探测,不需要账户凭据 | 官方公开样例皮肤实际保存;受控状态端点显示 12 人 | +| 成就/头像不能生成和保存 | 共享 Avalonia 本地成就渲染;Core 头像裁切/帽层合成/PNG 编码 | 成就与 256×256 头像实际另存并打开核对,64/128/256 有 Core 回归 | +| 微软账户表单多出读取旧缓存和 Minecraft 官网 | 移除这两个入口,保留正常设备授权 | 原生空表单确认;底层历史数据兼容接口保留,不自动扫描旧目录 | +| MUA 多出不可用 OAuth | 移除占位,保留邮箱/用户名和密码;凭据说明改为密码框悬浮提示 | 最终候选原生表单确认,无新增常驻提示段落 | +| 切换渠道仍显示“正在添加:微软正版” | 更新渠道说明,切换即清空密码 | MUA/离线切换与迟到认证等既有回归保留 | +| 离线只有禁用的行业规范 | 接入行业规范、v1.5 旧版、自定义 UUID,明确格式校验 | 旧算法黄金值、大小写、非法 UUID、中文名、持久化回归;原生合法/非法及旧版选择通过 | +| 离线缺说明 | 渠道悬浮解释认证限制;玩家 ID 悬浮建议英文,非英文名才显示兼容性提醒 | 中文不被强行禁止;创建的受控档案重启后身份一致 | +| 工具操作可能让页面新增底部长条 | 状态、镐形加载图和取消都在对应卡片内 | 实际下载与查询时确认无底部长进度条 | + +日志工具只选超过一天的直接 `logs/*.log`、`*.log.gz` 和 `crash-reports/crash-*.txt`,移动前核对大小/SHA-256,写收据,放入实例内 `.shou-trash/game-logs`,恢复拒绝同名覆盖。保留世界、模组、截图、配置及近期日志。它是可恢复整理,不宣称释放磁盘空间;启动器缓存清理仍待补。 + +今日人品按安装种子与日期稳定;计数读取实例已有持久记录。Windows `.lnk` 指向本启动器并带当前数据目录,未执行该链接;macOS 使用平台适配层生成 Finder `.app` 入口,待实机验收。 + +自定义下载限制 512 MiB,拒绝嵌入账户密码的地址、HTTPS 降级、过多跳转、路径别名与覆盖。新文件完整收取后才原子发布。下载使用独立匿名 HTTP 连接,不转发 Microsoft/CF API 凭据;不关闭 TLS 验证。成就文字只在本机渲染,不上传、不捆绑字体;目前内置四种物品,并可选择 PNG 图标,完整旧物品 ID 库尚未恢复。 + +共享业务继续在 Core;窗口/文件选择器使用共享 Avalonia,Windows COM 和 macOS 快捷方式放在平台层。只参考可移植的旧 UUID/哈希与快捷方式业务,不读取 WPF 视图、样式或控件结构作为实现输入,不使用旧 WPF fallback。 + +## 构建与测试 + +| 检查 | 结果 | 记录 | +| --- | --- | --- | +| Core 全量 | 392 通过、16 显式跳过、0 失败;总计 408 | `r14-core-tools-fixed` 的 TRX | +| Desktop 最终全量 | 154 通过、0 跳过、0 失败 | `r14-desktop-rc2` 的 TRX | +| Win 自包含 Release | 成功、零警告;源码干净 | `r14-toolbox-rc2` | +| macOS ARM64 交叉构建 | 成功、零警告;同一最终产品提交 | `r14-macos-rc2`;不代表原生运行 | +| Windows 原生 | 200% DPI;正常 976×636、最小 880×560;浅/深色、最小化恢复、两次正常关闭 exit0 | 逐页证据与原生报告 | + +Core 16 项跳过与既有 R13 门禁相同:8 项 POSIX 链接/Windows reparse 场景、1 项 POSIX 失败 keytool 夹具、4 项 Mac argv/Keychain、2 项受控 Java 副本门禁未启用、1 项在线 Java 门禁未启用。未把跳过当通过,未开启游戏门禁。 + +新增检查覆盖匿名请求不带账户/API 头、下载跳转/降级/超限/截断/取消、不可覆盖与链接目标、旧日志白名单/变更检测/恢复碰撞/取消、头像帽层透明度/像素/PNG、官方皮肤身份校验、工具局部忙碌/离页取消、UUID 持久化、渠道说明与密码清空。收尾增加迟到进度不能覆盖成功/取消、窗口必须等取消清理完成才能关闭两项回归。 + +测试在对应本地提交前的工作树运行;控制记录的 HEAD 是其前一个提交。Core 通过后仅修改 Desktop;最后 154 项 Desktop 回归内容随后提交为 `879489e7`,最终两个平台构建均来自该干净提交。没有因版本标识变化重复整套测试。 + +首次失败均保留:新增 Core JSON 夹具的 `CS9007` 构建错误(测试未执行),以及 Desktop 中文提醒测试漏开添加表单的 1 项失败(151 通过)。均已修正。首次图片保存 API 的弃用警告也已改用 `PngBitmapEncoderOptions`。详见 [首次问题索引](../../artifacts/windows-main-20261105/reports/r14-first-observations.json)。 + +## 原生文件与重启证据 + +- 匿名官方公开皮肤实际保存:64×32(旧版尺寸),2579 字节;没有使用用户账号或访问令牌。 +- 成就 PNG 实际保存:640×112,10409 字节;已打开核对文字、图标和边缘。 +- 头像 PNG 实际保存:256×256,5322 字节;已核对最近邻像素与预览一致。 +- 启动器 `.lnk` 实际保存:2773 字节;目标为候选 EXE,参数只有当前隔离数据目录。 +- 受控下载文件:65536 字节,SHA-256 `7daca2095d0438260fa849183dfc67faa459fdf4936e1bc91eec6b281b27e4c2`;取消后重新下载一致。 +- 最终候选下载到中途直接点关闭:exit0,`close.bin` 不存在,自有暂存 0;受控 HTTP/状态服务随后正常退出。 +- 重开相同隔离目录:一个受控中文离线角色及自定义 UUID 保留,实例仍为 0,深色保留,同日人品仍为 36。 + +当前会话无法取得真实社团服务器在线状态,首页保留“未知”;没有将受控 12 人当成社团真实人数。公开皮肤和社团日志联网成功。网络失败的具体来源未在本轮确认。 + +[原生脱敏结果与逐文件哈希](../../artifacts/windows-main-20261105/reports/r14-native-tools.json);[逐页截图与说明](../../artifacts/windows-main-20261105/public-evidence-r14/README.md)。13 张截图分为 10 个页面目录,分别标注 RC1/RC2 的准确来源;RC1 做主要验收,RC2 专门复验最终表单、重启及下载中关闭。没有把旧候选截图冒作最终候选。 + +## 候选与交付 + +- 产品源码:`879489e79ce14321f1ffdfa1374955e04249c7ec`;架构 `win-x64`,`Release`,自包含;SDK `10.0.403`,Avalonia `12.1.5`。 +- [Windows 候选](../../artifacts/windows-main-20261105/dist/r14-toolbox-rc2/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.g879489e7.zip),80973987 字节。 +- 候选 SHA-256:`5af7d88b6124fb511827092121d9ecdf3fd39f2a70fcc678323d21ae9d21c700`。 +- [截图包](../../artifacts/windows-main-20261105/SHOU-UI-Evidence-R14-20261107.zip),5384359 字节;SHA-256 `d042448a0a463edbd8dc739233cb8c1f1761c32907fd773224cbc96bd731cdec`。 +- ZIP 检查:266 项,EXE/CoreCLR/Skia 均为 AMD64;无 `.env`、账号数据、日志、测试夹具和缓存目录。构建参数仅读取已授权的本机环境文件,未外发其内容。 + +## 仍未完成 + +见 [todo.md R14](../../todo.md):Mac 原生文件选择器/快捷方式/图片与账户布局、完整 DPI/跨屏/无障碍矩阵、SMB 中断,启动器缓存的精确清理、完整旧物品 ID 图标库、服务器 MOTD/版本等丰富信息,以及更多自选图标和失败恢复的原生矩阵。现有 Java 证书工具保持;这些新工具不替代 Java 修复或完整迁移门禁。 + +最终审计:任务目录 34.626 / 35 GiB,磁盘剩余 278.750 GiB;构建互斥可用,公开文本/截图包未命中构建环境中的敏感值,两个候选与受控服务均已正常退出。详见 [交付审计](../../artifacts/windows-main-20261105/reports/r14-final-delivery-audit.json)。 + +旧 WPF 工程、旧数据与默认入口保持。候选与源码仅在本机;没有推送、创建/合并 PR、正式发布或启动游戏。 diff --git a/docs/conduit/WINDOWS-UI-R15.md b/docs/conduit/WINDOWS-UI-R15.md new file mode 100644 index 00000000..f959be6a --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R15.md @@ -0,0 +1,106 @@ +# Windows R15:缓存、旧成就图标、游戏设置与已有实例 + +2026-11-07。本轮补齐工具页可重建缓存清理和 39 项旧成就图标,将游戏/下载设置接入共享业务,并通过原生选择器接入真实已有实例的隔离副本,验证设置和目录操作。源码提交:`d46ad675660cbc1c7add97730282e33c860eb82d`(主要实现)、`60df0fe44ca737fb3807e74df1f2d59121c88fe6`(自动内存显示、独立内存继承及导航/可访问名称修正)。 + +沿用 `features/windows-parity`,跟踪 `origin/features/wpf-parity`;origin 为本社团 SHOU-Launcher 仓库。没有合并 main/dev、推送、切换 Windows 默认入口或正式发布。原工作区 `D:\Code\C#\PCL-CE-SHOU` 的现有修改保留。 + +**本轮没有启动 Minecraft、执行下载的安装器、真实登录或读取用户账户缓存。** 游戏参数/计划回归、设置持久化与实例文件操作分别记录,不把它们当作主菜单、正版认证或游戏内效果验收。Windows/macOS 共用 Avalonia 页面和 Core;Mac 原生仍待验。 + +## UI/功能差异与本轮行为 + +| 原差距 | 本轮行为 | 验证范围 | +| --- | --- | --- | +| 只有游戏日志回收,没有启动器缓存清理 | 新增缓存扫描、文件/大小预览、显式确认、取消和实际清理结果 | Core 受控文件实际删除;Windows 原生扫描/确认门禁,未删除真实用户缓存 | +| 成就只有四个物品,旧数字映射不完整 | 离线补齐旧生成器 1–39 序号及素材,保留名称/数字和自选 PNG | 39 份素材与精确映射回归;数字 2/3 实际预览、另存并打开核对 | +| 启动页隔离/可见性/优先级/IP 等为灰控件 | 接入全局选项、自动/手动内存及受支持高级参数 | 配置、策略/启动计划、会话可见性回归和 Windows 保存/重启;未验证实际游戏窗口 | +| 缺少自动内存,自动值与输入框可能不一致 | 新配置自动估算,旧手动偏好保留;输入框显示实际计算值 | Windows 自动值 10240 MiB;手动 4096 MiB 保存/重启,实例跟随一致 | +| 管理页并发/限速/协议设置不可用 | 接入共享下载预算、HTTPS-only、来源预设、完整清单和安装后选中 | 受控传输回归;原生保存并重启后 3 并发、512 KiB/s 保留 | +| 无直接接入已有游戏目录的流程 | 选择 .minecraft/versions/单版本目录,预检并显式确认接入 | 中文/空格目录,真实 26.2 / Fabric 0.19.3 副本;原始 JSON 不改写 | +| 实例选项不完整,覆盖项易相互影响 | Java、内存、其它启动选项独立跟随/覆盖;保存及重开 | 实例 IPv6、标题、JVM 保留,同时内存仍跟随全局 4096 | +| 未用实际有内容的实例核对页面 | 接入副本,遍历模组/资源/光影/存档/截图/服务器并打开目录 | 模组禁用/恢复,三个目录入口正确;其余内容列表可读,不等于全部操作完成 | + +状态放在对应工具卡和原有设置保存区,没有新增全局底部 loading 条。浅/深色、976×636 和 880×560 DIP 的代表状态已检查;完整 DPI/跨屏/无障碍矩阵仍保持待办。 + +## 缓存与图标的具体范围 + +缓存只处理当前数据目录内已知可重建内容:`cache/assets`、`authlib`、`catalog`、`club-updates`、`content`、`libraries`、`loaders`、`versions`、`java-metadata`,以及缓存根下 `.json`/`.json.sha256`。临时目录仅处理 `game-`、`loader-`、`installer-` 子树中超过一天的文件;未完成下载的 `.part`/恢复记录/aria2 文件也需超过一天且没有活动下载租约。 + +扫描有 100000 项上限,不跟随符号链接/reparse point;预览记录相对路径、大小和 SHA-256。删除前先复核整批预览,再逐文件核对句柄、哈希和租约;变化要求重新扫描,取消返回已完成的实际数量。保留导出、未知目录、实例、世界、账户、设置、Java 运行环境和用户选择的素材。清理缓存与 R14 的可恢复游戏日志回收是两个操作,不混称。 + +Windows 原生使用一个自建缓存文件和一个受保护文件,确认扫描正确、未勾选时清理不可用、勾选后才可用。没有在原生窗口点击清理;真实删除、预览变更拒绝、链接/越界、近期/忙碌文件保护与取消由 Core 文件系统回归验证。 + +39 张旧成就背景和序号来自 [menzerath/mcgen](https://github.com/menzerath/mcgen) 的 `assets/backgrounds` / `assets/legacy.go`,来源归档 SHA-256 为 `01f0ea544a3c0253d72d69c51bf35f0749b0071bf8201a596d8510e817eab2f8`。**1–39 是旧成就生成器图标序号,不是 Minecraft 数字物品 ID**;例如 2 为钻石、3 为钻石剑。修正了此前把 2 当作草方块的映射,保留额外名称别名和自选 PNG。 + +图片在本机共享 Avalonia 渲染,不上传文字、不调用远程生成器、不捆绑字体。生成器 MIT 全文、Minecraft 图像归属和来源记录存于 `src/SHOU.Launcher.Desktop/Assets/AchievementIcons/`,候选包带 `licenses/mcgen.txt` 和 `licenses/achievement-icons.md`。字体仍使用平台字体。 + +## 设置接线与兼容 + +- 全局隔离支持全部隔离、仅模组实例隔离、共享目录;影响后续新实例目录,不自动搬迁既有数据。显式已有实例保持原目录。 +- 可见性支持保留、最小化、隐藏后随会话恢复、关闭启动器;复用已有游戏与启动器退出解耦逻辑。Desktop 使用受控会话信号验证,没有启动游戏。 +- 优先级进入平台进程适配层;IPv4/IPv6 转为明确 JVM 属性。标题支持 `{name}` / `{version}`,Windows 窗口适配已接,Mac 自定义游戏标题仍未验证/启用。 +- 自动内存由平台实际总量/可用量计算,256 MiB 步长,估算范围 512–32768 MiB;32 位 Java 上限与最小内存另行校验。手动实例 Xmx 覆盖全局;只覆盖其它启动选项时仍可独立跟随全局内存。自动模式保留手动草稿,不将显示值误写成用户手动偏好。 +- JVM 允许明确 GC、编码和语言选项,每行一个;游戏尾部参数仅接受受支持的服务器/快速进入等项。拒绝认证、classpath、agent、TLS、数据目录与受保护引导覆盖。前置程序要求绝对可执行路径,独立参数、不开 shell、30 秒超时;失败不继续启动。未在本轮执行用户程序。 +- 下载总并发 1–64、总限速 KiB/s(0 为不限速);并发和限速共享可取消预算。HTTPS-only 跳过 HTTP 源并保留合法 HTTPS 回退,不关闭证书验证。需要策略时使用内部校验下载器,避免 aria2 绕过限速。单文件多段连接尚未补齐。 +- 官方/镜像/自定义顺序接现有来源定义;预设不抹掉保存的自定义 JSON。完整官方清单偏好进入目录缓存身份,安装后选中接入原版、Fabric 和整合包登记。 +- 新设置采用可选嵌套字段;缺失旧字段保留旧手动内存。未知嵌套字段、实例覆盖与写前 `.bak` 保留;切回全局继承时不丢未知字段。未强行重置旧用户偏好。 + +主要源文件:Core 的 `Tools/LauncherCacheCleaner.cs`、`Minecraft/GameSettingsPolicy.cs`、`Instances/ExistingInstanceReader.cs` 与 `LauncherService.*`;Desktop 的 `ViewModels/SettingsPageViewModel.Game.cs`、`ToolboxViewModel.Cache.cs`、`InstancesPageViewModel.Existing.cs`、共享 Settings/Tools/Instances 视图及 `Platform/NativeMemoryInfo.cs`。没有读取或复制旧 WPF 视图、样式、控件结构或采集脚本作为实现输入,没有 WPF fallback。 + +## 已有实例与真实目录验证 + +使用本项目旧启动器目录中的 `E:\Minecraft\.minecraft\versions\XPlus PerioTable based on Minecraft 26.2 (Fabric)`,仅复制白名单公开版本 JSON、客户端 JAR、89 个 Mod JAR、9 个资源 ZIP、4 个光影 ZIP,共 **104 文件、185397755 字节**。一个非 JAR 模组目录文件未复制。没有读取/复制账户、usercache、私有配置、原世界或其它账号存储。 + +副本位于任务隔离数据目录的 `本地 实例验收/.minecraft/versions/...`。通过原生文件夹选择器选择、预检、确认,登记 Minecraft 26.2、Fabric 0.19.3 及原版本身份和元数据哈希。登记使用稳定安全 ID,不改写原版本 JSON,不依赖重新下载;原元数据 SHA-256 为 `28fc95f0f14473da5148fcb0d6d6f9339190a740c92a41480ad1edebdeeb1ad2`。 + +显式确认的已有路径可在预览数据根之外;授权仅对应登记的版本/root,不能将任意外部路径当作可写游戏目录。链接拒绝、重启映射、来源变化重新确认、未登记路径阻挡有 Core 回归。设置、原始来源及未知字段写在启动器侧,不修改原始版本描述。 + +Windows 实际操作与结果: + +- 保存实例 IPv6、`R15 {name}` 和 `-XX:+UseG1GC`;重开候选后仍在。Java/内存分别跟随全局,内存为 4096 MiB。写前备份存在。 +- 模组页读出 89 个 JAR;将 `zfastnoise` 禁用再启用,恢复原文件名与 SHA-256 `1dca8c3f392e1699485f7d5fe60ba42b49157d7aef1882596425d27335981e57`。 +- 资源包 9、光影包 4;截图读取项目 Logo 夹具。自建合法存档 NBT 显示 1.21.1 / 4189,服务器读取自建 `example.invalid:25565`。这些夹具不是游戏运行生成的证据。 +- 实例、存档、模组文件夹按钮均实际交给默认文件管理器 OneCommander,逐次核对到副本根目录、`saves`、`mods`。 +- 最终原来源 104 文件与副本 104 文件全部哈希不变;没有打开原游戏、原存档或真实认证。依据见 [复制收据](../../artifacts/windows-main-20261105/reports/r15-real-instance-copy.json) 和 [最终哈希核对](../../artifacts/windows-main-20261105/reports/r15-source-and-copy-final-hashes.json)。 + +## 构建、测试和首次失败 + +| 检查 | 最终结果 | 记录 | +| --- | --- | --- | +| Core 全量 | 406 通过、16 显式跳过、0 失败;总计 422 | `r15-core-rc2` TRX | +| Desktop 全量 | 160 通过、0 跳过、0 失败 | `r15-desktop-rc2` TRX | +| Windows Release 自包含 | 干净源码 `60df0fe4` 构建成功 | `r15-tools-settings-rc2-retry` | +| macOS ARM64 交叉构建 | 同一源码构建成功,不代表原生运行 | `r15-macos-final` | +| Windows 原生 | 200% DPI,浅/深色,976×636/880×560,设置重启、图片保存、已有实例操作 | 逐页证据;三次正常关闭 exit0 | + +Core 16 项跳过沿用现有平台/外部门禁:8 项 POSIX 链接/Windows reparse 场景、1 项 POSIX 失败 keytool 夹具、4 项 Mac argv/Keychain、2 项未启用的受控 Java 副本门禁、1 项未启用的在线 Java 门禁。未将跳过计为通过。C# 构建为零警告/错误;Java 引导构建仍有三条既有 source/target 8 弃用提示。 + +新增回归覆盖缓存白名单/实际删除/保护/变更检测、39 素材映射、自动内存与旧偏好、独立覆盖继承、未知字段/备份、已有中文目录/外部显式映射、HTTPS 策略和并发/限速取消。测试在提交前的最终工作树运行,控制记录 HEAD 为前一个提交 `d46ad675`;最终受测改动随后提交为 `60df0fe4`。两个最终平台构建来自干净 `60df0fe4`。 + +首次测试失败保留:`r15-desktop-expanded` 中 `All39LegacyIconsRenderOfflineWithExactNumericAliases` 一项失败(157 通过)。原因是 headless 平台没有原生绘制后端,导出的是相同占位像素;不能用它证明 39 个图标渲染。改为检查真实素材字节、精确映射,并用 Windows Skia 实际保存钻石/钻石剑验证渲染。原失败输出未删除,见 [首次失败](../../artifacts/windows-main-20261105/reports/r15-first-failure.json)。 + +`r15-macos-cross`、`r15-tools-settings-rc2` 曾被 35 GiB 磁盘准入门禁在构建前拒绝,未启动编译;核对后仅清理已成功任务的可再生成 bin/obj/publish 中间目录,保留首次失败、TRX、日志、候选和原生证据,再以新 RunId 构建通过。没有提高预算或覆盖全局 SDK。最终候选与证据审计见 [交付审计](../../artifacts/windows-main-20261105/reports/r15-final-delivery-audit.json)。 + +收尾审计:任务目录 34.570 / 35 GiB,磁盘剩余 278.504 GiB;构建互斥可用,公开证据与本轮文本报告未命中构建环境的敏感值。截图包仅包含经视觉核对的 PNG、逐页说明与哈希清单。 + +原生三次运行:RC1 `45944`、RC2 `51640`、重启 RC2 `3372`,均正常关闭 exit0、外层超时 false、stderr 0 字节。没有结束用户已有 WPF/R14 窗口;未遗留本轮自有候选进程。 + +## 候选与证据 + +- 产品源码:`60df0fe44ca737fb3807e74df1f2d59121c88fe6`;`win-x64` / `Release` / 自包含;SDK `10.0.403`,Avalonia `12.1.5`。 +- [Windows 候选 ZIP](../../artifacts/windows-main-20261105/dist/r15-tools-settings-rc2-retry/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.g60df0fe4.zip):81061657 字节,268 项。 +- 候选 SHA-256:`1c5e69836d992c1880f6b25754f80db12243c553426ff5af814c00dbe931e67f`。 +- EXE / CoreCLR / Skia 均为 AMD64;无 `.env`、账号、日志、用户实例、缓存、测试夹具等敏感/非交付目录,图标许可已随包保留。构建读取已授权环境文件,仅报告配置是否存在,不输出配置值。 +- [逐页截图与说明](../../artifacts/windows-main-20261105/public-evidence-r15/README.md):12 页分组,18 张窗口截图、2 张实际导出 PNG,逐文件注明 RC1 `d46ad675` / 最终 RC2 `60df0fe4`,不把早期候选冒作最终截图。 +- [截图 ZIP](../../artifacts/windows-main-20261105/SHOU-UI-Evidence-R15-20261107.zip):2781751 字节;SHA-256 `a1e2b452501595828c106e722f23c4c3024147ca9f7902227d176ac544d2db28`。 +- 实际另存钻石 PNG SHA-256:`ccb8c5c187ef6416a9f6b488d34fc48da4270d825f23d15ef6d56c3260e1c3ff`;钻石剑 PNG:`aecb5ab5621479e9341182f8dfec28e31712b08b62abd72761e1dd9f8e456c66`,均为 640×112。 + +## 未完成与下一阶段 + +完成项已在 [todo.md R15](../../todo.md) 勾选,P10/P12/P22/P50–P52 按实际范围更新,未将整页迁移全勾选。仍有以下边界: + +- Mac 原生内存探测、文件选择器/Finder、缓存与 PNG 保存、已有实例及设置复验;Windows 100/125/150/200 全矩阵、跨屏、无障碍和 SMB 中断。 +- 旧版渲染器/兼容高级选项、单文件多段连接、完整下载源编辑和更多网络失败/回退原生状态。 +- 实例组件/加载器修改、启动脚本导出、服务器状态/快捷连接、模组关系诊断等尚未补齐;存档/截图/资源列表可读不替代完整编辑、回收、排序、更新和失败恢复。 +- 实际游戏窗口标题/优先级/IP/内存/可见性、模组和资源效果、原生多人连接等没有本轮游戏证据。继续遵守默认不启动游戏的约定,当前任务明确要求时才做游戏验收。 + +旧 WPF、旧数据和默认入口保留。源码、候选、报告和截图仅在本机,没有推送、合并或正式发布。 diff --git a/docs/conduit/WINDOWS-UI-R16.md b/docs/conduit/WINDOWS-UI-R16.md new file mode 100644 index 00000000..a57ad19f --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R16.md @@ -0,0 +1,88 @@ +# Windows R16:首次账户、启动器设置、关于与 Java 发现 + +2026-11-07。最终产品源码 `7437132eef3c6af5e281d1d697ea7e1bd94bc1de`。本轮沿用 `features/windows-parity` 和 Avalonia/Core 共享实现,保留旧 WPF 与默认入口。没有推送、合并、正式发布、真实登录或启动 Minecraft。 + +## 优先交接:还有哪些功能没有接齐 + +已有后端可继续复用;以下部分仍需业务补全或平台适配,不能都按“只差 UI 按钮”处理。完整条目继续由 [todo.md](../../todo.md) 追踪。 + +| 优先级 / 页面 | 剩余功能 | 后续工作性质 | +| --- | --- | --- | +| 高 / 更新 | 下载后自动替换、多文件事务、失败回退、版本比较、签名验证;Windows 签名和 Mac 公证 | 旧更新器面向 Windows 单 EXE,需要新版跨平台更新链。当前只接检查、正文、明确身份的包下载与校验,不自动安装 | +| 高 / 个性化与杂项 | 背景视频、全局最高动画帧率 | 视频播放后端和 Avalonia 12 公共渲染接口适配;帧率控件仍不可用,没有用私有 API 假接 | +| 高 / 语言 | 新增动态说明/错误的完整七语翻译、其它页面长文案与格式覆盖 | 旧词典已经接入;新增文案有英文/中文回退。用户名、项目标题、路径和线上正文保持原内容 | +| 高 / 首页、服务器 | 服务器状态、快捷连接及首页自动入服的完整闭环 | 原生多人游戏仍保留;与已移除联机大厅无关。页面已有列表/选择不等于完整连接链 | +| 高 / 实例修改与导出 | 更换组件/加载器、启动脚本导出、完整依赖/冲突诊断、CF 导出及 SHOU ZIP 反向导入 | 继续复用可移植业务接口,补齐共享事务/身份/回滚及 UI;不能直接绑定旧 WPF/Windows 控件代码 | +| 中 / 游戏和管理设置 | 旧渲染器/兼容高级选项、单文件多段连接、完整下载源编辑交互 | 部分是旧平台后端能力,仍要移植或改造;已接的内存、隔离、代理、并发、限速不重做 | +| 中 / 资源与整合包 | 更多 loader 实际安装链、数据包选择具体世界、世界解压安装、资源目标/冲突/更新和失败恢复 | 安装器另存、列表可读和通用下载不代替完整安装业务。继续保留精确身份、哈希及取消回滚边界 | +| 中 / 皮肤、披风 | 启动器内在线上传皮肤、穿戴披风 | 当前头像、本地换衣/3D 预览可用;在线写操作还需接对应认证/服务接口 | +| 中 / 软件信息、日志、反馈 | 24 个运行包的许可元数据完整清单、更多日志检索/跳转;应用内提交反馈和附件 | 当前可读随包许可正文;反馈为公开问题只读列表、筛选及浏览器入口,没有内置发送或上传链 | +| 原生验收 | Mac 新增设置/Java 目录/音频/选择器/字体/窗口效果,Windows 完整 DPI、跨屏、键盘、无障碍及 SMB 中断 | 共享实现已构建;这些是待验项目,不能记为已通过。Mac 交叉构建不等于原生运行 | + +背景音乐的 Windows MCI / macOS `afplay` 适配和文件列表/播放/停止入口已实现,本轮未实际播放用户音频;Mac 原生与完整播放/结束状态仍待验。多图轮播、缺图回退、自选字体、标题图片、隐藏入口、启动图标/更新提示都有实现或回归,完整原生组合矩阵仍待补。本轮原生覆盖的是下表明确列出的代表路径。 + +## 本轮 UI/功能差异与结果 + +| 原差距 | 现在的行为 | 已验证范围 | +| --- | --- | --- | +| 首次进入空离线渠道不显示表单,要再点一次 | 空账户首次直接显示微软登录;切到空渠道一次即进入添加表单 | Windows 首帧与一次离线切换;已有账户迟到加载/用户明确渠道选择的 Desktop 回归 | +| Java 仅找到 3 个 | 保留配置、环境、注册表和 Minecraft runtime,增加有界便携/开发工具目录发现 | Windows 实际 6 个,与参考图的 25/22/21/17/11/JRE8 对齐;32 位真实探测 | +| 个性化大量灰控件 | 图片背景、配色/主题、系统字体、大小锁定、自定义标题/纯文本主页、入口隐藏等接到共享偏好 | 原生配色和锁定保存/重启;导入自建 PNG、文本标题、TXT 后实际显示;未知字段和备份回归 | +| 语言只保存选择,界面不变 | 旧七种语言字符串接入 Avalonia 绑定,显示语言与区域格式分别保存 | 原生英文导航/设置和 Français 日期;账户名不被翻译;部分新增词仍回退 | +| 杂项缺少可执行设置 | 日志行数、禁用硬件加速重启偏好、直连 DoH、设置导入导出接入 | 180 行和软件渲染偏好重启保留;原生导入 240 行先草稿后保存;DoH 解析/取消受控回归 | +| 软件信息只有简略文字 | 显示本软件身份、来源、版权及候选自带许可正文 | 原生读取并展开 LICENSE;完整运行包许可清单仍列待办 | +| 更新只是浏览器入口 | 公开发行列表、正文、平台包身份/清单、下载校验接入 | 原生真实正文;当前旧版 ZIP 不启用下载;受控有效包校验、复用和匿名请求通过 | +| 反馈只有链接 | 首次进入自动读取公开问题,支持本地标题/正文筛选和条目跳转 | Windows 两条实际问题,输入 MacOS 筛到一条;没有发送反馈 | +| 日志没有整批导出/历史回收 | 脱敏 ZIP、只读历史扫描、显式确认后回收及恢复接入共享 Core | Windows 另存 ZIP 并核验合成标记被脱敏;原生仅预览回收;Core 真实夹具回收/恢复/变更拒绝通过 | + +Java 搜索有目录关键字、深度/数量上限,不遍历无关用户文档/下载目录,不跟随链接。实际发现:Microsoft 25.0.1、Oracle 22.0.1、Microsoft 21.0.7、Oracle 17.0.7、Oracle 11.0.16.1、Oracle JRE 1.8.0_161(32 位)。只执行 Java 版本探测,没有申请管理员权限或改写 JDK。 + +窗口差异继续留在平台适配层;Mac 原生三钮与 Windows 右侧三钮保留。主页面共用实现,没有旧 WPF fallback。本轮只读取旧纯业务代码与 `v1.5.0` 语言词典字符串值,没有读取/复制 WPF 视图、样式、控件结构映射或采集脚本作为新 UI 的实现输入。 + +## 数据、安全和兼容边界 + +- 新行为为可选配置,旧偏好仍保留;界面偏好写前 `.bak`、原子替换并合并未知字段。设置导入先成为草稿,显式保存后应用。 +- 设置导出不包含账户缓存、凭据、Microsoft Client ID 覆盖、代理/aria2 密钥引用和 Java 证书选用收据;导入不会注入这些引用。原生只用自建隔离数据,无真实账户。 +- 日志导出只读本启动器日志目录,最多 100 个文本日志、每个最多尾部 1 MiB,并在 ZIP 中说明截断;脱敏 token/密码/Cookie/URL 凭据与查询、用户主目录。没有把日志 ZIP 或设置导出放入公开证据。 +- 历史日志回收限超过七天的受支持日志;保留当前/游戏日志、未知文件,预览后检查大小/哈希和路径,保存恢复收据。原生没有点击回收,实际文件操作由 Core 受控目录验证。 +- 公开发行、反馈和远程纯文本主页使用独立匿名 HTTP 客户端,保留代理设置,凭据不跨客户端或重定向泄漏;只允许 HTTPS 及限定的发布 CDN 跳转。 +- 新版包需要 `SHOU-Launcher--release.json`,格式 `SHOU-Desktop-Release-v1`,明确产品、runtime、源码、Avalonia、自包含与包名称/大小/SHA-256,并匹配 GitHub 工件摘要。发布入口现在生成此清单。缺少/不匹配清单的旧 WPF EXE/ZIP 只供阅读历史说明,不提供为新版更新包。 +- 发行清单不是签名或自动更新器;替换、回退、版本比较和两端签名/公证仍未完成。当前本地候选未上传到发行页。 +- 自定义主页目前显示 TXT/Markdown 纯文本,不运行旧 XAML、HTML 或脚本。自选图片/音频保留原文件;失效图片回退内置图。 +- 设置页离开和关闭会取消/等待本页任务;导出使用独立暂存,完成才发布,取消不选用半成品。外部网络限流显示可重试提示,切页清除本页状态,保存后清除导入草稿提示。 + +## 测试、首次失败与原生证据 + +| 检查 | 最终结果 | 记录 | +| --- | --- | --- | +| Core 全量 | 417 通过、16 显式跳过、0 失败;总计 433 | `r16-core-delivery`,干净 `7437132e` | +| Desktop 全量 | 168 全通过,无跳过 | `r16-desktop-rc3`;最终受测工作树随后提交为 `7437132e` | +| Windows 自包含候选 | Release / win-x64,干净源码通过 | `r16-launcher-settings-rc3` | +| macOS ARM64 交叉构建 | 同源码通过 | `r16-macos-delivery`;未在 Mac 运行,未生成新的已验 Mac 原生候选 | +| Windows 原生 | 200% DPI、976×636 / 880×560、浅/深色、中/英、保存/重启、原生另存/导入、发行和反馈读取 | 三个自有会话正常关闭 exit0,超时 false,未启动游戏 | + +16 项跳过:8 项 POSIX 链接/Windows reparse 差异、1 项 POSIX keytool 失败夹具、4 项 Mac argv/Keychain、2 项未启用的受控 Java 副本门禁、1 项未启用在线 Java 门禁。没有将跳过计为通过。C# 构建零警告/错误,Java 引导仍有三条既有 source/target 8 弃用提示。 + +首次失败全部保留,见 [运行与首次失败索引](../../artifacts/windows-main-20261105/reports/r16-test-and-first-failure-index.json): + +1. 首次 Build:跨程序集调用内部路径 API、尝试未公开的 Avalonia 渲染接口而编译失败;改为明确公共路径接口,移除不成立的帧率接线。 +2. Core 首/第二次在编译阶段分别暴露错误编辑到实例 Java 事件及不支持的列定义绑定;恢复对应事件、以共享适配代码更新侧栏宽度后通过。 +3. `r16-core-third`:414 通过、1 失败、16 跳过。既有 `DownloadRepairFinishesBeforeReportingReadyAndIsIdempotent` 一次失败;只增强断言诊断,没有放松断言或修改证书业务。单项诊断与后续多次全量通过,首次失败根因尚未确认。 +4. Desktop 首次 162 通过、4 失败:空账户夹具实际上有账户;区域格式的异步上下文;快照覆盖自定义标题;侧栏早期空绑定。修正夹具与产品逻辑后 168 全通过,严格绑定检查保留。 +5. 原生最初发行/反馈请求遇到 HTTP 403 限流;之后正常重试成功。保留首次错误截图,最终说明与反馈成功截图分别记录,没有把失败静默抹去。 + +本轮原生使用已授权备用截图/输入接口,按候选 EXE、PID、HWND、前台和控件边界校验目标。未操作用户的旧 WPF/R15 窗口。RC1 `46164`、RC2 `44844`、RC3 `5432` 均正常退出;关闭记录与截图在任务报告目录。只清理已成功任务可再生成的编译目录,保留失败输出、TRX、日志、dist 和原生证据,没有提高 35 GiB 预算或覆盖全局 SDK。 + +## 源码、候选与证据 + +- 本地产品提交:`69efe1a9`(主要接线)、`bb172ec7`(服务错误、区域日期)、`7437132e`(跨平台更新身份及最后 UI 修整)。 +- SDK `10.0.403`、Avalonia `12.1.5`;`win-x64` / `Release` / 自包含;旧 WPF 仍是默认入口。 +- [最终 Windows 候选](../../artifacts/windows-main-20261105/dist/r16-launcher-settings-rc3/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.g7437132e.zip):81471232 字节、268 项;EXE/CoreCLR/Skia 均为 AMD64。 +- 候选 SHA-256:`7ca7474c67a69b363433b6792176bbd63af1013cadc998ee4ab9b4a784e2e89f`。 +- [候选审计](../../artifacts/windows-main-20261105/reports/r16-candidate-audit.json) 核对源码干净、架构、哈希、发行清单和敏感/用户文件排除。 +- [逐页证据](../../artifacts/windows-main-20261105/public-evidence-r16/README.md):10 组、19 张已视觉核对截图;每张明确 RC1/RC2/最终 RC3 源码,早期截图不冒作最终候选。 +- [截图包](../../artifacts/windows-main-20261105/SHOU-UI-Evidence-R16-20261107.zip):5985949 字节;SHA-256 `748f78dca07ae66df010fd3bb582f861a2b33927e2996c2f3a60d44e02c06f12`。 + +[最终交付审计](../../artifacts/windows-main-20261105/reports/r16-final-delivery-audit.json):本轮公开文字/报告未命中授权构建环境的敏感值,三个自有候选 stderr 均为 0 字节,重任务互斥已释放。任务目录 33.876 / 35 GiB,磁盘剩余 276.729 GiB;包与逐页截图哈希复核通过。 + +源码、候选、截图与报告仅在本机。下一轮可先完善个性化剩余项/许可清单/动态翻译,再进入服务器和实例修改链;游戏验证继续等待当前任务的明确要求。 diff --git a/docs/conduit/WINDOWS-UI-R17.md b/docs/conduit/WINDOWS-UI-R17.md new file mode 100644 index 00000000..2d9395b4 --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R17.md @@ -0,0 +1,92 @@ +# R17:手动发行检查、服务器快捷连接与实例实测 + +本轮依据 2026-11-07 的产品范围调整续作 `features/windows-parity`,未合并 dev/main、推送、发布或切换默认入口。旧 WPF 与原工作区修改保留。Windows 与 macOS 继续共用页面和 Core。 + +## 本轮结果 + +| 项目 | 实现与验证范围 | +| --- | --- | +| 产品范围 | 保留既有翻译,不补完整七语;图片轮播继续保留,不做视频;不新增完整许可清单 UI,必要归属和许可文件保留 | +| 软件更新 | 删除启动检查偏好、启动检查调用、应用内更新包下载及更新清单生成。仅设置页手动检查、阅读发行说明和浏览器下载。旧配置的未知字段继续保留,不再触发检查 | +| 限流恢复 | GitHub API 403/429 后,仍在同一次手动操作内读取本仓库公开 Atom 订阅。限制大小、禁用 DTD/外部实体,拒绝越站链接;不携带账户或 API 凭据,不获取安装包。Windows 实际读回 v1.5.0 等发行说明并打开浏览器页面 | +| 快捷进服 | 首页服务器卡片与实例服务器行接入共享启动服务。现代版本使用版本元数据声明的 Quick Play 参数,旧版本使用独立 host/port 参数;拒绝冲突目标和无效地址。保留安全凭据引导,不恢复大厅/P2P | +| 实例修改 | 新增原版、Fabric、Quilt、Forge、NeoForge 选择和自动版本目录、显式确认、局部加载与取消。准备成功后才提交实例身份;保留外部来源和原版本 JSON。真实 XPlus 26.2 副本完成原版→Fabric 0.19.3,以及原生按钮再次应用 | +| SHOU 导出 | 新增 v2 精确文件清单、大小及 SHA-1/SHA-512 校验,支持反向导入独立新实例。限制路径、链接、数量和大小,排除启动器账户、运行环境及敏感文件名/执行脚本。历史 v1 缺少精确清单,仍明确拒绝导入 | +| 外部实例文件 | 修复服务器/存档服务仍强制要求位于启动器数据根的问题。使用当前登记实例的物理边界;保留选中目标、原子保存、修订冲突、链接/越界和运行中写保护。普通数据模式也接通,默认普通数据根的完整原生矩阵另待验 | +| 头像 | 实际过期凭据启动后,旧头像请求的 401 曾保留到重启。外观代次现包含凭据到期版本,自动重试并丢弃旧请求迟到结果;普通后台进度不重复抓取。两项回归及最终候选正常头像读取通过 | + +取消的需求是产品范围决定,不计作对应迁移功能已经实现。 + +## 真实实例与资源链 + +从用户指定的既有 XPlus 26.2 目录只复制版本 JSON/JAR、89 个 Mod JAR、9 个资源 ZIP、4 个光影 ZIP,共 104 文件、185,397,755 字节。不复制原账户、配置或存档。原目录只读;游戏和设置操作均在独立副本完成。 + +- 组件准备、导出和游戏退出后,原目录与副本的这 104 个原文件 SHA-256 均保持一致。新配置、日志、服务器文件和地图缓存仅写入副本。 +- SHOU ZIP 导回 102 个资源文件,MRpack 导回 102 个;逐文件哈希一致,均建立独立新实例。没有用已有目录覆盖导入。 +- 原生“开始导出”实际生成 SHOU v2,独立核验 102 个文件的大小、SHA-1/SHA-512 和精确清单一致。 +- 真实 Modrinth 查询→版本→安装计划→下载→安装:Fabric API、Fresh Animations、Complementary Reimagined 各安装成功;逐文件 SHA-512 一致,重复执行均新增 0。它们安装到独立资源验收实例,没有额外启动这些实例,也不把写盘成功当作游戏内效果通过。 +- 原生表单新增“社团 SMP / smp.shoumc.com”,显式保存至副本 servers.dat;另一启动器会话读回该条目,连接按钮可用。游戏自身服务器列表也显示该记录及社团 MOTD。 + +| 归档 | SHA-256 | +| --- | --- | +| 服务实测 SHOU v2 | `3859408bc78dcefcb54afcc474486608659fb7662fedac0a5ff2e680ff7d05aa` | +| 服务实测 MRpack | `92d5365f2ed9979dcba6373a13a633029b5d65ed3e96c4190f0d25970e0369ef` | +| 原生按钮生成 SHOU v2 | `8c09c5bd4a0027ae88d46ccbf5579decfeaa53267ffc5ffd1dc013358cafa8b8` | + +细项在 `artifacts/windows-main-20261105/reports/r17-real-prepare.json`、`r17-real-resources.json` 和 `r17-native-export-audit.json`。 + +## 本轮正版与 SMP 原生验收 + +本轮当前任务明确授权了 XPlus 26.2 → SMP。后续任务仍恢复默认禁止启动游戏的规则。 + +- 通过应用当前用户 DPAPI 路径读取本项目私有验收目录的两个微软账户。未扫描浏览器或其它账户存储,没有导出完整账户缓存。 +- 选中账户启动前已过期;启动中实际刷新成功,到期时间前进并持久化。不是离线角色、只读缓存或生成计划代替认证。 +- 使用真实 Windows Java 25、Fabric 0.19.3 启动 Minecraft 26.2。实际主菜单显示 269 个加载的 Mod 模块;目录内 Mod JAR 为 89 个,两种计数口径不同。 +- 从首页 SMP 卡片快捷连接,实际进入“社团 SMP”,观察到地下区块、HUD、模组界面和世界渲染。只观察及切换客户端菜单/相机,没有移动角色、操作方块或发送聊天/服务器命令。 +- 观察到 Java 命令行仅有安全引导入口,没有可见 token 参数。会话、账户标识和原始游戏日志不进入候选包、Git 或可分享报告。 +- 正常关闭启动器后游戏仍存活;重开启动器识别到原游戏,凭据和账户状态仍正常。正常断开 SMP、回到主菜单、点击 Quit Game,原生进程退出码 **0**,无本轮游戏残留,启动按钮恢复可用。 +- 世界 HUD 原始截图留在本机私有验收目录;可分享证据只复制不含账户身份的主菜单/服务器列表截图,并核对 SHA-256。私有路径和截图摘要在 `reports/r17-game-acceptance.json`。 + +游戏实测候选为 RC2 / `5d9b98ea`。其后 RC3 仅修改 Desktop 头像刷新代次和相关测试,Core、Java 引导与启动逻辑未变;没有为这项 UI 修正重复启动游戏。RC3 已原生打开、读取头像与账户并正常关闭。 + +## 源码、候选与回归 + +| 本地提交 | 内容 | +| --- | --- | +| `f3574b5b71e42468483c3a4073f1c64a63889ab6` | 产品范围、手动更新、快捷连接、组件修改、SHOU v2 往返与待办 | +| `5d9b98ea29c38e5d58e96731dd88f135f76e3c05` | 原生发现的外部实例路径缺口、普通数据模式及发行订阅备用通道 | +| `c92d8e1b255e2ef54ae018d3eb22ec8135d34481` | 凭据刷新后的头像重试和迟到结果防护;最终产品候选源码 | + +- Core:**439 通过 / 16 显式跳过 / 0 失败**。跳过包括 4 项 Mac 原生/Keychain、8 项待独立 Windows 原生夹具的链接/重解析、1 项 POSIX 失败子进程、1 项未启用的在线 Java、2 项未启用的受控 Java 副本门禁。逐项名称与原因保存在 `reports/r17-tests-summary.json`,不以跳过代替通过。 +- Desktop:**172 通过 / 0 跳过 / 0 失败**,包含手动检查无启动调用、快捷目标传递、组件确认/局部忙碌、普通模式文件动作、头像失败重试及迟到 401。 +- 最终干净源码 win-x64 自包含 Release 发布构建通过;SDK **10.0.403**,Avalonia **12.1.5**。 +- 同源码 osx-arm64 交叉构建通过;**Mac 原生运行未验,交叉构建不替代原生验收**。 +- Windows 原生窗口为 976×636 DIP、200% DPI;正常标题栏按钮保留。最终候选账户/头像正常,所有本轮启动器和游戏进程已正常退出。 + +最终候选: + +`artifacts/windows-main-20261105/dist/r17-final-rc3/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.gc92d8e1b.zip` + +- 81,484,098 字节,268 个 ZIP 条目。 +- SHA-256:`90abcabe3abf473cb5c53946262c89b03c85ea96e1f6704ebbc4c97f0caeec4f`。 +- EXE、coreclr、Skia、HarfBuzz 核对为 AMD64;未含 .env、账户/凭据缓存、日志、实例或测试输出。必要许可文件保留,不生成自动更新清单。 +- 构建身份、配置、哈希和条目审计:`reports/r17-candidate-audit.json`;原生逐页证据在 `evidence-r17-native`、`evidence-r17-rc2-native`,最终私有界面只记脱敏控件状态。 +- 可分享摘要包:[r17-delivery-evidence.zip](../../artifacts/windows-main-20261105/reports/r17-delivery-evidence.zip),413,643 字节、12 个条目;SHA-256 为 `b5986e6de5ef5c3aeeb54d7d31f9b2ba4eb653628324a337198b3cfa8101395c`。包内逐文件摘要重新核验通过,只收录白名单 JSON 和两张公开游戏截图,私有世界截图位置已替换为说明。 +- 磁盘沿用 35 GiB 任务上限,并计入私有验收目录新增数据;最后核对约 33.525 GiB、空闲约 274.904 GiB。只清理已成功且已关闭任务的生成编译目录,保留报告、TRX、首次失败、候选与证据。 + +## 首次失败及处理 + +1. 初次 Core 两项夹具失败:旧导出夹具缺少完整 Fabric/原版身份;新回滚夹具未建立预期故障目录。修正夹具后保留严格身份与回滚断言。另一次新取消/失败夹具期望 IOException,实际元数据服务按原设计抛 AggregateException,修正具体预期。 +2. 初次 Desktop 三项仍断言“快捷进服禁用”,已更新为实际参数传递;新测试后续修正了模拟进程结束状态、Ready 状态名和启动后返回首页的视图断言。所有失败 TRX 保留,未删除断言绕过功能验证。 +3. RC1 原生发现两项产品问题:匿名发行 API 限流,以及外部实例服务器页错误使用启动器数据根。已分别加入公开订阅备用通道及登记实例物理边界,在 RC2 真实复验通过。普通数据模式策略变化的两项旧断言同步改为验证“只允许当前登记目标”,未放宽链接/越界或运行中写保护。 +4. 正版过期缓存触发头像 401 未自动重试,已在 RC3 修复并加入两项竞态回归。原生输入辅助曾遇到前台切换和 UIA SelectionPattern 方法调用错误,均在输入前停止并纠正,没有改全局快捷键或桌面设置。 + +## 仍未接齐或未验 + +- CF 导出、非原版/Fabric 的完整导出往返;Quilt/Forge/NeoForge 修改接口已接,但真实安装/处理器/取消/运行矩阵未在本轮覆盖。OptiFine、Cleanroom、LabyMod、LiteLoader 的完整实例安装链仍未齐。 +- 数据包到指定存档、世界下载的完整安装链,以及资源更新、依赖冲突处理、启用顺序和游戏内效果矩阵;本轮只实测上述三类资源写盘链。 +- 完整实例概览/高级兼容选项、启动脚本导出、模组关系图及不支持模组处理、投影原理图解析/预览等仍见 todo.md,不能以目录可读视为完成。 +- 默认普通数据根、其它账户渠道、完整 DPI/跨屏/键盘/无障碍、网络与 SMB 中断、更多平台的写锁和清理恢复矩阵仍待验。 +- Mac 新增窗口、文件选择器、凭据、Java、服务器和游戏链路均需原生复验;完整替代门禁、签名/公证和正式发行流程尚未通过。 + +旧 WPF 与默认入口继续保留;本轮仅本地提交与候选,没有推送、PR、合并或发布。 diff --git a/docs/conduit/WINDOWS-UI-R18.md b/docs/conduit/WINDOWS-UI-R18.md new file mode 100644 index 00000000..4bf51e5b --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R18.md @@ -0,0 +1,114 @@ +# R18:CurseForge 导出与跨平台加载器文件安装 + +本轮继续 `features/windows-parity`,产品源码提交 `acad31a4`,最终中文导出标题修正 `da10e1aa`。没有推送、合并 dev/main、发布或更改 Windows 默认入口;原工作区与旧 WPF 保留。**用户明确禁止本轮启动游戏,所有安装、回导和进程验证均未启动 Minecraft。** + +## 仍未接齐的功能,供下一轮优先选择 + +| 范围 | 具体缺口 | +| --- | --- | +| 历史加载器与组合 | Forge 1.13 以前的旧式安装器;LiteLoader 1.12.2 等历史 Jenkins 地址可达性;其它历史版本;Forge+OptiFine 等组合选择/安装。当前同一实例一次选择一个加载器,不能把独立 OptiFine 安装算作组合已实现 | +| Java 与平台 | Mojang 没有本机 windows-x64/jre-legacy Java 8 工件,当前需在 Java 设置明确选择兼容 Java 8;本轮使用隔离的官方 Temurin JRE8 验证,没有把备用自动供给接入产品。历史 LWJGL ARM64 原生库没有可信切片时继续拒绝,不伪造兼容性;Mac 原生安装/回滚全部待验 | +| 第三方安装器边界 | 需要认证的自定义 HTTP 代理尚不支持;LabyMod/LiteLoader 安装器自身缺少上游文件哈希,仍仅采用官方 HTTPS、大小/JAR 结构与本地 SHA-256 收据,不能把客户端哈希冒充安装器官方哈希 | +| 实例修改与导出 | 新实例/包导入事务已补;已有实例切换组件的全部中后期失败时点、共享实例多会话写保护和 Mac 原生仍需补验。启动脚本导出、明确停止脱离 UI 的游戏会话仍未齐。CF/MRpack 对另外五种加载器没有声明可互认的标准身份,使用 SHOU 往返;第三方启动器互认没有实测 | +| 数据包与世界安装 | 数据包下载→选择具体存档→兼容/冲突预检→安装的完整页面链未齐;CF 世界检索/下载已接,但解压并安装到明确存档目标的完整链未齐 | +| 资源管理 | 模组完整更新/批量操作、依赖和冲突关系图、手工 JAR 来源身份;资源包排序/启用/更新;光影兼容/启用/预览;投影原理图解析/材质尺寸预览,以及资源详情与收藏的完整字段/异常状态仍有缺口 | +| 外观与通用设置 | 在线皮肤上传/披风穿戴仍未接为启动器内写操作;旧渲染器/兼容高级选项、全局动画帧率、单文件多段下载、完整来源编辑体验尚未齐 | +| 其它页面与验收 | 内置反馈提交/附件、更多日志检索跳转;Mac 原生、全部 DPI/跨屏/键盘/无障碍、网络/SMB 中断和更多旧配置往返矩阵。已有代表用例通过不代表整个页面和全部平台门禁完成 | + +七语补全、视频背景、自动更新和完整许可清单 UI 已按用户决定排除,不能算成已实现功能。中文、图片轮播、设置页手动检查版本与浏览器下载继续保留。更细的未完成项见仓库根 `todo.md` 的 P01–P65 与 G01–G08。 + +## 本轮接入与修正 + +| 项目 | 最终行为 | +| --- | --- | +| CF 导出 | 实例页新增 CF 导出按钮,与 MRpack 共用名称、版本、配置和本地资源的显式选择。CF 已登记文件须经官方项目/文件 ID、路径、大小和哈希核对后写入 `manifest.json` 引用;未知来源不猜 ID。本地资源只有明确选中后才进入 overrides | +| 格式身份 | CF/MRpack/SHOU 支持原版、Fabric、Quilt、Forge、NeoForge;完整保留带连字符的版本号。SHOU 另外支持 Cleanroom、Legacy Fabric、OptiFine、LabyMod、LiteLoader。历史 SHOU v1 缺精确清单仍拒绝 | +| 下载与导入 | 下载页使用完整准备后才登记的新实例事务;整合包预检/确认后,可显式勾选“同时下载并安装游戏文件”。默认仍只导入,不隐式启动游戏;失败和取消不注册半成品 | +| 共享目录 | 遵循全局隔离策略;只发布 `.shou`、旧资源映射和 LabyMod 必需附属文件,已有冲突不覆盖。登记失败恢复原安装标记并移除本轮未被外部修改的新增文件,保留用户内容 | +| 安装目录与页面 | Minecraft 配置页补八种附加载器,加 Fabric 共九个带图标横条,自动读取版本与局部加载;版本显示与内部精确身份分开。取消重试不再保留上次安装成功入口。共用导出区标题改为“客户端整合包(Modrinth / CurseForge)” | +| 官方安装处理器 | Forge 接受官方 `ForgeBootstrap` 新主类;Cleanroom 采用官方无界面 client CLI、独立目录、不写官方启动器配置、不自动配置 Java,核对 1.12.2/Java25/基础客户端身份。Legacy Fabric 使用自身官方 metadata/Maven,补旧 Maven native 形式,仍要求仓库校验值 | +| 厂商安装适配 | 受信 bootstrap JAR 内增加安装专用桥接,编译目标 Java8。OptiFine 只调用安装 API;LiteLoader 提取官方内嵌元数据和运行库;LabyMod 只调用数据/文件/ManifestWriter API,避开会关闭用户官方启动器的 `VanillaInstaller.install`。不执行厂商 GUI/main 或游戏入口 | +| 收据与复用 | 精确绑定 loader/game/version,复核安装器、配置、运行库和附属文件哈希;完整收据可离线复用,不先依赖 LabyMod 在线最新版。LabyMod 运行库按完整 commit 分开缓存,避免稳定/快照渠道互相覆盖 | + +共享业务在 Core,共用 Avalonia 页面接线;没有新增 WPF fallback 或硬编码 Windows 产品目录。Windows 路径只出现在本机验收控制脚本中。保留平台凭据、代理、数据根互斥、未知配置字段和写前备份。 + +## Windows 真实文件安装与往返 + +每条均完成必要文件下载/处理、运行库与客户端准备、重复安装收据复用、表中格式回导后再次完整准备;测试载荷为一份明确的公开 config 夹具。没有账户认证、生成游戏启动计划或启动 Minecraft。 + +| 加载器 | 实际版本 / Minecraft | 往返格式 | +| --- | --- | --- | +| Quilt | 0.30.2 / 1.21.1 | CF、MRpack、SHOU | +| Forge | 52.1.21 / 1.21.1 | CF、MRpack、SHOU | +| NeoForge | 21.1.265 / 1.21.1 | CF、MRpack、SHOU | +| Cleanroom | 0.7.14-alpha / 1.12.2,Java25 | SHOU | +| Legacy Fabric | 0.20.1 / 1.12.2,真实 Java8 x64 | SHOU | +| OptiFine | J1 / 1.21.1 | SHOU | +| LabyMod | production-49-c228c3a3 / 1.21.1 | SHOU | +| LiteLoader | 1.7.10_04 / 1.7.10,真实 Java8 x64 | SHOU | + +LabyMod 本次上游主 JAR 声明大小比实际少 13 字节,但官方 SHA-1 精确一致。只在匹配官方摘要且实际大小受 128 MiB 限制后,为该厂商生成的配置规范化大小;没有放宽 CF/MRpack 的精确大小/哈希校验。安装器和缓存输出另记 SHA-256。 + +官方 CF 引用实测:公开项目 306612、文件 8786256 导入→仅引用导出→独立回导,最终文件 SHA-512 一致,导出 ZIP 仅含 manifest,不重复嵌入已知 CF JAR。API 凭据只交给当前项目官方 API 主机,没有输出值或交给 CDN。 + +完整 XPlus 资源实测使用 R17 独立副本,仅打包 mods/resourcepacks/shaderpacks。回导 **717 个资源文件**,逐项 SHA-512 与大小一致;**718 个源文件**再次核对均不变,一份 `.gitignore` 属排除元数据。没有复制原用户账户、存档或完整缓存,也没有再启动该实例。 + +| 归档 | SHA-256 | +| --- | --- | +| 官方 CF 引用往返 | `98c0bc50cc3a3a468c0555440a6febc67bad8be5935a7484886929fca2c455b8` | +| XPlus 完整资源 CF 服务往返 | `bcf3d9b202ef18ab43dfa838e77b4d9b8b20b50e22265713b5565890aa265364` | +| 原生按钮实际生成的 717 文件 CF 包 | `5add7bb631304a9c4f66f1d3d699d0e226dac80e93f32b88333b9d3c732e7294` | + +## 取消、失败和安全边界 + +- 最终清洁源码执行原版、Fabric 及上述八种加载器的 **48 项**新安装/适用包格式取消与受控失败。中断发生在实际客户端文件安装请求,核对内存实例、磁盘配置 SHA-256 和实例目录集合不变,暂存目录为零。不是伪造成功,也没有把完整可复用共享缓存删掉。 +- 另一次真实 Forge JVM 处理器启动后取消:拥有的子进程被取消并等待清理,原 profile 字节不变,没有发布完成收据,暂存为零。 +- 受控 Java 安装桥接覆盖成功、目录/版本不匹配和 JVM 中途取消;夹具专门设有游戏 main 哨兵,确认未被调用。新实例失败/取消、坏客户端哈希、状态保存失败、共享目录冲突/原标记恢复均经真实文件系统测试。 +- CF/MRpack/SHOU 导出在临时归档已创建后取消,临时归档删除、源文件哈希不变;坏归档哈希和官方 CF 身份不匹配均拒绝。保留数量、大小、物理路径/链接、防覆盖、精确 SHA-1/SHA-512 与平台原生库守卫。 +- 有界子进程最长 8 分钟、处理暂存预算 2 GiB;清除安装子进程继承的凭据类环境变量,隔离 home/APPDATA/XDG,不关闭 TLS。外层控制器超时只清理自有进程树。Java8 工具放入本轮 tools,不改全局环境、不要求管理员权限。 + +48 项覆盖公共文件阶段,真实处理器中途取消覆盖 Forge,桥接中途取消另有受控夹具;不能据此宣称所有厂商处理器的每个晚期失败时点均原生验证。已有实例组件修改的完整晚期回滚仍列待办。 + +## 回归、原生窗口与首次失败 + +- **Core:474 通过 / 16 显式跳过 / 0 失败,总计 490。** 16 项仍为 4 项 Mac 原生/Keychain/argv、8 项待独立 Windows 原生夹具的链接/重解析、1 项 POSIX 失败子进程、1 项未启用在线 Java、2 项未启用受控 Java 修复副本。逐项名称/原因保存在 `r18-acceptance-summary.json`,不以跳过代替通过。 +- **Desktop:174 通过 / 0 跳过 / 0 失败。** 覆盖九加载器自动读取/图标横条、不隐式选择、事务路由、取消后清除旧成功入口,以及 CF 按钮的共享服务与显式选项。最终文案提交后完整 Desktop 再跑仍全通过;Core 实现未再变化。 +- Windows 原生 RC1:1952×1272 像素正常窗口,空账户首次微软登录表单,社团在线数读取为 1;Minecraft 自动目录、局部加载和带图标附加载器横条可见;真实鼠标选择本地资源并点击 CF 导出,717 个文件另行核验;鼠标关闭 exit0。 +- 最终 RC2:重新打开同一隔离数据目录,进入实例导出页确认两格式共用标题、按钮和布局;正常窗口关闭消息结束 exit0。该轮鼠标关闭尝试被 Windows 置前台限制拦住,未继续盲点,正常关闭结果有应用自身 `normal_close` 记录。 +- Computer Use 两次截图超时;按既有授权使用本机备用截图和输入,操作前检查目标进程/窗口/前台与锁屏,只导航和导出,不触碰认证或游戏。截图仅捕获本轮零账户的应用窗口。不是完整 DPI/最小窗口/Mac 原生矩阵。 + +首次失败均保留在本机 reports/controller/TRX,不覆盖历史记录: + +| 首次失败 | 处理与复验 | +| --- | --- | +| Core 旧测试仍断言 Forge MRpack 不支持 | 改为真实未知 loader 的拒绝用例;保留身份校验,最终 474/16 | +| 新共享事务 5 项夹具失败 | 受控资源 handler 漏掉已配置镜像路径,补精确哈希路径覆盖,未删除断言;共享目录成功、冲突与保存失败回滚通过 | +| 收据测试编译两次失败 | 内部可见性及漏引用,仅修测试夹具;最终全部通过 | +| Desktop 旧计数 4 / 实际 9 | 更新为九种加载器的精确名称、图标、横条宽度断言;最终 174/0 | +| Forge 新主类、Cleanroom CLI 不同 | 核对正式安装器元数据/帮助,增加精确官方主类和 Cleanroom 专用参数后真实安装通过 | +| Legacy Fabric 缺 Java8、旧 Maven native 没 classifiers | 明确选择隔离真实 Java8,增加 Maven native 解析但不跳过仓库校验,实际完整安装通过 | +| OptiFine 安装 API 提前 exit0、Laby 大小/配置形状与预期不同 | 以唯一且严格验证的实际生成 profile 为准;修正精确厂商形状,Laby 只在匹配官方摘要后规范化大小,三种厂商完整安装通过 | +| XPlus 验收最初只数顶层、路径分隔符未规范化,后又包含 .gitignore | 修正验收范围/重用已接入实例,明确单项元数据排除;最终 717 回导与 718 源文件哈希核对通过,没有放宽产品归档过滤 | + +## 源码与候选 + +| 提交 | 内容 | +| --- | --- | +| `acad31a477263546d0d052f28c8a914b352ab18c` | CF 导出、跨格式身份、完整加载器准备、事务发布、桥接及回归 | +| `da10e1aaae1d2bf40d61aec217b94a5572503735` | 共用导出区中文标题和准确支持范围;最终候选源码 | + +最终候选为 **win-x64 / 自包含 / Release**,SDK **10.0.403**、Avalonia **12.1.5**,清洁源码构建: + +`artifacts/windows-main-20261105/dist/r18-final-rc2/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.gda10e1aa.zip` + +- 大小 **81,520,254 字节**,268 项;SHA-256 **`81f6a86f0659d88802f6495eeee5835081352619350ed8e96c19c2c3c13da366`**。 +- apphost、CoreCLR、SkiaSharp、HarfBuzz 的 PE 架构均为 AMD64 `0x8664`;必要许可与归属保留。 +- 候选不包含 `.env`、账户/凭据目录、实例/缓存/日志、验收夹具或自动更新清单。构建入口验证 Microsoft/CF 项目配置存在,仅输出布尔结果。没有导出用户 token、Cookie 或完整账户缓存。 +- 同源码 `r18-mac-final` 的 **osx-arm64 交叉构建通过,0 错误**;没有可用 Mac,本轮没有 Mac 原生候选运行或原生安装验证,不能算两端替代门禁通过。 +- 本轮按 35 GiB 任务预算串行重任务;中途保留首次失败、TRX、候选和报告,仅清理已关闭控制器登记的生成 bin/obj。最终任务占用 26.725 GiB、私有验收目录正增长 1.945 GiB,共 **28.670 GiB**,剩余磁盘约 280.375 GiB;本轮候选与 Java 进程均为 0。记录在 `r18-budget-final.json`、`r18-process-final.json`。 + +复现入口使用 `scripts/dev/Invoke-Dev.ps1` 包装 Core/Desktop 的 `Validate-Desktop.ps1` 和 `Publish-Desktop.ps1`;不构建整个旧解决方案加 RID。Windows 本地验收使用 `artifacts/windows-main-20261105/control/r18-real/` 的隔离 harness,`StartAsync` 明确拒绝游戏,仅允许受限无界面安装/探测。最终官方 CF、717 文件往返和 48 项回滚在清洁 `acad31a4` 上复验;RC2 仅修改上述两条文案。 + +主要证据位于 `artifacts/windows-main-20261105/reports/`:`r18-acceptance-summary.json`、`r18-real-cf-reference-final.json`、`r18-real-payload-final3.json`、`r18-real-rollback-all-final.json`、`r18-real-processor-cancel-suite.json`、`r18-native-export-audit.json`、`r18-candidate-rc2-audit.json`、两轮 native/exit 记录和 `r18-rc2-export.png`。完整首次失败保存在同目录各 r18 run 日志,以及对应 build reports 的 TRX。 + +非敏感证据另存为 `artifacts/windows-main-20261105/dist/r18-evidence/SHOU-R18-Windows-evidence.zip`:159 份报告/日志/代表截图/TRX/控制源码,加 SHA-256 清单和说明;不包含 `.env`、账户缓存、JDK、游戏/模组载荷或原始游戏日志。大小 **1,044,125 字节**,SHA-256 **`b9553686f355896c61c7291fff2b8ed9964232d28f743355f3883400efad1e89`**;逐项解包哈希复核通过。 diff --git a/docs/conduit/WINDOWS-UI-R19.md b/docs/conduit/WINDOWS-UI-R19.md new file mode 100644 index 00000000..80a9a0b8 --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R19.md @@ -0,0 +1,85 @@ +# R19:数据包与世界存档安装(2026-11-08) + +本轮把数据包和世界下载接成可执行的存档安装流程。业务继续在 Core,共用 Avalonia 页面;没有启动 Minecraft、认证账户、切换默认入口、推送或发布。原 WPF 和原工作区修改保留。 + +## 仍未接齐的功能,优先看这里 + +1. **存档数据包管理**:更新、删除、排序、更多版本的启停写入和游戏内重载仍未齐(P64)。本轮只安装文件,不改写现有 `level.dat` 的启停状态;既有存档编辑仍限已经验证的版本。文件在磁盘上不等于游戏内已经生效。 +2. **特殊数据包/世界**:实验特性声明、需要额外模组/内建数据包的世界、不可核实版本的旧存档、多个世界混装 ZIP、包装目录之外混入文件的 ZIP 目前明确拒绝;不猜版本、忽略依赖或自动升级/降级世界。更多真实组合与用户可解释的处理体验继续补充。 +3. **实例与资源管理**:已有实例改组件的完整中后期回滚、更多历史加载器/组合、Java8 自动供给、模组/资源包更新与批量操作、手工文件身份、依赖图、启动脚本导出和多会话明确停止入口仍有缺口。已验证范围见 R17/R18,不能把本轮下载安装算成这些页面全部完成。 +4. **其它外壳功能**:个性化完整组合、全局帧率、反馈内置提交/附件、更多日志检索、截图/投影管理和服务器丰富信息仍按 todo 追踪。七语补全、自动更新、视频背景、完整许可清单 UI 已由用户取消,不再列为待开发。 +5. **原生验收**:Mac 当前不可用,仍欠本轮 Mac 原生安装/回滚、ARM64 历史库、完整 DPI/跨屏/键盘/无障碍和 SMB/磁盘故障矩阵。跨编译通过不等于双端替代门禁通过。游戏验证仍需当前任务的明确授权,本轮未执行。 + +## 本轮改动 + +| 范围 | 行为 | +| --- | --- | +| 数据包详情 | 明确选择登记实例与已有存档;文件旁“预检安装”下载并核验,展示目标和文件数,单独“确认安装”才写入。改变目标或资源项目使旧确认失效 | +| 世界详情 | 明确选择实例及新的存档文件夹,不覆盖同名世界;唯一 Java 世界可在 ZIP 根目录或包装目录内 | +| 兼容性 | 复用官方大小/SHA-1 校验与版本解析,从基础客户端 `version.json` 取得实际 DataVersion、数据包格式及小版本;对照目标 NBT 与发布资源标签,不推断跨版本兼容 | +| 数据包依赖 | 必需依赖按精确版本或项目解析,限制层数/数量/总量;双用途 Modrinth 项目必须选择 datapack 分支。详情查询不误用 Forge 等 Mod loader,JAR 不提供存档预检按钮 | +| 冲突 | 检查已有项目/文件版本、大小写与 Unicode 重名、格式范围、实际生效 overlay、资源重定义及标签合并;可合并标签保留游戏语义,不覆盖其它文件。内带数据包的世界也先检查 | +| 回滚 | 数据包暂存完成后再发布文件、最后提交清单;晚期失败只回收本次新增且哈希仍匹配的文件及空目录。世界在自有暂存完整核验后原子发布,取消/失败不登记半成品 | +| 目标复核 | 确认时重查实例身份、运行状态、物理目录/文件身份、存档与既有包指纹,以及缓存档案 SHA-256;预检最长 30 分钟、最多保留 8 项 | +| 页面状态 | 正常操作不添加底部 loading 长条,复用已有镐子操作/取消界面和任务传输状态。修复跨项目残留成功提示,失败不显示成功或留下可用的旧确认 | + +新增接口为 `IWorldContentInstallationService`,实现集中在 `LauncherService.WorldContent.cs` 和 `Content/WorldContentArchive.cs`;复用 `ContentInstallPlanner`、`ContentInstallFiles`、`PackArchiveReader`、`InstanceWorldStore`、`VerifiedDownloader` 与原子发布。平台差异继续经已有路径/文件身份适配层处理,没有 Windows 产品路径硬编码或 WPF fallback。 + +存档选项不静默选择第一个世界,也不更换首页的当前实例。世界安装只创建新目录;数据包只装入明确选中的世界,不写原实例 JSON、未知配置字段或账户数据。下载缓存沿用受控、可复用的缓存/续传机制;“暂存为零”指目标存档的安装暂存,不宣称所有缓存续传片段都会删除。 + +## 实际文件与原生窗口证据 + +**数据包**:真实 Modrinth 项目 `OhduvhIc`,版本 `8cEJouzY`,文件 `Veinminer-1.2.4.zip`,目标为 Java 1.21.1 的自建存档“明确目标 中文 空格”。下载/预检时目标无变化,确认新增 1 个文件,`level.dat` 字节不变;重复安装新增 0。ZIP SHA-1 为 `e6ebe9ce76023bdb79e55d20a40336db93855d0b`。 + +**世界**:真实 CurseForge 项目 `563455`、文件 `3590460`,ZIP 内版本 Java 1.18.1。先安装到“下载世界 中文”,43 个归档文件逐项核对 SHA-256,NBT 不变、旧 `session.lock` 不导入、另存公开来源收据。搜索中有三份其它项目文件的标签与 ZIP 内实际版本不一致,验收拒绝它们,没有放宽身份检查。 + +**Windows 原生 RC2**:200% DPI、1952×1272 像素窗口,零账户隔离目录。使用两条公开资源 ID 的本地收藏夹具进入详情,真实 API 读取文件;实际鼠标选择实例/中文存档、预检、取消预检、再次确认,数据包重复复用新增 0。世界页面另行预检/确认安装到 `r19-world`,新增 43 个文件。文件夹输入框的编辑状态留图,完整绑定由 Desktop 控件测试覆盖。 + +**Windows 原生 RC3**:同一隔离数据目录重启可读;已有 `r19-world` 目标被明确拒绝。转到数据包详情时项目状态清空,修复前的跨项目残留未再出现;实际鼠标关闭 exit0。RC2 后期置前台受限,改用精确核对自有进程后的正常关闭消息,也为 exit0。两轮均无外层超时。 + +关闭并重启后,再核对两个世界各 43 个原始文件、数据包 SHA-1、外来冲突文件均保持,目标安装暂存为 0。原生截图仅含本轮零账户、自建目标及公开资源。Computer Use 截图两次超时后按既有授权使用备用截图/原生输入,曾遇前台限制并停止输入,恢复后继续;没有操作登录或安全授权界面。 + +**真实中断**:在真实 CF 世界安装的 `.shou-world-install-*` 目录已创建后,以文件系统通知触发取消,结果为 TaskCanceledException,暂存清理且无目标;另一次在中途创建同名外来目录,结果 IOException,外来 `external.txt` 保留,未落入 `level.dat`。均非仅在入口预取消。受控 Core 另覆盖数据包文件已发布后的失败/取消及世界后续条目 CRC 错误回滚。 + +这些验收只读/写安装文件,不调用游戏入口。服务验收的 `IProcessRunner` 对 Run/Start 均明确拒绝,三阶段 `gameProcessCalls` 全部为 0。游戏内启用、资源效果或世界渲染没有验证。 + +## 回归与首次失败 + +- **Core:515 通过 / 16 显式跳过 / 0 失败,总计 531**。比 R18 增加 41 项,覆盖实际 NBT/ZIP 文件、现代/旧格式、依赖、路径/资源/文件冲突、缓存或目标变化、取消及晚期回滚。最后一次 Core 变更对应 `d3926923`;后续仅改页面状态及其 Desktop 断言。 +- **Desktop:180 通过 / 0 跳过 / 0 失败**。实际 Avalonia 控件覆盖实例/世界选择、新文件夹名、独立确认、目标变更、预检取消、失败反馈、项目切换、datapack 查询分支与 ZIP/JAR 按钮守卫;最后一次状态修复后完整复跑通过。 +- 16 项跳过沿用显式平台/独立门禁:4 项 Mac 原生/Keychain/argv、8 项 Windows 独立链接/重解析夹具、1 项 POSIX 失败子进程、1 项未启用在线 Java、2 项未启用受控 Java 修复副本。逐项名称及原因存于 `r19-acceptance-summary.json`,没有把跳过记为通过。 + +| 首次发现 | 处理与证据 | +| --- | --- | +| Core 初跑 27 失败,随后 2 失败 | 新夹具没有覆盖已配置的镜像路径;CRC 夹具误改文件名而非 CRC,失败注入也漏了镜像。补精确路径与真实 CRC/中断注入,保留断言和首次 TRX,最终 515/16 | +| 实际 Modrinth 数据包身份与预想不同 | v2 双用途项目返回 mod,所选发行有 datapack loader;仅在明确存档作用域内核实并适配,不全局重分类或安装 Mod JAR | +| 世界内合法 token 游戏资源被过严名称检查误拦 | 改为根级明确账户/凭据名和程序扩展名限制,保留路径/链接/数量/体积守卫,增加真实目录数据包资源回归 | +| 原生跨项目提示残留 | 项目改变时清除对应状态;Desktop 跨项目成功提示断言及 RC3 原生冲突后切页复验通过 | +| 本机验收 harness 首次编译 CS4007;XAML Watermark 过时警告 | 前者为 await 跨 Span 的控制程序写法,改为先 await 字节;后者改用 PlaceholderText,最终构建 0 警告/0 错误 | + +首次报告、控制器记录、日志和 TRX 均保留;只清理已结束任务中经过绝对路径/重解析检查的生成 bin/obj,不删除原用户内容、旧工程、候选或历史报告。 + +## 源码与候选 + +| 本地提交 | 内容 | +| --- | --- | +| `c8bf48c01039e65de617af56862acd6c90163188` | 共用存档下载/预检/事务安装、UI 与回归;真实三阶段服务验收版本 | +| `d39269236e637b377dbfe2108be258313f4aa687` | 合法世界游戏资源名称兼容;Core 最终验证及 RC2 原生版本 | +| `2c19ed18b683eee41dd92f0553bd53a64564a0a7` | 跨项目反馈清理;最终候选及 macOS 交叉构建版本 | + +最终候选:**win-x64 / 自包含 / Release**,SDK **10.0.403**、Avalonia **12.1.5**,干净源码构建。 + +`artifacts/windows-main-20261105/dist/r19-final-rc3/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.g2c19ed18.zip` + +- 大小 **81,554,307 字节**,268 项;SHA-256 **`e1bc945240ed8439780720faa5d06051bc98ffcd4e6a8d145328a8b6df7bcacb`**。 +- apphost、CoreCLR、SkiaSharp、HarfBuzz PE 架构均为 AMD64 `0x8664`。必要许可保留;无 `.env`、账户/凭据目录、实例/缓存/日志、测试数据或自动更新清单。 +- Microsoft/CF 项目配置经现有构建入口验证,仅记录布尔结果;没有输出值、凭据缓存或把 API 凭据交给 CDN。 +- `r19-mac-final2` 同源码 **osx-arm64 交叉构建通过,0 警告/0 错误**;没有 Mac 原生运行、原生候选安装或系统文件操作验收,不宣称 Mac 新能力已实测。 + +使用已有 `scripts/dev/Invoke-Dev.ps1`、`Validate-Desktop.ps1` 与 `Publish-Desktop.ps1`,重任务串行,控制器超时 20 分钟,真实网络服务验收自身最长 12 分钟;不构建整个旧解决方案加 RID。35 GiB 任务与私有缓存增长预算、最终进程/磁盘结果分别保存在 `r19-budget-final.json` 和 `r19-process-final.json`。 + +证据打包前测量任务目录 30.317 GiB、私有验收缓存正增长 2.000 GiB,合计 **32.317 GiB / 35 GiB**,磁盘剩余 272.514 GiB;另预留 0.1 GiB 覆盖下述 2.4 MB 证据包。两个候选均已正常退出;最终自有进程、Java 进程和重任务 owner 均为 0。已精确核对并清理一个本轮隔离 SDK 的空闲 MSBuild worker,没有终止其它应用或游戏。 + +主要本机证据位于 `artifacts/windows-main-20261105/reports/`:`r19-acceptance-summary.json`、三份 `r19-real-*-final.json`、`r19-candidate-rc3-audit.json`、两轮 native/exit 记录、`r19-ui-datapack-preflight-ready.png`、`r19-ui-world-confirmed.png`、`r19-rc3-world-existing-target.png` 和 `r19-rc3-datapack-ready.png`。报告优先描述可观察行为与文件核验,不包含完整配置或账户数据。 + +非敏感证据包为 `artifacts/windows-main-20261105/dist/r19-evidence/SHOU-R19-Windows-evidence.zip`:159 份报告/代表截图/TRX/控制源码,以及逐文件 SHA-256 清单和说明,已逐项解包核验。大小 **2,419,034 字节**,SHA-256 **`ea17b482ac9873614959ebe1717cce0524337beb2b796fd0be7501096f5afcda`**。不含游戏/Java/模组载荷、原用户日志、账户缓存或 `.env`。 diff --git a/docs/conduit/WINDOWS-UI-R20.md b/docs/conduit/WINDOWS-UI-R20.md new file mode 100644 index 00000000..a39f43df --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R20.md @@ -0,0 +1,57 @@ +# R20:旧实例接入、图标与实例列表(2026-11-08) + +## 尚未接齐的功能 + +- **旧实例完整兼容**:本轮覆盖本机 33 个版本的公开身份、继承链、原图标及安全展示偏好;未宣称所有旧版全局/实例 Java、隔离覆盖、渲染器、任意 JVM 参数、前置命令与私有认证字段都已迁移。现有新侧 Java/内存/启动选项继续保留。特殊历史结构、原目录更新后重新接入/映射维护、旧→新→旧的完整高级设置仍须逐项核验。 +- **实例管理**:明确停止入口、受验证的脱离会话控制、启动脚本导出尚未接齐;组件修改的更多加载器及格式、第三方启动器导出互认仍待完善。本轮不调用游戏,不把列表接入当作游戏启动成功。 +- **资源管理**:模组批量更新/来源识别、完整冲突依赖图;资源包/光影启用和排序;存档数据包的更新/删除/排序;原理图格式及预览等,仍按 todo.md 的 P55–P65 跟进。 +- **其它页面**:在线皮肤上传/披风穿戴、收藏页完整缩略图/失效资源、反馈提交、下载来源编辑与完整失败回退等仍有缺口。完整七语、视频背景、自动更新及新增许可清单已取消,不重新列为待办。 +- **平台验收**:macOS 原生、完整 DPI/跨屏/高对比度/屏幕阅读器、SMB 断连和所有键盘组合仍未完成。交叉构建不能代替 Mac 原生。本轮窗口检查使用零账户独立数据目录,禁止启动 Minecraft。 + +## 本轮变化与兼容边界 + +共享 Core 增加整目录预检和一次事务接入:支持所选 `.minecraft`、`versions` 或单实例目录;每个版本独立核对元数据与继承链,损坏项列出原因,不拖垮其它有效实例。确认前重新读取,批量写入失败/取消不登记一半;已登记版本路径去重,原目录不搬动、不覆盖、不删除。 + +使用公开 Maven 坐标及现代 Forge/NeoForge 的明确 FML 身份字段识别加载器,不从整合包名称或图标猜测。继承子档使用合并后的库;本地身份同时绑定版本目录与 JSON 哈希,防止相同 JSON 的不同目录折叠。未知 FML 身份拒绝为问题项,不伪装成原版。 + +仅白名单读取 `PCL/Setup.ini` 的 Logo、IsStar、CustomInfo、DisplayType、VersionLaunchCount 以及 `PCL/Logo.png`。旧内置图片名映射到独立图片资源,任意 URI/图片路径不跟随。用户图标优先,APNG 只显示完整默认画布的静态帧;CRC/大小/解压预算保留,账户皮肤/披风仍拒绝动画。源 INI/PNG 保持原样。 + +实例列表、概览和首页长名称统一单行省略,完整名字在 tooltip 和可访问名称中保留。左侧补齐独立 Lucide 操作图标,目录路径不再换行;实际 Minecraft 版本和加载器标签替代内部 local 身份。目录、分类、收藏和搜索可组合过滤,不暗中更换持久化选中的实例;收藏优先排序,旧隐藏分类须显式选择。过滤条件仅保留当前会话,目录列表从已保存的来源恢复。 + +选择本机 PNG/JPEG/WebP/BMP 后可方形裁剪,提供拖动、缩放、横纵位置、90°旋转和复位;最终生成 256×256 PNG,去除原图元数据。自定义图标以内容 SHA-256 存于 `LocalDataDirectory/instance-icons/`,与程序位置和平台无关,macOS 应用包内不写入。配置写前备份、未知字段合并;只在原子提交成功后选用,取消/失败清除本次新增图标和暂存,原图及旧图标保持,可切换回自动或旧内置图标。新图标不会写回旧 WPF 的 PCL/Logo.png。 + +额外补齐 LiteLoader `.litemod` 的本地导入和启停;其它加载器拒绝不兼容 `.litemod`,OptiFine/LabyMod 不被误当成支持普通模组目录。此项不代表完整模组来源、更新和依赖管理完成。 + +## 实测 + +只读核对用户指定的 `E:\Minecraft\.minecraft`:33 个版本全部预检并接入,5 个原版、13 个 Fabric、9 个 Forge、1 个 NeoForge、5 个 OptiFine;本机未覆盖的其它加载器由受控坐标/继承回归覆盖,不算真实运行。两个 `PCL/Logo.png` 分别为 Reflection Modpack 静态 PNG 和 Simply Optimized APNG,均能显示;其余实例使用原先保存的内置图标或实际加载器图标。 + +服务验收先改新侧显示名、分类、收藏及图标,再销毁并重建服务读取;自动/自定义图标切回、未知字段和选中状态均保留。图标已经发布、配置仍待提交时触发真实文件系统取消,配置和旧图标集合不变;另一轮持有 Windows 配置文件只读句柄造成提交失败,同样回滚。批量接入另有预取消、源 JSON 变化、重复候选与保存失败测试。最后核对 68 个原 JSON/INI/PNG 文件哈希不变,图标暂存为 0;服务的 Run/Start 均由拒绝实现接管,调用数为 0。 + +Windows 原生为 200% DPI、976×636 DIP(1952×1272 像素)、零账户独立目录。实际确认侧栏图标、长名称单行省略、旧图标、NeoForge 身份、目录/收藏/搜索;从原生文件选择器打开有中文及空格的受控图片,操作缩放、位置、旋转、取消,再次打开裁剪并保存。取消保留原 SHA-256;保存后为新的 256×256 PNG,再由实际改名弹窗保存长名称。新配置的备份存在,源图片哈希不变。 + +关闭并重新打开最终 RC2,列表实际显示新名称、红色受控裁剪图标及原 Fabric 标签;33 个实例、分类、收藏、选中实例、未知字段与图片哈希再次核对。RC1、RC2、RC2 重启三次正常关闭均为 exit0、无外层超时;无候选进程残留。重启阶段有受其它窗口遮挡的补充截图,已剔除并重取列表截图;没有据此声称最小尺寸、深色或完整键盘矩阵通过。Computer Use 截图两次超时后按既有明确授权使用原生备用接口,并增加截图前后前台一致性检查;没有操作认证/系统授权界面。 + +代表证据:`reports/r20-rc2-selection.png`、`r20-ui-simply.png`、`r20-ui-reflection.png`、`r20-rc2-neoforge.png`、`r20-rc2-crop-initial.png`、`r20-rc2-crop-saved.png`、`r20-restart-confirmed.png`。SO/Reflection 原生截图来自 RC1,其公开旧图标读取在最终服务矩阵中再验;最终新图标及重启截图来自 RC2。详见 `r20-native-third.json`、`r20-ui-restart-audit.json`、`r20-final-audit.json`。 + +## 回归与首次失败 + +Core 最终 543 通过 / 16 显式跳过 / 0 失败,总计 559;相对 R19 新增 28 项。跳过原因为 8 项原生链接/POSIX 与 Windows reparse 专项、4 项 macOS 原生(Keychain 3、argv 1)、2 项显式 Java 修复副本门禁未启用、1 项受控 POSIX 失败子进程、1 项 OnlineJava 未启用。未通过启用在线/Java/游戏测试来消除跳过。 + +Desktop 最终 **188 通过 / 0 跳过 / 0 失败**,相对 R19 新增 8 项。含真实控件长名/图标布局、目录/分类/收藏/隐藏状态、显式批量确认、失败保留预览及裁剪取消/失败。最终 Win-x64 自包含 Release 和 osx-arm64 Release 交叉构建均为 0 警告、0 错误;后者未运行,Mac 原生待验。 + +首次编译失败分别为跨程序集内部 API/构造器及 ListBox 的无效属性;已改为图标专用像素模型、公开路径守卫和 ListBoxItem 样式。首次 Core 的两项失败是 Windows 配置目标被目录占用返回 UnauthorizedAccessException,拒绝帮助器漏接;补接异常后仍核对原配置与图标不变。首次 Desktop 的旧导航测试捕捉到瞬时空 DataContext 绑定;改为控件从视图上下文取得图标服务,未压掉绑定错误。 + +首次真实旧目录检查暴露现代 FML 被误分类及 APNG 图标被拒绝,已补明确身份读取和安全静态帧。RC1 原生窗口再发现图标错误存放程序目录,随后修至用户数据目录并加入更换程序位置的回归;RC1 已被 RC2 取代。首轮失败日志、TRX 和报告均保留。 + +## 源码、候选与安全范围 + +本轮继续 `features/windows-parity` 迁移分支,未合并 dev/main。产品提交 `81cebfab` 和 `7dea7ff2`。原工作树的 AGENTS.md 和参考资料不动;未推送、发布、改默认入口或删除旧 WPF。 + +SDK 10.0.403、Avalonia 12.1.5、既有 SkiaSharp 3.119.4;不新增字体或包。旧实现只作为截图/可观察行为、独立图片及所选公开实例元数据参考;未读取旧视图、样式、映射 JSON 或采集脚本作为实现输入。 + +最终候选:`artifacts/windows-main-20261105/dist/r20-final-rc2/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.g7dea7ff2.zip`,81,589,880 字节,源码 `7dea7ff28eabaec1619018475f5d180ca07d4d79`,构建时工作区干净。SHA-256:`6a8ef46632e852a0097e6fcd82ae20ae59cf776ea06ab9491b3e637117af0a6f`。主 EXE、CoreCLR、SkiaSharp、HarfBuzzSharp 均为 AMD64;268 个包内文件与解包后文件逐一 SHA-256 相符,无新增文件,无自动更新清单和账户/日志/.env 等敏感文件。 + +证据归档:`artifacts/windows-main-20261105/dist/r20-evidence/SHOU-R20-Windows-evidence.zip`,附 SHA-256 和逐项清单;3,016,478 字节、164 个验证条目,证据 ZIP SHA-256 为 `53d80e3e4c09b796a3cb01e91e2b0c25f82e9099ac6419438b78a948032ae95a`。只包括本轮报告、首轮失败、TRX、受控验证源码、公开实例元数据摘要及精选零账户窗口;不包含 .env、凭据、完整配置/账户缓存、原用户日志、游戏/Java/模组文件或用户图片。 + +磁盘预算:最终打包前任务目录 30.975 GiB,加隔离私有验收目录正增长 2.000 GiB,共 32.975 GiB;低于 35 GiB,剩余磁盘 272.313 GiB。仅清理已登记且完成的生成 bin/obj/publish-desktop,候选、原数据、失败报告与 TRX 保留;记录见 `r20-generated-prune-*.json`。最后清理本任务一个空闲 MSBuild 节点,重任务锁和候选进程均为 0。 diff --git a/docs/conduit/WINDOWS-UI-R21.md b/docs/conduit/WINDOWS-UI-R21.md new file mode 100644 index 00000000..2d9dab4d --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R21.md @@ -0,0 +1,85 @@ +# R21:实例高级设置、隔离覆盖与脚本(2026-11-08) + +## 尚未接齐的功能 + +- **旧实例完整兼容**:Windows Mesa 渲染器、JLW/LegacyFix/LWJGL 专属补丁、旧 Java 偏好序列化及内存滑块刻度、全部旧标题占位符与实例单独代理开关仍未完成。当前保留 Java 版本/架构、哈希、TLS 与保护引导检查;不把拒绝跳过检查或保留默认渲染器算作旧业务全部迁移。特殊历史结构、源目录变更后的映射维护仍待补。 +- **脚本体验**:已接入启动器路由脚本,须先保存设置并关闭相同数据根的启动器;还没有向已打开窗口投递请求的 IPC、程序移动后的自动重定位。文件依赖当前启动器及其账户服务,不是包含 Java argv 的独立启动包。Mac 原生权限、脚本执行、凭据和另存仍待验。 +- **实例与资源**:明确停止入口、全部多会话控制、更多加载器组件修改、第三方启动器格式互认;模组批量更新/来源识别/完整依赖冲突图,资源包/光影启用和排序,数据包更新/删除/排序,原理图格式与预览等仍按 P51–P65 跟进。 +- **其它页面与平台**:在线皮肤上传/披风穿戴、收藏缩略图/失效资源、内置反馈提交、下载来源编辑和完整网络回退仍有缺口。Mac 原生、完整 DPI/跨屏/键盘/高对比度/屏幕阅读器/SMB 故障矩阵未完成。七语补全、视频背景、自动更新和新增许可清单已取消。 +- **原生验收范围**:解锁后已补齐 R21-08 的 Windows 真实控件编辑、鼠标确认/保存、脚本原生另存/取消及 RC2 重启,见下方补验记录;只覆盖 200% DPI、976×636 DIP。Mac 原生和完整平台/状态矩阵继续待验,不因 Windows 补验而勾选。 + +## 实现与兼容范围 + +共享 `Core` 增加独立初始内存、Classpath 头部 JAR、Windows 控制台 Java 选择、调试级 log4j 配置;既有 JVM/游戏参数、窗口、IP、优先级和前置程序通过实例页编辑。前置程序使用明确可执行路径和独立参数,不自动执行旧 Shell 命令。Classpath 每行一个绝对本机 JAR 路径、最多 16 项,检查路径链接、存在性、大小和 ZIP 结构,按给定顺序放在游戏库前;保留受保护的认证传递和启动引导。 + +JVM 文本兼容空格或换行分隔的受支持参数;不接受用户参数覆盖认证、证书、引导代理或游戏主入口。Windows 的 `java.exe`/`javaw.exe` 差异只在计划适配层选择同目录可执行文件;Mac 不显示这一专属复选框。调试配置由共享服务生成固定内容,不导入来源不明的 XML。全局设置的其它编辑保留新增字段,不丢实例独立值。 + +目录覆盖有“保持当前”“跟随全局”“独立”“共用”四种。旧实例的两个锚点来自已确认的版本目录和 Minecraft 根;受管实例保留原有隔离目录及对应 `shared-game`。显示目标路径,实际改变目录须再次确认。设置保存只改变引用,不创建、搬移、合并或删除游戏内容;显式点击文件夹按钮才允许创建新的空目标。保持当前是兼容默认,不把已接入实例悄悄搬到新位置。 + +跟随全局的实例在全局隔离或加载器改变时重新计算路径;任何目标冲突会拒绝同一设置事务。当前和目标游戏会话、路径链接、文件占位、已登记的不兼容版本/加载器模组混用均有守卫。**该检查不能诊断任意未登记共享目录中所有手工模组的兼容性**;切换前仍须核对目标,不以目录可访问宣称模组可运行。 + +只读“读取此实例的旧版设置”入口位于有旧来源的实例设置页。白名单读取所选 `PCL/Setup.ini`,兼容 UTF-8/UTF-16LE,限 256 KiB;显式 V2/V1 隔离覆盖原有加载器推断。支持的非空标题、自定义信息、JVM/游戏参数、Classpath 及调试设置先成为草稿,须核对后保存。未知或不支持值留在原文件;提示不回显原始命令/敏感参数。旧前置命令、Java 格式和内存刻度不猜测转换。原 JSON/INI/图标不写回,旧→新→旧仍能使用原资料。 + +配置和目录策略共同持久化,沿用写前 `.bak`、未知根/实例/启动选项/目录字段合并。新侧高级设置不会写入旧 WPF INI,因此这里的往返是**原文件不损失、原旧版仍可读取**,并非两套程序双向同步新增设置。 + +## 脚本导出 + +实例概览接入 Windows `.cmd` / macOS `.command` 原生另存。文件只引用当前启动器、必要时的独立数据根和已保存实例 ID;账户刷新、所有权检查、依赖准备和安全凭据传递继续走现有服务。没有选中账户时返回明确失败,不创建离线角色兜底。未保存的草稿不能直接导出。 + +脚本不包含账户缓存、access/refresh token、Java argv、前置命令、用户名或密码。生产 Mac 默认数据根不额外添加 `--data-dir`,避免把默认 Keychain 作用域变成隔离作用域。Windows 关闭延迟展开并处理百分号及路径引号;Mac 使用 POSIX 单引号转义。引号规则参照 [Microsoft cmd 文档](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/cmd),再以受控记录程序实际核对参数。 + +另存先写独占暂存、flush,提交前再核对原文件未被其它程序改变;覆盖时将当前原文写到 `.bak` 后发布。取消/失败清除本次暂存,原脚本保留。`.bak` 是最近一次原文备份,不是所有历史版本;极晚发布失败时可能已更新 `.bak`,但原文件仍保持。Mac 可执行权限由平台分支设置,Windows 无 Unix chmod。 + +## 验证与首次失败 + +Windows 真实服务验收读取 `E:\Minecraft\.minecraft\versions\XPlus PerioTable based on Minecraft 26.2 (Fabric)` 的公开 JSON/INI:只读草稿前后配置哈希相同,两个源文件最终哈希不变。该实际实例没有非空高级参数,因此非空参数映射另用受控公开 INI 覆盖,不声称真实用户已有全部高级参数。 + +另在有中文、空格、`%R21%`、`!`、`&` 和单引号的数据路径创建受管实例,保存初始内存、GC、窗口、标题、Classpath、控制台/调试及前置程序参数;切换共用→跟随全局→独立,原标记文件保留,设置保存时不创建新目录。Windows 持有配置只读句柄造成保存失败,配置哈希和内存快照不变。销毁并重建服务后恢复选中实例、独立参数和目录策略,未知字段继续保留。详见 `reports/r21-native-second.json`。 + +Windows 脚本通过真实 `cmd.exe` 执行,但目标是本轮编译的**记录替身 apphost**:参数分支在构造任何 LauncherService 前写入受控路由结果并退出,没有游戏、网络、账户或前置程序入口。核对可执行文件/数据路径中的中文、空格和上述特殊符号逐项相符。持有目标只读句柄使覆盖失败;另以文件系统事件在暂存创建后取消 8 MiB 受控文本写入,原脚本不变、暂存为 0;成功覆盖后 `.bak` 为原文。没有用真实候选执行游戏脚本。 + +首轮自包含候选在同一个零账户数据根实际打开,Computer Use 可读首页和已保存实例名称,但置前台失败。既有授权的原生备用输入守卫检查到 LockApp,未注入输入;解锁请求发出后再查仍锁屏。随后仅正常关闭本任务窗口并重新运行候选,两个不同 PID 都产生原生窗口报告、正常关闭 exit0、没有外层超时。配置 SHA-256 与预重启一致,768 MiB 初始内存、窗口、Classpath、前置程序文本、控制台/调试、独立目录、选中实例和三层未知字段全部保留,原标记文件仍在。它证明服务保存内容经候选进程重启读取仍有效,**没有把后台写值当作鼠标操作保存**。见 `r21-ui-restart-audit.json`;当时没有新截图,后续解锁补验另记如下。 + +### 解锁后的原生补验与 RC2 + +用户确认解锁后继续使用相同零账户目录。Computer Use 截图连续两次超时,沿用既有授权的原生备用接口。屏幕复制遇到 ChatGPT 窗口抢回前台时,守卫丢弃截图;后改为 `PrintWindow` 仅读取本任务候选客户区,不取桌面其它窗口像素。所有鼠标/键盘输入前继续检查前台、精确进程路径与控件坐标必须在客户区内;不操作 ChatGPT 或锁屏界面。文件选择器只记录已确认的受控文件名和按钮,不截图其目录内容。 + +通过原生控件将标题改为 `R21 native saved`,用鼠标选择共用目录。未勾确认时点击保存,提示须确认,配置 SHA-256 保持不变;勾选后再次鼠标保存,标题及共用目录写入,`.bak` 与保存前配置逐字节一致。原隔离目录标记文件保留,保存没有创建/搬移新目标目录。 + +原生检查发现 Classpath 标签在 105 DIP 文本列中被截断,单独提交 `66248775` 缩短为“附加 Classpath”,列表顺序说明放在既有 tooltip。未增加常驻说明段落,没有改变 Core 或启动流程。Desktop 193 项完整回归再次通过,随后干净源码重建 Windows RC2 和同源 Mac ARM64 交叉构建。 + +RC2 实际界面恢复标题和共用目录,标签完整显示;用鼠标关闭调试复选框并保存。原生另存先取消,配置不变且不生成目标;再次另存成功,得到 413 字节 `.cmd`,引用 RC2 程序和已保存实例 ID。核对没有账户凭据、Java argv、Classpath 或前置程序参数,**未执行此导出文件**。文件 SHA-256 为 `7a862902ca3377ad992d0b65056e6fe1ab9531c6ed8469ce9af25d6999de8b84`。 + +正常关闭 RC2 并重新打开,再从首页进入实例设置:原生界面仍显示新标题、共用目录、768 MiB 初始内存、Classpath、前置程序文本、控制台 Java 及关闭的调试项;配置哈希与鼠标保存后相同,选中实例和三层未知字段保留,暂存为 0。补验旧候选、RC2、RC2 重启共三个进程正常关闭 exit0、无外层超时。没有点击游戏、准备/校验、认证或执行前置程序。详见 `r21-supplement-final-audit.json`、`r21-s2-script-audit.json`。 + +代表截图:`r21-s-save-unconfirmed-retry.png`、`r21-s-save-confirmed.png`、`r21-s2-settings.png`、`r21-s2-advanced.png`、`r21-s2-export-observed.png`、`r21-s2-restart-settings.png`、`r21-s2-restart-advanced.png`。全部为零账户受控数据,200% DPI / 976×636 DIP;不能代替完整 DPI、深色或 Mac 原生。 + +辅助验证先后被同名标签/导航项重复、带符号滚轮参数转换和控件中心在窗口外等守卫拒绝,修正夹具后再操作;这些尝试未写入产品配置。第一次点击另存后立即断言文件存在早于异步写入完成,再观察文件和成功反馈后通过。初次拒绝/恢复说明保存在 `r21-s-auxiliary-recovery.json` 与脚本核验报告,不隐藏首次失败。 + +Core 最终 **563 通过 / 16 显式跳过 / 0 失败,总计 579**,较 R20 新增 20 项;Desktop **193 通过 / 0 跳过 / 0 失败**,新增 5 项。覆盖目录确认/全局联动/文件占位/取消/锁文件/模拟运行会话、旧参数草稿、未知字段/内存优先级、JAR 校验及 Win/Mac classpath 顺序、脚本引号/默认 Mac 凭据作用域/覆盖备份,以及实际 Avalonia 控件绑定、草稿不自动保存和无账户时不创建离线兜底。所有游戏相关 Run/Start 在服务夹具中被拒绝,调用数 0;模拟会话登记的是测试宿主自身 PID,没有创建游戏进程。 + +16 项跳过沿用 R20:8 项 POSIX/Windows reparse 原生专项、4 项 Mac Keychain/argv、2 项显式 Java 修复副本门禁、1 项受控 POSIX 失败子进程、1 项 OnlineJava。没有为消除跳过而启动游戏或开启其它门禁。最终 TRX:`build/main/r21-core-verified/.../reports/tests.trx`、`r21-desktop-verified/.../reports/tests.trx`。 + +首次编译因 ReadOnlySpan 跨 await 的 CS4007 失败,改为先完成受控读再比较哈希。首次服务验收在复制记录替身时与引用项目自带的同名 EXE 冲突,已经完成的设置/回滚仍记录为通过,但整次标为失败;排除该重复 EXE 后第二次全部通过。首轮日志、报告保留。首轮 Core 543 项运行发生在新测试加入前,不算新增覆盖;本报告仅以最终 563/193 为准。 + +原生验收辅助脚本首次正常关闭因正反斜杠文本比较被身份守卫拒绝,改用绝对规范路径后正常关闭;初次未知字段探针使用了错误键名,纠正后逐项断言真实受控键。首次探针和修正说明均保留,不作为产品失败或通过证据。产品没有为这些夹具问题更改。 + +## 源码与候选 + +沿用 `features/windows-parity`,业务本地提交 `f70512e11a5e45a7c363d9a890d8becbb71be7d3`,补验布局提交 `66248775be142bd030163091fdd90dfabf21bd2d`。未合并 dev/main、推送、发布或切换默认入口;旧 WPF 和原工作树修改保留。旧 WPF 只读正式截图和独立业务/公开配置约定,未读取旧视图/模板/映射 JSON/采集脚本作为实现输入。 + +SDK 10.0.403、Avalonia 12.1.5,沿用已有依赖、未新增字体或 NuGet 包。最终 Win 发布和 Mac 交叉构建 C# 均为 0 警告/0 错误;既有 Java 8 bootstrap 编译器仍有三条 source/target 8 弃用提示。Mac 未实际运行。 + +首轮 Windows 候选(已由 RC2 替代):`artifacts/windows-main-20261105/dist/r21-final/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.gf70512e1.zip`,81,608,650 字节;SHA-256:`51c3a9b8515b23a97e4ffbd4e0aeaa284cebb49e3643c89117891b20c643eae7`。 + +**当前 Windows RC2**:`artifacts/windows-main-20261105/dist/r21-final-rc2/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.g66248775.zip`,81,608,700 字节,**win-x64 / Release / 自包含**,构建时源码干净,源码 `66248775be142bd030163091fdd90dfabf21bd2d`。SHA-256:`848ee7f6bdf4ede990069667ee007dc467218226f75fb044c6a45ef675a61b52`。该提交的 Core 与此前完整 563/16 回归内容相同,没有重复运行不相关重任务;Desktop 193 重验通过。同源 `r21-mac-rc2` 交叉构建通过,仍无 Mac 原生运行。 + +RC2 的 268 个包内文件和解包文件逐一哈希相同;EXE、CoreCLR、SkiaSharp 和 HarfBuzzSharp 均为 AMD64。无额外配置、账户、凭据、用户日志、脚本、`.env`、临时文件和自动更新清单。最新统计见 `reports/r21-rc2-audit.json`,首轮见 `r21-final-audit.json`。候选没有以旧 WPF fallback 代替新功能。 + +首轮非敏感证据:`artifacts/windows-main-20261105/dist/r21-evidence/SHOU-R21-Windows-evidence.zip`,804,824 字节、67 项,SHA-256:`04e0eb84a4025b045b3c87046bc55d3922dd2ae7b3c790df2b3ade3f51b8bdaa`。归档只含报告、首次失败、最终及阶段 TRX、受控验收源码和逐项清单;不含原配置/账户缓存、`.env`、用户 INI/图片、游戏/Java/安装器或记录替身二进制。首轮锁屏,没有新截图;补验证据单独归档,包含精选零账户截图。 + +最新补验证据:`artifacts/windows-main-20261105/dist/r21-evidence-supplement/SHOU-R21-Windows-supplement-evidence.zip`,2,341,310 字节、147 项,含 9 张已检查的零账户截图,以及原生保存/取消/重启、RC2 包核验、测试、首轮失败和受控验收源码。SHA-256:`01ee17df68534ef8528b9d49d2e9c19a65511ec74e80fdc124215d6e55af332d`。文件选择器目录内容、导出的可执行脚本、原配置/账户缓存、用户图片和游戏载荷不进入归档。 + +打包前任务目录 30.552 GiB,加私有验收目录正增长 2.000 GiB,共 32.552 GiB,低于 35 GiB,剩余磁盘 272.451 GiB。仅清理已完成任务生成的 bin/obj/publish-desktop,保留全部候选、原数据、TRX 和首轮失败。两次候选退出均为 exit0,没有外层超时;重任务锁和候选残留均为 0,最后清理本任务 SDK 下一个已空闲的 MSBuild 节点。 + +补验归档前任务目录 31.621 GiB,加私有验收正增长 2.000 GiB,共 33.621 GiB,剩余磁盘 271.304 GiB;额外证据包约 2.3 MB,仍低于 35 GiB。补验三个候选进程均正常退出,重任务锁/候选残留为 0,已清理本任务 SDK 的空闲 MSBuild 节点。原工作树修改和旧参考资料保持原样。 diff --git a/docs/conduit/WINDOWS-UI-R22.md b/docs/conduit/WINDOWS-UI-R22.md new file mode 100644 index 00000000..13bb987f --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R22.md @@ -0,0 +1,71 @@ +# R22:存档下载入口、文件剪贴板与数据包回收(2026-11-10) + +## 尚未接齐 + +- 存档列表的本地世界 ZIP/剪贴板导入仍未接;在线世界/数据包下载及明确目标安装已有 R19,本轮接通存档页快捷入口。数据包更新/排序、复杂依赖删除诊断、其它版本/实验格式、意外断电后的自动恢复和回收永久清理仍未齐。 +- 模组批量更新/来源识别/完整依赖冲突图,资源包/光影启用与排序、原理图解析与预览、完整关系诊断页仍待补。 +- 旧 Mesa/JLW/LegacyFix/LWJGL 等专属设置、更多旧 Java/内存序列化迁移、明确停止及多会话控制、脚本运行中投递/重定位、更多加载器组件修改与第三方导出互认仍待补。 +- 在线皮肤上传/披风穿戴、收藏缩略图、内置反馈提交/附件、日志检索/跳转、下载来源完整编辑、单文件多段连接、全局动画帧率仍有缺口。 +- 新增入口的 Windows 原生鼠标/跨应用剪贴板、Mac 原生和完整 DPI/跨屏/键盘/无障碍/SMB 矩阵未验。原生验收可交给 Mac 侧继续;Windows headless 不能替代这些门禁。七语补全、视频背景、自动更新和新许可清单均已取消,不计为待补功能。 + +## 实现与兼容边界 + +共享 Avalonia 存档列表和数据包页接入现有下载页:明确保留当前实例,数据包保留明确选择的存档;不会修改首页账户/实例选择,不会自动安装。项目详情继续走 R19 的兼容、冲突预检及独立确认。切换实例、同 ID 目录重绑、失效存档和迟到读取均不能把旧目标重新套上,目标变化使旧预检失效。 + +数据包页“从剪贴板导入”只读取原生文件项,接受单个本机 ZIP。多文件、URL、普通文本及文件选择后切换目标均被拒绝。沿用已有本地 ZIP 读取预算、内容/路径检查、同名拒绝和原子发布,不写 level.dat;没有自动读取文本、执行内容或启动游戏。真实跨应用文件剪贴板另列待验。 + +回收使用新 Core 接口 `IWorldDatapackTrashService`。新增读取、回收和恢复沿用页内操作状态,不增加底部进度条。游戏必须停止,目标必须是当前明确选择、符合既有隔离目录边界的实例;沿用 `WorldStore` 的运行会话/路径/链接守卫。仅写入已验证 Java 1.21.1(DataVersion 3955)且 DataPacks 列表完整的世界,数据包格式 48;不为填满 UI 放宽未验证格式。 + +先选择 1–16 个数据包,再确认回收。ZIP 与目录移入该存档的 `.shou-trash/datapacks//payload`,核对完整内容哈希;同时移除 level.dat 的对应 Enabled/Disabled 引用和世界安装清单中的对应文件记录。原 NBT/JSON 未知字段保留,level.dat 和清单写前备份逐字节保持。未提供永久删除;最多 256 条回收记录,达到上限会在移动前拒绝,须先备份并人工整理,启动器不自动清除历史资料。 + +收据保存本次前后元数据和哈希,重建服务/界面后仍可读取、恢复。恢复保留原 ZIP/目录、原启停顺序和原安装清单;不会覆盖同名或 Unicode/大小写等价路径。**恢复要求当前 level.dat 与安装清单仍等于本次回收后的状态**;若已进入游戏、编辑世界或安装其它资源导致其变化,拒绝自动恢复并保留回收文件,不能用旧备份覆盖新状态。这是本轮有意保守的边界,并非任意后续修改都能自动合并。 + +正常取消/写入失败会逆序回滚已移动文件及已提交元数据,保留原内容,不留本轮 `.tmp`。若外部进程同时改写目标导致安全回滚无法完成,则保留收据、备份与载荷,明确报错;不删除外来文件,不把“保留恢复材料”算成断电自动恢复已经完成。回收备份属于本机存档资料,不进入 Git、候选或公开证据包。 + +## 验证与首次失败 + +首轮 Desktop 197/197 通过;目录重绑守卫补充后最终 **200 通过 / 0 跳过 / 0 失败**(包含新读取不增加底部进度条和下载目标未同步时留在原页提示)。首轮 Core 570 通过 / 16 跳过 / 1 失败:测试给 ZIP 追加尾部垃圾,却断言应得到“内容变更”的 IOException;实际正确拒绝了损坏 ZIP(InvalidDataException)。改成有效 ZIP 内元数据变更后,通过 572 / 16 跳过 / 0 失败,再补回收条目上限测试后,最终 **Core 573 通过 / 16 跳过 / 0 失败,总计 589**。16 项沿用历史:8 项 POSIX/reparse 原生专项、4 项 Mac Keychain/argv、2 项显式 Java 修复门禁、1 项 POSIX 失败子进程、1 项 OnlineJava。本轮没有新增跳过。 + +新增受控文件测试包括 ZIP/目录回收、未知字段和精确备份、服务重建恢复、只读清单造成中途失败与反向恢复失败、同名/内容/世界状态冲突、损坏清单、预先取消,以及原生 FileSystemWatcher 观察到 payload 已移动后立即取消的真实文件回滚。Actual Avalonia 控件测试覆盖确认/取消、重建界面后的回收读取与恢复、剪贴板输入边界、明确下载目标及迟到读取。 + +首份干净源码候选已完成;收尾审查补上下载目标列表未同步时的异常处理和实际按钮回归,随后重打最终候选。此补修只改 Desktop,Core 不变。 + +没有启动 Minecraft,没有操作用户真实世界、账号或旧来源文件。已有 Windows WPF 默认入口与工程保留;本轮未合并、发布或推送。候选不等于达到完整替代门禁。 + +## 源码、候选及证据 + +开发从 `features/windows-parity` 的 `9b21c1cd` 续作;开始前已 fetch,本地与远端相同,不合并 dev/main。原工作树 AGENTS 修改、旧参考资料及上轮旧 todo `stash@{0}`(`530819e1`)保持。 + +- `4fe707259f9e0a5c5d4f0ec9dce055e0930e8ec3`:存档下载入口、文件剪贴板与可恢复数据包回收。 +- `3146197b8f8271c9391fdabe6b036e893762df80`:未同步下载目标的异常处理与按钮回归;最终候选源码。 +- Core 全回归时 HEAD 仍为 `9b21c1cd`,测试对应未提交的完整工作树修改,随后形成 `4fe70725`。最终 Desktop 全回归时 HEAD 为 `4fe70725`,包含随后形成 `3146197b` 的导航修复;两提交间 Core 无差异。最终文档提交只补验收记录,不修改产品代码。 + +| 项目 | 结果 | +| --- | --- | +| SDK / UI | .NET SDK 10.0.403 / Avalonia 12.1.5,项目隔离工具与依赖 | +| 最终 Core | 573 通过 / 16 显式跳过 / 0 失败,总计 589 | +| 最终 Desktop | 200 通过 / 0 跳过 / 0 失败 | +| Windows | win-x64,自包含 Release,干净源码 `3146197b8f8271c9391fdabe6b036e893762df80`,未签名本地候选 | +| ZIP 大小 / 内容 | 81,631,565 字节,268 文件逐项 SHA-256 与包目录一致;EXE/CoreCLR/Skia/HarfBuzz 均 AMD64 | +| Mac | 同源码 osx-arm64 Release 交叉构建成功,入口为 Mach-O ARM64;没有生成或签名 `.app`,没有原生运行 | +| 原生窗口 / 游戏 / 登录 | 本轮未新增原生窗口证据,未启动 Minecraft,未进行账户登录;R17/R21 证据仍为历史范围 | + +Windows 最终候选(相对本工作树): +`artifacts/windows-main-20261105/dist/r22-final-win-rc2/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.g3146197b.zip` + +SHA-256:`7b6ee1a37ab9297802ed3f655796ea7ce7dee7556385cee9927b49518d67b2c5`。 + +首份 `4fe70725` 候选与全部首次失败记录保留;最终只交付上面的 RC2。ZIP 未含 `.env`、账户/凭据缓存、日志、脚本或应用内更新清单;Client ID/CF API 配置仅由既有受控编译入口核验,值不输出。 + +非敏感验收包:`artifacts/windows-main-20261105/dist/r22-evidence/SHOU-R22-validation-evidence.zip`,725,592 字节、41 项,包含控制器记录、日志、TRX、首次失败、文件哈希与预算核验,0 张原生截图;不含存档备份、游戏载荷或账号文件。Git 传源码;跨机器复制候选/证据时仍应使用 SMB 并核对 SHA-256。 + +证据包 SHA-256:`ee111083e403c23f0213141c13f4dbdbf9447e45ac84ae4ba388b4f6091a0fa6`。 + +收尾记录:归档前任务目录 30.571 GiB,加私有验收目录正增长 2.000 GiB,共 32.571 GiB;额外证据包约 0.7 MiB,仍低于 35 GiB,磁盘可用 249.629 GiB。只清理完成任务的 bin/obj/publish-desktop,候选、源数据、TRX 和首次失败保留;重任务 owner 为 0,本轮隔离 SDK 的一个空闲 MSBuild 节点已停止。MSTest 的 Counters.notExecuted 写为 0,汇总按实际 UnitTestResult 的 16 个 NotExecuted 计数,该聚合断言的首轮错误亦保留。 + +## Mac 侧原生补验清单 + +1. 使用独立的已验证 1.21.1 测试存档副本,不启动游戏;在存档列表和数据包页分别打开下载页,核对明确实例/存档、自动读取、返回及改变目标后的预检失效。 +2. Finder 复制单个本地 ZIP,在数据包页粘贴;核对多文件/文字拒绝、同名冲突、取消以及异步读取期间切换目标不误写。原存档 level.dat 哈希应保持。 +3. 选择 ZIP 与目录数据包,先取消回收确认,再真正回收;核对原始内容、启停引用和清单备份。正常关闭重开启动器,读取回收记录并恢复,原文件与元数据哈希应恢复一致。 +4. 在独立副本中制造同名目标、回收载荷变更或后续存档修改,核对拒绝覆盖及恢复材料保留;选择器、最小窗口、键盘和无障碍另验。不把交叉构建写成 Mac 已运行。 diff --git a/docs/conduit/WINDOWS-UI-R23.md b/docs/conduit/WINDOWS-UI-R23.md new file mode 100644 index 00000000..a103afef --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R23.md @@ -0,0 +1,61 @@ +# R23:本地世界 ZIP 与文件剪贴板导入(2026-11-10) + +## 尚未接齐 + +- 数据包更新/排序、复杂依赖删除诊断、其它写入版本/实验格式、回收永久清理及断电自动恢复仍未齐;R22 回收编辑继续限定已验证格式。本轮补的是世界文件导入,不放宽旧世界元数据编辑范围。 +- 本地世界仅支持唯一 Java level.dat、明确官方版本且与目标实例一致的 ZIP。Bedrock、多个世界混装、已识别但不能核实的模组/实验依赖仍拒绝;未识别的其它世界特性不承诺已完整判定;含启动器隐藏管理资料的完整备份 ZIP、世界导出和其它归档格式未补。不会静默丢弃未知隐藏资料来假装兼容。 +- 模组批量更新/来源与完整依赖图、资源包/光影启用及排序、原理图解析预览;旧 Mesa/JLW/LegacyFix/LWJGL 等专属选项、更多旧 Java/内存格式迁移、明确停止/完整多会话、脚本 IPC/重定位、加载器组件修改及第三方导出互认仍待补。 +- 在线皮肤上传/披风穿戴、收藏缩略图、内置反馈/附件、日志搜索/跳转、下载源完整编辑、单文件多段连接及全局动画帧率仍有缺口。七语补全、视频、自动更新、新许可清单已取消,不重新列入开发。 +- Windows 新文件选择器/跨应用剪贴板,以及 Mac 原生、完整 DPI/键盘/无障碍/SMB 中断未验。合成世界文件与 headless 控件测试不能代替实际 Minecraft 世界载入或原生验收;本轮禁止启动游戏。 + +## 行为与兼容范围 + +存档列表接上“导入本地世界 ZIP”和文件剪贴板入口,明确保留当前实例,允许编辑新的存档文件夹名。选文件不会写盘,也不会新建游戏实例;必须先检查,再独立确认导入。多文件、普通文本、URL、选择器返回时已改变的实例/目录均拒绝。名称变化会释放旧预检,实例或外部选中状态改变会丢弃迟到结果;Esc 及取消可关闭草稿或取消当前检查/导入。 + +Core 通过 `ILocalWorldImportService` 复用 R19 的世界计划、数据包检查与新目录原子发布。通过经官方大小/SHA-1 核实的基础客户端 version.json 获取实际世界版本/数据包格式;首次缺少缓存时可能下载该校验文件,不调用游戏入口。原 ZIP 只读,预检和确认都核对物理文件身份及完整 SHA-256;目标实例、版本、saves 边界、运行会话、同名/大小写/Unicode 冲突继续受保护。 + +支持 ZIP 根目录或唯一包装目录。沿用 ZIP 256 MiB、展开 512 MiB、单文件 128 MiB、5000 条目等预算、路径/链接/CRC 及敏感文件拒绝;不升级或降级世界。内带数据包必须与目标格式相符,DataPacks.Enabled 声明的缺失文件或未核实内建/模组 ID 会阻止导入。没有对全部 NBT 特性或 region 结构作完整健康诊断。仅本地入口忽略 `.DS_Store` 及 `__MACOSX/` 下 `._` AppleDouble 伴生文件;忽略的内容不写入目标,整个 ZIP 仍保持原样。其它隐藏文件和未知管理资料不一概跳过。 + +先在所选实例下的独立暂存目录完整解包、校验,再发布为新存档;旧世界和原 ZIP 不覆盖。旧 session.lock 不导入。来源收据仅存文件名、SHA-256、游戏版本及 local-world 类别,不存本机源路径或伪造在线项目 ID。NBT 和 region 等载荷逐文件保留,来源 ZIP SHA-256 不变。没有读取账号、操作旧 WPF 数据或启动 Minecraft。 + +正常取消与后段解包失败清理本次暂存,不留半成品;目标竞争时保留外来文件。原子发布已经完成后才到达的取消按完成反馈并刷新列表,不删除完整存档或宣称已经回滚。程序突然退出/断电后的自动恢复仍未实现,不把正常取消回滚当作该门禁完成。 + +界面沿用共享字体、按钮和输入框样式;检查/导入采用页内 LoadingGlyph、状态及取消,不新增底部进度条。世界列表刷新也采用页内状态。修复全局取消过程中同步完成的任务先释放 CTS、随后又读取 Token 所造成的 ObjectDisposedException:取消前先捕获 Token,已有认证取消清理继续使用该 Token。 + +## 验证与首次失败 + +最终 Core **593 通过 / 16 沿用跳过 / 0 失败,总计 609**,新增 20 个测试案例。新增覆盖 1.21.1 和 26.2 的根/包装 ZIP、Finder 元数据、源哈希与逐文件一致、存档存储服务重建后的读回、来源记录、明确实例目标、预检释放/重放拒绝、损坏/危险/混合归档、必装依赖、同名/大小写冲突、源变化、取消与后段 CRC 回滚。使用受控 NBT 和 region 载荷,未验证游戏内世界渲染。 + +Desktop **207 通过 / 0 跳过 / 0 失败**,新增 7 个实际 Avalonia 控件/工作流案例;UI 接口替身验证预检和独立确认调用、LoadingGlyph、取消/Esc/重试、名称/外部选中变化、迟到结果及发布完成后的取消反馈。真实文件安装、哈希和重建读回另由 Core 测试覆盖;没有调用系统原生选择器或真实剪贴板。 + +16 项跳过与 R22 相同:8 项 POSIX/reparse 原生专项、4 项 Mac Keychain/argv、2 项显式 Java 修复门禁、1 项 POSIX 失败子进程、1 项 OnlineJava。没有新增跳过,也没有开启游戏门禁。 + +首轮 Core 测试构建因测试把结果属性 Destination 写成 DestinationDirectory,出现 5 个 CS1061,产品首轮构建本身通过;修正后完整回归通过。首轮 Desktop 为 205 通过 / 2 失败:一项暴露上述真实取消 CTS 异常,另一项错误假设忙碌时实例 setter 仍可修改;修正测试为外部 Snapshot 变更,并补强当前选中上下文后,207 全通过。首轮日志/TRX 保留。 + +## 源码、候选与原生补验 + +从 `features/windows-parity` 的 `9604eb22` 续作,fetch 后远端无新提交,保留原 3 个本地提交;不合并 dev/main。原工作树修改、旧参考 ZIP 与旧 todo stash(`530819e1`)保持。 + +源码提交:`d846edca5bf7d5c05ca7c586ae3f5259f96f6df0`。测试控制器在提交前记录 HEAD `9604eb22`,运行的是随后形成该提交的工作树最终修改;后续交付文档提交不改变产品与测试代码。本轮只做本地提交,没有推送、合并、标签或正式发布;旧 WPF 默认入口保持。 + +| 项目 | 结果 | +| --- | --- | +| 工具 | 项目隔离 .NET SDK 10.0.403 / Avalonia 12.1.5 | +| Core | 593 通过 / 16 显式跳过 / 0 失败,总计 609 | +| Desktop | 207 通过 / 0 跳过 / 0 失败 | +| Windows | 干净源码 win-x64 自包含 Release,未签名本地候选 | +| 包核对 | 81,644,866 字节、268 文件与 ZIP 逐项 SHA-256 一致;EXE/CoreCLR/Skia/HarfBuzz 均 AMD64;敏感路径检查 0 命中 | +| Mac | 同源 osx-arm64 Release 交叉构建成功,Mach-O ARM64 入口;未生成或签名 .app,未原生运行 | +| 原生 / 游戏 / 登录 | 本轮没有新增这些证据,未启动 Minecraft;受控文件与 headless UI 验证范围如上 | + +Windows 候选:`artifacts/windows-main-20261105/dist/r23-final-win/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.gd846edca.zip`。 + +SHA-256:`cafe724be43a20c3be9bfe5feff36db1543eb9b6fd1fa396b9acd6d75ddca72a`。 + +非敏感证据包:`artifacts/windows-main-20261105/dist/r23-evidence/SHOU-R23-validation-evidence.zip`,299,371 字节、25 项,包含日志、控制器、TRX、首次失败、包内文件哈希和预算记录;0 张截图,未收录存档载荷、账号、配置或 .env。配置值匹配扫描为 0,值不输出。Git 传源码;跨机器复制候选/证据仍应经 SMB,前后核对 SHA-256。 + +证据包 SHA-256:`f1509e3bf083ace89ed082003c66c38a183120175c4d11c67cffa7f4a472ed93`。 + +归档前任务目录 30.959 GiB,加私有验收正增长 2.000 GiB,共 32.958 GiB;证据包额外不足 0.3 MiB,低于 35 GiB。磁盘可用 248.997 GiB。只清理完成任务的 bin/obj/publish-desktop,保留候选、原数据、TRX 和首次失败;重任务 owner 为 0,已停止本轮隔离 SDK 的 1 个空闲 MSBuild 节点。 + +Mac 原生后续使用独立副本核对:Finder 文件选择/复制 ZIP、根目录与包装目录、目标和名称变化、检查后独立确认、Esc/取消、重开启动器后的存档列表与文件哈希;再测真实 Finder ZIP 元数据和 SMB 中断。只核对启动器与文件,不启动 Minecraft;Mac `.app` 打包、签名及窗口行为须在 Mac 上完成。 diff --git a/docs/conduit/WINDOWS-UI-R24.md b/docs/conduit/WINDOWS-UI-R24.md new file mode 100644 index 00000000..caf1628c --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R24.md @@ -0,0 +1,68 @@ +# R24:数据包更新与加载顺序(2026-11-10) + +## 尚未接齐 + +- 数据包其它版本/实验格式、多根包批量更新、未登记包在线身份识别、完整依赖关系与删除诊断、更新备份显式恢复/整理及断电自动恢复仍未齐。当前正常取消回滚不代表意外断电恢复;不会自动清理历史备份。 +- R22 的世界元数据、启停及回收写入仍限 Java 1.21.1;R24 更新/排序独立支持经文件测试验证的 1.21.1 与 26.2。其它版本保持只读,不因界面对齐扩大写入范围。未登记包的外部依赖无法完整推断,手动替换明确标为本地来源。 +- 模组批量更新、资源包/光影启用及排序、原理图解析预览;旧 Mesa/JLW/LegacyFix/LWJGL 等专属选项、更多旧设置迁移、完整多会话/明确停止、脚本 IPC/重定位、加载器修改及第三方导出互认仍待补。 +- 在线皮肤上传/披风穿戴、收藏缩略图、内置反馈/附件、日志搜索/跳转、下载源完整编辑、单文件多段连接及全局帧率仍有缺口。七语补全、视频、自动更新、新许可清单不列回开发。 +- CF 数据包来源接口沿用已接入提供方,尚未新增真实外网更新样本;本轮公开更新实测为 Modrinth。Windows 新入口真实鼠标/文件选择器及 Mac 原生、完整 DPI/键盘/无障碍/SMB 中断未验。本轮不启动 Minecraft,文件结果不能代表游戏内数据包载入/重载效果。 + +## 界面与共享行为 + +数据包页选中一个包后可检查更新。有精确安装来源且大小、SHA-1 和 SHA-512 全匹配时,通过原提供方读取适配世界版本的其它发布文件;明确选择版本和文件,先检查兼容性、依赖与冲突,再确认更新。网络读取失败不假称没有更新,仍可重试或选择本地 ZIP。文件夹、未登记或修改后的包提供本地替换;手动替换不伪造在线身份,原记录留在备份。 + +更新沿用 Core 提供方与下载校验。必需依赖按项目/版本精确解析,拒绝非数据包依赖、固定版本矛盾、循环和不兼容声明,并核对未更新的登记包,防止更新破坏其它包的必需依赖。保留原根包启停状态;仅根包启用时将缺失的必需依赖加入 Enabled,放在根包前。用户明确禁用的依赖不被自动启用。旧依赖不会擅自删除。 + +加载顺序写入真正的 `level.dat → DataPacks.Enabled`。界面从低到高排列,后项优先;此语义对应官方 [`/datapack enable … last` 的优先级说明](https://www.minecraft.net/en-us/article/minecraft-snapshot-17w46a)。内建/未知 ID 保留原位置,Disabled 列表不变;只允许重排全部已启用的本地文件包,已有资源重叠会提示覆盖结果可能改变,不把排序当作启停或静默覆盖文件。 + +上下移动仅改草稿,明确保存才写盘。未保存的顺序草稿阻止其它数据包写操作;放弃后恢复按钮状态。版本、选包或目标改变会使预检失效并释放旧计划,迟到响应不填入新目标。文件选择器返回时再核对捕获的实例/存档/包。耗时检查采用页内 LoadingGlyph 与取消,不新增底部进度条。Windows/macOS 使用同一 Core、ViewModel 和 Avalonia 页面,仅文件选择器走平台接口。 + +## 兼容、备份与事务 + +更新/排序目前仅写入已核实的 Java **1.21.1 / DataVersion 3955 / 格式 48.0** 和 **26.2 / DataVersion 4903 / 格式 107.1**。更新还核对目标实例与官方客户端 version.json 的实际世界格式;此过程只读校验文件,不执行游戏。存档、所有包及来源清单共同组成预检修订,确认时重查,拒绝过期目标、改动后的缓存/ZIP、大小写/Unicode 重名、路径/链接及资源冲突。 + +更新最多 64 个项目/文件,单 ZIP 64 MiB、本次 ZIP 总计 128 MiB,已有包与展开资源总计有 256 MiB 预算;目录深度 24、5000 节点等守卫沿用。更新在存档独立暂存目录准备,旧包移至 `.shou-backups/datapack-updates//payload`;同时保存原 `level.dat`、来源清单和收据,再发布校验后的新包、迁移改名引用、写元数据并标记完成。来源清单和 NBT 未知字段保留,源 ZIP 不修改;每次精确备份,最多 256 组,达到预算后要求先自行备份整理,不自动删除。 + +正常取消或失败会回滚本次已替换的文件和元数据,清理本次暂存。目标出现外来修改时拒绝覆盖,保留恢复资料并报错;不假称这种外部竞争或断电情况一定可自动修复。排序独立使用元数据原子写入和写前备份,核对成员/内容及世界修订;坏包或不明确列表不猜测。 + +## 验证与首次失败 + +Core **620 通过 / 16 沿用跳过 / 0 失败,总计 636**,新增 27 个案例。覆盖两种格式的真实 Enabled 写入、内建位置/禁用状态保留、资源重叠提示、同名/改名及文件夹手动替换、依赖新增/固定版本/禁用/不兼容、未知字段和精确备份;源/缓存/目标改变、格式错误、网络失败、只读目标、预取消和原文件移动后取消均拒绝或恢复。关闭服务再初始化后重新读回排序、来源与文件哈希。16 跳过与 R23 相同:8 个 POSIX/reparse、4 个 Mac Keychain/argv、2 个显式 Java 修复、1 个 POSIX 失败子进程、1 个 OnlineJava;无新增跳过。 + +Desktop **214 全通过 / 0 跳过 / 0 失败**,新增 7 个实际 Avalonia 控件案例。验证排序先草稿后保存、精确备份与重建界面读回、保存失败保留草稿、放弃恢复按钮、更新独立预检/确认、版本与目标变化、手动替换、失败反馈、迟到取消、页内状态及无绑定警告。界面更新业务通过接口替身检查调用,实际替换和磁盘回滚由 Core 覆盖。 + +首次 Core 测试构建发现 ViewModel 将非泛型选择列表成员直接当作数据包行,出现两处 CS1061;改为明确类型检查后通过。首次 Desktop 212 通过 / 1 失败,为重建测试未运行 Dispatcher 中排队的世界读取;补齐调度后发现放弃排序草稿的导入按钮缺少属性通知,213 通过 / 1 失败。该通知与迟到读取取消守卫已修正,最终 214 全通过。每次日志/TRX 保留。 + +公开文件实测使用隔离数据根和独立 CLI 验证进程,通过实际 Modrinth API/CDN 完成 Veinminer 项目 `OhduvhIc` 的 `d5goCfMd → 8cEJouzY` 更新,得到 `Veinminer-1.2.4.zip`,官方文件 SHA-1 `e6ebe9ce76023bdb79e55d20a40336db93855d0b` 相符。预检前后旧包与 level.dat 不变;更新备份的旧包、level.dat、来源清单逐字节一致;随后将真实 Enabled 顺序保存为本地包在前、Veinminer 在后。 + +写入进程 PID 41024 正常退出,再启动读取进程 PID 64480,来源发布 ID、顺序、level.dat/清单/新 ZIP SHA-256 均一致。两阶段 exit0、暂存为 0;注入禁止执行的进程接口,游戏/其它进程调用均为 0。这是原生 Windows 文件与共享服务的独立进程重开验证,不是桌面窗口关闭/重启或 Minecraft 实测;合成目标世界未载入游戏。公开原文件与本地受控数据留在隔离验收根,不进入 Git 或证据包。 + +## 源码与交付 + +从 `features/windows-parity` 的 `128df7fc` 续作;开始 fetch 后远端没有新头,原分支领先远端 5 个本地提交。沿迁移分支继续,不合并 dev/main,不改写历史;原工作树修改、参考 ZIP 与旧 todo stash `530819e1` 保留。旧 WPF 默认入口不变,无推送、标签或正式发布。 + +源码提交:`0088ac760504a9e30bdbf0ef30767691e4529f94`。最终测试和公开写入控制器记录提交前 HEAD `128df7fc`,运行的是形成该提交的最终产品代码;公开重开、Windows 候选与 Mac 交叉构建记录 `0088ac76`。后续提交仅整理本报告与 todo,不改产品或测试代码。 + +| 项目 | 结果 | +| --- | --- | +| 工具 | 项目隔离 .NET SDK 10.0.403 / Avalonia 12.1.5 | +| Core | 620 通过 / 16 显式跳过 / 0 失败,总计 636 | +| Desktop | 214 通过 / 0 跳过 / 0 失败 | +| Windows | 干净源码 win-x64 自包含 Release、未签名本地候选 | +| 包核对 | 81,691,870 字节,268 文件与 ZIP 逐项 SHA-256 一致;EXE/CoreCLR/Skia/HarfBuzz 全为 AMD64,敏感路径 0 命中 | +| Mac | 同源 osx-arm64 Release 交叉构建成功,Mach-O ARM64 入口;未生成/签名 .app,未原生运行 | +| 实际文件 | 公开两版本更新、精确备份、排序和两个独立进程重开通过 | +| 原生窗口 / 登录 / 游戏 | 本轮没有新增这些证据;未启动 Minecraft | + +Windows 候选:`artifacts/windows-main-20261105/dist/r24-final-win/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.g0088ac76.zip`。 + +SHA-256:`3271659e7962d6acf5ab492fee8a9cbf05e6fcf8d49b2aba472cd11516acc838`。 + +非敏感证据:`artifacts/windows-main-20261105/dist/r24-evidence/SHOU-R24-validation-evidence.zip`,547,676 字节、44 项、0 张截图;包括日志、控制器、TRX、首轮失败、包文件哈希、公开验证结果与无游戏验收程序源码。没有账号、.env、存档/ZIP 载荷或完整配置;配置值匹配扫描为 0,实际值不输出。 + +证据 SHA-256:`8afd8791099137fe502967a41c6e6dd062094f9e10e0ac79cda620aa0a1ec67e`。 + +归档前任务目录 31.502 GiB,加私有验收正增长 2.000 GiB,共 33.501 GiB;证据 ZIP 再增加不足 0.001 GiB,低于 35 GiB。可用磁盘 238.083 GiB。只清理本轮完成任务的 bin/obj/publish-desktop,保留候选、验收数据、源码、日志、TRX 和首轮失败;重任务 owner 为 0,已停止本轮隔离 SDK 的 1 个空闲 MSBuild 节点。 + +Mac 原生后续在副本上检查:明确实例/存档/包、在线与本地 ZIP 预检/确认、版本/目标变化后的失效、Finder 文件选择与 Esc/取消、排序保存后关闭/重开、只读目标及 SMB 中断恢复;核对原 ZIP、原包备份、来源与 level.dat 哈希。保持不启动 Minecraft;.app 打包、签名与窗口行为须在 Mac 完成。跨机器复制候选/证据仍优先 SMB,复制前后核对 SHA-256,源码通过 Git 传递。 diff --git a/docs/conduit/WINDOWS-UI-R25.md b/docs/conduit/WINDOWS-UI-R25.md new file mode 100644 index 00000000..9412d779 --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R25.md @@ -0,0 +1,63 @@ +# R25:数据包更新备份恢复(2026-11-10) + +## 尚未接齐 + +- 旧 Format 1 更新备份缺少完整更新后快照,不能据此可靠判断后续修改,只提供只读记录与目录入口。R25 新增 Format 2,不回写或补造旧收据;坏记录也保留,单条失败不隐藏其它有效备份。 +- 更新/恢复备份永久整理、断电自动恢复、恢复后的再应用、多根包批量更新、其它世界版本/实验格式、未登记包的在线身份、完整依赖图与删除诊断仍未齐。正常取消失败回滚不等于断电恢复。 +- CF 数据包真实外网更新/恢复样本、两端原生选择器、窗口关闭重启、完整 DPI/键盘/无障碍/SMB 中断待验。文件与 headless 控件测试不能代替原生或游戏效果;本轮继续不启动 Minecraft。 +- 模组批量更新、资源包/光影启用和排序、原理图解析预览、旧专属渲染器/补丁与更多设置迁移、完整多会话/停止、脚本 IPC/重定位、第三方导出互认仍有缺口。 +- 在线皮肤/披风写入、收藏缩略图、内置反馈附件、日志检索跳转、完整下载源编辑、单文件多段和全局帧率未齐。七语补全、视频、自动更新及新许可清单维持取消。 + +## 本轮行为 + +数据包页接入“更新备份”入口,列表区分可检查、已恢复、后续状态改变、不完整、旧格式与损坏记录。可先打开备份目录人工核对;恢复必须先检查,再明确确认。选中备份或实例/存档变化、取消及迟到响应会使预检失效;有未保存的顺序草稿不能恢复,预检也会失效。沿用共享 Core、ViewModel、字体与按钮;页内 LoadingGlyph/状态,不新增底部进度条。 + +新更新收据保存原包类型/哈希、更新前后 level.dat/清单快照、完整数据包修订和创建时间。兼容范围仍为 R24 已验证的 Java 1.21.1 / 3955 / 格式 48.0 与 26.2 / 4903 / 格式 107.1,不扩大 R22 世界元数据/启停/回收写入范围。 + +恢复预检与确认都核对当前 level.dat、全部数据包和来源清单仍等于该次更新后的完整修订,同时核对原备份、版本与路径/名称;有后续排序、修改或新文件便拒绝覆盖。恢复复制原备份,不消耗原件;替换版本及其元数据移入同条备份的 restore-current 独立目录,保留更新前后两份资料。新增依赖随该次更新一同移回备份,不删除其它项目。多次更新须从最新状态逆序恢复。 + +文件及目录均使用物理路径和节点守卫,单条记录最多 64 个文件,恢复原包总预算 256 MiB,沿用单文件/深度/节点预算。未知 NBT/来源字段随原始快照逐字节恢复。准备阶段不改当前包;发布和元数据写入失败或取消时恢复本次操作前状态,并清理本次暂存。出现外来竞争、备份损坏或无法安全回滚时保留恢复资料、明确报错,不覆盖外来文件。完成标记是提交点,提交完成后到达的取消不宣称回滚。 + +## 验证与首轮失败 + +最终 Core **639 通过 / 16 沿用跳过 / 0 失败,总计 655**,新增 19 个案例。覆盖两种格式、ZIP/目录及空子目录、禁用状态、精确元数据/未知字段/来源恢复、新增依赖撤回、连续更新逆序恢复、源/快照/收据/目标变化、只读文件、中途取消、预检释放/跨实例守卫和服务重建读回;检查原备份不被消耗,替换版本保持原哈希。16 项跳过沿用 R24:8 个 POSIX/reparse、4 个 Mac Keychain/argv、2 个显式 Java 修复、1 个 POSIX 失败子进程、1 个 OnlineJava,无新增跳过。 + +首轮 Core 构建成功,无编译警告或错误。首轮完整 Core 为 634 通过 / 16 沿用跳过 / 3 失败,总计 653;三项均为成功恢复、重建并验证文件后,测试复用的拒绝辅助方法未接收预期的 InvalidOperationException。重复恢复实际按预期拒绝,断言改为明确异常类型后,638 通过 / 16 跳过。复核发现 64 项合法长中文文件名的 JSON 转义可超过旧 64 KiB 收据上限,将读写统一限为 256 KiB,并补充一项边界测试;文件、项目数量和路径限制保持。 + +加入边界用例后的中间回归为 638 通过 / 16 跳过 / 1 失败:既有 JavaTrustKernelTests.BlacklistAppendsAllOriginalAndCrossSignedCertificatesAndPreservesVendorData 在 Windows File.Replace 报 IOException。原因尚未定位;不改或跳过此测试,下一完整回归为上述 639 通过 / 16 跳过 / 0 失败。单次未复现不能视为 Java 原生完整门禁通过;两轮日志/TRX 均保留。 + +Desktop **220 全通过 / 0 跳过 / 0 失败**,新增 6 个实际控件案例:读列表、明确预检/确认、选择失效、只读旧记录目录入口、取消/迟到读、跨实例迟到预检、失败不假称成功、排序草稿互斥及无绑定警告。实际替换与精确回滚由 Core 文件测试覆盖;未新增系统原生点击证据。 + +公开文件验收通过实际 Modrinth API/CDN 将 Veinminer 项目 `OhduvhIc` 的发布 `d5goCfMd`(v1.2.2)更新为 `8cEJouzY`(v1.2.4),再检查并确认恢复。原 ZIP、level.dat、来源清单逐字节恢复;原备份仍在,替换下来的 `Veinminer-1.2.4.zip` 在 restore-current 中保留,其官方 SHA-1 `e6ebe9ce76023bdb79e55d20a40336db93855d0b` 相符。 + +写入/恢复进程 PID 63588 exit0 后,另起 PID 14292 重新初始化读取,发布 ID、启停顺序和 level.dat/清单/原 ZIP SHA-256 均一致。两阶段暂存为 0、游戏/其它进程调用为 0,使用禁止执行进程的接口;没有使用账号缓存。此为共享服务与实际 Windows 文件的 CLI 进程重开,不是桌面窗口或游戏验收。原备份/公开载荷留在隔离数据根,不进入 Git 或证据包。 + +## 源码与交付 + +从 `features/windows-parity` 的 `5e8a13b0` 续作,fetch 后远端无新头,原本领先远端 7 个本地提交;沿迁移分支续作,不合并 dev/main。原工作树修改、参考 ZIP 和旧 todo stash 保留,旧 WPF 与默认入口不变。只做本地阶段提交,不推送、打标签或正式发布。 + +实现提交:`d5b2bba6620a78649fe3188d5b3cca6c7786e53b`。最终候选源码:`2a19e61f589bcde2b1f427099114117165d4f535`,相对此前仅收紧收据读写预算的一致性、支持合法长中文记录并补一项边界测试。Core 最终控制器记录提交前 HEAD d5b2bba6,实际运行的是形成 2a19e61f 的修改;公开恢复在 d5b2bba6 完成。Desktop 代码未变,沿用 220 全通过结果,未重复无变化的 UI 重任务。最后交付提交仅修改文档和 todo。 + +| 项目 | 结果 | +| --- | --- | +| 工具 | 项目隔离 .NET SDK 10.0.403 / Avalonia 12.1.5 | +| Core | 639 通过 / 16 沿用跳过 / 0 失败,总计 655 | +| Desktop | 220 通过 / 0 跳过 / 0 失败 | +| Windows RC2 | 干净源码 win-x64 自包含 Release,未签名本地候选 | +| 包核对 | 81,715,766 字节,268 文件与 ZIP 逐项 SHA-256 一致;主程序/CoreCLR/Skia/HarfBuzz 全为 AMD64,敏感路径 0 命中 | +| Mac | 同源 osx-arm64 Release 交叉构建成功,Mach-O ARM64 入口;未生成/签名 .app,未原生运行 | +| 原生窗口 / 游戏 | 本轮没有新增这些证据,未启动 Minecraft | + +推荐本轮 RC2:`artifacts/windows-main-20261105/dist/r25-final-win-r2/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.g2a19e61f.zip`。 + +SHA-256:`100d121c6f46844ab3000c4cd9c5b5027949cd8622157ef27f6b2d7135e29a1f`。 + +早期 d5b2bba6 候选及其审计仅保留为历史记录,交付以 RC2 为准。Windows/macOS 继续共用一套实现,交叉构建不能代替 Mac 原生运行。 + +非敏感证据:`artifacts/windows-main-20261105/dist/r25-evidence/SHOU-R25-validation-evidence.zip`,804,582 字节、60 项、0 张截图;含各次日志、控制器、TRX、首次和中间失败、包文件哈希、公开验证结果及 CLI 验收源码。没有 .env、账号、完整设置或存档/ZIP 载荷;配置值匹配扫描为 0,值不输出。 + +证据 SHA-256:`8adae32c2d9dc6637a7ef2ee8fa3b8a4195eb302cf3a8ec9ec27a71138a1d14c`。 + +RC2 首次发布前,预计空间超过任务与私有验收正增长合计 35 GiB 的预算,被预检阻止,尚未开始发布。清理 40 个有完成控制器记录的旧 bin/obj 目录,以及本轮完成的生成输出/可丢弃 TEMP,保留全部候选、源码、验证数据、日志、TRX 和失败记录;工具安装包也保留。重新准入后成功发布,归档前任务 27.846 GiB、私有正增长 2.000 GiB、合计 29.846 GiB,证据 ZIP 再增加不足 0.001 GiB;磁盘可用 243.782 GiB,重任务 owner 为 0,隔离 SDK 的空闲构建节点已清理。 + +Mac 后续在独立副本验证备份列表、Finder/目录入口、预检/确认、Esc/取消、只读及 SMB 中断、关闭重开后来源与顺序和原包/替换包哈希。不启动游戏;恢复是原样还原包和元数据,不代表原包已做健康修复,也未承诺逐项恢复所有文件权限/时间戳。Mac 打包、签名和原生窗口仍须在 Mac 完成;候选/证据优先 SMB,复制前后核对 SHA-256,源码经 Git 传递。 diff --git a/docs/conduit/WINDOWS-UI-R26.md b/docs/conduit/WINDOWS-UI-R26.md new file mode 100644 index 00000000..15379fba --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R26.md @@ -0,0 +1,91 @@ +# R26:在线外观、选择器与窗口关闭 + +日期:2026-11-10。继续 `features/windows-parity`,不合并 main/dev、不推送、不改变 Windows 默认入口、不启动 Minecraft。 + +当前推荐为解锁补验后修整的 `464528d4` 候选,路径与校验值见本文末尾;早期 `99ef4f2b` 候选和锁屏记录保留为历史。 + +## 尚未接齐的功能与待验范围 + +1. Microsoft 在线外观已接入共享代码,真实角色上传/披风往返仍待使用用户明确选定的角色、PNG 和披风验收。本轮仅使用合成图片、虚构账户及受控 HTTP,不改真实账户。 +2. LittleSkin/MUA 公开外观读取已有实现;写入仍打开对应官网。不能将 Yggdrasil 登录令牌直接当作站点 OAuth 写入凭据。外观备份保留本地原皮肤、模型及披风 ID,直接恢复界面尚未实现。 +3. macOS 原生选择器、Cmd+W/退出、关闭写盘与重启状态仍需 Mac 验收。Windows 交叉构建不能替代 AppKit 与 Keychain 的原生行为。 +4. Windows 解锁后已完成代表性的原生 PNG 选择/另存/取消、草稿返回/保存/放弃、Esc、头像与设置重启回读;完整 DPI/跨屏、虚拟文件项和中断矩阵仍未完成。测试进程只使用隔离夹具,没有真实凭据。 +5. 既有清单中仍有脚本向运行中启动器投递、程序移动重定位、世界导出、模组批量更新/冲突关系、资源包排序/更新、光影实际启用及历史格式兼容缺口。完整 DPI/跨屏/无障碍/SMB 中断矩阵仍未完成。 + +## 本轮变化 + +### 在线皮肤与披风 + +- 新增独立外观写入接口,复用当前用户的受保护会话;凭据只发往固定 Minecraft Services 地址,纹理下载不携带凭据,生产客户端关闭重定向。 +- Microsoft 换衣菜单打开共享 3D 预览:选择 PNG、选择经典/纤细模型,然后明确点击“上传到此角色”。64×32 旧皮肤不接受纤细模型;拒绝坏 PNG、超限、动画及异常路径。 +- 披风选择只改变预览;“穿戴所选披风”和“卸下当前披风”才写入,只允许官方最新 profile 中拥有的披风。 +- 写前核对 UUID,保存旧外观,再次检查取消;相同外观不重复写入。上传后回读皮肤像素/模型或活动披风,核对后才报成功。 +- 远端操作不具备本地文件事务语义。请求发出后的断线/取消、5xx、重定向及成功后暂时读不到结果,均保留“结果待核对”状态,不自动重发;必须刷新后才能再次操作。 +- 本地备份位于隔离/普通数据根的 `account-appearance/<账户标识哈希>-online-<随机标识>.json`,包含原皮肤、模型、活动/拥有披风 ID 及哈希,不含 token、密码或原始响应。每角色最多 64 份,达到上限先整理再修改,不静默删除。 + +接口依据为本轮匿名读取的 [Minecraft 官方角色页面脚本](https://www.minecraft.net/msaprofilejs/4b0ceb1d0f5e001c558e_03112026_1141/5031.chunk.ebe410810c8685ecbb97.js):皮肤使用 multipart `variant`/`file`,披风使用活动披风接口。未读取浏览器账户存储或 Cookie。 + +### 选择器与导出 + +- 使用 Avalonia 平台 StorageProvider;PNG 过滤同时声明扩展名、MIME 与 Apple `public.png` UTI,检查平台的打开/另存能力。 +- 选图前捕获角色、模型和代次,返回后再次核对;换号、取消和迟到结果不能给新角色上传。 +- 导出前捕获所选皮肤字节;另存只接受本机路径,先创建独立暂存、写入并刷新,再核对目录/文件身份并原子替换。坏图、取消、只读和链接目标不会截断原图。云端虚拟文件项不当作可原子替换的本地文件处理。 + +### 窗口关闭 + +- 关闭时取消并等待主操作,以及工具、设置和组件任务;30 秒仍未结束则保留窗口并提示重试,不强杀进程。 +- 启动器设置草稿提供保存、放弃和返回;验证/保存失败时保留窗口和草稿。 +- 实例、运行参数、服务器、存档设置和数据包排序草稿提示返回相应页面保存,避免“保存设置”误写其它实例或世界。未保存草稿放弃只影响当前内存,不删除文件。 +- 窗口真正关闭后再释放界面订阅。Bootstrap 仍负责服务、数据互斥和待写盘资源,不向窗口关闭流程添加游戏停止操作。 + +## 验证记录 + +- SDK 10.0.403,Avalonia 12.1.5,Release;第一轮 Windows Desktop 构建成功。 +- Core 首轮与最终完整回归均为 **652 通过、16 沿用平台跳过、0 失败**。最终包含 5xx 未知结果分类和输入大小前置检查,构建 0 警告/0 错误;首轮新增测试的 3 个过时 DataTestMethod 警告已消除。 +- Desktop 首轮:226 通过、1 失败、0 跳过。失败为旧 `ClosingWindowFinishesProfileWaitAndLeavesHostServiceOwnershipIntact` 在取消认证完成后立即检查订阅数,早于新增关闭等待的后续步骤;改为有界等待实际窗口关闭,继续检查挑战结束、订阅清零及服务归属。首失败 TRX/日志保留;R2 完整重跑 **228 通过、0 跳过、0 失败**(补入实例草稿关闭验证),构建 0 警告/0 错误。 +- Computer Use:窗口控件可读,截图 `FrameArrived timed out`,点击 `coordinate input geometry is unavailable`;按既有授权尝试 Windows 备用接口,检测到 LockApp 后立即停止输入,已请求解锁。没有点击真实账户授权或外观写入。 +- 最终 Windows 候选两个独立进程 PID 47996、3180:原生窗口句柄出现、Ready、Process.CloseMainWindow 正常关闭、exit0;同隔离目录重开,配置 SHA-256 不变。没有鼠标/键盘输入或真实账户写入。初次验收辅助脚本因正反斜杠比较拒绝路径,在任何关闭前退出;将两端都规范为绝对路径并严格匹配后通过,拒绝记录保留。这是辅助脚本问题,不是候选失败。 + +锁屏输入处理遵循本会话的 [Computer Use 技能](D:/DevCache/Codex/plugins/cache/openai-bundled/computer-use/26.1027.51404/skills/computer-use/SKILL.md)所引用 guidance.md:“If the Windows desktop is locked, stop immediately and ask the user to unlock the desktop.” 同时继续不依赖桌面的构建、测试和交付检查。 + +## 源码、候选与证据 + +- 实现提交:`073d31854e13e2ffba33041f77072483c5e03daa`;最终候选源码:`99ef4f2b8c4e1e89c80bba2b0d22dfc99cbe2a22`(补测试空行及最终回归记录,运行时代码相同)。仅本地提交,未推送、合并或发布。 +- Windows:win-x64、自包含、Release、SDK 10.0.403、Avalonia 12.1.5;268 个归档/磁盘文件逐一哈希匹配,apphost/CoreCLR/Skia/HarfBuzz 为 AMD64;源码干净,Windows 默认入口仍为 legacy WPF,敏感路径为 0。 +- 候选:`artifacts/windows-main-20261105/dist/r26-final-win/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.g99ef4f2b.zip`,81,730,672 字节。 +- 候选 SHA-256:`e0b7037f8340c5c04aece2113beecbe27d1f439907d8070a078a9d182af0efe8`。 +- macOS:同源 `99ef4f2b` 的 osx-arm64 Release 交叉构建成功,0 警告/0 错误;apphost 为 Mach-O ARM64,SHA-256 为 `2f0c280741cd62dcd7565dbdab68abd8d3f35a0652e57f91ec5fd16eef5d3d1c`。未构建/签名 Mac 原生 .app,未在 Mac 运行。 +- 非敏感证据:`artifacts/windows-main-20261105/dist/r26-evidence/SHOU-R26-validation-evidence.zip`,512,411 字节、37 项、0 张截图;含控制器、日志、TRX、首次失败/辅助脚本拒绝、原生进程重启、文件哈希、跳过原因和验收源码。SHA-256:`3e41c28caf9089d01788aa9363149a98911a6adf85914ea448a95eff40297cf1`。实际 .env 配置值匹配为 0,值不输出。 +- 证据首次预检被扫描器源码中的自身 PEM 检查字面量误拦,归档尚未创建;改为匹配独立 PEM 头行,仍保留真实配置值与凭据形状检查,重跑通过。拒绝记录保留,没有忽略实际密钥匹配。 +- 最终归档前任务 30.243 GiB、私有验收正增长 2.000 GiB,合计 32.243 GiB,35 GiB 预算内;证据归档另增不足 0.001 GiB。磁盘可用 238.761 GiB,重任务均已结束。保留本轮全部报告、失败记录、验证数据与候选,无需删除旧版工程或用户数据。 + +所有 R26 首失败、控制器和 TRX 位于 `artifacts/windows-main-20261105/reports` 与对应 `build/main/r26-*/.../reports`。敏感数据和真实账户缓存不进入证据包;当前只有隔离测试角色,PNG 和备份载荷不放入证据。 + +Mac 后续使用独立测试角色与 PNG 验证 Finder 打开/另存/取消、换号时迟到选择器结果、Cmd+W/系统退出、草稿保存失败和关闭重开;只在用户指定角色、皮肤和披风后操作真实在线外观。候选和非敏感证据跨机器优先 SMB,复制前后核对 SHA-256,源码经 Git 传递。不启动游戏。 + +## 解锁后的 Windows 补验 + +用户确认解锁后继续使用同一隔离角色。Computer Use 的截图仍超时、点击仍报 geometry unavailable;恢复前台后,按既有授权以本机备用输入和窗口截图接口验收。原生文件对话框不截图、不收集其它文件项。 + +- 原生打开 PNG 选择器并取消,皮肤记录仍为 0。 +- 通过包含中文和空格的本机路径选择合成 64×64 PNG,启动器头像及 3D 预览出现;保存记录的 PNG 与源文件一致。 +- 原生另存先取消,再保存至另一个中文/空格路径;源 PNG、记录中的 PNG、导出 PNG 的 SHA-256 均为 `d911a27d822c839da786442fe00214e18b340185938c3aac6b03dba3311b25cb`。 +- 设置页修改合成的自定义信息后点击关闭,“返回”保留草稿且配置哈希不变;再次关闭并选“保存并关闭”,全局 `settings.customInfo` 已保存且写前备份存在,应用报告 normal_close。该次前台辅助脚本未保留进程退出码监视,后续新候选以监视进程另验退出码。 +- 原生截图发现关闭提示标题被继承行高裁切,修正标题行高;皮肤模型选项缩短为“经典(4 像素)”“纤细(3 像素)”,避免窄下拉框换行。仅共享 Desktop 两处显示改动,Core 未变。 +- 修整后的 Desktop R3 完整回归仍为 228 通过、0 失败、0 跳过,构建 0 警告/0 错误。Core 未变,沿用本轮完整回归的 652 通过/16 跳过;没有因仅修改显示而重复整套 Core 测试。 +- 修整候选 PID 54652、23080 均以独立监视进程确认正常关闭 exit0,未强杀。第一次重开实际显示此前保存的头像和自定义信息;Esc 返回保留草稿,放弃草稿后配置哈希不变。第二次重开实际设置控件仍显示已保存值、未恢复放弃值;干净关闭通过。 +- 关闭标题完整显示,皮肤模型选项保持单行;图片选择取消仍保留原记录。源 PNG/导出 PNG 和皮肤记录哈希在重启后不变,配置 `.bak` 与保存前配置精确匹配。完整自动核验见 `reports/r26-native-supplement-audit.json`。 + +保存校验辅助脚本首次误查 `settings.launchOptions.customInfo`,改查全局 `settings.customInfo` 后确认值已保存;保留辅助脚本拒绝记录,不将其当作产品写盘失败。上述均为隔离测试数据,没有真实在线写入或游戏启动。 + +### 补验后交付 + +- 显示修整提交及推荐候选源码:`464528d42c493627d9a97be5fe348af62fe3f6b3`。 +- Windows win-x64、自包含、Release,SDK 10.0.403、Avalonia 12.1.5;268 文件逐项匹配,apphost/CoreCLR/Skia/HarfBuzz 为 AMD64,源码干净,敏感路径为 0。候选:`artifacts/windows-main-20261105/dist/r26-native-final-win/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.g464528d4.zip`,81,730,729 字节。 +- 推荐候选 SHA-256:`d7cc6cc738eb49f501541d8e1c0e5a6105c73163d89f35ff4090d3a5fff83fa3`。 +- 同源 osx-arm64 Release 交叉构建再次通过,0 警告/0 错误,apphost 为 Mach-O ARM64;Mac 原生 .app 打包、签名与运行仍待验。 +- 新增补充证据:`artifacts/windows-main-20261105/dist/r26-native-evidence/SHOU-R26-native-supplement.zip`,2,823,769 字节,47 项、7 张已检查的隔离窗口截图。没有文件对话框截图、PNG/皮肤记录/完整配置载荷或实际账户凭据;实际 .env 配置值匹配为 0。原 37 项证据归档不覆盖。 +- 补充证据 SHA-256:`e62536d108b25297d713c012fb6eb87ac0ca3a0cc4367808676ebe242af29379`。 +- 补充归档前任务 31.318 GiB、私有验收正增长 2.000 GiB,合计 33.317 GiB;新增 ZIP 不足 0.003 GiB,仍在 35 GiB 预算内。磁盘可用 237.651 GiB。候选进程与重任务已正常结束,用户原数据、旧工程与原有 stash 保留。 + +此次勾选只覆盖 Windows 的代表用例。Mac 原生、真实 Microsoft 在线外观往返、LittleSkin/MUA 写入协议、外观备份直接恢复界面,以及本文开头的其它功能缺口仍未完成;未推送、合并或正式发布。 diff --git a/docs/conduit/WINDOWS-UI-R8.md b/docs/conduit/WINDOWS-UI-R8.md new file mode 100644 index 00000000..0fcd48f0 --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R8.md @@ -0,0 +1,75 @@ +# R8:主页、账户区与独立游戏会话(2026-11-06) + +本轮先建立根目录 [todo.md](../../todo.md),再完善主页与启动行为。勾选表示对应 Windows 实现/验证已完成,双端原生门禁仍单列。此前的 [UI 复核](UI-PARITY-REVIEW-20261106.md) 是改动前快照,不改写其中历史结论。 + +## 源码与候选 + +- 分支:features/windows-parity,继续跟踪 origin/features/wpf-parity;本轮刷新远端引用仍为 fb1b483a,没有合并 dev/main。 +- 7eca075a:主页排版、三槽账户工具条、图标/字体、在线头像自动读取、左侧进度、多实例与独立游戏生命周期。 +- 74b20736:等待窗口时标题改为“已启动游戏”、长角色名保持单行省略并提供完整提示;补充状态转换断言与已完成清单。 +- 最终产品源码:74b2073697baffd0878383e0ca134520b452edf5。Release / win-x64 / 自包含,.NET SDK 10.0.403,Avalonia 12.1.5;构建时 source_dirty=false。 +- [最终 RC2 ZIP](../../artifacts/windows-main-20261105/dist/r8-home-rc2/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.g74b20736.zip):80,779,316 字节。 +- SHA-256:`c7093c7f5f2dae1e7056624ffd3b0396c95e63d22148d249f4a8611f4d916fbc`。 +- 干净候选经 Publish-Desktop.ps1 生成,配置从本机既有项目 .env 由构建入口读取,原文件未复制/修改;源码与候选无 .env、账户缓存、会话记录、日志或另行打包的字体。Lucide 许可与来源清单随包提供。 + +## 已修项 + +| 问题 | 结果 | +|---|---| +| SHOU 徽标偏位 | 明确徽标框与文字行高,横纵居中;标题、Logo 与导航统一对齐。保留现有 Windows 三钮与平台适配。 | +| 图标不一致、间距不足 | 顶栏、主页刷新和账户区复用 8 个独立 Lucide SVG,统一 24 单位视口、圆端/圆角及图文间距。保留 ISC/Feather MIT 文本和源/目标哈希;仅规范 SVG 换行,不复制 WPF 控件或字体。 | +| 字体、按钮不齐 | 平台主字体明确选 Windows Microsoft YaHei UI / Mac PingFang SC / Linux Noto Sans CJK SC,品牌 SHOU 使用系统拉丁字体;调整角色名、行高、增删命中区与工具条留白。长名保持单行省略。Mac 实际字体效果仍待原生。 | +| 有效在线角色头像未自动出现 | 原先自动任务只读缓存;现在缓存缺少皮肤时继续读取当前在线角色外观,保留取消和身份/代次检查。真实微软账户的预览按钮已自动可用,未截图真实账户。 | +| 账户工具缺少槽位 | 皮肤/披风菜单、账户操作菜单(刷新授权/官网)、选择档案三个等宽槽位;悬停、焦点及菜单打开时保持显示。铅笔按“账户操作”明确命名,不假称已经还原尚未观察确认的旧版铅笔全部业务。 | +| 底部常驻 PID/全局 Running | 主页启动任务在左侧显示实例、阶段、验证方式、当前文件进度和取消;等待窗口时显示“已启动游戏”;返回后恢复头像与启动区。首页不显示常驻 PID/停止长条;离开主页后仍可取消尚在进行的任务。 | +| 关闭启动器会停止游戏 | 已完成安全交接的游戏使用独立、有界、脱敏日志;正常关闭 UI 只断开观察,不停止游戏。启动失败、取消或会话登记失败仍清理本次未完成进程。 | +| 不能开其它实例 | 运行态改为每实例会话;不同实例可继续准备/启动,同实例重复启动和相应文件写操作由服务保护。正常操作不被全局 Running 锁住。 | +| 取消像错误 | 取消恢复头像与可重试按钮,不再生成黄色错误横幅;不伪造总体百分比。 | + +账户在线上传/穿戴、首页自动入服、下载自动首载和 Java 修复页面职责没有冒充本轮已完成,仍见 todo。 + +## 游戏所有权与保护边界 + +共享 Core 维护会话与实例保护;Windows 窗口观察位于平台层。公开启动命令行继续只有受信 Bootstrap/JVM 参数,实际游戏参数/凭据继续使用一次性私有 stdin,没有明文脚本或参数文件。 + +会话身份只记录 PID 与操作系统创建时间,按实例物理目录散列归属。登记在私有输入交接前完成;失败则停止新建的受控子进程。重开后按精确创建时间拒绝 PID 复用,只用于显示和保护实例,**磁盘记录不授权按 PID 终止进程**。损坏/无法核验的记录阻止该实例修改;历史记录保留,不删除用户数据。 + +Java 受信引导在游戏入口前建立独立日志,按行处理跨块敏感值,超长行省略,单文件上限 8 MiB;UI 退出后游戏可继续写日志。主线程进入方式及 macOS -XstartOnFirstThread 保持。停止指定的当前受控进程与关闭 UI 分离;重开后脱离 UI 的游戏目前使用游戏内 Quit,受验证的停止入口仍待完善。 + +## 实际验证 + +| 检查 | 本轮结果 | +|---|---| +| Desktop 全套 | 120 通过、0 失败、0 跳过;最终运行 r8-home-desktop-final。覆盖左侧进度、等待窗口标题、取消/恢复、三槽键盘导航、菜单、外观身份竞态及原有页面回归。 | +| Core 全套 | 346 通过、0 失败、16 显式跳过;最终运行 r8-home-core5。新增真实 JVM 独立存活/脱敏日志、重开记录/PID 复用、不同实例并行和登记失败清理回归。 | +| 原生账户/头像 | 使用当前用户、本项目既有验收数据,通过受支持读取路径;选中微软角色,外观自动读取后预览可用,没有账号截图/字段值输出。未重复执行旧缓存迁移或标准 OAuth 交互,R7 的完整刷新门禁仍是历史证据。 | +| 原生游戏 A | 已有 FO/Fabric 1.21.1 到主菜单;左侧恢复头像、同实例启动禁用;关启动器后游戏仍运行;游戏内 Quit exit0。 | +| 原生游戏 B | A 存活时,经新版下载 UI 创建独立原版 1.21.1 并启动。首次无障碍欢迎页点击 Continue 后,独立确认主菜单;关闭启动器后 A/B 均存活;B Quit exit0,A 不受影响。 | +| 重开与解锁 | 两个游戏存活时重开可识别;B 正常退出后约一个轮询周期(2 秒)恢复 B 的启动按钮,A 仍运行;随后 A 正常退出。三个私人验收启动器均正常关闭 exit0。 | +| 主页原生 UI | RC2 真实打开、正常/最小尺寸、三槽焦点、启动进度、取消恢复与关闭 exit0;RC1 另验浅/深色。当前显示器 96 DPI;正常外框 992×645、最小外框 896×576,不能把外框当客户区或声称全 DPI 通过。 | +| Mac | osx-arm64 Release 交叉构建通过;无 Mac 原生窗口、游戏、退出/多实例证据。Windows 窗口出现探针没有冒充 Mac 已实现。 | +| 包与清理 | ZIP 与落盘哈希核对、Lucide notices 随包、敏感文件排除检查;验收所有受控启动器/游戏均已正常退出,未强制结束这两款真实游戏。原主工作树未跟踪参考包/目录与 todo 保持。 | + +原生游戏/深色证据基于 7eca075a;最终 74b20736 仅追加上表的等待标题、角色名约束和清单/断言,Core、Java 引导与进程适配代码无变化。RC2 重新构建并原生复验主页、最小尺寸、焦点、取消与关闭,不重复算一次正版完整刷新。 + +16 项跳过为:8 项 POSIX/Windows 链接设施差异、1 项 POSIX 失败 keytool 子进程、3 项 Mac Keychain、1 项 Mac argv、2 项未开启的受控 JDK 副本门禁、1 项未开启的在线 Mac Java。现有独立 Windows junction/hardlink 测试仍执行;不把跳过当通过,也未为本轮 UI 重跑 R7 的 JDK 副本修复。完整逐项原因保存在阶段 JSON。 + +### 首次失败与采集限制 + +- r8-home-first:Desktop 118 通过/2 失败,断言仍按旧的直接刷新按钮/未打开菜单取 Command;按新菜单交互打开后检查并修正。 +- r8-home-desktop2:119 通过/1 失败,刷新图标断言仍要求 Path;更新为实际 Lucide 组件与主题检查。 +- r8-home-core:343 通过/1 失败,测试读取 Java 正在写入的日志时 FileShare 不匹配;改用共享读写读取。 +- r8-home-core2:344 通过/1 失败,1.5 秒假定存活的测试子进程在管道收尾期间已正常退出;改为明确释放信号,并去掉已脱离 UI 的管道等待。后续真实原生游戏存活和正常退出均通过。 +- 部分原生鼠标/截图在前台归属检查处被阻止,没有向其它窗口输入;重定位到受控窗口后继续。原生图 11 文件名含 main-menu,但内容实际是首次欢迎页,**只以图 13 算 B 主菜单证据**。原始失败日志和原始帧保留,没有覆盖。 + +## 本机证据入口与剩余项 + +- [阶段结果 JSON](../../artifacts/windows-main-20261105/reports/r8-home-stage-summary.json) +- [RC2 主页/焦点/最小窗口/进度/取消截图](../../artifacts/windows-main-20261105/evidence-r8-home-rc2/) +- [RC1 深色与两款游戏主菜单截图](../../artifacts/windows-main-20261105/evidence-r8-home-rc1/) +- [Desktop 最终测试日志](../../artifacts/windows-main-20261105/build/main/r8-home-desktop-final/Desktop/Release/win-x64/default/reports/test.log) +- [Core 最终测试日志](../../artifacts/windows-main-20261105/build/main/r8-home-core5/Desktop/Release/win-x64/default/reports/test.log) + +图片使用合成测试角色;真实游戏只截中性菜单。真实账户、凭据与私人原始运行报告留在本机原验收目录,没有加入 Git、候选、SMB 或本报告。证据目录被 Git 忽略,换机器不能假定源码中带有图片。 + +剩余优先项:Mac 原生、其它 DPI/跨屏/触屏、重开会话的受验证停止入口及更多运行中文件操作;首页自动入服、下载页自动加载、Java 全收口工具页;其余页面按 todo 的 P 编号继续。完整替代门禁未通过,保留旧 WPF 和默认入口;没有推送、PR、合并或发布。 diff --git a/docs/conduit/WINDOWS-UI-R9.md b/docs/conduit/WINDOWS-UI-R9.md new file mode 100644 index 00000000..3a3a0022 --- /dev/null +++ b/docs/conduit/WINDOWS-UI-R9.md @@ -0,0 +1,81 @@ +# Windows UI R9:外框、社团内容与 Minecraft 版本目录 + +2026-11-06。本轮只修改和验证启动器外壳及相关功能,**没有启动 Minecraft 游戏,也没有重新执行正版游戏验收**。旧 WPF 与 Windows 默认入口保留;没有推送、合并、发布或改写历史。继续使用独立工作树 `D:\Code\C#\SHOU-Launcher-Windows` 的 `features/windows-parity`,跟踪 `origin/features/wpf-parity`。 + +## 源码与候选 + +| 提交 | 内容 | +|---|---| +| `69e5eec2` | 原生圆角与去白边、方形账户按钮、社团 SRV/人数/内嵌日志、本地换衣预览、两条 Minecraft 流程、禁止游戏验证规则及测试。 | +| `2626e5e3` | 去掉旧原生框对默认尺寸、最小尺寸的额外像素补偿。 | +| `b44de00a` | 版本位图实际加载、正式版优先排列、分组铺满内容区及回归。 | +| `e43b3b62` | 账户两行文字在 32 高度内居中,修复 200% 下裁切并增加边界断言。 | +| `4df7700a` | 保留浅色顶栏配色,修复深色白色选中背景上的文字/图标对比度;增加浅深色对比度回归。 | + +最终产品源码:`4df7700a8f35f2d72d8d7182fcfce37a4ad904b7`。后续文档提交不改变产品源码。 + +- [Windows x64 Release 自包含 RC5](../../artifacts/windows-main-20261105/dist/r9-shell-rc5/Desktop/Release/win-x64/default/SHOU-Launcher-win-x64-v1.5.0-dev.g4df7700a.zip):80,821,994 字节。 +- SHA-256:`4901595138c9cb81dbfa799eb0b8748099ad237d2e49a15602e0f70f43a35523`。 +- .NET SDK **10.0.403**、Avalonia **12.1.5**;`source_dirty=false`,AppHost PE Machine `0x8664`。由既有 `Invoke-Dev.ps1` → `Publish-Desktop.ps1` 入口构建,仍是未签名本地候选。 +- 发布配置由原项目 `.env` 经既有入口读取,未复制其内容。266 个包内文件中,未发现 `.env`、账户/会话缓存、测试程序集或额外字体文件;[排除检查](../../artifacts/windows-main-20261105/reports/r9-package-exclusions-final.json)。 +- macOS ARM64 在相同最终源码上通过构建,0 警告、0 错误;这是交叉构建,**不代表 Mac 原生运行通过**。 + +## 参考输入与逐页复核 + +使用用户指定的 `D:\Code\C#\PCL-CE-SHOU\UI-Reference-WPF-20261105.zip`,SHA-256 `695784a4ca98f6079763220f2971ce8b78fc3ee71fd187298b4f39c27cea6615`。仅将其中 PNG 与可观察说明作为 UI 输入,没有读取旧 WPF 视图、样式、控件映射 JSON 或采集脚本。社团日志解析器只复用可移植业务文件 `PCL.Core/Conduit/ClubUpdateNotice.cs`;游戏版本图标直接复用独立位图并记录来源和哈希,不打包字体。 + +| 参考页面 | 差距与本轮结果 | 新版证据 | +|---|---|---| +| 01 启动首页 | 原先只有内部圆角、外层仍留白框;现在 HWND 客户区覆盖普通窗口,原生区域裁圆角。保留原三钮。 | [最终首页](../../artifacts/windows-main-20261105/evidence-r9-shell/72-final-light-home.png)、[最小窗口](../../artifacts/windows-main-20261105/evidence-r9-shell/60-final-minimum-200.png) | +| 01 账户行 | 原增删按钮狭长且不齐;现在两颗均为 32×32 DIP,图标居中、与下拉框共用上下边缘。两行账户文字分别采用 15/13 行高,原生测量均在边框内。 | [文字边界](../../artifacts/windows-main-20261105/evidence-r9-shell/59-selector-text-bounds.json) | +| 01 社团状态 | 原隔离数据根跳过查询,且固定连接 25565,未使用社团 SRV 的 30000;现首次自动查询、每分钟刷新、可手动重试。三个入口同属一个网关,人数取已知最大值,避免重复相加;未知与零人分开。实测三个入口均报告 1,主页显示 1。 | 最终首页及刷新状态提示;只做 TCP 状态查询,不启动游戏。 | +| 01 社团资源 | Wiki 与入服指南保留有效官网入口,HTTP 200;“社团更新日志”原先打开启动器 Releases,现改为读取社团网站的公开更新。 | [公开地址检查](../../artifacts/windows-main-20261105/reports/r9-club-links.json) | +| 05 更新日志 | 增加内嵌日期列表、展开正文、加载/错误、重试/刷新、可信源校验和有界缓存;只呈现纯文本,不执行远程 HTML。首次展开真实正文,重启后显示缓存,浅深色及 200% 最小窗口可读。 | [缓存重读](../../artifacts/windows-main-20261105/evidence-r9-shell/26-restarted-club-cache.png)、[最小窗口](../../artifacts/windows-main-20261105/evidence-r9-shell/56-history-minimum-loaded.png)、[深色](../../artifacts/windows-main-20261105/evidence-r9-shell/67-final-dark-history-loaded.png) | +| 03 皮肤与披风 | 已有真实 UV 投影能力,本轮从换衣菜单实际进入 3D,并补本地换衣页的同步模型预览。拖动、缩放、复位、外层/披风开关与 Esc 有回归;未上传或修改真实账户。 | [菜单进入预览](../../artifacts/windows-main-20261105/evidence-r9-shell/48-clothing-menu-3d.png)、[本地换衣](../../artifacts/windows-main-20261105/evidence-r9-shell/53-local-clothing-3d.png) | +| 30 Minecraft 自动安装 | 首次进入自动读版本;点击版本后下载并安装基础游戏,可选兼容加载器。消除“创建实例”主流程文案,内部继续使用跨平台统一安装模型。修复草方块/命令方块图标和分组宽度。 | [版本列表](../../artifacts/windows-main-20261105/evidence-r9-shell/44-final-catalog.png) | +| 40 Minecraft 安装包 | 独立于顶部自动安装:浏览版本 → 选择客户端/服务端 → 原生另存 → 文件校验。新增 `IMinecraftPackageService`,这条路径不创建实例、不调用 Java。当前使用校验后的官方 CDN,保留 HTTP 代理且不跟随重定向。 | [文件页](../../artifacts/windows-main-20261105/evidence-r9-shell/33-minecraft-files-loaded.png)、[下载完成](../../artifacts/windows-main-20261105/evidence-r9-shell/35-minecraft-file-download.png) | + +头像是受控测试皮肤;截图中的方块颜色用于检查 UV,并非真实用户的头像加载结果。本轮原生验收未读取真实账户缓存或截取真实账户新截图。此前 R7/R8 的正版与头像证据仍为历史证据。 + +## 原生与文件执行验证 + +- Windows 100%:默认 976×636、最小 880×560;实际圆角区域排除左上角,普通窗口客户区与外框相等。最小化/还原、最大化/还原及正常关闭通过。 +- Windows 200%:对应物理 1952×1272 / 1760×1120;账户按钮为 64×64 物理像素,文字无裁切。真实鼠标标题栏拖动 40×26 DIP 对应移动 80×52 像素;双击最大化、按钮还原通过。 +- 最大化客户区精确等于工作区,包括左侧任务栏:200% 下均为 `(146, 0, 3694, 2160)`;屏幕外原生调整框不会变成内容白边。[几何证据](../../artifacts/windows-main-20261105/evidence-r9-shell/62-final-maximized-frame.json)。 +- 3D 的原生旋转、滚轮缩放、复位、Esc 已操作;换衣菜单与本地换衣面板在 200% 最小窗口均可操作。首页和新增日志弹层也完成深色检查;RC5 顶栏选中态在两种主题下对比度均达到 4.5,见[最终深色首页](../../artifacts/windows-main-20261105/evidence-r9-shell/70-final-dark-contrast.png)。 +- 安装包页实际另存 **Minecraft 26.3 客户端**,41,483,720 字节,SHA-1 `e877b6a07acd633fb3bb475002175cec036e7b87`,与元数据匹配,实例列表前后都是空。只下载文件,没有运行它。[验证记录](../../artifacts/windows-main-20261105/reports/r9-package-download.json)。 +- 以上原生流程跨 RC1–RC5 进行:独立文件下载在 RC2 验证,此后 Core 无变化;目录图标/宽度于 RC3 复验,账户行高及最终窗口在 RC4 复验;RC5 补顶栏选中态对比度并复验浅深色首页。七次受控启动器运行均正常关闭 exit0、未触发超时清理,没有留下本轮启动器进程。 + +## 自动化、跳过与首次失败 + +| 检查 | 结果 | 证据 | +|---|---|---| +| Core 完整回归 | 351 通过,16 显式跳过,0 失败 | `build/main/r9-core-full/.../reports/tests.trx` | +| Desktop 完整回归 | 126 通过,0 跳过,0 失败 | `build/main/r9-nav-contrast/.../reports/tests.trx` | +| 最终 Windows 发布 | 通过,0 警告/错误,源码干净 | `build/main/r9-shell-rc5/.../reports/publish.log` | +| 最终 macOS ARM64 构建 | 通过,0 警告/错误 | `build/main/r9-mac-rc5/.../reports/build.log` | + +上述路径均在 `artifacts/windows-main-20261105` 下。Core 内容在首次产品提交后没有再改;之后新增的是桌面排版修复与相应测试。 + +16 个跳过项:4 个仅限 macOS 的 Keychain/OS argv;9 个需 POSIX 或另行准备 Windows 链接/失败子进程夹具;2 个显式真实 Java 修复副本门禁未启用;1 个在线 Java 下载门禁未启用。完整名称与原因见 [跳过记录](../../artifacts/windows-main-20261105/reports/r9-core-skips.json)。不把跳过计算为通过,也不为本轮 UI 任务额外开启这些门禁。 + +首次失败保留,没有覆盖日志: + +1. `r9-shell-tests`:3 通过/2 失败。一个新 DNS 夹具错误地编码为空目标,另一个暴露超大页面的 `InvalidDataException` 未被缓存回退捕获;修复夹具与异常分类后 `r9-shell-tests2` 5/5 通过。 +2. `r9-desktop-tests`:新测试引用了不存在的属性,编译失败;按实际 API 修正。`r9-desktop-tests2` 随后 123 通过/1 失败,为旧文案断言与新“下载并安装”文案不一致;更新断言后全过。 +3. RC1 原生发现最小尺寸额外多出旧框的 16 像素;RC2 修正尺寸。RC2 原生另发现字符串绑定未加载版本图标、折叠组只有标题宽度;RC3 修正,并增加实际图像与宽度断言。 +4. 200% 原生复核发现账户文字的继承行高超出 32 高度;RC4 修正为两行均在边框内。鼠标辅助脚本也按实际 DPI 换算后再测,旧未换算坐标的动作不作为标题栏验收证据。 + +短暂断开的输入会话曾使前台 HWND 为 0。期间使用已授权的原生控件接口完成目录与保存;用户解锁后,已补实际鼠标导航、换衣菜单、拖动和双击。没有改全局快捷键、DPI 或系统设置。 + +## 后续与交接 + +默认禁止游戏启动的规则已加入迁移工作树 AGENTS.md,并在原工作目录 AGENTS.md 本地记下;原目录其它既有文件保留。历史游戏授权、门禁和 todo 不能当作新授权。 + +仍未完成的项目保留在 [todo.md](../../todo.md):125%/150%、真正跨屏与完整快捷键/贴靠/触屏矩阵;Mac 原生;愚人节与特殊历史版本;独立包更多取消/覆盖/断网场景、镜像优先级与暂存文件体验;在线皮肤上传/披风写入;首页自动入服;Java 修复全部收口工具页等。没有将这些列为迁移完成。 + +- [按页面整理的证据文件夹](../../artifacts/windows-main-20261105/public-evidence-r9/README.md),每页含截图及大致说明,不含账户缓存、原始 UIA 树、原生文件选择器截图、日志或程序。 +- [非敏感 UI 证据 ZIP](../../artifacts/windows-main-20261105/SHOU-UI-Evidence-R9-RC5-20261106.zip):7,537,668 字节,SHA-256 `10df46681a8a4aaf08fe62b3da1d3c4d219aa586798b648dfbbf5adb5a78dbc9`。页面文件复制前后哈希一致。 +- 后续跨机器复制优先沿用 SMB,并核对 ZIP SHA-256;源码通过 Git。当前没有向 Mac 传输或声称 Mac 原生验收完成。 + +实现依据采用 Microsoft 的 [自绘窗口框](https://learn.microsoft.com/en-us/windows/win32/dwm/customframe)、[WM_GETMINMAXINFO](https://learn.microsoft.com/en-us/windows/win32/winmsg/wm-getminmaxinfo) 与 [SetWindowRgn](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowrgn) 文档;Windows 专属行为留在窗口适配层,共享页面和社团/下载业务继续供两端共用。 diff --git a/docs/conduit/WPF-PARITY-R5.md b/docs/conduit/WPF-PARITY-R5.md new file mode 100644 index 00000000..1ac531a7 --- /dev/null +++ b/docs/conduit/WPF-PARITY-R5.md @@ -0,0 +1,54 @@ +# Mac WPF 对等迁移候选 R5.1 + +2026-11-05。本轮继续三个既有功能分支与 cleanroom 分工,仅本地分阶段提交。没有推送、合并 PR、打标签、发布、删除 WPF 或切换 Windows 默认入口。完整替代 WPF 的门禁尚未通过。 + +## 候选与来源 + +- 产品提交:`6eae12d113cbf04d70ce81084413456ecd49a903`,干净 detached 工作树构建,`source_dirty=false`。 +- 本地包:`.shou-dev/dist/WPF-PARITY/r5.1/osx-arm64/SHOU-Launcher-osx-arm64-v1.5.0-dev.g6eae12d1.zip`。 +- 大小:48,184,766 字节。SHA-256:`e97b522175f7686fa1a39edc43567b91b4467fe480fcbe49524650f06885d91b`。 +- .NET SDK 10.0.403 / Avalonia 12.1.5 / Release / osx-arm64 / 自包含多文件;本地 ad-hoc 签名,未公证。 +- ZIP 重新解包后通过 `codesign --verify --deep --strict`;运行环境移除 SDK/PCL 构建输入与工具 PATH,程序目录没有 `.env`。 + +参考仍为 `UI-Reference-WPF-20261105.zip`,SHA-256 `695784a4ca98f6079763220f2971ce8b78fc3ee71fd187298b4f39c27cea6615`。实现只使用已去源码映射的可观察说明、132 张正式 PNG、新 SHOU 实现及官方协议/工具;未读取旧 WPF 视图、模板或其控件结构 JSON。存档协议另只读核对官方 Minecraft 1.21.1 client 与 mappings 的三个数据类,不涉及旧启动器 UI。 + +## 本轮行为 + +- Modrinth 资源可明确选择兼容实例,预检 required 依赖与冲突后安装真实文件,并保存双哈希清单。缓存下载、实例安装各有独立按钮与状态;optional 依赖不自动加入,已有不同文件不会被替换。 +- `.mrpack` 支持 vanilla/Fabric 客户端预检、可选文件选择、隔离新实例导入及导出。内容准备和持久化成功后才登记实例;`Installed=false`,游戏本体由首次正常安装/启动补全。下载锁和断点 sidecar 不进入实例;导出只包括清单资源及用户明确选入的本地路径。 +- Forge、NeoForge、Quilt 增加官方目录与自动安装接线,保留原版 Minecraft 标识,必须明确选择 loader 版本,与 Fabric 互斥。界面目前仅开放已验证的 Minecraft 1.21.1;其它版本可读目录并明确禁用安装。 +- Forge/NeoForge 使用校验后的官方 client CLI 安装器,在独立暂存目录执行;8 分钟超时,取消停止自有进程,运行期间检查整个暂存目录的 2 GiB/10,000 项/24 层限制。主类与父版本正确才提交安装收据,拒绝缓存字面链接与不同内容。处理器内部网络由官方 Java 工具负责,目前不支持带凭据的代理;不声称其全部请求都由共享 HTTP 下载器控制。 +- 离线角色支持本地 PNG、Classic/Slim 模型保存、真实头像与可旋转/缩放的 UV 方块模型、外层/披风预览及导出。在线外观只读接口与官网入口已有实现,未执行真实账户线上读写。本地皮肤不会改变原版游戏身份或游戏内皮肤。 +- 实例图标、分类、描述、收藏筛选与启动次数持久保存。次数从此版本起统计成功创建游戏进程的尝试,不表示主菜单成功。创建/选择/安装标志均先写盘再发布,失败保留旧状态与未知配置字段。 +- 截图支持图片复制、实例内回收与恢复最近删除;同名文件不覆盖。复制以请求序号和串行提交防止旧异步结果覆盖新剪贴板,离页/释放使旧请求失效。此处没有永久删除入口。 +- 世界详情增加出生点、世界运行时间;在已选隔离实例、游戏停止且 Java 1.21.1/3955 时,可显式保存作弊、难度及难度锁。数据包格式 48 且无 features 声明时,可批量启停已核实的 `file/*` 包;写前修订校验和原字节备份,未知 NBT 与内建/实验包保留。 + +## 验证与边界 + +完整 Core **296 通过、3 显式跳过**;Desktop **97 通过、0 跳过**。编译均零警告、零错误。不累加 worker、重试或重复执行的数量。R5.1 的 132 份 Core 源码和测试与已验证的 R5 逐文件 SHA-256 一致,因此沿用该 Core 全量结果;Desktop 已重新运行完整套件。跳过的是需显式启用的真实 Java 运行时/信任库集成测试;本轮未再次启用。 + +Core 回归包含真实文件/ZIP/NBT、写盘失败回退、未知字段保持、版本与内容修订冲突、链接/路径/体积限制、错误主类不记成功收据,以及稀疏文件触发处理器整体预算取消。UI 包含实际鼠标打开菜单、3D 拖动/缩放、最小窗口布局、三个剪贴板并发/离页/释放回归及世界草稿取消/冲突。Headless 不代表原生窗口或真实线上认证;剪贴板竞态用真实 PNG 头与转交对象身份验证,不把 Headless 的占位位图尺寸当成真实解码尺寸。 + +官方实时安装及启动计划:Minecraft 1.21.1 + Forge 52.1.21、NeoForge 21.1.265、Quilt 0.30.2 均通过。R5 `0a1110e5` 的 ZIP 另移走既有 NeoForge 成功收据,强制重新运行官方处理器,15.3 秒完成,安装/计划 PASS;R5.1 的加载器 Core 代码相同。这不是游戏主菜单证据。 + +RC1 `0d927f5` 已在 Mac 实窗验证皮肤菜单、原生 PNG 选择保存、真实头像/3D 旋转缩放/复位/Esc、实例描述/分类/收藏、截图复制调用/回收/恢复、本机 MRpack 预检与完整导入;正常关闭 exit0。导入配置字节正确,实例尚未安装游戏本体,且没有混入下载 sidecar。Mac 弹层改在所属窗口内承载,并经真实菜单验证;早期独立原生菜单无法被 CUA 主窗口观察的记录保留。 + +R5 GUI 首次启动遇到 `AvaloniaNativeRenderTimer.EnsureRegistered`,CUA 随后明确确认 Mac 锁屏。用户解锁后,同一 ZIP 成功完成世界设置保存、数据包启用→禁用→启用、显式重读及正常关闭 exit0。独立 NBT 解析核对四份备份,首份 SHA-256 与原始 `level.dat` 完全相同;仅作弊、难度与两项包列表变化,种子 42、出生点 10/64/-20、世界时间 6000、实验特性及未知字段保留。原始锁屏失败记录仍保留。 + +这轮实窗另发现实例列表设置按钮未跳转、数据包汇总仍显示旧提示。R5.1 将按钮改为对当前可见实例执行无参命令,保留隐藏行禁用检查;增加六实例、主窗口、无参激活及实际鼠标点击回归,并同步刷新数据包汇总提示。R5.1 ZIP 重新解包验签后,在移除 SDK/PCL 构建输入的 Mac 实窗验证按钮正常进入、保存的作弊/困难难度及两个已启用包重读、汇总提示正确。⌘W 关闭 exit0、无超时,世界文件哈希未因重读变化。此前 R5 和所有原始报告均保留。 + +CUA 截图仅在对话中显示,不声称已有本地截图文件。外部 Preview 绑定超时,跨应用图片粘贴未计为通过。世界文件写入验收也不等同于 Minecraft 游戏内重新加载世界。 + +本轮所有重任务使用既有预算/单锁入口,21 项 Git/分支守卫和 4 项生产空间判定边界通过。已有原始计划、`.env`、旧候选、报告和旧工程保留。源码、分支头、TRX、候选、原生操作和未完成项的机器证据位于 `.shou-dev/reports/wpf-parity-r5/`。 + +## 未完成清单 + +- Windows 真机、旧数据往返、DPAPI/凭据兼容与双入口互斥;按用户决定先完成 Mac,尚未切默认入口。 +- 其它 Minecraft 版本、OptiFine/Cleanroom/LegacyFabric/LabyMod/LiteLoader、独立安装器保存页,以及新加载器主菜单/正常 Quit。 +- Forge/NeoForge/Quilt 的 MRpack、CurseForge 包、其它下载托管来源、完整标签与手工 Jar 的项目身份识别。 +- 普通数据根的世界/服务器文件操作、其它存档/包格式、数据包更新/删除/排序、游戏内重载、直接进入世界、服务器 ping/快捷连接。 +- 真实在线外观读取验收、认证上传与披风穿戴;当前写入入口为官网。 +- 完整高级启动选项、全文语言切换、自动更新、工具/联机大厅、内嵌更新历史、全部主题与通用弹窗,以及 54 类页面逐页视觉对等。 +- 跨应用图片粘贴未验。 + +主要一手接口依据:[Modrinth 版本 API](https://docs.modrinth.com/api/operations/getversion/)、[MRpack 格式](https://support.modrinth.com/en/articles/8802351-modrinth-modpack-format-mrpack)、[Quilt Meta](https://meta.quiltmc.org/)、[Forge 官方安装器 CLI](https://github.com/MinecraftForge/Installer/blob/2.0/src/main/java/net/minecraftforge/installer/SimpleInstaller.java)。各 worker 的交付 JSON 另记录外观与 NBT 契约依据、原始哈希和首轮失败。 diff --git a/docs/conduit/WPF-PARITY-R6.md b/docs/conduit/WPF-PARITY-R6.md new file mode 100644 index 00000000..8e9d2f50 --- /dev/null +++ b/docs/conduit/WPF-PARITY-R6.md @@ -0,0 +1,63 @@ +# 跨平台迁移 R6 与 Windows 接手检查点 + +2026-11-05。用户已确认暂停 Mac 侧新增开发,转由 Windows 完成剩余 UI 与功能迁移,并明确授权本地提交、推送当前功能分支。此次仅推送 features/wpf-parity;未合并 dev/main、创建或合并 PR、打标签或正式发布。 + +## 已验证的候选 + +实际双端验收包为 R6 RC3,产品源码 b04b51a8802e887e9a5cce9438fba5ddff0eeb1b,干净 detached 构建树,source_dirty=false。.NET SDK 10.0.403 / Avalonia 12.1.5 / Release / 自包含多文件。 + +| 平台 | ZIP | 字节数 | SHA-256 | +|---|---|---:|---| +| macOS arm64 | SHOU-Launcher-osx-arm64-v1.5.0-dev.gb04b51a8.zip | 48224172 | e87c57fe3045d0fbd0a8f8c60091129b36ee38be71041b1d884b60130f4e0cf6 | +| Windows x64 | SHOU-Launcher-win-x64-v1.5.0-dev.gb04b51a8.zip | 78103814 | 92368674529d7321cb176d9d269e203f6a48f762bb02e389f44546011c2894d0 | + +Mac 本地位置:.shou-dev/dist/WPF-PARITY/r6-rc3/ 下的各 RID 目录。Mac ZIP 重新解包后通过 codesign --verify --deep --strict;签名仅为本地 ad-hoc,未公证。Windows 候选未正式签名,通过 SMB 3.1.1 传送并重新校验哈希,位于 Laptop 的 artifacts/mac-validation-r6/candidates/r6-rc3/。 + +最新接手产品提交为 69fe954(完整 SHA 以 Git 为准),额外修复新配置默认隐藏首页两块社团卡片的问题;显式保存的隐藏偏好仍保留。此修复完整 Desktop 回归通过,但用户随后暂停开发,因此没有构建或声称存在 RC4 原生候选。Windows 应先补验这个新配置默认状态。 + +## 本轮改动 + +- 移除首页常驻的大块“账户与安全存储”;动态安全状态保留在现有账户控件提示中,认证与账户管理能力保留。 +- Mac 原生关闭/最小化/全屏按钮位于左侧,品牌、Logo、标题右置;Windows 保留左侧品牌。账户悬浮工具条、选择配色和服务器勾选向正式参考图靠齐。 +- .zip/.mrpack 可以真实拖入窗口,先预检、显示清单与限制,再由用户明确确认创建独立实例。 +- CurseForge 客户端 ZIP 支持 vanilla/Fabric,精确核对项目/文件身份、类别、大小及 SHA-1;资源包放入 resourcepacks。无第三方下载地址时,仅接受 Modrinth 独立发布的同 SHA-1、同大小文件,并额外核验 SHA-512,不猜测 CDN 链接。 +- 归档文件仅作为清单指定的必装历史依赖按官方提供的 URL 下载;拒绝已拒审、恶意、删除状态及无官方地址的归档项。 +- 仅文件下载可以在既有官方 CDN 白名单内手动跟随最多三跳;API 仍拒绝重定向。保留取消、校验、暂存事务及安全错误上下文。 +- 导入后尚未准备游戏本体的实例,现在可以一键准备游戏/加载器并启动;失败或取消不会继续启动。 +- 首页去除内部验收用语;新配置默认显示社团介绍和服务器卡片,不覆盖已有明确隐藏偏好。 + +## 实际验收 + +完整 Core:345 通过、3 项显式跳过、0 失败;完整 Desktop:115 通过、0 跳过/失败。编译零警告、零错误。Core 三项跳过为需要显式启用的真实 Java/信任库集成测试,不与本轮原生游戏观察混算。最后默认显示修复只改 Desktop 与其测试,Core 源码和测试未变。所有首轮失败、修正与重试记录保留,不累加重复执行的数量。 + +| 样本 | Mac | Windows | +|---|---|---| +| Fabulously Optimized 6.5 MRpack | Finder 真实拖入;113 文件、48 Mod JAR、3 资源 ZIP,哈希/大小通过;RC2 一键首启、主菜单、Mod Menu、隔离超平坦世界渲染/保存、Quit exit0 | RC1 原生文件选择器导入 113 文件;RC2/RC3 复核原清单和文件不变 | +| Fabulously Optimized 6.5 CurseForge ZIP | RC3 Finder 真实拖入;113 文件、48 Mod JAR、3 资源 ZIP,逐文件双哈希/大小通过;一键首启、主菜单、Mod Menu、隔离超平坦世界渲染/保存、Quit exit0 | RC3 实际导入;113 文件、48 Mod JAR、3 资源 ZIP,独立官方元数据与落盘哈希/大小核验通过 | +| Fabulously Optimized 6.4 CurseForge ZIP | 未另做实际安装 | RC3 实际导入;74 文件、47 Mod JAR、3 资源 ZIP,核验通过 | + +Mac 两次游戏均为 Minecraft 1.21.1 / Fabric 0.19.3 / Java 21.0.13+9 arm64。日志加载 151 个模块(含嵌套依赖),主菜单显示 44 Mods,Mod Menu 显示 41 个可列出项;这几种计数含义不同。日志保留了上游版本提示、配置补全及 Steam Deck 检查等警告。没有把短时测试当作任意整合包、长时间游玩、多人或光影兼容保证。 + +Windows 为 Laptop / Windows 10 Pro 19045 x64 / 200% DPI。R5.1、RC1、RC2、RC3 均实际运行自包含启动器;四项导航、976×636 / 880×560 DIP、最小化/恢复、真实关窗 exit0 有独立 UIA/Win32 证据。RC3 运行约 571 秒后正常关闭,无残留窗口。Windows 本轮没有启动游戏、安装 Java/SDK 或进行真实在线认证。此前隔离 DPAPI 写/读/删除、相同数据根互斥已通过,不代表旧 WPF 凭据兼容已通过。 + +原生 CUA 遇到窗口绑定/截图/坐标缺失后,用户分别明确授权本轮限定窗口的官方系统接口。Mac 仅操作候选、测试游戏和样本 Finder;Windows 仅操作候选/原生文件选择器。未绕过系统登录或自动批准权限。 + +## 尚待 Windows 处理 + +- 用户指出新版 Windows 右上角缺少最大化按钮:现有截图确实只有最小化与关闭。完整窗口行为及图标/字体基线应优先修正。 +- RC3 Windows 首页卡片因新配置默认 false 被隐藏;69fe954 已改默认 true 并验证缺文件、空 JSON、单字段与显式 false 保存重读,原生补验待 Windows 继续。 +- 按新产品方向移除启动器联机大厅/EasyTier 等专属模块;保留游戏原生多人、服务器数据、认证、下载与代理。 +- 将已有 Java 证书检查/独立修复副本能力增加到工具入口,复用服务,不改全局信任或源 Java。 +- 完整 54 类视觉/业务对等、未完成加载器/整合包类型、高级设置、世界/数据包/服务器工作流、在线外观与全文语言等仍需逐项登记。 +- Windows 真实游戏/正版登录、旧数据往返、旧凭据迁移与旧新入口互斥;这些门禁通过前保留旧 WPF 工程与默认入口。 +- Mac 的公证、Windows 正式签名、合并 dev/main 与正式发行均未执行。 + +## 证据与交接 + +cleanroom 参考仍为 132 张正式 PNG 和去源码映射的可观察说明,原归档 SHA-256 为 695784a4ca98f6079763220f2971ce8b78fc3ee71fd187298b4f39c27cea6615。未向实现 agent 提供旧 WPF 视图/样式代码、结构映射或采集脚本。 + +本地完整记录位于 .shou-dev/reports/wpf-parity-r6/,含 TRX、构建信息、样本哈希、Mac 窗口截图、游戏日志、Windows 逐文件官方校验及原失败链。Windows 原始报告位于 D:\Code\C#\PCL-CE-SHOU\artifacts\mac-validation-r6\;Mac 副本的 Windows/ 子目录通过 SMB 逐文件校验。忽略目录中的原始证据、候选和凭据不随 Git 推送。 + +只回收了 RC1/RC2 已停止的可重复解包副本,保留对应 ZIP、哈希、实例、参考和报告,以维持既有 35 GiB 任务预算。原 .env、未跟踪计划及 worker 的旧共享前置改动保留。Mac 后台候选、游戏和重任务均已结束。 + +Windows 接手任务见 [WINDOWS-HANDOFF-R6.md](WINDOWS-HANDOFF-R6.md)。归档依赖策略依据:[CurseForge 官方文件类型说明](https://support.curseforge.com/support/solutions/articles/9000197242-file-project-types-and-additional-fields);该支持说明允许归档文件作为包/Mod 依赖,REST 的 isAvailable=false 与归档状态组合按严格限定范围解释。 diff --git a/docs/conduit/WPF-PARITY.md b/docs/conduit/WPF-PARITY.md new file mode 100644 index 00000000..5ca251fe --- /dev/null +++ b/docs/conduit/WPF-PARITY.md @@ -0,0 +1,129 @@ +# WPF 样式与功能对等移植 + +最新检查点见 [R6 双端验收与剩余项](WPF-PARITY-R6.md)。2026-11-05 起按用户决定暂停 Mac 侧新增开发,转由 Windows 接手;任务说明见 [Windows 接手 Prompt](WINDOWS-HANDOFF-R6.md)。下文保留此前 R1–R5 历史与逐页门禁。 + +本轮按 Windows 截图恢复信息架构和紧凑样式,使用既有 Avalonia12.1.5 控件。目标是完整取代WPF;当前仍是迁移候选,尚未达到删除旧入口的门禁。 + +## cleanroom 输入 + +参考归档:`UI-Reference-WPF-20261105.zip`,SHA-256 `695784a4ca98f6079763220f2971ce8b78fc3ee71fd187298b4f39c27cea6615`。已独立核对54类页面、132张正式截图;PNG之外的capture中间图不计数。仅提取截图与去除源码映射的可观察说明;包内XAML控件结构、源码覆盖映射及采集脚本未供实现agent使用,未读取旧WPF视图代码或样式模板。原有可移植业务接口继续复用。 + +参考图为Windows200%缩放,约976×635.5 DIP;新主窗基准976×636,标题栏48,启动账户区300,设置导航135,下载导航180。图中用户名、路径、版本数量、在线人数等不会写死。新版仍是一套跨平台Desktop/VM/Core,平台差异限于窗口和适配器。 + +## 分工与分支 + +本轮继承`features/macos-native-validation@3d9205cc`,其基线为本社团`origin/dev@b97b5656`。 + +- `features/wpf-parity`:主工作区、Core业务/接口、实例页、整合与验收。 +- `features/wpf-parity-shell`:窗口/四项导航、共享主题、启动与工具、下载目录与资源页。 +- `features/wpf-parity-settings`:设置/账户;第二批另负责NBT世界与服务器业务。 + +两worker按原任务的gpt-6.1-sol/max配置运行,不递归扩编;每人独立工作树、精确自有文件patch交付。只做本地阶段提交,未推送/合并PR/发布。旧分支及未提交输入保留;所有重任务仍受单锁和35GiB任务预算控制。 + +## 首批业务 + +- 启动/下载/设置/工具四项主导航和上下文返回;按场景改变左栏,保留真实认证、设备码/角色选择、离线档案、Java信任、代理及aria2密钥保护。 +- 全局窗口宽高、全屏、初始内存与自定义说明真实接入启动计划;任意JVM参数等未支持项不假保存。 +- Minecraft版本目录、Fabric目录、Modrinth资源检索/版本文件下载/收藏,使用现有代理/来源策略。资源下载有SHA-1/size校验;项目图标限制来源和大小,失败回退图块。 +- 实例检索、改名、独立Java/内存、文件分类读取/导入、模组启停及实例ZIP导出;拒绝链接逃逸与覆盖同名文件。SHOU实例ZIP不是对MRpack/CurseForge格式的完整兼容声明。 +- 修正实例列表重建时ListBox把新选中实例回写null的问题;修正高级来源选项的祖先DataContext空绑定警告。原Fabric业务契约测试保留,新下载流程另有交互测试。 +- 活动进程停止/释放已移除UI同步上下文依赖,并用停止调度线程的真实Java子进程回归验证;Mac实窗关闭活动游戏的补验单列。 + +## Mac 校对检查点 + +指挥官已确认先完成Mac侧复刻。首轮干净候选`aae7cb49`已在976×636 DIP实窗观察首页、启动设置、真实官方版本目录/安装配置、实例筛选/概览;官方目录实际返回922条,未使用截图中的版本数。实测发现的Fluent选中配色、下载侧栏180DIP、设置页滚动/页脚、下载页滚动继承和实例筛选丢失选中均已有回归修正。macOS改用原生窗口装饰,⌘W/⌘,已通过控件测试,AppKit按钮仍需新候选实窗确认。 + +首页介绍卡134DIP、四项服务器卡239DIP已由真实控件Bounds核验;动态数据可缩小卡片、窄窗可换行。实例截图页增加真实PNG缩略图画廊,限制预览尺寸/数量并在离页时释放;损坏图片显示回退。NBT世界/服务器/数据包Core已实现,并保留未知NBT字段、修订冲突和写前备份;当前仅允许选中的隔离实例访问,普通数据根尚未开放。 + +第二批完整Core回归221通过、3项专用环境测试跳过;接入世界界面前的Desktop回归62通过,编译均零警告/错误。新回归包含同SHA-1不同文件的旧任务重试、实例内存覆盖冲突保持原配置、导出链接别名不能携带私有文件,以及实例搜索清除后的可见选中恢复。计数不与worker重复累加。 + +首轮实窗关闭活动游戏时,启动器正常exit0、Java按主动取消清理,未触发外层超时;这项验证不等同于游戏主菜单的Quit正常退出,后者有前轮N5的单列证据。 + +第三批世界/数据包与服务器界面已整合:真实NBT列表/只读详情、数据包ZIP导入、服务器每实例草稿/显式保存/备份/修订冲突,路由返回与顶栏同步。忙态后仅补发当前未读路由,旧结果只更新原实例缓存。完整Desktop整合回归71通过、0失败/跳过,编译零警告/错误;全页测试抓到的三个空世界详情绑定告警已修正,保留首轮失败证据。共享Fluent输入控件的实际模板颜色在浅/深色及交互/禁用状态均有回归覆盖,等待R3实窗验收。 + +R3干净源码`0d694005`已通过Mac实窗:设置控件最终配色、实例概览、世界列表→详情→数据包、原生ZIP文件选择器、服务器新增/修改/显式保存/写前备份、PNG画廊与正常关窗exit0。世界/服务器/图片使用标明的隔离测试素材;导入ZIP与源文件哈希相同,`level.dat`哈希未变。真实Modrinth搜索“Fabric API”,详情250条/精确1.21.1筛选36条,下载2,452,735字节文件到缓存,SHA-1 `810b2b0195371a012906241d8b85a32a1d6de53c`匹配;未自动装入实例。 + +R3首次启动遇到锁屏下原生渲染计时器注册失败,保留失败记录;指挥官解锁后同一归档重试成功,后续窗口期间临时保持屏幕唤醒。最后一次画廊校对移除截图页不适用的模组/安装按钮并调整三列边距,作为R4交付源码;Core逻辑与R3一致。 + +## 验收方式 + +下表为 R4 基线;本轮新增的实际资源/加载器安装、皮肤 3D、实例个性化、截图回收与世界编辑见 [R5 迁移记录与剩余清单](WPF-PARITY-R5.md)。 + +视觉结构、业务可用和原生实测分开登记。构建/Headless不能代替实窗截图;目录/搜索的协议fixture不能代替真实网络;交叉构建不能代替Windows运行。按实际测试命令与源码检查点保存报告,不把未触发、加载中、403错误或禁用占位记为功能完成。 + +| 参考分类 | 当前状态 | +|---|---| +| 01-启动-首页 | R2实窗已校对:134/239DIP卡片、四导航与真实动态数据 | +| 02-启动-账户管理 | 紧凑渠道/账户结构已实窗;真实在线授权仍沿用前轮测试 | +| 03-启动-皮肤与披风 | 菜单结构;头像、皮肤、披风与3D预览未接入 | +| 04-启动-添加账户 | 首批实现,待实窗逐页校正 | +| 05-首页-社团更新历史 | 外部更新入口可用,内嵌历史未移植 | +| 10-设置-启动选项 | 结构与窗口/初始内存已接入;可见性/优先级等未接入 | +| 11-设置-Java | 首批实现,待实窗逐页校正 | +| 12-设置-管理与下载 | 首批实现,待实窗逐页校正 | +| 13-设置-联机 | 部分结构 / 功能待补 | +| 14-设置-个性化 | 首批实现,待实窗逐页校正 | +| 15-设置-语言 | 选择器偏好可保存,全文语言切换未接入 | +| 16-设置-杂项 | 首批实现,待实窗逐页校正 | +| 17-设置-软件信息 | 首批实现,待实窗逐页校正 | +| 18-设置-软件更新 | 说明与仓库入口;自动更新未接入 | +| 19-设置-反馈 | 部分结构 / 功能待补 | +| 20-设置-查看日志 | 首批实现,待实窗逐页校正 | +| 21-工具-联机大厅 | 部分结构 / 功能待补 | +| 22-工具-百宝箱 | 部分结构 / 功能待补 | +| 23-通用弹窗 | 部分结构 / 功能待补 | +| 30-下载-自动安装 | 真实官方目录/分组已实窗,安装已有业务/交互测试 | +| 31-下载-安装配置 | 原版与Fabric可实际创建安装,目录切换滚动已修正 | +| 32-下载-模组 | Modrinth检索/详情/缓存下载已接入,依赖安装待补 | +| 33-下载-资源详情 | 首批实现,待实窗逐页校正 | +| 34-下载-整合包 | Modrinth检索/下载缓存可用,整合包安装待补 | +| 35-下载-数据包 | 首批实现,待实窗逐页校正 | +| 36-下载-资源包 | 首批实现,待实窗逐页校正 | +| 37-下载-光影包 | 首批实现,待实窗逐页校正 | +| 38-下载-世界 | 尚无可用数据源,明确禁用 | +| 39-下载-收藏夹 | 资源收藏JSON可用,实例收藏未实现 | +| 40-安装包-Minecraft | 部分结构 / 功能待补 | +| 41-安装包-OptiFine | 部分结构 / 功能待补 | +| 42-安装包-Forge | 部分结构 / 功能待补 | +| 43-安装包-NeoForge | 部分结构 / 功能待补 | +| 44-安装包-Cleanroom | 部分结构 / 功能待补 | +| 45-安装包-Fabric | 部分结构 / 功能待补 | +| 46-安装包-LegacyFabric | 部分结构 / 功能待补 | +| 47-安装包-LabyMod | 部分结构 / 功能待补 | +| 48-安装包-LiteLoader | 部分结构 / 功能待补 | +| 50-实例-选择 | R2实窗筛选清除恢复已通过;无匹配行禁用打开已回归 | +| 51-实例-概览 | 参考结构/真实改名弹层已校正,计数/图标/分类/收藏待补 | +| 52-实例-设置 | 独立Java/内存可保存,完整高级参数待补 | +| 53-实例-修改 | 首批实现,待实窗逐页校正 | +| 54-实例-导出 | SHOU ZIP可导出并过滤私有文件;MRpack/CurseForge格式未完成 | +| 55-实例-存档 | 选中隔离实例NBT列表/检索已通过R3实窗 | +| 56-实例-截图 | 真实PNG画廊/损坏图回退/尺寸限制;删除/复制未接入 | +| 57-实例-模组 | 首批实现,待实窗逐页校正 | +| 58-实例-资源包 | 首批实现,待实窗逐页校正 | +| 59-实例-光影包 | 首批实现,待实窗逐页校正 | +| 60-实例-投影原理图 | 首批实现,待实窗逐页校正 | +| 61-实例-服务器 | NBT增改删草稿/显式保存/备份/冲突已接入;ping/快捷连接待补 | +| 62-实例-模组关系 | 部分结构 / 功能待补 | +| 63-存档-详情 | 只读名称/种子/版本/模式等已接入;世界编辑/直接进入待补 | +| 64-存档-数据包 | R3原生ZIP选择导入/列表已通过;启停/更新/删除待补 | +| 65-实例-不支持模组 | 首批实现,待实窗逐页校正 | + +## 完全取代 WPF 的剩余门禁 + +需要补齐未支持加载器、内容安装/依赖、世界/服务器/数据包、皮肤/工具/主题与完整设置/弹窗行为;完成Windows原生运行、旧配置/实例/禁用Java导入、旧→新→旧数据往返、DPAPI/密钥兼容和双入口互斥。通过这些门禁后才切Windows默认入口和移除旧工程;此次没有删除WPF。 + +## 本地 Mac 候选 R4 + +2026-11-05,产品源码`dde1d8ea50f74f836f146b95ea94ef045a8a9d71`。候选来自干净detached构建树,`source_dirty=false`;.NET SDK10.0.403 / Avalonia12.1.5 / Release / osx-arm64 / 自包含。签名为本地ad-hoc,未公证。 + +归档:`.shou-dev/dist/WPF-PARITY/r4/osx-arm64/SHOU-Launcher-osx-arm64-v1.5.0-dev.gdde1d8ea.zip`,47,987,629字节。SHA-256:`5dc22e4e1927cc1f4bae9163b85d400408a2adca5f609a5b9927e9d5cc230ced`。 + +R4从该ZIP重新解压并通过`codesign --verify --deep --strict`,在移除SDK/PCL构建变量与工具PATH的环境启动。外部CUA已核验首页、实例上下文、最终三列画廊及正确工具栏;重启后仍可读取R3保存的服务器、世界种子42和两个数据包ZIP。⌘W关闭后exit0,无超时、无遗留候选进程;临时屏幕唤醒随验收进程结束。 + +完整回归:Core221通过/3项专用运行时与在线测试跳过,Desktop71通过/0失败/0跳过,编译零警告/错误。R4与R3的Core源码/测试树相同;原生ZIP导入、服务器显式保存/备份和真实Modrinth下载的完整操作证据在R3,R4补验持久数据重读与最后画廊修正。Minecraft主菜单与Quit的前轮N5证据单列,本轮未重做这一项。 + +三个本地分支均保留阶段提交:整合`features/wpf-parity`,窗口/下载`features/wpf-parity-shell@852ffaa8`,设置/世界`features/wpf-parity-settings@bce79852`。worker改动以校验后的自有文件补丁整合;未推送、未合并PR、未发布。旧WPF入口、原`.env`及未跟踪任务计划保留。21项Git/分支守卫检查通过;本轮重任务已结束。 + +完整机器记录:`.shou-dev/reports/wpf-parity/FINAL.json`,包含归档与参考哈希、分支提交、TRX、实窗观察与未完成清单;R1/R2/R3的失败和修正记录均保留。实窗截图由CUA直接显示在对话中,未声称存在本地截图文件。上表的54类仍分别标注范围,完整视觉与业务对等尚待补齐。 + +本机原始参考与证据位于`.shou-dev/references/wpf-20261105/`及`.shou-dev/reports/wpf-parity/`。外部API依据:[Modrinth搜索](https://docs.modrinth.com/api/operations/searchprojects/)、[项目版本](https://docs.modrinth.com/api/operations/getprojectversions/)、[Fabric Meta](https://github.com/FabricMC/fabric-meta/blob/master/README.md)。 diff --git a/global.json b/global.json new file mode 100644 index 00000000..c63cadf8 --- /dev/null +++ b/global.json @@ -0,0 +1,3 @@ +{ + "sdk": { "version": "10.0.403", "rollForward": "disable", "allowPrerelease": false } +} diff --git a/scripts/conduit/Assert-DesktopBundle.ps1 b/scripts/conduit/Assert-DesktopBundle.ps1 new file mode 100644 index 00000000..cb1a0479 --- /dev/null +++ b/scripts/conduit/Assert-DesktopBundle.ps1 @@ -0,0 +1,53 @@ +[CmdletBinding()] +param([Parameter(Mandatory)][string]$Executable, [Parameter(Mandatory)][string]$Dotnet, + [Parameter(Mandatory)][string]$CoreAssembly, [Parameter(Mandatory)][string]$ReportPath, + [Parameter(Mandatory)][ValidateSet('win-x64','win-arm64')][string]$RuntimeIdentifier) +$ErrorActionPreference='Stop' +$sdk=& $Dotnet --version +$model=Join-Path (Split-Path $Dotnet) "sdk/$sdk/Microsoft.NET.HostModel.dll" +if (-not (Test-Path -LiteralPath $model)) { throw 'The locked SDK bundle verifier is missing.' } +$null=[Reflection.Assembly]::LoadFrom($model) +[long]$header=0 +if (-not [Microsoft.NET.HostModel.Bundle.Bundler]::IsBundle($Executable,[ref]$header)) { throw 'Windows output is not a .NET bundle.' } +$stream=[IO.File]::OpenRead($Executable) +$reader=[IO.BinaryReader]::new($stream) +try { + $stream.Position=$header + $major=$reader.ReadUInt32(); $minor=$reader.ReadUInt32(); $count=$reader.ReadInt32(); $null=$reader.ReadString() + if ($major -ne 6 -or $minor -ne 0 -or $count -lt 10 -or $count -gt 10000) { throw 'Unexpected SDK bundle format.' } + # SDK Manifest.Write: two config locations and flags, followed by FileEntry.Write records. + # https://github.com/dotnet/runtime/blob/main/src/installer/managed/Microsoft.NET.HostModel/Bundle/Manifest.cs + for($i=0;$i -lt 5;$i++){ $null=$reader.ReadInt64() } + $entries=@() + for($i=0;$i -lt $count;$i++) { + $offset=$reader.ReadInt64();$size=$reader.ReadInt64();$compressed=$reader.ReadInt64();$type=$reader.ReadByte();$name=$reader.ReadString() + if($offset -lt 0 -or $size -le 0 -or $compressed -ne 0 -or $offset+$size -gt $header -or $name.StartsWith('/') -or $name.Split('/') -contains '..') { throw 'Invalid or compressed bundle entry.' } + $entries+= [pscustomobject]@{name=$name;offset=$offset;size=$size;type=$type} + } + foreach($name in @('SHOU.Launcher.Desktop.dll','SHOU.Launcher.Core.dll','System.Private.CoreLib.dll','libSkiaSharp.dll','libHarfBuzzSharp.dll','SHOU.Launcher.Desktop.runtimeconfig.json','SHOU.Launcher.Desktop.deps.json')) { + if(@($entries | Where-Object name -EQ $name).Count -ne 1){throw "Required bundle entry is missing/duplicated: $name"} + } + if($entries | Where-Object name -Match '(?i)(^|/)(\.env|UserKey\.bin|shou\.desktop\.v1\.json|config\.v1\.(json|yml)|credentials-v1)(/|$)'){throw 'Private data entered the bundle.'} + # The SDK's singlefilehost statically contains the Windows runtime; coreclr/clrjit + # need not appear as separate manifest entries. Require its self-contained config. + $runtimeEntry=$entries | Where-Object name -EQ 'SHOU.Launcher.Desktop.runtimeconfig.json' + $stream.Position=$runtimeEntry.offset + $runtime=[Text.Encoding]::UTF8.GetString($reader.ReadBytes([int]$runtimeEntry.size)) | ConvertFrom-Json + if($runtime.runtimeOptions.framework -or $runtime.runtimeOptions.frameworks -or -not ($runtime.runtimeOptions.includedFrameworks | Where-Object name -EQ 'Microsoft.NETCore.App')){throw 'Bundle is not configured as self-contained.'} + $core=$entries | Where-Object name -EQ 'SHOU.Launcher.Core.dll' + $stream.Position=$core.offset; $coreBytes=$reader.ReadBytes([int]$core.size) + $coreHash=[Convert]::ToHexStringLower([Security.Cryptography.SHA256]::HashData($coreBytes)) + if($coreHash -ne (Get-FileHash -LiteralPath $CoreAssembly -Algorithm SHA256).Hash.ToLowerInvariant()){throw 'Bundled Core differs from the fresh build owner.'} + $machine=if($RuntimeIdentifier -eq 'win-x64'){0x8664}else{0xAA64} + $native=@() + foreach($entry in @([pscustomobject]@{name='apphost';offset=0;type=2}) + @($entries | Where-Object type -EQ 2)) { + $stream.Position=$entry.offset + if($reader.ReadUInt16() -ne 0x5A4D){throw 'Expected a Windows PE native component.'} + $stream.Position=$entry.offset+0x3C;$pe=$reader.ReadInt32();$stream.Position=$entry.offset+$pe + if($reader.ReadUInt32() -ne 0x4550 -or $reader.ReadUInt16() -ne $machine){throw 'Native component architecture mismatch.'} + $native+=$entry.name + } + [pscustomobject]@{format="$major.$minor";entryCount=$count;coreSha256=$coreHash;selfContained=$true;includedFrameworks=$runtime.runtimeOptions.includedFrameworks;nativeArchitecture=$RuntimeIdentifier;nativeComponents=$native;entries=$entries} | + ConvertTo-Json -Depth 6 | Set-Content -LiteralPath $ReportPath -Encoding utf8 + Write-Host "Verified single-file bundle: $count entries; native components match $RuntimeIdentifier; Core matches fresh build." +} finally {$reader.Dispose()} diff --git a/scripts/conduit/Build-Shared.ps1 b/scripts/conduit/Build-Shared.ps1 new file mode 100644 index 00000000..370d58ab --- /dev/null +++ b/scripts/conduit/Build-Shared.ps1 @@ -0,0 +1,150 @@ +# Shared input and environment contract for legacy and Avalonia hosts. +. (Join-Path $PSScriptRoot 'BuildEnvironment.ps1') + +function Resolve-ConduitCanonicalPath([string]$Path) { + $full = [IO.Path]::GetFullPath($Path) + $root = [IO.Path]::GetPathRoot($full) + $current = $root + foreach ($part in $full.Substring($root.Length).Split([IO.Path]::DirectorySeparatorChar, [StringSplitOptions]::RemoveEmptyEntries)) { + $current = Join-Path $current $part + if (Test-Path -LiteralPath $current) { + $item = Get-Item -LiteralPath $current -Force + if ($item.LinkTarget) { $current = $item.ResolveLinkTarget($true).FullName } + } + } + return [IO.Path]::GetFullPath($current) +} +function Assert-ConduitTaskPath([string]$Path, [string]$TaskRoot = $env:SHOU_DEV_ROOT) { + if ([string]::IsNullOrWhiteSpace($TaskRoot)) { throw 'SHOU_DEV_ROOT is required; use scripts/dev/Invoke-Dev.ps1.' } + $root = (Resolve-ConduitCanonicalPath $TaskRoot).TrimEnd([IO.Path]::DirectorySeparatorChar) + $resolved = Resolve-ConduitCanonicalPath $Path + $comparison = if ($IsWindows) { [StringComparison]::OrdinalIgnoreCase } else { [StringComparison]::Ordinal } + if (-not $resolved.StartsWith($root + [IO.Path]::DirectorySeparatorChar, $comparison)) { throw "Task path escaped registered root: $resolved" } + return $resolved +} +function Assert-ConduitHeavyGate { + if (-not $env:SHOU_WORKER -or -not (Test-Path -LiteralPath (Join-Path $env:SHOU_DEV_ROOT 'state/heavy-owner.json'))) { + throw 'Heavy build must run through control/dev.py (or scripts/dev/Invoke-Dev.ps1).' + } + $owner = Get-Content -Raw -LiteralPath (Join-Path $env:SHOU_DEV_ROOT 'state/heavy-owner.json') | ConvertFrom-Json + if ($owner.worker -ne $env:SHOU_WORKER) { throw 'Heavy task owner mismatch.' } +} +function New-ConduitJavaBootstrap([string]$Repo,[string]$BuildRoot) { + Assert-ConduitHeavyGate + $build=Assert-ConduitTaskPath $BuildRoot + $source=@(Get-ChildItem -LiteralPath (Join-Path $Repo 'src/SHOU.Launcher.Core/Java/Bootstrap') -Filter '*.java' -File | Sort-Object Name) + if(-not $source.Count){throw 'Trusted Java bootstrap source is missing.'} + $registry=Get-Content -Raw -LiteralPath (Join-Path $env:SHOU_DEV_ROOT 'control/tools.json') | ConvertFrom-Json + $suffix=if($IsWindows){'.exe'}else{''} + if($registry.java.home) { + $javac=Join-Path $registry.java.home ('bin/javac'+$suffix) + if(-not (Test-Path -LiteralPath $javac -PathType Leaf)){throw 'Registered Java compiler is unavailable; no system JDK change will be attempted.'} + } elseif($registry.java.path) { + $compiler=Get-ChildItem -LiteralPath $registry.java.path -Filter ('javac'+$suffix) -File -Recurse | Select-Object -First 1 + if(-not $compiler){throw 'Registered Java compiler is unavailable; no system JDK change will be attempted.'} + $javac=$compiler.FullName + } else {throw 'A registered Java compiler is required for the trusted bootstrap.'} + $jar=Join-Path (Split-Path $javac) ('jar'+$suffix) + if(-not (Test-Path -LiteralPath $jar -PathType Leaf)){throw 'Registered jar tool is missing.'} + $saved=@{} + foreach($name in (@((Get-ChildItem Env:PCL_*).Name)+@('CURSEFORGE_API_KEY','CURSEFORGE_API') | Select-Object -Unique)){ + $saved[$name]=[Environment]::GetEnvironmentVariable($name,'Process') + Remove-Item -LiteralPath ('Env:'+$name) -ErrorAction SilentlyContinue + } + try { + $version=(& $javac '-J-XX:-UsePerfData' "-J-Djava.io.tmpdir=$env:TMPDIR" --version) -join "`n" + if($LASTEXITCODE -ne 0){throw 'Cannot read Java compiler version.'} + $fingerprint=(@($source | ForEach-Object {$_.Name+':'+(Get-FileHash $_.FullName -Algorithm SHA256).Hash})+@($version))-join "`n" + $sourceHash=[Convert]::ToHexStringLower([Security.Cryptography.SHA256]::HashData([Text.Encoding]::UTF8.GetBytes($fingerprint))) + $root=Assert-ConduitTaskPath (Join-Path $build ('java-bootstrap/'+$sourceHash)) + $classes=Join-Path $root 'classes';$null=New-Item -ItemType Directory -Path $classes -Force + $target=Join-Path $root 'bootstrap.jar' + $record=Join-Path $root 'build.json' + if(Test-Path -LiteralPath $record) { + $previous=Get-Content -Raw -LiteralPath $record | ConvertFrom-Json + if((Test-Path -LiteralPath $target) -and (Get-FileHash $target -Algorithm SHA256).Hash.ToLowerInvariant() -eq $previous.sha256){return $previous} + throw 'Cached trusted Java bootstrap changed; use another registered build job.' + } + $arguments=@('-J-XX:-UsePerfData',"-J-Djava.io.tmpdir=$env:TMPDIR",'--release','8','-encoding','UTF-8','-g:none','-proc:none','-d',$classes)+@($source.FullName) + & $javac @arguments + if($LASTEXITCODE -ne 0){throw 'Trusted Java bootstrap compilation failed.'} + & $jar '-J-XX:-UsePerfData' "-J-Djava.io.tmpdir=$env:TMPDIR" --create --file $target --date=2000-01-01T00:00:00Z -C $classes org/shou/launcher/bootstrap + if($LASTEXITCODE -ne 0){throw 'Trusted Java bootstrap archive failed.'} + $info=[pscustomobject]@{path=$target;sha256=(Get-FileHash $target -Algorithm SHA256).Hash.ToLowerInvariant();source_sha256=$sourceHash;compiler=$version;target_class_version=52;entry='org.shou.launcher.bootstrap.BootstrapMain'} + $info | ConvertTo-Json -Depth 4 | Set-Content -LiteralPath $record -Encoding utf8 + return $info + } finally { + foreach($name in $saved.Keys){ + if($null -eq $saved[$name]){Remove-Item -LiteralPath ('Env:'+$name) -ErrorAction SilentlyContinue} + else{[Environment]::SetEnvironmentVariable($name,$saved[$name],'Process')} + } + } +} +function Get-ConduitBuildInput([string]$Repo, [string]$EnvFile = '.env') { + $path = if ([IO.Path]::IsPathRooted($EnvFile)) { $EnvFile } else { Join-Path $Repo $EnvFile } + if ($EnvFile -ne '.env' -and -not (Test-Path -LiteralPath $path -PathType Leaf)) { throw 'Explicit EnvFile is not readable.' } + # Parse the whole file first, even if process variables would win. + $credentials = Read-ConduitBuildCredentials -EnvPath $path + if ($credentials.MicrosoftClientId -and -not [guid]::TryParse($credentials.MicrosoftClientId, [ref]([guid]::Empty))) { throw 'PCL_MS_CLIENT_ID must be an application GUID.' } + $source = @{} + foreach ($entry in @(@('Microsoft', @('PCL_MS_CLIENT_ID')), @('CurseForge', @('PCL_CURSEFORGE_API_KEY','CURSEFORGE_API_KEY','CURSEFORGE_API')))) { + $fromProcess = $false + foreach ($name in $entry[1]) { if (-not [string]::IsNullOrWhiteSpace([Environment]::GetEnvironmentVariable($name, 'Process'))) { $fromProcess = $true; break } } + $source[$entry[0]] = if ($fromProcess) { 'process' } elseif (Test-Path -LiteralPath $path) { 'env_file_or_empty' } else { 'empty_missing_default_file' } + } + return [pscustomobject]@{ Credentials = $credentials; EnvPath = $path; Sources = $source } +} +function Invoke-ConduitBuildEnvironment([string]$Repo, [string]$EnvFile, [scriptblock]$Action) { + $inputConfig = Get-ConduitBuildInput -Repo $Repo -EnvFile $EnvFile + $saved = @{} + $names = @((Get-ChildItem Env:PCL_*).Name) + @('CURSEFORGE_API_KEY','CURSEFORGE_API') + foreach ($name in ($names | Select-Object -Unique)) { $saved[$name] = [Environment]::GetEnvironmentVariable($name, 'Process') } + try { + foreach ($name in $saved.Keys) { Remove-Item -LiteralPath ('Env:'+$name) -ErrorAction SilentlyContinue } + $env:PCL_WRITE_SECRET = '1' + $env:PCL_MS_CLIENT_ID = $inputConfig.Credentials.MicrosoftClientId + $env:PCL_CURSEFORGE_API_KEY = $inputConfig.Credentials.CurseForgeApiKey + $env:PCL_GITHUB_SHA = & git -C $Repo rev-parse HEAD + if ($LASTEXITCODE -ne 0) { throw 'Cannot resolve actual checkout SHA.' } + & $Action $inputConfig + } finally { + Get-ChildItem Env:PCL_* | ForEach-Object { Remove-Item -LiteralPath ('Env:'+$_.Name) -ErrorAction SilentlyContinue } + foreach ($name in $saved.Keys) { + if($null -eq $saved[$name]) { Remove-Item -LiteralPath ('Env:'+$name) -ErrorAction SilentlyContinue } + else { [Environment]::SetEnvironmentVariable($name, $saved[$name], 'Process') } + } + } +} +function Invoke-ConduitDotnet([string]$Dotnet, [string[]]$Arguments, [string]$LogPath) { + & $Dotnet @Arguments 2>&1 | Tee-Object -FilePath $LogPath | Out-Host + $code = $LASTEXITCODE + $stepsPath = Join-Path (Split-Path $LogPath) 'steps.json' + $steps = @() + if (Test-Path -LiteralPath $stepsPath) { $steps = @(Get-Content -Raw -LiteralPath $stepsPath | ConvertFrom-Json) } + $steps += [pscustomobject]@{ command = @($Dotnet) + $Arguments; cwd = (Get-Location).Path; exit_code = $code; log = $LogPath; time = [DateTimeOffset]::UtcNow.ToString('o') } + $steps | ConvertTo-Json -Depth 6 | Set-Content -LiteralPath $stepsPath -Encoding utf8 + if ($code -ne 0) { throw "dotnet step failed (exit $code); log: $LogPath" } +} +function Assert-ConduitProjectPaths([string]$Dotnet, [string[]]$Projects, [string[]]$Properties, [string]$ReportPath) { + $names = 'OutputPath,BaseIntermediateOutputPath,IntermediateOutputPath,MSBuildProjectExtensionsPath,ProjectAssetsFile,PublishDir,PackageOutputPath,TargetPath' + $reports = @() + $artifactProperty=@($Properties | Where-Object { $_.StartsWith('-p:ArtifactsPath=',[StringComparison]::OrdinalIgnoreCase) }) + $expected=if($artifactProperty.Count){(Resolve-ConduitCanonicalPath $artifactProperty[-1].Substring(17)).TrimEnd([IO.Path]::DirectorySeparatorChar)}else{$null} + $comparison=if($IsWindows){[StringComparison]::OrdinalIgnoreCase}else{[StringComparison]::Ordinal} + foreach ($project in $Projects) { + $raw = & $Dotnet msbuild $project "-getProperty:$names" @Properties + if ($LASTEXITCODE -ne 0) { throw 'Cannot evaluate output paths.' } + $values = ($raw -join "`n") | ConvertFrom-Json + foreach ($entry in $values.Properties.PSObject.Properties) { + if ($entry.Value) { + $path = if ([IO.Path]::IsPathRooted($entry.Value)) { $entry.Value } else { Join-Path (Split-Path $project) $entry.Value } + $canonical = Assert-ConduitTaskPath $path + if($expected -and -not ($canonical.Equals($expected,$comparison) -or $canonical.StartsWith($expected+[IO.Path]::DirectorySeparatorChar,$comparison))) { + throw "Evaluated project output escaped this job root: $($entry.Name)" + } + } + } + $reports += [pscustomobject]@{ project = $project; properties = $values.Properties } + } + $reports | ConvertTo-Json -Depth 6 | Set-Content -LiteralPath $ReportPath -Encoding utf8 +} diff --git a/scripts/conduit/Collect-DesktopLicenses.ps1 b/scripts/conduit/Collect-DesktopLicenses.ps1 new file mode 100644 index 00000000..b8d1e3b7 --- /dev/null +++ b/scripts/conduit/Collect-DesktopLicenses.ps1 @@ -0,0 +1,72 @@ +[CmdletBinding()] +param([Parameter(Mandatory)][string]$PublishDirectory, [string]$DependencyFile = '') +$ErrorActionPreference='Stop' +if (-not $DependencyFile) { $DependencyFile=Join-Path $PublishDirectory 'SHOU.Launcher.Desktop.deps.json' } +$deps=Get-Content -Raw -LiteralPath $DependencyFile | ConvertFrom-Json -AsHashtable +$destination=Join-Path $PublishDirectory 'licenses' +$null=New-Item -ItemType Directory -Path $destination -Force +$lucide=Join-Path $PSScriptRoot '../../src/SHOU.Launcher.Desktop/Assets/Icons/Lucide' +$lucideDestination=Join-Path $destination 'lucide-static-1.17.0' +$null=New-Item -ItemType Directory -Path $lucideDestination -Force +Copy-Item -LiteralPath (Join-Path $lucide 'LICENSE.txt'),(Join-Path $lucide 'SOURCE.txt') -Destination $lucideDestination +$packages=@() +foreach ($library in $deps.libraries.GetEnumerator() | Where-Object { $_.Value.type -in @('package','runtimepack') }) { + $parts=$library.Key.Split('/',2);$name=$parts[0] -replace '^runtimepack\.','';$version=$parts[1] + if ($name -notmatch '^[A-Za-z0-9_.-]+$' -or $version -notmatch '^[A-Za-z0-9_.+-]+$') { throw 'Invalid dependency identity.' } + $package=Join-Path $env:NUGET_PACKAGES "$($name.ToLowerInvariant())/$version" + $nuspec=Get-ChildItem -LiteralPath $package -Filter '*.nuspec' -File | Select-Object -First 1 + if (-not $nuspec) { throw "Dependency license metadata missing: $name/$version" } + [xml]$xml=Get-Content -Raw -LiteralPath $nuspec.FullName + $metadata=$xml.package.metadata + $folder=Join-Path $destination "$name-$version" + $null=New-Item -ItemType Directory -Path $folder -Force + $copied=@() + foreach ($file in Get-ChildItem -LiteralPath $package -File -Recurse | Where-Object { $_.Name -match '^(?i:licen[sc]e|notice|third[-_]party)' }) { + $relative=[IO.Path]::GetRelativePath($package,$file.FullName) + $target=Join-Path $folder $relative + $null=New-Item -ItemType Directory -Path (Split-Path $target) -Force + Copy-Item -LiteralPath $file.FullName -Destination $target + $copied+=$relative + } + # Some packages publish only a license URL. Keep reviewed upstream text + # in the repository so packaging is complete and does not require network. + $supplement=Join-Path $PSScriptRoot "licenses/$name-$version" + if (Test-Path -LiteralPath $supplement -PathType Container) { + foreach ($file in Get-ChildItem -LiteralPath $supplement -File) { + Copy-Item -LiteralPath $file.FullName -Destination (Join-Path $folder $file.Name) + $copied+=$file.Name + } + } + $expression=[string]$metadata.license.InnerText + if ($expression -eq 'MIT' -and -not ($copied | Where-Object { $_ -match '(?i)licen[sc]e' })) { + $copyright=[string]$metadata.copyright + @" +MIT License +$copyright +Package: $name $version + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +"@ | Set-Content -LiteralPath (Join-Path $folder 'LICENSE-MIT.txt') -Encoding utf8 + $copied+='LICENSE-MIT.txt' + } + $packages+=@{name=$name;version=$version;license=$expression;copyright=[string]$metadata.copyright; + project_url=[string]$metadata.projectUrl;license_url=[string]$metadata.licenseUrl;files=$copied} +} +$packages | ConvertTo-Json -Depth 5 | Set-Content -LiteralPath (Join-Path $destination 'PACKAGES.json') -Encoding utf8 +Write-Host "Collected license metadata/text for $($packages.Count) runtime packages." diff --git a/scripts/conduit/Collect-ReleaseAssets.ps1 b/scripts/conduit/Collect-ReleaseAssets.ps1 new file mode 100644 index 00000000..4cfdab7f --- /dev/null +++ b/scripts/conduit/Collect-ReleaseAssets.ps1 @@ -0,0 +1,110 @@ +[CmdletBinding()] +param( + [Parameter(Mandatory)][string]$InputRoot, + [Parameter(Mandatory)][string]$OutputRoot, + [Parameter(Mandatory)][ValidatePattern('^v\d+\.\d+(?:\.\d+)?(?:-[0-9A-Za-z]+(?:[.-][0-9A-Za-z]+)*)?$')][string]$Tag, + [Parameter(Mandatory)][ValidatePattern('^[0-9a-f]{40}$')][string]$SourceSha, + [Parameter(Mandatory)][string]$Version, + [Parameter(Mandatory)][string]$Codename, + [switch]$Prerelease +) +$ErrorActionPreference='Stop' +$repo=(Resolve-Path (Join-Path $PSScriptRoot '../..')).Path +$inputPath=(Resolve-Path -LiteralPath $InputRoot).Path +$outputPath=[IO.Path]::GetFullPath($OutputRoot) +if(Test-Path -LiteralPath $outputPath){throw 'Release output must be new; existing packages are not overwritten.'} +$rids=@('osx-arm64','win-x64','win-arm64') +$manifest=Get-Content -Raw -LiteralPath (Join-Path $repo 'src/SHOU.Launcher.Desktop/Native/MacOS/frozen-arm64-v1/manifest.json') | ConvertFrom-Json +$packages=@{} +# upload-artifact contains both dist and regression reports. Only the known +# distribution roots may supply assets; report ZIP fixtures can share tag names. +$distRoots=@() +if(Test-Path -LiteralPath (Join-Path $inputPath 'dist') -PathType Container){$distRoots+=Join-Path $inputPath 'dist'} +foreach($artifact in Get-ChildItem -LiteralPath $inputPath -Directory){ + $dist=Join-Path $artifact.FullName 'dist' + if($artifact.Name -like 'Desktop-Release-*' -and (Test-Path -LiteralPath $dist -PathType Container)){$distRoots+=$dist} +} +function StreamHash([IO.Stream]$stream){[Convert]::ToHexString([Security.Cryptography.SHA256]::HashData($stream)).ToLowerInvariant()} +function EntryHash($entry){$stream=$entry.Open();try{StreamHash $stream}finally{$stream.Dispose()}} +function Assert-WindowsMachine($entry,[int]$machine){ + $stream=$entry.Open() + try{ + $dos=[byte[]]::new(64);$stream.ReadExactly($dos) + if($dos[0] -ne 0x4d -or $dos[1] -ne 0x5a){throw 'Windows payload has no DOS header.'} + $offset=[BitConverter]::ToUInt32($dos,60) + if($offset -lt 64 -or $offset -gt $entry.Length-6){throw 'Windows PE offset is invalid.'} + $remaining=[long]$offset-64;$buffer=[byte[]]::new(8192) + while($remaining -gt 0){$n=$stream.Read($buffer,0,[int][Math]::Min($buffer.Length,$remaining));if($n -eq 0){throw 'Truncated Windows payload.'};$remaining-=$n} + $pe=[byte[]]::new(6);$stream.ReadExactly($pe) + if([BitConverter]::ToUInt32($pe,0) -ne 0x4550 -or [BitConverter]::ToUInt16($pe,4) -ne $machine){throw 'Windows payload architecture does not match its package.'} + }finally{$stream.Dispose()} +} +foreach($file in @($distRoots | ForEach-Object {Get-ChildItem -LiteralPath $_ -Filter 'BUILD-INFO.json' -File -Recurse})){ + $info=Get-Content -Raw -LiteralPath $file.FullName | ConvertFrom-Json + if($info.entry -ne 'Avalonia Desktop' -or $info.runtime -notin $rids){continue} + $name="SHOU-Launcher-$($info.runtime)-$Tag.zip" + $archive=Join-Path $file.DirectoryName $name + # Nested app metadata and test reports are not distributable package roots. + if(-not (Test-Path -LiteralPath $archive -PathType Leaf)){continue} + if($packages.ContainsKey($info.runtime)){throw "Duplicate package for $($info.runtime)."} + if($info.source_sha -cne $SourceSha -or $info.source_dirty -ne $false -or $info.version -cne $Version -or + $info.codename -cne $Codename -or $info.label -cne $Tag -or $info.release_tag -cne $Tag -or + $info.prerelease -ne [bool]$Prerelease -or $info.configuration -ne 'Release' -or $info.self_contained -ne $true){ + throw "Package identity/source/release mode mismatch: $($info.runtime)." + } + if($info.credential_verification.MS_CLIENT_IDConfigured -ne $true -or $info.credential_verification.CURSEFORGE_API_KEYEmbedded -ne $true){throw 'Release client configuration was not verified.'} + $hash=(Get-FileHash -LiteralPath $archive -Algorithm SHA256).Hash.ToLowerInvariant() + $sidecar=Get-Content -Raw -LiteralPath ($archive+'.sha256') + if($sidecar.Trim() -cne "$hash $name"){throw 'Package checksum sidecar does not match its ZIP.'} + $zip=[IO.Compression.ZipFile]::OpenRead($archive) + try{ + if($info.runtime.StartsWith('win-')){ + $entries=@($zip.Entries | Where-Object {-not $_.FullName.EndsWith('/')}) + if($entries.Count -ne 1 -or $entries[0].FullName -cne 'SHOU.Launcher.Desktop.exe'){throw 'Windows release must contain one EXE and no loose DLLs.'} + $entry=$entries[0] + Assert-WindowsMachine $entry $(if($info.runtime -eq 'win-x64'){0x8664}else{0xaa64}) + if($info.payload.name -cne $entry.FullName -or $info.payload.bytes -ne $entry.Length -or $info.payload.sha256 -cne (EntryHash $entry)){throw 'Windows payload differs from the verified single-file build.'} + }else{ + $broker=$zip.GetEntry('SHOU Launcher.app/Contents/Helpers/SHOU.CredentialBroker') + $embedded=$zip.GetEntry('SHOU Launcher.app/Contents/MacOS/BUILD-INFO.json') + if(-not $zip.GetEntry('SHOU Launcher.app/Contents/Info.plist') -or -not $zip.GetEntry('SHOU Launcher.app/Contents/MacOS/SHOU.Launcher.Core.dll') -or + -not $broker -or -not $embedded){throw 'Mac release is missing its app, managed payload or credential component.'} + if((EntryHash $broker) -cne $manifest.payload_sha256 -or $info.signing_identity -ne $manifest.signing_identity -or + $info.credential_broker.frozen_payload_sha256 -cne $manifest.payload_sha256){throw 'Mac frozen credential/signing identity changed.'} + if((EntryHash $embedded) -cne (Get-FileHash -LiteralPath $file.FullName -Algorithm SHA256).Hash.ToLowerInvariant()){throw 'Mac embedded and external build metadata differ.'} + foreach($document in @('SIGNING-INFO.json','CREDENTIAL-BROKER-INFO.json')){ + $signed=Get-Content -Raw -LiteralPath (Join-Path $file.DirectoryName $document) | ConvertFrom-Json + if($signed.identity -ne $manifest.signing_identity){throw 'Mac signing evidence belongs to another identity.'} + } + } + }finally{$zip.Dispose()} + $packages[$info.runtime]=@{archive=$archive;metadata=$file.FullName;sha256=$hash;bytes=(Get-Item -LiteralPath $archive).Length} +} +if($packages.Count -ne $rids.Count){throw 'All three Desktop packages are required; a partial release is not created.'} +$stage=$outputPath+'.stage-'+[guid]::NewGuid().ToString('N') +$null=New-Item -ItemType Directory -Path $stage +try{ + # Only compiled packages belong at the public upload root. Verification + # records stay in Actions evidence and must not become release attachments. + $evidence=Join-Path $stage 'evidence' + $null=New-Item -ItemType Directory -Path $evidence + $checksums=@();$records=@() + foreach($rid in $rids){ + $item=$packages[$rid];$name=[IO.Path]::GetFileName($item.archive) + Copy-Item -LiteralPath $item.archive -Destination $stage + Copy-Item -LiteralPath ($item.archive+'.sha256') -Destination $evidence + Copy-Item -LiteralPath $item.metadata -Destination (Join-Path $evidence "BUILD-INFO-$rid.json") + if($rid -eq 'osx-arm64'){ + foreach($document in @('SIGNING-INFO','CREDENTIAL-BROKER-INFO')){ + Copy-Item -LiteralPath (Join-Path (Split-Path $item.metadata) ($document+'.json')) -Destination (Join-Path $evidence "$document-$rid.json") + } + } + $checksums+="$($item.sha256) $name" + $records+=@{runtime=$rid;file=$name;sha256=$item.sha256;bytes=$item.bytes} + } + $checksums | Set-Content -LiteralPath (Join-Path $evidence 'SHA256SUMS.txt') -Encoding ascii + $summary=@{version=$Version;codename=$Codename;tag=$Tag;source_sha=$SourceSha;prerelease=[bool]$Prerelease;entry='Avalonia Desktop';packages=$records} + $summary | ConvertTo-Json -Depth 5 | Set-Content -LiteralPath (Join-Path $evidence 'RELEASE-MANIFEST.json') -Encoding utf8 + [IO.Directory]::Move($stage,$outputPath) + $summary | ConvertTo-Json -Depth 5 +}finally{if(Test-Path -LiteralPath $stage){Remove-Item -LiteralPath $stage -Recurse -Force}} diff --git a/scripts/conduit/Extract-McmodIndex.py b/scripts/conduit/Extract-McmodIndex.py new file mode 100644 index 00000000..82aa0dc0 --- /dev/null +++ b/scripts/conduit/Extract-McmodIndex.py @@ -0,0 +1,47 @@ +#!/usr/bin/env python3 +"""Reproduce the portable reference index from the checked-in WPF gzip/protobuf asset.""" +import gzip +import json +from pathlib import Path + +root = Path(__file__).resolve().parents[2] +source = root / 'Plain Craft Launcher 2/Resources/mcmod.buf' + +def varint(data, offset): + value = shift = 0 + while shift < 70: + byte = data[offset] + offset += 1 + value |= (byte & 127) << shift + if byte < 128: + return value, offset + shift += 7 + raise ValueError('Invalid protobuf varint') + +def fields(data): + offset = 0 + while offset < len(data): + key, offset = varint(data, offset) + field, wire = key >> 3, key & 7 + if wire == 0: + value, offset = varint(data, offset) + elif wire == 2: + size, offset = varint(data, offset) + value = data[offset:offset + size] + if len(value) != size: + raise ValueError('Truncated protobuf value') + offset += size + else: + raise ValueError(f'Unexpected wire type {wire}') + yield field, value + +entries = [] +for field, record in fields(gzip.decompress(source.read_bytes())): + if field != 1 or not isinstance(record, bytes): + raise ValueError('Unexpected database record') + values = dict(fields(record)) + entries.append(dict(Id=values.get(1, 0), Name=values.get(2, b'').decode(), + CurseForge=values.get(3, b'').decode(), Modrinth=values.get(4, b'').decode())) +output = root / 'src/SHOU.Launcher.Core/Resources/mcmod-index.json' +output.write_text(json.dumps(entries, ensure_ascii=False, separators=(',', ':')) + '\n') +print(f'{len(entries)} entries written') diff --git a/scripts/conduit/Get-BuildIdentity.ps1 b/scripts/conduit/Get-BuildIdentity.ps1 index 9b454f82..744eccba 100644 --- a/scripts/conduit/Get-BuildIdentity.ps1 +++ b/scripts/conduit/Get-BuildIdentity.ps1 @@ -1,9 +1,11 @@ [CmdletBinding()] param( [ValidateSet('x64', 'ARM64')][string]$Architecture = 'x64', + [ValidateSet('win-x64','win-arm64','osx-arm64')][string]$RuntimeIdentifier = '', [ValidateSet('Beta', 'Release', 'CI')][string]$Configuration = 'Beta', [string]$BuildSuffix = '', - [string]$ReleaseTag = '' + [string]$ReleaseTag = '', + [switch]$Prerelease ) $ErrorActionPreference = 'Stop' $repo = (Resolve-Path (Join-Path $PSScriptRoot '../..')).Path @@ -11,19 +13,29 @@ $metadata = Get-Content -LiteralPath (Join-Path $repo 'Plain Craft Launcher 2/me $version = [string]$metadata.version.base $releaseSource = Get-Content -LiteralPath (Join-Path $repo 'PCL.Core/Conduit/ClubRelease.cs') -Raw $declaredVersion = [regex]::Match($releaseSource, 'CurrentVersion = "([^"]+)"').Groups[1].Value +$codename = [regex]::Match($releaseSource, 'CurrentCodename = "([^"]+)"').Groups[1].Value +if ($metadata.PSObject.Properties['codename'] -and $metadata.codename -cne $codename) { throw 'metadata codename and ClubRelease.CurrentCodename must match.' } if ($version -notmatch '^\d+\.\d+\.\d+$' -or $version -ne $declaredVersion) { throw 'metadata.json and ClubRelease.CurrentVersion must contain the same numeric version.' } $commit = git -C $repo rev-parse HEAD if ($LASTEXITCODE -ne 0) { throw 'Cannot resolve source commit.' } if ($ReleaseTag) { - if ($Configuration -ne 'Release' -or $ReleaseTag -cne "v$version" -or $BuildSuffix) { - throw 'A formal package requires Release configuration, an exact version tag, and no build suffix.' + $numeric=[version]$version + $shortTag="v$($numeric.Major).$($numeric.Minor)" + $validTag=if($Prerelease){ + $ReleaseTag -ceq "v$version" -or ($numeric.Build -eq 0 -and $ReleaseTag -ceq $shortTag) -or + $ReleaseTag -cmatch ('^v'+[regex]::Escape($version)+'-[0-9A-Za-z]+(?:[.-][0-9A-Za-z]+)*$') + }else{$ReleaseTag -ceq "v$version"} + if ($Configuration -ne 'Release' -or -not $validTag -or $BuildSuffix) { + throw 'A release package requires Release configuration, a matching version tag and no build suffix; short/suffixed tags require explicit prerelease mode.' } $tagCommit = git -C $repo rev-parse --verify "$ReleaseTag^{commit}" if ($LASTEXITCODE -ne 0 -or $tagCommit -ne $commit) { throw 'Release tag does not point to the checked-out source.' } - git -C $repo merge-base --is-ancestor HEAD origin/main - if ($LASTEXITCODE -ne 0) { throw 'A formal release must be based on origin/main.' } + if (-not $Prerelease) { + git -C $repo merge-base --is-ancestor HEAD origin/main + if ($LASTEXITCODE -ne 0) { throw 'A formal release must be based on origin/main.' } + } } elseif (-not $BuildSuffix) { $channel = if ($Configuration -eq 'CI') { 'ci' } else { 'dev' } $run = if ($env:GITHUB_RUN_NUMBER) { "$($env:GITHUB_RUN_NUMBER)." } else { '' } @@ -31,10 +43,13 @@ if ($ReleaseTag) { if ($env:GITHUB_RUN_ATTEMPT -and $env:GITHUB_RUN_ATTEMPT -ne '1') { $BuildSuffix += ".r$env:GITHUB_RUN_ATTEMPT" } } if ($BuildSuffix -and $BuildSuffix -notmatch '^[0-9A-Za-z]+(?:[.-][0-9A-Za-z]+)*$') { throw 'Invalid build suffix.' } -$label = "v$version" + $(if ($BuildSuffix) { "-$BuildSuffix" } else { '' }) +$label = if($ReleaseTag){$ReleaseTag}else{"v$version" + $(if ($BuildSuffix) { "-$BuildSuffix" } else { '' })} [pscustomobject]@{ Version = $version + Codename = $codename Commit = $commit Label = $label - ArchiveStem = "SHOU-Launcher-win-$($Architecture.ToLowerInvariant())-$label" + Prerelease = [bool]$Prerelease + ReleaseTag = $ReleaseTag + ArchiveStem = "SHOU-Launcher-$(if ($RuntimeIdentifier) { $RuntimeIdentifier } else { 'win-' + $Architecture.ToLowerInvariant() })-$label" } diff --git a/scripts/conduit/Import-DesktopLocalization.py b/scripts/conduit/Import-DesktopLocalization.py new file mode 100644 index 00000000..11fa96a2 --- /dev/null +++ b/scripts/conduit/Import-DesktopLocalization.py @@ -0,0 +1,50 @@ +"""Import string values only from the v1.5.0 language dictionaries; never read WPF views/styles.""" +from pathlib import Path +import hashlib +import html +import json +import re +import subprocess +import xml.etree.ElementTree as ET + +repo = Path(__file__).resolve().parents[2] +dest = repo / 'src/SHOU.Launcher.Desktop/Localization/Resources' +dest.mkdir(parents=True, exist_ok=True) +languages = ['zh-CN', 'zh-TW', 'en-US', 'en-GB', 'ja-JP', 'fr-FR', 'es-ES'] +legacy = {} +for language in languages: + content = subprocess.check_output(['git', 'show', f'v1.5.0:PCL.Core/App/Localization/Languages/{language}.xaml'], cwd=repo) + legacy[language] = {e.attrib['{http://schemas.microsoft.com/winfx/2006/xaml}Key']: e.text or '' for e in ET.fromstring(content) if e.tag.endswith('String')} +overrides = json.loads((dest.parent / 'supplement-en.json').read_text(encoding='utf-8')) +phrases = {} +for key, phrase in legacy['zh-CN'].items(): + if phrase.strip(): phrases.setdefault(phrase, key) +if (dest / 'zh-CN.json').is_file(): + for phrase in json.loads((dest / 'zh-CN.json').read_text(encoding='utf-8')).values(): phrases.setdefault(phrase, None) +literal_pattern = re.compile(r'\b(Text|Content|Header|PlaceholderText|ToolTip.Tip|AutomationProperties.Name)="([^"]*)"') +view_literals = set() +for view in (repo / 'src/SHOU.Launcher.Desktop/Views').glob('*.axaml'): + source = view.read_text(encoding='utf-8-sig') + def replace(match): + attribute, raw = match.groups() + phrase = html.unescape(raw) + if raw.startswith('{') or not re.search(r'[\u4e00-\u9fff]', phrase): return match.group(0) + phrases.setdefault(phrase, None); view_literals.add(phrase) + token = 't' + hashlib.sha256(phrase.encode()).hexdigest()[:16] + return f'{attribute}="{{loc:Loc {token}}}"' + rewritten = literal_pattern.sub(replace, source) + if rewritten != source: + if 'xmlns:loc=' not in rewritten: rewritten = rewritten.replace('xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"', 'xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:loc="using:SHOU.Launcher.Desktop.Localization"', 1) + view.write_text(rewritten, encoding='utf-8') +phrases.update({phrase: phrases.get(phrase) for phrase in overrides}) +for language in languages: + catalog = {} + for phrase, old_key in phrases.items(): + value = phrase if language == 'zh-CN' else legacy[language].get(old_key) if old_key else None + if language in ('en-US', 'en-GB') and phrase in overrides: value = overrides[phrase] + if value: + token = 't' + hashlib.sha256(phrase.encode()).hexdigest()[:16] + assert token not in catalog or catalog[token] == value + catalog[token] = value + (dest / f'{language}.json').write_text(json.dumps(catalog, ensure_ascii=False, indent=2) + '\n', encoding='utf-8') +print(json.dumps({'source': 'v1.5.0 string dictionaries only', 'phrases': len(phrases), 'viewLiteralsImported': len(view_literals), 'englishSupplement': len(overrides)}, ensure_ascii=False)) diff --git a/scripts/conduit/Publish-Desktop.ps1 b/scripts/conduit/Publish-Desktop.ps1 new file mode 100644 index 00000000..b9a22d47 --- /dev/null +++ b/scripts/conduit/Publish-Desktop.ps1 @@ -0,0 +1,98 @@ +[CmdletBinding()] +param( + [Parameter(Mandatory)][ValidateSet('osx-arm64','win-x64','win-arm64')][string]$RuntimeIdentifier, + [ValidateSet('Beta','Release','CI')][string]$Configuration = 'Beta', + [string]$Dotnet = 'dotnet', [string]$EnvFile = '.env', + [Parameter(Mandatory)][string]$BuildRoot, + [Parameter(Mandatory)][string]$OutputRoot, + [string]$BuildSuffix = '', [string]$ReleaseTag = '', [switch]$Prerelease +) +$ErrorActionPreference = 'Stop' +. (Join-Path $PSScriptRoot 'Build-Shared.ps1') +Assert-ConduitHeavyGate +$repo = (Resolve-Path (Join-Path $PSScriptRoot '../..')).Path +$build = Assert-ConduitTaskPath $BuildRoot +$output = Assert-ConduitTaskPath $OutputRoot +$macSigning=$null +if ($RuntimeIdentifier -eq 'osx-arm64') { + . (Join-Path $repo 'scripts/macos/Signing.ps1') + $macSigning=Resolve-ShouMacSigning +} +if (Test-Path -LiteralPath $output) { throw 'Candidate output already exists; use a new output root (the build root may be reused for B07).' } +$report = Assert-ConduitTaskPath (Join-Path $build 'reports') +$null = New-Item -ItemType Directory -Path $build,$output,$report -Force +$identity = & (Join-Path $PSScriptRoot 'Get-BuildIdentity.ps1') -RuntimeIdentifier $RuntimeIdentifier -Configuration $Configuration -BuildSuffix $BuildSuffix -ReleaseTag $ReleaseTag -Prerelease:$Prerelease +$entry = Join-Path $repo 'src/SHOU.Launcher.Desktop/SHOU.Launcher.Desktop.csproj' +$onefile = $RuntimeIdentifier.StartsWith('win-', [StringComparison]::Ordinal) +$props = @('-p:UseArtifactsOutput=true', "-p:ArtifactsPath=$build", "-p:Configuration=$Configuration", "-p:RuntimeIdentifier=$RuntimeIdentifier", '-p:SelfContained=true', '-p:UseSharedCompilation=false', "-p:PublishSingleFile=$($onefile.ToString().ToLowerInvariant())", "-p:IncludeNativeLibrariesForSelfExtract=$($onefile.ToString().ToLowerInvariant())", '-p:PublishTrimmed=false','-p:PublishAot=false','-p:UseAppHost=true') +if ($onefile) { $props += @('-p:DebugType=embedded', '-p:EnableCompressionInSingleFile=false', '-p:EnableSingleFileAnalyzer=false') } +$projects = @($entry, (Join-Path $repo 'src/SHOU.Launcher.Core/SHOU.Launcher.Core.csproj'), (Join-Path $repo 'src/SHOU.Launcher.Generators/SHOU.Launcher.Generators.csproj')) +$bootstrap=New-ConduitJavaBootstrap $repo $build +$props+=@("-p:JavaBootstrapJarPath=$($bootstrap.path)","-p:JavaBootstrapSha256=$($bootstrap.sha256)") +Push-Location $repo +try { + Invoke-ConduitBuildEnvironment -Repo $repo -EnvFile $EnvFile -Action { + param($inputConfig) + $publishProps = @($props) + Assert-ConduitProjectPaths -Dotnet $Dotnet -Projects $projects -Properties $props -ReportPath (Join-Path $report 'paths-before.json') + Invoke-ConduitDotnet $Dotnet (@('restore',$entry) + $props) (Join-Path $report 'restore.log') + Invoke-ConduitDotnet $Dotnet (@('clean',$entry,'-v','quiet') + $props) (Join-Path $report 'clean.log') + if ($onefile) { + # Gather notices from the exact restored runtime dependencies, then embed them. + # Assets/localizations/bootstrap already use assembly resources; no loose payload is required. + Invoke-ConduitDotnet $Dotnet (@('build',$entry,'--no-restore') + $props) (Join-Path $report 'documents-build.log') + $binaries = @(Get-ChildItem -LiteralPath (Join-Path $build 'bin/SHOU.Launcher.Desktop') -Filter 'SHOU.Launcher.Desktop.deps.json' -Recurse -File) + if ($binaries.Count -ne 1) { throw 'Expected one exact runtime dependency manifest.' } + $binary = $binaries[0] + $documents=Join-Path $build ('desktop-documents-' + [guid]::NewGuid().ToString('N')) + $null=New-Item -ItemType Directory -Path $documents -Force + Copy-Item -LiteralPath (Join-Path $repo 'LICENSE'),(Join-Path $repo 'Plain Craft Launcher 2/LICENCE') -Destination $documents + Copy-Item -LiteralPath (Join-Path $repo 'Plain Craft Launcher 2/metadata.json') -Destination (Join-Path $documents 'THIRD-PARTY-METADATA.json') + & (Join-Path $PSScriptRoot 'Collect-DesktopLicenses.ps1') -PublishDirectory $documents -DependencyFile $binary.FullName + Copy-Item -LiteralPath (Join-Path $repo 'src/SHOU.Launcher.Desktop/Assets/AchievementIcons/LICENSE.txt') -Destination (Join-Path $documents 'licenses/mcgen.txt') + Copy-Item -LiteralPath (Join-Path $repo 'src/SHOU.Launcher.Desktop/Assets/AchievementIcons/README.md') -Destination (Join-Path $documents 'licenses/achievement-icons.md') + $documentArchive=$documents + '.zip' + Compress-Archive -Path (Join-Path $documents '*') -DestinationPath $documentArchive + $publishProps = $publishProps + @("-p:DesktopDocumentsArchive=$documentArchive") + } + Assert-ConduitProjectPaths -Dotnet $Dotnet -Projects $projects -Properties $publishProps -ReportPath (Join-Path $report 'paths-before-publish.json') + Invoke-ConduitDotnet $Dotnet (@('publish',$entry,'--no-restore','-o',(Join-Path $build 'publish-desktop')) + $publishProps) (Join-Path $report 'publish.log') + Assert-ConduitProjectPaths -Dotnet $Dotnet -Projects $projects -Properties $publishProps -ReportPath (Join-Path $report 'paths-after.json') + $publish = Join-Path $build 'publish-desktop' + $owner = if ($onefile) { Join-Path $publish 'SHOU.Launcher.Desktop.exe' } else { Join-Path $publish 'SHOU.Launcher.Core.dll' } + if ($onefile) { + $coreOwner=Join-Path $binary.Directory.FullName 'SHOU.Launcher.Core.dll' + & (Join-Path $PSScriptRoot 'Assert-DesktopBundle.ps1') -Executable $owner -Dotnet $Dotnet -CoreAssembly $coreOwner -RuntimeIdentifier $RuntimeIdentifier -ReportPath (Join-Path $report 'bundle.json') + } + $check = & (Join-Path $PSScriptRoot 'Assert-ClientCredentials.ps1') -AssemblyPath $owner + $dirty = -not [string]::IsNullOrWhiteSpace((& git -C $repo status --porcelain) -join "`n") + $info = [ordered]@{ entry='Avalonia Desktop'; version=$identity.Version; codename=$identity.Codename; label=$identity.Label; prerelease=$identity.Prerelease; release_tag=$identity.ReleaseTag; source_sha=$env:PCL_GITHUB_SHA; source_dirty=$dirty; + sdk=(& $Dotnet --version); avalonia='12.1.5'; runtime=$RuntimeIdentifier; configuration=$Configuration; self_contained=$true; + configuration_owner='SHOU.Launcher.Core.dll'; distribution=$(if($onefile){'single self-contained EXE; native runtime extraction'}else{'application bundle'}); configuration_sources=$inputConfig.Sources; credential_verification=$check; + java_bootstrap=@{sha256=$bootstrap.sha256;source_sha256=$bootstrap.source_sha256;compiler=$bootstrap.compiler;target_class_version=52;transport='private stdin'}; + signing=$(if($macSigning){$macSigning.mode}else{'unsigned local candidate'}); windows_default='Avalonia Desktop in this package; legacy WPF source retained'; built_at=[DateTimeOffset]::UtcNow.ToString('o') } + if ($macSigning) { $info.signing_identity=$macSigning.identity } + if (-not $onefile) { + Copy-Item -LiteralPath (Join-Path $repo 'LICENSE'),(Join-Path $repo 'Plain Craft Launcher 2/LICENCE') -Destination $publish + Copy-Item -LiteralPath (Join-Path $repo 'Plain Craft Launcher 2/metadata.json') -Destination (Join-Path $publish 'THIRD-PARTY-METADATA.json') + & (Join-Path $PSScriptRoot 'Collect-DesktopLicenses.ps1') -PublishDirectory $publish + $info | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath (Join-Path $publish 'BUILD-INFO.json') -Encoding utf8 + } elseif (@(Get-ChildItem -LiteralPath $publish -Force).Count -ne 1 -or -not (Test-Path -LiteralPath $owner -PathType Leaf)) { throw 'Windows distribution must contain exactly one self-contained EXE.' } + if ($onefile) { $info.payload=@{name=[IO.Path]::GetFileName($owner);bytes=(Get-Item -LiteralPath $owner).Length;sha256=(Get-FileHash -LiteralPath $owner -Algorithm SHA256).Hash.ToLowerInvariant()} } + $info | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath (Join-Path $output 'BUILD-INFO.json') -Encoding utf8 + if ($RuntimeIdentifier -eq 'osx-arm64') { + & (Join-Path $repo 'scripts/macos/Package-App.ps1') -PublishDirectory $publish -OutputDirectory $output -Version $identity.Version -ArchiveStem $identity.ArchiveStem -SigningIdentity $macSigning.identity -SigningKeychain $macSigning.keychain -AllowAdHocSigning:($macSigning.identity -eq '-') + } else { + $destination = Join-Path $output 'SHOU Launcher' + Copy-Item -LiteralPath $publish -Destination $destination -Recurse + Compress-Archive -Path (Join-Path $destination '*') -DestinationPath (Join-Path $output ($identity.ArchiveStem + '.zip')) + } + $archive = Join-Path $output ($identity.ArchiveStem + '.zip') + $hash = (Get-FileHash -LiteralPath $archive -Algorithm SHA256).Hash.ToLowerInvariant() + "$hash $([IO.Path]::GetFileName($archive))" | Set-Content -LiteralPath "$archive.sha256" -Encoding ascii + $finalOwner = if ($RuntimeIdentifier -eq 'osx-arm64') { Join-Path $output 'SHOU Launcher.app/Contents/MacOS/SHOU.Launcher.Core.dll' } else { Join-Path $output 'SHOU Launcher/SHOU.Launcher.Desktop.exe' } + if ((Get-FileHash $owner).Hash -ne (Get-FileHash $finalOwner).Hash) { throw 'Final package configuration owner mismatch.' } + $null = & (Join-Path $PSScriptRoot 'Assert-ClientCredentials.ps1') -AssemblyPath $finalOwner + Write-Host "Candidate completed: $archive" + } +} finally { Pop-Location } diff --git a/scripts/conduit/Publish.ps1 b/scripts/conduit/Publish.ps1 index 62ab7892..0d564e3d 100644 --- a/scripts/conduit/Publish.ps1 +++ b/scripts/conduit/Publish.ps1 @@ -1,80 +1,64 @@ [CmdletBinding()] param( - [ValidateSet('x64', 'ARM64')][string]$Architecture = 'x64', - [ValidateSet('Beta', 'Release')][string]$Configuration = 'Beta', - [string]$Dotnet = 'dotnet', - [string]$OutputRoot = 'artifacts/conduit', - [string]$EnvFile = '.env', - [string]$BuildSuffix = '', - [string]$ReleaseTag = '' + [ValidateSet('x64','ARM64')][string]$Architecture='x64', + [ValidateSet('Beta','Release','CI')][string]$Configuration='Beta', + [string]$Dotnet='dotnet',[string]$OutputRoot='artifacts/conduit',[string]$EnvFile='.env', + [string]$BuildSuffix='',[string]$ReleaseTag='',[string]$BuildRoot='' ) -$ErrorActionPreference = 'Stop' -$repo = (Resolve-Path (Join-Path $PSScriptRoot '../..')).Path -$output = Join-Path (Join-Path $repo $OutputRoot) "win-$($Architecture.ToLowerInvariant())" -if (Test-Path $output) { - throw "Output already exists: $output. Move it aside before publishing again." +$ErrorActionPreference='Stop' +$repo=(Resolve-Path (Join-Path $PSScriptRoot '../..')).Path +. (Join-Path $PSScriptRoot 'Build-Shared.ps1') +if ($env:SHOU_DEV_ROOT) { Assert-ConduitHeavyGate } +$outputBase=if ([IO.Path]::IsPathRooted($OutputRoot)) { $OutputRoot } else { Join-Path $repo $OutputRoot } +$output=Join-Path $outputBase "win-$($Architecture.ToLowerInvariant())" +if ($env:SHOU_DEV_ROOT) { $null=Assert-ConduitTaskPath $output } +if (Test-Path -LiteralPath $output) { throw 'Legacy output already exists; choose a new output root.' } +$identity=& (Join-Path $PSScriptRoot 'Get-BuildIdentity.ps1') -Architecture $Architecture -Configuration $Configuration -BuildSuffix $BuildSuffix -ReleaseTag $ReleaseTag +$entry=Join-Path $repo 'Plain Craft Launcher 2/Plain Craft Launcher 2.csproj' +$props=@("-p:Platform=$Architecture","-p:Configuration=$Configuration","-p:RuntimeIdentifier=win-$($Architecture.ToLowerInvariant())",'-p:UseSharedCompilation=false') +if ($BuildRoot) { + $BuildRoot=Assert-ConduitTaskPath $BuildRoot + $props+=@('-p:UseArtifactsOutput=true',"-p:ArtifactsPath=$BuildRoot") } -# Read only the explicitly supported client credentials. Never evaluate .env as code. -. (Join-Path $PSScriptRoot 'BuildEnvironment.ps1') -$envPath = Join-Path $repo $EnvFile -$credentials = Read-ConduitBuildCredentials -EnvPath $envPath -$clientId = $credentials.MicrosoftClientId -$curseForgeApiKey = $credentials.CurseForgeApiKey -if ($clientId -and -not [guid]::TryParse($clientId, [ref]([guid]::Empty))) { - throw 'PCL_MS_CLIENT_ID must be an application GUID.' -} -$savedPclEnvironment = @{} -$identity = & (Join-Path $PSScriptRoot 'Get-BuildIdentity.ps1') -Architecture $Architecture -Configuration $Configuration -BuildSuffix $BuildSuffix -ReleaseTag $ReleaseTag -Get-ChildItem Env:PCL_* | ForEach-Object { $savedPclEnvironment[$_.Name] = $_.Value } +# The SDK removes RuntimeIdentifier from legacy library/analyzer ProjectReferences. +# Evaluate the context actually built, rather than a nominal entry-RID library path. +$referenceProps=@($props | Where-Object { -not $_.StartsWith('-p:RuntimeIdentifier=',[StringComparison]::OrdinalIgnoreCase) })+@('-p:RuntimeIdentifier=') +$null=New-Item -ItemType Directory -Path $output -Force Push-Location $repo try { - # Isolate the three approved client-build inputs and restore the caller's environment on exit. - Get-ChildItem Env:PCL_* | ForEach-Object { [Environment]::SetEnvironmentVariable($_.Name, $null, 'Process') } - $env:PCL_WRITE_SECRET = '1' - $env:PCL_MS_CLIENT_ID = $clientId - $env:PCL_CURSEFORGE_API_KEY = $curseForgeApiKey - $env:PCL_GITHUB_SHA = git rev-parse HEAD - if ($LASTEXITCODE -ne 0) { throw 'Cannot resolve source commit.' } - # A preceding build for another architecture may have replaced project.assets.json. - # Restore this target before clean, which also resolves the runtime-specific assets. - & $Dotnet restore 'Plain Craft Launcher 2/Plain Craft Launcher 2.csproj' "-p:Platform=$Architecture" -v quiet - if ($LASTEXITCODE -ne 0) { throw "dotnet restore failed: $LASTEXITCODE" } - # Force regeneration when .env changes; compiler servers can retain stale environment values. - & $Dotnet clean 'Plain Craft Launcher 2/Plain Craft Launcher 2.csproj' -c $Configuration "-p:Platform=$Architecture" -v quiet - if ($LASTEXITCODE -ne 0) { throw "dotnet clean failed: $LASTEXITCODE" } - & $Dotnet publish 'Plain Craft Launcher 2/Plain Craft Launcher 2.csproj' -c $Configuration "-p:Platform=$Architecture" -p:UseSharedCompilation=false --self-contained true -o $output - if ($LASTEXITCODE -ne 0) { throw "dotnet publish failed: $LASTEXITCODE" } - $coreAssembly = Join-Path $repo "PCL.Core/bin/$Configuration-$Architecture/net10.0-windows/PCL.Core.dll" - $credentialCheck = & (Join-Path $PSScriptRoot 'Assert-ClientCredentials.ps1') -AssemblyPath $coreAssembly - $name = "SHOU-Launcher-win-$($Architecture.ToLowerInvariant())" - Move-Item -LiteralPath (Join-Path $output 'Plain Craft Launcher 2.exe') -Destination (Join-Path $output "$name.exe") - Copy-Item -LiteralPath (Join-Path $repo 'LICENSE') -Destination $output - Copy-Item -LiteralPath (Join-Path $repo 'Plain Craft Launcher 2/LICENCE') -Destination $output - Copy-Item -LiteralPath (Join-Path $repo 'docs/conduit/BUILD.md') -Destination (Join-Path $output 'BUILD.md') - $commit = git rev-parse HEAD - if ($LASTEXITCODE -ne 0) { throw 'Cannot resolve source commit.' } - $sdk = & $Dotnet --version - if ($LASTEXITCODE -ne 0) { throw 'Cannot resolve SDK version.' } - $sourceState = if (git status --porcelain) { 'modified working tree (includes uncommitted changes)' } else { 'clean' } - $appConfigured = -not [string]::IsNullOrWhiteSpace($clientId) - $metadata = Get-Content -LiteralPath (Join-Path $repo 'Plain Craft Launcher 2/metadata.json') -Raw | ConvertFrom-Json - $releaseSource = Get-Content -LiteralPath (Join-Path $repo 'PCL.Core/Conduit/ClubRelease.cs') -Raw - $codename = [regex]::Match($releaseSource, 'CurrentCodename = "([^"]+)"').Groups[1].Value - "Version: $($metadata.version.base)`nBuild label: $($identity.Label)`nCodename: $codename`nSource base commit: $commit`nSource state: $sourceState`nSDK: $sdk`nConfiguration: $Configuration`nRuntime: win-$($Architecture.ToLowerInvariant())`nSelf-contained: true`nMicrosoft public Client ID configured: $appConfigured`nCurseForge API key configured: $(-not [string]::IsNullOrWhiteSpace($curseForgeApiKey))`nCurseForge API key embedding verified: $($credentialCheck.CURSEFORGE_API_KEYEmbedded)`nOther service credentials: not embedded" | Set-Content (Join-Path $output 'BUILD-INFO.txt') -Encoding utf8 - $archiveName = "$($identity.ArchiveStem).zip" - $archive = Join-Path (Split-Path $output) $archiveName - Compress-Archive -Path "$output/*" -DestinationPath $archive - $hash = (Get-FileHash -LiteralPath $archive -Algorithm SHA256).Hash.ToLowerInvariant() - "$hash $archiveName" | Set-Content "$archive.sha256" -Encoding ascii - if ($env:GITHUB_OUTPUT) { - "artifact_name=$($identity.ArchiveStem)" | Add-Content -LiteralPath $env:GITHUB_OUTPUT -Encoding utf8 - "version=$($identity.Version)" | Add-Content -LiteralPath $env:GITHUB_OUTPUT -Encoding utf8 - } - Write-Host "Published: $archive" -} finally { - Get-ChildItem Env:PCL_* | ForEach-Object { [Environment]::SetEnvironmentVariable($_.Name, $null, 'Process') } - foreach ($name in $savedPclEnvironment.Keys) { - [Environment]::SetEnvironmentVariable($name, $savedPclEnvironment[$name], 'Process') + Invoke-ConduitBuildEnvironment -Repo $repo -EnvFile $EnvFile -Action { + param($inputConfig) + if ($BuildRoot) { + $reports=Join-Path $BuildRoot 'reports' + $null=New-Item -ItemType Directory -Path $reports -Force + Assert-ConduitProjectPaths $Dotnet @($entry) $props (Join-Path $reports 'paths-entry.json') + Assert-ConduitProjectPaths $Dotnet @((Join-Path $repo 'PCL.Core/PCL.Core.csproj'),(Join-Path $repo 'PCL.Core.SourceGenerators/PCL.Core.SourceGenerators.csproj')) $referenceProps (Join-Path $reports 'paths-references.json') + } else { $reports=$output } + Invoke-ConduitDotnet $Dotnet (@('restore',$entry) + $props) (Join-Path $reports 'restore.log') + Invoke-ConduitDotnet $Dotnet (@('clean',$entry,'-v','quiet') + $props) (Join-Path $reports 'clean.log') + Invoke-ConduitDotnet $Dotnet (@('publish',$entry,'--no-restore','--self-contained','true','-o',$output) + $props) (Join-Path $reports 'publish.log') + $ownerJson=& $Dotnet msbuild (Join-Path $repo 'PCL.Core/PCL.Core.csproj') '-getProperty:TargetPath,RuntimeIdentifier' @referenceProps + if($LASTEXITCODE -ne 0){throw 'Cannot evaluate the actual legacy configuration owner.'} + $owner=($ownerJson -join "`n" | ConvertFrom-Json).Properties.TargetPath + if ($LASTEXITCODE -ne 0 -or -not (Test-Path -LiteralPath $owner)) { throw 'Cannot locate the actual legacy configuration owner.' } + $check=& (Join-Path $PSScriptRoot 'Assert-ClientCredentials.ps1') -AssemblyPath $owner + $executable=Join-Path $output 'Plain Craft Launcher 2.exe' + $bundledCheck=& (Join-Path $PSScriptRoot 'Assert-ClientCredentials.ps1') -AssemblyPath $executable + $name="SHOU-Launcher-win-$($Architecture.ToLowerInvariant())" + Move-Item -LiteralPath $executable -Destination (Join-Path $output ($name+'.exe')) + Copy-Item -LiteralPath (Join-Path $repo 'LICENSE'),(Join-Path $repo 'Plain Craft Launcher 2/LICENCE') -Destination $output + Copy-Item -LiteralPath (Join-Path $repo 'docs/conduit/BUILD.md') -Destination (Join-Path $output 'BUILD.md') + $info=[ordered]@{entry='Legacy WPF';version=$identity.Version;codename=$identity.Codename;label=$identity.Label;source_sha=$env:PCL_GITHUB_SHA; + source_dirty=(-not [string]::IsNullOrWhiteSpace((& git -C $repo status --porcelain) -join "`n"));sdk=(& $Dotnet --version); + configuration=$Configuration;runtime="win-$($Architecture.ToLowerInvariant())";self_contained=$true; + configuration_owner=$owner;configuration_sources=$inputConfig.Sources;credential_verification=$check;bundled_owner_verification=$bundledCheck} + $info | ConvertTo-Json -Depth 7 | Set-Content -LiteralPath (Join-Path $output 'BUILD-INFO.json') -Encoding utf8 + "Version: $($identity.Version)`nBuild label: $($identity.Label)`nSource base commit: $env:PCL_GITHUB_SHA`nSource dirty: $($info.source_dirty)`nSDK: $($info.sdk)`nConfiguration: $Configuration`nRuntime: $($info.runtime)`nMicrosoft public Client ID configured: $($check.MS_CLIENT_IDConfigured)`nCurseForge API key embedding verified: $($check.CURSEFORGE_API_KEYEmbedded)" | Set-Content -LiteralPath (Join-Path $output 'BUILD-INFO.txt') -Encoding utf8 + $archive=Join-Path $outputBase ($identity.ArchiveStem+'.zip') + Compress-Archive -Path (Join-Path $output '*') -DestinationPath $archive + $hash=(Get-FileHash -LiteralPath $archive -Algorithm SHA256).Hash.ToLowerInvariant() + "$hash $([IO.Path]::GetFileName($archive))" | Set-Content -LiteralPath ($archive+'.sha256') -Encoding ascii + if ($env:GITHUB_OUTPUT) { "artifact_name=$($identity.ArchiveStem)" | Add-Content -LiteralPath $env:GITHUB_OUTPUT; "version=$($identity.Version)" | Add-Content -LiteralPath $env:GITHUB_OUTPUT } + Write-Host "Legacy candidate completed: $archive" } - Pop-Location -} +} finally { Pop-Location } diff --git a/scripts/conduit/licenses/BitMiracle.LibTiff.NET-2.4.660/LICENSE.txt b/scripts/conduit/licenses/BitMiracle.LibTiff.NET-2.4.660/LICENSE.txt new file mode 100644 index 00000000..cbd8f342 --- /dev/null +++ b/scripts/conduit/licenses/BitMiracle.LibTiff.NET-2.4.660/LICENSE.txt @@ -0,0 +1,77 @@ +LibTiff.Net + +Copyright (c) 2008-2023 Bit Miracle +http://www.bitmiracle.com +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + Neither the name of the Bit Miracle nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BIT MIRACLE BE +LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF +THE POSSIBILITY OF SUCH DAMAGE. + + +This software is based in part on the +The Independent JPEG Group's JPEG software +http://www.ijg.org/ + +Copyright (C) 1991-1998, Thomas G. Lane. + + +This software is based in part on the +LibTIFF - TIFF Library and Utilities +http://www.remotesensing.org/libtiff/ + +Copyright (c) 1988-1997 Sam Leffler +Copyright (c) 1991-1997 Silicon Graphics, Inc. + + +Portions Copyright (C) 2006, ComponentAce +http://www.componentace.com +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + Neither the name of ComponentAce nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/scripts/conduit/licenses/BitMiracle.LibTiff.NET-2.4.660/SOURCE.txt b/scripts/conduit/licenses/BitMiracle.LibTiff.NET-2.4.660/SOURCE.txt new file mode 100644 index 00000000..9ab2680c --- /dev/null +++ b/scripts/conduit/licenses/BitMiracle.LibTiff.NET-2.4.660/SOURCE.txt @@ -0,0 +1,6 @@ +Package: BitMiracle.LibTiff.NET 2.4.660 +Official license source: https://raw.githubusercontent.com/BitMiracle/libtiff.net/master/license.txt +Retrieved: 2026-11-12 +SHA-256: 1700d430afca68db45c5e51e5467aa0d4eb9533e964e18a3a56dec5c230f3ba0 +Package copyright metadata: Copyright (C) 2008-2024, Bit Miracle +The upstream license file is reproduced without changes. diff --git a/scripts/conduit/test_release_pipeline.py b/scripts/conduit/test_release_pipeline.py new file mode 100644 index 00000000..1bfc3c2c --- /dev/null +++ b/scripts/conduit/test_release_pipeline.py @@ -0,0 +1,216 @@ +#!/usr/bin/env python3 +"""Exercise real release scripts against disposable Git/ZIP fixtures, never user tags.""" +import argparse +import hashlib +import json +from pathlib import Path +import shutil +import struct +import subprocess +import zipfile + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('--directory', type=Path, required=True) + parser.add_argument('--git', default=shutil.which('git')) + args = parser.parse_args() + out = args.directory.resolve(); out.mkdir(parents=True, exist_ok=False) + repo = Path(__file__).resolve().parents[2] + pwsh = shutil.which('pwsh'); assert pwsh and args.git + cases = [] + + def check(command, label, expected_error=None, cwd=None): + result = subprocess.run([str(x) for x in command], cwd=cwd, capture_output=True, text=True, timeout=90) + if expected_error: + assert result.returncode != 0 and expected_error.lower() in (result.stdout + result.stderr).lower(), (label, result.stdout, result.stderr) + else: + assert result.returncode == 0, (label, result.stdout, result.stderr) + cases.append(dict(case=label, status='PASS')) + return result + + wrapper = out / 'identity.ps1' + wrapper.write_text("param([string]$Script,[string]$Tag,[string]$Config='Release',[string]$Suffix='',[switch]$Pre)\n" + "$ErrorActionPreference='Stop'\n& $Script -Configuration $Config -ReleaseTag $Tag -BuildSuffix $Suffix -Prerelease:$Pre | ConvertTo-Json\n") + identity_cases = [ + ('short-prerelease', 'v1.6', True, True, None, 'Release', ''), + ('short-tag-needs-prerelease', 'v1.6', False, True, 'matching version tag', 'Release', ''), + ('stable-outside-main-denied', 'v1.6.0', False, True, 'based on origin/main', 'Release', ''), + ('full-tag-explicit-prerelease', 'v1.6.0', True, True, None, 'Release', ''), + ('suffixed-prerelease', 'v1.6.0-rc.1', True, True, None, 'Release', ''), + ('wrong-version-denied', 'v9.9', True, True, 'matching version tag', 'Release', ''), + ('stable-on-main', 'v1.6.0', False, False, None, 'Release', ''), + ('beta-config-denied', 'v1.6', True, True, 'Release configuration', 'Beta', ''), + ('tag-and-suffix-denied', 'v1.6', True, True, 'no build suffix', 'Release', 'dev.fixture'), + ] + for label, tag, pre, feature, error, configuration, suffix in identity_cases: + fixture = out / label; (fixture / 'scripts/conduit').mkdir(parents=True) + (fixture / 'Plain Craft Launcher 2').mkdir(); (fixture / 'PCL.Core/Conduit').mkdir(parents=True) + shutil.copy2(repo / 'scripts/conduit/Get-BuildIdentity.ps1', fixture / 'scripts/conduit/Get-BuildIdentity.ps1') + (fixture / 'Plain Craft Launcher 2/metadata.json').write_text(json.dumps(dict(version=dict(base='1.6.0'), codename='xb'))) + (fixture / 'PCL.Core/Conduit/ClubRelease.cs').write_text('CurrentVersion = "1.6.0"; CurrentCodename = "xb";') + def git(*parts): + result = subprocess.run([args.git, *parts], cwd=fixture, capture_output=True, text=True) + assert result.returncode == 0, result.stderr + git('init', '-q', '-b', 'main'); git('add', '.') + git('-c', 'user.name=Release Fixture', '-c', 'user.email=fixture@example.invalid', '-c', 'commit.gpgsign=false', 'commit', '-qm', 'seed') + git('update-ref', 'refs/remotes/origin/main', 'HEAD') + if feature: + (fixture / 'feature.txt').write_text('unmerged fixture') + git('add', '.'); git('-c', 'user.name=Release Fixture', '-c', 'user.email=fixture@example.invalid', '-c', 'commit.gpgsign=false', 'commit', '-qm', 'feature') + git('tag', tag) + command = [pwsh, '-NoProfile', '-File', wrapper, '-Script', fixture / 'scripts/conduit/Get-BuildIdentity.ps1', '-Tag', tag, '-Config', configuration] + if pre: command += ['-Pre'] + if suffix: command += ['-Suffix', suffix] + result = check(command, label, error) + if not error: + identity = json.loads(result.stdout.lstrip('\ufeff')) + assert identity['Version'] == '1.6.0' and identity['Codename'] == 'xb' and identity['Label'] == tag + + # Run the real workflow classifier: a full numeric patch tag outside main + # must remain a prerelease, while stable main and explicit overrides agree. + workflow = (repo / '.github/workflows/conduit-release.yml').read_text() + mode_step = workflow.split(' - name: Validate tag, source and release mode\n', 1)[1].split(' build:\n', 1)[0] + mode_body = mode_step.split(' run: |\n', 1)[1] + mode_script = '\n'.join(line[10:] for line in mode_body.splitlines() if line.startswith(' ')) + mode_cases = [ + ('patch-feature-is-prerelease', True, 'v1.6.2', False, True, None), + ('patch-main-is-stable', False, 'v1.6.2', False, False, None), + ('patch-main-explicit-prerelease', False, 'v1.6.2', True, True, None), + ('suffix-main-is-prerelease', False, 'v1.6.2-rc.1', False, True, None), + ('patch-short-tag-rejected', True, 'v1.6', False, True, 'matching version tag'), + ] + for label, feature, tag, requested, expected, error in mode_cases: + fixture = out / label; (fixture / 'scripts/conduit').mkdir(parents=True) + (fixture / 'Plain Craft Launcher 2').mkdir(); (fixture / 'PCL.Core/Conduit').mkdir(parents=True) + shutil.copy2(repo / 'scripts/conduit/Get-BuildIdentity.ps1', fixture / 'scripts/conduit/Get-BuildIdentity.ps1') + (fixture / 'Plain Craft Launcher 2/metadata.json').write_text(json.dumps(dict(version=dict(base='1.6.2'), codename='xb'))) + (fixture / 'PCL.Core/Conduit/ClubRelease.cs').write_text('CurrentVersion = "1.6.2"; CurrentCodename = "xb";') + def mode_git(*parts): + result = subprocess.run([args.git, *parts], cwd=fixture, capture_output=True, text=True) + assert result.returncode == 0, result.stderr + mode_git('init', '-q', '-b', 'main'); mode_git('add', '.') + mode_git('-c', 'user.name=Release Fixture', '-c', 'user.email=fixture@example.invalid', '-c', 'commit.gpgsign=false', 'commit', '-qm', 'seed') + mode_git('update-ref', 'refs/remotes/origin/main', 'HEAD') + if feature: + (fixture / 'feature.txt').write_text('unmerged fixture'); mode_git('add', '.') + mode_git('-c', 'user.name=Release Fixture', '-c', 'user.email=fixture@example.invalid', '-c', 'commit.gpgsign=false', 'commit', '-qm', 'feature') + mode_git('tag', tag) + harness = fixture / 'classify.ps1' + harness.write_text("$ErrorActionPreference='Stop'\n$env:RELEASE_TAG='" + tag + "'\n$env:REQUEST_PRERELEASE='" + str(requested).lower() + + "'\n$env:GITHUB_OUTPUT=Join-Path $PSScriptRoot 'outputs.txt'\n" + mode_script + '\n') + check([pwsh, '-NoProfile', '-File', harness], label, error, cwd=fixture) + if not error: + values = dict(line.split('=', 1) for line in (fixture / 'outputs.txt').read_text(encoding='utf-8-sig').splitlines()) + assert values['prerelease'] == str(expected).lower() and values['tag'] == tag and values['version'] == '1.6.2' + + source = '1' * 40; native = repo / 'src/SHOU.Launcher.Desktop/Native/MacOS' + manifest = json.loads((native / 'frozen-arm64-v1/manifest.json').read_text()) + baseline = out / 'package-baseline'; baseline.mkdir(); (baseline / 'dist').mkdir() + def info(rid): + return dict(entry='Avalonia Desktop', runtime=rid, version='1.6.0', codename='xb', label='v1.6', release_tag='v1.6', + source_sha=source, source_dirty=False, prerelease=True, self_contained=True, configuration='Release', + credential_verification=dict(MS_CLIENT_IDConfigured=True, CURSEFORGE_API_KEYEmbedded=True)) + def save_metadata(folder, metadata): + (folder / 'BUILD-INFO.json').write_text(json.dumps(metadata, indent=2) + '\n') + def archive(folder, rid, entries): + file = folder / f'SHOU-Launcher-{rid}-v1.6.zip' + with zipfile.ZipFile(file, 'w', compression=zipfile.ZIP_DEFLATED) as z: + for name, value in entries.items(): z.writestr(name, value) + (folder / (file.name + '.sha256')).write_text(hashlib.sha256(file.read_bytes()).hexdigest() + ' ' + file.name + '\n') + for rid, machine in [('win-x64', 0x8664), ('win-arm64', 0xaa64)]: + folder = baseline / 'dist' / rid; folder.mkdir() + exe = bytearray(512); exe[:2] = b'MZ'; struct.pack_into('&1) -join "`n" +if($LASTEXITCODE -ne 0 -or $properties -notmatch '(?m)^\s*java\.version\s*=\s*(21\.[^\s]+)\s*$'){throw 'Selected CI Java must be a working Java 21 JDK.'} +$javaVersion=$Matches[1] +if($properties -notmatch '(?m)^\s*os\.arch\s*=\s*([^\s]+)\s*$'){throw 'Cannot identify selected CI JDK architecture.'} +$javaArch=$Matches[1] +$hostArch=[Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString() +if(($hostArch -eq 'Arm64' -and $javaArch -notin @('aarch64','arm64')) -or + ($hostArch -eq 'X64' -and $javaArch -notin @('amd64','x86_64','x64')) -or $hostArch -notin @('Arm64','X64')){throw 'Selected CI JDK must match the runner native architecture.'} +# Only an ephemeral task alias is created. The hosted image JDK and global configuration stay intact. +$javaDirectory=Join-Path $root 'tools/java';$null=New-Item -ItemType Directory -Path $javaDirectory -Force +$javaHome=Join-Path $javaDirectory 'selected' +$linkType=if($IsWindows){'Junction'}else{'SymbolicLink'} +$null=New-Item -ItemType $linkType -Path $javaHome -Target $javaTarget +@{dotnet=@{path=(Split-Path $dotnet);version=$version};pwsh=@{path=(Split-Path $pwsh);version=$PSVersionTable.PSVersion.ToString()};python=@{executable=$python.Source}; + java=@{home=$javaHome;path=(Join-Path $javaHome 'bin');target=$javaTarget;version=$javaVersion;architecture=$javaArch;source='actions/setup-java@v5 Temurin'}} | + ConvertTo-Json -Depth 5 | Set-Content -LiteralPath (Join-Path $root 'control/tools.json') -Encoding utf8 +Copy-Item -LiteralPath (Join-Path $PSScriptRoot 'ci_gate.py') -Destination (Join-Path $root 'control/dev.py') +@{profile='ephemeral-github-standard';reserve_gib=8;stop_free_gib=10;task_budget_gib=35; + note='Explicit ephemeral-runner profile; local night controller stays at 20 GiB reserve. Actual free space still determines admission.'} | + ConvertTo-Json -Depth 3 | Set-Content -LiteralPath (Join-Path $root 'control/resource-policy.json') -Encoding utf8 +if($env:GITHUB_ENV){"SHOU_DEV_ROOT=$root" | Add-Content -LiteralPath $env:GITHUB_ENV} +Write-Host 'Registered ephemeral runner tools and the same Publish/Validate entry chain; no global environment or identity changed.' +Write-Host 'CI-only resource profile: reserve 8 GiB, stop new work below 10 GiB free; local night policy is unchanged.' diff --git a/scripts/dev/Invoke-Dev.ps1 b/scripts/dev/Invoke-Dev.ps1 new file mode 100644 index 00000000..bcee6d4c --- /dev/null +++ b/scripts/dev/Invoke-Dev.ps1 @@ -0,0 +1,32 @@ +[CmdletBinding()] +param([ValidateSet('main','ui','platform')][string]$Worker='main', + [Parameter(Mandatory)][string]$RunId, + [ValidateSet('Publish','Build','Test')][string]$Action='Build', + [ValidateSet('osx-arm64','win-x64','win-arm64','linux-x64')][string]$RuntimeIdentifier='osx-arm64', + [ValidateSet('Debug','CI','Beta','Release')][string]$Configuration='Release', + [string]$EntryProject='src/SHOU.Launcher.Desktop/SHOU.Launcher.Desktop.csproj', + [string]$EnvFile='.env',[string]$Case='default', + [string]$TaskRoot=$env:SHOU_DEV_ROOT,[string]$Python='',[double]$PeakGiB=3,[string]$TestFilter='', + [string]$ReleaseTag='', [switch]$Prerelease) +$ErrorActionPreference='Stop' +foreach ($id in @($RunId,$Case)) { if ($id -notmatch '^[A-Za-z0-9_.-]+$' -or $id -in @('.','..')) { throw 'Invalid job/case identifier.' } } +if (-not $TaskRoot) { throw 'Explicit TaskRoot or SHOU_DEV_ROOT required.' } +$repo=(Resolve-Path (Join-Path $PSScriptRoot '../..')).Path +$tools=Get-Content -Raw -LiteralPath (Join-Path $TaskRoot 'control/tools.json') | ConvertFrom-Json +if(-not $Python){$Python=if($tools.python.executable){$tools.python.executable}else{(Get-Command python3 -ErrorAction Stop).Source}} +$dotnet=Join-Path $tools.dotnet.path $(if ($IsWindows) {'dotnet.exe'} else {'dotnet'}) +$pwsh=Join-Path $tools.pwsh.path $(if ($IsWindows) {'pwsh.exe'} else {'pwsh'}) +$build=Join-Path $TaskRoot "build/$Worker/$RunId/Desktop/$Configuration/$RuntimeIdentifier/$Case" +$output=Join-Path $TaskRoot "dist/$RunId/Desktop/$Configuration/$RuntimeIdentifier/$Case" +$command=@($pwsh,'-NoProfile','-File') +if ($Action -eq 'Publish') { + if($RuntimeIdentifier -eq 'linux-x64'){throw 'Linux is a portable-test target; no Linux product host is registered.'} + $command+=@((Join-Path $repo 'scripts/conduit/Publish-Desktop.ps1'),'-RuntimeIdentifier',$RuntimeIdentifier,'-Configuration',$Configuration,'-Dotnet',$dotnet,'-EnvFile',$EnvFile,'-BuildRoot',$build,'-OutputRoot',$output) + if($ReleaseTag){$command+=@('-ReleaseTag',$ReleaseTag)} + if($Prerelease){$command+='-Prerelease'} +} else { + $command+=@((Join-Path $repo 'scripts/dev/Validate-Desktop.ps1'),'-Action',$Action,'-EntryProject',$EntryProject,'-RuntimeIdentifier',$RuntimeIdentifier,'-Configuration',$Configuration,'-Dotnet',$dotnet,'-BuildRoot',$build) + if($TestFilter){$command+=@('-TestFilter',$TestFilter)} +} +& $Python (Join-Path $TaskRoot 'control/dev.py') --worker $Worker --job "$RunId-$Action-$RuntimeIdentifier-$Case" --peak-gib $PeakGiB --cwd $repo -- @command +if ($LASTEXITCODE -ne 0) { throw "Guarded $Action failed: $LASTEXITCODE" } diff --git a/scripts/dev/Test-BuildContract.ps1 b/scripts/dev/Test-BuildContract.ps1 new file mode 100644 index 00000000..452b71bc --- /dev/null +++ b/scripts/dev/Test-BuildContract.ps1 @@ -0,0 +1,195 @@ +[CmdletBinding()] +param([Parameter(Mandatory)][string]$Dotnet,[Parameter(Mandatory)][string]$BuildRoot, + [Parameter(Mandatory)][string]$ReportRoot,[Parameter(Mandatory)][string]$FixtureOutputRoot, + [ValidateSet('All','Inputs','Compiler','Sequence')][string]$Mode='All', + [ValidateSet('win-x64','win-arm64','osx-arm64')][string]$SequenceRid='win-x64') +$ErrorActionPreference='Stop' +. (Join-Path $PSScriptRoot '../conduit/Build-Shared.ps1') +Assert-ConduitHeavyGate +$repo=(Resolve-Path (Join-Path $PSScriptRoot '../..')).Path +$build=Assert-ConduitTaskPath $BuildRoot +$report=Assert-ConduitTaskPath $ReportRoot +$fixtures=Assert-ConduitTaskPath $FixtureOutputRoot +$null=New-Item -ItemType Directory -Path $build,$report,$fixtures -Force +$inputs=Join-Path $report 'inputs';$null=New-Item -ItemType Directory -Path $inputs -Force +$empty=Join-Path $inputs 'empty.input';[IO.File]::WriteAllText($empty,'') +$saved=@{} +foreach($name in (@((Get-ChildItem Env:PCL_*).Name)+@('CURSEFORGE_API_KEY','CURSEFORGE_API') | Select-Object -Unique)) { + $saved[$name]=[Environment]::GetEnvironmentVariable($name,'Process') +} +$cases=[Collections.Generic.List[object]]::new() +$current='setup';$failure=$null +if(-not ('Conduit.BuildContractProbe' -as [type])) { + Add-Type -TypeDefinition @' +using System; +using System.Text; +namespace Conduit { public static class BuildContractProbe { + public static bool Contains(byte[] bytes, string value) => ((ReadOnlySpan)bytes).IndexOf(Encoding.Unicode.GetBytes(value)) >= 0; +} } +'@ +} +function Clear-Inputs { + Get-ChildItem Env:PCL_* | ForEach-Object { Remove-Item -LiteralPath ('Env:'+$_.Name) -ErrorAction SilentlyContinue } + foreach($name in @('CURSEFORGE_API_KEY','CURSEFORGE_API')){Remove-Item -LiteralPath ('Env:'+$name) -ErrorAction SilentlyContinue} +} +function Require([bool]$Condition,[string]$Message) { if(-not $Condition){throw $Message} } +function Owner-Contains([string]$Path,[string]$Value) { + $bytes=[IO.File]::ReadAllBytes($Path) + return [Conduit.BuildContractProbe]::Contains($bytes,$Value) +} +function Source-Fingerprint { + $head=& git -C $repo rev-parse HEAD + if($LASTEXITCODE -ne 0){throw 'Cannot fingerprint source HEAD.'} + $status=@(& git -C $repo status --porcelain) + if($LASTEXITCODE -ne 0){throw 'Cannot fingerprint source status.'} + $diff=@(& git -C $repo diff --binary HEAD) + if($LASTEXITCODE -ne 0){throw 'Cannot fingerprint tracked source.'} + $extra=@(& git -C $repo ls-files --others --exclude-standard) + if($LASTEXITCODE -ne 0){throw 'Cannot fingerprint new source.'} + $hashes=@($extra | ForEach-Object { $_+':'+(Get-FileHash -LiteralPath (Join-Path $repo $_) -Algorithm SHA256).Hash }) + $text=(@($head)+$status+$diff+$hashes)-join "`n" + return [Convert]::ToHexStringLower([Security.Cryptography.SHA256]::HashData([Text.Encoding]::UTF8.GetBytes($text))) +} +function Read-Provider([string]$Owner) { + # The CLR can share a mapped PE image for an identical file path across collectible + # contexts. Probe an exact byte copy at a unique path, while all compiler/obj roots + # remain fixed. These are verification copies, never fresh build intermediates. + $probeDirectory=Join-Path $build ('provider-probes/'+[guid]::NewGuid().ToString('N')) + $null=New-Item -ItemType Directory -Path $probeDirectory + $probe=Join-Path $probeDirectory 'SHOU.Launcher.Core.dll' + Copy-Item -LiteralPath $Owner -Destination $probe + Require ((Get-FileHash $Owner).Hash -eq (Get-FileHash $probe).Hash) 'Provider probe copy differs from actual owner.' + $context=[Runtime.Loader.AssemblyLoadContext]::new('contract-'+[guid]::NewGuid(),$true) + try { + $assembly=$context.LoadFromAssemblyPath($probe) + $type=$assembly.GetType('SHOU.Launcher.Core.Configuration.BuildConfiguration',$true) + $instance=[Activator]::CreateInstance($type) + return @{Microsoft=$type.GetProperty('MicrosoftClientId').GetValue($instance);CurseForge=$type.GetProperty('CurseForgeApiKey').GetValue($instance);SourceSha=$type.GetProperty('SourceSha').GetValue($instance);Configuration=$type.GetProperty('Configuration').GetValue($instance)} + } finally {$context.Unload()} +} +function Build-Core([string]$Case,[string]$Configuration) { + $root=Join-Path $build 'compiler' # switches reuse this same intermediate root. + $logs=Join-Path $report "compiler/$Case";$null=New-Item -ItemType Directory -Path $logs -Force + $entry=Join-Path $repo 'src/SHOU.Launcher.Core/SHOU.Launcher.Core.csproj' + $props=@('-p:UseArtifactsOutput=true',"-p:ArtifactsPath=$root","-p:Configuration=$Configuration",'-p:UseSharedCompilation=false') + Assert-ConduitProjectPaths $Dotnet @($entry,(Join-Path $repo 'src/SHOU.Launcher.Generators/SHOU.Launcher.Generators.csproj')) $props (Join-Path $logs 'paths.json') + Invoke-ConduitDotnet $Dotnet (@('restore',$entry)+$props) (Join-Path $logs 'restore.log') + Invoke-ConduitDotnet $Dotnet (@('clean',$entry,'-v','quiet')+$props) (Join-Path $logs 'clean.log') + Invoke-ConduitDotnet $Dotnet (@('build',$entry,'--no-restore')+$props) (Join-Path $logs 'build.log') + $owner=& $Dotnet msbuild $entry '-getProperty:TargetPath' @props + if($LASTEXITCODE -ne 0){throw 'Cannot locate compiler-contract owner.'} + return [string]$owner +} +try { + Clear-Inputs + $a='11111111-1111-4111-8111-111111111111';$b='22222222-2222-4222-8222-222222222222' + $cfA='SHOU_FAKE_A_quote_"_slash_\_dollar_$';$cfB='SHOU_FAKE_B_quote_"_slash_\_dollar_$' + $unlisted='SHOU_FAKE_UNLISTED_733654926' + if($Mode -in @('All','Inputs')) { + $current='B02-B04-B13-B14' + $file=Join-Path $inputs 'precedence.input' + [IO.File]::WriteAllText($file,"PCL_MS_CLIENT_ID='$a'`nPCL_CURSEFORGE_API_KEY='file-official'`nCURSEFORGE_API_KEY='file-alias'`n") + $env:CURSEFORGE_API_KEY='process-alias' + $inputConfig=Get-ConduitBuildInput $repo $file + Require ($inputConfig.Credentials.CurseForgeApiKey -eq 'process-alias') 'B02 process alias lost to file official name.' + $env:PCL_CURSEFORGE_API_KEY='process-official' + Require ((Get-ConduitBuildInput $repo $file).Credentials.CurseForgeApiKey -eq 'process-official') 'B02 official process priority failed.' + $env:PCL_CURSEFORGE_API_KEY=' ';$env:CURSEFORGE_API_KEY=' ' + Require ((Get-ConduitBuildInput $repo $file).Credentials.CurseForgeApiKey -eq 'file-official') 'B03 whitespace fallback failed.' + [IO.File]::WriteAllText($file,"CURSEFORGE_API_KEY='first'`nCURSEFORGE_API_KEY='second'`n") + Require ((Get-ConduitBuildInput $repo $file).Credentials.CurseForgeApiKey -eq 'second') 'B04 duplicate assignment semantics changed.' + [IO.File]::AppendAllText($file,"UNKNOWN_LITERAL='never executed'`n") + $rejected=$false + try {$null=Get-ConduitBuildInput $repo $file} catch {$rejected=$_.Exception.Message -match '^Unsupported .env assignment at line 3'} + Require $rejected 'B04 unknown assignment was not rejected safely.' + Clear-Inputs + $missing=Get-ConduitBuildInput $repo '.env' + Require (-not $missing.Credentials.MicrosoftClientId -and -not $missing.Credentials.CurseForgeApiKey) 'B03 absent default file did not yield empty inputs.' + $rejected=$false + try{$null=Get-ConduitBuildInput $repo (Join-Path $inputs 'missing-explicit.input')}catch{$rejected=$_.Exception.Message -eq 'Explicit EnvFile is not readable.'} + Require $rejected 'B03 missing explicit file was not rejected.' + $env:PCL_SENTINEL='caller-sentinel';$env:PCL_GITHUB_SHA='caller-sha' + foreach($throws in @($false,$true)) { + $caught=$false + try { Invoke-ConduitBuildEnvironment $repo $empty {if($throws){throw [InvalidOperationException]::new('fixture failure')}} } + catch {$caught=$true;if(-not $throws){throw}} + Require ($caught -eq $throws) 'B13 expected exception path did not execute.' + Require ($env:PCL_SENTINEL -eq 'caller-sentinel' -and $env:PCL_GITHUB_SHA -eq 'caller-sha') 'B13 caller environment not restored.' + } + $cases.Add(@{id=$current;status='PASS';explicit_external_env_file=$true;success_and_exception_restore=$true}) + Clear-Inputs + } + if($Mode -in @('All','Compiler')) { + foreach($switchValue in @('absent','1','0','false')) { + $current='B05-B06-'+$switchValue;Clear-Inputs + $env:PCL_MS_CLIENT_ID=$a;$env:PCL_CURSEFORGE_API_KEY=$cfA;$env:PCL_GITHUB_SHA='fixture-source';$env:PCL_UNLISTED_FAKE_TOKEN=$unlisted + if($switchValue -ne 'absent'){$env:PCL_WRITE_SECRET=$switchValue} + $owner=Build-Core $current 'Release' + if($switchValue -ne 'absent') {$null=& (Join-Path $repo 'scripts/conduit/Assert-ClientCredentials.ps1') -AssemblyPath $owner -ErrorAction Stop} + # The absent switch intentionally must not embed configured inputs; check without the positive verifier. + $provider=Read-Provider $owner + Require (($provider.Microsoft -eq $a) -eq ($switchValue -ne 'absent')) 'B05 switch-presence behavior changed.' + Require (($provider.CurseForge -eq $cfA) -eq ($switchValue -ne 'absent')) 'B06 escaped input did not round-trip.' + Require (-not (Owner-Contains $owner $unlisted)) 'B06 non-allowlisted input entered owner.' + $cases.Add(@{id=$current;status='PASS';owner_sha256=(Get-FileHash $owner).Hash;configuration=$provider.Configuration}) + } + foreach($configuration in @('Debug','CI','Beta','Release')) { + $current='B11-'+$configuration;Clear-Inputs + $owner=Build-Core $current $configuration + $env:PCL_MS_CLIENT_ID=$b;$env:PCL_CURSEFORGE_API_KEY=$cfB;$env:PCL_GITHUB_SHA='hostile-runtime-sha' + $provider=Read-Provider $owner + Require (($provider.Microsoft -eq $b) -eq ($configuration -eq 'Debug')) 'B11 unexpected runtime fallback.' + Require ($provider.SourceSha -eq 'unconfigured') 'B16 runtime environment changed source identity.' + Require ($provider.Configuration -eq $configuration) 'B11 configuration symbol mismatch.' + $cases.Add(@{id=$current;status='PASS';source_runtime_fallback=$false}) + } + $current='B11-embedded-priority';Clear-Inputs + $env:PCL_WRITE_SECRET='1';$env:PCL_MS_CLIENT_ID=$a;$env:PCL_CURSEFORGE_API_KEY=$cfA;$env:PCL_GITHUB_SHA='fixture-source' + $owner=Build-Core $current 'Debug' + $env:PCL_MS_CLIENT_ID=$b;$env:PCL_GITHUB_SHA='hostile-runtime-sha' + $provider=Read-Provider $owner + Require ($provider.Microsoft -eq $a -and $provider.SourceSha -eq 'fixture-source') 'B11 embedded Debug input lost priority.' + $cases.Add(@{id=$current;status='PASS'}) + } + if($Mode -in @('All','Sequence')) { + $intermediate=Join-Path $build 'B07-Desktop' + $sha=& git -C $repo rev-parse HEAD + $sourceFingerprint=Source-Fingerprint + foreach($case in @('A','B','none')) { + $current='B07-'+$case;Clear-Inputs + $envFile=Join-Path $inputs ($case+'.input') + $text=if($case -eq 'A'){"PCL_MS_CLIENT_ID='$a'`nPCL_CURSEFORGE_API_KEY='$cfA'`n"}elseif($case -eq 'B'){"PCL_MS_CLIENT_ID='$b'`nPCL_CURSEFORGE_API_KEY='$cfB'`n"}else{''} + [IO.File]::WriteAllText($envFile,$text) + $env:PCL_UNLISTED_FAKE_TOKEN=$unlisted + $out=Join-Path $fixtures $case + & (Join-Path $repo 'scripts/conduit/Publish-Desktop.ps1') -RuntimeIdentifier $SequenceRid -Configuration Release -Dotnet $Dotnet -EnvFile $envFile -BuildRoot $intermediate -OutputRoot $out -BuildSuffix ('B07-'+$case) + $owner=if($SequenceRid -eq 'osx-arm64'){Join-Path $out 'SHOU Launcher.app/Contents/MacOS/SHOU.Launcher.Core.dll'}else{Join-Path $out 'SHOU Launcher/SHOU.Launcher.Desktop.exe'} + $presentA=Owner-Contains $owner $a;$presentB=Owner-Contains $owner $b + Require ($presentA -eq ($case -eq 'A') -and $presentB -eq ($case -eq 'B')) 'B07 stale Microsoft input survived normal clean/publish.' + Require ((Owner-Contains $owner $cfA) -eq ($case -eq 'A')) 'B07 stale first escaped key survived.' + Require ((Owner-Contains $owner $cfB) -eq ($case -eq 'B')) 'B07 stale second escaped key survived.' + Require (-not (Owner-Contains $owner $unlisted)) 'B06 publish leaked non-allowlisted fake token.' + $info=Get-Content -Raw (Join-Path $out 'BUILD-INFO.json') | ConvertFrom-Json + Require ($info.source_sha -eq $sha -and $info.runtime -eq $SequenceRid -and $info.configuration -eq 'Release') 'B07 identity/RID/configuration changed.' + $null=New-Item -ItemType Directory -Path (Join-Path $report $case) -Force + Copy-Item -LiteralPath (Join-Path $intermediate 'reports/steps.json') -Destination (Join-Path $report "$case/steps.json") + [IO.File]::WriteAllText((Join-Path $out 'FIXTURE-ONLY.txt'),'Contains fake configuration inputs for B07; not a product candidate.') + $afterFingerprint=Source-Fingerprint + Require ($sourceFingerprint -eq $afterFingerprint) 'B07 source tree changed during the sequence; this run cannot prove same-source withdrawal.' + $cases.Add(@{id=$current;status='PASS';build_root=$intermediate;entry='src/SHOU.Launcher.Desktop/SHOU.Launcher.Desktop.csproj';configuration='Release';rid=$SequenceRid;source_sha=$sha;source_fingerprint=$sourceFingerprint;owner_sha256=(Get-FileHash $owner).Hash;fixture_only=$true;output=$out}) + } + } +} catch {$failure=$_.Exception;throw} +finally { + Clear-Inputs + foreach($name in $saved.Keys){ + if($null -eq $saved[$name]){Remove-Item -LiteralPath ('Env:'+$name) -ErrorAction SilentlyContinue} + else{[Environment]::SetEnvironmentVariable($name,$saved[$name],'Process')} + } + $restored=$true + foreach($name in $saved.Keys){if([Environment]::GetEnvironmentVariable($name,'Process') -cne $saved[$name]){$restored=$false}} + $result=@{status=$(if($failure -or -not $restored){'FAIL'}else{'PASS'});mode=$Mode;current_case=$current;cases=$cases.ToArray();environment_restored=$restored;error_type=$(if($failure){$failure.GetType().FullName}else{$null});at=[DateTimeOffset]::UtcNow.ToString('o')} + $temporary=Join-Path $report 'build-contract.tmp';$result | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath $temporary -Encoding utf8 + Move-Item -LiteralPath $temporary -Destination (Join-Path $report 'build-contract.json') -Force + if(-not $restored){throw 'Build-contract caller environment was not restored.'} +} diff --git a/scripts/dev/Validate-Desktop.ps1 b/scripts/dev/Validate-Desktop.ps1 new file mode 100644 index 00000000..dad10cc0 --- /dev/null +++ b/scripts/dev/Validate-Desktop.ps1 @@ -0,0 +1,25 @@ +[CmdletBinding()] +param([ValidateSet('Build','Test')][string]$Action='Build',[Parameter(Mandatory)][string]$EntryProject, + [string]$RuntimeIdentifier='osx-arm64',[string]$Configuration='Release',[string]$Dotnet='dotnet',[Parameter(Mandatory)][string]$BuildRoot,[string]$TestFilter='') +$ErrorActionPreference='Stop' +. (Join-Path $PSScriptRoot '../conduit/Build-Shared.ps1') +Assert-ConduitHeavyGate +$repo=(Resolve-Path (Join-Path $PSScriptRoot '../..')).Path +$build=Assert-ConduitTaskPath $BuildRoot +$entry=Join-Path $repo $EntryProject +$report=Join-Path $build 'reports' +$null=New-Item -ItemType Directory -Path $report -Force +$props=@('-p:UseArtifactsOutput=true',"-p:ArtifactsPath=$build","-p:Configuration=$Configuration","-p:RuntimeIdentifier=$RuntimeIdentifier",'-p:UseSharedCompilation=false') +if($EntryProject -ne 'src/SHOU.Launcher.Core/SHOU.Launcher.Core.csproj') { + $bootstrap=New-ConduitJavaBootstrap $repo $build + $props+=@("-p:JavaBootstrapJarPath=$($bootstrap.path)","-p:JavaBootstrapSha256=$($bootstrap.sha256)") +} +$projects=@($entry,(Join-Path $repo 'src/SHOU.Launcher.Core/SHOU.Launcher.Core.csproj'),(Join-Path $repo 'src/SHOU.Launcher.Desktop/SHOU.Launcher.Desktop.csproj'),(Join-Path $repo 'src/SHOU.Launcher.Generators/SHOU.Launcher.Generators.csproj')) | Select-Object -Unique +Assert-ConduitProjectPaths $Dotnet $projects $props (Join-Path $report 'paths.json') +Invoke-ConduitDotnet $Dotnet (@('restore',$entry) + $props) (Join-Path $report 'restore.log') +Invoke-ConduitDotnet $Dotnet (@('build',$entry,'--no-restore') + $props) (Join-Path $report 'build.log') +if ($Action -eq 'Test') { + $arguments=@('test',$entry,'--no-restore','--no-build','--logger','trx;LogFileName=tests.trx','--results-directory',$report) + if($TestFilter){$arguments+=@('--filter',$TestFilter)} + Invoke-ConduitDotnet $Dotnet ($arguments + $props) (Join-Path $report 'test.log') +} diff --git a/scripts/dev/checkpoint.py b/scripts/dev/checkpoint.py new file mode 100644 index 00000000..050adc1f --- /dev/null +++ b/scripts/dev/checkpoint.py @@ -0,0 +1,65 @@ +#!/usr/bin/env python3 +"""Precise uncommitted patch + SHA-256 snapshot without touching the Git index.""" +import argparse, hashlib, json, os, pathlib, subprocess, datetime + +def git(repo, *args, accepted=(0,)): + result = subprocess.run(['git', '-C', str(repo), *args], stdout=subprocess.PIPE, stderr=subprocess.PIPE) + if result.returncode not in accepted: + raise RuntimeError(result.stderr.decode(errors='replace')) + return result.stdout + +def paths(repo): + raw = git(repo, 'ls-files', '-z') + git(repo, 'ls-files', '--others', '--exclude-standard', '-z') + result = sorted(set(x.decode() for x in raw.split(b'\0') if x)) + if any(pathlib.PurePosixPath(x).name.startswith('.env') and pathlib.PurePosixPath(x).name != '.env.example' for x in result): + raise RuntimeError('Credential-like file unexpectedly in snapshot set') + return result + +def capture(repo, out, baseline=None): + repo, out = repo.resolve(), out.resolve() + root=pathlib.Path(os.environ.get('SHOU_DEV_ROOT', '/Users/moear/Code/SHOU-Launcher/.shou-dev')).resolve() + if not repo.is_relative_to(root / 'worktrees') or not out.is_relative_to(root / 'reports'): + raise ValueError('Checkpoint must use a task worktree and reports destination') + out.mkdir(parents=True,exist_ok=True) + names=paths(repo) + data={} + for name in names: + source=repo/name + if not source.is_file(): continue + if source.is_symlink(): raise ValueError('Snapshot does not follow source symlinks: '+name) + target=out/'files'/name;target.parent.mkdir(parents=True,exist_ok=True) + content=source.read_bytes();target.write_bytes(content);target.chmod(source.stat().st_mode & 0o777) + data[name]={'sha256':hashlib.sha256(content).hexdigest(),'mode':source.stat().st_mode & 0o777} + if baseline is None: + patch=git(repo,'diff','--binary','HEAD','--') + for name in git(repo,'ls-files','--others','--exclude-standard','-z').split(b'\0'): + if not name: continue + patch+=git(repo,'diff','--no-index','--binary','--','/dev/null',name.decode(),accepted=(0,1)) + else: + old=json.loads((baseline/'snapshot.json').read_text())['files'] + patch=b'' + for name in sorted(set(old)|set(data)): + if old.get(name)==data.get(name): continue + before=(baseline/'files'/name) if name in old else pathlib.Path('/dev/null') + after=(repo/name) if name in data else pathlib.Path('/dev/null') + delta=git(repo,'diff','--no-index','--binary','--',str(before),str(after),accepted=(0,1)) + lines=delta.splitlines(keepends=True) + fixed=[] + for line in lines: + if line.startswith(b'diff --git '): line=('diff --git a/'+name+' b/'+name+'\n').encode() + elif line.startswith(b'--- ') and before!=pathlib.Path('/dev/null'): line=('--- a/'+name+'\n').encode() + elif line.startswith(b'+++ ') and after!=pathlib.Path('/dev/null'): line=('+++ b/'+name+'\n').encode() + fixed.append(line) + patch+=b''.join(fixed) + (out/'changes.patch').write_bytes(patch) + manifest={'created_at':datetime.datetime.now(datetime.timezone.utc).isoformat(),'worktree':str(repo), + 'branch':git(repo,'branch','--show-current').decode().strip(),'base_sha':git(repo,'merge-base','HEAD','origin/dev').decode().strip(),'current_sha':git(repo,'rev-parse','HEAD').decode().strip(), + 'dirty':bool(git(repo,'status','--porcelain').strip()),'baseline_snapshot':str(baseline) if baseline else None, + 'patch_path':str(out/'changes.patch'),'patch_sha256':hashlib.sha256(patch).hexdigest(),'files':data} + (out/'snapshot.json').write_text(json.dumps(manifest,ensure_ascii=False,indent=2)+'\n') + (out/'SHA256SUMS').write_text(''.join(v['sha256']+' '+k+'\n' for k,v in data.items())) + print(json.dumps({k:v for k,v in manifest.items() if k!='files'},ensure_ascii=False)) + +if __name__=='__main__': + p=argparse.ArgumentParser(description=__doc__);p.add_argument('--repo',type=pathlib.Path,required=True);p.add_argument('--out',type=pathlib.Path,required=True);p.add_argument('--baseline',type=pathlib.Path) + a=p.parse_args();capture(a.repo,a.out,a.baseline) diff --git a/scripts/dev/ci_gate.py b/scripts/dev/ci_gate.py new file mode 100644 index 00000000..197e415c --- /dev/null +++ b/scripts/dev/ci_gate.py @@ -0,0 +1,126 @@ +#!/usr/bin/env python3 +"""Portable ephemeral-runner gate; local night work must keep its existing controller.""" +import argparse +import datetime +import json +import os +from pathlib import Path +import re +import shutil +import stat +import subprocess +import sys + +GIB = 1024 ** 3 + +def space_decision(free, used, peak, reserve_gib=20): + if free < 10 * GIB: + return 'STOP_FREE_BELOW_10_GIB' + if free < reserve_gib * GIB or free - peak < reserve_gib * GIB: + return 'BLOCKED_SYSTEM_RESERVE_' + str(reserve_gib) + '_GIB' + if used + peak > 35 * GIB: + return 'BLOCKED_TASK_BUDGET_35_GIB' + return 'PASS' + +def tree_bytes(root): + def is_link(path): + info = path.lstat() + return stat.S_ISLNK(info.st_mode) or bool(getattr(info, 'st_file_attributes', 0) & 0x400) + total = 0 + for folder, directories, files in os.walk(root, followlinks=False): + directories[:] = [d for d in directories if not is_link(Path(folder) / d)] + for name in files: + path = Path(folder) / name + try: + if not is_link(path): + total += path.stat().st_size + except FileNotFoundError: + pass + return total + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('--worker', choices=['main', 'ui', 'platform'], required=True) + parser.add_argument('--job', required=True) + parser.add_argument('--peak-gib', type=float, required=True) + parser.add_argument('--cwd', type=Path, required=True) + parser.add_argument('command', nargs=argparse.REMAINDER) + args = parser.parse_args() + if os.environ.get('GITHUB_ACTIONS') != 'true': + raise ValueError('This gate is CI-only; use the existing local control/dev.py') + root = Path(os.environ['SHOU_DEV_ROOT']).resolve(strict=True) + if (root / 'control/NIGHT-GUARDS.md').exists(): + raise ValueError('Cannot replace or bypass the night controller') + policy = json.loads((root / 'control/resource-policy.json').read_text()) + if policy.get('profile') != 'ephemeral-github-standard' or policy.get('reserve_gib') != 8 or policy.get('stop_free_gib') != 10: + raise ValueError('Unregistered ephemeral runner policy') + registry = json.loads((root / 'control/tools.json').read_text()) + java_home = Path(registry['java']['home']) + if not java_home.is_absolute() or not java_home.is_dir(): + raise ValueError('The selected CI Java home is unavailable') + suffix = '.exe' if os.name == 'nt' else '' + if any(not (java_home / 'bin' / (tool + suffix)).is_file() for tool in ['java', 'javac', 'jar', 'jcmd']): + raise ValueError('The registered CI JDK is incomplete') + checkout = Path(os.environ['GITHUB_WORKSPACE']).resolve(strict=True) + cwd = args.cwd.resolve(strict=True) + if cwd != checkout or not re.fullmatch(r'[A-Za-z0-9_.-]+', args.job) or args.job in ['.', '..'] or not 0 < args.peak_gib <= 35: + raise ValueError('Invalid registered checkout, job identity or peak budget') + command = args.command[1:] if args.command[:1] == ['--'] else args.command + if not command or not Path(command[0]).is_absolute(): + raise ValueError('An explicit absolute tool is required') + state = root / 'state' + state.mkdir(exist_ok=True) + lock = state / 'heavy.lock' + if lock.is_symlink(): + raise ValueError('Lock must not be a symbolic link') + with lock.open('a+b') as handle: + if os.name == 'nt': + import msvcrt + if handle.tell() == 0: + handle.write(b'0'); handle.flush() + handle.seek(0) + msvcrt.locking(handle.fileno(), msvcrt.LK_NBLCK, 1) + else: + import fcntl + fcntl.flock(handle, fcntl.LOCK_EX | fcntl.LOCK_NB) + free = shutil.disk_usage(root).free + used = tree_bytes(root) + decision = space_decision(free, used, args.peak_gib * GIB, reserve_gib=policy['reserve_gib']) + event = {'at': datetime.datetime.now(datetime.timezone.utc).isoformat(), 'worker': args.worker, + 'job': args.job, 'free_bytes': free, 'task_bytes': used, 'peak_gib': args.peak_gib, + 'decision': decision, 'resource_policy': policy, 'warning_25_gib': used + args.peak_gib * GIB >= 25 * GIB} + reports = root / 'reports'; reports.mkdir(exist_ok=True) + with (reports / 'space-events.jsonl').open('a') as output: + output.write(json.dumps(event) + '\n') + if decision != 'PASS': + print(json.dumps(event)); return 75 + environment = dict(os.environ) + environment['SHOU_WORKER'] = args.worker + environment['SHOU_JOB_ID'] = args.job + # Preserve the registered alias spelling for tests and use the same JDK for bootstrap compilation. + environment['JAVA_HOME'] = str(java_home) + mapping = {'DOTNET_CLI_HOME': root / 'state/cli-home' / args.worker, + 'TMPDIR': root / 'tmp' / args.worker / args.job, + 'NUGET_PACKAGES': root / 'cache/nuget/packages', + 'NUGET_HTTP_CACHE_PATH': root / 'cache/nuget/http', + 'NUGET_SCRATCH': root / 'cache/nuget/scratch', + 'NUGET_PLUGINS_CACHE_PATH': root / 'cache/nuget/plugins'} + for name, path in mapping.items(): + path.mkdir(parents=True, exist_ok=True); environment[name] = str(path) + environment['TMP'] = environment['TEMP'] = environment['TMPDIR'] + owner = state / 'heavy-owner.json' + owner.write_text(json.dumps({'worker': args.worker, 'job': args.job, 'pid': os.getpid(), 'cwd': str(cwd)})) + code = 1 + try: + code = subprocess.run(command, cwd=cwd, env=environment).returncode + return code + finally: + # Remove only this controller's inactive owner metadata; never remove the lock inode. + if owner.exists() and json.loads(owner.read_text()).get('pid') == os.getpid(): + owner.unlink() + with (reports / 'commands.jsonl').open('a') as output: + output.write(json.dumps({'command': command, 'cwd': str(cwd), 'exit_code': code, + 'job': args.job, 'source_sha': subprocess.check_output(['git', 'rev-parse', 'HEAD'], cwd=cwd, text=True).strip()}) + '\n') + +if __name__ == '__main__': + sys.exit(main()) diff --git a/scripts/dev/run_bounded.py b/scripts/dev/run_bounded.py new file mode 100644 index 00000000..1c9c3253 --- /dev/null +++ b/scripts/dev/run_bounded.py @@ -0,0 +1,51 @@ +#!/usr/bin/env python3 +"""Bound a single owned child process group; retain exact command/exit/timeout evidence.""" +import argparse +import datetime +import json +import os +from pathlib import Path +import signal +import subprocess +import sys +import time + +p = argparse.ArgumentParser(description=__doc__) +p.add_argument('--timeout', type=float, required=True) +p.add_argument('--report', type=Path, required=True) +p.add_argument('command', nargs=argparse.REMAINDER) +a = p.parse_args() +command = a.command[1:] if a.command[:1] == ['--'] else a.command +root = Path(os.environ['SHOU_DEV_ROOT']).resolve() +report = a.report.resolve() +if not report.is_relative_to(root / 'reports') or not command or a.timeout <= 0: + raise ValueError('A registered report, positive deadline and explicit command are required') +report.parent.mkdir(parents=True, exist_ok=True) +log = report.with_suffix('.log') +started = time.time() +timed_out = False +with log.open('w') as output: + child = subprocess.Popen(command, stdout=output, stderr=subprocess.STDOUT, + start_new_session=os.name != 'nt', + creationflags=subprocess.CREATE_NEW_PROCESS_GROUP if os.name == 'nt' else 0) + try: + code = child.wait(timeout=a.timeout) + except subprocess.TimeoutExpired: + timed_out = True + if os.name == 'nt': + subprocess.run(['taskkill', '/PID', str(child.pid), '/T', '/F'], check=False, stdout=output, stderr=subprocess.STDOUT) + else: + os.killpg(child.pid, signal.SIGTERM) + try: child.wait(timeout=5) + except subprocess.TimeoutExpired: os.killpg(child.pid, signal.SIGKILL) + child.wait() + code = 124 +record = {'command': command, 'cwd': str(Path.cwd()), 'owned_pid': child.pid, + 'exit_code': code, 'timed_out': timed_out, 'seconds': time.time() - started, + 'finished_at': datetime.datetime.now(datetime.timezone.utc).isoformat(), 'log': str(log)} +temporary = report.with_suffix('.tmp') +temporary.write_text(json.dumps(record, indent=2) + '\n') +os.replace(temporary, report) +print(json.dumps(record), flush=True) +if code: print(log.read_text(errors='replace')[-8000:], flush=True) +sys.exit(code) diff --git a/scripts/dev/run_clean_candidate.py b/scripts/dev/run_clean_candidate.py new file mode 100644 index 00000000..572dfc88 --- /dev/null +++ b/scripts/dev/run_clean_candidate.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python3 +"""Execute a task candidate with build inputs and SDK/PowerShell paths removed.""" +import json +import os +from pathlib import Path +import shutil +import sys + +root = Path(os.environ['SHOU_DEV_ROOT']).resolve() +command = sys.argv[1:] +if command[:1] == ['--']: + command = command[1:] +if not command or not Path(command[0]).is_absolute(): + raise ValueError('An absolute candidate executable is required') +executable = Path(command[0]).resolve(strict=True) +if not executable.is_relative_to(root): + raise ValueError('Candidate must remain under the registered task root') +environment = dict(os.environ) +aliases = {'CURSEFORGE_API_KEY', 'CURSEFORGE_API', 'MS_CLIENT_ID', 'CLIENT_ID', 'MSBuildSDKsPath'} +removed = [] +for name in list(environment): + if name.startswith(('PCL_', 'DOTNET_', 'MSBUILD')) or name in aliases: + removed.append(name) + del environment[name] +# This changes only the owned child environment, never the system or shell profile. +environment['PATH'] = '/usr/bin:/bin:/usr/sbin:/sbin' if os.name != 'nt' else str(Path(environment['SystemRoot']) / 'System32') +environment['DOTNET_MULTILEVEL_LOOKUP'] = '0' +print(json.dumps({'scope': 'clean_candidate_environment', 'pcl_remaining': any(n.startswith('PCL_') for n in environment), + 'sdk_on_path': shutil.which('dotnet', path=environment['PATH']) is not None, + 'pwsh_on_path': shutil.which('pwsh', path=environment['PATH']) is not None, + 'env_file_in_program_directory': (executable.parent / '.env').exists(), 'removed_input_count': len(removed)}), flush=True) +os.execve(executable, command, environment) diff --git a/scripts/macos/Entitlements.plist b/scripts/macos/Entitlements.plist new file mode 100644 index 00000000..c4a04a2a --- /dev/null +++ b/scripts/macos/Entitlements.plist @@ -0,0 +1,5 @@ + + + + com.apple.security.cs.allow-jit + diff --git a/scripts/macos/Package-App.ps1 b/scripts/macos/Package-App.ps1 new file mode 100644 index 00000000..49976503 --- /dev/null +++ b/scripts/macos/Package-App.ps1 @@ -0,0 +1,144 @@ +[CmdletBinding()] +param([Parameter(Mandatory)][string]$PublishDirectory,[Parameter(Mandatory)][string]$OutputDirectory, + [Parameter(Mandatory)][string]$Version,[Parameter(Mandatory)][string]$ArchiveStem, + [string]$SigningIdentity=$env:SHOU_MACOS_SIGNING_IDENTITY, + [string]$SigningKeychain=$env:SHOU_MACOS_SIGNING_KEYCHAIN, + [switch]$AllowAdHocSigning) +$ErrorActionPreference='Stop' +if (-not $IsMacOS) { throw 'Local Mac packaging/signature inspection requires macOS.' } +. (Join-Path $PSScriptRoot '../conduit/Build-Shared.ps1') +Assert-ConduitHeavyGate +. (Join-Path $PSScriptRoot 'Signing.ps1') +$signing=Resolve-ShouMacSigning -Identity $SigningIdentity -Keychain $SigningKeychain -AllowAdHoc:$AllowAdHocSigning +$signArgs=$signing.arguments +$previousKeychains=@(Get-ShouMacKeychainSearchList) +try { +if ($signing.identity -ne '-') { + # codesign also resolves the private key through the search list, even with + # --keychain. Restore that list on both success and failure. + Set-ShouMacKeychainSearchList (@($signing.keychain)+@($previousKeychains | Where-Object { $_ -ne $signing.keychain })) +} +$publish=Assert-ConduitTaskPath $PublishDirectory +$output=Assert-ConduitTaskPath $OutputDirectory +$app=Join-Path $output 'SHOU Launcher.app' +$mac=Join-Path $app 'Contents/MacOS' +$res=Join-Path $app 'Contents/Resources' +$helpers=Join-Path $app 'Contents/Helpers' +$null=New-Item -ItemType Directory -Path (Split-Path $mac),$res,$helpers -Force +Copy-Item -LiteralPath $publish -Destination $mac -Recurse +# Resource directories do not belong in the code directory: codesign treats dotted +# package/version directories there as nested bundles instead of ordinary resources. +foreach ($name in @('licenses','LICENSE','LICENCE','THIRD-PARTY-METADATA.json')) { + $source=Join-Path $mac $name + if (Test-Path -LiteralPath $source) { Move-Item -LiteralPath $source -Destination (Join-Path $res $name) } +} +$repo=(Resolve-Path (Join-Path $PSScriptRoot '../..')).Path +$brokerRoot=Join-Path $repo 'src/SHOU.Launcher.Desktop/Native/MacOS' +$brokerManifest=Get-Content -Raw -LiteralPath (Join-Path $brokerRoot 'frozen-arm64-v1/manifest.json') | ConvertFrom-Json +$brokerSource=Join-Path $brokerRoot 'credential_broker.c' +$brokerPayload=Join-Path $brokerRoot 'frozen-arm64-v1/SHOU.CredentialBroker' +if ((Get-FileHash $brokerSource -Algorithm SHA256).Hash.ToLowerInvariant() -ne $brokerManifest.source_sha256 -or + (Get-FileHash $brokerPayload -Algorithm SHA256).Hash.ToLowerInvariant() -ne $brokerManifest.payload_sha256) { + throw 'Frozen credential component differs from its reviewed source/asset manifest. Rebuild it explicitly; ordinary UI updates must preserve it.' +} +$broker=Join-Path $helpers 'SHOU.CredentialBroker' +Copy-Item -LiteralPath $brokerPayload -Destination $broker +& /bin/chmod +x $broker +if ($LASTEXITCODE -ne 0) { throw 'Cannot set credential component executable permission.' } +if ($signing.identity -ne '-' -and $brokerManifest.signing_identity -ne $signing.identity) { + throw 'Fixed credential component signer differs from the launcher signer. Rebuild/sign the component explicitly for an intentional signing-identity migration.' +} +# Preserve the entire reviewed signed executable. Re-signing or recompiling it +# with a different host SDK can change the cdhash and prompt again after updates. +& /usr/bin/codesign --verify --strict $broker +if ($LASTEXITCODE -ne 0) { throw 'Credential component signature verification failed.' } +Copy-Item -LiteralPath (Join-Path $repo 'Plain Craft Launcher 2/Images/Conduit/club-logo.png') -Destination $res +Copy-Item -LiteralPath (Join-Path $repo 'LICENSE'),(Join-Path $repo 'Plain Craft Launcher 2/LICENCE') -Destination $res +$iconset=Join-Path $env:TMPDIR ('shou-'+[guid]::NewGuid().ToString('N')+'.iconset') +$null=New-Item -ItemType Directory -Path $iconset +foreach ($size in @(16,32,128,256,512)) { + foreach ($scale in @(1,2)) { + $name="icon_$($size)x$($size)"+$(if ($scale -eq 2) {'@2x'} else {''})+'.png' + & /usr/bin/sips -z ($size*$scale) ($size*$scale) (Join-Path $res 'club-logo.png') --out (Join-Path $iconset $name) | Out-Null + if ($LASTEXITCODE -ne 0) { throw 'Cannot generate bundle icon.' } + } +} +& /usr/bin/iconutil -c icns $iconset -o (Join-Path $res 'SHOU.icns') +if ($LASTEXITCODE -ne 0) { throw 'Cannot encode bundle icon.' } +@" + + + +CFBundleExecutableSHOU.Launcher.Desktop +CFBundleIdentifierclub.conduit.shou.launcher +CFBundleNameSHOU Launcher +CFBundleDisplayName潮涌核心社启动器 +CFBundlePackageTypeAPPL +CFBundleIconFileSHOU.icns +CFBundleVersion$Version +CFBundleShortVersionString$Version +NSHighResolutionCapable +LSMinimumSystemVersion14.0 + +"@ | Set-Content -LiteralPath (Join-Path $app 'Contents/Info.plist') -Encoding utf8 +& /bin/chmod +x (Join-Path $mac 'SHOU.Launcher.Desktop') +if ($LASTEXITCODE -ne 0) { throw 'Cannot set apphost executable permission.' } +$buildInfoPath=Join-Path $mac 'BUILD-INFO.json' +if (Test-Path -LiteralPath $buildInfoPath) { + $buildInfo=Get-Content -Raw -LiteralPath $buildInfoPath | ConvertFrom-Json -AsHashtable + $buildInfo.signing=$signing.mode + $buildInfo.signing_identity=$signing.identity + $buildInfo.packaging_script_sha256=(Get-FileHash -LiteralPath $PSCommandPath -Algorithm SHA256).Hash.ToLowerInvariant() + $buildInfo.credential_broker=@{protocol=1;identifier=$brokerManifest.identifier;frozen_source_sha256=$brokerManifest.source_sha256;frozen_payload_sha256=$brokerManifest.payload_sha256} + $buildInfo.credential_broker.signing_identity=$brokerManifest.signing_identity + $buildInfo.credential_broker.cdhash=$brokerManifest.cdhash + $buildInfo | ConvertTo-Json -Depth 10 | Set-Content -LiteralPath $buildInfoPath -Encoding utf8 + $buildInfo | ConvertTo-Json -Depth 10 | Set-Content -LiteralPath (Join-Path $output 'BUILD-INFO.json') -Encoding utf8 +} +$nativeReport=@() +foreach ($file in Get-ChildItem -LiteralPath $mac -File -Recurse) { + $kind = & /usr/bin/file -b $file.FullName + if ($kind -match 'Mach-O') { + $arch = & /usr/bin/lipo -archs $file.FullName + if ($LASTEXITCODE -ne 0 -or $arch -notmatch 'arm64') { throw "Native dependency is not arm64: $($file.Name)" } + $links = & /usr/bin/otool -L $file.FullName + $dependencyRows = @($links | Where-Object { $_ -match '^\s+' }) + if ($LASTEXITCODE -ne 0 -or ($dependencyRows -join "`n") -match '/opt/homebrew|/Users/[^/]+/') { throw "Unexpected developer-machine native dependency: $($file.Name)" } + $nativeReport += @{file=$file.Name;architectures=$arch;dependencies=$dependencyRows;signature=$signing.mode} + } + # All files in Contents/MacOS are code subcomponents, including PE DLLs and JSON data. + # Follow Avalonia's explicit per-file signing order, then sign the apphost/bundle last. + # codesign stores generic-file signatures in xattrs; ditto preserves them in the archive. + if ($file.Name -eq 'SHOU.Launcher.Desktop') { continue } + & /usr/bin/codesign --force --sign $signing.identity @signArgs $file.FullName 2>&1 | Out-Host + if ($LASTEXITCODE -ne 0) { throw "Local native signing failed: $($file.Name)" } + & /usr/bin/codesign --verify --strict $file.FullName + if ($LASTEXITCODE -ne 0) { throw "Individual signature verification failed: $($file.Name)" } +} +$requirementArgs=@() +if ($signing.identity -ne '-') { + # Pin the certificate and app identifier, never a per-build executable hash. + # Reusing the exported identity on CI produces the same designated requirement. + $requirement='designated => identifier "club.conduit.shou.launcher" and certificate leaf = H"'+$signing.identity+'"' + $requirementArgs=@('--requirements',('='+$requirement)) +} +& /usr/bin/codesign --force --sign $signing.identity @signArgs @requirementArgs --identifier club.conduit.shou.launcher --entitlements (Join-Path $PSScriptRoot 'Entitlements.plist') $app 2>&1 | Out-Host +if ($LASTEXITCODE -ne 0) { throw 'Local bundle signing failed.' } +& /usr/bin/codesign --verify --strict $app +if ($LASTEXITCODE -ne 0) { throw 'Local bundle signature verification failed.' } +$requirementText=(& /usr/bin/codesign -d -r- $app 2>&1) -join "`n" +if ($LASTEXITCODE -ne 0) { throw 'Cannot inspect bundle designated requirement.' } +if ($signing.identity -ne '-' -and ($requirementText -match 'designated => cdhash' -or $requirementText -notmatch $signing.identity)) { throw 'Bundle does not retain the fixed certificate requirement.' } +@{mode=$signing.mode;identity=$signing.identity;notarized=$false;designated_requirement=$requirementText} | + ConvertTo-Json -Depth 3 | Set-Content -LiteralPath (Join-Path $output 'SIGNING-INFO.json') +$brokerSignature=(& /usr/bin/codesign -d -r- --verbose=4 $broker 2>&1) -join "`n" +if ($LASTEXITCODE -ne 0) { throw 'Cannot inspect credential component identity.' } +@{protocol=1;identity=$brokerManifest.signing_identity;launcher_identity=$signing.identity;frozen_source_sha256=$brokerManifest.source_sha256;frozen_payload_sha256=$brokerManifest.payload_sha256;signature=$brokerSignature} | + ConvertTo-Json -Depth 3 | Set-Content -LiteralPath (Join-Path $output 'CREDENTIAL-BROKER-INFO.json') +$nativeReport | ConvertTo-Json -Depth 5 | Set-Content -LiteralPath (Join-Path $output 'native-dependencies.json') +& /usr/bin/ditto -c -k --sequesterRsrc --keepParent $app (Join-Path $output ($ArchiveStem+'.zip')) +if ($LASTEXITCODE -ne 0) { throw 'Bundle archive failed.' } +} finally { + Set-ShouMacKeychainSearchList $previousKeychains + if ($iconset -and (Test-Path -LiteralPath $iconset)) { Remove-Item -LiteralPath $iconset -Recurse -Force } +} diff --git a/scripts/macos/Signing.ps1 b/scripts/macos/Signing.ps1 new file mode 100644 index 00000000..3fcb2aea --- /dev/null +++ b/scripts/macos/Signing.ps1 @@ -0,0 +1,41 @@ +function Resolve-ShouMacSigning { + param([string]$Identity=$env:SHOU_MACOS_SIGNING_IDENTITY, + [string]$Keychain=$env:SHOU_MACOS_SIGNING_KEYCHAIN, + [switch]$AllowAdHoc) + if (-not $Identity -and $env:GITHUB_ACTIONS -ne 'true') { + $configPath=Join-Path ([Environment]::GetFolderPath('UserProfile')) 'Library/Application Support/SHOU-Launcher-Signing/signing.json' + if (Test-Path -LiteralPath $configPath) { + $config=Get-Content -Raw -LiteralPath $configPath | ConvertFrom-Json + $Identity=$config.identity + if (-not $Keychain) { $Keychain=$config.keychain } + if ($Keychain -eq $config.keychain) { + $passwordPath=Join-Path (Split-Path $configPath) 'password.txt' + $password=[IO.File]::ReadAllText($passwordPath).Trim() + try { + $null=& /usr/bin/security unlock-keychain -p $password $Keychain 2>&1 + if ($LASTEXITCODE -ne 0) { throw 'Cannot unlock the local signing keychain.' } + } finally { $password=$null } + } + } + } + if (-not $Identity -or $Identity -eq '-') { + if (-not $AllowAdHoc -and $env:SHOU_MACOS_ALLOW_ADHOC -ne '1') { + throw 'No fixed Mac signing identity. Run python3 scripts/macos/manage_signing.py init, or explicitly allow an ad-hoc PR/test package.' + } + return @{identity='-';keychain='';mode='ad-hoc test package; not notarized';arguments=@('--timestamp=none')} + } + if ($Identity -notmatch '^[A-Fa-f0-9]{40}$') { throw 'Mac signing identity must be an exact certificate SHA-1 fingerprint.' } + if (-not $Keychain -or -not (Test-Path -LiteralPath $Keychain -PathType Leaf)) { throw 'Explicit Mac signing keychain is missing.' } + return @{identity=$Identity.ToUpperInvariant();keychain=$Keychain;mode='fixed certificate; not notarized';arguments=@('--keychain',$Keychain,'--timestamp=none')} +} + +function Get-ShouMacKeychainSearchList { + $result=& /usr/bin/security list-keychains -d user + if ($LASTEXITCODE -ne 0) { throw 'Cannot read the user keychain search list.' } + return @($result | ForEach-Object { $_.Trim().Trim('"') }) +} + +function Set-ShouMacKeychainSearchList([string[]]$Paths) { + $null=& /usr/bin/security list-keychains -d user -s @Paths 2>&1 + if ($LASTEXITCODE -ne 0) { throw 'Cannot set the user keychain search list.' } +} diff --git a/scripts/macos/build_credential_broker.py b/scripts/macos/build_credential_broker.py new file mode 100644 index 00000000..7f9fa569 --- /dev/null +++ b/scripts/macos/build_credential_broker.py @@ -0,0 +1,50 @@ +#!/usr/bin/env python3 +"""Explicitly rebuild/sign the frozen credential broker (not an ordinary app build). + +Changing its executable can require one new Keychain authorization. Keep the +reviewable source and frozen signed asset together; never ship a private key. +""" +import hashlib +import json +from pathlib import Path +import platform +import subprocess +import os +import re +from manage_signing import initialize, run + +if platform.system() != 'Darwin': + raise SystemExit('The native broker must be built on macOS.') +repo = Path(__file__).resolve().parents[2] +source = repo / 'src/SHOU.Launcher.Desktop/Native/MacOS/credential_broker.c' +directory = repo / 'src/SHOU.Launcher.Desktop/Native/MacOS/frozen-arm64-v1' +directory.mkdir(exist_ok=True) +payload = directory / 'SHOU.CredentialBroker' +subprocess.run(['/usr/bin/xcrun', 'clang', '-arch', 'arm64', '-mmacosx-version-min=14.0', + '-g0', '-O2', '-Wno-deprecated-declarations', str(source), + '-framework', 'Security', '-framework', 'CoreFoundation', '-o', str(payload)], check=True) +payload.chmod(0o755) +identity = (dict(identity=os.environ['SHOU_MACOS_SIGNING_IDENTITY'],keychain=os.environ['SHOU_MACOS_SIGNING_KEYCHAIN']) + if os.environ.get('SHOU_MACOS_SIGNING_IDENTITY') and os.environ.get('SHOU_MACOS_SIGNING_KEYCHAIN') + else initialize(Path.home() / 'Library/Application Support/SHOU-Launcher-Signing')) +previous = [line.strip().strip('"') for line in run(['/usr/bin/security','list-keychains','-d','user']).splitlines()] +identifier = 'club.conduit.shou.launcher.credentials.v1' +try: + run(['/usr/bin/security','list-keychains','-d','user','-s',identity['keychain'],*previous]) + run(['/usr/bin/codesign','--force','--sign',identity['identity'],'--keychain',identity['keychain'], + '--timestamp=none','--options','runtime','--runtime-version','14.0.0','--digest-algorithm','sha256', + '--identifier',identifier,'--requirements','=designated => identifier "'+identifier+'" and certificate leaf = H"'+identity['identity']+'"',payload]) +finally: + run(['/usr/bin/security','list-keychains','-d','user','-s',*previous]) +run(['/usr/bin/codesign','--verify','--strict',payload]) +inspection=subprocess.run(['/usr/bin/codesign','-d','--verbose=4',str(payload)],capture_output=True,text=True,check=True) +manifest = dict(protocol=1, identifier='club.conduit.shou.launcher.credentials.v1', + signing_identity=identity['identity'], + cdhash=re.search(r'CDHash=(\w+)',inspection.stderr)[1], + source_sha256=hashlib.sha256(source.read_bytes()).hexdigest(), + payload_sha256=hashlib.sha256(payload.read_bytes()).hexdigest(), + compiler=subprocess.check_output(['/usr/bin/xcrun','clang','--version'],text=True).splitlines()[0], + sdk=subprocess.check_output(['/usr/bin/xcrun','--show-sdk-version'],text=True).strip(), + minimum_macos='14.0', architecture='arm64') +(directory / 'manifest.json').write_text(json.dumps(manifest,indent=2)+'\n') +print(json.dumps(manifest,indent=2)) diff --git a/scripts/macos/fixtures/credential_broker_client.c b/scripts/macos/fixtures/credential_broker_client.c new file mode 100644 index 00000000..53c1dffb --- /dev/null +++ b/scripts/macos/fixtures/credential_broker_client.c @@ -0,0 +1,54 @@ +// Synthetic native integration client. Never permits real account namespaces. +#include +#include +#include +#include +#include +#include +#ifndef TEST_SERVICE +#error A unique isolated test service is required +#endif +static int io(int fd, void *bytes, size_t length, int writing) { + while (length) { + ssize_t n = writing ? write(fd, bytes, length) : read(fd, bytes, length); + if (n <= 0) return 0; + bytes = (char *)bytes + n; length -= n; + } + return 1; +} +int main(int argc, char **argv) { + if (argc != 3) return 2; + int input[2], output[2]; + if (pipe(input) || pipe(output)) return 3; + pid_t child = fork(); + if (!child) { + dup2(input[0], 0); dup2(output[1], 1); + close(input[0]); close(input[1]); close(output[0]); close(output[1]); + execl(argv[1], argv[1], NULL); _exit(4); + } + close(input[0]); close(output[1]); + uint32_t greeting[2] = {0}; + if (!io(output[0], greeting, 8, 0) || greeting[0] != 0x53484f55u) return 5; + int32_t status = (int32_t)greeting[1]; + int matched = 1; + if (!status) { + uint32_t operation = (uint32_t)atoi(argv[2]); + const char *service = operation == 5 ? "invalid-shou-owned-test-scope" : TEST_SERVICE; + const char *key = "native-smoke:frozen-broker-test"; + const char value[] = "SHOU synthetic broker fixture"; + uint32_t request[4] = {operation == 5 ? 1 : operation, + (uint32_t)strlen(service), (uint32_t)strlen(key), operation == 2 ? sizeof(value)-1 : 0}; + if (!io(input[1], request, sizeof(request), 1) || !io(input[1], (void *)service, request[1], 1) || + !io(input[1], (void *)key, request[2], 1) || !io(input[1], (void *)value, request[3], 1)) return 6; + close(input[1]); + uint32_t response[2] = {0}; char returned[256] = {0}; + if (!io(output[0], response, 8, 0) || response[1] > sizeof(returned) || + !io(output[0], returned, response[1], 0)) return 7; + status = (int32_t)response[0]; + matched = response[1] == 0 || (response[1] == sizeof(value)-1 && !memcmp(returned,value,sizeof(value)-1)); + memset(returned, 0, sizeof(returned)); + } else close(input[1]); + close(output[0]); waitpid(child, NULL, 0); + printf("version=%d status=%d matched=%d\n", VERSION, status, matched); + return matched ? 0 : 8; +} diff --git a/scripts/macos/manage_signing.py b/scripts/macos/manage_signing.py new file mode 100644 index 00000000..b72cde08 --- /dev/null +++ b/scripts/macos/manage_signing.py @@ -0,0 +1,168 @@ +#!/usr/bin/env python3 +"""Create/reuse a local signing identity, or import that identity on a CI runner. + +Private material stays outside the checkout. This does not change system trust, +the default keychain, or credential item access controls. +""" +import argparse +import base64 +import hashlib +import json +import os +from pathlib import Path +import platform +import secrets +import shutil +import subprocess +import tempfile + + +def run(args, env=None): + result = subprocess.run([str(a) for a in args], capture_output=True, env=env, timeout=120) + if result.returncode: + # security/openssl arguments can contain passwords. Never print argv or + # propagate CalledProcessError, even when import fails. + raise RuntimeError(f"{Path(args[0]).name} {args[1]} failed (exit {result.returncode})") + return result.stdout.decode().strip() + + +def private_write(path, value): + with path.open('x', encoding='utf-8') as out: + os.chmod(path, 0o600) + out.write(value) + + +def openssl(): + return shutil.which('openssl') or '/usr/bin/openssl' + + +def certificate_identity(cert): + der = subprocess.run([openssl(), 'x509', '-in', str(cert), '-outform', 'DER'], + capture_output=True, check=True).stdout + return hashlib.sha1(der).hexdigest().upper(), hashlib.sha256(der).hexdigest() + + +def import_identity(directory, password): + keychain = directory / 'signing.keychain-db' + previous = run(['/usr/bin/security', 'list-keychains', '-d', 'user']) + search_list = [line.strip().strip('"') for line in previous.splitlines()] + try: + run(['/usr/bin/security', 'create-keychain', '-p', password, keychain]) + run(['/usr/bin/security', 'set-keychain-settings', '-lut', '21600', keychain]) + run(['/usr/bin/security', 'unlock-keychain', '-p', password, keychain]) + run(['/usr/bin/security', 'import', directory / 'identity.p12', '-k', keychain, + '-P', password, '-T', '/usr/bin/codesign']) + run(['/usr/bin/security', 'set-key-partition-list', '-S', 'apple-tool:,apple:', + '-s', '-k', password, keychain]) + os.chmod(keychain, 0o600) + finally: + run(['/usr/bin/security', 'list-keychains', '-d', 'user', '-s', *search_list]) + return keychain + + +def configuration(directory, keychain): + sha1, sha256 = certificate_identity(directory / 'certificate.pem') + config = dict(identity=sha1, certificate_sha256=sha256, + keychain=str(keychain), notarized=False) + private_write(directory / 'signing.json', json.dumps(config, indent=2) + '\n') + return config + + +def initialize(directory): + config_path = directory / 'signing.json' + if config_path.exists(): + config = json.loads(config_path.read_text()) + actual, _ = certificate_identity(directory / 'certificate.pem') + if actual != config['identity'] or not Path(config['keychain']).is_file(): + raise RuntimeError('Existing signing identity is incomplete; restore its backup rather than generate a replacement.') + run(['/usr/bin/security', 'unlock-keychain', '-p', + (directory / 'password.txt').read_text().strip(), config['keychain']]) + return config + if directory.exists() and any(directory.iterdir()): + raise RuntimeError('Signing directory is not empty. Refusing to overwrite an existing or partial identity.') + directory.mkdir(parents=True, mode=0o700, exist_ok=True) + os.chmod(directory, 0o700) + password = secrets.token_urlsafe(48) + private_write(directory / 'password.txt', password + '\n') + # An encrypted export is retained for backup/CI. The unencrypted intermediate + # key exists only in this private temporary directory and is removed on exit. + with tempfile.TemporaryDirectory(prefix='create-', dir=directory) as tmp: + key = Path(tmp) / 'private.pem' + cert = directory / 'certificate.pem' + child_env = dict(os.environ, SHOU_P12_PASSWORD=password) + run([openssl(), 'req', '-x509', '-newkey', 'rsa:3072', '-sha256', '-nodes', + '-days', '3650', '-subj', '/CN=SHOU Launcher Local Signing/O=Conduit Club', + '-addext', 'basicConstraints=critical,CA:FALSE', + '-addext', 'keyUsage=critical,digitalSignature', + '-addext', 'extendedKeyUsage=critical,codeSigning', + '-keyout', key, '-out', cert]) + os.chmod(key, 0o600) + run([openssl(), 'pkcs12', '-export', '-inkey', key, '-in', cert, + '-name', 'SHOU Launcher Local Signing', '-keypbe', 'PBE-SHA1-3DES', + '-certpbe', 'PBE-SHA1-3DES', '-macalg', 'sha1', + '-passout', 'env:SHOU_P12_PASSWORD', '-out', directory / 'identity.p12'], env=child_env) + os.chmod(directory / 'identity.p12', 0o600) + return configuration(directory, import_identity(directory, password)) + + +def install_ci(directory): + if os.environ.get('GITHUB_ACTIONS') != 'true': + raise RuntimeError('CI import requires an ephemeral GitHub Actions runner.') + if directory.exists(): + raise RuntimeError('CI signing directory must be new.') + encoded = os.environ.get('MACOS_SIGNING_CERTIFICATE_BASE64', '') + password = os.environ.get('MACOS_SIGNING_PASSWORD', '') + if not encoded or not password: + raise RuntimeError('Configure MACOS_SIGNING_CERTIFICATE_BASE64 and MACOS_SIGNING_PASSWORD before building a signed Mac candidate.') + directory.mkdir(parents=True, mode=0o700) + os.chmod(directory, 0o700) + p12 = directory / 'identity.p12' + p12.write_bytes(base64.b64decode(encoded, validate=True)) + os.chmod(p12, 0o600) + child_env = dict(os.environ, SHOU_P12_PASSWORD=password) + run([openssl(), 'pkcs12', '-in', p12, '-clcerts', '-nokeys', + '-passin', 'env:SHOU_P12_PASSWORD', '-out', directory / 'certificate.pem'], env=child_env) + config = configuration(directory, import_identity(directory, password)) + with open(os.environ['GITHUB_ENV'], 'a', encoding='utf-8') as out: + out.write(f"SHOU_MACOS_SIGNING_IDENTITY={config['identity']}\n") + out.write(f"SHOU_MACOS_SIGNING_KEYCHAIN={config['keychain']}\n") + return config + + +def cleanup_ci(directory): + if os.environ.get('GITHUB_ACTIONS') != 'true': + raise RuntimeError('Cleanup is for an ephemeral GitHub Actions runner only.') + expected = Path(os.environ['RUNNER_TEMP']).resolve() / 'shou-macos-signing' + if directory != expected: + raise RuntimeError('Refusing cleanup outside the registered CI signing directory.') + keychain = directory / 'signing.keychain-db' + if keychain.exists(): + run(['/usr/bin/security', 'delete-keychain', keychain]) + if directory.exists(): + shutil.rmtree(directory) + + +def main(): + if platform.system() != 'Darwin': + raise RuntimeError('Mac signing requires macOS.') + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('action', choices=['init', 'install-ci', 'cleanup-ci']) + parser.add_argument('--directory', type=Path) + args = parser.parse_args() + default = Path.home() / 'Library/Application Support/SHOU-Launcher-Signing' + directory = (args.directory or default).expanduser().resolve() + if args.action == 'cleanup-ci': + cleanup_ci(directory) + print('Removed ephemeral CI signing keychain and private files.') + else: + config = initialize(directory) if args.action == 'init' else install_ci(directory) + print(json.dumps(dict(identity=config['identity'], certificate_sha256=config['certificate_sha256'], + config=str(directory / 'signing.json'), notarized=False), indent=2)) + + +if __name__ == '__main__': + try: + main() + except Exception as error: + # Neither traceback nor subprocess arguments may expose private material. + raise SystemExit(f'Signing setup failed: {error if isinstance(error, RuntimeError) else type(error).__name__}') diff --git a/scripts/macos/test_credential_broker.py b/scripts/macos/test_credential_broker.py new file mode 100644 index 00000000..db322333 --- /dev/null +++ b/scripts/macos/test_credential_broker.py @@ -0,0 +1,117 @@ +#!/usr/bin/env python3 +"""Verify the production frozen broker with changed, unrelated and tampered callers. + +Only a fresh isolated service and a fixed synthetic value are used. On GitHub's +ephemeral runner, use a temporary default keychain and restore it on every exit. +""" +import argparse +import hashlib +import json +import os +from pathlib import Path +import plistlib +import re +import secrets +import shutil +import subprocess +import uuid +from manage_signing import initialize, run + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument('--directory', type=Path, required=True) + output = parser.parse_args().directory.resolve() + output.mkdir(parents=True, exist_ok=False) + repo = Path(__file__).resolve().parents[2] + native = repo / 'src/SHOU.Launcher.Desktop/Native/MacOS' + manifest = json.loads((native / 'frozen-arm64-v1/manifest.json').read_text()) + payload = native / 'frozen-arm64-v1/SHOU.CredentialBroker' + assert hashlib.sha256(payload.read_bytes()).hexdigest() == manifest['payload_sha256'] + assert hashlib.sha256((native / 'credential_broker.c').read_bytes()).hexdigest() == manifest['source_sha256'] + identity = os.environ.get('SHOU_MACOS_SIGNING_IDENTITY') + keychain = os.environ.get('SHOU_MACOS_SIGNING_KEYCHAIN') + if not identity or not keychain: + config = initialize(Path.home() / 'Library/Application Support/SHOU-Launcher-Signing') + identity, keychain = config['identity'], config['keychain'] + assert identity == manifest['signing_identity'] + previous = [line.strip().strip('"') for line in run(['/usr/bin/security','list-keychains','-d','user']).splitlines()] + default = run(['/usr/bin/security','default-keychain','-d','user']).strip('"') + temporary = output / 'synthetic.keychain-db' + service = 'com.conduitclub.shou-launcher.isolated.' + hashlib.sha256(uuid.uuid4().bytes).hexdigest() + cases = []; created = False; clients = [] + broker = output / 'SHOU.CredentialBroker' + shutil.copy2(payload, broker) + run(['/usr/bin/codesign','--verify','--strict',broker]) + try: + run(['/usr/bin/security','list-keychains','-d','user','-s',keychain,*previous]) + for version, name, identifier, adhoc in [(1,'previous','club.conduit.shou.launcher',False), + (2,'updated','club.conduit.shou.launcher',False), + (3,'unrelated','club.conduit.shou.launcher',True), + (4,'other-app','club.conduit.shou.other',False)]: + client = output / name; clients.append(client) + run(['/usr/bin/xcrun','clang','-DVERSION='+str(version),'-DTEST_SERVICE="'+service+'"', + repo / 'scripts/macos/fixtures/credential_broker_client.c','-o',client]) + options = ['--sign','-'] if adhoc else ['--sign',identity,'--keychain',keychain] + run(['/usr/bin/codesign','--force','--timestamp=none','--identifier',identifier,*options,client]) + bundle = output / 'tampered.app'; mac = bundle / 'Contents/MacOS'; resources=bundle/'Contents/Resources' + mac.mkdir(parents=True); resources.mkdir(); shutil.copy2(clients[1],mac/'client') + (bundle/'Contents/Info.plist').write_bytes(plistlib.dumps(dict(CFBundleExecutable='client',CFBundleIdentifier='club.conduit.shou.launcher',CFBundlePackageType='APPL'))) + (resources/'sealed.txt').write_text('original') + run(['/usr/bin/codesign','--force','--sign',identity,'--keychain',keychain,'--timestamp=none',bundle]) + (resources/'sealed.txt').write_text('modified after signing') + if os.environ.get('GITHUB_ACTIONS') == 'true': + password=secrets.token_urlsafe(48) + run(['/usr/bin/security','create-keychain','-p',password,temporary]) + run(['/usr/bin/security','unlock-keychain','-p',password,temporary]) + run(['/usr/bin/security','default-keychain','-d','user','-s',temporary]) + run(['/usr/bin/security','list-keychains','-d','user','-s',temporary,*previous]) + else: + run(['/usr/bin/security','list-keychains','-d','user','-s',*previous]) + caller_hashes=[] + for client in clients[:2]: + signed=subprocess.run(['/usr/bin/codesign','-d','--verbose=4',str(client)],capture_output=True,text=True,check=True) + caller_hashes.append(re.search(r'CDHash=(\w+)',signed.stderr)[1]) + assert caller_hashes[0] != caller_hashes[1] + def request(client, operation, expected, label): + result=run([client,broker,str(operation)]) + assert re.search(r'status=(-?\d+)',result)[1] == str(expected), (label,result) + assert 'matched=1' in result + cases.append(dict(case=label,status='PASS',native_status=expected)) + request(clients[0],2,0,'previous-writes'); created=True + request(clients[0],1,0,'previous-reads') + request(clients[1],1,0,'updated-caller-reads-without-ui') + request(clients[1],2,0,'updated-caller-writes-without-ui') + request(clients[2],1,-25293,'ad-hoc-caller-denied') + request(clients[3],1,-25293,'same-certificate-other-app-denied') + request(mac/'client',1,-25293,'tampered-parent-resource-denied') + request(clients[0],5,-50,'unrelated-service-denied') + request(clients[1],3,0,'updated-caller-deletes'); created=False + request(clients[0],1,-25300,'deleted-fixture-absent') + inspection=subprocess.run(['/usr/bin/codesign','-d','--verbose=4',str(broker)],capture_output=True,text=True,check=True) + result=dict(status='PASS',identity=identity,broker_sha256=manifest['payload_sha256'], + broker_cdhash=re.search(r'CDHash=(\w+)',inspection.stderr)[1], + caller_cdhashes=caller_hashes, + keychain='temporary CI keychain' if temporary.exists() else 'current login; unique synthetic namespace', + cases=cases,synthetic_only=True,authentication_ui=False,minecraft_started=False) + (output/'result.json').write_text(json.dumps(result,indent=2)+'\n') + print(json.dumps(result,indent=2)) + finally: + try: + if created: run([clients[0],broker,'3']) + finally: + try: + if temporary.exists(): + run(['/usr/bin/security','default-keychain','-d','user','-s',default]) + run(['/usr/bin/security','delete-keychain',temporary]) + finally: + run(['/usr/bin/security','list-keychains','-d','user','-s',*previous]) + # Do not publish production-identifier test executables as artifacts. + for client in clients: + client.unlink(missing_ok=True) + if (output/'tampered.app').exists(): shutil.rmtree(output/'tampered.app') + broker.unlink(missing_ok=True) + + +if __name__ == '__main__': + main() diff --git a/scripts/macos/test_packaged_credentials.py b/scripts/macos/test_packaged_credentials.py new file mode 100644 index 00000000..9d8281a5 --- /dev/null +++ b/scripts/macos/test_packaged_credentials.py @@ -0,0 +1,142 @@ +#!/usr/bin/env python3 +"""Exercise the real signed launcher across an update and credential-component faults. + +No real account, interactive authorization or game is used. The input candidate +stays unchanged; temporary copies and signed test executables are removed. +""" +import argparse +import hashlib +import json +import os +from pathlib import Path +import plistlib +import re +import secrets +import shutil +import subprocess +from manage_signing import initialize, run + + +def main(): + parser=argparse.ArgumentParser(description=__doc__) + parser.add_argument('--app',type=Path,required=True) + parser.add_argument('--directory',type=Path,required=True) + args=parser.parse_args(); app=args.app.resolve(); output=args.directory.resolve() + output.mkdir(parents=True,exist_ok=False) + original={p.relative_to(app).as_posix():hashlib.sha256(p.read_bytes()).hexdigest() + for p in app.rglob('*') if p.is_file() and not p.is_symlink()} + identity=os.environ.get('SHOU_MACOS_SIGNING_IDENTITY'); keychain=os.environ.get('SHOU_MACOS_SIGNING_KEYCHAIN') + if not identity or not keychain: + config=initialize(Path.home()/'Library/Application Support/SHOU-Launcher-Signing') + identity,keychain=config['identity'],config['keychain'] + previous=[s.strip().strip('"') for s in run(['/usr/bin/security','list-keychains','-d','user']).splitlines()] + default=run(['/usr/bin/security','default-keychain','-d','user']).strip('"') + temporary=output/'synthetic.keychain-db'; updated=output/'updated.app'; held=output/'held-component' + fake=output/'fake-component'; capture=output/'sent-to-fake.txt'; created=False; cases=[] + managed_backup=output/'sealed-core-original.dll' + data=output/'data'; run_id='packaged-credential-update' + repo=Path(__file__).resolve().parents[2] + broker_relative=Path('Contents/Helpers/SHOU.CredentialBroker') + broker_hash=hashlib.sha256((app/broker_relative).read_bytes()).hexdigest() + + def sign_bundle(bundle): + current=[s.strip().strip('"') for s in run(['/usr/bin/security','list-keychains','-d','user']).splitlines()] + try: + run(['/usr/bin/security','list-keychains','-d','user','-s',keychain,*current]) + run(['/usr/bin/codesign','--force','--sign',identity,'--keychain',keychain,'--timestamp=none', + '--requirements','=designated => identifier "club.conduit.shou.launcher" and certificate leaf = H"'+identity+'"', + '--entitlements',repo/'scripts/macos/Entitlements.plist',bundle]) + finally: run(['/usr/bin/security','list-keychains','-d','user','-s',*current]) + + def command(bundle, action, label, expected=True): + result=output/(label+'.json') + # Credential-smoke exits before creating an Avalonia window. + subprocess.run(['/usr/bin/open','-n','-W',str(bundle),'--args','--data-dir',str(data), + '--credential-smoke',action,'--run-id',run_id,'--result-file',str(result), + '--exit-after','25'],check=True,timeout=45,capture_output=True) + report=json.loads(result.read_text()) + assert (report['status']=='PASS') == expected, (label,report.get('errorType')) + cases.append(dict(case=label,status='PASS',application_result=report['status'])) + return report + + try: + subprocess.run(['/usr/bin/ditto',str(app),str(updated)],check=True) + info=updated/'Contents/Info.plist'; metadata=plistlib.loads(info.read_bytes()) + metadata['CFBundleVersion'] += '.credential-update-test'; info.write_bytes(plistlib.dumps(metadata)) + sign_bundle(updated) + hashes=[] + for candidate in [app,updated]: + run(['/usr/bin/codesign','--verify','--deep','--strict',candidate]) + inspect=subprocess.run(['/usr/bin/codesign','-d','--verbose=4',str(candidate)],capture_output=True,text=True,check=True) + hashes.append(re.search(r'CDHash=(\w+)',inspect.stderr)[1]) + assert hashes[0] != hashes[1] + assert hashlib.sha256((updated/broker_relative).read_bytes()).hexdigest()==broker_hash + if os.environ.get('GITHUB_ACTIONS')=='true': + password=secrets.token_urlsafe(48) + run(['/usr/bin/security','create-keychain','-p',password,temporary]) + run(['/usr/bin/security','unlock-keychain','-p',password,temporary]) + run(['/usr/bin/security','default-keychain','-d','user','-s',temporary]) + run(['/usr/bin/security','list-keychains','-d','user','-s',temporary,*previous]) + command(app,'write','previous-write'); created=True + command(updated,'read','updated-read-without-ui') + command(updated,'write','updated-write-without-ui') + command(app,'read','previous-read-after-update') + command(updated,'delete','updated-delete'); created=False + missing=command(app,'read','deleted-item-absent',False) + assert missing.get('matched') is False + # A modified managed/resources bundle must not be able to use the broker. + resource=updated/'Contents/Resources/club-logo.png'; original_resource=resource.read_bytes() + resource.write_bytes(original_resource+b'\0') + command(updated,'write','tampered-parent-denied',False) + resource.write_bytes(original_resource) + command(app,'read','tampered-parent-did-not-write',False) + managed=updated/'Contents/MacOS/SHOU.Launcher.Core.dll' + subprocess.run(['/usr/bin/ditto',str(managed),str(managed_backup)],check=True) + with managed.open('ab') as file: file.write(b'\0') # CLR accepts a PE overlay; its signature must still fail. + command(updated,'write','tampered-managed-assembly-denied',False) + subprocess.run(['/usr/bin/ditto',str(managed_backup),str(managed)],check=True) + managed_backup.unlink() + command(app,'read','tampered-managed-assembly-did-not-write',False) + (updated/broker_relative).rename(held) + command(updated,'write','missing-component-no-legacy-fallback',False) + command(app,'read','missing-component-did-not-write',False) + held.rename(updated/broker_relative) + source=output/'fake.c' + source.write_text('#include \n#include \n#include \n' + 'int main(){const char *path='+json.dumps(str(capture))+';FILE*f=fopen(path,"w");' + 'if(!f)return 1;fputs("0",f);fclose(f);uint32_t h[2]={0x53484f55u,0};write(1,h,8);' + 'char b[128];int total=0;ssize_t n;while((n=read(0,b,sizeof b))>0){total+=n;' + 'f=fopen(path,"w");fprintf(f,"%d",total);fclose(f);}return 0;}') + run(['/usr/bin/xcrun','clang',source,'-o',fake]) + run(['/usr/bin/codesign','--force','--sign','-','--identifier','club.conduit.shou.launcher.credentials.v1',fake]) + (updated/broker_relative).rename(held); shutil.copy2(fake,updated/broker_relative); sign_bundle(updated) + command(updated,'write','impostor-component-rejected-before-secret',False) + assert capture.read_text()=='0', 'The untrusted child received request/credential bytes.' + command(app,'read','impostor-component-did-not-write',False) + (updated/broker_relative).unlink(); held.rename(updated/broker_relative); sign_bundle(updated) + command(updated,'write','restored-component-write'); created=True + command(app,'read','restored-component-read') + command(app,'delete','restored-component-delete'); created=False + assert all(hashlib.sha256((app/name).read_bytes()).hexdigest()==value for name,value in original.items()) + result=dict(status='PASS',caller_cdhashes=hashes,broker_sha256=broker_hash, + candidate_unchanged=True,cases=cases,synthetic_only=True, + keychain='temporary CI keychain' if temporary.exists() else 'current login; unique isolated namespace', + authentication_ui=False,minecraft_started=False) + (output/'result.json').write_text(json.dumps(result,indent=2)+'\n'); print(json.dumps(result,indent=2)) + finally: + try: + if created: command(app,'delete','failure-cleanup') + finally: + try: + if temporary.exists(): + try: run(['/usr/bin/security','default-keychain','-d','user','-s',default]) + finally: run(['/usr/bin/security','delete-keychain',temporary]) + finally: + run(['/usr/bin/security','list-keychains','-d','user','-s',*previous]) + if updated.exists(): shutil.rmtree(updated) + held.unlink(missing_ok=True); fake.unlink(missing_ok=True) + managed_backup.unlink(missing_ok=True) + + +if __name__=='__main__': + main() diff --git a/scripts/macos/test_signing.py b/scripts/macos/test_signing.py new file mode 100644 index 00000000..389ad029 --- /dev/null +++ b/scripts/macos/test_signing.py @@ -0,0 +1,200 @@ +#!/usr/bin/env python3 +"""Verify fixed signing requirements and diagnose cross-version Keychain access. + +Uses only a uniquely named synthetic generic-password item. UI authentication is +disabled, so failure cannot leave an overnight job waiting on a password dialog. +""" +import argparse +import json +import os +from pathlib import Path +import plistlib +import re +import secrets +import shutil +import subprocess +import uuid + +from manage_signing import run + + +SOURCE = r''' +#include +#include +#include +#include +#include +int main(int argc, char **argv) { + if (argc != 3) return 2; + SecKeychainSetUserInteractionAllowed(false); + CFStringRef service = CFStringCreateWithCString(NULL, argv[2], kCFStringEncodingUTF8); + CFMutableDictionaryRef q = CFDictionaryCreateMutable(NULL, 0, + &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); + CFDictionarySetValue(q, kSecClass, kSecClassGenericPassword); + CFDictionarySetValue(q, kSecAttrService, service); + CFDictionarySetValue(q, kSecAttrAccount, CFSTR("synthetic-signing-fixture")); + CFDictionarySetValue(q, kSecUseAuthenticationUI, kSecUseAuthenticationUIFail); + SecKeychainRef keychain = NULL; + if (SecKeychainOpen(getenv("SHOU_SIGNING_TEST_KEYCHAIN"), &keychain)) return 5; + if (!strcmp(argv[1], "write")) { + CFDictionarySetValue(q, kSecUseKeychain, keychain); + } else { + CFArrayRef search = CFArrayCreate(NULL, (const void **)&keychain, 1, &kCFTypeArrayCallBacks); + CFDictionarySetValue(q, kSecMatchSearchList, search); + CFRelease(search); + } + OSStatus status; + if (!strcmp(argv[1], "write")) { + // Explicitly bind this synthetic item to the probe's own DR. A bare CLI + // launched by a terminal can otherwise inherit the responsible app's + // default ACL, which would not exercise a launcher bundle identity. + SecTrustedApplicationRef trusted = NULL; + status = SecTrustedApplicationCreateFromPath(argv[0], &trusted); + if (status) return 3; + CFArrayRef applications = CFArrayCreate(NULL, (const void **)&trusted, 1, + &kCFTypeArrayCallBacks); + SecAccessRef access = NULL; + status = SecAccessCreate(CFSTR("SHOU synthetic signing continuity"), applications, &access); + if (status) return 4; + CFDictionarySetValue(q, kSecAttrAccess, access); + CFDataRef data = CFDataCreate(NULL, (const UInt8 *)"synthetic", 9); + CFDictionarySetValue(q, kSecValueData, data); + status = SecItemAdd(q, NULL); + CFRelease(data); CFRelease(access); CFRelease(applications); CFRelease(trusted); + } else if (!strcmp(argv[1], "inspect")) { + CFDictionarySetValue(q, kSecReturnRef, kCFBooleanTrue); + CFTypeRef item = NULL; + status = SecItemCopyMatching(q, &item); + if (!status) { + SecAccessRef access = NULL; + status = SecKeychainItemCopyAccess((SecKeychainItemRef)item, &access); + CFArrayRef acls = NULL; + if (!status) status = SecAccessCopyACLList(access, &acls); + if (!status) for (CFIndex i=0; i identifier "{identifier}" and certificate leaf = H"{identity}"' + created = False + result = dict(identity=identity, service=service, synthetic_only=True, minecraft_started=False) + (output / 'attempt.json').write_text(json.dumps(result, indent=2) + '\n') + try: + run(['/usr/bin/security', 'create-keychain', '-p', keychain_password, credential_keychain]) + run(['/usr/bin/security', 'unlock-keychain', '-p', keychain_password, credential_keychain]) + run(['/usr/bin/security', 'list-keychains', '-d', 'user', '-s', keychain, *previous]) + for version, probe in enumerate(probes, 1): + run(['/usr/bin/clang', '-DVERSION=' + str(version), source, '-framework', + 'Security', '-framework', 'CoreFoundation', '-o', probe]) + signing = ['--sign', identity, '--keychain', keychain, '--requirements', '=' + requirement] + if version == 3: + signing = ['--sign', '-'] + run(['/usr/bin/codesign', '--force', '--identifier', identifier, + '--timestamp=none', *signing, probe]) + run(['/usr/bin/codesign', '--verify', '--strict', probe]) + inspections = [] + for probe in probes: + value = subprocess.run(['/usr/bin/codesign', '-d', '-r-', '--verbose=4', str(probe)], + capture_output=True, text=True, check=True) + text = value.stdout + value.stderr + inspections.append(dict(requirement=re.search(r'(?m)^#?\s*designated => .+$', text)[0], + cdhash=re.search(r'(?m)^CDHash=(.+)$', text)[1])) + assert inspections[0]['cdhash'] != inspections[1]['cdhash'] + assert inspections[0]['requirement'] == inspections[1]['requirement'] + installed=output / 'installed' + def replace_installed(probe): + stage=output / 'staging' + shutil.copy2(probe, stage) + stage.replace(installed) + replace_installed(probes[0]) + run([installed, 'write', service], env=test_env); created = True + acl=run([installed, 'inspect', service], env=test_env) + (output / 'synthetic-acl.txt').write_text(acl) + for value in re.findall(r'(?m)^acl=([0-9a-f]+) apps=', acl): + try: + partitions=plistlib.loads(bytes.fromhex(value)).get('Partitions') + if partitions: result['keychain_partitions']=partitions + except (ValueError, plistlib.InvalidFileException): + pass + replace_installed(probes[1]) + read = subprocess.run([str(installed), 'read', service], env=test_env, capture_output=True, text=True, timeout=20) + result['updated_reads_previous_item_without_ui'] = read.stdout.strip() + (output / 'attempt.json').write_text(json.dumps(result, indent=2) + '\n') + result['cross_version_keychain_access'] = read.returncode == 0 + replace_installed(probes[2]) + denied = subprocess.run([str(installed), 'read', service], capture_output=True, + env=test_env, text=True, timeout=20) + assert denied.returncode != 0, 'An unrelated signer must not inherit credential access.' + result['unrelated_signer_denied'] = denied.stdout.strip() + replace_installed(probes[0]) + run([installed, 'delete', service], env=test_env); created = False + # Current file-based keychains can add a cdhash partition independently + # of the trusted-app DR. A self-signed identity does not provide a Team ID. + # Report this honestly instead of loosening an ACL or failing the fixed-DR test. + status='PASS' if result['cross_version_keychain_access'] else 'PASS_WITH_KEYCHAIN_LIMITATION' + result.update(status=status, inspections=inspections) + (output / 'result.json').write_text(json.dumps(result, indent=2) + '\n') + print(json.dumps(result, indent=2)) + if not result['cross_version_keychain_access']: + print('::warning::Fixed signature verified; this macOS Keychain still requires authorization after changed self-signed code. No credential ACL was weakened.') + finally: + try: + if created: + replace_installed(probes[0]) + run([installed, 'delete', service], env=test_env) + finally: + try: + if credential_keychain.exists(): + run(['/usr/bin/security', 'delete-keychain', credential_keychain]) + finally: + run(['/usr/bin/security', 'list-keychains', '-d', 'user', '-s', *previous]) + + +if __name__ == '__main__': + main() diff --git a/src/SHOU.Launcher.Core/Abstractions/AccountAppearanceContracts.cs b/src/SHOU.Launcher.Core/Abstractions/AccountAppearanceContracts.cs new file mode 100644 index 00000000..c712aa53 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/AccountAppearanceContracts.cs @@ -0,0 +1,31 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public enum AccountSkinModel { Classic, Slim } + +/// Validated, bounded PNG and straight RGBA pixels. No native image decoder is needed in Core. +public sealed class AccountTextureImage +{ + private readonly byte[] png, rgba; + public int Width { get; } + public int Height { get; } + public ReadOnlyMemory Png => png; + public ReadOnlyMemory Rgba => rgba; + internal AccountTextureImage(byte[] png, int width, int height, byte[] rgba) + { this.png = png; Width = width; Height = height; this.rgba = rgba; } + public override string ToString() => $"PNG {Width}×{Height}"; +} + +public sealed record AccountCapeAppearance(string Id, string Name, bool IsActive, AccountTextureImage? Texture); +public sealed record AccountAppearance(string AccountId, AccountSkinModel Model, AccountTextureImage? Skin, + IReadOnlyList Capes, bool CanSetLocalSkin, Uri? ManagementUri, string Capability, + bool IsRemote = false); + +/// Local launcher appearance is deliberately separate from authentication and game launch settings. +public interface IAccountAppearanceService +{ + /// Only an explicit refresh contacts the account's own profile service. + Task GetAccountAppearanceAsync(string accountId, bool refreshRemote = false, CancellationToken cancellationToken = default); + /// Saves a launcher-local offline skin; this does not alter vanilla game authentication/texture properties. + Task SaveOfflineAccountSkinAsync(string accountId, ReadOnlyMemory png, AccountSkinModel model, + CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/AccountAppearanceMutationContracts.cs b/src/SHOU.Launcher.Core/Abstractions/AccountAppearanceMutationContracts.cs new file mode 100644 index 00000000..05fc62c3 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/AccountAppearanceMutationContracts.cs @@ -0,0 +1,12 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public enum AccountAppearanceAction { UploadSkin, WearCape, HideCape } +public enum AccountAppearanceWriteState { Verified, Rejected, AcceptedNeedsRefresh, OutcomeUnknown } +public sealed record AccountAppearanceChange(AccountAppearanceAction Action, ReadOnlyMemory Png = default, + AccountSkinModel Model = AccountSkinModel.Classic, string? CapeId = null); +public sealed record AccountAppearanceWriteResult(AccountAppearanceWriteState State, AccountAppearance? Appearance, string Message, + string? BackupDirectory = null); +public interface IAccountAppearanceMutationService +{ + Task ChangeAccountAppearanceAsync(string accountId, AccountAppearanceChange change, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/Aria2Contracts.cs b/src/SHOU.Launcher.Core/Abstractions/Aria2Contracts.cs new file mode 100644 index 00000000..3342bcab --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/Aria2Contracts.cs @@ -0,0 +1,7 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record Aria2ConnectionStatus(bool Connected, string Message, string Endpoint, string? Version = null); +public interface IAria2ConnectionService +{ + Task TestAria2ConnectionAsync(CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/CacheMaintenanceContracts.cs b/src/SHOU.Launcher.Core/Abstractions/CacheMaintenanceContracts.cs new file mode 100644 index 00000000..47a4eecb --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/CacheMaintenanceContracts.cs @@ -0,0 +1,13 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record CacheFile(string Area, string RelativePath, long Bytes, string Sha256); +public sealed record CacheCleanupPlan(IReadOnlyList Files, int SkippedFiles) +{ + public long Bytes => Files.Sum(f => f.Bytes); +} +public sealed record CacheCleanupResult(int DeletedFiles, long FreedBytes, int SkippedFiles, bool Cancelled); +public interface ICacheMaintenanceService +{ + Task ScanLauncherCacheAsync(CancellationToken cancellationToken = default); + Task ClearLauncherCacheAsync(CacheCleanupPlan plan, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/CatalogContracts.cs b/src/SHOU.Launcher.Core/Abstractions/CatalogContracts.cs new file mode 100644 index 00000000..13e02831 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/CatalogContracts.cs @@ -0,0 +1,45 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record GameCatalogVersion(string Id, string Kind, DateTimeOffset ReleaseTime, bool Latest = false, bool CanInstall = true); +public sealed record GameCatalog(IReadOnlyList Versions, string Source, bool Partial = false, + DateTimeOffset? FetchedAt = null, bool FromCache = false, string? Notice = null); +public interface IMinecraftCatalogCacheService +{ + Task RefreshGameCatalogAsync(CancellationToken cancellationToken = default); +} +public sealed record LoaderCatalogVersion(string Version, bool Stable); +public sealed record ContentQuery(string Kind, string Search = "", string? GameVersion = null, string? Loader = null, + string Sort = "relevance", int Offset = 0, string? Category = null, string Source = "modrinth", int Limit = 30); +public sealed record ContentProject(string Id, string Slug, string Title, string Description, string Author, + long Downloads, string Kind, string? IconUrl, Uri PageUri, string ClientSide = "unknown", + IReadOnlyList? Categories = null, IReadOnlyList? GameVersions = null, DateTimeOffset? Updated = null, string Source = "modrinth"); +public sealed record ContentCategory(string Id, string Kind, string? Name = null, string Source = "modrinth"); +public sealed record ContentSearchPage(IReadOnlyList Projects, string? Notice = null); +public interface IContentSourceCatalogService +{ + Task SearchContentPageAsync(ContentQuery query, CancellationToken cancellationToken = default); +} +public interface IContentCategoryCatalogService +{ + Task> GetContentCategoriesAsync(CancellationToken cancellationToken = default); +} +public sealed record ContentFile(string FileName, Uri Uri, string Sha1, long Size, bool Primary = false, CurseForgeManualFile? ManualFile = null); +public sealed record ContentRelease(string Id, string Name, string Version, DateTimeOffset Published, + IReadOnlyList GameVersions, IReadOnlyList Loaders, IReadOnlyList Files, + IReadOnlyList? Dependencies = null, string? ProjectId = null, string Environment = "unknown", string? Notice = null, string ReleaseChannel = "release", CurseForgeManualFile? ManualFile = null); +public sealed record ContentDependency(string Type, string? ProjectId = null, string? VersionId = null, string? FileName = null); +public interface IContentDependencyCatalogService +{ + Task GetContentReleaseAsync(string releaseId, CancellationToken cancellationToken = default); + Task GetContentProjectAsync(string projectId, CancellationToken cancellationToken = default); +} +public interface ILauncherCatalogService +{ + Task GetGameCatalogAsync(CancellationToken cancellationToken = default); + Task> GetFabricCatalogAsync(string gameVersion, CancellationToken cancellationToken = default); + Task> SearchContentAsync(ContentQuery query, CancellationToken cancellationToken = default); + Task> GetContentReleasesAsync(string projectId, string? gameVersion = null, string? loader = null, + CancellationToken cancellationToken = default); + Task DownloadContentAsync(ContentFile file, CancellationToken cancellationToken = default); + Task GetContentIconAsync(string iconUrl, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/ClubContentContracts.cs b/src/SHOU.Launcher.Core/Abstractions/ClubContentContracts.cs new file mode 100644 index 00000000..dc1c7725 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/ClubContentContracts.cs @@ -0,0 +1,11 @@ +using PCL.Core.Conduit; + +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record ClubUpdateHistory(IReadOnlyList Notices, DateTimeOffset FetchedAt, + bool FromCache = false, string? Warning = null); +public interface IClubContentService +{ + Task GetClubUpdatesAsync(bool refresh = false, CancellationToken cancellationToken = default); + Task GetClubUpdateArticleAsync(ClubUpdateNotice notice, bool refresh = false, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/ContentDescriptionContracts.cs b/src/SHOU.Launcher.Core/Abstractions/ContentDescriptionContracts.cs new file mode 100644 index 00000000..d7df7929 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/ContentDescriptionContracts.cs @@ -0,0 +1,6 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public interface IContentDescriptionService +{ + Task GetChineseContentDescriptionAsync(ContentProject project, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/ContentInstallContracts.cs b/src/SHOU.Launcher.Core/Abstractions/ContentInstallContracts.cs new file mode 100644 index 00000000..376d9cf2 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/ContentInstallContracts.cs @@ -0,0 +1,16 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record ContentInstallRequest(string InstanceId, string ProjectId, string ReleaseId, string FileName, string Kind); +public sealed record ContentInstallFile(string ProjectId, string ReleaseId, string Kind, string RelativePath, ContentFile File, bool Dependency); +public sealed record ContentInstallPlan(string InstanceId, string GameVersion, string Loader, + IReadOnlyList Files, IReadOnlyList Warnings); +public sealed record ContentInstalledFile(string ProjectId, string ReleaseId, string Kind, string RelativePath, + string Sha1, string Sha512, long Size, string? DownloadUrl = null, string Client = "required", string Server = "unsupported"); +public sealed record ContentInstallManifest(int FormatVersion, string InstanceId, IReadOnlyList Files); +public sealed record ContentInstallResult(string InstanceId, string ManifestPath, IReadOnlyList Files, + int AddedFiles, IReadOnlyList Warnings); +public interface IContentInstallationService +{ + Task PlanContentInstallAsync(ContentInstallRequest request, CancellationToken cancellationToken = default); + Task InstallContentAsync(ContentInstallRequest request, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/CrashAnalysisContracts.cs b/src/SHOU.Launcher.Core/Abstractions/CrashAnalysisContracts.cs new file mode 100644 index 00000000..3792052b --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/CrashAnalysisContracts.cs @@ -0,0 +1,11 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record CrashLogSource(string Name, string Kind, string Text, string? Path = null); +public sealed record CrashDiagnosis(string Cause, string Confidence, IReadOnlyList Evidence); +public sealed record CrashAnalysisReport(string Text, IReadOnlyList Findings, IReadOnlyList Files, bool SuggestInstanceSettings = false, string? InstanceId = null, IReadOnlyList? Sources = null); +public interface ICrashAnalysisService +{ + Task AnalyzeCrashFilesAsync(IReadOnlyList files, string language = "zh-CN", CancellationToken cancellationToken = default); + Task AnalyzeInstanceCrashAsync(string instanceId, string language = "zh-CN", CancellationToken cancellationToken = default); + Task ExportCrashAnalysisAsync(CrashAnalysisReport report, string destination, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/CredentialRecoveryContracts.cs b/src/SHOU.Launcher.Core/Abstractions/CredentialRecoveryContracts.cs new file mode 100644 index 00000000..f257f9db --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/CredentialRecoveryContracts.cs @@ -0,0 +1,12 @@ +namespace SHOU.Launcher.Core.Abstractions; + +/// Explicit, foreground authorization of existing protected records; never used by unattended startup. +public interface IUserAuthorizedCredentialStore +{ + Task ReadWithUserAuthorizationAsync(string key, CancellationToken cancellationToken = default); +} +public interface ICredentialAccessRecoveryService +{ + bool CanAuthorizeCredentialAccess { get; } + Task RecoverCredentialAccessAsync(CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/CurseForgeExportContracts.cs b/src/SHOU.Launcher.Core/Abstractions/CurseForgeExportContracts.cs new file mode 100644 index 00000000..1f9cda6b --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/CurseForgeExportContracts.cs @@ -0,0 +1,6 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public interface ICurseForgeExportService +{ + Task ExportCurseForgePackAsync(string instanceId, ModrinthPackExportOptions options, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/CustomHomeImageContracts.cs b/src/SHOU.Launcher.Core/Abstractions/CustomHomeImageContracts.cs new file mode 100644 index 00000000..a1efa2ea --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/CustomHomeImageContracts.cs @@ -0,0 +1,6 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public interface ICustomHomeImageService +{ + Task ReadCustomHomeImageAsync(string source, string documentLocation, bool remoteDocument, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/DownloadStatistics.cs b/src/SHOU.Launcher.Core/Abstractions/DownloadStatistics.cs new file mode 100644 index 00000000..206a1095 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/DownloadStatistics.cs @@ -0,0 +1,10 @@ +namespace SHOU.Launcher.Core.Abstractions; + +/// File-task totals for this launcher session, independent of the bounded detail list. +/// Ready bytes include resumed data and cache hits; they are not wire-traffic counters. +public sealed record DownloadStatistics(int Files = 0, int Completed = 0, int Failed = 0, int Cancelled = 0, + int Pending = 0, int Downloading = 0, int Verifying = 0, int UnknownSizes = 0, + long ReadyBytes = 0, long KnownTotalBytes = 0, long CachedBytes = 0, int Connections = 0); + +public sealed record DownloadActivitySnapshot(string Id, string Name, string State, DateTimeOffset StartedAt, + DateTimeOffset? EndedAt, DownloadStatistics Statistics); diff --git a/src/SHOU.Launcher.Core/Abstractions/FavoriteDownloadContracts.cs b/src/SHOU.Launcher.Core/Abstractions/FavoriteDownloadContracts.cs new file mode 100644 index 00000000..4ca05e9f --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/FavoriteDownloadContracts.cs @@ -0,0 +1,9 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record FavoriteDownloadEntry(string ProjectId, string Title, ContentFile File, string DestinationName); +public sealed record FavoriteDownloadFailure(string Name, string Reason); +public sealed record FavoriteDownloadResult(int Added, int Reused, IReadOnlyList Failures); +public interface IContentBatchDownloadService +{ + Task DownloadFavoriteFilesAsync(IReadOnlyList files, string directory, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/GameSettingsContracts.cs b/src/SHOU.Launcher.Core/Abstractions/GameSettingsContracts.cs new file mode 100644 index 00000000..8679d5a7 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/GameSettingsContracts.cs @@ -0,0 +1,61 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public enum InstanceIsolation { All, Modded, Shared } +public enum LauncherVisibility { Keep, Minimize, Hide, Close } +public enum GameProcessPriority { Normal, BelowNormal, AboveNormal, High } +public enum GameIpPreference { JavaDefault, IPv4, IPv6 } +public enum DownloadSourcePreference { Custom, OfficialFirst, MirrorFirst } +public sealed record GameLaunchOptions(bool AutomaticMemory = false, InstanceIsolation Isolation = InstanceIsolation.All, + LauncherVisibility Visibility = LauncherVisibility.Keep, GameProcessPriority Priority = GameProcessPriority.Normal, + GameIpPreference IpPreference = GameIpPreference.JavaDefault, string WindowTitle = "", string JvmArguments = "", + bool LockMemory = false, int? WindowWidth = null, int? WindowHeight = null, bool? Fullscreen = null, + int? MinimumMemoryMiB = null, string? CustomInfo = null, string GameArguments = "", + string BeforeLaunchExecutable = "", string BeforeLaunchArguments = "", bool InheritGlobal = false, + string ClasspathPrepend = "", bool UseConsoleJava = false, bool DebugLogging = false); +public enum InstanceDirectoryMode { Current, FollowGlobal, Isolated, Shared } +public sealed record InstanceDirectories(InstanceDirectoryMode Mode, string IsolatedDirectory, string SharedDirectory); +public interface ILaunchScriptService +{ + Task ExportLaunchScriptAsync(string instanceId, string executable, string destination, bool overwrite = false, CancellationToken cancellationToken = default); +} +public sealed record LegacyInstanceSettings(GameLaunchOptions Options, InstanceDirectoryMode? DirectoryMode, IReadOnlyList Warnings, + string? JavaExecutable = null, int? MemoryMiB = null); +public interface ILegacyInstanceSettingsService +{ + Task ReadLegacyInstanceSettingsAsync(string instanceId, CancellationToken cancellationToken = default); +} +public static class DownloadDefaults +{ + public const int Connections = 256; + public const int MaximumConnections = 256; + public const int ConnectionsPerFile = 8; +} +public sealed record DownloadBehavior(int MaximumConnections = DownloadDefaults.Connections, int MaximumKiBPerSecond = 0, + bool HttpsOnly = false, DownloadSourcePreference SourcePreference = DownloadSourcePreference.Custom, + bool PreferOfficialCatalog = true, bool SelectInstalledInstance = true) +{ + public int ConcurrencyVersion { get; init; } = 1; +} +public sealed record MemoryStatus(long TotalBytes, long AvailableBytes); +public interface IMemoryInfo { MemoryStatus Read(); } +public interface IGameSettingsService { MemoryStatus? ReadMemoryStatus(); } +public interface IGameWindowCustomization +{ + bool SupportsGameWindowTitle => true; + Task SetGameWindowTitleAsync(IManagedProcess process, string title, CancellationToken cancellationToken); +} +public sealed record ExternalInstanceOrigin(string MinecraftRoot, string VersionDirectory, string OriginalVersionId, string MetadataSha256); +public sealed record ExistingInstanceCandidate(string Name, string VersionId, string GameVersion, string Loader, + string? LoaderVersion, string GameDirectory, ExternalInstanceOrigin Origin, InstancePresentation? Presentation = null); +public sealed record ExistingInstanceIssue(string Name, string Reason); +public sealed record ExistingInstanceInspection(IReadOnlyList Candidates, IReadOnlyList Issues); +public interface IExistingInstanceBatchService +{ + Task InspectInstanceFolderDetailedAsync(string folder, CancellationToken cancellationToken = default); + Task> AttachExistingInstancesAsync(IReadOnlyList candidates, CancellationToken cancellationToken = default); +} +public interface IExistingInstanceService +{ + Task> InspectInstanceFolderAsync(string folder, CancellationToken cancellationToken = default); + Task AttachExistingInstanceAsync(ExistingInstanceCandidate candidate, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/InstallerCatalogContracts.cs b/src/SHOU.Launcher.Core/Abstractions/InstallerCatalogContracts.cs new file mode 100644 index 00000000..aa494bde --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/InstallerCatalogContracts.cs @@ -0,0 +1,10 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record InstallerVersion(string Loader, string GameVersion, string Version, string ArtifactVersion, + bool Recommended = false, DateTimeOffset? Published = null, bool Latest = false, string? Channel = null); +public sealed record InstallerCatalog(IReadOnlyList Versions, string? Notice = null); +public interface IInstallerCatalogService +{ + Task GetInstallerCatalogAsync(string loader, CancellationToken cancellationToken = default); + Task SaveInstallerAsync(InstallerVersion version, string destination, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/InstanceContentBrowserContracts.cs b/src/SHOU.Launcher.Core/Abstractions/InstanceContentBrowserContracts.cs new file mode 100644 index 00000000..9d5e9905 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/InstanceContentBrowserContracts.cs @@ -0,0 +1,9 @@ +namespace SHOU.Launcher.Core.Abstractions; + +/// Directory is relative to the selected category, never to the game root. +public interface IInstanceContentBrowserService +{ + Task> BrowseInstanceContentAsync(string instanceId, string kind, string directory, CancellationToken cancellationToken = default); + Task GetInstanceContentDirectoryAsync(string instanceId, string kind, string directory, CancellationToken cancellationToken = default); + Task ImportInstanceContentToDirectoryAsync(string instanceId, string kind, string directory, string sourcePath, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/InstanceContentMetadataContracts.cs b/src/SHOU.Launcher.Core/Abstractions/InstanceContentMetadataContracts.cs new file mode 100644 index 00000000..a4b0c3e8 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/InstanceContentMetadataContracts.cs @@ -0,0 +1,8 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record InstanceContentOnlineInfo(string RelativePath, ContentProject Project, string Version); +public sealed record InstanceContentInfoCheck(IReadOnlyList Info, IReadOnlyList Notices); +public interface IInstanceContentMetadataService +{ + Task ReadInstanceContentMetadataAsync(string instanceId, string kind, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/InstanceContentTrashContracts.cs b/src/SHOU.Launcher.Core/Abstractions/InstanceContentTrashContracts.cs new file mode 100644 index 00000000..a16f20b6 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/InstanceContentTrashContracts.cs @@ -0,0 +1,9 @@ +namespace SHOU.Launcher.Core.Abstractions; + +/// Recoverable deletion of resource packs, shaders and schematics; mod trash remains compatible. +public interface IInstanceContentTrashService +{ + Task TrashInstanceContentAsync(string instanceId, string kind, IReadOnlyList paths, CancellationToken cancellationToken = default); + Task> GetInstanceContentTrashAsync(string instanceId, string kind, CancellationToken cancellationToken = default); + Task RestoreInstanceContentAsync(string instanceId, string kind, string trashId, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/InstanceExportSelectionContracts.cs b/src/SHOU.Launcher.Core/Abstractions/InstanceExportSelectionContracts.cs new file mode 100644 index 00000000..b32d5bda --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/InstanceExportSelectionContracts.cs @@ -0,0 +1,10 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record InstanceExportEntry(string RelativePath, bool Directory, long Bytes, bool CanSelect = true, string? Reason = null) +{ + public string Name => RelativePath.Split('/')[^1]; +} +public interface IInstanceExportSelectionService +{ + Task> GetInstanceExportEntriesAsync(string instanceId, string directory = "", CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/InstanceModContracts.cs b/src/SHOU.Launcher.Core/Abstractions/InstanceModContracts.cs new file mode 100644 index 00000000..e007f342 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/InstanceModContracts.cs @@ -0,0 +1,36 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record InstanceModUpdate(string Token, string InstanceId, string RelativePath, string Name, + string CurrentVersion, string NewVersion, long DownloadBytes, Uri? ChangelogUri = null, string? ProjectId = null); +public sealed record InstanceModOnlineInfo(string RelativePath, ContentProject Project, string? Version = null, IReadOnlyList? Requirements = null); +public sealed record InstanceModUpdateCheck(IReadOnlyList Updates, int CheckedFiles, IReadOnlyList Notices, IReadOnlyList? OnlineInfo = null); +public sealed record InstanceModUpdateResult(string BackupDirectory, int InstalledFiles, IReadOnlyList? Notices = null); +public interface IInstanceModUpdateService +{ + Task CheckInstanceModUpdatesAsync(string instanceId, CancellationToken cancellationToken = default); + Task ApplyInstanceModUpdateAsync(string token, CancellationToken cancellationToken = default); +} + +public interface IInstanceModUpdateProgressService +{ + Task CheckInstanceModUpdatesWithProgressAsync(string instanceId, IProgress progress, CancellationToken cancellationToken = default); +} +public interface IInstanceModRefreshService +{ + Task RefreshInstanceModUpdatesAsync(string instanceId, IProgress? progress = null, CancellationToken cancellationToken = default); +} + +public sealed record InstanceModTrash(string Id, int Files, DateTimeOffset Created); +public interface IInstanceModManagementService +{ + Task SetInstanceModsEnabledAsync(string instanceId, IReadOnlyList paths, bool enabled, CancellationToken cancellationToken = default); + Task TrashInstanceModsAsync(string instanceId, IReadOnlyList paths, CancellationToken cancellationToken = default); + Task> GetInstanceModTrashAsync(string instanceId, CancellationToken cancellationToken = default); + Task RestoreInstanceModsAsync(string instanceId, string trashId, CancellationToken cancellationToken = default); +} + +public interface IInstanceManualUpdateService +{ + Task> GetInstanceUpdateManualFilesAsync(string token, CancellationToken cancellationToken = default); + Task ProvideInstanceUpdateManualFileAsync(string token, CurseForgeManualFile file, string path, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/InstanceModRelationContracts.cs b/src/SHOU.Launcher.Core/Abstractions/InstanceModRelationContracts.cs new file mode 100644 index 00000000..c9ed1f1e --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/InstanceModRelationContracts.cs @@ -0,0 +1,18 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record ModDeclaredDependency(string Id, string? Requirement, bool Optional = false); +public sealed record ModDeclaration(string Path, string Name, string? Version, string? Loader, + IReadOnlyList Ids, IReadOnlyList Dependencies, + IReadOnlyList Children, IReadOnlyList Notices); +public sealed record ModRelationHost(string RelativePath, bool Enabled, ModDeclaration Declaration); +// These states describe metadata presence, not the loader's version selection or compatibility. +public enum ModDeclarationPresence { Independent, Embedded, Disabled, NotFound, Unverified } +public sealed record ModDependencyRelation(string HostPath, string OwnerPath, string OwnerName, + bool OwnerEnabled, ModDeclaredDependency Dependency, ModDeclarationPresence Presence, + IReadOnlyList Providers); +public sealed record InstanceModRelations(IReadOnlyList Hosts, + IReadOnlyList Dependencies, IReadOnlyList Notices); +public interface IInstanceModRelationsService +{ + Task ReadInstanceModRelationsAsync(string instanceId, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/InstancePresentationContracts.cs b/src/SHOU.Launcher.Core/Abstractions/InstancePresentationContracts.cs new file mode 100644 index 00000000..e8a3bb5d --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/InstancePresentationContracts.cs @@ -0,0 +1,12 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record InstancePresentationEdit(string Icon, string Category, string Description, bool Favorite); +public interface IInstancePresentationService +{ + Task UpdateInstancePresentationAsync(string instanceId, InstancePresentationEdit presentation, CancellationToken cancellationToken = default); +} +public interface IInstanceArtworkService +{ + Task ReadInstanceIconAsync(string instanceId, CancellationToken cancellationToken = default); + Task SaveInstanceIconAsync(string instanceId, ReadOnlyMemory squarePng, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/InstanceResourceUpdateContracts.cs b/src/SHOU.Launcher.Core/Abstractions/InstanceResourceUpdateContracts.cs new file mode 100644 index 00000000..11440302 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/InstanceResourceUpdateContracts.cs @@ -0,0 +1,9 @@ +namespace SHOU.Launcher.Core.Abstractions; + +/// Resource-pack/shader updates share the existing file-update DTOs and transaction results. +public interface IInstanceResourceUpdateService +{ + Task CheckInstanceResourceUpdatesAsync(string instanceId, string kind, bool refresh = false, + IProgress? progress = null, CancellationToken cancellationToken = default); + Task ApplyInstanceResourceUpdateAsync(string token, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/InstanceWorkspaceContracts.cs b/src/SHOU.Launcher.Core/Abstractions/InstanceWorkspaceContracts.cs new file mode 100644 index 00000000..4a4e196c --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/InstanceWorkspaceContracts.cs @@ -0,0 +1,32 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public interface IServerLaunchService +{ + Task LaunchToServerAsync(string instanceId, string address, CancellationToken cancellationToken = default); +} + +public interface IInstanceDirectoryService +{ + Task GetInstanceDirectoryAsync(string instanceId, string? contentKind = null, bool createMissing = false, CancellationToken cancellationToken = default); +} + +public sealed record InstanceEdit(string Name, string? JavaExecutable, int? MemoryMiB, GameLaunchOptions? LaunchOptions = null, + InstanceDirectoryMode? DirectoryMode = null, bool ConfirmDirectoryChange = false); +public sealed record InstanceContentEntry(string Name, string RelativePath, string FullPath, string Kind, + long Bytes, DateTimeOffset Modified, bool Enabled = true, bool Directory = false, + string? ModName = null, string? ModVersion = null, byte[]? IconPng = null, + string? ModId = null, string? Description = null, IReadOnlyList? Dependencies = null, + IReadOnlyList? EmbeddedMods = null, string? MetadataError = null, DateTimeOffset? Created = null) +{ + public string DisplayName => ModName ?? Name; + public string VersionLabel => ModVersion is { Length: > 0 } ? ModVersion : ""; + public bool HasIcon => IconPng is { Length: > 0 }; +} +public interface IInstanceWorkspaceService +{ + Task UpdateInstanceAsync(string instanceId, InstanceEdit edit, CancellationToken cancellationToken = default); + Task> ListInstanceContentAsync(string instanceId, string kind, CancellationToken cancellationToken = default); + Task ImportInstanceContentAsync(string instanceId, string kind, string sourcePath, CancellationToken cancellationToken = default); + Task SetInstanceModEnabledAsync(string instanceId, string relativePath, bool enabled, CancellationToken cancellationToken = default); + Task ExportInstanceAsync(string instanceId, bool includeWorlds, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/InstanceWorldContracts.cs b/src/SHOU.Launcher.Core/Abstractions/InstanceWorldContracts.cs new file mode 100644 index 00000000..e854fc7d --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/InstanceWorldContracts.cs @@ -0,0 +1,23 @@ +namespace SHOU.Launcher.Core.Abstractions; + +/// Explicit current-instance file actions. No account credentials or level.dat enable-state writes. +public interface IInstanceWorldService +{ + Task GetInstanceServersAsync(string instanceId, CancellationToken cancellationToken = default); + Task SaveInstanceServersAsync(string instanceId, string expectedRevision, + IReadOnlyList entries, CancellationToken cancellationToken = default); + Task> GetInstanceWorldsAsync(string instanceId, CancellationToken cancellationToken = default); + Task> GetWorldDatapacksAsync(string instanceId, string worldDirectoryName, + CancellationToken cancellationToken = default); + Task ImportWorldDatapackAsync(string instanceId, string worldDirectoryName, string zipPath, + CancellationToken cancellationToken = default); +} + +// ExistingIndex identifies the row in the revision that was read. Null creates a row; omitted rows are removed. +public sealed record InstanceServerEntry(int ExistingIndex, string Name, string Address); +public sealed record InstanceServerEdit(int? ExistingIndex, string Name, string Address); +public sealed record InstanceServerList(string Revision, IReadOnlyList Entries, string? BackupPath = null); +public sealed record InstanceWorldSummary(string DirectoryName, string Name, long? Seed, string? Version, + int? DataVersion, int? GameMode, bool? Hardcore, DateTimeOffset? LastPlayed, string? Error = null); +public sealed record WorldDatapackFile(string Name, bool IsDirectory, long? Size, DateTimeOffset Modified, + string Status = "仅文件;版本兼容性未验证,尚未修改世界启停状态"); diff --git a/src/SHOU.Launcher.Core/Abstractions/InstanceWorldEditContracts.cs b/src/SHOU.Launcher.Core/Abstractions/InstanceWorldEditContracts.cs new file mode 100644 index 00000000..1c7702db --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/InstanceWorldEditContracts.cs @@ -0,0 +1,20 @@ +namespace SHOU.Launcher.Core.Abstractions; + +/// Explicit, stopped-game edits for a selected isolated Java world. Separate from the read/import contract. +public interface IInstanceWorldEditService +{ + Task GetWorldEditStateAsync(string instanceId, string worldDirectoryName, CancellationToken cancellationToken = default); + Task SaveWorldMetadataAsync(string instanceId, string worldDirectoryName, string expectedRevision, + WorldMetadataEdit edit, CancellationToken cancellationToken = default); + Task SetWorldDatapacksEnabledAsync(string instanceId, string worldDirectoryName, string expectedRevision, + IReadOnlyList packs, bool enabled, CancellationToken cancellationToken = default); +} +public sealed record WorldMetadataValues(bool? AllowCommands, int? Difficulty, bool? DifficultyLocked, + int? SpawnX, int? SpawnY, int? SpawnZ, long? WorldTicks); +public sealed record WorldMetadataEdit(bool AllowCommands, int Difficulty, bool DifficultyLocked); +public sealed record WorldDatapackState(WorldDatapackFile File, string PackId, string ContentRevision, bool? Enabled, + string Description, int? PackFormat, bool CanToggle, string Capability); +public sealed record WorldDatapackSelection(string PackId, string ContentRevision); +public sealed record WorldEditState(string Revision, int? DataVersion, string? Version, WorldMetadataValues Values, + IReadOnlyList Datapacks, bool CanEditMetadata, bool CanToggleDatapacks, string Capability); +public sealed record WorldEditReceipt(string Revision, string? BackupPath); diff --git a/src/SHOU.Launcher.Core/Abstractions/JavaBootstrapArtifact.cs b/src/SHOU.Launcher.Core/Abstractions/JavaBootstrapArtifact.cs new file mode 100644 index 00000000..28732dd8 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/JavaBootstrapArtifact.cs @@ -0,0 +1,4 @@ +namespace SHOU.Launcher.Core.Abstractions; + +/// Public build artifact identity; contains no account or session values. +public sealed record JavaBootstrapArtifact(string JarPath, string Sha256); diff --git a/src/SHOU.Launcher.Core/Abstractions/JavaTrustContracts.cs b/src/SHOU.Launcher.Core/Abstractions/JavaTrustContracts.cs new file mode 100644 index 00000000..578c8268 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/JavaTrustContracts.cs @@ -0,0 +1,31 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record JavaTrustFinding(string Path, bool IsTrustStore, string Hash, bool NeedsRepair, + bool CanRepair, string Details, bool CanRestore = false); + +/// The source is read-only. Only a new owned variant below DerivedRoot may be changed. +public sealed record JavaTrustCopyRequest(JavaInstallation Source, string DerivedRoot, + string? SourceManifestSha1 = null); + +public sealed record JavaTrustDerivation(JavaInstallation Java, string SourceJavaExecutable, string PolicyId, + string SourceTreeSha256, string OutputTreeSha256, string ProvenancePath, + IReadOnlyList Findings); + +public interface IJavaTrustService +{ + Task> InspectAsync(JavaInstallation java, CancellationToken cancellationToken = default); + // Reuse must revalidate source/output/provenance. A supplied source already inside DerivedRoot + // must be verified as a completed owned variant, never recursively copied or accepted raw. + Task CreateRepairedCopyAsync(JavaTrustCopyRequest request, + CancellationToken cancellationToken = default); +} + +public sealed record JavaTrustSelectionChange(string? PreviousJavaExecutable, string SelectedJavaExecutable); + +/// Separate read/prepare from the user's explicit default-runtime selection. +public interface IJavaTrustWorkflowService +{ + Task PrepareJavaTrustCopyAsync(string javaExecutable, CancellationToken cancellationToken = default); + Task SelectJavaTrustCopyAsync(JavaTrustDerivation prepared, CancellationToken cancellationToken = default); + Task RestoreJavaTrustSelectionAsync(JavaTrustSelectionChange change, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/LauncherContracts.cs b/src/SHOU.Launcher.Core/Abstractions/LauncherContracts.cs new file mode 100644 index 00000000..9d74b4ff --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/LauncherContracts.cs @@ -0,0 +1,106 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public interface IBuildConfiguration +{ + string? MicrosoftClientId { get; } + string? CurseForgeApiKey { get; } + string SourceSha { get; } + string Configuration { get; } + string OwnerAssembly { get; } +} +public sealed record BuildIdentity(string Name, string Version, string Codename, string SourceSha, + string Configuration, string OwnerAssembly, bool MicrosoftConfigured, bool CurseForgeConfigured); +public sealed record ProxySettings(ProxyMode Mode = ProxyMode.System, string? Address = null, string? CredentialKey = null); +public sealed record Aria2Settings(bool Enabled = false, string Endpoint = "http://localhost:6800/jsonrpc", string? CredentialKey = null); +public sealed record LauncherSettings(string? GameRoot = null, string? JavaExecutable = null, int MemoryMiB = 2048, + string Language = "zh-CN", string Theme = "System", string DownloadSourcesJson = "", + ProxySettings? Proxy = null, Aria2Settings? Aria2 = null, string? MicrosoftClientId = null, + bool ConduitJavaTrustAutoRepair = true, int? GameWindowWidth = null, int? GameWindowHeight = null, + bool GameFullscreen = false, int? MinimumMemoryMiB = null, string? CustomInfo = null, + JavaTrustSelectionChange? JavaTrustSelection = null, GameLaunchOptions? LaunchOptions = null, DownloadBehavior? Downloads = null, + LauncherBehavior? Launcher = null); +public sealed record GameInstance(string Id, string Name, string VersionId, string GameDirectory, + string? JavaExecutable = null, int? MemoryMiB = null, string Loader = "vanilla", string? LoaderVersion = null, + bool Installed = false, string? GameVersionId = null, InstancePresentation? Presentation = null, + GameLaunchOptions? LaunchOptions = null, ExternalInstanceOrigin? Origin = null, bool RuntimeProfileOverride = false, + InstanceDirectories? Directories = null); +public sealed record InstancePresentation(string Icon = "auto", string Category = "auto", string Description = "", + bool Favorite = false, long LaunchCount = 0, string? IconImageSha256 = null); +public enum AccountKind { Offline, Microsoft, Yggdrasil } +public sealed record AccountProfile(string Id, AccountKind Kind, string DisplayName, string PlayerUuid, + string? AuthenticationServer = null, bool Persisted = false, string Status = "本地档案", + DateTimeOffset? ExpiresAt = null); +public sealed record ClubServer(string Id, string Name, string Address, string Status = "尚未查询", int? OnlinePlayers = null, + string? Motd = null, int? MaximumPlayers = null, long? ResponseMilliseconds = null, string? GameVersion = null, byte[]? IconPng = null, long? PingMilliseconds = null); +public sealed record DownloadTaskSnapshot(string Id, string Name, string State, long BytesReceived = 0, + long? TotalBytes = null, string? Source = null, string? Error = null, double BytesPerSecond = 0, + string? Backend = null, string? Detail = null, DateTimeOffset UpdatedAt = default, int Connections = 0); +public sealed record LauncherLog(DateTimeOffset Timestamp, string Level, string Message); +public sealed record DeviceCodeChallenge(string UserCode, Uri VerificationUri, DateTimeOffset ExpiresAt, string Message); +public sealed record AuthenticationProfileChoice(string Id, string Name); +public sealed record GameSessionSnapshot(string InstanceId, int ProcessId, DateTimeOffset StartedAt) +{ + // Null means an existing/unobserved session; false is an owned game without a confirmed window. + public bool? WindowReady { get; init; } +} +public sealed record LaunchActivity(string InstanceId, string InstanceName, string Stage, string Authentication, + long BytesReceived = 0, long? TotalBytes = null, int? ProcessId = null, DateTimeOffset? ProcessStartedAt = null); +public sealed record LauncherSnapshot(BuildIdentity Build, PlatformContext Platform, LauncherSettings Settings, + IReadOnlyList Instances, IReadOnlyList Accounts, + IReadOnlyList JavaInstallations, IReadOnlyList Servers, + IReadOnlyList Downloads, string? SelectedAccountId = null, + string? SelectedInstanceId = null, string State = "Ready", string? Error = null, + int? GameProcessId = null, bool CanPersistAccounts = true) +{ + public IReadOnlyList GameSessions { get; init; } = []; + public LaunchActivity? LaunchActivity { get; init; } + public CrashAnalysisReport? LastCrash { get; init; } + public double DownloadBytesPerSecond { get; init; } + public DateTimeOffset DownloadRateUpdatedAt { get; init; } + public DownloadStatistics? DownloadTotals { get; init; } + public DownloadActivitySnapshot? DownloadActivity { get; init; } + public IReadOnlyList DownloadHistory { get; init; } = []; +} +public sealed record LaunchPlan(string JavaExecutable, RuntimeArchitecture JavaRuntimeArchitecture, + string WorkingDirectory, [property: System.Text.Json.Serialization.JsonIgnore] IReadOnlyList Arguments, + [property: System.Text.Json.Serialization.JsonIgnore] IReadOnlyDictionary EnvironmentOverrides, IReadOnlyList ClasspathEntries, + IReadOnlyList ResolvedLibraries, IReadOnlyList LegacyNativeExtractions, + IReadOnlyList RedactedDiagnostics, int MainClassIndex = -1, string? BootstrapSha256 = null) +{ + // Launch arguments contain runtime credentials. Only this explicitly redacted view is reportable. + public object ToRedactedReport() => new { JavaExecutable, JavaRuntimeArchitecture, WorkingDirectory, + ClasspathEntries, ResolvedLibraries, LegacyNativeExtractions, RedactedDiagnostics, BootstrapSha256 }; +} +public interface ILauncherService : IAsyncDisposable +{ + LauncherSnapshot Snapshot { get; } + IAppPaths Paths { get; } + IPlatformCapabilities Capabilities { get; } + event EventHandler? SnapshotChanged; + event EventHandler? LogReceived; + Task InitializeAsync(CancellationToken cancellationToken = default); + Task CreateInstanceAsync(string name, string versionId, CancellationToken cancellationToken = default); + Task CreateFabricInstanceAsync(string name, string gameVersionId, string loaderVersion, CancellationToken cancellationToken = default); + Task SelectInstanceAsync(string instanceId, CancellationToken cancellationToken = default); + Task> DiscoverJavaAsync(CancellationToken cancellationToken = default); + Task> InspectJavaTrustAsync(string javaExecutable, CancellationToken cancellationToken = default); + Task CreateRepairedJavaCopyAsync(string javaExecutable, CancellationToken cancellationToken = default); + Task InstallInstanceAsync(string instanceId, CancellationToken cancellationToken = default); + Task BuildLaunchPlanAsync(string instanceId, CancellationToken cancellationToken = default); + Task LaunchAsync(string instanceId, string serverId = "none", CancellationToken cancellationToken = default); + Task StopGameAsync(CancellationToken cancellationToken = default); + Task CancelDownloadAsync(string taskId, CancellationToken cancellationToken = default); + Task RetryDownloadAsync(string taskId, CancellationToken cancellationToken = default); + Task SaveSettingsAsync(LauncherSettings settings, CancellationToken cancellationToken = default); + Task SaveConnectionSecretAsync(string kind, string secret, CancellationToken cancellationToken = default); + Task AddOfflineAccountAsync(string playerName, CancellationToken cancellationToken = default); + Task LoginMicrosoftAsync(IProgress challenge, CancellationToken cancellationToken = default); + Task> LoginYggdrasilAsync(Uri server, string username, string password, CancellationToken cancellationToken = default); + Task> LoginYggdrasilWithProfileSelectionAsync(Uri server, string username, string password, + Func, CancellationToken, Task> selectProfile, CancellationToken cancellationToken = default); + Task RefreshAccountAsync(string accountId, CancellationToken cancellationToken = default); + Task SelectAccountAsync(string accountId, CancellationToken cancellationToken = default); + Task RemoveAccountAsync(string accountId, CancellationToken cancellationToken = default); + Task RefreshServersAsync(CancellationToken cancellationToken = default); + IReadOnlyList GetRecentLogs(); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/LauncherPreferencesContracts.cs b/src/SHOU.Launcher.Core/Abstractions/LauncherPreferencesContracts.cs new file mode 100644 index 00000000..44a1c4a8 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/LauncherPreferencesContracts.cs @@ -0,0 +1,17 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record LauncherBehavior(string RegionalFormat = "system", int LogLineLimit = 2000, + bool DisableHardwareAcceleration = false, bool UseDnsOverHttps = false); +public sealed record LauncherRelease(string Tag, string Title, string Notes, DateTimeOffset Published, + Uri Page, bool? Prerelease); +public sealed record LauncherFeedback(string Title, string State, Uri Page, string Body); +public interface IJavaManagementService +{ + Task InspectJavaAsync(string executable, CancellationToken cancellationToken = default); +} +public interface ILauncherInformationService +{ + Task> CheckLauncherReleasesAsync(CancellationToken cancellationToken = default); + Task> GetLauncherFeedbackAsync(CancellationToken cancellationToken = default); + Task ReadHomeDocumentAsync(string location, bool remote, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/LegacyDesktopDataContracts.cs b/src/SHOU.Launcher.Core/Abstractions/LegacyDesktopDataContracts.cs new file mode 100644 index 00000000..b61107bf --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/LegacyDesktopDataContracts.cs @@ -0,0 +1,24 @@ +using System.Text.Json.Serialization; +using SHOU.Launcher.Core.Authentication; + +namespace SHOU.Launcher.Core.Abstractions; + +/// Local, transient handoff only. Never serialize the original credential container. +public sealed class LegacyDesktopData(IReadOnlyList gameFolders, IReadOnlyList accounts, + string? selectedAccountId = null, string? selectedVersionDirectory = null, IReadOnlyList? issues = null, + IReadOnlyDictionary? launchSettings = null, string? executableDirectory = null) +{ + public IReadOnlyList GameFolders { get; } = gameFolders; + [JsonIgnore] public IReadOnlyList Accounts { get; } = accounts; + public string? SelectedAccountId { get; } = selectedAccountId; + public string? SelectedVersionDirectory { get; } = selectedVersionDirectory; + public IReadOnlyList Issues { get; } = issues ?? []; + public IReadOnlyDictionary LaunchSettings { get; } = launchSettings ?? new Dictionary(); + public string? ExecutableDirectory { get; } = executableDirectory; + public override string ToString() => "LegacyDesktopData [private local handoff]"; +} + +public interface ILegacyDesktopDataReader +{ + Task ReadAsync(CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/LegacyMicrosoftAccountContracts.cs b/src/SHOU.Launcher.Core/Abstractions/LegacyMicrosoftAccountContracts.cs new file mode 100644 index 00000000..00d4756c --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/LegacyMicrosoftAccountContracts.cs @@ -0,0 +1,27 @@ +using System.Text.Json.Serialization; + +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record LegacyMicrosoftAccountChoice(string SourceId, string DisplayName); + +/// Transient platform-to-Core handoff. Never a persisted DTO or a view model. +public sealed class LegacyMicrosoftAccountCredential(string sourceId, string displayName, string playerUuid, string refreshToken) +{ + public string SourceId { get; } = sourceId; + public string DisplayName { get; } = displayName; + public string PlayerUuid { get; } = playerUuid; + [JsonIgnore] internal string RefreshToken { get; } = refreshToken; + public override string ToString() => "LegacyMicrosoftAccountCredential [redacted]"; +} + +public interface ILegacyMicrosoftAccountReader +{ + Task> ReadAsync(CancellationToken cancellationToken = default); +} + +public interface ILegacyMicrosoftAccountMigrationService +{ + bool SupportsLegacyMicrosoftImport { get; } + Task> ReadLegacyMicrosoftAccountsAsync(CancellationToken cancellationToken = default); + Task ImportLegacyMicrosoftAccountAsync(string sourceId, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/LoaderContracts.cs b/src/SHOU.Launcher.Core/Abstractions/LoaderContracts.cs new file mode 100644 index 00000000..25cd612c --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/LoaderContracts.cs @@ -0,0 +1,21 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public interface ITransactionalInstanceInstaller +{ + Task CreateInstalledInstanceAsync(string name, string gameVersion, string loader, string? loaderVersion, CancellationToken cancellationToken = default); +} + +public interface IInstanceComponentService +{ + Task ChangeInstanceLoaderAsync(string instanceId, string loader, string? loaderVersion, CancellationToken cancellationToken = default); +} + +public sealed record LoaderVersionChoice(string Loader, string Version, bool Stable, string? Detail = null, bool CanInstall = true, string? Caption = null) +{ public string DisplayVersion => Caption ?? Version; } +public interface ILoaderInstanceService +{ + Task> GetLoaderVersionsAsync(string loader, string gameVersion, + CancellationToken cancellationToken = default); + Task CreateLoaderInstanceAsync(string name, string gameVersion, string loader, string loaderVersion, + CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/LocalPackContracts.cs b/src/SHOU.Launcher.Core/Abstractions/LocalPackContracts.cs new file mode 100644 index 00000000..24e34e60 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/LocalPackContracts.cs @@ -0,0 +1,37 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public enum LocalPackFormat { Unknown, Modrinth, MultiMC, CurseForge, ShouExport, Hmcl, Mcbbs, CompressedInstance } + +/// Detected archive contents, never inferred from the file extension. Unsupported formats carry a reason. +public sealed record LocalPackInspection(LocalPackFormat Format, string Name, string GameVersion, string Loader, + string? LoaderVersion, string ArchiveSha256, IReadOnlyList Warnings, bool CanImport, + string? CapabilityReason = null, ModrinthPackInspection? Modrinth = null, + IReadOnlyList? LocalFiles = null, int SkippedFiles = 0, string? PackVersion = null, int? RecommendedMemoryMiB = null, + IReadOnlyList? ManualFiles = null, IReadOnlyList? OptionalFiles = null, + IReadOnlyList? SelectedOptionalFiles = null, LegacyPackProfile? LegacyProfile = null); +public sealed record LegacyPackComponent(string Loader, string Version, bool Overridden = false); +public sealed record LegacyPackProfile(string? VersionJson = null, IReadOnlyList? Components = null, string? JvmArguments = null, string? GameArguments = null, string? ClientJarRelativePath = null, bool CompleteVersionProfile = false); +public sealed record LocalPackOptionalFile(string Key, string Name, Uri PageUri, string? Notice = null); +public interface ILocalPackSelectionService +{ + Task InspectLocalPackSelectionAsync(string archivePath, IReadOnlyList optionalFiles, + IProgress? progress = null, CancellationToken cancellationToken = default, string? expectedArchiveSha256 = null); + Task ProvideSelectedLocalPackFileAsync(string archivePath, string expectedArchiveSha256, IReadOnlyList optionalFiles, + int projectId, int fileId, string sourcePath, CancellationToken cancellationToken = default); +} +public sealed record CurseForgeManualFile(int ProjectId, int FileId, string FileName, string Sha1, long Size, Uri PageUri); +public interface ILocalPackManualFileService +{ + Task ProvideLocalPackFileAsync(string archivePath, string expectedArchiveSha256, int projectId, int fileId, + string sourcePath, CancellationToken cancellationToken = default); +} +public sealed record LocalPackImportRequest(string ArchivePath, string ExpectedSha256, string InstanceName, + IReadOnlyList? OptionalClientFiles = null, bool PrepareAfterImport = false); +public sealed record LocalPackImportResult(GameInstance Instance, int InstalledFiles, IReadOnlyList Warnings, + ModrinthPackImportResult? Modrinth = null); + +public interface ILocalPackService +{ + Task InspectLocalPackAsync(string archivePath, CancellationToken cancellationToken = default); + Task ImportLocalPackAsync(LocalPackImportRequest request, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/LocalWorldImportContracts.cs b/src/SHOU.Launcher.Core/Abstractions/LocalWorldImportContracts.cs new file mode 100644 index 00000000..8224c1fa --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/LocalWorldImportContracts.cs @@ -0,0 +1,12 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record LocalWorldImportRequest(string InstanceId, string ArchivePath, string WorldDirectoryName); +public sealed record LocalWorldImportPreview(WorldContentPreview Installation, string WorldName, string ArchiveFileName, string ArchiveSha256); + +/// Inspect a local Java world without changing saves; explicitly publish to a new world directory. +public interface ILocalWorldImportService +{ + Task PreviewLocalWorldImportAsync(LocalWorldImportRequest request, CancellationToken cancellationToken = default); + Task ImportLocalWorldAsync(string previewId, CancellationToken cancellationToken = default); + Task DiscardLocalWorldImportAsync(string previewId, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/MinecraftPackageContracts.cs b/src/SHOU.Launcher.Core/Abstractions/MinecraftPackageContracts.cs new file mode 100644 index 00000000..98154ed9 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/MinecraftPackageContracts.cs @@ -0,0 +1,13 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record MinecraftPackage(string Kind, string FileName, long Size, string Sha1) +{ + public string Title => Kind == "client" ? "Minecraft 客户端" : "Minecraft 服务端"; +} + +/// Standalone official game files. This operation never creates an instance or runs Java. +public interface IMinecraftPackageService +{ + Task> GetMinecraftPackagesAsync(string version, CancellationToken ct = default); + Task DownloadMinecraftPackageAsync(string version, string kind, string destination, CancellationToken ct = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/ModrinthPackContracts.cs b/src/SHOU.Launcher.Core/Abstractions/ModrinthPackContracts.cs new file mode 100644 index 00000000..80024265 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/ModrinthPackContracts.cs @@ -0,0 +1,18 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record ModrinthPackFile(string Path, string Sha1, string Sha512, long Size, + IReadOnlyList Downloads, string Client = "required", string Server = "required"); +public sealed record ModrinthPackInspection(string Name, string VersionId, string GameVersion, string Loader, + string? LoaderVersion, string ArchiveSha256, IReadOnlyList Files, + IReadOnlyList Overrides, IReadOnlyList Warnings, bool CanImport, string? CapabilityReason = null); +public sealed record ModrinthPackImportRequest(string ArchivePath, string ExpectedSha256, string InstanceName, + IReadOnlyList? OptionalClientFiles = null, bool PrepareAfterImport = false); +public sealed record ModrinthPackImportResult(GameInstance Instance, int InstalledFiles, int SkippedServerFiles, int SkippedOptionalFiles); +public sealed record ModrinthPackExportOptions(string Name, string VersionId = "1.0.0", + IReadOnlyList? OverridePaths = null, bool BundleInstalledFiles = false); +public interface IModrinthPackService +{ + Task InspectModrinthPackAsync(string archivePath, CancellationToken cancellationToken = default); + Task ImportModrinthPackAsync(ModrinthPackImportRequest request, CancellationToken cancellationToken = default); + Task ExportModrinthPackAsync(string instanceId, ModrinthPackExportOptions options, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/OfflineAccountContracts.cs b/src/SHOU.Launcher.Core/Abstractions/OfflineAccountContracts.cs new file mode 100644 index 00000000..724dd5c7 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/OfflineAccountContracts.cs @@ -0,0 +1,9 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public enum OfflineUuidMode { Standard, Legacy, Custom } + +public interface IOfflineAccountService +{ + Task AddOfflineAccountAsync(string playerName, OfflineUuidMode mode, string? customUuid = null, + CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/PackProgressContracts.cs b/src/SHOU.Launcher.Core/Abstractions/PackProgressContracts.cs new file mode 100644 index 00000000..17788226 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/PackProgressContracts.cs @@ -0,0 +1,14 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record PackInstallProgress(string Stage, int CompletedFiles, int TotalFiles, string? CurrentFile = null); + +public interface ILocalPackProgressService +{ + Task InspectLocalPackWithProgressAsync(string archivePath, IProgress progress, CancellationToken cancellationToken = default); + Task ImportLocalPackWithProgressAsync(LocalPackImportRequest request, IProgress progress, CancellationToken cancellationToken = default); +} + +public interface IInstanceInstallProgressService +{ + Task InstallInstanceWithProgressAsync(string instanceId, IProgress progress, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/PlatformContracts.cs b/src/SHOU.Launcher.Core/Abstractions/PlatformContracts.cs new file mode 100644 index 00000000..e23f7b4a --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/PlatformContracts.cs @@ -0,0 +1,132 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public enum LauncherOS { Unknown, Windows, MacOS, Linux } +public enum RuntimeArchitecture { Unknown, X86, X64, Arm64 } +public enum ProxyMode { Direct, System, Custom } +public sealed record PlatformContext(LauncherOS OS, RuntimeArchitecture HardwareArchitecture, + RuntimeArchitecture ProcessArchitecture, string OSVersion) +{ + public string MinecraftOS => OS switch { LauncherOS.Windows => "windows", LauncherOS.MacOS => "osx", LauncherOS.Linux => "linux", _ => "unknown" }; + public string RuntimeIdentifier => (OS switch { LauncherOS.Windows => "win", LauncherOS.MacOS => "osx", LauncherOS.Linux => "linux", _ => "unknown" }) + + "-" + ProcessArchitecture.ToString().ToLowerInvariant(); +} +public interface IPlatformInfo { PlatformContext Context { get; } } +public interface IAppPaths +{ + string DataDirectory { get; } + string SharedDataDirectory { get; } + string LocalDataDirectory { get; } + string CacheDirectory { get; } + string LogsDirectory { get; } + string RuntimesDirectory { get; } + string InstancesDirectory { get; } + string TempDirectory { get; } + string ResourcesDirectory { get; } + string LockFile { get; } + string CredentialScope { get; } + bool IsIsolated { get; } +} +public interface IPlatformCapabilities +{ + bool SupportsCredentialPersistence { get; } + bool SupportsSystemProxy { get; } + bool SupportsRevealFile { get; } + IReadOnlyList Limitations { get; } +} +public interface ILocalFileLauncher +{ + Task OpenFileAsync(string file, CancellationToken cancellationToken = default); +} +public interface IExternalLauncher +{ + Task OpenUriAsync(Uri uri, CancellationToken cancellationToken = default); + Task OpenDirectoryAsync(string directory, CancellationToken cancellationToken = default); + Task RevealFileAsync(string file, CancellationToken cancellationToken = default); +} +public enum CredentialFailure { Locked, Denied, Unavailable, Corrupt, IOFailure } +public sealed class CredentialStoreException(CredentialFailure failure, string message, Exception? inner = null) : Exception(message, inner) +{ public CredentialFailure Failure { get; } = failure; } +public interface ICredentialStore +{ + Task ReadAsync(string key, CancellationToken cancellationToken = default); + Task WriteAsync(string key, ReadOnlyMemory value, CancellationToken cancellationToken = default); + Task DeleteAsync(string key, CancellationToken cancellationToken = default); +} +public sealed record ProcessSpec(string FileName, IReadOnlyList Arguments, string WorkingDirectory, + IReadOnlyDictionary? EnvironmentOverrides = null, TimeSpan? Timeout = null, + int OutputLimitCharacters = 1048576, + [property: System.Text.Json.Serialization.JsonIgnore] SensitiveProcessInput? SensitiveInput = null, + [property: System.Text.Json.Serialization.JsonIgnore] Action? OnStarted = null, + GameProcessPriority Priority = GameProcessPriority.Normal) +{ + public override string ToString() => "ProcessSpec [arguments/environment redacted; sensitive stdin=" + (SensitiveInput is not null) + "]"; +} +public sealed record ProcessOutput(DateTimeOffset Timestamp, bool IsStandardError, string Text); +public sealed record ProcessResult(int ExitCode, string StandardOutput, string StandardError, + bool TimedOut = false, bool Cancelled = false, bool OutputTruncated = false, bool Detached = false); +public interface IManagedProcess : IAsyncDisposable +{ + int ProcessId { get; } + Task Completion { get; } + Task StopAsync(CancellationToken cancellationToken = default); +} +public interface IProcessRunner +{ + Task StartAsync(ProcessSpec spec, IProgress? output = null, CancellationToken cancellationToken = default); + Task RunAsync(ProcessSpec spec, IProgress? output = null, CancellationToken cancellationToken = default); +} +/// Only committed games with an independent log sink may be detached from their UI owner. +public interface IDetachableProcess : IManagedProcess +{ + ValueTask DetachAsync(); +} +public interface IGameWindowObserver +{ + bool SupportsGameWindowObservation => true; + Task WaitForGameWindowAsync(IManagedProcess process, TimeSpan timeout, CancellationToken cancellationToken); +} +public interface IDataDirectoryLease : IDisposable { string LockPath { get; } } +public interface IDataDirectoryLock { IDataDirectoryLease Acquire(IAppPaths paths); } +public sealed record PlatformOptions(string? DataDirectory = null, string? ConfiguredJavaExecutable = null); +public sealed record PlatformServices(IPlatformInfo Info, IAppPaths Paths, IPlatformCapabilities Capabilities, + IExternalLauncher ExternalLauncher, ICredentialStore Credentials, IProcessRunner Processes, + IJavaDiscovery JavaDiscovery, IJavaRuntimeInstaller JavaInstaller, IDataDirectoryLock DataLock) +{ + public ILegacyMicrosoftAccountReader? LegacyMicrosoftAccounts { get; init; } + public ILegacyDesktopDataReader? LegacyDesktopData { get; init; } + public IMemoryInfo? MemoryInfo { get; init; } +} + +public sealed record JavaInstallation(string ExecutablePath, string JavaHome, string FullVersion, int MajorVersion, + string Vendor, RuntimeArchitecture RuntimeArchitecture, string Source, string? ProbeError = null, + string? ValidatedManifestSha1 = null) +{ public bool IsUsable => ProbeError is null && MajorVersion > 0 && RuntimeArchitecture != RuntimeArchitecture.Unknown; } +public sealed record JavaDiscoveryRequest(string? ConfiguredExecutable, string ManagedRuntimeDirectory, + int? RequiredMajorVersion = null, RuntimeArchitecture? RequiredArchitecture = null); +public interface IJavaDiscovery +{ + Task ProbeAsync(string executable, CancellationToken cancellationToken = default); + Task> DiscoverAsync(JavaDiscoveryRequest request, CancellationToken cancellationToken = default); +} +public sealed record JavaRuntimeRequest(string Component, int MajorVersion, LauncherOS OS, + RuntimeArchitecture Architecture, string InstallRoot, Uri? CatalogUri = null); +public sealed record TransferProgress(string Id, string Stage, long BytesReceived, long? TotalBytes, string? Source = null, + string? Backend = null, string? Detail = null, int? Connections = null); +public interface IJavaRuntimeInstaller +{ + Task InstallAsync(JavaRuntimeRequest request, IProgress? progress = null, CancellationToken cancellationToken = default); +} + +public sealed record LocalDownloadSource(string Root, string RelativePath); +public sealed record DownloadRequest(IReadOnlyList Sources, string DestinationPath, + string? Sha1 = null, string? Sha256 = null, long? Size = null, bool AllowResume = true, + IReadOnlyList? LocalSources = null) +{ + // Maven libraries whose version metadata supplies no checksum may reuse an existing file. + // Catalog/manifest requests stay fresh unless the caller explicitly opts into file reuse. + public bool ReuseWithoutHash { get; init; } +} +public interface IVerifiedDownloader +{ + Task DownloadAsync(DownloadRequest request, IProgress? progress = null, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/ScreenshotTrashContracts.cs b/src/SHOU.Launcher.Core/Abstractions/ScreenshotTrashContracts.cs new file mode 100644 index 00000000..796f14a5 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/ScreenshotTrashContracts.cs @@ -0,0 +1,9 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record ScreenshotTrashEntry(string Id, string RelativePath, long Bytes, string Sha256, DateTimeOffset MovedAt); +public interface IScreenshotTrashService +{ + Task> ListScreenshotTrashAsync(string instanceId, CancellationToken cancellationToken = default); + Task MoveScreenshotToTrashAsync(string instanceId, string relativePath, CancellationToken cancellationToken = default); + Task RestoreScreenshotAsync(string instanceId, string trashId, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/SensitiveProcessInput.cs b/src/SHOU.Launcher.Core/Abstractions/SensitiveProcessInput.cs new file mode 100644 index 00000000..f766104c --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/SensitiveProcessInput.cs @@ -0,0 +1,29 @@ +using System.Security.Cryptography; + +namespace SHOU.Launcher.Core.Abstractions; + +/// One-use private stdin bytes. The runner must zero the consumed array in finally. +public sealed class SensitiveProcessInput : IDisposable +{ + public const int MaximumPayloadBytes = 1_048_590; + private byte[]? bytes; + public int ByteLength { get; } + public TimeSpan TransferTimeout { get; } + private SensitiveProcessInput(byte[] owned, TimeSpan timeout) + { bytes = owned; ByteLength = owned.Length; TransferTimeout = timeout; } + public static SensitiveProcessInput CopyFrom(ReadOnlySpan payload, TimeSpan? transferTimeout = null) + { + if (payload.IsEmpty || payload.Length > MaximumPayloadBytes) throw new ArgumentException("Private process input is empty or exceeds the bounded protocol.", nameof(payload)); + var timeout = transferTimeout ?? TimeSpan.FromSeconds(15); + if (timeout <= TimeSpan.Zero || timeout > TimeSpan.FromSeconds(60)) throw new ArgumentOutOfRangeException(nameof(transferTimeout)); + return new(payload.ToArray(), timeout); + } + public byte[] ConsumeOwnedBytes() => Interlocked.Exchange(ref bytes, null) + ?? throw new InvalidOperationException("Private process input is already consumed or disposed."); + public void Dispose() + { + var owned = Interlocked.Exchange(ref bytes, null); + if (owned is not null) CryptographicOperations.ZeroMemory(owned); + } + public override string ToString() => "SensitiveProcessInput [redacted]"; +} diff --git a/src/SHOU.Launcher.Core/Abstractions/ToolboxContracts.cs b/src/SHOU.Launcher.Core/Abstractions/ToolboxContracts.cs new file mode 100644 index 00000000..457f395c --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/ToolboxContracts.cs @@ -0,0 +1,18 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public interface IToolboxService +{ + Task DownloadToolFileAsync(Uri source, string destination, IProgress? progress = null, CancellationToken cancellationToken = default); + Task DownloadPublicSkinAsync(string playerName, CancellationToken cancellationToken = default); + Task QueryToolServerAsync(string address, CancellationToken cancellationToken = default); + Task ScanGameLogsAsync(CancellationToken cancellationToken = default); + Task MoveGameLogsAsync(GameLogCleanupPlan plan, CancellationToken cancellationToken = default); + Task RestoreGameLogsAsync(CancellationToken cancellationToken = default); + Task GetDailyFortuneAsync(DateOnly date, CancellationToken cancellationToken = default); +} + +public sealed record GameLogFile(string InstanceId, string RelativePath, long Bytes, string Sha256); +public sealed record GameLogCleanupPlan(string Id, IReadOnlyList Files) +{ + public long Bytes => Files.Sum(f => f.Bytes); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/WorldContentContracts.cs b/src/SHOU.Launcher.Core/Abstractions/WorldContentContracts.cs new file mode 100644 index 00000000..22786af7 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/WorldContentContracts.cs @@ -0,0 +1,17 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record WorldContentRequest(string InstanceId, string ProjectId, string ReleaseId, string FileName, string Kind, + string WorldDirectoryName); +public sealed record WorldContentTarget(string DirectoryName, string Name, string? Version, int? DataVersion, string? Error = null) +{ + public string Label => $"{Name} · {Version ?? "未知版本"} · {DirectoryName}"; +} +public sealed record WorldContentPreview(string Id, string Kind, string InstanceName, string WorldDirectoryName, + string GameVersion, IReadOnlyList Files, IReadOnlyList Warnings); +public sealed record WorldContentResult(string InstanceId, string WorldDirectoryName, int AddedFiles, string Destination); +public interface IWorldContentInstallationService +{ + Task> GetWorldContentTargetsAsync(string instanceId, CancellationToken cancellationToken = default); + Task PreviewWorldContentAsync(WorldContentRequest request, CancellationToken cancellationToken = default); + Task InstallWorldContentAsync(string previewId, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/WorldDatapackBackupContracts.cs b/src/SHOU.Launcher.Core/Abstractions/WorldDatapackBackupContracts.cs new file mode 100644 index 00000000..f292bb56 --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/WorldDatapackBackupContracts.cs @@ -0,0 +1,16 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record WorldDatapackBackupEntry(string Id, DateTimeOffset Created, IReadOnlyList Names, bool CanRestore, string Status) +{ + public string Label => (Created == DateTimeOffset.MinValue ? "较早的备份" : Created.ToLocalTime().ToString("g")) + " · " + string.Join("、", Names); +} +public sealed record WorldDatapackRestorePreview(string Id, string BackupId, IReadOnlyList Changes, IReadOnlyList Warnings); +public sealed record WorldDatapackRestoreReceipt(string BackupDirectory, string PreservedCurrentDirectory); +public interface IWorldDatapackBackupService +{ + Task> GetWorldDatapackBackupsAsync(string instanceId, string worldDirectoryName, CancellationToken cancellationToken = default); + Task GetWorldDatapackBackupDirectoryAsync(string instanceId, string worldDirectoryName, string backupId, CancellationToken cancellationToken = default); + Task PreviewWorldDatapackRestoreAsync(string instanceId, string worldDirectoryName, string backupId, CancellationToken cancellationToken = default); + Task RestoreWorldDatapackBackupAsync(string previewId, CancellationToken cancellationToken = default); + Task DiscardWorldDatapackRestoreAsync(string previewId, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/WorldDatapackManagementContracts.cs b/src/SHOU.Launcher.Core/Abstractions/WorldDatapackManagementContracts.cs new file mode 100644 index 00000000..fbf1c46c --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/WorldDatapackManagementContracts.cs @@ -0,0 +1,25 @@ +namespace SHOU.Launcher.Core.Abstractions; + +public sealed record WorldDatapackOrderItem(string PackId, string Name, string ContentRevision); +public sealed record WorldDatapackOrderState(string Revision, IReadOnlyList Items, IReadOnlyList Warnings); +public sealed record WorldDatapackUpdateChoice(string ReleaseId, string Version, string Name, string FileName, DateTimeOffset Published) +{ + public string Label => $"{Version} · {FileName} · {Published.ToLocalTime():g}"; +} +public sealed record WorldDatapackUpdateOptions(string WorkspaceRevision, WorldDatapackSelection Selection, string Name, + string Origin, string? ProjectId, string? CurrentReleaseId, IReadOnlyList Choices, string? Notice = null); +public sealed record WorldDatapackUpdateRequest(string InstanceId, string WorldDirectoryName, string WorkspaceRevision, + WorldDatapackSelection Selection, string? ReleaseId = null, string? FileName = null, string? LocalArchivePath = null); +public sealed record WorldDatapackUpdatePreview(string Id, string InstanceName, string WorldDirectoryName, + IReadOnlyList Changes, IReadOnlyList Warnings); +public sealed record WorldDatapackUpdateReceipt(string Revision, string BackupDirectory); +public interface IWorldDatapackManagementService +{ + Task GetWorldDatapackOrderAsync(string instanceId, string worldDirectoryName, CancellationToken cancellationToken = default); + Task SaveWorldDatapackOrderAsync(string instanceId, string worldDirectoryName, string expectedRevision, + IReadOnlyList order, CancellationToken cancellationToken = default); + Task GetWorldDatapackUpdateOptionsAsync(string instanceId, string worldDirectoryName, string packId, CancellationToken cancellationToken = default); + Task PreviewWorldDatapackUpdateAsync(WorldDatapackUpdateRequest request, CancellationToken cancellationToken = default); + Task ApplyWorldDatapackUpdateAsync(string previewId, CancellationToken cancellationToken = default); + Task DiscardWorldDatapackUpdateAsync(string previewId, CancellationToken cancellationToken = default); +} diff --git a/src/SHOU.Launcher.Core/Abstractions/WorldDatapackTrashContracts.cs b/src/SHOU.Launcher.Core/Abstractions/WorldDatapackTrashContracts.cs new file mode 100644 index 00000000..8ece7d7f --- /dev/null +++ b/src/SHOU.Launcher.Core/Abstractions/WorldDatapackTrashContracts.cs @@ -0,0 +1,15 @@ +namespace SHOU.Launcher.Core.Abstractions; + +/// Reversible, explicit local pack removal. No game process or credential access. +public interface IWorldDatapackTrashService +{ + Task> GetWorldDatapackTrashAsync(string instanceId, string worldDirectoryName, CancellationToken cancellationToken = default); + Task RecycleWorldDatapacksAsync(string instanceId, string worldDirectoryName, string expectedRevision, + IReadOnlyList packs, CancellationToken cancellationToken = default); + Task RestoreWorldDatapacksAsync(string instanceId, string worldDirectoryName, string trashId, CancellationToken cancellationToken = default); +} + +public sealed record WorldDatapackTrashEntry(string Id, IReadOnlyList Names, DateTimeOffset Created, bool CanRestore, string Status) +{ + public string Label => string.Join("、", Names) + " · " + Created.ToLocalTime().ToString("g"); +} diff --git a/src/SHOU.Launcher.Core/Authentication/AccountAppearanceClient.Mutation.cs b/src/SHOU.Launcher.Core/Authentication/AccountAppearanceClient.Mutation.cs new file mode 100644 index 00000000..ad773431 --- /dev/null +++ b/src/SHOU.Launcher.Core/Authentication/AccountAppearanceClient.Mutation.cs @@ -0,0 +1,67 @@ +using System.Net.Http.Headers; +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Authentication; + +public sealed partial class AccountAppearanceClient +{ + public async Task ChangeMicrosoftAsync(AccountProfile account, string accessToken, AccountAppearanceChange change, + Func beforeWrite, CancellationToken ct = default) + { + if (account.Kind != AccountKind.Microsoft || string.IsNullOrWhiteSpace(accessToken)) throw new InvalidOperationException("请先登录此 Microsoft 角色。"); + if (!Enum.IsDefined(change.Action) || !Enum.IsDefined(change.Model)) throw new InvalidDataException("外观操作或模型无效。"); + if (change.Png.Length > AccountAppearancePng.MaximumPngBytes) throw new InvalidDataException("皮肤 PNG 超过 2 MiB 上限。"); + AccountTextureImage? input = null; string? capeId = null; + if (change.Action == AccountAppearanceAction.UploadSkin) + { + input = AccountAppearancePng.Decode(change.Png.ToArray()); + if (input.Height == 32 && change.Model == AccountSkinModel.Slim) throw new InvalidDataException("64×32 旧版皮肤仅支持经典模型。"); + if (change.CapeId is not null) throw new InvalidDataException("上传皮肤不能同时修改披风。"); + } + else + { + if (!change.Png.IsEmpty) throw new InvalidDataException("披风操作不能携带皮肤文件。"); + if (change.Action == AccountAppearanceAction.WearCape) capeId = Guid.TryParse(change.CapeId, out var guid) ? guid.ToString() : throw new InvalidDataException("请选择拥有的披风。"); + else if (change.CapeId is not null) throw new InvalidDataException("卸下披风不需要披风标识。"); + } + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(60)); var token = timeout.Token; + AccountAppearance current; + try { current = await ReadMicrosoftAsync(account, accessToken, token).ConfigureAwait(false); } + catch (Exception ex) when (ex is HttpRequestException or IOException) { throw new IOException("无法读取官方外观,请刷新登录或稍后重试。"); } + bool SameSkin(AccountAppearance a) => input is not null && a.Model == change.Model && a.Skin is { } skin && skin.Width == input.Width && skin.Height == input.Height && skin.Rgba.Span.SequenceEqual(input.Rgba.Span); + bool SameCape(AccountCapeAppearance cape) => Guid.TryParse(cape.Id, out var id) && id.ToString() == capeId; + if (change.Action == AccountAppearanceAction.WearCape && !current.Capes.Any(SameCape)) throw new InvalidDataException("此角色不拥有所选披风,未发送修改请求。"); + if (change.Action == AccountAppearanceAction.UploadSkin && SameSkin(current) || change.Action == AccountAppearanceAction.WearCape && current.Capes.Any(c => SameCape(c) && c.IsActive) || change.Action == AccountAppearanceAction.HideCape && !current.Capes.Any(c => c.IsActive)) + return new(AccountAppearanceWriteState.Verified, current, "当前已是所选外观。" ); + await beforeWrite(current, token).ConfigureAwait(false); token.ThrowIfCancellationRequested(); + using var request = new HttpRequestMessage(change.Action switch { AccountAppearanceAction.UploadSkin => HttpMethod.Post, AccountAppearanceAction.WearCape => HttpMethod.Put, _ => HttpMethod.Delete }, + "https://api.minecraftservices.com/minecraft/profile/" + (change.Action == AccountAppearanceAction.UploadSkin ? "skins" : "capes/active")); + request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", accessToken); request.Headers.Accept.ParseAdd("application/json"); + if (input is not null) + { + var form = new MultipartFormDataContent(); form.Add(new StringContent(change.Model == AccountSkinModel.Slim ? "slim" : "classic"), "variant"); + var file = new ByteArrayContent(input.Png.ToArray()); file.Headers.ContentType = new("image/png"); form.Add(file, "file", "skin.png"); request.Content = form; + } + else if (capeId is not null) request.Content = new StringContent(JsonSerializer.Serialize(new { capeId }), Encoding.UTF8, "application/json"); + try + { + using var response = await http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, token).ConfigureAwait(false); + if (response.RequestMessage?.RequestUri is { } final && final != request.RequestUri || (int)response.StatusCode is >= 300 and < 400) + return new(AccountAppearanceWriteState.OutcomeUnknown, null, "外观服务发生重定向,已停止后续请求。请刷新外观核对结果。"); + if ((int)response.StatusCode >= 500) return new(AccountAppearanceWriteState.OutcomeUnknown, null, $"外观服务暂不可用(HTTP {(int)response.StatusCode}),修改结果未确认。请刷新外观核对。"); + if (!response.IsSuccessStatusCode) return new(AccountAppearanceWriteState.Rejected, null, $"外观修改未被接受(HTTP {(int)response.StatusCode})。请刷新登录或稍后重试。"); + } + catch (Exception ex) when (ex is HttpRequestException or IOException or OperationCanceledException) + { return new(AccountAppearanceWriteState.OutcomeUnknown, null, "修改请求已发出,结果未能确认。请刷新外观后再操作。"); } + try + { + var updated = await ReadMicrosoftAsync(account, accessToken, token).ConfigureAwait(false); + var verified = change.Action switch { AccountAppearanceAction.UploadSkin => SameSkin(updated), AccountAppearanceAction.WearCape => updated.Capes.Any(c => SameCape(c) && c.IsActive), _ => !updated.Capes.Any(c => c.IsActive) }; + return verified ? new(AccountAppearanceWriteState.Verified, updated, "在线外观已更新。") : new(AccountAppearanceWriteState.AcceptedNeedsRefresh, null, "服务已接收修改,尚未读到新外观。请稍后刷新。"); + } + catch (Exception ex) when (ex is IOException or HttpRequestException or OperationCanceledException or JsonException or InvalidOperationException) + { return new(AccountAppearanceWriteState.AcceptedNeedsRefresh, null, "服务已接收修改,刷新暂未完成。请稍后刷新外观。"); } + } +} diff --git a/src/SHOU.Launcher.Core/Authentication/AccountAppearanceClient.cs b/src/SHOU.Launcher.Core/Authentication/AccountAppearanceClient.cs new file mode 100644 index 00000000..1293be3f --- /dev/null +++ b/src/SHOU.Launcher.Core/Authentication/AccountAppearanceClient.cs @@ -0,0 +1,172 @@ +using System.Net; +using System.Net.Http.Headers; +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Authentication; + +/// Only profile GETs and anonymous texture GETs. The caller supplies a client with redirects disabled. +public sealed partial class AccountAppearanceClient(HttpClient http) +{ + private const int MaximumJsonBytes = 256 * 1024, MaximumTextures = 64, MaximumTotalPngBytes = 8 * 1024 * 1024; + private static readonly UTF8Encoding StrictUtf8 = new(false, true); + public static Uri? ManagementUri(AccountProfile account) => account.Kind switch + { + AccountKind.Microsoft => new("https://www.minecraft.net/en-us/msaprofile/mygames/editskin"), + AccountKind.Yggdrasil when Uri.TryCreate(account.AuthenticationServer, UriKind.Absolute, out var root) && root.Scheme == "https" && root.UserInfo.Length == 0 + => root.Host switch { "littleskin.cn" => new("https://littleskin.cn/"), "skin.mualliance.ltd" => new("https://skin.mualliance.ltd/"), _ => new Uri(root.GetLeftPart(UriPartial.Authority) + "/") }, + _ => null + }; + public static AccountAppearance Unread(AccountProfile account) => new(account.Id, AccountSkinModel.Classic, null, [], false, ManagementUri(account), + "点击“刷新头像”读取此角色的真实皮肤与披风;修改请使用对应官网。"); + public async Task ReadPublicMicrosoftSkinAsync(string playerName, CancellationToken ct = default) + { + if (playerName.Length is < 3 or > 16 || playerName.Any(c => !char.IsAsciiLetterOrDigit(c) && c != '_')) throw new ArgumentException("请输入 3–16 位正版玩家名(英文字母、数字或下划线)。"); + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(45)); ct = timeout.Token; + using var lookup = await JsonAsync(new("https://api.mojang.com/users/profiles/minecraft/" + playerName), null, ct); + if (!Text(lookup.RootElement, "name", 16).Equals(playerName, StringComparison.OrdinalIgnoreCase) || !Guid.TryParseExact(Text(lookup.RootElement, "id", 32), "N", out var id)) throw Invalid("玩家查询返回了不同的角色。"); + using var session = await JsonAsync(new("https://sessionserver.mojang.com/session/minecraft/profile/" + id.ToString("N")), null, ct); + RequireIdentity(session.RootElement, "id", id.ToString("N")); + var textures = Array(session.RootElement, "properties", 64).Where(p => Text(p, "name", 128) == "textures").ToArray(); + if (textures.Length != 1) throw Invalid("此玩家尚未公开皮肤。"); + byte[] bytes; + try { bytes = Convert.FromBase64String(Text(textures[0], "value", MaximumJsonBytes)); } + catch (FormatException) { throw Invalid("角色纹理 Base64 无效。"); } + if (bytes.Length > MaximumJsonBytes) throw Invalid("角色纹理属性超过上限。"); + using var payload = ParseJson(bytes); RequireIdentity(payload.RootElement, "profileId", id.ToString("N")); + if (!payload.RootElement.TryGetProperty("textures", out var map) || !map.TryGetProperty("SKIN", out var skin)) throw Invalid("此玩家尚未公开皮肤。"); + return await TextureAsync(OfficialTexture(Text(skin, "url", 2048)), false, new TextureBudget(), ct); + } + public async Task ReadMicrosoftAsync(AccountProfile account, string accessToken, CancellationToken ct = default) + { + if (account.Kind != AccountKind.Microsoft || string.IsNullOrWhiteSpace(accessToken)) throw new InvalidOperationException("请先登录此 Microsoft 角色。"); + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(60)); ct = timeout.Token; + using var json = await JsonAsync(new("https://api.minecraftservices.com/minecraft/profile"), accessToken, ct); + var profile = json.RootElement; RequireIdentity(profile, "id", account.PlayerUuid); + var skins = Array(profile, "skins", 16); var capes = Array(profile, "capes", MaximumTextures); + var activeSkin = skins.Where(s => Text(s, "state", 32) == "ACTIVE").ToArray(); + if (activeSkin.Length > 1) throw Invalid("角色返回多个启用的皮肤。"); + var model = activeSkin.Length == 0 ? AccountSkinModel.Classic : Model(Text(activeSkin[0], "variant", 32)); + var budget = new TextureBudget(); AccountTextureImage? skin = null; + if (activeSkin.Length != 0) skin = await TextureAsync(OfficialTexture(Text(activeSkin[0], "url", 2048)), false, budget, ct); + var result = new List(); var ids = new HashSet(StringComparer.Ordinal); + foreach (var cape in capes) + { + var id = Text(cape, "id", 128); if (!Guid.TryParse(id, out _) || !ids.Add(id)) throw Invalid("披风标识无效或重复。"); + var texture = await TextureAsync(OfficialTexture(Text(cape, "url", 2048)), true, budget, ct); + result.Add(new(id, Text(cape, "alias", 128, false) is { Length: > 0 } name ? name : "披风 " + id[..8], Text(cape, "state", 32) == "ACTIVE", texture)); + } + if (result.Count(c => c.IsActive) > 1) throw Invalid("角色返回多个启用的披风。"); + return new(account.Id, model, skin, result, false, ManagementUri(account), "Minecraft 官方角色,可上传皮肤或穿戴已有披风。", true); + } + public async Task ReadYggdrasilAsync(AccountProfile account, CancellationToken ct = default) + { + if (account.Kind != AccountKind.Yggdrasil || account.AuthenticationServer is null) throw new InvalidOperationException("此角色没有对应认证服务。"); + var root = new Uri(AuthenticationClient.NormalizeYggdrasilRoot(new Uri(account.AuthenticationServer)) + "/"); + if (root.Scheme != "https") throw Invalid("外观读取只允许 HTTPS 认证服务。"); + if (!Guid.TryParse(account.PlayerUuid, out var uuid)) throw Invalid("角色 UUID 无效。"); + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(60)); ct = timeout.Token; + // These public endpoints do not receive any access/client/refresh token. + using var metadata = await JsonAsync(root, null, ct); + var domains = Array(metadata.RootElement, "skinDomains", 128).Select(e => e.ValueKind == JsonValueKind.String && e.GetString() is { Length: > 0 and <= 253 } domain + ? ValidateDomain(domain) : throw Invalid("纹理域名列表无效。")).ToArray(); + using var profileDocument = await JsonAsync(new(root, "sessionserver/session/minecraft/profile/" + uuid.ToString("N") + "?unsigned=true"), null, ct); + var profile = profileDocument.RootElement; RequireIdentity(profile, "id", account.PlayerUuid); + var properties = Array(profile, "properties", 64); var textures = properties.Where(p => Text(p, "name", 128) == "textures").ToArray(); + if (textures.Length == 0) return Unread(account) with { Capability = "此认证服务未返回当前角色的纹理。", IsRemote = true }; + if (textures.Length != 1) throw Invalid("角色返回重复纹理属性。"); + var encoded = Text(textures[0], "value", MaximumJsonBytes); byte[] decoded; + try { decoded = Convert.FromBase64String(encoded); } + catch (FormatException) { throw Invalid("角色纹理 Base64 无效。"); } + if (decoded.Length > MaximumJsonBytes) throw Invalid("角色纹理属性超过上限。"); + using var payload = ParseJson(decoded); var body = payload.RootElement; RequireIdentity(body, "profileId", account.PlayerUuid); + var map = body.GetProperty("textures"); if (map.ValueKind != JsonValueKind.Object) throw Invalid("角色纹理映射无效。"); + var budget = new TextureBudget(); AccountTextureImage? skin = null; var model = AccountSkinModel.Classic; var capes = new List(); + if (map.TryGetProperty("SKIN", out var skinValue)) + { + if (skinValue.TryGetProperty("metadata", out var skinMetadata) && skinMetadata.TryGetProperty("model", out _)) model = Model(Text(skinMetadata, "model", 32)); + skin = await TextureAsync(YggTexture(Text(skinValue, "url", 2048), domains), false, budget, ct); + } + if (map.TryGetProperty("CAPE", out var capeValue)) + { + var uri = YggTexture(Text(capeValue, "url", 2048), domains); var texture = await TextureAsync(uri, true, budget, ct); + capes.Add(new(Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(uri.AbsoluteUri))).ToLowerInvariant(), "当前披风", true, texture)); + } + return new(account.Id, model, skin, capes, false, ManagementUri(account), "已读取此认证服务的公开纹理;可见披风仅为当前披风,修改请前往官网。", true); + } + private async Task JsonAsync(Uri uri, string? bearer, CancellationToken ct) + { + using var request = new HttpRequestMessage(HttpMethod.Get, uri); + if (bearer is not null) + { + if (uri != new Uri("https://api.minecraftservices.com/minecraft/profile")) throw Invalid("拒绝向未知端点发送账户凭据。"); + request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", bearer); + } + request.Headers.Accept.ParseAdd("application/json"); + return ParseJson(await SendBoundedAsync(request, MaximumJsonBytes, ct)); + } + private static JsonDocument ParseJson(byte[] bytes) + { + try { _ = StrictUtf8.GetCharCount(bytes); return JsonDocument.Parse(bytes, new JsonDocumentOptions { MaxDepth = 16 }); } + catch (Exception ex) when (ex is DecoderFallbackException or JsonException) { throw Invalid("外观服务返回无效的 UTF-8 JSON。"); } + } + private async Task TextureAsync(Uri uri, bool cape, TextureBudget budget, CancellationToken ct) + { + using var request = new HttpRequestMessage(HttpMethod.Get, uri); request.Headers.Accept.ParseAdd("image/png"); + var bytes = await SendBoundedAsync(request, Math.Min(AccountAppearancePng.MaximumPngBytes, MaximumTotalPngBytes - budget.Bytes), ct); + var image = AccountAppearancePng.Decode(bytes, cape); budget.Bytes += bytes.Length; budget.Pixels += image.Width * image.Height; + if (budget.Pixels > 4 * 1024 * 1024) throw Invalid("外观图像总像素超过预算。"); + return image; + } + private async Task SendBoundedAsync(HttpRequestMessage request, int maximum, CancellationToken ct) + { + if (maximum <= 0) throw Invalid("外观下载超过总预算。"); + using var response = await http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, ct).ConfigureAwait(false); + if (response.StatusCode is >= HttpStatusCode.MultipleChoices and < HttpStatusCode.BadRequest || response.RequestMessage?.RequestUri is { } final && final != request.RequestUri) throw Invalid("外观服务重定向已拒绝。"); + if (response.StatusCode == HttpStatusCode.Unauthorized && request.RequestUri is { Scheme: "https", Host: "api.minecraftservices.com", AbsolutePath: "/minecraft/profile" } + && request.Headers.Authorization?.Scheme == "Bearer") + throw new AuthenticationException("appearance_unauthorized", "Microsoft 登录凭据需要刷新;原账户记录保留。"); + if (!response.IsSuccessStatusCode) throw Invalid($"读取外观失败(HTTP {(int)response.StatusCode})。请刷新登录或稍后重试。"); + if (response.Content.Headers.ContentLength is { } length && length > maximum) throw Invalid("外观响应超过大小上限。"); + await using var stream = await response.Content.ReadAsStreamAsync(ct).ConfigureAwait(false); using var output = new MemoryStream(); var buffer = new byte[16384]; + while (true) { var read = await stream.ReadAsync(buffer.AsMemory(0, Math.Min(buffer.Length, maximum + 1 - (int)output.Length)), ct).ConfigureAwait(false); if (read == 0) break; if (output.Length + read > maximum) throw Invalid("外观响应超过大小上限。"); output.Write(buffer, 0, read); } + return output.ToArray(); + } + private static Uri OfficialTexture(string value) + { + var uri = UriValue(value); if (uri.Host != "textures.minecraft.net" || !uri.IsDefaultPort || !uri.AbsolutePath.StartsWith("/texture/", StringComparison.Ordinal) || uri.Query.Length != 0) throw Invalid("官方纹理地址不在允许范围。"); + return new UriBuilder(uri) { Scheme = "https", Port = -1 }.Uri; + } + private static Uri YggTexture(string value, string[] domains) + { + var uri = UriValue(value); var host = uri.IdnHost; + if (!uri.IsDefaultPort || !(host.EndsWith(".minecraft.net", StringComparison.OrdinalIgnoreCase) || host.EndsWith(".mojang.com", StringComparison.OrdinalIgnoreCase) || domains.Any(d => d[0] == '.' ? host.EndsWith(d, StringComparison.OrdinalIgnoreCase) : host.Equals(d, StringComparison.OrdinalIgnoreCase)))) throw Invalid("纹理来源不在此认证服务的域名列表中。"); + return uri.Scheme == "http" && host == "textures.minecraft.net" ? new UriBuilder(uri) { Scheme = "https", Port = -1 }.Uri : uri.Scheme == "https" ? uri : throw Invalid("纹理来源须使用 HTTPS。"); + } + private static Uri UriValue(string value) + { + if (!Uri.TryCreate(value, UriKind.Absolute, out var uri) || uri.Scheme is not ("https" or "http") || uri.UserInfo.Length != 0 || uri.Fragment.Length != 0 || uri.HostNameType != UriHostNameType.Dns || uri.IsLoopback) throw Invalid("纹理地址无效。"); + return uri; + } + private static string ValidateDomain(string domain) + { var value = domain.StartsWith('.') ? domain[1..] : domain; if (value.Length == 0 || Uri.CheckHostName(value) != UriHostNameType.Dns || value.Contains('*')) throw Invalid("纹理域名规则无效。"); return domain; } + private static AccountSkinModel Model(string value) => value.ToLowerInvariant() switch { "slim" => AccountSkinModel.Slim, "classic" or "default" or "" => AccountSkinModel.Classic, _ => throw Invalid("不支持此皮肤模型。") }; + private static void RequireIdentity(JsonElement value, string property, string uuid) + { if (!Guid.TryParse(Text(value, property, 64), out var actual) || !Guid.TryParse(uuid, out var expected) || actual != expected) throw Invalid("外观服务返回了不同角色,当前外观已保留。"); } + private static JsonElement[] Array(JsonElement value, string key, int maximum) + { + if (!value.TryGetProperty(key, out var array)) return []; + if (array.ValueKind != JsonValueKind.Array || array.GetArrayLength() > maximum) throw Invalid("外观列表类型或数量无效。"); + return array.EnumerateArray().ToArray(); + } + private static string Text(JsonElement value, string property, int maximum, bool required = true) + { + if (value.ValueKind == JsonValueKind.Object && value.TryGetProperty(property, out var text) && text.ValueKind == JsonValueKind.String && text.GetString() is { } result && result.Length <= maximum && !result.Any(c => char.IsControl(c))) return result; + if (!required && !value.TryGetProperty(property, out _)) return ""; + throw Invalid("外观响应字段无效:" + property); + } + private static InvalidDataException Invalid(string message) => new(message); + private sealed class TextureBudget { public int Bytes; public int Pixels; } +} diff --git a/src/SHOU.Launcher.Core/Authentication/AccountAppearancePng.cs b/src/SHOU.Launcher.Core/Authentication/AccountAppearancePng.cs new file mode 100644 index 00000000..fc9713bd --- /dev/null +++ b/src/SHOU.Launcher.Core/Authentication/AccountAppearancePng.cs @@ -0,0 +1,136 @@ +using System.Buffers.Binary; +using System.IO.Compression; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Authentication; + +/// PNG 3 critical chunks, CRCs, filters, all standard sample depths and Adam7, with fixed texture budgets. +/// Ancillary metadata is never inflated or handed to a native decoder. Animated PNG is rejected. +public static class AccountAppearancePng +{ + public const int MaximumPngBytes = 2 * 1024 * 1024; + private static ReadOnlySpan Signature => [137, 80, 78, 71, 13, 10, 26, 10]; + public static AccountTextureImage Decode(ReadOnlyMemory input, bool cape = false) => DecodeCore(input, cape, false); + public static AccountTextureImage DecodeIcon(ReadOnlyMemory input) => DecodeCore(input, false, true); + private static AccountTextureImage DecodeCore(ReadOnlyMemory input, bool cape, bool icon) + { + if (input.Length is < 45 or > MaximumPngBytes || !input.Span.StartsWith(Signature)) throw Invalid("请选择有效的 PNG 纹理(最大 2 MiB)。"); + var png = input.ToArray(); var span = png.AsSpan(); var offset = 8; var chunks = 0; + var width = 0; var height = 0; var depth = 0; var type = 0; var interlace = 0; + byte[]? palette = null, transparency = null; var sawData = false; var endedData = false; var ended = false; + using var data = new MemoryStream(); + while (offset < span.Length) + { + if (++chunks > 4096 || span.Length - offset < 12) throw Invalid("PNG 块数量或长度无效。"); + var length = BinaryPrimitives.ReadUInt32BigEndian(span[offset..]); + if (length > MaximumPngBytes || length > span.Length - offset - 12) throw Invalid("PNG 块超过边界。"); + var size = (int)length; var tag = span.Slice(offset + 4, 4); var body = span.Slice(offset + 8, size); + if (!tag.ToArray().All(b => b is >= 65 and <= 90 or >= 97 and <= 122) || (tag[2] & 32) != 0) throw Invalid("PNG 块类型无效。"); + if (Crc(span.Slice(offset + 4, size + 4)) != BinaryPrimitives.ReadUInt32BigEndian(span.Slice(offset + 8 + size, 4))) throw Invalid("PNG 校验失败,原文件未修改。"); + if (chunks == 1 && !tag.SequenceEqual("IHDR"u8)) throw Invalid("PNG 缺少首部。"); + if (sawData && !tag.SequenceEqual("IDAT"u8)) endedData = true; + if (tag.SequenceEqual("IHDR"u8)) + { + if (chunks != 1 || size != 13) throw Invalid("PNG 首部无效。"); + var w = BinaryPrimitives.ReadUInt32BigEndian(body); var h = BinaryPrimitives.ReadUInt32BigEndian(body[4..]); + if (icon ? w is < 1 or > 2048 || h is < 1 or > 2048 : cape ? w is < 64 or > 1024 || (w & (w - 1)) != 0 || h != w / 2 : w != 64 || h is not (32 or 64)) + throw Invalid(cape ? "披风须为 64×32 至 1024×512 的二倍宽 PNG。" : "Java 皮肤须为 64×64 或 64×32 PNG。"); + width = (int)w; height = (int)h; depth = body[8]; type = body[9]; interlace = body[12]; + if (body[10] != 0 || body[11] != 0 || interlace > 1 || !ValidDepth(type, depth)) throw Invalid("PNG 颜色、压缩或交错格式无效。"); + } + else if (tag.SequenceEqual("PLTE"u8)) + { + if (palette is not null || sawData || size is < 3 or > 768 || size % 3 != 0 || type is 0 or 4 || type == 3 && size / 3 > 1 << depth) throw Invalid("PNG 调色板无效。"); + palette = body.ToArray(); + } + else if (tag.SequenceEqual("tRNS"u8)) + { + if (transparency is not null || sawData || (type switch { 0 => size != 2, 2 => size != 6, 3 => palette is null || size == 0 || size > palette.Length / 3, _ => true })) throw Invalid("PNG 透明度块无效。"); + transparency = body.ToArray(); + } + else if (tag.SequenceEqual("IDAT"u8)) + { + if (endedData || type == 3 && palette is null) throw Invalid("PNG 图像块顺序无效。"); + sawData = true; data.Write(body); + } + else if (tag.SequenceEqual("IEND"u8)) + { + if (size != 0 || !sawData || offset + 12 != span.Length) throw Invalid("PNG 结束块无效。"); + ended = true; break; + } + // Icons use the PNG default image of an APNG. Animation payloads are CRC checked but never inflated. + // Skin/cape validation remains static-only. A partial first frame cannot stand in for the canvas. + else if (icon && tag.SequenceEqual("acTL"u8)) + { if (sawData || size != 8 || BinaryPrimitives.ReadUInt32BigEndian(body) is 0 or > 4096) throw Invalid("PNG 动画声明无效。"); } + else if (icon && tag.SequenceEqual("fcTL"u8)) + { if (size != 26 || !sawData && (BinaryPrimitives.ReadUInt32BigEndian(body[4..]) != width || BinaryPrimitives.ReadUInt32BigEndian(body[8..]) != height || BinaryPrimitives.ReadUInt32BigEndian(body[12..]) != 0 || BinaryPrimitives.ReadUInt32BigEndian(body[16..]) != 0)) throw Invalid("PNG 默认图像不是完整画布。"); } + else if (icon && tag.SequenceEqual("fdAT"u8)) + { if (!sawData || size < 4) throw Invalid("PNG 动画数据顺序无效。"); } + else if ((tag[0] & 32) == 0 || tag.SequenceEqual("acTL"u8) || tag.SequenceEqual("fcTL"u8) || tag.SequenceEqual("fdAT"u8)) throw Invalid("不支持此 PNG 扩展或动画纹理。"); + offset += size + 12; + } + if (!ended || data.Length < 6) throw Invalid("PNG 图像不完整。"); + var channels = type switch { 0 or 3 => 1, 2 => 3, 4 => 2, 6 => 4, _ => throw Invalid("PNG 颜色无效。") }; + var bits = channels * depth; var bpp = Math.Max(1, (bits + 7) / 8); var passes = interlace == 0 ? new[] { (0, 0, 1, 1) } : new[] { (0, 0, 8, 8), (4, 0, 8, 8), (0, 4, 4, 8), (2, 0, 4, 4), (0, 2, 2, 4), (1, 0, 2, 2), (0, 1, 1, 2) }; + var expected = 0; + foreach (var (x, y, dx, dy) in passes) + { var pw = Count(width, x, dx); var ph = Count(height, y, dy); if (pw > 0 && ph > 0) expected = checked(expected + ph * (1 + (pw * bits + 7) / 8)); } + var packed = new byte[expected]; data.Position = 0; + try + { + using var zlib = new ZLibStream(data, CompressionMode.Decompress, true); + zlib.ReadExactly(packed); + if (zlib.ReadByte() != -1) throw Invalid("PNG 解压数据超过像素预算。"); + } + catch (EndOfStreamException) { throw Invalid("PNG 解压数据不完整。"); } + var rgba = new byte[checked(width * height * 4)]; var cursor = 0; + foreach (var (x, y, dx, dy) in passes) + { + var pw = Count(width, x, dx); var ph = Count(height, y, dy); if (pw == 0 || ph == 0) continue; + var stride = (pw * bits + 7) / 8; var previous = new byte[stride]; var row = new byte[stride]; + for (var py = 0; py < ph; py++) + { + var filter = packed[cursor++]; if (filter > 4) throw Invalid("PNG 行过滤器无效。"); + for (var i = 0; i < stride; i++) + { + var a = i >= bpp ? row[i - bpp] : 0; var b = previous[i]; var c = i >= bpp ? previous[i - bpp] : 0; + row[i] = unchecked((byte)(packed[cursor++] + (filter switch { 0 => 0, 1 => a, 2 => b, 3 => (a + b) / 2, _ => Paeth(a, b, c) }))); + } + for (var px = 0; px < pw; px++) Pixel(row, px, depth, type, palette, transparency, rgba.AsSpan(((y + py * dy) * width + x + px * dx) * 4, 4)); + (row, previous) = (previous, row); + } + } + return new(png, width, height, rgba); + } + private static int Count(int size, int start, int step) => size <= start ? 0 : (size - start + step - 1) / step; + private static bool ValidDepth(int type, int depth) => type switch { 0 => depth is 1 or 2 or 4 or 8 or 16, 2 or 4 or 6 => depth is 8 or 16, 3 => depth is 1 or 2 or 4 or 8, _ => false }; + private static int Sample(byte[] row, int index, int depth) => depth == 16 ? BinaryPrimitives.ReadUInt16BigEndian(row.AsSpan(index * 2, 2)) : depth == 8 ? row[index] : row[index * depth / 8] >> (8 - depth - index * depth % 8) & ((1 << depth) - 1); + private static byte Scale(int value, int depth) => (byte)(depth == 16 ? value >> 8 : value * 255 / ((1 << depth) - 1)); + private static void Pixel(byte[] row, int x, int depth, int type, byte[]? palette, byte[]? trns, Span target) + { + target[3] = 255; + if (type == 3) + { + var index = Sample(row, x, depth); if (palette is null || index >= palette.Length / 3) throw Invalid("PNG 调色板索引越界。"); + palette.AsSpan(index * 3, 3).CopyTo(target); if (trns is not null && index < trns.Length) target[3] = trns[index]; return; + } + var channels = type switch { 0 => 1, 2 => 3, 4 => 2, _ => 4 }; var offset = x * channels; + var r = Sample(row, offset, depth); target[0] = Scale(r, depth); + if (type is 0 or 4) + { + target[1] = target[2] = target[0]; + if (type == 4) target[3] = Scale(Sample(row, offset + 1, depth), depth); + else if (trns is not null && r == BinaryPrimitives.ReadUInt16BigEndian(trns)) target[3] = 0; + } + else + { + var g = Sample(row, offset + 1, depth); var b = Sample(row, offset + 2, depth); target[1] = Scale(g, depth); target[2] = Scale(b, depth); + if (type == 6) target[3] = Scale(Sample(row, offset + 3, depth), depth); + else if (trns is not null && r == BinaryPrimitives.ReadUInt16BigEndian(trns) && g == BinaryPrimitives.ReadUInt16BigEndian(trns.AsSpan(2)) && b == BinaryPrimitives.ReadUInt16BigEndian(trns.AsSpan(4))) target[3] = 0; + } + } + private static int Paeth(int a, int b, int c) { var p = a + b - c; var pa = Math.Abs(p - a); var pb = Math.Abs(p - b); var pc = Math.Abs(p - c); return pa <= pb && pa <= pc ? a : pb <= pc ? b : c; } + private static uint Crc(ReadOnlySpan bytes) + { var crc = uint.MaxValue; foreach (var value in bytes) { crc ^= value; for (var i = 0; i < 8; i++) crc = (crc & 1) == 0 ? crc >> 1 : crc >> 1 ^ 0xedb88320u; } return ~crc; } + private static InvalidDataException Invalid(string message) => new(message); +} diff --git a/src/SHOU.Launcher.Core/Authentication/AccountAppearanceStore.Backup.cs b/src/SHOU.Launcher.Core/Authentication/AccountAppearanceStore.Backup.cs new file mode 100644 index 00000000..5ea66cc4 --- /dev/null +++ b/src/SHOU.Launcher.Core/Authentication/AccountAppearanceStore.Backup.cs @@ -0,0 +1,53 @@ +using System.Security.Cryptography; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Authentication; + +public sealed partial class AccountAppearanceStore +{ + // Private local rollback material only: public identity, model, owned cape IDs and the previous skin. + // Never persist the authenticated response or credential/session objects. + public async Task BackupOnlineAsync(AccountProfile account, AccountAppearance appearance, CancellationToken ct = default) + { + if (account.Kind != AccountKind.Microsoft || appearance.AccountId != account.Id) throw new InvalidDataException("外观备份的角色不匹配。"); + var prefix = Path.GetFileNameWithoutExtension(PathFor(account.Id)) + "-online-"; + var directory = Path.Combine(root, "account-appearance"); + var parentBefore = Capture(directory, true); + if (!parentBefore.Exists) { parentBefore.Verify(); Directory.CreateDirectory(directory); parentBefore.VerifyExistingNodes(); } + var parent = Capture(directory); + if (Directory.EnumerateFiles(directory, prefix + "*.json").Take(64).Count() >= 64) throw new IOException("此外观已有 64 份备份,请先整理外观备份目录。"); + var bytes = JsonSerializer.SerializeToUtf8Bytes(new { Schema = 1, account.Id, account.PlayerUuid, CreatedAt = DateTimeOffset.UtcNow, + appearance.Model, ActiveCapeId = appearance.Capes.FirstOrDefault(c => c.IsActive)?.Id, + OwnedCapeIds = appearance.Capes.Select(c => c.Id).ToArray(), Png = appearance.Skin?.Png.ToArray(), + Sha256 = appearance.Skin is { } skin ? Convert.ToHexString(SHA256.HashData(skin.Png.Span)) : null }); + var target = SafePath.Within(directory, prefix + Guid.NewGuid().ToString("N") + ".json"); + var stage = target + ".tmp"; WorldFileIdentity? allocated = null; + try + { + parent.Verify(); var options = new FileStreamOptions { Mode = FileMode.CreateNew, Access = FileAccess.ReadWrite, Share = FileShare.Read, Options = FileOptions.Asynchronous | FileOptions.WriteThrough }; + if (!OperatingSystem.IsWindows()) options.UnixCreateMode = UnixFileMode.UserRead | UnixFileMode.UserWrite; + await using (var stream = new FileStream(stage, options)) + { + allocated = WorldFileIdentity.FromHandle(stream.SafeFileHandle); parent.Verify(); + if (!Capture(stage).Final.SameNode(allocated.Value)) throw new IOException("外观备份暂存路径已改变。"); + await stream.WriteAsync(bytes, ct); await stream.FlushAsync(ct); stream.Flush(true); + allocated = WorldFileIdentity.FromHandle(stream.SafeFileHandle); + } + ct.ThrowIfCancellationRequested(); parent.Verify(); + if (Capture(stage).Final != allocated) throw new IOException("外观备份暂存文件已改变。"); + File.Move(stage, target); parent.Verify(); + var saved = await ReadOptionalAsync(target, MaximumRecordBytes + 16384, CancellationToken.None); + if (saved is null || !saved.AsSpan().SequenceEqual(bytes)) throw new IOException("外观备份核验失败,未发送在线修改。"); + return target; + } + finally + { + if (allocated is { } created) + try { parent.Verify(); var remaining = Capture(stage, true); if (remaining.Exists && remaining.Final.SameNode(created)) File.Delete(stage); } + catch (IOException) { /* Keep replaced paths intact. */ } + } + } +} diff --git a/src/SHOU.Launcher.Core/Authentication/AccountAppearanceStore.cs b/src/SHOU.Launcher.Core/Authentication/AccountAppearanceStore.cs new file mode 100644 index 00000000..98a8a2ea --- /dev/null +++ b/src/SHOU.Launcher.Core/Authentication/AccountAppearanceStore.cs @@ -0,0 +1,108 @@ +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Authentication; + +/// One atomic, account-bound local appearance record. Reuses the world store's tested path/handle identities. +public sealed partial class AccountAppearanceStore +{ + private const int MaximumRecordBytes = AccountAppearancePng.MaximumPngBytes * 4 / 3 + 8192; + private readonly string root; + private readonly WorldFileIdentity identity; + public AccountAppearanceStore(string localDataDirectory) + { + root = Path.TrimEndingDirectorySeparator(Path.GetFullPath(localDataDirectory)); + var guard = WorldPathSnapshot.Capture(root, root); identity = guard.Final; + if (!identity.Directory) throw new IOException("外观数据根目录无效。"); + } + public async Task LoadOfflineAsync(AccountProfile account, CancellationToken ct = default) + { + RequireOffline(account); var path = PathFor(account.Id); var bytes = await ReadOptionalAsync(path, MaximumRecordBytes, ct); + if (bytes is null) return EmptyOffline(account.Id); + LocalRecord record; + try { record = JsonSerializer.Deserialize(bytes, new JsonSerializerOptions { MaxDepth = 8 }) ?? throw new JsonException(); } + catch (JsonException) { throw new InvalidDataException("本地皮肤记录损坏,原文件已保留。"); } + if (record.Schema != 1 || record.AccountId != account.Id || !Enum.IsDefined(record.Model) || record.Png is null) throw new InvalidDataException("本地皮肤记录的账户或格式不匹配。"); + return EmptyOffline(account.Id) with { Model = record.Model, Skin = AccountAppearancePng.Decode(record.Png) }; + } + public async Task SaveOfflineAsync(AccountProfile account, ReadOnlyMemory png, AccountSkinModel model, CancellationToken ct = default) + { + RequireOffline(account); if (!Enum.IsDefined(model)) throw new ArgumentOutOfRangeException(nameof(model)); + var image = AccountAppearancePng.Decode(png); var path = PathFor(account.Id); var directory = Path.GetDirectoryName(path)!; + var rootGuard = Capture(root); var directoryBefore = Capture(directory, true); + if (!directoryBefore.Exists) { directoryBefore.Verify(); Directory.CreateDirectory(directory); directoryBefore.VerifyExistingNodes(); } + var parent = Capture(directory); var before = Capture(path, true); + if (before.Exists && (before.Final.Directory || (File.GetAttributes(path) & FileAttributes.ReadOnly) != 0)) throw new IOException("本地皮肤记录为只读或非普通文件。"); + var original = await ReadOptionalAsync(path, MaximumRecordBytes, ct); + var bytes = JsonSerializer.SerializeToUtf8Bytes(new LocalRecord(1, account.Id, model, image.Png.ToArray())); + var stage = SafePath.Within(directory, ".skin-" + Guid.NewGuid().ToString("N") + ".tmp"); WorldFileIdentity? allocated = null; + try + { + var options = new FileStreamOptions { Mode = FileMode.CreateNew, Access = FileAccess.ReadWrite, Share = FileShare.Read, Options = FileOptions.Asynchronous | FileOptions.WriteThrough }; + if (!OperatingSystem.IsWindows()) options.UnixCreateMode = UnixFileMode.UserRead | UnixFileMode.UserWrite; + parent.Verify(); rootGuard.Verify(); + await using (var stream = new FileStream(stage, options)) + { + allocated = WorldFileIdentity.FromHandle(stream.SafeFileHandle); parent.Verify(); + if (!Capture(stage).Final.SameNode(allocated.Value)) throw new IOException("皮肤暂存路径已改变。"); + await stream.WriteAsync(bytes, ct); await stream.FlushAsync(ct); stream.Flush(true); + var completed = WorldFileIdentity.FromHandle(stream.SafeFileHandle); + if (!completed.SameNode(allocated.Value) || Capture(stage).Final != completed) throw new IOException("皮肤暂存文件已改变。"); + allocated = completed; + } + ct.ThrowIfCancellationRequested(); before.Verify(); parent.Verify(); rootGuard.Verify(); + var current = await ReadOptionalAsync(path, MaximumRecordBytes, ct); + if (!(current is null && original is null) && (current is null || original is null || !current.AsSpan().SequenceEqual(original))) throw new IOException("本地皮肤记录已改变,请刷新后重试。"); + if (Capture(stage).Final != allocated.Value) throw new IOException("皮肤暂存文件身份已改变。"); + File.Move(stage, path, before.Exists); parent.Verify(); rootGuard.Verify(); + if (!Capture(path).Final.SameNode(allocated.Value)) throw new IOException("保存后的皮肤文件身份不匹配。"); + var saved = await ReadOptionalAsync(path, MaximumRecordBytes, ct); + if (saved is null || !saved.AsSpan().SequenceEqual(bytes)) throw new IOException("保存后的皮肤记录校验失败。"); + return EmptyOffline(account.Id) with { Model = model, Skin = image }; + } + finally + { + if (allocated is { } created) + { + try { parent.Verify(); var remaining = Capture(stage, true); if (remaining.Exists && remaining.Final.SameNode(created)) File.Delete(stage); } + catch (IOException) { /* Changed paths remain untouched. */ } + } + } + } + public static async Task ReadPickedSkinAsync(string path, CancellationToken ct = default) + { + path = Path.GetFullPath(path); var parent = Path.GetDirectoryName(path) ?? throw new IOException("请选择本机 PNG 文件。"); + return await ReadGuardedAsync(WorldPathSnapshot.Capture(parent, path), AccountAppearancePng.MaximumPngBytes, ct); + } + public static AccountAppearance EmptyOffline(string accountId) => new(accountId, AccountSkinModel.Classic, null, [], true, null, + "仅保存此离线角色的启动器头像与预览;不会改变原版游戏身份或游戏内皮肤。"); + private static void RequireOffline(AccountProfile account) + { if (account.Kind != AccountKind.Offline) throw new InvalidOperationException("本地皮肤只适用于离线角色;在线角色请前往对应官网修改。"); } + private string PathFor(string id) + { + if (id.Length is < 1 or > 1024) throw new ArgumentException("账户标识无效。"); + return SafePath.Within(root, "account-appearance/" + Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(id))).ToLowerInvariant() + ".json"); + } + private WorldPathSnapshot Capture(string path, bool missing = false) + { + if (!WorldFileIdentity.AtPath(root).SameNode(identity)) throw new IOException("外观数据目录身份已改变。"); + return WorldPathSnapshot.Capture(root, path, missing); + } + private async Task ReadOptionalAsync(string path, int maximum, CancellationToken ct) + { var guard = Capture(path, true); if (!guard.Exists) return null; var result = await ReadGuardedAsync(guard, maximum, ct); Capture(root).Verify(); return result; } + private static async Task ReadGuardedAsync(WorldPathSnapshot guard, int maximum, CancellationToken ct) + { + guard.Verify(); if (guard.Final.Directory || guard.Final.Size > maximum) throw new InvalidDataException("皮肤文件不是普通文件或超过大小上限。"); + await using var stream = new FileStream(guard.Path, FileMode.Open, FileAccess.Read, FileShare.Read, 32768, FileOptions.Asynchronous); + var opened = WorldFileIdentity.FromHandle(stream.SafeFileHandle); guard.Verify(); + if (opened != guard.Final || stream.Length > maximum) throw new IOException("皮肤文件在读取前已改变。"); + var bytes = new byte[checked((int)stream.Length)]; await stream.ReadExactlyAsync(bytes, ct); + if (await stream.ReadAsync(new byte[1], ct) != 0 || opened != WorldFileIdentity.FromHandle(stream.SafeFileHandle)) throw new IOException("皮肤文件在读取期间已改变。"); + guard.Verify(); return bytes; + } + private sealed record LocalRecord(int Schema, string AccountId, AccountSkinModel Model, byte[] Png); +} diff --git a/src/SHOU.Launcher.Core/Authentication/AccountIdentity.cs b/src/SHOU.Launcher.Core/Authentication/AccountIdentity.cs new file mode 100644 index 00000000..058a5b37 --- /dev/null +++ b/src/SHOU.Launcher.Core/Authentication/AccountIdentity.cs @@ -0,0 +1,19 @@ +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Authentication; + +public static class AccountIdentity +{ + public static bool Matches(AccountProfile metadata, AccountProfile protectedIdentity) + { + if (metadata.Id != protectedIdentity.Id || metadata.Kind != protectedIdentity.Kind || !Enum.IsDefined(metadata.Kind) + || !Guid.TryParse(metadata.PlayerUuid, out var actual) || !Guid.TryParse(protectedIdentity.PlayerUuid, out var expected) || actual != expected) return false; + if (metadata.Kind != AccountKind.Yggdrasil) return string.IsNullOrWhiteSpace(metadata.AuthenticationServer) && string.IsNullOrWhiteSpace(protectedIdentity.AuthenticationServer); + try + { + return string.Equals(AuthenticationClient.NormalizeYggdrasilRoot(new Uri(metadata.AuthenticationServer!)), + AuthenticationClient.NormalizeYggdrasilRoot(new Uri(protectedIdentity.AuthenticationServer!)), StringComparison.Ordinal); + } + catch (Exception ex) when (ex is AuthenticationException or UriFormatException or ArgumentNullException) { return false; } + } +} diff --git a/src/SHOU.Launcher.Core/Authentication/AccountSkinExport.cs b/src/SHOU.Launcher.Core/Authentication/AccountSkinExport.cs new file mode 100644 index 00000000..6f3e674e --- /dev/null +++ b/src/SHOU.Launcher.Core/Authentication/AccountSkinExport.cs @@ -0,0 +1,38 @@ +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core.Authentication; + +public static class AccountSkinExport +{ + public static async Task SaveAsync(string path, ReadOnlyMemory png, CancellationToken ct = default) + { + var bytes = AccountAppearancePng.Decode(png.ToArray()).Png.ToArray(); + path = Path.GetFullPath(path); var parent = Path.GetDirectoryName(path) ?? throw new IOException("请选择本机 PNG 保存位置。"); + var directory = WorldPathSnapshot.Capture(parent, parent); var original = WorldPathSnapshot.Capture(parent, path, true); + if (original.Exists && (original.Final.Directory || File.GetAttributes(path).HasFlag(FileAttributes.ReadOnly))) throw new IOException("目标不是可写的普通文件。"); + var stage = Path.Combine(parent, ".shou-skin-" + Guid.NewGuid().ToString("N") + ".tmp"); WorldFileIdentity? allocated = null; + try + { + directory.Verify(); + var options = new FileStreamOptions { Mode = FileMode.CreateNew, Access = FileAccess.ReadWrite, Share = FileShare.Read, Options = FileOptions.Asynchronous | FileOptions.WriteThrough }; + if (!OperatingSystem.IsWindows()) options.UnixCreateMode = UnixFileMode.UserRead | UnixFileMode.UserWrite; + await using (var stream = new FileStream(stage, options)) + { + allocated = WorldFileIdentity.FromHandle(stream.SafeFileHandle); directory.Verify(); + if (!WorldPathSnapshot.Capture(parent, stage).Final.SameNode(allocated.Value)) throw new IOException("皮肤导出暂存路径已改变。"); + await stream.WriteAsync(bytes, ct); await stream.FlushAsync(ct); stream.Flush(true); + allocated = WorldFileIdentity.FromHandle(stream.SafeFileHandle); + } + ct.ThrowIfCancellationRequested(); directory.Verify(); original.Verify(); + if (WorldPathSnapshot.Capture(parent, stage).Final != allocated) throw new IOException("皮肤导出暂存文件已改变。"); + // Atomic replacement occurs only after the complete PNG has been flushed and the target rechecked. + File.Move(stage, path, original.Exists); + } + finally + { + if (allocated is { } created) + try { directory.Verify(); var remaining = WorldPathSnapshot.Capture(parent, stage, true); if (remaining.Exists && remaining.Final.SameNode(created)) File.Delete(stage); } + catch (IOException) { /* Do not remove substituted paths. */ } + } + } +} diff --git a/src/SHOU.Launcher.Core/Authentication/AuthenticationClient.cs b/src/SHOU.Launcher.Core/Authentication/AuthenticationClient.cs new file mode 100644 index 00000000..9dc9ccaa --- /dev/null +++ b/src/SHOU.Launcher.Core/Authentication/AuthenticationClient.cs @@ -0,0 +1,160 @@ +using System.Net; +using System.Net.Http.Headers; +using System.Net.Http.Json; +using System.Text.Json; +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Authentication; + +public sealed class AuthenticationException(string code, string message) : Exception(message) +{ public string Code { get; } = code; } +public sealed record AuthSession(AccountProfile Profile, string AccessToken, string? RefreshToken = null, + string? ClientToken = null, string? Xuid = null) +{ public override string ToString() => "AuthSession(" + Profile.Id + ")"; } +public sealed record MicrosoftEndpoints(Uri DeviceCode, Uri Token, Uri XboxLive, Uri Xsts, Uri MinecraftLogin, Uri Entitlements, Uri Profile) +{ + public static MicrosoftEndpoints Official { get; } = new(new("https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode"), + new("https://login.microsoftonline.com/consumers/oauth2/v2.0/token"), new("https://user.auth.xboxlive.com/user/authenticate"), + new("https://xsts.auth.xboxlive.com/xsts/authorize"), new("https://api.minecraftservices.com/authentication/login_with_xbox"), + new("https://api.minecraftservices.com/entitlements/mcstore"), new("https://api.minecraftservices.com/minecraft/profile")); +} + +public sealed class AuthenticationClient(HttpClient http, MicrosoftEndpoints? microsoftEndpoints = null) +{ + private readonly MicrosoftEndpoints endpoints = microsoftEndpoints ?? MicrosoftEndpoints.Official; + public static string ResolveMicrosoftClientId(string? explicitId, string? userId, IBuildConfiguration build) + { + var value = new[] { explicitId, userId, build.MicrosoftClientId }.FirstOrDefault(v => !string.IsNullOrWhiteSpace(v)); + if (value is null || !Guid.TryParse(value, out _)) throw new AuthenticationException("missing_client_id", "Microsoft Client ID未配置或格式不正确。"); + return value; + } + public async Task LoginMicrosoftAsync(string clientId, IProgress challenge, CancellationToken ct = default) + { + using var deviceRequest = new HttpRequestMessage(HttpMethod.Post, endpoints.DeviceCode) { Content = new FormUrlEncodedContent(new Dictionary { ["client_id"] = clientId, ["scope"] = "XboxLive.signin offline_access" }) }; + var device = await SendAsync(deviceRequest, ct).ConfigureAwait(false); + var code = Required(device, "device_code"); + var userCode = Required(device, "user_code"); + var verification = new Uri(Required(device, "verification_uri")); + if (verification.Scheme != "https" && !verification.IsLoopback) throw new AuthenticationException("invalid_device_response", "授权地址不安全。"); + var expires = DateTimeOffset.UtcNow.AddSeconds(Math.Clamp((int?)device["expires_in"] ?? 900, 1, 1800)); + var interval = Math.Clamp((int?)device["interval"] ?? 5, 1, 60); + challenge.Report(new(userCode, verification, expires, "请在浏览器完成Microsoft设备授权;可随时取消。")); + while (DateTimeOffset.UtcNow < expires) + { + await Task.Delay(TimeSpan.FromSeconds(interval), ct).ConfigureAwait(false); + using var poll = new HttpRequestMessage(HttpMethod.Post, endpoints.Token) { Content = new FormUrlEncodedContent(new Dictionary + { ["client_id"] = clientId, ["grant_type"] = "urn:ietf:params:oauth:grant-type:device_code", ["device_code"] = code }) }; + try { return await CompleteMicrosoftAsync(await SendAsync(poll, ct).ConfigureAwait(false), ct).ConfigureAwait(false); } + catch (AuthenticationException ex) when (ex.Code == "authorization_pending") { } + catch (AuthenticationException ex) when (ex.Code == "slow_down") { interval = Math.Min(60, interval + 5); } + } + throw new AuthenticationException("expired_token", "设备授权已过期,请重新登录。"); + } + public async Task RefreshMicrosoftAsync(string clientId, AuthSession session, CancellationToken ct = default) + { + if (string.IsNullOrEmpty(session.RefreshToken)) throw new AuthenticationException("invalid_grant", "缺少刷新凭据,请重新登录。"); + using var request = new HttpRequestMessage(HttpMethod.Post, endpoints.Token) { Content = new FormUrlEncodedContent(new Dictionary + { ["client_id"] = clientId, ["grant_type"] = "refresh_token", ["refresh_token"] = session.RefreshToken, ["scope"] = "XboxLive.signin offline_access" }) }; + var oauth = await SendAsync(request, ct).ConfigureAwait(false); + oauth["refresh_token"] ??= session.RefreshToken; + var refreshed = await CompleteMicrosoftAsync(oauth, ct).ConfigureAwait(false); + if (refreshed.Profile.PlayerUuid != session.Profile.PlayerUuid) throw new AuthenticationException("profile_mismatch", "刷新返回了不同角色,原档案未覆盖。"); + return refreshed with { Profile = refreshed.Profile with { Id = session.Profile.Id } }; + } + private async Task CompleteMicrosoftAsync(JsonObject oauth, CancellationToken ct) + { + var access = Required(oauth, "access_token"); + var xbl = await PostJsonAsync(endpoints.XboxLive, new { Properties = new { AuthMethod = "RPS", SiteName = "user.auth.xboxlive.com", RpsTicket = "d=" + access }, RelyingParty = "http://auth.xboxlive.com", TokenType = "JWT" }, ct).ConfigureAwait(false); + var xsts = await PostJsonAsync(endpoints.Xsts, new { Properties = new { SandboxId = "RETAIL", UserTokens = new[] { Required(xbl, "Token") } }, RelyingParty = "rp://api.minecraftservices.com/", TokenType = "JWT" }, ct).ConfigureAwait(false); + var hash = (string?)xsts["DisplayClaims"]?["xui"]?[0]?["uhs"] ?? throw new AuthenticationException("xsts_missing_hash", "Xbox授权缺少用户标识。"); + var minecraft = await PostJsonAsync(endpoints.MinecraftLogin, new { identityToken = "XBL3.0 x=" + hash + ";" + Required(xsts, "Token") }, ct).ConfigureAwait(false); + var minecraftToken = Required(minecraft, "access_token"); + using var entitlementRequest = new HttpRequestMessage(HttpMethod.Get, endpoints.Entitlements); + entitlementRequest.Headers.Authorization = new AuthenticationHeaderValue("Bearer", minecraftToken); + var entitlement = await SendAsync(entitlementRequest, ct).ConfigureAwait(false); + if (entitlement["items"] is not JsonArray items || !items.Any(item => (string?)item?["name"] is "product_minecraft" or "game_minecraft")) throw new AuthenticationException("minecraft_not_owned", "此账户没有Minecraft Java版许可。"); + using var profileRequest = new HttpRequestMessage(HttpMethod.Get, endpoints.Profile); + profileRequest.Headers.Authorization = new AuthenticationHeaderValue("Bearer", minecraftToken); + var profile = await SendAsync(profileRequest, ct).ConfigureAwait(false); + var uuid = NormalizeUuid(Required(profile, "id")); + return new(new("microsoft:" + uuid, AccountKind.Microsoft, Required(profile, "name"), uuid, + Status: "已授权 · 尚未持久保存", ExpiresAt: DateTimeOffset.UtcNow.AddSeconds((int?)minecraft["expires_in"] ?? 86400)), + minecraftToken, (string?)oauth["refresh_token"], Xuid: (string?)xsts["DisplayClaims"]?["xui"]?[0]?["xid"] ?? (string?)xbl["DisplayClaims"]?["xui"]?[0]?["xid"]); + } + public async Task> LoginYggdrasilAsync(Uri server, string username, string password, CancellationToken ct = default, + Func, CancellationToken, Task>? selectProfile = null) + { + var root = NormalizeYggdrasilRoot(server); + var clientToken = Guid.NewGuid().ToString("N"); + var response = await PostJsonAsync(new Uri(root + "/authserver/authenticate"), new { agent = new { name = "Minecraft", version = 1 }, username, password, clientToken, requestUser = true }, ct).ConfigureAwait(false); + var profiles = response["availableProfiles"] as JsonArray ?? new JsonArray(); + if (profiles.Count == 0 && response["selectedProfile"] is JsonObject selected) profiles.Add(selected.DeepClone()); + if (profiles.Count == 0) throw new AuthenticationException("invalid_profile", "认证服务没有可用角色。"); + if (profiles.Count > 64) throw new AuthenticationException("invalid_profile", "认证服务返回过多角色。"); + JsonObject selectedProfile; + var roleResult = response; + if (response["selectedProfile"] is JsonObject bound) + { + // A bound token is not an authorization for every available profile. + selectedProfile = bound; + } + else + { + var choices = profiles.Select(value => value as JsonObject ?? throw new AuthenticationException("invalid_profile", "角色数据格式不正确。")) + .Select(profile => new AuthenticationProfileChoice(NormalizeUuid(Required(profile, "id")), Required(profile, "name"))).ToArray(); + var chosen = choices.Length == 1 ? choices[0].Id : selectProfile is not null + ? await selectProfile(choices, ct).ConfigureAwait(false) + : throw new AuthenticationException("profile_selection_required", "此登录需先选择一个角色。"); + ct.ThrowIfCancellationRequested(); + var choice = choices.FirstOrDefault(c => c.Id == chosen) ?? throw new AuthenticationException("profile_selection_cancelled", "角色选择已取消或无效。"); + selectedProfile = new JsonObject { ["id"] = choice.Id, ["name"] = choice.Name }; + // refresh revokes the unbound token. Bind exactly one chosen profile, once. + roleResult = await PostJsonAsync(new Uri(root + "/authserver/refresh"), new { accessToken = Required(response, "accessToken"), clientToken = (string?)response["clientToken"] ?? clientToken, + selectedProfile = new { id = choice.Id, name = choice.Name }, requestUser = true }, ct).ConfigureAwait(false); + } + var id = NormalizeUuid(Required(selectedProfile, "id")); + if ((string?)roleResult["selectedProfile"]?["id"] is { } returned && NormalizeUuid(returned) != id) throw new AuthenticationException("invalid_profile", "认证服务返回了不同角色。"); + var stableId = "yggdrasil:" + Convert.ToHexString(System.Security.Cryptography.SHA256.HashData(System.Text.Encoding.UTF8.GetBytes(root)))[..12].ToLowerInvariant() + ":" + id; + return [new(new(stableId, AccountKind.Yggdrasil, Required(selectedProfile, "name"), id, root, Status: "已授权 · 尚未持久保存"), Required(roleResult, "accessToken"), ClientToken: (string?)roleResult["clientToken"] ?? clientToken)]; + } + public async Task RefreshYggdrasilAsync(AuthSession session, CancellationToken ct = default) + { + var root = NormalizeYggdrasilRoot(new Uri(session.Profile.AuthenticationServer ?? throw new AuthenticationException("missing_server", "档案没有认证服务地址。"))); + var result = await PostJsonAsync(new Uri(root + "/authserver/refresh"), new { accessToken = session.AccessToken, clientToken = session.ClientToken, + requestUser = true }, ct).ConfigureAwait(false); + if ((string?)result["selectedProfile"]?["id"] is { } id && NormalizeUuid(id) != session.Profile.PlayerUuid) throw new AuthenticationException("invalid_profile", "刷新返回了不同角色。"); + return session with { AccessToken = Required(result, "accessToken"), ClientToken = (string?)result["clientToken"] ?? session.ClientToken }; + } + public static string NormalizeYggdrasilRoot(Uri server) + { + if (!server.IsAbsoluteUri || (server.Scheme != "https" && !server.IsLoopback) || !string.IsNullOrEmpty(server.UserInfo) || !string.IsNullOrEmpty(server.Query) || !string.IsNullOrEmpty(server.Fragment)) throw new AuthenticationException("invalid_server", "认证服务须为不含凭据的HTTPS地址。"); + var root = server.AbsoluteUri.TrimEnd('/'); + return root.EndsWith("/authserver", StringComparison.OrdinalIgnoreCase) ? root[..^11] : root; + } + private async Task PostJsonAsync(Uri uri, object value, CancellationToken ct) + { + using var message = new HttpRequestMessage(HttpMethod.Post, uri) { Content = JsonContent.Create(value, options: new JsonSerializerOptions()) }; + return await SendAsync(message, ct).ConfigureAwait(false); + } + private async Task SendAsync(HttpRequestMessage request, CancellationToken ct) + { + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(30)); + using var response = await http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, timeout.Token).ConfigureAwait(false); + if (response.Content.Headers.ContentLength > 2 * 1024 * 1024) throw new AuthenticationException("oversized_response", "认证响应超过上限。"); + var text = await response.Content.ReadAsStringAsync(timeout.Token).ConfigureAwait(false); + if (text.Length > 2 * 1024 * 1024) throw new AuthenticationException("oversized_response", "认证响应超过上限。"); + JsonObject body; + try { body = JsonNode.Parse(text) as JsonObject ?? throw new JsonException(); } + catch (JsonException) { throw new AuthenticationException("invalid_response", $"认证服务返回非JSON响应(HTTP {(int)response.StatusCode})。"); } + if (!response.IsSuccessStatusCode || body["error"] is not null) + { + var rawCode = (string?)body["error"] ?? (body["XErr"] is not null ? "xsts_" + body["XErr"] : "http_" + (int)response.StatusCode); + var code = new string(rawCode.Where(c => char.IsAsciiLetterOrDigit(c) || c == '_').Take(80).ToArray()); + throw new AuthenticationException(code, $"认证失败:{code}(HTTP {(int)response.StatusCode})。"); + } + return body; + } + private static string Required(JsonObject value, string key) => (string?)value[key] is { Length: > 0 } result ? result : throw new AuthenticationException("invalid_response", "认证响应缺少必要字段:" + key); + private static string NormalizeUuid(string value) => Guid.TryParse(value, out var id) ? id.ToString("N") : throw new AuthenticationException("invalid_profile", "角色UUID格式不正确。"); +} diff --git a/src/SHOU.Launcher.Core/Authentication/OfflineIdentity.cs b/src/SHOU.Launcher.Core/Authentication/OfflineIdentity.cs new file mode 100644 index 00000000..6c383593 --- /dev/null +++ b/src/SHOU.Launcher.Core/Authentication/OfflineIdentity.cs @@ -0,0 +1,32 @@ +using System.Security.Cryptography; +using System.Text; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Authentication; + +public static class OfflineIdentity +{ + public static string Create(string name, OfflineUuidMode mode = OfflineUuidMode.Standard, string? customUuid = null) + { + if (string.IsNullOrWhiteSpace(name) || name.Length > 16 || name.Any(c => !char.IsLetterOrDigit(c) && c != '_')) + throw new ArgumentException("玩家 ID 须为 1–16 位字母、数字或下划线;不推荐中文名,部分模组或服务器不兼容。"); + if (mode == OfflineUuidMode.Custom) + { + if (!(Guid.TryParseExact(customUuid, "N", out var id) || Guid.TryParseExact(customUuid, "D", out id)) || id == Guid.Empty) + throw new ArgumentException("请输入有效的 UUID(32 位十六进制,可带连字符)。"); + return id.ToString("N"); + } + if (mode == OfflineUuidMode.Legacy) + { + // Portable v1.5 identity algorithm. Preserve UTF-16 characters and unsigned overflow exactly. + ulong hash = 5381; + foreach (var character in name) hash = unchecked((hash << 5) ^ hash ^ character); + var value = name.Length.ToString("x16") + (hash ^ 0xa98f501bc684032fUL).ToString("x16"); + return value[..12] + "3" + value[13..16] + "9" + value[17..]; + } + if (mode != OfflineUuidMode.Standard) throw new ArgumentOutOfRangeException(nameof(mode)); + var bytes = MD5.HashData(Encoding.UTF8.GetBytes("OfflinePlayer:" + name)); + bytes[6] = (byte)((bytes[6] & 0x0f) | 0x30); bytes[8] = (byte)((bytes[8] & 0x3f) | 0x80); + return Convert.ToHexStringLower(bytes); + } +} diff --git a/src/SHOU.Launcher.Core/Catalog/CachedGameCatalog.cs b/src/SHOU.Launcher.Core/Catalog/CachedGameCatalog.cs new file mode 100644 index 00000000..984e0e89 --- /dev/null +++ b/src/SHOU.Launcher.Core/Catalog/CachedGameCatalog.cs @@ -0,0 +1,105 @@ +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Catalog; + +/// Only public version identities are cached. Installation still resolves and verifies official metadata. +public sealed class CachedGameCatalog(string cacheDirectory, Func? clock = null) +{ + private const int MaximumBytes = 8 * 1024 * 1024; + private readonly SemaphoreSlim gate = new(1, 1); + private DateTimeOffset Now => clock?.Invoke() ?? DateTimeOffset.UtcNow; + public async Task GetAsync(string sourceConfiguration, bool forceRefresh, + Func> fetch, CancellationToken ct = default) + { + await gate.WaitAsync(ct).ConfigureAwait(false); + try + { + var key = Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(sourceConfiguration))); + var path = Path.Combine(Path.GetFullPath(cacheDirectory), "catalog", "minecraft-" + key + ".json"); + var cached = await ReadAsync(path, ct).ConfigureAwait(false); + if (!forceRefresh && cached?.FetchedAt is { } fetched && Now - fetched < TimeSpan.FromMinutes(15)) + return cached with { FromCache = true }; + GameCatalog result; + try + { + result = (await fetch(ct).ConfigureAwait(false)) with { FetchedAt = Now, FromCache = false, Notice = null }; + ct.ThrowIfCancellationRequested(); Validate(result); + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is HttpRequestException or IOException or InvalidDataException or JsonException or AggregateException or OperationCanceledException) + { + ct.ThrowIfCancellationRequested(); + if (cached is null) throw; + return cached with { FromCache = true, Notice = "暂时无法更新,正在显示上次成功读取的目录。可检查网络后刷新。" }; + } + try { await WriteAsync(path, result, ct).ConfigureAwait(false); } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) + { result = result with { Notice = "目录已读取,但本地缓存未保存。" }; } + ct.ThrowIfCancellationRequested(); + return result; + } + finally { gate.Release(); } + } + private async Task ReadAsync(string path, CancellationToken ct) + { + try + { + VerifiedDownloader.RejectLink(path); + if (!File.Exists(path)) return null; + await using var stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 16384, true); + if (stream.Length is <= 0 or > MaximumBytes) return null; + // A bounded copy also handles a file growing while it is being read. + using var bytes = new MemoryStream(); var buffer = new byte[16384]; + while (true) + { + var count = await stream.ReadAsync(buffer, ct).ConfigureAwait(false); + if (count == 0) break; + if (bytes.Length + count > MaximumBytes) return null; + bytes.Write(buffer, 0, count); + } + var catalog = JsonSerializer.Deserialize(bytes.ToArray()); + if (catalog is null) return null; + Validate(catalog); + return catalog with { FromCache = false, Notice = null }; + } + catch (Exception ex) when (ex is IOException or InvalidDataException or UnauthorizedAccessException or JsonException or ArgumentException) { return null; } + } + private void Validate(GameCatalog catalog) + { + if (catalog.FetchedAt is not { } date || date > Now.AddMinutes(5) || date == DateTimeOffset.MinValue + || string.IsNullOrEmpty(catalog.Source) || catalog.Source.Length > 253 || Uri.CheckHostName(catalog.Source) == UriHostNameType.Unknown + || catalog.Versions is null || catalog.Versions.Count is 0 or > 20000) + throw new InvalidDataException("版本目录缓存无效。"); + foreach (var entry in catalog.Versions) + { + if (entry is null || string.IsNullOrEmpty(entry.Id) || entry.Id.Length > 160 || entry.Id.Any(char.IsControl) + || string.IsNullOrEmpty(entry.Kind) || entry.Kind.Length > 40 || entry.Kind.Any(c => !char.IsAsciiLetterOrDigit(c) && c is not '_' and not '-')) + throw new InvalidDataException("版本目录缓存条目无效。"); + if (entry.CanInstall) + try { _ = SafePath.Identifier(entry.Id); } + catch (ArgumentException) { throw new InvalidDataException("版本目录缓存安装标识无效。"); } + } + } + private static async Task WriteAsync(string path, GameCatalog catalog, CancellationToken ct) + { + var bytes = JsonSerializer.SerializeToUtf8Bytes(catalog); + if (bytes.Length > MaximumBytes) throw new IOException("版本目录缓存超过大小限制。"); + VerifiedDownloader.RejectLink(path); + Directory.CreateDirectory(Path.GetDirectoryName(path)!); + VerifiedDownloader.RejectLink(path); + var temporary = path + "." + Guid.NewGuid().ToString("N") + ".tmp"; + try + { + await using (var output = new FileStream(temporary, FileMode.CreateNew, FileAccess.Write, FileShare.None, 16384, true)) + { await output.WriteAsync(bytes, ct).ConfigureAwait(false); await output.FlushAsync(ct).ConfigureAwait(false); } + ct.ThrowIfCancellationRequested(); VerifiedDownloader.RejectLink(path); VerifiedDownloader.RejectLink(temporary); + File.Move(temporary, path, true); + } + finally { if (File.Exists(temporary)) File.Delete(temporary); } + } +} diff --git a/src/SHOU.Launcher.Core/Catalog/CurseForgeCatalog.cs b/src/SHOU.Launcher.Core/Catalog/CurseForgeCatalog.cs new file mode 100644 index 00000000..c2971176 --- /dev/null +++ b/src/SHOU.Launcher.Core/Catalog/CurseForgeCatalog.cs @@ -0,0 +1,138 @@ +using System.Globalization; +using System.Net.Http.Headers; +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Catalog; + +/// Uses a caller-owned no-redirect transport. API credentials never enter CDN requests. +public sealed class CurseForgeCatalog(HttpClient http, string? apiKey) +{ + private static readonly IReadOnlyDictionary Classes = new Dictionary + { ["mod"] = 6, ["modpack"] = 4471, ["resourcepack"] = 12, ["shader"] = 6552, ["datapack"] = 6945, ["world"] = 17 }; + public static bool IsProject(string id) => id.StartsWith("cf-", StringComparison.Ordinal); + private static string Id(string id) + { + var number = id.StartsWith("cf-", StringComparison.Ordinal) ? id[3..] : ""; + if (!int.TryParse(number, NumberStyles.None, CultureInfo.InvariantCulture, out var value) || value <= 0) throw new InvalidDataException("CurseForge 项目身份无效。"); + return value.ToString(CultureInfo.InvariantCulture); + } + private async Task ReadAsync(string path, CancellationToken ct, object? body = null) + { + if (string.IsNullOrWhiteSpace(apiKey)) throw new InvalidOperationException("尚未配置 CurseForge API;可选择 Modrinth,或在项目构建配置中提供 API key。"); + if (apiKey.Length > 8192 || apiKey.Any(c => char.IsWhiteSpace(c) || char.IsControl(c))) throw new InvalidOperationException("CurseForge API 配置格式无效。"); + if (http.DefaultRequestHeaders.Contains("x-api-key") || http.DefaultRequestHeaders.Authorization is not null || http.DefaultRequestHeaders.Contains("Cookie")) throw new InvalidOperationException("目录客户端不能携带全局凭据。"); + var uri = new Uri("https://api.curseforge.com/v1/" + path); + if (uri.Host != "api.curseforge.com" || !uri.IsDefaultPort || uri.UserInfo.Length != 0) throw new InvalidDataException("CurseForge API 地址无效。"); + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(20)); + using var request = new HttpRequestMessage(body is null ? HttpMethod.Get : HttpMethod.Post, uri); + if (body is not null) request.Content = new StringContent(System.Text.Json.JsonSerializer.Serialize(body), System.Text.Encoding.UTF8, "application/json"); + request.Headers.Add("x-api-key", apiKey); request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); + request.Headers.UserAgent.ParseAdd("SHOU-Launcher/1.6.2 (+https://github.com/Conduit-Club/SHOU-Launcher)"); + using var response = await http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, timeout.Token).ConfigureAwait(false); + if (response.RequestMessage?.RequestUri is { } actual && actual != uri || (int)response.StatusCode is >= 300 and < 400) throw new IOException("CurseForge API 重定向已拒绝。"); + if (!response.IsSuccessStatusCode) throw new IOException($"CurseForge 返回 HTTP {(int)response.StatusCode},请稍后重试。"); + if (response.Content.Headers.ContentLength is > 6 * 1024 * 1024) throw new InvalidDataException("CurseForge 响应超过大小限制。"); + await using var input = await response.Content.ReadAsStreamAsync(timeout.Token).ConfigureAwait(false); + using var bytes = new MemoryStream(); var buffer = new byte[16384]; + while (true) { var count = await input.ReadAsync(buffer, timeout.Token).ConfigureAwait(false); if (count == 0) break; if (bytes.Length + count > 6 * 1024 * 1024) throw new InvalidDataException("CurseForge 响应超过大小限制。"); bytes.Write(buffer, 0, count); } + return JsonNode.Parse(bytes.ToArray())?["data"] ?? throw new InvalidDataException("CurseForge 目录结构无效。"); + } + public async Task> SearchAsync(ContentQuery query, CancellationToken ct) + { + if (!Classes.TryGetValue(query.Kind, out var classId) || query.Search.Length > 256 || query.Offset < 0 || query.Limit is < 1 or > 50 || query.Offset + query.Limit > 10000) throw new ArgumentException("搜索条件超出范围。"); + var sort = query.Sort switch { "relevance" => query.Search.Length == 0 ? 6 : 2, "downloads" => 6, "updated" => 3, "newest" => 11, "follows" => 2, _ => throw new ArgumentException("未知排序。") }; + var path = $"mods/search?gameId=432&classId={classId}&pageSize={query.Limit}&index={query.Offset}&sortField={sort}&sortOrder=desc&searchFilter=" + Uri.EscapeDataString(query.Search); + if (!string.IsNullOrWhiteSpace(query.GameVersion)) path += "&gameVersion=" + Uri.EscapeDataString(query.GameVersion); + // The API supports a loader without a game version through the plural parameter. + if (!string.IsNullOrWhiteSpace(query.Loader)) path += "&modLoaderTypes=" + Uri.EscapeDataString("[" + LoaderId(query.Loader) + "]"); + if (!string.IsNullOrEmpty(query.Category)) path += "&categoryId=" + Id(query.Category); + var data = await ReadAsync(path, ct).ConfigureAwait(false) as JsonArray ?? throw new InvalidDataException("CurseForge 搜索响应无效。"); + if (data.Count > query.Limit) throw new InvalidDataException("CurseForge 搜索数量超限。"); + return data.Select(n => ParseProject(n, query.Kind)).ToArray(); + } + private static int LoaderId(string loader) => loader.ToLowerInvariant() switch { "forge" => 1, "fabric" => 4, "quilt" => 5, "neoforge" => 6, _ => throw new ArgumentException("未知加载器。") }; + private static string Text(JsonNode? node, string key) => (string?)node?[key] ?? ""; + private static ContentProject ParseProject(JsonNode? n, string? expectedKind = null) + { + var number = (int?)n?["id"] ?? 0; if (number <= 0 || (int?)n?["gameId"] != 432) throw new InvalidDataException("CurseForge 项目身份无效。"); + var kind = Classes.FirstOrDefault(p => p.Value == (int?)n?["classId"]).Key ?? throw new InvalidDataException("不支持的 CurseForge 资源类型。"); + if (expectedKind is not null && expectedKind != kind) throw new InvalidDataException("CurseForge 搜索返回了其它类型资源。"); + var slug = SafePath.Identifier(Text(n, "slug")); + var page = new Uri(Text(n?["links"], "websiteUrl")); + if (page.Scheme != "https" || !page.IsDefaultPort || page.Host is not ("www.curseforge.com" or "curseforge.com") || page.UserInfo.Length != 0 || page.Fragment.Length != 0) throw new InvalidDataException("CurseForge 项目链接无效。"); + var versions = (n?["latestFilesIndexes"] as JsonArray ?? []).Select(x => Text(x, "gameVersion")).Where(v => v.Length is > 0 and < 160).Distinct().ToArray(); + return new("cf-" + number, slug, Text(n, "name"), Text(n, "summary"), string.Join(", ", (n?["authors"] as JsonArray ?? []).Take(20).Select(a => Text(a, "name"))), + (long?)n?["downloadCount"] ?? 0, kind, (string?)n?["logo"]?["thumbnailUrl"], page, + Categories: (n?["categories"] as JsonArray ?? []).Take(30).Select(a => Text(a, "name")).ToArray(), GameVersions: versions, + Updated: DateTimeOffset.TryParse(Text(n, "dateModified"), out var date) ? date : null, Source: "curseforge"); + } + public async Task ProjectAsync(string id, CancellationToken ct) => ParseProject(await ReadAsync("mods/" + Id(id), ct).ConfigureAwait(false)); + public async Task> CategoriesAsync(CancellationToken ct) + { + var data = await ReadAsync("categories?gameId=432", ct).ConfigureAwait(false) as JsonArray ?? throw new InvalidDataException("CurseForge 分类无效。"); + return data.Where(n => (bool?)n?["isClass"] != true && (int?)n?["id"] > 0).Select(n => new ContentCategory("cf-" + (int)n!["id"]!, Classes.FirstOrDefault(p => p.Value == (int?)n?["classId"]).Key ?? "", Text(n, "name"), "curseforge")) + .Where(c => c.Kind.Length > 0).ToArray(); + } + public async Task> ReleasesAsync(string projectId, string? gameVersion, string? loader, CancellationToken ct) + { + var id = Id(projectId); var path = "mods/" + id + "/files?pageSize=50"; + if (!string.IsNullOrWhiteSpace(gameVersion)) path += "&gameVersion=" + Uri.EscapeDataString(gameVersion); + if (!string.IsNullOrWhiteSpace(loader)) path += "&modLoaderType=" + LoaderId(loader); + var data = await ReadAsync(path, ct).ConfigureAwait(false) as JsonArray ?? throw new InvalidDataException("CurseForge 文件列表无效。"); + return data.Take(50).Select(n => ParseRelease(n, int.Parse(id, CultureInfo.InvariantCulture))).ToArray(); + } + public async Task ReleaseAsync(string releaseId, CancellationToken ct) + { + var parts = releaseId.Split('-'); if (parts.Length != 3 || parts[0] != "cf") throw new InvalidDataException("CurseForge 文件身份无效。"); + var project = Id("cf-" + parts[1]); var file = Id("cf-" + parts[2]); + return ParseRelease(await ReadAsync($"mods/{project}/files/{file}", ct).ConfigureAwait(false), int.Parse(project, CultureInfo.InvariantCulture)); + } + public async Task> MatchFingerprintsAsync(IReadOnlyList fingerprints, CancellationToken ct) + { + var result = new Dictionary(); + foreach (var group in fingerprints.Distinct().Chunk(100)) + { + var data = await ReadAsync("fingerprints/432", ct, new { fingerprints = group }); + foreach (var match in data["exactMatches"] as JsonArray ?? []) + { + var file = match?["file"]; var project = (int?)file?["modId"] ?? 0; var fingerprint = (uint?)file?["fileFingerprint"] ?? 0; + if (project <= 0 || (int?)match?["id"] != project || !group.Contains(fingerprint)) throw new InvalidDataException("CurseForge 指纹身份无效。"); + result[fingerprint] = ParseRelease(file, project); + } + } + return result; + } + private static ContentRelease ParseRelease(JsonNode? n, int project) + { + var fileId = (int?)n?["id"] ?? 0; if (fileId <= 0 || (int?)n?["modId"] != project || (int?)n?["gameId"] != 432) throw new InvalidDataException("CurseForge 文件身份不匹配。"); + var name = Text(n, "fileName"); var sha = (n?["hashes"] as JsonArray ?? []).FirstOrDefault(h => (int?)h?["algo"] == 1)?["value"]?.GetValue() ?? ""; + var size = (long?)n?["fileLength"] ?? -1; var address = Text(n, "downloadUrl"); + var files = new List(); string? notice = null; CurseForgeManualFile? manual = null; + if ((int?)n?["fileStatus"] is 5 or 6 or 7) notice = "此文件已被官方拒绝、标记为恶意或删除,不能下载。"; + else if ((bool?)n?["isServerPack"] == true) notice = "此文件是服务器包,请选择客户端版本。"; + else if ((bool?)n?["isAvailable"] == false) notice = "此版本当前不可下载,请查看项目页。"; + else if (address.Length == 0) + { + notice = "作者未提供第三方下载地址,请在官网下载安装文件后继续。"; + if (ContentInstallFiles.Hash(sha, 40) && size > 0 && name.Length > 0 && !name.Any(c => char.IsControl(c) || c is '/' or '\\' or ':')) + manual = new(project, fileId, name, sha.ToLowerInvariant(), size, new Uri($"https://www.curseforge.com/projects/{project}/files/{fileId}")); + } + else + { + if (!Uri.TryCreate(address, UriKind.Absolute, out var uri) || !CurseForgePackResolver.AllowedCurseForgeUri(uri) + || !ContentInstallFiles.Hash(sha, 40) || size is <= 0 or > ContentInstallPlanner.MaximumTotalBytes + || name.Length is 0 or > 200 || name.Any(c => char.IsControl(c) || c is '/' or '\\' or ':')) + notice = "此版本缺少有效的官方文件来源、SHA-1 或大小,暂不可自动下载;其它版本仍可选择。"; + else files.Add(new(name, uri, sha.ToLowerInvariant(), size, true)); + } + var tags = (n?["gameVersions"] as JsonArray ?? []).Select(x => (string?)x ?? "").Take(500).ToArray(); + var loaders = tags.Where(v => v.ToLowerInvariant() is "forge" or "fabric" or "neoforge" or "quilt").Select(v => v.ToLowerInvariant()).ToArray(); + var dependencies = (n?["dependencies"] as JsonArray ?? []).Select(d => new ContentDependency((int?)d?["relationType"] switch { 3 => "required", 2 => "optional", 5 => "incompatible", 1 or 4 => "embedded", _ => "unknown" }, "cf-" + (int?)d?["modId"])).ToArray(); + return new($"cf-{project}-{fileId}", Text(n, "displayName"), name, DateTimeOffset.TryParse(Text(n, "fileDate"), out var date) ? date : DateTimeOffset.MinValue, + tags.Where(v => v.Length > 0 && char.IsAsciiDigit(v[0])).ToArray(), loaders, files, dependencies, "cf-" + project, Notice: notice, + ReleaseChannel: (int?)n?["releaseType"] switch { 2 => "beta", 3 => "alpha", _ => "release" }, ManualFile: manual); + } +} diff --git a/src/SHOU.Launcher.Core/Catalog/LauncherCatalog.cs b/src/SHOU.Launcher.Core/Catalog/LauncherCatalog.cs new file mode 100644 index 00000000..74a1c6b1 --- /dev/null +++ b/src/SHOU.Launcher.Core/Catalog/LauncherCatalog.cs @@ -0,0 +1,233 @@ +using System.Net.Http.Headers; +using System.Text.Json; +using System.Text.Json.Nodes; +using PCL.Core.Conduit; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Catalog; + +/// Data-only catalogs share the production proxy/source policy. They never execute remote content. +public sealed class LauncherCatalog(HttpClient http, Func> sources, bool preferCompleteCatalog = true) +{ + private const int MaximumBytes = 8 * 1024 * 1024; + private async Task<(JsonNode Data, string Source, bool Partial)> ReadAsync(string url, bool modSource, CancellationToken ct, Func validate, object? body = null) + { + var candidates = modSource ? ModDownloadSources.Resolve(url, sources()).Select(u => new SourceAddress(u, "Modrinth", 0)).ToArray() + : DownloadSources.Resolve([url], sources()); + var failures = new List(); + foreach (var candidate in preferCompleteCatalog && url == DownloadSources.ManifestUrl ? candidates.OrderBy(c => new Uri(c.Url).Host == new Uri(DownloadSources.ManifestUrl).Host ? 0 : c.IsPartialCatalog ? 2 : 1) : candidates.AsEnumerable()) + { + ct.ThrowIfCancellationRequested(); + try + { + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); + timeout.CancelAfter(TimeSpan.FromSeconds(20)); + using var request = new HttpRequestMessage(body is null ? HttpMethod.Get : HttpMethod.Post, candidate.Url); + if (body is not null) request.Content = new StringContent(JsonSerializer.Serialize(body), System.Text.Encoding.UTF8, "application/json"); + request.Headers.UserAgent.ParseAdd("SHOU-Launcher/1.6.2 (+https://github.com/Conduit-Club/SHOU-Launcher)"); + request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); + using var response = await http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, timeout.Token).ConfigureAwait(false); + response.EnsureSuccessStatusCode(); + if (response.Content.Headers.ContentLength is > MaximumBytes) throw new InvalidDataException("目录响应超过大小限制。"); + await using var stream = await response.Content.ReadAsStreamAsync(timeout.Token).ConfigureAwait(false); + using var bytes = new MemoryStream(); + var buffer = new byte[16384]; + while (true) + { + var count = await stream.ReadAsync(buffer, timeout.Token).ConfigureAwait(false); + if (count == 0) break; + if (bytes.Length + count > MaximumBytes) throw new InvalidDataException("目录响应超过大小限制。"); + bytes.Write(buffer, 0, count); + } + var node = JsonNode.Parse(bytes.ToArray()) ?? throw new InvalidDataException("目录内容为空。"); + if (!validate(node)) throw new InvalidDataException("目录结构无效。"); + return (node, new Uri(candidate.Url).Host, candidate.IsPartialCatalog); + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is HttpRequestException or IOException or InvalidDataException or JsonException or OperationCanceledException) + { failures.Add(new IOException("目录来源失败:" + ex.GetType().Name)); } + } + throw new AggregateException("所有目录来源均不可用,请检查网络后重试。", failures); + } + public async Task GamesAsync(CancellationToken ct = default) + { + var document = await ReadAsync(DownloadSources.ManifestUrl, false, ct, n => n["versions"] is JsonArray).ConfigureAwait(false); + var data = document.Data; + var entries = data["versions"] as JsonArray ?? throw new InvalidDataException("版本列表缺失。"); + if (entries.Count is 0 or > 20000) throw new InvalidDataException("版本列表数量无效。"); + var latest = new[] { (string?)data["latest"]?["release"], (string?)data["latest"]?["snapshot"] }; + var result = entries.Select(n => + { + var id = (string?)n?["id"] ?? ""; + if (id.Length is 0 or > 160 || id.Any(char.IsControl)) throw new InvalidDataException("版本名称无效。"); + var installable = true; + try { _ = SafePath.Identifier(id); } catch (ArgumentException) { installable = false; } + return new GameCatalogVersion(id, (string?)n?["type"] ?? "unknown", + DateTimeOffset.TryParse((string?)n?["releaseTime"], out var date) ? date : DateTimeOffset.MinValue, + latest.Contains(id), installable); + }).ToArray(); + return new(result, document.Source, document.Partial); + } + public async Task> FabricAsync(string gameVersion, CancellationToken ct = default) + { + SafePath.Identifier(gameVersion); + var document = await ReadAsync("https://meta.fabricmc.net/v2/versions/loader/" + Uri.EscapeDataString(gameVersion), false, ct, n => n is JsonArray).ConfigureAwait(false); + var data = document.Data; + if (data is not JsonArray entries || entries.Count > 5000) throw new InvalidDataException("Fabric目录无效。"); + // Historical +build loader coordinates are not supported by the installation identity policy. + // Keep them from invalidating the modern versions returned in the same official response. + return entries.Where(n => !System.Text.RegularExpressions.Regex.IsMatch((string?)n?["loader"]?["version"] ?? "", + @"\A[0-9]+\.[0-9]+\.[0-9]+\+build\.[0-9]+\z", System.Text.RegularExpressions.RegexOptions.CultureInvariant)) + .Select(n => new LoaderCatalogVersion(SafePath.Identifier((string?)n?["loader"]?["version"] ?? ""), + (bool?)n?["loader"]?["stable"] ?? false)).Distinct().ToArray(); + } + public async Task> SearchAsync(ContentQuery query, CancellationToken ct = default) + { + var type = query.Kind switch { "mod" => "mod", "modpack" => "modpack", "resourcepack" => "resourcepack", + "shader" => "shader", "datapack" => "datapack", _ => throw new NotSupportedException("此来源尚不支持这类内容。") }; + if (query.Search.Length > 256 || query.Offset < 0 || query.Limit is < 1 or > 50 || query.Offset + query.Limit > 10000) throw new ArgumentException("搜索条件超出范围。"); + if (query.Sort is not ("relevance" or "downloads" or "follows" or "newest" or "updated")) throw new ArgumentException("未知排序。"); + var facets = new List { new[] { "project_type:" + type } }; + if (!string.IsNullOrWhiteSpace(query.GameVersion)) facets.Add(["versions:" + query.GameVersion]); + if (!string.IsNullOrWhiteSpace(query.Loader)) facets.Add(["categories:" + query.Loader]); + if (!string.IsNullOrWhiteSpace(query.Category)) + { + if (query.Category.Length > 80 || query.Category.Any(c => !char.IsAsciiLetterOrDigit(c) && c != '-')) throw new ArgumentException("标签无效。"); + facets.Add(["categories:" + query.Category]); + } + var url = "https://api.modrinth.com/v2/search?limit=" + query.Limit + "&offset=" + query.Offset + "&query=" + Uri.EscapeDataString(query.Search) + + "&index=" + (query.Sort == "relevance" && string.IsNullOrWhiteSpace(query.Search) ? "downloads" : query.Sort) + "&facets=" + Uri.EscapeDataString(JsonSerializer.Serialize(facets)); + var document = await ReadAsync(url, true, ct, n => n["hits"] is JsonArray).ConfigureAwait(false); + var data = document.Data; + if (data["hits"] is not JsonArray hits || hits.Count > 100) throw new InvalidDataException("资源搜索响应无效。"); + return hits.Select(n => + { + var id = SafePath.Identifier((string?)n?["project_id"] ?? ""); + var slug = SafePath.Identifier((string?)n?["slug"] ?? id); + var pageType = (string?)n?["project_type"]; + if (pageType is not ("mod" or "modpack" or "resourcepack" or "shader" or "datapack")) pageType = type; + return new ContentProject(id, slug, (string?)n?["title"] ?? id, (string?)n?["description"] ?? "", + (string?)n?["author"] ?? "", (long?)n?["downloads"] ?? 0, query.Kind, (string?)n?["icon_url"], + new Uri("https://modrinth.com/" + pageType + "/" + slug), Categories: ReadStrings(n?["categories"]), GameVersions: ReadStrings(n?["versions"]), + Updated: DateTimeOffset.TryParse((string?)n?["date_modified"], out var updated) ? updated : null); + }).ToArray(); + } + private static string[] ReadStrings(JsonNode? node) => node is JsonArray array ? array.Take(5000).Select(x => (string?)x ?? "").Where(x => x.Length is > 0 and <= 160).ToArray() : []; + public async Task> CategoriesAsync(CancellationToken ct = default) + { + var document = await ReadAsync("https://api.modrinth.com/v2/tag/category", true, ct, n => n is JsonArray).ConfigureAwait(false); + return ((JsonArray)document.Data).Take(2000).Select(n => new ContentCategory((string?)n?["name"] ?? "", (string?)n?["project_type"] ?? "")) + .Where(c => c.Id.Length is > 0 and <= 80 && c.Id.All(x => char.IsAsciiLetterOrDigit(x) || x == '-') && c.Kind is "mod" or "modpack" or "resourcepack" or "shader" or "datapack").Distinct().ToArray(); + } + public async Task> ReleasesAsync(string projectId, string? gameVersion, string? loader, CancellationToken ct = default) + { + SafePath.Identifier(projectId); + var args = new List(); + if (!string.IsNullOrWhiteSpace(gameVersion)) args.Add("game_versions=" + Uri.EscapeDataString(JsonSerializer.Serialize(new[] { gameVersion }))); + if (!string.IsNullOrWhiteSpace(loader)) args.Add("loaders=" + Uri.EscapeDataString(JsonSerializer.Serialize(new[] { loader }))); + var document = await ReadAsync("https://api.modrinth.com/v2/project/" + projectId + "/version" + (args.Count == 0 ? "" : "?" + string.Join('&', args)), true, ct, n => n is JsonArray).ConfigureAwait(false); + var data = document.Data; + if (data is not JsonArray versions || versions.Count > 10000) throw new InvalidDataException("资源版本响应无效。"); + return versions.Take(250).Select(ParseRelease).ToArray(); + } + public async Task ReleaseAsync(string releaseId, CancellationToken ct = default) + { + SafePath.Identifier(releaseId); + var result = await ReadAsync("https://api.modrinth.com/v2/version/" + releaseId, true, ct, n => n is JsonObject).ConfigureAwait(false); + return ParseRelease(result.Data); + } + public async Task ReleaseFromSha1Async(string sha1, CancellationToken ct = default) + { + if (!Content.ContentInstallFiles.Hash(sha1, 40)) throw new ArgumentException("模组哈希无效。"); + var result = await ReadAsync("https://api.modrinth.com/v2/version_file/" + sha1 + "?algorithm=sha1", true, ct, n => n is JsonObject).ConfigureAwait(false); + var release = ParseRelease(result.Data); + if (!release.Files.Any(f => f.Sha1 == sha1)) throw new InvalidDataException("在线模组身份与本地哈希不符。"); + return release; + } + public async Task> ReleasesFromHashesAsync(IReadOnlyList hashes, CancellationToken ct) + { + if (hashes.Any(h => !Content.ContentInstallFiles.Hash(h, 40))) throw new ArgumentException("模组哈希无效。"); + var result = new Dictionary(StringComparer.Ordinal); + foreach (var group in hashes.Distinct(StringComparer.Ordinal).Chunk(100)) + { + var response = await ReadAsync("https://api.modrinth.com/v2/version_files", true, ct, n => n is JsonObject, new { hashes = group, algorithm = "sha1" }); + foreach (var hash in group) + if (response.Data[hash] is { } node) + { + var release = ParseRelease(node); + if (!release.Files.Any(f => f.Sha1 == hash)) throw new InvalidDataException("批量模组身份与本地哈希不符。"); + result.Add(hash, release); + } + } + return result; + } + public async Task ProjectAsync(string projectId, CancellationToken ct = default) + { + SafePath.Identifier(projectId); + var result = await ReadAsync("https://api.modrinth.com/v2/project/" + projectId, true, ct, n => n is JsonObject).ConfigureAwait(false); + var n = result.Data; + var id = SafePath.Identifier((string?)n["id"] ?? ""); + var slug = SafePath.Identifier((string?)n["slug"] ?? id); + var kind = (string?)n["project_type"] ?? ""; + if (kind is not ("mod" or "modpack" or "resourcepack" or "shader" or "datapack")) throw new InvalidDataException("未知资源类型。"); + return new(id, slug, (string?)n["title"] ?? id, (string?)n["description"] ?? "", "", (long?)n["downloads"] ?? 0, + kind, (string?)n["icon_url"], new Uri("https://modrinth.com/" + kind + "/" + slug), (string?)n["client_side"] ?? "unknown", + Categories: ReadStrings(n["categories"]), GameVersions: ReadStrings(n["game_versions"])); + } + private static ContentRelease ParseRelease(JsonNode? n) + { + var files = (n?["files"] as JsonArray ?? []).Select(f => + { + var name = (string?)f?["filename"] ?? ""; + if (name.Length is 0 or > 200 || name.Contains('/') || name.Contains('\\') || name is "." or "..") throw new InvalidDataException("资源文件名无效。"); + var uri = new Uri((string?)f?["url"] ?? ""); + if (uri.Scheme != "https" || !string.IsNullOrEmpty(uri.UserInfo) || !uri.Host.Equals("cdn.modrinth.com", StringComparison.OrdinalIgnoreCase)) + throw new InvalidDataException("资源文件来源无效。"); + var hash = (string?)f?["hashes"]?["sha1"] ?? ""; + if (hash.Length != 40 || !hash.All(Uri.IsHexDigit)) throw new InvalidDataException("资源文件缺少SHA-1。"); + var size = (long?)f?["size"] ?? -1; + if (size is < 0 or > 2147483648) throw new InvalidDataException("资源文件大小无效。"); + return new ContentFile(name, uri, hash.ToLowerInvariant(), size, (bool?)f?["primary"] ?? false); + }).ToArray(); + var dependencies = (n?["dependencies"] as JsonArray ?? []); + if (files.Length > 64 || dependencies.Count > 128) throw new InvalidDataException("资源文件或依赖数量超限。"); + return new ContentRelease(SafePath.Identifier((string?)n?["id"] ?? ""), (string?)n?["name"] ?? "", + (string?)n?["version_number"] ?? "", DateTimeOffset.TryParse((string?)n?["date_published"], out var date) ? date : DateTimeOffset.MinValue, + Strings(n?["game_versions"]), Strings(n?["loaders"]), files, + dependencies.Select(d => new ContentDependency((string?)d?["dependency_type"] ?? "", (string?)d?["project_id"], (string?)d?["version_id"], (string?)d?["file_name"])).ToArray(), + (string?)n?["project_id"], (string?)n?["environment"] ?? "unknown", ReleaseChannel: (string?)n?["version_type"] ?? "release"); + } + private static string[] Strings(JsonNode? node) => node is JsonArray values ? values.Select(v => (string?)v ?? "").ToArray() : []; + public async Task IconAsync(string url, CancellationToken ct = default) + { + if (!Uri.TryCreate(url, UriKind.Absolute, out var uri) || uri.Scheme != "https" || + uri.Host != "cdn.modrinth.com" || uri.UserInfo.Length > 0 || uri.Fragment.Length > 0) + throw new InvalidDataException("资源图标地址不受支持。"); + foreach (var candidate in ModDownloadSources.Resolve(url, sources())) + { + ct.ThrowIfCancellationRequested(); + try + { + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(10)); + using var request = new HttpRequestMessage(HttpMethod.Get, candidate); + request.Headers.UserAgent.ParseAdd("SHOU-Launcher/1.6.2"); + using var response = await http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, timeout.Token).ConfigureAwait(false); + response.EnsureSuccessStatusCode(); + if (response.Content.Headers.ContentLength is > 524288) throw new InvalidDataException("资源图标过大。"); + await using var input = await response.Content.ReadAsStreamAsync(timeout.Token).ConfigureAwait(false); + using var result = new MemoryStream(); var buffer = new byte[8192]; + while (true) + { + var count = await input.ReadAsync(buffer, timeout.Token).ConfigureAwait(false); if (count == 0) break; + if (result.Length + count > 524288) throw new InvalidDataException("资源图标过大。"); + result.Write(buffer, 0, count); + } + return result.ToArray(); + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is HttpRequestException or IOException or InvalidDataException or OperationCanceledException) { } + } + throw new IOException("资源图标暂不可用。"); + } +} diff --git a/src/SHOU.Launcher.Core/Catalog/MinecraftCatalogGroups.cs b/src/SHOU.Launcher.Core/Catalog/MinecraftCatalogGroups.cs new file mode 100644 index 00000000..d325dfe3 --- /dev/null +++ b/src/SHOU.Launcher.Core/Catalog/MinecraftCatalogGroups.cs @@ -0,0 +1,12 @@ +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Catalog; + +public static class MinecraftCatalogGroups +{ + // Explicit identities: April 1 can also contain ordinary releases. Never invent missing manifest entries. + private static readonly HashSet AprilFools = new(StringComparer.OrdinalIgnoreCase) + { "15w14a", "1.RV-Pre1", "3D Shareware v1.34", "20w14infinite", "22w13oneblockatatime", "23w13a_or_b", "24w14potato", "25w14craftmine", "26w14a" }; + public static string Group(GameCatalogVersion version) => AprilFools.Contains(version.Id) ? "愚人节版" : version.Kind switch + { "release" => "正式版", "snapshot" => "预览版", "old_beta" or "old_alpha" => "远古版", _ => "其他版本" }; +} diff --git a/src/SHOU.Launcher.Core/ClubStatusProbe.cs b/src/SHOU.Launcher.Core/ClubStatusProbe.cs new file mode 100644 index 00000000..28e89333 --- /dev/null +++ b/src/SHOU.Launcher.Core/ClubStatusProbe.cs @@ -0,0 +1,86 @@ +using System.Net.Sockets; +using System.Text; +using System.Text.Json.Nodes; +using System.Diagnostics; +using System.Buffers.Binary; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core; + +public static class ClubStatusProbe +{ + public static async Task ProbeAsync(ClubServer server, CancellationToken ct = default) + { + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(4)); + var elapsed = Stopwatch.StartNew(); + try + { + var uri = new Uri("minecraft://" + server.Address); + var port = uri.Port >= 0 ? uri.Port : await IO.MinecraftSrvResolver.ResolvePortAsync(uri.DnsSafeHost, timeout.Token).ConfigureAwait(false); + using var tcp = new TcpClient(); await tcp.ConnectAsync(uri.Host, port, timeout.Token).ConfigureAwait(false); + await using var stream = tcp.GetStream(); + using var payload = new MemoryStream(); WriteVarInt(payload, 0); WriteVarInt(payload, 767); + var host = Encoding.UTF8.GetBytes(uri.Host); WriteVarInt(payload, host.Length); payload.Write(host); payload.WriteByte((byte)(port >> 8)); payload.WriteByte((byte)port); WriteVarInt(payload, 1); + using var packet = new MemoryStream(); WriteVarInt(packet, checked((int)payload.Length)); payload.Position = 0; payload.CopyTo(packet); packet.Write([1, 0]); + await stream.WriteAsync(packet.ToArray(), timeout.Token).ConfigureAwait(false); + var length = await ReadVarIntAsync(stream, timeout.Token).ConfigureAwait(false); if (length is < 2 or > 1048576) throw new InvalidDataException("Invalid server status length."); + if (await ReadVarIntAsync(stream, timeout.Token).ConfigureAwait(false) != 0) throw new InvalidDataException("Invalid server status packet."); + var jsonLength = await ReadVarIntAsync(stream, timeout.Token).ConfigureAwait(false); if (jsonLength is < 2 or > 1048576 || jsonLength > length) throw new InvalidDataException("Invalid server status JSON length."); + var bytes = new byte[jsonLength]; await stream.ReadExactlyAsync(bytes, timeout.Token).ConfigureAwait(false); + var json = JsonNode.Parse(bytes); var online = (int?)json?["players"]?["online"]; + if (online is null or < 0) throw new InvalidDataException("Invalid online player count."); + var version = json?["version"]?["name"] is JsonValue versionValue && versionValue.TryGetValue(out var versionText) ? versionText : null; + int? maximum = json?["players"]?["max"] is JsonValue maxValue && maxValue.TryGetValue(out var max) && max >= 0 ? max : null; + var favicon = json?["favicon"] is JsonValue iconValue && iconValue.TryGetValue(out var iconText) ? iconText : null; + var queryMilliseconds = elapsed.ElapsedMilliseconds; + long? ping = null; + try { ping = await PingAsync(stream, timeout.Token).ConfigureAwait(false); } + catch (OperationCanceledException) when (!ct.IsCancellationRequested) { /* Keep the valid status if only the query deadline expired while awaiting Pong. */ } + ct.ThrowIfCancellationRequested(); + return server with { Status = "在线", OnlinePlayers = online, MaximumPlayers = maximum, Motd = PlainMotd(json?["description"]), GameVersion = version is null ? null : version[..Math.Min(128, version.Length)], ResponseMilliseconds = queryMilliseconds, PingMilliseconds = ping, IconPng = Icon(favicon) }; + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is IOException or InvalidDataException or SocketException or OperationCanceledException or System.Text.Json.JsonException or UriFormatException or InvalidOperationException or FormatException) + { return server with { Status = "状态暂不可用", OnlinePlayers = null, MaximumPlayers = null, Motd = null, PingMilliseconds = null, ResponseMilliseconds = null, GameVersion = null, IconPng = null }; } + } + private static async Task PingAsync(Stream stream, CancellationToken ct) + { + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromMilliseconds(750)); + try + { + var nonce = Stopwatch.GetTimestamp(); var packet = new byte[10]; packet[0] = 9; packet[1] = 1; BinaryPrimitives.WriteInt64BigEndian(packet.AsSpan(2), nonce); + var elapsed = Stopwatch.StartNew(); await stream.WriteAsync(packet, timeout.Token).ConfigureAwait(false); + if (await ReadVarIntAsync(stream, timeout.Token).ConfigureAwait(false) != 9 || await ReadVarIntAsync(stream, timeout.Token).ConfigureAwait(false) != 1) return null; + var reply = new byte[8]; await stream.ReadExactlyAsync(reply, timeout.Token).ConfigureAwait(false); + return BinaryPrimitives.ReadInt64BigEndian(reply) == nonce ? elapsed.ElapsedMilliseconds : null; + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is IOException or OperationCanceledException or SocketException) { return null; } + } + private static string PlainMotd(JsonNode? value) + { + var result = new StringBuilder(); var remaining = 128; + void Append(JsonNode? node, int depth) + { + if (node is null || depth > 16 || --remaining < 0 || result.Length >= 4096) return; + if (node is JsonValue literal && literal.TryGetValue(out var text)) result.Append(text[..Math.Min(text.Length, 4096 - result.Length)]); + else if (node is JsonArray array) { foreach (var item in array) { if (remaining <= 0 || result.Length >= 4096) break; Append(item, depth + 1); } } + else if (node is JsonObject obj) { Append(obj["text"], depth + 1); Append(obj["extra"], depth + 1); } + } + Append(value, 0); return System.Text.RegularExpressions.Regex.Replace(result.ToString(), "§[0-9A-FK-ORa-fk-or]", ""); + } + private static byte[]? Icon(string? value) + { + const string prefix = "data:image/png;base64,"; + if (value is null || !value.StartsWith(prefix, StringComparison.Ordinal) || value.Length > 48 * 1024) return null; + try + { + var bytes = Convert.FromBase64String(value[prefix.Length..]); + return bytes.Length >= 24 && bytes.AsSpan(0, 8).SequenceEqual(new byte[] { 137, 80, 78, 71, 13, 10, 26, 10 }) && bytes.AsSpan(12, 4).SequenceEqual("IHDR"u8) && BinaryPrimitives.ReadInt32BigEndian(bytes.AsSpan(16, 4)) == 64 && BinaryPrimitives.ReadInt32BigEndian(bytes.AsSpan(20, 4)) == 64 ? bytes : null; + } + catch (FormatException) { return null; } + } + private static void WriteVarInt(Stream stream, int value) { do { var b = value & 0x7f; value >>>= 7; stream.WriteByte((byte)(b | (value != 0 ? 0x80 : 0))); } while (value != 0); } + private static async Task ReadVarIntAsync(Stream stream, CancellationToken ct) + { var value = 0; var bytes = new byte[1]; for (var index = 0; index < 5; index++) { await stream.ReadExactlyAsync(bytes, ct).ConfigureAwait(false); value |= (bytes[0] & 0x7f) << (index * 7); if ((bytes[0] & 0x80) == 0) return value; } throw new InvalidDataException("Oversized VarInt."); } +} diff --git a/src/SHOU.Launcher.Core/Community/ClubUpdatesClient.cs b/src/SHOU.Launcher.Core/Community/ClubUpdatesClient.cs new file mode 100644 index 00000000..5ee97495 --- /dev/null +++ b/src/SHOU.Launcher.Core/Community/ClubUpdatesClient.cs @@ -0,0 +1,92 @@ +using System.Text.Json; +using PCL.Core.Conduit; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Community; + +/// Reads public club articles as text, with bounded requests and validated offline cache. +public sealed class ClubUpdatesClient(HttpClient http, string cacheDirectory) +{ + private const int MaximumHtmlBytes = 2 * 1024 * 1024; + private string Cache(string name) + { VerifiedDownloader.RejectLink(cacheDirectory); return Path.Combine(Path.GetFullPath(cacheDirectory), name); } + public async Task GetHistoryAsync(bool refresh, CancellationToken ct) + { + var path = Cache("index.json"); var cached = await ReadCacheAsync(path, ct).ConfigureAwait(false); + if (cached is not null && (cached.Notices is null || cached.Notices.Count is 0 or > 1000 || cached.Notices.Any(n => !Valid(n)) || cached.FetchedAt > DateTimeOffset.UtcNow.AddMinutes(5))) cached = null; + if (!refresh && cached is not null && DateTimeOffset.UtcNow - cached.FetchedAt < TimeSpan.FromMinutes(15)) return cached with { FromCache = true }; + try + { + var text = await ReadHtmlAsync(new(ClubUpdateNoticeParser.IndexUrl), ct).ConfigureAwait(false); + var notices = ClubUpdateNoticeParser.Parse(text).Take(100).ToArray(); + if (notices.Length == 0) throw new InvalidDataException("社团更新目录暂未返回可阅读文章。"); + var result = new ClubUpdateHistory(notices, DateTimeOffset.UtcNow); + return await TryWriteCacheAsync(path, result, ct).ConfigureAwait(false) ? result + : result with { Warning = "日志已读取;本地缓存暂时无法保存。" }; + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is HttpRequestException or IOException or InvalidDataException or OperationCanceledException) + { + if (cached is not null) return cached with { FromCache = true, Warning = "社团网站暂不可用,正在显示本地缓存。" }; + throw new IOException("暂时无法读取社团更新日志,请重试。", ex); + } + } + public async Task GetArticleAsync(ClubUpdateNotice notice, bool refresh, CancellationToken ct) + { + if (!Valid(notice)) throw new InvalidDataException("社团文章地址无效。"); + var path = Cache(notice.Id + ".json"); var cached = await ReadCacheAsync(path, ct).ConfigureAwait(false); + if (cached is not null && (!Valid(cached.Notice) || cached.Notice.Id != notice.Id || cached.Body is null || cached.Body.Length is 0 or > 120000)) cached = null; + if (!refresh && cached is not null) return cached; + try + { + var body = await ReadHtmlAsync(notice.Url, ct).ConfigureAwait(false); + var article = ClubUpdateNoticeParser.ParseArticle(body, notice) ?? throw new InvalidDataException("文章正文暂不可用。"); + await TryWriteCacheAsync(path, article, ct).ConfigureAwait(false); return article; + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is HttpRequestException or IOException or InvalidDataException or OperationCanceledException) + { if (cached is not null) return cached; throw new IOException("文章正文读取失败,可重试或在社团网站阅读。", ex); } + } + private static bool Valid(ClubUpdateNotice? notice) => notice is { Title.Length: > 0 and <= 200, Url: not null } + && ClubUpdateNoticeParser.TryGetTrustedArticle(notice.Url.AbsoluteUri, out var date, out _) && date == notice.Date; + private async Task ReadHtmlAsync(Uri uri, CancellationToken ct) + { + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(15)); + using var request = new HttpRequestMessage(HttpMethod.Get, uri); + request.Headers.UserAgent.ParseAdd("SHOU-Launcher/1.6.2"); + using var response = await http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, timeout.Token).ConfigureAwait(false); + // The dedicated client disables automatic redirects: no remote page can send a request off the trusted origin. + response.EnsureSuccessStatusCode(); + if (response.RequestMessage?.RequestUri is not { } actual || actual.Scheme != "https" || actual.Host != ClubUpdateNoticeParser.TrustedHost) + throw new InvalidDataException("社团页面跳转到了未支持的地址。"); + if (response.Content.Headers.ContentLength > MaximumHtmlBytes) throw new InvalidDataException("社团页面超过大小限制。"); + await using var stream = await response.Content.ReadAsStreamAsync(timeout.Token).ConfigureAwait(false); + using var output = new MemoryStream(); var buffer = new byte[16384]; int read; + while ((read = await stream.ReadAsync(buffer, timeout.Token).ConfigureAwait(false)) > 0) + { if (output.Length + read > MaximumHtmlBytes) throw new InvalidDataException("社团页面超过大小限制。"); output.Write(buffer, 0, read); } + return System.Text.Encoding.UTF8.GetString(output.ToArray()); + } + private static async Task ReadCacheAsync(string path, CancellationToken ct) + { + try + { + VerifiedDownloader.RejectLink(path); if (!File.Exists(path) || new FileInfo(path).Length > MaximumHtmlBytes) return default; + return JsonSerializer.Deserialize(await File.ReadAllTextAsync(path, ct).ConfigureAwait(false)); + } + catch (Exception ex) when (ex is JsonException or IOException or UnauthorizedAccessException) { return default; } + } + private static async Task WriteCacheAsync(string path, T value, CancellationToken ct) + { + VerifiedDownloader.RejectLink(Path.GetDirectoryName(path)!); Directory.CreateDirectory(Path.GetDirectoryName(path)!); + VerifiedDownloader.RejectLink(path); var temporary = path + ".tmp-" + Guid.NewGuid().ToString("N"); + try { await File.WriteAllTextAsync(temporary, JsonSerializer.Serialize(value), ct).ConfigureAwait(false); ct.ThrowIfCancellationRequested(); File.Move(temporary, path, true); } + finally { if (File.Exists(temporary)) File.Delete(temporary); } + } + private static async Task TryWriteCacheAsync(string path, T value, CancellationToken ct) + { + try { await WriteCacheAsync(path, value, ct).ConfigureAwait(false); return true; } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { return false; } + } +} diff --git a/src/SHOU.Launcher.Core/Configuration/BuildConfiguration.cs b/src/SHOU.Launcher.Core/Configuration/BuildConfiguration.cs new file mode 100644 index 00000000..c5ed222a --- /dev/null +++ b/src/SHOU.Launcher.Core/Configuration/BuildConfiguration.cs @@ -0,0 +1,39 @@ +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Configuration; + +public sealed partial class BuildConfiguration : IBuildConfiguration +{ + private static string? Read(string name) + { + if (EmbeddedValues.TryGetValue(name, out var value)) return value; +#if DEBUG + if (name != "GITHUB_SHA") return Environment.GetEnvironmentVariable("PCL_" + name); +#endif + return null; + } + public string? MicrosoftClientId => Read("MS_CLIENT_ID"); + public string? CurseForgeApiKey => Read("CURSEFORGE_API_KEY"); + public string SourceSha => EmbeddedValues.GetValueOrDefault("GITHUB_SHA") ?? "unconfigured"; + public string OwnerAssembly => typeof(BuildConfiguration).Assembly.GetName().Name!; + public string Configuration => +#if DEBUG + "Debug"; +#elif CI + "CI"; +#elif BETA + "Beta"; +#else + "Release"; +#endif + public BuildIdentity GetIdentity() + { + using var stream = typeof(BuildConfiguration).Assembly.GetManifestResourceStream("PCL.metadata.json") + ?? throw new InvalidOperationException("Required PCL.metadata.json resource is missing."); + using var metadata = JsonDocument.Parse(stream); + return new(metadata.RootElement.GetProperty("name").GetString()!, + metadata.RootElement.GetProperty("version").GetProperty("base").GetString()!, metadata.RootElement.GetProperty("codename").GetString()!, SourceSha, + Configuration, OwnerAssembly, !string.IsNullOrWhiteSpace(MicrosoftClientId), !string.IsNullOrWhiteSpace(CurseForgeApiKey)); + } +} diff --git a/src/SHOU.Launcher.Core/Configuration/ConfigurationStore.cs b/src/SHOU.Launcher.Core/Configuration/ConfigurationStore.cs new file mode 100644 index 00000000..ee255b43 --- /dev/null +++ b/src/SHOU.Launcher.Core/Configuration/ConfigurationStore.cs @@ -0,0 +1,174 @@ +using System.Text.Json; +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Configuration; + +public sealed record LauncherState(LauncherSettings Settings, IReadOnlyList Instances, + IReadOnlyList Accounts, string? SelectedAccountId = null, string? SelectedInstanceId = null); + +/// Versioned preview sidecar; does not rewrite legacy Windows config or encrypted profiles. +public sealed class ConfigurationStore(IAppPaths paths) : IAsyncDisposable +{ + private readonly SemaphoreSlim gate = new(1, 1); + private JsonObject root = new(); + private bool canWrite = true; + private readonly string file = Core.IO.SafePath.Within(paths.LocalDataDirectory, "shou.desktop.v1.json"); + public bool CanWrite => canWrite; + public static JsonSerializerOptions JsonOptions { get; } = new(JsonSerializerDefaults.Web) { WriteIndented = true }; + public async Task LoadAsync(CancellationToken ct = default) + { + await gate.WaitAsync(ct).ConfigureAwait(false); + try + { + _ = Core.IO.SafePath.Within(paths.LocalDataDirectory, "shou.desktop.v1.json"); + if (!File.Exists(file)) return new(new(LaunchOptions: new(AutomaticMemory: true)), [], []); + try + { + root = JsonNode.Parse(await File.ReadAllTextAsync(file, ct).ConfigureAwait(false)) as JsonObject + ?? throw new InvalidDataException("Configuration root is invalid."); + if (((int?)root["schemaVersion"] ?? 1) > 1) { canWrite = false; throw new InvalidDataException("Configuration uses a future schema; writing is disabled."); } + var settings = root["settings"]?.Deserialize(JsonOptions) ?? new(); + // Old Desktop builds persisted the default 8. Upgrade that default once; + // settings saved by this build carry a revision, so an explicit 8 stays 8. + if (root["settings"]?["downloads"] is JsonObject downloads && !downloads.ContainsKey("concurrencyVersion") + && settings.Downloads is { MaximumConnections: 8 } oldDownloads) + settings = settings with { Downloads = oldDownloads with { MaximumConnections = DownloadDefaults.Connections } }; + ValidateSettings(settings); + var instances = root["instances"]?.Deserialize(JsonOptions) ?? []; + ValidateInstances(instances, settings); + return new(settings, + instances, root["accounts"]?.Deserialize(JsonOptions) ?? [], + (string?)root["selectedAccountId"], (string?)root["selectedInstanceId"]); + } + catch (Exception ex) when (ex is JsonException or InvalidDataException or IOException or InvalidOperationException or ArgumentException) + { canWrite = false; throw new InvalidDataException("Configuration cannot be read safely; original file is preserved and writes are disabled.", ex); } + } + finally { gate.Release(); } + } + public async Task SaveAsync(LauncherState state, CancellationToken ct = default, bool writeAccounts = true) + { + await gate.WaitAsync(ct).ConfigureAwait(false); + try + { + if (!canWrite) throw new InvalidOperationException("Persistence is disabled after a configuration read failure."); + ValidateSettings(state.Settings); + ValidateInstances(state.Instances, state.Settings); + var next = (JsonObject)root.DeepClone(); + next["schemaVersion"] = 1; + var settings = root["settings"]?.DeepClone() as JsonObject ?? new JsonObject(); + MergeKnown(settings, JsonSerializer.SerializeToNode(state.Settings, JsonOptions)!.AsObject()); + next["settings"] = settings; + var oldInstances = (root["instances"] as JsonArray ?? []).OfType().Where(n => (string?)n["id"] is not null).ToDictionary(n => (string)n["id"]!, StringComparer.Ordinal); + var mergedInstances = new JsonArray(); + foreach (var instance in state.Instances) + { + var node = oldInstances.TryGetValue(instance.Id, out var old) ? (JsonObject)old.DeepClone() : new JsonObject(); + foreach (var property in JsonSerializer.SerializeToNode(instance, JsonOptions)!.AsObject()) + { + if (property.Value is JsonObject values && node[property.Key] is JsonObject existing) + { MergeKnown(existing, values); } + else if (property.Key == "launchOptions" && property.Value is null && node[property.Key] is JsonObject previousOptions && HasUnknownLaunchOptions(previousOptions)) previousOptions["inheritGlobal"] = true; + else node[property.Key] = property.Value?.DeepClone(); + } + mergedInstances.Add(node); + } + next["instances"] = mergedInstances; + if (writeAccounts) + { + next["accounts"] = JsonSerializer.SerializeToNode(state.Accounts, JsonOptions); + next["selectedAccountId"] = state.SelectedAccountId; + } + next["selectedInstanceId"] = state.SelectedInstanceId; + Directory.CreateDirectory(Path.GetDirectoryName(file)!); + _ = Core.IO.SafePath.Within(paths.LocalDataDirectory, "shou.desktop.v1.json"); + var temporary = Core.IO.SafePath.Within(paths.LocalDataDirectory, "shou.desktop.v1.json.tmp-" + Guid.NewGuid().ToString("N")); + var created = false; + try + { + await using (var stream = new FileStream(temporary, FileMode.CreateNew, FileAccess.Write, FileShare.None, 65536, true)) + { + created = true; + await JsonSerializer.SerializeAsync(stream, next, JsonOptions, ct).ConfigureAwait(false); + await stream.FlushAsync(ct).ConfigureAwait(false); + } + if (File.Exists(file)) { Core.Downloads.VerifiedDownloader.RejectLink(file); Core.Downloads.VerifiedDownloader.RejectLink(file + ".bak"); File.Copy(file, file + ".bak", true); } + ct.ThrowIfCancellationRequested(); File.Move(temporary, file, true); + } + finally { if (created && File.Exists(temporary)) File.Delete(temporary); } + root = next; + } + finally { gate.Release(); } + } + public static void ValidateSettings(LauncherSettings settings) + { + Minecraft.GameSettingsPolicy.Validate(settings.LaunchOptions ?? new()); + var launcher = settings.Launcher ?? new(); + if (launcher.LogLineLimit is < 100 or > 20000) throw new ArgumentException("实时日志行数须为 100–20000。"); + if (launcher.RegionalFormat != "system") _ = System.Globalization.CultureInfo.GetCultureInfo(launcher.RegionalFormat); + var download = settings.Downloads ?? new(); + if (download.MaximumConnections is < 1 or > DownloadDefaults.MaximumConnections || download.MaximumKiBPerSecond is < 0 or > 1048576 || !Enum.IsDefined(download.SourcePreference)) throw new ArgumentException("下载并发须为 1–256,限速须为 0–1048576 KiB/s(0 不限速)。"); + foreach (var property in typeof(LauncherSettings).GetProperties()) + if (!GeneratedSettingsSchema.Entries.Contains(property.Name, StringComparer.Ordinal)) throw new InvalidOperationException("Unregistered generated settings key: " + property.Name); + if (settings.MemoryMiB is < 512 or > 32768) throw new ArgumentException("内存须在512–32768 MiB之间。"); + if (settings.MinimumMemoryMiB is { } minimum && (minimum < 512 || minimum > settings.MemoryMiB)) + throw new ArgumentException("初始内存须为512 MiB至最大内存之间的整数。"); + if (settings.GameWindowWidth.HasValue != settings.GameWindowHeight.HasValue || + settings.GameWindowWidth is < 320 or > 16384 || settings.GameWindowHeight is < 320 or > 16384) + throw new ArgumentException("自定义窗口宽高须同时填写,范围为320–16384。"); + if (settings.CustomInfo is { } info && (info.Length > 256 || info.Any(char.IsControl))) + throw new ArgumentException("自定义信息须为不超过256字的单行文字。"); + if (settings.JavaExecutable is { Length: > 0 } java && !Path.IsPathFullyQualified(java)) throw new ArgumentException("Java路径必须为绝对路径。"); + if (settings.JavaTrustSelection is { } selection && + (!Path.IsPathFullyQualified(selection.SelectedJavaExecutable) + || selection.PreviousJavaExecutable is { } previous && !Path.IsPathFullyQualified(previous))) + throw new ArgumentException("Java回退记录必须包含绝对路径或自动选择。"); + if (settings.GameRoot is { Length: > 0 } root && !Path.IsPathFullyQualified(root)) throw new ArgumentException("游戏目录必须为绝对路径。"); + if (settings.Theme is not ("System" or "Light" or "Dark")) throw new ArgumentException("未知主题。"); + _ = PCL.Core.Conduit.DownloadSources.Parse(settings.DownloadSourcesJson); + if (settings.MicrosoftClientId is { Length: > 0 } id && !Guid.TryParse(id, out _)) throw new ArgumentException("Microsoft Client ID须为GUID。"); + if (settings.Proxy is { } declaredProxy && !Enum.IsDefined(declaredProxy.Mode)) throw new ArgumentException("未知代理模式。"); + if (settings.Proxy is { Mode: ProxyMode.Custom } proxy && (!Uri.TryCreate(proxy.Address, UriKind.Absolute, out var address) || address.Scheme is not ("http" or "https") || !string.IsNullOrEmpty(address.UserInfo) || !string.IsNullOrEmpty(address.Query) || !string.IsNullOrEmpty(address.Fragment))) + throw new ArgumentException("代理须为不含凭据的HTTP(S)地址。"); + if (settings.Aria2 is { Enabled: true } aria && (!Uri.TryCreate(aria.Endpoint, UriKind.Absolute, out var endpoint) || endpoint.Scheme is not ("http" or "https") || !string.IsNullOrEmpty(endpoint.UserInfo) || !string.IsNullOrEmpty(endpoint.Query) || !string.IsNullOrEmpty(endpoint.Fragment))) + throw new ArgumentException("aria2 RPC须为不含凭据的HTTP(S)地址。"); + } + public static void ValidateInstances(IReadOnlyList instances, LauncherSettings settings) + { + if (instances.Count > 10000 || instances.Any(i => i is null) || instances.Select(i => i.Id).Distinct(StringComparer.Ordinal).Count() != instances.Count) throw new InvalidDataException("实例数量超限或标识重复。"); + foreach (var instance in instances) + { + if (instance.Directories is { } directories) + { + _ = Instances.InstanceDirectoryPolicy.Resolve(instance, directories, settings); + if (instance.Origin is { } source && (!PathEquals(directories.IsolatedDirectory, source.VersionDirectory) || !PathEquals(directories.SharedDirectory, source.MinecraftRoot))) throw new InvalidDataException("实例隔离目录与来源不一致。"); + } + if (instance.LaunchOptions is { } options) Minecraft.GameSettingsPolicy.Validate(options); + if (instance.Origin is { } origin && (!Path.IsPathFullyQualified(origin.MinecraftRoot) || !Path.IsPathFullyQualified(origin.VersionDirectory) || origin.OriginalVersionId is null || origin.MetadataSha256 is null || origin.MetadataSha256.Length != 64 || !origin.MetadataSha256.All(Uri.IsHexDigit))) throw new InvalidDataException("实例来源记录无效。"); + Core.IO.SafePath.Identifier(instance.Id); + if (string.IsNullOrWhiteSpace(instance.Name) || instance.Name.Length > 160 || instance.Name.Any(char.IsControl)) throw new InvalidDataException("实例名称无效。"); + if (instance.GameVersionId is { } version) Core.IO.SafePath.Identifier(version); + if (instance.MemoryMiB is < 512 or > 32768 || (Minecraft.GameSettingsPolicy.Options(instance, settings).MinimumMemoryMiB ?? settings.MinimumMemoryMiB) > (instance.MemoryMiB ?? settings.MemoryMiB)) throw new InvalidDataException("实例内存设置无效。"); + if (instance.Presentation is not { } presentation) continue; + if (presentation.IconImageSha256 is { } image && (image.Length != 64 || !image.All(c => c is >= '0' and <= '9' or >= 'a' and <= 'f'))) throw new InvalidDataException("实例图标身份无效。"); + if (presentation.Icon is null || presentation.Category is null || presentation.Description is null || presentation.LaunchCount < 0 || presentation.Icon.Length > 80 || presentation.Icon.Any(char.IsControl) + || presentation.Category.Length > 80 || presentation.Category.Any(char.IsControl) || presentation.Description.Length > 4096 + || presentation.Description.Any(c => char.IsControl(c) && c is not ('\r' or '\n' or '\t'))) throw new InvalidDataException("实例个性化数据无效。"); + } + } + private static void MergeKnown(JsonObject target, JsonObject values) + { + foreach (var property in values) + { + if (property.Value is JsonObject incoming && target[property.Key] is JsonObject existing) MergeKnown(existing, incoming); + else target[property.Key] = property.Value?.DeepClone(); + } + } + private static bool PathEquals(string a, string b) => string.Equals(Path.TrimEndingDirectorySeparator(Path.GetFullPath(a)), Path.TrimEndingDirectorySeparator(Path.GetFullPath(b)), OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); + private static bool HasUnknownLaunchOptions(JsonObject options) + { + var known = JsonSerializer.SerializeToNode(new GameLaunchOptions(), JsonOptions)!.AsObject(); + return options.Any(p => !known.ContainsKey(p.Key)); + } + public async ValueTask DisposeAsync() { await gate.WaitAsync().ConfigureAwait(false); gate.Release(); gate.Dispose(); } +} diff --git a/src/SHOU.Launcher.Core/Configuration/lifecycle.registry b/src/SHOU.Launcher.Core/Configuration/lifecycle.registry new file mode 100644 index 00000000..b91e61c5 --- /dev/null +++ b/src/SHOU.Launcher.Core/Configuration/lifecycle.registry @@ -0,0 +1,8 @@ +# Bootstrap validates this generated startup order. +Paths +DataLock +Configuration +Credentials +Network +Accounts +UI diff --git a/src/SHOU.Launcher.Core/Configuration/settings.schema b/src/SHOU.Launcher.Core/Configuration/settings.schema new file mode 100644 index 00000000..f1427327 --- /dev/null +++ b/src/SHOU.Launcher.Core/Configuration/settings.schema @@ -0,0 +1,20 @@ +# Stable nonsecret sidecar keys; legacy Windows files remain untouched until W gates pass. +GameRoot +JavaExecutable +MemoryMiB +Language +Theme +DownloadSourcesJson +Proxy +Aria2 +MicrosoftClientId +ConduitJavaTrustAutoRepair +GameWindowWidth +GameWindowHeight +GameFullscreen +MinimumMemoryMiB +CustomInfo +JavaTrustSelection +LaunchOptions +Downloads +Launcher diff --git a/src/SHOU.Launcher.Core/Content/ContentInstallFiles.cs b/src/SHOU.Launcher.Core/Content/ContentInstallFiles.cs new file mode 100644 index 00000000..3feb5ada --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/ContentInstallFiles.cs @@ -0,0 +1,137 @@ +using System.Security.Cryptography; +using System.Text.Json; +using System.Text; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Content; + +public static class ContentInstallFiles +{ + public const string ManifestName = ".shou-content-manifest.json"; + public const int MaximumManifestFiles = int.MaxValue; + private const int MaximumManifestBytes = int.MaxValue; + internal static byte[] SerializeManifest(ContentInstallManifest manifest) + { + if (manifest.Files.Count > MaximumManifestFiles) throw new InvalidDataException($"实例安装清单超过{MaximumManifestFiles}条限制。"); + var bytes = JsonSerializer.SerializeToUtf8Bytes(manifest); + if (bytes.Length > MaximumManifestBytes) throw new InvalidDataException("安装清单长度超出系统可表示范围。"); + return bytes; + } + public static string PathKey(string path) => path.Normalize(NormalizationForm.FormC).ToUpperInvariant(); + public static void ValidateFile(ContentFile file) + { + if (file.FileName.Length == 0 || file.FileName.Any(c => char.IsControl(c) || c is '/' or '\\' or ':') || file.FileName is "." or ".." || + !Hash(file.Sha1, 40) || file.Size is < 0 or > ContentInstallPlanner.MaximumTotalBytes || !(file.ManualFile is { } manual ? ValidManual(file, manual) : AllowedResourceUri(file.Uri))) throw new InvalidDataException("资源文件身份、来源或大小无效。"); + } + private static bool ValidManual(ContentFile file, CurseForgeManualFile manual) => manual.ProjectId > 0 && manual.FileId > 0 + && manual.FileName == file.FileName && manual.Sha1 == file.Sha1 && manual.Size == file.Size && manual.PageUri == file.Uri + && file.Uri == new Uri($"https://www.curseforge.com/projects/{manual.ProjectId}/files/{manual.FileId}"); + public static bool Hash(string? value, int length) => value is not null && value.Length == length && value.All(Uri.IsHexDigit); + public static bool AllowedUri(Uri uri) => uri.IsAbsoluteUri && uri.Scheme == "https" && uri.Host.Equals("cdn.modrinth.com", StringComparison.OrdinalIgnoreCase) && uri.UserInfo.Length == 0 && uri.Fragment.Length == 0 && uri.IsDefaultPort; + private static bool AllowedResourceUri(Uri uri) => AllowedUri(uri) || CurseForgePackResolver.AllowedCurseForgeUri(uri); + public static string Literal(string root, string relative) + { + if (relative.Length == 0 || relative.Contains('\\') || relative.Split('/').Any(p => p.Length == 0 || p is "." or ".." || p.Any(c => char.IsControl(c) || c == ':'))) throw new InvalidDataException("文件路径无效。"); + var full = Path.GetFullPath(Path.Combine(root, relative)); + if (!SafePath.IsWithin(Path.GetFullPath(root), full)) throw new IOException("文件路径越界。"); + VerifiedDownloader.RejectLink(full); return full; + } + public static async Task ReadManifestAsync(GameInstance instance, CancellationToken ct = default) + { + var path = Literal(instance.GameDirectory, ManifestName); + if (!File.Exists(path)) return new(1, instance.Id, []); + if (new FileInfo(path).Length > MaximumManifestBytes) throw new InvalidDataException("安装清单过大,原文件保留。"); + var manifest = JsonSerializer.Deserialize(await File.ReadAllBytesAsync(path, ct).ConfigureAwait(false)); + if (manifest is null || manifest.FormatVersion != 1 || manifest.InstanceId != instance.Id || manifest.Files is null || manifest.Files.Count > MaximumManifestFiles || + manifest.Files.Select(f => PathKey(f.RelativePath)).Distinct(StringComparer.Ordinal).Count() != manifest.Files.Count) throw new InvalidDataException("安装清单无效,原文件保留。"); + foreach (var item in manifest.Files) + { + _ = Literal(instance.GameDirectory, item.RelativePath); + if (!Hash(item.Sha1, 40) || !Hash(item.Sha512, 128) || item.Size is < 0 or > ContentInstallPlanner.MaximumTotalBytes || + item.DownloadUrl is { } url && (!Uri.TryCreate(url, UriKind.Absolute, out var uri) || !PackPayloadPath.DownloadUri(uri))) throw new InvalidDataException("安装清单文件身份无效。"); + } + return manifest; + } + public static async Task MatchesAsync(string path, string sha1, long size, CancellationToken ct) + { + VerifiedDownloader.RejectLink(path); + if (!File.Exists(path)) return false; + await using var stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); + if (stream.Length != size) return false; + return Convert.ToHexStringLower(await SHA1.HashDataAsync(stream, ct).ConfigureAwait(false)).Equals(sha1, StringComparison.OrdinalIgnoreCase); + } + public static async Task CheckConflictsAsync(string root, IReadOnlyList files, CancellationToken ct) + { + foreach (var file in files) + { + var target = Literal(root, file.RelativePath); + var exists = File.Exists(target); + if (Directory.Exists(target) || exists && !await MatchesAsync(target, file.File.Sha1, file.File.Size, ct).ConfigureAwait(false)) throw new IOException("目标已有不同文件,未覆盖:" + file.RelativePath); + var parent = Path.GetDirectoryName(target)!; + if (!exists && Directory.Exists(parent) && Directory.EnumerateFileSystemEntries(parent).Any(p => PathKey(Path.GetFileName(p)) == PathKey(Path.GetFileName(target)) && Path.GetFileName(p) != Path.GetFileName(target))) throw new IOException("目标存在仅大小写或Unicode形式不同的文件:" + file.RelativePath); + } + } + public static async Task InstallAsync(GameInstance instance, ContentInstallPlan plan, + Func download, CancellationToken ct = default, + Func? validateTarget = null) + { + if (plan.InstanceId != instance.Id || plan.Files.Count is 0 or > ContentInstallPlanner.MaximumProjects || plan.Files.Select(f => PathKey(f.RelativePath)).Distinct(StringComparer.Ordinal).Count() != plan.Files.Count) throw new InvalidDataException("安装计划身份、文件数量或路径冲突无效。"); + VerifiedDownloader.RejectLink(instance.GameDirectory); + var previous = await ReadManifestAsync(instance, ct).ConfigureAwait(false); + var manifestPath = Literal(instance.GameDirectory, ManifestName); + var previousBytes = File.Exists(manifestPath) ? await File.ReadAllBytesAsync(manifestPath, ct).ConfigureAwait(false) : null; + await CheckConflictsAsync(instance.GameDirectory, plan.Files, ct).ConfigureAwait(false); + var stage = Literal(instance.GameDirectory, ".shou-content-stage-" + Guid.NewGuid().ToString("N")); + Directory.CreateDirectory(stage); + var added = new List(); var completed = new List(); var committed = false; + var createdParents = new HashSet(); + try + { + foreach (var file in plan.Files) + { + ct.ThrowIfCancellationRequested(); ValidateFile(file.File); + var staging = Literal(stage, file.RelativePath); Directory.CreateDirectory(Path.GetDirectoryName(staging)!); + await download(file.File, staging, ct).ConfigureAwait(false); + if (!await MatchesAsync(staging, file.File.Sha1, file.File.Size, ct).ConfigureAwait(false)) throw new InvalidDataException("资源文件校验失败,实例原文件未改变。"); + await using var input = new FileStream(staging, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); + var sha512 = Convert.ToHexStringLower(await SHA512.HashDataAsync(input, ct).ConfigureAwait(false)); + completed.Add(new(file.ProjectId, file.ReleaseId, file.Kind, file.RelativePath, file.File.Sha1, sha512, file.File.Size, file.File.Uri.AbsoluteUri)); + } + await CheckConflictsAsync(instance.GameDirectory, plan.Files, ct).ConfigureAwait(false); + if (validateTarget is not null) await validateTarget(false, ct).ConfigureAwait(false); + var merged = previous.Files.Where(f => completed.All(n => PathKey(n.RelativePath) != PathKey(f.RelativePath))).Concat(completed).ToArray(); + if (merged.Length > MaximumManifestFiles) throw new InvalidDataException($"实例安装清单超过{MaximumManifestFiles}条限制。"); + var nextManifest = Literal(stage, ManifestName); + await File.WriteAllBytesAsync(nextManifest, ContentInstallFiles.SerializeManifest(new ContentInstallManifest(1, instance.Id, merged)), ct).ConfigureAwait(false); + foreach (var file in plan.Files) + { + ct.ThrowIfCancellationRequested(); var target = Literal(instance.GameDirectory, file.RelativePath); + var parent = Path.GetDirectoryName(target)!; + if (!Directory.Exists(parent)) { Directory.CreateDirectory(parent); createdParents.Add(parent); } + target = Literal(instance.GameDirectory, file.RelativePath); + if (File.Exists(target)) { if (!await MatchesAsync(target, file.File.Sha1, file.File.Size, ct).ConfigureAwait(false)) throw new IOException("目标在安装时改变,已停止。"); continue; } + File.Move(Literal(stage, file.RelativePath), target, false); added.Add(file); + } + ct.ThrowIfCancellationRequested(); _ = Literal(instance.GameDirectory, ManifestName); + if (validateTarget is not null) await validateTarget(true, ct).ConfigureAwait(false); + var current = File.Exists(manifestPath) ? await File.ReadAllBytesAsync(manifestPath, ct).ConfigureAwait(false) : null; + if (!(previousBytes is null ? current is null : current is not null && previousBytes.AsSpan().SequenceEqual(current))) throw new IOException("安装清单已被其他操作改变,已回滚新增文件。"); + ct.ThrowIfCancellationRequested(); _ = Literal(instance.GameDirectory, ManifestName); + File.Move(nextManifest, manifestPath, true); committed = true; + return new(instance.Id, manifestPath, completed, added.Count, plan.Warnings); + } + finally + { + if (!committed) foreach (var file in added) + { + var target = Literal(instance.GameDirectory, file.RelativePath); + if (await MatchesAsync(target, file.File.Sha1, file.File.Size, CancellationToken.None).ConfigureAwait(false)) File.Delete(target); + } + VerifiedDownloader.RejectLink(stage); if (Directory.Exists(stage)) Directory.Delete(stage, true); + if (!committed) foreach (var parent in createdParents.OrderByDescending(p => p.Length)) + { VerifiedDownloader.RejectLink(parent); if (Directory.Exists(parent) && !Directory.EnumerateFileSystemEntries(parent).Any()) Directory.Delete(parent, false); } + } + } +} diff --git a/src/SHOU.Launcher.Core/Content/ContentInstallPlanner.cs b/src/SHOU.Launcher.Core/Content/ContentInstallPlanner.cs new file mode 100644 index 00000000..6669bdfd --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/ContentInstallPlanner.cs @@ -0,0 +1,126 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Content; + +public sealed class ContentInstallPlanner(ILauncherCatalogService catalog, IContentDependencyCatalogService dependencies) +{ + public const int MaximumProjects = 64, MaximumDepth = 16; + public const long MaximumTotalBytes = long.MaxValue; + public async Task PlanAsync(GameInstance instance, string gameVersion, ContentInstallRequest request, CancellationToken ct = default, bool worldDatapacks = false, bool updatingDatapacks = false, + IReadOnlySet? replacingModPaths = null, ContentInstallManifest? installedMods = null, string? replacingResourcePath = null) + { + if (replacingResourcePath is not null && (request.Kind is not ("resourcepack" or "shader") || replacingModPaths is not null || worldDatapacks || updatingDatapacks || + !replacingResourcePath.StartsWith(Folder(request.Kind) + "/", StringComparison.Ordinal) || replacingResourcePath[(Folder(request.Kind).Length + 1)..].Contains('/'))) + throw new InvalidDataException("资源更新须明确当前类别的一个原文件。"); + if (replacingModPaths is not null && (request.Kind != "mod" || worldDatapacks || updatingDatapacks || replacingModPaths.Count != 1)) throw new InvalidOperationException("模组更新须明确一个原文件。"); + if (updatingDatapacks && !worldDatapacks) throw new InvalidOperationException("替换模式仅用于显式存档数据包更新预检。"); + if (request.Kind == "datapack" && !worldDatapacks) throw new NotSupportedException("数据包须明确选择存档目标。"); + if (worldDatapacks && request.Kind != "datapack") throw new InvalidDataException("存档安装只接受数据包。"); + if (instance.Id != request.InstanceId) throw new InvalidDataException("安装实例身份不一致。"); + SafePath.Identifier(request.ProjectId); SafePath.Identifier(request.ReleaseId); SafePath.Identifier(gameVersion); + var files = new List(); var warnings = new List(); + var resolved = new Dictionary(StringComparer.Ordinal); + var active = new HashSet(StringComparer.Ordinal); + var incompatibilities = new List(); long total = 0; + async Task Visit(ContentRelease release, string? expectedProject, string? explicitFile, int depth) + { + ct.ThrowIfCancellationRequested(); + if (depth > MaximumDepth || resolved.Count + active.Count >= MaximumProjects) throw new InvalidDataException("required 依赖超过64个项目或16层限制。"); + var projectId = release.ProjectId ?? throw new InvalidDataException("资源版本缺少项目身份。"); + SafePath.Identifier(projectId); + if (expectedProject is not null && expectedProject != projectId) throw new InvalidDataException("依赖版本不属于声明项目。"); + if (active.Contains(projectId)) throw new InvalidDataException("required 依赖存在循环,未安装任何文件。"); + if (resolved.TryGetValue(projectId, out var previous)) + { + if (previous.Id != release.Id) throw new InvalidDataException("同一项目的required依赖要求不同版本。"); + return; + } + var project = await dependencies.GetContentProjectAsync(projectId, ct).ConfigureAwait(false); + // Modrinth v2 represents dual mod/datapack projects as "mod"; require the selected release's datapack identity. + if (worldDatapacks && project.Kind == "mod" && release.Loaders.Contains("datapack", StringComparer.Ordinal)) project = project with { Kind = "datapack" }; + if (project.Id != projectId || (depth == 0 && project.Kind != request.Kind)) throw new InvalidDataException("资源类型或项目身份已改变,请重新选择。"); + if (worldDatapacks && project.Kind != "datapack") throw new NotSupportedException("数据包的 required 依赖须为数据包;其它类型请先明确安装。"); + var folder = worldDatapacks ? "datapacks" : Folder(project.Kind); + if (!Compatible(release, project.Kind, gameVersion, instance.Loader) || !worldDatapacks && (project.ClientSide == "unsupported" || + release.Environment is "server_only" or "server_only_client_optional" or "dedicated_server_only")) + throw new InvalidDataException("所选资源或required依赖不适用于此客户端实例的游戏版本/加载器。"); + var releaseFiles = FilesFor(release); + var selected = explicitFile is not null ? releaseFiles.SingleOrDefault(f => f.FileName == explicitFile) + : releaseFiles.Count(f => f.Primary) == 1 ? releaseFiles.Single(f => f.Primary) : releaseFiles.Count == 1 ? releaseFiles[0] : null; + if (selected is null) throw new InvalidDataException("资源文件不明确,请选择具体文件;依赖须提供唯一主文件。"); + ContentInstallFiles.ValidateFile(selected); + if (project.Kind == "mod" && !selected.FileName.EndsWith(".jar", StringComparison.OrdinalIgnoreCase) || + project.Kind is "resourcepack" or "shader" or "datapack" && !selected.FileName.EndsWith(".zip", StringComparison.OrdinalIgnoreCase)) + throw new InvalidDataException("此类型资源的文件扩展名不受支持。"); + total = checked(total + selected.Size); if (total > MaximumTotalBytes) throw new InvalidDataException("资源与required依赖总大小超过2 GiB限制。"); + active.Add(projectId); + foreach (var dependency in release.Dependencies ?? []) + { + // WPF resource updates replace selected archives; updating a texture must not install or change mods. + if (replacingResourcePath is not null) + { + if (dependency.Type is "required" or "incompatible") warnings.Add("资源版本声明了依赖,请在资源详情核对;本次仅更新所选文件。"); + continue; + } + if (dependency.Type == "incompatible") { incompatibilities.Add(dependency); continue; } + if (dependency.Type is "optional" or "embedded") { if (dependency.Type == "optional") warnings.Add("可选依赖未自动安装:" + (dependency.ProjectId ?? dependency.VersionId ?? dependency.FileName ?? "未命名")); continue; } + if (dependency.Type != "required") throw new InvalidDataException("未知依赖类型,无法保证完整安装。"); + ContentRelease child; + if (dependency.VersionId is { } versionId) child = await dependencies.GetContentReleaseAsync(SafePath.Identifier(versionId), ct).ConfigureAwait(false); + else if (dependency.ProjectId is { } childId) + { + SafePath.Identifier(childId); + var childProject = await dependencies.GetContentProjectAsync(childId, ct).ConfigureAwait(false); + var dependencyLoader = worldDatapacks ? childId.StartsWith("cf-", StringComparison.Ordinal) ? null : "datapack" : childProject.Kind == "mod" ? instance.Loader : null; + var existing = (installedMods?.Files ?? []).Where(f => f.ProjectId == childId && !f.RelativePath.EndsWith(".disabled", StringComparison.Ordinal)).ToArray(); + if (existing.Length == 1 && await ContentInstallFiles.MatchesAsync(ContentInstallFiles.Literal(instance.GameDirectory, existing[0].RelativePath), existing[0].Sha1, existing[0].Size, ct).ConfigureAwait(false)) + { + child = await dependencies.GetContentReleaseAsync(existing[0].ReleaseId, ct).ConfigureAwait(false); + if (!FilesFor(child).Any(f => f.Sha1 == existing[0].Sha1 && f.Size == existing[0].Size && existing[0].RelativePath == "mods/" + f.FileName)) throw new InvalidDataException("已装依赖的在线文件身份不符,请先核对。"); + } + else + { + var choices = await catalog.GetContentReleasesAsync(childId, gameVersion, dependencyLoader, ct).ConfigureAwait(false); + child = choices.Where(r => Compatible(r, worldDatapacks ? "datapack" : childProject.Kind, gameVersion, instance.Loader)) + .OrderByDescending(r => r.Published).FirstOrDefault() ?? throw new InvalidDataException("required依赖没有兼容此实例的版本。"); + } + } + else throw new NotSupportedException("required外部文件依赖缺少可验证的项目/版本身份,需要手动处理。"); + await Visit(child, dependency.ProjectId, dependency.FileName, depth + 1).ConfigureAwait(false); + } + active.Remove(projectId); resolved.Add(projectId, release); + // Game selections refer to installed filenames. Retain custom names and enabled pack/shader selections. + files.Add(new(projectId, release.Id, project.Kind, depth == 0 && replacingResourcePath is not null ? replacingResourcePath : folder + "/" + selected.FileName, selected, depth > 0)); + } + var root = await dependencies.GetContentReleaseAsync(request.ReleaseId, ct).ConfigureAwait(false); + if (root.Id != request.ReleaseId) throw new InvalidDataException("资源版本身份不一致。"); + await Visit(root, request.ProjectId, request.FileName, 0).ConfigureAwait(false); + if (files.Select(f => ContentInstallFiles.PathKey(f.RelativePath)).Distinct(StringComparer.Ordinal).Count() != files.Count) throw new InvalidDataException("依赖文件名称存在大小写或Unicode形式冲突。"); + foreach (var incompatible in incompatibilities) + if (files.Any(f => Matches(f.ProjectId, f.ReleaseId, incompatible))) throw new InvalidDataException("依赖声明了与本次安装不兼容的资源。"); + var installed = installedMods ?? await ContentInstallFiles.ReadManifestAsync(instance, ct).ConfigureAwait(false); + foreach (var item in installed.Files) + { + if (incompatibilities.Any(d => Matches(item.ProjectId, item.ReleaseId, d)) || + (!updatingDatapacks || files.All(f => f.ProjectId != item.ProjectId)) && !(replacingModPaths?.Contains(item.RelativePath) ?? false) + && item.RelativePath != replacingResourcePath && files.Any(f => f.ProjectId == item.ProjectId && f.ReleaseId != item.ReleaseId)) + throw new InvalidDataException("安装清单存在其他版本或不兼容资源,请先显式处理旧文件。"); + } + IReadOnlyList checkedFiles = updatingDatapacks ? files.Where(f => !installed.Files.Any(old => old.RelativePath == f.RelativePath && files.Any(next => next.ProjectId == old.ProjectId))).ToArray() + : replacingModPaths is not null ? files.Where(f => !replacingModPaths.Contains(f.RelativePath)).ToArray() + : replacingResourcePath is not null ? files.Where(f => f.RelativePath != replacingResourcePath).ToArray() : files; + await ContentInstallFiles.CheckConflictsAsync(instance.GameDirectory, checkedFiles, ct).ConfigureAwait(false); + if (request.Kind == "shader") warnings.Add("文件装入shaderpacks;启用光影仍需实例具备相应渲染模组。"); + return new(instance.Id, gameVersion, instance.Loader, files, warnings.Distinct().ToArray()); + } + public static IReadOnlyList FilesFor(ContentRelease release) => release.ManualFile is { } manual + ? [new(manual.FileName, manual.PageUri, manual.Sha1, manual.Size, true, manual)] : release.Files; + private static bool Matches(string project, string version, ContentDependency dependency) => + dependency.VersionId is { } id ? id == version : dependency.ProjectId is { } p && p == project; + public static string Folder(string kind) => kind switch { "mod" => "mods", "resourcepack" => "resourcepacks", "shader" => "shaderpacks", _ => throw new NotSupportedException("首批实例资源安装支持模组、资源包与光影包;数据包须选择具体存档。") }; + public static bool Compatible(ContentRelease release, string kind, string gameVersion, string loader) => + release.GameVersions.Contains(gameVersion, StringComparer.Ordinal) && + (kind == "datapack" || release.Environment is not ("server_only" or "server_only_client_optional" or "dedicated_server_only")) && + (kind != "mod" || Instances.InstanceIdentity.SupportsModDirectory(loader) && release.Loaders.Contains(loader, StringComparer.OrdinalIgnoreCase)); +} diff --git a/src/SHOU.Launcher.Core/Content/CurseForgeManualCache.cs b/src/SHOU.Launcher.Core/Content/CurseForgeManualCache.cs new file mode 100644 index 00000000..8609a1b9 --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/CurseForgeManualCache.cs @@ -0,0 +1,43 @@ +using System.Security.Cryptography; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core.Content; + +internal static class CurseForgeManualCache +{ + internal static string PathFor(string root, CurseForgeManualFile file) + { + if (!Path.IsPathFullyQualified(root) || file.ProjectId <= 0 || file.FileId <= 0 || !ContentInstallFiles.Hash(file.Sha1, 40) || file.Size is <= 0 or > PackArchiveReader.MaximumFileBytes) throw new InvalidDataException("补充文件身份无效。"); + return ContentInstallFiles.Literal(root, $"curseforge-manual/{file.ProjectId}-{file.FileId}-{file.Sha1}.bin"); + } + internal static async Task DigestAsync(string root, CurseForgeManualFile file, CancellationToken ct) + { + var path = PathFor(root, file); + if (!await ContentInstallFiles.MatchesAsync(path, file.Sha1, file.Size, ct).ConfigureAwait(false)) return null; + await using var input = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); + return Convert.ToHexStringLower(await SHA512.HashDataAsync(input, ct).ConfigureAwait(false)); + } + internal static async Task StoreAsync(string root, CurseForgeManualFile file, string source, CancellationToken ct) + { + if (!Path.IsPathFullyQualified(source)) throw new ArgumentException("请选择已下载文件的绝对路径。"); + VerifiedDownloader.RejectLink(source); + if (!await ContentInstallFiles.MatchesAsync(source, file.Sha1, file.Size, ct).ConfigureAwait(false)) throw new InvalidDataException("所选文件与此版本的官方 SHA-1 或大小不符,未采纳。"); + var target = PathFor(root, file); Directory.CreateDirectory(Path.GetDirectoryName(target)!); + var temporary = ContentInstallFiles.Literal(root, "curseforge-manual/.provide-" + Guid.NewGuid().ToString("N")); + try + { + await using (var input = new FileStream(source, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true)) + await using (var output = new FileStream(temporary, FileMode.CreateNew, FileAccess.Write, FileShare.None, 131072, true)) + { + if (input.Length != file.Size) throw new IOException("补充文件已改变。"); + var buffer = new byte[131072]; long copied = 0; + while (true) { var count = await input.ReadAsync(buffer, ct).ConfigureAwait(false); if (count == 0) break; copied += count; if (copied > file.Size) throw new IOException("补充文件超过声明大小。"); await output.WriteAsync(buffer.AsMemory(0, count), ct).ConfigureAwait(false); } + await output.FlushAsync(ct).ConfigureAwait(false); + } + if (!await ContentInstallFiles.MatchesAsync(temporary, file.Sha1, file.Size, ct).ConfigureAwait(false)) throw new InvalidDataException("复制后校验失败,未采纳补充文件。"); + ct.ThrowIfCancellationRequested(); _ = PathFor(root, file); File.Move(temporary, target, true); + } + finally { VerifiedDownloader.RejectLink(temporary); if (File.Exists(temporary)) File.Delete(temporary); } + } +} diff --git a/src/SHOU.Launcher.Core/Content/CurseForgePackExport.cs b/src/SHOU.Launcher.Core/Content/CurseForgePackExport.cs new file mode 100644 index 00000000..4d6332cf --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/CurseForgePackExport.cs @@ -0,0 +1,63 @@ +using System.Security.Cryptography; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core.Content; + +internal sealed record CurseForgeExportPlan(string Name, string Version, IReadOnlyList References, IReadOnlySet Paths, IReadOnlyList Guards); + +internal static class CurseForgePackExport +{ + internal static async Task PlanAsync(GameInstance instance, ModrinthPackExportOptions options, CancellationToken ct) + { + foreach (var text in new[] { options.Name, options.VersionId }) + if (string.IsNullOrWhiteSpace(text) || text.Length > 160 || text.Any(char.IsControl)) throw new ArgumentException("整合包名称和版本须为 1–160 字的单行文字。"); + PackLoaderIdentity.Validate(instance.Loader, instance.LoaderVersion); + var paths = new HashSet(StringComparer.Ordinal); + var references = new List(); + var guards = new List(); + var manifest = await ContentInstallFiles.ReadManifestAsync(instance, ct).ConfigureAwait(false); + foreach (var file in manifest.Files) + { + ct.ThrowIfCancellationRequested(); + PackPayloadPath.Validate(file.RelativePath); + if (!ShouPackArchive.Allowed(file.RelativePath)) continue; + var full = ContentInstallFiles.Literal(instance.GameDirectory, file.RelativePath); + var guard = WorldPathSnapshot.Capture(instance.GameDirectory, full); guards.Add(guard); + if (!await ContentInstallFiles.MatchesAsync(full, file.Sha1, file.Size, ct).ConfigureAwait(false)) throw new IOException("安装文件已改变,请先重新核对资源。"); + await using var stream = new FileStream(full, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); + if (!Convert.ToHexStringLower(await SHA512.HashDataAsync(stream, ct).ConfigureAwait(false)).Equals(file.Sha512, StringComparison.OrdinalIgnoreCase)) throw new IOException("安装文件 SHA-512 不匹配。"); + guard.Verify(); + if (file.Kind is "mod" or "resourcepack" && file.ProjectId.StartsWith("cf-", StringComparison.Ordinal) && int.TryParse(file.ProjectId[3..], out var project) && project > 0 + && file.ReleaseId.StartsWith("cf-", StringComparison.Ordinal) && int.TryParse(file.ReleaseId[3..], out var id) && id > 0) + references.Add(new(project, id, file.Client != "optional")); + else if (options.BundleInstalledFiles) paths.Add(file.RelativePath); + else if (!(options.OverridePaths ?? []).Any(p => file.RelativePath == p || file.RelativePath.StartsWith(p + "/", StringComparison.Ordinal))) + throw new InvalidOperationException("包含没有 CurseForge 文件身份的资源,请明确选择打包本地资源。"); + } + var count = 0; + void Visit(string path, int depth) + { + ct.ThrowIfCancellationRequested(); if (++count > 5000 || depth > 24) throw new IOException("导出路径超过数量或深度限制。"); + var full = ContentInstallFiles.Literal(instance.GameDirectory, path); + if (Directory.Exists(full)) + { + foreach (var child in Directory.EnumerateFileSystemEntries(full)) Visit(Path.GetRelativePath(instance.GameDirectory, child).Replace('\\', '/'), depth + 1); + } + else if (File.Exists(full) && ShouPackArchive.Allowed(path)) paths.Add(path); + else if (!File.Exists(full)) throw new InvalidDataException("导出路径不存在:" + path); + } + foreach (var path in options.OverridePaths ?? []) + { + var full = ContentInstallFiles.Literal(instance.GameDirectory, path); + var scope = Directory.Exists(full) ? path + "/__scope" : path; + PackPayloadPath.Validate(scope); + if (!ShouPackArchive.Allowed(scope)) throw new InvalidDataException("此路径是启动器凭据文件,不能导出:" + path); + Visit(path, 0); + } + // CF-owned files are references even when their containing folder was explicitly selected. + foreach (var file in manifest.Files.Where(f => references.Any(r => f.ProjectId == "cf-" + r.ProjectId && f.ReleaseId == "cf-" + r.FileId))) paths.Remove(file.RelativePath); + if (references.Count > ModrinthPackArchive.MaximumFiles || references.Select(r => r.FileId).Distinct().Count() != references.Count) throw new InvalidDataException("CurseForge 文件身份重复或超过整合包文件预算。"); + return new(options.Name, options.VersionId, references, paths, guards); + } +} diff --git a/src/SHOU.Launcher.Core/Content/CurseForgePackResolver.cs b/src/SHOU.Launcher.Core/Content/CurseForgePackResolver.cs new file mode 100644 index 00000000..75fcfaaf --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/CurseForgePackResolver.cs @@ -0,0 +1,307 @@ +using System.Net; +using System.Net.Http.Headers; +using System.Security.Cryptography; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core.Content; + +public sealed record CurseForgePackReference(int ProjectId, int FileId, bool Required); +public sealed record CurseForgePackFile(int ProjectId, int FileId, string Path, string Sha1, string? Sha512, + long Size, Uri DownloadUri, bool FromModrinth, bool FromFtb = false, bool FromManual = false); +public sealed record CurseForgePackResolution(IReadOnlyList Files, + IReadOnlyList Warnings, IReadOnlyList BlockedFiles, IReadOnlyList? ManualFiles = null); + +/// Caller-owned dedicated HttpClient MUST disable automatic redirects. API key is attached only to fixed CF requests. +public sealed class CurseForgePackResolver +{ + private readonly HttpClient http; + private readonly string? apiKey; + private readonly string? manualCacheRoot; + private readonly NetworkOptions? network; + public CurseForgePackResolver(HttpClient http, string? apiKey, string? manualCacheRoot = null, NetworkOptions? network = null) + { + this.http = http; + this.manualCacheRoot = manualCacheRoot; + this.network = network; + if (http.DefaultRequestHeaders.Contains("x-api-key") || http.DefaultRequestHeaders.Authorization is not null || http.DefaultRequestHeaders.Contains("Cookie")) throw new ArgumentException("整合包专用客户端不能携带全局鉴权头。"); + if (apiKey is not null && (apiKey.Length > 8192 || apiKey.Any(c => char.IsControl(c) || char.IsWhiteSpace(c)))) throw new ArgumentException("CurseForge API key 配置格式无效。"); + this.apiKey = string.IsNullOrEmpty(apiKey) ? null : apiKey; + } + public async Task ResolveAsync(IReadOnlyList references, string gameVersion, string loader, CancellationToken ct = default, + FtbPackIdentity? ftbPack = null, IProgress? progress = null) + { + if (references.Count > ModrinthPackArchive.MaximumFiles || references.Any(r => r.ProjectId <= 0 || r.FileId <= 0)) throw new InvalidDataException("CurseForge 清单项目数量或身份无效。"); + var required = references.Where(r => r.Required).ToArray(); + if (apiKey is null) return new([], [], required.Select(r => Label(r) + ":未配置 CurseForge API key,尚未核实文件。").ToArray()); + var publishedFtb = await FtbPackFileIndex.ReadAsync(http, ftbPack, ct).ConfigureAwait(false); + var completed = 0; + progress?.Report(new("解析必需文件", 0, required.Length)); + var results = new Item?[required.Length]; using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); + timeout.CancelAfter(TimeSpan.FromSeconds(Math.Max(180, required.Length * 2L))); + try + { + await Parallel.ForEachAsync(Enumerable.Range(0, required.Length), new ParallelOptions { MaxDegreeOfParallelism = 4, CancellationToken = timeout.Token }, async (index, token) => + { + results[index] = await ResolveOneAsync(required[index], gameVersion, loader, references, publishedFtb, token).ConfigureAwait(false); + progress?.Report(new("解析必需文件", Interlocked.Increment(ref completed), required.Length, Label(required[index]))); + }).ConfigureAwait(false); + } + catch (OperationCanceledException) when (!ct.IsCancellationRequested) { } + ct.ThrowIfCancellationRequested(); + var files = new List(); var warnings = new List(); var blocked = new List(); + for (var i = 0; i < required.Length; i++) + { + if (results[i] is not { } item) { blocked.Add(Label(required[i]) + ":官方文件解析超时,尚未核实。"); continue; } + warnings.AddRange(item.Warnings); if (item.File is { } file) files.Add(file); else blocked.Add(Label(required[i]) + ":" + item.Reason); + } + if (references.Any(r => !r.Required)) warnings.Add("CurseForge 可选文件本轮默认不安装,仅安装清单内 required 文件。"); + if (files.Select(f => ContentInstallFiles.PathKey(f.Path)).Distinct(StringComparer.Ordinal).Count() != files.Count) blocked.Add("不同 CurseForge 项目映射到相同文件路径,本次不会创建实例。"); + return new(files, warnings, blocked, results.Where(r => r?.Manual is not null).Select(r => r!.Manual!).ToArray()); + } + private sealed record Item(CurseForgePackFile? File, IReadOnlyList Warnings, string? Reason = null, CurseForgeManualFile? Manual = null); + internal async Task> DescribeOptionalFilesAsync(IReadOnlyList references, CancellationToken ct) + { + var files = references.Where(f => !f.Required).ToArray(); + var choices = files.Select(f => CurseForgePackSelection.Choice(f, notice: "官方名称尚未核实;选中后会核实文件身份与可用性。")).ToArray(); + if (apiKey is null) return choices; + await Parallel.ForEachAsync(Enumerable.Range(0, files.Length), new ParallelOptions { MaxDegreeOfParallelism = 4, CancellationToken = ct }, async (index, token) => + { + var f = files[index]; + try + { + using var response = await GetJsonAsync(new Uri($"https://api.curseforge.com/v1/mods/{f.ProjectId}/files/{f.FileId}"), true, token).ConfigureAwait(false); + var data = response.RootElement.GetProperty("data"); + if (Number(data, "id") != f.FileId || Number(data, "modId") != f.ProjectId) return; + var name = Text(data, "fileName", 200); + choices[index] = CurseForgePackSelection.Choice(f, name); + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is LookupException or HttpRequestException or IOException or InvalidDataException or JsonException or KeyNotFoundException or InvalidOperationException or OperationCanceledException) + { /* An unselected optional file cannot block required files; selecting it runs full validation. */ } + }).ConfigureAwait(false); + return choices; + } + private async Task ResolveOneAsync(CurseForgePackReference reference, string gameVersion, string loader, IReadOnlyList all, + IReadOnlyDictionary<(int, int), FtbPublishedFile> publishedFtb, CancellationToken ct) + { + CurseForgeManualFile? manual = null; + try + { + using var response = await GetJsonAsync(new Uri($"https://api.curseforge.com/v1/mods/{reference.ProjectId}/files/{reference.FileId}"), true, ct).ConfigureAwait(false); + var data = response.RootElement.GetProperty("data"); + if (Number(data, "id") != reference.FileId || Number(data, "modId") != reference.ProjectId || Number(data, "gameId") != 432) throw new InvalidDataException("官方文件身份或游戏不匹配。"); + var available = data.GetProperty("isAvailable").GetBoolean(); + int? status = data.TryGetProperty("fileStatus", out var statusValue) && statusValue.ValueKind != JsonValueKind.Null ? statusValue.GetInt32() : null; + if (status is 5 or 6 or 7) throw new InvalidDataException(status switch + { 5 => "官方文件审核已拒绝(fileStatus=5),不能导入。", 6 => "官方文件被标记为恶意软件(fileStatus=6),不能导入。", _ => "官方文件已删除(fileStatus=7),不能导入。" }); + // Official support permits archived files only as pack/mod dependencies, not standalone downloads. + var archivedDependency = !available && status == 8 && reference.Required; + if (!available && !archivedDependency) throw new InvalidDataException(status switch + { + null or < 1 or > 23 => "官方文件状态不明且当前不可供下载,不能套用归档依赖例外。", + 3 or 11 or 18 => $"官方文件仍在审核中(fileStatus={status}),当前不可供下载。", + _ => $"官方文件当前不可供下载(fileStatus={status}),不适用归档依赖例外。" + }); + if (data.TryGetProperty("isServerPack", out var server) && server.ValueKind == JsonValueKind.True) throw new InvalidDataException("此文件是服务器整合包,不能作为客户端模组导入。"); + var name = Text(data, "fileName", 200); ModrinthPackArchive.SafeRelative(name); + if (name.Contains('/')) throw new InvalidDataException("官方文件名不能包含目录路径。"); + using var projectResponse = await GetJsonAsync(new Uri($"https://api.curseforge.com/v1/mods/{reference.ProjectId}"), true, ct).ConfigureAwait(false); + var project = projectResponse.RootElement.GetProperty("data"); + if (Number(project, "id") != reference.ProjectId || Number(project, "gameId") != 432) throw new InvalidDataException("官方项目身份或游戏不匹配。"); + var classId = Number(project, "classId"); + var folder = classId == 6 && name.EndsWith(".jar", StringComparison.OrdinalIgnoreCase) ? "mods/" + : name.EndsWith(".zip", StringComparison.OrdinalIgnoreCase) ? classId switch + { + 12 => "resourcepacks/", 6552 => "shaderpacks/", 6945 => "datapacks/", 17 => "saves/", + _ => throw new InvalidDataException("CurseForge 文件的项目类型尚未映射到实例目录。") + } : throw new InvalidDataException("CurseForge 文件扩展名与项目类型不匹配。"); + var size = Number(data, "fileLength"); if (size is <= 0 or > PackArchiveReader.MaximumFileBytes) throw new InvalidDataException("官方文件大小超过单项 128 MiB 边界。"); + var hashes = data.GetProperty("hashes"); + if (hashes.ValueKind != JsonValueKind.Array || hashes.GetArrayLength() > 8) throw new InvalidDataException("官方哈希列表无效。"); + var sha1s = hashes.EnumerateArray().Where(h => Number(h, "algo") == 1).Select(h => Text(h, "value", 40)).ToArray(); + if (sha1s.Length != 1 || !ContentInstallFiles.Hash(sha1s[0], 40)) throw new InvalidDataException("官方文件缺少唯一有效 SHA-1。"); + var sha1 = sha1s[0].ToLowerInvariant(); var warnings = new List(); + if (classId == 6945) warnings.Add(Label(reference) + ":整合包数据包装入实例 datapacks;全局装载由整合包模组负责,不改写已有世界的启停设置。"); + var versions = data.TryGetProperty("gameVersions", out var values) && values.ValueKind == JsonValueKind.Array ? values.EnumerateArray().Take(128).Select(v => v.GetString() ?? "").ToArray() : []; + if (!versions.Contains(gameVersion, StringComparer.Ordinal)) warnings.Add(Label(reference) + ":官方标签未列出目标 " + gameVersion + ",实际兼容性仍由加载器验证。"); + if (classId == 6 && loader == "fabric" && !versions.Contains("Fabric", StringComparer.OrdinalIgnoreCase)) warnings.Add(Label(reference) + ":官方标签未声明 Fabric,需由加载器最终验证。"); + if (data.TryGetProperty("dependencies", out var dependencies) && dependencies.ValueKind == JsonValueKind.Array) + { + if (dependencies.GetArrayLength() > 256) throw new InvalidDataException("官方文件依赖数量超过边界。"); + foreach (var dependency in dependencies.EnumerateArray()) if (Number(dependency, "relationType") == 3 && !all.Any(r => r.Required && r.ProjectId == Number(dependency, "modId"))) + warnings.Add(Label(reference) + ":声明的依赖项目 " + Number(dependency, "modId") + " 未列入必装清单,本轮不会猜测版本补装。"); + } + if (data.TryGetProperty("downloadUrl", out var direct) && direct.ValueKind == JsonValueKind.String && direct.GetString() is { Length: > 0 } address) + { + if (!Uri.TryCreate(address, UriKind.Absolute, out var uri) || !AllowedCurseForgeUri(uri)) throw new InvalidDataException("官方文件返回了不受支持的下载来源。"); + if (archivedDependency) warnings.Add(Label(reference) + ":已归档的历史包依赖,仅按清单锁定版本使用官方提供的 CDN 地址,并核验 SHA-1 与大小;不会作为独立文件安装。"); + return new(new(reference.ProjectId, reference.FileId, folder + name, sha1, null, size, uri, false), warnings); + } + if (archivedDependency) return new(null, warnings, "已归档的历史包依赖未提供官方 CDN 地址,不能套用归档依赖例外;未猜测链接或查询哈希回退。"); + var page = project.TryGetProperty("links", out var links) && links.TryGetProperty("websiteUrl", out var website) ? website.GetString() : null; + var pageUri = Uri.TryCreate(page, UriKind.Absolute, out var projectPage) && projectPage.Scheme == "https" && projectPage.IsDefaultPort && projectPage.UserInfo.Length == 0 && projectPage.Host is "www.curseforge.com" or "curseforge.com" + ? new Uri(projectPage.AbsoluteUri.TrimEnd('/') + "/files/" + reference.FileId) + : new Uri($"https://www.curseforge.com/projects/{reference.ProjectId}/files/{reference.FileId}"); + manual = new(reference.ProjectId, reference.FileId, name, sha1, size, pageUri); + if (manualCacheRoot is not null && await CurseForgeManualCache.DigestAsync(manualCacheRoot, manual, ct).ConfigureAwait(false) is { } localSha512) + return new(new(reference.ProjectId, reference.FileId, folder + name, sha1, localSha512, size, ManualIdentityUri(reference.ProjectId, reference.FileId), false, FromManual: true), warnings); + if (publishedFtb.TryGetValue((reference.ProjectId, reference.FileId), out var ftb) && ftb.Folder == folder && ftb.Size == size && ftb.Sha1.Equals(sha1, StringComparison.OrdinalIgnoreCase)) + { + warnings.Add(Label(reference) + ":采用 FTB 官方同版本清单公布的同项目 / 文件地址,核对 SHA-1、SHA-512 与大小。"); + return new(new(reference.ProjectId, reference.FileId, folder + name, sha1, ftb.Sha512, size, ftb.Uri, false, true), warnings); + } + // A null CF URL is not a license to reconstruct its CDN path. Only independently published exact-hash files qualify. + using var alternative = await GetJsonAsync(new Uri("https://api.modrinth.com/v2/version_file/" + sha1 + "?algorithm=sha1"), false, ct).ConfigureAwait(false); + var candidates = alternative.RootElement.GetProperty("files"); + if (candidates.ValueKind != JsonValueKind.Array || candidates.GetArrayLength() > 64) throw new InvalidDataException("Modrinth 精确哈希查询返回无效文件列表。"); + foreach (var candidate in candidates.EnumerateArray()) + { + var digest = candidate.GetProperty("hashes"); + if (!string.Equals(Text(digest, "sha1", 40), sha1, StringComparison.OrdinalIgnoreCase) || Number(candidate, "size") != size) continue; + var sha512 = Text(digest, "sha512", 128); var uri = new Uri(Text(candidate, "url", 2048)); + if (!ContentInstallFiles.Hash(sha512, 128) || !ContentInstallFiles.AllowedUri(uri)) throw new InvalidDataException("Modrinth 同哈希文件缺少有效 SHA-512 或官方来源。"); + warnings.Add(Label(reference) + ":CurseForge 未提供第三方下载地址;使用 Modrinth 独立发布、同 SHA-1 且同大小的文件,并校验 SHA-512。"); + return new(new(reference.ProjectId, reference.FileId, folder + name, sha1, sha512.ToLowerInvariant(), size, uri, true), warnings); + } + return new(null, warnings, "作者未提供第三方下载地址,请从官网获取指定文件并选择已下载文件,校验后继续。", manual); + } + catch (OperationCanceledException) { throw; } + catch (LookupException ex) { return new(null, [], manual is null ? ex.Message : "需从官网获取并补充指定文件:" + manual.FileName, manual); } + catch (HttpRequestException) { return new(null, [], "官方服务连接失败,请稍后重新预检。"); } + catch (Exception ex) when (ex is JsonException or InvalidDataException or KeyNotFoundException or InvalidOperationException or FormatException or ArgumentException) + { return new(null, [], ex is InvalidDataException ? ex.Message : "官方服务返回的文件元数据无效,未下载任何文件。"); } + } + internal const long MaximumCachedResourceBytes = long.MaxValue; + public Task DownloadResourceAsync(ContentFile file, string path, IProgress? progress = null, CancellationToken ct = default) + => DownloadVerifiedAsync(new(0, 0, file.FileName, file.Sha1, null, file.Size, file.Uri, false), path, MaximumCachedResourceBytes, progress, ct); + public Task DownloadAsync(CurseForgePackFile file, string path, IProgress? progress = null, CancellationToken ct = default) + => DownloadVerifiedAsync(file, path, PackArchiveReader.MaximumFileBytes, progress, ct); + private async Task DownloadVerifiedAsync(CurseForgePackFile file, string path, long maximumBytes, IProgress? progress, CancellationToken ct) + { + var label = DownloadLabel(file); + if (file.FromManual) + { + if (manualCacheRoot is null || file.FromFtb || file.FromModrinth || file.DownloadUri != ManualIdentityUri(file.ProjectId, file.FileId)) throw new InvalidDataException("本地补充文件来源无效。"); + var descriptor = new CurseForgeManualFile(file.ProjectId, file.FileId, Path.GetFileName(file.Path), file.Sha1, file.Size, file.DownloadUri); + var source = CurseForgeManualCache.PathFor(manualCacheRoot, descriptor); + if (await CurseForgeManualCache.DigestAsync(manualCacheRoot, descriptor, ct).ConfigureAwait(false) is not { } digest || digest != file.Sha512) throw new InvalidDataException("本地补充文件已改变,请重新提供。"); + VerifiedDownloader.RejectLink(path); Directory.CreateDirectory(Path.GetDirectoryName(path)!); + await using (var input = new FileStream(source, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true)) + await using (var output = new FileStream(path, FileMode.CreateNew, FileAccess.Write, FileShare.None, 131072, true)) await input.CopyToAsync(output, ct).ConfigureAwait(false); + if (!await ContentInstallFiles.MatchesAsync(path, file.Sha1, file.Size, ct).ConfigureAwait(false)) throw new InvalidDataException("本地补充文件复制校验失败。"); + await using var copied = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); + if (Convert.ToHexStringLower(await SHA512.HashDataAsync(copied, ct).ConfigureAwait(false)) != digest) throw new InvalidDataException("本地补充文件复制 SHA-512 校验失败。"); + return; + } + if (!AllowedDownloadUri(file.DownloadUri, file.FromFtb) || file.FromFtb && (file.FromModrinth || !ContentInstallFiles.Hash(file.Sha512, 128))) throw new InvalidDataException(label + ":文件来源不在官方 CDN 允许范围。"); + if (!ContentInstallFiles.Hash(file.Sha1, 40) || (file.Size <= 0 || file.Size > maximumBytes) || file.Sha512 is not null && !ContentInstallFiles.Hash(file.Sha512, 128)) + throw new InvalidDataException(label + ":文件哈希或大小无效。"); + using var redirects = new CdnRedirectHandler(http, file.FromFtb); using var downloads = new HttpClient(redirects) { Timeout = Timeout.InfiniteTimeSpan }; + // Keep the CDN redirect allowlist and API-key isolation while sharing the global transfer budget. + var reporting = new CallbackProgress(p => progress?.Report(p with { Source = p.Source == "cache" ? "cache" : file.DownloadUri.Host, Backend = p.Backend ?? "内置", + Detail = p.Backend == "aria2" ? "经官方 CDN 校验通道 · " + p.Detail : p.Detail })); + try + { + var internalDownloader = new VerifiedDownloader(downloads, network); + if (network?.Aria2.Enabled == true) + { + await using var relay = new RestrictedDownloadRelay(downloads, file.DownloadUri, file.Size, network); + await new DownloadCoordinator(downloads, new CdnFallback(internalDownloader, file.DownloadUri), network, policyHandledByTransport: true).DownloadAsync(new([relay.Uri], path, file.Sha1, Size: file.Size), reporting, ct).ConfigureAwait(false); + } + else await internalDownloader.DownloadAsync(new([file.DownloadUri], path, file.Sha1, Size: file.Size), reporting, ct).ConfigureAwait(false); + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is AggregateException or HttpRequestException or IOException or InvalidDataException or OperationCanceledException) + { throw new IOException(label + ":下载失败;" + (redirects.FailureReason ?? "文件传输或 SHA-1/大小校验失败。")); } + if (file.Sha512 is not null) + { + string digest; + try + { + VerifiedDownloader.RejectLink(path); await using var bytes = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); + digest = Convert.ToHexStringLower(await SHA512.HashDataAsync(bytes, ct).ConfigureAwait(false)); + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is IOException or InvalidDataException) { throw new IOException(label + ":无法读取已下载文件进行 SHA-512 校验。"); } + if (!digest.Equals(file.Sha512, StringComparison.OrdinalIgnoreCase)) throw new InvalidDataException(label + ":下载文件 SHA-512 校验失败。"); + } + } + private sealed class CdnFallback(IVerifiedDownloader downloader, Uri source) : IVerifiedDownloader + { + public Task DownloadAsync(DownloadRequest request, IProgress? progress = null, CancellationToken cancellationToken = default) + => downloader.DownloadAsync(request with { Sources = [source] }, progress, cancellationToken); + } + private static Uri ManualIdentityUri(int project, int file) => new($"https://api.curseforge.com/v1/mods/{project}/files/{file}"); + private static bool AllowedDownloadUri(Uri uri, bool allowFtb = false) => AllowedCurseForgeUri(uri) || ContentInstallFiles.AllowedUri(uri) || allowFtb && FtbPackFileIndex.AllowedUri(uri); + private static string DownloadLabel(CurseForgePackFile file) + { + var name = new string(Path.GetFileName(file.Path).Where(c => char.IsLetterOrDigit(c) || c is '.' or '-' or '_' or ' ' or '+' or '(' or ')').Take(120).ToArray()); + return file.ProjectId > 0 && file.FileId > 0 ? $"项目 {file.ProjectId} / 文件 {file.FileId}({(name.Length == 0 ? "文件" : name)})" : $"文件({(name.Length == 0 ? "资源" : name)})"; + } + // This wrapper is used only by file downloads. API requests keep the caller's no-redirect transport directly. + private sealed class CdnRedirectHandler(HttpClient transport, bool allowFtb) : HttpMessageHandler + { + internal string? FailureReason { get; private set; } + protected override async Task SendAsync(HttpRequestMessage request, CancellationToken ct) + { + if (request.Method != HttpMethod.Get || request.Content is not null || request.RequestUri is null) throw Failure("文件下载仅接受无请求体的 GET。"); + var uri = request.RequestUri; var visited = new HashSet(StringComparer.Ordinal); + for (var hops = 0; ; hops++) + { + if (!AllowedDownloadUri(uri, allowFtb)) throw Failure("重定向目标不在官方 CDN 允许范围。"); + if (!visited.Add(uri.AbsoluteUri)) throw Failure("检测到 CDN 重定向循环。"); + if (transport.DefaultRequestHeaders.Contains("x-api-key") || transport.DefaultRequestHeaders.Authorization is not null || transport.DefaultRequestHeaders.Contains("Cookie")) throw Failure("专用文件下载客户端携带了全局鉴权头,已拒绝下载。"); + // Clone only download range validators; never forward authorization, cookies, Host, or arbitrary headers. + using var forwarded = new HttpRequestMessage(HttpMethod.Get, uri); + forwarded.Headers.Range = request.Headers.Range; forwarded.Headers.IfRange = request.Headers.IfRange; + HttpResponseMessage response; + try { response = await transport.SendAsync(forwarded, HttpCompletionOption.ResponseHeadersRead, ct).ConfigureAwait(false); } + catch (HttpRequestException) { throw Failure("官方 CDN 网络连接失败。"); } + if (response.RequestMessage?.RequestUri is { } actual && actual != uri) + { response.Dispose(); throw Failure("专用 CDN 客户端发生未受校验的自动重定向,已拒绝文件。"); } + if ((int)response.StatusCode is >= 300 and < 400) + { + try + { + var status = (int)response.StatusCode; + if (status is not (301 or 302 or 303 or 307 or 308)) throw Failure($"不支持的 CDN 重定向状态 HTTP {status}。"); + if (hops >= 3) throw Failure($"CDN 重定向超过 3 跳(HTTP {status})。"); + var location = response.Headers.Location; + if (location is null || location.OriginalString.Length > 2048 || location.OriginalString.Any(char.IsControl) || !Uri.TryCreate(uri, location, out var next)) throw Failure($"CDN 重定向缺少有效 Location(HTTP {status})。"); + if (!AllowedDownloadUri(next, allowFtb)) throw Failure($"CDN 重定向来源被拒绝(HTTP {status})。"); + uri = next; + } + finally { response.Dispose(); } + continue; + } + FailureReason = response.IsSuccessStatusCode ? null : $"官方 CDN 返回 HTTP {(int)response.StatusCode}。"; + return response; + } + } + private HttpRequestException Failure(string reason) { FailureReason = reason; return new HttpRequestException(reason); } + } + private async Task GetJsonAsync(Uri uri, bool sendKey, CancellationToken ct) + { + if (http.DefaultRequestHeaders.Contains("x-api-key") || http.DefaultRequestHeaders.Authorization is not null || http.DefaultRequestHeaders.Contains("Cookie")) + throw new LookupException("官方清单专用客户端不能携带全局凭据。"); + if (sendKey && (uri.Scheme != "https" || uri.Host != "api.curseforge.com" || !uri.IsDefaultPort || uri.UserInfo.Length != 0)) throw new InvalidDataException("拒绝向未知来源发送 CurseForge 凭据。"); + using var request = new HttpRequestMessage(HttpMethod.Get, uri); request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); + request.Headers.UserAgent.ParseAdd("SHOU-Launcher/LocalPackImport"); if (sendKey) request.Headers.Add("x-api-key", apiKey!); + using var response = await http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, ct).ConfigureAwait(false); + if (response.StatusCode is >= HttpStatusCode.MultipleChoices and < HttpStatusCode.BadRequest || response.RequestMessage?.RequestUri is { } final && final != uri) throw new LookupException("官方 API 重定向已拒绝,未继续发送凭据。"); + if (!response.IsSuccessStatusCode) throw new LookupException((sendKey ? "CurseForge" : "Modrinth 精确哈希查询") + $" 返回 HTTP {(int)response.StatusCode},该文件尚未核实。"); + if (response.Content.Headers.ContentLength > 1024 * 1024) throw new LookupException("官方文件响应超过 1 MiB 上限。"); + await using var stream = await response.Content.ReadAsStreamAsync(ct).ConfigureAwait(false); using var bytes = new MemoryStream(); var buffer = new byte[16384]; + while (true) { var count = await stream.ReadAsync(buffer, ct).ConfigureAwait(false); if (count == 0) break; if (bytes.Length + count > 1024 * 1024) throw new LookupException("官方文件响应超过 1 MiB 上限。"); bytes.Write(buffer, 0, count); } + return PackArchiveReader.Json(bytes.ToArray()); + } + public static bool AllowedCurseForgeUri(Uri uri) => uri.IsAbsoluteUri && uri.Scheme == "https" && uri.IsDefaultPort && uri.UserInfo.Length == 0 && uri.Fragment.Length == 0 + && uri.Host is "edge.forgecdn.net" or "media.forgecdn.net" or "mediafilez.forgecdn.net" && uri.AbsolutePath.StartsWith("/files/", StringComparison.Ordinal); + private static long Number(JsonElement value, string key) => value.GetProperty(key).GetInt64(); + private static string Text(JsonElement value, string key, int maximum) + { var text = value.GetProperty(key).GetString() ?? ""; if (text.Length is < 1 || text.Length > maximum || text.Any(char.IsControl)) throw new InvalidDataException("官方文件元数据文字字段无效。"); return text; } + private static string Label(CurseForgePackReference item) => $"项目 {item.ProjectId} / 文件 {item.FileId}"; + private sealed class LookupException(string message) : Exception(message); +} diff --git a/src/SHOU.Launcher.Core/Content/CurseForgePackSelection.cs b/src/SHOU.Launcher.Core/Content/CurseForgePackSelection.cs new file mode 100644 index 00000000..c6d5bc93 --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/CurseForgePackSelection.cs @@ -0,0 +1,18 @@ +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Content; + +internal static class CurseForgePackSelection +{ + internal static string Key(CurseForgePackReference file) => $"cf:{file.ProjectId}:{file.FileId}"; + internal static LocalPackOptionalFile Choice(CurseForgePackReference file, string? name = null, string? notice = null) + => new(Key(file), name ?? $"CurseForge {file.ProjectId} / {file.FileId}", new($"https://www.curseforge.com/projects/{file.ProjectId}/files/{file.FileId}"), notice); + internal static IReadOnlyList Apply(IReadOnlyList files, IReadOnlyList? selected) + { + var keys = (selected ?? []).ToHashSet(StringComparer.Ordinal); + if (keys.Count != (selected?.Count ?? 0) || keys.Any(k => !files.Any(f => !f.Required && Key(f) == k))) + throw new InvalidDataException("可选文件选择已失效或不属于此归档,请重新预检。"); + return files.Select(f => f with { Required = f.Required || keys.Contains(Key(f)) }).ToArray(); + } + internal static string PlanKey(string sha, IReadOnlyList? selected) => sha + ":" + string.Join(",", (selected ?? []).Order(StringComparer.Ordinal)); +} diff --git a/src/SHOU.Launcher.Core/Content/FavoriteDownloads.cs b/src/SHOU.Launcher.Core/Content/FavoriteDownloads.cs new file mode 100644 index 00000000..8b849ff1 --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/FavoriteDownloads.cs @@ -0,0 +1,74 @@ +using System.Collections.Concurrent; +using System.Security.Cryptography; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Content; + +public static class FavoriteDownloads +{ + private static IEnumerable Available(ContentProject project, IReadOnlyDictionary> releases, string loader) => releases.GetValueOrDefault(project.Id, []).Where(r => r.Files.Count > 0 && (project.Kind != "mod" || loader == "any" || r.Loaders.Contains(loader)) && (r.ProjectId is null || r.ProjectId == project.Id)).OrderByDescending(r => r.Published); + public static IReadOnlyList CommonLoaders(IReadOnlyList projects, IReadOnlyDictionary> releases) + { + HashSet? common = null; + foreach (var project in projects.Where(p => p.Kind == "mod")) + { var supported = Available(project, releases, "any").SelectMany(r => r.Loaders).ToHashSet(); if (common is null) common = supported; else common.IntersectWith(supported); } + return common is null ? ["any"] : common.Order(StringComparer.Ordinal).ToArray(); + } + public static IReadOnlyList CommonVersions(IReadOnlyList projects, IReadOnlyDictionary> releases, string loader) + { + string[]? common = null; + foreach (var project in projects) { var versions = Available(project, releases, loader).SelectMany(r => r.GameVersions).Distinct().ToArray(); common = common is null ? versions : common.Intersect(versions).ToArray(); } + return common ?? []; + } + public static IReadOnlyList Plan(IReadOnlyList projects, IReadOnlyDictionary> releases, string loader, string version) + { + if (projects.Count == 0 || !CommonLoaders(projects, releases).Contains(loader) || !CommonVersions(projects, releases, loader).Contains(version)) throw new InvalidDataException("所选收藏没有共同支持的加载器或游戏版本。"); + List plan = []; var names = new Dictionary(StringComparer.OrdinalIgnoreCase); + foreach (var project in projects) + { + var release = Available(project, releases, loader).First(r => r.GameVersions.Contains(version)); var file = release.Files.OrderByDescending(f => f.Primary).First(); ContentInstallFiles.ValidateFile(file); + var name = file.FileName; + if (names.TryGetValue(name, out var hash) && !hash.Equals(file.Sha1, StringComparison.OrdinalIgnoreCase)) name = Path.GetFileNameWithoutExtension(name) + "-" + file.Sha1.ToLowerInvariant() + Path.GetExtension(name); + names[name] = file.Sha1; plan.Add(new(project.Id, project.Title, file, name)); + } + return plan; + } + public static async Task ExportAsync(IReadOnlyList plan, string directory, Func> download, CancellationToken ct = default, int concurrency = 1) + { + if (!Path.IsPathFullyQualified(directory)) throw new ArgumentException("请选择已有的本机保存目录。"); + // Native folder pickers may return a trailing separator; it is not a link alias. + directory = Path.TrimEndingDirectorySeparator(Path.GetFullPath(directory)); + if (!Directory.Exists(directory)) throw new ArgumentException("请选择已有的本机保存目录。"); SafePath.RejectLinks(directory); + var failures = new ConcurrentBag(); var added = 0; var reused = 0; + // Serialize aliases of the same destination; independent destinations can transfer concurrently. + using var gate = new SemaphoreSlim(Math.Clamp(concurrency, 1, 8)); + await Task.WhenAll(plan.GroupBy(e => e.DestinationName, StringComparer.OrdinalIgnoreCase).Select(async entries => + { + await gate.WaitAsync(ct); + try + { + foreach (var entry in entries) + { + ct.ThrowIfCancellationRequested(); string? temporary = null; + try + { + ContentInstallFiles.ValidateFile(entry.File); var name = entry.DestinationName; + if (name.Length > 255 || name != Path.GetFileName(name) || name.IndexOfAny(['/', '\\', '\0']) >= 0 || name is "." or "..") throw new InvalidDataException("保存文件名无效。"); + var target = SafePath.Within(directory, name); SafePath.RejectLinks(target); + async Task Matches(string path) { await using var input = File.OpenRead(path); return input.Length == entry.File.Size && Convert.ToHexString(await SHA1.HashDataAsync(input, ct)).Equals(entry.File.Sha1, StringComparison.OrdinalIgnoreCase); } + if (File.Exists(target)) { if (!await Matches(target)) throw new IOException("目标文件已存在,未覆盖。"); Interlocked.Increment(ref reused); continue; } + var source = await download(entry.File, ct); SafePath.RejectLinks(source); temporary = SafePath.Within(directory, ".shou-download-" + Guid.NewGuid().ToString("N") + ".partial"); + await using (var input = File.OpenRead(source)) await using (var output = new FileStream(temporary, FileMode.CreateNew, FileAccess.Write, FileShare.None, 81920, true)) await input.CopyToAsync(output, ct); + if (!await Matches(temporary)) throw new InvalidDataException("下载文件大小或哈希校验失败。"); ct.ThrowIfCancellationRequested(); SafePath.RejectLinks(target); File.Move(temporary, target, false); temporary = null; Interlocked.Increment(ref added); + } + catch (OperationCanceledException) { throw; } + catch (Exception ex) when (ex is IOException or InvalidDataException or ArgumentException or UnauthorizedAccessException or HttpRequestException or InvalidOperationException) { failures.Add(new(entry.Title, ex.Message)); } + finally { if (temporary is not null && File.Exists(temporary)) File.Delete(temporary); } + } + } + finally { gate.Release(); } + })); + return new(added, reused, failures.ToArray()); + } +} diff --git a/src/SHOU.Launcher.Core/Content/FtbPackFileIndex.cs b/src/SHOU.Launcher.Core/Content/FtbPackFileIndex.cs new file mode 100644 index 00000000..0e6923b9 --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/FtbPackFileIndex.cs @@ -0,0 +1,79 @@ +using System.Net.Http.Headers; +using System.Text.Json; + +namespace SHOU.Launcher.Core.Content; + +public sealed record FtbPackIdentity(string Name, string Version, string GameVersion, string Loader, string? LoaderVersion); +internal sealed record FtbPublishedFile(int ProjectId, int FileId, string Folder, string Sha1, string Sha512, long Size, Uri Uri); + +/// Only public, exact-version FTB manifests supply mirrors; no CDN URL is reconstructed. +internal static class FtbPackFileIndex +{ + internal static bool AllowedUri(Uri uri) => uri.IsAbsoluteUri && uri.Scheme == "https" && uri.IsDefaultPort && uri.UserInfo.Length == 0 && uri.Fragment.Length == 0 && + uri.Host is "files.feed-the-beast.com" or "cdn.feed-the-beast.com"; + internal static async Task> ReadAsync(HttpClient http, FtbPackIdentity? identity, CancellationToken ct) + { + var files = new Dictionary<(int, int), FtbPublishedFile>(); + if (identity is null || !identity.Name.StartsWith("FTB ", StringComparison.OrdinalIgnoreCase) || string.IsNullOrWhiteSpace(identity.Version)) return files; + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(45)); + try + { + using var search = await JsonAsync(http, "search/10?term=" + Uri.EscapeDataString(identity.Name), 1024 * 1024, timeout.Token).ConfigureAwait(false); + var packs = search.RootElement.GetProperty("packs"); + if (packs.ValueKind != JsonValueKind.Array || packs.GetArrayLength() > 10) return files; + foreach (var id in packs.EnumerateArray()) + { + if (!id.TryGetInt32(out var packId) || packId <= 0) continue; + using var pack = await JsonAsync(http, packId.ToString(System.Globalization.CultureInfo.InvariantCulture), 1024 * 1024, timeout.Token).ConfigureAwait(false); + var root = pack.RootElement; + if (root.GetProperty("id").GetInt32() != packId || root.GetProperty("private").ValueKind != JsonValueKind.False || + !string.Equals(root.GetProperty("name").GetString(), identity.Name, StringComparison.OrdinalIgnoreCase)) continue; + var versions = root.GetProperty("versions"); if (versions.ValueKind != JsonValueKind.Array || versions.GetArrayLength() > 2048) return files; + var matches = versions.EnumerateArray().Where(v => v.GetProperty("private").ValueKind == JsonValueKind.False && v.GetProperty("name").GetString() == identity.Version).ToArray(); + if (matches.Length != 1 || !matches[0].GetProperty("id").TryGetInt32(out var versionId) || versionId <= 0) return files; + using var manifest = await JsonAsync(http, packId + "/" + versionId, 8 * 1024 * 1024, timeout.Token).ConfigureAwait(false); + var version = manifest.RootElement; + if (version.GetProperty("private").ValueKind != JsonValueKind.False || version.GetProperty("id").GetInt32() != versionId || + version.GetProperty("parent").GetInt32() != packId || version.GetProperty("name").GetString() != identity.Version) return files; + var targets = version.GetProperty("targets").EnumerateArray().ToArray(); + if (!targets.Any(t => t.GetProperty("name").GetString() == "minecraft" && t.GetProperty("version").GetString() == identity.GameVersion) || + identity.Loader != "vanilla" && !targets.Any(t => t.GetProperty("name").GetString() == identity.Loader && t.GetProperty("version").GetString() == identity.LoaderVersion)) return files; + var entries = version.GetProperty("files"); + if (entries.ValueKind != JsonValueKind.Array || entries.GetArrayLength() > ModrinthPackArchive.MaximumEntries) return files; + foreach (var entry in entries.EnumerateArray()) + { + if (!entry.TryGetProperty("curseforge", out var cf) || cf.ValueKind != JsonValueKind.Object || + !int.TryParse(cf.GetProperty("project").ToString(), out var project) || project <= 0 || !int.TryParse(cf.GetProperty("file").ToString(), out var file) || file <= 0) continue; + if (entry.TryGetProperty("serveronly", out var server) && server.ValueKind == JsonValueKind.True) continue; + var folder = entry.GetProperty("path").GetString(); + if (folder is not ("./mods" or "./resourcepacks" or "./shaderpacks" or "./datapacks")) continue; + var sha1 = entry.GetProperty("sha1").GetString(); var hashes = entry.GetProperty("hashes"); var sha512 = hashes.GetProperty("sha512").GetString(); + if (!ContentInstallFiles.Hash(sha1, 40) || !ContentInstallFiles.Hash(sha512, 128) || !string.Equals(hashes.GetProperty("sha1").GetString(), sha1, StringComparison.OrdinalIgnoreCase) || + !entry.GetProperty("size").TryGetInt64(out var size) || size is <= 0 or > PackArchiveReader.MaximumFileBytes || + !Uri.TryCreate(entry.GetProperty("url").GetString(), UriKind.Absolute, out var uri) || !(AllowedUri(uri) || CurseForgePackResolver.AllowedCurseForgeUri(uri))) continue; + if (!files.TryAdd((project, file), new(project, file, folder[2..] + "/", sha1!.ToLowerInvariant(), sha512!.ToLowerInvariant(), size, uri))) + throw new InvalidDataException("FTB 官方清单含重复文件身份。"); + } + return files; + } + } + catch (OperationCanceledException) when (!ct.IsCancellationRequested) { return new Dictionary<(int, int), FtbPublishedFile>(); } + catch (Exception ex) when (ex is HttpRequestException or IOException or JsonException or InvalidOperationException or KeyNotFoundException or FormatException) + { return new Dictionary<(int, int), FtbPublishedFile>(); } + ct.ThrowIfCancellationRequested(); return files; + } + private static async Task JsonAsync(HttpClient http, string route, int budget, CancellationToken ct) + { + if (http.DefaultRequestHeaders.Authorization is not null || http.DefaultRequestHeaders.Contains("x-api-key") || http.DefaultRequestHeaders.Contains("Cookie")) + throw new InvalidOperationException("FTB 公共清单请求不能携带全局凭据。"); + var uri = new Uri("https://api.feed-the-beast.com/v1/modpacks/public/modpack/" + route); + using var request = new HttpRequestMessage(HttpMethod.Get, uri); + request.Headers.UserAgent.ParseAdd("SHOU-Launcher/1.6.2"); request.Headers.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); + using var response = await http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, ct).ConfigureAwait(false); + if (!response.IsSuccessStatusCode || response.RequestMessage?.RequestUri is { } final && final != uri || response.Content.Headers.ContentLength > budget) + throw new IOException("FTB 公共清单未返回可核验的响应。"); + await using var stream = await response.Content.ReadAsStreamAsync(ct).ConfigureAwait(false); using var output = new MemoryStream(); var buffer = new byte[32768]; + while (true) { var count = await stream.ReadAsync(buffer, ct).ConfigureAwait(false); if (count == 0) break; if (output.Length + count > budget) throw new IOException("FTB 公共清单超过大小预算。"); output.Write(buffer, 0, count); } + return PackArchiveReader.Json(output.ToArray()); + } +} diff --git a/src/SHOU.Launcher.Core/Content/LocalPackArchive.Legacy.cs b/src/SHOU.Launcher.Core/Content/LocalPackArchive.Legacy.cs new file mode 100644 index 00000000..4375b405 --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/LocalPackArchive.Legacy.cs @@ -0,0 +1,131 @@ +using System.IO.Compression; +using System.Text.Json; +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Content; + +public sealed partial class LocalPackArchive +{ + private static async Task ReadLegacyAsync(PackArchiveReader archive, IReadOnlyDictionary entries, string sha, CancellationToken ct) + { + static string Leaf(string path) => path[(path.LastIndexOf('/') + 1)..]; + static string String(JsonElement node, string key, string fallback = "") => node.TryGetProperty(key, out var value) && value.ValueKind == JsonValueKind.String ? value.GetString() ?? fallback : fallback; + async Task Json(ZipArchiveEntry entry) => PackArchiveReader.Json(await PackArchiveReader.ReadEntryAsync(entry, int.MaxValue, ct).ConfigureAwait(false)); + // Preserve WPF's format precedence: a real root marker wins over metadata in a child folder. + var names = new[] { "shou-instance.json", "mcbbs.packmeta", "mmc-pack.json", "modrinth.index.json", "manifest.json", "modpack.json" }; + var scope = names.Any(entries.ContainsKey) ? "" : entries.Keys.FirstOrDefault(p => p.Count(c => c == '/') == 1 && names.Contains(Leaf(p), StringComparer.Ordinal)) is { } wrapped ? wrapped[..(wrapped.IndexOf('/') + 1)] : ""; + var marker = names.Select(n => entries.GetValueOrDefault(scope + n)).FirstOrDefault(e => e is not null); + if (marker is not null && Leaf(marker.FullName) is "modrinth.index.json" or "shou-instance.json") return null; + if (marker is not null && Leaf(marker.FullName) == "manifest.json") + { using var manifest = await Json(marker); if (!manifest.RootElement.TryGetProperty("addons", out _)) return null; } + LocalPackFormat format; string prefix, payload, name, game; string? jvm = null, args = null; int? memory = null; string? clientJar = null; var complete = false; JsonObject? patch = null; var components = new List(); + if (marker is not null) + { + prefix = marker.FullName[..^Leaf(marker.FullName).Length]; using var data = await Json(marker); var root = data.RootElement; + name = String(root, "name", "导入的整合包"); game = ""; + switch (Leaf(marker.FullName)) + { + case "modpack.json": + format = LocalPackFormat.Hmcl; game = String(root, "gameVersion"); payload = prefix + "minecraft/"; break; + case "mcbbs.packmeta": case "manifest.json": + format = LocalPackFormat.Mcbbs; payload = prefix + "overrides/"; + foreach (var addon in root.GetProperty("addons").EnumerateArray()) { var id = String(addon, "id").ToLowerInvariant(); var version = String(addon, "version"); if (id is "game" or "minecraft") game = version; else if (Loader(id) is { } loader) components.Add(new(loader, version)); } + if (root.TryGetProperty("launchInfo", out var launch)) { jvm = Arguments(launch, "javaArgument"); args = Arguments(launch, "launchArgument"); } + break; + default: + format = LocalPackFormat.MultiMC; payload = prefix + ".minecraft/"; + if (!entries.Keys.Any(p => p.StartsWith(payload, StringComparison.Ordinal))) payload = prefix + "minecraft/"; + var cfg = new Dictionary(StringComparer.OrdinalIgnoreCase); + if (entries.TryGetValue(prefix + "instance.cfg", out var config)) + { using var text = new StreamReader(config.Open()); foreach (var line in (await text.ReadToEndAsync(ct)).Split('\n')) { var index = line.IndexOf('='); if (index > 0) cfg[line[..index].Trim()] = line[(index + 1)..].Trim(); } } + name = cfg.GetValueOrDefault("name", name); if (int.TryParse(cfg.GetValueOrDefault("MaxMemAlloc"), out var ram) && ram > 0) memory = ram; + if (cfg.GetValueOrDefault("OverrideJavaArgs")?.Equals("true", StringComparison.OrdinalIgnoreCase) == true) jvm = cfg.GetValueOrDefault("JvmArgs"); + var ids = new HashSet(StringComparer.Ordinal); foreach (var component in root.GetProperty("components").EnumerateArray()) + { var id = String(component, "uid"); var version = String(component, "version"); ids.Add(id); if (id == "net.minecraft") game = version; else if (Loader(id) is { } loader) components.Add(new(loader == "forge" && version.StartsWith("0.", StringComparison.Ordinal) ? "cleanroom" : loader, version)); } + var patches = new List(); + foreach (var file in entries.Values.Where(e => e.FullName.StartsWith(prefix + "patches/", StringComparison.Ordinal) && e.FullName.EndsWith(".json", StringComparison.OrdinalIgnoreCase))) + { using var json = await Json(file); var node = JsonNode.Parse(json.RootElement.GetRawText())!.AsObject(); if (ids.Contains((string?)node["uid"] ?? "")) + { + patches.Add(node); var loader = Loader((string?)node["uid"] ?? ""); + for (var i = 0; i < components.Count; i++) if (components[i].Loader == loader) components[i] = components[i] with { Overridden = true }; + } } + foreach (var item in patches.OrderBy(n => (int?)n["order"] ?? 0)) patch = MergePatch(patch ?? new(), item); + break; + } + } + else + { + // Restore the original ordinary ZIP layout: .../versions//.json. + var version = entries.Values.FirstOrDefault(e => { var p = e.FullName.Split('/'); return p.Length >= 3 && p[^3] == "versions" && p[^1] == p[^2] + ".json"; }); + if (version is null) return null; + var offset = version.FullName.LastIndexOf("versions/", StringComparison.Ordinal); prefix = version.FullName[..offset]; payload = prefix; name = version.FullName[(offset + 9)..].Split('/')[0]; format = LocalPackFormat.CompressedInstance; + using var json = await Json(version); patch = JsonNode.Parse(json.RootElement.GetRawText())!.AsObject(); + game = String(json.RootElement, "inheritsFrom", String(json.RootElement, "id", name)); complete = !json.RootElement.TryGetProperty("inheritsFrom", out _); + var jarId = (string?)patch["jar"] ?? name; + if (entries.ContainsKey(prefix + $"versions/{jarId}/{jarId}.jar")) clientJar = $"versions/{jarId}/{jarId}.jar"; + // Walk the archive's inheritance chain, retaining all public version metadata. + var seen = new HashSet(StringComparer.Ordinal) { name }; + while (seen.Add(game) && entries.TryGetValue(prefix + "versions/" + game + "/" + game + ".json", out var parent)) + { using var parentJson = await Json(parent); + patch = Minecraft.VersionMetadataResolver.Merge(JsonNode.Parse(parentJson.RootElement.GetRawText())!.AsObject(), patch); + if (clientJar is null && entries.ContainsKey(prefix + $"versions/{game}/{game}.jar")) clientJar = $"versions/{game}/{game}.jar"; + var next = String(parentJson.RootElement, "inheritsFrom"); if (next.Length == 0) { complete = true; break; } game = next; } + foreach (var component in InferComponents(patch)) components.Add(component); + } + if (string.IsNullOrWhiteSpace(game)) throw new InvalidDataException("整合包缺少 Minecraft 基础版本。"); IO.SafePath.Identifier(game); + var mappings = new Dictionary(StringComparer.Ordinal); + foreach (var entry in entries.Values.Where(e => e.FullName.StartsWith(payload, StringComparison.Ordinal))) { var relative = entry.FullName[payload.Length..]; if (relative.Length == 0) continue; PackPayloadPath.Validate(relative); mappings[relative] = entry.FullName; } + if (format == LocalPackFormat.MultiMC) + foreach (var entry in entries.Values.Where(e => e.FullName.StartsWith(prefix + "libraries/", StringComparison.Ordinal))) mappings["libraries/" + entry.FullName[(prefix.Length + 10)..]] = entry.FullName; + // HMCL's minecraft layer may include its fully merged version profile. + if (patch is null) + { + var profile = mappings.Where(p => p.Key.EndsWith(".json", StringComparison.OrdinalIgnoreCase) && (p.Key.Count(c => c == '/') == 0 || p.Key.StartsWith("versions/", StringComparison.Ordinal))).FirstOrDefault(p => Path.GetFileNameWithoutExtension(p.Key) == name || Path.GetFileNameWithoutExtension(p.Key) == game); + if (profile.Value is not null) { using var json = await Json(entries[profile.Value]); if (json.RootElement.TryGetProperty("mainClass", out _)) patch = JsonNode.Parse(json.RootElement.GetRawText())!.AsObject(); } + } + if (components.Count == 0 && patch is not null) components.AddRange(InferComponents(patch)); + components = components.Distinct().ToList(); var primary = components.FirstOrDefault(c => c.Loader != "optifine") ?? components.FirstOrDefault(); + archive.Verify(); + return new(new(format, name, game, primary?.Loader ?? "vanilla", primary?.Version, sha, [], true, LocalFiles: mappings.Keys.ToArray(), RecommendedMemoryMiB: memory, + LegacyProfile: new(patch?.ToJsonString(), components, jvm, args, clientJar, complete)), [], mappings, false); + } + private static string? Loader(string id) => id switch + { "forge" or "net.minecraftforge" => "forge", "neoforge" or "net.neoforged" => "neoforge", "fabric" or "net.fabricmc.fabric-loader" => "fabric", "quilt" or "org.quiltmc.quilt-loader" => "quilt", "cleanroom" => "cleanroom", "legacyfabric" => "legacyfabric", "optifine" or "optifine.OptiFine" => "optifine", "liteloader" or "com.mumfrey.liteloader" => "liteloader", _ => null }; + private static string? Arguments(JsonElement node, string key) => !node.TryGetProperty(key, out var value) ? null : value.ValueKind == JsonValueKind.String ? value.GetString() : value.ValueKind == JsonValueKind.Array ? string.Join(' ', value.EnumerateArray().Select(e => e.GetString())) : null; + private static JsonObject MergePatch(JsonObject target, JsonObject patch) + { + foreach (var (key, value) in patch) + { + if (key is "uid" or "order" or "version") continue; + if (key is "libraries" or "+libraries") { var list = target["libraries"] as JsonArray ?? new(); if (target["libraries"] is null) target["libraries"] = list; foreach (var library in value!.AsArray()) list.Add(library?.DeepClone()); } + else if (key is "+jvmArgs" or "+gameArgs") { var arguments = target["arguments"] as JsonObject ?? new(); if (target["arguments"] is null) target["arguments"] = arguments; var kind = key == "+jvmArgs" ? "jvm" : "game"; var list = arguments[kind] as JsonArray ?? new(); if (arguments[kind] is null) arguments[kind] = list; foreach (var arg in value!.AsArray()) list.Add(arg?.DeepClone()); } + else target[key] = value?.DeepClone(); + } + return target; + } + private static IEnumerable InferComponents(JsonObject metadata) + { + foreach (var node in metadata["libraries"] as JsonArray ?? []) + { + var name = (string?)node?["name"] ?? ""; var parts = name.Split(':'); if (parts.Length < 3) continue; + var loader = parts[0] switch { "net.fabricmc" when parts[1] == "fabric-loader" => "fabric", "org.quiltmc" when parts[1] == "quilt-loader" => "quilt", "net.minecraftforge" when parts[1] == "forge" => "forge", "net.neoforged" when parts[1] == "neoforge" => "neoforge", "optifine" => "optifine", _ => null }; + if (loader is not null) { var version = parts[2]; if (loader == "forge" && version.IndexOf('-') is var dash && dash >= 0) version = version[(dash + 1)..]; yield return new(loader, version, true); } + } + } + internal async Task StageLegacyAsync(string path, string expectedSha, string directory, CancellationToken ct, IProgress? progress) + { + using var archive = PackArchiveReader.Open(path); var actual = await archive.Sha256Async(ct); if (actual != expectedSha) throw new IOException("整合包自预检后已改变。"); + var descriptor = await ReadAsync(path, ct); if (descriptor.Inspection.LegacyProfile is null) throw new InvalidDataException("旧格式预检已失效。"); + IO.SafePath.RejectLinks(directory); Directory.CreateDirectory(directory); + PackDiskSpace.Require(directory, descriptor.OverrideEntries.Values.Sum(p => archive.Zip.GetEntry(p)!.Length)); + var installed = new List(); var count = 0; + foreach (var (relative, source) in descriptor.OverrideEntries) + { + ct.ThrowIfCancellationRequested(); var file = await PackArchiveReader.StreamEntryAsync(archive.Zip.GetEntry(source)!, ContentInstallFiles.Literal(directory, relative), ct); + installed.Add(new("legacy-local", actual[..16], "pack", relative, file.Sha1, file.Sha512, file.Size)); progress?.Report(new("安装整合包文件", ++count, descriptor.OverrideEntries.Count, relative)); + } + archive.Verify(); await File.WriteAllBytesAsync(ContentInstallFiles.Literal(directory, ContentInstallFiles.ManifestName), ContentInstallFiles.SerializeManifest(new(1, "unregistered", installed)), ct); + return descriptor.Inspection; + } +} diff --git a/src/SHOU.Launcher.Core/Content/LocalPackArchive.cs b/src/SHOU.Launcher.Core/Content/LocalPackArchive.cs new file mode 100644 index 00000000..eae3d018 --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/LocalPackArchive.cs @@ -0,0 +1,157 @@ +using System.IO.Compression; +using System.Security.Cryptography; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core.Content; + +public sealed record LocalPackDescriptor(LocalPackInspection Inspection, + IReadOnlyList CurseForgeFiles, IReadOnlyDictionary OverrideEntries, bool CanResolveCurseForge); + +/// Detects format metadata and stages CF and legacy payloads; MRpack keeps its format-specific installer. +public sealed partial class LocalPackArchive +{ + public async Task ReadAsync(string path, CancellationToken ct = default) + { + using var archive = PackArchiveReader.Open(path); var sha256 = await archive.Sha256Async(ct).ConfigureAwait(false); + var entries = archive.Zip.Entries.Where(e => !e.FullName.EndsWith('/')).ToDictionary(e => e.FullName, StringComparer.Ordinal); + if (await ReadLegacyAsync(archive, entries, sha256, ct).ConfigureAwait(false) is { } legacy) return legacy; + var markers = new[] { "modrinth.index.json", "manifest.json", "mmc-pack.json", "shou-instance.json" }.Where(entries.ContainsKey).ToArray(); + if (markers.Length > 1 && markers.Contains("shou-instance.json", StringComparer.Ordinal)) + { + // A root-override CF manifest may itself be game payload in a later exact SHOU export. + using var metadata = PackArchiveReader.Json(await PackArchiveReader.ReadEntryAsync(entries["shou-instance.json"], int.MaxValue, ct).ConfigureAwait(false)); + var value = metadata.RootElement; + if (value.TryGetProperty("schemaVersion", out var schema) && schema.TryGetInt32(out var number) && number == 2 && + value.TryGetProperty("Files", out var list) && list.ValueKind == JsonValueKind.Array && + markers.Where(m => m != "shou-instance.json").All(m => list.EnumerateArray().Any(f => f.TryGetProperty("Path", out var pathValue) && pathValue.GetString() == m))) + markers = ["shou-instance.json"]; + } + // WPF gives root descriptors precedence. A bundled secondary descriptor is not a reason to reject a pack. + var marker = markers.FirstOrDefault(); var prefix = ""; + if (marker is null) + { + var wrapped = entries.Keys.FirstOrDefault(k => k.Count(c => c == '/') == 1 && + new[] { "modrinth.index.json", "manifest.json", "mmc-pack.json", "shou-instance.json" }.Contains(k[(k.IndexOf('/') + 1)..], StringComparer.Ordinal)); + if (wrapped is not null) { marker = wrapped; prefix = marker[..(marker.IndexOf('/') + 1)]; } + } + var markerName = marker?[prefix.Length..]; + if (markerName == "modrinth.index.json") + { + archive.Verify(); var mrpack = await new ModrinthPackArchive().InspectAsync(path, ct).ConfigureAwait(false); archive.Verify(); + return new(new(LocalPackFormat.Modrinth, mrpack.Name, mrpack.GameVersion, mrpack.Loader, mrpack.LoaderVersion, sha256, mrpack.Warnings, mrpack.CanImport, mrpack.CapabilityReason, mrpack, mrpack.Overrides), [], new Dictionary(), false); + } + if (marker is null) return Blocked(LocalPackFormat.Unknown, "未知 ZIP", sha256, "ZIP 未包含受支持的整合包格式标识;不会作为 SHOU 包或 MRpack 猜测导入。"); + using var json = PackArchiveReader.Json(await PackArchiveReader.ReadEntryAsync(entries[marker], int.MaxValue, ct).ConfigureAwait(false)); var root = json.RootElement; + if (marker.EndsWith("mmc-pack.json", StringComparison.Ordinal)) + { + if (!entries.ContainsKey(prefix + "instance.cfg") || root.GetProperty("formatVersion").GetInt32() != 1) throw new InvalidDataException("MultiMC ZIP 缺少有效实例元数据。"); + var components = root.GetProperty("components"); if (components.ValueKind != JsonValueKind.Array || components.GetArrayLength() > 32) throw new InvalidDataException("MultiMC 组件清单无效。"); + var game = ""; var loader = "vanilla"; string? loaderVersion = null; + foreach (var component in components.EnumerateArray()) { var uid = Text(component, "uid"); if (uid == "net.minecraft") game = Text(component, "version"); else if (uid == "net.fabricmc.fabric-loader") { loader = "fabric"; loaderVersion = Text(component, "version"); } } + archive.Verify(); return Blocked(LocalPackFormat.MultiMC, "MultiMC 实例 ZIP", sha256, "已识别 MultiMC 格式;本轮导入支持 CurseForge ZIP 与 MRpack,MultiMC 仅预检,不执行其命令或迁移账户。", game, loader, loaderVersion); + } + if (markerName == "shou-instance.json") + { + if (prefix.Length > 0) return Blocked(LocalPackFormat.ShouExport, "SHOU 实例 ZIP", sha256, "SHOU 导出标识须位于归档根目录。"); + if (root.GetProperty("schemaVersion").GetInt32() == 2) return await ShouPackArchive.ReadAsync(archive, root, sha256, null, ct).ConfigureAwait(false); + if (root.GetProperty("schemaVersion").GetInt32() != 1) throw new InvalidDataException("SHOU 导出格式版本不受支持。"); + archive.Verify(); return Blocked(LocalPackFormat.ShouExport, Text(root, "Name"), sha256, "已识别 SHOU 实例导出;历史 v1 缺少精确文件校验清单,请使用新版重新导出。"); + } + if (Text(root, "manifestType") != "minecraftModpack" || root.GetProperty("manifestVersion").GetInt32() != 1) throw new InvalidDataException("manifest.json 不是支持的 CurseForge Minecraft 整合包清单。"); + var minecraft = root.GetProperty("minecraft"); var gameVersion = IO.SafePath.Identifier(Text(minecraft, "version")); var name = Text(root, "name"); + var packVersion = root.TryGetProperty("version", out var version) && version.ValueKind == JsonValueKind.String ? Text(root, "version") : null; + int? recommendedMemory = minecraft.TryGetProperty("recommendedRam", out var ram) && ram.TryGetInt32(out var memory) && memory is >= 512 and <= 65536 ? memory : null; + var loaderKind = "vanilla"; string? loaderVersionText = null; var supported = true; var loaders = minecraft.GetProperty("modLoaders"); + if (loaders.ValueKind != JsonValueKind.Array || loaders.GetArrayLength() > 16) throw new InvalidDataException("CurseForge 加载器列表无效。"); + var primary = loaders.EnumerateArray().Where(l => l.TryGetProperty("primary", out var flag) && flag.ValueKind == JsonValueKind.True).ToArray(); + if (loaders.GetArrayLength() > 0) + { + if (loaders.GetArrayLength() != 1 || primary.Length != 1) supported = false; + else { var id = Text(primary[0], "id"); var dash = id.IndexOf('-'); loaderKind = dash > 0 ? id[..dash] : "unknown"; + if (dash > 0 && PackLoaderIdentity.Supported(loaderKind) && loaderKind != "vanilla") loaderVersionText = IO.SafePath.Identifier(id[(dash + 1)..]); else supported = false; } + } + var files = root.GetProperty("files"); if (files.ValueKind != JsonValueKind.Array || files.GetArrayLength() > ModrinthPackArchive.MaximumFiles) throw new InvalidDataException($"CurseForge 文件清单超过 {ModrinthPackArchive.MaximumFiles} 项或类型无效。"); + var references = new List(); var ids = new HashSet(); + foreach (var file in files.EnumerateArray()) + { + var project = file.GetProperty("projectID").GetInt32(); var id = file.GetProperty("fileID").GetInt32(); + if (project <= 0 || id <= 0 || !ids.Add(id)) throw new InvalidDataException("CurseForge 文件身份重复或无效。"); + references.Add(new(project, id, file.GetProperty("required").GetBoolean())); + } + var overrideRoot = root.TryGetProperty("overrides", out _) ? Text(root, "overrides", 512) : "overrides"; + if (overrideRoot is "." or "./") overrideRoot = ""; + else { overrideRoot = overrideRoot.TrimEnd('/'); ModrinthPackArchive.SafeRelative(overrideRoot); } + var overridePrefix = prefix + (overrideRoot.Length == 0 ? "" : overrideRoot + "/"); + var overrides = new Dictionary(StringComparer.Ordinal); + foreach (var entry in entries.Values.Where(e => e.FullName.StartsWith(overridePrefix, StringComparison.Ordinal))) + { var relative = entry.FullName[overridePrefix.Length..]; PackPayloadPath.Validate(relative); overrides.Add(relative, entry.FullName); } + if (overrides.Count + references.Count > ModrinthPackArchive.MaximumFiles) throw new InvalidDataException($"整合包客户端文件超过 {ModrinthPackArchive.MaximumFiles} 项。"); + PackArchiveReader.CheckTargets(overrides.Keys); archive.Verify(); + var warnings = new List { "仅创建新的客户端实例;游戏本体将在首次启动时按官方安装流程准备。", "模组版本标签及元数据只做静态提示,完整依赖与实际兼容性由加载器最终验证。" }; + var reason = supported ? "尚需通过 CurseForge 官方 API 核实清单文件与下载可用性。" : "此 CurseForge ZIP 的加载器身份尚未支持;不猜测多个加载器组合。"; + return new(new(LocalPackFormat.CurseForge, name, gameVersion, loaderKind, loaderVersionText, sha256, warnings, false, reason, LocalFiles: overrides.Keys.ToArray(), PackVersion: packVersion, RecommendedMemoryMiB: recommendedMemory, + OptionalFiles: references.Where(f => !f.Required).Select(f => CurseForgePackSelection.Choice(f)).ToArray()), references, overrides, supported); + } + public async Task StageCurseForgeAsync(string path, string expectedSha256, string directory, + IReadOnlyList files, Func download, CancellationToken ct = default, IProgress? progress = null, int maximumConnections = DownloadDefaults.Connections, + IReadOnlyList? optionalFiles = null) + { + if (!ContentInstallFiles.Hash(expectedSha256, 64)) throw new InvalidDataException("请先读取整合包并确认其 SHA-256。"); + VerifiedDownloader.RejectLink(directory); Directory.CreateDirectory(directory); if (Directory.EnumerateFileSystemEntries(directory).Any()) throw new IOException("整合包暂存目录须为空。"); + var copyPath = ContentInstallFiles.Literal(Path.GetDirectoryName(Path.GetFullPath(directory))!, ".shou-local-input-" + Guid.NewGuid().ToString("N") + ".zip"); + try + { + using (var source = PackArchiveReader.Open(path)) await source.CopyToAsync(copyPath, ct).ConfigureAwait(false); + using var archive = PackArchiveReader.Open(copyPath); var actual = await archive.Sha256Async(ct).ConfigureAwait(false); + if (!actual.Equals(expectedSha256, StringComparison.OrdinalIgnoreCase)) throw new IOException("ZIP 自预检后已改变,请重新预检。"); + var read = await ReadAsync(copyPath, ct).ConfigureAwait(false); + if (read.Inspection.Format != LocalPackFormat.CurseForge || !read.CanResolveCurseForge) throw new NotSupportedException("此 ZIP 不是支持的 CurseForge 客户端包。"); + var required = CurseForgePackSelection.Apply(read.CurseForgeFiles, optionalFiles).Where(f => f.Required).ToArray(); + if (files.Count != required.Length || required.Any(r => files.Count(f => f.ProjectId == r.ProjectId && f.FileId == r.FileId) != 1)) throw new InvalidDataException("已解析文件未完整匹配 required 清单,未创建实例。"); + if (files.Select(f => ContentInstallFiles.PathKey(f.Path)).Distinct(StringComparer.Ordinal).Count() != files.Count) throw new InvalidDataException("解析结果存在路径冲突或超过总大小预算。"); + PackArchiveReader.CheckTargets(files.Select(f => f.Path).Concat(read.OverrideEntries.Keys)); + PackDiskSpace.Require(directory, checked(files.Sum(f => f.Size) + read.OverrideEntries.Values.Sum(p => archive.Zip.GetEntry(p)!.Length))); + var installed = new List(); var done = 0; var total = files.Count + read.OverrideEntries.Count; + progress?.Report(new("安装整合包文件", 0, total)); + await Parallel.ForEachAsync(files, new ParallelOptions { MaxDegreeOfParallelism = Math.Clamp(maximumConnections, 1, DownloadDefaults.MaximumConnections), CancellationToken = ct }, async (file, token) => + { + var targetKind = file.Path.StartsWith("mods/", StringComparison.Ordinal) && file.Path.EndsWith(".jar", StringComparison.OrdinalIgnoreCase) ? "mod" + : file.Path.EndsWith(".zip", StringComparison.OrdinalIgnoreCase) + ? file.Path.StartsWith("resourcepacks/", StringComparison.Ordinal) ? "resourcepack" + : file.Path.StartsWith("shaderpacks/", StringComparison.Ordinal) ? "shader" + : file.Path.StartsWith("datapacks/", StringComparison.Ordinal) ? "datapack" + : file.Path.StartsWith("saves/", StringComparison.Ordinal) ? "world" : null + : null; + PackPayloadPath.Validate(file.Path); + if (targetKind is null || file.Size is <= 0 or > PackArchiveReader.MaximumFileBytes || !ContentInstallFiles.Hash(file.Sha1, 40)) throw new InvalidDataException("解析结果的资源路径、大小或哈希无效。"); + var target = ContentInstallFiles.Literal(directory, file.Path); Directory.CreateDirectory(Path.GetDirectoryName(target)!); await download(file, target, token).ConfigureAwait(false); + if (!await ContentInstallFiles.MatchesAsync(target, file.Sha1, file.Size, token).ConfigureAwait(false)) throw new InvalidDataException("CurseForge 模组 SHA-1 或大小校验失败。"); + await using var bytes = new FileStream(target, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); var sha512 = Convert.ToHexStringLower(await SHA512.HashDataAsync(bytes, token).ConfigureAwait(false)); + if (file.Sha512 is not null && !sha512.Equals(file.Sha512, StringComparison.OrdinalIgnoreCase)) throw new InvalidDataException("同哈希回退模组 SHA-512 校验失败。"); + var optional = read.CurseForgeFiles.Any(f => f.ProjectId == file.ProjectId && f.FileId == file.FileId && !f.Required); + lock (installed) installed.Add(new("cf-" + file.ProjectId, "cf-" + file.FileId, targetKind, file.Path, file.Sha1, sha512, file.Size, file.FromModrinth ? file.DownloadUri.AbsoluteUri : null, Client: optional ? "optional" : "required")); + progress?.Report(new("安装整合包文件", Interlocked.Increment(ref done), total, file.Path)); + foreach (var suffix in new[] { ".download.lock", ".part", ".part.resume.json" }) { var sidecar = ContentInstallFiles.Literal(directory, file.Path + suffix); if (File.Exists(sidecar)) File.Delete(sidecar); } + + }).ConfigureAwait(false); + foreach (var (relative, entryName) in read.OverrideEntries) + { + var entry = archive.Zip.GetEntry(entryName) ?? throw new IOException("覆盖文件在暂存副本中缺失。"); + var target = ContentInstallFiles.Literal(directory, relative); if (File.Exists(target)) File.Delete(target); + var streamed = await PackArchiveReader.StreamEntryAsync(entry, target, ct).ConfigureAwait(false); installed.RemoveAll(f => ContentInstallFiles.PathKey(f.RelativePath) == ContentInstallFiles.PathKey(relative)); + progress?.Report(new("安装整合包文件", ++done, total, relative)); + installed.Add(new("cf-local", actual[..16], "pack", relative, streamed.Sha1, streamed.Sha512, streamed.Size)); + } + progress?.Report(new("安装整合包文件", total, total)); + archive.Verify(); ct.ThrowIfCancellationRequested(); await File.WriteAllBytesAsync(ContentInstallFiles.Literal(directory, ContentInstallFiles.ManifestName), ContentInstallFiles.SerializeManifest(new ContentInstallManifest(1, "unregistered", installed)), ct).ConfigureAwait(false); + return read.Inspection; + } + finally { VerifiedDownloader.RejectLink(copyPath); if (File.Exists(copyPath)) File.Delete(copyPath); } + } + private static LocalPackDescriptor Blocked(LocalPackFormat format, string name, string sha, string reason, string game = "", string loader = "", string? loaderVersion = null) + => new(new(format, name, game, loader, loaderVersion, sha, [], false, reason), [], new Dictionary(), false); + private static string Text(JsonElement value, string property, int maximum = 160) + { var text = value.GetProperty(property).GetString() ?? ""; if (text.Length is < 1 || text.Length > maximum || text.Any(char.IsControl)) throw new InvalidDataException("整合包元数据文字字段无效。"); return text; } +} diff --git a/src/SHOU.Launcher.Core/Content/ModUpdateFiles.cs b/src/SHOU.Launcher.Core/Content/ModUpdateFiles.cs new file mode 100644 index 00000000..962f8fbe --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/ModUpdateFiles.cs @@ -0,0 +1,100 @@ +using System.Security.Cryptography; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core.Content; + +/// Downloads before publishing; retains the original resource and manifest in an instance-local backup. +public static class ModUpdateFiles +{ + public static async Task ApplyAsync(GameInstance instance, ContentInstalledFile old, + ContentInstallPlan plan, Func download, Action validateTarget, CancellationToken ct = default) + { + var folder = ContentInstallPlanner.Folder(old.Kind); var resource = old.Kind is "resourcepack" or "shader"; + if (plan.InstanceId != instance.Id || plan.Files.Count is 0 or > 64 || plan.Files.Any(f => + (!resource && f.Kind != "mod") || !f.RelativePath.StartsWith(ContentInstallPlanner.Folder(f.Kind) + "/", StringComparison.Ordinal))) throw new InvalidDataException("资源更新计划无效。"); + if (!old.RelativePath.StartsWith(folder + "/", StringComparison.Ordinal) || old.RelativePath[(folder.Length + 1)..].Contains('/')) throw new InvalidDataException("原资源路径无效。"); + var rootFile = plan.Files.SingleOrDefault(f => !f.Dependency && f.ProjectId == old.ProjectId && f.Kind == old.Kind) ?? throw new InvalidDataException("更新缺少唯一主资源。"); + if (resource && (plan.Files.Count != 1 || rootFile.RelativePath != old.RelativePath)) throw new InvalidDataException("资源更新须仅替换所选文件,并保留原文件名及其启用引用。"); + var root = instance.GameDirectory; var manifestPath = ContentInstallFiles.Literal(root, ContentInstallFiles.ManifestName); + var previous = await ContentInstallFiles.ReadManifestAsync(instance, ct).ConfigureAwait(false); + var previousBytes = File.Exists(manifestPath) ? await File.ReadAllBytesAsync(manifestPath, ct).ConfigureAwait(false) : null; + var oldPath = ContentInstallFiles.Literal(root, old.RelativePath); + async Task VerifyOld(CancellationToken token) + { + if (!await ContentInstallFiles.MatchesAsync(oldPath, old.Sha1, old.Size, token).ConfigureAwait(false)) throw new IOException("原模组已改变,请重新检查。"); + await using var input = new FileStream(oldPath, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); + if (Convert.ToHexStringLower(await SHA512.HashDataAsync(input, token).ConfigureAwait(false)) != old.Sha512) throw new IOException("原模组 SHA-512 已改变。"); + } + async Task VerifyManifest(CancellationToken token) + { + var now = File.Exists(manifestPath) ? await File.ReadAllBytesAsync(manifestPath, token).ConfigureAwait(false) : null; + if (!(previousBytes is null ? now is null : now is not null && previousBytes.AsSpan().SequenceEqual(now))) throw new IOException("安装清单已改变,请重新检查。"); + } + await VerifyOld(ct).ConfigureAwait(false); validateTarget(); + var disabledSuffix = old.RelativePath.EndsWith(".disabled", StringComparison.OrdinalIgnoreCase) ? ".disabled" : old.RelativePath.EndsWith(".old", StringComparison.OrdinalIgnoreCase) ? ".old" : ""; + var disabled = disabledSuffix.Length > 0; + var files = plan.Files.Select(f => disabled && f == rootFile ? f with { RelativePath = f.RelativePath + ".disabled" } : f).ToArray(); + if (files.Select(f => ContentInstallFiles.PathKey(f.RelativePath)).Distinct(StringComparer.Ordinal).Count() != files.Length) throw new InvalidDataException("更新目标文件路径冲突。"); + var untouched = files.Where(f => ContentInstallFiles.PathKey(f.RelativePath) != ContentInstallFiles.PathKey(old.RelativePath)).ToArray(); + await ContentInstallFiles.CheckConflictsAsync(root, untouched, ct).ConfigureAwait(false); + var suffix = Guid.NewGuid().ToString("N"); var stage = ContentInstallFiles.Literal(root, (resource ? ".shou-resource-update-stage-" : ".shou-mod-update-stage-") + suffix); + var backup = ContentInstallFiles.Literal(root, (resource ? ".shou-resource-backups/" : ".shou-mod-backups/") + DateTimeOffset.UtcNow.ToString("yyyyMMdd-HHmmss") + "-" + suffix); + var backupOld = ContentInstallFiles.Literal(backup, old.RelativePath); + var completed = new List(); var published = new List(); var movedOld = false; var committed = false; + Directory.CreateDirectory(stage); + try + { + foreach (var file in files) + { + ct.ThrowIfCancellationRequested(); ContentInstallFiles.ValidateFile(file.File); + var target = ContentInstallFiles.Literal(stage, file.RelativePath); Directory.CreateDirectory(Path.GetDirectoryName(target)!); + await download(file.File, target, ct).ConfigureAwait(false); + if (!await ContentInstallFiles.MatchesAsync(target, file.File.Sha1, file.File.Size, ct).ConfigureAwait(false)) throw new InvalidDataException("更新文件校验失败,原文件保留。"); + await using var input = new FileStream(target, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); + var primary = !file.Dependency && file.ProjectId == old.ProjectId; + completed.Add(new(file.ProjectId, file.ReleaseId, file.Kind, file.RelativePath, file.File.Sha1, Convert.ToHexStringLower(await SHA512.HashDataAsync(input, ct).ConfigureAwait(false)), file.File.Size, file.File.Uri.AbsoluteUri, primary ? old.Client : "required", primary ? old.Server : "unsupported")); + } + var oldEnabledPath = disabled ? old.RelativePath[..^disabledSuffix.Length] : old.RelativePath; + var merged = previous.Files.Where(f => f.RelativePath != old.RelativePath && f.RelativePath != oldEnabledPath && f.RelativePath != oldEnabledPath + ".disabled" && completed.All(n => ContentInstallFiles.PathKey(n.RelativePath) != ContentInstallFiles.PathKey(f.RelativePath))).Concat(completed).ToArray(); + var nextManifest = ContentInstallFiles.Literal(stage, ContentInstallFiles.ManifestName); + await File.WriteAllBytesAsync(nextManifest, ContentInstallFiles.SerializeManifest(new(1, instance.Id, merged)), ct).ConfigureAwait(false); + await VerifyOld(ct).ConfigureAwait(false); await VerifyManifest(ct).ConfigureAwait(false); validateTarget(); + await ContentInstallFiles.CheckConflictsAsync(root, untouched, ct).ConfigureAwait(false); + Directory.CreateDirectory(Path.GetDirectoryName(backupOld)!); + if (previousBytes is not null) await File.WriteAllBytesAsync(ContentInstallFiles.Literal(backup, ContentInstallFiles.ManifestName), previousBytes, ct).ConfigureAwait(false); + ct.ThrowIfCancellationRequested(); File.Move(oldPath, backupOld, false); movedOld = true; + foreach (var file in completed) + { + ct.ThrowIfCancellationRequested(); var target = ContentInstallFiles.Literal(root, file.RelativePath); + if (File.Exists(target)) + { + if (!await ContentInstallFiles.MatchesAsync(target, file.Sha1, file.Size, ct).ConfigureAwait(false)) throw new IOException("更新目标在下载期间改变。"); + continue; + } + Directory.CreateDirectory(Path.GetDirectoryName(target)!); File.Move(ContentInstallFiles.Literal(stage, file.RelativePath), target, false); published.Add(file); + } + await VerifyManifest(ct).ConfigureAwait(false); validateTarget(); ct.ThrowIfCancellationRequested(); + File.Move(nextManifest, manifestPath, true); committed = true; + return new(backup, completed.Count, plan.Warnings); + } + finally + { + if (!committed) + { + foreach (var file in published) + { + var target = ContentInstallFiles.Literal(root, file.RelativePath); + if (await ContentInstallFiles.MatchesAsync(target, file.Sha1, file.Size, CancellationToken.None).ConfigureAwait(false)) File.Delete(target); + } + if (movedOld) + { + _ = ContentInstallFiles.Literal(root, old.RelativePath); + if (File.Exists(oldPath)) throw new IOException("回滚目标被外部改变,原模组已保留在:" + backup); + File.Move(backupOld, oldPath, false); + } + } + VerifiedDownloader.RejectLink(stage); if (Directory.Exists(stage)) Directory.Delete(stage, true); + } + } +} diff --git a/src/SHOU.Launcher.Core/Content/ModrinthPackArchive.Export.cs b/src/SHOU.Launcher.Core/Content/ModrinthPackArchive.Export.cs new file mode 100644 index 00000000..bd7628f5 --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/ModrinthPackArchive.Export.cs @@ -0,0 +1,121 @@ +using System.IO.Compression; +using System.Security.Cryptography; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core.Content; + +public sealed partial class ModrinthPackArchive +{ + public async Task ExportAsync(GameInstance instance, ModrinthPackExportOptions options, string exportDirectory, CancellationToken ct = default) + { + if (string.IsNullOrWhiteSpace(options.Name) || options.Name.Length > 160 || options.Name.Any(char.IsControl) || string.IsNullOrWhiteSpace(options.VersionId) || options.VersionId.Length > 160 || options.VersionId.Any(char.IsControl)) + throw new ArgumentException("整合包名称与版本须为1–160字的单行文字。"); + var gameVersion = InstanceIdentity.GameVersion(instance); + PackLoaderIdentity.Validate(instance.Loader, instance.LoaderVersion); + if (instance.Loader == "fabric" && string.IsNullOrWhiteSpace(instance.LoaderVersion)) throw new InvalidDataException("Fabric实例缺少Loader版本。"); + var manifest = await ContentInstallFiles.ReadManifestAsync(instance, ct).ConfigureAwait(false); + VerifiedDownloader.RejectLink(instance.GameDirectory); VerifiedDownloader.RejectLink(exportDirectory); + if (IO.SafePath.IsWithin(IO.SafePath.Canonical(instance.GameDirectory), IO.SafePath.Canonical(exportDirectory))) throw new IOException("整合包输出目录不能位于实例内部。"); + var local = new Dictionary(StringComparer.Ordinal); long overrideBytes = 0; + void AddFile(string relative) + { + AllowedPath(relative); var full = ContentInstallFiles.Literal(instance.GameDirectory, relative); + var info = new FileInfo(full); + if (!info.Exists || info.Length > MaximumOverrideFileBytes) throw new IOException("选择的导出文件不存在或超过128 MiB限制。"); + if (local.TryAdd(Key(relative), relative)) overrideBytes = checked(overrideBytes + info.Length); + else if (local[Key(relative)] != relative) throw new IOException("导出文件存在大小写或Unicode路径冲突。"); + if (local.Count > MaximumFiles || overrideBytes > MaximumOverrideBytes) throw new IOException($"导出覆盖文件超过{MaximumFiles}项或512 MiB限制。"); + } + foreach (var requested in options.OverridePaths ?? []) + { + AllowedPath(requested, directory: true); var full = ContentInstallFiles.Literal(instance.GameDirectory, requested); + if (Directory.Exists(full)) + { + var pending = new Stack(); pending.Push(requested); var directories = 0; + while (pending.TryPop(out var current)) + { + ct.ThrowIfCancellationRequested(); if (++directories > MaximumEntries) throw new IOException($"导出目录超过{MaximumEntries}项限制。"); + foreach (var child in Directory.EnumerateFileSystemEntries(ContentInstallFiles.Literal(instance.GameDirectory, current))) + { + var relative = Path.GetRelativePath(instance.GameDirectory, child).Replace('\\', '/'); + _ = ContentInstallFiles.Literal(instance.GameDirectory, relative); + if (Directory.Exists(child)) pending.Push(relative); else AddFile(relative); + } + } + } + else AddFile(requested); + } + var remote = new List(); + foreach (var file in manifest.Files) + { + ct.ThrowIfCancellationRequested(); AllowedPath(file.RelativePath); + if (options.BundleInstalledFiles) AddFile(file.RelativePath); + if (local.ContainsKey(Key(file.RelativePath))) continue; + var full = ContentInstallFiles.Literal(instance.GameDirectory, file.RelativePath); + if (!await ContentInstallFiles.MatchesAsync(full, file.Sha1, file.Size, ct).ConfigureAwait(false)) throw new IOException("安装清单内的文件已改变,拒绝导出旧哈希:" + file.RelativePath); + await using (var input = new FileStream(full, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true)) + if (!Convert.ToHexStringLower(await SHA512.HashDataAsync(input, ct).ConfigureAwait(false)).Equals(file.Sha512, StringComparison.OrdinalIgnoreCase)) throw new IOException("安装清单的SHA-512与实际文件不一致。"); + if (file.DownloadUrl is { } url && !local.ContainsKey(Key(file.RelativePath))) remote.Add(new(file.RelativePath, file.Sha1, file.Sha512, file.Size, [url], file.Client, file.Server)); + else if (!local.ContainsKey(Key(file.RelativePath))) throw new InvalidOperationException("此实例含本地覆盖文件,请明确选入导出路径或启用打包已安装文件:" + file.RelativePath); + } + var localHashes = new Dictionary(StringComparer.Ordinal); + long currentOverrideBytes = 0; + foreach (var relative in local.Values) + { + await using var input = new FileStream(ContentInstallFiles.Literal(instance.GameDirectory, relative), FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); + if (input.Length > MaximumOverrideFileBytes) throw new IOException("导出文件超过128 MiB限制。"); + var length = input.Length; + if ((currentOverrideBytes = checked(currentOverrideBytes + length)) > MaximumOverrideBytes) throw new IOException("导出覆盖文件超过512 MiB限制。"); + var sha1 = Convert.ToHexStringLower(await SHA1.HashDataAsync(input, ct)); input.Position = 0; + var sha512 = Convert.ToHexStringLower(await SHA512.HashDataAsync(input, ct)); + localHashes.Add(Key(relative), (length, sha1, sha512)); + } + if (remote.Count + local.Count > MaximumFiles || remote.Sum(f => f.Size) > MaximumDownloadBytes) throw new IOException("导出客户端文件超过数量或总大小限制。"); + Directory.CreateDirectory(exportDirectory); VerifiedDownloader.RejectLink(exportDirectory); + var final = ContentInstallFiles.Literal(exportDirectory, "pack-" + Guid.NewGuid().ToString("N") + ".mrpack"); var temporary = final + ".tmp"; + var published = false; + try + { + await using (var output = new FileStream(temporary, FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None, 131072, true)) + { + using (var zip = new ZipArchive(output, ZipArchiveMode.Create, true)) + { + foreach (var relative in local.Values) + { + ct.ThrowIfCancellationRequested(); var full = ContentInstallFiles.Literal(instance.GameDirectory, relative); + var entry = zip.CreateEntry("client-overrides/" + relative, CompressionLevel.Optimal); + await using var input = new FileStream(full, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); + var expected = localHashes[Key(relative)]; var length = input.Length; if (length != expected.Size || length > MaximumOverrideFileBytes) throw new IOException("导出文件在读取前超过大小限制。"); + await using var target = entry.Open(); + using var sha1 = IncrementalHash.CreateHash(HashAlgorithmName.SHA1); using var sha512 = IncrementalHash.CreateHash(HashAlgorithmName.SHA512); + var buffer = new byte[131072]; long copied = 0; + while (true) + { + var read = await input.ReadAsync(buffer, ct).ConfigureAwait(false); if (read == 0) break; + if ((copied += read) > length) throw new IOException("导出文件在读取时改变大小。"); + sha1.AppendData(buffer, 0, read); sha512.AppendData(buffer, 0, read); + await target.WriteAsync(buffer.AsMemory(0, read), ct).ConfigureAwait(false); + } + if (copied != length) throw new IOException("导出文件在读取时改变大小。"); + if (Convert.ToHexStringLower(sha1.GetHashAndReset()) != expected.Sha1 || Convert.ToHexStringLower(sha512.GetHashAndReset()) != expected.Sha512) + throw new IOException("打包文件在读取时改变,未生成整合包。"); + } + var dependencies = new Dictionary { ["minecraft"] = gameVersion }; + if (instance.Loader != "vanilla") dependencies.Add(PackLoaderIdentity.Dependency(instance.Loader), instance.LoaderVersion!); + var index = new { formatVersion = 1, game = "minecraft", versionId = options.VersionId, name = options.Name, + files = remote.Select(f => new { path = f.Path, hashes = new { sha1 = f.Sha1, sha512 = f.Sha512 }, env = new { client = f.Client, server = f.Server }, downloads = f.Downloads, fileSize = f.Size }), dependencies }; + await using var indexStream = zip.CreateEntry("modrinth.index.json", CompressionLevel.Optimal).Open(); + await JsonSerializer.SerializeAsync(indexStream, index, cancellationToken: ct).ConfigureAwait(false); + } + await output.FlushAsync(ct).ConfigureAwait(false); + if (output.Length > MaximumArchiveBytes) throw new IOException("导出的整合包超过256 MiB限制。"); + } + ct.ThrowIfCancellationRequested(); VerifiedDownloader.RejectLink(temporary); VerifiedDownloader.RejectLink(final); + File.Move(temporary, final, false); published = true; return final; + } + finally { if (!published) { VerifiedDownloader.RejectLink(temporary); if (File.Exists(temporary)) File.Delete(temporary); } } + } +} diff --git a/src/SHOU.Launcher.Core/Content/ModrinthPackArchive.cs b/src/SHOU.Launcher.Core/Content/ModrinthPackArchive.cs new file mode 100644 index 00000000..affe9543 --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/ModrinthPackArchive.cs @@ -0,0 +1,212 @@ +using System.Buffers.Binary; +using System.IO.Compression; +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core.Content; + +public sealed partial class ModrinthPackArchive +{ + public const long MaximumArchiveBytes = long.MaxValue, MaximumOverrideBytes = long.MaxValue; + public const int MaximumEntries = PackArchiveReader.MaximumEntries, MaximumFiles = int.MaxValue; + private const long MaximumOverrideFileBytes = long.MaxValue, MaximumDownloadBytes = long.MaxValue; + private static readonly string[] DownloadSidecars = [".download.lock", ".part", ".part.resume.json"]; + private sealed record PackRead(ModrinthPackInspection Inspection, IReadOnlyDictionary Overrides); + public async Task InspectAsync(string archivePath, CancellationToken ct = default) + { + await using var input = OpenArchive(archivePath); + var sha256 = Convert.ToHexStringLower(await SHA256.HashDataAsync(input, ct).ConfigureAwait(false)); input.Position = 0; + ValidateDirectory(input); input.Position = 0; + using var zip = new ZipArchive(input, ZipArchiveMode.Read, true); + return (await ReadAsync(zip, sha256, ct).ConfigureAwait(false)).Inspection; + } + private static FileStream OpenArchive(string path) + { + if (!Path.IsPathFullyQualified(path)) throw new ArgumentException("请选择本机整合包的绝对路径。"); + VerifiedDownloader.RejectLink(path); + var stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); + if (stream.Length is <= 0 or > MaximumArchiveBytes) { stream.Dispose(); throw new InvalidDataException("请选择非空的 ZIP 整合包。"); } + return stream; + } + private static void ValidateDirectory(FileStream input) => PackArchiveReader.ValidateDirectory(input); + public static string SafeRelative(string path) + { + if (path.Length == 0 || path[0] == '/' || path.Contains('\\') || path.Split('/').Any(p => p.Length == 0 || p is "." or ".." || p.EndsWith(' ') || p.EndsWith('.') || p.Any(c => char.IsControl(c) || ":<>|\"*?".Contains(c)))) + throw new InvalidDataException("整合包文件路径无效或越界。"); + return path; + } + private static string Key(string path) => path.Normalize(NormalizationForm.FormC).ToUpperInvariant(); + private static void AllowedPath(string path, bool directory = false) => PackPayloadPath.Validate(path); + private static async Task ReadBoundedAsync(Stream input, long maximum, CancellationToken ct) + { + using var bytes = new MemoryStream(); var buffer = new byte[16384]; + while (true) + { + var count = await input.ReadAsync(buffer, ct).ConfigureAwait(false); if (count == 0) break; + if (bytes.Length + count > maximum) throw new InvalidDataException("整合包条目解压超过大小限制。"); + bytes.Write(buffer, 0, count); + } + return bytes.ToArray(); + } + private static void UniqueJson(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Object) + { + var seen = new HashSet(StringComparer.Ordinal); + foreach (var property in element.EnumerateObject()) { if (!seen.Add(property.Name)) throw new InvalidDataException("整合包清单存在重复JSON键。"); UniqueJson(property.Value); } + } + else if (element.ValueKind == JsonValueKind.Array) foreach (var item in element.EnumerateArray()) UniqueJson(item); + } + private static string Text(JsonElement item, string key, int maximum = 160) + { + var value = item.GetProperty(key).GetString() ?? ""; + if (value.Length is 0 || value.Length > maximum || value.Any(char.IsControl)) throw new InvalidDataException("整合包清单文字字段无效。"); + return value; + } + private static async Task ReadAsync(ZipArchive zip, string sha256, CancellationToken ct) + { + if (zip.Entries.Count is 0 or > MaximumEntries) throw new InvalidDataException("ZIP条目数量超限。"); + var entryKeys = new HashSet(StringComparer.Ordinal); var common = new Dictionary(StringComparer.Ordinal); + var client = new Dictionary(StringComparer.Ordinal); long total = 0; var serverCount = 0; + var indexes = zip.Entries.Where(e => e.FullName == "modrinth.index.json").ToArray(); + if (indexes.Length == 0) indexes = zip.Entries.Where(e => e.FullName.EndsWith("/modrinth.index.json", StringComparison.Ordinal) && e.FullName.Count(c => c == '/') == 1).ToArray(); + if (indexes.Length != 1) throw new InvalidDataException("整合包须包含唯一的 modrinth.index.json。"); + var index = indexes[0]; var prefix = index.FullName[..^"modrinth.index.json".Length]; + foreach (var entry in zip.Entries) + { + ct.ThrowIfCancellationRequested(); + var isDirectory = entry.FullName.EndsWith('/'); var name = isDirectory ? entry.FullName[..^1] : entry.FullName; + SafeRelative(name); + if (!entryKeys.Add(Key(name)) || ((entry.ExternalAttributes >> 16) & 0xF000) == 0xA000) throw new InvalidDataException("ZIP含重复路径、符号链接或大小写/Unicode路径冲突。"); + if (isDirectory) { if (entry.Length != 0) throw new InvalidDataException("ZIP目录条目长度无效。"); continue; } + if (entry == index) continue; + if (entry.Length > MaximumOverrideFileBytes || checked(total += entry.Length) > MaximumOverrideBytes) throw new InvalidDataException("整合包解压长度超出系统可表示范围。"); + // Only format-defined override layers are game payload. Extra archive documentation is harmless. + if (!name.StartsWith(prefix, StringComparison.Ordinal)) continue; + var scoped = name[prefix.Length..]; var slash = scoped.IndexOf('/'); if (slash < 0) continue; + var layer = scoped[..slash]; var relative = scoped[(slash + 1)..]; SafeRelative(relative); + if (layer == "server-overrides") { serverCount++; continue; } + var target = layer switch { "overrides" => common, "client-overrides" => client, _ => null }; + if (target is null) continue; + target.Add(Key(relative), entry); + } + using var json = PackArchiveReader.Json(await PackArchiveReader.ReadEntryAsync(index, int.MaxValue, ct).ConfigureAwait(false)); + UniqueJson(json.RootElement); var root = json.RootElement; + if (root.GetProperty("formatVersion").GetInt32() != 1 || Text(root, "game") != "minecraft") throw new NotSupportedException("只支持Minecraft的Modrinth格式版本1。"); + var nameText = Text(root, "name"); var version = Text(root, "versionId"); + var dependencies = root.GetProperty("dependencies"); var gameVersion = IO.SafePath.Identifier(Text(dependencies, "minecraft")); + var loader = "vanilla"; string? loaderVersion = null; string? unsupported = null; var loaders = 0; + foreach (var property in dependencies.EnumerateObject()) + { + if (property.Name == "minecraft") continue; + loaders++; loaderVersion = IO.SafePath.Identifier(property.Value.GetString() ?? ""); + loader = property.Name switch { "fabric-loader" => "fabric", "forge" => "forge", "neoforge" or "neo-forge" => "neoforge", "quilt-loader" => "quilt", _ => "unknown" }; + if (!PackLoaderIdentity.Supported(loader)) unsupported = "此包的加载器尚未接入:" + property.Name; + } + if (loaders > 1) unsupported = "整合包同时声明多个加载器,首批不支持此组合。"; + var sourceFiles = root.GetProperty("files"); + if (sourceFiles.ValueKind != JsonValueKind.Array || sourceFiles.GetArrayLength() > MaximumFiles) throw new InvalidDataException($"整合包下载文件超过{MaximumFiles}项限制。"); + var files = new List(); var fileKeys = new HashSet(StringComparer.Ordinal); long downloadBytes = 0; + foreach (var file in sourceFiles.EnumerateArray()) + { + var path = Text(file, "path", 512); SafeRelative(path); + var clientSide = "required"; var serverSide = "required"; + if (file.TryGetProperty("env", out var env)) { clientSide = Text(env, "client"); serverSide = Text(env, "server"); } + if (clientSide is not ("required" or "optional" or "unsupported") || serverSide is not ("required" or "optional" or "unsupported")) throw new InvalidDataException("整合包客户端/服务器环境声明无效。"); + if (clientSide != "unsupported") AllowedPath(path); + if (!fileKeys.Add(Key(path))) throw new InvalidDataException("下载清单存在重复或大小写/Unicode冲突路径。"); + var sha1 = Text(file.GetProperty("hashes"), "sha1"); var sha512 = Text(file.GetProperty("hashes"), "sha512"); + var size = file.GetProperty("fileSize").GetInt64(); + if (!ContentInstallFiles.Hash(sha1, 40) || !ContentInstallFiles.Hash(sha512, 128) || size is < 0 or > ContentInstallPlanner.MaximumTotalBytes || checked(downloadBytes += size) > MaximumDownloadBytes) + throw new InvalidDataException("整合包文件哈希/大小无效或总下载超过4 GiB。"); + var urls = file.GetProperty("downloads").EnumerateArray().Select(u => u.GetString() ?? "").ToArray(); + if (urls.Length == 0 || urls.Any(u => u.Any(char.IsWhiteSpace) || !Uri.TryCreate(u, UriKind.Absolute, out var uri) || !PackPayloadPath.DownloadUri(uri))) + throw new NotSupportedException("整合包下载来源须为 HTTP(S),且不含 URL 账号密码或片段。"); + files.Add(new(path, sha1.ToLowerInvariant(), sha512.ToLowerInvariant(), size, urls, clientSide, serverSide)); + } + foreach (var pair in client) + { + if (common.TryGetValue(pair.Key, out var prior) && prior.FullName[(prefix.Length + "overrides/".Length)..] != pair.Value.FullName[(prefix.Length + "client-overrides/".Length)..]) throw new InvalidDataException("overrides层存在大小写或Unicode路径歧义。"); + common[pair.Key] = pair.Value; + } + var overrides = common.Values.ToDictionary(e => { var name = e.FullName[prefix.Length..]; return name[(name.IndexOf('/') + 1)..]; }, e => e, StringComparer.Ordinal); + if (overrides.Count > MaximumFiles) throw new InvalidDataException($"客户端overrides文件超过{MaximumFiles}项限制。"); + if (overrides.Keys.Any(p => files.Any(f => Key(f.Path) == Key(p) && f.Path != p))) throw new InvalidDataException("下载文件与overrides存在大小写或Unicode路径歧义。"); + foreach (var relative in overrides.Keys) + if (!files.Any(f => Key(f.Path) == Key(relative) && f.Client == "unsupported")) AllowedPath(relative); + var clientPaths = files.Where(f => f.Client != "unsupported").Select(f => Key(f.Path)).Concat(overrides.Keys.Select(Key)).ToHashSet(StringComparer.Ordinal); + if (clientPaths.Count > MaximumFiles) throw new InvalidDataException($"整合包客户端文件超过{MaximumFiles}项限制。"); + PackArchiveReader.CheckTargets(clientPaths); + if (files.Where(f => f.Client != "unsupported").Any(f => DownloadSidecars.Any(suffix => clientPaths.Contains(Key(f.Path + suffix))))) + throw new InvalidDataException("整合包路径与下载器暂存侧文件冲突。"); + var warnings = new List { "导入完整整合包内容并创建新实例;游戏本体将在首次启动时按原安装流程下载。" }; + if (serverCount > 0 || files.Any(f => f.Client == "unsupported")) warnings.Add("服务器专用文件与server-overrides将跳过;不会装入客户端。"); + if (files.Any(f => f.Client == "optional")) warnings.Add("客户端可选文件默认不安装,请明确勾选需要的文件。"); + return new(new(nameText, version, gameVersion, loader, loaderVersion, sha256, files, overrides.Keys.ToArray(), warnings, unsupported is null, unsupported), overrides); + } + public async Task StageAsync(string archivePath, string expectedSha256, string directory, + IReadOnlyList? optionalFiles, Func download, CancellationToken ct = default, IProgress? progress = null, int maximumConnections = DownloadDefaults.Connections) + { + if (!ContentInstallFiles.Hash(expectedSha256, 64)) throw new InvalidDataException("请先读取整合包并确认其文件身份。"); + VerifiedDownloader.RejectLink(directory); Directory.CreateDirectory(directory); + if (Directory.EnumerateFileSystemEntries(directory).Any()) throw new IOException("整合包暂存目录必须为空。"); + var archiveCopy = ContentInstallFiles.Literal(Path.GetDirectoryName(Path.GetFullPath(directory))!, ".shou-pack-input-" + Guid.NewGuid().ToString("N") + ".mrpack"); + try + { + PackDiskSpace.Require(directory, new FileInfo(archivePath).Length); + await using (var source = OpenArchive(archivePath)) + await using (var copy = new FileStream(archiveCopy, FileMode.CreateNew, FileAccess.Write, FileShare.None, 131072, true)) + await source.CopyToAsync(copy, ct).ConfigureAwait(false); + await using var input = OpenArchive(archiveCopy); + var digest = Convert.ToHexStringLower(await SHA256.HashDataAsync(input, ct).ConfigureAwait(false)); + if (!digest.Equals(expectedSha256, StringComparison.OrdinalIgnoreCase)) throw new IOException("整合包自读取后已改变,请重新读取确认。"); + input.Position = 0; ValidateDirectory(input); input.Position = 0; + using var zip = new ZipArchive(input, ZipArchiveMode.Read, true); + var read = await ReadAsync(zip, digest, ct).ConfigureAwait(false); var inspection = read.Inspection; + if (!inspection.CanImport) throw new NotSupportedException(inspection.CapabilityReason); + var selected = (optionalFiles ?? []).ToHashSet(StringComparer.Ordinal); + if (selected.Any(p => !inspection.Files.Any(f => f.Path == p && f.Client == "optional"))) throw new InvalidDataException("可选文件选择已失效或包含服务器文件。"); + var installed = new List(); var done = 0; + var selectedFiles = inspection.Files.Where(f => f.Client == "required" || f.Client == "optional" && selected.Contains(f.Path)).ToArray(); + PackDiskSpace.Require(directory, checked(selectedFiles.Sum(f => f.Size) + read.Overrides.Values.Sum(e => e.Length))); + var total = selectedFiles.Length + read.Overrides.Count; progress?.Report(new("安装整合包文件", 0, total)); + await Parallel.ForEachAsync(selectedFiles, new ParallelOptions { MaxDegreeOfParallelism = Math.Clamp(maximumConnections, 1, DownloadDefaults.MaximumConnections), CancellationToken = ct }, async (file, token) => + { + token.ThrowIfCancellationRequested(); var path = ContentInstallFiles.Literal(directory, file.Path); Directory.CreateDirectory(Path.GetDirectoryName(path)!); + await download(file, path, token).ConfigureAwait(false); + if (!await ContentInstallFiles.MatchesAsync(path, file.Sha1, file.Size, token).ConfigureAwait(false)) throw new InvalidDataException("整合包文件SHA-1校验失败。"); + await using var bytes = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); + var sha512 = Convert.ToHexStringLower(await SHA512.HashDataAsync(bytes, token).ConfigureAwait(false)); + if (sha512 != file.Sha512) throw new InvalidDataException("整合包文件SHA-512校验失败。"); + foreach (var suffix in DownloadSidecars) + { + var sidecar = path + suffix; VerifiedDownloader.RejectLink(sidecar); + if (File.Exists(sidecar)) File.Delete(sidecar); + } + progress?.Report(new("安装整合包文件", Interlocked.Increment(ref done), total, file.Path)); + lock (installed) installed.Add(new("mrpack", inspection.VersionId, "pack", file.Path, file.Sha1, sha512, file.Size, file.Downloads[0], file.Client, file.Server)); + + }).ConfigureAwait(false); + foreach (var (relative, entry) in read.Overrides) + { + var declared = inspection.Files.FirstOrDefault(f => Key(f.Path) == Key(relative)); + if (declared is not null && (declared.Client == "unsupported" || declared.Client == "optional" && !selected.Contains(declared.Path))) continue; + ct.ThrowIfCancellationRequested(); var path = ContentInstallFiles.Literal(directory, relative); Directory.CreateDirectory(Path.GetDirectoryName(path)!); + if (File.Exists(path)) File.Delete(path); + var streamed = await PackArchiveReader.StreamEntryAsync(entry, path, ct).ConfigureAwait(false); + installed.RemoveAll(f => Key(f.RelativePath) == Key(relative)); + progress?.Report(new("安装整合包文件", ++done, total, relative)); + installed.Add(new("mrpack-local", inspection.VersionId, "pack", relative, streamed.Sha1, streamed.Sha512, streamed.Size)); + } + progress?.Report(new("安装整合包文件", total, total)); + ct.ThrowIfCancellationRequested(); + await File.WriteAllBytesAsync(ContentInstallFiles.Literal(directory, ContentInstallFiles.ManifestName), + ContentInstallFiles.SerializeManifest(new ContentInstallManifest(1, "unregistered", installed)), ct).ConfigureAwait(false); + return inspection; + } + finally { VerifiedDownloader.RejectLink(archiveCopy); if (File.Exists(archiveCopy)) File.Delete(archiveCopy); } + } +} diff --git a/src/SHOU.Launcher.Core/Content/PackArchiveReader.cs b/src/SHOU.Launcher.Core/Content/PackArchiveReader.cs new file mode 100644 index 00000000..304e9f67 --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/PackArchiveReader.cs @@ -0,0 +1,110 @@ +using System.Buffers.Binary; +using System.IO.Compression; +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core.Content; + +/// Bound a ZIP before ZipArchive allocates entries; retain physical path/handle identity while inspecting it. +internal sealed class PackArchiveReader : IDisposable +{ + internal const long MaximumArchiveBytes = long.MaxValue, MaximumExpandedBytes = long.MaxValue, MaximumFileBytes = long.MaxValue; + internal const int MaximumEntries = int.MaxValue; + private readonly FileStream input; + private readonly WorldPathSnapshot guard; + private readonly WorldFileIdentity identity; + internal ZipArchive Zip { get; } + private PackArchiveReader(FileStream input, WorldPathSnapshot guard, WorldFileIdentity identity) + { this.input = input; this.guard = guard; this.identity = identity; Zip = new(input, ZipArchiveMode.Read, true); } + internal static PackArchiveReader Open(string path) + { + if (!Path.IsPathFullyQualified(path)) throw new ArgumentException("请选择本机整合包的绝对路径。"); + path = Path.GetFullPath(path); var guard = WorldPathSnapshot.Capture(Path.GetDirectoryName(path)!, path); + if (guard.Final.Directory || guard.Final.Size <= 0) throw new InvalidDataException("请选择普通整合包文件。"); + var input = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, FileOptions.Asynchronous); + try + { + var identity = WorldFileIdentity.FromHandle(input.SafeFileHandle); guard.Verify(); + if (identity != guard.Final || input.Length != identity.Size) throw new IOException("整合包文件身份已改变。"); + ValidateDirectory(input); input.Position = 0; + var reader = new PackArchiveReader(input, guard, identity); reader.ValidateEntries(); reader.Verify(); return reader; + } + catch { input.Dispose(); throw; } + } + internal void Verify() + { guard.Verify(); if (WorldFileIdentity.FromHandle(input.SafeFileHandle) != identity) throw new IOException("整合包在读取期间已改变。"); } + internal async Task Sha256Async(CancellationToken ct) + { + Verify(); input.Position = 0; using var hash = IncrementalHash.CreateHash(HashAlgorithmName.SHA256); var buffer = new byte[131072]; long read = 0; + while (true) { var count = await input.ReadAsync(buffer.AsMemory(0, (int)Math.Min(buffer.Length, identity.Size + 1 - read)), ct).ConfigureAwait(false); if (count == 0) break; read += count; if (read > identity.Size) throw new IOException("整合包长度在读取期间已改变。"); hash.AppendData(buffer, 0, count); } + if (read != identity.Size) throw new IOException("整合包长度在读取期间已改变。"); Verify(); return Convert.ToHexStringLower(hash.GetHashAndReset()); + } + internal async Task CopyToAsync(string destination, CancellationToken ct) + { + Verify(); PackDiskSpace.Require(Path.GetDirectoryName(destination)!, identity.Size); input.Position = 0; await using var output = new FileStream(destination, FileMode.CreateNew, FileAccess.Write, FileShare.None, 131072, FileOptions.Asynchronous); + var buffer = new byte[131072]; long read = 0; + while (true) { var count = await input.ReadAsync(buffer.AsMemory(0, (int)Math.Min(buffer.Length, identity.Size + 1 - read)), ct).ConfigureAwait(false); if (count == 0) break; read += count; if (read > identity.Size) throw new IOException("整合包长度在复制期间已改变。"); await output.WriteAsync(buffer.AsMemory(0, count), ct).ConfigureAwait(false); } + if (read != identity.Size) throw new IOException("整合包长度在复制期间已改变。"); await output.FlushAsync(ct).ConfigureAwait(false); Verify(); + } + internal static async Task ReadEntryAsync(ZipArchiveEntry entry, long maximum, CancellationToken ct) + { + if (entry.Length < 0 || entry.Length > maximum) throw new InvalidDataException("整合包条目超过大小上限。"); + await using var input = entry.Open(); using var output = new MemoryStream(); var buffer = new byte[32768]; uint crc = 0; + while (true) + { + var count = await input.ReadAsync(buffer.AsMemory(0, (int)Math.Min(buffer.Length, entry.Length + 1 - output.Length)), ct).ConfigureAwait(false); if (count == 0) break; + if (output.Length + count > entry.Length || output.Length + count > maximum) throw new InvalidDataException("整合包条目解压超过声明长度。"); + crc = BoundedNbt.Crc32(buffer.AsSpan(0, count), crc); output.Write(buffer, 0, count); + } + if (output.Length != entry.Length || crc != entry.Crc32) throw new InvalidDataException("整合包条目长度或 CRC 校验失败。"); return output.ToArray(); + } + internal static JsonDocument Json(byte[] bytes) + { + try { _ = new UTF8Encoding(false, true).GetCharCount(bytes); var result = JsonDocument.Parse(bytes, new JsonDocumentOptions { MaxDepth = 32 }); Unique(result.RootElement); return result; } + catch (DecoderFallbackException) { throw new InvalidDataException("整合包元数据不是有效 UTF-8。"); } + } + private static void Unique(JsonElement element) + { + if (element.ValueKind == JsonValueKind.Object) { var seen = new HashSet(StringComparer.Ordinal); foreach (var item in element.EnumerateObject()) { if (!seen.Add(item.Name)) throw new InvalidDataException("整合包元数据含重复 JSON 键。"); Unique(item.Value); } } + else if (element.ValueKind == JsonValueKind.Array) foreach (var item in element.EnumerateArray()) Unique(item); + } + internal static void CheckTargets(IEnumerable names) + { + var keys = names.Select(ContentInstallFiles.PathKey).ToHashSet(StringComparer.Ordinal); + foreach (var path in keys) { var slash = path.IndexOf('/'); while (slash >= 0) { if (keys.Contains(path[..slash])) throw new InvalidDataException("整合包文件与目录路径冲突。"); slash = path.IndexOf('/', slash + 1); } } + } + private void ValidateEntries() + { + long total = 0; var files = new List(); var paths = new HashSet(StringComparer.Ordinal); + foreach (var entry in Zip.Entries) + { + var directory = entry.FullName.EndsWith('/'); var name = directory ? entry.FullName[..^1] : entry.FullName; ModrinthPackArchive.SafeRelative(name); + if (!paths.Add(ContentInstallFiles.PathKey(name))) throw new InvalidDataException("ZIP 含大小写、Unicode 或重复路径冲突。"); + var type = (entry.ExternalAttributes >> 16) & 0xf000; + if (type is not (0 or 0x8000 or 0x4000) || type == 0x4000 && !directory || directory && entry.Length != 0) throw new InvalidDataException("ZIP 链接、特殊文件或目录条目无效。"); + total = checked(total + entry.Length); + if (!directory) files.Add(name); + } + CheckTargets(files); + } + internal static void ValidateDirectory(Stream input) + { + // ZipArchive validates standard ZIP and ZIP64 directories. No launcher-specific size/count gate. + input.Position = 0; using var zip = new ZipArchive(input, ZipArchiveMode.Read, true); _ = zip.Entries.Count; + } + internal static async Task<(long Size, string Sha1, string Sha512)> StreamEntryAsync(ZipArchiveEntry entry, string? destination, CancellationToken ct) + { + if (entry.Length < 0) throw new InvalidDataException("整合包条目大小无效。"); + if (destination is not null) { PackDiskSpace.Require(Path.GetDirectoryName(destination)!, entry.Length); Directory.CreateDirectory(Path.GetDirectoryName(destination)!); } + await using var input = entry.Open(); + await using var output = destination is null ? Stream.Null : new FileStream(destination, FileMode.CreateNew, FileAccess.Write, FileShare.None, 131072, true); + using var sha1 = IncrementalHash.CreateHash(HashAlgorithmName.SHA1); using var sha512 = IncrementalHash.CreateHash(HashAlgorithmName.SHA512); + var buffer = new byte[131072]; long length = 0; uint crc = 0; + while (true) { var count = await input.ReadAsync(buffer, ct).ConfigureAwait(false); if (count == 0) break; length = checked(length + count); if (length > entry.Length) throw new InvalidDataException("条目展开长度与清单不符。"); crc = BoundedNbt.Crc32(buffer.AsSpan(0, count), crc); sha1.AppendData(buffer, 0, count); sha512.AppendData(buffer, 0, count); await output.WriteAsync(buffer.AsMemory(0, count), ct).ConfigureAwait(false); } + if (length != entry.Length || crc != entry.Crc32) throw new InvalidDataException("条目长度或 CRC 校验失败。"); + return (length, Convert.ToHexStringLower(sha1.GetHashAndReset()), Convert.ToHexStringLower(sha512.GetHashAndReset())); + } + public void Dispose() { Zip.Dispose(); input.Dispose(); } +} diff --git a/src/SHOU.Launcher.Core/Content/PackDiskSpace.cs b/src/SHOU.Launcher.Core/Content/PackDiskSpace.cs new file mode 100644 index 00000000..b1546cb1 --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/PackDiskSpace.cs @@ -0,0 +1,19 @@ +namespace SHOU.Launcher.Core.Content; + +internal static class PackDiskSpace +{ + internal static void Require(string directory, long bytes) + { + if (bytes < 0) throw new InvalidDataException("整合包文件大小无效。"); + var path = Path.GetFullPath(directory); + while (!Directory.Exists(path)) path = Path.GetDirectoryName(path) ?? Path.GetPathRoot(path)!; + long? available = null; + try + { + var drive = DriveInfo.GetDrives().Where(d => d.IsReady && IO.SafePath.IsWithin(d.RootDirectory.FullName, path)).OrderByDescending(d => d.Name.Length).FirstOrDefault(); + available = drive?.AvailableFreeSpace; + } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { /* Some network volumes cannot report space; writes still propagate actual disk errors. */ } + if (available is >= 0 && bytes > available) throw new IOException($"磁盘可用空间不足:需要 {bytes:N0} 字节,可用 {available:N0} 字节。请选择有足够空间的目录。"); + } +} diff --git a/src/SHOU.Launcher.Core/Content/PackLoaderIdentity.cs b/src/SHOU.Launcher.Core/Content/PackLoaderIdentity.cs new file mode 100644 index 00000000..de26d7a8 --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/PackLoaderIdentity.cs @@ -0,0 +1,19 @@ +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Content; + +internal static class PackLoaderIdentity +{ + internal static bool Supported(string loader) => loader is "vanilla" or "fabric" or "quilt" or "forge" or "neoforge"; + internal static void Validate(string loader, string? version) + { + if (!Supported(loader)) throw new NotSupportedException("此加载器的实例安装链尚未接入:" + loader); + if (loader != "vanilla") SafePath.Identifier(version ?? throw new InvalidDataException("加载器版本身份缺失。")); + } + internal static void ValidateShou(string loader, string? version) + { + if (loader is "cleanroom" or "legacyfabric" || Loaders.PortableVendorInstaller.Supports(loader)) SafePath.Identifier(version ?? throw new InvalidDataException("加载器版本缺失。")); + else Validate(loader, version); + } + internal static string Dependency(string loader) => loader switch { "fabric" => "fabric-loader", "quilt" => "quilt-loader", "forge" => "forge", "neoforge" => "neoforge", _ => throw new NotSupportedException() }; +} diff --git a/src/SHOU.Launcher.Core/Content/PackPayloadPath.cs b/src/SHOU.Launcher.Core/Content/PackPayloadPath.cs new file mode 100644 index 00000000..b128f971 --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/PackPayloadPath.cs @@ -0,0 +1,16 @@ +namespace SHOU.Launcher.Core.Content; + +/// Validate containment without guessing which game data a modpack may need. +internal static class PackPayloadPath +{ + internal static void Validate(string path) + { + ModrinthPackArchive.SafeRelative(path); + // This file is generated by the import transaction, not supplied by a pack. + if (ContentInstallFiles.PathKey(path.Split('/')[0]) == ContentInstallFiles.PathKey(ContentInstallFiles.ManifestName)) + throw new InvalidDataException("整合包内容与启动器生成的安装清单冲突:" + path); + } + + internal static bool DownloadUri(Uri uri) => uri.IsAbsoluteUri && uri.Scheme is "http" or "https" && + uri.Host.Length > 0 && uri.UserInfo.Length == 0 && uri.Fragment.Length == 0; +} diff --git a/src/SHOU.Launcher.Core/Content/PackProgressReporter.cs b/src/SHOU.Launcher.Core/Content/PackProgressReporter.cs new file mode 100644 index 00000000..b4edd926 --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/PackProgressReporter.cs @@ -0,0 +1,23 @@ +using System.Diagnostics; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Content; + +internal sealed class PackProgressReporter(IProgress target) : IProgress +{ + private readonly object sync = new(); + private string? stage; + private int completed; + private long reported; + public void Report(PackInstallProgress value) + { + lock (sync) + { + if (stage == value.Stage && value.CompletedFiles < completed) return; + var now = Stopwatch.GetTimestamp(); + if (stage == value.Stage && value.CompletedFiles < value.TotalFiles && Stopwatch.GetElapsedTime(reported, now) < TimeSpan.FromMilliseconds(100)) return; + stage = value.Stage; completed = value.CompletedFiles; reported = now; + target.Report(value); + } + } +} diff --git a/src/SHOU.Launcher.Core/Content/ShouPackArchive.cs b/src/SHOU.Launcher.Core/Content/ShouPackArchive.cs new file mode 100644 index 00000000..5ae26346 --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/ShouPackArchive.cs @@ -0,0 +1,168 @@ +using System.IO.Compression; +using System.Security.Cryptography; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core.Content; + +/// A portable client payload. Imported files are data and never executed by the archive reader. +internal static class ShouPackArchive +{ + private sealed record Entry(string Path, long Size, string Sha1, string Sha512); + internal static bool Allowed(string path) + { + PackPayloadPath.Validate(path); + // Export omits known launcher credential stores, not arbitrary mod names containing "account" or "token". + return path.ToLowerInvariant() is not ("launcher_accounts.json" or "launcher_accounts_microsoft_store.json" + or "shou.desktop.v1.json" or "credentials.json" or "accounts.json" or "authentication.json" or ".env"); + } + + internal static async Task ExportAsync(GameInstance instance, string outputDirectory, bool includeWorlds, CancellationToken ct, CurseForgeExportPlan? cf = null) + { + PackLoaderIdentity.ValidateShou(instance.Loader, instance.LoaderVersion); + var gameVersion = InstanceIdentity.GameVersion(instance); + if (instance.Loader == "fabric") IO.SafePath.Identifier(instance.LoaderVersion ?? throw new InvalidDataException("Fabric 版本身份缺失。")); + if (string.IsNullOrWhiteSpace(instance.Name) || instance.Name.Length > 160 || instance.Name.Any(char.IsControl)) throw new InvalidDataException("实例名称不适合导出,请先修改名称。"); + VerifiedDownloader.RejectLink(instance.GameDirectory); VerifiedDownloader.RejectLink(outputDirectory); + if (IO.SafePath.IsWithin(IO.SafePath.Canonical(instance.GameDirectory), IO.SafePath.Canonical(outputDirectory))) throw new IOException("导出目录不能位于实例内部。"); + var files = new List(); var sizes = new Dictionary(StringComparer.Ordinal); long total = 0; + void Visit(string relative, int depth) + { + ct.ThrowIfCancellationRequested(); if (depth > 24) throw new IOException("实例目录嵌套过深。"); + var folder = ContentInstallFiles.Literal(instance.GameDirectory, relative); if (!Directory.Exists(folder)) return; + foreach (var entry in new DirectoryInfo(folder).EnumerateFileSystemInfos()) + { + ct.ThrowIfCancellationRequested(); + if (entry.LinkTarget is not null || (entry.Attributes & FileAttributes.ReparsePoint) != 0) throw new IOException("导出不跟随实例链接。"); + var path = relative + "/" + entry.Name; + if (entry is DirectoryInfo) Visit(path, depth + 1); + else if (Allowed(path)) + { + if (((FileInfo)entry).Length > PackArchiveReader.MaximumFileBytes || (total = checked(total + ((FileInfo)entry).Length)) > PackArchiveReader.MaximumExpandedBytes - 4 * 1024 * 1024) throw new IOException("导出内容超过单文件 128 MiB 或合计 508 MiB 限制。"); + files.Add(path); sizes.Add(path, ((FileInfo)entry).Length); if (files.Count > ModrinthPackArchive.MaximumFiles) throw new IOException("导出文件超过整合包文件预算。"); + } + } + } + if (cf is not null) + { + foreach (var path in cf.Paths) + { + ct.ThrowIfCancellationRequested(); var full = ContentInstallFiles.Literal(instance.GameDirectory, path); + var size = new FileInfo(full).Length; + if (size > PackArchiveReader.MaximumFileBytes || (total = checked(total + size)) > PackArchiveReader.MaximumExpandedBytes - 4 * 1024 * 1024) throw new IOException("导出内容超过大小限制。"); + files.Add(path); sizes.Add(path, size); + } + } + else + { + var imported = await ContentInstallFiles.ReadManifestAsync(instance, ct).ConfigureAwait(false); + var scopes = new[] { "mods", "resourcepacks", "shaderpacks", "config", "defaultconfigs", "schematics" } + .Concat(imported.Files.Select(f => f.RelativePath.Split('/')[0])).Concat(includeWorlds ? ["saves"] : Array.Empty()) + .Where(p => includeWorlds || !p.Equals("saves", StringComparison.OrdinalIgnoreCase)).Distinct(StringComparer.Ordinal); + foreach (var scope in scopes) + { + var full = ContentInstallFiles.Literal(instance.GameDirectory, scope); + if (Directory.Exists(full)) Visit(scope, 0); + else if (File.Exists(full) && Allowed(scope)) + { + var size = new FileInfo(full).Length; + if (size > PackArchiveReader.MaximumFileBytes || (total = checked(total + size)) > PackArchiveReader.MaximumExpandedBytes - 4 * 1024 * 1024) throw new IOException("导出文件超过大小限制。"); + files.Add(scope); sizes.Add(scope, size); + } + } + foreach (var name in new[] { "options.txt", "servers.dat", "icon.png", "pack.png" }) + { + if (sizes.ContainsKey(name)) continue; + var path = ContentInstallFiles.Literal(instance.GameDirectory, name); if (!File.Exists(path)) continue; + var size = new FileInfo(path).Length; + if (size > PackArchiveReader.MaximumFileBytes || (total = checked(total + size)) > PackArchiveReader.MaximumExpandedBytes - 4 * 1024 * 1024) throw new IOException("导出文件超过大小限制。"); + files.Add(name); sizes.Add(name, size); + } + } + PackArchiveReader.CheckTargets(files); Directory.CreateDirectory(outputDirectory); + if (cf is null && files.Any(p => ContentInstallFiles.PathKey(p) == "SHOU-INSTANCE.JSON")) + throw new InvalidDataException("所选内容已有 shou-instance.json,请使用 MRpack 或 CurseForge 格式保留该文件。"); + var destination = ContentInstallFiles.Literal(outputDirectory, (cf is null ? "SHOU-" : "CF-") + IO.SafePath.Identifier(instance.Id) + "-" + DateTime.UtcNow.ToString("yyyyMMdd-HHmmss-fff") + ".zip"); + var temp = ContentInstallFiles.Literal(outputDirectory, ".export-" + Guid.NewGuid().ToString("N")); + try + { + await using (var stream = new FileStream(temp, FileMode.CreateNew, FileAccess.Write, FileShare.None, 131072, true)) + { + using var zip = new ZipArchive(stream, ZipArchiveMode.Create, true); var manifest = new List(); + foreach (var path in files.Order(StringComparer.Ordinal)) + { + ct.ThrowIfCancellationRequested(); var full = ContentInstallFiles.Literal(instance.GameDirectory, path); + var guard = WorldPathSnapshot.Capture(instance.GameDirectory, full); + await using var input = new FileStream(full, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); + if (WorldFileIdentity.FromHandle(input.SafeFileHandle) != guard.Final || input.Length != sizes[path] || input.Length > PackArchiveReader.MaximumFileBytes) throw new IOException("导出文件身份发生变化。"); + using var sha1 = IncrementalHash.CreateHash(HashAlgorithmName.SHA1); using var sha512 = IncrementalHash.CreateHash(HashAlgorithmName.SHA512); + await using var output = zip.CreateEntry((cf is null ? "" : "overrides/") + path, CompressionLevel.Fastest).Open(); var buffer = new byte[131072]; long length = 0; + while (true) + { + var count = await input.ReadAsync(buffer, ct).ConfigureAwait(false); if (count == 0) break; + length += count; if (length > guard.Final.Size) throw new IOException("导出文件长度发生变化。"); + sha1.AppendData(buffer, 0, count); sha512.AppendData(buffer, 0, count); await output.WriteAsync(buffer.AsMemory(0, count), ct).ConfigureAwait(false); + } + guard.Verify(); if (length != guard.Final.Size || WorldFileIdentity.FromHandle(input.SafeFileHandle) != guard.Final) throw new IOException("导出文件在读取时发生变化。"); + manifest.Add(new(path, length, Convert.ToHexStringLower(sha1.GetHashAndReset()), Convert.ToHexStringLower(sha512.GetHashAndReset()))); + } + if (cf is null) + { + await using var metadata = zip.CreateEntry("shou-instance.json").Open(); + await JsonSerializer.SerializeAsync(metadata, new { schemaVersion = 2, instance.Name, GameVersion = gameVersion, instance.Loader, instance.LoaderVersion, Files = manifest }, cancellationToken: ct).ConfigureAwait(false); + } + else + { + await using var metadata = zip.CreateEntry("manifest.json").Open(); + await JsonSerializer.SerializeAsync(metadata, new { manifestType = "minecraftModpack", manifestVersion = 1, name = cf.Name, version = cf.Version, author = "", overrides = "overrides", + minecraft = new { version = gameVersion, modLoaders = instance.Loader == "vanilla" ? Array.Empty() : new object[] { new { id = instance.Loader + "-" + instance.LoaderVersion, primary = true } } }, + files = cf.References.Select(f => new { projectID = f.ProjectId, fileID = f.FileId, required = f.Required }) }, cancellationToken: ct).ConfigureAwait(false); + } + } + using (var validate = PackArchiveReader.Open(temp)) validate.Verify(); + if (cf is not null) foreach (var guard in cf.Guards) guard.Verify(); + ct.ThrowIfCancellationRequested(); File.Move(temp, destination, false); return destination; + } + finally { VerifiedDownloader.RejectLink(temp); if (File.Exists(temp)) File.Delete(temp); } + } + + internal static async Task ReadAsync(PackArchiveReader archive, JsonElement root, string sha, string? stage, CancellationToken ct) + { + static string Text(JsonElement e, string key) { var s = e.GetProperty(key).GetString() ?? ""; if (s.Length is < 1 or > 160 || s.Any(char.IsControl)) throw new InvalidDataException("SHOU 元数据文字无效。"); return s; } + var game = IO.SafePath.Identifier(Text(root, "GameVersion")); var loader = Text(root, "Loader"); + var loaderVersion = loader != "vanilla" ? IO.SafePath.Identifier(Text(root, "LoaderVersion")) : null; + PackLoaderIdentity.ValidateShou(loader, loaderVersion); + var files = root.GetProperty("Files").Deserialize() ?? throw new InvalidDataException("SHOU 文件清单缺失。"); + if (files.Length > ModrinthPackArchive.MaximumFiles) throw new InvalidDataException("SHOU 文件清单超过整合包文件预算。"); + PackArchiveReader.CheckTargets(files.Select(f => f.Path)); + var expected = files.Select(f => f.Path).Append("shou-instance.json").ToHashSet(StringComparer.Ordinal); + var entries = archive.Zip.Entries.Where(e => !e.FullName.EndsWith('/')).ToArray(); + if (expected.Count != files.Length + 1 || entries.Length != expected.Count || entries.Any(e => !expected.Contains(e.FullName))) throw new InvalidDataException("SHOU 内容与精确清单不一致。"); + var installed = new List(); + foreach (var file in files) + { + ct.ThrowIfCancellationRequested(); + PackPayloadPath.Validate(file.Path); + if (file.Size is < 0 or > PackArchiveReader.MaximumFileBytes || !ContentInstallFiles.Hash(file.Sha1, 40) || !ContentInstallFiles.Hash(file.Sha512, 128)) throw new InvalidDataException("SHOU 文件路径或身份无效。"); + var entry = archive.Zip.GetEntry(file.Path)!; if (entry.Length != file.Size) throw new InvalidDataException("SHOU 文件大小不匹配。"); + var streamed = await PackArchiveReader.StreamEntryAsync(entry, stage is null ? null : ContentInstallFiles.Literal(stage, file.Path), ct).ConfigureAwait(false); + if (!streamed.Sha1.Equals(file.Sha1, StringComparison.OrdinalIgnoreCase) || !streamed.Sha512.Equals(file.Sha512, StringComparison.OrdinalIgnoreCase)) throw new InvalidDataException("SHOU 文件哈希不匹配。"); + if (stage is not null) installed.Add(new("shou-local", sha[..16], "pack", file.Path, file.Sha1, file.Sha512, file.Size)); + } + archive.Verify(); + if (stage is not null) await File.WriteAllBytesAsync(ContentInstallFiles.Literal(stage, ContentInstallFiles.ManifestName), ContentInstallFiles.SerializeManifest(new ContentInstallManifest(1, "unregistered", installed)), ct).ConfigureAwait(false); + return new(new(LocalPackFormat.ShouExport, Text(root, "Name"), game, loader, loaderVersion, sha, ["导入到独立新实例;不迁移账户、Java 或原目录。"], true, LocalFiles: files.Select(f => f.Path).ToArray()), [], new Dictionary(), false); + } + + internal static async Task StageAsync(string path, string expectedSha, string directory, CancellationToken ct) + { + VerifiedDownloader.RejectLink(directory); Directory.CreateDirectory(directory); if (Directory.EnumerateFileSystemEntries(directory).Any()) throw new IOException("SHOU 暂存目录须为空。"); + using var archive = PackArchiveReader.Open(path); var actual = await archive.Sha256Async(ct).ConfigureAwait(false); + if (!actual.Equals(expectedSha, StringComparison.OrdinalIgnoreCase)) throw new IOException("SHOU 包自预检后已改变。"); + using var json = PackArchiveReader.Json(await PackArchiveReader.ReadEntryAsync(archive.Zip.GetEntry("shou-instance.json") ?? throw new InvalidDataException("SHOU 标识缺失。"), int.MaxValue, ct).ConfigureAwait(false)); + if (json.RootElement.GetProperty("schemaVersion").GetInt32() != 2) throw new InvalidDataException("SHOU 格式版本不支持。"); + return (await ReadAsync(archive, json.RootElement, actual, directory, ct).ConfigureAwait(false)).Inspection; + } +} diff --git a/src/SHOU.Launcher.Core/Content/WorldBuiltinPacks.cs b/src/SHOU.Launcher.Core/Content/WorldBuiltinPacks.cs new file mode 100644 index 00000000..ec06becf --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/WorldBuiltinPacks.cs @@ -0,0 +1,58 @@ +using System.IO.Compression; +using System.Security.Cryptography; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Content; + +internal static class WorldBuiltinPacks +{ + // This mapping is verified against Fabric's 1.21.1 ModResourcePackCreator.FABRIC. + // Unknown versions and other mod-provided IDs still require their own identity mapping. + internal static async Task> ResolveAsync(GameInstance instance, CancellationToken ct) + { + var result = new HashSet(StringComparer.Ordinal); + if (instance.Loader != "fabric" || (instance.GameVersionId ?? instance.VersionId) != "1.21.1") return result; + var manifest = await ContentInstallFiles.ReadManifestAsync(instance, ct).ConfigureAwait(false); + var hasResourceLoader = false; var hasConventionTags = false; + foreach (var file in manifest.Files.Where(f => f.RelativePath.StartsWith("mods/", StringComparison.Ordinal) && f.RelativePath.EndsWith(".jar", StringComparison.OrdinalIgnoreCase))) + { + var name = Path.GetFileName(file.RelativePath); + if (!name.StartsWith("fabric-api-", StringComparison.Ordinal) && !name.StartsWith("fabric-resource-loader-v0-", StringComparison.Ordinal) && !name.StartsWith("fabric-convention-tags-v2-", StringComparison.Ordinal)) continue; + var path = ContentInstallFiles.Literal(instance.GameDirectory, file.RelativePath); + if (!await ContentInstallFiles.MatchesAsync(path, file.Sha1, file.Size, ct).ConfigureAwait(false)) continue; + await using (var input = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true)) + if (!Convert.ToHexStringLower(await SHA512.HashDataAsync(input, ct).ConfigureAwait(false)).Equals(file.Sha512, StringComparison.OrdinalIgnoreCase)) continue; + using var archive = PackArchiveReader.Open(path); + var entry = archive.Zip.GetEntry("fabric.mod.json"); if (entry is null) continue; + using var json = PackArchiveReader.Json(await PackArchiveReader.ReadEntryAsync(entry, 128 * 1024, ct).ConfigureAwait(false)); + var module = json.RootElement; var resourceLoader = Id(module) == "fabric-resource-loader-v0" && HasProvider(archive.Zip); + var conventionTags = Id(module) == "fabric-convention-tags-v2" && HasConventionTags(archive.Zip); + if (Id(module) == "fabric-api" && module.TryGetProperty("jars", out var jars) && jars.ValueKind == JsonValueKind.Array && jars.GetArrayLength() <= 256) + { + foreach (var jar in jars.EnumerateArray()) + { + var nested = jar.GetProperty("file").GetString() ?? ""; ModrinthPackArchive.SafeRelative(nested); + if (!(nested.StartsWith("META-INF/jars/fabric-resource-loader-v0-", StringComparison.Ordinal) || nested.StartsWith("META-INF/jars/fabric-convention-tags-v2-", StringComparison.Ordinal)) || !nested.EndsWith(".jar", StringComparison.Ordinal)) continue; + var nestedEntry = archive.Zip.GetEntry(nested); if (nestedEntry is null) continue; + using var bytes = new MemoryStream(await PackArchiveReader.ReadEntryAsync(nestedEntry, 4 * 1024 * 1024, ct).ConfigureAwait(false)); + PackArchiveReader.ValidateDirectory(bytes); bytes.Position = 0; + using var zip = new ZipArchive(bytes, ZipArchiveMode.Read); var metadata = zip.GetEntry("fabric.mod.json"); + if (metadata is null || zip.Entries.Count > 2048 || zip.Entries.Count(e => e.FullName == "fabric.mod.json") != 1) continue; + using var description = PackArchiveReader.Json(await PackArchiveReader.ReadEntryAsync(metadata, 128 * 1024, ct).ConfigureAwait(false)); + resourceLoader |= Id(description.RootElement) == "fabric-resource-loader-v0" && HasProvider(zip); + conventionTags |= Id(description.RootElement) == "fabric-convention-tags-v2" && HasConventionTags(zip); + } + } + archive.Verify(); + if ((resourceLoader || conventionTags) && await ContentInstallFiles.MatchesAsync(path, file.Sha1, file.Size, ct).ConfigureAwait(false)) + { hasResourceLoader |= resourceLoader; hasConventionTags |= conventionTags; } + if (hasResourceLoader && hasConventionTags) break; + } + if (hasResourceLoader) { result.Add("fabric"); if (hasConventionTags) result.Add("fabric-convention-tags-v2"); } + return result; + } + private static string? Id(JsonElement module) => module.TryGetProperty("id", out var id) && id.ValueKind == JsonValueKind.String ? id.GetString() : null; + private static bool HasConventionTags(ZipArchive zip) => zip.Entries.Any(e => e.FullName.StartsWith("data/c/tags/", StringComparison.Ordinal) && e.FullName.EndsWith(".json", StringComparison.Ordinal)); + private static bool HasProvider(ZipArchive zip) => zip.GetEntry("net/fabricmc/fabric/impl/resource/loader/ModResourcePackCreator.class") is not null; +} diff --git a/src/SHOU.Launcher.Core/Content/WorldContentArchive.cs b/src/SHOU.Launcher.Core/Content/WorldContentArchive.cs new file mode 100644 index 00000000..a148460e --- /dev/null +++ b/src/SHOU.Launcher.Core/Content/WorldContentArchive.cs @@ -0,0 +1,222 @@ +using System.IO.Compression; +using System.Security.Cryptography; +using System.Text.Json; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core.Content; + +internal readonly record struct DataPackFormat(int Major, int Minor) : IComparable +{ + public int CompareTo(DataPackFormat other) => Major != other.Major ? Major.CompareTo(other.Major) : Minor.CompareTo(other.Minor); +} +internal sealed record PackResource(string Hash, bool MergeableTag, int Priority = 0); +internal sealed record InspectedDatapack(string Revision, IReadOnlyDictionary Resources, long ExpandedBytes); +internal sealed record InspectedWorld(string Prefix, int DataVersion, string Version, IReadOnlyList Files, string? Name = null); + +internal static class WorldContentArchive +{ + internal static async Task DatapackAsync(string path, DataPackFormat format, CancellationToken ct) + { + using var zip = PackArchiveReader.Open(path); + if (new FileInfo(path).Length > 64 * 1024 * 1024) throw new InvalidDataException("数据包超过 64 MiB 限制。"); + var metadata = zip.Zip.GetEntry("pack.mcmeta") ?? throw new InvalidDataException("数据包缺少根目录 pack.mcmeta。"); + var bytes = await PackArchiveReader.ReadEntryAsync(metadata, 65536, ct); + var selected = Metadata(bytes, format); + var resources = new Dictionary(StringComparer.Ordinal); + long expanded = 0; + foreach (var entry in zip.Zip.Entries.Where(e => !e.FullName.EndsWith('/'))) + { + ct.ThrowIfCancellationRequested(); expanded = checked(expanded + entry.Length); + if (expanded > 128 * 1024 * 1024) throw new InvalidDataException("数据包展开超过 128 MiB 限制。"); + var content = await PackArchiveReader.ReadEntryAsync(entry, 64 * 1024 * 1024, ct); + AddResource(resources, entry.FullName, content, selected); + } + zip.Verify(); return new(await zip.Sha256Async(ct), resources, expanded); + } + internal static async Task FolderDatapackAsync(string path, DataPackFormat format, CancellationToken ct) + { + var guards = new List(); var files = new List(); + void Visit(string folder, int depth) + { + ct.ThrowIfCancellationRequested(); if (depth > 24 || files.Count > 5000) throw new IOException("已有数据包目录超过深度/文件预算。"); + guards.Add(WorldPathSnapshot.Capture(path, folder)); + foreach (var child in Directory.EnumerateFileSystemEntries(folder)) + { + var guard = WorldPathSnapshot.Capture(path, child); guards.Add(guard); + if (guard.Final.Directory) Visit(child, depth + 1); else files.Add(child); + } + } + Visit(path, 0); if (files.Count > 5000) throw new IOException("已有数据包超过文件预算。"); + var metadata = await ReadFileAsync(path, ContentInstallFiles.Literal(path, "pack.mcmeta"), 65536, ct); + var overlays = Metadata(metadata, format); var resources = new Dictionary(StringComparer.Ordinal); + using var hash = IncrementalHash.CreateHash(HashAlgorithmName.SHA256); long total = 0; + foreach (var file in files.Order(StringComparer.Ordinal)) + { + var relative = Path.GetRelativePath(path, file).Replace('\\', '/'); + var bytes = await ReadFileAsync(path, file, 64 * 1024 * 1024, ct); total += bytes.Length; + if (total > 128 * 1024 * 1024) throw new IOException("已有数据包展开超过 128 MiB。"); + hash.AppendData(System.Text.Encoding.UTF8.GetBytes(relative + "\0")); hash.AppendData(SHA256.HashData(bytes)); AddResource(resources, relative, bytes, overlays); + } + foreach (var guard in guards) guard.Verify(); return new(Convert.ToHexStringLower(hash.GetHashAndReset()), resources, total); + } + private static IReadOnlyList Metadata(byte[] bytes, DataPackFormat target) + { + using var doc = PackArchiveReader.Json(bytes); var root = doc.RootElement; + if (!root.TryGetProperty("pack", out var pack) || pack.ValueKind != JsonValueKind.Object) throw new InvalidDataException("pack.mcmeta 缺少 pack 对象。"); + if (root.TryGetProperty("features", out _)) throw new NotSupportedException("数据包声明实验特性,需要先明确处理世界特性,未安装。"); + if (!Range(pack, target, false)) throw new InvalidDataException($"数据包格式不兼容目标存档({target.Major}.{target.Minor})。"); + var prefixes = new List { "" }; + if (root.TryGetProperty("overlays", out var overlays)) + { + if (!overlays.TryGetProperty("entries", out var entries) || entries.ValueKind != JsonValueKind.Array || entries.GetArrayLength() > 64) throw new InvalidDataException("数据包 overlays 声明无效。"); + var seen = new HashSet(); + foreach (var entry in entries.EnumerateArray()) + { + var directory = entry.GetProperty("directory").GetString() ?? ""; + ModrinthPackArchive.SafeRelative(directory); + if (directory.Contains('/') || !seen.Add(directory)) throw new InvalidDataException("数据包 overlay 目录无效或重复。"); + if (Range(entry, target, true)) prefixes.Add(directory + "/"); + } + } + return prefixes; + } + private static DataPackFormat Number(JsonElement value, bool maximum) + { + if (value.ValueKind == JsonValueKind.Number && value.TryGetInt32(out var scalar) && scalar >= 0) return new(scalar, maximum ? int.MaxValue : 0); + if (value.ValueKind == JsonValueKind.Array && value.GetArrayLength() is 1 or 2) + { + var values = value.EnumerateArray().Select(v => v.GetInt32()).ToArray(); + if (values.Any(v => v < 0)) throw new InvalidDataException("数据包格式号无效。"); + return new(values[0], values.Length == 2 ? values[1] : maximum ? int.MaxValue : 0); + } + throw new InvalidDataException("数据包格式范围无效。"); + } + private static bool Range(JsonElement metadata, DataPackFormat target, bool overlay) + { + DataPackFormat low, high; + // Mojang 1.21.9: min/max formats include minor versions; scalar max accepts every minor. + // https://www.minecraft.net/en-us/article/minecraft-java-edition-1-21-9 + if (metadata.TryGetProperty("min_format", out var min) && metadata.TryGetProperty("max_format", out var max)) + { + low = Number(min, false); high = Number(max, true); + if (!overlay && low.Major >= 82 && metadata.TryGetProperty("supported_formats", out _)) throw new InvalidDataException("此格式不允许 supported_formats。"); + if (!overlay && low.Major < 82 && (!metadata.TryGetProperty("pack_format", out _) || !metadata.TryGetProperty("supported_formats", out _))) throw new InvalidDataException("跨旧版本格式需要 pack_format 与 supported_formats。"); + } + else + { + if (metadata.TryGetProperty("min_format", out _) || metadata.TryGetProperty("max_format", out _)) throw new InvalidDataException("格式上下界不完整。"); + if (target.Major >= 82) throw new InvalidDataException("目标版本要求 min_format / max_format。"); + if (metadata.TryGetProperty(overlay ? "formats" : "supported_formats", out var range)) + { + if (range.ValueKind == JsonValueKind.Object) { low = Number(range.GetProperty("min_inclusive"), false); high = Number(range.GetProperty("max_inclusive"), true); } + else if (range.ValueKind == JsonValueKind.Array && range.GetArrayLength() == 2) { low = Number(range[0], false); high = Number(range[1], true); } + else { low = Number(range, false); high = Number(range, true); } + } + else if (!overlay && metadata.TryGetProperty("pack_format", out var legacy)) { low = Number(legacy, false); high = Number(legacy, true); } + else throw new InvalidDataException("数据包缺少兼容格式声明。"); + } + if (low.CompareTo(high) > 0) throw new InvalidDataException("数据包格式上下界颠倒。"); + return low.CompareTo(target) <= 0 && high.CompareTo(target) >= 0; + } + private static void AddResource(Dictionary resources, string path, byte[] bytes, IReadOnlyList prefixes) + { + for (var priority = 0; priority < prefixes.Count; priority++) + { + var prefix = prefixes[priority]; + if (!path.StartsWith(prefix + "data/", StringComparison.Ordinal)) continue; + var key = path[prefix.Length..]; var merge = false; + if (key.Split('/').Length < 4) continue; + if (key.Any(c => !(c is >= 'a' and <= 'z' or >= '0' and <= '9' or '/' or '_' or '-' or '.'))) throw new InvalidDataException("数据包资源路径含无效命名字符:" + key); + if (key.Split('/')[2] == "tags" && path.EndsWith(".json", StringComparison.Ordinal)) + { + using var tag = PackArchiveReader.Json(bytes); merge = !tag.RootElement.TryGetProperty("replace", out var replace) || replace.ValueKind == JsonValueKind.False; + merge &= tag.RootElement.TryGetProperty("values", out var values) && values.ValueKind == JsonValueKind.Array; + } + if (!resources.TryGetValue(key, out var previous) || previous.Priority <= priority) resources[key] = new(Convert.ToHexStringLower(SHA256.HashData(bytes)), merge, priority); + } + } + internal static void CheckResources(Dictionary known, InspectedDatapack candidate, string owner, List warnings) + { + foreach (var (path, resource) in candidate.Resources) + { + if (known.TryGetValue(path, out var prior) && prior.Owner != owner && prior.Resource.Hash != resource.Hash) + { + if (prior.Resource.MergeableTag && resource.MergeableTag) warnings.Add("标签按游戏规则合并:" + path); + else throw new IOException($"数据包资源冲突:{path}({prior.Owner} / {owner}),未覆盖。"); + } + known[path] = (resource, owner); + } + } + internal static async Task ReadFileAsync(string boundary, string path, int maximum, CancellationToken ct) + { + var guard = WorldPathSnapshot.Capture(boundary, path); if (guard.Final.Directory || guard.Final.Size > maximum) throw new IOException("文件超过读取预算。"); + await using var input = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 65536, true); + if (WorldFileIdentity.FromHandle(input.SafeFileHandle) != guard.Final) throw new IOException("文件身份改变。"); + var bytes = new byte[checked((int)guard.Final.Size)]; await input.ReadExactlyAsync(bytes, ct); guard.Verify(); return bytes; + } + private static bool FinderMetadata(string path) => path.Split('/')[^1] == ".DS_Store" || path.StartsWith("__MACOSX/", StringComparison.Ordinal) && path.Split('/')[^1].StartsWith("._", StringComparison.Ordinal); + internal static async Task WorldAsync(string path, CancellationToken ct, bool allowFinderMetadata = false) + { + using var zip = PackArchiveReader.Open(path); + var entries = zip.Zip.Entries.Where(e => !allowFinderMetadata || !FinderMetadata(e.FullName)).ToArray(); + var levels = entries.Where(e => e.FullName == "level.dat" || e.FullName.EndsWith("/level.dat", StringComparison.Ordinal)).ToArray(); + if (levels.Length != 1) throw new InvalidDataException("世界 ZIP 必须包含唯一 Java level.dat。"); + var prefix = levels[0].FullName[..^"level.dat".Length]; + var files = entries.Where(e => !e.FullName.EndsWith('/')).Select(e => e.FullName).ToArray(); + if (files.Any(p => !p.StartsWith(prefix, StringComparison.Ordinal))) throw new InvalidDataException("世界 ZIP 混有存档目录外的文件。"); + var bytes = await PackArchiveReader.ReadEntryAsync(levels[0], new NbtLimits().MaxInputBytes, ct); + var data = BoundedNbt.Read(bytes, cancellationToken: ct).Root.Find("Data") ?? throw new InvalidDataException("不是 Java 世界。"); + var version = data.Find("Version")?.Find("Name"); var number = data.Find("DataVersion"); + if (version is not { Type: NbtType.String } || number is not { Type: NbtType.Int }) throw new InvalidDataException("世界版本身份缺失,未猜测兼容性。"); + foreach (var file in files) ValidateWorldPath(file[prefix.Length..]); + zip.Verify(); return new(prefix, (int)number.Value, (string)version.Value, files.Select(p => p[prefix.Length..]).Where(p => p != "session.lock").ToArray(), data.Find("LevelName") is { Type: NbtType.String } name ? (string)name.Value : null); + } + private static void ValidateWorldPath(string path) + { + ModrinthPackArchive.SafeRelative(path); + var parts = path.Split('/'); + if (parts.Any(p => p.StartsWith('.')) || parts[0].StartsWith("launcher_", StringComparison.OrdinalIgnoreCase) || + parts[0].ToLowerInvariant() is "accounts" or "accounts.json" or "credentials" or "credentials.json" or "tokens.json" or "passwords.json" + || Path.GetExtension(path).ToLowerInvariant() is ".exe" or ".dll" or ".so" or ".dylib" or ".ps1" or ".bat" or ".cmd" or ".sh" or ".jar" or ".key" or ".pem" or ".pfx") throw new InvalidDataException("世界 ZIP 含非存档或敏感文件:" + path); + } + internal static async Task ExtractWorldAsync(string path, string stage, InspectedWorld expected, string expectedSha256, CancellationToken ct) + { + using var zip = PackArchiveReader.Open(path); + if (await zip.Sha256Async(ct) != expectedSha256) throw new IOException("世界 ZIP 自预检后改变。"); + foreach (var relative in expected.Files) + { + ct.ThrowIfCancellationRequested(); var target = ContentInstallFiles.Literal(stage, relative); Directory.CreateDirectory(Path.GetDirectoryName(target)!); + var bytes = await PackArchiveReader.ReadEntryAsync(zip.Zip.GetEntry(expected.Prefix + relative)!, PackArchiveReader.MaximumFileBytes, ct); + await File.WriteAllBytesAsync(target, bytes, ct); + } + zip.Verify(); + } + internal static async Task ValidateBundledWorldPacksAsync(string root, DataPackFormat format, CancellationToken ct, IReadOnlySet? verifiedBuiltins = null) + { + var folder = ContentInstallFiles.Literal(root, "datapacks"); var resources = new Dictionary(); var warnings = new List(); + if (Directory.Exists(folder)) + { + var files = Directory.GetFileSystemEntries(folder); if (files.Length > 1024) throw new InvalidDataException("世界内数据包超过预算。"); long total = 0; + foreach (var path in files) + { + _ = ContentInstallFiles.Literal(folder, Path.GetFileName(path)); + if (!Directory.Exists(path) && !path.EndsWith(".zip", StringComparison.OrdinalIgnoreCase)) continue; + var info = Directory.Exists(path) ? await FolderDatapackAsync(path, format, ct) : await DatapackAsync(path, format, ct); + total += info.ExpandedBytes; if (total > 256 * 1024 * 1024) throw new InvalidDataException("世界内数据包超过展开预算。"); + CheckResources(resources, info, Path.GetFileName(path), warnings); + } + } + var level = BoundedNbt.Read(await ReadFileAsync(root, ContentInstallFiles.Literal(root, "level.dat"), new NbtLimits().MaxInputBytes, ct), cancellationToken: ct).Root.Find("Data")!; + if (level.Find("DataPacks")?.Find("Enabled") is { Type: NbtType.List, Value: NbtList active }) + { + foreach (var pack in active.Items) + { + if (pack.Type != NbtType.String) throw new InvalidDataException("世界内数据包身份无效。"); var id = (string)pack.Value; + if (id == "vanilla" || verifiedBuiltins?.Contains(id) == true) continue; + if (!id.StartsWith("file/", StringComparison.Ordinal)) throw new NotSupportedException("世界依赖未核实的内建/模组数据包:" + id); + var name = id[5..]; ModrinthPackArchive.SafeRelative(name); + if (name.Contains('/') || !Path.Exists(ContentInstallFiles.Literal(folder, name))) throw new InvalidDataException("世界声明启用的数据包文件缺失。"); + } + } + } +} diff --git a/src/SHOU.Launcher.Core/ContentReferenceIndex.cs b/src/SHOU.Launcher.Core/ContentReferenceIndex.cs new file mode 100644 index 00000000..07e91812 --- /dev/null +++ b/src/SHOU.Launcher.Core/ContentReferenceIndex.cs @@ -0,0 +1,21 @@ +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core; + +// Local reference data extracted from the same mcmod.buf shipped by the WPF version. +public static class ContentReferenceIndex +{ + private sealed record Entry(int Id, string Name, string CurseForge, string Modrinth); + public sealed record Reference(int Id, string Name) { public Uri PageUri => new($"https://www.mcmod.cn/class/{Id}.html"); } + private static readonly Lazy<(Dictionary Cf, Dictionary Mr)> Index = new(() => + { + using var stream = typeof(ContentReferenceIndex).Assembly.GetManifestResourceStream("SHOU.mcmod-index.json")!; + var entries = JsonSerializer.Deserialize(stream) ?? []; + var cf = new Dictionary(StringComparer.Ordinal); var mr = new Dictionary(StringComparer.Ordinal); + foreach (var entry in entries.Where(e => e.Id > 0)) + { var value = new Reference(entry.Id, entry.Name); if (entry.CurseForge.Length > 0) cf.TryAdd(entry.CurseForge, value); if (entry.Modrinth.Length > 0) mr.TryAdd(entry.Modrinth, value); } + return (cf, mr); + }); + public static Reference? Find(ContentProject project) => project.Kind is "mod" or "datapack" && (project.Source == "curseforge" ? Index.Value.Cf : Index.Value.Mr).TryGetValue(project.Slug, out var value) ? value : null; +} diff --git a/src/SHOU.Launcher.Core/CustomHomeDocument.cs b/src/SHOU.Launcher.Core/CustomHomeDocument.cs new file mode 100644 index 00000000..7bfd4f4a --- /dev/null +++ b/src/SHOU.Launcher.Core/CustomHomeDocument.cs @@ -0,0 +1,65 @@ +using System.Xml; +using System.Xml.Linq; + +namespace SHOU.Launcher.Core; + +public sealed record HomeAction(string Type, string Data); +public sealed record HomeElement(string Kind, string Text, string? Source, string? Link, bool Horizontal, double FontSize, IReadOnlyList Children, + IReadOnlyDictionary? Properties = null, IReadOnlyList? Actions = null); +public static class CustomHomeDocument +{ + private static readonly Dictionary EventAliases = new(StringComparer.OrdinalIgnoreCase) + { ["打开网页"] = "OpenUrl", ["复制文本"] = "CopyText", ["刷新主页"] = "RefreshHomepage", ["刷新页面"] = "RefreshPage", ["弹出提示"] = "ShowHint", ["弹出窗口"] = "ShowDialog", ["切换页面"] = "SwitchPage" }; + private static readonly string[] SupportedEvents = ["OpenUrl", "CopyText", "RefreshHomepage", "RefreshPage", "ShowHint", "ShowDialog", "SwitchPage"]; + public static HomeAction Action(string type, string data) + { + type = EventAliases.GetValueOrDefault(type, type); + type = SupportedEvents.FirstOrDefault(t => t.Equals(type, StringComparison.OrdinalIgnoreCase)) ?? throw new InvalidDataException("尚未适配的主页事件:" + type); + if (type == "OpenUrl" && !IsWebLink(data)) throw new InvalidDataException("主页按钮需要不含凭据的 HTTP(S) 地址。"); + if (type == "ShowDialog" && data.Split('|').Length < 2) throw new InvalidDataException("弹出窗口参数须为:标题|正文[|按钮文字]。"); + return new(type, data); + } + public static IReadOnlyList Parse(string text) + { + if (!text.TrimStart('\uFEFF', ' ', '\r', '\n', '\t').StartsWith('<')) return [new("Text", text, null, null, false, 14, [])]; + text = text.TrimStart('\uFEFF', ' ', '\r', '\n', '\t'); + if (text.StartsWith("", StringComparison.Ordinal); if (end < 0) throw new XmlException("XML 声明未结束。"); text = text[(end + 2)..]; } + using var input = new StringReader("" + text + ""); + using var reader = XmlReader.Create(input, new XmlReaderSettings { DtdProcessing = DtdProcessing.Prohibit, XmlResolver = null, MaxCharactersInDocument = 300000 }); + var document = XDocument.Load(reader); var budget = 512; + HomeElement Read(XElement e, int depth) + { + if (--budget < 0 || depth > 32) throw new InvalidDataException("主页布局层级或组件过多。"); + string Attr(string name) => e.Attributes().FirstOrDefault(a => a.Name.LocalName == name)?.Value ?? ""; + var kind = e.Name.LocalName switch + { "MyCard" => "Card", "Border" => "Border", "StackPanel" or "Grid" or "WrapPanel" => e.Name.LocalName, "TextBlock" or "MyHint" => "Text", "Image" => "Image", "MyButton" or "MyIconButton" or "Button" or "MyListItem" => "Button", _ => throw new InvalidDataException("尚不支持的主页组件:" + e.Name.LocalName) }; + if (e.Attributes().Any(a => a.Name.LocalName is "Click" or "Loaded" or "Class" or "Code")) throw new InvalidDataException("主页不加载 CLR 事件处理器。"); + var properties = e.Attributes().Where(a => !a.IsNamespaceDeclaration).ToDictionary(a => a.Name.LocalName, a => a.Value); + var actions = new List(); + if (Attr("EventType").Length > 0) actions.Add(Action(Attr("EventType"), Attr("EventData"))); + var children = new List(); + foreach (var child in e.Elements()) + { + var name = child.Name.LocalName; + if (name.EndsWith(".RowDefinitions", StringComparison.Ordinal) || name.EndsWith(".ColumnDefinitions", StringComparison.Ordinal)) + { + var row = name.EndsWith(".RowDefinitions", StringComparison.Ordinal); + properties[row ? "RowDefinitions" : "ColumnDefinitions"] = string.Join(',', child.Elements().Select(d => (string?)d.Attribute(row ? "Height" : "Width") ?? "*")); + } + else if (name.EndsWith(".Events", StringComparison.Ordinal)) + { + foreach (var action in child.Descendants().Where(a => a.Name.LocalName == "CustomEvent")) actions.Add(Action((string?)action.Attribute("Type") ?? "", (string?)action.Attribute("Data") ?? "")); + } + else if (name.EndsWith(".Child", StringComparison.Ordinal) || name.EndsWith(".Children", StringComparison.Ordinal) || name.EndsWith(".Content", StringComparison.Ordinal)) children.AddRange(child.Elements().Select(c => Read(c, depth + 1))); + else children.Add(Read(child, depth + 1)); + } + var content = Attr("Text"); if (content.Length == 0) content = Attr(kind == "Card" ? "Title" : "Content"); + if (content.Length == 0 && !e.HasElements) content = e.Value; + if (content.StartsWith("{DynamicResource ", StringComparison.Ordinal)) content = ""; + var size = double.TryParse(Attr("FontSize"), System.Globalization.CultureInfo.InvariantCulture, out var font) && double.IsFinite(font) ? Math.Clamp(font, 8, 72) : 14; + return new(kind, content, Attr("Source"), actions.FirstOrDefault(a => a.Type == "OpenUrl")?.Data, Attr("Orientation") == "Horizontal", size, children, properties, actions); + } + return document.Root!.Elements().Select(e => Read(e, 0)).ToArray(); + } + public static bool IsWebLink(string value) => Uri.TryCreate(value, UriKind.Absolute, out var uri) && uri.Scheme is "http" or "https" && string.IsNullOrEmpty(uri.UserInfo); +} diff --git a/src/SHOU.Launcher.Core/Diagnostics/CrashAnalysis.cs b/src/SHOU.Launcher.Core/Diagnostics/CrashAnalysis.cs new file mode 100644 index 00000000..2a74c883 --- /dev/null +++ b/src/SHOU.Launcher.Core/Diagnostics/CrashAnalysis.cs @@ -0,0 +1,74 @@ +using System.Globalization; +using System.IO.Compression; +using System.Text.Json; +using PCL; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Diagnostics; + +public static class CrashAnalysis +{ + private static readonly Lazy>> Messages = new(() => + JsonSerializer.Deserialize>>(typeof(CrashAnalysis).Assembly.GetManifestResourceStream("SHOU.crash-messages.json")!)!); + public static async Task AnalyzeAsync(IReadOnlyList files, string language = "zh-CN", IReadOnlyList? modDirectories = null, + CancellationToken ct = default, LogRedactor? redactor = null, bool automatic = false, string? instanceId = null) + { + redactor ??= new(); + var context = new CrashAnalysisContext(0, "\0"); var sources = new List(); + async Task Read(Stream input, string name, string? path, DateTime modified) + { + ct.ThrowIfCancellationRequested(); using var reader = new StreamReader(input, leaveOpen: true); + var lines = new List(); + while (await reader.ReadLineAsync(ct).ConfigureAwait(false) is { } line) lines.Add(redactor.Scrub(line, truncate: false)); + context.RawFiles.Add(new(name, lines, modified)); + sources.Add(new(name, "log", string.Join('\n', lines), path)); + } + foreach (var file in files.Distinct(StringComparer.Ordinal)) + { + ct.ThrowIfCancellationRequested(); SafePath.RejectLinks(file); + await using var input = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.ReadWrite | FileShare.Delete, 131072, true); + if (Path.GetExtension(file).Equals(".zip", StringComparison.OrdinalIgnoreCase)) + { + using var zip = new ZipArchive(input, ZipArchiveMode.Read, true); + foreach (var entry in zip.Entries.Where(e => IsLog(e.Name))) + { await using var stream = entry.Open(); await Read(stream, entry.FullName.Replace('\\', '/'), null, entry.LastWriteTime.UtcDateTime); } + } + else if (Path.GetExtension(file).Equals(".bz2", StringComparison.OrdinalIgnoreCase)) + { using var bzip = new ICSharpCode.SharpZipLib.BZip2.BZip2InputStream(input) { IsStreamOwner = false }; await Read(bzip, Path.GetFileNameWithoutExtension(file), file, File.GetLastWriteTimeUtc(file)); } + else if (Path.GetExtension(file).Equals(".gz", StringComparison.OrdinalIgnoreCase)) + { using var gzip = new GZipStream(input, CompressionMode.Decompress, true); await Read(gzip, Path.GetFileNameWithoutExtension(file), file, File.GetLastWriteTimeUtc(file)); } + else await Read(input, automatic && file == files.LastOrDefault() ? Path.Combine(Path.GetDirectoryName(file)!, "rawoutput.log") : file, file, File.GetLastWriteTimeUtc(file)); + } + ct.ThrowIfCancellationRequested(); + return await Task.Run(() => + { + new CrashLogPreparer(context).Prepare(); ct.ThrowIfCancellationRequested(); + var logs = context.PreparedLogs!; var result = new CrashDetector().Analyze(logs, modDirectories); ct.ThrowIfCancellationRequested(); + var catalog = Messages.Value.GetValueOrDefault(language) ?? Messages.Value["zh-CN"]; + string Text(string key, object?[] args) => string.Format(CultureInfo.InvariantCulture, catalog.GetValueOrDefault(key) ?? Messages.Value["zh-CN"].GetValueOrDefault(key) ?? key, args); + var message = new CrashResultFormatter(Text).Format(result, logs.All, !automatic); + return new CrashAnalysisReport(message.Text, result.Findings.Select(f => new CrashDiagnosis(f.Cause.ToString(), f.Confidence.ToString(), f.Details.ToArray())).ToArray(), + files.ToArray(), message.SuggestedAction == CrashSuggestedAction.OpenInstanceSettings, instanceId, sources); + }, ct).ConfigureAwait(false); + } + private static bool IsLog(string name) => Path.GetExtension(name).ToLowerInvariant() is ".log" or ".txt"; + public static async Task ExportAsync(CrashAnalysisReport report, string destination, CancellationToken ct = default) + { + SafePath.RejectLinks(destination); var temp = destination + "." + Guid.NewGuid().ToString("N") + ".tmp"; + try + { + await using (var output = new FileStream(temp, FileMode.CreateNew, FileAccess.Write, FileShare.None, 131072, true)) + using (var zip = new ZipArchive(output, ZipArchiveMode.Create, true)) + { + async Task Write(string name, string text) + { await using var entry = zip.CreateEntry(name, CompressionLevel.Optimal).Open(); await using var writer = new StreamWriter(entry); await writer.WriteAsync(text.AsMemory(), ct); } + await Write("分析结果.txt", report.Text); var index = 0; + foreach (var log in report.Sources ?? []) + await Write($"logs/{++index:D3}-{Path.GetFileName(log.Name)}", log.Text); + } + ct.ThrowIfCancellationRequested(); SafePath.RejectLinks(destination); File.Move(temp, destination, true); + } + finally { if (File.Exists(temp)) File.Delete(temp); } + } +} diff --git a/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashAnalysisContext.cs b/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashAnalysisContext.cs new file mode 100644 index 00000000..337aa0b7 --- /dev/null +++ b/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashAnalysisContext.cs @@ -0,0 +1,25 @@ +// Portable legacy analysis; host supplies logs and instance mod directories. +namespace PCL; + +internal sealed class CrashAnalysisContext( + int processId, + string tempFolder) +{ + public int ProcessId { get; } = processId; + + public string TempFolder { get; } = tempFolder; + + public List RawFiles { get; } = []; + + public List OutputFiles { get; } = []; + + public IReadOnlyList? Instance { get; set; } + + public CrashLogEntry? DirectOpenFile { get; set; } + + public CrashLogSet? PreparedLogs { get; set; } + + public CrashAnalysisResult? Result { get; set; } + + public string LogAll { get; set; } = string.Empty; +} \ No newline at end of file diff --git a/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashDetector.cs b/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashDetector.cs new file mode 100644 index 00000000..9a1091e9 --- /dev/null +++ b/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashDetector.cs @@ -0,0 +1,122 @@ +// Portable legacy analysis; host supplies logs and instance mod directories. +using PCL.Core.Logging; + +namespace PCL; + +internal sealed class CrashDetector +{ + private readonly CrashEvidenceExtractor _extractor = new(); + private readonly CrashStackAnalyzer _stackAnalyzer = new(); + + public CrashAnalysisResult Analyze(CrashLogSet logs, IReadOnlyList? instance) + { + LogWrapper.Info("Crash", "步骤 3:分析崩溃原因"); + var result = new CrashAnalysisResult(); + if (!logs.HasAnalyzableLog) + { + result.Add(new CrashFinding(CrashCause.NoAnalyzableFile, CrashConfidence.High) { ShouldStop = true }); + _LogSummary(result); + return result; + } + + var normalizedLogs = _Normalize(logs); + var modIndex = CrashModIndex.Create(normalizedLogs, instance); + + _RunPhase(DetectionPhase.Fatal, normalizedLogs, modIndex, result); + if (_ShouldStop(result)) + { + _LogSummary(result); + return result; + } + + _RunPhase(DetectionPhase.Primary, normalizedLogs, modIndex, result); + if (_ShouldStop(result)) + { + _LogSummary(result); + return result; + } + + var stackFinding = _stackAnalyzer.Analyze(normalizedLogs, modIndex); + if (stackFinding is not null) + result.Add(stackFinding); + if (_ShouldStop(result)) + { + _LogSummary(result); + return result; + } + + _RunPhase(DetectionPhase.Secondary, normalizedLogs, modIndex, result); + _LogSummary(result); + return result; + } + + private static CrashLogSet _Normalize(CrashLogSet logs) + { + var all = logs.All; + if (all.Contains("quilt", StringComparison.OrdinalIgnoreCase) && + all.Contains("Mod Table Version", StringComparison.Ordinal)) + { + LogWrapper.Info("Crash", "处理 Quilt Mod Table 后再继续分析"); + all = CrashText.BeforeFirst(all, "| Index") + CrashText.AfterFirst(all, "Mod Table Version:"); + } + + return new CrashLogSet + { + Game = logs.Game, + Debug = logs.Debug, + CrashReport = logs.CrashReport, + HsErr = logs.HsErr, + All = all + }; + } + + private void _RunPhase( + DetectionPhase phase, + CrashLogSet logs, + CrashModIndex modIndex, + CrashAnalysisResult result) + { + var input = new CrashRuleInput { Logs = logs, ModIndex = modIndex }; + foreach (var rule in CrashRuleCatalog.Rules.Where(rule => rule.Phase == phase)) + { + var finding = rule.Evaluate(input); + if (finding is not null) + _AddAndLog(result, finding); + } + + foreach (var finding in _extractor.Extract(phase, logs, modIndex)) + _AddAndLog(result, finding); + } + + private static void _AddAndLog(CrashAnalysisResult result, CrashFinding finding) + { + result.Add(finding); + _LogFinding(finding); + } + + private static bool _ShouldStop(CrashAnalysisResult result) + { + return result.Findings.Any(finding => finding.ShouldStop); + } + + private static void _LogFinding(CrashFinding finding) + { + var evidence = string.Join(";", finding.Details); + LogWrapper.Info( + "Crash", + $"可能的崩溃原因:{finding.Cause}{(string.IsNullOrEmpty(evidence) ? "" : "(" + evidence + ")")}"); + } + + private static void _LogSummary(CrashAnalysisResult result) + { + if (!result.Any) + { + LogWrapper.Info("Crash", "步骤 3:分析崩溃原因完成,未找到可能的原因"); + return; + } + + LogWrapper.Info("Crash", $"步骤 3:分析崩溃原因完成,找到 {result.Findings.Count} 条可能的原因"); + foreach (var finding in result.Findings) + _LogFinding(finding); + } +} \ No newline at end of file diff --git a/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashLogEntry.cs b/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashLogEntry.cs new file mode 100644 index 00000000..70d88d1d --- /dev/null +++ b/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashLogEntry.cs @@ -0,0 +1,17 @@ +// Portable legacy analysis; host supplies logs and instance mod directories. +using System.IO; + +namespace PCL; + +internal sealed class CrashLogEntry( + string fullPath, + IReadOnlyList lines, DateTime? lastWriteTime = null) +{ + public DateTime? LastWriteTime { get; } = lastWriteTime; + + public string FullPath { get; } = fullPath; + + public IReadOnlyList Lines { get; } = lines; + + public string FileName => Path.GetFileName(FullPath); +} \ No newline at end of file diff --git a/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashLogPreparer.cs b/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashLogPreparer.cs new file mode 100644 index 00000000..6d7f1558 --- /dev/null +++ b/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashLogPreparer.cs @@ -0,0 +1,417 @@ +// Portable legacy analysis; host supplies logs and instance mod directories. +using System.IO; +using System.Text; +using PCL.Core.Logging; + +namespace PCL; + +internal sealed class CrashLogPreparer(CrashAnalysisContext context) +{ + private static readonly HashSet KnownGameLogNames = new(StringComparer.OrdinalIgnoreCase) + { + "latest.log", + "latest log.txt", + "游戏崩溃前的输出.txt", + "rawoutput.log" + }; + + private static readonly HashSet KnownDebugLogNames = new(StringComparer.OrdinalIgnoreCase) + { + "debug.log", + "debug log.txt" + }; + + private static readonly HashSet KnownLauncherLogNames = new(StringComparer.OrdinalIgnoreCase) + { + "启动器日志.txt", + "PCL2 启动器日志.txt", + "PCL 启动器日志.txt", + "PCL CE 启动器日志.txt", + "log1.txt", + "log-ce1.log" + }; + + public bool Prepare() + { + LogWrapper.Info("Crash", "步骤 2:准备日志文本"); + + context.DirectOpenFile = null; + context.PreparedLogs = null; + context.OutputFiles.Clear(); + + var classifiedFiles = _ClassifyFiles(); + + var analyzable = classifiedFiles + .Where(item => item.Kind is not null) + .ToList(); + + context.DirectOpenFile = analyzable + .OrderBy(item => _IsGeneratedLog(item.File)) + .ThenByDescending(item => _GetLastWriteTime(item.File)) + .Select(item => item.File) + .FirstOrDefault(); + + var extraFiles = classifiedFiles + .Where(item => item.Kind is null) + .Select(item => item.File) + .ToList(); + + if (analyzable.Count == 0 && extraFiles.Count > 0) + { + LogWrapper.Info("Crash", "由于仅发现了额外日志,将它们视作 Minecraft 日志进行分析"); + + analyzable = extraFiles + .Select(file => new ClassifiedCrashLog(file, CrashLogKind.Game)) + .ToList(); + + extraFiles.Clear(); + } + + var game = _SelectGameLog(analyzable); + var debug = _SelectDebugLog(analyzable); + var crashReport = _SelectNewest(analyzable, CrashLogKind.CrashReport, 300, 700); + var hsErr = _SelectNewest(analyzable, CrashLogKind.HsErr, 200, 100); + + foreach (var extraFile in extraFiles) + { + context.OutputFiles.Add(extraFile.FullPath); + LogWrapper.Info("Crash", $"输出报告:{extraFile.FullPath},不用作分析"); + } + + var logs = new CrashLogSet + { + Game = game, + Debug = debug, + CrashReport = crashReport, + HsErr = hsErr, + All = string.Concat( + game?.Text ?? debug?.Text ?? string.Empty, + hsErr?.Text ?? string.Empty, + crashReport?.Text ?? string.Empty) + }; + + context.PreparedLogs = logs; + context.LogAll = logs.All; + + if (logs.HasAnalyzableLog) + LogWrapper.Info( + "Crash", + ("步骤 2:准备日志文本完成,找到" + + (game is null ? "" : "游戏日志、") + + (debug is null ? "" : "游戏 Debug 日志、") + + (hsErr is null ? "" : "虚拟机日志、") + + (crashReport is null ? "" : "崩溃日志、")) + .TrimEnd('、') + "用作分析"); + else + LogWrapper.Info("Crash", "步骤 2:准备日志文本完成,没有任何可供分析的日志"); + + return logs.HasAnalyzableLog; + } + + private List _ClassifyFiles() + { + var result = new List(); + + foreach (var file in context.RawFiles) + { + var name = file.FileName.ToLowerInvariant(); + + if (!file.Lines.Any()) + { + LogWrapper.Info("Crash", $"{name} 由于内容为空跳过"); + continue; + } + + var kind = _ClassifyLogKind(file); + + if (kind is null && !_IsExtraLogLike(file)) + { + LogWrapper.Info("Crash", $"{name} 分类为 Ignore"); + continue; + } + + result.Add(new ClassifiedCrashLog(file, kind)); + LogWrapper.Info("Crash", $"{name} 分类为 {kind?.ToString() ?? "Extra"}"); + } + + return result; + } + + private static CrashLogKind? _ClassifyLogKind(CrashLogEntry file) + { + var name = file.FileName.ToLowerInvariant(); + + if (name.StartsWith("hs_err", StringComparison.Ordinal)) + return CrashLogKind.HsErr; + + if (name.StartsWith("crash-", StringComparison.Ordinal)) + return CrashLogKind.CrashReport; + + if (KnownDebugLogNames.Contains(name)) + return CrashLogKind.Debug; + + if (KnownGameLogNames.Contains(name)) + return CrashLogKind.Game; + + if (KnownLauncherLogNames.Contains(name) && + file.Lines.Any(line => line.Contains("以下为游戏输出的最后一段内容"))) + return CrashLogKind.Game; + + return null; + } + + private static bool _IsExtraLogLike(CrashLogEntry file) + { + var name = file.FileName.ToLowerInvariant(); + + return name.EndsWith(".log", StringComparison.OrdinalIgnoreCase) || + name.EndsWith(".txt", StringComparison.OrdinalIgnoreCase); + } + + private CrashLogText? _SelectGameLog(IReadOnlyList files) + { + var gameFiles = files + .Where(item => item.Kind is CrashLogKind.Game or CrashLogKind.Debug) + .Select(item => item.File) + .ToList(); + + if (gameFiles.Count == 0) + return null; + + var byName = gameFiles + .GroupBy(file => file.FileName.ToLowerInvariant()) + .ToDictionary( + group => group.Key, + group => group.OrderBy(_GetLastWriteTime).Last(), + StringComparer.OrdinalIgnoreCase); + + var text = ""; + + foreach (var name in new[] + { + "rawoutput.log", + "启动器日志.txt", + "log1.txt", + "log-ce1.log", + "游戏崩溃前的输出.txt", + "PCL CE 启动器日志.txt", + "PCL2 启动器日志.txt", + "PCL 启动器日志.txt" + }) + { + if (!byName.TryGetValue(name, out var currentLog)) + continue; + + text += _ExtractLauncherGameOutput(currentLog); + + context.OutputFiles.Add(currentLog.FullPath); + LogWrapper.Info("Crash", $"导入分析:{currentLog.FullPath},作为启动器日志"); + + break; + } + + foreach (var name in new[] + { + "latest.log", + "latest log.txt", + "debug.log", + "debug log.txt" + }) + { + if (!byName.TryGetValue(name, out var currentLog)) + continue; + + text += _GetHeadTailLines(currentLog.Lines, 1500, 500); + + context.OutputFiles.Add(currentLog.FullPath); + LogWrapper.Info("Crash", $"导入分析:{currentLog.FullPath},作为 Minecraft 日志"); + + break; + } + + if (string.IsNullOrEmpty(text)) + { + var fallback = gameFiles + .OrderBy(_GetLastWriteTime) + .Last(); + + text = _GetHeadTailLines(fallback.Lines, 1500, 500); + + context.OutputFiles.Add(fallback.FullPath); + LogWrapper.Info("Crash", $"导入分析:{fallback.FullPath},作为兜底日志"); + } + + foreach (var file in gameFiles.Where(file => !context.OutputFiles.Contains(file.FullPath))) + { + context.OutputFiles.Add(file.FullPath); + LogWrapper.Info("Crash", $"输出报告:{file.FullPath},作为 Minecraft 或启动器日志"); + } + + return new CrashLogText + { + Kind = CrashLogKind.Game, + Text = text.TrimEnd('\r', '\n'), + FilePath = gameFiles.FirstOrDefault()?.FullPath + }; + } + + private CrashLogText? _SelectDebugLog(IReadOnlyList files) + { + var debugFiles = files + .Where(item => item.Kind == CrashLogKind.Debug) + .Select(item => item.File) + .ToList(); + + if (debugFiles.Count == 0) + return null; + + var selected = debugFiles + .OrderBy(_GetLastWriteTime) + .Last(); + + if (!context.OutputFiles.Contains(selected.FullPath)) + context.OutputFiles.Add(selected.FullPath); + + LogWrapper.Info("Crash", $"导入分析:{selected.FullPath},作为 Minecraft Debug 日志"); + + return new CrashLogText + { + Kind = CrashLogKind.Debug, + Text = _GetHeadTailLines(selected.Lines, 1000, 0), + FilePath = selected.FullPath + }; + } + + private CrashLogText? _SelectNewest( + IReadOnlyList files, + CrashLogKind kind, + int head, + int tail) + { + var selectedFiles = files + .Where(item => item.Kind == kind) + .Select(item => item.File) + .ToList(); + + if (selectedFiles.Count == 0) + return null; + + var selected = selectedFiles + .OrderBy(_GetLastWriteTime) + .Last(); + + context.OutputFiles.Add(selected.FullPath); + + LogWrapper.Info( + "Crash", + $"输出报告:{selected.FullPath}{(kind == CrashLogKind.HsErr ? ",作为虚拟机错误信息" : ",作为 Minecraft 崩溃报告")}"); + + LogWrapper.Info( + "Crash", + $"导入分析:{selected.FullPath}{(kind == CrashLogKind.HsErr ? ",作为虚拟机错误信息" : ",作为 Minecraft 崩溃报告")}"); + + return new CrashLogText + { + Kind = kind, + Text = _GetHeadTailLines(selected.Lines, head, tail), + FilePath = selected.FullPath + }; + } + + private static string _ExtractLauncherGameOutput(CrashLogEntry log) + { + var text = ""; + var hasLauncherMark = false; + + foreach (var line in log.Lines) + if (hasLauncherMark) + { + text += line + "\n"; + } + else if (line.Contains("以下为游戏输出的最后一段内容")) + { + hasLauncherMark = true; + LogWrapper.Info("Crash", "找到 PCL 输出的游戏实时日志头"); + } + + return hasLauncherMark + ? text.TrimEnd('\r', '\n') + : _GetHeadTailLines(log.Lines, 0, 500); + } + + private static DateTime _GetLastWriteTime(CrashLogEntry file) + { + try + { + return file.LastWriteTime ?? new FileInfo(file.FullPath).LastWriteTime; + } + catch (Exception ex) + { + LogWrapper.Warn(ex, "Crash", "获取日志文件修改时间失败"); + return new DateTime(1900, 1, 1); + } + } + + private bool _IsGeneratedLog(CrashLogEntry file) => + file.FullPath.StartsWith(context.TempFolder, StringComparison.OrdinalIgnoreCase); + + private static string _GetHeadTailLines( + IReadOnlyList raw, + int headLines, + int tailLines) + { + if (raw.Count <= headLines + tailLines) + return string.Join("\n", raw.Distinct()); + + var lines = new List(); + var seen = new HashSet(); + var realHeadLines = 0; + + int viewedLines; + + for (viewedLines = 0; viewedLines <= raw.Count - 1; viewedLines++) + { + if (!seen.Add(raw[viewedLines])) + continue; + + realHeadLines += 1; + lines.Add(raw[viewedLines]); + + if (realHeadLines >= headLines) + break; + } + + var realTailLines = 0; + + for (var i = raw.Count - 1; i >= viewedLines; i -= 1) + { + if (!seen.Add(raw[i])) + continue; + + realTailLines += 1; + lines.Insert(realHeadLines, raw[i]); + + if (realTailLines >= tailLines) + break; + } + + var result = new StringBuilder(); + + foreach (var line in lines.Where(line => !string.IsNullOrEmpty(line))) + { + result.Append(line); + result.Append('\n'); + } + + return result.ToString(); + } + + private sealed class ClassifiedCrashLog( + CrashLogEntry file, + CrashLogKind? kind) + { + public CrashLogEntry File { get; } = file; + + public CrashLogKind? Kind { get; } = kind; + } +} \ No newline at end of file diff --git a/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashModIndex.cs b/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashModIndex.cs new file mode 100644 index 00000000..d9a16003 --- /dev/null +++ b/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashModIndex.cs @@ -0,0 +1,239 @@ +// Portable adapter for the repository legacy analyzer; only instance path lookup is replaced. +using System.IO; +using System.Text.RegularExpressions; +using PCL.Core.Logging; + +namespace PCL; + +internal sealed class CrashModInfo +{ + public string? ModId { get; init; } + + public string? DisplayName { get; init; } + + public string? FileName { get; init; } + + public string? Version { get; init; } + + public string Source { get; init; } = ""; + + public string DisplayNameOrFileName => + !string.IsNullOrWhiteSpace(DisplayName) ? DisplayName : + !string.IsNullOrWhiteSpace(FileName) ? FileName : + ModId ?? ""; +} + +internal sealed class CrashModIndex +{ + private readonly List _mods = []; + + public static CrashModIndex Create(CrashLogSet logs, IReadOnlyList? modDirectories) + { + var index = new CrashModIndex(); + index._ReadCrashReport(logs.CrashReport?.Text); + index._ReadForgeDebugLog(logs.Debug?.Text); + index._ReadLoaderMessages(logs.Game?.Text); + if (modDirectories is not null) + index._ReadInstanceModFiles(modDirectories); + index._NormalizeAndDeduplicate(); + return index; + } + + public IEnumerable ResolveMany(IEnumerable hints) + { + var found = new List(); + foreach (var hint in hints) + foreach (var mod in Resolve(hint)) + if (!found.Any(item => _SameDisplay(item, mod))) + found.Add(mod); + return found; + } + + public IEnumerable Resolve(string? hint) + { + if (string.IsNullOrWhiteSpace(hint)) + return []; + + var normalizedHint = _Normalize(hint); + if (string.IsNullOrWhiteSpace(normalizedHint)) + return []; + + var exact = _mods + .Where(mod => + string.Equals(_Normalize(mod.ModId), normalizedHint, StringComparison.Ordinal) || + string.Equals(_Normalize(mod.FileName), normalizedHint, StringComparison.Ordinal) || + string.Equals(_Normalize(mod.DisplayName), normalizedHint, StringComparison.Ordinal)) + .ToList(); + if (exact.Count != 0) + return exact; + + return _mods + .Where(mod => + _Normalize(mod.ModId).Contains(normalizedHint, StringComparison.Ordinal) || + _Normalize(mod.FileName).Contains(normalizedHint, StringComparison.Ordinal) || + _Normalize(mod.DisplayName).Contains(normalizedHint, StringComparison.Ordinal)) + .ToList(); + } + + public List ResolveToDisplayNames(IEnumerable hints) + { + var hintList = hints + .Where(item => !string.IsNullOrWhiteSpace(item)) + .Select(item => item.Trim()) + .Distinct() + .ToList(); + var mods = ResolveMany(hintList) + .Select(mod => mod.DisplayNameOrFileName) + .Where(item => !string.IsNullOrWhiteSpace(item)) + .Distinct(StringComparer.Ordinal) + .ToList(); + + return mods.Count != 0 ? mods : hintList; + } + + private void _ReadCrashReport(string? text) + { + if (string.IsNullOrEmpty(text) || + !text.Contains("A detailed walkthrough of the error", StringComparison.Ordinal)) + return; + + var details = text.Replace("A detailed walkthrough of the error", "¨"); + var isFabric = details.Contains("Fabric Mods", StringComparison.Ordinal); + if (isFabric) + { + details = details.Replace("Fabric Mods", "¨"); + LogWrapper.Info("Crash", "崩溃报告中检测到 Fabric Mod 信息格式"); + } + + var isQuilt = details.Contains("quilt-loader", StringComparison.Ordinal); + if (isQuilt) + { + details = details.Replace("Mod Table Version", "¨"); + LogWrapper.Info("Crash", "崩溃报告中检测到 Quilt Mod 信息格式"); + } + + details = CrashText.AfterLast(details, "¨"); + foreach (var rawLine in details.Split('\n')) + { + var line = rawLine.Trim('\r', '\n'); + if (string.IsNullOrWhiteSpace(line)) + continue; + + if (isFabric && line.StartsWith( + "\t\t", + StringComparison.Ordinal) && !CrashRegex.IsMatch(line, @"\t\tfabric[\w-]*: Fabric")) + { + _Add(new CrashModInfo + { + ModId = CrashRegex.First(line, @"(?<=\t\t)[^:]+"), + DisplayName = CrashRegex.First(line, @"(?<=: )[^\n]+(?= [^\n]+)"), + Version = CrashRegex.First(line, @"(?<= )[\w\.-]+$"), + Source = "crash-report-fabric" + }); + continue; + } + + if (line.Contains(".jar", StringComparison.OrdinalIgnoreCase) && + line.Length - line.Replace(".jar", "", StringComparison.OrdinalIgnoreCase).Length == 4) + _Add(new CrashModInfo + { + FileName = CrashRegex.First(line, + @"(?<=\()[^\t]+.jar(?=\))|(?<=(\t\t)|(\| ))[^\t\|]+.jar", + RegexOptions.IgnoreCase), + DisplayName = CrashRegex.First(line, @"(?<=\t)[^\t\|]+(?=\s+\()"), + ModId = CrashRegex.First(line, @"(?<=\| )[\w\.-]+(?= \|)"), + Source = "crash-report-forge" + }); + } + } + + private void _ReadForgeDebugLog(string? text) + { + if (string.IsNullOrEmpty(text)) + return; + + foreach (var line in CrashRegex.All(text, "(?<=valid mod file ).*", RegexOptions.Multiline)) + _Add(new CrashModInfo + { + FileName = CrashRegex.First(line, ".*(?= with)"), + ModId = CrashRegex.First(line, @"(?<=with \{)[^\}]+"), + Version = CrashRegex.First(line, @"(?<=versions \{)[^\}]+"), + Source = "debug-log" + }); + } + + private void _ReadLoaderMessages(string? text) + { + if (string.IsNullOrEmpty(text)) + return; + + foreach (var line in CrashRegex.All(text, @"(?<=ModID: )[^,\n]+|(?<=ModId )[^\n]+(?= for )", + RegexOptions.IgnoreCase)) + _Add(new CrashModInfo + { + ModId = line.Trim(), + Source = "loader-message" + }); + } + + private void _ReadInstanceModFiles(IReadOnlyList modDirectories) + { + foreach (var directory in modDirectories) + try + { + var info = new DirectoryInfo(directory); + if (!info.Exists) + continue; + + foreach (var file in info.EnumerateFiles("*.jar")) + _Add(new CrashModInfo + { + FileName = file.Name, + DisplayName = Path.GetFileNameWithoutExtension(file.Name), + Source = "instance-mods" + }); + } + catch (Exception ex) + { + LogWrapper.Warn(ex, "Crash", "读取实例 Mod 文件列表失败(" + directory + ")"); + } + } + + private void _Add(CrashModInfo mod) + { + if (string.IsNullOrWhiteSpace(mod.ModId) && + string.IsNullOrWhiteSpace(mod.DisplayName) && + string.IsNullOrWhiteSpace(mod.FileName)) + return; + _mods.Add(mod); + } + + private void _NormalizeAndDeduplicate() + { + var distinct = new List(); + foreach (var mod in _mods + .Where(mod => !distinct.Any(item => _SameDisplay(item, mod)))) + distinct.Add(mod); + + _mods.Clear(); + _mods.AddRange(distinct); + LogWrapper.Info("Crash", "构建 Mod 索引,找到 " + _mods.Count + " 个候选 Mod"); + } + + private static bool _SameDisplay(CrashModInfo a, CrashModInfo b) + { + return string.Equals(_Normalize(a.ModId), _Normalize(b.ModId), StringComparison.Ordinal) && + string.Equals(_Normalize(a.FileName), _Normalize(b.FileName), StringComparison.Ordinal) && + string.Equals(_Normalize(a.DisplayName), _Normalize(b.DisplayName), StringComparison.Ordinal); + } + + private static string _Normalize(string? value) + { + return (value ?? string.Empty) + .ToLowerInvariant() + .Replace("_", "") + .Replace("-", "") + .Replace(" ", "") + .Replace(".jar", ""); + } +} \ No newline at end of file diff --git a/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashResultFormatter.cs b/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashResultFormatter.cs new file mode 100644 index 00000000..22921a2e --- /dev/null +++ b/src/SHOU.Launcher.Core/Diagnostics/Legacy/CrashResultFormatter.cs @@ -0,0 +1,513 @@ +using System.Text.RegularExpressions; +// Legacy presentation rules adapted to an injected three-language catalog; no WPF or update service. +using PCL.Core.Logging; + +namespace PCL; + +internal sealed class CrashResultFormatter(Func text) +{ + public CrashDialogContent Format( + CrashAnalysisResult result, + string combinedLog, + bool isHandAnalyze) + { + + if (!result.Any) + return _CreateUnknownContent(isHandAnalyze); + + var specs = result.Findings + .Select(finding => _CreateMessageSpec(finding, combinedLog)) + .ToList(); + + var text = _JoinParagraphs(specs.Select(_Render)); + if (!isHandAnalyze) + text = _AppendFollowUps(text, specs); + + return new CrashDialogContent( + _NormalizeLineEndings(text).Trim('\r', '\n'), + specs[0].SuggestedAction); + } + + private CrashDialogContent _CreateUnknownContent(bool isHandAnalyze) + { + var spec = isHandAnalyze + ? _Spec("Crash.Reason.Unknown.Manual") + : _Spec("Crash.Reason.Unknown.Auto", "Crash.Suggestion.ExportReport"); + + return new CrashDialogContent( + _NormalizeLineEndings(_Render(spec)).Trim('\r', '\n'), + CrashSuggestedAction.None); + } + + private string _AppendFollowUps( + string text, + IReadOnlyCollection specs) + { + var followUps = new List(); + + if (specs.Any(spec => spec.AppendReportHint)) + followUps.Add(Text("Crash.Suggestion.ViewReport")); + + if (specs.Any(spec => spec.AppendHelpHint)) + followUps.Add(Text("Crash.Suggestion.ExportReport")); + + var launcherOutdatedSuggestion = _GetLauncherOutdatedSuggestion(); + if (!string.IsNullOrWhiteSpace(launcherOutdatedSuggestion)) + followUps.Add(launcherOutdatedSuggestion); + + return followUps.Count == 0 + ? text + : Text( + "Crash.Presentation.WithFollowUps", + text, + _JoinParagraphs(followUps)); + } + + private string _Render(CrashMessageSpec spec) + { + var reason = Text(spec.ReasonKey, spec.ReasonArgs); + if (spec.SuggestionKey is null) + return Text("Crash.Presentation.ReasonOnly", reason); + + return Text( + "Crash.Presentation.WithSuggestion", + reason, + Text(spec.SuggestionKey, spec.SuggestionArgs)); + } + + private CrashMessageSpec _CreateMessageSpec( + CrashFinding finding, + string combinedLogText) + { + var additional = finding.Details.ToList(); + + switch (finding.Cause) + { + case CrashCause.ExtractedModFile: + return _Spec( + "Crash.Reason.ExtractedModFile", + "Crash.Suggestion.ExtractedModFile"); + + case CrashCause.OutOfMemory: + return _Spec( + "Crash.Reason.OutOfMemory", + "Crash.Suggestion.OutOfMemory", + help: true); + + case CrashCause.UsingOpenJ9: + return _Spec( + "Crash.Reason.UsingOpenJ9", + "Crash.Suggestion.UsingOpenJ9"); + + case CrashCause.UsingJdk: + return _Spec( + "Crash.Reason.UsingJdk", + "Crash.Suggestion.UsingJdk"); + + case CrashCause.JavaTooNew: + return _Spec( + "Crash.Reason.JavaTooNew", + "Crash.Suggestion.JavaTooNew"); + + case CrashCause.JavaIncompatible: + return _Spec( + "Crash.Reason.JavaIncompatible", + "Crash.Suggestion.JavaIncompatible"); + + case CrashCause.InvalidModFileName: + return _Spec( + "Crash.Reason.InvalidModFileName", + "Crash.Suggestion.InvalidModFileName"); + + case CrashCause.MissingMixinBootstrap: + return _Spec( + "Crash.Reason.MissingMixinBootstrap", + "Crash.Suggestion.MissingMixinBootstrap"); + + case CrashCause.X86JavaMemoryLimit: + return Environment.Is64BitOperatingSystem + ? _Spec( + "Crash.Reason.X86JavaMemoryLimit.OnX64Os", + "Crash.Suggestion.X86JavaMemoryLimit.OnX64Os") + : _Spec( + "Crash.Reason.X86JavaMemoryLimit.OnX86Os", + "Crash.Suggestion.X86JavaMemoryLimit.OnX86Os", + help: true); + + case CrashCause.MissingDependencyOrWrongMcVersion: + return _FormatMissingDependency(additional); + + case CrashCause.StackKeywordFound: + return additional.Count == 1 + ? _Spec( + "Crash.Reason.StackKeyword.Single", + "Crash.Suggestion.StackKeyword", _Args(additional[0]), + help: true) + : _Spec( + "Crash.Reason.StackKeyword.Multiple", + "Crash.Suggestion.StackKeyword", + _Args(_BulletList(additional)), + help: true); + + case CrashCause.StackModNameFound or CrashCause.SuspectedModCrash: + return additional.Count == 1 + ? _Spec( + "Crash.Reason.SuspectedMod.Single", + "Crash.Suggestion.DisableThisMod", + _Args(additional[0]), + report: true, + help: true) + : _Spec( + "Crash.Reason.SuspectedMod.Multiple", + "Crash.Suggestion.DisableTheseMods", + _Args(_BulletList(additional)), + report: true, + help: true); + + case CrashCause.ConfirmedModCrash: + return additional.Count == 1 + ? _Spec( + "Crash.Reason.ConfirmedMod.Single", + "Crash.Suggestion.DisableThisMod", + _Args(additional[0]), + report: true, + help: true) + : _Spec( + "Crash.Reason.ConfirmedMod.Multiple", + "Crash.Suggestion.DisableTheseMods", + _Args(_BulletList(additional)), + report: true, + help: true); + + case CrashCause.ModMixinFailed: + if (additional.Count == 0) + return _Spec( + "Crash.Reason.ModMixinFailed.None", + "Crash.Suggestion.ModMixinFailed", + report: true, + help: true); + + return additional.Count == 1 + ? _Spec( + "Crash.Reason.ModMixinFailed.Single", + "Crash.Suggestion.DisableThisMod", + _Args(additional[0]), + report: true, + help: true) + : _Spec( + "Crash.Reason.ModMixinFailed.Multiple", + "Crash.Suggestion.DisableTheseMods", + _Args(_BulletList(additional)), + report: true, + help: true); + + case CrashCause.ModConfigCrash: + return additional.Count > 1 && additional[1] is not null + ? _Spec( + "Crash.Reason.ModConfigCrash.WithConfig", + "Crash.Suggestion.ModConfigCrash", + _Args(additional[0], additional[1])) + : _Spec( + "Crash.Reason.ModConfigCrash.Simple", + "Crash.Suggestion.DisableThisMod", + _Args(additional.FirstOrDefault() ?? string.Empty), + report: true, + help: true); + + case CrashCause.ModInitializationFailed: + return additional.Count == 1 + ? _Spec( + "Crash.Reason.ModInitializationFailed.Single", + "Crash.Suggestion.DisableThisMod", + _Args(additional[0]), + report: true, + help: true) + : _Spec( + "Crash.Reason.ModInitializationFailed.Multiple", + "Crash.Suggestion.DisableTheseMods", + _Args(_BulletList(additional)), + report: true, + help: true); + + case CrashCause.SpecificBlockCrash: + return additional.Count == 1 + ? _Spec( + "Crash.Reason.SpecificBlock.Single", + "Crash.Suggestion.SpecificBlock.Single", + _Args(additional[0]), + help: true) + : _Spec( + "Crash.Reason.SpecificBlock.Multiple", + "Crash.Suggestion.SpecificBlock.Multiple", + help: true); + + case CrashCause.DuplicateMods: + return additional.Count >= 2 + ? _Spec( + "Crash.Reason.DuplicateMods.Known", + "Crash.Suggestion.DuplicateMods", + _Args(_BulletList(additional))) + : _Spec( + "Crash.Reason.DuplicateMods.Unknown", + "Crash.Suggestion.DuplicateMods", + report: true, + help: true); + + case CrashCause.SpecificEntityCrash: + return additional.Count == 1 + ? _Spec( + "Crash.Reason.SpecificEntity.Single", + "Crash.Suggestion.SpecificEntity.Single", + _Args(additional[0]), + help: true) + : _Spec( + "Crash.Reason.SpecificEntity.Multiple", + "Crash.Suggestion.SpecificEntity.Multiple", + help: true); + + case CrashCause.OptiFineForgeIncompatible: + return _Spec( + "Crash.Reason.OptiFineForgeIncompatible", + "Crash.Suggestion.OptiFineForgeIncompatible"); + + case CrashCause.ShadersModWithOptiFine: + return _Spec( + "Crash.Reason.ShadersModWithOptiFine", + "Crash.Suggestion.ShadersModWithOptiFine"); + + case CrashCause.OldForgeNewJavaIncompatible: + return _Spec( + "Crash.Reason.OldForgeNewJavaIncompatible", + "Crash.Suggestion.OldForgeNewJavaIncompatible"); + + case CrashCause.MultipleForgeInInstanceJson: + return _Spec( + "Crash.Reason.MultipleForgeInInstanceJson", + "Crash.Suggestion.MultipleForgeInInstanceJson"); + + case CrashCause.ManualDebugCrash: + return _Spec("Crash.Reason.ManualDebugCrash"); + + case CrashCause.ModRequiresJava11: + return _Spec( + "Crash.Reason.ModRequiresJava11", + "Crash.Suggestion.ModRequiresJava11"); + + case CrashCause.VeryShortOutput: + return _Spec( + "Crash.Reason.VeryShortOutput", + "Crash.Suggestion.ExportReport", + _Args(additional.FirstOrDefault() ?? string.Empty)); + + case CrashCause.OptiFineWorldLoadCrash: + return _Spec( + "Crash.Reason.OptiFineWorldLoadCrash", + "Crash.Suggestion.OptiFineWorldLoadCrash", + help: true); + + case CrashCause.PixelFormatNotSupported + or CrashCause.IntelDriverAccessViolation + or CrashCause.AmdDriverAccessViolation + or CrashCause.NvidiaDriverAccessViolation + or CrashCause.UnsupportedOpenGl: + return combinedLogText.Contains("hd graphics ") + ? _Spec( + "Crash.Reason.GraphicsDriver.IntelOrIntegrated", + "Crash.Suggestion.GraphicsDriver.IntelOrIntegrated", + help: true) + : _Spec( + "Crash.Reason.GraphicsDriver.Generic", + "Crash.Suggestion.GraphicsDriver.Generic", + help: true); + + case CrashCause.ResourcePackTooLarge: + return _Spec( + "Crash.Reason.ResourcePackTooLarge", + "Crash.Suggestion.ResourcePackTooLarge", + help: true); + + case CrashCause.NightConfigBug: + return _Spec( + "Crash.Reason.NightConfigBug", + "Crash.Suggestion.NightConfigBug", + help: true); + + case CrashCause.OpenGl1282: + return _Spec( + "Crash.Reason.OpenGl1282", + "Crash.Suggestion.OpenGl1282", + help: true); + + case CrashCause.TooManyModsIdLimit: + return _Spec( + "Crash.Reason.TooManyModsIdLimit", + "Crash.Suggestion.TooManyModsIdLimit"); + + case CrashCause.FileOrContentValidationFailed: + return _Spec( + "Crash.Reason.FileOrContentValidationFailed", + "Crash.Suggestion.FileOrContentValidationFailed", + help: true); + + case CrashCause.IncompleteForgeInstallation: + return _Spec( + "Crash.Reason.IncompleteForgeInstallation", + "Crash.Suggestion.IncompleteForgeInstallation", + help: true); + + case CrashCause.FabricError: + return additional.Count == 1 + ? _Spec( + "Crash.Reason.FabricError.WithDetail", + "Crash.Suggestion.FollowLoaderInstructions", + _Args(additional[0])) + : _Spec( + "Crash.Reason.FabricError.Generic", + "Crash.Suggestion.FollowLoaderInstructions", + help: true); + + case CrashCause.IncompatibleMods: + return _FormatIncompatibleMods(additional); + + case CrashCause.ModLoaderError: + return additional.Count == 1 + ? _Spec( + "Crash.Reason.ModLoaderError.WithDetail", + "Crash.Suggestion.FollowLoaderInstructions", + _Args(additional[0])) + : _Spec( + "Crash.Reason.ModLoaderError.Generic", + "Crash.Suggestion.FollowLoaderInstructions", + help: true); + + case CrashCause.FabricSolutionProvided: + return additional.Count == 1 + ? _Spec( + "Crash.Reason.FabricSolution.WithDetail", + "Crash.Suggestion.FollowLoaderInstructions", + _Args(additional[0])) + : _Spec( + "Crash.Reason.FabricSolution.Generic", + "Crash.Suggestion.FollowLoaderInstructions", + help: true); + + case CrashCause.ForgeError: + return additional.Count == 1 + ? _Spec( + "Crash.Reason.ForgeError.WithDetail", + "Crash.Suggestion.FollowLoaderInstructions", + _Args(additional[0])) + : _Spec( + "Crash.Reason.ForgeError.Generic", + "Crash.Suggestion.FollowLoaderInstructions", + help: true); + + case CrashCause.NoAnalyzableFile: + return _Spec( + "Crash.Reason.NoAnalyzableFile", + "Crash.Suggestion.ExportReport", + help: true); + + default: + return _Spec( + "Crash.Reason.UnknownFinding", + "Crash.Suggestion.ExportReport", + _Args(finding.Cause.ToString()), + help: true); + } + } + + private CrashMessageSpec _FormatMissingDependency(List additional) + { + if (additional.Count == 0) + return _Spec( + "Crash.Reason.MissingDependency.Generic", + "Crash.Suggestion.FollowLoaderInstructions", + help: true); + + var info = _BulletList(additional); + + return System.Text.RegularExpressions.Regex.IsMatch(info, @"(incompatible[\s\S]+'Fabric Loader' \(fabricloader\)|Mod ID: '(?:neo)?forge', Requested by '([^']+)')") + ? _Spec( + "Crash.Reason.ModLoaderIncompatible", + "Crash.Suggestion.ModLoaderIncompatible", + _Args(info), + action: CrashSuggestedAction.OpenInstanceSettings) + : _Spec( + "Crash.Reason.MissingDependency.WithDetail", + "Crash.Suggestion.FollowLoaderInstructions", + _Args(info)); + } + + private CrashMessageSpec _FormatIncompatibleMods(List additional) + { + if (additional.Count != 1) + return _Spec( + "Crash.Reason.IncompatibleMods.Generic", + "Crash.Suggestion.FollowLoaderInstructions", + help: true); + + var info = additional[0]; + + return System.Text.RegularExpressions.Regex.IsMatch(info, @"(incompatible[\s\S]+'Fabric Loader' \(fabricloader\)|Mod ID: '(?:neo)?forge', Requested by '([^']+)')") + ? _Spec( + "Crash.Reason.ModLoaderIncompatible", + "Crash.Suggestion.ModLoaderIncompatible", + _Args(info), + action: CrashSuggestedAction.OpenInstanceSettings) + : _Spec( + "Crash.Reason.IncompatibleMods.WithDetail", + "Crash.Suggestion.FollowLoaderInstructions", + _Args(info)); + } + + private CrashMessageSpec _Spec( + string reasonKey, + string? suggestionKey = null, + object?[]? reasonArgs = null, + object?[]? suggestionArgs = null, + bool report = false, + bool help = false, + CrashSuggestedAction action = CrashSuggestedAction.None) + { + return new CrashMessageSpec( + reasonKey, + reasonArgs ?? [], + suggestionKey, + suggestionArgs ?? [], + report, + help, + action); + } + + private object?[] _Args(params object?[] args) + { + return args; + } + + private string _BulletList(IEnumerable items) + { + return string.Join( + Environment.NewLine, + items.Select(item => Text("Crash.Presentation.ListItem", item))); + } + + private string _JoinParagraphs(IEnumerable items) + { + return string.Join( + Environment.NewLine + Environment.NewLine, + items.Where(item => !string.IsNullOrWhiteSpace(item))); + } + + private string _NormalizeLineEndings(string text) + { + return text + .Replace("\r\n", "\r") + .Replace("\n", "\r") + .Replace("\r", "\r\n"); + } + + // Automatic release checks were removed by the user; diagnosis never starts one. + private string? _GetLauncherOutdatedSuggestion() => null; + private string Text(string key, params object?[] arguments) => text(key, arguments); +} diff --git a/src/SHOU.Launcher.Core/Diagnostics/Legacy/LegacyLogAdapter.cs b/src/SHOU.Launcher.Core/Diagnostics/Legacy/LegacyLogAdapter.cs new file mode 100644 index 00000000..202d3579 --- /dev/null +++ b/src/SHOU.Launcher.Core/Diagnostics/Legacy/LegacyLogAdapter.cs @@ -0,0 +1,9 @@ +namespace PCL.Core.Logging; + +// Legacy analysis logging routes to the host diagnostic trace; no WPF logging service is loaded. +internal static class LogWrapper +{ + public static void Info(string category, string text) => System.Diagnostics.Trace.WriteLine(new SHOU.Launcher.Core.Diagnostics.LogRedactor().Scrub(text), category); + public static void Warn(Exception error, string category, string text) => Info(category, text + " (" + error.GetType().Name + ")"); + public static void Error(Exception error, string category, string text) => Warn(error, category, text); +} diff --git a/src/SHOU.Launcher.Core/Diagnostics/LogRedactor.cs b/src/SHOU.Launcher.Core/Diagnostics/LogRedactor.cs new file mode 100644 index 00000000..c93a579e --- /dev/null +++ b/src/SHOU.Launcher.Core/Diagnostics/LogRedactor.cs @@ -0,0 +1,17 @@ +using System.Text.RegularExpressions; + +namespace SHOU.Launcher.Core.Diagnostics; + +public sealed class LogRedactor +{ + private readonly HashSet secrets = new(StringComparer.Ordinal); + private readonly object sync = new(); + public void Register(string? secret) { if (!string.IsNullOrEmpty(secret)) lock (sync) secrets.Add(secret); } + public string Scrub(string text, bool truncate = true) + { + lock (sync) foreach (var value in secrets.OrderByDescending(s => s.Length)) text = text.Replace(value, "", StringComparison.Ordinal); + text = Regex.Replace(text, @"(?i)(access[_-]?token|refresh[_-]?token|client[_-]?token|password|authorization|rpc[_-]?secret)(\s*[:=]\s*|\s+)([^\s,;]+)", "$1$2", RegexOptions.CultureInvariant, TimeSpan.FromSeconds(1)); + text = Regex.Replace(text, @"(?i)Bearer\s+[^\s]+", "Bearer ", RegexOptions.CultureInvariant, TimeSpan.FromSeconds(1)); + return truncate && text.Length > 16384 ? text[..16384] + "…[truncated]" : text; + } +} diff --git a/src/SHOU.Launcher.Core/Downloads/Aria2RpcConnection.cs b/src/SHOU.Launcher.Core/Downloads/Aria2RpcConnection.cs new file mode 100644 index 00000000..5a888f99 --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/Aria2RpcConnection.cs @@ -0,0 +1,58 @@ +using System.Text; +using PCL.Core.Conduit; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Downloads; + +/// Port-based connection only. No executable discovery, child processes or service ownership. +public sealed class Aria2RpcConnection +{ + private static readonly HttpClient LocalHttp = new(new SocketsHttpHandler { UseProxy = false, AllowAutoRedirect = false, + ConnectTimeout = TimeSpan.FromSeconds(2), PooledConnectionLifetime = TimeSpan.FromMinutes(5) }) { Timeout = TimeSpan.FromSeconds(10) }; + private readonly SemaphoreSlim gate = new(1, 1); + private long revision = -1; + private DateTimeOffset expires; + private Aria2RpcClient? client; + private Aria2ConnectionStatus status = new(false, "尚未连接,将使用内置下载器。", "http://localhost:6800/jsonrpc"); + public async Task ConnectAsync(NetworkOptions network, NetworkConfiguration configuration, CancellationToken ct = default, bool force = false) + { + await gate.WaitAsync(ct).ConfigureAwait(false); + try + { + if (!force && revision == configuration.Revision && DateTimeOffset.UtcNow < expires) return client; + revision = configuration.Revision; client = null; + var endpointText = configuration.Aria2.Endpoint; + try + { + var endpoint = Aria2RpcClient.ParseEndpoint(endpointText); + if (!endpoint.IsLoopback) throw new ArgumentException("仅支持本机 RPC。"); + var secret = ""; + if (configuration.Aria2.CredentialKey is { Length: > 0 } key) + { + var bytes = await (network.Credentials ?? throw new CredentialStoreException(CredentialFailure.Unavailable, "安全存储不可用。")).ReadAsync(key, ct).ConfigureAwait(false) + ?? throw new CredentialStoreException(CredentialFailure.Unavailable, "未找到 RPC 密钥。"); + try { secret = Encoding.UTF8.GetString(bytes); } finally { System.Security.Cryptography.CryptographicOperations.ZeroMemory(bytes); } + } + var rpc = new Aria2RpcClient(LocalHttp, endpoint, secret); + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(2)); + var version = await rpc.GetVersionAsync(timeout.Token).ConfigureAwait(false); + if (version is "未知版本" or "" || version.Length > 64 || version.Any(char.IsControl)) throw new IOException("RPC 版本响应无效。"); + client = rpc; status = new(true, "已连接 Aria2,下载优先使用此连接。", endpointText, version); expires = DateTimeOffset.UtcNow.AddSeconds(10); + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is IOException or HttpRequestException or ArgumentException or OperationCanceledException or CredentialStoreException or System.Text.Json.JsonException or InvalidOperationException) + { status = new(false, "Aria2 未连接或认证未通过,将使用内置下载器。请先启动 RPC 并核对地址、密钥。", endpointText); expires = DateTimeOffset.UtcNow.AddSeconds(3); } + return client; + } + finally { gate.Release(); } + } + public async Task TestAsync(NetworkOptions network, CancellationToken ct = default) + { _ = await ConnectAsync(network, network.Capture(), ct, force: true).ConfigureAwait(false); return status; } + public async Task MarkUnavailableAsync(long failedRevision) + { + await gate.WaitAsync().ConfigureAwait(false); + try { if (revision == failedRevision) { client = null; expires = DateTimeOffset.UtcNow.AddSeconds(3); } } + finally { gate.Release(); } + } + +} diff --git a/src/SHOU.Launcher.Core/Downloads/CallbackProgress.cs b/src/SHOU.Launcher.Core/Downloads/CallbackProgress.cs new file mode 100644 index 00000000..ab1d5d7d --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/CallbackProgress.cs @@ -0,0 +1,4 @@ +namespace SHOU.Launcher.Core.Downloads; + +internal sealed class CallbackProgress(Action callback) : IProgress +{ public void Report(T value) => callback(value); } diff --git a/src/SHOU.Launcher.Core/Downloads/DnsOverHttpsConnector.cs b/src/SHOU.Launcher.Core/Downloads/DnsOverHttpsConnector.cs new file mode 100644 index 00000000..f7de98f0 --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/DnsOverHttpsConnector.cs @@ -0,0 +1,42 @@ +using System.Net; +using System.Net.Sockets; +using System.Text.Json; + +namespace SHOU.Launcher.Core.Downloads; + +public static class DnsOverHttpsConnector +{ + private static readonly HttpClient Dns = new(new SocketsHttpHandler { UseProxy = false, AllowAutoRedirect = false, ConnectTimeout = TimeSpan.FromSeconds(3) }) { Timeout = TimeSpan.FromSeconds(5) }; + public static async Task> ResolveAsync(string host, HttpClient? client = null, CancellationToken ct = default) + { + if (IPAddress.TryParse(host, out var literal)) return [literal]; + if (!host.Contains('.') || host.EndsWith(".local", StringComparison.OrdinalIgnoreCase) || host.EndsWith(".lan", StringComparison.OrdinalIgnoreCase)) return await System.Net.Dns.GetHostAddressesAsync(host, ct); + using var response = await (client ?? Dns).GetAsync("https://dns.google/resolve?name=" + Uri.EscapeDataString(host) + "&type=A", HttpCompletionOption.ResponseHeadersRead, ct); + response.EnsureSuccessStatusCode(); + if (response.Content.Headers.ContentLength > 65536) throw new InvalidDataException("DNS response too large."); + await using var input = await response.Content.ReadAsStreamAsync(ct); using var data = new MemoryStream(); var buffer = new byte[4096]; int count; + while ((count = await input.ReadAsync(buffer, ct)) > 0) { if (data.Length + count > 65536) throw new InvalidDataException("DNS response too large."); data.Write(buffer, 0, count); } + using var json = JsonDocument.Parse(data.ToArray()); List addresses = []; + if (json.RootElement.TryGetProperty("Answer", out var answers)) + foreach (var answer in answers.EnumerateArray().Take(32)) + if (answer.TryGetProperty("type", out var type) && type.GetInt32() is 1 or 28 && IPAddress.TryParse(answer.GetProperty("data").GetString(), out var address)) addresses.Add(address); + if (addresses.Count == 0) throw new IOException("DNS response did not include an address."); + return addresses; + } + public static async ValueTask ConnectAsync(SocketsHttpConnectionContext context, CancellationToken ct) + { + IReadOnlyList addresses; + try { addresses = await ResolveAsync(context.DnsEndPoint.Host, ct: ct); } + catch (Exception ex) when (ex is HttpRequestException or IOException or JsonException or TaskCanceledException && !ct.IsCancellationRequested) + { addresses = await System.Net.Dns.GetHostAddressesAsync(context.DnsEndPoint.Host, ct); } + Exception? failure = null; + foreach (var address in addresses) + { + var socket = new Socket(address.AddressFamily, SocketType.Stream, ProtocolType.Tcp); + try { await socket.ConnectAsync(new IPEndPoint(address, context.DnsEndPoint.Port), ct); return new NetworkStream(socket, true); } + catch (Exception ex) when (ex is SocketException or IOException) { failure = ex; socket.Dispose(); } + catch { socket.Dispose(); throw; } + } + throw new IOException("No DNS address could be connected.", failure); + } +} diff --git a/src/SHOU.Launcher.Core/Downloads/DownloadActivityTracker.cs b/src/SHOU.Launcher.Core/Downloads/DownloadActivityTracker.cs new file mode 100644 index 00000000..3cedf711 --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/DownloadActivityTracker.cs @@ -0,0 +1,73 @@ +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Downloads; + +/// Incremental full-session accounting. Replacing a task never double-counts it. +/// History stores at most 50 operation summaries; detail-row eviction does not affect totals. +internal sealed class DownloadActivityTracker +{ + private readonly object sync = new(); + private readonly Accumulator session = new(); + private Accumulator batch = new(); + private DownloadActivitySnapshot? activity; + private DownloadActivitySnapshot? lastPublished; + private readonly List history = []; + internal void Begin(string name) + { + lock (sync) + { + batch = new(); + activity = new(Guid.NewGuid().ToString("N"), name, "Running", DateTimeOffset.UtcNow, null, new()); + } + } + internal void Report(DownloadTaskSnapshot task) + { + lock (sync) + { + session.Report(task); batch.Report(task); + if (activity is not null) lastPublished = activity = activity with { Statistics = batch.Value }; + } + } + internal void Complete(string state) + { + lock (sync) + { + if (activity is not null && batch.Value.Files > 0) + { + lastPublished = activity with { State = state, EndedAt = DateTimeOffset.UtcNow, Statistics = batch.Value }; + history.Add(lastPublished); if (history.Count > 50) history.RemoveAt(0); + } + activity = null; + } + } + internal (DownloadStatistics Totals, DownloadActivitySnapshot? Activity, IReadOnlyList History) Capture() + { lock (sync) return (session.Value, lastPublished, history.AsEnumerable().Reverse().ToArray()); } + + private sealed class Accumulator + { + private readonly Dictionary tasks = new(StringComparer.Ordinal); + internal DownloadStatistics Value { get; private set; } = new(); + internal void Report(DownloadTaskSnapshot task) + { + if (tasks.TryGetValue(task.Id, out var previous)) Adjust(previous, -1); + tasks[task.Id] = task; Adjust(task, 1); + } + private void Adjust(DownloadTaskSnapshot task, int sign) + { + var pending = task.State is "Queued" or "Downloading" or "Verifying" or "Retrying"; + var total = task.TotalBytes is >= 0 ? task.TotalBytes : task.State == "Completed" ? Math.Max(0, task.BytesReceived) : (long?)null; + var ready = Math.Max(0, task.BytesReceived); if (total is { } maximum) ready = Math.Min(ready, maximum); + int Count(bool flag) => flag ? sign : 0; + Value = Value with + { + Files = Value.Files + sign, Completed = Value.Completed + Count(task.State == "Completed"), + Failed = Value.Failed + Count(task.State == "Failed"), Cancelled = Value.Cancelled + Count(task.State == "Cancelled"), + Pending = Value.Pending + Count(pending), Downloading = Value.Downloading + Count(task.State == "Downloading"), + Verifying = Value.Verifying + Count(task.State == "Verifying"), UnknownSizes = Value.UnknownSizes + Count(total is null), + ReadyBytes = Value.ReadyBytes + sign * ready, KnownTotalBytes = Value.KnownTotalBytes + sign * (total ?? 0), + CachedBytes = Value.CachedBytes + (task.State == "Completed" && task.Source == "cache" ? sign * ready : 0), + Connections = Value.Connections + (task.State == "Downloading" ? sign * Math.Clamp(task.Connections, 0, 64) : 0) + }; + } + } +} diff --git a/src/SHOU.Launcher.Core/Downloads/DownloadBudget.cs b/src/SHOU.Launcher.Core/Downloads/DownloadBudget.cs new file mode 100644 index 00000000..f70dd521 --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/DownloadBudget.cs @@ -0,0 +1,52 @@ + +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Downloads; + +/// One shared budget across verified transfers; cancellation also applies while queued or throttled. +public sealed class DownloadBudget +{ + private readonly object sync = new(); + private int active; + private TaskCompletionSource available = new(TaskCreationOptions.RunContinuationsAsynchronously); + private readonly SemaphoreSlim bandwidth = new(1, 1); + public Task EnterAsync(int maximum, CancellationToken ct) => EnterAsync(maximum, 1, ct); + public async Task EnterAsync(int maximum, int connections, CancellationToken ct) + { + maximum = Math.Clamp(maximum, 1, DownloadDefaults.MaximumConnections); connections = Math.Clamp(connections, 1, maximum); + while (true) + { + ct.ThrowIfCancellationRequested(); + Task wait; + lock (sync) + { + if (active + connections <= maximum) { active += connections; return new Lease(this, connections); } + wait = available.Task; + } + await wait.WaitAsync(ct).ConfigureAwait(false); + } + } + public async Task ThrottleAsync(int count, int kibPerSecond, CancellationToken ct) + { + if (kibPerSecond <= 0) return; + await bandwidth.WaitAsync(ct).ConfigureAwait(false); + try { await Task.Delay(TimeSpan.FromSeconds(count / (kibPerSecond * 1024d)), ct).ConfigureAwait(false); } + finally { bandwidth.Release(); } + } + private sealed class Lease(DownloadBudget owner, int connections) : IDisposable + { + private int disposed; + public void Dispose() + { + if (Interlocked.Exchange(ref disposed, 1) != 0) return; + TaskCompletionSource signal; + lock (owner.sync) + { + owner.active -= connections; + signal = owner.available; + owner.available = new(TaskCreationOptions.RunContinuationsAsynchronously); + } + signal.TrySetResult(); + } + } +} diff --git a/src/SHOU.Launcher.Core/Downloads/DownloadCoordinator.cs b/src/SHOU.Launcher.Core/Downloads/DownloadCoordinator.cs new file mode 100644 index 00000000..de9081e5 --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/DownloadCoordinator.cs @@ -0,0 +1,101 @@ +using System.Text; +using System.Collections.Concurrent; +using PCL.Core.Conduit; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Downloads; + +/// Optional external RPC, with verified local output and internal fallback. +public sealed class DownloadCoordinator(HttpClient http, IVerifiedDownloader internalDownloader, NetworkOptions options, + Action? onWarning = null, bool policyHandledByTransport = false) : IVerifiedDownloader +{ + private static readonly ConcurrentDictionary Locks = new( + OperatingSystem.IsWindows() ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); + public async Task DownloadAsync(DownloadRequest request, IProgress? progress = null, CancellationToken cancellationToken = default) + { + ArgumentNullException.ThrowIfNull(http); + var configuration = options.Capture(); + // Catalogs without a checksum must be fetched fresh; do not hand them to a resumable daemon. + var reason = !configuration.Aria2.Enabled ? null : request.Sha1 is null && request.Sha256 is null ? "无哈希目录使用内置下载器" : + !policyHandledByTransport && configuration.Downloads is { MaximumKiBPerSecond: > 0 } ? "全局限速由内置下载器统一执行" : + !policyHandledByTransport && configuration.Downloads?.HttpsOnly == true ? "严格 HTTPS 策略由内置下载器执行" : null; + IProgress InternalProgress(string? detail) => new CallbackProgress(p => + progress?.Report(p with { Backend = "内置", Detail = p.Detail ?? detail })); + if (!configuration.Aria2.Enabled || reason is not null) + { await internalDownloader.DownloadAsync(request, InternalProgress(reason), cancellationToken).ConfigureAwait(false); return; } + if (request.Sources.Count == 0 || request.Sources.Any(uri => uri.Scheme is not ("http" or "https") || !string.IsNullOrEmpty(uri.UserInfo))) + throw new ArgumentException("Only HTTP(S) downloads without URL credentials are supported."); + var destination = Path.GetFullPath(request.DestinationPath); + var rpcStaging = destination + ".aria2-part"; + var leasePath = destination + ".coordinator.lock"; + void CheckPaths() + { + foreach (var path in new[] { destination, rpcStaging, rpcStaging + ".aria2", leasePath }) VerifiedDownloader.RejectLink(path); + } + CheckPaths(); + var gate = Locks.GetOrAdd(destination, _ => new SemaphoreSlim(1, 1)); + await gate.WaitAsync(cancellationToken).ConfigureAwait(false); + try + { + Directory.CreateDirectory(Path.GetDirectoryName(destination)!); + CheckPaths(); + await using var lease = new FileStream(leasePath, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None); + if (await VerifiedDownloader.IsValidAsync(request.DestinationPath, request, cancellationToken).ConfigureAwait(false)) + { progress?.Report(new(destination, "Completed", new FileInfo(destination).Length, request.Size, "cache", "缓存")); return; } + if (await LocalDownloadReuse.TryImportAsync(request, progress, cancellationToken).ConfigureAwait(false)) return; + try + { + progress?.Report(new(destination, "Queued", 0, request.Size, "aria2", "aria2", "等待全局下载名额")); + var maximum = Math.Clamp(configuration.Downloads?.MaximumConnections ?? DownloadDefaults.Connections, 1, DownloadDefaults.MaximumConnections); + var connections = request.Size is >= 16 * 1024 * 1024 ? Math.Min(4, maximum) : 1; + using var budget = await options.Budget.EnterAsync(maximum, connections, cancellationToken).ConfigureAwait(false); + var rpc = await options.Aria2Connection.ConnectAsync(options, configuration, cancellationToken).ConfigureAwait(false); + if (rpc is null) throw new IOException("本机 Aria2 RPC 未连接。"); + var transportOptions = await ProxyOptionsAsync(request.Sources, configuration, cancellationToken).ConfigureAwait(false); + await rpc.DownloadAsync(request.Sources.Select(s => s.AbsoluteUri).ToArray(), rpcStaging, "SHOU-Launcher/1.6.2", + value => progress?.Report(new(request.DestinationPath, "Downloading", value.Completed, value.Total, "aria2", "aria2", $"{value.Connections} 个连接 · {value.Speed / 1024d:0.0} KiB/s", value.Connections)), cancellationToken, connections, transportOptions).ConfigureAwait(false); + progress?.Report(new(destination, "Verifying", new FileInfo(rpcStaging).Length, request.Size, "aria2", "aria2", "本机校验大小与哈希")); + if (!await VerifiedDownloader.IsValidAsync(rpcStaging, request, cancellationToken).ConfigureAwait(false)) throw new InvalidDataException("aria2 output failed local size/hash verification."); + CheckPaths(); + File.Move(rpcStaging, destination, true); + await rpc.ForgetCompletedAsync(rpcStaging, cancellationToken).ConfigureAwait(false); + progress?.Report(new(request.DestinationPath, "Completed", new FileInfo(request.DestinationPath).Length, request.Size, "aria2", "aria2")); + return; + } + catch (OperationCanceledException) when (cancellationToken.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is IOException or InvalidDataException or HttpRequestException or OperationCanceledException or CredentialStoreException or System.Text.Json.JsonException or ArgumentException or TimeoutException or UnauthorizedAccessException or InvalidOperationException) + { + if (ex is HttpRequestException or OperationCanceledException or Aria2RpcException) + await options.Aria2Connection.MarkUnavailableAsync(configuration.Revision).ConfigureAwait(false); + onWarning?.Invoke("aria2不可用或本机输出验证失败,使用内部下载器;原因类型:" + (ex is Aria2RpcException failure ? $"RPC {failure.Code} / {failure.Data["method"]}" : ex.GetType().Name)); } + await internalDownloader.DownloadAsync(request, InternalProgress("aria2 不可用或产物未通过校验,已回退内置下载器"), cancellationToken).ConfigureAwait(false); + } + finally { gate.Release(); } + } + private async Task> ProxyOptionsAsync(IReadOnlyList sources, NetworkConfiguration configuration, CancellationToken ct) + { + var result = new Dictionary { ["all-proxy"] = "", ["no-proxy"] = "127.0.0.1,localhost,::1" }; + if (sources.All(s => s.IsLoopback) || configuration.Proxy.Mode == ProxyMode.Direct) return result; + Uri? proxy = null; + if (configuration.Proxy.Mode == ProxyMode.Custom) proxy = new Uri(configuration.Proxy.Address!); + else + { + var proxies = sources.Select(s => s.IsLoopback || System.Net.Http.HttpClient.DefaultProxy.IsBypassed(s) + ? null : System.Net.Http.HttpClient.DefaultProxy.GetProxy(s)).Distinct().ToArray(); + if (proxies.Length > 1) throw new IOException("来源使用不同系统代理规则,转内置传输。"); + proxy = proxies.SingleOrDefault(); + } + if (proxy is null) return result; + if (proxy.Scheme is not ("http" or "https")) throw new IOException("系统代理协议转由内置传输执行。"); + result["all-proxy"] = proxy.GetComponents(UriComponents.SchemeAndServer, UriFormat.UriEscaped); + if (configuration.Proxy.Mode == ProxyMode.Custom && configuration.Proxy.CredentialKey is { Length: > 0 } key) + { + var bytes = await (options.Credentials ?? throw new CredentialStoreException(CredentialFailure.Unavailable, "安全存储不可用。")).ReadAsync(key, ct).ConfigureAwait(false) + ?? throw new CredentialStoreException(CredentialFailure.Unavailable, "代理凭据缺失。"); + try { var credential = Encoding.UTF8.GetString(bytes); var colon = credential.IndexOf(':'); if (colon < 0) throw new IOException("代理凭据格式无效。"); result["all-proxy-user"] = credential[..colon]; result["all-proxy-passwd"] = credential[(colon + 1)..]; } + finally { System.Security.Cryptography.CryptographicOperations.ZeroMemory(bytes); } + } + return result; + } + +} diff --git a/src/SHOU.Launcher.Core/Downloads/DownloadRateMeter.cs b/src/SHOU.Launcher.Core/Downloads/DownloadRateMeter.cs new file mode 100644 index 00000000..82ede029 --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/DownloadRateMeter.cs @@ -0,0 +1,29 @@ +using System.Diagnostics; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Downloads; + +/// Trailing one-second network bytes across short and parallel transfers; cache hits and resume offsets are excluded. +internal sealed class DownloadRateMeter(Func? clock = null) +{ + private readonly Stopwatch timer = Stopwatch.StartNew(); + private readonly object sync = new(); + private readonly Dictionary received = new(StringComparer.Ordinal); + private readonly Queue<(TimeSpan At, long Bytes)> samples = new(); + private long bytes; + internal double Report(TransferProgress progress) + { + lock (sync) + { + var now = clock?.Invoke() ?? timer.Elapsed; + while (samples.TryPeek(out var old) && now - old.At >= TimeSpan.FromSeconds(1)) { bytes -= samples.Dequeue().Bytes; } + var previous = received.GetValueOrDefault(progress.Id); + var network = progress.Source != "cache" && (progress.Stage == "Downloading" || progress.Stage == "Completed" && !string.IsNullOrWhiteSpace(progress.Source)); + var delta = network ? Math.Max(0, progress.BytesReceived - previous) : 0; + if (delta > 0) { samples.Enqueue((now, delta)); bytes += delta; } + received[progress.Id] = Math.Max(0, progress.BytesReceived); + return bytes; + } + } + internal void Reset() { lock (sync) { received.Clear(); samples.Clear(); bytes = 0; } } +} diff --git a/src/SHOU.Launcher.Core/Downloads/DownloadTaskRegistry.cs b/src/SHOU.Launcher.Core/Downloads/DownloadTaskRegistry.cs new file mode 100644 index 00000000..8f17eec0 --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/DownloadTaskRegistry.cs @@ -0,0 +1,26 @@ +using System.Collections.Concurrent; +using System.Security.Cryptography; +using System.Text; + +namespace SHOU.Launcher.Core.Downloads; + +public sealed record DownloadOwnership(string InstanceId, string Generation); +public sealed class DownloadTaskRegistry +{ + private readonly ConcurrentDictionary owners = new(StringComparer.Ordinal); + private DownloadOwnership? active; + public DownloadOwnership Begin(string instanceId) => active = new(instanceId, Guid.NewGuid().ToString("N")); + public string Register(string transferId) + { + var current = active ?? throw new InvalidOperationException("No active installation owns this transfer."); + var id = current.Generation + ":" + Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(transferId)))[..16].ToLowerInvariant(); + owners[id] = current; return id; + } + public DownloadOwnership Resolve(string taskId) => owners.TryGetValue(taskId, out var owner) ? owner : throw new KeyNotFoundException("找不到此下载任务的所属实例。"); + public void RequireActive(string taskId) + { + var owner = Resolve(taskId); + if (active?.Generation != owner.Generation) throw new InvalidOperationException("此下载任务已结束,不能取消另一轮安装。"); + } + public void End(DownloadOwnership owner) { if (active?.Generation == owner.Generation) active = null; } +} diff --git a/src/SHOU.Launcher.Core/Downloads/InformationRedirectHandler.cs b/src/SHOU.Launcher.Core/Downloads/InformationRedirectHandler.cs new file mode 100644 index 00000000..835ad01f --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/InformationRedirectHandler.cs @@ -0,0 +1,24 @@ +namespace SHOU.Launcher.Core.Downloads; + +/// Anonymous public information and release downloads, with explicit HTTPS redirects. +public sealed class InformationRedirectHandler(HttpMessageHandler inner) : DelegatingHandler(inner) +{ + protected override async Task SendAsync(HttpRequestMessage request, CancellationToken ct) + { + var origin = request.RequestUri ?? throw new InvalidDataException("Missing public request URI."); + var current = origin; + for (var hop = 0; hop <= 5; hop++) + { + if (current.Scheme != "https" || !string.IsNullOrEmpty(current.UserInfo)) throw new InvalidDataException("Public request requires HTTPS without credentials."); + if (current.Host != origin.Host && !(origin.Host == "github.com" && origin.AbsolutePath.StartsWith("/Conduit-Club/SHOU-Launcher/releases/download/", StringComparison.Ordinal) + && current.Host is "release-assets.githubusercontent.com" or "objects.githubusercontent.com")) throw new InvalidDataException("Unexpected public download redirect."); + using var next = new HttpRequestMessage(request.Method, current); + foreach (var name in new[] { "User-Agent", "Accept", "Range", "If-Range" }) if (request.Headers.TryGetValues(name, out var values)) next.Headers.TryAddWithoutValidation(name, values); + var response = await base.SendAsync(next, ct); + if ((int)response.StatusCode is not (301 or 302 or 303 or 307 or 308)) return response; + if (hop == 5 || response.Headers.Location is not { } location) { response.Dispose(); throw new InvalidDataException("Too many public request redirects."); } + current = location.IsAbsoluteUri ? location : new Uri(current, location); response.Dispose(); + } + throw new InvalidDataException("Too many public request redirects."); + } +} diff --git a/src/SHOU.Launcher.Core/Downloads/InstalledFileReader.cs b/src/SHOU.Launcher.Core/Downloads/InstalledFileReader.cs new file mode 100644 index 00000000..c18d773b --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/InstalledFileReader.cs @@ -0,0 +1,14 @@ +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Downloads; + +/// A repeat launch can inspect immutable cached files, never repair them beneath a live game. +internal sealed class InstalledFileReader : IVerifiedDownloader +{ + public async Task DownloadAsync(DownloadRequest request, IProgress? progress = null, CancellationToken cancellationToken = default) + { + if (!await VerifiedDownloader.IsValidAsync(request.DestinationPath, request, cancellationToken).ConfigureAwait(false)) + throw new IOException("运行中的实例缺少完整的已校验基础文件;请先退出此实例的所有游戏窗口,再补全文件。"); + progress?.Report(new(request.DestinationPath, "Completed", new FileInfo(request.DestinationPath).Length, request.Size, "cache")); + } +} diff --git a/src/SHOU.Launcher.Core/Downloads/LocalDownloadReuse.cs b/src/SHOU.Launcher.Core/Downloads/LocalDownloadReuse.cs new file mode 100644 index 00000000..afd1b64f --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/LocalDownloadReuse.cs @@ -0,0 +1,56 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Downloads; + +/// Caller holds the destination download lease. Original game files are read-only. +internal static class LocalDownloadReuse +{ + internal static async Task TryImportAsync(DownloadRequest request, IProgress? progress, CancellationToken ct) + { + if (request.LocalSources is not { Count: > 0 } sources || sources.Count > 64 + || request.Sha1 is null && request.Sha256 is null && !request.ReuseWithoutHash) return false; + foreach (var candidate in sources) + { + ct.ThrowIfCancellationRequested(); string? temporary = null; + try + { + VerifiedDownloader.RejectLink(candidate.Root); + var source = SafePath.Within(candidate.Root, candidate.RelativePath); + VerifiedDownloader.RejectLink(source); + if (!File.Exists(source)) continue; + await using var input = new FileStream(source, FileMode.Open, FileAccess.Read, FileShare.Read, 65536, + FileOptions.Asynchronous | FileOptions.SequentialScan); + if (request.Size is { } size && input.Length != size) continue; + VerifiedDownloader.RejectLink(request.DestinationPath); + temporary = request.DestinationPath + ".reuse-" + Guid.NewGuid().ToString("N") + ".tmp"; + progress?.Report(new(request.DestinationPath, "Verifying", 0, request.Size, "cache", "缓存", "校验旧目录中的已有文件")); + using var hash = new TransferHash(request); + long copied = 0; + await using (var output = new FileStream(temporary, FileMode.CreateNew, FileAccess.Write, FileShare.None, 131072, FileOptions.Asynchronous)) + { + var buffer = new byte[131072]; + while (true) + { + var count = await input.ReadAsync(buffer, ct).ConfigureAwait(false); + if (count == 0) break; + await output.WriteAsync(buffer.AsMemory(0, count), ct).ConfigureAwait(false); + hash.Append(buffer.AsSpan(0, count)); copied += count; + } + } + if (!hash.Matches(copied)) continue; + ct.ThrowIfCancellationRequested(); VerifiedDownloader.RejectLink(request.DestinationPath); + File.Move(temporary, request.DestinationPath, true); temporary = null; + progress?.Report(new(request.DestinationPath, "Completed", input.Length, request.Size, "cache", "缓存", "已复用旧目录文件")); + return true; + } + catch (Exception ex) when (ex is IOException or InvalidDataException or UnauthorizedAccessException or ArgumentException or NotSupportedException) + { /* An unavailable or unverifiable old file falls back to the verified network transport. */ } + finally + { + if (temporary is not null) { VerifiedDownloader.RejectLink(temporary); if (File.Exists(temporary)) File.Delete(temporary); } + } + } + return false; + } +} diff --git a/src/SHOU.Launcher.Core/Downloads/NetworkOptions.cs b/src/SHOU.Launcher.Core/Downloads/NetworkOptions.cs new file mode 100644 index 00000000..5110882f --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/NetworkOptions.cs @@ -0,0 +1,66 @@ +using System.Net; +using System.Text; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Downloads; + +public sealed class NetworkOptions +{ + private NetworkConfiguration current = new(new(), new(), 0); + public ProxySettings Proxy => Capture().Proxy; + public Aria2Settings Aria2 => Capture().Aria2; + public ICredentialStore? Credentials { get; set; } + public DownloadBudget Budget { get; } = new(); + public Aria2RpcConnection Aria2Connection { get; } = new(); + public void Update(LauncherSettings settings) => Volatile.Write(ref current, new(settings.Proxy ?? new(), settings.Aria2 ?? new(), Interlocked.Increment(ref revision), settings.Downloads ?? new(), settings.Launcher)); + private long revision; + public NetworkConfiguration Capture() => Volatile.Read(ref current); +} +public sealed record NetworkConfiguration(ProxySettings Proxy, Aria2Settings Aria2, long Revision, DownloadBehavior? Downloads = null, LauncherBehavior? Launcher = null); + +/// System/Direct/Custom are handled without any legacy Windows registry initialization. +public sealed class ConfigurableNetworkHandler(NetworkOptions options, bool allowAutoRedirect = true) : HttpMessageHandler +{ + private readonly SemaphoreSlim gate = new(1, 1); + private readonly Dictionary clients = []; + protected override async Task SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) + { + var configuration = options.Capture(); + var revision = configuration.Revision; + HttpMessageInvoker invoker; + await gate.WaitAsync(cancellationToken).ConfigureAwait(false); + try + { + if (!clients.TryGetValue(revision, out invoker!)) + { + var proxySettings = configuration.Proxy; + IWebProxy? proxy = null; + if (proxySettings.Mode == ProxyMode.Custom) + { + proxy = new WebProxy(proxySettings.Address ?? throw new InvalidOperationException("Custom proxy address is missing.")); + if (proxySettings.CredentialKey is { Length: > 0 } key) + { + var raw = await (options.Credentials ?? throw new CredentialStoreException(CredentialFailure.Unavailable, "Credential store unavailable.")).ReadAsync(key, cancellationToken).ConfigureAwait(false); + if (raw is null) throw new CredentialStoreException(CredentialFailure.Unavailable, "Proxy credential is missing."); + var text = Encoding.UTF8.GetString(raw); var split = text.IndexOf(':'); + if (split < 0) throw new CredentialStoreException(CredentialFailure.Corrupt, "Proxy credential must use username:password format."); + proxy.Credentials = new NetworkCredential(text[..split], text[(split + 1)..]); + System.Security.Cryptography.CryptographicOperations.ZeroMemory(raw); + } + } + var handler = new SocketsHttpHandler { UseProxy = proxySettings.Mode != ProxyMode.Direct, Proxy = proxy, AllowAutoRedirect = allowAutoRedirect, + ConnectTimeout = TimeSpan.FromSeconds(15), PooledConnectionLifetime = TimeSpan.FromMinutes(5), + AutomaticDecompression = DecompressionMethods.All }; + if (configuration.Launcher?.UseDnsOverHttps == true && proxySettings.Mode == ProxyMode.Direct) handler.ConnectCallback = DnsOverHttpsConnector.ConnectAsync; + invoker = new HttpMessageInvoker(handler, true); clients.Add(revision, invoker); + } + } + finally { gate.Release(); } + return await invoker.SendAsync(request, cancellationToken).ConfigureAwait(false); + } + protected override void Dispose(bool disposing) + { + if (disposing) { foreach (var client in clients.Values) client.Dispose(); gate.Dispose(); } + base.Dispose(disposing); + } +} diff --git a/src/SHOU.Launcher.Core/Downloads/RestrictedDownloadRelay.cs b/src/SHOU.Launcher.Core/Downloads/RestrictedDownloadRelay.cs new file mode 100644 index 00000000..bb10d6a6 --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/RestrictedDownloadRelay.cs @@ -0,0 +1,117 @@ +using System.Collections.Concurrent; +using System.Net; +using System.Net.Http.Headers; +using System.Net.Sockets; +using System.Security.Cryptography; +using System.Text; + +namespace SHOU.Launcher.Core.Downloads; + +/// A single fixed resource through its existing allowlisted transport. No arbitrary URL proxy or credentials. +internal sealed class RestrictedDownloadRelay : IAsyncDisposable +{ + private readonly HttpClient transport; + private readonly Uri source; + private readonly long size; + private readonly NetworkOptions network; + private readonly SemaphoreSlim slots = new(8, 8); + private readonly TcpListener listener = new(IPAddress.Loopback, 0); + private readonly CancellationTokenSource lifetime = new(); + private readonly ConcurrentDictionary requests = new(); + private readonly Task accepting; + private int next; + private readonly string route = "/" + Convert.ToHexStringLower(RandomNumberGenerator.GetBytes(32)) + "/file"; + public Uri Uri { get; } + public RestrictedDownloadRelay(HttpClient transport, Uri source, long size, NetworkOptions network) + { + this.transport = transport; this.source = source; this.size = size; this.network = network; + listener.Start(); Uri = new($"http://127.0.0.1:{((IPEndPoint)listener.LocalEndpoint).Port}{route}"); + accepting = AcceptAsync(); + } + private async Task AcceptAsync() + { + try + { + while (!lifetime.IsCancellationRequested) + { + await slots.WaitAsync(lifetime.Token).ConfigureAwait(false); + TcpClient client; + try { client = await listener.AcceptTcpClientAsync(lifetime.Token).ConfigureAwait(false); } + catch { slots.Release(); throw; } + var id = Interlocked.Increment(ref next); var task = ServeLimitedAsync(client); + requests[id] = task; + _ = task.ContinueWith(_ => requests.TryRemove(id, out var ignored), TaskScheduler.Default); + } + } + catch (OperationCanceledException) when (lifetime.IsCancellationRequested) { } + catch (SocketException) when (lifetime.IsCancellationRequested) { } + } + private async Task ServeLimitedAsync(TcpClient client) + { try { await ServeAsync(client).ConfigureAwait(false); } finally { slots.Release(); } } + private async Task ServeAsync(TcpClient client) + { + using (client) + { + var stream = client.GetStream(); + try + { + using var headerTimeout = CancellationTokenSource.CreateLinkedTokenSource(lifetime.Token); headerTimeout.CancelAfter(TimeSpan.FromSeconds(15)); + var data = new byte[16384]; var count = 0; + // Read only through the header boundary; never accept a request body or a persistent pipeline. + while (count < data.Length) + { + var read = await stream.ReadAsync(data.AsMemory(count, 1), headerTimeout.Token).ConfigureAwait(false); + if (read == 0) return; count++; + if (count >= 4 && data[count - 4] == 13 && data[count - 3] == 10 && data[count - 2] == 13 && data[count - 1] == 10) break; + } + if (count == data.Length) return; + var lines = Encoding.ASCII.GetString(data, 0, count).Split("\r\n"); var first = lines[0].Split(' '); + if (first.Length != 3 || first[1] != route || first[0] is not ("GET" or "HEAD") || first[2] != "HTTP/1.1") { await EmptyAsync(stream, 404).ConfigureAwait(false); return; } + var headers = new Dictionary(StringComparer.OrdinalIgnoreCase); + foreach (var line in lines.Skip(1).Where(l => l.Length > 0)) + { var colon = line.IndexOf(':'); if (colon <= 0 || !headers.TryAdd(line[..colon], line[(colon + 1)..].Trim())) { await EmptyAsync(stream, 400).ConfigureAwait(false); return; } } + if (!headers.TryGetValue("Host", out var host) || host != Uri.Authority || headers.ContainsKey("Transfer-Encoding") || headers.TryGetValue("Content-Length", out var body) && body != "0") + { await EmptyAsync(stream, 400).ConfigureAwait(false); return; } + using var request = new HttpRequestMessage(HttpMethod.Get, source); + if (headers.TryGetValue("Range", out var range)) + { + if (!RangeHeaderValue.TryParse(range, out var parsed) || parsed.Ranges.Count != 1 || parsed.Unit != "bytes" || parsed.Ranges.Any(r => r.From >= size || r.To >= size)) + { await EmptyAsync(stream, 416).ConfigureAwait(false); return; } + request.Headers.Range = parsed; + } + if (headers.TryGetValue("If-Range", out var validator)) + { if (!RangeConditionHeaderValue.TryParse(validator, out var parsed)) { await EmptyAsync(stream, 400).ConfigureAwait(false); return; } request.Headers.IfRange = parsed; } + using var response = await transport.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, headerTimeout.Token).ConfigureAwait(false); + if (response.StatusCode is not (HttpStatusCode.OK or HttpStatusCode.PartialContent)) { await EmptyAsync(stream, (int)response.StatusCode).ConfigureAwait(false); return; } + var contentRange = response.Content.Headers.ContentRange; + var length = response.Content.Headers.ContentLength ?? (response.StatusCode == HttpStatusCode.OK ? size : contentRange?.To - contentRange?.From + 1); + if (length is null or <= 0 || length > size || response.StatusCode == HttpStatusCode.PartialContent && (contentRange?.Length != size || contentRange.From is null || contentRange.To is null)) + { await EmptyAsync(stream, 502).ConfigureAwait(false); return; } + var reply = $"HTTP/1.1 {(int)response.StatusCode} OK\r\nConnection: close\r\nContent-Length: {length}\r\nAccept-Ranges: bytes\r\n"; + if (contentRange is not null) reply += "Content-Range: " + contentRange + "\r\n"; + if (response.Headers.ETag is { } etag) reply += "ETag: " + etag + "\r\n"; + if (response.Content.Headers.LastModified is { } modified) reply += "Last-Modified: " + modified.ToString("R") + "\r\n"; + await stream.WriteAsync(Encoding.ASCII.GetBytes(reply + "\r\n"), lifetime.Token).ConfigureAwait(false); + if (first[0] == "HEAD") return; + await using var input = await response.Content.ReadAsStreamAsync(lifetime.Token).ConfigureAwait(false); + var buffer = new byte[65536]; var remaining = length.Value; + while (remaining > 0) + { + using var idle = CancellationTokenSource.CreateLinkedTokenSource(lifetime.Token); idle.CancelAfter(TimeSpan.FromSeconds(30)); + var read = await input.ReadAsync(buffer.AsMemory(0, (int)Math.Min(buffer.Length, remaining)), idle.Token).ConfigureAwait(false); + if (read == 0) return; + await network.Budget.ThrottleAsync(read, network.Capture().Downloads?.MaximumKiBPerSecond ?? 0, idle.Token).ConfigureAwait(false); + await stream.WriteAsync(buffer.AsMemory(0, read), idle.Token).ConfigureAwait(false); remaining -= read; + } + } + catch (Exception ex) when (ex is IOException or SocketException or HttpRequestException or OperationCanceledException or InvalidOperationException) + { /* Closing a failed/short transfer lets aria2 retry; URLs, keys and response bodies never enter logs. */ } + } + } + private static Task EmptyAsync(NetworkStream stream, int status) => stream.WriteAsync(Encoding.ASCII.GetBytes($"HTTP/1.1 {status} Failed\r\nConnection: close\r\nContent-Length: 0\r\n\r\n")).AsTask(); + public async ValueTask DisposeAsync() + { + lifetime.Cancel(); listener.Stop(); await accepting.ConfigureAwait(false); + await Task.WhenAll(requests.Values).ConfigureAwait(false); lifetime.Dispose(); + } +} diff --git a/src/SHOU.Launcher.Core/Downloads/TransferHash.cs b/src/SHOU.Launcher.Core/Downloads/TransferHash.cs new file mode 100644 index 00000000..0d770f43 --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/TransferHash.cs @@ -0,0 +1,29 @@ +using System.Security.Cryptography; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Downloads; + +/// Hash the same bytes being written, including an existing contiguous resume prefix. +internal sealed class TransferHash(DownloadRequest request) : IDisposable +{ + private readonly IncrementalHash? sha1 = request.Sha1 is null ? null : IncrementalHash.CreateHash(HashAlgorithmName.SHA1); + private readonly IncrementalHash? sha256 = request.Sha256 is null ? null : IncrementalHash.CreateHash(HashAlgorithmName.SHA256); + internal void Append(ReadOnlySpan bytes) { sha1?.AppendData(bytes); sha256?.AppendData(bytes); } + internal async Task ReadPrefixAsync(Stream stream, long length, CancellationToken ct) + { + if (length == 0 || sha1 is null && sha256 is null) return; + stream.Position = 0; + var buffer = new byte[131072]; + for (long remaining = length; remaining > 0;) + { + var read = await stream.ReadAsync(buffer.AsMemory(0, (int)Math.Min(buffer.Length, remaining)), ct).ConfigureAwait(false); + if (read == 0) throw new EndOfStreamException("Download resume prefix is incomplete."); + Append(buffer.AsSpan(0, read)); remaining -= read; + } + } + internal bool Matches(long length) + => (request.Size is null || request.Size == length) + && (sha1 is null || Convert.ToHexString(sha1.GetHashAndReset()).Equals(request.Sha1, StringComparison.OrdinalIgnoreCase)) + && (sha256 is null || Convert.ToHexString(sha256.GetHashAndReset()).Equals(request.Sha256, StringComparison.OrdinalIgnoreCase)); + public void Dispose() { sha1?.Dispose(); sha256?.Dispose(); } +} diff --git a/src/SHOU.Launcher.Core/Downloads/VerifiedDownloader.Ranges.cs b/src/SHOU.Launcher.Core/Downloads/VerifiedDownloader.Ranges.cs new file mode 100644 index 00000000..5786153d --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/VerifiedDownloader.Ranges.cs @@ -0,0 +1,151 @@ +using System.Net; +using System.Net.Http.Headers; +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Downloads; + +public sealed partial class VerifiedDownloader +{ + private const int RangeChunkBytes = 1024 * 1024; + private const long RangeMinimumBytes = 8L * 1024 * 1024; + + // Keep only one window of chunks in memory and consume it in file order. This lets + // hashes run alongside writes, and a cancelled transfer leaves a resumable prefix. + private async Task TryDownloadRangesAsync(Uri uri, string destination, DownloadRequest request, DownloadBehavior policy, + IProgress? progress, CancellationToken ct) + { + if (request.Size is not { } size || size < RangeMinimumBytes || policy.MaximumConnections < 2 + || request.Sha1 is null && request.Sha256 is null) return false; + var part = destination + ".part"; var resumePath = part + ".resume.json"; + RejectLink(part); RejectLink(resumePath); + ResumeIdentity? identity = null; + if (File.Exists(resumePath)) + { + try { identity = JsonSerializer.Deserialize(await File.ReadAllTextAsync(resumePath, ct).ConfigureAwait(false)); } + catch (JsonException) { } + } + var sourceIdentity = "sha256:" + Convert.ToHexStringLower(SHA256.HashData(Encoding.UTF8.GetBytes(uri.AbsoluteUri))); + var sameSource = identity?.Url == sourceIdentity || identity?.Url == uri.AbsoluteUri; + var offset = request.AllowResume && sameSource && File.Exists(part) ? new FileInfo(part).Length : 0; + if (offset > size) offset = 0; + if (offset == size) + { + if (await IsValidAsync(part, request, ct).ConfigureAwait(false)) return true; + offset = 0; + } + var maximum = Math.Clamp(policy.MaximumConnections, 1, DownloadDefaults.MaximumConnections); + var connections = (int)Math.Min(Math.Min(DownloadDefaults.ConnectionsPerFile, maximum), (size - offset + RangeChunkBytes - 1) / RangeChunkBytes); + if (connections < 2) return false; + // Reserve the whole window at once: workers never hold one slot while waiting + // for the rest, which would deadlock when several large files start together. + using var lease = await Budget.EnterAsync(maximum, connections, ct).ConfigureAwait(false); + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); + var rate = policy.MaximumKiBPerSecond; + var idleTimeout = TimeSpan.FromMinutes(rate > 0 ? 30 : 3); + timeout.CancelAfter(idleTimeout); + using var probe = new HttpRequestMessage(HttpMethod.Get, uri); + probe.Headers.Range = new RangeHeaderValue(0, 0); + probe.Headers.AcceptEncoding.ParseAdd("identity"); + using var response = await http.SendAsync(probe, HttpCompletionOption.ResponseHeadersRead, timeout.Token).ConfigureAwait(false); + response.EnsureSuccessStatusCode(); + var range = response.Content.Headers.ContentRange; + if (response.StatusCode != HttpStatusCode.PartialContent || range?.From != 0 || range.To != 0 || range.Length != size + || response.Content.Headers.ContentEncoding.Any(e => !e.Equals("identity", StringComparison.OrdinalIgnoreCase))) return false; + await using (var probeStream = await response.Content.ReadAsStreamAsync(timeout.Token).ConfigureAwait(false)) + await probeStream.ReadExactlyAsync(new byte[1], timeout.Token).ConfigureAwait(false); + timeout.CancelAfter(Timeout.InfiniteTimeSpan); + var etag = response.Headers.ETag is { IsWeak: false } tag ? tag : null; + if (offset > 0 && identity?.ETag is { } previous && etag is not null && previous != etag.ToString()) offset = 0; + RejectLink(part); RejectLink(resumePath); + await WriteResumeAsync(resumePath, new(sourceIdentity, etag?.ToString()), timeout.Token).ConfigureAwait(false); + await using var output = OpenPart(part, offset > 0); + using var hash = new TransferHash(request); + await hash.ReadPrefixAsync(output, offset, timeout.Token).ConfigureAwait(false); + var queued = new Queue>(); + var all = new List>(connections); + long next = offset, written = offset, received = offset; + var active = 0; var progressSync = new object(); var lastProgress = DateTimeOffset.MinValue; + void Report(int count, bool force = false) + { + lock (progressSync) + { + received += count; + if (force || DateTimeOffset.UtcNow - lastProgress >= TimeSpan.FromMilliseconds(100)) + { + progress?.Report(new(destination, "Downloading", received, size, uri.Host, "内置", + $"分段下载 · {connections} 路", Math.Max(1, Volatile.Read(ref active)))); + lastProgress = DateTimeOffset.UtcNow; + } + } + } + async Task ReadChunkAsync(long start, int length) + { + Interlocked.Increment(ref active); + try + { + using var readTimeout = CancellationTokenSource.CreateLinkedTokenSource(timeout.Token); + readTimeout.CancelAfter(idleTimeout); + using var message = new HttpRequestMessage(HttpMethod.Get, uri); + message.Headers.Range = new RangeHeaderValue(start, start + length - 1); + message.Headers.AcceptEncoding.ParseAdd("identity"); + if (etag is not null) message.Headers.IfRange = new RangeConditionHeaderValue(etag); + using var chunk = await http.SendAsync(message, HttpCompletionOption.ResponseHeadersRead, readTimeout.Token).ConfigureAwait(false); + var contentRange = chunk.Content.Headers.ContentRange; + if (chunk.StatusCode != HttpStatusCode.PartialContent || contentRange?.From != start || contentRange.To != start + length - 1 || contentRange.Length != size + || chunk.Content.Headers.ContentEncoding.Any(e => !e.Equals("identity", StringComparison.OrdinalIgnoreCase))) + throw new RangeUnavailableException(); + var buffer = new byte[length]; var count = 0; + await using var input = await chunk.Content.ReadAsStreamAsync(readTimeout.Token).ConfigureAwait(false); + while (count < length) + { + var read = await input.ReadAsync(buffer.AsMemory(count, Math.Min(131072, length - count)), readTimeout.Token).ConfigureAwait(false); + if (read == 0) throw new EndOfStreamException("Download range ended early."); + readTimeout.CancelAfter(Timeout.InfiniteTimeSpan); + await Budget.ThrottleAsync(read, rate, timeout.Token).ConfigureAwait(false); + count += read; Report(read); readTimeout.CancelAfter(idleTimeout); + } + if (await input.ReadAsync(new byte[1], readTimeout.Token).ConfigureAwait(false) != 0) + throw new InvalidDataException("Download range exceeded its declared length."); + return buffer; + } + finally { Interlocked.Decrement(ref active); } + } + void Enqueue() + { + if (next >= size) return; + var length = (int)Math.Min(RangeChunkBytes, size - next); + var task = ReadChunkAsync(next, length); next += length; + queued.Enqueue(task); all.Add(task); + } + try + { + for (var i = 0; i < connections; i++) Enqueue(); + while (queued.TryDequeue(out var task)) + { + var bytes = await task.ConfigureAwait(false); + all.Remove(task); + await output.WriteAsync(bytes, timeout.Token).ConfigureAwait(false); + hash.Append(bytes); written += bytes.Length; + Enqueue(); + } + await output.FlushAsync(timeout.Token).ConfigureAwait(false); + if (!hash.Matches(written)) + { + output.SetLength(0); + throw new InvalidDataException("Downloaded file failed size/hash verification."); + } + Report(0, true); + return true; + } + catch (RangeUnavailableException) { return false; } // Some CDNs ignore range requests after the probe. + finally + { + await timeout.CancelAsync().ConfigureAwait(false); + try { await Task.WhenAll(all).ConfigureAwait(false); } catch { /* Preserve the original failure/cancellation. */ } + } + } + private sealed class RangeUnavailableException : IOException { } +} diff --git a/src/SHOU.Launcher.Core/Downloads/VerifiedDownloader.cs b/src/SHOU.Launcher.Core/Downloads/VerifiedDownloader.cs new file mode 100644 index 00000000..14552957 --- /dev/null +++ b/src/SHOU.Launcher.Core/Downloads/VerifiedDownloader.cs @@ -0,0 +1,214 @@ +using System.Collections.Concurrent; +using System.Net; +using System.Net.Http.Headers; +using System.Security.Cryptography; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Downloads; + +public sealed partial class VerifiedDownloader(HttpClient http, NetworkOptions? options = null) : IVerifiedDownloader +{ + private static readonly ConcurrentDictionary Locks = new(StringComparer.Ordinal); + private readonly DownloadBudget localBudget = new(); + private DownloadBudget Budget => options?.Budget ?? localBudget; + public async Task DownloadAsync(DownloadRequest request, IProgress? progress = null, CancellationToken cancellationToken = default) + { + var policy = options?.Capture().Downloads ?? new DownloadBehavior(); + ArgumentException.ThrowIfNullOrWhiteSpace(request.DestinationPath); + if (request.Sources.Count == 0) throw new ArgumentException("Download has no sources."); + var destination = Path.GetFullPath(request.DestinationPath); + foreach (var candidate in new[] { destination, destination + ".download.lock", destination + ".part", destination + ".part.resume.json" }) + RejectLink(candidate); + var gate = Locks.GetOrAdd(destination, _ => new SemaphoreSlim(1, 1)); + await gate.WaitAsync(cancellationToken).ConfigureAwait(false); + try + { + Directory.CreateDirectory(Path.GetDirectoryName(destination)!); + foreach (var candidate in new[] { destination, destination + ".download.lock", destination + ".part", destination + ".part.resume.json" }) + RejectLink(candidate); + await using var fileLease = new FileStream(destination + ".download.lock", FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None); + if (await IsValidAsync(destination, request, cancellationToken).ConfigureAwait(false)) + { + progress?.Report(new(destination, "Completed", new FileInfo(destination).Length, request.Size, "cache")); + return; + } + if (await LocalDownloadReuse.TryImportAsync(request, progress, cancellationToken).ConfigureAwait(false)) return; + var failures = new List(); + var sources = request.Sources.Where(uri => !policy.HttpsOnly || uri.Scheme == "https" || uri.IsLoopback).ToArray(); + if (sources.Length == 0) throw new InvalidDataException("当前下载策略仅允许 HTTPS,请修改来源或协议设置。"); + foreach (var uri in sources) + { + if (uri.Scheme is not ("http" or "https") || !string.IsNullOrEmpty(uri.UserInfo)) throw new ArgumentException("Only HTTP(S) downloads without URL credentials are supported."); + for (var attempt = 0; attempt < 2; attempt++) + { + cancellationToken.ThrowIfCancellationRequested(); + try + { + if (!await TryDownloadRangesAsync(uri, destination, request, policy, progress, cancellationToken).ConfigureAwait(false)) + await DownloadOneAsync(uri, destination, request, policy, progress, cancellationToken).ConfigureAwait(false); + cancellationToken.ThrowIfCancellationRequested(); + RejectLink(destination); RejectLink(destination + ".part"); + File.Move(destination + ".part", destination, true); + progress?.Report(new(destination, "Completed", new FileInfo(destination).Length, request.Size, uri.Host)); + return; + } + catch (OperationCanceledException) when (cancellationToken.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is HttpRequestException or IOException or InvalidDataException or OperationCanceledException) + { + // Do not expose signed URLs, headers or response bodies in errors. + failures.Add(new IOException($"Download source {uri.Host} attempt {attempt + 1}: {ex.GetType().Name}")); + progress?.Report(new(destination, "Retrying", 0, request.Size, uri.Host, "内置", $"第 {attempt + 1} 次传输未通过,重试或切换下一来源({ex.GetType().Name})")); + } + } + } + throw new AggregateException("All download sources failed; installed file was not replaced.", failures); + } + finally { gate.Release(); } + } + internal static void RejectLink(string path) + { + var full = Path.GetFullPath(path); + var comparison = OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal; + if (!IO.SafePath.Canonical(full).Equals(full, comparison)) + throw new IOException("Download output must not traverse symbolic links/reparse points."); + var info = new FileInfo(path); + if (info.LinkTarget is not null || (info.Exists && (info.Attributes & FileAttributes.ReparsePoint) != 0)) + throw new IOException("Download destination or staging sidecar must not be a symbolic link/reparse point."); + } + private sealed record ResumeIdentity(string Url, string? ETag); + private static FileStream OpenPart(string path, bool append) + { + RejectLink(path); + FileStream stream; + try { stream = new(path, FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None, 131072, true); } + catch (IOException) when (File.Exists(path)) + { + RejectLink(path); + // Open does not truncate an existing target. Validate again before any mutation. + stream = new(path, FileMode.Open, FileAccess.ReadWrite, FileShare.None, 131072, true); + } + try + { + RejectLink(path); + if (append) stream.Position = stream.Length; + else stream.SetLength(0); + return stream; + } + catch { stream.Dispose(); throw; } + } + private static async Task WriteResumeAsync(string path, ResumeIdentity identity, CancellationToken ct) + { + RejectLink(path); + var temporary = path + ".write-" + Guid.NewGuid().ToString("N"); + var owned = false; + try + { + RejectLink(temporary); + await using (var stream = new FileStream(temporary, FileMode.CreateNew, FileAccess.Write, FileShare.None, 4096, true)) + { + owned = true; + await JsonSerializer.SerializeAsync(stream, identity, cancellationToken: ct).ConfigureAwait(false); + await stream.FlushAsync(ct).ConfigureAwait(false); + } + RejectLink(path); RejectLink(temporary); + File.Move(temporary, path, true); + } + finally { if (owned && File.Exists(temporary)) File.Delete(temporary); } + } + private async Task DownloadOneAsync(Uri uri, string destination, DownloadRequest request, DownloadBehavior policy, IProgress? progress, CancellationToken ct) + { + using var budgetLease = await Budget.EnterAsync(policy.MaximumConnections, ct).ConfigureAwait(false); + var part = destination + ".part"; + var resumePath = part + ".resume.json"; + RejectLink(part); RejectLink(resumePath); + ResumeIdentity? identity = null; + if (File.Exists(resumePath)) + { + try { identity = JsonSerializer.Deserialize(await File.ReadAllTextAsync(resumePath, ct).ConfigureAwait(false)); } + catch (JsonException) { /* Invalid staging identity starts a new transfer. */ } + } + var hasHash = !string.IsNullOrEmpty(request.Sha1) || !string.IsNullOrEmpty(request.Sha256); + var sourceIdentity = "sha256:" + Convert.ToHexStringLower(SHA256.HashData(System.Text.Encoding.UTF8.GetBytes(uri.AbsoluteUri))); + // Accept an existing pre-migration identity, then rewrite it without signed/query URL text. + var sameSource = identity?.Url == sourceIdentity || identity?.Url == uri.AbsoluteUri; + var offset = request.AllowResume && hasHash && sameSource && File.Exists(part) ? new FileInfo(part).Length : 0; + if (request.Size is { } size && offset > size) offset = 0; + progress?.Report(new(destination, "Queued", offset, request.Size, uri.Host)); + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); + var rate = options?.Capture().Downloads?.MaximumKiBPerSecond ?? 0; + timeout.CancelAfter(TimeSpan.FromMinutes(rate > 0 ? 30 : 3)); + using var message = new HttpRequestMessage(HttpMethod.Get, uri); + if (offset > 0) + { + message.Headers.Range = new RangeHeaderValue(offset, null); + if (identity?.ETag is { } etag && EntityTagHeaderValue.TryParse(etag, out var parsed)) message.Headers.IfRange = new RangeConditionHeaderValue(parsed); + } + using var response = await http.SendAsync(message, HttpCompletionOption.ResponseHeadersRead, timeout.Token).ConfigureAwait(false); + // A network await is a real opportunity for another writer to replace staging paths. + // Check again before range resets, sidecar writes or opening a writable stream. + RejectLink(part); RejectLink(resumePath); + if (response.StatusCode == HttpStatusCode.RequestedRangeNotSatisfiable) + { + using (OpenPart(part, false)) { } + throw new IOException("Range is no longer valid; staging reset for next attempt."); + } + response.EnsureSuccessStatusCode(); + if (offset > 0 && response.StatusCode == HttpStatusCode.PartialContent) + { + if (response.Content.Headers.ContentRange?.From != offset || (request.Size is { } expected && response.Content.Headers.ContentRange?.Length is { } total && expected != total)) + { + using (OpenPart(part, false)) { } + throw new IOException("Invalid resume range."); + } + } + else + { + offset = 0; // A server ignoring Range returned a whole file; truncate first. + progress?.Report(new(destination, "Queued", 0, request.Size, uri.Host)); + } + await WriteResumeAsync(resumePath, new(sourceIdentity, response.Headers.ETag?.ToString()), timeout.Token).ConfigureAwait(false); + await using var output = OpenPart(part, offset > 0); + using var hash = new TransferHash(request); + await hash.ReadPrefixAsync(output, offset, timeout.Token).ConfigureAwait(false); + await using var input = await response.Content.ReadAsStreamAsync(timeout.Token).ConfigureAwait(false); + var bytes = offset; + var totalBytes = request.Size ?? (response.Content.Headers.ContentLength is { } len ? len + offset : null); + var buffer = new byte[131072]; + var lastProgress = DateTimeOffset.MinValue; + while (true) + { + var read = await input.ReadAsync(buffer, timeout.Token).ConfigureAwait(false); + if (read == 0) break; + // Waiting for the user's shared bandwidth limit is not a stalled network. + timeout.CancelAfter(Timeout.InfiniteTimeSpan); + await Budget.ThrottleAsync(read, rate, ct).ConfigureAwait(false); + bytes += read; + if (request.Size is { } limit && bytes > limit) throw new InvalidDataException("Download exceeded declared size."); + await output.WriteAsync(buffer.AsMemory(0, read), ct).ConfigureAwait(false); + hash.Append(buffer.AsSpan(0, read)); + timeout.CancelAfter(TimeSpan.FromMinutes(rate > 0 ? 30 : 3)); + if (DateTimeOffset.UtcNow - lastProgress > TimeSpan.FromMilliseconds(100)) + { progress?.Report(new(destination, "Downloading", bytes, totalBytes, uri.Host)); lastProgress = DateTimeOffset.UtcNow; } + } + await output.FlushAsync(timeout.Token).ConfigureAwait(false); + if (!hash.Matches(bytes)) + { + output.SetLength(0); + throw new InvalidDataException("Downloaded file failed size/hash verification."); + } + progress?.Report(new(destination, "Downloading", bytes, totalBytes, uri.Host)); + } + public static async Task IsValidAsync(string path, DownloadRequest request, CancellationToken ct = default) + { + RejectLink(path); + if (!File.Exists(path)) return false; + if (request.Size is { } length && new FileInfo(path).Length != length) return false; + if (request.Sha1 is null && request.Sha256 is null) + return request.ReuseWithoutHash && new FileInfo(path).Length > 0; + await using var input = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, FileOptions.Asynchronous | FileOptions.SequentialScan); + using var hash = new TransferHash(request); + await hash.ReadPrefixAsync(input, input.Length, ct).ConfigureAwait(false); + return hash.Matches(input.Length); + } +} diff --git a/src/SHOU.Launcher.Core/IO/DirectoryPublication.cs b/src/SHOU.Launcher.Core/IO/DirectoryPublication.cs new file mode 100644 index 00000000..5ee1d710 --- /dev/null +++ b/src/SHOU.Launcher.Core/IO/DirectoryPublication.cs @@ -0,0 +1,22 @@ +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core.IO; + +public static class DirectoryPublication +{ + /// Keep publication atomic; briefly tolerate Windows handles without FILE_SHARE_DELETE. + public static async Task PublishAsync(string staging, string destination, CancellationToken ct) + { + for (var attempt = 0; ; attempt++) + { + ct.ThrowIfCancellationRequested(); + VerifiedDownloader.RejectLink(staging); VerifiedDownloader.RejectLink(destination); + if (Directory.Exists(destination) || File.Exists(destination)) throw new IOException("Publication destination already exists."); + try { Directory.Move(staging, destination); return; } + catch (Exception ex) when (OperatingSystem.IsWindows() && attempt < 5 + && ex is IOException or UnauthorizedAccessException && (ex.HResult & 0xffff) is 5 or 32 or 33 + && Directory.Exists(staging) && !Directory.Exists(destination) && !File.Exists(destination)) + { await Task.Delay(TimeSpan.FromMilliseconds(50 << attempt), ct).ConfigureAwait(false); } + } + } +} diff --git a/src/SHOU.Launcher.Core/IO/FileTransactionCheckpoint.cs b/src/SHOU.Launcher.Core/IO/FileTransactionCheckpoint.cs new file mode 100644 index 00000000..7e769ef4 --- /dev/null +++ b/src/SHOU.Launcher.Core/IO/FileTransactionCheckpoint.cs @@ -0,0 +1,15 @@ +using System.Runtime.CompilerServices; +[assembly: InternalsVisibleTo("SHOU.Launcher.Core.Tests")] +namespace SHOU.Launcher.Core.IO; + +internal static class FileTransactionCheckpoint +{ + private static readonly AsyncLocal?> observer = new(); + internal static IDisposable Observe(Action action) + { + var previous = observer.Value; observer.Value = action; + return new Scope(() => observer.Value = previous); + } + internal static void Reach(string phase) => observer.Value?.Invoke(phase); + private sealed class Scope(Action dispose) : IDisposable { public void Dispose() => dispose(); } +} diff --git a/src/SHOU.Launcher.Core/IO/GameSessionRegistry.cs b/src/SHOU.Launcher.Core/IO/GameSessionRegistry.cs new file mode 100644 index 00000000..e33aeb2f --- /dev/null +++ b/src/SHOU.Launcher.Core/IO/GameSessionRegistry.cs @@ -0,0 +1,73 @@ +using System.Diagnostics; +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core.IO; + +/// Nonsecret process identity. Never authorizes killing a process read from disk. +public sealed class GameSessionRegistry(string directory) +{ + private sealed record Entry(int Pid, long StartTicks, string? InstanceId = null); + private string FileFor(GameInstance instance) + { + VerifiedDownloader.RejectLink(directory); + var canonical = SafePath.Canonical(instance.GameDirectory); + if (OperatingSystem.IsWindows()) canonical = canonical.ToUpperInvariant(); + return Path.Combine(Path.GetFullPath(directory), Convert.ToHexStringLower(SHA256.HashData(Encoding.UTF8.GetBytes(canonical))) + ".json"); + } + public GameSessionSnapshot? Read(GameInstance instance) => ReadAll(instance).LastOrDefault(); + public IReadOnlyList ReadAll(GameInstance instance) + { + var path = FileFor(instance); + if (!File.Exists(path)) return []; + VerifiedDownloader.RejectLink(path); + if (new FileInfo(path).Length > 4096) throw new InvalidDataException("游戏会话记录过大,已禁止修改该实例。"); + Entry[] entries; + try + { + using var document = JsonDocument.Parse(File.ReadAllText(path)); + entries = document.RootElement.ValueKind == JsonValueKind.Array ? document.RootElement.Deserialize() ?? throw new JsonException() + : [document.RootElement.Deserialize() ?? throw new JsonException()]; + if (entries.Length > 48 || entries.Any(e => e is null || e.Pid <= 0 || e.StartTicks <= 0 || e.StartTicks > DateTime.MaxValue.Ticks)) throw new JsonException(); + } + catch (JsonException) { throw new InvalidDataException("游戏会话记录损坏,已禁止修改该实例;请检查日志。"); } + var active = new List(); + foreach (var entry in entries) + { + try + { + using var process = Process.GetProcessById(entry.Pid); + // Exact OS creation time prevents stale records matching a reused PID. + if (process.HasExited || process.StartTime.ToUniversalTime().Ticks != entry.StartTicks) continue; + active.Add(new(entry.InstanceId ?? instance.Id, entry.Pid, new DateTimeOffset(new DateTime(entry.StartTicks, DateTimeKind.Utc)))); + } + catch (ArgumentException) { } + catch (InvalidOperationException) { } + catch (System.ComponentModel.Win32Exception) { throw new IOException("无法核验游戏会话身份,已禁止修改该实例。"); } + } + return active.DistinctBy(s => s.ProcessId).OrderBy(s => s.StartedAt).ToArray(); + } + public void Register(GameInstance instance, int pid) + { + using var process = Process.GetProcessById(pid); + var entry = new Entry(pid, process.StartTime.ToUniversalTime().Ticks, instance.Id); + Directory.CreateDirectory(directory); + var path = FileFor(instance); VerifiedDownloader.RejectLink(path); + var lockPath = path + ".lock"; VerifiedDownloader.RejectLink(lockPath); + using var lease = new FileStream(lockPath, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None); + var entries = ReadAll(instance).Where(s => s.ProcessId != pid).Select(s => new Entry(s.ProcessId, s.StartedAt.UtcTicks, s.InstanceId)).Append(entry).ToArray(); + if (entries.Length > 48) throw new InvalidOperationException("此目录的游戏进程过多,请先关闭部分窗口。"); + var payload = JsonSerializer.Serialize(entries); + if (Encoding.UTF8.GetByteCount(payload) > 4096) throw new InvalidOperationException("游戏会话记录已达到容量上限,请先关闭部分窗口。"); + var temporary = path + ".tmp-" + Guid.NewGuid().ToString("N"); + try { File.WriteAllText(temporary, payload); File.Move(temporary, path, true); } + finally { if (File.Exists(temporary)) File.Delete(temporary); } + } + public void EnsureWritable(GameInstance instance) + { + if (Read(instance) is not null) throw new InvalidOperationException("此实例仍有游戏窗口运行。请退出这些窗口后再修改实例;其它实例可以继续使用。"); + } +} diff --git a/src/SHOU.Launcher.Core/IO/MinecraftSrvResolver.cs b/src/SHOU.Launcher.Core/IO/MinecraftSrvResolver.cs new file mode 100644 index 00000000..4befd163 --- /dev/null +++ b/src/SHOU.Launcher.Core/IO/MinecraftSrvResolver.cs @@ -0,0 +1,80 @@ +using System.Buffers.Binary; +using System.Net; +using System.Net.NetworkInformation; +using System.Net.Sockets; +using System.Security.Cryptography; +using System.Text; + +namespace SHOU.Launcher.Core.IO; + +/// Small bounded SRV lookup against configured system DNS; preserves the original forced-host name. +public static class MinecraftSrvResolver +{ + public static async Task ResolvePortAsync(string host, CancellationToken ct) + { + var queryName = "_minecraft._tcp." + host.TrimEnd('.'); + var id = (ushort)RandomNumberGenerator.GetInt32(65536); + using var packet = new MemoryStream(); + var header = new byte[12]; BinaryPrimitives.WriteUInt16BigEndian(header, id); header[2] = 1; header[5] = 1; packet.Write(header); + foreach (var part in queryName.Split('.')) + { var bytes = Encoding.ASCII.GetBytes(part); if (bytes.Length is 0 or > 63) return 25565; packet.WriteByte((byte)bytes.Length); packet.Write(bytes); } + packet.Write([0, 0, 33, 0, 1]); + var resolvers = NetworkInterface.GetAllNetworkInterfaces().Where(n => n.OperationalStatus == OperationalStatus.Up) + .SelectMany(n => n.GetIPProperties().DnsAddresses).Distinct().Take(3).ToArray(); + foreach (var resolver in resolvers) + { + ct.ThrowIfCancellationRequested(); + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(700); + try + { + using var client = new UdpClient(resolver.AddressFamily); client.Connect(resolver, 53); + await client.SendAsync(packet.ToArray(), timeout.Token).ConfigureAwait(false); + var response = await client.ReceiveAsync(timeout.Token).ConfigureAwait(false); + if (ParsePort(response.Buffer, id, queryName) is { } port) return port; + return 25565; // A valid negative reply is authoritative for this query. + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is SocketException or IOException or InvalidDataException or OperationCanceledException) { } + } + return 25565; + } + public static int? ParsePort(byte[] data, ushort id, string question) + { + int U16(int offset) => offset < 0 || offset + 2 > data.Length ? throw new InvalidDataException("Truncated DNS record.") : BinaryPrimitives.ReadUInt16BigEndian(data.AsSpan(offset, 2)); + string Name(ref int position) + { + var cursor = position; var jumped = false; var labels = new List(); var steps = 0; + while (true) + { + if (cursor >= data.Length || ++steps > 128) throw new InvalidDataException("Invalid DNS name."); + var length = data[cursor++]; + if ((length & 0xc0) == 0xc0) + { + if (cursor >= data.Length) throw new InvalidDataException("Truncated DNS pointer."); + if (!jumped) position = cursor + 1; + cursor = ((length & 0x3f) << 8) | data[cursor]; jumped = true; continue; + } + if (length == 0) { if (!jumped) position = cursor; return string.Join('.', labels); } + if (length > 63 || cursor + length > data.Length) throw new InvalidDataException("Invalid DNS label."); + labels.Add(Encoding.ASCII.GetString(data, cursor, length)); cursor += length; + } + } + if (data.Length < 12 || U16(0) != id || (U16(2) & 0x820f) != 0x8000 || U16(4) != 1) throw new InvalidDataException("Invalid DNS response."); + var offset = 12; + if (!Name(ref offset).Equals(question, StringComparison.OrdinalIgnoreCase) || U16(offset) != 33 || U16(offset + 2) != 1) throw new InvalidDataException("DNS question mismatch."); + offset += 4; var answers = U16(6); if (answers > 128) throw new InvalidDataException("Too many DNS answers."); + var ports = new List<(int Priority, int Port)>(); + for (var i = 0; i < answers; i++) + { + var name = Name(ref offset); var type = U16(offset); var recordClass = U16(offset + 2); var length = U16(offset + 8); offset += 10; + if (offset + length > data.Length) throw new InvalidDataException("Truncated DNS answer."); + if (name.Equals(question, StringComparison.OrdinalIgnoreCase) && type == 33 && recordClass == 1 && length >= 7) + { + var priority = U16(offset); var port = U16(offset + 4); var targetOffset = offset + 6; var target = Name(ref targetOffset); + if (target.Length > 0 && port > 0 && targetOffset <= offset + length) ports.Add((priority, port)); + } + offset += length; + } + return ports.Count == 0 ? null : ports.OrderBy(p => p.Priority).First().Port; + } +} diff --git a/src/SHOU.Launcher.Core/IO/SafePath.cs b/src/SHOU.Launcher.Core/IO/SafePath.cs new file mode 100644 index 00000000..e00798dc --- /dev/null +++ b/src/SHOU.Launcher.Core/IO/SafePath.cs @@ -0,0 +1,34 @@ +namespace SHOU.Launcher.Core.IO; + +public static class SafePath +{ + /// Reject symlink/reparse aliases in every existing component, including a destination's parents. + public static void RejectLinks(string path) => Downloads.VerifiedDownloader.RejectLink(path); + /// Compare normalized paths after the caller resolves links. macOS never uses Path.GetRelativePath's case folding. + public static bool IsWithin(string root, string path) + { + return Java.JavaPathBoundary.ContainsCanonical(root, path); + } + public static string Canonical(string path) + { + return Java.JavaPathBoundary.Canonical(Path.GetFullPath(path)); + } + public static string Within(string root, string relative) + { + if (string.IsNullOrWhiteSpace(relative) || Path.IsPathRooted(relative) || relative.Contains(':') || relative.Contains('\0')) + throw new IOException("Unsafe relative path."); + var parts = relative.Replace('\\', '/').Split('/'); + if (parts.Any(p => p is ".." or ".")) throw new IOException("Parent path traversal is not allowed."); + var canonicalRoot = Canonical(root); + var result = Canonical(Path.Combine(canonicalRoot, Path.Combine(parts))); + if (!IsWithin(canonicalRoot, result)) + throw new IOException("Path or symbolic link escapes installation root."); + return result; + } + public static string Identifier(string value) + { + if (string.IsNullOrWhiteSpace(value) || value.Length > 160 || value.Any(c => !char.IsLetterOrDigit(c) && c is not '.' and not '_' and not '-') || value is "." or "..") + throw new ArgumentException("Invalid identifier.", nameof(value)); + return value; + } +} diff --git a/src/SHOU.Launcher.Core/IO/SharedInstallPublication.cs b/src/SHOU.Launcher.Core/IO/SharedInstallPublication.cs new file mode 100644 index 00000000..379d9cf6 --- /dev/null +++ b/src/SHOU.Launcher.Core/IO/SharedInstallPublication.cs @@ -0,0 +1,79 @@ +using System.Security.Cryptography; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core.IO; + +/// Publishes runtime files into a registered shared directory without replacing user files. +internal sealed class SharedInstallPublication(string destination) : IAsyncDisposable +{ + private readonly List<(string Path, string Hash)> added = []; + private readonly List directories = []; + private byte[]? oldMarker; + private string? markerHash; + private bool complete; + internal void Complete() => complete = true; + private void EnsureDirectory(string path) + { + VerifiedDownloader.RejectLink(path); + if (Directory.Exists(path)) return; + EnsureDirectory(Path.GetDirectoryName(path)!); Directory.CreateDirectory(path); directories.Add(path); + } + internal async Task PublishAsync(string stage, CancellationToken ct) + { + if (SafePath.IsWithin(SafePath.Canonical(stage), SafePath.Canonical(destination))) throw new IOException("共享目录不能位于安装暂存内。"); + EnsureDirectory(destination); + var paths = Directory.GetFiles(stage, "*", SearchOption.AllDirectories).Select(p => Path.GetRelativePath(stage, p).Replace('\\', '/')).Order(StringComparer.Ordinal).ToArray(); + if (paths.Length > 20000) throw new IOException("共享安装文件超过数量限制。"); + foreach (var relative in paths.Where(p => p != ".shou/install.json").Concat(paths.Contains(".shou/install.json") ? [".shou/install.json"] : [])) + { + ct.ThrowIfCancellationRequested(); + if (!relative.StartsWith(".shou/", StringComparison.Ordinal) && !relative.StartsWith("resources/", StringComparison.Ordinal) && !relative.StartsWith("labymod-neo/", StringComparison.Ordinal)) throw new IOException("共享安装不发布用户内容文件。"); + var source = ContentInstallFiles.Literal(stage, relative); var target = ContentInstallFiles.Literal(destination, relative); + var hash = await HashAsync(source, ct).ConfigureAwait(false); + if (File.Exists(target) && relative != ".shou/install.json") + { if (await HashAsync(target, ct) != hash) throw new IOException("共享目录已有不同内容,未覆盖:" + relative); continue; } + EnsureDirectory(Path.GetDirectoryName(target)!); + if (relative == ".shou/install.json" && File.Exists(target)) + { + if (new FileInfo(target).Length > 64 * 1024) throw new IOException("共享安装标记过大。"); + oldMarker = await File.ReadAllBytesAsync(target, ct).ConfigureAwait(false); + } + var temporary = ContentInstallFiles.Literal(destination, relative + ".install-" + Guid.NewGuid().ToString("N")); + try + { + File.Copy(source, temporary); if (await HashAsync(temporary, ct) != hash) throw new IOException("安装文件在发布时改变。"); + ct.ThrowIfCancellationRequested(); VerifiedDownloader.RejectLink(target); File.Move(temporary, target, relative == ".shou/install.json"); + if (relative == ".shou/install.json") markerHash = hash; else added.Add((target, hash)); + } + finally { VerifiedDownloader.RejectLink(temporary); if (File.Exists(temporary)) File.Delete(temporary); } + } + } + public async ValueTask DisposeAsync() + { + if (complete) return; + var changed = false; + var marker = ContentInstallFiles.Literal(destination, ".shou/install.json"); + if (markerHash is not null) + { + if (!File.Exists(marker) || await HashAsync(marker, default) != markerHash) changed = true; + else if (oldMarker is null) File.Delete(marker); + else + { + var temporary = ContentInstallFiles.Literal(destination, ".shou/install.rollback-" + Guid.NewGuid().ToString("N")); + try { await File.WriteAllBytesAsync(temporary, oldMarker); VerifiedDownloader.RejectLink(marker); File.Move(temporary, marker, true); } + finally { if (File.Exists(temporary)) File.Delete(temporary); } + } + } + foreach (var (path, hash) in added.AsEnumerable().Reverse()) + { + if (!File.Exists(path)) continue; + if (await HashAsync(path, default) == hash) File.Delete(path); else changed = true; + } + foreach (var path in directories.AsEnumerable().Reverse()) + { VerifiedDownloader.RejectLink(path); if (Directory.Exists(path) && !Directory.EnumerateFileSystemEntries(path).Any()) Directory.Delete(path, false); } + if (changed) throw new IOException("回滚时检测到安装文件被外部修改,已保留修改内容,请检查共享目录。"); + } + private static async Task HashAsync(string path, CancellationToken ct) + { VerifiedDownloader.RejectLink(path); await using var input = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); return Convert.ToHexStringLower(await SHA256.HashDataAsync(input, ct)); } +} diff --git a/src/SHOU.Launcher.Core/Instances/BoundedNbt.cs b/src/SHOU.Launcher.Core/Instances/BoundedNbt.cs new file mode 100644 index 00000000..46183328 --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/BoundedNbt.cs @@ -0,0 +1,239 @@ +using System.Buffers.Binary; +using System.IO.Compression; + +namespace SHOU.Launcher.Core.Instances; + +public enum NbtType : byte { End, Byte, Short, Int, Long, Float, Double, ByteArray, String, List, Compound, IntArray, LongArray } +public enum NbtCompression { Plain, Gzip } +public sealed record NbtLimits(int MaxInputBytes = 8 * 1024 * 1024, int MaxExpandedBytes = 32 * 1024 * 1024, + int MaxDepth = 64, int MaxNodes = 250000, int MaxArrayElements = 4 * 1024 * 1024, int MaxStringBytes = 65535); +public sealed record NbtList(NbtType ElementType, IReadOnlyList Items); +// Float and Double payloads retain IEEE bits (uint/ulong), including otherwise lossy NaN payloads. +public sealed record NbtTag(NbtType Type, string Name, object Value) +{ + public IReadOnlyList Children => Type == NbtType.Compound ? (IReadOnlyList)Value : throw new InvalidDataException("NBT compound required."); + public NbtTag? Find(string name) + { + var found = Children.Where(t => t.Name == name).Take(2).ToArray(); + if (found.Length > 1) throw new InvalidDataException("Ambiguous duplicate NBT field: " + name); + return found.SingleOrDefault(); + } +} +public sealed record NbtDocument(NbtTag Root, NbtCompression Compression = NbtCompression.Plain); + +/// Java edition named, big-endian NBT. Deliberately rejects unknown types, negative lengths and trailing data. +public static class BoundedNbt +{ + public static NbtDocument Read(ReadOnlyMemory input, NbtLimits? limits = null, CancellationToken cancellationToken = default) + { + var budget = limits ?? new(); ValidateLimits(budget); + if (input.Length > budget.MaxInputBytes) throw new InvalidDataException("NBT input exceeds its byte budget."); + var compression = input.Length >= 2 && input.Span[0] == 0x1f && input.Span[1] == 0x8b ? NbtCompression.Gzip : NbtCompression.Plain; + var bytes = compression == NbtCompression.Gzip ? Expand(input, budget, cancellationToken) : input.ToArray(); + if (bytes.Length > budget.MaxExpandedBytes) throw new InvalidDataException("NBT expanded byte budget exceeded."); + var reader = new Reader(bytes, budget, cancellationToken); + var root = reader.Named(0); + if (root.Type != NbtType.Compound) throw new InvalidDataException("NBT file root must be a named compound."); + if (!reader.AtEnd) throw new InvalidDataException("Trailing bytes after NBT root are unsupported."); + return new(root, compression); + } + + public static byte[] Write(NbtDocument document, NbtLimits? limits = null, CancellationToken cancellationToken = default) + { + var budget = limits ?? new(); ValidateLimits(budget); + if (document.Root.Type != NbtType.Compound) throw new InvalidDataException("NBT file root must be a named compound."); + using var stream = new MemoryStream(); var writer = new Writer(stream, budget, cancellationToken); + writer.Named(document.Root, 0); var plain = stream.ToArray(); + byte[] output; + if (document.Compression == NbtCompression.Plain) output = plain; + else if (document.Compression == NbtCompression.Gzip) + { + using var compressed = new MemoryStream(); + using (var gzip = new GZipStream(compressed, CompressionLevel.Optimal, true)) gzip.Write(plain); + output = compressed.ToArray(); + } + else throw new InvalidDataException("Unsupported NBT compression."); + if (output.Length > budget.MaxInputBytes) throw new InvalidDataException("Encoded NBT exceeds its file byte budget."); + return output; + } + + private static void ValidateLimits(NbtLimits limits) + { + if (limits.MaxInputBytes <= 0 || limits.MaxExpandedBytes <= 0 || limits.MaxDepth is < 1 or > 256 + || limits.MaxNodes <= 0 || limits.MaxArrayElements <= 0 || limits.MaxStringBytes is < 0 or > 65535) + throw new ArgumentOutOfRangeException(nameof(limits)); + } + private static byte[] Expand(ReadOnlyMemory input, NbtLimits limits, CancellationToken ct) + { + if (input.Length < 18 || input.Span[2] != 8 || (input.Span[3] & 0xe0) != 0) throw new InvalidDataException("Unsupported gzip NBT header."); + using var source = new MemoryStream(input.ToArray(), false); using var gzip = new GZipStream(source, CompressionMode.Decompress); + using var output = new MemoryStream(); var buffer = new byte[65536]; + while (true) + { + ct.ThrowIfCancellationRequested(); var read = gzip.Read(buffer); + if (read == 0) break; + if (output.Length + read > limits.MaxExpandedBytes) throw new InvalidDataException("NBT gzip expansion exceeds its byte budget."); + output.Write(buffer, 0, read); + } + var bytes = output.ToArray(); var footer = input.Span[^8..]; + if (BinaryPrimitives.ReadUInt32LittleEndian(footer[4..]) != (uint)bytes.Length || BinaryPrimitives.ReadUInt32LittleEndian(footer) != Crc32(bytes)) + throw new InvalidDataException("Invalid or unsupported multi-member gzip NBT trailer."); + return bytes; + } + internal static uint Crc32(ReadOnlySpan bytes, uint previous = 0) + { + var crc = ~previous; + foreach (var b in bytes) { crc ^= b; for (var i = 0; i < 8; i++) crc = (crc >> 1) ^ (0xedb88320u & (uint)-(int)(crc & 1)); } + return ~crc; + } + + private sealed class Reader(byte[] bytes, NbtLimits limits, CancellationToken ct) + { + private int offset, nodes; + public bool AtEnd => offset == bytes.Length; + private ReadOnlySpan Take(int length) + { + if (length < 0 || length > bytes.Length - offset) throw new InvalidDataException("Truncated NBT payload."); + var result = bytes.AsSpan(offset, length); offset += length; return result; + } + private byte Byte() => Take(1)[0]; + private int Int() => BinaryPrimitives.ReadInt32BigEndian(Take(4)); + private string Text() + { + var count = BinaryPrimitives.ReadUInt16BigEndian(Take(2)); + if (count > limits.MaxStringBytes) throw new InvalidDataException("NBT string byte budget exceeded."); + var data = Take(count); var chars = new char[count]; var used = 0; + // DataInput/DataOutput modified UTF-8 encodes UTF-16 code units, including surrogate pairs. + for (var i = 0; i < data.Length;) + { + var first = data[i++]; int value; + if (first <= 0x7f) value = first; + else if ((first & 0xe0) == 0xc0) + { + if (i >= data.Length || (data[i] & 0xc0) != 0x80) throw new InvalidDataException("Invalid modified UTF-8 continuation."); + value = ((first & 0x1f) << 6) | (data[i++] & 0x3f); + if (value is > 0 and < 0x80 || value == 0 && first != 0xc0) throw new InvalidDataException("Noncanonical modified UTF-8 sequence."); + } + else if ((first & 0xf0) == 0xe0) + { + if (i + 1 >= data.Length || (data[i] & 0xc0) != 0x80 || (data[i + 1] & 0xc0) != 0x80) throw new InvalidDataException("Invalid modified UTF-8 continuation."); + value = ((first & 15) << 12) | ((data[i++] & 63) << 6) | (data[i++] & 63); + if (value < 0x800) throw new InvalidDataException("Noncanonical modified UTF-8 sequence."); + } + else throw new InvalidDataException("Java modified UTF-8 permits only one, two and three byte code units."); + chars[used++] = (char)value; + } + return new string(chars, 0, used); + } + public NbtTag Named(int depth) + { + var type = (NbtType)Byte(); + if (type is <= NbtType.End or > NbtType.LongArray) throw new InvalidDataException("Unsupported named NBT tag type."); + return Payload(type, Text(), depth); + } + private int Count(int width) + { + var count = Int(); + if (count < 0 || count > limits.MaxArrayElements || (long)count * width > bytes.Length - offset) + throw new InvalidDataException("Invalid or over-budget NBT array length."); + return count; + } + private NbtTag Payload(NbtType type, string name, int depth) + { + ct.ThrowIfCancellationRequested(); + if (depth > limits.MaxDepth || ++nodes > limits.MaxNodes) throw new InvalidDataException("NBT depth or node budget exceeded."); + object value; + switch (type) + { + case NbtType.Byte: value = unchecked((sbyte)Byte()); break; + case NbtType.Short: value = BinaryPrimitives.ReadInt16BigEndian(Take(2)); break; + case NbtType.Int: value = Int(); break; + case NbtType.Long: value = BinaryPrimitives.ReadInt64BigEndian(Take(8)); break; + case NbtType.Float: value = BinaryPrimitives.ReadUInt32BigEndian(Take(4)); break; + case NbtType.Double: value = BinaryPrimitives.ReadUInt64BigEndian(Take(8)); break; + case NbtType.ByteArray: value = Take(Count(1)).ToArray(); break; + case NbtType.String: value = Text(); break; + case NbtType.IntArray: + var ints = new int[Count(4)]; for (var i = 0; i < ints.Length; i++) ints[i] = Int(); value = ints; break; + case NbtType.LongArray: + var longs = new long[Count(8)]; for (var i = 0; i < longs.Length; i++) longs[i] = BinaryPrimitives.ReadInt64BigEndian(Take(8)); value = longs; break; + case NbtType.List: + var elementType = (NbtType)Byte(); var length = Count(0); + if (elementType > NbtType.LongArray || elementType == NbtType.End && length != 0 || length > limits.MaxNodes - nodes) + throw new InvalidDataException("Invalid or over-budget NBT list."); + var items = new NbtTag[length]; for (var i = 0; i < length; i++) items[i] = Payload(elementType, "", depth + 1); + value = new NbtList(elementType, items); break; + case NbtType.Compound: + var children = new List(); + while (true) + { + if (offset >= bytes.Length) throw new InvalidDataException("Unterminated NBT compound."); + if (bytes[offset] == 0) { offset++; break; } + children.Add(Named(depth + 1)); + } + value = children; break; + default: throw new InvalidDataException("Unsupported NBT tag type."); + } + return new(type, name, value); + } + } + + private sealed class Writer(MemoryStream output, NbtLimits limits, CancellationToken ct) + { + private int nodes; + private void Put(ReadOnlySpan data) + { + if (output.Length + data.Length > limits.MaxExpandedBytes) throw new InvalidDataException("NBT output byte budget exceeded."); + output.Write(data); + } + private void Byte(byte value) { Span data = stackalloc byte[1]; data[0] = value; Put(data); } + private void Int(int value) { Span data = stackalloc byte[4]; BinaryPrimitives.WriteInt32BigEndian(data, value); Put(data); } + private void Long(long value) { Span data = stackalloc byte[8]; BinaryPrimitives.WriteInt64BigEndian(data, value); Put(data); } + private void Text(string value) + { + var count = 0; + foreach (var ch in value) { count += ch is >= '\u0001' and <= '\u007f' ? 1 : ch <= 0x7ff ? 2 : 3; if (count > limits.MaxStringBytes) throw new InvalidDataException("NBT string byte budget exceeded."); } + Span prefix = stackalloc byte[2]; BinaryPrimitives.WriteUInt16BigEndian(prefix, (ushort)count); Put(prefix); + foreach (var ch in value) + if (ch is >= '\u0001' and <= '\u007f') Byte((byte)ch); + else if (ch <= 0x7ff) { Byte((byte)(0xc0 | (ch >> 6))); Byte((byte)(0x80 | (ch & 63))); } + else { Byte((byte)(0xe0 | (ch >> 12))); Byte((byte)(0x80 | ((ch >> 6) & 63))); Byte((byte)(0x80 | (ch & 63))); } + } + public void Named(NbtTag tag, int depth) + { + if (tag.Type is <= NbtType.End or > NbtType.LongArray) throw new InvalidDataException("Unsupported named NBT type."); + Byte((byte)tag.Type); Text(tag.Name); Payload(tag, depth); + } + private void Count(int length) { if (length > limits.MaxArrayElements) throw new InvalidDataException("NBT array budget exceeded."); Int(length); } + private void Payload(NbtTag tag, int depth) + { + ct.ThrowIfCancellationRequested(); if (depth > limits.MaxDepth || ++nodes > limits.MaxNodes) throw new InvalidDataException("NBT depth or node budget exceeded."); + try + { + switch (tag.Type) + { + case NbtType.Byte: Byte(unchecked((byte)(sbyte)tag.Value)); break; + case NbtType.Short: Span shortBytes = stackalloc byte[2]; BinaryPrimitives.WriteInt16BigEndian(shortBytes, (short)tag.Value); Put(shortBytes); break; + case NbtType.Int: Int((int)tag.Value); break; + case NbtType.Long: Long((long)tag.Value); break; + case NbtType.Float: Int(unchecked((int)(uint)tag.Value)); break; + case NbtType.Double: Long(unchecked((long)(ulong)tag.Value)); break; + case NbtType.ByteArray: var bytes = (byte[])tag.Value; Count(bytes.Length); Put(bytes); break; + case NbtType.String: Text((string)tag.Value); break; + case NbtType.IntArray: var ints = (int[])tag.Value; Count(ints.Length); foreach (var item in ints) Int(item); break; + case NbtType.LongArray: var longs = (long[])tag.Value; Count(longs.Length); foreach (var item in longs) Long(item); break; + case NbtType.List: + var list = (NbtList)tag.Value; + if (list.ElementType > NbtType.LongArray || list.ElementType == NbtType.End && list.Items.Count != 0 || list.Items.Count > limits.MaxNodes - nodes) + throw new InvalidDataException("Invalid or over-budget NBT list."); + Byte((byte)list.ElementType); Count(list.Items.Count); + foreach (var item in list.Items) { if (item.Type != list.ElementType) throw new InvalidDataException("NBT list contains mixed types."); Payload(item, depth + 1); } + break; + case NbtType.Compound: foreach (var child in tag.Children) Named(child, depth + 1); Byte(0); break; + default: throw new InvalidDataException("Unsupported NBT tag type."); + } + } + catch (InvalidCastException ex) { throw new InvalidDataException("NBT payload does not match its tag type.", ex); } + } + } +} diff --git a/src/SHOU.Launcher.Core/Instances/CurseForgeFingerprint.cs b/src/SHOU.Launcher.Core/Instances/CurseForgeFingerprint.cs new file mode 100644 index 00000000..a4756a84 --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/CurseForgeFingerprint.cs @@ -0,0 +1,24 @@ +namespace SHOU.Launcher.Core.Instances; + +/// CurseForge's whitespace-filtered Murmur2, computed in two bounded-memory passes. +internal static class CurseForgeFingerprint +{ + public static async Task ComputeAsync(Stream stream, CancellationToken ct) + { + var buffer = new byte[131072]; long length = 0; int count; + while ((count = await stream.ReadAsync(buffer, ct)) > 0) for (var i = 0; i < count; i++) if (Include(buffer[i])) length++; + if (length > uint.MaxValue) throw new InvalidDataException("模组过大,无法计算 CurseForge 指纹。"); + stream.Position = 0; var hash = 1u ^ (uint)length; uint word = 0; var shift = 0; + while ((count = await stream.ReadAsync(buffer, ct)) > 0) + for (var i = 0; i < count; i++) + { + if (!Include(buffer[i])) continue; + word |= (uint)buffer[i] << shift; shift += 8; + if (shift != 32) continue; + word *= 0x5bd1e995; word ^= word >> 24; word *= 0x5bd1e995; hash *= 0x5bd1e995; hash ^= word; word = 0; shift = 0; + } + if (shift > 0) { hash ^= word; hash *= 0x5bd1e995; } + hash ^= hash >> 13; hash *= 0x5bd1e995; hash ^= hash >> 15; return hash; + } + private static bool Include(byte value) => value is not (9 or 10 or 13 or 32); +} diff --git a/src/SHOU.Launcher.Core/Instances/ExistingInstanceReader.cs b/src/SHOU.Launcher.Core/Instances/ExistingInstanceReader.cs new file mode 100644 index 00000000..0b8653f4 --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/ExistingInstanceReader.cs @@ -0,0 +1,115 @@ +using System.Security.Cryptography; +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.Minecraft; + +namespace SHOU.Launcher.Core.Instances; + +/// Reads only the selected version's public metadata. Never imports account caches, launcher config or credentials. +public static class ExistingInstanceReader +{ + private static string Literal(string root, string name) + { + if (name.Length is 0 or > 180 || name is "." or ".." || name.IndexOfAny(['/', '\\', ':']) >= 0 || name.Any(char.IsControl)) throw new InvalidDataException("实例版本目录名称无效。"); + var path = Path.Combine(root, name); VerifiedDownloader.RejectLink(path); return path; + } + public static async Task> InspectAsync(string selected, CancellationToken ct = default) + { + var result = await InspectDetailedAsync(selected, ct); + if (result.Candidates.Count == 0 && result.Issues.Count > 0) throw new InvalidDataException(result.Issues[0].Reason); + return result.Candidates; + } + public static async Task InspectDetailedAsync(string selected, CancellationToken ct = default) + { + if (!Path.IsPathFullyQualified(selected)) throw new ArgumentException("请选择完整的实例或 Minecraft 目录路径。"); + selected = Path.TrimEndingDirectorySeparator(Path.GetFullPath(selected)); VerifiedDownloader.RejectLink(selected); + if (!Directory.Exists(selected)) throw new DirectoryNotFoundException("所选目录不存在。"); + var versions = Directory.Exists(Path.Combine(selected, "versions")) ? Path.Combine(selected, "versions") : selected; + VerifiedDownloader.RejectLink(versions); + var ownJson = Literal(selected, Path.GetFileName(selected) + ".json"); + var folders = File.Exists(ownJson) ? new[] { selected } : Directory.EnumerateDirectories(versions).Take(1001).ToArray(); + if (folders.Length > 1000) throw new IOException("实例目录超过 1000 个,请选择具体实例。"); + List candidates = []; List issues = []; + foreach (var folder in folders) + { + ct.ThrowIfCancellationRequested(); + var name = Path.GetFileName(folder); + try + { + VerifiedDownloader.RejectLink(folder); + var jsonPath = Literal(folder, name + ".json"); if (!File.Exists(jsonPath)) continue; + var metadata = await ReadAsync(jsonPath, ct); + if (metadata["mainClass"] is null && metadata["inheritsFrom"] is null) continue; + var parent = Directory.GetParent(folder)!; + var root = parent.Name == "versions" ? parent.Parent!.FullName : folder; + var digest = await HashAsync(jsonPath, ct); + var origin = new ExternalInstanceOrigin(root, folder, name, digest); + var localIdentity = "local-" + Convert.ToHexStringLower(SHA256.HashData(System.Text.Encoding.UTF8.GetBytes(Path.GetFullPath(folder) + "\0" + digest)))[..24]; + var resolved = await ResolveAsync(origin, localIdentity, "local", ct); + metadata = resolved.Metadata; + var game = IO.SafePath.Identifier((string?)metadata["clientVersion"] ?? resolved.InheritanceChain[0]); + var libraryNames = (metadata["libraries"] as JsonArray ?? []).Select(n => (string?)n?["name"] ?? "").ToArray(); + var coordinates = new[] { ("legacyfabric", "net.legacyfabric:fabric-loader:"), ("fabric", "net.fabricmc:fabric-loader:"), ("quilt", "org.quiltmc:quilt-loader:"), ("neoforge", "net.neoforged:neoforge:"), ("cleanroom", "com.cleanroommc:cleanroom:"), ("forge", "net.minecraftforge:forge:"), ("liteloader", "com.mumfrey:liteloader:"), ("labymod", "net.labymod:labymod:"), ("optifine", "optifine:OptiFine:") }; + var detected = coordinates.FirstOrDefault(p => libraryNames.Any(n => n.StartsWith(p.Item2, StringComparison.Ordinal))); + var loader = detected.Item1 ?? "vanilla"; var prefix = detected.Item2 ?? "\0"; + var loaderVersion = libraryNames.FirstOrDefault(n => n.StartsWith(prefix, StringComparison.Ordinal))?[prefix.Length..]; + loaderVersion = loaderVersion?.Split(':')[0]; + // Modern Forge profiles put the loader identity in public FML arguments instead of a forge library. + if (loader == "vanilla" && (string?)metadata["mainClass"] is "cpw.mods.bootstraplauncher.BootstrapLauncher" or "cpw.mods.modlauncher.Launcher" or "net.minecraftforge.bootstrap.ForgeBootstrap") + { + var arguments = metadata["arguments"]?["game"] as JsonArray ?? []; + string? Flag(string key) + { + var positions = Enumerable.Range(0, Math.Max(0, arguments.Count - 1)).Where(i => arguments[i] is JsonValue v && v.TryGetValue(out var text) && text == key).ToArray(); + if (positions.Length > 1) throw new InvalidDataException("FML 实例身份重复,请检查原版本信息。"); + return positions.Length == 1 && arguments[positions[0] + 1] is JsonValue value && value.TryGetValue(out var result) ? result : null; + } + var neo = Flag("--fml.neoForgeVersion"); var forge = Flag("--fml.forgeVersion"); + if (neo is null && forge is null || neo is not null && forge is not null) throw new InvalidDataException("无法核实 FML 实例的加载器身份。"); + if (Flag("--fml.mcVersion") is { } declaredGame && declaredGame != game) throw new InvalidDataException("FML 实例的游戏版本不一致。"); + loader = neo is null ? "forge" : "neoforge"; loaderVersion = IO.SafePath.Identifier(neo ?? forge!); + } + if (loader is "forge" or "optifine" && loaderVersion?.StartsWith(game + "-", StringComparison.Ordinal) == true) loaderVersion = loaderVersion[(game.Length + 1)..]; + // Mod/config-bearing profiles are isolated; plain profiles use the selected Minecraft root. + var isolated = loader != "vanilla" || new[] { "mods", "config", "saves", "options.txt" }.Any(n => Directory.Exists(Path.Combine(folder, n)) || File.Exists(Path.Combine(folder, n))); + var legacyMode = LegacyLaunchSettings.Isolation(await LegacyLaunchSettings.ReadAsync(folder, ct)); + if (legacyMode is InstanceDirectoryMode.Isolated or InstanceDirectoryMode.Shared) isolated = legacyMode == InstanceDirectoryMode.Isolated; + var fallback = loader != "vanilla" ? loader : (string?)metadata["type"] switch { "snapshot" => "commandblock", "old_alpha" or "old_beta" => "cobblestone", _ => "auto" }; + var presentation = await LegacyInstancePresentation.ReadAsync(folder, fallback, ct); + var candidate = new ExistingInstanceCandidate(name.Length > 160 ? name[..160] : name, localIdentity, game, loader, loaderVersion, isolated ? folder : root, origin, presentation); + candidates.Add(candidate); + } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidDataException or ArgumentException or System.Text.Json.JsonException or InvalidOperationException) + { issues.Add(new(name, "实例元数据或继承链无法核实(" + ex.GetType().Name + "),原目录保持不变。")); } + } + return new(candidates, issues); + } + public static async Task ResolveAsync(ExternalInstanceOrigin origin, string versionId, string gameVersion, CancellationToken ct) + { + VerifiedDownloader.RejectLink(origin.MinecraftRoot); VerifiedDownloader.RejectLink(origin.VersionDirectory); + var original = Literal(origin.VersionDirectory, origin.OriginalVersionId + ".json"); + if (await HashAsync(original, ct) != origin.MetadataSha256) throw new IOException("原实例版本信息已变化,请重新接入目录;原文件保持。"); + var seen = new HashSet(StringComparer.Ordinal); var chain = new List(); + async Task Visit(string id, string folder) + { + if (!seen.Add(id) || seen.Count > 24) throw new InvalidDataException("本地实例继承链循环或过长。"); + var metadata = await ReadAsync(Literal(folder, id + ".json"), ct); + if ((string?)metadata["inheritsFrom"] is { } parent) + metadata = VersionMetadataResolver.Merge(await Visit(parent, Literal(Path.Combine(origin.MinecraftRoot, "versions"), parent)), metadata); + chain.Add(id); return metadata; + } + var merged = await Visit(origin.OriginalVersionId, origin.VersionDirectory); + merged["id"] = versionId; merged.Remove("inheritsFrom"); merged["jar"] = versionId; + if (merged["mainClass"] is null || merged["libraries"] is not JsonArray) throw new InvalidDataException("所选目录缺少有效的游戏版本信息。"); + return new(versionId, merged, original, chain.Append(gameVersion).Append(versionId).Distinct().ToArray()); + } + private static async Task ReadAsync(string path, CancellationToken ct) + { + VerifiedDownloader.RejectLink(path); var info = new FileInfo(path); + if (!info.Exists || info.Length is < 2 or > 2 * 1024 * 1024) throw new InvalidDataException("实例版本信息不存在或超过 2 MiB。"); + return JsonNode.Parse(await File.ReadAllTextAsync(path, ct)) as JsonObject ?? throw new InvalidDataException("实例版本信息无效。"); + } + private static async Task HashAsync(string path, CancellationToken ct) + { VerifiedDownloader.RejectLink(path); var info = new FileInfo(path); if (!info.Exists || info.Length > 2 * 1024 * 1024) throw new InvalidDataException("实例版本信息无效。"); await using var input = File.OpenRead(path); return Convert.ToHexStringLower(await SHA256.HashDataAsync(input, ct)); } +} diff --git a/src/SHOU.Launcher.Core/Instances/InstanceDirectoryPolicy.cs b/src/SHOU.Launcher.Core/Instances/InstanceDirectoryPolicy.cs new file mode 100644 index 00000000..19930a7f --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/InstanceDirectoryPolicy.cs @@ -0,0 +1,22 @@ +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Instances; + +public static class InstanceDirectoryPolicy +{ + public static InstanceDirectories Describe(GameInstance instance, IAppPaths paths) + { + if (instance.Directories is { } stored) return stored; + if (instance.Origin is { } origin) return new(InstanceDirectoryMode.Current, origin.VersionDirectory, origin.MinecraftRoot); + var current = Path.TrimEndingDirectorySeparator(Path.GetFullPath(instance.GameDirectory)); + var parent = Path.GetDirectoryName(current) ?? paths.InstancesDirectory; + return new(InstanceDirectoryMode.Current, Path.GetFileName(current) == "shared-game" ? Path.Combine(parent, instance.Id) : current, Path.Combine(parent, "shared-game")); + } + public static string Resolve(GameInstance instance, InstanceDirectories directories, LauncherSettings settings) + { + if (!Enum.IsDefined(directories.Mode) || !Path.IsPathFullyQualified(directories.IsolatedDirectory) || !Path.IsPathFullyQualified(directories.SharedDirectory)) throw new InvalidDataException("实例目录策略无效。"); + var shared = directories.Mode == InstanceDirectoryMode.Shared || directories.Mode == InstanceDirectoryMode.FollowGlobal && + (settings.LaunchOptions?.Isolation == InstanceIsolation.Shared || settings.LaunchOptions?.Isolation == InstanceIsolation.Modded && instance.Loader is "vanilla" or "optifine"); + return directories.Mode == InstanceDirectoryMode.Current ? instance.GameDirectory : shared ? directories.SharedDirectory : directories.IsolatedDirectory; + } +} diff --git a/src/SHOU.Launcher.Core/Instances/InstanceIconImages.cs b/src/SHOU.Launcher.Core/Instances/InstanceIconImages.cs new file mode 100644 index 00000000..ee8faab3 --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/InstanceIconImages.cs @@ -0,0 +1,37 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Authentication; +using SHOU.Launcher.Core.Tools; + +namespace SHOU.Launcher.Core.Instances; + +public sealed record InstanceIconPixels(int Width, int Height, ReadOnlyMemory Rgba); +public static class InstanceIconImages +{ + public static readonly string[] Builtins = ["auto", "minecraft", "fabric", "quilt", "forge", "neoforge", "cleanroom", "legacyfabric", "optifine", "labymod", "liteloader", "grasspath", "cobblestone", "commandblock", "redstonelamp", "goldblock", "redstoneblock"]; + public static byte[] Crop(InstanceIconPixels source, double zoom = 1, double x = .5, double y = .5, CancellationToken ct = default) + { + if (!double.IsFinite(zoom) || !double.IsFinite(x) || !double.IsFinite(y) || zoom is < 1 or > 8 || x is < 0 or > 1 || y is < 0 or > 1 || source.Width is < 1 or > 2048 || source.Height is < 1 or > 2048 || source.Rgba.Length != source.Width * source.Height * 4) throw new ArgumentException("裁剪区域或图像大小无效。"); + var side = Math.Min(source.Width, source.Height) / zoom; var left = (source.Width - side) * x; var top = (source.Height - side) * y; + var pixels = source.Rgba.Span; var output = new byte[256 * 256 * 4]; Span rgb = stackalloc double[3]; + for (var py = 0; py < 256; py++) + { + ct.ThrowIfCancellationRequested(); + for (var px = 0; px < 256; px++) + { + var sx = Math.Clamp(left + (px + .5) * side / 256 - .5, 0, source.Width - 1); var sy = Math.Clamp(top + (py + .5) * side / 256 - .5, 0, source.Height - 1); + var ix = (int)sx; var iy = (int)sy; var alpha = 0d; rgb.Clear(); + for (var dy = 0; dy < 2; dy++) for (var dx = 0; dx < 2; dx++) + { + var weight = (dx == 0 ? 1 - (sx - ix) : sx - ix) * (dy == 0 ? 1 - (sy - iy) : sy - iy); + var i = (Math.Min(iy + dy, source.Height - 1) * source.Width + Math.Min(ix + dx, source.Width - 1)) * 4; + var a = pixels[i + 3] * weight; alpha += a; for (var c = 0; c < 3; c++) rgb[c] += pixels[i + c] * a; + } + var o = (py * 256 + px) * 4; output[o + 3] = (byte)Math.Clamp(Math.Round(alpha), 0, 255); + for (var c = 0; c < 3; c++) output[o + c] = alpha <= 0 ? (byte)0 : (byte)Math.Clamp(Math.Round(rgb[c] / alpha), 0, 255); + } + } + return ToolImages.EncodeRgba(256, 256, output); + } + public static byte[] Normalize(ReadOnlyMemory png, CancellationToken ct = default) + { var image = AccountAppearancePng.DecodeIcon(png); return Crop(new(image.Width, image.Height, image.Rgba), ct: ct); } +} diff --git a/src/SHOU.Launcher.Core/Instances/InstanceIdentity.cs b/src/SHOU.Launcher.Core/Instances/InstanceIdentity.cs new file mode 100644 index 00000000..e56f5e45 --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/InstanceIdentity.cs @@ -0,0 +1,20 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Instances; + +public static class InstanceIdentity +{ + public static bool SupportsModDirectory(string loader) => loader is "fabric" or "legacyfabric" or "quilt" or "forge" or "neoforge" or "cleanroom" or "liteloader"; + public static string GameVersion(GameInstance instance) + { + if (!string.IsNullOrWhiteSpace(instance.GameVersionId)) return SafePath.Identifier(instance.GameVersionId); + if (instance.Loader == "vanilla") return SafePath.Identifier(instance.VersionId); + if (instance.Loader == "fabric" && instance.LoaderVersion is { Length: > 0 } loader) + { + var prefix = "fabric-loader-" + loader + "-"; + if (instance.VersionId.StartsWith(prefix, StringComparison.Ordinal)) return SafePath.Identifier(instance.VersionId[prefix.Length..]); + } + throw new InvalidDataException("此加载器实例缺少原版版本信息,请重新导入或创建实例。"); + } +} diff --git a/src/SHOU.Launcher.Core/Instances/InstanceWorkspace.cs b/src/SHOU.Launcher.Core/Instances/InstanceWorkspace.cs new file mode 100644 index 00000000..ba5907f3 --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/InstanceWorkspace.cs @@ -0,0 +1,110 @@ +using System.IO.Compression; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; +using SHOU.Launcher.Core.Content; + +namespace SHOU.Launcher.Core.Instances; + +/// Works only in a selected instance, never follows links while enumerating or exporting. +public static class InstanceWorkspace +{ + public static string Folder(string gameDirectory, string kind) => SafePath.Within(gameDirectory, kind switch + { "worlds" => "saves", "screenshots" => "screenshots", "mods" => "mods", "resourcepacks" => "resourcepacks", + "shaders" => "shaderpacks", "schematics" => "schematics", _ => throw new ArgumentException("未知实例内容类别。", nameof(kind)) }); + public static string ContentDirectory(GameInstance instance, string kind, string directory) + { + if (kind != "schematics") throw new ArgumentException("此类别不提供资源目录浏览。"); + var root = Folder(instance.GameDirectory, kind); + var folder = directory.Length == 0 ? root : ContentInstallFiles.Literal(root, directory); + SafePath.RejectLinks(folder); return folder; + } + public static IReadOnlyList List(GameInstance instance, string kind, CancellationToken ct = default, string subdirectory = "", bool includeDirectories = false) + { + var folder = includeDirectories || subdirectory.Length > 0 ? ContentDirectory(instance, kind, subdirectory) : Folder(instance.GameDirectory, kind); + SafePath.RejectLinks(folder); + if (subdirectory.Length > 0 && !System.IO.Directory.Exists(folder)) throw new DirectoryNotFoundException("资源目录已移动,请返回上一级。"); + if (!System.IO.Directory.Exists(folder)) return []; + var entries = new List(); + var iconBytes = 0; + foreach (var item in new DirectoryInfo(folder).EnumerateFileSystemInfos().OrderByDescending(i => i.LastWriteTimeUtc)) + { + ct.ThrowIfCancellationRequested(); + if (item.LinkTarget is not null || (item.Attributes & FileAttributes.ReparsePoint) != 0) continue; + var directory = item is DirectoryInfo; + if (directory && kind != "worlds" && !includeDirectories || !directory && kind == "worlds") continue; + if (!directory && !Accepts(kind, item.Name)) continue; + var file = SafePath.Within(folder, item.Name); + var relative = Path.GetRelativePath(instance.GameDirectory, file).Replace('\\', '/'); + var metadata = !directory && kind == "mods" ? ModArchiveMetadata.Read(file, iconBytes < 16 * 1024 * 1024) : null; + var resource = !directory && kind is "resourcepacks" or "shaders" ? ResourceArchiveMetadata.Read(file, iconBytes < 16 * 1024 * 1024, ct) : null; + iconBytes += metadata?.Icon?.Length ?? resource?.Icon?.Length ?? 0; + entries.Add(new(item.Name, relative, file, kind, directory ? 0 : ((FileInfo)item).Length, + item.LastWriteTimeUtc, !item.Name.EndsWith(".disabled", StringComparison.OrdinalIgnoreCase) && !item.Name.EndsWith(".old", StringComparison.OrdinalIgnoreCase), directory, + metadata?.Name ?? resource?.Name, metadata?.Version, metadata?.Icon ?? resource?.Icon, metadata?.Id, metadata?.Description ?? resource?.Description, + metadata?.Dependencies, metadata?.Embedded, metadata?.Error ?? resource?.Error, item.CreationTimeUtc)); + } + return entries; + } + public static bool Accepts(string kind, string name) + { + var extension = Path.GetExtension(name.EndsWith(".disabled", StringComparison.OrdinalIgnoreCase) ? name[..^9] : name.EndsWith(".old", StringComparison.OrdinalIgnoreCase) ? name[..^4] : name).ToLowerInvariant(); + return kind switch { "mods" => extension is ".jar" or ".litemod", "screenshots" => extension is ".png" or ".jpg" or ".jpeg" or ".bmp" or ".webp" or ".tif" or ".tiff", + "resourcepacks" or "shaders" => extension == ".zip", "schematics" => extension is ".litematic" or ".schematic" or ".schem" or ".nbt", _ => false }; + } + public static async Task ImportAsync(GameInstance instance, string kind, string source, CancellationToken ct, string directory = "") + { + if (!Path.IsPathFullyQualified(source)) throw new ArgumentException("导入文件须为绝对路径。"); + var input = new FileInfo(source); + if (!input.Exists || input.LinkTarget is not null || !Accepts(kind, input.Name)) throw new InvalidDataException("此文件不能导入所选类别。"); + var name = kind == "mods" ? input.Name.EndsWith(".disabled", StringComparison.OrdinalIgnoreCase) ? input.Name[..^9] : input.Name.EndsWith(".old", StringComparison.OrdinalIgnoreCase) ? input.Name[..^4] : input.Name : input.Name; + if (kind == "mods" && (!InstanceIdentity.SupportsModDirectory(instance.Loader) || name.EndsWith(".litemod", StringComparison.OrdinalIgnoreCase) && instance.Loader != "liteloader")) throw new InvalidOperationException("此实例的加载器不支持该模组目录或文件类型,未导入。"); + var folder = directory.Length == 0 ? Folder(instance.GameDirectory, kind) : ContentDirectory(instance, kind, directory); + SafePath.RejectLinks(folder); + if (directory.Length > 0 && !System.IO.Directory.Exists(folder)) throw new DirectoryNotFoundException("资源目录已移动,未改为安装到根目录。"); + System.IO.Directory.CreateDirectory(folder); + var target = SafePath.Within(folder, name); + if (Path.GetFullPath(source).Equals(target, OperatingSystem.IsWindows() || OperatingSystem.IsMacOS() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal)) return; + if (File.Exists(target) && kind != "mods") throw new IOException("同名文件已存在,原文件保留。"); + var sourceModified = input.LastWriteTimeUtc; + var temporary = SafePath.Within(folder, ".import-" + Guid.NewGuid().ToString("N")); + try + { + await using (var from = new FileStream(source, FileMode.Open, FileAccess.Read, FileShare.Read, 65536, true)) + await using (var to = new FileStream(temporary, FileMode.CreateNew, FileAccess.Write, FileShare.None, 65536, true)) + { + if (from.Length != input.Length) throw new IOException("导入文件在复制前发生变化。"); + await from.CopyToAsync(to, ct).ConfigureAwait(false); + if (to.Length != input.Length) throw new IOException("导入文件复制不完整。"); + } + input.Refresh(); + if (!input.Exists || input.Length != new FileInfo(temporary).Length || input.LastWriteTimeUtc != sourceModified) throw new IOException("导入源在复制期间发生变化,未安装。"); + SafePath.RejectLinks(target); var relative = Path.GetRelativePath(instance.GameDirectory, target).Replace('\\', '/'); + if (kind == "mods" && File.Exists(target)) await ModFileManagement.ReplaceImportedAsync(instance, relative, temporary, ct).ConfigureAwait(false); + else File.Move(temporary, target, false); + } + finally { if (File.Exists(temporary)) File.Delete(temporary); } + } + public static void ToggleMod(GameInstance instance, string relative, bool enabled) + { + if (!relative.StartsWith("mods/", StringComparison.Ordinal) || relative[5..].Contains('/') || relative.Contains('\\') || !Accepts("mods", relative)) + throw new IOException("模组路径无效。"); + var source = SafePath.Within(instance.GameDirectory, relative); + var file = new FileInfo(source); + if (!file.Exists || file.LinkTarget is not null) throw new IOException("模组文件不存在或为链接。"); + var oldSuffix = source.EndsWith(".old", StringComparison.OrdinalIgnoreCase); + var isEnabled = !source.EndsWith(".disabled", StringComparison.OrdinalIgnoreCase) && !oldSuffix; + if (isEnabled == enabled) return; + var next = enabled ? relative[..^(oldSuffix ? 4 : 9)] : relative + ".disabled"; + var target = SafePath.Within(instance.GameDirectory, next); + File.Move(source, target, false); + } + public static Task ExportAsync(GameInstance instance, string outputDirectory, bool includeWorlds, CancellationToken ct) + => Content.ShouPackArchive.ExportAsync(instance, outputDirectory, includeWorlds, ct); + private static void RejectLiteralLink(string path, bool directory) + { + FileSystemInfo info = directory ? new DirectoryInfo(path) : new FileInfo(path); + if (info.LinkTarget is not null || info.Exists && (info.Attributes & FileAttributes.ReparsePoint) != 0) + throw new IOException("导出不跟随实例中的链接:" + info.Name); + } +} diff --git a/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.Backups.cs b/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.Backups.cs new file mode 100644 index 00000000..ec845648 --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.Backups.cs @@ -0,0 +1,168 @@ +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; + +namespace SHOU.Launcher.Core.Instances; + +internal sealed record DatapackUpdateJournalFile(string? OldName, string NewName, string Sha256, string? OldHash, bool OldDirectory, bool Enable); +internal sealed record DatapackUpdateJournal(int Format, string World, DateTimeOffset Created, string OriginalRevision, string AfterRevision, + string LevelBefore, string LevelAfter, string ManifestBefore, string ManifestAfter, IReadOnlyList Files); +internal sealed record DatapackRestoreState(string Revision, string WorkspaceRevision, string Directory, DatapackUpdateJournal Journal, + byte[] LevelBefore, byte[] LevelAfter, byte[]? ManifestBefore, byte[]? ManifestAfter, IReadOnlyDictionary Originals); + +public sealed partial class InstanceWorldStore +{ + private const int DatapackJournalLimit = 256 * 1024; + private string DatapackBackupRoot(string world) => WorldChild(world, ".shou-backups/datapack-updates"); + private string DatapackBackupPath(string world, string id) => Path.Combine(DatapackBackupRoot(world), TrashId(id)); + public string GetDatapackBackupDirectory(string world, string id) + { var path = DatapackBackupPath(world, id); var guard = Capture(path); if (!guard.Final.Directory) throw new IOException("备份目录不存在。"); guard.Verify(); return path; } + private async Task<(DatapackUpdateJournal Journal, byte[] Bytes)> ReadDatapackJournalAsync(string world, string directory, CancellationToken ct) + { + var bytes = await ReadOptionalAsync(Path.Combine(directory, "receipt.json"), DatapackJournalLimit, ct) ?? throw new IOException("更新备份缺少收据。"); + using var json = JsonDocument.Parse(bytes, new() { MaxDepth = 16 }); + if (json.RootElement.GetProperty("Format").GetInt32() != 2) throw new NotSupportedException("旧版备份缺少完整恢复快照,仅保留供手动核对。"); + var journal = JsonSerializer.Deserialize(bytes, new JsonSerializerOptions { MaxDepth = 16 }) ?? throw new InvalidDataException("更新备份收据无效。"); + if (journal.World != world || journal.Files is null || journal.Files.Count is < 1 or > 64 || journal.Files.Any(f => f is null || f.NewName is null || !ContentInstallFiles.Hash(f.Sha256, 64) || f.OldName is not null && !ContentInstallFiles.Hash(f.OldHash, 64)) || + new[] { journal.OriginalRevision, journal.AfterRevision, journal.LevelBefore, journal.LevelAfter }.Any(h => !ContentInstallFiles.Hash(h, 64)) || + new[] { journal.ManifestBefore, journal.ManifestAfter }.Any(h => h != "missing" && !ContentInstallFiles.Hash(h, 64)) || (journal.ManifestBefore == "missing") != (journal.ManifestAfter == "missing")) throw new InvalidDataException("更新备份收据字段无效。"); + foreach (var file in journal.Files) { _ = Leaf(file.NewName); if (!file.NewName.EndsWith(".zip", StringComparison.OrdinalIgnoreCase)) throw new InvalidDataException("更新文件名无效。"); if (file.OldName is { } old) _ = Leaf(old); } + if (journal.Files.Select(f => ContentInstallFiles.PathKey(f.NewName)).Distinct().Count() != journal.Files.Count || journal.Files.Where(f => f.OldName is not null).Select(f => ContentInstallFiles.PathKey(f.OldName!)).Distinct().Count() != journal.Files.Count(f => f.OldName is not null)) throw new InvalidDataException("更新备份包含重复名称。"); + return (journal, bytes); + } + public async Task> GetDatapackBackupsAsync(string world, CancellationToken ct = default) + { + var state = await ReadDatapackWorkspaceAsync(world, ct); var root = DatapackBackupRoot(world); var guard = Capture(root, true); if (!guard.Exists) return []; + var directories = Directory.EnumerateDirectories(root).Take(257).ToArray(); if (directories.Length > 256) throw new IOException("更新备份超过 256 条,请先备份整理。"); + var entries = new List(); + foreach (var directory in directories) + { + ct.ThrowIfCancellationRequested(); var id = Path.GetFileName(directory); if (!Guid.TryParseExact(id, "N", out _)) continue; + try + { + _ = Capture(directory); var (item, _) = await ReadDatapackJournalAsync(world, directory, ct); + var restored = Capture(Path.Combine(directory, "restored"), true).Exists; + var completed = Capture(Path.Combine(directory, "complete"), true).Exists && !Capture(Path.Combine(directory, "rolled-back"), true).Exists; + var unchanged = item.AfterRevision == state.Revision; + entries.Add(new(id, item.Created, item.Files.Select(f => f.OldName ?? f.NewName).ToArray(), completed && !restored && unchanged, + restored ? "已恢复;原备份与替换版本仍保留。" : !completed ? "更新未完成;仅保留恢复资料,未允许自动恢复。" : !unchanged ? "存档、数据包或来源清单已有后续修改,禁止覆盖恢复。" : "可检查恢复")); + } + catch (Exception ex) when (ex is IOException or InvalidDataException or JsonException or NotSupportedException or ArgumentException or InvalidOperationException or KeyNotFoundException or UnauthorizedAccessException) + { entries.Add(new(id, DateTimeOffset.MinValue, [id[..8]], false, ex is NotSupportedException ? ex.Message : "备份记录损坏或不可读取,文件保留,请先手动核对。")); } + } + guard.Verify(); return entries.OrderByDescending(e => e.Created).ToArray(); + } + internal async Task PrepareDatapackRestoreAsync(string world, string id, CancellationToken ct) + { + var directory = GetDatapackBackupDirectory(world, id); var (journal, receipt) = await ReadDatapackJournalAsync(world, directory, ct); + if (!Capture(Path.Combine(directory, "complete"), true).Exists || Capture(Path.Combine(directory, "rolled-back"), true).Exists || Capture(Path.Combine(directory, "restored"), true).Exists) throw new IOException("此备份未完成或已经恢复,未重复覆盖。"); + var state = await ReadDatapackWorkspaceAsync(world, ct); if (state.Revision != journal.AfterRevision) throw new IOException("存档、数据包或来源清单已有后续修改,未覆盖恢复。"); + var before = await ReadOptionalAsync(Path.Combine(directory, "level.before"), nbtLimits.MaxInputBytes, ct) ?? throw new IOException("原存档快照缺失。"); + var after = await ReadOptionalAsync(Path.Combine(directory, "level.after"), nbtLimits.MaxInputBytes, ct) ?? throw new IOException("更新后快照缺失。"); + var mb = await ReadOptionalAsync(Path.Combine(directory, "manifest.before"), 4 * 1024 * 1024, ct); var ma = await ReadOptionalAsync(Path.Combine(directory, "manifest.after"), 4 * 1024 * 1024, ct); + if (Revision(before) != journal.LevelBefore || Revision(after) != journal.LevelAfter || Revision(mb) != journal.ManifestBefore || Revision(ma) != journal.ManifestAfter) throw new IOException("备份元数据校验失败。"); + var originalWorld = ParseEditableWorld(before, ct); var afterWorld = ParseEditableWorld(after, ct); + if (ManagementFormat(originalWorld) != state.Format || originalWorld.Version != state.Version || originalWorld.DataVersion != state.DataVersion || afterWorld.Version != state.Version || afterWorld.DataVersion != state.DataVersion || originalWorld.Enabled is null || originalWorld.Disabled is null) throw new InvalidDataException("备份与当前世界版本或格式不符。"); + var originals = new Dictionary(StringComparer.Ordinal); long total = 0; + foreach (var file in journal.Files) + { + if (!state.Packs.TryGetValue(file.NewName, out var active) || active.Directory || active.Hash != file.Sha256) throw new IOException("更新后的数据包已改变。"); + if (file.OldName is not { } name) continue; + var pack = await FingerprintManagedPackAsync(Path.Combine(directory, "payload", name), ct); total += pack.Guards.Where(g => !g.Final.Directory).Sum(g => g.Final.Size); + if (total > 256L * 1024 * 1024) throw new IOException("恢复备份超过 256 MiB 预算。"); + if (pack.Hash != file.OldHash || pack.Directory != file.OldDirectory) throw new IOException("原数据包备份校验失败。"); originals.Add(name, pack); + } + var replaced = journal.Files.Select(f => f.NewName).ToHashSet(StringComparer.Ordinal); var untouched = state.Packs.Values.Where(p => !replaced.Contains(p.Name)).ToArray(); + if (untouched.Concat(originals.Values).Select(p => ContentInstallFiles.PathKey(p.Name)).Distinct().Count() != untouched.Length + originals.Count) throw new IOException("恢复目标存在大小写或 Unicode 重名。"); + if (DatapackWorkspaceRevision(before, mb, untouched.Concat(originals.Values)) != journal.OriginalRevision) throw new IOException("恢复前状态与原始修订不符,未猜测恢复范围。"); + foreach (var pack in originals.Values) foreach (var snapshot in pack.Guards) snapshot.Verify(); + if ((await ReadDatapackWorkspaceAsync(world, ct)).Revision != state.Revision) throw new IOException("核对恢复期间目标改变。"); + return new(Revision(receipt), state.Revision, directory, journal, before, after, mb, ma, originals); + } + private async Task CopyBackupPackAsync(ManagedDatapack source, string destination, CancellationToken ct) + { + foreach (var guard in source.Guards) guard.Verify(); var root = source.Guards[0].Path; + if (source.Directory) EnsureTrashDirectory(destination); + foreach (var guard in source.Guards) + { + ct.ThrowIfCancellationRequested(); var path = source.Directory ? Path.Combine(destination, Path.GetRelativePath(root, guard.Path)) : destination; + if (guard.Final.Directory) EnsureTrashDirectory(path); + else { var bytes = await ReadGuardedAsync(guard, limits.MaxPackBytes, ct); await SaveTrashFileAsync(Path.GetDirectoryName(path)!, Path.GetFileName(path), bytes, ct); } + } + foreach (var guard in source.Guards) guard.Verify(); + if ((await FingerprintManagedPackAsync(destination, ct)).Hash != source.Hash) throw new IOException("恢复暂存副本校验失败。"); + } + internal async Task RestoreDatapackBackupAsync(string world, string id, string expectedWorkspace, string expectedReceipt, CancellationToken ct) + { + await mutation.WaitAsync(ct); + try + { + var plan = await PrepareDatapackRestoreAsync(world, id, ct); + if (plan.WorkspaceRevision != expectedWorkspace || plan.Revision != expectedReceipt) throw new IOException("恢复预检已过期,请重新检查。"); + var key = Guid.NewGuid().ToString("N"); var stage = WorldChild(world, ".shou-datapack-restore-" + key); var preserved = Path.Combine(plan.Directory, "restore-current", key); + EnsureTrashDirectory(stage); var stageGuard = Capture(stage); EnsureTrashDirectory(Path.Combine(preserved, "payload")); + var displaced = new List(); var published = new List(); + var levelPath = WorldChild(world, "level.dat"); var manifestPath = WorldChild(world, ContentInstallFiles.ManifestName); + void MoveRecorded(string source, string target, bool directory, Action record) + { + var original = Capture(source); + try { MovePack(source, target, directory); } + finally { var result = Capture(target, true); if (result.Exists && result.Final.SameNode(original.Final)) record(); } + } + try + { + foreach (var pack in plan.Originals.Values) { stageGuard.Verify(); await CopyBackupPackAsync(pack, Path.Combine(stage, pack.Name), ct); } + await SaveTrashFileAsync(preserved, "level.before", plan.LevelAfter, ct); if (plan.ManifestAfter is not null) await SaveTrashFileAsync(preserved, "manifest.before", plan.ManifestAfter, ct); + await SaveTrashFileAsync(preserved, "receipt.json", JsonSerializer.SerializeToUtf8Bytes(new { Format = 1, BackupId = id, OriginalRevision = plan.WorkspaceRevision, RestoredRevision = plan.Journal.OriginalRevision }), ct); + var current = await PrepareDatapackRestoreAsync(world, id, ct); if (current.Revision != plan.Revision || current.WorkspaceRevision != plan.WorkspaceRevision) throw new IOException("备份或目标在准备恢复期间改变。"); + foreach (var file in plan.Journal.Files) + { + ct.ThrowIfCancellationRequested(); MoveRecorded(WorldChild(world, "datapacks/" + file.NewName), Path.Combine(preserved, "payload", file.NewName), false, () => displaced.Add(file)); + } + foreach (var pack in plan.Originals.Values) + { + ct.ThrowIfCancellationRequested(); stageGuard.Verify(); var target = WorldChild(world, "datapacks/" + pack.Name); RequireVacantPackPath(target); + MoveRecorded(Path.Combine(stage, pack.Name), target, pack.Directory, () => published.Add(pack)); + } + foreach (var file in displaced) if ((await FingerprintManagedPackAsync(Path.Combine(preserved, "payload", file.NewName), ct)).Hash != file.Sha256) throw new IOException("替换版本保存核验失败。"); + if (!SameBytes(plan.LevelAfter, plan.LevelBefore)) await AtomicWriteAsync(levelPath, plan.LevelBefore, plan.LevelAfter, ct); + if (!SameBytes(plan.ManifestAfter, plan.ManifestBefore)) await AtomicWriteAsync(manifestPath, plan.ManifestBefore!, plan.ManifestAfter, ct); + if ((await ReadDatapackWorkspaceAsync(world, ct)).Revision != plan.Journal.OriginalRevision) throw new IOException("恢复后的文件或元数据核验失败。"); + ct.ThrowIfCancellationRequested(); + // This marker is the commit point. A later cancellation must not turn a completed restore into a rollback. + await AtomicWriteAsync(Path.Combine(plan.Directory, "restored"), Encoding.UTF8.GetBytes(key), null, CancellationToken.None); + return new(plan.Directory, preserved); + } + catch (Exception error) + { + try + { + var marker = Capture(Path.Combine(plan.Directory, "restored"), true); + if (marker.Exists) + { + if (!SameBytes(await ReadGuardedAsync(marker, 128, CancellationToken.None), Encoding.UTF8.GetBytes(key))) throw new IOException("恢复完成标记被其它操作占用。"); + marker.Verify(); File.Delete(marker.Path); + } + await RollbackMetadataAsync(manifestPath, plan.ManifestAfter, plan.ManifestBefore, 4 * 1024 * 1024); + await RollbackMetadataAsync(levelPath, plan.LevelAfter, plan.LevelBefore, nbtLimits.MaxInputBytes); + foreach (var pack in published.AsEnumerable().Reverse()) + { + var source = WorldChild(world, "datapacks/" + pack.Name); if ((await FingerprintManagedPackAsync(source, CancellationToken.None)).Hash != pack.Hash) throw new IOException("恢复目标被其它程序改变。"); MovePack(source, Path.Combine(stage, pack.Name), pack.Directory); + } + foreach (var file in displaced.AsEnumerable().Reverse()) + { + var target = WorldChild(world, "datapacks/" + file.NewName); RequireVacantPackPath(target); var source = Path.Combine(preserved, "payload", file.NewName); + if ((await FingerprintManagedPackAsync(source, CancellationToken.None)).Hash != file.Sha256) throw new IOException("替换版本已改变,未覆盖当前文件。"); MovePack(source, target, false); + } + await SaveTrashFileAsync(preserved, "rolled-back", [], CancellationToken.None); + } + catch (Exception rollback) { throw new IOException("恢复及自动回滚未完成;原备份和替换版本保留在更新备份目录,请先核对,勿覆盖现有文件。", new AggregateException(error, rollback)); } + throw; + } + finally { stageGuard.Verify(); if (Directory.Exists(stage)) Directory.Delete(stage, true); } + } + finally { mutation.Release(); } + } +} diff --git a/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.Edit.cs b/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.Edit.cs new file mode 100644 index 00000000..af67fe8c --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.Edit.cs @@ -0,0 +1,183 @@ +using System.IO.Compression; +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Instances; + +public sealed partial class InstanceWorldStore +{ + private const int KnownWorldVersion = 3955, KnownPackFormat = 48, MaximumPackMetadata = 65536; + private const string KnownGameVersion = "1.21.1"; + private const string SupportedEditCapability = "仅当前隔离实例且游戏停止时可保存;已验证 Java 1.21.1,保存前自动备份 level.dat。"; + private sealed record EditableWorld(byte[] Bytes, NbtDocument Document, NbtTag Data, WorldMetadataValues Values, + int? DataVersion, string? Version, List? Enabled, List? Disabled, bool Hardcore) + { + public bool KnownVersion => DataVersion == KnownWorldVersion && Version == KnownGameVersion; + public bool CanEdit => KnownVersion && Values.AllowCommands is not null && Values.Difficulty is not null && Values.DifficultyLocked is not null; + } + public async Task GetEditStateAsync(string worldDirectoryName, CancellationToken ct = default) + { + var world = await ReadEditableWorldAsync(worldDirectoryName, ct); var files = await GetDatapacksAsync(worldDirectoryName, ct); + var canToggle = world.KnownVersion && world.Enabled is not null && world.Disabled is not null; + var packs = new List(); var budget = new PackReadBudget(); + foreach (var file in files) + { + var id = "file/" + file.Name; bool? enabled = world.Enabled?.Contains(id, StringComparer.Ordinal) == true ? true : world.Disabled?.Contains(id, StringComparer.Ordinal) == true ? false : null; + try + { + var info = await InspectPackAsync(worldDirectoryName, file, budget, ct); + packs.Add(new(file, id, info.Revision, enabled, info.Description, info.Format, + canToggle && info.ToggleSafe, !canToggle ? "此世界的启停写入版本或列表尚未验证。" : info.Capability)); + } + catch (Exception ex) when (ex is IOException or InvalidDataException or JsonException or UnauthorizedAccessException or ArgumentException) + { packs.Add(new(file, id, "", enabled, "", null, false, "无法安全读取此数据包(" + ex.GetType().Name + ");启停已禁用。")); } + } + return new(Revision(world.Bytes), world.DataVersion, world.Version, world.Values, packs, world.CanEdit, canToggle, + !world.KnownVersion ? "世界元数据与启停写入仅验证 Java 1.21.1(3955);更新/排序使用独立管理入口。" : !world.CanEdit ? "存档设置字段不完整,设置保存已禁用;原文件保留。" : SupportedEditCapability); + } + public async Task SaveMetadataAsync(string worldDirectoryName, string expectedRevision, WorldMetadataEdit edit, CancellationToken ct = default) + { + ArgumentNullException.ThrowIfNull(edit); + if (edit.Difficulty is < 0 or > 3) throw new InvalidDataException("游戏难度须在 0 至 3 之间。"); + await mutation.WaitAsync(ct); + try + { + var world = await ReadEditableWorldAsync(worldDirectoryName, ct); RequireWorldRevision(world, expectedRevision); + if (!world.CanEdit) throw new InvalidOperationException("此世界的版本或设置字段尚未验证,不能保存。"); + if (world.Hardcore && edit.Difficulty != 3) throw new InvalidOperationException("极限模式的难度必须保持困难。"); + if (world.Values.DifficultyLocked == true && edit.DifficultyLocked && edit.Difficulty != world.Values.Difficulty) throw new InvalidOperationException("请先明确解除难度锁定,再修改难度。"); + if (world.Values.AllowCommands == edit.AllowCommands && world.Values.Difficulty == edit.Difficulty && world.Values.DifficultyLocked == edit.DifficultyLocked) return new(expectedRevision, null); + var data = world.Data.Children.ToList(); Replace(data, new(NbtType.Byte, "allowCommands", (sbyte)(edit.AllowCommands ? 1 : 0))); + Replace(data, new(NbtType.Byte, "Difficulty", (sbyte)edit.Difficulty)); Replace(data, new(NbtType.Byte, "DifficultyLocked", (sbyte)(edit.DifficultyLocked ? 1 : 0))); + return await CommitWorldDataAsync(worldDirectoryName, world, data, ct); + } + finally { mutation.Release(); } + } + public async Task SetDatapacksEnabledAsync(string worldDirectoryName, string expectedRevision, IReadOnlyList selected, bool enabled, CancellationToken ct = default) + { + ArgumentNullException.ThrowIfNull(selected); + if (selected.Count is < 1 or > 64 || selected.Select(p => p.PackId).Distinct(StringComparer.Ordinal).Count() != selected.Count) throw new InvalidDataException("请选择 1 至 64 个不同的数据包。"); + await mutation.WaitAsync(ct); + try + { + var world = await ReadEditableWorldAsync(worldDirectoryName, ct); RequireWorldRevision(world, expectedRevision); + if (!world.KnownVersion || world.Enabled is null || world.Disabled is null) throw new InvalidOperationException("此世界的 DataPacks 状态或版本尚未验证,不能写入。"); + var files = await GetDatapacksAsync(worldDirectoryName, ct); var budget = new PackReadBudget(); var guards = new List(); + foreach (var selection in selected) + { + if (selection.PackId.Length > 1024 || !selection.PackId.StartsWith("file/", StringComparison.Ordinal)) throw new InvalidDataException("只能更改明确选择的本地文件数据包;内建包不能修改。"); + var leaf = Leaf(selection.PackId[5..]); var file = files.SingleOrDefault(f => f.Name == leaf) ?? throw new IOException("所选数据包文件已经改变或缺失。"); + var info = await InspectPackAsync(worldDirectoryName, file, budget, ct); + if (!info.ToggleSafe) throw new InvalidOperationException(info.Capability); + if (selection.ContentRevision != info.Revision) throw new IOException("数据包内容已改变,请重新读取后再选择。"); + guards.AddRange(info.Guards); + } + var active = world.Enabled.ToList(); var inactive = world.Disabled.ToList(); var beforeActive = active.ToArray(); var beforeInactive = inactive.ToArray(); + foreach (var selection in selected) + { var target = enabled ? active : inactive; var other = enabled ? inactive : active; other.Remove(selection.PackId); if (!target.Contains(selection.PackId, StringComparer.Ordinal)) target.Add(selection.PackId); } + if (active.SequenceEqual(beforeActive) && inactive.SequenceEqual(beforeInactive)) return new(expectedRevision, null); + var packs = world.Data.Find("DataPacks")!.Children.ToList(); Replace(packs, StringList("Enabled", active)); Replace(packs, StringList("Disabled", inactive)); + var data = world.Data.Children.ToList(); Replace(data, world.Data.Find("DataPacks")! with { Value = packs }); + foreach (var guard in guards) guard.Verify(); + var receipt = await CommitWorldDataAsync(worldDirectoryName, world, data, ct); + foreach (var guard in guards) guard.Verify(); + return receipt; + } + finally { mutation.Release(); } + } + private async Task ReadEditableWorldAsync(string world, CancellationToken ct) + { + var bytes = await ReadOptionalAsync(WorldChild(world, "level.dat"), nbtLimits.MaxInputBytes, ct) ?? throw new InvalidDataException("世界缺少 level.dat。"); + return ParseEditableWorld(bytes, ct); + } + private EditableWorld ParseEditableWorld(byte[] bytes, CancellationToken ct) + { + var document = BoundedNbt.Read(bytes, nbtLimits, ct); var data = document.Root.Find("Data"); + if (data is not { Type: NbtType.Compound }) throw new InvalidDataException("世界缺少 Java Data compound。"); + var version = data.Find("Version"); if (version is not null && version.Type != NbtType.Compound) throw new InvalidDataException("世界版本字段类型无效。"); + var difficulty = ReadByte(data.Find("Difficulty")); if (difficulty is < 0 or > 3) throw new InvalidDataException("世界难度字段无效。"); + var values = new WorldMetadataValues(ReadBoolean(data.Find("allowCommands")), difficulty, ReadBoolean(data.Find("DifficultyLocked")), + ReadInt(data.Find("SpawnX")), ReadInt(data.Find("SpawnY")), ReadInt(data.Find("SpawnZ")), ReadLong(data.Find("Time"))); + var packs = data.Find("DataPacks"); if (packs is not null && packs.Type != NbtType.Compound) throw new InvalidDataException("世界 DataPacks 字段类型无效。"); + var enabled = ReadPackList(packs?.Find("Enabled")); var disabled = ReadPackList(packs?.Find("Disabled")); + if (enabled is not null && disabled is not null && enabled.Intersect(disabled, StringComparer.Ordinal).Any()) throw new InvalidDataException("同一数据包同时处于启用和禁用列表,原文件保留。"); + return new(bytes, document, data, values, ReadInt(data.Find("DataVersion")), ReadString(version?.Find("Name")), enabled, disabled, ReadBoolean(data.Find("hardcore")) == true); + } + private static int? ReadByte(NbtTag? tag) => tag is null ? null : tag.Type == NbtType.Byte ? (sbyte)tag.Value : throw new InvalidDataException("世界设置字段须为 Byte。"); + private static bool? ReadBoolean(NbtTag? tag) => ReadByte(tag) switch { null => null, 0 => false, 1 => true, _ => throw new InvalidDataException("世界布尔字段须为 0 或 1。") }; + private List? ReadPackList(NbtTag? tag) + { + if (tag is null) return null; + if (tag is not { Type: NbtType.List, Value: NbtList list } || list.ElementType != NbtType.String && !(list.Items.Count == 0 && list.ElementType == NbtType.End) || list.Items.Count > limits.MaxDatapacks) throw new InvalidDataException("世界数据包状态列表无效。"); + var result = list.Items.Select(item => ReadString(item) ?? throw new InvalidDataException("数据包标识无效。" )).ToList(); + if (result.Any(id => id.Length is < 1 or > 1024 || id.Any(char.IsControl)) || result.Distinct(StringComparer.Ordinal).Count() != result.Count) throw new InvalidDataException("数据包标识重复或超过边界。"); + return result; + } + private static NbtTag StringList(string name, List values) => new(NbtType.List, name, new NbtList(NbtType.String, values.Select(value => new NbtTag(NbtType.String, "", value)).ToArray())); + private static void RequireWorldRevision(EditableWorld world, string expected) + { if (Revision(world.Bytes) != expected) throw new IOException("level.dat 已改变,请保留草稿并重新读取后核对。"); } + private async Task CommitWorldDataAsync(string worldDirectory, EditableWorld original, List values, CancellationToken ct) + { + var root = original.Document.Root.Children.ToList(); Replace(root, original.Data with { Value = values }); + var output = BoundedNbt.Write(original.Document with { Root = original.Document.Root with { Value = root } }, nbtLimits, ct); + var backup = await AtomicWriteAsync(WorldChild(worldDirectory, "level.dat"), output, original.Bytes, ct); return new(Revision(output), backup); + } + private sealed class PackReadBudget { public long Bytes, Expanded; public int Entries; } + private sealed record PackInspection(string Revision, string Description, int? Format, bool ToggleSafe, string Capability, IReadOnlyList Guards); + private async Task InspectPackAsync(string world, WorldDatapackFile file, PackReadBudget budget, CancellationToken ct) + { + var path = WorldChild(world, "datapacks/" + Leaf(file.Name)); var guard = Capture(path); var guards = new List { guard }; byte[] metadata; string revision; + if (file.IsDirectory) + { + var identities = new List(); var pending = new Stack<(string Path, int Depth)>(); pending.Push((path, 0)); long total = 0; + while (pending.TryPop(out var current)) + { + if (current.Depth > 32) throw new InvalidDataException("数据包目录过深。"); ct.ThrowIfCancellationRequested(); + var directory = Capture(current.Path); guards.Add(directory); + foreach (var item in Directory.EnumerateFileSystemEntries(current.Path).Take(limits.MaxPackEntries - budget.Entries + 1).Order(StringComparer.Ordinal)) + { + if (++budget.Entries > limits.MaxPackEntries) throw new InvalidDataException("数据包文件数量超过读取预算。"); + var node = Capture(item); guards.Add(node); identities.Add(item + ":" + node.Final); + if (node.Final.Directory) pending.Push((item, current.Depth + 1)); + else if ((total += node.Final.Size) > limits.MaxPackExpandedBytes || (budget.Expanded += node.Final.Size) > 512L * 1024 * 1024) throw new InvalidDataException("数据包目录超过读取预算。"); + } + directory.Verify(); + } + var meta = Capture(Path.Combine(path, "pack.mcmeta")); guards.Add(meta); metadata = await ReadGuardedAsync(meta, MaximumPackMetadata, ct); + revision = Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(string.Join('\n', identities) + "\n" + Convert.ToHexString(SHA256.HashData(metadata))))).ToLowerInvariant(); + } + else + { + if ((budget.Bytes += guard.Final.Size) > 128L * 1024 * 1024) throw new InvalidDataException("数据包 ZIP 总读取预算已用尽。"); + var bytes = await ReadGuardedAsync(guard, limits.MaxPackBytes, ct); ValidateZipDirectoryBudget(bytes); + using var memory = new MemoryStream(bytes, false); using var zip = new ZipArchive(memory, ZipArchiveMode.Read); + foreach (var entry in zip.Entries) if (++budget.Entries > limits.MaxPackEntries || (budget.Expanded += entry.Length) > 512L * 1024 * 1024) throw new InvalidDataException("数据包 ZIP 总解压预算已用尽。"); + await ValidateDatapackAsync(bytes, ct); + var meta = zip.GetEntry("pack.mcmeta") ?? throw new InvalidDataException("数据包缺少根 pack.mcmeta。"); + if (meta.Length > MaximumPackMetadata) throw new InvalidDataException("数据包元数据超过上限。"); + metadata = new byte[checked((int)meta.Length)]; using var stream = meta.Open(); await stream.ReadExactlyAsync(metadata, ct); revision = Revision(bytes); + } + foreach (var item in guards) item.Verify(); + _ = new UTF8Encoding(false, true).GetCharCount(metadata); + using var json = JsonDocument.Parse(metadata, new JsonDocumentOptions { MaxDepth = 16 }); + if (json.RootElement.ValueKind != JsonValueKind.Object || !json.RootElement.TryGetProperty("pack", out var pack) || pack.ValueKind != JsonValueKind.Object) throw new InvalidDataException("数据包元数据缺少 pack 对象。"); + var format = pack.TryGetProperty("pack_format", out var value) && value.ValueKind == JsonValueKind.Number && value.TryGetInt32(out var number) && number > 0 ? number : (int?)null; + var description = pack.TryGetProperty("description", out var text) ? Description(text, 0) : ""; + var featurePack = json.RootElement.TryGetProperty("features", out _); var safe = format == KnownPackFormat && !featurePack; + return new(revision, description, format, safe, featurePack ? "包含实验特性声明,不可在启动器中更改启停。" : format != KnownPackFormat ? "仅验证数据包格式 48;此数据包启停已禁用。" : "已核实本地文件与格式;启停在下次进入世界时生效。", guards); + } + private static string Description(JsonElement element, int depth) + { + if (depth > 8) return ""; + var text = element.ValueKind switch + { + JsonValueKind.String => element.GetString() ?? "", + JsonValueKind.Array => string.Concat(element.EnumerateArray().Take(64).Select(item => Description(item, depth + 1))), + JsonValueKind.Object => (element.TryGetProperty("text", out var textValue) ? Description(textValue, depth + 1) : element.TryGetProperty("translate", out var translated) && translated.ValueKind == JsonValueKind.String ? translated.GetString() ?? "" : "") + (element.TryGetProperty("extra", out var extra) ? Description(extra, depth + 1) : ""), + _ => "" + }; + return new string(text.Where(c => !char.IsControl(c) || c is '\n' or '\t').Take(2048).ToArray()); + } +} diff --git a/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.Management.cs b/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.Management.cs new file mode 100644 index 00000000..8ef840df --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.Management.cs @@ -0,0 +1,129 @@ +using System.Security.Cryptography; +using System.Text; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; + +namespace SHOU.Launcher.Core.Instances; + +internal sealed record ManagedDatapack(string Name, bool Directory, string Hash, IReadOnlyList Guards); +internal sealed record DatapackWorkspace(string Revision, string LevelRevision, string ManifestRevision, byte[]? Manifest, + string Version, int DataVersion, DataPackFormat Format, IReadOnlyList Enabled, IReadOnlyList Disabled, + IReadOnlyDictionary Packs); +internal sealed record DatapackReplacement(string? OldName, string NewName, string Source, string Sha256, bool Enable = false); + +public sealed partial class InstanceWorldStore +{ + private static DataPackFormat ManagementFormat(EditableWorld world) => (world.Version, world.DataVersion) switch + { + ("1.21.1", 3955) => new(48, 0), ("26.2", 4903) => new(107, 1), + _ => throw new NotSupportedException("数据包管理写入目前验证 Java 1.21.1 和 26.2;其它世界版本保持只读。") + }; + private async Task FingerprintManagedPackAsync(string path, CancellationToken ct) + { + var root = Capture(path); var guards = new List { root }; + if (!root.Final.Directory) return new(Path.GetFileName(path), false, Revision(await ReadGuardedAsync(root, limits.MaxPackBytes, ct)), guards); + var files = new List(); var pending = new Stack<(string Path, int Depth)>(); pending.Push((path, 0)); var nodes = 0; + while (pending.TryPop(out var current)) + { + ct.ThrowIfCancellationRequested(); if (current.Depth > 24) throw new IOException("数据包目录过深。"); + foreach (var child in Directory.EnumerateFileSystemEntries(current.Path)) + { + if (++nodes > 5000) throw new IOException("数据包目录超过 5000 项预算。"); var guard = Capture(child); guards.Add(guard); + if (guard.Final.Directory) pending.Push((child, current.Depth + 1)); else files.Add(child); + } + } + using var hash = IncrementalHash.CreateHash(HashAlgorithmName.SHA256); long total = 0; + foreach (var file in files.Order(StringComparer.Ordinal)) + { + var bytes = await ReadGuardedAsync(Capture(file), limits.MaxPackBytes, ct); total += bytes.Length; + if (total > 256L * 1024 * 1024) throw new IOException("数据包目录超过 256 MiB 预算。"); + hash.AppendData(Encoding.UTF8.GetBytes(Path.GetRelativePath(path, file).Replace('\\', '/') + "\0")); hash.AppendData(SHA256.HashData(bytes)); + } + foreach (var guard in guards) guard.Verify(); return new(Path.GetFileName(path), true, Convert.ToHexStringLower(hash.GetHashAndReset()), guards); + } + internal async Task ReadDatapackWorkspaceAsync(string worldDirectoryName, CancellationToken ct) + { + var world = await ReadEditableWorldAsync(worldDirectoryName, ct); var format = ManagementFormat(world); + if (world.Enabled is null || world.Disabled is null) throw new InvalidDataException("存档缺少明确的数据包启停列表,未猜测状态。"); + var manifest = await ReadOptionalAsync(WorldChild(worldDirectoryName, ContentInstallFiles.ManifestName), 4 * 1024 * 1024, ct); + var packs = new Dictionary(StringComparer.Ordinal); var names = new HashSet(); long total = 0; + foreach (var file in await GetDatapacksAsync(worldDirectoryName, ct)) + { + if (!names.Add(ContentInstallFiles.PathKey(file.Name))) throw new IOException("已有数据包存在大小写或 Unicode 重名。"); + var pack = await FingerprintManagedPackAsync(WorldChild(worldDirectoryName, "datapacks/" + Leaf(file.Name)), ct); + total += pack.Guards.Where(g => !g.Final.Directory).Sum(g => g.Final.Size); + if (total > 256L * 1024 * 1024) throw new IOException("已有数据包总读取超过 256 MiB。"); + packs.Add(pack.Name, pack); + } + foreach (var pack in packs.Values) foreach (var guard in pack.Guards) guard.Verify(); + if (Revision(await ReadOptionalAsync(WorldChild(worldDirectoryName, "level.dat"), nbtLimits.MaxInputBytes, ct)) != Revision(world.Bytes) || Revision(await ReadOptionalAsync(WorldChild(worldDirectoryName, ContentInstallFiles.ManifestName), 4 * 1024 * 1024, ct)) != Revision(manifest)) throw new IOException("存档或安装清单在读取期间改变。"); + return new(DatapackWorkspaceRevision(world.Bytes, manifest, packs.Values), Revision(world.Bytes), Revision(manifest), manifest, world.Version!, world.DataVersion!.Value, format, world.Enabled, world.Disabled, packs); + } + private static string DatapackWorkspaceRevision(byte[] level, byte[]? manifest, IEnumerable packs) + { + using var hash = IncrementalHash.CreateHash(HashAlgorithmName.SHA256); hash.AppendData(SHA256.HashData(level)); + if (manifest is not null) hash.AppendData(SHA256.HashData(manifest)); + foreach (var pack in packs.OrderBy(p => p.Name, StringComparer.Ordinal)) hash.AppendData(Encoding.UTF8.GetBytes(pack.Name + "\0" + pack.Hash)); + return Convert.ToHexStringLower(hash.GetHashAndReset()); + } + private async Task InspectManagedPackAsync(string world, ManagedDatapack pack, DataPackFormat format, CancellationToken ct) + { + var path = WorldChild(world, "datapacks/" + Leaf(pack.Name)); + return pack.Directory ? await WorldContentArchive.FolderDatapackAsync(path, format, ct) : await WorldContentArchive.DatapackAsync(path, format, ct); + } + public async Task GetDatapackOrderAsync(string worldDirectoryName, CancellationToken ct = default) + { + var state = await ReadDatapackWorkspaceAsync(worldDirectoryName, ct); var order = new List(); + var resources = new Dictionary(StringComparer.Ordinal); var warnings = new List(); long expanded = 0; + foreach (var id in state.Enabled.Where(id => id.StartsWith("file/", StringComparison.Ordinal))) + { + if (!state.Packs.TryGetValue(Leaf(id[5..]), out var pack)) throw new IOException("已启用数据包文件缺失,请先核对存档。"); + var inspected = await InspectManagedPackAsync(worldDirectoryName, pack, state.Format, ct); expanded += inspected.ExpandedBytes; + if (expanded > 256L * 1024 * 1024 || resources.Count > 50000) throw new IOException("数据包资源超过扫描预算。"); + foreach (var path in inspected.Resources.Keys) + { + if (resources.TryGetValue(path, out var other) && warnings.Count < 10) warnings.Add(other + " / " + pack.Name + ":" + path); + resources[path] = pack.Name; + } + order.Add(new(id, pack.Name, pack.Hash)); + } + foreach (var pack in state.Packs.Values) foreach (var guard in pack.Guards) guard.Verify(); + return new(state.Revision, order, warnings.Distinct().ToArray()); + } + public async Task SaveDatapackOrderAsync(string worldDirectoryName, string expectedRevision, IReadOnlyList order, CancellationToken ct = default) + { + ArgumentNullException.ThrowIfNull(order); if (order.Count > 1024) throw new InvalidDataException("数据包顺序超过预算。"); + await mutation.WaitAsync(ct); + try + { + var state = await ReadDatapackWorkspaceAsync(worldDirectoryName, ct); + if (state.Revision != expectedRevision) throw new IOException("存档或数据包已改变,请保留草稿并重新核对。"); + var currentOrder = await GetDatapackOrderAsync(worldDirectoryName, ct); + if (currentOrder.Revision != state.Revision) throw new IOException("数据包在核对期间改变。"); + var existing = currentOrder.Items; + if (order.Count != existing.Count || order.Select(p => p.PackId).Distinct(StringComparer.Ordinal).Count() != order.Count || order.Any(p => !existing.Contains(p))) throw new InvalidDataException("排序只能重排完整的已启用本地数据包,不能添加、移除或替换内容。"); + var next = new Queue(order.Select(p => p.PackId)); var active = state.Enabled.Select(id => id.StartsWith("file/", StringComparison.Ordinal) ? next.Dequeue() : id).ToList(); + if (active.SequenceEqual(state.Enabled)) return new(state.LevelRevision, null); + var world = await ReadEditableWorldAsync(worldDirectoryName, ct); RequireWorldRevision(world, state.LevelRevision); + var output = PackListsBytes(world, active, world.Disabled!, ct); var path = WorldChild(worldDirectoryName, "level.dat"); + try + { + foreach (var pack in state.Packs.Values) foreach (var guard in pack.Guards) guard.Verify(); + if (Revision(await ReadOptionalAsync(WorldChild(worldDirectoryName, ContentInstallFiles.ManifestName), 4 * 1024 * 1024, ct)) != state.ManifestRevision) throw new IOException("安装清单在保存期间改变。"); + var backup = await AtomicWriteAsync(path, output, world.Bytes, ct); + foreach (var pack in state.Packs.Values) foreach (var guard in pack.Guards) guard.Verify(); + if (Revision(await ReadOptionalAsync(WorldChild(worldDirectoryName, ContentInstallFiles.ManifestName), 4 * 1024 * 1024, ct)) != state.ManifestRevision) throw new IOException("安装清单在保存期间改变。"); + return new(Revision(output), backup); + } + catch { await RollbackMetadataAsync(path, world.Bytes, output, nbtLimits.MaxInputBytes); throw; } + } + finally { mutation.Release(); } + } + private byte[] PackListsBytes(EditableWorld world, List enabled, List disabled, CancellationToken ct) + { + var lists = world.Data.Find("DataPacks")!.Children.ToList(); Replace(lists, StringList("Enabled", enabled)); Replace(lists, StringList("Disabled", disabled)); + var data = world.Data.Children.ToList(); Replace(data, world.Data.Find("DataPacks")! with { Value = lists }); + var root = world.Document.Root.Children.ToList(); Replace(root, world.Data with { Value = data }); + return BoundedNbt.Write(world.Document with { Root = world.Document.Root with { Value = root } }, nbtLimits, ct); + } +} diff --git a/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.Trash.cs b/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.Trash.cs new file mode 100644 index 00000000..3a204e8b --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.Trash.cs @@ -0,0 +1,216 @@ +using System.Security.Cryptography; +using System.Text.Json; +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Instances; + +public sealed partial class InstanceWorldStore +{ + private sealed record RecycledPack(string Name, bool Directory, string Hash); + private sealed record PackTrashJournal(int Format, string Id, DateTimeOffset Created, string LevelBefore, string LevelAfter, + string ManifestBefore, string ManifestAfter, IReadOnlyList Packs); + private const int TrashMetadataLimit = 1024 * 1024; + private string TrashRoot(string world) => WorldChild(world, ".shou-trash/datapacks"); + private string TrashPath(string world, string id) => Path.Combine(TrashRoot(world), TrashId(id)); + private static string TrashId(string id) => Guid.TryParseExact(id, "N", out _) ? id : throw new InvalidDataException("回收记录标识无效。"); + private static bool SameBytes(byte[]? a, byte[]? b) => a is null ? b is null : b is not null && a.AsSpan().SequenceEqual(b); + private void EnsureTrashDirectory(string path) + { + var guard = Capture(path, true); guard.VerifyExistingNodes(); Directory.CreateDirectory(path); guard.VerifyExistingNodes(); + if (!Capture(path).Final.Directory) throw new IOException("回收路径不是文件夹。"); + } + private async Task SaveTrashFileAsync(string directory, string name, byte[] bytes, CancellationToken ct) => + _ = await WriteNewAsync(Path.Combine(directory, name), bytes, Capture(directory), ct, null); + private async Task PackFingerprintAsync(string path, bool directory, CancellationToken ct) + { + var guard = Capture(path); + if (guard.Final.Directory != directory) throw new IOException("数据包文件类型已改变。"); + var hash = directory ? (await WorldContentArchive.FolderDatapackAsync(path, new(KnownPackFormat, 0), ct)).Revision + : Revision(await ReadGuardedAsync(guard, limits.MaxPackBytes, ct)); + guard.Verify(); return hash; + } + private byte[] WithoutPackReferences(EditableWorld world, IReadOnlySet names, CancellationToken ct) + { + var packs = world.Data.Find("DataPacks")!.Children.ToList(); + Replace(packs, StringList("Enabled", world.Enabled!.Where(p => !names.Contains(p)).ToList())); + Replace(packs, StringList("Disabled", world.Disabled!.Where(p => !names.Contains(p)).ToList())); + var data = world.Data.Children.ToList(); Replace(data, world.Data.Find("DataPacks")! with { Value = packs }); + var root = world.Document.Root.Children.ToList(); Replace(root, world.Data with { Value = data }); + return BoundedNbt.Write(world.Document with { Root = world.Document.Root with { Value = root } }, nbtLimits, ct); + } + private static byte[]? WithoutManifestPacks(byte[]? original, IReadOnlyList selected) + { + if (original is null) return null; + var json = JsonNode.Parse(original, documentOptions: new() { MaxDepth = 32 }) as JsonObject ?? throw new InvalidDataException("安装清单无效,未回收文件。"); + if ((int?)json["FormatVersion"] != 1 || json["Files"] is not JsonArray files || files.Count > 4096) throw new InvalidDataException("安装清单格式未验证,未回收文件。"); + for (var index = files.Count - 1; index >= 0; index--) + { + var path = (string?)files[index]?["RelativePath"] ?? throw new InvalidDataException("安装清单缺少文件路径。"); + var key = ContentInstallFiles.PathKey(path); + if (selected.Any(p => key == ContentInstallFiles.PathKey("datapacks/" + p.Name) || p.Directory && key.StartsWith(ContentInstallFiles.PathKey("datapacks/" + p.Name + "/"), StringComparison.Ordinal))) files.RemoveAt(index); + } + return JsonSerializer.SerializeToUtf8Bytes(json); + } + public async Task RecycleDatapacksAsync(string worldDirectoryName, string expectedRevision, IReadOnlyList selected, CancellationToken ct = default) + { + ArgumentNullException.ThrowIfNull(selected); + if (selected.Count is < 1 or > 16 || selected.Select(p => p.PackId).Distinct(StringComparer.Ordinal).Count() != selected.Count) throw new InvalidDataException("请选择 1 至 16 个不同的数据包。"); + await mutation.WaitAsync(ct); + try + { + var world = await ReadEditableWorldAsync(worldDirectoryName, ct); RequireWorldRevision(world, expectedRevision); + if (!world.KnownVersion || world.Enabled is null || world.Disabled is null) throw new InvalidOperationException("此世界的版本或数据包状态尚未验证,仅支持只读操作。"); + var files = await GetDatapacksAsync(worldDirectoryName, ct); var packs = new List(); var guards = new List(); var budget = new PackReadBudget(); + foreach (var selection in selected) + { + if (!selection.PackId.StartsWith("file/", StringComparison.Ordinal)) throw new InvalidDataException("只能回收明确选择的本地数据包。"); + var name = Leaf(selection.PackId[5..]); var file = files.SingleOrDefault(f => f.Name == name) ?? throw new IOException("所选数据包已经缺失。"); + var inspected = await InspectPackAsync(worldDirectoryName, file, budget, ct); + if (!inspected.ToggleSafe || inspected.Revision != selection.ContentRevision) throw new IOException("数据包内容或兼容状态已改变,请重新读取。"); + guards.AddRange(inspected.Guards); + packs.Add(new(name, file.IsDirectory, await PackFingerprintAsync(WorldChild(worldDirectoryName, "datapacks/" + name), file.IsDirectory, ct))); + } + var manifestPath = WorldChild(worldDirectoryName, ContentInstallFiles.ManifestName); + var manifest = await ReadOptionalAsync(manifestPath, TrashMetadataLimit, ct); + var nextManifest = WithoutManifestPacks(manifest, packs); + var nextLevel = WithoutPackReferences(world, selected.Select(p => p.PackId).ToHashSet(StringComparer.Ordinal), ct); + var trashRoot = TrashRoot(worldDirectoryName); var existingTrash = Capture(trashRoot, true); + if (existingTrash.Exists && Directory.EnumerateDirectories(trashRoot).Take(256).Count() >= 256) throw new IOException("回收记录已达 256 项,请先备份并整理存档回收目录,未移动数据包。"); + var id = Guid.NewGuid().ToString("N"); var directory = TrashPath(worldDirectoryName, id); + EnsureTrashDirectory(directory); EnsureTrashDirectory(Path.Combine(directory, "payload")); + var journal = new PackTrashJournal(1, id, DateTimeOffset.UtcNow, Revision(world.Bytes), Revision(nextLevel), Revision(manifest), Revision(nextManifest), packs); + await SaveTrashFileAsync(directory, "level.before", world.Bytes, ct); await SaveTrashFileAsync(directory, "level.after", nextLevel, ct); + if (manifest is not null) { await SaveTrashFileAsync(directory, "manifest.before", manifest, ct); await SaveTrashFileAsync(directory, "manifest.after", nextManifest!, ct); } + await SaveTrashFileAsync(directory, "receipt.json", JsonSerializer.SerializeToUtf8Bytes(journal), ct); + foreach (var guard in guards) guard.Verify(); + await ApplyTrashTransactionAsync(worldDirectoryName, directory, journal, world.Bytes, nextLevel, manifest, nextManifest, restore: false, ct); + } + finally { mutation.Release(); } + } + private async Task<(PackTrashJournal Journal, byte[] Before, byte[] After, byte[]? ManifestBefore, byte[]? ManifestAfter)> ReadTrashAsync(string world, string directory, CancellationToken ct) + { + var journal = JsonSerializer.Deserialize(await ReadOptionalAsync(Path.Combine(directory, "receipt.json"), 65536, ct) ?? throw new IOException("回收记录缺失。")) ?? throw new InvalidDataException("回收记录无效。"); + if (journal.Format != 1 || journal.Id != Path.GetFileName(directory) || journal.Packs is null || journal.Packs.Count is < 1 or > 16 || journal.Packs.Any(p => p is null || p.Name is null || p.Hash is null) || journal.Packs.Select(p => p.Name).Distinct(StringComparer.OrdinalIgnoreCase).Count() != journal.Packs.Count) throw new InvalidDataException("回收记录超出边界。"); + foreach (var pack in journal.Packs) { _ = Leaf(pack.Name); if (pack.Hash.Length != 64 || !pack.Hash.All(Uri.IsHexDigit)) throw new InvalidDataException("回收文件哈希无效。"); } + var before = await ReadOptionalAsync(Path.Combine(directory, "level.before"), nbtLimits.MaxInputBytes, ct) ?? throw new IOException("回收备份缺失。"); + var after = await ReadOptionalAsync(Path.Combine(directory, "level.after"), nbtLimits.MaxInputBytes, ct) ?? throw new IOException("回收状态缺失。"); + var mb = await ReadOptionalAsync(Path.Combine(directory, "manifest.before"), TrashMetadataLimit, ct); var ma = await ReadOptionalAsync(Path.Combine(directory, "manifest.after"), TrashMetadataLimit, ct); + if (Revision(before) != journal.LevelBefore || Revision(after) != journal.LevelAfter || Revision(mb) != journal.ManifestBefore || Revision(ma) != journal.ManifestAfter) throw new IOException("回收备份校验失败,原文件保留。"); + _ = BoundedNbt.Read(before, nbtLimits, ct); _ = BoundedNbt.Read(after, nbtLimits, ct); + return (journal, before, after, mb, ma); + } + public async Task> GetDatapackTrashAsync(string worldDirectoryName, CancellationToken ct = default) + { + var root = TrashRoot(worldDirectoryName); var guard = Capture(root, true); if (!guard.Exists) return []; + var level = await ReadOptionalAsync(WorldChild(worldDirectoryName, "level.dat"), nbtLimits.MaxInputBytes, ct); + var manifest = await ReadOptionalAsync(WorldChild(worldDirectoryName, ContentInstallFiles.ManifestName), TrashMetadataLimit, ct); + var entries = Directory.EnumerateDirectories(root).Take(257).ToArray(); if (entries.Length > 256) throw new IOException("回收记录过多,请先整理。"); + var result = new List(); + foreach (var directory in entries) + { + ct.ThrowIfCancellationRequested(); _ = TrashId(Path.GetFileName(directory)); _ = Capture(directory); + if (Capture(Path.Combine(directory, "restored"), true).Exists || Capture(Path.Combine(directory, "rolled-back"), true).Exists) continue; + if (!Capture(Path.Combine(directory, "receipt.json"), true).Exists) continue; + var item = await ReadTrashAsync(worldDirectoryName, directory, ct); + var ready = Capture(Path.Combine(directory, "ready"), true).Exists; + var unchanged = Revision(level) == item.Journal.LevelAfter && Revision(manifest) == item.Journal.ManifestAfter; + result.Add(new(item.Journal.Id, item.Journal.Packs.Select(p => p.Name).ToArray(), item.Journal.Created, ready && unchanged, + !ready ? "操作未完成,恢复文件仍保留在存档回收目录,请先核对。" : !unchanged ? "存档或安装清单已有其它修改,禁止覆盖恢复;回收文件仍保留。" : "可恢复")); + } + guard.Verify(); return result.OrderByDescending(e => e.Created).ToArray(); + } + public async Task RestoreDatapacksAsync(string worldDirectoryName, string trashId, CancellationToken ct = default) + { + await mutation.WaitAsync(ct); + try + { + var directory = TrashPath(worldDirectoryName, trashId); var item = await ReadTrashAsync(worldDirectoryName, directory, ct); + if (!Capture(Path.Combine(directory, "ready"), true).Exists || Capture(Path.Combine(directory, "restored"), true).Exists) throw new IOException("此记录当前不可恢复。"); + await ApplyTrashTransactionAsync(worldDirectoryName, directory, item.Journal, item.Before, item.After, item.ManifestBefore, item.ManifestAfter, restore: true, ct); + } + finally { mutation.Release(); } + } + private async Task ApplyTrashTransactionAsync(string world, string directory, PackTrashJournal journal, byte[] before, byte[] after, byte[]? manifestBefore, byte[]? manifestAfter, bool restore, CancellationToken ct) + { + var levelPath = WorldChild(world, "level.dat"); var manifestPath = WorldChild(world, ContentInstallFiles.ManifestName); + var oldLevel = restore ? after : before; var newLevel = restore ? before : after; + var oldManifest = restore ? manifestAfter : manifestBefore; var newManifest = restore ? manifestBefore : manifestAfter; + var moved = new List<(string From, string To, RecycledPack Pack)>(); + async Task RequireMetadataAsync(CancellationToken token) + { + if (!SameBytes(await ReadOptionalAsync(levelPath, nbtLimits.MaxInputBytes, token), oldLevel) || !SameBytes(await ReadOptionalAsync(manifestPath, TrashMetadataLimit, token), oldManifest)) throw new IOException("存档或安装清单已改变,未覆盖当前状态。"); + } + await RequireMetadataAsync(ct); + var transfers = new List<(string From, string To, RecycledPack Pack, WorldPathSnapshot Guard)>(); + foreach (var pack in journal.Packs) + { + var original = WorldChild(world, "datapacks/" + pack.Name); var recycled = Path.Combine(directory, "payload", pack.Name); + var from = restore ? recycled : original; var to = restore ? original : recycled; + RequireVacantPackPath(to); var source = Capture(from); + if (await PackFingerprintAsync(from, pack.Directory, ct) != pack.Hash) throw new IOException("数据包内容已改变,操作已停止。"); + transfers.Add((from, to, pack, source)); + } + try + { + foreach (var transfer in transfers) + { + ct.ThrowIfCancellationRequested(); transfer.Guard.Verify(); RequireVacantPackPath(transfer.To); + moved.Add((transfer.From, transfer.To, transfer.Pack)); MovePack(transfer.From, transfer.To, transfer.Pack.Directory); + SHOU.Launcher.Core.IO.FileTransactionCheckpoint.Reach("trash-payload-moved"); + if (await PackFingerprintAsync(transfer.To, transfer.Pack.Directory, ct) != transfer.Pack.Hash) throw new IOException("移动后的数据包校验失败。"); + } + await RequireMetadataAsync(ct); + if (!SameBytes(oldLevel, newLevel)) await AtomicWriteAsync(levelPath, newLevel, oldLevel, ct); + if (!SameBytes(oldManifest, newManifest)) await AtomicWriteAsync(manifestPath, newManifest!, oldManifest, ct); + ct.ThrowIfCancellationRequested(); + await SaveTrashFileAsync(directory, restore ? "restored" : "ready", [], ct); + } + catch (Exception error) + { + try + { + await RollbackMetadataAsync(manifestPath, oldManifest, newManifest, TrashMetadataLimit); + await RollbackMetadataAsync(levelPath, oldLevel, newLevel, nbtLimits.MaxInputBytes); + foreach (var transfer in moved.AsEnumerable().Reverse()) + { + if (!Capture(transfer.To, true).Exists && Capture(transfer.From, true).Exists) + { + if (await PackFingerprintAsync(transfer.From, transfer.Pack.Directory, CancellationToken.None) != transfer.Pack.Hash) throw new IOException("回滚源文件已改变。"); + continue; + } + RequireVacantPackPath(transfer.From); + if (await PackFingerprintAsync(transfer.To, transfer.Pack.Directory, CancellationToken.None) != transfer.Pack.Hash) throw new IOException("回滚文件已被修改。"); + MovePack(transfer.To, transfer.From, transfer.Pack.Directory); + } + if (!restore) await SaveTrashFileAsync(directory, "rolled-back", [], CancellationToken.None); + } + catch (Exception rollback) { throw new IOException("操作及自动回滚未完成;恢复文件与收据保留在存档 .shou-trash/datapacks 中,禁止覆盖原位置。", new AggregateException(error, rollback)); } + throw; + } + } + private async Task RollbackMetadataAsync(string path, byte[]? original, byte[]? output, int maximum) + { + if (SameBytes(original, output)) return; + var current = await ReadOptionalAsync(path, maximum, CancellationToken.None); + if (SameBytes(current, original)) return; + if (!SameBytes(current, output) || original is null) throw new IOException("回滚目标已有其它修改,文件保留。"); + await AtomicWriteAsync(path, original, current, CancellationToken.None); + } + private void RequireVacantPackPath(string path) + { + var guard = Capture(path, true); if (guard.Exists) throw new IOException("目标已有同名文件,未覆盖。"); + var parent = Path.GetDirectoryName(path)!; var leaf = ContentInstallFiles.PathKey(Path.GetFileName(path)); + foreach (var entry in Directory.EnumerateFileSystemEntries(parent)) if (ContentInstallFiles.PathKey(Path.GetFileName(entry)) == leaf) throw new IOException("目标存在大小写或 Unicode 等价的同名文件,未覆盖。"); + guard.Verify(); + } + private void MovePack(string from, string to, bool directory) + { + var source = Capture(from); var target = Capture(to, true); var parent = Capture(Path.GetDirectoryName(to)!); + source.Verify(); target.Verify(); parent.Verify(); + if (directory) Directory.Move(from, to); else File.Move(from, to, false); + parent.Verify(); if (!Capture(to).Final.SameNode(source.Final)) throw new IOException("移动文件的身份已改变。"); + } +} diff --git a/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.Update.cs b/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.Update.cs new file mode 100644 index 00000000..7534c69c --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.Update.cs @@ -0,0 +1,130 @@ +using System.Security.Cryptography; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core.Instances; + +public sealed partial class InstanceWorldStore +{ + internal async Task ApplyDatapackUpdateAsync(string worldDirectoryName, string expectedRevision, + IReadOnlyList replacements, byte[]? nextManifest, string rootNewName, CancellationToken ct) + { + if (replacements.Count is < 1 or > 64 || replacements.Select(r => ContentInstallFiles.PathKey(r.NewName)).Distinct().Count() != replacements.Count || replacements.Where(r => r.OldName is not null).Select(r => r.OldName).Distinct().Count() != replacements.Count(r => r.OldName is not null)) throw new InvalidDataException("更新文件计划存在重复或超过 64 项。"); + await mutation.WaitAsync(ct); + try + { + var state = await ReadDatapackWorkspaceAsync(worldDirectoryName, ct); + if (state.Revision != expectedRevision) throw new IOException("存档、数据包或安装清单已改变,请重新检查更新。"); + var old = replacements.Where(r => r.OldName is not null).ToDictionary(r => r.OldName!, r => state.Packs.GetValueOrDefault(r.OldName!) ?? throw new IOException("原数据包缺失。"), StringComparer.Ordinal); + foreach (var item in replacements) + { + _ = Leaf(item.NewName); if (!item.NewName.EndsWith(".zip", StringComparison.OrdinalIgnoreCase) || !ContentInstallFiles.Hash(item.Sha256, 64)) throw new InvalidDataException("更新文件须为已核验的 ZIP。"); + var conflict = state.Packs.Keys.FirstOrDefault(name => ContentInstallFiles.PathKey(name) == ContentInstallFiles.PathKey(item.NewName)); + if (conflict is not null && !old.ContainsKey(conflict)) throw new IOException("目标已有其它数据包,不覆盖:" + item.NewName); + } + var world = await ReadEditableWorldAsync(worldDirectoryName, ct); RequireWorldRevision(world, state.LevelRevision); + var mapping = replacements.Where(r => r.OldName is not null).ToDictionary(r => "file/" + r.OldName, r => "file/" + r.NewName, StringComparer.Ordinal); + var active = world.Enabled!.Select(id => mapping.GetValueOrDefault(id, id)).ToList(); var inactive = world.Disabled!.Select(id => mapping.GetValueOrDefault(id, id)).ToList(); + foreach (var item in replacements.Where(r => r.Enable)) + { + var id = "file/" + item.NewName; + if (inactive.Contains(id, StringComparer.Ordinal)) throw new InvalidOperationException("必需依赖被明确禁用,请先核对启用状态。"); + if (!active.Contains(id, StringComparer.Ordinal)) { var index = active.IndexOf("file/" + rootNewName); active.Insert(index < 0 ? active.Count : index, id); } + } + if (active.Distinct(StringComparer.Ordinal).Count() != active.Count || inactive.Distinct(StringComparer.Ordinal).Count() != inactive.Count || active.Intersect(inactive, StringComparer.Ordinal).Any()) throw new IOException("新文件名与存档已有数据包引用冲突。"); + var nextLevel = PackListsBytes(world, active, inactive, ct); + var baseBackup = WorldChild(worldDirectoryName, ".shou-backups/datapack-updates"); + var existingBackups = Capture(baseBackup, true); + if (existingBackups.Exists && Directory.EnumerateDirectories(baseBackup).Take(256).Count() >= 256) throw new IOException("更新备份已达 256 项,请先备份并整理。"); + var idKey = Guid.NewGuid().ToString("N"); var stage = WorldChild(worldDirectoryName, ".shou-datapack-update-" + idKey); var backup = Path.Combine(baseBackup, idKey); + EnsureTrashDirectory(stage); var stageGuard = Capture(stage); EnsureTrashDirectory(backup); EnsureTrashDirectory(Path.Combine(backup, "payload")); + var moved = new List(); var published = new List(); + void MoveRecorded(string source, string destination, bool directory, Action record) + { + var before = Capture(source); + try { MovePack(source, destination, directory); } + finally + { + var output = Capture(destination, true); + if (output.Exists && output.Final.SameNode(before.Final)) record(); + } + } + var levelPath = WorldChild(worldDirectoryName, "level.dat"); var manifestPath = WorldChild(worldDirectoryName, ContentInstallFiles.ManifestName); + async Task VerifyMetadata(CancellationToken token) + { + if (Revision(await ReadOptionalAsync(levelPath, nbtLimits.MaxInputBytes, token)) != state.LevelRevision || Revision(await ReadOptionalAsync(manifestPath, 4 * 1024 * 1024, token)) != state.ManifestRevision) throw new IOException("存档或安装清单在更新期间改变。"); + } + try + { + foreach (var item in replacements) + { + ct.ThrowIfCancellationRequested(); stageGuard.Verify(); + using var source = PackArchiveReader.Open(item.Source); if (await source.Sha256Async(ct) != item.Sha256) throw new IOException("更新 ZIP 自预检后改变。"); + var target = Path.Combine(stage, item.NewName); await source.CopyToAsync(target, ct); + _ = await WorldContentArchive.DatapackAsync(target, state.Format, ct); + } + await SaveTrashFileAsync(backup, "level.before", world.Bytes, ct); + await SaveTrashFileAsync(backup, "level.after", nextLevel, ct); + if (state.Manifest is not null) await SaveTrashFileAsync(backup, "manifest.before", state.Manifest, ct); + if (nextManifest is not null) await SaveTrashFileAsync(backup, "manifest.after", nextManifest, ct); + var resultingPacks = state.Packs.Values.Where(p => !old.ContainsKey(p.Name)).Concat(replacements.Select(r => new ManagedDatapack(r.NewName, false, r.Sha256, []))); + var journal = new DatapackUpdateJournal(2, worldDirectoryName, DateTimeOffset.UtcNow, state.Revision, + DatapackWorkspaceRevision(nextLevel, nextManifest, resultingPacks), Revision(world.Bytes), Revision(nextLevel), Revision(state.Manifest), Revision(nextManifest), + replacements.Select(r => new DatapackUpdateJournalFile(r.OldName, r.NewName, r.Sha256, r.OldName is { } name ? old[name].Hash : null, r.OldName is { } previous && old[previous].Directory, r.Enable)).ToArray()); + var journalBytes = JsonSerializer.SerializeToUtf8Bytes(journal); + if (journalBytes.Length > DatapackJournalLimit) throw new InvalidDataException("更新备份收据超过读取预算,请减少本次更新项目。"); + await SaveTrashFileAsync(backup, "receipt.json", journalBytes, ct); + var latest = await ReadDatapackWorkspaceAsync(worldDirectoryName, ct); if (latest.Revision != expectedRevision) throw new IOException("数据包在准备期间改变,未替换原文件。"); + foreach (var (name, pack) in old) + { + ct.ThrowIfCancellationRequested(); foreach (var guard in pack.Guards) guard.Verify(); + var source = WorldChild(worldDirectoryName, "datapacks/" + name); var destination = Path.Combine(backup, "payload", name); + MoveRecorded(source, destination, pack.Directory, () => moved.Add(name)); + SHOU.Launcher.Core.IO.FileTransactionCheckpoint.Reach("update-original-moved"); + } + foreach (var item in replacements) + { + ct.ThrowIfCancellationRequested(); var target = WorldChild(worldDirectoryName, "datapacks/" + item.NewName); RequireVacantPackPath(target); + var staged = Capture(Path.Combine(stage, item.NewName)); stageGuard.Verify(); + MoveRecorded(staged.Path, target, false, () => published.Add(item)); + } + foreach (var pack in state.Packs.Values.Where(p => !old.ContainsKey(p.Name))) foreach (var guard in pack.Guards) guard.Verify(); + foreach (var (name, pack) in old) if ((await FingerprintManagedPackAsync(Path.Combine(backup, "payload", name), ct)).Hash != pack.Hash) throw new IOException("原包备份核验失败。"); + foreach (var item in published) if ((await FingerprintManagedPackAsync(WorldChild(worldDirectoryName, "datapacks/" + item.NewName), ct)).Hash != item.Sha256) throw new IOException("新包发布核验失败。"); + await VerifyMetadata(ct); + if (!SameBytes(world.Bytes, nextLevel)) await AtomicWriteAsync(levelPath, nextLevel, world.Bytes, ct); + if (!SameBytes(state.Manifest, nextManifest)) await AtomicWriteAsync(manifestPath, nextManifest!, state.Manifest, ct); + if ((await ReadDatapackWorkspaceAsync(worldDirectoryName, ct)).Revision != journal.AfterRevision) throw new IOException("更新发布后的文件或元数据发生变化。"); + ct.ThrowIfCancellationRequested(); await SaveTrashFileAsync(backup, "complete", [], ct); + return new(Revision(nextLevel), backup); + } + catch (Exception error) + { + try + { + await RollbackMetadataAsync(manifestPath, state.Manifest, nextManifest, 4 * 1024 * 1024); + await RollbackMetadataAsync(levelPath, world.Bytes, nextLevel, nbtLimits.MaxInputBytes); + foreach (var item in published.AsEnumerable().Reverse()) + { + var path = WorldChild(worldDirectoryName, "datapacks/" + item.NewName); + if ((await FingerprintManagedPackAsync(path, CancellationToken.None)).Hash != item.Sha256) throw new IOException("新包已被其它程序改变,保留恢复资料。"); + MovePack(path, Path.Combine(stage, item.NewName), false); + } + foreach (var name in moved.AsEnumerable().Reverse()) + { + var destination = WorldChild(worldDirectoryName, "datapacks/" + name); RequireVacantPackPath(destination); + var source = Path.Combine(backup, "payload", name); if ((await FingerprintManagedPackAsync(source, CancellationToken.None)).Hash != old[name].Hash) throw new IOException("备份已被改变,未覆盖目标。"); + MovePack(source, destination, old[name].Directory); + } + await SaveTrashFileAsync(backup, "rolled-back", [], CancellationToken.None); + } + catch (Exception rollback) { throw new IOException("更新及自动回滚未完成;原包、元数据备份和收据保留在存档 .shou-backups/datapack-updates 中,请先核对恢复。", new AggregateException(error, rollback)); } + throw; + } + finally { stageGuard.Verify(); if (Directory.Exists(stage)) Directory.Delete(stage, true); } + } + finally { mutation.Release(); } + } +} diff --git a/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.cs b/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.cs new file mode 100644 index 00000000..6a59817e --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/InstanceWorldStore.cs @@ -0,0 +1,499 @@ +using System.Buffers.Binary; +using System.IO.Compression; +using System.Runtime.InteropServices; +using System.Security.Cryptography; +using System.Text.Json; +using Microsoft.Win32.SafeHandles; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Instances; + +public sealed record InstanceWorldLimits(int MaxServers = 2048, int MaxWorlds = 1024, int MaxDatapacks = 1024, + int MaxPackBytes = 64 * 1024 * 1024, long MaxPackExpandedBytes = 256 * 1024 * 1024, + int MaxPackEntries = 10000, int MaxPackEntryBytes = 64 * 1024 * 1024, int MaxCompressionRatio = 200); + +/// Only explicitly selected isolated instance paths are passed by the service. Existing NBT is retained as a tree. +public sealed partial class InstanceWorldStore +{ + private readonly string dataRoot, gameRoot; + private readonly NbtLimits nbtLimits; + private readonly InstanceWorldLimits limits; + private readonly WorldFileIdentity dataIdentity, gameIdentity; + private readonly SemaphoreSlim mutation = new(1, 1); + private static StringComparison PathComparison => OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal; + + public InstanceWorldStore(string isolatedDataRoot, string gameDirectory, NbtLimits? nbtLimits = null, InstanceWorldLimits? limits = null) + { + if (!Path.IsPathFullyQualified(isolatedDataRoot) || !Path.IsPathFullyQualified(gameDirectory)) throw new IOException("Absolute isolated paths are required."); + dataRoot = SafePath.Canonical(isolatedDataRoot); gameRoot = Path.TrimEndingDirectorySeparator(Path.GetFullPath(gameDirectory)); + if (!SafePath.IsWithin(dataRoot, gameRoot) || string.Equals(dataRoot, gameRoot, PathComparison) + || !string.Equals(SafePath.Canonical(gameRoot), gameRoot, PathComparison)) throw new IOException("Instance directory must be a direct physical descendant of the isolated data root."); + dataIdentity = WorldFileIdentity.AtPath(dataRoot); gameIdentity = WorldFileIdentity.AtPath(gameRoot); + if (!dataIdentity.Directory || !gameIdentity.Directory) throw new IOException("Instance and data directories must exist."); + this.nbtLimits = nbtLimits ?? new(); this.limits = limits ?? new(); + if (this.limits.MaxServers <= 0 || this.limits.MaxWorlds <= 0 || this.limits.MaxDatapacks <= 0 || this.limits.MaxPackBytes <= 0 + || this.limits.MaxPackExpandedBytes <= 0 || this.limits.MaxPackEntries <= 0 || this.limits.MaxPackEntryBytes <= 0 || this.limits.MaxCompressionRatio <= 0) + throw new ArgumentOutOfRangeException(nameof(limits)); + _ = Capture(gameRoot); + } + + public async Task GetServersAsync(CancellationToken cancellationToken = default) + { + var raw = await ReadOptionalAsync(Child("servers.dat"), nbtLimits.MaxInputBytes, cancellationToken); + return DescribeServers(raw, null); + } + + public async Task SaveServersAsync(string expectedRevision, IReadOnlyList entries, CancellationToken cancellationToken = default) + { + ArgumentNullException.ThrowIfNull(entries); + if (entries.Count > limits.MaxServers) throw new InvalidDataException("Server entry budget exceeded."); + await mutation.WaitAsync(cancellationToken); + try + { + var path = Child("servers.dat"); var raw = await ReadOptionalAsync(path, nbtLimits.MaxInputBytes, cancellationToken); + if (!string.Equals(expectedRevision, Revision(raw), StringComparison.Ordinal)) throw new IOException("servers.dat changed; reload before saving."); + var document = raw is null ? new NbtDocument(new(NbtType.Compound, "", Array.Empty())) : BoundedNbt.Read(raw, nbtLimits, cancellationToken); + var existing = ServerTags(document); var selected = new HashSet(); var edited = new List(); + foreach (var edit in entries) + { + ValidateServer(edit); IReadOnlyList original = []; + if (edit.ExistingIndex is { } index) + { + if (index < 0 || index >= existing.Count || !selected.Add(index)) throw new InvalidDataException("Server row index is stale or repeated."); + original = existing[index].Children; + // Validate the fields being replaced before changing a document containing unknown tags. + _ = ReadString(existing[index].Find("name")); _ = ReadString(existing[index].Find("ip")); + } + var fields = original.ToList(); Replace(fields, new(NbtType.String, "name", edit.Name.Trim())); Replace(fields, new(NbtType.String, "ip", edit.Address.Trim())); + edited.Add(new(NbtType.Compound, "", fields)); + } + var root = document.Root.Children.ToList(); Replace(root, new(NbtType.List, "servers", new NbtList(NbtType.Compound, edited))); + var output = BoundedNbt.Write(document with { Root = document.Root with { Value = root } }, nbtLimits, cancellationToken); + var backup = await AtomicWriteAsync(path, output, raw, cancellationToken); + return DescribeServers(output, backup); + } + finally { mutation.Release(); } + } + + public async Task> GetWorldsAsync(CancellationToken cancellationToken = default) + { + var saves = Child("saves"); var guard = Capture(saves, true); + if (!guard.Exists) return []; + if (!guard.Final.Directory) throw new IOException("saves must be a physical directory."); + var directories = Directory.EnumerateDirectories(saves).Take(limits.MaxWorlds + 1).Order(StringComparer.Ordinal).ToArray(); guard.Verify(); + if (directories.Length > limits.MaxWorlds) throw new InvalidDataException("World directory budget exceeded."); + var result = new List(); + foreach (var directory in directories) + { + cancellationToken.ThrowIfCancellationRequested(); var name = Path.GetFileName(directory); + try { result.Add(await ReadWorldAsync(name, cancellationToken)); } + catch (Exception ex) when (ex is IOException or InvalidDataException or UnauthorizedAccessException or ArgumentException) + { result.Add(new(name, name, null, null, null, null, null, null, "无法读取此世界的 level.dat(" + ex.GetType().Name + ");原文件保持不变。")); } + } + guard.Verify(); return result; + } + + public async Task> GetDatapacksAsync(string worldDirectoryName, CancellationToken cancellationToken = default) + { + _ = await ReadWorldAsync(worldDirectoryName, cancellationToken); + var directory = WorldChild(worldDirectoryName, "datapacks"); var guard = Capture(directory, true); + if (!guard.Exists) return []; + if (!guard.Final.Directory) throw new IOException("datapacks must be a physical directory."); + var paths = Directory.EnumerateFileSystemEntries(directory).Take(limits.MaxDatapacks + 1).Order(StringComparer.Ordinal).ToArray(); guard.Verify(); + if (paths.Length > limits.MaxDatapacks) throw new InvalidDataException("Datapack file budget exceeded."); + var packs = new List(); + foreach (var path in paths) + { + cancellationToken.ThrowIfCancellationRequested(); var item = Capture(path); + if (item.Final.Directory || Path.GetExtension(path).Equals(".zip", StringComparison.OrdinalIgnoreCase)) packs.Add(DescribePack(path, item.Final)); + item.Verify(); + } + guard.Verify(); return packs; + } + + public async Task ImportDatapackAsync(string worldDirectoryName, string zipPath, CancellationToken cancellationToken = default) + { + await mutation.WaitAsync(cancellationToken); + try + { + _ = await ReadWorldAsync(worldDirectoryName, cancellationToken); + if (!Path.IsPathFullyQualified(zipPath) || !Path.GetExtension(zipPath).Equals(".zip", StringComparison.OrdinalIgnoreCase)) throw new InvalidDataException("Choose a local ZIP datapack file."); + zipPath = Path.GetFullPath(zipPath); var leaf = Leaf(Path.GetFileName(zipPath)); + var source = WorldPathSnapshot.Capture(Path.GetDirectoryName(zipPath)!, zipPath); + var bytes = await ReadGuardedAsync(source, limits.MaxPackBytes, cancellationToken); + await ValidateDatapackAsync(bytes, cancellationToken); + var directory = WorldChild(worldDirectoryName, "datapacks"); var parent = Capture(directory, true); + if (!parent.Exists) + { + parent.Verify(); Directory.CreateDirectory(directory); parent.VerifyExistingNodes(); VerifyRoots(); + var created = Capture(directory); if (!created.Final.Directory) throw new IOException("Datapack destination is not a directory."); + } + else if (!parent.Final.Directory) throw new IOException("Datapack destination is not a directory."); + var destination = SafePath.Within(directory, leaf); + _ = await AtomicWriteAsync(destination, bytes, null, cancellationToken); + var saved = Capture(destination); var result = DescribePack(destination, saved.Final); saved.Verify(); return result; + } + finally { mutation.Release(); } + } + + private async Task ReadWorldAsync(string directoryName, CancellationToken ct) + { + var bytes = await ReadOptionalAsync(WorldChild(directoryName, "level.dat"), nbtLimits.MaxInputBytes, ct) ?? throw new InvalidDataException("World level.dat is missing."); + var document = BoundedNbt.Read(bytes, nbtLimits, ct); var data = document.Root.Find("Data"); + if (data is not { Type: NbtType.Compound }) throw new InvalidDataException("Java world Data compound is missing."); + var generation = data.Find("WorldGenSettings"); if (generation is not null && generation.Type != NbtType.Compound) throw new InvalidDataException("Invalid world generation compound."); + var version = data.Find("Version"); if (version is not null && version.Type != NbtType.Compound) throw new InvalidDataException("Invalid world version compound."); + var lastPlayed = ReadLong(data.Find("LastPlayed")); DateTimeOffset? played = null; + if (lastPlayed is { } timestamp) + { + try { played = DateTimeOffset.FromUnixTimeMilliseconds(timestamp); } + catch (ArgumentOutOfRangeException) { throw new InvalidDataException("World LastPlayed timestamp is outside supported bounds."); } + } + var hardcore = data.Find("hardcore"); if (hardcore is not null && hardcore.Type != NbtType.Byte) throw new InvalidDataException("Invalid hardcore tag type."); + return new(directoryName, ReadString(data.Find("LevelName")) ?? directoryName, + ReadLong(generation?.Find("seed")) ?? ReadLong(data.Find("RandomSeed")), ReadString(version?.Find("Name")), + ReadInt(data.Find("DataVersion")), ReadInt(data.Find("GameType")), hardcore is null ? null : (sbyte)hardcore.Value != 0, played); + } + private InstanceServerList DescribeServers(byte[]? bytes, string? backup) + { + if (bytes is null) return new("missing", [], backup); + var document = BoundedNbt.Read(bytes, nbtLimits); var tags = ServerTags(document); + return new(Revision(bytes), tags.Select((tag, index) => new InstanceServerEntry(index, + ReadString(tag.Find("name")) ?? "", ReadString(tag.Find("ip")) ?? "")).ToArray(), backup); + } + private IReadOnlyList ServerTags(NbtDocument document) + { + var servers = document.Root.Find("servers"); if (servers is null) return []; + if (servers.Type != NbtType.List || servers.Value is not NbtList list || list.ElementType != NbtType.Compound && list.Items.Count != 0 + || list.Items.Count > limits.MaxServers) throw new InvalidDataException("Unsupported servers.dat list."); + return list.Items; + } + private static string? ReadString(NbtTag? tag) => tag is null ? null : tag.Type == NbtType.String ? (string)tag.Value : throw new InvalidDataException("NBT string field has another type."); + private static long? ReadLong(NbtTag? tag) => tag is null ? null : tag.Type == NbtType.Long ? (long)tag.Value : throw new InvalidDataException("NBT long field has another type."); + private static int? ReadInt(NbtTag? tag) => tag is null ? null : tag.Type == NbtType.Int ? (int)tag.Value : throw new InvalidDataException("NBT int field has another type."); + private static void Replace(List fields, NbtTag value) + { + var matches = fields.Select((tag, i) => (tag, i)).Where(p => p.tag.Name == value.Name).ToArray(); + if (matches.Length > 1) throw new InvalidDataException("Ambiguous duplicate NBT field."); + if (matches.Length == 1) fields[matches[0].i] = value; else fields.Add(value); + } + private static void ValidateServer(InstanceServerEdit entry) + { + if (string.IsNullOrWhiteSpace(entry.Name) || entry.Name.Length > 128 || entry.Name.Any(char.IsControl)) throw new InvalidDataException("Server name must have 1–128 non-control characters."); + if (string.IsNullOrWhiteSpace(entry.Address) || entry.Address.Length > 1024 || entry.Address.Any(c => char.IsControl(c) || char.IsWhiteSpace(c) || c is '/' or '\\' or '@' or '?' or '#')) + throw new InvalidDataException("Server address must be a hostname or IP with an optional port."); + } + private static string Revision(byte[]? bytes) => bytes is null ? "missing" : Convert.ToHexString(SHA256.HashData(bytes)).ToLowerInvariant(); + private static string Leaf(string value) + { + if (string.IsNullOrWhiteSpace(value) || value is "." or ".." || value.Length > 240 || value.Any(c => char.IsControl(c) || "<>:\"/\\|?*".Contains(c)) || value.EndsWith('.') || value.EndsWith(' ')) throw new IOException("Unsafe world or datapack filename."); + return value; + } + private string Child(string relative) + { + var safe = SafePath.Within(gameRoot, relative); var literal = Path.GetFullPath(Path.Combine(gameRoot, relative.Replace('/', Path.DirectorySeparatorChar))); + if (!string.Equals(safe, literal, PathComparison)) throw new IOException("World paths must not traverse symbolic links."); + return literal; + } + private string WorldChild(string world, string relative) => Child("saves/" + Leaf(world) + "/" + relative); + private void VerifyRoots() + { + if (!WorldFileIdentity.AtPath(dataRoot).SameNode(dataIdentity) || !WorldFileIdentity.AtPath(gameRoot).SameNode(gameIdentity)) throw new IOException("Isolated instance path identity changed."); + } + private WorldPathSnapshot Capture(string path, bool allowMissing = false) + { + VerifyRoots(); var guard = WorldPathSnapshot.Capture(dataRoot, path, allowMissing); VerifyRoots(); return guard; + } + private async Task ReadOptionalAsync(string path, int maximum, CancellationToken ct) + { + var guard = Capture(path, true); if (!guard.Exists) return null; + var bytes = await ReadGuardedAsync(guard, maximum, ct); VerifyRoots(); return bytes; + } + private static async Task ReadGuardedAsync(WorldPathSnapshot guard, int maximum, CancellationToken ct) + { + guard.Verify(); if (!guard.Exists || guard.Final.Directory) throw new IOException("A regular file is required."); + if (guard.Final.Size > maximum) throw new InvalidDataException("File exceeds its input byte budget."); + await using var stream = new FileStream(guard.Path, FileMode.Open, FileAccess.Read, FileShare.Read, 65536, FileOptions.Asynchronous); + guard.Verify(); var identity = WorldFileIdentity.FromHandle(stream.SafeFileHandle); + if (identity != guard.Final) throw new IOException("File changed before read."); + var length = checked((int)stream.Length); if (length < 0 || length > maximum) throw new InvalidDataException("File input byte budget exceeded."); + var bytes = new byte[length]; await stream.ReadExactlyAsync(bytes, ct); + var extra = new byte[1]; if (await stream.ReadAsync(extra, ct) != 0 || WorldFileIdentity.FromHandle(stream.SafeFileHandle) != identity) throw new IOException("File changed during read."); + guard.Verify(); return bytes; + } + + private async Task AtomicWriteAsync(string destination, byte[] bytes, byte[]? original, CancellationToken ct) + { + var before = Capture(destination, true); + if (before.Exists != (original is not null)) throw new IOException("Destination appeared or disappeared; reload before saving."); + if (before.Exists && before.Final.Directory) throw new IOException("Destination is a directory."); + if (before.Exists && (File.GetAttributes(destination) & FileAttributes.ReadOnly) != 0) throw new IOException("Read-only world files are not replaced."); + UnixFileMode? permissions = null; + if (!OperatingSystem.IsWindows()) permissions = before.Exists ? File.GetUnixFileMode(destination) : UnixFileMode.UserRead | UnixFileMode.UserWrite; + var directory = Path.GetDirectoryName(destination)!; var parent = Capture(directory); + var stage = SafePath.Within(directory, ".shou-world-" + Guid.NewGuid().ToString("N") + ".tmp"); + WorldFileIdentity? stageIdentity = null; string? backup = null; + try + { + stageIdentity = await WriteNewAsync(stage, bytes, parent, ct, permissions); + before.Verify(); parent.Verify(); + if (original is not null) + { + var current = await ReadOptionalAsync(destination, nbtLimits.MaxInputBytes, ct); + if (Revision(current) != Revision(original)) throw new IOException("Destination changed while preparing the save."); + backup = SafePath.Within(directory, Path.GetFileName(destination) + ".shou-backup-" + DateTime.UtcNow.ToString("yyyyMMddHHmmssfff") + "-" + Guid.NewGuid().ToString("N")); + await WriteNewAsync(backup, original, parent, ct, permissions); + } + ct.ThrowIfCancellationRequested(); before.Verify(); parent.Verify(); + if (Capture(stage).Final != stageIdentity.Value) throw new IOException("Staging file identity changed."); + File.Move(stage, destination, original is not null); + parent.Verify(); VerifyRoots(); + var after = Capture(destination); + if (!after.Final.SameNode(stageIdentity.Value)) throw new IOException("Saved file identity differs from the validated staging file."); + var written = await ReadOptionalAsync(destination, Math.Max(nbtLimits.MaxInputBytes, limits.MaxPackBytes), ct); + if (Revision(written) != Revision(bytes)) throw new IOException("Saved content changed during commit verification."); + return backup; + } + finally + { + if (stageIdentity is { } allocated) + { + try { parent.Verify(); var remainder = Capture(stage, true); if (remainder.Exists && remainder.Final.SameNode(allocated)) File.Delete(stage); } + catch (IOException) { /* A changed path is left untouched for explicit recovery. */ } + } + } + } + private async Task WriteNewAsync(string path, byte[] bytes, WorldPathSnapshot parent, CancellationToken ct, UnixFileMode? permissions) + { + parent.Verify(); var missing = Capture(path, true); if (missing.Exists) throw new IOException("New output already exists."); + WorldFileIdentity? allocated = null; + try + { + var options = new FileStreamOptions { Mode = FileMode.CreateNew, Access = FileAccess.ReadWrite, Share = FileShare.Read, BufferSize = 65536, Options = FileOptions.Asynchronous | FileOptions.WriteThrough }; + if (!OperatingSystem.IsWindows()) options.UnixCreateMode = permissions ?? UnixFileMode.UserRead | UnixFileMode.UserWrite; + await using var stream = new FileStream(path, options); + allocated = WorldFileIdentity.FromHandle(stream.SafeFileHandle); + parent.Verify(); var created = Capture(path); var opened = allocated.Value; + if (!created.Final.SameNode(opened)) throw new IOException("New output path identity changed before write."); + if (!OperatingSystem.IsWindows() && permissions is { } mode) File.SetUnixFileMode(stream.SafeFileHandle, mode); + await stream.WriteAsync(bytes, ct); await stream.FlushAsync(ct); stream.Flush(true); + parent.Verify(); var finished = Capture(path); var completed = WorldFileIdentity.FromHandle(stream.SafeFileHandle); + if (finished.Final != completed || !completed.SameNode(opened) || completed.Size != bytes.Length) throw new IOException("New output path changed while writing."); + return completed; + } + catch + { + if (allocated is { } identity) + { + try { parent.Verify(); var current = Capture(path, true); if (current.Exists && current.Final.SameNode(identity)) File.Delete(path); } + catch (IOException) { /* A changed path is left untouched. */ } + } + throw; + } + } + + private async Task ValidateDatapackAsync(byte[] bytes, CancellationToken ct) + { + ValidateZipDirectoryBudget(bytes); + using var memory = new MemoryStream(bytes, false); using var archive = new ZipArchive(memory, ZipArchiveMode.Read); + if (archive.Entries.Count == 0 || archive.Entries.Count > limits.MaxPackEntries) throw new InvalidDataException("Datapack ZIP entry budget exceeded."); + var names = new HashSet(StringComparer.OrdinalIgnoreCase); long expanded = 0; var metadataFound = false; var buffer = new byte[65536]; + foreach (var entry in archive.Entries) + { + ct.ThrowIfCancellationRequested(); var name = entry.FullName; + if (string.IsNullOrEmpty(name) || name.StartsWith('/') || name.Contains('\\') || name.Contains(':') || name.Any(char.IsControl) + || name.Split('/').Any(p => p is "." or "..") || !names.Add(name.TrimEnd('/'))) throw new InvalidDataException("Unsafe or duplicate datapack ZIP path."); + var type = (entry.ExternalAttributes >> 16) & 0xf000; + if (type != 0 && type != 0x8000 && type != 0x4000) throw new InvalidDataException("Datapack ZIP links and special files are unsupported."); + if (entry.Length < 0 || entry.Length > limits.MaxPackEntryBytes || entry.CompressedLength < 0 + || entry.Length > 0 && (entry.CompressedLength == 0 || entry.Length / (double)entry.CompressedLength > limits.MaxCompressionRatio) + || expanded + entry.Length > limits.MaxPackExpandedBytes) throw new InvalidDataException("Datapack ZIP expansion budget exceeded."); + if (name.EndsWith('/')) { if (entry.Length != 0 || entry.Crc32 != 0) throw new InvalidDataException("ZIP directory contains file data."); continue; } + using var data = entry.Open(); using var metadata = name == "pack.mcmeta" ? new MemoryStream() : null; + long count = 0; uint crc = 0; + while (true) + { + var read = await data.ReadAsync(buffer, ct); if (read == 0) break; + count += read; expanded += read; + if (count > entry.Length || count > limits.MaxPackEntryBytes || expanded > limits.MaxPackExpandedBytes || metadata is not null && count > 65536) + throw new InvalidDataException("Datapack ZIP stream exceeds its declared or configured budget."); + crc = BoundedNbt.Crc32(buffer.AsSpan(0, read), crc); metadata?.Write(buffer, 0, read); + } + if (count != entry.Length || crc != entry.Crc32) throw new InvalidDataException("Datapack ZIP length or checksum is invalid."); + if (metadata is not null) + { + using var json = JsonDocument.Parse(metadata.ToArray(), new JsonDocumentOptions { MaxDepth = 32 }); + if (json.RootElement.ValueKind != JsonValueKind.Object || !json.RootElement.TryGetProperty("pack", out var pack) || pack.ValueKind != JsonValueKind.Object) + throw new InvalidDataException("Datapack pack.mcmeta needs a pack object."); + metadataFound = true; + } + } + if (!metadataFound) throw new InvalidDataException("Datapack ZIP must contain a root pack.mcmeta."); + } + private void ValidateZipDirectoryBudget(byte[] bytes) + { + // PKWARE APPNOTE 6.3.10 sections 4.3.12/4.3.16. Bound records before ZipArchive allocates its entry graph. + // https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT + var end = -1; + for (var i = bytes.Length - 22; i >= Math.Max(0, bytes.Length - 65557); i--) + if (BinaryPrimitives.ReadUInt32LittleEndian(bytes.AsSpan(i)) == 0x06054b50 + && (long)i + 22 + BinaryPrimitives.ReadUInt16LittleEndian(bytes.AsSpan(i + 20)) == bytes.Length) { end = i; break; } + if (end < 0) throw new InvalidDataException("ZIP end record is missing or has trailing data."); + var header = bytes.AsSpan(end); + var entries = BinaryPrimitives.ReadUInt16LittleEndian(header[10..]); + var size = BinaryPrimitives.ReadUInt32LittleEndian(header[12..]); var start = BinaryPrimitives.ReadUInt32LittleEndian(header[16..]); + if (BinaryPrimitives.ReadUInt16LittleEndian(header[4..]) != 0 || BinaryPrimitives.ReadUInt16LittleEndian(header[6..]) != 0 + || BinaryPrimitives.ReadUInt16LittleEndian(header[8..]) != entries || entries == 65535 || size == uint.MaxValue || start == uint.MaxValue + || entries == 0 || entries > limits.MaxPackEntries || (long)start + size != end) + throw new InvalidDataException("ZIP directory is over budget or requires unsupported split/ZIP64 records."); + var position = (int)start; var count = 0; long expanded = 0; + while (position < end) + { + if (end - position < 46 || BinaryPrimitives.ReadUInt32LittleEndian(bytes.AsSpan(position)) != 0x02014b50 || ++count > limits.MaxPackEntries) + throw new InvalidDataException("Invalid or over-budget ZIP central directory."); + var record = bytes.AsSpan(position, end - position); + var flags = BinaryPrimitives.ReadUInt16LittleEndian(record[8..]); var method = BinaryPrimitives.ReadUInt16LittleEndian(record[10..]); + var compressed = BinaryPrimitives.ReadUInt32LittleEndian(record[20..]); var uncompressed = BinaryPrimitives.ReadUInt32LittleEndian(record[24..]); + var name = BinaryPrimitives.ReadUInt16LittleEndian(record[28..]); var extra = BinaryPrimitives.ReadUInt16LittleEndian(record[30..]); var comment = BinaryPrimitives.ReadUInt16LittleEndian(record[32..]); + var disk = BinaryPrimitives.ReadUInt16LittleEndian(record[34..]); var local = BinaryPrimitives.ReadUInt32LittleEndian(record[42..]); + var length = 46 + name + extra + comment; + if (length > end - position || name is 0 or > 4096 || disk != 0 || local >= start || (flags & 0x41) != 0 || method is not (0 or 8) + || compressed == uint.MaxValue || uncompressed > limits.MaxPackEntryBytes || compressed > limits.MaxPackBytes + || uncompressed > 0 && (compressed == 0 || uncompressed / (double)compressed > limits.MaxCompressionRatio) + || (expanded += uncompressed) > limits.MaxPackExpandedBytes) + throw new InvalidDataException("ZIP entry metadata exceeds the supported path/compression/size budget."); + position += length; + } + if (count != entries || position != end) throw new InvalidDataException("ZIP central entry count differs from its end record."); + } + private static WorldDatapackFile DescribePack(string path, WorldFileIdentity identity) => new(Path.GetFileName(path), identity.Directory, + identity.Directory ? null : identity.Size, new DateTimeOffset(identity.Directory ? Directory.GetLastWriteTimeUtc(path) : File.GetLastWriteTimeUtc(path), TimeSpan.Zero)); +} + +internal sealed class WorldPathSnapshot +{ + private readonly string root; + private readonly IReadOnlyList<(string Path, WorldFileIdentity Identity)> nodes; + public string Path { get; } + public bool Exists { get; } + public WorldFileIdentity Final => Exists ? nodes[^1].Identity : throw new IOException("Path does not exist."); + private WorldPathSnapshot(string root, string path, bool exists, IReadOnlyList<(string, WorldFileIdentity)> nodes) { this.root = root; Path = path; Exists = exists; this.nodes = nodes; } + public static WorldPathSnapshot Capture(string root, string path, bool allowMissing = false) + { + root = System.IO.Path.TrimEndingDirectorySeparator(System.IO.Path.GetFullPath(root)); path = System.IO.Path.GetFullPath(path); + var comparison = OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal; + if (!SafePath.IsWithin(root, path) || !string.Equals(SafePath.Canonical(root), root, comparison) || !string.Equals(SafePath.Canonical(path), path, comparison)) throw new IOException("World path contains a link or escapes its physical boundary."); + var relative = System.IO.Path.GetRelativePath(root, path); var parts = relative == "." ? Array.Empty() : relative.Split(System.IO.Path.DirectorySeparatorChar); + var result = new List<(string, WorldFileIdentity)> { (root, WorldFileIdentity.AtPath(root)) }; var current = root; + foreach (var part in parts) + { + if (!result[^1].Item2.Directory) throw new IOException("World path parent is not a directory."); + current = System.IO.Path.Combine(current, part); var info = new FileInfo(current); info.Refresh(); + if (info.LinkTarget is not null || info.Exists && (info.Attributes & FileAttributes.ReparsePoint) != 0) throw new IOException("World file links are unsupported."); + if (!File.Exists(current) && !Directory.Exists(current)) + { + if (allowMissing) return new(root, path, false, result); + throw new FileNotFoundException("World path does not exist."); + } + result.Add((current, WorldFileIdentity.AtPath(current))); + } + return new(root, path, true, result); + } + public void Verify() + { + var fresh = Capture(root, Path, !Exists); + if (fresh.Exists != Exists || fresh.nodes.Count != nodes.Count) throw new IOException("World path appeared or disappeared."); + for (var i = 0; i < nodes.Count; i++) + if (nodes[i].Identity.Directory ? !nodes[i].Identity.SameNode(fresh.nodes[i].Identity) : nodes[i].Identity != fresh.nodes[i].Identity) + throw new IOException("World path identity changed."); + } + public void VerifyExistingNodes() + { + foreach (var node in nodes) + { + var current = WorldFileIdentity.AtPath(node.Path); + if (node.Identity.Directory ? !node.Identity.SameNode(current) : node.Identity != current) throw new IOException("World parent path identity changed."); + } + } +} + +// Native identity is needed because SafePath and JavaTrustTree's regular-file check do not return handle/path identity. +// Layouts: Apple XNU bsd/sys/stat.h __DARWIN_STRUCT_STAT64 (arm64); Linux include/uapi/linux/stat.h; +// Microsoft FILE_ID_INFO / BY_HANDLE_FILE_INFORMATION. Windows and Linux need their own native execution gates. +internal readonly record struct WorldFileIdentity(ulong Device, ulong Index, ulong IndexHigh, bool Directory, uint Links, long Size, + long WriteSeconds, long WriteNanoseconds, long ChangeSeconds, long ChangeNanoseconds) +{ + public bool SameNode(WorldFileIdentity other) => Device == other.Device && Index == other.Index && IndexHigh == other.IndexHigh && Directory == other.Directory && (Directory || Links == other.Links); + public static WorldFileIdentity AtPath(string path) + { + if (!BitConverter.IsLittleEndian) throw new PlatformNotSupportedException("World identity currently requires little-endian native hosts."); + if (OperatingSystem.IsWindows()) + { + // Managed IO accepts long paths. Match that spelling at the native identity boundary, + // including UNC paths, after the caller has validated the physical path containment. + var nativePath = path.StartsWith(@"\\?\", StringComparison.Ordinal) ? path + : path.StartsWith(@"\\", StringComparison.Ordinal) ? @"\\?\UNC\" + path[2..] + : @"\\?\" + path; + using var handle = CreateFile(nativePath, 0, 7, IntPtr.Zero, 3, 0x02200000, IntPtr.Zero); + if (handle.IsInvalid) throw new IOException("Cannot obtain world path identity.", new System.ComponentModel.Win32Exception(Marshal.GetLastWin32Error())); return FromHandle(handle); + } + var bytes = new byte[256]; + if (OperatingSystem.IsMacOS()) { if (LStat(path, bytes) != 0) throw new IOException("Cannot stat world path."); return Darwin(bytes); } + if (OperatingSystem.IsLinux()) { if (Statx(-100, path, 0x100, 0x7ff, bytes) != 0) throw new IOException("Cannot stat world path."); return Linux(bytes); } + throw new PlatformNotSupportedException("World file identity is unavailable on this platform."); + } + public static WorldFileIdentity FromHandle(SafeFileHandle handle) + { + if (!BitConverter.IsLittleEndian) throw new PlatformNotSupportedException("World identity currently requires little-endian native hosts."); + if (OperatingSystem.IsWindows()) + { + if (GetFileType(handle) != 1 || !GetFileInformationByHandle(handle, out var info) || (info.Attributes & 0x400) != 0) throw new IOException("World files must be regular, physical files."); + var directory = (info.Attributes & 0x10) != 0; + if (!directory && info.NumberOfLinks != 1) throw new IOException("Hard-linked world files are unsupported."); + var id = new byte[24]; + if (!GetFileInformationByHandleEx(handle, 18, id, 24)) throw new IOException("Windows filesystem does not expose a stable 128-bit world file identity."); + return new(BinaryPrimitives.ReadUInt64LittleEndian(id), BinaryPrimitives.ReadUInt64LittleEndian(id.AsSpan(8)), BinaryPrimitives.ReadUInt64LittleEndian(id.AsSpan(16)), directory, info.NumberOfLinks, + directory ? 0 : ((long)info.SizeHigh << 32) | info.SizeLow, + directory ? 0 : ((long)info.Write.dwHighDateTime << 32) | (uint)info.Write.dwLowDateTime, 0, 0, 0); + } + var bytes = new byte[256]; var fd = handle.DangerousGetHandle().ToInt32(); + if (OperatingSystem.IsMacOS()) { if (FStat(fd, bytes) != 0) throw new IOException("Cannot stat open world file."); return Darwin(bytes); } + if (OperatingSystem.IsLinux()) { if (Statx(fd, "", 0x1000, 0x7ff, bytes) != 0) throw new IOException("Cannot stat open world file."); return Linux(bytes); } + throw new PlatformNotSupportedException("World file identity is unavailable on this platform."); + } + private static WorldFileIdentity Darwin(byte[] bytes) + { + var mode = BinaryPrimitives.ReadUInt16LittleEndian(bytes.AsSpan(4)); var links = BinaryPrimitives.ReadUInt16LittleEndian(bytes.AsSpan(6)); + var directory = ValidateType(mode, links); + return new(BinaryPrimitives.ReadUInt32LittleEndian(bytes), BinaryPrimitives.ReadUInt64LittleEndian(bytes.AsSpan(8)), 0, directory, links, + directory ? 0 : BinaryPrimitives.ReadInt64LittleEndian(bytes.AsSpan(96)), directory ? 0 : BinaryPrimitives.ReadInt64LittleEndian(bytes.AsSpan(48)), + directory ? 0 : BinaryPrimitives.ReadInt64LittleEndian(bytes.AsSpan(56)), directory ? 0 : BinaryPrimitives.ReadInt64LittleEndian(bytes.AsSpan(64)), directory ? 0 : BinaryPrimitives.ReadInt64LittleEndian(bytes.AsSpan(72))); + } + private static WorldFileIdentity Linux(byte[] bytes) + { + if ((BinaryPrimitives.ReadUInt32LittleEndian(bytes) & 0x3c7) != 0x3c7) throw new IOException("Filesystem does not expose required statx identity fields."); + var mode = BinaryPrimitives.ReadUInt16LittleEndian(bytes.AsSpan(28)); var links = BinaryPrimitives.ReadUInt32LittleEndian(bytes.AsSpan(16)); + var directory = ValidateType(mode, links); + return new(((ulong)BinaryPrimitives.ReadUInt32LittleEndian(bytes.AsSpan(136)) << 32) | BinaryPrimitives.ReadUInt32LittleEndian(bytes.AsSpan(140)), BinaryPrimitives.ReadUInt64LittleEndian(bytes.AsSpan(32)), 0, directory, links, + directory ? 0 : checked((long)BinaryPrimitives.ReadUInt64LittleEndian(bytes.AsSpan(40))), directory ? 0 : BinaryPrimitives.ReadInt64LittleEndian(bytes.AsSpan(112)), + directory ? 0 : BinaryPrimitives.ReadUInt32LittleEndian(bytes.AsSpan(120)), directory ? 0 : BinaryPrimitives.ReadInt64LittleEndian(bytes.AsSpan(96)), directory ? 0 : BinaryPrimitives.ReadUInt32LittleEndian(bytes.AsSpan(104))); + } + private static bool ValidateType(uint mode, uint links) + { + var type = mode & 0xf000; if (type != 0x4000 && type != 0x8000 || type == 0x8000 && links != 1) throw new IOException("World links and special files are unsupported."); + return type == 0x4000; + } + [StructLayout(LayoutKind.Sequential)] private struct WindowsInformation + { + internal uint Attributes; internal System.Runtime.InteropServices.ComTypes.FILETIME Creation, Access, Write; + internal uint Volume, SizeHigh, SizeLow, NumberOfLinks, IndexHigh, IndexLow; + } + [DllImport("libc", EntryPoint = "lstat", SetLastError = true)] private static extern int LStat([MarshalAs(UnmanagedType.LPUTF8Str)] string path, [Out] byte[] buffer); + [DllImport("libc", EntryPoint = "fstat", SetLastError = true)] private static extern int FStat(int descriptor, [Out] byte[] buffer); + [DllImport("libc", EntryPoint = "statx", SetLastError = true)] private static extern int Statx(int descriptor, [MarshalAs(UnmanagedType.LPUTF8Str)] string path, int flags, uint mask, [Out] byte[] buffer); + [DllImport("kernel32.dll", EntryPoint = "CreateFileW", CharSet = CharSet.Unicode, SetLastError = true)] private static extern SafeFileHandle CreateFile(string path, uint access, uint share, IntPtr security, uint mode, uint flags, IntPtr template); + [DllImport("kernel32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] private static extern bool GetFileInformationByHandle(SafeFileHandle handle, out WindowsInformation information); + [DllImport("kernel32.dll", SetLastError = true)] private static extern uint GetFileType(SafeFileHandle handle); + [DllImport("kernel32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] private static extern bool GetFileInformationByHandleEx(SafeFileHandle handle, int informationClass, [Out] byte[] buffer, uint size); +} diff --git a/src/SHOU.Launcher.Core/Instances/LaunchScript.cs b/src/SHOU.Launcher.Core/Instances/LaunchScript.cs new file mode 100644 index 00000000..3c1f22b4 --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/LaunchScript.cs @@ -0,0 +1,55 @@ +using System.Security.Cryptography; +using System.Text; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Instances; + +public static class LaunchScript +{ + public static string Build(LauncherOS os, string executable, string dataDirectory, string instanceId, bool explicitDataDirectory = true) + { + SafePath.Identifier(instanceId); + if (os is not (LauncherOS.Windows or LauncherOS.MacOS) || !Path.IsPathFullyQualified(executable) || !Path.IsPathFullyQualified(dataDirectory) || new[] { executable, dataDirectory }.Any(s => s.Any(char.IsControl))) throw new ArgumentException("启动脚本路径或平台无效。"); + // Route through the launcher; credentials, Java argv and user hooks are never exported. + if (os == LauncherOS.Windows) + { + string Q(string value) + { + if (value.Contains('"')) throw new ArgumentException("Windows 脚本路径包含无效字符。"); + var trailing = value.Length - value.TrimEnd('\\').Length; + return "\"" + value.Replace("%", "%%", StringComparison.Ordinal) + new string('\\', trailing) + "\""; + } + return "@echo off\r\nsetlocal DisableDelayedExpansion\r\nchcp 65001 >nul\r\n" + Q(executable) + (explicitDataDirectory ? " --data-dir " + Q(dataDirectory) : "") + " --launch-instance " + Q(instanceId) + "\r\nexit /b %errorlevel%\r\n"; + } + static string S(string value) => "'" + value.Replace("'", "'\"'\"'", StringComparison.Ordinal) + "'"; + return "#!/bin/sh\nexec " + S(executable) + (explicitDataDirectory ? " --data-dir " + S(dataDirectory) : "") + " --launch-instance " + S(instanceId) + "\n"; + } + public static async Task SaveAsync(string destination, string content, bool overwrite, bool unixExecutable, CancellationToken ct) + { + if (!Path.IsPathFullyQualified(destination)) throw new ArgumentException("请选择完整的脚本保存路径。"); + SafePath.RejectLinks(destination); SafePath.RejectLinks(destination + ".bak"); + byte[]? previous = null; + if (File.Exists(destination)) + { + if (!overwrite) throw new IOException("脚本已存在,请确认覆盖或另选文件名。"); + if (new FileInfo(destination).Length > 1024 * 1024) throw new IOException("目标文件过大,请另选文件名。"); + previous = await File.ReadAllBytesAsync(destination, ct); + } + var stage = destination + ".tmp-" + Guid.NewGuid().ToString("N"); var backupStage = stage + ".bak"; + try + { + await using (var stream = new FileStream(stage, FileMode.CreateNew, FileAccess.Write, FileShare.None, 65536, true)) { await stream.WriteAsync(Encoding.UTF8.GetBytes(content), ct); await stream.FlushAsync(ct); } + if (unixExecutable && !OperatingSystem.IsWindows()) File.SetUnixFileMode(stage, UnixFileMode.UserRead | UnixFileMode.UserWrite | UnixFileMode.UserExecute); + ct.ThrowIfCancellationRequested(); SafePath.RejectLinks(destination); + var current = File.Exists(destination) ? await Content.WorldContentArchive.ReadFileAsync(Path.GetDirectoryName(destination)!, destination, 1024 * 1024, ct) : null; + if (previous is null ? current is not null : current is null || !CryptographicOperations.FixedTimeEquals(SHA256.HashData(previous), SHA256.HashData(current))) throw new IOException("目标脚本已变化,已保留其它程序的修改。"); + if (previous is not null) + { + await File.WriteAllBytesAsync(backupStage, previous, ct); ct.ThrowIfCancellationRequested(); SafePath.RejectLinks(destination + ".bak"); File.Move(backupStage, destination + ".bak", true); + } + ct.ThrowIfCancellationRequested(); File.Move(stage, destination, overwrite); + } + finally { if (File.Exists(stage)) { SafePath.RejectLinks(stage); File.Delete(stage); } if (File.Exists(backupStage)) { SafePath.RejectLinks(backupStage); File.Delete(backupStage); } } + } +} diff --git a/src/SHOU.Launcher.Core/Instances/LegacyInstancePresentation.cs b/src/SHOU.Launcher.Core/Instances/LegacyInstancePresentation.cs new file mode 100644 index 00000000..03ea05c3 --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/LegacyInstancePresentation.cs @@ -0,0 +1,38 @@ +using System.Text; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Instances; + +internal static class LegacyInstancePresentation +{ + internal static async Task ReadAsync(string folder, string fallbackIcon, CancellationToken ct) + { + var path = SafePath.Within(folder, "PCL/Setup.ini"); + var values = new Dictionary(StringComparer.OrdinalIgnoreCase); + if (File.Exists(path)) + { + var bytes = await WorldContentArchive.ReadFileAsync(folder, path, 256 * 1024, ct); + var text = bytes.AsSpan().StartsWith(new byte[] { 255, 254 }) ? Encoding.Unicode.GetString(bytes.AsSpan(2)) : Encoding.UTF8.GetString(bytes).TrimStart('\uFEFF'); + foreach (var line in text.Split('\n')) + { + var colon = line.IndexOf(':'); var equals = line.IndexOf('='); + var i = colon < 0 ? equals : equals < 0 ? colon : Math.Min(colon, equals); if (i < 1) continue; + var key = line[..i].Trim(); if (key is "Logo" or "IsStar" or "CustomInfo" or "DisplayType" or "VersionLaunchCount") values[key] = line[(i + 1)..].Trim(); + } + } + var customFile = SafePath.Within(folder, "PCL/Logo.png"); + var name = Path.GetFileName((values.GetValueOrDefault("Logo") ?? "").Replace('\\', '/')).ToLowerInvariant(); + var icon = File.Exists(customFile) ? "auto" : name switch + { + "grass.png" => "minecraft", "fabric.png" => "fabric", "anvil.png" => "forge", "neoforge.png" => "neoforge", "quilt.png" => "quilt", "cleanroom.png" => "cleanroom", "labymod.png" => "labymod", "egg.png" => "liteloader", "grasspath.png" => "grasspath", "cobblestone.png" => "cobblestone", "commandblock.png" => "commandblock", "redstonelampon.png" => "redstonelamp", "goldblock.png" => "goldblock", "redstoneblock.png" => "redstoneblock", _ => fallbackIcon + }; + var category = values.GetValueOrDefault("DisplayType") switch { "1" => "隐藏", "2" => "可安装模组", "3" => "原版", "4" => "远古版", "5" => "愚人节版", "6" => "需检查", _ => "auto" }; + var description = values.GetValueOrDefault("CustomInfo") ?? ""; + if (description.Length > 4096 || description.Any(char.IsControl)) description = ""; + var favorite = values.GetValueOrDefault("DisplayType") == "-1" || values.GetValueOrDefault("IsStar") is { } star && (star.Equals("true", StringComparison.OrdinalIgnoreCase) || star == "1"); + var count = long.TryParse(values.GetValueOrDefault("VersionLaunchCount"), out var n) && n >= 0 ? n : 0; + return new(icon, category, description, favorite, count); + } +} diff --git a/src/SHOU.Launcher.Core/Instances/LegacyLaunchSettings.Runtime.cs b/src/SHOU.Launcher.Core/Instances/LegacyLaunchSettings.Runtime.cs new file mode 100644 index 00000000..c72a3973 --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/LegacyLaunchSettings.Runtime.cs @@ -0,0 +1,99 @@ +using System.Globalization; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Instances; + +public static partial class LegacyLaunchSettings +{ + public static LauncherSettings MapGlobalRuntimeSettings(IReadOnlyDictionary values, + LauncherSettings basis, string? executableDirectory, out IReadOnlyList notices) + { + var warnings = new List(); + var java = ReadJavaPreference(values.GetValueOrDefault("LaunchArgumentJavaSelect"), executableDirectory, warnings); + var normalized = new Dictionary(); + foreach (var suffix in new[] { "Type", "Custom", "CustomInitial" }) + if (values.TryGetValue("LaunchRam" + suffix, out var value)) normalized["VersionRam" + suffix] = value; + var memory = ReadMemoryPreference(normalized, warnings); + var options = basis.LaunchOptions ?? new(AutomaticMemory: true); + if (memory.Maximum is not null) options = options with { AutomaticMemory = false }; + else if (normalized.GetValueOrDefault("VersionRamType") == "0") options = options with { AutomaticMemory = true }; + notices = warnings; + return basis with { JavaExecutable = java ?? basis.JavaExecutable, MemoryMiB = memory.Maximum ?? basis.MemoryMiB, + MinimumMemoryMiB = memory.Maximum is not null ? memory.Minimum : basis.MinimumMemoryMiB, LaunchOptions = options }; + } + + private static (int? Maximum, int? Minimum) ReadMemoryPreference(IReadOnlyDictionary values, List warnings) + { + var mode = values.GetValueOrDefault("VersionRamType"); + if (mode is null or "" or "0" or "2") return (null, null); + if (mode != "1" || !TryMemoryTick(values.GetValueOrDefault("VersionRamCustom") ?? "15", out var maximum)) + { + warnings.Add("旧自定义内存超出支持范围或格式无效,未自动覆盖;原设置保留,请手动核对。"); + return (null, null); + } + var initial = values.GetValueOrDefault("VersionRamCustomInitial"); + if (initial is null or "" or "0") return (maximum, null); + if (TryMemoryTick(initial, out var minimum)) return (maximum, Math.Min(minimum, maximum)); + warnings.Add("旧初始内存格式无效或超出支持范围,未自动设置初始堆;原设置保留。"); + return (maximum, null); + } + + private static bool TryMemoryTick(string text, out int mib) + { + mib = 0; + if (!int.TryParse(text, NumberStyles.None, CultureInfo.InvariantCulture, out var tick) || tick is < 0 or > 41) return false; + // Original PCL GetRamFromTick business rule; these are slider ticks, never MiB. + mib = tick switch { <= 12 => (tick + 3) * 1024 / 10, <= 25 => (tick - 12) * 512 + 1536, + <= 33 => (tick - 25) * 1024 + 8192, _ => (tick - 33) * 2048 + 16384 }; + return mib is >= 512 and <= 32768; + } + + private static string? ReadJavaPreference(string? raw, string? executableDirectory, List warnings) + { + if (string.IsNullOrWhiteSpace(raw) || raw is "使用全局设置" or "自动选择") return null; + try + { + if (raw.Length > 32768) throw new InvalidDataException(); + string? path = raw; var relative = false; + if (raw.TrimStart().StartsWith('{')) + { + using var json = JsonDocument.Parse(raw, new() { MaxDepth = 16 }); + var node = json.RootElement; + if (node.ValueKind != JsonValueKind.Object || node.EnumerateObject().GroupBy(p => p.Name, StringComparer.OrdinalIgnoreCase).Any(g => g.Count() > 1)) throw new InvalidDataException(); + string? Text(string key) => node.EnumerateObject().FirstOrDefault(p => p.Name.Equals(key, StringComparison.OrdinalIgnoreCase)).Value is { ValueKind: JsonValueKind.String } v ? v.GetString() : null; + var kind = Text("kind"); + if (kind is "auto" or "global") return null; + if (kind is not (null or "exist" or "relative")) throw new InvalidDataException(); + relative = kind == "relative"; + path = relative ? Text("RelativePath") : Text("JavaExePath") ?? Text("Path"); + } + if (string.IsNullOrWhiteSpace(path) || path.Any(char.IsControl)) throw new InvalidDataException(); + if (path.StartsWith('$')) { relative = true; path = path[1..].TrimStart('/', '\\'); } + if (relative) + { + if (executableDirectory is null || Path.IsPathFullyQualified(path)) throw new InvalidDataException(); + path = SafePath.Within(executableDirectory, path); + } + if (!Path.IsPathFullyQualified(path)) throw new InvalidDataException(); + path = Path.GetFullPath(path); SafePath.RejectLinks(path); + if (Directory.Exists(path)) + { + var names = OperatingSystem.IsWindows() ? new[] { "java.exe", "javaw.exe" } : new[] { "java" }; + path = names.Select(n => Path.Combine(path, n)).Concat(names.Select(n => Path.Combine(path, "bin", n))) + .FirstOrDefault(File.Exists) ?? throw new FileNotFoundException(); + } + var comparison = OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal; + if (!new[] { "java", "java.exe", "javaw.exe" }.Any(n => Path.GetFileName(path).Equals(n, comparison)) || !File.Exists(path)) throw new FileNotFoundException(); + SafePath.RejectLinks(path); + // Preserve selection only. Normal Java discovery still probes the executable before launch. + return path; + } + catch (Exception ex) when (ex is IOException or InvalidDataException or UnauthorizedAccessException or ArgumentException or JsonException or InvalidOperationException or NotSupportedException) + { + warnings.Add("旧 Java 路径已失效、格式不受支持或无法安全读取,未自动选用;原设置保留,将沿用全局 Java 选择。"); + return null; + } + } +} diff --git a/src/SHOU.Launcher.Core/Instances/LegacyLaunchSettings.cs b/src/SHOU.Launcher.Core/Instances/LegacyLaunchSettings.cs new file mode 100644 index 00000000..a5c0d333 --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/LegacyLaunchSettings.cs @@ -0,0 +1,51 @@ +using System.Text; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.IO; +using SHOU.Launcher.Core.Minecraft; + +namespace SHOU.Launcher.Core.Instances; + +public static partial class LegacyLaunchSettings +{ + private static readonly HashSet Keys = ["VersionAdvanceJvm", "VersionAdvanceGame", "VersionAdvanceClasspathHead", "VersionArgumentTitle", "VersionArgumentInfo", "VersionArgumentIndie", "VersionArgumentIndieV2", "VersionUseDebugLog4j2Config", "VersionAdvanceRun", "VersionArgumentJavaSelect", "VersionRamType", "VersionRamCustom", "VersionRamCustomInitial", "VersionAdvanceRenderer", "VersionAdvanceAssetsV2", "VersionAdvanceJava", "VersionAdvanceDisableJLW", "VersionAdvanceDisableLF", "VersionAdvanceDisableLwjglUnsafeAgent"]; + public static async Task> ReadAsync(string folder, CancellationToken ct) + { + var file = SafePath.Within(folder, "PCL/Setup.ini"); var values = new Dictionary(StringComparer.Ordinal); + if (!File.Exists(file)) return values; + var bytes = await WorldContentArchive.ReadFileAsync(folder, file, 256 * 1024, ct); + var text = bytes.AsSpan().StartsWith(new byte[] {255,254}) ? Encoding.Unicode.GetString(bytes.AsSpan(2)) : Encoding.UTF8.GetString(bytes).TrimStart('\uFEFF'); + foreach (var line in text.Split('\n')) + { + var a = line.IndexOf(':'); var b = line.IndexOf('='); var i = a < 0 ? b : b < 0 ? a : Math.Min(a, b); + if (i > 0 && Keys.Contains(line[..i].Trim())) values[line[..i].Trim()] = line[(i + 1)..].Trim(); + } + return values; + } + public static InstanceDirectoryMode? Isolation(IReadOnlyDictionary values) + { + if (values.TryGetValue("VersionArgumentIndieV2", out var v2) && bool.TryParse(v2, out var independent)) return independent ? InstanceDirectoryMode.Isolated : InstanceDirectoryMode.Shared; + return values.GetValueOrDefault("VersionArgumentIndie") switch { "1" => InstanceDirectoryMode.Isolated, "2" => InstanceDirectoryMode.Shared, "0" => InstanceDirectoryMode.FollowGlobal, _ => null }; + } + public static LegacyInstanceSettings Map(IReadOnlyDictionary values, GameLaunchOptions basis, string? executableDirectory = null) + { + var options = basis with { InheritGlobal = false }; var warnings = new List(); + foreach (var key in new[] { "VersionAdvanceJvm", "VersionAdvanceGame", "VersionAdvanceClasspathHead", "VersionArgumentTitle", "VersionArgumentInfo" }) + { + if (values.GetValueOrDefault(key) is not { Length: > 0 } text) continue; + var candidate = key switch { "VersionAdvanceJvm" => options with { JvmArguments = text }, "VersionAdvanceGame" => options with { GameArguments = text }, "VersionAdvanceClasspathHead" => options with { ClasspathPrepend = text }, "VersionArgumentTitle" => options with { WindowTitle = text }, _ => options with { CustomInfo = text } }; + try { GameSettingsPolicy.Validate(candidate); options = candidate; } + catch (ArgumentException) { warnings.Add("部分旧高级参数不受支持,原文件保留,请手动核对。"); } + } + if (bool.TryParse(values.GetValueOrDefault("VersionUseDebugLog4j2Config"), out var debug)) options = options with { DebugLogging = debug }; + if (values.GetValueOrDefault("VersionAdvanceRun") is { Length: > 0 }) warnings.Add("旧前置命令未自动执行或导入,请明确选择程序及独立参数。"); + var java = ReadJavaPreference(values.GetValueOrDefault("VersionArgumentJavaSelect"), executableDirectory, warnings); + var memory = ReadMemoryPreference(values, warnings); + if (memory.Maximum is not null) options = options with { MinimumMemoryMiB = memory.Minimum }; + if (values.GetValueOrDefault("VersionRamType") == "0" && !basis.AutomaticMemory) + warnings.Add("旧实例使用自动内存;当前独立内存界面仅支持跟随全局或固定值,请核对全局自动内存设置。原文件保留。"); + if (values.GetValueOrDefault("VersionAdvanceRenderer") is { Length: > 0 } renderer && renderer != "0") warnings.Add("旧 Windows 专用渲染器需要单独适配,当前保留游戏默认渲染器。"); + if (new[] { "VersionAdvanceAssetsV2", "VersionAdvanceJava", "VersionAdvanceDisableJLW", "VersionAdvanceDisableLF", "VersionAdvanceDisableLwjglUnsafeAgent" }.Any(k => bool.TryParse(values.GetValueOrDefault(k), out var enabled) && enabled)) warnings.Add("旧专属补丁或跳过检查的开关未覆盖当前安全引导和文件校验。"); + return new(options, Isolation(values), warnings.Distinct().ToArray(), java, memory.Maximum); + } +} diff --git a/src/SHOU.Launcher.Core/Instances/LocalDisplayJson.cs b/src/SHOU.Launcher.Core/Instances/LocalDisplayJson.cs new file mode 100644 index 00000000..c718c019 --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/LocalDisplayJson.cs @@ -0,0 +1,63 @@ +using System.Text; +using System.Text.Json; +using System.Text.Json.Nodes; + +namespace SHOU.Launcher.Core.Instances; + +/// Compatibility for local display metadata only; never used for remote identities or install manifests. +internal static class LocalDisplayJson +{ + internal static JsonNode? Parse(byte[] bytes) => Parse(Encoding.UTF8.GetString(bytes)); + internal static JsonNode? Parse(string text) + { + if (text.StartsWith('\uFEFF')) text = text[1..]; + var output = new StringBuilder(text.Length); bool quoted = false, escaped = false, lineComment = false, blockComment = false; + for (var i = 0; i < text.Length; i++) + { + var c = text[i]; var next = i + 1 < text.Length ? text[i + 1] : '\0'; + if (lineComment) { output.Append(c); if (c is '\r' or '\n') lineComment = false; continue; } + if (blockComment) { output.Append(c); if (c == '*' && next == '/') { output.Append(next); i++; blockComment = false; } continue; } + if (quoted) + { + if (escaped) { output.Append(c); escaped = false; continue; } + if (c == '\\') { output.Append(c); escaped = true; continue; } + if (c == '"') quoted = false; + else if (c < 0x20) { output.Append("\\u").Append(((int)c).ToString("x4", System.Globalization.CultureInfo.InvariantCulture)); continue; } + } + else if (c == '"') quoted = true; + else if (c == '/' && next is '/' or '*') { output.Append(c).Append(next); i++; lineComment = next == '/'; blockComment = next == '*'; continue; } + output.Append(c); + } + using var document = JsonDocument.Parse(output.ToString(), new() { CommentHandling = JsonCommentHandling.Skip, AllowTrailingCommas = true }); + using var normalized = new MemoryStream(); + using (var writer = new Utf8JsonWriter(normalized)) WriteDisplayElement(document.RootElement, writer); + return JsonNode.Parse(normalized.ToArray()); + } + private static void WriteDisplayElement(JsonElement element, Utf8JsonWriter writer) + { + if (element.ValueKind == JsonValueKind.Object) + { + writer.WriteStartObject(); + foreach (var property in element.EnumerateObject()) + { + // Some existing mod manifests use repeated empty-name fields as comments. + // They are never identities. Preserve all named fields, including duplicates, + // so conflicting id/version/dependency declarations still fail normally. + if (property.Name.Length == 0) continue; + writer.WritePropertyName(property.Name); WriteDisplayElement(property.Value, writer); + } + writer.WriteEndObject(); + } + else if (element.ValueKind == JsonValueKind.Array) + { + writer.WriteStartArray(); foreach (var item in element.EnumerateArray()) WriteDisplayElement(item, writer); writer.WriteEndArray(); + } + else element.WriteTo(writer); + } + internal static string? Description(string? text) + { + if (text is null) return null; + var value = string.Join(" ", text.Split((char[]?)null, StringSplitOptions.RemoveEmptyEntries)); + return value.Length == 0 || value.Any(char.IsControl) ? null : value[..Math.Min(value.Length, 2048)]; + } +} diff --git a/src/SHOU.Launcher.Core/Instances/ModArchiveMetadata.cs b/src/SHOU.Launcher.Core/Instances/ModArchiveMetadata.cs new file mode 100644 index 00000000..27654097 --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/ModArchiveMetadata.cs @@ -0,0 +1,96 @@ +using System.Buffers.Binary; +using System.IO.Compression; +using System.Text.Json.Nodes; +using System.Text.RegularExpressions; + +namespace SHOU.Launcher.Core.Instances; + +/// Reads display metadata only; never executes or extracts a mod. +internal static partial class ModArchiveMetadata +{ + internal sealed record Metadata(string? Name, string? Version, byte[]? Icon, string? Id = null, + string? Description = null, IReadOnlyList? Dependencies = null, IReadOnlyList? Embedded = null, string? Error = null); + internal static Metadata Read(string path, bool includeIcon) + { + try + { + using var file = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read); + if (file.Length is <= 0 or > 512L * 1024 * 1024) return new(null, null, null); + using var zip = new ZipArchive(file, ZipArchiveMode.Read); + if (zip.Entries.Count > 40000) return new(null, null, null); + string? name = null, version = null, icon = null, id = null, description = null; + var dependencies = new List(); var embedded = new List(); + if (zip.GetEntry("fabric.mod.json") is { } fabric) + { + var root = LocalDisplayJson.Parse(Read(fabric, 128 * 1024)); + name = (string?)root?["name"]; version = (string?)root?["version"]; + id = (string?)root?["id"]; description = (string?)root?["description"]; + dependencies.AddRange((root?["depends"] as JsonObject ?? []).Select(p => p.Key)); + foreach (var item in root?["jars"] as JsonArray ?? []) if ((string?)item?["file"] is { } nested) embedded.Add(NestedName(zip, nested)); + var value = root?["icon"]; + icon = value is JsonValue ? (string?)value : (value as JsonObject)?.OrderBy(p => int.TryParse(p.Key, out var n) && n is > 0 and <= 2048 ? Math.Abs(n - 64) : int.MaxValue).FirstOrDefault().Value?.GetValue(); + } + else if (zip.GetEntry("quilt.mod.json") is { } quilt) + { + var root = LocalDisplayJson.Parse(Read(quilt, 128 * 1024))?["quilt_loader"]; + name = (string?)root?["metadata"]?["name"]; version = (string?)root?["version"]; icon = (string?)root?["metadata"]?["icon"]; + id = (string?)root?["id"]; description = (string?)root?["metadata"]?["description"]; + foreach (var dep in root?["depends"] as JsonArray ?? []) if (dep is JsonValue value) dependencies.Add(value.GetValue()); else if ((string?)dep?["id"] is { } key && (bool?)dep?["optional"] != true) dependencies.Add(key); + } + else if ((zip.GetEntry("META-INF/neoforge.mods.toml") ?? zip.GetEntry("META-INF/mods.toml")) is { } forge) + { + var text = System.Text.Encoding.UTF8.GetString(Read(forge, 128 * 1024)); + name = Field(text, "displayName"); version = Field(text, "version"); icon = Field(text, "logoFile"); + id = Field(text, "modId"); description = Field(text, "description"); + foreach (var block in Regex.Split(text, @"(?m)^\s*\[\[dependencies\.[^\]]+\]\]", RegexOptions.CultureInvariant, TimeSpan.FromMilliseconds(50)).Skip(1)) + if (Regex.IsMatch(block, @"(?m)^\s*mandatory\s*=\s*true", RegexOptions.CultureInvariant, TimeSpan.FromMilliseconds(50)) || Field(block, "type") == "required") + if (Field(block, "modId") is { Length: > 0 } key) dependencies.Add(key); + } + else if (zip.GetEntry("mcmod.info") is { } legacy) + { + var root = LocalDisplayJson.Parse(Read(legacy, 128 * 1024)); + var mod = root is JsonArray array ? array.FirstOrDefault() : (root?["modList"] as JsonArray)?.FirstOrDefault(); + name = (string?)mod?["name"]; version = (string?)mod?["version"]; icon = (string?)mod?["logoFile"]; + id = (string?)mod?["modid"]; description = (string?)mod?["description"]; + if (mod?["requiredMods"] is JsonArray required) dependencies.AddRange(required.Select(d => (string?)d ?? "").Select(d => d.Split('@')[0])); + } + if (zip.GetEntry("META-INF/jarjar/metadata.json") is { } jarjar) + foreach (var item in LocalDisplayJson.Parse(Read(jarjar, 128 * 1024))?["jars"] as JsonArray ?? []) + if ((string?)item?["path"] is { } nested) embedded.Add(NestedName(zip, nested)); + byte[]? png = null; + if (includeIcon && icon is { Length: > 0 and <= 256 } && !icon.StartsWith('/') && !icon.Contains('\\') && !icon.Split('/').Any(p => p is ".." or "." or "") && zip.GetEntry(icon) is { } entry) + { + var bytes = Read(entry, 256 * 1024); + if (bytes.Length >= 24 && bytes.AsSpan(0, 8).SequenceEqual(new byte[] { 137, 80, 78, 71, 13, 10, 26, 10 }) + && BinaryPrimitives.ReadUInt32BigEndian(bytes.AsSpan(16)) is > 0 and <= 2048 + && BinaryPrimitives.ReadUInt32BigEndian(bytes.AsSpan(20)) is > 0 and <= 2048) png = bytes; + } + return new(Label(name), Label(version)?.Contains("${", StringComparison.Ordinal) == true ? null : Label(version), png, + Label(id), LocalDisplayJson.Description(description), dependencies.Where(d => Label(d) is not null).Distinct(StringComparer.Ordinal).ToArray(), embedded.Distinct(StringComparer.Ordinal).ToArray()); + } + catch (Exception ex) when (ex is IOException or InvalidDataException or System.Text.Json.JsonException or InvalidOperationException or ArgumentException) + { return new(null, null, null, Error: "无法读取模组归档或元数据。"); } + } + private static string NestedName(ZipArchive archive, string path) + { + if (path.StartsWith('/') || path.Contains('\\') || path.Split('/').Any(p => p is ".." or "." or "")) throw new InvalidDataException(); + var entry = archive.GetEntry(path) ?? throw new InvalidDataException(); + if (entry.Length is <= 0 or > 16 * 1024 * 1024) return Path.GetFileName(path); + using var bytes = new MemoryStream(Read(entry, 16 * 1024 * 1024)); using var nested = new ZipArchive(bytes, ZipArchiveMode.Read); + var metadata = nested.GetEntry("fabric.mod.json") ?? nested.GetEntry("quilt.mod.json"); + if (metadata is null) return Path.GetFileName(path); + var json = LocalDisplayJson.Parse(Read(metadata, 128 * 1024)); var root = json?["quilt_loader"] ?? json; + var name = Label((string?)root?["name"] ?? (string?)root?["id"]); var version = Label((string?)root?["version"]); + return name is null ? Path.GetFileName(path) : name + (version is null ? "" : " " + version); + } + private static string? Label(string? value) => value is { Length: > 0 and <= 160 } && !value.Any(char.IsControl) ? value : null; + private static string? Field(string text, string key) => Regex.Match(text, @"(?m)^\s*" + Regex.Escape(key) + "\\s*=\\s*[\"']([^\"'\\r\\n]+)[\"']", RegexOptions.CultureInvariant, TimeSpan.FromMilliseconds(50)).Groups[1].Value; + private static byte[] Read(ZipArchiveEntry entry, int limit) + { + if (entry.Length < 0 || entry.Length > limit) throw new InvalidDataException(); + using var input = entry.Open(); using var output = new MemoryStream(); var buffer = new byte[8192]; + while (true) { var n = input.Read(buffer); if (n == 0) break; if (output.Length + n > limit) throw new InvalidDataException(); output.Write(buffer, 0, n); } + if (output.Length != entry.Length) throw new InvalidDataException(); + return output.ToArray(); + } +} diff --git a/src/SHOU.Launcher.Core/Instances/ModFileManagement.cs b/src/SHOU.Launcher.Core/Instances/ModFileManagement.cs new file mode 100644 index 00000000..c8fa0ae6 --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/ModFileManagement.cs @@ -0,0 +1,178 @@ +using System.Security.Cryptography; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; + +namespace SHOU.Launcher.Core.Instances; + +internal static class ModFileManagement +{ + private sealed record TrashRecord(int Version, string InstanceId, DateTimeOffset Created, + IReadOnlyList Files, IReadOnlyList RemovedManifestFiles); + + private static string FolderName(string kind) => kind switch { "mods" or "resourcepacks" or "schematics" => kind, "shaders" => "shaderpacks", _ => throw new ArgumentException("不支持此资源回收类别。") }; + private static string PathOf(GameInstance instance, string relative, string kind = "mods") + { + var folder = FolderName(kind); + if (!relative.StartsWith(folder + "/", StringComparison.Ordinal) || kind != "schematics" && relative[(folder.Length + 1)..].Contains('/') || relative.Contains('\\') || !InstanceWorkspace.Accepts(kind, relative)) + throw new InvalidDataException("资源路径无效。"); + return ContentInstallFiles.Literal(instance.GameDirectory, relative); + } + private static string EnabledPath(string path) => path.EndsWith(".disabled", StringComparison.OrdinalIgnoreCase) ? path[..^9] : path.EndsWith(".old", StringComparison.OrdinalIgnoreCase) ? path[..^4] : path; + private static void ValidatePaths(GameInstance instance, IReadOnlyList paths, string kind = "mods") + { + if (paths.Count == 0 || paths.Select(ContentInstallFiles.PathKey).Distinct(StringComparer.Ordinal).Count() != paths.Count) throw new InvalidDataException("请选择不重复的资源文件。"); + foreach (var path in paths) if (!File.Exists(PathOf(instance, path, kind))) throw new IOException("所选资源不存在,请刷新列表。"); + } + public static void Toggle(GameInstance instance, IReadOnlyList paths, bool enabled, Action validateTarget, CancellationToken ct) + { + ValidatePaths(instance, paths); + var plans = paths.Select(p => (Old: p, Next: enabled ? EnabledPath(p) : EnabledPath(p) + ".disabled")).Where(p => p.Old != p.Next).ToArray(); + if (plans.Select(p => ContentInstallFiles.PathKey(p.Next)).Distinct(StringComparer.Ordinal).Count() != plans.Length || plans.Any(p => File.Exists(PathOf(instance, p.Next)))) throw new IOException("模组目标名称冲突,未修改文件。"); + var moved = new List<(string Old, string Next)>(); + try + { + foreach (var plan in plans) { ct.ThrowIfCancellationRequested(); validateTarget(); File.Move(PathOf(instance, plan.Old), PathOf(instance, plan.Next), false); moved.Add(plan); } + } + catch + { + foreach (var plan in moved.AsEnumerable().Reverse()) File.Move(PathOf(instance, plan.Next), PathOf(instance, plan.Old), false); + throw; + } + } + private static string TrashRoot(GameInstance instance, string kind = "mods") => ContentInstallFiles.Literal(instance.GameDirectory, kind == "mods" ? ".shou-mod-trash" : ".shou-content-trash/" + FolderName(kind)); + private static string Receipt(GameInstance instance, string id, string kind = "mods") + { + if (!Guid.TryParseExact(id, "N", out _)) throw new InvalidDataException("回收记录身份无效。"); + return ContentInstallFiles.Literal(TrashRoot(instance, kind), id + "/receipt.json"); + } + private static Task ManifestBytes(GameInstance instance, CancellationToken ct) + { + var path = ContentInstallFiles.Literal(instance.GameDirectory, ContentInstallFiles.ManifestName); + return File.Exists(path) ? Read() : Task.FromResult(null); + async Task Read() => await File.ReadAllBytesAsync(path, ct); + } + private static async Task WriteManifestAsync(GameInstance instance, ContentInstallManifest manifest, byte[]? expected, CancellationToken ct) + { + var target = ContentInstallFiles.Literal(instance.GameDirectory, ContentInstallFiles.ManifestName); + var temporary = ContentInstallFiles.Literal(instance.GameDirectory, ".mod-manifest-" + Guid.NewGuid().ToString("N")); + try + { + await File.WriteAllBytesAsync(temporary, ContentInstallFiles.SerializeManifest(manifest), ct); ct.ThrowIfCancellationRequested(); + var current = await ManifestBytes(instance, ct); + if (!(current is null ? expected is null : expected is not null && current.AsSpan().SequenceEqual(expected))) throw new IOException("安装清单已被外部改变,未覆盖。"); + _ = ContentInstallFiles.Literal(instance.GameDirectory, ContentInstallFiles.ManifestName); File.Move(temporary, target, true); + } + finally { if (File.Exists(temporary)) File.Delete(temporary); } + } + public static async Task TrashAsync(GameInstance instance, IReadOnlyList paths, Action validateTarget, CancellationToken ct, string kind = "mods") + { + ValidatePaths(instance, paths, kind); var expected = await ManifestBytes(instance, ct); var before = await ContentInstallFiles.ReadManifestAsync(instance, ct); + var removed = before.Files.Where(f => paths.Any(p => EnabledPath(p) == EnabledPath(f.RelativePath))).ToArray(); + var id = Guid.NewGuid().ToString("N"); var receipt = Receipt(instance, id, kind); var root = Path.GetDirectoryName(receipt)!; + var files = new List(); + foreach (var path in paths) + { + await using var stream = new FileStream(PathOf(instance, path, kind), FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); + var sha1 = Convert.ToHexStringLower(await SHA1.HashDataAsync(stream, ct)); stream.Position = 0; + files.Add(new("local", "local", kind switch { "mods" => "mod", "resourcepacks" => "resourcepack", "shaders" => "shader", _ => "schematic" }, path, sha1, Convert.ToHexStringLower(await SHA512.HashDataAsync(stream, ct)), stream.Length)); + } + var record = new TrashRecord(1, instance.Id, DateTimeOffset.UtcNow, files, removed); var moved = new List(); + Directory.CreateDirectory(root); + try + { + foreach (var file in files) + { + ct.ThrowIfCancellationRequested(); validateTarget(); + if (!await ContentInstallFiles.MatchesAsync(PathOf(instance, file.RelativePath, kind), file.Sha1, file.Size, ct)) throw new IOException("资源在回收前发生变化。"); + var target = ContentInstallFiles.Literal(root, file.RelativePath); Directory.CreateDirectory(Path.GetDirectoryName(target)!); + File.Move(PathOf(instance, file.RelativePath, kind), target, false); moved.Add(file); + } + await File.WriteAllTextAsync(receipt, JsonSerializer.Serialize(record), ct); + ct.ThrowIfCancellationRequested(); validateTarget(); + if (kind == "mods" || removed.Length > 0) await WriteManifestAsync(instance, before with { Files = before.Files.Except(removed).ToArray() }, expected, ct); + return new(id, files.Count, record.Created); + } + catch + { + foreach (var file in moved.AsEnumerable().Reverse()) File.Move(ContentInstallFiles.Literal(root, file.RelativePath), PathOf(instance, file.RelativePath, kind), false); + if (File.Exists(receipt)) File.Delete(receipt); throw; + } + } + private static async Task ReadAsync(GameInstance instance, string id, CancellationToken ct, string kind = "mods") + { + var path = Receipt(instance, id, kind); + if (!File.Exists(path) || new FileInfo(path).Length > 16 * 1024 * 1024) throw new InvalidDataException("回收记录无效。"); + var record = JsonSerializer.Deserialize(await File.ReadAllTextAsync(path, ct)) ?? throw new InvalidDataException("回收记录无效。"); + if (record.Version != 1 || record.InstanceId != instance.Id || record.Files is not { Count: > 0 } || record.RemovedManifestFiles is null || record.Files.Any(f => f is null) || record.RemovedManifestFiles.Any(f => f is null)) throw new InvalidDataException("回收记录不属于当前实例。"); + if (record.Files.Select(f => ContentInstallFiles.PathKey(f.RelativePath)).Distinct(StringComparer.Ordinal).Count() != record.Files.Count) throw new InvalidDataException("回收文件重复。"); + foreach (var file in record.Files.Concat(record.RemovedManifestFiles)) + { + _ = PathOf(instance, file.RelativePath, kind); + if (!ContentInstallFiles.Hash(file.Sha1, 40) || !ContentInstallFiles.Hash(file.Sha512, 128) || file.Size < 0) throw new InvalidDataException("回收文件身份无效。"); + } + return record; + } + public static async Task> ListAsync(GameInstance instance, CancellationToken ct, string kind = "mods") + { + var root = TrashRoot(instance, kind); var result = new List(); + if (!Directory.Exists(root)) return result; + foreach (var folder in Directory.EnumerateDirectories(root)) + { + ct.ThrowIfCancellationRequested(); + try { var id = Path.GetFileName(folder); var record = await ReadAsync(instance, id, ct, kind); result.Add(new(id, record.Files.Count, record.Created)); } + catch (Exception ex) when (ex is IOException or InvalidDataException or JsonException) { } + } + return result.OrderByDescending(r => r.Created).ToArray(); + } + public static async Task RestoreAsync(GameInstance instance, string id, Action validateTarget, CancellationToken ct, string kind = "mods") + { + var record = await ReadAsync(instance, id, ct, kind); var root = Path.GetDirectoryName(Receipt(instance, id, kind))!; + var expected = await ManifestBytes(instance, ct); var before = await ContentInstallFiles.ReadManifestAsync(instance, ct); + foreach (var file in record.Files) + { + if (File.Exists(PathOf(instance, file.RelativePath, kind)) || File.Exists(PathOf(instance, EnabledPath(file.RelativePath), kind)) || File.Exists(PathOf(instance, EnabledPath(file.RelativePath) + ".disabled", kind))) throw new IOException("恢复目标已有同名资源,原文件保留。"); + var path = ContentInstallFiles.Literal(root, file.RelativePath); + if (!await ContentInstallFiles.MatchesAsync(path, file.Sha1, file.Size, ct)) throw new IOException("回收文件已改变,未恢复。"); + await using var stream = File.OpenRead(path); if (Convert.ToHexStringLower(await SHA512.HashDataAsync(stream, ct)) != file.Sha512) throw new IOException("回收文件哈希不符。"); + } + if (record.RemovedManifestFiles.Any(f => before.Files.Any(n => EnabledPath(n.RelativePath) == EnabledPath(f.RelativePath)))) throw new IOException("安装清单出现同名资源,请先核对。"); + var moved = new List(); var receiptMoved = false; var restoredReceipt = ContentInstallFiles.Literal(root, "restored.json"); + try + { + foreach (var file in record.Files) { ct.ThrowIfCancellationRequested(); validateTarget(); var target = PathOf(instance, file.RelativePath, kind); Directory.CreateDirectory(Path.GetDirectoryName(target)!); File.Move(ContentInstallFiles.Literal(root, file.RelativePath), target, false); moved.Add(file); } + File.Move(Receipt(instance, id, kind), restoredReceipt, false); receiptMoved = true; + validateTarget(); if (kind == "mods" || record.RemovedManifestFiles.Count > 0) await WriteManifestAsync(instance, before with { Files = before.Files.Concat(record.RemovedManifestFiles).ToArray() }, expected, ct); + } + catch { if (receiptMoved) File.Move(restoredReceipt, Receipt(instance, id, kind), false); foreach (var file in moved.AsEnumerable().Reverse()) File.Move(PathOf(instance, file.RelativePath, kind), ContentInstallFiles.Literal(root, file.RelativePath), false); throw; } + } + public static async Task ReplaceImportedAsync(GameInstance instance, string relative, string temporary, CancellationToken ct) + { + var target = PathOf(instance, relative); var expected = await ManifestBytes(instance, ct); var manifest = await ContentInstallFiles.ReadManifestAsync(instance, ct); + var backup = ContentInstallFiles.Literal(instance.GameDirectory, ".shou-mod-backups/local-import-" + Guid.NewGuid().ToString("N")); + var original = ContentInstallFiles.Literal(backup, relative); Directory.CreateDirectory(Path.GetDirectoryName(original)!); + if (expected is not null) await File.WriteAllBytesAsync(ContentInstallFiles.Literal(backup, ContentInstallFiles.ManifestName), expected, ct); + string oldHash, newHash; + await using (var input = File.OpenRead(target)) oldHash = Convert.ToHexStringLower(await SHA512.HashDataAsync(input, ct)); + await using (var input = File.OpenRead(temporary)) newHash = Convert.ToHexStringLower(await SHA512.HashDataAsync(input, ct)); + var moved = false; var published = false; + try + { + ct.ThrowIfCancellationRequested(); + await using (var input = File.OpenRead(PathOf(instance, relative))) if (Convert.ToHexStringLower(await SHA512.HashDataAsync(input, ct)) != oldHash) throw new IOException("原模组在替换前发生变化。"); + File.Move(target, original, false); moved = true; + _ = PathOf(instance, relative); ct.ThrowIfCancellationRequested(); File.Move(temporary, target, false); published = true; + var next = manifest with { Files = manifest.Files.Where(f => EnabledPath(f.RelativePath) != EnabledPath(relative)).ToArray() }; + if (next.Files.Count != manifest.Files.Count) await WriteManifestAsync(instance, next, expected, ct); + } + catch + { + if (published) + { + await using (var input = File.OpenRead(PathOf(instance, relative))) if (Convert.ToHexStringLower(await SHA512.HashDataAsync(input)) != newHash) throw new IOException("替换回滚目标被外部改变,原模组保留在:" + backup); + File.Delete(target); + } + if (moved) File.Move(original, PathOf(instance, relative), false); throw; + } + } +} diff --git a/src/SHOU.Launcher.Core/Instances/ModOnlineCache.cs b/src/SHOU.Launcher.Core/Instances/ModOnlineCache.cs new file mode 100644 index 00000000..77d85dd2 --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/ModOnlineCache.cs @@ -0,0 +1,29 @@ +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; + +namespace SHOU.Launcher.Core.Instances; + +internal static class ModOnlineCache +{ + internal sealed record Entry(int Version, DateTimeOffset Checked, ContentRelease Current, ContentRelease? Next, ContentProject? Project); + private static string FileName(string root, string key) => ContentInstallFiles.Literal(root, "mod-metadata/" + Convert.ToHexStringLower(SHA256.HashData(Encoding.UTF8.GetBytes(key))) + ".json"); + internal static async Task ReadAsync(string root, string key, CancellationToken ct) + { + try + { + var path = FileName(root, key); if (!File.Exists(path) || new FileInfo(path).Length > 1024 * 1024) return null; + var entry = JsonSerializer.Deserialize(await File.ReadAllBytesAsync(path, ct)); + return entry is { Version: 1 } && entry.Checked <= DateTimeOffset.UtcNow && DateTimeOffset.UtcNow - entry.Checked < TimeSpan.FromHours(6) ? entry : null; + } + catch (Exception ex) when (ex is IOException or JsonException or ArgumentException) { return null; } + } + internal static async Task WriteAsync(string root, string key, Entry entry, CancellationToken ct) + { + var path = FileName(root, key); Directory.CreateDirectory(Path.GetDirectoryName(path)!); var temporary = path + "." + Guid.NewGuid().ToString("N"); + try { await File.WriteAllBytesAsync(temporary, JsonSerializer.SerializeToUtf8Bytes(entry), ct); _ = FileName(root, key); File.Move(temporary, path, true); } + finally { if (File.Exists(temporary)) File.Delete(temporary); } + } +} diff --git a/src/SHOU.Launcher.Core/Instances/ModRelations.cs b/src/SHOU.Launcher.Core/Instances/ModRelations.cs new file mode 100644 index 00000000..f84bb32a --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/ModRelations.cs @@ -0,0 +1,171 @@ +using System.IO.Compression; +using System.Text; +using System.Text.Json.Nodes; +using System.Text.RegularExpressions; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Instances; + +/// Read-only declaration inventory. It does not extract files, execute JARs or choose loader candidates. +public static class ModRelations +{ + // Match the legacy reader's bounded analysis, without imposing an import/file restriction. + private const int MaxDepth = 5, MaxNodes = 512; + private const long MaxEntry = 256L * 1024 * 1024, MaxHost = 512L * 1024 * 1024, MaxScan = 2L * 1024 * 1024 * 1024; + private sealed class Budget { public long ScanBytes = MaxScan, HostBytes; public int Nodes; } + private sealed record Provider(string Path, string Host, bool Enabled, bool Embedded); + public static InstanceModRelations Read(GameInstance instance, CancellationToken ct = default) + { + ct.ThrowIfCancellationRequested(); + var folder = InstanceWorkspace.Folder(instance.GameDirectory, "mods"); + var hosts = new List(); var budget = new Budget(); + if (Directory.Exists(folder)) foreach (var file in new DirectoryInfo(folder).EnumerateFiles().OrderBy(f => f.Name, StringComparer.OrdinalIgnoreCase)) + { + ct.ThrowIfCancellationRequested(); + if (!InstanceWorkspace.Accepts("mods", file.Name) || file.LinkTarget is not null || (file.Attributes & FileAttributes.ReparsePoint) != 0) continue; + var path = "mods/" + file.Name; var enabled = !file.Name.EndsWith(".disabled", StringComparison.OrdinalIgnoreCase) && !file.Name.EndsWith(".old", StringComparison.OrdinalIgnoreCase); + budget.HostBytes = MaxHost; budget.Nodes = MaxNodes; + ModDeclaration declaration; + try + { + var size = file.Length; var modified = file.LastWriteTimeUtc; + using var input = new FileStream(file.FullName, FileMode.Open, FileAccess.Read, FileShare.Read); + using var zip = new ZipArchive(input, ZipArchiveMode.Read); + declaration = ReadArchive(zip, path, instance.Loader, 0, budget, ct); + file.Refresh(); + if (!file.Exists || file.Length != size || file.LastWriteTimeUtc != modified) + declaration = declaration with { Ids = [], Dependencies = [], Children = [], Notices = ["文件在读取期间发生变化,请重新读取。"] }; + } + catch (Exception ex) when (IsReadError(ex)) { declaration = Failed(path, "无法读取归档或模组声明。"); } + hosts.Add(new(path, enabled, declaration)); + } + return Build(hosts, ct); + } + public static InstanceModRelations Build(IReadOnlyList hosts, CancellationToken ct = default) + { + ct.ThrowIfCancellationRequested(); + var providers = new Dictionary>(StringComparer.OrdinalIgnoreCase); + var declarations = new List<(ModRelationHost Host, ModDeclaration Node)>(); var notices = new List(); + foreach (var host in hosts) foreach (var node in Flatten(host.Declaration)) + { + ct.ThrowIfCancellationRequested(); declarations.Add((host, node)); + foreach (var id in node.Ids) + { + if (!providers.TryGetValue(id, out var values)) providers[id] = values = []; + values.Add(new(node.Path, host.RelativePath, host.Enabled, node.Path != host.RelativePath)); + } + notices.AddRange(node.Notices.Select(n => node.Path + ":" + n)); + } + var incomplete = declarations.Any(d => d.Host.Enabled && d.Node.Notices.Count > 0); + var relations = new List(); + foreach (var (host, node) in declarations) foreach (var dep in node.Dependencies.Where(d => !Platform(d.Id))) + { + ct.ThrowIfCancellationRequested(); var found = providers.GetValueOrDefault(dep.Id) ?? []; + var status = found.Any(p => p.Enabled && !p.Embedded) ? ModDeclarationPresence.Independent + : found.Any(p => p.Enabled) ? ModDeclarationPresence.Embedded + : found.Count > 0 ? ModDeclarationPresence.Disabled + : incomplete ? ModDeclarationPresence.Unverified : ModDeclarationPresence.NotFound; + relations.Add(new(host.RelativePath, node.Path, node.Name, host.Enabled, dep, status, found.Select(p => p.Path).Distinct(StringComparer.Ordinal).ToArray())); + } + return new(hosts, relations, notices); + } + public static IEnumerable Flatten(ModDeclaration root) + { yield return root; foreach (var child in root.Children) foreach (var node in Flatten(child)) yield return node; } + private static bool Platform(string id) => new[] { "minecraft", "java", "forge", "neoforge", "fabricloader", "quilt", "quilt_loader", "liteloader", "mcp" }.Contains(id, StringComparer.OrdinalIgnoreCase); + private static ModDeclaration Failed(string path, string message) => new(path, Path.GetFileName(path), null, null, [], [], [], [message]); + private static bool IsReadError(Exception ex) => ex is IOException or InvalidDataException or System.Text.Json.JsonException or InvalidOperationException or ArgumentException or UnauthorizedAccessException; + private static ModDeclaration ReadArchive(ZipArchive zip, string path, string preferred, int depth, Budget budget, CancellationToken ct) + { + ct.ThrowIfCancellationRequested(); + if (--budget.Nodes < 0 || depth > MaxDepth) return Failed(path, "内嵌解析达到深度或节点预算,结果不完整。"); + if (zip.Entries.Count > 40000) return Failed(path, "归档条目过多,声明读取不完整。"); + var name = Path.GetFileName(path); string? version = null, loader = null; + var ids = new List(); var deps = new List(); var nested = new List(); var notices = new List(); + string Text(ZipArchiveEntry entry) { using var content = ReadEntry(entry, 128 * 1024, budget, ct); return Encoding.UTF8.GetString(content.ToArray()); } + JsonNode? Json(ZipArchiveEntry entry) => LocalDisplayJson.Parse(Text(entry)); + try + { + var fabric = zip.GetEntry("fabric.mod.json"); var quilt = zip.GetEntry("quilt.mod.json"); + var forge = zip.GetEntry(preferred == "neoforge" ? "META-INF/neoforge.mods.toml" : "META-INF/mods.toml") ?? zip.GetEntry("META-INF/neoforge.mods.toml") ?? zip.GetEntry("META-INF/mods.toml"); + var useForge = preferred is "forge" or "neoforge" or "cleanroom" && forge is not null; + if (!useForge && quilt is not null && (preferred == "quilt" || fabric is null)) + { + loader = "quilt"; var root = Json(quilt); var q = root?["quilt_loader"]; + name = Label(q?["metadata"]?["name"]) ?? Label(q?["id"]) ?? name; version = Label(q?["version"]); AddNodeId(q?["id"]); + foreach (var alias in q?["provides"] as JsonArray ?? []) AddNodeId(alias is JsonValue ? alias : alias?["id"]); + foreach (var dep in q?["depends"] as JsonArray ?? []) + if (dep is JsonValue) AddDep(Label(dep), "*", false); + else if (Label(dep?["id"]) is { } id) AddDep(id, Requirement(dep?["versions"]), (bool?)dep?["optional"] == true); + else notices.Add("存在未解析的 Quilt 组合依赖声明。"); + foreach (var jar in q?["jars"] as JsonArray ?? []) AddNested(jar is JsonValue ? Label(jar) : Label(jar?["file"])); + } + else if (!useForge && fabric is not null) + { + loader = "fabric"; var root = Json(fabric); name = Label(root?["name"]) ?? Label(root?["id"]) ?? name; version = Label(root?["version"]); AddNodeId(root?["id"]); + foreach (var alias in root?["provides"] as JsonArray ?? []) AddNodeId(alias); + foreach (var field in new[] { "depends", "recommends", "suggests" }) + foreach (var dep in root?[field] as JsonObject ?? []) AddDep(dep.Key, Requirement(dep.Value), field != "depends"); + foreach (var jar in root?["jars"] as JsonArray ?? []) AddNested(Label(jar?["file"])); + } + else if (forge is not null) + { + loader = forge.FullName.Contains("neoforge", StringComparison.Ordinal) ? "neoforge" : "forge"; + var text = Text(forge); var blocks = Regex.Split(text, @"(?m)^\s*\[\[mods\]\]\s*$", RegexOptions.CultureInvariant, TimeSpan.FromMilliseconds(100)); + foreach (var block in blocks.Skip(1)) { AddId(Field(block, "modId")); if (ids.Count == 1) { name = Field(block, "displayName") ?? name; version = Field(block, "version"); } } + foreach (var block in Regex.Split(text, @"(?m)^\s*\[\[dependencies\.[^\]]+\]\]", RegexOptions.CultureInvariant, TimeSpan.FromMilliseconds(100)).Skip(1)) + { + var type = Field(block, "type"); + if (type is "incompatible" or "discouraged") continue; + AddDep(Field(block, "modId"), Field(block, "versionRange"), type != "required" && !Regex.IsMatch(block, @"(?m)^\s*mandatory\s*=\s*true", RegexOptions.CultureInvariant, TimeSpan.FromMilliseconds(100))); + } + } + else if (zip.GetEntry("mcmod.info") is { } legacy) + { + loader = "forge"; var root = Json(legacy); var mods = root as JsonArray ?? root?["modList"] as JsonArray ?? []; + foreach (var mod in mods) + { + AddNodeId(mod?["modid"]); if (ids.Count == 1) { name = Label(mod?["name"]) ?? name; version = Label(mod?["version"]); } + foreach (var dep in mod?["requiredMods"] as JsonArray ?? []) if (Label(dep)?.Split('@', 2) is { Length: > 0 } parts) AddDep(parts[0], parts.Length > 1 ? parts[1] : null, false); + } + } + if (zip.GetEntry("META-INF/jarjar/metadata.json") is { } jarjar) + foreach (var jar in Json(jarjar)?["jars"] as JsonArray ?? []) AddNested(Label(jar?["path"])); + } + catch (Exception ex) when (IsReadError(ex) || ex is RegexMatchTimeoutException) { notices.Add("部分模组声明无法解析,结果不完整。"); } + var children = new List(); + foreach (var nestedPath in nested.Distinct(StringComparer.Ordinal)) + { + ct.ThrowIfCancellationRequested(); var childPath = path + "!/" + nestedPath; + if (depth >= MaxDepth || budget.Nodes <= 0) { notices.Add("内嵌解析达到深度或节点预算,结果不完整。"); break; } + try + { + if (nestedPath.StartsWith('/') || nestedPath.Contains('\\') || nestedPath.Split('/').Any(p => p is "" or "." or "..")) throw new InvalidDataException(); + using var input = ReadEntry(zip.GetEntry(nestedPath) ?? throw new InvalidDataException(), MaxEntry, budget, ct); + using var child = new ZipArchive(input, ZipArchiveMode.Read); + children.Add(ReadArchive(child, childPath, preferred, depth + 1, budget, ct)); + } + catch (Exception ex) when (IsReadError(ex)) { children.Add(Failed(childPath, "内嵌归档缺失、损坏或超出读取预算,结果不完整。")); } + } + return new(path, name, version?.Contains("${", StringComparison.Ordinal) == true ? null : version, loader, ids.Distinct(StringComparer.OrdinalIgnoreCase).ToArray(), deps.Distinct().ToArray(), children, notices); + void AddNodeId(JsonNode? node) { if (Label(node) is { } id) AddId(id); } + void AddId(string? id) { if (!string.IsNullOrWhiteSpace(id)) ids.Add(id); } + void AddDep(string? id, string? requirement, bool optional) { if (!string.IsNullOrWhiteSpace(id)) deps.Add(new(id, requirement, optional)); } + void AddNested(string? file) { if (file is not null) nested.Add(file); else notices.Add("内嵌路径声明无效,结果不完整。"); } + } + private static string? Label(JsonNode? value) => value is JsonValue v && v.TryGetValue(out var text) && text.Length is > 0 and <= 1024 && !text.Any(char.IsControl) ? text : null; + private static string? Requirement(JsonNode? value) => Label(value) ?? value?.ToJsonString(); + private static string? Field(string text, string key) + { var value = Regex.Match(text, @"(?m)^\s*" + Regex.Escape(key) + "\\s*=\\s*[\"']([^\"'\\r\\n]+)[\"']", RegexOptions.CultureInvariant, TimeSpan.FromMilliseconds(100)).Groups[1].Value; return value.Length > 0 ? value : null; } + private static MemoryStream ReadEntry(ZipArchiveEntry entry, long limit, Budget budget, CancellationToken ct) + { + if (entry.Length < 0 || entry.Length > limit || entry.Length > budget.HostBytes || entry.Length > budget.ScanBytes) throw new InvalidDataException(); + var output = new MemoryStream(); + try + { + using var input = entry.Open(); var bytes = new byte[65536]; + while (true) { ct.ThrowIfCancellationRequested(); var n = input.Read(bytes); if (n == 0) break; budget.HostBytes -= n; budget.ScanBytes -= n; if (output.Length + n > limit || budget.HostBytes < 0 || budget.ScanBytes < 0) throw new InvalidDataException(); output.Write(bytes, 0, n); } + if (output.Length != entry.Length) throw new InvalidDataException(); output.Position = 0; return output; + } + catch { output.Dispose(); throw; } + } +} diff --git a/src/SHOU.Launcher.Core/Instances/ResourceArchiveMetadata.cs b/src/SHOU.Launcher.Core/Instances/ResourceArchiveMetadata.cs new file mode 100644 index 00000000..5841bb0d --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/ResourceArchiveMetadata.cs @@ -0,0 +1,63 @@ +using System.Buffers.Binary; +using System.IO.Compression; +using System.Text.Json.Nodes; + +namespace SHOU.Launcher.Core.Instances; + +/// Local display metadata only. Does not extract, enable or execute a pack. +internal static class ResourceArchiveMetadata +{ + internal sealed record Metadata(string Name, string? Description = null, byte[]? Icon = null, string? Error = null); + internal static Metadata Read(string path, bool includeIcon, CancellationToken ct) + { + var name = Path.GetFileNameWithoutExtension(path); string? description = null; byte[]? icon = null; + try + { + using var file = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read); + using var zip = new ZipArchive(file, ZipArchiveMode.Read); + ct.ThrowIfCancellationRequested(); + if (zip.Entries.Count > 40000) return new(name, Error: "资源归档条目过多,未读取展示信息。"); + // A malformed description must not suppress a valid local pack icon or file row. + if (zip.GetEntry("pack.mcmeta") is { } metadata) + { + try { description = Flatten(LocalDisplayJson.Parse(Read(metadata, 128 * 1024, ct))?["pack"]?["description"]); } + catch (Exception ex) when (ex is System.Text.Json.JsonException or InvalidOperationException or InvalidDataException) { } + } + if (includeIcon && (zip.GetEntry("pack.png") ?? zip.GetEntry("icon.png")) is { } image) + { + try + { + var png = Read(image, 256 * 1024, ct); + if (png.Length >= 24 && png.AsSpan(0, 8).SequenceEqual(new byte[] { 137, 80, 78, 71, 13, 10, 26, 10 }) + && BinaryPrimitives.ReadUInt32BigEndian(png.AsSpan(16)) is > 0 and <= 2048 + && BinaryPrimitives.ReadUInt32BigEndian(png.AsSpan(20)) is > 0 and <= 2048) icon = png; + } + catch (InvalidDataException) { } + } + return new(name, description, icon); + } + catch (Exception ex) when (ex is IOException or InvalidDataException or ArgumentException or UnauthorizedAccessException) + { return new(name, Error: "无法读取资源归档展示信息。"); } + } + private static string? Flatten(JsonNode? node) + { + var text = new System.Text.StringBuilder(); var nodes = 0; + void Append(JsonNode? value, int depth) + { + if (value is null || depth > 16 || ++nodes > 512 || text.Length >= 2048) return; + if (value is JsonValue atom && atom.TryGetValue(out var str)) text.Append(str.AsSpan(0, Math.Min(str.Length, 2048 - text.Length))); + else if (value is JsonArray array) { foreach (var item in array) Append(item, depth + 1); } + else if (value is JsonObject obj) { Append(obj["text"], depth + 1); Append(obj["extra"], depth + 1); } + } + Append(node, 0); + var result = string.Join(" ", text.ToString().Split((char[]?)null, StringSplitOptions.RemoveEmptyEntries)); + return result.Length == 0 ? null : result; + } + private static byte[] Read(ZipArchiveEntry entry, int maximum, CancellationToken ct) + { + if (entry.Length < 0 || entry.Length > maximum) throw new InvalidDataException(); + using var input = entry.Open(); using var output = new MemoryStream(); var bytes = new byte[8192]; + while (true) { ct.ThrowIfCancellationRequested(); var n = input.Read(bytes); if (n == 0) break; if (output.Length + n > maximum) throw new InvalidDataException(); output.Write(bytes, 0, n); } + if (output.Length != entry.Length) throw new InvalidDataException(); return output.ToArray(); + } +} diff --git a/src/SHOU.Launcher.Core/Instances/ScreenshotTrash.cs b/src/SHOU.Launcher.Core/Instances/ScreenshotTrash.cs new file mode 100644 index 00000000..0864556e --- /dev/null +++ b/src/SHOU.Launcher.Core/Instances/ScreenshotTrash.cs @@ -0,0 +1,74 @@ +using System.Security.Cryptography; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; + +namespace SHOU.Launcher.Core.Instances; + +/// Reversible, instance-local screenshot moves. There is no permanent-delete or system-trash operation. +public static class ScreenshotTrash +{ + private const string Root = ".shou-trash/screenshots"; + private static string Literal(GameInstance instance, string relative) => ContentInstallFiles.Literal(instance.GameDirectory, relative); + private static string Folder(GameInstance instance, string id) + { + if (id.Length != 32 || !id.All(Uri.IsHexDigit)) throw new ArgumentException("无效的回收记录。"); + return Literal(instance, Root + "/" + id); + } + private static void ValidateOriginal(string relative) + { + var parts = relative.Split('/'); + if (parts.Length != 2 || parts[0] != "screenshots" || parts[1].Contains('\\') || !InstanceWorkspace.Accepts("screenshots", parts[1])) throw new ArgumentException("请选择当前实例的截图图片。"); + } + public static async Task> ListAsync(GameInstance instance, CancellationToken ct = default) + { + var root = Literal(instance, Root); if (!Directory.Exists(root)) return []; + var folders = Directory.EnumerateDirectories(root).Take(1001).ToArray(); if (folders.Length > 1000) throw new InvalidDataException("截图回收记录超过1000条,请先恢复需要的文件。"); + var result = new List(); + foreach (var folder in folders) + { + ct.ThrowIfCancellationRequested(); + try { var entry = await ReadAsync(instance, Path.GetFileName(folder), ct); if (File.Exists(Path.Combine(folder, "image.png"))) result.Add(entry); } + catch (Exception ex) when (ex is IOException or InvalidDataException or JsonException or ArgumentException) { /* Damaged records are retained for manual recovery. */ } + } + return result.OrderByDescending(e => e.MovedAt).ToArray(); + } + public static async Task MoveAsync(GameInstance instance, string relative, CancellationToken ct = default) + { + ct.ThrowIfCancellationRequested(); + ValidateOriginal(relative); var original = Literal(instance, relative); + var info = new FileInfo(original); if (!info.Exists || info.Length is <= 0 or > 32 * 1024 * 1024) throw new InvalidDataException("截图不存在或超过32MiB限制。"); + var root = Literal(instance, Root); Directory.CreateDirectory(root); _ = Literal(instance, Root); + if (Directory.EnumerateDirectories(root).Take(1000).Count() >= 1000) throw new IOException("截图回收站已满,请先恢复文件。"); + var entry = new ScreenshotTrashEntry(Guid.NewGuid().ToString("N"), relative, info.Length, await DigestAsync(original, ct), DateTimeOffset.UtcNow); + var folder = Folder(instance, entry.Id); Directory.CreateDirectory(folder); var moved = false; + try + { + await File.WriteAllBytesAsync(Path.Combine(folder, "receipt.json"), JsonSerializer.SerializeToUtf8Bytes(entry), ct); + ct.ThrowIfCancellationRequested(); _ = Literal(instance, relative); _ = Folder(instance, entry.Id); + if (new FileInfo(original).Length != entry.Bytes || await DigestAsync(original, ct) != entry.Sha256) throw new IOException("截图在移动前已变化,请刷新。"); + File.Move(original, Path.Combine(folder, "image.png"), false); moved = true; return entry; + } + finally { if (!moved && Directory.Exists(folder)) Directory.Delete(folder, true); } + } + public static async Task RestoreAsync(GameInstance instance, string id, CancellationToken ct = default) + { + var entry = await ReadAsync(instance, id, ct); ValidateOriginal(entry.RelativePath); + var folder = Folder(instance, id); var image = Literal(instance, Root + "/" + id + "/image.png"); var original = Literal(instance, entry.RelativePath); + if (new FileInfo(image).Length != entry.Bytes || await DigestAsync(image, ct) != entry.Sha256) throw new InvalidDataException("回收截图校验失败,保留回收文件。"); + Directory.CreateDirectory(Path.GetDirectoryName(original)!); _ = Literal(instance, entry.RelativePath); + if (File.Exists(original) || Directory.Exists(original) || Directory.EnumerateFileSystemEntries(Path.GetDirectoryName(original)!).Any(f => Path.GetFileName(f).Equals(Path.GetFileName(original), StringComparison.OrdinalIgnoreCase))) throw new IOException("原位置已有同名文件,未覆盖。"); + ct.ThrowIfCancellationRequested(); File.Move(image, original, false); + File.Delete(Path.Combine(folder, "receipt.json")); if (!Directory.EnumerateFileSystemEntries(folder).Any()) Directory.Delete(folder); + } + private static async Task ReadAsync(GameInstance instance, string id, CancellationToken ct) + { + _ = Folder(instance, id); var receipt = Literal(instance, Root + "/" + id + "/receipt.json"); + if (new FileInfo(receipt).Length > 16384) throw new InvalidDataException("回收记录过大。"); + var entry = JsonSerializer.Deserialize(await File.ReadAllBytesAsync(receipt, ct)); + if (entry is null || entry.Id != id || entry.Bytes is <= 0 or > 32 * 1024 * 1024 || !ContentInstallFiles.Hash(entry.Sha256, 64)) throw new InvalidDataException("回收记录无效。"); + ValidateOriginal(entry.RelativePath); _ = Literal(instance, entry.RelativePath); _ = Literal(instance, Root + "/" + id + "/image.png"); return entry; + } + private static async Task DigestAsync(string path, CancellationToken ct) + { await using var file = File.OpenRead(path); return Convert.ToHexStringLower(await SHA256.HashDataAsync(file, ct)); } +} diff --git a/src/SHOU.Launcher.Core/Java/Bootstrap/BootstrapMain.java b/src/SHOU.Launcher.Core/Java/Bootstrap/BootstrapMain.java new file mode 100644 index 00000000..1622289e --- /dev/null +++ b/src/SHOU.Launcher.Core/Java/Bootstrap/BootstrapMain.java @@ -0,0 +1,137 @@ +package org.shou.launcher.bootstrap; + +import java.io.ByteArrayInputStream; +import java.io.DataInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.lang.reflect.Modifier; +import java.nio.ByteBuffer; +import java.nio.charset.CharacterCodingException; +import java.nio.charset.CodingErrorAction; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; + +/** + * Draft trusted entry point. Compile with javac --release 8, package/hash through + * the owner-controlled product build, and invoke without application arguments. + * Credentials arrive through inherited stdin, never the Java launcher's argv. + */ +public final class BootstrapMain { + private static final byte[] MAGIC = { 'S', 'H', 'O', 'U', 'B', 'O', 'O', 'T' }; + private static final int VERSION = 1; + private static final int MAX_BODY_BYTES = 1024 * 1024; + private static final int MAX_CLASS_BYTES = 4096; + private static final int MAX_ARGUMENT_BYTES = 256 * 1024; + private static final int MAX_ARGUMENTS = 65536; + + private BootstrapMain() { } + + public static void main(String[] publicArguments) { + final LaunchInput launch; + try { + if (publicArguments.length != 0) { + throw new IOException("Unexpected public application arguments."); + } + // The parent writes exactly one frame and closes the pipe. The helper owns no disk payload. + try (InputStream source = System.in) { + launch = readInput(source); + } + } catch (Throwable failure) { + fail("SHOU bootstrap: invalid or incomplete input.", 64); + return; + } + + try { + SessionLog.install(launch.arguments); + ClassLoader loader = Thread.currentThread().getContextClassLoader(); + Class target = Class.forName(launch.mainClass, true, loader); + Method entry = target.getMethod("main", String[].class); + if (!Modifier.isStatic(entry.getModifiers()) || entry.getReturnType() != Void.TYPE) { + throw new NoSuchMethodException("Target requires public static void main(String[])."); + } + // Do not create another thread: macOS -XstartOnFirstThread must retain its original main thread. + entry.invoke(null, new Object[] { launch.arguments }); + } catch (InvocationTargetException failure) { + // Target exception messages/stacks may contain its arguments. Launcher logs redact separately. + fail("SHOU bootstrap: game entry failed.", 70); + } catch (Throwable failure) { + fail("SHOU bootstrap: game entry is unavailable.", 70); + } + } + + private static LaunchInput readInput(InputStream source) throws IOException { + DataInputStream input = new DataInputStream(source); + byte[] magic = new byte[MAGIC.length]; + input.readFully(magic); + if (!Arrays.equals(MAGIC, magic) || input.readUnsignedShort() != VERSION) { + throw new IOException("Unsupported input protocol."); + } + int bodyLength = input.readInt(); + if (bodyLength < 8 || bodyLength > MAX_BODY_BYTES) { + throw new IOException("Input exceeds protocol bounds."); + } + byte[] body = new byte[bodyLength]; + try { + input.readFully(body); + // EOF is part of the protocol. No appended frame, padding or unexplained bytes are accepted. + if (input.read() != -1) { + throw new IOException("Unexpected trailing input."); + } + DataInputStream fields = new DataInputStream(new ByteArrayInputStream(body)); + String mainClass = readString(fields, MAX_CLASS_BYTES, false); + int count = fields.readInt(); + if (count < 0 || count > MAX_ARGUMENTS || count > fields.available() / 4) { + throw new IOException("Invalid argument count."); + } + String[] arguments = new String[count]; + for (int index = 0; index < count; index++) { + arguments[index] = readString(fields, MAX_ARGUMENT_BYTES, true); + } + if (fields.available() != 0) { + throw new IOException("Unexpected payload fields."); + } + return new LaunchInput(mainClass, arguments); + } finally { + Arrays.fill(body, (byte) 0); + } + } + + private static String readString(DataInputStream input, int maximum, boolean allowEmpty) throws IOException { + int length = input.readInt(); + if (length < (allowEmpty ? 0 : 1) || length > maximum || length > input.available()) { + throw new IOException("Invalid UTF-8 field length."); + } + byte[] encoded = new byte[length]; + try { + input.readFully(encoded); + String value; + try { + value = StandardCharsets.UTF_8.newDecoder() + .onMalformedInput(CodingErrorAction.REPORT) + .onUnmappableCharacter(CodingErrorAction.REPORT) + .decode(ByteBuffer.wrap(encoded)).toString(); + } catch (CharacterCodingException invalid) { + throw new IOException("Invalid UTF-8 input."); + } + if (value.indexOf('\0') >= 0) { + throw new IOException("NUL is not a supported argument character."); + } + return value; + } finally { + Arrays.fill(encoded, (byte) 0); + } + } + + private static void fail(String message, int exitCode) { + System.err.println(message); + System.exit(exitCode); + } + + private static final class LaunchInput { + final String mainClass; + final String[] arguments; + LaunchInput(String target, String[] values) { mainClass = target; arguments = values; } + } +} diff --git a/src/SHOU.Launcher.Core/Java/Bootstrap/InstallerBridge.java b/src/SHOU.Launcher.Core/Java/Bootstrap/InstallerBridge.java new file mode 100644 index 00000000..59e8dcef --- /dev/null +++ b/src/SHOU.Launcher.Core/Java/Bootstrap/InstallerBridge.java @@ -0,0 +1,85 @@ +package org.shou.launcher.bootstrap; + +import java.io.*; +import java.lang.reflect.*; +import java.net.*; +import java.nio.file.*; +import java.security.*; +import java.util.*; + +/** Headless, install-only adapter. Never invokes a vendor GUI, launcher, game, or process killer. */ +public final class InstallerBridge { + private static Object call(Object target, String method, Class[] types, Object... args) throws Exception { + return target.getClass().getMethod(method, types).invoke(target, args); + } + private static Object get(Object target, String method) throws Exception { return call(target, method, new Class[0]); } + public static void main(String[] args) throws Exception { + if (args.length != 6 || !Boolean.getBoolean("java.awt.headless")) throw new IllegalArgumentException("Install-only arguments required"); + final Path root = Paths.get(args[1]).toRealPath(); + if (!root.equals(Paths.get(System.getProperty("user.dir")).toRealPath())) throw new IOException("Installer root mismatch"); + final PrintStream completion=System.out; + System.setOut(new PrintStream(new OutputStream(){public void write(int value){} public void write(byte[] bytes,int offset,int length){}})); + URL.setURLStreamHandlerFactory(protocol -> "http".equals(protocol) ? new URLStreamHandler() { + protected URLConnection openConnection(URL url) throws IOException { throw new IOException("Plain HTTP installer transport is disabled"); } + } : null); + if ("optifine".equals(args[0])) { + Class installer = Class.forName("optifine.Installer"); + String version = (String)installer.getMethod("getOptiFineVersion").invoke(null); + if (!version.endsWith(args[2] + "_" + args[3])) throw new IOException("OptiFine version mismatch"); + installer.getMethod("doInstall", File.class).invoke(null, root.toFile()); + } else if ("labymod".equals(args[0])) { + // VanillaInstaller.install closes the user's official launcher. Use data/file APIs only. + Object api = Class.forName("net.laby.installer.api.LabyModApi").getConstructor().newInstance(); + Object manifest = call(api, "getManifest", new Class[]{String.class}, args[5]); + if (!args[4].equals(get(manifest, "getCommitReference"))) throw new IOException("LabyMod release changed; refresh before retrying"); + if (!args[3].equals(get(manifest, "getLabyModVersion"))) throw new IOException("LabyMod version mismatch"); + Object target = null; + Object metadata = get(manifest, "getMinecraftVersions"); + for (int i=0; i[]{String.class}, args[5]); + Path mainJar=root.resolve("libraries/net/labymod/LabyMod/4/LabyMod-4.jar"); + Files.createDirectories(mainJar.getParent()); + Class callbackType=Class.forName("net.laby.installer.util.IoUtil$ProgressCallback"); + Object callback=java.lang.reflect.Proxy.newProxyInstance(callbackType.getClassLoader(),new Class[]{callbackType},(p,m,a)->null); + call(api,"downloadLabyMod",new Class[]{String.class,String.class,Path.class,callbackType},args[5],args[4],mainJar,callback); + long size=((Number)get(manifest,"getSize")).longValue(); + String expected=(String)get(manifest,"getSha1"); + long actualSize=Files.size(mainJar); + if(size<=0||size>128L*1024*1024||actualSize<=0||actualSize>128L*1024*1024||expected==null||!expected.matches("[a-fA-F0-9]{40}")) throw new IOException("LabyMod binary identity is invalid"); + MessageDigest digest=MessageDigest.getInstance("SHA-1"); + try(InputStream input=Files.newInputStream(mainJar)){byte[] buffer=new byte[65536];int n;while((n=input.read(buffer))!=-1)digest.update(buffer,0,n);} + StringBuilder hex=new StringBuilder();for(byte b:digest.digest())hex.append(String.format(java.util.Locale.ROOT,"%02x",b&255)); + if(!expected.equalsIgnoreCase(hex.toString()))throw new IOException("LabyMod binary checksum mismatch"); + // The published digest authenticates the exact file. The upstream size is advisory; + // canonicalize it only after matching that digest, and retain strict pack size checks. + size=actualSize; + Object writer = Class.forName("net.laby.installer.install.vanilla.ManifestWriter").getConstructors()[0].newInstance(api); + String profile = "shou-labymod-" + args[2] + "-" + args[5] + "-" + args[3]; + String custom=(String)get(target,"getCustomManifestUrl"); + if(custom!=null && !custom.startsWith("https://")) throw new IOException("LabyMod manifest must use HTTPS"); + String method = custom==null ? "writeLegacyManifest" : "writeModernManifest"; + Class[] signature = {Path.class,String.class,target.getClass(),libraries.getClass(),String.class,String.class,String.class,String.class,long.class}; + writer.getClass().getMethod(method,signature).invoke(writer,root,profile,target,libraries,args[3],args[4],args[5],get(manifest,"getSha1"),size); + Object assets=get(manifest,"getAssets"); + if(assets instanceof Map) { + for(Object key:((Map)assets).keySet()) { + String s=String.valueOf(key); + if(s.startsWith("/")||s.contains("..")||s.contains("\\")||s.contains(":")) throw new IOException("Unsafe LabyMod asset key"); + } + Class setup=Class.forName("net.laby.installer.install.LabyModFileSetup"); + setup.getMethod("downloadAssets",api.getClass(),String.class,String.class,Map.class,Path.class) + .invoke(null,api,args[5],args[4],assets,root.resolve("labymod-neo/assets")); + } + Class setup=Class.forName("net.laby.installer.install.LabyModFileSetup"); + Object isolated=setup.getMethod("readIsolatedLibraries",Path.class).invoke(null,mainJar); + Class platform=Class.forName("net.laby.installer.platform.Platform"); + Object filtered=setup.getMethod("filterIsolatedLibraries",List.class,String.class,platform).invoke(null,isolated,get(target,"getVersion"),platform.getMethod("detect").invoke(null)); + setup.getMethod("downloadIsolatedLibraries",api.getClass(),List.class,Path.class,callbackType).invoke(null,api,filtered,root.resolve("labymod-neo/libraries"),callback); + } else throw new IllegalArgumentException("Unsupported install adapter"); + completion.println("SHOU_INSTALLER_COMPLETE"); + } +} diff --git a/src/SHOU.Launcher.Core/Java/Bootstrap/SessionLog.java b/src/SHOU.Launcher.Core/Java/Bootstrap/SessionLog.java new file mode 100644 index 00000000..591ffb02 --- /dev/null +++ b/src/SHOU.Launcher.Core/Java/Bootstrap/SessionLog.java @@ -0,0 +1,77 @@ +package org.shou.launcher.bootstrap; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.io.PrintStream; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Paths; +import java.nio.file.StandardOpenOption; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Comparator; +import java.util.List; + +/** Independent bounded output: closing the launcher must not break or block a running game. */ +final class SessionLog { + private SessionLog() { } + static void install(String[] arguments) throws IOException { + String path = System.getProperty("shou.launcher.sessionLog"); + if (path == null) return; // Protocol/unit fixtures do not request detached logging. + if (!Paths.get(path).isAbsolute()) throw new IOException("Session log path must be absolute."); + final List privateValues = new ArrayList(); + for (int i = 0; i + 1 < arguments.length; i++) { + String key = arguments[i].toLowerCase(java.util.Locale.ROOT); + if (key.equals("--username") || key.equals("--uuid") || key.equals("--accesstoken") + || key.equals("--clientid") || key.equals("--xuid") || key.equals("--session") || key.equals("--userproperties")) { + String value = arguments[i + 1]; + if (value.length() > 1) privateValues.add(value); + } + } + Collections.sort(privateValues, new Comparator() { + public int compare(String a, String b) { return Integer.compare(b.length(), a.length()); } + }); + final OutputStream file = Files.newOutputStream(Paths.get(path), StandardOpenOption.CREATE_NEW, StandardOpenOption.WRITE); + final Sink sink = new Sink(file, privateValues); + System.setOut(new PrintStream(new Lines(sink), true, "UTF-8")); + System.setErr(new PrintStream(new Lines(sink), true, "UTF-8")); + Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() { + public void run() { System.out.close(); System.err.close(); try { file.close(); } catch (IOException ignored) { } } + }, "shou-session-log")); + } + private static final class Sink { + final OutputStream file; + final List privateValues; + long written; + Sink(OutputStream file, List values) { this.file = file; this.privateValues = values; } + synchronized void line(byte[] bytes) throws IOException { + if (written >= 8 * 1024 * 1024) return; + String text = new String(bytes, StandardCharsets.UTF_8); + for (String value : privateValues) text = text.replace(value, ""); + text = text.replaceAll("(?i)Bearer\\s+[^\\s]+", "Bearer ") + .replaceAll("(?i)(access[_-]?token|refresh[_-]?token|client[_-]?token|password|authorization)(\\s*[:=]\\s*|\\s+)([^\\s,;]+)", "$1$2"); + byte[] safe = (text + "\n").getBytes(StandardCharsets.UTF_8); + if (written + safe.length > 8 * 1024 * 1024) { written = 8 * 1024 * 1024; return; } + file.write(safe); file.flush(); written += safe.length; + } + } + private static final class Lines extends OutputStream { + final Sink sink; + final ByteArrayOutputStream pending = new ByteArrayOutputStream(); + boolean overlong; + Lines(Sink sink) { this.sink = sink; } + public synchronized void write(int value) throws IOException { + if (value == '\n') { + sink.line(overlong ? "[overlong line omitted]".getBytes(StandardCharsets.UTF_8) : pending.toByteArray()); + pending.reset(); overlong = false; + } else if (!overlong) { + if (pending.size() >= 32768) { pending.reset(); overlong = true; } + else pending.write(value); + } + } + public synchronized void close() throws IOException { + if (pending.size() > 0 || overlong) write('\n'); + } + } +} diff --git a/src/SHOU.Launcher.Core/Java/DerivedJavaTrustService.cs b/src/SHOU.Launcher.Core/Java/DerivedJavaTrustService.cs new file mode 100644 index 00000000..4ad51351 --- /dev/null +++ b/src/SHOU.Launcher.Core/Java/DerivedJavaTrustService.cs @@ -0,0 +1,388 @@ +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Java; + +/// Repairs independent owned copies. The source runtime is never opened for writing. +public sealed class DerivedJavaTrustService(IJavaDiscovery discovery, IProcessRunner? processes = null) : IJavaTrustService +{ + public const string RootMarkerName = ".shou-derived-java-root.json"; + public const string ProvenanceName = "provenance.json"; + private const int Schema = 1; + private static readonly JsonSerializerOptions Json = new() + { + WriteIndented = true, UnmappedMemberHandling = JsonUnmappedMemberHandling.Disallow + }; + private sealed record Change(string Path, JavaTrustTree.Entry? Before, JavaTrustTree.Entry? After); + private sealed record Provenance(int Schema, string PolicyId, JavaInstallation Source, + string? SourceManifestSha1, string SourceTreeSha256, string OutputTreeSha256, + string JavaRelativePath, IReadOnlyList Changes); + + public Task> InspectAsync(JavaInstallation java, CancellationToken cancellationToken = default) + { + cancellationToken.ThrowIfCancellationRequested(); + var home = JavaTrustTree.Absolute(java.JavaHome); + JavaTrustRepair.EnsureRegularPath(home); + IReadOnlyList findings = JavaTrustRepair.ScanJava(Path.Combine(home, "bin"), java.MajorVersion); + cancellationToken.ThrowIfCancellationRequested(); + return Task.FromResult(findings); + } + + public async Task CreateRepairedCopyAsync(JavaTrustCopyRequest request, + CancellationToken cancellationToken = default) + { + var ct = cancellationToken; + ct.ThrowIfCancellationRequested(); + var root = JavaTrustTree.Absolute(request.DerivedRoot); + var sourceHome = JavaTrustTree.Absolute(request.Source.JavaHome); + JavaTrustRepair.EnsureRegularPath(root); + JavaTrustRepair.EnsureRegularPath(sourceHome); + root = JavaPathBoundary.Canonical(root); sourceHome = JavaPathBoundary.Canonical(sourceHome); + if (!request.Source.IsUsable) throw new InvalidDataException("A usable source Java probe is required."); + var literalExecutable = JavaTrustTree.Absolute(request.Source.ExecutablePath); + if (JavaPathBoundary.ContainsLiteral(root, literalExecutable) && !JavaTrustTree.IsInside(root, sourceHome)) + throw new InvalidDataException("A derived Java executable cannot escape through an external JavaHome."); + + if (JavaTrustTree.IsInside(root, sourceHome)) + { + var relative = JavaPathBoundary.Relative(root, sourceHome).Split('/'); + if (relative.Length != 2 || !IsKey(relative[0]) || relative[1] != "home") + throw new InvalidDataException("Source is not a completed owned Java trust variant."); + var variant = JavaTrustTree.Combine(root, relative[0]); + var provenance = await ReadProvenanceAsync(variant, ct); + if (JavaTrustTree.IsInside(root, JavaTrustTree.Absolute(provenance.Source.JavaHome))) + throw new InvalidDataException("Recursive Java trust derivation is forbidden."); + if (!PathEquals(request.Source.ExecutablePath, JavaTrustTree.Combine(sourceHome, provenance.JavaRelativePath))) + throw new InvalidDataException("Derived Java executable does not match its provenance."); + ValidateManifestRequest(request.SourceManifestSha1, provenance.SourceManifestSha1); + await using var existingLease = Acquire(root, relative[0]); + return await VerifyExistingAsync(root, relative[0], provenance.Source, provenance.SourceManifestSha1, ct); + } + if (JavaTrustTree.IsInside(sourceHome, root)) + throw new InvalidDataException("DerivedRoot cannot be inside the read-only source JavaHome."); + + var source = request.Source with { JavaHome = sourceHome, ExecutablePath = JavaPathBoundary.Canonical(request.Source.ExecutablePath, false) }; + var executableRelative = ExecutableRelative(source); + var manifest = ValidateManifestRequest(request.SourceManifestSha1, source.ValidatedManifestSha1); + var key = Key(source.ExecutablePath, manifest); + Directory.CreateDirectory(root); + await EnsureRootMarkerAsync(root, ct); + await using var lease = Acquire(root, key); + var final = JavaTrustTree.Combine(root, key); + if (Directory.Exists(final)) return await VerifyExistingAsync(root, key, source, manifest, ct); + if (File.Exists(final)) throw new IOException("Java trust variant path is occupied."); + + var before = await JavaTrustTree.ReadAsync(sourceHome, ct); + var sourceFindings = await InspectAsync(source, ct); + RequireInspectable(sourceFindings); + var stagingRoot = Path.Combine(root, ".staging"); + JavaTrustRepair.EnsureRegularPath(stagingRoot); Directory.CreateDirectory(stagingRoot); + var stage = Path.Combine(stagingRoot, key + "-" + Guid.NewGuid().ToString("N")); + Directory.CreateDirectory(stage); + await WriteStateAsync(stage, false, ct); + var copiedHome = Path.Combine(stage, "home"); + await JavaTrustTree.CopyAsync(sourceHome, copiedHome, before, ct); + foreach (var sourceFinding in sourceFindings.Where(finding => finding.NeedsRepair)) + { + ct.ThrowIfCancellationRequested(); + var target = JavaTrustTree.Combine(copiedHome, Relative(sourceHome, sourceFinding.Path)); + var copiedFinding = JavaTrustRepair.Scan(target, sourceFinding.IsTrustStore); + if (copiedFinding.Hash != sourceFinding.Hash || !copiedFinding.NeedsRepair || !copiedFinding.CanRepair) + throw new InvalidDataException("Copied Java trust finding does not match the source."); + var repaired = await Task.Run(() => JavaTrustRepair.Repair(copiedFinding, ct), ct); + if (!repaired.CanRepair || repaired.NeedsRepair) throw new InvalidDataException("Java trust repair did not complete."); + } + var after = await JavaTrustTree.ReadAsync(copiedHome, ct); + var changes = ValidateOutput(sourceHome, copiedHome, before, after, sourceFindings); + await ProbeAsync(copiedHome, executableRelative, source, ct); + if ((await JavaTrustTree.ReadAsync(copiedHome, ct)).Sha256 != after.Sha256 + || (await JavaTrustTree.ReadAsync(sourceHome, ct)).Sha256 != before.Sha256) + throw new IOException("Java trust tree changed before publication."); + var record = new Provenance(Schema, JavaTrustPolicy.Id, source, manifest, + before.Sha256, after.Sha256, executableRelative, changes); + await WriteJsonNewAsync(Path.Combine(stage, ProvenanceName), record, ct); + // The moved directory remains undiscoverable until its final-path JVM also probes successfully. + await IO.DirectoryPublication.PublishAsync(stage, final, ct); + var finalHome = Path.Combine(final, "home"); + var java = await ProbeAsync(finalHome, executableRelative, source, ct); + if ((await JavaTrustTree.ReadAsync(finalHome, ct)).Sha256 != after.Sha256 + || (await JavaTrustTree.ReadAsync(sourceHome, ct)).Sha256 != before.Sha256) + throw new IOException("Java trust tree changed during final probe."); + await WriteStateAsync(final, true, ct); + return Result(java, record, Path.Combine(final, ProvenanceName), Findings(finalHome, source.MajorVersion)); + } + + private async Task VerifyExistingAsync(string root, string key, JavaInstallation source, + string? manifest, CancellationToken ct) + { + var validated = await ValidateExistingAsync(root, key, source, manifest, ct); + var final = JavaTrustTree.Combine(root, key); + var copiedHome = Path.Combine(final, "home"); + var java = await ProbeAsync(copiedHome, validated.Record.JavaRelativePath, source, ct); + if ((await JavaTrustTree.ReadAsync(copiedHome, ct)).Sha256 != validated.Output.Sha256 + || (await JavaTrustTree.ReadAsync(source.JavaHome, ct)).Sha256 != validated.Original.Sha256) + throw new IOException("Java trust runtime changed during reuse probe."); + return Result(java, validated.Record, Path.Combine(final, ProvenanceName), Findings(copiedHome, source.MajorVersion)); + } + + private static async Task<(Provenance Record, JavaTrustTree.Snapshot Original, JavaTrustTree.Snapshot Output)> + ValidateExistingAsync(string root, string key, JavaInstallation source, string? manifest, CancellationToken ct) + { + var final = JavaTrustTree.Combine(root, key); + if (!IsCompletedVariantDirectory(final)) throw new InvalidDataException("Java trust variant is incomplete."); + var record = await ReadProvenanceAsync(final, ct); + if (record.Schema != Schema || record.PolicyId != JavaTrustPolicy.Id || key != Key(source.ExecutablePath, manifest) + || !PathEquals(record.Source.ExecutablePath, source.ExecutablePath) + || !PathEquals(record.Source.JavaHome, source.JavaHome) + || record.SourceManifestSha1 != manifest || record.Source.MajorVersion != source.MajorVersion + || record.Source.RuntimeArchitecture != source.RuntimeArchitecture + || record.Source.FullVersion != source.FullVersion || record.JavaRelativePath != ExecutableRelative(source) + || JavaTrustTree.IsInside(root, source.JavaHome) || JavaTrustTree.IsInside(root, source.ExecutablePath) + || JavaTrustTree.IsInside(source.JavaHome, root)) + throw new InvalidDataException("Java trust provenance does not match its original source."); + var original = await JavaTrustTree.ReadAsync(source.JavaHome, ct); + var copiedHome = Path.Combine(final, "home"); + var output = await JavaTrustTree.ReadAsync(copiedHome, ct); + if (original.Sha256 != record.SourceTreeSha256 || output.Sha256 != record.OutputTreeSha256) + throw new InvalidDataException("Java trust source or output was changed; no fallback is permitted."); + var sourceFindings = Findings(source.JavaHome, source.MajorVersion); RequireInspectable(sourceFindings); + var changes = ValidateOutput(source.JavaHome, copiedHome, original, output, sourceFindings); + if (!JsonSerializer.SerializeToUtf8Bytes(changes).AsSpan().SequenceEqual(JsonSerializer.SerializeToUtf8Bytes(record.Changes))) + throw new InvalidDataException("Java trust change provenance was changed."); + return (record, original, output); + } + + /// Verifies a discovered candidate without executing either the source or derived Java. + public static async Task ValidateCandidateReadOnlyAsync(string root, string executable, CancellationToken ct = default) + { + try + { + root = JavaTrustTree.Absolute(root); executable = JavaTrustTree.Absolute(executable); + JavaTrustRepair.EnsureRegularPath(root); + var relative = JavaPathBoundary.Relative(root, executable).Split('/'); + if (relative.Length != 4 || !IsKey(relative[0]) || relative[1] != "home" + || relative[2] != "bin" || relative[3] != (OperatingSystem.IsWindows() ? "java.exe" : "java")) return false; + var record = await ReadProvenanceAsync(JavaTrustTree.Combine(root, relative[0]), ct); + await ValidateExistingAsync(root, relative[0], record.Source, record.SourceManifestSha1, ct); + return true; + } + catch (Exception ex) when (ex is IOException or InvalidDataException or JsonException or UnauthorizedAccessException + or ArgumentException or InvalidOperationException or NotSupportedException) + { return false; } + } + + public static string? FindDerivedRootForCandidate(string executable, string managedRoot) + { + if (!Path.IsPathFullyQualified(executable) || !Path.IsPathFullyQualified(managedRoot)) return null; + managedRoot = JavaTrustTree.Absolute(managedRoot); + for (var directory = Path.GetDirectoryName(JavaTrustTree.Absolute(executable)); directory is not null; directory = Path.GetDirectoryName(directory)) + { + var canonical = JavaPathBoundary.Canonical(directory, false); + if (File.Exists(Path.Combine(directory, RootMarkerName)) + || new FileInfo(Path.Combine(directory, RootMarkerName)).LinkTarget is not null + || (Path.GetFileName(canonical) == "derived-trust" && JavaTrustTree.IsInside(managedRoot, canonical))) return canonical; + } + return null; + } + + private static IReadOnlyList ValidateOutput(string sourceHome, string outputHome, + JavaTrustTree.Snapshot source, JavaTrustTree.Snapshot output, IReadOnlyList findings) + { + var comparer = OperatingSystem.IsWindows() ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal; + var original = source.Entries.ToDictionary(entry => entry.Path, comparer); + var copied = output.Entries.ToDictionary(entry => entry.Path, comparer); + var allowed = new Dictionary(comparer); + foreach (var finding in findings) + { + var relative = Relative(sourceHome, finding.Path); + var destination = JavaTrustTree.Combine(outputHome, relative); + var after = JavaTrustRepair.Scan(destination, finding.IsTrustStore); + if (!after.CanRepair || after.NeedsRepair) throw new InvalidDataException("Derived runtime trust policy is incomplete."); + if (!finding.NeedsRepair) continue; + var existed = File.Exists(finding.Path); + var beforeBytes = existed ? ReadTrustFile(finding.Path) : []; + var afterBytes = ReadTrustFile(destination); + JavaTrustRepair.ValidateTransformation(beforeBytes, afterBytes, finding.IsTrustStore); + var backup = JavaTrustRepair.ValidateReceipt(destination, beforeBytes, afterBytes, existed); + var privateMode = OperatingSystem.IsWindows() ? 0 : (int)(UnixFileMode.UserRead | UnixFileMode.UserWrite); + allowed[relative] = original.TryGetValue(relative, out var originalEntry) ? originalEntry.Mode : privateMode; + allowed[relative + ".shou-trust-repair.json"] = privateMode; + allowed[Relative(outputHome, backup)] = privateMode; + } + var changes = new List(); + foreach (var path in original.Keys.Union(copied.Keys, comparer).Order(StringComparer.Ordinal)) + { + original.TryGetValue(path, out var before); copied.TryGetValue(path, out var after); + if (before == after) continue; + if (after is null || !allowed.TryGetValue(path, out var mode) || after.Kind != "file" || after.Mode != mode) + throw new InvalidDataException("Java trust copy changed a file outside the exact repair policy."); + changes.Add(new(path, before, after)); + } + foreach (var path in allowed.Keys) + if (!copied.TryGetValue(path, out var entry) || entry.Kind != "file" || entry.Mode != allowed[path]) + throw new InvalidDataException("Java trust repair artifacts are incomplete."); + return changes; + } + + private async Task ProbeAsync(string home, string relative, JavaInstallation source, CancellationToken ct) + { + var executable = JavaTrustTree.Combine(home, relative); + // Production supplies its owned runner. Only explicit unit-test fixtures use the injected discovery directly. + var java = processes is null ? await discovery.ProbeAsync(executable, ct) + : await new JavaRuntimeProbe(processes).ProbeAsync(executable, ct); + if (!java.IsUsable || java.MajorVersion != source.MajorVersion || java.RuntimeArchitecture != source.RuntimeArchitecture + || java.FullVersion != source.FullVersion || !PathEquals(java.JavaHome, home) || !PathEquals(java.ExecutablePath, executable)) + throw new InvalidDataException("Derived Java failed its required relocated runtime probe."); + return java with { Source = "managed:SHOUTrust", ValidatedManifestSha1 = null }; + } + + private static JavaTrustDerivation Result(JavaInstallation java, Provenance record, string provenance, + IReadOnlyList findings) => new(java, record.Source.ExecutablePath, JavaTrustPolicy.Id, + record.SourceTreeSha256, record.OutputTreeSha256, provenance, findings); + + private static IReadOnlyList Findings(string home, int major) => + JavaTrustRepair.ScanJava(Path.Combine(home, "bin"), major); + private static void RequireInspectable(IReadOnlyList findings) + { + if (findings.Count == 0 || findings.Any(finding => !finding.CanRepair)) + throw new InvalidDataException("Java trust inspection could not establish a repairable source policy."); + } + private static string ExecutableRelative(JavaInstallation source) + { + var relative = Relative(source.JavaHome, source.ExecutablePath); + if (relative != "bin/" + (OperatingSystem.IsWindows() ? "java.exe" : "java")) + throw new InvalidDataException("Source executable is not the declared JavaHome launcher."); + return relative; + } + private static string Relative(string root, string path) + { + var relative = JavaPathBoundary.Relative(root, path); + _ = JavaTrustTree.Combine(root, relative); return relative; + } + private static bool PathEquals(string left, string right) => + string.Equals(JavaPathBoundary.Canonical(left, false), JavaPathBoundary.Canonical(right, false), JavaTrustTree.PathComparison); + private static string Key(string executable, string? manifest) + { + var normalized = JavaTrustTree.Absolute(executable); + return Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes("SHOU-JAVA-TRUST-v1\0" + JavaTrustPolicy.Id + "\0" + normalized + "\0" + manifest))).ToLowerInvariant(); + } + private static bool IsKey(string name) => name.Length == 64 && name.All(c => c is >= '0' and <= '9' or >= 'a' and <= 'f'); + private static string? ValidateManifestRequest(string? requested, string? validated) + { + foreach (var hash in new[] { requested, validated }) + if (hash is not null && (hash.Length != 40 || !hash.All(Uri.IsHexDigit))) + throw new InvalidDataException("Invalid source runtime manifest SHA-1."); + if (requested is not null && !string.Equals(requested, validated, StringComparison.OrdinalIgnoreCase)) + throw new InvalidDataException("Source manifest was not validated by its installer."); + return (requested ?? validated)?.ToLowerInvariant(); + } + + private static FileStream Acquire(string root, string key) + { + var locks = Path.Combine(root, ".locks"); JavaTrustRepair.EnsureRegularPath(locks); Directory.CreateDirectory(locks); + var path = Path.Combine(locks, key + ".lock"); JavaTrustRepair.EnsureRegularPath(path); + if (File.Exists(path)) JavaTrustTree.EnsureSingleRegularFile(path); + return new FileStream(path, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None); + } + private static async Task EnsureRootMarkerAsync(string root, CancellationToken ct) + { + var path = Path.Combine(root, RootMarkerName); JavaTrustRepair.EnsureRegularPath(path); + if (File.Exists(path)) + { + using var json = JsonDocument.Parse(ReadSmallFile(path, 1024)); + if (json.RootElement.GetProperty("schema").GetInt32() != Schema) throw new InvalidDataException("Unknown Java trust root schema."); + } + else await WriteJsonNewAsync(path, new { schema = Schema }, ct); + } + public static bool IsDerivedRootDirectory(string directory) => + Path.GetFileName(directory).Equals("derived-trust", StringComparison.Ordinal) + || File.Exists(Path.Combine(directory, RootMarkerName)) || new FileInfo(Path.Combine(directory, RootMarkerName)).LinkTarget is not null; + + public static bool IsCompletedVariantDirectory(string directory) + { + try + { + var state = Path.Combine(directory, MojangJavaRuntimeInstaller.StateFileName); + var provenance = Path.Combine(directory, ProvenanceName); + JavaTrustRepair.EnsureRegularPath(state); JavaTrustRepair.EnsureRegularPath(provenance); + using var json = JsonDocument.Parse(ReadSmallFile(state, 65536)); + var value = json.RootElement; + return value.GetProperty("complete").ValueKind == JsonValueKind.True + && value.GetProperty("trustPolicy").GetString() == JavaTrustPolicy.Id + && value.GetProperty("schema").GetInt32() == Schema + && new FileInfo(provenance).Length is > 0 and <= 33554432; + } + catch (Exception ex) when (ex is IOException or InvalidDataException or JsonException or UnauthorizedAccessException or InvalidOperationException or KeyNotFoundException) + { return false; } + } + + internal static void InvalidateForRestore(string restoredPath) + { + for (var directory = Path.GetDirectoryName(restoredPath); directory is not null; directory = Path.GetDirectoryName(directory)) + { + if (Path.GetFileName(directory) != "home") continue; + var variant = Path.GetDirectoryName(directory)!; + if (!File.Exists(Path.Combine(variant, ProvenanceName))) return; + var state = Path.Combine(variant, MojangJavaRuntimeInstaller.StateFileName); + JavaTrustRepair.EnsureRegularPath(state); + using var json = JsonDocument.Parse(ReadSmallFile(state, 65536)); + if (!json.RootElement.TryGetProperty("trustPolicy", out var policy) || policy.GetString() != JavaTrustPolicy.Id) return; + var temp = state + ".tmp-" + Guid.NewGuid().ToString("N"); + using (var output = new FileStream(temp, FileMode.CreateNew, FileAccess.Write, FileShare.None)) + { + if (!OperatingSystem.IsWindows()) File.SetUnixFileMode(temp, UnixFileMode.UserRead | UnixFileMode.UserWrite); + JsonSerializer.Serialize(output, new { schema = Schema, complete = false, trustPolicy = JavaTrustPolicy.Id }); + output.Flush(true); + } + File.Move(temp, state, true); return; + } + } + private static async Task ReadProvenanceAsync(string variant, CancellationToken ct) + { + ct.ThrowIfCancellationRequested(); + var path = Path.Combine(variant, ProvenanceName); JavaTrustRepair.EnsureRegularPath(path); + var bytes = ReadSmallFile(path, 33554432); + var record = JsonSerializer.Deserialize(bytes, Json) ?? throw new InvalidDataException("Invalid Java trust provenance."); + if (record.Source is null || !record.Source.IsUsable || string.IsNullOrWhiteSpace(record.Source.JavaHome) + || string.IsNullOrWhiteSpace(record.Source.ExecutablePath) || string.IsNullOrWhiteSpace(record.Source.FullVersion) + || record.Changes is null || record.Changes.Count > 100000 || record.JavaRelativePath is null + || !IsDigest(record.SourceTreeSha256) || !IsDigest(record.OutputTreeSha256)) + throw new InvalidDataException("Java trust provenance fields are incomplete."); + if (ValidateManifestRequest(record.SourceManifestSha1, record.Source.ValidatedManifestSha1) != record.SourceManifestSha1) + throw new InvalidDataException("Java trust source manifest provenance is inconsistent."); + await Task.CompletedTask; return record; + } + private static bool IsDigest(string? value) => value is { Length: 64 } && value.All(Uri.IsHexDigit); + private static byte[] ReadTrustFile(string path) => ReadSmallFile(path, 33554432); + private static byte[] ReadSmallFile(string path, int limit) + { + JavaTrustRepair.EnsureRegularPath(path); JavaTrustTree.EnsureSingleRegularFile(path); + using var input = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read); + if (input.Length > limit) throw new InvalidDataException("Java trust record exceeds its byte budget."); + using var output = new MemoryStream(); var buffer = new byte[65536]; int count; + while ((count = input.Read(buffer, 0, (int)Math.Min(buffer.Length, limit + 1L - output.Length))) > 0) + { + output.Write(buffer, 0, count); + if (output.Length > limit) throw new InvalidDataException("Java trust record grew beyond its byte budget."); + } + return output.ToArray(); + } + private static async Task WriteStateAsync(string directory, bool complete, CancellationToken ct) + { + var destination = Path.Combine(directory, MojangJavaRuntimeInstaller.StateFileName); + JavaTrustRepair.EnsureRegularPath(destination); + var temp = destination + ".tmp-" + Guid.NewGuid().ToString("N"); + await WriteJsonNewAsync(temp, new { schema = Schema, complete, trustPolicy = JavaTrustPolicy.Id }, ct); + File.Move(temp, destination, true); + } + private static async Task WriteJsonNewAsync(string path, T value, CancellationToken ct) + { + JavaTrustRepair.EnsureRegularPath(path); + await using var output = new FileStream(path, FileMode.CreateNew, FileAccess.Write, FileShare.None, 65536, FileOptions.Asynchronous); + if (!OperatingSystem.IsWindows()) File.SetUnixFileMode(path, UnixFileMode.UserRead | UnixFileMode.UserWrite); + await JsonSerializer.SerializeAsync(output, value, Json, ct); await output.FlushAsync(ct); + } +} diff --git a/src/SHOU.Launcher.Core/Java/JavaBootstrapPayload.cs b/src/SHOU.Launcher.Core/Java/JavaBootstrapPayload.cs new file mode 100644 index 00000000..5a37014f --- /dev/null +++ b/src/SHOU.Launcher.Core/Java/JavaBootstrapPayload.cs @@ -0,0 +1,75 @@ +using System.Buffers.Binary; +using System.Security.Cryptography; +using System.Text; +using System.Text.Json.Serialization; + +namespace SHOU.Launcher.Core.Java; + +/// Draft protocol v1 encoder for the trusted Java BootstrapMain, with no filesystem or process access. +public sealed class JavaBootstrapPayload : IDisposable +{ + public const int ProtocolVersion = 1; + public const int HeaderBytes = 14; + public const int MaximumBodyBytes = 1024 * 1024; + public const int MaximumClassBytes = 4096; + public const int MaximumArgumentBytes = 256 * 1024; + public const int MaximumArgumentCount = 65536; + private static readonly UTF8Encoding Utf8 = new(false, true); + private byte[]? bytes; + + private JavaBootstrapPayload(byte[] value) => bytes = value; + public int ByteLength => Volatile.Read(ref bytes)?.Length ?? 0; + [JsonIgnore] + public ReadOnlyMemory Bytes => Volatile.Read(ref bytes) + ?? throw new ObjectDisposedException(nameof(JavaBootstrapPayload)); + + public static JavaBootstrapPayload Create(string mainClass, IReadOnlyList arguments) + { + ArgumentNullException.ThrowIfNull(mainClass); + ArgumentNullException.ThrowIfNull(arguments); + if (arguments.Count > MaximumArgumentCount) throw new ArgumentException("Bootstrap argument count exceeds the protocol limit.", nameof(arguments)); + using var body = new MemoryStream(MaximumBodyBytes); + try + { + WriteString(body, mainClass, MaximumClassBytes, allowEmpty: false); + WriteInt32(body, arguments.Count); + foreach (var argument in arguments) + WriteString(body, argument, MaximumArgumentBytes, allowEmpty: true); + var output = new byte[HeaderBytes + checked((int)body.Length)]; + "SHOUBOOT"u8.CopyTo(output); + BinaryPrimitives.WriteUInt16BigEndian(output.AsSpan(8, 2), ProtocolVersion); + BinaryPrimitives.WriteInt32BigEndian(output.AsSpan(10, 4), checked((int)body.Length)); + body.GetBuffer().AsSpan(0, checked((int)body.Length)).CopyTo(output.AsSpan(HeaderBytes)); + return new JavaBootstrapPayload(output); + } + finally { CryptographicOperations.ZeroMemory(body.GetBuffer()); } + } + + private static void WriteString(MemoryStream target, string value, int maximum, bool allowEmpty) + { + if (value is null || (!allowEmpty && value.Length == 0) || value.Contains('\0')) + throw new ArgumentException("Bootstrap UTF-8 field is null, empty or contains NUL."); + int length; + try { length = Utf8.GetByteCount(value); } + catch (EncoderFallbackException) { throw new ArgumentException("Bootstrap field contains invalid Unicode."); } + if (length > maximum || target.Length + 4L + length > MaximumBodyBytes) + throw new ArgumentException("Bootstrap UTF-8 field exceeds the bounded protocol."); + WriteInt32(target, length); + // Encoding directly into the one allocated stream buffer avoids a temporary argument byte array. + var offset = checked((int)target.Position); + target.SetLength(offset + length); + Utf8.GetBytes(value.AsSpan(), target.GetBuffer().AsSpan(offset, length)); + target.Position = offset + length; + } + private static void WriteInt32(MemoryStream target, int value) + { + if (target.Length + 4 > MaximumBodyBytes) throw new ArgumentException("Bootstrap payload exceeds the protocol limit."); + Span encoded = stackalloc byte[4]; BinaryPrimitives.WriteInt32BigEndian(encoded, value); target.Write(encoded); + } + public void Dispose() + { + var value = Interlocked.Exchange(ref bytes, null); + if (value is not null) CryptographicOperations.ZeroMemory(value); + } + public override string ToString() => nameof(JavaBootstrapPayload) + " [redacted; " + ByteLength + " bytes]"; +} diff --git a/src/SHOU.Launcher.Core/Java/JavaPathBoundary.cs b/src/SHOU.Launcher.Core/Java/JavaPathBoundary.cs new file mode 100644 index 00000000..81bb9e08 --- /dev/null +++ b/src/SHOU.Launcher.Core/Java/JavaPathBoundary.cs @@ -0,0 +1,98 @@ +using System.Buffers.Binary; +using System.Runtime.InteropServices; +using System.Text; + +namespace SHOU.Launcher.Core.Java; + +/// Filesystem canonical spelling followed by an explicit platform comparison; never infer volume identity by case folding. +public static class JavaPathBoundary +{ + private static StringComparison Comparison => OperatingSystem.IsWindows() + ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal; + + public static string Canonical(string path, bool followFinalLink = true) + { + if (!Path.IsPathFullyQualified(path)) throw new ArgumentException("An absolute Java boundary path is required."); + var full = Path.TrimEndingDirectorySeparator(Path.GetFullPath(path)); + var root = Path.GetPathRoot(full)!; var current = root; + var parts = full[root.Length..].Split(Path.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries); + for (var i = 0; i < parts.Length; i++) + { + current = Path.Combine(current, parts[i]); + FileSystemInfo entry = Directory.Exists(current) ? new DirectoryInfo(current) : new FileInfo(current); + if ((followFinalLink || i != parts.Length - 1) && entry.LinkTarget is not null) + { + var target = entry.ResolveLinkTarget(true); + if (target is null || !target.Exists) throw new IOException("Java boundary contains an unresolved link."); + current = target.FullName; + } + } + var normalized = Path.TrimEndingDirectorySeparator(Path.GetFullPath(current)); + return OperatingSystem.IsMacOS() ? StoredMacPath(normalized, followFinalLink) : normalized; + } + + public static bool Contains(string root, string path) => ContainsCanonical(Canonical(root), Canonical(path)); + + // Inputs here are already normalized/canonical. Keep this pure for boundary fixtures on every filesystem. + public static bool ContainsCanonical(string root, string path) + { + root = Path.TrimEndingDirectorySeparator(Path.GetFullPath(root)); + path = Path.TrimEndingDirectorySeparator(Path.GetFullPath(path)); + return string.Equals(root, path, Comparison) || path.StartsWith(Prefix(root), Comparison); + } + + public static string Relative(string root, string path, bool preserveFinalLink = true) => + RelativeCanonical(Canonical(root), Canonical(path, !preserveFinalLink)); + + public static string RelativeCanonical(string root, string path) + { + root = Path.TrimEndingDirectorySeparator(Path.GetFullPath(root)); + path = Path.TrimEndingDirectorySeparator(Path.GetFullPath(path)); + if (!ContainsCanonical(root, path)) throw new InvalidDataException("Java path is outside its canonical root."); + return string.Equals(root, path, Comparison) ? "." : path[Prefix(root).Length..].Replace(Path.DirectorySeparatorChar, '/'); + } + + /// Retains ownership of literal paths below an owned root even if a descendant link escapes it. + public static bool ContainsLiteral(string root, string path) + { + var canonicalRoot = Canonical(root); + for (var part = Path.GetFullPath(path); !string.IsNullOrEmpty(part); part = Path.GetDirectoryName(part)) + if (ContainsCanonical(canonicalRoot, Canonical(part, false))) return true; + return false; + } + + private static string Prefix(string root) => Path.EndsInDirectorySeparator(root) ? root : root + Path.DirectorySeparatorChar; + + private static string StoredMacPath(string full, bool followFinalLink) + { + var current = full; var suffix = new Stack(); + while (!Directory.Exists(current) && !File.Exists(current) && new FileInfo(current).LinkTarget is null) + { + suffix.Push(Path.GetFileName(current)); + current = Path.GetDirectoryName(current) ?? throw new IOException("Java boundary has no existing filesystem ancestor."); + } + var attributes = new Attributes { BitmapCount = 5, Common = 0x08000000 }; + var buffer = new byte[4096]; + // The same fixed-arity ATTR_CMN_FULLPATH layout verified by the B4 native path fixtures. + if (GetAttributes(current, ref attributes, buffer, (nuint)buffer.Length, followFinalLink ? 0u : 1u) != 0) + throw new IOException("Cannot obtain the canonical Java filesystem path."); + var returned = BinaryPrimitives.ReadInt32LittleEndian(buffer); + var offset = BinaryPrimitives.ReadInt32LittleEndian(buffer.AsSpan(4)); + var length = BinaryPrimitives.ReadInt32LittleEndian(buffer.AsSpan(8)); var start = 4L + offset; + if (returned < 12 || returned > buffer.Length || offset < 8 || length < 1 || start + length > returned + || buffer[(int)(start + length - 1)] != 0) throw new IOException("Invalid canonical Java filesystem path attribute."); + var stored = new UTF8Encoding(false, true).GetString(buffer, (int)start, length - 1); + if (!Path.IsPathFullyQualified(stored)) throw new IOException("Canonical Java filesystem path was relative."); + while (suffix.TryPop(out var part)) stored = Path.Combine(stored, part); + return Path.TrimEndingDirectorySeparator(Path.GetFullPath(stored)); + } + [StructLayout(LayoutKind.Sequential)] + private struct Attributes + { + internal ushort BitmapCount, Reserved; + internal uint Common, Volume, Directory, File, Fork; + } + [DllImport("/usr/lib/libSystem.B.dylib", EntryPoint = "getattrlist", SetLastError = true)] + private static extern int GetAttributes([MarshalAs(UnmanagedType.LPUTF8Str)] string path, + ref Attributes attributes, [Out] byte[] buffer, nuint length, uint options); +} diff --git a/src/SHOU.Launcher.Core/Java/JavaRuntimeProbe.cs b/src/SHOU.Launcher.Core/Java/JavaRuntimeProbe.cs new file mode 100644 index 00000000..67419b6e --- /dev/null +++ b/src/SHOU.Launcher.Core/Java/JavaRuntimeProbe.cs @@ -0,0 +1,91 @@ +using System.ComponentModel; +using System.Text.RegularExpressions; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Java; + +/// Inspects an actual child JVM; neither executable headers nor JDK-only files establish usability. +public sealed partial class JavaRuntimeProbe(IProcessRunner processes, TimeSpan? timeout = null) +{ + public async Task ProbeAsync(string executable, CancellationToken cancellationToken = default) + { + cancellationToken.ThrowIfCancellationRequested(); + if (string.IsNullOrWhiteSpace(executable) || !Path.IsPathFullyQualified(executable)) + return Failure(executable ?? "", "InvalidPath", "Java 必须使用绝对可执行文件路径。"); + executable = Path.GetFullPath(executable); + if (!File.Exists(executable)) return Failure(executable, "NotFound", "Java 可执行文件不存在或不可访问。"); + try + { + var environment = new Dictionary(StringComparer.OrdinalIgnoreCase); + foreach (string key in Environment.GetEnvironmentVariables().Keys) + if (key.StartsWith("PCL_", StringComparison.OrdinalIgnoreCase) + || key.StartsWith("CURSEFORGE_", StringComparison.OrdinalIgnoreCase) + || new[] { "JAVA_TOOL_OPTIONS", "_JAVA_OPTIONS", "JDK_JAVA_OPTIONS", "CLASSPATH", "JAVA_HOME" }.Contains(key, StringComparer.OrdinalIgnoreCase)) + environment[key] = null; + var result = await processes.RunAsync(new ProcessSpec(executable, + ["-XX:-UsePerfData", "-XshowSettings:properties", "-version"], Path.GetDirectoryName(executable)!, environment, + Timeout: timeout ?? TimeSpan.FromSeconds(10), OutputLimitCharacters: 131072), cancellationToken: cancellationToken); + if (result.Cancelled) + { + cancellationToken.ThrowIfCancellationRequested(); + return Failure(executable, "Cancelled", "Java 探测已取消。"); + } + if (result.TimedOut) return Failure(executable, "TimedOut", "Java 探测超时,已结束本次进程。"); + if (result.OutputTruncated) return Failure(executable, "OutputLimitExceeded", "Java 探测输出超过限制或未完整读取。"); + if (result.ExitCode != 0) return Failure(executable, "FailedExit", $"Java 探测退出码为 {result.ExitCode}。"); + return ParseOutput(executable, result.StandardOutput, result.StandardError); + } + catch (Win32Exception ex) + { + var code = ex.NativeErrorCode switch + { + 2 or 3 => "NotFound", + 5 or 13 => "NotExecutable", + 8 or 86 or 193 or 216 => "BadExecutableOrArchitecture", + _ => "StartFailed" + }; + return Failure(executable, code, $"操作系统无法执行该 Java(错误 {ex.NativeErrorCode})。"); + } + catch (UnauthorizedAccessException) { return Failure(executable, "NotExecutable", "没有执行该 Java 的权限。"); } + catch (IOException) { return Failure(executable, "IOFailure", "读取或执行 Java 时发生文件错误。"); } + } + + public static JavaInstallation ParseOutput(string executable, string standardOutput, string standardError) + { + var properties = new Dictionary(StringComparer.Ordinal); + foreach (var line in (standardOutput + "\n" + standardError).Split('\n')) + { + var match = PropertyLine().Match(line.TrimEnd('\r')); + if (match.Success) properties[match.Groups[1].Value] = match.Groups[2].Value.Trim(); + } + var fullVersion = properties.GetValueOrDefault("java.runtime.version") ?? properties.GetValueOrDefault("java.version"); + var home = properties.GetValueOrDefault("java.home"); + var architecture = NormalizeArchitecture(properties.GetValueOrDefault("os.arch")); + var version = MajorVersion().Match(properties.GetValueOrDefault("java.version") ?? fullVersion ?? ""); + if (string.IsNullOrWhiteSpace(home) || string.IsNullOrWhiteSpace(fullVersion) || !version.Success) + return Failure(executable, "InvalidOutput", "Java 未返回有效的版本与 java.home 属性。"); + var major = int.TryParse(version.Groups[1].Value == "1" ? version.Groups[2].Value : version.Groups[1].Value, out var number) ? number : 0; + if (major < 1) return Failure(executable, "InvalidOutput", "无法识别 Java 主版本。"); + if (architecture == RuntimeArchitecture.Unknown) + return Failure(executable, "UnknownArchitecture", "Java 返回了不支持或缺失的 os.arch 属性。"); + return new JavaInstallation(executable, home, fullVersion, major, + properties.GetValueOrDefault("java.vendor") ?? properties.GetValueOrDefault("java.vm.vendor") ?? "Unknown", + architecture, "probe"); + } + + public static RuntimeArchitecture NormalizeArchitecture(string? architecture) => architecture?.Trim().ToLowerInvariant() switch + { + "aarch64" or "arm64" => RuntimeArchitecture.Arm64, + "x86_64" or "amd64" or "x64" => RuntimeArchitecture.X64, + "x86" or "i386" or "i486" or "i586" or "i686" => RuntimeArchitecture.X86, + _ => RuntimeArchitecture.Unknown + }; + + private static JavaInstallation Failure(string executable, string code, string message) => + new(executable, "", "", 0, "", RuntimeArchitecture.Unknown, "probe", $"[{code}] {message}"); + + [GeneratedRegex(@"^\s*(java\.home|java\.version|java\.runtime\.version|java\.vendor|java\.vm\.vendor|os\.arch)\s*=\s*(.*?)\s*$", RegexOptions.CultureInvariant)] + private static partial Regex PropertyLine(); + [GeneratedRegex(@"^(\d+)(?:\.(\d+))?", RegexOptions.CultureInvariant)] + private static partial Regex MajorVersion(); +} diff --git a/src/SHOU.Launcher.Core/Java/JavaSelection.cs b/src/SHOU.Launcher.Core/Java/JavaSelection.cs new file mode 100644 index 00000000..d1930cee --- /dev/null +++ b/src/SHOU.Launcher.Core/Java/JavaSelection.cs @@ -0,0 +1,21 @@ +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Java; + +/// Exact metadata major and actual JVM architecture; a higher major is not an automatic substitute. +public static class JavaSelection +{ + public static JavaInstallation? Select(IEnumerable installations, int requiredMajor, + RuntimeArchitecture requiredArchitecture, string? preferredExecutable = null) + { + if (requiredMajor < 1 || requiredArchitecture == RuntimeArchitecture.Unknown) + throw new ArgumentException("A metadata Java major and explicit runtime architecture are required."); + var comparer = OperatingSystem.IsWindows() ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal; + var candidates = installations.Where(java => java.IsUsable && java.MajorVersion == requiredMajor + && java.RuntimeArchitecture == requiredArchitecture).ToArray(); + if (!string.IsNullOrWhiteSpace(preferredExecutable)) + return candidates.FirstOrDefault(java => comparer.Equals(java.ExecutablePath, preferredExecutable)); + // Discovery source priority is stable. Do not override a user's preferred runtime with a different vendor. + return candidates.FirstOrDefault(); + } +} diff --git a/src/SHOU.Launcher.Core/Java/JavaTrustPolicy.cs b/src/SHOU.Launcher.Core/Java/JavaTrustPolicy.cs new file mode 100644 index 00000000..882fadae --- /dev/null +++ b/src/SHOU.Launcher.Core/Java/JavaTrustPolicy.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +namespace SHOU.Launcher.Core.Java; + +/// Shipped, reviewed policy; never download executable policy or match CA names. +public static class JavaTrustPolicy +{ + public const string Id = "emudhra-2026-10-22"; + public const string Source = "https://bugzilla.mozilla.org/show_bug.cgi?id=2083449"; + // Mozilla NSS root removal: bug 2084101; DER fingerprint in NSS certdata. + public const string Root = "86A1ECBA089C4A8D3BBE2734C612BA341D813E043CF9E8A862CD5C57A36BBE6B"; + // Original eight compromised intermediate certificates and their eight AAA cross-signs. + public static IReadOnlyList Compromised { get; } = Array.AsReadOnly(new[] + { + "E7568FE6E12331F4FD7DE61DA4C7559D0F8EB192A218D4741A3BA75184333838", + "98B896625C0C230ADEEC3EB2CF6AAD5001ECF9156A68644E82374CE5833BC25B", + "42C4ACCD12C4F59597925E1A08A7A90102608543809308D50EC427E118BA1493", + "432EC25F0D28DE9006D97BF752F17BBB2CD41F669933FCB072D9A1148D0261F3", + "CB6E15165AC802E9B3F993F16C25D41F4E81C21EBDE71AE1B012AC00BF9C7C3F", + "0164D7CEAE5BB909C272AF151FF44B1177AE9B47D9424B94F1D9558C30934D19", + "9E39DE2881273ACC225A149C72BA3E0F51424963669AB633EE1DC7DF5DB067B4", + "4B2460A466F95FD40113BCDCCA2CEB29B3B093921DE45474DA7DF48874C630B1", + "579480AEA166290BD3C643589E795FC0D0E54E86505D180F1DFF99EFD3199512", + "5F1DED4DD590AF74631290CF073B122A2AAC6A1FA479778A0BD43579BD832699", + "45A883F349AEDFD5F3A649B5498FFB121712BA8B448F3F2A91DBC5A766FCDDBE", + "FD9D5C2DBBD4995AB69B8D50C439D9527B00529199C2FD01B2174EB58F07021F", + "7485B51C0ED192878FA1D2F948FB529AE1842CC5086C4B67F7BE5B2039DE9489", + "62B7F9868263F72F6911FC78CEAF72C1979158B7368BF648683BB2AA39B02E72", + "A496E23AC0CAB8155FC9B117B97EAE368EFCBB9041AEC8804D5A308D2D01C2D8", + "84112972B8E59D14560AE7E7119654474AAD119990CF3722BFC1E3B91615E1FD" + }); + public static IReadOnlySet Distrusted { get; } = new HashSet(Compromised.Append(Root), StringComparer.OrdinalIgnoreCase); +} diff --git a/src/SHOU.Launcher.Core/Java/JavaTrustRepair.cs b/src/SHOU.Launcher.Core/Java/JavaTrustRepair.cs new file mode 100644 index 00000000..1357fd96 --- /dev/null +++ b/src/SHOU.Launcher.Core/Java/JavaTrustRepair.cs @@ -0,0 +1,414 @@ +using System; +using System.Buffers.Binary; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Security.Cryptography; +using System.Security.Cryptography.X509Certificates; +using System.Text; +using System.Text.Json; +using System.Text.RegularExpressions; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Java; + +/// Fingerprint-based, reversible repairs. Scanning never executes a Java binary. +public static class JavaTrustRepair +{ + private static readonly object Gate = new(); + private const int MaxSize = 32 * 1024 * 1024; + private const string ReceiptSuffix = ".shou-trust-repair.json"; + private sealed record Receipt(string Backup, string Before, string After, bool Existed, string Policy); + + public static IReadOnlyList ScanJava(string binDirectory, int majorVersion) + { + var home = Directory.GetParent(Path.GetFullPath(binDirectory))!.FullName; + var directories = new[] { Path.Combine(home, "lib", "security"), Path.Combine(home, "jre", "lib", "security") }; + var reports = new List(); + foreach (var directory in directories) + { + if (!File.Exists(Path.Combine(directory, "cacerts"))) continue; + reports.AddRange(ScanSecurityDirectory(directory, majorVersion)); + } + if (reports.Count == 0) reports.Add(new JavaTrustFinding(home, true, "", false, false, "未找到默认证书库,未能检查")); + return reports; + } + + public static IReadOnlyList ScanSecurityDirectory(string directory, int majorVersion = 17) + { + var reports = new List { Scan(Path.Combine(directory, "cacerts"), true) }; + if (File.Exists(Path.Combine(directory, "jssecacerts"))) reports.Add(Scan(Path.Combine(directory, "jssecacerts"), true)); + // Java 8 uses blacklisted.certs; later OpenJDK uses blocked.certs. Honor existing vendor files. + var blockFiles = new[] { "blocked.certs", "blacklisted.certs" }.Select(n => Path.Combine(directory, n)).Where(File.Exists).ToArray(); + if (blockFiles.Length == 0) blockFiles = [Path.Combine(directory, majorVersion <= 8 ? "blacklisted.certs" : "blocked.certs")]; + reports.AddRange(blockFiles.Select(p => Scan(p, false))); + return reports; + } + + public static JavaTrustFinding Scan(string path, bool trustStore) + { + path = Path.GetFullPath(path); + try + { + EnsureRegularPath(path); + var data = Read(path, !trustStore); + var hash = Fingerprint(data); + if (trustStore) + { + var matches = Certificates(data).Where(JavaTrustPolicy.Distrusted.Contains).Distinct().ToArray(); + var repairable = IsJks(data) || FindKeytool(path) is not null; + var detail = matches.Length == 0 ? "未命中本次事件撤信任证书" : $"受影响:命中 {matches.Length} 张证书\n{string.Join("\n", matches)}"; + if (matches.Length > 0 && !repairable) detail += "\nPKCS12 证书库缺少同一 Java 的 keytool,请更新该 Java。"; + return new(path, true, hash, matches.Length > 0, matches.Length == 0 || repairable, detail, HasReceipt(path, hash)); + } + var missing = MissingBlocks(data); + return new(path, false, hash, missing.Length > 0, true, + missing.Length == 0 ? "已包含本次事件的 16 张中间证书阻止名单" : $"需加固:阻止名单缺少 {missing.Length} 张已泄露中间证书(含交叉签名)", HasReceipt(path, hash)); + } + catch (Exception ex) { return new(path, trustStore, "", false, false, $"未能检查:{ex.GetType().Name}"); } + } + + public static JavaTrustFinding Repair(JavaTrustFinding report, CancellationToken cancellationToken = default) + { + lock (Gate) + { + cancellationToken.ThrowIfCancellationRequested(); + if (!report.NeedsRepair || !report.CanRepair) throw new InvalidOperationException("此条目不可自动修复。"); + EnsureRegularPath(report.Path); + var before = Read(report.Path, !report.IsTrustStore); + if (Fingerprint(before) != report.Hash) throw new IOException("文件在扫描后发生变化,请重新扫描。"); + byte[] after; + if (report.IsTrustStore) + { + after = IsJks(before) ? JksTrustStore.Read(before).Remove(JavaTrustPolicy.Distrusted) : RepairPkcs12(report.Path, before, cancellationToken); + if (Certificates(after).Any(JavaTrustPolicy.Distrusted.Contains)) throw new InvalidDataException("修复后的证书库验证失败。"); + var retainedBefore = Certificates(before).Where(f => !JavaTrustPolicy.Distrusted.Contains(f)).Order().ToArray(); + if (!retainedBefore.SequenceEqual(Certificates(after).Order())) throw new InvalidDataException("修复改变了其他证书,已取消写入。"); + } + else + { + after = RepairedBlocks(before); + if (MissingBlocks(after).Length != 0) throw new InvalidDataException("阻止名单验证失败。"); + } + cancellationToken.ThrowIfCancellationRequested(); + ReplaceWithBackup(report.Path, before, after); + return Scan(report.Path, report.IsTrustStore); + } + } + + public static JavaTrustFinding Restore(JavaTrustFinding report) + { + lock (Gate) + { + EnsureRegularPath(report.Path); + var receiptPath = report.Path + ReceiptSuffix; + EnsureRegularPath(receiptPath); + var receipt = JsonSerializer.Deserialize(Read(receiptPath, false)) ?? throw new InvalidDataException("备份记录无效。"); + if (receipt.Policy != JavaTrustPolicy.Id || Path.GetFileName(receipt.Backup) != receipt.Backup || + !receipt.Backup.StartsWith(Path.GetFileName(report.Path) + ".shou-backup-", StringComparison.Ordinal)) + throw new InvalidDataException("备份路径无效。"); + var backup = Path.Combine(Path.GetDirectoryName(report.Path)!, receipt.Backup); + EnsureRegularPath(backup); + var original = Read(backup, false); + if (Fingerprint(original) != receipt.Before) throw new InvalidDataException("备份校验失败,未恢复。"); + var current = Read(report.Path, false); + if (Fingerprint(current) != receipt.After || report.Hash != receipt.After) + throw new IOException("证书文件在修复后已变化,不能覆盖厂商或用户的后续更新。"); + DerivedJavaTrustService.InvalidateForRestore(report.Path); + if (receipt.Existed) WriteAtomic(report.Path, current, original); + else + { + if (original.Length != 0) throw new InvalidDataException("新建文件的备份应为空。"); + using var locked = new FileStream(report.Path, FileMode.Open, FileAccess.Read, FileShare.Read | FileShare.Delete); + if (locked.Length > MaxSize) throw new IOException("文件在检查后发生变化。"); + using var memory = new MemoryStream(); locked.CopyTo(memory); + if (Fingerprint(memory.ToArray()) != receipt.After) throw new IOException("文件在检查后发生变化。"); + File.Delete(report.Path); + } + return Scan(report.Path, report.IsTrustStore); + } + } + + /// Only traverses the completed download destination, never follows junctions or symbolic links. + public static IReadOnlyList RepairDownload(string root, bool enabled) + { + if (!enabled) return []; + EnsureRegularPath(root); + var options = new EnumerationOptions { RecurseSubdirectories = true, AttributesToSkip = FileAttributes.ReparsePoint, IgnoreInaccessible = false }; + var stores = Directory.EnumerateFiles(root, "cacerts", options) + .Where(p => string.Equals(new DirectoryInfo(Path.GetDirectoryName(p)!).Name, "security", StringComparison.OrdinalIgnoreCase)).ToArray(); + if (stores.Length == 0) throw new InvalidDataException("下载目录中未找到 Java 证书库,不能完成自动检查。"); + var results = new List(); + foreach (var store in stores) + { + var directory = Path.GetDirectoryName(store)!; + // JDK 8's runtime lives in jre/lib/security. Existing vendor blacklist wins. + var home = Path.GetFullPath(Path.Combine(directory, "..", "..")); + var versionFile = Path.Combine(home, "release"); + var javaExe = Path.Combine(home, "bin", "java.exe"); + var major = directory.Contains(Path.DirectorySeparatorChar + "jre" + Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase) ? 8 : 17; + if (File.Exists(javaExe)) + { + var version = FileVersionInfo.GetVersionInfo(javaExe); + if (version.FileMajorPart > 0) major = version.FileMajorPart == 1 ? version.FileMinorPart : version.FileMajorPart; + } + else if (File.Exists(versionFile)) + { + EnsureRegularPath(versionFile); + var match = Regex.Match(Encoding.UTF8.GetString(Read(versionFile, false)), "(?m)^JAVA_VERSION=\"(?:1\\.)?(\\d+)"); + if (match.Success) major = int.Parse(match.Groups[1].Value); + } + foreach (var report in ScanSecurityDirectory(directory, major)) + { + if (!report.NeedsRepair || !report.CanRepair) { results.Add(report); continue; } + try { results.Add(Repair(report)); } + catch (Exception ex) { results.Add(report with { CanRepair = false, Details = "修复失败:" + ex.GetType().Name }); } + } + } + return results; + } + + private static bool HasReceipt(string path, string hash) + { + try + { + var receiptPath = path + ReceiptSuffix; + EnsureRegularPath(receiptPath); + var receipt = JsonSerializer.Deserialize(Read(receiptPath, false)); + return receipt?.After == hash; + } + catch { return false; } + } + private static bool IsJks(byte[] data) => data.Length >= 4 && BinaryPrimitives.ReadUInt32BigEndian(data) == 0xfeedfeed; + private static string Fingerprint(byte[] data) => Convert.ToHexString(SHA256.HashData(data)); + private static string[] Certificates(byte[] data) + { + if (IsJks(data)) + { + var entries = JksTrustStore.Read(data).Entries; + if (entries.Any(e => e.HasDistrustedKeyCertificate)) throw new InvalidDataException("私钥条目包含本次事件证书,请使用 Java 厂商工具处理,未自动修改。"); + return entries.Where(e => e.Fingerprint is not null).Select(e => e.Fingerprint!).ToArray(); + } + // JDK-8275252: shipped cacerts may be plaintext public-certificate PKCS12 without MacData. + return Pkcs12TrustReader.ReadFingerprints(data, allowUnprotectedCertificateBags: true).ToArray(); + } + + private static string[] MissingBlocks(byte[] data) + { + var text = Encoding.Latin1.GetString(data); + // Fail closed on unfamiliar Java properties rather than replace a vendor blacklist. + if (data.Length != 0 && (Regex.Matches(text, @"(?m)^\s*Algorithm\b").Count != 1 || + !Regex.IsMatch(text, @"(?m)^\s*Algorithm\s*[=:]\s*SHA-256\s*$") || text.Contains('\\'))) + throw new InvalidDataException("阻止名单不是受支持的 SHA-256 格式,请更新 Java;原文件已保留。"); + return JavaTrustPolicy.Compromised.Where(f => !Regex.IsMatch(text, @"(?m)^\s*" + f + @"\s*(?:[=:].*)?$" )).ToArray(); + } + + private static byte[] RepairedBlocks(byte[] before) + { + var missing = MissingBlocks(before); + var prefix = before.Length == 0 ? "Algorithm=SHA-256\n" : ""; + return before.Concat(Encoding.ASCII.GetBytes($"\n{prefix}# SHOU {JavaTrustPolicy.Id}\n{string.Join("\n", missing.Select(f => f + "="))}\n")).ToArray(); + } + + internal static void ValidateTransformation(byte[] before, byte[] after, bool trustStore) + { + if (trustStore) + { + var expected = Certificates(before).Where(f => !JavaTrustPolicy.Distrusted.Contains(f)).Order().ToArray(); + var actual = Certificates(after).Order().ToArray(); + if (actual.Any(JavaTrustPolicy.Distrusted.Contains) || !expected.SequenceEqual(actual) + || (IsJks(before) && !JksTrustStore.Read(before).Remove(JavaTrustPolicy.Distrusted).AsSpan().SequenceEqual(after))) + throw new InvalidDataException("派生证书库不满足精确撤信任策略。"); + } + else if (!RepairedBlocks(before).AsSpan().SequenceEqual(after)) + throw new InvalidDataException("派生阻止名单不是保留原内容的精确加固结果。"); + } + + internal static string ValidateReceipt(string path, byte[] before, byte[] after, bool existed) + { + var receiptPath = path + ReceiptSuffix; + EnsureRegularPath(receiptPath); + var receipt = JsonSerializer.Deserialize(Read(receiptPath, false)) ?? throw new InvalidDataException("备份记录无效。"); + if (receipt.Policy != JavaTrustPolicy.Id || receipt.Before != Fingerprint(before) + || receipt.After != Fingerprint(after) || receipt.Existed != existed + || Path.GetFileName(receipt.Backup) != receipt.Backup + || !Regex.IsMatch(receipt.Backup, "^" + Regex.Escape(Path.GetFileName(path)) + @"\.shou-backup-[0-9a-f]{32}$")) + throw new InvalidDataException("派生备份记录不匹配。"); + var backup = Path.Combine(Path.GetDirectoryName(path)!, receipt.Backup); + EnsureRegularPath(backup); + if (!Read(backup, false).AsSpan().SequenceEqual(before)) throw new InvalidDataException("派生备份不匹配。"); + return backup; + } + + public static void EnsureRegularPath(string path) + { + for (var part = Path.GetFullPath(path); !string.IsNullOrEmpty(part); part = Path.GetDirectoryName(part)) + { + try { if ((File.GetAttributes(part) & FileAttributes.ReparsePoint) != 0) throw new IOException("文件或上层目录是链接/联接点,请通过系统包管理器或 Java 厂商更新。"); } + catch (FileNotFoundException) { } + catch (DirectoryNotFoundException) { } + } + } + + private static byte[] Read(string path, bool allowMissing) + { + if (!File.Exists(path) && allowMissing) return []; + using var stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read); + if (stream.Length > MaxSize) throw new InvalidDataException("证书文件过大。"); + using var memory = new MemoryStream(); + var buffer = new byte[65536]; int count; + while ((count = stream.Read(buffer, 0, (int)Math.Min(buffer.Length, MaxSize + 1L - memory.Length))) > 0) + { + memory.Write(buffer, 0, count); + if (memory.Length > MaxSize) throw new InvalidDataException("证书文件增长超过限制。"); + } + return memory.ToArray(); + } + + private static void ReplaceWithBackup(string path, byte[] before, byte[] after) + { + var backup = path + ".shou-backup-" + Guid.NewGuid().ToString("N"); + EnsureRegularPath(path + ReceiptSuffix); + using (var file = new FileStream(backup, FileMode.CreateNew, FileAccess.Write, FileShare.None)) { PrivateMode(backup); file.Write(before); file.Flush(true); } + var receipt = new Receipt(Path.GetFileName(backup), Fingerprint(before), Fingerprint(after), File.Exists(path), JavaTrustPolicy.Id); + // Save recovery information BEFORE touching the store. A failed replace leaves the original intact. + var receiptPath = path + ReceiptSuffix; + WriteAtomic(receiptPath, File.Exists(receiptPath) ? Read(receiptPath, false) : [], + JsonSerializer.SerializeToUtf8Bytes(receipt, new JsonSerializerOptions { WriteIndented = true })); + PrivateMode(receiptPath); + WriteAtomic(path, before, after); + } + + private static void WriteAtomic(string path, byte[] expected, byte[] data) + { + EnsureRegularPath(path); + var temp = path + ".shou-tmp-" + Guid.NewGuid().ToString("N"); + try + { + using (var file = new FileStream(temp, FileMode.CreateNew, FileAccess.Write, FileShare.None)) { PrivateMode(temp); file.Write(data); file.Flush(true); } + if (File.Exists(path) && !OperatingSystem.IsWindows()) File.SetUnixFileMode(temp, File.GetUnixFileMode(path)); + if (File.Exists(path)) + { + // Deny concurrent writers while checking the snapshot and atomically replacing the file. + using var current = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read | FileShare.Delete); + if (current.Length > MaxSize) throw new IOException("文件在检查后发生变化。"); + using var memory = new MemoryStream(); current.CopyTo(memory); + if (!memory.ToArray().AsSpan().SequenceEqual(expected)) throw new IOException("文件在检查后发生变化,请重新扫描。"); + File.Replace(temp, path, null); + } + else + { + if (expected.Length != 0) throw new IOException("原文件已被移除。"); + File.Move(temp, path, false); + } + } + finally { if (File.Exists(temp)) File.Delete(temp); } + } + + private static string? FindKeytool(string store) + { + var home = Path.GetFullPath(Path.Combine(Path.GetDirectoryName(store)!, "..", "..")); + var tool = Path.Combine(home, "bin", OperatingSystem.IsWindows() ? "keytool.exe" : "keytool"); + // Never reach outside a copied JavaHome to a system/user JDK or a PATH fallback. + return File.Exists(tool) ? tool : null; + } + + private static byte[] RepairPkcs12(string path, byte[] data, CancellationToken cancellationToken) + { + var tool = FindKeytool(path) ?? throw new InvalidOperationException("找不到同一 Java 的 keytool。"); + EnsureRegularPath(tool); + var temp = path + ".shou-p12-" + Guid.NewGuid().ToString("N"); + try + { + File.WriteAllBytes(temp, data); + PrivateMode(temp); + var listing = Keytool(tool, temp, cancellationToken, "-list", "-rfc"); + var aliases = new List(); + foreach (var section in Regex.Split(listing, @"(?m)^Alias name: ").Skip(1)) + { + var alias = section.Split('\n')[0].TrimEnd('\r'); + var pem = Regex.Match(section, "-----BEGIN CERTIFICATE-----[\\s\\S]*?-----END CERTIFICATE-----"); + if (!pem.Success) continue; + using var cert = X509Certificate2.CreateFromPem(pem.Value); + if (JavaTrustPolicy.Distrusted.Contains(cert.GetCertHashString(HashAlgorithmName.SHA256))) aliases.Add(alias); + } + if (aliases.Count == 0) throw new InvalidDataException("keytool 未能定位目标证书,未修改原文件。"); + foreach (var alias in aliases) Keytool(tool, temp, cancellationToken, "-delete", "-alias", alias); + return Read(temp, false); + } + finally { if (File.Exists(temp)) File.Delete(temp); } + } + + private static string Keytool(string tool, string file, CancellationToken cancellationToken, params string[] arguments) => + RunKeytoolAsync(tool, file, arguments, cancellationToken).GetAwaiter().GetResult(); + + private static async Task RunKeytoolAsync(string tool, string file, string[] arguments, CancellationToken ct) + { + EnsureRegularPath(tool); + JavaTrustTree.EnsureSingleRegularFile(tool); + var start = new ProcessStartInfo(tool) + { + WorkingDirectory = Path.GetDirectoryName(file)!, UseShellExecute = false, CreateNoWindow = true, + RedirectStandardOutput = true, RedirectStandardError = true, RedirectStandardInput = true, + StandardOutputEncoding = Encoding.UTF8, StandardErrorEncoding = Encoding.UTF8 + }; + foreach (var key in start.Environment.Keys.Where(key => key.StartsWith("PCL_", StringComparison.OrdinalIgnoreCase) + || key.StartsWith("CURSEFORGE_", StringComparison.OrdinalIgnoreCase) + || new[] { "JAVA_TOOL_OPTIONS", "_JAVA_OPTIONS", "JDK_JAVA_OPTIONS", "CLASSPATH" }.Contains(key, StringComparer.OrdinalIgnoreCase)).ToArray()) start.Environment.Remove(key); + start.Environment["JAVA_HOME"] = Path.GetDirectoryName(Path.GetDirectoryName(tool))!; + start.Environment["SHOU_TRUST_PASSWORD"] = "changeit"; + foreach (var arg in new[] { "-J-XX:-UsePerfData", "-J-Djava.io.tmpdir=" + Path.GetDirectoryName(file), + "-J-Duser.language=en", "-J-Duser.country=US", "-J-Dfile.encoding=UTF-8", + "-J-Dsun.stdout.encoding=UTF-8", "-J-Dsun.stderr.encoding=UTF-8", + "-keystore", file, "-storepass:env", "SHOU_TRUST_PASSWORD" }.Concat(arguments)) start.ArgumentList.Add(arg); + ct.ThrowIfCancellationRequested(); + using var process = Process.Start(start) ?? throw new IOException("无法启动 keytool。"); + process.StandardInput.Close(); + using var deadline = new CancellationTokenSource(TimeSpan.FromSeconds(30)); + using var linked = CancellationTokenSource.CreateLinkedTokenSource(ct, deadline.Token); + var output = CaptureAsync(process.StandardOutput, linked.Token); + var errors = CaptureAsync(process.StandardError, linked.Token); + try + { + await process.WaitForExitAsync(linked.Token).ConfigureAwait(false); + await Task.WhenAll(output, errors).WaitAsync(linked.Token).ConfigureAwait(false); + if (process.ExitCode != 0) throw new IOException("KeytoolFailedExit"); + if (output.Result.Truncated || errors.Result.Truncated) throw new IOException("KeytoolOutputLimit"); + return output.Result.Text; + } + catch (OperationCanceledException) + { + if (!process.HasExited) process.Kill(true); + try { await process.WaitForExitAsync().WaitAsync(TimeSpan.FromSeconds(5)).ConfigureAwait(false); } + catch (TimeoutException) { } + ct.ThrowIfCancellationRequested(); + throw new TimeoutException("KeytoolTimeout"); + } + finally + { + linked.Cancel(); + _ = Task.WhenAll(output, errors).ContinueWith(task => _ = task.Exception, + CancellationToken.None, TaskContinuationOptions.OnlyOnFaulted, TaskScheduler.Default); + } + } + + private static async Task<(string Text, bool Truncated)> CaptureAsync(StreamReader reader, CancellationToken ct) + { + const int limit = 8 * 1024 * 1024; + var text = new StringBuilder(); var buffer = new char[8192]; var truncated = false; + int count; + while ((count = await reader.ReadAsync(buffer.AsMemory(), ct).ConfigureAwait(false)) > 0) + { + var retained = Math.Min(count, limit - text.Length); + if (retained > 0) text.Append(buffer, 0, retained); + truncated |= retained != count; + } + return (text.ToString(), truncated); + } + + private static void PrivateMode(string path) + { + if (!OperatingSystem.IsWindows()) File.SetUnixFileMode(path, UnixFileMode.UserRead | UnixFileMode.UserWrite); + } +} diff --git a/src/SHOU.Launcher.Core/Java/JavaTrustTree.cs b/src/SHOU.Launcher.Core/Java/JavaTrustTree.cs new file mode 100644 index 00000000..9c7c1d83 --- /dev/null +++ b/src/SHOU.Launcher.Core/Java/JavaTrustTree.cs @@ -0,0 +1,235 @@ +using System.Buffers.Binary; +using System.Runtime.InteropServices; +using System.Security.Cryptography; +using System.Text; +using Microsoft.Win32.SafeHandles; + +namespace SHOU.Launcher.Core.Java; + +/// A versioned, path-sensitive snapshot. Links are recorded, never traversed while copying. +internal static class JavaTrustTree +{ + internal sealed record Entry(string Path, string Kind, int Mode, long Size = 0, + string? Sha256 = null, string? Target = null); + internal sealed record Snapshot(string Sha256, IReadOnlyList Entries); + private static readonly Encoding Utf8 = new UTF8Encoding(false, true); + internal static StringComparison PathComparison => OperatingSystem.IsWindows() + ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal; + + internal static bool IsInside(string root, string path) + { + return JavaPathBoundary.Contains(root, path); + } + + internal static string Absolute(string path) + { + if (!System.IO.Path.IsPathFullyQualified(path)) throw new ArgumentException("An absolute Java trust path is required."); + return System.IO.Path.TrimEndingDirectorySeparator(System.IO.Path.GetFullPath(path)); + } + + internal static string Combine(string root, string relative) + { + if (relative == ".") return root; + if (string.IsNullOrEmpty(relative) || System.IO.Path.IsPathRooted(relative) + || relative.Contains('\\') || relative.Contains(':') || relative.Contains('\0') + || relative.Split('/').Any(part => part is "." or ".." or "")) + throw new InvalidDataException("Invalid Java trust relative path."); + var full = System.IO.Path.GetFullPath(System.IO.Path.Combine(root, relative.Replace('/', System.IO.Path.DirectorySeparatorChar))); + if (!IsInside(root, full)) throw new InvalidDataException("Java trust path escapes its root."); + return full; + } + + internal static async Task ReadAsync(string root, CancellationToken ct) + { + root = Absolute(root); + JavaTrustRepair.EnsureRegularPath(root); + root = JavaPathBoundary.Canonical(root); + if (!Directory.Exists(root)) throw new DirectoryNotFoundException("Java trust tree does not exist."); + var entries = new List { new(".", "directory", Mode(root)) }; + var queue = new Queue(); queue.Enqueue(root); + long total = 0; + while (queue.TryDequeue(out var directory)) + { + ct.ThrowIfCancellationRequested(); + foreach (var path in Directory.EnumerateFileSystemEntries(directory)) + { + ct.ThrowIfCancellationRequested(); + if (entries.Count >= 100000) throw new InvalidDataException("Java trust tree exceeds its entry budget."); + var relative = JavaPathBoundary.RelativeCanonical(root, path); + _ = Combine(root, relative); + var attributes = File.GetAttributes(path); + FileSystemInfo info = (attributes & FileAttributes.Directory) != 0 ? new DirectoryInfo(path) : new FileInfo(path); + var target = info.LinkTarget; + if (target is not null) + { + if (System.IO.Path.IsPathRooted(target) || target.Contains(':') || target.Contains('\\') || target.Contains('\0')) + throw new InvalidDataException("Java trust copy requires a contained relative link."); + var lexical = System.IO.Path.GetFullPath(System.IO.Path.Combine(directory, target)); + if (!IsInside(root, lexical)) throw new InvalidDataException("Java trust link leaves JavaHome."); + var resolved = info.ResolveLinkTarget(true) ?? throw new InvalidDataException("Unresolved Java trust link."); + if (!resolved.Exists || !IsInside(root, resolved.FullName)) + throw new InvalidDataException("Broken or external Java trust link."); + entries.Add(new(relative, Directory.Exists(path) ? "link-directory" : "link-file", 0, Target: target)); + } + else if ((attributes & FileAttributes.ReparsePoint) != 0) + throw new InvalidDataException("Unsupported Java trust reparse point."); + else if ((attributes & FileAttributes.Directory) != 0) + { + entries.Add(new(relative, "directory", Mode(path))); queue.Enqueue(path); + } + else + { + EnsureSingleRegularFile(path); + await using var input = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, + 131072, FileOptions.Asynchronous | FileOptions.SequentialScan); + if (input.Length > 4L * 1024 * 1024 * 1024 || (total = checked(total + input.Length)) > 4L * 1024 * 1024 * 1024) + throw new InvalidDataException("Java trust tree exceeds its byte budget."); + var length = input.Length; + var digest = await DigestAsync(input, length, null, ct); + if (input.Length != length) throw new IOException("Java trust source changed during snapshot."); + entries.Add(new(relative, "file", Mode(path), length, digest)); + } + } + } + var sorted = entries.OrderBy(entry => entry.Path, StringComparer.Ordinal).ToArray(); + using var hash = IncrementalHash.CreateHash(HashAlgorithmName.SHA256); + hash.AppendData("SHOU-JAVA-TREE\0v1\0"u8); + foreach (var entry in sorted) + { + Text(entry.Path); Text(entry.Kind); Number(entry.Mode); Number(entry.Size); + Text(entry.Sha256 ?? ""); Text(entry.Target ?? ""); + } + return new(Convert.ToHexString(hash.GetHashAndReset()), sorted); + + void Text(string text) + { + var bytes = Utf8.GetBytes(text); Number(bytes.Length); hash.AppendData(bytes); + } + void Number(long number) + { + Span bytes = stackalloc byte[8]; BinaryPrimitives.WriteInt64BigEndian(bytes, number); hash.AppendData(bytes); + } + } + + internal static async Task CopyAsync(string source, string destination, Snapshot snapshot, CancellationToken ct) + { + if (Directory.Exists(destination) || File.Exists(destination)) throw new IOException("Java trust destination already exists."); + Directory.CreateDirectory(destination); + foreach (var entry in snapshot.Entries.Where(entry => entry.Kind == "directory" && entry.Path != ".")) + Directory.CreateDirectory(Combine(destination, entry.Path)); + foreach (var entry in snapshot.Entries.Where(entry => entry.Kind == "file")) + { + ct.ThrowIfCancellationRequested(); + var original = Combine(source, entry.Path); var target = Combine(destination, entry.Path); + EnsureSingleRegularFile(original); + // CreateNew + independent writes intentionally forbid hard-link reuse of the source inode. + await using (var input = new FileStream(original, FileMode.Open, FileAccess.Read, FileShare.Read, + 131072, FileOptions.Asynchronous | FileOptions.SequentialScan)) + await using (var output = new FileStream(target, FileMode.CreateNew, FileAccess.Write, FileShare.None, + 131072, FileOptions.Asynchronous)) + { + if (await DigestAsync(input, entry.Size, output, ct) != entry.Sha256) + throw new IOException("Java trust source changed during independent copy."); + await output.FlushAsync(ct); + } + SetMode(target, entry.Mode); + EnsureSingleRegularFile(target); + } + foreach (var entry in snapshot.Entries.Where(entry => entry.Kind.StartsWith("link-", StringComparison.Ordinal))) + { + ct.ThrowIfCancellationRequested(); + var target = Combine(destination, entry.Path); + if (entry.Kind == "link-directory") Directory.CreateSymbolicLink(target, entry.Target!); + else File.CreateSymbolicLink(target, entry.Target!); + } + foreach (var entry in snapshot.Entries.Where(entry => entry.Kind == "directory") + .OrderByDescending(entry => entry.Path.Length)) SetMode(Combine(destination, entry.Path), entry.Mode); + if ((await ReadAsync(destination, ct)).Sha256 != snapshot.Sha256) + throw new IOException("Independent Java trust copy did not preserve the source tree."); + } + + internal static int Mode(string path) => OperatingSystem.IsWindows() + ? ((File.GetAttributes(path) & FileAttributes.ReadOnly) != 0 ? 1 : 0) + : (int)File.GetUnixFileMode(path); + + private static async Task DigestAsync(Stream input, long expected, Stream? output, CancellationToken ct) + { + using var hash = IncrementalHash.CreateHash(HashAlgorithmName.SHA256); + var buffer = new byte[131072]; long count = 0; + while (count < expected) + { + var read = await input.ReadAsync(buffer.AsMemory(0, (int)Math.Min(buffer.Length, expected - count)), ct); + if (read == 0) throw new IOException("Java trust file was truncated during read."); + hash.AppendData(buffer.AsSpan(0, read)); + if (output is not null) await output.WriteAsync(buffer.AsMemory(0, read), ct); + count += read; + } + if (await input.ReadAsync(buffer.AsMemory(0, 1), ct) != 0) throw new IOException("Java trust file grew during read."); + return Convert.ToHexString(hash.GetHashAndReset()); + } + + internal static void SetMode(string path, int mode) + { + if (!OperatingSystem.IsWindows()) File.SetUnixFileMode(path, (UnixFileMode)mode); + else + { + var attrs = File.GetAttributes(path); + File.SetAttributes(path, mode == 1 ? attrs | FileAttributes.ReadOnly : attrs & ~FileAttributes.ReadOnly); + } + } + + internal static void EnsureSingleRegularFile(string path) + { + if (OperatingSystem.IsMacOS()) + { + var attrs = new DarwinAttributes { BitmapCount = 5, Common = 8, File = 1 }; + var buffer = new byte[12]; + if (GetAttributes(path, ref attrs, buffer, (nuint)buffer.Length, 1) != 0 + || BinaryPrimitives.ReadUInt32LittleEndian(buffer) != 12 + || BinaryPrimitives.ReadUInt32LittleEndian(buffer.AsSpan(4)) != 1 + || BinaryPrimitives.ReadUInt32LittleEndian(buffer.AsSpan(8)) != 1) + throw new IOException("Java trust copy refuses special or hard-linked files."); + } + else if (OperatingSystem.IsLinux()) + { + var buffer = new byte[256]; + if (!BitConverter.IsLittleEndian || Statx(-100, path, 0x100, 5, buffer) != 0 + || (BinaryPrimitives.ReadUInt32LittleEndian(buffer) & 5) != 5 + || BinaryPrimitives.ReadUInt32LittleEndian(buffer.AsSpan(16)) != 1 + || (BinaryPrimitives.ReadUInt16LittleEndian(buffer.AsSpan(28)) & 0xf000) != 0x8000) + throw new IOException("Java trust copy refuses special or hard-linked files."); + } + else if (OperatingSystem.IsWindows()) + { + using var handle = File.OpenHandle(path, FileMode.Open, FileAccess.Read, FileShare.Read); + if (GetFileType(handle) != 1 || !GetFileInformationByHandle(handle, out var info) || info.NumberOfLinks != 1 + || (info.Attributes & (uint)(FileAttributes.Directory | FileAttributes.ReparsePoint)) != 0) + throw new IOException("Java trust copy refuses special or hard-linked files."); + } + else throw new PlatformNotSupportedException("Java trust file identity is unavailable on this platform."); + } + + [StructLayout(LayoutKind.Sequential)] + private struct DarwinAttributes + { + internal ushort BitmapCount, Reserved; + internal uint Common, Volume, Directory, File, Fork; + } + [DllImport("libc", EntryPoint = "getattrlist", SetLastError = true)] + private static extern int GetAttributes([MarshalAs(UnmanagedType.LPUTF8Str)] string path, + ref DarwinAttributes attributes, [Out] byte[] buffer, nuint size, uint options); + [DllImport("libc", EntryPoint = "statx", SetLastError = true)] + private static extern int Statx(int directory, [MarshalAs(UnmanagedType.LPUTF8Str)] string path, int flags, uint mask, [Out] byte[] buffer); + [StructLayout(LayoutKind.Sequential)] + private struct WindowsFileInformation + { + internal uint Attributes; + internal System.Runtime.InteropServices.ComTypes.FILETIME Creation, Access, Write; + internal uint Volume, SizeHigh, SizeLow, NumberOfLinks, IndexHigh, IndexLow; + } + [DllImport("kernel32.dll", SetLastError = true)] + [return: MarshalAs(UnmanagedType.Bool)] + private static extern bool GetFileInformationByHandle(SafeFileHandle handle, out WindowsFileInformation information); + [DllImport("kernel32.dll", SetLastError = true)] + private static extern uint GetFileType(SafeFileHandle handle); +} diff --git a/src/SHOU.Launcher.Core/Java/JksTrustStore.cs b/src/SHOU.Launcher.Core/Java/JksTrustStore.cs new file mode 100644 index 00000000..cdb1f541 --- /dev/null +++ b/src/SHOU.Launcher.Core/Java/JksTrustStore.cs @@ -0,0 +1,101 @@ +using System; +using System.Buffers.Binary; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Security.Cryptography; +using System.Text; + +namespace SHOU.Launcher.Core.Java; + +/// Reads JKS v1/v2 without running Java. Retained entries are copied byte-for-byte. +public sealed class JksTrustStore +{ + public sealed record Entry(string Alias, string? Fingerprint, byte[] Encoded, bool HasDistrustedKeyCertificate = false); + public IReadOnlyList Entries { get; } + private readonly int _version; + private JksTrustStore(int version, List entries) { _version = version; Entries = entries; } + + public static JksTrustStore Read(byte[] data, string password = "changeit") + { + if (data.Length < 32 || data.Length > 32 * 1024 * 1024) throw new InvalidDataException("证书库大小无效。"); + var body = data.AsSpan(0, data.Length - 20); + if (!CryptographicOperations.FixedTimeEquals(Digest(body, password), data.AsSpan(data.Length - 20))) + throw new InvalidDataException("JKS 完整性校验失败:密码不是默认 changeit,或文件已损坏。请使用 Java 厂商工具更新。"); + var reader = new Reader(body.ToArray()); + if (reader.Int() != unchecked((int)0xfeedfeed)) throw new InvalidDataException("不是 JKS 证书库。"); + var version = reader.Int(); + if (version is not (1 or 2)) throw new InvalidDataException("不支持的 JKS 版本。"); + var count = reader.Count(); + var entries = new List(); + for (var i = 0; i < count; i++) + { + var start = reader.Position; + var tag = reader.Int(); + var alias = reader.Utf(); + reader.Skip(8); // Java timestamp + string? fingerprint = null; + var distrustedKeyCertificate = false; + if (tag == 2) fingerprint = ReadCert(reader, version); + else if (tag == 1) + { + reader.Skip(reader.Int()); // Encrypted private key, retained unchanged. + var chainCount = reader.Count(); + for (var j = 0; j < chainCount; j++) + distrustedKeyCertificate |= JavaTrustPolicy.Distrusted.Contains(ReadCert(reader, version)); + } + else throw new InvalidDataException("未知的 JKS 条目类型。"); + entries.Add(new Entry(alias, fingerprint, body.Slice(start, reader.Position - start).ToArray(), distrustedKeyCertificate)); + } + if (reader.Position != body.Length) throw new InvalidDataException("JKS 包含未解析的数据。"); + return new JksTrustStore(version, entries); + } + + public byte[] Remove(IReadOnlySet fingerprints, string password = "changeit") + { + var retained = Entries.Where(e => e.Fingerprint is null || !fingerprints.Contains(e.Fingerprint)).ToArray(); + using var stream = new MemoryStream(); + Span header = stackalloc byte[12]; + BinaryPrimitives.WriteInt32BigEndian(header, unchecked((int)0xfeedfeed)); + BinaryPrimitives.WriteInt32BigEndian(header[4..], _version); + BinaryPrimitives.WriteInt32BigEndian(header[8..], retained.Length); + stream.Write(header); + foreach (var entry in retained) stream.Write(entry.Encoded); + var body = stream.ToArray(); + stream.Write(Digest(body, password)); + return stream.ToArray(); + } + + private static string ReadCert(Reader reader, int version) + { + if (version == 2 && reader.Utf() != "X.509") throw new InvalidDataException("不支持的证书类型。"); + var cert = reader.Bytes(reader.Int()); + // Validate DER before presenting a clean result. + using var parsed = System.Security.Cryptography.X509Certificates.X509CertificateLoader.LoadCertificate(cert); + return Convert.ToHexString(SHA256.HashData(cert)); + } + + private static byte[] Digest(ReadOnlySpan body, string password) + { + // JKS mandates SHA-1 for file integrity. Certificate matching uses SHA-256. + using var hash = IncrementalHash.CreateHash(HashAlgorithmName.SHA1); + hash.AppendData(Encoding.BigEndianUnicode.GetBytes(password)); + hash.AppendData("Mighty Aphrodite"u8); + hash.AppendData(body); + return hash.GetHashAndReset(); + } + + private sealed class Reader(byte[] data) + { + public int Position { get; private set; } + public int Int() => BinaryPrimitives.ReadInt32BigEndian(Bytes(4)); + public int Count() { var n = Int(); return n is >= 0 and <= 100000 ? n : throw new InvalidDataException("条目数量无效。"); } + public string Utf() { var n = BinaryPrimitives.ReadUInt16BigEndian(Bytes(2)); return Encoding.UTF8.GetString(Bytes(n)); } + public void Skip(int n) => Bytes(n); + public byte[] Bytes(int n) + { + if (n < 0 || n > data.Length - Position) throw new InvalidDataException("JKS 文件被截断或长度无效。"); + var result = data.AsSpan(Position, n).ToArray(); Position += n; return result; + } + } +} diff --git a/src/SHOU.Launcher.Core/Java/MacJava8RuntimeInstaller.cs b/src/SHOU.Launcher.Core/Java/MacJava8RuntimeInstaller.cs new file mode 100644 index 00000000..0b421369 --- /dev/null +++ b/src/SHOU.Launcher.Core/Java/MacJava8RuntimeInstaller.cs @@ -0,0 +1,134 @@ +using System.Formats.Tar; +using System.IO.Compression; +using System.Security.Cryptography; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Java; + +public sealed record MacJava8Package(string Url, string Sha256, long Size); + +/// Native Java 8 for the macOS ARM64 gap in Mojang's legacy runtime catalog. All other requests pass through. +public sealed class MacJava8RuntimeInstaller(IJavaRuntimeInstaller fallback, IVerifiedDownloader downloader, + IJavaDiscovery discovery, string managedRoot, string cacheRoot, MacJava8Package? package = null) : IJavaRuntimeInstaller +{ + public static MacJava8Package OfficialPackage { get; } = new( + "https://cdn.azul.com/zulu/bin/zulu8.98.0.111-ca-jdk8.0.512-macosx_aarch64.tar.gz", + "523a350b96563e1ff406cf3c55e0211a5816b482a67b5f88a5ea9ba799fd32be", 103741261); + private const string StateFile = ".shou-java8.json"; + private sealed record EntryHash(string Path, string Sha256, long Size); + private sealed record EntryLink(string Path, string Target, bool HardLink); + private sealed record RuntimeState(string ArchiveSha256, string JavaPath, EntryHash[] Files, EntryLink[] Links); + + public async Task InstallAsync(JavaRuntimeRequest request, IProgress? progress = null, CancellationToken cancellationToken = default) + { + if (request.OS != LauncherOS.MacOS || request.Architecture != RuntimeArchitecture.Arm64 || request.MajorVersion != 8 || request.Component != "jre-legacy" || request.CatalogUri is not null) + return await fallback.InstallAsync(request, progress, cancellationToken).ConfigureAwait(false); + var source = package ?? OfficialPackage; + if (!Uri.TryCreate(source.Url, UriKind.Absolute, out var uri) || uri.Scheme != "https" || uri.Host != "cdn.azul.com" || + source.Sha256.Length != 64 || source.Sha256.Any(c => !Uri.IsHexDigit(c)) || source.Size is <= 0 or > 512L * 1024 * 1024) + throw new InvalidDataException("Mac Java 8 官方归档身份无效。"); + var root = Path.TrimEndingDirectorySeparator(Path.GetFullPath(managedRoot)); + var requested = Path.TrimEndingDirectorySeparator(Path.GetFullPath(request.InstallRoot)); + if (requested != root && !requested.StartsWith(root + Path.DirectorySeparatorChar, StringComparison.Ordinal)) throw new InvalidDataException("Java 安装目录超出管理范围。"); + SafePath.RejectLinks(requested); SafePath.RejectLinks(cacheRoot); + var final = SafePath.Within(requested, "java8-macos-arm64/" + source.Sha256); + var archive = SafePath.Within(cacheRoot, "macos-java8/" + source.Sha256 + ".tar.gz"); + Directory.CreateDirectory(Path.GetDirectoryName(final)!); Directory.CreateDirectory(Path.GetDirectoryName(archive)!); + SafePath.RejectLinks(final); SafePath.RejectLinks(archive); SafePath.RejectLinks(final + ".lock"); + await using var lease = new FileStream(final + ".lock", FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None); + await downloader.DownloadAsync(new([uri], archive, Sha256: source.Sha256, Size: source.Size), progress, cancellationToken).ConfigureAwait(false); + await using (var input = File.OpenRead(archive)) + if (input.Length != source.Size || !Convert.ToHexStringLower(await SHA256.HashDataAsync(input, cancellationToken)).Equals(source.Sha256, StringComparison.OrdinalIgnoreCase)) + throw new InvalidDataException("Mac Java 8 归档校验失败。"); + if (Directory.Exists(final)) + { + var statePath = Path.Combine(final, StateFile); SafePath.RejectLinks(statePath); + var state = JsonSerializer.Deserialize(await File.ReadAllTextAsync(statePath, cancellationToken)) ?? throw new InvalidDataException("Mac Java 8 安装记录缺失。"); + if (state.ArchiveSha256 != source.Sha256) throw new InvalidDataException("Mac Java 8 安装记录与官方归档不符。"); + foreach (var item in state.Files) + { + var file = SafePath.Within(final, item.Path); SafePath.RejectLinks(file); await using var input = File.OpenRead(file); + if (input.Length != item.Size || Convert.ToHexStringLower(await SHA256.HashDataAsync(input, cancellationToken)) != item.Sha256) + throw new InvalidDataException("Mac Java 8 管理副本已变化,未启动游戏。"); + } + foreach (var link in state.Links.Where(l => !l.HardLink)) + { + var file = SafePath.Within(final, link.Path); _ = RelativeTarget(final, file, link.Target, false); + if (new FileInfo(file).LinkTarget != link.Target && new DirectoryInfo(file).LinkTarget != link.Target) throw new InvalidDataException("Mac Java 8 链接已变化。"); + } + return await ProbeAsync(SafePath.Within(final, state.JavaPath), cancellationToken).ConfigureAwait(false); + } + var staging = SafePath.Within(requested, ".staging/mac-java8-" + Guid.NewGuid().ToString("N")); Directory.CreateDirectory(staging); + try + { + var files = new List(); var links = new List(); var names = new HashSet(StringComparer.Ordinal); long total = 0; + await using (var input = File.OpenRead(archive)) + await using (var gzip = new GZipStream(input, CompressionMode.Decompress)) + await using (var tar = new TarReader(gzip)) + { + while (await tar.GetNextEntryAsync(cancellationToken: cancellationToken).ConfigureAwait(false) is { } entry) + { + var name = entry.Name.Replace('\\', '/').TrimEnd('/'); + if (name is "" or ".") continue; + var path = SafePath.Within(staging, name); + if (name == StateFile || !names.Add(name) || names.Count > 20000) throw new InvalidDataException("Java 归档条目重复或过多。"); + switch (entry.EntryType) + { + case TarEntryType.Directory: Directory.CreateDirectory(path); break; + case TarEntryType.RegularFile: + case TarEntryType.V7RegularFile: + if (entry.Length < 0 || (total = checked(total + entry.Length)) > 1536L * 1024 * 1024) throw new InvalidDataException("Java 归档超过解包预算。"); + Directory.CreateDirectory(Path.GetDirectoryName(path)!); + await using (var output = new FileStream(path, FileMode.CreateNew, FileAccess.Write, FileShare.None, 65536, true)) + if (entry.DataStream is { } data) await data.CopyToAsync(output, cancellationToken).ConfigureAwait(false); + if (!OperatingSystem.IsWindows()) File.SetUnixFileMode(path, entry.Mode); + await using (var stream = File.OpenRead(path)) files.Add(new(name, Convert.ToHexStringLower(await SHA256.HashDataAsync(stream, cancellationToken)), stream.Length)); + break; + case TarEntryType.SymbolicLink: + case TarEntryType.HardLink: + _ = RelativeTarget(staging, path, entry.LinkName, entry.EntryType == TarEntryType.HardLink); + links.Add(new(name, entry.LinkName, entry.EntryType == TarEntryType.HardLink)); break; + default: throw new InvalidDataException("Java 归档含不支持的特殊条目。"); + } + } + } + foreach (var link in links) + { + cancellationToken.ThrowIfCancellationRequested(); + if (names.Any(n => n.StartsWith(link.Path + "/", StringComparison.Ordinal))) throw new InvalidDataException("Java 归档试图通过链接写入子文件。"); + var path = SafePath.Within(staging, link.Path); var target = RelativeTarget(staging, path, link.Target, link.HardLink); Directory.CreateDirectory(Path.GetDirectoryName(path)!); + if (link.HardLink) + { + SafePath.RejectLinks(target); File.Copy(target, path); + await using var input = File.OpenRead(path); files.Add(new(link.Path, Convert.ToHexStringLower(await SHA256.HashDataAsync(input, cancellationToken)), input.Length)); + } + else if (Directory.Exists(target)) Directory.CreateSymbolicLink(path, link.Target); + else File.CreateSymbolicLink(path, link.Target); + } + var java = files.Select(f => f.Path).SingleOrDefault(p => p.EndsWith("/Contents/Home/bin/java", StringComparison.Ordinal) || p == "Contents/Home/bin/java") + ?? throw new InvalidDataException("Java 归档缺少唯一 JDK 入口。"); + _ = await ProbeAsync(SafePath.Within(staging, java), cancellationToken).ConfigureAwait(false); + await File.WriteAllTextAsync(Path.Combine(staging, StateFile), JsonSerializer.Serialize(new RuntimeState(source.Sha256, java, files.ToArray(), links.ToArray())), cancellationToken).ConfigureAwait(false); + cancellationToken.ThrowIfCancellationRequested(); Directory.Move(staging, final); + return await ProbeAsync(SafePath.Within(final, java), cancellationToken).ConfigureAwait(false); + } + finally { if (Directory.Exists(staging)) Directory.Delete(staging, true); } + } + private async Task ProbeAsync(string path, CancellationToken ct) + { + var result = await discovery.ProbeAsync(path, ct).ConfigureAwait(false); + if (!result.IsUsable || result.MajorVersion != 8 || result.RuntimeArchitecture != RuntimeArchitecture.Arm64) + throw new PlatformNotSupportedException("官方 Mac Java 8 未通过版本/ARM64 探测,未选择该运行时。"); + return result with { Source = "managed:Azul8" }; + } + private static string RelativeTarget(string root, string link, string target, bool hardLink) + { + if (string.IsNullOrWhiteSpace(target) || Path.IsPathFullyQualified(target)) throw new InvalidDataException("Java 归档含绝对链接。"); + var destination = Path.GetFullPath(Path.Combine(hardLink ? root : Path.GetDirectoryName(link)!, target)); + if (!destination.StartsWith(Path.TrimEndingDirectorySeparator(Path.GetFullPath(root)) + Path.DirectorySeparatorChar, StringComparison.Ordinal)) + throw new InvalidDataException("Java 归档链接超出管理目录。"); + return destination; + } +} diff --git a/src/SHOU.Launcher.Core/Java/MojangJavaRuntimeInstaller.cs b/src/SHOU.Launcher.Core/Java/MojangJavaRuntimeInstaller.cs new file mode 100644 index 00000000..4e4af465 --- /dev/null +++ b/src/SHOU.Launcher.Core/Java/MojangJavaRuntimeInstaller.cs @@ -0,0 +1,264 @@ +using System.Security.Cryptography; +using System.Text.Json; +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Java; + +public sealed class MojangJavaRuntimeInstaller(IVerifiedDownloader downloader, IJavaDiscovery discovery, + string managedRuntimeRoot, string metadataCacheDirectory) : IJavaRuntimeInstaller +{ + public static readonly Uri OfficialCatalog = new("https://piston-meta.mojang.com/v1/products/java-runtime/2ec0cc96c44e5a76b9c8b7c39df7210883d12871/all.json"); + public const string StateFileName = ".shou-runtime.json"; + + public async Task InstallAsync(JavaRuntimeRequest request, IProgress? progress = null, + CancellationToken cancellationToken = default) + { + var component = Identifier(request.Component); + if (request.MajorVersion < 1) throw new ArgumentException("A metadata Java major is required."); + if (!Path.IsPathFullyQualified(request.InstallRoot)) throw new ArgumentException("The runtime installation root must be absolute."); + var root = Contained(managedRuntimeRoot, request.InstallRoot, allowAbsolute: true); + var platform = PlatformKey(request.OS, request.Architecture); + var catalogUri = HttpUri(request.CatalogUri ?? OfficialCatalog); + Directory.CreateDirectory(root); + var lockPath = Contained(root, ".locks/" + component + "-" + platform + ".lock"); + Directory.CreateDirectory(Path.GetDirectoryName(lockPath)!); + RejectLink(lockPath); + await using var lease = new FileStream(lockPath, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None); + cancellationToken.ThrowIfCancellationRequested(); + + var catalogName = Convert.ToHexString(SHA256.HashData(System.Text.Encoding.UTF8.GetBytes(catalogUri.AbsoluteUri))).ToLowerInvariant(); + var catalogPath = Contained(metadataCacheDirectory, catalogName + ".json"); + // Unhashed metadata is fetched fresh by IVerifiedDownloader and must pass the typed checks below. + await downloader.DownloadAsync(new DownloadRequest([catalogUri], catalogPath, AllowResume: false), progress, cancellationToken); + var catalog = await ReadObjectAsync(catalogPath, cancellationToken); + if (catalog[platform]?[component] is not JsonArray candidates) + throw new PlatformNotSupportedException($"Mojang 没有提供 {platform}/{component}。"); + var entry = candidates.OfType().FirstOrDefault(candidate => + VersionMajor((string?)candidate["version"]?["name"]) == request.MajorVersion) + ?? throw new PlatformNotSupportedException($"Mojang 没有提供 {platform}/{component} 的 Java {request.MajorVersion}。"); + var manifestDescriptor = entry["manifest"] as JsonObject ?? throw new InvalidDataException("Runtime manifest descriptor is missing."); + var manifestSha1 = Hash((string?)manifestDescriptor["sha1"]); + var manifestSize = (long?)manifestDescriptor["size"] ?? throw new InvalidDataException("Runtime manifest size is missing."); + if (manifestSize is <= 0 or > 33554432) throw new InvalidDataException("Runtime manifest size exceeds its metadata budget."); + var manifestUri = HttpUri(new Uri((string?)manifestDescriptor["url"] ?? throw new InvalidDataException("Runtime manifest URL is missing."))); + var manifestPath = Contained(metadataCacheDirectory, "manifests/" + manifestSha1 + ".json"); + await downloader.DownloadAsync(new DownloadRequest([manifestUri], manifestPath, Sha1: manifestSha1, Size: manifestSize), progress, cancellationToken); + var manifest = await ReadObjectAsync(manifestPath, cancellationToken); + var files = manifest["files"] as JsonObject ?? throw new InvalidDataException("Runtime manifest has no files."); + if (files.Count is 0 or > 100000) throw new InvalidDataException("Runtime file count is invalid."); + foreach (var name in files.Select(pair => pair.Key)) + { + var first = name.Replace('\\', '/').Split('/')[0]; + if (first.Equals(".staging", StringComparison.OrdinalIgnoreCase) || first.Equals(".locks", StringComparison.OrdinalIgnoreCase) + || first.StartsWith(StateFileName, StringComparison.OrdinalIgnoreCase)) + throw new InvalidDataException("Runtime manifest collides with reserved installer state."); + } + var final = Contained(root, component + "/" + platform + "/" + manifestSha1); + var javaName = request.OS == LauncherOS.Windows ? "java.exe" : "java"; + var javaEntry = files.FirstOrDefault(pair => pair.Value?["type"]?.GetValue() == "file" + && (pair.Key == "bin/" + javaName || pair.Key.EndsWith("/bin/" + javaName, StringComparison.Ordinal))).Key; + if (javaEntry is null) throw new InvalidDataException("Runtime manifest does not contain a Java executable."); + + if (Directory.Exists(final)) + { + await VerifyExistingAsync(final, files, cancellationToken); + var existing = await ProbeRequiredAsync(Contained(final, javaEntry), request, cancellationToken); + await WriteStateAsync(final, true, manifestSha1, javaEntry, cancellationToken); + return existing with { Source = "managed:Mojang", ValidatedManifestSha1 = manifestSha1 }; + } + + var staging = Contained(root, ".staging/" + component + "-" + Guid.NewGuid().ToString("N")); + Directory.CreateDirectory(staging); + await WriteStateAsync(staging, false, manifestSha1, javaEntry, cancellationToken); + long total = 0; + var regularFiles = new List<(string Name, JsonObject Descriptor)>(); + var links = new List<(string Name, string Target)>(); + // Validate every manifest path and entry before downloading bytes. + foreach (var pair in files) + { + cancellationToken.ThrowIfCancellationRequested(); + var path = Contained(staging, pair.Key); + if (pair.Value is not JsonObject descriptor) throw new InvalidDataException("Invalid runtime file entry."); + switch ((string?)descriptor["type"]) + { + case "directory": Directory.CreateDirectory(path); break; + case "file": + var raw = Raw(descriptor); + var size = (long?)raw["size"] ?? throw new InvalidDataException("Runtime file size missing."); + if (size < 0 || (total = checked(total + size)) > 4L * 1024 * 1024 * 1024) + throw new InvalidDataException("Runtime download exceeds its size budget."); + Hash((string?)raw["sha1"]); + HttpUri(new Uri((string?)raw["url"] ?? throw new InvalidDataException("Runtime file URL missing."))); + regularFiles.Add((pair.Key, descriptor)); + break; + case "link": + var target = (string?)descriptor["target"] ?? throw new InvalidDataException("Runtime link target missing."); + LinkTarget(staging, path, target); + links.Add((pair.Key, target)); + break; + default: throw new InvalidDataException("Unsupported runtime manifest entry type."); + } + } + await Parallel.ForEachAsync(regularFiles, new ParallelOptions { MaxDegreeOfParallelism = DownloadDefaults.Connections, CancellationToken = cancellationToken }, + async (file, token) => + { + var raw = Raw(file.Descriptor); + var path = Contained(staging, file.Name); + await downloader.DownloadAsync(new DownloadRequest([HttpUri(new Uri(raw["url"]!.GetValue()))], path, + Sha1: Hash((string?)raw["sha1"]), Size: (long?)raw["size"]), progress, token); + if (!OperatingSystem.IsWindows()) File.SetUnixFileMode(path, + (bool?)file.Descriptor["executable"] == true + ? UnixFileMode.UserRead | UnixFileMode.UserWrite | UnixFileMode.UserExecute | UnixFileMode.GroupRead | UnixFileMode.GroupExecute | UnixFileMode.OtherRead | UnixFileMode.OtherExecute + : UnixFileMode.UserRead | UnixFileMode.UserWrite | UnixFileMode.GroupRead | UnixFileMode.OtherRead); + }); + while (links.Count > 0) + { + var created = 0; + foreach (var link in links.ToArray()) + { + cancellationToken.ThrowIfCancellationRequested(); + var path = Contained(staging, link.Name); + var target = LinkTarget(staging, path, link.Target); + if (!File.Exists(target) && !Directory.Exists(target)) continue; + Directory.CreateDirectory(Path.GetDirectoryName(path)!); + if (Directory.Exists(target)) Directory.CreateSymbolicLink(path, link.Target); + else File.CreateSymbolicLink(path, link.Target); + Contained(staging, link.Name); // Resolve the created link and recheck its boundary. + links.Remove(link); created++; + } + if (created == 0) throw new InvalidDataException("Runtime contains dangling or cyclic links."); + } + progress?.Report(new TransferProgress(component, "Probing", total, total, platform)); + await ProbeRequiredAsync(Contained(staging, javaEntry), request, cancellationToken); + Directory.CreateDirectory(Path.GetDirectoryName(final)!); + await IO.DirectoryPublication.PublishAsync(staging, final, cancellationToken); + var installed = await ProbeRequiredAsync(Contained(final, javaEntry), request, cancellationToken); + await WriteStateAsync(final, true, manifestSha1, javaEntry, cancellationToken); + progress?.Report(new TransferProgress(component, "Completed", total, total, platform)); + return installed with { Source = "managed:Mojang", ValidatedManifestSha1 = manifestSha1 }; + } + + public static bool IsIncompleteRuntime(string directory) + { + var path = Path.Combine(directory, StateFileName); + try + { + var info = new FileInfo(path); + if (info.LinkTarget is not null) return true; + if (!info.Exists) return false; + if (info.Length > 65536) return true; + using var document = JsonDocument.Parse(File.ReadAllText(path)); + return !document.RootElement.TryGetProperty("complete", out var complete) || complete.ValueKind != JsonValueKind.True; + } + catch (Exception ex) when (ex is IOException or JsonException or UnauthorizedAccessException) { return true; } + } + + private async Task ProbeRequiredAsync(string executable, JavaRuntimeRequest request, CancellationToken ct) + { + var java = await discovery.ProbeAsync(executable, ct); + if (!java.IsUsable || java.MajorVersion != request.MajorVersion || java.RuntimeArchitecture != request.Architecture) + throw new InvalidDataException("安装后的 Java 未通过所需主版本与架构探测;没有登记为可用。" + (java.ProbeError ?? "")); + return java; + } + + private static async Task VerifyExistingAsync(string root, JsonObject files, CancellationToken ct) + { + foreach (var pair in files) + { + var path = Contained(root, pair.Key); + if ((string?)pair.Value?["type"] == "file") + { + RejectLink(Path.Combine(root, pair.Key.Replace('/', Path.DirectorySeparatorChar))); + var raw = Raw(pair.Value!.AsObject()); + var info = new FileInfo(path); + if (!info.Exists || info.Length != (long?)raw["size"]) throw new InvalidDataException("Existing runtime is incomplete; files were preserved."); + await using var input = File.OpenRead(path); + if (!Convert.ToHexString(await SHA1.HashDataAsync(input, ct)).Equals(Hash((string?)raw["sha1"]), StringComparison.OrdinalIgnoreCase)) + throw new InvalidDataException("Existing runtime hash mismatch; files were preserved."); + } + else if ((string?)pair.Value?["type"] == "link") + { + var originalPath = Path.Combine(root, pair.Key.Replace('/', Path.DirectorySeparatorChar)); + var info = new FileInfo(originalPath); + if (info.LinkTarget != (string?)pair.Value?["target"]) throw new InvalidDataException("Existing runtime link differs from manifest."); + } + else if ((string?)pair.Value?["type"] == "directory" && !Directory.Exists(path)) + throw new InvalidDataException("Existing runtime directory is missing."); + else if ((string?)pair.Value?["type"] is not ("directory" or "link")) + throw new InvalidDataException("Unsupported existing runtime entry type."); + } + } + + private static JsonObject Raw(JsonObject descriptor) => descriptor["downloads"]?["raw"] as JsonObject + ?? throw new InvalidDataException("Runtime file has no raw download descriptor."); + private static async Task ReadObjectAsync(string path, CancellationToken ct) + { + if (new FileInfo(path).Length > 33554432) throw new InvalidDataException("Runtime metadata exceeds its read budget."); + return JsonNode.Parse(await File.ReadAllTextAsync(path, ct)) as JsonObject ?? throw new InvalidDataException("Runtime metadata is not an object."); + } + private static async Task WriteStateAsync(string root, bool complete, string manifest, string java, CancellationToken ct) + { + var path = Contained(root, StateFileName); + var temp = Contained(root, StateFileName + ".tmp-" + Guid.NewGuid().ToString("N")); + await File.WriteAllTextAsync(temp, JsonSerializer.Serialize(new { complete, manifestSha1 = manifest, javaExecutable = java }), ct); + File.Move(temp, path, true); + } + public static string PlatformKey(LauncherOS os, RuntimeArchitecture architecture) => (os, architecture) switch + { + (LauncherOS.MacOS, RuntimeArchitecture.Arm64) => "mac-os-arm64", + (LauncherOS.MacOS, RuntimeArchitecture.X64) => "mac-os", + (LauncherOS.Windows, RuntimeArchitecture.X86) => "windows-x86", + (LauncherOS.Windows, RuntimeArchitecture.X64) => "windows-x64", + (LauncherOS.Windows, RuntimeArchitecture.Arm64) => "windows-arm64", + (LauncherOS.Linux, RuntimeArchitecture.X86) => "linux-i386", + (LauncherOS.Linux, RuntimeArchitecture.X64) => "linux", + (LauncherOS.Linux, RuntimeArchitecture.Arm64) => "linux-arm64", + _ => throw new PlatformNotSupportedException("No Mojang runtime catalog platform mapping is defined.") + }; + private static string Identifier(string value) + { + if (string.IsNullOrWhiteSpace(value) || value.Length > 160 || value is "." or ".." + || value.Any(c => !char.IsAsciiLetterOrDigit(c) && c is not '.' and not '-' and not '_')) throw new ArgumentException("Invalid runtime component."); + return value; + } + private static string Hash(string? value) + { + if (value?.Length != 40 || value.Any(c => !Uri.IsHexDigit(c))) throw new InvalidDataException("Runtime SHA-1 is invalid."); + return value.ToLowerInvariant(); + } + private static Uri HttpUri(Uri uri) + { + if (!uri.IsAbsoluteUri || uri.Scheme is not ("http" or "https") || !string.IsNullOrEmpty(uri.UserInfo)) throw new InvalidDataException("Runtime URL must be HTTP(S) without credentials."); + return uri; + } + private static int VersionMajor(string? version) + { + var parts = (version ?? "").Split('.', '-', '+', '_'); + return int.TryParse(parts[0] == "1" && parts.Length > 1 ? parts[1] : parts[0], out var major) ? major : 0; + } + private static string Contained(string root, string path, bool allowAbsolute = false) + { + if (!Path.IsPathFullyQualified(root)) throw new ArgumentException("Runtime roots must be absolute."); + root = Canonical(root); + if (!allowAbsolute && (string.IsNullOrWhiteSpace(path) || Path.IsPathRooted(path) || path.Contains(':') || path.Contains('\0') + || path.Replace('\\', '/').Split('/').Any(part => part is "." or ".."))) throw new InvalidDataException("Unsafe runtime manifest path."); + var result = Canonical(Path.IsPathFullyQualified(path) && allowAbsolute ? path : Path.Combine(root, path.Replace('/', Path.DirectorySeparatorChar))); + if (!JavaPathBoundary.ContainsCanonical(root, result)) + throw new InvalidDataException("Runtime path escapes the application-managed installation root."); + return result; + } + private static string Canonical(string path) + { + return JavaPathBoundary.Canonical(path); + } + private static string LinkTarget(string root, string link, string target) + { + if (string.IsNullOrWhiteSpace(target) || Path.IsPathRooted(target) || target.Contains(':') || target.Contains('\0')) throw new InvalidDataException("Unsafe runtime link target."); + return Contained(root, Path.GetFullPath(Path.Combine(Path.GetDirectoryName(link)!, target.Replace('/', Path.DirectorySeparatorChar))), allowAbsolute: true); + } + private static void RejectLink(string path) + { + if (new FileInfo(path).LinkTarget is not null) throw new IOException("Runtime lock cannot be a symbolic link."); + } +} diff --git a/src/SHOU.Launcher.Core/Java/Pkcs12TrustReader.cs b/src/SHOU.Launcher.Core/Java/Pkcs12TrustReader.cs new file mode 100644 index 00000000..d9ce21b9 --- /dev/null +++ b/src/SHOU.Launcher.Core/Java/Pkcs12TrustReader.cs @@ -0,0 +1,131 @@ +using System.Formats.Asn1; +using System.Security.Cryptography; +using System.Security.Cryptography.Pkcs; +using System.Security.Cryptography.X509Certificates; + +namespace SHOU.Launcher.Core.Java; + +/// Reads bounded public-certificate bags in memory, without importing a PFX into an OS key store. +public static class Pkcs12TrustReader +{ + private const string Data = "1.2.840.113549.1.7.1"; + private const string EncryptedData = "1.2.840.113549.1.7.6"; + private const string CertificateBag = "1.2.840.113549.1.12.10.1.3"; + private static readonly Asn1Tag Explicit = new(TagClass.ContextSpecific, 0, true); + + public static IReadOnlyList ReadFingerprints(byte[] data, bool allowUnprotectedCertificateBags = false) + { + if (data.Length is < 1 or > 33554432) throw new InvalidDataException("Invalid PKCS12 trust-store size."); + ValidateWorkBudget(data, allowUnprotectedCertificateBags); + var info = Pkcs12Info.Decode(data, out var consumed); + var unprotected = allowUnprotectedCertificateBags && info.IntegrityMode == Pkcs12IntegrityMode.None; + if (consumed != data.Length || !unprotected && (info.IntegrityMode != Pkcs12IntegrityMode.Password || !info.VerifyMac("changeit"))) + throw new InvalidDataException("PKCS12 integrity or default password could not be verified."); + var fingerprints = new List(); + foreach (var safe in info.AuthenticatedSafe) + { + if (!unprotected && safe.ConfidentialityMode == Pkcs12ConfidentialityMode.Password) safe.Decrypt("changeit"); + if (safe.ConfidentialityMode != Pkcs12ConfidentialityMode.None) + throw new InvalidDataException("Unsupported PKCS12 confidentiality mode."); + foreach (var bag in safe.GetBags()) + { + if (fingerprints.Count >= 10000 || bag is not Pkcs12CertBag certificate || !certificate.IsX509Certificate) + throw new InvalidDataException("PKCS12 private keys, unknown/nested bags or excessive certificates are refused."); + // A CertBag wraps the DER certificate in an ASN.1 OCTET STRING. + var encoded = Reader(certificate.EncodedCertificate); + var der = encoded.ReadOctetString(); encoded.ThrowIfNotEmpty(); + using var parsed = X509CertificateLoader.LoadCertificate(der); + fingerprints.Add(parsed.GetCertHashString(HashAlgorithmName.SHA256)); + } + } + return fingerprints; + } + + // Bound declared KDF work before invoking the official crypto library. This parses structure/limits only; + // all MAC, password derivation and decryption remain System.Security.Cryptography.Pkcs operations. + private static void ValidateWorkBudget(byte[] data, bool allowUnprotectedCertificateBags) + { + long work = 0; + var outer = Reader(data); var pfx = outer.ReadSequence(); outer.ThrowIfNotEmpty(); + if (pfx.ReadInteger() != 3) throw new InvalidDataException("Unsupported PKCS12 version."); + var content = pfx.ReadSequence(); + if (content.ReadObjectIdentifier() != Data) throw new InvalidDataException("Password-authenticated PKCS12 is required."); + var wrapper = content.ReadSequence(Explicit); var safeBytes = wrapper.ReadOctetString(); + wrapper.ThrowIfNotEmpty(); content.ThrowIfNotEmpty(); + var hasMac = pfx.HasData; + if (!hasMac && !allowUnprotectedCertificateBags) throw new InvalidDataException("PKCS12 MAC is required."); + if (hasMac) + { + var mac = pfx.ReadSequence(); _ = mac.ReadSequence(); + Salt(mac); Iterations(mac.HasData ? mac.ReadInteger() : 1); mac.ThrowIfNotEmpty(); + } + pfx.ThrowIfNotEmpty(); + var authenticated = Reader(safeBytes); var safes = authenticated.ReadSequence(); authenticated.ThrowIfNotEmpty(); + var safeCount = 0; + while (safes.HasData) + { + if (++safeCount > 4096) throw new InvalidDataException("PKCS12 safe-content count exceeds its budget."); + var item = safes.ReadSequence(); var oid = item.ReadObjectIdentifier(); + var value = item.ReadSequence(Explicit); item.ThrowIfNotEmpty(); + if (oid == Data) + { + var encoded = value.ReadOctetString(); value.ThrowIfNotEmpty(); + var bagReader = Reader(encoded); var bags = bagReader.ReadSequence(); bagReader.ThrowIfNotEmpty(); + var count = 0; + while (bags.HasData) + { + if (++count > 10000) throw new InvalidDataException("PKCS12 bag count exceeds its budget."); + var bag = bags.ReadSequence(); + if (bag.ReadObjectIdentifier() != CertificateBag) + throw new InvalidDataException("PKCS12 non-certificate bag is refused before import."); + // The official decoder validates the remaining certificate/attribute structure. + } + } + else if (oid == EncryptedData) + { + if (!hasMac) throw new InvalidDataException("Unprotected PKCS12 may contain only plaintext public certificates."); + var encrypted = value.ReadSequence(); value.ThrowIfNotEmpty(); + var version = encrypted.ReadInteger(); + if (version != 0) throw new InvalidDataException("Unsupported PKCS12 encrypted content version."); + var encryptedContent = encrypted.ReadSequence(); + if (encryptedContent.ReadObjectIdentifier() != Data) throw new InvalidDataException("Unsupported PKCS12 encrypted payload."); + Algorithm(encryptedContent.ReadSequence()); + } + else throw new InvalidDataException("Unsupported PKCS12 safe-content type."); + } + + void Iterations(System.Numerics.BigInteger count) + { + if (count < 1 || count > 600000 || (work += (long)count) > 1000000) + throw new InvalidDataException("PKCS12 declared KDF work exceeds its budget."); + } + void Salt(AsnReader reader) + { + if (reader.ReadOctetString().Length > 1024) throw new InvalidDataException("PKCS12 salt exceeds its budget."); + } + void Algorithm(AsnReader algorithm) + { + var oid = algorithm.ReadObjectIdentifier(); var parameters = algorithm.ReadSequence(); algorithm.ThrowIfNotEmpty(); + if (oid == "1.2.840.113549.1.5.13") // PBES2; the library validates the selected cipher and PRF. + { + var kdf = parameters.ReadSequence(); + if (kdf.ReadObjectIdentifier() != "1.2.840.113549.1.5.12") throw new InvalidDataException("Unsupported PKCS12 KDF."); + var pbkdf = kdf.ReadSequence(); kdf.ThrowIfNotEmpty(); Salt(pbkdf); Iterations(pbkdf.ReadInteger()); + if (pbkdf.HasData && pbkdf.PeekTag().HasSameClassAndValue(Asn1Tag.Integer)) + { + var length = pbkdf.ReadInteger(); + if (length < 1 || length > 64) throw new InvalidDataException("PKCS12 derived-key length exceeds its budget."); + } + if (pbkdf.HasData) _ = pbkdf.ReadSequence(); + pbkdf.ThrowIfNotEmpty(); _ = parameters.ReadSequence(); parameters.ThrowIfNotEmpty(); + } + else if (oid.StartsWith("1.2.840.113549.1.12.1.", StringComparison.Ordinal) + && oid[^1] is >= '1' and <= '6' && oid.Length == "1.2.840.113549.1.12.1.1".Length) + { + Salt(parameters); Iterations(parameters.ReadInteger()); parameters.ThrowIfNotEmpty(); + } + else throw new InvalidDataException("Unsupported PKCS12 password encryption."); + } + } + private static AsnReader Reader(ReadOnlyMemory data) => new(data, AsnEncodingRules.BER); +} diff --git a/src/SHOU.Launcher.Core/LauncherService.AccountAppearance.cs b/src/SHOU.Launcher.Core/LauncherService.AccountAppearance.cs new file mode 100644 index 00000000..542465a6 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.AccountAppearance.cs @@ -0,0 +1,112 @@ +using System.Collections.Concurrent; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Authentication; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IAccountAppearanceService, IAccountAppearanceMutationService +{ + private readonly ConcurrentDictionary accountAppearances = new(StringComparer.Ordinal); + private readonly Func? accountAppearanceTransportFactory; + private readonly ConcurrentDictionary appearanceAuthenticatedTokens = new(StringComparer.Ordinal); + public async Task ChangeAccountAppearanceAsync(string accountId, AccountAppearanceChange change, CancellationToken cancellationToken = default) + { + if (change.Png.Length > AccountAppearancePng.MaximumPngBytes) throw new InvalidDataException("皮肤 PNG 超过 2 MiB 上限。"); + change = change with { Png = change.Png.ToArray() }; AccountAppearanceWriteResult? result = null; string? backup = null; + await ExecuteAsync("Ready", async ct => + { + var account = FindAccount(accountId); + if (Snapshot.SelectedAccountId != accountId) throw new InvalidOperationException("当前角色已改变,请重新选择外观。"); + if (account.Kind != AccountKind.Microsoft || !sessions.TryGetValue(accountId, out var session) || !AccountIdentity.Matches(account, session.Profile)) + throw new InvalidOperationException("请先登录此 Microsoft 角色。"); + using var client = CreateAccountAppearanceClient(); + result = await new AccountAppearanceClient(client).ChangeMicrosoftAsync(account, session.AccessToken, change, async (current, token) => + { + if (Snapshot.SelectedAccountId != accountId || !AccountIdentity.Matches(FindAccount(accountId), account)) throw new InvalidOperationException("当前角色已改变,未发送在线修改。"); + backup = await new AccountAppearanceStore(Paths.LocalDataDirectory).BackupOnlineAsync(account, current, token).ConfigureAwait(false); + }, ct).ConfigureAwait(false); + accountAppearances.TryRemove(accountId, out _); + if (result.Appearance is { } verified && AccountIdentity.Matches(FindAccount(accountId), account)) accountAppearances[accountId] = verified; + }, cancellationToken).ConfigureAwait(false); + return result! with { BackupDirectory = backup is null ? null : Path.GetDirectoryName(backup) }; + } + public async Task GetAccountAppearanceAsync(string accountId, bool refreshRemote = false, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); var account = FindAccount(accountId); + if (account.Kind == AccountKind.Offline) return await new AccountAppearanceStore(Paths.LocalDataDirectory).LoadOfflineAsync(account, cancellationToken).ConfigureAwait(false); + if (!refreshRemote) return accountAppearances.TryGetValue(accountId, out var cached) ? cached : AccountAppearanceClient.Unread(account); + using var client = CreateAccountAppearanceClient(); + var reader = new AccountAppearanceClient(client); AccountAppearance result; + if (account.Kind == AccountKind.Microsoft) + { + var session = await EnsureAppearanceSessionAsync(accountId, null, cancellationToken).ConfigureAwait(false); + try { result = await reader.ReadMicrosoftAsync(account, session.AccessToken, cancellationToken).ConfigureAwait(false); } + catch (AuthenticationException ex) when (ex.Code == "appearance_unauthorized") + { + // Retry only this read after one serialized refresh, never replay an appearance mutation. + session = await EnsureAppearanceSessionAsync(accountId, session.AccessToken, cancellationToken).ConfigureAwait(false); + result = await reader.ReadMicrosoftAsync(FindAccount(accountId), session.AccessToken, cancellationToken).ConfigureAwait(false); + } + } + else + { + _ = await EnsureAppearanceSessionAsync(accountId, null, cancellationToken).ConfigureAwait(false); + result = await reader.ReadYggdrasilAsync(FindAccount(accountId), cancellationToken).ConfigureAwait(false); + } + cancellationToken.ThrowIfCancellationRequested(); + if (!AccountIdentity.Matches(FindAccount(accountId), account)) throw new InvalidOperationException("读取期间账户来源已改变,结果未应用。"); + accountAppearances[accountId] = result; + while (accountAppearances.Count > 8) + { + var otherAccount = accountAppearances.Keys.FirstOrDefault(id => id != accountId); + if (otherAccount is null) break; + accountAppearances.TryRemove(otherAccount, out _); + } + return result; + } + private HttpClient CreateAccountAppearanceClient() => accountAppearanceTransportFactory?.Invoke() + ?? new(new ConfigurableNetworkHandler(network, allowAutoRedirect: false)); + + private static string AppearanceTokenHash(string accessToken) + => Convert.ToHexStringLower(System.Security.Cryptography.SHA256.HashData(System.Text.Encoding.UTF8.GetBytes(accessToken))); + + private async Task EnsureAppearanceSessionAsync(string accountId, string? rejectedToken, CancellationToken ct) + { + using var linked = CancellationTokenSource.CreateLinkedTokenSource(ct, lifetime.Token); + await operation.WaitAsync(linked.Token).ConfigureAwait(false); + try + { + ObjectDisposedException.ThrowIf(disposed, this); + var account = FindAccount(accountId); + if (!sessions.TryGetValue(accountId, out var current) || !AccountIdentity.Matches(account, current.Profile)) + throw new AuthenticationException("missing_credentials", "无法恢复此账户的旧凭据,请重新登录;原记录保留。"); + var refresh = rejectedToken is not null ? current.AccessToken == rejectedToken + : account.Kind == AccountKind.Microsoft + ? !string.IsNullOrEmpty(current.RefreshToken) && (current.Profile.ExpiresAt is null || current.Profile.ExpiresAt < DateTimeOffset.UtcNow.AddMinutes(2)) + : !appearanceAuthenticatedTokens.TryGetValue(accountId, out var authenticated) || authenticated != AppearanceTokenHash(current.AccessToken); + if (refresh) + { + var previousState = Snapshot.State; + Set(s => s with { State = "Authenticating" }); + try { current = await RefreshInternalAsync(account, linked.Token, selectAccount: false).ConfigureAwait(false); } + finally { Set(s => s.State == "Authenticating" ? s with { State = previousState } : s); } + } + return current; + } + finally { operation.Release(); } + } + public async Task SaveOfflineAccountSkinAsync(string accountId, ReadOnlyMemory png, AccountSkinModel model, CancellationToken cancellationToken = default) + { + if (png.Length > AccountAppearancePng.MaximumPngBytes) throw new InvalidDataException("皮肤 PNG 超过 2 MiB 上限。"); + AccountAppearance? result = null; var bytes = png.ToArray(); + await ExecuteAsync("Ready", async ct => + { + var account = FindAccount(accountId); + if (Snapshot.SelectedAccountId != accountId) throw new InvalidOperationException("当前角色已改变,请为新选中的角色重新选择皮肤。"); + if (account.Kind != AccountKind.Offline) throw new InvalidOperationException("在线角色的皮肤请前往对应官网修改。"); + result = await new AccountAppearanceStore(Paths.LocalDataDirectory).SaveOfflineAsync(account, bytes, model, ct).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false); + return result!; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.Aria2.cs b/src/SHOU.Launcher.Core/LauncherService.Aria2.cs new file mode 100644 index 00000000..c827ed72 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.Aria2.cs @@ -0,0 +1,12 @@ +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IAria2ConnectionService +{ + public async Task TestAria2ConnectionAsync(CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + return await network.Aria2Connection.TestAsync(network, cancellationToken).ConfigureAwait(false); + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.Cache.cs b/src/SHOU.Launcher.Core/LauncherService.Cache.cs new file mode 100644 index 00000000..9ad0f999 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.Cache.cs @@ -0,0 +1,20 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Tools; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : ICacheMaintenanceService +{ + public async Task ScanLauncherCacheAsync(CancellationToken cancellationToken = default) + { + CacheCleanupPlan? plan = null; + await ExecuteAsync("Ready", async ct => { RequireNoToolGame(); plan = await LauncherCacheCleaner.ScanAsync(Paths, ct); }, cancellationToken).ConfigureAwait(false); + return plan!; + } + public async Task ClearLauncherCacheAsync(CacheCleanupPlan plan, CancellationToken cancellationToken = default) + { + CacheCleanupResult? result = null; + await ExecuteAsync("Ready", async ct => { RequireNoToolGame(); result = await LauncherCacheCleaner.ClearAsync(Paths, plan, ct); }, cancellationToken).ConfigureAwait(false); + return result!; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.Catalog.cs b/src/SHOU.Launcher.Core/LauncherService.Catalog.cs new file mode 100644 index 00000000..be2d0709 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.Catalog.cs @@ -0,0 +1,62 @@ +using System.Collections.Concurrent; +using PCL.Core.Conduit; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Catalog; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : ILauncherCatalogService, IMinecraftCatalogCacheService, IContentCategoryCatalogService +{ + private readonly CachedGameCatalog gameCatalogCache; + private readonly ConcurrentDictionary contentTransfers = new(StringComparer.Ordinal); + private LauncherCatalog Catalog => new(http, Sources); + public async Task> GetContentCategoriesAsync(CancellationToken cancellationToken = default) + { await InitializeAsync(cancellationToken).ConfigureAwait(false); return await AllContentCategoriesAsync(cancellationToken).ConfigureAwait(false); } + public Task GetGameCatalogAsync(CancellationToken cancellationToken = default) => ReadGameCatalogAsync(false, cancellationToken); + public Task RefreshGameCatalogAsync(CancellationToken cancellationToken = default) => ReadGameCatalogAsync(true, cancellationToken); + private async Task ReadGameCatalogAsync(bool refresh, CancellationToken ct) + { + await InitializeAsync(ct).ConfigureAwait(false); + var configuration = Snapshot.Settings.DownloadSourcesJson + ":" + (Snapshot.Settings.Downloads?.SourcePreference ?? DownloadSourcePreference.Custom) + ":" + (Snapshot.Settings.Downloads?.PreferOfficialCatalog ?? true); + var sources = Sources(); + return await gameCatalogCache.GetAsync(configuration, refresh, new LauncherCatalog(http, () => sources, Snapshot.Settings.Downloads?.PreferOfficialCatalog ?? true).GamesAsync, ct).ConfigureAwait(false); + } + public async Task> GetFabricCatalogAsync(string gameVersion, CancellationToken cancellationToken = default) + { await InitializeAsync(cancellationToken).ConfigureAwait(false); return await Catalog.FabricAsync(gameVersion, cancellationToken).ConfigureAwait(false); } + public async Task> SearchContentAsync(ContentQuery query, CancellationToken cancellationToken = default) + { return (await SearchContentPageAsync(query, cancellationToken).ConfigureAwait(false)).Projects; } + public async Task> GetContentReleasesAsync(string projectId, string? gameVersion = null, string? loader = null, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + if (!CurseForgeCatalog.IsProject(projectId)) return await Catalog.ReleasesAsync(projectId, gameVersion, loader, cancellationToken).ConfigureAwait(false); + using var transport = ContentTransport(); + return await new CurseForgeCatalog(transport, build.CurseForgeApiKey).ReleasesAsync(projectId, gameVersion, loader, cancellationToken).ConfigureAwait(false); + } + public Task GetContentIconAsync(string iconUrl, CancellationToken cancellationToken = default) + => Uri.TryCreate(iconUrl, UriKind.Absolute, out var uri) && AllowedContentIcon(uri) ? CurseForgeIconAsync(uri, cancellationToken) : Catalog.IconAsync(iconUrl, cancellationToken); + public async Task DownloadContentAsync(ContentFile file, CancellationToken cancellationToken = default) + { + string? result = null; + await ExecuteAsync("Installing", async ct => + { + using var cancellation = CancellationTokenSource.CreateLinkedTokenSource(ct); installCancellation = cancellation; + var ownership = downloadOwners.Begin("content:" + file.Sha1); contentTransfers[ownership.Generation] = file; + try { result = await DownloadCachedContentFileAsync(file, cancellation.Token).ConfigureAwait(false); } + finally { downloadOwners.End(ownership); installCancellation = null; } + }, cancellationToken).ConfigureAwait(false); + return result!; + } + private async Task DownloadCachedContentFileAsync(ContentFile file, CancellationToken ct) + { + if (file.FileName.Length is 0 or > 200 || file.FileName.Contains('/') || file.FileName.Contains('\\') || file.FileName is "." or ".." + || file.Sha1.Length != 40 || !file.Sha1.All(Uri.IsHexDigit) || file.Size is < 0 or > Content.CurseForgePackResolver.MaximumCachedResourceBytes + || !(Content.ContentInstallFiles.AllowedUri(file.Uri) || Content.CurseForgePackResolver.AllowedCurseForgeUri(file.Uri))) throw new InvalidDataException("资源文件身份无效。"); + var path = SafePath.Within(Paths.CacheDirectory, "content/" + file.Sha1.ToLowerInvariant() + "/" + file.FileName); + if (Content.CurseForgePackResolver.AllowedCurseForgeUri(file.Uri)) + { using var transport = ContentTransport(); await new Content.CurseForgePackResolver(transport, null, network: network).DownloadResourceAsync(file, path, new InlineProgress(OnTransfer), ct).ConfigureAwait(false); } + else + { var urls = ModDownloadSources.Resolve(file.Uri.AbsoluteUri, Sources()).Select(s => new Uri(s)).ToArray(); await downloader.DownloadAsync(new(urls, path, file.Sha1, Size: file.Size), new InlineProgress(OnTransfer), ct).ConfigureAwait(false); } + return path; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.Community.cs b/src/SHOU.Launcher.Core/LauncherService.Community.cs new file mode 100644 index 00000000..e9e6841c --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.Community.cs @@ -0,0 +1,22 @@ +using PCL.Core.Conduit; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Community; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IClubContentService +{ + public async Task GetClubUpdatesAsync(bool refresh = false, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + using var client = new HttpClient(new ConfigurableNetworkHandler(network, allowAutoRedirect: false)); + return await new ClubUpdatesClient(client, Path.Combine(Paths.CacheDirectory, "club-updates")).GetHistoryAsync(refresh, cancellationToken).ConfigureAwait(false); + } + public async Task GetClubUpdateArticleAsync(ClubUpdateNotice notice, bool refresh = false, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + using var client = new HttpClient(new ConfigurableNetworkHandler(network, allowAutoRedirect: false)); + return await new ClubUpdatesClient(client, Path.Combine(Paths.CacheDirectory, "club-updates")).GetArticleAsync(notice, refresh, cancellationToken).ConfigureAwait(false); + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.Components.cs b/src/SHOU.Launcher.Core/LauncherService.Components.cs new file mode 100644 index 00000000..0e77053e --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.Components.cs @@ -0,0 +1,36 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; +using SHOU.Launcher.Core.Minecraft; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IInstanceComponentService +{ + public async Task ChangeInstanceLoaderAsync(string instanceId, string loader, string? loaderVersion, CancellationToken cancellationToken = default) + { + if (loader is not ("vanilla" or "fabric" or "quilt" or "forge" or "neoforge" or "cleanroom" or "legacyfabric") && !Loaders.PortableVendorInstaller.Supports(loader)) throw new NotSupportedException("此加载器暂不支持实例内修改。"); + if (loader != "vanilla") SafePath.Identifier(loaderVersion ?? throw new ArgumentException("请明确选择加载器版本。")); + GameInstance? updated = null; + await ExecuteAsync("Installing", async ct => + { + var instance = FindInstance(instanceId); EnsureInstanceNotRunning(instance); EnsureIsolatedGamePath(instance.GameDirectory); + var game = InstanceIdentity.GameVersion(instance); var profile = game; + if (loader == "fabric") profile = await new FabricMetadataProvider(http, Paths.CacheDirectory, Sources).CacheProfileAsync(game, loaderVersion!, ct).ConfigureAwait(false); + else if (loader == "quilt") profile = await CacheQuiltProfileAsync(game, loaderVersion!, ct).ConfigureAwait(false); + else if (loader == "legacyfabric") profile = await CacheQuiltProfileAsync(game, loaderVersion!, ct, loader).ConfigureAwait(false); + else if (loader is "forge" or "neoforge" or "cleanroom") profile = (await OfficialLoaders.CacheAsync(loader, game, loaderVersion!, ct).ConfigureAwait(false)).ProfileId; + else if (Loaders.PortableVendorInstaller.Supports(loader)) profile = await CacheVendorProfileAsync(loader, game, loaderVersion!, ct).ConfigureAwait(false); + var candidate = instance with { VersionId = profile, GameVersionId = game, Loader = loader, LoaderVersion = loader == "vanilla" ? null : loaderVersion, + RuntimeProfileOverride = instance.Origin is not null, Installed = false }; + if (candidate.Directories is { Mode: InstanceDirectoryMode.FollowGlobal } directories) candidate = RebindDirectory(candidate, directories, Snapshot.Settings); + // Preparation writes verified shared caches; the selected instance identity changes only after success. + await PrepareInstanceAsync(candidate, ct, publishInstalled: false).ConfigureAwait(false); + ct.ThrowIfCancellationRequested(); EnsureInstanceNotRunning(instance); + updated = candidate with { Installed = true }; + var next = Snapshot with { Instances = Snapshot.Instances.Select(i => i.Id == instance.Id ? updated : i).ToArray() }; + await PersistCandidateAsync(next, ct).ConfigureAwait(false); Set(s => s with { Instances = next.Instances }); + }, cancellationToken).ConfigureAwait(false); + return updated!; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.ContentBrowser.cs b/src/SHOU.Launcher.Core/LauncherService.ContentBrowser.cs new file mode 100644 index 00000000..1674557e --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.ContentBrowser.cs @@ -0,0 +1,27 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IInstanceContentBrowserService +{ + public async Task> BrowseInstanceContentAsync(string instanceId, string kind, string directory, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken); var instance = ContentTarget(instanceId, false); + return await Task.Run(() => InstanceWorkspace.List(instance, kind, cancellationToken, directory, true), cancellationToken); + } + public async Task GetInstanceContentDirectoryAsync(string instanceId, string kind, string directory, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken); cancellationToken.ThrowIfCancellationRequested(); + var folder = InstanceWorkspace.ContentDirectory(ContentTarget(instanceId, false), kind, directory); + if (!Directory.Exists(folder)) throw new DirectoryNotFoundException("资源目录已移动,请返回上一级。"); + return folder; + } + public Task ImportInstanceContentToDirectoryAsync(string instanceId, string kind, string directory, string sourcePath, CancellationToken cancellationToken = default) + => ExecuteAsync("Ready", async ct => + { + var instance = ContentTarget(instanceId, true); + _ = InstanceWorkspace.ContentDirectory(instance, kind, directory); + await InstanceWorkspace.ImportAsync(instance, kind, sourcePath, ct, directory); + }, cancellationToken); +} diff --git a/src/SHOU.Launcher.Core/LauncherService.ContentDescription.cs b/src/SHOU.Launcher.Core/LauncherService.ContentDescription.cs new file mode 100644 index 00000000..32d1a620 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.ContentDescription.cs @@ -0,0 +1,26 @@ +using System.Net; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IContentDescriptionService +{ + private readonly Dictionary descriptionTranslations = []; + public async Task GetChineseContentDescriptionAsync(ContentProject project, CancellationToken cancellationToken = default) + { + var id = project.Source == "curseforge" && project.Id.StartsWith("cf-", StringComparison.Ordinal) ? project.Id[3..] : project.Id; + if (project.Source is not ("curseforge" or "modrinth") || id.Length is 0 or > 128 || id.Any(c => !char.IsAsciiLetterOrDigit(c) && c != '-')) throw new ArgumentException("资源 ID 无效。"); + var key = project.Source + "/" + id + "/" + project.Description; + lock (descriptionTranslations) if (descriptionTranslations.TryGetValue(key, out var cached)) return cached; + try + { + using var json = JsonDocument.Parse(await ReadPublicDocumentAsync(new($"https://mod.mcimirror.top/translate/{project.Source}/{id}"), 262144, cancellationToken)); + if (!json.RootElement.TryGetProperty("translated", out var value) || value.ValueKind != JsonValueKind.String || string.IsNullOrWhiteSpace(value.GetString())) return null; + var text = value.GetString()!; + lock (descriptionTranslations) { if (descriptionTranslations.Count >= 1000) descriptionTranslations.Clear(); descriptionTranslations[key] = text; } + return text; + } + catch (HttpRequestException ex) when (ex.StatusCode == HttpStatusCode.NotFound) { return null; } + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.ContentInstall.cs b/src/SHOU.Launcher.Core/LauncherService.ContentInstall.cs new file mode 100644 index 00000000..c058afa4 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.ContentInstall.cs @@ -0,0 +1,88 @@ +using System.Collections.Concurrent; +using PCL.Core.Conduit; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Instances; +using SHOU.Launcher.Core.IO; +using SHOU.Launcher.Core.Catalog; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IContentInstallationService, IContentDependencyCatalogService +{ + private readonly ConcurrentDictionary> contentOperationRetries = new(StringComparer.Ordinal); + public async Task GetContentReleaseAsync(string releaseId, CancellationToken cancellationToken = default) + { await InitializeAsync(cancellationToken).ConfigureAwait(false); if (!CurseForgeCatalog.IsProject(releaseId)) return await Catalog.ReleaseAsync(releaseId, cancellationToken).ConfigureAwait(false); + using var transport = ContentTransport(); return await new CurseForgeCatalog(transport, build.CurseForgeApiKey).ReleaseAsync(releaseId, cancellationToken).ConfigureAwait(false); } + public async Task GetContentProjectAsync(string projectId, CancellationToken cancellationToken = default) + { await InitializeAsync(cancellationToken).ConfigureAwait(false); if (!CurseForgeCatalog.IsProject(projectId)) return await Catalog.ProjectAsync(projectId, cancellationToken).ConfigureAwait(false); + using var transport = ContentTransport(); return await new CurseForgeCatalog(transport, build.CurseForgeApiKey).ProjectAsync(projectId, cancellationToken).ConfigureAwait(false); } + private GameInstance ContentTarget(string instanceId, bool mutate) + { + var instance = FindInstance(instanceId); EnsureIsolatedGamePath(instance.GameDirectory); + _ = ContentInstallFiles.Literal(instance.GameDirectory, ContentInstallFiles.ManifestName); + if (!Directory.Exists(instance.GameDirectory)) throw new DirectoryNotFoundException("实例游戏目录不存在,请重新选择实例。"); + if (mutate) EnsureInstanceNotRunning(instance); + return instance; + } + public async Task PlanContentInstallAsync(ContentInstallRequest request, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + var instance = ContentTarget(request.InstanceId, false); + return await new ContentInstallPlanner(this, this).PlanAsync(instance, InstanceIdentity.GameVersion(instance), request, cancellationToken).ConfigureAwait(false); + } + public async Task InstallContentAsync(ContentInstallRequest request, CancellationToken cancellationToken = default) + { + ContentInstallResult? result = null; + await ExecuteAsync("Installing", async ct => + { + var instance = ContentTarget(request.InstanceId, true); + var plan = await new ContentInstallPlanner(this, this).PlanAsync(instance, InstanceIdentity.GameVersion(instance), request, ct).ConfigureAwait(false); + await RunContentTransferAsync("resource-install:" + instance.Id, token => InstallContentAsync(request, token), async token => + { + result = await ContentInstallFiles.InstallAsync(instance, plan, DownloadInstallFileAsync, token).ConfigureAwait(false); + }, ct).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false); + return result!; + } + private async Task DownloadInstallFileAsync(ContentFile file, string target, CancellationToken ct) + { + ContentInstallFiles.ValidateFile(file); + if (file.ManualFile is { } manual) + { + if (await CurseForgeManualCache.DigestAsync(Paths.CacheDirectory, manual, ct).ConfigureAwait(false) is null) + throw new InvalidOperationException("此版本需要在官网下载并选择安装文件后继续更新:" + manual.FileName); + var source = CurseForgeManualCache.PathFor(Paths.CacheDirectory, manual); + Directory.CreateDirectory(Path.GetDirectoryName(target)!); IO.SafePath.RejectLinks(target); + await using (var input = File.OpenRead(source)) + await using (var output = new FileStream(target, FileMode.CreateNew, FileAccess.Write, FileShare.None, 131072, true)) + await input.CopyToAsync(output, ct).ConfigureAwait(false); + if (!await ContentInstallFiles.MatchesAsync(target, file.Sha1, file.Size, ct)) throw new InvalidDataException("补充文件校验失败。"); + return; + } + if (CurseForgePackResolver.AllowedCurseForgeUri(file.Uri)) + { + using var transport = ContentTransport(); + await new CurseForgePackResolver(transport, null, network: network).DownloadAsync(new(0, 0, file.FileName, file.Sha1, null, file.Size, file.Uri, false), target, new InlineProgress(OnTransfer), ct).ConfigureAwait(false); + return; + } + var sources = ModDownloadSources.Resolve(file.Uri.AbsoluteUri, Sources()).Select(s => new Uri(s)).ToArray(); + await downloader.DownloadAsync(new(sources, target, file.Sha1, Size: file.Size), new InlineProgress(OnTransfer), ct).ConfigureAwait(false); + } + private async Task RunContentTransferAsync(string identity, Func retry, + Func action, CancellationToken ct) + { + using var cancellation = CancellationTokenSource.CreateLinkedTokenSource(ct); + var ownership = downloadOwners.Begin(identity); installCancellation = cancellation; + contentOperationRetries[ownership.Generation] = retry; + if (contentOperationRetries.Count > 250) + foreach (var key in contentOperationRetries.Keys.Where(k => k != ownership.Generation).Take(contentOperationRetries.Count - 250)) contentOperationRetries.TryRemove(key, out _); + try { await action(cancellation.Token).ConfigureAwait(false); } + finally { downloadOwners.End(ownership); installCancellation = null; } + } + private async Task TryRetryContentOperationAsync(string generation, CancellationToken ct) + { + if (!contentOperationRetries.TryGetValue(generation, out var retry)) return false; + await retry(ct).ConfigureAwait(false); return true; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.ContentMetadata.cs b/src/SHOU.Launcher.Core/LauncherService.ContentMetadata.cs new file mode 100644 index 00000000..372e2300 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.ContentMetadata.cs @@ -0,0 +1,47 @@ +using System.Collections.Concurrent; +using System.Security.Cryptography; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IInstanceContentMetadataService +{ + public async Task ReadInstanceContentMetadataAsync(string instanceId, string kind, CancellationToken cancellationToken = default) + { + if (kind is not ("resourcepacks" or "shaders")) throw new ArgumentException("此类别不使用资源展示信息查询。"); + await InitializeAsync(cancellationToken).ConfigureAwait(false); + var instance = ContentTarget(instanceId, false); var projectKind = kind == "shaders" ? "shader" : "resourcepack"; + var rows = await Task.Run(() => InstanceWorkspace.List(instance, kind, cancellationToken), cancellationToken).ConfigureAwait(false); + var info = new ConcurrentBag(); var notices = new ConcurrentBag(); + using var lifetime = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); lifetime.CancelAfter(TimeSpan.FromSeconds(45)); + try + { + await Parallel.ForEachAsync(rows, new ParallelOptions { MaxDegreeOfParallelism = 4, CancellationToken = lifetime.Token }, async (row, token) => + { + try + { + using var item = CancellationTokenSource.CreateLinkedTokenSource(token); item.CancelAfter(TimeSpan.FromSeconds(8)); var ct = item.Token; + var path = ContentInstallFiles.Literal(instance.GameDirectory, row.RelativePath); var file = new FileInfo(path); var size = file.Length; var modified = file.LastWriteTimeUtc; string sha1; + await using (var stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true)) sha1 = Convert.ToHexStringLower(await SHA1.HashDataAsync(stream, ct)); + var key = "resource-info-v1:" + kind + ":" + sha1 + ":" + size; + var cached = await ModOnlineCache.ReadAsync(Paths.CacheDirectory, key, ct); + var current = cached?.Current ?? await Catalog.ReleaseFromSha1Async(sha1, ct); + if (current.ProjectId is not { } id || !current.Files.Any(f => f.Sha1 == sha1 && f.Size == size)) throw new InvalidDataException("文件身份不匹配。"); + var project = cached?.Project ?? await Catalog.ProjectAsync(id, ct); + if (project.Id != id || project.Kind != projectKind) throw new InvalidDataException("项目身份或类别不匹配。"); + file.Refresh(); if (!file.Exists || file.Length != size || file.LastWriteTimeUtc != modified) throw new IOException("资源在读取期间发生变化。"); + info.Add(new(row.RelativePath, project, current.Version)); + try { await ModOnlineCache.WriteAsync(Paths.CacheDirectory, key, new(1, cached?.Checked ?? DateTimeOffset.UtcNow, current, null, project), ct); } + catch (IOException) { } + } + catch (OperationCanceledException) when (!cancellationToken.IsCancellationRequested) { notices.Add(row.Name); } + catch (Exception ex) when (ex is IOException or InvalidDataException or HttpRequestException or InvalidOperationException or AggregateException) { notices.Add(row.Name); } + }).ConfigureAwait(false); + } + catch (OperationCanceledException) when (!cancellationToken.IsCancellationRequested) { foreach (var row in rows.Where(r => !info.Any(i => i.RelativePath == r.RelativePath))) notices.Add(row.Name); } + cancellationToken.ThrowIfCancellationRequested(); + return new(info.OrderBy(i => i.RelativePath, StringComparer.Ordinal).ToArray(), notices.Distinct(StringComparer.Ordinal).ToArray()); + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.ContentSources.cs b/src/SHOU.Launcher.Core/LauncherService.ContentSources.cs new file mode 100644 index 00000000..6904951a --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.ContentSources.cs @@ -0,0 +1,69 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Catalog; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IContentSourceCatalogService +{ + private readonly Func? contentTransportFactory; + private HttpClient ContentTransport() => contentTransportFactory?.Invoke() ?? new(new ConfigurableNetworkHandler(network, allowAutoRedirect: false)); + public async Task SearchContentPageAsync(ContentQuery query, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + if (query.Source is not ("all" or "modrinth" or "curseforge")) throw new ArgumentException("未知资源来源。"); + var mr = query.Kind != "world" && query.Source != "curseforge" && query.Category?.StartsWith("cf-", StringComparison.Ordinal) != true; + var cf = query.Source != "modrinth" && (string.IsNullOrEmpty(query.Category) || query.Category.StartsWith("cf-", StringComparison.Ordinal)); + if (!mr && !cf) throw new NotSupportedException("此来源没有对应的资源分类,请更换来源。"); + var parts = mr && cf ? query with { Limit = 15, Offset = query.Offset / 2 } : query; + using var transport = ContentTransport(); + var sources = new List<(string Name, Task> Read)>(); + if (mr) sources.Add(("Modrinth", Catalog.SearchAsync(parts, cancellationToken))); + if (cf) sources.Add(("CurseForge", new CurseForgeCatalog(transport, build.CurseForgeApiKey).SearchAsync(parts, cancellationToken))); + var results = new List(); var notices = new List(); var failures = new List(); + foreach (var source in sources) + { + try { results.AddRange(await source.Read.ConfigureAwait(false)); } + catch (OperationCanceledException) when (cancellationToken.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is HttpRequestException or IOException or InvalidDataException or System.Text.Json.JsonException or OperationCanceledException or InvalidOperationException) + { failures.Add(ex); notices.Add(source.Name + " 暂时不可用,可刷新重试或切换来源。"); } + } + if (failures.Count == sources.Count) throw new IOException(string.Join(" ", notices), failures[0]); + IEnumerable ordered = query.Sort switch + { + "downloads" => results.OrderByDescending(p => p.Downloads), + "updated" => results.OrderByDescending(p => p.Updated), + "relevance" when query.Search.Length == 0 => results.OrderByDescending(p => p.Downloads), + _ => Interleave(results.Where(p => p.Source == "modrinth").ToArray(), results.Where(p => p.Source == "curseforge").ToArray()) + }; + return new(ordered.ToArray(), notices.Count > 0 ? string.Join(" ", notices) : null); + } + private static IEnumerable Interleave(ContentProject[] first, ContentProject[] second) + { for (var i = 0; i < Math.Max(first.Length, second.Length); i++) { if (i < first.Length) yield return first[i]; if (i < second.Length) yield return second[i]; } } + private async Task> AllContentCategoriesAsync(CancellationToken ct) + { + using var transport = ContentTransport(); var results = new List(); + foreach (var read in new[] { Catalog.CategoriesAsync(ct), new CurseForgeCatalog(transport, build.CurseForgeApiKey).CategoriesAsync(ct) }) + { + try { results.AddRange(await read.ConfigureAwait(false)); } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is HttpRequestException or IOException or InvalidDataException or System.Text.Json.JsonException or OperationCanceledException or InvalidOperationException) { } + } + return results; + } + private async Task CurseForgeIconAsync(Uri uri, CancellationToken ct) + { + using var transport = ContentTransport(); + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(10)); + using var request = new HttpRequestMessage(HttpMethod.Get, uri); + using var response = await transport.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, timeout.Token).ConfigureAwait(false); + response.EnsureSuccessStatusCode(); + if (response.Content.Headers.ContentLength is > 524288 || response.RequestMessage?.RequestUri is { } actual && actual != uri) throw new InvalidDataException("资源图标过大或发生重定向。"); + await using var input = await response.Content.ReadAsStreamAsync(timeout.Token).ConfigureAwait(false); + using var output = new MemoryStream(); var bytes = new byte[8192]; + while (true) { var count = await input.ReadAsync(bytes, timeout.Token).ConfigureAwait(false); if (count == 0) break; if (output.Length + count > 524288) throw new InvalidDataException("资源图标过大。"); output.Write(bytes, 0, count); } + return output.ToArray(); + } + public static bool AllowedContentIcon(Uri uri) => uri.IsAbsoluteUri && uri.Scheme == "https" && uri.IsDefaultPort && uri.UserInfo.Length == 0 && uri.Fragment.Length == 0 + && uri.Host is "media.forgecdn.net" or "mediafilez.forgecdn.net" && uri.AbsolutePath.StartsWith("/avatars/", StringComparison.Ordinal); +} diff --git a/src/SHOU.Launcher.Core/LauncherService.ContentTrash.cs b/src/SHOU.Launcher.Core/LauncherService.ContentTrash.cs new file mode 100644 index 00000000..e4160386 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.ContentTrash.cs @@ -0,0 +1,23 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IInstanceContentTrashService +{ + private static void ResourceTrashKind(string kind) + { if (kind is not ("resourcepacks" or "shaders" or "schematics")) throw new ArgumentException("请选择资源包、光影或投影原理图。"); } + public async Task TrashInstanceContentAsync(string instanceId, string kind, IReadOnlyList paths, CancellationToken cancellationToken = default) + { + ResourceTrashKind(kind); InstanceModTrash? result = null; + await ExecuteAsync("Ready", async ct => { var instance = ContentTarget(instanceId, true); result = await ModFileManagement.TrashAsync(instance, paths, () => EnsureInstanceNotRunning(instance), ct, kind); }, cancellationToken); + return result!; + } + public async Task> GetInstanceContentTrashAsync(string instanceId, string kind, CancellationToken cancellationToken = default) + { ResourceTrashKind(kind); await InitializeAsync(cancellationToken); return await ModFileManagement.ListAsync(ContentTarget(instanceId, false), cancellationToken, kind); } + public Task RestoreInstanceContentAsync(string instanceId, string kind, string trashId, CancellationToken cancellationToken = default) + { + ResourceTrashKind(kind); + return ExecuteAsync("Ready", async ct => { var instance = ContentTarget(instanceId, true); await ModFileManagement.RestoreAsync(instance, trashId, () => EnsureInstanceNotRunning(instance), ct, kind); }, cancellationToken); + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.CrashAnalysis.cs b/src/SHOU.Launcher.Core/LauncherService.CrashAnalysis.cs new file mode 100644 index 00000000..0f981751 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.CrashAnalysis.cs @@ -0,0 +1,30 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Diagnostics; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : ICrashAnalysisService +{ + public Task AnalyzeCrashFilesAsync(IReadOnlyList files, string language = "zh-CN", CancellationToken cancellationToken = default) + => CrashAnalysis.AnalyzeAsync(files, language, ct: cancellationToken, redactor: redactor); + public async Task AnalyzeInstanceCrashAsync(string instanceId, string language = "zh-CN", CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken); + var instance = Snapshot.Instances.Single(i => i.Id == instanceId); + return await AnalyzeInstanceCrashAsync(instance, language, null, cancellationToken); + } + private Task AnalyzeInstanceCrashAsync(GameInstance instance, string language, string? output, CancellationToken ct, DateTime? since = null) + { + var files = new List(); + foreach (var directory in new[] { instance.GameDirectory, Path.Combine(instance.GameDirectory, "logs"), Path.Combine(instance.GameDirectory, "crash-reports") }) + { + IO.SafePath.RejectLinks(directory); if (!Directory.Exists(directory)) continue; + var candidates = Directory.EnumerateFiles(directory).Where(p => Path.GetFileName(p) is "latest.log" or "debug.log" || Path.GetFileName(p).StartsWith("crash-", StringComparison.Ordinal) || Path.GetFileName(p).StartsWith("hs_err", StringComparison.Ordinal)); + files.AddRange(candidates.Where(p => since is null || File.GetLastWriteTimeUtc(p) >= since.Value.AddSeconds(-2)).GroupBy(p => Path.GetFileName(p).StartsWith("crash-", StringComparison.Ordinal) ? "crash" : Path.GetFileName(p).StartsWith("hs_err", StringComparison.Ordinal) ? "hs_err" : Path.GetFileName(p)).Select(g => g.OrderByDescending(File.GetLastWriteTimeUtc).First())); + } + if (output is not null) files.Add(output); + return CrashAnalysis.AnalyzeAsync(files, language, [Path.Combine(instance.GameDirectory, "mods")], ct, redactor, output is not null, instance.Id); + } + public Task ExportCrashAnalysisAsync(CrashAnalysisReport report, string destination, CancellationToken cancellationToken = default) + => CrashAnalysis.ExportAsync(report, destination, cancellationToken); +} diff --git a/src/SHOU.Launcher.Core/LauncherService.CredentialRecovery.cs b/src/SHOU.Launcher.Core/LauncherService.CredentialRecovery.cs new file mode 100644 index 00000000..bc570dee --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.CredentialRecovery.cs @@ -0,0 +1,43 @@ +using System.Security.Cryptography; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Authentication; +using SHOU.Launcher.Core.Configuration; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : ICredentialAccessRecoveryService +{ + public bool CanAuthorizeCredentialAccess => platform.Credentials is IUserAuthorizedCredentialStore; + public Task RecoverCredentialAccessAsync(CancellationToken cancellationToken = default) => ExecuteAsync("Authenticating", async ct => + { + if (platform.Credentials is not IUserAuthorizedCredentialStore store) throw new PlatformNotSupportedException("当前安全存储不需要交互授权。"); + var incomplete = false; + foreach (var account in Snapshot.Accounts.Where(a => a.Kind != AccountKind.Offline).ToArray()) + { + ct.ThrowIfCancellationRequested(); + if (account.Persisted && sessions.TryGetValue(account.Id, out var existing) && existing.Profile.Persisted) continue; + try + { + var bytes = await store.ReadWithUserAuthorizationAsync(AccountKey(account.Id), ct).ConfigureAwait(false); + if (bytes is null) { incomplete = true; ReplaceAccount(account with { Status = "未找到原登录凭据 · 原档案保留" }); continue; } + try + { + ct.ThrowIfCancellationRequested(); + var session = JsonSerializer.Deserialize(bytes, ConfigurationStore.JsonOptions) ?? throw new InvalidDataException("原登录记录无法读取。"); + if (session.Profile is null || !AccountIdentity.Matches(account, session.Profile)) throw new InvalidDataException("原登录记录的账户身份不符。"); + var trusted = session.Profile with { Persisted = true, Status = "已保存 · 启动时验证" }; + RegisterSession(session); sessions[account.Id] = session with { Profile = trusted }; ReplaceAccount(trusted); + } + finally { CryptographicOperations.ZeroMemory(bytes); } + } + catch (OperationCanceledException) { throw; } + catch (Exception ex) when (ex is CredentialStoreException or JsonException or InvalidDataException or IOException) + { incomplete = true; ReplaceAccount(account with { Status = "系统授权未完成或凭据不可读 · 原记录保留" }); Log("Warning", "重试安全存储未完成:" + ex.GetType().Name); } + } + ct.ThrowIfCancellationRequested(); + Set(s => s with { CanPersistAccounts = !incomplete }); + if (incomplete) throw new InvalidOperationException("部分原登录项尚未恢复。请完成 macOS 的钥匙串授权后重试;原凭据和账户列表均保留。"); + // Do not rotate tokens, rewrite old records or contact authentication servers just to recover access. + }, cancellationToken); +} diff --git a/src/SHOU.Launcher.Core/LauncherService.CurseForgeExport.cs b/src/SHOU.Launcher.Core/LauncherService.CurseForgeExport.cs new file mode 100644 index 00000000..4b6cc7b3 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.CurseForgeExport.cs @@ -0,0 +1,35 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : ICurseForgeExportService +{ + public async Task ExportCurseForgePackAsync(string instanceId, ModrinthPackExportOptions options, CancellationToken cancellationToken = default) + { + options = options with { OverridePaths = options.OverridePaths?.ToArray() }; + string? result = null; + await ExecuteAsync("Ready", async ct => + { + var instance = ContentTarget(instanceId, true); + var plan = await CurseForgePackExport.PlanAsync(instance, options, ct).ConfigureAwait(false); + if (plan.References.Count > 0) + { + using var client = localPackResolver is null ? new HttpClient(new Downloads.ConfigurableNetworkHandler(network, allowAutoRedirect: false)) : null; + var resolver = localPackResolver ?? new CurseForgePackResolver(client!, build.CurseForgeApiKey, network: network); + var official = await resolver.ResolveAsync(plan.References, Instances.InstanceIdentity.GameVersion(instance), instance.Loader, ct).ConfigureAwait(false); + if (official.BlockedFiles.Count > 0 || official.Files.Count != plan.References.Count) throw new InvalidDataException("CurseForge 文件身份未通过官方核实,未生成导出包。"); + var installed = await ContentInstallFiles.ReadManifestAsync(instance, ct).ConfigureAwait(false); + foreach (var file in official.Files) + { + var recorded = installed.Files.Single(f => f.ProjectId == "cf-" + file.ProjectId && f.ReleaseId == "cf-" + file.FileId); + if (recorded.RelativePath != file.Path || recorded.Size != file.Size || !recorded.Sha1.Equals(file.Sha1, StringComparison.OrdinalIgnoreCase) + || file.Sha512 is not null && !recorded.Sha512.Equals(file.Sha512, StringComparison.OrdinalIgnoreCase)) throw new InvalidDataException("CurseForge 项目/文件身份与本地资源不一致,未生成导出包。"); + } + } + result = await ShouPackArchive.ExportAsync(instance, SafePath.Within(Paths.CacheDirectory, "exports"), false, ct, plan).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false); + return result!; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.DatapackBackups.cs b/src/SHOU.Launcher.Core/LauncherService.DatapackBackups.cs new file mode 100644 index 00000000..6ddabd8f --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.DatapackBackups.cs @@ -0,0 +1,39 @@ +using System.Collections.Concurrent; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IWorldDatapackBackupService +{ + private sealed record DatapackRestorePlan(GameInstance Instance, string World, string BackupId, string WorkspaceRevision, string ReceiptRevision, DateTimeOffset Created); + private readonly ConcurrentDictionary datapackRestores = new(); + public async Task> GetWorldDatapackBackupsAsync(string instanceId, string worldDirectoryName, CancellationToken cancellationToken = default) + { await InitializeAsync(cancellationToken); return await WorldStore(instanceId, false).GetDatapackBackupsAsync(worldDirectoryName, cancellationToken); } + public async Task GetWorldDatapackBackupDirectoryAsync(string instanceId, string worldDirectoryName, string backupId, CancellationToken cancellationToken = default) + { await InitializeAsync(cancellationToken); cancellationToken.ThrowIfCancellationRequested(); return WorldStore(instanceId, false).GetDatapackBackupDirectory(worldDirectoryName, backupId); } + public async Task PreviewWorldDatapackRestoreAsync(string instanceId, string worldDirectoryName, string backupId, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken); var instance = ContentTarget(instanceId, true); var state = await WorldStore(instanceId, true).PrepareDatapackRestoreAsync(worldDirectoryName, backupId, cancellationToken); + var world = await WorldStore(instanceId, false).ReadDatapackWorkspaceAsync(worldDirectoryName, cancellationToken); + if (world.Version != InstanceIdentity.GameVersion(instance)) throw new InvalidDataException("备份世界与目标实例版本不一致。"); + var id = Guid.NewGuid().ToString("N"); datapackRestores[id] = new(instance, worldDirectoryName, backupId, state.WorkspaceRevision, state.Revision, DateTimeOffset.UtcNow); + foreach (var key in datapackRestores.Keys.Where(k => k != id).Take(Math.Max(0, datapackRestores.Count - 8))) datapackRestores.TryRemove(key, out _); + return new(id, backupId, state.Journal.Files.Select(f => f.OldName is { } name ? f.NewName + " → " + name : "移回备份中保存:" + f.NewName).Append("恢复更新前的启停顺序和来源记录").ToArray(), ["仅在当前文件仍与更新完成时一致时恢复;替换下来的版本与原备份均保留。"]); + } + public async Task RestoreWorldDatapackBackupAsync(string previewId, CancellationToken cancellationToken = default) + { + if (!datapackRestores.TryGetValue(previewId, out var plan) || DateTimeOffset.UtcNow - plan.Created > TimeSpan.FromMinutes(30)) throw new InvalidOperationException("恢复预检已失效,请重新检查。"); + WorldDatapackRestoreReceipt? result = null; + await ExecuteAsync("Ready", async ct => + { + var instance = ContentTarget(plan.Instance.Id, true); + if (instance.GameDirectory != plan.Instance.GameDirectory || InstanceIdentity.GameVersion(instance) != InstanceIdentity.GameVersion(plan.Instance)) throw new IOException("恢复目标实例已改变。"); + result = await WorldStore(instance.Id, true).RestoreDatapackBackupAsync(plan.World, plan.BackupId, plan.WorkspaceRevision, plan.ReceiptRevision, ct); + datapackRestores.TryRemove(previewId, out _); + }, cancellationToken); + return result!; + } + public Task DiscardWorldDatapackRestoreAsync(string previewId, CancellationToken cancellationToken = default) + { cancellationToken.ThrowIfCancellationRequested(); datapackRestores.TryRemove(previewId, out _); return Task.CompletedTask; } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.DatapackManagement.cs b/src/SHOU.Launcher.Core/LauncherService.DatapackManagement.cs new file mode 100644 index 00000000..1aed604b --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.DatapackManagement.cs @@ -0,0 +1,199 @@ +using System.Collections.Concurrent; +using System.Security.Cryptography; +using System.Text.Json; +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IWorldDatapackManagementService +{ + private sealed record DatapackUpdatePlan(WorldDatapackUpdatePreview Preview, GameInstance Instance, string World, string Revision, + IReadOnlyList Files, byte[]? Manifest, string RootName, DateTimeOffset Created); + private readonly ConcurrentDictionary datapackUpdates = new(); + public async Task GetWorldDatapackOrderAsync(string instanceId, string worldDirectoryName, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + var store = WorldStore(instanceId, false); var state = await store.ReadDatapackWorkspaceAsync(worldDirectoryName, cancellationToken); + if (state.Version != InstanceIdentity.GameVersion(FindInstance(instanceId))) throw new InvalidDataException("存档与实例版本不一致,未修改加载顺序。"); + return await store.GetDatapackOrderAsync(worldDirectoryName, cancellationToken).ConfigureAwait(false); + } + public async Task SaveWorldDatapackOrderAsync(string instanceId, string worldDirectoryName, string expectedRevision, IReadOnlyList order, CancellationToken cancellationToken = default) + { + WorldEditReceipt? result = null; + await ExecuteAsync("Ready", async ct => + { + var store = WorldStore(instanceId, true); var state = await store.ReadDatapackWorkspaceAsync(worldDirectoryName, ct); + if (state.Version != InstanceIdentity.GameVersion(FindInstance(instanceId))) throw new InvalidDataException("存档与实例版本不一致。"); + result = await store.SaveDatapackOrderAsync(worldDirectoryName, expectedRevision, order, ct); + }, cancellationToken); + return result!; + } + private static string ManagedPackName(string packId) => packId.StartsWith("file/", StringComparison.Ordinal) ? WorldLeaf(packId[5..]) : throw new InvalidDataException("请选择本地文件数据包。"); + private async Task WorldPackManifestAsync(GameInstance instance, string world, CancellationToken ct) => + await ContentInstallFiles.ReadManifestAsync(instance with { GameDirectory = ContentInstallFiles.Literal(instance.GameDirectory, "saves/" + WorldLeaf(world)) }, ct); + private static ContentInstalledFile? TrackedPack(ContentInstallManifest manifest, string name) => manifest.Files.SingleOrDefault(f => f.Kind == "datapack" && f.RelativePath == "datapacks/" + name); + private async Task MatchesTrackedPackAsync(GameInstance instance, string world, ContentInstalledFile file, CancellationToken ct) + { + var root = ContentInstallFiles.Literal(instance.GameDirectory, "saves/" + WorldLeaf(world)); + var bytes = await WorldContentArchive.ReadFileAsync(root, ContentInstallFiles.Literal(root, file.RelativePath), 64 * 1024 * 1024, ct); + return bytes.LongLength == file.Size && Convert.ToHexStringLower(SHA1.HashData(bytes)).Equals(file.Sha1, StringComparison.OrdinalIgnoreCase) && Convert.ToHexStringLower(SHA512.HashData(bytes)).Equals(file.Sha512, StringComparison.OrdinalIgnoreCase); + } + public async Task GetWorldDatapackUpdateOptionsAsync(string instanceId, string worldDirectoryName, string packId, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken); var instance = ContentTarget(instanceId, false); var store = WorldStore(instanceId, false); + var state = await store.ReadDatapackWorkspaceAsync(worldDirectoryName, cancellationToken); var name = ManagedPackName(packId); + var current = state.Packs.GetValueOrDefault(name) ?? throw new IOException("数据包文件已缺失,请重新读取。"); + var manifest = await WorldPackManifestAsync(instance, worldDirectoryName, cancellationToken); var tracked = TrackedPack(manifest, name); + if (current.Directory || tracked is null || !await MatchesTrackedPackAsync(instance, worldDirectoryName, tracked, cancellationToken)) + return new(state.Revision, new(packId, current.Hash), name, "本地来源;可选择 ZIP 替换", null, null, []); + if (manifest.Files.Count(f => f.ProjectId == tracked.ProjectId) != 1) throw new InvalidDataException("此项目有多份安装记录,请先明确处理,未猜测替换范围。"); + var catalog = worldContentCatalog as ILauncherCatalogService ?? this; + IReadOnlyList releases; string origin; + try + { + var identities = worldContentCatalog ?? this; var project = await identities.GetContentProjectAsync(tracked.ProjectId, cancellationToken); + var currentRelease = await identities.GetContentReleaseAsync(tracked.ReleaseId, cancellationToken); + if (project.Id != tracked.ProjectId || currentRelease.ProjectId != tracked.ProjectId) throw new InvalidDataException("来源身份已改变。"); + origin = project.Title + " · " + currentRelease.Version; + releases = await catalog.GetContentReleasesAsync(tracked.ProjectId, state.Version, tracked.ProjectId.StartsWith("cf-", StringComparison.Ordinal) ? null : "datapack", cancellationToken); + } + catch (Exception ex) when (ex is HttpRequestException or IOException or InvalidOperationException) + { return new(state.Revision, new(packId, current.Hash), name, "在线来源暂不可用", tracked.ProjectId, tracked.ReleaseId, [], "在线版本读取失败,可重试或选择本地 ZIP。"); } + var choices = releases.Where(r => r.ProjectId == tracked.ProjectId && r.Id != tracked.ReleaseId && r.GameVersions.Contains(state.Version, StringComparer.Ordinal)) + .OrderByDescending(r => r.Published).SelectMany(r => r.Files.Where(f => f.FileName.EndsWith(".zip", StringComparison.OrdinalIgnoreCase)).Select(f => new WorldDatapackUpdateChoice(r.Id, r.Version, r.Name, f.FileName, r.Published))).Take(200).ToArray(); + return new(state.Revision, new(packId, current.Hash), name, origin, tracked.ProjectId, tracked.ReleaseId, choices); + } + public async Task PreviewWorldDatapackUpdateAsync(WorldDatapackUpdateRequest request, CancellationToken cancellationToken = default) + { + WorldLeaf(request.WorldDirectoryName); var oldName = ManagedPackName(request.Selection.PackId); WorldDatapackUpdatePreview? result = null; + await WorldContentOperationAsync(request.InstanceId, ct => PreviewWorldDatapackUpdateAsync(request, ct), async ct => + { + var instance = ContentTarget(request.InstanceId, true); var store = WorldStore(request.InstanceId, true); + var state = await store.ReadDatapackWorkspaceAsync(request.WorldDirectoryName, ct); + if (state.Revision != request.WorkspaceRevision || !state.Packs.TryGetValue(oldName, out var selected) || selected.Hash != request.Selection.ContentRevision) throw new IOException("存档、数据包或安装清单已改变,请重新检查。"); + var game = await WorldGameAsync(instance, ct); + if (state.Version != game.Version || state.DataVersion != game.DataVersion || state.Format != game.PackFormat) throw new InvalidDataException("世界与目标实例的版本/格式不一致。"); + var manifest = await WorldPackManifestAsync(instance, request.WorldDirectoryName, ct); var catalog = worldContentCatalog ?? this; + var files = new List(); var warnings = new List(); var nextTracked = new List(); var removedProjects = new HashSet(StringComparer.Ordinal); + var changes = new List(); string rootName; long downloaded = 0; + if (request.LocalArchivePath is { } local) + { + if (request.ReleaseId is not null || !Path.IsPathFullyQualified(local) || !Path.GetExtension(local).Equals(".zip", StringComparison.OrdinalIgnoreCase)) throw new InvalidDataException("手动更新须明确选择单个本地 ZIP。"); + var incoming = await WorldContentArchive.DatapackAsync(local, game.PackFormat, ct); rootName = WorldLeaf(Path.GetFileName(local)); + files.Add(new(oldName, rootName, local, incoming.Revision)); + var tracked = TrackedPack(manifest, oldName); if (tracked is not null) removedProjects.Add(tracked.ProjectId); + warnings.Add("手动替换无法核实在线项目身份;原来源记录随旧包备份,新包按本地来源管理。"); + changes.Add(oldName + " → " + rootName); + } + else + { + var tracked = TrackedPack(manifest, oldName) ?? throw new InvalidOperationException("没有精确在线来源,请选择本地 ZIP 替换。"); + if (selected.Directory || !await MatchesTrackedPackAsync(instance, request.WorldDirectoryName, tracked, ct)) throw new IOException("原文件与在线安装记录不一致,请重新核对或选择手动替换。"); + if (request.ReleaseId is null || request.FileName is null) throw new InvalidDataException("请选择明确版本及文件。"); + var root = ContentInstallFiles.Literal(instance.GameDirectory, "saves/" + request.WorldDirectoryName); + var listings = catalog as ILauncherCatalogService ?? this; + var plan = await new ContentInstallPlanner(listings, catalog).PlanAsync(instance with { GameDirectory = root }, state.Version, + new(instance.Id, tracked.ProjectId, request.ReleaseId, request.FileName, "datapack"), ct, worldDatapacks: true, updatingDatapacks: true); + foreach (var file in plan.Files) + { + var installed = manifest.Files.Where(f => f.ProjectId == file.ProjectId).ToArray(); + if (installed.Length > 1 || installed.Any(f => f.Kind != "datapack" || !f.RelativePath.StartsWith("datapacks/", StringComparison.Ordinal) || f.RelativePath[10..].Contains('/'))) throw new InvalidDataException("安装来源存在多文件或非数据包结构,未猜测替换范围。"); + var oldFile = installed.SingleOrDefault(); + if (oldFile is not null && !await MatchesTrackedPackAsync(instance, request.WorldDirectoryName, oldFile, ct)) throw new IOException("原包或依赖与安装记录不一致,未替换。"); + if (file.File.Size > 64 * 1024 * 1024 || (downloaded += file.File.Size) > 128L * 1024 * 1024) throw new IOException("本次更新 ZIP 超过读取预算。"); + var path = DownloadArchive(Paths, file.File); await DownloadInstallFileAsync(file.File, path, ct); + var inspected = await WorldContentArchive.DatapackAsync(path, state.Format, ct); string sha512; + using (var zip = PackArchiveReader.Open(path)) { var bytes = await WorldContentArchive.ReadFileAsync(Path.GetDirectoryName(path)!, path, 64 * 1024 * 1024, ct); sha512 = Convert.ToHexStringLower(SHA512.HashData(bytes)); } + var previousName = oldFile?.RelativePath[10..]; var enable = file.Dependency && state.Enabled.Contains(request.Selection.PackId, StringComparer.Ordinal); + if (enable && state.Disabled.Contains("file/" + (previousName ?? file.File.FileName), StringComparer.Ordinal)) throw new InvalidOperationException("必需依赖被明确禁用,请先核对启用状态。"); + files.Add(new(previousName, file.File.FileName, path, inspected.Revision, enable)); removedProjects.Add(file.ProjectId); + nextTracked.Add(new(file.ProjectId, file.ReleaseId, "datapack", file.RelativePath, file.File.Sha1, sha512, file.File.Size, file.File.Uri.AbsoluteUri)); + changes.Add((previousName ?? "新增依赖") + " → " + file.File.FileName + (enable && !state.Enabled.Contains("file/" + (previousName ?? file.File.FileName), StringComparer.Ordinal) ? "(启用必需依赖)" : "")); + } + rootName = request.FileName; warnings.AddRange(plan.Warnings); + } + var replacedNames = files.Where(f => f.OldName is not null).Select(f => f.OldName!).ToHashSet(StringComparer.Ordinal); + if (files.Select(f => ContentInstallFiles.PathKey(f.NewName)).Distinct().Count() != files.Count) throw new IOException("更新文件名称发生冲突。"); + foreach (var file in files) + if (state.Packs.Keys.Any(name => ContentInstallFiles.PathKey(name) == ContentInstallFiles.PathKey(file.NewName) && !replacedNames.Contains(name))) throw new IOException("新文件名与其它数据包冲突:" + file.NewName); + await CheckDatapackUpdateDependenciesAsync(instance, request.WorldDirectoryName, manifest, removedProjects, nextTracked, catalog, ct); + var resources = new Dictionary(); long expanded = 0; + foreach (var pack in state.Packs.Values.Where(p => !replacedNames.Contains(p.Name))) + { + var path = ContentInstallFiles.Literal(instance.GameDirectory, "saves/" + request.WorldDirectoryName + "/datapacks/" + pack.Name); + var inspected = pack.Directory ? await WorldContentArchive.FolderDatapackAsync(path, state.Format, ct) : await WorldContentArchive.DatapackAsync(path, state.Format, ct); + expanded += inspected.ExpandedBytes; + foreach (var (key, value) in inspected.Resources) resources.TryAdd(key, (value, pack.Name)); + } + foreach (var file in files) + { + var inspected = await WorldContentArchive.DatapackAsync(file.Source, state.Format, ct); expanded += inspected.ExpandedBytes; + WorldContentArchive.CheckResources(resources, inspected, file.NewName, warnings); + if (expanded > 256L * 1024 * 1024 || resources.Count > 50000) throw new IOException("更新后的数据包资源超过扫描预算。"); + } + var nextManifest = MergeDatapackUpdateManifest(state.Manifest, files, nextTracked); + if ((await store.ReadDatapackWorkspaceAsync(request.WorldDirectoryName, ct)).Revision != state.Revision) throw new IOException("数据包在下载/检查期间改变,请重新读取。"); + var preview = new WorldDatapackUpdatePreview(Guid.NewGuid().ToString("N"), instance.Name, request.WorldDirectoryName, changes, warnings.Distinct().ToArray()); + datapackUpdates[preview.Id] = new(preview, instance, request.WorldDirectoryName, state.Revision, files, nextManifest, rootName, DateTimeOffset.UtcNow); + foreach (var id in datapackUpdates.Keys.Where(k => k != preview.Id).Take(Math.Max(0, datapackUpdates.Count - 8))) datapackUpdates.TryRemove(id, out _); + result = preview; + }, cancellationToken); + return result!; + } + private async Task CheckDatapackUpdateDependenciesAsync(GameInstance instance, string world, ContentInstallManifest manifest, IReadOnlySet removed, IReadOnlyList incoming, IContentDependencyCatalogService catalog, CancellationToken ct) + { + var retained = manifest.Files.Where(f => !removed.Contains(f.ProjectId)).ToArray(); + var all = retained.Concat(incoming).ToArray(); var projects = all.GroupBy(f => f.ProjectId).ToArray(); + if (projects.Length > 64 || projects.Any(p => p.Select(f => f.ReleaseId).Distinct().Count() != 1)) throw new InvalidDataException("来源项目过多或同项目存在不同版本。"); + foreach (var group in projects) + { + foreach (var file in retained.Where(f => f.ProjectId == group.Key)) if (!await MatchesTrackedPackAsync(instance, world, file, ct)) throw new IOException("其它已登记数据包与记录不一致,未猜测依赖关系。"); + var release = await catalog.GetContentReleaseAsync(group.First().ReleaseId, ct); + if (release.ProjectId != group.Key) throw new InvalidDataException("依赖来源身份发生变化。"); + foreach (var dependency in release.Dependencies ?? []) + { + var matches = dependency.VersionId is { } version ? all.Any(f => f.ReleaseId == version) : dependency.ProjectId is { } project && all.Any(f => f.ProjectId == project); + if (dependency.Type == "required" && !matches) throw new InvalidDataException("更新会破坏其它数据包的必需依赖或固定版本:" + group.Key); + if (dependency.Type == "incompatible" && matches) throw new InvalidDataException("更新后的数据包声明了不兼容关系:" + group.Key); + if (dependency.Type is not ("required" or "incompatible" or "optional" or "embedded")) throw new InvalidDataException("未知依赖类型,未更新。"); + } + } + } + private static byte[]? MergeDatapackUpdateManifest(byte[]? original, IReadOnlyList files, IReadOnlyList incoming) + { + if (original is null) { if (incoming.Count != 0) throw new InvalidDataException("缺少原在线来源清单。"); return null; } + var json = JsonNode.Parse(original, documentOptions: new() { MaxDepth = 32 }) as JsonObject ?? throw new InvalidDataException("安装清单无效。"); + if (json["Files"] is not JsonArray records) throw new InvalidDataException("安装清单缺少 Files。"); + var retained = new JsonArray(); var removed = new List(); + foreach (var node in records) + { + var obj = node as JsonObject ?? throw new InvalidDataException("安装记录无效。"); var path = (string?)obj["RelativePath"] ?? throw new InvalidDataException("安装记录缺少路径。"); + if (files.Any(f => f.OldName is { } old && (ContentInstallFiles.PathKey(path) == ContentInstallFiles.PathKey("datapacks/" + old) || path.StartsWith("datapacks/" + old + "/", StringComparison.Ordinal)))) removed.Add(obj); + else retained.Add(obj.DeepClone()); + } + foreach (var file in incoming) + { + var record = removed.FirstOrDefault(o => (string?)o["ProjectId"] == file.ProjectId)?.DeepClone() as JsonObject ?? new JsonObject(); + var known = JsonSerializer.SerializeToNode(file)!.AsObject(); foreach (var field in known) record[field.Key] = field.Value?.DeepClone(); retained.Add(record); + } + json["Files"] = retained; return JsonSerializer.SerializeToUtf8Bytes(json); + } + public async Task ApplyWorldDatapackUpdateAsync(string previewId, CancellationToken cancellationToken = default) + { + if (!datapackUpdates.TryGetValue(previewId, out var plan) || DateTimeOffset.UtcNow - plan.Created > TimeSpan.FromMinutes(30)) throw new InvalidOperationException("更新预检已失效,请重新检查。"); + WorldDatapackUpdateReceipt? result = null; + await ExecuteAsync("Installing", async ct => + { + var instance = ContentTarget(plan.Instance.Id, true); + if (instance.GameDirectory != plan.Instance.GameDirectory || InstanceIdentity.GameVersion(instance) != InstanceIdentity.GameVersion(plan.Instance)) throw new IOException("目标实例已改变。"); + result = await WorldStore(instance.Id, true).ApplyDatapackUpdateAsync(plan.World, plan.Revision, plan.Files, plan.Manifest, plan.RootName, ct); + datapackUpdates.TryRemove(previewId, out _); + }, cancellationToken); + return result!; + } + public Task DiscardWorldDatapackUpdateAsync(string previewId, CancellationToken cancellationToken = default) + { cancellationToken.ThrowIfCancellationRequested(); datapackUpdates.TryRemove(previewId, out _); return Task.CompletedTask; } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.Directories.cs b/src/SHOU.Launcher.Core/LauncherService.Directories.cs new file mode 100644 index 00000000..1ad0ea9c --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.Directories.cs @@ -0,0 +1,28 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService +{ + private GameInstance RebindDirectory(GameInstance instance, InstanceDirectories directories, LauncherSettings settings) + { + var expected = InstanceDirectoryPolicy.Describe(instance, Paths); + if (!PathEquals(directories.IsolatedDirectory, expected.IsolatedDirectory) || !PathEquals(directories.SharedDirectory, expected.SharedDirectory)) throw new InvalidDataException("实例目录来源不一致,请重新接入原目录。"); + var path = InstanceDirectoryPolicy.Resolve(instance, directories, settings); + if (PathEquals(path, instance.GameDirectory)) return instance with { Directories = directories }; + EnsureInstanceNotRunning(instance); + Downloads.VerifiedDownloader.RejectLink(path); + if (File.Exists(path)) throw new IOException("目标位置是文件,不能切换为游戏目录。"); + if (instance.Origin is null) EnsureIsolatedGamePath(path); + else if (!PathEquals(path, instance.Origin.MinecraftRoot) && !PathEquals(path, instance.Origin.VersionDirectory)) throw new InvalidDataException("目标不属于已确认的实例来源。"); + var next = instance with { GameDirectory = path, Directories = directories, Installed = false }; + EnsureInstanceNotRunning(next); + Downloads.VerifiedDownloader.RejectLink(Path.Combine(path, "mods")); + // Do not mix two incompatible mod profiles in an already populated shared directory. + if (Directory.Exists(Path.Combine(path, "mods")) && Directory.EnumerateFileSystemEntries(Path.Combine(path, "mods")).Any() && Snapshot.Instances.Any(i => i.Id != instance.Id && PathEquals(i.GameDirectory, path) && (InstanceIdentity.GameVersion(i) != InstanceIdentity.GameVersion(instance) || i.Loader != instance.Loader))) + throw new IOException("共用目录已有其它版本或加载器的模组,请选择隔离目录。"); + return next; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.ExistingInstances.cs b/src/SHOU.Launcher.Core/LauncherService.ExistingInstances.cs new file mode 100644 index 00000000..2b569f28 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.ExistingInstances.cs @@ -0,0 +1,50 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IExistingInstanceService, IExistingInstanceBatchService +{ + public async Task InspectInstanceFolderDetailedAsync(string folder, CancellationToken cancellationToken = default) + { await InitializeAsync(cancellationToken).ConfigureAwait(false); return await ExistingInstanceReader.InspectDetailedAsync(folder, cancellationToken); } + public async Task> InspectInstanceFolderAsync(string folder, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + return await ExistingInstanceReader.InspectAsync(folder, cancellationToken).ConfigureAwait(false); + } + public async Task AttachExistingInstanceAsync(ExistingInstanceCandidate candidate, CancellationToken cancellationToken = default) + { + var rows = await AttachExistingInstancesAsync([candidate], cancellationToken); return rows.Single(); + } + public async Task> AttachExistingInstancesAsync(IReadOnlyList candidates, CancellationToken cancellationToken = default) + { + var owned = candidates.ToArray(); if (owned.Length is 0 or > 1000) throw new ArgumentException("请选择 1–1000 个预检通过的实例。"); + var attached = new List(); + await ExecuteAsync("Ready", async ct => + { + foreach (var candidate in owned) + { + ct.ThrowIfCancellationRequested(); + var refreshed = (await ExistingInstanceReader.InspectAsync(candidate.Origin.VersionDirectory, ct)).SingleOrDefault(c => c == candidate) + ?? throw new IOException("实例目录已变化,请重新选择。"); + Downloads.VerifiedDownloader.RejectLink(refreshed.GameDirectory); + if (Snapshot.Instances.Concat(attached).Any(i => i.Origin is { } origin && PathEquals(origin.VersionDirectory, refreshed.Origin.VersionDirectory) || PathEquals(i.GameDirectory, refreshed.GameDirectory) && i.VersionId == refreshed.VersionId)) throw new InvalidOperationException("此实例已经接入,请取消重复项后重试。"); + var instance = new GameInstance(Guid.NewGuid().ToString("N"), refreshed.Name, refreshed.VersionId, refreshed.GameDirectory, + Loader: refreshed.Loader, LoaderVersion: refreshed.LoaderVersion, Installed: true, GameVersionId: refreshed.GameVersion, Origin: refreshed.Origin, Presentation: refreshed.Presentation); + attached.Add(await ImportLegacyRuntimeSettingsAsync(instance, Snapshot.Settings, Paths.ResourcesDirectory, ct).ConfigureAwait(false)); + } + ct.ThrowIfCancellationRequested(); + foreach (var instance in attached) _ = await ExistingInstanceReader.ResolveAsync(instance.Origin!, instance.VersionId, instance.GameVersionId!, ct); + var next = Snapshot with { Instances = Snapshot.Instances.Concat(attached).ToArray(), SelectedInstanceId = attached[0].Id }; + await PersistCandidateAsync(next, ct); Set(_ => next); + }, cancellationToken).ConfigureAwait(false); + return attached; + } + private static bool IsExplicitInstanceDirectory(GameInstance instance, string path) + { + if (instance.Origin is not { } origin || !PathEquals(instance.GameDirectory, path)) return false; + if (origin.OriginalVersionId.Length is 0 or > 180 || origin.OriginalVersionId is "." or ".." || origin.OriginalVersionId.IndexOfAny(['/', '\\', ':']) >= 0) return false; + // Only the explicitly selected version or its owning Minecraft root can be authorized, never arbitrary siblings. + return PathEquals(path, origin.MinecraftRoot) || PathEquals(path, origin.VersionDirectory); + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.ExportSelection.cs b/src/SHOU.Launcher.Core/LauncherService.ExportSelection.cs new file mode 100644 index 00000000..24d80464 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.ExportSelection.cs @@ -0,0 +1,29 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IInstanceExportSelectionService +{ + public async Task> GetInstanceExportEntriesAsync(string instanceId, string directory = "", CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken); var instance = ContentTarget(instanceId, false); + var folder = directory.Length == 0 ? instance.GameDirectory : ContentInstallFiles.Literal(instance.GameDirectory, directory); + SafePath.RejectLinks(folder); if (!Directory.Exists(folder)) throw new DirectoryNotFoundException("导出目录已移动,请重新读取。"); + var rows = new List(); + foreach (var child in new DirectoryInfo(folder).EnumerateFileSystemInfos()) + { + cancellationToken.ThrowIfCancellationRequested(); var relative = Path.GetRelativePath(instance.GameDirectory, child.FullName).Replace('\\', '/'); + var isDirectory = child is DirectoryInfo; var selectable = true; string? reason = null; + try + { + PackPayloadPath.Validate(relative); _ = ContentInstallFiles.Literal(instance.GameDirectory, relative); + if (!ShouPackArchive.Allowed(isDirectory ? relative + "/__scope" : relative)) { selectable = false; reason = "启动器凭据不包含在整合包内。"; } + } + catch (Exception ex) when (ex is IOException or ArgumentException or InvalidDataException) { selectable = false; reason = "此路径无法作为导出内容。"; } + rows.Add(new(relative, isDirectory, child is FileInfo file ? file.Length : 0, selectable, reason)); + } + return rows.OrderByDescending(r => r.Directory).ThenBy(r => r.Name, StringComparer.OrdinalIgnoreCase).ToArray(); + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.FavoriteDownloads.cs b/src/SHOU.Launcher.Core/LauncherService.FavoriteDownloads.cs new file mode 100644 index 00000000..9f00965a --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.FavoriteDownloads.cs @@ -0,0 +1,16 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IContentBatchDownloadService +{ + public async Task DownloadFavoriteFilesAsync(IReadOnlyList files, string directory, CancellationToken cancellationToken = default) + { + FavoriteDownloadResult? result = null; + await ExecuteAsync("Installing", ct => RunContentTransferAsync("favorite-batch:" + Convert.ToHexString(System.Security.Cryptography.SHA256.HashData(System.Text.Encoding.UTF8.GetBytes(directory)))[..16], + async token => { await DownloadFavoriteFilesAsync(files, directory, token).ConfigureAwait(false); }, + async token => { result = await FavoriteDownloads.ExportAsync(files, directory, DownloadCachedContentFileAsync, token, Math.Min(4, Snapshot.Settings.Downloads?.MaximumConnections ?? 4)).ConfigureAwait(false); if (result.Failures.Count > 0) throw new IOException($"已保存 {result.Added} 个文件,复用 {result.Reused} 个文件。未完成:" + string.Join(";", result.Failures.Select(f => f.Name + ":" + f.Reason))); }, ct), cancellationToken).ConfigureAwait(false); + return result!; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.GameSessions.cs b/src/SHOU.Launcher.Core/LauncherService.GameSessions.cs new file mode 100644 index 00000000..6568adf6 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.GameSessions.cs @@ -0,0 +1,55 @@ +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService +{ + private Task? sessionMonitor; + private bool IsGameDirectoryRunning(GameInstance instance) => Snapshot.Instances.Where(i => PathEquals(i.GameDirectory, instance.GameDirectory)) + .Any(i => games.Values.Any(g => g.InstanceId == i.Id && !g.Process.Completion.IsCompleted) || gameSessions.ReadAll(i).Count > 0); + private void EnsureInstanceNotRunning(GameInstance instance) + { + foreach (var other in Snapshot.Instances.Where(i => i.Id != instance.Id && PathEquals(i.GameDirectory, instance.GameDirectory))) + { + if (games.Values.Any(g => g.InstanceId == other.Id && !g.Process.Completion.IsCompleted)) throw new InvalidOperationException("共用此游戏目录的另一实例仍在运行,请先退出。"); + gameSessions.EnsureWritable(other); + } + if (games.Values.Any(g => g.InstanceId == instance.Id && !g.Process.Completion.IsCompleted)) + throw new InvalidOperationException("此实例的游戏仍在运行。请先退出此游戏,或选择其它实例。"); + gameSessions.EnsureWritable(instance); + } + private void RefreshGameSessions() + { + var active = new List(); + foreach (var instance in Snapshot.Instances) + { + IReadOnlyList registered = []; + try { registered = gameSessions.ReadAll(instance); } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { /* Mutation still fails closed through EnsureWritable. */ } + active.AddRange(registered); + foreach (var owned in games.Values.Where(g => g.InstanceId == instance.Id && !g.Process.Completion.IsCompleted && registered.All(s => s.ProcessId != g.Process.ProcessId))) + active.Add(new(instance.Id, owned.Process.ProcessId, + Snapshot.GameSessions.FirstOrDefault(s => s.ProcessId == owned.Process.ProcessId)?.StartedAt ?? DateTimeOffset.UtcNow)); + } + var next = active.DistinctBy(s => s.ProcessId).OrderBy(s => s.InstanceId, StringComparer.Ordinal).ThenBy(s => s.ProcessId).ToArray(); + if (Snapshot.GameSessions.Select(s => (s.InstanceId, s.ProcessId, s.StartedAt)).SequenceEqual(next.Select(s => (s.InstanceId, s.ProcessId, s.StartedAt)))) return; + Set(s => s with { GameSessions = next.Select(session => session with { + WindowReady = s.GameSessions.FirstOrDefault(previous => previous.ProcessId == session.ProcessId)?.WindowReady + }).ToArray(), GameProcessId = next.LastOrDefault()?.ProcessId }); + } + private async Task MonitorGameSessionsAsync() + { + using var timer = new PeriodicTimer(TimeSpan.FromSeconds(2)); + try { while (await timer.WaitForNextTickAsync(lifetime.Token).ConfigureAwait(false)) RefreshGameSessions(); } + catch (OperationCanceledException) when (lifetime.IsCancellationRequested) { } + } + private void SetLaunchStage(string stage) => Set(s => s.LaunchActivity is { } activity + ? s with { LaunchActivity = activity with { Stage = stage, BytesReceived = 0, TotalBytes = null } } : s); + private void SetLaunchTransfer(TransferProgress progress) + { + if (Snapshot.LaunchActivity is null) return; + Set(s => s.LaunchActivity is { } activity ? s with { LaunchActivity = activity with { + Stage = progress.Stage == "Completed" ? "校验下载文件" : "下载游戏文件", + BytesReceived = progress.BytesReceived, TotalBytes = progress.TotalBytes } } : s); + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.GameSettings.cs b/src/SHOU.Launcher.Core/LauncherService.GameSettings.cs new file mode 100644 index 00000000..461d884c --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.GameSettings.cs @@ -0,0 +1,40 @@ +using PCL.Core.Conduit; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Minecraft; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IGameSettingsService, IJavaManagementService +{ + public async Task InspectJavaAsync(string executable, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken); + var name = Path.GetFileName(executable); + if (name is not ("java" or "java.exe" or "javaw.exe")) throw new ArgumentException("请选择 Java 的 java / java.exe 可执行文件。"); + if (name == "javaw.exe" && File.Exists(Path.Combine(Path.GetDirectoryName(executable)!, "java.exe"))) executable = Path.Combine(Path.GetDirectoryName(executable)!, "java.exe"); + var java = await platform.JavaDiscovery.ProbeAsync(executable, cancellationToken); + Set(s => s with { JavaInstallations = s.JavaInstallations.Where(j => !j.ExecutablePath.Equals(java.ExecutablePath, OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal)).Append(java).ToArray() }); + return java; + } + public MemoryStatus? ReadMemoryStatus() + { + try { return platform.MemoryInfo?.Read(); } + catch (Exception ex) when (ex is IOException or FormatException or System.ComponentModel.Win32Exception) { return null; } + } + private string NewGameDirectory(string loader) + { + var root = Snapshot.Settings.GameRoot ?? Paths.InstancesDirectory; + var isolation = Snapshot.Settings.LaunchOptions?.Isolation ?? InstanceIsolation.All; + return SafePath.Within(root, isolation == InstanceIsolation.Shared || isolation == InstanceIsolation.Modded && loader == "vanilla" ? "shared-game" : Guid.NewGuid().ToString("N")); + } + private IReadOnlyList EffectiveSources() + { + var parsed = DownloadSources.Parse(Snapshot.Settings.DownloadSourcesJson); + var preference = Snapshot.Settings.Downloads?.SourcePreference ?? DownloadSourcePreference.Custom; + if (preference == DownloadSourcePreference.Custom) return parsed; + parsed = DownloadSources.Parse(""); + foreach (var source in parsed) source.Priority += ((source.Layout == SourceLayout.Official) == (preference == DownloadSourcePreference.OfficialFirst)) ? -1000 : 1000; + return parsed; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.HomeImages.cs b/src/SHOU.Launcher.Core/LauncherService.HomeImages.cs new file mode 100644 index 00000000..bc8a0e17 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.HomeImages.cs @@ -0,0 +1,25 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : ICustomHomeImageService +{ + public async Task ReadCustomHomeImageAsync(string source, string documentLocation, bool remoteDocument, CancellationToken cancellationToken = default) + { + if (Uri.TryCreate(source, UriKind.Absolute, out var uri) && uri.Scheme is "http" or "https") + { + if (uri.Scheme != "https" || uri.UserInfo.Length != 0 || uri.IsLoopback) throw new ArgumentException("网络主页图片须为不含凭据的 HTTPS 地址。"); + return await ReadPublicDocumentAsync(uri, 20 * 1024 * 1024, cancellationToken, "image/*"); + } + if (remoteDocument) + { + if (!Uri.TryCreate(documentLocation, UriKind.Absolute, out var document) || !Uri.TryCreate(document, source, out var resolved) || resolved.Scheme != "https" || resolved.UserInfo.Length != 0 || resolved.IsLoopback) throw new ArgumentException("网络主页不能读取本地图片。"); + return await ReadPublicDocumentAsync(resolved, 20 * 1024 * 1024, cancellationToken, "image/*"); + } + if (string.IsNullOrWhiteSpace(source) || !Path.IsPathFullyQualified(documentLocation)) throw new ArgumentException("图片路径无效。"); + var path = Path.IsPathFullyQualified(source) ? Path.GetFullPath(source) : Path.GetFullPath(source, Path.GetDirectoryName(documentLocation)!); + SafePath.RejectLinks(path); if (new FileInfo(path).Length > 20 * 1024 * 1024) throw new IOException("主页图片过大。"); + return await File.ReadAllBytesAsync(path, cancellationToken); + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.Information.Releases.cs b/src/SHOU.Launcher.Core/LauncherService.Information.Releases.cs new file mode 100644 index 00000000..62153bb9 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.Information.Releases.cs @@ -0,0 +1,47 @@ +using System.Globalization; +using System.Net; +using System.Text.RegularExpressions; +using System.Xml; +using System.Xml.Linq; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService +{ + public async Task> CheckLauncherReleasesAsync(CancellationToken cancellationToken = default) + { + try { return await ReadReleasesApiAsync(cancellationToken).ConfigureAwait(false); } + catch (HttpRequestException ex) when (ex.StatusCode is HttpStatusCode.Forbidden or HttpStatusCode.TooManyRequests) + { + // This public feed is requested only by the same explicit manual check. No credentials or assets. + var bytes = await ReadPublicDocumentAsync(new("https://github.com/Conduit-Club/SHOU-Launcher/releases.atom"), 2 * 1024 * 1024, cancellationToken, "application/atom+xml").ConfigureAwait(false); + try + { + using var stream = new MemoryStream(bytes); + using var reader = XmlReader.Create(stream, new XmlReaderSettings { DtdProcessing = DtdProcessing.Prohibit, XmlResolver = null, MaxCharactersInDocument = 2 * 1024 * 1024 }); + var document = XDocument.Load(reader); XNamespace atom = "http://www.w3.org/2005/Atom"; + if (document.Root?.Name != atom + "feed") throw new InvalidDataException("发行订阅格式无效。"); + var releases = new List(); + foreach (var entry in document.Root.Elements(atom + "entry").Take(20)) + { + cancellationToken.ThrowIfCancellationRequested(); + var links = entry.Elements(atom + "link").Where(e => (string?)e.Attribute("rel") == "alternate").ToArray(); + if (links.Length != 1 || !Uri.TryCreate((string?)links[0].Attribute("href"), UriKind.Absolute, out var page) + || !IsRepositoryPage(page) || !page.IsDefaultPort || page.Query.Length != 0 || page.Fragment.Length != 0 + || !page.AbsolutePath.StartsWith("/Conduit-Club/SHOU-Launcher/releases/tag/", StringComparison.Ordinal)) throw new InvalidDataException("发行页面地址无效。"); + var tag = Uri.UnescapeDataString(page.AbsolutePath["/Conduit-Club/SHOU-Launcher/releases/tag/".Length..]); + if (tag.Length is < 1 or > 160 || tag.Any(char.IsControl) || !DateTimeOffset.TryParse(entry.Element(atom + "updated")?.Value, CultureInfo.InvariantCulture, DateTimeStyles.RoundtripKind, out var published)) throw new InvalidDataException("发行版本或日期无效。"); + var title = entry.Element(atom + "title")?.Value ?? tag; if (title.Length > 512) title = title[..512]; + var content = entry.Element(atom + "content")?.Value ?? ""; + if (content.Length > 65536) content = content[..65536]; + content = Regex.Replace(content, "|", "\n", RegexOptions.IgnoreCase | RegexOptions.NonBacktracking); + content = WebUtility.HtmlDecode(Regex.Replace(content, "<[^>]*>", "", RegexOptions.NonBacktracking)).Trim(); + releases.Add(new(tag, title, content[..Math.Min(32768, content.Length)], published, page, null)); + } + return releases.OrderByDescending(r => r.Published).ToArray(); + } + catch (XmlException error) { throw new InvalidDataException("发行订阅无法读取。可前往项目发行页面查看。", error); } + } + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.Information.cs b/src/SHOU.Launcher.Core/LauncherService.Information.cs new file mode 100644 index 00000000..702c4a74 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.Information.cs @@ -0,0 +1,76 @@ +using System.Net.Http.Json; +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : ILauncherInformationService +{ + private readonly HttpClient informationHttp; + private readonly bool ownsInformationHttp; + private const string RepositoryApi = "https://api.github.com/repos/Conduit-Club/SHOU-Launcher/"; + private async Task> ReadReleasesApiAsync(CancellationToken cancellationToken) + { + using var json = JsonDocument.Parse(await ReadPublicDocumentAsync(new(RepositoryApi + "releases?per_page=20"), 2 * 1024 * 1024, cancellationToken)); + List releases = []; + foreach (var release in json.RootElement.EnumerateArray().Take(20)) + { + if (release.GetProperty("draft").GetBoolean()) continue; + var page = new Uri(release.GetProperty("html_url").GetString()!); + if (!IsRepositoryPage(page)) throw new InvalidDataException("发行页面地址无效。"); + releases.Add(new(release.GetProperty("tag_name").GetString() ?? "", release.GetProperty("name").GetString() ?? "", + (release.GetProperty("body").GetString() ?? "")[..Math.Min(32768, (release.GetProperty("body").GetString() ?? "").Length)], + release.GetProperty("published_at").GetDateTimeOffset(), page, release.GetProperty("prerelease").GetBoolean())); + } + return releases.OrderByDescending(r => r.Published).ToArray(); + } + public async Task> GetLauncherFeedbackAsync(CancellationToken cancellationToken = default) + { + using var json = JsonDocument.Parse(await ReadPublicDocumentAsync(new(RepositoryApi + "issues?state=all&per_page=50"), 2 * 1024 * 1024, cancellationToken)); + List entries = []; + foreach (var issue in json.RootElement.EnumerateArray().Take(50)) + { + if (issue.TryGetProperty("pull_request", out _)) continue; + var page = new Uri(issue.GetProperty("html_url").GetString()!); + if (!IsRepositoryPage(page)) throw new InvalidDataException("反馈页面地址无效。"); + var text = issue.GetProperty("body").GetString() ?? ""; + entries.Add(new(issue.GetProperty("title").GetString() ?? "", issue.GetProperty("state").GetString() ?? "", page, text[..Math.Min(4096, text.Length)])); + } + return entries; + } + public async Task ReadHomeDocumentAsync(string location, bool remote, CancellationToken cancellationToken = default) + { + byte[] bytes; + if (remote) + { + if (!Uri.TryCreate(location, UriKind.Absolute, out var uri) || uri.Scheme != "https" || !string.IsNullOrEmpty(uri.UserInfo) || uri.IsLoopback) throw new ArgumentException("网络主页须为不含凭据的 HTTPS 文本地址。"); + bytes = await ReadPublicDocumentAsync(uri, 262144, cancellationToken, "text/plain"); + } + else + { + if (!Path.IsPathFullyQualified(location) || Path.GetExtension(location).ToLowerInvariant() is not (".txt" or ".md" or ".xaml")) throw new ArgumentException("本地主页支持 TXT / Markdown / XAML 文件。"); + SafePath.RejectLinks(location); + if (new FileInfo(location).Length > 262144) throw new InvalidDataException("主页文件不能超过 256 KiB。"); + bytes = await File.ReadAllBytesAsync(location, cancellationToken); + } + return Encoding.UTF8.GetString(bytes); + } + private async Task ReadPublicDocumentAsync(Uri uri, int limit, CancellationToken ct, string accept = "application/json") + { + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(20)); + using var request = new HttpRequestMessage(HttpMethod.Get, uri); + request.Headers.UserAgent.ParseAdd("SHOU-Launcher/1.6.2"); request.Headers.Accept.ParseAdd(accept); + using var response = await informationHttp.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, timeout.Token); + response.EnsureSuccessStatusCode(); + if (response.Content.Headers.ContentLength > limit) throw new InvalidDataException("响应超过大小限制。"); + await using var source = await response.Content.ReadAsStreamAsync(timeout.Token); using var target = new MemoryStream(); + var buffer = new byte[16384]; int count; + while ((count = await source.ReadAsync(buffer, timeout.Token)) != 0) { if (target.Length + count > limit) throw new InvalidDataException("响应超过大小限制。"); target.Write(buffer, 0, count); } + return target.ToArray(); + } + private static bool IsRepositoryPage(Uri uri) => uri.Scheme == "https" && uri.Host == "github.com" && string.IsNullOrEmpty(uri.UserInfo) + && uri.AbsolutePath.StartsWith("/Conduit-Club/SHOU-Launcher/", StringComparison.Ordinal); +} diff --git a/src/SHOU.Launcher.Core/LauncherService.InstallerCatalog.cs b/src/SHOU.Launcher.Core/LauncherService.InstallerCatalog.cs new file mode 100644 index 00000000..a9b1953e --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.InstallerCatalog.cs @@ -0,0 +1,37 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.Loaders; +using SHOU.Launcher.Core.Minecraft; +using System.Collections.Concurrent; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IInstallerCatalogService +{ + private readonly ConcurrentDictionary installerTransfers = new(); + public async Task GetInstallerCatalogAsync(string loader, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + return await new InstallerCatalogReader(http).ReadAsync(loader, cancellationToken).ConfigureAwait(false); + } + public Task SaveInstallerAsync(InstallerVersion version, string destination, CancellationToken cancellationToken = default) + { + if (!Path.IsPathFullyQualified(destination) || !Path.GetExtension(destination).Equals(".jar", StringComparison.OrdinalIgnoreCase)) + throw new ArgumentException("请选择本机 JAR 文件保存位置。"); + var uri = InstallerCatalogReader.ArtifactUri(version); + return ExecuteAsync("Installing", async ct => + { + using var cancellation = CancellationTokenSource.CreateLinkedTokenSource(ct); + installCancellation = cancellation; + var ownership = downloadOwners.Begin("installer-file:" + version.Loader + ":" + version.ArtifactVersion); + installerTransfers[ownership.Generation] = (version, destination); + try + { + using var client = new HttpClient(new ConfigurableNetworkHandler(network, allowAutoRedirect: false)); + await new InstallerCatalogReader(client).SaveAsync(version, destination, Paths.TempDirectory, + new InlineProgress(OnTransfer), cancellation.Token).ConfigureAwait(false); + } + finally { downloadOwners.End(ownership); installCancellation = null; } + }, cancellationToken); + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.InstanceArtwork.cs b/src/SHOU.Launcher.Core/LauncherService.InstanceArtwork.cs new file mode 100644 index 00000000..8e3d7893 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.InstanceArtwork.cs @@ -0,0 +1,71 @@ +using System.Security.Cryptography; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Authentication; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.Instances; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IInstanceArtworkService +{ + public async Task ReadInstanceIconAsync(string instanceId, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); var instance = FindInstance(instanceId); var presentation = instance.Presentation ?? new(); + if (presentation.Icon is not ("auto" or "custom")) return null; + if (presentation.Icon == "custom" && presentation.IconImageSha256 is { } hash) + { + VerifiedDownloader.RejectLink(Paths.LocalDataDirectory); + var path = SafePath.Within(Paths.LocalDataDirectory, "instance-icons/" + hash + ".png"); + var bytes = await WorldContentArchive.ReadFileAsync(Paths.LocalDataDirectory, path, AccountAppearancePng.MaximumPngBytes, cancellationToken); + if (Convert.ToHexStringLower(SHA256.HashData(bytes)) != hash) throw new InvalidDataException("实例图标校验失败。"); + _ = AccountAppearancePng.DecodeIcon(bytes); return bytes; + } + if (instance.Origin is not { } origin) return null; + var legacy = SafePath.Within(origin.VersionDirectory, "PCL/Logo.png"); + if (!File.Exists(legacy)) return null; + return InstanceIconImages.Normalize(await WorldContentArchive.ReadFileAsync(origin.VersionDirectory, legacy, AccountAppearancePng.MaximumPngBytes, cancellationToken), cancellationToken); + } + public Task SaveInstanceIconAsync(string instanceId, ReadOnlyMemory squarePng, CancellationToken cancellationToken = default) + { + // Own the request bytes before any await; the caller cannot mutate the confirmed image during publication. + var owned = squarePng.ToArray(); + return ExecuteAsync("Ready", async ct => + { + var pixels = AccountAppearancePng.DecodeIcon(owned); + if (pixels.Width != 256 || pixels.Height != 256) throw new InvalidDataException("请先裁剪成 256×256 的 PNG 图标。"); + var bytes = Tools.ToolImages.EncodeRgba(256, 256, pixels.Rgba.Span); ct.ThrowIfCancellationRequested(); + var hash = Convert.ToHexStringLower(SHA256.HashData(bytes)); var instance = FindInstance(instanceId); + VerifiedDownloader.RejectLink(Paths.LocalDataDirectory); + var path = SafePath.Within(Paths.LocalDataDirectory, "instance-icons/" + hash + ".png"); var stage = path + ".tmp-" + Guid.NewGuid().ToString("N"); var created = false; var committed = false; var staged = false; + Directory.CreateDirectory(Path.GetDirectoryName(path)!); + VerifiedDownloader.RejectLink(Path.GetDirectoryName(path)!); + try + { + if (File.Exists(path)) + { + var previous = await WorldContentArchive.ReadFileAsync(Paths.LocalDataDirectory, path, AccountAppearancePng.MaximumPngBytes, ct); + if (!previous.AsSpan().SequenceEqual(bytes)) throw new IOException("已有图标缓存与内容身份不符。"); + } + else + { + await using (var output = new FileStream(stage, FileMode.CreateNew, FileAccess.Write, FileShare.None, 65536, true)) { staged = true; await output.WriteAsync(bytes, ct); await output.FlushAsync(ct); } + ct.ThrowIfCancellationRequested(); VerifiedDownloader.RejectLink(path); File.Move(stage, path, false); created = true; + } + var presentation = (instance.Presentation ?? new()) with { Icon = "custom", IconImageSha256 = hash }; + var next = Snapshot with { Instances = Snapshot.Instances.Select(i => i.Id == instanceId ? i with { Presentation = presentation } : i).ToArray() }; + await PersistCandidateAsync(next, ct); committed = true; Set(s => s with { Instances = next.Instances }); + } + finally + { + if (staged) { VerifiedDownloader.RejectLink(stage); if (File.Exists(stage)) File.Delete(stage); } + if (created && !committed && File.Exists(path)) + { + var current = await WorldContentArchive.ReadFileAsync(Paths.LocalDataDirectory, path, AccountAppearancePng.MaximumPngBytes, CancellationToken.None); + if (Convert.ToHexStringLower(SHA256.HashData(current)) == hash) File.Delete(path); + } + } + }, cancellationToken); + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.InstanceMods.cs b/src/SHOU.Launcher.Core/LauncherService.InstanceMods.cs new file mode 100644 index 00000000..3234addc --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.InstanceMods.cs @@ -0,0 +1,204 @@ +using System.Collections.Concurrent; +using System.Security.Cryptography; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Catalog; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IInstanceModUpdateService, IInstanceModUpdateProgressService, IInstanceModRefreshService, IInstanceResourceUpdateService, IInstanceManualUpdateService +{ + private sealed record ModUpdateState(GameInstance Instance, ContentInstalledFile Old, ContentRelease Release, ContentFile File, DateTimeOffset Expires); + private readonly ConcurrentDictionary modUpdates = new(); + public async Task CheckInstanceModUpdatesAsync(string instanceId, CancellationToken cancellationToken = default) + => await CheckInstanceModUpdatesAsync(instanceId, TimeSpan.FromMinutes(4), cancellationToken).ConfigureAwait(false); + public Task CheckInstanceModUpdatesWithProgressAsync(string instanceId, IProgress progress, CancellationToken cancellationToken = default) + => CheckInstanceModUpdatesAsync(instanceId, TimeSpan.FromMinutes(4), cancellationToken, new PackProgressReporter(progress)); + private sealed record ScanFile(InstanceContentEntry Row, long Size, string Sha1, string Sha512, ContentInstalledFile? Origin, string CacheKey, ModOnlineCache.Entry? Cached); + public Task RefreshInstanceModUpdatesAsync(string instanceId, IProgress? progress = null, CancellationToken cancellationToken = default) + => CheckInstanceModUpdatesAsync(instanceId, TimeSpan.FromMinutes(4), cancellationToken, progress is null ? null : new PackProgressReporter(progress), true); + internal async Task CheckInstanceModUpdatesAsync(string instanceId, TimeSpan budget, CancellationToken cancellationToken = default, IProgress? progress = null, bool refresh = false) + => await CheckInstanceFileUpdatesAsync(instanceId, "mods", budget, cancellationToken, progress, refresh).ConfigureAwait(false); + public Task CheckInstanceResourceUpdatesAsync(string instanceId, string kind, bool refresh = false, + IProgress? progress = null, CancellationToken cancellationToken = default) + { + if (kind is not ("resourcepacks" or "shaders")) throw new ArgumentException("请选择资源包或光影包。"); + return CheckInstanceFileUpdatesAsync(instanceId, kind, TimeSpan.FromMinutes(4), cancellationToken, progress is null ? null : new PackProgressReporter(progress), refresh); + } + private async Task CheckInstanceFileUpdatesAsync(string instanceId, string section, TimeSpan budget, + CancellationToken cancellationToken, IProgress? progress, bool refresh) + { + var kind = section == "mods" ? "mod" : section == "resourcepacks" ? "resourcepack" : "shader"; + await InitializeAsync(cancellationToken).ConfigureAwait(false); + var instance = ContentTarget(instanceId, false); + var manifest = await ContentInstallFiles.ReadManifestAsync(instance, cancellationToken).ConfigureAwait(false); + var rows = await Task.Run(() => InstanceWorkspace.List(instance, section, cancellationToken), cancellationToken).ConfigureAwait(false); + var updates = new ConcurrentBag(); var notices = new ConcurrentBag(); var info = new ConcurrentBag(); + var files = new ConcurrentBag(); var attempted = new ConcurrentDictionary(StringComparer.Ordinal); + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); timeout.CancelAfter(budget); + using var transport = ContentTransport(); var curseForge = new CurseForgeCatalog(transport, build.CurseForgeApiKey); + foreach (var item in modUpdates.Where(p => p.Value.Expires < DateTimeOffset.UtcNow || p.Value.Instance.Id == instanceId)) modUpdates.TryRemove(item.Key, out _); + var checkedFiles = 0; progress?.Report(new(kind == "mod" ? "核对模组更新" : "核对资源更新", 0, rows.Count)); + var configuration = Snapshot.Settings.DownloadSourcesJson + ":" + (Snapshot.Settings.Downloads?.SourcePreference.ToString() ?? "") + ":" + !string.IsNullOrWhiteSpace(build.CurseForgeApiKey); + void Complete(InstanceContentEntry row) { if (attempted.TryAdd(row.RelativePath, 0)) progress?.Report(new(kind == "mod" ? "核对模组更新" : "核对资源更新", Interlocked.Increment(ref checkedFiles), rows.Count, row.Name)); } + try + { + await Parallel.ForEachAsync(rows, new ParallelOptions { MaxDegreeOfParallelism = 4, CancellationToken = timeout.Token }, async (row, ct) => + { + try + { + var path = ContentInstallFiles.Literal(instance.GameDirectory, row.RelativePath); + await using var stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); + var size = stream.Length; var sha1 = Convert.ToHexStringLower(await SHA1.HashDataAsync(stream, ct)); stream.Position = 0; + var sha512 = Convert.ToHexStringLower(await SHA512.HashDataAsync(stream, ct)); + var tracked = manifest.Files.SingleOrDefault(f => EnabledModPath(f.RelativePath) == EnabledModPath(row.RelativePath)); + if (tracked is not null && (tracked.Size != size || tracked.Sha1 != sha1 || tracked.Sha512 != sha512)) throw new IOException("文件已被修改,请先核对来源。"); + var origin = tracked is null ? null : NormalizeModOrigin(tracked); + var key = (kind == "mod" ? "" : "resource-update-v1:" + kind + ":") + sha1 + ":" + size + ":" + InstanceIdentity.GameVersion(instance) + ":" + (kind == "mod" ? instance.Loader : "") + ":" + origin?.ProjectId + ":" + origin?.ReleaseId + ":" + configuration; + files.Add(new(row, size, sha1, sha512, origin, key, refresh ? null : await ModOnlineCache.ReadAsync(Paths.CacheDirectory, key, ct))); + } + catch (OperationCanceledException) { throw; } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidDataException or InvalidOperationException) { notices.Add(row.Name + ":无法核实本地文件,未计为最新版。"); Complete(row); } + }); + var unknown = files.Where(f => f.Cached is null && (f.Origin is null || !IsNumericCfProject(f.Origin.ProjectId))).ToArray(); + IReadOnlyDictionary modrinth = new Dictionary(); + var batchFailed = false; + if (unknown.Length > 0) + { + try { using var batch = CancellationTokenSource.CreateLinkedTokenSource(timeout.Token); batch.CancelAfter(TimeSpan.FromMilliseconds(Math.Min(2000, Math.Max(50, budget.TotalMilliseconds / 4)))); modrinth = await Catalog.ReleasesFromHashesAsync(unknown.Select(f => f.Sha1).ToArray(), batch.Token); } + catch (OperationCanceledException) when (!timeout.IsCancellationRequested) { batchFailed = true; } + catch (OperationCanceledException) { throw; } + catch (Exception ex) when (ex is IOException or HttpRequestException or AggregateException or InvalidOperationException) { batchFailed = true; } + } + var cfMatches = new Dictionary(StringComparer.Ordinal); + if (!batchFailed && !string.IsNullOrWhiteSpace(build.CurseForgeApiKey)) + { + var hashes = new List<(ScanFile File, uint Fingerprint)>(); + foreach (var file in unknown.Where(f => !modrinth.ContainsKey(f.Sha1))) + { + try { await using var stream = File.OpenRead(ContentInstallFiles.Literal(instance.GameDirectory, file.Row.RelativePath)); hashes.Add((file, await CurseForgeFingerprint.ComputeAsync(stream, timeout.Token))); } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { } + } + try + { + var matches = await curseForge.MatchFingerprintsAsync(hashes.Select(f => f.Fingerprint).ToArray(), timeout.Token); + foreach (var pair in hashes) if (matches.TryGetValue(pair.Fingerprint, out var release) && ContentInstallPlanner.FilesFor(release).Any(f => f.Sha1 == pair.File.Sha1 && f.Size == pair.File.Size)) cfMatches[pair.File.Sha1] = release; + } + catch (OperationCanceledException) { throw; } + catch (Exception ex) when (ex is IOException or HttpRequestException or InvalidOperationException) { } + } + var releaseQueries = new ConcurrentDictionary>>(StringComparer.Ordinal); + await Parallel.ForEachAsync(files, new ParallelOptions { MaxDegreeOfParallelism = 4, CancellationToken = timeout.Token }, async (file, ct) => + { + var row = file.Row; var verified = false; + try + { + var origin = file.Origin; var fromCurseForge = origin is not null && IsNumericCfProject(origin.ProjectId); + if (fromCurseForge && !origin!.ReleaseId.StartsWith(origin.ProjectId + "-", StringComparison.Ordinal)) throw new InvalidDataException("CurseForge 版本身份不完整。"); + var current = file.Cached?.Current ?? (fromCurseForge ? await curseForge.ReleaseAsync(origin!.ReleaseId, ct) + : modrinth.TryGetValue(file.Sha1, out var mr) ? mr : cfMatches.TryGetValue(file.Sha1, out var cf) ? cf : await Catalog.ReleaseFromSha1Async(file.Sha1, ct)); + if (fromCurseForge && current.ProjectId != origin!.ProjectId) throw new InvalidDataException("在线项目与安装清单不符。"); + if (current.ProjectId is not { } project || !ContentInstallPlanner.FilesFor(current).Any(f => f.Sha1 == file.Sha1 && f.Size == file.Size)) throw new InvalidDataException("本地文件与在线身份不符。"); + fromCurseForge = IsNumericCfProject(project); + ContentRelease? next; ContentProject? projectInfo = file.Cached?.Project; + if (kind != "mod") + { + projectInfo ??= fromCurseForge ? await curseForge.ProjectAsync(project, ct) : await Catalog.ProjectAsync(project, ct); + if (projectInfo.Id != project || projectInfo.Kind != kind) throw new InvalidDataException("资源项目身份或类别不符。"); + } + if (file.Cached is { } cached) next = cached.Next; + else + { + var releases = await releaseQueries.GetOrAdd(project, _ => fromCurseForge ? curseForge.ReleasesAsync(project, InstanceIdentity.GameVersion(instance), kind == "mod" ? instance.Loader : null, ct) : Catalog.ReleasesAsync(project, InstanceIdentity.GameVersion(instance), kind == "mod" ? instance.Loader : null, ct)); + next = releases.Where(r => r.ProjectId == project && r.ReleaseChannel == "release" && r.Published > current.Published && ContentInstallPlanner.Compatible(r, kind, InstanceIdentity.GameVersion(instance), instance.Loader)) + .OrderByDescending(r => r.Published).FirstOrDefault(r => ContentInstallPlanner.FilesFor(r).Count(f => f.Primary) == 1 || ContentInstallPlanner.FilesFor(r).Count == 1); + } + verified = true; + var checkedAt = file.Cached?.Checked ?? DateTimeOffset.UtcNow; + try { await ModOnlineCache.WriteAsync(Paths.CacheDirectory, file.CacheKey, new(1, checkedAt, current, next, projectInfo), ct); } + catch (IOException) { } + + if (next is not null && next.ProjectId == project && next.ReleaseChannel == "release" && next.Published > current.Published && ContentInstallPlanner.Compatible(next, kind, InstanceIdentity.GameVersion(instance), instance.Loader)) + { + var nextFiles = ContentInstallPlanner.FilesFor(next); + var target = nextFiles.Count == 1 ? nextFiles[0] : nextFiles.Single(f => f.Primary); + if (target.Sha1 != file.Sha1) + { + ContentInstallFiles.ValidateFile(target); + var token = Guid.NewGuid().ToString("N"); var old = new ContentInstalledFile(project, current.Id, kind, row.RelativePath, file.Sha1, file.Sha512, file.Size, Client: origin?.Client ?? "required", Server: origin?.Server ?? "unsupported"); + modUpdates[token] = new(instance, old, next, target, DateTimeOffset.MaxValue); + var page = fromCurseForge ? new Uri("https://www.curseforge.com/projects/" + project[3..] + "/files") : new Uri("https://modrinth.com/" + kind + "/" + project + "/changelog"); + updates.Add(new(token, instance.Id, row.RelativePath, row.DisplayName, row.ModVersion ?? current.Version, next.Version, target.Size, page, project)); + } + } + if (projectInfo is null) + { + try + { + using var metadata = CancellationTokenSource.CreateLinkedTokenSource(ct); metadata.CancelAfter(TimeSpan.FromSeconds(2)); + projectInfo = fromCurseForge ? await curseForge.ProjectAsync(project, metadata.Token) : await Catalog.ProjectAsync(project, metadata.Token); + await ModOnlineCache.WriteAsync(Paths.CacheDirectory, file.CacheKey, new(1, checkedAt, current, next, projectInfo), ct); + } + catch (OperationCanceledException) { } + catch (Exception ex) when (ex is IOException or HttpRequestException or AggregateException or InvalidOperationException) { } + } + if (projectInfo is not null && projectInfo.Id == project) info.Add(new(row.RelativePath, projectInfo, current.Version, kind == "mod" ? null : (next ?? current).Dependencies)); + } + catch (OperationCanceledException) when (cancellationToken.IsCancellationRequested) { throw; } + catch (OperationCanceledException) { if (!verified) notices.Add(row.Name + ":在线检查超时,尚未核实更新;未改动此文件。"); } + catch (Exception ex) when (ex is IOException or HttpRequestException or InvalidDataException or AggregateException or InvalidOperationException or System.Text.Json.JsonException) { notices.Add(row.Name + ":暂未能核实官方更新,未计为最新版;未改动此文件。"); } + finally { Complete(row); } + }); + } + catch (OperationCanceledException) when (!cancellationToken.IsCancellationRequested && timeout.IsCancellationRequested) { } + foreach (var row in rows.Where(r => !attempted.ContainsKey(r.RelativePath))) notices.Add(row.Name + ":本次检查达到时间上限,尚未查询;可稍后重试,未改动此文件。"); + cancellationToken.ThrowIfCancellationRequested(); progress?.Report(new("检查结束", checkedFiles, rows.Count)); + return new(updates.OrderBy(u => u.Name, StringComparer.OrdinalIgnoreCase).ToArray(), checkedFiles, notices.Order(StringComparer.Ordinal).ToArray(), info.ToArray()); + } + public Task ApplyInstanceModUpdateAsync(string token, CancellationToken cancellationToken = default) + => ApplyInstanceFileUpdateAsync(token, false, cancellationToken); + public Task ApplyInstanceResourceUpdateAsync(string token, CancellationToken cancellationToken = default) + => ApplyInstanceFileUpdateAsync(token, true, cancellationToken); + private async Task ApplyInstanceFileUpdateAsync(string token, bool resource, CancellationToken cancellationToken) + { + if (!modUpdates.TryGetValue(token, out var state) || state.Expires < DateTimeOffset.UtcNow) throw new InvalidOperationException("更新检查已过期,请重新检查。"); + if (resource != (state.Old.Kind is "resourcepack" or "shader")) throw new InvalidOperationException("更新令牌不属于当前资源类别。"); + InstanceModUpdateResult? result = null; + await ExecuteAsync("Installing", async ct => + { + var instance = ContentTarget(state.Instance.Id, true); + if (instance != state.Instance) throw new IOException("实例配置已改变,请重新检查更新。"); + var previous = await ContentInstallFiles.ReadManifestAsync(instance, ct).ConfigureAwait(false); + var normalized = previous with { Files = previous.Files.Select(NormalizeModOrigin).ToArray() }; + var paths = new HashSet(StringComparer.Ordinal) { state.Old.RelativePath, EnabledModPath(state.Old.RelativePath) }; + var request = new ContentInstallRequest(instance.Id, state.Old.ProjectId, state.Release.Id, state.File.FileName, state.Old.Kind); + var replacing = new HashSet(StringComparer.Ordinal) { EnabledModPath(state.Old.RelativePath) }; + normalized = normalized with { Files = normalized.Files.Where(f => !paths.Contains(f.RelativePath)).ToArray() }; + var plan = await new ContentInstallPlanner(this, this).PlanAsync(instance, InstanceIdentity.GameVersion(instance), request, ct, replacingModPaths: resource ? null : replacing, installedMods: normalized, replacingResourcePath: resource ? state.Old.RelativePath : null).ConfigureAwait(false); + if (!plan.Files.Any(f => !f.Dependency && f.ReleaseId == state.Release.Id && f.File == state.File)) + throw new IOException("在线资源文件在检查后发生变化,请重新检查更新。"); + await RunContentTransferAsync((resource ? "resource-update:" : "mod-update:") + instance.Id, retry => ApplyInstanceFileUpdateAsync(token, resource, retry), async transfer => + result = await ModUpdateFiles.ApplyAsync(instance, state.Old, plan, DownloadInstallFileAsync, () => EnsureInstanceNotRunning(instance), transfer).ConfigureAwait(false), ct).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false); + modUpdates.TryRemove(token, out _); return result!; + } + private static string EnabledModPath(string path) => path.EndsWith(".disabled", StringComparison.OrdinalIgnoreCase) ? path[..^9] : path.EndsWith(".old", StringComparison.OrdinalIgnoreCase) ? path[..^4] : path; + private static bool IsNumericCfProject(string value) => value.StartsWith("cf-", StringComparison.Ordinal) + && int.TryParse(value.AsSpan(3), System.Globalization.NumberStyles.None, System.Globalization.CultureInfo.InvariantCulture, out var project) && project > 0; + internal static ContentInstalledFile NormalizeModOrigin(ContentInstalledFile file) + { + // Pack manifests historically store cf-; catalog APIs use cf--. + // Keep existing manifests intact and join only independently recorded numeric identities. + if (IsNumericCfProject(file.ProjectId)) + { + var raw = file.ReleaseId.StartsWith("cf-", StringComparison.Ordinal) ? file.ReleaseId[3..] : file.ReleaseId; + if (int.TryParse(raw, System.Globalization.NumberStyles.None, System.Globalization.CultureInfo.InvariantCulture, out var number) && number > 0) + return file with { ReleaseId = file.ProjectId + "-" + number.ToString(System.Globalization.CultureInfo.InvariantCulture) }; + return file; + } + if (!(file.RelativePath.StartsWith("mods/", StringComparison.Ordinal) || file.RelativePath.StartsWith("resourcepacks/", StringComparison.Ordinal) || file.RelativePath.StartsWith("shaderpacks/", StringComparison.Ordinal)) || file.DownloadUrl is null || !Uri.TryCreate(file.DownloadUrl, UriKind.Absolute, out var uri) || !ContentInstallFiles.AllowedUri(uri)) return file; + var parts = uri.AbsolutePath.Split('/', StringSplitOptions.RemoveEmptyEntries); + return parts.Length == 5 && parts[0] == "data" && parts[2] == "versions" ? file with { ProjectId = parts[1], ReleaseId = parts[3] } : file; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.Instances.cs b/src/SHOU.Launcher.Core/LauncherService.Instances.cs new file mode 100644 index 00000000..e2b139e8 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.Instances.cs @@ -0,0 +1,105 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IInstanceWorkspaceService, IInstanceDirectoryService +{ + public async Task GetInstanceDirectoryAsync(string instanceId, string? contentKind = null, bool createMissing = false, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); cancellationToken.ThrowIfCancellationRequested(); + var instance = FindInstance(instanceId); EnsureIsolatedGamePath(instance.GameDirectory); + var folder = contentKind is null ? instance.GameDirectory : InstanceWorkspace.Folder(instance.GameDirectory, contentKind); + Downloads.VerifiedDownloader.RejectLink(folder); + if (!Directory.Exists(folder) && createMissing) + { + await ExecuteAsync("Ready", ct => + { + ct.ThrowIfCancellationRequested(); EnsureInstanceNotRunning(instance); Downloads.VerifiedDownloader.RejectLink(folder); + Directory.CreateDirectory(folder); Downloads.VerifiedDownloader.RejectLink(folder); return Task.CompletedTask; + }, cancellationToken).ConfigureAwait(false); + } + if (!Directory.Exists(folder)) throw new DirectoryNotFoundException("实例文件夹不存在,请检查实例路径。"); + return folder; + } + private async Task RegisterNewInstanceAsync(GameInstance instance, CancellationToken ct) + { + EnsureIsolatedGamePath(instance.GameDirectory); Downloads.VerifiedDownloader.RejectLink(instance.GameDirectory); + var shared = Path.GetFileName(instance.GameDirectory) == "shared-game"; + var existed = Directory.Exists(instance.GameDirectory); + if (File.Exists(instance.GameDirectory) || existed && !shared) throw new IOException("新实例目录已存在,请重新创建。"); + if (shared && existed && Directory.EnumerateFileSystemEntries(instance.GameDirectory).Any() && !Snapshot.Instances.Any(i => PathEquals(i.GameDirectory, instance.GameDirectory))) throw new IOException("共用游戏目录包含未接入的数据,请先接入已有实例或选择其它根目录。"); + Directory.CreateDirectory(instance.GameDirectory); + try + { + Downloads.VerifiedDownloader.RejectLink(instance.GameDirectory); + var candidate = Snapshot with { Instances = Snapshot.Instances.Append(instance).ToArray(), SelectedInstanceId = Snapshot.Settings.Downloads?.SelectInstalledInstance == false ? Snapshot.SelectedInstanceId : instance.Id }; + await PersistCandidateAsync(candidate, ct).ConfigureAwait(false); + Set(s => s with { Instances = candidate.Instances, SelectedInstanceId = candidate.SelectedInstanceId }); + } + catch + { + try + { + Downloads.VerifiedDownloader.RejectLink(instance.GameDirectory); + if (!existed && Directory.Exists(instance.GameDirectory) && !Directory.EnumerateFileSystemEntries(instance.GameDirectory).Any()) Directory.Delete(instance.GameDirectory); + } + catch (Exception cleanup) when (cleanup is IOException or UnauthorizedAccessException) { Log("Warning", "未完成实例的空目录清理失败:" + cleanup.GetType().Name); } + throw; + } + } + public Task UpdateInstanceAsync(string instanceId, InstanceEdit edit, CancellationToken cancellationToken = default) => ExecuteAsync("Ready", async ct => + { + if (string.IsNullOrWhiteSpace(edit.Name) || edit.Name.Length > 160 || edit.Name.Any(char.IsControl)) throw new ArgumentException("实例名称须为1–160字的单行文字。"); + if (edit.JavaExecutable is { Length: > 0 } java && !Path.IsPathFullyQualified(java)) throw new ArgumentException("Java路径须为绝对路径。"); + if (edit.MemoryMiB is < 512 or > 32768) + throw new ArgumentException("实例最大内存须为512–32768 MiB且不小于初始内存。"); + var instance = FindInstance(instanceId); + EnsureInstanceNotRunning(instance); + if (instance.Origin is { } origin && (edit.DirectoryMode is not null || edit.LaunchOptions != instance.LaunchOptions)) _ = await ExistingInstanceReader.ResolveAsync(origin, instance.VersionId, InstanceIdentity.GameVersion(instance), ct); + if (edit.LaunchOptions is { } options) Minecraft.GameSettingsPolicy.Validate(options); + if (edit.LaunchOptions is { InheritGlobal: false } localOptions) _ = Minecraft.GameSettingsPolicy.Classpath(localOptions.ClasspathPrepend); + var effectiveMinimum = Minecraft.GameSettingsPolicy.Options(instance with { LaunchOptions = edit.LaunchOptions }, Snapshot.Settings).MinimumMemoryMiB ?? Snapshot.Settings.MinimumMemoryMiB; + if (effectiveMinimum > (edit.MemoryMiB ?? Snapshot.Settings.MemoryMiB)) throw new ArgumentException("实例最大内存不能低于其有效初始内存。"); + var next = instance with { Name = edit.Name.Trim(), JavaExecutable = string.IsNullOrWhiteSpace(edit.JavaExecutable) ? null : edit.JavaExecutable, MemoryMiB = edit.MemoryMiB, LaunchOptions = edit.LaunchOptions }; + if (edit.DirectoryMode is { } directoryMode) + { + var directories = InstanceDirectoryPolicy.Describe(instance, Paths) with { Mode = directoryMode }; + var target = InstanceDirectoryPolicy.Resolve(instance, directories, Snapshot.Settings); + if (!PathEquals(target, instance.GameDirectory) && !edit.ConfirmDirectoryChange) throw new InvalidOperationException("请确认切换游戏目录;原目录文件不会移动或合并。"); + next = RebindDirectory(next, directories, Snapshot.Settings); + } + var candidate = Snapshot with { Instances = Snapshot.Instances.Select(i => i.Id == instanceId ? next : i).ToArray() }; + await PersistCandidateAsync(candidate, ct).ConfigureAwait(false); Set(_ => candidate); + }, cancellationToken); + public async Task> ListInstanceContentAsync(string instanceId, string kind, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); cancellationToken.ThrowIfCancellationRequested(); + var instance = FindInstance(instanceId); EnsureIsolatedGamePath(instance.GameDirectory); + return await Task.Run(() => InstanceWorkspace.List(instance, kind, cancellationToken), cancellationToken).ConfigureAwait(false); + } + public Task ImportInstanceContentAsync(string instanceId, string kind, string sourcePath, CancellationToken cancellationToken = default) => ExecuteAsync("Ready", async ct => + { + var instance = FindInstance(instanceId); EnsureIsolatedGamePath(instance.GameDirectory); + EnsureInstanceNotRunning(instance); + await InstanceWorkspace.ImportAsync(instance, kind, sourcePath, ct).ConfigureAwait(false); + }, cancellationToken); + public Task SetInstanceModEnabledAsync(string instanceId, string relativePath, bool enabled, CancellationToken cancellationToken = default) => ExecuteAsync("Ready", ct => + { + ct.ThrowIfCancellationRequested(); var instance = FindInstance(instanceId); EnsureIsolatedGamePath(instance.GameDirectory); + EnsureInstanceNotRunning(instance); + InstanceWorkspace.ToggleMod(instance, relativePath, enabled); return Task.CompletedTask; + }, cancellationToken); + public async Task ExportInstanceAsync(string instanceId, bool includeWorlds, CancellationToken cancellationToken = default) + { + string? output = null; + await ExecuteAsync("Ready", async ct => + { + var instance = FindInstance(instanceId); EnsureIsolatedGamePath(instance.GameDirectory); + EnsureInstanceNotRunning(instance); + output = await InstanceWorkspace.ExportAsync(instance, SafePath.Within(Paths.CacheDirectory, "exports"), includeWorlds, ct).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false); + return output!; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.JavaTrust.cs b/src/SHOU.Launcher.Core/LauncherService.JavaTrust.cs new file mode 100644 index 00000000..94db7c41 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.JavaTrust.cs @@ -0,0 +1,118 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IJavaTrustWorkflowService +{ + private string DerivedJavaRoot => SafePath.Within(Paths.RuntimesDirectory, "derived-trust"); + public async Task> InspectJavaTrustAsync(string javaExecutable, CancellationToken cancellationToken = default) + { + IReadOnlyList? result = null; + await ExecuteAsync("CheckingJavaTrust", async ct => + { + var java = await RequireJavaForTrustAsync(javaExecutable, ct).ConfigureAwait(false); + result = await javaTrust.InspectAsync(java, ct).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false); + return result!; + } + public async Task CreateRepairedJavaCopyAsync(string javaExecutable, CancellationToken cancellationToken = default) + { + JavaTrustDerivation? result = null; + await ExecuteAsync("RepairingJavaTrust", async ct => + { + var java = await RequireJavaForTrustAsync(javaExecutable, ct).ConfigureAwait(false); + result = await DeriveJavaAsync(java, ct).ConfigureAwait(false); + await SaveTrustJavaSelectionAsync(result.Java, ct, new(Snapshot.Settings.JavaExecutable, result.Java.ExecutablePath)).ConfigureAwait(false); + Log("Info", "全局默认Java已选择验证后的独立修复副本;实例显式覆盖保持。源Java未修改,可在Java路径设置中选回。策略=" + result.PolicyId); + }, cancellationToken).ConfigureAwait(false); + return result!; + } + public async Task PrepareJavaTrustCopyAsync(string javaExecutable, CancellationToken cancellationToken = default) + { + JavaTrustDerivation? result = null; + await ExecuteAsync("RepairingJavaTrust", async ct => + { + var java = await RequireJavaForTrustAsync(javaExecutable, ct).ConfigureAwait(false); + result = await DeriveJavaAsync(java, ct).ConfigureAwait(false); + ct.ThrowIfCancellationRequested(); + Set(s => s with { JavaInstallations = s.JavaInstallations.Where(j => !SameJavaPath(j.ExecutablePath, result.Java.ExecutablePath)).Append(result.Java).ToArray() }); + }, cancellationToken).ConfigureAwait(false); + return result!; + } + public async Task SelectJavaTrustCopyAsync(JavaTrustDerivation prepared, CancellationToken cancellationToken = default) + { + JavaTrustSelectionChange? change = null; + await ExecuteAsync("CheckingJavaTrust", async ct => + { + var java = await platform.JavaDiscovery.ProbeAsync(prepared.Java.ExecutablePath, ct).ConfigureAwait(false); + if (!java.IsUsable || !IsDerivedJava(java, prepared.Java.ExecutablePath)) throw new InvalidDataException("副本不再是可用的受控 Java,请重新扫描并创建。"); + // Revalidate the completed receipt and both trees at selection time, not only when the copy was prepared. + var verified = await DeriveJavaAsync(java, ct).ConfigureAwait(false); + if (!SameJavaPath(verified.Java.ExecutablePath, prepared.Java.ExecutablePath) + || !SameJavaPath(verified.SourceJavaExecutable, prepared.SourceJavaExecutable) + || !SameJavaPath(verified.ProvenancePath, prepared.ProvenancePath) + || verified.PolicyId != prepared.PolicyId || verified.SourceTreeSha256 != prepared.SourceTreeSha256 || verified.OutputTreeSha256 != prepared.OutputTreeSha256) + throw new InvalidDataException("副本、源 Java 或来源记录已变化,请重新创建并核验。"); + change = new(Snapshot.Settings.JavaExecutable, verified.Java.ExecutablePath); + await SaveTrustJavaSelectionAsync(verified.Java, ct, change).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false); + return change!; + } + public Task RestoreJavaTrustSelectionAsync(JavaTrustSelectionChange change, CancellationToken cancellationToken = default) + => ExecuteAsync("CheckingJavaTrust", async ct => + { + if (!SameJavaPath(Snapshot.Settings.JavaExecutable ?? "", change.SelectedJavaExecutable)) + throw new InvalidOperationException("默认 Java 已在其它位置更改,本次回退未覆盖新的选择。"); + JavaInstallation? previous = null; + if (!string.IsNullOrWhiteSpace(change.PreviousJavaExecutable)) previous = await RequireJavaForTrustAsync(change.PreviousJavaExecutable, ct).ConfigureAwait(false); + await SaveTrustJavaSelectionAsync(previous, ct).ConfigureAwait(false); + }, cancellationToken); + private async Task SaveTrustJavaSelectionAsync(JavaInstallation? java, CancellationToken ct, JavaTrustSelectionChange? selection = null) + { + ct.ThrowIfCancellationRequested(); + var settings = Snapshot.Settings with { JavaExecutable = java?.ExecutablePath, JavaTrustSelection = selection }; + var candidate = Snapshot with { Settings = settings, JavaInstallations = java is null ? Snapshot.JavaInstallations + : Snapshot.JavaInstallations.Where(j => !SameJavaPath(j.ExecutablePath, java.ExecutablePath)).Append(java).ToArray() }; + await PersistCandidateAsync(candidate, ct).ConfigureAwait(false); + network.Update(settings); Set(s => s with { Settings = settings, JavaInstallations = candidate.JavaInstallations }); + } + private async Task RequireJavaForTrustAsync(string executable, CancellationToken ct) + { + if (!Path.IsPathFullyQualified(executable)) throw new ArgumentException("Java路径必须是绝对路径。"); + var probe = await platform.JavaDiscovery.ProbeAsync(executable, ct).ConfigureAwait(false); + if (!probe.IsUsable) throw new InvalidOperationException("Java无法通过真实probe,未检查或修改证书。"); + var known = Snapshot.JavaInstallations.FirstOrDefault(candidate => SameJavaPath(candidate.ExecutablePath, probe.ExecutablePath)); + var java = known is null ? probe with { Source = "manual:local" } + : probe with { Source = known.Source, ValidatedManifestSha1 = known.ValidatedManifestSha1 }; + if (IsDerivedJava(java, executable)) java = (await DeriveJavaAsync(java, ct).ConfigureAwait(false)).Java; + return java; + } + private async Task DeriveJavaAsync(JavaInstallation java, CancellationToken ct) + { + var result = await javaTrust.CreateRepairedCopyAsync(new(java, DerivedJavaRoot, java.ValidatedManifestSha1), ct).ConfigureAwait(false); + if (!result.Java.IsUsable || result.Java.MajorVersion != java.MajorVersion || result.Java.RuntimeArchitecture != java.RuntimeArchitecture) + throw new InvalidDataException("派生Java的版本或架构验证失败,未选择该副本。"); + var derived = SafePath.Canonical(DerivedJavaRoot); + var home = SafePath.Canonical(result.Java.JavaHome); + if (!SafePath.IsWithin(derived, home) || !SafePath.IsWithin(derived, SafePath.Canonical(result.Java.ExecutablePath))) + throw new IOException("派生Java越过受控runtime根,未选择该副本。"); + return result; + } + private bool IsDerivedJava(JavaInstallation java, string? selectedPath = null) + { + var root = SafePath.Canonical(DerivedJavaRoot); + static bool Inside(string boundary, string path) => SafePath.IsWithin(boundary, path); + var home = SafePath.Canonical(java.JavaHome); + var executable = SafePath.Canonical(java.ExecutablePath); + var actualHomeInside = Inside(root, home); var actualExecutableInside = Inside(root, executable); + var literalInside = Inside(root, Path.GetFullPath(java.JavaHome)) || Inside(root, Path.GetFullPath(java.ExecutablePath)) + || selectedPath is not null && Inside(root, Path.GetFullPath(selectedPath)); + if (!literalInside && !actualHomeInside && !actualExecutableInside) return false; + if (!actualHomeInside || !actualExecutableInside) + throw new IOException("所选派生Java的可执行文件或java.home逃逸,已拒绝以普通外部Java回退。"); + return true; + } + private static bool SameJavaPath(string first, string second) => first.Equals(second, + OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); +} diff --git a/src/SHOU.Launcher.Core/LauncherService.LaunchScript.cs b/src/SHOU.Launcher.Core/LauncherService.LaunchScript.cs new file mode 100644 index 00000000..201b9359 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.LaunchScript.cs @@ -0,0 +1,18 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : ILaunchScriptService +{ + public Task ExportLaunchScriptAsync(string instanceId, string executable, string destination, bool overwrite = false, CancellationToken cancellationToken = default) => ExecuteAsync("Ready", async ct => + { + var instance = FindInstance(instanceId); + if (Path.GetFileName(executable) is not ("SHOU.Launcher.Desktop.exe" or "SHOU.Launcher.Desktop") || !File.Exists(executable)) throw new ArgumentException("请从完整的启动器程序导出脚本。"); + var extension = Snapshot.Platform.OS == LauncherOS.Windows ? ".cmd" : ".command"; + if (!Path.GetExtension(destination).Equals(extension, StringComparison.OrdinalIgnoreCase)) throw new ArgumentException("此平台的启动脚本扩展名应为 " + extension); + if (instance.Origin is { } origin) _ = await ExistingInstanceReader.ResolveAsync(origin, instance.VersionId, InstanceIdentity.GameVersion(instance), ct); + var content = LaunchScript.Build(Snapshot.Platform.OS, executable, Paths.DataDirectory, instanceId, Paths.IsIsolated); + await LaunchScript.SaveAsync(destination, content, overwrite, Snapshot.Platform.OS == LauncherOS.MacOS, ct); + }, cancellationToken); +} diff --git a/src/SHOU.Launcher.Core/LauncherService.LegacyDesktopData.cs b/src/SHOU.Launcher.Core/LauncherService.LegacyDesktopData.cs new file mode 100644 index 00000000..211a787e --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.LegacyDesktopData.cs @@ -0,0 +1,96 @@ +using System.Security.Cryptography; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Authentication; +using SHOU.Launcher.Core.Configuration; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService +{ + private async Task ImportFirstRunLegacyDataAsync(LauncherState state, CancellationToken ct) + { + // A committed sidecar is also the migration receipt: removed accounts/instances never reappear. + if (platform.LegacyDesktopData is null || File.Exists(Path.Combine(Paths.LocalDataDirectory, "shou.desktop.v1.json"))) return state; + var legacy = await platform.LegacyDesktopData.ReadAsync(ct).ConfigureAwait(false); + foreach (var issue in legacy.Issues) Log("Warning", "旧数据接入:" + issue); + var settings = LegacyLaunchSettings.MapGlobalRuntimeSettings(legacy.LaunchSettings, state.Settings, + legacy.ExecutableDirectory, out var runtimeNotices); + foreach (var notice in runtimeNotices) Log("Warning", notice); + var instances = state.Instances.ToList(); + foreach (var folder in legacy.GameFolders) + { + ct.ThrowIfCancellationRequested(); + try + { + var inspection = await ExistingInstanceReader.InspectDetailedAsync(folder, ct).ConfigureAwait(false); + foreach (var candidate in inspection.Candidates) + { + if (instances.Any(i => i.Origin is { } origin && PathEquals(origin.VersionDirectory, candidate.Origin.VersionDirectory))) continue; + var instance = new GameInstance(Guid.NewGuid().ToString("N"), candidate.Name, candidate.VersionId, candidate.GameDirectory, + Loader: candidate.Loader, LoaderVersion: candidate.LoaderVersion, Installed: true, GameVersionId: candidate.GameVersion, + Origin: candidate.Origin, Presentation: candidate.Presentation); + instances.Add(await ImportLegacyRuntimeSettingsAsync(instance, settings, legacy.ExecutableDirectory, ct).ConfigureAwait(false)); + } + if (inspection.Issues.Count > 0) Log("Warning", "部分旧实例元数据无法核实;已保留原目录,未接入这些实例。"); + } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidDataException or ArgumentException) + { Log("Warning", "旧实例目录暂不可读;原文件保留。原因类型:" + ex.GetType().Name); } + } + var accounts = state.Accounts.ToList(); var createdKeys = new List(); + try + { + foreach (var original in legacy.Accounts) + { + ct.ThrowIfCancellationRequested(); var profile = original.Profile; + if (!AccountIdentity.Matches(profile, profile) || accounts.Any(a => a.Id == profile.Id)) continue; + if (profile.Kind != AccountKind.Offline && (!string.IsNullOrEmpty(original.RefreshToken) || !string.IsNullOrEmpty(original.AccessToken))) + { + try + { + var key = AccountKey(profile.Id); + var existing = await platform.Credentials.ReadAsync(key, ct).ConfigureAwait(false); + if (existing is not null) + { + try + { + var stored = JsonSerializer.Deserialize(existing, ConfigurationStore.JsonOptions); + if (stored is null || !AccountIdentity.Matches(profile, stored.Profile)) throw new InvalidDataException("Protected legacy identity mismatch."); + } + finally { CryptographicOperations.ZeroMemory(existing); } + } + else + { + var bytes = JsonSerializer.SerializeToUtf8Bytes(original, ConfigurationStore.JsonOptions); + try { await platform.Credentials.WriteAsync(key, bytes, ct).ConfigureAwait(false); createdKeys.Add(key); } + finally { CryptographicOperations.ZeroMemory(bytes); } + } + profile = profile with { Persisted = true }; + } + catch (CredentialStoreException ex) + { + profile = profile with { Persisted = false, Status = "旧凭据未能安全保存 · 请重新登录" }; + Log("Warning", "旧凭据安全存储不可用;保留原文件与账户记录。原因类型:" + ex.Failure); + } + } + accounts.Add(profile); + } + if (instances.Count == state.Instances.Count && accounts.Count == state.Accounts.Count && settings == state.Settings) return state; + var next = state with { Settings = settings, Instances = instances, Accounts = accounts, + SelectedAccountId = accounts.Any(a => a.Id == legacy.SelectedAccountId) ? legacy.SelectedAccountId : accounts.FirstOrDefault()?.Id, + SelectedInstanceId = instances.FirstOrDefault(i => i.Origin is { } o && legacy.SelectedVersionDirectory is { } selected && PathEquals(o.VersionDirectory, selected))?.Id ?? instances.FirstOrDefault()?.Id }; + await config.SaveAsync(next, ct).ConfigureAwait(false); + Log("Info", $"已接入旧实例 {instances.Count} 个、账户 {accounts.Count} 个;原文件保留,在线凭据仍须服务端验证。"); + return next; + } + catch + { + // Only records created by this transaction can be rolled back. Never touch an existing record. + foreach (var key in createdKeys) + try { await platform.Credentials.DeleteAsync(key, CancellationToken.None).ConfigureAwait(false); } + catch (Exception ex) when (ex is IOException or CredentialStoreException) { Log("Warning", "未完成迁移的安全凭据清理失败:" + ex.GetType().Name); } + throw; + } + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.LegacyMicrosoftAccounts.cs b/src/SHOU.Launcher.Core/LauncherService.LegacyMicrosoftAccounts.cs new file mode 100644 index 00000000..a5b293f2 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.LegacyMicrosoftAccounts.cs @@ -0,0 +1,44 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Authentication; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService +{ + public bool SupportsLegacyMicrosoftImport => platform.LegacyMicrosoftAccounts is not null; + + public async Task> ReadLegacyMicrosoftAccountsAsync(CancellationToken cancellationToken = default) + { + IReadOnlyList result = []; + await ExecuteAsync("Ready", async ct => + { + var source = platform.LegacyMicrosoftAccounts ?? throw new PlatformNotSupportedException("此平台没有旧 Windows 账户读取入口。"); + var credentials = await source.ReadAsync(ct).ConfigureAwait(false); + result = credentials.Select(item => new LegacyMicrosoftAccountChoice(item.SourceId, item.DisplayName)).ToArray(); + }, cancellationToken).ConfigureAwait(false); + return result; + } + + public async Task ImportLegacyMicrosoftAccountAsync(string sourceId, CancellationToken cancellationToken = default) + { + AccountProfile? result = null; + await ExecuteAsync("Authenticating", async ct => + { + var source = platform.LegacyMicrosoftAccounts ?? throw new PlatformNotSupportedException("此平台没有旧 Windows 账户读取入口。"); + // Reread the original, never import a token retained by a UI or a screenshot fixture. + var matches = (await source.ReadAsync(ct).ConfigureAwait(false)).Where(item => item.SourceId == sourceId).Take(2).ToArray(); + if (matches.Length != 1) throw new AuthenticationException("legacy_source_changed", "旧账户已变化,请重新读取并选择。"); + var credential = matches[0]; + redactor.Register(credential.RefreshToken); + redactor.Register(credential.DisplayName); + var original = new AuthSession(new("microsoft:" + credential.PlayerUuid, AccountKind.Microsoft, + credential.DisplayName, credential.PlayerUuid), "", credential.RefreshToken); + // The normal OAuth refresh -> Xbox -> Minecraft entitlement/profile path verifies + // ownership and exact identity before the existing protected persistence path runs. + var session = await authentication.RefreshMicrosoftAsync(ResolveClientId(), original, ct).ConfigureAwait(false); + ct.ThrowIfCancellationRequested(); + result = await SaveSessionAsync(session, ct).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false); + return result!; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.LegacyPacks.cs b/src/SHOU.Launcher.Core/LauncherService.LegacyPacks.cs new file mode 100644 index 00000000..f475d91d --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.LegacyPacks.cs @@ -0,0 +1,74 @@ +using System.Security.Cryptography; +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.IO; +using SHOU.Launcher.Core.Minecraft; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService +{ + private async Task CacheImportedProfileAsync(LocalPackInspection inspection, string stage, CancellationToken ct) + { + var legacy = inspection.LegacyProfile; + if (legacy is null) return await CacheLoaderProfileAsync(inspection.Loader, inspection.GameVersion, inspection.LoaderVersion, ct).ConfigureAwait(false); + var baseId = legacy.CompleteVersionProfile || legacy.Components?.Any(c => c.Loader == inspection.Loader && c.Overridden) == true ? inspection.GameVersion : await CacheLoaderProfileAsync(inspection.Loader, inspection.GameVersion, inspection.LoaderVersion, ct).ConfigureAwait(false); + JsonObject? overlay = null; + foreach (var component in legacy.Components ?? []) + { + if (component.Overridden) continue; + if (component.Loader == inspection.Loader && component.Version == inspection.LoaderVersion) continue; + var id = await CacheLoaderProfileAsync(component.Loader, inspection.GameVersion, component.Version, ct).ConfigureAwait(false); + var json = JsonNode.Parse(await File.ReadAllTextAsync(SafePath.Within(Paths.CacheDirectory, $"versions/{id}/{id}.json"), ct))!.AsObject(); + json.Remove("inheritsFrom"); overlay = overlay is null ? json : VersionMetadataResolver.Merge(overlay, json); + } + if (legacy.VersionJson is { } text) + { + var imported = JsonNode.Parse(text)!.AsObject(); imported.Remove("inheritsFrom"); imported.Remove("jar"); + overlay = overlay is null ? imported : VersionMetadataResolver.Merge(overlay, imported); + } + if (overlay is null) return baseId; + var profileId = "shou-import-" + inspection.ArchiveSha256[..24]; overlay["id"] = profileId; if (!legacy.CompleteVersionProfile) overlay["inheritsFrom"] = baseId; + overlay["shouImportedGameVersion"] = inspection.GameVersion; + if (legacy.CompleteVersionProfile || legacy.Components?.Any(c => c.Loader == inspection.Loader && c.Overridden) == true) overlay["shouImportedLoader"] = inspection.Loader; + // Keep imported client/library files in this archive's cache namespace. Never overwrite shared version metadata. + var sourceJar = legacy.ClientJarRelativePath is { } jarRelative ? ContentInstallFiles.Literal(stage, jarRelative) : null; + if (sourceJar is not null) + { + var cacheJar = SafePath.Within(Paths.CacheDirectory, $"versions/{profileId}/{profileId}.jar"); Directory.CreateDirectory(Path.GetDirectoryName(cacheJar)!); SafePath.RejectLinks(sourceJar); SafePath.RejectLinks(cacheJar); + await using var input = File.OpenRead(sourceJar); var sha1 = Convert.ToHexStringLower(await SHA1.HashDataAsync(input, ct)); input.Position = 0; + await using (var output = new FileStream(cacheJar + ".tmp", FileMode.Create, FileAccess.Write, FileShare.None, 131072, true)) await input.CopyToAsync(output, ct); + File.Move(cacheJar + ".tmp", cacheJar, true); overlay["jar"] = profileId; + // A local, verified client can retain its package hash while the parent supplies other vanilla metadata. + overlay["shouLocalClient"] = new JsonObject { ["sha1"] = sha1, ["size"] = input.Length }; + } + foreach (var node in overlay["libraries"] as JsonArray ?? []) + { + if (node is not JsonObject library || (string?)library["name"] is not { } coordinate) continue; + var downloads = library["downloads"] as JsonObject; + var artifacts = new List<(JsonObject Json, string Path)>(); + if (downloads?["artifact"] is JsonObject artifact) artifacts.Add((artifact, (string?)artifact["path"] ?? LibraryResolver.MavenPath(coordinate))); + else if (downloads is null && library["natives"] is null) + { + var maven = LibraryResolver.MavenPath(coordinate); + if (File.Exists(ContentInstallFiles.Literal(stage, "libraries/" + maven))) + { downloads = new(); library["downloads"] = downloads; var local = new JsonObject { ["url"] = ((string?)library["url"] ?? "https://libraries.minecraft.net/").TrimEnd('/') + "/" + maven }; downloads["artifact"] = local; artifacts.Add((local, maven)); } + } + if (downloads?["classifiers"] is JsonObject classifiers) + foreach (var pair in classifiers) if (pair.Value is JsonObject descriptor) artifacts.Add((descriptor, (string?)descriptor["path"] ?? LibraryResolver.MavenPath(coordinate + ":" + pair.Key))); + foreach (var (descriptor, relative) in artifacts) + { + var source = ContentInstallFiles.Literal(stage, "libraries/" + relative); if (!File.Exists(source)) continue; + var owned = profileId + "/" + relative; var target = ContentInstallFiles.Literal(Paths.CacheDirectory, "libraries/" + owned); + Directory.CreateDirectory(Path.GetDirectoryName(target)!); + await using var input = File.OpenRead(source); var hash = Convert.ToHexStringLower(await SHA1.HashDataAsync(input, ct)); input.Position = 0; + await using (var output = new FileStream(target + ".tmp", FileMode.Create, FileAccess.Write, FileShare.None, 131072, true)) await input.CopyToAsync(output, ct); + File.Move(target + ".tmp", target, true); descriptor["path"] = owned; descriptor["sha1"] = hash; descriptor["size"] = input.Length; descriptor["shouGenerated"] = true; + } + } + var path = SafePath.Within(Paths.CacheDirectory, $"versions/{profileId}/{profileId}.json"); SafePath.RejectLinks(path); Directory.CreateDirectory(Path.GetDirectoryName(path)!); + await File.WriteAllTextAsync(path + ".tmp", overlay.ToJsonString(), ct); ct.ThrowIfCancellationRequested(); File.Move(path + ".tmp", path, true); + return profileId; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.LegacySettings.cs b/src/SHOU.Launcher.Core/LauncherService.LegacySettings.cs new file mode 100644 index 00000000..dab9355d --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.LegacySettings.cs @@ -0,0 +1,41 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; +using SHOU.Launcher.Core.Minecraft; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : ILegacyInstanceSettingsService +{ + public async Task ReadLegacyInstanceSettingsAsync(string instanceId, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken); var instance = FindInstance(instanceId); + var origin = instance.Origin ?? throw new InvalidOperationException("此实例没有旧版来源目录。"); + _ = await ExistingInstanceReader.ResolveAsync(origin, instance.VersionId, InstanceIdentity.GameVersion(instance), cancellationToken); + var mapped = LegacyLaunchSettings.Map(await LegacyLaunchSettings.ReadAsync(origin.VersionDirectory, cancellationToken), + GameSettingsPolicy.Options(instance, Snapshot.Settings), Paths.ResourcesDirectory); + if (mapped.MemoryMiB is { } maximum && mapped.Options.MinimumMemoryMiB is null && Snapshot.Settings.MinimumMemoryMiB > maximum) + mapped = mapped with { Options = mapped.Options with { MinimumMemoryMiB = 512 } }; + return mapped; + } + + private async Task ImportLegacyRuntimeSettingsAsync(GameInstance instance, LauncherSettings settings, + string? executableDirectory, CancellationToken ct) + { + try + { + var values = await LegacyLaunchSettings.ReadAsync(instance.Origin!.VersionDirectory, ct).ConfigureAwait(false); + var basis = settings.LaunchOptions ?? new(); + var mapped = LegacyLaunchSettings.Map(values, basis, executableDirectory); + foreach (var warning in mapped.Warnings) Log("Warning", warning); + GameLaunchOptions? options = null; + if (mapped.MemoryMiB is not null && (mapped.Options.MinimumMemoryMiB is not null || settings.MinimumMemoryMiB is not null)) + options = basis with { InheritGlobal = false, MinimumMemoryMiB = Math.Min(mapped.Options.MinimumMemoryMiB ?? 512, mapped.MemoryMiB.Value) }; + return instance with { JavaExecutable = mapped.JavaExecutable, MemoryMiB = mapped.MemoryMiB, LaunchOptions = options }; + } + catch (Exception ex) when (ex is IOException or InvalidDataException or UnauthorizedAccessException or ArgumentException) + { + Log("Warning", "旧实例运行偏好暂不可读;实例与原文件保留,未自动覆盖 Java 或内存。"); + return instance; + } + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.Loaders.cs b/src/SHOU.Launcher.Core/LauncherService.Loaders.cs new file mode 100644 index 00000000..ef293bf6 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.Loaders.cs @@ -0,0 +1,96 @@ +using System.Security.Cryptography; +using System.Text; +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; +using SHOU.Launcher.Core.Loaders; +using SHOU.Launcher.Core.Minecraft; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : ILoaderInstanceService +{ + private void ValidateLoaderProfile(GameInstance instance, ResolvedVersion resolved) + { + if (instance.Loader == "vanilla") return; + var game = Instances.InstanceIdentity.GameVersion(instance); + if (!resolved.InheritanceChain.Contains(game, StringComparer.Ordinal) && !(instance.VersionId.StartsWith("shou-import-", StringComparison.Ordinal) && (string?)resolved.Metadata["shouImportedGameVersion"] == game)) throw new InvalidDataException("加载器配置未继承所选Minecraft版本。"); + var main = (string?)resolved.Metadata["mainClass"]; + if (Loaders.PortableVendorInstaller.Supports(instance.Loader)) { Loaders.PortableVendorInstaller.ValidateProfile(instance.Loader, resolved.Metadata); return; } + var valid = instance.Loader switch + { + "fabric" or "legacyfabric" => main is "net.fabricmc.loader.impl.launch.knot.KnotClient" or "net.fabricmc.loader.launch.knot.KnotClient", + "quilt" => main == "org.quiltmc.loader.impl.launch.knot.KnotClient", + "forge" => main is "cpw.mods.bootstraplauncher.BootstrapLauncher" or "cpw.mods.modlauncher.Launcher" or "net.minecraftforge.bootstrap.ForgeBootstrap" + || OfficialLoaderInstaller.IsLegacyMacForge(resolved.Metadata, game, Snapshot.Platform.OS), + "neoforge" => main == "cpw.mods.bootstraplauncher.BootstrapLauncher", + "cleanroom" => main == "top.outlands.foundation.boot.Foundation" && game == "1.12.2" && resolved.RequiredJavaMajor == 25, + _ => false + }; + if (!valid) throw new InvalidDataException("加载器主类与实例类型不匹配,未按原版启动。"); + } + private OfficialLoaderInstaller OfficialLoaders => new(http, downloader, platform.Processes, Paths.CacheDirectory, Paths.TempDirectory, Sources, () => network.Capture().Proxy, Snapshot.Platform.OS); + private async Task CacheLoaderProfileAsync(string loader, string game, string? version, CancellationToken ct) + { + if (PortableVendorInstaller.Supports(loader)) return await CacheVendorProfileAsync(loader, game, version ?? throw new InvalidDataException("加载器版本缺失。"), ct).ConfigureAwait(false); + if (loader is "cleanroom" or "legacyfabric") IO.SafePath.Identifier(version ?? throw new InvalidDataException("加载器版本缺失。")); + else Content.PackLoaderIdentity.Validate(loader, version); + return loader switch + { + "vanilla" => game, + "fabric" => await new FabricMetadataProvider(http, Paths.CacheDirectory, Sources).CacheProfileAsync(game, version!, ct).ConfigureAwait(false), + "quilt" => await CacheQuiltProfileAsync(game, version!, ct).ConfigureAwait(false), + "legacyfabric" => await CacheQuiltProfileAsync(game, version!, ct, loader).ConfigureAwait(false), + _ => (await OfficialLoaders.CacheAsync(loader, game, version!, ct).ConfigureAwait(false)).ProfileId + }; + } + public async Task> GetLoaderVersionsAsync(string loader, string gameVersion, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + if (loader == "fabric") return (await Catalog.FabricAsync(gameVersion, cancellationToken)).Select(v => new LoaderVersionChoice(loader, v.Version, v.Stable)).ToArray(); + if (PortableVendorInstaller.Supports(loader)) return await VendorChoicesAsync(loader, gameVersion, cancellationToken).ConfigureAwait(false); + if (loader == "cleanroom") return gameVersion != "1.12.2" ? [] : (await new InstallerCatalogReader(http).ReadAsync(loader, cancellationToken).ConfigureAwait(false)).Versions + .Select(v => new LoaderVersionChoice(loader, v.Version, v.Channel == "stable", CanInstall: true)).ToArray(); + return await new LoaderCatalog(http).GetAsync(loader, gameVersion, cancellationToken).ConfigureAwait(false); + } + public async Task CreateLoaderInstanceAsync(string name, string gameVersion, string loader, string loaderVersion, CancellationToken cancellationToken = default) + { + if (loader == "fabric") return await CreateFabricInstanceAsync(name, gameVersion, loaderVersion, cancellationToken).ConfigureAwait(false); + if (loader is not ("quilt" or "forge" or "neoforge" or "cleanroom" or "legacyfabric") && !PortableVendorInstaller.Supports(loader)) throw new PlatformNotSupportedException("尚未实现此加载器的安装链。"); + if (string.IsNullOrWhiteSpace(name) || name.Length > 80 || name.Any(char.IsControl)) throw new ArgumentException("实例名称须为1–80字的单行文字。"); + SafePath.Identifier(gameVersion); SafePath.Identifier(loaderVersion); GameInstance? created = null; + await ExecuteAsync("Installing", async ct => + { + var profile = await CacheLoaderProfileAsync(loader, gameVersion, loaderVersion, ct).ConfigureAwait(false); + created = new(Guid.NewGuid().ToString("N"), name.Trim(), profile, + NewGameDirectory(loader), Loader: loader, LoaderVersion: loaderVersion, GameVersionId: gameVersion); + await RegisterNewInstanceAsync(created, ct).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false); + return created!; + } + private async Task CacheQuiltProfileAsync(string gameVersion, string loaderVersion, CancellationToken ct, string loader = "quilt") + { + var endpoint = loader == "quilt" ? "https://meta.quiltmc.org/v3" : "https://meta.legacyfabric.net/v2"; + var main = loader == "quilt" ? "org.quiltmc.loader.impl.launch.knot.KnotClient" : "net.fabricmc.loader.impl.launch.knot.KnotClient"; + var text = await new LoaderCatalog(http).TextAsync(new(endpoint + "/versions/loader/" + Uri.EscapeDataString(gameVersion) + "/" + Uri.EscapeDataString(loaderVersion) + "/profile/json"), 4 * 1024 * 1024, ct); + var profile = JsonNode.Parse(text) as JsonObject ?? throw new InvalidDataException("Quilt配置不是对象。"); + var id = SafePath.Identifier((string?)profile["id"] ?? throw new InvalidDataException("Quilt配置缺少ID。")); + if ((string?)profile["inheritsFrom"] != gameVersion || !id.Contains(loaderVersion, StringComparison.Ordinal) || (string?)profile["mainClass"] != main) + throw new InvalidDataException("Quilt配置身份不匹配。"); + _ = VersionMetadataResolver.ParseVersion(text, id); + var relative = "versions/" + id + "/" + id + ".json"; + var path = Content.ContentInstallFiles.Literal(Paths.CacheDirectory, relative); + var sidecar = Content.ContentInstallFiles.Literal(Paths.CacheDirectory, relative + ".sha256"); + Directory.CreateDirectory(Path.GetDirectoryName(path)!); + var temporary = path + ".tmp-" + Guid.NewGuid().ToString("N"); + try + { + await File.WriteAllTextAsync(temporary, text, ct); Downloads.VerifiedDownloader.RejectLink(path); File.Move(temporary, path, true); + var hashStage = sidecar + ".tmp-" + Guid.NewGuid().ToString("N"); + try { await File.WriteAllTextAsync(hashStage, Convert.ToHexStringLower(SHA256.HashData(Encoding.UTF8.GetBytes(text))), ct); Downloads.VerifiedDownloader.RejectLink(sidecar); File.Move(hashStage, sidecar, true); } + finally { if (File.Exists(hashStage)) File.Delete(hashStage); } + } + finally { if (File.Exists(temporary)) File.Delete(temporary); } + return id; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.LocalPack.cs b/src/SHOU.Launcher.Core/LauncherService.LocalPack.cs new file mode 100644 index 00000000..8152ca20 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.LocalPack.cs @@ -0,0 +1,118 @@ +using System.Collections.Concurrent; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.Minecraft; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : ILocalPackProgressService, ILocalPackManualFileService, ILocalPackSelectionService +{ + private readonly CurseForgePackResolver? localPackResolver; + private sealed record LocalPackPlan(IReadOnlyList Files, IReadOnlyList Warnings); + private readonly ConcurrentDictionary localPackPlans = new(StringComparer.OrdinalIgnoreCase); + public Task InspectLocalPackAsync(string archivePath, CancellationToken cancellationToken = default) + => InspectLocalPackCoreAsync(archivePath, null, cancellationToken); + public Task InspectLocalPackWithProgressAsync(string archivePath, IProgress progress, CancellationToken cancellationToken = default) + => InspectLocalPackCoreAsync(archivePath, new PackProgressReporter(progress), cancellationToken); + public Task InspectLocalPackSelectionAsync(string archivePath, IReadOnlyList optionalFiles, + IProgress? progress = null, CancellationToken cancellationToken = default, string? expectedArchiveSha256 = null) + => InspectLocalPackCoreAsync(archivePath, progress is null ? null : new PackProgressReporter(progress), cancellationToken, optionalFiles.ToArray(), expectedArchiveSha256); + private async Task InspectLocalPackCoreAsync(string archivePath, IProgress? progress, CancellationToken cancellationToken, IReadOnlyList? optionalFiles = null, string? expectedArchiveSha256 = null) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); var read = await new LocalPackArchive().ReadAsync(archivePath, cancellationToken).ConfigureAwait(false); + if (expectedArchiveSha256 is not null && !read.Inspection.ArchiveSha256.Equals(expectedArchiveSha256, StringComparison.OrdinalIgnoreCase)) optionalFiles = []; + if (read.Inspection.Format != LocalPackFormat.CurseForge) + { + if (optionalFiles is { Count: > 0 } && (read.Inspection.Modrinth is not { } mr || optionalFiles.Distinct(StringComparer.Ordinal).Count() != optionalFiles.Count || + optionalFiles.Any(p => !mr.Files.Any(f => f.Path == p && f.Client == "optional")))) throw new InvalidDataException("可选文件选择已失效,请重新预检。"); + return optionalFiles is null ? read.Inspection : read.Inspection with { SelectedOptionalFiles = optionalFiles.ToArray() }; + } + var effective = CurseForgePackSelection.Apply(read.CurseForgeFiles, optionalFiles); + if (!read.CanResolveCurseForge) return read.Inspection; + using var dedicated = localPackResolver is null ? new HttpClient(new ConfigurableNetworkHandler(network, allowAutoRedirect: false)) : null; + var resolver = localPackResolver ?? new CurseForgePackResolver(dedicated!, build.CurseForgeApiKey, Paths.CacheDirectory, network); + var identity = read.Inspection; + var resolution = await resolver.ResolveAsync(effective, identity.GameVersion, identity.Loader, cancellationToken, + new(identity.Name, identity.PackVersion ?? "", identity.GameVersion, identity.Loader, identity.LoaderVersion), progress).ConfigureAwait(false); + var choices = await resolver.DescribeOptionalFilesAsync(read.CurseForgeFiles, cancellationToken).ConfigureAwait(false); + var inspection = read.Inspection with { OptionalFiles = choices, SelectedOptionalFiles = (optionalFiles ?? []).ToArray() }; + var warnings = read.Inspection.Warnings.Concat(resolution.Warnings).Concat(resolution.BlockedFiles.Select(item => "未完成:" + item)).ToArray(); + if (resolution.BlockedFiles.Count > 0) return inspection with { Warnings = warnings, ManualFiles = resolution.ManualFiles, + CapabilityReason = $"本次安装有 {resolution.BlockedFiles.Count} 项文件尚待补充或核实,未创建实例。" + (resolution.ManualFiles?.Count > 0 ? "请从官网获取指定文件,校验后继续安装。" : "请查看完整阻塞列表后重新预检。") }; + ValidateLocalPackTargets(read, resolution.Files); + var key = CurseForgePackSelection.PlanKey(identity.ArchiveSha256, optionalFiles); + cancellationToken.ThrowIfCancellationRequested(); localPackPlans[key] = new(resolution.Files.ToArray(), warnings); + while (localPackPlans.Count > 8) { var other = localPackPlans.Keys.FirstOrDefault(k => k != key); if (other is null) break; localPackPlans.TryRemove(other, out _); } + return inspection with { CanImport = true, CapabilityReason = null, Warnings = warnings, LocalFiles = resolution.Files.Select(f => f.Path).Concat(read.OverrideEntries.Keys).Distinct(StringComparer.Ordinal).ToArray() }; + } + public Task ImportLocalPackAsync(LocalPackImportRequest request, CancellationToken cancellationToken = default) + => ImportLocalPackCoreAsync(request, null, cancellationToken); + public Task ImportLocalPackWithProgressAsync(LocalPackImportRequest request, IProgress progress, CancellationToken cancellationToken = default) + => ImportLocalPackCoreAsync(request, new PackProgressReporter(progress), cancellationToken); + private async Task ImportLocalPackCoreAsync(LocalPackImportRequest request, IProgress? progress, CancellationToken cancellationToken) + { + ArgumentNullException.ThrowIfNull(request); request = request with { OptionalClientFiles = request.OptionalClientFiles?.ToArray() }; + if (string.IsNullOrWhiteSpace(request.InstanceName) || request.InstanceName.Length > 80 || request.InstanceName.Any(char.IsControl)) throw new ArgumentException("请输入 1–80 字的单行实例名称。"); + if (!ContentInstallFiles.Hash(request.ExpectedSha256, 64)) throw new InvalidDataException("请先完成整合包预检。"); + await InitializeAsync(cancellationToken).ConfigureAwait(false); var read = await new LocalPackArchive().ReadAsync(request.ArchivePath, cancellationToken).ConfigureAwait(false); + if (!read.Inspection.ArchiveSha256.Equals(request.ExpectedSha256, StringComparison.OrdinalIgnoreCase)) throw new IOException("整合包自预检后已改变,请重新预检。"); + if (read.Inspection.Format == LocalPackFormat.Modrinth) + { + var result = await ImportModrinthPackCoreAsync(new(request.ArchivePath, request.ExpectedSha256, request.InstanceName, request.OptionalClientFiles, request.PrepareAfterImport), progress, cancellationToken).ConfigureAwait(false); + return new(result.Instance, result.InstalledFiles, read.Inspection.Warnings, result); + } + var isShou = read.Inspection.Format == LocalPackFormat.ShouExport && read.Inspection.CanImport; + var isLegacy = read.Inspection.LegacyProfile is not null && read.Inspection.CanImport; + if (!isShou && !isLegacy && (read.Inspection.Format != LocalPackFormat.CurseForge || !read.CanResolveCurseForge)) throw new NotSupportedException(read.Inspection.CapabilityReason ?? "此格式尚未支持导入。"); + if ((isShou || isLegacy) && request.OptionalClientFiles is { Count: > 0 }) throw new InvalidDataException("SHOU 整包未声明可选文件。"); + if (!isShou && !isLegacy) _ = CurseForgePackSelection.Apply(read.CurseForgeFiles, request.OptionalClientFiles); + var planKey = CurseForgePackSelection.PlanKey(request.ExpectedSha256, request.OptionalClientFiles); + LocalPackPlan? plan = isShou || isLegacy ? new([], read.Inspection.Warnings) : null; + if (!isShou && !isLegacy && !localPackPlans.TryGetValue(planKey, out plan)) + { + var inspection = await InspectLocalPackCoreAsync(request.ArchivePath, progress, cancellationToken, request.OptionalClientFiles).ConfigureAwait(false); + if (!inspection.CanImport || !localPackPlans.TryGetValue(planKey, out plan)) throw new InvalidOperationException(inspection.CapabilityReason ?? "整合包文件尚未全部核实。"); + } + var capturedPlan = plan!; LocalPackImportResult? imported = null; + await ExecuteAsync("Installing", async ct => + { + var root = Snapshot.Settings.GameRoot ?? Paths.InstancesDirectory; EnsureIsolatedGamePath(root); VerifiedDownloader.RejectLink(root); Directory.CreateDirectory(root); + var stage = ContentInstallFiles.Literal(root, ".shou-local-stage-" + Guid.NewGuid().ToString("N")); var destination = ContentInstallFiles.Literal(root, Guid.NewGuid().ToString("N")); var moved = false; var registered = false; + using var dedicated = localPackResolver is null ? new HttpClient(new ConfigurableNetworkHandler(network, allowAutoRedirect: false)) : null; + var resolver = localPackResolver ?? new CurseForgePackResolver(dedicated!, build.CurseForgeApiKey, Paths.CacheDirectory, network); + try + { + await RunContentTransferAsync("local-pack:" + Guid.NewGuid().ToString("N"), token => ImportLocalPackAsync(request, token), async token => + { + var inspection = isLegacy ? await new LocalPackArchive().StageLegacyAsync(request.ArchivePath, request.ExpectedSha256, stage, token, progress).ConfigureAwait(false) + : isShou ? await ShouPackArchive.StageAsync(request.ArchivePath, request.ExpectedSha256, stage, token).ConfigureAwait(false) + : await new LocalPackArchive().StageCurseForgeAsync(request.ArchivePath, request.ExpectedSha256, stage, capturedPlan.Files, + (file, path, transferToken) => resolver.DownloadAsync(file, path, new InlineProgress(OnTransfer), transferToken), token, progress, network.Capture().Downloads?.MaximumConnections ?? DownloadDefaults.Connections, request.OptionalClientFiles).ConfigureAwait(false); + var profile = await CacheImportedProfileAsync(inspection, stage, token).ConfigureAwait(false); + var instance = new GameInstance(Guid.NewGuid().ToString("N"), request.InstanceName.Trim(), profile, destination, MemoryMiB: inspection.RecommendedMemoryMiB, Loader: inspection.Loader, LoaderVersion: inspection.LoaderVersion, GameVersionId: inspection.GameVersion, LaunchOptions: inspection.LegacyProfile is { } legacy ? new GameLaunchOptions(InheritGlobal: false, JvmArguments: legacy.JvmArguments ?? "", GameArguments: legacy.GameArguments ?? "") : null); + var manifestPath = ContentInstallFiles.Literal(stage, ContentInstallFiles.ManifestName); var manifest = JsonSerializer.Deserialize(await File.ReadAllBytesAsync(manifestPath, token).ConfigureAwait(false)) ?? throw new InvalidDataException("整合包安装清单缺失。"); + await File.WriteAllBytesAsync(manifestPath, ContentInstallFiles.SerializeManifest(manifest with { InstanceId = instance.Id }), token).ConfigureAwait(false); + if (request.PrepareAfterImport) + { + await PrepareInstanceAsync(instance with { GameDirectory = stage }, token, publishInstalled: false).ConfigureAwait(false); + instance = instance with { Installed = true }; + } + token.ThrowIfCancellationRequested(); _ = ContentInstallFiles.Literal(root, Path.GetFileName(stage)); _ = ContentInstallFiles.Literal(root, Path.GetFileName(destination)); await IO.DirectoryPublication.PublishAsync(stage, destination, token).ConfigureAwait(false); moved = true; + var candidate = Snapshot with { Instances = Snapshot.Instances.Append(instance).ToArray(), SelectedInstanceId = Snapshot.Settings.Downloads?.SelectInstalledInstance == false ? Snapshot.SelectedInstanceId : instance.Id }; await PersistCandidateAsync(candidate, token).ConfigureAwait(false); registered = true; + Set(s => s with { Instances = candidate.Instances, SelectedInstanceId = candidate.SelectedInstanceId }); imported = new(instance, manifest.Files.Count, capturedPlan.Warnings); + }, ct).ConfigureAwait(false); + } + finally { if (!registered) { var owned = moved ? destination : stage; VerifiedDownloader.RejectLink(owned); if (Directory.Exists(owned)) Directory.Delete(owned, true); } } + }, cancellationToken).ConfigureAwait(false); + return imported!; + } + private static void ValidateLocalPackTargets(LocalPackDescriptor archive, IReadOnlyList files) + { + var paths = files.Select(f => f.Path).Concat(archive.OverrideEntries.Keys).ToArray(); + if (archive.OverrideEntries.Keys.Any(path => files.Any(f => ContentInstallFiles.PathKey(f.Path) == ContentInstallFiles.PathKey(path) && f.Path != path))) throw new InvalidDataException("下载文件与覆盖文件存在大小写或 Unicode 歧义。"); + PackArchiveReader.CheckTargets(paths); var keys = paths.Select(ContentInstallFiles.PathKey).ToHashSet(StringComparer.Ordinal); + if (files.Any(f => new[] { ".download.lock", ".part", ".part.resume.json" }.Any(suffix => keys.Contains(ContentInstallFiles.PathKey(f.Path + suffix))))) throw new InvalidDataException("整合包文件与下载暂存侧文件冲突。"); + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.LocalPackManual.cs b/src/SHOU.Launcher.Core/LauncherService.LocalPackManual.cs new file mode 100644 index 00000000..7ff96324 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.LocalPackManual.cs @@ -0,0 +1,26 @@ +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService +{ + public Task ProvideLocalPackFileAsync(string archivePath, string expectedArchiveSha256, int projectId, int fileId, string sourcePath, CancellationToken cancellationToken = default) + => ProvideLocalPackFileCoreAsync(archivePath, expectedArchiveSha256, [], projectId, fileId, sourcePath, cancellationToken); + public Task ProvideSelectedLocalPackFileAsync(string archivePath, string expectedArchiveSha256, IReadOnlyList optionalFiles, int projectId, int fileId, string sourcePath, CancellationToken cancellationToken = default) + => ProvideLocalPackFileCoreAsync(archivePath, expectedArchiveSha256, optionalFiles.ToArray(), projectId, fileId, sourcePath, cancellationToken); + private async Task ProvideLocalPackFileCoreAsync(string archivePath, string expectedArchiveSha256, IReadOnlyList optionalFiles, int projectId, int fileId, string sourcePath, CancellationToken cancellationToken) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + if (!ContentInstallFiles.Hash(expectedArchiveSha256, 64)) throw new InvalidDataException("请先读取整合包。"); + var archive = await new LocalPackArchive().ReadAsync(archivePath, cancellationToken).ConfigureAwait(false); + var effective = CurseForgePackSelection.Apply(archive.CurseForgeFiles, optionalFiles); + if (!archive.CanResolveCurseForge || archive.Inspection.ArchiveSha256 != expectedArchiveSha256 || !effective.Any(f => f.Required && f.ProjectId == projectId && f.FileId == fileId)) throw new InvalidDataException("所补文件不属于已确认归档的本次安装选择。"); + using var transport = localPackResolver is null ? new HttpClient(new ConfigurableNetworkHandler(network, allowAutoRedirect: false)) : null; + var resolution = await (localPackResolver ?? new CurseForgePackResolver(transport!, build.CurseForgeApiKey, Paths.CacheDirectory, network)) + .ResolveAsync([new(projectId, fileId, true)], archive.Inspection.GameVersion, archive.Inspection.Loader, cancellationToken).ConfigureAwait(false); + var file = resolution.ManualFiles?.SingleOrDefault(f => f.ProjectId == projectId && f.FileId == fileId) ?? throw new InvalidOperationException("此文件无需手动补充,或官方元数据尚未核实,请重新检查。"); + await CurseForgeManualCache.StoreAsync(Paths.CacheDirectory, file, sourcePath, cancellationToken).ConfigureAwait(false); + foreach (var key in localPackPlans.Keys.Where(k => k.StartsWith(expectedArchiveSha256 + ":", StringComparison.OrdinalIgnoreCase))) localPackPlans.TryRemove(key, out _); + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.LocalWorldImport.cs b/src/SHOU.Launcher.Core/LauncherService.LocalWorldImport.cs new file mode 100644 index 00000000..eebf5702 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.LocalWorldImport.cs @@ -0,0 +1,75 @@ +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : ILocalWorldImportService +{ + private sealed record LocalWorldSource(string Path, WorldPathSnapshot Guard); + public async Task PreviewLocalWorldImportAsync(LocalWorldImportRequest request, CancellationToken cancellationToken = default) + { + ArgumentNullException.ThrowIfNull(request); WorldLeaf(request.WorldDirectoryName); + if (!Path.IsPathFullyQualified(request.ArchivePath) || !Path.GetExtension(request.ArchivePath).Equals(".zip", StringComparison.OrdinalIgnoreCase)) throw new InvalidDataException("请选择单个本地 Java 世界 ZIP 文件。"); + var path = Path.GetFullPath(request.ArchivePath); + LocalWorldImportPreview? result = null; + await WorldContentOperationAsync(request.InstanceId, token => PreviewLocalWorldImportAsync(request, token), async ct => + { + var instance = ContentTarget(request.InstanceId, true); RequireMissingWorld(instance, request.WorldDirectoryName); + var source = new LocalWorldSource(path, WorldPathSnapshot.Capture(Path.GetDirectoryName(path)!, path)); + var game = await WorldGameAsync(instance, ct); source.Guard.Verify(); + var world = await WorldContentArchive.WorldAsync(path, ct, allowFinderMetadata: true); + if (world.Version != game.Version || world.DataVersion != game.DataVersion) throw new InvalidDataException("ZIP 内世界与所选实例版本不一致,不会自动升级或降级。"); + string sha; + using (var zip = PackArchiveReader.Open(path)) sha = await zip.Sha256Async(ct); + var inspect = ContentInstallFiles.Literal(Paths.TempDirectory, "world-local-inspect-" + Guid.NewGuid().ToString("N")); + WorldPathSnapshot? ownedInspect = null; + try + { + Directory.CreateDirectory(inspect); ownedInspect = WorldPathSnapshot.Capture(Paths.TempDirectory, inspect); + var metadata = world.Files.Where(f => f == "level.dat" || f.StartsWith("datapacks/", StringComparison.Ordinal)).ToArray(); + await WorldContentArchive.ExtractWorldAsync(path, inspect, world with { Files = metadata }, sha, ct); + await ValidateWorldPacksForInstanceAsync(inspect, game.PackFormat, instance, ct); ownedInspect.Verify(); + } + finally + { + VerifiedDownloader.RejectLink(inspect); + if (Directory.Exists(inspect) && ownedInspect is not null) { ownedInspect.Verify(); Directory.Delete(inspect, true); } + } + source.Guard.Verify(); ct.ThrowIfCancellationRequested(); EnsureInstanceNotRunning(instance); RequireMissingWorld(instance, request.WorldDirectoryName); + var target = WorldPathSnapshot.Capture(instance.GameDirectory, ContentInstallFiles.Literal(instance.GameDirectory, "saves"), true); + var preview = new WorldContentPreview(Guid.NewGuid().ToString("N"), "world", instance.Name, request.WorldDirectoryName, game.Version, world.Files.ToArray(), + ["仅导入为新的存档文件夹,不覆盖已有存档。"]); + var plan = new WorldDownloadPlan(preview, new(instance.Id, "", "", Path.GetFileName(path), "world", request.WorldDirectoryName), instance, game, null, world, + new Dictionary { ["world"] = path }, new Dictionary(), sha, target, new HashSet(), DateTimeOffset.UtcNow, source); + worldDownloads[preview.Id] = plan; + foreach (var key in worldDownloads.Keys.Where(k => k != preview.Id).Take(Math.Max(0, worldDownloads.Count - 8))) worldDownloads.TryRemove(key, out _); + result = new(preview, world.Name ?? Path.GetFileNameWithoutExtension(path), Path.GetFileName(path), sha); + }, cancellationToken).ConfigureAwait(false); + return result!; + } + public Task ImportLocalWorldAsync(string previewId, CancellationToken cancellationToken = default) + { + if (!worldDownloads.TryGetValue(previewId, out var plan) || plan.LocalSource is null) throw new InvalidOperationException("本地存档预检已失效,请重新检查。"); + return InstallWorldContentAsync(previewId, cancellationToken); + } + public Task DiscardLocalWorldImportAsync(string previewId, CancellationToken cancellationToken = default) + { + cancellationToken.ThrowIfCancellationRequested(); + if (worldDownloads.TryGetValue(previewId, out var plan) && plan.LocalSource is not null) worldDownloads.TryRemove(previewId, out _); + return Task.CompletedTask; + } + private static async Task VerifyLocalWorldSourceAsync(WorldDownloadPlan plan, CancellationToken ct) + { + if (plan.LocalSource is not { } source) return; + source.Guard.Verify(); + using var zip = PackArchiveReader.Open(source.Path); + if (await zip.Sha256Async(ct) != plan.Revision) throw new IOException("本地世界 ZIP 自预检后已改变,请重新检查。"); + source.Guard.Verify(); + } + private static async Task ValidateWorldPacksForInstanceAsync(string root, DataPackFormat format, GameInstance instance, CancellationToken ct) + => await WorldContentArchive.ValidateBundledWorldPacksAsync(root, format, ct, await WorldBuiltinPacks.ResolveAsync(instance, ct).ConfigureAwait(false)).ConfigureAwait(false); + +} diff --git a/src/SHOU.Launcher.Core/LauncherService.ManualUpdates.cs b/src/SHOU.Launcher.Core/LauncherService.ManualUpdates.cs new file mode 100644 index 00000000..9cc69b67 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.ManualUpdates.cs @@ -0,0 +1,39 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService +{ + public async Task> GetInstanceUpdateManualFilesAsync(string token, CancellationToken cancellationToken = default) + { + var state = RequireManualUpdate(token); + var instance = ContentTarget(state.Instance.Id, false); + if (instance != state.Instance) throw new IOException("实例配置已改变,请重新检查更新。"); + if (!await ContentInstallFiles.MatchesAsync(ContentInstallFiles.Literal(instance.GameDirectory, state.Old.RelativePath), state.Old.Sha1, state.Old.Size, cancellationToken)) + throw new IOException("原文件已改变,请重新检查更新。"); + var manifest = await ContentInstallFiles.ReadManifestAsync(instance, cancellationToken); + var oldPaths = new HashSet(StringComparer.Ordinal) { state.Old.RelativePath, EnabledModPath(state.Old.RelativePath) }; + manifest = manifest with { Files = manifest.Files.Select(NormalizeModOrigin).Where(f => !oldPaths.Contains(f.RelativePath)).ToArray() }; + var resource = state.Old.Kind is "resourcepack" or "shader"; + var plan = await new ContentInstallPlanner(this, this).PlanAsync(instance, Instances.InstanceIdentity.GameVersion(instance), + new(instance.Id, state.Old.ProjectId, state.Release.Id, state.File.FileName, state.Old.Kind), cancellationToken, + replacingModPaths: resource ? null : new HashSet(StringComparer.Ordinal) { EnabledModPath(state.Old.RelativePath) }, + installedMods: manifest, replacingResourcePath: resource ? state.Old.RelativePath : null); + if (!plan.Files.Any(f => !f.Dependency && f.File == state.File)) throw new IOException("在线文件已改变,请重新检查更新。"); + var missing = new List(); + foreach (var file in plan.Files.Select(f => f.File.ManualFile).OfType().Distinct()) + if (await CurseForgeManualCache.DigestAsync(Paths.CacheDirectory, file, cancellationToken) is null) missing.Add(file); + return missing; + } + public async Task ProvideInstanceUpdateManualFileAsync(string token, CurseForgeManualFile file, string path, CancellationToken cancellationToken = default) + { + var state = RequireManualUpdate(token); + var missing = await GetInstanceUpdateManualFilesAsync(token, cancellationToken); + if (!missing.Contains(file)) throw new InvalidOperationException("此文件不属于当前更新,请重新检查。"); + await CurseForgeManualCache.StoreAsync(Paths.CacheDirectory, file, path, cancellationToken); + if (!modUpdates.TryGetValue(token, out var current) || current != state) throw new InvalidOperationException("更新检查已改变,请重新检查。"); + } + private ModUpdateState RequireManualUpdate(string token) => modUpdates.TryGetValue(token, out var state) && state.Expires >= DateTimeOffset.UtcNow + ? state : throw new InvalidOperationException("更新检查已失效,请重新检查。"); +} diff --git a/src/SHOU.Launcher.Core/LauncherService.MinecraftPackages.cs b/src/SHOU.Launcher.Core/LauncherService.MinecraftPackages.cs new file mode 100644 index 00000000..1285aaed --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.MinecraftPackages.cs @@ -0,0 +1,42 @@ +using System.Collections.Concurrent; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.Minecraft; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IMinecraftPackageService +{ + private readonly ConcurrentDictionary packageTransfers = new(); + private async Task> ReadPackagesAsync(string version, CancellationToken ct) + { + await InitializeAsync(ct).ConfigureAwait(false); + var resolved = await new VersionMetadataResolver(http, downloader, Paths.CacheDirectory, Sources).ResolveAsync(version, ct).ConfigureAwait(false); + return MinecraftPackages.Read(version, resolved.Metadata); + } + public async Task> GetMinecraftPackagesAsync(string version, CancellationToken ct = default) + => (await ReadPackagesAsync(version, ct).ConfigureAwait(false)).Select(p => p.File).ToArray(); + public Task DownloadMinecraftPackageAsync(string version, string kind, string destination, CancellationToken ct = default) + { + if (!Path.IsPathFullyQualified(destination) || !Path.GetExtension(destination).Equals(".jar", StringComparison.OrdinalIgnoreCase)) + throw new ArgumentException("请选择本机 JAR 文件保存位置。"); + return ExecuteAsync("Installing", async token => + { + using var cancellation = CancellationTokenSource.CreateLinkedTokenSource(token); + installCancellation = cancellation; + var ownership = downloadOwners.Begin("minecraft-package:" + version + ":" + kind); + packageTransfers[ownership.Generation] = (version, kind, destination); + try + { + var files = await ReadPackagesAsync(version, cancellation.Token).ConfigureAwait(false); + var selected = files.SingleOrDefault(f => f.File.Kind == kind); + if (selected.File is null) throw new InvalidOperationException("此版本没有可下载的所选文件。"); + // A dedicated transport follows no redirects and carries no account/API headers. + using var client = new HttpClient(new ConfigurableNetworkHandler(network, allowAutoRedirect: false)); + await new VerifiedDownloader(client, network).DownloadAsync(new([selected.Source], destination, selected.File.Sha1, Size: selected.File.Size), + new InlineProgress(OnTransfer), cancellation.Token).ConfigureAwait(false); + } + finally { downloadOwners.End(ownership); installCancellation = null; } + }, ct); + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.ModManagement.cs b/src/SHOU.Launcher.Core/LauncherService.ModManagement.cs new file mode 100644 index 00000000..8dbed3b3 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.ModManagement.cs @@ -0,0 +1,20 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IInstanceModManagementService +{ + public Task SetInstanceModsEnabledAsync(string instanceId, IReadOnlyList paths, bool enabled, CancellationToken cancellationToken = default) + => ExecuteAsync("Ready", ct => { var instance = ContentTarget(instanceId, true); ModFileManagement.Toggle(instance, paths, enabled, () => EnsureInstanceNotRunning(instance), ct); return Task.CompletedTask; }, cancellationToken); + public async Task TrashInstanceModsAsync(string instanceId, IReadOnlyList paths, CancellationToken cancellationToken = default) + { + InstanceModTrash? result = null; + await ExecuteAsync("Ready", async ct => { var instance = ContentTarget(instanceId, true); result = await ModFileManagement.TrashAsync(instance, paths, () => EnsureInstanceNotRunning(instance), ct); }, cancellationToken); + return result!; + } + public async Task> GetInstanceModTrashAsync(string instanceId, CancellationToken cancellationToken = default) + { await InitializeAsync(cancellationToken); return await ModFileManagement.ListAsync(ContentTarget(instanceId, false), cancellationToken); } + public Task RestoreInstanceModsAsync(string instanceId, string trashId, CancellationToken cancellationToken = default) + => ExecuteAsync("Ready", async ct => { var instance = ContentTarget(instanceId, true); await ModFileManagement.RestoreAsync(instance, trashId, () => EnsureInstanceNotRunning(instance), ct); }, cancellationToken); +} diff --git a/src/SHOU.Launcher.Core/LauncherService.ModRelations.cs b/src/SHOU.Launcher.Core/LauncherService.ModRelations.cs new file mode 100644 index 00000000..0278c730 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.ModRelations.cs @@ -0,0 +1,14 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IInstanceModRelationsService +{ + public async Task ReadInstanceModRelationsAsync(string instanceId, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + var instance = ContentTarget(instanceId, false); + return await Task.Run(() => ModRelations.Read(instance, cancellationToken), cancellationToken).ConfigureAwait(false); + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.ModrinthPack.cs b/src/SHOU.Launcher.Core/LauncherService.ModrinthPack.cs new file mode 100644 index 00000000..4878b48a --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.ModrinthPack.cs @@ -0,0 +1,78 @@ +using System.Text.Json; +using PCL.Core.Conduit; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.IO; +using SHOU.Launcher.Core.Minecraft; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IModrinthPackService +{ + public async Task InspectModrinthPackAsync(string archivePath, CancellationToken cancellationToken = default) + { await InitializeAsync(cancellationToken).ConfigureAwait(false); return await new ModrinthPackArchive().InspectAsync(archivePath, cancellationToken).ConfigureAwait(false); } + public Task ImportModrinthPackAsync(ModrinthPackImportRequest request, CancellationToken cancellationToken = default) + => ImportModrinthPackCoreAsync(request, null, cancellationToken); + private async Task ImportModrinthPackCoreAsync(ModrinthPackImportRequest request, IProgress? progress, CancellationToken cancellationToken) + { + request = request with { OptionalClientFiles = request.OptionalClientFiles?.ToArray() }; + if (string.IsNullOrWhiteSpace(request.InstanceName) || request.InstanceName.Length > 80 || request.InstanceName.Any(char.IsControl)) throw new ArgumentException("请输入1–80字的单行实例名称。"); + ModrinthPackImportResult? result = null; + await ExecuteAsync("Installing", async ct => + { + var root = Snapshot.Settings.GameRoot ?? Paths.InstancesDirectory; EnsureIsolatedGamePath(root); VerifiedDownloader.RejectLink(root); Directory.CreateDirectory(root); + var stage = ContentInstallFiles.Literal(root, ".shou-pack-stage-" + Guid.NewGuid().ToString("N")); + var destination = ContentInstallFiles.Literal(root, Guid.NewGuid().ToString("N")); var registered = false; var moved = false; + try + { + await RunContentTransferAsync("mrpack-import:" + Guid.NewGuid().ToString("N"), token => ImportModrinthPackAsync(request, token), async token => + { + var inspection = await new ModrinthPackArchive().StageAsync(request.ArchivePath, request.ExpectedSha256, stage, request.OptionalClientFiles, DownloadPackFileAsync, token, progress, network.Capture().Downloads?.MaximumConnections ?? DownloadDefaults.Connections).ConfigureAwait(false); + var profile = await CacheLoaderProfileAsync(inspection.Loader, inspection.GameVersion, inspection.LoaderVersion, token).ConfigureAwait(false); + var instance = new GameInstance(Guid.NewGuid().ToString("N"), request.InstanceName.Trim(), profile, destination, + Loader: inspection.Loader, LoaderVersion: inspection.LoaderVersion, GameVersionId: inspection.GameVersion); + var manifestPath = ContentInstallFiles.Literal(stage, ContentInstallFiles.ManifestName); + var manifest = JsonSerializer.Deserialize(await File.ReadAllBytesAsync(manifestPath, token).ConfigureAwait(false)) ?? throw new InvalidDataException("整合包安装清单缺失。"); + await File.WriteAllBytesAsync(manifestPath, ContentInstallFiles.SerializeManifest(manifest with { InstanceId = instance.Id }), token).ConfigureAwait(false); + if (request.PrepareAfterImport) + { + await PrepareInstanceAsync(instance with { GameDirectory = stage }, token, publishInstalled: false).ConfigureAwait(false); + instance = instance with { Installed = true }; + } + token.ThrowIfCancellationRequested(); _ = ContentInstallFiles.Literal(root, Path.GetFileName(stage)); _ = ContentInstallFiles.Literal(root, Path.GetFileName(destination)); + await IO.DirectoryPublication.PublishAsync(stage, destination, token).ConfigureAwait(false); moved = true; + var candidate = Snapshot with { Instances = Snapshot.Instances.Append(instance).ToArray(), SelectedInstanceId = Snapshot.Settings.Downloads?.SelectInstalledInstance == false ? Snapshot.SelectedInstanceId : instance.Id }; + await PersistCandidateAsync(candidate, token).ConfigureAwait(false); registered = true; + Set(s => s with { Instances = candidate.Instances, SelectedInstanceId = candidate.SelectedInstanceId }); + result = new(instance, manifest.Files.Count, inspection.Files.Count(f => f.Client == "unsupported"), inspection.Files.Count(f => f.Client == "optional" && !(request.OptionalClientFiles ?? []).Contains(f.Path))); + }, ct).ConfigureAwait(false); + } + finally + { + if (!registered) + { + var owned = moved ? destination : stage; VerifiedDownloader.RejectLink(owned); + if (Directory.Exists(owned)) Directory.Delete(owned, true); + } + } + }, cancellationToken).ConfigureAwait(false); + return result!; + } + private Task DownloadPackFileAsync(ModrinthPackFile file, string path, CancellationToken ct) + { + var urls = file.Downloads.SelectMany(url => ModDownloadSources.Resolve(url, Sources())).Distinct().Select(url => new Uri(url)).ToArray(); + return downloader.DownloadAsync(new(urls, path, file.Sha1, Size: file.Size), new InlineProgress(OnTransfer), ct); + } + public async Task ExportModrinthPackAsync(string instanceId, ModrinthPackExportOptions options, CancellationToken cancellationToken = default) + { + options = options with { OverridePaths = options.OverridePaths?.ToArray() }; + string? result = null; + await ExecuteAsync("Ready", async ct => + { + var instance = ContentTarget(instanceId, true); + result = await new ModrinthPackArchive().ExportAsync(instance, options, SafePath.Within(Paths.CacheDirectory, "exports"), ct).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false); + return result!; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.Presentation.cs b/src/SHOU.Launcher.Core/LauncherService.Presentation.cs new file mode 100644 index 00000000..d6025ac8 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.Presentation.cs @@ -0,0 +1,33 @@ +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IInstancePresentationService +{ + public Task UpdateInstancePresentationAsync(string instanceId, InstancePresentationEdit edit, CancellationToken cancellationToken = default) => ExecuteAsync("Ready", async ct => + { + if (!Instances.InstanceIconImages.Builtins.Contains(edit.Icon) && edit.Icon != "custom") throw new ArgumentException("未知实例图标。"); + if (string.IsNullOrWhiteSpace(edit.Category) || edit.Category.Length > 80 || edit.Category.Any(char.IsControl)) throw new ArgumentException("分类须为1–80字的单行文字。"); + if (edit.Description.Length > 4096 || edit.Description.Any(c => char.IsControl(c) && c is not ('\r' or '\n' or '\t'))) throw new ArgumentException("实例描述最多4096字,不能包含控制字符。"); + var instance = FindInstance(instanceId); var previous = instance.Presentation ?? new(); + if (edit.Icon == "custom" && previous.IconImageSha256 is null) throw new InvalidOperationException("请先选择图片并裁剪图标。"); + var updated = instance with { Presentation = previous with { Icon = edit.Icon, Category = edit.Category.Trim(), Description = edit.Description, Favorite = edit.Favorite } }; + var candidate = Snapshot with { Instances = Snapshot.Instances.Select(i => i.Id == instanceId ? updated : i).ToArray() }; + await PersistCandidateAsync(candidate, ct).ConfigureAwait(false); + Set(s => s with { Instances = candidate.Instances }); + }, cancellationToken); + + private async Task RecordInstanceLaunchAsync(string instanceId) + { + try + { + var current = FindInstance(instanceId); var previous = current.Presentation ?? new(); + var updated = current with { Presentation = previous with { LaunchCount = previous.LaunchCount == long.MaxValue ? long.MaxValue : previous.LaunchCount + 1 } }; + var candidate = Snapshot with { Instances = Snapshot.Instances.Select(i => i.Id == instanceId ? updated : i).ToArray() }; + await PersistCandidateAsync(candidate, lifetime.Token).ConfigureAwait(false); + Set(s => s with { Instances = candidate.Instances }); + } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or InvalidOperationException or OperationCanceledException) + { Log("Warning", "游戏已启动,启动次数未能保存:" + ex.GetType().Name); } + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.ScreenshotTrash.cs b/src/SHOU.Launcher.Core/LauncherService.ScreenshotTrash.cs new file mode 100644 index 00000000..9bc5f9c6 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.ScreenshotTrash.cs @@ -0,0 +1,21 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IScreenshotTrashService +{ + public async Task> ListScreenshotTrashAsync(string instanceId, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); var instance = FindInstance(instanceId); EnsureIsolatedGamePath(instance.GameDirectory); + return await ScreenshotTrash.ListAsync(instance, cancellationToken).ConfigureAwait(false); + } + public async Task MoveScreenshotToTrashAsync(string instanceId, string relativePath, CancellationToken cancellationToken = default) + { + ScreenshotTrashEntry? entry = null; + await ExecuteAsync("Ready", async ct => { var instance = FindInstance(instanceId); EnsureIsolatedGamePath(instance.GameDirectory); entry = await ScreenshotTrash.MoveAsync(instance, relativePath, ct).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false); + return entry!; + } + public Task RestoreScreenshotAsync(string instanceId, string trashId, CancellationToken cancellationToken = default) => ExecuteAsync("Ready", async ct => + { var instance = FindInstance(instanceId); EnsureIsolatedGamePath(instance.GameDirectory); await ScreenshotTrash.RestoreAsync(instance, trashId, ct).ConfigureAwait(false); }, cancellationToken); +} diff --git a/src/SHOU.Launcher.Core/LauncherService.Servers.cs b/src/SHOU.Launcher.Core/LauncherService.Servers.cs new file mode 100644 index 00000000..1b82671e --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.Servers.cs @@ -0,0 +1,13 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Minecraft; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IServerLaunchService +{ + public Task LaunchToServerAsync(string instanceId, string address, CancellationToken cancellationToken = default) + { + var destination = ServerLaunchPolicy.Parse(address).Address; + return ExecuteAsync("Launching", ct => LaunchCoreAsync(instanceId, destination, ct), cancellationToken); + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.Tools.cs b/src/SHOU.Launcher.Core/LauncherService.Tools.cs new file mode 100644 index 00000000..66d860fd --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.Tools.cs @@ -0,0 +1,73 @@ +using System.Security.Cryptography; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Authentication; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.Tools; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IToolboxService +{ + public async Task DownloadToolFileAsync(Uri source, string destination, IProgress? progress = null, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + using var client = new HttpClient(new ConfigurableNetworkHandler(network, allowAutoRedirect: false)) { Timeout = Timeout.InfiniteTimeSpan }; + await ToolFileTransfer.DownloadAsync(client, source, destination, progress, cancellationToken).ConfigureAwait(false); + } + public async Task DownloadPublicSkinAsync(string playerName, CancellationToken cancellationToken = default) + { + using var client = new HttpClient(new ConfigurableNetworkHandler(network, allowAutoRedirect: false)); + return await new AccountAppearanceClient(client).ReadPublicMicrosoftSkinAsync(playerName, cancellationToken).ConfigureAwait(false); + } + public async Task QueryToolServerAsync(string address, CancellationToken cancellationToken = default) + { + address = address.Trim(); + if (address.Length is 0 or > 253 || address.Any(char.IsWhiteSpace) || address.IndexOfAny(['/', '\\', '@', '?', '#']) >= 0 + || !Uri.TryCreate("minecraft://" + address, UriKind.Absolute, out var uri) || string.IsNullOrEmpty(uri.Host) || uri.Port is 0 or > 65535) + throw new ArgumentException("请输入服务器地址,可带端口;IPv6 地址请加方括号。"); + return await ClubStatusProbe.ProbeAsync(new("tool-query", "服务器", address), cancellationToken).ConfigureAwait(false); + } + public async Task ScanGameLogsAsync(CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); RequireNoToolGame(); + foreach (var instance in Snapshot.Instances) EnsureIsolatedGamePath(instance.GameDirectory); + return await GameLogCleaner.ScanAsync(Snapshot.Instances, cancellationToken).ConfigureAwait(false); + } + public Task MoveGameLogsAsync(GameLogCleanupPlan plan, CancellationToken cancellationToken = default) + => ExecuteAsync("Ready", async ct => { RequireNoToolGame(); foreach (var instance in Snapshot.Instances) EnsureIsolatedGamePath(instance.GameDirectory); await GameLogCleaner.MoveAsync(plan, Snapshot.Instances, Path.Combine(Paths.LocalDataDirectory, "tool-log-receipts"), ct); }, cancellationToken); + public async Task RestoreGameLogsAsync(CancellationToken cancellationToken = default) + { + var count = 0; + await ExecuteAsync("Ready", async ct => { RequireNoToolGame(); foreach (var instance in Snapshot.Instances) EnsureIsolatedGamePath(instance.GameDirectory); count = await GameLogCleaner.RestoreLatestAsync(Snapshot.Instances, Path.Combine(Paths.LocalDataDirectory, "tool-log-receipts"), ct); }, cancellationToken).ConfigureAwait(false); + return count; + } + private void RequireNoToolGame() + { + RefreshGameSessions(); + if (Snapshot.GameSessions.Count != 0 || Snapshot.GameProcessId is not null) throw new InvalidOperationException("游戏仍在运行,请退出后再整理日志。"); + } + public async Task GetDailyFortuneAsync(DateOnly date, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + var file = Path.Combine(Paths.LocalDataDirectory, "tool-fortune-seed.bin"); VerifiedDownloader.RejectLink(file); + byte[] seed; + if (!File.Exists(file)) + { + seed = RandomNumberGenerator.GetBytes(32); + var stage = file + "." + Guid.NewGuid().ToString("N") + ".part"; var owned = false; + try + { + await using (var output = new FileStream(stage, FileMode.CreateNew, FileAccess.Write, FileShare.None)) { owned = true; await output.WriteAsync(seed, cancellationToken); await output.FlushAsync(cancellationToken); } + cancellationToken.ThrowIfCancellationRequested(); VerifiedDownloader.RejectLink(file); File.Move(stage, file, false); owned = false; + } + catch (IOException) when (File.Exists(file)) { seed = await ReadSeedAsync(file, cancellationToken); } + finally { if (owned) File.Delete(stage); } + } + else seed = await ReadSeedAsync(file, cancellationToken); + if (seed.Length != 32) throw new InvalidDataException("今日人品记录损坏,请保留文件后重试。"); + var data = System.Text.Encoding.UTF8.GetBytes(date.ToString("yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture)); + return (int)(System.Buffers.Binary.BinaryPrimitives.ReadUInt32BigEndian(HMACSHA256.HashData(seed, data)) % 101); + } + private static async Task ReadSeedAsync(string file, CancellationToken ct) + { VerifiedDownloader.RejectLink(file); if (new FileInfo(file).Length != 32) throw new InvalidDataException("今日人品记录损坏,请保留文件后重试。"); return await File.ReadAllBytesAsync(file, ct); } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.TransactionalInstall.cs b/src/SHOU.Launcher.Core/LauncherService.TransactionalInstall.cs new file mode 100644 index 00000000..8d475739 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.TransactionalInstall.cs @@ -0,0 +1,61 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : ITransactionalInstanceInstaller +{ + public async Task CreateInstalledInstanceAsync(string name, string gameVersion, string loader, string? loaderVersion, CancellationToken cancellationToken = default) + { + if (string.IsNullOrWhiteSpace(name) || name.Length > 80 || name.Any(char.IsControl)) throw new ArgumentException("请输入 1–80 字的实例名称。"); + SafePath.Identifier(gameVersion); + if (loader == "cleanroom") { if (gameVersion != "1.12.2") throw new InvalidDataException("Cleanroom 仅支持 1.12.2。"); SafePath.Identifier(loaderVersion ?? throw new InvalidDataException("Cleanroom 版本缺失。")); } + else if (loader == "legacyfabric") SafePath.Identifier(loaderVersion ?? throw new InvalidDataException("Legacy Fabric 版本缺失。")); + else if (Loaders.PortableVendorInstaller.Supports(loader)) SafePath.Identifier(loaderVersion ?? throw new InvalidDataException("加载器版本缺失。")); + else PackLoaderIdentity.Validate(loader, loaderVersion); + GameInstance? result = null; + await ExecuteAsync("Installing", async ct => + { + var root = Snapshot.Settings.GameRoot ?? Paths.InstancesDirectory; + EnsureIsolatedGamePath(root); VerifiedDownloader.RejectLink(root); Directory.CreateDirectory(root); + var stage = ContentInstallFiles.Literal(root, ".shou-install-" + Guid.NewGuid().ToString("N")); + var destination = NewGameDirectory(loader); var isShared = Path.GetFileName(destination) == "shared-game"; + SharedInstallPublication? shared = null; + var moved = false; var registered = false; + try + { + var profile = await CacheLoaderProfileAsync(loader, gameVersion, loaderVersion, ct).ConfigureAwait(false); + var instance = new GameInstance(Guid.NewGuid().ToString("N"), name.Trim(), profile, stage, Loader: loader, LoaderVersion: loaderVersion, GameVersionId: gameVersion); + Directory.CreateDirectory(stage); + await PrepareInstanceAsync(instance, ct, publishInstalled: false).ConfigureAwait(false); + ct.ThrowIfCancellationRequested(); + if (isShared) + { + var existing = Snapshot.Instances.Where(i => PathEquals(i.GameDirectory, destination)).ToArray(); + foreach (var other in existing) EnsureInstanceNotRunning(other); + Downloads.VerifiedDownloader.RejectLink(destination); + if (Directory.Exists(destination) && Directory.EnumerateFileSystemEntries(destination).Any() && existing.Length == 0) throw new IOException("共享目录含尚未接入的数据,请先接入已有实例。"); + shared = new(destination); await shared.PublishAsync(stage, ct).ConfigureAwait(false); + } + else { await DirectoryPublication.PublishAsync(stage, destination, ct).ConfigureAwait(false); moved = true; } + instance = instance with { GameDirectory = destination, Installed = true }; + var candidate = Snapshot with { Instances = Snapshot.Instances.Append(instance).ToArray(), SelectedInstanceId = Snapshot.Settings.Downloads?.SelectInstalledInstance == false ? Snapshot.SelectedInstanceId : instance.Id }; + await PersistCandidateAsync(candidate, ct).ConfigureAwait(false); registered = true; + shared?.Complete(); + Set(s => s with { Instances = candidate.Instances, SelectedInstanceId = candidate.SelectedInstanceId }); result = instance; + } + finally + { + try { if (shared is not null) await shared.DisposeAsync().ConfigureAwait(false); } + finally + { + var owned = moved ? registered ? null : destination : stage; + if (owned is not null) { VerifiedDownloader.RejectLink(owned); if (Directory.Exists(owned)) Directory.Delete(owned, true); } + } + } + }, cancellationToken).ConfigureAwait(false); + return result!; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.VendorLoaders.cs b/src/SHOU.Launcher.Core/LauncherService.VendorLoaders.cs new file mode 100644 index 00000000..2ca393f6 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.VendorLoaders.cs @@ -0,0 +1,52 @@ +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.Loaders; +using SHOU.Launcher.Core.Minecraft; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService +{ + private PortableVendorInstaller VendorInstaller(HttpClient client) => new(client, downloader, platform.Processes, Paths.CacheDirectory, Paths.TempDirectory, Sources, () => network.Capture().Proxy, javaBootstrap); + private async Task CacheVendorProfileAsync(string loader, string game, string version, CancellationToken ct) + { + using var client = new HttpClient(new ConfigurableNetworkHandler(network, allowAutoRedirect: false)); + var installer = VendorInstaller(client); + if (await installer.CachedProfileAsync(loader, game, version, ct).ConfigureAwait(false) is { } cached) return cached; + var vanilla = await new VersionMetadataResolver(http, downloader, Paths.CacheDirectory, Sources).ResolveAsync(game, ct).ConfigureAwait(false); + var javaVersion = vanilla; + if (loader == "labymod") + { + var channel = version.StartsWith("production-", StringComparison.Ordinal) ? "production" : version.StartsWith("snapshot-", StringComparison.Ordinal) ? "snapshot" : throw new InvalidDataException("LabyMod 发布渠道身份无效。"); + var text = await new LoaderCatalog(http).TextAsync(new("https://releases.r2.labymod.net/api/v1/manifest/" + channel + "/latest.json"), 2 * 1024 * 1024, ct).ConfigureAwait(false); + var target = (JsonNode.Parse(text)?["minecraftVersions"] as JsonArray)?.SingleOrDefault(v => (string?)v?["version"] == game) ?? throw new InvalidDataException("LabyMod 不支持所选 Minecraft 版本。"); + if (target["runtime"]?["version"] is { } major && target["runtime"]?["name"] is { } component) + { + var metadata = (JsonObject)vanilla.Metadata.DeepClone(); metadata["javaVersion"] = new JsonObject { ["majorVersion"] = major.GetValue(), ["component"] = component.GetValue() }; + javaVersion = vanilla with { Metadata = metadata }; + } + } + var subject = new GameInstance("vendor-install", "安装适配器", game, Paths.TempDirectory, GameVersionId: game); + var java = await SelectInstanceJavaAsync(subject, javaVersion, ct).ConfigureAwait(false); + return await installer.EnsureAsync(loader, game, version, javaVersion, java, ct).ConfigureAwait(false); + } + private async Task> VendorChoicesAsync(string loader, string game, CancellationToken ct) + { + var catalog = await new InstallerCatalogReader(http).ReadAsync(loader, ct).ConfigureAwait(false); + var result = new List(); + foreach (var row in catalog.Versions) + { + if (loader != "labymod" && row.GameVersion != game) continue; + if (loader == "labymod") + { + var text = await new LoaderCatalog(http).TextAsync(new("https://releases.r2.labymod.net/api/v1/manifest/" + row.Channel + "/latest.json"), 2 * 1024 * 1024, ct).ConfigureAwait(false); + var metadata = JsonNode.Parse(text); + if ((metadata?["minecraftVersions"] as JsonArray)?.Any(v => (string?)v?["version"] == game) != true) continue; + } + result.Add(new(loader, PortableVendorInstaller.VersionKey(row), row.Channel is "stable" or "production", Caption: row.Version + (loader == "labymod" ? row.Channel == "production" ? " · 稳定版" : " · 快照版" : ""))); + } + return result; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.WorldContent.cs b/src/SHOU.Launcher.Core/LauncherService.WorldContent.cs new file mode 100644 index 00000000..943d7ceb --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.WorldContent.cs @@ -0,0 +1,227 @@ +using System.Collections.Concurrent; +using System.IO.Compression; +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.Instances; +using SHOU.Launcher.Core.IO; +using SHOU.Launcher.Core.Minecraft; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IWorldContentInstallationService +{ + private readonly IContentDependencyCatalogService? worldContentCatalog; + private readonly ConcurrentDictionary worldDownloads = new(); + private sealed record WorldGameIdentity(string Version, int DataVersion, DataPackFormat PackFormat); + private sealed record WorldDownloadPlan(WorldContentPreview Preview, WorldContentRequest Request, GameInstance Instance, + WorldGameIdentity Game, ContentInstallPlan? Datapacks, InspectedWorld? World, IReadOnlyDictionary Archives, + IReadOnlyDictionary ArchiveHashes, + string Revision, WorldPathSnapshot TargetGuard, IReadOnlySet NewPacks, DateTimeOffset Created, LocalWorldSource? LocalSource = null); + private sealed record WorldPackSnapshot(string Revision, IReadOnlyDictionary Packs); + private Task WorldContentOperationAsync(string identity, Func retry, Func action, CancellationToken ct) => + ExecuteAsync("Installing", token => RunContentTransferAsync("world-content:" + identity, retry, action, token), ct); + private static string WorldLeaf(string value) + { + ModrinthPackArchive.SafeRelative(value); + if (value.Length is < 1 or > 120 || value.Contains('/') || value.StartsWith('.') || value.Any(c => "<>:\"/\\|?*".Contains(c)) || value.EndsWith('.') || value.EndsWith(' ')) throw new InvalidDataException("请输入安全的存档文件夹名。"); + return value; + } + public async Task> GetWorldContentTargetsAsync(string instanceId, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + return (await WorldStore(ContentTarget(instanceId, false)).GetWorldsAsync(cancellationToken).ConfigureAwait(false)) + .Select(w => new WorldContentTarget(w.DirectoryName, w.Name, w.Version, w.DataVersion, w.Error)).ToArray(); + } + private async Task WorldGameAsync(GameInstance instance, CancellationToken ct) + { + var game = InstanceIdentity.GameVersion(instance); + var metadata = await new VersionMetadataResolver(http, downloader, Paths.CacheDirectory, Sources).ResolveAsync(game, ct).ConfigureAwait(false); + var client = metadata.Metadata["downloads"]?["client"] ?? throw new InvalidDataException("缺少游戏版本校验信息,请先校验实例文件。"); + var sha1 = (string?)client["sha1"]; var size = (long?)client["size"]; + if (!ContentInstallFiles.Hash(sha1, 40) || size is null or <= 0 or > 256 * 1024 * 1024) throw new InvalidDataException("基础版本文件缺少可信哈希或大小。"); + var path = ContentInstallFiles.Literal(Paths.CacheDirectory, $"versions/{game}/{game}.jar"); + await downloader.DownloadAsync(new(PCL.Core.Conduit.DownloadSources.Resolve([(string)client["url"]!], Sources()).Select(s => new Uri(s.Url)).ToArray(), path, sha1, Size: size), new InlineProgress(OnTransfer), ct).ConfigureAwait(false); + if (!await ContentInstallFiles.MatchesAsync(path, sha1!, size.Value, ct).ConfigureAwait(false)) throw new InvalidDataException("基础版本校验失败。"); + var guard = WorldPathSnapshot.Capture(Paths.CacheDirectory, path); + using var zip = ZipFile.OpenRead(path); var entry = zip.GetEntry("version.json") ?? throw new NotSupportedException("此历史版本没有可核验的世界/数据包格式信息。"); + using var data = PackArchiveReader.Json(await PackArchiveReader.ReadEntryAsync(entry, 65536, ct)); var info = data.RootElement; + if (info.GetProperty("id").GetString() != game) throw new InvalidDataException("游戏内版本身份不一致。"); + var dataVersion = info.GetProperty("world_version").GetInt32(); var packs = info.GetProperty("pack_version"); + var format = packs.TryGetProperty("data", out var legacy) ? new DataPackFormat(legacy.GetInt32(), 0) : new(packs.GetProperty("data_major").GetInt32(), packs.GetProperty("data_minor").GetInt32()); + if (dataVersion <= 0 || format.Major <= 0 || format.Minor < 0) throw new InvalidDataException("游戏格式号无效。"); + guard.Verify(); return new(game, dataVersion, format); + } + private static string DownloadArchive(IAppPaths paths, ContentFile file) => ContentInstallFiles.Literal(paths.CacheDirectory, "content/" + file.Sha1.ToLowerInvariant() + "/" + WorldLeaf(file.FileName)); + public async Task PreviewWorldContentAsync(WorldContentRequest request, CancellationToken cancellationToken = default) + { + if (request.Kind is not ("datapack" or "world")) throw new ArgumentException("请选择数据包或世界资源。"); + WorldLeaf(request.WorldDirectoryName); WorldLeaf(request.FileName); + WorldContentPreview? result = null; + await WorldContentOperationAsync(request.InstanceId, token => PreviewWorldContentAsync(request, token), async ct => + { + var instance = ContentTarget(request.InstanceId, true); var catalog = worldContentCatalog ?? this; + var game = await WorldGameAsync(instance, ct).ConfigureAwait(false); + var root = ContentInstallFiles.Literal(instance.GameDirectory, "saves/" + request.WorldDirectoryName); + var archives = new Dictionary(); var archiveHashes = new Dictionary(); ContentInstallPlan? packs = null; InspectedWorld? world = null; + var warnings = new List(); string revision; WorldPathSnapshot targetGuard; var newPacks = new HashSet(StringComparer.Ordinal); + IReadOnlyList files; + if (request.Kind == "datapack") + { + var targetWorld = (await WorldStore(instance).GetWorldsAsync(ct)).SingleOrDefault(w => w.DirectoryName == request.WorldDirectoryName) + ?? throw new InvalidDataException("请选择已存在的 Java 存档。"); + if (targetWorld.Error is not null || targetWorld.Version != game.Version || targetWorld.DataVersion != game.DataVersion) throw new InvalidDataException("存档与实例版本不一致或未知;不会自动升级/降级存档。"); + targetGuard = WorldPathSnapshot.Capture(instance.GameDirectory, root); + var destination = instance with { GameDirectory = root }; + packs = await new ContentInstallPlanner(this, catalog).PlanAsync(destination, targetWorld.Version, new(request.InstanceId, request.ProjectId, request.ReleaseId, request.FileName, "datapack"), ct, worldDatapacks: true); + var existing = await SnapshotWorldPacksAsync(instance, request.WorldDirectoryName, game, null, ct); + revision = existing.Revision; var known = new Dictionary(); + foreach (var (name, pack) in existing.Packs) WorldContentArchive.CheckResources(known, pack, name, warnings); + foreach (var file in packs.Files) + { + ContentInstallFiles.ValidateFile(file.File); + if (file.File.Size > 64 * 1024 * 1024) throw new InvalidDataException("数据包超过 64 MiB 限制。"); + var path = DownloadArchive(Paths, file.File); archives[file.RelativePath] = path; + await DownloadInstallFileAsync(file.File, path, ct).ConfigureAwait(false); + var pack = await WorldContentArchive.DatapackAsync(path, game.PackFormat, ct); + archiveHashes[file.RelativePath] = pack.Revision; + WorldContentArchive.CheckResources(known, pack, file.File.FileName, warnings); + if (!File.Exists(ContentInstallFiles.Literal(root, file.RelativePath))) newPacks.Add(file.RelativePath["datapacks/".Length..]); + } + files = packs.Files.Select(f => f.RelativePath).ToArray(); warnings.AddRange(packs.Warnings); + warnings.Add("安装不更改当前启停状态。"); + } + else + { + RequireMissingWorld(instance, request.WorldDirectoryName); + targetGuard = WorldPathSnapshot.Capture(instance.GameDirectory, ContentInstallFiles.Literal(instance.GameDirectory, "saves"), true); + var project = await catalog.GetContentProjectAsync(request.ProjectId, ct); var release = await catalog.GetContentReleaseAsync(request.ReleaseId, ct); + if (project.Id != request.ProjectId || project.Kind != "world" || release.Id != request.ReleaseId || release.ProjectId != project.Id || !release.GameVersions.Contains(game.Version, StringComparer.Ordinal)) throw new InvalidDataException("世界资源身份或目标版本不兼容。"); + if (release.Loaders.Count > 0 && !release.Loaders.Contains(instance.Loader, StringComparer.OrdinalIgnoreCase)) throw new InvalidDataException("此世界声明的加载器与目标实例不一致。"); + if (release.Dependencies?.Any(d => d.Type is "required" or "incompatible") == true) throw new NotSupportedException("此世界声明额外必装/冲突依赖,请先选择可独立安装的世界文件。"); + var file = release.Files.SingleOrDefault(f => f.FileName == request.FileName) ?? throw new InvalidDataException("请选择明确的世界文件。"); + ContentInstallFiles.ValidateFile(file); + if (!file.FileName.EndsWith(".zip", StringComparison.OrdinalIgnoreCase) || file.Size > PackArchiveReader.MaximumArchiveBytes) throw new InvalidDataException("世界须为不超过 256 MiB 的 Java ZIP。"); + var path = DownloadArchive(Paths, file); await DownloadInstallFileAsync(file, path, ct); archives["world"] = path; + world = await WorldContentArchive.WorldAsync(path, ct); + if (world.DataVersion != game.DataVersion || world.Version != game.Version) throw new InvalidDataException("ZIP 内世界版本与所选实例不一致,不自动升级/降级世界。"); + using var archive = PackArchiveReader.Open(path); revision = await archive.Sha256Async(ct); files = world.Files; + var inspect = ContentInstallFiles.Literal(Paths.TempDirectory, "world-inspect-" + Guid.NewGuid().ToString("N")); + try + { + Directory.CreateDirectory(inspect); + var metadataFiles = world.Files.Where(p => p == "level.dat" || p.StartsWith("datapacks/", StringComparison.Ordinal)).ToArray(); + await WorldContentArchive.ExtractWorldAsync(path, inspect, world with { Files = metadataFiles }, revision, ct); + await ValidateWorldPacksForInstanceAsync(inspect, game.PackFormat, instance, ct); + } + finally { VerifiedDownloader.RejectLink(inspect); if (Directory.Exists(inspect)) Directory.Delete(inspect, true); } + warnings.Add("导入为新的存档文件夹,保留 ZIP 内世界数据,不覆盖已有存档。"); + } + ct.ThrowIfCancellationRequested(); + var preview = new WorldContentPreview(Guid.NewGuid().ToString("N"), request.Kind, instance.Name, request.WorldDirectoryName, game.Version, files.ToArray(), warnings.Distinct().ToArray()); + worldDownloads[preview.Id] = new(preview, request, instance, game, packs, world, archives, archiveHashes, revision, targetGuard, newPacks, DateTimeOffset.UtcNow); + foreach (var key in worldDownloads.Keys.Where(k => k != preview.Id).Take(Math.Max(0, worldDownloads.Count - 8))) worldDownloads.TryRemove(key, out _); + result = preview; + }, cancellationToken).ConfigureAwait(false); + return result!; + } + private static void RequireMissingWorld(GameInstance instance, string leaf) + { + var saves = ContentInstallFiles.Literal(instance.GameDirectory, "saves"); + if (Directory.Exists(saves) && Directory.EnumerateFileSystemEntries(saves).Any(p => ContentInstallFiles.PathKey(Path.GetFileName(p)) == ContentInstallFiles.PathKey(leaf))) throw new IOException("存档文件夹已存在或名称冲突,请换一个新名称。"); + if (File.Exists(saves)) throw new IOException("saves 不是目录。"); + } + private async Task SnapshotWorldPacksAsync(GameInstance instance, string world, WorldGameIdentity expected, IReadOnlySet? ignore, CancellationToken ct) + { + var root = ContentInstallFiles.Literal(instance.GameDirectory, "saves/" + world); + var level = await WorldContentArchive.ReadFileAsync(instance.GameDirectory, ContentInstallFiles.Literal(root, "level.dat"), new NbtLimits().MaxInputBytes, ct); + var data = BoundedNbt.Read(level, cancellationToken: ct).Root.Find("Data")!; + if (data.Find("DataVersion") is not { Type: NbtType.Int } number || (int)number.Value != expected.DataVersion || data.Find("Version")?.Find("Name") is not { Type: NbtType.String } name || (string)name.Value != expected.Version) throw new IOException("目标世界版本已改变,请重新预检。"); + using var hash = IncrementalHash.CreateHash(HashAlgorithmName.SHA256); hash.AppendData(SHA256.HashData(level)); + var marker = ContentInstallFiles.Literal(root, ContentInstallFiles.ManifestName); + if (File.Exists(marker)) hash.AppendData(SHA256.HashData(await WorldContentArchive.ReadFileAsync(instance.GameDirectory, marker, 4 * 1024 * 1024, ct))); + var result = new Dictionary(StringComparer.Ordinal); var keys = new HashSet(); long totalBytes = 0; var resources = 0; + var folder = ContentInstallFiles.Literal(root, "datapacks"); + if (Directory.Exists(folder)) + { + var paths = Directory.EnumerateFileSystemEntries(folder).Take(1025).Order(StringComparer.Ordinal).ToArray(); if (paths.Length > 1024) throw new IOException("目标数据包超过 1024 项。"); + foreach (var path in paths) + { + var leaf = Path.GetFileName(path); _ = ContentInstallFiles.Literal(folder, leaf); + if (ignore?.Contains(leaf) == true) continue; + if (!keys.Add(ContentInstallFiles.PathKey(leaf))) throw new IOException("已有数据包存在大小写/Unicode 重名。"); + InspectedDatapack pack; + if (Directory.Exists(path)) pack = await WorldContentArchive.FolderDatapackAsync(path, expected.PackFormat, ct); + else if (leaf.EndsWith(".zip", StringComparison.OrdinalIgnoreCase)) pack = await WorldContentArchive.DatapackAsync(path, expected.PackFormat, ct); + else { hash.AppendData(Encoding.UTF8.GetBytes(leaf)); hash.AppendData(SHA256.HashData(await WorldContentArchive.ReadFileAsync(instance.GameDirectory, path, 64 * 1024 * 1024, ct))); continue; } + totalBytes += pack.ExpandedBytes; resources += pack.Resources.Count; + if (totalBytes > 256 * 1024 * 1024 || resources > 50000) throw new IOException("目标数据包总量超过安全扫描预算。"); + result.Add(leaf, pack); hash.AppendData(Encoding.UTF8.GetBytes(leaf + "\0" + pack.Revision)); + } + } + return new(Convert.ToHexStringLower(hash.GetHashAndReset()), result); + } + public async Task InstallWorldContentAsync(string previewId, CancellationToken cancellationToken = default) + { + if (!worldDownloads.TryGetValue(previewId, out var plan) || DateTimeOffset.UtcNow - plan.Created > TimeSpan.FromMinutes(30)) throw new InvalidOperationException("安装预检已过期,请重新读取。"); + WorldContentResult? result = null; + await WorldContentOperationAsync(plan.Request.InstanceId, token => InstallWorldContentAsync(previewId, token), async ct => + { + var instance = ContentTarget(plan.Request.InstanceId, true); + if (instance.GameDirectory != plan.Instance.GameDirectory || InstanceIdentity.GameVersion(instance) != plan.Game.Version) throw new IOException("目标实例已改变,请重新预检。"); + await VerifyLocalWorldSourceAsync(plan, ct); + var root = ContentInstallFiles.Literal(instance.GameDirectory, "saves/" + plan.Request.WorldDirectoryName); + if (plan.Datapacks is { } packs) + { + async Task Validate(bool published, CancellationToken token) + { + EnsureInstanceNotRunning(instance); plan.TargetGuard.Verify(); + if ((await SnapshotWorldPacksAsync(instance, plan.Request.WorldDirectoryName, plan.Game, published ? plan.NewPacks : null, token)).Revision != plan.Revision) throw new IOException("存档或已有数据包自预检后改变,请重新读取。"); + } + await Validate(false, ct); + var installed = await ContentInstallFiles.InstallAsync(instance with { GameDirectory = root }, packs, async (file, target, token) => + { + var source = plan.Archives["datapacks/" + file.FileName]; + if (!await ContentInstallFiles.MatchesAsync(source, file.Sha1, file.Size, token)) throw new IOException("缓存数据包已改变,请重新预检。"); + using var zip = PackArchiveReader.Open(source); + if (await zip.Sha256Async(token) != plan.ArchiveHashes["datapacks/" + file.FileName]) throw new IOException("缓存数据包与预检身份不同。"); + await zip.CopyToAsync(target, token); + _ = await WorldContentArchive.DatapackAsync(target, plan.Game.PackFormat, token); + }, ct, Validate); + result = new(instance.Id, plan.Request.WorldDirectoryName, installed.AddedFiles, root); + } + else + { + EnsureInstanceNotRunning(instance); plan.TargetGuard.VerifyExistingNodes(); RequireMissingWorld(instance, plan.Request.WorldDirectoryName); + var stage = ContentInstallFiles.Literal(instance.GameDirectory, ".shou-world-install-" + Guid.NewGuid().ToString("N")); + var saves = ContentInstallFiles.Literal(instance.GameDirectory, "saves"); var createdSaves = false; + try + { + var archive = plan.Archives["world"]; using (var zip = PackArchiveReader.Open(archive)) if (await zip.Sha256Async(ct) != plan.Revision) throw new IOException("世界 ZIP 自预检后改变。"); + Directory.CreateDirectory(stage); await WorldContentArchive.ExtractWorldAsync(archive, stage, plan.World!, plan.Revision, ct); + await ValidateWorldPacksForInstanceAsync(stage, plan.Game.PackFormat, plan.Instance, ct); + var sourceRecord = plan.LocalSource is null + ? JsonSerializer.Serialize(new { plan.Request.ProjectId, plan.Request.ReleaseId, plan.Request.FileName, Sha256 = plan.Revision }) + : JsonSerializer.Serialize(new { Kind = "local-world", plan.Request.FileName, Sha256 = plan.Revision, GameVersion = plan.Game.Version }); + await File.WriteAllTextAsync(ContentInstallFiles.Literal(stage, ".shou-world-source.json"), sourceRecord, ct); + await VerifyLocalWorldSourceAsync(plan, ct); + ct.ThrowIfCancellationRequested(); plan.TargetGuard.VerifyExistingNodes(); EnsureInstanceNotRunning(instance); RequireMissingWorld(instance, plan.Request.WorldDirectoryName); + if (!Directory.Exists(saves)) { Directory.CreateDirectory(saves); createdSaves = true; } + _ = ContentInstallFiles.Literal(instance.GameDirectory, "saves"); + await DirectoryPublication.PublishAsync(stage, root, ct); + result = new(instance.Id, plan.Request.WorldDirectoryName, plan.World!.Files.Count, root); + } + finally + { + VerifiedDownloader.RejectLink(stage); if (Directory.Exists(stage)) Directory.Delete(stage, true); + if (createdSaves) { VerifiedDownloader.RejectLink(saves); if (Directory.Exists(saves) && !Directory.EnumerateFileSystemEntries(saves).Any()) Directory.Delete(saves, false); } + } + } + worldDownloads.TryRemove(previewId, out _); + }, cancellationToken).ConfigureAwait(false); + return result!; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.WorldDatapackTrash.cs b/src/SHOU.Launcher.Core/LauncherService.WorldDatapackTrash.cs new file mode 100644 index 00000000..dbfe3889 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.WorldDatapackTrash.cs @@ -0,0 +1,16 @@ +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IWorldDatapackTrashService +{ + public async Task> GetWorldDatapackTrashAsync(string instanceId, string worldDirectoryName, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + return await WorldStore(instanceId, false).GetDatapackTrashAsync(worldDirectoryName, cancellationToken).ConfigureAwait(false); + } + public Task RecycleWorldDatapacksAsync(string instanceId, string worldDirectoryName, string expectedRevision, IReadOnlyList packs, CancellationToken cancellationToken = default) => + ExecuteAsync("Ready", ct => WorldStore(instanceId, true).RecycleDatapacksAsync(worldDirectoryName, expectedRevision, packs, ct), cancellationToken); + public Task RestoreWorldDatapacksAsync(string instanceId, string worldDirectoryName, string trashId, CancellationToken cancellationToken = default) => + ExecuteAsync("Ready", ct => WorldStore(instanceId, true).RestoreDatapacksAsync(worldDirectoryName, trashId, ct), cancellationToken); +} diff --git a/src/SHOU.Launcher.Core/LauncherService.WorldEditing.cs b/src/SHOU.Launcher.Core/LauncherService.WorldEditing.cs new file mode 100644 index 00000000..368d6d08 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.WorldEditing.cs @@ -0,0 +1,24 @@ +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IInstanceWorldEditService +{ + public async Task GetWorldEditStateAsync(string instanceId, string worldDirectoryName, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + return await WorldStore(instanceId, false).GetEditStateAsync(worldDirectoryName, cancellationToken).ConfigureAwait(false); + } + public async Task SaveWorldMetadataAsync(string instanceId, string worldDirectoryName, string expectedRevision, WorldMetadataEdit edit, CancellationToken cancellationToken = default) + { + WorldEditReceipt? result = null; + await ExecuteAsync("Ready", async ct => result = await WorldStore(instanceId, true).SaveMetadataAsync(worldDirectoryName, expectedRevision, edit, ct).ConfigureAwait(false), cancellationToken).ConfigureAwait(false); + return result!; + } + public async Task SetWorldDatapacksEnabledAsync(string instanceId, string worldDirectoryName, string expectedRevision, IReadOnlyList packs, bool enabled, CancellationToken cancellationToken = default) + { + WorldEditReceipt? result = null; + await ExecuteAsync("Ready", async ct => result = await WorldStore(instanceId, true).SetDatapacksEnabledAsync(worldDirectoryName, expectedRevision, packs, enabled, ct).ConfigureAwait(false), cancellationToken).ConfigureAwait(false); + return result!; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.Worlds.cs b/src/SHOU.Launcher.Core/LauncherService.Worlds.cs new file mode 100644 index 00000000..35161f44 --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.Worlds.cs @@ -0,0 +1,58 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Core; + +public sealed partial class LauncherService : IInstanceWorldService +{ + private InstanceWorldStore WorldStore(string instanceId, bool mutate) + { + if (!string.Equals(Snapshot.SelectedInstanceId, instanceId, StringComparison.Ordinal)) throw new InvalidOperationException("Select this isolated instance before accessing its world files."); + var instance = FindInstance(instanceId); EnsureIsolatedGamePath(instance.GameDirectory); + if (mutate) EnsureInstanceNotRunning(instance); + return WorldStore(instance); + } + private InstanceWorldStore WorldStore(GameInstance instance) + { + EnsureIsolatedGamePath(instance.GameDirectory); + var boundary = Paths.DataDirectory; + if (IsExplicitInstanceDirectory(instance, instance.GameDirectory)) + boundary = Path.GetDirectoryName(Path.GetFullPath(instance.GameDirectory)) ?? throw new IOException("实例目录不能是磁盘根目录。"); + else if (!IO.SafePath.IsWithin(IO.SafePath.Canonical(boundary), IO.SafePath.Canonical(instance.GameDirectory))) + { + var managedRoot = Snapshot.Settings.GameRoot ?? Paths.InstancesDirectory; + if (PathEquals(managedRoot, instance.GameDirectory) || !IO.SafePath.IsWithin(IO.SafePath.Canonical(managedRoot), IO.SafePath.Canonical(instance.GameDirectory))) + throw new IOException("请先接入此实例目录,再访问其存档或服务器文件。"); + boundary = managedRoot; + } + // The store still confines every operation to gameDirectory and captures physical node identities. + return new(boundary, instance.GameDirectory); + } + public async Task GetInstanceServersAsync(string instanceId, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + return await WorldStore(instanceId, false).GetServersAsync(cancellationToken).ConfigureAwait(false); + } + public async Task SaveInstanceServersAsync(string instanceId, string expectedRevision, IReadOnlyList entries, CancellationToken cancellationToken = default) + { + InstanceServerList? result = null; + await ExecuteAsync("Ready", async ct => result = await WorldStore(instanceId, true).SaveServersAsync(expectedRevision, entries, ct).ConfigureAwait(false), cancellationToken).ConfigureAwait(false); + return result!; + } + public async Task> GetInstanceWorldsAsync(string instanceId, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + return await WorldStore(instanceId, false).GetWorldsAsync(cancellationToken).ConfigureAwait(false); + } + public async Task> GetWorldDatapacksAsync(string instanceId, string worldDirectoryName, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + return await WorldStore(instanceId, false).GetDatapacksAsync(worldDirectoryName, cancellationToken).ConfigureAwait(false); + } + public async Task ImportWorldDatapackAsync(string instanceId, string worldDirectoryName, string zipPath, CancellationToken cancellationToken = default) + { + WorldDatapackFile? result = null; + await ExecuteAsync("Ready", async ct => result = await WorldStore(instanceId, true).ImportDatapackAsync(worldDirectoryName, zipPath, ct).ConfigureAwait(false), cancellationToken).ConfigureAwait(false); + return result!; + } +} diff --git a/src/SHOU.Launcher.Core/LauncherService.cs b/src/SHOU.Launcher.Core/LauncherService.cs new file mode 100644 index 00000000..69f5edff --- /dev/null +++ b/src/SHOU.Launcher.Core/LauncherService.cs @@ -0,0 +1,779 @@ +using System.Collections.Concurrent; +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using System.Text.Json.Nodes; +using PCL.Core.Conduit; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Authentication; +using SHOU.Launcher.Core.Configuration; +using SHOU.Launcher.Core.Diagnostics; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.IO; +using SHOU.Launcher.Core.Java; +using SHOU.Launcher.Core.Minecraft; +using ClubServer = SHOU.Launcher.Core.Abstractions.ClubServer; + +namespace SHOU.Launcher.Core; + +/// Production orchestration shared by both desktops. All persisted account DTOs are nonsecret. +public sealed partial class LauncherService : IInstanceInstallProgressService, ILauncherService, ILocalPackService, ILegacyMicrosoftAccountMigrationService, IOfflineAccountService +{ + private readonly PlatformServices platform; + private readonly HttpClient http; + private readonly IVerifiedDownloader downloader; + private readonly NetworkOptions network; + private readonly IBuildConfiguration build; + private readonly ConfigurationStore config; + private readonly AuthenticationClient authentication; + private readonly JavaBootstrapArtifact? javaBootstrap; + private readonly IJavaTrustService javaTrust; + private readonly SemaphoreSlim initialize = new(1, 1), operation = new(1, 1); + private readonly CancellationTokenSource lifetime = new(); + private readonly object sync = new(); + private readonly ConcurrentDictionary sessions = new(StringComparer.Ordinal); + private readonly ConcurrentDictionary downloads = new(StringComparer.Ordinal); + private readonly Queue logs = new(); + private readonly LogRedactor redactor = new(); + private LauncherSnapshot snapshot; + private bool initialized, disposed; + private CancellationTokenSource? installCancellation; + private readonly ConcurrentDictionary games = new(); + private readonly ConcurrentDictionary gameObservers = new(); + private readonly GameSessionRegistry gameSessions; + private DateTimeOffset lastDownloadUpdate; + private readonly DownloadTaskRegistry downloadOwners = new(); + private readonly string launcherLogPath; + + public LauncherService(PlatformServices platform, HttpClient http, IVerifiedDownloader downloader, + NetworkOptions network, IBuildConfiguration? buildConfiguration = null, AuthenticationClient? authenticationClient = null, + JavaBootstrapArtifact? javaBootstrap = null, IJavaTrustService? javaTrust = null, Content.CurseForgePackResolver? localPackResolver = null, + HttpClient? publicInformationHttp = null, IContentDependencyCatalogService? worldContentCatalog = null, Func? contentTransportFactory = null, + Func? accountAppearanceTransportFactory = null) + { + this.contentTransportFactory = contentTransportFactory; + this.accountAppearanceTransportFactory = accountAppearanceTransportFactory; + this.platform = platform; this.http = http; this.downloader = downloader; this.network = network; + this.worldContentCatalog = worldContentCatalog; + informationHttp = publicInformationHttp ?? new(new InformationRedirectHandler(new ConfigurableNetworkHandler(network, false))) { Timeout = TimeSpan.FromMinutes(5) }; + ownsInformationHttp = publicInformationHttp is null; + gameCatalogCache = new(platform.Paths.CacheDirectory); + build = buildConfiguration ?? new BuildConfiguration(); config = new(platform.Paths); + authentication = authenticationClient ?? new(http); + this.localPackResolver = localPackResolver; + this.javaBootstrap = javaBootstrap; + this.javaTrust = javaTrust ?? new DerivedJavaTrustService(platform.JavaDiscovery, platform.Processes); + network.Credentials = platform.Credentials; + launcherLogPath = Path.Combine(platform.Paths.LogsDirectory, "launcher.log"); + gameSessions = new(Path.Combine(platform.Paths.LocalDataDirectory, "game-sessions")); + snapshot = new((build is BuildConfiguration concrete ? concrete.GetIdentity() : new BuildConfiguration().GetIdentity() with { SourceSha = build.SourceSha, Configuration = build.Configuration, OwnerAssembly = build.OwnerAssembly, MicrosoftConfigured = !string.IsNullOrWhiteSpace(build.MicrosoftClientId), CurseForgeConfigured = !string.IsNullOrWhiteSpace(build.CurseForgeApiKey) }), platform.Info.Context, new(), [], [], [], + [new("none", "只启动游戏", ""), new("smp", "SMP · 多人生存", "smp.shoumc.com"), + new("create", "Create · 创造建筑", "create.shoumc.com"), new("shou", "SHOU · 校园展示", "shou.shoumc.com")], []); + } + public LauncherSnapshot Snapshot { get { lock (sync) return snapshot; } } + public IAppPaths Paths => platform.Paths; + public IPlatformCapabilities Capabilities => platform.Capabilities; + public event EventHandler? SnapshotChanged; + public event EventHandler? LogReceived; + public async Task InitializeAsync(CancellationToken cancellationToken = default) + { + await initialize.WaitAsync(cancellationToken).ConfigureAwait(false); + try + { + ObjectDisposedException.ThrowIf(disposed, this); + if (initialized) return; + if (!GeneratedLifecycle.Entries.SequenceEqual(new[] { "Paths", "DataLock", "Configuration", "Credentials", "Network", "Accounts", "UI" })) + throw new InvalidOperationException("Generated startup contract is not compatible with Bootstrap."); + foreach (var path in new[] { Paths.DataDirectory, Paths.SharedDataDirectory, Paths.LocalDataDirectory, Paths.CacheDirectory, + Paths.LogsDirectory, Paths.RuntimesDirectory, Paths.InstancesDirectory, Paths.TempDirectory }) Directory.CreateDirectory(path); + var state = await config.LoadAsync(cancellationToken).ConfigureAwait(false); + state = await ImportFirstRunLegacyDataAsync(state, cancellationToken).ConfigureAwait(false); + ConfigurationStore.ValidateSettings(state.Settings); + if (state.Settings.GameRoot is { Length: > 0 } gameRoot) EnsureIsolatedGamePath(gameRoot); + foreach (var instance in state.Instances) + if (!IsExplicitInstanceDirectory(instance, instance.GameDirectory)) EnsureIsolatedGamePath(instance.GameDirectory); + network.Update(state.Settings); + Set(s => s with { Settings = state.Settings, Instances = state.Instances, Accounts = state.Accounts, + SelectedAccountId = state.SelectedAccountId, SelectedInstanceId = state.SelectedInstanceId }); + foreach (var account in state.Accounts.Where(a => a.Kind != AccountKind.Offline)) + { + try + { + var bytes = await platform.Credentials.ReadAsync(AccountKey(account.Id), cancellationToken).ConfigureAwait(false); + if (bytes is not null) + { + try + { + var session = JsonSerializer.Deserialize(bytes, ConfigurationStore.JsonOptions) ?? throw new InvalidDataException("Empty credential record."); + if (!AccountIdentity.Matches(account, session.Profile)) throw new InvalidDataException("Protected account identity/origin mismatch."); + var trusted = session.Profile with { Persisted = true, Status = "已保存 · 启动时验证" }; + RegisterSession(session); sessions[account.Id] = session with { Profile = trusted }; ReplaceAccount(trusted); + } + finally { CryptographicOperations.ZeroMemory(bytes); } + } + else ReplaceAccount(account with { Persisted = false, Status = "凭据缺失 · 请重新登录" }); + } + catch (OperationCanceledException) { throw; } + catch (Exception ex) when (ex is CredentialStoreException or JsonException or InvalidDataException or IOException) + { + Set(s => s with { CanPersistAccounts = false }); + ReplaceAccount(account with { Status = "凭据读取失败 · 原数据保留" }); + Log("Warning", "账户凭据无法读取,已禁止账户持久写入;原因类型:" + ex.GetType().Name); + } + } + initialized = true; + RefreshGameSessions(); + sessionMonitor = MonitorGameSessionsAsync(); + Log("Info", $"{Snapshot.Build.Name} {Snapshot.Build.Version} · {Snapshot.Platform.RuntimeIdentifier} · configuration owner={build.OwnerAssembly}"); + } + finally { initialize.Release(); } + } + public async Task CreateInstanceAsync(string name, string versionId, CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + if (string.IsNullOrWhiteSpace(name) || name.Length > 80 || name.Any(char.IsControl)) throw new ArgumentException("请输入1–80字的单行实例名称。"); + SafePath.Identifier(versionId); + var instance = new GameInstance(Guid.NewGuid().ToString("N"), name.Trim(), versionId, + NewGameDirectory("vanilla"), GameVersionId: versionId); + await ExecuteAsync("Ready", async ct => + { + await RegisterNewInstanceAsync(instance, ct).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false); + return instance; + } + public Task SelectInstanceAsync(string instanceId, CancellationToken cancellationToken = default) => ExecuteAsync("Ready", async ct => + { _ = FindInstance(instanceId); await PersistCandidateAsync(Snapshot with { SelectedInstanceId = instanceId }, ct).ConfigureAwait(false); Set(s => s with { SelectedInstanceId = instanceId }); }, cancellationToken); + public async Task CreateFabricInstanceAsync(string name, string gameVersionId, string loaderVersion, CancellationToken cancellationToken = default) + { + if (string.IsNullOrWhiteSpace(name) || name.Length > 80 || name.Any(char.IsControl)) throw new ArgumentException("请输入1–80字的单行实例名称。"); + _ = FabricMetadataProvider.ProfileId(gameVersionId, loaderVersion); + GameInstance? created = null; + await ExecuteAsync("Installing", async ct => + { + var profile = await new FabricMetadataProvider(http, Paths.CacheDirectory, Sources).CacheProfileAsync(gameVersionId, loaderVersion, ct).ConfigureAwait(false); + created = new(Guid.NewGuid().ToString("N"), name.Trim(), profile, + NewGameDirectory("fabric"), Loader: "fabric", LoaderVersion: loaderVersion, GameVersionId: gameVersionId); + await RegisterNewInstanceAsync(created, ct).ConfigureAwait(false); + }, cancellationToken).ConfigureAwait(false); + return created!; + } + public async Task> DiscoverJavaAsync(CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + var result = await platform.JavaDiscovery.DiscoverAsync(new(Snapshot.Settings.JavaExecutable, Paths.RuntimesDirectory), cancellationToken).ConfigureAwait(false); + Set(s => s with { JavaInstallations = result }); return result; + } + public Task InstallInstanceAsync(string instanceId, CancellationToken cancellationToken = default) => ExecuteAsync("Installing", async ct => + { _ = await PrepareInstanceAsync(FindInstance(instanceId), ct).ConfigureAwait(false); }, cancellationToken); + public Task InstallInstanceWithProgressAsync(string instanceId, IProgress progress, CancellationToken cancellationToken = default) => ExecuteAsync("Installing", async ct => + { _ = await PrepareInstanceAsync(FindInstance(instanceId), ct, phases: new Content.PackProgressReporter(progress)).ConfigureAwait(false); }, cancellationToken); + private async Task<(InstalledGame Game, JavaInstallation Java)> PrepareInstanceAsync(GameInstance instance, CancellationToken ct, bool publishInstalled = true, string? launchSession = null, IProgress? phases = null) + { + var concurrent = launchSession is not null && IsGameDirectoryRunning(instance); + if (!concurrent) EnsureInstanceNotRunning(instance); + else if (!instance.Installed) throw new InvalidOperationException("请先退出此实例的游戏窗口并补全文件,再进行多开。"); + SetLaunchStage("检查游戏文件"); + using var cancellation = CancellationTokenSource.CreateLinkedTokenSource(ct); + var ownership = downloadOwners.Begin(instance.Id); installCancellation = cancellation; + try { return await PrepareInstanceCoreAsync(instance, cancellation.Token, publishInstalled && !concurrent, launchSession, concurrent, phases).ConfigureAwait(false); } + finally { downloadOwners.End(ownership); installCancellation = null; } + } + private async Task<(InstalledGame Game, JavaInstallation Java)> PrepareInstanceCoreAsync(GameInstance instance, CancellationToken ct, bool publishInstalled, string? launchSession = null, bool concurrent = false, IProgress? phases = null) + { + phases?.Report(new("解析版本与加载器", 0, 0)); + EnsureIsolatedGamePath(instance.GameDirectory); + if (instance.Loader is not ("vanilla" or "fabric" or "quilt" or "forge" or "neoforge" or "cleanroom" or "legacyfabric") && !Loaders.PortableVendorInstaller.Supports(instance.Loader)) throw new PlatformNotSupportedException("当前预览尚未实现此loader的processor链。"); + if (instance.Loader != "vanilla") _ = Instances.InstanceIdentity.GameVersion(instance); + var resolver = new VersionMetadataResolver(http, downloader, Paths.CacheDirectory, Sources); + var importedLoader = instance.VersionId.StartsWith("shou-import-", StringComparison.Ordinal) && (string?)(await resolver.LoadAsync(instance.VersionId, ct))["shouImportedLoader"] == instance.Loader; + if (!concurrent && !importedLoader && (instance.Origin is null || instance.RuntimeProfileOverride) && Loaders.PortableVendorInstaller.Supports(instance.Loader)) + { + var profile = await CacheVendorProfileAsync(instance.Loader, Instances.InstanceIdentity.GameVersion(instance), instance.LoaderVersion!, ct).ConfigureAwait(false); + if (profile != instance.VersionId && !(await resolver.ResolveAsync(instance.VersionId, ct).ConfigureAwait(false)).InheritanceChain.Contains(profile)) throw new InvalidDataException("安装适配器的实例身份不一致。"); + } + if (!concurrent && !importedLoader && (instance.Origin is null || instance.RuntimeProfileOverride) && instance.Loader is "forge" or "neoforge" or "cleanroom") + { + var vanilla = await resolver.ResolveAsync(Instances.InstanceIdentity.GameVersion(instance), ct).ConfigureAwait(false); + var processorVersion = vanilla; + if (instance.Loader == "cleanroom") + { + var metadata = (System.Text.Json.Nodes.JsonObject)vanilla.Metadata.DeepClone(); + metadata["javaVersion"] = new System.Text.Json.Nodes.JsonObject { ["majorVersion"] = 25, ["component"] = "java-runtime-epsilon" }; + processorVersion = vanilla with { Metadata = metadata }; + } + var processorJava = await SelectInstanceJavaAsync(instance, processorVersion, ct).ConfigureAwait(false); + await OfficialLoaders.EnsureInstalledAsync(instance, vanilla, processorJava, Context(processorJava), new InlineProgress(OnTransfer), ct).ConfigureAwait(false); + } + var version = instance.Origin is { } origin && !instance.RuntimeProfileOverride ? await Instances.ExistingInstanceReader.ResolveAsync(origin, instance.VersionId, Instances.InstanceIdentity.GameVersion(instance), ct).ConfigureAwait(false) : await resolver.ResolveAsync(instance.VersionId, ct).ConfigureAwait(false); + ValidateLoaderProfile(instance, version); + phases?.Report(new("检查 Java 运行环境", 0, 0)); + var java = await SelectInstanceJavaAsync(instance, version, ct).ConfigureAwait(false); + var context = Context(java); + var gameFiles = await new MinecraftInstaller(concurrent ? new InstalledFileReader() : downloader, Paths.CacheDirectory, Sources, () => network.Capture().Downloads?.MaximumConnections ?? DownloadDefaults.Connections).InstallAsync(version, context, + instance.GameDirectory, new InlineProgress(OnTransfer), ct, launchSession, concurrent, phases, + instance.RuntimeProfileOverride ? null : instance.Origin).ConfigureAwait(false); + if (!concurrent && !importedLoader && (instance.Origin is null || instance.RuntimeProfileOverride) && Loaders.PortableVendorInstaller.Supports(instance.Loader)) + { + using var vendorClient = new HttpClient(new ConfigurableNetworkHandler(network, allowAutoRedirect: false)); + await VendorInstaller(vendorClient).CopyPayloadAsync(instance, ct).ConfigureAwait(false); + } + if (publishInstalled) + { + phases?.Report(new("保存实例安装状态", 0, 0)); + var installedInstances = Snapshot.Instances.Select(i => i.Id == instance.Id ? i with { Installed = true } : i).ToArray(); + await PersistCandidateAsync(Snapshot with { Instances = installedInstances }, ct).ConfigureAwait(false); + Set(s => s with { Instances = installedInstances }); + } + return (gameFiles, java); + } + private async Task SelectInstanceJavaAsync(GameInstance instance, ResolvedVersion version, CancellationToken ct) + { + SetLaunchStage("选择 Java"); + var preferred = instance.JavaExecutable ?? Snapshot.Settings.JavaExecutable; + var candidates = await platform.JavaDiscovery.DiscoverAsync(new(preferred, Paths.RuntimesDirectory, version.RequiredJavaMajor, + Snapshot.Platform.HardwareArchitecture), ct).ConfigureAwait(false); + Set(s => s with { JavaInstallations = candidates }); + var java = candidates.Where(j => j.IsUsable && j.MajorVersion == version.RequiredJavaMajor + && j.RuntimeArchitecture == Snapshot.Platform.HardwareArchitecture && (string.IsNullOrWhiteSpace(preferred) || PathEquals(j.ExecutablePath, preferred))) + .OrderByDescending(j => string.IsNullOrWhiteSpace(preferred) && IsDerivedJava(j)).FirstOrDefault(); + var installedRuntime = java is null; + if (java is null) + { + if (!string.IsNullOrWhiteSpace(preferred)) throw new InvalidOperationException("指定Java未通过版本/架构探测;请修正选择,不会静默替换用户指定runtime。"); + java = await platform.JavaInstaller.InstallAsync(new(version.JavaComponent, version.RequiredJavaMajor, Snapshot.Platform.OS, + Snapshot.Platform.HardwareArchitecture, Paths.RuntimesDirectory), new InlineProgress(OnTransfer), ct).ConfigureAwait(false); + Set(s => s with { JavaInstallations = s.JavaInstallations.Append(java).ToArray() }); + } + if (IsDerivedJava(java) || installedRuntime && Snapshot.Settings.ConduitJavaTrustAutoRepair + && java.Source.StartsWith("managed:Mojang", StringComparison.Ordinal)) + { + if (installedRuntime && java.ValidatedManifestSha1 is null) + throw new InvalidDataException("官方下载Java缺少已验证manifest身份,未进行自动派生修复。"); + var derivation = await DeriveJavaAsync(java, ct).ConfigureAwait(false); + java = derivation.Java; + Set(s => s with { JavaInstallations = s.JavaInstallations.Where(j => !SameJavaPath(j.ExecutablePath, java.ExecutablePath)).Append(java).ToArray() }); + } + return java; + } + public async Task BuildLaunchPlanAsync(string instanceId, CancellationToken cancellationToken = default) + { + LaunchPlan? plan = null; + await ExecuteAsync("Installing", async ct => + { + var instance = FindInstance(instanceId); var prepared = await PrepareInstanceAsync(instance, ct).ConfigureAwait(false); + var original = await PlanAsync(instance, prepared.Game, prepared.Java, ct).ConfigureAwait(false); + using var protection = ProtectPlan(original); + plan = protection?.Plan ?? original; + }, cancellationToken).ConfigureAwait(false); + return plan!; + } + private async Task PlanAsync(GameInstance instance, InstalledGame installed, JavaInstallation java, CancellationToken ct, string? serverAddress = null, string? launchSession = null) + { + SetLaunchStage("验证账户"); + var account = Snapshot.Accounts.FirstOrDefault(a => a.Id == Snapshot.SelectedAccountId) ?? throw new InvalidOperationException("请先选择账户或添加本地离线测试档案。"); + if (account.Kind != AccountKind.Offline && javaBootstrap is null) + throw new InvalidOperationException("此构建缺少受信Java引导,已拒绝将真实账户凭据放入命令行。请使用完整候选包。"); + LaunchIdentity identity; + if (account.Kind == AccountKind.Offline) identity = new(account.DisplayName, account.PlayerUuid, "0"); + else + { + if (!sessions.TryGetValue(account.Id, out var session)) throw new AuthenticationException("missing_credentials", "账户凭据不可用,请重新登录。"); + if (account.ExpiresAt is null || account.ExpiresAt < DateTimeOffset.UtcNow.AddMinutes(2)) session = await RefreshInternalAsync(account, ct).ConfigureAwait(false); + identity = new(account.DisplayName, account.PlayerUuid, session.AccessToken, account.Kind == AccountKind.Microsoft ? "msa" : "legacy", session.Xuid, + account.Kind == AccountKind.Microsoft ? ResolveClientId() : session.ClientToken); + if (account.Kind == AccountKind.Yggdrasil) + { + var server = new Uri(AuthenticationClient.NormalizeYggdrasilRoot(new Uri(account.AuthenticationServer!))); + var descriptor = JsonNode.Parse(await http.GetStringAsync("https://authlib-injector.yushi.moe/artifact/latest.json", ct).ConfigureAwait(false))?.AsObject() ?? throw new InvalidDataException("Authlib descriptor invalid."); + var url = (string?)descriptor["download_url"] ?? throw new InvalidDataException("Authlib download URL missing."); + var sha256 = (string?)descriptor["checksums"]?["sha256"] ?? throw new InvalidDataException("Authlib checksum missing."); + var injector = SafePath.Within(Paths.CacheDirectory, "authlib/" + sha256 + ".jar"); + await downloader.DownloadAsync(new([new Uri(url)], injector, Sha256: sha256), new InlineProgress(OnTransfer), ct).ConfigureAwait(false); + var metadata = await http.GetStringAsync(server, ct).ConfigureAwait(false); + _ = JsonNode.Parse(metadata) as JsonObject ?? throw new InvalidDataException("Auth server metadata invalid."); + identity = identity with { AuthenticationServer = server, InjectorPath = injector, PrefetchedMetadataBase64 = Convert.ToBase64String(Encoding.UTF8.GetBytes(metadata)) }; + } + } + var temporary = SafePath.Within(Paths.TempDirectory, "game-" + SafePath.Identifier(instance.Id)); + if (launchSession is not null) temporary = SafePath.Within(temporary, SafePath.Identifier(launchSession)); + Directory.CreateDirectory(temporary); + var options = GameSettingsPolicy.Options(instance, Snapshot.Settings); + var extraJvm = GameSettingsPolicy.JvmArguments(options).ToList(); + if (options.DebugLogging) + { + var debugFile = SafePath.Within(Paths.CacheDirectory, "launch-config/debug-log4j2.xml"); + Directory.CreateDirectory(Path.GetDirectoryName(debugFile)!); Downloads.VerifiedDownloader.RejectLink(debugFile); + const string xml = ""; + await Instances.LaunchScript.SaveAsync(debugFile, xml, true, false, ct); + extraJvm.Add("-Dlog4j.configurationFile=" + debugFile); + } + if (Snapshot.Platform.OS == LauncherOS.Windows) + { + var sibling = Path.Combine(Path.GetDirectoryName(java.ExecutablePath)!, options.UseConsoleJava ? "java.exe" : "javaw.exe"); + if (File.Exists(sibling)) { Downloads.VerifiedDownloader.RejectLink(sibling); java = java with { ExecutablePath = sibling }; } + } + var memory = GameSettingsPolicy.MemoryMiB(instance, Snapshot.Settings, ReadMemoryStatus(), java.RuntimeArchitecture); + var launchContext = Context(java) with { Features = new Dictionary { ["is_demo_user"] = false, ["has_custom_resolution"] = options.WindowWidth is not null || Snapshot.Settings.GameWindowWidth is not null, ["has_quick_plays_support"] = false } }; + if (MacRuntimeCompatibility.UsesLwjgl2(installed.Version.Metadata, launchContext)) MacNativeLibraries.ValidateMcMouser(instance.GameDirectory, launchContext); + return LaunchPlanBuilder.Build(new(installed.Version, java, launchContext, identity, instance.GameDirectory, + installed.LibrariesDirectory, installed.AssetsDirectory, installed.NativesDirectory, installed.ClientJar, + installed.Assets.Id, memory, installed.LegacyExtractions, ExtraJvmArguments: extraJvm, TemporaryDirectory: temporary, + WindowWidth: options.WindowWidth ?? Snapshot.Settings.GameWindowWidth, WindowHeight: options.WindowHeight ?? Snapshot.Settings.GameWindowHeight, + Fullscreen: options.Fullscreen ?? Snapshot.Settings.GameFullscreen, MinimumMemoryMiB: options.LockMemory ? memory : options.MinimumMemoryMiB ?? Snapshot.Settings.MinimumMemoryMiB, CustomInfo: options.CustomInfo ?? Snapshot.Settings.CustomInfo, + ExtraGameArguments: GameSettingsPolicy.GameArguments(options.GameArguments), ServerAddress: serverAddress, ClasspathPrepend: GameSettingsPolicy.Classpath(options.ClasspathPrepend))); + } + private ProtectedJavaLaunch? ProtectPlan(LaunchPlan original) + { + if (javaBootstrap is null) return null; // Offline-only fixtures remain runnable without a packaged helper. + var token = Snapshot.SelectedAccountId is { } id && sessions.TryGetValue(id, out var session) ? session.AccessToken : null; + return ProtectedJavaLaunch.Prepare(original, javaBootstrap, Snapshot.Platform.MinecraftOS == "windows" ? ';' : ':', token); + } + public Task LaunchAsync(string instanceId, string serverId = "none", CancellationToken cancellationToken = default) => ExecuteAsync("Launching", ct => + { + string? destination = null; + if (serverId != "none") destination = Snapshot.Servers.FirstOrDefault(s => s.Id == serverId)?.Address + ?? throw new ArgumentException("所选社团服务器不存在,请重新选择。"); + return LaunchCoreAsync(instanceId, destination, ct); + }, cancellationToken); + private async Task LaunchCoreAsync(string instanceId, string? serverAddress, CancellationToken ct) + { + var launchWatch = System.Diagnostics.Stopwatch.StartNew(); + if (serverAddress is not null) serverAddress = ServerLaunchPolicy.Parse(serverAddress).Address; + var instance = FindInstance(instanceId); + var launchSession = Guid.NewGuid().ToString("N"); + var account = Snapshot.Accounts.FirstOrDefault(a => a.Id == Snapshot.SelectedAccountId); + Set(s => s with { LaunchActivity = new(instance.Id, instance.Name, "准备游戏", account?.Kind == AccountKind.Microsoft ? "微软正版验证" : account?.Kind == AccountKind.Yggdrasil ? "外置账户验证" : "离线角色") }); + var prepared = await PrepareInstanceAsync(instance, ct, launchSession: launchSession).ConfigureAwait(false); + Log("LaunchTiming", $"实例 {instanceId} / 文件与 Java 就绪:{launchWatch.ElapsedMilliseconds} ms。"); + var original = await PlanAsync(instance, prepared.Game, prepared.Java, ct, serverAddress, launchSession).ConfigureAwait(false); + Log("LaunchTiming", $"实例 {instanceId} / 账户与启动参数就绪:{launchWatch.ElapsedMilliseconds} ms。"); + string? sessionLogPath = null; + var startedAt = DateTime.UtcNow; + // The verified Java bootstrap owns output after handoff, including when the launcher exits. + if (javaBootstrap is not null) + { + VerifiedDownloader.RejectLink(Paths.LogsDirectory); + var log = Path.Combine(Paths.LogsDirectory, "game-" + Guid.NewGuid().ToString("N") + ".log"); sessionLogPath = log; + var arguments = original.Arguments.ToList(); + arguments.Insert(original.MainClassIndex, "-Dshou.launcher.sessionLog=" + log); + original = original with { Arguments = arguments, MainClassIndex = original.MainClassIndex + 1 }; + } + using var protection = ProtectPlan(original); + var plan = protection?.Plan ?? original; + var reportPath = SafePath.Within(Paths.LogsDirectory, "launch-plan-redacted.json"); + await File.WriteAllTextAsync(reportPath, JsonSerializer.Serialize(plan.ToRedactedReport(), ConfigurationStore.JsonOptions), ct).ConfigureAwait(false); + ct.ThrowIfCancellationRequested(); + SetLaunchStage("启动游戏进程"); + var launchOptions = GameSettingsPolicy.Options(instance, Snapshot.Settings); + if (launchOptions.BeforeLaunchExecutable.Length > 0) + { + var before = await platform.Processes.RunAsync(new(launchOptions.BeforeLaunchExecutable, LaunchPlanBuilder.TokenizeLegacy(launchOptions.BeforeLaunchArguments), instance.GameDirectory, Timeout: TimeSpan.FromSeconds(30), OutputLimitCharacters: 4096), cancellationToken: ct).ConfigureAwait(false); + if (before.ExitCode != 0 || before.TimedOut || before.Cancelled) throw new IOException("启动前程序未成功完成,未启动游戏;请检查设置。"); + } + var collector = new ProcessLogCollector((error, line) => Log(error ? "GameError" : "Game", line)); + var processStartedAt = DateTimeOffset.UtcNow; + var processStartTimestamp = System.Diagnostics.Stopwatch.GetTimestamp(); + var process = await platform.Processes.StartAsync(new(plan.JavaExecutable, plan.Arguments, plan.WorkingDirectory, plan.EnvironmentOverrides, + OutputLimitCharacters: 4 * 1024 * 1024, SensitiveInput: protection?.Input, + OnStarted: protection is null ? null : pid => gameSessions.Register(instance, pid), + Priority: launchOptions.Priority), new InlineProgress(collector.Report), CancellationToken.None).ConfigureAwait(false); + // StartAsync has completed the private-input handoff. Closing the launcher now detaches this game. + var independent = process is IDetachableProcess; + games[process.ProcessId] = (instanceId, process, independent); + RefreshGameSessions(); + if (platform.Processes is IGameWindowObserver { SupportsGameWindowObservation: true }) + Set(s => s with { LaunchActivity = s.LaunchActivity is { } activity ? activity with { + Stage = "等待游戏窗口", BytesReceived = 0, TotalBytes = null, ProcessId = process.ProcessId, ProcessStartedAt = processStartedAt + } : null, GameSessions = s.GameSessions.Select(session => session.ProcessId == process.ProcessId ? session with { WindowReady = false } : session).ToArray() }); + Log("LaunchTiming", $"实例 {instanceId} / PID {process.ProcessId} / Java 已交接:{launchWatch.ElapsedMilliseconds} ms;窗口尚需初始化。"); + var observer = ObserveGameAsync(instanceId, process, collector, sessionLogPath, startedAt); + var monitoring = Task.WhenAll(observer, ObserveGameWindowAsync(instance, process, launchOptions, processStartTimestamp)); + gameObservers[process.ProcessId] = monitoring; + _ = monitoring.ContinueWith(_ => gameObservers.TryRemove(process.ProcessId, out var ignored), CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default); + if (process.Completion.IsCompleted) await observer.ConfigureAwait(false); + Log("Info", "已启动本次Java游戏进程,PID=" + process.ProcessId + ";主菜单仍需独立真实观察。"); + try { await RecordInstanceLaunchAsync(instanceId).ConfigureAwait(false); } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { Log("Warning", "游戏已交接,启动次数保存失败:" + ex.GetType().Name); } + } + private async Task ObserveGameWindowAsync(GameInstance instance, IManagedProcess process, GameLaunchOptions options, long processStartTimestamp) + { + if (process.Completion.IsCompleted || platform.Processes is not IGameWindowObserver { SupportsGameWindowObservation: true } observer) return; + try + { + // Observation is independent of the operation lock and ends on window/exit/shutdown. + // Large packs may legitimately initialize for minutes; do not declare them finished at a timer cutoff. + var visible = await observer.WaitForGameWindowAsync(process, Timeout.InfiniteTimeSpan, lifetime.Token).ConfigureAwait(false); + if (!disposed && visible && !process.Completion.IsCompleted) + { + Set(s => s with { GameSessions = s.GameSessions.Select(session => session.ProcessId == process.ProcessId ? session with { WindowReady = true } : session).ToArray() }); + Log("LaunchTiming", $"实例 {instance.Id} / PID {process.ProcessId} / 游戏窗口已出现,Java 交接后耗时 {System.Diagnostics.Stopwatch.GetElapsedTime(processStartTimestamp).TotalMilliseconds:F0} ms。"); + } + else if (!disposed && !process.Completion.IsCompleted) + Log("Warning", $"实例 {instance.Id} / PID {process.ProcessId} 尚未确认游戏窗口;游戏继续运行,可返回启动器查看日志。"); + if (visible && !process.Completion.IsCompleted && !string.IsNullOrEmpty(options.WindowTitle) && platform.Processes is IGameWindowCustomization { SupportsGameWindowTitle: true } customization) + await customization.SetGameWindowTitleAsync(process, GameSettingsPolicy.Title(options.WindowTitle, instance), lifetime.Token).ConfigureAwait(false); + } + catch (OperationCanceledException) when (lifetime.IsCancellationRequested) { } + catch (Exception ex) { if (!disposed) Log("Warning", $"实例 {instance.Id} / PID {process.ProcessId} 窗口观察未完成:{ex.GetType().Name}"); } + finally { if (!disposed) ClearLaunchWindowActivity(process.ProcessId); } + } + private void ClearLaunchWindowActivity(int processId) => Set(s => s.LaunchActivity?.ProcessId == processId ? s with { LaunchActivity = null } : s); + private async Task ObserveGameAsync(string instanceId, IManagedProcess process, ProcessLogCollector collector, string? sessionLogPath, DateTime startedAt) + { + try + { + var result = await process.Completion.ConfigureAwait(false); + if (result.Detached) return; + collector.Flush(result.OutputTruncated); + Log(result.ExitCode == 0 ? "Info" : "Error", $"实例 {instanceId} / PID {process.ProcessId} 本次游戏进程退出:code={result.ExitCode}, cancelled={result.Cancelled}, timeout={result.TimedOut}。"); + if (result.ExitCode != 0 && !result.Cancelled && !disposed && Snapshot.Instances.SingleOrDefault(i => i.Id == instanceId) is { } failed) + { + try + { + if (sessionLogPath is null || !File.Exists(sessionLogPath)) + { + sessionLogPath = SafePath.Within(Paths.TempDirectory, "crash-" + Guid.NewGuid().ToString("N") + "/rawoutput.log"); + Directory.CreateDirectory(Path.GetDirectoryName(sessionLogPath)!); + await File.WriteAllTextAsync(sessionLogPath, redactor.Scrub(collector.RecentOutput(), truncate: false), lifetime.Token); + } + var diagnosis = await AnalyzeInstanceCrashAsync(failed, Snapshot.Settings.Language, sessionLogPath, lifetime.Token, startedAt); + if (!disposed) Set(s => s with { LastCrash = diagnosis, Error = "游戏异常退出,已生成崩溃分析;可在工具的百宝箱查看。" }); + } + catch (OperationCanceledException) when (lifetime.IsCancellationRequested) { } + catch (Exception error) { Log("Warning", "崩溃分析未完成:" + error.GetType().Name); } + } + if (result.ExitCode != 0 && !result.Cancelled && !disposed && Snapshot.GameSessions.All(s => s.ProcessId == process.ProcessId) && Snapshot.State is "Ready" or "Launching") + Set(s => s with { State = s.State == "Ready" ? "Error" : s.State, Error = s.LastCrash?.InstanceId == instanceId ? "游戏异常退出,已生成崩溃分析;可在工具的百宝箱查看。" : "游戏异常退出,请查看日志。" }); + } + catch (Exception ex) { if (!disposed) { Log("Error", "游戏进程观察失败:" + ex.GetType().Name); Set(s => s with { Error = "无法完整读取游戏退出状态。" }); } } + finally + { + await process.DisposeAsync().ConfigureAwait(false); + games.TryRemove(process.ProcessId, out _); + if (!disposed) { ClearLaunchWindowActivity(process.ProcessId); RefreshGameSessions(); } + } + } + public async Task StopGameAsync(CancellationToken cancellationToken = default) + { if (Snapshot.SelectedInstanceId is { } id && games.Values.Where(g => g.InstanceId == id).OrderBy(g => g.Process.ProcessId).LastOrDefault().Process is { } process) await process.StopAsync(cancellationToken).ConfigureAwait(false); } + public Task CancelDownloadAsync(string taskId, CancellationToken cancellationToken = default) + { + cancellationToken.ThrowIfCancellationRequested(); + var current = installCancellation ?? throw new InvalidOperationException("当前没有可取消的安装下载。"); + downloadOwners.RequireActive(taskId); + current.Cancel(); return Task.CompletedTask; + } + public async Task RetryDownloadAsync(string taskId, CancellationToken cancellationToken = default) + { + var owner = downloadOwners.Resolve(taskId); + if (owner.InstanceId.StartsWith("installer-file:", StringComparison.Ordinal)) + { + if (!installerTransfers.TryGetValue(owner.Generation, out var installer)) throw new InvalidOperationException("安装器记录已失效,请重新选择版本。"); + await SaveInstallerAsync(installer.Version, installer.Destination, cancellationToken).ConfigureAwait(false); return; + } + if (owner.InstanceId.StartsWith("minecraft-package:", StringComparison.Ordinal)) + { + if (!packageTransfers.TryGetValue(owner.Generation, out var package)) throw new InvalidOperationException("该文件记录已失效,请重新选择版本。"); + await DownloadMinecraftPackageAsync(package.Version, package.Kind, package.Destination, cancellationToken).ConfigureAwait(false); return; + } + if (await TryRetryContentOperationAsync(owner.Generation, cancellationToken).ConfigureAwait(false)) return; + if (owner.InstanceId.StartsWith("content:", StringComparison.Ordinal)) + { + if (!contentTransfers.TryGetValue(owner.Generation, out var file)) throw new InvalidOperationException("该资源下载记录已失效,请重新选择文件。"); + _ = await DownloadContentAsync(file, cancellationToken).ConfigureAwait(false); + } + else await InstallInstanceAsync(owner.InstanceId, cancellationToken).ConfigureAwait(false); + } + public Task SaveSettingsAsync(LauncherSettings settings, CancellationToken cancellationToken = default) => ExecuteAsync("Ready", async ct => + { + ConfigurationStore.ValidateSettings(settings); + if (Snapshot.Instances.FirstOrDefault(i => (i.MemoryMiB ?? settings.MemoryMiB) < (GameSettingsPolicy.Options(i, settings).MinimumMemoryMiB ?? settings.MinimumMemoryMiB)) is { } conflict) + throw new ArgumentException($"初始内存不能高于实例“{conflict.Name}”的最大内存,请先修改该实例或降低初始内存。"); + if (settings.GameRoot is { Length: > 0 } gameRoot) EnsureIsolatedGamePath(gameRoot); + var instances = Snapshot.Instances.Select(i => i.Directories is { Mode: InstanceDirectoryMode.FollowGlobal } directories ? RebindDirectory(i, directories, settings) : i).ToArray(); + await PersistCandidateAsync(Snapshot with { Settings = settings, Instances = instances }, ct).ConfigureAwait(false); + network.Update(settings); Set(s => s with { Settings = settings, Instances = instances }); + }, cancellationToken); + public Task SaveConnectionSecretAsync(string kind, string secret, CancellationToken cancellationToken = default) => ExecuteAsync("Ready", async ct => + { + if (kind is not ("aria2" or "proxy")) throw new ArgumentException("Unknown credential kind."); + if (string.IsNullOrWhiteSpace(secret)) throw new ArgumentException("凭据不能为空。"); + redactor.Register(secret); + var key = "connection:" + kind; + await platform.Credentials.WriteAsync(key, Encoding.UTF8.GetBytes(secret), ct).ConfigureAwait(false); + var settings = Snapshot.Settings; + settings = kind == "aria2" ? settings with { Aria2 = (settings.Aria2 ?? new()) with { CredentialKey = key } } + : settings with { Proxy = (settings.Proxy ?? new()) with { CredentialKey = key } }; + await PersistCandidateAsync(Snapshot with { Settings = settings }, ct).ConfigureAwait(false); + network.Update(settings); Set(s => s with { Settings = settings }); + }, cancellationToken); + public Task AddOfflineAccountAsync(string playerName, CancellationToken cancellationToken = default) + => AddOfflineAccountAsync(playerName, OfflineUuidMode.Standard, cancellationToken: cancellationToken); + public async Task AddOfflineAccountAsync(string playerName, OfflineUuidMode mode, string? customUuid = null, CancellationToken cancellationToken = default) + { + var uuid = OfflineIdentity.Create(playerName, mode, customUuid); + AccountProfile? result = null; + await ExecuteAsync("Ready", async ct => + { + var account = new AccountProfile("offline:" + uuid, AccountKind.Offline, playerName, uuid, + Persisted: Snapshot.CanPersistAccounts, + Status: Snapshot.CanPersistAccounts ? "本地离线档案 · 无法进入需认证社团服" : "当前会话离线档案 · 持久保存已禁用"); + var next = AccountCandidate(Snapshot, account); + await PersistCandidateAsync(next, ct).ConfigureAwait(false); + Set(s => s with { Accounts = next.Accounts, SelectedAccountId = account.Id }); result = account; + }, cancellationToken).ConfigureAwait(false); + return result!; + } + public async Task LoginMicrosoftAsync(IProgress challenge, CancellationToken cancellationToken = default) + { + AccountProfile? result = null; + await ExecuteAsync("Authenticating", async ct => { var session = await authentication.LoginMicrosoftAsync(ResolveClientId(), challenge, ct).ConfigureAwait(false); result = await SaveSessionAsync(session, ct).ConfigureAwait(false); }, cancellationToken).ConfigureAwait(false); + return result!; + } + public async Task> LoginYggdrasilAsync(Uri server, string username, string password, CancellationToken cancellationToken = default) + => await LoginYggdrasilCoreAsync(server, username, password, null, cancellationToken).ConfigureAwait(false); + public Task> LoginYggdrasilWithProfileSelectionAsync(Uri server, string username, string password, + Func, CancellationToken, Task> selectProfile, CancellationToken cancellationToken = default) + => LoginYggdrasilCoreAsync(server, username, password, selectProfile, cancellationToken); + private async Task> LoginYggdrasilCoreAsync(Uri server, string username, string password, + Func, CancellationToken, Task>? selectProfile, CancellationToken cancellationToken) + { + redactor.Register(password); redactor.Register(username); + var result = new List(); + await ExecuteAsync("Authenticating", async ct => + { foreach (var session in await authentication.LoginYggdrasilAsync(server, username, password, ct, selectProfile).ConfigureAwait(false)) result.Add(await SaveSessionAsync(session, ct).ConfigureAwait(false)); }, cancellationToken).ConfigureAwait(false); + return result; + } + private async Task SaveSessionAsync(AuthSession session, CancellationToken ct, bool selectAccount = true) + { + RegisterSession(session); var account = session.Profile; + if (Snapshot.CanPersistAccounts) + { + try + { + var data = JsonSerializer.SerializeToUtf8Bytes(session, ConfigurationStore.JsonOptions); + try { await platform.Credentials.WriteAsync(AccountKey(account.Id), data, ct).ConfigureAwait(false); } + finally { CryptographicOperations.ZeroMemory(data); } + account = account with { Persisted = true, Status = "已保存 · 启动时验证" }; + } + catch (CredentialStoreException ex) + { Set(s => s with { CanPersistAccounts = false }); account = account with { Persisted = false, Status = "当前会话可用 · 凭据无法持久保存" }; Log("Warning", "凭据持久保存失败;原数据保留,未降明文。状态=" + ex.Failure); } + } + else account = account with { Persisted = false, Status = "当前会话可用 · 持久保存已禁用" }; + // Publish a saved account only after both the protected credential write and sidecar commit. + // A failed sidecar must not leave the UI claiming that a newly authorized account was saved. + var next = AccountCandidate(Snapshot, account); + if (!selectAccount) next = next with { SelectedAccountId = Snapshot.SelectedAccountId }; + try { await PersistCandidateAsync(next, ct).ConfigureAwait(false); } + catch + { + // Refresh may already have rotated the protected token. Keep that valid in-memory + // session, but freeze account persistence and never append an unsaved new account. + var temporary = account with { Persisted = false, Status = "当前会话可用 · 档案保存失败,原列表保留" }; + sessions[account.Id] = session with { Profile = temporary }; + Set(s => s with { CanPersistAccounts = false, + Accounts = s.Accounts.Select(a => a.Id == account.Id ? temporary : a).ToArray() }); + throw; + } + sessions[account.Id] = session with { Profile = account }; + appearanceAuthenticatedTokens[account.Id] = AppearanceTokenHash(session.AccessToken); + Set(s => s with { Accounts = next.Accounts, SelectedAccountId = next.SelectedAccountId }); return account; + } + public Task RefreshAccountAsync(string accountId, CancellationToken cancellationToken = default) => ExecuteAsync("Authenticating", async ct => + { _ = await RefreshInternalAsync(FindAccount(accountId), ct).ConfigureAwait(false); }, cancellationToken); + private async Task RefreshInternalAsync(AccountProfile account, CancellationToken ct, bool selectAccount = true) + { + if (account.Kind == AccountKind.Offline) throw new InvalidOperationException("离线档案无需刷新。"); + if (!sessions.TryGetValue(account.Id, out var current)) throw new AuthenticationException("missing_credentials", "请重新登录此账户。"); + try + { + var refreshed = account.Kind == AccountKind.Microsoft ? await authentication.RefreshMicrosoftAsync(ResolveClientId(), current, ct).ConfigureAwait(false) + : await authentication.RefreshYggdrasilAsync(current, ct).ConfigureAwait(false); + _ = await SaveSessionAsync(refreshed, ct, selectAccount).ConfigureAwait(false); return sessions[account.Id]; + } + catch (AuthenticationException) { ReplaceAccount(account with { Status = "凭据已失效 · 请重新登录" }); throw; } + } + public Task SelectAccountAsync(string accountId, CancellationToken cancellationToken = default) => ExecuteAsync("Ready", async ct => + { + _ = FindAccount(accountId); + await PersistCandidateAsync(Snapshot with { SelectedAccountId = accountId }, ct).ConfigureAwait(false); + Set(s => s with { SelectedAccountId = accountId }); + }, cancellationToken); + public Task RemoveAccountAsync(string accountId, CancellationToken cancellationToken = default) => ExecuteAsync("Ready", async ct => + { + var account = FindAccount(accountId); + if (!Snapshot.CanPersistAccounts && account.Kind != AccountKind.Offline) throw new InvalidOperationException("凭据读取曾失败,删除写入已禁用以保护原数据。"); + if (account.Kind != AccountKind.Offline) await platform.Credentials.DeleteAsync(AccountKey(accountId), ct).ConfigureAwait(false); + sessions.TryRemove(accountId, out _); Set(s => s with { Accounts = s.Accounts.Where(a => a.Id != accountId).ToArray(), SelectedAccountId = s.SelectedAccountId == accountId ? null : s.SelectedAccountId }); + appearanceAuthenticatedTokens.TryRemove(accountId, out _); + await PersistAsync(ct).ConfigureAwait(false); + }, cancellationToken); + public async Task RefreshServersAsync(CancellationToken cancellationToken = default) + { + await InitializeAsync(cancellationToken).ConfigureAwait(false); + var current = Snapshot.Servers; + var refreshed = await Task.WhenAll(current.Select(async server => server.Id == "none" ? server : await ClubStatusProbe.ProbeAsync(server, cancellationToken).ConfigureAwait(false))).ConfigureAwait(false); + Set(s => s with { Servers = refreshed }); + } + public IReadOnlyList GetRecentLogs() { lock (sync) return logs.ToArray(); } + private async Task ExecuteAsync(string state, Func action, CancellationToken ct) + { + await InitializeAsync(ct).ConfigureAwait(false); + if (!await operation.WaitAsync(0, ct).ConfigureAwait(false)) throw new InvalidOperationException("另一项操作尚在运行,请等待或取消。"); + using var linked = CancellationTokenSource.CreateLinkedTokenSource(ct, lifetime.Token); + var downloadOutcome = "Completed"; + downloadActivity.Begin(state == "Launching" ? "游戏文件准备" : state == "Installing" ? "资源下载与安装" : "文件传输"); + try + { + Set(s => s with { State = state, Error = null }); + await action(linked.Token).ConfigureAwait(false); + // A process observer can already have reported failure before StartAsync returns. + // Only complete our own transitional state; never overwrite a newer Error/Running. + Set(s => s.State == state ? s with { State = s.Error is null ? "Ready" : "Error" } : s); + } + catch (OperationCanceledException) { downloadOutcome = "Cancelled"; MarkDownloads("Cancelled", null); Set(s => s with { State = "Ready", Error = null }); throw; } + catch (Exception ex) { downloadOutcome = "Failed"; var message = SafeError(ex); MarkDownloads("Failed", message); Set(s => s with { State = "Error", Error = message }); Log("Error", message); throw; } + finally { downloadActivity.Complete(downloadOutcome); downloadRate.Reset(); PublishDownloads(0); if (state == "Launching") Set(s => s.LaunchActivity?.ProcessId is null ? s with { LaunchActivity = null } : s); operation.Release(); } + } + private Task PersistAsync(CancellationToken ct) + { + return PersistCandidateAsync(Snapshot, ct); + } + private Task PersistCandidateAsync(LauncherSnapshot state, CancellationToken ct) + { + // If reading any credential failed, do not overwrite the persisted account list with a partial view. + var savedAccounts = state.Accounts.Where(a => a.Kind == AccountKind.Offline || a.Persisted).ToArray(); + var savedSelection = savedAccounts.Any(a => a.Id == state.SelectedAccountId) ? state.SelectedAccountId : null; + return config.SaveAsync(new(state.Settings, state.Instances, savedAccounts, savedSelection, state.SelectedInstanceId), ct, writeAccounts: state.CanPersistAccounts); + } + private static LauncherSnapshot AccountCandidate(LauncherSnapshot state, AccountProfile account) => state with + { Accounts = state.Accounts.Where(a => a.Id != account.Id).Append(account).ToArray(), SelectedAccountId = account.Id }; + private readonly DownloadRateMeter downloadRate = new(); + private readonly DownloadActivityTracker downloadActivity = new(); + private readonly ConcurrentDictionary transferRates = new(StringComparer.Ordinal); + private void OnTransfer(TransferProgress progress) + { + SetLaunchTransfer(progress); + var totalRate = downloadRate.Report(progress); + var id = downloadOwners.Register(progress.Id); + var now = System.Diagnostics.Stopwatch.GetTimestamp(); + var rate = transferRates.AddOrUpdate(id, (progress.BytesReceived, now, 0d), (_, previous) => + { + if (progress.Stage != "Downloading" || progress.BytesReceived < previous.Bytes) return (progress.BytesReceived, now, 0d); + var seconds = System.Diagnostics.Stopwatch.GetElapsedTime(previous.Ticks, now).TotalSeconds; + return seconds > 0 ? (progress.BytesReceived, now, Math.Max(0, (progress.BytesReceived - previous.Bytes) / seconds)) : previous; + }); + downloads[id] = new(id, Path.GetFileName(progress.Id), progress.Stage, progress.BytesReceived, progress.TotalBytes, progress.Source, + BytesPerSecond: progress.Stage == "Downloading" ? rate.Rate : 0, Backend: progress.Backend ?? "内置", Detail: progress.Detail, UpdatedAt: DateTimeOffset.UtcNow, Connections: progress.Stage == "Downloading" ? progress.Connections ?? 1 : 0); + downloadActivity.Report(downloads[id]); + if (progress.Stage is "Completed" or "Failed" or "Cancelled") transferRates.TryRemove(id, out _); + lock (sync) + { + if (DateTimeOffset.UtcNow - lastDownloadUpdate < TimeSpan.FromMilliseconds(120) && progress.Stage != "Completed") return; + lastDownloadUpdate = DateTimeOffset.UtcNow; + } + PublishDownloads(totalRate); + } + private void MarkDownloads(string state, string? error) + { + foreach (var item in downloads.ToArray()) if (item.Value.State is "Queued" or "Downloading" or "Verifying" or "Retrying") + { transferRates.TryRemove(item.Key, out _); downloads[item.Key] = item.Value with { State = state, Error = error, BytesPerSecond = 0, Connections = 0 }; downloadActivity.Report(downloads[item.Key]); } + PublishDownloads(0); + } + private void PublishDownloads(double rate) + { + Set(s => + { + var summary = downloadActivity.Capture(); + return s with { Downloads = downloads.Values.OrderBy(t => t.State is "Queued" or "Downloading" or "Verifying" or "Retrying" ? 1 : 0).ThenBy(t => t.UpdatedAt).TakeLast(250).ToArray(), + DownloadBytesPerSecond = rate, DownloadRateUpdatedAt = DateTimeOffset.UtcNow, DownloadTotals = summary.Totals, DownloadActivity = summary.Activity, DownloadHistory = summary.History }; + }); + } + private void RegisterSession(AuthSession session) + { redactor.Register(session.AccessToken); redactor.Register(session.RefreshToken); redactor.Register(session.ClientToken); redactor.Register(session.Profile.PlayerUuid); redactor.Register(session.Profile.DisplayName); } + private void ReplaceAccount(AccountProfile account) => Set(s => s with { Accounts = s.Accounts.Where(a => a.Id != account.Id).Append(account).ToArray() }); + private GameInstance FindInstance(string id) => Snapshot.Instances.FirstOrDefault(i => i.Id == id) ?? throw new KeyNotFoundException("找不到实例。"); + private AccountProfile FindAccount(string id) => Snapshot.Accounts.FirstOrDefault(a => a.Id == id) ?? throw new KeyNotFoundException("找不到账户。"); + private static string AccountKey(string id) => "account:" + Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(id))).ToLowerInvariant(); + private string ResolveClientId() => AuthenticationClient.ResolveMicrosoftClientId(null, Snapshot.Settings.MicrosoftClientId, build); + private IReadOnlyList Sources() => EffectiveSources(); + private RuleContext Context(JavaInstallation java) => new(Snapshot.Platform.MinecraftOS, Snapshot.Platform.OSVersion, java.RuntimeArchitecture, + new Dictionary { ["is_demo_user"] = false, ["has_custom_resolution"] = Snapshot.Settings.GameWindowWidth is not null, ["has_quick_plays_support"] = false }); + private static bool PathEquals(string a, string b) => string.Equals(Path.GetFullPath(a), Path.GetFullPath(b), OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); + private void EnsureIsolatedGamePath(string path) + { + if (!Path.IsPathFullyQualified(path)) throw new InvalidDataException("实例游戏路径必须为绝对路径。"); + VerifiedDownloader.RejectLink(path); + if (!Paths.IsIsolated) return; + if (!SafePath.IsWithin(SafePath.Canonical(Paths.DataDirectory), SafePath.Canonical(path)) && !Snapshot.Instances.Any(i => IsExplicitInstanceDirectory(i, path))) + throw new InvalidDataException("隔离模式的游戏目录不能越出数据根;请先显式重新映射旧路径。"); + } + private string SafeError(Exception ex) => ex switch + { AuthenticationException auth => redactor.Scrub(auth.Message), CredentialStoreException cred => "凭据服务不可用(" + cred.Failure + "),原数据保留。", AggregateException => "下载或元数据所有来源均失败,请检查网络并重试。", _ => redactor.Scrub(ex.Message) }; + private void Set(Func change) + { + LauncherSnapshot next; lock (sync) snapshot = next = change(snapshot); + if (SnapshotChanged is { } changed) foreach (EventHandler subscriber in changed.GetInvocationList()) { try { subscriber(this, next); } catch { /* UI observers cannot corrupt orchestration. */ } } + } + private void Log(string level, string message) + { + var log = new LauncherLog(DateTimeOffset.UtcNow, level, redactor.Scrub(message)); + lock (sync) + { + logs.Enqueue(log); while (logs.Count > 500) logs.Dequeue(); + try + { + if (Directory.Exists(Paths.LogsDirectory)) + { + var info = new FileInfo(launcherLogPath); + if (!PathEquals(SafePath.Canonical(launcherLogPath), launcherLogPath) || info.LinkTarget is not null + || info.Exists && (info.Attributes & FileAttributes.ReparsePoint) != 0) + throw new IOException("Observational log path is not a regular owned path."); + if (info.Exists) JavaTrustTree.EnsureSingleRegularFile(launcherLogPath); + File.AppendAllText(launcherLogPath, $"{log.Timestamp:O} [{log.Level}] {log.Message}\n"); + } + } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Security.SecurityException + or PlatformNotSupportedException or DllNotFoundException or EntryPointNotFoundException) + { /* Observational logging cannot turn an already committed operation into a reported failure. */ } + } + if (LogReceived is { } received) foreach (EventHandler subscriber in received.GetInvocationList()) { try { subscriber(this, log); } catch { } } + } + public async ValueTask DisposeAsync() + { + if (disposed) return; disposed = true; lifetime.Cancel(); installCancellation?.Cancel(); + await operation.WaitAsync().ConfigureAwait(false); + try + { + foreach (var current in games.Values) + { + if (current.IndependentLog && current.Process is IDetachableProcess detachable) await detachable.DetachAsync().ConfigureAwait(false); + else await current.Process.StopAsync().ConfigureAwait(false); + } + await Task.WhenAll(gameObservers.Values).ConfigureAwait(false); + if (sessionMonitor is not null) await sessionMonitor.ConfigureAwait(false); + await config.DisposeAsync().ConfigureAwait(false); + } + finally { operation.Release(); lifetime.Dispose(); if (ownsInformationHttp) informationHttp.Dispose(); } + } + private sealed class InlineProgress(Action callback) : IProgress { public void Report(T value) => callback(value); } + private sealed class ProcessLogCollector(Action emit) + { + private readonly StringBuilder stdout = new(), stderr = new(); + private readonly object gate = new(); + private readonly Queue recent = new(); + public string RecentOutput() { lock (gate) return string.Join("\n", recent); } + private void Emit(bool error, string line) { recent.Enqueue(line); while (recent.Count > 2000) recent.Dequeue(); emit(error, line); } + public void Report(ProcessOutput output) + { + lock (gate) + { + var buffer = output.IsStandardError ? stderr : stdout; buffer.Append(output.Text); + while (buffer.ToString().IndexOf('\n') is var index && index >= 0) + { var line = buffer.ToString(0, index).TrimEnd('\r'); buffer.Remove(0, index + 1); Emit(output.IsStandardError, line); } + // Do not emit partial lines: a token may straddle process stream chunks. + if (buffer.Length > 131072) { buffer.Clear(); Emit(output.IsStandardError, "[overlong game log line omitted]"); } + } + } + public void Flush(bool omitPartial) { lock (gate) { if (!omitPartial) { if (stdout.Length > 0) Emit(false, stdout.ToString()); if (stderr.Length > 0) Emit(true, stderr.ToString()); } stdout.Clear(); stderr.Clear(); } } + } +} diff --git a/src/SHOU.Launcher.Core/Loaders/InstallerCatalogReader.Additional.cs b/src/SHOU.Launcher.Core/Loaders/InstallerCatalogReader.Additional.cs new file mode 100644 index 00000000..80ac1808 --- /dev/null +++ b/src/SHOU.Launcher.Core/Loaders/InstallerCatalogReader.Additional.cs @@ -0,0 +1,187 @@ +using System.Globalization; +using System.IO.Compression; +using System.Net; +using System.Security.Cryptography; +using System.Text.Json.Nodes; +using System.Text.RegularExpressions; +using System.Xml.Linq; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Loaders; + +public sealed partial class InstallerCatalogReader +{ + private static bool Additional(string loader) => loader is "optifine" or "cleanroom" or "labymod" or "liteloader"; + private async Task ReadAdditionalAsync(string loader, CancellationToken ct) + { + var rows = new List(); + if (loader == "optifine") + { + // Same data contract as the legacy business reader; no legacy UI dependencies. + var data = JsonNode.Parse(await reader.TextAsync(new("https://bmclapi2.bangbang93.com/optifine/versionList"), 2 * 1024 * 1024, ct).ConfigureAwait(false)) as JsonArray ?? throw new InvalidDataException("OptiFine 目录无效。"); + foreach (var node in data.Take(5000)) + { + var game = Coordinate((string?)node?["mcversion"] ?? ""); var type = Coordinate((string?)node?["type"] ?? ""); var patch = Coordinate((string?)node?["patch"] ?? ""); + if (!Regex.IsMatch(type, @"\AHD_U(?:_[A-Z][0-9]+)?\z", RegexOptions.CultureInvariant)) continue; + var version = (type == "HD_U" ? "" : type[5..] + "_") + patch; + var row = new InstallerVersion(loader, game, version, type + "_" + patch, Channel: patch.Contains("pre", StringComparison.OrdinalIgnoreCase) ? "preview" : "stable"); + if ((string?)node?["filename"] != InstallerFileName(row)) throw new InvalidDataException("OptiFine 文件名称与版本不匹配。"); + rows.Add(row); + } + } + else if (loader == "cleanroom") + { + var text = await reader.TextAsync(new("https://maven.cleanroommc.com/com/cleanroommc/cleanroom/maven-metadata.xml"), 1024 * 1024, ct).ConfigureAwait(false); + if (text.Contains(" Coordinate(n.Value)).Distinct()) rows.Add(new(loader, "1.12.2", version, version, Channel: version.Contains('-') ? "preview" : "stable")); + } + else if (loader == "labymod") + { + foreach (var channel in new[] { "production", "snapshot" }) + { + var data = JsonNode.Parse(await reader.TextAsync(new("https://releases.r2.labymod.net/api/v1/manifest/" + channel + "/latest.json"), 1024 * 1024, ct).ConfigureAwait(false)) ?? throw new InvalidDataException("LabyMod 目录无效。"); + var version = Coordinate((string?)data["labyModVersion"] ?? ""); var commit = Coordinate((string?)data["commitReference"] ?? ""); + rows.Add(new(loader, "版本列表", version, commit, Published: (long?)data["releaseTime"] is { } time ? DateTimeOffset.FromUnixTimeMilliseconds(time) : null, Latest: true, Channel: channel)); + } + return new(rows); + } + else if (loader == "liteloader") + { + var data = JsonNode.Parse(await reader.TextAsync(new("https://dl.liteloader.com/versions/versions.json"), 1024 * 1024, ct).ConfigureAwait(false))?["versions"] as JsonObject ?? throw new InvalidDataException("LiteLoader 目录无效。"); + foreach (var pair in data) + { + var game = Coordinate(pair.Key); var latest = (pair.Value?["artefacts"] ?? pair.Value?["snapshots"])?["com.mumfrey:liteloader"]?["latest"]; + if (latest is null) continue; + var version = Coordinate((string?)latest["version"] ?? ""); + rows.Add(new(loader, game, version, version, Published: long.TryParse((string?)latest["timestamp"], out var stamp) ? DateTimeOffset.FromUnixTimeSeconds(stamp) : null, + Channel: (string?)latest["stream"] == "RELEASE" ? "stable" : "preview", Latest: true)); + } + } + var ordered = rows.OrderByDescending(r => NumericKey(r.GameVersion), StringComparer.Ordinal).ThenByDescending(r => NumericKey(r.Version), StringComparer.Ordinal).ToArray(); + return new(ordered.GroupBy(r => r.GameVersion).SelectMany(g => g.Select((r, i) => r with { Latest = i == 0 })).ToArray()); + } + public static string InstallerFileName(InstallerVersion row) => row.Loader switch + { + "optifine" => (row.Channel == "preview" ? "preview_" : "") + $"OptiFine_{Coordinate(row.GameVersion)}_{Coordinate(row.ArtifactVersion)}.jar", + "cleanroom" => $"cleanroom-{Coordinate(row.ArtifactVersion)}-installer.jar", + "labymod" when row.Channel is "production" or "snapshot" => $"LabyMod-{Coordinate(row.Version)}-{row.Channel}-installer.jar", + "liteloader" => "liteloader-installer-" + Coordinate(row.GameVersion) + (row.GameVersion is "1.8" or "1.9" ? ".0" : "") + (row.GameVersion switch { "1.7.10" or "1.7.2" or "1.6.2" => "-04.jar", "1.6.4" or "1.5.2" => "-01.jar", _ => "-00-SNAPSHOT.jar" }), + _ => Uri.UnescapeDataString(Path.GetFileName(ArtifactUri(row).AbsolutePath)) + }; + private static Uri AdditionalArtifact(InstallerVersion row) + { + var artifact = Coordinate(row.ArtifactVersion); Coordinate(row.Version); Coordinate(row.GameVersion == "版本列表" ? "list" : row.GameVersion); + return row.Loader switch + { + "optifine" when artifact == "HD_U_" + row.Version && row.Channel is "preview" or "stable" => new("https://optifine.net/adloadx?f=" + Uri.EscapeDataString(InstallerFileName(row))), + "cleanroom" when row.GameVersion == "1.12.2" && artifact == row.Version => new($"https://maven.cleanroommc.com/com/cleanroommc/cleanroom/{Uri.EscapeDataString(artifact)}/{InstallerFileName(row)}"), + "labymod" when row.Channel is "production" or "snapshot" => new("https://releases.labymod.net/api/v1/installer/" + row.Channel + "/java"), + "liteloader" when artifact == row.Version => row.GameVersion is "1.7.10" or "1.7.2" or "1.6.4" or "1.6.2" or "1.5.2" + ? new("https://dl.liteloader.com/redist/" + row.GameVersion + "/" + InstallerFileName(row)) + : new("https://jenkins.liteloader.com/job/LiteLoaderInstaller%20" + row.GameVersion + "/lastSuccessfulBuild/artifact/" + (row.GameVersion == "1.8" ? "ant/dist/" : "build/libs/") + InstallerFileName(row)), + _ => throw new InvalidDataException("安装器身份无效。") + }; + } + private async Task SaveAdditionalAsync(InstallerVersion row, string destination, string stagingRoot, IProgress? progress, CancellationToken ct) + { + var uri = AdditionalArtifact(row); + // Re-read the fixed catalog before saving: a row cannot supply arbitrary URLs or checksum claims. + var catalog = await ReadAdditionalAsync(row.Loader, ct).ConfigureAwait(false); + if (!catalog.Versions.Any(v => v.GameVersion == row.GameVersion && v.Version == row.Version && v.ArtifactVersion == row.ArtifactVersion && v.Channel == row.Channel)) throw new InvalidDataException("安装器版本已变化,请刷新目录后重试。"); + string? expectedSha1 = null; Uri? optiMirror = null; + if (row.Loader == "cleanroom") + { + expectedSha1 = (await reader.TextAsync(new(uri.AbsoluteUri + ".sha1"), 4096, ct).ConfigureAwait(false)).Trim().Split((char[]?)null, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault(); + if (!ValidSha1(expectedSha1)) throw new InvalidDataException("Cleanroom 官方 SHA-1 无效。"); + } + else if (row.Loader == "optifine") + { + // BMCLAPI identifies its distribution by SHA-1. Prefer the official file; retain the exact delegated URL only for unavailable official files. + using var identityTimeout = CancellationTokenSource.CreateLinkedTokenSource(ct); identityTimeout.CancelAfter(TimeSpan.FromSeconds(20)); + var path = "https://bmclapi2.bangbang93.com/maven/com/optifine/" + row.GameVersion + "/" + InstallerFileName(row); + using var request = new HttpRequestMessage(HttpMethod.Get, path); + using var response = await http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, identityTimeout.Token).ConfigureAwait(false); + if ((int)response.StatusCode is not (301 or 302 or 307 or 308) || response.Headers.Location is not { IsAbsoluteUri: true } location || location.Scheme != "https" || location.UserInfo.Length != 0) throw new InvalidDataException("OptiFine 镜像未提供文件校验身份。"); + expectedSha1 = Regex.Match(location.AbsolutePath, @"\A/(?:download|bmclapi)/([a-fA-F0-9]{40})(?:/.*)?\z", RegexOptions.CultureInvariant).Groups[1].Value; + if (!ValidSha1(expectedSha1)) throw new InvalidDataException("OptiFine 镜像文件校验身份无效。"); + optiMirror = location; + var page = await reader.TextAsync(uri, 512 * 1024, ct).ConfigureAwait(false); + var link = WebUtility.HtmlDecode(Regex.Match(page, @"downloadx\?f=[^""'<>\s]+", RegexOptions.CultureInvariant, TimeSpan.FromSeconds(1)).Value); + if (!Uri.TryCreate(new Uri("https://optifine.net/"), link, out var download) || download.Host != "optifine.net" || download.Scheme != "https" || !download.IsDefaultPort || download.AbsolutePath != "/downloadx" || !download.Query.StartsWith("?f=" + InstallerFileName(row) + "&", StringComparison.Ordinal)) throw new InvalidDataException("OptiFine 官方下载链接无效。"); + uri = download; + } + var output = Path.GetFullPath(destination); VerifiedDownloader.RejectLink(output); Directory.CreateDirectory(Path.GetDirectoryName(output)!); + var stage = SafePath.Within(stagingRoot, "installer-downloads/" + Guid.NewGuid().ToString("N") + ".jar"); + var publishing = Path.Combine(Path.GetDirectoryName(output)!, "." + Path.GetFileName(output) + ".shou-" + Guid.NewGuid().ToString("N") + ".tmp"); + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(90)); + try + { + var opened = await OpenInstallerAsync(uri, optiMirror, timeout.Token).ConfigureAwait(false); uri = opened.Uri; + using var response = opened.Response; + response.EnsureSuccessStatusCode(); + if (response.RequestMessage?.RequestUri is { } actual && actual != uri || response.Content.Headers.ContentLength is > 64 * 1024 * 1024) throw new InvalidDataException("安装器发生未校验的重定向或超过大小限制。"); + Directory.CreateDirectory(Path.GetDirectoryName(stage)!); VerifiedDownloader.RejectLink(stage); + await using (var input = await response.Content.ReadAsStreamAsync(timeout.Token).ConfigureAwait(false)) + await using (var target = new FileStream(stage, FileMode.CreateNew, FileAccess.Write, FileShare.None, 131072, true)) + { + var bytes = new byte[131072]; long total = 0; + while (true) + { + var count = await input.ReadAsync(bytes, timeout.Token).ConfigureAwait(false); if (count == 0) break; + total += count; if (total > 64 * 1024 * 1024) throw new InvalidDataException("安装器超过 64 MiB。"); + await target.WriteAsync(bytes.AsMemory(0, count), timeout.Token).ConfigureAwait(false); + progress?.Report(new(stage, "Downloading", total, response.Content.Headers.ContentLength, uri.Host)); + } + if (total < 1024 || response.Content.Headers.ContentLength is { } size && total != size) throw new InvalidDataException("安装器大小无效或下载不完整。"); + } + if (expectedSha1 is not null) + { + await using var input = File.OpenRead(stage); + if (!Convert.ToHexStringLower(await SHA1.HashDataAsync(input, timeout.Token).ConfigureAwait(false)).Equals(expectedSha1, StringComparison.OrdinalIgnoreCase)) throw new InvalidDataException("安装器 SHA-1 校验失败。"); + } + ValidateJar(stage); + VerifiedDownloader.RejectLink(publishing); VerifiedDownloader.RejectLink(output); + await using (var input = File.OpenRead(stage)) + await using (var target = new FileStream(publishing, FileMode.CreateNew, FileAccess.Write, FileShare.None, 131072, true)) + await input.CopyToAsync(target, timeout.Token).ConfigureAwait(false); + timeout.Token.ThrowIfCancellationRequested(); VerifiedDownloader.RejectLink(output); File.Move(publishing, output, true); + progress?.Report(new(output, "Completed", new FileInfo(output).Length, new FileInfo(output).Length, uri.Host)); + } + finally + { foreach (var path in new[] { stage, publishing }) if (File.Exists(path)) { VerifiedDownloader.RejectLink(path); File.Delete(path); } } + } + private async Task<(HttpResponseMessage Response, Uri Uri)> OpenInstallerAsync(Uri official, Uri? optiMirror, CancellationToken ct) + { + using var request = new HttpRequestMessage(HttpMethod.Get, official); + var response = await http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, ct).ConfigureAwait(false); + if (optiMirror is null || response.IsSuccessStatusCode && response.Content.Headers.ContentType?.MediaType != "text/html" && response.Content.Headers.ContentLength is not (< 1024)) return (response, official); + response.Dispose(); + // The one-time allowlist is exactly the hash-bearing HTTPS URL delegated by the fixed BMCLAPI endpoint. + // No CDN redirect is followed, no API/header is forwarded, and local/private destinations are rejected. + if (!optiMirror.IsDefaultPort || optiMirror.UserInfo.Length != 0 || optiMirror.Fragment.Length != 0 || optiMirror.AbsoluteUri.Length > 4096 || IPAddress.TryParse(optiMirror.Host, out _)) throw new InvalidDataException("OptiFine 镜像节点地址无效。"); + var addresses = await Dns.GetHostAddressesAsync(optiMirror.DnsSafeHost, ct).ConfigureAwait(false); + if (addresses.Length == 0 || addresses.Any(PrivateAddress)) throw new InvalidDataException("OptiFine 镜像节点不能指向本机或私有网络。"); + using var mirrorRequest = new HttpRequestMessage(HttpMethod.Get, optiMirror); + return (await http.SendAsync(mirrorRequest, HttpCompletionOption.ResponseHeadersRead, ct).ConfigureAwait(false), optiMirror); + } + private static bool PrivateAddress(IPAddress address) + { + if (address.IsIPv4MappedToIPv6) address = address.MapToIPv4(); + if (IPAddress.IsLoopback(address) || address.Equals(IPAddress.Any) || address.Equals(IPAddress.IPv6Any) || address.IsIPv6LinkLocal || address.IsIPv6SiteLocal || address.IsIPv6Multicast) return true; + var bytes = address.GetAddressBytes(); + if (bytes.Length == 16) return (bytes[0] & 0xfe) == 0xfc; + return bytes[0] is 0 or 10 or 127 || bytes[0] >= 224 || bytes[0] == 169 && bytes[1] == 254 || bytes[0] == 172 && bytes[1] is >= 16 and <= 31 || bytes[0] == 192 && bytes[1] is 0 or 168 + || bytes[0] == 100 && bytes[1] is >= 64 and <= 127; + // 198.18/15 is deliberately not RFC1918: system proxies commonly map public names into that fake-IP range. + } + private static bool ValidSha1(string? value) => value is { Length: 40 } && value.All(Uri.IsHexDigit); + private static void ValidateJar(string path) + { + using var archive = ZipFile.OpenRead(path); + if (archive.Entries.Count is 0 or > 20000 || !archive.Entries.Any(e => e.FullName.Equals("META-INF/MANIFEST.MF", StringComparison.OrdinalIgnoreCase)) || archive.Entries.Sum(e => e.Length) > 256L * 1024 * 1024) throw new InvalidDataException("下载文件不是支持的完整 Java 安装器归档。"); + foreach (var entry in archive.Entries) + if (entry.FullName.StartsWith('/') || entry.FullName.Contains('\\') || entry.FullName.Split('/').Any(p => p is "." or ".." || p.Contains(':'))) throw new InvalidDataException("安装器归档包含不安全路径。"); + } +} diff --git a/src/SHOU.Launcher.Core/Loaders/InstallerCatalogReader.cs b/src/SHOU.Launcher.Core/Loaders/InstallerCatalogReader.cs new file mode 100644 index 00000000..c8d418e3 --- /dev/null +++ b/src/SHOU.Launcher.Core/Loaders/InstallerCatalogReader.cs @@ -0,0 +1,140 @@ +using System.Text.Json.Nodes; +using System.Xml.Linq; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core.Loaders; + +/// Read-only installer catalogs. Browsing never creates instances or starts Java. +public sealed partial class InstallerCatalogReader(HttpClient http) +{ + private readonly LoaderCatalog reader = new(http); + public async Task ReadAsync(string loader, CancellationToken ct) + { + if (Additional(loader)) return await ReadAdditionalAsync(loader, ct).ConfigureAwait(false); + if (loader is "fabric" or "legacyfabric") + { + var meta = loader == "fabric" ? "meta.fabricmc.net" : "meta.legacyfabric.net"; + var data = JsonNode.Parse(await reader.TextAsync(new("https://" + meta + "/v2/versions/installer"), 1024 * 1024, ct)) as JsonArray + ?? throw new InvalidDataException("Fabric 安装器目录无效。"); + var stable = data.FirstOrDefault(x => (bool?)x?["stable"] == true)?["version"]?.GetValue(); + return new(data.Take(200).Select((x, i) => new InstallerVersion(loader, "通用安装器", Coordinate((string?)x?["version"] ?? ""), + Coordinate((string?)x?["version"] ?? ""), (string?)x?["version"] == stable, Latest: i == 0)).ToArray()); + } + var url = loader switch + { + "forge" => "https://maven.minecraftforge.net/net/minecraftforge/forge/maven-metadata.xml", + "neoforge" => "https://maven.neoforged.net/releases/net/neoforged/neoforge/maven-metadata.xml", + "quilt" => "https://maven.quiltmc.org/repository/release/org/quiltmc/quilt-installer/maven-metadata.xml", + _ => null + }; + if (url is null) return new([], loader switch + { + "optifine" => "OptiFine 尚无已接入的可校验安装器目录,可前往官网下载。", + "cleanroom" => "Cleanroom 独立安装器的来源与校验接口仍待接入,可前往官网下载。", + "labymod" => "LabyMod 独立安装器的来源与校验接口仍待接入,可前往官网下载。", + "liteloader" => "LiteLoader 历史安装器的来源与校验接口仍待接入。", + _ => "此安装器目录暂不可用。" + }); + var text = await reader.TextAsync(new(url), 4 * 1024 * 1024, ct); + if (text.Contains(" x.Value).Distinct(StringComparer.Ordinal).ToArray(); + if (versions.Length > 20000) throw new InvalidDataException("安装器目录数量超过限制。"); + var rows = new List(); + foreach (var artifact in versions) + { + if (loader == "forge") + { + Coordinate(artifact); + var separator = artifact.IndexOf('-'); + if (separator <= 0 || separator == artifact.Length - 1) continue; + rows.Add(new(loader, artifact[..separator], artifact[(separator + 1)..], artifact)); + } + else if (loader == "neoforge") + { + var game = LoaderCatalog.NeoGameVersion(artifact); + if (game is null) continue; + Coordinate(artifact); + rows.Add(new(loader, game, artifact, artifact)); + } + else { Coordinate(artifact); rows.Add(new(loader, "通用安装器", artifact, artifact)); } + } + if (loader == "forge") + { + try + { + var promotions = JsonNode.Parse(await reader.TextAsync(new("https://files.minecraftforge.net/net/minecraftforge/forge/promotions_slim.json"), 256 * 1024, ct))?["promos"]; + rows = rows.Select(r => r with { Recommended = (string?)promotions?[r.GameVersion + "-recommended"] == r.Version, + Latest = (string?)promotions?[r.GameVersion + "-latest"] == r.Version }).ToList(); + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is HttpRequestException or IOException or System.Text.Json.JsonException or OperationCanceledException) { } + } + return new(rows.OrderByDescending(r => NumericKey(r.GameVersion), StringComparer.Ordinal) + .ThenByDescending(r => NumericKey(r.Version), StringComparer.Ordinal).GroupBy(r => r.GameVersion) + .SelectMany(g => g.Select((r, i) => r with { Latest = r.Latest || i == 0 && !g.Any(x => x.Latest) })).ToArray()); + } + public static Uri ArtifactUri(InstallerVersion row) + { + if (Additional(row.Loader)) return AdditionalArtifact(row); + var artifact = Coordinate(row.ArtifactVersion); var version = Coordinate(row.Version); + if (row.Loader == "forge" && artifact != SafePath.Identifier(row.GameVersion) + "-" + version) + throw new InvalidDataException("Forge 安装器身份不匹配。"); + if (row.Loader != "forge" && artifact != version) throw new InvalidDataException("安装器版本身份不匹配。"); + var encodedArtifact = Uri.EscapeDataString(artifact); var encodedVersion = Uri.EscapeDataString(version); + return new(row.Loader switch + { + "forge" => $"https://maven.minecraftforge.net/net/minecraftforge/forge/{encodedArtifact}/forge-{encodedArtifact}-installer.jar", + "neoforge" => $"https://maven.neoforged.net/releases/net/neoforged/neoforge/{encodedArtifact}/neoforge-{encodedArtifact}-installer.jar", + "fabric" => $"https://maven.fabricmc.net/net/fabricmc/fabric-installer/{encodedVersion}/fabric-installer-{encodedVersion}.jar", + "quilt" => $"https://maven.quiltmc.org/repository/release/org/quiltmc/quilt-installer/{encodedVersion}/quilt-installer-{encodedVersion}.jar", + "legacyfabric" => $"https://repo.legacyfabric.net/legacyfabric/net/legacyfabric/fabric-installer/{encodedVersion}/fabric-installer-{encodedVersion}.jar", + _ => throw new NotSupportedException("此安装器尚不支持直接另存。") + }); + } + private static string Coordinate(string value) + { + if (string.IsNullOrEmpty(value) || value.Length > 160 || !char.IsAsciiLetterOrDigit(value[0]) + || value.Any(c => !char.IsAsciiLetterOrDigit(c) && c is not '.' and not '_' and not '-' and not '+')) + throw new ArgumentException("Invalid installer coordinate.", nameof(value)); + return value; + } + public async Task SaveAsync(InstallerVersion row, string destination, string stagingRoot, IProgress? progress, CancellationToken ct) + { + if (!Path.IsPathFullyQualified(destination) || !Path.GetExtension(destination).Equals(".jar", StringComparison.OrdinalIgnoreCase)) throw new ArgumentException("请选择本机 JAR 文件保存位置。"); + if (Additional(row.Loader)) { await SaveAdditionalAsync(row, destination, stagingRoot, progress, ct).ConfigureAwait(false); return; } + var uri = ArtifactUri(row); + var text = await reader.TextAsync(new(uri.AbsoluteUri + ".sha1"), 4096, ct); + var sha = text.Trim().Split((char[]?)null, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault(); + if (sha?.Length != 40 || !sha.All(Uri.IsHexDigit)) throw new InvalidDataException("官方安装器校验值无效。"); + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(30)); + using var request = new HttpRequestMessage(HttpMethod.Head, uri); + using var response = await http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, timeout.Token).ConfigureAwait(false); + response.EnsureSuccessStatusCode(); + var size = response.Content.Headers.ContentLength; + if (size is not (> 0 and <= 64 * 1024 * 1024)) throw new InvalidDataException("官方安装器缺少有效大小或超过 64 MiB。"); + var output = Path.GetFullPath(destination); + VerifiedDownloader.RejectLink(output); + Directory.CreateDirectory(Path.GetDirectoryName(output)!); + var stage = SafePath.Within(stagingRoot, "installer-downloads/" + Guid.NewGuid().ToString("N") + ".jar"); + var publishing = Path.Combine(Path.GetDirectoryName(output)!, "." + Path.GetFileName(output) + ".shou-" + Guid.NewGuid().ToString("N") + ".tmp"); + try + { + await new VerifiedDownloader(http).DownloadAsync(new([uri], stage, sha, Size: size), progress, ct).ConfigureAwait(false); + VerifiedDownloader.RejectLink(output); VerifiedDownloader.RejectLink(publishing); + await using (var input = new FileStream(stage, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true)) + await using (var target = new FileStream(publishing, FileMode.CreateNew, FileAccess.Write, FileShare.None, 131072, true)) + { await input.CopyToAsync(target, ct).ConfigureAwait(false); await target.FlushAsync(ct).ConfigureAwait(false); } + ct.ThrowIfCancellationRequested(); VerifiedDownloader.RejectLink(output); + File.Move(publishing, output, true); + } + finally + { + foreach (var path in new[] { stage, stage + ".part", stage + ".part.resume.json", stage + ".download.lock", publishing }) + { if (File.Exists(path)) { VerifiedDownloader.RejectLink(path); File.Delete(path); } } + } + } + private static string NumericKey(string version) => System.Text.RegularExpressions.Regex.Replace(version, "[0-9]+", m => long.TryParse(m.Value, out var n) ? n.ToString("D12", System.Globalization.CultureInfo.InvariantCulture) : m.Value, + System.Text.RegularExpressions.RegexOptions.CultureInvariant, TimeSpan.FromSeconds(1)); +} diff --git a/src/SHOU.Launcher.Core/Loaders/LoaderCatalog.cs b/src/SHOU.Launcher.Core/Loaders/LoaderCatalog.cs new file mode 100644 index 00000000..aa4daa6f --- /dev/null +++ b/src/SHOU.Launcher.Core/Loaders/LoaderCatalog.cs @@ -0,0 +1,71 @@ +using System.Text.Json.Nodes; +using System.Xml.Linq; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Loaders; + +public sealed class LoaderCatalog(HttpClient http) +{ + public async Task> GetAsync(string loader, string gameVersion, CancellationToken ct) + { + SafePath.Identifier(gameVersion); + if (loader is "quilt" or "legacyfabric") + { + var endpoint = loader == "quilt" ? "https://meta.quiltmc.org/v3" : "https://meta.legacyfabric.net/v2"; + var data = JsonNode.Parse(await TextAsync(new(endpoint + "/versions/loader/" + Uri.EscapeDataString(gameVersion)), 4 * 1024 * 1024, ct)) as JsonArray + ?? throw new InvalidDataException("Quilt目录不是数组。"); + return data.Take(2000).Select(row => + { + var version = SafePath.Identifier((string?)row?["loader"]?["version"] ?? throw new InvalidDataException("Quilt版本缺失。")); + return new LoaderVersionChoice(loader, version, (bool?)row?["loader"]?["stable"] ?? !version.Contains('-')); + }).OrderByDescending(v => v.Stable).ThenByDescending(v => NumericKey(v.Version), StringComparer.Ordinal).ToArray(); + } + var uri = loader switch + { + "forge" => new Uri("https://maven.minecraftforge.net/net/minecraftforge/forge/maven-metadata.xml"), + "neoforge" => new Uri("https://maven.neoforged.net/releases/net/neoforged/neoforge/maven-metadata.xml"), + _ => throw new PlatformNotSupportedException("尚未提供此加载器的目录。") + }; + var text = await TextAsync(uri, 4 * 1024 * 1024, ct); + if (text.Contains(" x.Value).Take(50000); + var prefix = loader == "forge" ? gameVersion + "-" : NeoPrefix(gameVersion); + return versions.Where(v => loader == "forge" ? v.StartsWith(prefix, StringComparison.Ordinal) : NeoGameVersion(v) == gameVersion).Distinct(StringComparer.Ordinal) + .Select(v => new LoaderVersionChoice(loader, SafePath.Identifier(loader == "forge" ? v[prefix.Length..] : v), !v.Any(char.IsLetter), + loader == "forge" && (!Version.TryParse(gameVersion, out var game) || game < new Version(1, 13)) ? "此历史 Forge 安装器格式尚未接入。" : null, + loader != "forge" || Version.TryParse(gameVersion, out var supportedGame) && supportedGame >= new Version(1, 13))) + .OrderByDescending(v => NumericKey(v.Version), StringComparer.Ordinal).Take(2000).ToArray(); + } + public static string NeoPrefix(string gameVersion) + { + var parts = gameVersion.Split('.'); + if (parts.Length is < 2 or > 3 || parts.Any(p => !int.TryParse(p, out _))) throw new PlatformNotSupportedException("NeoForge仅支持正式数字版本目录。"); + return parts[0] == "1" ? parts[1] + "." + (parts.Length == 3 ? parts[2] : "0") + "." : parts[0] + "." + parts[1] + "." + (parts.Length == 3 ? parts[2] : "0") + "."; + } + internal static string? NeoGameVersion(string version) + { + // Only numeric releases and beta coordinates have an unambiguous supported game identity. + // Snapshot/alpha metadata uses +snapshot-N and must not poison the whole stable directory. + var release = version.Split('-', 2); + if (release.Length == 2 && release[1] != "beta") return null; + var parts = release[0].Split('.'); + if (parts.Any(p => p.Length == 0 || p.Any(c => !char.IsAsciiDigit(c)) || !int.TryParse(p, out _))) return null; + if (parts.Length == 3 && int.Parse(parts[0]) is >= 20 and < 26) + return "1." + parts[0] + (int.Parse(parts[1]) == 0 ? "" : "." + parts[1]); + if (parts.Length == 4 && int.Parse(parts[0]) >= 26) + return parts[0] + "." + parts[1] + (int.Parse(parts[2]) == 0 ? "" : "." + parts[2]); + return null; + } + private static string NumericKey(string version) => string.Join('.', version.Split('.', '-').Select(p => int.TryParse(p, out var number) ? number.ToString("D9", System.Globalization.CultureInfo.InvariantCulture) : p)); + public async Task TextAsync(Uri uri, int maximum, CancellationToken ct) + { + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(30)); + using var request = new HttpRequestMessage(HttpMethod.Get, uri); request.Headers.UserAgent.ParseAdd("SHOU-Launcher/1.5 (Conduit-Club)"); + using var response = await http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, timeout.Token).ConfigureAwait(false); + response.EnsureSuccessStatusCode(); if (response.Content.Headers.ContentLength > maximum) throw new InvalidDataException("加载器响应超过大小限制。"); + await using var input = await response.Content.ReadAsStreamAsync(timeout.Token).ConfigureAwait(false); using var output = new MemoryStream(); var buffer = new byte[16384]; + while (true) { var count = await input.ReadAsync(buffer, timeout.Token).ConfigureAwait(false); if (count == 0) break; if (output.Length + count > maximum) throw new InvalidDataException("加载器响应超过大小限制。"); output.Write(buffer, 0, count); } + return new System.Text.UTF8Encoding(false, true).GetString(output.ToArray()); + } +} diff --git a/src/SHOU.Launcher.Core/Loaders/OfficialLoaderInstaller.cs b/src/SHOU.Launcher.Core/Loaders/OfficialLoaderInstaller.cs new file mode 100644 index 00000000..7f0435db --- /dev/null +++ b/src/SHOU.Launcher.Core/Loaders/OfficialLoaderInstaller.cs @@ -0,0 +1,301 @@ +using System.IO.Compression; +using System.Security.Cryptography; +using System.Text.Json; +using System.Text.Json.Nodes; +using PCL.Core.Conduit; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Configuration; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.IO; +using SHOU.Launcher.Core.Minecraft; + +namespace SHOU.Launcher.Core.Loaders; + +public sealed record LoaderRecipe(string Loader, string GameVersion, string LoaderVersion, string ProfileId, string InstallerRelativePath, string InstallerSha1); +public sealed record LoaderInstallReceipt(string InstallerSha1, string ProfileSha256, IReadOnlyDictionary Libraries); + +/// Runs the hash-verified vendor client installer in a private staging root. Never opens a vendor GUI or a user's official-launcher profile. +public sealed class OfficialLoaderInstaller(HttpClient http, IVerifiedDownloader downloader, IProcessRunner processes, + string cache, string temporaryRoot, Func> sources, Func proxySettings, + LauncherOS hostOS = LauncherOS.Unknown) +{ + private const long MaximumStagedBytes = 2L * 1024 * 1024 * 1024; + private LoaderCatalog Catalog => new(http); + public async Task CacheAsync(string loader, string gameVersion, string loaderVersion, CancellationToken ct) + { + SafePath.Identifier(gameVersion); SafePath.Identifier(loaderVersion); + if (loader is not ("forge" or "neoforge" or "cleanroom")) throw new ArgumentException("Unsupported official installer."); + if (loader == "cleanroom" && gameVersion != "1.12.2") throw new InvalidDataException("Cleanroom 仅支持 Minecraft 1.12.2。"); + if (loader == "neoforge" && !loaderVersion.StartsWith(LoaderCatalog.NeoPrefix(gameVersion), StringComparison.Ordinal)) throw new InvalidDataException("NeoForge与Minecraft版本不匹配。"); + var artifactVersion = loader == "forge" ? gameVersion + "-" + loaderVersion : loaderVersion; + var stem = loader + "-" + artifactVersion + "-installer.jar"; + var uri = new Uri(loader == "forge" ? $"https://maven.minecraftforge.net/net/minecraftforge/forge/{artifactVersion}/{stem}" + : loader == "cleanroom" ? $"https://maven.cleanroommc.com/com/cleanroommc/cleanroom/{artifactVersion}/{stem}" + : $"https://maven.neoforged.net/releases/net/neoforged/neoforge/{artifactVersion}/{stem}"); + var sha = (await Catalog.TextAsync(new(uri.AbsoluteUri + ".sha1"), 4096, ct)).Trim().Split((char[]?)null, StringSplitOptions.RemoveEmptyEntries).FirstOrDefault(); + if (sha?.Length != 40 || !sha.All(Uri.IsHexDigit)) throw new InvalidDataException("官方安装器校验值无效。"); + var relative = $"loaders/{loader}/{artifactVersion}/{stem}"; var installer = ContentInstallFiles.Literal(cache, relative); + using var sizeTimeout = CancellationTokenSource.CreateLinkedTokenSource(ct); sizeTimeout.CancelAfter(TimeSpan.FromSeconds(30)); + using var head = new HttpRequestMessage(HttpMethod.Head, uri); + using var sizeResponse = await http.SendAsync(head, HttpCompletionOption.ResponseHeadersRead, sizeTimeout.Token).ConfigureAwait(false); + sizeResponse.EnsureSuccessStatusCode(); + var length = sizeResponse.Content.Headers.ContentLength; + if (length is not (> 0 and <= 32 * 1024 * 1024)) throw new InvalidDataException("官方安装器未提供有效的32MiB以内大小。"); + await downloader.DownloadAsync(new(Map(uri), installer, sha, Size: length, AllowResume: true), cancellationToken: ct).ConfigureAwait(false); + if (new FileInfo(installer).Length > 32 * 1024 * 1024) throw new InvalidDataException("官方安装器超过32MiB限制。"); + using var jar = ZipFile.OpenRead(installer); + var install = await JsonEntryAsync(jar, "install_profile.json", ct); var version = await JsonEntryAsync(jar, "version.json", ct); + if (loader == "cleanroom") NormalizeCleanroom(version, gameVersion, loaderVersion); + if ((string?)install["minecraft"] != gameVersion || (string?)version["inheritsFrom"] != gameVersion) throw new InvalidDataException("官方安装器中的Minecraft版本不匹配。"); + var id = SafePath.Identifier((string?)version["id"] ?? throw new InvalidDataException("安装器没有版本标识。")); + if (id != (loader == "forge" ? gameVersion + "-forge-" + loaderVersion : loader == "cleanroom" ? "Cleanroom-" + loaderVersion : "neoforge-" + loaderVersion)) throw new InvalidDataException("安装器加载器版本标识不匹配。"); + ValidateMainClass(version, loader, gameVersion, hostOS); + _ = VersionMetadataResolver.ParseVersion(version.ToJsonString(), id); + var recipe = new LoaderRecipe(loader, gameVersion, loaderVersion, id, relative, sha.ToLowerInvariant()); + var path = Profile(id); Directory.CreateDirectory(Path.GetDirectoryName(path)!); + // Existing completed manifests stay intact until a successful replacement is ready. + if (!File.Exists(path)) await AtomicJsonAsync(path, version, ct); + await AtomicJsonAsync(RecipePath(id), recipe, ct); + return recipe; + } + public async Task EnsureInstalledAsync(GameInstance instance, ResolvedVersion vanilla, JavaInstallation java, RuleContext context, + IProgress? progress, CancellationToken ct) + { + var recipeFile = RecipePath(instance.VersionId); + var recipe = File.Exists(recipeFile) ? JsonSerializer.Deserialize(await ReadJsonTextAsync(recipeFile, 64 * 1024, ct), ConfigurationStore.JsonOptions) : null; + if (recipe is null || recipe.Loader != instance.Loader || recipe.LoaderVersion != instance.LoaderVersion || recipe.GameVersion != vanilla.Id || recipe.ProfileId != instance.VersionId) + throw new InvalidDataException("加载器安装记录缺失或不匹配,请重新创建实例。"); + var installer = ContentInstallFiles.Literal(cache, recipe.InstallerRelativePath); + if (!await HashMatchesAsync(installer, recipe.InstallerSha1, false, ct)) throw new InvalidDataException("加载器安装器缓存已变化,请重新创建或下载。"); + if (await ReceiptValidAsync(recipe, ct)) return; + var proxy = proxySettings(); + if (proxy is { Mode: ProxyMode.Custom, CredentialKey: { Length: > 0 } }) throw new PlatformNotSupportedException("官方Java处理器暂不支持需要凭据的HTTP代理;请使用系统代理或无认证代理。"); + var stage = ContentInstallFiles.Literal(temporaryRoot, "loader-" + Guid.NewGuid().ToString("N")); Directory.CreateDirectory(stage); + var id = "loader-processor-" + instance.Loader + "-" + instance.LoaderVersion; + try + { + await File.WriteAllTextAsync(Path.Combine(stage, "launcher_profiles.json"), "{\"profiles\":{}}", ct); + var versionFolder = SafePath.Within(stage, "versions/" + vanilla.Id); Directory.CreateDirectory(versionFolder); + await AtomicJsonAsync(Path.Combine(versionFolder, vanilla.Id + ".json"), vanilla.Metadata, ct); + var client = vanilla.Metadata["downloads"]?["client"] as JsonObject ?? throw new InvalidDataException("缺少原版客户端。"); + var cachedClient = ContentInstallFiles.Literal(cache, "versions/" + vanilla.Id + "/" + vanilla.Id + ".jar"); + await FetchAsync(client, cachedClient, progress, ct); + File.Copy(cachedClient, Path.Combine(versionFolder, vanilla.Id + ".jar")); + using (var jar = ZipFile.OpenRead(installer)) + { + var profile = await JsonEntryAsync(jar, "install_profile.json", ct); var runtime = await JsonEntryAsync(jar, "version.json", ct); + var entries = (profile["libraries"] as JsonArray ?? []).Concat(runtime["libraries"] as JsonArray ?? []).Concat(vanilla.Metadata["libraries"] as JsonArray ?? []); + var seeded = new HashSet(StringComparer.Ordinal); long bytes = new FileInfo(cachedClient).Length; + foreach (var node in entries) + { + ct.ThrowIfCancellationRequested(); + if (node?["downloads"]?["artifact"] is not JsonObject artifact || (string?)artifact["path"] is not { } relative || !seeded.Add(relative)) continue; + var source = ContentInstallFiles.Literal(cache, "libraries/" + relative); + if (!File.Exists(source) || !await HashMatchesAsync(source, (string?)artifact["sha1"], false, ct)) continue; + RejectLink(source); bytes += new FileInfo(source).Length; if (bytes > MaximumStagedBytes) throw new InvalidDataException("加载器暂存超过2GiB限制。"); + var destination = SafePath.Within(stage, "libraries/" + relative); Directory.CreateDirectory(Path.GetDirectoryName(destination)!); File.Copy(source, destination); + } + } + var home = Path.Combine(stage, "home"); var tmp = Path.Combine(stage, "tmp"); Directory.CreateDirectory(home); Directory.CreateDirectory(tmp); + var args = new List { "-Djava.awt.headless=true", "-Duser.home=" + home, "-Djava.io.tmpdir=" + tmp }; + if (proxy.Mode == ProxyMode.System) args.Add("-Djava.net.useSystemProxies=true"); + if (proxy.Mode == ProxyMode.Custom) + { + var address = new Uri(proxy.Address!); + args.AddRange(["-Dhttp.proxyHost=" + address.Host, "-Dhttp.proxyPort=" + address.Port, "-Dhttps.proxyHost=" + address.Host, "-Dhttps.proxyPort=" + address.Port]); + } + args.AddRange(["-jar", installer]); + if (recipe.Loader == "cleanroom") args.AddRange(["client", "--version", recipe.LoaderVersion, "--dir", stage, "--no-gui", "--no-profile", "--no-provision-java", "--java", java.JavaHome, "--full", "--yes", "--json"]); + else args.AddRange(["--installClient", stage]); + var environment = new Dictionary { ["JAVA_HOME"] = java.JavaHome, ["JAVA_TOOL_OPTIONS"] = null, ["JDK_JAVA_OPTIONS"] = null, ["_JAVA_OPTIONS"] = null, ["CLASSPATH"] = null }; + if (recipe.Loader == "cleanroom") + { + environment["APPDATA"] = home; environment["LOCALAPPDATA"] = home; + environment["XDG_CACHE_HOME"] = Path.Combine(home, "cache"); environment["XDG_DATA_HOME"] = Path.Combine(home, "data"); + } + foreach (var key in Environment.GetEnvironmentVariables().Keys.Cast().Where(k => k.StartsWith("PCL_", StringComparison.Ordinal) || k.StartsWith("SHOU_", StringComparison.Ordinal) + || k is "MS_CLIENT_ID" or "CLIENT_ID" or "CURSEFORGE_API" or "CURSEFORGE_API_KEY" + || new[] { "TOKEN", "SECRET", "PASSWORD", "CREDENTIAL", "COOKIE", "API_KEY", "APIKEY" }.Any(part => k.Contains(part, StringComparison.OrdinalIgnoreCase)))) environment[key] = null; + progress?.Report(new(id, "Downloading", 0, null)); + var result = await RunWithStageBudgetAsync(new(java.ExecutablePath, args, stage, environment, TimeSpan.FromMinutes(8), 1024 * 1024), stage, ct).ConfigureAwait(false); + if (result.Cancelled) throw new OperationCanceledException(ct); + if (result.TimedOut || result.ExitCode != 0) throw new IOException($"官方{instance.Loader}处理器未完成(exit={result.ExitCode},timeout={result.TimedOut})。" + Tail(result.StandardError + "\n" + result.StandardOutput)); + var generatedPath = ContentInstallFiles.Literal(stage, "versions/" + recipe.ProfileId + "/" + recipe.ProfileId + ".json"); + var generated = VersionMetadataResolver.ParseVersion(await ReadJsonTextAsync(generatedPath, 4 * 1024 * 1024, ct), recipe.ProfileId); + if (recipe.Loader == "cleanroom") + { + NormalizeCleanroom(generated, recipe.GameVersion, recipe.LoaderVersion); + if ((string?)generated["downloads"]?["client"]?["sha1"] != (string?)vanilla.Metadata["downloads"]?["client"]?["sha1"]) + throw new InvalidDataException("Cleanroom 客户端身份与官方 Minecraft 不一致。"); + } + if ((string?)generated["inheritsFrom"] != vanilla.Id) throw new InvalidDataException("处理器输出的父版本不匹配。"); + ValidateMainClass(generated, recipe.Loader, recipe.GameVersion, hostOS); + var hashes = await ImportLibrariesAsync(stage, ct); + foreach (var library in generated["libraries"] as JsonArray ?? []) + { + if (library?["downloads"]?["artifact"] is not JsonObject artifact || (string?)artifact["path"] is not { } relative) continue; + if (string.IsNullOrEmpty((string?)artifact["url"])) + { + var file = ContentInstallFiles.Literal(cache, "libraries/" + relative); + if (!hashes.ContainsKey(relative)) throw new InvalidDataException("处理器未生成所需运行库。"); + artifact["url"] = "https://libraries.minecraft.net/" + relative; artifact["shouGenerated"] = true; + artifact["sha1"] = await DigestAsync(file, false, ct); artifact["size"] = new FileInfo(file).Length; + } + } + await AtomicJsonAsync(Profile(recipe.ProfileId), generated, ct); + var receipt = new LoaderInstallReceipt(recipe.InstallerSha1, await DigestAsync(Profile(recipe.ProfileId), true, ct), hashes); + await AtomicJsonAsync(ReceiptPath(recipe.ProfileId), receipt, ct); + progress?.Report(new(id, "Completed", 1, 1)); + } + finally { if (Directory.Exists(stage)) Directory.Delete(stage, true); } + } + internal async Task> ImportLibrariesAsync(string stage, CancellationToken ct) + { + var result = new Dictionary(StringComparer.Ordinal); var root = Path.Combine(stage, "libraries"); long bytes = 0; + var folders = new Stack<(string Path, int Depth)>(); folders.Push((root, 0)); + while (folders.TryPop(out var folder)) + { + if (folder.Depth > 24) throw new InvalidDataException("加载器目录过深。"); RejectLink(folder.Path); + foreach (var path in Directory.EnumerateFileSystemEntries(folder.Path)) + { + ct.ThrowIfCancellationRequested(); RejectLink(path); + if (Directory.Exists(path)) { folders.Push((path, folder.Depth + 1)); continue; } + bytes += new FileInfo(path).Length; if (bytes > MaximumStagedBytes || result.Count >= 10000) throw new InvalidDataException("加载器输出超过限制。"); + var relative = Path.GetRelativePath(root, path).Replace('\\', '/'); var target = ContentInstallFiles.Literal(cache, "libraries/" + relative); var hash = await DigestAsync(path, true, ct); + if (File.Exists(target)) { RejectLink(target); if (!await HashMatchesAsync(target, hash, true, ct)) throw new IOException("共享运行库已有不同内容,未覆盖:" + relative); } + else + { + Directory.CreateDirectory(Path.GetDirectoryName(target)!); var temporary = target + ".tmp-" + Guid.NewGuid().ToString("N"); + try { File.Copy(path, temporary); ct.ThrowIfCancellationRequested(); File.Move(temporary, target, false); } + finally { if (File.Exists(temporary)) File.Delete(temporary); } + } + result[relative] = hash; + } + } + return result; + } + private async Task ReceiptValidAsync(LoaderRecipe recipe, CancellationToken ct) + { + try + { + var file = ReceiptPath(recipe.ProfileId); if (!File.Exists(file)) return false; + var receipt = JsonSerializer.Deserialize(await ReadJsonTextAsync(file, 4 * 1024 * 1024, ct), ConfigurationStore.JsonOptions); + if (receipt is null || receipt.InstallerSha1 != recipe.InstallerSha1 || !await HashMatchesAsync(Profile(recipe.ProfileId), receipt.ProfileSha256, true, ct)) return false; + foreach (var pair in receipt.Libraries) if (!await HashMatchesAsync(ContentInstallFiles.Literal(cache, "libraries/" + pair.Key), pair.Value, true, ct)) return false; + return receipt.Libraries.Count > 0; + } + catch (Exception ex) when (ex is IOException or JsonException or InvalidDataException or UnauthorizedAccessException) { return false; } + } + private Task FetchAsync(JsonObject descriptor, string path, IProgress? progress, CancellationToken ct) => downloader.DownloadAsync(new(Map(new((string?)descriptor["url"] ?? throw new InvalidDataException("缺少下载URL。"))), path, + (string?)descriptor["sha1"] ?? throw new InvalidDataException("缺少下载校验。"), Size: (long?)descriptor["size"]), progress, ct); + private IReadOnlyList Map(Uri uri) => DownloadSources.Resolve([uri.AbsoluteUri], sources()).Select(s => new Uri(s.Url)).ToArray(); + private string Profile(string id) => ContentInstallFiles.Literal(cache, "versions/" + SafePath.Identifier(id) + "/" + id + ".json"); + private string RecipePath(string id) => ContentInstallFiles.Literal(cache, "versions/" + SafePath.Identifier(id) + "/loader-recipe.json"); + private string ReceiptPath(string id) => ContentInstallFiles.Literal(cache, "versions/" + SafePath.Identifier(id) + "/loader-installed.json"); + internal static void ValidateMainClass(JsonObject profile, string loader, string gameVersion, LauncherOS os) + { + var main = (string?)profile["mainClass"]; + if (loader == "cleanroom" && main == "top.outlands.foundation.boot.Foundation") return; + if (loader == "forge" && IsLegacyMacForge(profile, gameVersion, os)) return; + if (main != "cpw.mods.bootstraplauncher.BootstrapLauncher" && !(loader == "forge" && main is "cpw.mods.modlauncher.Launcher" or "net.minecraftforge.bootstrap.ForgeBootstrap")) + throw new InvalidDataException("此官方安装器的启动主类尚未支持,未记入已安装缓存。"); + } + internal static bool IsLegacyMacForge(JsonObject profile, string gameVersion, LauncherOS os) + { + if (os != LauncherOS.MacOS || gameVersion != "1.12.2" || (string?)profile["mainClass"] != "net.minecraft.launchwrapper.Launch" + || (string?)profile["id"] is not { } id || !id.StartsWith("1.12.2-forge-14.23.5.", StringComparison.Ordinal)) return false; + var libraries = (profile["libraries"] as JsonArray)?.OfType().Select(l => (string?)l["name"]).ToArray() ?? []; + if (!libraries.Contains("net.minecraftforge:forge:" + id.Replace("-forge-", "-", StringComparison.Ordinal), StringComparer.Ordinal) + || !libraries.Contains("net.minecraft:launchwrapper:1.12", StringComparer.Ordinal)) return false; + var arguments = LaunchPlanBuilder.TokenizeLegacy((string?)profile["minecraftArguments"] ?? ""); + var tweakers = arguments.Select((a, i) => (a, i)).Where(p => p.a == "--tweakClass").ToArray(); + return tweakers.Length == 1 && tweakers[0].i + 1 < arguments.Count && arguments[tweakers[0].i + 1] == "net.minecraftforge.fml.common.launcher.FMLTweaker"; + } + private static void NormalizeCleanroom(JsonObject profile, string game, string version) + { + if (game != "1.12.2" || (string?)profile["id"] != "Cleanroom-" + version || (string?)profile["mainClass"] != "top.outlands.foundation.boot.Foundation" + || (int?)profile["javaVersion"]?["majorVersion"] != 25 || !ContentInstallFiles.Hash((string?)profile["downloads"]?["client"]?["sha1"], 40)) + throw new InvalidDataException("此 Cleanroom 独立配置的客户端/Java 身份尚未支持。"); + if (profile["inheritsFrom"] is not null && (string?)profile["inheritsFrom"] != game) throw new InvalidDataException("Cleanroom 父版本身份不匹配。"); + profile["inheritsFrom"] = game; + } + internal async Task RunWithStageBudgetAsync(ProcessSpec spec, string stage, CancellationToken ct) + { + CheckStageBudget(stage, ct); + using var owned = CancellationTokenSource.CreateLinkedTokenSource(ct); + var running = processes.RunAsync(spec, cancellationToken: owned.Token); + try + { + while (!running.IsCompleted) + { + if (await Task.WhenAny(running, Task.Delay(500, ct)).ConfigureAwait(false) == running) break; + ct.ThrowIfCancellationRequested(); CheckStageBudget(stage, ct); + } + var result = await running.ConfigureAwait(false); CheckStageBudget(stage, ct); return result; + } + catch + { + owned.Cancel(); + try { await running.ConfigureAwait(false); } catch (Exception) { /* Original budget/cancellation failure is authoritative. */ } + throw; + } + } + private static void CheckStageBudget(string stage, CancellationToken ct) + { + long bytes = 0; var entries = 0; var pending = new Stack<(string Path, int Depth)>(); pending.Push((stage, 0)); + while (pending.TryPop(out var folder)) + { + ct.ThrowIfCancellationRequested(); + try + { + RejectLink(folder.Path); + if (folder.Depth > 24) throw new InvalidDataException("加载器暂存目录超过24层限制。"); + foreach (var path in Directory.EnumerateFileSystemEntries(folder.Path)) + { + ct.ThrowIfCancellationRequested(); + try + { + RejectLink(path); + if (++entries > 10000) throw new InvalidDataException("加载器暂存超过10000项限制。"); + if (Directory.Exists(path)) pending.Push((path, folder.Depth + 1)); + else if ((bytes += new FileInfo(path).Length) > MaximumStagedBytes) throw new InvalidDataException("加载器整体暂存超过2GiB限制,处理器已停止。"); + } + catch (FileNotFoundException) { /* The active vendor process may rename a temporary file. */ } + catch (DirectoryNotFoundException) { } + } + } + catch (FileNotFoundException) when (folder.Depth > 0) { } + catch (DirectoryNotFoundException) when (folder.Depth > 0) { } + } + } + private static void RejectLink(string path) + { + FileSystemInfo info = Directory.Exists(path) ? new DirectoryInfo(path) : new FileInfo(path); info.Refresh(); + if (!info.Exists && info.LinkTarget is null) throw new FileNotFoundException("加载器文件已移动。", path); + if (info.LinkTarget is not null || (info.Attributes & FileAttributes.ReparsePoint) != 0) throw new IOException("加载器缓存不接受链接。"); + } + internal static async Task HashMatchesAsync(string file, string? expected, bool sha256, CancellationToken ct) + { if (expected?.Length != (sha256 ? 64 : 40) || !expected.All(Uri.IsHexDigit) || !File.Exists(file)) return false; RejectLink(file); return string.Equals(await DigestAsync(file, sha256, ct), expected, StringComparison.OrdinalIgnoreCase); } + private static async Task DigestAsync(string path, bool sha256, CancellationToken ct) + { await using var file = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 65536, true); return Convert.ToHexStringLower(sha256 ? await SHA256.HashDataAsync(file, ct) : await SHA1.HashDataAsync(file, ct)); } + internal static async Task JsonEntryAsync(ZipArchive jar, string name, CancellationToken ct) + { + var entries = jar.Entries.Where(e => e.FullName == name).ToArray(); if (entries.Length != 1 || entries[0].Length > 4 * 1024 * 1024) throw new InvalidDataException("安装器元数据缺失、重复或过大。"); + await using var input = entries[0].Open(); using var output = new MemoryStream(); var buffer = new byte[16384]; + while (true) { var count = await input.ReadAsync(buffer, ct); if (count == 0) break; if (output.Length + count > 4 * 1024 * 1024) throw new InvalidDataException("安装器元数据解压超过限制。"); output.Write(buffer, 0, count); } + return JsonNode.Parse(output.ToArray()) as JsonObject ?? throw new InvalidDataException("安装器元数据格式无效。"); + } + private static async Task ReadJsonTextAsync(string file, int maximum, CancellationToken ct) + { + RejectLink(file); if (new FileInfo(file).Length > maximum) throw new InvalidDataException("加载器本地元数据超过限制。"); + return await File.ReadAllTextAsync(file, ct).ConfigureAwait(false); + } + internal static async Task AtomicJsonAsync(string path, T value, CancellationToken ct) + { + Downloads.VerifiedDownloader.RejectLink(path); + Directory.CreateDirectory(Path.GetDirectoryName(path)!); var stage = path + ".tmp-" + Guid.NewGuid().ToString("N"); + try { await File.WriteAllTextAsync(stage, JsonSerializer.Serialize(value, ConfigurationStore.JsonOptions), ct); Downloads.VerifiedDownloader.RejectLink(path); File.Move(stage, path, true); } + finally { if (File.Exists(stage)) File.Delete(stage); } + } + private static string Tail(string text) => text.Length > 1800 ? text[^1800..] : text; +} diff --git a/src/SHOU.Launcher.Core/Loaders/PortableVendorInstaller.cs b/src/SHOU.Launcher.Core/Loaders/PortableVendorInstaller.cs new file mode 100644 index 00000000..7492456d --- /dev/null +++ b/src/SHOU.Launcher.Core/Loaders/PortableVendorInstaller.cs @@ -0,0 +1,187 @@ +using System.IO.Compression; +using System.Security.Cryptography; +using System.Text.Json; +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.IO; +using SHOU.Launcher.Core.Minecraft; + +namespace SHOU.Launcher.Core.Loaders; + +internal sealed record VendorInstallReceipt(string Loader, string Game, string Version, string Artifact, string InstallerHash, string ProfileHash, + IReadOnlyDictionary Libraries, IReadOnlyDictionary Payload); + +internal sealed class PortableVendorInstaller(HttpClient http, IVerifiedDownloader downloader, IProcessRunner processes, string cache, string temporary, + Func> sources, Func proxy, JavaBootstrapArtifact? bridge) +{ + internal static bool Supports(string loader) => loader is "optifine" or "labymod" or "liteloader"; + internal static string VersionKey(InstallerVersion row) => row.Loader == "labymod" ? row.Channel + "-" + row.Version + "-" + row.ArtifactVersion : row.Version; + private OfficialLoaderInstaller Files => new(http, downloader, processes, cache, temporary, sources, proxy); + private string Root(string loader, string game, string version) => ContentInstallFiles.Literal(cache, $"loaders/vendor/{SafePath.Identifier(loader)}/{SafePath.Identifier(game)}/{SafePath.Identifier(version)}"); + private string Profile(string id) => ContentInstallFiles.Literal(cache, $"versions/{SafePath.Identifier(id)}/{id}.json"); + internal async Task CachedProfileAsync(string loader, string game, string version, CancellationToken ct) + { + var root = Root(loader, game, version); var id = SafePath.Identifier($"shou-{loader}-{game}-{version}"); + return await ValidAsync(Path.Combine(root, "installed.json"), Path.Combine(root, "installer.jar"), Profile(id), loader, game, version, ct).ConfigureAwait(false) ? id : null; + } + internal async Task EnsureAsync(string loader, string game, string version, ResolvedVersion vanilla, JavaInstallation java, CancellationToken ct) + { + var root = Root(loader, game, version); var id = SafePath.Identifier($"shou-{loader}-{game}-{version}"); + var recipe = Path.Combine(root, "installed.json"); var installer = Path.Combine(root, "installer.jar"); + if (await CachedProfileAsync(loader, game, version, ct).ConfigureAwait(false) is { } cached) return cached; + if (proxy() is { Mode: ProxyMode.Custom, CredentialKey: { Length: > 0 } }) throw new NotSupportedException("此安装适配器暂不支持需要认证的 HTTP 代理。"); + var rows = (await new InstallerCatalogReader(http).ReadAsync(loader, ct).ConfigureAwait(false)).Versions; + var row = rows.SingleOrDefault(r => VersionKey(r) == version && (loader == "labymod" || r.GameVersion == game)) ?? throw new InvalidDataException("所选安装器版本已不在目录,请重新选择。"); + Directory.CreateDirectory(root); + await new InstallerCatalogReader(http).SaveAsync(row, installer, temporary, null, ct).ConfigureAwait(false); + var stage = ContentInstallFiles.Literal(temporary, "vendor-" + Guid.NewGuid().ToString("N")); Directory.CreateDirectory(stage); + try + { + var sourceGuard = Instances.WorldPathSnapshot.Capture(cache, installer); + var installerHash = await DigestAsync(installer, true, ct); + var installerInput = Path.Combine(stage, "vendor-installer.jar"); File.Copy(installer, installerInput); + sourceGuard.Verify(); if (!await OfficialLoaderInstaller.HashMatchesAsync(installerInput, installerHash, true, ct)) throw new IOException("安装器在复制时发生变化。"); + var baseFolder = ContentInstallFiles.Literal(stage, "versions/" + game); Directory.CreateDirectory(baseFolder); + await OfficialLoaderInstaller.AtomicJsonAsync(Path.Combine(baseFolder, game + ".json"), vanilla.Metadata, ct).ConfigureAwait(false); + var client = vanilla.Metadata["downloads"]?["client"] as JsonObject ?? throw new InvalidDataException("缺少基础客户端身份。"); + var baseJar = ContentInstallFiles.Literal(cache, "versions/" + game + "/" + game + ".jar"); + var urls = PCL.Core.Conduit.DownloadSources.Resolve([(string)client["url"]!], sources()).Select(u => new Uri(u.Url)).ToArray(); + await downloader.DownloadAsync(new(urls, baseJar, (string?)client["sha1"], Size: (long?)client["size"]), cancellationToken: ct).ConfigureAwait(false); + File.Copy(baseJar, Path.Combine(baseFolder, game + ".jar")); + if (!await OfficialLoaderInstaller.HashMatchesAsync(Path.Combine(baseFolder, game + ".jar"), (string?)client["sha1"], false, ct)) throw new IOException("基础客户端在复制时发生变化。"); + await File.WriteAllTextAsync(Path.Combine(stage, "launcher_profiles.json"), "{\"profiles\":{}}", ct).ConfigureAwait(false); + JsonObject profile; + if (loader == "liteloader") profile = await ExtractLiteAsync(installerInput, game, stage, ct).ConfigureAwait(false); + else + { + if (bridge is null) throw new InvalidOperationException("缺少已校验的安装适配器,请使用完整候选包。"); + Downloads.VerifiedDownloader.RejectLink(bridge.JarPath); + if (new FileInfo(bridge.JarPath).Length > 2 * 1024 * 1024 || !await OfficialLoaderInstaller.HashMatchesAsync(bridge.JarPath, bridge.Sha256, true, ct)) throw new InvalidDataException("安装适配器哈希无效。"); + var helper = Path.Combine(stage, "installer-bridge.jar"); File.Copy(bridge.JarPath, helper); + if (!await OfficialLoaderInstaller.HashMatchesAsync(helper, bridge.Sha256, true, ct)) throw new IOException("复制后的安装适配器发生变化。"); + var home = Path.Combine(stage, "home"); Directory.CreateDirectory(home); + var args = new List { "-Djava.awt.headless=true", "-Duser.home=" + home, "-Djava.io.tmpdir=" + home }; + var settings = proxy(); + if (settings.Mode == ProxyMode.System) args.Add("-Djava.net.useSystemProxies=true"); + if (settings.Mode == ProxyMode.Custom) { var address = new Uri(settings.Address!); args.AddRange(["-Dhttps.proxyHost=" + address.Host, "-Dhttps.proxyPort=" + address.Port]); } + args.AddRange(["-cp", helper + Path.PathSeparator + installerInput, "org.shou.launcher.bootstrap.InstallerBridge", loader, stage, game, loader == "optifine" ? row.ArtifactVersion : row.Version, row.ArtifactVersion, row.Channel ?? "stable"]); + var env = new Dictionary { ["JAVA_HOME"] = java.JavaHome, ["JAVA_TOOL_OPTIONS"] = null, ["JDK_JAVA_OPTIONS"] = null, ["_JAVA_OPTIONS"] = null, ["CLASSPATH"] = null, ["APPDATA"] = home, ["LOCALAPPDATA"] = home, ["XDG_CACHE_HOME"] = home, ["XDG_DATA_HOME"] = home }; + foreach (var key in Environment.GetEnvironmentVariables().Keys.Cast().Where(k => k.StartsWith("SHOU_") || k.StartsWith("PCL_") || k is "CLIENT_ID" or "MS_CLIENT_ID" or "CURSEFORGE_API" || new[] { "TOKEN", "SECRET", "PASSWORD", "CREDENTIAL", "COOKIE", "API_KEY", "APIKEY" }.Any(p => k.Contains(p, StringComparison.OrdinalIgnoreCase)))) env[key] = null; + var result = await Files.RunWithStageBudgetAsync(new(java.ExecutablePath, args, stage, env, TimeSpan.FromMinutes(8), 64 * 1024), stage, ct).ConfigureAwait(false); + if (result.Cancelled) throw new OperationCanceledException(ct); + if (result.ExitCode != 0 || result.TimedOut || loader != "optifine" && !result.StandardOutput.Contains("SHOU_INSTALLER_COMPLETE", StringComparison.Ordinal)) throw new IOException($"安装适配器未完成({loader}, exit={result.ExitCode}, timeout={result.TimedOut})。" + (result.StandardError.Length > 1200 ? result.StandardError[^1200..] : result.StandardError)); + var profiles = Directory.GetFiles(Path.Combine(stage, "versions"), "*.json", SearchOption.AllDirectories).Where(p => p != Path.Combine(baseFolder, game + ".json")).ToArray(); + if (profiles.Length != 1) throw new InvalidDataException("安装器未生成唯一的客户端配置。"); + profile = JsonNode.Parse(await File.ReadAllTextAsync(profiles[0], ct).ConfigureAwait(false)) as JsonObject ?? throw new InvalidDataException("安装器配置无效。"); + } + if (profile["inheritsFrom"] is not null && (string?)profile["inheritsFrom"] != game) throw new InvalidDataException("安装器输出父版本不匹配。"); + if (profile["downloads"]?["client"]?["sha1"] is { } actual && (string?)actual != (string?)vanilla.Metadata["downloads"]?["client"]?["sha1"]) throw new InvalidDataException("安装器客户端与所选基础版本不一致。"); + profile["id"] = id; profile["inheritsFrom"] = game; + if (loader == "labymod") profile["javaVersion"] = new JsonObject { ["majorVersion"] = java.MajorVersion, ["component"] = vanilla.JavaComponent }; + ValidateProfile(loader, profile); _ = VersionMetadataResolver.ParseVersion(profile.ToJsonString(), id); + if (loader == "labymod") + { + foreach (var node in profile["libraries"] as JsonArray ?? []) + { + if (node is not JsonObject lib || (string?)lib["name"] != "net.labymod:LabyMod:4" || lib["downloads"]?["artifact"] is not JsonObject artifact) continue; + var old = ContentInstallFiles.Literal(stage, "libraries/" + (string)artifact["path"]!); + var coordinate = "net.labymod:LabyMod:4-" + row.ArtifactVersion; var path = LibraryResolver.MavenPath(coordinate); + var target = ContentInstallFiles.Literal(stage, "libraries/" + path); Directory.CreateDirectory(Path.GetDirectoryName(target)!); File.Move(old, target, false); + lib["name"] = coordinate; artifact["path"] = path; + } + } + Directory.CreateDirectory(Path.Combine(stage, "libraries")); + var libraries = await Files.ImportLibrariesAsync(stage, ct).ConfigureAwait(false); + foreach (var lib in profile["libraries"] as JsonArray ?? []) + { + if (lib is JsonObject descriptor && descriptor["downloads"] is null && (string?)descriptor["name"] is { } coordinate) + { + var produced = LibraryResolver.MavenPath(coordinate); + if (libraries.ContainsKey(produced)) descriptor["downloads"] = new JsonObject { ["artifact"] = new JsonObject { ["path"] = produced, ["url"] = "" } }; + } + if (lib?["downloads"]?["artifact"] is not JsonObject artifact || (string?)artifact["path"] is not { } path || !string.IsNullOrEmpty((string?)artifact["url"])) continue; + var file = ContentInstallFiles.Literal(cache, "libraries/" + path); + if (!libraries.ContainsKey(path)) throw new InvalidDataException("安装器未生成所需运行库。"); + artifact["url"] = "https://libraries.minecraft.net/" + path; artifact["shouGenerated"] = true; + artifact["sha1"] = await DigestAsync(file, false, ct); artifact["size"] = new FileInfo(file).Length; + } + var payload = new Dictionary(); + var payloadSource = Path.Combine(stage, "labymod-neo"); + if (Directory.Exists(payloadSource)) + { + foreach (var source in Directory.GetFiles(payloadSource, "*", SearchOption.AllDirectories)) + { + var relative = Path.GetRelativePath(stage, source).Replace('\\', '/'); + _ = ContentInstallFiles.Literal(stage, relative); + var target = ContentInstallFiles.Literal(root, "payload/" + relative); Directory.CreateDirectory(Path.GetDirectoryName(target)!); + if (!File.Exists(target)) File.Copy(source, target); + var hash = await DigestAsync(source, true, ct); if (!await OfficialLoaderInstaller.HashMatchesAsync(target, hash, true, ct)) throw new IOException("已缓存的 LabyMod 文件发生变化。"); + payload.Add(relative, hash); + } + } + await OfficialLoaderInstaller.AtomicJsonAsync(Profile(id), profile, ct).ConfigureAwait(false); + await OfficialLoaderInstaller.AtomicJsonAsync(recipe, new VendorInstallReceipt(loader, game, version, row.ArtifactVersion, installerHash, await DigestAsync(Profile(id), true, ct), libraries, payload), ct).ConfigureAwait(false); + return id; + } + finally { Downloads.VerifiedDownloader.RejectLink(stage); if (Directory.Exists(stage)) Directory.Delete(stage, true); } + } + internal async Task CopyPayloadAsync(GameInstance instance, CancellationToken ct) + { + var root = Root(instance.Loader, Instances.InstanceIdentity.GameVersion(instance), instance.LoaderVersion!); + var receipt = JsonSerializer.Deserialize(await File.ReadAllTextAsync(ContentInstallFiles.Literal(root, "installed.json"), ct), Configuration.ConfigurationStore.JsonOptions) ?? throw new InvalidDataException("安装收据缺失。"); + foreach (var (path, hash) in receipt.Payload) + { + ct.ThrowIfCancellationRequested(); var source = ContentInstallFiles.Literal(root, "payload/" + path); var target = ContentInstallFiles.Literal(instance.GameDirectory, path); + if (!path.StartsWith("labymod-neo/", StringComparison.Ordinal) || !await OfficialLoaderInstaller.HashMatchesAsync(source, hash, true, ct)) throw new InvalidDataException("安装器附属文件无效。"); + if (File.Exists(target)) { if (!await OfficialLoaderInstaller.HashMatchesAsync(target, hash, true, ct)) throw new IOException("实例内已有不同的 LabyMod 文件,未覆盖。"); continue; } + Directory.CreateDirectory(Path.GetDirectoryName(target)!); File.Copy(source, target); + } + } + internal static void ValidateProfile(string loader, JsonObject profile) + { + var main = (string?)profile["mainClass"] ?? ""; var text = profile.ToJsonString(); + var valid = loader switch { "optifine" => main == "net.minecraft.launchwrapper.Launch" && text.Contains("optifine.OptiFineTweaker", StringComparison.Ordinal), + "liteloader" => main == "net.minecraft.launchwrapper.Launch" && text.Contains("com.mumfrey.liteloader.launch.LiteLoaderTweaker", StringComparison.Ordinal), + "labymod" => main == "net.minecraft.launchwrapper.Launch" && profile["labymod_data"] is JsonObject + && (profile["libraries"] as JsonArray ?? []).Any(l => ((string?)l?["name"])?.StartsWith("net.labymod:LabyMod:", StringComparison.Ordinal) == true), _ => false }; + if (!valid) throw new InvalidDataException("安装器主类与加载器身份不匹配。"); + } + private static async Task ExtractLiteAsync(string installer, string game, string stage, CancellationToken ct) + { + using var jar = ZipFile.OpenRead(installer); + var entry = jar.GetEntry("install_profile.json") ?? throw new InvalidDataException("LiteLoader 安装元数据缺失。"); + if (entry.Length > 4 * 1024 * 1024) throw new InvalidDataException("LiteLoader 元数据过大。"); + using var reader = new StreamReader(entry.Open()); var text = await reader.ReadToEndAsync(ct); + var json = JsonNode.Parse(text, documentOptions: new JsonDocumentOptions { AllowTrailingCommas = true }) as JsonObject ?? throw new InvalidDataException("LiteLoader 元数据无效。"); + if ((string?)json["install"]?["minecraft"] != game || (string?)json["versionInfo"]?["inheritsFrom"] != game) throw new InvalidDataException("LiteLoader Minecraft 身份不匹配。"); + var profile = (JsonObject)json["versionInfo"]!.DeepClone(); var coordinate = (string?)json["install"]?["path"] ?? throw new InvalidDataException("LiteLoader 库身份缺失。"); + if (coordinate != "com.mumfrey:liteloader:" + game) throw new InvalidDataException("LiteLoader 库坐标不匹配。"); + var embedded = (string?)json["install"]?["filePath"] ?? ""; ModrinthPackArchive.SafeRelative(embedded); + var binary = jar.GetEntry(embedded) ?? throw new InvalidDataException("LiteLoader 安装器未包含运行库。"); + if (binary.Length is <= 0 or > 128 * 1024 * 1024) throw new InvalidDataException("LiteLoader 运行库大小无效。"); + var path = LibraryResolver.MavenPath(coordinate); var destination = ContentInstallFiles.Literal(stage, "libraries/" + path); Directory.CreateDirectory(Path.GetDirectoryName(destination)!); + await using (var input = binary.Open()) await using (var output = new FileStream(destination, FileMode.CreateNew)) await input.CopyToAsync(output, ct); + var lib = (profile["libraries"] as JsonArray ?? []).Single(n => (string?)n?["name"] == coordinate) as JsonObject ?? throw new InvalidDataException("LiteLoader 配置未引用所需库。"); + lib["url"] = null; lib["downloads"] = new JsonObject { ["artifact"] = new JsonObject { ["path"] = path, ["url"] = "" } }; + return profile; + } + private async Task ValidAsync(string receiptPath, string installer, string profile, string loader, string game, string version, CancellationToken ct) + { + if (!File.Exists(receiptPath)) return false; + try + { + Downloads.VerifiedDownloader.RejectLink(receiptPath); + if (new FileInfo(receiptPath).Length > 4 * 1024 * 1024) return false; + var receipt = JsonSerializer.Deserialize(await File.ReadAllTextAsync(receiptPath, ct), Configuration.ConfigurationStore.JsonOptions); + if (receipt is null || receipt.Loader != loader || receipt.Game != game || receipt.Version != version || receipt.Libraries is null || receipt.Payload is null + || !await OfficialLoaderInstaller.HashMatchesAsync(installer, receipt.InstallerHash, true, ct) || !await OfficialLoaderInstaller.HashMatchesAsync(profile, receipt.ProfileHash, true, ct)) return false; + foreach (var (path, hash) in receipt.Libraries) if (!await OfficialLoaderInstaller.HashMatchesAsync(ContentInstallFiles.Literal(cache, "libraries/" + path), hash, true, ct)) return false; + foreach (var (path, hash) in receipt.Payload) if (!await OfficialLoaderInstaller.HashMatchesAsync(ContentInstallFiles.Literal(Path.GetDirectoryName(receiptPath)!, "payload/" + path), hash, true, ct)) return false; + return true; + } + catch (Exception ex) when (ex is IOException or JsonException or InvalidDataException) { return false; } + } + private static async Task DigestAsync(string path, bool sha256, CancellationToken ct) + { await using var file = File.OpenRead(path); return Convert.ToHexStringLower(sha256 ? await SHA256.HashDataAsync(file, ct) : await SHA1.HashDataAsync(file, ct)); } +} diff --git a/src/SHOU.Launcher.Core/Minecraft/AssetResolver.cs b/src/SHOU.Launcher.Core/Minecraft/AssetResolver.cs new file mode 100644 index 00000000..0325441f --- /dev/null +++ b/src/SHOU.Launcher.Core/Minecraft/AssetResolver.cs @@ -0,0 +1,45 @@ +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Minecraft; + +public sealed record AssetObject(string LogicalName, string Hash, long Size) +{ + public string RelativePath => "objects/" + Hash[..2] + "/" + Hash; + public Uri OfficialUri => new("https://resources.download.minecraft.net/" + Hash[..2] + "/" + Hash); +} +public sealed record AssetIndex(string Id, IReadOnlyList Objects, bool Virtual, bool MapToResources); +public static class AssetResolver +{ + public static AssetIndex Parse(string id, string json) + { + SafePath.Identifier(id); + var root = JsonNode.Parse(json) as JsonObject ?? throw new InvalidDataException("Asset index is not an object."); + if (root["objects"] is not JsonObject objects) throw new InvalidDataException("Asset index has no objects."); + var result = new List(); + foreach (var entry in objects) + { + var hash = (string?)entry.Value?["hash"] ?? ""; + var size = (long?)entry.Value?["size"] ?? -1; + if (hash.Length != 40 || hash.Any(c => !Uri.IsHexDigit(c)) || size < 0) throw new InvalidDataException("Asset object hash/size invalid."); + result.Add(new(entry.Key, hash.ToLowerInvariant(), size)); + } + return new(id, result, (bool?)root["virtual"] ?? false, (bool?)root["map_to_resources"] ?? false); + } + public static void MaterializeLegacyLayout(AssetIndex index, string assetsRoot, string gameDirectory) + { + if (!index.Virtual && !index.MapToResources) return; + foreach (var asset in index.Objects) + { + var source = SafePath.Within(assetsRoot, asset.RelativePath); + foreach (var root in new[] { index.Virtual ? Path.Combine(assetsRoot, "virtual", index.Id) : null, + index.MapToResources ? Path.Combine(gameDirectory, "resources") : null }.Where(p => p is not null)) + { + var target = SafePath.Within(root!, asset.LogicalName); + Directory.CreateDirectory(Path.GetDirectoryName(target)!); + File.Copy(source, target, true); + } + } + } +} diff --git a/src/SHOU.Launcher.Core/Minecraft/FabricMetadataProvider.cs b/src/SHOU.Launcher.Core/Minecraft/FabricMetadataProvider.cs new file mode 100644 index 00000000..197d845d --- /dev/null +++ b/src/SHOU.Launcher.Core/Minecraft/FabricMetadataProvider.cs @@ -0,0 +1,75 @@ +using System.Security.Cryptography; +using System.Text; +using System.Text.Json.Nodes; +using PCL.Core.Conduit; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Minecraft; + +public sealed class FabricMetadataProvider(HttpClient http, string cacheDirectory, Func> sources) +{ + public const int MaximumProfileBytes = 2 * 1024 * 1024; + public static string ProfileId(string gameVersion, string loaderVersion) => + "fabric-loader-" + SafePath.Identifier(loaderVersion) + "-" + SafePath.Identifier(gameVersion); + public static JsonObject Parse(string text, string gameVersion, string loaderVersion) + { + var expected = ProfileId(gameVersion, loaderVersion); + var profile = VersionMetadataResolver.ParseVersion(text, expected); + if ((string?)profile["inheritsFrom"] != gameVersion || (string?)profile["mainClass"] != "net.fabricmc.loader.impl.launch.knot.KnotClient") + throw new InvalidDataException("Fabric profile has an unexpected parent or modern client entry point."); + if (profile["libraries"] is not JsonArray { Count: > 0 } libraries || libraries.Any(n => n is not JsonObject || string.IsNullOrWhiteSpace((string?)n["name"]))) + throw new InvalidDataException("Fabric profile has no usable library list."); + return profile; + } + public async Task CacheProfileAsync(string gameVersion, string loaderVersion, CancellationToken ct = default) + { + var id = ProfileId(gameVersion, loaderVersion); + var path = SafePath.Within(cacheDirectory, $"versions/{id}/{id}.json"); + var digestPath = SafePath.Within(cacheDirectory, $"versions/{id}/{id}.fabric.sha256"); + if (File.Exists(path)) + { + var existing = await File.ReadAllBytesAsync(path, ct).ConfigureAwait(false); + if (!File.Exists(digestPath) || !(await File.ReadAllTextAsync(digestPath, ct).ConfigureAwait(false)).Trim().Equals(Convert.ToHexStringLower(SHA256.HashData(existing)), StringComparison.Ordinal)) + throw new InvalidDataException("Cached Fabric profile checksum is missing or changed; reinstall explicitly."); + _ = Parse(Encoding.UTF8.GetString(existing), gameVersion, loaderVersion); + return id; + } + var uri = "https://meta.fabricmc.net/v2/versions/loader/" + Uri.EscapeDataString(gameVersion) + "/" + Uri.EscapeDataString(loaderVersion) + "/profile/json"; + var errors = new List(); + foreach (var source in DownloadSources.Resolve([uri], sources())) + { + ct.ThrowIfCancellationRequested(); + try + { + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromSeconds(25)); + using var response = await http.GetAsync(source.Url, HttpCompletionOption.ResponseHeadersRead, timeout.Token).ConfigureAwait(false); + response.EnsureSuccessStatusCode(); + if (response.Content.Headers.ContentLength is > MaximumProfileBytes) throw new InvalidDataException("Fabric profile exceeds the metadata budget."); + await using var stream = await response.Content.ReadAsStreamAsync(timeout.Token).ConfigureAwait(false); + using var output = new MemoryStream(); var buffer = new byte[16384]; + while (true) + { + var count = await stream.ReadAsync(buffer, timeout.Token).ConfigureAwait(false); if (count == 0) break; + if (output.Length + count > MaximumProfileBytes) throw new InvalidDataException("Fabric profile exceeds the metadata budget."); + output.Write(buffer, 0, count); + } + var bytes = output.ToArray(); _ = Parse(new UTF8Encoding(false, true).GetString(bytes), gameVersion, loaderVersion); + Directory.CreateDirectory(Path.GetDirectoryName(path)!); + var temporary = SafePath.Within(Path.GetDirectoryName(path)!, Path.GetFileName(path) + ".tmp-" + Guid.NewGuid().ToString("N")); + try + { + await using (var file = new FileStream(temporary, FileMode.CreateNew, FileAccess.Write, FileShare.None, 65536, true)) + await file.WriteAsync(bytes, ct).ConfigureAwait(false); + await File.WriteAllTextAsync(digestPath, Convert.ToHexStringLower(SHA256.HashData(bytes)), ct).ConfigureAwait(false); + File.Move(temporary, path, false); + } + finally { if (File.Exists(temporary)) File.Delete(temporary); } + return id; + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception error) when (error is HttpRequestException or IOException or InvalidDataException or System.Text.Json.JsonException or OperationCanceledException or DecoderFallbackException) + { errors.Add(new IOException("Fabric source failed: " + error.GetType().Name)); } + } + throw new AggregateException("No configured Fabric metadata source succeeded.", errors); + } +} diff --git a/src/SHOU.Launcher.Core/Minecraft/GameSettingsPolicy.cs b/src/SHOU.Launcher.Core/Minecraft/GameSettingsPolicy.cs new file mode 100644 index 00000000..7482f787 --- /dev/null +++ b/src/SHOU.Launcher.Core/Minecraft/GameSettingsPolicy.cs @@ -0,0 +1,72 @@ +using System.Text.RegularExpressions; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Minecraft; + +public static class GameSettingsPolicy +{ + public static GameLaunchOptions Options(GameInstance? instance, LauncherSettings settings) + => instance?.LaunchOptions is { InheritGlobal: false } local ? local : settings.LaunchOptions ?? new(); + public static void Validate(GameLaunchOptions options) + { + if (options.WindowTitle is null || options.JvmArguments is null || options.GameArguments is null || options.BeforeLaunchExecutable is null || options.BeforeLaunchArguments is null || options.ClasspathPrepend is null) throw new ArgumentException("游戏设置包含无效的空值。"); + if (!Enum.IsDefined(options.Isolation) || !Enum.IsDefined(options.Visibility) || !Enum.IsDefined(options.Priority) || !Enum.IsDefined(options.IpPreference)) throw new ArgumentException("未知游戏设置选项。"); + if (options.WindowTitle.Length > 160 || options.WindowTitle.Any(char.IsControl)) throw new ArgumentException("游戏窗口标题须为 160 字以内的单行文字。"); + _ = JvmArguments(options); + _ = GameArguments(options.GameArguments); + if (options.WindowWidth.HasValue != options.WindowHeight.HasValue || options.WindowWidth is < 320 or > 16384 || options.WindowHeight is < 320 or > 16384 || options.MinimumMemoryMiB is < 512 or > 32768) throw new ArgumentException("实例窗口大小或初始内存无效。"); + if (options.CustomInfo is { } info && (info.Length > 256 || info.Any(char.IsControl))) throw new ArgumentException("自定义信息须为 256 字以内的单行文字。"); + if (options.BeforeLaunchExecutable.Length > 0 && !Path.IsPathFullyQualified(options.BeforeLaunchExecutable)) throw new ArgumentException("启动前程序须使用完整路径;不经过命令行 Shell 执行。"); + if (options.BeforeLaunchArguments.Length > 4096 || options.BeforeLaunchArguments.Any(c => c == '\0')) throw new ArgumentException("启动前程序参数过长或无效。"); + _ = LaunchPlanBuilder.TokenizeLegacy(options.BeforeLaunchArguments); + _ = Classpath(options.ClasspathPrepend, false); + } + public static IReadOnlyList GameArguments(string text) + { + if (text.Contains('\0')) throw new ArgumentException("游戏参数含有无效字符。"); + return ValidateGameArguments(LaunchPlanBuilder.TokenizeLegacy(text)); + } + public static IReadOnlyList ValidateGameArguments(IReadOnlyList arguments) + { + if (arguments.Any(a => a is null || a.Contains('\0'))) throw new ArgumentException("游戏参数含有无效字符。"); + return arguments; + } + public static IReadOnlyList JvmArguments(GameLaunchOptions options) + { + if (options.JvmArguments.Contains('\0')) throw new ArgumentException("JVM 参数含有无效字符。"); + var arguments = LaunchPlanBuilder.TokenizeLegacy(options.JvmArguments).ToList(); + if (options.IpPreference == GameIpPreference.IPv4) { arguments.Add("-Djava.net.preferIPv4Stack=true"); arguments.Add("-Djava.net.preferIPv6Addresses=false"); } + if (options.IpPreference == GameIpPreference.IPv6) { arguments.Add("-Djava.net.preferIPv4Stack=false"); arguments.Add("-Djava.net.preferIPv6Addresses=true"); } + return arguments; + } + public static IReadOnlyList Classpath(string text, bool inspectFiles = true) + { + if (text.Length > 16384) throw new ArgumentException("Classpath 列表过长。"); + var files = text.Split(['\r', '\n'], StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries); + if (files.Length > 16 || files.Any(p => !Path.IsPathFullyQualified(p) || p.Any(char.IsControl) || !Path.GetExtension(p).Equals(".jar", StringComparison.OrdinalIgnoreCase))) throw new ArgumentException("Classpath 每行填写一个完整的本机 JAR 路径,最多 16 项。"); + if (inspectFiles) foreach (var file in files) + { + IO.SafePath.RejectLinks(file); + if (!File.Exists(file) || new FileInfo(file).Length > 256L * 1024 * 1024) throw new IOException("附加 Classpath JAR 不存在或超过大小限制。"); + using var archive = System.IO.Compression.ZipFile.OpenRead(file); if (archive.Entries.Count == 0) throw new InvalidDataException("附加 Classpath JAR 为空。"); + } + return files.Distinct(OperatingSystem.IsWindows() ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal).ToArray(); + } + public static int MemoryMiB(GameInstance instance, LauncherSettings settings, MemoryStatus? memory, RuntimeArchitecture architecture = RuntimeArchitecture.X64) + { + var options = Options(instance, settings); + var value = instance.MemoryMiB ?? settings.MemoryMiB; + // The memory-follow switch is independent of the other per-instance launch overrides. + if (instance.MemoryMiB is null && settings.LaunchOptions?.AutomaticMemory == true && memory is { TotalBytes: > 0, AvailableBytes: > 0 }) + { + var available = memory.AvailableBytes / 1048576; + var total = memory.TotalBytes / 1048576; + value = (int)Math.Clamp(Math.Min(available * .6, total * .5) / 256, 2, 128) * 256; + } + if (architecture == RuntimeArchitecture.X86) value = Math.Min(value, 1536); + var minimum = options.MinimumMemoryMiB ?? settings.MinimumMemoryMiB ?? 512; + if (architecture == RuntimeArchitecture.X86 && minimum > 1536) throw new ArgumentException("32 位 Java 的初始内存不得超过 1536 MiB。"); + return Math.Max(minimum, value); + } + public static string Title(string template, GameInstance instance) => template.Replace("{name}", instance.Name, StringComparison.Ordinal).Replace("{version}", instance.GameVersionId ?? instance.VersionId, StringComparison.Ordinal); +} diff --git a/src/SHOU.Launcher.Core/Minecraft/LaunchPlanBuilder.cs b/src/SHOU.Launcher.Core/Minecraft/LaunchPlanBuilder.cs new file mode 100644 index 00000000..d178bc43 --- /dev/null +++ b/src/SHOU.Launcher.Core/Minecraft/LaunchPlanBuilder.cs @@ -0,0 +1,174 @@ +using System.Text; +using System.Text.Json.Nodes; +using System.Text.RegularExpressions; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Minecraft; + +public sealed record LaunchIdentity(string PlayerName, string Uuid, string AccessToken, string UserType = "legacy", + string? Xuid = null, string? ClientId = null, Uri? AuthenticationServer = null, string? InjectorPath = null, + string? PrefetchedMetadataBase64 = null); +public sealed record LaunchInputs(ResolvedVersion Version, JavaInstallation Java, RuleContext Context, + LaunchIdentity Identity, string GameDirectory, string LibrariesDirectory, string AssetsDirectory, + string NativesDirectory, string ClientJar, string AssetIndexId, int MemoryMiB, + IReadOnlyList? LegacyExtractions = null, IReadOnlyList? ExtraJvmArguments = null, string? TemporaryDirectory = null, + int? WindowWidth = null, int? WindowHeight = null, bool Fullscreen = false, int? MinimumMemoryMiB = null, string? CustomInfo = null, + IReadOnlyList? ExtraGameArguments = null, string? ServerAddress = null, IReadOnlyList? ClasspathPrepend = null); + +public static class LaunchPlanBuilder +{ + public static LaunchPlan Build(LaunchInputs input) + { + input = ServerLaunchPolicy.Configure(input); + if (!input.Java.IsUsable) throw new InvalidOperationException("Selected Java did not pass probe."); + if (input.Java.MajorVersion != input.Version.RequiredJavaMajor) throw new InvalidOperationException($"Version metadata requires Java {input.Version.RequiredJavaMajor}; selected Java is {input.Java.MajorVersion}."); + if (input.Context.JavaArchitecture != input.Java.RuntimeArchitecture) throw new InvalidOperationException("Native rule architecture differs from actual selected Java."); + if (input.MemoryMiB is < 512 or > 32768) throw new ArgumentOutOfRangeException(nameof(input.MemoryMiB)); + if (input.MinimumMemoryMiB is { } minimum && (minimum < 512 || minimum > input.MemoryMiB)) + throw new ArgumentOutOfRangeException(nameof(input.MinimumMemoryMiB)); + if (input.WindowWidth.HasValue != input.WindowHeight.HasValue || input.WindowWidth is < 320 or > 16384 || input.WindowHeight is < 320 or > 16384) + throw new ArgumentOutOfRangeException(nameof(input.WindowWidth)); + if (input.CustomInfo is { } info && (info.Length > 256 || info.Any(char.IsControl))) + throw new ArgumentException("Custom information must be single-line and bounded.", nameof(input.CustomInfo)); + var resolved = LibraryResolver.Resolve(input.Version.Metadata, input.Context); + var classpath = (input.ClasspathPrepend ?? []).Concat(resolved.ClasspathRelativePaths.Select(p => SafePath.Within(input.LibrariesDirectory, p))).Append(Path.GetFullPath(input.ClientJar)).ToArray(); + var mainClass = (string?)input.Version.Metadata["mainClass"] ?? throw new InvalidDataException("Version mainClass is missing."); + var values = new Dictionary(StringComparer.Ordinal) + { + ["auth_player_name"] = input.Identity.PlayerName, ["auth_uuid"] = input.Identity.Uuid, + ["auth_access_token"] = input.Identity.AccessToken, ["auth_session"] = input.Identity.AccessToken, + ["user_type"] = input.Identity.UserType, ["user_properties"] = "{}", + ["version_name"] = input.Version.Id, ["version_type"] = string.IsNullOrWhiteSpace(input.CustomInfo) ? (string?)input.Version.Metadata["type"] ?? "release" : input.CustomInfo, + ["game_directory"] = Path.GetFullPath(input.GameDirectory), ["assets_root"] = Path.GetFullPath(input.AssetsDirectory), + ["game_assets"] = Path.Combine(input.AssetsDirectory, "virtual", input.AssetIndexId), ["assets_index_name"] = input.AssetIndexId, + ["natives_directory"] = Path.GetFullPath(input.NativesDirectory), ["library_directory"] = Path.GetFullPath(input.LibrariesDirectory), + ["classpath"] = string.Join(input.Context.ClasspathSeparator, classpath), ["classpath_separator"] = input.Context.ClasspathSeparator, + ["launcher_name"] = "SHOU-Launcher", ["launcher_version"] = "1.6.2", ["clientid"] = input.Identity.ClientId ?? "", + ["auth_xuid"] = input.Identity.Xuid ?? "", ["quickPlayPath"] = Path.Combine(input.TemporaryDirectory ?? input.GameDirectory, "quick-play.json"), + ["quickPlayMultiplayer"] = input.ServerAddress ?? "", ["quickPlaySingleplayer"] = "", ["quickPlayRealms"] = "", + ["resolution_width"] = (input.WindowWidth ?? 960).ToString(System.Globalization.CultureInfo.InvariantCulture), + ["resolution_height"] = (input.WindowHeight ?? 600).ToString(System.Globalization.CultureInfo.InvariantCulture) + }; + string Expand(string argument) => Regex.Replace(argument, @"\$\{([^}]+)\}", match => values.TryGetValue(match.Groups[1].Value, out var value) + ? value : throw new InvalidDataException("Unknown launch argument placeholder: " + match.Groups[1].Value), RegexOptions.CultureInvariant, TimeSpan.FromSeconds(1)); + string ExpandJvm(string argument) + { + var expanded = Expand(argument); + // Official BootstrapLauncher filters classpath JAR file names, while version_name + // identifies our loader profile. An inherited client JAR retains its vanilla name. + if (mainClass == "cpw.mods.bootstraplauncher.BootstrapLauncher" && argument.StartsWith("-DignoreList=", StringComparison.Ordinal) && + argument.Contains("${version_name}.jar", StringComparison.Ordinal)) + { + var clientName = Path.GetFileName(input.ClientJar); + if (string.IsNullOrWhiteSpace(clientName) || clientName.Contains(',') || clientName.Any(char.IsControl)) + throw new InvalidDataException("客户端 JAR 文件名不能用于加载器的模块忽略列表。"); + if (!expanded["-DignoreList=".Length..].Split(',').Contains(clientName, StringComparer.Ordinal)) expanded += "," + clientName; + } + return expanded; + } + var jvm = input.Version.Metadata["arguments"]?["jvm"] is JsonArray modernJvm + ? ExpandArguments(modernJvm, input.Context).Select(ExpandJvm).ToList() + : new List { "-Djava.library.path=" + input.NativesDirectory, "-cp", values["classpath"] }; + var legacyMac = input.Context.OSName == "osx" && MacRuntimeCompatibility.UsesLwjgl2(input.Version.Metadata, input.Context); + if (legacyMac) jvm.RemoveAll(a => a == "-XstartOnFirstThread"); + else if (input.Context.OSName == "osx" && !jvm.Contains("-XstartOnFirstThread", StringComparer.Ordinal)) jvm.Add("-XstartOnFirstThread"); + if (jvm.Count(a => a == "-XstartOnFirstThread") > 1) throw new InvalidDataException("Duplicate -XstartOnFirstThread."); + if (!jvm.Any(a => a.StartsWith("-Xmx", StringComparison.Ordinal))) jvm.Add("-Xmx" + input.MemoryMiB + "M"); + if (input.MinimumMemoryMiB is { } initialMemory) + { + jvm.RemoveAll(a => a.StartsWith("-Xms", StringComparison.Ordinal)); + jvm.Add("-Xms" + initialMemory + "M"); + } + if (input.ExtraJvmArguments is { } extras) + { + if (extras.Any(a => a is "-cp" or "-classpath" || a.StartsWith("-javaagent:", StringComparison.Ordinal))) + throw new InvalidDataException("Classpath and Java agents must be configured by the trusted launch pipeline."); + jvm.AddRange(extras); + } + var environment = new Dictionary { ["JAVA_HOME"] = input.Java.JavaHome }; + if (input.TemporaryDirectory is { } temporary) + { + temporary = Path.GetFullPath(temporary); + jvm.RemoveAll(a => a.StartsWith("-Djava.io.tmpdir=", StringComparison.Ordinal)); + jvm.Add("-Djava.io.tmpdir=" + temporary); + environment["TMPDIR"] = environment["TMP"] = environment["TEMP"] = temporary; + } + if (input.Identity.AuthenticationServer is { } server) + { + if (string.IsNullOrWhiteSpace(input.Identity.InjectorPath) || string.IsNullOrWhiteSpace(input.Identity.PrefetchedMetadataBase64)) + throw new InvalidOperationException("Third-party account requires verified authlib-injector and prefetched server metadata."); + jvm.Insert(0, "-javaagent:" + Path.GetFullPath(input.Identity.InjectorPath) + "=" + server.AbsoluteUri.TrimEnd('/')); + jvm.Add("-Dauthlibinjector.side=client"); + jvm.Add("-Dauthlibinjector.yggdrasil.prefetched=" + input.Identity.PrefetchedMetadataBase64); + if (input.Context.OSName == "windows") jvm.Add("-Djavax.net.ssl.trustStoreType=WINDOWS-ROOT"); + } + if (input.Context.OSName != "windows" && jvm.Any(a => a.Contains("WINDOWS-ROOT", StringComparison.Ordinal))) throw new InvalidDataException("Windows truststore configuration entered a non-Windows plan."); + var game = input.Version.Metadata["arguments"]?["game"] is JsonArray modernGame + ? ExpandArguments(modernGame, input.Context).Select(Expand).ToList() + : TokenizeLegacy((string?)input.Version.Metadata["minecraftArguments"] ?? throw new InvalidDataException("Version game arguments are missing.")).Select(Expand).ToList(); + if (input.WindowWidth is { } width && input.WindowHeight is { } height) + { + SetOption("--width", width.ToString(System.Globalization.CultureInfo.InvariantCulture)); + SetOption("--height", height.ToString(System.Globalization.CultureInfo.InvariantCulture)); + } + if (input.Fullscreen && !game.Contains("--fullscreen", StringComparer.Ordinal)) game.Add("--fullscreen"); + void SetOption(string name, string value) + { + var index = game.IndexOf(name); + if (index >= 0 && index + 1 < game.Count) game[index + 1] = value; + else if (index >= 0) throw new InvalidDataException("Incomplete game window argument."); + else { game.Add(name); game.Add(value); } + } + if (input.ExtraGameArguments is { } gameExtras) game.AddRange(GameSettingsPolicy.ValidateGameArguments(gameExtras)); + var argv = jvm.Append(mainClass).Concat(game).ToArray(); + var diagnostics = new List + { + $"Minecraft={input.Version.Id}; JavaMajor={input.Java.MajorVersion}; JavaArch={input.Java.RuntimeArchitecture}; OS={input.Context.OSName}", + $"ClasspathEntries={classpath.Length}; LegacyNativeArchives={resolved.Files.Count(f => f.LegacyNative)}; ArgvCount={argv.Length}", + "Arguments and environment are omitted from this report; account credentials are runtime-only." + }; + if (resolved.CompatibilityProfile is { } profile) diagnostics.Add("MacRuntimeProfile=" + profile); + // Do not copy argv into diagnostics. Extra JVM arguments may contain secrets unknown to identity redaction. + return new(input.Java.ExecutablePath, input.Java.RuntimeArchitecture, Path.GetFullPath(input.GameDirectory), argv, + environment, classpath, + resolved.Files.Select(f => SafePath.Within(input.LibrariesDirectory, f.RelativePath)).ToArray(), input.LegacyExtractions ?? [], diagnostics, MainClassIndex: jvm.Count); + } + private static string RedactArgument(string argument, LaunchIdentity identity) + { + var value = argument; + foreach (var secret in new[] { identity.AccessToken, identity.Uuid, identity.Xuid, identity.ClientId, identity.PlayerName, identity.PrefetchedMetadataBase64 }.Where(s => !string.IsNullOrEmpty(s))) + value = value.Replace(secret!, "", StringComparison.Ordinal); + return value; + } + public static IReadOnlyList ExpandArguments(JsonArray arguments, RuleContext context) + { + var result = new List(); + foreach (var node in arguments) + { + if (node is JsonValue value) result.Add(value.GetValue()); + else if (node is JsonObject conditional && MinecraftRuleEvaluator.Allows(conditional, context)) + { + if (conditional["value"] is JsonArray values) result.AddRange(values.Select(v => v?.GetValue() ?? throw new InvalidDataException("Null argument value."))); + else if (conditional["value"] is JsonValue single) result.Add(single.GetValue()); + else throw new InvalidDataException("Conditional argument has no value."); + } + } + return result; + } + public static IReadOnlyList TokenizeLegacy(string value) + { + // Only the historical metadata format is tokenized; process argv is never joined/split. + var result = new List(); var current = new StringBuilder(); char? quote = null; var started = false; + foreach (var ch in value) + { + if (quote is { } delimiter) { if (ch == delimiter) quote = null; else current.Append(ch); started = true; } + else if (ch is '\'' or '"') { quote = ch; started = true; } + else if (char.IsWhiteSpace(ch)) { if (started) { result.Add(current.ToString()); current.Clear(); started = false; } } + else { current.Append(ch); started = true; } + } + if (quote is not null) throw new InvalidDataException("Unterminated quoted legacy metadata argument."); + if (started) result.Add(current.ToString()); + return result; + } +} diff --git a/src/SHOU.Launcher.Core/Minecraft/LibraryResolver.cs b/src/SHOU.Launcher.Core/Minecraft/LibraryResolver.cs new file mode 100644 index 00000000..b4fd23a2 --- /dev/null +++ b/src/SHOU.Launcher.Core/Minecraft/LibraryResolver.cs @@ -0,0 +1,106 @@ +using System.IO.Compression; +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Minecraft; + +public sealed record LibraryFile(string Name, string RelativePath, Uri Url, string? Sha1, long? Size, + bool LegacyNative = false, IReadOnlyList? Excludes = null, bool Generated = false); +public sealed record LibraryResolution(IReadOnlyList Files, IReadOnlyList ClasspathRelativePaths, string? CompatibilityProfile = null); + +public static class LibraryResolver +{ + public static LibraryResolution Resolve(JsonObject metadata, RuleContext context) + { + var profile = MacRuntimeCompatibility.Resolve(metadata, context); metadata = profile.Metadata; + var files = new List(); + var classpath = new List(); + if (metadata["libraries"] is not JsonArray libraries) throw new InvalidDataException("Version has no library list."); + foreach (var value in libraries) + { + var lib = value as JsonObject ?? throw new InvalidDataException("Invalid library descriptor."); + if (!MinecraftRuleEvaluator.Allows(lib, context)) continue; + var name = (string?)lib["name"] ?? throw new InvalidDataException("Library name missing."); + var downloads = lib["downloads"] as JsonObject; + if (lib["natives"] is JsonObject declaredNatives && declaredNatives[context.OSName] is null + && !(context.OSName == "osx" && name.StartsWith("com.mojang:text2speech:", StringComparison.Ordinal))) + throw new PlatformNotSupportedException($"{name} does not declare native support for {context.OSName}."); + if (downloads?["artifact"] is JsonObject artifact) + { + var file = ParseFile(name, artifact, false); + files.Add(file); classpath.Add(file.RelativePath); + // Modern native JARs are ordinary artifacts and must remain in classpath. + } + else if (downloads is null && lib["natives"] is null) + { + var path = MavenPath(name); + var url = new Uri(((string?)lib["url"] ?? "https://libraries.minecraft.net/").TrimEnd('/') + "/" + path); + files.Add(new(name, path, url, (string?)lib["sha1"], (long?)lib["size"])); classpath.Add(path); + } + if (lib["natives"] is JsonObject natives && (string?)natives[context.OSName] is { } template) + { + var classifier = template.Replace("${arch}", context.JavaArchitecture == RuntimeArchitecture.X86 ? "32" : "64", StringComparison.Ordinal); + if (context.JavaArchitecture == RuntimeArchitecture.Arm64 && !classifier.Contains("arm64", StringComparison.OrdinalIgnoreCase) && !classifier.Contains("aarch64", StringComparison.OrdinalIgnoreCase)) + throw new PlatformNotSupportedException($"Legacy native {name}/{classifier} has no verified ARM64 slice; x64 compatibility is not enabled."); + var native = downloads?["classifiers"]?[classifier] as JsonObject; + if (native is null && downloads is null && (string?)lib["url"] is { } repository) + { + // Legacy Fabric publishes Maven coordinates rather than Mojang's classifiers table. + // The installer still obtains and verifies the repository's SHA-1 before downloading. + var path = MavenPath(name + ":" + classifier); + native = new JsonObject { ["path"] = path, ["url"] = repository.TrimEnd('/') + "/" + path }; + } + if (native is null) throw new PlatformNotSupportedException($"{name} does not provide native classifier {classifier}."); + var excludes = (lib["extract"]?["exclude"] as JsonArray)?.Select(n => n?.GetValue() ?? "").ToArray() ?? []; + files.Add(ParseFile(name + ":" + classifier, native, true) with { Excludes = excludes }); + } + } + return new(files.DistinctBy(f => (f.RelativePath, f.LegacyNative)).ToArray(), classpath.Distinct(StringComparer.Ordinal).ToArray(), profile.Id); + } + private static LibraryFile ParseFile(string name, JsonObject file, bool native) + { + var path = (string?)file["path"] ?? MavenPath(name); + var url = (string?)file["url"] ?? throw new InvalidDataException("Library download URL missing."); + if (!Uri.TryCreate(url, UriKind.Absolute, out var uri) || uri.Scheme is not ("http" or "https")) throw new InvalidDataException("Invalid library URL."); + return new(name, path, uri, (string?)file["sha1"], (long?)file["size"], native, Generated: (bool?)file["shouGenerated"] ?? false); + } + public static string MavenPath(string coordinate) + { + var extensionSplit = coordinate.Split('@', 2); + var p = extensionSplit[0].Split(':'); + if (p.Length is < 3 or > 4 || p.Any(string.IsNullOrWhiteSpace)) throw new InvalidDataException("Invalid Maven coordinate."); + var suffix = p.Length == 4 ? "-" + p[3] : ""; + return p[0].Replace('.', '/') + "/" + p[1] + "/" + p[2] + "/" + p[1] + "-" + p[2] + suffix + "." + (extensionSplit.Length == 2 ? extensionSplit[1] : "jar"); + } + public static async Task> ExtractLegacyNativesAsync(string archivePath, string destination, + IReadOnlyList? excludes = null, CancellationToken ct = default) + { + Directory.CreateDirectory(destination); + using var archive = ZipFile.OpenRead(archivePath); + var extracted = new List(); long total = 0; + foreach (var entry in archive.Entries) + { + ct.ThrowIfCancellationRequested(); + var path = entry.FullName.Replace('\\', '/'); + if ((excludes ?? []).Any(prefix => path.StartsWith(prefix, StringComparison.Ordinal))) continue; + var target = SafePath.Within(destination, path.TrimEnd('/')); + var kind = (entry.ExternalAttributes >> 16) & 0xf000; + if (kind == 0xa000) throw new InvalidDataException("Native archive symbolic links are not accepted."); + if (path.EndsWith('/')) { Directory.CreateDirectory(target); continue; } + total = checked(total + entry.Length); + if (total > 512L * 1024 * 1024) throw new InvalidDataException("Native archive exceeds extraction budget."); + Directory.CreateDirectory(Path.GetDirectoryName(target)!); + await using (var input = entry.Open()) + await using (var output = new FileStream(target, FileMode.Create, FileAccess.Write, FileShare.None, 65536, true)) + await input.CopyToAsync(output, ct).ConfigureAwait(false); + if (!OperatingSystem.IsWindows()) + { + var permissions = (UnixFileMode)((entry.ExternalAttributes >> 16) & 0x1ff); + File.SetUnixFileMode(target, permissions == 0 ? UnixFileMode.UserRead | UnixFileMode.UserWrite | UnixFileMode.GroupRead | UnixFileMode.OtherRead : permissions); + } + extracted.Add(target); + } + return extracted; + } +} diff --git a/src/SHOU.Launcher.Core/Minecraft/MacNativeLibraries.cs b/src/SHOU.Launcher.Core/Minecraft/MacNativeLibraries.cs new file mode 100644 index 00000000..16e38b9e --- /dev/null +++ b/src/SHOU.Launcher.Core/Minecraft/MacNativeLibraries.cs @@ -0,0 +1,64 @@ +using System.Buffers.Binary; +using System.IO.Compression; +using System.Security.Cryptography; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Minecraft; + +public static class MacNativeLibraries +{ + public static IReadOnlySet Architectures(Stream input) + { + Span header = stackalloc byte[8]; input.ReadExactly(header); + var magic = BinaryPrimitives.ReadUInt32BigEndian(header); var result = new HashSet(); + if (magic is 0xfeedface or 0xfeedfacf or 0xcefaedfe or 0xcffaedfe) + { + var cpu = magic is 0xcefaedfe or 0xcffaedfe ? BinaryPrimitives.ReadUInt32LittleEndian(header[4..]) : BinaryPrimitives.ReadUInt32BigEndian(header[4..]); + Add(cpu); return result; + } + if (magic is not (0xcafebabe or 0xbebafeca or 0xcafebabf or 0xbfbafeca)) return result; + var little = magic is 0xbebafeca or 0xbfbafeca; + var count = little ? BinaryPrimitives.ReadUInt32LittleEndian(header[4..]) : BinaryPrimitives.ReadUInt32BigEndian(header[4..]); + if (count is 0 or > 32) throw new InvalidDataException("Mac 原生库的 Universal 架构表无效。"); + var entry = new byte[magic is 0xcafebabf or 0xbfbafeca ? 32 : 20]; + for (var i = 0; i < count; i++) { input.ReadExactly(entry); Add(little ? BinaryPrimitives.ReadUInt32LittleEndian(entry) : BinaryPrimitives.ReadUInt32BigEndian(entry)); } + return result; + void Add(uint cpu) { var value = cpu switch { 0x0100000c => RuntimeArchitecture.Arm64, 0x01000007 => RuntimeArchitecture.X64, 7 => RuntimeArchitecture.X86, _ => RuntimeArchitecture.Unknown }; if (value != RuntimeArchitecture.Unknown) result.Add(value); } + } + public static IReadOnlyList ValidateAndAlias(IReadOnlyList files, RuleContext context) + { + if (context.OSName != "osx") return files; + var result = files.ToList(); + foreach (var path in files) + { + if (Path.GetExtension(path).ToLowerInvariant() is not (".dylib" or ".jnilib")) continue; + SafePath.RejectLinks(path); using (var stream = File.OpenRead(path)) + if (!Architectures(stream).Contains(context.JavaArchitecture)) throw new PlatformNotSupportedException($"Mac 原生库 {Path.GetFileName(path)} 不支持所选 Java 架构 {context.JavaArchitecture};未启动游戏。"); + if (!path.EndsWith(".jnilib", StringComparison.OrdinalIgnoreCase)) continue; + var alias = Path.ChangeExtension(path, ".dylib"); SafePath.RejectLinks(alias); + if (File.Exists(alias)) + { + using var first = File.OpenRead(path); using var second = File.OpenRead(alias); + if (!SHA256.HashData(first).AsSpan().SequenceEqual(SHA256.HashData(second))) throw new InvalidDataException("Mac 原生库别名与原文件不一致。"); + } + else File.Copy(path, alias); + result.Add(alias); + } + return result.Distinct(StringComparer.Ordinal).ToArray(); + } + public static void ValidateMcMouser(string gameDirectory, RuleContext context) + { + if (context.OSName != "osx") return; + var mods = Path.Combine(gameDirectory, "mods"); if (!Directory.Exists(mods)) return; SafePath.RejectLinks(mods); + // Inspect the targeted native override only. Other mod JARs may legitimately contain binaries for many systems. + foreach (var path in Directory.EnumerateFiles(mods, "*.jar").Where(p => Path.GetFileName(p).Contains("mcmouser", StringComparison.OrdinalIgnoreCase)).Take(16)) + { + SafePath.RejectLinks(path); using var archive = ZipFile.OpenRead(path); + if (archive.GetEntry("mcmouser/natives/liblwjgl.dylib") is not { } entry) continue; + using var input = entry.Open(); + if (!Architectures(input).Contains(context.JavaArchitecture)) + throw new PlatformNotSupportedException($"McMouser 自带原生库不支持 Java {context.JavaArchitecture};请使用匹配的 Mac 版本,未修改模组或切换架构。"); + } + } +} diff --git a/src/SHOU.Launcher.Core/Minecraft/MacRuntimeCompatibility.cs b/src/SHOU.Launcher.Core/Minecraft/MacRuntimeCompatibility.cs new file mode 100644 index 00000000..83571332 --- /dev/null +++ b/src/SHOU.Launcher.Core/Minecraft/MacRuntimeCompatibility.cs @@ -0,0 +1,63 @@ +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Minecraft; + +public sealed record RuntimeLibraryProfile(JsonObject Metadata, string? Id); + +/// Launcher-owned macOS rules applied after loader merge. Original metadata and other platforms are untouched. +public static class MacRuntimeCompatibility +{ + public const string Revision = "macos-arm64-runtime-r35-v1"; + // Artifact identities verified against Prism meta 9cac2ca1cf410146d3a04fbd33752820fefdd70e and the publishers. + private static readonly HashSet LegacyVersions = ["2.9.1", "2.9.1-nightly-20130708-debug3", "2.9.1-nightly-20131017", "2.9.1-nightly-20131120", "2.9.2-nightly-20140822", "2.9.3", "2.9.4-nightly-20150209"]; + public static bool UsesLwjgl2(JsonObject metadata, RuleContext context) => (metadata["libraries"] as JsonArray)?.OfType() + .Any(l => ((string?)l["name"])?.StartsWith("org.lwjgl.lwjgl:lwjgl:", StringComparison.Ordinal) == true && MinecraftRuleEvaluator.Allows(l, context)) == true; + + public static RuntimeLibraryProfile Resolve(JsonObject metadata, RuleContext context) + { + if (context.OSName != "osx" || context.JavaArchitecture != RuntimeArchitecture.Arm64 || metadata["libraries"] is not JsonArray libraries) + return new(metadata, null); + var replacements = new JsonArray(); var changed = false; + foreach (var node in libraries) + { + if (node is not JsonObject library || !MinecraftRuleEvaluator.Allows(library, context)) { replacements.Add(node?.DeepClone()); continue; } + var coordinate = (string?)library["name"] ?? ""; var parts = coordinate.Split(':'); JsonObject? replacement = null; + if (parts.Length == 3 && parts[0] == "org.lwjgl.lwjgl" && LegacyVersions.Contains(parts[2])) + { + if (parts[1] == "lwjgl") replacement = Artifact("org.lwjgl.lwjgl:lwjgl:2.9.4-nightly-20150209", "697517568c68e78ae0b4544145af031c81082dfe", 1047168); + else if (parts[1] == "lwjgl_util") replacement = Artifact("org.lwjgl.lwjgl:lwjgl_util:2.9.4-nightly-20150209", "d51a7c040a721d13efdfbd34f8b257b2df882ad0", 173887); + else if (parts[1] == "lwjgl-platform") replacement = Native("org.lwjgl.lwjgl:lwjgl-platform:2.9.4-nightly-20150209", "eff546c0b319d6ffc7a835652124c18089c67f36", 488316, + "https://github.com/MinecraftMachina/lwjgl/releases/download/2.9.4-20150209-mmachina.2/lwjgl-platform-2.9.4-nightly-20150209-natives-osx.jar"); + } + else if (coordinate == "net.java.jinput:jinput-platform:2.0.5") replacement = Native(coordinate, "5189eb40db3087fb11ca063b68fa4f4c20b199dd", 10031, + "https://raw.githubusercontent.com/r58Playz/jinput-m1/8b2c3a10b4853923efc92f29cbad8e0f304dbd6d/plugins/OSX/bin/jinput-platform-2.0.5.jar"); + else if (coordinate == "ca.weblite:java-objc-bridge:1.0.0") replacement = Artifact("ca.weblite:java-objc-bridge:1.1.0-mmachina.1", "369a83621e3c65496348491e533cb97fe5f2f37d", 91947, + "https://github.com/MinecraftMachina/Java-Objective-C-Bridge/releases/download/1.1.0-mmachina.1/java-objc-bridge-1.1.jar"); + else if (parts.Length == 3 && parts[0] == "com.mojang" && parts[1] == "text2speech" && parts[2] is "1.0.10" or "1.5" or "1.6" or "1.7" or "1.10.1" or "1.10.3" or "1.11.2") + replacement = Artifact("com.mojang:text2speech:1.11.3", "f378f889797edd7df8d32272c06ca80a1b6b0f58", 13164); + else if (parts.Length == 3 && parts[0] == "net.java.dev.jna" && parts[2] is "3.4.0" or "4.4.0" or "5.6.0" or "5.8.0" or "5.9.0" or "5.10.0" or "5.12.1") + { + if (parts[1] == "jna") replacement = Artifact("net.java.dev.jna:jna:5.13.0", "1200e7ebeedbe0d10062093f32925a912020e747", 1879325); + else if (parts[1] is "platform" or "jna-platform") replacement = Artifact("net.java.dev.jna:jna-platform:5.13.0", "88e9a306715e9379f3122415ef4ae759a352640d", 1363209); + } + changed |= replacement is not null; replacements.Add(replacement ?? library.DeepClone()); + } + if (!changed) return new(metadata, null); + var patched = (JsonObject)metadata.DeepClone(); patched["libraries"] = replacements; + return new(patched, Revision); + } + private static JsonObject Artifact(string name, string sha1, long size, string? url = null) + { + var path = LibraryResolver.MavenPath(name); + return new() { ["name"] = name, ["downloads"] = new JsonObject { ["artifact"] = Descriptor(path, url ?? "https://libraries.minecraft.net/" + path, sha1, size) } }; + } + private static JsonObject Native(string name, string sha1, long size, string url) + { + const string classifier = "natives-osx-arm64"; + return new() { ["name"] = name, ["natives"] = new JsonObject { ["osx"] = classifier }, + ["extract"] = new JsonObject { ["exclude"] = new JsonArray("META-INF/") }, + ["downloads"] = new JsonObject { ["classifiers"] = new JsonObject { [classifier] = Descriptor(LibraryResolver.MavenPath(name + ":" + classifier), url, sha1, size) } } }; + } + private static JsonObject Descriptor(string path, string url, string sha1, long size) => new() { ["path"] = path, ["url"] = url, ["sha1"] = sha1, ["size"] = size }; +} diff --git a/src/SHOU.Launcher.Core/Minecraft/MinecraftInstaller.cs b/src/SHOU.Launcher.Core/Minecraft/MinecraftInstaller.cs new file mode 100644 index 00000000..1a097a7c --- /dev/null +++ b/src/SHOU.Launcher.Core/Minecraft/MinecraftInstaller.cs @@ -0,0 +1,112 @@ +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using System.Text.Json.Nodes; +using PCL.Core.Conduit; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Minecraft; + +public sealed record InstalledGame(ResolvedVersion Version, LibraryResolution Libraries, AssetIndex Assets, + string ClientJar, string LibrariesDirectory, string AssetsDirectory, string NativesDirectory, + IReadOnlyList LegacyExtractions); + +public sealed class MinecraftInstaller(IVerifiedDownloader downloader, string cacheDirectory, + Func> sources, Func? maximumConnections = null) +{ + public async Task InstallAsync(ResolvedVersion version, RuleContext context, string gameDirectory, + IProgress? progress = null, CancellationToken ct = default, string? nativeSession = null, bool preserveGameData = false, IProgress? phases = null, + ExternalInstanceOrigin? existingOrigin = null) + { + Directory.CreateDirectory(gameDirectory); + var metadata = version.Metadata; + var client = metadata["downloads"]?["client"] as JsonObject; + var clientId = (string?)metadata["jar"] ?? version.InheritanceChain.FirstOrDefault() ?? version.Id; + var clientPath = SafePath.Within(cacheDirectory, $"versions/{SafePath.Identifier(clientId)}/{clientId}.jar"); + phases?.Report(new("检查游戏客户端", 0, 1)); + if (metadata["shouLocalClient"] is JsonObject localClient) + { + if (!clientId.StartsWith("shou-import-", StringComparison.Ordinal) || + !await Content.ContentInstallFiles.MatchesAsync(clientPath, (string?)localClient["sha1"] ?? "", (long?)localClient["size"] ?? -1, ct)) + throw new InvalidDataException("导入整合包的本地客户端缺失或已改变,请重新导入。"); + } + else await FetchDescriptorAsync(client ?? throw new InvalidDataException("Version has no downloadable client."), clientPath, progress, ct, + existingOrigin is null ? null : ClientSources(existingOrigin, version)).ConfigureAwait(false); + var librariesDirectory = Path.Combine(cacheDirectory, "libraries"); + var libraries = LibraryResolver.Resolve(metadata, context); + var completedLibraries = 0; phases?.Report(new("检查依赖库", 0, libraries.Files.Count)); + await Parallel.ForEachAsync(libraries.Files, new ParallelOptions { MaxDegreeOfParallelism = Math.Clamp(maximumConnections?.Invoke() ?? DownloadDefaults.Connections, 1, DownloadDefaults.MaximumConnections), CancellationToken = ct }, async (file, token) => + { + var path = SafePath.Within(librariesDirectory, file.RelativePath); + var sha1 = string.IsNullOrWhiteSpace(file.Sha1) ? null : file.Sha1; + if (file.Generated) + { + if (sha1?.Length != 40 || !File.Exists(path)) throw new InvalidDataException("加载器生成库缺失,请重新安装加载器。"); + await using var local = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read, 65536, true); + if (!string.Equals(Convert.ToHexStringLower(await SHA1.HashDataAsync(local, token)), sha1, StringComparison.OrdinalIgnoreCase)) + throw new InvalidDataException("加载器生成库已变化,请重新安装加载器。"); + phases?.Report(new("检查依赖库", Interlocked.Increment(ref completedLibraries), libraries.Files.Count, file.RelativePath)); + return; + } + await downloader.DownloadAsync(new(Map(file.Url), path, sha1, Size: file.Size, + LocalSources: ExistingSources(existingOrigin, "libraries/" + file.RelativePath)) { ReuseWithoutHash = string.IsNullOrWhiteSpace(sha1) }, progress, token).ConfigureAwait(false); + phases?.Report(new("检查依赖库", Interlocked.Increment(ref completedLibraries), libraries.Files.Count, file.RelativePath)); + }).ConfigureAwait(false); + var assetsDirectory = Path.Combine(cacheDirectory, "assets"); + var indexDescriptor = metadata["assetIndex"] as JsonObject ?? throw new InvalidDataException("Version has no asset index descriptor."); + var indexId = (string?)indexDescriptor["id"] ?? throw new InvalidDataException("Asset index ID missing."); + var indexPath = SafePath.Within(assetsDirectory, $"indexes/{SafePath.Identifier(indexId)}.json"); + await FetchDescriptorAsync(indexDescriptor, indexPath, progress, ct, ExistingSources(existingOrigin, $"assets/indexes/{SafePath.Identifier(indexId)}.json")).ConfigureAwait(false); + var assets = AssetResolver.Parse(indexId, await File.ReadAllTextAsync(indexPath, ct).ConfigureAwait(false)); + var objects = assets.Objects.DistinctBy(a => a.Hash).ToArray(); var completedAssets = 0; + phases?.Report(new("检查游戏资源", 0, objects.Length)); + await Parallel.ForEachAsync(objects, new ParallelOptions { MaxDegreeOfParallelism = Math.Clamp(maximumConnections?.Invoke() ?? DownloadDefaults.Connections, 1, DownloadDefaults.MaximumConnections), CancellationToken = ct }, async (asset, token) => + { + await downloader.DownloadAsync(new(Map(asset.OfficialUri), SafePath.Within(assetsDirectory, asset.RelativePath), asset.Hash, Size: asset.Size, + LocalSources: ExistingSources(existingOrigin, "assets/" + asset.RelativePath)), progress, token).ConfigureAwait(false); + phases?.Report(new("检查游戏资源", Interlocked.Increment(ref completedAssets), objects.Length, asset.Hash)); + }).ConfigureAwait(false); + if (!preserveGameData) AssetResolver.MaterializeLegacyLayout(assets, assetsDirectory, gameDirectory); + var fingerprint = Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(metadata.ToJsonString() + (libraries.CompatibilityProfile is null ? "" : "\n" + libraries.CompatibilityProfile))))[..16].ToLowerInvariant(); + var nativesDirectory = SafePath.Within(gameDirectory, $".shou/natives/{SafePath.Identifier(version.Id)}/{context.OSName}/{context.JavaArchitecture}/{fingerprint}"); + if (nativeSession is not null) nativesDirectory = SafePath.Within(nativesDirectory, SafePath.Identifier(nativeSession)); + Directory.CreateDirectory(nativesDirectory); + phases?.Report(new("解包原生库", 0, 0)); + var extracted = new List(); + foreach (var native in libraries.Files.Where(f => f.LegacyNative)) + extracted.AddRange(await LibraryResolver.ExtractLegacyNativesAsync(SafePath.Within(librariesDirectory, native.RelativePath), nativesDirectory, native.Excludes, ct).ConfigureAwait(false)); + // A completion marker is written only after every verified download and native extraction succeeds. + if (libraries.CompatibilityProfile is not null && context.OSName == "osx") + extracted = MacNativeLibraries.ValidateAndAlias(extracted, context).ToList(); + if (!preserveGameData) + { + phases?.Report(new("写入安装完成清单", 0, 0)); + var marker = SafePath.Within(gameDirectory, ".shou/install.json"); + await File.WriteAllTextAsync(marker + ".tmp", JsonSerializer.Serialize(new { version = version.Id, javaMajor = version.RequiredJavaMajor, + os = context.OSName, javaArchitecture = context.JavaArchitecture.ToString(), metadataFingerprint = fingerprint, + libraries = libraries.Files.Count, assets = assets.Objects.Count, completedAt = DateTimeOffset.UtcNow }), ct).ConfigureAwait(false); + File.Move(marker + ".tmp", marker, true); + } + return new(version, libraries, assets, clientPath, librariesDirectory, assetsDirectory, nativesDirectory, extracted); + } + private IReadOnlyList Map(Uri uri) => DownloadSources.Resolve([uri.AbsoluteUri], sources()).Select(s => new Uri(s.Url)).ToArray(); + private static IReadOnlyList? ExistingSources(ExternalInstanceOrigin? origin, string relative) + => origin is null ? null : [new(origin.MinecraftRoot, relative)]; + private static IReadOnlyList ClientSources(ExternalInstanceOrigin origin, ResolvedVersion version) + { + var sources = new List { new(origin.VersionDirectory, origin.OriginalVersionId + ".jar") }; + foreach (var id in version.InheritanceChain.Distinct(StringComparer.Ordinal)) + if (id.Length is > 0 and <= 180 && id is not ("." or "..") && id.IndexOfAny(['/', '\\', ':']) < 0) + sources.Add(new(origin.MinecraftRoot, $"versions/{id}/{id}.jar")); + return sources; + } + private Task FetchDescriptorAsync(JsonObject file, string destination, IProgress? progress, CancellationToken ct, + IReadOnlyList? localSources = null) + { + var url = (string?)file["url"] ?? throw new InvalidDataException("Download descriptor URL missing."); + var sha1 = (string?)file["sha1"] ?? throw new InvalidDataException("Download descriptor checksum missing."); + return downloader.DownloadAsync(new(Map(new Uri(url)), destination, sha1, Size: (long?)file["size"], LocalSources: localSources), progress, ct); + } +} diff --git a/src/SHOU.Launcher.Core/Minecraft/MinecraftPackages.cs b/src/SHOU.Launcher.Core/Minecraft/MinecraftPackages.cs new file mode 100644 index 00000000..a3932720 --- /dev/null +++ b/src/SHOU.Launcher.Core/Minecraft/MinecraftPackages.cs @@ -0,0 +1,28 @@ +using System.Text.Json.Nodes; +using PCL.Core.Conduit; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Minecraft; + +public static class MinecraftPackages +{ + public static IReadOnlyList<(MinecraftPackage File, Uri Source)> Read(string version, JsonObject metadata) + { + IO.SafePath.Identifier(version); + var result = new List<(MinecraftPackage, Uri)>(); + foreach (var kind in new[] { "client", "server" }) + { + if (metadata["downloads"]?[kind] is not JsonObject entry) continue; + var sha1 = (string?)entry["sha1"]; + var size = (long?)entry["size"]; + if (sha1 is null || sha1.Length != 40 || !sha1.All(Uri.IsHexDigit) || size is null or <= 0 or > 2147483648 + || !Uri.TryCreate((string?)entry["url"], UriKind.Absolute, out var uri) || !Trusted(uri)) + throw new InvalidDataException("Minecraft 文件来源或校验信息无效。"); + result.Add((new(kind, $"minecraft-{version}-{kind}.jar", size.Value, sha1.ToLowerInvariant()), uri)); + } + return result; + } + public static bool Trusted(Uri uri) => uri.Scheme == "https" && uri.IsDefaultPort && string.IsNullOrEmpty(uri.UserInfo) + && string.IsNullOrEmpty(uri.Query) && string.IsNullOrEmpty(uri.Fragment) + && uri.Host is "piston-data.mojang.com" or "launcher.mojang.com" or "resources.download.minecraft.net"; +} diff --git a/src/SHOU.Launcher.Core/Minecraft/MinecraftRuleEvaluator.cs b/src/SHOU.Launcher.Core/Minecraft/MinecraftRuleEvaluator.cs new file mode 100644 index 00000000..030a8b50 --- /dev/null +++ b/src/SHOU.Launcher.Core/Minecraft/MinecraftRuleEvaluator.cs @@ -0,0 +1,52 @@ +using System.Text.Json.Nodes; +using System.Text.RegularExpressions; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Minecraft; + +public sealed record RuleContext(string OSName, string OSVersion, RuntimeArchitecture JavaArchitecture, + IReadOnlyDictionary? Features = null) +{ + public string ClasspathSeparator => OSName == "windows" ? ";" : ":"; + public string ArchitectureName => JavaArchitecture switch { RuntimeArchitecture.Arm64 => "aarch64", RuntimeArchitecture.X64 => "x86_64", RuntimeArchitecture.X86 => "x86", _ => "unknown" }; +} +public static class MinecraftRuleEvaluator +{ + public static bool Allows(JsonObject item, RuleContext context) + { + if (!item.TryGetPropertyValue("rules", out var node)) return true; + if (node is not JsonArray rules) throw new InvalidDataException("rules must be an array."); + var allowed = false; + foreach (var ruleNode in rules) + { + if (ruleNode is not JsonObject rule) throw new InvalidDataException("Invalid rule."); + if (!Matches(rule, context)) continue; + allowed = (string?)rule["action"] switch { "allow" => true, "disallow" => false, _ => throw new InvalidDataException("Unknown rule action.") }; + } + return allowed; + } + private static bool Matches(JsonObject rule, RuleContext context) + { + if (rule["os"] is JsonObject os) + { + if ((string?)os["name"] is { } name && name != context.OSName) return false; + if ((string?)os["arch"] is { } arch && !ArchMatches(arch, context.JavaArchitecture)) return false; + if ((string?)os["version"] is { } version && !Regex.IsMatch(context.OSVersion, version, RegexOptions.CultureInvariant, TimeSpan.FromSeconds(1))) return false; + } + if (rule["features"] is JsonObject features) + foreach (var pair in features) + { + if (pair.Value is not JsonValue value || !value.TryGetValue(out var expected)) throw new InvalidDataException("Feature rule is not boolean."); + var actual = context.Features?.GetValueOrDefault(pair.Key) ?? false; + if (actual != expected) return false; + } + return true; + } + public static bool ArchMatches(string arch, RuntimeArchitecture value) => arch.ToLowerInvariant() switch + { + "aarch64" or "arm64" => value == RuntimeArchitecture.Arm64, + "x86_64" or "amd64" or "x64" => value == RuntimeArchitecture.X64, + "x86" or "i386" or "i686" => value == RuntimeArchitecture.X86, + _ => Regex.IsMatch(value switch { RuntimeArchitecture.Arm64 => "aarch64", RuntimeArchitecture.X64 => "x86_64", RuntimeArchitecture.X86 => "x86", _ => "unknown" }, arch, RegexOptions.CultureInvariant, TimeSpan.FromSeconds(1)) + }; +} diff --git a/src/SHOU.Launcher.Core/Minecraft/ProtectedJavaLaunch.cs b/src/SHOU.Launcher.Core/Minecraft/ProtectedJavaLaunch.cs new file mode 100644 index 00000000..a914216b --- /dev/null +++ b/src/SHOU.Launcher.Core/Minecraft/ProtectedJavaLaunch.cs @@ -0,0 +1,51 @@ +using System.Security.Cryptography; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Java; + +namespace SHOU.Launcher.Core.Minecraft; + +/// Moves target main/game arguments out of OS argv and HotSpot's java_command. +public sealed class ProtectedJavaLaunch : IDisposable +{ + public const string BootstrapClass = "org.shou.launcher.bootstrap.BootstrapMain"; + public LaunchPlan Plan { get; } + public SensitiveProcessInput Input { get; } + private ProtectedJavaLaunch(LaunchPlan plan, SensitiveProcessInput input) { Plan = plan; Input = input; } + public static ProtectedJavaLaunch Prepare(LaunchPlan original, JavaBootstrapArtifact artifact, char classpathSeparator, string? accessToken = null) + { + if (!Path.IsPathFullyQualified(artifact.JarPath) || artifact.Sha256.Length != 64 || artifact.Sha256.Any(c => !Uri.IsHexDigit(c))) + throw new InvalidDataException("Java bootstrap identity is invalid."); + using (var stream = File.OpenRead(artifact.JarPath)) + if (!Convert.ToHexStringLower(SHA256.HashData(stream)).Equals(artifact.Sha256, StringComparison.OrdinalIgnoreCase)) + throw new InvalidDataException("Trusted Java bootstrap checksum mismatch; private launch is refused."); + if (original.MainClassIndex < 0 || original.MainClassIndex >= original.Arguments.Count) + throw new InvalidDataException("Launch plan has no explicit Java/game argument boundary."); + var jvm = original.Arguments.Take(original.MainClassIndex).ToList(); + if (jvm.Any(value => value.StartsWith("--class-path=", StringComparison.Ordinal) + || value.StartsWith("-Djava.class.path=", StringComparison.Ordinal) + || value.StartsWith("-Djava.system.class.loader=", StringComparison.Ordinal) + || value.StartsWith("-Xbootclasspath", StringComparison.Ordinal) + || value.StartsWith('@') || value is "-jar" or "-m" or "--module" || value.StartsWith("--module=", StringComparison.Ordinal))) + throw new InvalidDataException("JVM classpath or entry-point overrides cannot replace the trusted Java bootstrap."); + if (accessToken is { Length: > 1 } && jvm.Any(value => value.Contains(accessToken, StringComparison.Ordinal))) + throw new InvalidDataException("A credential entered public JVM options; private launch is refused."); + var classpaths = jvm.Select((value, index) => (value, index)).Where(p => p.value is "-cp" or "-classpath" or "--class-path").ToArray(); + if (classpaths.Length != 1 || classpaths[0].index + 1 >= jvm.Count) + throw new InvalidDataException("Trusted Java bootstrap requires one explicit classpath argument."); + var entries = new[] { artifact.JarPath }.Concat(original.ClasspathEntries.Where(path => !path.Equals(artifact.JarPath, StringComparison.Ordinal))).ToArray(); + jvm[classpaths[0].index + 1] = string.Join(classpathSeparator, entries); + jvm.Add(BootstrapClass); + var environment = new Dictionary(original.EnvironmentOverrides); + foreach (var name in new[] { "JDK_JAVA_OPTIONS", "JAVA_TOOL_OPTIONS", "_JAVA_OPTIONS" }) environment[name] = null; + foreach (System.Collections.DictionaryEntry pair in Environment.GetEnvironmentVariables()) + if (pair.Key is string name && name.StartsWith("PCL_", StringComparison.Ordinal)) environment[name] = null; + using var payload = JavaBootstrapPayload.Create(original.Arguments[original.MainClassIndex], original.Arguments.Skip(original.MainClassIndex + 1).ToArray()); + var input = SensitiveProcessInput.CopyFrom(payload.Bytes.Span); + var plan = original with { Arguments = jvm, EnvironmentOverrides = environment, ClasspathEntries = entries, + ResolvedLibraries = original.ResolvedLibraries.Append(artifact.JarPath).ToArray(), MainClassIndex = jvm.Count - 1, + BootstrapSha256 = artifact.Sha256.ToLowerInvariant(), + RedactedDiagnostics = original.RedactedDiagnostics.Append("Target main and game arguments use one-shot private stdin; no plaintext argument file or raw-argv fallback.").ToArray() }; + return new(plan, input); + } + public void Dispose() => Input.Dispose(); +} diff --git a/src/SHOU.Launcher.Core/Minecraft/ServerLaunchPolicy.cs b/src/SHOU.Launcher.Core/Minecraft/ServerLaunchPolicy.cs new file mode 100644 index 00000000..da1fb490 --- /dev/null +++ b/src/SHOU.Launcher.Core/Minecraft/ServerLaunchPolicy.cs @@ -0,0 +1,38 @@ +using System.Text.Json.Nodes; + +namespace SHOU.Launcher.Core.Minecraft; + +public sealed record MinecraftServerEndpoint(string Host, int Port, string Address); +public static class ServerLaunchPolicy +{ + public static MinecraftServerEndpoint Parse(string address) + { + address = address.Trim(); + if (address.Length is < 1 or > 255 || address.Any(char.IsWhiteSpace) || address.Any(char.IsControl) + || address.IndexOfAny(['/', '\\', '@', '?', '#']) >= 0 || address.Count(c => c == ':') > 1 && !address.StartsWith('[') + || !Uri.TryCreate("minecraft://" + address, UriKind.Absolute, out var uri) + || uri.HostNameType is not (UriHostNameType.Dns or UriHostNameType.IPv4 or UriHostNameType.IPv6)) + throw new ArgumentException("服务器地址无效;请填写主机名或 IP,可附加端口。IPv6 请使用方括号。"); + var port = uri.Port < 0 ? 25565 : uri.Port; + if (port is < 1 or > 65535) throw new ArgumentException("服务器端口须为 1–65535。"); + var host = uri.IdnHost.Trim('[', ']'); + var visibleHost = uri.HostNameType == UriHostNameType.IPv6 ? "[" + host + "]" : host; + return new(host, port, visibleHost + (port == 25565 ? "" : ":" + port)); + } + public static bool SupportsQuickPlay(JsonObject metadata) + => metadata["arguments"]?["game"] is JsonArray args && args.ToJsonString().Contains("${quickPlayMultiplayer}", StringComparison.Ordinal); + + public static LaunchInputs Configure(LaunchInputs input) + { + if (input.ServerAddress is null) return input; + var endpoint = Parse(input.ServerAddress); + if (input.ExtraGameArguments?.Any(a => new[] { "--server", "--port", "--quickPlayMultiplayer", "--quickPlaySingleplayer", "--quickPlayRealms" }.Any(flag => a == flag || a.StartsWith(flag + "=", StringComparison.Ordinal))) == true) + throw new ArgumentException("已选择快捷进服,请先清空高级游戏参数中的其它服务器或世界目标。"); + var features = new Dictionary(input.Context.Features ?? new Dictionary()) + { ["is_quick_play_multiplayer"] = SupportsQuickPlay(input.Version.Metadata), ["is_quick_play_singleplayer"] = false, + ["is_quick_play_realms"] = false, ["has_quick_plays_support"] = SupportsQuickPlay(input.Version.Metadata) }; + var extras = input.ExtraGameArguments?.ToList() ?? []; + if (!SupportsQuickPlay(input.Version.Metadata)) { extras.AddRange(["--server", endpoint.Host, "--port", endpoint.Port.ToString(System.Globalization.CultureInfo.InvariantCulture)]); } + return input with { ServerAddress = endpoint.Address, Context = input.Context with { Features = features }, ExtraGameArguments = extras }; + } +} diff --git a/src/SHOU.Launcher.Core/Minecraft/VersionMetadataResolver.cs b/src/SHOU.Launcher.Core/Minecraft/VersionMetadataResolver.cs new file mode 100644 index 00000000..4d9457f9 --- /dev/null +++ b/src/SHOU.Launcher.Core/Minecraft/VersionMetadataResolver.cs @@ -0,0 +1,128 @@ +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.IO; +using PCL.Core.Conduit; + +namespace SHOU.Launcher.Core.Minecraft; + +public sealed record ResolvedVersion(string Id, JsonObject Metadata, string MetadataPath, IReadOnlyList InheritanceChain) +{ + public int RequiredJavaMajor => (int?)Metadata["javaVersion"]?["majorVersion"] ?? 8; + public string JavaComponent => (string?)Metadata["javaVersion"]?["component"] ?? "jre-legacy"; +} + +public sealed class VersionMetadataResolver(HttpClient http, IVerifiedDownloader downloader, string cacheDirectory, + Func> sources) +{ + public async Task ResolveAsync(string id, CancellationToken ct = default) + { + var stack = new HashSet(StringComparer.Ordinal); + var chain = new List(); + async Task Visit(string versionId) + { + SafePath.Identifier(versionId); + if (!stack.Add(versionId)) throw new InvalidDataException("Version inheritance cycle: " + string.Join(" -> ", stack.Append(versionId))); + if (stack.Count > 24) throw new InvalidDataException("Version inheritance is too deep."); + var metadata = await LoadAsync(versionId, ct).ConfigureAwait(false); + if ((string?)metadata["inheritsFrom"] is { } parent) + metadata = Merge(await Visit(parent).ConfigureAwait(false), metadata); + stack.Remove(versionId); + chain.Add(versionId); + return metadata; + } + var merged = await Visit(id).ConfigureAwait(false); + return new(id, merged, SafePath.Within(cacheDirectory, $"versions/{id}/{id}.json"), chain); + } + public async Task LoadAsync(string id, CancellationToken ct = default) + { + var path = SafePath.Within(cacheDirectory, $"versions/{SafePath.Identifier(id)}/{id}.json"); + if (File.Exists(path)) + { + try { return ParseVersion(await File.ReadAllTextAsync(path, ct).ConfigureAwait(false), id); } + catch (Exception ex) when (ex is System.Text.Json.JsonException or InvalidDataException) { throw new InvalidDataException("Cached version metadata is corrupt; reinstall explicitly.", ex); } + } + var manifestSources = DownloadSources.Resolve([DownloadSources.ManifestUrl], sources()); + var errors = new List(); + foreach (var source in manifestSources) + { + ct.ThrowIfCancellationRequested(); + try + { + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); + timeout.CancelAfter(TimeSpan.FromSeconds(25)); + var manifest = DownloadSources.ValidateManifest(await http.GetStringAsync(source.Url, timeout.Token).ConfigureAwait(false), id); + var entry = manifest["versions"]!.AsArray().First(n => (string?)n?["id"] == id)!; + var url = (string?)entry["url"] ?? throw new InvalidDataException("Version URL missing."); + var hashes = (string?)entry["sha1"]; + var candidates = DownloadSources.Resolve([url], sources()).Select(a => new Uri(a.Url)).ToArray(); + // A curated mirror's rewritten metadata must use its own declared hash, never Mojang's guessed hash. + var request = new DownloadRequest(candidates, path, Sha1: hashes, AllowResume: hashes is not null); + if (hashes is null) + { + // Small unhashed catalogs remain data-only; validate before installing the cache file. + var text = await http.GetStringAsync(url, timeout.Token).ConfigureAwait(false); + var parsed = ParseVersion(text, id); + Directory.CreateDirectory(Path.GetDirectoryName(path)!); + await File.WriteAllTextAsync(path + ".tmp", text, ct).ConfigureAwait(false); + File.Move(path + ".tmp", path, true); + return parsed; + } + await downloader.DownloadAsync(request, cancellationToken: ct).ConfigureAwait(false); + return ParseVersion(await File.ReadAllTextAsync(path, ct).ConfigureAwait(false), id); + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception ex) when (ex is HttpRequestException or IOException or InvalidDataException or AggregateException or KeyNotFoundException or OperationCanceledException or System.Text.Json.JsonException or FormatException) + { errors.Add(new IOException($"Metadata source {source.Name}: {ex.GetType().Name}")); } + } + throw new AggregateException($"No metadata source can provide {id}.", errors); + } + public static JsonObject ParseVersion(string json, string expectedId) + { + var node = JsonNode.Parse(json) as JsonObject ?? throw new InvalidDataException("Version metadata is not an object."); + if ((string?)node["id"] != expectedId) throw new InvalidDataException("Version metadata ID mismatch."); + if (node["inheritsFrom"] is null && node["mainClass"] is null) throw new InvalidDataException("Version metadata has no main class or parent."); + return node; + } + public static JsonObject Merge(JsonObject parent, JsonObject child) + { + var result = (JsonObject)parent.DeepClone(); + foreach (var pair in child) + { + if (pair.Key == "inheritsFrom") continue; + if (pair.Key == "libraries" && pair.Value is JsonArray libraries) + { + var combined = new JsonArray(); + var childKeys = libraries.Select(n => LibraryKey((string?)n?["name"] ?? "")).ToHashSet(StringComparer.Ordinal); + if (parent["libraries"] is JsonArray parents) + foreach (var lib in parents.Where(n => !childKeys.Contains(LibraryKey((string?)n?["name"] ?? "")))) combined.Add(lib?.DeepClone()); + foreach (var lib in libraries) combined.Add(lib?.DeepClone()); + result[pair.Key] = combined; + } + else if (pair.Key == "arguments" && pair.Value is JsonObject arguments) + { + var combined = parent["arguments"]?.DeepClone() as JsonObject ?? new JsonObject(); + foreach (var argument in arguments) + { + var values = combined[argument.Key] as JsonArray ?? new JsonArray(); + if (argument.Value is JsonArray additions) foreach (var value in additions) values.Add(value?.DeepClone()); + combined[argument.Key] = values; + } + result[pair.Key] = combined; + } + else if (pair.Value is JsonObject obj && result[pair.Key] is JsonObject old) + { + var merged = (JsonObject)old.DeepClone(); + foreach (var value in obj) merged[value.Key] = value.Value?.DeepClone(); + result[pair.Key] = merged; + } + else result[pair.Key] = pair.Value?.DeepClone(); + } + return result; + } + private static string LibraryKey(string name) + { + var parts = name.Split(':'); + return parts.Length >= 3 ? parts[0] + ":" + parts[1] + ":" + string.Join(":", parts.Skip(3)) : name; + } +} diff --git a/src/SHOU.Launcher.Core/Resources/README.md b/src/SHOU.Launcher.Core/Resources/README.md new file mode 100644 index 00000000..7aa4b73c --- /dev/null +++ b/src/SHOU.Launcher.Core/Resources/README.md @@ -0,0 +1,9 @@ +`mcmod-index.json` is a read-only format conversion of the repository's existing WPF +`Plain Craft Launcher 2/Resources/mcmod.buf`. It preserves the 25,146 wiki IDs, +Chinese names and provider slugs; no new online database is scraped. Existing +project/data attribution continues to apply. + +Source SHA-256: `1cc190effba8922d556bfadc61d62e76b80d48439e4945b862760bfdd3a07b4c`. +Reproduce with `python3 scripts/conduit/Extract-McmodIndex.py`. +The desktop uses a provider-specific exact slug match for mod/datapack wiki links; +unknown projects never receive an invented wiki ID. diff --git a/src/SHOU.Launcher.Core/Resources/crash-messages.json b/src/SHOU.Launcher.Core/Resources/crash-messages.json new file mode 100644 index 00000000..a9ba3a1d --- /dev/null +++ b/src/SHOU.Launcher.Core/Resources/crash-messages.json @@ -0,0 +1,449 @@ +{ + "zh-CN": { + "Crash.Analysis.Error.Failed": "崩溃分析失败。请查看错误详情。", + "Crash.Dialog.Button.ExportReport": "导出错误报告", + "Crash.Dialog.Button.GoToModify": "前往修改", + "Crash.Dialog.Button.OpenLog": "查看日志", + "Crash.Dialog.Title.Auto": "Minecraft 出现错误", + "Crash.Dialog.Title.Manual": "错误报告分析结果", + "Crash.Export.Failed.CopyDetails": "复制详细信息", + "Crash.Export.Failed.Message": "无法导出错误报告。\n\n目标路径:{0}", + "Crash.Export.Failed.MessageWithoutPath": "无法导出错误报告,且未能获取目标路径。", + "Crash.Export.Failed.Title": "导出错误报告失败", + "Crash.Presentation.ListItem": " - {0}", + "Crash.Presentation.ReasonOnly": "原因\n{0}", + "Crash.Presentation.WithFollowUps": "{0}\n\n{1}", + "Crash.Presentation.WithSuggestion": "原因\n{0}\n\n你可以尝试\n{1}", + "Crash.Reason.ConfirmedMod.Multiple": "以下模组导致了游戏出错:\n{0}", + "Crash.Reason.ConfirmedMod.Single": "模组 {0} 导致了游戏出错。", + "Crash.Reason.DuplicateMods.Known": "检测到重复安装的模组:\n{0}", + "Crash.Reason.DuplicateMods.Unknown": "可能安装了重复的模组。", + "Crash.Reason.ExtractedModFile": "检测到已被解压的模组文件。", + "Crash.Reason.FabricError.Generic": "Fabric 可能已经提供了错误信息。", + "Crash.Reason.FabricError.WithDetail": "Fabric 提供了以下错误信息:\n{0}", + "Crash.Reason.FabricSolution.Generic": "Fabric 可能已经提供了解决方案。", + "Crash.Reason.FabricSolution.WithDetail": "Fabric 提供了以下解决方案:\n{0}", + "Crash.Reason.FileOrContentValidationFailed": "部分文件或内容未能通过校验。", + "Crash.Reason.ForgeError.Generic": "Forge 可能已经提供了错误信息。", + "Crash.Reason.ForgeError.WithDetail": "Forge 提供了以下错误信息:\n{0}", + "Crash.Reason.GraphicsDriver.Generic": "显卡驱动可能导致游戏无法正常运行。", + "Crash.Reason.GraphicsDriver.IntelOrIntegrated": "显卡驱动存在问题,或游戏未使用独立显卡。", + "Crash.Reason.IncompatibleMods.Generic": "已安装的模组可能不兼容。", + "Crash.Reason.IncompatibleMods.WithDetail": "已安装的模组不兼容:\n{0}", + "Crash.Reason.IncompleteForgeInstallation": "Forge 安装不完整,缺少必要文件。", + "Crash.Reason.InvalidModFileName": "某个模组文件名包含 Java 不支持的特殊字符。", + "Crash.Reason.JavaIncompatible": "当前 Java 版本与游戏或模组不兼容。", + "Crash.Reason.JavaTooNew": "当前 Java 版本对该游戏或加载器来说过高。", + "Crash.Reason.ManualDebugCrash": "这是手动触发的调试崩溃,游戏本身通常没有问题。", + "Crash.Reason.MissingDependency.Generic": "部分模组缺少前置,或与当前 Minecraft 版本不匹配。", + "Crash.Reason.MissingDependency.WithDetail": "部分模组缺少前置,或与当前 Minecraft 版本不匹配:\n{0}", + "Crash.Reason.MissingMixinBootstrap": "缺少 MixinBootstrap,游戏无法继续加载。", + "Crash.Reason.ModConfigCrash.Simple": "模组 {0} 的配置读取失败。", + "Crash.Reason.ModConfigCrash.WithConfig": "模组 {0} 的配置文件 {1} 无法读取。", + "Crash.Reason.ModInitializationFailed.Multiple": "以下模组初始化失败:\n{0}", + "Crash.Reason.ModInitializationFailed.Single": "模组 {0} 初始化失败。", + "Crash.Reason.ModLoaderError.Generic": "模组加载器可能已经提供了错误信息。", + "Crash.Reason.ModLoaderError.WithDetail": "模组加载器提供了以下错误信息:\n{0}", + "Crash.Reason.ModLoaderIncompatible": "模组加载器版本与模组不兼容:\n{0}", + "Crash.Reason.ModMixinFailed.Multiple": "以下模组的 Mixin 注入失败:\n{0}", + "Crash.Reason.ModMixinFailed.None": "部分模组的 Mixin 注入失败。", + "Crash.Reason.ModMixinFailed.Single": "模组 {0} 的 Mixin 注入失败。", + "Crash.Reason.ModRequiresJava11": "部分已安装模组需要 Java 11 或更高版本。", + "Crash.Reason.MultipleForgeInInstanceJson": "实例 JSON 中包含多个 Forge 版本参数。", + "Crash.Reason.NightConfigBug": "Night Config 读取配置时发生错误。", + "Crash.Reason.NoAnalyzableFile": "游戏出现了问题,但未找到可分析的相关日志文件。", + "Crash.Reason.OldForgeNewJavaIncompatible": "旧版 Forge 与当前 Java 版本不兼容。", + "Crash.Reason.OpenGl1282": "光影或资源包可能触发了 OpenGL 1282 错误。", + "Crash.Reason.OptiFineForgeIncompatible": "OptiFine 与当前 Forge 或 Minecraft 版本可能不兼容。", + "Crash.Reason.OptiFineWorldLoadCrash": "当前 OptiFine 版本可能导致世界加载失败。", + "Crash.Reason.OutOfMemory": "Minecraft 内存不足,无法继续运行。", + "Crash.Reason.ResourcePackTooLarge": "资源包分辨率可能过高,或显卡性能不足。", + "Crash.Reason.ShadersModWithOptiFine": "同时安装了 Shaders 模组与 OptiFine。", + "Crash.Reason.SpecificBlock.Multiple": "世界中的某些方块可能导致了游戏出错。", + "Crash.Reason.SpecificBlock.Single": "方块 {0} 可能导致了游戏出错。", + "Crash.Reason.SpecificEntity.Multiple": "世界中的某些实体可能导致了游戏出错。", + "Crash.Reason.SpecificEntity.Single": "实体 {0} 可能导致了游戏出错。", + "Crash.Reason.StackKeyword.Multiple": "PCL CE 在错误堆栈中找到了可能相关的关键词:\n{0}", + "Crash.Reason.StackKeyword.Single": "PCL CE 在错误堆栈中找到了可能相关的关键词:{0}", + "Crash.Reason.SuspectedMod.Multiple": "崩溃报告怀疑以下模组导致了游戏出错:\n{0}", + "Crash.Reason.SuspectedMod.Single": "崩溃报告怀疑模组 {0} 导致了游戏出错。", + "Crash.Reason.TooManyModsIdLimit": "模组数量过多,超出了旧版 Minecraft 的 ID 限制。", + "Crash.Reason.Unknown.Auto": "PCL CE 无法确定游戏出错的具体原因。", + "Crash.Reason.Unknown.Manual": "PCL CE 无法确定错误原因。", + "Crash.Reason.UnknownFinding": "PCL CE 检测到一个没有详细说明的错误原因:{0}", + "Crash.Reason.UsingJdk": "游戏可能正在使用 JDK,或当前 Java 版本过高。", + "Crash.Reason.UsingOpenJ9": "当前使用的 OpenJ9 Java 可能与游戏、模组或加载器不兼容。", + "Crash.Reason.VeryShortOutput": "游戏输出过短,PCL CE 无法获得足够的分析信息。原始输出:\n{0}", + "Crash.Reason.X86JavaMemoryLimit.OnX64Os": "当前使用的是 32 位 Java,无法分配游戏所需的内存。", + "Crash.Reason.X86JavaMemoryLimit.OnX86Os": "当前使用的是 32 位操作系统,无法为游戏提供所需的内存。", + "Crash.Report.Export.Success": "错误报告已导出!", + "Crash.Report.SaveDialog.DefaultFileName": "错误报告-{0}.zip", + "Crash.Report.SaveDialog.Filter": "Minecraft 错误报告(*.zip)|*.zip", + "Crash.Report.SaveDialog.Title": "选择保存位置", + "Crash.Report.Environment.Cpu": "CPU:{0}", + "Crash.Report.Environment.EnvironmentSection": "- 环境信息 -", + "Crash.Report.Environment.Gpu": "显卡 {0}:{1} ({2} MiB, {3})", + "Crash.Report.Environment.InstanceSection": "- 实例信息 -", + "Crash.Report.Environment.LauncherId": "识别码:{0}", + "Crash.Report.Environment.LauncherVersion": "PCL CE 版本:{0}", + "Crash.Report.Environment.Log4j2NoLookups": "Log4j2 NoLookups:{0}", + "Crash.Report.Environment.MemoryAllocation": "内存分配 (分配的内存 / 已安装物理内存):{0} / {1} GiB ({2} MiB)", + "Crash.Report.Environment.MinecraftFolder": "MC 文件夹:{0}", + "Crash.Report.Environment.OperatingSystem": "操作系统:{0}(64 位:{1}, ARM64: {2})", + "Crash.Report.Environment.ProfileName": "档案名称:{0} (验证方式:{1})", + "Crash.Report.Environment.ProfileSection": "- 档案信息 -", + "Crash.Report.Environment.SelectedJava": "选定的 Java 虚拟机:{0}", + "Crash.Report.JarInJarMod.ModListDirectory": "目录:{0}", + "Crash.Report.JarInJarMod.DuplicateEntry": "{0} [{1}] <-> 内嵌于 {2}({3})", + "Crash.Report.JarInJarMod.DuplicateHeuristic": "(按模组 ID 匹配,可能包含误报)", + "Crash.Report.JarInJarMod.DuplicateDescription": "以下模组可能与内嵌副本冲突并导致崩溃:", + "Crash.Report.JarInJarMod.DuplicateNone": "无", + "Crash.Report.JarInJarMod.DuplicateSection": "=== 潜在重复模组===", + "Crash.Report.JarInJarMod.JarInJarNone": "未发现 Jar-in-Jar 信息", + "Crash.Report.JarInJarMod.WarningSection": "=== 依赖警告(缺失前置 / 版本不符)===", + "Crash.Report.JarInJarMod.WarningNone": "未发现依赖问题。", + "Crash.Report.JarInJarMod.WarningMissing": "缺少前置 [{0}]", + "Crash.Report.JarInJarMod.WarningMismatch": "前置版本不符 [{0}]", + "Crash.Report.JarInJarMod.WarningDisabled": "前置被禁用 [{0}]", + "Crash.Report.JarInJarMod.ConflictSection": "=== 冲突关系(不兼容 / 不建议共存)===", + "Crash.Report.JarInJarMod.ConflictNone": "未发现冲突。", + "Crash.Report.JarInJarMod.ConflictIncompatible": "不兼容", + "Crash.Report.JarInJarMod.ConflictDiscouraged": "不建议共存", + "Crash.Report.JarInJarMod.JarInJarSection": "=== Jar-in-Jar 信息(仅启用模组)===", + "Crash.Report.JarInJarMod.ModListSection": "=== 模组列表 ===", + "Crash.Suggestion.DisableTheseMods": "尝试逐个禁用这些模组,再观察游戏是否仍会崩溃。", + "Crash.Suggestion.DisableThisMod": "尝试禁用该模组,再观察游戏是否仍会崩溃。", + "Crash.Suggestion.DuplicateMods": "每个模组只能安装一次。删除重复的模组后再启动游戏。", + "Crash.Suggestion.ExportReport": "需要帮助时,请发送错误报告文件,而不是此窗口的照片或截图。", + "Crash.Suggestion.ExtractedModFile": "删除 mods 文件夹中已被解压的模组文件夹,并放入完整的 .jar 模组文件后再试。", + "Crash.Suggestion.FileOrContentValidationFailed": "删除游戏及相关模组后重新下载。", + "Crash.Suggestion.FollowLoaderInstructions": "请根据上述原始错误信息或错误报告中的加载器提示进行处理。", + "Crash.Suggestion.GraphicsDriver.Generic": "尝试更新或回退显卡驱动;必要时改用更低版本的 Java。", + "Crash.Suggestion.GraphicsDriver.IntelOrIntegrated": "若设备有独立显卡,请使用独立显卡启动 PCL CE 与 Minecraft;也可以更新或回退显卡驱动。", + "Crash.Suggestion.IncompleteForgeInstallation": "在实例设置中重置或重新安装 Forge;不要在打包实例时删除 libraries 文件夹。", + "Crash.Suggestion.InvalidModFileName": "移除或重命名异常的模组文件,使文件名仅包含英文字母、数字、短横线、下划线和小数点。", + "Crash.Suggestion.JavaIncompatible": "根据 Minecraft 版本和模组要求,在启动设置中选择合适的 Java。", + "Crash.Suggestion.JavaTooNew": "在启动设置中改用较低版本的 Java 后再试。", + "Crash.Suggestion.LauncherOutdated": "当前使用的 PCL CE 版本较旧。更新 PCL CE 可能会解决此问题:设置 → 启动器 → 检查更新。", + "Crash.Suggestion.MissingMixinBootstrap": "检查 MixinBootstrap、模组加载器和相关前置是否已完整安装。", + "Crash.Suggestion.ModConfigCrash": "尝试删除该模组的配置文件后重新启动;必要时更新或禁用该模组。", + "Crash.Suggestion.ModLoaderIncompatible": "打开实例设置并调整或重新安装模组加载器版本。", + "Crash.Suggestion.ModMixinFailed": "逐步禁用模组,以定位与当前环境不兼容或存在问题的模组。", + "Crash.Suggestion.ModRequiresJava11": "在启动设置中改用 Java 11 或更高版本后再试。", + "Crash.Suggestion.MultipleForgeInInstanceJson": "在实例设置中重置或重新安装 Forge,不要使用其他启动器修改 Forge 版本。", + "Crash.Suggestion.NightConfigBug": "尝试删除相关模组配置文件,或安装 Night Config Fixes。", + "Crash.Suggestion.OldForgeNewJavaIncompatible": "尝试升级 Forge,或改用较低版本的 Java。", + "Crash.Suggestion.OpenGl1282": "关闭光影,并移除最近添加的资源包后再试。", + "Crash.Suggestion.OptiFineForgeIncompatible": "检查 OptiFine 与 Forge 的兼容版本,并重新安装匹配的版本。", + "Crash.Suggestion.OptiFineWorldLoadCrash": "尝试更换 OptiFine 版本,或暂时移除 OptiFine 后再进入世界。", + "Crash.Suggestion.OutOfMemory": "在启动设置中增加游戏分配内存,并移除配置要求较高的资源包、模组或光影。也可以在启动前关闭其他软件。", + "Crash.Suggestion.ResourcePackTooLarge": "移除高清资源包,或降低资源包分辨率;也可以更新显卡驱动。", + "Crash.Suggestion.ShadersModWithOptiFine": "删除 Shaders Mod。OptiFine 已提供光影支持。", + "Crash.Suggestion.SpecificBlock.Multiple": "创建一个新世界测试游戏是否正常。若正常运行,问题可能来自原世界中的方块。", + "Crash.Suggestion.SpecificBlock.Single": "创建一个新世界测试游戏是否正常。若正常运行,可使用地图编辑器移除该方块,或禁用提供该方块的模组。", + "Crash.Suggestion.SpecificEntity.Multiple": "创建一个新世界并生成实体测试游戏是否正常。若正常运行,问题可能来自原世界中的实体。", + "Crash.Suggestion.SpecificEntity.Single": "创建一个新世界并生成该实体测试游戏是否正常。若正常运行,可使用地图编辑器移除该实体,或禁用提供它的模组。", + "Crash.Suggestion.StackKeyword": "检查这些关键词对应的模组或库;也可以导出错误报告以获取更多信息。", + "Crash.Suggestion.TooManyModsIdLimit": "减少模组数量,或为旧版 Minecraft 安装能够扩展 ID 限制的修复模组。", + "Crash.Suggestion.UsingJdk": "在启动设置中改用常规 JRE 或其他适合该实例的 Java 后再试。", + "Crash.Suggestion.UsingOpenJ9": "在启动设置中改用 HotSpot Java 后再试。", + "Crash.Suggestion.ViewReport": "你可以查看错误报告,以了解错误发生的详细过程。", + "Crash.Suggestion.X86JavaMemoryLimit.OnX64Os": "安装并在启动设置中选择 64 位 Java 后再试。", + "Crash.Suggestion.X86JavaMemoryLimit.OnX86Os": "改用 64 位操作系统和 64 位 Java 后再试。" + }, + "zh-TW": { + "Crash.Analysis.Error.Failed": "崩潰分析失敗。請檢視錯誤詳情。", + "Crash.Dialog.Button.ExportReport": "匯出錯誤報告", + "Crash.Dialog.Button.GoToModify": "前往修改", + "Crash.Dialog.Button.OpenLog": "檢視日誌", + "Crash.Dialog.Title.Auto": "Minecraft 出現錯誤", + "Crash.Dialog.Title.Manual": "錯誤報告分析結果", + "Crash.Export.Failed.CopyDetails": "複製詳細資訊", + "Crash.Export.Failed.Message": "無法匯出錯誤報告。\n\n目標路徑:{0}", + "Crash.Export.Failed.MessageWithoutPath": "無法匯出錯誤報告,且未能取得目標路徑。", + "Crash.Export.Failed.Title": "匯出錯誤報告失敗", + "Crash.Presentation.ListItem": " - {0}", + "Crash.Presentation.ReasonOnly": "原因\n{0}", + "Crash.Presentation.WithFollowUps": "{0}\n\n{1}", + "Crash.Presentation.WithSuggestion": "原因\n{0}\n\n你可以嘗試\n{1}", + "Crash.Reason.ConfirmedMod.Multiple": "以下模組導致了遊戲出錯:\n{0}", + "Crash.Reason.ConfirmedMod.Single": "模組 {0} 導致了遊戲出錯。", + "Crash.Reason.DuplicateMods.Known": "偵測到重複安裝的模組:\n{0}", + "Crash.Reason.DuplicateMods.Unknown": "可能安裝了重複的模組。", + "Crash.Reason.ExtractedModFile": "偵測到已被解壓縮的模組檔案。", + "Crash.Reason.FabricError.Generic": "Fabric 可能已經提供了錯誤資訊。", + "Crash.Reason.FabricError.WithDetail": "Fabric 提供了以下錯誤資訊:\n{0}", + "Crash.Reason.FabricSolution.Generic": "Fabric 可能已經提供了解決方案。", + "Crash.Reason.FabricSolution.WithDetail": "Fabric 提供了以下解決方案:\n{0}", + "Crash.Reason.FileOrContentValidationFailed": "部分檔案或內容未能透過校驗。", + "Crash.Reason.ForgeError.Generic": "Forge 可能已經提供了錯誤資訊。", + "Crash.Reason.ForgeError.WithDetail": "Forge 提供了以下錯誤資訊:\n{0}", + "Crash.Reason.GraphicsDriver.Generic": "顯示卡驅動可能導致遊戲無法正常執行。", + "Crash.Reason.GraphicsDriver.IntelOrIntegrated": "顯示卡驅動存在問題,或遊戲未使用獨立顯示卡。", + "Crash.Reason.IncompatibleMods.Generic": "可能與已安裝的模組不相容。", + "Crash.Reason.IncompatibleMods.WithDetail": "與已安裝的模組不相容:\n{0}", + "Crash.Reason.IncompleteForgeInstallation": "Forge 安裝不完整,缺少必要檔案。", + "Crash.Reason.InvalidModFileName": "某個模組檔名包含 Java 不支援的特殊字元。", + "Crash.Reason.JavaIncompatible": "目前 Java 版本與遊戲或模組不相容。", + "Crash.Reason.JavaTooNew": "目前 Java 版本對該遊戲或載入器來說過高。", + "Crash.Reason.ManualDebugCrash": "這是手動觸發的除錯崩潰,遊戲本身通常沒有問題。", + "Crash.Reason.MissingDependency.Generic": "部分模組缺少前置,或與目前 Minecraft 版本不匹配。", + "Crash.Reason.MissingDependency.WithDetail": "部分模組缺少前置,或與目前 Minecraft 版本不匹配:\n{0}", + "Crash.Reason.MissingMixinBootstrap": "缺少 MixinBootstrap,遊戲無法繼續載入。", + "Crash.Reason.ModConfigCrash.Simple": "模組 {0} 的設定讀取失敗。", + "Crash.Reason.ModConfigCrash.WithConfig": "模組 {0} 的設定檔 {1} 無法讀取。", + "Crash.Reason.ModInitializationFailed.Multiple": "以下模組初始化失敗:\n{0}", + "Crash.Reason.ModInitializationFailed.Single": "模組 {0} 初始化失敗。", + "Crash.Reason.ModLoaderError.Generic": "模組載入器可能已經提供了錯誤資訊。", + "Crash.Reason.ModLoaderError.WithDetail": "模組載入器提供了以下錯誤資訊:\n{0}", + "Crash.Reason.ModLoaderIncompatible": "模組載入器版本與模組不相容:\n{0}", + "Crash.Reason.ModMixinFailed.Multiple": "以下模組的 Mixin 注入失敗:\n{0}", + "Crash.Reason.ModMixinFailed.None": "部分模組的 Mixin 注入失敗。", + "Crash.Reason.ModMixinFailed.Single": "模組 {0} 的 Mixin 注入失敗。", + "Crash.Reason.ModRequiresJava11": "部分已安裝模組需要 Java 11 或更高版本。", + "Crash.Reason.MultipleForgeInInstanceJson": "實例 JSON 中包含多個 Forge 版本參數。", + "Crash.Reason.NightConfigBug": "Night Config 讀取設定時發生錯誤。", + "Crash.Reason.NoAnalyzableFile": "遊戲出現了問題,但未找到可分析的相關日誌檔案。", + "Crash.Reason.OldForgeNewJavaIncompatible": "舊版 Forge 與目前 Java 版本不相容。", + "Crash.Reason.OpenGl1282": "光影或資源包可能觸發了 OpenGL 1282 錯誤。", + "Crash.Reason.OptiFineForgeIncompatible": "OptiFine 與目前 Forge 或 Minecraft 版本可能不相容。", + "Crash.Reason.OptiFineWorldLoadCrash": "目前 OptiFine 版本可能導致世界載入失敗。", + "Crash.Reason.OutOfMemory": "Minecraft 記憶體不足,無法繼續執行。", + "Crash.Reason.ResourcePackTooLarge": "資源包解析度可能過高,或顯示卡效能不足。", + "Crash.Reason.ShadersModWithOptiFine": "同時安裝了 Shaders 模組與 OptiFine。", + "Crash.Reason.SpecificBlock.Multiple": "世界中的某些方塊可能導致了遊戲出錯。", + "Crash.Reason.SpecificBlock.Single": "方塊 {0} 可能導致了遊戲出錯。", + "Crash.Reason.SpecificEntity.Multiple": "世界中的某些實體可能導致了遊戲出錯。", + "Crash.Reason.SpecificEntity.Single": "實體 {0} 可能導致了遊戲出錯。", + "Crash.Reason.StackKeyword.Multiple": "PCL CE 在錯誤堆疊中找到了可能相關的關鍵字:\n{0}", + "Crash.Reason.StackKeyword.Single": "PCL CE 在錯誤堆疊中找到了可能相關的關鍵字:{0}", + "Crash.Reason.SuspectedMod.Multiple": "當機報告懷疑以下模組導致了遊戲出錯:\n{0}", + "Crash.Reason.SuspectedMod.Single": "當機報告懷疑模組 {0} 導致了遊戲出錯。", + "Crash.Reason.TooManyModsIdLimit": "模組數量過多,超出了舊版 Minecraft 的 ID 限制。", + "Crash.Reason.Unknown.Auto": "PCL CE 無法確定遊戲出錯的具體原因。", + "Crash.Reason.Unknown.Manual": "PCL CE 無法確定錯誤原因。", + "Crash.Reason.UnknownFinding": "PCL CE 偵測到一個沒有詳細說明的錯誤原因:{0}", + "Crash.Reason.UsingJdk": "遊戲可能正在使用 JDK,或目前 Java 版本過高。", + "Crash.Reason.UsingOpenJ9": "目前使用的 OpenJ9 Java 可能與遊戲、模組或載入器不相容。", + "Crash.Reason.VeryShortOutput": "遊戲輸出過短,PCL CE 無法獲得足夠的分析資訊。原始輸出:\n{0}", + "Crash.Reason.X86JavaMemoryLimit.OnX64Os": "目前使用的是 32 位元 Java,無法分配遊戲所需的記憶體。", + "Crash.Reason.X86JavaMemoryLimit.OnX86Os": "目前使用的是 32 位元作業系統,無法為遊戲提供所需的記憶體。", + "Crash.Report.Export.Success": "錯誤報告已匯出!", + "Crash.Report.SaveDialog.DefaultFileName": "錯誤報告-{0}.zip", + "Crash.Report.SaveDialog.Filter": "Minecraft 錯誤報告(*.zip)|*.zip", + "Crash.Report.SaveDialog.Title": "選擇儲存位置", + "Crash.Report.Environment.Cpu": "CPU:{0}", + "Crash.Report.Environment.EnvironmentSection": "- 環境資訊 -", + "Crash.Report.Environment.Gpu": "顯示卡 {0}:{1} ({2} MiB, {3})", + "Crash.Report.Environment.InstanceSection": "- 實例資訊 -", + "Crash.Report.Environment.LauncherId": "識別碼:{0}", + "Crash.Report.Environment.LauncherVersion": "PCL CE 版本:{0}", + "Crash.Report.Environment.Log4j2NoLookups": "Log4j2 NoLookups:{0}", + "Crash.Report.Environment.MemoryAllocation": "記憶體分配 (分配的記憶體 / 已安裝實體記憶體):{0} / {1} GiB ({2} MiB)", + "Crash.Report.Environment.MinecraftFolder": "Minecraft 資料夾:{0}", + "Crash.Report.Environment.OperatingSystem": "作業系統:{0}(64 位元:{1}, ARM64: {2})", + "Crash.Report.Environment.ProfileName": "檔案名:{0} (驗證方式:{1})", + "Crash.Report.Environment.ProfileSection": "- 檔案資訊 -", + "Crash.Report.Environment.SelectedJava": "選定的 Java 虛擬機器:{0}", + "Crash.Report.JarInJarMod.ModListDirectory": "目錄:{0}", + "Crash.Report.JarInJarMod.DuplicateEntry": "{0} [{1}] <-> 內嵌於 {2}({3})", + "Crash.Report.JarInJarMod.DuplicateHeuristic": "(按模組 ID 匹配,可能包含誤報)", + "Crash.Report.JarInJarMod.DuplicateDescription": "以下模組可能與內嵌副本衝突並導致崩潰:", + "Crash.Report.JarInJarMod.DuplicateNone": "無", + "Crash.Report.JarInJarMod.DuplicateSection": "=== 潛在重複模組===", + "Crash.Report.JarInJarMod.JarInJarNone": "未發現 Jar-in-Jar 資訊", + "Crash.Report.JarInJarMod.JarInJarSection": "=== Jar-in-Jar 資訊(僅啟用模組)===", + "Crash.Report.JarInJarMod.ModListSection": "=== 模組清單 ===", + "Crash.Suggestion.DisableTheseMods": "嘗試逐個停用這些模組,再觀察遊戲是否仍會崩潰。", + "Crash.Suggestion.DisableThisMod": "嘗試停用該模組,再觀察遊戲是否仍會崩潰。", + "Crash.Suggestion.DuplicateMods": "每個模組只能安裝一次。刪除重複的模組後再啟動遊戲。", + "Crash.Suggestion.ExportReport": "需要幫助時,請傳送錯誤報告檔案,而不是此視窗的照片或截圖。", + "Crash.Suggestion.ExtractedModFile": "刪除 mods 資料夾中已被解壓縮的模組資料夾,並放入完整的 .jar 模組檔案後再試。", + "Crash.Suggestion.FileOrContentValidationFailed": "刪除遊戲及相關模組後重新下載。", + "Crash.Suggestion.FollowLoaderInstructions": "請根據上述原始錯誤資訊或錯誤報告中的載入器提示進行處理。", + "Crash.Suggestion.GraphicsDriver.Generic": "嘗試更新或回退顯示卡驅動;必要時改用更低版本的 Java。", + "Crash.Suggestion.GraphicsDriver.IntelOrIntegrated": "若裝置有獨立顯示卡,請使用獨立顯示卡啟動 PCL CE 與 Minecraft;也可以更新或回退顯示卡驅動。", + "Crash.Suggestion.IncompleteForgeInstallation": "在實例設定中重設或重新安裝 Forge;不要在打包實例時刪除 libraries 資料夾。", + "Crash.Suggestion.InvalidModFileName": "移除或重新命名異常的模組檔案,使檔名僅包含英文字母、數字、短橫線、下劃線和小數點。", + "Crash.Suggestion.JavaIncompatible": "根據 Minecraft 版本和模組要求,在啟動設定中選擇合適的 Java。", + "Crash.Suggestion.JavaTooNew": "在啟動設定中改用較低版本的 Java 後再試。", + "Crash.Suggestion.LauncherOutdated": "目前使用的 PCL CE 版本較舊。更新 PCL CE 可能會解決此問題:設定 → 啟動器 → 檢查更新。", + "Crash.Suggestion.MissingMixinBootstrap": "檢查 MixinBootstrap、模組載入器和相關前置是否已完整安裝。", + "Crash.Suggestion.ModConfigCrash": "嘗試刪除該模組的設定檔後重新啟動;必要時更新或停用該模組。", + "Crash.Suggestion.ModLoaderIncompatible": "開啟實例設定並調整或重新安裝模組載入器版本。", + "Crash.Suggestion.ModMixinFailed": "逐步停用模組,以定位與目前環境不相容或存在問題的模組。", + "Crash.Suggestion.ModRequiresJava11": "在啟動設定中改用 Java 11 或更高版本後再試。", + "Crash.Suggestion.MultipleForgeInInstanceJson": "在實例設定中重設或重新安裝 Forge,不要使用其他啟動器修改 Forge 版本。", + "Crash.Suggestion.NightConfigBug": "嘗試刪除相關模組設定檔,或安裝 Night Config Fixes。", + "Crash.Suggestion.OldForgeNewJavaIncompatible": "嘗試升級 Forge,或改用較低版本的 Java。", + "Crash.Suggestion.OpenGl1282": "關閉光影,並移除最近新增的資源包後再試。", + "Crash.Suggestion.OptiFineForgeIncompatible": "檢查 OptiFine 與 Forge 相容的版本,並重新安裝匹配的版本。", + "Crash.Suggestion.OptiFineWorldLoadCrash": "嘗試更換 OptiFine 版本,或暫時移除 OptiFine 後再進入世界。", + "Crash.Suggestion.OutOfMemory": "在啟動設定中增加遊戲分配記憶體,並移除設定要求較高的資源包、模組或光影。也可以在啟動前關閉其他軟體。", + "Crash.Suggestion.ResourcePackTooLarge": "移除高畫質資源包,或降低資源包解析度;也可以更新顯示卡驅動。", + "Crash.Suggestion.ShadersModWithOptiFine": "刪除 Shaders Mod。OptiFine 已提供光影支援。", + "Crash.Suggestion.SpecificBlock.Multiple": "建立一個新世界測試遊戲是否正常。若正常執行,問題可能來自原世界中的方塊。", + "Crash.Suggestion.SpecificBlock.Single": "建立一個新世界測試遊戲是否正常。若正常執行,可使用地圖編輯器移除該方塊,或停用提供該方塊的模組。", + "Crash.Suggestion.SpecificEntity.Multiple": "建立一個新世界並生成實體測試遊戲是否正常。若正常執行,問題可能來自原世界中的實體。", + "Crash.Suggestion.SpecificEntity.Single": "建立一個新世界並生成該實體測試遊戲是否正常。若正常執行,可使用地圖編輯器移除該實體,或停用提供它的模組。", + "Crash.Suggestion.StackKeyword": "檢查這些關鍵字對應的模組或庫;也可以匯出錯誤報告以取得更多資訊。", + "Crash.Suggestion.TooManyModsIdLimit": "減少模組數量,或為舊版 Minecraft 安裝能夠擴充套件 ID 限制的修復模組。", + "Crash.Suggestion.UsingJdk": "在啟動設定中改用一般 JRE 或其他適合該實例的 Java 後再試。", + "Crash.Suggestion.UsingOpenJ9": "在啟動設定中改用 HotSpot Java 後再試。", + "Crash.Suggestion.ViewReport": "你可以檢視錯誤報告,以了解錯誤發生的詳細過程。", + "Crash.Suggestion.X86JavaMemoryLimit.OnX64Os": "安裝並在啟動設定中選擇 64 位元 Java 後再試。", + "Crash.Suggestion.X86JavaMemoryLimit.OnX86Os": "改用 64 位元作業系統和 64 位元 Java 後再試。" + }, + "en-US": { + "Crash.Analysis.Error.Failed": "Crash analysis failed. See the details below.", + "Crash.Dialog.Button.ExportReport": "Export crash report", + "Crash.Dialog.Button.GoToModify": "Modify settings", + "Crash.Dialog.Button.OpenLog": "View log", + "Crash.Dialog.Title.Auto": "Minecraft crashed", + "Crash.Dialog.Title.Manual": "Crash report analysis result", + "Crash.Export.Failed.CopyDetails": "Copy details", + "Crash.Export.Failed.Message": "The crash report could not be exported.\n\nTarget path: {0}", + "Crash.Export.Failed.MessageWithoutPath": "The crash report could not be exported, and the target path is unavailable.", + "Crash.Export.Failed.Title": "Failed to export crash report", + "Crash.Presentation.ListItem": " - {0}", + "Crash.Presentation.ReasonOnly": "Cause\n{0}", + "Crash.Presentation.WithFollowUps": "{0}\n\n{1}", + "Crash.Presentation.WithSuggestion": "Cause\n{0}\n\nWhat you can try\n{1}", + "Crash.Reason.ConfirmedMod.Multiple": "The following mods caused the error:\n{0}", + "Crash.Reason.ConfirmedMod.Single": "The mod {0} caused the error.", + "Crash.Reason.DuplicateMods.Known": "Duplicate mods were detected:\n{0}", + "Crash.Reason.DuplicateMods.Unknown": "Duplicate mods may be installed.", + "Crash.Reason.ExtractedModFile": "An extracted mod file was detected.", + "Crash.Reason.FabricError.Generic": "Fabric may have provided an error message.", + "Crash.Reason.FabricError.WithDetail": "Fabric provided the following error message:\n{0}", + "Crash.Reason.FabricSolution.Generic": "Fabric may have provided a solution.", + "Crash.Reason.FabricSolution.WithDetail": "Fabric provided the following solution:\n{0}", + "Crash.Reason.FileOrContentValidationFailed": "Some files or content did not pass validation.", + "Crash.Reason.ForgeError.Generic": "Forge may have provided an error message.", + "Crash.Reason.ForgeError.WithDetail": "Forge provided the following error message:\n{0}", + "Crash.Reason.GraphicsDriver.Generic": "The graphics driver may be preventing the game from running correctly.", + "Crash.Reason.GraphicsDriver.IntelOrIntegrated": "There may be a graphics driver problem, or the game may not be using the dedicated GPU.", + "Crash.Reason.IncompatibleMods.Generic": "The installed mods may be incompatible.", + "Crash.Reason.IncompatibleMods.WithDetail": "The installed mods are incompatible:\n{0}", + "Crash.Reason.IncompleteForgeInstallation": "The Forge installation is incomplete and required files are missing.", + "Crash.Reason.InvalidModFileName": "A mod file name contains special characters that Java cannot use.", + "Crash.Reason.JavaIncompatible": "The selected Java version is incompatible with the game or mods.", + "Crash.Reason.JavaTooNew": "The selected Java version is too new for this game or loader.", + "Crash.Reason.ManualDebugCrash": "This was a manually triggered debug crash. The game itself is usually fine.", + "Crash.Reason.MissingDependency.Generic": "Some mods are missing dependencies or do not match the current Minecraft version.", + "Crash.Reason.MissingDependency.WithDetail": "Some mods are missing dependencies or do not match the current Minecraft version:\n{0}", + "Crash.Reason.MissingMixinBootstrap": "MixinBootstrap is missing, so the game cannot continue loading.", + "Crash.Reason.ModConfigCrash.Simple": "The configuration for the mod {0} could not be read.", + "Crash.Reason.ModConfigCrash.WithConfig": "The configuration file {1} for the mod {0} could not be read.", + "Crash.Reason.ModInitializationFailed.Multiple": "The following mods failed to initialize:\n{0}", + "Crash.Reason.ModInitializationFailed.Single": "The mod {0} failed to initialize.", + "Crash.Reason.ModLoaderError.Generic": "The mod loader may have provided an error message.", + "Crash.Reason.ModLoaderError.WithDetail": "The mod loader provided the following error message:\n{0}", + "Crash.Reason.ModLoaderIncompatible": "The mod loader version is incompatible with the mods:\n{0}", + "Crash.Reason.ModMixinFailed.Multiple": "Mixin injection failed for the following mods:\n{0}", + "Crash.Reason.ModMixinFailed.None": "Mixin injection failed for one or more mods.", + "Crash.Reason.ModMixinFailed.Single": "Mixin injection failed for the mod {0}.", + "Crash.Reason.ModRequiresJava11": "Some installed mods require Java 11 or later.", + "Crash.Reason.MultipleForgeInInstanceJson": "The instance JSON contains multiple Forge version arguments.", + "Crash.Reason.NightConfigBug": "Night Config encountered an error while reading configuration files.", + "Crash.Reason.NoAnalyzableFile": "The game ran into a problem, but PCL CE could not find related log files to analyze.", + "Crash.Reason.OldForgeNewJavaIncompatible": "An old Forge version is incompatible with the selected Java version.", + "Crash.Reason.OpenGl1282": "A shader pack or resource pack may have triggered OpenGL error 1282.", + "Crash.Reason.OptiFineForgeIncompatible": "OptiFine may be incompatible with the current Forge or Minecraft version.", + "Crash.Reason.OptiFineWorldLoadCrash": "The selected OptiFine version may have caused the world to fail to load.", + "Crash.Reason.OutOfMemory": "Minecraft ran out of memory.", + "Crash.Reason.ResourcePackTooLarge": "The resource pack resolution may be too high, or the graphics card may not be powerful enough.", + "Crash.Reason.ShadersModWithOptiFine": "Both Shaders Mod and OptiFine are installed.", + "Crash.Reason.SpecificBlock.Multiple": "Some blocks in the world may have caused the error.", + "Crash.Reason.SpecificBlock.Single": "The block {0} may have caused the error.", + "Crash.Reason.SpecificEntity.Multiple": "Some entities in the world may have caused the error.", + "Crash.Reason.SpecificEntity.Single": "The entity {0} may have caused the error.", + "Crash.Reason.StackKeyword.Multiple": "PCL CE found possibly related keywords in the error stack trace:\n{0}", + "Crash.Reason.StackKeyword.Single": "PCL CE found a possibly related keyword in the error stack trace: {0}", + "Crash.Reason.SuspectedMod.Multiple": "The crash report suspects that the following mods caused the error:\n{0}", + "Crash.Reason.SuspectedMod.Single": "The crash report suspects that the mod {0} caused the error.", + "Crash.Reason.TooManyModsIdLimit": "Too many mods are installed, exceeding the ID limit of an older Minecraft version.", + "Crash.Reason.Unknown.Auto": "PCL CE could not determine the exact cause of the crash.", + "Crash.Reason.Unknown.Manual": "PCL CE could not determine the cause of this error.", + "Crash.Reason.UnknownFinding": "PCL CE detected an error cause without details: {0}", + "Crash.Reason.UsingJdk": "The game may be using a JDK, or the selected Java version may be too new.", + "Crash.Reason.UsingOpenJ9": "The OpenJ9 Java runtime may be incompatible with the game, mods, or loader.", + "Crash.Reason.VeryShortOutput": "The game output is too short for PCL CE to analyze. Raw output:\n{0}", + "Crash.Reason.X86JavaMemoryLimit.OnX64Os": "The selected 32-bit Java runtime cannot allocate enough memory for the game.", + "Crash.Reason.X86JavaMemoryLimit.OnX86Os": "The 32-bit operating system cannot provide enough memory for the game.", + "Crash.Report.Export.Success": "Crash report exported!", + "Crash.Report.SaveDialog.DefaultFileName": "Crash Report-{0}.zip", + "Crash.Report.SaveDialog.Filter": "Minecraft crash report (*.zip)|*.zip", + "Crash.Report.SaveDialog.Title": "Select save location", + "Crash.Report.Environment.Cpu": "CPU:{0}", + "Crash.Report.Environment.EnvironmentSection": "- Environment information -", + "Crash.Report.Environment.Gpu": "GPU {0}: {1} ({2} MiB, {3})", + "Crash.Report.Environment.InstanceSection": "- Instance information -", + "Crash.Report.Environment.LauncherId": "Identification code: {0}", + "Crash.Report.Environment.LauncherVersion": "PCL CE version: {0}", + "Crash.Report.Environment.Log4j2NoLookups": "Log4j2 NoLookups:{0}", + "Crash.Report.Environment.MemoryAllocation": "Memory allocation (allocated memory / installed physical memory): {0} / {1} GiB ({2} MiB)", + "Crash.Report.Environment.MinecraftFolder": "Minecraft folder: {0}", + "Crash.Report.Environment.OperatingSystem": "Operating system: {0} (64-bit: {1}, ARM64: {2})", + "Crash.Report.Environment.ProfileName": "Profile name: {0} (login method: {1})", + "Crash.Report.Environment.ProfileSection": "- Profile information -", + "Crash.Report.Environment.SelectedJava": "Selected Java VM: {0}", + "Crash.Report.JarInJarMod.DuplicateDescription": "These mods may conflict with their bundled copies and cause crashes:", + "Crash.Report.JarInJarMod.DuplicateEntry": "{0} [{1}] <-> bundled in {2} ({3})", + "Crash.Report.JarInJarMod.DuplicateHeuristic": "(Matched by mod ID and may include false positives.)", + "Crash.Report.JarInJarMod.DuplicateNone": "None", + "Crash.Report.JarInJarMod.DuplicateSection": "=== Potentially duplicated mods (installed standalone and bundled via Jar-in-Jar) ===", + "Crash.Report.JarInJarMod.JarInJarNone": "No Jar-in-Jar information found", + "Crash.Report.JarInJarMod.WarningSection": "=== Dependency warnings (missing / version mismatch) ===", + "Crash.Report.JarInJarMod.WarningNone": "No dependency issues found.", + "Crash.Report.JarInJarMod.WarningMissing": "missing prerequisite(s) [{0}]", + "Crash.Report.JarInJarMod.WarningMismatch": "version-incompatible prerequisite(s) [{0}]", + "Crash.Report.JarInJarMod.WarningDisabled": "disabled prerequisite(s) [{0}]", + "Crash.Report.JarInJarMod.ConflictSection": "=== Conflicts (incompatible / discouraged) ===", + "Crash.Report.JarInJarMod.ConflictNone": "No conflicts found.", + "Crash.Report.JarInJarMod.ConflictIncompatible": "Incompatible", + "Crash.Report.JarInJarMod.ConflictDiscouraged": "Discouraged", + "Crash.Report.JarInJarMod.JarInJarSection": "=== Jar-in-Jar information (enabled mods only) ===", + "Crash.Report.JarInJarMod.ModListDirectory": "Directory: {0}", + "Crash.Report.JarInJarMod.ModListSection": "=== Mod list ===", + "Crash.Suggestion.DisableTheseMods": "Try disabling these mods one by one, then check whether the game still crashes.", + "Crash.Suggestion.DisableThisMod": "Try disabling this mod, then check whether the game still crashes.", + "Crash.Suggestion.DuplicateMods": "Each mod should be installed only once. Remove the duplicate mods and launch the game again.", + "Crash.Suggestion.ExportReport": "When asking for help, send the crash report file instead of a photo or screenshot of this window.", + "Crash.Suggestion.ExtractedModFile": "Remove extracted mod folders from the mods folder, then put the original .jar mod files there and try again.", + "Crash.Suggestion.FileOrContentValidationFailed": "Delete the game and related mods, then download them again.", + "Crash.Suggestion.FollowLoaderInstructions": "Follow the loader messages above or in the crash report to resolve the problem.", + "Crash.Suggestion.GraphicsDriver.Generic": "Try updating or rolling back the graphics driver. If needed, switch to an older Java version.", + "Crash.Suggestion.GraphicsDriver.IntelOrIntegrated": "If the device has a dedicated GPU, use it to launch PCL CE and Minecraft. You can also update or roll back the graphics driver.", + "Crash.Suggestion.IncompleteForgeInstallation": "Reset or reinstall Forge in instance settings. Do not delete the libraries folder when packaging an instance.", + "Crash.Suggestion.InvalidModFileName": "Remove or rename the affected mod file so that its name contains only English letters, numbers, hyphens, underscores, and periods.", + "Crash.Suggestion.JavaIncompatible": "Choose a suitable Java version in launch settings based on the Minecraft version and mod requirements.", + "Crash.Suggestion.JavaTooNew": "Switch to an older Java version in launch settings and try again.", + "Crash.Suggestion.LauncherOutdated": "You are using an outdated version of PCL CE. Updating PCL CE may resolve this problem: Settings → Launcher → Check updates.", + "Crash.Suggestion.MissingMixinBootstrap": "Check that MixinBootstrap, the mod loader, and related dependencies are installed correctly.", + "Crash.Suggestion.ModConfigCrash": "Try deleting this mod's configuration file and launch again. If needed, update or disable the mod.", + "Crash.Suggestion.ModLoaderIncompatible": "Open instance settings and adjust or reinstall the mod loader version.", + "Crash.Suggestion.ModMixinFailed": "Disable mods step by step to find the one that is incompatible with the current environment or has a problem.", + "Crash.Suggestion.ModRequiresJava11": "Switch to Java 11 or later in launch settings and try again.", + "Crash.Suggestion.MultipleForgeInInstanceJson": "Reset or reinstall Forge in instance settings. Do not use another launcher to modify the Forge version.", + "Crash.Suggestion.NightConfigBug": "Try deleting the related mod configuration files, or install Night Config Fixes.", + "Crash.Suggestion.OldForgeNewJavaIncompatible": "Try updating Forge or switching to an older Java version.", + "Crash.Suggestion.OpenGl1282": "Disable shader packs and remove recently added resource packs, then try again.", + "Crash.Suggestion.OptiFineForgeIncompatible": "Check the compatible OptiFine and Forge versions, then reinstall matching versions.", + "Crash.Suggestion.OptiFineWorldLoadCrash": "Try another OptiFine version, or remove OptiFine before entering the world again.", + "Crash.Suggestion.OutOfMemory": "Increase the memory allocated in launch settings, and remove demanding resource packs, mods, or shader packs. You can also close other applications before launching the game.", + "Crash.Suggestion.ResourcePackTooLarge": "Remove high-resolution resource packs or lower their resolution. You can also update the graphics driver.", + "Crash.Suggestion.ShadersModWithOptiFine": "Remove Shaders Mod. OptiFine already provides shader support.", + "Crash.Suggestion.SpecificBlock.Multiple": "Create a new world to test whether the game runs normally. If it does, blocks in the original world may be responsible.", + "Crash.Suggestion.SpecificBlock.Single": "Create a new world to test whether the game runs normally. If it does, remove this block with a map editor or disable the mod that provides it.", + "Crash.Suggestion.SpecificEntity.Multiple": "Create a new world and spawn entities to test whether the game runs normally. If it does, entities in the original world may be responsible.", + "Crash.Suggestion.SpecificEntity.Single": "Create a new world and spawn this entity to test whether the game runs normally. If it does, remove the entity with a map editor or disable the mod that provides it.", + "Crash.Suggestion.StackKeyword": "Check the mods or libraries related to these keywords. You can also export the crash report for more details.", + "Crash.Suggestion.TooManyModsIdLimit": "Reduce the number of installed mods, or install a fix mod that extends the ID limit for older Minecraft versions.", + "Crash.Suggestion.UsingJdk": "Switch to a regular JRE or another Java version that is suitable for this instance in launch settings.", + "Crash.Suggestion.UsingOpenJ9": "Switch to HotSpot Java in launch settings and try again.", + "Crash.Suggestion.ViewReport": "View the crash report for more details about how the error happened.", + "Crash.Suggestion.X86JavaMemoryLimit.OnX64Os": "Install and select 64-bit Java in launch settings, then try again.", + "Crash.Suggestion.X86JavaMemoryLimit.OnX86Os": "Use a 64-bit operating system and 64-bit Java, then try again." + } +} diff --git a/src/SHOU.Launcher.Core/Resources/mcmod-index.json b/src/SHOU.Launcher.Core/Resources/mcmod-index.json new file mode 100644 index 00000000..cd8a8418 --- /dev/null +++ b/src/SHOU.Launcher.Core/Resources/mcmod-index.json @@ -0,0 +1 @@ +[{"Id":2,"Name":"工业时代2 (Industrial Craft 2)","CurseForge":"industrial-craft","Modrinth":"industrial-craft"},{"Id":3,"Name":"红石力量2 (RedPower2)","CurseForge":"","Modrinth":"redpower2-core"},{"Id":4,"Name":"建筑 (BuildCraft)","CurseForge":"buildcraft","Modrinth":"buildcraft"},{"Id":5,"Name":"林业 (Forestry)","CurseForge":"forestry","Modrinth":"forestry"},{"Id":6,"Name":"铁路 (Railcraft)","CurseForge":"railcraft","Modrinth":"railcraft-reborn"},{"Id":6,"Name":"铁路 (Railcraft)","CurseForge":"railcraft-reborn","Modrinth":""},{"Id":9,"Name":"等价交换2 (Equivalent Exchange 2)","CurseForge":"","Modrinth":"ee2"},{"Id":11,"Name":"辉夜姬的五难题 (五つの難題MOD+ ~ Touhou Items)","CurseForge":"touhou-item-mod","Modrinth":""},{"Id":12,"Name":"密室 (SecretRoomsMod)","CurseForge":"secretroomsmod","Modrinth":""},{"Id":13,"Name":"野营 (The Camping Mod)","CurseForge":"the-camping-mod","Modrinth":""},{"Id":14,"Name":"有用的食物 (UsefulFood)","CurseForge":"usefulfood","Modrinth":""},{"Id":15,"Name":"能源转换 (PowerConverters)","CurseForge":"powerconverters-portablejims-fork","Modrinth":""},{"Id":15,"Name":"能源转换 (PowerConverters)","CurseForge":"powerconverters","Modrinth":""},{"Id":18,"Name":"模块化力场系统 (Modular Forcefield System)","CurseForge":"modular-forcefield-system","Modrinth":""},{"Id":19,"Name":"化学 (MineChem) - 非官方重编译版","CurseForge":"minechem-recompile","Modrinth":""},{"Id":19,"Name":"化学 (MineChem)","CurseForge":"minechem-archive","Modrinth":""},{"Id":19,"Name":"化学 (MineChem)","CurseForge":"73373","Modrinth":""},{"Id":20,"Name":"更多箱子 (Iron Chests)","CurseForge":"iron-chests","Modrinth":"iron-chests"},{"Id":20,"Name":"更多箱子 (Iron Chests)","CurseForge":"iron-chests-for-fabric","Modrinth":"cyberanner-ironchest"},{"Id":20,"Name":"更多箱子 (Iron Chests)","CurseForge":"iron-chests-fabric","Modrinth":"iron-chests-fabric"},{"Id":21,"Name":"更多武器 (Balkon's WeaponMod)","CurseForge":"balkons-weaponmod","Modrinth":""},{"Id":22,"Name":"高级机械 (AdvancedMachines) - Chocohead版","CurseForge":"advanced-machines","Modrinth":""},{"Id":22,"Name":"高级机械 (AdvancedMachines) - Immibis版","CurseForge":"","Modrinth":"advanced-machines-uuum"},{"Id":23,"Name":"高级太阳能 (Advanced Solar Panels)","CurseForge":"advanced-solar-panels","Modrinth":""},{"Id":24,"Name":"核电控制2 (Nuclear Control 2)","CurseForge":"nuclear-control-2","Modrinth":""},{"Id":26,"Name":"更好的地牢/寻找巧克力 (Better Dungeons / Chocolate Quest)","CurseForge":"better-dungeons","Modrinth":""},{"Id":27,"Name":"Flan 的枪械 (Flan's Mod)","CurseForge":"flans-mod-5-5-2","Modrinth":""},{"Id":31,"Name":"等价交换3 (Equivalent Exchange 3)","CurseForge":"ee3","Modrinth":""},{"Id":32,"Name":"我的工厂 (MineFactory)","CurseForge":"minefactory-reloaded","Modrinth":""},{"Id":34,"Name":"玩家渲染API (Render Player API)","CurseForge":"render-player-api","Modrinth":""},{"Id":34,"Name":"玩家渲染API (Render Player API)","CurseForge":"renderplayerapi","Modrinth":""},{"Id":35,"Name":"玩家API (Player API)","CurseForge":"player-api","Modrinth":""},{"Id":35,"Name":"玩家API (Player API)","CurseForge":"playerapi","Modrinth":""},{"Id":41,"Name":"NEI物品管理器 (Not Enough Items)","CurseForge":"not-enough-items-1-8","Modrinth":"nei"},{"Id":41,"Name":"NEI物品管理器 (Not Enough Items)","CurseForge":"notenoughitems","Modrinth":""},{"Id":45,"Name":"自定义NPC (Custom NPCs)","CurseForge":"custom-npcs","Modrinth":""},{"Id":46,"Name":"千年村庄 (Millénaire)","CurseForge":"millenaire","Modrinth":""},{"Id":47,"Name":"粘土士兵 (Clay Soldiers Mod)","CurseForge":"clay-soldiers-mod","Modrinth":""},{"Id":48,"Name":"更多生物 (Mo' Creatures)","CurseForge":"mo-creatures","Modrinth":""},{"Id":50,"Name":"更多生态群系 (ExtraBiomesXL)","CurseForge":"extrabiomesxl","Modrinth":""},{"Id":55,"Name":"王国 (Tale Of Kingdoms)","CurseForge":"tale-of-kingdoms","Modrinth":""},{"Id":61,"Name":"暮色森林 (The Twilight Forest)","CurseForge":"the-twilight-forest","Modrinth":""},{"Id":63,"Name":"传送枪 (Portal Gun)","CurseForge":"portal-gun","Modrinth":""},{"Id":64,"Name":"简单矿石 (SimpleOres)","CurseForge":"simpleores","Modrinth":"simpleores"},{"Id":65,"Name":"灵活动作 (Smart Moving)","CurseForge":"smart-moving","Modrinth":""},{"Id":65,"Name":"灵活动作 (Smart Moving)","CurseForge":"smart-moving-reboot","Modrinth":""},{"Id":66,"Name":"轻松合成 (Easy Crafting)","CurseForge":"easycrafting","Modrinth":""},{"Id":71,"Name":"电脑 (Computer Craft)","CurseForge":"computercraft","Modrinth":"computercraft"},{"Id":73,"Name":"R键整理 (Inventory Tweaks)","CurseForge":"inventory-tweaks","Modrinth":""},{"Id":75,"Name":"召唤奴仆 (Minecraft Minions)","CurseForge":"minecraft-minions","Modrinth":""},{"Id":76,"Name":"末影存储 (Ender Storage)","CurseForge":"ender-storage","Modrinth":"ender-storage"},{"Id":76,"Name":"末影存储 (Ender Storage)","CurseForge":"ender-storage-1-8","Modrinth":""},{"Id":80,"Name":"内置NBT编辑器 (In-Game NBTEdit)","CurseForge":"forge-nbtedit-for-1-7-10","Modrinth":""},{"Id":85,"Name":"旋转工艺 (RotaryCraft)","CurseForge":"rotarycraft","Modrinth":""},{"Id":87,"Name":"应用能源 (Applied Energistics 1)","CurseForge":"applied-energistics-1","Modrinth":"ae1"},{"Id":92,"Name":"通用电力 (Universal Electricity)","CurseForge":"Universal-Electricity","Modrinth":""},{"Id":93,"Name":"比狼好 (Better Than Wolves)","CurseForge":"","Modrinth":"btwce"},{"Id":93,"Name":"比狼好 (Better Than Wolves)","CurseForge":"","Modrinth":"better-than-wolves"},{"Id":94,"Name":"天境 (The Aether)","CurseForge":"aether","Modrinth":"aether"},{"Id":95,"Name":"电脑外设 (MiscPeripherals)","CurseForge":"","Modrinth":"miscperipherals"},{"Id":97,"Name":"刺客信条 (AssassinCraft)","CurseForge":"assassincraft-assassins-creed-mod","Modrinth":""},{"Id":99,"Name":"自定义合成表 (Custom Recipes)","CurseForge":"custom-recipes","Modrinth":""},{"Id":100,"Name":"虚拟人生/凡家物语 (Minecraft Comes Alive)","CurseForge":"minecraft-comes-alive-mca","Modrinth":""},{"Id":103,"Name":"","CurseForge":"forge-essentials-74735","Modrinth":"forge-essentials"},{"Id":105,"Name":"转运器 (Translocators)","CurseForge":"translocators-1-8","Modrinth":"translocators"},{"Id":105,"Name":"转运器 (Translocators)","CurseForge":"translocators","Modrinth":""},{"Id":106,"Name":"G键合成表 (CraftGuide)","CurseForge":"craftguide","Modrinth":""},{"Id":108,"Name":"超多生物群系 (Biomes O' Plenty)","CurseForge":"biomes-o-plenty","Modrinth":"biomes-o-plenty"},{"Id":111,"Name":"增强传送门3 (Enhanced Portals 3)","CurseForge":"enhanced-portals-3","Modrinth":""},{"Id":112,"Name":"压缩太阳能阵列 (CompactSolars / Compact Solar Arrays)","CurseForge":"compact-solars","Modrinth":""},{"Id":113,"Name":"收藏馆 (BiblioCraft)","CurseForge":"bibliocraft","Modrinth":""},{"Id":114,"Name":"自然 (Natura)","CurseForge":"natura","Modrinth":""},{"Id":115,"Name":"原子科学 (Atomic Science)","CurseForge":"atomic-science","Modrinth":""},{"Id":117,"Name":"阿图姆:沙漠之旅/亚图姆:金沙之旅 (Atum 2: Return to the Sands)","CurseForge":"atum","Modrinth":""},{"Id":118,"Name":"方块物理学 (BlockPhysics)","CurseForge":"blockphysics_by_id_miner","Modrinth":""},{"Id":121,"Name":"运动红石机构 (Remain in Motion)","CurseForge":"remain-in-motion","Modrinth":""},{"Id":123,"Name":"开放式电脑外设 (OpenPeripheral) - 核心","CurseForge":"openperipheralcore","Modrinth":""},{"Id":123,"Name":"开放式电脑外设 (OpenPeripheral) - 附加","CurseForge":"openperipheraladdons","Modrinth":""},{"Id":123,"Name":"开放式电脑外设 (OpenPeripheral) - 联动","CurseForge":"openperipheralintegration","Modrinth":""},{"Id":124,"Name":"模块化动力套装 (Modular Powersuits)","CurseForge":"modular-powersuits","Modrinth":"modularpowersuits"},{"Id":129,"Name":"Immibis的小方块 (Immibis's Microblocks)","CurseForge":"","Modrinth":"immibis-microblocks"},{"Id":132,"Name":"红石逻辑 (RedLogic)","CurseForge":"","Modrinth":"redlogic"},{"Id":133,"Name":"能量工厂 (Power Craft)","CurseForge":"powercraft-2","Modrinth":""},{"Id":134,"Name":"黑曜石压力板 (ObsidiPlates)","CurseForge":"obsidiplates","Modrinth":""},{"Id":135,"Name":"终极管道 (InfiniTubes)","CurseForge":"","Modrinth":"infinitubes"},{"Id":136,"Name":"平置牌子 (FlatSigns)","CurseForge":"flatsigns","Modrinth":""},{"Id":137,"Name":"按钮开关 (Switches)","CurseForge":"switches","Modrinth":""},{"Id":138,"Name":"工匠的手艺 (Artifice)","CurseForge":"artifice","Modrinth":""},{"Id":140,"Name":"阿基米德之舟 (Archimedes' Ships)","CurseForge":"archimedes-ships","Modrinth":""},{"Id":141,"Name":"立方体机器人 (CubeBots)","CurseForge":"cubebots","Modrinth":""},{"Id":142,"Name":"桁架 (Truss Mod)","CurseForge":"truss-mod","Modrinth":""},{"Id":143,"Name":"突变生物 (Mutant Creatures)","CurseForge":"mutant-creatures-mod","Modrinth":""},{"Id":145,"Name":"物流管道 (Logistics Pipes)","CurseForge":"logistics-pipes","Modrinth":"logistics-pipes"},{"Id":148,"Name":"魔法蜜蜂 (Magic Bees)","CurseForge":"magic-bees","Modrinth":""},{"Id":149,"Name":"木匠方块 (Carpenter's Blocks)","CurseForge":"carpenters-blocks","Modrinth":""},{"Id":150,"Name":"神秘岛 (Mystcraft)","CurseForge":"mystcraft","Modrinth":""},{"Id":150,"Name":"神秘岛 (Mystcraft) - Archived","CurseForge":"","Modrinth":"mystcraft"},{"Id":154,"Name":"扫雷 (Minesweeper)","CurseForge":"minesweeper-mod","Modrinth":""},{"Id":155,"Name":"国际象棋 (MineChess)","CurseForge":"minechess","Modrinth":""},{"Id":159,"Name":"工厂化/因式分解 (Factorization)","CurseForge":"","Modrinth":"factorization"},{"Id":164,"Name":"红石计划 (ProjectRed) - 基础","CurseForge":"project-red-base","Modrinth":""},{"Id":164,"Name":"红石计划:照明 (Project Red - Illumination)","CurseForge":"project-red-illumination","Modrinth":"project-red-illumination"},{"Id":164,"Name":"红石计划 (ProjectRed)","CurseForge":"project-red-core","Modrinth":"project-red-core"},{"Id":166,"Name":"次元门 (Dimensional Doors)","CurseForge":"dimensionaldoors","Modrinth":"dimensionaldoors"},{"Id":167,"Name":"区块载入器 (ChickenChunks)","CurseForge":"chickenchunks","Modrinth":"chicken-chunks"},{"Id":167,"Name":"区块载入器 (ChickenChunks)","CurseForge":"chicken-chunks-1-8","Modrinth":""},{"Id":168,"Name":"动态蓄水槽 (Dynamic Liquid Tanks)","CurseForge":"dlt2","Modrinth":""},{"Id":170,"Name":"内置网页浏览器 (WebDisplays)","CurseForge":"webdisplays-remasterd","Modrinth":""},{"Id":171,"Name":"变身 (Morph)","CurseForge":"morph","Modrinth":""},{"Id":174,"Name":"更多存储单元2 (Extra Cells 2)","CurseForge":"extracells2","Modrinth":""},{"Id":177,"Name":"乐高 (Billund)","CurseForge":"billund-223258","Modrinth":""},{"Id":178,"Name":"炼金++ (AlchemyPlusPlus)","CurseForge":"alchemyplusplus","Modrinth":""},{"Id":179,"Name":"更好弓箭系统 (Better Archery)","CurseForge":"better-bows","Modrinth":""},{"Id":180,"Name":"Mumble语音链接 (Mumblelink)","CurseForge":"mumblelink","Modrinth":""},{"Id":181,"Name":"末影接口 (Ender IO)","CurseForge":"ender-io","Modrinth":"enderio"},{"Id":183,"Name":"模拟人生 (Simcraft)","CurseForge":"simcraft-minecraft","Modrinth":""},{"Id":185,"Name":"电动力学 (Electrodynamics)","CurseForge":"electrodynamics","Modrinth":"electrodynamics"},{"Id":186,"Name":"","CurseForge":"elite-armageddon","Modrinth":""},{"Id":186,"Name":"","CurseForge":"mc-1-6-4-solar-apocalypse","Modrinth":""},{"Id":187,"Name":"通用机械 (Mekanism)","CurseForge":"mekanism","Modrinth":"mekanism"},{"Id":190,"Name":"魔法远征:魔法十字军 (Magic Crusade)","CurseForge":"magic-crusade-rpg-mod","Modrinth":""},{"Id":191,"Name":"入侵 (Invasion)","CurseForge":"invasions","Modrinth":""},{"Id":192,"Name":"挖矿与砍杀:双持与战备 2 (Mine & Blade: Battlegear 2)","CurseForge":"mb-battlegear-2","Modrinth":""},{"Id":194,"Name":"星系 (GalactiCraft)","CurseForge":"galacticraft-legacy","Modrinth":"galacticraft-legacy"},{"Id":198,"Name":"旅行地图 (JourneyMap)","CurseForge":"journeymap","Modrinth":"journeymap"},{"Id":200,"Name":"等价交换经典版 (Equivalent Exchange Classic)","CurseForge":"equivalent-exchange-classic","Modrinth":""},{"Id":201,"Name":"科学地质 (Underground Biomes)","CurseForge":"underground-biomes","Modrinth":""},{"Id":201,"Name":"科学地质 (Underground Biomes)","CurseForge":"undergroundbiomesconstructs","Modrinth":""},{"Id":202,"Name":"FPS优化 (FPS Plus)","CurseForge":"fpsplus-lagfixes","Modrinth":""},{"Id":203,"Name":"魔法艺术2 (Ars Magica 2)","CurseForge":"ars-magica-2","Modrinth":""},{"Id":205,"Name":"高地 (Highlands)","CurseForge":"highlands","Modrinth":""},{"Id":206,"Name":"小狗天才 (Doggy Talents)","CurseForge":"doggy-talents","Modrinth":""},{"Id":207,"Name":"电浆工艺 (PlasmaCraft)","CurseForge":"plasmacraft","Modrinth":""},{"Id":209,"Name":"考古与化石 (Fossils and Archeology Revival)","CurseForge":"fossils","Modrinth":"fossils-and-archeology-revival"},{"Id":210,"Name":"格林的气体 (Glenn's Gases)","CurseForge":"glenns-gases","Modrinth":""},{"Id":211,"Name":"魔戒:传承 (The Lord of the Rings Mod: Legacy)","CurseForge":"the-lord-of-the-rings-mod-legacy","Modrinth":""},{"Id":212,"Name":"神秘工匠 (Thaumic Tinkerer)","CurseForge":"thaumic-tinkerer","Modrinth":""},{"Id":216,"Name":"","CurseForge":"xycraft","Modrinth":""},{"Id":217,"Name":"陆行鸟 (ChocoCraft)","CurseForge":"chococraft","Modrinth":"chococraft"},{"Id":218,"Name":"潘马斯农场 (Pam's HarvestCraft)","CurseForge":"pams-harvestcraft","Modrinth":"pams-harvestcraft"},{"Id":220,"Name":"","CurseForge":"opis","Modrinth":""},{"Id":222,"Name":"开放式方块 (OpenBlocks)","CurseForge":"openblocks","Modrinth":""},{"Id":227,"Name":"随机工艺 (RandomCraft)","CurseForge":"randomcraft-v0-1-0","Modrinth":""},{"Id":228,"Name":"龙坐骑/龙骑士 (Dragon Mounts)","CurseForge":"dragon-mounts","Modrinth":""},{"Id":229,"Name":"动物坐骑 (Animal Bikes)","CurseForge":"animal-bikes","Modrinth":""},{"Id":232,"Name":"电力魔法工具 (Electro-Magic Tools)","CurseForge":"electro-magic-tools","Modrinth":""},{"Id":233,"Name":"禁忌魔法 (Forbidden Magic)","CurseForge":"forbidden-magic","Modrinth":""},{"Id":234,"Name":"怪物交谈2 (MobTalker 2)","CurseForge":"mobtalker2","Modrinth":""},{"Id":235,"Name":"洲际导弹 (ICBM)","CurseForge":"icbm-classic","Modrinth":"icbm"},{"Id":235,"Name":"洲际导弹 (ICBM) - 已停更","CurseForge":"icbm","Modrinth":""},{"Id":236,"Name":"神秘注魔 (Thaumic Infusion)","CurseForge":"thaumic-infusion","Modrinth":""},{"Id":237,"Name":"神秘探险 (Thaumic Exploration)","CurseForge":"thaumic-exploration","Modrinth":""},{"Id":238,"Name":"解构工作台 (Deconstruction Table)","CurseForge":"deconstruction-table","Modrinth":""},{"Id":241,"Name":"可生长矿石 (Kc's Growable Ores / B0bGary's Growable Ores)","CurseForge":"kcs-growable-ores","Modrinth":"kcs-growable-ores"},{"Id":246,"Name":"高亮信息拓展 (What am I looking at)","CurseForge":"waila","Modrinth":""},{"Id":247,"Name":"混沌工艺 (ChaosCraft)","CurseForge":"chaoscraft-2","Modrinth":""},{"Id":248,"Name":"矿物追踪 (Scenter)","CurseForge":"scenter-mod","Modrinth":""},{"Id":249,"Name":"御宅工艺 (Otaku Craft)","CurseForge":"otaku-craft-mod","Modrinth":""},{"Id":250,"Name":"无中生有 (Ex Nihilo)","CurseForge":"ex-nihilo","Modrinth":""},{"Id":250,"Name":"无中生有 (Ex Nihilo)","CurseForge":"ex-nihilo-2","Modrinth":""},{"Id":251,"Name":"反应堆工艺 (ReactorCraft)","CurseForge":"reactorcraft","Modrinth":""},{"Id":252,"Name":"BC扩展:更多工具 (Buildcraft Tools)","CurseForge":"bctools","Modrinth":""},{"Id":253,"Name":"更多管道 (Additional Buildcraft Objects)","CurseForge":"additional-buildcraft-objects","Modrinth":""},{"Id":254,"Name":"金属工坊 (Foundry)","CurseForge":"foundry","Modrinth":""},{"Id":255,"Name":"重力装甲 (Gravitation Suite)","CurseForge":"gravitation-suite","Modrinth":""},{"Id":256,"Name":"红石兵工厂 (Redstone Arsenal)","CurseForge":"redstone-arsenal","Modrinth":"redstone-arsenal"},{"Id":257,"Name":"大型反应堆 (Big Reactors)","CurseForge":"big-reactors","Modrinth":""},{"Id":259,"Name":"末影水槽 (Ender Tanks)","CurseForge":"endertanks","Modrinth":"endertanks"},{"Id":259,"Name":"末影水槽 (Ender Tanks)","CurseForge":"endertanks-fabric","Modrinth":""},{"Id":260,"Name":"应用能源2 (Applied Energistics 2)","CurseForge":"applied-energistics-2","Modrinth":"ae2"},{"Id":261,"Name":"漏斗管道 (Hopper Ducts)","CurseForge":"hopper-ducts","Modrinth":""},{"Id":262,"Name":"自动钓鱼 (Autofish)","CurseForge":"autofish","Modrinth":""},{"Id":263,"Name":"MrCrayfish 的家具 (MrCrayfish's Furniture Mod)","CurseForge":"mrcrayfish-furniture-mod","Modrinth":""},{"Id":264,"Name":"无线红石 (Wireless Redstone)","CurseForge":"wireless-redstone-cbe","Modrinth":""},{"Id":264,"Name":"无线红石 (Wireless Redstone)","CurseForge":"wr-cbe-universal","Modrinth":""},{"Id":267,"Name":"自合成至星辰:真实地理 (Per Fabrica Ad Astra: Geologica)","CurseForge":"per-fabrica-ad-astra-geologica","Modrinth":""},{"Id":269,"Name":"红石炉 (Redstone Furnace)","CurseForge":"redstone-furnace","Modrinth":""},{"Id":270,"Name":"气动工艺 (PneumaticCraft: Repressurized)","CurseForge":"pneumaticcraft","Modrinth":"pneumaticcraft-repressurized"},{"Id":270,"Name":"气动工艺 (PneumaticCraft: Repressurized)","CurseForge":"pneumaticcraft-repressurized","Modrinth":""},{"Id":272,"Name":"饮水 (Thirst Mod)","CurseForge":"thirst-mod","Modrinth":""},{"Id":273,"Name":"管道 (Tubes!)","CurseForge":"tubes","Modrinth":""},{"Id":274,"Name":"飞艇与汽船 (SteamShip - SteamBoat and Pirates)","CurseForge":"pchan3-steamship-steamboat-pirates","Modrinth":""},{"Id":276,"Name":"农业增强 (Better Farming)","CurseForge":"betterfarming","Modrinth":""},{"Id":278,"Name":"更多食物 (Lots of Food)","CurseForge":"lots-of-food","Modrinth":""},{"Id":281,"Name":"水产业2/水产品2 (Aquaculture 2)","CurseForge":"aquaculture","Modrinth":"aquaculture"},{"Id":282,"Name":"高级工作台 (Project Bench)","CurseForge":"project-bench","Modrinth":""},{"Id":284,"Name":"更多苹果 (Apples+)","CurseForge":"apples-plus","Modrinth":""},{"Id":286,"Name":"量子物理 (QCraft)","CurseForge":"qcraft","Modrinth":""},{"Id":288,"Name":"疯狂科学 (Mad Science)","CurseForge":"mad-science","Modrinth":""},{"Id":290,"Name":"更多生存要素 (EnviroMine)","CurseForge":"enviromine","Modrinth":""},{"Id":292,"Name":"混沌之地 (The Erebus)","CurseForge":"the-erebus","Modrinth":""},{"Id":294,"Name":"幸运方块 (Lucky Block)","CurseForge":"lucky-block","Modrinth":""},{"Id":295,"Name":"动态光源 (Dynamic Lights)","CurseForge":"dynamic-lights","Modrinth":""},{"Id":296,"Name":"怪物娘化 (Yarr Cute Mob Models - Remake)","CurseForge":"yarr-cute-mob-models-remake-abandoned","Modrinth":"cute-mob-models"},{"Id":296,"Name":"怪物娘化 (Yarr Cute Mob Models - Remake)","CurseForge":"yarr-cute-mob-models-remake","Modrinth":""},{"Id":296,"Name":"怪物娘化 (Yarr Cute Mob Models - Remake)","CurseForge":"cute-mob-models","Modrinth":""},{"Id":297,"Name":"怪物猎人边境工艺 (Monster Hunter Frontier Craft)","CurseForge":"monster-hunter-frontier-craft","Modrinth":""},{"Id":298,"Name":"僵尸意识 (Zombie Awareness)","CurseForge":"zombie-awareness","Modrinth":"zombie-awareness"},{"Id":299,"Name":"远程接口 (Remote IO)","CurseForge":"remote-io","Modrinth":""},{"Id":300,"Name":"电力时代 (Electrical Age)","CurseForge":"electrical-age","Modrinth":""},{"Id":303,"Name":"小型炼金术 (Minor Alchemy)","CurseForge":"minor-alchemy","Modrinth":""},{"Id":309,"Name":"MCI工艺 (MCI Craft)","CurseForge":"mcicraft","Modrinth":""},{"Id":312,"Name":"工程师工具箱 (Engineer's Toolbox)","CurseForge":"engineers-toolbox","Modrinth":""},{"Id":313,"Name":"电子工具:红石供电工具 (E-Tools: Redstone Powered Tools)","CurseForge":"e-tools-redstone-powered-tools","Modrinth":""},{"Id":315,"Name":"模块化系统 (Modular Systems)","CurseForge":"modular-systems","Modrinth":""},{"Id":317,"Name":"火车工业 (Traincraft)","CurseForge":"traincraft","Modrinth":""},{"Id":318,"Name":"液压工艺 (Hydraulicraft)","CurseForge":"hydraulicraft","Modrinth":""},{"Id":319,"Name":"流体能量 (Utilities³)","CurseForge":"utilities3","Modrinth":""},{"Id":322,"Name":"冶金 (Metallurgy)","CurseForge":"metallurgy","Modrinth":""},{"Id":324,"Name":"学校 (School Mod)","CurseForge":"school-mod-forge-1-14","Modrinth":""},{"Id":325,"Name":"巫术 (Witchery)","CurseForge":"witchery","Modrinth":""},{"Id":326,"Name":"生长工艺 (GrowthCraft)","CurseForge":"growthcraft","Modrinth":""},{"Id":326,"Name":"生长工艺 (GrowthCraft)","CurseForge":"growthcraft-community-edition","Modrinth":""},{"Id":327,"Name":"格雷科技5 (GregTech 5)","CurseForge":"gregtech-5-unofficial","Modrinth":""},{"Id":329,"Name":"地幔 (Mantle)","CurseForge":"mantle","Modrinth":"mantle"},{"Id":330,"Name":"自定义矿物生成 (Custom Ore Generation)","CurseForge":"customoregen","Modrinth":""},{"Id":331,"Name":"女仆 (LittleMaidMob)","CurseForge":"littlemaidmobx","Modrinth":""},{"Id":332,"Name":"植物魔法 (Botania)","CurseForge":"botania","Modrinth":"botania"},{"Id":332,"Name":"植物魔法 (Botania)","CurseForge":"botania-fabric","Modrinth":""},{"Id":333,"Name":"交替性地形生成 (Alternate Terrain Generation)","CurseForge":"alternate-terrain-generation","Modrinth":""},{"Id":334,"Name":"基因工业 (Gendustry)","CurseForge":"gendustry","Modrinth":""},{"Id":339,"Name":"更好的字体 (BetterFonts)","CurseForge":"betterfonts","Modrinth":""},{"Id":340,"Name":"塞尔达剑技 (ZELDA SWORD SKILLS)","CurseForge":"zelda-sword-skills","Modrinth":""},{"Id":342,"Name":"我的菜单 (MineMenu)","CurseForge":"minemenu","Modrinth":""},{"Id":343,"Name":"对称度运算仪 (Symcalc)","CurseForge":"symcalc","Modrinth":""},{"Id":346,"Name":"更好的储物桶 (Just Another Better Barrel Attempt)","CurseForge":"jabba","Modrinth":""},{"Id":347,"Name":"MC直升机 (MC Helicopter Mod)","CurseForge":"mcheli-minecraft-helicopter-mod","Modrinth":""},{"Id":348,"Name":"","CurseForge":"ex-aliquo","Modrinth":""},{"Id":350,"Name":"史蒂夫矿车2 (Steve's Carts 2)","CurseForge":"steves-carts-2","Modrinth":""},{"Id":351,"Name":"海洋物语 (Mariculture)","CurseForge":"mariculture","Modrinth":""},{"Id":352,"Name":"邪恶工艺 (EvilCraft)","CurseForge":"evilcraft","Modrinth":"evilcraft"},{"Id":353,"Name":"等价交换重制版 (ProjectE)","CurseForge":"projecte","Modrinth":""},{"Id":354,"Name":"陨石 (Falling Meteors)","CurseForge":"falling-meteors-mod","Modrinth":""},{"Id":360,"Name":"冰河时代 (Glacia)","CurseForge":"glacia-dimension","Modrinth":""},{"Id":361,"Name":"水力科技 (Water Power)","CurseForge":"water-power","Modrinth":""},{"Id":362,"Name":"真实火车 (RealTrainMod)","CurseForge":"realtrainmod","Modrinth":""},{"Id":363,"Name":"苹果奶茶2 (AppleMilkTea2)","CurseForge":"applemilktea2","Modrinth":""},{"Id":364,"Name":"我的房屋 (iHouse)","CurseForge":"ihouse","Modrinth":""},{"Id":365,"Name":"FSP蒸汽动力 (Flaxbeard's Steam Power)","CurseForge":"flaxbeards-steam-power","Modrinth":"flaxbeards-steam-power"},{"Id":367,"Name":"史蒂夫工厂管理 (Steve's Factory Manager)","CurseForge":"steves-factory-manager","Modrinth":""},{"Id":370,"Name":"奥法管道 (ThaumcraftGates)","CurseForge":"thaumcraftgates","Modrinth":""},{"Id":371,"Name":"神秘合成 (Thaumcraft Recipes)","CurseForge":"thaumcraft-recipes","Modrinth":""},{"Id":372,"Name":"玩家死亡掉头 (Player Heads)","CurseForge":"player-heads-forge","Modrinth":""},{"Id":373,"Name":"更好的按键控制 (Not Enough Keys)","CurseForge":"notenoughkeys","Modrinth":""},{"Id":375,"Name":"宠物蝙蝠 (Pet Bats)","CurseForge":"pet-bats","Modrinth":""},{"Id":377,"Name":"合成柱 (Crafting Pillar Mod)","CurseForge":"crafting-pillar-mod","Modrinth":""},{"Id":378,"Name":"次元科技 (UltraTech)","CurseForge":"ultratech","Modrinth":""},{"Id":379,"Name":"高级排斥系统 (Advanced Repulsion Systems)","CurseForge":"","Modrinth":"advanced-repulsion-systems"},{"Id":380,"Name":"稀有精英怪 (AtomicStryker's Infernal Mobs)","CurseForge":"atomicstrykers-infernal-mobs","Modrinth":""},{"Id":381,"Name":"苹果核 (AppleCore)","CurseForge":"applecore","Modrinth":""},{"Id":385,"Name":"神秘能源 (Thaumic Energistics)","CurseForge":"thaumic-energistics","Modrinth":""},{"Id":387,"Name":"凿子 (Chisel)","CurseForge":"chisel","Modrinth":""},{"Id":388,"Name":"核电工艺 (NuclearCraft)","CurseForge":"nuclearcraft-mod","Modrinth":"nuclearcraft"},{"Id":389,"Name":"开放式电脑 (Open Computers)","CurseForge":"opencomputers","Modrinth":"opencomputers"},{"Id":390,"Name":"元素之石 (Elemental Stones)","CurseForge":"elemental-stones","Modrinth":""},{"Id":392,"Name":"万用高亮显示 (Waila NBT)","CurseForge":"waila-nbt","Modrinth":""},{"Id":393,"Name":"神秘节点追踪 (Thaumcraft Node Tracker)","CurseForge":"thaumcraft-node-tracker","Modrinth":""},{"Id":394,"Name":"箱载世界 (Geochests)","CurseForge":"geochests","Modrinth":""},{"Id":395,"Name":"降落伞 (Parachute)","CurseForge":"parachutemod","Modrinth":""},{"Id":396,"Name":"宝石效果/增益宝石 (Gem Buffs)","CurseForge":"gem-buffs-infinite-potion-effects","Modrinth":""},{"Id":397,"Name":"RF工具箱 (RFTools)","CurseForge":"rftools","Modrinth":"rftools"},{"Id":398,"Name":"AtomicStryker的魔法线 (AtomicStryker's Magic Yarn)","CurseForge":"atomicstrykers-magic-yarn","Modrinth":""},{"Id":400,"Name":"怀旧地形 (Old World Gen)","CurseForge":"teds-old-world-gen-mod","Modrinth":""},{"Id":402,"Name":"超能力/学园都市 (AcademyCraft)","CurseForge":"academycraft","Modrinth":""},{"Id":404,"Name":"生活调味料 (The Spice of Life)","CurseForge":"the-spice-of-life","Modrinth":""},{"Id":408,"Name":"储物抽屉 (Storage Drawers)","CurseForge":"storage-drawers","Modrinth":"storagedrawers"},{"Id":409,"Name":"冬天的世界 (Wintercraft)","CurseForge":"wintercraft-gruntpie224","Modrinth":""},{"Id":412,"Name":"深海舰队收藏 (ShinColle)","CurseForge":"shincollecraft","Modrinth":""},{"Id":412,"Name":"深海舰队收藏 (ShinColle)","CurseForge":"shincolle","Modrinth":""},{"Id":414,"Name":"通用字体修复 / Unicode 字体修复 (Unicode Font Fixer)","CurseForge":"unicode-font-fixer","Modrinth":""},{"Id":415,"Name":"星际之门 (LanteaCraft)","CurseForge":"lanteacraft","Modrinth":""},{"Id":416,"Name":"超能物质 (Matter Overdrive)","CurseForge":"matteroverdrive-17-edition","Modrinth":""},{"Id":416,"Name":"超能物质 (Matter Overdrive)","CurseForge":"matteroverdrive-legacy","Modrinth":""},{"Id":417,"Name":"污秽魔法 (Tainted Magic)","CurseForge":"tainted-magic","Modrinth":""},{"Id":418,"Name":"","CurseForge":"minetweaker3","Modrinth":""},{"Id":419,"Name":"砍树 (Treecapitator)","CurseForge":"treecapitator","Modrinth":""},{"Id":420,"Name":"即时建造 (Insta House)","CurseForge":"insta-house","Modrinth":""},{"Id":421,"Name":"多页箱子 (Multi-Page Chest)","CurseForge":"multi-page-chest","Modrinth":""},{"Id":423,"Name":"龙之进化/龙之研究 (Draconic Evolution)","CurseForge":"draconic-evolution","Modrinth":"draconic-evolution"},{"Id":424,"Name":"更多行星 (More Planets)","CurseForge":"more-planets-gc-addon","Modrinth":"more-planets"},{"Id":425,"Name":"热力基本 (Thermal Foundation)","CurseForge":"thermal-foundation","Modrinth":"thermal-foundation"},{"Id":428,"Name":"界面进入提醒 (Ding)","CurseForge":"ding","Modrinth":"ding"},{"Id":429,"Name":"末影设备 (Ender Utilities)","CurseForge":"ender-utilities","Modrinth":"ender-utilities"},{"Id":430,"Name":"魔法作物 (Magical Crops)","CurseForge":"magical-crops","Modrinth":""},{"Id":431,"Name":"更多头颅 (Headcrumbs)","CurseForge":"headcrumbs","Modrinth":""},{"Id":432,"Name":"星辉生万物 (Ex Astris)","CurseForge":"ex-astris","Modrinth":""},{"Id":433,"Name":"冰冻工艺 (FrostCraft)","CurseForge":"xelitez-frostcraft","Modrinth":""},{"Id":434,"Name":"极限末地生存 (Hardcore Ender Expansion)","CurseForge":"hardcore-ender-expansion","Modrinth":"hardcore-ender-expansion"},{"Id":435,"Name":"更多流沙 (More Fun Quicksand Mod)","CurseForge":"more-fun-quicksand-mod","Modrinth":""},{"Id":436,"Name":"快速工艺 (FastCraft)","CurseForge":"fastcraft","Modrinth":""},{"Id":437,"Name":"","CurseForge":"forgeautoshutdown-1-12-2","Modrinth":"forgeautoshutdown"},{"Id":439,"Name":"刀剑神域UI (Sword Art Online UI / SAO UI)","CurseForge":"sao-ui","Modrinth":""},{"Id":440,"Name":"匠魂扩展 (Extra TiC)","CurseForge":"extratic","Modrinth":""},{"Id":441,"Name":"四次元口袋 (DimensionalPockets)","CurseForge":"dimensional-pockets","Modrinth":""},{"Id":442,"Name":"机器方块 (JointBlock)","CurseForge":"joint-block-1-7-10","Modrinth":""},{"Id":443,"Name":"安全工艺 (Security Craft)","CurseForge":"security-craft","Modrinth":"security-craft"},{"Id":444,"Name":"建筑扩充 (Buildcraft Additions)","CurseForge":"buildcraft-additions","Modrinth":""},{"Id":445,"Name":"基岩工艺 (Bedrockium Mod)","CurseForge":"bedrockium-mod","Modrinth":""},{"Id":446,"Name":"","CurseForge":"blocksteps","Modrinth":""},{"Id":447,"Name":"神秘视界 (Thaumic Horizons)","CurseForge":"thaumic-horizons","Modrinth":"thaumic-horizons"},{"Id":448,"Name":"","CurseForge":"modtweaker","Modrinth":"modtweaker"},{"Id":449,"Name":"战利品 (Loot Bags)","CurseForge":"lootbags","Modrinth":""},{"Id":450,"Name":"高级地热发电机 (Compact Lava Generator)","CurseForge":"compact-lava-generator","Modrinth":""},{"Id":451,"Name":"祖鲁 (Project Zulu)","CurseForge":"project-zulu","Modrinth":""},{"Id":453,"Name":"华夏文明 (ChinaCraft)","CurseForge":"chinacraft","Modrinth":""},{"Id":456,"Name":"更好的开局 (Better Beginnings)","CurseForge":"betterbeginnings-mod","Modrinth":""},{"Id":457,"Name":"工具怪物 (Utility Mobs)","CurseForge":"utility-mobs","Modrinth":""},{"Id":458,"Name":"饥饿改革 (Hunger Overhaul)","CurseForge":"hunger-overhaul","Modrinth":""},{"Id":459,"Name":"JEI物品管理器 (Just Enough Items)","CurseForge":"jei","Modrinth":"jei"},{"Id":460,"Name":"","CurseForge":"jeiaddons","Modrinth":""},{"Id":461,"Name":"磁场工艺 (MagnetiCraft)","CurseForge":"magneticraft","Modrinth":""},{"Id":462,"Name":"缤纷纪元 (ChromatiCraft)","CurseForge":"chromaticraft","Modrinth":""},{"Id":463,"Name":"沉浸工程 (Immersive Engineering)","CurseForge":"immersive-engineering","Modrinth":"immersiveengineering"},{"Id":464,"Name":"时装工坊 (Armourer's Workshop)","CurseForge":"armourers-workshop","Modrinth":"armourers-workshop"},{"Id":465,"Name":"植物矿石 (Plants To Ores)","CurseForge":"plants-to-ores","Modrinth":""},{"Id":466,"Name":"命令强化 (Slash)","CurseForge":"slash","Modrinth":""},{"Id":467,"Name":"把未来带回现实 (Et Futurum)","CurseForge":"et-futurum","Modrinth":""},{"Id":468,"Name":"傻瓜烹饪/懒人厨房 (Cooking for Blockheads)","CurseForge":"cooking-for-blockheads","Modrinth":"cooking-for-blockheads"},{"Id":468,"Name":"傻瓜烹饪/懒人厨房 (Cooking for Blockheads)","CurseForge":"cooking-for-blockheads-fabric","Modrinth":""},{"Id":470,"Name":"","CurseForge":"psi","Modrinth":"psi"},{"Id":471,"Name":"夜眠梦境/晚安的梦境 (Good Night's Sleep)","CurseForge":"good-nights-sleep","Modrinth":""},{"Id":472,"Name":"宾尼的模组合集 (Binnie's Mods)","CurseForge":"binnies-mods","Modrinth":"binnies-mods"},{"Id":473,"Name":"饰品栏 (Baubles)","CurseForge":"baubles","Modrinth":""},{"Id":474,"Name":"更多剑 (MoreSwords)","CurseForge":"more-swords-mod","Modrinth":"more-swords-mod"},{"Id":475,"Name":"神秘基础学 (Thaumic Bases)","CurseForge":"thaumic-bases","Modrinth":""},{"Id":475,"Name":"神秘基础学 (Thaumic Bases)","CurseForge":"thaumic-bases-unofficial","Modrinth":""},{"Id":476,"Name":"源质魔法3 (EssentialCraft 3)","CurseForge":"essentialcraft-3","Modrinth":""},{"Id":478,"Name":"困难任务 (Hardcore Questing Mode)","CurseForge":"hardcore-questing-mode","Modrinth":"hqm"},{"Id":479,"Name":"矿辞统一 (UniDict)","CurseForge":"unidict","Modrinth":"unidict"},{"Id":480,"Name":"热动力学 (Thermal Dynamics)","CurseForge":"thermal-dynamics","Modrinth":"thermal-dynamics"},{"Id":481,"Name":"动物学 (Zoology)","CurseForge":"zoology","Modrinth":""},{"Id":482,"Name":"植物世界 (Plant Mega Pack)","CurseForge":"plant-mega-pack-reupload","Modrinth":""},{"Id":483,"Name":"神秘启示录 (Thaumic Revelations)","CurseForge":"thaumic-revelations","Modrinth":""},{"Id":485,"Name":"传送书 (Warp Book)","CurseForge":"warp-book","Modrinth":""},{"Id":486,"Name":"压缩工具 (Ex Compressum)","CurseForge":"ex-compressum","Modrinth":"ex-compressum"},{"Id":487,"Name":"简易喷气背包 (Simply Jetpacks)","CurseForge":"simply-jetpacks","Modrinth":""},{"Id":488,"Name":"血液兵工厂 (Blood Arsenal)","CurseForge":"blood-arsenal","Modrinth":""},{"Id":489,"Name":"模拟城市 (Sim-U-Kraft)","CurseForge":"sim-u-kraft-old","Modrinth":""},{"Id":490,"Name":"超级英雄无限 (Superheroes Unlimited)","CurseForge":"superheroes-unlimited","Modrinth":""},{"Id":491,"Name":"海洋世界 (Oceancraft)","CurseForge":"oceancraft-mod","Modrinth":""},{"Id":494,"Name":"巫师宝具 (Witching Gadgets)","CurseForge":"witching-gadgets","Modrinth":""},{"Id":496,"Name":"建筑兼容 (Buildcraft Compat)","CurseForge":"buildcraft-compat","Modrinth":"buildcraft-compat"},{"Id":497,"Name":"额外植物学 (ExtraBotany)","CurseForge":"extrabotany","Modrinth":""},{"Id":498,"Name":"植物魔法非官方版 (Botania Unoffical)","CurseForge":"botania-unofficial","Modrinth":""},{"Id":499,"Name":"交错次元 (The Betweenlands)","CurseForge":"angry-pixel-the-betweenlands-mod","Modrinth":""},{"Id":500,"Name":"真实的第一人称视角 (Real First Person 2)","CurseForge":"real-first-person-render","Modrinth":""},{"Id":503,"Name":"自定义物品3 (Custom Stuff 3)","CurseForge":"custom-stuff-3","Modrinth":""},{"Id":504,"Name":"地图生成锁定 (Lockdown)","CurseForge":"lockdown","Modrinth":""},{"Id":505,"Name":"无尽贪婪 (Avaritia)","CurseForge":"avaritia","Modrinth":""},{"Id":505,"Name":"无尽贪婪 (Avaritia)","CurseForge":"avaritia-1-10","Modrinth":""},{"Id":507,"Name":"源质神秘学 (Essential Thaumaturgy)","CurseForge":"essential-thaumaturgy","Modrinth":""},{"Id":508,"Name":"深渊国度 (AbyssalCraft)","CurseForge":"abyssalcraft","Modrinth":""},{"Id":509,"Name":"运算工艺 (Calculator)","CurseForge":"calculator","Modrinth":""},{"Id":510,"Name":"","CurseForge":"sextiarysector2","Modrinth":""},{"Id":511,"Name":"曲率驱动 (WarpDrive)","CurseForge":"warpdrive","Modrinth":""},{"Id":512,"Name":"飞向未来 (Futurepack Mod)","CurseForge":"futurepack","Modrinth":"futurepack"},{"Id":513,"Name":"HBM的核科技 (HBM's Nuclear Tech Mod)","CurseForge":"hbms-nuclear-tech-mod","Modrinth":"ntm"},{"Id":514,"Name":"农业工艺 (AgriCraft)","CurseForge":"agricraft","Modrinth":"agricraft"},{"Id":515,"Name":"奥法工程学 (Arcane Engineering)","CurseForge":"arcane-engineering","Modrinth":""},{"Id":516,"Name":"","CurseForge":"immersive-integration","Modrinth":""},{"Id":517,"Name":"","CurseForge":"ae2-stuff","Modrinth":""},{"Id":518,"Name":"可视化合成表编辑器 (MineTweaker RecipeMaker)","CurseForge":"minetweaker-recipemaker","Modrinth":""},{"Id":519,"Name":"神秘染料 (Thaumic Dyes)","CurseForge":"thaumic-dyes","Modrinth":""},{"Id":520,"Name":"魔像秘经 (Gadomancy)","CurseForge":"gadomancy","Modrinth":""},{"Id":521,"Name":"背包宠物 (Inventory Pets)","CurseForge":"inventory-pets","Modrinth":""},{"Id":522,"Name":"装备等级 (Levels)","CurseForge":"levels","Modrinth":""},{"Id":523,"Name":"","CurseForge":"keeping-inventory","Modrinth":""},{"Id":524,"Name":"矿石菌种 (OreSpawn)","CurseForge":"orespawn","Modrinth":""},{"Id":525,"Name":"圣遗物 (Reliquary Reincarnations (Reliquary) / Xeno's Reliquary)","CurseForge":"reliquary-reincarnations","Modrinth":"reliquary-reincarnations"},{"Id":525,"Name":"圣遗物 (Reliquary Reincarnations / Xeno's Reliquary) (Reliquary)","CurseForge":"reliquary","Modrinth":""},{"Id":526,"Name":"更多弯曲 (Mo' Bends)","CurseForge":"mo-bends","Modrinth":"mobends"},{"Id":527,"Name":"夸克 (Quark)","CurseForge":"quark","Modrinth":"quark"},{"Id":529,"Name":"神圣RPG (DivineRPG)","CurseForge":"official-divinerpg","Modrinth":"divinerpg"},{"Id":530,"Name":"丰收物语 (Harvest Festival)","CurseForge":"harvest-festival","Modrinth":""},{"Id":531,"Name":"意志坚定 (Tough As Nails)","CurseForge":"tough-as-nails","Modrinth":"tough-as-nails"},{"Id":532,"Name":"不再有更新 (Non Update)","CurseForge":"non-update","Modrinth":""},{"Id":533,"Name":"粘土工业 (Clayium)","CurseForge":"clayium","Modrinth":""},{"Id":534,"Name":"更好的储存 (Better Storage)","CurseForge":"better-storage","Modrinth":""},{"Id":535,"Name":"达芬奇之舟/达芬奇的船 (Davincis Vessels)","CurseForge":"davincis-vessels","Modrinth":""},{"Id":536,"Name":"bspkrs核心 (bspkrsCore)","CurseForge":"bspkrscore","Modrinth":""},{"Id":536,"Name":"bspkrs核心 (bspkrsCore)","CurseForge":"bspkrscore-updated","Modrinth":""},{"Id":537,"Name":"科技枪 (Techguns)","CurseForge":"techguns","Modrinth":""},{"Id":538,"Name":"特殊背包 (Iron Backpacks)","CurseForge":"iron-backpacks","Modrinth":""},{"Id":539,"Name":"开放式炮台 (OpenModularTurrets)","CurseForge":"openmodularturrets","Modrinth":""},{"Id":540,"Name":"量子魔法 (Technomancy)","CurseForge":"technomancy","Modrinth":""},{"Id":541,"Name":"量子通量 (QuantumFlux)","CurseForge":"quantumflux","Modrinth":""},{"Id":542,"Name":"方块探测 (Block Sniffer)","CurseForge":"blocksniffer","Modrinth":""},{"Id":543,"Name":"","CurseForge":"dragonapi","Modrinth":""},{"Id":544,"Name":"电力工艺 (ElectriCraft)","CurseForge":"electricraft","Modrinth":""},{"Id":545,"Name":"糖果世界 (CandyCraft)","CurseForge":"candycraft","Modrinth":""},{"Id":547,"Name":"我的幻想2 (MineFantasy2)","CurseForge":"minefantasy2","Modrinth":""},{"Id":549,"Name":"铁路战争 (Rails of War)","CurseForge":"rails-of-war","Modrinth":""},{"Id":550,"Name":"实用拓展 (Actually Additions)","CurseForge":"actually-additions","Modrinth":"actually-additions"},{"Id":551,"Name":"星空 (Galaxy Space)","CurseForge":"galaxy-space-addon-for-galacticraft","Modrinth":"galaxy-space"},{"Id":552,"Name":"辣条工艺 (Latiao Craft)","CurseForge":"latiao-craft","Modrinth":""},{"Id":554,"Name":"陨石工艺 (MeteorCraft)","CurseForge":"meteorcraft","Modrinth":""},{"Id":555,"Name":"匠魂增强 (Iguanas Tinker Tweaks)","CurseForge":"iguanas-tinker-tweaks","Modrinth":""},{"Id":556,"Name":"箭矢视角 (Arrow Cam Mod)","CurseForge":"arrow-cam","Modrinth":""},{"Id":557,"Name":"茶风·纪事 (Tea the Story)","CurseForge":"tea-the-story","Modrinth":""},{"Id":557,"Name":"茶风·纪事 (Tea the Story) - 资源包-音乐补充包","CurseForge":"2668920","Modrinth":""},{"Id":558,"Name":"科技复兴 (Tech Reborn)","CurseForge":"techreborn","Modrinth":"techreborn"},{"Id":559,"Name":"注魔酿造 (Infusion Brewing)","CurseForge":"infusinbrewing","Modrinth":""},{"Id":560,"Name":"侏罗纪时代 (JurassiCraft)","CurseForge":"jurassicraft","Modrinth":""},{"Id":561,"Name":"永恒奇点 (Eternal Singularity)","CurseForge":"eternal-singularity","Modrinth":""},{"Id":562,"Name":"","CurseForge":"codechicken-lib-1-8","Modrinth":"codechicken-lib"},{"Id":563,"Name":"鸡块核心 (CodeChickenCore)","CurseForge":"codechicken-core-1-8","Modrinth":"codechicken-core"},{"Id":563,"Name":"鸡块核心 (CodeChickenCore)","CurseForge":"codechickencore","Modrinth":""},{"Id":564,"Name":"自动化魔法 (Automagy)","CurseForge":"automagy","Modrinth":""},{"Id":565,"Name":"AOBD的奇点 (AOBD Singularities)","CurseForge":"aobd-singularities","Modrinth":""},{"Id":566,"Name":"通用奇点 (Universal Singularities)","CurseForge":"universal-singularities","Modrinth":""},{"Id":567,"Name":"超能力怪物 (Academy Monster)","CurseForge":"academy-monster","Modrinth":""},{"Id":568,"Name":"声呐核心 (Sonar Core)","CurseForge":"sonar-core","Modrinth":""},{"Id":569,"Name":"耐久信息显示 (ArmorStatusHUD)","CurseForge":"armorstatushud","Modrinth":""},{"Id":570,"Name":"","CurseForge":"wanionlib","Modrinth":"wanionlib"},{"Id":571,"Name":"","CurseForge":"llibrary","Modrinth":""},{"Id":571,"Name":"","CurseForge":"llibrary-legacy","Modrinth":""},{"Id":583,"Name":"环境科技 (Environmental Tech)","CurseForge":"environmental-tech","Modrinth":"environmental-tech"},{"Id":585,"Name":"魔法饼干 (Magic Cookies)","CurseForge":"magic-cookies","Modrinth":""},{"Id":586,"Name":"神秘土豆 (Thaumic Potatoes)","CurseForge":"thaumic-potatoes","Modrinth":""},{"Id":587,"Name":"加速火把 (Torcherino)","CurseForge":"torcherino","Modrinth":"torcherino"},{"Id":588,"Name":"","CurseForge":"craftable-nether-star","Modrinth":""},{"Id":589,"Name":"连锁采矿/矿脉矿工 (Vein Miner)","CurseForge":"veinminer","Modrinth":""},{"Id":591,"Name":"","CurseForge":"another-one-bites-the-dust","Modrinth":""},{"Id":593,"Name":"恶魔果实 (Mine Mine no Mi)","CurseForge":"mine-mine-no-mi","Modrinth":"mine-mine-no-mi"},{"Id":594,"Name":"高级火箭 (Advanced Rocketry)","CurseForge":"advanced-rocketry","Modrinth":""},{"Id":595,"Name":"维克的现代战争 (Vic's Modern Warfare Mod)","CurseForge":"vics-modern-warfare-mod","Modrinth":""},{"Id":596,"Name":"机会方块 (Chance Cubes)","CurseForge":"chance-cubes","Modrinth":"chance-cubes"},{"Id":597,"Name":"","CurseForge":"gun-customization","Modrinth":""},{"Id":598,"Name":"末影核心 (EnderCore)","CurseForge":"endercore","Modrinth":"endercore"},{"Id":599,"Name":"","CurseForge":"brandons-core","Modrinth":"brandons-core"},{"Id":600,"Name":"CoFH核心 (CoFH Core)","CurseForge":"cofh-core","Modrinth":"cofh-core"},{"Id":601,"Name":"状态信息显示 (StatusEffectHUD)","CurseForge":"statuseffecthud","Modrinth":""},{"Id":602,"Name":"","CurseForge":"lambdalib","Modrinth":""},{"Id":603,"Name":"红石电子 (Redstonic)","CurseForge":"redstonic","Modrinth":""},{"Id":604,"Name":"","CurseForge":"libvulpes","Modrinth":""},{"Id":605,"Name":"伊加墨的财产 (Ye Gamol Chattels)","CurseForge":"ye-gamol-chattels","Modrinth":""},{"Id":606,"Name":"","CurseForge":"ivtoolkit","Modrinth":""},{"Id":607,"Name":"狼铠 (Wolf Armor and Storage)","CurseForge":"wolf-armor-and-storage","Modrinth":""},{"Id":608,"Name":"更好的播放器 (Better Records)","CurseForge":"better-records","Modrinth":""},{"Id":609,"Name":"创世神 (WorldEdit)","CurseForge":"worldedit","Modrinth":""},{"Id":612,"Name":"","CurseForge":"worldeditcui","Modrinth":""},{"Id":612,"Name":"","CurseForge":"worldeditcui-fabric","Modrinth":"worldedit-cui"},{"Id":613,"Name":"","CurseForge":"ztones","Modrinth":""},{"Id":615,"Name":"","CurseForge":"dummycore","Modrinth":""},{"Id":615,"Name":"","CurseForge":"dummycore-unofficial","Modrinth":""},{"Id":616,"Name":"更多实用设备 (Extra Utilities)","CurseForge":"extra-utilities","Modrinth":""},{"Id":617,"Name":"开放式模组库 (OpenModsLib)","CurseForge":"openmodslib","Modrinth":""},{"Id":618,"Name":"余烬 (Embers)","CurseForge":"embers","Modrinth":""},{"Id":619,"Name":"极简血量显示 (Neat)","CurseForge":"neat","Modrinth":"neat"},{"Id":619,"Name":"极简血量显示 (Neat)","CurseForge":"neat-fabric-quilt","Modrinth":""},{"Id":620,"Name":"怪物属性 (Mob Properties)","CurseForge":"mob-properties","Modrinth":""},{"Id":621,"Name":"Gany的世界 (Gany's Surface)","CurseForge":"ganys-surface","Modrinth":""},{"Id":623,"Name":"EZ存储 (EZStorage)","CurseForge":"ezstorage","Modrinth":""},{"Id":624,"Name":"","CurseForge":"ichunutil","Modrinth":"ichunutil"},{"Id":625,"Name":"","CurseForge":"intangible","Modrinth":""},{"Id":627,"Name":"","CurseForge":"cb-multipart","Modrinth":"cb-multipart"},{"Id":627,"Name":"","CurseForge":"forge-multi-part","Modrinth":""},{"Id":628,"Name":"泰坦生物 (The Titans)","CurseForge":"the-titans-mod","Modrinth":""},{"Id":628,"Name":"泰坦生物 (The Titans) - 旧","CurseForge":"the-titans-legacy","Modrinth":""},{"Id":629,"Name":"","CurseForge":"enchiridion","Modrinth":""},{"Id":630,"Name":"合成冲突消除 (NoMoreRecipeConflict)","CurseForge":"stimmedcow-nomorerecipeconflict","Modrinth":""},{"Id":631,"Name":"工匠接口 (Tinker I/O)","CurseForge":"tinker-i-o","Modrinth":""},{"Id":632,"Name":"生物工厂 (Woot)","CurseForge":"woot","Modrinth":""},{"Id":634,"Name":"热力膨胀 (Thermal Expansion)","CurseForge":"thermal-expansion","Modrinth":""},{"Id":635,"Name":"真实地形生成 (Realistic Terrain Generation)","CurseForge":"realistic-terrain-generation","Modrinth":""},{"Id":635,"Name":"真实地形生成 (Realistic Terrain Generation) - RTG 原作者继续开发的分支","CurseForge":"realistic-terrain-generation-plus","Modrinth":""},{"Id":636,"Name":"怪物重生 (Mob Rebirth)","CurseForge":"mob-rebirth","Modrinth":"mob-rebirth"},{"Id":637,"Name":"疾病 (Disease Craft)","CurseForge":"diseasecraft","Modrinth":""},{"Id":638,"Name":"僵尸感染 (Zombie Infection)","CurseForge":"zombie-infection","Modrinth":""},{"Id":639,"Name":"星辉魔法 (Astral Sorcery)","CurseForge":"astral-sorcery","Modrinth":""},{"Id":640,"Name":"全新科技 (NeoTech)","CurseForge":"neotech","Modrinth":""},{"Id":641,"Name":"启示录 (Apocalypse)","CurseForge":"apocalypse-mod","Modrinth":""},{"Id":642,"Name":"","CurseForge":"bookshelf-api-library","Modrinth":""},{"Id":644,"Name":"","CurseForge":"movingworld","Modrinth":""},{"Id":645,"Name":"水晶花园 (Garden of Glass)","CurseForge":"botania-garden-of-glass","Modrinth":"gardenofglass"},{"Id":646,"Name":"RP增强 (Tube Stuff)","CurseForge":"","Modrinth":"tubestuff"},{"Id":647,"Name":"微型自动化 (Tiny Progressions)","CurseForge":"tiny-progressions","Modrinth":""},{"Id":649,"Name":"更多首饰 (Baubles Stuff)","CurseForge":"baubles-stuff","Modrinth":""},{"Id":650,"Name":"神秘奥义 (Thaumaturgical Knowledge)","CurseForge":"thaumaturgical-knowledge","Modrinth":""},{"Id":651,"Name":"高等神秘学 (Advanced Thaumaturgy)","CurseForge":"advanced-thaumaturgy-2","Modrinth":""},{"Id":652,"Name":"","CurseForge":"INpureCore","Modrinth":""},{"Id":653,"Name":"战斗高塔 (AtomicStryker's Battle Towers)","CurseForge":"atomicstrykers-battle-towers","Modrinth":""},{"Id":654,"Name":"重生核心 (Reborn Core)","CurseForge":"reborncore","Modrinth":"reborncore"},{"Id":655,"Name":"史蒂夫矿车:重生 (Steve's Carts Reborn)","CurseForge":"steves-carts-reborn","Modrinth":"steves-carts-reborn"},{"Id":656,"Name":"简单分类 (Refined Relocation)","CurseForge":"refined-relocation","Modrinth":""},{"Id":657,"Name":"","CurseForge":"gilded-games-util","Modrinth":""},{"Id":658,"Name":"危险RPG (Danger RPG)","CurseForge":"dangerrpg","Modrinth":""},{"Id":659,"Name":"更多门 (MalisisDoors)","CurseForge":"malisisdoors","Modrinth":""},{"Id":661,"Name":"更多有趣的食物 (Just Another Fun Food Addon)","CurseForge":"jaffa-foods-a-harvestcraft-addon","Modrinth":""},{"Id":662,"Name":"热力冶炼厂 (Thermal Smeltery)","CurseForge":"thermal-smeltery","Modrinth":""},{"Id":664,"Name":"","CurseForge":"malisiscore","Modrinth":""},{"Id":665,"Name":"","CurseForge":"valkyrielib","Modrinth":"valkyrielib"},{"Id":666,"Name":"","CurseForge":"waila-harvestability","Modrinth":""},{"Id":667,"Name":"混合魔法 (Mixed Magic)","CurseForge":"mixed-magic","Modrinth":""},{"Id":668,"Name":"","CurseForge":"hwyla","Modrinth":"hwyla"},{"Id":669,"Name":"","CurseForge":"crafttweaker","Modrinth":"crafttweaker"},{"Id":671,"Name":"实时聊天翻译 (Real Time Chat Translation Mod)","CurseForge":"real-time-chat-translation-mod","Modrinth":""},{"Id":673,"Name":"实用物流监控2 (Practical Logistics 2)","CurseForge":"practical-logistics-2","Modrinth":""},{"Id":674,"Name":"高级能源 (EnergyAdditions)","CurseForge":"energyadditions","Modrinth":""},{"Id":675,"Name":"高级发电机 (Advanced Generators)","CurseForge":"advanced-generators","Modrinth":"advanced-generators"},{"Id":676,"Name":"","CurseForge":"bdlib","Modrinth":""},{"Id":678,"Name":"压力管道 (Pressure Pipes)","CurseForge":"pressure-pipes","Modrinth":""},{"Id":679,"Name":"在线相框显示 (OnlinePictureFrame)","CurseForge":"onlinepictureframe","Modrinth":""},{"Id":680,"Name":"超级电路 (Super Circuit Maker)","CurseForge":"super-circuit-maker","Modrinth":""},{"Id":681,"Name":"","CurseForge":"switch-bow","Modrinth":""},{"Id":682,"Name":"模拟殖民地 (MineColonies)","CurseForge":"minecolonies","Modrinth":"minecolonies"},{"Id":684,"Name":"","CurseForge":"mcjtylib","Modrinth":"mcjtylib"},{"Id":685,"Name":"","CurseForge":"mcmultipart","Modrinth":""},{"Id":686,"Name":"Aroma1997的维度世界 (Aroma1997's Dimensional World)","CurseForge":"aroma1997s-dimensional-world","Modrinth":""},{"Id":687,"Name":"超级合成框架 (Super Crafting Frame)","CurseForge":"project-73926","Modrinth":""},{"Id":688,"Name":"阿卡什宝典 (Akashic Tome)","CurseForge":"akashic-tome","Modrinth":"akashic-tome"},{"Id":689,"Name":"变形工具 (Morph-o-Tool)","CurseForge":"morph-o-tool","Modrinth":"morph-o-tool"},{"Id":690,"Name":"装饰工艺 (Decocraft)","CurseForge":"decocraft","Modrinth":"decocraft"},{"Id":691,"Name":"精致存储 (Refined Storage)","CurseForge":"refined-storage","Modrinth":"refined-storage"},{"Id":692,"Name":"深度共振 (Deep Resonance)","CurseForge":"deep-resonance","Modrinth":"deep-resonance"},{"Id":696,"Name":"时之沙 (Clockwork Phase)","CurseForge":"clockwork-phase","Modrinth":""},{"Id":698,"Name":"","CurseForge":"autoreglib","Modrinth":"autoreglib"},{"Id":699,"Name":"根源魔法 (Roots)","CurseForge":"roots","Modrinth":""},{"Id":700,"Name":"指南 (Guide-Api)","CurseForge":"guide-api","Modrinth":""},{"Id":700,"Name":"指南 (Guide-Api) - Archive","CurseForge":"","Modrinth":"guide-api-legacy"},{"Id":701,"Name":"","CurseForge":"fraghappy-reborn","Modrinth":""},{"Id":702,"Name":"基因重生 (Genetics Reborn)","CurseForge":"genetics-reborn","Modrinth":""},{"Id":704,"Name":"路由重生 (Router Reborn)","CurseForge":"router-reborn","Modrinth":""},{"Id":706,"Name":"","CurseForge":"coroutil","Modrinth":"coroutil"},{"Id":707,"Name":"原生魔法 (Vanilla Magic)","CurseForge":"vanilla-magic","Modrinth":""},{"Id":708,"Name":"御灵 (Taoism)","CurseForge":"taoism","Modrinth":""},{"Id":709,"Name":"源质魔法4非官方版 (EssentialCraft 4 Unofficial)","CurseForge":"essentialcraft-4-unofficial","Modrinth":""},{"Id":710,"Name":"天体 (Celestial Craft)","CurseForge":"celestial-craft","Modrinth":""},{"Id":711,"Name":"失落神秘 (Pengu's Lost Thaumaturgy)","CurseForge":"lost-thaumaturgy","Modrinth":""},{"Id":712,"Name":"更多空间/压缩空间 (Compact Machines)","CurseForge":"compact-machines","Modrinth":""},{"Id":714,"Name":"无中生有-世间万物 (Ex Nihilo Omnia)","CurseForge":"ex-nihilo-omnia","Modrinth":""},{"Id":715,"Name":"最终之剑 (The Last Sword You Will Ever Need Mod)","CurseForge":"last-sword-you-will-ever-need-mo","Modrinth":"the-last-sword-you-will-ever-need-mod"},{"Id":716,"Name":"最终之剑:重生 (The Last Sword You Will Ever Need Reboot)","CurseForge":"the-last-sword-you-will-ever-need-reboot","Modrinth":"the-last-sword-you-will-ever-need-reboot"},{"Id":718,"Name":"FTB Library(旧版) (FTB Library (Forge) (Legacy))","CurseForge":"ftb-library-legacy-forge","Modrinth":""},{"Id":721,"Name":"神秘土豆2 (Thaumic Potatoes 2)","CurseForge":"thaumic-potatoes-2","Modrinth":""},{"Id":722,"Name":"额外行星 (Extra Planets)","CurseForge":"extraplanets","Modrinth":""},{"Id":724,"Name":"X工艺 (XtraCraft Mod)","CurseForge":"xtracraft-mod","Modrinth":""},{"Id":726,"Name":"城墙城市生成 (Cellular Automata Generator/Great Wall Mod/Walled City Generator)","CurseForge":"formivore-generators-walled-city-great-wall-ca","Modrinth":""},{"Id":728,"Name":"","CurseForge":"voltz-engine","Modrinth":""},{"Id":729,"Name":"方块酱 (Blocklings)","CurseForge":"blocklings","Modrinth":""},{"Id":733,"Name":"自然魔法 (Magia Naturalis)","CurseForge":"magia-naturalis","Modrinth":"magia-naturalis"},{"Id":734,"Name":"木剪刀 (Wooden Shears)","CurseForge":"sbm-wooden-shears","Modrinth":""},{"Id":736,"Name":"魔法学院 (Schools of Magic)","CurseForge":"schools-of-magic","Modrinth":""},{"Id":737,"Name":"天境要素扫描 (Aether Aspects)","CurseForge":"aether-aspects","Modrinth":""},{"Id":738,"Name":"奥法献祭学 (Arcane Arteries)","CurseForge":"arcane-arteries","Modrinth":""},{"Id":739,"Name":"","CurseForge":"thaumic-palmistry","Modrinth":""},{"Id":740,"Name":"一键合成 (One click crafting)","CurseForge":"one-click-crafting","Modrinth":""},{"Id":741,"Name":"源质神秘学(非官方版) (Essential Thaumaturgy Unofficial)","CurseForge":"essential-thaumaturgy-unofficial","Modrinth":""},{"Id":742,"Name":"无线合成终端 (Wireless Crafting Terminal)","CurseForge":"wireless-crafting-terminal","Modrinth":""},{"Id":743,"Name":"Waila 插件 (Waila Plugins)","CurseForge":"waila-plugins","Modrinth":""},{"Id":744,"Name":"苹果皮 (AppleSkin)","CurseForge":"appleskin","Modrinth":"appleskin"},{"Id":745,"Name":"奥术投射 (TCBotaniaExoflame)","CurseForge":"tcbotaniaexoflame","Modrinth":""},{"Id":746,"Name":"奥法置换 (Thaumic Equivalence)","CurseForge":"thaumic-equivalence","Modrinth":""},{"Id":747,"Name":"神秘研究小助手 (Thaumcraft Research Helper)","CurseForge":"thaumcraft-research-helper","Modrinth":""},{"Id":748,"Name":"神秘装饰 (Thaumic Upholstry)","CurseForge":"thaumic-upholstry","Modrinth":""},{"Id":749,"Name":"神秘膨胀 (Thaumic Expansion)","CurseForge":"thaumic-expansion","Modrinth":""},{"Id":750,"Name":"节点力学 (Nodal Mechanics)","CurseForge":"nodal-mechanics","Modrinth":""},{"Id":751,"Name":"液体嬗变 (Transmute Liquids)","CurseForge":"transmute-liquids-addon-for-thaumcraft-4","Modrinth":""},{"Id":752,"Name":"奥能矿物 (ThaumOres)","CurseForge":"thaumores","Modrinth":""},{"Id":753,"Name":"无限神秘标签页 (Not Enough Thaumcraft Tabs)","CurseForge":"notenoughthaumcrafttabs","Modrinth":""},{"Id":754,"Name":"自然罗盘/生物群系指南针 (Nature's Compass)","CurseForge":"natures-compass","Modrinth":"natures-compass"},{"Id":755,"Name":"神秘扭曲学 (Warp Theory)","CurseForge":"warp-theory","Modrinth":""},{"Id":756,"Name":"锤子核心 (Hammer Core/Hammer Lib)","CurseForge":"hammer-lib","Modrinth":"hammer-lib"},{"Id":758,"Name":"热力铸造室 (Thermal Casting)","CurseForge":"thermal-casting","Modrinth":""},{"Id":759,"Name":"热力冶炼厂重置版 (Thermal Smeltery Redux)","CurseForge":"thermal-smeltery-redux","Modrinth":""},{"Id":760,"Name":"","CurseForge":"brcore","Modrinth":""},{"Id":761,"Name":"工业扩充(TE附属) (Industrial Expansion [TE Addon])","CurseForge":"industrial-expansion-te-addon","Modrinth":""},{"Id":764,"Name":"","CurseForge":"spmodapi","Modrinth":""},{"Id":765,"Name":"量子工具包 (Quantum Pack)","CurseForge":"quantum-pack","Modrinth":""},{"Id":766,"Name":"下界矿石 (NetherOres)","CurseForge":"netherores","Modrinth":""},{"Id":767,"Name":"特斯拉 (TESLA)","CurseForge":"tesla","Modrinth":""},{"Id":768,"Name":"食品储藏室 (VanillaFoodPantry Mod)","CurseForge":"vanillafoodpantry-mod","Modrinth":""},{"Id":769,"Name":"极乐世界 (The Elysium)","CurseForge":"the-elysium","Modrinth":""},{"Id":770,"Name":"冰火传说 (Ice and Fire)","CurseForge":"ice-and-fire-dragons","Modrinth":"ice-and-fire-dragons"},{"Id":772,"Name":"","CurseForge":"yabba","Modrinth":""},{"Id":773,"Name":"实用销毁器 (Useful Nullifiers)","CurseForge":"useful-nullifiers","Modrinth":""},{"Id":774,"Name":"","CurseForge":"xtones","Modrinth":"xtones"},{"Id":775,"Name":"","CurseForge":"xnet","Modrinth":"xnet"},{"Id":776,"Name":"无线合成网络 (Wireless Crafting Grid)","CurseForge":"wireless-crafting-grid","Modrinth":""},{"Id":778,"Name":"","CurseForge":"top-addons","Modrinth":""},{"Id":779,"Name":"火炬大师 (Torchmaster)","CurseForge":"torchmaster","Modrinth":"torchmaster"},{"Id":780,"Name":"","CurseForge":"zerocore","Modrinth":"zerocore"},{"Id":781,"Name":"睡袋 (Sleeping Bag)","CurseForge":"sleeping-bag","Modrinth":""},{"Id":782,"Name":"检测器 (The One Probe)","CurseForge":"the-one-probe","Modrinth":"the-one-probe"},{"Id":784,"Name":"简易喷气背包2 (Simply Jetpacks 2)","CurseForge":"simply-jetpacks-2","Modrinth":""},{"Id":785,"Name":"子沙 (Snad)","CurseForge":"snad","Modrinth":"snad"},{"Id":786,"Name":"","CurseForge":"storage-drawers-extras","Modrinth":""},{"Id":787,"Name":"日光通量:重制版 (Solar Flux Reborn)","CurseForge":"solar-flux-reborn","Modrinth":"solar-flux-reborn"},{"Id":788,"Name":"简单虚空世界 (Simple Void World)","CurseForge":"simple-void-world","Modrinth":""},{"Id":789,"Name":"","CurseForge":"shetiphiancore","Modrinth":"shetiphiancore"},{"Id":789,"Name":"","CurseForge":"shetiphiancore-fabric","Modrinth":""},{"Id":790,"Name":"","CurseForge":"shadowmc","Modrinth":""},{"Id":791,"Name":"扫描器 (Scannable)","CurseForge":"scannable","Modrinth":"scannable"},{"Id":792,"Name":"存储重置 (Reborn Storage)","CurseForge":"rebornstorage","Modrinth":"rebornstorage"},{"Id":793,"Name":"量子存储 (QuantumStorage)","CurseForge":"quantumstorage","Modrinth":""},{"Id":794,"Name":"","CurseForge":"p455w0rds-library","Modrinth":""},{"Id":795,"Name":"","CurseForge":"mtlib","Modrinth":""},{"Id":797,"Name":"滑翔翼 (Open Glider)","CurseForge":"open-glider","Modrinth":""},{"Id":798,"Name":"","CurseForge":"mputils","Modrinth":""},{"Id":799,"Name":"","CurseForge":"shadowfacts-forgelin","Modrinth":""},{"Id":800,"Name":"","CurseForge":"eleccore","Modrinth":""},{"Id":801,"Name":"","CurseForge":"infinitylib","Modrinth":"infinitylib"},{"Id":802,"Name":"","CurseForge":"dark-utilities","Modrinth":"dark-utilities"},{"Id":803,"Name":"通量网络 (Flux Networks)","CurseForge":"flux-networks","Modrinth":""},{"Id":804,"Name":"平滑色块 (Flat Colored Blocks)","CurseForge":"flat-colored-blocks-forge","Modrinth":""},{"Id":804,"Name":"平滑色块 (Flat Colored Blocks)","CurseForge":"flat-colored-blocks-fabric","Modrinth":""},{"Id":805,"Name":"JEI 蜜蜂 (JEI Bees)","CurseForge":"jei-bees","Modrinth":""},{"Id":806,"Name":"雕凿工艺 (Chisels & Bits)","CurseForge":"chisels-bits","Modrinth":""},{"Id":806,"Name":"雕凿工艺 (Chisels & Bits)","CurseForge":"chisels-bits-for-fabric","Modrinth":""},{"Id":807,"Name":"建筑师工艺 (Architecture Craft)","CurseForge":"architecturecraft","Modrinth":""},{"Id":808,"Name":"变色龙 (Chameleon)","CurseForge":"chameleon","Modrinth":"texel-chameleon"},{"Id":809,"Name":"","CurseForge":"mrtjpcore","Modrinth":""},{"Id":810,"Name":"","CurseForge":"cyclops-core","Modrinth":"cyclops-core"},{"Id":811,"Name":"下界传送门修正 (NetherPortalFix)","CurseForge":"netherportalfix","Modrinth":"netherportalfix"},{"Id":811,"Name":"下界传送门修正 (NetherPortalFix)","CurseForge":"netherportalfix-fabric","Modrinth":""},{"Id":812,"Name":"RF工具:维度 (RFTools Dimensions)","CurseForge":"rftools-dimensions","Modrinth":"rftools-dimensions"},{"Id":813,"Name":"信号 (Signals)","CurseForge":"signals","Modrinth":""},{"Id":814,"Name":"极限反应堆 (Extreme Reactors)","CurseForge":"extreme-reactors","Modrinth":""},{"Id":814,"Name":"极限反应堆 (Extreme Reactors) - 仅 2.4.9 及以下,长期未更新","CurseForge":"","Modrinth":"extreme-reactors"},{"Id":815,"Name":"ET:月光发电 (Environmental Lunar Tech)","CurseForge":"environmental-lunartech","Modrinth":"environmental-lunar-tech"},{"Id":816,"Name":"可装备的天使指环 (Angel Ring To Bauble)","CurseForge":"angel-ring-to-bauble","Modrinth":""},{"Id":817,"Name":"刷怪塔实用设备 (Mob Grinding Utils)","CurseForge":"mob-grinding-utils","Modrinth":""},{"Id":818,"Name":"RF工具:控制 (RFTools Control)","CurseForge":"rftools-control","Modrinth":"rftools-control"},{"Id":819,"Name":"沉浸原油 (Immersive Petroleum)","CurseForge":"immersive-petroleum","Modrinth":"immersivepetroleum"},{"Id":820,"Name":"更多的剪刀用途 (More Shearables)","CurseForge":"more-shearables","Modrinth":""},{"Id":821,"Name":"","CurseForge":"gregtech-gt-gtplusplus","Modrinth":""},{"Id":826,"Name":"","CurseForge":"yam-core","Modrinth":""},{"Id":829,"Name":"远程传送 (TeleToro)","CurseForge":"teletoro","Modrinth":""},{"Id":831,"Name":"RE:从零开始的异世界 (Re: Zero kara hajimeru isekai seikatsu)","CurseForge":"re-zero-kara-hajimeru-isekai-seikatsu","Modrinth":""},{"Id":832,"Name":"","CurseForge":"minewatch","Modrinth":""},{"Id":833,"Name":"神秘时代物品栏扫描 (Thaumcraft Inventory Scanning)","CurseForge":"thaumcraft-inventory-scanning","Modrinth":""},{"Id":834,"Name":"循环 (Cyclic)","CurseForge":"cyclic","Modrinth":"cyclic"},{"Id":836,"Name":"红石++ (Redstone++)","CurseForge":"redstoneplusplus","Modrinth":""},{"Id":837,"Name":"连接纹理 (ConnectedTexturesMod)","CurseForge":"ctm","Modrinth":""},{"Id":838,"Name":"夜晚模拟 (Simulated Nights)","CurseForge":"simulated-nights","Modrinth":""},{"Id":839,"Name":"FTB 实用工具 (FTB Utilities)","CurseForge":"ftb-utilities-forge","Modrinth":""},{"Id":840,"Name":"通用拼音搜索 (Just Enough Characters)","CurseForge":"just-enough-characters","Modrinth":"justenoughcharacters"},{"Id":842,"Name":"","CurseForge":"redstone-flux","Modrinth":""},{"Id":843,"Name":"","CurseForge":"cofh-world","Modrinth":""},{"Id":844,"Name":"古代战争2 (Ancient Warfare2)","CurseForge":"ancient-warfare-2","Modrinth":""},{"Id":845,"Name":"动态联合/集成动力 (Integrated Dynamics)","CurseForge":"integrated-dynamics","Modrinth":"integrated-dynamics"},{"Id":846,"Name":"","CurseForge":"common-capabilities","Modrinth":"common-capabilities"},{"Id":847,"Name":"龙珠C (Dragon Block C)","CurseForge":"jingames-dragon-block-c","Modrinth":""},{"Id":848,"Name":"意志坚定-篝火烤架 (TAN Campfire Spit)","CurseForge":"tan-campfire-spit","Modrinth":""},{"Id":849,"Name":"超级太阳能发电机 (Super Solar Panels)","CurseForge":"super-solar-panels","Modrinth":""},{"Id":850,"Name":"","CurseForge":"ngtlib","Modrinth":""},{"Id":851,"Name":"征服大地 (Geomastery)","CurseForge":"geomastery","Modrinth":""},{"Id":852,"Name":"","CurseForge":"afsu-mod","Modrinth":""},{"Id":854,"Name":"雷电工艺 (LightningCraft)","CurseForge":"lightningcraft","Modrinth":""},{"Id":855,"Name":"","CurseForge":"just-enough-resources-jer","Modrinth":"just-enough-resources-jer"},{"Id":856,"Name":"","CurseForge":"morpheus","Modrinth":""},{"Id":857,"Name":"飞檐走壁 (Wall Jump)","CurseForge":"wall-jump","Modrinth":""},{"Id":857,"Name":"飞檐走壁 (Wall Jump)","CurseForge":"wall-jump-fabric","Modrinth":""},{"Id":858,"Name":"凝结成块 (Condensed Block Mod Reborn)","CurseForge":"condensed-block-mod-reborn","Modrinth":""},{"Id":859,"Name":"","CurseForge":"refined-avaritia","Modrinth":""},{"Id":860,"Name":"局部气候&风暴 (Weather, Storms & Tornadoes)","CurseForge":"weather-storms-tornadoes","Modrinth":"weather-storms-tornadoes"},{"Id":861,"Name":"","CurseForge":"new-things","Modrinth":""},{"Id":862,"Name":"生存主义 (Survivalist)","CurseForge":"survivalist","Modrinth":""},{"Id":863,"Name":"秘契占星术 (Mystic Divination)","CurseForge":"mystic-divination","Modrinth":""},{"Id":864,"Name":"","CurseForge":"cofh-lib","Modrinth":""},{"Id":865,"Name":"","CurseForge":"tabula-rasa","Modrinth":""},{"Id":866,"Name":"","CurseForge":"cofhtweaks","Modrinth":""},{"Id":867,"Name":"末影动物园 (Ender IO Zoo/Ender Zoo)","CurseForge":"ender-io-zoo","Modrinth":"enderio-zoo"},{"Id":867,"Name":"末影动物园 (Ender IO Zoo/Ender Zoo) - 独立的 Ender Zoo","CurseForge":"ender-zoo","Modrinth":""},{"Id":868,"Name":"简易日志 (Simple Usage Log)","CurseForge":"simple-usage-log","Modrinth":""},{"Id":869,"Name":"","CurseForge":"omnis-core","Modrinth":""},{"Id":870,"Name":"自动路径 (Auto Paths)","CurseForge":"auto-paths","Modrinth":""},{"Id":871,"Name":"","CurseForge":"react","Modrinth":""},{"Id":872,"Name":"共享资源包 (Shared Resource Packs)","CurseForge":"shared-resource-packs","Modrinth":""},{"Id":873,"Name":"我知道我在干什么 (I Know What I'm Doing)","CurseForge":"i-know-what-im-doing","Modrinth":"i-know-what-im-doing"},{"Id":874,"Name":"皮革加工厂 (Leather Works)","CurseForge":"leather-works","Modrinth":""},{"Id":875,"Name":"机械改造 (Cyberware)","CurseForge":"cyberware","Modrinth":""},{"Id":876,"Name":"热力农业 (Thermal Cultivation)","CurseForge":"thermal-cultivation","Modrinth":"thermal-cultivation"},{"Id":877,"Name":"更好的建筑之杖 (Better Builder's Wands)","CurseForge":"better-builders-wands","Modrinth":""},{"Id":878,"Name":"","CurseForge":"jaopca","Modrinth":"jaopca"},{"Id":879,"Name":"更多鸡 (Chickens)","CurseForge":"chickens","Modrinth":""},{"Id":880,"Name":"悲惨世界2 (TragicMC 2)","CurseForge":"tragicmc2","Modrinth":""},{"Id":881,"Name":"","CurseForge":"mobdrip","Modrinth":""},{"Id":883,"Name":"万用皮肤补丁 (CustomSkinLoader)","CurseForge":"customskinloader","Modrinth":"customskinloader"},{"Id":884,"Name":"盐 (SaltyMod)","CurseForge":"saltymod","Modrinth":""},{"Id":885,"Name":"沉浸科技 (Immersive Technology) - 已停更","CurseForge":"immersive-tech","Modrinth":""},{"Id":885,"Name":"沉浸科技 (Immersive Technology)","CurseForge":"mct-immersive-technology","Modrinth":"mct-immersive-technology"},{"Id":887,"Name":"","CurseForge":"funky-locomotion","Modrinth":""},{"Id":888,"Name":"版本兼容 (CompatLayer)","CurseForge":"compatlayer","Modrinth":"compatlayer"},{"Id":889,"Name":"木制漏斗 (Wopper)","CurseForge":"wopper","Modrinth":""},{"Id":890,"Name":"食用强化 (GorgeCore)","CurseForge":"gorgecore","Modrinth":""},{"Id":891,"Name":"中式工坊 (Chinese Workshop)","CurseForge":"chineseworkshop","Modrinth":""},{"Id":892,"Name":"模块化路由器 (Modular Routers)","CurseForge":"modular-routers","Modrinth":"modular-routers"},{"Id":893,"Name":"暗黑核心 (Darkcore)","CurseForge":"darkcore","Modrinth":""},{"Id":894,"Name":"时间和空间的相对维度 (TARDIS MOD)","CurseForge":"tardis-mod","Modrinth":""},{"Id":897,"Name":"","CurseForge":"another-one-bites-the-dust-berry-bushes","Modrinth":""},{"Id":898,"Name":"天赋技能树 (GokiStats)","CurseForge":"gokistats","Modrinth":""},{"Id":900,"Name":"热带世界 (Tropicraft)","CurseForge":"tropicraft","Modrinth":"tropicraft"},{"Id":903,"Name":"亖圼 (Sumsang)","CurseForge":"sumsang","Modrinth":""},{"Id":904,"Name":"","CurseForge":"moblocks","Modrinth":""},{"Id":905,"Name":"蠕动意面 (CreepyPasta)","CurseForge":"creepypasta-1-0-0","Modrinth":""},{"Id":906,"Name":"格鲁 (Grue)","CurseForge":"grue","Modrinth":""},{"Id":908,"Name":"金鱼眼 (GooglyEyes)","CurseForge":"googlyeyes","Modrinth":""},{"Id":909,"Name":"恐怖生物 (Lycanites Mobs)","CurseForge":"lycanites-mobs","Modrinth":""},{"Id":910,"Name":"生态回归 (Back to Eco)","CurseForge":"back-to-eco","Modrinth":""},{"Id":911,"Name":"魔兽世界 (World Of Warcraft)","CurseForge":"world-of-warcraft","Modrinth":""},{"Id":912,"Name":"猎魔人 (The Witcher Adventure)","CurseForge":"the-witcher-adventure","Modrinth":""},{"Id":913,"Name":"华丽战斧 (Fancy Battleaxes)","CurseForge":"fancy-battleaxes","Modrinth":"fancy-battleaxes"},{"Id":914,"Name":"Zora的电车 (Zora no Densha)","CurseForge":"zora-no-densha","Modrinth":""},{"Id":915,"Name":"冒险地牢 (Roguelike Dungeons)","CurseForge":"roguelike-dungeons","Modrinth":"roguelikedungeons"},{"Id":916,"Name":"急救/医疗护理 (First Aid)","CurseForge":"first-aid","Modrinth":"firstaid"},{"Id":917,"Name":"篝火 (Bonfires)","CurseForge":"bonfires","Modrinth":"bonfires"},{"Id":918,"Name":"沉浸工艺 (Immersive Craft)","CurseForge":"immersive-craft","Modrinth":"immersive-craft"},{"Id":919,"Name":"","CurseForge":"aroma1997core","Modrinth":""},{"Id":920,"Name":"","CurseForge":"tatw","Modrinth":""},{"Id":921,"Name":"敌对生物和女孩们 (Hostile Mobs and Girls)","CurseForge":"hostile-mobs-and-girls","Modrinth":""},{"Id":922,"Name":"更好的HUD (Better HUD)","CurseForge":"better-hud","Modrinth":""},{"Id":923,"Name":"自定义物品4 (Custom Stuff 4)","CurseForge":"custom-stuff-4","Modrinth":""},{"Id":924,"Name":"特斯拉科技 (Tesla Powered Thingies)","CurseForge":"powered-thingies","Modrinth":""},{"Id":926,"Name":"","CurseForge":"mcmusicplayer#t1:description","Modrinth":""},{"Id":927,"Name":"","CurseForge":"obsidian-suite","Modrinth":""},{"Id":928,"Name":"Lua魔导师 (Wizards of Lua)","CurseForge":"wizards-of-lua","Modrinth":""},{"Id":929,"Name":"神秘农业 (Mystical Agriculture)","CurseForge":"mystical-agriculture","Modrinth":"mystical-agriculture"},{"Id":930,"Name":"吸血鬼/血族传说 (Vampirism)","CurseForge":"vampirism-become-a-vampire","Modrinth":"vampirism"},{"Id":931,"Name":"植物大战僵尸 (Plants VS Zombies)","CurseForge":"plants-vs-zombies-mod","Modrinth":""},{"Id":932,"Name":"物品物理掉落 (ItemPhysic) - 完整版","CurseForge":"itemphysic","Modrinth":"itemphysic"},{"Id":932,"Name":"物品物理掉落 (ItemPhysic) - 轻量版","CurseForge":"itemphysic-lite","Modrinth":"itemphysic-lite"},{"Id":933,"Name":"","CurseForge":"minenautica","Modrinth":""},{"Id":934,"Name":"矿物获取改进 (Improved Extraction)","CurseForge":"improved-extraction","Modrinth":""},{"Id":935,"Name":"生态 (Ecology Mod)","CurseForge":"ecology-mod","Modrinth":""},{"Id":936,"Name":"蛋糕是个谎言 (CakeIsALie)","CurseForge":"cakeisalie-mod","Modrinth":""},{"Id":937,"Name":"无中生有:Adscensio (Ex Nihilo Adscensio)","CurseForge":"ex-nihilo-adscensio","Modrinth":""},{"Id":938,"Name":"","CurseForge":"bookshelf","Modrinth":"bookshelf-lib"},{"Id":940,"Name":"随意作品 (Random Things)","CurseForge":"random-things","Modrinth":""},{"Id":942,"Name":"下界拓展 (NetherEX)","CurseForge":"netherex","Modrinth":"netherex"},{"Id":943,"Name":"召唤师 (The Engender Mod)","CurseForge":"engender-mod","Modrinth":""},{"Id":944,"Name":"更好的任务 (Better Questing)","CurseForge":"better-questing","Modrinth":""},{"Id":947,"Name":"","CurseForge":"ct-mortar","Modrinth":""},{"Id":948,"Name":"","CurseForge":"ct-watercan","Modrinth":""},{"Id":949,"Name":"图腾 (Totemic)","CurseForge":"totemic","Modrinth":"fenns_totemic"},{"Id":950,"Name":"爱丽丝的魔法书 (Grimoire of Alice)","CurseForge":"grimoire-of-alice","Modrinth":""},{"Id":951,"Name":"幻想乡之旅 (Journey to Gensokyo)","CurseForge":"journey-to-gensokyo","Modrinth":""},{"Id":952,"Name":"弹幕核心 (DanmakuCore)","CurseForge":"danmakucore","Modrinth":""},{"Id":953,"Name":"复仇天使 (Angel of Vengeance)","CurseForge":"angel-of-vengeance","Modrinth":""},{"Id":954,"Name":"","CurseForge":"tammodized","Modrinth":""},{"Id":955,"Name":"无中生有:创世 (Ex Nihilo: Creatio)","CurseForge":"ex-nihilo-creatio","Modrinth":""},{"Id":956,"Name":"神秘时代 (Thaumcraft)","CurseForge":"thaumcraft","Modrinth":""},{"Id":957,"Name":"巨型箱子 (Colossal Chests)","CurseForge":"colossal-chests","Modrinth":"colossal-chests"},{"Id":958,"Name":"自动拾取 (Auto Pickup)","CurseForge":"auto-pickup","Modrinth":""},{"Id":959,"Name":"背包编辑器 (All-U-Want)","CurseForge":"mc-mods-u-want","Modrinth":""},{"Id":960,"Name":"药水核心 (Potion Core)","CurseForge":"potion-core","Modrinth":""},{"Id":961,"Name":"","CurseForge":"solar-expansion","Modrinth":""},{"Id":962,"Name":"蓝石力量 (Blue Power)","CurseForge":"blue-power","Modrinth":""},{"Id":963,"Name":"红石军械库 (Redstone Armory)","CurseForge":"redstone-armory","Modrinth":""},{"Id":964,"Name":"","CurseForge":"qmunitylib","Modrinth":""},{"Id":965,"Name":"","CurseForge":"quest-for-blue-name","Modrinth":""},{"Id":966,"Name":"最后的太刀匠人 (The Last Smith)","CurseForge":"the-last-smith","Modrinth":"the-last-smith"},{"Id":967,"Name":"我的音乐 (MineAmp)","CurseForge":"mineamp","Modrinth":""},{"Id":968,"Name":"Quiver Bow - 官方原版","CurseForge":"quiverbow","Modrinth":""},{"Id":968,"Name":"Quiver Bow - 重制版","CurseForge":"quiverbow-restrung","Modrinth":""},{"Id":969,"Name":"","CurseForge":"cookiecore","Modrinth":""},{"Id":970,"Name":"","CurseForge":"farseek","Modrinth":""},{"Id":971,"Name":"使命必达先生 (MeeCreeps)","CurseForge":"meecreeps","Modrinth":"meecreeps"},{"Id":972,"Name":"溪流 (Streams)","CurseForge":"streams","Modrinth":""},{"Id":974,"Name":"方块工匠 (Blockcraftery)","CurseForge":"blockcraftery","Modrinth":""},{"Id":975,"Name":"基岩矿簇 (Bedrock Ores)","CurseForge":"bedrockores","Modrinth":"bedrockores"},{"Id":976,"Name":"聊天泡泡 (Chat Bubbles)","CurseForge":"chat-bubbles","Modrinth":""},{"Id":977,"Name":"精致存储附属 (Refined Storage Addons)","CurseForge":"refined-storage-addons","Modrinth":"refined-storage-addons"},{"Id":978,"Name":"泡沫修复 (FoamFix)","CurseForge":"foamfix-optimization-mod","Modrinth":"foamfix"},{"Id":979,"Name":"工业先锋 (Industrial Foregoing)","CurseForge":"industrial-foregoing","Modrinth":"industrial-foregoing"},{"Id":980,"Name":"扩展装备 (Expanded Armory)","CurseForge":"expanded-armory","Modrinth":""},{"Id":981,"Name":"体素地图 (VoxelMap)","CurseForge":"voxelmap","Modrinth":""},{"Id":984,"Name":"Mowzie的生物 (Mowzie's Mobs)","CurseForge":"mowzies-mobs","Modrinth":"mowzies-mobs"},{"Id":985,"Name":"","CurseForge":"thaumcraft-mob-aspects","Modrinth":""},{"Id":986,"Name":"","CurseForge":"magical-psi","Modrinth":""},{"Id":987,"Name":"星际争霸2 (StarCraft II in MineCraft)","CurseForge":"starcraft-mod-scmc","Modrinth":""},{"Id":988,"Name":"","CurseForge":"covens-reborn","Modrinth":""},{"Id":989,"Name":"抓钩 (Grappling Hook Mod)","CurseForge":"grappling-hook-mod","Modrinth":"grappling-hook-mod"},{"Id":990,"Name":"","CurseForge":"tabbychat-2","Modrinth":""},{"Id":992,"Name":"悠悠球 (Yoyos)","CurseForge":"yoyos","Modrinth":""},{"Id":993,"Name":"","CurseForge":"cd4017be-library","Modrinth":""},{"Id":994,"Name":"","CurseForge":"iberia","Modrinth":""},{"Id":995,"Name":"重铸 (Reforged)","CurseForge":"reforged","Modrinth":"reforged"},{"Id":996,"Name":"洞穴 (Cavern)","CurseForge":"cavern","Modrinth":""},{"Id":997,"Name":"","CurseForge":"block-drops-jei-addon","Modrinth":""},{"Id":998,"Name":"更多储罐 (Iron Tanks)","CurseForge":"iron-tanks","Modrinth":""},{"Id":999,"Name":"颜色代码 (ColorUtility)","CurseForge":"colorutility","Modrinth":""},{"Id":1000,"Name":"数码宝贝 (Digimobs)","CurseForge":"digimobs","Modrinth":""},{"Id":1001,"Name":"存储船 (Storage Boat Mod)","CurseForge":"storage-boats-mod","Modrinth":""},{"Id":1002,"Name":"更多凋灵 (Mo' Withers)","CurseForge":"mo-withers","Modrinth":""},{"Id":1003,"Name":"火影忍者C (Naruto C)","CurseForge":"jingames-naruto-c","Modrinth":""},{"Id":1004,"Name":"自动登录 (AutoLogin)","CurseForge":"the-autologin-mod-for-authme-server","Modrinth":""},{"Id":1005,"Name":"鸡窝 (Roost)","CurseForge":"roost","Modrinth":""},{"Id":1006,"Name":"矿石作物/魔种之咏 (Croparia)","CurseForge":"croparia","Modrinth":"croparia"},{"Id":1007,"Name":"简单玉米 (Simple Corn)","CurseForge":"simple-corn","Modrinth":""},{"Id":1008,"Name":"","CurseForge":"thaumic-jei","Modrinth":"thaumic-jei"},{"Id":1009,"Name":"匠魂炼钢厂 (Tinkers' Steelworks)","CurseForge":"tinkers-steelworks","Modrinth":""},{"Id":1009,"Name":"匠魂炼钢厂 (Tinkers' Steelworks)","CurseForge":"tinkers-steelworks-fork","Modrinth":""},{"Id":1010,"Name":"Unicode 字体扩展 (Unicode Font Extension)","CurseForge":"unicode-font-extension","Modrinth":""},{"Id":1011,"Name":"可放置物品 (Placeable Items)","CurseForge":"placeable-items","Modrinth":""},{"Id":1012,"Name":"工匠防御 (Compendium / Tinkers' Defense)","CurseForge":"compendium","Modrinth":""},{"Id":1013,"Name":"格雷的星门 (Greg's SG Craft)","CurseForge":"sg-craft","Modrinth":""},{"Id":1013,"Name":"格雷的星门 (Greg's SG Craft)","CurseForge":"stargate-network","Modrinth":""},{"Id":1014,"Name":"伤害显示 (Damage Indicators)","CurseForge":"damage-indicators-mod","Modrinth":""},{"Id":1015,"Name":"ToroHealth 伤害显示 (ToroHealth Damage Indicators)","CurseForge":"torohealth-damage-indicators","Modrinth":""},{"Id":1016,"Name":"","CurseForge":"omni-ocular","Modrinth":""},{"Id":1017,"Name":"","CurseForge":"wrapup","Modrinth":"wrapup"},{"Id":1018,"Name":"","CurseForge":"nuclear-physics","Modrinth":""},{"Id":1019,"Name":"凋灵骷髅调整 (Wither Skeleton Tweaks)","CurseForge":"wither-skeleton-tweaks","Modrinth":"wither-skeleton-tweaks"},{"Id":1020,"Name":"热量与气候 (Heat And Climate)","CurseForge":"heat-and-climate","Modrinth":""},{"Id":1021,"Name":"自定义物品 (CustomThings)","CurseForge":"customthings","Modrinth":""},{"Id":1022,"Name":"格雷矿筛 (ExGregilo)","CurseForge":"exgregilo","Modrinth":""},{"Id":1023,"Name":"","CurseForge":"placebo","Modrinth":"placebo"},{"Id":1024,"Name":"","CurseForge":"plants","Modrinth":""},{"Id":1026,"Name":"镇守府 (ChinjufuMod +JapaneseBlock)","CurseForge":"chinjufumod","Modrinth":""},{"Id":1027,"Name":"","CurseForge":"track-api","Modrinth":"track-api"},{"Id":1028,"Name":"沉浸铁路 (Immersive Railroading)","CurseForge":"immersive-railroading","Modrinth":"immersive-railroading"},{"Id":1029,"Name":"食物工艺重置版 (FoodCraft Reloaded)","CurseForge":"foodcraft-reloaded","Modrinth":""},{"Id":1030,"Name":"自定义主菜单 (Custom Main Menu)","CurseForge":"custom-main-menu","Modrinth":""},{"Id":1032,"Name":"","CurseForge":"wildycraft","Modrinth":""},{"Id":1035,"Name":"小怪物粉碎机 (My Little Mob Grinder)","CurseForge":"my-little-mob-grinder","Modrinth":""},{"Id":1036,"Name":"资源加载 (Resource Loader)","CurseForge":"resource-loader","Modrinth":""},{"Id":1037,"Name":"禁止睡觉 (No Sleeping Allowed)","CurseForge":"no-sleeping-allowed","Modrinth":""},{"Id":1038,"Name":"玩家掉落头颅 (PlayersDropHeads)","CurseForge":"playersdropheads","Modrinth":""},{"Id":1039,"Name":"","CurseForge":"memory-bar","Modrinth":""},{"Id":1040,"Name":"有毒的雨 (ToxicRain)","CurseForge":"toxicrain","Modrinth":""},{"Id":1043,"Name":"割肉小刀/同类相食 (Cannibalism)","CurseForge":"cannibalism","Modrinth":""},{"Id":1044,"Name":"快速消耗 (Quick Consume)","CurseForge":"quick-consume","Modrinth":""},{"Id":1045,"Name":"自动植树机 (Auto Planter / Planting dirt for saplings)","CurseForge":"planting-dirt-for-saplings","Modrinth":"auto-planter"},{"Id":1047,"Name":"自定义准星 (Custom Crosshair Mod)","CurseForge":"custom-crosshair-mod","Modrinth":"custom-crosshair-mod"},{"Id":1048,"Name":"更好的传送 (Better Blink)","CurseForge":"better-blink","Modrinth":""},{"Id":1049,"Name":"生物炸弹 (BioBomb)","CurseForge":"biobomb","Modrinth":""},{"Id":1050,"Name":"末影漏斗 (Ender Hopper)","CurseForge":"ender-hopper","Modrinth":""},{"Id":1051,"Name":"黑魂战斗 (Mine Souls)","CurseForge":"mine-souls","Modrinth":""},{"Id":1052,"Name":"","CurseForge":"radixcore","Modrinth":""},{"Id":1054,"Name":"熟悉的动物 (Familiar Fauna)","CurseForge":"familiar-fauna","Modrinth":""},{"Id":1056,"Name":"匠魂工具升级 (Tinkers' Tool Leveling)","CurseForge":"tinkers-tool-leveling","Modrinth":""},{"Id":1058,"Name":"游戏信息显示XML版 (InGame Info XML)","CurseForge":"ingame-info-xml","Modrinth":""},{"Id":1060,"Name":"萌化机器人 (LovelyRobot)","CurseForge":"lovelyrobot","Modrinth":""},{"Id":1061,"Name":"萌化女妖 (Tameable Arachne)","CurseForge":"tameable-arachne","Modrinth":""},{"Id":1062,"Name":"","CurseForge":"skillable","Modrinth":""},{"Id":1063,"Name":"","CurseForge":"lunatriuscore","Modrinth":""},{"Id":1064,"Name":"旋转剑技 (Spin to Win)","CurseForge":"spin-to-win","Modrinth":""},{"Id":1065,"Name":"柔软方块 (Soft Blocks)","CurseForge":"soft-blocks","Modrinth":""},{"Id":1066,"Name":"生命方块 (HeartBlock)","CurseForge":"heartblock","Modrinth":""},{"Id":1067,"Name":"自定义怪物生成 (SpawnController)","CurseForge":"spawncontroller","Modrinth":""},{"Id":1068,"Name":"可穿戴背包 (Wearable Backpacks)","CurseForge":"wearable-backpacks","Modrinth":"wearablebackpacks"},{"Id":1069,"Name":"生命汲取 (Heart Drop)","CurseForge":"heart-drop","Modrinth":""},{"Id":1070,"Name":"开放式炮台库 (OMLib)","CurseForge":"omlib","Modrinth":""},{"Id":1071,"Name":"动态的树 / 有活力的树 (Dynamic Trees)","CurseForge":"dynamictrees","Modrinth":"dynamictrees"},{"Id":1072,"Name":"圣诞箱子 (Merry Christmas!)","CurseForge":"merry-christmas","Modrinth":""},{"Id":1073,"Name":"可控制的云 (Cloud Control)","CurseForge":"cloud-control","Modrinth":""},{"Id":1074,"Name":"矿石僵尸 (Zombie Ore)","CurseForge":"zombie-ore","Modrinth":""},{"Id":1075,"Name":"残忍怪物 (MeanMobs)","CurseForge":"meanmobs","Modrinth":""},{"Id":1076,"Name":"","CurseForge":"zyins-hud","Modrinth":""},{"Id":1078,"Name":"难度调整 (Rough Tweaks)","CurseForge":"rough-tweaks","Modrinth":""},{"Id":1080,"Name":"祛魔台 (The Disenchanter)","CurseForge":"the-disenchanter-mod","Modrinth":""},{"Id":1081,"Name":"搬运 (Carry On)","CurseForge":"carry-on","Modrinth":"carry-on"},{"Id":1082,"Name":"更好看的羊驼 (Better Than Llamas)","CurseForge":"better-than-llamas","Modrinth":"better-than-llamas"},{"Id":1082,"Name":"更好看的羊驼 (Better Than Llamas)","CurseForge":"better-than-llamas-fabric","Modrinth":""},{"Id":1083,"Name":"动态环境/动态环绕 (Dynamic Surroundings)","CurseForge":"dynamic-surroundings","Modrinth":"dynamicsurroundingsfabric"},{"Id":1083,"Name":"动态环境/动态环绕 (Dynamic Surroundings)","CurseForge":"dynamic-surroundings-fabric-edition","Modrinth":""},{"Id":1084,"Name":"亚尔夫海姆 (Alfheim)","CurseForge":"alfheim","Modrinth":"alfheim"},{"Id":1085,"Name":"生物大乱斗 (Mob Battle Mod)","CurseForge":"mob-battle-mod","Modrinth":"mob-battle-mod"},{"Id":1085,"Name":"生物大乱斗 (Mob Battle Mod)","CurseForge":"mob-battle-mod-fabric","Modrinth":""},{"Id":1086,"Name":"平滑字体 (Smooth Font)","CurseForge":"smooth-font","Modrinth":""},{"Id":1088,"Name":"","CurseForge":"reskillable","Modrinth":""},{"Id":1089,"Name":"更好的副手 (BetterOffhand)","CurseForge":"betteroffhand","Modrinth":""},{"Id":1090,"Name":"实体弹簧 (Entity Spring)","CurseForge":"entity-spring","Modrinth":""},{"Id":1091,"Name":"","CurseForge":"compatskills","Modrinth":""},{"Id":1092,"Name":"","CurseForge":"avaritia-tweaks","Modrinth":""},{"Id":1093,"Name":"","CurseForge":"mjrlegendslib","Modrinth":""},{"Id":1094,"Name":"自动染色 (Dye It Yourself)","CurseForge":"dye-it-yourself","Modrinth":""},{"Id":1095,"Name":"活塞拓展 (Piston Expansion)","CurseForge":"piston-expansion","Modrinth":""},{"Id":1096,"Name":"水下铁轨 (Underwater Rails)","CurseForge":"underwater-rails","Modrinth":""},{"Id":1097,"Name":"","CurseForge":"trebuchet","Modrinth":""},{"Id":1098,"Name":"粒子库 (ParticleLib)","CurseForge":"particlelib","Modrinth":""},{"Id":1099,"Name":"星际矿工 (Starminer)","CurseForge":"star-miner","Modrinth":""},{"Id":1101,"Name":"jglrxavpok的拆解台 (jglrxavpok's Uncrafting Table)","CurseForge":"jglrxavpoks-uncrafting-table","Modrinth":""},{"Id":1102,"Name":"乡村 (Rustic)","CurseForge":"rustic","Modrinth":"rustic"},{"Id":1103,"Name":"","CurseForge":"netherutils","Modrinth":""},{"Id":1104,"Name":"盆栽 (Bonsai Trees)","CurseForge":"bonsai-trees","Modrinth":""},{"Id":1107,"Name":"朦胧世界 (Misty World)","CurseForge":"misty-world","Modrinth":"misty-world"},{"Id":1110,"Name":"卡塞瑞斯 (Kathairis / Kether)","CurseForge":"beta-kathairis","Modrinth":""},{"Id":1110,"Name":"卡塞瑞斯 (Kathairis / Kether)","CurseForge":"kathairis-alive","Modrinth":""},{"Id":1111,"Name":"魔法金属 (ManaMetalMod)","CurseForge":"manametal","Modrinth":"manametal"},{"Id":1112,"Name":"无尽收容 / 更多空间箱子 (Avaritiaddons)","CurseForge":"avaritiaddons","Modrinth":""},{"Id":1113,"Name":"","CurseForge":"base","Modrinth":""},{"Id":1114,"Name":"沉浸线缆 (Immersive Cables)","CurseForge":"immersive-cables","Modrinth":""},{"Id":1116,"Name":"更好的标题页 (Better Title Screen)","CurseForge":"better-title-screen","Modrinth":""},{"Id":1117,"Name":"声音滤波器 (Sound Filters)","CurseForge":"sound-filters","Modrinth":""},{"Id":1118,"Name":"半条命 (LambdaCraft)","CurseForge":"lambda-craft","Modrinth":""},{"Id":1119,"Name":"","CurseForge":"vivecraft","Modrinth":"vivecraft"},{"Id":1119,"Name":"","CurseForge":"vivecraft-forge-extensions","Modrinth":""},{"Id":1120,"Name":"超级消音器 (Super Sound Muffler)","CurseForge":"super-sound-muffler","Modrinth":""},{"Id":1121,"Name":"装备扩充 (ArmorPlus)","CurseForge":"armorplus","Modrinth":"armorplus"},{"Id":1122,"Name":"灵感 (Inspirations)","CurseForge":"inspirations","Modrinth":"inspirations"},{"Id":1123,"Name":"跳舞树成长 (Tree Growing Simulator)","CurseForge":"tree-growing-simulator","Modrinth":""},{"Id":1125,"Name":"","CurseForge":"personal-cars","Modrinth":""},{"Id":1126,"Name":"热力革新 (Thermal Innovation)","CurseForge":"thermal-innovation","Modrinth":"thermal-innovation"},{"Id":1127,"Name":"巫师之路 (Bewitchment)","CurseForge":"bewitchment-legacy","Modrinth":"bewitchment"},{"Id":1127,"Name":"巫师之路 (Bewitchment)","CurseForge":"bewitchment","Modrinth":""},{"Id":1128,"Name":"更好的树叶 (Better Foliage)","CurseForge":"better-foliage","Modrinth":""},{"Id":1129,"Name":"创造+ (Creative Plus)","CurseForge":"creative-plus","Modrinth":""},{"Id":1130,"Name":"只是一些鱼 (Just a Few Fish)","CurseForge":"just-a-few-fish","Modrinth":""},{"Id":1131,"Name":"","CurseForge":"ynot","Modrinth":""},{"Id":1132,"Name":"静谧四季/季节 (Serene Seasons)","CurseForge":"serene-seasons","Modrinth":"serene-seasons"},{"Id":1133,"Name":"龙之领域 (Realm Of The Dragons)","CurseForge":"realm-of-the-dragons-rotd","Modrinth":""},{"Id":1134,"Name":"地质探秘/岩石狩猎 (RockHounding) - Mod核心-几乎没有添加物品,相当于前置","CurseForge":"rockhounding-mod-core","Modrinth":""},{"Id":1134,"Name":"地质探秘/岩石狩猎 (RockHounding) - 化学分包-添加了大量机器与金属元素","CurseForge":"rockhounding-mod-chemistry","Modrinth":""},{"Id":1134,"Name":"地质探秘/岩石狩猎 (RockHounding) - 岩石分包-添加了大量岩石与有关装饰方块","CurseForge":"rockhounding-mod-rocks","Modrinth":""},{"Id":1134,"Name":"地质探秘/岩石狩猎 (RockHounding)","CurseForge":"rockhounding-mod-surface","Modrinth":""},{"Id":1134,"Name":"地质探秘/岩石狩猎 (RockHounding)","CurseForge":"rockhounding-mod-ore-tiers","Modrinth":""},{"Id":1134,"Name":"地质探秘/岩石狩猎 (RockHounding)","CurseForge":"rockhounding-fluid-pipeline","Modrinth":""},{"Id":1134,"Name":"地质探秘/岩石狩猎 (RockHounding)","CurseForge":"rockhounding-mod","Modrinth":""},{"Id":1135,"Name":"梦幻方块效果 (Fancy Block Particles)","CurseForge":"fancy-block-particles","Modrinth":""},{"Id":1136,"Name":"神秘之日本刀 (Thaumic Katana)","CurseForge":"thaumic-katana","Modrinth":""},{"Id":1137,"Name":"天境二 (The Aether II)","CurseForge":"aether-ii","Modrinth":"aether-ii"},{"Id":1138,"Name":"永久光发电机 (VisibleRay Generator)","CurseForge":"visibleraygenerator","Modrinth":""},{"Id":1139,"Name":"试验假人 (MmmMmmMmmMmm / Target Dummy)","CurseForge":"mmmmmmmmmmmm","Modrinth":"mmmmmmmmmmmm"},{"Id":1140,"Name":"存档备份 (AromaBackup)","CurseForge":"aromabackup","Modrinth":""},{"Id":1142,"Name":"","CurseForge":"orbis-lib","Modrinth":""},{"Id":1143,"Name":"八大传说之刃 (The Eight Fabled Blades)","CurseForge":"the-eight-fabled-blades","Modrinth":""},{"Id":1144,"Name":"","CurseForge":"malisisblocks","Modrinth":""},{"Id":1145,"Name":"有用的内饰 (Useful Interior)","CurseForge":"useful-interior","Modrinth":""},{"Id":1146,"Name":"匠魂合金附加 (Tinkers Alloying Addon)","CurseForge":"taiga-tinkers-alloying-addon","Modrinth":""},{"Id":1147,"Name":"模组更新检测 (Version Checker)","CurseForge":"version-checker","Modrinth":""},{"Id":1148,"Name":"镜面艺术: 传承 (Planar Artifice: Continuation)","CurseForge":"planar-artifice","Modrinth":""},{"Id":1150,"Name":"安魂曲 (Requiem/Dissolution/Tartaros)","CurseForge":"Requiem","Modrinth":""},{"Id":1151,"Name":"古刀传 (Slash Blade in TFC)","CurseForge":"slashblade-in-tfc","Modrinth":""},{"Id":1152,"Name":"神话生物 (Mythical Creatures)","CurseForge":"mlp-mythical-creatures-updated-to-1-7-10","Modrinth":""},{"Id":1153,"Name":"变形 (Metamorph)","CurseForge":"metamorph","Modrinth":""},{"Id":1154,"Name":"世界反应3:重置 (Reactioncraft 3: Rebirth)","CurseForge":"reactioncraft-3-rebirth","Modrinth":""},{"Id":1155,"Name":"魔法匠魂 (Pewter)","CurseForge":"pewter","Modrinth":""},{"Id":1156,"Name":"红石军械库重制版 (Redstone Repository Revolved)","CurseForge":"redstone-repository-revolved","Modrinth":""},{"Id":1157,"Name":"传送指令 (Spawn Commands Teleport)","CurseForge":"spawncommands-spawn-commands-teleport","Modrinth":""},{"Id":1158,"Name":"简单联机 (Server.Properties for LAN)","CurseForge":"server-properties-for-lan","Modrinth":"server-properties-for-lan"},{"Id":1160,"Name":"JAOPCA附属 (JAOPCAAdditions)","CurseForge":"jaopcaadditions","Modrinth":""},{"Id":1161,"Name":"","CurseForge":"cloche-call","Modrinth":""},{"Id":1162,"Name":"鼠标手势 (Mouse Tweaks)","CurseForge":"mouse-tweaks","Modrinth":""},{"Id":1162,"Name":"鼠标手势 (Mouse Tweaks) - 仅部分","CurseForge":"","Modrinth":"mouse-tweaks"},{"Id":1163,"Name":"JAOPCA神秘农业附属 (Just A Resource Generation Compatibility Attempt)","CurseForge":"jargca","Modrinth":""},{"Id":1164,"Name":"空岛资源2 (Sky Resources2)","CurseForge":"sky-resources","Modrinth":""},{"Id":1165,"Name":"Hexxit 装备 (Hexxit Gear)","CurseForge":"hexxit-gear","Modrinth":""},{"Id":1165,"Name":"Hexxit 装备 (Hexxit Gear)","CurseForge":"hexxit-gear-restored","Modrinth":""},{"Id":1167,"Name":"幸运四叶草 (Magic Clover)","CurseForge":"magic-clover","Modrinth":""},{"Id":1168,"Name":"背包工作台 (Inventory Crafting Grid)","CurseForge":"inventory-crafting-grid","Modrinth":""},{"Id":1169,"Name":"更好地破坏半砖 (KleeSlabs)","CurseForge":"kleeslabs","Modrinth":"kleeslabs"},{"Id":1169,"Name":"更好地破坏半砖 (KleeSlabs)","CurseForge":"kleeslabs-fabric","Modrinth":""},{"Id":1171,"Name":"格雷科技社区版 (GregTech Community Edition)","CurseForge":"gregtechce","Modrinth":""},{"Id":1172,"Name":"界面背景模糊 (Blur)","CurseForge":"blur","Modrinth":"blur-plus"},{"Id":1172,"Name":"界面背景模糊 (Blur)","CurseForge":"blur-fabric","Modrinth":""},{"Id":1173,"Name":"树叶快速腐烂 (Fast Leaf Decay)","CurseForge":"fast-leaf-decay","Modrinth":""},{"Id":1174,"Name":"开启作弊模式 (Enable Cheats)","CurseForge":"enable-cheats","Modrinth":""},{"Id":1175,"Name":"找到它 (Findit!)","CurseForge":"findit","Modrinth":""},{"Id":1176,"Name":"可穿戴的方块 (Wearable Blocks)","CurseForge":"wearable-blocks","Modrinth":""},{"Id":1179,"Name":"瑞士军刀 (SwissArmyKnife)","CurseForge":"swissarmyknife","Modrinth":""},{"Id":1180,"Name":"末影接口拓展 (Ender IO Addons)","CurseForge":"ender-io-addons","Modrinth":""},{"Id":1181,"Name":"历史化医学 (Historicized Medicine)","CurseForge":"historicized-medicine","Modrinth":""},{"Id":1182,"Name":"无尽物品编辑器 (Infinity Item Editor)","CurseForge":"infinity-item-editor","Modrinth":"infinity-item-editor"},{"Id":1183,"Name":"更多功能铁轨 (Extra Rails)","CurseForge":"extra-rails","Modrinth":""},{"Id":1184,"Name":"","CurseForge":"gregtania","Modrinth":""},{"Id":1185,"Name":"","CurseForge":"origin","Modrinth":""},{"Id":1186,"Name":"沉浸车辆 (Immersive Vehicles)","CurseForge":"minecraft-transport-simulator","Modrinth":"immersive-vehicles"},{"Id":1187,"Name":"搬箱器 (Chest Transporter)","CurseForge":"chest-transporter","Modrinth":""},{"Id":1188,"Name":"自动汉化更新 (I18nUpdateMod)","CurseForge":"i18nupdatemod","Modrinth":"i18nupdatemod"},{"Id":1189,"Name":"真实物品掉落 (Realistic Item Drops)","CurseForge":"realistic-item-drops","Modrinth":""},{"Id":1190,"Name":"像素宝可梦 重铸 (Pixelmon Reforged)","CurseForge":"pixelmon","Modrinth":"pixelmon"},{"Id":1191,"Name":"键位冲突显示 (Controlling)","CurseForge":"controlling","Modrinth":"controlling"},{"Id":1191,"Name":"键位冲突显示 (Controlling)","CurseForge":"controlling-for-fabric","Modrinth":""},{"Id":1194,"Name":"腐肉烧皮革 (SimpleLeather)","CurseForge":"simpleleather","Modrinth":""},{"Id":1195,"Name":"克隆 (Sync)","CurseForge":"sync","Modrinth":""},{"Id":1196,"Name":"超级变变变 (Chiseled Me)","CurseForge":"chiseled-me","Modrinth":""},{"Id":1197,"Name":"进阶自动化 (Progressive Automation)","CurseForge":"progressive-automation-early-miner","Modrinth":""},{"Id":1198,"Name":"真实环境音效 (MAtmos)","CurseForge":"matmos","Modrinth":""},{"Id":1199,"Name":"水箱 (Ye Olde Tanks)","CurseForge":"ye-olde-tanks","Modrinth":""},{"Id":1200,"Name":"改善的世界 (Improving Minecraft)","CurseForge":"improving-minecraft","Modrinth":""},{"Id":1200,"Name":"改善的世界 (Improving Minecraft) - 他人的非官方重上传","CurseForge":"improving-minecraft-fork","Modrinth":""},{"Id":1201,"Name":"Wawla高亮显示 (What Are We Looking At)","CurseForge":"wawla","Modrinth":"wawla"},{"Id":1202,"Name":"点亮区域 (LightArea)","CurseForge":"lightarea","Modrinth":""},{"Id":1203,"Name":"录像回放 (Replay Mod)","CurseForge":"","Modrinth":"replaymod"},{"Id":1204,"Name":"群星璀璨 (Stellar Sky)","CurseForge":"stellar-sky","Modrinth":""},{"Id":1205,"Name":"恒星API (Stellar API)","CurseForge":"stellar-api","Modrinth":""},{"Id":1206,"Name":"NEI扩充 (NEI Addons)","CurseForge":"nei-addons","Modrinth":""},{"Id":1207,"Name":"","CurseForge":"cucumber","Modrinth":"cucumber"},{"Id":1208,"Name":"狩猎维度 (Hunting Dimension)","CurseForge":"hunting-dimension","Modrinth":"hunting-dimension"},{"Id":1209,"Name":"符文魔法 (Runes-of-Wizardry)","CurseForge":"runes-of-wizardry","Modrinth":""},{"Id":1211,"Name":"咖啡工坊 (Coffee Workshop)","CurseForge":"coffee-workshop","Modrinth":""},{"Id":1212,"Name":"游戏内账号切换 (In-Game Account Switcher)","CurseForge":"in-game-account-switcher","Modrinth":"in-game-account-switcher"},{"Id":1213,"Name":"圣化 (Consecration)","CurseForge":"consecration","Modrinth":"consecration"},{"Id":1214,"Name":"燃点HUD (Ignite HUD)","CurseForge":"ignitehud","Modrinth":"ignite-hud"},{"Id":1215,"Name":"MrCrayfish的枪 (MrCrayfish's Gun Mod)","CurseForge":"mrcrayfishs-gun-mod","Modrinth":""},{"Id":1216,"Name":"血月 (Bloodmoon)","CurseForge":"bloodmoon","Modrinth":""},{"Id":1217,"Name":"","CurseForge":"obfuscate","Modrinth":""},{"Id":1218,"Name":"符文地牢 (Runic Dungeon)","CurseForge":"runic-dungeons","Modrinth":""},{"Id":1219,"Name":"屎 (Poop Mod)","CurseForge":"poop","Modrinth":""},{"Id":1220,"Name":"啜饮 (Slurp)","CurseForge":"slurp","Modrinth":""},{"Id":1221,"Name":"意志坚定:热力附属 (Tough Expansion)","CurseForge":"tough-expansion","Modrinth":""},{"Id":1222,"Name":"神秘农业扩展 (Mystical Agradditions)","CurseForge":"mystical-agradditions","Modrinth":"mystical-agradditions"},{"Id":1223,"Name":"原版修复 (VanillaFix)","CurseForge":"vanillafix","Modrinth":"vanillafix"},{"Id":1224,"Name":"更多潘马斯配方查询 (Just Enough HarvestCraft)","CurseForge":"just-enough-harvestcraft","Modrinth":""},{"Id":1225,"Name":"","CurseForge":"charcoal-pit-4","Modrinth":"charcoal_pit"},{"Id":1225,"Name":"","CurseForge":"charcoal-pit-3","Modrinth":""},{"Id":1225,"Name":"","CurseForge":"charcoal-pit","Modrinth":""},{"Id":1226,"Name":"IC2exp还原 (Uncomplication)","CurseForge":"uncomplication","Modrinth":""},{"Id":1227,"Name":"亚尔夫海姆之翼 (The Wings of Alfheim)","CurseForge":"the-wings-of-alfheim-1-7-10","Modrinth":""},{"Id":1230,"Name":"","CurseForge":"mubble","Modrinth":""},{"Id":1230,"Name":"","CurseForge":"mubble-forge","Modrinth":""},{"Id":1231,"Name":"MineEx 通用库 (LibraryEx)","CurseForge":"libraryex","Modrinth":""},{"Id":1232,"Name":"工业线缆 (Industrial Wires)","CurseForge":"industrial-wires","Modrinth":""},{"Id":1233,"Name":"","CurseForge":"mystagrad-cloche-compat","Modrinth":""},{"Id":1234,"Name":"加载页面游戏 (WaitingTime)","CurseForge":"waitingtime","Modrinth":""},{"Id":1235,"Name":"龙之科技/龙鳞实验版 (DragonTech / Dragon Scales EX / DragonScales)","CurseForge":"dragontech","Modrinth":""},{"Id":1237,"Name":"怪诞小镇 (Gravity Falls)","CurseForge":"gravityfalls-mod","Modrinth":""},{"Id":1238,"Name":"TFC植物魔法 (TFCBotania)","CurseForge":"tfcbotania","Modrinth":""},{"Id":1239,"Name":"没有合成指南 (No Recipe Guide)","CurseForge":"no-recipe-guide","Modrinth":""},{"Id":1240,"Name":"爬行者世界/苦力怕世界 (Takumi Craft)","CurseForge":"takumi-craft","Modrinth":""},{"Id":1241,"Name":"神秘世界 (The Mists of RioV Mod)","CurseForge":"the-mists-of-riov","Modrinth":""},{"Id":1243,"Name":"无重生屏幕 (No Respawn Screen)","CurseForge":"nsr-no-respawn-screen","Modrinth":""},{"Id":1244,"Name":"蜜蜂拓展 (More Bees)","CurseForge":"more-bees","Modrinth":""},{"Id":1245,"Name":"","CurseForge":"evilnotchlib","Modrinth":""},{"Id":1246,"Name":"调色板 (TPalette)","CurseForge":"tpalette-forge","Modrinth":""},{"Id":1246,"Name":"调色板 (TPalette) - 文件覆盖","CurseForge":"tpalette","Modrinth":""},{"Id":1248,"Name":"职业蜜蜂 (Career Bees)","CurseForge":"career-bees","Modrinth":""},{"Id":1250,"Name":"升级!重置 (Level Up!Reloaded)","CurseForge":"level-up","Modrinth":""},{"Id":1251,"Name":"升级!前版 (Level Up!Legacy)","CurseForge":"level-up-legacy","Modrinth":""},{"Id":1252,"Name":"模块化船 (Moar Boats)","CurseForge":"moar-boats","Modrinth":""},{"Id":1253,"Name":"模块化动力装甲前置 (Numina)","CurseForge":"numina","Modrinth":"numina"},{"Id":1254,"Name":"匠魂补充 (Tinkers' Complement)","CurseForge":"tinkers-complement","Modrinth":"tinkers-complement"},{"Id":1255,"Name":"永恒能力 (Everlasting Abilities)","CurseForge":"everlastingabilities","Modrinth":"everlasting-abilities"},{"Id":1256,"Name":"深渊国度头颅 (AbyssalCraft Heads)","CurseForge":"abyssalcraft-heads","Modrinth":""},{"Id":1257,"Name":"不死者之王 (Overlord)","CurseForge":"overlord","Modrinth":"overlord"},{"Id":1258,"Name":"多功能农场兼容 (Multifarm Crops)","CurseForge":"multifarm-crops","Modrinth":""},{"Id":1259,"Name":"更多生物质 (Forestry Fermenter Addon)","CurseForge":"forestry-fermenter-addon","Modrinth":""},{"Id":1260,"Name":"抱枕 (Dakimakura Mod)","CurseForge":"dakimakura-mod","Modrinth":""},{"Id":1262,"Name":"","CurseForge":"rift","Modrinth":""},{"Id":1263,"Name":"动物自动喂食 (Crop-Eating Animals)","CurseForge":"crop-eating-animals","Modrinth":""},{"Id":1264,"Name":"折射 (Refraction)","CurseForge":"refraction","Modrinth":""},{"Id":1266,"Name":"图书馆 (LibrarianLib)","CurseForge":"librarianlib","Modrinth":"librarianlib"},{"Id":1267,"Name":"烟花苦力怕 (Creeper Confetti)","CurseForge":"creeper-confetti","Modrinth":"creeper-confetti"},{"Id":1268,"Name":"液体漏斗 (Funnels)","CurseForge":"funnels","Modrinth":""},{"Id":1269,"Name":"虚无世界 (Nevermine)","CurseForge":"advent-of-ascension-nevermine","Modrinth":"adventofascension"},{"Id":1270,"Name":"托罗探索 (Toro Quest)","CurseForge":"toroquest","Modrinth":""},{"Id":1272,"Name":"","CurseForge":"rikmulds-core-mod","Modrinth":""},{"Id":1273,"Name":"","CurseForge":"just-enough-pattern-banners","Modrinth":""},{"Id":1274,"Name":"远古生物 / 原始生物 (Primitive Mobs)","CurseForge":"primitive-mobs","Modrinth":""},{"Id":1275,"Name":"","CurseForge":"realistic-cobwebs","Modrinth":"realistic-cobwebs"},{"Id":1276,"Name":"简单收获 (Simple Harvest)","CurseForge":"simpleharvest","Modrinth":""},{"Id":1277,"Name":"MrCrayfish 的设备 (MrCrayfish's Device Mod)","CurseForge":"mrcrayfishs-device-mod","Modrinth":""},{"Id":1278,"Name":"方块盔甲 (Block Armor)","CurseForge":"block-armor","Modrinth":""},{"Id":1279,"Name":"储物桶 (Stockpile)","CurseForge":"stockpile","Modrinth":""},{"Id":1280,"Name":"","CurseForge":"loot-slash-conquer","Modrinth":""},{"Id":1281,"Name":"糖果世界 (Candy World)","CurseForge":"candy-world","Modrinth":""},{"Id":1283,"Name":"","CurseForge":"creativecore","Modrinth":"creativecore"},{"Id":1284,"Name":"瞬间统一 (InstantUnify)","CurseForge":"instantunify","Modrinth":""},{"Id":1286,"Name":"更多掉落 (MobDrops)","CurseForge":"mobdrops","Modrinth":""},{"Id":1287,"Name":"城邦 (States)","CurseForge":"states","Modrinth":""},{"Id":1288,"Name":"模块化机械 (Modular Machinery)","CurseForge":"modular-machinery","Modrinth":""},{"Id":1289,"Name":"复合齿轮/复合装甲 (Composite Gear)","CurseForge":"compositegear","Modrinth":""},{"Id":1290,"Name":"","CurseForge":"kiwi","Modrinth":"kiwi"},{"Id":1290,"Name":"","CurseForge":"kiwi-fabric","Modrinth":""},{"Id":1291,"Name":"料理工艺 🍳 (Cuisine 🍳)","CurseForge":"cuisine","Modrinth":""},{"Id":1292,"Name":"世界控制 (World Control)","CurseForge":"world-control","Modrinth":""},{"Id":1294,"Name":"砍树 (Tree Chopper)","CurseForge":"tree-chopper","Modrinth":""},{"Id":1295,"Name":"失落的城市 (The Lost Cities)","CurseForge":"the-lost-cities","Modrinth":"the-lost-cities"},{"Id":1299,"Name":"简单地下生物群系 (Simple Underground Biomes)","CurseForge":"simple-underground-biomes","Modrinth":""},{"Id":1300,"Name":"禅:金属工坊 🌋 (Zen: Foundry 🌋)","CurseForge":"zen-foundry","Modrinth":""},{"Id":1303,"Name":"","CurseForge":"beyondspace","Modrinth":""},{"Id":1304,"Name":"动画API (AnimationAPI)","CurseForge":"animationapi","Modrinth":""},{"Id":1305,"Name":"更好的工作台 (RealBench)","CurseForge":"realbench","Modrinth":""},{"Id":1306,"Name":"原始核心 (PrimalCore)","CurseForge":"primalcore","Modrinth":""},{"Id":1307,"Name":"原始科技 (Primal Tech)","CurseForge":"primal-tech","Modrinth":""},{"Id":1308,"Name":"古式地图 (Antique Atlas)","CurseForge":"antique-atlas","Modrinth":"antique-atlas"},{"Id":1309,"Name":"少女前线 (Girls' Frontline / ドールズフロントライン / HMGDollsFrontLine)","CurseForge":"hmgdollsfrontline","Modrinth":""},{"Id":1310,"Name":"","CurseForge":"xray-1-13-rift-modloader","Modrinth":""},{"Id":1311,"Name":"超限存储 (Overloaded)","CurseForge":"overloaded","Modrinth":""},{"Id":1312,"Name":"现代工具 (Power Tools)","CurseForge":"power-tools","Modrinth":""},{"Id":1314,"Name":"高级附魔台 (Enchanting Plus)","CurseForge":"enchanting-plus","Modrinth":"enchanting-plus"},{"Id":1315,"Name":"死亡之棍 (The Stick Of Death)","CurseForge":"stick-of-death","Modrinth":""},{"Id":1316,"Name":"神的武器 (Gods' Weapons)","CurseForge":"godweapons","Modrinth":""},{"Id":1317,"Name":"sekwah41的火影忍者 (sekwah41's Naruto Mod)","CurseForge":"sekwah41s-naruto-mod","Modrinth":""},{"Id":1318,"Name":"匠魂盔甲 (Construct's Armory)","CurseForge":"constructs-armory","Modrinth":"constructs-armory"},{"Id":1320,"Name":"传说之下 (Undertale Mod)","CurseForge":"undertale-mod","Modrinth":""},{"Id":1321,"Name":"水晶球 (Globe)","CurseForge":"globe","Modrinth":""},{"Id":1322,"Name":"超级木棍剑 (Super Stick sword)","CurseForge":"super-stick-sword","Modrinth":""},{"Id":1323,"Name":"通用机械发电机 (Mekanism Generators)","CurseForge":"mekanism-generators","Modrinth":"mekanism-generators"},{"Id":1324,"Name":"蜘蛛女王 (Spider Queen)","CurseForge":"spider-queen","Modrinth":""},{"Id":1325,"Name":"美妙饰品 (Baublelicious)","CurseForge":"baublelicious","Modrinth":""},{"Id":1326,"Name":"","CurseForge":"void-monster","Modrinth":""},{"Id":1327,"Name":"更多盾牌 (Shields Plus)","CurseForge":"shields-plus","Modrinth":""},{"Id":1328,"Name":"","CurseForge":"ghost-buster","Modrinth":""},{"Id":1329,"Name":"自定义三明治 (Culinary Construct)","CurseForge":"culinary-construct","Modrinth":"culinary-construct"},{"Id":1330,"Name":"怪物装备自定义 (ArmoreableMobs)","CurseForge":"armoreablemobs","Modrinth":""},{"Id":1333,"Name":"","CurseForge":"advanced-inventory","Modrinth":""},{"Id":1336,"Name":"环境污染/领域的污染 (Pollution of the Realms)","CurseForge":"pollution-of-the-realms","Modrinth":""},{"Id":1338,"Name":"","CurseForge":"heat-and-climate-lib","Modrinth":""},{"Id":1339,"Name":"传送石碑/指路石 (Waystones)","CurseForge":"waystones","Modrinth":"waystones"},{"Id":1339,"Name":"传送石碑/指路石 (Waystones)","CurseForge":"waystones-fabric","Modrinth":""},{"Id":1340,"Name":"神秘计算器 (Thaumic Calculations)","CurseForge":"thaumic-calculations","Modrinth":""},{"Id":1341,"Name":"潘马斯花园 (Pam's Weee! Flowers)","CurseForge":"pams-weee-flowers","Modrinth":""},{"Id":1344,"Name":"滑翔伞 (Paragliders)","CurseForge":"paragliders","Modrinth":"paragliders"},{"Id":1345,"Name":"末影接口:管道拓展 (Ender IO - Endergy)","CurseForge":"ender-io-endergy","Modrinth":"enderio-endergy"},{"Id":1346,"Name":"","CurseForge":"bwm-suite","Modrinth":""},{"Id":1347,"Name":"环境音乐 (Ambience)","CurseForge":"ambience-music-mod","Modrinth":""},{"Id":1348,"Name":"AEI物品管理器 (Almost Enough Items)","CurseForge":"almost-enough-items","Modrinth":""},{"Id":1349,"Name":"","CurseForge":"mtutils","Modrinth":""},{"Id":1350,"Name":"墓碑 (GraveStone)","CurseForge":"gravestone-mod","Modrinth":"gravestone-mod"},{"Id":1351,"Name":"","CurseForge":"atlas-extras","Modrinth":""},{"Id":1352,"Name":"马力 (Horse Power)","CurseForge":"horse-power","Modrinth":""},{"Id":1353,"Name":"","CurseForge":"better-with-addons","Modrinth":""},{"Id":1354,"Name":"特斯拉核心 (Tesla Core Lib)","CurseForge":"tesla-core-lib","Modrinth":""},{"Id":1355,"Name":"虚空工艺 (Voidscape/VoidCraft)","CurseForge":"voidscape","Modrinth":""},{"Id":1356,"Name":"末地:生物群系扩展 (Stygian End: Biome Expansion)","CurseForge":"stygian-end-biome-expansion","Modrinth":""},{"Id":1357,"Name":"木制熔炉 (Wooden Furnace)","CurseForge":"wooden-furnace","Modrinth":""},{"Id":1358,"Name":"更多金属板 (More Plates)","CurseForge":"moreplates","Modrinth":""},{"Id":1359,"Name":"","CurseForge":"morelibs","Modrinth":""},{"Id":1360,"Name":"游戏阶段 (Game Stages)","CurseForge":"game-stages","Modrinth":"game-stages"},{"Id":1362,"Name":"寂静宝石 (Silent's Gems)","CurseForge":"silents-gems","Modrinth":"silents-gems"},{"Id":1363,"Name":"","CurseForge":"silent-lib","Modrinth":"silent-lib"},{"Id":1364,"Name":"寂静宝石:匠魂支持 (Silent's Gems: TiC Support)","CurseForge":"silents-gems-tic-support","Modrinth":""},{"Id":1365,"Name":"","CurseForge":"lit-little-insignificant-things","Modrinth":""},{"Id":1366,"Name":"","CurseForge":"gemulation","Modrinth":""},{"Id":1367,"Name":"寂静宝石:额外部件 (Silent's Gems: Extra Parts)","CurseForge":"silents-gems-extra-parts","Modrinth":""},{"Id":1368,"Name":"趣味矿石 (Fun Ores)","CurseForge":"fun-ores","Modrinth":""},{"Id":1369,"Name":"简易太阳能 (Simple Solar Panels)","CurseForge":"solar-furnaces","Modrinth":""},{"Id":1370,"Name":"原版死亡箱子 (Vanilla Death Chest)","CurseForge":"vanilladeathchest","Modrinth":"vanilladeathchest"},{"Id":1370,"Name":"原版死亡箱子 (Vanilla Death Chest)","CurseForge":"vanilladeathchest-forge","Modrinth":""},{"Id":1370,"Name":"原版死亡箱子 (Vanilla Death Chest)","CurseForge":"vanilladeathchest-fabric","Modrinth":""},{"Id":1371,"Name":"蜘蛛恐惧症 (Arachnophobia)","CurseForge":"arachnophobia","Modrinth":""},{"Id":1372,"Name":"深渊国度联动 (AbyssalCraft Integration)","CurseForge":"abyssalcraft-integration","Modrinth":""},{"Id":1373,"Name":"预制建筑 (Prefab)","CurseForge":"prefab","Modrinth":"prefab"},{"Id":1373,"Name":"预制建筑 (Prefab)","CurseForge":"prefab-fabric","Modrinth":""},{"Id":1374,"Name":"","CurseForge":"haunch-hud","Modrinth":""},{"Id":1375,"Name":"","CurseForge":"absent-by-design","Modrinth":"absent-by-design"},{"Id":1376,"Name":"无夜视闪烁 (No Night Vision Flashing)","CurseForge":"no-nv-flash","Modrinth":"no-nv-flash"},{"Id":1377,"Name":"街机 (Arcade Mod)","CurseForge":"arcade-mod","Modrinth":""},{"Id":1378,"Name":"","CurseForge":"asmodeuscore","Modrinth":"asmodeuscore"},{"Id":1379,"Name":"建筑小帮手 (Building Gadgets)","CurseForge":"building-gadgets","Modrinth":""},{"Id":1380,"Name":"Dooglamoo的世界 (Dooglamoo Worlds)","CurseForge":"dooglamoo-worlds","Modrinth":""},{"Id":1381,"Name":"SCP基金会:封锁 (SCP: Lockdown)","CurseForge":"scp-lockdown","Modrinth":"scp-lockdown"},{"Id":1382,"Name":"中土神秘学 (Middle-Earth Thaumaturgy)","CurseForge":"middle-earth-thaumaturgy","Modrinth":""},{"Id":1383,"Name":"自然神殿 (Structpro)","CurseForge":"structpro-mod-fast-schematic-spawning-system","Modrinth":""},{"Id":1384,"Name":"更好的FPS (BetterFPS)","CurseForge":"betterfps","Modrinth":""},{"Id":1385,"Name":"","CurseForge":"sky-compression","Modrinth":""},{"Id":1386,"Name":"收获 (Reap)","CurseForge":"reap-mod","Modrinth":"reap-mod"},{"Id":1387,"Name":"地质矿脉 (Geolosys)","CurseForge":"geolosys","Modrinth":"geolosys"},{"Id":1388,"Name":"帕秋莉手册 (Patchouli)","CurseForge":"patchouli","Modrinth":"patchouli"},{"Id":1388,"Name":"帕秋莉手册 (Patchouli)","CurseForge":"patchouli-fabric","Modrinth":""},{"Id":1389,"Name":"","CurseForge":"jeid","Modrinth":""},{"Id":1390,"Name":"","CurseForge":"gases-framework","Modrinth":""},{"Id":1391,"Name":"范围泵 (Ranged Pumps)","CurseForge":"ranged-pumps","Modrinth":"ranged-pumps"},{"Id":1392,"Name":"背包 (Bagginses)","CurseForge":"bagginses","Modrinth":""},{"Id":1393,"Name":"工业时代2经典版 (IC2 Classic)","CurseForge":"ic2-classic","Modrinth":"ic2classic"},{"Id":1394,"Name":"","CurseForge":"opencubicchunks","Modrinth":"cubicchunks"},{"Id":1395,"Name":"","CurseForge":"cubicworldgen","Modrinth":"cwg"},{"Id":1396,"Name":"","CurseForge":"rally-health","Modrinth":"rally-health"},{"Id":1397,"Name":"开放式地形生成器 (Open Terrain Generator)","CurseForge":"open-terrain-generator","Modrinth":""},{"Id":1399,"Name":"无庇护所 (NoShelter)","CurseForge":"noshelter","Modrinth":""},{"Id":1400,"Name":"史诗攻城 (Epic Siege)","CurseForge":"epic-siege-mod","Modrinth":""},{"Id":1401,"Name":"熔炉改革 (Furnace Overhaul)","CurseForge":"furnace-overhaul","Modrinth":""},{"Id":1403,"Name":"建筑师工艺重置版 (ArchitectureCraft - TridentMC Version)","CurseForge":"architecturecraft-tridev","Modrinth":"architecture-craft"},{"Id":1404,"Name":"矿石农场 (Ore Farm)","CurseForge":"ore-farm","Modrinth":""},{"Id":1407,"Name":"","CurseForge":"plethora-peripherals","Modrinth":"plethora-peripherals"},{"Id":1408,"Name":"简单的飞行 (Simple Flight)","CurseForge":"simple-flight","Modrinth":""},{"Id":1409,"Name":"工厂科技 (FactoryTech)","CurseForge":"factory-tech","Modrinth":""},{"Id":1412,"Name":"","CurseForge":"mysticallib","Modrinth":""},{"Id":1413,"Name":"","CurseForge":"crissaegrim","Modrinth":""},{"Id":1416,"Name":"遍历 (Traverse)","CurseForge":"traverse-reforged","Modrinth":"traverse-legacy"},{"Id":1416,"Name":"遍历 (Traverse)","CurseForge":"traverse","Modrinth":"traverse"},{"Id":1417,"Name":"霏雪寄语之地 (Winter Wonder Land)","CurseForge":"winter-wonder-land","Modrinth":""},{"Id":1418,"Name":"道路 (Road Stuff)","CurseForge":"road-stuff","Modrinth":"road-stuff"},{"Id":1419,"Name":"","CurseForge":"ae2wtlib","Modrinth":""},{"Id":1420,"Name":"仿真档案柜 (Real Filing Cabinet)","CurseForge":"real-filing-cabinet","Modrinth":""},{"Id":1421,"Name":"WTF 工业拓展 (WTF Ic2 Addon)","CurseForge":"hycrafthds-wtf-ic2-addon","Modrinth":""},{"Id":1422,"Name":"","CurseForge":"u-team-core","Modrinth":"u-team-core"},{"Id":1423,"Name":"FTB 任务 (FTB Quests)","CurseForge":"ftb-quests-forge","Modrinth":""},{"Id":1423,"Name":"FTB 任务 (FTB Quests)","CurseForge":"ftb-quests-fabric","Modrinth":""},{"Id":1424,"Name":"材质修复 (TexFix)","CurseForge":"texfix","Modrinth":"texfix"},{"Id":1425,"Name":"地图作者小帮手 (Mapmaker's Gadgets)","CurseForge":"mapmakers-gadgets","Modrinth":""},{"Id":1426,"Name":"旅者之器 (Traveller's Gear)","CurseForge":"travellers-gear","Modrinth":""},{"Id":1427,"Name":"陶瓷器 (Ceramics)","CurseForge":"ceramics","Modrinth":"ceramics"},{"Id":1428,"Name":"拔刀剑日系附属包 (SlashBlade Japanese Addon Pack)","CurseForge":"sjap","Modrinth":"sjap"},{"Id":1430,"Name":"星球研究 (Planet Progression)","CurseForge":"planet-progression","Modrinth":""},{"Id":1431,"Name":"","CurseForge":"space-advanced-addon-for-galactic-craft-3","Modrinth":""},{"Id":1432,"Name":"僵尸启示录 (Decimation)","CurseForge":"decimation-zombie-apocalypse","Modrinth":""},{"Id":1433,"Name":"Rift 模组列表 (Rift Mod List)","CurseForge":"rift-mod-list","Modrinth":"rift-mod-list"},{"Id":1434,"Name":"","CurseForge":"forgeendertech","Modrinth":""},{"Id":1435,"Name":"","CurseForge":"new-tardis-mod","Modrinth":""},{"Id":1437,"Name":"高级烟囱 (Advanced Chimneys)","CurseForge":"advanced-chimneys","Modrinth":""},{"Id":1438,"Name":"神秘博士 - 再生 (Doctor Who - Regeneration​)","CurseForge":"regeneration","Modrinth":""},{"Id":1439,"Name":"","CurseForge":"stevekung-lib","Modrinth":""},{"Id":1440,"Name":"更快的加载 (MakeZoomZoom)","CurseForge":"make-zoom-zoom","Modrinth":""},{"Id":1441,"Name":"Minecraft虚拟机 (Minecraft Virtual Machines)","CurseForge":"minecraft-virtual-machines","Modrinth":""},{"Id":1442,"Name":"洞穴 II (Cavern II)","CurseForge":"cavern2","Modrinth":""},{"Id":1443,"Name":"增加ID上限 (NotEnoughIDs)","CurseForge":"notenoughids","Modrinth":""},{"Id":1444,"Name":"可视化无尽配方编辑器 (Avaritia Recipe Generator)","CurseForge":"avaritia-recipe-generator","Modrinth":""},{"Id":1445,"Name":"陷阱 (Trapcraft)","CurseForge":"trapcraft","Modrinth":""},{"Id":1446,"Name":"模组名称显示 (Mod Name Tooltip)","CurseForge":"mod-name-tooltip","Modrinth":""},{"Id":1447,"Name":"进化之镐2 (GPickaxe 2)","CurseForge":"gpick-2","Modrinth":""},{"Id":1448,"Name":"","CurseForge":"cxlibrary","Modrinth":""},{"Id":1450,"Name":"集成管道 (Integrated Tunnels)","CurseForge":"integrated-tunnels","Modrinth":"integrated-tunnels"},{"Id":1451,"Name":"经验不修补 (Unmending)","CurseForge":"unmending","Modrinth":""},{"Id":1452,"Name":"蔓延的下界 (The Creeping Nether)","CurseForge":"the-creeping-nether","Modrinth":"creeping-nether"},{"Id":1453,"Name":"Psi随想 (Random PSIdeas)","CurseForge":"random-psideas","Modrinth":""},{"Id":1454,"Name":"真实世界 (ExPetrum)","CurseForge":"expetrum","Modrinth":""},{"Id":1455,"Name":"等价能源学 (Equivalent Energistics / Equivalent Energistics (LTS))","CurseForge":"equivalent-energistics","Modrinth":""},{"Id":1455,"Name":"等价能源学 (Equivalent Energistics / Equivalent Energistics (LTS)) - (LTS)patch 版","CurseForge":"equivalent-energistics-patched","Modrinth":""},{"Id":1456,"Name":"","CurseForge":"thedragonlib","Modrinth":"thedragonlib"},{"Id":1457,"Name":"自动上坡 (Repose)","CurseForge":"repose","Modrinth":""},{"Id":1458,"Name":"植物学拓展 (Botanic Additions)","CurseForge":"botanic-additions","Modrinth":""},{"Id":1460,"Name":"素食之道 (The Veggie Way)","CurseForge":"veggieway-fabric","Modrinth":""},{"Id":1460,"Name":"素食之道 (The Veggie Way)","CurseForge":"the-veggie-way","Modrinth":""},{"Id":1461,"Name":"石像鬼 (Gargoyles)","CurseForge":"gargoyles-mod","Modrinth":""},{"Id":1462,"Name":"恐水症 (Hydrophobia)","CurseForge":"hydrophobia","Modrinth":""},{"Id":1463,"Name":"维度食物 (Dimensional Edibles)","CurseForge":"dimensional-edibles","Modrinth":""},{"Id":1464,"Name":"叶间穿行 (Passable Leaves)","CurseForge":"passable-leaves","Modrinth":""},{"Id":1465,"Name":"穿草攻击 (SwingThroughGrass)","CurseForge":"swingthroughgrass","Modrinth":""},{"Id":1466,"Name":"史蒂夫的奇妙冒险 (Steve's Bizarre Adventure)","CurseForge":"steves-bizarre-adventure","Modrinth":""},{"Id":1467,"Name":"动物谷:基础 (Animania Base)","CurseForge":"animania","Modrinth":""},{"Id":1468,"Name":"","CurseForge":"endertweaker","Modrinth":""},{"Id":1469,"Name":"","CurseForge":"cofh-vanilla-tools","Modrinth":""},{"Id":1471,"Name":"功能装甲 (Rarmor)","CurseForge":"rarmor","Modrinth":""},{"Id":1472,"Name":"沉浸接口 (Immersive IO)","CurseForge":"immersive-io","Modrinth":""},{"Id":1473,"Name":"运算变速 (TickrateChanger)","CurseForge":"tickratechanger","Modrinth":""},{"Id":1474,"Name":"植物魔法需要它! (Botania Needs These Things!)","CurseForge":"botania-needs-these-things","Modrinth":""},{"Id":1475,"Name":"","CurseForge":"nocubes","Modrinth":""},{"Id":1475,"Name":"","CurseForge":"no-cubes-reloaded","Modrinth":""},{"Id":1475,"Name":"","CurseForge":"","Modrinth":"nocubes"},{"Id":1476,"Name":"","CurseForge":"orelib","Modrinth":""},{"Id":1477,"Name":"动态Tick (Tick-Dynamic)","CurseForge":"tick-dynamic","Modrinth":""},{"Id":1478,"Name":"潮涌 (Surge)","CurseForge":"surge","Modrinth":"surge"},{"Id":1479,"Name":"","CurseForge":"more-avaritia","Modrinth":""},{"Id":1480,"Name":"AI改进 (AI Improvements)","CurseForge":"ai-improvements","Modrinth":"ai-improvements"},{"Id":1481,"Name":"等价交换升级 (FTB Project EX/ExtendedExchange)","CurseForge":"projectex","Modrinth":""},{"Id":1481,"Name":"等价交换升级 (FTB Project EX/ExtendedExchange)","CurseForge":"extendedexchange","Modrinth":""},{"Id":1483,"Name":"Xaero的世界地图 (Xaero's World Map)","CurseForge":"xaeros-world-map","Modrinth":"xaeros-world-map"},{"Id":1484,"Name":"巫师艺术 (Wizardry)","CurseForge":"wizardry-mod","Modrinth":""},{"Id":1485,"Name":"熔炉性能优化 (FastFurnace)","CurseForge":"fastfurnace","Modrinth":"fastfurnace"},{"Id":1486,"Name":"工作台性能优化 (FastWorkbench)","CurseForge":"fastworkbench","Modrinth":"fastworkbench"},{"Id":1487,"Name":"工具保护 (UnbreakEn)","CurseForge":"unbreaken","Modrinth":""},{"Id":1488,"Name":"比特币 (Bitcoin)","CurseForge":"bitcoin","Modrinth":""},{"Id":1489,"Name":"","CurseForge":"hungering-darkness","Modrinth":""},{"Id":1490,"Name":"根源魔法经典版 (Roots Classic)","CurseForge":"roots-classic","Modrinth":""},{"Id":1491,"Name":"余烬复刻版 (Embers Rekindled)","CurseForge":"embers-rekindled","Modrinth":"embers"},{"Id":1492,"Name":"自动贩卖机 (Vending Machines Revamped)","CurseForge":"vending-machines-revamped","Modrinth":""},{"Id":1493,"Name":"神秘炼金学 (Thaumic Alchemy)","CurseForge":"thaumic-alchemy","Modrinth":""},{"Id":1495,"Name":"移动方式增强 (Move Plus)","CurseForge":"move-plus","Modrinth":""},{"Id":1496,"Name":"未来的版本 (FutureVersions)","CurseForge":"future-minecraft","Modrinth":""},{"Id":1497,"Name":"","CurseForge":"contenttweaker","Modrinth":"contenttweaker"},{"Id":1498,"Name":"白手起家 (From The Ground Up)","CurseForge":"from-the-ground-up","Modrinth":""},{"Id":1499,"Name":"经验机制改革 (Clumps)","CurseForge":"clumps","Modrinth":"clumps"},{"Id":1500,"Name":"动态环境:信息显示 (Dynamic Surroundings: HUDs)","CurseForge":"dynamic-surroundings-huds","Modrinth":""},{"Id":1501,"Name":"合成辅助 (Crafting Tweaks)","CurseForge":"crafting-tweaks","Modrinth":"crafting-tweaks"},{"Id":1501,"Name":"合成辅助 (Crafting Tweaks)","CurseForge":"crafting-tweaks-fabric","Modrinth":""},{"Id":1502,"Name":"","CurseForge":"limelib","Modrinth":""},{"Id":1503,"Name":"重锤火花 (Sparks Hammers)","CurseForge":"sparks-hammers","Modrinth":""},{"Id":1504,"Name":"致命怪物 (Deadly Monsters)","CurseForge":"deadly-monsters","Modrinth":""},{"Id":1505,"Name":"原版自动化 (VanillaAutomation)","CurseForge":"vanillaautomation","Modrinth":""},{"Id":1506,"Name":"Tick分析器 (TickProfiler)","CurseForge":"tickprofiler","Modrinth":""},{"Id":1507,"Name":"立体工具方块 (Vanilla Immersion)","CurseForge":"vanilla-immersion","Modrinth":""},{"Id":1508,"Name":"土方工程 (Earthworks)","CurseForge":"earthworks","Modrinth":""},{"Id":1509,"Name":"地灵云心/海树山花 (Terraqueous)","CurseForge":"terraqueous","Modrinth":"terraqueous"},{"Id":1509,"Name":"地灵云心/海树山花 (Terraqueous)","CurseForge":"terraqueous-fabric","Modrinth":""},{"Id":1510,"Name":"自定义初始物品 (Initial Inventory)","CurseForge":"initial-inventory","Modrinth":"initial-inventory"},{"Id":1511,"Name":"","CurseForge":"interaction-wheel","Modrinth":"interaction-wheel"},{"Id":1512,"Name":"滤水器 (Water Strainer)","CurseForge":"water-strainer","Modrinth":""},{"Id":1513,"Name":"匠魂空岛 (Tinkers' Skyblock)","CurseForge":"tinkers-skyblock","Modrinth":""},{"Id":1514,"Name":"漏斗碰撞箱修复 (Diet Hoppers)","CurseForge":"diet-hoppers","Modrinth":""},{"Id":1515,"Name":"超多食物 (XL Food Mod)","CurseForge":"xl-food-mod","Modrinth":""},{"Id":1516,"Name":"烟尘 (Soot)","CurseForge":"soot","Modrinth":""},{"Id":1517,"Name":"哈利·波特:法术 (Harry Potter Spells)","CurseForge":"hp-spells","Modrinth":""},{"Id":1518,"Name":"自然建筑生成 (Recurrent Complex)","CurseForge":"recurrent-complex","Modrinth":""},{"Id":1519,"Name":"功能代理 (CapabilityProxy)","CurseForge":"capabilityproxy","Modrinth":"capability-proxy"},{"Id":1520,"Name":"","CurseForge":"reauth","Modrinth":""},{"Id":1520,"Name":"","CurseForge":"reauth-fabric","Modrinth":""},{"Id":1521,"Name":"","CurseForge":"autoverse","Modrinth":"autoverse"},{"Id":1522,"Name":"运输 (Transprot)","CurseForge":"transprot","Modrinth":""},{"Id":1523,"Name":"","CurseForge":"default-world-generator-port","Modrinth":""},{"Id":1524,"Name":"更好的任务-基础扩展 (Better Questing - Standard Expansion)","CurseForge":"better-questing-standard-expansion","Modrinth":""},{"Id":1525,"Name":"方块交换器 (Exchangers)","CurseForge":"exchangers","Modrinth":""},{"Id":1526,"Name":"灵活的工具 (Flexible Tools)","CurseForge":"flexible-tools","Modrinth":""},{"Id":1527,"Name":"维度控制 (Dimensional Control)","CurseForge":"dimensional-control","Modrinth":""},{"Id":1528,"Name":"瓦尔基里天空 (Valkyrien Skies)","CurseForge":"valkyrien-skies","Modrinth":"valkyrien-skies"},{"Id":1529,"Name":"物品滚轮 (Item Scroller)","CurseForge":"item-scroller","Modrinth":"item-scroller"},{"Id":1530,"Name":"更好的进度 (Better Advancements)","CurseForge":"better-advancements","Modrinth":"better-advancements"},{"Id":1531,"Name":"","CurseForge":"lucraft-core","Modrinth":""},{"Id":1532,"Name":"进化的 BOSS (Progressive Bosses)","CurseForge":"progressive-bosses","Modrinth":"progressive-bosses"},{"Id":1532,"Name":"进化的 BOSS (Progressive Bosses)","CurseForge":"fabric-progressive-bosses","Modrinth":""},{"Id":1533,"Name":"","CurseForge":"persistent-bits","Modrinth":"persistent-bits"},{"Id":1534,"Name":"真实公路 (RC Roads)","CurseForge":"rc-roads","Modrinth":""},{"Id":1535,"Name":"动作表情 (Emoticons)","CurseForge":"emoticons","Modrinth":""},{"Id":1536,"Name":"简单的潜水装备 (Simple Diving Gear)","CurseForge":"simple-diving-gear","Modrinth":""},{"Id":1537,"Name":"","CurseForge":"just-enough-energistics-jee","Modrinth":""},{"Id":1538,"Name":"钢铁侠 (IronMan)","CurseForge":"ironman","Modrinth":""},{"Id":1539,"Name":"区块加载动画 (Chunk Animator)","CurseForge":"chunk-animator","Modrinth":"chunkanimator"},{"Id":1540,"Name":"","CurseForge":"craftstudio-api","Modrinth":""},{"Id":1542,"Name":"菲斯克的超级英雄 (Fisk's Superheroes)","CurseForge":"fisks-superheroes-2","Modrinth":"fiskheroes"},{"Id":1544,"Name":"植物魔法全能工具 (AIOT Botania)","CurseForge":"aiot-botania","Modrinth":"aiot-botania"},{"Id":1545,"Name":"植物魔法调整 (Botania Tweaks)","CurseForge":"botania-tweaks","Modrinth":""},{"Id":1546,"Name":"","CurseForge":"albedo","Modrinth":""},{"Id":1547,"Name":"自然灵气 (Nature's Aura)","CurseForge":"natures-aura","Modrinth":"natures-aura"},{"Id":1549,"Name":"","CurseForge":"void-island-control","Modrinth":""},{"Id":1550,"Name":"IC2育种模拟器/杂交模拟器 (IC2 Crop-Breeding Plugin)","CurseForge":"ic2-nei-crop-plugin","Modrinth":""},{"Id":1551,"Name":"更好的储存2 (Better Storage Too)","CurseForge":"better-storage-too","Modrinth":""},{"Id":1552,"Name":"更好的砧板 (Manaita Plus)","CurseForge":"manaita-plus","Modrinth":""},{"Id":1553,"Name":"巴特的作品 (bartworks)","CurseForge":"bartworks","Modrinth":""},{"Id":1555,"Name":"可放置马达 (Placeable Motor)","CurseForge":"placeable-motor","Modrinth":""},{"Id":1556,"Name":"","CurseForge":"exo-craft","Modrinth":"exo-craft"},{"Id":1557,"Name":"简单登录 (Simple Login)","CurseForge":"simple-login","Modrinth":""},{"Id":1558,"Name":"Grim的Mod整合 (Grim Pack)","CurseForge":"grim-pack","Modrinth":""},{"Id":1559,"Name":"工匠之作/工匠工作台 (Artisan Worktables)","CurseForge":"artisan-worktables","Modrinth":""},{"Id":1560,"Name":"","CurseForge":"ptrlib","Modrinth":"ptrlib"},{"Id":1561,"Name":"爬行者意识 (Creeper Awareness)","CurseForge":"creeper-awareness","Modrinth":""},{"Id":1562,"Name":"","CurseForge":"what-fluid-fix","Modrinth":""},{"Id":1563,"Name":"蔚蓝浩空 (Blue Skies)","CurseForge":"blue-skies","Modrinth":"blue-skies"},{"Id":1564,"Name":"活力之旅 (Project: Vibrant Journeys)","CurseForge":"project-vibrant-journeys","Modrinth":"project-vibrant-journeys"},{"Id":1565,"Name":"修复卡床 (Bed Bugs)","CurseForge":"bed-bugs","Modrinth":""},{"Id":1566,"Name":"生物群系修改器 (BiomeTweaker)","CurseForge":"biometweaker","Modrinth":""},{"Id":1567,"Name":"实用电脑 (ActuallyComputers)","CurseForge":"actuallycomputers","Modrinth":""},{"Id":1568,"Name":"斜栅栏 (Fence Overhaul)","CurseForge":"fence-overhaul","Modrinth":""},{"Id":1569,"Name":"僵尸玩家 (Zombie Players)","CurseForge":"zombie-players","Modrinth":""},{"Id":1570,"Name":"珍奇鸟类 (Exotic Birds)","CurseForge":"exotic-birds","Modrinth":""},{"Id":1571,"Name":"","CurseForge":"charset","Modrinth":""},{"Id":1572,"Name":"生物群系修改器扩展 (BiomeTweakerCore)","CurseForge":"biometweakercore","Modrinth":""},{"Id":1573,"Name":"","CurseForge":"trashcans-reborn","Modrinth":""},{"Id":1574,"Name":"","CurseForge":"CompactDrawers","Modrinth":""},{"Id":1575,"Name":"发射器放置方块 (BlockDispenser)","CurseForge":"blockdispenser","Modrinth":""},{"Id":1576,"Name":"爬墙红石/粘性红石 (Redstone Paste)","CurseForge":"redstone-paste","Modrinth":""},{"Id":1577,"Name":"动态的树:遍历附属 (Dynamic Trees - Traverse Compat)","CurseForge":"dynamic-trees-traverse-compat","Modrinth":""},{"Id":1578,"Name":"","CurseForge":"charset-lib","Modrinth":""},{"Id":1579,"Name":"更好的下界 (BetterNether)","CurseForge":"betternether","Modrinth":"betternether"},{"Id":1580,"Name":"时光机 (Time Machine)","CurseForge":"time-machine-mod","Modrinth":""},{"Id":1582,"Name":"更大的堆叠数量 (Upsizer Mod)","CurseForge":"upsizer-mod","Modrinth":""},{"Id":1583,"Name":"越过栅栏 (Fence Jumper)","CurseForge":"fence-jumper","Modrinth":""},{"Id":1584,"Name":"便携附魔替换台 (Enchantments Exchanger)","CurseForge":"enchantments-exchanger","Modrinth":""},{"Id":1585,"Name":"","CurseForge":"additional-enchanted-miner","Modrinth":"additional-enchanted-miner"},{"Id":1586,"Name":"宝藏袋 (Treasure Bags)","CurseForge":"treasure-bags","Modrinth":""},{"Id":1587,"Name":"史蒂夫工艺 (SteveCraft)","CurseForge":"stevecraft-by-owenpsteve2","Modrinth":""},{"Id":1588,"Name":"饥饿游戏 (The Hunger Games)","CurseForge":"hunger-games","Modrinth":""},{"Id":1589,"Name":"群峦工业 (TFCTech Addon)","CurseForge":"tfctech-addon","Modrinth":""},{"Id":1590,"Name":"","CurseForge":"yunomakegoodmap","Modrinth":""},{"Id":1591,"Name":"苦力怕蕨 (Organic Creepers)","CurseForge":"organic-creepers","Modrinth":""},{"Id":1595,"Name":"工业复兴 (Industrial Renewal)","CurseForge":"industrial-renewal","Modrinth":"industrial-renewal"},{"Id":1596,"Name":"龙之进化拓展 (Draconic Additions)","CurseForge":"draconicadditions","Modrinth":""},{"Id":1598,"Name":"令人讨厌的生物 (Hated Mobs)","CurseForge":"hated-mobs","Modrinth":""},{"Id":1600,"Name":"通用机械:DZ版 (Mekanica)","CurseForge":"mekanica","Modrinth":""},{"Id":1601,"Name":"LT小方块 (LittleTiles)","CurseForge":"littletiles","Modrinth":"littletiles"},{"Id":1602,"Name":"合成拓展 (Extended Crafting)","CurseForge":"extended-crafting","Modrinth":"extended-crafting"},{"Id":1603,"Name":"奇才妙械 (Prodigy Tech)","CurseForge":"prodigy-tech","Modrinth":""},{"Id":1605,"Name":"物品过滤器 (Item Filters​)","CurseForge":"item-filters","Modrinth":"item-filters"},{"Id":1605,"Name":"物品过滤器 (Item Filters​)","CurseForge":"item-filters-fabric","Modrinth":""},{"Id":1606,"Name":"","CurseForge":"eblib","Modrinth":""},{"Id":1607,"Name":"","CurseForge":"notenoughcodecs","Modrinth":""},{"Id":1608,"Name":"未来的MC (Future MC)","CurseForge":"future-mc","Modrinth":"future-mc"},{"Id":1609,"Name":"索桥 (Rope Bridge)","CurseForge":"rope-bridge","Modrinth":""},{"Id":1610,"Name":"油矿石 (Oil Ore)","CurseForge":"sbm-oil-ore","Modrinth":""},{"Id":1611,"Name":"红石减红石 (Redstone Minus Redstone)","CurseForge":"redstone-minus-redstone","Modrinth":""},{"Id":1612,"Name":"更多熔炉 (More Furnaces)","CurseForge":"more-furnaces","Modrinth":""},{"Id":1613,"Name":"集成合成学 (Integrated Crafting)","CurseForge":"integrated-crafting","Modrinth":""},{"Id":1614,"Name":"集成终端 (Integrated Terminals)","CurseForge":"integrated-terminals","Modrinth":"integrated-terminals"},{"Id":1615,"Name":"通用机械工具 (Mekanism Tools)","CurseForge":"mekanism-tools","Modrinth":"mekanism-tools"},{"Id":1616,"Name":"机械改造1.12+ (Robotic Parts)","CurseForge":"roboticparts","Modrinth":""},{"Id":1617,"Name":"","CurseForge":"rewired","Modrinth":""},{"Id":1618,"Name":"你将去的生物群系 (Oh The Biomes You'll Go)","CurseForge":"oh-the-biomes-youll-go","Modrinth":"biomesyougo"},{"Id":1618,"Name":"你将去的生物群系 (Oh The Biomes You'll Go)","CurseForge":"oh-the-biomes-youll-go-fabric","Modrinth":""},{"Id":1619,"Name":"垂直堆叠的世界 (Vertically Stacked Dimensions)","CurseForge":"vertically-stacked-dimensions","Modrinth":""},{"Id":1621,"Name":"","CurseForge":"malisisswitches","Modrinth":""},{"Id":1622,"Name":"自动化红石 (Automated Redstone)","CurseForge":"automated-redstone","Modrinth":""},{"Id":1623,"Name":"Thutmose的电梯 (Thut's Elevators)","CurseForge":"thuts-elevators","Modrinth":""},{"Id":1624,"Name":"","CurseForge":"additional-resources","Modrinth":""},{"Id":1625,"Name":"天空果园 (Sky Orchards)","CurseForge":"sky-orchards","Modrinth":""},{"Id":1626,"Name":"","CurseForge":"mdxlib","Modrinth":""},{"Id":1627,"Name":"无线设备 (Wireless Utilities)","CurseForge":"wireless-utilities","Modrinth":""},{"Id":1628,"Name":"","CurseForge":"tometinkers","Modrinth":""},{"Id":1629,"Name":"刀锻冶匠魂 (Tinker's SlashBlade)","CurseForge":"tinkers-slashblade","Modrinth":""},{"Id":1630,"Name":"死亡音效 (Audio Death)","CurseForge":"audio-death","Modrinth":""},{"Id":1631,"Name":"深度怪物学习 (Deep Mob Learning)","CurseForge":"deep-mob-learning","Modrinth":""},{"Id":1633,"Name":"豆腐工艺重制版 (TofuCraftReload)","CurseForge":"tofucraftreload","Modrinth":"tofucraftreload"},{"Id":1634,"Name":"巫术学 (Electroblob's Wizardry)","CurseForge":"electroblobs-wizardry","Modrinth":""},{"Id":1635,"Name":"更多告示牌 (MoarSigns)","CurseForge":"moarsigns","Modrinth":""},{"Id":1636,"Name":"假面骑士工艺 (Kamen Rider Craft)","CurseForge":"kamen-rider-craft","Modrinth":""},{"Id":1637,"Name":"无尽贪婪:接口 (Avaritia IO)","CurseForge":"avaritia-io","Modrinth":""},{"Id":1638,"Name":"致密中子态素收集器 (Dense Neutron Collectors)","CurseForge":"dense-neutron-collectors","Modrinth":""},{"Id":1638,"Name":"致密中子态素收集器 (Dense Neutron Collectors)","CurseForge":"dense-neutron-collectors-1-7","Modrinth":""},{"Id":1639,"Name":"","CurseForge":"pubgmc-mod","Modrinth":""},{"Id":1640,"Name":"进化怪物 (mobultion)","CurseForge":"mobultion","Modrinth":""},{"Id":1641,"Name":"","CurseForge":"waddles","Modrinth":""},{"Id":1642,"Name":"PI文档 (Project Intelligence)","CurseForge":"project-intelligence","Modrinth":""},{"Id":1643,"Name":"","CurseForge":"thutcore","Modrinth":""},{"Id":1644,"Name":"资源包管理器 (Resource Pack Organizer)","CurseForge":"resource-pack-organizer","Modrinth":"resource-pack-organizer"},{"Id":1645,"Name":"莫桑矿石 (Morcant Ore)","CurseForge":"morcant-ore","Modrinth":""},{"Id":1646,"Name":"强制虚空世界 (Force Void World)","CurseForge":"force-void-world","Modrinth":""},{"Id":1647,"Name":"我很聪明 (I Am Very Smart)","CurseForge":"i-am-very-smart-forge","Modrinth":""},{"Id":1647,"Name":"我很聪明 (I Am Very Smart)","CurseForge":"i-am-very-smart","Modrinth":""},{"Id":1648,"Name":"背井离乡 (Far From Home)","CurseForge":"far-from-home","Modrinth":""},{"Id":1649,"Name":"","CurseForge":"cotton","Modrinth":""},{"Id":1650,"Name":"","CurseForge":"oxygen-teleportation","Modrinth":""},{"Id":1651,"Name":"氧气核心 (Oxygen Core)","CurseForge":"oxygen-core","Modrinth":""},{"Id":1652,"Name":"带领村民 (Lead Villagers)","CurseForge":"lead-villagers","Modrinth":""},{"Id":1653,"Name":"Delta 困难模式 (Delta Hard Mode)","CurseForge":"delta-hard-mode","Modrinth":""},{"Id":1654,"Name":"","CurseForge":"id-squeezer-tweak","Modrinth":""},{"Id":1655,"Name":"食物矿石 (Food Ores)","CurseForge":"food-ores","Modrinth":""},{"Id":1656,"Name":"席地而坐 (Sit)","CurseForge":"sit","Modrinth":"bl4cks-sit"},{"Id":1656,"Name":"席地而坐 (Sit)","CurseForge":"sit-fabric","Modrinth":""},{"Id":1660,"Name":"CplPibald的微调 (CplPibald's Tweaks)","CurseForge":"cplpibalds-tweaks","Modrinth":""},{"Id":1661,"Name":"矿石生态群系 (Ore Biome)","CurseForge":"ore-biome","Modrinth":""},{"Id":1662,"Name":"农场冒险 (Farm Adventure)","CurseForge":"farm-adventure","Modrinth":""},{"Id":1663,"Name":"暗影世界 (Shadow World)","CurseForge":"the-shadow-world","Modrinth":""},{"Id":1664,"Name":"加帕里公园 (JapariCraftMod)","CurseForge":"project-306141","Modrinth":""},{"Id":1665,"Name":"","CurseForge":"mchorses-mclib","Modrinth":""},{"Id":1666,"Name":"音乐工艺 (MusicCraft mod)","CurseForge":"musiccraft-mod","Modrinth":""},{"Id":1667,"Name":"真实的黑夜 (Hardcore Darkness)","CurseForge":"hardcore-darkness","Modrinth":""},{"Id":1668,"Name":"可乐工艺 (Cola Craft)","CurseForge":"cola-craft","Modrinth":""},{"Id":1670,"Name":"背刺 (Backstab)","CurseForge":"backstab","Modrinth":""},{"Id":1671,"Name":"动态潜行 (Dynamic Stealth)","CurseForge":"dynamic-stealth","Modrinth":""},{"Id":1674,"Name":"REI物品管理器 (Roughly Enough Items)","CurseForge":"roughly-enough-items","Modrinth":"rei"},{"Id":1675,"Name":"模组菜单 (Mod Menu)","CurseForge":"modmenu","Modrinth":"modmenu"},{"Id":1676,"Name":"","CurseForge":"architectury-quilt","Modrinth":""},{"Id":1677,"Name":"","CurseForge":"illuminations","Modrinth":""},{"Id":1677,"Name":"","CurseForge":"illuminations-forge","Modrinth":""},{"Id":1678,"Name":"","CurseForge":"mappy","Modrinth":""},{"Id":1679,"Name":"急速滚轮 (Mouse Wheelie)","CurseForge":"mouse-wheelie","Modrinth":"mouse-wheelie"},{"Id":1680,"Name":"MrCrayfish的载具 (MrCrayfish's Vehicle Mod)","CurseForge":"mrcrayfishs-vehicle-mod","Modrinth":""},{"Id":1681,"Name":"CC: Tweaked - 已过时","CurseForge":"cc-tweaked","Modrinth":""},{"Id":1681,"Name":"","CurseForge":"","Modrinth":"cc-tweaked"},{"Id":1682,"Name":"异形大战铁血战士 (AliensVsPredator)","CurseForge":"aliensvspredator","Modrinth":""},{"Id":1683,"Name":"","CurseForge":"dragon-murder","Modrinth":""},{"Id":1685,"Name":"鸟巢 (Birds Nests)","CurseForge":"birds-nests","Modrinth":""},{"Id":1686,"Name":"","CurseForge":"minecraft-animated","Modrinth":""},{"Id":1687,"Name":"精致机械 (Refined Machinery)","CurseForge":"refined-machinery","Modrinth":""},{"Id":1689,"Name":"魔法雕像 (MagicalSculpture)","CurseForge":"magicalsculpture","Modrinth":""},{"Id":1690,"Name":"另一个简单的HUD (Another Simple HUD)","CurseForge":"ash-another-simple-hud","Modrinth":""},{"Id":1691,"Name":"自定义选择框 (Custom Selection Box)","CurseForge":"custom-selection-box-port","Modrinth":""},{"Id":1691,"Name":"自定义选择框 (Custom Selection Box)","CurseForge":"customselectionbox","Modrinth":""},{"Id":1692,"Name":"","CurseForge":"librikka-api","Modrinth":""},{"Id":1693,"Name":"更多魔杖 (Not Enough Wands)","CurseForge":"not-enough-wands","Modrinth":"not-enough-wands"},{"Id":1694,"Name":"深度怪物知识-血魔法插件 (Deep Mob Learning - Blood Magic Addon)","CurseForge":"deep-mob-learning-blood-magic-addon","Modrinth":""},{"Id":1695,"Name":"更多加载信息 (Informed Load)","CurseForge":"informed-load","Modrinth":""},{"Id":1696,"Name":"滑稽纪元II:无尽星河 (Huaji Age II:Infinite Galaxy)","CurseForge":"huajiage-infinite-galaxy","Modrinth":""},{"Id":1698,"Name":"寻找巧克力重铸版 (Chocolate Quest Repoured)","CurseForge":"cqrepoured","Modrinth":"chocolate-quest-repoured"},{"Id":1699,"Name":"Fabric 群组支持 (FabricProxy)","CurseForge":"fabricproxy","Modrinth":"fabricproxy"},{"Id":1700,"Name":"锅具 (Ex Sartagine)","CurseForge":"ex-sartagine","Modrinth":""},{"Id":1701,"Name":"Xaero的小地图 (Xaero's Minimap) - 默认版(功能完整)","CurseForge":"xaeros-minimap","Modrinth":""},{"Id":1701,"Name":"Xaero的小地图 (Xaero's Minimap) - 公平竞争版(功能部分缺失,已停更)","CurseForge":"xaeros-minimap-fair-play-edition","Modrinth":""},{"Id":1701,"Name":"Xaero的小地图 (Xaero's Minimap) - 完整版","CurseForge":"","Modrinth":"xaeros-minimap"},{"Id":1701,"Name":"Xaero的小地图 (Xaero's Minimap) - 公平竞争版(已停更)","CurseForge":"","Modrinth":"xaeros-minimap-fair"},{"Id":1702,"Name":"永恒能力-药水核心 (EverlastingAbilities-PotionCore)","CurseForge":"everlastingabilities-potioncore","Modrinth":""},{"Id":1703,"Name":"","CurseForge":"optifabric","Modrinth":""},{"Id":1704,"Name":"翡翠天堂 (The Emerald Haven)","CurseForge":"the-emerald-haven","Modrinth":""},{"Id":1706,"Name":"简易研磨机 (Simple Grinder)","CurseForge":"simple-grinder","Modrinth":"simplegrinder"},{"Id":1707,"Name":"红石测量与开关 (Gauges and Switches)","CurseForge":"redstone-gauges-and-switches","Modrinth":""},{"Id":1708,"Name":"神化 (Apotheosis)","CurseForge":"apotheosis","Modrinth":"apotheosis"},{"Id":1709,"Name":"照明魔杖 🌟 (Lighting Wand 🌟)","CurseForge":"lighting-wand","Modrinth":"lighting-wand"},{"Id":1709,"Name":"照明魔杖 🌟 (Lighting Wand 🌟)","CurseForge":"lighting-wand-fabric","Modrinth":""},{"Id":1710,"Name":"地球 (Terrarium)","CurseForge":"terrarium","Modrinth":"terrarium"},{"Id":1711,"Name":"","CurseForge":"climatic-biomes","Modrinth":""},{"Id":1712,"Name":"狼人 (Howling Moon)","CurseForge":"howling-moon","Modrinth":""},{"Id":1713,"Name":"敌对世界-入侵 (Hostile Worlds - Invasions)","CurseForge":"hostile-worlds-invasions","Modrinth":""},{"Id":1714,"Name":"简单存储 (Simple Storage Network)","CurseForge":"simple-storage-network","Modrinth":""},{"Id":1715,"Name":"虚无世界1 (Eternal Isles)","CurseForge":"2973537","Modrinth":""},{"Id":1716,"Name":"","CurseForge":"scaling-health","Modrinth":"scaling-health"},{"Id":1717,"Name":"微处理器 (Minecoprocessors)","CurseForge":"minecoprocessors","Modrinth":""},{"Id":1719,"Name":"","CurseForge":"difficult-life","Modrinth":""},{"Id":1720,"Name":"通用机械矿石 (MekanismOres)","CurseForge":"mekanismores","Modrinth":""},{"Id":1721,"Name":"火种科技 (Pyrotech)","CurseForge":"pyrotech","Modrinth":""},{"Id":1722,"Name":"老鼠 (Rats)","CurseForge":"rats","Modrinth":"rats"},{"Id":1723,"Name":"服务器同步 (ServerSync)","CurseForge":"serversync","Modrinth":""},{"Id":1725,"Name":"等价交换辅助 (Auxilium Equivalence / Auxilium)","CurseForge":"auxilium-equivalence","Modrinth":""},{"Id":1726,"Name":"细菌病毒 (Bionisation)","CurseForge":"bionisation-4","Modrinth":""},{"Id":1726,"Name":"细菌病毒 (Bionisation)","CurseForge":"bionisation-3","Modrinth":""},{"Id":1726,"Name":"细菌病毒 (Bionisation)","CurseForge":"bionisation-2","Modrinth":""},{"Id":1726,"Name":"细菌病毒 (Bionisation)","CurseForge":"bionisation","Modrinth":""},{"Id":1726,"Name":"细菌病毒 (Bionisation)","CurseForge":"","Modrinth":"bionisation-4"},{"Id":1727,"Name":"迷你刷怪场 (Tiny Mob Farm)","CurseForge":"tiny-mob-farm","Modrinth":""},{"Id":1728,"Name":"","CurseForge":"soulus","Modrinth":""},{"Id":1729,"Name":"","CurseForge":"sanlib","Modrinth":""},{"Id":1732,"Name":"旅行者背包 (Traveler's Backpack)","CurseForge":"travelers-backpack","Modrinth":"travelersbackpack"},{"Id":1732,"Name":"旅行者背包 (Traveler's Backpack)","CurseForge":"travelers-backpack-fabric","Modrinth":""},{"Id":1733,"Name":"格雷科技经典版 (GregTech Classic)","CurseForge":"gregtech-classic","Modrinth":""},{"Id":1734,"Name":"","CurseForge":"aperture","Modrinth":""},{"Id":1735,"Name":"组合装甲 (IC2ComboArmors)","CurseForge":"combo-armors","Modrinth":""},{"Id":1737,"Name":"没有反胃 (NoNausea)","CurseForge":"nonausea","Modrinth":""},{"Id":1738,"Name":"苏维埃工坊 (Communism Mod)","CurseForge":"communism-mod","Modrinth":""},{"Id":1739,"Name":"","CurseForge":"mirror","Modrinth":""},{"Id":1740,"Name":"","CurseForge":"ping","Modrinth":""},{"Id":1741,"Name":"","CurseForge":"the-legends-mod","Modrinth":""},{"Id":1742,"Name":"","CurseForge":"bad-wither-no-cookie-reloaded","Modrinth":""},{"Id":1742,"Name":"","CurseForge":"bad-wither-no-cookie-reloaded-fabric","Modrinth":""},{"Id":1743,"Name":"","CurseForge":"giacomos-fishing-net","Modrinth":""},{"Id":1744,"Name":"医院 Mod (The Hospital Mod)","CurseForge":"the-hospital-mod","Modrinth":""},{"Id":1744,"Name":"医院 Mod (The Hospital Mod)","CurseForge":"hospital-mod-facilities-pack","Modrinth":""},{"Id":1744,"Name":"医院 Mod (The Hospital Mod)","CurseForge":"hospital-mod-theatres-pack","Modrinth":""},{"Id":1744,"Name":"医院 Mod (The Hospital Mod)","CurseForge":"hospital-mod-pharmacy-pack","Modrinth":""},{"Id":1745,"Name":"更多木炭 (More Charcoal)","CurseForge":"more-charcoal","Modrinth":""},{"Id":1746,"Name":"","CurseForge":"born-in-a-barn","Modrinth":"born-in-a-barn"},{"Id":1748,"Name":"更好的动物动作 (Better Animations Collection)","CurseForge":"better-animations-collection","Modrinth":"better-animations-collection"},{"Id":1750,"Name":"工具品质 (Quality Tools)","CurseForge":"quality-tools","Modrinth":""},{"Id":1751,"Name":"工具组合 (Tools Combine)","CurseForge":"toolscombine","Modrinth":""},{"Id":1752,"Name":"污染泵 (Pollutant Pump)","CurseForge":"pollutant-pump","Modrinth":""},{"Id":1753,"Name":"无限污染过滤器 (Infinite Pollution Filter)","CurseForge":"infinite-pollution-filter","Modrinth":""},{"Id":1754,"Name":"","CurseForge":"jei-hider","Modrinth":""},{"Id":1755,"Name":"飞行速破 (FastFlyBlockBreaking)","CurseForge":"fastflyblockbreaking","Modrinth":""},{"Id":1757,"Name":"植物科技2 (PlantTech 2)","CurseForge":"planttech-2","Modrinth":""},{"Id":1758,"Name":"消息框控制 (Toast Control)","CurseForge":"toast-control","Modrinth":"toast-control"},{"Id":1760,"Name":"可可工艺 (Cocoa Magic)","CurseForge":"cocoa-magic","Modrinth":""},{"Id":1761,"Name":"更好的传送门 (Better Portals)","CurseForge":"betterportals","Modrinth":""},{"Id":1762,"Name":"经典战斗 (Classic Combat)","CurseForge":"classic-combat","Modrinth":"classic-combat"},{"Id":1764,"Name":"较少的滞后 (Less Lag)","CurseForge":"less-lag","Modrinth":""},{"Id":1765,"Name":"没有草丛 (Grassta la Vista)","CurseForge":"goodbye-grass","Modrinth":""},{"Id":1766,"Name":"磷 (Phosphor)","CurseForge":"phosphor","Modrinth":"phosphor"},{"Id":1766,"Name":"磷 (Phosphor)","CurseForge":"phosphor-forge","Modrinth":""},{"Id":1767,"Name":"粘土桶 (Clay Bucket)","CurseForge":"clay-bucket","Modrinth":""},{"Id":1768,"Name":"更多铁砧 / 更多砧 (Extra Anvils)","CurseForge":"extra-anvils","Modrinth":""},{"Id":1769,"Name":"精致玻璃 (Glassential)","CurseForge":"glassential","Modrinth":""},{"Id":1769,"Name":"精致玻璃 (Glassential)","CurseForge":"glassential-fabric","Modrinth":""},{"Id":1770,"Name":"匠魂拓展 (Tinkers' Addons)","CurseForge":"tinkers-addons","Modrinth":"tinkers-addons"},{"Id":1771,"Name":"桶,圆桶,存储 & 更多 (Barrels, Drums, Storage & More)","CurseForge":"barrels-drums-storage-more","Modrinth":""},{"Id":1772,"Name":"翅膀 (Wings)","CurseForge":"wings","Modrinth":""},{"Id":1773,"Name":"颠倒世界 (Up And Down And All Around)","CurseForge":"up-and-down-and-all-around","Modrinth":""},{"Id":1774,"Name":"失落的灵魂 (Lost Souls)","CurseForge":"lost-souls","Modrinth":"lost-souls"},{"Id":1775,"Name":"智能能源 (Intelligent Energistics)","CurseForge":"intelligent-energistics","Modrinth":""},{"Id":1776,"Name":"末影指南针 (Ender Compass)","CurseForge":"ender-compass","Modrinth":""},{"Id":1777,"Name":"","CurseForge":"ic2-tweaker","Modrinth":""},{"Id":1778,"Name":"神秘宝具 (Thaumic Gadgets)","CurseForge":"thaumic-gadgets","Modrinth":""},{"Id":1779,"Name":"多人开采 (Multi Mine)","CurseForge":"multi-mine","Modrinth":""},{"Id":1780,"Name":"Liteloader 修复 (Extra Foam For LiteLoader)","CurseForge":"extra-foam-for-liteloader","Modrinth":"extra-foam-for-liteloader"},{"Id":1781,"Name":"余烬能量转换 (Embersified)","CurseForge":"embersified","Modrinth":""},{"Id":1783,"Name":"神秘网络 (Thaumic Grid)","CurseForge":"thaumic-grid","Modrinth":""},{"Id":1784,"Name":"工具后置 / 后背工具展示 (Back Tools)","CurseForge":"back-tools","Modrinth":""},{"Id":1785,"Name":"地图作者2 (Mapwriter 2)","CurseForge":"mapwriter-2","Modrinth":""},{"Id":1786,"Name":"达特工艺重置版 (Dartcraft Reloaded)","CurseForge":"dartcraft-reloaded","Modrinth":""},{"Id":1788,"Name":"","CurseForge":"ceu","Modrinth":""},{"Id":1789,"Name":"","CurseForge":"fantastic-lib","Modrinth":"fantastic-lib"},{"Id":1790,"Name":"龙骑士2 (Dragon Mounts 2)","CurseForge":"dm2","Modrinth":""},{"Id":1791,"Name":"","CurseForge":"tiquality","Modrinth":""},{"Id":1792,"Name":"电容信息显示 (Loot Capacitor Tooltips)","CurseForge":"loot-capacitor-tooltips","Modrinth":""},{"Id":1793,"Name":"经典状态条 (Classic Bars)","CurseForge":"classic-bars","Modrinth":""},{"Id":1795,"Name":"地表矿石 (Overground Ores)","CurseForge":"overground-ores","Modrinth":""},{"Id":1796,"Name":"车万女仆 (Touhou Little Maid)","CurseForge":"touhou-little-maid","Modrinth":"touhou-little-maid"},{"Id":1798,"Name":"","CurseForge":"eureka","Modrinth":""},{"Id":1799,"Name":"懒人AE2 (Lazy AE2)","CurseForge":"lazy-ae2","Modrinth":""},{"Id":1800,"Name":"","CurseForge":"libnine","Modrinth":""},{"Id":1801,"Name":"","CurseForge":"equaldragons","Modrinth":""},{"Id":1802,"Name":"","CurseForge":"berries","Modrinth":""},{"Id":1803,"Name":"无限手套 (Infinity Gauntlet)","CurseForge":"infinity-gauntlet-mod","Modrinth":""},{"Id":1804,"Name":"强大的末影鸡 (Mighty Ender Chicken)","CurseForge":"mighty-ender-chicken","Modrinth":""},{"Id":1805,"Name":"广告牌 (MalisisAdvert)","CurseForge":"malisisadvert","Modrinth":""},{"Id":1806,"Name":"移动 (Idō)","CurseForge":"ido","Modrinth":""},{"Id":1807,"Name":"🦇蝙蝠快乐MOD (🦇 Bat Happy Mod)","CurseForge":"bat-happy-mod","Modrinth":""},{"Id":1808,"Name":"维斯工艺-飞艇! (ViesCraft - Airships!)","CurseForge":"viescraft-airships","Modrinth":""},{"Id":1809,"Name":"究极次元 (The Ultimate Dimension)","CurseForge":"the-ultimate-dimension","Modrinth":""},{"Id":1810,"Name":"更好的研钵 (Advanced Mortars)","CurseForge":"advanced-mortars","Modrinth":""},{"Id":1812,"Name":"","CurseForge":"crafttweaker-utils","Modrinth":""},{"Id":1815,"Name":"FPS减速器 (FPS Reducer)","CurseForge":"fps-reducer","Modrinth":"fps-reducer"},{"Id":1816,"Name":"自由视角 (FreeLook)","CurseForge":"freelook","Modrinth":"freelook-og"},{"Id":1817,"Name":"航天高科X (SpaceCraftX)","CurseForge":"spacecraftx","Modrinth":"spacecraftx-reloaded"},{"Id":1817,"Name":"航天高科X (SpaceCraftX)","CurseForge":"spacecraftx-reloaded","Modrinth":""},{"Id":1819,"Name":"竹子制品 (Bamboo Everything)","CurseForge":"bamboo-everything","Modrinth":"bamboo-everything"},{"Id":1819,"Name":"竹子制品 (Bamboo Everything)","CurseForge":"bamboo-everything-fabric","Modrinth":""},{"Id":1820,"Name":"没有雾 (NoFog)","CurseForge":"nofog","Modrinth":"no_fog"},{"Id":1821,"Name":"源质火盆 (Essentia Brazier)","CurseForge":"essentia-brazier","Modrinth":""},{"Id":1822,"Name":"无药水效果 (AntiPotionMod)","CurseForge":"antipotionmod-1-12-2","Modrinth":""},{"Id":1823,"Name":"夸克-奇思妙想 (Quark Oddities)","CurseForge":"quark-oddities","Modrinth":"quark-oddities"},{"Id":1824,"Name":"快餐 (Fast Food)","CurseForge":"fast-food","Modrinth":""},{"Id":1825,"Name":"更多的萝卜 (More Carrots)","CurseForge":"more-carrots","Modrinth":""},{"Id":1826,"Name":"3D立体机动装置 (3D Maneuver Gear)","CurseForge":"d-maneuver-gear","Modrinth":"3d_maneuver_gear"},{"Id":1827,"Name":"武器工匠 (Weapon Craftery)","CurseForge":"weapon-craftery","Modrinth":""},{"Id":1828,"Name":"Bobo的超市 (Bobo's supermarket)","CurseForge":"bobos-supermarket","Modrinth":""},{"Id":1829,"Name":"更多的苹果 (More Apples)","CurseForge":"even-more-apples","Modrinth":""},{"Id":1830,"Name":"幸运豆 (Lucky Beans)","CurseForge":"lucky-beans","Modrinth":""},{"Id":1831,"Name":"","CurseForge":"cooked","Modrinth":""},{"Id":1832,"Name":"","CurseForge":"afaoe","Modrinth":""},{"Id":1833,"Name":"","CurseForge":"birds-foods","Modrinth":""},{"Id":1834,"Name":"","CurseForge":"morexfood","Modrinth":"morexfood"},{"Id":1835,"Name":"美味 (Yummy)","CurseForge":"yummy","Modrinth":""},{"Id":1836,"Name":"生活调味料:胡萝卜版 (Spice of Life: Carrot Edition)","CurseForge":"spice-of-life-carrot-edition","Modrinth":""},{"Id":1837,"Name":"","CurseForge":"refined-exchange","Modrinth":""},{"Id":1838,"Name":"精致存储:请求者 (Refined Storage: Requestify)","CurseForge":"rs-requestify","Modrinth":""},{"Id":1839,"Name":"披萨工艺 (PizzaCraft)","CurseForge":"pizzacraft","Modrinth":"pizzacraft"},{"Id":1840,"Name":"超级工厂管理器 (Super Factory Manager)","CurseForge":"super-factory-manager","Modrinth":"super-factory-manager"},{"Id":1841,"Name":"樱 (Sakura)","CurseForge":"sakura","Modrinth":""},{"Id":1842,"Name":"更多液体容器 (Sips)","CurseForge":"sips","Modrinth":""},{"Id":1843,"Name":"格雷与匠魂 (Greg's Construct)","CurseForge":"gregs-construct","Modrinth":""},{"Id":1844,"Name":"超级工具 (Super Tools / Ultra Awesome Tools Mod)","CurseForge":"ultra-awesome-tools-mod","Modrinth":""},{"Id":1846,"Name":"锁 (Locks)","CurseForge":"locks","Modrinth":""},{"Id":1847,"Name":"特殊怪物 (Special Mobs)","CurseForge":"special-mobs","Modrinth":""},{"Id":1848,"Name":"","CurseForge":"adorn-for-forge","Modrinth":"adorn"},{"Id":1848,"Name":"","CurseForge":"adorn","Modrinth":""},{"Id":1849,"Name":"","CurseForge":"missingbits","Modrinth":""},{"Id":1850,"Name":"","CurseForge":"","Modrinth":"quickcarpet"},{"Id":1852,"Name":"","CurseForge":"locky","Modrinth":""},{"Id":1853,"Name":"","CurseForge":"baubleshud","Modrinth":""},{"Id":1858,"Name":"更多傀儡 (Extra Golems)","CurseForge":"extra-golems","Modrinth":""},{"Id":1859,"Name":"可合成的创造模式强化头颅 (CraftableCreativeModifier)","CurseForge":"craftablecreativemodifier","Modrinth":""},{"Id":1860,"Name":"遗迹 (Ruins)","CurseForge":"ruins-structure-spawning-system","Modrinth":""},{"Id":1861,"Name":"匠魂盔甲扩展 (Armory Expansion)","CurseForge":"armory-expansion","Modrinth":""},{"Id":1862,"Name":"方块生成替换器 (WorldGen Block Replacer)","CurseForge":"wg-block-replacer","Modrinth":""},{"Id":1863,"Name":"","CurseForge":"multi-mob-core","Modrinth":""},{"Id":1865,"Name":"结构化 (Structurize)","CurseForge":"structurize","Modrinth":""},{"Id":1867,"Name":"技能进阶 (Improvable Skills 3)","CurseForge":"improvable-skills","Modrinth":"improvable-skills"},{"Id":1869,"Name":"自然生成建筑结构显示 (Bounding Box Outline Reloaded)","CurseForge":"bounding-box-outline-reloaded","Modrinth":"bbor"},{"Id":1870,"Name":"","CurseForge":"sauceconstruct","Modrinth":""},{"Id":1871,"Name":"更美观的血条 (Health Overlay / Colorful Hearts)","CurseForge":"colorful-hearts","Modrinth":"colorful-hearts"},{"Id":1871,"Name":"更美观的血条 (Health Overlay / Colorful Hearts)","CurseForge":"health-overlay-fabric","Modrinth":""},{"Id":1871,"Name":"更美观的血条 (Health Overlay / Colorful Hearts)","CurseForge":"health-overlay","Modrinth":""},{"Id":1872,"Name":"自动进食头盔 (Auto Feeder Helmet)","CurseForge":"auto-feeder-helmet","Modrinth":""},{"Id":1873,"Name":"","CurseForge":"cc-tweaked-fabric","Modrinth":""},{"Id":1874,"Name":"简单农业 (Simple Farming)","CurseForge":"simple-farming","Modrinth":""},{"Id":1875,"Name":"","CurseForge":"bigger-packets-please","Modrinth":""},{"Id":1876,"Name":"更多维度世界 (Lockyz Extra Dimensions Mod)","CurseForge":"lockyz-extra-dimensions-mod","Modrinth":"ledm"},{"Id":1877,"Name":"","CurseForge":"psi-combat-magic","Modrinth":""},{"Id":1878,"Name":"动态的树:潘马斯附属 (Dynamic Trees - Pam's Harvestcraft Compat)","CurseForge":"dtphc","Modrinth":""},{"Id":1879,"Name":"大型储罐 (Large Fluid Tank)","CurseForge":"largefluidtank","Modrinth":"large-fluid-tank"},{"Id":1879,"Name":"大型储罐 (Large Fluid Tank)","CurseForge":"largefluidtank-fabric","Modrinth":""},{"Id":1880,"Name":"风滚草 (Tumbleweed)","CurseForge":"tumbleweed","Modrinth":"tumbleweed"},{"Id":1881,"Name":"","CurseForge":"cubicdynamictreescompat","Modrinth":""},{"Id":1882,"Name":"热力物流学 (Thermal Logistics)","CurseForge":"thermallogistics","Modrinth":""},{"Id":1883,"Name":"","CurseForge":"bithop","Modrinth":""},{"Id":1884,"Name":"","CurseForge":"swordskillsapi","Modrinth":""},{"Id":1885,"Name":"动态剑技 (Dynamic Sword Skills)","CurseForge":"dynamic-sword-skills","Modrinth":""},{"Id":1886,"Name":"魔法乐器 (Magical Instruments)","CurseForge":"magical-instruments","Modrinth":""},{"Id":1887,"Name":"末影龙再生成 (EnderSpawn)","CurseForge":"enderspawn","Modrinth":""},{"Id":1888,"Name":"","CurseForge":"animus","Modrinth":"animus"},{"Id":1889,"Name":"SCP重型收容区扩展 (SCP: Lockdown Heavy Containment Zone Expansion)","CurseForge":"scootys-scp-lockdown-extras","Modrinth":""},{"Id":1890,"Name":"时尚玻璃门 (Modern Glass Doors)","CurseForge":"modern-glass-doors","Modrinth":""},{"Id":1891,"Name":"柠檬库 (LemonLib)","CurseForge":"lemonlib","Modrinth":""},{"Id":1892,"Name":"雕像:重置 (Statues: Rechiseled)","CurseForge":"statues-rechiseled","Modrinth":""},{"Id":1893,"Name":"垃圾槽 (TrashSlot)","CurseForge":"trashslot","Modrinth":"trashslot"},{"Id":1893,"Name":"垃圾槽 (TrashSlot)","CurseForge":"trashslot-fabric-edition","Modrinth":""},{"Id":1894,"Name":"更多压力板 (Player Plates)","CurseForge":"player-plates-forge","Modrinth":"player-plates-(obsidian-plates)"},{"Id":1894,"Name":"更多压力板 (Player Plates)","CurseForge":"player-plates-fabric","Modrinth":""},{"Id":1895,"Name":"我就睡个觉 (Just Sleep)","CurseForge":"just-sleep","Modrinth":""},{"Id":1896,"Name":"","CurseForge":"auto-network-lib","Modrinth":""},{"Id":1897,"Name":"自动连点器 (Click Machine)","CurseForge":"click-machine","Modrinth":""},{"Id":1898,"Name":"更好的神秘农业 (Mystical Adaptations)","CurseForge":"mystical-adaptations","Modrinth":""},{"Id":1899,"Name":"强化工具 (ReinforcedTools)","CurseForge":"reinforcedtools","Modrinth":""},{"Id":1900,"Name":"","CurseForge":"killing-fall","Modrinth":""},{"Id":1901,"Name":"更多狗狗 (More Dogs)","CurseForge":"more-dogs","Modrinth":""},{"Id":1902,"Name":"更好的雪 (Snow Variants)","CurseForge":"snow-variants","Modrinth":""},{"Id":1903,"Name":"箱子搜索栏 (Searchable Chests)","CurseForge":"searchable-chests","Modrinth":""},{"Id":1904,"Name":"","CurseForge":"bad-mobs","Modrinth":"bad-mobs"},{"Id":1905,"Name":"涂鸦 (MC Paint)","CurseForge":"mc-paint","Modrinth":"mcpaint"},{"Id":1906,"Name":"匍匐前进 (GoProne)","CurseForge":"goprone","Modrinth":""},{"Id":1906,"Name":"匍匐前进 (GoProne)","CurseForge":"goprone-fabric","Modrinth":""},{"Id":1907,"Name":"倒置火把 (Ceiling Torch)","CurseForge":"ceiling-torch","Modrinth":"ceiling-torch"},{"Id":1908,"Name":"多段跳 (Air Hop)","CurseForge":"air-hop","Modrinth":"air-hop"},{"Id":1908,"Name":"多段跳 (Air Hop)","CurseForge":"air-hop-fabric","Modrinth":""},{"Id":1909,"Name":"更好的战斗 (Better Combat Mod)","CurseForge":"better-combat-mod","Modrinth":""},{"Id":1910,"Name":"FTB 交易 (FTB Money)","CurseForge":"ftb-money","Modrinth":""},{"Id":1911,"Name":"传送门限制 (Restricted Portals)","CurseForge":"restricted-portals","Modrinth":"restricted-portals"},{"Id":1912,"Name":"","CurseForge":"vampirelib","Modrinth":"vampirelib"},{"Id":1913,"Name":"游戏内配置器 (InGameConfigManager)","CurseForge":"ingameconfigmanager","Modrinth":""},{"Id":1914,"Name":"玩家救援 (PlayerRevive)","CurseForge":"playerrevive","Modrinth":"playerrevive"},{"Id":1915,"Name":"边境之地 (FarLands)","CurseForge":"farlands","Modrinth":""},{"Id":1916,"Name":"世界合成 (InWorldCrafting)","CurseForge":"inworldcrafting","Modrinth":""},{"Id":1917,"Name":"食物编辑器 (Food Editor)","CurseForge":"food-editor","Modrinth":""},{"Id":1918,"Name":"自定义初始装备 (Custom Starter Gear)","CurseForge":"custom-starter-gear","Modrinth":""},{"Id":1919,"Name":"CT 小型煤炭 (CT TinyCoal)","CurseForge":"ct-tinycoal","Modrinth":""},{"Id":1920,"Name":"","CurseForge":"tweaker-gui","Modrinth":""},{"Id":1921,"Name":"CraftTweaker 编辑器 (CraftTweaker Editor)","CurseForge":"crafttweaker-editor","Modrinth":""},{"Id":1922,"Name":"不那么仁慈的虚空 (Unforgiving Void)","CurseForge":"unforgiving-void","Modrinth":"unforgiving-void"},{"Id":1923,"Name":"","CurseForge":"moretweaker","Modrinth":""},{"Id":1924,"Name":"小石子 (RiteClicker Mod)","CurseForge":"riteclicker-mod","Modrinth":""},{"Id":1926,"Name":"仁慈的虚空 (Forgiving Void)","CurseForge":"forgiving-void","Modrinth":"forgiving-void"},{"Id":1926,"Name":"仁慈的虚空 (Forgiving Void)","CurseForge":"forgiving-void-fabric","Modrinth":""},{"Id":1927,"Name":"面包工艺 (Bread Craft)","CurseForge":"bread-craft","Modrinth":""},{"Id":1928,"Name":"炼金化学 (Alchemistry)","CurseForge":"alchemistry","Modrinth":""},{"Id":1928,"Name":"炼金化学 (Alchemistry)","CurseForge":"alchemistry-fabric","Modrinth":""},{"Id":1929,"Name":"伤害控制 (Damage Control)","CurseForge":"damage-control","Modrinth":""},{"Id":1930,"Name":"成就点 (Prestige)","CurseForge":"prestige","Modrinth":""},{"Id":1933,"Name":"能量桥接器 (Energy Converters)","CurseForge":"energy-converters","Modrinth":""},{"Id":1934,"Name":"路标 (Signpost)","CurseForge":"signpost","Modrinth":"signpost"},{"Id":1935,"Name":"对角线玻璃板 (Diagonal Panes)","CurseForge":"diagonal-panes","Modrinth":""},{"Id":1936,"Name":"","CurseForge":"forgelin","Modrinth":""},{"Id":1937,"Name":"","CurseForge":"alchemylib","Modrinth":""},{"Id":1938,"Name":"经验矿石 (Exp Ore Mod)","CurseForge":"exp-ore-block-mod","Modrinth":""},{"Id":1939,"Name":"更多荧石 (More Glowstone)","CurseForge":"more-glowstone","Modrinth":""},{"Id":1940,"Name":"","CurseForge":"yukarilib","Modrinth":""},{"Id":1941,"Name":"","CurseForge":"gregic-additions","Modrinth":""},{"Id":1942,"Name":"无限岩浆 (InstantLava)","CurseForge":"instantlava","Modrinth":""},{"Id":1945,"Name":"附魔描述 (Enchantment Descriptions)","CurseForge":"enchantment-descriptions","Modrinth":"enchantment-descriptions"},{"Id":1946,"Name":"残影 (Streak)","CurseForge":"streak","Modrinth":""},{"Id":1947,"Name":"动态的树:神秘时代附属 (Dynamic Trees - Thaumcraft Compat)","CurseForge":"dttc","Modrinth":""},{"Id":1948,"Name":"动态的树:超多生物群系附属 (Dynamic Trees - Biomes O' Plenty Compat)","CurseForge":"dtbop","Modrinth":"dynamic-trees-biomes-o-plenty"},{"Id":1949,"Name":"动态的树:气候生态群系附属 (Dynamic Trees Compatibility for Climatic Biomes)","CurseForge":"dynamic-trees-compatibility-for-climatic-biomes","Modrinth":""},{"Id":1950,"Name":"ME功能适配器 (ME Capability Adapter)","CurseForge":"capability-adapter","Modrinth":""},{"Id":1951,"Name":"军团要塞2 (TF2 stuff mod)","CurseForge":"tf2-stuff-mod","Modrinth":""},{"Id":1952,"Name":"怪物控制魔杖 (Mob Control Wands)","CurseForge":"mob-control-wands","Modrinth":""},{"Id":1954,"Name":"","CurseForge":"athenaeum","Modrinth":""},{"Id":1954,"Name":"","CurseForge":"athenaeum-1-16","Modrinth":""},{"Id":1955,"Name":"矿石挖掘 (Ore Excavation)","CurseForge":"ore-excavation","Modrinth":"ore-excavation"},{"Id":1956,"Name":"石箱子 (Stone Chests)","CurseForge":"stone-chests","Modrinth":""},{"Id":1957,"Name":"KJ库 (KJLib)","CurseForge":"kjlib","Modrinth":""},{"Id":1958,"Name":"更多箱子矿车 (Iron Chest Minecarts)","CurseForge":"iron-chest-minecarts","Modrinth":""},{"Id":1959,"Name":"下界箱子 (Nether Chest)","CurseForge":"nether-chest","Modrinth":""},{"Id":1960,"Name":"击杀信息通知 (Mob Kill Messages)","CurseForge":"mob-kill-messages","Modrinth":""},{"Id":1962,"Name":"能喂食的发射器 (BetterDispenser)","CurseForge":"betterdispenser","Modrinth":""},{"Id":1963,"Name":"潜影盒显示器 (ShulkerBoxDisplay)","CurseForge":"shulkerboxdisplay","Modrinth":""},{"Id":1964,"Name":"我的命令 (MyCommands)","CurseForge":"mycommands","Modrinth":""},{"Id":1968,"Name":"","CurseForge":"hearth-well","Modrinth":""},{"Id":1970,"Name":"茶和饼干 (Tea And Biscuits)","CurseForge":"tea-and-biscuits","Modrinth":""},{"Id":1971,"Name":"手柄控制 (Controllable)","CurseForge":"controllable","Modrinth":""},{"Id":1971,"Name":"手柄控制 (Controllable)","CurseForge":"controllable-fabric","Modrinth":""},{"Id":1972,"Name":"遗传动物 (Genetic Animals)","CurseForge":"genetic-animals","Modrinth":"genetic-animals"},{"Id":1973,"Name":"石头箱子 (Stone Chest)","CurseForge":"stone-chest","Modrinth":""},{"Id":1974,"Name":"更多潜影盒 (Iron Shulker Boxes)","CurseForge":"iron-shulker-boxes","Modrinth":"iron-shulker-boxes"},{"Id":1975,"Name":"怪物肢解 (Mob Dismemberment)","CurseForge":"mob-dismemberment","Modrinth":""},{"Id":1976,"Name":"野生动物园:重制版 (Zoo & Wild Animals Rebuilt)","CurseForge":"zoo-wild-animals-rebuild","Modrinth":""},{"Id":1977,"Name":"","CurseForge":"kottle","Modrinth":""},{"Id":1978,"Name":"自定义无人机 (CustomDrones)","CurseForge":"customdrones","Modrinth":""},{"Id":1979,"Name":"战争召唤2 (Call To Battle 2)","CurseForge":"call-to-battle-2-authentic-world-war-2-experience","Modrinth":""},{"Id":1979,"Name":"战争召唤2 (Call To Battle 2) - 远古","CurseForge":"call-to-battle-the-wwii-mod","Modrinth":""},{"Id":1980,"Name":"","CurseForge":"some-like-it-dry","Modrinth":""},{"Id":1981,"Name":"YUNG 的洞穴优化 (YUNG's Better Caves)","CurseForge":"yungs-better-caves","Modrinth":"yungs-better-caves"},{"Id":1981,"Name":"YUNG 的洞穴优化 (YUNG's Better Caves)","CurseForge":"yungs-better-caves-fabric","Modrinth":""},{"Id":1982,"Name":"神农科技 (Resynth)","CurseForge":"resynth","Modrinth":""},{"Id":1983,"Name":"开山棒 (Flat World)","CurseForge":"flatworld","Modrinth":""},{"Id":1984,"Name":"皮姆科技 (PymTech)","CurseForge":"pymtech","Modrinth":""},{"Id":1985,"Name":"Corail 的墓碑 (Corail's Tombstone)","CurseForge":"corail-tombstone","Modrinth":""},{"Id":1988,"Name":"奥术档案馆 (Arcane Archives)","CurseForge":"arcane-archives","Modrinth":""},{"Id":1989,"Name":"神兵 (DivineWeapon)","CurseForge":"divineweapon","Modrinth":""},{"Id":1990,"Name":"朝花夕拾 (Camera Obscura)","CurseForge":"camera-obscura","Modrinth":""},{"Id":1991,"Name":"动物扩充 (Animales)","CurseForge":"animales","Modrinth":""},{"Id":1992,"Name":"盔甲内衬 (Armor Underwear Mod)","CurseForge":"armor-underwear-mod","Modrinth":""},{"Id":1993,"Name":"进度小助手 (Assisted Progression)","CurseForge":"assisted-progression","Modrinth":""},{"Id":1994,"Name":"更多桶 (More Buckets)","CurseForge":"more-buckets","Modrinth":"more-buckets"},{"Id":1995,"Name":"延迟监视 (LagGoggles)","CurseForge":"laggoggles","Modrinth":""},{"Id":1996,"Name":"古怪装置 (The Weirding Gadget)","CurseForge":"the-weirding-gadget","Modrinth":""},{"Id":1997,"Name":"能源协同 (EnergySynergy)","CurseForge":"energysynergy","Modrinth":""},{"Id":1998,"Name":"挖矿与砍杀 (Mine and Slash)","CurseForge":"mine-and-slash-reloaded","Modrinth":"mine-and-slash"},{"Id":2000,"Name":"怪物云集 (Monster Swarm)","CurseForge":"monster-swarm","Modrinth":""},{"Id":2001,"Name":"","CurseForge":"SimplePipes","Modrinth":"simple-pipes"},{"Id":2003,"Name":"","CurseForge":"amecs","Modrinth":"amecs"},{"Id":2004,"Name":"","CurseForge":"world-primer","Modrinth":""},{"Id":2006,"Name":"","CurseForge":"bookworm","Modrinth":""},{"Id":2007,"Name":"错误报告器 (OpenEye)","CurseForge":"openeye","Modrinth":""},{"Id":2008,"Name":"嘘,别吵醒狗狗 (Let Sleeping Dogs Lie)","CurseForge":"let-sleeping-dogs-lie","Modrinth":"let-sleeping-dogs-lie"},{"Id":2008,"Name":"嘘,别吵醒狗狗 (Let Sleeping Dogs Lie)","CurseForge":"let-sleeping-dogs-lie-for-fabric","Modrinth":""},{"Id":2010,"Name":"超级矿石 (Super Ores)","CurseForge":"super-ores","Modrinth":""},{"Id":2011,"Name":"沙砾终结者 (GravelMiner)","CurseForge":"gravelminer","Modrinth":"gravelminer"},{"Id":2011,"Name":"沙砾终结者 (GravelMiner)","CurseForge":"gravelminer-fabric","Modrinth":""},{"Id":2012,"Name":"客户端微调 (Client Tweaks)","CurseForge":"client-tweaks","Modrinth":"client-tweaks"},{"Id":2012,"Name":"客户端微调 (Client Tweaks)","CurseForge":"client-tweaks-fabric","Modrinth":""},{"Id":2013,"Name":"一次性工作台 (Single-Use Crafting Table Mod)","CurseForge":"single-use-crafting-table-mod","Modrinth":""},{"Id":2014,"Name":"回家 (Get Back to Home)","CurseForge":"get-back-to-home","Modrinth":""},{"Id":2015,"Name":"等价扩展 (Expanded Equivalence)","CurseForge":"expanded-equivalence","Modrinth":"expanded-equivalence"},{"Id":2016,"Name":"","CurseForge":"schematica","Modrinth":""},{"Id":2017,"Name":"SCPCraft - 下降 (SCPCraft - Decline)","CurseForge":"scp-craft-decline","Modrinth":""},{"Id":2018,"Name":"","CurseForge":"tetra","Modrinth":"tetra"},{"Id":2019,"Name":"","CurseForge":"minestrappolation-5","Modrinth":""},{"Id":2020,"Name":"深海生态 (Underwater Biome)","CurseForge":"underwater-biome","Modrinth":""},{"Id":2021,"Name":"机械动力 (Create)","CurseForge":"create","Modrinth":"create"},{"Id":2021,"Name":"机械动力 (Create)","CurseForge":"create-fabric","Modrinth":"create-fabric"},{"Id":2022,"Name":"超级 TNT (Super TNT Mod)","CurseForge":"super-tnt-port","Modrinth":""},{"Id":2024,"Name":"脉冲羊 (EnergeticSheep)","CurseForge":"energeticsheep","Modrinth":"energetic-sheep"},{"Id":2025,"Name":"万象 (Ensorcellation)","CurseForge":"ensorcellation","Modrinth":"ensorcellation"},{"Id":2026,"Name":"物品分拣 (Inventory Sorter)","CurseForge":"inventory-sorter","Modrinth":""},{"Id":2027,"Name":"闪电侠 (Speedster Heroes)","CurseForge":"speedster-heroes","Modrinth":""},{"Id":2029,"Name":"","CurseForge":"curios","Modrinth":"curios"},{"Id":2029,"Name":"","CurseForge":"curios-fabric","Modrinth":""},{"Id":2030,"Name":"村庄出生点 (Village Spawn Point)","CurseForge":"village-spawn-point","Modrinth":"village-spawn-point"},{"Id":2030,"Name":"村庄出生点 (Village Spawn Point)","CurseForge":"village-spawn-point-fabric","Modrinth":""},{"Id":2031,"Name":"刷怪笼合成 (SpawnerCraft)","CurseForge":"spawnercraft","Modrinth":""},{"Id":2032,"Name":"开放电台 (OpenFM)","CurseForge":"openfm","Modrinth":""},{"Id":2033,"Name":"","CurseForge":"the-dalek-mod","Modrinth":"dalek-mod"},{"Id":2033,"Name":"","CurseForge":"daleks","Modrinth":""},{"Id":2034,"Name":"模块化多样性 (Modular Diversity)","CurseForge":"modular-diversity","Modrinth":""},{"Id":2035,"Name":"植物魔法盆栽 (Botanic Bonsai)","CurseForge":"botanic-bonsai","Modrinth":""},{"Id":2036,"Name":"模块化魔法 (Modular Magic)","CurseForge":"modular-magic","Modrinth":""},{"Id":2038,"Name":"魔法王国 (Magic Kingdoms Mod/Schools of Magic Mod)","CurseForge":"schools-of-magic-mod","Modrinth":""},{"Id":2038,"Name":"魔法王国 (Magic Kingdoms Mod/Schools of Magic Mod)","CurseForge":"magic-kingdoms-mod","Modrinth":""},{"Id":2039,"Name":"卓伦星系 (Zollern Galaxy)","CurseForge":"zollern-galaxy","Modrinth":""},{"Id":2040,"Name":"Macaw的桥梁 (Macaw's Bridges)","CurseForge":"macaws-bridges","Modrinth":"macaws-bridges"},{"Id":2042,"Name":"防止踩踏 (Trample Stopper)","CurseForge":"trample-stopper","Modrinth":""},{"Id":2042,"Name":"防止踩踏 (Trample Stopper)","CurseForge":"trample-stopper-fabric","Modrinth":""},{"Id":2043,"Name":"Macaw的屋顶 (Macaw's Roofs)","CurseForge":"macaws-roofs","Modrinth":"macaws-roofs"},{"Id":2044,"Name":"格雷之影 (Shadows of Greg)","CurseForge":"shadows-of-greg","Modrinth":""},{"Id":2045,"Name":"","CurseForge":"loottabletweaker","Modrinth":"loottabletweaker"},{"Id":2046,"Name":"","CurseForge":"rockycore","Modrinth":""},{"Id":2047,"Name":"","CurseForge":"tree-tweaker","Modrinth":""},{"Id":2048,"Name":"沃利的洞穴 (Worley's Caves)","CurseForge":"worleys-caves","Modrinth":""},{"Id":2049,"Name":"失落废墟 (Additional Structures/Rex's Additional Structures)","CurseForge":"additional-structures","Modrinth":"additional-structures"},{"Id":2049,"Name":"失落废墟 (Additional Structures/Rex's Additional Structures)","CurseForge":"additional-structures-fabric","Modrinth":""},{"Id":2054,"Name":"增强视觉效果 / 拓展视觉效果 (EnhancedVisuals)","CurseForge":"enhancedvisuals","Modrinth":"enhancedvisuals"},{"Id":2055,"Name":"药剂环/药水指环 (Potion Rings)","CurseForge":"potion-fingers-redux","Modrinth":""},{"Id":2056,"Name":"气球羊 (Balloon Sheep)","CurseForge":"balloon-sheep","Modrinth":""},{"Id":2057,"Name":"农场贸易 (Farming for Blockheads)","CurseForge":"farming-for-blockheads","Modrinth":"farming-for-blockheads"},{"Id":2057,"Name":"农场贸易 (Farming for Blockheads)","CurseForge":"farming-for-blockheads-fabric","Modrinth":""},{"Id":2058,"Name":"矿物开凿 (Ore Excavation Integration)","CurseForge":"oreexcavation-integration","Modrinth":""},{"Id":2059,"Name":"工程师工作站 (Engineers Workshop)","CurseForge":"engineers-workshop","Modrinth":""},{"Id":2060,"Name":"勇者传说 (The Legend of The Brave)","CurseForge":"the_legend_of_the_brave","Modrinth":""},{"Id":2061,"Name":"","CurseForge":"twerk-sim-2k16","Modrinth":""},{"Id":2062,"Name":"屁能发电机 (Fart Energy Generator)","CurseForge":"fart-generator","Modrinth":""},{"Id":2063,"Name":"无中生有:Fabrico (Ex Nihilo Fabrico)","CurseForge":"ex-nihilo-fabrico","Modrinth":""},{"Id":2064,"Name":"物品显示/物品清单 (HoloInventory)","CurseForge":"holoinventory","Modrinth":""},{"Id":2065,"Name":"反应堆材料 (Reactor Stuff)","CurseForge":"reactor-stuff","Modrinth":""},{"Id":2066,"Name":"更好的沼泽 (Traitor's Better Swamplands Mod)","CurseForge":"traitors-better-swampland-mod","Modrinth":""},{"Id":2067,"Name":"苏维埃风格装饰 (Soviet Era)","CurseForge":"soviet-abandoned-lab-mod","Modrinth":"soviet-era"},{"Id":2069,"Name":"","CurseForge":"charm","Modrinth":"charm"},{"Id":2069,"Name":"","CurseForge":"charm-reforged","Modrinth":""},{"Id":2070,"Name":"村庄名字 (Village Names)","CurseForge":"village-names","Modrinth":"village-names"},{"Id":2071,"Name":"","CurseForge":"advanced-rocketry-tweaker","Modrinth":""},{"Id":2072,"Name":"交变磁通 (Alternating Flux)","CurseForge":"alternating-flux","Modrinth":""},{"Id":2073,"Name":"等价交换扩展 (ProjectExtended)","CurseForge":"projectextended","Modrinth":""},{"Id":2074,"Name":"群峦合金 (TFC:Metallum)","CurseForge":"tfc-metallum","Modrinth":""},{"Id":2075,"Name":"","CurseForge":"reactor-turbines-mod-for-ic2","Modrinth":""},{"Id":2076,"Name":"突变生物重置版 (Mutant Beasts)","CurseForge":"mutant-beasts","Modrinth":""},{"Id":2077,"Name":"JEI扩展 (JEI Integration)","CurseForge":"jei-integration","Modrinth":"jei-integration"},{"Id":2078,"Name":"滑稽果 (FunnyFruit)","CurseForge":"funny-fruit","Modrinth":""},{"Id":2079,"Name":"生命工艺 (Life Tech)","CurseForge":"life-tech","Modrinth":""},{"Id":2080,"Name":"指数能源 (Exponential Power)","CurseForge":"exponential-power","Modrinth":""},{"Id":2081,"Name":"女式盔甲 (V-Girl Armor Mod)","CurseForge":"girl-armor-mod","Modrinth":""},{"Id":2083,"Name":"游牧帐篷 (Nomadic Tents)","CurseForge":"nomadic-tents","Modrinth":""},{"Id":2084,"Name":"泽它重工 (Zetta Industries)","CurseForge":"zetta-industries","Modrinth":""},{"Id":2085,"Name":"","CurseForge":"kekztech","Modrinth":""},{"Id":2086,"Name":"神迹 (By The Gods)","CurseForge":"by-the-gods","Modrinth":""},{"Id":2087,"Name":"愤怒的蜜蜂 (Bee Angry-est)","CurseForge":"bee-angry-est","Modrinth":""},{"Id":2088,"Name":"钛 (Titanium)","CurseForge":"titanium","Modrinth":"titanium"},{"Id":2089,"Name":"","CurseForge":"chemlib","Modrinth":""},{"Id":2089,"Name":"","CurseForge":"chemlib-fabric","Modrinth":""},{"Id":2090,"Name":"胡萝卜库 (Carrots Library)","CurseForge":"carrots-lib","Modrinth":""},{"Id":2091,"Name":"围火无怪 (No Hostiles Around Campfire)","CurseForge":"no-hostiles-around-campfire","Modrinth":"no-hostiles-around-campfire"},{"Id":2091,"Name":"围火无怪 (No Hostiles Around Campfire)","CurseForge":"no-hostiles-around-campfire-fabric","Modrinth":""},{"Id":2092,"Name":"治愈营火 (Healing Campfire)","CurseForge":"healing-campfire","Modrinth":"healing-campfire"},{"Id":2092,"Name":"治愈营火 (Healing Campfire)","CurseForge":"healing-campfire-fabric","Modrinth":""},{"Id":2093,"Name":"","CurseForge":"minetunes","Modrinth":""},{"Id":2094,"Name":"物品丢入流体 (Just Enough Throwing In Fluids)","CurseForge":"jetif","Modrinth":""},{"Id":2095,"Name":"RF工具:基础 (RFTools Base)","CurseForge":"rftools-base","Modrinth":"rftools-base"},{"Id":2096,"Name":"流体漏斗 (Flopper)","CurseForge":"flopper","Modrinth":"flopper"},{"Id":2097,"Name":"竭力攻击 (Exhausted Stamina)","CurseForge":"exhausted-stamina","Modrinth":""},{"Id":2098,"Name":"耐力值 (StaminaPlus)","CurseForge":"staminaplus","Modrinth":""},{"Id":2099,"Name":"增强装备 (Enhanced Armaments)","CurseForge":"enhanced-armaments","Modrinth":""},{"Id":2100,"Name":"空间兼容 (SpatialCompat)","CurseForge":"spatialcompat","Modrinth":""},{"Id":2101,"Name":"","CurseForge":"extended-reach","Modrinth":""},{"Id":2102,"Name":"没有配方书 (No Recipe Book)","CurseForge":"no-recipe-book","Modrinth":""},{"Id":2103,"Name":"","CurseForge":"darknesslib","Modrinth":""},{"Id":2104,"Name":"群峦传说 (TerraFirmaCraft)","CurseForge":"tfcraft","Modrinth":"terrafirmacraft"},{"Id":2105,"Name":"红石控制 (Redstone Control)","CurseForge":"redstone-control","Modrinth":""},{"Id":2106,"Name":"雪!真实的魔法!⛄ (Snow! Real Magic! ⛄)","CurseForge":"snow-real-magic","Modrinth":"snow-real-magic"},{"Id":2106,"Name":"雪!真实的魔法!⛄ (Snow! Real Magic! ⛄)","CurseForge":"snow-real-magic-fabric","Modrinth":""},{"Id":2107,"Name":"舒适用品 (Comforts)","CurseForge":"comforts","Modrinth":"comforts"},{"Id":2107,"Name":"舒适用品 (Comforts)","CurseForge":"comforts-fabric","Modrinth":""},{"Id":2108,"Name":"等离子炮 (PlasmaCannon)","CurseForge":"plasmacannon","Modrinth":""},{"Id":2109,"Name":"等离子引擎 (PlasmaEngines)","CurseForge":"plasmaengines","Modrinth":""},{"Id":2110,"Name":"","CurseForge":"bonny-food","Modrinth":""},{"Id":2111,"Name":"新兴技术 (Emerging Technology)","CurseForge":"emerging-technology-hydroponics","Modrinth":""},{"Id":2114,"Name":"暮托邦之梦 (Twilightopia)","CurseForge":"twilightopia-phantasy","Modrinth":""},{"Id":2115,"Name":"工程师的装饰 (Engineer's Decor)","CurseForge":"engineers-decor","Modrinth":""},{"Id":2116,"Name":"工程师的工具 (Engineer's Tools)","CurseForge":"engineers-tools","Modrinth":""},{"Id":2117,"Name":"Wesley的冒险地牢 (Wesley's Roguelike Dungeons)","CurseForge":"wesleys-roguelike-dungeons","Modrinth":"wesleys-roguelike-dungeons"},{"Id":2118,"Name":"经验之书 (Xp Tome)","CurseForge":"xp-tome","Modrinth":"xp-tome"},{"Id":2119,"Name":"","CurseForge":"varied-commodities","Modrinth":""},{"Id":2120,"Name":"匠魂扩增 (Tinkers' Things)","CurseForge":"tinkers-things","Modrinth":""},{"Id":2121,"Name":"更多的按钮 (Just Enough Buttons)","CurseForge":"just-enough-buttons","Modrinth":""},{"Id":2122,"Name":"时间显示器 (Clock HUD)","CurseForge":"clock-hud","Modrinth":""},{"Id":2123,"Name":"桃花源记/特克托皮亚 (TekTopia)","CurseForge":"tektopia","Modrinth":""},{"Id":2126,"Name":"","CurseForge":"fabric-language-kotlin","Modrinth":"fabric-language-kotlin"},{"Id":2127,"Name":"FTB备份 (FTB Backups)","CurseForge":"ftb-backups-forge","Modrinth":""},{"Id":2128,"Name":"独眼巨人 (CyclopsTek)","CurseForge":"cyclopstek","Modrinth":""},{"Id":2130,"Name":"冠军/强敌 (Champions)","CurseForge":"champions","Modrinth":"champions"},{"Id":2131,"Name":"前路危机 (Danger Lies Ahead)","CurseForge":"danger-lies-ahead","Modrinth":""},{"Id":2132,"Name":"","CurseForge":"croploadcore","Modrinth":""},{"Id":2133,"Name":"污秽之地 (Defiled Lands)","CurseForge":"defiled-lands","Modrinth":""},{"Id":2134,"Name":"奥秘 (Arcanum)","CurseForge":"arcanum","Modrinth":""},{"Id":2135,"Name":"随机附魔 (Random Enchants)","CurseForge":"random-enchants","Modrinth":""},{"Id":2136,"Name":"更多种类的蜘蛛 (Much More Spiders)","CurseForge":"much-more-spiders-v2","Modrinth":""},{"Id":2137,"Name":"","CurseForge":"compressed-items","Modrinth":""},{"Id":2138,"Name":"无树可撸 (No Tree Punching)","CurseForge":"no-tree-punching","Modrinth":"no-tree-punching"},{"Id":2139,"Name":"丰收物语移植版 (Harvest Festival Legacy)","CurseForge":"harvest-festival-legacy","Modrinth":"harvest-festival-legacy"},{"Id":2140,"Name":"友好的怪物 (FriendlyMobs)","CurseForge":"friendlymobs","Modrinth":""},{"Id":2141,"Name":"简单前置 (SimpleCore API / SimpleCoreLib)","CurseForge":"simplecore-api","Modrinth":"simplecore-api"},{"Id":2142,"Name":"地形 (Topography)","CurseForge":"topography","Modrinth":""},{"Id":2143,"Name":"JEI村民交易查看 (JEI Villagers)","CurseForge":"jei-villagers","Modrinth":""},{"Id":2144,"Name":"","CurseForge":"bnbgamingcore","Modrinth":""},{"Id":2145,"Name":"灭霸手套 (IGauntlet)","CurseForge":"igauntlet","Modrinth":""},{"Id":2146,"Name":"","CurseForge":"alcatrazcore","Modrinth":""},{"Id":2147,"Name":"","CurseForge":"debugserverinfo","Modrinth":""},{"Id":2148,"Name":"午夜 (The Midnight)","CurseForge":"the-midnight","Modrinth":"the-midnight"},{"Id":2149,"Name":"奶牛世界 (Moolands)","CurseForge":"moolands","Modrinth":""},{"Id":2150,"Name":"蛋工艺 (Egg Craft)","CurseForge":"egg-craft","Modrinth":""},{"Id":2151,"Name":"","CurseForge":"tinkersextras","Modrinth":""},{"Id":2152,"Name":"宝可梦幸运方块 (PokeLucky)","CurseForge":"poke-lucky","Modrinth":""},{"Id":2153,"Name":"更有用的TNT (UsefulTNT)","CurseForge":"usefultnt","Modrinth":""},{"Id":2155,"Name":"乌鸦坐飞机 (Crow Flight)","CurseForge":"crow-flight","Modrinth":""},{"Id":2156,"Name":"东寻西觅 (FindMe)","CurseForge":"findme","Modrinth":"findme"},{"Id":2157,"Name":"我的世界铁路 (Minecraft Transit Railway)","CurseForge":"minecraft-transit-railway","Modrinth":"minecraft-transit-railway"},{"Id":2158,"Name":"随机战利品 (Random Loot Mod)","CurseForge":"random-loot-mod","Modrinth":"randomloot"},{"Id":2160,"Name":"天境工匠 (Tinkers Aether)","CurseForge":"tinkers-aether","Modrinth":""},{"Id":2161,"Name":"挖矿与砍杀自动兼容 (Mine and Slash Auto Compatibility)","CurseForge":"mine-and-slash-auto-compatibility","Modrinth":""},{"Id":2162,"Name":"冶金核心 (MetallurgyCore)","CurseForge":"metallurgy-core","Modrinth":""},{"Id":2163,"Name":"","CurseForge":"blank-planet","Modrinth":""},{"Id":2164,"Name":"更好的成就 (Better Achievements)","CurseForge":"betterachievements","Modrinth":""},{"Id":2165,"Name":"更多的弓 (Extra Bows)","CurseForge":"extra-bows","Modrinth":""},{"Id":2166,"Name":"失落遗物学 (Forgotten Relics)","CurseForge":"forgotten-relics","Modrinth":""},{"Id":2167,"Name":"矿石核心 (Ore Core)","CurseForge":"ore-core","Modrinth":"ore-core"},{"Id":2168,"Name":"普通硬币 (Ordinary Coins)","CurseForge":"ordinary-coins","Modrinth":""},{"Id":2169,"Name":"花生! (Peanuts!)","CurseForge":"peanut-mod","Modrinth":""},{"Id":2171,"Name":"","CurseForge":"in-game-wiki-mod","Modrinth":""},{"Id":2172,"Name":"更好的基岩 (Better Bedrock Gen)","CurseForge":"betterbedrockgen","Modrinth":""},{"Id":2173,"Name":"","CurseForge":"wsbim-legacy-blocks-and-items","Modrinth":""},{"Id":2174,"Name":"","CurseForge":"storage-items-mod","Modrinth":""},{"Id":2175,"Name":"","CurseForge":"what-should-be-in-mc-wsbim","Modrinth":""},{"Id":2176,"Name":"","CurseForge":"bluestone","Modrinth":""},{"Id":2177,"Name":"轻松建造 (Effortless Building)","CurseForge":"effortless-building","Modrinth":"effortless-building"},{"Id":2178,"Name":"","CurseForge":"ic2-classic-tweaker","Modrinth":""},{"Id":2179,"Name":"IC2经典版作物覆盖 (IC2C Crop Overrides)","CurseForge":"Ic2c-Crop-Overrides","Modrinth":""},{"Id":2180,"Name":"工业时代2经典版拓展 (IC2C Extras)","CurseForge":"ic2c-extras","Modrinth":""},{"Id":2181,"Name":"高级太阳能经典版 (Advanced Solars Classic)","CurseForge":"advanced-solars-classic","Modrinth":""},{"Id":2182,"Name":"能量凿子 (Power Chisels)","CurseForge":"power-chisels","Modrinth":""},{"Id":2183,"Name":"","CurseForge":"ic2c-custom-soils","Modrinth":""},{"Id":2184,"Name":"经验球归航 (Homing Exp Orbs)","CurseForge":"homing-exp-orbs","Modrinth":""},{"Id":2185,"Name":"自定义附魔光效 (Jabelar's Truly Magical Enchantment Glints)","CurseForge":"enchantmentglint","Modrinth":""},{"Id":2186,"Name":"花卉工艺 (Floricraft)","CurseForge":"floricraft","Modrinth":""},{"Id":2187,"Name":"","CurseForge":"weisscore","Modrinth":""},{"Id":2188,"Name":"Gliby的物理 (Gliby's Physics)","CurseForge":"glibys-physics","Modrinth":""},{"Id":2189,"Name":"电子神秘工具 (Electro-Thaumic Tools - IC2 Classic)","CurseForge":"electro-magic-tools-ic2-classic","Modrinth":""},{"Id":2190,"Name":"强制ASCII字体 (ForceASCIIFont)","CurseForge":"forceasciifont","Modrinth":""},{"Id":2191,"Name":"烤串 (Skewers)","CurseForge":"skewers","Modrinth":""},{"Id":2192,"Name":"进入水桶 (Get In The Bucket Mod)","CurseForge":"get-in-the-bucket-mod","Modrinth":"get-in-the-bucket-mod"},{"Id":2192,"Name":"进入水桶 (Get In The Bucket Mod)","CurseForge":"get-in-the-bucket-mod-fabric","Modrinth":""},{"Id":2193,"Name":"施肥 (Fertilization)","CurseForge":"fertilization","Modrinth":""},{"Id":2193,"Name":"施肥 (Fertilization)","CurseForge":"fertilization-fabric","Modrinth":""},{"Id":2194,"Name":"更多旗帜 (Additional Banners)","CurseForge":"additional-banners","Modrinth":"additional-banners"},{"Id":2195,"Name":"","CurseForge":"dropt","Modrinth":""},{"Id":2196,"Name":"精灵森林 (The Elven Forest​)","CurseForge":"the-elven-forest","Modrinth":""},{"Id":2197,"Name":"深渊世界 (The Beneath)","CurseForge":"the-beneath","Modrinth":""},{"Id":2198,"Name":"NEI 拼音搜索 (Not Enough Characters)","CurseForge":"not-enough-characters","Modrinth":""},{"Id":2200,"Name":"","CurseForge":"mine-addons-2","Modrinth":""},{"Id":2201,"Name":"群峦传说 + (Terrafirmacraft +)","CurseForge":"terrafirmacraftplus","Modrinth":""},{"Id":2202,"Name":"快速摄入2 (Quick Consume 2)","CurseForge":"quick-consume-2","Modrinth":""},{"Id":2203,"Name":"","CurseForge":"mctitle","Modrinth":""},{"Id":2204,"Name":"","CurseForge":"mutil","Modrinth":"mutil"},{"Id":2205,"Name":"","CurseForge":"sublib","Modrinth":""},{"Id":2206,"Name":"致密矿石 (Dense Ores)","CurseForge":"dense-ores","Modrinth":""},{"Id":2207,"Name":"","CurseForge":"archisections","Modrinth":""},{"Id":2208,"Name":"洞穴控制 (Cave Control)","CurseForge":"cavecontrol","Modrinth":""},{"Id":2209,"Name":"红石扩展 (Expanded Redstone)","CurseForge":"expandedredstone","Modrinth":""},{"Id":2210,"Name":"传统工艺 (LegacyCraft)","CurseForge":"legacycraft","Modrinth":""},{"Id":2211,"Name":"","CurseForge":"geostrata","Modrinth":""},{"Id":2212,"Name":"","CurseForge":"territoryzone","Modrinth":""},{"Id":2213,"Name":"","CurseForge":"loottweaks","Modrinth":""},{"Id":2214,"Name":"","CurseForge":"critterpet","Modrinth":""},{"Id":2215,"Name":"","CurseForge":"condensedores","Modrinth":""},{"Id":2216,"Name":"","CurseForge":"treeclimbing","Modrinth":""},{"Id":2217,"Name":"更多电力装置 (More Electric Tools)","CurseForge":"more-electric-tools","Modrinth":""},{"Id":2218,"Name":"无线流体终端 (AE2 Wireless Fluid Terminal)","CurseForge":"wireless-fluid-terminal","Modrinth":""},{"Id":2219,"Name":"无线接口终端 (AE2 Wireless Interface Terminal)","CurseForge":"wireless-interface-terminal","Modrinth":""},{"Id":2220,"Name":"无线样板终端 (Wireless Pattern Terminal)","CurseForge":"wireless-pattern-terminal","Modrinth":""},{"Id":2221,"Name":"更好的任务-RF拓展 (Better Questing - RF Expansion)","CurseForge":"better-questing-rf-expansion","Modrinth":""},{"Id":2222,"Name":"","CurseForge":"hurt-animation-remover","Modrinth":""},{"Id":2223,"Name":"更多炼药锅 (More Cauldrons)","CurseForge":"more-cauldrons","Modrinth":""},{"Id":2224,"Name":"","CurseForge":"parabox","Modrinth":""},{"Id":2225,"Name":"","CurseForge":"sky-grid","Modrinth":""},{"Id":2226,"Name":"禁忌与奥秘 (Forbidden and Arcanus)","CurseForge":"forbidden-arcanus","Modrinth":"forbidden-arcanus"},{"Id":2227,"Name":"奇械学 (Mystical Mechanics API)","CurseForge":"mysticalmechanics","Modrinth":""},{"Id":2228,"Name":"背包 (Backpacked)","CurseForge":"backpacked","Modrinth":""},{"Id":2228,"Name":"背包 (Backpacked)","CurseForge":"backpacked-fabric","Modrinth":""},{"Id":2229,"Name":"星舰 (StarShip)","CurseForge":"starsh","Modrinth":""},{"Id":2230,"Name":"","CurseForge":"tweakeroo","Modrinth":"tweakeroo"},{"Id":2231,"Name":"","CurseForge":"integrated-rest","Modrinth":"integrated-rest"},{"Id":2232,"Name":"","CurseForge":"citadel","Modrinth":"citadel"},{"Id":2233,"Name":"内置截图管理器 (Screenshot Browser)","CurseForge":"screenshot-browser","Modrinth":""},{"Id":2236,"Name":"不死图腾插槽/不死图腾槽位 (Curio of Undying / Trinket of Undying / Charm of Undying)","CurseForge":"curio-of-undying","Modrinth":"charm-of-undying"},{"Id":2236,"Name":"不死图腾插槽/不死图腾槽位 (Curio of Undying / Trinket of Undying / Charm of Undying)","CurseForge":"curio-of-undying-fabric","Modrinth":""},{"Id":2237,"Name":"探险者 (Explorercraft)","CurseForge":"explorercraft-worldexpansion","Modrinth":""},{"Id":2239,"Name":"神秘遗物 (Enigmatic Legacy)","CurseForge":"enigmatic-legacy","Modrinth":"enigmatic-legacy"},{"Id":2240,"Name":"末地:重生 (Endorium)","CurseForge":"end-reborn","Modrinth":"endorium"},{"Id":2240,"Name":"末地:重生 (Endorium)","CurseForge":"end-rebellion","Modrinth":""},{"Id":2242,"Name":"EZ存储2 (EZStorage 2)","CurseForge":"ezstorage-2","Modrinth":""},{"Id":2243,"Name":"更多鸡扩展 (More Chickens)","CurseForge":"more-chickens","Modrinth":""},{"Id":2244,"Name":"魔戒:第一纪元 (Eras of Arda: The First Age Legacy submod)","CurseForge":"eoa-fa","Modrinth":""},{"Id":2245,"Name":"","CurseForge":"the-rc-mod","Modrinth":""},{"Id":2246,"Name":"红宝石 (Ruby)","CurseForge":"rubybyimxiaoanag","Modrinth":""},{"Id":2247,"Name":"JoJo: 波纹时代 (JoJo: Hamon Era)","CurseForge":"jojo-hamon-era","Modrinth":"jojo-hamon-era"},{"Id":2249,"Name":"开放式安全 (Opensecurity)","CurseForge":"OpenSecurity","Modrinth":""},{"Id":2250,"Name":"传说纪元 (The Legend Era)","CurseForge":"the-legend-era","Modrinth":""},{"Id":2251,"Name":"生命提升 (Level Up HP)","CurseForge":"level-up-hp-forge","Modrinth":""},{"Id":2251,"Name":"生命提升 (Level Up HP)","CurseForge":"level-up-hp","Modrinth":""},{"Id":2252,"Name":"","CurseForge":"more-planet-extras","Modrinth":""},{"Id":2253,"Name":"随意修复 (RandomPatches)","CurseForge":"randompatches","Modrinth":"randompatches"},{"Id":2253,"Name":"随意修复 (RandomPatches)","CurseForge":"randompatches-fabric","Modrinth":""},{"Id":2254,"Name":"船 (Ships Mod)","CurseForge":"ships-mod","Modrinth":""},{"Id":2255,"Name":"公制重量转换 (TFC Metric)","CurseForge":"tfc-metric","Modrinth":""},{"Id":2259,"Name":"群峦附加 (TFC-Additions)","CurseForge":"tfc-additions","Modrinth":""},{"Id":2260,"Name":"","CurseForge":"raolcraft-w","Modrinth":""},{"Id":2261,"Name":"投影 (Litematica)","CurseForge":"litematica","Modrinth":"litematica"},{"Id":2261,"Name":"投影 (Litematica)","CurseForge":"litematica-forge","Modrinth":""},{"Id":2262,"Name":"传送蛋糕 (TelePastries)","CurseForge":"telepastries","Modrinth":""},{"Id":2263,"Name":"超级英雄拓展 (HeroesExpansion)","CurseForge":"heroesexpansion","Modrinth":""},{"Id":2264,"Name":"属性修复 (AttributeFix)","CurseForge":"attributefix","Modrinth":"attributefix"},{"Id":2265,"Name":"动态运输 (Dynamic Transport)","CurseForge":"dynamic-transport","Modrinth":""},{"Id":2266,"Name":"铸器师 (Tool Builder)","CurseForge":"tool-builder","Modrinth":""},{"Id":2267,"Name":"丰富的饰品 (Bountiful Baubles)","CurseForge":"bountifulbaubles","Modrinth":""},{"Id":2267,"Name":"丰富的饰品 (Bountiful Baubles)","CurseForge":"bountifulbaubles-fabric","Modrinth":""},{"Id":2269,"Name":"魔能工艺 (ManaCraft)","CurseForge":"manacraft","Modrinth":""},{"Id":2274,"Name":"更多背包 (Backpacks)","CurseForge":"forge-backpacks","Modrinth":""},{"Id":2275,"Name":"","CurseForge":"repurpose","Modrinth":""},{"Id":2276,"Name":"","CurseForge":"unlimited-chisel-works","Modrinth":"unlimited-chisel-works"},{"Id":2277,"Name":"","CurseForge":"kfc","Modrinth":""},{"Id":2278,"Name":"彩虹橡树 (Rainbow Oak Trees)","CurseForge":"rainbow-oak-trees","Modrinth":""},{"Id":2279,"Name":"生成调整 (SpawnTableTweaker)","CurseForge":"spawntabletweaker","Modrinth":""},{"Id":2280,"Name":"大型矿床 (Large Ore Deposits)","CurseForge":"large-ore-deposits","Modrinth":""},{"Id":2281,"Name":"格雷科技6非官方版 (GregTech 6 Unofficial)","CurseForge":"gregtech6-unofficial","Modrinth":""},{"Id":2282,"Name":"魔法使 (Mahou Tsukai)","CurseForge":"mahou-tsukai","Modrinth":"mahou-tsukai"},{"Id":2284,"Name":"","CurseForge":"moar-tinkers","Modrinth":""},{"Id":2285,"Name":"心之容器 (Baubley Heart Canisters)","CurseForge":"baubley-heart-canisters","Modrinth":"baubley-heart-canisters"},{"Id":2286,"Name":"JAOPCA奇点 (JAOPCA Singularities)","CurseForge":"jaopcasingularities","Modrinth":"jaopcasingularities"},{"Id":2288,"Name":"","CurseForge":"labymod","Modrinth":""},{"Id":2291,"Name":"","CurseForge":"guidebook","Modrinth":""},{"Id":2292,"Name":"锂 (Lithium)","CurseForge":"lithium","Modrinth":"lithium"},{"Id":2292,"Name":"锂 (Lithium)","CurseForge":"lithium-forge","Modrinth":""},{"Id":2293,"Name":"求生之路 (Left 2 Mine)","CurseForge":"left-2-mine","Modrinth":""},{"Id":2294,"Name":"","CurseForge":"worldeditcui-forge-edition-2","Modrinth":""},{"Id":2295,"Name":"","CurseForge":"world-book","Modrinth":""},{"Id":2296,"Name":"倒置漏斗 (Uppers)","CurseForge":"uppers","Modrinth":""},{"Id":2297,"Name":"斯巴达的武器 (Spartan Weaponry)","CurseForge":"spartan-weaponry","Modrinth":"spartan-weaponry"},{"Id":2298,"Name":"","CurseForge":"malilib","Modrinth":"malilib"},{"Id":2298,"Name":"","CurseForge":"malilib-forge","Modrinth":""},{"Id":2299,"Name":"","CurseForge":"infraredstone","Modrinth":""},{"Id":2300,"Name":"幻想多媒体 (Incorporeal)","CurseForge":"incorporeal","Modrinth":""},{"Id":2301,"Name":"","CurseForge":"amun-ra","Modrinth":""},{"Id":2303,"Name":"妖怪之山通用库 (MysteriousMountainLib)","CurseForge":"mysterious-mountain-lib","Modrinth":"mmlib"},{"Id":2304,"Name":"","CurseForge":"loottweaker","Modrinth":""},{"Id":2305,"Name":"特性重现 (Rediscovered)","CurseForge":"rediscovered","Modrinth":"rediscovered"},{"Id":2307,"Name":"","CurseForge":"gvclib","Modrinth":""},{"Id":2308,"Name":"饰品栏重置版 (Baubles Reborn)","CurseForge":"baubles-reborn","Modrinth":""},{"Id":2309,"Name":"潘马斯酿造工艺 (Pam's Brewcraft)","CurseForge":"pams-brewcraft","Modrinth":""},{"Id":2310,"Name":"泥土工艺 (DirtCraft)","CurseForge":"dirtcraft","Modrinth":""},{"Id":2311,"Name":"迷你HUD (MiniHUD)","CurseForge":"minihud","Modrinth":"minihud"},{"Id":2312,"Name":"土豆工艺 (Potato Craft)","CurseForge":"potato-craft","Modrinth":""},{"Id":2314,"Name":"","CurseForge":"bed-patch","Modrinth":""},{"Id":2316,"Name":"","CurseForge":"data-loader-forge","Modrinth":""},{"Id":2316,"Name":"","CurseForge":"data-loader","Modrinth":""},{"Id":2318,"Name":"更好的灯 (Simply Light)","CurseForge":"simply-light","Modrinth":""},{"Id":2319,"Name":"雷电攻击 (Lightning Bolt Mod)","CurseForge":"lightning-bolt-mod","Modrinth":""},{"Id":2320,"Name":"斯巴达之冰与火 (Spartan and Fire)","CurseForge":"spartan-and-fire","Modrinth":""},{"Id":2322,"Name":"","CurseForge":"beacons-for-all","Modrinth":"beacons-for-all"},{"Id":2322,"Name":"","CurseForge":"beacons-for-all-fabric","Modrinth":""},{"Id":2324,"Name":"更多功能花 (More Flowers)","CurseForge":"more-flowers","Modrinth":""},{"Id":2326,"Name":"","CurseForge":"buzzier-bees","Modrinth":"buzzier-bees"},{"Id":2328,"Name":"棒棒糖 (Lollipop)","CurseForge":"lollipop","Modrinth":""},{"Id":2329,"Name":"敌意显示 (Enemyz)","CurseForge":"enemyz","Modrinth":""},{"Id":2330,"Name":"神秘复辟 (Thaumic Restoration)","CurseForge":"thaumic-restoration","Modrinth":""},{"Id":2333,"Name":"原始船舶 (Primal Boat)","CurseForge":"primal-boat","Modrinth":""},{"Id":2334,"Name":"","CurseForge":"eyes-in-the-darkness","Modrinth":""},{"Id":2335,"Name":"神秘进阶 (Thaumic Augmentation)","CurseForge":"thaumic-augmentation","Modrinth":""},{"Id":2336,"Name":"失落的魔法 (Lost Magic)","CurseForge":"lost-magic","Modrinth":""},{"Id":2337,"Name":"","CurseForge":"thaumic-arcana","Modrinth":""},{"Id":2338,"Name":"神秘奇境 (Thaumic Wonders)","CurseForge":"thaumic-wonders","Modrinth":""},{"Id":2339,"Name":"","CurseForge":"crimson-warfare","Modrinth":""},{"Id":2340,"Name":"","CurseForge":"terra-1-to-1-minecraft-world-project","Modrinth":""},{"Id":2341,"Name":"多元宇宙袋 (Multiverse Pouch)","CurseForge":"multiverse-pouch","Modrinth":""},{"Id":2343,"Name":"巫术学:暮色森林法术包 (Electroblob's Wizardry: Twilight Forest Spell Pack)","CurseForge":"electroblobs-wizardry-twilight-forest-spell-pack","Modrinth":""},{"Id":2344,"Name":"","CurseForge":"blockbuster","Modrinth":""},{"Id":2345,"Name":"Fish的不死崛起/Fish的亡灵崛起 (Fish's Undead Rising)","CurseForge":"fishs-undead-rising","Modrinth":""},{"Id":2346,"Name":"","CurseForge":"cloth-config","Modrinth":"cloth-config"},{"Id":2346,"Name":"","CurseForge":"cloth-config-legacy","Modrinth":""},{"Id":2347,"Name":"","CurseForge":"just-map","Modrinth":""},{"Id":2347,"Name":"Just Map - 无限制","CurseForge":"just-map-unlimited","Modrinth":""},{"Id":2348,"Name":"真实背包 (Realistic Inventory)","CurseForge":"too-realistic-inventory","Modrinth":""},{"Id":2349,"Name":"生物农场 (Mob Farm)","CurseForge":"mob-farm","Modrinth":""},{"Id":2350,"Name":"加速器工艺 (AcceleratorCraft)","CurseForge":"acceleratorcraft","Modrinth":""},{"Id":2351,"Name":"","CurseForge":"minecraft-spongebob-squarepants-mod-for-the-1-7-10","Modrinth":""},{"Id":2352,"Name":"实用世界 (Utility Worlds)","CurseForge":"utility-worlds","Modrinth":""},{"Id":2353,"Name":"哥布林商人 (Goblin Traders)","CurseForge":"goblin-traders","Modrinth":""},{"Id":2353,"Name":"哥布林商人 (Goblin Traders)","CurseForge":"goblintraders-fabric","Modrinth":""},{"Id":2354,"Name":"神的恩惠 (Divine Favor)","CurseForge":"divine-favor","Modrinth":""},{"Id":2355,"Name":"量瓶 (Volumetric Flask)","CurseForge":"volumetric-flask","Modrinth":""},{"Id":2356,"Name":"战利品包 (Loot Bag Mod)","CurseForge":"loot-bag-mod","Modrinth":""},{"Id":2358,"Name":"我的世界地下城 (Minecraft Dungeons Mod)","CurseForge":"minecraft-dungeons-mod","Modrinth":""},{"Id":2360,"Name":"季节性蜜蜂 (Seasonal Bees)","CurseForge":"seasonal-bees","Modrinth":""},{"Id":2361,"Name":"地毯 (Carpet)","CurseForge":"carpet","Modrinth":"carpet"},{"Id":2362,"Name":"自定义枪械 (HandmadeGuns)","CurseForge":"handmadegunsmodex","Modrinth":""},{"Id":2363,"Name":"等价拓展 (Equivalent Additions)","CurseForge":"equivalent-additions","Modrinth":"equivalent-additions"},{"Id":2364,"Name":"","CurseForge":"mixinbootstrap","Modrinth":"mixinbootstrap"},{"Id":2365,"Name":"","CurseForge":"powah","Modrinth":""},{"Id":2366,"Name":"自然誓约 (Natural Pledge)","CurseForge":"natural-pledge","Modrinth":""},{"Id":2367,"Name":"更多浆果 (More Berries)","CurseForge":"more-berries","Modrinth":"more-berries"},{"Id":2368,"Name":"","CurseForge":"zeiyocraft","Modrinth":""},{"Id":2369,"Name":"阶段时间 (Time Stages)","CurseForge":"time-stages","Modrinth":""},{"Id":2370,"Name":"","CurseForge":"additional-events","Modrinth":""},{"Id":2371,"Name":"","CurseForge":"artemislib","Modrinth":""},{"Id":2373,"Name":"简易重生成 (Easy Retrogen)","CurseForge":"easy-retrogen","Modrinth":""},{"Id":2374,"Name":"额外玩家渲染 (Extra Player Renderer)","CurseForge":"extraplayerrenderer","Modrinth":"extraplayerrenderer"},{"Id":2375,"Name":"","CurseForge":"rwbym","Modrinth":""},{"Id":2376,"Name":"","CurseForge":"libnonymous","Modrinth":""},{"Id":2377,"Name":"","CurseForge":"shattered-moon","Modrinth":""},{"Id":2378,"Name":"匠魂生存 (Tinkers' Survival)","CurseForge":"tinkersurvival","Modrinth":"tinkersurvival"},{"Id":2379,"Name":"便携物品 (PortableCraft)","CurseForge":"portablecraft","Modrinth":""},{"Id":2381,"Name":"给兔子戴上礼帽 (Better Than Bunnies)","CurseForge":"better-than-bunnies","Modrinth":"better-than-bunnies"},{"Id":2381,"Name":"给兔子戴上礼帽 (Better Than Bunnies)","CurseForge":"better-than-bunnies-fabric","Modrinth":""},{"Id":2382,"Name":"奥术精要 (Arcane Essentials)","CurseForge":"arcane-essentials","Modrinth":""},{"Id":2383,"Name":"极光幽境 (The Aurorian)","CurseForge":"the-aurorian","Modrinth":"the-aurorian"},{"Id":2384,"Name":"鸡蛋自动孵化 (Egg Auto Hatch)","CurseForge":"egg-auto-hatch","Modrinth":""},{"Id":2385,"Name":"性能优化 (Performant)","CurseForge":"performant","Modrinth":""},{"Id":2386,"Name":"管道传输系统 (Tube Transport System)","CurseForge":"tube-transport-system","Modrinth":""},{"Id":2388,"Name":"","CurseForge":"transmutation-alchemy","Modrinth":""},{"Id":2388,"Name":"","CurseForge":"transmutation-alchemy-revival","Modrinth":""},{"Id":2389,"Name":"额外咒语 (Extra Spells)","CurseForge":"extra-spells-electroblobs-wizardry","Modrinth":""},{"Id":2390,"Name":"古代咒法 (Ancient Spellcraft)","CurseForge":"ancient-spellcraft","Modrinth":""},{"Id":2391,"Name":"","CurseForge":"moving-elevators","Modrinth":"moving-elevators"},{"Id":2392,"Name":"星际:系外行星 (Interstellar: Exoplanets)","CurseForge":"interstellar-exoplanets","Modrinth":"interstellar-exoplanets"},{"Id":2393,"Name":"","CurseForge":"infini-tic","Modrinth":""},{"Id":2394,"Name":"更多磁盘 (Extra Disks)","CurseForge":"extra-disks","Modrinth":"extra-disks"},{"Id":2395,"Name":"","CurseForge":"optiforge","Modrinth":""},{"Id":2396,"Name":"巫术学魔法种子 (Magic seeds for Electroblobs Wizardry)","CurseForge":"magic-seeds-for-electroblobs-wizardry","Modrinth":""},{"Id":2397,"Name":"扩展炼药 (Extra Alchemy)","CurseForge":"extra-alchemy","Modrinth":"extraalchemy"},{"Id":2398,"Name":"帷幕彼端 (Beyond The Veil)","CurseForge":"beyond-the-veil","Modrinth":""},{"Id":2399,"Name":"枫糖 (Maple Syrup)","CurseForge":"maple-syrup","Modrinth":""},{"Id":2400,"Name":"血液粒子效果 (Blood Particles)","CurseForge":"blood-particles","Modrinth":""},{"Id":2401,"Name":"","CurseForge":"nyx","Modrinth":""},{"Id":2402,"Name":"","CurseForge":"lieutenant","Modrinth":"lieutenant"},{"Id":2403,"Name":"","CurseForge":"matthews-difficulty-mod","Modrinth":""},{"Id":2404,"Name":"旧版战斗系统 (Old Combat System)","CurseForge":"old-combat-system","Modrinth":""},{"Id":2405,"Name":"","CurseForge":"vampires-need-umbrellas","Modrinth":"vampires-need-umbrellas"},{"Id":2406,"Name":"安眠药 (hypnotics)","CurseForge":"hypnotics","Modrinth":""},{"Id":2407,"Name":"村民市场 (Villager Market)","CurseForge":"villager-market","Modrinth":""},{"Id":2409,"Name":"线性放置 (Linear)","CurseForge":"linear","Modrinth":""},{"Id":2410,"Name":"沉浸式传送门 (Immersive Portals)","CurseForge":"immersive-portals-for-forge","Modrinth":"immersiveportals"},{"Id":2410,"Name":"沉浸式传送门 (Immersive Portals)","CurseForge":"immersive-portals-mod","Modrinth":"immersive-portals-neoforge"},{"Id":2411,"Name":"","CurseForge":"universalbestiary","Modrinth":""},{"Id":2412,"Name":"秋原 (Autumnity)","CurseForge":"autumnity","Modrinth":"autumnity"},{"Id":2413,"Name":"","CurseForge":"worldgeneration-profiler","Modrinth":""},{"Id":2414,"Name":"球内区块 (Chunk In A Globe)","CurseForge":"chunk-in-a-globe","Modrinth":""},{"Id":2415,"Name":"龙骑士:传承 (Dragon Mounts: Legacy)","CurseForge":"dragon-mounts-legacy","Modrinth":"dragon-mounts-legacy"},{"Id":2416,"Name":"妙趣果园 🍊 (Fruitful Fun 🍊)","CurseForge":"fruit-trees","Modrinth":"fruitful-fun"},{"Id":2417,"Name":"光明之旅·神之本质 (Journey Into the Light · Essence of the Gods)","CurseForge":"journey-into-the-light-mod","Modrinth":"jitl"},{"Id":2418,"Name":"厨房 (The Kitchen Mod)","CurseForge":"kitchen-mod","Modrinth":""},{"Id":2418,"Name":"厨房 (The Kitchen Mod) - Bug 修复版","CurseForge":"the-kitchen-mod-knife-and-fork","Modrinth":""},{"Id":2419,"Name":"更多地牢 (More Dungeons)","CurseForge":"more-dungeons","Modrinth":""},{"Id":2420,"Name":"","CurseForge":"voyage","Modrinth":""},{"Id":2421,"Name":"理想境 (Idealland)","CurseForge":"idealland","Modrinth":""},{"Id":2424,"Name":"","CurseForge":"second-screen","Modrinth":""},{"Id":2426,"Name":"","CurseForge":"fastasyncworldedit-forge","Modrinth":""},{"Id":2427,"Name":"奥法工艺 (ArcaneCraft)","CurseForge":"arcanecraft","Modrinth":""},{"Id":2428,"Name":"","CurseForge":"retrobees","Modrinth":""},{"Id":2429,"Name":"育蜂指南 (BeeBetterAtBees)","CurseForge":"beebetteratbees","Modrinth":""},{"Id":2430,"Name":"负魔书 (InvertedEnchantments)","CurseForge":"inverted-enchantments","Modrinth":""},{"Id":2431,"Name":"","CurseForge":"general-laymans-aesthetic-spying-screen-glass","Modrinth":""},{"Id":2432,"Name":"自定义名称前后缀 (diy_title)","CurseForge":"diy_title","Modrinth":""},{"Id":2433,"Name":"禁用原版工具 (ToolTweaks)","CurseForge":"tooltweaks","Modrinth":""},{"Id":2434,"Name":"超多生物群系护甲 (Armor for Biomes O' Plenty)","CurseForge":"atop","Modrinth":""},{"Id":2435,"Name":"工匠锻造 (Tinker's Forging)","CurseForge":"tinkers-forging","Modrinth":""},{"Id":2436,"Name":"重力枪 (Gravity Gun)","CurseForge":"gravity-gun","Modrinth":""},{"Id":2437,"Name":"通用机械附加 (Mekanism Additions)","CurseForge":"mekanism-additions","Modrinth":"mekanism-additions"},{"Id":2438,"Name":"告示牌图片 (Sign Picture)","CurseForge":"signpicture","Modrinth":""},{"Id":2439,"Name":"吸血鬼联动 (Vampirism Integrations)","CurseForge":"vampirism-integrations","Modrinth":"vampirism-integrations"},{"Id":2440,"Name":"","CurseForge":"gottschcore","Modrinth":"gottschcore"},{"Id":2441,"Name":"崩溃优化 (Not Enough Crashes)","CurseForge":"not-enough-crashes","Modrinth":"notenoughcrashes"},{"Id":2441,"Name":"崩溃优化 (Not Enough Crashes)","CurseForge":"not-enough-crashes-forge","Modrinth":""},{"Id":2442,"Name":"崩溃返回主菜单 (Crash To Main Menu)","CurseForge":"crash-to-main-menu","Modrinth":""},{"Id":2443,"Name":"","CurseForge":"tinkers-jei","Modrinth":""},{"Id":2445,"Name":"更好的任务-任务书 (Better Questing - Quest Book)","CurseForge":"better-questing-quest-book","Modrinth":"better-questing-quest-book"},{"Id":2446,"Name":"工程师的门 (Engineer's Doors)","CurseForge":"engineers-doors","Modrinth":""},{"Id":2447,"Name":"TPS发电机 (TPS Generator)","CurseForge":"tps-generator","Modrinth":""},{"Id":2448,"Name":"更好的溺水 (Better Drowning)","CurseForge":"better-drowning","Modrinth":"better-drowning"},{"Id":2449,"Name":"","CurseForge":"bibliotheca","Modrinth":""},{"Id":2450,"Name":"","CurseForge":"kubejs","Modrinth":"kubejs"},{"Id":2450,"Name":"","CurseForge":"kubejs-fabric","Modrinth":""},{"Id":2451,"Name":"","CurseForge":"tickcentral","Modrinth":""},{"Id":2452,"Name":"","CurseForge":"lowocalizatiwn","Modrinth":""},{"Id":2453,"Name":"","CurseForge":"redlib","Modrinth":""},{"Id":2454,"Name":"现代化 UI (Modern UI)","CurseForge":"modern-ui","Modrinth":"modern-ui"},{"Id":2455,"Name":"","CurseForge":"auto-config-updated-api","Modrinth":""},{"Id":2456,"Name":"中世纪的疯狂 (Medieval Madness)","CurseForge":"medieval-madness","Modrinth":""},{"Id":2458,"Name":"","CurseForge":"caelus","Modrinth":"caelus"},{"Id":2458,"Name":"","CurseForge":"caelus-fabric","Modrinth":""},{"Id":2459,"Name":"","CurseForge":"xeocore","Modrinth":""},{"Id":2460,"Name":"","CurseForge":"wtbw_lib","Modrinth":""},{"Id":2461,"Name":"","CurseForge":"dev-world-fabric","Modrinth":""},{"Id":2462,"Name":"","CurseForge":"threecore","Modrinth":""},{"Id":2463,"Name":"","CurseForge":"moddirector","Modrinth":""},{"Id":2464,"Name":"","CurseForge":"function-api","Modrinth":""},{"Id":2465,"Name":"","CurseForge":"targetingapi","Modrinth":""},{"Id":2466,"Name":"","CurseForge":"re-targetingapi","Modrinth":""},{"Id":2468,"Name":"","CurseForge":"dominionlib","Modrinth":""},{"Id":2470,"Name":"末地拓展 (The Endergetic Expansion)","CurseForge":"endergetic","Modrinth":"endergetic"},{"Id":2471,"Name":"","CurseForge":"swamp-expansion","Modrinth":"swamp-expansion"},{"Id":2472,"Name":"","CurseForge":"galactictweaks","Modrinth":"galactictweaks"},{"Id":2473,"Name":"地牢战术 (Dungeon Tactics)","CurseForge":"dungeon-tactics","Modrinth":""},{"Id":2474,"Name":"村民的鼻子 (Villager's Nose)","CurseForge":"villagers-nose","Modrinth":""},{"Id":2475,"Name":"自定义地牢 2 (Dungeons 2)","CurseForge":"dungeons2","Modrinth":""},{"Id":2476,"Name":"加长工具 (lang_tool)","CurseForge":"lang_tool","Modrinth":""},{"Id":2479,"Name":"","CurseForge":"emojiful","Modrinth":"emojiful"},{"Id":2480,"Name":"","CurseForge":"item-compatibility","Modrinth":""},{"Id":2481,"Name":"天境:遗失之物 (Aether: Lost Content Addon)","CurseForge":"aether-lost-content","Modrinth":"aether-lost-content"},{"Id":2482,"Name":"","CurseForge":"gunpowderlib","Modrinth":""},{"Id":2483,"Name":"核电工艺:重制版 (NuclearCraft: Overhauled)","CurseForge":"nuclearcraft-overhauled","Modrinth":"nuclearcraft-overhauled"},{"Id":2484,"Name":"魔戒NEI插件 (NEI LotR)","CurseForge":"nei-lotr","Modrinth":""},{"Id":2486,"Name":"探索者背包 (Adventure Backpack)","CurseForge":"adventure-backpack","Modrinth":""},{"Id":2487,"Name":"","CurseForge":"speed-illusion","Modrinth":""},{"Id":2488,"Name":"匠魂药水效果 (SuperTiC)","CurseForge":"supertic","Modrinth":""},{"Id":2489,"Name":"蜜蜂领域/黄蜂领域 (The Bumblezone)","CurseForge":"the-bumblezone-forge","Modrinth":"the-bumblezone"},{"Id":2489,"Name":"蜜蜂领域/黄蜂领域 (The Bumblezone)","CurseForge":"the-bumblezone-fabric","Modrinth":"the-bumblezone-fabric"},{"Id":2490,"Name":"","CurseForge":"beesourceful","Modrinth":""},{"Id":2491,"Name":"中洲工业 (Middle-Earth Industry)","CurseForge":"middle-earth-industry","Modrinth":""},{"Id":2492,"Name":"","CurseForge":"thut-wearables","Modrinth":""},{"Id":2493,"Name":"细雨田园 (After the Drizzle)","CurseForge":"after-the-drizzle","Modrinth":""},{"Id":2494,"Name":"CMD 指令摄影机 (CMDCam)","CurseForge":"cmdcam","Modrinth":"cmdcam"},{"Id":2495,"Name":"气候控制 / 地理世界 (Climate Control / Geographicraft)","CurseForge":"climate-control-geographicraft","Modrinth":"geographicraft"},{"Id":2497,"Name":"时装盔甲重置版 (Cosmetic Armor Reworked)","CurseForge":"cosmetic-armor-reworked","Modrinth":""},{"Id":2499,"Name":"","CurseForge":"efab","Modrinth":""},{"Id":2499,"Name":"","CurseForge":"","Modrinth":"efab"},{"Id":2500,"Name":"蜂群药水 (Potion of Bees)","CurseForge":"potion-of-bees","Modrinth":"potion-of-bees"},{"Id":2500,"Name":"蜂群药水 (Potion of Bees)","CurseForge":"potion-of-bees-fabric","Modrinth":""},{"Id":2501,"Name":"猛龙之居 (Wyrmroost)","CurseForge":"wyrmroost","Modrinth":"wyrmroost"},{"Id":2502,"Name":"资源蜜蜂 (Productive Bees)","CurseForge":"productivebees","Modrinth":"productivebees"},{"Id":2503,"Name":"","CurseForge":"gkolivers-super-tic","Modrinth":""},{"Id":2505,"Name":"战争之歌 (Songs of War)","CurseForge":"songs-of-war-mod","Modrinth":""},{"Id":2506,"Name":"","CurseForge":"fluidict","Modrinth":""},{"Id":2507,"Name":"鱿鱼工艺 (SquidCraft)","CurseForge":"squidcraft","Modrinth":"squidcraft"},{"Id":2508,"Name":"晾衣绳 (ClothesLine)","CurseForge":"clothesline","Modrinth":""},{"Id":2508,"Name":"晾衣绳 (ClothesLine)","CurseForge":"clothesline-fabric","Modrinth":""},{"Id":2509,"Name":"","CurseForge":"siege","Modrinth":""},{"Id":2510,"Name":"","CurseForge":"fermion-core","Modrinth":""},{"Id":2511,"Name":"万能翻译 (OmniTranslation)","CurseForge":"omnitranslation","Modrinth":""},{"Id":2512,"Name":"先有蛋 (The Egg Came First)","CurseForge":"the-egg-came-first","Modrinth":""},{"Id":2513,"Name":"核电助手 (NuclearCraft Helper)","CurseForge":"nuclearcraft-helper","Modrinth":""},{"Id":2514,"Name":"","CurseForge":"the-hive-more-bee-content","Modrinth":""},{"Id":2515,"Name":"中洲匠魂 (Tinker's Middleearth)","CurseForge":"tinkersmiddleearth","Modrinth":""},{"Id":2516,"Name":"","CurseForge":"inventory-pause","Modrinth":""},{"Id":2517,"Name":"霜花叶 (Snowy Leaves)","CurseForge":"snowy-leaves","Modrinth":""},{"Id":2518,"Name":"","CurseForge":"materialis","Modrinth":"materialis"},{"Id":2519,"Name":"超立方体 (Tesseract)","CurseForge":"tesseract","Modrinth":"tesseract"},{"Id":2520,"Name":"物流蜜蜂 (Carrier Bees)","CurseForge":"carrier-bees","Modrinth":""},{"Id":2521,"Name":"工匠再锻 (Tinkers Reforged)","CurseForge":"tinkers-reforged","Modrinth":"tinkers-reforged"},{"Id":2522,"Name":"魔幻世界 (Mystical World)","CurseForge":"mystical-world","Modrinth":""},{"Id":2523,"Name":"配方书全解锁 (Recipes for All)","CurseForge":"recipes-for-all","Modrinth":""},{"Id":2524,"Name":"","CurseForge":"gregicality","Modrinth":""},{"Id":2525,"Name":"魔戒:复兴 (The Lord of the Rings Mod: Renewed)","CurseForge":"the-lord-of-the-rings-mod-renewed","Modrinth":""},{"Id":2526,"Name":"","CurseForge":"modelloader","Modrinth":""},{"Id":2527,"Name":"动物作物 (Animal Crops)","CurseForge":"animal-crops","Modrinth":"animal-crops"},{"Id":2528,"Name":"","CurseForge":"terrafirmacraftneiplugin","Modrinth":""},{"Id":2529,"Name":"Fureniku的路 (Fureniku's Roads)","CurseForge":"furenikusroads","Modrinth":"furenikus-roads"},{"Id":2530,"Name":"帕秋莉任务手册 (Patchouli Quests)","CurseForge":"patchouli-quests","Modrinth":""},{"Id":2531,"Name":"学园附属 (ExtraAcademy)","CurseForge":"extraacademy","Modrinth":""},{"Id":2532,"Name":"","CurseForge":"iitemrenderer-reborn","Modrinth":""},{"Id":2533,"Name":"时间改革 (Time Overhaul)","CurseForge":"time-overhaul","Modrinth":""},{"Id":2534,"Name":"梗多武器 (StemWeapon)","CurseForge":"steamweapon","Modrinth":""},{"Id":2535,"Name":"","CurseForge":"counter-guns","Modrinth":""},{"Id":2537,"Name":"格雷科技轻松版 (GregTech: Chill Edition)","CurseForge":"gregtech-chill-edition","Modrinth":""},{"Id":2538,"Name":"自定义玩家模型 (Custom Player Model)","CurseForge":"custom-player-model-cpm","Modrinth":""},{"Id":2538,"Name":"自定义玩家模型 (Custom Player Model)","CurseForge":"custom-player-model-cpm-remake","Modrinth":""},{"Id":2539,"Name":"","CurseForge":"roughly-enough-resources","Modrinth":""},{"Id":2540,"Name":"更多附魔 (So Many Enchantments)","CurseForge":"so-many-enchantments","Modrinth":"so-many-enchantments"},{"Id":2542,"Name":"","CurseForge":"sisser","Modrinth":""},{"Id":2543,"Name":"多样化附魔 (HxCEnchants)","CurseForge":"hxcenchants","Modrinth":""},{"Id":2544,"Name":"更好的掉落物 (Better Dropped Items)","CurseForge":"better-dropped-items","Modrinth":""},{"Id":2545,"Name":"","CurseForge":"hxc-core","Modrinth":""},{"Id":2546,"Name":"","CurseForge":"surrounding-indicators","Modrinth":"surrounding-indicators"},{"Id":2547,"Name":"戈伯2 (Gobber2)","CurseForge":"gobber-fabric","Modrinth":""},{"Id":2548,"Name":"戈伯 (Gobber)","CurseForge":"gobber","Modrinth":""},{"Id":2549,"Name":"恶魔 (Iblis)","CurseForge":"iblis","Modrinth":""},{"Id":2551,"Name":"村民之王 (The King of the Villagers)","CurseForge":"the-king-of-the-villagers","Modrinth":""},{"Id":2552,"Name":"","CurseForge":"bring-me-the-rings","Modrinth":""},{"Id":2553,"Name":"","CurseForge":"bloomful","Modrinth":"bloomful"},{"Id":2554,"Name":"扒手 (Pick Pocketer)","CurseForge":"pick-pocketer","Modrinth":""},{"Id":2555,"Name":"","CurseForge":"terraforged","Modrinth":""},{"Id":2556,"Name":"","CurseForge":"rad-metabolosis","Modrinth":""},{"Id":2557,"Name":"","CurseForge":"mmd-orespawn","Modrinth":""},{"Id":2558,"Name":"悲惨世界3 (TragicMC 3)","CurseForge":"tragicmc3","Modrinth":""},{"Id":2560,"Name":"更多RTG (Not Enough RTGs)","CurseForge":"not-enough-rtgs","Modrinth":""},{"Id":2561,"Name":"量子块动力学 (Quantum Minecraft Dynamics)","CurseForge":"qmd","Modrinth":""},{"Id":2562,"Name":"","CurseForge":"environmental-rads","Modrinth":""},{"Id":2563,"Name":"裂变能中子素收集器 (Fission Based Neutron Collector)","CurseForge":"fission-based-neutron-collector","Modrinth":""},{"Id":2564,"Name":"三位一体 (Trinity)","CurseForge":"trinity","Modrinth":""},{"Id":2565,"Name":"Macaw 的窗户 (Macaw's Windows)","CurseForge":"macaws-windows","Modrinth":"macaws-windows"},{"Id":2566,"Name":"音乐播放器 (Music Player)","CurseForge":"music-player","Modrinth":""},{"Id":2567,"Name":"","CurseForge":"csokicraftutil","Modrinth":""},{"Id":2568,"Name":"","CurseForge":"large-enchants","Modrinth":""},{"Id":2569,"Name":"炙热太阳 (AngrySun)","CurseForge":"angrysun","Modrinth":""},{"Id":2570,"Name":"与现实相同的昼夜交替 (It's Not Long Enough)","CurseForge":"its-not-long-enough","Modrinth":""},{"Id":2571,"Name":"防晒霜 (Sunscreen Gel)","CurseForge":"sunscreen-gel","Modrinth":""},{"Id":2572,"Name":"姆亚核心 (MuyaCore)","CurseForge":"muya1-7-10","Modrinth":""},{"Id":2573,"Name":"Macaw 的家具 / 麦考的家具 (Macaw's Furniture)","CurseForge":"macaws-furniture","Modrinth":"macaws-furniture"},{"Id":2574,"Name":"Macaw 的门 / 麦考的门 (Macaw's Doors)","CurseForge":"macaws-doors","Modrinth":"macaws-doors"},{"Id":2575,"Name":"","CurseForge":"blueprint","Modrinth":"blueprint"},{"Id":2576,"Name":"","CurseForge":"geyser-mod","Modrinth":""},{"Id":2577,"Name":"更多宠物 (Not Enough Pets)","CurseForge":"not-enough-pets","Modrinth":"not-enough-pets"},{"Id":2578,"Name":"","CurseForge":"potionextension","Modrinth":""},{"Id":2579,"Name":"更好的火把放置 (Torch Slabs Mod)","CurseForge":"torchslabs-mod","Modrinth":""},{"Id":2580,"Name":"","CurseForge":"routerrebornlib","Modrinth":""},{"Id":2581,"Name":"","CurseForge":"the-magic-doorknob","Modrinth":"the-magic-doorknob"},{"Id":2582,"Name":"","CurseForge":"ultimate-skyblock-generator","Modrinth":""},{"Id":2583,"Name":"肥料 (Everyone Poops - Dung Fertilizer)","CurseForge":"everyone-poops-dung-fertilizer","Modrinth":""},{"Id":2584,"Name":"","CurseForge":"ascension-of-the-divine","Modrinth":""},{"Id":2585,"Name":"","CurseForge":"nebulaecraft","Modrinth":""},{"Id":2586,"Name":"背包显示 (Inventory Overlay)","CurseForge":"inventory-overlay","Modrinth":""},{"Id":2587,"Name":"","CurseForge":"ic2magma","Modrinth":""},{"Id":2588,"Name":"铱矿产 (Iridium Source)","CurseForge":"iridium-source","Modrinth":""},{"Id":2589,"Name":"青蛙化工:重生 (FrogCraft: Rebirth)","CurseForge":"frogcraft-rebirth","Modrinth":""},{"Id":2590,"Name":"科亚烯 (Coaxium Mod)","CurseForge":"coaxium-mod-1-12-2-ic2-addon","Modrinth":""},{"Id":2591,"Name":"能源控制 (Energy Control)","CurseForge":"energy-control","Modrinth":""},{"Id":2592,"Name":"","CurseForge":"gulliver-reborn","Modrinth":""},{"Id":2594,"Name":"","CurseForge":"rationcraft","Modrinth":"rationcraft"},{"Id":2595,"Name":"","CurseForge":"default-options","Modrinth":"default-options"},{"Id":2595,"Name":"","CurseForge":"default-options-fabric","Modrinth":""},{"Id":2596,"Name":"末影邮递 (Ender Mail)","CurseForge":"ender-mail","Modrinth":"ender-mail"},{"Id":2597,"Name":"更多叠加层 (More Overlays)","CurseForge":"more-overlays","Modrinth":""},{"Id":2598,"Name":"3D枪械 (New Stefinus Guns)","CurseForge":"stefinus-3d-guns-mod","Modrinth":""},{"Id":2598,"Name":"3D枪械 (New Stefinus Guns)","CurseForge":"stefinus-3d-guns-mod-s3dgm","Modrinth":""},{"Id":2600,"Name":"","CurseForge":"moderncraft-core","Modrinth":""},{"Id":2601,"Name":"言灵 (lang_magic)","CurseForge":"lang_magic","Modrinth":""},{"Id":2602,"Name":"不昂贵 (NoExpensive)","CurseForge":"noexpensive","Modrinth":"noexpensive"},{"Id":2603,"Name":"粗暴的怪物重置版 (Rough Mobs Revamped)","CurseForge":"rough-mobs-revamped","Modrinth":""},{"Id":2604,"Name":"充满光明 (Fullbright)","CurseForge":"fullbright","Modrinth":""},{"Id":2605,"Name":"背包! (Backpacks!)","CurseForge":"backpacks","Modrinth":""},{"Id":2607,"Name":"生命附魔 (Living Enchantment)","CurseForge":"living-enchantment","Modrinth":""},{"Id":2608,"Name":"克拉的花园 (Karat Garden)","CurseForge":"karat-garden","Modrinth":""},{"Id":2610,"Name":"","CurseForge":"bard-mania","Modrinth":""},{"Id":2611,"Name":"潜影盒提示框 (Shulker Box Tooltip)","CurseForge":"shulkerboxtooltip","Modrinth":"shulkerboxtooltip"},{"Id":2613,"Name":"行尸走肉 (Crafting Dead)","CurseForge":"crafting-dead-official","Modrinth":""},{"Id":2613,"Name":"行尸走肉 (Crafting Dead)","CurseForge":"crafting-dead-legacy","Modrinth":""},{"Id":2614,"Name":"","CurseForge":"lord-craft","Modrinth":""},{"Id":2617,"Name":"","CurseForge":"stupid-things","Modrinth":""},{"Id":2618,"Name":"更多宝石 (More Gems)","CurseForge":"more-gems-fabric","Modrinth":""},{"Id":2619,"Name":"","CurseForge":"minewars","Modrinth":""},{"Id":2620,"Name":"","CurseForge":"gregicadditionscompatibility","Modrinth":""},{"Id":2621,"Name":"组合药水 (Combined Potions)","CurseForge":"combined-potions","Modrinth":""},{"Id":2622,"Name":"","CurseForge":"plusticminusbad","Modrinth":""},{"Id":2623,"Name":"","CurseForge":"baileys-dailies","Modrinth":""},{"Id":2624,"Name":"","CurseForge":"joshuas-christmas-mod","Modrinth":""},{"Id":2625,"Name":"","CurseForge":"enderio-fluxified","Modrinth":"enderio-fluxified"},{"Id":2626,"Name":"","CurseForge":"skizzik","Modrinth":""},{"Id":2629,"Name":"沙袋 (Sandbag)","CurseForge":"sandbag","Modrinth":""},{"Id":2630,"Name":"","CurseForge":"tinkers-arsenal","Modrinth":""},{"Id":2631,"Name":"废品能源炉 (Garbage Energy)","CurseForge":"garbage-energy","Modrinth":""},{"Id":2632,"Name":"","CurseForge":"quirky-generators","Modrinth":""},{"Id":2633,"Name":"超级战利品 (MegaLoot)","CurseForge":"megaloot","Modrinth":""},{"Id":2635,"Name":"疯狂的村民 (Mad Villagers)","CurseForge":"mad-villagers","Modrinth":""},{"Id":2636,"Name":"逻辑工艺 (Logical Craft / Logical Drops)","CurseForge":"logical-drops","Modrinth":""},{"Id":2637,"Name":"","CurseForge":"drone-craft","Modrinth":""},{"Id":2638,"Name":"水源 (Water Source)","CurseForge":"water-source","Modrinth":""},{"Id":2640,"Name":"HungTeen的植物大战僵尸 (HungTeen's Plants vs Zombies Mod)","CurseForge":"hungteens-plants-vs-zombies-mod","Modrinth":"pangteens-plants-vs-zombies"},{"Id":2641,"Name":"潘马斯沙漠工艺 (Pam's DesertCraft)","CurseForge":"pams-desertcraft","Modrinth":""},{"Id":2642,"Name":"潘马斯骨头工艺 (Pam's BoneCraft)","CurseForge":"pams-bonecraft","Modrinth":""},{"Id":2643,"Name":"热力奇点 (Thermal Singularities)","CurseForge":"thermal-singularities","Modrinth":""},{"Id":2644,"Name":"","CurseForge":"minejurassic","Modrinth":""},{"Id":2645,"Name":"泰拉瑞亚世界 (TerrariaCraft 🌳)","CurseForge":"terraria-craft","Modrinth":"terrariacraft"},{"Id":2646,"Name":"鞘翅胸甲 (Colytra)","CurseForge":"colytra","Modrinth":"colytra"},{"Id":2646,"Name":"鞘翅胸甲 (Colytra)","CurseForge":"colytra-fabric","Modrinth":""},{"Id":2647,"Name":"昆虫 (Insects)","CurseForge":"insects","Modrinth":""},{"Id":2648,"Name":"声音重载 (Sound Reloader)","CurseForge":"sound-reloader","Modrinth":""},{"Id":2649,"Name":"工具皮带 (Tool Belt)","CurseForge":"tool-belt","Modrinth":""},{"Id":2650,"Name":"阿根廷的食物 (Argentina Food Mod)","CurseForge":"argentina-food-mod","Modrinth":""},{"Id":2651,"Name":"宠物名字 (Pet Names)","CurseForge":"pet-names","Modrinth":"pet-names"},{"Id":2651,"Name":"宠物名字 (Pet Names)","CurseForge":"pet-names-fabric","Modrinth":""},{"Id":2652,"Name":"","CurseForge":"collective","Modrinth":"collective"},{"Id":2652,"Name":"","CurseForge":"collective-fabric","Modrinth":""},{"Id":2653,"Name":"耐久指示器 (Durability Viewer)","CurseForge":"giselbaers-durability-viewer","Modrinth":"durabilityviewer"},{"Id":2654,"Name":"更多饼干 (More Cookies)","CurseForge":"more-cookies","Modrinth":""},{"Id":2655,"Name":"苹果胡萝卜 (Apple Carrot)","CurseForge":"apple-carrot","Modrinth":""},{"Id":2656,"Name":"","CurseForge":"eat-yo-veg","Modrinth":""},{"Id":2657,"Name":"赏金 (Bountiful)","CurseForge":"bountiful","Modrinth":"bountiful"},{"Id":2657,"Name":"赏金 (Bountiful)","CurseForge":"bountiful-fabric","Modrinth":""},{"Id":2658,"Name":"更好的附魔 (BetterEnchantment)","CurseForge":"betterenchantment","Modrinth":""},{"Id":2659,"Name":"纯净的腐肉 (Purified Flesh Mod)","CurseForge":"purified-flesh-mod","Modrinth":"purified-flesh-mod"},{"Id":2660,"Name":"权力的游戏 (Game of Thrones Mod)","CurseForge":"gotminecraftmod","Modrinth":"gotminecraftmod"},{"Id":2661,"Name":"禁止睡觉 (No Sleep)","CurseForge":"nosleep","Modrinth":""},{"Id":2662,"Name":"矿工的优势 (MinersAdvantage)","CurseForge":"minersadvantage","Modrinth":""},{"Id":2664,"Name":"简单背包 (Simple Backpack)","CurseForge":"simple-backpack-fabric","Modrinth":""},{"Id":2666,"Name":"气体导管 (Gas Conduits)","CurseForge":"gas-conduits","Modrinth":""},{"Id":2667,"Name":"","CurseForge":"handgun-from-terraria","Modrinth":""},{"Id":2668,"Name":"更多唱片 (More discs mod)","CurseForge":"more-discs-mod","Modrinth":""},{"Id":2669,"Name":"","CurseForge":"edible-honeycombs","Modrinth":""},{"Id":2670,"Name":"","CurseForge":"emerald-and-ruby","Modrinth":""},{"Id":2671,"Name":"可合成的命名牌 (Craftable Nametag)","CurseForge":"craftable-nametag","Modrinth":""},{"Id":2672,"Name":"染色花盆 (More Flower Pots / Dyeable Flower Pots)","CurseForge":"dyeable-flower-pots","Modrinth":""},{"Id":2672,"Name":"染色花盆 (More Flower Pots / Dyeable Flower Pots)","CurseForge":"more-flower-pots","Modrinth":""},{"Id":2673,"Name":"涂鸦 (Graffiti)","CurseForge":"graffiti","Modrinth":""},{"Id":2674,"Name":"","CurseForge":"bunny-boots","Modrinth":""},{"Id":2675,"Name":"","CurseForge":"backported-flora","Modrinth":""},{"Id":2676,"Name":"","CurseForge":"eat-eggs","Modrinth":""},{"Id":2677,"Name":"羊毛压力板 (Wool Plates)","CurseForge":"wool-plates","Modrinth":""},{"Id":2678,"Name":"更多浆果用途 (More Berry Uses)","CurseForge":"more-berry-uses","Modrinth":""},{"Id":2679,"Name":"元素之刃 (Elemental Blades / Elementium)","CurseForge":"elemental-blades","Modrinth":""},{"Id":2680,"Name":"飞越地球 (Beyond Earth/Space-BossTools)","CurseForge":"beyond-earth","Modrinth":"beyond-earth"},{"Id":2680,"Name":"飞越地球 (Beyond Earth/Space-BossTools)","CurseForge":"beyond-earth-fabric","Modrinth":""},{"Id":2681,"Name":"简单飞机 (Simple Planes)","CurseForge":"simple-planes","Modrinth":"simple-planes"},{"Id":2681,"Name":"简单飞机 (Simple Planes)","CurseForge":"simple-planes-fabric","Modrinth":""},{"Id":2682,"Name":"掉落物信息显示 (World Tooltips)","CurseForge":"world-tooltips","Modrinth":""},{"Id":2683,"Name":"额外巫术知识 (Extra Arcane Knowledge)","CurseForge":"extra-arcane-knowledge-electroblobs-wizardry","Modrinth":""},{"Id":2684,"Name":"细菌重置版 (Bacterium)","CurseForge":"bacteriums","Modrinth":"bacteriums"},{"Id":2684,"Name":"细菌重置版 (Bacterium)","CurseForge":"bacterium","Modrinth":""},{"Id":2685,"Name":"掠夺者 (Pillagers)","CurseForge":"pillagers","Modrinth":""},{"Id":2686,"Name":"警卫村民 (Guard Villagers)","CurseForge":"guard-villagers","Modrinth":"guard-villagers"},{"Id":2687,"Name":"简单机器 (Simple Machinery)","CurseForge":"simple-machinery","Modrinth":""},{"Id":2689,"Name":"桥梁制造者 (Bridge Maker)","CurseForge":"bridge-maker","Modrinth":"bridge-maker"},{"Id":2690,"Name":"","CurseForge":"craft-your-saddle","Modrinth":""},{"Id":2691,"Name":"","CurseForge":"no-pvp-cooldown","Modrinth":""},{"Id":2692,"Name":"损坏防护 (Never Break)","CurseForge":"never-break","Modrinth":""},{"Id":2693,"Name":"","CurseForge":"simple-villager-spawn-egg","Modrinth":""},{"Id":2694,"Name":"","CurseForge":"banana-decor-forge","Modrinth":""},{"Id":2695,"Name":"沉浸金属 (Immersive Metal)","CurseForge":"immersive-metal","Modrinth":""},{"Id":2696,"Name":"","CurseForge":"coffee-time","Modrinth":""},{"Id":2697,"Name":"饮料模组 (Drink Mod)","CurseForge":"drink-mod","Modrinth":""},{"Id":2698,"Name":"更多僵尸村民 (More Zombie Villagers)","CurseForge":"more-zombie-villagers","Modrinth":"more-zombie-villagers"},{"Id":2698,"Name":"更多僵尸村民 (More Zombie Villagers)","CurseForge":"more-zombie-villagers-fabric","Modrinth":""},{"Id":2699,"Name":"自然生成闪电苦力怕 (Naturally Charged Creepers)","CurseForge":"naturally-charged-creepers","Modrinth":"naturally-charged-creepers"},{"Id":2699,"Name":"自然生成闪电苦力怕 (Naturally Charged Creepers)","CurseForge":"naturally-charged-creepers-fabric","Modrinth":""},{"Id":2700,"Name":"皮肤移植 (SkinPort)","CurseForge":"skinport","Modrinth":""},{"Id":2701,"Name":"动态环境:音效控制 (Dynamic Surroundings: SoundControl)","CurseForge":"dynamic-surroundings-soundcontrol","Modrinth":""},{"Id":2703,"Name":"","CurseForge":"chop-down-updated","Modrinth":""},{"Id":2704,"Name":"宙斯盾作战系统-战舰模组 (Aegis Weapon System -Warship's Mod)","CurseForge":"aegis-weapon-system-mod","Modrinth":""},{"Id":2705,"Name":"高级钩爪发射器 (Advanced Hook Launchers)","CurseForge":"advanced-hook-launchers","Modrinth":""},{"Id":2706,"Name":"","CurseForge":"vampire-magic","Modrinth":""},{"Id":2707,"Name":"江湖行 (fantasyunderworld)","CurseForge":"fantasyunderworld","Modrinth":""},{"Id":2708,"Name":"","CurseForge":"stacc","Modrinth":""},{"Id":2709,"Name":"五彩斑斓工艺 (a riot of colour craft)","CurseForge":"a-riot-of-colour-craft","Modrinth":""},{"Id":2710,"Name":"排气施肥 (Crop Dusting)","CurseForge":"crop-dusting","Modrinth":""},{"Id":2711,"Name":"动态环境:生物效果 (Dynamic Surroundings: MobEffects)","CurseForge":"dynamic-surroundings-mobeffects","Modrinth":""},{"Id":2712,"Name":"动态环境:周边环境 (Dynamic Surroundings: Environs)","CurseForge":"dynamic-surroundings-environs","Modrinth":""},{"Id":2713,"Name":"配方阶段 (Recipe Stages)","CurseForge":"recipe-stages","Modrinth":"recipe-stages"},{"Id":2714,"Name":"自由之翼 (Wings of Freedom)","CurseForge":"attack-on-minecraft","Modrinth":"wingsoffreedom"},{"Id":2715,"Name":"洞穴:矿工 (Cavern: Miner)","CurseForge":"cavern-miner","Modrinth":""},{"Id":2716,"Name":"原版工具+ (Vanilla Plus Tools)","CurseForge":"vanilla-tools","Modrinth":""},{"Id":2717,"Name":"","CurseForge":"server-tab-info","Modrinth":"server-tab-info"},{"Id":2718,"Name":"","CurseForge":"letsencryptcraft","Modrinth":""},{"Id":2719,"Name":"","CurseForge":"creeperhost-minetogether","Modrinth":"creeperhost-minetogether"},{"Id":2721,"Name":"窗口化全屏 (Fullscreen Windowed (Borderless) for Minecraft)","CurseForge":"fullscreen-windowed-borderless-for-minecraft","Modrinth":""},{"Id":2722,"Name":"不诅咒 (NoCurse)","CurseForge":"nocurse","Modrinth":""},{"Id":2723,"Name":"","CurseForge":"pretty-beaches","Modrinth":"pretty-beaches"},{"Id":2723,"Name":"","CurseForge":"pretty-beaches-fabric","Modrinth":""},{"Id":2724,"Name":"轻功 (qing_gong)","CurseForge":"qing_gong","Modrinth":""},{"Id":2725,"Name":"腐败 (Remnants)","CurseForge":"remnants","Modrinth":""},{"Id":2727,"Name":"","CurseForge":"pane-in-the-glass","Modrinth":""},{"Id":2728,"Name":"能源炉动画 (Dynamic Dynamos)","CurseForge":"dynamic-dynamos","Modrinth":""},{"Id":2729,"Name":"","CurseForge":"trophy-slots","Modrinth":""},{"Id":2731,"Name":"补种农作物 (Replanting Crops)","CurseForge":"replanting-crops","Modrinth":"replanting-crops"},{"Id":2731,"Name":"补种农作物 (Replanting Crops)","CurseForge":"replanting-crops-fabric","Modrinth":""},{"Id":2732,"Name":"复杂作物 (Complex Crops)","CurseForge":"complex-crops","Modrinth":""},{"Id":2733,"Name":"截图到剪贴板 (Screenshot to Clipboard)","CurseForge":"screenshot-to-clipboard","Modrinth":"screenshot-to-clipboard"},{"Id":2733,"Name":"截图到剪贴板 (Screenshot to Clipboard)","CurseForge":"screenshot-to-clipboard-fabric","Modrinth":""},{"Id":2734,"Name":"隐藏盔甲 (Hide Armor)","CurseForge":"hide-armor","Modrinth":""},{"Id":2735,"Name":"邪猎者 (HunterIllager)","CurseForge":"hunterillager","Modrinth":"hunters-return"},{"Id":2737,"Name":"便携式天灾 (Pocket Apocalypse Mod)","CurseForge":"pocket-apocalypse-mod","Modrinth":""},{"Id":2738,"Name":"指南针 (compass)","CurseForge":"compass","Modrinth":""},{"Id":2739,"Name":"匠魂进化 (Tinkers' Evolution)","CurseForge":"tinkers-evolution","Modrinth":"tinkers-evolution"},{"Id":2740,"Name":"匠魂数据导出器 (Tinkers Exporter)","CurseForge":"tinkers-exporter","Modrinth":""},{"Id":2741,"Name":"更多末影人 (The Farlanders)","CurseForge":"farlanders","Modrinth":"the-farlanders"},{"Id":2742,"Name":"瓶瓶罐罐 (Vials)","CurseForge":"vials","Modrinth":""},{"Id":2743,"Name":"高级光剑 (Advanced Lightsabers)","CurseForge":"advanced-lightsabers","Modrinth":""},{"Id":2744,"Name":"下落击杀 (fall_attack)","CurseForge":"fall_attack","Modrinth":""},{"Id":2745,"Name":"泳装 (swimsuit)","CurseForge":"swimsuit","Modrinth":""},{"Id":2746,"Name":"","CurseForge":"more-overlays-updated","Modrinth":"more-overlays-updated"},{"Id":2747,"Name":"","CurseForge":"dothack-hack-weapons","Modrinth":""},{"Id":2748,"Name":"沉浸能源 (Immersive Energy)","CurseForge":"immersive-energy","Modrinth":""},{"Id":2749,"Name":"绯红之月 (Crimson Moon)","CurseForge":"crimson-moon","Modrinth":""},{"Id":2750,"Name":"","CurseForge":"mobs-attempt-parkour","Modrinth":"mobs-attempt-parkour"},{"Id":2751,"Name":"化身 (Identity)","CurseForge":"identity","Modrinth":""},{"Id":2751,"Name":"化身 (Identity)","CurseForge":"identity-on-forge","Modrinth":""},{"Id":2752,"Name":"工业革命 (Industrial Revolution)","CurseForge":"industrial-revolution","Modrinth":"industrial-revolution"},{"Id":2753,"Name":"炼金艺术 (Art of Alchemy)","CurseForge":"art-of-alchemy","Modrinth":""},{"Id":2754,"Name":"自定义局域网联机 (Lan Server Properties)","CurseForge":"lan-server-properties","Modrinth":"lan-server-properties"},{"Id":2756,"Name":"沉浸智能 (Immersive Intelligence)","CurseForge":"immersive-intelligence","Modrinth":"immersive-intelligence"},{"Id":2757,"Name":"","CurseForge":"analyzeio","Modrinth":""},{"Id":2758,"Name":"羊毛按钮 (Wool Buttons)","CurseForge":"wool-buttons","Modrinth":"wool-buttons"},{"Id":2759,"Name":"统合匠艺 (Total Tinkers)","CurseForge":"total-tinkers","Modrinth":""},{"Id":2761,"Name":"神秘法杖 (Thaumic Wands)","CurseForge":"thaumic-wands","Modrinth":""},{"Id":2762,"Name":"日式料理 (Japanese Food Mod)","CurseForge":"japanese-food-mod","Modrinth":""},{"Id":2763,"Name":"潘多拉生物 (Pandoras Creatures)","CurseForge":"pandoras-creatures","Modrinth":""},{"Id":2764,"Name":"名称标签状态栏 (Status Tags)","CurseForge":"status-tags","Modrinth":""},{"Id":2765,"Name":"维度配置 (Just Enough Dimensions)","CurseForge":"just-enough-dimensions","Modrinth":"just-enough-dimensions"},{"Id":2766,"Name":"延时摄影 (Multishot)","CurseForge":"multishot","Modrinth":"multishot"},{"Id":2767,"Name":"匠魂调整 (Tweakers Construct)","CurseForge":"tweakers-construct","Modrinth":""},{"Id":2768,"Name":"","CurseForge":"valhelsia-structures","Modrinth":""},{"Id":2771,"Name":"","CurseForge":"just-enough-reactors","Modrinth":""},{"Id":2772,"Name":"虚无世界信息包 (AoA InfoBundle)","CurseForge":"aoa-infobundle","Modrinth":""},{"Id":2773,"Name":"魔法艺术3:巧工魔艺 (Mana and Artifice) - 官方主要渠道","CurseForge":"mana-and-artifice","Modrinth":""},{"Id":2773,"Name":"魔法艺术3:巧工魔艺 (Mana and Artifice)","CurseForge":"","Modrinth":"mana-and-artifice"},{"Id":2776,"Name":"半砖小帮手 (Slab Helper)","CurseForge":"slab-helper","Modrinth":""},{"Id":2777,"Name":"禁止跳跃 (No Jumping Allowed)","CurseForge":"no-jumping-allowed","Modrinth":""},{"Id":2778,"Name":"天鹅船 (Swan Boats)","CurseForge":"swan-boats","Modrinth":""},{"Id":2779,"Name":"原始寒冬 (Primal Winter)","CurseForge":"primal-winter","Modrinth":"primal-winter"},{"Id":2780,"Name":"更好的燃烧机制 (Better Burning)","CurseForge":"better-burning","Modrinth":"better-burning"},{"Id":2781,"Name":"紧凑型虚空采矿机 (Compact Void Miners)","CurseForge":"compact-void-miners","Modrinth":""},{"Id":2782,"Name":"","CurseForge":"probe","Modrinth":""},{"Id":2783,"Name":"“通量”机械 (Mekanism Fluxified)","CurseForge":"mekanism-fluxified","Modrinth":""},{"Id":2784,"Name":"平滑自动上坡 (StepUp)","CurseForge":"stepup","Modrinth":""},{"Id":2785,"Name":"钠 (Sodium)","CurseForge":"sodium","Modrinth":"sodium"},{"Id":2787,"Name":"","CurseForge":"netherlicious","Modrinth":""},{"Id":2788,"Name":"YUNG 的矿井优化 (YUNG's Better Mineshafts)","CurseForge":"yungs-better-mineshafts-forge","Modrinth":"yungs-better-mineshafts"},{"Id":2788,"Name":"YUNG 的矿井优化 (YUNG's Better Mineshafts)","CurseForge":"yungs-better-mineshafts-fabric","Modrinth":""},{"Id":2788,"Name":"YUNG 的矿井优化 (YUNG's Better Mineshafts)","CurseForge":"yungs-better-mineshafts-neoforge","Modrinth":""},{"Id":2789,"Name":"可怕的箱子/可怖箱子 (Terrible Chest)","CurseForge":"terrible-chest","Modrinth":""},{"Id":2790,"Name":"斯巴达之盾 (Spartan Shields)","CurseForge":"spartan-shields","Modrinth":"spartan-shields"},{"Id":2791,"Name":"寂静装备 (Silent Gear)","CurseForge":"silent-gear","Modrinth":"silent-gear"},{"Id":2793,"Name":"匠魂冶炼炉加速器 (Simple Smeltery Accelerator)","CurseForge":"simple-smeltery-accelerator","Modrinth":""},{"Id":2794,"Name":"","CurseForge":"portality","Modrinth":""},{"Id":2795,"Name":"伤害吸收天赋 (Natural Absorption)","CurseForge":"natural-absorption","Modrinth":""},{"Id":2796,"Name":"独特的附魔 (Unique Enchantments)","CurseForge":"unique-enchantments","Modrinth":""},{"Id":2797,"Name":"墓碑:复生 (Tombstone: Revived)","CurseForge":"tombstone-revived","Modrinth":""},{"Id":2798,"Name":"旅行者背包集成 (Traveler's Backpack Integrations)","CurseForge":"travelers-backpack-integrations","Modrinth":""},{"Id":2799,"Name":"Baby生物 (Baby Mobs)","CurseForge":"Baby-Mobs","Modrinth":""},{"Id":2800,"Name":"压缩方块 (Compressed Block)","CurseForge":"compressedblock","Modrinth":""},{"Id":2801,"Name":"狂野自然 (Wild Nature)","CurseForge":"wildnature","Modrinth":""},{"Id":2802,"Name":"","CurseForge":"novam-terram","Modrinth":""},{"Id":2803,"Name":"群峦作品 (Terra Firma Things)","CurseForge":"terrafirmathings","Modrinth":""},{"Id":2805,"Name":"坚定意志 (SimpleDifficulty)","CurseForge":"simpledifficulty","Modrinth":""},{"Id":2806,"Name":"","CurseForge":"minema","Modrinth":""},{"Id":2807,"Name":"群峦工业非官方版 (TFCTech Unofficial)","CurseForge":"tfctech-unofficial","Modrinth":""},{"Id":2808,"Name":"等价交换 (Equivalent Exchange)","CurseForge":"","Modrinth":"ee1"},{"Id":2809,"Name":"边拿边走 (InvMove)","CurseForge":"invmove","Modrinth":"invmove"},{"Id":2809,"Name":"边拿边走 (InvMove)","CurseForge":"invmove-fabric","Modrinth":""},{"Id":2809,"Name":"边拿边走 (InvMove)","CurseForge":"invmove-forge","Modrinth":""},{"Id":2810,"Name":"自动钓鱼Forge版 (AutoFish for (Neo)Forge)","CurseForge":"autofish-for-forge","Modrinth":""},{"Id":2811,"Name":"工业升级 (Industrial Upgrade)","CurseForge":"industrial-upgrade","Modrinth":"industrialupgrade"},{"Id":2812,"Name":"","CurseForge":"rpgstats","Modrinth":"rpgstats"},{"Id":2813,"Name":"数据包配方助手 (Datapack Recipe Maker)","CurseForge":"datapackrecipemaker","Modrinth":""},{"Id":2814,"Name":"","CurseForge":"never-needed-or-wanted","Modrinth":""},{"Id":2815,"Name":"","CurseForge":"ama-damage-indicator","Modrinth":""},{"Id":2817,"Name":"阵法 (Magic Circle)","CurseForge":"magic-circle","Modrinth":""},{"Id":2818,"Name":"","CurseForge":"crash-utilities","Modrinth":"crash-utilities"},{"Id":2819,"Name":"","CurseForge":"eldritch-mobs","Modrinth":"eldritch-mobs"},{"Id":2820,"Name":"农夫乐事 (Farmer's Delight)","CurseForge":"farmers-delight","Modrinth":"farmers-delight"},{"Id":2820,"Name":"农夫乐事 (Farmer's Delight)","CurseForge":"farmers-delight-fabric","Modrinth":"farmers-delight-fabric"},{"Id":2821,"Name":"奇异饰品 (Artifacts)","CurseForge":"artifacts","Modrinth":"artifacts"},{"Id":2821,"Name":"奇异饰品 (Artifacts)","CurseForge":"artifacts-fabric","Modrinth":""},{"Id":2823,"Name":"动态的树:群峦传说附属 (Dynamic Trees TFC)","CurseForge":"dynamictreestfc","Modrinth":"dynamictreestfc"},{"Id":2825,"Name":"动态的树:暮色森林附属 (Dynamic Trees-The Twilight Forest)","CurseForge":"dynamic-trees-the-twilight-forest","Modrinth":""},{"Id":2826,"Name":"全局数据包 (Global Packs/Global Data & Resourcepacks)","CurseForge":"drp-global-datapack","Modrinth":"globalpacks"},{"Id":2827,"Name":"","CurseForge":"mob-farm-nerfer","Modrinth":""},{"Id":2828,"Name":"","CurseForge":"blood-in-the-water","Modrinth":""},{"Id":2829,"Name":"","CurseForge":"bio-technik","Modrinth":""},{"Id":2832,"Name":"天体矿工 (Astromine - Machines n' Space!)","CurseForge":"astromine-fabric","Modrinth":""},{"Id":2833,"Name":"神秘乡村 (Rustic Thaumaturgy)","CurseForge":"rustic-thaumaturgy","Modrinth":""},{"Id":2835,"Name":"铊 (Thallium)","CurseForge":"thallium","Modrinth":""},{"Id":2836,"Name":"","CurseForge":"haema","Modrinth":"haema"},{"Id":2837,"Name":"","CurseForge":"evil-ores","Modrinth":""},{"Id":2838,"Name":"炖菜解谜/炖菜效果显示 (Unsuspicious Stew)","CurseForge":"unsuspicious-stew","Modrinth":"unsuspicious-stew"},{"Id":2839,"Name":"","CurseForge":"tfc-seasonal","Modrinth":""},{"Id":2840,"Name":"输入法冲突修复 (IMBlockerFabric)","CurseForge":"imblockerfabric","Modrinth":"imblocker"},{"Id":2841,"Name":"","CurseForge":"saomclib","Modrinth":""},{"Id":2842,"Name":"生存工具 (Survival Utilities)","CurseForge":"survival-utilities","Modrinth":""},{"Id":2843,"Name":"拔刀剑 (SlashBlade)","CurseForge":"slashblade","Modrinth":""},{"Id":2844,"Name":"传送门方块 (Portal Blocks)","CurseForge":"portal-blocks-2-0","Modrinth":""},{"Id":2845,"Name":"","CurseForge":"slimecraft-add-tools-etc","Modrinth":""},{"Id":2846,"Name":"机械化蒸汽动力 (Mechanized Steam Power)","CurseForge":"mechanized-steam-power","Modrinth":""},{"Id":2847,"Name":"动漫神域 (SwordCraftOnline)","CurseForge":"moreswordonline","Modrinth":""},{"Id":2848,"Name":"照相机 (Camera Mod)","CurseForge":"camera-mod","Modrinth":"camera-mod"},{"Id":2849,"Name":"生命汲取 (Heart Drops)","CurseForge":"heartdrops","Modrinth":""},{"Id":2850,"Name":"","CurseForge":"observerlib","Modrinth":""},{"Id":2851,"Name":"","CurseForge":"zen-summoning","Modrinth":""},{"Id":2852,"Name":"野营物品 (Campanion)","CurseForge":"campanion-forge","Modrinth":"campanion"},{"Id":2852,"Name":"野营物品 - Farbic (Campanion)","CurseForge":"campanion","Modrinth":""},{"Id":2853,"Name":"狼铠 (Wolves With Armor)","CurseForge":"wolves-with-armor","Modrinth":""},{"Id":2853,"Name":"狼铠 (Wolves With Armor)","CurseForge":"wolves-with-armor-forge","Modrinth":""},{"Id":2854,"Name":"万物皆可获得经验 (Get exp for everything)","CurseForge":"get-exp-for-everything","Modrinth":""},{"Id":2855,"Name":"JEI 附魔信息 (JEI Enchantment Info)","CurseForge":"jei-enchantment-info","Modrinth":""},{"Id":2857,"Name":"红石计划:制作 (Project Red - Fabrication)","CurseForge":"project-red-fabrication","Modrinth":"project-red-fabrication"},{"Id":2858,"Name":"红石计划:集成 (Project Red - Integration)","CurseForge":"project-red-integration","Modrinth":"project-red-integration"},{"Id":2860,"Name":"红石计划:探索 (Project Red - World)","CurseForge":"project-red-world","Modrinth":""},{"Id":2860,"Name":"红石计划:探索 (Project Red - Exploration)","CurseForge":"project-red-exploration","Modrinth":"project-red-exploration"},{"Id":2861,"Name":"红石计划:兼容性 (Project Red - Compat)","CurseForge":"project-red-compat","Modrinth":""},{"Id":2862,"Name":"Canvas 渲染器 (Canvas Renderer)","CurseForge":"canvas-renderer","Modrinth":"canvas"},{"Id":2864,"Name":"冷饮 (CoolFood)","CurseForge":"coolfood","Modrinth":""},{"Id":2865,"Name":"无限村民交易 (InfiniteVillagerTrading)","CurseForge":"infinitevillagertrading","Modrinth":"infinitevillagertrading"},{"Id":2866,"Name":"无限交易 (Infinite Trading)","CurseForge":"infinite-trading","Modrinth":"infinite-trading"},{"Id":2866,"Name":"无限交易 (Infinite Trading)","CurseForge":"infinite-trading-fabric","Modrinth":""},{"Id":2867,"Name":"自定义加载画面 (Custom Loading Screen)","CurseForge":"better-loading-screen","Modrinth":"custom-loading-screen"},{"Id":2868,"Name":"灯具拓展 (Extended Lights)","CurseForge":"extended-lights-mod","Modrinth":""},{"Id":2869,"Name":"更多剑:传承 (More Swords Legacy)","CurseForge":"more-swords-legacy","Modrinth":"more-swords-legacy"},{"Id":2870,"Name":"深暗之园 (The Undergarden)","CurseForge":"the-undergarden","Modrinth":"the-undergarden"},{"Id":2871,"Name":"诱惑 (Allure)","CurseForge":"mc-modsure","Modrinth":""},{"Id":2873,"Name":"Gliby的语音聊天重置版 (Gliby's Voice Chat Reloaded)","CurseForge":"glibys-voice-chat-reloaded","Modrinth":""},{"Id":2874,"Name":"高级末影之眼 (Greater Eye of Ender)","CurseForge":"greater-eye-of-ender-fabric","Modrinth":""},{"Id":2874,"Name":"高级末影之眼 (Greater Eye of Ender)","CurseForge":"greater-eye-of-ender-forge","Modrinth":""},{"Id":2875,"Name":"红石计划:机械 (Project Red - Mechanical)","CurseForge":"project-red-mechanical","Modrinth":""},{"Id":2875,"Name":"红石计划:扩展 / 红石计划:机械 (Project Red - Expansion / Project Red - Mechanical)","CurseForge":"project-red-expansion","Modrinth":"project-red-expansion"},{"Id":2876,"Name":"霓虹灯艺 (Neon Craft Mod)","CurseForge":"neon-craft-mod","Modrinth":""},{"Id":2877,"Name":"","CurseForge":"arrows-ignite-tnt","Modrinth":""},{"Id":2878,"Name":"末影合金 (Enderite Mod)","CurseForge":"enderite-mod-for-forge","Modrinth":"enderite-mod"},{"Id":2878,"Name":"末影合金 (Enderite Mod)","CurseForge":"enderite-mod-for-fabric","Modrinth":""},{"Id":2879,"Name":"动态的树:工业2附属 (Dynamic Trees - Industrial Craft 2)","CurseForge":"dynamic-trees-industrial-craft-2","Modrinth":""},{"Id":2880,"Name":"动态的树:匠魂附属 (Dynamic Trees - Tinker's Construct)","CurseForge":"dynamic-trees-tinkers-construct","Modrinth":""},{"Id":2881,"Name":"无中生有:传承 (Ex Nihilo: Sequentia)","CurseForge":"ex-nihilo-sequentia","Modrinth":"exnihilosequentia"},{"Id":2882,"Name":"汤姆的简易存储 (Tom's Simple Storage Mod)","CurseForge":"toms-storage","Modrinth":"toms-storage"},{"Id":2882,"Name":"汤姆的简易存储 (Tom's Simple Storage Mod)","CurseForge":"toms-storage-fabric","Modrinth":""},{"Id":2883,"Name":"更真实的钓鱼 (Fishing Real)","CurseForge":"fishing-real","Modrinth":"fishing-real"},{"Id":2884,"Name":"","CurseForge":"maessentials","Modrinth":""},{"Id":2885,"Name":"","CurseForge":"lingering-loot","Modrinth":""},{"Id":2886,"Name":"下界合金增强 (Upgraded Netherite)","CurseForge":"ugraded-netherite","Modrinth":"upgraded-netherite"},{"Id":2888,"Name":"一键背包整理 (Inventory Profiles)","CurseForge":"inventory-profiles","Modrinth":""},{"Id":2889,"Name":"","CurseForge":"slimevoid-library","Modrinth":""},{"Id":2890,"Name":"","CurseForge":"kotlin-for-forge","Modrinth":"kotlin-for-forge"},{"Id":2891,"Name":"","CurseForge":"fabric-zero","Modrinth":""},{"Id":2892,"Name":"旷野之塔 (Towers Of The Wild)","CurseForge":"towers-of-the-wild","Modrinth":""},{"Id":2893,"Name":"香肠核心 (SausageCore)","CurseForge":"sausagecore","Modrinth":""},{"Id":2894,"Name":"暗影之地 (Shadowlands)","CurseForge":"shadowlands","Modrinth":"shadowlands"},{"Id":2895,"Name":"多态合成 (Polymorph)","CurseForge":"polymorph","Modrinth":"polymorph"},{"Id":2895,"Name":"多态合成 (Polymorph)","CurseForge":"polymorph-fabric","Modrinth":""},{"Id":2896,"Name":"","CurseForge":"scalable-cats-force","Modrinth":"scalable-cats-force"},{"Id":2897,"Name":"","CurseForge":"otyacraft-engine","Modrinth":"otyacraft-engine"},{"Id":2898,"Name":"","CurseForge":"omega-craft-mod","Modrinth":""},{"Id":2899,"Name":"自定义局域网端口 (Custom LAN Ports)","CurseForge":"custom-ports","Modrinth":""},{"Id":2900,"Name":"装饰方块 (Decorative Blocks)","CurseForge":"decorative-blocks","Modrinth":"decorative-blocks"},{"Id":2901,"Name":"","CurseForge":"music-layer","Modrinth":""},{"Id":2902,"Name":"彩色照明 (Colored Lux)","CurseForge":"colored-lux","Modrinth":""},{"Id":2903,"Name":"","CurseForge":"corsair-mccue","Modrinth":"corsair-mccue"},{"Id":2904,"Name":"右键文本清除 (Right Click Clear)","CurseForge":"right-click-clear","Modrinth":""},{"Id":2905,"Name":"","CurseForge":"wtfs-expedition-cavebiomes-ores-trees-and-tweaks","Modrinth":""},{"Id":2906,"Name":"","CurseForge":"guide-api-village-and-pillage","Modrinth":"guide-api"},{"Id":2907,"Name":"可拾取尸体 (DrCyano's Lootable Bodies)","CurseForge":"drcyanos-lootable-bodies","Modrinth":""},{"Id":2908,"Name":"","CurseForge":"simply-cats","Modrinth":"simply-cats"},{"Id":2909,"Name":"潘马斯农场2 - 作物 (Pam's HarvestCraft 2 - Crops)","CurseForge":"pams-harvestcraft-2-crops","Modrinth":"pams-harvestcraft-2-crops"},{"Id":2910,"Name":"基础金属 (Base Metals)","CurseForge":"base-metals","Modrinth":""},{"Id":2912,"Name":"","CurseForge":"mmdlib","Modrinth":""},{"Id":2913,"Name":"屎! (Poop Mod!)","CurseForge":"just-poop-mod","Modrinth":""},{"Id":2914,"Name":"服装 (Costumes)","CurseForge":"costumes","Modrinth":""},{"Id":2915,"Name":"","CurseForge":"eyemod-phone","Modrinth":""},{"Id":2916,"Name":"碧海新生 (Upgrade Aquatic)","CurseForge":"upgrade-aquatic","Modrinth":"upgrade-aquatic"},{"Id":2917,"Name":"","CurseForge":"tfc-ambiental","Modrinth":""},{"Id":2918,"Name":"Macaw 的活板门 / 麦考的活板门 (Macaw's Trapdoors)","CurseForge":"macaws-trapdoors","Modrinth":"macaws-trapdoors"},{"Id":2919,"Name":"","CurseForge":"zenutil","Modrinth":""},{"Id":2921,"Name":"更好的信标效果 (Better Beacon Effect)","CurseForge":"better-beacon-effect","Modrinth":""},{"Id":2922,"Name":"下界合金马铠 (Netherite Horse Armor)","CurseForge":"netherite-horse-armor","Modrinth":"netherite_horse_armor"},{"Id":2923,"Name":"","CurseForge":"tacocraft-fabric","Modrinth":""},{"Id":2924,"Name":"","CurseForge":"lootr","Modrinth":"lootr"},{"Id":2924,"Name":"","CurseForge":"lootr-fabric","Modrinth":""},{"Id":2925,"Name":"","CurseForge":"biolib","Modrinth":"bio-library"},{"Id":2926,"Name":"","CurseForge":"scavenge","Modrinth":"scavenge"},{"Id":2928,"Name":"乾坤戒指 (Heaven Earth Ring)","CurseForge":"heaven-earth-ring","Modrinth":""},{"Id":2930,"Name":"潘马斯农场2 - 食物拓展 (Pam's HarvestCraft 2 - Food Extended)","CurseForge":"pams-harvestcraft-2-food-extended","Modrinth":"pams-harvestcraft-2-food-extended"},{"Id":2932,"Name":"潘马斯农场2 - 果树 (Pam's HarvestCraft 2 - Trees)","CurseForge":"pams-harvestcraft-2-trees","Modrinth":"pams-harvestcraft-2-trees"},{"Id":2933,"Name":"","CurseForge":"better-minecart-rotation-forge","Modrinth":""},{"Id":2933,"Name":"","CurseForge":"minecart-direction-follow","Modrinth":""},{"Id":2934,"Name":"现代金属 (Modern Metals)","CurseForge":"modern-metals","Modrinth":""},{"Id":2935,"Name":"","CurseForge":"blockrenderer","Modrinth":""},{"Id":2935,"Name":"","CurseForge":"block-renderer","Modrinth":""},{"Id":2936,"Name":"","CurseForge":"blockus","Modrinth":"blockus"},{"Id":2937,"Name":"","CurseForge":"conjurers-cookbook","Modrinth":""},{"Id":2938,"Name":"","CurseForge":"color-unchained","Modrinth":""},{"Id":2939,"Name":"移植核心 (APortingCore)","CurseForge":"aportingcore","Modrinth":""},{"Id":2940,"Name":"","CurseForge":"ywlib","Modrinth":""},{"Id":2941,"Name":"烤地瓜 (Sweet Potato Mod)","CurseForge":"sweet-potato","Modrinth":""},{"Id":2942,"Name":"红石灯笼 (Redstone Lantern)","CurseForge":"redstone-lantern","Modrinth":""},{"Id":2943,"Name":"烹饪 (Culinaire)","CurseForge":"culinaire","Modrinth":"culinaire"},{"Id":2944,"Name":"","CurseForge":"furbishcraft","Modrinth":""},{"Id":2947,"Name":"自然音效 (AmbientSounds)","CurseForge":"ambientsounds","Modrinth":"ambientsounds"},{"Id":2948,"Name":"普通枪械2 (Ordinary Firearms 2)","CurseForge":"ordinary-firearms","Modrinth":""},{"Id":2949,"Name":"领地 (MineTerritory)","CurseForge":"territory","Modrinth":""},{"Id":2950,"Name":"更好的延迟显示 (Better Ping Display)","CurseForge":"better-ping-display","Modrinth":"better-ping-display"},{"Id":2950,"Name":"更好的延迟显示 (Better Ping Display)","CurseForge":"better-ping-display-fabric","Modrinth":"better-ping-display-fabric"},{"Id":2951,"Name":"","CurseForge":"turned-the-changed-mod","Modrinth":""},{"Id":2952,"Name":"生存微调 (Survival Tweaks)","CurseForge":"survival-tweaks","Modrinth":""},{"Id":2953,"Name":"西瓜台阶 (Melon Slabs)","CurseForge":"melon-slabs","Modrinth":"melon-slabs"},{"Id":2954,"Name":"Lambd的动态光源 (LambDynamicLights)","CurseForge":"lambdynamiclights","Modrinth":"lambdynamiclights"},{"Id":2955,"Name":"真实火把 (Realistic Torches)","CurseForge":"realistic-torches","Modrinth":"realistic-torches"},{"Id":2957,"Name":"耐久显示器 (Durability Viewer)","CurseForge":"durability-viewer","Modrinth":""},{"Id":2961,"Name":"地面物品高光显示 (Ground Item Highlighting)","CurseForge":"ground-item-highlighting","Modrinth":""},{"Id":2963,"Name":"幸存者 (RealSurvivor)","CurseForge":"real-survivor","Modrinth":"realsurvivor"},{"Id":2964,"Name":"盔甲韧性显示 (Armor Toughness Bar)","CurseForge":"armor-toughness-bar","Modrinth":""},{"Id":2965,"Name":"","CurseForge":"block-meter","Modrinth":""},{"Id":2966,"Name":"","CurseForge":"time-to-live","Modrinth":"timetolive"},{"Id":2967,"Name":"双重快捷栏1.12.2 (Dual Hotbars 1.12.2)","CurseForge":"dual-hotbar-1-12-2","Modrinth":""},{"Id":2968,"Name":"可合成的马铠和鞍 (Craftable Horse Armour & Saddle)","CurseForge":"cha-s","Modrinth":"cha-s"},{"Id":2969,"Name":"双重快捷栏 (Dual Hotbars)","CurseForge":"dual-hotbar","Modrinth":""},{"Id":2970,"Name":"","CurseForge":"travellers-boots","Modrinth":"travellers-boots"},{"Id":2972,"Name":"","CurseForge":"cofh-vanilla-satchels","Modrinth":""},{"Id":2973,"Name":"更多动物 (Better Animals Plus)","CurseForge":"betteranimalsplus","Modrinth":""},{"Id":2974,"Name":"封包合成 (PackagedAuto)","CurseForge":"packagedauto","Modrinth":"packagedauto"},{"Id":2975,"Name":"封包合成拓展 (PackagedExCrafting)","CurseForge":"packagedexcrafting","Modrinth":"packagedexcrafting"},{"Id":2977,"Name":"紧凑存储 (compactstorage)","CurseForge":"compactstorage","Modrinth":"compact-storage"},{"Id":2978,"Name":"实用背包 (Useful Backpacks)","CurseForge":"useful-backpacks","Modrinth":"useful-backpacks"},{"Id":2979,"Name":"征服者 (Conquest Reforged)","CurseForge":"conquest-reforged","Modrinth":"conquest-reforged"},{"Id":2980,"Name":"","CurseForge":"steelseries-gamesense","Modrinth":""},{"Id":2981,"Name":"","CurseForge":"pizzaatimes-timber-mod","Modrinth":""},{"Id":2982,"Name":"","CurseForge":"tellme","Modrinth":"tellme"},{"Id":2983,"Name":"","CurseForge":"minerva-library","Modrinth":""},{"Id":2987,"Name":"编辑告示牌 (Edit Sign)","CurseForge":"edit-sign","Modrinth":"editsign"},{"Id":2988,"Name":"","CurseForge":"logistical-automation","Modrinth":""},{"Id":2989,"Name":"动态视距 (Dynamic View)","CurseForge":"dynamic-view","Modrinth":""},{"Id":2989,"Name":"动态视距 (Dynamic View)","CurseForge":"dynamic-view-fabric","Modrinth":""},{"Id":2991,"Name":"乐器怪物 (Instrumental Mobs)","CurseForge":"instrumental-mobs","Modrinth":"instrumental-mobs"},{"Id":2992,"Name":"","CurseForge":"finder-compass","Modrinth":""},{"Id":2993,"Name":"储物戒 (SpaceRing)","CurseForge":"spacering","Modrinth":""},{"Id":2994,"Name":"","CurseForge":"doot","Modrinth":""},{"Id":2994,"Name":"","CurseForge":"trumpet-skeleton-redooted","Modrinth":""},{"Id":2994,"Name":"","CurseForge":"trumpet-skeleton-fabric","Modrinth":""},{"Id":2996,"Name":"","CurseForge":"emotes","Modrinth":""},{"Id":2997,"Name":"","CurseForge":"oc-sensors","Modrinth":""},{"Id":2998,"Name":"","CurseForge":"fabric-for-fabric","Modrinth":""},{"Id":2999,"Name":"","CurseForge":"storage-tech","Modrinth":""},{"Id":3000,"Name":"神秘外饰 (Thaumic Periphery)","CurseForge":"thaumic-periphery","Modrinth":""},{"Id":3001,"Name":"装饰工艺 (EmbellishCraft)","CurseForge":"embellishcraft","Modrinth":"embellishcraft"},{"Id":3002,"Name":"开放式加载 (Open Loader)","CurseForge":"open-loader","Modrinth":"open-loader"},{"Id":3003,"Name":"深度怪物学习:重制版 (Deep Mob Learning: Refabricated)","CurseForge":"deep-mob-learning-refabricated","Modrinth":"deep-mob-learning-refabricated"},{"Id":3004,"Name":"连锁破坏 (FTB Ultimine)","CurseForge":"ftb-ultimine-forge","Modrinth":""},{"Id":3004,"Name":"连锁破坏 (FTB Ultimine)","CurseForge":"ftb-ultimine-fabric","Modrinth":""},{"Id":3005,"Name":"","CurseForge":"server-translation-api","Modrinth":""},{"Id":3005,"Name":"","CurseForge":"server-translations","Modrinth":""},{"Id":3006,"Name":"","CurseForge":"image2map","Modrinth":"image2map"},{"Id":3007,"Name":"遗体 (Corpse)","CurseForge":"corpse","Modrinth":"corpse"},{"Id":3008,"Name":"矿工戒指 (Ring of the Miner)","CurseForge":"ring-of-the-miner-fabric","Modrinth":""},{"Id":3008,"Name":"矿工戒指 (Ring of the Miner)","CurseForge":"ring-of-the-miner-forge","Modrinth":""},{"Id":3009,"Name":"瞬息气泡工坊 (Instant Bubble Studio)","CurseForge":"instant-bubble-studio","Modrinth":""},{"Id":3015,"Name":"","CurseForge":"kaleido","Modrinth":""},{"Id":3017,"Name":"烹饪锅 (Crock Pot)","CurseForge":"crock-pot","Modrinth":""},{"Id":3026,"Name":"","CurseForge":"together-forever","Modrinth":""},{"Id":3027,"Name":"更多熔炉 (Iron Furnaces)","CurseForge":"iron-furnaces","Modrinth":"iron-furnaces"},{"Id":3027,"Name":"更多熔炉 (Iron Furnaces)","CurseForge":"iron-furnaces-fabric","Modrinth":""},{"Id":3029,"Name":"仁慈的苦力怕 (Lenient Creepers)","CurseForge":"lenient-creepers","Modrinth":"lenient-creepers"},{"Id":3030,"Name":"寻宝记2 (Treasure2!)","CurseForge":"treasure2","Modrinth":""},{"Id":3031,"Name":"自动断线重连 (AutoReconnector-Fabric)","CurseForge":"","Modrinth":"autoreconnector-fabric"},{"Id":3033,"Name":"","CurseForge":"structure-gel-api","Modrinth":"structure-gel-api"},{"Id":3034,"Name":"魔术师 (The Conjurer)","CurseForge":"the-conjurer","Modrinth":"the-conjurer"},{"Id":3035,"Name":"Gany的下界 (Gany's Nether)","CurseForge":"ganys-nether","Modrinth":""},{"Id":3036,"Name":"Gany的末地 (Gany's End)","CurseForge":"ganys-end","Modrinth":""},{"Id":3037,"Name":"史诗战斗 (Epic Fight)","CurseForge":"epic-fight-mod","Modrinth":"epic-fight"},{"Id":3038,"Name":"攻击闪避 (Attack Missed)","CurseForge":"attack-missed","Modrinth":""},{"Id":3039,"Name":"熔岩怪 (Lava Monsters)","CurseForge":"lava-monsters","Modrinth":"lava-monsters"},{"Id":3040,"Name":"","CurseForge":"tumat","Modrinth":""},{"Id":3041,"Name":"谜题箱 (Riddle Chests)","CurseForge":"riddle-chests","Modrinth":""},{"Id":3043,"Name":"图腾增强 (Totem Plus)","CurseForge":"totem-plus","Modrinth":""},{"Id":3044,"Name":"方块计量表 (Block Meter Fabric)","CurseForge":"blockmeterfabric","Modrinth":"blockmeter"},{"Id":3046,"Name":"储液抽屉 (Fluid Drawers)","CurseForge":"fluid-drawers","Modrinth":""},{"Id":3047,"Name":"蠕动意面重置版 (CreepyPastaCraft Reborn)","CurseForge":"creepypastacraft-reborn","Modrinth":""},{"Id":3048,"Name":"物品缩放 (ItemZoom)","CurseForge":"itemzoom","Modrinth":""},{"Id":3049,"Name":"亮度覆盖 (Light Overlay)","CurseForge":"light-overlay","Modrinth":"light-overlay"},{"Id":3050,"Name":"","CurseForge":"smallerfpsincrements","Modrinth":""},{"Id":3051,"Name":"正则表达式过滤器 (Regex Filters)","CurseForge":"regex-filters","Modrinth":""},{"Id":3053,"Name":"流体系统 (FluidSystem)","CurseForge":"fluidsystem","Modrinth":"fluidsystem"},{"Id":3054,"Name":"伐树 (FallingTree)","CurseForge":"falling-tree","Modrinth":"fallingtree"},{"Id":3055,"Name":"物品名称双语同屏 (Untranslated Items)","CurseForge":"untranslated-items","Modrinth":""},{"Id":3056,"Name":"粒子渲染机制优化 (Particle Culling)","CurseForge":"particle-culling","Modrinth":"particle-culling"},{"Id":3057,"Name":"","CurseForge":"aggressive-chickens","Modrinth":""},{"Id":3058,"Name":"实体渲染机制优化 (Entity Culling)","CurseForge":"entity-culling","Modrinth":"entity-culling"},{"Id":3059,"Name":"锻造锤与锤锻台 (HammerAndVil)","CurseForge":"hammerandvil","Modrinth":""},{"Id":3061,"Name":"简易背包 (Simply Backpacks)","CurseForge":"simply-backpacks","Modrinth":""},{"Id":3063,"Name":"更好的放置 (Better Placement)","CurseForge":"better-placement","Modrinth":""},{"Id":3064,"Name":"大资本家 (Fat Cat)","CurseForge":"fat-cat","Modrinth":""},{"Id":3065,"Name":"传送石碑路径点 (Waystones2Waypoints)","CurseForge":"waystones2waypoints","Modrinth":""},{"Id":3066,"Name":"B测往昔 (Beta Days)","CurseForge":"beta-days","Modrinth":"beta-days"},{"Id":3067,"Name":"弹道预览 (Trajectory Preview)","CurseForge":"trajectory-preview","Modrinth":""},{"Id":3067,"Name":"弹道预览 (Trajectory Preview)","CurseForge":"trajectory-preview-fabric","Modrinth":""},{"Id":3068,"Name":"刷怪笼经验控制 (Xp Spawner Control)","CurseForge":"xp-spawner-control","Modrinth":""},{"Id":3069,"Name":"刷怪箱控制与修改 (Mob Spawner Control)","CurseForge":"mob-spawner-control","Modrinth":""},{"Id":3070,"Name":"精致管道 (Refined Pipes)","CurseForge":"refined-pipes","Modrinth":""},{"Id":3071,"Name":"奇点 (Singularities)","CurseForge":"singularities","Modrinth":""},{"Id":3072,"Name":"更好的刷怪笼控制 (Better Spawner Control)","CurseForge":"better-spawner-control","Modrinth":"better-spawner-control"},{"Id":3072,"Name":"更好的刷怪笼控制 (Better Spawner Control)","CurseForge":"better-spawner-control-fabric","Modrinth":""},{"Id":3073,"Name":"哭泣的恶魂 (Crying Ghasts)","CurseForge":"crying-ghasts","Modrinth":"crying-ghasts"},{"Id":3073,"Name":"哭泣的恶魂 (Crying Ghasts)","CurseForge":"crying-ghasts-fabric","Modrinth":""},{"Id":3074,"Name":"动态 FPS (Dynamic FPS)","CurseForge":"dynamic-fps","Modrinth":"dynamic-fps"},{"Id":3075,"Name":"致密矿石 (Compact Ores)","CurseForge":"compact-ores","Modrinth":""},{"Id":3076,"Name":"神秘领域 (Thaumcraft Addition)","CurseForge":"thaumic-additions","Modrinth":"thaumic-additions"},{"Id":3077,"Name":"禁用自定义世界警告 (Disable Custom Worlds Advice)","CurseForge":"fabric-disable-custom-worlds-advice","Modrinth":"dcwa"},{"Id":3078,"Name":"树叶速腐Fabric版 (Leaf Decay)","CurseForge":"leaf-decay","Modrinth":""},{"Id":3079,"Name":"熔炉性能优化 Fabric 版 (Fast Furnace for Fabric)","CurseForge":"fast-furnace-for-fabric","Modrinth":""},{"Id":3080,"Name":"连锁挖掘 (Diggus Maximus)","CurseForge":"diggus-maximus","Modrinth":"diggus-maximus"},{"Id":3081,"Name":"超级战队工艺 (Super Sentai Craft)","CurseForge":"super-sentai-craft","Modrinth":"super-sentai-craft"},{"Id":3082,"Name":"狼吞虎咽 (Wildly Eat)","CurseForge":"wildly-eat","Modrinth":""},{"Id":3083,"Name":"快速爬梯 (Gotta Climb Fast!)","CurseForge":"gotta-climb-fast","Modrinth":""},{"Id":3084,"Name":"我­­ 能 挖 它 吗? (cAn i MiNe thIS bLOCk?)","CurseForge":"can-i-mine-this-block","Modrinth":"can-i-mine-this-block"},{"Id":3085,"Name":"腐烂生物 (Rotten Creatures)","CurseForge":"rotten-creatures","Modrinth":"rottencreatures"},{"Id":3086,"Name":"圣诞彩灯 (Fairy Lights)","CurseForge":"fairy-lights","Modrinth":""},{"Id":3087,"Name":"","CurseForge":"packmode","Modrinth":""},{"Id":3088,"Name":"","CurseForge":"dank-null","Modrinth":""},{"Id":3089,"Name":"","CurseForge":"avaritia-complement","Modrinth":""},{"Id":3090,"Name":"","CurseForge":"better-questing-triggerer","Modrinth":""},{"Id":3091,"Name":"","CurseForge":"Broken-Wings","Modrinth":""},{"Id":3093,"Name":"压缩者 (Compacter)","CurseForge":"compacter","Modrinth":"compacter"},{"Id":3095,"Name":"","CurseForge":"not-enough-potions","Modrinth":""},{"Id":3096,"Name":"镶框压缩抽屉 (Framed Compacting Drawers)","CurseForge":"framed-compacting-drawers","Modrinth":""},{"Id":3097,"Name":"","CurseForge":"discordsuite","Modrinth":""},{"Id":3098,"Name":"","CurseForge":"mikes-mods-library","Modrinth":""},{"Id":3099,"Name":"","CurseForge":"Teslafied","Modrinth":""},{"Id":3100,"Name":"仙灵 (Shurlin)","CurseForge":"shurlin","Modrinth":""},{"Id":3101,"Name":"怪物截肢 (Mob Amputation)","CurseForge":"mob-amputation","Modrinth":""},{"Id":3102,"Name":"","CurseForge":"packguard","Modrinth":""},{"Id":3103,"Name":"","CurseForge":"wtfs-texturegeneratorlib","Modrinth":""},{"Id":3104,"Name":"更多的不死图腾 (More Totems Of Undying)","CurseForge":"more-totems-of-undying","Modrinth":"more-totems-of-undying"},{"Id":3105,"Name":"","CurseForge":"dungeon-crawl","Modrinth":"dungeoncrawl"},{"Id":3106,"Name":"超立方转运器 (Tesslocator)","CurseForge":"tesslocator","Modrinth":""},{"Id":3107,"Name":"爆头击杀 (Iblis Headshots)","CurseForge":"iblis-headshots","Modrinth":""},{"Id":3108,"Name":"","CurseForge":"bee-barker","Modrinth":""},{"Id":3109,"Name":"天空盆栽 (Sky Bonsais)","CurseForge":"sky-bonsais","Modrinth":""},{"Id":3111,"Name":"起源 (Origins (Fabric))","CurseForge":"origins","Modrinth":"origins"},{"Id":3112,"Name":"","CurseForge":"alexiillib","Modrinth":""},{"Id":3113,"Name":"","CurseForge":"feed-a-friend","Modrinth":""},{"Id":3116,"Name":"","CurseForge":"the-legend-of-herobrine","Modrinth":"the-legend-of-herobrine"},{"Id":3117,"Name":"起源扩展 (Extra Origins)","CurseForge":"extra-origins","Modrinth":"extra-origins"},{"Id":3118,"Name":"","CurseForge":"caves-and-cliffs","Modrinth":""},{"Id":3119,"Name":"矿工傀儡 (Miner Golems)","CurseForge":"miner-golems","Modrinth":""},{"Id":3120,"Name":"直播弹幕模组 (BakaDanmaku)","CurseForge":"bakadanmaku","Modrinth":"bakadanmaku"},{"Id":3121,"Name":"网络卡片 (Online Card)","CurseForge":"online-card","Modrinth":""},{"Id":3122,"Name":"连锁砍树 (Felling)","CurseForge":"felling","Modrinth":""},{"Id":3123,"Name":"额外玩家渲染 (Extra Player Renderer)","CurseForge":"extra-player-render","Modrinth":""},{"Id":3124,"Name":"","CurseForge":"fabric-api","Modrinth":"fabric-api"},{"Id":3125,"Name":"多彩灯笼 (ColoredLanterns)","CurseForge":"coloredlanterns","Modrinth":""},{"Id":3126,"Name":"AE2流体合成套件 (AE2 Fluid Crafting)","CurseForge":"ae2-fluid-crafting","Modrinth":""},{"Id":3127,"Name":"能量基本 (Cardinal Energy)","CurseForge":"cardinal-energy","Modrinth":""},{"Id":3128,"Name":"旅行锚 (Travel Anchors)","CurseForge":"travel-anchors","Modrinth":"travel-anchors"},{"Id":3129,"Name":"","CurseForge":"bnbgaminglib","Modrinth":""},{"Id":3130,"Name":"","CurseForge":"triumph","Modrinth":""},{"Id":3131,"Name":"护甲显示上限突破 (Overloaded Armor Bar)","CurseForge":"overloaded-armor-bar","Modrinth":"overloaded-armor-bar"},{"Id":3131,"Name":"护甲显示上限突破 (Overloaded Armor Bar)","CurseForge":"overloaded-armor-bar-fabric","Modrinth":""},{"Id":3132,"Name":"","CurseForge":"toomanydanyores","Modrinth":""},{"Id":3133,"Name":"玻璃管道 (Glass Pipe)","CurseForge":"glass-pipe","Modrinth":""},{"Id":3134,"Name":"起源:职业 (Origins: Classes)","CurseForge":"origins-classes","Modrinth":"origins-classes"},{"Id":3135,"Name":"世界内物品放置 (Plonk)","CurseForge":"plonk","Modrinth":"plonk"},{"Id":3136,"Name":"","CurseForge":"baritone-simply","Modrinth":""},{"Id":3137,"Name":"魔药大师 (Potions Master)","CurseForge":"potionsmaster","Modrinth":""},{"Id":3138,"Name":"匠器主导 (Tinkered Hegemony)","CurseForge":"tinkered-hegemony","Modrinth":"tinkered-hegemony"},{"Id":3139,"Name":"更好的穿刺附魔 (Better Impaling)","CurseForge":"better-impaling","Modrinth":"better-impaling"},{"Id":3140,"Name":"","CurseForge":"caliper","Modrinth":""},{"Id":3141,"Name":"植物机械 (Botanical Machinery)","CurseForge":"botanical-machinery","Modrinth":"botanical-machinery"},{"Id":3142,"Name":"消磁 (Demagnetize)","CurseForge":"demagnetize","Modrinth":""},{"Id":3147,"Name":"余烬奇景 (Cinderscapes)","CurseForge":"cinderscapes","Modrinth":"cinderscapes"},{"Id":3148,"Name":"","CurseForge":"tfc-homestead","Modrinth":""},{"Id":3149,"Name":"群峦与匠魂 (TFC Tinkers)","CurseForge":"tfctinkers","Modrinth":""},{"Id":3150,"Name":"","CurseForge":"thick-font-fix","Modrinth":""},{"Id":3152,"Name":"动态的树:遍历附属 (Dynamic Trees - Traverse)","CurseForge":"dynamic-trees-traverse","Modrinth":""},{"Id":3153,"Name":"","CurseForge":"mcmt-multithreading","Modrinth":"mcmtfabric"},{"Id":3153,"Name":"","CurseForge":"mcmtfabric","Modrinth":""},{"Id":3154,"Name":"","CurseForge":"bwm-core","Modrinth":""},{"Id":3155,"Name":"冰术师 (Ice Ice Baby)","CurseForge":"ice-ice-baby","Modrinth":""},{"Id":3156,"Name":"","CurseForge":"hardlib","Modrinth":""},{"Id":3157,"Name":"物品名称双语显示 (BilingualName)","CurseForge":"bilingualname","Modrinth":""},{"Id":3158,"Name":"氯 (Chlorine)","CurseForge":"chlorine","Modrinth":""},{"Id":3160,"Name":"基岩矿工 (Bedrock Miner)","CurseForge":"bedrock-miner","Modrinth":"bedrock-miner"},{"Id":3161,"Name":"合理的现实主义 (Reasonable Realism)","CurseForge":"reasonable-realism","Modrinth":""},{"Id":3162,"Name":"叶间穿行 🌳 (Passable Foliage 🌳)","CurseForge":"passable-foliage","Modrinth":"passable-foliage"},{"Id":3162,"Name":"叶间穿行 🌳 (Passable Foliage 🌳)","CurseForge":"passable-foliage-fabric","Modrinth":""},{"Id":3163,"Name":"更好的末地 (BetterEnd)","CurseForge":"betterend","Modrinth":"betterend"},{"Id":3164,"Name":"盔甲颜色显示 (Armor Chroma)","CurseForge":"armor-chroma","Modrinth":""},{"Id":3165,"Name":"自定义交互事件 (Interactions)","CurseForge":"interactions","Modrinth":""},{"Id":3166,"Name":"很多钱 (Lods of Emone)","CurseForge":"lods-of-emone","Modrinth":""},{"Id":3167,"Name":"","CurseForge":"fabric-language-scala","Modrinth":""},{"Id":3168,"Name":"流体物理 (Fluid Physics)","CurseForge":"fluid-physics-forge","Modrinth":""},{"Id":3168,"Name":"流体物理 (Fluid Physics)","CurseForge":"fluid-physics","Modrinth":""},{"Id":3169,"Name":"","CurseForge":"zettai-grimoires","Modrinth":""},{"Id":3170,"Name":"全景截图背景 (Runorama)","CurseForge":"runorama","Modrinth":""},{"Id":3171,"Name":"物品阶段 (Item Stages)","CurseForge":"item-stages","Modrinth":"item-stages"},{"Id":3172,"Name":"","CurseForge":"rocksalt","Modrinth":""},{"Id":3173,"Name":"死亡之海 (CAZfps The Dead Sea)","CurseForge":"cazfps-the-dead-sea","Modrinth":""},{"Id":3174,"Name":"未知之袋 (Pouch of Unknown)","CurseForge":"pouch-of-unknown","Modrinth":""},{"Id":3175,"Name":"","CurseForge":"wizardry-fates","Modrinth":""},{"Id":3176,"Name":"","CurseForge":"the-mighty-architect","Modrinth":""},{"Id":3177,"Name":"","CurseForge":"phosphophyllite","Modrinth":""},{"Id":3178,"Name":"","CurseForge":"biggerreactors","Modrinth":""},{"Id":3179,"Name":"FTB 团队 (FTB Teams)","CurseForge":"ftb-teams-forge","Modrinth":""},{"Id":3179,"Name":"FTB 团队 (FTB Teams)","CurseForge":"ftb-teams-fabric","Modrinth":""},{"Id":3180,"Name":"挥挥手 (WaveAway)","CurseForge":"waveaway","Modrinth":""},{"Id":3181,"Name":"移除进度机制 (No Advancements)","CurseForge":"no-advancements","Modrinth":""},{"Id":3182,"Name":"群峦岩石 (TFC Rocksplus)","CurseForge":"tfc_rocksplus","Modrinth":""},{"Id":3183,"Name":"","CurseForge":"mars-mod-reborn","Modrinth":""},{"Id":3184,"Name":"","CurseForge":"ftb-library-forge","Modrinth":""},{"Id":3184,"Name":"","CurseForge":"ftb-library-fabric","Modrinth":""},{"Id":3185,"Name":"交错道途 (Crossroads)","CurseForge":"crossroads-mc","Modrinth":"crossroads"},{"Id":3186,"Name":"整合包配置检测 (Modpack Configuration Checker)","CurseForge":"config-checker","Modrinth":"modpack-configuration-checker"},{"Id":3187,"Name":"","CurseForge":"thaumic-speedup","Modrinth":""},{"Id":3188,"Name":"盔甲曲线修改 (Armor Curve)","CurseForge":"armor-curve","Modrinth":""},{"Id":3189,"Name":"环境音乐:附加 (Ambience - Extras)","CurseForge":"ambience-extras","Modrinth":""},{"Id":3190,"Name":"","CurseForge":"additions-mod","Modrinth":""},{"Id":3191,"Name":"更多CPU (Extra CPUs)","CurseForge":"extracpus","Modrinth":""},{"Id":3192,"Name":"","CurseForge":"extra-crafting-storage","Modrinth":""},{"Id":3194,"Name":"地下城市工程 (Underground City Engineering)","CurseForge":"underground-city-engineering","Modrinth":"underground-city-engineering"},{"Id":3195,"Name":"","CurseForge":"essentials","Modrinth":"essentialsmod"},{"Id":3196,"Name":"","CurseForge":"soul-shards-respawn","Modrinth":""},{"Id":3197,"Name":"","CurseForge":"soul-shards-the-old-ways","Modrinth":""},{"Id":3199,"Name":"","CurseForge":"the-flying-things","Modrinth":""},{"Id":3200,"Name":"","CurseForge":"ftb-ranks","Modrinth":""},{"Id":3200,"Name":"","CurseForge":"ftb-ranks-fabric","Modrinth":""},{"Id":3201,"Name":"FTB 区块 (FTB Chunks)","CurseForge":"ftb-chunks-forge","Modrinth":""},{"Id":3201,"Name":"FTB 区块 (FTB Chunks)","CurseForge":"ftb-chunks-fabric","Modrinth":""},{"Id":3202,"Name":"","CurseForge":"ftb-essentials","Modrinth":""},{"Id":3203,"Name":"银橡前哨 (Silveroak Outpost)","CurseForge":"silveroak-outpost","Modrinth":""},{"Id":3204,"Name":"","CurseForge":"pehkui","Modrinth":"pehkui"},{"Id":3205,"Name":"","CurseForge":"jeitweaker","Modrinth":"jeitweaker"},{"Id":3206,"Name":"","CurseForge":"yungs-law","Modrinth":""},{"Id":3207,"Name":"","CurseForge":"libx","Modrinth":"libx"},{"Id":3208,"Name":"悠然一派 (Atmospheric)","CurseForge":"atmospheric","Modrinth":"atmospheric"},{"Id":3209,"Name":"等宽字体 (Monospace font)","CurseForge":"monospace-font","Modrinth":""},{"Id":3211,"Name":"魔力液化器 (Mana Liquidizer)","CurseForge":"mana-liquidizer","Modrinth":"mana-liquidizer"},{"Id":3212,"Name":"那不勒斯风味 (Neapolitan)","CurseForge":"neapolitan","Modrinth":"neapolitan"},{"Id":3213,"Name":"","CurseForge":"clear-despawn","Modrinth":"cleardespawn"},{"Id":3213,"Name":"","CurseForge":"clear-despawn-fabric","Modrinth":""},{"Id":3214,"Name":"匠魂强化修改 (Tinkers' Modifier Modifier)","CurseForge":"tinkers-modifier-modifier","Modrinth":""},{"Id":3215,"Name":"随意微调 (RandomTweaks)","CurseForge":"randomtweaks","Modrinth":""},{"Id":3216,"Name":"","CurseForge":"zettai-magic","Modrinth":""},{"Id":3217,"Name":"稻草傀儡重制版 (Straw Golem Reborn)","CurseForge":"strawgolem-reborn","Modrinth":"straw-golem"},{"Id":3217,"Name":"稻草傀儡重制版 (Straw Golem Reborn)","CurseForge":"straw-golem-reborn","Modrinth":""},{"Id":3218,"Name":"冰中有宝 (Rare Ice)","CurseForge":"rare-ice","Modrinth":"rare-ice"},{"Id":3219,"Name":"","CurseForge":"create-integration","Modrinth":""},{"Id":3220,"Name":"魔镜 (The Magic Mirror)","CurseForge":"the-magic-mirror","Modrinth":"the-magic-mirror"},{"Id":3222,"Name":"额外船只 (Boatload / Extra Boats)","CurseForge":"boatload","Modrinth":"boatload"},{"Id":3222,"Name":"额外船只 (Extra Boats / Boatload)","CurseForge":"extra-boats","Modrinth":"extra-boats"},{"Id":3223,"Name":"落选生物 (Outvoted)","CurseForge":"outvoted","Modrinth":"outvoted"},{"Id":3225,"Name":"属性修复 - Fabric版 (Attribute Fix {FABRIC})","CurseForge":"attribute","Modrinth":""},{"Id":3226,"Name":"PackMode 菜单 (PackModeMenu)","CurseForge":"packmodemenu","Modrinth":""},{"Id":3227,"Name":"游戏模式短指令 (Simple Gamemodes)","CurseForge":"simple-gamemodes","Modrinth":""},{"Id":3228,"Name":"流体统一/物品统一 (UniQ)","CurseForge":"uniq","Modrinth":""},{"Id":3230,"Name":"更难的矿物处理 (Harder Ores)","CurseForge":"harder-ores","Modrinth":""},{"Id":3231,"Name":"","CurseForge":"rune-craft","Modrinth":"runecraft"},{"Id":3232,"Name":"","CurseForge":"geckolib","Modrinth":"geckolib"},{"Id":3233,"Name":"内存自动清理 (Memory Cleaner Mod)","CurseForge":"memory-cleaner-mod","Modrinth":""},{"Id":3234,"Name":"矿物花卉 (Ore Flowers)","CurseForge":"ore-flowers","Modrinth":""},{"Id":3235,"Name":"水下苦力怕 (Aqua Creepers!)","CurseForge":"aqua-creepers","Modrinth":""},{"Id":3236,"Name":"更多存储 (ExtraStorage)","CurseForge":"extrastorage","Modrinth":"extrastorage"},{"Id":3237,"Name":"热力运输 (Thermal Locomotion)","CurseForge":"thermal-locomotion","Modrinth":"thermal-locomotion"},{"Id":3238,"Name":"","CurseForge":"external-tweaker","Modrinth":""},{"Id":3239,"Name":"","CurseForge":"morebiomesxl","Modrinth":""},{"Id":3240,"Name":"笔记 (Notes)","CurseForge":"notes","Modrinth":"notes"},{"Id":3241,"Name":"盯到它们熟为止! (Stare Till They Grow!)","CurseForge":"stare-till-they-grow","Modrinth":""},{"Id":3242,"Name":"虚拟电脑 (VM Computers)","CurseForge":"vm-computers","Modrinth":""},{"Id":3243,"Name":"无物品栏 (Inventory-Free)","CurseForge":"inventory-free","Modrinth":""},{"Id":3245,"Name":"","CurseForge":"randompatches-integration","Modrinth":""},{"Id":3246,"Name":"1.13水域机制 (1.13 Bubble Columns for 1.12)","CurseForge":"bubble-column-elevator-backport","Modrinth":""},{"Id":3247,"Name":"基础下界矿石 (Basic Nether Ores)","CurseForge":"basic-nether-ores","Modrinth":"basic-nether-ores"},{"Id":3248,"Name":"核电工艺反应堆建造机 (NuclearCraft Reactor Builder)","CurseForge":"nuclearcraft-reactor-builder","Modrinth":""},{"Id":3249,"Name":"潘马斯农场2 - 食物核心 (Pam's HarvestCraft 2 - Food Core)","CurseForge":"pams-harvestcraft-2-food-core","Modrinth":"pams-harvestcraft-2-food-core"},{"Id":3250,"Name":"","CurseForge":"eki-lib","Modrinth":""},{"Id":3251,"Name":"","CurseForge":"","Modrinth":"immibis-core"},{"Id":3252,"Name":"伤害免疫机制移除 (No Damage Immunity)","CurseForge":"nodami","Modrinth":""},{"Id":3253,"Name":"星占魔法 (Astrological Sorcery)","CurseForge":"astrological-sorcery","Modrinth":"astrological-sorcery"},{"Id":3254,"Name":"","CurseForge":"efab-ct-bindings","Modrinth":""},{"Id":3255,"Name":"金漏斗 (Golden Hopper)","CurseForge":"golden-hopper","Modrinth":""},{"Id":3256,"Name":"巫术傀儡 (Wizardry Golems)","CurseForge":"wizardry-golems","Modrinth":""},{"Id":3259,"Name":"GTCEu-CrT开发套件 (Devtech)","CurseForge":"devtech","Modrinth":""},{"Id":3265,"Name":"侏罗纪重生 (Jurassic Reborn)","CurseForge":"jurassic-world-reborn-mod","Modrinth":"jurassic-reborn"},{"Id":3267,"Name":"","CurseForge":"cardboard","Modrinth":"cardboard"},{"Id":3268,"Name":"神秘附魔学 (Enchanting With Thaumcraft)","CurseForge":"enchanting-with-thaumcraft","Modrinth":""},{"Id":3269,"Name":"血腥启示 (Crimson Revelation)","CurseForge":"crimson-revelations","Modrinth":""},{"Id":3270,"Name":"","CurseForge":"environmental-core","Modrinth":"environmental-core"},{"Id":3271,"Name":"","CurseForge":"bigger-crafting-tables","Modrinth":"biggercraftingtables"},{"Id":3272,"Name":"万用覆盖板 (Covers Everywhere)","CurseForge":"covers-everywhere","Modrinth":""},{"Id":3273,"Name":"更多村庄 (Mo' Villages)","CurseForge":"mo-villages","Modrinth":""},{"Id":3274,"Name":"","CurseForge":"inventoryneko","Modrinth":""},{"Id":3275,"Name":"自定义加载画面 (Loading Screens)","CurseForge":"loading-screens","Modrinth":""},{"Id":3276,"Name":"OFMS:危机重重 (OFMS:crisis-ridden)","CurseForge":"ofms-crisis-ridden","Modrinth":""},{"Id":3277,"Name":"","CurseForge":"dupefix-project","Modrinth":""},{"Id":3278,"Name":"矿物控制 (Ore Control)","CurseForge":"ore-control","Modrinth":""},{"Id":3279,"Name":"Twitch信息显示 (Twitch Chat Integration)","CurseForge":"twitch-chat-integration","Modrinth":""},{"Id":3282,"Name":"无尽贪婪精简版 (Avaritia Lite)","CurseForge":"avaritia-lite","Modrinth":""},{"Id":3283,"Name":"","CurseForge":"packmenu","Modrinth":""},{"Id":3285,"Name":"原主机版界面特性 (Console Experience)","CurseForge":"console-experience","Modrinth":""},{"Id":3288,"Name":"MITE:重生 (MITE:Reborn)","CurseForge":"mite-reborn","Modrinth":""},{"Id":3289,"Name":"细节科技 (Detailed Technology)","CurseForge":"detailed-technology","Modrinth":""},{"Id":3290,"Name":"矿莓 (Oreberries)","CurseForge":"oreberries","Modrinth":""},{"Id":3291,"Name":"","CurseForge":"stone-block-utilities","Modrinth":""},{"Id":3292,"Name":"","CurseForge":"mystical-creations","Modrinth":""},{"Id":3293,"Name":"","CurseForge":"multiconnect","Modrinth":"multiconnect"},{"Id":3294,"Name":"炼金艺术:纪念版 (Art of Alchemy: Memoriam)","CurseForge":"art-of-alchemy-memoriam","Modrinth":""},{"Id":3295,"Name":"方块物理 (BlockPhysics)","CurseForge":"blockphysics","Modrinth":""},{"Id":3296,"Name":"","CurseForge":"stoneblock-dimensions","Modrinth":""},{"Id":3297,"Name":"充电设备 (Charging Gadgets)","CurseForge":"charging-gadgets","Modrinth":""},{"Id":3298,"Name":"工业先锋集成附属 (Integration Foregoing)","CurseForge":"integration-foregoing","Modrinth":""},{"Id":3299,"Name":"末影熔炉 (Enderfuge)","CurseForge":"enderfuge","Modrinth":""},{"Id":3300,"Name":"","CurseForge":"calm-down-zombie-guy","Modrinth":""},{"Id":3301,"Name":"通用模组核心 (Universal Mod Core)","CurseForge":"universal-mod-core","Modrinth":"universal-mod-core"},{"Id":3302,"Name":"挂起服务器 (Suspended Server)","CurseForge":"suspended-server","Modrinth":""},{"Id":3303,"Name":"星光 (Starlight)","CurseForge":"starlight-forge","Modrinth":"starlight-forge"},{"Id":3303,"Name":"星光 (Starlight)","CurseForge":"starlight","Modrinth":"starlight"},{"Id":3303,"Name":"星光 (Starlight)","CurseForge":"starlight-neoforge","Modrinth":"starlight-neoforge"},{"Id":3304,"Name":"研究台 🔬 (Research Table 🔬)","CurseForge":"research-table","Modrinth":""},{"Id":3305,"Name":"越肩视角重制 (Shoulder Surfing Reloaded)","CurseForge":"shoulder-surfing-reloaded","Modrinth":"shoulder-surfing-reloaded"},{"Id":3306,"Name":"水游技艺 (Aqua Acrobatics)","CurseForge":"aqua-acrobatics","Modrinth":""},{"Id":3307,"Name":"寂静机械 (Silent Mechanisms)","CurseForge":"silents-mechanisms","Modrinth":""},{"Id":3308,"Name":"背锅人计划 (ProjectPotman)","CurseForge":"project-potman","Modrinth":""},{"Id":3309,"Name":"数据包 NBT 合并 (Nbt Crafting)","CurseForge":"nbt-crafting","Modrinth":"nbt-crafting"},{"Id":3310,"Name":"","CurseForge":"diregoo","Modrinth":""},{"Id":3311,"Name":"OG龙+ (OGDragon+)","CurseForge":"ogdragon","Modrinth":""},{"Id":3312,"Name":"","CurseForge":"sevtweaks","Modrinth":""},{"Id":3313,"Name":"旅行地图阶段控制 (JourneyMapStages)","CurseForge":"journeymapstages","Modrinth":""},{"Id":3314,"Name":"Textile 备份 (Textile Backup)","CurseForge":"textile-backup","Modrinth":"textile_backup"},{"Id":3315,"Name":"","CurseForge":"goopers","Modrinth":""},{"Id":3316,"Name":"自定义生物战利品 (Mob Drops Your Way)","CurseForge":"mob-drops","Modrinth":""},{"Id":3318,"Name":"Alex 的生物 (Alex's Mobs)","CurseForge":"alexs-mobs","Modrinth":"alexs-mobs"},{"Id":3319,"Name":"可堆叠物品自定义 (All Stackable)","CurseForge":"mc-mods-stackable","Modrinth":"all-stackable"},{"Id":3320,"Name":"热力MJ支持 (Thermal MJ)","CurseForge":"thermal-mj","Modrinth":""},{"Id":3321,"Name":"","CurseForge":"ctd-core","Modrinth":"ctd-core"},{"Id":3322,"Name":"Minecraft地球自转/真实昼夜循环 (Вращение Земли Майнкрафтская (Accurate day/night-cycles Mod))","CurseForge":"time-speed-mod","Modrinth":""},{"Id":3324,"Name":"","CurseForge":"mineral-tracker","Modrinth":""},{"Id":3325,"Name":"Carpet 拓展 (Carpet Extra)","CurseForge":"carpet-extra","Modrinth":"carpet-extra"},{"Id":3327,"Name":"","CurseForge":"viafabric","Modrinth":"viafabric"},{"Id":3328,"Name":"双重台阶 (Double Slabs)","CurseForge":"double-slabs","Modrinth":"double-slabs"},{"Id":3329,"Name":"超多生物群系:旧工具和装甲 (Tools And Armor - BOP)","CurseForge":"tools-and-armor-bop","Modrinth":""},{"Id":3330,"Name":"集中材料 (Centralized Materials)","CurseForge":"centralized-materials","Modrinth":""},{"Id":3331,"Name":"服务器端区块加载器 (Server Sided Chunk Loader)","CurseForge":"server-sided-chunk-loader","Modrinth":""},{"Id":3332,"Name":"流体牛 (Fluid cows)","CurseForge":"fluid-cows","Modrinth":""},{"Id":3333,"Name":"","CurseForge":"shulkerboxviewer","Modrinth":""},{"Id":3334,"Name":"游戏信息 (GameInfo)","CurseForge":"gameinfo","Modrinth":""},{"Id":3335,"Name":"Arcaea韵律源点 (Arcaea)","CurseForge":"arcaea","Modrinth":""},{"Id":3336,"Name":"进阶群峦科技 (Advanced TFC Tech)","CurseForge":"advanced-tfc-tech","Modrinth":""},{"Id":3337,"Name":"原版增强 (Enriched/Vanilla Enhanced)","CurseForge":"enriched","Modrinth":"enriched"},{"Id":3338,"Name":"","CurseForge":"satisforestry","Modrinth":""},{"Id":3339,"Name":"","CurseForge":"asmc","Modrinth":"asmc"},{"Id":3340,"Name":"简易发电机 (Simple Generators)","CurseForge":"simple-generators","Modrinth":"simple-generators"},{"Id":3341,"Name":"群峦盆栽 (TFC Bonsai)","CurseForge":"tfc-bonsai","Modrinth":""},{"Id":3342,"Name":"群峦晾干架 (TFC Drying Rack)","CurseForge":"tfc-drying-rack","Modrinth":""},{"Id":3344,"Name":"流明 (Lumen 🔥)","CurseForge":"lumen","Modrinth":""},{"Id":3345,"Name":"开放式电梯 (OpenBlocks Elevator / ElevatorMod)","CurseForge":"openblocks-elevator","Modrinth":"elevatormod"},{"Id":3346,"Name":"CrT集成 (CraftTweaker Integration)","CurseForge":"crafttweaker-integration","Modrinth":""},{"Id":3348,"Name":"蜘蛛行为增强 (Spiders 2.0)","CurseForge":"spiders-2-0","Modrinth":""},{"Id":3350,"Name":"锤子材料 (Hammer Metals)","CurseForge":"hammer-metals","Modrinth":""},{"Id":3351,"Name":"生物群系扩充 (Bunch Of Biomes!)","CurseForge":"bunch-of-biomes","Modrinth":""},{"Id":3353,"Name":"更好的史莱姆 (Better Slimes)","CurseForge":"better-slimes","Modrinth":""},{"Id":3354,"Name":"玻璃板贴合 (Windowlogging)","CurseForge":"windowlogging","Modrinth":""},{"Id":3355,"Name":"时间静止 (The Time Stop Mod)","CurseForge":"the-time-stop-mod","Modrinth":""},{"Id":3357,"Name":"原版材质锤 (Vanilla Hammers)","CurseForge":"vanilla-hammers","Modrinth":"vanilla-hammers"},{"Id":3357,"Name":"原版材质锤 (Vanilla Hammers)","CurseForge":"vanilla-hammers-forge","Modrinth":""},{"Id":3358,"Name":"输入法冲突修复 (IMBlocker)","CurseForge":"imblocker","Modrinth":"imblocker-original"},{"Id":3359,"Name":"","CurseForge":"hardcore-map-reset","Modrinth":""},{"Id":3360,"Name":"群峦陈酿 (TFC Aged Drinks)","CurseForge":"tfc-aged-drinks","Modrinth":""},{"Id":3362,"Name":"YouTuber的幸运方块 (Youtuber's Lucky Blocks)","CurseForge":"youtubers-lucky-blocks","Modrinth":""},{"Id":3363,"Name":"流浪猎人 (Wandering Trapper)","CurseForge":"wandering-trapper","Modrinth":""},{"Id":3364,"Name":"","CurseForge":"chocolate-fix","Modrinth":""},{"Id":3365,"Name":"","CurseForge":"thaumcraft-4-scrolling","Modrinth":"tc4tweaks"},{"Id":3366,"Name":"","CurseForge":"orderly","Modrinth":""},{"Id":3367,"Name":"","CurseForge":"water-control-extreme","Modrinth":""},{"Id":3368,"Name":"","CurseForge":"variant16x","Modrinth":""},{"Id":3369,"Name":"末地:创世 (End Remastered)","CurseForge":"endremastered","Modrinth":"endrem"},{"Id":3369,"Name":"末地:创世 (End Remastered)","CurseForge":"endremastered-fabric","Modrinth":""},{"Id":3371,"Name":"独特作物 (Unique Crops)","CurseForge":"unique-crops","Modrinth":""},{"Id":3372,"Name":"","CurseForge":"yungs-api","Modrinth":"yungs-api"},{"Id":3372,"Name":"","CurseForge":"yungs-api-fabric","Modrinth":""},{"Id":3372,"Name":"","CurseForge":"yungs-api-neoforge","Modrinth":""},{"Id":3373,"Name":"","CurseForge":"dawn","Modrinth":""},{"Id":3374,"Name":"装配线 (Assembly Line Machines)","CurseForge":"assembly-line-machines","Modrinth":""},{"Id":3375,"Name":"","CurseForge":"netherending-ores","Modrinth":""},{"Id":3376,"Name":"扭曲视野 (Flex FOV)","CurseForge":"Flex-FOV","Modrinth":""},{"Id":3377,"Name":"抓钩 (Hooked)","CurseForge":"hooked","Modrinth":"hooked"},{"Id":3378,"Name":"","CurseForge":"createtweaker","Modrinth":"createtweaker"},{"Id":3379,"Name":"","CurseForge":"iTorch","Modrinth":""},{"Id":3381,"Name":"","CurseForge":"gullivern","Modrinth":""},{"Id":3382,"Name":"","CurseForge":"nbt-manipulator","Modrinth":""},{"Id":3385,"Name":"","CurseForge":"sulfur-and-potassium-make-more-gunpowder","Modrinth":""},{"Id":3386,"Name":"雕像 (Statues)","CurseForge":"statues","Modrinth":"statues"},{"Id":3387,"Name":"先进的采矿维度 (Advanced Mining Dimension)","CurseForge":"advanced-mining-dimension","Modrinth":"advanced-mining-dimension"},{"Id":3388,"Name":"时间旅行 (Time Travel Mod)","CurseForge":"time-travel-mod","Modrinth":""},{"Id":3389,"Name":"背用武器拓展 (BackSlotAddon)","CurseForge":"backslotaddon","Modrinth":"backslotaddon"},{"Id":3390,"Name":"","CurseForge":"optifabric-1-8-9","Modrinth":""},{"Id":3392,"Name":"GT6 矿石助手 (GT6 Ore Helper)","CurseForge":"gt6-ore-helper","Modrinth":""},{"Id":3393,"Name":"应用集成 (Applied Integrations)","CurseForge":"applied-integrations","Modrinth":""},{"Id":3395,"Name":"物品栏HUD+ (Inventory HUD+)","CurseForge":"inventory-hud-forge","Modrinth":"inventoryhudplus"},{"Id":3397,"Name":"","CurseForge":"langsplit","Modrinth":"langsplit"},{"Id":3398,"Name":"","CurseForge":"legacy-fabric-api","Modrinth":"legacy-fabric-api"},{"Id":3399,"Name":"氪 (Krypton)","CurseForge":"krypton","Modrinth":"krypton"},{"Id":3400,"Name":"","CurseForge":"mana-gear","Modrinth":""},{"Id":3401,"Name":"","CurseForge":"not-enough-enchantments","Modrinth":""},{"Id":3402,"Name":"祝您好胃口 (Bon Appetit)","CurseForge":"bon-appetit-forge","Modrinth":""},{"Id":3402,"Name":"祝您好胃口 (Bon Appetit)","CurseForge":"bon-appetit-fabric","Modrinth":""},{"Id":3403,"Name":"咕咕工具 (GuGu Utils)","CurseForge":"gugu-utils","Modrinth":"gugu-utils"},{"Id":3404,"Name":"潜水装备 (Scuba Gear)","CurseForge":"scuba-gear","Modrinth":"scuba-gear"},{"Id":3405,"Name":"降世神通:突破冰山 (Avatar Mod 2: Out of the Iceberg)","CurseForge":"avatar-mod-2-out-of-the-iceberg","Modrinth":""},{"Id":3406,"Name":"氢 (Hydrogen)","CurseForge":"","Modrinth":"hydrogen"},{"Id":3407,"Name":"DFU载入优化 (LazyDFU)","CurseForge":"lazydfu","Modrinth":"lazydfu"},{"Id":3409,"Name":"可骑乘末影珍珠 (Ridable Ender Pearls)","CurseForge":"ridable-ender-pearls","Modrinth":""},{"Id":3410,"Name":"镀金盔甲 (GildedArmor)","CurseForge":"gildedarmor","Modrinth":"gildedarmor"},{"Id":3411,"Name":"致命书本 (Deadly Book)","CurseForge":"deadly-book","Modrinth":""},{"Id":3412,"Name":"极速漏斗 (Speedy Hoppers)","CurseForge":"speedy-hoppers","Modrinth":""},{"Id":3413,"Name":"铟 (Indium)","CurseForge":"indium","Modrinth":"indium"},{"Id":3416,"Name":"一起钓鱼吧! (Go Fish)","CurseForge":"go-fish","Modrinth":""},{"Id":3417,"Name":"更多玩家模型 (More Player Models)","CurseForge":"more-player-models","Modrinth":""},{"Id":3418,"Name":"","CurseForge":"loot-overhaul","Modrinth":""},{"Id":3419,"Name":"矿工头盔 (Miner's Helmet)","CurseForge":"miners-helmet","Modrinth":"miners-helmet"},{"Id":3420,"Name":"轻量级流血机制 (Lightweight Blood Mechanics)","CurseForge":"lightweight-blood-mechanics","Modrinth":""},{"Id":3421,"Name":"","CurseForge":"kbackup-fabric","Modrinth":""},{"Id":3422,"Name":"流畅加载 (Smooth Boot)","CurseForge":"smooth-boot","Modrinth":"smoothboot-fabric"},{"Id":3422,"Name":"流畅加载 (Smooth Boot)","CurseForge":"smooth-boot-forge","Modrinth":"smooth-boot"},{"Id":3424,"Name":"下界合金拓展 (Netherite Plus Mod)","CurseForge":"netherite-plus-mod","Modrinth":"netherite-plus-mod"},{"Id":3425,"Name":"区块预生成器 (Chunk-Pregenerator)","CurseForge":"chunkpregenerator","Modrinth":""},{"Id":3426,"Name":"幽灵方块同步修复 (AntiGhost)","CurseForge":"antighost","Modrinth":"antighost"},{"Id":3428,"Name":"背用武器 (BackSlot)","CurseForge":"backslot","Modrinth":"backslot"},{"Id":3429,"Name":"","CurseForge":"minecraftcapes-mod","Modrinth":"minecraftcapes"},{"Id":3431,"Name":"斯巴达奥法 (Spartan Weaponry Arcana)","CurseForge":"spartan-weaponry-arcana","Modrinth":""},{"Id":3433,"Name":"希腊幻想 (Greek Fantasy)","CurseForge":"greek-fantasy","Modrinth":""},{"Id":3434,"Name":"","CurseForge":"architectury-api","Modrinth":"architectury-api"},{"Id":3437,"Name":"机械动力:创想附加 (Create Crafts & Additions)","CurseForge":"createaddition","Modrinth":"createaddition"},{"Id":3438,"Name":"","CurseForge":"smithee","Modrinth":""},{"Id":3439,"Name":"龙蛋复制器 (Dragon Egg Replicator)","CurseForge":"dragon-egg-replicator","Modrinth":""},{"Id":3441,"Name":"元素锭 (Elemental Ingots)","CurseForge":"elemental-ingots-ei","Modrinth":""},{"Id":3442,"Name":"太阳能发电机 (Solar Generation)","CurseForge":"solargeneration","Modrinth":"solargeneration"},{"Id":3443,"Name":"","CurseForge":"enchant-with-mob","Modrinth":"enchantwithmob"},{"Id":3445,"Name":"","CurseForge":"worldstatecheckpoints","Modrinth":""},{"Id":3446,"Name":"","CurseForge":"dungeons-plus","Modrinth":"dungeons-plus"},{"Id":3447,"Name":"药水附魔 (Liquid Enchanting)","CurseForge":"liquid-enchanting","Modrinth":""},{"Id":3448,"Name":"禁用实验性设置警告 (Shutup Experimental Settings!)","CurseForge":"shutup-experimental-settings","Modrinth":""},{"Id":3449,"Name":"","CurseForge":"datafixerslayer","Modrinth":""},{"Id":3450,"Name":"","CurseForge":"hexcraft","Modrinth":""},{"Id":3451,"Name":"警察 (Police Mod)","CurseForge":"police-mod","Modrinth":""},{"Id":3452,"Name":"月亮事件 (Enhanced Celestials)","CurseForge":"enhanced-celestials","Modrinth":"enhanced-celestials"},{"Id":3452,"Name":"月亮事件 (Enhanced Celestials)","CurseForge":"enhanced-celestials-fabric","Modrinth":""},{"Id":3453,"Name":"缤纷蜜蜂 (Resourceful Bees)","CurseForge":"resourceful-bees","Modrinth":"resourceful-bees"},{"Id":3454,"Name":"手持物品信息 (Held Item Info)","CurseForge":"held-item-info","Modrinth":"held-item-info"},{"Id":3455,"Name":"干净利落 (CleanCut)","CurseForge":"cleancut","Modrinth":"cleancut"},{"Id":3456,"Name":"","CurseForge":"plus-tweaks","Modrinth":""},{"Id":3457,"Name":"全局游戏规则 (Global GameRules)","CurseForge":"global-gamerules","Modrinth":"global-gamerules"},{"Id":3459,"Name":"","CurseForge":"save-my-stronghold-fabric","Modrinth":""},{"Id":3459,"Name":"","CurseForge":"save-my-stronghold","Modrinth":""},{"Id":3460,"Name":"真实物理 (Physics Mod)","CurseForge":"physics-mod","Modrinth":"physicsmod"},{"Id":3461,"Name":"","CurseForge":"bluemap","Modrinth":""},{"Id":3462,"Name":"德雷戈拉 (Dregora)","CurseForge":"dregora","Modrinth":""},{"Id":3463,"Name":"","CurseForge":"k4lib","Modrinth":""},{"Id":3464,"Name":"","CurseForge":"deadly-end-phantoms","Modrinth":""},{"Id":3465,"Name":"生活调味料:马铃薯版 (Spice of Life: Potato Edition)","CurseForge":"spice-of-life-potato-edition","Modrinth":""},{"Id":3466,"Name":"简单村民交易 (EasierVillagerTrading)","CurseForge":"easiervillagertrading","Modrinth":"easiervillagertrading"},{"Id":3466,"Name":"简单村民交易 (EasierVillagerTrading)","CurseForge":"easiervillagertrading-2","Modrinth":""},{"Id":3467,"Name":"聊天栏时间显示 (When Was That Again)","CurseForge":"wwta","Modrinth":"wwta"},{"Id":3468,"Name":"新生魔艺 (Ars Nouveau)","CurseForge":"ars-nouveau","Modrinth":"ars-nouveau"},{"Id":3469,"Name":"幻梦 (Eidolon)","CurseForge":"eidolon","Modrinth":""},{"Id":3470,"Name":"老鼠:鼠西洲 (Rats: Ratlantis)","CurseForge":"rats-ratlantis","Modrinth":""},{"Id":3471,"Name":"","CurseForge":"wthit","Modrinth":"wthit"},{"Id":3471,"Name":"","CurseForge":"wthit-forge","Modrinth":""},{"Id":3472,"Name":"现代工业化 (Modern Industrialization)","CurseForge":"modern-industrialization","Modrinth":"modern-industrialization"},{"Id":3473,"Name":"区块预生成器(Fabric) (Fabric Chunk Pregenerator)","CurseForge":"chunk-pregenerator-fabric","Modrinth":"fabricquilt-chunk-pregenerator"},{"Id":3474,"Name":"","CurseForge":"jumploader","Modrinth":""},{"Id":3475,"Name":"","CurseForge":"unloader","Modrinth":""},{"Id":3476,"Name":"更真实的动物 (Better Animal Models)","CurseForge":"better-animal-models","Modrinth":""},{"Id":3477,"Name":"我的小马驹 (Mine Little Pony)","CurseForge":"","Modrinth":"mine-little-pony"},{"Id":3479,"Name":"德鲁伊工艺 (Druidcraft)","CurseForge":"druidcraft","Modrinth":""},{"Id":3480,"Name":"","CurseForge":"berry-good","Modrinth":"berry-good"},{"Id":3481,"Name":"残暴与掠夺 (Savage & Ravage)","CurseForge":"savage-and-ravage","Modrinth":"savage-and-ravage"},{"Id":3482,"Name":"玉 🔍 (Jade 🔍)","CurseForge":"jade","Modrinth":"jade"},{"Id":3483,"Name":"梦醒时分 (Somnia Awoken)","CurseForge":"somnia","Modrinth":"somnia"},{"Id":3484,"Name":"","CurseForge":"industrial-reborn","Modrinth":"industrial-reborn"},{"Id":3485,"Name":"更多自然生成结构 (Mo' Structures)","CurseForge":"mo-structures-forge","Modrinth":"mo-structures"},{"Id":3485,"Name":"更多自然生成结构 (Mo' Structures)","CurseForge":"mo-structures","Modrinth":""},{"Id":3486,"Name":"墙纸创造 (Wallpapercraft - A Fresh Roll)","CurseForge":"wallpapercraft-a-fresh-roll","Modrinth":""},{"Id":3490,"Name":"","CurseForge":"unionlib","Modrinth":"unionlib"},{"Id":3491,"Name":"植树盆栽 (Botany Trees)","CurseForge":"botany-trees","Modrinth":"botany-trees"},{"Id":3492,"Name":"","CurseForge":"better-third-person","Modrinth":"better-third-person"},{"Id":3493,"Name":"生存要素 (Survive)","CurseForge":"survive","Modrinth":"survive"},{"Id":3494,"Name":"墙纸创造:楼梯 (Wallpapercraft - A Fresh Roll (Stairs!))","CurseForge":"wallpapercraft-a-fresh-roll-stairs","Modrinth":""},{"Id":3495,"Name":"墙纸创造:台阶 (Wallpapercraft - A Fresh Roll (Slabs!))","CurseForge":"wallpapercraft-a-fresh-roll-slabs","Modrinth":""},{"Id":3496,"Name":"墙纸创造:围墙 (Wallpapercraft - A Fresh Roll (Walls!))","CurseForge":"wallpapercraft-a-fresh-roll-walls","Modrinth":""},{"Id":3497,"Name":"","CurseForge":"compact-crafting","Modrinth":""},{"Id":3498,"Name":"装配线 (Assembly Lines)","CurseForge":"assembly-lines","Modrinth":"assembly-lines"},{"Id":3499,"Name":"植物盆栽 (Botany Pots)","CurseForge":"botany-pots","Modrinth":"botany-pots"},{"Id":3500,"Name":"召之马来 (Callable Horses)","CurseForge":"callable-horses","Modrinth":""},{"Id":3502,"Name":"","CurseForge":"ultimate-solar-panels","Modrinth":""},{"Id":3503,"Name":"界面微调 ('Slight' Gui Modifications)","CurseForge":"slight-gui-modifications","Modrinth":"slight-gui-modifications"},{"Id":3504,"Name":"元素工艺 (Elemental Craft)","CurseForge":"elemental-craft","Modrinth":"elemental-craft"},{"Id":3505,"Name":"腐肉换皮革 (Just Another Rotten Flesh to Leather Mod)","CurseForge":"just-another-rotten-flesh-to-leather-mod","Modrinth":"jrftl"},{"Id":3506,"Name":"","CurseForge":"spatial-harvesters-forge","Modrinth":"spatial-harvesters-fabric"},{"Id":3506,"Name":"","CurseForge":"spatial-harvesters-fabric","Modrinth":""},{"Id":3507,"Name":"表情工艺 (Emotecraft)","CurseForge":"emotecraft","Modrinth":"emotecraft"},{"Id":3507,"Name":"表情工艺 (Emotecraft)","CurseForge":"emotecraft-forge","Modrinth":""},{"Id":3508,"Name":"","CurseForge":"pattysmorestuff","Modrinth":"pattysmorestuff"},{"Id":3509,"Name":"帽子 (Hats)","CurseForge":"hats","Modrinth":""},{"Id":3510,"Name":"平滑基岩层 (Smoother Bedrock)","CurseForge":"smoother-bedrock","Modrinth":""},{"Id":3511,"Name":"C^2M 引擎 (C^2M-Engine/Concurrent Chunk Management Engine)","CurseForge":"c2me-fabric","Modrinth":"c2me-fabric"},{"Id":3511,"Name":"C^2M 引擎 (C^2M-Engine/Concurrent Chunk Management Engine)","CurseForge":"","Modrinth":"c2me-neoforge"},{"Id":3512,"Name":"","CurseForge":"datapack-anvil","Modrinth":"dpanvil"},{"Id":3513,"Name":"核科学 (Nuclear Science)","CurseForge":"nuclear-science","Modrinth":"nuclear-science"},{"Id":3514,"Name":"强光火把 (Glare Torch)","CurseForge":"glaretorch","Modrinth":""},{"Id":3515,"Name":"MrCrayfish的充气城堡 (MrCrayfish's Jumping Castle)","CurseForge":"mrcrayfishs-jumping-castle-mod","Modrinth":""},{"Id":3516,"Name":"","CurseForge":"exposer","Modrinth":""},{"Id":3517,"Name":"","CurseForge":"to-the-bat-poles","Modrinth":""},{"Id":3518,"Name":"","CurseForge":"cc-restitched","Modrinth":"cc-restitched"},{"Id":3519,"Name":"可穿戴设备 (Wearables)","CurseForge":"wearables","Modrinth":""},{"Id":3520,"Name":"先进熔炉 (Advanced Furnace)","CurseForge":"","Modrinth":"advancedfurnace"},{"Id":3522,"Name":"更好的天气 (Better Weather)","CurseForge":"better-weather","Modrinth":""},{"Id":3522,"Name":"更好的天气 (Better Weather)","CurseForge":"better-weather-fabric","Modrinth":""},{"Id":3523,"Name":"终极汽车 (Ultimate Car Mod)","CurseForge":"ultimate-car-mod","Modrinth":"ultimate-car-mod"},{"Id":3524,"Name":"耗时合成 (Craft Takes Time)","CurseForge":"craft-time","Modrinth":""},{"Id":3525,"Name":"更好的F3 (BetterF3)","CurseForge":"betterf3","Modrinth":"betterf3"},{"Id":3527,"Name":"深渊:第二章 (The Abyss: Chapter II / The Abyss II - The Other Side)","CurseForge":"the-abyss-chapter-ii","Modrinth":""},{"Id":3528,"Name":"","CurseForge":"mapper-base","Modrinth":"mapper-base"},{"Id":3529,"Name":"","CurseForge":"bedrockify","Modrinth":"bedrockIfy"},{"Id":3531,"Name":"RF工具:能量 (RFTools Power)","CurseForge":"rftools-power","Modrinth":"rftools-power"},{"Id":3532,"Name":"","CurseForge":"pipez","Modrinth":"pipez"},{"Id":3533,"Name":"","CurseForge":"coins-je","Modrinth":"coins-je"},{"Id":3535,"Name":"蜂巢信息 (Beenfo)","CurseForge":"beenfo","Modrinth":"beenfo"},{"Id":3536,"Name":"","CurseForge":"chest-building-blocks","Modrinth":""},{"Id":3537,"Name":"","CurseForge":"zycraft","Modrinth":""},{"Id":3538,"Name":"退出前确认 (QuitConfirm)","CurseForge":"quitconfirm","Modrinth":""},{"Id":3539,"Name":"","CurseForge":"ruined-equipment","Modrinth":"ruined-equipment"},{"Id":3540,"Name":"穿牌开箱 (ClickThrough)","CurseForge":"clickthrough","Modrinth":"clickthrough"},{"Id":3541,"Name":"动态声音滤波器 (Dynamic Sound Filters)","CurseForge":"dynamic-sound-filters","Modrinth":"dynamic-sound-filters"},{"Id":3542,"Name":"","CurseForge":"binniepatcher","Modrinth":""},{"Id":3543,"Name":"","CurseForge":"subterranean-wilderness","Modrinth":""},{"Id":3545,"Name":"建筑手杖 (Construction Wand)","CurseForge":"construction-wand","Modrinth":"construction-wand"},{"Id":3546,"Name":"","CurseForge":"squeedometer","Modrinth":""},{"Id":3548,"Name":"","CurseForge":"forgery","Modrinth":"fabrication"},{"Id":3548,"Name":"","CurseForge":"fabrication","Modrinth":""},{"Id":3549,"Name":"","CurseForge":"mcdj","Modrinth":""},{"Id":3550,"Name":"","CurseForge":"boost-boots","Modrinth":""},{"Id":3551,"Name":"更好的钠视频设置按钮 (Better Sodium Video Settings Button)","CurseForge":"better-sodium-video-settings-button","Modrinth":"better-sodium-video-settings-button"},{"Id":3553,"Name":"工匠之作2 / 工匠工作台2 (Artisan Worktables 2 / Artisan Worktables 1.16)","CurseForge":"artisan-worktables-1-16","Modrinth":""},{"Id":3554,"Name":"","CurseForge":"thermal-solars","Modrinth":""},{"Id":3555,"Name":"锦致装饰 (Supplementaries)","CurseForge":"supplementaries","Modrinth":"supplementaries"},{"Id":3556,"Name":"","CurseForge":"more-fuels-mod","Modrinth":""},{"Id":3558,"Name":"","CurseForge":"pointless-tech-collective","Modrinth":""},{"Id":3559,"Name":"","CurseForge":"revampedwolf","Modrinth":"revampedwolf"},{"Id":3560,"Name":"","CurseForge":"bedrock-b-gone","Modrinth":"bedrock-b-gone"},{"Id":3562,"Name":"元素爬行者 (Elemental Creepers)","CurseForge":"elemental-creepers-og","Modrinth":"elemental-creepers"},{"Id":3562,"Name":"元素爬行者 (Elemental Creepers)","CurseForge":"elemental-creepers","Modrinth":""},{"Id":3563,"Name":"","CurseForge":"gymcraft","Modrinth":""},{"Id":3564,"Name":"地狱扩展 (Infernal Expansion)","CurseForge":"infernal-expansion","Modrinth":"infernal-expansion"},{"Id":3567,"Name":"怪物药水效果自定义 (Configurable Mob Potion Effects)","CurseForge":"configurable-mob-potion-effects","Modrinth":"configurable-mob-potion-effects"},{"Id":3567,"Name":"怪物药水效果自定义 (Configurable Mob Potion Effects)","CurseForge":"configurable-mob-potion-effects-fabric","Modrinth":""},{"Id":3568,"Name":"","CurseForge":"sapience","Modrinth":""},{"Id":3569,"Name":"下界合金粒 (Netherite Nuggets)","CurseForge":"netherite-nuggets-fabric","Modrinth":"netherite-nuggets"},{"Id":3569,"Name":"下界合金粒 (Netherite Nuggets)","CurseForge":"netherite-nuggets-forge","Modrinth":""},{"Id":3570,"Name":"","CurseForge":"eroding-stone-entities","Modrinth":"eroding-stone-entities"},{"Id":3570,"Name":"","CurseForge":"eroding-stone-entities-fabric","Modrinth":""},{"Id":3571,"Name":"","CurseForge":"direbats-forge","Modrinth":"direbats"},{"Id":3571,"Name":"","CurseForge":"direbats-fabric","Modrinth":""},{"Id":3572,"Name":"高级电动工具 (Advanced Electric Tools)","CurseForge":"advanced-electric-tools","Modrinth":""},{"Id":3574,"Name":"","CurseForge":"backpacker","Modrinth":""},{"Id":3576,"Name":"","CurseForge":"ynet","Modrinth":""},{"Id":3577,"Name":"简单的抽屉 (Simple Drawers)","CurseForge":"simple-drawers","Modrinth":""},{"Id":3578,"Name":"","CurseForge":"charmonium","Modrinth":""},{"Id":3578,"Name":"","CurseForge":"charmonium-reforged","Modrinth":"charmonium"},{"Id":3579,"Name":"","CurseForge":"xnicex","Modrinth":"xnicex"},{"Id":3580,"Name":"","CurseForge":"krate","Modrinth":""},{"Id":3581,"Name":"鸡棚重置版 (ChickensShed)","CurseForge":"chickensshed","Modrinth":"chickensshed"},{"Id":3582,"Name":"","CurseForge":"chickenshed","Modrinth":""},{"Id":3583,"Name":"扩展存储 (Expanded Storage)","CurseForge":"expanded-storage","Modrinth":"expanded-storage"},{"Id":3583,"Name":"扩展存储 (Expanded Storage)","CurseForge":"expanded-storage-fabric","Modrinth":""},{"Id":3583,"Name":"扩展存储 (Expanded Storage)","CurseForge":"expanded-storage-forge","Modrinth":""},{"Id":3584,"Name":"","CurseForge":"project-mmo","Modrinth":"project-mmo"},{"Id":3585,"Name":"","CurseForge":"abnormals-delight","Modrinth":"abnormals-delight"},{"Id":3586,"Name":"","CurseForge":"jojos-bizarre-survival","Modrinth":""},{"Id":3588,"Name":"","CurseForge":"somnus","Modrinth":"somnus"},{"Id":3589,"Name":"遗失饰物 (Lost Trinkets)","CurseForge":"lost-trinkets","Modrinth":""},{"Id":3590,"Name":"","CurseForge":"lookingglass","Modrinth":""},{"Id":3591,"Name":"自然环境 (Environmental)","CurseForge":"environmental","Modrinth":"environmental"},{"Id":3593,"Name":"","CurseForge":"golden-airport-pack-immersive-vehicles-content","Modrinth":""},{"Id":3595,"Name":"洞口填充器 (Hole Filler)","CurseForge":"hole-filler-mod","Modrinth":"hole-filler-mod"},{"Id":3597,"Name":"简单的茶! (Simply Tea!)","CurseForge":"simply-tea","Modrinth":"simply-tea"},{"Id":3598,"Name":"","CurseForge":"buttermilk","Modrinth":""},{"Id":3599,"Name":"均衡饮食 (Diet)","CurseForge":"diet","Modrinth":"diet"},{"Id":3600,"Name":"巴西风情 (Brazilian Fields)","CurseForge":"brazilian-fields","Modrinth":""},{"Id":3601,"Name":"AE2 附加 (AE2 Extras)","CurseForge":"ae2-extras","Modrinth":""},{"Id":3602,"Name":"动物 (Animalium)","CurseForge":"animalium","Modrinth":""},{"Id":3603,"Name":"生物起源 (Mob Origins)","CurseForge":"mob-origins","Modrinth":"moborigins"},{"Id":3604,"Name":"更好的默认生物群系 (Better Default Biomes)","CurseForge":"better-default-biomes","Modrinth":""},{"Id":3605,"Name":"KAI我的实体 (KAIMyEntity)","CurseForge":"kaimyentity","Modrinth":""},{"Id":3606,"Name":"桌椅 (TableChair)","CurseForge":"tablechair","Modrinth":""},{"Id":3607,"Name":"地牢浮现之时 (When Dungeons Arise)","CurseForge":"when-dungeons-arise","Modrinth":"when-dungeons-arise"},{"Id":3607,"Name":"地牢浮现之时 (When Dungeons Arise)","CurseForge":"when-dungeons-arise-fabric","Modrinth":""},{"Id":3608,"Name":"动物喂养槽 (Animal Feeding Trough)","CurseForge":"animal-feeding-trough","Modrinth":"animal_feeding_trough"},{"Id":3609,"Name":"","CurseForge":"wiki-zoomer","Modrinth":"wiki-zoomer"},{"Id":3610,"Name":"","CurseForge":"personality","Modrinth":"personality!"},{"Id":3611,"Name":"","CurseForge":"mc-modsurement","Modrinth":"allurement!"},{"Id":3612,"Name":"矮人矿工 (Dwarf Miner Totem)","CurseForge":"dwarf-miner-totem","Modrinth":""},{"Id":3613,"Name":"YUNG 的传送门机制重构 (YUNG's Better Portals)","CurseForge":"yungs-better-portals","Modrinth":""},{"Id":3614,"Name":"德国交通标志 (German Road Signs Mod)","CurseForge":"german-road-signs-mod","Modrinth":""},{"Id":3615,"Name":"真实调整 (Iguana in a Blanket)","CurseForge":"iguana-in-a-blanket","Modrinth":"iguana"},{"Id":3616,"Name":"蚂蚁物流 (Anthill Inside)","CurseForge":"anthill-inside","Modrinth":"anthillinside"},{"Id":3617,"Name":"","CurseForge":"nei-integration","Modrinth":""},{"Id":3618,"Name":"分解磨床 (Uncrafting Grinder)","CurseForge":"uncrafting-grinder","Modrinth":""},{"Id":3619,"Name":"","CurseForge":"emendatus-enigmatica","Modrinth":"emendatusenigmatica"},{"Id":3623,"Name":"马术 (Jousting)","CurseForge":"jousting","Modrinth":"jousting"},{"Id":3624,"Name":"","CurseForge":"bamboo-blocks","Modrinth":"bamboo-blocks"},{"Id":3625,"Name":"逃逸:寄生体 (Scape and Run: Parasites)","CurseForge":"scape-and-run-parasites","Modrinth":"scapeandrunparasites"},{"Id":3626,"Name":"更多JEI拖拽 (Just Enough Drags)","CurseForge":"just-enough-drags","Modrinth":""},{"Id":3627,"Name":"无中生有:自动化 (Exnihilo: Automation)","CurseForge":"exnihilo-automation","Modrinth":""},{"Id":3628,"Name":"世界管理器:图形交互 (World Handler - Command GUI)","CurseForge":"world-handler-command-gui","Modrinth":""},{"Id":3629,"Name":"实体渲染机制优化 (Entity Culling)","CurseForge":"entityculling","Modrinth":"entityculling"},{"Id":3631,"Name":"茶壶 (Tea Kettle)","CurseForge":"tea-kettle","Modrinth":""},{"Id":3632,"Name":"方块实体优化 (Enhanced Block Entities)","CurseForge":"enhanced-block-entities","Modrinth":"ebe"},{"Id":3633,"Name":"","CurseForge":"gun-customization-infinity","Modrinth":""},{"Id":3634,"Name":"地下城装备 (Dungeons Gear)","CurseForge":"dungeons-gear","Modrinth":""},{"Id":3635,"Name":"NBT 联合 (Integrated NBT)","CurseForge":"integrated-nbt","Modrinth":""},{"Id":3636,"Name":"","CurseForge":"pillagers-plus","Modrinth":""},{"Id":3640,"Name":"","CurseForge":"abundance","Modrinth":"abundance"},{"Id":3643,"Name":"","CurseForge":"just-enough-calculation","Modrinth":""},{"Id":3644,"Name":"神话植物学 (MythicBotany)","CurseForge":"mythicbotany","Modrinth":"mythicbotany"},{"Id":3645,"Name":"怪物增强 (Improved Mobs)","CurseForge":"improved-mobs","Modrinth":"improved-mobs"},{"Id":3645,"Name":"怪物增强 (Improved Mobs)","CurseForge":"improved-mobs-fabric","Modrinth":""},{"Id":3646,"Name":"无上限附魔 (Limitless)","CurseForge":"limitless","Modrinth":""},{"Id":3647,"Name":"禁用VPN (VPN Blocker)","CurseForge":"vpn-blocker","Modrinth":""},{"Id":3648,"Name":"","CurseForge":"premium-wood","Modrinth":"premium-wood"},{"Id":3649,"Name":"","CurseForge":"tenshilib","Modrinth":"tenshilib"},{"Id":3649,"Name":"","CurseForge":"tenshilib-fabric","Modrinth":""},{"Id":3650,"Name":"随意传送门 (RandomPortals)","CurseForge":"randomportals","Modrinth":""},{"Id":3651,"Name":"配置界面 (Configured)","CurseForge":"configured","Modrinth":""},{"Id":3651,"Name":"配置界面 (Configured)","CurseForge":"configured-fabric","Modrinth":""},{"Id":3653,"Name":"抓水母 (Jellyfishing)","CurseForge":"jellyfishing","Modrinth":"jellyfishing"},{"Id":3654,"Name":"","CurseForge":"accurate-block-placement","Modrinth":""},{"Id":3655,"Name":"放置专家 (Pro Placer)","CurseForge":"pro-placer","Modrinth":"pro-placer"},{"Id":3656,"Name":"","CurseForge":"farmers-delight-compats","Modrinth":""},{"Id":3657,"Name":"农夫的茶 (Farmer's Tea)","CurseForge":"farmers-tea","Modrinth":""},{"Id":3658,"Name":"","CurseForge":"farmers-delight-integration","Modrinth":""},{"Id":3659,"Name":"","CurseForge":"magical-psi-redux","Modrinth":""},{"Id":3660,"Name":"铁砧修复 (Anvil Fix)","CurseForge":"anvil-fix","Modrinth":"anvil-fix"},{"Id":3661,"Name":"","CurseForge":"no-increasing-repair-cost","Modrinth":"no-increasing-repair-cost"},{"Id":3662,"Name":"羊毛神殿 (Wool Temples)","CurseForge":"wool-temples","Modrinth":"wool-temples"},{"Id":3663,"Name":"经验装瓶 (EXP Bottling)","CurseForge":"exp-bottling","Modrinth":""},{"Id":3664,"Name":"","CurseForge":"buildersaddition","Modrinth":"buildersaddition"},{"Id":3665,"Name":"格雷科技重制版 (GT: Remastered)","CurseForge":"gt-remastered","Modrinth":""},{"Id":3666,"Name":"提示 (Tips)","CurseForge":"tips","Modrinth":"tips"},{"Id":3667,"Name":"","CurseForge":"Interactio","Modrinth":""},{"Id":3668,"Name":"进度之书 (Advancement Book)","CurseForge":"advancement-book","Modrinth":""},{"Id":3669,"Name":"抽屉提示 (Drawers Tooltip)","CurseForge":"drawers-tooltip","Modrinth":"drawers-tooltip"},{"Id":3670,"Name":"天境:重生 (Paradise Lost)","CurseForge":"paradise-lost","Modrinth":"paradise-lost"},{"Id":3672,"Name":"格雷的食物 (GregFood)","CurseForge":"","Modrinth":"gregfood"},{"Id":3673,"Name":"更多水母 (More Jellyfish)","CurseForge":"more-jellyfish","Modrinth":"more-jellyfish"},{"Id":3674,"Name":"","CurseForge":"easy-ladders","Modrinth":""},{"Id":3675,"Name":"","CurseForge":"beta-dannys-expansion","Modrinth":""},{"Id":3676,"Name":"","CurseForge":"inventory-tweaks-renewed","Modrinth":""},{"Id":3677,"Name":"高级运行时资源包 (Advanced Runtime Resource Packs)","CurseForge":"arrp","Modrinth":"arrp"},{"Id":3678,"Name":"","CurseForge":"tougher-glass-forge","Modrinth":""},{"Id":3678,"Name":"","CurseForge":"tougher-glass-fabric","Modrinth":""},{"Id":3679,"Name":"","CurseForge":"differentiate","Modrinth":""},{"Id":3680,"Name":"","CurseForge":"cookie-core-fabric","Modrinth":""},{"Id":3681,"Name":"图片地图转换器 (Image World Generator)","CurseForge":"image-world-generator","Modrinth":""},{"Id":3682,"Name":"集成物流 (Inductive Logistics)","CurseForge":"inductive-logistics","Modrinth":""},{"Id":3684,"Name":"","CurseForge":"automatic-path","Modrinth":""},{"Id":3686,"Name":"","CurseForge":"morevanillalib","Modrinth":"morevanillalib"},{"Id":3687,"Name":"","CurseForge":"vanilla-excavators","Modrinth":"vanilla-excavators"},{"Id":3687,"Name":"","CurseForge":"vanilla-excavators-forge","Modrinth":""},{"Id":3688,"Name":"","CurseForge":"dynagear","Modrinth":""},{"Id":3689,"Name":"更多原版工具 (MoreVanillaTools)","CurseForge":"morevanillatools","Modrinth":"morevanillatools"},{"Id":3690,"Name":"","CurseForge":"colorful-health-bar","Modrinth":""},{"Id":3691,"Name":"","CurseForge":"tipline","Modrinth":""},{"Id":3692,"Name":"终极飞机 (Ultimate Plane Mod)","CurseForge":"ultimate-plane-mod","Modrinth":"ultimate-plane-mod"},{"Id":3693,"Name":"简单的语音聊天 (Simple Voice Chat)","CurseForge":"simple-voice-chat","Modrinth":"simple-voice-chat"},{"Id":3694,"Name":"","CurseForge":"not-enough-milk","Modrinth":""},{"Id":3695,"Name":"ewewukek 的火枪模组 (ewewukek's Musket mod)","CurseForge":"ewewukeks-musket-mod","Modrinth":"musket-mod"},{"Id":3697,"Name":"","CurseForge":"irisshaders","Modrinth":"iris"},{"Id":3698,"Name":"世界多线程化 (DimensionalThreading)","CurseForge":"","Modrinth":"dimthread"},{"Id":3699,"Name":"处理仓 (Chambers)","CurseForge":"chambers","Modrinth":""},{"Id":3701,"Name":"钠 · 扩展 (Sodium Extra)","CurseForge":"sodium-extra","Modrinth":"sodium-extra"},{"Id":3702,"Name":"砂轮增强 (Grind Enchantments)","CurseForge":"grind-enchantments","Modrinth":"grind-enchantments"},{"Id":3703,"Name":"语音聊天 (Voice Chat)","CurseForge":"voice-chat","Modrinth":""},{"Id":3705,"Name":"","CurseForge":"xnet-gases","Modrinth":"xnet-gases"},{"Id":3706,"Name":"","CurseForge":"filing-cabinets-refurbished","Modrinth":""},{"Id":3708,"Name":"","CurseForge":"dropz","Modrinth":"dropz"},{"Id":3709,"Name":"","CurseForge":"figura","Modrinth":"figura"},{"Id":3711,"Name":"","CurseForge":"autopilot","Modrinth":""},{"Id":3711,"Name":"","CurseForge":"autopilot-fabric","Modrinth":""},{"Id":3712,"Name":"AE2无线终端 (Applied Energistics 2 Wireless Terminals)","CurseForge":"applied-energistics-2-wireless-terminals","Modrinth":"applied-energistics-2-wireless-terminals"},{"Id":3713,"Name":"","CurseForge":"appliedenergisticstweaker","Modrinth":""},{"Id":3714,"Name":"睡袋 (Sleeping Bags)","CurseForge":"sleeping-bags","Modrinth":"sleeping-bags"},{"Id":3715,"Name":"","CurseForge":"mass-inscriber","Modrinth":""},{"Id":3716,"Name":"爆炸保护 (SecureExplosion)","CurseForge":"","Modrinth":"secureexplosion"},{"Id":3717,"Name":"随机标题 (Random Title)","CurseForge":"random-title","Modrinth":""},{"Id":3718,"Name":"","CurseForge":"astikorcarts","Modrinth":""},{"Id":3719,"Name":"背包同步 (InvSync)","CurseForge":"","Modrinth":"invsync"},{"Id":3720,"Name":"JEI进度 (Just Enough Advancements)","CurseForge":"jea","Modrinth":"jea"},{"Id":3721,"Name":"把未来带回现实 - <2.7.0 (Et Futurum Requiem)","CurseForge":"et-futurum-requiem","Modrinth":""},{"Id":3721,"Name":"把未来带回现实 (Et Futurum Requiem) - ≥2.4.0","CurseForge":"","Modrinth":"etfuturum"},{"Id":3722,"Name":"更好的 OP (Better Op)","CurseForge":"better-op","Modrinth":""},{"Id":3723,"Name":"","CurseForge":"fastworkbench-minus-replacement","Modrinth":""},{"Id":3724,"Name":"绯红指南针 (Crimson Compass)","CurseForge":"crimson-compass","Modrinth":""},{"Id":3725,"Name":"匠魂 (Tinkers' Construct)","CurseForge":"tinkers-construct","Modrinth":"tinkers-construct"},{"Id":3726,"Name":"","CurseForge":"ryoramas-terraria-mod","Modrinth":""},{"Id":3727,"Name":"","CurseForge":"steves-workshop","Modrinth":""},{"Id":3728,"Name":"高级末影箱 (Upgraded Ender Chests)","CurseForge":"upgraded-ender-chests","Modrinth":"upgraded-ender-chests"},{"Id":3729,"Name":"","CurseForge":"ydm-ygo-dueling-mod-ii","Modrinth":""},{"Id":3730,"Name":"整合包版本工具 (Versioner)","CurseForge":"versioner","Modrinth":""},{"Id":3732,"Name":"","CurseForge":"engineers-workshop-reborn","Modrinth":""},{"Id":3734,"Name":"沉浸传送门服务端版 (Immersive Cursedness)","CurseForge":"","Modrinth":"immersivecursedness"},{"Id":3736,"Name":"经验护符 (Crimson XP Charm)","CurseForge":"crimson-xp-charm","Modrinth":""},{"Id":3737,"Name":"","CurseForge":"locatebiome","Modrinth":""},{"Id":3738,"Name":"","CurseForge":"enderman-evolution","Modrinth":""},{"Id":3739,"Name":"精妙背包 (Sophisticated Backpacks)","CurseForge":"sophisticated-backpacks","Modrinth":"sophisticated-backpacks"},{"Id":3740,"Name":"","CurseForge":"age-of-exile","Modrinth":""},{"Id":3741,"Name":"","CurseForge":"whoosh","Modrinth":""},{"Id":3742,"Name":"泛银河系格雷科技 (GregTech Intergalactical)","CurseForge":"gregtech-intergalactical","Modrinth":""},{"Id":3743,"Name":"模组目录 (Catalogue)","CurseForge":"catalogue","Modrinth":""},{"Id":3743,"Name":"模组目录 (Catalogue)","CurseForge":"catalogue-fabric","Modrinth":""},{"Id":3744,"Name":"","CurseForge":"libblockattributes","Modrinth":""},{"Id":3746,"Name":"","CurseForge":"dungeons-of-exile","Modrinth":""},{"Id":3747,"Name":"","CurseForge":"lots-more-food-forge","Modrinth":"lots-more-food"},{"Id":3747,"Name":"","CurseForge":"lots-more-food-fabric","Modrinth":""},{"Id":3749,"Name":"","CurseForge":"necromancy","Modrinth":""},{"Id":3750,"Name":"","CurseForge":"library-of-exile","Modrinth":"library-of-exile"},{"Id":3752,"Name":"","CurseForge":"variegated","Modrinth":""},{"Id":3753,"Name":"胸腔 (Chest Cavity)","CurseForge":"chest-cavity","Modrinth":"chest-cavity"},{"Id":3754,"Name":"音符盒扩展 (Extended Noteblocks)","CurseForge":"extended-note-block","Modrinth":""},{"Id":3755,"Name":"HBM的核科技重制版 (Hbm's Nuclear Tech Mod Reloaded)","CurseForge":"hbms-nuclear-tech-mod-reloaded","Modrinth":""},{"Id":3756,"Name":"加载时长显示 (Loading Timer)","CurseForge":"loading-timer","Modrinth":"loading-timer"},{"Id":3757,"Name":"","CurseForge":"ocrocketry","Modrinth":""},{"Id":3758,"Name":"","CurseForge":"chime-fabric","Modrinth":"chime"},{"Id":3759,"Name":"凋灵合金 (Witherite)","CurseForge":"witherite","Modrinth":"witherite"},{"Id":3760,"Name":"","CurseForge":"mermod-fabric","Modrinth":"mermod"},{"Id":3760,"Name":"","CurseForge":"mermod-neoforge","Modrinth":""},{"Id":3760,"Name":"人鱼尾 (Mermaid Tail Mod)","CurseForge":"mermaid-tail-mod","Modrinth":""},{"Id":3761,"Name":"天体矿工:核心 (Astromine: Core)","CurseForge":"astromine-core","Modrinth":""},{"Id":3762,"Name":"","CurseForge":"dungeondq","Modrinth":""},{"Id":3763,"Name":"动态的树:动态联合/集成动力附属 (Dynamic Trees - Integrated Dynamics)","CurseForge":"dynamic-trees-integrated-dynamics","Modrinth":""},{"Id":3764,"Name":"空岛建立者 (Skyblock Builder)","CurseForge":"skyblock-builder","Modrinth":"skyblock-builder"},{"Id":3765,"Name":"反传送门 (AntiPortals)","CurseForge":"antiportals","Modrinth":"antiportals"},{"Id":3766,"Name":"垃圾桶 (Trash Cans)","CurseForge":"trash-cans","Modrinth":"trash-cans"},{"Id":3767,"Name":"","CurseForge":"mattdahepic-core","Modrinth":""},{"Id":3768,"Name":"刷怪塔小帮手 (Mob Farm Helpers)","CurseForge":"mob-farm-helpers-forge","Modrinth":""},{"Id":3768,"Name":"刷怪塔小帮手 (Mob Farm Helpers)","CurseForge":"mob-farm-helpers-fabric","Modrinth":""},{"Id":3769,"Name":"金属灌木 (Metal Bushes)","CurseForge":"metal-bushes","Modrinth":""},{"Id":3772,"Name":"","CurseForge":"the-vanilla-experience","Modrinth":""},{"Id":3773,"Name":"","CurseForge":"flower-seeds","Modrinth":"flowerseeds"},{"Id":3777,"Name":"","CurseForge":"astemirs-forest-craft","Modrinth":""},{"Id":3778,"Name":"天体矿工:基础 (Astromine: Foundations)","CurseForge":"astromine-foundations","Modrinth":""},{"Id":3779,"Name":"机械动力:物品附加 (Create Stuff 'N Additions)","CurseForge":"create-stuff-additions","Modrinth":"create-stuff-additions"},{"Id":3780,"Name":"台阶型设备 (Slab Machines)","CurseForge":"slab-machines","Modrinth":"slab-machines"},{"Id":3781,"Name":"更多机械动力物品 (More Create Stuffs)","CurseForge":"more-create-stuffs","Modrinth":""},{"Id":3782,"Name":"RS 无限范围增幅卡 (RSInfinityBooster)","CurseForge":"rsinfinitybooster","Modrinth":"rsinfinitybooster"},{"Id":3783,"Name":"","CurseForge":"cuneiform","Modrinth":""},{"Id":3784,"Name":"","CurseForge":"terraincognita","Modrinth":""},{"Id":3785,"Name":"","CurseForge":"cloth-api","Modrinth":""},{"Id":3786,"Name":"游戏内输入法 (IngameIME)","CurseForge":"ingameime","Modrinth":""},{"Id":3787,"Name":"YUNG 的要塞优化 (YUNG's Better Strongholds)","CurseForge":"yungs-better-strongholds","Modrinth":"yungs-better-strongholds"},{"Id":3787,"Name":"YUNG 的要塞优化 (YUNG's Better Strongholds)","CurseForge":"yungs-better-strongholds-fabric","Modrinth":""},{"Id":3787,"Name":"YUNG 的要塞优化 (YUNG's Better Strongholds)","CurseForge":"yungs-better-strongholds-neoforge","Modrinth":""},{"Id":3788,"Name":"暗色加载 (MojangDark)","CurseForge":"mojangdark","Modrinth":""},{"Id":3789,"Name":"天体矿工:科技 (Astromine: Technologies)","CurseForge":"astromine-technologies","Modrinth":""},{"Id":3790,"Name":"天体矿工:运输 (Astromine: Transportaions)","CurseForge":"astromine-transportations","Modrinth":""},{"Id":3791,"Name":"","CurseForge":"azuredooms-chunk-loader","Modrinth":""},{"Id":3792,"Name":"苦力怕孢子 (Creeper Spores)","CurseForge":"creeper-spores","Modrinth":"creeper-spores"},{"Id":3793,"Name":"更多的龙蛋 (More Dragon Eggs)","CurseForge":"more-dragon-eggs","Modrinth":""},{"Id":3794,"Name":"更多红石 (More Red)","CurseForge":"more-red","Modrinth":"more-red"},{"Id":3798,"Name":"无中生有:传承 - 通用机械扩展 (Ex Nihilo: Sequentia - Mekanism Addon)","CurseForge":"ex-nihilo-sequentia-mekanism-addon","Modrinth":""},{"Id":3799,"Name":"全景图 (Panorama)","CurseForge":"panorama","Modrinth":"swd-panorama"},{"Id":3800,"Name":"","CurseForge":"bgcore","Modrinth":""},{"Id":3801,"Name":"","CurseForge":"induction-charger","Modrinth":""},{"Id":3802,"Name":"","CurseForge":"tiered-forge","Modrinth":"tiered"},{"Id":3802,"Name":"","CurseForge":"tiered","Modrinth":""},{"Id":3803,"Name":"","CurseForge":"c-o-m-b-a-t","Modrinth":""},{"Id":3804,"Name":"","CurseForge":"burden-of-time","Modrinth":"burden-of-time"},{"Id":3805,"Name":"游戏菜单模组设定 (Game Menu Mod Option)","CurseForge":"gamemenumodoption","Modrinth":"gamemenumodoption"},{"Id":3806,"Name":"游戏菜单移除GFARB (Game Menu Remove GFARB)","CurseForge":"game-menu-remove-gfarb","Modrinth":"gamemenuremovegfarb"},{"Id":3807,"Name":"随机死亡消息 (RandomDeathMessage)","CurseForge":"randomdeathmessage","Modrinth":""},{"Id":3808,"Name":"无中生有:传承 - 应用能源2扩展 (Ex Nihilo: Sequentia - AE2 Addon)","CurseForge":"ex-nihilo-sequentia-ae2-addon","Modrinth":"ex-nihilo-sequentia-ae2-addon"},{"Id":3809,"Name":"甜蜜与魔法 (SweetMagic)","CurseForge":"sweetmagic","Modrinth":""},{"Id":3810,"Name":"天体矿工:探索 (Astromine: Discoveries)","CurseForge":"astromine-discoveries","Modrinth":""},{"Id":3811,"Name":"AzureDoom的天使指环 (AzureDooms Angel Ring)","CurseForge":"azuredooms-angel-ring","Modrinth":"azuredooms-angel-ring"},{"Id":3812,"Name":"列车手柄库 (ToggleLib)","CurseForge":"togglelib","Modrinth":""},{"Id":3813,"Name":"再生 (Regrowth)","CurseForge":"regrowth","Modrinth":"regrowth"},{"Id":3814,"Name":"","CurseForge":"mobs-main-menu","Modrinth":""},{"Id":3816,"Name":"混沌觉醒 (Chaos Awakens)","CurseForge":"chaos-awakens","Modrinth":"chaos-awakens"},{"Id":3817,"Name":"","CurseForge":"hot-or-not","Modrinth":""},{"Id":3818,"Name":"","CurseForge":"playerpig","Modrinth":""},{"Id":3819,"Name":"","CurseForge":"tumble-dryer","Modrinth":""},{"Id":3820,"Name":"","CurseForge":"cat-jammies","Modrinth":"cat-jammies"},{"Id":3821,"Name":"犀牛 (Rhino)","CurseForge":"rhino","Modrinth":"rhino"},{"Id":3822,"Name":"配方性能优化 (FastSuite)","CurseForge":"fastsuite","Modrinth":"fastsuite"},{"Id":3823,"Name":"跳舞生长一切 (Twerk To Grow All The Things)","CurseForge":"twerkitmeal","Modrinth":""},{"Id":3824,"Name":"热力集成 (Thermal Integration)","CurseForge":"thermal-integration","Modrinth":"thermal-integration"},{"Id":3825,"Name":"存钱罐 (Piggybanks)","CurseForge":"piggybanks","Modrinth":""},{"Id":3826,"Name":"","CurseForge":"in-control","Modrinth":"in-control"},{"Id":3827,"Name":"神秘农业:Fabric版 (Mystical Agriculture: Refabricated)","CurseForge":"mystical-agriculture-refabricated","Modrinth":""},{"Id":3828,"Name":"","CurseForge":"pedestals","Modrinth":""},{"Id":3829,"Name":"","CurseForge":"aerial-affinity","Modrinth":""},{"Id":3829,"Name":"","CurseForge":"aerial-affinity-fabric","Modrinth":""},{"Id":3830,"Name":"共产主义:生活与艺术 (Communism:Life and Art)","CurseForge":"communism-life-and-art","Modrinth":""},{"Id":3831,"Name":"战舞计划 (Project: War Dance)","CurseForge":"project-war-dance","Modrinth":"project-war-dance"},{"Id":3832,"Name":"更快的爬梯 (Faster Ladder Climbing)","CurseForge":"faster-ladder-climbing","Modrinth":"faster-ladder-climbing"},{"Id":3833,"Name":"无限+经验修补 (InfinityMending)","CurseForge":"infinitymending","Modrinth":"infinitymending"},{"Id":3834,"Name":"更好的经验修补 (Better Than Mending)","CurseForge":"better-than-mending","Modrinth":"better-than-mending"},{"Id":3835,"Name":"","CurseForge":"elenai-dodge-2","Modrinth":"elenai-dodge-2"},{"Id":3837,"Name":"","CurseForge":"taterzens-forge","Modrinth":"taterzens"},{"Id":3837,"Name":"","CurseForge":"taterzens","Modrinth":""},{"Id":3838,"Name":"龙之生存 (Dragon Survival) - 本体","CurseForge":"dragons-survival","Modrinth":""},{"Id":3838,"Name":"龙之生存 (Dragon Survival)","CurseForge":"","Modrinth":"aures-dragon-survival"},{"Id":3839,"Name":"","CurseForge":"","Modrinth":"legacy-mod-menu"},{"Id":3840,"Name":"禁用局域网作弊 (No LAN Cheats)","CurseForge":"no-lan-cheats","Modrinth":"no-lan-cheats"},{"Id":3841,"Name":"疾速加载 (DashLoader)","CurseForge":"dashloader","Modrinth":"dashloader"},{"Id":3842,"Name":"洞穴世界 (Caveworld 2)","CurseForge":"caveworld-2","Modrinth":""},{"Id":3844,"Name":"破坏进度 (Break Progress)","CurseForge":"break-progress","Modrinth":""},{"Id":3845,"Name":"物品模型修复 (Item Model Fix)","CurseForge":"item-model-fix","Modrinth":"item-model-fix"},{"Id":3847,"Name":"附加管道 (Additional Pipes for Buildcraft)","CurseForge":"additional-pipes-for-buildcraft","Modrinth":""},{"Id":3848,"Name":"","CurseForge":"chibi","Modrinth":""},{"Id":3849,"Name":"RF工具:实用设备 (RFTools Utility)","CurseForge":"rftools-utility","Modrinth":"rftools-utility"},{"Id":3850,"Name":"连接纹理Fabric版 (ConnectedTexturesMod for Fabric)","CurseForge":"ctm-fabric","Modrinth":""},{"Id":3851,"Name":"","CurseForge":"whats-that-slot","Modrinth":"whats-that-slot"},{"Id":3852,"Name":"","CurseForge":"pmmo-and-nbt-compat","Modrinth":""},{"Id":3853,"Name":"","CurseForge":"techstacks-heavy-machinery-mod","Modrinth":""},{"Id":3854,"Name":"蘑菇增强 (Enhanced Mushrooms)","CurseForge":"enhanced-mushrooms","Modrinth":"enhanced-mushrooms"},{"Id":3854,"Name":"蘑菇增强 (Enhanced Mushrooms)","CurseForge":"enhanced-mushrooms-fabric","Modrinth":""},{"Id":3855,"Name":"通用传送门 (Versatile Portals)","CurseForge":"versatile-portals","Modrinth":""},{"Id":3856,"Name":"刷怪蛋配方注册 (Spawn Egg Recipes)","CurseForge":"spawn-egg-recipes","Modrinth":""},{"Id":3857,"Name":"可配置的额外怪物掉落 (Configurable Extra Mob Drops)","CurseForge":"configurable-extra-mob-drops","Modrinth":"configurable-extra-mob-drops"},{"Id":3857,"Name":"可配置的额外怪物掉落 (Configurable Extra Mob Drops)","CurseForge":"configurable-extra-mob-drops-fabric","Modrinth":""},{"Id":3858,"Name":"刷怪笼增强 (Enhanced Mob Spawners)","CurseForge":"enhanced-mob-spawners","Modrinth":"enhanced-mob-spawners"},{"Id":3860,"Name":"","CurseForge":"autorun","Modrinth":""},{"Id":3861,"Name":"动物谷:农场 (Animania Farm)","CurseForge":"animania-farm","Modrinth":""},{"Id":3862,"Name":"动物谷:额外动物 (Animania Extra Animals)","CurseForge":"animania-extra","Modrinth":""},{"Id":3863,"Name":"动物谷:猫猫狗狗 (Animania Cats & Dogs)","CurseForge":"animania-cats-dogs","Modrinth":""},{"Id":3864,"Name":"更好的树叶重制版 (Better Foliage Renewed)","CurseForge":"better-foliage-renewed","Modrinth":"better-foliage-renewed"},{"Id":3865,"Name":"","CurseForge":"block-swap","Modrinth":"block-swap"},{"Id":3865,"Name":"","CurseForge":"block-swap-fabric","Modrinth":""},{"Id":3866,"Name":"玄武岩行者 (Basalt Walker)","CurseForge":"basalt-walker","Modrinth":"basalt-walker"},{"Id":3868,"Name":"无尽海洋:冒险 (Endless Ocean: Adventures)","CurseForge":"endless-ocean-adventures","Modrinth":""},{"Id":3868,"Name":"无尽海洋:冒险 (Endless Ocean: Adventures)","CurseForge":"endless-oceans-adventures-fabric","Modrinth":""},{"Id":3869,"Name":"","CurseForge":"bpm","Modrinth":""},{"Id":3870,"Name":"","CurseForge":"stone-circles","Modrinth":""},{"Id":3871,"Name":"相位药水 (Phase Potion)","CurseForge":"phase-potion","Modrinth":""},{"Id":3872,"Name":"白门的奇异附魔:苦痛长河 (MarbleGate's Exotic Enchantment: Flowing Agony)","CurseForge":"marblegates-exotic-enchantment-flowing-agony","Modrinth":"flowing-agony"},{"Id":3873,"Name":"","CurseForge":"measurements","Modrinth":"measurements"},{"Id":3874,"Name":"可见装备槽 (Visible Armor Slots)","CurseForge":"visible-armor-slots","Modrinth":""},{"Id":3874,"Name":"可见装备槽 (Visible Armor Slots)","CurseForge":"visible-armor-slots-unofficial","Modrinth":""},{"Id":3874,"Name":"可见装备槽 (Visible Armor Slots)","CurseForge":"armor-slots-in-other-inventories","Modrinth":""},{"Id":3875,"Name":"星际次元 (Space Dimensions / Moon and Space Dimensions)","CurseForge":"moon-and-space-dimensions-fabric","Modrinth":""},{"Id":3875,"Name":"星际次元 (Space Dimensions / Moon and Space Dimensions)","CurseForge":"space-dimensions-forge","Modrinth":""},{"Id":3877,"Name":"","CurseForge":"winged","Modrinth":"winged"},{"Id":3878,"Name":"幻灯片 (Slide Show)","CurseForge":"","Modrinth":"slideshow-fabric"},{"Id":3879,"Name":"生物阶段 (Mob Stages)","CurseForge":"mob-stages","Modrinth":""},{"Id":3880,"Name":"","CurseForge":"refooled","Modrinth":"refooled"},{"Id":3881,"Name":"更好的下界:Beta版 (BetterNether Beta)","CurseForge":"","Modrinth":"better-nether-beta"},{"Id":3882,"Name":"","CurseForge":"fabric-seasons","Modrinth":"fabric-seasons"},{"Id":3883,"Name":"脱水 (Dehydration)","CurseForge":"dehydration","Modrinth":"dehydration"},{"Id":3884,"Name":"村民物品化/简单村民 (Easy Villagers)","CurseForge":"easy-villagers","Modrinth":"easy-villagers"},{"Id":3885,"Name":"","CurseForge":"largebar","Modrinth":""},{"Id":3886,"Name":"","CurseForge":"tis-3d","Modrinth":"tis3d"},{"Id":3887,"Name":"假死修复 (Entity NaN Health Fix)","CurseForge":"entity-nan-health-fix","Modrinth":""},{"Id":3888,"Name":"铁氧体磁芯 (FerriteCore)","CurseForge":"ferritecore-fabric","Modrinth":"ferrite-core"},{"Id":3888,"Name":"铁氧体磁芯 (FerriteCore)","CurseForge":"ferritecore","Modrinth":""},{"Id":3889,"Name":"","CurseForge":"thaumcraft-research-patcher","Modrinth":""},{"Id":3890,"Name":"","CurseForge":"masterful-machinery","Modrinth":"masterful-machinery"},{"Id":3891,"Name":"Derec 的地球生物 (Derec's Earth Mobs)","CurseForge":"minecraft-earth-mod","Modrinth":"earth-mobs-mod"},{"Id":3892,"Name":"","CurseForge":"scotts-essential","Modrinth":""},{"Id":3893,"Name":"储物抽屉渲染配置 (DrawerFPS)","CurseForge":"drawerfps","Modrinth":""},{"Id":3895,"Name":"","CurseForge":"cursed-earth","Modrinth":""},{"Id":3895,"Name":"","CurseForge":"cursed-earth-fabric","Modrinth":""},{"Id":3896,"Name":"逆向交易 (sɹǝƃɐllᴉΛ)","CurseForge":"sll","Modrinth":""},{"Id":3897,"Name":"延迟表 (LagMeter)","CurseForge":"lagmeter","Modrinth":""},{"Id":3898,"Name":"Hexxit 装备 2 (Hexxit Gear R)","CurseForge":"hexxit-gear-2","Modrinth":"hexxit-gear-r"},{"Id":3899,"Name":"Scooty的植物大战僵尸重生 (Scootys Plants Vs. Zombies Regrown)","CurseForge":"scootys-plants-vs-zombies","Modrinth":""},{"Id":3903,"Name":"","CurseForge":"custom-machinery","Modrinth":"custom-machinery"},{"Id":3904,"Name":"","CurseForge":"bonsai-tree-crops","Modrinth":""},{"Id":3905,"Name":"","CurseForge":"rpgz","Modrinth":"rpgz"},{"Id":3908,"Name":"","CurseForge":"","Modrinth":"stationapi"},{"Id":3909,"Name":"","CurseForge":"scavenge-timing-addon","Modrinth":""},{"Id":3910,"Name":"粒子渲染机制优化 (Cull Particles)","CurseForge":"cull-particles","Modrinth":""},{"Id":3910,"Name":"粒子渲染机制优化 (Cull Particles)","CurseForge":"cull-particles-fabric","Modrinth":""},{"Id":3911,"Name":"魔女的扫帚 (Majo's broom)","CurseForge":"majos-broom","Modrinth":""},{"Id":3912,"Name":"无缝加载界面 (Seamless Loading Screen)","CurseForge":"seamless-loading-screen","Modrinth":"seamless-loading-screen"},{"Id":3912,"Name":"无缝加载界面 (Seamless Loading Screen)","CurseForge":"seamless-loading-screen-forge","Modrinth":""},{"Id":3913,"Name":"夸克背包饰品 (Curios Quark Oddities Backpack)","CurseForge":"curios-quark-oddities-backpack","Modrinth":""},{"Id":3914,"Name":"","CurseForge":"nature-expansion","Modrinth":""},{"Id":3917,"Name":"","CurseForge":"electromagnetic-coherence","Modrinth":""},{"Id":3918,"Name":"","CurseForge":"amaleafs-expantion-world-mod","Modrinth":""},{"Id":3919,"Name":"元素西瓜 (The Elemelon Mod)","CurseForge":"the-elemelon-mod","Modrinth":""},{"Id":3920,"Name":"钻石压缩 (Diamonds Compressor SP)","CurseForge":"dcsp","Modrinth":""},{"Id":3921,"Name":"","CurseForge":"corpse-complex","Modrinth":"corpse-complex"},{"Id":3922,"Name":"模块化语音聊天 (ModularVoiceChat)","CurseForge":"modularvoicechat","Modrinth":""},{"Id":3923,"Name":"鞘翅插槽 / 鞘翅槽位 (Curious Elytra / Elytra Trinket / Elytra Slot)","CurseForge":"elytra-slot","Modrinth":"elytra-slot"},{"Id":3923,"Name":"鞘翅插槽 / 鞘翅槽位 (Curious Elytra / Elytra Trinket / Elytra Slot)","CurseForge":"elytra-slot-fabric","Modrinth":""},{"Id":3925,"Name":"匠魂兼容 (TConstructCompatible)","CurseForge":"tconstructcompatible","Modrinth":""},{"Id":3927,"Name":"","CurseForge":"incubation","Modrinth":"incubation"},{"Id":3929,"Name":"奈落魔法学 (AbyssMana)","CurseForge":"abyssmana","Modrinth":""},{"Id":3931,"Name":"","CurseForge":"create-goggles","Modrinth":"create-goggles"},{"Id":3933,"Name":"彩色提示框 (Coloured Tooltips)","CurseForge":"coloured-tooltips","Modrinth":"coloured-tooltips"},{"Id":3934,"Name":"魔法材料 (Magical Materials)","CurseForge":"magicraft-magic","Modrinth":""},{"Id":3935,"Name":"荧石矿石 (Glowstone Ores)","CurseForge":"glowstone-ores","Modrinth":""},{"Id":3936,"Name":"","CurseForge":"more-wires","Modrinth":""},{"Id":3937,"Name":"","CurseForge":"alexandrite-and-more","Modrinth":""},{"Id":3938,"Name":"终局材料 (Endgame Materials)","CurseForge":"endgame-materials","Modrinth":""},{"Id":3939,"Name":"更多圆石 (More Cobblestone)","CurseForge":"more-cobblestone","Modrinth":""},{"Id":3940,"Name":"野生地狱疣 (Wild Netherwart)","CurseForge":"wild-netherwart","Modrinth":""},{"Id":3941,"Name":"元素周期表 (The Periodic Table)","CurseForge":"the-periodic-table-mod","Modrinth":""},{"Id":3942,"Name":"","CurseForge":"adamantium-in-minecraft","Modrinth":""},{"Id":3943,"Name":"","CurseForge":"forgerocks","Modrinth":""},{"Id":3944,"Name":"弹道学 (Ballistix)","CurseForge":"ballistix","Modrinth":"ballistix"},{"Id":3945,"Name":"","CurseForge":"wireless-industry","Modrinth":""},{"Id":3946,"Name":"生活调味料:托尼欧版 (Spice of Life: Tonio Editon)","CurseForge":"spice-of-life-tonio-edition","Modrinth":""},{"Id":3947,"Name":"尸壳生成微调 (Husk Spawn)","CurseForge":"husk-spawn","Modrinth":"husk-spawn"},{"Id":3947,"Name":"尸壳生成微调 (Husk Spawn)","CurseForge":"husk-spawn-fabric","Modrinth":""},{"Id":3948,"Name":"工匠工具 (Artisan Tools)","CurseForge":"artisan-tools-1-16","Modrinth":""},{"Id":3949,"Name":"","CurseForge":"yttr","Modrinth":"yttr"},{"Id":3950,"Name":"","CurseForge":"wisla","Modrinth":""},{"Id":3951,"Name":"兼容Mixin0.7-0.8 (Mixin 0.7-0.8 Compatibility)","CurseForge":"mixin-0-7-0-8-compatibility","Modrinth":"mixincompat"},{"Id":3952,"Name":"远平面2 (Far Plane Two)","CurseForge":"farplanetwo","Modrinth":""},{"Id":3953,"Name":"","CurseForge":"xenoclus-one","Modrinth":""},{"Id":3954,"Name":"","CurseForge":"satako-library","Modrinth":"satako"},{"Id":3954,"Name":"","CurseForge":"satako-fabric","Modrinth":""},{"Id":3955,"Name":"独特的附魔:效用扩展 (Unique Enchantments - Utils)","CurseForge":"unique-enchantments-utils","Modrinth":""},{"Id":3956,"Name":"","CurseForge":"forge-ae2-additional-opportunity","Modrinth":"ae2ao"},{"Id":3956,"Name":"","CurseForge":"ae2ao","Modrinth":""},{"Id":3956,"Name":"","CurseForge":"legacy-ae2-additional-opportunity","Modrinth":""},{"Id":3957,"Name":"","CurseForge":"iconexporter","Modrinth":"icon-exporter"},{"Id":3958,"Name":"潜影盒插槽/潜影盒槽位 (Shulker Box Slot)","CurseForge":"curious-shulker-boxes","Modrinth":"shulker-box-slot"},{"Id":3958,"Name":"潜影盒插槽/潜影盒槽位 (Shulker Box Slot)","CurseForge":"curious-shulker-boxes-fabric","Modrinth":""},{"Id":3959,"Name":"","CurseForge":"xenoclus-2","Modrinth":""},{"Id":3960,"Name":"深岩之下 (Darker Depths)","CurseForge":"darker-depths","Modrinth":"darker-depths"},{"Id":3961,"Name":"","CurseForge":"terracraft-journey","Modrinth":""},{"Id":3962,"Name":"太阳灶 (Solar Cooker)","CurseForge":"solar-cooker","Modrinth":"solar-cooker"},{"Id":3964,"Name":"","CurseForge":"create-addon","Modrinth":""},{"Id":3965,"Name":"","CurseForge":"boat-contraptions","Modrinth":""},{"Id":3966,"Name":"末影裂缝 (Ender Rift)","CurseForge":"ender-rift","Modrinth":""},{"Id":3968,"Name":"","CurseForge":"splashanimation","Modrinth":""},{"Id":3969,"Name":"继续按钮 (Continue Button)","CurseForge":"continue-button","Modrinth":"continue-button"},{"Id":3970,"Name":"化学工艺 (Chem Craft)","CurseForge":"chem-craft","Modrinth":""},{"Id":3971,"Name":"时间之瓶 (Time in a bottle standalone)","CurseForge":"time-in-a-bottle-standalone","Modrinth":""},{"Id":3973,"Name":"压缩草 (Compressed Grass)","CurseForge":"compressed-grass","Modrinth":""},{"Id":3974,"Name":"苹果派 (ApplePie)","CurseForge":"applepie","Modrinth":""},{"Id":3975,"Name":"","CurseForge":"doles-mod","Modrinth":""},{"Id":3976,"Name":"无中生有:传承 - 热力扩展 (Ex Nihilo: Sequentia - Thermal Addon)","CurseForge":"ex-nihilo-sequentia-thermal-addon","Modrinth":"ex-nihilo-sequentia-thermal-addon"},{"Id":3977,"Name":"无中生有:传承 - 植物魔法扩展 (Ex Naturae)","CurseForge":"ex-naturae","Modrinth":"ex-naturae"},{"Id":3978,"Name":"无中生有:传承 - 匠魂扩展 (Ex Nihilo: Sequentia - Tinkers Addon)","CurseForge":"ex-nihilo-sequentia-tinkers-addon","Modrinth":""},{"Id":3979,"Name":"","CurseForge":"iron-jetpacks","Modrinth":"iron-jetpacks"},{"Id":3979,"Name":"","CurseForge":"iron-jetpacks-fabric","Modrinth":""},{"Id":3981,"Name":"游戏时长计数器 (Playtime Counter)","CurseForge":"playtime-counter-fabric","Modrinth":""},{"Id":3982,"Name":"实体旗帜 (Entity Banners)","CurseForge":"entity-banners","Modrinth":""},{"Id":3983,"Name":"","CurseForge":"curious-jetpacks","Modrinth":""},{"Id":3984,"Name":"","CurseForge":"curious-armor-stands","Modrinth":"curious-armor-stands"},{"Id":3984,"Name":"","CurseForge":"curious-armor-stands-fabric","Modrinth":""},{"Id":3985,"Name":"","CurseForge":"trinkets-fabric","Modrinth":"trinkets"},{"Id":3986,"Name":"神秘学 (Occultism)","CurseForge":"occultism","Modrinth":"occultism"},{"Id":3987,"Name":"流浪者生成微调 (Stray Spawn)","CurseForge":"stray-spawn","Modrinth":"stray-spawn"},{"Id":3987,"Name":"流浪者生成微调 (Stray Spawn)","CurseForge":"stray-spawn-fabric","Modrinth":""},{"Id":3988,"Name":"哞菇生成微调 (Mooshroom Spawn)","CurseForge":"mooshroom-spawn","Modrinth":"mooshroom-spawn"},{"Id":3988,"Name":"哞菇生成微调 (Mooshroom Spawn)","CurseForge":"mooshroom-spawn-fabric","Modrinth":""},{"Id":3989,"Name":"","CurseForge":"cardinal-components","Modrinth":"cardinal-components-api"},{"Id":3992,"Name":"集成代理器 (Integrated Proxy)","CurseForge":"integrated-proxy","Modrinth":""},{"Id":3993,"Name":"圆石工作台 (A Cobblestone Crafting Table)","CurseForge":"a-cobblestone-crafting-table","Modrinth":""},{"Id":3994,"Name":"","CurseForge":"colored-iron","Modrinth":""},{"Id":3995,"Name":"","CurseForge":"final-kobold","Modrinth":""},{"Id":3996,"Name":"耳朵 (Ears)","CurseForge":"ears","Modrinth":"ears"},{"Id":3997,"Name":"","CurseForge":"female-gender","Modrinth":"female-gender"},{"Id":3997,"Name":"","CurseForge":"female-gender-neoforge","Modrinth":""},{"Id":3998,"Name":"","CurseForge":"consistencyplus","Modrinth":"consistencyplus"},{"Id":3999,"Name":"模块化战争/模块化武装 (ModularWarfare)","CurseForge":"modularwarfare","Modrinth":""},{"Id":4000,"Name":"","CurseForge":"mputils-basic-tools","Modrinth":""},{"Id":4001,"Name":"","CurseForge":"the-agartha-mod","Modrinth":"squiggless-agartha-mod"},{"Id":4002,"Name":"花式降落 (Falling With Style)","CurseForge":"falling-with-style","Modrinth":""},{"Id":4003,"Name":"","CurseForge":"valhelsia-core","Modrinth":"valhelsia-core"},{"Id":4005,"Name":"吃不停 (AlwaysEat)","CurseForge":"alwayseat","Modrinth":""},{"Id":4006,"Name":"游戏中中文输入法冲突修复 (InputMethodBlocker)","CurseForge":"","Modrinth":"inputmethodblocker"},{"Id":4009,"Name":"深海 (Aquarium)","CurseForge":"aquarium","Modrinth":""},{"Id":4010,"Name":"","CurseForge":"mixin-booter","Modrinth":"mixinbooter"},{"Id":4012,"Name":"","CurseForge":"jrds-moneymod","Modrinth":""},{"Id":4013,"Name":"骷髅维度 (SkeletDimension)","CurseForge":"skeletdimension","Modrinth":""},{"Id":4014,"Name":"巧制寿司 (Sushi Go Crafting)","CurseForge":"sushigocrafting","Modrinth":"sushigocrafting"},{"Id":4015,"Name":"","CurseForge":"shrines-structures","Modrinth":"shrines"},{"Id":4016,"Name":"","CurseForge":"valhelsia-tweaks","Modrinth":""},{"Id":4017,"Name":"懒人AE2 1.16+ (Lazier AE2)","CurseForge":"lazierae2","Modrinth":"lazierae2"},{"Id":4018,"Name":"","CurseForge":"magical-crops-core","Modrinth":""},{"Id":4019,"Name":"","CurseForge":"magical-crops-decorative","Modrinth":""},{"Id":4020,"Name":"","CurseForge":"magical-crops-armoury","Modrinth":""},{"Id":4022,"Name":"简单经济 (SimpleEconomy)","CurseForge":"simpleeco","Modrinth":""},{"Id":4023,"Name":"","CurseForge":"vistas","Modrinth":"vistas"},{"Id":4025,"Name":"","CurseForge":"fish-in-planks","Modrinth":""},{"Id":4026,"Name":"","CurseForge":"fish-on-the-line","Modrinth":"fish-on-the-line"},{"Id":4026,"Name":"","CurseForge":"fish-on-the-line-fabric","Modrinth":""},{"Id":4027,"Name":"鱼栅 (Fish Traps)","CurseForge":"fish-traps","Modrinth":""},{"Id":4028,"Name":"","CurseForge":"combustive-fishing","Modrinth":"combustive-fishing"},{"Id":4029,"Name":"","CurseForge":"fabric-survival-island","Modrinth":"survival-island"},{"Id":4030,"Name":"索尼克工艺 (SoniCraft)","CurseForge":"sonicraft","Modrinth":"sonicraft"},{"Id":4031,"Name":"","CurseForge":"islands","Modrinth":"islands"},{"Id":4032,"Name":"起源非官方Forge版 (Origins (Forge))","CurseForge":"origins-forge","Modrinth":"origins-forge"},{"Id":4033,"Name":"","CurseForge":"magic-feather","Modrinth":""},{"Id":4034,"Name":"","CurseForge":"alet","Modrinth":"a-little-extra-tiles"},{"Id":4035,"Name":"","CurseForge":"netheriteplus","Modrinth":""},{"Id":4036,"Name":"","CurseForge":"the-survivalists-mod","Modrinth":""},{"Id":4037,"Name":"","CurseForge":"campfire-overhaul","Modrinth":""},{"Id":4038,"Name":"","CurseForge":"shatter","Modrinth":""},{"Id":4039,"Name":"电动平衡车 (Electric Self-balance Scooters)","CurseForge":"electric-self-balance-scooters","Modrinth":""},{"Id":4040,"Name":"","CurseForge":"rats-mischief","Modrinth":"rats-mischief"},{"Id":4041,"Name":"","CurseForge":"dream-rng","Modrinth":""},{"Id":4042,"Name":"","CurseForge":"wandering-trader-improvements","Modrinth":""},{"Id":4044,"Name":"不毛之地:重生 (Wasteland Reborn)","CurseForge":"wasteland-reborn","Modrinth":""},{"Id":4045,"Name":"","CurseForge":"skds-core","Modrinth":""},{"Id":4046,"Name":"末影科技 (Ender Tech)","CurseForge":"endertech","Modrinth":""},{"Id":4047,"Name":"末影猪 (Enderpig Mod)","CurseForge":"enderpig-mod","Modrinth":""},{"Id":4049,"Name":"镇压前端召唤 (No No-AI Spawn)","CurseForge":"no-no-ai-spawn","Modrinth":""},{"Id":4050,"Name":"枪,炮,原子弹! (Guns, Rockets and Atomic Explosions)","CurseForge":"atomic-bomb-1-16","Modrinth":""},{"Id":4051,"Name":"简单经济:牌子商店 (SE: Sign Shop)","CurseForge":"se-sign-shop","Modrinth":""},{"Id":4053,"Name":"","CurseForge":"fancymenu","Modrinth":"fancymenu"},{"Id":4053,"Name":"","CurseForge":"fancymenu-fabric","Modrinth":""},{"Id":4054,"Name":"卤素 (Halogen)","CurseForge":"halogen","Modrinth":""},{"Id":4055,"Name":"泽塔 (ZetaForged / Zeta's Mod)","CurseForge":"zetamod","Modrinth":"zetaforged"},{"Id":4058,"Name":"","CurseForge":"wholetreeaxe","Modrinth":""},{"Id":4059,"Name":"高清截图Fabric (Fabrishot)","CurseForge":"fabrishot","Modrinth":"fabrishot"},{"Id":4060,"Name":"物质化 (Materialisation)","CurseForge":"materialisation","Modrinth":""},{"Id":4060,"Name":"物质化 (Materialisation)","CurseForge":"materialisation3","Modrinth":""},{"Id":4061,"Name":"配方缓冲 (RecipeBuffers)","CurseForge":"recipebuffers","Modrinth":""},{"Id":4063,"Name":"传送枪 Fabric (Portal Gun Fabric)","CurseForge":"portal-gun-fabric","Modrinth":""},{"Id":4064,"Name":"","CurseForge":"incendium","Modrinth":"incendium"},{"Id":4065,"Name":"","CurseForge":"","Modrinth":"new-frontier-craft"},{"Id":4066,"Name":"合作进度 (Cooperative Advancements)","CurseForge":"cooperative-advancements","Modrinth":"cooperative-advancements"},{"Id":4066,"Name":"合作进度 (Cooperative Advancements)","CurseForge":"cooperative-advancements-fabric","Modrinth":""},{"Id":4067,"Name":"","CurseForge":"lightstones","Modrinth":""},{"Id":4068,"Name":"","CurseForge":"openbackup","Modrinth":""},{"Id":4069,"Name":"肥胖经验球 (Fat Experience Orbs)","CurseForge":"fat-experience-orbs","Modrinth":"fat-experience-orbs"},{"Id":4070,"Name":"更好的管道 (Better Pipes)","CurseForge":"better-pipes","Modrinth":""},{"Id":4071,"Name":"","CurseForge":"truetype-font-replacement","Modrinth":""},{"Id":4072,"Name":"","CurseForge":"fluidlogged-api","Modrinth":"fluidlogged-api"},{"Id":4073,"Name":"火花 (spark)","CurseForge":"spark","Modrinth":"spark"},{"Id":4074,"Name":"","CurseForge":"mco","Modrinth":""},{"Id":4075,"Name":"","CurseForge":"guardians-galore","Modrinth":""},{"Id":4076,"Name":"","CurseForge":"cogwheel-tweaker","Modrinth":""},{"Id":4077,"Name":"超大群系维度 (Ultra Amplified Dimension)","CurseForge":"ultra-amplified-mod","Modrinth":"ultra-amplified-dimension"},{"Id":4077,"Name":"超大群系维度 (Ultra Amplified Dimension)","CurseForge":"ultra-amplified-dimension-fabric","Modrinth":"ultra-amplified-dimension-fabric"},{"Id":4078,"Name":"经典艺术 (Classical Art)","CurseForge":"classical-art","Modrinth":""},{"Id":4078,"Name":"经典艺术 (Classical Art)","CurseForge":"classical-art-fabric","Modrinth":""},{"Id":4079,"Name":"等价饰品 (EMC Baubles)","CurseForge":"emc-baubles","Modrinth":""},{"Id":4081,"Name":"","CurseForge":"lag-removal","Modrinth":""},{"Id":4082,"Name":"","CurseForge":"gender","Modrinth":""},{"Id":4084,"Name":"","CurseForge":"ticktock","Modrinth":"servertick"},{"Id":4086,"Name":"FPS减速器(Fabric) (FPS Reducer (For Fabric))","CurseForge":"fps-reducre-for-fabric","Modrinth":""},{"Id":4087,"Name":"艺术?火炮! (Art? Artillery!)","CurseForge":"art-artillery","Modrinth":""},{"Id":4088,"Name":"我的菜单 Fabric 版 (MineMenuFabric)","CurseForge":"minemenufabric","Modrinth":"minemenufabric"},{"Id":4089,"Name":"","CurseForge":"","Modrinth":"tabtps"},{"Id":4090,"Name":"","CurseForge":"afkpeace","Modrinth":"afkpeace"},{"Id":4092,"Name":"","CurseForge":"secret-rooms-fabric","Modrinth":"secret-rooms-fabric"},{"Id":4093,"Name":"平滑区块加载 (Smooth Chunks)","CurseForge":"smooth-chunks","Modrinth":"smooth-chunks"},{"Id":4094,"Name":"饱和度溢出 (SaturationOverflow)","CurseForge":"saturationoverflow","Modrinth":""},{"Id":4096,"Name":"幻影之血 (Phantom Blood)","CurseForge":"phantom-blood","Modrinth":"phantomblood"},{"Id":4098,"Name":"可搜索容器 (Searchable Containers)","CurseForge":"searchable-containers","Modrinth":""},{"Id":4101,"Name":"集成扩展 (Integrated Additions)","CurseForge":"integrated-additions","Modrinth":""},{"Id":4102,"Name":"火绳枪 (Matchlock Guns)","CurseForge":"matchlock-guns","Modrinth":""},{"Id":4103,"Name":"自动切换工具 (AutoSwitch)","CurseForge":"fabric-autoswitch","Modrinth":"autoswitch"},{"Id":4104,"Name":"一键背包整理Next (Inventory Profiles Next)","CurseForge":"inventory-profiles-next","Modrinth":"inventory-profiles-next"},{"Id":4105,"Name":"钻头 (Drill)","CurseForge":"drill","Modrinth":""},{"Id":4106,"Name":"矿物树 (Ore Tree)","CurseForge":"ore-tree","Modrinth":""},{"Id":4107,"Name":"","CurseForge":"ferdinands-flowers","Modrinth":""},{"Id":4108,"Name":"清澈的水 (Clear Water)","CurseForge":"clear-water","Modrinth":"clear-water"},{"Id":4109,"Name":"AE2无线终端Forge版 (Applied Energistics 2 Wireless Terminals Forge)","CurseForge":"applied-energistics-2-wireless-terminals-forge","Modrinth":""},{"Id":4110,"Name":"","CurseForge":"ferroustry","Modrinth":""},{"Id":4111,"Name":"村庄就业 (Village Employment)","CurseForge":"village-employment","Modrinth":"village-employment"},{"Id":4113,"Name":"死亡日志 (Deathlog)","CurseForge":"deathlog","Modrinth":"deathlog"},{"Id":4114,"Name":"自动鞘翅 (Automatic Elytra)","CurseForge":"automatic-elytra","Modrinth":""},{"Id":4115,"Name":"美西螈桶修复 (Axolotl Bucket Fix)","CurseForge":"axolotl-bucket-fix","Modrinth":"axolotl-bucket-fix"},{"Id":4116,"Name":"XK的装饰 (XK's Decoration)","CurseForge":"xks-decoration","Modrinth":"xks-decoration"},{"Id":4117,"Name":"更多终局材料 (Endgame Materials Addons)","CurseForge":"endgame-materials-addons","Modrinth":""},{"Id":4118,"Name":"","CurseForge":"ravage-and-cabbage","Modrinth":"ravage-and-cabbage"},{"Id":4119,"Name":"","CurseForge":"stackup","Modrinth":"stackup"},{"Id":4120,"Name":"","CurseForge":"simple-anti-x-ray","Modrinth":"sax"},{"Id":4121,"Name":"","CurseForge":"breakme","Modrinth":"breakme"},{"Id":4122,"Name":"","CurseForge":"mod-info-command","Modrinth":"mod-info-cmd"},{"Id":4123,"Name":"","CurseForge":"hexxit-gear-fabric","Modrinth":"hexxitgear"},{"Id":4124,"Name":"属性工具 (Buffed Tools)","CurseForge":"buffed-tools","Modrinth":""},{"Id":4125,"Name":"神秘时代NEI插件 (Thaumcraft NEI Plugin)","CurseForge":"thaumcraft-nei-plugin","Modrinth":""},{"Id":4126,"Name":"更多的配方 (MoarRecipes)","CurseForge":"moarrecipes","Modrinth":""},{"Id":4127,"Name":"","CurseForge":"luminium","Modrinth":""},{"Id":4128,"Name":"","CurseForge":"better-nether-map-port","Modrinth":"better-nether-map"},{"Id":4130,"Name":"生存重构/蜥蜴微调重生 (Survival Reimagined / IguanaTweaks Reborn)","CurseForge":"iguanatweaks-reborn","Modrinth":"iguanatweaks-reborn"},{"Id":4131,"Name":"进入虚空 (Enter The Void)","CurseForge":"enter-the-void","Modrinth":""},{"Id":4132,"Name":"关于我转生变成史莱姆这档事 (Tensura Mod -That time I got reincarnated as a Slime)","CurseForge":"tensura-mod-that-time-i-got-reincarnated-as-a-slime","Modrinth":"tensura-mod"},{"Id":4134,"Name":"速度表 (Speedometer)","CurseForge":"speedometer","Modrinth":"speedometer-cafeteria"},{"Id":4135,"Name":"落叶 (Falling Leaves (NeoForge/Forge))","CurseForge":"falling-leaves-forge","Modrinth":"fallingleavesforge"},{"Id":4138,"Name":"自定义实体模型 (Custom Entity Models)","CurseForge":"custom-entity-models-cem","Modrinth":"cem"},{"Id":4139,"Name":"","CurseForge":"tweakmyclient","Modrinth":"tweakmyclient"},{"Id":4140,"Name":"可爱蜗牛 (Lovely Snails)","CurseForge":"lovely-snails","Modrinth":"lovely_snails"},{"Id":4142,"Name":"备忘录 (Clipboard)","CurseForge":"clipboard","Modrinth":""},{"Id":4143,"Name":"","CurseForge":"crimson-nbt-tags","Modrinth":""},{"Id":4145,"Name":"","CurseForge":"water-physics-overhaul","Modrinth":"wpo"},{"Id":4146,"Name":"","CurseForge":"netherless","Modrinth":""},{"Id":4147,"Name":"","CurseForge":"auto-ore-dictionary-converter","Modrinth":"aodc"},{"Id":4148,"Name":"","CurseForge":"elytraboosters","Modrinth":"elytra-boosters"},{"Id":4149,"Name":"","CurseForge":"cobblegenrandomizer","Modrinth":"cobblegenrandomizer"},{"Id":4150,"Name":"","CurseForge":"unified-resources","Modrinth":""},{"Id":4151,"Name":"木桶 (Wooden Buckets)","CurseForge":"wooden-buckets","Modrinth":""},{"Id":4152,"Name":"没有下界传送门 (No Nether Portals)","CurseForge":"no-nether-portals","Modrinth":""},{"Id":4153,"Name":"蜂巢提示框 (BeehiveTooltips)","CurseForge":"beehivetooltips","Modrinth":""},{"Id":4154,"Name":"巴迪卡牌 (Buddycards)","CurseForge":"buddycards","Modrinth":"buddycards"},{"Id":4155,"Name":"","CurseForge":"extended-caves","Modrinth":"expanded-caves"},{"Id":4155,"Name":"","CurseForge":"expanded-caves","Modrinth":""},{"Id":4157,"Name":"","CurseForge":"inventorio","Modrinth":"inventorio"},{"Id":4157,"Name":"","CurseForge":"inventorio-forge","Modrinth":""},{"Id":4158,"Name":"","CurseForge":"more-curios-totems-of-undying","Modrinth":""},{"Id":4159,"Name":"","CurseForge":"selene","Modrinth":"moonlight"},{"Id":4160,"Name":"万用皮肤补丁兼容层 (CompatibilityLayerForCustomSkinLoader)","CurseForge":"compatibilitylayerforcustomskinloader","Modrinth":""},{"Id":4161,"Name":"","CurseForge":"no-potion-shift","Modrinth":""},{"Id":4162,"Name":"","CurseForge":"no-potion-offset","Modrinth":""},{"Id":4163,"Name":"鬼灭之刃 (Kimetsu no Yaiba)","CurseForge":"demonslayer","Modrinth":"orca-kimetsu-no-yaiba"},{"Id":4164,"Name":"鹦鹉螺 (Nautilium)","CurseForge":"nautilium","Modrinth":""},{"Id":4165,"Name":"自动攻击 (Auto Attack)","CurseForge":"auto-attack","Modrinth":""},{"Id":4166,"Name":"","CurseForge":"tamagotti","Modrinth":""},{"Id":4168,"Name":"讯号 (Signal)","CurseForge":"signal","Modrinth":""},{"Id":4169,"Name":"真实马匹遗传 (Realistic Horse Genetics)","CurseForge":"realistic-horse-genetics","Modrinth":"realistic-horse-genetics"},{"Id":4170,"Name":"永恒枪械工坊 (Timeless and Classics Guns)","CurseForge":"timeless-and-classic-guns","Modrinth":"timeless-and-classics-guns"},{"Id":4171,"Name":"工具进阶 (Tool Progression)","CurseForge":"tool-progression","Modrinth":""},{"Id":4174,"Name":"派蒙 (A Paimon)","CurseForge":"a-paimon","Modrinth":""},{"Id":4175,"Name":"","CurseForge":"","Modrinth":"bh-creative"},{"Id":4176,"Name":"Music Maker Mod - 其中有同一作者的三个,包括此","CurseForge":"music-maker-mod","Modrinth":""},{"Id":4176,"Name":"","CurseForge":"","Modrinth":"music-maker-mod"},{"Id":4177,"Name":"","CurseForge":"penguin-lib","Modrinth":""},{"Id":4178,"Name":"飞轮 (Flywheel)","CurseForge":"flywheel","Modrinth":"flywheel"},{"Id":4180,"Name":"珊瑚礁 (CoralReef)","CurseForge":"coralreef","Modrinth":""},{"Id":4182,"Name":"简单季节 (Simply Seasons)","CurseForge":"simply-seasons","Modrinth":""},{"Id":4183,"Name":"","CurseForge":"bclib","Modrinth":"bclib"},{"Id":4184,"Name":"实用拓展饰品 (Actually Baubles)","CurseForge":"actually-baubles","Modrinth":""},{"Id":4185,"Name":"","CurseForge":"alexs-mobs-battle-music","Modrinth":"alexs-mobs-extra-music"},{"Id":4186,"Name":"熔岩魔靴饰品 (Lava Waders Bauble)","CurseForge":"lava-waders-bauble","Modrinth":""},{"Id":4187,"Name":"硬核复活 (Hardcore Revival)","CurseForge":"hardcore-revival","Modrinth":"hardcore-revival"},{"Id":4187,"Name":"硬核复活 (Hardcore Revival)","CurseForge":"hardcore-revival-fabric","Modrinth":""},{"Id":4188,"Name":"更多的枪 (Additional Guns)","CurseForge":"additional-guns","Modrinth":""},{"Id":4189,"Name":"","CurseForge":"oh-my-minecraft-client","Modrinth":"oh-my-minecraft-client"},{"Id":4190,"Name":"木制盔甲 (Wooden Armors Mod)","CurseForge":"wooden-armors-stone-armor","Modrinth":"woodenarmor"},{"Id":4192,"Name":"","CurseForge":"insanelib","Modrinth":"insanelib"},{"Id":4193,"Name":"","CurseForge":"daydreamer","Modrinth":""},{"Id":4194,"Name":"幻灵接口 (Phantomfaces)","CurseForge":"phantomfaces","Modrinth":""},{"Id":4195,"Name":"改进的村民 (Improved Villagers)","CurseForge":"improved-villagers","Modrinth":""},{"Id":4196,"Name":"装备比较 (Equipment Compare)","CurseForge":"equipment-compare","Modrinth":"equipment-compare"},{"Id":4196,"Name":"装备比较 (Equipment Compare)","CurseForge":"equipment-compare-fabric","Modrinth":""},{"Id":4198,"Name":"","CurseForge":"PickupWidely","Modrinth":""},{"Id":4200,"Name":"","CurseForge":"lilliputian","Modrinth":""},{"Id":4201,"Name":"","CurseForge":"sampler","Modrinth":""},{"Id":4202,"Name":"自定义加载界面 (Custom Splash Screen)","CurseForge":"custom-splash-screen","Modrinth":"custom-splash-screen"},{"Id":4203,"Name":"","CurseForge":"masa-gadget","Modrinth":"masa-gadget"},{"Id":4203,"Name":"Masa Gadget - 测试版","CurseForge":"","Modrinth":"masa-gadget-dev"},{"Id":4204,"Name":"迎战 (Meet Your Fight)","CurseForge":"meet-your-fight","Modrinth":"meet-your-fight"},{"Id":4205,"Name":"","CurseForge":"hot-or-not-plus","Modrinth":""},{"Id":4206,"Name":"","CurseForge":"macaws-furniture-tfc","Modrinth":""},{"Id":4207,"Name":"","CurseForge":"tfc-florae","Modrinth":"tfc-florae"},{"Id":4208,"Name":"","CurseForge":"tfc-elementia","Modrinth":""},{"Id":4209,"Name":"无限水桶 (Infinity Water Bucket)","CurseForge":"infinity-water-bucket","Modrinth":""},{"Id":4210,"Name":"","CurseForge":"tfc-caffeine-addon","Modrinth":""},{"Id":4211,"Name":"","CurseForge":"tfc-cellars-add-on","Modrinth":""},{"Id":4212,"Name":"","CurseForge":"boats-and-beeps","Modrinth":""},{"Id":4213,"Name":"","CurseForge":"konkrete","Modrinth":"konkrete"},{"Id":4213,"Name":"","CurseForge":"konkrete-fabric","Modrinth":""},{"Id":4214,"Name":"收获经验 (XP From Harvest)","CurseForge":"xp-from-harvest","Modrinth":"xp-from-harvest"},{"Id":4215,"Name":"","CurseForge":"modern-beta","Modrinth":"modern-beta-forge"},{"Id":4215,"Name":"","CurseForge":"modern-beta-forge","Modrinth":""},{"Id":4216,"Name":"","CurseForge":"tfcflux","Modrinth":""},{"Id":4217,"Name":"","CurseForge":"tfc-medicinal","Modrinth":""},{"Id":4218,"Name":"","CurseForge":"water-flasks","Modrinth":""},{"Id":4220,"Name":"","CurseForge":"structure-world","Modrinth":""},{"Id":4221,"Name":"Macaw 的灯 / 麦考的灯具 (Macaw's Lights and Lamps)","CurseForge":"macaws-lights-and-lamps","Modrinth":"macaws-lights-and-lamps"},{"Id":4222,"Name":"","CurseForge":"terrarian-slimes","Modrinth":"terrarian-slimes"},{"Id":4223,"Name":"机械动力:齿轮附加 (Create Gears)","CurseForge":"create-gears","Modrinth":""},{"Id":4224,"Name":"","CurseForge":"simple-big-backpack","Modrinth":""},{"Id":4225,"Name":"作物盛景 (Croptopia)","CurseForge":"croptopia","Modrinth":""},{"Id":4226,"Name":"","CurseForge":"firmalife","Modrinth":"firmalife"},{"Id":4227,"Name":"","CurseForge":"supermartijn642s-core-lib","Modrinth":"supermartijn642s-core-lib"},{"Id":4228,"Name":"存档置顶 (Cherished Worlds)","CurseForge":"cherished-worlds","Modrinth":"cherished-worlds"},{"Id":4228,"Name":"存档置顶 (Cherished Worlds)","CurseForge":"cherished-worlds-fabric","Modrinth":""},{"Id":4229,"Name":"铁拳 (Ironfist)","CurseForge":"ironfist","Modrinth":""},{"Id":4231,"Name":"简单加速 (Simply Acceleration)","CurseForge":"simply-acceleration","Modrinth":""},{"Id":4232,"Name":"","CurseForge":"creeper-habitats","Modrinth":""},{"Id":4233,"Name":"","CurseForge":"husbandry","Modrinth":""},{"Id":4234,"Name":"","CurseForge":"its-the-little-things","Modrinth":""},{"Id":4235,"Name":"硕果累累 (Fruitful)","CurseForge":"fruitful","Modrinth":"fruitful"},{"Id":4235,"Name":"硕果累累 (Fruitful)","CurseForge":"fruitful-fabric","Modrinth":""},{"Id":4236,"Name":"环境科技-发电机 (Environmental Energy)","CurseForge":"environmental-energy","Modrinth":"environmental-energy"},{"Id":4237,"Name":"群兽行为 (Nakranoth's Herdcraft)","CurseForge":"nakranoths-herdcraft","Modrinth":""},{"Id":4238,"Name":"Lambd 的更好的草方块 (LambdaBetterGrass)","CurseForge":"lambdabettergrass","Modrinth":"lambdabettergrass"},{"Id":4239,"Name":"","CurseForge":"","Modrinth":"client-commands"},{"Id":4240,"Name":"矿石高亮 (Bright Ore)","CurseForge":"bright-ore","Modrinth":""},{"Id":4241,"Name":"中式剑 (Arsenal Core)","CurseForge":"chinese-style-sword","Modrinth":"arsenal-core"},{"Id":4243,"Name":"英雄武器 (Heroic Armory)","CurseForge":"heroic-armory","Modrinth":""},{"Id":4244,"Name":"巨型电池 (ColossalBattery)","CurseForge":"colossal-battery","Modrinth":""},{"Id":4245,"Name":"","CurseForge":"industrial-meat","Modrinth":""},{"Id":4247,"Name":"额外发电机 (Extra Generators)","CurseForge":"extra-generators","Modrinth":"extra-generators"},{"Id":4248,"Name":"园艺 (Horticulture)","CurseForge":"horticulture","Modrinth":""},{"Id":4249,"Name":"","CurseForge":"mr-pineapples-food-mod","Modrinth":""},{"Id":4252,"Name":"","CurseForge":"legacyvault","Modrinth":""},{"Id":4253,"Name":"","CurseForge":"shopaholic","Modrinth":""},{"Id":4255,"Name":"","CurseForge":"ok-zoomer","Modrinth":"ok-zoomer"},{"Id":4256,"Name":"无题鸭 (Untitled Duck)","CurseForge":"untitled-duck-mod-forge","Modrinth":"untitled-duck-mod"},{"Id":4256,"Name":"无题鸭 (Untitled Duck)","CurseForge":"untitled-duck-mod-fabric","Modrinth":""},{"Id":4257,"Name":"","CurseForge":"v-tweaks","Modrinth":"v-tweaks"},{"Id":4258,"Name":"公平附魔 (FairEnchanting)","CurseForge":"fairenchanting","Modrinth":""},{"Id":4259,"Name":"","CurseForge":"bedspreads","Modrinth":"bedspreads"},{"Id":4259,"Name":"","CurseForge":"bedspreads-fabric","Modrinth":""},{"Id":4260,"Name":"","CurseForge":"piglib","Modrinth":"piglib"},{"Id":4261,"Name":"","CurseForge":"nether-portal-spread","Modrinth":"nether-portal-spread"},{"Id":4261,"Name":"","CurseForge":"nether-portal-spread-fabric","Modrinth":""},{"Id":4262,"Name":"","CurseForge":"x-hp","Modrinth":"x-hp"},{"Id":4264,"Name":"","CurseForge":"mr-pineapples-toy-guns","Modrinth":""},{"Id":4265,"Name":"魔法核心 (MagickCore)","CurseForge":"magickcore","Modrinth":"magickcore"},{"Id":4266,"Name":"仙灵荒野 (Feywild)","CurseForge":"feywild","Modrinth":""},{"Id":4267,"Name":"最终之剑重置版 (The final sword)","CurseForge":"The-final-sword","Modrinth":""},{"Id":4269,"Name":"","CurseForge":"gog-skybox","Modrinth":""},{"Id":4271,"Name":"","CurseForge":"lemon-lib","Modrinth":"lemonlib"},{"Id":4272,"Name":"自定义玩家和实体模型 / KAI我的实体:重生 (Custom Player & Entity Models/KAIMyEntity-Reborn)","CurseForge":"custom-entity-models-kaimyentity-reborn","Modrinth":""},{"Id":4273,"Name":"迷你实用设备 (Mini Utilities)","CurseForge":"miniutilities","Modrinth":""},{"Id":4274,"Name":"邂逅:营地 (Stumble Upon: Campsites)","CurseForge":"stumble-upon-campsites","Modrinth":""},{"Id":4275,"Name":"游牧之书 (Nomad Books)","CurseForge":"nomad-books","Modrinth":""},{"Id":4276,"Name":"","CurseForge":"yungs-extras","Modrinth":"yungs-extras"},{"Id":4276,"Name":"","CurseForge":"yungs-extras-fabric","Modrinth":""},{"Id":4276,"Name":"","CurseForge":"yungs-extras-neoforge","Modrinth":""},{"Id":4277,"Name":"地下村庄 (Stoneholm, Underground Villages)","CurseForge":"stoneholm-forge","Modrinth":"stoneholm"},{"Id":4277,"Name":"地下村庄 (Stoneholm, Underground Villages)","CurseForge":"stoneholm","Modrinth":""},{"Id":4279,"Name":"","CurseForge":"inspecio","Modrinth":"inspecio"},{"Id":4280,"Name":"特殊AI (Special AI)","CurseForge":"special-ai","Modrinth":""},{"Id":4281,"Name":"梦中情人 (Dream Waifu mod)","CurseForge":"dream-waifu-mod","Modrinth":""},{"Id":4282,"Name":"求助 (Help Wanted)","CurseForge":"help-wanted","Modrinth":""},{"Id":4283,"Name":"副手战斗 (Off Hand Combat)","CurseForge":"off-hand-combat","Modrinth":""},{"Id":4283,"Name":"副手战斗 (Off Hand Combat)","CurseForge":"off-hand-combat-fabric","Modrinth":""},{"Id":4284,"Name":"收割 (Reaping)","CurseForge":"reaping","Modrinth":"reaping"},{"Id":4285,"Name":"镀金 (Gilding)","CurseForge":"gilding","Modrinth":""},{"Id":4286,"Name":"格里姆的便捷交通工具 (Grim's Transportables)","CurseForge":"grims-transportables","Modrinth":""},{"Id":4287,"Name":"刷新附魔 (Reroll)","CurseForge":"reroll","Modrinth":""},{"Id":4288,"Name":"免税附魔 (Tax Free Levels)","CurseForge":"tax-free-levels","Modrinth":"tax-free-levels"},{"Id":4289,"Name":"便携式传送门 (Portable Dimensions)","CurseForge":"portable-dimensions","Modrinth":""},{"Id":4290,"Name":"","CurseForge":"stone-age-by-yanny","Modrinth":""},{"Id":4291,"Name":"","CurseForge":"terra-world-generator","Modrinth":"terra"},{"Id":4293,"Name":"灾厄村民拓展 (Omnis)","CurseForge":"omnis","Modrinth":""},{"Id":4294,"Name":"","CurseForge":"omnis-backpacks","Modrinth":""},{"Id":4295,"Name":"","CurseForge":"superhotmc","Modrinth":""},{"Id":4296,"Name":"帐篷袋 (Bag of Yurting)","CurseForge":"bag-of-yurting","Modrinth":"bag-of-yurting"},{"Id":4297,"Name":"更好的战斗:重生 (Better Combat Rebirth)","CurseForge":"better-combat-rebirth","Modrinth":""},{"Id":4298,"Name":"来自 1.17 的铁和金 (iron and gold from 1.17)","CurseForge":"iron-and-gold-from-1-17","Modrinth":""},{"Id":4299,"Name":"沉浸烹饪 (Immersive Cooking)","CurseForge":"immersive-cooking","Modrinth":"immersive-cooking"},{"Id":4300,"Name":"","CurseForge":"structured-crafting","Modrinth":"structured-crafting"},{"Id":4301,"Name":"随机潜影贝颜色 (Random Shulker Colours)","CurseForge":"random-shulker-colours","Modrinth":"random-shulker-colours"},{"Id":4301,"Name":"随机潜影贝颜色 (Random Shulker Colours)","CurseForge":"random-shulker-colours-fabric","Modrinth":""},{"Id":4302,"Name":"","CurseForge":"create-automated","Modrinth":""},{"Id":4303,"Name":"随机绵羊颜色 (Random Sheep Colours)","CurseForge":"random-sheep-colours","Modrinth":"random-sheep-colours"},{"Id":4303,"Name":"随机绵羊颜色 (Random Sheep Colours)","CurseForge":"random-sheep-colours-fabric","Modrinth":""},{"Id":4304,"Name":"早点睡 (Sleep Sooner)","CurseForge":"sleep-sooner","Modrinth":"sleep-sooner"},{"Id":4304,"Name":"早点睡 (Sleep Sooner)","CurseForge":"sleep-sooner-fabric","Modrinth":""},{"Id":4305,"Name":"潜影贝重生 (Respawning Shulkers)","CurseForge":"respawning-shulkers","Modrinth":"respawning-shulkers"},{"Id":4305,"Name":"潜影贝重生 (Respawning Shulkers)","CurseForge":"respawning-shulkers-fabric","Modrinth":""},{"Id":4306,"Name":"延迟重生 (Respawn Delay)","CurseForge":"respawn-delay","Modrinth":"respawn-delay"},{"Id":4306,"Name":"延迟重生 (Respawn Delay)","CurseForge":"respawn-delay-fabric","Modrinth":""},{"Id":4307,"Name":"真实的蜜蜂 (Realistic Bees)","CurseForge":"realistic-bees","Modrinth":"realistic-bees"},{"Id":4308,"Name":"持续钓鱼 (Recast)","CurseForge":"recast","Modrinth":"recast"},{"Id":4308,"Name":"持续钓鱼 (Recast)","CurseForge":"recast-fabric","Modrinth":""},{"Id":4309,"Name":"柔软的干草块 (Softer Hay Bales)","CurseForge":"softer-hay-bales","Modrinth":"softer-hay-bales"},{"Id":4309,"Name":"柔软的干草块 (Softer Hay Bales)","CurseForge":"softer-hay-bales-fabric","Modrinth":""},{"Id":4310,"Name":"便携式唱片机 (Portable Jukebox)","CurseForge":"portable-jukebox-forge","Modrinth":""},{"Id":4310,"Name":"便携式唱片机 (Portable Jukebox)","CurseForge":"portable-jukebox-fabric","Modrinth":""},{"Id":4311,"Name":"蜘蛛吐网 (Spiders Produce Webs)","CurseForge":"spiders-produce-webs","Modrinth":"spiders-produce-webs"},{"Id":4311,"Name":"蜘蛛吐网 (Spiders Produce Webs)","CurseForge":"spiders-produce-webs-fabric","Modrinth":""},{"Id":4312,"Name":"刺客信条:方块传奇 (Assassin's Creed Blocklegend)","CurseForge":"assassins-creed-blocklegend","Modrinth":""},{"Id":4313,"Name":"墓碑坟墓 (Gravestone mod Graves)","CurseForge":"gravestone-mod-graves","Modrinth":""},{"Id":4314,"Name":"地球 (The Earth Mod)","CurseForge":"the-earth-mod","Modrinth":""},{"Id":4315,"Name":"电梯 (Lifts)","CurseForge":"lifts","Modrinth":"lifts"},{"Id":4316,"Name":"Corail的回收站 (Corail Recycler)","CurseForge":"corail-recycler","Modrinth":""},{"Id":4317,"Name":"可移动的矿车 (Move Minecarts)","CurseForge":"move-minecarts","Modrinth":"move-minecarts"},{"Id":4318,"Name":"更好的图腾 (Inventory Totem)","CurseForge":"inventory-totem","Modrinth":"inventory-totem"},{"Id":4318,"Name":"更好的图腾 (Inventory Totem)","CurseForge":"inventory-totem-fabric","Modrinth":""},{"Id":4319,"Name":"熔岩收集器 (Lava Picker Upper)","CurseForge":"lava-picker-upper","Modrinth":""},{"Id":4320,"Name":"","CurseForge":"nethers-exoticism","Modrinth":"nethers-exoticism"},{"Id":4321,"Name":"永恒药水 ⚗️ (EverPotion ⚗️)","CurseForge":"everpotion","Modrinth":"everpotion"},{"Id":4321,"Name":"永恒药水 ⚗️ (EverPotion ⚗️)","CurseForge":"everpotion-fabric","Modrinth":""},{"Id":4322,"Name":"快捷潜影盒 (Quick Shulker)","CurseForge":"quick-shulker","Modrinth":"quickshulker"},{"Id":4323,"Name":"宠物可重生 (Respawnable Pets)","CurseForge":"respawnable-pets","Modrinth":"respawnable-pets"},{"Id":4324,"Name":"小阿呆 (Schmucks!)","CurseForge":"schmucks","Modrinth":"schmucks"},{"Id":4325,"Name":"自动门 (Automatic Doors)","CurseForge":"automatic-doors","Modrinth":"automatic-doors"},{"Id":4325,"Name":"自动门 (Automatic Doors)","CurseForge":"automatic-doors-fabric","Modrinth":""},{"Id":4326,"Name":"","CurseForge":"configurable-despawn-timer","Modrinth":"configurable-despawn-timer"},{"Id":4327,"Name":"区块加载小地图 (ChunkMap)","CurseForge":"chunkmap","Modrinth":"chunkmap"},{"Id":4328,"Name":"","CurseForge":"inventory-tabs","Modrinth":""},{"Id":4329,"Name":"装瓶你的经验 (Bottle Your Xp)","CurseForge":"bottle-your-xp","Modrinth":"bottle-your-xp"},{"Id":4329,"Name":"装瓶你的经验 (Bottle Your Xp)","CurseForge":"bottle-your-xp-fabric","Modrinth":""},{"Id":4330,"Name":"墓碑坟墓 - 拓展 (Gravestone mod - Extended)","CurseForge":"gravestone-mod-extended","Modrinth":""},{"Id":4331,"Name":"更好的附魔书 (Better Enchanted Books)","CurseForge":"better-enchanted-books","Modrinth":"better-enchanted-books"},{"Id":4332,"Name":"简单的钢 (Easy Steel & More)","CurseForge":"easy-steel-forge","Modrinth":""},{"Id":4333,"Name":"Fabric 版传送石碑 (Wraith Waystones / Fabric Waystones)","CurseForge":"fabric-waystones","Modrinth":"fwaystones"},{"Id":4336,"Name":"暗黑附魔 (Dark Enchanting)","CurseForge":"dark-enchanting","Modrinth":"dark-enchanting"},{"Id":4338,"Name":"更好的流浪商人 (Better Wandering Traders)","CurseForge":"better-wandering-traders","Modrinth":""},{"Id":4339,"Name":"没有史莱姆的超平坦世界 (Superflat World No Slimes)","CurseForge":"superflat-world-no-slimes","Modrinth":"superflat-world-no-slimes"},{"Id":4339,"Name":"没有史莱姆的超平坦世界 (Superflat World No Slimes)","CurseForge":"superflat-world-no-slimes-fabric","Modrinth":""},{"Id":4340,"Name":"","CurseForge":"scorge","Modrinth":""},{"Id":4342,"Name":"信标改革 (Beacon Overhaul)","CurseForge":"beaconoverhaul","Modrinth":"beaconoverhaul"},{"Id":4343,"Name":"往来 (Contact)","CurseForge":"contact","Modrinth":""},{"Id":4344,"Name":"","CurseForge":"blockshifter","Modrinth":""},{"Id":4344,"Name":"","CurseForge":"blockshifter-forge","Modrinth":""},{"Id":4346,"Name":"","CurseForge":"vanilla-builders-extension","Modrinth":""},{"Id":4348,"Name":"大信标 (Big Beacons)","CurseForge":"big-beacons","Modrinth":""},{"Id":4349,"Name":"木漏斗 (Wooden Hopper)","CurseForge":"wooden-hopper","Modrinth":"wooden-hopper"},{"Id":4351,"Name":"","CurseForge":"ages-api","Modrinth":""},{"Id":4352,"Name":"","CurseForge":"fancyhud","Modrinth":"spiffyhud"},{"Id":4352,"Name":"","CurseForge":"spiffy-hud-fabric","Modrinth":""},{"Id":4353,"Name":"高级指南针 (Advanced Compass)","CurseForge":"advanced-compass","Modrinth":""},{"Id":4354,"Name":"","CurseForge":"salutem","Modrinth":""},{"Id":4355,"Name":"太阳系 (The Sol)","CurseForge":"the-sol","Modrinth":""},{"Id":4356,"Name":"更好的床 (Better Beds)","CurseForge":"better-beds","Modrinth":"better-beds"},{"Id":4357,"Name":"","CurseForge":"world-lives-mod","Modrinth":""},{"Id":4358,"Name":"","CurseForge":"lib","Modrinth":""},{"Id":4360,"Name":"只是一些巧克力 (Just some Chocolate)","CurseForge":"just-some-chocolate","Modrinth":""},{"Id":4362,"Name":"","CurseForge":"vacuum-horizon","Modrinth":""},{"Id":4363,"Name":"独特的附魔:战斗扩展 (Unique Enchantments - Battle)","CurseForge":"unique-enchantments-battle","Modrinth":""},{"Id":4364,"Name":"平衡附魔 (Balanced Enchanting)","CurseForge":"balanced-enchanting","Modrinth":""},{"Id":4365,"Name":"管道 (Pipe)","CurseForge":"pipe","Modrinth":""},{"Id":4366,"Name":"","CurseForge":"simple-ambients","Modrinth":""},{"Id":4370,"Name":"现代加载界面 (Modern Loading Screen)","CurseForge":"modern-loading-screen","Modrinth":""},{"Id":4372,"Name":"冬冬的随意创作 (Dong Dong's random creation)","CurseForge":"dong-dongs-random-creation","Modrinth":"dong-dongs-random-creation"},{"Id":4374,"Name":"","CurseForge":"transliterationlib","Modrinth":""},{"Id":4376,"Name":"RPMTW平台模組 (RPMTW Platform Mod)","CurseForge":"rpmtw-update-mod","Modrinth":"rpmtw-update-mod"},{"Id":4377,"Name":"","CurseForge":"farsight-spyglasses","Modrinth":""},{"Id":4378,"Name":"更多动画 (Not Enough Animations)","CurseForge":"not-enough-animations","Modrinth":"not-enough-animations"},{"Id":4379,"Name":"更好的信标与潮涌核心 (Better Beacon / Conduit)","CurseForge":"better-beacon","Modrinth":""},{"Id":4381,"Name":"地牢进行时 (Dungeon Now Loading)","CurseForge":"dungeon-now-loading","Modrinth":"dungeon-now-loading"},{"Id":4382,"Name":"","CurseForge":"simple-emerald-tools-fabric","Modrinth":""},{"Id":4382,"Name":"","CurseForge":"easy-emerald-tools","Modrinth":""},{"Id":4383,"Name":"冷汗 (Cold Sweat)","CurseForge":"cold-sweat","Modrinth":"cold-sweat"},{"Id":4384,"Name":"巫术:重生 (Witchery: Rewitched)","CurseForge":"witchery-rewitched","Modrinth":""},{"Id":4385,"Name":"魔城传说3D (Majou Denetsu 3D)","CurseForge":"majou-densetsu-3d","Modrinth":""},{"Id":4386,"Name":"伊卡洛斯之翼 (Icarus Wings)","CurseForge":"icarus-wings","Modrinth":"icarus-wings"},{"Id":4387,"Name":"按键精灵 (Keyboard Wizard)","CurseForge":"keyboard-wizard","Modrinth":""},{"Id":4388,"Name":"","CurseForge":"piscary","Modrinth":""},{"Id":4390,"Name":"储藏柜 (Storage Cabinet)","CurseForge":"storage-cabinet","Modrinth":""},{"Id":4391,"Name":"更真实的第一人称模型 (First-person Model)","CurseForge":"first-person-model","Modrinth":"first-person-model"},{"Id":4392,"Name":"","CurseForge":"randore","Modrinth":"randore"},{"Id":4392,"Name":"","CurseForge":"randore-forge","Modrinth":""},{"Id":4393,"Name":"上勾拳 (Rising Uppercut)","CurseForge":"rising-uppercut","Modrinth":""},{"Id":4394,"Name":"成龙的武器 (Jackie Chan's weapon)","CurseForge":"jackie-chan-s-weapon","Modrinth":""},{"Id":4395,"Name":"探险者指南针 (Explorer's Compass)","CurseForge":"explorers-compass","Modrinth":"explorers-compass"},{"Id":4396,"Name":"墓碑 (Gravestones)","CurseForge":"gravestones","Modrinth":"gravestones"},{"Id":4397,"Name":"行尸走肉:生存 (Crafting Dead: Survival)","CurseForge":"crafting-dead-survival","Modrinth":""},{"Id":4398,"Name":"红石控制2 (Redstone Control 2)","CurseForge":"redstone-control-2","Modrinth":""},{"Id":4399,"Name":"","CurseForge":"csenchants","Modrinth":""},{"Id":4400,"Name":"","CurseForge":"mystical-customization","Modrinth":"mystical-customization"},{"Id":4403,"Name":"等价交换重制-EMC上限扩展版 (FMProjectE)","CurseForge":"fmprojecte-fmpe","Modrinth":""},{"Id":4405,"Name":"","CurseForge":"ibe-editor","Modrinth":"ibe-editor"},{"Id":4406,"Name":"","CurseForge":"exotic-critters","Modrinth":""},{"Id":4407,"Name":"弓箭手悖论 (Archer's Paradox)","CurseForge":"archers-paradox","Modrinth":"archers-paradox"},{"Id":4408,"Name":"动态的树:那不勒斯风味附属 (Dynamic Trees - Neapolitan)","CurseForge":"dynamic-trees-neapolitan","Modrinth":""},{"Id":4410,"Name":"","CurseForge":"randomite-classic","Modrinth":""},{"Id":4412,"Name":"","CurseForge":"wilds","Modrinth":""},{"Id":4413,"Name":"","CurseForge":"roughly-searchable","Modrinth":"roughly-searchable"},{"Id":4414,"Name":"树叶渲染优化 (Cull Leaves)","CurseForge":"cull-leaves","Modrinth":"cull-leaves"},{"Id":4415,"Name":"动态的树:阿图姆2附属 (Dynamic Trees - Atum 2)","CurseForge":"dynamic-trees-atum-2","Modrinth":""},{"Id":4416,"Name":"","CurseForge":"randomtweaker","Modrinth":""},{"Id":4419,"Name":"","CurseForge":"steamworld","Modrinth":""},{"Id":4421,"Name":"落叶 (Falling Leaves (Fabric))","CurseForge":"falling-leaves-fabric","Modrinth":"fallingleaves"},{"Id":4422,"Name":"可合成的创造能力强化 (Craftable Creative Ability)","CurseForge":"craftable-creative-ability","Modrinth":""},{"Id":4423,"Name":"","CurseForge":"not-enough-energistics","Modrinth":""},{"Id":4424,"Name":"","CurseForge":"terracore","Modrinth":""},{"Id":4426,"Name":"","CurseForge":"seeker-compass","Modrinth":"seeker-compass"},{"Id":4427,"Name":"","CurseForge":"ghosts-explosives","Modrinth":""},{"Id":4428,"Name":"蓄力投掷 (Power Drop)","CurseForge":"power-drop","Modrinth":"power-drop"},{"Id":4429,"Name":"YUNG 的地牢优化 (YUNG's Better Dungeons)","CurseForge":"yungs-better-dungeons","Modrinth":"yungs-better-dungeons"},{"Id":4429,"Name":"YUNG 的地牢优化 (YUNG's Better Dungeons)","CurseForge":"yungs-better-dungeons-fabric","Modrinth":""},{"Id":4429,"Name":"YUNG 的地牢优化 (YUNG's Better Dungeons)","CurseForge":"yungs-better-dungeons-neoforge","Modrinth":""},{"Id":4431,"Name":"","CurseForge":"ore-controller","Modrinth":""},{"Id":4432,"Name":"更多鸡 (MoreChickens)","CurseForge":"morechickens","Modrinth":"morechickens"},{"Id":4433,"Name":"","CurseForge":"ghosts-explosives-2","Modrinth":""},{"Id":4434,"Name":"武器投掷 (Weapon Throw)","CurseForge":"weapon-throw","Modrinth":"weapon-throw"},{"Id":4434,"Name":"武器投掷 (Weapon Throw)","CurseForge":"weaponthrowlite","Modrinth":""},{"Id":4435,"Name":"更多村民 (More Villagers)","CurseForge":"more-villagers","Modrinth":""},{"Id":4435,"Name":"更多村民 (More Villagers)","CurseForge":"more-villagers-fabric","Modrinth":""},{"Id":4436,"Name":"地下城生物 (Dungeons Mobs)","CurseForge":"dungeons-mobs","Modrinth":""},{"Id":4445,"Name":"新日 (Uusi Aurinko)","CurseForge":"uusi-aurinko","Modrinth":""},{"Id":4456,"Name":"历史记录者·星之匙 (Chronicler: The Key of Stellaris)","CurseForge":"chronicler-the-key-of-stellaris","Modrinth":""},{"Id":4458,"Name":"星云子史莱姆 (Neubulaeko Slime)","CurseForge":"neubulaeko-slime","Modrinth":""},{"Id":4463,"Name":"","CurseForge":"fantasysoup","Modrinth":""},{"Id":4464,"Name":"JEI工作方块 (Just Enough Professions)","CurseForge":"just-enough-professions-jep","Modrinth":"just-enough-professions-jep"},{"Id":4466,"Name":"应急食品 (PaimonFood)","CurseForge":"paimonfood","Modrinth":""},{"Id":4467,"Name":"","CurseForge":"plumed-belt","Modrinth":""},{"Id":4468,"Name":"","CurseForge":"better-with-minecolonies","Modrinth":"better-with-minecolonies"},{"Id":4469,"Name":"Calemi的实用设备 (Calemi's Utilities)","CurseForge":"calemis-utilities","Modrinth":""},{"Id":4470,"Name":"","CurseForge":"botanical-cowardice","Modrinth":""},{"Id":4471,"Name":"旅人标题 (Traveler's Titles)","CurseForge":"travelers-titles","Modrinth":"travelers-titles"},{"Id":4471,"Name":"旅人标题 (Traveler's Titles)","CurseForge":"travelers-titles-fabric","Modrinth":""},{"Id":4471,"Name":"旅人标题 (Traveler's Titles)","CurseForge":"travelers-titles-neoforge","Modrinth":""},{"Id":4471,"Name":"旅人标题 (Traveler's Titles)","CurseForge":"traveler-titles","Modrinth":""},{"Id":4472,"Name":"中式剑拓展 (Arsenal Integration)","CurseForge":"expand-chinese-sword","Modrinth":""},{"Id":4474,"Name":"小画 (LittlePictureFrames)","CurseForge":"littleframes","Modrinth":"littlepictureframes"},{"Id":4475,"Name":"岩浆充填 (Lavalogged blocks)","CurseForge":"lavalogged-blocks","Modrinth":"lavalogged-blocks"},{"Id":4476,"Name":"","CurseForge":"awoken-world","Modrinth":""},{"Id":4477,"Name":"格雷科技4:重构想 (GregTech 4 Reimagined)","CurseForge":"gt4-reimagined","Modrinth":""},{"Id":4478,"Name":"","CurseForge":"camouflaged-creepers","Modrinth":""},{"Id":4479,"Name":"","CurseForge":"ore-tweaker","Modrinth":"ore-tweaker"},{"Id":4480,"Name":"","CurseForge":"openpython","Modrinth":""},{"Id":4481,"Name":"","CurseForge":"jei-lotr","Modrinth":""},{"Id":4482,"Name":"","CurseForge":"capes","Modrinth":"capes"},{"Id":4483,"Name":"攻击速度附魔 (Attack Speed Enchantment)","CurseForge":"attack-speed-enchantment","Modrinth":""},{"Id":4484,"Name":"","CurseForge":"natures-minerals","Modrinth":"natures-minerals"},{"Id":4485,"Name":"","CurseForge":"balm","Modrinth":"balm"},{"Id":4485,"Name":"","CurseForge":"balm-fabric","Modrinth":""},{"Id":4486,"Name":"资源猪 (Resourse Hogs)","CurseForge":"resource-hogs","Modrinth":""},{"Id":4487,"Name":"高级透视 (Advanced XRay)","CurseForge":"advanced-xray","Modrinth":""},{"Id":4487,"Name":"高级透视 (Advanced XRay)","CurseForge":"advanced-xray-fabric-edition","Modrinth":""},{"Id":4489,"Name":"吸引戒指 (Ring of Attraction)","CurseForge":"ring-of-attraction-forge","Modrinth":""},{"Id":4489,"Name":"吸引戒指 (Ring of Attraction)","CurseForge":"ring-of-attraction-fabric","Modrinth":""},{"Id":4490,"Name":"自定义HUD (CustomHud)","CurseForge":"customhud","Modrinth":"customhud"},{"Id":4491,"Name":"致命世界 (Deadly World)","CurseForge":"deadly-world","Modrinth":""},{"Id":4492,"Name":"","CurseForge":"fastdecay","Modrinth":"fastdecay"},{"Id":4493,"Name":"","CurseForge":"essential-commands","Modrinth":"essential-commands"},{"Id":4494,"Name":"","CurseForge":"caves-and-cliffs-backport","Modrinth":""},{"Id":4495,"Name":"","CurseForge":"that-future-mod-glow-squid-axolotl-moobloom-etc","Modrinth":""},{"Id":4496,"Name":"钻石装饰 (Diamond Buildcraft)","CurseForge":"diamond-buildcraft","Modrinth":""},{"Id":4497,"Name":"启示录重制 (Apocalypse Rebooted)","CurseForge":"","Modrinth":"apocalypse-rebooted"},{"Id":4498,"Name":"更高级联机设置 (LAN World Plug-n-Play)","CurseForge":"mcwifipnp","Modrinth":"mcwifipnp"},{"Id":4499,"Name":"","CurseForge":"requious-frakto","Modrinth":""},{"Id":4503,"Name":"","CurseForge":"capsule","Modrinth":"capsule"},{"Id":4504,"Name":"等轴渲染 (Isometric Renders)","CurseForge":"isometric-renders","Modrinth":"isometric-renders"},{"Id":4506,"Name":"附魔记录 (Enchanting Secretaire)","CurseForge":"enchanting-secretaire","Modrinth":""},{"Id":4507,"Name":"克隆(Fabric) (Sync (Fabric))","CurseForge":"sync-fabric","Modrinth":"sync-fabric"},{"Id":4508,"Name":"王国:新征程 (Tale of Kingdoms: A new Conquest)","CurseForge":"tale-of-kingdoms-a-new-conquest","Modrinth":"tale-of-kingdoms-a-new-conquest"},{"Id":4510,"Name":"黑 (Schwarz)","CurseForge":"schwarz","Modrinth":"schwarz"},{"Id":4511,"Name":"","CurseForge":"megane-forge","Modrinth":"megane-forge"},{"Id":4511,"Name":"","CurseForge":"megane","Modrinth":"megane"},{"Id":4512,"Name":"","CurseForge":"crusade","Modrinth":"crusade"},{"Id":4513,"Name":"售货机 (Vending Machine)","CurseForge":"vending-machine","Modrinth":""},{"Id":4514,"Name":"","CurseForge":"modernxl","Modrinth":""},{"Id":4515,"Name":"匠魂合金附加2 (Tinkers Alloying Addon Port)","CurseForge":"taiga2","Modrinth":"taiga2"},{"Id":4516,"Name":"区块生成限制 (ChunkGenLimiter)","CurseForge":"chunkgenlimited","Modrinth":""},{"Id":4517,"Name":"更多工作台 (More Crafting Tables for Forge!)","CurseForge":"more-crafting-tables-for-forge","Modrinth":"more-crafting-tables"},{"Id":4518,"Name":"结构变体 (Repurposed Structures)","CurseForge":"repurposed-structures","Modrinth":"repurposed-structures-forge"},{"Id":4518,"Name":"结构变体 (Repurposed Structures)","CurseForge":"repurposed-structures-fabric","Modrinth":"repurposed-structures-fabric"},{"Id":4519,"Name":"","CurseForge":"ezpas","Modrinth":""},{"Id":4520,"Name":"","CurseForge":"electrona","Modrinth":""},{"Id":4521,"Name":"","CurseForge":"","Modrinth":"mcg"},{"Id":4522,"Name":"合理排序 (Reasonable Sorting)","CurseForge":"reasonable-sorting","Modrinth":"reasonable-sorting"},{"Id":4523,"Name":"聊天头像 (Chat Heads)","CurseForge":"chat-heads","Modrinth":"chat-heads"},{"Id":4524,"Name":"隐藏盔甲 (Hidden Armor)","CurseForge":"hidden-armor","Modrinth":""},{"Id":4525,"Name":"Majrusz的进阶难度 (Majrusz's Progressive Difficulty)","CurseForge":"majruszs-progressive-difficulty","Modrinth":"majruszs-progressive-difficulty"},{"Id":4526,"Name":"药师 (Pharmacist)","CurseForge":"pharmacist","Modrinth":""},{"Id":4527,"Name":"","CurseForge":"kappa","Modrinth":"kappa"},{"Id":4528,"Name":"等价集成 (Equivalent Integrations)","CurseForge":"equivalent-integrations","Modrinth":""},{"Id":4529,"Name":"保留装备 (Keep Equipment)","CurseForge":"keep-equipment","Modrinth":""},{"Id":4530,"Name":"Herobrine 的起源 (Herobrine's Origin)","CurseForge":"herobrines-origin","Modrinth":""},{"Id":4531,"Name":"深渊:远古 (The Abyss: Legacy)","CurseForge":"the-abyss","Modrinth":""},{"Id":4532,"Name":"","CurseForge":"sekiro-sense-symbols","Modrinth":""},{"Id":4533,"Name":"Cold的潜伏者 (Colds: Lurker)","CurseForge":"lurker","Modrinth":""},{"Id":4534,"Name":"","CurseForge":"cavebiomeapi","Modrinth":"cavebiomeapi"},{"Id":4534,"Name":"","CurseForge":"cavebiomeapi-fabric","Modrinth":""},{"Id":4535,"Name":"扩展方块形状 (Extended Block Shapes)","CurseForge":"extended-block-shapes","Modrinth":"extshape"},{"Id":4535,"Name":"扩展方块形状 (Extended Block Shapes)","CurseForge":"extended-block-shapes-blockus","Modrinth":"extshape_blockus"},{"Id":4536,"Name":"","CurseForge":"passive-mobs","Modrinth":"passivemobs"},{"Id":4537,"Name":"赞助者 (Sponsor)","CurseForge":"sponsor","Modrinth":""},{"Id":4540,"Name":"","CurseForge":"between-ores","Modrinth":""},{"Id":4541,"Name":"黑洞 (Black Hole)","CurseForge":"black-hole","Modrinth":""},{"Id":4542,"Name":"越来越多的矿物 (more and more minerals)","CurseForge":"more-and-more-minerals","Modrinth":""},{"Id":4543,"Name":"","CurseForge":"permafrost","Modrinth":""},{"Id":4545,"Name":"Scooty的植物大战僵尸2 (Scooty's Plant Vs. Zombies 2)","CurseForge":"scootys-plants-vs-zombies-2","Modrinth":""},{"Id":4546,"Name":"更好的熔炉重铸版 (BetterFurnaces Reforged)","CurseForge":"better-furnaces-reforged","Modrinth":"better-furnaces-reforged"},{"Id":4549,"Name":"魔法学校:第二学期 (Schools of Magic: Second Semester)","CurseForge":"schools-of-magic-second-semester","Modrinth":""},{"Id":4550,"Name":"深色加载界面 (Dark Loading Screen)","CurseForge":"dark-loading-screen","Modrinth":"dark-loading-screen"},{"Id":4551,"Name":"","CurseForge":"hals-exploration-mod","Modrinth":"hals%20exploration%20mod"},{"Id":4552,"Name":"农夫乐事:烹饪书拓展 (Farmer's Delight Cookbook Addon)","CurseForge":"farmers-delight-cookbook-addon","Modrinth":""},{"Id":4553,"Name":"","CurseForge":"heads-down-display","Modrinth":"head-down-display"},{"Id":4554,"Name":"MrCrayfish 的更多家具 (MrCrayfish's More Furniture Mod)","CurseForge":"mrcrayfish-more-furniture-mod","Modrinth":""},{"Id":4555,"Name":"","CurseForge":"multi-world","Modrinth":""},{"Id":4557,"Name":"","CurseForge":"terralith","Modrinth":"terralith"},{"Id":4558,"Name":"","CurseForge":"overworld-two-forge","Modrinth":""},{"Id":4558,"Name":"","CurseForge":"overworld-two","Modrinth":""},{"Id":4559,"Name":"XL数据包 (XL Packets)","CurseForge":"xl-packets","Modrinth":""},{"Id":4559,"Name":"XL数据包 (XL Packets)","CurseForge":"xl-packets-fabric","Modrinth":""},{"Id":4560,"Name":"RF工具:存储 (RFTools Storage)","CurseForge":"rftools-storage","Modrinth":"rftools-storage"},{"Id":4561,"Name":"RF工具:建造机 (RFTools Builder)","CurseForge":"rftools-builder","Modrinth":"rftools-builder"},{"Id":4563,"Name":"下界乐事 (Nether's Delight)","CurseForge":"nethers-delight","Modrinth":"nethers-delight"},{"Id":4564,"Name":"农夫的拓展食物 (Farmer's Extra Foods)","CurseForge":"farmers-extra-foods","Modrinth":""},{"Id":4565,"Name":"工匠乐事 (Tinker's Delight)","CurseForge":"tinkers-delight","Modrinth":""},{"Id":4567,"Name":"","CurseForge":"","Modrinth":"flashfreeze"},{"Id":4568,"Name":"Majrusz的配件 (Majrusz's Accessories)","CurseForge":"majruszs-accessories","Modrinth":"majruszs-accessories"},{"Id":4569,"Name":"","CurseForge":"water-2-mana","Modrinth":""},{"Id":4572,"Name":"狩猎工艺 (Craft and Hunt)","CurseForge":"craft-and-hunt","Modrinth":""},{"Id":4573,"Name":"","CurseForge":"tmats","Modrinth":""},{"Id":4574,"Name":"隐光之域 (The Afterlight)","CurseForge":"the-afterlight","Modrinth":""},{"Id":4575,"Name":"匠魂蓝图 (Tinker's Planner)","CurseForge":"tinkers-planner","Modrinth":""},{"Id":4576,"Name":"扑克牌 (Playing Cards)","CurseForge":"playing-cards","Modrinth":""},{"Id":4577,"Name":"彩虹橡树2 (Rainbow Oak Trees 2)","CurseForge":"rainbow-oak-trees-2","Modrinth":""},{"Id":4578,"Name":"地图边界 (MapFrontiers)","CurseForge":"mapfrontiers","Modrinth":"mapfrontiers"},{"Id":4579,"Name":"可自定义鞘翅 (Customizable Elytra)","CurseForge":"customizable-elytra","Modrinth":"customizable-elytra"},{"Id":4579,"Name":"可自定义鞘翅 (Customizable Elytra)","CurseForge":"customizable-elytra-fabric","Modrinth":""},{"Id":4580,"Name":"","CurseForge":"puzzles-lib","Modrinth":"puzzles-lib"},{"Id":4580,"Name":"","CurseForge":"puzzles-lib-fabric","Modrinth":""},{"Id":4581,"Name":"独特的附魔:基础 (Unique Enchantments Base)","CurseForge":"unique-enchantments-base","Modrinth":""},{"Id":4582,"Name":"矿石阶段 (Ore Stages)","CurseForge":"ore-stages","Modrinth":""},{"Id":4583,"Name":"","CurseForge":"krays-magic-candles","Modrinth":""},{"Id":4584,"Name":"神秘时代本地化优化 (Thaumcraft Localization Optimizer)","CurseForge":"thaumcraft-localization-optimizer","Modrinth":""},{"Id":4585,"Name":"喝啤酒啦 (Drink Beer)","CurseForge":"drink-beer-fabric","Modrinth":""},{"Id":4585,"Name":"喝啤酒啦 (Drink Beer)","CurseForge":"drink-beer-forge","Modrinth":""},{"Id":4586,"Name":"","CurseForge":"emerald-tools-armour","Modrinth":""},{"Id":4587,"Name":"隐藏配方书 (Hidden Recipe Book)","CurseForge":"hidden-recipe-book","Modrinth":"hidden-recipe-book"},{"Id":4588,"Name":"羊肉面饼实用设备 (Kibe Utilities)","CurseForge":"kibe","Modrinth":"kibe"},{"Id":4589,"Name":"毒药工艺 (PoisonCraft)","CurseForge":"poisoncraft","Modrinth":""},{"Id":4590,"Name":"细节盔甲 (Detail Armor Bar)","CurseForge":"detail-armor-bar-forge","Modrinth":"detail-armor-bar"},{"Id":4590,"Name":"细节盔甲 (Detail Armor Bar)","CurseForge":"detail-armor-bar","Modrinth":""},{"Id":4591,"Name":"","CurseForge":"wings-horns-hooves-the-ultimate-unicorn-mod","Modrinth":""},{"Id":4592,"Name":"兰金计划 (Project Rankine)","CurseForge":"project-rankine","Modrinth":"rankine"},{"Id":4593,"Name":"","CurseForge":"tinkers-mechworks","Modrinth":"tinkers-mechworks"},{"Id":4594,"Name":"量子拆解工艺 (Quantum Dis-Assembly Craft)","CurseForge":"qdc-core-4-0","Modrinth":"qdc-core-4.0"},{"Id":4594,"Name":"量子拆解工艺 (Quantum Dis-Assembly Craft) - 旧","CurseForge":"qdc-quantum-dis-assembly-craft","Modrinth":""},{"Id":4595,"Name":"","CurseForge":"william-wythers-overhauled-overworld","Modrinth":"wwoo"},{"Id":4596,"Name":"","CurseForge":"infinite-music","Modrinth":""},{"Id":4597,"Name":"可靠的潜影贝工厂 (Shulker's Faithful Factories/Cobbler)","CurseForge":"cobbler","Modrinth":""},{"Id":4598,"Name":"","CurseForge":"nether-fast-transport-layer","Modrinth":""},{"Id":4599,"Name":"","CurseForge":"the-outer-end","Modrinth":"the-outer-end"},{"Id":4600,"Name":"","CurseForge":"hamncheese","Modrinth":"hamncheese"},{"Id":4601,"Name":"","CurseForge":"buzzy-drones","Modrinth":""},{"Id":4602,"Name":"更多原版盔甲 (MoreVanillaArmor)","CurseForge":"morevanillaarmor","Modrinth":"morevanillaarmor"},{"Id":4604,"Name":"永恒传说 (Eternal Tales)","CurseForge":"eternal-tales","Modrinth":"eternal-tales"},{"Id":4605,"Name":"你将去的生物群系修复版 (Oh The Biomes You'll Go Fixes)","CurseForge":"oh-the-biomes-youll-go-fixes","Modrinth":""},{"Id":4606,"Name":"","CurseForge":"wild-world","Modrinth":""},{"Id":4608,"Name":"","CurseForge":"miskatonic-mysteries","Modrinth":""},{"Id":4608,"Name":"","CurseForge":"miskatonic-mysteries-legacy","Modrinth":""},{"Id":4609,"Name":"收割者之夜 (Harvester's Night)","CurseForge":"harvesters-night","Modrinth":""},{"Id":4610,"Name":"锁定槽 (SlotLock)","CurseForge":"slotlock","Modrinth":"slotlock"},{"Id":4612,"Name":"","CurseForge":"panorama-tweaker","Modrinth":"panorama-tweaker"},{"Id":4613,"Name":"简单坟墓 (Simple Tomb)","CurseForge":"simple-tomb","Modrinth":""},{"Id":4614,"Name":"摩登生活 (Modern Life)","CurseForge":"modern-life","Modrinth":"modern-life"},{"Id":4615,"Name":"","CurseForge":"paxi-fabric","Modrinth":"paxi"},{"Id":4615,"Name":"","CurseForge":"paxi","Modrinth":""},{"Id":4615,"Name":"","CurseForge":"paxi-neoforge","Modrinth":""},{"Id":4616,"Name":"原神-起源 (Genshin_Elemental_Reaction)","CurseForge":"","Modrinth":"elemental-reaction"},{"Id":4617,"Name":"飘扬披风 (Wavey Capes)","CurseForge":"waveycapes","Modrinth":"wavey-capes"},{"Id":4618,"Name":"3D 皮肤层 (Skin Layers 3D)","CurseForge":"skin-layers-3d","Modrinth":"3dskinlayers"},{"Id":4619,"Name":"唱片大全 (All the Discs)","CurseForge":"mc-mods-the-discs","Modrinth":""},{"Id":4620,"Name":"","CurseForge":"cryptic-cosmos","Modrinth":""},{"Id":4621,"Name":"长沼蓝调 (Bayou Blues)","CurseForge":"bayou-blues","Modrinth":"bayou-blues"},{"Id":4621,"Name":"长沼蓝调 (Bayou Blues)","CurseForge":"bayou-blues-fabric","Modrinth":""},{"Id":4622,"Name":"六边形地貌 (Hex Lands)","CurseForge":"hex-lands","Modrinth":""},{"Id":4623,"Name":"","CurseForge":"fixrtm","Modrinth":""},{"Id":4624,"Name":"","CurseForge":"serene-tweaks","Modrinth":""},{"Id":4625,"Name":"界面缩放 (ScalingGUIs)","CurseForge":"ScalingGuis","Modrinth":""},{"Id":4626,"Name":"更好的命令方块 (Better Command Block IDE)","CurseForge":"ide-better-command-block-forge-editor","Modrinth":""},{"Id":4626,"Name":"更好的命令方块 (Better Command Block IDE)","CurseForge":"ide-better-command-block-fabric-editor","Modrinth":""},{"Id":4627,"Name":"自由破坏 (Break Free)","CurseForge":"breakfree","Modrinth":"breakfree"},{"Id":4628,"Name":"","CurseForge":"tinkers-mechworks-fork","Modrinth":""},{"Id":4629,"Name":"","CurseForge":"extended-nether-backport","Modrinth":""},{"Id":4630,"Name":"无边框全屏 (Borderless Window)","CurseForge":"borderless","Modrinth":"borderless-window"},{"Id":4631,"Name":"更好的结构方块 (Better Structure Block)","CurseForge":"lifted-restrictions-structure-block","Modrinth":""},{"Id":4632,"Name":"实体模型 JSON (Entity Model JSON)","CurseForge":"entity-model-json","Modrinth":""},{"Id":4633,"Name":"死亡坐标显示 (Death Coords)","CurseForge":"death-coords","Modrinth":""},{"Id":4635,"Name":"货币多多 (Never Enough Currency)","CurseForge":"never-enough-currency","Modrinth":""},{"Id":4636,"Name":"货币多多:精简版 (Never Enough Currency Lite)","CurseForge":"never-enough-currency-lite","Modrinth":""},{"Id":4637,"Name":"","CurseForge":"create-chunkloading","Modrinth":""},{"Id":4638,"Name":"","CurseForge":"name-pain","Modrinth":"namepain"},{"Id":4639,"Name":"无线充电器 (Wireless Chargers)","CurseForge":"wireless-chargers","Modrinth":"wireless-chargers"},{"Id":4640,"Name":"弹力床 (Bouncier Beds)","CurseForge":"bouncier-beds","Modrinth":"bouncier-beds"},{"Id":4640,"Name":"弹力床 (Bouncier Beds)","CurseForge":"bouncier-beds-fabric","Modrinth":""},{"Id":4641,"Name":"六边形地貌 2 (HexLands II)","CurseForge":"hexlands-ii","Modrinth":""},{"Id":4642,"Name":"河中淘金 (Gold In River Mod)","CurseForge":"gold-in-river-mod","Modrinth":""},{"Id":4644,"Name":"怪物巢穴 (Lorespawn)","CurseForge":"lorespawn","Modrinth":""},{"Id":4645,"Name":"","CurseForge":"creatuures","Modrinth":""},{"Id":4646,"Name":"","CurseForge":"fabrics-biome-api-reforged","Modrinth":"fb-api-reforged"},{"Id":4647,"Name":"坚固地牢 (Stalwart Dungeons)","CurseForge":"stalwart-dungeons","Modrinth":"stalwart-dungeons"},{"Id":4648,"Name":"","CurseForge":"mamas-marvelous-materials","Modrinth":""},{"Id":4649,"Name":"猫咪装饰 (Nekoration)","CurseForge":"nekoration","Modrinth":"nekoration"},{"Id":4650,"Name":"","CurseForge":"tomb-many-graves-2","Modrinth":""},{"Id":4651,"Name":"鳍和尾巴 (Fins and Tails)","CurseForge":"fins-and-tails","Modrinth":""},{"Id":4652,"Name":"更聪明的农夫 (Smarter Farmers / Farmers Replant)","CurseForge":"smarter-farmers-farmers-replant","Modrinth":"smarter-farmers-farmers-replant"},{"Id":4653,"Name":"独特风味 (Peculiars)","CurseForge":"peculiars","Modrinth":"peculiars"},{"Id":4654,"Name":"可拖动列表 / 可拖动资源包 (Draggable Lists / Draggable Resource Packs)","CurseForge":"draggable-lists","Modrinth":"draggable-lists"},{"Id":4655,"Name":"快速箱子渲染 (FastChest) - 已不再更新","CurseForge":"fastchest","Modrinth":""},{"Id":4655,"Name":"快速箱子渲染 (FastChest) - 在此处更新","CurseForge":"","Modrinth":"fastchest"},{"Id":4656,"Name":"方块小镇 (Yuushya Townscape)","CurseForge":"yuushya-townscape","Modrinth":"yuushya-townscape"},{"Id":4657,"Name":"建筑师的调色板 (Architect's Palette)","CurseForge":"architects-palette","Modrinth":"architects-palette"},{"Id":4657,"Name":"建筑师的调色板 (Architect's Palette)","CurseForge":"architects-palette-fabric","Modrinth":"architects-palette-fabric"},{"Id":4658,"Name":"低语之森 (Whisperwoods)","CurseForge":"whisperwoods","Modrinth":"whisperwoods"},{"Id":4659,"Name":"维度地牢 (Dimensional Dungeons)","CurseForge":"dimensional-dungeons","Modrinth":"dimensional-dungeons"},{"Id":4660,"Name":"祸乱鬼魅 (Bosses of Mass Destruction)","CurseForge":"bosses-of-mass-destruction","Modrinth":"bosses-of-mass-destruction"},{"Id":4661,"Name":"","CurseForge":"neoelfeos-medieval-pub-decoration","Modrinth":""},{"Id":4662,"Name":"","CurseForge":"dustrial-decor","Modrinth":"dustrial-decor-forge"},{"Id":4663,"Name":"Feder的稻草人 (Feder's Scarecrows)","CurseForge":"feders-scarecrows","Modrinth":""},{"Id":4664,"Name":"","CurseForge":"zetter","Modrinth":"zetter-painting-mod"},{"Id":4665,"Name":"神秘南瓜 (Mystical Pumpkins)","CurseForge":"mystical-pumpkins","Modrinth":""},{"Id":4666,"Name":"灯笼皮肤 (Skinned Lanterns)","CurseForge":"skinned-lanterns","Modrinth":"skinned-lanterns-fabric"},{"Id":4666,"Name":"灯笼皮肤 (Skinned Lanterns)","CurseForge":"skinned-lanterns-fabric","Modrinth":""},{"Id":4667,"Name":"稻草人 (Scarecrows)","CurseForge":"scarecrows","Modrinth":"scarecrows"},{"Id":4668,"Name":"季节风味 (Seasonals)","CurseForge":"seasonals","Modrinth":"seasonals"},{"Id":4669,"Name":"","CurseForge":"mimi-mod","Modrinth":"mimi"},{"Id":4670,"Name":"音符盒调音助手 (BlockTuner)","CurseForge":"blocktuner","Modrinth":"blocktuner"},{"Id":4671,"Name":"笼中生物 (Caged Mobs)","CurseForge":"caged-mobs","Modrinth":"caged-mobs"},{"Id":4672,"Name":"","CurseForge":"advanced-rifles","Modrinth":""},{"Id":4673,"Name":"血之宝典 (Tome of Blood)","CurseForge":"tome-of-blood","Modrinth":""},{"Id":4674,"Name":"方块前线 (BlockFront)","CurseForge":"blockfront-world-war-ii","Modrinth":"blockfront"},{"Id":4675,"Name":"","CurseForge":"archaic-guns","Modrinth":""},{"Id":4676,"Name":"","CurseForge":"blockcarpentry","Modrinth":""},{"Id":4677,"Name":"","CurseForge":"survival-overhaul","Modrinth":""},{"Id":4678,"Name":"猫狗雨 (Raining Cats and Dogs)","CurseForge":"raining-cats-and-dogs","Modrinth":""},{"Id":4679,"Name":"","CurseForge":"melt","Modrinth":""},{"Id":4681,"Name":"日志过滤器 (Stuff A Sock In It)","CurseForge":"stuff-a-sock-in-it","Modrinth":"stuff-a-sock-in-it"},{"Id":4682,"Name":"","CurseForge":"supermartijn642s-config-lib","Modrinth":"supermartijn642s-config-lib"},{"Id":4683,"Name":"","CurseForge":"small-ships","Modrinth":"small-ships"},{"Id":4684,"Name":"重新加载声音 (Sound Engine Reloader)","CurseForge":"sound-engine-reloader","Modrinth":""},{"Id":4685,"Name":"","CurseForge":"crystal-caves","Modrinth":""},{"Id":4686,"Name":"","CurseForge":"increasemobs","Modrinth":""},{"Id":4687,"Name":"稻草人领域 (Scarecrows' Territory)","CurseForge":"scarecrows-territory","Modrinth":"scarecrows-territory"},{"Id":4689,"Name":"","CurseForge":"dungeons-mod","Modrinth":""},{"Id":4689,"Name":"","CurseForge":"dungeons-mod-lite","Modrinth":""},{"Id":4690,"Name":"战利品光束 (Loot Beams: Relooted!)","CurseForge":"loot-beams","Modrinth":"loot-beams"},{"Id":4691,"Name":"","CurseForge":"theurgy","Modrinth":"theurgy"},{"Id":4692,"Name":"恶地改善 (Better Badlands)","CurseForge":"better-badlands","Modrinth":""},{"Id":4694,"Name":"","CurseForge":"the-mysthical-reworked","Modrinth":""},{"Id":4695,"Name":"","CurseForge":"villagers-and-monsters-mod-legency","Modrinth":""},{"Id":4696,"Name":"修损宝盒 (Repair Chests)","CurseForge":"repair-chests","Modrinth":""},{"Id":4698,"Name":"游戏遗物 (Relics Of Gaming)","CurseForge":"relics-of-gaming","Modrinth":""},{"Id":4699,"Name":"模块化控制器 (Modular Controller)","CurseForge":"modular-controller","Modrinth":""},{"Id":4701,"Name":"","CurseForge":"Item-Collectors","Modrinth":"item-collectors"},{"Id":4702,"Name":"旧版指令 (GamemodeOverhaul)","CurseForge":"gamemodeoverhaul","Modrinth":"gamemodeoverhaul"},{"Id":4704,"Name":"","CurseForge":"dash","Modrinth":"dash"},{"Id":4705,"Name":"地下城内容 (Dungeons Content)","CurseForge":"minecraft-dungeons-content","Modrinth":"dungeons-content"},{"Id":4706,"Name":"旧信标 (Old Beacon)","CurseForge":"old-beacon","Modrinth":""},{"Id":4707,"Name":"开放式电脑 II (OpenComputers II)","CurseForge":"oc2","Modrinth":""},{"Id":4708,"Name":"更好的植物盆栽 (Botany Pots Tiers)","CurseForge":"botany-pots-tiers","Modrinth":"botany-pots-tiers"},{"Id":4709,"Name":"紧凑存储修复 (ComPatchedStorage)","CurseForge":"compatchedstorage","Modrinth":""},{"Id":4710,"Name":"","CurseForge":"iseedragons","Modrinth":""},{"Id":4711,"Name":"","CurseForge":"psionic-peripherals","Modrinth":""},{"Id":4712,"Name":"灵灾 (Malum)","CurseForge":"malum","Modrinth":"malum"},{"Id":4713,"Name":"镕金术 (Allomancy)","CurseForge":"mc-modsomancy","Modrinth":"allomancy"},{"Id":4714,"Name":"","CurseForge":"steamcraft2","Modrinth":""},{"Id":4715,"Name":"","CurseForge":"boilerplate","Modrinth":""},{"Id":4716,"Name":"","CurseForge":"meldexuns-crystalic-void","Modrinth":""},{"Id":4717,"Name":"","CurseForge":"recipes-and-more","Modrinth":""},{"Id":4718,"Name":"骑羊驼 (Llama Steeds)","CurseForge":"llama-steeds-forge","Modrinth":"llama-steeds"},{"Id":4718,"Name":"骑羊驼 (Llama Steeds)","CurseForge":"llama-steeds","Modrinth":""},{"Id":4719,"Name":"","CurseForge":"levellib","Modrinth":"657400"},{"Id":4720,"Name":"","CurseForge":"enigmatic-graves","Modrinth":""},{"Id":4721,"Name":"边划边看 (Boat Item View)","CurseForge":"boat-item-view-forge","Modrinth":"boat-item-view"},{"Id":4721,"Name":"边划边看 (Boat Item View)","CurseForge":"boat-item-view","Modrinth":""},{"Id":4722,"Name":"Forge 苦力怕坑修复[非官方版] (Forge Creeper Heal [Unofficial])","CurseForge":"forge-creeper-heal-unofficial","Modrinth":""},{"Id":4723,"Name":"荒芜 (Desolation)","CurseForge":"desolation-forge","Modrinth":"desolation"},{"Id":4723,"Name":"荒芜 (Desolation)","CurseForge":"desolation","Modrinth":""},{"Id":4724,"Name":"","CurseForge":"ma-astral","Modrinth":""},{"Id":4725,"Name":"","CurseForge":"zaraklib","Modrinth":""},{"Id":4726,"Name":"","CurseForge":"chipped","Modrinth":"chipped"},{"Id":4728,"Name":"给老版本的经验修补 (Mending for Older Version)","CurseForge":"mending-for-1-7-10","Modrinth":""},{"Id":4729,"Name":"","CurseForge":"unreachable-fantasy-mod","Modrinth":""},{"Id":4730,"Name":"AI减速器 (AI Reducer)","CurseForge":"ai-reducer","Modrinth":""},{"Id":4731,"Name":"简易传送器 (Simple Teleporters)","CurseForge":"simple-teleporters","Modrinth":""},{"Id":4731,"Name":"简易传送器 (Simple Teleporters)","CurseForge":"simple-teleporters-fabric","Modrinth":""},{"Id":4732,"Name":"","CurseForge":"killmods","Modrinth":"657399"},{"Id":4733,"Name":"","CurseForge":"big-brain","Modrinth":"big-brain"},{"Id":4734,"Name":"适应性性能调整 (Adaptive Performance Tweaks)","CurseForge":"adaptive-performance-tweaks","Modrinth":"adaptive-performance-tweaks"},{"Id":4734,"Name":"适应性性能调整 (Adaptive Performance Tweaks) - 模块化版核心","CurseForge":"","Modrinth":"adaptive-performance-tweaks-core"},{"Id":4734,"Name":"适应性性能调整 (Adaptive Performance Tweaks) - 模块化版物品优化","CurseForge":"","Modrinth":"adaptive-performance-tweaks-items"},{"Id":4734,"Name":"适应性性能调整 (Adaptive Performance Tweaks) - 模块化版游戏规则优化","CurseForge":"","Modrinth":"adaptive-performance-tweaks-gamerules"},{"Id":4734,"Name":"适应性性能调整 (Adaptive Performance Tweaks) - 模块化版玩家优化","CurseForge":"","Modrinth":"adaptive-performance-tweaks-player"},{"Id":4734,"Name":"适应性性能调整 (Adaptive Performance Tweaks) - 模块化版生物生成优化","CurseForge":"","Modrinth":"adaptive-performance-tweaks-spawn"},{"Id":4735,"Name":"","CurseForge":"rltweaker","Modrinth":""},{"Id":4736,"Name":"多重背包 (MultiBags)","CurseForge":"multibags","Modrinth":""},{"Id":4737,"Name":"","CurseForge":"lavalib","Modrinth":""},{"Id":4738,"Name":"","CurseForge":"ftb-banners-forge","Modrinth":""},{"Id":4739,"Name":"","CurseForge":"overpowered-armor-bar","Modrinth":""},{"Id":4740,"Name":"匠魂西洋剑 (Tinkers' Rapier)","CurseForge":"tinkers-rapier","Modrinth":""},{"Id":4741,"Name":"土方工程重制版 (Earth Reworked)","CurseForge":"earth-reworked","Modrinth":""},{"Id":4742,"Name":"余烬奇景Forge版 (Cinderscapes Reforged)","CurseForge":"cinderscapes-reforged","Modrinth":"cinderscapes-reforged"},{"Id":4743,"Name":"水世界/更好的潜水 (Better Diving)","CurseForge":"better-diving","Modrinth":""},{"Id":4744,"Name":"自动冲刺:一键切换 (Auto Sprint : key toggle)","CurseForge":"auto-sprint","Modrinth":""},{"Id":4745,"Name":"","CurseForge":"nebula-rpg","Modrinth":""},{"Id":4746,"Name":"更好的下界Forge版 (BetterNether Reforged)","CurseForge":"betternether-reforged","Modrinth":""},{"Id":4747,"Name":"物品模型修复移植版 (Item Stitching Fix)","CurseForge":"item-stitching-fix","Modrinth":"item-stitching-fix"},{"Id":4748,"Name":"","CurseForge":"blood-and-madness","Modrinth":""},{"Id":4749,"Name":"","CurseForge":"afraid-of-the-dark","Modrinth":""},{"Id":4750,"Name":"超越钻石 (Ores Above Diamonds)","CurseForge":"ores-above-diamonds","Modrinth":""},{"Id":4751,"Name":"","CurseForge":"crafting-automat","Modrinth":""},{"Id":4752,"Name":"","CurseForge":"ingotter","Modrinth":""},{"Id":4753,"Name":"脚步声 (Presence Footsteps)","CurseForge":"presence-footsteps","Modrinth":"presence-footsteps"},{"Id":4754,"Name":"凌空微步 (Walk the air)","CurseForge":"walk-the-air","Modrinth":""},{"Id":4755,"Name":"","CurseForge":"castle-dungeons","Modrinth":"castle"},{"Id":4756,"Name":"","CurseForge":"mobs-properties-randomness","Modrinth":""},{"Id":4756,"Name":"Mobs Properties Randomness - 未及时更新,不全","CurseForge":"","Modrinth":"mobs-properties-randomness"},{"Id":4757,"Name":"蜥蜴微调 (Iguana Tweaks)","CurseForge":"iguana-tweaks","Modrinth":""},{"Id":4758,"Name":"","CurseForge":"enhanced-ai","Modrinth":"enhanced-ai"},{"Id":4759,"Name":"软碲铜 (vulcanite)","CurseForge":"vulcanite","Modrinth":""},{"Id":4759,"Name":"软碲铜 (vulcanite)","CurseForge":"vulcanite-fabric","Modrinth":""},{"Id":4760,"Name":"","CurseForge":"ziheasymodding","Modrinth":""},{"Id":4761,"Name":"","CurseForge":"path-to-dirt","Modrinth":"path-to-dirt"},{"Id":4762,"Name":"","CurseForge":"dirt2path","Modrinth":""},{"Id":4763,"Name":"","CurseForge":"carbonado","Modrinth":""},{"Id":4764,"Name":"","CurseForge":"strange","Modrinth":""},{"Id":4765,"Name":"","CurseForge":"tfctweaker","Modrinth":""},{"Id":4766,"Name":"","CurseForge":"scaling-feast","Modrinth":"scaling-feast"},{"Id":4767,"Name":"","CurseForge":"delete-item","Modrinth":""},{"Id":4768,"Name":"","CurseForge":"stexcraft-1-12-2-mod","Modrinth":""},{"Id":4769,"Name":"","CurseForge":"longerdays","Modrinth":""},{"Id":4770,"Name":"生物头颅 (Mob Heads)","CurseForge":"mob-heads","Modrinth":""},{"Id":4771,"Name":"","CurseForge":"compass-coords","Modrinth":"compass-coords"},{"Id":4772,"Name":"","CurseForge":"neverdark","Modrinth":""},{"Id":4773,"Name":"","CurseForge":"stats-keeper","Modrinth":""},{"Id":4773,"Name":"","CurseForge":"stats-keeper-fabric","Modrinth":""},{"Id":4774,"Name":"","CurseForge":"vanillatweaks","Modrinth":"vanillatweaks"},{"Id":4775,"Name":"","CurseForge":"bacodifficulty","Modrinth":""},{"Id":4776,"Name":"沉浸长杆 (Immersive Posts)","CurseForge":"immersiveposts","Modrinth":"immersiveposts"},{"Id":4777,"Name":"必死无疑 (The \"You Will Die\" Mod)","CurseForge":"fyres-youwilldiemod","Modrinth":""},{"Id":4778,"Name":"旧版行走动画 (Old Walking Animation)","CurseForge":"old-walking-animation","Modrinth":"old-walking-animation"},{"Id":4779,"Name":"末影魔法 (Ender's magic)","CurseForge":"enders-magic","Modrinth":""},{"Id":4780,"Name":"","CurseForge":"anvil-patch-lawful","Modrinth":""},{"Id":4781,"Name":"","CurseForge":"elegant-networking","Modrinth":""},{"Id":4782,"Name":"宝石++ (GemsPlusPlus)","CurseForge":"gemsplusplus","Modrinth":""},{"Id":4783,"Name":"默认设置 (DefaultSettings)","CurseForge":"defaultsettings","Modrinth":""},{"Id":4783,"Name":"默认设置 (DefaultSettings)","CurseForge":"defaultsettings-fabric","Modrinth":""},{"Id":4784,"Name":"Draylar的战斗高塔 (Draylar's Battle Towers)","CurseForge":"draylars-battle-towers","Modrinth":""},{"Id":4786,"Name":"可制作的锁链甲 (Leo's Craftable Chainmail)","CurseForge":"leos-craftable-chainmail","Modrinth":""},{"Id":4787,"Name":"","CurseForge":"time-to-die","Modrinth":""},{"Id":4788,"Name":"更好的生存 (Better Survival Mod)","CurseForge":"better-survival-mod","Modrinth":""},{"Id":4790,"Name":"","CurseForge":"tschipplib","Modrinth":""},{"Id":4791,"Name":"","CurseForge":"the-deep-dark-ocean-dimension","Modrinth":""},{"Id":4792,"Name":"在线相框显示2 (Modern Online Picture Frame)","CurseForge":"online-picture-frame","Modrinth":"modern-online-picture-frames"},{"Id":4793,"Name":"炽焰术师 (Pyromancer)","CurseForge":"pyromancer","Modrinth":""},{"Id":4794,"Name":"","CurseForge":"mekanism-fission-recipe","Modrinth":"mekanism-fission-recipe"},{"Id":4795,"Name":"Macaw 的栅栏与墙 / 麦考的栅栏与墙壁 (Macaw's Fences and Walls)","CurseForge":"macaws-fences-and-walls","Modrinth":"macaws-fences-and-walls"},{"Id":4797,"Name":"","CurseForge":"lunae-silva","Modrinth":""},{"Id":4799,"Name":"我的六号 (Rainbow6:Minesiege)","CurseForge":"rainbow6","Modrinth":""},{"Id":4800,"Name":"友好的末影螨 (FriendlyEndermite)","CurseForge":"friendlyendermite","Modrinth":"friendermite"},{"Id":4801,"Name":"食物扩展 (Food Expansion)","CurseForge":"food-expansion","Modrinth":""},{"Id":4802,"Name":"被遗忘的物品 (Forgotten Items)","CurseForge":"forgotten-items","Modrinth":""},{"Id":4803,"Name":"食物扩展:重构想 (Food Expansion: Reimagined)","CurseForge":"food-expansion-reimagined","Modrinth":"food-expansion-reimagined"},{"Id":4804,"Name":"","CurseForge":"redstone-igniter","Modrinth":""},{"Id":4805,"Name":"","CurseForge":"enchanting-tweaks","Modrinth":""},{"Id":4806,"Name":"","CurseForge":"thrown-slime","Modrinth":""},{"Id":4808,"Name":"","CurseForge":"inventory-auto-fill","Modrinth":""},{"Id":4809,"Name":"蜂后 (Queen Bee)","CurseForge":"queen-bee","Modrinth":"queen-bee"},{"Id":4810,"Name":"","CurseForge":"better-barrels","Modrinth":""},{"Id":4811,"Name":"","CurseForge":"enderbeetles","Modrinth":""},{"Id":4812,"Name":"","CurseForge":"customport","Modrinth":""},{"Id":4813,"Name":"","CurseForge":"more-sound-config","Modrinth":""},{"Id":4814,"Name":"","CurseForge":"undead-expansion","Modrinth":""},{"Id":4815,"Name":"沙漏 (Hourglass)","CurseForge":"hourglass","Modrinth":"hourglass"},{"Id":4816,"Name":"遗物 (Relics)","CurseForge":"relics-mod","Modrinth":"relics-mod"},{"Id":4817,"Name":"舒适下界 (Comfortable Nether)","CurseForge":"comfortable-nether","Modrinth":""},{"Id":4818,"Name":"奥法工艺2 (ArcaneCraft II)","CurseForge":"arcanecraft-ii","Modrinth":""},{"Id":4819,"Name":"脚步声Forge版 (Presence Footsteps (Forge))","CurseForge":"presence-footsteps-forge","Modrinth":"presence-footsteps-forge"},{"Id":4820,"Name":"","CurseForge":"aardvarks-weird-wonderful-wild","Modrinth":""},{"Id":4823,"Name":"","CurseForge":"little-delicacy-cafes","Modrinth":""},{"Id":4824,"Name":"","CurseForge":"ee3-helper","Modrinth":""},{"Id":4825,"Name":"拯救你的宠物 (Save Your Pets)","CurseForge":"save-your-pets","Modrinth":""},{"Id":4826,"Name":"","CurseForge":"main-menu-scale","Modrinth":""},{"Id":4827,"Name":"","CurseForge":"potion-fingers","Modrinth":""},{"Id":4828,"Name":"音频驱动重载 (Reload Audio Driver)","CurseForge":"reload-audio-driver-rad","Modrinth":""},{"Id":4828,"Name":"音频驱动重载 (Reload Audio Driver)","CurseForge":"reload-audio-driver-fabric","Modrinth":""},{"Id":4829,"Name":"","CurseForge":"shieldbreak","Modrinth":"shieldbreak"},{"Id":4830,"Name":"","CurseForge":"holiday-helper","Modrinth":""},{"Id":4831,"Name":"Fabric版运算变速 (Fabric TickRateChanger)","CurseForge":"fabric-tickratechanger-mod","Modrinth":""},{"Id":4832,"Name":"可视性能侦测 (Observable)","CurseForge":"observable","Modrinth":"observable"},{"Id":4833,"Name":"祛魔编辑台 (Disenchantment Edit Table)","CurseForge":"disenchantment-edit-table","Modrinth":""},{"Id":4835,"Name":"","CurseForge":"cit-resewn","Modrinth":"cit-resewn"},{"Id":4836,"Name":"","CurseForge":"lazy-language-loader","Modrinth":"lazy-language-loader"},{"Id":4837,"Name":"","CurseForge":"clef","Modrinth":""},{"Id":4838,"Name":"","CurseForge":"zettai-magic-2","Modrinth":""},{"Id":4840,"Name":"世界之战 (The War of the Worlds Mod)","CurseForge":"wotw-mod","Modrinth":""},{"Id":4844,"Name":"简单营火 (Simple Camp Fire)","CurseForge":"simple-camp-fire","Modrinth":""},{"Id":4845,"Name":"生物群系定位器 (Biome Locator)","CurseForge":"biome-locator","Modrinth":""},{"Id":4846,"Name":"","CurseForge":"extra-coals","Modrinth":""},{"Id":4847,"Name":"暗黑深穴 (Dark Caverns)","CurseForge":"dark-caverns","Modrinth":""},{"Id":4851,"Name":"","CurseForge":"milk-all-the-mobs","Modrinth":"milk-all-the-mobs"},{"Id":4851,"Name":"","CurseForge":"milk-all-the-mobs-fabric","Modrinth":""},{"Id":4852,"Name":"","CurseForge":"roadrunner","Modrinth":""},{"Id":4853,"Name":"","CurseForge":"pokecube-aoi","Modrinth":""},{"Id":4854,"Name":"Grim的雕像 (Grim Statues)","CurseForge":"grim-statues","Modrinth":""},{"Id":4855,"Name":"","CurseForge":"oauth","Modrinth":"oauth"},{"Id":4855,"Name":"","CurseForge":"oauth-fabric","Modrinth":""},{"Id":4856,"Name":"","CurseForge":"omaypaty-japan-mod","Modrinth":""},{"Id":4857,"Name":"鬼灭之刃 (DEMON SLAYER MOD)","CurseForge":"demon-slayer-mod-kimetu-no-yaiba","Modrinth":""},{"Id":4858,"Name":"","CurseForge":"tipthescales","Modrinth":"tipthescales"},{"Id":4859,"Name":"","CurseForge":"xplosives-mod","Modrinth":""},{"Id":4860,"Name":"","CurseForge":"arkys-environment","Modrinth":""},{"Id":4861,"Name":"","CurseForge":"candylands","Modrinth":""},{"Id":4862,"Name":"","CurseForge":"elements-of-power","Modrinth":""},{"Id":4863,"Name":"","CurseForge":"aquafina","Modrinth":""},{"Id":4864,"Name":"","CurseForge":"way-through-dimension","Modrinth":""},{"Id":4865,"Name":"","CurseForge":"journeymap-integration","Modrinth":"journeymap-integration"},{"Id":4867,"Name":"伤害色调 (Damage Tint)","CurseForge":"damage-tint","Modrinth":"damage-tint"},{"Id":4868,"Name":"","CurseForge":"mo-spells","Modrinth":""},{"Id":4869,"Name":"史前自然 (Prehistoric Nature)","CurseForge":"prehistoric-flora","Modrinth":""},{"Id":4869,"Name":"史前自然 (Prehistoric Nature)","CurseForge":"prehistoric-nature","Modrinth":"prehistoric-nature"},{"Id":4870,"Name":"剑制 (Blade Works/nikgub_'s Blades+)","CurseForge":"blade-works","Modrinth":""},{"Id":4871,"Name":"机械动力:甜食 (Create Confectionery)","CurseForge":"create-confectionery","Modrinth":"create-confectionery"},{"Id":4875,"Name":"腐朽猪灵 (Rotten Piglins)","CurseForge":"rotten-piglins-mod","Modrinth":""},{"Id":4876,"Name":"无中生有:随想 (Ex Nihilo: Random)","CurseForge":"ex-nihilo-random","Modrinth":""},{"Id":4879,"Name":"离线皮肤切换 (Fabric Tailor)","CurseForge":"fabrictailor","Modrinth":"fabrictailor"},{"Id":4880,"Name":"","CurseForge":"ambientworld","Modrinth":""},{"Id":4881,"Name":"自定义袭击 (Custom Raid)","CurseForge":"","Modrinth":"custom-raid"},{"Id":4882,"Name":"苹果树:复生 (Apple Trees Revived)","CurseForge":"apple-trees-revived","Modrinth":""},{"Id":4883,"Name":"马铃薯幸运方块 (Potato's Lucky block)","CurseForge":"potatos-lucky-block","Modrinth":""},{"Id":4884,"Name":"","CurseForge":"even-more-tnt","Modrinth":""},{"Id":4885,"Name":"有趣的TNT (Fun TNT)","CurseForge":"fun-tnt","Modrinth":""},{"Id":4887,"Name":"智利工艺 (Chilean Craft)","CurseForge":"chileancraft","Modrinth":""},{"Id":4888,"Name":"水渠 (Canals)","CurseForge":"canals","Modrinth":""},{"Id":4890,"Name":"地下战利品箱 (Underground Loot Crates)","CurseForge":"underground-loot-crates","Modrinth":""},{"Id":4892,"Name":"平滑滚动 (Smooth Scrolling Everywhere)","CurseForge":"smooth-scrolling-everywhere","Modrinth":""},{"Id":4892,"Name":"平滑滚动 (Smooth Scrolling Everywhere)","CurseForge":"smooth-scrolling-everywhere-fabric","Modrinth":""},{"Id":4893,"Name":"持剑格挡 (Sword Blocking)","CurseForge":"sword-blocking","Modrinth":"sword-blocking"},{"Id":4894,"Name":"更好的骑乘 HUD (Better Mount HUD)","CurseForge":"better-mount-hud","Modrinth":"better-mount-hud"},{"Id":4895,"Name":"火焰叠加层调整 (Fire Overlay Controller)","CurseForge":"fire-overlay-controller","Modrinth":"fire-overlay-controller"},{"Id":4897,"Name":"粒子雨 (Particle Rain)","CurseForge":"particle-rain","Modrinth":"particle-rain"},{"Id":4898,"Name":"镁 (Magnesium / Sodium Reforged)","CurseForge":"sodium-reforged","Modrinth":""},{"Id":4899,"Name":"硫 (Sulfuric/Phosphor Reforged)","CurseForge":"phosphor-reforged","Modrinth":""},{"Id":4900,"Name":"氦 (Helium)","CurseForge":"hydrogen-reforged","Modrinth":""},{"Id":4901,"Name":"超多食物+ (XL Food Mod+)","CurseForge":"xl-food-mod-plus","Modrinth":""},{"Id":4903,"Name":"群服互联🔗 (McBot🔗)","CurseForge":"mcbot","Modrinth":"mcbot"},{"Id":4904,"Name":"","CurseForge":"ice-and-fire-dragonseeker","Modrinth":""},{"Id":4905,"Name":"Reese的钠视频界面 (Reese's Sodium Options)","CurseForge":"reeses-sodium-options","Modrinth":"reeses-sodium-options"},{"Id":4906,"Name":"","CurseForge":"continuity","Modrinth":"continuity"},{"Id":4907,"Name":"","CurseForge":"airportmod","Modrinth":""},{"Id":4908,"Name":"更好的界面缩放 (Better GUI Scaling / Better UI Scale)","CurseForge":"better-gui-scaling","Modrinth":"betterguiscaling"},{"Id":4909,"Name":"头衔 (Titles)","CurseForge":"titles","Modrinth":"titles"},{"Id":4910,"Name":"","CurseForge":"skiing","Modrinth":""},{"Id":4911,"Name":"","CurseForge":"cave-biomes","Modrinth":""},{"Id":4912,"Name":"","CurseForge":"tatami","Modrinth":""},{"Id":4913,"Name":"","CurseForge":"final-fantasy-12-mod","Modrinth":""},{"Id":4914,"Name":"加载界面动画 (Mojangster (Animated Loading Screen))","CurseForge":"mojangster","Modrinth":"mojangster"},{"Id":4915,"Name":"","CurseForge":"anvil-tweaks","Modrinth":""},{"Id":4916,"Name":"沥青 (Asphalt Mod)","CurseForge":"asphaltmod","Modrinth":""},{"Id":4918,"Name":"刷新附魔Forge版 (Reroll-Forge)","CurseForge":"reroll-forge","Modrinth":""},{"Id":4919,"Name":"剑模型扩大 (SwordEnlarger)","CurseForge":"swordenlarger","Modrinth":""},{"Id":4920,"Name":"天空之城 (Castle in the Sky)","CurseForge":"castle-in-the-sky-the-fairytale-of-laputa","Modrinth":""},{"Id":4921,"Name":"维度矿石 (DimensionalOres)","CurseForge":"dimensionalores","Modrinth":""},{"Id":4921,"Name":"维度矿石 (DimensionalOres)","CurseForge":"dimore","Modrinth":""},{"Id":4922,"Name":"更多的灾厄村民 (Illagers+)","CurseForge":"illagers","Modrinth":"illagers+"},{"Id":4926,"Name":"村民跟随绿宝石 (Villagers follow Emeralds)","CurseForge":"villagers-follow-emeralds-fabric","Modrinth":"villagers-follow-emeralds-fabric"},{"Id":4928,"Name":"暗黑破坏神战利品 (DiabloLoot - Bosses Update)","CurseForge":"diabloloot","Modrinth":""},{"Id":4929,"Name":"世界树 (Yggdrasil)","CurseForge":"yggdrasil","Modrinth":""},{"Id":4930,"Name":"","CurseForge":"ftb-dripper-forge","Modrinth":""},{"Id":4931,"Name":"子沙1.14+ (Snad)","CurseForge":"forge-snad","Modrinth":""},{"Id":4931,"Name":"子沙1.14+ (Snad)","CurseForge":"fabric-snad","Modrinth":""},{"Id":4933,"Name":"","CurseForge":"opentoall","Modrinth":""},{"Id":4935,"Name":"网络音乐机 (Net Music)","CurseForge":"net-music","Modrinth":"net-music"},{"Id":4936,"Name":"火把弓 (TorchBowMod)","CurseForge":"torchbowmod","Modrinth":"torchbowmod"},{"Id":4937,"Name":"","CurseForge":"esencia","Modrinth":""},{"Id":4938,"Name":"","CurseForge":"weirdmobs","Modrinth":"ydms-weirdmobs"},{"Id":4939,"Name":"附魔等级语言补丁 (EnchLevel-LangPatch)","CurseForge":"enchantment-level-language-patch","Modrinth":"enchlevel-langpatch"},{"Id":4940,"Name":"","CurseForge":"open-to-lan","Modrinth":""},{"Id":4941,"Name":"简单翻译 (Simple Translation)","CurseForge":"simple-translation","Modrinth":"simple-translation"},{"Id":4942,"Name":"效果控制 (Fx control)","CurseForge":"fx-control","Modrinth":"fx-control"},{"Id":4943,"Name":"","CurseForge":"what-are-you-voting-for","Modrinth":"what-are-you-voting-for"},{"Id":4944,"Name":"蒸汽动力 (Create: Steam Powered)","CurseForge":"steam-powered-create","Modrinth":"create-steam-powered"},{"Id":4945,"Name":"","CurseForge":"creepers-burn","Modrinth":"CreepersBurn"},{"Id":4947,"Name":"魔法森林重置版 (Pretty, Game-Enhhancing Gobblet Remake)","CurseForge":"pretty-game-enhhancing-gobblet-pgeg-remake","Modrinth":""},{"Id":4949,"Name":"蛋挞君的原版补全装备篇 (KVCEquipment)","CurseForge":"kvc-equipment","Modrinth":""},{"Id":4950,"Name":"哞菇工艺 (Mooshroomcraft)","CurseForge":"mooshroomcraft","Modrinth":""},{"Id":4951,"Name":"出土 (Unearthed)","CurseForge":"unearthed","Modrinth":""},{"Id":4951,"Name":"出土 (Unearthed)","CurseForge":"unearthed-fabric","Modrinth":""},{"Id":4952,"Name":"","CurseForge":"terrestria","Modrinth":"terrestria"},{"Id":4952,"Name":"","CurseForge":"terrestria-reforged","Modrinth":""},{"Id":4953,"Name":"Simplex地形生成器 (Simplex Terrain Generation)","CurseForge":"simplex-terrain-generation","Modrinth":""},{"Id":4954,"Name":"末影之景 (Enderscape)","CurseForge":"enderscape","Modrinth":"enderscape"},{"Id":4955,"Name":"哥布林商人Fabric版 (Goblin Traders (Fabric))","CurseForge":"goblin-traders-fabric","Modrinth":"goblin-traders-fabric"},{"Id":4956,"Name":"湖畔 (Lakeside)","CurseForge":"lakeside","Modrinth":"lakeside"},{"Id":4957,"Name":"CHENZIQIU的创意 (CHENZIQIU's Originality)","CurseForge":"chenziqius-originality","Modrinth":""},{"Id":4958,"Name":"合金冶炼炉 (Alloy Forgery)","CurseForge":"mc-modsoy-forgery","Modrinth":"alloy-forgery"},{"Id":4959,"Name":"机械科技 (Mechanical Tech)","CurseForge":"mechanical-tech","Modrinth":"mechanical-tech"},{"Id":4960,"Name":"阴间游戏 (HadesGame)","CurseForge":"hadesgame","Modrinth":""},{"Id":4961,"Name":"","CurseForge":"one-block-forge","Modrinth":""},{"Id":4963,"Name":"","CurseForge":"human-reborn","Modrinth":"human-reborn"},{"Id":4964,"Name":"额外扩展 (Additional Additions)","CurseForge":"additional-additions-forge","Modrinth":"addadd"},{"Id":4964,"Name":"额外扩展 (Additional Additions)","CurseForge":"additional-additions","Modrinth":""},{"Id":4965,"Name":"","CurseForge":"earlygame","Modrinth":"earlygame"},{"Id":4966,"Name":"","CurseForge":"happiness-is-a-warm-gun","Modrinth":"happiness-is-a-warm-gun"},{"Id":4968,"Name":"蛋挞君的原版补全方块篇 (KVCBlocks)","CurseForge":"kvc-blocks","Modrinth":""},{"Id":4969,"Name":"","CurseForge":"enigtech2-util","Modrinth":""},{"Id":4970,"Name":"环保型苦力怕 (Environmental Creepers)","CurseForge":"environmental-creepers","Modrinth":"environmental-creepers"},{"Id":4972,"Name":"","CurseForge":"look-at-that","Modrinth":""},{"Id":4973,"Name":"高级外设 (Advanced Peripherals)","CurseForge":"advanced-peripherals","Modrinth":"advancedperipherals"},{"Id":4974,"Name":"","CurseForge":"nether-chest-fabric","Modrinth":"nether-chest"},{"Id":4975,"Name":"","CurseForge":"","Modrinth":"essentialaddons"},{"Id":4976,"Name":"","CurseForge":"levelz","Modrinth":"levelz"},{"Id":4977,"Name":"更好的末地Forge重铸版 (BetterEnd Reforked)","CurseForge":"betterend-re-forked","Modrinth":""},{"Id":4978,"Name":"采矿小工具 (Mining Gadgets)","CurseForge":"mining-gadgets","Modrinth":""},{"Id":4978,"Name":"采矿小工具 (Mining Gadgets)","CurseForge":"mining-gadgets-fabric","Modrinth":""},{"Id":4979,"Name":"","CurseForge":"ponderjs","Modrinth":""},{"Id":4980,"Name":"","CurseForge":"majrusz-library","Modrinth":"majrusz-library"},{"Id":4981,"Name":"YDM的铜傀儡 (YDM's CopperGolem)","CurseForge":"ydms-coppergolem","Modrinth":"ydms-copper-golem"},{"Id":4982,"Name":"","CurseForge":"chococraft-3","Modrinth":""},{"Id":4983,"Name":"","CurseForge":"chococraft-plus","Modrinth":"chococraft-plus"},{"Id":4984,"Name":"","CurseForge":"travel-huts","Modrinth":""},{"Id":4985,"Name":"","CurseForge":"expandability","Modrinth":""},{"Id":4986,"Name":"松鼠 (Squirrels)","CurseForge":"squirrels","Modrinth":""},{"Id":4987,"Name":"FTB 电力植物盆 (FTB Power Pots)","CurseForge":"ftb-power-pots","Modrinth":""},{"Id":4988,"Name":"墓园 (The Graveyard)","CurseForge":"the-graveyard-forge","Modrinth":"the-graveyard-forge"},{"Id":4988,"Name":"墓园 (The Graveyard)","CurseForge":"the-graveyard-fabric","Modrinth":"the-graveyard-fabric"},{"Id":4989,"Name":"下界农业 (Nether Agriculture)","CurseForge":"nether-agriculture","Modrinth":"netheragriculture"},{"Id":4990,"Name":"","CurseForge":"conjuring","Modrinth":"conjuring"},{"Id":4991,"Name":"","CurseForge":"awesome-dungeon-forge","Modrinth":"awesome-dungeon"},{"Id":4991,"Name":"","CurseForge":"awesome-dungeon-fabric","Modrinth":""},{"Id":4991,"Name":"","CurseForge":"awesome-dungeon-neoforge","Modrinth":""},{"Id":4992,"Name":"","CurseForge":"out-of-sight","Modrinth":"out-of-sight"},{"Id":4993,"Name":"装饰方块模组兼容 (Decorative Blocks modded compat)","CurseForge":"decorative-blocks-modded-compat","Modrinth":""},{"Id":4994,"Name":"","CurseForge":"camp-chair","Modrinth":"camp-chair"},{"Id":4995,"Name":"","CurseForge":"size-matters","Modrinth":""},{"Id":4996,"Name":"粉笔 (Chalk)","CurseForge":"chalk","Modrinth":"chalk-mod"},{"Id":4997,"Name":"","CurseForge":"chalk-fabric","Modrinth":"chalk"},{"Id":4998,"Name":"模组管理器 (Mod Manager)","CurseForge":"","Modrinth":"modmanager"},{"Id":4999,"Name":"合成冲突消除 (Yet Another Recipe Conflict Fixer)","CurseForge":"yarcf","Modrinth":"yarcf"},{"Id":5000,"Name":"","CurseForge":"drones","Modrinth":""},{"Id":5001,"Name":"","CurseForge":"ticbc","Modrinth":""},{"Id":5003,"Name":"","CurseForge":"meetle","Modrinth":""},{"Id":5004,"Name":"塔罗 (Tarot)","CurseForge":"tarot","Modrinth":""},{"Id":5005,"Name":"力量工艺 (ForceCraft)","CurseForge":"forcecraft","Modrinth":"forcecraft"},{"Id":5006,"Name":"右击收割 (Right-Click-Harvest)","CurseForge":"right-click-harvest","Modrinth":"right-click-harvest"},{"Id":5007,"Name":"","CurseForge":"custom-content-packs","Modrinth":""},{"Id":5008,"Name":"","CurseForge":"cake-chomps","Modrinth":"cake-chomps"},{"Id":5008,"Name":"","CurseForge":"cake-chomps-fabric","Modrinth":""},{"Id":5009,"Name":"","CurseForge":"distant-horizons","Modrinth":"distanthorizons"},{"Id":5010,"Name":"更好的P2P支持 (Better P2P)","CurseForge":"betterp2p","Modrinth":"betterp2p"},{"Id":5011,"Name":"海灵物语 (Aquamirae)","CurseForge":"ob-aquamirae","Modrinth":""},{"Id":5011,"Name":"海灵物语 (Aquamirae)","CurseForge":"aquamirae-fabric","Modrinth":""},{"Id":5011,"Name":"海灵物语 (Aquamirae)","CurseForge":"","Modrinth":"aquamirae"},{"Id":5012,"Name":"","CurseForge":"nuclear-tfc","Modrinth":""},{"Id":5013,"Name":"只是更多的蛋糕! (Just More Cakes!)","CurseForge":"just-more-cakes","Modrinth":"just-more-cakes"},{"Id":5013,"Name":"只是更多的蛋糕! (Just More Cakes!)","CurseForge":"just-more-cakes-fabric","Modrinth":""},{"Id":5014,"Name":"","CurseForge":"image-mod","Modrinth":"image-mod"},{"Id":5015,"Name":"增强木桶 (Reinforced Barrels)","CurseForge":"reinforced-barrels","Modrinth":"reinforced-barrels"},{"Id":5016,"Name":"望远镜变焦 (Spyglass Zoom)","CurseForge":"spyglass-zoom","Modrinth":""},{"Id":5017,"Name":"NPC变体 (NPC Variety)","CurseForge":"npc-variety-port","Modrinth":"npc-variety"},{"Id":5018,"Name":"","CurseForge":"just-enough-effects","Modrinth":""},{"Id":5019,"Name":"幻想多媒体2 (Incorporeal 2 + Rhododendrite)","CurseForge":"incorporeal-2-rhododendrite","Modrinth":""},{"Id":5021,"Name":"","CurseForge":"einsteins-library","Modrinth":"einsteins-library"},{"Id":5022,"Name":"","CurseForge":"worldshape","Modrinth":""},{"Id":5023,"Name":"精致存储大样板 (Refined Storage Large Patterns)","CurseForge":"rslargepatterns","Modrinth":""},{"Id":5024,"Name":"","CurseForge":"gendustry-jei-addon","Modrinth":""},{"Id":5025,"Name":"","CurseForge":"statement","Modrinth":"statement"},{"Id":5026,"Name":"更多突变生物 (Mutant More)","CurseForge":"mutant-more","Modrinth":"mutant-more"},{"Id":5026,"Name":"更多突变生物 (Mutant More)","CurseForge":"new-mutant-more","Modrinth":"new-mutant-more"},{"Id":5028,"Name":"","CurseForge":"just-enough-keg","Modrinth":""},{"Id":5029,"Name":"","CurseForge":"paleolithic-revolution","Modrinth":""},{"Id":5030,"Name":"更好的盾牌 (Better Shields)","CurseForge":"better-shields","Modrinth":""},{"Id":5031,"Name":"YUNG 的桥 (YUNG's Bridges)","CurseForge":"yungs-bridges","Modrinth":"yungs-bridges"},{"Id":5031,"Name":"YUNG 的桥 (YUNG's Bridges)","CurseForge":"yungs-bridges-fabric","Modrinth":""},{"Id":5031,"Name":"YUNG 的桥 (YUNG's Bridges)","CurseForge":"yungs-bridges-neoforge","Modrinth":""},{"Id":5032,"Name":"红石计划:传导 (ProjectRed - Transmission)","CurseForge":"project-red-transmission","Modrinth":"project-red-transmission"},{"Id":5033,"Name":"","CurseForge":"day-dream","Modrinth":"day-dream"},{"Id":5034,"Name":"更凶猛的末影龙 (Savage Ender Dragon)","CurseForge":"savage-ender-dragon","Modrinth":""},{"Id":5036,"Name":"武器时代 (Age of Weapons)","CurseForge":"age-of-weapons","Modrinth":"age-of-weapons-reforged"},{"Id":5037,"Name":"抽屉钥匙扣 (DrawerStorage Keychain)","CurseForge":"drawerstorage-keychain","Modrinth":""},{"Id":5038,"Name":"分形工业 (Fractal Industry)","CurseForge":"fracdustry","Modrinth":"fracdustry"},{"Id":5039,"Name":"魔法森林 (Magical Forest)","CurseForge":"magical-forest","Modrinth":""},{"Id":5040,"Name":"皮肤更换器 (Skin Swapper)","CurseForge":"skin-swapper","Modrinth":"skinswapper"},{"Id":5043,"Name":"","CurseForge":"owo-lib","Modrinth":"owo-lib"},{"Id":5044,"Name":"","CurseForge":"picturesign","Modrinth":"picturesign"},{"Id":5045,"Name":"神圣任务 (Divine Missions)","CurseForge":"divine-missions","Modrinth":""},{"Id":5046,"Name":"格雷筛子 (GregSieves)","CurseForge":"gregsieves","Modrinth":""},{"Id":5047,"Name":"格雷科技食物优选 (GregTech Food Option)","CurseForge":"gregtech-food-option","Modrinth":"gregtech-food-option"},{"Id":5048,"Name":"工业线缆:转化版 (Converting Industrial Wires)","CurseForge":"converting-industrial-wires","Modrinth":""},{"Id":5049,"Name":"匠魂矿辞缓存 (Tinkers OreDict Cache)","CurseForge":"tinkers-oredict-cache","Modrinth":""},{"Id":5050,"Name":"精神病 (Mental illness)","CurseForge":"mentalillness","Modrinth":""},{"Id":5051,"Name":"更好的镁视频设置按钮 (Better Magnesium Video Settings Button)","CurseForge":"better-magnesium-video-settings-button","Modrinth":""},{"Id":5052,"Name":"","CurseForge":"adventurez","Modrinth":"adventurez"},{"Id":5053,"Name":"","CurseForge":"mobz","Modrinth":""},{"Id":5054,"Name":"村民任务 (VillagerQuests)","CurseForge":"villagerquests","Modrinth":"villagerquests"},{"Id":5055,"Name":"","CurseForge":"environmentz","Modrinth":"environmentz"},{"Id":5057,"Name":"回归之眼 (Homing Ender Eye)","CurseForge":"homing-ender-eye","Modrinth":"homing-ender-eye"},{"Id":5058,"Name":"魔法作物:重生 (Magical Crops: Regrowth)","CurseForge":"magical-crops-regrowth-1-16-5","Modrinth":""},{"Id":5059,"Name":"","CurseForge":"voidz","Modrinth":"voidz"},{"Id":5060,"Name":"","CurseForge":"mining-master","Modrinth":"mining-master"},{"Id":5062,"Name":"","CurseForge":"victus","Modrinth":"victus"},{"Id":5063,"Name":"更多食物:复生 (Lots of Food Revived)","CurseForge":"lots-of-food-revived","Modrinth":""},{"Id":5064,"Name":"不要饿死2 (DontStarve2)","CurseForge":"dontstarve","Modrinth":""},{"Id":5065,"Name":"","CurseForge":"steves-universe-space-mod","Modrinth":""},{"Id":5066,"Name":"糖果世界:重制版 (Candy World - ReCaramelized)","CurseForge":"candy-world-recaramelized","Modrinth":""},{"Id":5067,"Name":"搬运 (Carrier)","CurseForge":"carrier","Modrinth":""},{"Id":5069,"Name":"撤销! (Undo!)","CurseForge":"undo","Modrinth":""},{"Id":5070,"Name":"无名动物模组 (Unnamed Animal Mod)","CurseForge":"unnamed-animal-mod","Modrinth":""},{"Id":5071,"Name":"骆驼 (Camels)","CurseForge":"camels","Modrinth":""},{"Id":5072,"Name":"","CurseForge":"food-effects","Modrinth":"food-effects"},{"Id":5073,"Name":"物品边框 (Item Borders)","CurseForge":"item-borders","Modrinth":"item-borders"},{"Id":5073,"Name":"物品边框 (Item Borders)","CurseForge":"item-borders-fabric","Modrinth":""},{"Id":5074,"Name":"冰山 (Iceberg)","CurseForge":"iceberg","Modrinth":"iceberg"},{"Id":5074,"Name":"冰山 (Iceberg)","CurseForge":"iceberg-fabric","Modrinth":""},{"Id":5077,"Name":"增强农业 (Enhanced Farming)","CurseForge":"enhanced-farming","Modrinth":"enhanced-farming"},{"Id":5080,"Name":"熔岩下清晰视野 (Lava Clear View)","CurseForge":"lava-clear-view","Modrinth":"lava-clear-view"},{"Id":5080,"Name":"熔岩下清晰视野 (Lava Clear View)","CurseForge":"lava-clear-view-fabric","Modrinth":""},{"Id":5081,"Name":"","CurseForge":"global-xp","Modrinth":"global-xp"},{"Id":5082,"Name":"","CurseForge":"universal-graves","Modrinth":"universal-graves"},{"Id":5084,"Name":"更多弓:重振旗鼓! (More Bows: Restrung!)","CurseForge":"more-bows-restrung","Modrinth":"more-bows-restrung"},{"Id":5085,"Name":"灵活 (Nimble)","CurseForge":"nimble-fabric","Modrinth":"nimble"},{"Id":5085,"Name":"灵活 (Nimble)","CurseForge":"nimble","Modrinth":""},{"Id":5086,"Name":"金属储物桶 (Metal Barrels)","CurseForge":"metal-barrels","Modrinth":"metal-barrels"},{"Id":5090,"Name":"","CurseForge":"motiono","Modrinth":""},{"Id":5092,"Name":"香草食谱 (VanillaRecipe)","CurseForge":"vanillarecipe","Modrinth":""},{"Id":5095,"Name":"神奇的鱼 (Fantastic Fish)","CurseForge":"fantastic-fish-alpha-v1-4","Modrinth":""},{"Id":5098,"Name":"更多存储挂载 (More Mounted Storages)","CurseForge":"more-mounted-storages","Modrinth":""},{"Id":5099,"Name":"凡家物语:重生 (MCA Reborn)","CurseForge":"minecraft-comes-alive-reborn","Modrinth":"minecraft-comes-alive-reborn"},{"Id":5100,"Name":"面条的Apex系列 (Noodles'Apex Series)","CurseForge":"noodles-apex","Modrinth":""},{"Id":5101,"Name":"货币矿机 (Beast Coin Miner)","CurseForge":"ftb-beast-coin-miner","Modrinth":""},{"Id":5102,"Name":"","CurseForge":"scape-and-run-parasites-addon-by-nocube","Modrinth":""},{"Id":5103,"Name":"八齿鼠 (Vanilla Degus)","CurseForge":"vanilla-degus","Modrinth":""},{"Id":5104,"Name":"","CurseForge":"ksyxis","Modrinth":"ksyxis"},{"Id":5105,"Name":"冶金4:重铸 (Metallurgy 4: Reforged)","CurseForge":"metallurgy-4-reforged","Modrinth":""},{"Id":5106,"Name":"","CurseForge":"harder-natural-healing","Modrinth":"harder-natural-healing"},{"Id":5107,"Name":"","CurseForge":"extra-bit-manipulation","Modrinth":""},{"Id":5108,"Name":"斯巴达的武器:暮色森林 (Spartan Weaponry: Twilight Forest)","CurseForge":"spartan-weaponry-twilight-forest","Modrinth":"spartan-weaponry-twilight-forest"},{"Id":5109,"Name":"","CurseForge":"iris-reforged","Modrinth":""},{"Id":5110,"Name":"更多灯笼 (Additional Lanterns)","CurseForge":"additional-lanterns","Modrinth":"additional-lanterns"},{"Id":5111,"Name":"瓶装空气 (Bottled Air)","CurseForge":"bottled-air","Modrinth":"bottled-air"},{"Id":5111,"Name":"瓶装空气 (Bottled Air)","CurseForge":"bottled-air-fabric","Modrinth":""},{"Id":5112,"Name":"","CurseForge":"fabricproxy-lite","Modrinth":"fabricproxy-lite"},{"Id":5113,"Name":"","CurseForge":"abyssal-depths","Modrinth":""},{"Id":5114,"Name":"秘典 (Tomes)","CurseForge":"tomes","Modrinth":""},{"Id":5115,"Name":"","CurseForge":"budschies-morph-mod","Modrinth":"budschies-morph-mod"},{"Id":5116,"Name":"帕尔奇的星球大战 (Parzi's Star Wars Mod)","CurseForge":"pswg","Modrinth":""},{"Id":5116,"Name":"帕尔奇的星球大战 (Parzi's Star Wars Mod)","CurseForge":"parzis-star-wars-mod","Modrinth":""},{"Id":5117,"Name":"","CurseForge":"aquatic-abyss","Modrinth":""},{"Id":5118,"Name":"","CurseForge":"slimier-slimes","Modrinth":""},{"Id":5119,"Name":"","CurseForge":"stupid-weapon","Modrinth":""},{"Id":5120,"Name":"史莱姆杀戮 (Slime Carnage)","CurseForge":"slime-carnage","Modrinth":""},{"Id":5121,"Name":"","CurseForge":"portal-tags","Modrinth":""},{"Id":5122,"Name":"伊甸星环 (Eden Ring)","CurseForge":"eden-ring","Modrinth":"eden-ring-reforked"},{"Id":5123,"Name":"放置调整 (Placement Tweaks)","CurseForge":"placement-tweaks","Modrinth":""},{"Id":5124,"Name":"鬼灭动作 (Kimetsu Animation)","CurseForge":"kimetsu-animation-demon-slayer-animation","Modrinth":""},{"Id":5125,"Name":"","CurseForge":"hals-enhanced-biomes","Modrinth":""},{"Id":5126,"Name":"改良背包 (Improved Backpacks)","CurseForge":"improvedbackpacks","Modrinth":""},{"Id":5127,"Name":"末影技能 (Ender Skills)","CurseForge":"ender-skills","Modrinth":""},{"Id":5128,"Name":"实用铁轨 (Useful Railroads)","CurseForge":"useful-railroads","Modrinth":"useful-railroads"},{"Id":5129,"Name":"","CurseForge":"voluminous-energy","Modrinth":"voluminous_energy"},{"Id":5130,"Name":"","CurseForge":"flaminco","Modrinth":""},{"Id":5131,"Name":"","CurseForge":"simple-graves","Modrinth":""},{"Id":5134,"Name":"WI变焦 (WI Zoom)","CurseForge":"wi-zoom","Modrinth":"wi-zoom"},{"Id":5135,"Name":"","CurseForge":"forge-carpet","Modrinth":"forge-carpet"},{"Id":5137,"Name":"砍树 (Fabric Tree Chopper)","CurseForge":"fabric-tree-chopper","Modrinth":"fabric-tree-chopper"},{"Id":5138,"Name":"","CurseForge":"i-see-lava","Modrinth":"i-see-lava"},{"Id":5139,"Name":"","CurseForge":"dual-riders","Modrinth":""},{"Id":5140,"Name":"简单分类2 (Refined Relocation 2)","CurseForge":"refined-relocation-2","Modrinth":""},{"Id":5141,"Name":"","CurseForge":"ftb-sluice","Modrinth":""},{"Id":5142,"Name":"天空村庄 (Sky Villages)","CurseForge":"sky-villages-forge","Modrinth":"sky-villages"},{"Id":5142,"Name":"天空村庄 (Sky Villages)","CurseForge":"sky-villages-fabric","Modrinth":""},{"Id":5143,"Name":"","CurseForge":"gui-clock","Modrinth":"gui-clock"},{"Id":5143,"Name":"","CurseForge":"gui-clock-fabric-version","Modrinth":""},{"Id":5144,"Name":"","CurseForge":"hand-over-your-items","Modrinth":"hand-over-your-items"},{"Id":5144,"Name":"","CurseForge":"hand-over-your-items-fabric","Modrinth":""},{"Id":5145,"Name":"","CurseForge":"koopas-critters","Modrinth":"koopas-critters"},{"Id":5146,"Name":"氪Forge版 (Krypton Reforged)","CurseForge":"krypton-reforged","Modrinth":""},{"Id":5147,"Name":"物品计数器 (Item Counter)","CurseForge":"item-counter","Modrinth":""},{"Id":5149,"Name":"","CurseForge":"reality-check-real-life-timer","Modrinth":""},{"Id":5150,"Name":"","CurseForge":"retail","Modrinth":""},{"Id":5152,"Name":"","CurseForge":"time-core-lib","Modrinth":""},{"Id":5154,"Name":"","CurseForge":"mclogin","Modrinth":""},{"Id":5155,"Name":"","CurseForge":"rereskillable","Modrinth":""},{"Id":5156,"Name":"","CurseForge":"kubejs-blood-magic","Modrinth":""},{"Id":5157,"Name":"","CurseForge":"kubejs-create","Modrinth":"kubejs-create"},{"Id":5158,"Name":"","CurseForge":"kubejs-ui-forge","Modrinth":""},{"Id":5159,"Name":"","CurseForge":"kubejs-thermal","Modrinth":"kubejs-thermal"},{"Id":5160,"Name":"","CurseForge":"kubejs-immersive-engineering","Modrinth":"kubejs-immersive-engineering"},{"Id":5161,"Name":"","CurseForge":"kubejs-mekanism","Modrinth":"kubejs-mekanism"},{"Id":5162,"Name":"初始套件 (Starter Kit)","CurseForge":"starter-kit","Modrinth":"starter-kit"},{"Id":5162,"Name":"初始套件 (Starter Kit)","CurseForge":"starter-kit-fabric","Modrinth":""},{"Id":5164,"Name":"","CurseForge":"stacker","Modrinth":"stacker"},{"Id":5165,"Name":"","CurseForge":"gcm","Modrinth":""},{"Id":5166,"Name":"","CurseForge":"ocean-floor-clay-sand-and-dirt","Modrinth":""},{"Id":5167,"Name":"","CurseForge":"linfox-stacked-dimensions-warden-edition","Modrinth":""},{"Id":5168,"Name":"","CurseForge":"experience-bottler","Modrinth":""},{"Id":5169,"Name":"Gregicality矿物拓展 (Gregicality Ore Addon)","CurseForge":"gregicality-ore-addon","Modrinth":""},{"Id":5170,"Name":"格雷科技电池箱的开放式电脑驱动 (GregTech Battery Buffer Driver for OpenComputers)","CurseForge":"gregtech-battery-buffer-driver-for-opencomputers","Modrinth":""},{"Id":5171,"Name":"","CurseForge":"orimod","Modrinth":""},{"Id":5172,"Name":"","CurseForge":"htm","Modrinth":"htm"},{"Id":5173,"Name":"格雷物品管道 (GregTech CE Inventory Pipes)","CurseForge":"gtce-inventory","Modrinth":""},{"Id":5174,"Name":"机械工程 (MechTech)","CurseForge":"mechtech","Modrinth":""},{"Id":5175,"Name":"格雷能源 (GregTech Energistics)","CurseForge":"gregtech-energistics","Modrinth":""},{"Id":5176,"Name":"","CurseForge":"empatic","Modrinth":""},{"Id":5177,"Name":"","CurseForge":"nukepowered-utils","Modrinth":""},{"Id":5178,"Name":"格雷科技开放式电脑兼容 (gtce2oc)","CurseForge":"gtce2oc","Modrinth":""},{"Id":5179,"Name":"Azure的RPG风格物品 (Azure RPG Items)","CurseForge":"azure-rpg-items","Modrinth":""},{"Id":5180,"Name":"挖矿与砍杀拓展 (Mine and Slash - Expansion Mods)","CurseForge":"mine-and-slash-expansion","Modrinth":""},{"Id":5181,"Name":"鬼泣武器 (Devil May Cry Weapons)","CurseForge":"devil-may-cry-weapons","Modrinth":""},{"Id":5182,"Name":"放逐之路定制物品 (Craft to Exile Custom Uniques)","CurseForge":"craft-to-exile-custom-uniques","Modrinth":""},{"Id":5183,"Name":"泰拉瑞亚装备 (Terraria Arsenal)","CurseForge":"terraria-arsenal","Modrinth":""},{"Id":5184,"Name":"魔兽世界装备 (World of Warcraft Weapons)","CurseForge":"world-of-warcraft-weapons","Modrinth":""},{"Id":5185,"Name":"MC 毁灭战士 (MCDoom)","CurseForge":"mcdoom","Modrinth":"mcdoom"},{"Id":5186,"Name":"死神装备 (Bleach Weapons)","CurseForge":"bleach-weapons","Modrinth":""},{"Id":5187,"Name":"","CurseForge":"behgameon","Modrinth":""},{"Id":5188,"Name":"冒险漩涡 (Into The Maelstrom)","CurseForge":"into-the-maelstrom","Modrinth":""},{"Id":5189,"Name":"","CurseForge":"create-deco","Modrinth":"create-deco"},{"Id":5189,"Name":"","CurseForge":"create-deco-fabric","Modrinth":""},{"Id":5190,"Name":"","CurseForge":"warp-pipes","Modrinth":""},{"Id":5191,"Name":"沃壤千里 (Fertile Farmland)","CurseForge":"fertile-farmland","Modrinth":""},{"Id":5192,"Name":"","CurseForge":"luckperms","Modrinth":"luckperms"},{"Id":5193,"Name":"","CurseForge":"inv-view","Modrinth":"invview"},{"Id":5194,"Name":"FTB工业奇械 (FTB Industrial Contraptions)","CurseForge":"ftb-industrial-contraptions","Modrinth":""},{"Id":5195,"Name":"更多重生锚 (More Respawn Anchors)","CurseForge":"more-respawn-anchors","Modrinth":""},{"Id":5195,"Name":"更多重生锚 (More Respawn Anchors)","CurseForge":"more-respawn-anchors-forge","Modrinth":""},{"Id":5196,"Name":"狼人 (Werewolves)","CurseForge":"werewolves-become-a-beast","Modrinth":"werewolves"},{"Id":5197,"Name":"万用卡牌 (Omnipotent Card)","CurseForge":"omnipotent-card","Modrinth":"omnipotent-card"},{"Id":5199,"Name":"","CurseForge":"does-it-tick","Modrinth":"does-it-tick"},{"Id":5200,"Name":"公开GUI显示 (Public GUI Announcement)","CurseForge":"public-gui-announcement","Modrinth":"public-gui-announcement"},{"Id":5201,"Name":"","CurseForge":"wet-lava-sponge","Modrinth":""},{"Id":5202,"Name":"","CurseForge":"ripples-of-the-past","Modrinth":""},{"Id":5202,"Name":"Ripples of the Past - 最新版(包括公开测试版)","CurseForge":"","Modrinth":"ripples-of-the-past"},{"Id":5204,"Name":"自定义光标 (Cursor Mod)","CurseForge":"cursor-mod","Modrinth":"cursormod"},{"Id":5205,"Name":"放大化下界 (Amplified Nether)","CurseForge":"amplified-nether","Modrinth":"amplified-nether"},{"Id":5206,"Name":"矿莓重制版 (Oreberries Replanted)","CurseForge":"oreberries-replanted","Modrinth":"oreberries-replanted"},{"Id":5208,"Name":"禁止眼神交流! (Eye contact prohibited)","CurseForge":"eye-contact-prohibited","Modrinth":""},{"Id":5210,"Name":"模块化组装 (Modular Assembly)","CurseForge":"modular-assembly","Modrinth":""},{"Id":5211,"Name":"","CurseForge":"healer","Modrinth":"healer"},{"Id":5212,"Name":"钙 (Calcium)","CurseForge":"calcium","Modrinth":""},{"Id":5213,"Name":"","CurseForge":"from-the-shadows","Modrinth":""},{"Id":5214,"Name":"灾变 (L_Ender 's Cataclysm)","CurseForge":"lendercataclysm","Modrinth":"l_enders-cataclysm"},{"Id":5215,"Name":"亮光 (Brighter)","CurseForge":"brighter-block-light","Modrinth":""},{"Id":5216,"Name":"拾取提示 (Pick Up Notifier)","CurseForge":"pick-up-notifier","Modrinth":"pick-up-notifier"},{"Id":5216,"Name":"拾取提示 (Pick Up Notifier)","CurseForge":"pick-up-notifier-fabric","Modrinth":""},{"Id":5218,"Name":"","CurseForge":"talkbubbles","Modrinth":"talkbubbles"},{"Id":5219,"Name":"","CurseForge":"servux","Modrinth":"servux"},{"Id":5220,"Name":"","CurseForge":"config-menus-forge","Modrinth":"forge-config-screens"},{"Id":5221,"Name":"落苗生根 (Saplanting)","CurseForge":"saplanting","Modrinth":"saplanting"},{"Id":5222,"Name":"","CurseForge":"login","Modrinth":""},{"Id":5223,"Name":"","CurseForge":"edible-bugs","Modrinth":""},{"Id":5224,"Name":"","CurseForge":"farsight","Modrinth":""},{"Id":5224,"Name":"","CurseForge":"farsight-fabric","Modrinth":""},{"Id":5226,"Name":"亚特兰蒂斯 (Atlantis)","CurseForge":"atlantis","Modrinth":"atlantis"},{"Id":5227,"Name":"","CurseForge":"gaia-dimension","Modrinth":""},{"Id":5228,"Name":"","CurseForge":"pwem","Modrinth":"pwem"},{"Id":5229,"Name":"","CurseForge":"akisephilas-bosses","Modrinth":""},{"Id":5232,"Name":"","CurseForge":"fluffys-farming","Modrinth":""},{"Id":5233,"Name":"","CurseForge":"aquatic-odyssey-mod","Modrinth":""},{"Id":5234,"Name":"原版烹饪书 (Vanilla Cookbook)","CurseForge":"vanilla-cookbook","Modrinth":"vanillacookbook"},{"Id":5235,"Name":"可食用下界疣 (Edible Nether Wart)","CurseForge":"edible-nether-wart","Modrinth":""},{"Id":5236,"Name":"Plasmo 语音 (Plasmo Voice)","CurseForge":"plasmo-voice","Modrinth":"plasmo-voice"},{"Id":5237,"Name":"盔甲音效调整 (Armor Sound Tweak)","CurseForge":"armor-sound-tweak","Modrinth":""},{"Id":5238,"Name":"魔法巫师 (Hexerei)","CurseForge":"hexerei","Modrinth":"hexerei"},{"Id":5239,"Name":"","CurseForge":"morerefinedstorage","Modrinth":"morerefinedstorage"},{"Id":5240,"Name":"","CurseForge":"give-me-water-or-give-me-death","Modrinth":""},{"Id":5241,"Name":"","CurseForge":"lost-and-found","Modrinth":""},{"Id":5242,"Name":"","CurseForge":"better-fps-render-distance","Modrinth":""},{"Id":5242,"Name":"","CurseForge":"better-fps-render-distance-fabric","Modrinth":""},{"Id":5243,"Name":"盔甲颜色显示Fabric版 (Armor Chroma for Fabric)","CurseForge":"armor-chroma-for-fabric","Modrinth":"armor-chroma-for-fabric"},{"Id":5244,"Name":"矿石甘蔗 (Ore Reeds)","CurseForge":"ore-reeds","Modrinth":""},{"Id":5245,"Name":"","CurseForge":"connected-glass","Modrinth":"connected-glass"},{"Id":5246,"Name":"","CurseForge":"blockui","Modrinth":""},{"Id":5247,"Name":"","CurseForge":"storage-racks","Modrinth":""},{"Id":5248,"Name":"","CurseForge":"Dung-Pipe","Modrinth":""},{"Id":5249,"Name":"更多盔甲 (Extra Armor)","CurseForge":"extra-armor","Modrinth":""},{"Id":5250,"Name":"","CurseForge":"pig-poop","Modrinth":""},{"Id":5251,"Name":"","CurseForge":"stupid-horse-stand-still","Modrinth":""},{"Id":5252,"Name":"陶瓷桶 (Ceramic Bucket)","CurseForge":"ceramic-bucket","Modrinth":"ceramic-bucket"},{"Id":5253,"Name":"","CurseForge":"durability101","Modrinth":"durability101"},{"Id":5254,"Name":"陶瓷剪刀 (Ceramic Shears)","CurseForge":"ceramic-shears","Modrinth":"ceramic-shears"},{"Id":5255,"Name":"火把弹药袋 (Torch Bandolier)","CurseForge":"torch-bandolier","Modrinth":"torch-bandolier"},{"Id":5256,"Name":"","CurseForge":"rapid-leaf-decay","Modrinth":"rapid-leaf-decay"},{"Id":5257,"Name":"下界合金马铠 (Netherite Horse Armor Mod)","CurseForge":"netherite-horse-armor-mod","Modrinth":""},{"Id":5258,"Name":"","CurseForge":"ambient-environment","Modrinth":"ambient-environment"},{"Id":5259,"Name":"","CurseForge":"glass-cutter","Modrinth":"glass-cutter"},{"Id":5260,"Name":"","CurseForge":"dicemc-tiered-armors","Modrinth":""},{"Id":5261,"Name":"","CurseForge":"tetranomicon","Modrinth":""},{"Id":5262,"Name":"更多侦测器 (More Observers)","CurseForge":"more-observers","Modrinth":""},{"Id":5263,"Name":"村民重生 (Villagers Respawn)","CurseForge":"villagers-respawn","Modrinth":"villagers-respawn"},{"Id":5264,"Name":"热切换护甲 (Hot-Swappable Armor)","CurseForge":"hot-swappable-armor","Modrinth":""},{"Id":5265,"Name":"进度牌匾 (Advancement Plaques)","CurseForge":"advancement-plaques","Modrinth":"advancement-plaques"},{"Id":5265,"Name":"进度牌匾 (Advancement Plaques)","CurseForge":"advancement-plaques-fabric","Modrinth":""},{"Id":5267,"Name":"","CurseForge":"minceraft-mod","Modrinth":""},{"Id":5268,"Name":"Alex乐事 (Alex's Delights)","CurseForge":"alexs-delights","Modrinth":""},{"Id":5269,"Name":"","CurseForge":"better-bedrock-generator","Modrinth":""},{"Id":5269,"Name":"","CurseForge":"better-bedrock-generator-fabric","Modrinth":""},{"Id":5270,"Name":"史前生物 (Prehistoric Fauna)","CurseForge":"prehistoric-fauna","Modrinth":"prehistoric-fauna"},{"Id":5271,"Name":"更好的潮涌核心放置 (Better Conduit Placement)","CurseForge":"better-conduit-placement","Modrinth":"better-conduit-placement"},{"Id":5271,"Name":"更好的潮涌核心放置 (Better Conduit Placement)","CurseForge":"better-conduit-placement-fabric","Modrinth":""},{"Id":5272,"Name":"死亡计数器 (Death Counter)","CurseForge":"death-counter","Modrinth":"death-counter-ichun"},{"Id":5272,"Name":"死亡计数器 (Death Counter)","CurseForge":"death-counter-for-fabric","Modrinth":""},{"Id":5273,"Name":"维度阶段 (Dimension Stages)","CurseForge":"dimension-stages","Modrinth":"dimension-stages"},{"Id":5274,"Name":"","CurseForge":"passive-dragon","Modrinth":""},{"Id":5275,"Name":"","CurseForge":"i-want-to-die-at-home","Modrinth":""},{"Id":5276,"Name":"更多原版武器 (MoreVanillaWeapons)","CurseForge":"morevanillaweapons","Modrinth":"morevanillaweapons"},{"Id":5277,"Name":"矿物树:重制 (Ore Tree:Reborn)","CurseForge":"ore-tree-reborn","Modrinth":""},{"Id":5277,"Name":"矿物树:重制 (Ore Tree:Reborn)","CurseForge":"ore-tree-reborn-fabric","Modrinth":""},{"Id":5278,"Name":"","CurseForge":"player-tracking-compass","Modrinth":"player-tracking-compass"},{"Id":5280,"Name":"信息提示修复 (ToolTipFix)","CurseForge":"tooltipfix","Modrinth":"tooltipfix"},{"Id":5281,"Name":"音符盒扩展 (Extended Noteblock)","CurseForge":"extended-noteblock-forge","Modrinth":""},{"Id":5281,"Name":"音符盒扩展 (Extended Noteblock)","CurseForge":"extended-noteblock-fabric","Modrinth":""},{"Id":5282,"Name":"探矿之戒 (Rings Of Prospecting)","CurseForge":"ore-prospecting-stick-forge","Modrinth":""},{"Id":5282,"Name":"探矿之戒 (Rings Of Prospecting)","CurseForge":"ore-prospecting-stick-fabric","Modrinth":""},{"Id":5283,"Name":"","CurseForge":"worldedit-express-forge","Modrinth":""},{"Id":5283,"Name":"","CurseForge":"worldedit-express-fabric","Modrinth":""},{"Id":5284,"Name":"","CurseForge":"awesome-dungeon-edition-ocean-forge","Modrinth":"awesome-dungeon-edition-ocean"},{"Id":5284,"Name":"","CurseForge":"awesome-dungeon-edition-ocean-fabric","Modrinth":""},{"Id":5285,"Name":"","CurseForge":"pistorder","Modrinth":"pistorder"},{"Id":5286,"Name":"","CurseForge":"escape-rope-pokemon-item-forge","Modrinth":""},{"Id":5287,"Name":"","CurseForge":"awesome-flooring-forge","Modrinth":"awesome-flooring-forge"},{"Id":5287,"Name":"","CurseForge":"awesome-flooring-fabric","Modrinth":"awesome-flooring-fabric"},{"Id":5288,"Name":"中世纪生物 (Medieval Entity)","CurseForge":"medievial-entity-forge","Modrinth":"medieval-entity-forge"},{"Id":5288,"Name":"中世纪生物 (Medieval Entity)","CurseForge":"medievial-entity-fabric","Modrinth":"medieval-entity-fabric"},{"Id":5289,"Name":"更多潜影盒 (Upgraded Shulkers)","CurseForge":"upgraded-shulkers","Modrinth":""},{"Id":5291,"Name":"服务器区块缓存 (Bobby)","CurseForge":"bobby","Modrinth":"bobby"},{"Id":5292,"Name":"亮度增强 (Boosted Brightness)","CurseForge":"boosted-brightness","Modrinth":"boosted-brightness"},{"Id":5293,"Name":"","CurseForge":"effective","Modrinth":"effective"},{"Id":5293,"Name":"","CurseForge":"effective-forge","Modrinth":""},{"Id":5295,"Name":"虚空图腾 (Void Totem)","CurseForge":"voidtotem","Modrinth":"voidtotem"},{"Id":5295,"Name":"虚空图腾 (Void Totem)","CurseForge":"voidtotem-fabric","Modrinth":""},{"Id":5296,"Name":"工具升级 (Tool Leveling+)","CurseForge":"tool-leveling-plus","Modrinth":"tool-leveling"},{"Id":5296,"Name":"工具升级 (Tool Leveling+)","CurseForge":"tool-leveling-plus-fabric","Modrinth":""},{"Id":5297,"Name":"神话金属 (Mythic Metals)","CurseForge":"mythicmetals","Modrinth":"mythicmetals"},{"Id":5298,"Name":"烟花苦力怕 (Creeper Firework)","CurseForge":"creeper-firework","Modrinth":"creeper-firework"},{"Id":5299,"Name":"","CurseForge":"second-chance","Modrinth":"second-chance-forge"},{"Id":5299,"Name":"","CurseForge":"second-chance-forge","Modrinth":""},{"Id":5300,"Name":"","CurseForge":"promenade","Modrinth":"promenade"},{"Id":5301,"Name":"伦敦地铁 (MTR London Underground Addon)","CurseForge":"london-underground","Modrinth":"the-tube"},{"Id":5302,"Name":"钠/Embeddium:动态光源 (Sodium/Embeddium Dynamic Lights)","CurseForge":"dynamiclights-reforged","Modrinth":"sodium-dynamic-lights"},{"Id":5303,"Name":"荒野更新 (The Wild Mod)","CurseForge":"the-wild-mod","Modrinth":"the-wild-mod"},{"Id":5304,"Name":"凝灰岩深度 (Tuff Depth)","CurseForge":"tuff-depth","Modrinth":""},{"Id":5305,"Name":"我的幻想重铸版 (MineFantasy Reforged)","CurseForge":"minefantasy-reforged","Modrinth":""},{"Id":5307,"Name":"","CurseForge":"framework","Modrinth":""},{"Id":5307,"Name":"","CurseForge":"framework-fabric","Modrinth":""},{"Id":5310,"Name":"","CurseForge":"anointed-items","Modrinth":"anointed-items"},{"Id":5311,"Name":"黄金时代的战斗 (Golden Age Combat)","CurseForge":"golden-age-combat","Modrinth":"golden-age-combat"},{"Id":5312,"Name":"钠/Embeddium:附属 (Sodium/Embeddium Extras) - 全部","CurseForge":"magnesium-extras","Modrinth":""},{"Id":5312,"Name":"钠/Embeddium:附属 (Sodium/Embeddium Extras)","CurseForge":"","Modrinth":"sodium-extras"},{"Id":5313,"Name":"箱子追踪 (Chest Tracker)","CurseForge":"chest-tracker","Modrinth":"chest-tracker"},{"Id":5314,"Name":"进度信息展示 (AdvancementInfo)","CurseForge":"advancementinfo","Modrinth":"advancementinfo"},{"Id":5315,"Name":"","CurseForge":"animatica","Modrinth":"animatica"},{"Id":5316,"Name":"全维度建筑高度提升 (All Dimension Height Increase)","CurseForge":"mc-mods-dimension-height-increase","Modrinth":""},{"Id":5317,"Name":"商人标记 (Merchant Markers)","CurseForge":"merchant-markers","Modrinth":"merchant-markers"},{"Id":5317,"Name":"商人标记 (Merchant Markers)","CurseForge":"merchant-markers-fabric","Modrinth":""},{"Id":5318,"Name":"战利品袋子 (Loot Bag)","CurseForge":"loot-bag","Modrinth":""},{"Id":5319,"Name":"矿工监视者 (Miner Watcher)","CurseForge":"miner-watcher","Modrinth":""},{"Id":5320,"Name":"人终有一死/记住死亡 (Memento Mori / Remember Death)","CurseForge":"memento-mori-remember-death","Modrinth":""},{"Id":5321,"Name":"","CurseForge":"not-enough-gamerules","Modrinth":"not-enough-gamerules"},{"Id":5321,"Name":"","CurseForge":"not-enough-gamerules-fabric","Modrinth":""},{"Id":5322,"Name":"Json格式化实体模型 (Json Entity Models)","CurseForge":"","Modrinth":"jsonem"},{"Id":5323,"Name":"","CurseForge":"speedrunigt","Modrinth":"speedrunigt"},{"Id":5324,"Name":"","CurseForge":"archmagus","Modrinth":""},{"Id":5325,"Name":"","CurseForge":"slimyboyos","Modrinth":"slimyboyos"},{"Id":5326,"Name":"","CurseForge":"fireplace-lib","Modrinth":"fireplace-lib"},{"Id":5326,"Name":"","CurseForge":"fireplace-lib-forge","Modrinth":""},{"Id":5327,"Name":"沉浸地质学 (Immersive Geology)","CurseForge":"immersive-geology","Modrinth":"immersive-geology"},{"Id":5328,"Name":"羊毛调整 (Wool Tweaks)","CurseForge":"wool-tweaks","Modrinth":"wool-tweaks"},{"Id":5328,"Name":"羊毛调整 (Wool Tweaks)","CurseForge":"wool-tweaks-fabric","Modrinth":""},{"Id":5329,"Name":"","CurseForge":"tools-complement","Modrinth":"tools-complement"},{"Id":5330,"Name":"","CurseForge":"adventtic","Modrinth":""},{"Id":5331,"Name":"","CurseForge":"questionably-immersive","Modrinth":""},{"Id":5332,"Name":"","CurseForge":"long-fall-boots","Modrinth":""},{"Id":5333,"Name":"","CurseForge":"total-darkness","Modrinth":""},{"Id":5334,"Name":"","CurseForge":"true-darkness","Modrinth":"true-darkness"},{"Id":5335,"Name":"","CurseForge":"starlight-x-create","Modrinth":""},{"Id":5336,"Name":"","CurseForge":"grand-economy","Modrinth":""},{"Id":5337,"Name":"华夏文明2 (ChinaCraft2)","CurseForge":"chinacraft2","Modrinth":""},{"Id":5338,"Name":"","CurseForge":"interactic","Modrinth":"interactic"},{"Id":5339,"Name":"冒险地牢-Fnar版 (Roguelike Dungeons -- Fnar's Edition)","CurseForge":"fnars-roguelike-dungeons","Modrinth":""},{"Id":5340,"Name":"","CurseForge":"playerex","Modrinth":""},{"Id":5341,"Name":"","CurseForge":"data-attributes","Modrinth":""},{"Id":5342,"Name":"","CurseForge":"hardcore-buoyance","Modrinth":""},{"Id":5343,"Name":"格雷科技社区版:非官方版 (GregTech CE: Unofficial)","CurseForge":"gregtech-ce-unofficial","Modrinth":"gregtech-ce-unofficial"},{"Id":5344,"Name":"独立刷怪蛋列表 (Egg Tab)","CurseForge":"eggtab-fabric","Modrinth":""},{"Id":5344,"Name":"独立刷怪蛋列表 (Egg Tab)","CurseForge":"eggtab-forge","Modrinth":""},{"Id":5345,"Name":"必得凋灵骷髅头颅 (Always a Wither Skull)","CurseForge":"always-a-wither-skull","Modrinth":"always-a-wither-skull"},{"Id":5345,"Name":"必得凋灵骷髅头颅 (Always a Wither Skull)","CurseForge":"always-a-wither-skull-fabric","Modrinth":""},{"Id":5346,"Name":"铁砧修复 (Anvil Restoration)","CurseForge":"anvil-restoration","Modrinth":"anvil-restoration"},{"Id":5346,"Name":"铁砧修复 (Anvil Restoration)","CurseForge":"anvil-restoration-fabric","Modrinth":""},{"Id":5347,"Name":"隐藏主副手 (Hide Hands)","CurseForge":"hide-hands","Modrinth":"hide-hands"},{"Id":5347,"Name":"隐藏主副手 (Hide Hands)","CurseForge":"hide-hands-fabric","Modrinth":""},{"Id":5348,"Name":"更好的信标放置 (Better Beacon Placement)","CurseForge":"better-beacon-placement","Modrinth":"better-beacon-placement"},{"Id":5348,"Name":"更好的信标放置 (Better Beacon Placement)","CurseForge":"better-beacon-placement-fabric","Modrinth":""},{"Id":5349,"Name":"","CurseForge":"dead-totems","Modrinth":""},{"Id":5350,"Name":"功能性存储 (Functional Storage)","CurseForge":"functional-storage","Modrinth":"functional-storage"},{"Id":5351,"Name":"荒野更新 1.19 (The Wild Update 1.19)","CurseForge":"the-wild-update","Modrinth":""},{"Id":5352,"Name":"考古学 (CapsLock Archeology)","CurseForge":"archeology","Modrinth":"archeology"},{"Id":5354,"Name":"饰品与小玩意 (Trinkets and Baubles)","CurseForge":"trinkets-and-baubles","Modrinth":"trinkets-and-baubles"},{"Id":5356,"Name":"绳梯 (Rope Ladders)","CurseForge":"rope-ladders","Modrinth":""},{"Id":5357,"Name":"烤串更新版 (Skewers Updated)","CurseForge":"skewers-updated","Modrinth":""},{"Id":5358,"Name":"保持肥沃 (Keep My Soil Tilled)","CurseForge":"keep-my-soil-tilled","Modrinth":"keep-my-soil-tilled"},{"Id":5358,"Name":"保持肥沃 (Keep My Soil Tilled)","CurseForge":"keep-my-soil-tilled-fabric","Modrinth":""},{"Id":5359,"Name":"双开门 (Double Doors)","CurseForge":"double-doors","Modrinth":"double-doors"},{"Id":5359,"Name":"双开门 (Double Doors)","CurseForge":"double-doors-fabric","Modrinth":""},{"Id":5360,"Name":"盔甲附魔扩展 (Expanded Armor Enchanting)","CurseForge":"expanded-armor-enchanting","Modrinth":"expanded-armor-enchanting"},{"Id":5361,"Name":"武器附魔扩展 (Expanded Weapon Enchanting)","CurseForge":"expanded-weapon-enchanting","Modrinth":"expanded-weapon-enchanting"},{"Id":5362,"Name":"斧附魔扩展 (Expanded Axe Enchanting)","CurseForge":"expanded-axe-enchanting","Modrinth":"expanded-axe-enchanting"},{"Id":5363,"Name":"三叉戟附魔扩展 (Expanded Trident Enchanting)","CurseForge":"expanded-trident-enchanting","Modrinth":"expanded-trident-enchanting"},{"Id":5364,"Name":"","CurseForge":"urns","Modrinth":""},{"Id":5365,"Name":"","CurseForge":"pylons","Modrinth":"pylons"},{"Id":5366,"Name":"","CurseForge":"on-soul-fire","Modrinth":"on-soul-fire"},{"Id":5367,"Name":"","CurseForge":"wizard-staff","Modrinth":""},{"Id":5368,"Name":"","CurseForge":"kambrik","Modrinth":"kambrik"},{"Id":5369,"Name":"更多的栏杆 (Additional Bars)","CurseForge":"additional-bars","Modrinth":"additionalbars"},{"Id":5369,"Name":"更多的栏杆 (Additional Bars)","CurseForge":"additional-bars-fabric","Modrinth":""},{"Id":5370,"Name":"","CurseForge":"leap","Modrinth":"leap"},{"Id":5371,"Name":"","CurseForge":"cameraoverhaul","Modrinth":"cameraoverhaul"},{"Id":5372,"Name":"","CurseForge":"enchantment-id-extender","Modrinth":"eide"},{"Id":5373,"Name":"苦力怕改革 / 苦力怕革新 (Creeper Overhaul)","CurseForge":"creeper-overhaul","Modrinth":"creeper-overhaul"},{"Id":5374,"Name":"","CurseForge":"cool-elytra-roll","Modrinth":"cool-elytra-roll"},{"Id":5375,"Name":"","CurseForge":"camera-overhaul-forge","Modrinth":""},{"Id":5376,"Name":"","CurseForge":"blame","Modrinth":""},{"Id":5376,"Name":"","CurseForge":"blame-fabric","Modrinth":""},{"Id":5377,"Name":"","CurseForge":"patboxs-banhammer","Modrinth":"banhammer"},{"Id":5378,"Name":"","CurseForge":"terraformed-api-reforged","Modrinth":""},{"Id":5379,"Name":"","CurseForge":"multiblocktweaker","Modrinth":""},{"Id":5380,"Name":"","CurseForge":"good-ol-currency","Modrinth":""},{"Id":5381,"Name":"Macaw 的桥梁:悠然一派附属 (Macaw's Bridges - Atmospheric)","CurseForge":"macaws-bridges-atmospheric","Modrinth":""},{"Id":5382,"Name":"","CurseForge":"leadvillagers","Modrinth":""},{"Id":5383,"Name":"","CurseForge":"fabric-shield-lib","Modrinth":"fabricshieldlib"},{"Id":5384,"Name":"","CurseForge":"frys-things-guns-and-more","Modrinth":""},{"Id":5385,"Name":"功能集成 (Quick Bind)","CurseForge":"quickbind","Modrinth":""},{"Id":5386,"Name":"开放式模块化被动防御 (Open Modular Passive Defense)","CurseForge":"ompd","Modrinth":""},{"Id":5387,"Name":"","CurseForge":"basic-shields-fabric","Modrinth":"basic-shields-fabric"},{"Id":5388,"Name":"","CurseForge":"borderless-mining","Modrinth":"borderless-mining"},{"Id":5389,"Name":"","CurseForge":"ledger","Modrinth":"ledger"},{"Id":5390,"Name":"","CurseForge":"pet-owner","Modrinth":"petowner"},{"Id":5391,"Name":"斯巴达饰品栏HUD (Spartan HUD: Baubles)","CurseForge":"spartan-hud-baubles","Modrinth":""},{"Id":5392,"Name":"通用机械:物质拓展 (Mekanism Matter)","CurseForge":"mekanism-matter","Modrinth":""},{"Id":5393,"Name":"","CurseForge":"inzhefop-core","Modrinth":""},{"Id":5396,"Name":"传说提示框 (Legendary Tooltips)","CurseForge":"legendary-tooltips","Modrinth":"legendary-tooltips"},{"Id":5396,"Name":"传说提示框 (Legendary Tooltips)","CurseForge":"legendary-tooltips-fabric","Modrinth":""},{"Id":5397,"Name":"","CurseForge":"myrtrees","Modrinth":""},{"Id":5399,"Name":"","CurseForge":"tiny-redstone","Modrinth":""},{"Id":5401,"Name":"","CurseForge":"icarus","Modrinth":"icarus"},{"Id":5402,"Name":"喷溅牛奶 (Splash Milk)","CurseForge":"the-splash-milk","Modrinth":"the-splash-milk"},{"Id":5403,"Name":"工作台性能优化Fabric版 (FastBench for Fabric)","CurseForge":"fastbench-for-fabric","Modrinth":""},{"Id":5404,"Name":"生物桶 (Mob Buckets)","CurseForge":"mob-buckets-fabric","Modrinth":""},{"Id":5407,"Name":"","CurseForge":"enchantable","Modrinth":""},{"Id":5408,"Name":"玻璃门 (Glass Doors)","CurseForge":"glass-doors","Modrinth":""},{"Id":5409,"Name":"玻璃切割器 (Glass Cutter)","CurseForge":"glasscutter","Modrinth":""},{"Id":5410,"Name":"","CurseForge":"upgradable-crystal-tools","Modrinth":""},{"Id":5411,"Name":"","CurseForge":"no-dragon-cheese","Modrinth":""},{"Id":5412,"Name":"玻璃制品 (Glassware)","CurseForge":"glassware","Modrinth":""},{"Id":5413,"Name":"","CurseForge":"milk-plus","Modrinth":"milk_plus"},{"Id":5414,"Name":"重铸 (Modifiers)","CurseForge":"modifiers","Modrinth":""},{"Id":5415,"Name":"自定义NPC+ (CustomNPC+)","CurseForge":"customnpc-plus","Modrinth":"customnpc-plus"},{"Id":5416,"Name":"","CurseForge":"ingredient-extension-api","Modrinth":"ingredient-extension-api"},{"Id":5418,"Name":"","CurseForge":"wireless-networks","Modrinth":""},{"Id":5419,"Name":"","CurseForge":"compass-manhunt","Modrinth":"compass-manhunt"},{"Id":5420,"Name":"","CurseForge":"exlines-furniture","Modrinth":"exlines-furniture"},{"Id":5421,"Name":"工匠箭术 (Tinkers' Archery)","CurseForge":"tinkers-archery","Modrinth":""},{"Id":5422,"Name":"设计师建模 (Designer Modeling)","CurseForge":"designer-modeling","Modrinth":""},{"Id":5424,"Name":"下界合金马铠 (Netherite Horse Armor)","CurseForge":"netherite-horse-armor-fabric","Modrinth":""},{"Id":5425,"Name":"下界合金鞘翅 (Netherite Elytra)","CurseForge":"netherite-elytra","Modrinth":""},{"Id":5427,"Name":"更多匠魂材料 (Moar TCon)","CurseForge":"more-tcon","Modrinth":"moar-tcon"},{"Id":5428,"Name":"","CurseForge":"exlines-emerald-equipment","Modrinth":"emerald-equipment"},{"Id":5429,"Name":"","CurseForge":"exlines-candy-mod","Modrinth":""},{"Id":5430,"Name":"代号名称 (Renamer)","CurseForge":"renamer","Modrinth":""},{"Id":5432,"Name":"","CurseForge":"the-herobrine-mod-1-7-10","Modrinth":""},{"Id":5433,"Name":"","CurseForge":"aquatic-armors","Modrinth":""},{"Id":5434,"Name":"沉浸工业 (Immersive Industry)","CurseForge":"immersive-industry","Modrinth":""},{"Id":5435,"Name":"","CurseForge":"lightmans-currency","Modrinth":"lightmans-currency"},{"Id":5435,"Name":"","CurseForge":"lightmans-currency-fabric","Modrinth":""},{"Id":5436,"Name":"地狱火:火焰弹发射器 (Hellfire: Fireball Launcher)","CurseForge":"hellfire-fireball-launcher","Modrinth":""},{"Id":5436,"Name":"地狱火:火焰弹发射器 (Hellfire: Fireball Launcher)","CurseForge":"hellfire-fireball-launcher-fabric","Modrinth":""},{"Id":5437,"Name":"","CurseForge":"guild","Modrinth":"guild"},{"Id":5438,"Name":"无尽深空 - 已弃用 (Endless Deep Space)","CurseForge":"endless-deep-space","Modrinth":""},{"Id":5438,"Name":"无尽深空 (Endless Deep Space)","CurseForge":"","Modrinth":"endless-deep-space"},{"Id":5440,"Name":"动态的树:樱附属 (Dynamic Trees for Sakura)","CurseForge":"dynamic-trees-for-sakura","Modrinth":""},{"Id":5441,"Name":"","CurseForge":"advanced-fishing","Modrinth":""},{"Id":5443,"Name":"","CurseForge":"bettertabs","Modrinth":"bettertabs"},{"Id":5444,"Name":"时髦帽子 (Classy Hats)","CurseForge":"classy-hats","Modrinth":""},{"Id":5445,"Name":"","CurseForge":"bedbreakbegone","Modrinth":"bedbreakbegone"},{"Id":5446,"Name":"更好的任务 - 多方块与结构扩展 (Better Questing - Multiblock and Structure Integration)","CurseForge":"bq-multiblock-structure-integration","Modrinth":"bq-multiblock-structure-integration"},{"Id":5447,"Name":"","CurseForge":"bqtweaker","Modrinth":"bqtweaker"},{"Id":5448,"Name":"","CurseForge":"hypnos","Modrinth":"hypnos"},{"Id":5449,"Name":"","CurseForge":"collision-damage","Modrinth":"collision-damage"},{"Id":5450,"Name":"毁灭地牢 (Doomlike Dungeons)","CurseForge":"project-74246","Modrinth":"doomlike-dungeons"},{"Id":5451,"Name":"动态的树:污秽之地附属 (Dynamic Trees - Defiled Lands)","CurseForge":"dynamic-trees-defiled-lands","Modrinth":""},{"Id":5452,"Name":"","CurseForge":"xaero-map-addition","Modrinth":"xaero-map-addition"},{"Id":5453,"Name":"Lambd 的控制优化 (LambdaControls)","CurseForge":"lambdacontrols","Modrinth":"lambdacontrols"},{"Id":5454,"Name":"","CurseForge":"ducky-mod","Modrinth":""},{"Id":5455,"Name":"幻想乡电台 (CraftGR)","CurseForge":"craftgr","Modrinth":"craftgr"},{"Id":5456,"Name":"","CurseForge":"quartz","Modrinth":""},{"Id":5457,"Name":"","CurseForge":"mc-mods-the-blocks","Modrinth":""},{"Id":5458,"Name":"","CurseForge":"mc-modsthemodium","Modrinth":""},{"Id":5459,"Name":"","CurseForge":"ato","Modrinth":""},{"Id":5460,"Name":"JEI药水效果 (Just Enough Effect Descriptions)","CurseForge":"just-enough-effect-descriptions-jeed","Modrinth":"just-enough-effect-descriptions-jeed"},{"Id":5461,"Name":"","CurseForge":"hostile-neural-networks","Modrinth":"hostile-neural-networks"},{"Id":5462,"Name":"更多蛋糕 (Mo' Cake)","CurseForge":"mo-cakes","Modrinth":""},{"Id":5463,"Name":"更好的钓鱼 (Fishing Made Better)","CurseForge":"fishing-made-better","Modrinth":""},{"Id":5464,"Name":"霓虹灯艺2 (Neon Craft Ultimate/Neon Craft 2 Mod)","CurseForge":"neon-craft-ultimate","Modrinth":""},{"Id":5465,"Name":"建筑师之梦 (Architect's Dream)","CurseForge":"architects-dream","Modrinth":""},{"Id":5466,"Name":"","CurseForge":"ignition-enderbags","Modrinth":""},{"Id":5467,"Name":"","CurseForge":"correlated","Modrinth":"correlated"},{"Id":5468,"Name":"","CurseForge":"enderbags","Modrinth":""},{"Id":5469,"Name":"树枝树干不刷怪 (No Mob Spawning on Trees)","CurseForge":"no-mob-spawning-on-trees","Modrinth":""},{"Id":5470,"Name":"","CurseForge":"rf-lux","Modrinth":"rf-lux"},{"Id":5472,"Name":"","CurseForge":"","Modrinth":"roughly-enough-characters"},{"Id":5474,"Name":"","CurseForge":"easy-normal-and-magic-foods","Modrinth":""},{"Id":5475,"Name":"","CurseForge":"tiefix","Modrinth":"tiefix"},{"Id":5476,"Name":"更多聊天记录 (More Chat History)","CurseForge":"more-chat-history","Modrinth":"morechathistory"},{"Id":5477,"Name":"磷重制版 (Phosphor Reloaded)","CurseForge":"phosphor-reloaded","Modrinth":""},{"Id":5479,"Name":"","CurseForge":"pigstep-backport","Modrinth":""},{"Id":5480,"Name":"","CurseForge":"agadars-brewing-api","Modrinth":""},{"Id":5483,"Name":"奕 秉甲 (Ae Shield)","CurseForge":"ae-shield","Modrinth":""},{"Id":5485,"Name":"巨人玩家 Boss (Giant Player Boss)","CurseForge":"giant-player-boss","Modrinth":""},{"Id":5486,"Name":"","CurseForge":"set-bonus","Modrinth":"set-bonus"},{"Id":5487,"Name":"","CurseForge":"tntutils","Modrinth":"tntutils"},{"Id":5488,"Name":"巨剑 (Giant Swords)","CurseForge":"giant-swords","Modrinth":""},{"Id":5489,"Name":"","CurseForge":"terrablender","Modrinth":"terrablender"},{"Id":5489,"Name":"","CurseForge":"terrablender-fabric","Modrinth":""},{"Id":5489,"Name":"","CurseForge":"terrablender-neoforge","Modrinth":""},{"Id":5490,"Name":"命令助手 (CommandHelper)","CurseForge":"commandhelper","Modrinth":""},{"Id":5491,"Name":"","CurseForge":"bilibili","Modrinth":""},{"Id":5493,"Name":"","CurseForge":"creatures","Modrinth":"frikinzis-fauna"},{"Id":5494,"Name":"我的世界:地下城武器 (MC Dungeons Weapons)","CurseForge":"mcdw","Modrinth":"mcdw"},{"Id":5496,"Name":"","CurseForge":"beta-creepers","Modrinth":""},{"Id":5498,"Name":"Macaw的画 (Macaw's Paintings)","CurseForge":"macaws-paintings","Modrinth":"macaws-paintings"},{"Id":5499,"Name":"","CurseForge":"dyenamics","Modrinth":""},{"Id":5500,"Name":"","CurseForge":"multi-piston","Modrinth":""},{"Id":5501,"Name":"血魔法 (Blood Magic)","CurseForge":"blood-magic","Modrinth":"blood-magic"},{"Id":5502,"Name":"分辨率控制 (Resolution Control/ResolutionControl+)","CurseForge":"resolutioncontrol","Modrinth":"resolution-control-plus"},{"Id":5502,"Name":"分辨率控制 (Resolution Control/ResolutionControl+)","CurseForge":"resolution-control","Modrinth":""},{"Id":5503,"Name":"世界下载器 (World Downloader)","CurseForge":"wdl","Modrinth":""},{"Id":5506,"Name":"","CurseForge":"domum-ornamentum","Modrinth":""},{"Id":5507,"Name":"","CurseForge":"methodicalmilking","Modrinth":""},{"Id":5509,"Name":"","CurseForge":"save-and-load-inventories","Modrinth":"save-and-load-inventories"},{"Id":5509,"Name":"","CurseForge":"save-and-load-inventories-fabric","Modrinth":""},{"Id":5510,"Name":"","CurseForge":"forge-config-api-port-fabric","Modrinth":"forge-config-api-port"},{"Id":5511,"Name":"","CurseForge":"pams-cookables","Modrinth":""},{"Id":5512,"Name":"","CurseForge":"end-metals","Modrinth":""},{"Id":5513,"Name":"","CurseForge":"vitality","Modrinth":""},{"Id":5514,"Name":"","CurseForge":"featured-servers","Modrinth":""},{"Id":5515,"Name":"旧Java警告 (OldJavaWarning)","CurseForge":"oldjavawarning","Modrinth":"oldjavawarning"},{"Id":5516,"Name":"","CurseForge":"mercurius","Modrinth":""},{"Id":5517,"Name":"","CurseForge":"mc-mods-the-swords","Modrinth":""},{"Id":5518,"Name":"","CurseForge":"pams-simple-recipes","Modrinth":""},{"Id":5519,"Name":"无限附魔修复 (Bow Infinity Fix)","CurseForge":"bow-infinity-fix","Modrinth":"bow-infinity-fix"},{"Id":5521,"Name":"附魔灌注台 (Enchanting Infuser)","CurseForge":"enchanting-infuser-forge","Modrinth":"enchanting-infuser"},{"Id":5522,"Name":"主菜单生物渲染 (MenuMobs)","CurseForge":"menumobs","Modrinth":""},{"Id":5524,"Name":"小骷髅变种 (Tiny Skeletons)","CurseForge":"tiny-skeletons-forge","Modrinth":"tiny-skeletons"},{"Id":5524,"Name":"小骷髅变种 (Tiny Skeletons)","CurseForge":"tiny-skeletons-fabric","Modrinth":""},{"Id":5526,"Name":"超能物质 (Matter Overdrive)","CurseForge":"matter-overdrive-community-edition","Modrinth":"moce"},{"Id":5527,"Name":"洞穴调整 (CaveTweaks)","CurseForge":"cavetweaks","Modrinth":""},{"Id":5528,"Name":"时装盔甲 (Cosmetic Armor)","CurseForge":"cosmetic-armor-fabric","Modrinth":"cosmetic-armor"},{"Id":5531,"Name":"","CurseForge":"crimson-chickens","Modrinth":""},{"Id":5532,"Name":"自定义游戏加载界面 (Drippy Loading Screen)","CurseForge":"drippy-loading-screen","Modrinth":"drippy-loading-screen"},{"Id":5532,"Name":"自定义游戏加载界面 (Drippy Loading Screen)","CurseForge":"drippy-loading-screen-fabric","Modrinth":""},{"Id":5533,"Name":"","CurseForge":"extreme-sound-muffler","Modrinth":"extreme_sound_muffler"},{"Id":5533,"Name":"","CurseForge":"extreme-sound-muffler-fabric-official","Modrinth":""},{"Id":5534,"Name":"龙战利品 (DragonLoot)","CurseForge":"dragonloot","Modrinth":"dragonloot"},{"Id":5535,"Name":"","CurseForge":"wtfcore","Modrinth":""},{"Id":5536,"Name":"","CurseForge":"ore-remover","Modrinth":""},{"Id":5537,"Name":"","CurseForge":"betweenlands-redstone","Modrinth":""},{"Id":5538,"Name":"","CurseForge":"more-peripherals","Modrinth":"more-peripherals"},{"Id":5539,"Name":"","CurseForge":"ageing-spawners","Modrinth":"ageing-spawners"},{"Id":5540,"Name":"战利品表拓展 (LootExtra)","CurseForge":"loot-extra","Modrinth":""},{"Id":5541,"Name":"云靴 (Cloud Boots)","CurseForge":"cloud-boots-mod","Modrinth":"cloud-boots"},{"Id":5542,"Name":"","CurseForge":"better-compatibility-checker","Modrinth":"better-compatibility-checker"},{"Id":5543,"Name":"","CurseForge":"fastfurnace-minus-replacement","Modrinth":""},{"Id":5544,"Name":"","CurseForge":"harvest","Modrinth":""},{"Id":5545,"Name":"","CurseForge":"craftpresence","Modrinth":"craftpresence"},{"Id":5546,"Name":"","CurseForge":"stonecutter-recipe-tags","Modrinth":"stonecutter_recipe_tags"},{"Id":5547,"Name":"自定义NPC:重生 (Custom NPCs Reborn)","CurseForge":"customnpcsreborn","Modrinth":""},{"Id":5549,"Name":"BrassAmber 战斗高塔 (BrassAmber BattleTowers)","CurseForge":"brassamberbattletowers","Modrinth":""},{"Id":5550,"Name":"","CurseForge":"jags","Modrinth":""},{"Id":5551,"Name":"","CurseForge":"sedna","Modrinth":""},{"Id":5552,"Name":"","CurseForge":"fog-tweaker","Modrinth":""},{"Id":5553,"Name":"Fabric版开放式电梯 (OpenElevator (Fabric))","CurseForge":"open-elevator-fabric","Modrinth":""},{"Id":5555,"Name":"空无之景 (Nullscape)","CurseForge":"nullscape-end-reborn","Modrinth":"nullscape"},{"Id":5556,"Name":"","CurseForge":"brutal-bosses-dungeon","Modrinth":""},{"Id":5557,"Name":"游击队员vs突击队员 (Guerrilla vs Command)","CurseForge":"guerrilla-vs-command-mod-high-difficulty-addition","Modrinth":""},{"Id":5558,"Name":"超级工具重置版重制版 (Super Tools Reloaded-Reloaded)","CurseForge":"super-tools-reloaded-reloaded","Modrinth":""},{"Id":5559,"Name":"","CurseForge":"lychee","Modrinth":"lychee"},{"Id":5559,"Name":"","CurseForge":"lychee-fabric","Modrinth":""},{"Id":5560,"Name":"","CurseForge":"morepaths","Modrinth":""},{"Id":5561,"Name":"","CurseForge":"extended-mushrooms","Modrinth":"extended-mushrooms"},{"Id":5562,"Name":"","CurseForge":"shear-madness","Modrinth":""},{"Id":5563,"Name":"","CurseForge":"missing-pieces","Modrinth":""},{"Id":5564,"Name":"","CurseForge":"hatchery","Modrinth":""},{"Id":5565,"Name":"","CurseForge":"alexs-delight","Modrinth":""},{"Id":5566,"Name":"动物和野兽 (Creatures and Beasts)","CurseForge":"creatures-and-beasts","Modrinth":"creatures-and-beasts"},{"Id":5567,"Name":"","CurseForge":"dead-guys-deep-dark","Modrinth":""},{"Id":5568,"Name":"旷野之息高塔:重制 (Towers of the Wild: Reworked)","CurseForge":"towers-of-the-wild-reworked","Modrinth":""},{"Id":5569,"Name":"旷野之塔:重置 (Towers of the Wild: Reloaded)","CurseForge":"towers-of-the-wild-reloaded","Modrinth":""},{"Id":5570,"Name":"创可贴 (Bansoukou)","CurseForge":"bansoko","Modrinth":""},{"Id":5572,"Name":"","CurseForge":"inventory-backpack","Modrinth":"inventory-backpack-mod"},{"Id":5575,"Name":"增强潜影盒 (Reinforced Shulker Boxes)","CurseForge":"reinforced-shulker-boxes","Modrinth":"reinforced-shulker-boxes"},{"Id":5576,"Name":"快速打开链接和文件夹 (FastOpenLinksAndFolders)","CurseForge":"fastopenlinksandfolders","Modrinth":""},{"Id":5577,"Name":"增强箱子 (Reinforced Chests)","CurseForge":"reinforced-chests","Modrinth":"reinforced-chests"},{"Id":5578,"Name":"","CurseForge":"biome-staff","Modrinth":""},{"Id":5579,"Name":"动态的树:夸克附属 (Dynamic Trees - Quark)","CurseForge":"dynamic-trees-quark","Modrinth":"dynamic-trees-quark"},{"Id":5580,"Name":"镭 (Radium Reforged)","CurseForge":"radium-reforged","Modrinth":"radium"},{"Id":5581,"Name":"","CurseForge":"backpackmod","Modrinth":"backpackmod"},{"Id":5583,"Name":"不羁野性 (Untamed Wilds)","CurseForge":"untamedwilds","Modrinth":""},{"Id":5584,"Name":"进度追踪器概览 (Advancements Tracker and Overview)","CurseForge":"advancements-tracker","Modrinth":"advancements-tracker"},{"Id":5585,"Name":"","CurseForge":"no-null-processors","Modrinth":""},{"Id":5587,"Name":"Ma 附魔 (Ma Enchants)","CurseForge":"ma-enchants","Modrinth":""},{"Id":5588,"Name":"","CurseForge":"bits-and-chisels","Modrinth":"bits-and-chisels"},{"Id":5589,"Name":"交易站 (Trading Post)","CurseForge":"trading-post","Modrinth":"trading-post"},{"Id":5589,"Name":"交易站 (Trading Post)","CurseForge":"trading-post-fabric","Modrinth":""},{"Id":5590,"Name":"","CurseForge":"phantasmic","Modrinth":"phantasmic"},{"Id":5591,"Name":"","CurseForge":"furnus","Modrinth":""},{"Id":5592,"Name":"恒久光发电机 (Permanent Light Generator)","CurseForge":"permanent-light-generator","Modrinth":"plg"},{"Id":5592,"Name":"恒久光发电机 (Permanent Light Generator)","CurseForge":"permanent-light-generator-fabric","Modrinth":""},{"Id":5594,"Name":"","CurseForge":"immortuos-calyx","Modrinth":"immortuos-calyx"},{"Id":5595,"Name":"","CurseForge":"claim-chunk","Modrinth":""},{"Id":5596,"Name":"","CurseForge":"dicemc-money-mod","Modrinth":"money-sign-shops"},{"Id":5597,"Name":"","CurseForge":"client-command-aliases","Modrinth":""},{"Id":5598,"Name":"交互多媒体 (Interactive Corporea)","CurseForge":"interactive-corporea","Modrinth":""},{"Id":5599,"Name":"","CurseForge":"just-another-auto-clicker","Modrinth":""},{"Id":5601,"Name":"更好的潜行 (Better Sneak)","CurseForge":"better-sneak","Modrinth":""},{"Id":5602,"Name":"压缩升级铜 (Crapping Copper)","CurseForge":"crapping-copper","Modrinth":""},{"Id":5603,"Name":"植物盆栽矿石种植 (Botany Pots Ore Planting)","CurseForge":"botany-pots-ore-planting","Modrinth":"botany-pots-ore-planting"},{"Id":5605,"Name":"","CurseForge":"satin-api","Modrinth":"satin-api"},{"Id":5606,"Name":"简易附魔台 (Easy Magic)","CurseForge":"easy-magic","Modrinth":"easy-magic"},{"Id":5607,"Name":"末地启明 (Enlightend/Enlightened End/Nourished End)","CurseForge":"enlightend","Modrinth":"enlightend"},{"Id":5608,"Name":"铷 (Rubidium)","CurseForge":"rubidium","Modrinth":"rubidium"},{"Id":5609,"Name":"多元乐事 (Cultural Delights)","CurseForge":"cultural-delights","Modrinth":"cultural-delights"},{"Id":5611,"Name":"JER集成 (JER Integration)","CurseForge":"jer-integration","Modrinth":""},{"Id":5612,"Name":"JEI信标 (Just Enough Beacons)","CurseForge":"just-enough-beacons","Modrinth":""},{"Id":5613,"Name":"","CurseForge":"windowed-fullscreen","Modrinth":""},{"Id":5615,"Name":"","CurseForge":"helpful-hitboxes-forge","Modrinth":""},{"Id":5615,"Name":"","CurseForge":"helpful-hitboxes-fabric","Modrinth":""},{"Id":5616,"Name":"连锁采集 (Vein Mining)","CurseForge":"vein-mining","Modrinth":"vein-mining"},{"Id":5616,"Name":"连锁采集 (Vein Mining)","CurseForge":"vein-mining-fabric","Modrinth":""},{"Id":5617,"Name":"","CurseForge":"ars-creo","Modrinth":"ars-creo"},{"Id":5618,"Name":"","CurseForge":"it-fell-from-the-sky","Modrinth":""},{"Id":5626,"Name":"","CurseForge":"lyonheart","Modrinth":"lyonheart"},{"Id":5627,"Name":"原神12 (Genshin 12)","CurseForge":"genshin-12","Modrinth":""},{"Id":5628,"Name":"","CurseForge":"ae-additions-extra-cells-2-fork","Modrinth":"ae-additions"},{"Id":5629,"Name":"","CurseForge":"silent-addons","Modrinth":""},{"Id":5630,"Name":"","CurseForge":"ars-arsenal","Modrinth":""},{"Id":5631,"Name":"","CurseForge":"gps-mod-stalker-mod","Modrinth":""},{"Id":5632,"Name":"","CurseForge":"extended-armor-bars","Modrinth":""},{"Id":5633,"Name":"基石-经济 (Atom-Economy)","CurseForge":"atom-economy","Modrinth":""},{"Id":5634,"Name":"JEI猪灵以物易物 (Just Enough Piglin Bartering)","CurseForge":"just-enough-piglin-bartering","Modrinth":""},{"Id":5636,"Name":"暗访谈的Fabric道路 (aftersans53228's fabric roads)","CurseForge":"","Modrinth":"aftersans53228-fabric-road"},{"Id":5637,"Name":"原初魔法 (Primal Magick)","CurseForge":"primal-magick","Modrinth":"primal-magick"},{"Id":5638,"Name":"矿石苦力怕 (Ore Creeper)","CurseForge":"ore-creeper","Modrinth":"ore-creeper"},{"Id":5639,"Name":"泛古洋 (Panthalassa)","CurseForge":"panthalassa","Modrinth":""},{"Id":5640,"Name":"星露谷武器 (Stardew Armory)","CurseForge":"stardew-armory","Modrinth":""},{"Id":5640,"Name":"星露谷武器 (Stardew Armory)","CurseForge":"stardew-armory-fabric","Modrinth":""},{"Id":5641,"Name":"","CurseForge":"no-more-nether-desert-edition","Modrinth":""},{"Id":5642,"Name":"烈焰装备 (Blaze Gear)","CurseForge":"blaze-gear","Modrinth":""},{"Id":5643,"Name":"反内能革命 (Anti-internal Energy Revolution)","CurseForge":"","Modrinth":"aier"},{"Id":5644,"Name":"","CurseForge":"rhodonite-tools-armour","Modrinth":""},{"Id":5645,"Name":"","CurseForge":"more-minecarts","Modrinth":""},{"Id":5646,"Name":"玉米乐事 (Corn Delight)","CurseForge":"corn-delight","Modrinth":"corn-delight"},{"Id":5646,"Name":"玉米乐事 (Corn Delight)","CurseForge":"corn-delight-fabric","Modrinth":"corn-delight-fabric"},{"Id":5649,"Name":"防爆工艺 (Blastcraft)","CurseForge":"blast-craft","Modrinth":"blastcraft"},{"Id":5650,"Name":"mod自动更新 (zdgx-AutoUpdateMod)","CurseForge":"zdgx","Modrinth":"zdgx"},{"Id":5653,"Name":"矿石发亮 (Ore Highlight)","CurseForge":"ore-highlight","Modrinth":""},{"Id":5654,"Name":"钠 · 土径阴影 (Sodium Shadowy Path Blocks)","CurseForge":"sodium-shadowy-path-blocks","Modrinth":"sodium-shadowy-path-blocks"},{"Id":5656,"Name":"","CurseForge":"polymer","Modrinth":"polymer"},{"Id":5657,"Name":"鞘翅轰炸 (Elytra Bombing)","CurseForge":"elytra-bombing","Modrinth":""},{"Id":5657,"Name":"鞘翅轰炸 (Elytra Bombing)","CurseForge":"elytra-bombing-fabric","Modrinth":""},{"Id":5658,"Name":"","CurseForge":"cuboiddroids-support-mod","Modrinth":""},{"Id":5662,"Name":"投影工具 (Litematica Tool)","CurseForge":"litematica-tool","Modrinth":""},{"Id":5663,"Name":"千里冰封 (Frozen Up)","CurseForge":"frozen-up","Modrinth":""},{"Id":5664,"Name":"","CurseForge":"carpet-tis-addition","Modrinth":"carpet-tis-addition"},{"Id":5666,"Name":"更多旗帜功能 (More Banner Features)","CurseForge":"more-banner-features","Modrinth":"more-banner-features"},{"Id":5667,"Name":"马匹状态 (Horse Stats Vanilla)","CurseForge":"horsestatsvanilla","Modrinth":"horsestatsvanilla"},{"Id":5668,"Name":"","CurseForge":"biome-id-extender","Modrinth":""},{"Id":5669,"Name":"","CurseForge":"rereskillable-reborn","Modrinth":""},{"Id":5670,"Name":"","CurseForge":"rereskillable-rereforked","Modrinth":""},{"Id":5671,"Name":"","CurseForge":"tetra-pak","Modrinth":""},{"Id":5672,"Name":"","CurseForge":"ars-magica-legacy","Modrinth":"ars-magica-legacy"},{"Id":5673,"Name":"","CurseForge":"compressium","Modrinth":""},{"Id":5674,"Name":"会说话的村民 (Talking Villagers)","CurseForge":"talking-villagers","Modrinth":""},{"Id":5675,"Name":"","CurseForge":"artifality","Modrinth":"artifality"},{"Id":5676,"Name":"箱船 (Boat Container)","CurseForge":"boat-container","Modrinth":"boat-container"},{"Id":5677,"Name":"","CurseForge":"delogger","Modrinth":""},{"Id":5678,"Name":"迫真原版增强 (Just Another Vanilla Addon)","CurseForge":"just-another-vanilla-addon-java","Modrinth":""},{"Id":5679,"Name":"彩虹 (Spectrite)","CurseForge":"spectrite-mod","Modrinth":""},{"Id":5680,"Name":"原神:自然 (Genshin Nature)","CurseForge":"genshin-nature","Modrinth":"genshin-nature"},{"Id":5681,"Name":"能源转换重制 (Power Utilities Remastered)","CurseForge":"power-utilities-remastered","Modrinth":"power-utilities"},{"Id":5682,"Name":"","CurseForge":"create-gear-addon","Modrinth":""},{"Id":5683,"Name":"","CurseForge":"gun-mod-tl","Modrinth":""},{"Id":5685,"Name":"","CurseForge":"energymeter","Modrinth":"energymeter"},{"Id":5686,"Name":"头颅菜单 (Head Index)","CurseForge":"headindex","Modrinth":"headindex"},{"Id":5687,"Name":"量子发电机 (Quantum Generators)","CurseForge":"quantum-generators","Modrinth":"quantum-generators"},{"Id":5688,"Name":"简易采石场 (Simply Quarries)","CurseForge":"simply-quarries","Modrinth":"simply-quarries"},{"Id":5689,"Name":"","CurseForge":"lethal-peaceful","Modrinth":""},{"Id":5692,"Name":"","CurseForge":"storage-drawers-crafting-recipe","Modrinth":""},{"Id":5693,"Name":"增强攻击提示器 (Enhanced Attack Indicator)","CurseForge":"enhanced-attack-indicator","Modrinth":"enhanced-attack-indicator"},{"Id":5694,"Name":"寄生兽:末世扩展 (OverLast)","CurseForge":"parasites-addon-overlast","Modrinth":""},{"Id":5695,"Name":"取消方块更新 (Cancel Block Update)","CurseForge":"cancel-block-update","Modrinth":"cancel-block-update"},{"Id":5696,"Name":"中世纪工艺 (Medieval Craft)","CurseForge":"franciscofunari","Modrinth":"medieval-craft-(structures)"},{"Id":5697,"Name":"","CurseForge":"d3core","Modrinth":""},{"Id":5698,"Name":"","CurseForge":"green-thumb-v1-2-03","Modrinth":""},{"Id":5699,"Name":"","CurseForge":"greenthumb","Modrinth":""},{"Id":5700,"Name":"群峦冒险 (TFC+ Adventure)","CurseForge":"tfc-adventure","Modrinth":""},{"Id":5701,"Name":"","CurseForge":"just-zoom-forge","Modrinth":"just-zoom"},{"Id":5702,"Name":"全息图 (Holograms)","CurseForge":"server-holograms","Modrinth":"holograms"},{"Id":5704,"Name":"幻梦咒剑 (Eidolon's Hexblades)","CurseForge":"eidolons-hexblades","Modrinth":""},{"Id":5705,"Name":"","CurseForge":"monke-madness","Modrinth":""},{"Id":5706,"Name":"把锭放在地上吧! (Put Ingot Down!)","CurseForge":"put-ingot-down","Modrinth":""},{"Id":5707,"Name":"","CurseForge":"torchtools","Modrinth":""},{"Id":5708,"Name":"","CurseForge":"lottweaks","Modrinth":""},{"Id":5709,"Name":"任务拓展 (Quests Additions)","CurseForge":"quests-additions-fabric","Modrinth":""},{"Id":5709,"Name":"任务拓展 (Quests Additions)","CurseForge":"quests-additions","Modrinth":""},{"Id":5710,"Name":"自定义生物生成器 (Custom Mob Spawner)","CurseForge":"custom-mob-spawner","Modrinth":""},{"Id":5711,"Name":"","CurseForge":"rpg-hud","Modrinth":"rpg-hud"},{"Id":5711,"Name":"","CurseForge":"rpg-hud-fabric","Modrinth":""},{"Id":5712,"Name":"","CurseForge":"the-wild-update-concept-mod","Modrinth":""},{"Id":5714,"Name":"肴馔 (SinoCate)","CurseForge":"sinocate","Modrinth":"sinocate"},{"Id":5715,"Name":"再生矿石 (OreRegen)","CurseForge":"oreregen","Modrinth":""},{"Id":5716,"Name":"","CurseForge":"eidolon_tweaker","Modrinth":""},{"Id":5718,"Name":"","CurseForge":"herodotusutils","Modrinth":"herodotus-utils"},{"Id":5719,"Name":"","CurseForge":"platypuses","Modrinth":""},{"Id":5720,"Name":"敌对村庄 (Hostile Villages)","CurseForge":"hostile-villages","Modrinth":""},{"Id":5721,"Name":"投掷 (Throwability)","CurseForge":"throwability","Modrinth":""},{"Id":5722,"Name":"生物群系信息 (BiomeInfo)","CurseForge":"biomeinfo","Modrinth":"biomeinfo"},{"Id":5722,"Name":"生物群系信息 (BiomeInfo)","CurseForge":"biomeinfo-fabric","Modrinth":""},{"Id":5723,"Name":"可点击的进度 (Clickable Advancements)","CurseForge":"clickable-advancements","Modrinth":""},{"Id":5724,"Name":"","CurseForge":"factory0-resources","Modrinth":""},{"Id":5725,"Name":"史诗骑士:盾牌,盔甲和武器 (Epic Knights: Shields, Armor and Weapons)","CurseForge":"epic-knights-armor-and-weapons","Modrinth":"epic-knights-shields-armor-and-weapons"},{"Id":5726,"Name":"你是个专家,哈利! (You're an Expert, Harry!)","CurseForge":"youre-an-expert-harry","Modrinth":""},{"Id":5727,"Name":"龙骑士3 (Dragon Mounts 3)","CurseForge":"dragon-mounts-3","Modrinth":""},{"Id":5728,"Name":"","CurseForge":"viaforge","Modrinth":"viaforge"},{"Id":5729,"Name":"快乐小径 (Happy Trails)","CurseForge":"happy-trails","Modrinth":""},{"Id":5730,"Name":"","CurseForge":"naturesaura_tweaker","Modrinth":""},{"Id":5731,"Name":"死亡溯源 (Death Finder)","CurseForge":"death-finder","Modrinth":"death-finder"},{"Id":5731,"Name":"死亡溯源 (Death Finder)","CurseForge":"death-finder-fabric","Modrinth":""},{"Id":5733,"Name":"便携工艺 (Portable Craft)","CurseForge":"portable-craft","Modrinth":""},{"Id":5734,"Name":"","CurseForge":"","Modrinth":"polypack_host"},{"Id":5735,"Name":"","CurseForge":"etched","Modrinth":"etched"},{"Id":5736,"Name":"","CurseForge":"caves-cliffs-backport-additions","Modrinth":""},{"Id":5737,"Name":"","CurseForge":"cobblefordays","Modrinth":"cobblefordays"},{"Id":5738,"Name":"官方商店 (Admin Shop)","CurseForge":"admin-shop","Modrinth":"shop"},{"Id":5739,"Name":"纯净魔法 (Vanilla Magic)","CurseForge":"vanillamagic","Modrinth":""},{"Id":5740,"Name":"","CurseForge":"deep-mob-learning-simulacrum","Modrinth":""},{"Id":5741,"Name":"","CurseForge":"oculus","Modrinth":"oculus"},{"Id":5742,"Name":"","CurseForge":"simple-planes-tfc","Modrinth":""},{"Id":5743,"Name":"迷上城建 (Mishang Urban Construction)","CurseForge":"mishang-urban-construction","Modrinth":"mishang-urban-construction"},{"Id":5744,"Name":"","CurseForge":"","Modrinth":"cursed-legacy-api"},{"Id":5745,"Name":"","CurseForge":"phi","Modrinth":"phi"},{"Id":5746,"Name":"AE2实用设备 (AE2 Utilities)","CurseForge":"ae2-utilities","Modrinth":""},{"Id":5748,"Name":"","CurseForge":"epic-psi","Modrinth":""},{"Id":5749,"Name":"","CurseForge":"missingmagic","Modrinth":""},{"Id":5750,"Name":"","CurseForge":"enchanting-convergence","Modrinth":""},{"Id":5751,"Name":"","CurseForge":"magical-psideas-model-replacer","Modrinth":""},{"Id":5752,"Name":"","CurseForge":"psio","Modrinth":""},{"Id":5758,"Name":"铜锅! (Copper Pot!)","CurseForge":"copper-pot","Modrinth":"copper-pot"},{"Id":5761,"Name":"","CurseForge":"viarewind","Modrinth":""},{"Id":5762,"Name":"","CurseForge":"viabackwards","Modrinth":""},{"Id":5763,"Name":"","CurseForge":"thaumic-isorropia","Modrinth":""},{"Id":5764,"Name":"更多加载信息 (Loading Manager)","CurseForge":"loading-manager","Modrinth":"loadingmgr"},{"Id":5765,"Name":"","CurseForge":"psitools","Modrinth":""},{"Id":5766,"Name":"","CurseForge":"psionic-upgrades","Modrinth":""},{"Id":5767,"Name":"","CurseForge":"psionicolor","Modrinth":"psionicolor"},{"Id":5768,"Name":"","CurseForge":"reskillable-psi-compat","Modrinth":""},{"Id":5769,"Name":"","CurseForge":"zettai-psi","Modrinth":""},{"Id":5770,"Name":"","CurseForge":"psicaster","Modrinth":""},{"Id":5771,"Name":"","CurseForge":"tweakermore","Modrinth":"tweakermore"},{"Id":5772,"Name":"","CurseForge":"legacy-display","Modrinth":"legacy-display"},{"Id":5773,"Name":"","CurseForge":"the-backrooms","Modrinth":""},{"Id":5774,"Name":"雪地里的生物! (Creatures From The Snow!)","CurseForge":"creatures-of-the-snow","Modrinth":"creatures-from-the-snow-fabric"},{"Id":5774,"Name":"雪地里的生物! (Creatures From The Snow!)","CurseForge":"creatures-from-the-snow-forge","Modrinth":""},{"Id":5775,"Name":"","CurseForge":"collisions-lib","Modrinth":"collisions-lib"},{"Id":5776,"Name":"羊毛靴子 (Wooled Boots)","CurseForge":"wooled-boots","Modrinth":"wooled-boots"},{"Id":5777,"Name":"野生动物园:进化 (Zoo and Wild Animals: Evolved)","CurseForge":"zawa-evolved","Modrinth":"zawa-evolved"},{"Id":5778,"Name":"宾果游戏 (Bongo)","CurseForge":"bongo","Modrinth":"bongo"},{"Id":5779,"Name":"","CurseForge":"impersonate","Modrinth":"impersonate"},{"Id":5780,"Name":"","CurseForge":"calemi-core","Modrinth":"ccore"},{"Id":5783,"Name":"可视化工作台 (Visual Workbench)","CurseForge":"visual-workbench","Modrinth":"visual-workbench"},{"Id":5783,"Name":"可视化工作台 (Visual Workbench)","CurseForge":"visual-workbench-fabric","Modrinth":""},{"Id":5784,"Name":"","CurseForge":"stylish-effects","Modrinth":"stylish-effects"},{"Id":5784,"Name":"","CurseForge":"stylish-effects-fabric","Modrinth":""},{"Id":5785,"Name":"死亡指南针 (Death Compass)","CurseForge":"death-compass-forge","Modrinth":""},{"Id":5785,"Name":"死亡指南针 (Death Compass)","CurseForge":"death-compass-fabric","Modrinth":""},{"Id":5786,"Name":"便携式切石机 (Portable Stonecutter)","CurseForge":"portable-stonecutter","Modrinth":""},{"Id":5788,"Name":"","CurseForge":"enchanted-book-redesign","Modrinth":"enchanted-book-redesign"},{"Id":5788,"Name":"","CurseForge":"enchanted-book-redesign-fabric","Modrinth":""},{"Id":5789,"Name":"","CurseForge":"quick-hotbar","Modrinth":""},{"Id":5790,"Name":"","CurseForge":"modular-augment","Modrinth":""},{"Id":5791,"Name":"","CurseForge":"lumberjack","Modrinth":""},{"Id":5792,"Name":"更好的模组按钮 (Better Mods Button)","CurseForge":"better-mods-button","Modrinth":"better-mods-button"},{"Id":5794,"Name":"","CurseForge":"advancement-frames","Modrinth":"advancement-frames"},{"Id":5796,"Name":"","CurseForge":"dynmapforge","Modrinth":""},{"Id":5797,"Name":"物品魔法 (Spellbind)","CurseForge":"spellbind","Modrinth":"spellbind"},{"Id":5799,"Name":"","CurseForge":"bumpkinbatch","Modrinth":""},{"Id":5800,"Name":"养蜂人 (Beekeeper)","CurseForge":"beekeeper","Modrinth":""},{"Id":5801,"Name":"","CurseForge":"some-assembly-required","Modrinth":"some-assembly-required"},{"Id":5802,"Name":"","CurseForge":"ladylucs-critters-mod","Modrinth":""},{"Id":5803,"Name":"","CurseForge":"","Modrinth":"modmenu-beta"},{"Id":5805,"Name":"","CurseForge":"better-signs","Modrinth":""},{"Id":5806,"Name":"","CurseForge":"","Modrinth":"macula"},{"Id":5807,"Name":"","CurseForge":"","Modrinth":"howmanyitems"},{"Id":5808,"Name":"","CurseForge":"","Modrinth":"howmanyitems-fabric"},{"Id":5810,"Name":"","CurseForge":"","Modrinth":"glass-config-api"},{"Id":5811,"Name":"","CurseForge":"","Modrinth":"translated-legacy"},{"Id":5815,"Name":"","CurseForge":"create-irrigation","Modrinth":""},{"Id":5816,"Name":"","CurseForge":"delete-worlds-to-trash-forge","Modrinth":"delete-worlds-to-trash"},{"Id":5816,"Name":"","CurseForge":"delete-worlds-to-trash-fabric","Modrinth":""},{"Id":5819,"Name":"简易磁铁 (Simple Magnets)","CurseForge":"simple-magnets","Modrinth":"simple-magnets"},{"Id":5820,"Name":"枪炮“没”瑰 (Guns Without Roses)","CurseForge":"guns-without-roses","Modrinth":"guns-without-roses"},{"Id":5821,"Name":"巴迪卡牌扩展 (Buddycards Expansions)","CurseForge":"buddycards-expansions","Modrinth":""},{"Id":5822,"Name":"","CurseForge":"zettai-ars","Modrinth":""},{"Id":5823,"Name":"夜不能寐 (Can't Sleep Clowns Will Eat Me)","CurseForge":"cant-sleep-clowns-will-eat-me","Modrinth":"cant-sleep-clowns-will-eat-me"},{"Id":5824,"Name":"殖民地卡牌 (Colony Cards)","CurseForge":"colony-cards","Modrinth":""},{"Id":5825,"Name":"自动收获 (AutoHarvest)","CurseForge":"autoharvest","Modrinth":""},{"Id":5826,"Name":"","CurseForge":"realistic-block-physics","Modrinth":"realistic-block-physics"},{"Id":5827,"Name":"驯养革新 (Domestication Innovation)","CurseForge":"domestication-innovation","Modrinth":"domestication-innovation"},{"Id":5828,"Name":"魄罗 (Snuffles)","CurseForge":"snuffles","Modrinth":"snuffles"},{"Id":5829,"Name":"","CurseForge":"flan-forge","Modrinth":"flan"},{"Id":5829,"Name":"","CurseForge":"flan","Modrinth":""},{"Id":5830,"Name":"","CurseForge":"awesome-dungeon-the-end-forge","Modrinth":"awesome-dungeon-the-end"},{"Id":5830,"Name":"","CurseForge":"awesome-dungeon-the-end-fabric","Modrinth":""},{"Id":5831,"Name":"","CurseForge":"tehnuts-torcherino","Modrinth":""},{"Id":5832,"Name":"","CurseForge":"library-ferret-forge","Modrinth":"library-ferret"},{"Id":5832,"Name":"","CurseForge":"library-ferret-fabric","Modrinth":""},{"Id":5832,"Name":"","CurseForge":"library-ferret-neoforge","Modrinth":""},{"Id":5833,"Name":"","CurseForge":"awesome-dungeon-nether-forge","Modrinth":"awesome-dungeon-nether"},{"Id":5833,"Name":"","CurseForge":"awesome-dungeon-nether-fabric","Modrinth":""},{"Id":5834,"Name":"应用能源非官方延续版 (AE2 Unofficial Extended Life)","CurseForge":"ae2-extended-life","Modrinth":""},{"Id":5836,"Name":"精致厨房 (Refined Cooking)","CurseForge":"refined-cooking","Modrinth":"refined-cooking"},{"Id":5837,"Name":"","CurseForge":"jade-addons","Modrinth":"jade-addons-forge"},{"Id":5837,"Name":"","CurseForge":"jade-addons-fabric","Modrinth":"jade-addons-fabric"},{"Id":5838,"Name":"","CurseForge":"feature-nbt-deadlock-be-gone","Modrinth":"feature-nbt-deadlock-be-gone"},{"Id":5840,"Name":"真正的无限弓 (Real Infinity Bow)","CurseForge":"real-infinity-bow-allow-inf-mending","Modrinth":""},{"Id":5841,"Name":"喝! (Drink It!)","CurseForge":"drink-it-forge","Modrinth":""},{"Id":5842,"Name":"","CurseForge":"foxlib","Modrinth":""},{"Id":5843,"Name":"","CurseForge":"tails","Modrinth":""},{"Id":5844,"Name":"","CurseForge":"howling-moon-rebooted-forge","Modrinth":""},{"Id":5844,"Name":"","CurseForge":"howling-moon-rebooted-fabric","Modrinth":""},{"Id":5847,"Name":"","CurseForge":"","Modrinth":"dustrial-decor"},{"Id":5848,"Name":"","CurseForge":"furnish","Modrinth":"furnish-furniture"},{"Id":5849,"Name":"","CurseForge":"iammusicplayer","Modrinth":"iam-music-player"},{"Id":5851,"Name":"海盗 (Pirates)","CurseForge":"pirates","Modrinth":""},{"Id":5852,"Name":"","CurseForge":"comics-bubbles-chat","Modrinth":"comics-bubbles-chat"},{"Id":5853,"Name":"","CurseForge":"fabric-extended-armor-bars-forked","Modrinth":""},{"Id":5854,"Name":"进食动画 (Eating Animation)","CurseForge":"eating-animation-forge","Modrinth":"eating-animations"},{"Id":5854,"Name":"进食动画 (Eating Animation)","CurseForge":"eating-animation-fabric","Modrinth":"eating-animation"},{"Id":5855,"Name":"","CurseForge":"waterdripsound","Modrinth":"dripsounds"},{"Id":5855,"Name":"","CurseForge":"dripsounds","Modrinth":"waterdripsound"},{"Id":5856,"Name":"更好的骑马 HUD (Better Horse Hud)","CurseForge":"better-horse-hud","Modrinth":""},{"Id":5857,"Name":"汤饮铺 (Thermopolium)","CurseForge":"thermopolium","Modrinth":""},{"Id":5860,"Name":"","CurseForge":"orderly-fabric-2-0","Modrinth":""},{"Id":5862,"Name":"实体纹理特性 (Entity Texture Features)","CurseForge":"entity-texture-features-fabric","Modrinth":"entitytexturefeatures"},{"Id":5863,"Name":"","CurseForge":"sculk-plus","Modrinth":""},{"Id":5864,"Name":"烟花苦力怕Fabric版 (Creeper Confetti Fabric)","CurseForge":"creeper-confetti-fabric","Modrinth":""},{"Id":5865,"Name":"","CurseForge":"double-jump-attribute","Modrinth":"double-jump-attribute"},{"Id":5866,"Name":"","CurseForge":"overweight-farming","Modrinth":"overweight-farming"},{"Id":5867,"Name":"","CurseForge":"healthcare","Modrinth":"healthcare"},{"Id":5868,"Name":"加载画面改良 (Better Loading Screen)","CurseForge":"betterloadingscreen","Modrinth":""},{"Id":5869,"Name":"","CurseForge":"fabric-title-changer","Modrinth":"fabric-title-changer"},{"Id":5870,"Name":"","CurseForge":"window-title-changer","Modrinth":""},{"Id":5872,"Name":"","CurseForge":"","Modrinth":"betterlight"},{"Id":5875,"Name":"","CurseForge":"","Modrinth":"bushyleaves"},{"Id":5876,"Name":"","CurseForge":"robins-ruby-mod","Modrinth":""},{"Id":5879,"Name":"","CurseForge":"just-needed","Modrinth":"justneeded"},{"Id":5879,"Name":"","CurseForge":"just-needed-fabric","Modrinth":""},{"Id":5880,"Name":"伤害免疫机制移除重制版 (NoDamIRemake)","CurseForge":"nodami-remake","Modrinth":""},{"Id":5881,"Name":"HEI物品管理器 (Had Enough Items)","CurseForge":"had-enough-items","Modrinth":"had-enough-items"},{"Id":5882,"Name":"","CurseForge":"worldinfo","Modrinth":""},{"Id":5883,"Name":"","CurseForge":"","Modrinth":"bang"},{"Id":5884,"Name":"","CurseForge":"block-helper","Modrinth":"block-helper"},{"Id":5885,"Name":"","CurseForge":"","Modrinth":"class-loader-fixer"},{"Id":5886,"Name":"","CurseForge":"","Modrinth":"font-fixer"},{"Id":5887,"Name":"","CurseForge":"gregicprobe","Modrinth":""},{"Id":5889,"Name":"","CurseForge":"travelers-index","Modrinth":""},{"Id":5891,"Name":"维度数据修复 (Dimension Data Fix)","CurseForge":"dimension-data-fix","Modrinth":""},{"Id":5892,"Name":"GTCE 蜜蜂 (GTCE Bees)","CurseForge":"gtce-bees","Modrinth":""},{"Id":5895,"Name":"","CurseForge":"armory-expansion-bits-and-pieces","Modrinth":""},{"Id":5896,"Name":"","CurseForge":"electrostatic-tinkers-toys","Modrinth":"electrostatic-tinkers-toys"},{"Id":5897,"Name":"","CurseForge":"banhammer","Modrinth":""},{"Id":5898,"Name":"","CurseForge":"slabgen","Modrinth":""},{"Id":5899,"Name":"","CurseForge":"potioncraft","Modrinth":""},{"Id":5900,"Name":"","CurseForge":"atlas-lib","Modrinth":"atlas-lib"},{"Id":5901,"Name":"","CurseForge":"blood-smeltery","Modrinth":"blood-smeltery"},{"Id":5902,"Name":"","CurseForge":"tinkers-memes","Modrinth":""},{"Id":5903,"Name":"","CurseForge":"tinkers-golems-addon","Modrinth":""},{"Id":5904,"Name":"","CurseForge":"tinkers-addons-fork","Modrinth":""},{"Id":5905,"Name":"","CurseForge":"reagenchant","Modrinth":""},{"Id":5907,"Name":"模拟城市/模拟大都市","CurseForge":"sim-u","Modrinth":""},{"Id":5909,"Name":"钍 (Thorium)","CurseForge":"thorium","Modrinth":"thorium"},{"Id":5910,"Name":"","CurseForge":"creative-one-punch","Modrinth":"creative-one-punch"},{"Id":5911,"Name":"氡 (Radon)","CurseForge":"radon","Modrinth":"radon"},{"Id":5912,"Name":"","CurseForge":"ars-omega","Modrinth":""},{"Id":5913,"Name":"","CurseForge":"game-stages-conditions","Modrinth":""},{"Id":5914,"Name":"","CurseForge":"tinkers-construct-tool-leveling-with-random","Modrinth":""},{"Id":5915,"Name":"","CurseForge":"odd-water-mobs","Modrinth":""},{"Id":5916,"Name":"","CurseForge":"glowsquids-begone","Modrinth":"glowsquids-begone"},{"Id":5917,"Name":"祸乱亡灵 (THE UNDEAD REVAMPED)","CurseForge":"theundead","Modrinth":"the-undead-revamped"},{"Id":5918,"Name":"框架方块 (FramedBlocks)","CurseForge":"framedblocks","Modrinth":"framedblocks"},{"Id":5919,"Name":"","CurseForge":"nekos-enchanted-books","Modrinth":"nekos-enchanted-books"},{"Id":5920,"Name":"我说了算 (I Said The Calculation)","CurseForge":"istc","Modrinth":""},{"Id":5922,"Name":"","CurseForge":"dracovita-farm-life","Modrinth":""},{"Id":5923,"Name":"","CurseForge":"no-enchant-cap","Modrinth":"no-enchant-cap"},{"Id":5925,"Name":"工匠自动化 (Artisan Automation)","CurseForge":"artisan-automation","Modrinth":""},{"Id":5926,"Name":"","CurseForge":"enchanted-wolves","Modrinth":""},{"Id":5928,"Name":"","CurseForge":"rain-growth","Modrinth":"rain"},{"Id":5929,"Name":"逃逸:魔物娘 (Scape and Run: Monstress)","CurseForge":"scape-and-run-monstress","Modrinth":""},{"Id":5930,"Name":"","CurseForge":"raised","Modrinth":"raised"},{"Id":5931,"Name":"","CurseForge":"resetchunks","Modrinth":"resetchunks"},{"Id":5934,"Name":"","CurseForge":"moreblocksforyou","Modrinth":""},{"Id":5935,"Name":"","CurseForge":"trident-return","Modrinth":""},{"Id":5936,"Name":"","CurseForge":"bettertridentreturn","Modrinth":""},{"Id":5937,"Name":"","CurseForge":"multibeds","Modrinth":"multibeds"},{"Id":5937,"Name":"","CurseForge":"multibeds-fabric","Modrinth":""},{"Id":5938,"Name":"增强装备重制版 (Enhanced Armaments Reload)","CurseForge":"enhanced-armaments-reload","Modrinth":""},{"Id":5939,"Name":"","CurseForge":"entangled","Modrinth":"entangled"},{"Id":5941,"Name":"","CurseForge":"createplus","Modrinth":"createplus"},{"Id":5942,"Name":"","CurseForge":"custom-fluid-mixin","Modrinth":"custom-fluid-mixin"},{"Id":5943,"Name":"","CurseForge":"slender-reimagined","Modrinth":""},{"Id":5944,"Name":"","CurseForge":"doors-by-ichun","Modrinth":""},{"Id":5945,"Name":"","CurseForge":"slender-man-mod","Modrinth":""},{"Id":5945,"Name":"Slender Man - 他人的非官方重上传","CurseForge":"the-original-slenderman-mod-working","Modrinth":""},{"Id":5946,"Name":"曲奇佳味 (Cookielicious)","CurseForge":"cookielicious","Modrinth":""},{"Id":5947,"Name":"禁忌者 (The Forbidden)","CurseForge":"the-forbidden","Modrinth":""},{"Id":5948,"Name":"","CurseForge":"memory-usage-screen","Modrinth":"memory-usage-screen"},{"Id":5949,"Name":"","CurseForge":"evergreenhud","Modrinth":"evergreenhud"},{"Id":5950,"Name":"","CurseForge":"nuit","Modrinth":"nuit"},{"Id":5951,"Name":"","CurseForge":"","Modrinth":"level-border"},{"Id":5952,"Name":"","CurseForge":"","Modrinth":"fvt"},{"Id":5953,"Name":"","CurseForge":"blue_skies_tcon","Modrinth":""},{"Id":5954,"Name":"","CurseForge":"tdv-tweaks","Modrinth":""},{"Id":5956,"Name":"","CurseForge":"picture-in-picture-pip","Modrinth":""},{"Id":5957,"Name":"","CurseForge":"guilt-trip","Modrinth":""},{"Id":5958,"Name":"跑酷! (ParCool!)","CurseForge":"parcool","Modrinth":"parcool"},{"Id":5959,"Name":"","CurseForge":"legacy-mc-kotlin","Modrinth":""},{"Id":5960,"Name":"","CurseForge":"minimepets","Modrinth":""},{"Id":5961,"Name":"","CurseForge":"ugly-scoreboard-fix","Modrinth":"ugly-scoreboard-fix"},{"Id":5965,"Name":"","CurseForge":"railcrafttweaker","Modrinth":""},{"Id":5966,"Name":"","CurseForge":"pig-grinder","Modrinth":""},{"Id":5967,"Name":"","CurseForge":"photoreal","Modrinth":""},{"Id":5968,"Name":"","CurseForge":"keygrip-mocap-mod","Modrinth":""},{"Id":5970,"Name":"","CurseForge":"attachable-grinder","Modrinth":""},{"Id":5971,"Name":"","CurseForge":"hat-stand","Modrinth":""},{"Id":5972,"Name":"","CurseForge":"chunk-copy-fabric","Modrinth":"chunk-copy-fabric"},{"Id":5973,"Name":"回归箱 (Inventory Home)","CurseForge":"inventory-home","Modrinth":""},{"Id":5974,"Name":"","CurseForge":"nether-hexed-kingdom","Modrinth":""},{"Id":5976,"Name":"应急食品:重制 (PaimonFood:Reborn)","CurseForge":"","Modrinth":"paimonfoodreborn"},{"Id":5977,"Name":"","CurseForge":"talking-ben-mod","Modrinth":""},{"Id":5978,"Name":"背包内食用 (In-backpack Eat)","CurseForge":"in-backpack-eat","Modrinth":"inbackpackeat"},{"Id":5979,"Name":"相约星期四 (WithThursday!)","CurseForge":"with-thursday","Modrinth":""},{"Id":5980,"Name":"平滑转移 (Smooth Swapping)","CurseForge":"smooth-swapping","Modrinth":"smooth-swapping"},{"Id":5980,"Name":"平滑转移 (Smooth Swapping)","CurseForge":"smooth-swapping-forge","Modrinth":"smooth-swapping-forge-updated"},{"Id":5981,"Name":"","CurseForge":"tinkering-with-blood-magic","Modrinth":""},{"Id":5982,"Name":"","CurseForge":"tinker-toolcasts","Modrinth":""},{"Id":5983,"Name":"","CurseForge":"thermal-tinkering","Modrinth":""},{"Id":5984,"Name":"","CurseForge":"deuf-duplicate-entity-uuid-fix","Modrinth":""},{"Id":5985,"Name":"","CurseForge":"corundum-meadows","Modrinth":""},{"Id":5986,"Name":"","CurseForge":"millenaire-extended-inuits","Modrinth":""},{"Id":5987,"Name":"","CurseForge":"mct-smeltery-io","Modrinth":"mct-smeltery-io"},{"Id":5988,"Name":"","CurseForge":"opencomputers-drivers-for-tinkers-construct","Modrinth":""},{"Id":5989,"Name":"","CurseForge":"oedldoedl-construct","Modrinth":""},{"Id":5990,"Name":"","CurseForge":"millenaire-extended-byzantine","Modrinth":""},{"Id":5991,"Name":"","CurseForge":"millenaire-extended-normans","Modrinth":""},{"Id":5992,"Name":"","CurseForge":"millenaire-extended-indians","Modrinth":""},{"Id":5993,"Name":"","CurseForge":"millenaire-extended-maya","Modrinth":""},{"Id":5994,"Name":"","CurseForge":"oedldoedl-core","Modrinth":""},{"Id":5995,"Name":"","CurseForge":"oedldoedl-resources","Modrinth":""},{"Id":5996,"Name":"","CurseForge":"oedldoedl-gear","Modrinth":""},{"Id":5997,"Name":"","CurseForge":"disguiseheads","Modrinth":"disguiseheads"},{"Id":5998,"Name":"","CurseForge":"simple-tcon","Modrinth":""},{"Id":5999,"Name":"","CurseForge":"enchanted-tooltips","Modrinth":"enchanted-tooltips"},{"Id":6000,"Name":"","CurseForge":"stackablepotions-forge","Modrinth":"stackablepotions"},{"Id":6000,"Name":"","CurseForge":"stackablepotions","Modrinth":""},{"Id":6001,"Name":"","CurseForge":"mobifier","Modrinth":""},{"Id":6001,"Name":"","CurseForge":"mobifier-fabric","Modrinth":""},{"Id":6002,"Name":"锻造之艺 (Art of Forging)","CurseForge":"art-of-forging-a-tetra-addon","Modrinth":"art-of-forging-tetra"},{"Id":6003,"Name":"","CurseForge":"harder-staged-difficulty","Modrinth":""},{"Id":6004,"Name":"","CurseForge":"material-changer","Modrinth":""},{"Id":6005,"Name":"","CurseForge":"tree-harvester","Modrinth":"tree-harvester"},{"Id":6005,"Name":"","CurseForge":"tree-harvester-fabric","Modrinth":""},{"Id":6006,"Name":"","CurseForge":"itemfx","Modrinth":""},{"Id":6007,"Name":"通用机械:社区版 (Mekanism Community Edition)","CurseForge":"mekanism-ce","Modrinth":"mekanism-community-edition"},{"Id":6007,"Name":"通用机械:社区版 (Mekanism Community Edition)","CurseForge":"mekanism-1-12-2-ce","Modrinth":""},{"Id":6009,"Name":"","CurseForge":"property-modifier","Modrinth":""},{"Id":6010,"Name":"","CurseForge":"grimoire-of-tetra","Modrinth":""},{"Id":6011,"Name":"史前乐事 (Prehistoric Delight)","CurseForge":"prehistoric-delight-by-nocube","Modrinth":""},{"Id":6013,"Name":"","CurseForge":"simple-stations","Modrinth":""},{"Id":6014,"Name":"元素魔艺 (Ars Elemental)","CurseForge":"ars-elemental-elemental-spell-foci","Modrinth":""},{"Id":6015,"Name":"","CurseForge":"too-many-glyphs","Modrinth":""},{"Id":6016,"Name":"机械动力:咖啡馆 (Create Cafe)","CurseForge":"create-cafe","Modrinth":"create-cafe"},{"Id":6017,"Name":"","CurseForge":"","Modrinth":"worldbordercolor"},{"Id":6018,"Name":"工业RPG (IC2 RPG)","CurseForge":"ic2-rpg","Modrinth":""},{"Id":6019,"Name":"肉多多 (Drop the Meat)","CurseForge":"drop-the-meat","Modrinth":"dropthemeat"},{"Id":6020,"Name":"更好的隐身 (Better Invisibility)","CurseForge":"better-invisibility","Modrinth":"better-invisibility"},{"Id":6021,"Name":"","CurseForge":"tweakerplus","Modrinth":"tweakerplus"},{"Id":6022,"Name":"","CurseForge":"autorun-fabric","Modrinth":"autorun"},{"Id":6023,"Name":"","CurseForge":"fpv-drone","Modrinth":""},{"Id":6024,"Name":"","CurseForge":"campfire-backport","Modrinth":"campfire-backport"},{"Id":6025,"Name":"","CurseForge":"skip-transitions","Modrinth":"skip-transitions"},{"Id":6026,"Name":"","CurseForge":"just-load","Modrinth":"just-load"},{"Id":6027,"Name":"","CurseForge":"cheese-dragon","Modrinth":""},{"Id":6028,"Name":"","CurseForge":"boatjump","Modrinth":"boatjump"},{"Id":6030,"Name":"","CurseForge":"torched","Modrinth":""},{"Id":6031,"Name":"Nyf的箭袋 (Nyf's Quivers)","CurseForge":"nyfs-quivers","Modrinth":"nyfs-quivers"},{"Id":6032,"Name":"","CurseForge":"party-parrots","Modrinth":"party-parrots"},{"Id":6032,"Name":"","CurseForge":"party-parrots-fabric","Modrinth":""},{"Id":6033,"Name":"古铜管道 (Patina Pipeworks)","CurseForge":"patina-pipeworks","Modrinth":""},{"Id":6034,"Name":"酿造进化 🍺 (Brewevolution 🍺)","CurseForge":"brewevolution","Modrinth":""},{"Id":6035,"Name":"恶魔果实 (Devil Fruits)","CurseForge":"devil-fruits","Modrinth":""},{"Id":6037,"Name":"","CurseForge":"trail-mix","Modrinth":""},{"Id":6038,"Name":"多人服务器暂停 (Multiplayer Server Pause)","CurseForge":"multiplayer-server-pause-forge","Modrinth":"multiplayer-server-pause"},{"Id":6038,"Name":"多人服务器暂停 (Multiplayer Server Pause)","CurseForge":"multiplayer-server-pause-fabric","Modrinth":""},{"Id":6039,"Name":"无庇护所:重生 (NoShelter Reborn)","CurseForge":"noshelter-reborn","Modrinth":""},{"Id":6040,"Name":"","CurseForge":"initial-spawn-dimension","Modrinth":""},{"Id":6041,"Name":"","CurseForge":"the-one-probe-fabric","Modrinth":""},{"Id":6042,"Name":"","CurseForge":"gehenna-super-spooky-nether-overhaul-for-forge","Modrinth":""},{"Id":6043,"Name":"","CurseForge":"draconicminus","Modrinth":""},{"Id":6044,"Name":"","CurseForge":"hygiene","Modrinth":""},{"Id":6045,"Name":"","CurseForge":"worldeditcui-forge-edition-3","Modrinth":""},{"Id":6046,"Name":"","CurseForge":"external-view-reload","Modrinth":""},{"Id":6047,"Name":"储液抽屉:遗产 (Fluid Drawers Legacy)","CurseForge":"fluid-drawers-legacy","Modrinth":""},{"Id":6048,"Name":"","CurseForge":"my-server-is-compatible","Modrinth":"my-server-is-compatible"},{"Id":6049,"Name":"中世纪攻城机器 (Medieval Siege Machines)","CurseForge":"medieval-siege-machines","Modrinth":"medieval-siege-machines"},{"Id":6050,"Name":"信仰之跃 (Leap of Faith)","CurseForge":"leapoffaith-forge","Modrinth":""},{"Id":6051,"Name":"","CurseForge":"top-plus","Modrinth":""},{"Id":6052,"Name":"","CurseForge":"refined-storage-fluxified","Modrinth":"refined-storage-fluxified"},{"Id":6053,"Name":"","CurseForge":"quit-confirm","Modrinth":""},{"Id":6054,"Name":"压缩动力 (Compressed Creativity)","CurseForge":"compressedcreativity","Modrinth":"compressedcreativity"},{"Id":6055,"Name":"应用能源:通用机械附属 (Applied Mekanistics)","CurseForge":"applied-mekanistics","Modrinth":"applied-mekanistics"},{"Id":6056,"Name":"","CurseForge":"craftdumper","Modrinth":""},{"Id":6057,"Name":"沉浸式风化 (Immersive Weathering)","CurseForge":"immersive-weathering-fabric","Modrinth":"immersive-weathering"},{"Id":6057,"Name":"沉浸式风化 (Immersive Weathering)","CurseForge":"immersive-weathering-forge","Modrinth":""},{"Id":6058,"Name":"","CurseForge":"replay-mod-for-forge","Modrinth":""},{"Id":6059,"Name":"","CurseForge":"bigtrees","Modrinth":""},{"Id":6060,"Name":"绝对不是一个缩放模组 (Absolutely Not A Zoom Mod)","CurseForge":"absolutely-not-a-zoom-mod","Modrinth":"anazm"},{"Id":6061,"Name":"","CurseForge":"glymworld-lush-caves","Modrinth":""},{"Id":6062,"Name":"","CurseForge":"colored-crafting-stations","Modrinth":""},{"Id":6063,"Name":"","CurseForge":"harvest-scythes","Modrinth":"harvest-scythes"},{"Id":6064,"Name":"","CurseForge":"croptosis","Modrinth":""},{"Id":6065,"Name":"","CurseForge":"weeping-angels-mod","Modrinth":"weeping-angels"},{"Id":6065,"Name":"","CurseForge":"the-lonely-assassins","Modrinth":""},{"Id":6066,"Name":"","CurseForge":"hardcore-item-stages","Modrinth":""},{"Id":6067,"Name":"","CurseForge":"game-stages-viewer","Modrinth":""},{"Id":6068,"Name":"更多玩家模型:魔戒兼容 (MPM LOTR)","CurseForge":"mpm-lotr","Modrinth":""},{"Id":6069,"Name":"警卫村民 Fabric 版 (Guard Villagers)","CurseForge":"guard-villagers-fabric","Modrinth":"guard-villagers-(fabricquilt)"},{"Id":6071,"Name":"物品高亮 (Item Highlighter)","CurseForge":"item-highlighter","Modrinth":"item-highlighter"},{"Id":6071,"Name":"物品高亮 (Item Highlighter)","CurseForge":"item-highlighter-fabric","Modrinth":""},{"Id":6073,"Name":"","CurseForge":"environmental-armor","Modrinth":"environmental-armor"},{"Id":6073,"Name":"","CurseForge":"origins-environmental-armor-1-18-1-port","Modrinth":""},{"Id":6075,"Name":"","CurseForge":"health-levels","Modrinth":"health-levels"},{"Id":6076,"Name":"","CurseForge":"the-comfort-zone","Modrinth":"the-comfort-zone"},{"Id":6078,"Name":"","CurseForge":"mekatweaker","Modrinth":""},{"Id":6079,"Name":"","CurseForge":"smithing-in-the-90s","Modrinth":""},{"Id":6080,"Name":"","CurseForge":"embellished-enchanting","Modrinth":""},{"Id":6082,"Name":"更好的打雪仗 (Better Snowball Fight)","CurseForge":"better-snowball-fight-fabric","Modrinth":""},{"Id":6083,"Name":"","CurseForge":"onastick","Modrinth":"onastick"},{"Id":6083,"Name":"","CurseForge":"onastick-forge","Modrinth":""},{"Id":6084,"Name":"","CurseForge":"tradernpcs","Modrinth":""},{"Id":6085,"Name":"更多Pad (More Pads)","CurseForge":"more-pads","Modrinth":""},{"Id":6086,"Name":"","CurseForge":"texture-dump","Modrinth":""},{"Id":6087,"Name":"斯巴达的武器:冰火传说 (Spartan Weaponry: Ice and Fire)","CurseForge":"spartan-weaponry-ice-and-fire","Modrinth":"spartan-weaponry-ice-and-fire"},{"Id":6088,"Name":"","CurseForge":"hefty-crops","Modrinth":"hefty-crops"},{"Id":6089,"Name":"奇奇怪怪的燃料 (Strange Fuels Mod)","CurseForge":"","Modrinth":"strangefuelsmod"},{"Id":6090,"Name":"自定义玩家模型 (Customizable Player Models)","CurseForge":"custom-player-models","Modrinth":"custom-player-models"},{"Id":6090,"Name":"自定义玩家模型 (Customizable Player Models)","CurseForge":"custom-player-models-fabric","Modrinth":""},{"Id":6091,"Name":"强敌扩充 (ExtraChampions)","CurseForge":"extrachampions","Modrinth":""},{"Id":6095,"Name":"","CurseForge":"another-origins-mod","Modrinth":""},{"Id":6096,"Name":"","CurseForge":"javd","Modrinth":""},{"Id":6097,"Name":"玩家重量 (Player Weight Mod)","CurseForge":"player-weight-mod","Modrinth":""},{"Id":6098,"Name":"区块加载器 (Chunk Loaders)","CurseForge":"chunk-loaders","Modrinth":"chunk-loaders"},{"Id":6099,"Name":"","CurseForge":"tinkerstages","Modrinth":""},{"Id":6100,"Name":"","CurseForge":"","Modrinth":"oneboxatatime"},{"Id":6101,"Name":"怪奇宝典 (Eccentric Tome)","CurseForge":"eccentric-tome","Modrinth":"eccentric-tome"},{"Id":6101,"Name":"怪奇宝典 (Eccentric Tome)","CurseForge":"eccentric-tome-updated","Modrinth":""},{"Id":6102,"Name":"","CurseForge":"arnicalib","Modrinth":""},{"Id":6104,"Name":"","CurseForge":"gregicality-multiblocks","Modrinth":"gregicality-multiblocks"},{"Id":6105,"Name":"强制关闭加载屏幕 (kennytv's epic force close loading screen mod for fabric)","CurseForge":"","Modrinth":"forcecloseworldloadingscreen"},{"Id":6106,"Name":"","CurseForge":"the-box-trot","Modrinth":"the-box-trot"},{"Id":6107,"Name":"更好的生物群系过渡 (Better Biome Blend)","CurseForge":"better-biome-blend","Modrinth":"better-biome-blend"},{"Id":6108,"Name":"FEI物品管理器 (Forever Enough Items)","CurseForge":"forever-enough-items","Modrinth":""},{"Id":6109,"Name":"象棋 - 此已不受支持 (Chess)","CurseForge":"chess","Modrinth":""},{"Id":6109,"Name":"象棋 (Chess) - >=3.0","CurseForge":"","Modrinth":"chinesechess"},{"Id":6110,"Name":"","CurseForge":"immersive-fx","Modrinth":""},{"Id":6111,"Name":"YDM的武器大师 (YDM's Weapon Master)","CurseForge":"ydms-weapon-master","Modrinth":"weaponmaster"},{"Id":6112,"Name":"","CurseForge":"galacticrafttweaker","Modrinth":""},{"Id":6113,"Name":"拴绳增强 (More Leads)","CurseForge":"moreleads","Modrinth":"moreleads"},{"Id":6115,"Name":"","CurseForge":"simple-discord-rpc","Modrinth":"simple-discord-rpc"},{"Id":6117,"Name":"","CurseForge":"excore","Modrinth":""},{"Id":6118,"Name":"","CurseForge":"messmod","Modrinth":"messmod"},{"Id":6119,"Name":"","CurseForge":"log4j2-jndi-exploit-fix","Modrinth":""},{"Id":6120,"Name":"","CurseForge":"woodcutter","Modrinth":""},{"Id":6120,"Name":"","CurseForge":"woodcutter-forge","Modrinth":""},{"Id":6121,"Name":"起源:职业非官方Forge版 (Origins: Classes (Forge))","CurseForge":"origins-classes-forge","Modrinth":"origins-classes-forge"},{"Id":6122,"Name":"","CurseForge":"tool-stats","Modrinth":"tool-stats"},{"Id":6123,"Name":"","CurseForge":"thatched","Modrinth":""},{"Id":6124,"Name":"","CurseForge":"fumo-mod","Modrinth":""},{"Id":6125,"Name":"","CurseForge":"basement-origins","Modrinth":""},{"Id":6126,"Name":"","CurseForge":"no-weak-attack","Modrinth":""},{"Id":6127,"Name":"搏鱼 (Bettas)","CurseForge":"bettas","Modrinth":""},{"Id":6128,"Name":"婴儿肥 (Baby Fat)","CurseForge":"baby-fat","Modrinth":""},{"Id":6129,"Name":"顷刻吐芽 (QuickPlant)","CurseForge":"quickplant","Modrinth":""},{"Id":6129,"Name":"顷刻吐芽 (QuickPlant)","CurseForge":"quickplant-fabric","Modrinth":""},{"Id":6130,"Name":"无尽地牢 (Infinite Dungeons)","CurseForge":"infinite-dungeons","Modrinth":""},{"Id":6131,"Name":"","CurseForge":"wpo-addon-mod","Modrinth":""},{"Id":6132,"Name":"","CurseForge":"just-the-binding-of-isaac-pills","Modrinth":""},{"Id":6133,"Name":"","CurseForge":"pendant-of-life","Modrinth":""},{"Id":6134,"Name":"","CurseForge":"the-binding-of-isaac-tears-mod","Modrinth":""},{"Id":6135,"Name":"慈善捆绑包 (Humbling Bundle)","CurseForge":"humbling-bundle","Modrinth":"humbling-bundle"},{"Id":6136,"Name":"","CurseForge":"grindstone-sharper-tools","Modrinth":"grindstone-sharper-tools"},{"Id":6136,"Name":"","CurseForge":"grindstone-sharper-tools-fabric","Modrinth":""},{"Id":6137,"Name":"","CurseForge":"nutritious-milk","Modrinth":"nutritious-milk"},{"Id":6137,"Name":"","CurseForge":"nutritious-milk-fabric","Modrinth":""},{"Id":6138,"Name":"","CurseForge":"extract-poison","Modrinth":"extract-poison"},{"Id":6138,"Name":"","CurseForge":"extract-poison-fabric","Modrinth":""},{"Id":6139,"Name":"","CurseForge":"zombie-villagers-from-spawner","Modrinth":"zombie-villagers-from-spawner"},{"Id":6139,"Name":"","CurseForge":"zombie-villagers-from-spawner-fabric","Modrinth":""},{"Id":6140,"Name":"","CurseForge":"vine-climber","Modrinth":""},{"Id":6141,"Name":"","CurseForge":"healing-soup","Modrinth":"healing-soup"},{"Id":6141,"Name":"","CurseForge":"healing-soup-fabric","Modrinth":""},{"Id":6142,"Name":"地牢建筑统合 (Integrated Dungeons and Structures)","CurseForge":"idas","Modrinth":"idas"},{"Id":6143,"Name":"","CurseForge":"mob-sunscreen","Modrinth":"mob-sunscreen"},{"Id":6144,"Name":"不要饿死:重生 (Don't Starve: Reborn)","CurseForge":"","Modrinth":"dontstarvereborn"},{"Id":6145,"Name":"","CurseForge":"decorative-winter","Modrinth":""},{"Id":6146,"Name":"","CurseForge":"looot","Modrinth":"looot"},{"Id":6148,"Name":"","CurseForge":"block-event-separator","Modrinth":"block-event-separator"},{"Id":6149,"Name":"伤害免疫机制移除重制版 (No Damage Immunity Reload)","CurseForge":"no-damage-immunity-reload","Modrinth":""},{"Id":6150,"Name":"","CurseForge":"sheve","Modrinth":""},{"Id":6151,"Name":"","CurseForge":"chromatic-currents","Modrinth":"chromatic-currents"},{"Id":6152,"Name":"","CurseForge":"dropfullcarts","Modrinth":""},{"Id":6153,"Name":"","CurseForge":"are-you-blind","Modrinth":""},{"Id":6154,"Name":"吃不停重制版 (AlwaysEat Reload)","CurseForge":"alwayseat-reload","Modrinth":""},{"Id":6156,"Name":"","CurseForge":"tps-hud-fabric","Modrinth":""},{"Id":6158,"Name":"","CurseForge":"orcz","Modrinth":""},{"Id":6159,"Name":"","CurseForge":"sandwichable","Modrinth":"sandwichable"},{"Id":6160,"Name":"","CurseForge":"","Modrinth":"shelve-refabricated"},{"Id":6161,"Name":"","CurseForge":"mod-erate-loading-screen","Modrinth":"moderate-loading-screen"},{"Id":6162,"Name":"","CurseForge":"shrink_","Modrinth":"shrink"},{"Id":6163,"Name":"","CurseForge":"cable-tiers","Modrinth":"cable-tiers"},{"Id":6164,"Name":"巨型熔炉 (Jumbo Furnace)","CurseForge":"jumbo-furnace","Modrinth":"jumbo-furnace"},{"Id":6165,"Name":"","CurseForge":"no-villager-death-messages","Modrinth":"no-villager-death-messages"},{"Id":6166,"Name":"","CurseForge":"tank-null","Modrinth":""},{"Id":6167,"Name":"","CurseForge":"trajans-tanks","Modrinth":""},{"Id":6167,"Name":"","CurseForge":"trajans-tanks-fabric","Modrinth":""},{"Id":6168,"Name":"","CurseForge":"colds-easy-paxel-lite","Modrinth":""},{"Id":6170,"Name":"平滑区块保存 (Smooth Chunk Save)","CurseForge":"smooth-chunk-save","Modrinth":""},{"Id":6171,"Name":"","CurseForge":"rigoranthus-emortis","Modrinth":""},{"Id":6172,"Name":"JEI实用设备 (JEI Utilities)","CurseForge":"jei-utilities","Modrinth":""},{"Id":6173,"Name":"","CurseForge":"plummet","Modrinth":""},{"Id":6174,"Name":"禁止堆叠 (StackOne)","CurseForge":"stackone-mod","Modrinth":""},{"Id":6175,"Name":"光谱世界 (Spectrum)","CurseForge":"spectrum","Modrinth":"spectrum"},{"Id":6176,"Name":"","CurseForge":"kitteh6660s-morecraft","Modrinth":""},{"Id":6177,"Name":"天使指环 (Angel Ring)","CurseForge":"angel-ring","Modrinth":""},{"Id":6178,"Name":"","CurseForge":"debugify","Modrinth":"debugify"},{"Id":6179,"Name":"","CurseForge":"nomowanderer","Modrinth":"nomowanderer"},{"Id":6180,"Name":"","CurseForge":"mc-modsthecompressed","Modrinth":""},{"Id":6181,"Name":"","CurseForge":"cave-enhancements","Modrinth":"cave-enhancements"},{"Id":6182,"Name":"创造蜂场 (Creative Apiary)","CurseForge":"creative-apiary","Modrinth":""},{"Id":6183,"Name":"创造合成仓 (Creative Crafter)","CurseForge":"creative-crafter","Modrinth":"creative-crafter"},{"Id":6184,"Name":"MC百科资料搜索-重生 (MCMOD Search Reborn)","CurseForge":"mcmod-search-reborn","Modrinth":""},{"Id":6185,"Name":"","CurseForge":"proxy-server","Modrinth":"proxy-server"},{"Id":6186,"Name":"","CurseForge":"multithreaded-noise","Modrinth":""},{"Id":6187,"Name":"拼写台 (Spelling Table Mod)","CurseForge":"spelling-table-mod","Modrinth":""},{"Id":6189,"Name":"","CurseForge":"advancedchatcore","Modrinth":"AdvancedChatCore"},{"Id":6190,"Name":"","CurseForge":"dirt-deco","Modrinth":""},{"Id":6191,"Name":"","CurseForge":"multiblocked","Modrinth":""},{"Id":6192,"Name":"","CurseForge":"arcanus-legacy","Modrinth":"arcanus-legacy"},{"Id":6193,"Name":"","CurseForge":"armor-weight","Modrinth":""},{"Id":6194,"Name":"","CurseForge":"mc-mods-the-tweaks","Modrinth":""},{"Id":6195,"Name":"","CurseForge":"runelic","Modrinth":"runelic"},{"Id":6196,"Name":"云存储 (Cloud Storage)","CurseForge":"alexs-cloud-storage","Modrinth":"alexs-cloud-storage"},{"Id":6197,"Name":"可视性 (Visuality)","CurseForge":"visuality","Modrinth":"visuality"},{"Id":6198,"Name":"丰富的生态 (Ecologics)","CurseForge":"ecologics","Modrinth":"ecologics"},{"Id":6199,"Name":"","CurseForge":"mob-scarecrows","Modrinth":""},{"Id":6200,"Name":"","CurseForge":"trolls-community","Modrinth":""},{"Id":6201,"Name":"","CurseForge":"g4mespeed","Modrinth":"g4mespeed"},{"Id":6202,"Name":"","CurseForge":"ogres-community","Modrinth":""},{"Id":6203,"Name":"","CurseForge":"goblin-community","Modrinth":""},{"Id":6204,"Name":"","CurseForge":"kobolds-community","Modrinth":""},{"Id":6205,"Name":"","CurseForge":"mutant-villager","Modrinth":""},{"Id":6206,"Name":"","CurseForge":"pick-your-poison","Modrinth":"pick-your-poison"},{"Id":6207,"Name":"","CurseForge":"illager-expansion-fabric","Modrinth":""},{"Id":6207,"Name":"","CurseForge":"","Modrinth":"illager-expansion-polymer"},{"Id":6207,"Name":"","CurseForge":"","Modrinth":"illager-expansion-forked"},{"Id":6207,"Name":"","CurseForge":"","Modrinth":"illager-expansion-rematch"},{"Id":6208,"Name":"沉浸式盔甲 (Immersive Armors)","CurseForge":"immersive-armors","Modrinth":"immersive-armors"},{"Id":6209,"Name":"","CurseForge":"seeds","Modrinth":"seeds"},{"Id":6210,"Name":"","CurseForge":"unusual-drill","Modrinth":""},{"Id":6211,"Name":"","CurseForge":"frosted-friends","Modrinth":"frosted-friends"},{"Id":6212,"Name":"飘浮宠物 (Hover Pets)","CurseForge":"hover-pets","Modrinth":""},{"Id":6213,"Name":"","CurseForge":"ic2-patcher","Modrinth":""},{"Id":6214,"Name":"朴华之剑 (Useless Sword)","CurseForge":"useless-sword","Modrinth":"useless-sword"},{"Id":6215,"Name":"","CurseForge":"jei-professions","Modrinth":""},{"Id":6216,"Name":"","CurseForge":"atm-additions","Modrinth":""},{"Id":6217,"Name":"额外标签 (Extra Tags)","CurseForge":"extra-tags","Modrinth":""},{"Id":6218,"Name":"","CurseForge":"advancedchatlog","Modrinth":"AdvancedChatLog"},{"Id":6219,"Name":"合成站 (Crafting Station)","CurseForge":"crafting-station","Modrinth":""},{"Id":6220,"Name":"七罪之子 (Sons Of Sins)","CurseForge":"sons-of-sins","Modrinth":"sons-of-sins"},{"Id":6221,"Name":"","CurseForge":"advancedchathud","Modrinth":"AdvancedChatHUD"},{"Id":6222,"Name":"","CurseForge":"fuzes-relics","Modrinth":""},{"Id":6223,"Name":"","CurseForge":"chirpys-wildlife","Modrinth":"wildlife-fabric"},{"Id":6224,"Name":"","CurseForge":"megaparrot","Modrinth":"megaparrot"},{"Id":6225,"Name":"","CurseForge":"nourish","Modrinth":""},{"Id":6226,"Name":"村庄盒子 (Village Box)","CurseForge":"village-box","Modrinth":""},{"Id":6227,"Name":"","CurseForge":"waila-stages","Modrinth":""},{"Id":6228,"Name":"","CurseForge":"steves-vanilla","Modrinth":""},{"Id":6230,"Name":"","CurseForge":"duckling","Modrinth":"duckling"},{"Id":6231,"Name":"","CurseForge":"wandering-bag","Modrinth":"wandering-bags"},{"Id":6232,"Name":"同伴与对手 (Friends & Foes)","CurseForge":"friends-and-foes-forge","Modrinth":"friends-and-foes-forge"},{"Id":6232,"Name":"同伴与对手 (Friends & Foes)","CurseForge":"friends-and-foes","Modrinth":"friends-and-foes"},{"Id":6233,"Name":"动态的树:交错次元附属 (Dynamic Trees - The Betweenlands)","CurseForge":"dynamic-trees-the-betweenlands","Modrinth":""},{"Id":6235,"Name":"","CurseForge":"pyrologer-and-friends","Modrinth":""},{"Id":6236,"Name":"树洞 (Tree Hollows)","CurseForge":"tree-hollows","Modrinth":"tree-hollows"},{"Id":6237,"Name":"","CurseForge":"solar-apocalypse-refabricated","Modrinth":"solar-apocalypse"},{"Id":6237,"Name":"","CurseForge":"","Modrinth":"solar-apocalypse-reforged"},{"Id":6238,"Name":"","CurseForge":"icommonlib","Modrinth":"icommon"},{"Id":6239,"Name":"预生成区块 (Chunky)","CurseForge":"chunky-pregenerator","Modrinth":"chunky"},{"Id":6239,"Name":"预生成区块 (Chunky)","CurseForge":"chunky-pregenerator-forge","Modrinth":""},{"Id":6240,"Name":"上古凶灵 / 远古野兽 (Ancient Beasts / Beast Slayer)","CurseForge":"beast-slayer","Modrinth":""},{"Id":6241,"Name":"","CurseForge":"easyauth","Modrinth":"easyauth"},{"Id":6242,"Name":"","CurseForge":"depth","Modrinth":"depth"},{"Id":6243,"Name":"","CurseForge":"slimy-stuff","Modrinth":"slimy-stuff"},{"Id":6244,"Name":"下界之路 (Netherite Road)","CurseForge":"netheriteroad","Modrinth":""},{"Id":6245,"Name":"","CurseForge":"organics","Modrinth":""},{"Id":6246,"Name":"","CurseForge":"qsl","Modrinth":"qsl"},{"Id":6247,"Name":"卡利亚式附魔 (CarianStyle)","CurseForge":"carianstyle","Modrinth":""},{"Id":6249,"Name":"","CurseForge":"wmitaf","Modrinth":"wmitaf"},{"Id":6250,"Name":"深度计 (Depth Meter)","CurseForge":"depth-meter","Modrinth":""},{"Id":6251,"Name":"万向漏斗 (Omni-Hopper)","CurseForge":"omni-hopper","Modrinth":"omnihopper"},{"Id":6252,"Name":"","CurseForge":"jumpy-boats","Modrinth":"jumpy-boats"},{"Id":6254,"Name":"","CurseForge":"carpetclient","Modrinth":"carpetclient"},{"Id":6256,"Name":"动态的树:吸血鬼附属 (Dynamic Trees - Vampirism)","CurseForge":"dynamic-trees-vampirism","Modrinth":""},{"Id":6257,"Name":"超越 (Transcend)","CurseForge":"transcend","Modrinth":""},{"Id":6259,"Name":"","CurseForge":"connectible-chains","Modrinth":"connectiblechains"},{"Id":6259,"Name":"","CurseForge":"connectible-chains-forge","Modrinth":""},{"Id":6261,"Name":"鸟巢 Fabric 版 (Birds Nests (Fabric))","CurseForge":"birds-nests-fabric","Modrinth":""},{"Id":6262,"Name":"","CurseForge":"hot-or-not-tfc","Modrinth":""},{"Id":6263,"Name":"","CurseForge":"eye-of-dragons","Modrinth":""},{"Id":6264,"Name":"纸娃娃 (PaperDoll)","CurseForge":"paperdoll","Modrinth":"paperdoll"},{"Id":6265,"Name":"","CurseForge":"little-logistics","Modrinth":"little-logistics"},{"Id":6266,"Name":"","CurseForge":"show-me-what-you-got","Modrinth":"show-me-what-you-got"},{"Id":6267,"Name":"","CurseForge":"herdspanic","Modrinth":"herdspanic"},{"Id":6268,"Name":"","CurseForge":"extrasounds","Modrinth":"extrasounds"},{"Id":6269,"Name":"","CurseForge":"brooms","Modrinth":""},{"Id":6270,"Name":"飓光志 (The Stormlight Archive Mod)","CurseForge":"the-stormlight-archive-mod","Modrinth":""},{"Id":6271,"Name":"","CurseForge":"extrae","Modrinth":""},{"Id":6272,"Name":"等价兼容 (ProjectE Integration)","CurseForge":"projecte-integration","Modrinth":"projecte-integration"},{"Id":6273,"Name":"","CurseForge":"mekajs","Modrinth":""},{"Id":6274,"Name":"","CurseForge":"antique-dragons","Modrinth":"antique-dragons"},{"Id":6275,"Name":"","CurseForge":"badpackets","Modrinth":"badpackets"},{"Id":6277,"Name":"","CurseForge":"undead-army","Modrinth":""},{"Id":6278,"Name":"","CurseForge":"ironagefurniture","Modrinth":""},{"Id":6279,"Name":"","CurseForge":"minekeamod","Modrinth":""},{"Id":6280,"Name":"","CurseForge":"aeble","Modrinth":""},{"Id":6281,"Name":"三叉戟 (Trident)","CurseForge":"trident-mod","Modrinth":""},{"Id":6282,"Name":"自定义村民职业 (Custom Villager Professions)","CurseForge":"custom-professions","Modrinth":"custom-villager-professions"},{"Id":6282,"Name":"自定义村民职业 (Custom Villager Professions)","CurseForge":"custom-villager-professions-fabric","Modrinth":""},{"Id":6284,"Name":"化作春泥更护花 (NextSpring)","CurseForge":"nextspring","Modrinth":""},{"Id":6284,"Name":"化作春泥更护花 (NextSpring)","CurseForge":"nextspring-fabric","Modrinth":""},{"Id":6285,"Name":"","CurseForge":"psionic-utilities","Modrinth":"psiutils"},{"Id":6286,"Name":"","CurseForge":"lucent","Modrinth":"lucent"},{"Id":6287,"Name":"","CurseForge":"togglesneak","Modrinth":""},{"Id":6288,"Name":"","CurseForge":"iron-apples","Modrinth":""},{"Id":6289,"Name":"","CurseForge":"actually-additions-fluxified","Modrinth":"actually-additions-fluxified"},{"Id":6290,"Name":"黑盒存储 (Dank Storage)","CurseForge":"dank-storage","Modrinth":""},{"Id":6290,"Name":"黑盒存储 (Dank Storage)","CurseForge":"dank-storage-fabric","Modrinth":""},{"Id":6291,"Name":"","CurseForge":"pixelgamewizards-banded-torches","Modrinth":""},{"Id":6292,"Name":"动态的树:你将去的生物群系附属 (Dynamic Trees - Oh The Biomes You'll Go)","CurseForge":"dynamic-trees-byg","Modrinth":""},{"Id":6294,"Name":"","CurseForge":"comfort-magic","Modrinth":""},{"Id":6295,"Name":"","CurseForge":"colored-lights-fabric","Modrinth":"colored-lights"},{"Id":6296,"Name":"","CurseForge":"biomes-far-away","Modrinth":""},{"Id":6297,"Name":"更好的运行时资源包 (Better Runtime Resource Pack)","CurseForge":"better-runtime-resource-pack","Modrinth":"brrp"},{"Id":6298,"Name":"末地乐事 (End's Delight)","CurseForge":"ends-delight","Modrinth":"ends-delight"},{"Id":6299,"Name":"","CurseForge":"natures-starlight","Modrinth":""},{"Id":6300,"Name":"","CurseForge":"mc-modsoygery","Modrinth":"alloygery"},{"Id":6301,"Name":"","CurseForge":"custom-game-rules","Modrinth":""},{"Id":6302,"Name":"","CurseForge":"lava-walker","Modrinth":"lavawalker"},{"Id":6303,"Name":"更好的管道 (Pretty Pipes)","CurseForge":"pretty-pipes","Modrinth":"pretty-pipes"},{"Id":6304,"Name":"死亡回溯 (Death Flashback)","CurseForge":"","Modrinth":"death-flashback"},{"Id":6305,"Name":"","CurseForge":"victorymod","Modrinth":""},{"Id":6306,"Name":"","CurseForge":"cryptic-assets-pack","Modrinth":""},{"Id":6307,"Name":"","CurseForge":"dynamicregistries","Modrinth":"dynamicregistries"},{"Id":6308,"Name":"","CurseForge":"among-us-mobs","Modrinth":""},{"Id":6309,"Name":"在我们之中 (Among Us)","CurseForge":"among-us","Modrinth":""},{"Id":6310,"Name":"","CurseForge":"universal-ores-fabric","Modrinth":"universal_ores"},{"Id":6312,"Name":"","CurseForge":"project-copper","Modrinth":""},{"Id":6313,"Name":"","CurseForge":"pirates-and-looters-mod","Modrinth":""},{"Id":6314,"Name":"泥岩 (Mudrock)","CurseForge":"","Modrinth":"mudrock"},{"Id":6315,"Name":"","CurseForge":"itemchat","Modrinth":""},{"Id":6317,"Name":"生化危机8 (Resident Evil 8)","CurseForge":"resident-evil-8-mod","Modrinth":"resident-evil-84"},{"Id":6318,"Name":"","CurseForge":"solar-forge","Modrinth":""},{"Id":6319,"Name":"染色悦灵 (Colored Allays)","CurseForge":"colored-allays","Modrinth":""},{"Id":6321,"Name":"","CurseForge":"phantasm","Modrinth":"ends-phantasm"},{"Id":6322,"Name":"绿宝石工艺 (Emerald Craft Mod)","CurseForge":"emerald-craft-mod","Modrinth":"emerald-craft"},{"Id":6323,"Name":"REI工作方块 (Roughly Enough Professions)","CurseForge":"roughly-enough-professions-rep","Modrinth":"roughly-enough-professions-rep"},{"Id":6324,"Name":"精妙核心 (Sophisticated Core)","CurseForge":"sophisticated-core","Modrinth":"sophisticated-core"},{"Id":6325,"Name":"","CurseForge":"edibles","Modrinth":"edibles"},{"Id":6325,"Name":"","CurseForge":"edibles-fabric","Modrinth":""},{"Id":6326,"Name":"","CurseForge":"reach-fix","Modrinth":"reach-fix"},{"Id":6327,"Name":"","CurseForge":"lootjs-forge","Modrinth":"lootjs"},{"Id":6328,"Name":"聊天音效 (Chat Sounds)","CurseForge":"chat-sounds","Modrinth":"chatsounds"},{"Id":6329,"Name":"进度截图 (Advancement Screenshot)","CurseForge":"advancement-screenshot","Modrinth":"advancement-screenshot"},{"Id":6329,"Name":"进度截图 (Advancement Screenshot)","CurseForge":"advancement-screenshot-fabric","Modrinth":""},{"Id":6330,"Name":"","CurseForge":"mc-mods-loot-drops","Modrinth":"all-loot-drops"},{"Id":6331,"Name":"","CurseForge":"disc-jockey","Modrinth":"disc-jockey"},{"Id":6332,"Name":"更好的任务栏 (Better Taskbar)","CurseForge":"better-taskbar","Modrinth":"better-taskbar"},{"Id":6333,"Name":"","CurseForge":"storage-network","Modrinth":""},{"Id":6336,"Name":"","CurseForge":"snr-more-metal","Modrinth":""},{"Id":6337,"Name":"王之财宝 (Gate of Babylon)","CurseForge":"gate-of-babylon","Modrinth":""},{"Id":6339,"Name":"","CurseForge":"evocation","Modrinth":""},{"Id":6340,"Name":"","CurseForge":"the-illusioners-cabin","Modrinth":""},{"Id":6341,"Name":"","CurseForge":"gw-pillager-outpost","Modrinth":""},{"Id":6342,"Name":"","CurseForge":"mercs-and-menaces","Modrinth":""},{"Id":6343,"Name":"","CurseForge":"illage-and-spillage","Modrinth":""},{"Id":6344,"Name":"","CurseForge":"more-illagers","Modrinth":""},{"Id":6345,"Name":"","CurseForge":"probably-chests","Modrinth":""},{"Id":6346,"Name":"","CurseForge":"illager-plushies","Modrinth":""},{"Id":6346,"Name":"","CurseForge":"illager-plushies-fabric","Modrinth":""},{"Id":6347,"Name":"","CurseForge":"pillageplunder","Modrinth":""},{"Id":6348,"Name":"","CurseForge":"extended-illagers-mod","Modrinth":""},{"Id":6349,"Name":"","CurseForge":"midnightcontrols","Modrinth":"midnightcontrols"},{"Id":6350,"Name":"","CurseForge":"wonderful-enchantments","Modrinth":"majruszs-enchantments"},{"Id":6351,"Name":"","CurseForge":"a-lot-of-useless-stuff","Modrinth":""},{"Id":6352,"Name":"","CurseForge":"lankaster-origins","Modrinth":"lankasters-origins"},{"Id":6355,"Name":"优先目标 (Priority Target)","CurseForge":"priority-target","Modrinth":""},{"Id":6356,"Name":"高级植物学 (Advanced Botany)","CurseForge":"advanced-botany","Modrinth":""},{"Id":6357,"Name":"","CurseForge":"charred","Modrinth":""},{"Id":6358,"Name":"幻想多媒体3 (Incorporeal 3)","CurseForge":"incorporeal-3","Modrinth":"incorporeal-3"},{"Id":6361,"Name":"氧 (Oxygen)","CurseForge":"oxygen","Modrinth":""},{"Id":6362,"Name":"沉浸式战斗 (Immersive Combat)","CurseForge":"immersive-combat","Modrinth":""},{"Id":6362,"Name":"沉浸式战斗 (Immersive Combat) - 仅 7-5-2023 ,无更新","CurseForge":"","Modrinth":"immersive-combat"},{"Id":6363,"Name":"","CurseForge":"","Modrinth":"essentialclient"},{"Id":6364,"Name":"","CurseForge":"mystical-index","Modrinth":"mystical-index"},{"Id":6365,"Name":"","CurseForge":"combat-commons","Modrinth":""},{"Id":6366,"Name":"","CurseForge":"corail-woodcutter","Modrinth":""},{"Id":6368,"Name":"本地化冲突消除 (NoLocalizationConflict)","CurseForge":"nolocalizationconflict","Modrinth":""},{"Id":6369,"Name":"","CurseForge":"enhanced-celestials-mobifier-integration","Modrinth":""},{"Id":6369,"Name":"","CurseForge":"enhanced-celestials-mobifier-integration-fabric","Modrinth":""},{"Id":6370,"Name":"","CurseForge":"twilightdecor","Modrinth":""},{"Id":6371,"Name":"","CurseForge":"midas-hunger-fabric","Modrinth":"midas-hunger"},{"Id":6372,"Name":"安全用火 (FireSafety)","CurseForge":"firesafety","Modrinth":""},{"Id":6373,"Name":"","CurseForge":"pretty-pistons","Modrinth":""},{"Id":6374,"Name":"","CurseForge":"more-beautiful-trapdoors","Modrinth":"more-beautiful-trapdoors"},{"Id":6375,"Name":"","CurseForge":"project-expansion","Modrinth":"project-expansion"},{"Id":6376,"Name":"","CurseForge":"the-corners","Modrinth":"the-corners"},{"Id":6377,"Name":"深度怪物学习:重铸 (Deep Mob Learning: Reforged)","CurseForge":"deep-mob-learning-reforged","Modrinth":""},{"Id":6378,"Name":"","CurseForge":"zenith","Modrinth":"zenith"},{"Id":6379,"Name":"扩展抽屉 (Extended Drawers)","CurseForge":"extended-drawers","Modrinth":"extended-drawers"},{"Id":6380,"Name":"","CurseForge":"equippable-utilities","Modrinth":"utilities"},{"Id":6381,"Name":"货币多多2 (Never Enough Currency 2)","CurseForge":"never-enough-currency-2","Modrinth":"never-enough-currency-2-(forge)"},{"Id":6381,"Name":"货币多多2 (Never Enough Currency 2)","CurseForge":"never-enough-currency-fabric","Modrinth":""},{"Id":6382,"Name":"石英箱子 (Quartz Chests)","CurseForge":"quartz-chests","Modrinth":""},{"Id":6383,"Name":"冰封乐事 (Frozen Delight)","CurseForge":"frozen-delight","Modrinth":""},{"Id":6385,"Name":"","CurseForge":"clean-creative-mod","Modrinth":""},{"Id":6386,"Name":"这就是石粒! (This Rocks!)","CurseForge":"this-rocks","Modrinth":"this-rocks"},{"Id":6386,"Name":"这就是石粒! (This Rocks!)","CurseForge":"this-rocks-forge","Modrinth":"this-rocks-forge"},{"Id":6387,"Name":"","CurseForge":"motschens-puddles","Modrinth":"puddles"},{"Id":6388,"Name":"致密矿石:重生 (Dense Ores Reborn)","CurseForge":"dense-ores-reborn","Modrinth":""},{"Id":6390,"Name":"群峦·防腐木 (TFC Treated Wood)","CurseForge":"tfctreatedwood","Modrinth":""},{"Id":6391,"Name":"","CurseForge":"retro64","Modrinth":"retro64-fabric"},{"Id":6391,"Name":"","CurseForge":"retro64-fabric","Modrinth":""},{"Id":6392,"Name":"双重快捷栏 (Double Hotbar)","CurseForge":"double-hotbar","Modrinth":"double-hotbar"},{"Id":6393,"Name":"熔岩科技 (Lava Tech)","CurseForge":"lavatech","Modrinth":""},{"Id":6394,"Name":"凤梨通灵术 (Pineapple Psychic)","CurseForge":"pineapple-psychic","Modrinth":"pineapple-psychic"},{"Id":6395,"Name":"","CurseForge":"fragile-torches","Modrinth":""},{"Id":6396,"Name":"","CurseForge":"","Modrinth":"time-changer"},{"Id":6397,"Name":"","CurseForge":"come-closer","Modrinth":""},{"Id":6398,"Name":"","CurseForge":"creeper-chain-reaction","Modrinth":""},{"Id":6399,"Name":"","CurseForge":"tiffitlib","Modrinth":""},{"Id":6400,"Name":"","CurseForge":"sanity","Modrinth":""},{"Id":6402,"Name":"动态的树:天境附属 (Dynamic Trees - The Aether Legacy)","CurseForge":"dynamic-trees-the-aether-legacy","Modrinth":"dynamic-trees-aether"},{"Id":6403,"Name":"动态的树:料理工艺附属 (Dynamic Trees - Cuisine)","CurseForge":"dynamic-trees-cuisine","Modrinth":""},{"Id":6404,"Name":"","CurseForge":"ancient-classes","Modrinth":""},{"Id":6405,"Name":"","CurseForge":"bigger-stacks","Modrinth":"biggerstacks"},{"Id":6406,"Name":"快速静音 (Silence!)","CurseForge":"silence","Modrinth":"silence"},{"Id":6407,"Name":"动态的树:更多实用设备2附属 (Dynamic Trees - Extra Utilities 2)","CurseForge":"dynamic-trees-extra-utilities-2","Modrinth":""},{"Id":6408,"Name":"","CurseForge":"platforms","Modrinth":"platforms"},{"Id":6408,"Name":"","CurseForge":"platforms-fabric","Modrinth":""},{"Id":6409,"Name":"简便箱子 (EasierChests)","CurseForge":"easierchests","Modrinth":"easierchests"},{"Id":6410,"Name":"Cracker的凋灵风暴 (Cracker's Wither Storm Mod)","CurseForge":"crackers-wither-storm-mod","Modrinth":"crackers-wither-storm-mod"},{"Id":6411,"Name":"","CurseForge":"ore-canes-mod","Modrinth":""},{"Id":6412,"Name":"","CurseForge":"spartan-defiled","Modrinth":""},{"Id":6413,"Name":"Minecraft多线程增强Mod兼容性增强分支 (Minecraft Multi-Threading Mod Fabric Port Compatibility Enhancement)","CurseForge":"mcmtfabricce","Modrinth":"mcmtce"},{"Id":6414,"Name":"动态的树:根源魔法附属 (Dynamic Trees Roots)","CurseForge":"dynamic-trees-roots","Modrinth":""},{"Id":6415,"Name":"动态的树:Voyage 附属 (Dynamic Trees - Voyage)","CurseForge":"dynamic-trees-voyage","Modrinth":""},{"Id":6416,"Name":"","CurseForge":"mystical-biomes","Modrinth":""},{"Id":6418,"Name":"","CurseForge":"forgero","Modrinth":"forgero"},{"Id":6419,"Name":"","CurseForge":"disenchantingforge","Modrinth":""},{"Id":6419,"Name":"","CurseForge":"disenchantingfabric","Modrinth":""},{"Id":6420,"Name":"红石笔 (Redstone Pen)","CurseForge":"redstone-pen","Modrinth":"redstonepen"},{"Id":6421,"Name":"","CurseForge":"ae2-things-forge","Modrinth":"ae2things"},{"Id":6421,"Name":"","CurseForge":"ae2things","Modrinth":""},{"Id":6422,"Name":"无尽贪婪·伪 (Avaritia Endless)","CurseForge":"avaritia-endless","Modrinth":""},{"Id":6423,"Name":"动态的树:侏罗纪时代附属 (Dynamic Trees - JurassiCraft)","CurseForge":"dynamic-trees-jurassicraft","Modrinth":""},{"Id":6424,"Name":"动态的树:自然灵气附属 (Dynamic Trees - Nature's Aura)","CurseForge":"dynamic-trees-natures-aura","Modrinth":""},{"Id":6425,"Name":"动态的树:拓展 (Dynamic Trees Plus)","CurseForge":"dynamictreesplus","Modrinth":"dynamictreesplus"},{"Id":6426,"Name":"动态的树:禁忌与奥秘附属 (Dynamic Trees - Forbidden And Arcanus)","CurseForge":"dynamic-trees-forbidden-arcanus","Modrinth":""},{"Id":6427,"Name":"动态的树:TerraForged 附属 (Dynamic Trees - TerraForged)","CurseForge":"dynamic-trees-terraforged","Modrinth":""},{"Id":6428,"Name":"动态的树:Corvus 附属 (Dynamic Trees - Corvus)","CurseForge":"dynamic-trees-corvus","Modrinth":""},{"Id":6429,"Name":"动态的树:Mystical Biomes 附属 (Dynamic Trees - Mystical Biomes)","CurseForge":"dynamic-trees-mystical-biomes","Modrinth":""},{"Id":6430,"Name":"","CurseForge":"corvus","Modrinth":""},{"Id":6431,"Name":"山羊角与铜制号角 (Goat Horns & Copper Horns)","CurseForge":"goat-horns-copper-horns","Modrinth":""},{"Id":6432,"Name":"","CurseForge":"mystical-powers","Modrinth":""},{"Id":6434,"Name":"受潮 (Damp)","CurseForge":"damp","Modrinth":""},{"Id":6435,"Name":"木桶 (Wooden Bucket)","CurseForge":"wooden-bucket","Modrinth":"wooden-bucket"},{"Id":6436,"Name":"压缩木桶 (Compressed Barrels)","CurseForge":"compressed-barrels","Modrinth":"compressed_barrels"},{"Id":6438,"Name":"高级下界合金 (Advanced Netherite)","CurseForge":"advanced-netherite","Modrinth":"advanced-netherite"},{"Id":6438,"Name":"高级下界合金 (Advanced Netherite)","CurseForge":"advanced-netherite-fabric","Modrinth":""},{"Id":6439,"Name":"无尽贪婪:重生 (Re:Avaritia)","CurseForge":"re-avaritia","Modrinth":"re-avaritia"},{"Id":6440,"Name":"简易传送带 (Simply Conveyors & More)","CurseForge":"simply-conveyors-more","Modrinth":""},{"Id":6441,"Name":"","CurseForge":"porting-lib","Modrinth":"porting_lib"},{"Id":6442,"Name":"扩充乐事 (Expanded Delight)","CurseForge":"expanded-delight","Modrinth":"expanded-delight"},{"Id":6443,"Name":"","CurseForge":"spell-bundle","Modrinth":""},{"Id":6444,"Name":"","CurseForge":"nightmareesm","Modrinth":""},{"Id":6445,"Name":"","CurseForge":"simply-no-shading","Modrinth":"simply-no-shading"},{"Id":6446,"Name":"咒法学 (Hex Casting)","CurseForge":"hexcasting","Modrinth":"hex-casting"},{"Id":6447,"Name":"","CurseForge":"paucal","Modrinth":"paucal"},{"Id":6448,"Name":"","CurseForge":"uneffectual","Modrinth":"uneffectual"},{"Id":6449,"Name":"","CurseForge":"loot","Modrinth":""},{"Id":6450,"Name":"行尸走肉:沉浸 (Crafting Dead: Immerse)","CurseForge":"crafting-dead-immerse","Modrinth":""},{"Id":6452,"Name":"","CurseForge":"extended-clouds","Modrinth":"extended-clouds"},{"Id":6453,"Name":"","CurseForge":"distinct-damage-descriptions","Modrinth":"distinct-damage-descriptions"},{"Id":6454,"Name":"","CurseForge":"technicalities-lib","Modrinth":""},{"Id":6455,"Name":"Fantasy的家具 (Fantasy's Furniture)","CurseForge":"fantasys-furniture","Modrinth":"fantasy-furniture"},{"Id":6456,"Name":"东方符卡附加包 (Touhou Spell Card Additional Pack)","CurseForge":"touhou-spell-card-additional","Modrinth":""},{"Id":6457,"Name":"","CurseForge":"registrator","Modrinth":""},{"Id":6458,"Name":"","CurseForge":"apexcore","Modrinth":"apexcore"},{"Id":6459,"Name":"魔法类库 (MagicLib) - 正式版","CurseForge":"magiclib","Modrinth":"magiclib"},{"Id":6459,"Name":"魔法类库 (MagicLib) - 开发版","CurseForge":"magiclib-dev","Modrinth":""},{"Id":6459,"Name":"魔法类库 (MagicLib) - 测试版","CurseForge":"","Modrinth":"magiclib-dev"},{"Id":6460,"Name":"更好的树叶渲染优化 (Cull Less Leaves)","CurseForge":"cull-less-leaves","Modrinth":"cull-less-leaves"},{"Id":6461,"Name":"繁星之凝 (Ex Stellae)","CurseForge":"","Modrinth":"ex-stellae"},{"Id":6462,"Name":"手工艺 (With Crafts)","CurseForge":"with-craft","Modrinth":""},{"Id":6463,"Name":"流体转化器 (FluidConverters)","CurseForge":"fluidconverters","Modrinth":""},{"Id":6464,"Name":"","CurseForge":"multiblock-stages","Modrinth":""},{"Id":6466,"Name":"冶金传奇 (Metallurgy Legend)","CurseForge":"metallurgylegend","Modrinth":""},{"Id":6467,"Name":"","CurseForge":"waterskin","Modrinth":""},{"Id":6468,"Name":"","CurseForge":"realism-thirst","Modrinth":""},{"Id":6469,"Name":"","CurseForge":"dungeons-libraries","Modrinth":""},{"Id":6471,"Name":"","CurseForge":"","Modrinth":"fabricated-forge"},{"Id":6472,"Name":"","CurseForge":"raknetify","Modrinth":"raknetify"},{"Id":6473,"Name":"","CurseForge":"vmp-fabric","Modrinth":"vmp-fabric"},{"Id":6473,"Name":"","CurseForge":"vmp-forge","Modrinth":"vmp-forge"},{"Id":6474,"Name":"漂浮物 (Flotage)","CurseForge":"flotage","Modrinth":"flotage"},{"Id":6475,"Name":"动态的树:HungTeen的植物大战僵尸附属 (Dynamic Trees for PVZ)","CurseForge":"dynamic-trees-for-hungteens-plants-vs-zombies-mod","Modrinth":""},{"Id":6476,"Name":"防丢 (AntiDrop)","CurseForge":"antidrop","Modrinth":"antidrop"},{"Id":6477,"Name":"","CurseForge":"elemental-items","Modrinth":""},{"Id":6479,"Name":"一键矿工 (OneKeyMiner)","CurseForge":"onekeyminer","Modrinth":"onekeyminer"},{"Id":6480,"Name":"","CurseForge":"boathud","Modrinth":"boathud"},{"Id":6481,"Name":"","CurseForge":"ninjaxxs-needs","Modrinth":""},{"Id":6482,"Name":"","CurseForge":"pixelmon-gui-blocks","Modrinth":""},{"Id":6484,"Name":"","CurseForge":"more-mekanism-processing","Modrinth":"more-mekanism-processing"},{"Id":6485,"Name":"","CurseForge":"item-banning","Modrinth":"item-banning"},{"Id":6486,"Name":"","CurseForge":"probejs","Modrinth":"probejs"},{"Id":6487,"Name":"更多三叉戟 (Impaled🔱)","CurseForge":"impaled","Modrinth":"impaled"},{"Id":6488,"Name":"","CurseForge":"laserio","Modrinth":""},{"Id":6489,"Name":"","CurseForge":"villager-tools","Modrinth":"villager-tools"},{"Id":6491,"Name":"","CurseForge":"mcsa","Modrinth":""},{"Id":6492,"Name":"","CurseForge":"no-resource-pack-warnings","Modrinth":"no-resource-pack-warnings"},{"Id":6493,"Name":"","CurseForge":"take-it-slow","Modrinth":"take-it-slow"},{"Id":6494,"Name":"","CurseForge":"slime-mimic","Modrinth":"slime-mimic-mod"},{"Id":6498,"Name":"","CurseForge":"ldlib","Modrinth":"ldlib"},{"Id":6499,"Name":"微光 (Shimmer)","CurseForge":"shimmer","Modrinth":"shimmer!"},{"Id":6500,"Name":"","CurseForge":"ducts","Modrinth":""},{"Id":6501,"Name":"","CurseForge":"","Modrinth":"baguette"},{"Id":6503,"Name":"","CurseForge":"nosiphus-furniture-mod","Modrinth":""},{"Id":6504,"Name":"","CurseForge":"tf2-engineer-buildings-mod","Modrinth":""},{"Id":6505,"Name":"","CurseForge":"kubejs-botania","Modrinth":""},{"Id":6506,"Name":"","CurseForge":"advancements-enlarger","Modrinth":""},{"Id":6507,"Name":"更好的消音器 (Better Muffling)","CurseForge":"better-muffling","Modrinth":""},{"Id":6508,"Name":"","CurseForge":"lightest-lamps","Modrinth":"lightest-lamps"},{"Id":6508,"Name":"","CurseForge":"lightest-lamps-fabric","Modrinth":""},{"Id":6509,"Name":"大铁桶 (Big Buckets)","CurseForge":"bigbuckets","Modrinth":""},{"Id":6509,"Name":"大铁桶 (Big Buckets)","CurseForge":"bigbuckets-fabric","Modrinth":""},{"Id":6510,"Name":"维度存储 (DimStorage)","CurseForge":"dimstorage","Modrinth":"dimstorage"},{"Id":6511,"Name":"","CurseForge":"spawner-imbuer","Modrinth":"spawner-imbuer"},{"Id":6513,"Name":"无名乐事 (Unnamed Delight)","CurseForge":"unnamed-delight","Modrinth":""},{"Id":6515,"Name":"","CurseForge":"monsters-girls-mushroom-update","Modrinth":""},{"Id":6516,"Name":"","CurseForge":"ftb-tutorial-mod-forge","Modrinth":""},{"Id":6517,"Name":"","CurseForge":"mc-terrain-editor","Modrinth":""},{"Id":6518,"Name":"额外的宝石 (ExtraGems)","CurseForge":"extra-gems","Modrinth":"extragems"},{"Id":6519,"Name":"","CurseForge":"various-world","Modrinth":"various-world"},{"Id":6520,"Name":"更好的穿刺Forge版 (Better Impaling Forge)","CurseForge":"better-impaling-forge","Modrinth":"better-impaling-forge"},{"Id":6521,"Name":"","CurseForge":"bucketlib","Modrinth":"bucketlib"},{"Id":6522,"Name":"水下火把 (Aquatic Torches)","CurseForge":"aquatic-torches","Modrinth":"aquatic-torches"},{"Id":6523,"Name":"更好的海绵 (Better Sponges)","CurseForge":"better-sponges","Modrinth":""},{"Id":6524,"Name":"","CurseForge":"easyexcavate","Modrinth":""},{"Id":6525,"Name":"木剪刀 (Wooden Shears)","CurseForge":"wooden-shears","Modrinth":"wooden-shears"},{"Id":6526,"Name":"砖熔炉 (Brick Furnace)","CurseForge":"brick-furnace","Modrinth":"brick-furnace"},{"Id":6527,"Name":"砖漏斗 (Brick Hopper)","CurseForge":"brick-hopper","Modrinth":"brick-hopper"},{"Id":6528,"Name":"","CurseForge":"human-companions","Modrinth":""},{"Id":6529,"Name":"","CurseForge":"odysseyhud","Modrinth":""},{"Id":6530,"Name":"","CurseForge":"colorblindness","Modrinth":"colorblindness"},{"Id":6531,"Name":"","CurseForge":"aether-addon","Modrinth":""},{"Id":6532,"Name":"月之石 (MoonStone)","CurseForge":"moonstonemod","Modrinth":"moonstone"},{"Id":6532,"Name":"月之石 (MoonStone)","CurseForge":"","Modrinth":"moonfabric"},{"Id":6534,"Name":"服务器重定向 (Server Redirect)","CurseForge":"server-redirect","Modrinth":""},{"Id":6535,"Name":"城市方块 (City Blocks)","CurseForge":"city-blocks","Modrinth":""},{"Id":6536,"Name":"有用的帽子 (Useful Hats)","CurseForge":"useful-hats","Modrinth":"useful-hats"},{"Id":6538,"Name":"高版本加载界面 (Modern Splash)","CurseForge":"modern-splash","Modrinth":"modern-splash"},{"Id":6539,"Name":"","CurseForge":"babel","Modrinth":""},{"Id":6540,"Name":"文化瑰宝 - 画作与乐曲 (Cultural Treasures - Paintings and Music)","CurseForge":"cultural-treasures-paintings","Modrinth":""},{"Id":6541,"Name":"胡萝卜厨房 (Kitchen Karrot)","CurseForge":"kitchen-karrot","Modrinth":"kitchen-karrot"},{"Id":6542,"Name":"","CurseForge":"servercore","Modrinth":"servercore"},{"Id":6543,"Name":"","CurseForge":"ivan-carpet-addition","Modrinth":"ivan-carpet-addition"},{"Id":6544,"Name":"","CurseForge":"food-funk","Modrinth":""},{"Id":6545,"Name":"","CurseForge":"wumpleutil","Modrinth":""},{"Id":6546,"Name":"暮色乐事 (Twilight Delight)","CurseForge":"twilight-delight","Modrinth":"twilightdelight"},{"Id":6547,"Name":"","CurseForge":"recruits","Modrinth":"villager-recruits"},{"Id":6548,"Name":"","CurseForge":"the-true-backrooms","Modrinth":""},{"Id":6549,"Name":"","CurseForge":"webstreamer","Modrinth":"webstreamer"},{"Id":6550,"Name":"","CurseForge":"op-items-tab","Modrinth":""},{"Id":6551,"Name":"神秘杂项学 (Thaumisc)","CurseForge":"thaumisc","Modrinth":""},{"Id":6554,"Name":"HT 的砍树 (HT's TreeChop)","CurseForge":"treechop","Modrinth":"treechop"},{"Id":6555,"Name":"","CurseForge":"idwtialsimmoedm","Modrinth":"idwtialsimmoedm"},{"Id":6556,"Name":"","CurseForge":"entity-collision-fps-fix","Modrinth":"entity-collision-fps-fix"},{"Id":6556,"Name":"","CurseForge":"entity-collision-fps-fix-fabric","Modrinth":""},{"Id":6557,"Name":"","CurseForge":"hollowwoods","Modrinth":""},{"Id":6559,"Name":"动态准星 (Dynamic Crosshair)","CurseForge":"dynamic-crosshair","Modrinth":"dynamiccrosshair"},{"Id":6560,"Name":"","CurseForge":"raiders","Modrinth":""},{"Id":6561,"Name":"","CurseForge":"better-animals-plus-plus","Modrinth":""},{"Id":6562,"Name":"","CurseForge":"block-overlay-fix","Modrinth":""},{"Id":6563,"Name":"","CurseForge":"mini-effects","Modrinth":"mini-effects"},{"Id":6563,"Name":"","CurseForge":"mini-effects-fabric","Modrinth":""},{"Id":6564,"Name":"","CurseForge":"nature-overhaul","Modrinth":""},{"Id":6565,"Name":"AE2流体合成套件重置 (AE2 Fluid Crafting Rework)","CurseForge":"ae2-fluid-crafting-rework","Modrinth":"ae2-fluid-crafting"},{"Id":6568,"Name":"","CurseForge":"moreculling","Modrinth":"moreculling"},{"Id":6569,"Name":"更好的村庄 (Better Villages)","CurseForge":"better-village-forge","Modrinth":"better-village"},{"Id":6569,"Name":"更好的村庄 (Better Villages)","CurseForge":"better-village-fabric","Modrinth":""},{"Id":6569,"Name":"更好的村庄 (Better Villages)","CurseForge":"better-village-neoforge","Modrinth":""},{"Id":6570,"Name":"","CurseForge":"trinkets-curios-theme","Modrinth":"trinkets-curios-theme"},{"Id":6571,"Name":"","CurseForge":"banilla-claws","Modrinth":"banilla-claws"},{"Id":6571,"Name":"","CurseForge":"banilla-claws-forge","Modrinth":"banilla-claws-neoforge"},{"Id":6573,"Name":"","CurseForge":"transparent-cosmetics","Modrinth":"transparent-cosmetics"},{"Id":6574,"Name":"更多晶洞 (More Geodes / More Geodes Reforged)","CurseForge":"emerald-geodes","Modrinth":"more-geodes"},{"Id":6574,"Name":"更多晶洞 (More Geodes / More Geodes Reforged)","CurseForge":"more-geodes-reforged","Modrinth":"more-geodes-reforged"},{"Id":6575,"Name":"","CurseForge":"right-click-get-crops","Modrinth":"right-click-get-crops"},{"Id":6576,"Name":"","CurseForge":"oh-my-gourd","Modrinth":"oh-my-gourd"},{"Id":6577,"Name":"","CurseForge":"better-block-sounds","Modrinth":"bbs"},{"Id":6579,"Name":"V0id 的智能背包 (V0id's Smart Backpacks)","CurseForge":"v0ids-smart-backpacks","Modrinth":""},{"Id":6581,"Name":"银装素裹 (Winterly)","CurseForge":"winterly","Modrinth":"winterly"},{"Id":6582,"Name":"","CurseForge":"forgetmechunk","Modrinth":"forgetmechunk"},{"Id":6582,"Name":"","CurseForge":"forgetmechunk-forge","Modrinth":""},{"Id":6583,"Name":"","CurseForge":"","Modrinth":"moremusic"},{"Id":6585,"Name":"更好的F1 (Better F1)","CurseForge":"better-f1","Modrinth":""},{"Id":6586,"Name":"","CurseForge":"removehudbutnothand","Modrinth":""},{"Id":6587,"Name":"","CurseForge":"tool-part-stages","Modrinth":""},{"Id":6589,"Name":"特殊背包重做版 (Iron Backpacks Redone)","CurseForge":"iron-backpacks-redone","Modrinth":""},{"Id":6590,"Name":"B0bGary的生物群系禁用器 (B0bGary's Biome Remover)","CurseForge":"b0bgarys-biome-remover-v-1-0-0-1","Modrinth":""},{"Id":6591,"Name":"双持 (DualWielding)","CurseForge":"dualwielding","Modrinth":"dualwielding"},{"Id":6592,"Name":"","CurseForge":"malum-quilt","Modrinth":"malum-quilt"},{"Id":6593,"Name":"内存泄漏修复 (Memory Leak Fix) - 已停止支持","CurseForge":"memoryleakfix","Modrinth":""},{"Id":6593,"Name":"内存泄漏修复 (Memory Leak Fix)","CurseForge":"","Modrinth":"memoryleakfix"},{"Id":6594,"Name":"","CurseForge":"","Modrinth":"axolotlviewer"},{"Id":6595,"Name":"紧凑聊天 (Compact Chat)","CurseForge":"","Modrinth":"compact-chat"},{"Id":6596,"Name":"","CurseForge":"language-reload","Modrinth":"language-reload"},{"Id":6599,"Name":"","CurseForge":"","Modrinth":"beer"},{"Id":6600,"Name":"","CurseForge":"sound-categories","Modrinth":"sound-categories"},{"Id":6601,"Name":"","CurseForge":"","Modrinth":"unsuspicious-stew%22"},{"Id":6602,"Name":"","CurseForge":"preventer","Modrinth":"preventer"},{"Id":6603,"Name":"","CurseForge":"","Modrinth":"wpit"},{"Id":6604,"Name":"","CurseForge":"starflight-innovation","Modrinth":""},{"Id":6605,"Name":"","CurseForge":"powah-rearchitected","Modrinth":"powah"},{"Id":6606,"Name":"","CurseForge":"","Modrinth":"mouserate-framerate"},{"Id":6607,"Name":"","CurseForge":"pickup-notifications","Modrinth":"pickup-notifications"},{"Id":6608,"Name":"","CurseForge":"","Modrinth":"practical-barrels"},{"Id":6609,"Name":"","CurseForge":"better-rocks","Modrinth":""},{"Id":6610,"Name":"","CurseForge":"horse-combat-controls","Modrinth":"horse-combat-controls"},{"Id":6611,"Name":"","CurseForge":"libgui","Modrinth":""},{"Id":6612,"Name":"","CurseForge":"simply-houses","Modrinth":"simply-houses"},{"Id":6613,"Name":"YUNG 的沙漠神殿优化 (YUNG's Better Desert Temples)","CurseForge":"yungs-better-desert-temples","Modrinth":"yungs-better-desert-temples"},{"Id":6613,"Name":"YUNG 的沙漠神殿优化 (YUNG's Better Desert Temples)","CurseForge":"yungs-better-desert-temples-fabric","Modrinth":""},{"Id":6613,"Name":"YUNG 的沙漠神殿优化 (YUNG's Better Desert Temples)","CurseForge":"yungs-better-desert-temples-neoforge","Modrinth":""},{"Id":6614,"Name":"现代动力学 (Modern Dynamics)","CurseForge":"modern-dynamics","Modrinth":"modern-dynamics"},{"Id":6615,"Name":"","CurseForge":"doggo-mod","Modrinth":"doggo-mod"},{"Id":6616,"Name":"","CurseForge":"tan-huge-trees","Modrinth":"tans-huge-trees"},{"Id":6617,"Name":"草我本来不想这么做的但是我这么做了啊啊啊啊啊啊啊啊啊啊啊啊啊啊 (Wait I Am Not Gonna Do This But I Somehow Accidentally Did This Nooooooooooooooo)","CurseForge":"","Modrinth":"wiangdtbisadtn"},{"Id":6618,"Name":"YUNG 的沼泽小屋优化 (YUNG's Better Witch Huts)","CurseForge":"yungs-better-witch-huts","Modrinth":"yungs-better-witch-huts"},{"Id":6618,"Name":"YUNG 的沼泽小屋优化 (YUNG's Better Witch Huts)","CurseForge":"yungs-better-witch-huts-fabric","Modrinth":""},{"Id":6618,"Name":"YUNG 的沼泽小屋优化 (YUNG's Better Witch Huts)","CurseForge":"yungs-better-witch-huts-neoforge","Modrinth":""},{"Id":6619,"Name":"全景图创建器 (Panorama Creator)","CurseForge":"panorama-creator","Modrinth":""},{"Id":6620,"Name":"","CurseForge":"ui-input-undo-fabric","Modrinth":"ui-input-undo-fabric"},{"Id":6620,"Name":"","CurseForge":"ui-input-undo-forge","Modrinth":"ui-input-undo-forge"},{"Id":6621,"Name":"应急食物 (PaiMeng)","CurseForge":"paimeng","Modrinth":""},{"Id":6622,"Name":"","CurseForge":"nyfs-quivers-expanded","Modrinth":""},{"Id":6624,"Name":"","CurseForge":"zoomify","Modrinth":"zoomify"},{"Id":6625,"Name":"","CurseForge":"golemania","Modrinth":"golemania"},{"Id":6626,"Name":"","CurseForge":"vulkanmod","Modrinth":"vulkanmod"},{"Id":6627,"Name":"","CurseForge":"sledgehammer","Modrinth":""},{"Id":6628,"Name":"Quilt 加载画面 - 不再更新 (Quilt Loading Screen)","CurseForge":"quilt-loading-screen","Modrinth":""},{"Id":6628,"Name":"Quilt 加载画面 (Quilt Loading Screen)","CurseForge":"","Modrinth":"quilt-loading-screen"},{"Id":6629,"Name":"紫晶魔艺 (Amethyst Imbuement)","CurseForge":"amethyst-imbuement","Modrinth":"amethyst-imbuement"},{"Id":6630,"Name":"","CurseForge":"emi","Modrinth":"emi"},{"Id":6631,"Name":"","CurseForge":"nuclear-contraptions","Modrinth":""},{"Id":6632,"Name":"烈焰配方 (Fire Crafting)","CurseForge":"fire-crafting","Modrinth":"firecrafting"},{"Id":6633,"Name":"提示框微调 (Tooltip Tweaks)","CurseForge":"tooltiptweaks","Modrinth":"tooltiptweaks"},{"Id":6635,"Name":"","CurseForge":"more-babies","Modrinth":"more-babies"},{"Id":6636,"Name":"","CurseForge":"","Modrinth":"save-my-bed"},{"Id":6637,"Name":"","CurseForge":"data-reload","Modrinth":"data-reload"},{"Id":6638,"Name":"","CurseForge":"winver","Modrinth":"winver"},{"Id":6639,"Name":"","CurseForge":"armor-visibility","Modrinth":"armor-visibility"},{"Id":6641,"Name":"先有鸡 (The Chicken Came First)","CurseForge":"the-chicken-came-first","Modrinth":""},{"Id":6643,"Name":"","CurseForge":"hardcore-dungeons","Modrinth":""},{"Id":6644,"Name":"","CurseForge":"block-relocation-forge","Modrinth":""},{"Id":6644,"Name":"","CurseForge":"block-relocation","Modrinth":""},{"Id":6645,"Name":"没有配方书Fabric版 (NoRecipeBook (Fabric))","CurseForge":"norecipebook-fabric","Modrinth":"norecipebook"},{"Id":6646,"Name":"","CurseForge":"","Modrinth":"sort"},{"Id":6647,"Name":"","CurseForge":"fpsdisplay","Modrinth":"fpsdisplay"},{"Id":6648,"Name":"","CurseForge":"","Modrinth":"where-items-owo"},{"Id":6649,"Name":"","CurseForge":"microdurability","Modrinth":"microdurability"},{"Id":6650,"Name":"","CurseForge":"indicatia","Modrinth":"indicatia"},{"Id":6651,"Name":"","CurseForge":"fishy-delight-a-farmers-delight-add-on","Modrinth":""},{"Id":6652,"Name":"简单乐事 (Simple Delights)","CurseForge":"simple-delights","Modrinth":""},{"Id":6653,"Name":"为轮廓上色 (Color Me Outlines)","CurseForge":"color-me-outlines","Modrinth":"color-me-outlines"},{"Id":6654,"Name":"","CurseForge":"nbttooltips","Modrinth":"nbttooltips"},{"Id":6656,"Name":"","CurseForge":"upstream","Modrinth":""},{"Id":6656,"Name":"","CurseForge":"upstream-fabric","Modrinth":""},{"Id":6657,"Name":"","CurseForge":"astemirs-fireflies","Modrinth":""},{"Id":6659,"Name":"末影作物 (Ender Crop)","CurseForge":"ender-crop","Modrinth":"ender-crop"},{"Id":6660,"Name":"","CurseForge":"modupdater","Modrinth":""},{"Id":6661,"Name":"","CurseForge":"fivehead","Modrinth":"5head"},{"Id":6663,"Name":"可种植掉落物 (Attained Drops)","CurseForge":"attained-drops","Modrinth":""},{"Id":6664,"Name":"可种植掉落物 2 (Attained Drops 2)","CurseForge":"attained-drops-2","Modrinth":""},{"Id":6666,"Name":"","CurseForge":"auth-me","Modrinth":"auth-me"},{"Id":6667,"Name":"创造模式物品栏重制 (RefinedCreativeInventory)","CurseForge":"refinedcreativeinventory","Modrinth":"refinedcreativeinventory"},{"Id":6669,"Name":"","CurseForge":"runesword","Modrinth":""},{"Id":6670,"Name":"常磐装饰 (Joban Client Mod)","CurseForge":"jcm","Modrinth":"jcm"},{"Id":6671,"Name":"","CurseForge":"autopackager","Modrinth":""},{"Id":6672,"Name":"","CurseForge":"dynamx","Modrinth":"dynamx"},{"Id":6673,"Name":"","CurseForge":"mob-cards","Modrinth":""},{"Id":6674,"Name":"","CurseForge":"mavm","Modrinth":"mavm"},{"Id":6675,"Name":"","CurseForge":"","Modrinth":"waxednotwaxed"},{"Id":6676,"Name":"隐藏名称 (Hidden Names)","CurseForge":"hidden-names","Modrinth":"hidden-names"},{"Id":6677,"Name":"远程命中提示 (Ding On Projectile Hit)","CurseForge":"doph","Modrinth":"doph"},{"Id":6678,"Name":"","CurseForge":"keybinds","Modrinth":"keybinds"},{"Id":6679,"Name":"","CurseForge":"hat-list","Modrinth":"hatlist"},{"Id":6680,"Name":"","CurseForge":"nmuk","Modrinth":"nmuk"},{"Id":6681,"Name":"","CurseForge":"raven-brews-core","Modrinth":"raven-brews-core"},{"Id":6682,"Name":"Raven 咖啡 (Raven Coffee)","CurseForge":"raven-coffee","Modrinth":"raven-coffee-mod"},{"Id":6683,"Name":"","CurseForge":"cqc","Modrinth":""},{"Id":6684,"Name":"","CurseForge":"geode","Modrinth":""},{"Id":6685,"Name":"真实的蜘蛛 (Realistic Spiders)","CurseForge":"realistic-spiders","Modrinth":""},{"Id":6686,"Name":"时间显示 (Time Display)","CurseForge":"","Modrinth":"timedisplay"},{"Id":6687,"Name":"","CurseForge":"biome-particle-weather","Modrinth":"biome_particle_weather"},{"Id":6688,"Name":"FTB备份2 (FTB Backups 2)","CurseForge":"ftb-backups-2","Modrinth":""},{"Id":6689,"Name":"","CurseForge":"darkkore","Modrinth":"darkkore"},{"Id":6692,"Name":"","CurseForge":"illagers-wear-armor","Modrinth":"illagers-wear-armor"},{"Id":6693,"Name":"","CurseForge":"hudium","Modrinth":"hudium"},{"Id":6694,"Name":"海洋的世界 (Ocean World)","CurseForge":"ocean-world","Modrinth":"ocean-world"},{"Id":6695,"Name":"","CurseForge":"cobblegen","Modrinth":"cobblegen"},{"Id":6696,"Name":"","CurseForge":"zombie-extreme","Modrinth":""},{"Id":6697,"Name":"模块化动作 (Modular Movements)","CurseForge":"modularmovements","Modrinth":""},{"Id":6698,"Name":"","CurseForge":"uncle-js","Modrinth":""},{"Id":6699,"Name":"凋灵之骨 (Wither Bones)","CurseForge":"wither-bones","Modrinth":""},{"Id":6700,"Name":"","CurseForge":"sleep-warp","Modrinth":"sleep-warp"},{"Id":6701,"Name":"","CurseForge":"diagonal-fences","Modrinth":"diagonal-fences"},{"Id":6702,"Name":"跳跃的船(Fabric/Quilt) (Jumpy Boats(Fabric/Quilt))","CurseForge":"jumpy-boats-fabric","Modrinth":""},{"Id":6703,"Name":"染色红石信号 (Dyeable Redstone Signal)","CurseForge":"dyeable-redstone-signal","Modrinth":"dyeable-redstone-signal"},{"Id":6704,"Name":"","CurseForge":"velocity-based-damage","Modrinth":""},{"Id":6705,"Name":"","CurseForge":"no-telemetry","Modrinth":"no-telemetry"},{"Id":6706,"Name":"","CurseForge":"","Modrinth":"fullbright"},{"Id":6708,"Name":"机械动力:异彩化合物 (Create: Chromatic Return)","CurseForge":"create-chromatic-return","Modrinth":""},{"Id":6709,"Name":"","CurseForge":"coffee-spawner","Modrinth":""},{"Id":6710,"Name":"","CurseForge":"timber-mod","Modrinth":"timber-mod-by-mycf"},{"Id":6710,"Name":"","CurseForge":"","Modrinth":"timber-by-mycf-(server-side)"},{"Id":6711,"Name":"精妙存储 (Sophisticated Storage)","CurseForge":"sophisticated-storage","Modrinth":"sophisticated-storage"},{"Id":6712,"Name":"","CurseForge":"advanced-lootable-weapons","Modrinth":""},{"Id":6713,"Name":"","CurseForge":"what-the-bucket","Modrinth":"what-the-bucket"},{"Id":6714,"Name":"","CurseForge":"quickhomes","Modrinth":""},{"Id":6715,"Name":"","CurseForge":"real-time-clock","Modrinth":""},{"Id":6716,"Name":"","CurseForge":"tardim","Modrinth":"tardim"},{"Id":6719,"Name":"","CurseForge":"luckytnt","Modrinth":"lucky-tnt-mod"},{"Id":6719,"Name":"Lucky TNT - 的愚人节特殊","CurseForge":"lucky-tnt-mod-archive","Modrinth":""},{"Id":6720,"Name":"伽玛工具 (Gamma Utils)","CurseForge":"gamma-utils","Modrinth":"gamma-utils"},{"Id":6721,"Name":"","CurseForge":"pickle-tweaks","Modrinth":"pickle-tweaks"},{"Id":6722,"Name":"","CurseForge":"dps-chaoscraft","Modrinth":"dps-chaoscraft"},{"Id":6723,"Name":"","CurseForge":"","Modrinth":"cc-polymer"},{"Id":6724,"Name":"","CurseForge":"moyai","Modrinth":"moyai"},{"Id":6725,"Name":"","CurseForge":"mega-meteors-mod","Modrinth":""},{"Id":6726,"Name":"重力发电机 (GravityGenerator)","CurseForge":"gravity-generator","Modrinth":""},{"Id":6727,"Name":"","CurseForge":"mcmouser","Modrinth":"mcmouser"},{"Id":6728,"Name":"","CurseForge":"mixinbootstraplegacy","Modrinth":""},{"Id":6729,"Name":"","CurseForge":"freecam","Modrinth":""},{"Id":6731,"Name":"动图记录 (AnimationRecorder)","CurseForge":"animationrecorder","Modrinth":""},{"Id":6732,"Name":"群系地图一键导出 (Ingame Biome Map)","CurseForge":"ingame-biome-map-exporter","Modrinth":""},{"Id":6733,"Name":"","CurseForge":"fishing-overhaul","Modrinth":"fishingoverhaul"},{"Id":6734,"Name":"","CurseForge":"kronhud","Modrinth":""},{"Id":6734,"Name":"KronHUD - 不全","CurseForge":"","Modrinth":"kronhud"},{"Id":6735,"Name":"共享末影箱 (Shared Ender Chest)","CurseForge":"shared-ender-chest","Modrinth":""},{"Id":6736,"Name":"无信标光柱 (No Beacon Beams)","CurseForge":"no-beacon-beams","Modrinth":""},{"Id":6737,"Name":"农夫暇事 (Farmer's Respite)","CurseForge":"farmers-respite","Modrinth":"farmers-respite"},{"Id":6738,"Name":"","CurseForge":"fabricae-ex-nihilo","Modrinth":"fabricae-ex-nihilo"},{"Id":6739,"Name":"","CurseForge":"crafting-mania","Modrinth":""},{"Id":6740,"Name":"战利品哥布林 (Loot Goblins)","CurseForge":"loot-goblins","Modrinth":"loot-goblins"},{"Id":6741,"Name":"","CurseForge":"skylib","Modrinth":"skylib"},{"Id":6742,"Name":"不要饿死3 (DontStarve3) - 暂停更新","CurseForge":"dt3","Modrinth":""},{"Id":6742,"Name":"不要饿死3 (DontStarve3)","CurseForge":"","Modrinth":"dt3"},{"Id":6743,"Name":"","CurseForge":"tbscclick","Modrinth":""},{"Id":6744,"Name":"现代电梯与扶梯 (Modern Elevators and Escalators)","CurseForge":"modern-elevators-and-escalators","Modrinth":"modern-elevators-and-escalators"},{"Id":6746,"Name":"","CurseForge":"extra-inventory","Modrinth":""},{"Id":6747,"Name":"","CurseForge":"chroma-concrete","Modrinth":""},{"Id":6748,"Name":"","CurseForge":"dracovita-delight-a-farmers-delight-add-on","Modrinth":""},{"Id":6749,"Name":"戈伯乐事 (Gobber Delight)","CurseForge":"gobber-delight-a-farmers-delight-add-on","Modrinth":""},{"Id":6752,"Name":"灭 (Extinguish)","CurseForge":"extinguish-by-uss_shenzhou","Modrinth":""},{"Id":6753,"Name":"生物群系改造 (Biome Makeover)","CurseForge":"biome-makeover-forge","Modrinth":"biome-makeover"},{"Id":6753,"Name":"生物群系改造 (Biome Makeover)","CurseForge":"biome-makeover","Modrinth":""},{"Id":6754,"Name":"","CurseForge":"throwable-blocks","Modrinth":""},{"Id":6755,"Name":"古代战争3 (Ancient Warfare 3)","CurseForge":"ancient-warfare-3","Modrinth":"ancient-warfare"},{"Id":6756,"Name":"禁用聊天举报 (No Chat Reports)","CurseForge":"no-chat-reports","Modrinth":"no-chat-reports"},{"Id":6757,"Name":"","CurseForge":"valleycraft","Modrinth":"valleycraft"},{"Id":6758,"Name":"","CurseForge":"no-xp-bar","Modrinth":""},{"Id":6759,"Name":"","CurseForge":"towers-of-the-wild-additions","Modrinth":"towers-of-the-wild-additions"},{"Id":6760,"Name":"想象界 (World of Pure Imagination)","CurseForge":"world-of-pure-imagination","Modrinth":""},{"Id":6761,"Name":"","CurseForge":"connectivity","Modrinth":""},{"Id":6762,"Name":"","CurseForge":"more-useful-villagers","Modrinth":""},{"Id":6764,"Name":"符号聊天 (Symbol Chat)","CurseForge":"","Modrinth":"symbol-chat"},{"Id":6765,"Name":"","CurseForge":"","Modrinth":"forcegl20"},{"Id":6766,"Name":"","CurseForge":"hyle","Modrinth":""},{"Id":6768,"Name":"","CurseForge":"advanced-solar-panels-patcher","Modrinth":""},{"Id":6769,"Name":"没有配方书重制版 (No Recipe Book Reborn)","CurseForge":"no-recipe-book-reborn","Modrinth":"norecipebookreborn"},{"Id":6772,"Name":"","CurseForge":"shulker-tooltip","Modrinth":"shulker-tooltip"},{"Id":6776,"Name":"","CurseForge":"midnightlib","Modrinth":"midnightlib"},{"Id":6778,"Name":"","CurseForge":"just-backpacks","Modrinth":""},{"Id":6779,"Name":"","CurseForge":"doubledoors","Modrinth":""},{"Id":6780,"Name":"","CurseForge":"","Modrinth":"mod-remapping-api"},{"Id":6781,"Name":"","CurseForge":"tic-tooltips","Modrinth":""},{"Id":6782,"Name":"","CurseForge":"ydms-wizarding-world-of-harry-potter","Modrinth":""},{"Id":6783,"Name":"","CurseForge":"lucraft-id-extender","Modrinth":""},{"Id":6784,"Name":"","CurseForge":"modern-flat-colored-blocks","Modrinth":""},{"Id":6787,"Name":"","CurseForge":"flat-bedrock","Modrinth":"flat-bedrock"},{"Id":6789,"Name":"合成辅助非官方版 (Crafting Tweaks Unofficial)","CurseForge":"dans-crafting-tweaks","Modrinth":""},{"Id":6790,"Name":"手杖 (Handle Cane)","CurseForge":"handle-cane","Modrinth":""},{"Id":6792,"Name":"MEGA存储单元 (MEGA Cells)","CurseForge":"mega-cells","Modrinth":"mega"},{"Id":6793,"Name":"","CurseForge":"structory","Modrinth":""},{"Id":6794,"Name":"附魔等级语言补丁 - 配置扩展 (EnchLevel-LangPatch Config IV)","CurseForge":"enchlevel-langpatch-config2","Modrinth":""},{"Id":6795,"Name":"瞬间统一+ (InstantUnify+)","CurseForge":"instant-unify","Modrinth":""},{"Id":6796,"Name":"","CurseForge":"sneaky-farts","Modrinth":""},{"Id":6797,"Name":"","CurseForge":"just-enough-recipe-integrations","Modrinth":"jeri"},{"Id":6798,"Name":"","CurseForge":"hanami","Modrinth":""},{"Id":6799,"Name":"","CurseForge":"is-a-mod-by-vazkii","Modrinth":""},{"Id":6800,"Name":"输入修正 (InputFix)","CurseForge":"inputfix","Modrinth":""},{"Id":6801,"Name":"","CurseForge":"inventory-tabs-updated","Modrinth":"inventory-tabs-updated"},{"Id":6802,"Name":"","CurseForge":"ez-mod-lib","Modrinth":"ezmodlib"},{"Id":6803,"Name":"","CurseForge":"armor-toughness-bar-updated","Modrinth":""},{"Id":6804,"Name":"","CurseForge":"colorful-health-bar-updated","Modrinth":""},{"Id":6806,"Name":"","CurseForge":"wizardry-necromancers-delight","Modrinth":""},{"Id":6807,"Name":"","CurseForge":"wizardryutils","Modrinth":""},{"Id":6808,"Name":"","CurseForge":"xp-orb-clump","Modrinth":""},{"Id":6809,"Name":"","CurseForge":"inventory-weight","Modrinth":""},{"Id":6810,"Name":"","CurseForge":"time-reverse","Modrinth":""},{"Id":6811,"Name":"下界遗泪 (NetherTears)","CurseForge":"nether-tears","Modrinth":""},{"Id":6814,"Name":"","CurseForge":"safaricraft","Modrinth":""},{"Id":6815,"Name":"应用能源:植物魔法附属 (Applied Botanics Addon)","CurseForge":"applied-botanics-addon","Modrinth":"applied-botanics"},{"Id":6816,"Name":"","CurseForge":"overloaded-armor-bar-updated","Modrinth":""},{"Id":6817,"Name":"","CurseForge":"delightful","Modrinth":"delightful"},{"Id":6818,"Name":"","CurseForge":"wizardry-tales","Modrinth":""},{"Id":6820,"Name":"驯兽重生 (TamedRespawn)","CurseForge":"tamedrespawn","Modrinth":""},{"Id":6822,"Name":"饺子乐事 (Dumplings Delight)","CurseForge":"dumplings-delight","Modrinth":"dumplings-delight"},{"Id":6823,"Name":"","CurseForge":"thermal_extra","Modrinth":"thermal-extra"},{"Id":6824,"Name":"下界空岛 (Nether Sky Block)","CurseForge":"nether-sky-block","Modrinth":"nether-sky-block"},{"Id":6825,"Name":"","CurseForge":"arte-magicum","Modrinth":""},{"Id":6827,"Name":"海洋搅拌机 (OceanBlender)","CurseForge":"ocean-blender","Modrinth":"ocean-blender"},{"Id":6828,"Name":"","CurseForge":"buildcraft-fluxified","Modrinth":""},{"Id":6829,"Name":"饮酒作乐 (Brewin' And Chewin')","CurseForge":"brewin-and-chewin","Modrinth":"brewin-and-chewin"},{"Id":6830,"Name":"","CurseForge":"infinite-source-of-water","Modrinth":"infinite-source-of-water"},{"Id":6831,"Name":"","CurseForge":"dramatic-doors","Modrinth":"dramatic-doors"},{"Id":6832,"Name":"","CurseForge":"recipe-gui","Modrinth":""},{"Id":6833,"Name":"","CurseForge":"autotechno","Modrinth":"autotechno"},{"Id":6834,"Name":"","CurseForge":"villager-hats-mod","Modrinth":"villager-hats"},{"Id":6835,"Name":"自定义伤害粒子 (Custom Damage Particles)","CurseForge":"custom-damage-particles","Modrinth":"custom-damage-particles"},{"Id":6836,"Name":"AEI物品管理器 (Always Enough Items)","CurseForge":"","Modrinth":"aei"},{"Id":6837,"Name":"","CurseForge":"cyan-warrior-swords-mod","Modrinth":"cyan-warrior-swords-mod"},{"Id":6838,"Name":"","CurseForge":"plant-in-a-jar","Modrinth":"plant-in-a-jar"},{"Id":6839,"Name":"","CurseForge":"solid-mobs","Modrinth":"solid_mobs"},{"Id":6840,"Name":"自然主义 (Naturalist)","CurseForge":"naturalist","Modrinth":"naturalist"},{"Id":6841,"Name":"环三亚甲基三硝胺 (Cyclotrimethylenetrinitramine)","CurseForge":"c3h6n6o6","Modrinth":"c3h6n6o6"},{"Id":6842,"Name":"共享原理图 (Syncmatica)","CurseForge":"syncmatica","Modrinth":"syncmatica"},{"Id":6843,"Name":"","CurseForge":"zephs-hammers","Modrinth":"zephshammers"},{"Id":6844,"Name":"","CurseForge":"zephs-excavators","Modrinth":"zephsexcavators"},{"Id":6845,"Name":"","CurseForge":"","Modrinth":"delayedreports"},{"Id":6846,"Name":"","CurseForge":"","Modrinth":"technomodel"},{"Id":6847,"Name":"","CurseForge":"cat-herder","Modrinth":""},{"Id":6848,"Name":"","CurseForge":"command-creative-tab","Modrinth":""},{"Id":6849,"Name":"","CurseForge":"umu-backpack","Modrinth":"umu-backpack"},{"Id":6851,"Name":"","CurseForge":"short-stacks","Modrinth":""},{"Id":6852,"Name":"流畅加载重置版 (Smooth Boot Reloaded)","CurseForge":"smooth-boot-reloaded","Modrinth":"smooth-boot-reloaded"},{"Id":6853,"Name":"","CurseForge":"stone-crafting-table","Modrinth":""},{"Id":6854,"Name":"","CurseForge":"lodestonelib","Modrinth":"lodestonelib"},{"Id":6855,"Name":"","CurseForge":"witherturnsskeletons","Modrinth":"witherturnsskeletons"},{"Id":6856,"Name":"","CurseForge":"twilight-forest-the-lost-blocks","Modrinth":"twilight-forest-the-lost-blocks"},{"Id":6857,"Name":"","CurseForge":"the-nexus-deep-dark-dimension","Modrinth":""},{"Id":6858,"Name":"JEI绘画预览 (Just Enough Painting Previews)","CurseForge":"jepp","Modrinth":""},{"Id":6860,"Name":"","CurseForge":"create-curios","Modrinth":""},{"Id":6861,"Name":"","CurseForge":"ctm-refabricated","Modrinth":""},{"Id":6861,"Name":"","CurseForge":"","Modrinth":"ctm-refabricated"},{"Id":6862,"Name":"可放置南瓜派 (Placeable Pumpkin Pie)","CurseForge":"placeable-pumpkin-pie","Modrinth":""},{"Id":6863,"Name":"白桦林更新 (Birch Forest Upgrade)","CurseForge":"birch-forest-upgrade","Modrinth":""},{"Id":6864,"Name":"","CurseForge":"ok-zoomer-forge","Modrinth":""},{"Id":6865,"Name":"科洛的工具库 (Koro Utils Lib)","CurseForge":"","Modrinth":"koro-utils-lib"},{"Id":6866,"Name":"","CurseForge":"cosmicnpcs","Modrinth":""},{"Id":6867,"Name":"","CurseForge":"skinrestorer","Modrinth":"skinrestorer"},{"Id":6868,"Name":"","CurseForge":"hitchhike","Modrinth":""},{"Id":6869,"Name":"","CurseForge":"sonic-deflect","Modrinth":"sonic-deflect"},{"Id":6870,"Name":"","CurseForge":"mpkmod","Modrinth":""},{"Id":6871,"Name":"","CurseForge":"supernatural-creatures","Modrinth":""},{"Id":6872,"Name":"","CurseForge":"food-rebalanced","Modrinth":""},{"Id":6873,"Name":"Psi 非官方版 (Psi Unofficial)","CurseForge":"psi-unofficial","Modrinth":""},{"Id":6874,"Name":"","CurseForge":"time-core","Modrinth":"time-core"},{"Id":6875,"Name":"可搜索容器:重遍历 (Searchable Containers: Retraversal)","CurseForge":"","Modrinth":"searchable-containers-retraversal"},{"Id":6876,"Name":"","CurseForge":"unusual-squad-into-the-void","Modrinth":"intothevoid"},{"Id":6877,"Name":"","CurseForge":"create-chromaticreturn","Modrinth":"create-chromatic-return"},{"Id":6878,"Name":"电动工具 (PowerTool)","CurseForge":"powertool","Modrinth":"powertool"},{"Id":6879,"Name":"键盘映射 (Keymap)","CurseForge":"keymap","Modrinth":"keymap"},{"Id":6880,"Name":"","CurseForge":"actually-useful-stonecutter","Modrinth":"actually-useful-stonecutter"},{"Id":6881,"Name":"物品物理掉落:轻量版 - Fabric (ItemPhysic Lite - Fabric)","CurseForge":"itemphysic-lite-fabric","Modrinth":""},{"Id":6882,"Name":"","CurseForge":"forgotten-treasures","Modrinth":""},{"Id":6883,"Name":"","CurseForge":"player-health-indicators","Modrinth":"playerhealthindicators"},{"Id":6884,"Name":"陈列柜 (Display Case)","CurseForge":"displaycase","Modrinth":"displaycase"},{"Id":6885,"Name":"","CurseForge":"auto-look","Modrinth":""},{"Id":6886,"Name":"盖亚魔典 (Grimoire of Gaia)","CurseForge":"grimoire-of-gaia","Modrinth":"grimoire-of-gaia"},{"Id":6887,"Name":"FTB 玻璃罐 (FTB Jar Mod)","CurseForge":"ftb-jar-mod-forge","Modrinth":""},{"Id":6888,"Name":"维度绘画 (Dimensional Paintings)","CurseForge":"dimensional-paintings","Modrinth":"dimensional-paintings"},{"Id":6889,"Name":"物品回收机 (Item Recycler)","CurseForge":"item-recycler","Modrinth":""},{"Id":6890,"Name":"","CurseForge":"linsapi","Modrinth":"linsapi"},{"Id":6891,"Name":"标题切换器 (TitleChanger)","CurseForge":"titlechanger","Modrinth":"mctitlechanger"},{"Id":6892,"Name":"","CurseForge":"adobe-blocks-2","Modrinth":""},{"Id":6893,"Name":"","CurseForge":"menacing-monsters","Modrinth":""},{"Id":6894,"Name":"","CurseForge":"packing-tape","Modrinth":""},{"Id":6895,"Name":"","CurseForge":"nyctophobia-forge","Modrinth":"nyctophobia"},{"Id":6895,"Name":"","CurseForge":"the-graveyard-biomes-fabric","Modrinth":""},{"Id":6897,"Name":"","CurseForge":"cammies-minecart-tweaks","Modrinth":"cammies-minecart-tweaks"},{"Id":6898,"Name":"","CurseForge":"renderlib","Modrinth":"renderlib"},{"Id":6899,"Name":"","CurseForge":"nothirium","Modrinth":"nothirium"},{"Id":6900,"Name":"","CurseForge":"advancedchatbox","Modrinth":"AdvancedChatBox"},{"Id":6901,"Name":"","CurseForge":"quick-pick","Modrinth":""},{"Id":6902,"Name":"","CurseForge":"advancements-debug","Modrinth":"advancements-debug"},{"Id":6903,"Name":"","CurseForge":"randomium-ore","Modrinth":"randomium-ore"},{"Id":6904,"Name":"","CurseForge":"degradeexplodedblocks","Modrinth":""},{"Id":6906,"Name":"","CurseForge":"zeras-scps","Modrinth":""},{"Id":6907,"Name":"","CurseForge":"enderite-lieonlion","Modrinth":"enderite-lieonlion"},{"Id":6908,"Name":"","CurseForge":"advancedchatfilters","Modrinth":"AdvancedChatFilters"},{"Id":6909,"Name":"","CurseForge":"advancedchatmacros","Modrinth":"AdvancedChatMacros"},{"Id":6910,"Name":"","CurseForge":"aof-emotes","Modrinth":""},{"Id":6911,"Name":"","CurseForge":"grasslessdirtbackport","Modrinth":""},{"Id":6912,"Name":"","CurseForge":"dazzle-2","Modrinth":"dazzle-2"},{"Id":6913,"Name":"","CurseForge":"smaller-nether-portals","Modrinth":"smaller-nether-portals"},{"Id":6913,"Name":"","CurseForge":"smaller-nether-portals-fabric","Modrinth":""},{"Id":6914,"Name":"","CurseForge":"basic-aiots","Modrinth":"basic-aiots"},{"Id":6915,"Name":"精灵球 (PokeBall)","CurseForge":"pokeball","Modrinth":"pokeball"},{"Id":6917,"Name":"","CurseForge":"gravitychanger","Modrinth":"gravitychanger"},{"Id":6918,"Name":"","CurseForge":"building-wands","Modrinth":"building-wands"},{"Id":6919,"Name":"","CurseForge":"advancedchat","Modrinth":"AdvancedChat"},{"Id":6920,"Name":"","CurseForge":"aiots-expanded-fabric","Modrinth":""},{"Id":6921,"Name":"","CurseForge":"moremcmeta","Modrinth":"moremcmeta"},{"Id":6921,"Name":"","CurseForge":"moremcmeta-fabric","Modrinth":""},{"Id":6922,"Name":"","CurseForge":"starry-skies","Modrinth":"starryskies"},{"Id":6923,"Name":"","CurseForge":"flesh2leather-forge","Modrinth":""},{"Id":6923,"Name":"","CurseForge":"flesh2leather-fabric","Modrinth":""},{"Id":6924,"Name":"","CurseForge":"fall-damage-indicator","Modrinth":""},{"Id":6925,"Name":"","CurseForge":"aww-man-achievement-mod","Modrinth":""},{"Id":6926,"Name":"灭火器 (Fire Extinguisher)","CurseForge":"fire-extinguisher","Modrinth":"fire-extinguisher"},{"Id":6927,"Name":"","CurseForge":"farmers-knives","Modrinth":"farmers-knives"},{"Id":6928,"Name":"","CurseForge":"sullys-mod","Modrinth":"sullysmod"},{"Id":6929,"Name":"","CurseForge":"magicaldecorations","Modrinth":""},{"Id":6930,"Name":"","CurseForge":"moss-and-monsters","Modrinth":""},{"Id":6931,"Name":"","CurseForge":"detonation","Modrinth":""},{"Id":6932,"Name":"RPG装备耐久 (RPG Durability)","CurseForge":"","Modrinth":"rpgdurability"},{"Id":6933,"Name":"","CurseForge":"coal-processing-machine","Modrinth":""},{"Id":6934,"Name":"绘画之乐 (Joy of Painting)","CurseForge":"joy-of-painting","Modrinth":"joy-of-painting"},{"Id":6935,"Name":"","CurseForge":"warden-loot-forge","Modrinth":""},{"Id":6935,"Name":"","CurseForge":"warden-loot","Modrinth":""},{"Id":6936,"Name":"维克的现代战争补充合成表 (Crafting Recipes of Vic's Modern Warfare Mod)","CurseForge":"","Modrinth":"vmwcr"},{"Id":6939,"Name":"高清修复检测 (OptiFine Checker)","CurseForge":"optifine-checker","Modrinth":"optifine-checker"},{"Id":6940,"Name":"","CurseForge":"paintings","Modrinth":"paintings++"},{"Id":6941,"Name":"","CurseForge":"builtin-servers","Modrinth":"builtin-servers"},{"Id":6942,"Name":"提炼机 (Extractinator)","CurseForge":"extractinator","Modrinth":"extractinator"},{"Id":6943,"Name":"","CurseForge":"choicetheorems-overhauled-village","Modrinth":"ct-overhaul-village"},{"Id":6944,"Name":"","CurseForge":"blast","Modrinth":"blast"},{"Id":6945,"Name":"","CurseForge":"no-indium","Modrinth":"no-indium"},{"Id":6946,"Name":"","CurseForge":"windsweptmod","Modrinth":"windswept"},{"Id":6947,"Name":"沉浸画框 (Immersive Paintings)","CurseForge":"immersive-paintings","Modrinth":"immersive-paintings"},{"Id":6948,"Name":"","CurseForge":"melon-wireless-redstone","Modrinth":"wireless-redstone"},{"Id":6949,"Name":"","CurseForge":"automated-crafting","Modrinth":"automated-crafting"},{"Id":6950,"Name":"","CurseForge":"op-tab","Modrinth":"optab"},{"Id":6951,"Name":"简易猪灵 (Easy Piglins)","CurseForge":"easy-piglins","Modrinth":"easy-piglins"},{"Id":6952,"Name":"","CurseForge":"waterlogged-redstone","Modrinth":""},{"Id":6953,"Name":"","CurseForge":"prehistoric-flora-integration","Modrinth":""},{"Id":6954,"Name":"","CurseForge":"better-bad-omen","Modrinth":""},{"Id":6955,"Name":"","CurseForge":"can-you-trash-it","Modrinth":""},{"Id":6956,"Name":"作物盛景:巧克力工坊 (Croptopia's Chocolaterie)","CurseForge":"croptopias-chocolaterie-forge","Modrinth":"croptopia-chocolaterie"},{"Id":6956,"Name":"作物盛景:巧克力工坊 (Croptopia's Chocolaterie)","CurseForge":"croptopias-chocolaterie-fabric","Modrinth":""},{"Id":6957,"Name":"爬行 (Crawl)","CurseForge":"crawl","Modrinth":"crawl"},{"Id":6958,"Name":"","CurseForge":"chisel-reborn","Modrinth":"chisel-reborn"},{"Id":6959,"Name":"","CurseForge":"roost-ultimate","Modrinth":"roostultimate"},{"Id":6960,"Name":"","CurseForge":"cammies-wearable-backpacks","Modrinth":"cammies-wearable-backpacks"},{"Id":6962,"Name":"","CurseForge":"parrying","Modrinth":""},{"Id":6963,"Name":"","CurseForge":"back-in-slime-slime-blocks-for-1-7","Modrinth":""},{"Id":6965,"Name":"合金 / 机械动力:合金 (Alloyed / Create: Alloyed)","CurseForge":"create-alloyed","Modrinth":"create-alloyed"},{"Id":6966,"Name":"郁郁葱葱 (Verdure)","CurseForge":"verdure","Modrinth":"verdure"},{"Id":6969,"Name":"","CurseForge":"the-ori-mod","Modrinth":""},{"Id":6970,"Name":"","CurseForge":"coxinha-utilities","Modrinth":"coxinha-utilities"},{"Id":6972,"Name":"","CurseForge":"dragon-fire-mod","Modrinth":""},{"Id":6976,"Name":"沙子矿石 (Sandy Ores)","CurseForge":"sandy-ores","Modrinth":""},{"Id":6977,"Name":"","CurseForge":"rainbowify","Modrinth":"rainbowify"},{"Id":6978,"Name":"请安静 (Be Quiet Please)","CurseForge":"be-quiet-please","Modrinth":""},{"Id":6979,"Name":"史前复生 (Prehistoric Revival - A Prehistoric Fauna Add-On)","CurseForge":"prehistoric-revival-a-prehistoric-fauna-add-on","Modrinth":"prehistoric-revival-a-prehistoric-fauna-add-on"},{"Id":6980,"Name":"","CurseForge":"had-enough-characters","Modrinth":""},{"Id":6981,"Name":"","CurseForge":"medieval-origins","Modrinth":""},{"Id":6984,"Name":"鞘翅/胸甲切换 (Elytra/Chestplate Swapper)","CurseForge":"elytra-chestplate-swapper","Modrinth":"elytra-chestplate-swapper"},{"Id":6985,"Name":"","CurseForge":"the-ends-flora","Modrinth":""},{"Id":6986,"Name":"","CurseForge":"apollos-additional-structures","Modrinth":""},{"Id":6988,"Name":"","CurseForge":"chimes","Modrinth":"chimes"},{"Id":6990,"Name":"","CurseForge":"endless-ocean-aquatic-adventures","Modrinth":""},{"Id":6991,"Name":"","CurseForge":"ic2-no","Modrinth":""},{"Id":6993,"Name":"起源++ (Origins++)","CurseForge":"origins-plus-plus","Modrinth":"origins-plus-plus"},{"Id":6995,"Name":"我的世界:地下城盔甲 (MC Dungeons Armors)","CurseForge":"mcda","Modrinth":"mcda"},{"Id":6997,"Name":"","CurseForge":"sun-burns","Modrinth":""},{"Id":6998,"Name":"","CurseForge":"battle-tools","Modrinth":""},{"Id":6999,"Name":"","CurseForge":"jobsplus","Modrinth":"jobsplus"},{"Id":7000,"Name":"","CurseForge":"towns-and-towers","Modrinth":"towns-and-towers"},{"Id":7001,"Name":"","CurseForge":"drg-flares-forge","Modrinth":""},{"Id":7001,"Name":"","CurseForge":"drg-flares","Modrinth":""},{"Id":7002,"Name":"","CurseForge":"simple-uncrafting-table-fabric","Modrinth":"simple-uncrafting-table"},{"Id":7003,"Name":"","CurseForge":"caracal-mod","Modrinth":"caracal_mob"},{"Id":7004,"Name":"","CurseForge":"rough-tweaks-revamped","Modrinth":"rough-tweaks-revamped"},{"Id":7005,"Name":"","CurseForge":"the-wild-backport","Modrinth":"wildbackport"},{"Id":7006,"Name":"","CurseForge":"unvoted-shelved","Modrinth":"unvoted"},{"Id":7007,"Name":"","CurseForge":"yeos-mobs","Modrinth":""},{"Id":7008,"Name":"","CurseForge":"infohud","Modrinth":"infohud"},{"Id":7009,"Name":"春日主义 (Haruhiism)","CurseForge":"haruhiism","Modrinth":""},{"Id":7010,"Name":"咖啡相伴/天堂之路 (WithCoffee)","CurseForge":"withcoffee","Modrinth":""},{"Id":7011,"Name":"","CurseForge":"emeraldstuff","Modrinth":""},{"Id":7012,"Name":"","CurseForge":"grass-slabs-carpets-stairs","Modrinth":""},{"Id":7013,"Name":"不冲突 (Not Mutually Exclusive)","CurseForge":"not-mutually-exclusive","Modrinth":"not-mutually-exclusive"},{"Id":7014,"Name":"","CurseForge":"builders-delight-forge","Modrinth":"builders-delight"},{"Id":7015,"Name":"","CurseForge":"miners-minerals","Modrinth":"miners-minerals"},{"Id":7016,"Name":"七日杀 (7 Days to Mine)","CurseForge":"days-to-mine","Modrinth":"7-days-to-mine"},{"Id":7017,"Name":"","CurseForge":"pieces-of-ore","Modrinth":""},{"Id":7019,"Name":"","CurseForge":"","Modrinth":"fix-keyboard-on-linux"},{"Id":7020,"Name":"","CurseForge":"lockdown-additions","Modrinth":""},{"Id":7021,"Name":"","CurseForge":"scp-lockdown-extras","Modrinth":""},{"Id":7022,"Name":"","CurseForge":"player-tabs","Modrinth":""},{"Id":7023,"Name":"","CurseForge":"cie","Modrinth":""},{"Id":7024,"Name":"","CurseForge":"easy-mob-farm","Modrinth":"easy-mob-farm"},{"Id":7025,"Name":"","CurseForge":"material-elements","Modrinth":""},{"Id":7026,"Name":"","CurseForge":"raised-clouds","Modrinth":"raised-clouds"},{"Id":7027,"Name":"音乐触发器 (Music Triggers)","CurseForge":"music-triggers","Modrinth":"music-triggers"},{"Id":7028,"Name":"","CurseForge":"sneaky-screens","Modrinth":"sneaky-screens"},{"Id":7029,"Name":"","CurseForge":"inmis","Modrinth":"inmis"},{"Id":7029,"Name":"","CurseForge":"inmis-forge","Modrinth":""},{"Id":7032,"Name":"","CurseForge":"rechiseled","Modrinth":"rechiseled"},{"Id":7033,"Name":"","CurseForge":"durability-tooltip","Modrinth":"durability-tooltip"},{"Id":7034,"Name":"井然有矿 - 旧版 (Oreganized Mod)","CurseForge":"oreganized-mod","Modrinth":""},{"Id":7034,"Name":"井然有矿 (Oreganized Mod) - 2.0+ 版","CurseForge":"oreganized","Modrinth":""},{"Id":7034,"Name":"井然有矿 (Oreganized Mod)","CurseForge":"","Modrinth":"oreganized"},{"Id":7035,"Name":"","CurseForge":"riding-utilities","Modrinth":""},{"Id":7036,"Name":"","CurseForge":"compact-help-command","Modrinth":"compact-help-command"},{"Id":7036,"Name":"","CurseForge":"compact-help-command-fabric","Modrinth":""},{"Id":7038,"Name":"矿工之肺 (Miner's Lung)","CurseForge":"miners-lung","Modrinth":""},{"Id":7039,"Name":"绿色植物🌿 (Greenery🌿)","CurseForge":"greenery","Modrinth":"greenery"},{"Id":7040,"Name":"屠夫乐事 (Butcher's Delight)","CurseForge":"butchers-delight","Modrinth":"butchers-delight"},{"Id":7041,"Name":"","CurseForge":"large-meals-an-add-on-for-farmers-delight","Modrinth":""},{"Id":7042,"Name":"","CurseForge":"explorers-delight","Modrinth":"explorers-delight"},{"Id":7043,"Name":"","CurseForge":"the-irregular-chef","Modrinth":"irregular-chef"},{"Id":7044,"Name":"","CurseForge":"compat-o-plenty","Modrinth":"compatoplenty"},{"Id":7045,"Name":"雪猪 (Snow Pig)","CurseForge":"snow-pig","Modrinth":"snowpig"},{"Id":7045,"Name":"雪猪 (Snow Pig)","CurseForge":"snow-pig-fabric","Modrinth":"snowpig-fabric"},{"Id":7046,"Name":"","CurseForge":"wandering-collector","Modrinth":"wandering-collector"},{"Id":7050,"Name":"头颅工艺 (Skull Craft)","CurseForge":"skull-craft","Modrinth":"skull-craft"},{"Id":7051,"Name":"","CurseForge":"re-chiseled-compat","Modrinth":""},{"Id":7052,"Name":"","CurseForge":"auto-leveling","Modrinth":""},{"Id":7053,"Name":"","CurseForge":"packed-inventory","Modrinth":"packed-inventory"},{"Id":7055,"Name":"","CurseForge":"crafting-on-a-stick","Modrinth":"crafting-on-a-stick"},{"Id":7056,"Name":"","CurseForge":"endlessids","Modrinth":"endlessids"},{"Id":7058,"Name":"压缩空间 Fabric (Compact Machines - Fabric)","CurseForge":"compact-machines-fabric","Modrinth":"cpm-fabric"},{"Id":7059,"Name":"","CurseForge":"cycle-paintings","Modrinth":"cycle-paintings"},{"Id":7059,"Name":"","CurseForge":"cycle-paintings-fabric","Modrinth":""},{"Id":7061,"Name":"","CurseForge":"fire-spread-tweaks","Modrinth":"fire-spread-tweaks"},{"Id":7061,"Name":"","CurseForge":"fire-spread-tweaks-fabric","Modrinth":""},{"Id":7062,"Name":"","CurseForge":"anger-management","Modrinth":""},{"Id":7063,"Name":"","CurseForge":"easy-elytra-takeoff","Modrinth":"easy-elytra-takeoff"},{"Id":7063,"Name":"","CurseForge":"easy-elytra-takeoff-fabric","Modrinth":""},{"Id":7064,"Name":"","CurseForge":"stack-refill","Modrinth":"stack-refill"},{"Id":7064,"Name":"","CurseForge":"stack-refill-fabric","Modrinth":""},{"Id":7065,"Name":"轻食物语 (Light Meals)","CurseForge":"light-meals","Modrinth":"light-meals"},{"Id":7066,"Name":"失而钓得 (Lost and Fished)","CurseForge":"lost-and-fished","Modrinth":"lost-fished"},{"Id":7067,"Name":"自定义背景 (Custom Backgrounds)","CurseForge":"custom-backgrounds","Modrinth":""},{"Id":7068,"Name":"YDM的悦灵 (YDM's Allay)","CurseForge":"ydms-allay","Modrinth":"ydms-allay"},{"Id":7069,"Name":"","CurseForge":"starmaker","Modrinth":"starmaker"},{"Id":7070,"Name":"对不起,我们没有充足的资金为您提供一只末影龙 (Sorry We Don't Have Enough Funds To Provide You With An Ender Dragon)","CurseForge":"","Modrinth":"swdheftpywaed"},{"Id":7071,"Name":"","CurseForge":"simply-snow","Modrinth":""},{"Id":7072,"Name":"","CurseForge":"areas","Modrinth":"areas"},{"Id":7072,"Name":"","CurseForge":"areas-fabric","Modrinth":""},{"Id":7073,"Name":"","CurseForge":"emberroot-zoo","Modrinth":""},{"Id":7074,"Name":"","CurseForge":"mctimeextendsfabric","Modrinth":""},{"Id":7075,"Name":"","CurseForge":"l2library","Modrinth":"l2library"},{"Id":7076,"Name":"","CurseForge":"unstructured","Modrinth":""},{"Id":7077,"Name":"","CurseForge":"colorful-cut","Modrinth":""},{"Id":7078,"Name":"","CurseForge":"","Modrinth":"fake-floader"},{"Id":7079,"Name":"","CurseForge":"environmental-materials","Modrinth":"environmental-materials"},{"Id":7080,"Name":"","CurseForge":"horse-tweaks","Modrinth":""},{"Id":7081,"Name":"自动化工作站 (Auto Workstations)","CurseForge":"auto-workstations-fabric","Modrinth":"auto-workstations"},{"Id":7082,"Name":"莱特兰-背包 (L2 Backpack)","CurseForge":"l2-backpack","Modrinth":"l2backpack"},{"Id":7084,"Name":"","CurseForge":"","Modrinth":"mbp"},{"Id":7085,"Name":"","CurseForge":"capybara-uam","Modrinth":""},{"Id":7085,"Name":"","CurseForge":"unnamed-animal-mod-capybara-only","Modrinth":""},{"Id":7086,"Name":"","CurseForge":"just-enough-petroleum","Modrinth":""},{"Id":7087,"Name":"紫晶钻! (Diamethysts!)","CurseForge":"diamethysts","Modrinth":"diamethysts!"},{"Id":7088,"Name":"","CurseForge":"twigs","Modrinth":""},{"Id":7088,"Name":"Twigs - 停更","CurseForge":"","Modrinth":"twigs"},{"Id":7093,"Name":"","CurseForge":"fplib","Modrinth":"fplib"},{"Id":7094,"Name":"","CurseForge":"spongemixins","Modrinth":""},{"Id":7094,"Name":"","CurseForge":"","Modrinth":"spongemixin1710"},{"Id":7095,"Name":"","CurseForge":"nock-enough-arrows","Modrinth":""},{"Id":7096,"Name":"泛用兼容:木材 (Every Compat (Wood Good))","CurseForge":"every-compat","Modrinth":"every-compat"},{"Id":7097,"Name":"","CurseForge":"offline-mode","Modrinth":""},{"Id":7098,"Name":"","CurseForge":"ghastly-wail","Modrinth":"ghastly-wail"},{"Id":7099,"Name":"沉浸式武器 (Immersive Weapons)","CurseForge":"immersive-weapons#c71","Modrinth":"immersive-weapons"},{"Id":7101,"Name":"","CurseForge":"clear-skies","Modrinth":"clear-skies"},{"Id":7103,"Name":"","CurseForge":"ShretNether","Modrinth":""},{"Id":7104,"Name":"","CurseForge":"pling","Modrinth":"pling"},{"Id":7105,"Name":"","CurseForge":"justthetips","Modrinth":""},{"Id":7107,"Name":"NEI物品管理器非官方版 (NotEnoughItems Unofficial)","CurseForge":"notenoughitems-gtnh","Modrinth":"notenoughitems-unofficial"},{"Id":7109,"Name":"","CurseForge":"sketchbook-attributes","Modrinth":""},{"Id":7110,"Name":"","CurseForge":"better-combat-by-daedelus","Modrinth":"better-combat"},{"Id":7110,"Name":"","CurseForge":"better-combat-backport","Modrinth":""},{"Id":7111,"Name":"自定义星星 (Custom Stars)","CurseForge":"custom-stars","Modrinth":""},{"Id":7113,"Name":"","CurseForge":"ice-and-fire-tweaker","Modrinth":"ice-and-fire-tweaker"},{"Id":7114,"Name":"","CurseForge":"soaring-clouds","Modrinth":""},{"Id":7115,"Name":"","CurseForge":"lapis-stays-in-the-enchanting-table","Modrinth":""},{"Id":7116,"Name":"","CurseForge":"goodall","Modrinth":""},{"Id":7117,"Name":"","CurseForge":"freecam-by-zergatul","Modrinth":""},{"Id":7119,"Name":"Macaw 的桥梁:你将去的生物群系附属 (Macaw's Bridges - Oh The Biomes You'll Go)","CurseForge":"macaws-bridges-oh-the-biomes-youll-go","Modrinth":""},{"Id":7119,"Name":"Macaw 的桥梁:你将去的生物群系附属 (Macaw's Bridges - Oh The Biomes You'll Go)","CurseForge":"macaws-byg-bwg","Modrinth":"macaws-byg-bwg"},{"Id":7119,"Name":"Macaw 的桥梁:你将去的生物群系附属 (Macaw's Bridges - Oh The Biomes You'll Go) - 原,","CurseForge":"","Modrinth":"macaws-bridges-oh-the-biomes-youll-go"},{"Id":7120,"Name":"Macaw 的栅栏与墙:你将去的生物群系附属 (Macaw's Fences - Oh The Biomes You'll Go)","CurseForge":"macaws-fences-oh-the-biomes-youll-go","Modrinth":"macaws-fences-oh-the-biomes-youll-go"},{"Id":7121,"Name":"","CurseForge":"alternate-current","Modrinth":"alternate-current"},{"Id":7122,"Name":"","CurseForge":"no-unused-chunks","Modrinth":"no-unused-chunks"},{"Id":7123,"Name":"","CurseForge":"no-fade","Modrinth":"no-fade"},{"Id":7124,"Name":"","CurseForge":"radioactive-universe","Modrinth":""},{"Id":7126,"Name":"","CurseForge":"completeconfig","Modrinth":"completeconfig"},{"Id":7127,"Name":"","CurseForge":"fixmyspawnr","Modrinth":"fixmyspawnr"},{"Id":7128,"Name":"莱特兰-古遗物 (L2 Artifacts)","CurseForge":"l2-artifacts","Modrinth":"l2artifacts"},{"Id":7129,"Name":"","CurseForge":"critters-and-companions","Modrinth":"critters-and-companions"},{"Id":7130,"Name":"","CurseForge":"memorytester","Modrinth":""},{"Id":7131,"Name":"","CurseForge":"colormatic","Modrinth":"colormatic"},{"Id":7133,"Name":"","CurseForge":"fogbox","Modrinth":"fogbox"},{"Id":7134,"Name":"","CurseForge":"","Modrinth":"hopper"},{"Id":7135,"Name":"","CurseForge":"lots-of-shields","Modrinth":""},{"Id":7136,"Name":"Mega的时间静止 (MegaTimeStopMod)","CurseForge":"timestopclock","Modrinth":""},{"Id":7137,"Name":"","CurseForge":"umu-little-maid","Modrinth":"umu-little-maid"},{"Id":7138,"Name":"战利品游戏 (Loot Games)","CurseForge":"loot-games","Modrinth":""},{"Id":7140,"Name":"YDM的蝎子 (YDM's Scorpions)","CurseForge":"ydms-scorpions","Modrinth":"ydms-scorpions"},{"Id":7141,"Name":"","CurseForge":"auto-reconnect","Modrinth":""},{"Id":7142,"Name":"","CurseForge":"text-damage-indicators","Modrinth":""},{"Id":7143,"Name":"","CurseForge":"recall","Modrinth":""},{"Id":7144,"Name":"","CurseForge":"monster-coin","Modrinth":""},{"Id":7145,"Name":"","CurseForge":"dotcoin-mod","Modrinth":"dot-coin-mod"},{"Id":7145,"Name":"","CurseForge":"dot-coin-mod-fabric","Modrinth":""},{"Id":7146,"Name":"超级土豆 (Super Potato)","CurseForge":"super-potato","Modrinth":""},{"Id":7147,"Name":"","CurseForge":"custom-fog","Modrinth":"custom-fog"},{"Id":7149,"Name":"","CurseForge":"oc-xnet-driver","Modrinth":""},{"Id":7153,"Name":"YDM的怒目怪 (YDM's Glare)","CurseForge":"ydms-glare","Modrinth":"ydms-glare"},{"Id":7154,"Name":"分茶 (Caupona)","CurseForge":"caupona","Modrinth":"caupona"},{"Id":7155,"Name":"YDM的冰术师 (YDM's Iceologer)","CurseForge":"ydms-iceologer","Modrinth":"ydms-iceologer"},{"Id":7156,"Name":"","CurseForge":"fabric-sculk-worm","Modrinth":""},{"Id":7157,"Name":"Apex 枪械工艺 (Apex Guns)","CurseForge":"apex-guns","Modrinth":""},{"Id":7160,"Name":"","CurseForge":"hwyla-addon-horse-info","Modrinth":""},{"Id":7161,"Name":"","CurseForge":"postal-pigeons","Modrinth":""},{"Id":7162,"Name":"","CurseForge":"swagoween","Modrinth":""},{"Id":7163,"Name":"","CurseForge":"no-lag-tickratechanger","Modrinth":"no-lag-tickratechanger"},{"Id":7164,"Name":"","CurseForge":"alcocraft-beer-and-stuff","Modrinth":""},{"Id":7165,"Name":"","CurseForge":"simplevillagers","Modrinth":"simplevillagers"},{"Id":7167,"Name":"","CurseForge":"autoreconnect","Modrinth":"autoreconnect"},{"Id":7168,"Name":"更好的战斗 (Twelvefold Better Combat)","CurseForge":"twelvefold-better-combat","Modrinth":"twelvefold-better-combat"},{"Id":7169,"Name":"","CurseForge":"dusk","Modrinth":""},{"Id":7170,"Name":"铜制工艺 (Copper Craft)","CurseForge":"copper-craft","Modrinth":""},{"Id":7171,"Name":"额外植物学重置版 (ExtraBotany2)","CurseForge":"extrabotany2","Modrinth":""},{"Id":7172,"Name":"","CurseForge":"terramine","Modrinth":"terramine"},{"Id":7173,"Name":"","CurseForge":"aeinfinitybooster","Modrinth":"aeinfinitybooster"},{"Id":7174,"Name":"","CurseForge":"endertech-infinity","Modrinth":"endertech-infinity"},{"Id":7175,"Name":"更多青蛙 (More Frogs)","CurseForge":"more-frogs-fabric","Modrinth":"morefrogs"},{"Id":7178,"Name":"机械动力:火炮 (Create Big Cannons)","CurseForge":"create-big-cannons","Modrinth":"create-big-cannons"},{"Id":7179,"Name":"","CurseForge":"fastanim","Modrinth":"fastanim"},{"Id":7180,"Name":"铷 · 扩展 (Embeddium (Rubidium) Extra)","CurseForge":"rubidium-extra","Modrinth":"rubidium-extra"},{"Id":7181,"Name":"更少的特性 (Less Features)","CurseForge":"less-feature","Modrinth":""},{"Id":7182,"Name":"","CurseForge":"mores-forge","Modrinth":"mores"},{"Id":7182,"Name":"","CurseForge":"mores-fabric","Modrinth":""},{"Id":7183,"Name":"","CurseForge":"tactical-fishing","Modrinth":"tactical-fishing"},{"Id":7184,"Name":"","CurseForge":"token-enchanter","Modrinth":"token-enchanter"},{"Id":7185,"Name":"IGI 信息扩展 (IGIExteneded)","CurseForge":"igiexteneded","Modrinth":""},{"Id":7187,"Name":"","CurseForge":"landofsignals","Modrinth":"landofsignals"},{"Id":7188,"Name":"","CurseForge":"lootbeams","Modrinth":"lootbeams"},{"Id":7190,"Name":"","CurseForge":"stepupnext","Modrinth":"stepup"},{"Id":7191,"Name":"简易烧烤 (Simple BBQ)","CurseForge":"simple-bbq","Modrinth":"simple-bbq"},{"Id":7192,"Name":"","CurseForge":"mythic-mounts-forge","Modrinth":"mythic-mounts"},{"Id":7192,"Name":"","CurseForge":"mythic-mounts","Modrinth":""},{"Id":7193,"Name":"生活调味料:红薯版 (Spice of Life: Sweet Potato Edition)","CurseForge":"spice-of-life-sweet-potato-edition","Modrinth":""},{"Id":7194,"Name":"真实城市建设模组 (Reality City Construction)","CurseForge":"","Modrinth":"reality-city-construction"},{"Id":7195,"Name":"","CurseForge":"sneak-through-berries","Modrinth":"sneak-through-berries"},{"Id":7196,"Name":"冬季改革 (Winter Overhaul)","CurseForge":"winter-overhaul","Modrinth":"winter-overhaul"},{"Id":7197,"Name":"离线皮肤 (OfflineSkins)","CurseForge":"offlineskins","Modrinth":""},{"Id":7197,"Name":"离线皮肤 (OfflineSkins)","CurseForge":"offlineskins-fabric","Modrinth":""},{"Id":7199,"Name":"灯纟火 (Xdi8Aho Mod)","CurseForge":"","Modrinth":"xdi8aho-mod"},{"Id":7201,"Name":"别样家具 (Another Furniture)","CurseForge":"another-furniture","Modrinth":"another-furniture"},{"Id":7204,"Name":"","CurseForge":"rayon","Modrinth":"rayon"},{"Id":7205,"Name":"","CurseForge":"ponder","Modrinth":"ponder"},{"Id":7206,"Name":"末影物流 (Ender Logistics)","CurseForge":"ender-logistics","Modrinth":""},{"Id":7210,"Name":"","CurseForge":"megaplanets","Modrinth":""},{"Id":7211,"Name":"","CurseForge":"cosmic-horizons-gc-addon","Modrinth":""},{"Id":7212,"Name":"","CurseForge":"ultris-boss-expansion","Modrinth":""},{"Id":7213,"Name":"","CurseForge":"bedfix","Modrinth":""},{"Id":7214,"Name":"","CurseForge":"mo-glass","Modrinth":"mo-glass"},{"Id":7215,"Name":"","CurseForge":"flans-mod-global-firestorm","Modrinth":""},{"Id":7216,"Name":"","CurseForge":"turtlemancy","Modrinth":"turtlemancy"},{"Id":7220,"Name":"","CurseForge":"goblins-dungeons","Modrinth":""},{"Id":7221,"Name":"","CurseForge":"optigui","Modrinth":"optigui"},{"Id":7222,"Name":"咏e (eeemod)","CurseForge":"","Modrinth":"eeeee"},{"Id":7223,"Name":"背景音乐选择器 (Background Music Selector)","CurseForge":"background-music-selector","Modrinth":"bgmselector"},{"Id":7224,"Name":"","CurseForge":"dynamic-surrounding-resurrected","Modrinth":""},{"Id":7226,"Name":"","CurseForge":"spells-shields","Modrinth":"spells-shields"},{"Id":7228,"Name":"","CurseForge":"player-companions","Modrinth":"player-companions"},{"Id":7229,"Name":"科能工程3 (Technical Engineering 3)","CurseForge":"technical-engineering-3","Modrinth":""},{"Id":7231,"Name":"更多实用设备:重生 (Extra Utilities Reborn)","CurseForge":"extra-utilities-reborn","Modrinth":""},{"Id":7234,"Name":"","CurseForge":"chatflow","Modrinth":""},{"Id":7235,"Name":"自动第三人称 (Auto Third Person)","CurseForge":"auto-third-person","Modrinth":"auto-third-person"},{"Id":7236,"Name":"","CurseForge":"flowery-structures","Modrinth":"flowery-structures"},{"Id":7237,"Name":"","CurseForge":"chat-up","Modrinth":""},{"Id":7238,"Name":"","CurseForge":"flowery-core","Modrinth":"flowerycore"},{"Id":7239,"Name":"","CurseForge":"level-hp","Modrinth":""},{"Id":7240,"Name":"幻梦:血染武装 (Eidolon's Sanguine Arsenal)","CurseForge":"sanguine-arsenal","Modrinth":""},{"Id":7241,"Name":"飞车奇匠 (Automobility)","CurseForge":"automobility","Modrinth":"automobility"},{"Id":7244,"Name":"","CurseForge":"ftb-quests-localization-keys","Modrinth":""},{"Id":7246,"Name":"真实火把:重置 (Realistic Torch Remake)","CurseForge":"unlit-realistic-torch-remake","Modrinth":""},{"Id":7247,"Name":"区块保存修复 (Chunk Saving Fix)","CurseForge":"chunk-saving-fix","Modrinth":""},{"Id":7248,"Name":"","CurseForge":"fullscreeno","Modrinth":"fullscreeno"},{"Id":7249,"Name":"喜报++ (Xibao Plus Plus)","CurseForge":"","Modrinth":"xibao-plus-plus"},{"Id":7250,"Name":"","CurseForge":"piglin-proliferation","Modrinth":"piglin-proliferation"},{"Id":7251,"Name":"","CurseForge":"the-binding-of-isaac-style-consumables","Modrinth":""},{"Id":7252,"Name":"","CurseForge":"guns-rpg","Modrinth":""},{"Id":7253,"Name":"","CurseForge":"configuration","Modrinth":"configuration"},{"Id":7256,"Name":"","CurseForge":"natural-decoration","Modrinth":""},{"Id":7257,"Name":"","CurseForge":"spice-of-fabric","Modrinth":"spice-of-fabric"},{"Id":7258,"Name":"更好的攀爬 (Better Climbing)","CurseForge":"better-climbing","Modrinth":"better-climbing"},{"Id":7259,"Name":"","CurseForge":"dog-yeeter","Modrinth":""},{"Id":7260,"Name":"","CurseForge":"mc122477fix","Modrinth":"mc122477fix"},{"Id":7261,"Name":"","CurseForge":"armors-hud-revived-liteloader-only","Modrinth":""},{"Id":7262,"Name":"自然生物 (Living Things)","CurseForge":"living-things","Modrinth":"living-things"},{"Id":7263,"Name":"美化! (Beautify!)","CurseForge":"beautify-decorate","Modrinth":"beautify"},{"Id":7264,"Name":"","CurseForge":"Voodoo","Modrinth":"voodoo"},{"Id":7265,"Name":"更多幸运 (NotEnoughLuck)","CurseForge":"notenoughluck","Modrinth":""},{"Id":7267,"Name":"隐藏玩家 (HidePlayers)","CurseForge":"","Modrinth":"hideplayers"},{"Id":7268,"Name":"","CurseForge":"mixintrace","Modrinth":"mixintrace"},{"Id":7269,"Name":"","CurseForge":"bancis-enchantments","Modrinth":""},{"Id":7270,"Name":"迷宫 (Maze)","CurseForge":"","Modrinth":"maze"},{"Id":7273,"Name":"","CurseForge":"skylands-fabric","Modrinth":"skylands"},{"Id":7274,"Name":"","CurseForge":"jjthunder-overhauled-world-generation","Modrinth":""},{"Id":7275,"Name":"","CurseForge":"betterblockoutline","Modrinth":"betterblockoutline"},{"Id":7276,"Name":"Sodium 临时崩溃修复 (Sodium Crash Fix)","CurseForge":"","Modrinth":"sodium-crash-fix"},{"Id":7277,"Name":"","CurseForge":"scift","Modrinth":"scift"},{"Id":7278,"Name":"","CurseForge":"","Modrinth":"ping-me"},{"Id":7279,"Name":"","CurseForge":"","Modrinth":"tool-rods"},{"Id":7280,"Name":"","CurseForge":"the-squid-game-mod","Modrinth":""},{"Id":7281,"Name":"数据包传送门 (Datapack Portals)","CurseForge":"datapack-portals","Modrinth":"datapackportals"},{"Id":7282,"Name":"","CurseForge":"more-beautiful-walls","Modrinth":"more-beautiful-walls"},{"Id":7283,"Name":"","CurseForge":"iris-flywheel-compat","Modrinth":"iris-flw-compat"},{"Id":7284,"Name":"","CurseForge":"prism-lib","Modrinth":"prism-lib"},{"Id":7284,"Name":"","CurseForge":"prism-fabric","Modrinth":""},{"Id":7286,"Name":"地图册 (Map Atlases)","CurseForge":"map-atlases-forge","Modrinth":"map-atlases"},{"Id":7286,"Name":"地图册 (Map Atlases)","CurseForge":"map-atlases","Modrinth":""},{"Id":7287,"Name":"额外玩家渲染Rift版 (ExtraPlayerRenderer-Rift)","CurseForge":"","Modrinth":"eprr"},{"Id":7291,"Name":"","CurseForge":"smartbrainlib","Modrinth":"smartbrainlib"},{"Id":7292,"Name":"","CurseForge":"twilight-tweaks","Modrinth":""},{"Id":7293,"Name":"","CurseForge":"aureus-simple-slabs","Modrinth":""},{"Id":7294,"Name":"","CurseForge":"just-mob-heads","Modrinth":"just-mob-heads"},{"Id":7294,"Name":"","CurseForge":"just-mob-heads-fabric","Modrinth":""},{"Id":7295,"Name":"","CurseForge":"squid-game-mod","Modrinth":""},{"Id":7297,"Name":"量子采石场增强 (Quantum Quarry Plus)","CurseForge":"quantum-querry-plus","Modrinth":""},{"Id":7298,"Name":"食物扩增 (Food Enhancements)","CurseForge":"food-enhancements","Modrinth":""},{"Id":7299,"Name":"","CurseForge":"","Modrinth":"bindgg"},{"Id":7300,"Name":"机械动力:矿石开掘 (Create Ore Excavation)","CurseForge":"create-ore-excavation","Modrinth":"create-ore-excavation"},{"Id":7301,"Name":"","CurseForge":"just-player-heads","Modrinth":"just-player-heads"},{"Id":7301,"Name":"","CurseForge":"just-player-heads-fabric","Modrinth":""},{"Id":7302,"Name":"生存加光剑 (SurvivalPlus Lightsabers)","CurseForge":"survivalplus-lightsabers","Modrinth":""},{"Id":7302,"Name":"生存加光剑 (SurvivalPlus Lightsabers)","CurseForge":"survivalplus-lightsabers-fabric","Modrinth":""},{"Id":7303,"Name":"","CurseForge":"fclib","Modrinth":""},{"Id":7304,"Name":"","CurseForge":"primitive-utilities","Modrinth":""},{"Id":7305,"Name":"Gugle的Carpet附加包 (GugleCarpetAddition)","CurseForge":"gca","Modrinth":"gca"},{"Id":7306,"Name":"生存加 (SurvivalPlus)","CurseForge":"survivalplus","Modrinth":""},{"Id":7306,"Name":"生存加 (SurvivalPlus)","CurseForge":"survivalplus-fabric","Modrinth":""},{"Id":7307,"Name":"","CurseForge":"mrp-library","Modrinth":""},{"Id":7308,"Name":"","CurseForge":"bypass-anvil-restriction","Modrinth":""},{"Id":7309,"Name":"","CurseForge":"no-early-loading-progress","Modrinth":""},{"Id":7311,"Name":"","CurseForge":"block-runner-forge","Modrinth":"block-runner"},{"Id":7311,"Name":"","CurseForge":"block-runner","Modrinth":""},{"Id":7312,"Name":"","CurseForge":"quick-paths","Modrinth":"quick-paths"},{"Id":7312,"Name":"","CurseForge":"quick-paths-fabric","Modrinth":""},{"Id":7313,"Name":"","CurseForge":"solar-energy","Modrinth":""},{"Id":7314,"Name":"","CurseForge":"restored-earth","Modrinth":""},{"Id":7317,"Name":"","CurseForge":"pig-pen-cipher","Modrinth":"pig-pen-cipher"},{"Id":7318,"Name":"幸运方块 (Lucky Blocks)","CurseForge":"luckyblock-fabric","Modrinth":"luckyblocks"},{"Id":7319,"Name":"","CurseForge":"","Modrinth":"smeltingtouch"},{"Id":7320,"Name":"杂七杂八的东西 (Things)","CurseForge":"things-fabric","Modrinth":"things"},{"Id":7321,"Name":"","CurseForge":"exlines-snorkel-mod","Modrinth":"snorkel"},{"Id":7322,"Name":"","CurseForge":"two-players-one-horse","Modrinth":"two-players-one-horse"},{"Id":7323,"Name":"","CurseForge":"headshot-forge","Modrinth":""},{"Id":7324,"Name":"","CurseForge":"left-hanging","Modrinth":"left-hanging"},{"Id":7325,"Name":"星光的载具 (stars_carrier)","CurseForge":"stars_carrier","Modrinth":""},{"Id":7327,"Name":"天华之作 (AetherWorks)","CurseForge":"aetherworks","Modrinth":""},{"Id":7328,"Name":"","CurseForge":"slice-and-dice","Modrinth":"slice-and-dice"},{"Id":7329,"Name":"TexTrue的铷视频界面 (TexTrue's Rubidium Options)","CurseForge":"textrues-rubidium-options","Modrinth":"textrues-rubidium-options"},{"Id":7332,"Name":"橡皮鸭 (Rubber Duck)","CurseForge":"rubber-duck","Modrinth":""},{"Id":7332,"Name":"橡皮鸭 (Rubber Duck) - 已归档","CurseForge":"","Modrinth":"rubber-duck"},{"Id":7333,"Name":"","CurseForge":"unlimited-dragon-eggs-fabric","Modrinth":"unlimited-dragon-eggs"},{"Id":7334,"Name":"更多玩家模型+ (MorePlayerModels+)","CurseForge":"moreplayermodels-plus","Modrinth":"moreplayermodels+"},{"Id":7335,"Name":"","CurseForge":"","Modrinth":"actioninventory"},{"Id":7337,"Name":"自定义虚空 (Custom Void)","CurseForge":"custom-void","Modrinth":""},{"Id":7338,"Name":"机械动力:喷气背包 (Create Jetpack)","CurseForge":"create-jetpack","Modrinth":"create-jetpack"},{"Id":7339,"Name":"","CurseForge":"entity-outliner","Modrinth":""},{"Id":7340,"Name":"","CurseForge":"","Modrinth":"sharpness6"},{"Id":7341,"Name":"隐藏名称标签 (No Name Tags)","CurseForge":"no-name-tags","Modrinth":"no-name-tags"},{"Id":7342,"Name":"","CurseForge":"ranged-wireless-redstone","Modrinth":""},{"Id":7343,"Name":"","CurseForge":"potato-canon-plus-forge","Modrinth":""},{"Id":7344,"Name":"不同寻常的末地 (Unusual End)","CurseForge":"unusual-end","Modrinth":"unusual_end"},{"Id":7345,"Name":"日光通量 (Solar Flux)","CurseForge":"solar-flux","Modrinth":""},{"Id":7347,"Name":"自定义背景颜色 (Custom Background Color)","CurseForge":"custom-background-color","Modrinth":"cbc"},{"Id":7348,"Name":"","CurseForge":"simple-shulker-preview","Modrinth":"simple-shulker-preview"},{"Id":7349,"Name":"逝去的下界 (Bygone Nether)","CurseForge":"bygone-nether","Modrinth":"bygone-nether"},{"Id":7349,"Name":"逝去的下界 (Bygone Nether)","CurseForge":"bygone-nether-fabric","Modrinth":""},{"Id":7350,"Name":"","CurseForge":"","Modrinth":"clickopener"},{"Id":7351,"Name":"","CurseForge":"kokoalinux-backport","Modrinth":""},{"Id":7352,"Name":"机械晾衣绳 (Mechanical Clothesline)","CurseForge":"mechanical-clothesline","Modrinth":""},{"Id":7353,"Name":"加载进度条 (Loading Progress Bar)","CurseForge":"loading-progress-bar","Modrinth":"loading-progress-bar"},{"Id":7354,"Name":"","CurseForge":"intercontinental-ballistic-redux","Modrinth":""},{"Id":7355,"Name":"","CurseForge":"planefix","Modrinth":""},{"Id":7356,"Name":"","CurseForge":"quick-leaf-decay","Modrinth":""},{"Id":7357,"Name":"","CurseForge":"simple-trophies","Modrinth":""},{"Id":7358,"Name":"","CurseForge":"thaumic-computers","Modrinth":""},{"Id":7359,"Name":"","CurseForge":"","Modrinth":"sliderclicksoundfix"},{"Id":7360,"Name":"","CurseForge":"instant-massive-structures-ims","Modrinth":""},{"Id":7361,"Name":"","CurseForge":"hunger-remover","Modrinth":"hunger-remover"},{"Id":7362,"Name":"","CurseForge":"rad-enchants","Modrinth":""},{"Id":7363,"Name":"","CurseForge":"plus-the-end","Modrinth":""},{"Id":7364,"Name":"","CurseForge":"runic","Modrinth":"runic"},{"Id":7365,"Name":"","CurseForge":"broken-discs","Modrinth":""},{"Id":7366,"Name":"","CurseForge":"forgedfabric","Modrinth":"forgedfabric"},{"Id":7367,"Name":"机械动力:更多飞轮 (Create: Extended Flywheels)","CurseForge":"create-extended-flywheels","Modrinth":"extended-flywheels"},{"Id":7367,"Name":"机械动力:更多飞轮 (Create: Extended Flywheels)","CurseForge":"create-extended-flywheels-fabric","Modrinth":""},{"Id":7368,"Name":"","CurseForge":"piggy-bank","Modrinth":""},{"Id":7369,"Name":"幽邃黑暗 (Deeper And Darker)","CurseForge":"deeperdarker","Modrinth":"deeperdarker"},{"Id":7371,"Name":"","CurseForge":"remote-gui-opener-forge","Modrinth":""},{"Id":7373,"Name":"","CurseForge":"illagers-pillagers","Modrinth":""},{"Id":7374,"Name":"","CurseForge":"guard-illagers","Modrinth":""},{"Id":7375,"Name":"","CurseForge":"moon-light-illager","Modrinth":""},{"Id":7376,"Name":"","CurseForge":"the-woodland-update","Modrinth":""},{"Id":7377,"Name":"","CurseForge":"a-foe-on-fire","Modrinth":""},{"Id":7378,"Name":"狩猎乐事 (Hunting delight)","CurseForge":"hunting-delight","Modrinth":""},{"Id":7379,"Name":"更多桶 (More Barrels)","CurseForge":"more-barrels","Modrinth":""},{"Id":7380,"Name":"起源:通行 (Origins: Accessibilities)","CurseForge":"origins-accessibilities","Modrinth":"origins-accessibilities"},{"Id":7381,"Name":"矿工的午餐盒 (Miner's Lunchbox)","CurseForge":"","Modrinth":"minerslunchbox"},{"Id":7382,"Name":"","CurseForge":"fuelcanister","Modrinth":"fuel-canister"},{"Id":7385,"Name":"","CurseForge":"f5-begone","Modrinth":"f5-begone"},{"Id":7386,"Name":"","CurseForge":"smartvision","Modrinth":"smartvision"},{"Id":7389,"Name":"","CurseForge":"no-more-purple","Modrinth":"no-more-purple"},{"Id":7391,"Name":"","CurseForge":"content-creator-integration","Modrinth":"content-creator-integration"},{"Id":7391,"Name":"","CurseForge":"content-creator-integration-fabric","Modrinth":""},{"Id":7392,"Name":"默认世界类型 (Default World Type)","CurseForge":"defaultworldtype","Modrinth":"defaultworldtype"},{"Id":7393,"Name":"","CurseForge":"no-nether","Modrinth":""},{"Id":7394,"Name":"","CurseForge":"miniatures","Modrinth":""},{"Id":7395,"Name":"","CurseForge":"ad-astra","Modrinth":"ad-astra"},{"Id":7396,"Name":"","CurseForge":"big-items-duh","Modrinth":"big-items-duh"},{"Id":7397,"Name":"","CurseForge":"scape-and-run-parasite-vaccine","Modrinth":""},{"Id":7398,"Name":"","CurseForge":"doge-mod","Modrinth":""},{"Id":7399,"Name":"","CurseForge":"ice-fire-katanas","Modrinth":""},{"Id":7400,"Name":"","CurseForge":"","Modrinth":"pressalttomeow"},{"Id":7401,"Name":"地毯-MCT拓展 (Carpet MCT Addition)","CurseForge":"","Modrinth":"cma"},{"Id":7402,"Name":"更好的铷视频设置按钮 (Better Rubidium Video Settings Button)","CurseForge":"brvsb","Modrinth":"brvsb"},{"Id":7403,"Name":"","CurseForge":"roughly-enough-trades","Modrinth":"roughly-enough-trades"},{"Id":7404,"Name":"","CurseForge":"simple-quarry","Modrinth":"simple-quarry"},{"Id":7405,"Name":"Magitek Mechs - 已停用","CurseForge":"magitek-mechs","Modrinth":""},{"Id":7405,"Name":"","CurseForge":"","Modrinth":"magitek-mechs"},{"Id":7406,"Name":"","CurseForge":"infectum","Modrinth":""},{"Id":7407,"Name":"","CurseForge":"nocubes-sea-dwellers","Modrinth":""},{"Id":7408,"Name":"","CurseForge":"show-me-your-skin","Modrinth":"show-me-your-skin"},{"Id":7409,"Name":"","CurseForge":"invulnerable-pigs","Modrinth":""},{"Id":7410,"Name":"","CurseForge":"t88","Modrinth":"t88"},{"Id":7411,"Name":"","CurseForge":"k-turrets","Modrinth":"k-turrets"},{"Id":7411,"Name":"","CurseForge":"k-turrets-fabric","Modrinth":""},{"Id":7412,"Name":"","CurseForge":"nevertooexpensive","Modrinth":""},{"Id":7413,"Name":"","CurseForge":"max-enchant-x","Modrinth":"max-enchant-x"},{"Id":7414,"Name":"","CurseForge":"visible-toggle-sprint","Modrinth":"visible-toggle-sprint"},{"Id":7415,"Name":"","CurseForge":"let-me-despawn","Modrinth":"lmd"},{"Id":7416,"Name":"","CurseForge":"glsl-panorama","Modrinth":"glsl-panorama"},{"Id":7417,"Name":"","CurseForge":"feyfriends","Modrinth":"feyfriends"},{"Id":7418,"Name":"","CurseForge":"mccalc","Modrinth":"mccalc"},{"Id":7419,"Name":"","CurseForge":"nekeys","Modrinth":""},{"Id":7420,"Name":"","CurseForge":"crafted-forge","Modrinth":"crafted"},{"Id":7420,"Name":"","CurseForge":"crafted","Modrinth":""},{"Id":7421,"Name":"","CurseForge":"cursery","Modrinth":""},{"Id":7422,"Name":"","CurseForge":"mirage-orb","Modrinth":""},{"Id":7423,"Name":"","CurseForge":"galacticborn-origin","Modrinth":"galacticborn-origin"},{"Id":7424,"Name":"更多配方 (Extra Recipe)","CurseForge":"extra-recipe","Modrinth":""},{"Id":7427,"Name":"自定义窗口标题 (Custom Window Title)","CurseForge":"custom-window-title","Modrinth":"custom-window-title"},{"Id":7429,"Name":"","CurseForge":"crated-foods-farmers-delight","Modrinth":""},{"Id":7430,"Name":"","CurseForge":"damage-tilt","Modrinth":""},{"Id":7431,"Name":"","CurseForge":"upgraded-core","Modrinth":""},{"Id":7431,"Name":"Upgraded Core - 不全","CurseForge":"","Modrinth":"upgraded-core"},{"Id":7432,"Name":"下界合金增强:终极 (Upgraded Netherite : Ultimerite)","CurseForge":"upgraded-netherite-ultimerite","Modrinth":"upgraded-netherite-ultimerite"},{"Id":7433,"Name":"下界合金增强:物品 (Upgraded Netherite : Items)","CurseForge":"upgraded-netherite-items","Modrinth":"upgraded-netherite-items"},{"Id":7434,"Name":"下界合金增强:创造 (Upgraded Netherite : Creativerite)","CurseForge":"upgraded-netherite-creativerite","Modrinth":""},{"Id":7435,"Name":"","CurseForge":"elementary-ores","Modrinth":""},{"Id":7437,"Name":"黑暗之魂 (MC: Dark Souls)","CurseForge":"minecraft-dark-souls","Modrinth":""},{"Id":7438,"Name":"","CurseForge":"dontmineit","Modrinth":"dontmineit"},{"Id":7439,"Name":"","CurseForge":"tmp","Modrinth":"tmp"},{"Id":7440,"Name":"","CurseForge":"feytweaks","Modrinth":"feytweaks"},{"Id":7441,"Name":"","CurseForge":"show-yourself","Modrinth":"show-yourself"},{"Id":7442,"Name":"","CurseForge":"convenient-name-tags","Modrinth":"convenient-name-tags"},{"Id":7443,"Name":"","CurseForge":"anakus-status-bars","Modrinth":""},{"Id":7443,"Name":"","CurseForge":"anakus-status-bars-forge","Modrinth":""},{"Id":7444,"Name":"","CurseForge":"minemenu-refabricated","Modrinth":""},{"Id":7445,"Name":"","CurseForge":"cfl","Modrinth":"cfl"},{"Id":7446,"Name":"","CurseForge":"creative-fly","Modrinth":"creative-fly"},{"Id":7447,"Name":"","CurseForge":"why-does-my-glass-sound-like-that","Modrinth":"wdmgslt"},{"Id":7448,"Name":"","CurseForge":"itemwallet","Modrinth":"itemwallet"},{"Id":7449,"Name":"更快铜锈蚀 (Way Much Faster Oxidize)","CurseForge":"way-much-faster-oxidize","Modrinth":"way-much-faster-oxidize"},{"Id":7451,"Name":"EMI村民交易 (EMI Trades)","CurseForge":"emi-trades-villager-trading-emi-plugin","Modrinth":"emitrades"},{"Id":7453,"Name":"模拟城市重置版 (Sim-U-Kraft Reloaded)","CurseForge":"sim-u-kraft-reloaded","Modrinth":""},{"Id":7454,"Name":"","CurseForge":"create-factory","Modrinth":"create-factory"},{"Id":7455,"Name":"","CurseForge":"horseinboat","Modrinth":"horseinboat"},{"Id":7456,"Name":"下界合金增强:工具 (Upgraded Tools)","CurseForge":"upgraded-tools","Modrinth":"upgraded-tools"},{"Id":7457,"Name":"","CurseForge":"tools-for-caves-and-cliffs","Modrinth":""},{"Id":7458,"Name":"","CurseForge":"betterendsky","Modrinth":"better-end-sky"},{"Id":7460,"Name":"无限与经验修补 (Infinity With Mending)","CurseForge":"infinity-with-mending","Modrinth":"infinity-with-mending"},{"Id":7461,"Name":"","CurseForge":"infinity-craft","Modrinth":""},{"Id":7462,"Name":"","CurseForge":"hookshot","Modrinth":"hookshot"},{"Id":7463,"Name":"","CurseForge":"custom-spawns","Modrinth":""},{"Id":7464,"Name":"机械动力:实用物件 (Create : Misc & Things)","CurseForge":"create-misc-and-things","Modrinth":"create-misc-and-things"},{"Id":7465,"Name":"","CurseForge":"low-fire","Modrinth":"low-fire"},{"Id":7466,"Name":"无限按钮 (Infinity Buttons)","CurseForge":"infinity-buttons","Modrinth":"infinitybuttons"},{"Id":7467,"Name":"","CurseForge":"i-know-what-im-doing-fabric","Modrinth":""},{"Id":7468,"Name":"","CurseForge":"skin-hotkey","Modrinth":"skin-hotkey"},{"Id":7469,"Name":"","CurseForge":"dyeable-fishing-lines-fabric","Modrinth":"dyeable-fishing-lines"},{"Id":7469,"Name":"","CurseForge":"dyeable-fishing-lines-forge","Modrinth":""},{"Id":7471,"Name":"","CurseForge":"reciperemover","Modrinth":"reciperemover"},{"Id":7472,"Name":"","CurseForge":"roughly-enough-loot-tables","Modrinth":"roughly-enough-loot-tables"},{"Id":7473,"Name":"","CurseForge":"fld","Modrinth":"fld"},{"Id":7474,"Name":"","CurseForge":"lostcities-tfc","Modrinth":""},{"Id":7475,"Name":"","CurseForge":"snowed-fabric","Modrinth":""},{"Id":7476,"Name":"","CurseForge":"player-blink","Modrinth":""},{"Id":7477,"Name":"","CurseForge":"better-command-block-ui","Modrinth":"bettercommandblockui"},{"Id":7478,"Name":"","CurseForge":"create-experienced","Modrinth":""},{"Id":7479,"Name":"","CurseForge":"gotta-go-fast","Modrinth":""},{"Id":7482,"Name":"疯狂粒子 (Mad Particle)","CurseForge":"mad-particle","Modrinth":"mad-particle"},{"Id":7483,"Name":"","CurseForge":"fabrihud","Modrinth":"fabrihud"},{"Id":7484,"Name":"","CurseForge":"shiny-horses","Modrinth":"shiny-horses"},{"Id":7485,"Name":"","CurseForge":"nyx-rotn-edition","Modrinth":""},{"Id":7487,"Name":"","CurseForge":"playeranimator","Modrinth":"playeranimator"},{"Id":7488,"Name":"","CurseForge":"apathy-mod","Modrinth":"apathy"},{"Id":7489,"Name":"","CurseForge":"auudio-forge","Modrinth":"auudio"},{"Id":7489,"Name":"","CurseForge":"auudio-fabric","Modrinth":""},{"Id":7491,"Name":"","CurseForge":"easy-shulker-boxes","Modrinth":"easy-shulker-boxes"},{"Id":7491,"Name":"","CurseForge":"easy-shulker-boxes-fabric","Modrinth":""},{"Id":7493,"Name":"","CurseForge":"qu-enchantments","Modrinth":"qu-enchantments"},{"Id":7494,"Name":"","CurseForge":"ironchests","Modrinth":"ironchests"},{"Id":7495,"Name":"","CurseForge":"piercingpaxels","Modrinth":"piercingpaxels"},{"Id":7496,"Name":"","CurseForge":"icy-incitement","Modrinth":"icyincitement"},{"Id":7497,"Name":"","CurseForge":"visible-librarian-trades","Modrinth":""},{"Id":7498,"Name":"","CurseForge":"unlimited-chisel-works-tfc1","Modrinth":"unlimited-chisel-works-tfc1"},{"Id":7499,"Name":"附魔潜影盒 (EnchantedShulkers)","CurseForge":"enchantedshulkers","Modrinth":"enchantedshulkers"},{"Id":7500,"Name":"","CurseForge":"noits-simple-sorting","Modrinth":""},{"Id":7501,"Name":"","CurseForge":"colds-gauntlets","Modrinth":""},{"Id":7502,"Name":"","CurseForge":"level-one","Modrinth":"level-one"},{"Id":7503,"Name":"","CurseForge":"wilder-wild","Modrinth":"wilder-wild"},{"Id":7504,"Name":"","CurseForge":"paintings-with-dragons","Modrinth":""},{"Id":7505,"Name":"更多红石灯 (More Redstone Lamps)","CurseForge":"more-redstone-lamps","Modrinth":""},{"Id":7506,"Name":"可放置植物 (Placeable Plants)","CurseForge":"placeable","Modrinth":""},{"Id":7507,"Name":"","CurseForge":"tfc-hot-or-not","Modrinth":"tfc-hot-or-not"},{"Id":7508,"Name":"","CurseForge":"quick-elytra","Modrinth":"quick-elytra"},{"Id":7509,"Name":"","CurseForge":"other-berries","Modrinth":""},{"Id":7510,"Name":"","CurseForge":"itank","Modrinth":""},{"Id":7511,"Name":"","CurseForge":"snowy-spirit","Modrinth":"snowy-spirit"},{"Id":7512,"Name":"","CurseForge":"no-tutorial-toasts","Modrinth":"no-tutorial-toasts"},{"Id":7513,"Name":"","CurseForge":"experience-ores","Modrinth":""},{"Id":7514,"Name":"","CurseForge":"anvil-player-heads-fabric","Modrinth":"anvil-player-heads"},{"Id":7514,"Name":"","CurseForge":"anvil-player-heads","Modrinth":""},{"Id":7515,"Name":"","CurseForge":"artisan-integrations","Modrinth":""},{"Id":7516,"Name":"","CurseForge":"seemyname","Modrinth":""},{"Id":7517,"Name":"","CurseForge":"biomes-o-plenty-tools","Modrinth":""},{"Id":7518,"Name":"","CurseForge":"bedrockcraft","Modrinth":"bedrockcraft"},{"Id":7519,"Name":"","CurseForge":"better-mobgriefing-gamerule","Modrinth":""},{"Id":7520,"Name":"","CurseForge":"frozen-fiend","Modrinth":""},{"Id":7521,"Name":"","CurseForge":"minefall","Modrinth":""},{"Id":7522,"Name":"永恒之门 (Gateways to Eternity)","CurseForge":"gateways-to-eternity","Modrinth":"gateways-to-eternity"},{"Id":7523,"Name":"王之财宝附加 (Gate of Babylon Additions)","CurseForge":"gate-of-babylon-additions","Modrinth":"gate-of-babylon-additions"},{"Id":7524,"Name":"匠神 (Hephaestus)","CurseForge":"hephaestus-fabric","Modrinth":"hephaestus"},{"Id":7525,"Name":"","CurseForge":"crafting-bench","Modrinth":"crafting-bench"},{"Id":7526,"Name":"更多蜜蜂信息 (MoreBeeInfo)","CurseForge":"morebeeinfo","Modrinth":"morebeeinfo"},{"Id":7527,"Name":"更好的任务 - 林业扩展 (Better Questing - Forestry)","CurseForge":"bq-forestry","Modrinth":""},{"Id":7529,"Name":"","CurseForge":"create-infinidrill","Modrinth":""},{"Id":7532,"Name":"","CurseForge":"","Modrinth":"scrollable-tooltips"},{"Id":7533,"Name":"","CurseForge":"attribute-tooltip-fix","Modrinth":"attribute-tooltip-fix"},{"Id":7535,"Name":"不减速 (No Slow Down)","CurseForge":"no-slow-down","Modrinth":""},{"Id":7536,"Name":"","CurseForge":"crumbs","Modrinth":"crumbs"},{"Id":7536,"Name":"","CurseForge":"crumbs-fabric","Modrinth":""},{"Id":7537,"Name":"","CurseForge":"italians-delight","Modrinth":""},{"Id":7538,"Name":"沉浸式MC (ImmersiveMC)","CurseForge":"immersivemc","Modrinth":"immersivemc"},{"Id":7539,"Name":"","CurseForge":"mc-vr-api","Modrinth":"mc-vr-api"},{"Id":7540,"Name":"","CurseForge":"exordium","Modrinth":"exordium"},{"Id":7541,"Name":"","CurseForge":"fabric-launchpads","Modrinth":""},{"Id":7541,"Name":"","CurseForge":"zihlaunchpads","Modrinth":""},{"Id":7543,"Name":"","CurseForge":"thermal-innovation-cyclic-compat","Modrinth":""},{"Id":7544,"Name":"蜜蜂修复 (Bee Fix)","CurseForge":"","Modrinth":"bee-fix"},{"Id":7545,"Name":"","CurseForge":"noel-christmas-mod","Modrinth":""},{"Id":7546,"Name":"","CurseForge":"moar-fps","Modrinth":"moarfps"},{"Id":7547,"Name":"","CurseForge":"flighthud","Modrinth":""},{"Id":7548,"Name":"","CurseForge":"meal-api","Modrinth":"mealapi"},{"Id":7549,"Name":"","CurseForge":"seed-drop","Modrinth":""},{"Id":7550,"Name":"","CurseForge":"fishery-expansion","Modrinth":"fishery"},{"Id":7552,"Name":"","CurseForge":"arrowcamfabric","Modrinth":""},{"Id":7553,"Name":"","CurseForge":"overpowered-mending","Modrinth":"overpoweredmending"},{"Id":7554,"Name":"","CurseForge":"woof","Modrinth":"wolves-of-other-furs"},{"Id":7555,"Name":"","CurseForge":"instant-blocks","Modrinth":"instant-blocks"},{"Id":7555,"Name":"","CurseForge":"instant-blocks-fabric","Modrinth":""},{"Id":7556,"Name":"更好的疾跑 (Better Sprinting)","CurseForge":"better-sprinting","Modrinth":"better-sprinting"},{"Id":7557,"Name":"","CurseForge":"rpglevels","Modrinth":""},{"Id":7558,"Name":"","CurseForge":"snow-under-trees","Modrinth":"snow-under-trees"},{"Id":7559,"Name":"鞘翅物理 (Elytra Physics)","CurseForge":"elytra-physics","Modrinth":"elytra-physics"},{"Id":7560,"Name":"","CurseForge":"scout","Modrinth":"scout"},{"Id":7561,"Name":"","CurseForge":"zenstages","Modrinth":""},{"Id":7563,"Name":"","CurseForge":"wondrous-wilds","Modrinth":"wondrous-wilds"},{"Id":7564,"Name":"","CurseForge":"truly-treasures","Modrinth":"truly-treasures"},{"Id":7565,"Name":"","CurseForge":"where-is-it","Modrinth":"where-is-it"},{"Id":7566,"Name":"","CurseForge":"relicex","Modrinth":"relicex"},{"Id":7567,"Name":"发光二极管 (Light Emitting Diode)","CurseForge":"led","Modrinth":"led"},{"Id":7568,"Name":"再见 圆石 (I DON'T Need Stone)","CurseForge":"i-dont-need-stone","Modrinth":""},{"Id":7569,"Name":"","CurseForge":"","Modrinth":"libgui-forge"},{"Id":7570,"Name":"","CurseForge":"colorize","Modrinth":"colorize"},{"Id":7571,"Name":"","CurseForge":"no-magic-milk","Modrinth":"no-magic-milk"},{"Id":7572,"Name":"","CurseForge":"powered-food","Modrinth":""},{"Id":7573,"Name":"","CurseForge":"spirit","Modrinth":"spirit"},{"Id":7575,"Name":"","CurseForge":"elytra-bounce","Modrinth":"elytra-bounce"},{"Id":7576,"Name":"无举报按钮 (No Report Button)","CurseForge":"no-report-button","Modrinth":"nrb"},{"Id":7577,"Name":"","CurseForge":"mana-wizardry","Modrinth":""},{"Id":7578,"Name":"","CurseForge":"aileron","Modrinth":"aileron"},{"Id":7579,"Name":"","CurseForge":"devworld","Modrinth":"devworld"},{"Id":7581,"Name":"","CurseForge":"immersive-weapons-compatibility-bridge","Modrinth":"immersive-weapons-compatibility-bridge"},{"Id":7582,"Name":"","CurseForge":"gameidiots-craftable-wizardry-items","Modrinth":""},{"Id":7583,"Name":"","CurseForge":"craft-hacks","Modrinth":""},{"Id":7584,"Name":"静谧四季 - 潘马斯农场 2:作物兼容 (Serene Seasons - Pam's HarvestCraft 2: Crops Compat)","CurseForge":"serene-seasons-harvestcraft2-compat","Modrinth":""},{"Id":7585,"Name":"","CurseForge":"goat","Modrinth":""},{"Id":7587,"Name":"","CurseForge":"simple-autofish","Modrinth":""},{"Id":7588,"Name":"丢弃物品保护 (Think Before Drop)","CurseForge":"think-before-drop","Modrinth":"thinkbeforedrop"},{"Id":7589,"Name":"","CurseForge":"omo","Modrinth":""},{"Id":7590,"Name":"","CurseForge":"mushroom-additions","Modrinth":""},{"Id":7592,"Name":"项目 -虚空- (Project the Void)","CurseForge":"project-the-void","Modrinth":""},{"Id":7593,"Name":"冰火传说:RotN 版 (Ice and Fire: RotN Edition)","CurseForge":"ice-and-fire-rotn-edition","Modrinth":""},{"Id":7594,"Name":"","CurseForge":"minescript","Modrinth":"minescript"},{"Id":7595,"Name":"禁用披风 (No Capes)","CurseForge":"no-capes","Modrinth":"no-capes"},{"Id":7596,"Name":"","CurseForge":"apocalypsecraft","Modrinth":""},{"Id":7597,"Name":"McRee_HighNoon的附魔 (McRee_HighNoon's Enchantments)","CurseForge":"mcree_highnoons-enchantments","Modrinth":""},{"Id":7598,"Name":"","CurseForge":"canary","Modrinth":"canary"},{"Id":7599,"Name":"","CurseForge":"better-give","Modrinth":"better-give"},{"Id":7600,"Name":"","CurseForge":"zonkos-monsters","Modrinth":""},{"Id":7601,"Name":"","CurseForge":"tetratic-combat","Modrinth":""},{"Id":7602,"Name":"","CurseForge":"fastload","Modrinth":"fastload"},{"Id":7603,"Name":"","CurseForge":"dramatictrees","Modrinth":"dtree"},{"Id":7604,"Name":"","CurseForge":"robinhood","Modrinth":"robinhood"},{"Id":7605,"Name":"","CurseForge":"trajans-core","Modrinth":""},{"Id":7606,"Name":"","CurseForge":"stop-hiding","Modrinth":""},{"Id":7608,"Name":"","CurseForge":"simple-world-timer","Modrinth":""},{"Id":7609,"Name":"","CurseForge":"recursive-resources","Modrinth":"recursiveresources"},{"Id":7610,"Name":"","CurseForge":"inventory-actions","Modrinth":""},{"Id":7611,"Name":"熔岩钓鱼 (Lava Fishing)","CurseForge":"lavafishing","Modrinth":"lavafishing"},{"Id":7612,"Name":"","CurseForge":"haunted-harvest","Modrinth":"haunted-harvest"},{"Id":7613,"Name":"","CurseForge":"dungeonsenhanced","Modrinth":"dungeons-enhanced"},{"Id":7614,"Name":"机械动力:晶莹剔透 (Create: Crystal Clear)","CurseForge":"create-crystal-clear","Modrinth":"create-crystal-clear"},{"Id":7615,"Name":"","CurseForge":"","Modrinth":"create-crystal-clear-fabric"},{"Id":7616,"Name":"","CurseForge":"fix-experience-bug","Modrinth":"fix-experience-bug"},{"Id":7617,"Name":"24点 (Minecraft024)","CurseForge":"","Modrinth":"minecraft024"},{"Id":7622,"Name":"","CurseForge":"it-takes-a-pillage","Modrinth":"it-takes-a-pillage"},{"Id":7622,"Name":"","CurseForge":"it-takes-a-pillage-fabric","Modrinth":""},{"Id":7624,"Name":"","CurseForge":"get-it-together-drops","Modrinth":"get-it-together-drops"},{"Id":7625,"Name":"","CurseForge":"fire-n-blood","Modrinth":""},{"Id":7626,"Name":"","CurseForge":"chunknogobyebye","Modrinth":""},{"Id":7627,"Name":"掉落物光束 (Beaming drops / Loot Beams Backport)","CurseForge":"beaming-drops","Modrinth":"loot-beams-backport"},{"Id":7628,"Name":"","CurseForge":"protocharset","Modrinth":"protocharset-rift"},{"Id":7629,"Name":"","CurseForge":"the-hordes","Modrinth":"the-hordes"},{"Id":7631,"Name":"","CurseForge":"inventory-management","Modrinth":"inventory-management"},{"Id":7632,"Name":"","CurseForge":"soul-fire-d","Modrinth":"soul-fire-d"},{"Id":7633,"Name":"","CurseForge":"faithfulbackrooms","Modrinth":"faithfulbackrooms"},{"Id":7634,"Name":"","CurseForge":"ex-machinis","Modrinth":"ex-machinis"},{"Id":7634,"Name":"","CurseForge":"ex-machinis-divitiae-deorum","Modrinth":"ex-machinis-divitiae-deorum"},{"Id":7635,"Name":"诡厄巫法 (Goety)","CurseForge":"goety","Modrinth":"goety"},{"Id":7636,"Name":"","CurseForge":"torch-hit","Modrinth":"torch-hit"},{"Id":7638,"Name":"","CurseForge":"we-got-runners","Modrinth":"we-got-runners!"},{"Id":7639,"Name":"","CurseForge":"","Modrinth":"cabricality-utils"},{"Id":7640,"Name":"","CurseForge":"dynamic-trees-croptopia","Modrinth":""},{"Id":7641,"Name":"","CurseForge":"medieval-music","Modrinth":""},{"Id":7642,"Name":"","CurseForge":"gempire","Modrinth":"gempire"},{"Id":7644,"Name":"","CurseForge":"sbm-bone-torch","Modrinth":""},{"Id":7645,"Name":"","CurseForge":"linkmyitem","Modrinth":""},{"Id":7646,"Name":"","CurseForge":"sprout","Modrinth":"sprout"},{"Id":7647,"Name":"","CurseForge":"resourceful-lib","Modrinth":"resourceful-lib"},{"Id":7651,"Name":"","CurseForge":"marg","Modrinth":""},{"Id":7652,"Name":"","CurseForge":"cozy","Modrinth":"cozy"},{"Id":7653,"Name":"更好的猪灵交易 (Better Piglin Trade)","CurseForge":"better-piglin-trade","Modrinth":"better-piglin-trade"},{"Id":7654,"Name":"","CurseForge":"model-gap-fix","Modrinth":"modelfix"},{"Id":7656,"Name":"","CurseForge":"posture","Modrinth":""},{"Id":7657,"Name":"小蚂蚁 (Little Ants)","CurseForge":"little-ants","Modrinth":"little-ants"},{"Id":7658,"Name":"硬核火把 (Hardcore Torches)","CurseForge":"hardcore-torches","Modrinth":"hardcore-torches"},{"Id":7658,"Name":"硬核火把 (Hardcore Torches)","CurseForge":"hardcore-torches-forge","Modrinth":""},{"Id":7659,"Name":"自动火把 (Auto Torch)","CurseForge":"auto-torch","Modrinth":"auto-torch"},{"Id":7660,"Name":"小夜灯 (Night Lights)","CurseForge":"nightlights","Modrinth":"nightlights"},{"Id":7661,"Name":"","CurseForge":"angry-mobs","Modrinth":"angry-mobs"},{"Id":7662,"Name":"","CurseForge":"onlylooking","Modrinth":""},{"Id":7663,"Name":"","CurseForge":"the-birdwatching-mod","Modrinth":""},{"Id":7664,"Name":"","CurseForge":"giant-ai","Modrinth":""},{"Id":7665,"Name":"","CurseForge":"unlit-campfire","Modrinth":"unlit-campfire"},{"Id":7666,"Name":"","CurseForge":"xl-packets-renewed","Modrinth":""},{"Id":7667,"Name":"","CurseForge":"nameplate","Modrinth":"nameplate"},{"Id":7668,"Name":"","CurseForge":"rpgdifficulty","Modrinth":"rpgdifficulty"},{"Id":7669,"Name":"稀有度提示框 (TooltipRareness)","CurseForge":"tooltiprareness","Modrinth":"tooltiprareness"},{"Id":7670,"Name":"","CurseForge":"","Modrinth":"minimotd-reforged"},{"Id":7671,"Name":"战斗翻滚 (Combat Roll)","CurseForge":"combat-roll","Modrinth":"combat-roll"},{"Id":7672,"Name":"","CurseForge":"project-brazier","Modrinth":"project-brazier"},{"Id":7673,"Name":"","CurseForge":"over-enchanted","Modrinth":"overenchanted"},{"Id":7674,"Name":"烟花苦力怕改革 (Creeper Overhaul Firework)","CurseForge":"creeper-overhaul-firework","Modrinth":""},{"Id":7675,"Name":"斯巴达的武器:巫师之路 (Spartan Weaponry - Bewitchment)","CurseForge":"spartan-weaponry-bewitchment","Modrinth":"spartan-weaponry-bewitchment"},{"Id":7676,"Name":"","CurseForge":"no-water-spread","Modrinth":""},{"Id":7677,"Name":"","CurseForge":"shoppy","Modrinth":""},{"Id":7678,"Name":"","CurseForge":"cathedral","Modrinth":""},{"Id":7680,"Name":"","CurseForge":"meowing","Modrinth":""},{"Id":7681,"Name":"","CurseForge":"dogwhistle","Modrinth":""},{"Id":7683,"Name":"","CurseForge":"","Modrinth":"onlylooking-fabric"},{"Id":7686,"Name":"","CurseForge":"wilder-wilds","Modrinth":""},{"Id":7687,"Name":"","CurseForge":"","Modrinth":"ae2-unpowered"},{"Id":7688,"Name":"更好的重生 (Better Respawn)","CurseForge":"better-respawn","Modrinth":"better-respawn"},{"Id":7689,"Name":"","CurseForge":"essentialgui","Modrinth":"essentialgui"},{"Id":7690,"Name":"","CurseForge":"elementary-staffs","Modrinth":"elementary-staffs"},{"Id":7691,"Name":"","CurseForge":"dragon-fight-config","Modrinth":""},{"Id":7692,"Name":"","CurseForge":"infused-foods","Modrinth":"infused-foods"},{"Id":7693,"Name":"","CurseForge":"what-meme","Modrinth":""},{"Id":7694,"Name":"","CurseForge":"shiny-gear","Modrinth":""},{"Id":7695,"Name":"","CurseForge":"would-you-shut-up-man","Modrinth":""},{"Id":7696,"Name":"","CurseForge":"weaker-spiderwebs","Modrinth":"weaker-spiderwebs"},{"Id":7696,"Name":"","CurseForge":"weaker-spiderwebs-fabric","Modrinth":""},{"Id":7697,"Name":"","CurseForge":"netherbarrels","Modrinth":""},{"Id":7698,"Name":"木制鞘翅 (Wooden Elytra)","CurseForge":"wooden-elytra","Modrinth":""},{"Id":7699,"Name":"","CurseForge":"construction-site-deco","Modrinth":"construction"},{"Id":7700,"Name":"","CurseForge":"wthit-harvestability","Modrinth":"wthit-harvestability"},{"Id":7701,"Name":"","CurseForge":"habitat","Modrinth":""},{"Id":7702,"Name":"","CurseForge":"","Modrinth":"emicompat"},{"Id":7703,"Name":"调和附魔 (HarmonicEnchantments)","CurseForge":"harmonicenchantments","Modrinth":""},{"Id":7706,"Name":"自定义卡牌 (Custom Cards)","CurseForge":"custom-cards","Modrinth":""},{"Id":7707,"Name":"群系卡牌 (Biome Cards)","CurseForge":"biome-cards","Modrinth":""},{"Id":7708,"Name":"","CurseForge":"bombinghud","Modrinth":""},{"Id":7709,"Name":"","CurseForge":"astral-dimension","Modrinth":""},{"Id":7710,"Name":"","CurseForge":"followers-teleport-too","Modrinth":"followers-teleport-too"},{"Id":7710,"Name":"","CurseForge":"followers-teleport-too-fabric","Modrinth":""},{"Id":7711,"Name":"城市工艺 (City Craft)","CurseForge":"","Modrinth":"citycraft"},{"Id":7712,"Name":"","CurseForge":"odysseymod","Modrinth":""},{"Id":7713,"Name":"","CurseForge":"libipn","Modrinth":"libipn"},{"Id":7714,"Name":"","CurseForge":"hulsealib","Modrinth":""},{"Id":7715,"Name":"","CurseForge":"blues-dynamic-lights","Modrinth":""},{"Id":7716,"Name":"","CurseForge":"gtc-expansion","Modrinth":"gtc-expansion"},{"Id":7717,"Name":"炽海生机 (Nether Depths Upgrade)","CurseForge":"nether-depths-upgrade","Modrinth":"nether-depths-upgrade"},{"Id":7718,"Name":"","CurseForge":"cloud-factory","Modrinth":""},{"Id":7719,"Name":"","CurseForge":"disc-holders-dj","Modrinth":""},{"Id":7720,"Name":"","CurseForge":"","Modrinth":"econ"},{"Id":7721,"Name":"三缄其口 (KeepMum)","CurseForge":"keepmum","Modrinth":""},{"Id":7722,"Name":"","CurseForge":"saturn","Modrinth":"saturn"},{"Id":7723,"Name":"","CurseForge":"stackable","Modrinth":""},{"Id":7724,"Name":"","CurseForge":"do-a-barrel-roll","Modrinth":"do-a-barrel-roll"},{"Id":7725,"Name":"Fantasy的骰子 (Fantasy's Dice)","CurseForge":"fantasys-dice","Modrinth":"fantasy-dice"},{"Id":7726,"Name":"","CurseForge":"","Modrinth":"ukulib"},{"Id":7727,"Name":"","CurseForge":"","Modrinth":"betterhurtcam"},{"Id":7728,"Name":"","CurseForge":"itemresistance","Modrinth":"itemresistance"},{"Id":7729,"Name":"","CurseForge":"distinguished-potions","Modrinth":"distinguished-potions"},{"Id":7730,"Name":"","CurseForge":"","Modrinth":"enhanced-weather"},{"Id":7731,"Name":"","CurseForge":"just-enough-immersive-multiblocks","Modrinth":"jei-multiblocks"},{"Id":7732,"Name":"","CurseForge":"adapaxels","Modrinth":"adapaxels"},{"Id":7733,"Name":"","CurseForge":"fabrizoom","Modrinth":"fabrizoom"},{"Id":7734,"Name":"","CurseForge":"json-things","Modrinth":""},{"Id":7735,"Name":"","CurseForge":"","Modrinth":"origins-randomiser"},{"Id":7736,"Name":"简易刀剑 (Simply Swords)","CurseForge":"simply-swords","Modrinth":"simply-swords"},{"Id":7737,"Name":"跨越 (KuaYue)","CurseForge":"neokuayue","Modrinth":"neokuayue"},{"Id":7739,"Name":"召唤仪式 (Summoning Rituals)","CurseForge":"summoningrituals","Modrinth":"summoningrituals"},{"Id":7740,"Name":"","CurseForge":"no-rest","Modrinth":""},{"Id":7741,"Name":"你死了 (You Died)","CurseForge":"you-died","Modrinth":"you-died"},{"Id":7742,"Name":"","CurseForge":"hotbarcycle","Modrinth":"hotbarcycle"},{"Id":7743,"Name":"无中生饥 (Hungry In Peaceful Mode)","CurseForge":"hungry-in-peaceful-mode","Modrinth":""},{"Id":7744,"Name":"","CurseForge":"auto-respawn-mod","Modrinth":""},{"Id":7745,"Name":"洞穴生成器 (Cave Generator)","CurseForge":"cave-generator","Modrinth":""},{"Id":7746,"Name":"","CurseForge":"console-filter","Modrinth":""},{"Id":7747,"Name":"","CurseForge":"customized-dungeon-loot","Modrinth":"customized-dungeon-loot"},{"Id":7748,"Name":"","CurseForge":"customquests","Modrinth":""},{"Id":7749,"Name":"Portal Cubed / Thinking With Portatos - 无法","CurseForge":"portal-cubed","Modrinth":""},{"Id":7749,"Name":"","CurseForge":"","Modrinth":"portal-cubed"},{"Id":7750,"Name":"","CurseForge":"pehkui-resizer","Modrinth":""},{"Id":7751,"Name":"","CurseForge":"kaffees-dual-ride","Modrinth":"kaffees_dual_ride"},{"Id":7752,"Name":"","CurseForge":"","Modrinth":"sfreeze"},{"Id":7753,"Name":"","CurseForge":"portable-hole","Modrinth":"portable-hole"},{"Id":7754,"Name":"","CurseForge":"betterteamchat","Modrinth":"betterteamchat"},{"Id":7755,"Name":"逻辑芯片 (Logic Chips)","CurseForge":"logic-chips","Modrinth":""},{"Id":7756,"Name":"","CurseForge":"quit","Modrinth":"quit"},{"Id":7758,"Name":"","CurseForge":"nears","Modrinth":"nears"},{"Id":7759,"Name":"","CurseForge":"obsidianui","Modrinth":"obsidianui"},{"Id":7760,"Name":"","CurseForge":"walk-jog-run","Modrinth":"walk-jog-run"},{"Id":7761,"Name":"传送带 (Conveyor Belts)","CurseForge":"conveyor-belts-fabric","Modrinth":"conveyor-belts"},{"Id":7762,"Name":"机械动力:筛子 (Create Sifting)","CurseForge":"create-sifting","Modrinth":"create-sifting"},{"Id":7763,"Name":"角色名调整 (PlayerNameTweaks)","CurseForge":"player-name-tweaks","Modrinth":""},{"Id":7764,"Name":"","CurseForge":"dat-modding-api","Modrinth":""},{"Id":7765,"Name":"","CurseForge":"rangefinder-hud","Modrinth":"rangefinderhud"},{"Id":7766,"Name":"","CurseForge":"prelaws-blocky-siege","Modrinth":"luckys-blocky-siege"},{"Id":7767,"Name":"","CurseForge":"modget","Modrinth":"modget"},{"Id":7768,"Name":"","CurseForge":"","Modrinth":"babies-forever"},{"Id":7769,"Name":"","CurseForge":"no-leaf-decay","Modrinth":"no-leaf-decay"},{"Id":7770,"Name":"","CurseForge":"mysteriumlib","Modrinth":"mysteriumlib"},{"Id":7771,"Name":"","CurseForge":"","Modrinth":"inrealtime"},{"Id":7772,"Name":"熔炉回收 (Furnace Recycle)","CurseForge":"furnace-recycle","Modrinth":"furnace-recycle"},{"Id":7772,"Name":"熔炉回收 (Furnace Recycle)","CurseForge":"furnace-recycle-fabric","Modrinth":""},{"Id":7774,"Name":"","CurseForge":"wild-lands","Modrinth":"wild-lands"},{"Id":7776,"Name":"","CurseForge":"noenchanting","Modrinth":""},{"Id":7777,"Name":"","CurseForge":"gregtech-experimental","Modrinth":"gregtech-experimental"},{"Id":7778,"Name":"","CurseForge":"","Modrinth":"cooldown-totem"},{"Id":7779,"Name":"","CurseForge":"almost-bedtime","Modrinth":"almost-bedtime"},{"Id":7780,"Name":"","CurseForge":"catlib","Modrinth":""},{"Id":7781,"Name":"","CurseForge":"","Modrinth":"mythicbotany_tweaker"},{"Id":7782,"Name":"宝丽来相机 (Polaroid Camera)","CurseForge":"polaroid-camera","Modrinth":"polaroidcamera"},{"Id":7783,"Name":"","CurseForge":"dig","Modrinth":""},{"Id":7785,"Name":"","CurseForge":"dimensional_ores","Modrinth":""},{"Id":7786,"Name":"","CurseForge":"devices-mod","Modrinth":"devices-mod"},{"Id":7787,"Name":"","CurseForge":"dynamistics","Modrinth":""},{"Id":7788,"Name":"","CurseForge":"eguilib","Modrinth":""},{"Id":7789,"Name":"","CurseForge":"glacidus","Modrinth":""},{"Id":7792,"Name":"","CurseForge":"compat-makeover","Modrinth":""},{"Id":7793,"Name":"","CurseForge":"","Modrinth":"deferred-registries"},{"Id":7794,"Name":"","CurseForge":"","Modrinth":"nametagping"},{"Id":7795,"Name":"","CurseForge":"map-in-slot","Modrinth":"map-in-slot"},{"Id":7796,"Name":"","CurseForge":"hungertweaker","Modrinth":""},{"Id":7797,"Name":"","CurseForge":"knob-control","Modrinth":""},{"Id":7798,"Name":"","CurseForge":"daedalus-labyrinth","Modrinth":""},{"Id":7799,"Name":"界面尺寸设置优化 (GUI Scale)","CurseForge":"tip-the-gui","Modrinth":""},{"Id":7800,"Name":"","CurseForge":"copper-overhaul","Modrinth":"copper-overhaul"},{"Id":7801,"Name":"","CurseForge":"epic-fight-nbt-integration","Modrinth":""},{"Id":7802,"Name":"登录保护 (Login Protection)","CurseForge":"login-protection","Modrinth":""},{"Id":7803,"Name":"星虫马术 (Star Worm Equestrian Mod)","CurseForge":"swem","Modrinth":"swem"},{"Id":7804,"Name":"金属储物桶:传承 (Metal Barrels: Legacy)","CurseForge":"metal-barrels-legacy","Modrinth":""},{"Id":7805,"Name":"","CurseForge":"inventoryfullalert","Modrinth":"inventoryfullalert"},{"Id":7806,"Name":"引向超越 (Lead Beyond)","CurseForge":"lead-beyond","Modrinth":""},{"Id":7807,"Name":"","CurseForge":"dyeallthethings","Modrinth":"dyeallthethings"},{"Id":7808,"Name":"","CurseForge":"swampier-swamps","Modrinth":"swampier-swamps"},{"Id":7808,"Name":"","CurseForge":"swampier-swamps-fabric","Modrinth":""},{"Id":7809,"Name":"更好的天气控制 (Weather settings)","CurseForge":"weather-settings","Modrinth":""},{"Id":7810,"Name":"","CurseForge":"shutdowner","Modrinth":""},{"Id":7811,"Name":"盾牌机制优化 (Tactical Shield Overhaul / Shield Mechanics)","CurseForge":"shield-mechanics","Modrinth":""},{"Id":7812,"Name":"","CurseForge":"sun-and-moon-celestial-configuration","Modrinth":"celestial-config"},{"Id":7813,"Name":"","CurseForge":"chatsound","Modrinth":""},{"Id":7814,"Name":"光影前向兼容 (AdvancedShader)","CurseForge":"advancedshader","Modrinth":""},{"Id":7815,"Name":"羊毛! (The Wools!)","CurseForge":"the-wools","Modrinth":"the-wools"},{"Id":7816,"Name":"","CurseForge":"fabric-enchantments","Modrinth":""},{"Id":7817,"Name":"","CurseForge":"glued","Modrinth":"glued"},{"Id":7818,"Name":"工匠创意 (Tinkers' Craft)","CurseForge":"tinkers-craft","Modrinth":""},{"Id":7819,"Name":"","CurseForge":"tinker-leveling","Modrinth":""},{"Id":7820,"Name":"格雷科技社区版:TJ版 (GregTech Community Edition: TJ Edition)","CurseForge":"gtce-tj-edition","Modrinth":""},{"Id":7821,"Name":"","CurseForge":"upc","Modrinth":"upc"},{"Id":7822,"Name":"","CurseForge":"gregicality-tjfork","Modrinth":""},{"Id":7823,"Name":"","CurseForge":"","Modrinth":"flagslib"},{"Id":7824,"Name":"","CurseForge":"create-mechanical-extruder","Modrinth":"create-mechanical-extruder"},{"Id":7825,"Name":"","CurseForge":"no-debug-5-you","Modrinth":""},{"Id":7826,"Name":"封包无尽贪婪 (PackagedAvaritia)","CurseForge":"packagedavaritia","Modrinth":"packagedavaritia"},{"Id":7827,"Name":"","CurseForge":"pillar","Modrinth":""},{"Id":7828,"Name":"","CurseForge":"resound","Modrinth":""},{"Id":7829,"Name":"","CurseForge":"mob-plaques","Modrinth":"mob-plaques"},{"Id":7830,"Name":"","CurseForge":"corail-scanner","Modrinth":""},{"Id":7831,"Name":"","CurseForge":"space-ambient-addon-for-galacticraft","Modrinth":"space-ambient"},{"Id":7832,"Name":"","CurseForge":"spiked-foods","Modrinth":""},{"Id":7833,"Name":"","CurseForge":"auraddons","Modrinth":""},{"Id":7834,"Name":"","CurseForge":"auracontrol","Modrinth":""},{"Id":7835,"Name":"","CurseForge":"contenttweaker-registry-orderer","Modrinth":""},{"Id":7836,"Name":"","CurseForge":"the-otherside","Modrinth":""},{"Id":7837,"Name":"","CurseForge":"pogo-sticks","Modrinth":""},{"Id":7838,"Name":"运算变速 (Tickrate Changer)","CurseForge":"tickrate-changer","Modrinth":""},{"Id":7839,"Name":"","CurseForge":"camcord","Modrinth":"camcord"},{"Id":7840,"Name":"现代化按键绑定 (Modern KeyBinding)","CurseForge":"modern-keybinding","Modrinth":"modernkeybinding"},{"Id":7840,"Name":"现代化按键绑定 (Modern KeyBinding)","CurseForge":"modern-keybinding-fabric","Modrinth":""},{"Id":7841,"Name":"","CurseForge":"make-bubbles-pop","Modrinth":"make_bubbles_pop"},{"Id":7842,"Name":"","CurseForge":"couplings","Modrinth":"couplings"},{"Id":7843,"Name":"","CurseForge":"mambience","Modrinth":"mambience"},{"Id":7844,"Name":"","CurseForge":"elytra-aeronautics","Modrinth":"elytra-aeronautics"},{"Id":7844,"Name":"","CurseForge":"elytra-aeronautics-forge","Modrinth":""},{"Id":7846,"Name":"","CurseForge":"infinitory","Modrinth":"infinitory"},{"Id":7847,"Name":"拴绳音效 (Loud Leads)","CurseForge":"loud-leads","Modrinth":""},{"Id":7848,"Name":"","CurseForge":"music-duration-reducer","Modrinth":""},{"Id":7849,"Name":"","CurseForge":"telepistons","Modrinth":"telepistons"},{"Id":7850,"Name":"Marium的魂类武器 (Marium's Soulslike Weaponry)","CurseForge":"mariums-soulslike-weaponry","Modrinth":"mariums-soulslike-weaponry"},{"Id":7851,"Name":"","CurseForge":"lets-go-herping","Modrinth":""},{"Id":7852,"Name":"","CurseForge":"modularui","Modrinth":"modularui"},{"Id":7853,"Name":"","CurseForge":"inventory-bogosorter","Modrinth":"inventory-bogosorter"},{"Id":7854,"Name":"格雷矿石筛子 (GregTech Sieves)","CurseForge":"gregtech-sieves","Modrinth":""},{"Id":7855,"Name":"动态的树:格雷科技社区版:非官方版附属 (Dynamic Trees - GregTech CEu)","CurseForge":"dynamic-trees-gregtech-ceu-rubber-tree","Modrinth":""},{"Id":7856,"Name":"","CurseForge":"fertility","Modrinth":""},{"Id":7858,"Name":"","CurseForge":"tcintegrations","Modrinth":"tcintegrations"},{"Id":7859,"Name":"","CurseForge":"underground-villages","Modrinth":"underground-villages"},{"Id":7860,"Name":"","CurseForge":"spook","Modrinth":""},{"Id":7861,"Name":"","CurseForge":"broglis-owls","Modrinth":""},{"Id":7862,"Name":"","CurseForge":"pluto","Modrinth":"pluto"},{"Id":7864,"Name":"","CurseForge":"youre-in-grave-danger","Modrinth":"yigd"},{"Id":7865,"Name":"","CurseForge":"reds-better-biomes-fabric-forge","Modrinth":""},{"Id":7866,"Name":"","CurseForge":"reds-more-structures","Modrinth":""},{"Id":7867,"Name":"","CurseForge":"rotn-tweaker","Modrinth":""},{"Id":7868,"Name":"","CurseForge":"cannot-build-over-lava-source-blocks","Modrinth":""},{"Id":7869,"Name":"夸克:RotN 版 (Quark: RotN Edition)","CurseForge":"quark-rotn-edition","Modrinth":""},{"Id":7870,"Name":"","CurseForge":"inmisaddon","Modrinth":"inmisaddon"},{"Id":7871,"Name":"凤梨乐事 (Pineapple Delight)","CurseForge":"pineapple-delight","Modrinth":"pineapple-delight"},{"Id":7872,"Name":"","CurseForge":"woodworks","Modrinth":"woodworks"},{"Id":7873,"Name":"信息饰品 (Informational Accessories)","CurseForge":"informational-accessories","Modrinth":""},{"Id":7874,"Name":"","CurseForge":"nyfs-spiders","Modrinth":"nyfs-spiders"},{"Id":7875,"Name":"","CurseForge":"illager-additions","Modrinth":""},{"Id":7876,"Name":"","CurseForge":"idolizing","Modrinth":""},{"Id":7877,"Name":"","CurseForge":"evocation-and-annihilation","Modrinth":""},{"Id":7878,"Name":"","CurseForge":"more-golems","Modrinth":""},{"Id":7879,"Name":"","CurseForge":"kebabs-crowns","Modrinth":""},{"Id":7880,"Name":"","CurseForge":"rerereskillable","Modrinth":"rerereskillable"},{"Id":7881,"Name":"刺猬 (Hedgehogs)","CurseForge":"hedgehogs","Modrinth":""},{"Id":7882,"Name":"","CurseForge":"pendulum","Modrinth":"pendulum"},{"Id":7883,"Name":"","CurseForge":"yacl","Modrinth":"yacl"},{"Id":7884,"Name":"按键精灵旧版 (Keyboard Wizard: Legacy)","CurseForge":"keyboard-wizard-legacy","Modrinth":"keywizardlegacy"},{"Id":7885,"Name":"","CurseForge":"queen-cats-dogs","Modrinth":"queen-cats-dogs"},{"Id":7886,"Name":"更多光源 (Additional Lights)","CurseForge":"additional-lights","Modrinth":""},{"Id":7887,"Name":"","CurseForge":"in-time-presence","Modrinth":""},{"Id":7888,"Name":"","CurseForge":"mob-vote-2022-forge","Modrinth":""},{"Id":7888,"Name":"","CurseForge":"mob-vote-2022","Modrinth":""},{"Id":7889,"Name":"","CurseForge":"curious-lands","Modrinth":""},{"Id":7890,"Name":"自定义玩家模型的简单的语音聊天兼容 (Customizable Player Models Simple Voice Chat compat)","CurseForge":"cpmsvcc","Modrinth":"cpmsvcc"},{"Id":7891,"Name":"","CurseForge":"pettable","Modrinth":"pettable"},{"Id":7892,"Name":"机械动力:附魔工业 (Create: Enchantment Industry)","CurseForge":"create-enchantment-industry","Modrinth":"create-enchantment-industry"},{"Id":7892,"Name":"机械动力:附魔工业 (Create: Enchantment Industry)","CurseForge":"cei-fabric-legacy","Modrinth":"cei-fabric-legacy"},{"Id":7893,"Name":"","CurseForge":"enchanted-witchcraft","Modrinth":"enchanted-witchcraft"},{"Id":7894,"Name":"","CurseForge":"wyml","Modrinth":""},{"Id":7896,"Name":"","CurseForge":"bunch-o-bugs","Modrinth":""},{"Id":7897,"Name":"","CurseForge":"useless-reptile","Modrinth":"useless-reptile"},{"Id":7898,"Name":"量子魔法2 (Technomancy2)","CurseForge":"technomancy-2","Modrinth":""},{"Id":7899,"Name":"快速贮藏重制版 (QuickStoreRemake)","CurseForge":"quickstore","Modrinth":""},{"Id":7900,"Name":"","CurseForge":"your-items-are-safe","Modrinth":"your-items-are-safe"},{"Id":7900,"Name":"","CurseForge":"your-items-are-safe-fabric","Modrinth":""},{"Id":7901,"Name":"","CurseForge":"techemistry","Modrinth":""},{"Id":7902,"Name":"","CurseForge":"the-missing-villages","Modrinth":""},{"Id":7903,"Name":"","CurseForge":"continents","Modrinth":""},{"Id":7904,"Name":"YUNG 的海底神殿优化 (YUNG's Better Ocean Monuments)","CurseForge":"yungs-better-ocean-monuments","Modrinth":"yungs-better-ocean-monuments"},{"Id":7904,"Name":"YUNG 的海底神殿优化 (YUNG's Better Ocean Monuments)","CurseForge":"yungs-better-ocean-monuments-fabric","Modrinth":""},{"Id":7904,"Name":"YUNG 的海底神殿优化 (YUNG's Better Ocean Monuments)","CurseForge":"yungs-better-ocean-monuments-neoforge","Modrinth":""},{"Id":7905,"Name":"","CurseForge":"echoing-depths","Modrinth":""},{"Id":7907,"Name":"","CurseForge":"advanced-finders","Modrinth":""},{"Id":7908,"Name":"枫林 (Maple Forest)","CurseForge":"maple-forest","Modrinth":""},{"Id":7909,"Name":"Legacy Fabric 输入补丁 (LegacyInputPatch)","CurseForge":"","Modrinth":"legacyinputpatch"},{"Id":7910,"Name":"","CurseForge":"droplight","Modrinth":""},{"Id":7911,"Name":"","CurseForge":"xanders-sodium-options","Modrinth":""},{"Id":7911,"Name":"Xander's Sodium Options - 已归档","CurseForge":"","Modrinth":"xanders-sodium-options"},{"Id":7912,"Name":"","CurseForge":"entity-view-distance","Modrinth":"entity-view-distance"},{"Id":7913,"Name":"","CurseForge":"creeper-ai-updated","Modrinth":"creeper-ai-updated"},{"Id":7914,"Name":"","CurseForge":"sihywtcamd","Modrinth":"difficulty"},{"Id":7915,"Name":"","CurseForge":"sihywtcamc","Modrinth":"combat"},{"Id":7916,"Name":"","CurseForge":"why-stacks-of-16","Modrinth":"why-stacks-of-16"},{"Id":7917,"Name":"","CurseForge":"jumpquilt","Modrinth":""},{"Id":7918,"Name":"","CurseForge":"oh-how-the-crafting-has-tabled","Modrinth":""},{"Id":7920,"Name":"","CurseForge":"roughly-enough-items-hacks","Modrinth":"roughly-enough-items-hacks"},{"Id":7921,"Name":"猪灵扩展 (Piglin Expansion)","CurseForge":"piglin-expansion","Modrinth":""},{"Id":7922,"Name":"","CurseForge":"","Modrinth":"nes"},{"Id":7923,"Name":"悚怖钢 (Dreadsteel)","CurseForge":"dreadsteel","Modrinth":""},{"Id":7924,"Name":"","CurseForge":"auto-hud","Modrinth":"autohud"},{"Id":7925,"Name":"","CurseForge":"camera-utils","Modrinth":"camera-utils"},{"Id":7927,"Name":"","CurseForge":"roughly-enough-items-server-component","Modrinth":"roughly-enough-items-server-component"},{"Id":7928,"Name":"","CurseForge":"daves-building-extended","Modrinth":""},{"Id":7928,"Name":"","CurseForge":"daves-building-extended-fabric","Modrinth":""},{"Id":7929,"Name":"","CurseForge":"","Modrinth":"rechiseled-bookshelves"},{"Id":7930,"Name":"四次元口袋2 (Dimensional Pockets II)","CurseForge":"dimensional-pockets-ii","Modrinth":"dimensional-pockets-ii"},{"Id":7932,"Name":"","CurseForge":"","Modrinth":"calculatorrinf-uwu"},{"Id":7933,"Name":"黑洞存储 (Black Hole Storage)","CurseForge":"black-hole-storage","Modrinth":""},{"Id":7934,"Name":"","CurseForge":"hudtweaks","Modrinth":"hudtweaks"},{"Id":7935,"Name":"","CurseForge":"mod-button","Modrinth":""},{"Id":7936,"Name":"","CurseForge":"opt-carpet-addition","Modrinth":"opt-carpet-addition"},{"Id":7937,"Name":"","CurseForge":"trees-do-not-float","Modrinth":"trees-do-not-float"},{"Id":7938,"Name":"","CurseForge":"cosmos-library","Modrinth":"cosmos-library"},{"Id":7939,"Name":"","CurseForge":"groovyscript","Modrinth":"groovyscript"},{"Id":7941,"Name":"药剂环重铸 (Potion Rings - REFORGED)","CurseForge":"potion-ring-reforged","Modrinth":"potion-ring-reforged"},{"Id":7941,"Name":"药剂环重铸 (Potion Rings - REFORGED)","CurseForge":"potion-ring-reforged-fabric","Modrinth":""},{"Id":7942,"Name":"","CurseForge":"scp-overtime","Modrinth":"scp-overtime"},{"Id":7943,"Name":"","CurseForge":"chubby-stuff-fabric","Modrinth":""},{"Id":7944,"Name":"","CurseForge":"better-brightness-slider","Modrinth":"better-brightness-slider"},{"Id":7945,"Name":"","CurseForge":"open-parties-and-claims","Modrinth":"open-parties-and-claims"},{"Id":7946,"Name":"","CurseForge":"loading-screen-tips","Modrinth":"loadingscreentips"},{"Id":7947,"Name":"","CurseForge":"better-tips","Modrinth":""},{"Id":7948,"Name":"","CurseForge":"immediatelyfast","Modrinth":"immediatelyfast"},{"Id":7949,"Name":"","CurseForge":"opac-fabric-create-support","Modrinth":"opac-fabric-create-support"},{"Id":7950,"Name":"钢 (Steel)","CurseForge":"steel-for-fabric","Modrinth":"steel"},{"Id":7951,"Name":"","CurseForge":"mekanism-tweaks","Modrinth":"mekanism-tweaks"},{"Id":7952,"Name":"","CurseForge":"changed-minecraft-mod","Modrinth":"changed-minecraft-mod"},{"Id":7953,"Name":"","CurseForge":"hello-crosshair","Modrinth":"hello-crosshair"},{"Id":7955,"Name":"","CurseForge":"bendy-lib","Modrinth":"bendy-lib"},{"Id":7956,"Name":"","CurseForge":"enchantment-transfer-forge","Modrinth":"enchantment-transfer"},{"Id":7957,"Name":"","CurseForge":"golden-crops","Modrinth":""},{"Id":7958,"Name":"","CurseForge":"lil-wings","Modrinth":"lil-wings"},{"Id":7961,"Name":"","CurseForge":"","Modrinth":"scp-sharp"},{"Id":7962,"Name":"","CurseForge":"scary-mobs-and-bosses","Modrinth":""},{"Id":7963,"Name":"鞘翅替换 (Elytra Replace)","CurseForge":"elytra-replace","Modrinth":""},{"Id":7964,"Name":"MT:花园军火库 (MT: GardenArsenal)","CurseForge":"mt-garden-arsenal-forge","Modrinth":""},{"Id":7964,"Name":"MT:花园军火库 (MT: GardenArsenal)","CurseForge":"mt-gardenarsenal-fabric","Modrinth":""},{"Id":7965,"Name":"","CurseForge":"visual-overhaul","Modrinth":"visual-overhaul"},{"Id":7966,"Name":"储物抽屉渲染配置:遗产 (DrawerFPS Legacy)","CurseForge":"drawerfps-legacy","Modrinth":""},{"Id":7967,"Name":"","CurseForge":"status-effect-timer","Modrinth":"statuseffecttimer"},{"Id":7968,"Name":"","CurseForge":"logical-zoom","Modrinth":"logical-zoom"},{"Id":7970,"Name":"太空时代 (The Space Age Mod)","CurseForge":"the-space-age-mod","Modrinth":""},{"Id":7971,"Name":"起源:东方 Project 附加包 (Touhou Origins)","CurseForge":"touhou-origins","Modrinth":"touhou-origins"},{"Id":7972,"Name":"地球生物 (Earth Mobs)","CurseForge":"earth-mobs","Modrinth":"earthmobs"},{"Id":7974,"Name":"","CurseForge":"simplemetals-tin","Modrinth":""},{"Id":7975,"Name":"","CurseForge":"just-enough-keys","Modrinth":""},{"Id":7975,"Name":"","CurseForge":"just-enough-keys-fabric","Modrinth":""},{"Id":7976,"Name":"","CurseForge":"why-am-i-on-fire","Modrinth":"why-am-i-on-fire"},{"Id":7977,"Name":"弹跳球 API (Bouncing Balls API)","CurseForge":"bouncing-balls-api","Modrinth":"bouncing-balls-api"},{"Id":7978,"Name":"弹跳球 (Bouncing Balls)","CurseForge":"bouncing-balls","Modrinth":"bouncing-balls"},{"Id":7979,"Name":"天线宝宝 (Teletubbies Mod)","CurseForge":"teletubbies-mod","Modrinth":"teletubbies"},{"Id":7980,"Name":"","CurseForge":"almostunified","Modrinth":"almostunified"},{"Id":7981,"Name":"","CurseForge":"draw-bridge","Modrinth":""},{"Id":7982,"Name":"","CurseForge":"creative-fireworks","Modrinth":""},{"Id":7983,"Name":"","CurseForge":"invertedbed","Modrinth":""},{"Id":7984,"Name":"","CurseForge":"time-arrow","Modrinth":""},{"Id":7985,"Name":"","CurseForge":"catch-me-if-you-can-cmiyc","Modrinth":""},{"Id":7986,"Name":"Alli的单向玻璃 (Alli's One Way Glass)","CurseForge":"mc-modsis-one-way-glass","Modrinth":""},{"Id":7987,"Name":"","CurseForge":"sanguis","Modrinth":""},{"Id":7988,"Name":"","CurseForge":"ender-trigon","Modrinth":"ender-trigon"},{"Id":7989,"Name":"","CurseForge":"litlaunch","Modrinth":""},{"Id":7990,"Name":"","CurseForge":"puzzle","Modrinth":"puzzle"},{"Id":7991,"Name":"","CurseForge":"why-am-i-on-fire-refoxed","Modrinth":""},{"Id":7993,"Name":"暮色乐事:冰雪豪饮 (Twilight Delight: Frozen Pride)","CurseForge":"","Modrinth":"tdfp"},{"Id":7994,"Name":"","CurseForge":"ftb-pack-companion","Modrinth":""},{"Id":7995,"Name":"","CurseForge":"teams-stages","Modrinth":""},{"Id":7996,"Name":"","CurseForge":"kiwi-boi","Modrinth":"kiwi-boi"},{"Id":7997,"Name":"铷 · 工具箱 (Rubidium Toolkit)","CurseForge":"rubidium-toolkit","Modrinth":"rubidium-toolkit"},{"Id":7998,"Name":"高级战斗装备 (Advanced Combat)","CurseForge":"advanced-combat","Modrinth":""},{"Id":7999,"Name":"高级战斗装备重置 (Advanced Combat (Revitalized))","CurseForge":"advanced-combat-revitalized","Modrinth":"advanced-combat-revitalized"},{"Id":8000,"Name":"","CurseForge":"totemic-overhaul","Modrinth":""},{"Id":8002,"Name":"战斗修正 (BattleCorrection)","CurseForge":"battlecorrection","Modrinth":"battlecorrection"},{"Id":8003,"Name":"","CurseForge":"midnightcontrols-extra","Modrinth":"midnightcontrols-extra"},{"Id":8004,"Name":"","CurseForge":"i-wanna-skate","Modrinth":"i-wanna-skate"},{"Id":8005,"Name":"","CurseForge":"tectonic","Modrinth":"tectonic"},{"Id":8006,"Name":"生于混沌 (Born in Chaos)","CurseForge":"born-in-chaos","Modrinth":"borninchaos"},{"Id":8007,"Name":"","CurseForge":"eureka-ships","Modrinth":"eureka"},{"Id":8008,"Name":"","CurseForge":"goofy-goober","Modrinth":""},{"Id":8009,"Name":"时之钟 (Time Stop Clock)","CurseForge":"time-stop-clock-mod","Modrinth":"time-stop-clock-mod"},{"Id":8010,"Name":"","CurseForge":"dynamic-asset-generator","Modrinth":"dynamic_asset_generator"},{"Id":8011,"Name":"","CurseForge":"excavated-variants","Modrinth":"excavated_variants"},{"Id":8014,"Name":"","CurseForge":"survival-light-blocks","Modrinth":""},{"Id":8016,"Name":"园林组合 (Garden Stuff)","CurseForge":"garden-stuff","Modrinth":""},{"Id":8017,"Name":"","CurseForge":"forgottenrecipes","Modrinth":""},{"Id":8018,"Name":"","CurseForge":"corgilib","Modrinth":"corgilib"},{"Id":8019,"Name":"母爱 (Mom's Love)","CurseForge":"moms-love","Modrinth":"moms-love"},{"Id":8020,"Name":"食物效果显示 (Food Effect Tooltips)","CurseForge":"food-effect-tooltips","Modrinth":"foodeffecttooltips"},{"Id":8021,"Name":"","CurseForge":"","Modrinth":"resounding"},{"Id":8022,"Name":"","CurseForge":"hbm-fixes","Modrinth":""},{"Id":8023,"Name":"","CurseForge":"status-effect-bars","Modrinth":"status-effect-bars"},{"Id":8024,"Name":"","CurseForge":"monsters-in-the-closet","Modrinth":"monsters-in-the-closet"},{"Id":8025,"Name":"","CurseForge":"recipe-unlocker","Modrinth":"recipes"},{"Id":8026,"Name":"变形拓展 (Metamorph Max)","CurseForge":"metamorph-max","Modrinth":""},{"Id":8027,"Name":"","CurseForge":"kubejs-tinkers-construct","Modrinth":""},{"Id":8029,"Name":"","CurseForge":"ghost","Modrinth":"ghost"},{"Id":8030,"Name":"更好的统计信息界面 (Better Statistics Screen)","CurseForge":"better-stats","Modrinth":"better-stats"},{"Id":8035,"Name":"深渊国度幸运方块 (AbyssalBlocks)","CurseForge":"abyssalblocks","Modrinth":""},{"Id":8036,"Name":"","CurseForge":"archon","Modrinth":"archon"},{"Id":8037,"Name":"","CurseForge":"stackie","Modrinth":""},{"Id":8038,"Name":"","CurseForge":"","Modrinth":"cullclouds"},{"Id":8039,"Name":"","CurseForge":"","Modrinth":"superfancyclouds"},{"Id":8040,"Name":"","CurseForge":"stage-tabels","Modrinth":""},{"Id":8041,"Name":"","CurseForge":"temporal-dynamics","Modrinth":""},{"Id":8042,"Name":"","CurseForge":"villagertradingban","Modrinth":""},{"Id":8043,"Name":"","CurseForge":"enchantment-machine","Modrinth":"enchantmentmachine"},{"Id":8044,"Name":"","CurseForge":"yosbr","Modrinth":"yosbr"},{"Id":8045,"Name":"","CurseForge":"minefortress-rts","Modrinth":"minefortress"},{"Id":8046,"Name":"单条 (OneBar)","CurseForge":"onebar","Modrinth":"onebar"},{"Id":8047,"Name":"","CurseForge":"berdinskiybears-armor-hud","Modrinth":""},{"Id":8050,"Name":"","CurseForge":"tiered-tooltips","Modrinth":""},{"Id":8051,"Name":"调色方块 (RGB Blocks)","CurseForge":"rgb-blocks-forge","Modrinth":""},{"Id":8053,"Name":"流沙 (Quicksand)","CurseForge":"quicksand-fabric","Modrinth":"quicksand"},{"Id":8054,"Name":"更好的耐久度 (Better Durability)","CurseForge":"better-durability","Modrinth":"better-durability"},{"Id":8055,"Name":"","CurseForge":"passthrough-signs","Modrinth":"passthrough-signs"},{"Id":8056,"Name":"","CurseForge":"excorrelation","Modrinth":"excorrelation"},{"Id":8057,"Name":"","CurseForge":"packet-size-doubler","Modrinth":""},{"Id":8058,"Name":"","CurseForge":"","Modrinth":"packet-size-double-forge"},{"Id":8059,"Name":"","CurseForge":"arachnophobia-mode-for-minecraft","Modrinth":"arachnophobia-mode"},{"Id":8060,"Name":"村民配置 (Villager Config)","CurseForge":"villagerconfig","Modrinth":"villagerconfig"},{"Id":8061,"Name":"","CurseForge":"jasm","Modrinth":"speedometer"},{"Id":8062,"Name":"分页进度 (Paginated Advancements & Custom Frames)","CurseForge":"paginated-advancements","Modrinth":"paginatedadvancements"},{"Id":8063,"Name":"","CurseForge":"","Modrinth":"backport-gamerules"},{"Id":8064,"Name":"","CurseForge":"structures-compass","Modrinth":""},{"Id":8065,"Name":"","CurseForge":"swiss-cheese","Modrinth":""},{"Id":8066,"Name":"","CurseForge":"vitalize","Modrinth":"vitalize"},{"Id":8067,"Name":"自动汉化更新非长期支持版 (I18nUpdateMod Non-LTS)","CurseForge":"i18n-nlts","Modrinth":"i18nupdatemod-nlts"},{"Id":8068,"Name":"","CurseForge":"ingame-info-xml-serene-seasons","Modrinth":""},{"Id":8069,"Name":"","CurseForge":"ingame-info-xml-addon-serene-seasons","Modrinth":""},{"Id":8072,"Name":"建筑之杖 (Staff of Building)","CurseForge":"staff-of-building","Modrinth":""},{"Id":8073,"Name":"夜间模式无处不在 (Dark Mode Everywhere)","CurseForge":"dark-mode-everywhere","Modrinth":"dark-mode-everywhere"},{"Id":8074,"Name":"自定义商店 (CustomShop)","CurseForge":"custom-shop","Modrinth":""},{"Id":8075,"Name":"","CurseForge":"another-liquid-milk","Modrinth":"another-liquid-milk"},{"Id":8076,"Name":"夜间模式无处不在Fabric版 (Dark Mode Everywhere - Fabric)","CurseForge":"dark-mode-everywhere-fabric","Modrinth":"dark-mode-everywhere-fabric"},{"Id":8078,"Name":"易物站 (Bartering Station)","CurseForge":"bartering-station","Modrinth":"bartering-station"},{"Id":8079,"Name":"","CurseForge":"dark-paintings","Modrinth":"dark-paintings"},{"Id":8081,"Name":"拾取筛 (FiltPick)","CurseForge":"filtpick","Modrinth":"filtpick"},{"Id":8083,"Name":"","CurseForge":"deepslatecutting","Modrinth":"deepslatecutting"},{"Id":8084,"Name":"简易铁砧 (Easy Anvils)","CurseForge":"easy-anvils","Modrinth":"easy-anvils"},{"Id":8085,"Name":"","CurseForge":"leaves-be-gone","Modrinth":"leaves-be-gone"},{"Id":8086,"Name":"配方缓存 (Recipe Cache)","CurseForge":"recipe-cache","Modrinth":""},{"Id":8087,"Name":"","CurseForge":"mob-catcher","Modrinth":""},{"Id":8088,"Name":"","CurseForge":"","Modrinth":"quiltgoslighlyfasterlol"},{"Id":8091,"Name":"","CurseForge":"guns-rpg-waystone-addon","Modrinth":""},{"Id":8092,"Name":"现代生物圈 (Modern Biospheres)","CurseForge":"biospheres-fabric","Modrinth":""},{"Id":8093,"Name":"更好的打雪仗 (Better Snowball Fight)","CurseForge":"better-snowball-fight","Modrinth":"better-snowball-fight"},{"Id":8094,"Name":"","CurseForge":"feathers","Modrinth":"feathers"},{"Id":8095,"Name":"更好的配方书 (Better Recipe Book)","CurseForge":"brb","Modrinth":"brb"},{"Id":8096,"Name":"行船机制修改 (Boat Overhaul)","CurseForge":"boatoverhaul-forge","Modrinth":""},{"Id":8096,"Name":"行船机制修改 (Boat Overhaul)","CurseForge":"boatoverhaul-fabric","Modrinth":""},{"Id":8097,"Name":"","CurseForge":"sculk-warden","Modrinth":""},{"Id":8098,"Name":"更好的任务-游戏阶段扩展 (Better Questing - Gamestages Expansion)","CurseForge":"better-questing-gamestages-expansion","Modrinth":"better-questing-gamestages-expansion"},{"Id":8099,"Name":"","CurseForge":"omega-chips","Modrinth":"omega-chips"},{"Id":8100,"Name":"","CurseForge":"youdroppedthis","Modrinth":"youdroppedthis"},{"Id":8103,"Name":"","CurseForge":"toomanyorigins","Modrinth":"toomanyorigins"},{"Id":8104,"Name":"","CurseForge":"evil-regeneration","Modrinth":"evil-regeneration"},{"Id":8105,"Name":"食物宝盒 (Food Treasure Box)","CurseForge":"food-treasure-box","Modrinth":""},{"Id":8106,"Name":"","CurseForge":"revolution","Modrinth":""},{"Id":8107,"Name":"","CurseForge":"apugli","Modrinth":""},{"Id":8107,"Name":"","CurseForge":"","Modrinth":"apugli"},{"Id":8108,"Name":"","CurseForge":"harvest-season","Modrinth":""},{"Id":8109,"Name":"","CurseForge":"","Modrinth":"ic2fix"},{"Id":8110,"Name":"","CurseForge":"","Modrinth":"extended-bookshelves"},{"Id":8111,"Name":"","CurseForge":"cocoainput","Modrinth":""},{"Id":8112,"Name":"","CurseForge":"chargers","Modrinth":"chargers"},{"Id":8113,"Name":"","CurseForge":"","Modrinth":"axolotl-buckets"},{"Id":8115,"Name":"","CurseForge":"recipe-book-is-pain","Modrinth":"rbip"},{"Id":8116,"Name":"","CurseForge":"","Modrinth":"one-bad-apple"},{"Id":8118,"Name":"","CurseForge":"with-json","Modrinth":"ovo"},{"Id":8119,"Name":"神秘自然 (Mystical Nature)","CurseForge":"mystical-nature","Modrinth":""},{"Id":8120,"Name":"配方追加 (Formula addition)","CurseForge":"","Modrinth":"formula-addition-fabric"},{"Id":8121,"Name":"","CurseForge":"randomlib","Modrinth":""},{"Id":8122,"Name":"","CurseForge":"","Modrinth":"kinventory"},{"Id":8123,"Name":"飞行警报 (Pullup)","CurseForge":"pullup","Modrinth":"pullup"},{"Id":8124,"Name":"","CurseForge":"id-primeval","Modrinth":"primeval"},{"Id":8125,"Name":"杜鹃缤纷 (Colorful Azaleas)","CurseForge":"colorfulazaleas","Modrinth":"colorful-azaleas"},{"Id":8126,"Name":"","CurseForge":"pigeon-post","Modrinth":"pigeon-post"},{"Id":8127,"Name":"","CurseForge":"hunted-api","Modrinth":""},{"Id":8129,"Name":"","CurseForge":"bigger-structures","Modrinth":""},{"Id":8131,"Name":"","CurseForge":"find-my-friends","Modrinth":"find-my-friends"},{"Id":8132,"Name":"","CurseForge":"","Modrinth":"legacy-lazydfu"},{"Id":8133,"Name":"","CurseForge":"fallout-wastelands","Modrinth":""},{"Id":8136,"Name":"","CurseForge":"","Modrinth":"letitsnow"},{"Id":8137,"Name":"","CurseForge":"dons-lightning-rod-mod","Modrinth":""},{"Id":8138,"Name":"","CurseForge":"rainglow","Modrinth":"rainglow"},{"Id":8139,"Name":"下界乐事(Fabric 版) (Nether's Delight (Fabric))","CurseForge":"nethers-delight-fabric","Modrinth":""},{"Id":8140,"Name":"流沙(NeoForge) (Quicksand (NeoForge))","CurseForge":"quicksand-neoforge","Modrinth":"quicksand-neoforge"},{"Id":8141,"Name":"美西螈桶修复 Forge 版 (Axolotl Bucket Fix (Forge))","CurseForge":"axolotl-bucket-fix-forge","Modrinth":"axolotl-bucket-fix-forge"},{"Id":8142,"Name":"","CurseForge":"scape-and-run-parasites-survival-addon-by-nocube","Modrinth":""},{"Id":8143,"Name":"","CurseForge":"scape-and-run-parasites-nests-addon-by-nocube","Modrinth":""},{"Id":8144,"Name":"","CurseForge":"","Modrinth":"emiffect"},{"Id":8145,"Name":"","CurseForge":"villagers-sell-animals","Modrinth":""},{"Id":8146,"Name":"","CurseForge":"teal-bricks","Modrinth":""},{"Id":8147,"Name":"多汁浆果 (bodacious berries)","CurseForge":"bodacious-berries","Modrinth":"berries"},{"Id":8148,"Name":"手袋 (Bag Of Holding)","CurseForge":"","Modrinth":"the-bag-of-holding"},{"Id":8149,"Name":"","CurseForge":"rgb-chat","Modrinth":""},{"Id":8151,"Name":"","CurseForge":"diamond-caliber","Modrinth":""},{"Id":8152,"Name":"","CurseForge":"","Modrinth":"emi_farmersdelight"},{"Id":8153,"Name":"","CurseForge":"world-stripper","Modrinth":"world-stripper"},{"Id":8154,"Name":"DayZ 重制版 (DayZ Remastered)","CurseForge":"dayz-remastered","Modrinth":""},{"Id":8155,"Name":"可视性:重铸 (Visuality: Reforged)","CurseForge":"visuality-reforged","Modrinth":"visuality-forge"},{"Id":8156,"Name":"","CurseForge":"ease-out-night-vision","Modrinth":"no-night-vision-flickering"},{"Id":8157,"Name":"阿塞拉斯 (Athelas)","CurseForge":"athelas","Modrinth":""},{"Id":8158,"Name":"","CurseForge":"more-beautiful-buttons","Modrinth":"more-beautiful-buttons"},{"Id":8158,"Name":"","CurseForge":"more-beautiful-buttons-fabric","Modrinth":""},{"Id":8159,"Name":"","CurseForge":"aoa-end-realmstone","Modrinth":""},{"Id":8161,"Name":"","CurseForge":"adaptive-tooltips","Modrinth":"adaptive-tooltips"},{"Id":8162,"Name":"","CurseForge":"variantbarrels","Modrinth":"variant-barrels"},{"Id":8163,"Name":"","CurseForge":"variant-crafting-tables-fabric","Modrinth":"variant-crafting-tables"},{"Id":8164,"Name":"","CurseForge":"immersive-structures","Modrinth":"immersive-structures"},{"Id":8165,"Name":"","CurseForge":"avaritia-port-fabric","Modrinth":""},{"Id":8166,"Name":"","CurseForge":"explorify","Modrinth":""},{"Id":8167,"Name":"","CurseForge":"variant-bookshelves-fabric","Modrinth":"variant-bookshelves"},{"Id":8168,"Name":"","CurseForge":"variant-tiered-shields-fabric","Modrinth":"variant-shields"},{"Id":8169,"Name":"自由村民 (Liberty's Villagers)","CurseForge":"libertys-villagers","Modrinth":"libertyvillagers"},{"Id":8171,"Name":"粗暴的怪物2 (Rough Mobs 2)","CurseForge":"rough-mobs-2","Modrinth":""},{"Id":8172,"Name":"","CurseForge":"barren-isles","Modrinth":""},{"Id":8173,"Name":"","CurseForge":"korgelin","Modrinth":""},{"Id":8174,"Name":"","CurseForge":"variant-composters-fabric","Modrinth":"variant-composters"},{"Id":8175,"Name":"","CurseForge":"variant-grindstones-fabric","Modrinth":"variant-grindstones"},{"Id":8176,"Name":"自定义村民交易 (Custom Villager Trades)","CurseForge":"custom-villager-trades-new","Modrinth":""},{"Id":8177,"Name":"生活调味料:苹果派版 (Spice of Life: Apple Pie Edition)","CurseForge":"spice-of-life-apple-pie-edition","Modrinth":"spice-of-life-apple-pie-edition"},{"Id":8178,"Name":"经验方尖碑 (XP Obelisk)","CurseForge":"xp-obelisk","Modrinth":"xp-obelisk"},{"Id":8179,"Name":"搜索增强 (Enhanced Searchability)","CurseForge":"enhanced-searchability","Modrinth":"enhanced-searchability"},{"Id":8180,"Name":"","CurseForge":"compact-ui","Modrinth":"compact-ui"},{"Id":8181,"Name":"葡园酒香 (Let's do Wine / Vinery)","CurseForge":"lets-do-wine","Modrinth":"lets-do-vinery"},{"Id":8182,"Name":"","CurseForge":"wealthyandgrowth","Modrinth":"wealthyandgrowth"},{"Id":8183,"Name":"字幕高亮 (Subtitle Highlight)","CurseForge":"subtitle-highlight","Modrinth":"subtitle-highlight"},{"Id":8184,"Name":"","CurseForge":"clockhud","Modrinth":"clock-hud"},{"Id":8186,"Name":"","CurseForge":"variant-lanterns-fabric","Modrinth":"variant-lanterns"},{"Id":8187,"Name":"","CurseForge":"lanterns-bow","Modrinth":"lanterns-bow"},{"Id":8188,"Name":"","CurseForge":"auto-crouch","Modrinth":"auto-crouch"},{"Id":8189,"Name":"","CurseForge":"my-village-pack","Modrinth":"my_village_pack"},{"Id":8190,"Name":"","CurseForge":"variant-sticks-stuff","Modrinth":"variant-sticks-stuff"},{"Id":8190,"Name":"","CurseForge":"","Modrinth":"variant-sticks-and-stuff"},{"Id":8191,"Name":"","CurseForge":"multiple-server-lists","Modrinth":"multiple-server-lists"},{"Id":8192,"Name":"","CurseForge":"superflat-biomes","Modrinth":""},{"Id":8193,"Name":"","CurseForge":"combat-music","Modrinth":"combat-music"},{"Id":8194,"Name":"Yuo的更多附魔 (YuoEnchants)","CurseForge":"yuoenchants","Modrinth":""},{"Id":8195,"Name":"","CurseForge":"hibernal-herbs","Modrinth":"hibernal-herbs"},{"Id":8196,"Name":"","CurseForge":"better-resource-pack-sorting","Modrinth":"better-resource-pack-sorting"},{"Id":8197,"Name":"物理声效重制版 (Sound Physics Remastered)","CurseForge":"sound-physics-remastered","Modrinth":"sound-physics-remastered"},{"Id":8198,"Name":"Quark3951号issue修复 (FixQuark3951)","CurseForge":"","Modrinth":"fix-quark-3951"},{"Id":8199,"Name":"","CurseForge":"starcoffee","Modrinth":""},{"Id":8200,"Name":"","CurseForge":"seed-finder-mod","Modrinth":"seedfindermod"},{"Id":8201,"Name":"","CurseForge":"potato-food","Modrinth":""},{"Id":8203,"Name":"","CurseForge":"compassplus","Modrinth":""},{"Id":8204,"Name":"机械动力:工业长路 (Create: Industry/Create: The Factory Must Grow)","CurseForge":"create-industry","Modrinth":"create-tfmg"},{"Id":8205,"Name":"","CurseForge":"simple-splash-screen","Modrinth":"simple-splash-screen"},{"Id":8206,"Name":"","CurseForge":"unusual-prehistory-forge","Modrinth":"unusual-prehistory-forge"},{"Id":8207,"Name":"生物圈 (Biosphere)","CurseForge":"biospheres","Modrinth":""},{"Id":8208,"Name":"","CurseForge":"qkl","Modrinth":"qkl"},{"Id":8210,"Name":"动态的树:科技复兴附属 (Dynamic Trees - Tech Reborn)","CurseForge":"dynamic-trees-tech-reborn","Modrinth":""},{"Id":8212,"Name":"","CurseForge":"daylight-mobs-reborn","Modrinth":"daylight-mobs-reborn"},{"Id":8214,"Name":"","CurseForge":"toast-manager","Modrinth":""},{"Id":8215,"Name":"","CurseForge":"explosives-i-approve","Modrinth":""},{"Id":8216,"Name":"矿工乐事 (Miner's Delight / Miner's Delight +)","CurseForge":"miners-delight-plus","Modrinth":"miners-delight"},{"Id":8217,"Name":"","CurseForge":"igniting-arrows","Modrinth":""},{"Id":8218,"Name":"","CurseForge":"rise-of-the-animagus","Modrinth":""},{"Id":8219,"Name":"","CurseForge":"lost-books","Modrinth":""},{"Id":8220,"Name":"","CurseForge":"shingeki-no-kyojin-attack-on-titan","Modrinth":""},{"Id":8221,"Name":"","CurseForge":"helicopters-madness","Modrinth":"helicopters-madness"},{"Id":8222,"Name":"","CurseForge":"fanon-mutant-entities","Modrinth":""},{"Id":8223,"Name":"更多附魔重置版 (TechnicalEnchant+)","CurseForge":"technical-enchant","Modrinth":"technical-enchant%2B"},{"Id":8224,"Name":"","CurseForge":"naturally-spawning-vex","Modrinth":""},{"Id":8225,"Name":"","CurseForge":"better-game-menu","Modrinth":"better-game-menu"},{"Id":8227,"Name":"","CurseForge":"seasonhud","Modrinth":"seasonhud"},{"Id":8227,"Name":"","CurseForge":"seasonhud-fabric","Modrinth":"seasonhud-fabric"},{"Id":8228,"Name":"堆叠到附近的箱子 (Stack to Nearby Chests)","CurseForge":"stack-to-nearby-chests","Modrinth":"stack-to-nearby-chests"},{"Id":8229,"Name":"","CurseForge":"gmod-title-screen","Modrinth":"gmod-title-screen"},{"Id":8230,"Name":"机械动力:汽鸣铁道 (Create: Steam 'n' Rails)","CurseForge":"create-steam-n-rails","Modrinth":"create-steam-n-rails"},{"Id":8231,"Name":"","CurseForge":"neutron","Modrinth":""},{"Id":8232,"Name":"应用厨房 (Applied Cooking)","CurseForge":"applied-cooking","Modrinth":"applied-cooking"},{"Id":8233,"Name":"投影打印机 (Litematica Printer)","CurseForge":"","Modrinth":"litematica-printer"},{"Id":8234,"Name":"","CurseForge":"recipe-printer","Modrinth":"recipe-printer"},{"Id":8235,"Name":"","CurseForge":"botarium","Modrinth":"botarium"},{"Id":8236,"Name":"","CurseForge":"qfapi-and-qsl-biomefix-1-18-2","Modrinth":"qsl-biomefix"},{"Id":8238,"Name":"","CurseForge":"","Modrinth":"cotton"},{"Id":8240,"Name":"蜂蜜拓展 (Honey Expansion)","CurseForge":"honey-expansion-add-on-for-farmers-delight","Modrinth":""},{"Id":8241,"Name":"","CurseForge":"moguns","Modrinth":"mo-guns"},{"Id":8242,"Name":"","CurseForge":"dayz-minecraft","Modrinth":""},{"Id":8243,"Name":"灌注祛魔台 (Infusion Table)","CurseForge":"infusion-table","Modrinth":"infusion-table"},{"Id":8244,"Name":"","CurseForge":"backroomtastic","Modrinth":""},{"Id":8245,"Name":"经验之谈 (XP's Things)","CurseForge":"xps-things","Modrinth":""},{"Id":8246,"Name":"","CurseForge":"gravityapi","Modrinth":"gravity-api"},{"Id":8247,"Name":"","CurseForge":"fabric-super-secret-settings","Modrinth":"super-secret-revival"},{"Id":8248,"Name":"","CurseForge":"item-alchemy-fabric","Modrinth":"item-alchemy"},{"Id":8249,"Name":"蝙蝠鞘翅 (Bat Elytra)","CurseForge":"bat-elytra","Modrinth":"bat-elytra"},{"Id":8250,"Name":"","CurseForge":"super-secret-settings","Modrinth":"super-secret-settings"},{"Id":8252,"Name":"","CurseForge":"","Modrinth":"plumeconfig"},{"Id":8253,"Name":"","CurseForge":"geophilic","Modrinth":"geophilic"},{"Id":8254,"Name":"","CurseForge":"critter-fights","Modrinth":""},{"Id":8255,"Name":"","CurseForge":"hypothermic","Modrinth":"hypothermic"},{"Id":8256,"Name":"不秘密 (NoSecrets)","CurseForge":"nosecrets","Modrinth":""},{"Id":8257,"Name":"","CurseForge":"extra-creeper-types","Modrinth":""},{"Id":8258,"Name":"","CurseForge":"loot-casket","Modrinth":""},{"Id":8259,"Name":"","CurseForge":"farmers-bundle-of-joy","Modrinth":""},{"Id":8260,"Name":"","CurseForge":"musical-allays","Modrinth":"musical-allays"},{"Id":8261,"Name":"","CurseForge":"pure-chaos-chaos-awakens","Modrinth":""},{"Id":8262,"Name":"","CurseForge":"flatter-entities","Modrinth":"flatter-entities"},{"Id":8263,"Name":"","CurseForge":"daves-potioneering","Modrinth":"daves-potioneering"},{"Id":8264,"Name":"","CurseForge":"last-days-of-humanity-tweaks","Modrinth":""},{"Id":8265,"Name":"","CurseForge":"space-bosstools-giselle-addon","Modrinth":""},{"Id":8266,"Name":"刷怪蛋配方 (Spawn Eggs Recipes)","CurseForge":"","Modrinth":"ser"},{"Id":8267,"Name":"","CurseForge":"mined-rider-kuuga","Modrinth":""},{"Id":8268,"Name":"","CurseForge":"inventory-essentials","Modrinth":"inventory-essentials"},{"Id":8268,"Name":"","CurseForge":"inventory-essentials-fabric","Modrinth":""},{"Id":8269,"Name":"星辉附加 (Astral Additions)","CurseForge":"astral-additions","Modrinth":""},{"Id":8270,"Name":"","CurseForge":"simple-copper-pipes","Modrinth":"simple-copper-pipes"},{"Id":8270,"Name":"","CurseForge":"simple-copper-pipes-forge","Modrinth":""},{"Id":8271,"Name":"高级NBT提示框 (Advanced NBT Tooltips)","CurseForge":"advanced-nbt-tooltips","Modrinth":"advanced-nbt-tooltips"},{"Id":8272,"Name":"","CurseForge":"follow-me","Modrinth":"follow-me"},{"Id":8273,"Name":"","CurseForge":"stabx-modern-guns","Modrinth":"stabx-modern-guns"},{"Id":8274,"Name":"锤子合集 (JustHammers)","CurseForge":"justhammers","Modrinth":"just-hammers"},{"Id":8275,"Name":"强化深板岩的合成 (Reinforced Deepslate Crafting)","CurseForge":"reinforced-deepslate-crafting","Modrinth":""},{"Id":8276,"Name":"JAOPCA自定义 (JAOPCA Custom)","CurseForge":"jaopcacustom","Modrinth":""},{"Id":8277,"Name":"","CurseForge":"friendly-fire","Modrinth":"friendly-fire"},{"Id":8278,"Name":"","CurseForge":"companion","Modrinth":"companion"},{"Id":8278,"Name":"","CurseForge":"companion-fabric","Modrinth":""},{"Id":8279,"Name":"","CurseForge":"sebastrnlib","Modrinth":"sebastrnlib"},{"Id":8280,"Name":"","CurseForge":"what-music-is-this","Modrinth":""},{"Id":8282,"Name":"元素战斗 (Elemental Combat)","CurseForge":"elemental-combat","Modrinth":""},{"Id":8283,"Name":"烘烤 (Roasted)","CurseForge":"roasted","Modrinth":"roasted"},{"Id":8284,"Name":"魔戒攻击指示器 (LOTR Attack Indicator Addon)","CurseForge":"lotr-attack-indicator-addon","Modrinth":"lotr-attack-indicator"},{"Id":8285,"Name":"","CurseForge":"steels-delight","Modrinth":""},{"Id":8286,"Name":"魔戒袋子内容展示 (LOTR Pouch Viewer Addon)","CurseForge":"lotr-pouch-viewer-addon","Modrinth":"lotr-pouch-viewer"},{"Id":8287,"Name":"快餐乐事 (FastFood Delight)","CurseForge":"fastfood-delight","Modrinth":""},{"Id":8288,"Name":"节日乐事 (Festive Delight)","CurseForge":"festive-delight","Modrinth":"festive-delight"},{"Id":8289,"Name":"","CurseForge":"project-arsenal","Modrinth":""},{"Id":8290,"Name":"浴室方块 (Bathroom Blocks)","CurseForge":"bathroom-blocks","Modrinth":"bathroom-blocks"},{"Id":8291,"Name":"","CurseForge":"galosphere","Modrinth":"galosphere"},{"Id":8292,"Name":"DFU 禁用器 (Lazydfu-agent)","CurseForge":"lazydfu-agent","Modrinth":""},{"Id":8295,"Name":"下界蘑菇煲 (Nether Mushroom Stew)","CurseForge":"nether-mushroom-stew","Modrinth":""},{"Id":8296,"Name":"","CurseForge":"shibapi","Modrinth":""},{"Id":8297,"Name":"","CurseForge":"galosphere-delight-a-farmers-delight-add-on","Modrinth":""},{"Id":8298,"Name":"","CurseForge":"strong-crops","Modrinth":"strong-crops"},{"Id":8299,"Name":"素食乐事 (Vegetarian Delight)","CurseForge":"vegetarian-delight","Modrinth":""},{"Id":8300,"Name":"","CurseForge":"resourceful-config","Modrinth":"resourceful-config"},{"Id":8301,"Name":"","CurseForge":"coppers-delight","Modrinth":""},{"Id":8302,"Name":"","CurseForge":"enderites-delight","Modrinth":""},{"Id":8303,"Name":"","CurseForge":"simply-steel-forge","Modrinth":""},{"Id":8305,"Name":"","CurseForge":"wilder-world","Modrinth":"wilder-world"},{"Id":8306,"Name":"","CurseForge":"advanced-solar-materials","Modrinth":""},{"Id":8307,"Name":"","CurseForge":"","Modrinth":"survival-tooltips"},{"Id":8308,"Name":"","CurseForge":"","Modrinth":"notifyme"},{"Id":8309,"Name":"","CurseForge":"","Modrinth":"damagedarrows"},{"Id":8310,"Name":"傀儡装配 (Modular Golems)","CurseForge":"modulargolems","Modrinth":"modular-golems"},{"Id":8311,"Name":"","CurseForge":"tooltip-scroll-fabric","Modrinth":"tooltip-scroll"},{"Id":8312,"Name":"","CurseForge":"legoatooms-golden-berries","Modrinth":"golden_berries"},{"Id":8313,"Name":"","CurseForge":"nyfcore","Modrinth":""},{"Id":8314,"Name":"荒野之声 (Call of the Wild)","CurseForge":"call-of-the-wild","Modrinth":""},{"Id":8315,"Name":"","CurseForge":"more-lapis-lazuli","Modrinth":"more-lapis-lazuli"},{"Id":8316,"Name":"","CurseForge":"slimefun-essentials","Modrinth":"slimefun-essentials"},{"Id":8317,"Name":"装饰乐事 (Decoration Delight: Refurbished)","CurseForge":"decoration-delight","Modrinth":""},{"Id":8318,"Name":"Havio的烹饪书 (Havio's Cookbook)","CurseForge":"","Modrinth":"havio-cookbook"},{"Id":8319,"Name":"","CurseForge":"formidablefarmland","Modrinth":"formidablefarmland"},{"Id":8321,"Name":"","CurseForge":"survivality","Modrinth":"survivality"},{"Id":8322,"Name":"动态准星兼容 (Dynamic Crosshair Compat)","CurseForge":"dynamic-crosshair-compat","Modrinth":"dynamiccrosshaircompat"},{"Id":8323,"Name":"","CurseForge":"litewolfcore","Modrinth":""},{"Id":8324,"Name":"","CurseForge":"vineyard-mod","Modrinth":""},{"Id":8325,"Name":"","CurseForge":"","Modrinth":"affectionate"},{"Id":8326,"Name":"","CurseForge":"mo-colors","Modrinth":"mo-colors"},{"Id":8327,"Name":"","CurseForge":"peek","Modrinth":"peek"},{"Id":8328,"Name":"","CurseForge":"fancy-dyes","Modrinth":"fancy-dyes"},{"Id":8330,"Name":"","CurseForge":"extra-mod-integrations","Modrinth":"extra-mod-integrations"},{"Id":8331,"Name":"","CurseForge":"mod-settings","Modrinth":"mod-settings"},{"Id":8332,"Name":"","CurseForge":"dont-disappear-on-me","Modrinth":"dont-dissapear"},{"Id":8333,"Name":"快速退出 (FastQuit)","CurseForge":"fastquit","Modrinth":"fastquit"},{"Id":8334,"Name":"","CurseForge":"violeta-cannons","Modrinth":""},{"Id":8335,"Name":"","CurseForge":"war-of-valor","Modrinth":""},{"Id":8337,"Name":"","CurseForge":"no-tool-break","Modrinth":""},{"Id":8338,"Name":"动态模糊 (Motion Blur)","CurseForge":"motionblur-fabric","Modrinth":"motionblur"},{"Id":8339,"Name":"","CurseForge":"epic-paladins","Modrinth":""},{"Id":8340,"Name":"生灵火盆 (Brazier)","CurseForge":"brazier","Modrinth":"brazier"},{"Id":8341,"Name":"","CurseForge":"stackcalc-revived","Modrinth":"stackcalc-revived"},{"Id":8342,"Name":"乐在星期四 (With Thursday Delight)","CurseForge":"with-thursday-delight","Modrinth":""},{"Id":8343,"Name":"锇 (Osmium)","CurseForge":"osmiummod","Modrinth":"osmium"},{"Id":8344,"Name":"","CurseForge":"","Modrinth":"command-gui-buttons"},{"Id":8345,"Name":"","CurseForge":"wagyourminimap","Modrinth":"wagyourminimap"},{"Id":8346,"Name":"区块淡入动画 (Chunks fade in)","CurseForge":"chunks-fade-in","Modrinth":"chunks-fade-in"},{"Id":8347,"Name":"刀剑展示架 (Sword Displays)","CurseForge":"sword-displays","Modrinth":""},{"Id":8348,"Name":"","CurseForge":"slabfishs-delights","Modrinth":""},{"Id":8349,"Name":"","CurseForge":"saltymod-expanded","Modrinth":"saltymod-expanded"},{"Id":8350,"Name":"","CurseForge":"masonry-blocks","Modrinth":""},{"Id":8351,"Name":"","CurseForge":"","Modrinth":"sqlib"},{"Id":8352,"Name":"","CurseForge":"mssql-jdbc","Modrinth":""},{"Id":8353,"Name":"自定义包裹 (Packages)","CurseForge":"packages","Modrinth":"packages"},{"Id":8354,"Name":"","CurseForge":"giant-spawn","Modrinth":"giant-spawn"},{"Id":8354,"Name":"","CurseForge":"giant-spawn-fabric","Modrinth":""},{"Id":8355,"Name":"纸板箱的交通扩展 (Nemo's Transit Expansion)","CurseForge":"","Modrinth":"mtr-nte"},{"Id":8356,"Name":"","CurseForge":"serene-shrubbery","Modrinth":"serene-shrubbery"},{"Id":8357,"Name":"死亡花园 (Gardens of the Dead)","CurseForge":"gardens-of-the-dead","Modrinth":"gardens-of-the-dead"},{"Id":8358,"Name":"海盗帽子 (Pirate Hats)","CurseForge":"pirate-hats","Modrinth":""},{"Id":8359,"Name":"","CurseForge":"decor4fabric","Modrinth":""},{"Id":8360,"Name":"","CurseForge":"mob-skills","Modrinth":""},{"Id":8361,"Name":"黏土不再制衡 (Clay No More Balanced)","CurseForge":"clay-no-more-balanced","Modrinth":""},{"Id":8362,"Name":"","CurseForge":"blossom","Modrinth":"blossom"},{"Id":8363,"Name":"","CurseForge":"whipdashing","Modrinth":"whipdashing"},{"Id":8364,"Name":"","CurseForge":"potiontimestacker-forge","Modrinth":"timestacker"},{"Id":8365,"Name":"","CurseForge":"breezy","Modrinth":"breezy"},{"Id":8366,"Name":"","CurseForge":"heart-balance","Modrinth":"heart-balance"},{"Id":8367,"Name":"","CurseForge":"throwabletorch-fabric","Modrinth":"throwabletorch"},{"Id":8367,"Name":"","CurseForge":"throwabletorch","Modrinth":""},{"Id":8368,"Name":"","CurseForge":"potion-descriptions","Modrinth":""},{"Id":8368,"Name":"","CurseForge":"potion-descriptions-fabric","Modrinth":""},{"Id":8369,"Name":"","CurseForge":"half-doors","Modrinth":"halfdoors"},{"Id":8370,"Name":"","CurseForge":"decor4forge","Modrinth":""},{"Id":8372,"Name":"","CurseForge":"mineterrariabosses","Modrinth":""},{"Id":8373,"Name":"群系罐子 (Biomes in Jars)","CurseForge":"biomes-in-jars-forge","Modrinth":"biomes-in-jars"},{"Id":8373,"Name":"群系罐子 (Biomes in Jars)","CurseForge":"biomes-in-jars-fabric","Modrinth":""},{"Id":8374,"Name":"","CurseForge":"","Modrinth":"bocchitheblock"},{"Id":8375,"Name":"","CurseForge":"craftable-potion-combinations","Modrinth":"craftablepotioncombinations"},{"Id":8376,"Name":"","CurseForge":"polylib","Modrinth":"polylib"},{"Id":8377,"Name":"苦力怕火焰弹修复 (Creeper Fire Charge Fix)","CurseForge":"","Modrinth":"creeper-fire-charge-fix"},{"Id":8378,"Name":"","CurseForge":"tags-binder","Modrinth":"tags-binder"},{"Id":8379,"Name":"","CurseForge":"fastcaps","Modrinth":""},{"Id":8380,"Name":"","CurseForge":"throwable-fluids","Modrinth":"throwable-fluids"},{"Id":8381,"Name":"时间之瓶 Fabric 版 (Time in a Bottle (Fabric))","CurseForge":"time-in-a-bottle","Modrinth":"time-in-a-bottle"},{"Id":8382,"Name":"下界合金增强:斯巴达的武器 (Upgraded Netherite : Spartan Weaponry)","CurseForge":"upgraded-netherite-spartan-weaponry","Modrinth":""},{"Id":8383,"Name":"","CurseForge":"simple-jams","Modrinth":""},{"Id":8384,"Name":"","CurseForge":"nethers-cruelty","Modrinth":""},{"Id":8386,"Name":"基石-清理 (Atom-Sweep)","CurseForge":"atom-sweep","Modrinth":""},{"Id":8387,"Name":"","CurseForge":"the-gold-rush","Modrinth":""},{"Id":8388,"Name":"","CurseForge":"optifabric-origins","Modrinth":"optifabric-origins"},{"Id":8389,"Name":"","CurseForge":"lng-deco","Modrinth":""},{"Id":8390,"Name":"黑暗 RPG:重生 (DarkRPG: REBORN)","CurseForge":"darkrpg-reborn","Modrinth":""},{"Id":8391,"Name":"模组管理器 (Modpack Manager)","CurseForge":"modpack-manager","Modrinth":"modpack-manager"},{"Id":8392,"Name":"","CurseForge":"rocket-connector","Modrinth":""},{"Id":8393,"Name":"","CurseForge":"hot-and-cold","Modrinth":""},{"Id":8394,"Name":"","CurseForge":"donthityourfriend","Modrinth":""},{"Id":8395,"Name":"","CurseForge":"drink-beer-unofficial-clockwerk-edition","Modrinth":""},{"Id":8396,"Name":"","CurseForge":"novacraft","Modrinth":"novacraft"},{"Id":8399,"Name":"","CurseForge":"better-hurt-timer","Modrinth":""},{"Id":8400,"Name":"喝啤酒啦:再来一杯 (Drink Beer Refill)","CurseForge":"drink-beer-refill","Modrinth":"drink-beer-refill"},{"Id":8401,"Name":"","CurseForge":"minecraft-style-paintings","Modrinth":""},{"Id":8402,"Name":"","CurseForge":"potato-cooking","Modrinth":""},{"Id":8403,"Name":"","CurseForge":"","Modrinth":"conveniented-forge-tags"},{"Id":8404,"Name":"","CurseForge":"clienttime","Modrinth":""},{"Id":8405,"Name":"","CurseForge":"mcpitanlibarch","Modrinth":"mcpitanlibarch"},{"Id":8407,"Name":"粪便 (Manure)","CurseForge":"manure","Modrinth":"manure"},{"Id":8407,"Name":"粪便 (Manure)","CurseForge":"manure-fabric","Modrinth":""},{"Id":8408,"Name":"","CurseForge":"well","Modrinth":"well"},{"Id":8410,"Name":"","CurseForge":"enderling-invaders","Modrinth":"enderling-invaders"},{"Id":8411,"Name":"","CurseForge":"proton","Modrinth":""},{"Id":8412,"Name":"","CurseForge":"zetter-gallery","Modrinth":"zetter-gallery-share-paintings"},{"Id":8413,"Name":"","CurseForge":"hedge-magic","Modrinth":"hedge-magic"},{"Id":8414,"Name":"奥术增补 (Arcane Additions)","CurseForge":"arcane-additions","Modrinth":"arcaneadditions"},{"Id":8416,"Name":"更多乐器 (Instrument++)","CurseForge":"instrument","Modrinth":"instrument%2B%2B"},{"Id":8417,"Name":"","CurseForge":"rpg-gods","Modrinth":""},{"Id":8419,"Name":"","CurseForge":"mob-crossing","Modrinth":""},{"Id":8420,"Name":"","CurseForge":"just-enough-vehicles","Modrinth":""},{"Id":8422,"Name":"","CurseForge":"max-health-fix","Modrinth":"max-health-fix"},{"Id":8423,"Name":"","CurseForge":"synlib","Modrinth":"synlib"},{"Id":8424,"Name":"","CurseForge":"tell-me-my-items","Modrinth":"tell-me-my-items"},{"Id":8425,"Name":"","CurseForge":"pollen","Modrinth":""},{"Id":8426,"Name":"","CurseForge":"mavapi","Modrinth":"mavapi"},{"Id":8427,"Name":"","CurseForge":"player-hopper","Modrinth":"player-hopper"},{"Id":8428,"Name":"","CurseForge":"guaranteed-villager-conversion","Modrinth":""},{"Id":8429,"Name":"风铃 (Windchimes)","CurseForge":"windchimes","Modrinth":"windchimes"},{"Id":8431,"Name":"钻石锭 (Diamond Ingots)","CurseForge":"diamond-ingots","Modrinth":"diamond-ingots"},{"Id":8433,"Name":"","CurseForge":"inventory-sorting","Modrinth":"inventory-sorting"},{"Id":8434,"Name":"","CurseForge":"mine-piece","Modrinth":"orca-mine-piece"},{"Id":8435,"Name":"","CurseForge":"mine-piece-animation","Modrinth":""},{"Id":8436,"Name":"","CurseForge":"hbms-nuclear-tech-mod-extended-edition","Modrinth":""},{"Id":8437,"Name":"","CurseForge":"custom-skyboxes","Modrinth":""},{"Id":8438,"Name":"可繁殖的杀手兔 (Breedable Killer Rabbit)","CurseForge":"breedable-killer-rabbit","Modrinth":"breedable-killer-rabbit"},{"Id":8438,"Name":"可繁殖的杀手兔 (Breedable Killer Rabbit)","CurseForge":"breedable-killer-rabbit-fabric","Modrinth":""},{"Id":8439,"Name":"","CurseForge":"bqenergyexpansion","Modrinth":""},{"Id":8440,"Name":"法术与法杖 (Magic&Wand)","CurseForge":"magic-and-wand","Modrinth":""},{"Id":8441,"Name":"FTB任务本地化键:重置 (Re-FTBQLocalizationKeys)","CurseForge":"re-ftbqkeys","Modrinth":"re-ftbqkeys"},{"Id":8442,"Name":"附魔排序 (Enchantment Sort)","CurseForge":"enchantment-sort","Modrinth":""},{"Id":8443,"Name":"换行修复 (WrapFix)","CurseForge":"wrapfix","Modrinth":""},{"Id":8444,"Name":"宝石蟹 (Gem Crabs)","CurseForge":"gem-crabs","Modrinth":""},{"Id":8445,"Name":"机械动力:彩虹化合物 (Create: Rainbow Compound)","CurseForge":"create-rainbow-compound","Modrinth":"rainbowcompound"},{"Id":8446,"Name":"","CurseForge":"inmis-back-pack-mod-retextured","Modrinth":""},{"Id":8447,"Name":"","CurseForge":"thonkutil","Modrinth":""},{"Id":8448,"Name":"","CurseForge":"xp-storage","Modrinth":"xp-storage"},{"Id":8449,"Name":"","CurseForge":"xp-storage-trinkets","Modrinth":"xp-storage-trinkets"},{"Id":8450,"Name":"","CurseForge":"carpet-layers","Modrinth":"carpet-layers"},{"Id":8451,"Name":"","CurseForge":"itemswapper","Modrinth":"itemswapper"},{"Id":8452,"Name":"","CurseForge":"caxton","Modrinth":"caxton"},{"Id":8453,"Name":"","CurseForge":"treasure2-wizardry-loot-pack","Modrinth":""},{"Id":8454,"Name":"来自外太空的激光爬行者机器恐龙骑士 (Laser Creeper Robot Dino Riders From Space)","CurseForge":"laser-creeper-robot-dino-riders-from-space","Modrinth":""},{"Id":8455,"Name":"Paladin的家具 (Paladin's Furniture)","CurseForge":"paladins-furniture","Modrinth":"paladins-furniture"},{"Id":8456,"Name":"迷你状态效果配置 (Compact Status Effects)","CurseForge":"compact-status-effects","Modrinth":""},{"Id":8456,"Name":"迷你状态效果配置 (Compact Status Effects)","CurseForge":"compact-status-effects-forge","Modrinth":""},{"Id":8458,"Name":"末地哥布林商人 (End Goblin Traders)","CurseForge":"end-goblin-traders-fabric","Modrinth":""},{"Id":8459,"Name":"","CurseForge":"","Modrinth":"mikulib"},{"Id":8461,"Name":"玩家数据同步 (PlayerSync)","CurseForge":"playersync","Modrinth":"playersync"},{"Id":8462,"Name":"机械动力:更多土豆 (Create: More potatoes)","CurseForge":"create-more-potatoes","Modrinth":"create-more-potatoes"},{"Id":8462,"Name":"机械动力:更多土豆 (Create: More potatoes)","CurseForge":"create-more-potatoes-fabric","Modrinth":""},{"Id":8463,"Name":"","CurseForge":"primitive-beasts","Modrinth":""},{"Id":8464,"Name":"","CurseForge":"raided","Modrinth":"raided"},{"Id":8465,"Name":"","CurseForge":"moisturization-fabric","Modrinth":"moisturization"},{"Id":8466,"Name":"","CurseForge":"treasure2-twilight-forest-loot-pack","Modrinth":""},{"Id":8467,"Name":"","CurseForge":"sanity-and-insanity","Modrinth":""},{"Id":8468,"Name":"","CurseForge":"crops-love-rain","Modrinth":"crops-love-rain"},{"Id":8469,"Name":"","CurseForge":"till-zombies-tear-us-apart","Modrinth":""},{"Id":8470,"Name":"","CurseForge":"difficult-raids","Modrinth":"difficult-raids"},{"Id":8472,"Name":"","CurseForge":"gag","Modrinth":"gag"},{"Id":8473,"Name":"","CurseForge":"bleach-awaken-by-deephantom15","Modrinth":""},{"Id":8474,"Name":"","CurseForge":"kleiders-custom-renderer-api","Modrinth":"kleiders-custom-renderer-api"},{"Id":8475,"Name":"","CurseForge":"chefs-delight-fabric","Modrinth":"chefs-delight"},{"Id":8475,"Name":"","CurseForge":"chefs-delight-forge","Modrinth":""},{"Id":8477,"Name":"","CurseForge":"mcgltf","Modrinth":"mcgltf"},{"Id":8478,"Name":"给您下药了 (Add Potion into Your Food)","CurseForge":"add-potion-into-your-food","Modrinth":""},{"Id":8480,"Name":"","CurseForge":"","Modrinth":"chunk-bordium"},{"Id":8481,"Name":"神秘能源延续版 (Thaumic Energistics Extended Life)","CurseForge":"thaumic-energistics-extended-life","Modrinth":""},{"Id":8482,"Name":"机械动力:末影传输 (Create: Ender Transmission)","CurseForge":"create-ender-transmission","Modrinth":"create-ender-transmission"},{"Id":8483,"Name":"","CurseForge":"horror-elements-mod","Modrinth":""},{"Id":8484,"Name":"机械动力:更多齿轮 (Create: Extended Cogwheels)","CurseForge":"create-extended-cogs","Modrinth":"extended-cogwheels"},{"Id":8484,"Name":"机械动力:更多齿轮 (Create: Extended Cogwheels)","CurseForge":"create-extended-cogwheels-fabric","Modrinth":""},{"Id":8485,"Name":"","CurseForge":"create-connected-block-textures","Modrinth":""},{"Id":8487,"Name":"","CurseForge":"cccbridge","Modrinth":"cccbridge"},{"Id":8488,"Name":"","CurseForge":"liquid-burner","Modrinth":"liquid-burner"},{"Id":8490,"Name":"","CurseForge":"create-electric-stonks","Modrinth":""},{"Id":8491,"Name":"机械动力:更多存储挂载 (Create: Mounted Storages)","CurseForge":"create-mounted-storages","Modrinth":""},{"Id":8492,"Name":"我的细胞 (Mine Cells - Dead Cells Mod)","CurseForge":"minecells","Modrinth":"minecells"},{"Id":8493,"Name":"热浪 (Heatwaves)","CurseForge":"","Modrinth":"heatwaves"},{"Id":8494,"Name":"","CurseForge":"steves-mini-pouch","Modrinth":""},{"Id":8495,"Name":"","CurseForge":"infinite-abyss","Modrinth":"infinite-abyss"},{"Id":8496,"Name":"","CurseForge":"","Modrinth":"ktice"},{"Id":8497,"Name":"","CurseForge":"creator-overlays","Modrinth":"creatoroverlays"},{"Id":8498,"Name":"","CurseForge":"maplecraft","Modrinth":""},{"Id":8499,"Name":"","CurseForge":"invutils","Modrinth":"invutils"},{"Id":8500,"Name":"手工艺:升级版 (With Crafts: Upgraded)","CurseForge":"","Modrinth":"withfire-upgraded"},{"Id":8501,"Name":"","CurseForge":"","Modrinth":"usage-ticker"},{"Id":8502,"Name":"","CurseForge":"distant-worlds","Modrinth":"distant-worlds"},{"Id":8504,"Name":"","CurseForge":"","Modrinth":"advanced-vanilla-logistics"},{"Id":8505,"Name":"","CurseForge":"simple-flashlight-port","Modrinth":"flashlight"},{"Id":8506,"Name":"始终开放水域 (AlwaysOpenWater)","CurseForge":"alwaysopenwater","Modrinth":"alwaysopenwater"},{"Id":8507,"Name":"任务牌匾 (Quest Plaques)","CurseForge":"quest-plaques","Modrinth":"quest-plaques"},{"Id":8509,"Name":"视频播放器 (Video Player)","CurseForge":"video-player","Modrinth":"video-player"},{"Id":8510,"Name":"","CurseForge":"stendhal","Modrinth":"stendhal"},{"Id":8511,"Name":"","CurseForge":"dynamic-surroundings-remastered-fabric-edition","Modrinth":"dynamicsurroundings_remasteredfabric"},{"Id":8512,"Name":"","CurseForge":"terraplusplus","Modrinth":""},{"Id":8513,"Name":"布罗艾 (Blåhaj)","CurseForge":"blahaj","Modrinth":"blahaj"},{"Id":8514,"Name":"","CurseForge":"tinkers-levelling-addon","Modrinth":"tinkers-levelling-addon"},{"Id":8515,"Name":"","CurseForge":"terramap","Modrinth":"terramap"},{"Id":8517,"Name":"","CurseForge":"villagemarkermod-for-liteloader","Modrinth":""},{"Id":8518,"Name":"显示耐久 (Show Durability)","CurseForge":"","Modrinth":"show-durability"},{"Id":8519,"Name":"禁用末影人搬运 (Disable Enderman Picking Up Blocks)","CurseForge":"disable-enderman-picking-up-blocks","Modrinth":"disable-enderman-picking-up-blocks"},{"Id":8520,"Name":"","CurseForge":"beautified-chat-server","Modrinth":"beautified-chat-server"},{"Id":8520,"Name":"","CurseForge":"beautified-chat-server-fabric","Modrinth":""},{"Id":8521,"Name":"","CurseForge":"beautified-chat-client","Modrinth":"beautified-chat-client"},{"Id":8521,"Name":"","CurseForge":"beautified-chat-client-fabric","Modrinth":""},{"Id":8523,"Name":"","CurseForge":"axes-are-weapons","Modrinth":"axes-are-weapons"},{"Id":8524,"Name":"诅咒+ (Curse+)","CurseForge":"","Modrinth":"curse%2B"},{"Id":8525,"Name":"","CurseForge":"optifine-capes","Modrinth":""},{"Id":8527,"Name":"沉浸式飞机 (Immersive Aircraft)","CurseForge":"immersive-aircraft","Modrinth":"immersive-aircraft"},{"Id":8528,"Name":"","CurseForge":"default-world-generator","Modrinth":""},{"Id":8530,"Name":"帕斯特之梦 (PasterDream)","CurseForge":"pasterdream","Modrinth":""},{"Id":8531,"Name":"","CurseForge":"animalistic","Modrinth":""},{"Id":8532,"Name":"","CurseForge":"","Modrinth":"qdresloader"},{"Id":8534,"Name":"","CurseForge":"fabricskyboxes-interop","Modrinth":"nuit-interop"},{"Id":8535,"Name":"","CurseForge":"old-inventorism","Modrinth":""},{"Id":8536,"Name":"标题修复 (Title Fix)","CurseForge":"title-fix","Modrinth":"title-fix-mod"},{"Id":8537,"Name":"","CurseForge":"create-alloyed-guns","Modrinth":""},{"Id":8539,"Name":"","CurseForge":"luna-slimes","Modrinth":"luna-slimes"},{"Id":8540,"Name":"","CurseForge":"special-drops","Modrinth":""},{"Id":8541,"Name":"","CurseForge":"forgebrainlib","Modrinth":""},{"Id":8542,"Name":"","CurseForge":"render-360","Modrinth":""},{"Id":8544,"Name":"","CurseForge":"async-locator","Modrinth":"async-locator"},{"Id":8545,"Name":"提及 (MineMention)","CurseForge":"minemention","Modrinth":"minemention"},{"Id":8546,"Name":"马儿蹦跳 (Umapyoi)","CurseForge":"umapyoi","Modrinth":"umapyoi"},{"Id":8546,"Name":"马儿蹦跳 (Umapyoi)","CurseForge":"","Modrinth":"umapyoi-fabric"},{"Id":8547,"Name":"起源:满月 (Origins: Full Moon)","CurseForge":"origins-full-moon","Modrinth":""},{"Id":8548,"Name":"","CurseForge":"codechickenlib-unofficial","Modrinth":"codechickenlib-unofficial"},{"Id":8549,"Name":"鸡块核心非官方版 (CodeChickenCore Unofficial)","CurseForge":"codechickencore-unofficial","Modrinth":"codechickencore-unofficial"},{"Id":8550,"Name":"","CurseForge":"permafrost-biome","Modrinth":""},{"Id":8552,"Name":"","CurseForge":"ambient-additions","Modrinth":"ambientadditions"},{"Id":8553,"Name":"扫雷 (Minesweeper)","CurseForge":"sweep","Modrinth":""},{"Id":8555,"Name":"","CurseForge":"sekclib","Modrinth":""},{"Id":8556,"Name":"","CurseForge":"betweenlands-storage","Modrinth":""},{"Id":8557,"Name":"","CurseForge":"ore-stone-variants","Modrinth":""},{"Id":8558,"Name":"食物效果显示Forge版 (Food Effect Tooltips (Forge))","CurseForge":"food-effect-tooltips-forge","Modrinth":"food-effect-tooltips-forge"},{"Id":8559,"Name":"","CurseForge":"alexs-armoury","Modrinth":""},{"Id":8561,"Name":"","CurseForge":"dynamic-crops","Modrinth":"dynamic-crops"},{"Id":8562,"Name":"超级巧克力制造 (Super Chocolate Maker)","CurseForge":"super-chocolate-maker","Modrinth":""},{"Id":8563,"Name":"","CurseForge":"naturalized","Modrinth":""},{"Id":8565,"Name":"","CurseForge":"rsls","Modrinth":"rsls"},{"Id":8566,"Name":"","CurseForge":"emi-loot","Modrinth":"emi-loot"},{"Id":8568,"Name":"","CurseForge":"backhand","Modrinth":"backhand"},{"Id":8569,"Name":"Stone的烹饪书 (Stone's Cookbook)","CurseForge":"","Modrinth":"stones-cookbook"},{"Id":8571,"Name":"","CurseForge":"farmers-delight-jei-plugin","Modrinth":"just-enough-farmers-recipes"},{"Id":8572,"Name":"","CurseForge":"keybind-fix","Modrinth":"keybind-fix"},{"Id":8573,"Name":"村民之书:渗透者 (Tales of Villagers: The Infiltrators)","CurseForge":"tales-of-villagers-the-infiltrators","Modrinth":""},{"Id":8574,"Name":"","CurseForge":"","Modrinth":"morecullingextra"},{"Id":8575,"Name":"","CurseForge":"carpet-fixes","Modrinth":"carpet-fixes"},{"Id":8576,"Name":"ER 核心 (ER Core)","CurseForge":"er-core","Modrinth":"er-core"},{"Id":8577,"Name":"提升戒指 (Rings of Ascension)","CurseForge":"rings-of-ascension","Modrinth":"rings-of-ascension"},{"Id":8577,"Name":"提升戒指 (Rings of Ascension)","CurseForge":"fabric-rings-of-ascension","Modrinth":""},{"Id":8581,"Name":"","CurseForge":"blanket","Modrinth":"blanket"},{"Id":8582,"Name":"","CurseForge":"convenient-curios-container","Modrinth":"convenient_curios_container"},{"Id":8583,"Name":"","CurseForge":"moogs-voyager-structures","Modrinth":"moogs-voyager-structures"},{"Id":8585,"Name":"额外虚无世界信息 (Extra AoA Info)","CurseForge":"extra-aoa-info","Modrinth":""},{"Id":8586,"Name":"","CurseForge":"opulence","Modrinth":"opulence"},{"Id":8587,"Name":"孤独的生物群系 (Lonely Biome)","CurseForge":"lonely-biome","Modrinth":""},{"Id":8588,"Name":"","CurseForge":"lamps","Modrinth":""},{"Id":8590,"Name":"","CurseForge":"generic-ecosphere","Modrinth":""},{"Id":8591,"Name":"","CurseForge":"wired-redstone","Modrinth":"wiredredstone"},{"Id":8592,"Name":"","CurseForge":"pixelgalaxy","Modrinth":""},{"Id":8593,"Name":"漏斗+ (Hopper+)","CurseForge":"hopper","Modrinth":""},{"Id":8594,"Name":"","CurseForge":"excalibur-the-mighty-sword","Modrinth":""},{"Id":8595,"Name":"深园小径 (Undergarden Paths)","CurseForge":"undergarden-paths","Modrinth":"undergarden-paths"},{"Id":8596,"Name":"深暗之园:Tetra 兼容 (Undergarden/Tetra Patch)","CurseForge":"undergarden-tetra-patch","Modrinth":""},{"Id":8597,"Name":"","CurseForge":"uncrafter","Modrinth":"uncrafter"},{"Id":8598,"Name":"","CurseForge":"","Modrinth":"pebblegetter"},{"Id":8600,"Name":"","CurseForge":"pangea-ultima","Modrinth":""},{"Id":8601,"Name":"FPS优化Legacy Fabric版 (FPS Plus Legacy Fabric)","CurseForge":"","Modrinth":"fpspluslf"},{"Id":8602,"Name":"","CurseForge":"table-top-craft","Modrinth":"table-top-craft"},{"Id":8602,"Name":"","CurseForge":"table-top-craft-fabric","Modrinth":""},{"Id":8603,"Name":"","CurseForge":"ddyc","Modrinth":"ddyc"},{"Id":8604,"Name":"","CurseForge":"","Modrinth":"stonecutter-damage"},{"Id":8605,"Name":"","CurseForge":"shipping","Modrinth":"shipping"},{"Id":8606,"Name":"","CurseForge":"structureutils","Modrinth":""},{"Id":8607,"Name":"云音乐 (CloudMusic)","CurseForge":"","Modrinth":"cloudmusic"},{"Id":8608,"Name":"","CurseForge":"i-like-wood","Modrinth":""},{"Id":8609,"Name":"Macaw 的家具:超多生物群系附属 (Macaw's Furnitures - Biomes O' Plenty)","CurseForge":"macaws-furnitures-biomes-o-plenty","Modrinth":"macaws-furnitures-biomes-o-plenty"},{"Id":8610,"Name":"Macaw 的家具:你将去的生物群系附属 (Macaw's Furnitures - Oh The Biomes You'll Go)","CurseForge":"macaws-furnitures-oh-the-biomes-youll-go","Modrinth":"macaws-furnitures-oh-the-biomes-youll-go"},{"Id":8611,"Name":"","CurseForge":"armiger","Modrinth":""},{"Id":8612,"Name":"","CurseForge":"news-pillagers","Modrinth":""},{"Id":8613,"Name":"","CurseForge":"rangers-haven","Modrinth":""},{"Id":8614,"Name":"","CurseForge":"heyberryshutup","Modrinth":"heyberryshutup"},{"Id":8615,"Name":"","CurseForge":"destroy-on-death","Modrinth":"destroy-on-death"},{"Id":8616,"Name":"是,史蒂夫模型 (Yes Steve Model)","CurseForge":"","Modrinth":"yes-steve-model"},{"Id":8617,"Name":"Macaw 的屋顶:你将去的生物群系附属 (Macaw's Roofs - Oh The Biomes You'll Go)","CurseForge":"macaws-roofs-oh-the-biomes-youll-go","Modrinth":"macaws-roofs-oh-the-biomes-youll-go"},{"Id":8618,"Name":"Macaw 的屋顶:超多生物群系附属 (Macaw's Roofs - Biomes O' Plenty)","CurseForge":"macaws-roofs-biomes-o-plenty","Modrinth":""},{"Id":8618,"Name":"","CurseForge":"macaws-terraformersmc","Modrinth":"macaws-terraformersmc"},{"Id":8618,"Name":"Macaw 的屋顶:超多生物群系附属 (Macaw's Roofs - Biomes O' Plenty) - 原,","CurseForge":"","Modrinth":"macaws-roofs-biomes-o-plenty"},{"Id":8619,"Name":"","CurseForge":"configured-feature-saplings","Modrinth":"configured-feature-saplings"},{"Id":8620,"Name":"","CurseForge":"coyote-time","Modrinth":"coyote-time"},{"Id":8622,"Name":"Macaw 的桥梁:Modding Legacy 附属 (Macaw's Bridges - Modding Legacy)","CurseForge":"macaws-bridges-modding-legacy","Modrinth":""},{"Id":8623,"Name":"Macaw 的桥梁:Aurora 附属 (Macaw's Bridges - Aurora)","CurseForge":"macaws-bridges-aurora","Modrinth":"macaws-aurora"},{"Id":8624,"Name":"","CurseForge":"betterlands","Modrinth":""},{"Id":8625,"Name":"","CurseForge":"koremods","Modrinth":"koremods"},{"Id":8626,"Name":"","CurseForge":"heart-of-ender","Modrinth":"heart-of-ender"},{"Id":8627,"Name":"","CurseForge":"heart-of-spartan","Modrinth":"heart-of-spartan"},{"Id":8628,"Name":"Macaw 的栅栏与墙:超多生物群系附属 (Macaw's Fences - Biomes O' Plenty)","CurseForge":"macaws-fences-biomes-o-plenty","Modrinth":""},{"Id":8628,"Name":"Macaw 的栅栏与墙:超多生物群系附属 (Macaw's Fences - Biomes O' Plenty) - 原,","CurseForge":"","Modrinth":"macaws-fences-biomes-o-plenty"},{"Id":8629,"Name":"","CurseForge":"endemic","Modrinth":"endemic"},{"Id":8630,"Name":"","CurseForge":"lucys-sloths","Modrinth":""},{"Id":8631,"Name":"","CurseForge":"","Modrinth":"gdtweaker"},{"Id":8632,"Name":"","CurseForge":"drop-the-rock-no-tree-punching-compat","Modrinth":"drop-the-rock-no-tree-punching-compat"},{"Id":8633,"Name":"Macaw 的桥梁:Abnormals 附属 (Macaw's Bridges - Abnormals)","CurseForge":"macaws-bridges-abnormals","Modrinth":"macaws-abnormals"},{"Id":8634,"Name":"Macaw 的桥梁:Shroomed 附属 (Macaw's Bridges - Shroomed)","CurseForge":"macaws-bridges-shroomed","Modrinth":""},{"Id":8636,"Name":"","CurseForge":"shroomed","Modrinth":""},{"Id":8637,"Name":"","CurseForge":"rlcraft-structures-not-official","Modrinth":"rlcraft-structures-%28not-official%29"},{"Id":8638,"Name":"","CurseForge":"moving-sunflowers","Modrinth":""},{"Id":8639,"Name":"月光魔能制造器 (Lunar Mana Generator)","CurseForge":"lunar-mana-generator","Modrinth":""},{"Id":8640,"Name":"","CurseForge":"ost-overhaul","Modrinth":"ost-overhaul"},{"Id":8641,"Name":"","CurseForge":"chunk-by-chunk","Modrinth":"chunkbychunk"},{"Id":8642,"Name":"飞越群星:核心 (Planeteer - Core)","CurseForge":"beyond-planets-core","Modrinth":""},{"Id":8643,"Name":"内置网页浏览器 (WebDisplays)","CurseForge":"webdisplays","Modrinth":"webdisplays"},{"Id":8644,"Name":"Minecraft Chromium 嵌入式框架 (Minecraft Chromium Embedded Framework)","CurseForge":"mcef","Modrinth":"mcef"},{"Id":8649,"Name":"","CurseForge":"the-monk-mod","Modrinth":""},{"Id":8650,"Name":"","CurseForge":"expanded-enderchest","Modrinth":"expanded-enderchest"},{"Id":8651,"Name":"","CurseForge":"text-utilities","Modrinth":"text-utilities"},{"Id":8653,"Name":"内存清扫 (Memory Sweep)","CurseForge":"memorysweep","Modrinth":"memorysweep"},{"Id":8654,"Name":"爆炸动画增强 (Explosive Enhancement)","CurseForge":"","Modrinth":"explosive-enhancement"},{"Id":8655,"Name":"","CurseForge":"autostereogram","Modrinth":"autostereogram"},{"Id":8656,"Name":"Bounced! - 不活跃","CurseForge":"bounced","Modrinth":""},{"Id":8656,"Name":"","CurseForge":"","Modrinth":"bounced"},{"Id":8657,"Name":"标识符翻译 (Identifier Translation)","CurseForge":"identifier-translation","Modrinth":"identifier-translation"},{"Id":8658,"Name":"","CurseForge":"vanity","Modrinth":"vanity-core"},{"Id":8659,"Name":"","CurseForge":"reid","Modrinth":"reid"},{"Id":8660,"Name":"","CurseForge":"its-been-twelve-years","Modrinth":""},{"Id":8661,"Name":"","CurseForge":"riftlin","Modrinth":""},{"Id":8662,"Name":"","CurseForge":"sorcerium","Modrinth":"sorcerium"},{"Id":8663,"Name":"","CurseForge":"zeropoint","Modrinth":""},{"Id":8664,"Name":"","CurseForge":"campful","Modrinth":""},{"Id":8666,"Name":"","CurseForge":"well-rested","Modrinth":"well-rested"},{"Id":8667,"Name":"","CurseForge":"raw-input-1-12-2","Modrinth":"raw-input"},{"Id":8668,"Name":"","CurseForge":"spider-pig","Modrinth":""},{"Id":8669,"Name":"","CurseForge":"jingames-hair-c","Modrinth":"hair-c"},{"Id":8670,"Name":"","CurseForge":"map-tooltip","Modrinth":"map-tooltip"},{"Id":8671,"Name":"","CurseForge":"planetoid","Modrinth":""},{"Id":8672,"Name":"","CurseForge":"golem-tweaks","Modrinth":""},{"Id":8673,"Name":"","CurseForge":"yummy-foods","Modrinth":""},{"Id":8674,"Name":"","CurseForge":"home-system-forge","Modrinth":""},{"Id":8675,"Name":"","CurseForge":"geta-footwear","Modrinth":""},{"Id":8676,"Name":"","CurseForge":"catwalks-inc","Modrinth":""},{"Id":8677,"Name":"","CurseForge":"firework-rocket-duration","Modrinth":""},{"Id":8678,"Name":"","CurseForge":"","Modrinth":"chatwalk"},{"Id":8679,"Name":"","CurseForge":"emcstage","Modrinth":"emcstage"},{"Id":8683,"Name":"拴绳断裂警告 (Broken Lead Warner)","CurseForge":"","Modrinth":"broken-lead-warner"},{"Id":8684,"Name":"永远史蒂夫 (Alwayzsteve)","CurseForge":"","Modrinth":"alwayzsteve"},{"Id":8685,"Name":"","CurseForge":"vanilla-vistas","Modrinth":""},{"Id":8686,"Name":"","CurseForge":"menulogue","Modrinth":""},{"Id":8687,"Name":"","CurseForge":"archaicfix","Modrinth":""},{"Id":8687,"Name":"","CurseForge":"","Modrinth":"archaicfix"},{"Id":8688,"Name":"糕蛋 (ekaC)","CurseForge":"ekac","Modrinth":"ekac"},{"Id":8689,"Name":"你将去的生物群系+ (Oh The Biomes You'll Go Plus)","CurseForge":"byg-plus","Modrinth":""},{"Id":8690,"Name":"","CurseForge":"farmers-compats","Modrinth":""},{"Id":8691,"Name":"","CurseForge":"","Modrinth":"map-compass"},{"Id":8693,"Name":"","CurseForge":"space-research-addon-for-galacticraft3","Modrinth":""},{"Id":8694,"Name":"帕秋莉手册按钮 (PatchouliButton)","CurseForge":"patchoulibutton","Modrinth":""},{"Id":8695,"Name":"","CurseForge":"sonorama","Modrinth":""},{"Id":8696,"Name":"","CurseForge":"vanity-dungeons-pack","Modrinth":""},{"Id":8697,"Name":"","CurseForge":"divinerpg-processing-compat","Modrinth":""},{"Id":8698,"Name":"武器大师 (Weapon Master)","CurseForge":"weapon-master","Modrinth":"weapon-master"},{"Id":8699,"Name":"你的想法 (Your Ideas)","CurseForge":"your-ideas","Modrinth":""},{"Id":8700,"Name":"","CurseForge":"vanity-ancient-tool-variants","Modrinth":"vanity-ancient-tool-variants"},{"Id":8701,"Name":"动作捕捉 (Motion Capture)","CurseForge":"motion-capture-mod-mocap","Modrinth":"motion-capture"},{"Id":8702,"Name":"虫洞 (Wormhole)","CurseForge":"wormhole-portals","Modrinth":"wormhole"},{"Id":8703,"Name":"神龙魔法与遗物 (Dragon Magic And Relics)","CurseForge":"dragon-magic-and-relics","Modrinth":"dragon-magic-and-relics"},{"Id":8704,"Name":"","CurseForge":"yummy-foods-forked","Modrinth":""},{"Id":8705,"Name":"","CurseForge":"content-creator","Modrinth":""},{"Id":8706,"Name":"","CurseForge":"fullblock-energistics","Modrinth":"fullblock-energistics"},{"Id":8707,"Name":"","CurseForge":"youmatter","Modrinth":"youmatter"},{"Id":8708,"Name":"","CurseForge":"vanity_battle_axes","Modrinth":""},{"Id":8709,"Name":"Markdown 手册(Markdown Manual)","CurseForge":"markdownmanual","Modrinth":"markdownmanual"},{"Id":8710,"Name":"","CurseForge":"powershot","Modrinth":"powershot"},{"Id":8711,"Name":"","CurseForge":"","Modrinth":"crockpot-tweaker"},{"Id":8712,"Name":"","CurseForge":"automatic-tool-swap","Modrinth":"automatic-tool-swap"},{"Id":8713,"Name":"","CurseForge":"knight-quest-reforged","Modrinth":"knight-quest"},{"Id":8713,"Name":"","CurseForge":"knight-quest-fabric","Modrinth":""},{"Id":8713,"Name":"","CurseForge":"knight-quest","Modrinth":""},{"Id":8714,"Name":"现代化修复 (ModernFix)","CurseForge":"modernfix","Modrinth":"modernfix"},{"Id":8715,"Name":"","CurseForge":"blades-plus","Modrinth":""},{"Id":8716,"Name":"稳态 (Homeostatic)","CurseForge":"homeostatic","Modrinth":"homeostatic"},{"Id":8717,"Name":"超级饱和度 (Super Saturation)","CurseForge":"super-saturation","Modrinth":""},{"Id":8718,"Name":"RPG天启进化 (RPGApocalypticEvolution)","CurseForge":"rpg-rpgae","Modrinth":""},{"Id":8720,"Name":"","CurseForge":"dungeon-difficulty","Modrinth":"dungeon-difficulty"},{"Id":8721,"Name":"","CurseForge":"cazfps-chronicles","Modrinth":""},{"Id":8722,"Name":"不稳定金属工具 (Unstable Tools)","CurseForge":"unstable-tools","Modrinth":"unstable"},{"Id":8723,"Name":"","CurseForge":"tech-reborn-patchouli","Modrinth":""},{"Id":8724,"Name":"","CurseForge":"biome-bundle","Modrinth":""},{"Id":8725,"Name":"","CurseForge":"moon-phase-info","Modrinth":"moon-phase-info"},{"Id":8726,"Name":"","CurseForge":"","Modrinth":"fabwork"},{"Id":8728,"Name":"","CurseForge":"advanced-tweakery","Modrinth":""},{"Id":8729,"Name":"","CurseForge":"creeper-hector","Modrinth":""},{"Id":8730,"Name":"","CurseForge":"tightened-village-security","Modrinth":""},{"Id":8731,"Name":"布罗艾扩展版 (Blahaj Expanded)","CurseForge":"","Modrinth":"mcr_blahaj"},{"Id":8732,"Name":"布罗艾:重铸 (Blåhaj - Reforged)","CurseForge":"","Modrinth":"blahaj-reforged"},{"Id":8733,"Name":"","CurseForge":"buddingcrystals","Modrinth":""},{"Id":8734,"Name":"动态的树:Tectonic附属 (Dynamic Trees - Tectonic)","CurseForge":"dynamic-trees-tectonic","Modrinth":""},{"Id":8735,"Name":"","CurseForge":"prp","Modrinth":""},{"Id":8736,"Name":"","CurseForge":"","Modrinth":"moonphaseinfo%2B"},{"Id":8737,"Name":"丰收之日 (Harvest Day)","CurseForge":"harvest-day","Modrinth":""},{"Id":8738,"Name":"","CurseForge":"hungteens-lib","Modrinth":"pangteens-lib"},{"Id":8739,"Name":"更多工具 (More Tool)","CurseForge":"more-tool","Modrinth":""},{"Id":8740,"Name":"","CurseForge":"","Modrinth":"ex-hud"},{"Id":8741,"Name":"囤积 (Hoarding)","CurseForge":"","Modrinth":"hoarding"},{"Id":8743,"Name":"","CurseForge":"optifine-crash-fix","Modrinth":""},{"Id":8745,"Name":"猛龙之居补丁 (Wyrmroost Patch)","CurseForge":"wyrmroost-patch","Modrinth":""},{"Id":8746,"Name":"","CurseForge":"travelers-dream","Modrinth":""},{"Id":8747,"Name":"","CurseForge":"thaumic-travelers-dream","Modrinth":""},{"Id":8748,"Name":"","CurseForge":"","Modrinth":"gasstation"},{"Id":8750,"Name":"","CurseForge":"aetherium-ashen-armor","Modrinth":""},{"Id":8751,"Name":"平滑菜单 (Smooth Menu)","CurseForge":"smoothmenu","Modrinth":""},{"Id":8752,"Name":"","CurseForge":"","Modrinth":"cabricality-mod"},{"Id":8753,"Name":"独特鱼类 (Unusual Fish Mod)","CurseForge":"unusual-fish","Modrinth":"unusual-fish-mod"},{"Id":8754,"Name":"","CurseForge":"obscure-tooltips","Modrinth":"obscure-tooltips"},{"Id":8757,"Name":"","CurseForge":"otg-tutorial-world","Modrinth":""},{"Id":8758,"Name":"","CurseForge":"otg-skylands","Modrinth":""},{"Id":8759,"Name":"","CurseForge":"fxs-rail-optimization","Modrinth":"rail-optimization"},{"Id":8760,"Name":"","CurseForge":"morejs","Modrinth":"morejs"},{"Id":8762,"Name":"更多雪球 (MoreSnowballs)","CurseForge":"","Modrinth":"moresnowballls"},{"Id":8763,"Name":"","CurseForge":"valkyrien-skies-control","Modrinth":"valkyrien-skies-control"},{"Id":8764,"Name":"","CurseForge":"the-end-expanded-mod-ice-and-fire-addon","Modrinth":""},{"Id":8765,"Name":"保险库补丁 (Vault Patcher)","CurseForge":"vault-patcher","Modrinth":"vault-patcher"},{"Id":8766,"Name":"","CurseForge":"projectile-damage-attribute","Modrinth":"projectile-damage-attribute"},{"Id":8767,"Name":"","CurseForge":"noteable","Modrinth":"noteable"},{"Id":8768,"Name":"","CurseForge":"deftulib","Modrinth":"deftulib"},{"Id":8769,"Name":"","CurseForge":"trofers","Modrinth":"trofers"},{"Id":8770,"Name":"","CurseForge":"obscure-api","Modrinth":"obscure-api"},{"Id":8770,"Name":"","CurseForge":"obscure-api-fabric","Modrinth":""},{"Id":8772,"Name":"死亡惩罚 (Death Punishment)","CurseForge":"death-punishment","Modrinth":"death-punishment"},{"Id":8773,"Name":"","CurseForge":"inventory-tabs-forge","Modrinth":""},{"Id":8774,"Name":"","CurseForge":"reaper","Modrinth":"reaper"},{"Id":8775,"Name":"","CurseForge":"containersearcher","Modrinth":"csearcher"},{"Id":8778,"Name":"","CurseForge":"screencapper","Modrinth":"screencapper"},{"Id":8779,"Name":"","CurseForge":"valkyrien-skies-world","Modrinth":"valkyrien-skies-world"},{"Id":8780,"Name":"","CurseForge":"lucky-tnt-lib","Modrinth":"lucky-tnt-lib"},{"Id":8781,"Name":"","CurseForge":"waffles-placeable-foods","Modrinth":"waffles-placeable-foods"},{"Id":8782,"Name":"","CurseForge":"otg-the-void","Modrinth":""},{"Id":8783,"Name":"","CurseForge":"otg-flatlands","Modrinth":""},{"Id":8784,"Name":"","CurseForge":"otg-dungeons","Modrinth":""},{"Id":8785,"Name":"","CurseForge":"","Modrinth":"light-meals-quilted"},{"Id":8786,"Name":"","CurseForge":"gtnhlib","Modrinth":"gtnhlib"},{"Id":8787,"Name":"","CurseForge":"sculpt","Modrinth":"sculpt"},{"Id":8788,"Name":"","CurseForge":"levelhearts","Modrinth":"levelhearts"},{"Id":8789,"Name":"","CurseForge":"bring-back-luck","Modrinth":"bringbackluck"},{"Id":8789,"Name":"","CurseForge":"forge-bring-back-luck","Modrinth":""},{"Id":8790,"Name":"传送命令 (Teleport Master)","CurseForge":"teleport-master","Modrinth":"teleport-master"},{"Id":8791,"Name":"锻造 (Mufog)","CurseForge":"","Modrinth":"mufog"},{"Id":8792,"Name":"更好的格挡 (BetterParry)","CurseForge":"betterparry","Modrinth":"betterparry"},{"Id":8793,"Name":"","CurseForge":"rltweaker2","Modrinth":""},{"Id":8794,"Name":"神秘时代要素创建器 (Thaumcraft Aspect Creator)","CurseForge":"thaumcraft-aspect-creator","Modrinth":"thaumcraft-aspect-creator"},{"Id":8795,"Name":"","CurseForge":"vanity_katanas","Modrinth":""},{"Id":8796,"Name":"Pixel 的角色模型 (Pixel's Character Models)","CurseForge":"pixels-character-models","Modrinth":"pixels-character-models"},{"Id":8797,"Name":"莱特兰-扩充 (L2 Complements)","CurseForge":"l2-complements","Modrinth":"l2-complements"},{"Id":8798,"Name":"","CurseForge":"epicfight-auto-shouldersurfing","Modrinth":""},{"Id":8799,"Name":"","CurseForge":"zsrarity","Modrinth":""},{"Id":8800,"Name":"","CurseForge":"zenscroll","Modrinth":""},{"Id":8801,"Name":"","CurseForge":"zentraits","Modrinth":""},{"Id":8802,"Name":"莱特兰-弓艺 (L2 Archery)","CurseForge":"l2-archery","Modrinth":"l2archery"},{"Id":8803,"Name":"","CurseForge":"vanity-metallurgical","Modrinth":""},{"Id":8804,"Name":"","CurseForge":"minespaceex","Modrinth":""},{"Id":8805,"Name":"","CurseForge":"gregious-maximus","Modrinth":""},{"Id":8806,"Name":"","CurseForge":"shut-up-model-loader","Modrinth":""},{"Id":8807,"Name":"多元乐事(Fabric 版) (Cultural Delights [Fabric])","CurseForge":"cultural-delights-fabric","Modrinth":"cultural-delights-fabric"},{"Id":8808,"Name":"","CurseForge":"collectors-reap","Modrinth":"collectors-reap"},{"Id":8809,"Name":"","CurseForge":"bones-and-swords","Modrinth":""},{"Id":8810,"Name":"","CurseForge":"vanity-shedds-mystical-toolsets-pack","Modrinth":""},{"Id":8811,"Name":"","CurseForge":"emc-builders-wand","Modrinth":""},{"Id":8813,"Name":"","CurseForge":"vanity-charcutier","Modrinth":""},{"Id":8814,"Name":"","CurseForge":"hunger-in-peace","Modrinth":""},{"Id":8816,"Name":"","CurseForge":"lexicon","Modrinth":"lexicon"},{"Id":8816,"Name":"","CurseForge":"lexicon-fabric","Modrinth":""},{"Id":8817,"Name":"","CurseForge":"scaffolding-drops-nearby","Modrinth":"scaffolding-drops-nearby"},{"Id":8817,"Name":"","CurseForge":"scaffolding-drops-nearby-fabric","Modrinth":""},{"Id":8818,"Name":"","CurseForge":"fuel-info","Modrinth":"fuel-info"},{"Id":8819,"Name":"","CurseForge":"glacier-ice","Modrinth":""},{"Id":8820,"Name":"","CurseForge":"gtnhmixins","Modrinth":"gtnhmixins"},{"Id":8821,"Name":"","CurseForge":"dawn-to-dusk","Modrinth":""},{"Id":8822,"Name":"开放式塔防 (Open Tower Defence)","CurseForge":"open-tower-defence","Modrinth":"open-tower-defence"},{"Id":8823,"Name":"MTR车站装饰 (Station Decoration)","CurseForge":"mtr-station-decoration","Modrinth":"station-decoration"},{"Id":8824,"Name":"","CurseForge":"perviaminvenire","Modrinth":""},{"Id":8826,"Name":"","CurseForge":"silverbirch","Modrinth":"silver-birch"},{"Id":8828,"Name":"烈焰横扫 (Flame Sweeping)","CurseForge":"flame-sweeping","Modrinth":"flame-sweeping"},{"Id":8829,"Name":"","CurseForge":"creepypastas-mod","Modrinth":""},{"Id":8830,"Name":"","CurseForge":"more-slab","Modrinth":""},{"Id":8831,"Name":"","CurseForge":"landk-brick","Modrinth":""},{"Id":8832,"Name":"KubeJS 离线文档 (KubeJS Offline Documentation)","CurseForge":"kubejs-offline","Modrinth":"kubejs-offline"},{"Id":8834,"Name":"无中生有:传承 - Nature's Minerals 扩展 (Ex Nihilo: Sequentia - Nature's Minerals Addon)","CurseForge":"ex-nihilonatureminerals","Modrinth":""},{"Id":8837,"Name":"内存设置 (Memory Settings)","CurseForge":"memory-settings","Modrinth":""},{"Id":8838,"Name":"","CurseForge":"tiny-item-animations","Modrinth":"tiny-item-animations"},{"Id":8839,"Name":"更多金属板重置版 (More Plates Revamped)","CurseForge":"more-plates-revamped","Modrinth":"more-plates-revamped"},{"Id":8840,"Name":"","CurseForge":"extended-slabs-plus","Modrinth":"extended-slabs-plus"},{"Id":8841,"Name":"饮酒作乐 Fabric 版 (Brewin' And Chewin' [Fabric])","CurseForge":"brewin-and-chewin-fabric","Modrinth":"brewin-and-chewin-fabric"},{"Id":8842,"Name":"","CurseForge":"particular","Modrinth":""},{"Id":8843,"Name":"","CurseForge":"longer-login-times","Modrinth":""},{"Id":8844,"Name":"","CurseForge":"broglis-plants","Modrinth":"broglis-plants"},{"Id":8845,"Name":"","CurseForge":"rlmixins","Modrinth":"rlmixins"},{"Id":8846,"Name":"简单帽子 (Simple Hats)","CurseForge":"simplehats","Modrinth":"simple-hats"},{"Id":8847,"Name":"","CurseForge":"timeoutout-fabric","Modrinth":"timeoutout"},{"Id":8848,"Name":"","CurseForge":"fabric-furnaces","Modrinth":""},{"Id":8850,"Name":"","CurseForge":"mixinbooterlegacy","Modrinth":""},{"Id":8851,"Name":"玄武岩行者:重生 (Basalt Walker : Reborn)","CurseForge":"basalt-walker-reborn","Modrinth":""},{"Id":8852,"Name":"机械动力:工业化学 (Create: Industrial Chemistry)","CurseForge":"create-industrial-chemistry","Modrinth":"create-industrial-chemistry"},{"Id":8854,"Name":"火焰熊熊 (Flaming)","CurseForge":"","Modrinth":"flaming"},{"Id":8855,"Name":"","CurseForge":"cruelars-triforcemod","Modrinth":""},{"Id":8857,"Name":"更多刷怪蛋 (MoreSpawnEggs)","CurseForge":"","Modrinth":"morespawneggs"},{"Id":8858,"Name":"美化!重织 (Beautify: Refabricated)","CurseForge":"beautify-refabricated","Modrinth":"beautify-refabricated"},{"Id":8860,"Name":"","CurseForge":"manatweaks","Modrinth":""},{"Id":8861,"Name":"","CurseForge":"chicken-nugget","Modrinth":""},{"Id":8862,"Name":"","CurseForge":"goldfish-myth","Modrinth":""},{"Id":8863,"Name":"","CurseForge":"rezombies","Modrinth":""},{"Id":8864,"Name":"外伤 (Wound)","CurseForge":"wound","Modrinth":"wound"},{"Id":8865,"Name":"","CurseForge":"survival-campfire","Modrinth":"survival-campfire"},{"Id":8866,"Name":"","CurseForge":"eyes-mod","Modrinth":"eye-blocks"},{"Id":8868,"Name":"缤纷彩烛 (Colorful Rods)","CurseForge":"colorful-rods","Modrinth":""},{"Id":8869,"Name":"","CurseForge":"xp-plus","Modrinth":""},{"Id":8871,"Name":"","CurseForge":"jaffas","Modrinth":""},{"Id":8872,"Name":"","CurseForge":"no-holds-barred-halloween-mod","Modrinth":""},{"Id":8875,"Name":"发送加入信息与离开信息到网址 (Post Server Join & Leave Messages to URL)","CurseForge":"","Modrinth":"post-join-leave-message"},{"Id":8876,"Name":"","CurseForge":"advanced-extended-creative-mode","Modrinth":"act"},{"Id":8877,"Name":"","CurseForge":"even-more-creatures-mod","Modrinth":""},{"Id":8878,"Name":"","CurseForge":"eerie-entities","Modrinth":""},{"Id":8879,"Name":"","CurseForge":"better-weather-revived","Modrinth":""},{"Id":8881,"Name":"更好的战斗-RLCraft版 (RLCombat)","CurseForge":"rlcombat","Modrinth":"rlcombat"},{"Id":8882,"Name":"","CurseForge":"botanical-addons","Modrinth":""},{"Id":8883,"Name":"计分板备份 (Scoreboards Backup)","CurseForge":"","Modrinth":"scoreboards-backup"},{"Id":8884,"Name":"","CurseForge":"hodgepodge","Modrinth":"hodgepodge"},{"Id":8885,"Name":"","CurseForge":"fast-projectile-fix","Modrinth":""},{"Id":8886,"Name":"","CurseForge":"edivadlib","Modrinth":"edivadlib"},{"Id":8887,"Name":"热力系列:蒸汽锅炉 (Thermal Systeams)","CurseForge":"systeams","Modrinth":""},{"Id":8888,"Name":"","CurseForge":"waymaker","Modrinth":"waymaker"},{"Id":8890,"Name":"","CurseForge":"dmod","Modrinth":""},{"Id":8891,"Name":"更多红石合成 (Extra Redstone Craft)","CurseForge":"extra-redstone-craft","Modrinth":""},{"Id":8892,"Name":"农夫暇事(Fabric 版) (Farmer's Respite (Fabric))","CurseForge":"farmers-respite-fabric","Modrinth":""},{"Id":8893,"Name":"魔法师 (Wizards (RPG Series))","CurseForge":"wizards","Modrinth":"wizards"},{"Id":8894,"Name":"","CurseForge":"basketcase","Modrinth":""},{"Id":8895,"Name":"","CurseForge":"primal-lib","Modrinth":""},{"Id":8896,"Name":"你将去的生物群系修复版 (Biomes You'll Go Fixed)","CurseForge":"biomes-youll-go-1-12-2-fixed","Modrinth":""},{"Id":8897,"Name":"符文 (Runes)","CurseForge":"rune-crafting","Modrinth":"runes"},{"Id":8898,"Name":"","CurseForge":"controlled-random","Modrinth":""},{"Id":8899,"Name":"Leo的Boss (Leo's Bosses)","CurseForge":"leos-bosses","Modrinth":""},{"Id":8900,"Name":"","CurseForge":"leos-illagers","Modrinth":""},{"Id":8902,"Name":"模块化机械:社区版 (Modular Machinery: Community Edition)","CurseForge":"modularmachinery-community-edition","Modrinth":"modularmachinery-community-edition"},{"Id":8903,"Name":"可穿戴背包-RLCraft版 (Wearable Backpacks: RLCraft Edition)","CurseForge":"wearable-backpacks-rlcraft-edition","Modrinth":"wearable-backpacks-rlcraft-edition"},{"Id":8904,"Name":"斯巴达之冰与火-RLCraft版 (Spartan and Fire: RLCraft Edition)","CurseForge":"spartan-fire-rlcraft-edition","Modrinth":"spartan-and-fire-rlcraft-edition"},{"Id":8905,"Name":"","CurseForge":"frame-void-patch-mc-59363","Modrinth":"frame-void-patch-(mc-59363)"},{"Id":8906,"Name":"帕秋莉手册加载补丁跨平台版 (Patchouli Resource Patch - Arch/Architectured Patchouli Resource Patch)","CurseForge":"archprp","Modrinth":"archprp"},{"Id":8907,"Name":"","CurseForge":"clear-skies-forge-port","Modrinth":""},{"Id":8908,"Name":"","CurseForge":"spell-power","Modrinth":"spell-power"},{"Id":8910,"Name":"更多崩溃报告信息 (MoreCrashInfo)","CurseForge":"morecrashinfo","Modrinth":""},{"Id":8911,"Name":"史诗战斗:ACG附属包 (EpicFight ACG AddonPack)","CurseForge":"epicfight-saopack","Modrinth":""},{"Id":8912,"Name":"截图查看器 (Screenshot Viewer)","CurseForge":"screenshot-viewer","Modrinth":"screenshot-viewer"},{"Id":8913,"Name":"","CurseForge":"gml","Modrinth":"gml"},{"Id":8914,"Name":"飞向未来附加 (Futurepack Additions)","CurseForge":"","Modrinth":"futurepack-additions"},{"Id":8915,"Name":"蜜蜂修复 (Bee Fix)","CurseForge":"bee-fix","Modrinth":""},{"Id":8916,"Name":"刷怪笼漏洞修复 (Spawner Bug Fix)","CurseForge":"spawner-fix","Modrinth":""},{"Id":8917,"Name":"","CurseForge":"block-limit-fix","Modrinth":"block_limit_fix"},{"Id":8918,"Name":"聊天无卡顿 (NoChatLag)","CurseForge":"nochatlag","Modrinth":"nochatlag"},{"Id":8919,"Name":"法术引擎 (Spell Engine)","CurseForge":"spell-engine","Modrinth":"spell-engine"},{"Id":8920,"Name":"","CurseForge":"spellblade-next","Modrinth":"spellblades-and-such"},{"Id":8921,"Name":"下界之路2 (Netherite Road 2)","CurseForge":"netherite-road-2","Modrinth":"netherite-road-2"},{"Id":8922,"Name":"","CurseForge":"","Modrinth":"tileentity-reset-fix"},{"Id":8923,"Name":"","CurseForge":"notenoughrecipebook","Modrinth":"notenoughrecipebook"},{"Id":8924,"Name":"漆 (Urushi)","CurseForge":"urushi-mod","Modrinth":""},{"Id":8925,"Name":"","CurseForge":"nicephore","Modrinth":""},{"Id":8925,"Name":"","CurseForge":"nicephore-fabric","Modrinth":""},{"Id":8925,"Name":"","CurseForge":"","Modrinth":"nicephore"},{"Id":8926,"Name":"","CurseForge":"terraria-paintings","Modrinth":""},{"Id":8926,"Name":"","CurseForge":"terraria-paintings-fabric","Modrinth":""},{"Id":8927,"Name":"","CurseForge":"minegooseduck","Modrinth":""},{"Id":8928,"Name":"","CurseForge":"floating-islands","Modrinth":""},{"Id":8930,"Name":"","CurseForge":"","Modrinth":"qwq-library"},{"Id":8931,"Name":"","CurseForge":"scorched-guns","Modrinth":"scorched-guns-2"},{"Id":8933,"Name":"","CurseForge":"fred-qol","Modrinth":"fred"},{"Id":8934,"Name":"通用机械社区版:非官方 (Mekanism CE Unofficial)","CurseForge":"mekanism-ce-unofficial","Modrinth":""},{"Id":8935,"Name":"","CurseForge":"guntopia-legend-of-the-guns","Modrinth":""},{"Id":8936,"Name":"","CurseForge":"slots-checker","Modrinth":"slots-checker"},{"Id":8937,"Name":"","CurseForge":"carpet-ams-addition","Modrinth":"carpet-ams-addition"},{"Id":8937,"Name":"","CurseForge":"","Modrinth":"carpet-ams-addition-legacy"},{"Id":8938,"Name":"","CurseForge":"pixelmon-gameshark","Modrinth":""},{"Id":8939,"Name":"","CurseForge":"hidden-creepers-creepers-pretend-to-be-other-mobs","Modrinth":""},{"Id":8940,"Name":"","CurseForge":"ob-core","Modrinth":""},{"Id":8941,"Name":"","CurseForge":"ob-pandorica","Modrinth":""},{"Id":8942,"Name":"","CurseForge":"no-weather-effects","Modrinth":"no-weather-effects"},{"Id":8943,"Name":"","CurseForge":"ob-tooltips","Modrinth":""},{"Id":8944,"Name":"","CurseForge":"hekate-lib","Modrinth":""},{"Id":8945,"Name":"","CurseForge":"loot-journal","Modrinth":"loot-journal"},{"Id":8945,"Name":"","CurseForge":"loot-journal-neoforge","Modrinth":""},{"Id":8945,"Name":"","CurseForge":"loot-journal-fabric","Modrinth":""},{"Id":8963,"Name":"","CurseForge":"structure-floater-fabric","Modrinth":""},{"Id":8964,"Name":"苹果核非官方版 (Applecore Unofficial)","CurseForge":"applecore-unofficial","Modrinth":"applecore-unofficial"},{"Id":8965,"Name":"","CurseForge":"drilling-veins","Modrinth":"drilling-veins"},{"Id":8966,"Name":"服务端聊天历史 (Server Chat History)","CurseForge":"server-chat-history","Modrinth":"server-chat-history"},{"Id":8967,"Name":"字符魔法师 (Scriptor Magicae)","CurseForge":"scriptor-magicae","Modrinth":"scriptor-magicae"},{"Id":8968,"Name":"JSON实体模型 (JSON Entity Models)","CurseForge":"json-entity-models-jems","Modrinth":"json-entity-models-jems"},{"Id":8972,"Name":"","CurseForge":"rain-of-hell","Modrinth":""},{"Id":8974,"Name":"","CurseForge":"suggestion-provider-fix","Modrinth":"suggestionproviderfix"},{"Id":8975,"Name":"","CurseForge":"worldblender","Modrinth":"worldblender"},{"Id":8975,"Name":"","CurseForge":"world-blender-fabric","Modrinth":"worldblender-fabric"},{"Id":8976,"Name":"无海洋的世界 (No Oceans)","CurseForge":"no-oceans","Modrinth":""},{"Id":8977,"Name":"","CurseForge":"monoblocks","Modrinth":""},{"Id":8978,"Name":"匠魂杂物 (Tinkers' Things)","CurseForge":"tinkers-things-json","Modrinth":"tinkers-things"},{"Id":8979,"Name":"","CurseForge":"free-cam","Modrinth":"freecam"},{"Id":8980,"Name":"","CurseForge":"workings","Modrinth":"workings"},{"Id":8981,"Name":"模组加载屏幕 (Mod Loading Screen)","CurseForge":"","Modrinth":"mod-loading-screen"},{"Id":8982,"Name":"","CurseForge":"lucky-cases","Modrinth":""},{"Id":8983,"Name":"","CurseForge":"atmosfera","Modrinth":"atmosfera"},{"Id":8984,"Name":"藏金术 (Feruchemy)","CurseForge":"feruchemy-allomancy","Modrinth":""},{"Id":8985,"Name":"战斗生机 (AliveCombat)","CurseForge":"alivecombat","Modrinth":"alivecombat"},{"Id":8986,"Name":"对话框 (Dialog)","CurseForge":"dialog","Modrinth":""},{"Id":8998,"Name":"","CurseForge":"fix-selected-item-text","Modrinth":""},{"Id":8999,"Name":"","CurseForge":"dregora-o-plenty","Modrinth":""},{"Id":9000,"Name":"","CurseForge":"integrated-api","Modrinth":"integrated-api"},{"Id":9001,"Name":"交错次元:永恒旋律 (The Betweenlands: Eternal Melodies)","CurseForge":"the-betweenlands-eternal-melodies","Modrinth":""},{"Id":9003,"Name":"冰封启示录 (Frozen Apocalypse)","CurseForge":"frozen-apocalypse","Modrinth":"frozen-apocalypse"},{"Id":9004,"Name":"","CurseForge":"whymap","Modrinth":"whymap"},{"Id":9005,"Name":"","CurseForge":"craftify","Modrinth":"craftify"},{"Id":9006,"Name":"","CurseForge":"overgrown-cities-fabric","Modrinth":""},{"Id":9007,"Name":"","CurseForge":"night-config-fixes","Modrinth":"night-config-fixes"},{"Id":9008,"Name":"","CurseForge":"standardconfigs","Modrinth":""},{"Id":9009,"Name":"盔甲调整 (Armor Adjustment)","CurseForge":"armor-adjustment","Modrinth":""},{"Id":9010,"Name":"","CurseForge":"enchanting-max_level","Modrinth":"enchanting.max_level"},{"Id":9011,"Name":"","CurseForge":"fixbookgui","Modrinth":"fixbookgui"},{"Id":9012,"Name":"自定义爆炸 (Custom Explosions)","CurseForge":"custom-explosions","Modrinth":""},{"Id":9013,"Name":"数据包屏幕 (Datapack Screen)","CurseForge":"datapacks-screen","Modrinth":""},{"Id":9014,"Name":"潘多拉的魔盒 (Pandora's Box)","CurseForge":"pandoras-box","Modrinth":"pandoras-box"},{"Id":9015,"Name":"","CurseForge":"boss-rifts","Modrinth":""},{"Id":9016,"Name":"","CurseForge":"random-teleport-altar","Modrinth":""},{"Id":9017,"Name":"","CurseForge":"syncpotioneffects","Modrinth":""},{"Id":9018,"Name":"","CurseForge":"aobd-ore-chunks","Modrinth":""},{"Id":9019,"Name":"","CurseForge":"evasive-items","Modrinth":"evasive-items"},{"Id":9020,"Name":"","CurseForge":"spagheters-enchants","Modrinth":""},{"Id":9021,"Name":"","CurseForge":"factory-api","Modrinth":"factory-api"},{"Id":9022,"Name":"任意门 (Tempad)","CurseForge":"tempad","Modrinth":"tempad"},{"Id":9023,"Name":"结构空位切换 (Structure Void Toggle)","CurseForge":"structure-void-toggle","Modrinth":"structure-void-toggle"},{"Id":9024,"Name":"","CurseForge":"","Modrinth":"cactusfix"},{"Id":9025,"Name":"更多僵尸 (More Zombies)","CurseForge":"morezombies","Modrinth":""},{"Id":9026,"Name":"","CurseForge":"mushroom-quest","Modrinth":"mushroom-quest"},{"Id":9027,"Name":"","CurseForge":"chowder-express","Modrinth":"chowder-express"},{"Id":9028,"Name":"模组浏览器 (Mod Browser)","CurseForge":"mod-browser","Modrinth":""},{"Id":9029,"Name":"","CurseForge":"fastback","Modrinth":"fastback"},{"Id":9030,"Name":"铜漏斗 (Copper Hopper)","CurseForge":"copper-hopper","Modrinth":"copper-hopper"},{"Id":9031,"Name":"","CurseForge":"oxidized","Modrinth":"oxidized"},{"Id":9032,"Name":"","CurseForge":"ping-wheel","Modrinth":"ping-wheel"},{"Id":9033,"Name":"","CurseForge":"dark-waters","Modrinth":"dark-waters"},{"Id":9034,"Name":"","CurseForge":"sneak-tweak","Modrinth":"sneak-tweak"},{"Id":9036,"Name":"静谧四季修复 (Serene Seasons Fix)","CurseForge":"serene-seasons-fix","Modrinth":"serene-seasons-fix"},{"Id":9037,"Name":"跨维度指令 (Cross-Dim Commands)","CurseForge":"cross-dim-commands","Modrinth":""},{"Id":9038,"Name":"","CurseForge":"temporary-spawners","Modrinth":"temporary-spawners"},{"Id":9039,"Name":"","CurseForge":"slyde","Modrinth":"slyde"},{"Id":9040,"Name":"","CurseForge":"phonos","Modrinth":"phonos"},{"Id":9041,"Name":"","CurseForge":"spelunkery","Modrinth":"spelunkery"},{"Id":9042,"Name":"无尽的蛋糕 (Endless Cake)","CurseForge":"","Modrinth":"endless_cake"},{"Id":9043,"Name":"","CurseForge":"rusticated","Modrinth":""},{"Id":9044,"Name":"边拿边走兼容 (InvMoveCompats)","CurseForge":"invmovecompats","Modrinth":"invmovecompats"},{"Id":9045,"Name":"","CurseForge":"","Modrinth":"tinkerers-smithing"},{"Id":9046,"Name":"燐 (Hesperus)","CurseForge":"hesperus","Modrinth":""},{"Id":9047,"Name":"","CurseForge":"inventory-hotswap","Modrinth":""},{"Id":9048,"Name":"","CurseForge":"corail-backpack","Modrinth":""},{"Id":9049,"Name":"食人花 (Chomper)","CurseForge":"chomper","Modrinth":""},{"Id":9050,"Name":"","CurseForge":"flamelib","Modrinth":""},{"Id":9052,"Name":"","CurseForge":"better-planting","Modrinth":"better-planting"},{"Id":9053,"Name":"超级华丽云:重织版 (SuperFancyClouds: Refabricated)","CurseForge":"superfancyclouds-refabricated","Modrinth":"superfancyclouds-refabricated"},{"Id":9055,"Name":"","CurseForge":"pet-tracker","Modrinth":""},{"Id":9056,"Name":"狐狸加载界面 (SplashFox)","CurseForge":"","Modrinth":"splashfox"},{"Id":9057,"Name":"","CurseForge":"tap-tab","Modrinth":"tap-tab"},{"Id":9058,"Name":"通用机械工具:社区版 (Mekanism Community Edition: TOOLS)","CurseForge":"mekanism-ce-tools","Modrinth":""},{"Id":9059,"Name":"通用机械发电机:社区版 (Mekanism Community Edition: GENERATORS)","CurseForge":"mekanism-ce-generators","Modrinth":""},{"Id":9061,"Name":"NBT数据导出 (NBT Data Exporter)","CurseForge":"","Modrinth":"nbt-data-exporter"},{"Id":9062,"Name":"","CurseForge":"more-mobgriefing-options","Modrinth":"more-mobgriefing-options"},{"Id":9063,"Name":"","CurseForge":"cobalt-mod-think-blue","Modrinth":"cobalt-mod"},{"Id":9064,"Name":"","CurseForge":"graphutil","Modrinth":"graphutil"},{"Id":9066,"Name":"舒适空岛 (Comfy Sky)","CurseForge":"comfy-sky","Modrinth":"comfy-sky"},{"Id":9067,"Name":"","CurseForge":"entropy","Modrinth":"entropy"},{"Id":9068,"Name":"","CurseForge":"ngv-forge","Modrinth":"ngv"},{"Id":9068,"Name":"","CurseForge":"ngv-fabric","Modrinth":""},{"Id":9069,"Name":"","CurseForge":"world-of-wonder","Modrinth":"world-of-wonder"},{"Id":9071,"Name":"","CurseForge":"full-brightness-toggle","Modrinth":"full-brightness-toggle"},{"Id":9072,"Name":"你的想法 (Your Ideas)","CurseForge":"","Modrinth":"your-ideas"},{"Id":9073,"Name":"","CurseForge":"nohurtcam","Modrinth":"nohurtcam"},{"Id":9074,"Name":"箭矢破坏火把 (Arrows Break Torches)","CurseForge":"arrows-break-torches","Modrinth":"arrowsbreaktorches"},{"Id":9075,"Name":"","CurseForge":"golden-delicacies","Modrinth":""},{"Id":9076,"Name":"","CurseForge":"hightiercrops","Modrinth":""},{"Id":9077,"Name":"","CurseForge":"commandspy","Modrinth":"commandspy"},{"Id":9078,"Name":"","CurseForge":"slimyfloor","Modrinth":""},{"Id":9079,"Name":"每日冷笑话 - 客户端版 (Daily Dad)","CurseForge":"daily-dad","Modrinth":"daily-dad"},{"Id":9079,"Name":"每日冷笑话 (Daily Dad) - 服务端版","CurseForge":"daily-dad-server","Modrinth":"daily-dad-server"},{"Id":9080,"Name":"","CurseForge":"good-ending","Modrinth":"good-ending"},{"Id":9082,"Name":"","CurseForge":"creeper-nuggets","Modrinth":""},{"Id":9083,"Name":"","CurseForge":"coherent-villages","Modrinth":""},{"Id":9086,"Name":"","CurseForge":"terrains","Modrinth":""},{"Id":9087,"Name":"BugTorch - 他人的非官方上传","CurseForge":"bugtorched-curseforged","Modrinth":""},{"Id":9087,"Name":"","CurseForge":"","Modrinth":"bugtorch"},{"Id":9088,"Name":"更好的三叉戟 (Better Tridents)","CurseForge":"better-tridents","Modrinth":"better-tridents"},{"Id":9089,"Name":"","CurseForge":"undead-unleashed","Modrinth":"undead-unleashed"},{"Id":9090,"Name":"遗落荒野 (Missing Wilds)","CurseForge":"missing-wilds","Modrinth":"missing-wilds"},{"Id":9090,"Name":"遗落荒野 (Missing Wilds)","CurseForge":"missing-wilds-forge","Modrinth":""},{"Id":9092,"Name":"恒星流体导管 (Stellar Fluid Conduits)","CurseForge":"stellar-fluid-conduits","Modrinth":""},{"Id":9093,"Name":"","CurseForge":"advancement-locator","Modrinth":""},{"Id":9094,"Name":"通用修改 (Universal Tweaks)","CurseForge":"universal-tweaks","Modrinth":"universal-tweaks"},{"Id":9096,"Name":"","CurseForge":"","Modrinth":"succ"},{"Id":9097,"Name":"丛林传说 (Welcome to the Jungle)","CurseForge":"welcome-to-the-jungle","Modrinth":""},{"Id":9100,"Name":"","CurseForge":"transparent","Modrinth":"transparent"},{"Id":9101,"Name":"","CurseForge":"hopperplus-instant-hoppers","Modrinth":""},{"Id":9102,"Name":"","CurseForge":"sbm-merpig","Modrinth":""},{"Id":9103,"Name":"","CurseForge":"lwjgl3ify","Modrinth":"lwjgl3ify"},{"Id":9105,"Name":"","CurseForge":"mine-treasure","Modrinth":""},{"Id":9106,"Name":"机械动力乐事 (Create's Delight)","CurseForge":"creates-delight","Modrinth":"creates-delight"},{"Id":9107,"Name":"更多村民 (Mo' Villager)","CurseForge":"mo-villager","Modrinth":"mo-villagers"},{"Id":9109,"Name":"","CurseForge":"logunspam","Modrinth":""},{"Id":9111,"Name":"聊天栏图片显示 (ChatImage)","CurseForge":"chatimage","Modrinth":"chatimage"},{"Id":9112,"Name":"寻宝 (TreasureHunt)","CurseForge":"","Modrinth":"treasurehunt"},{"Id":9113,"Name":"","CurseForge":"no-tema-stahp","Modrinth":""},{"Id":9114,"Name":"存储标签 (Storage Labels)","CurseForge":"labels","Modrinth":"labels"},{"Id":9115,"Name":"","CurseForge":"","Modrinth":"qdaa"},{"Id":9117,"Name":"更好的苦力怕 (Better Creeper)","CurseForge":"better-creeper-mod","Modrinth":""},{"Id":9118,"Name":"未至之地 (Regions Unexplored)","CurseForge":"regions-unexplored","Modrinth":"regions-unexplored"},{"Id":9120,"Name":"","CurseForge":"rancraft-penguins","Modrinth":""},{"Id":9122,"Name":"更多生物变种 (More Mob Variants)","CurseForge":"more-mob-variants","Modrinth":"more-mob-variants"},{"Id":9123,"Name":"经验指环 (Experience Rings)","CurseForge":"experience-rings","Modrinth":""},{"Id":9124,"Name":"更深的海洋 (Deeper Oceans)","CurseForge":"deeper-oceans","Modrinth":""},{"Id":9125,"Name":"","CurseForge":"im-crossover-ic2","Modrinth":""},{"Id":9126,"Name":"","CurseForge":"libjf","Modrinth":"libjf"},{"Id":9128,"Name":"","CurseForge":"hopper-xtreme","Modrinth":""},{"Id":9129,"Name":"","CurseForge":"maleks-infinity-gauntlet","Modrinth":""},{"Id":9130,"Name":"灵灾空岛 (Maland)","CurseForge":"malum-skyland","Modrinth":""},{"Id":9131,"Name":"","CurseForge":"betweencards","Modrinth":""},{"Id":9137,"Name":"","CurseForge":"google-chat","Modrinth":"google-chat"},{"Id":9138,"Name":"","CurseForge":"resclone","Modrinth":"resclone"},{"Id":9139,"Name":"","CurseForge":"tame-them-all","Modrinth":""},{"Id":9141,"Name":"","CurseForge":"little-contraptions","Modrinth":""},{"Id":9143,"Name":"精简锦饰 (Convenient Decor)","CurseForge":"convenient-decor","Modrinth":"convenient-decor"},{"Id":9144,"Name":"","CurseForge":"mixin-conflict-helper","Modrinth":"mixin-conflict-helper"},{"Id":9145,"Name":"","CurseForge":"create-decoration-casing","Modrinth":""},{"Id":9146,"Name":"机械动力:黄铜覆壳 (Create: Brass Coated)","CurseForge":"create-brass-coated","Modrinth":""},{"Id":9147,"Name":"","CurseForge":"sculked","Modrinth":"sculked"},{"Id":9148,"Name":"更好的刷怪笼 (Better Mob Spawner)","CurseForge":"better-mob-spawner","Modrinth":""},{"Id":9149,"Name":"飞越群星:维度 (Planeteer - Dimensions)","CurseForge":"planeteer-dimensions","Modrinth":""},{"Id":9150,"Name":"飞越群星:机器 (Planeteer - Machines)","CurseForge":"planeteer-machines","Modrinth":""},{"Id":9151,"Name":"机械动力:中央厨房 (Create: Central Kitchen)","CurseForge":"create-central-kitchen","Modrinth":"create-central-kitchen"},{"Id":9152,"Name":"","CurseForge":"jamd","Modrinth":""},{"Id":9153,"Name":"","CurseForge":"ninezeros-gun-mod-addon","Modrinth":""},{"Id":9154,"Name":"","CurseForge":"donthurtthatboat","Modrinth":"donthurtthatboat"},{"Id":9155,"Name":"","CurseForge":"","Modrinth":"horsebuff"},{"Id":9156,"Name":"附魔台描述 (Enchanting Table Descriptions)","CurseForge":"enchanting-table-descriptions","Modrinth":"enchanting-table-descriptions"},{"Id":9157,"Name":"","CurseForge":"harvest-with-ease","Modrinth":"harvest-with-ease"},{"Id":9158,"Name":"交易刷新 (Trade Refresh)","CurseForge":"trade-refresh","Modrinth":"trade-refresh"},{"Id":9159,"Name":"","CurseForge":"create-molten-geodes","Modrinth":""},{"Id":9160,"Name":"","CurseForge":"thats-a-lot-of-items","Modrinth":""},{"Id":9161,"Name":"","CurseForge":"nether-skeletons","Modrinth":"netherskeletons"},{"Id":9163,"Name":"","CurseForge":"penguins","Modrinth":""},{"Id":9164,"Name":"","CurseForge":"rocket-squids","Modrinth":""},{"Id":9166,"Name":"","CurseForge":"wood-stuff","Modrinth":""},{"Id":9167,"Name":"","CurseForge":"magmafurnace-weapons-bosses-and-more","Modrinth":""},{"Id":9168,"Name":"","CurseForge":"monstersregulararmy","Modrinth":""},{"Id":9169,"Name":"","CurseForge":"why-does-my-food-taste-like-that","Modrinth":""},{"Id":9170,"Name":"","CurseForge":"iron-generators","Modrinth":""},{"Id":9171,"Name":"鞘翅切换 (Elytra Swapper Forge)","CurseForge":"elytra-swapper-forge","Modrinth":""},{"Id":9172,"Name":"","CurseForge":"ftb-team-islands-forge","Modrinth":""},{"Id":9174,"Name":"集市板条箱 (Market Crates)","CurseForge":"market-crates","Modrinth":""},{"Id":9175,"Name":"工业复兴移植版 (Industrial Renewal Port)","CurseForge":"industrial-renewal-port","Modrinth":""},{"Id":9176,"Name":"群峦合金非官方版 (TFC Metallum U)","CurseForge":"tfcm","Modrinth":"tfcm"},{"Id":9177,"Name":"","CurseForge":"tnt-time-mod","Modrinth":""},{"Id":9178,"Name":"","CurseForge":"drunken-mug","Modrinth":""},{"Id":9179,"Name":"","CurseForge":"cartoonish-horde-library","Modrinth":"villainous-horde-manager"},{"Id":9180,"Name":"有限生命 (Limited Lives)","CurseForge":"limited-lives","Modrinth":"limited-lives"},{"Id":9180,"Name":"有限生命 (Limited Lives)","CurseForge":"limited-lives-fabric","Modrinth":""},{"Id":9181,"Name":"","CurseForge":"universe-box","Modrinth":"universe-box"},{"Id":9182,"Name":"","CurseForge":"invtweaks-emu-for-ipn","Modrinth":"invtweaks-emu-for-ipn"},{"Id":9184,"Name":"机械动力:压缩经验 (Create Compact Exp)","CurseForge":"create-compact-exp","Modrinth":""},{"Id":9188,"Name":"","CurseForge":"heat-and-processing","Modrinth":""},{"Id":9189,"Name":"","CurseForge":"skytheorylib","Modrinth":""},{"Id":9190,"Name":"","CurseForge":"ad-astra-giselle-addon","Modrinth":"ad-astra-giselle-addon"},{"Id":9191,"Name":"","CurseForge":"shift-scroll-fix","Modrinth":"shift-scroll-fix"},{"Id":9192,"Name":"原神农业 (Genshin Impact Cropper)","CurseForge":"gim","Modrinth":""},{"Id":9193,"Name":"","CurseForge":"oxygen-daily-rewards","Modrinth":""},{"Id":9194,"Name":"结构指南针 (Structure Compass)","CurseForge":"structure-compass","Modrinth":"structure-compass"},{"Id":9195,"Name":"","CurseForge":"cold-snap-horde","Modrinth":"cold-snap-horde"},{"Id":9196,"Name":"","CurseForge":"tis-the-season","Modrinth":""},{"Id":9198,"Name":"","CurseForge":"","Modrinth":"baubles-expanded"},{"Id":9199,"Name":"","CurseForge":"cobblehaters","Modrinth":""},{"Id":9200,"Name":"怪物队长 (Mob Captains)","CurseForge":"mob-captains","Modrinth":""},{"Id":9202,"Name":"","CurseForge":"","Modrinth":"sound-track"},{"Id":9203,"Name":"","CurseForge":"snowballing","Modrinth":""},{"Id":9204,"Name":"","CurseForge":"winter-essentials","Modrinth":"winter_essentials"},{"Id":9205,"Name":"镁/铷附属:土豆版 (Magnesium/Rubidium Extra: Potato Editon) (Embeddium Extras)","CurseForge":"embeddium-extras","Modrinth":"embeddium-extras"},{"Id":9206,"Name":"真实残忍 (Realistic Cruelty)","CurseForge":"","Modrinth":"realistic-cruelty"},{"Id":9207,"Name":"","CurseForge":"trapper-pelts","Modrinth":"trapper-pelts"},{"Id":9208,"Name":"","CurseForge":"workshops-of-doom","Modrinth":"workshops-of-doom"},{"Id":9209,"Name":"机械动力:动力刷怪笼 (Create Mechanical Spawner)","CurseForge":"create-mechanical-spawner","Modrinth":"create-mechanical-spawner"},{"Id":9211,"Name":"","CurseForge":"amethyst-core","Modrinth":"amethyst-core"},{"Id":9212,"Name":"","CurseForge":"fzzy-core","Modrinth":"fzzy-core"},{"Id":9213,"Name":"","CurseForge":"tnt-breaks-bedrock","Modrinth":"tnt-breaks-bedrock"},{"Id":9214,"Name":"","CurseForge":"from-the-north","Modrinth":"from-the-north"},{"Id":9215,"Name":"","CurseForge":"spruce-willis-the-xmas-tree","Modrinth":"spruce-willis-the-xmas-tree"},{"Id":9216,"Name":"地瓜核心 (Sweet Potato Core)","CurseForge":"sweet-potato-core-spc","Modrinth":""},{"Id":9217,"Name":"","CurseForge":"merge-enchantments","Modrinth":"merge-enchantments"},{"Id":9218,"Name":"火鸡 (Turkey)","CurseForge":"turkey","Modrinth":""},{"Id":9220,"Name":"","CurseForge":"snowy-weaponry","Modrinth":"snowy-weaponry"},{"Id":9221,"Name":"","CurseForge":"dungeon-mobs-reborn","Modrinth":""},{"Id":9222,"Name":"","CurseForge":"quickteleports","Modrinth":""},{"Id":9223,"Name":"","CurseForge":"powerfuljs","Modrinth":""},{"Id":9224,"Name":"内存清理:重织 (Memory Clear : Refabricated)","CurseForge":"memoryclear-refabricated","Modrinth":"memory-clear-refabricated"},{"Id":9225,"Name":"村民舒适度 (Villager Comfort)","CurseForge":"villager-comfort","Modrinth":""},{"Id":9226,"Name":"末影采石场 (Ender Quarry)","CurseForge":"ender-quarry","Modrinth":""},{"Id":9229,"Name":"","CurseForge":"mythic-upgrades-fabric","Modrinth":"mythic-upgrades"},{"Id":9229,"Name":"","CurseForge":"mythic-upgrades-forge","Modrinth":""},{"Id":9230,"Name":"","CurseForge":"fat-chicken","Modrinth":""},{"Id":9232,"Name":"","CurseForge":"snowmancy","Modrinth":"snowmancy"},{"Id":9233,"Name":"道路中国 (Road China)","CurseForge":"","Modrinth":"roadchina"},{"Id":9235,"Name":"","CurseForge":"","Modrinth":"immersive-snow"},{"Id":9237,"Name":"","CurseForge":"functional_tfc","Modrinth":"functional_tfc"},{"Id":9238,"Name":"更好的末地:土豆版 (Better End Potato Edition)","CurseForge":"better-end-potato-edition","Modrinth":""},{"Id":9239,"Name":"","CurseForge":"bossbar-stack","Modrinth":"bossbar-stack"},{"Id":9240,"Name":"起源:雨伞 (Origins: Umbrellas)","CurseForge":"origins-umbrellas","Modrinth":"origins-umbrellas"},{"Id":9241,"Name":"","CurseForge":"tfc_decoration","Modrinth":""},{"Id":9242,"Name":"","CurseForge":"shroom-dealers","Modrinth":"shroom-dealers!"},{"Id":9243,"Name":"","CurseForge":"nbtedit","Modrinth":""},{"Id":9244,"Name":"粗麻布袋 (Burlap Sack)","CurseForge":"burlap-sack","Modrinth":""},{"Id":9247,"Name":"","CurseForge":"animalnet","Modrinth":""},{"Id":9248,"Name":"","CurseForge":"biome-backlog","Modrinth":""},{"Id":9249,"Name":"远物停载:土豆版 (Does Potato Tick?)","CurseForge":"doespotatotick","Modrinth":"does-potato-tick"},{"Id":9251,"Name":"青青草甸 ([Let's do] Meadow / Cheese!)","CurseForge":"welcome-to-meadow","Modrinth":"lets-do-meadow"},{"Id":9251,"Name":"青青草甸 ([Let's do] Meadow / Cheese!)","CurseForge":"","Modrinth":"lets-do-cheese"},{"Id":9252,"Name":"通用附魔 (Universal Enchants)","CurseForge":"universal-enchants-forge","Modrinth":"universal-enchants"},{"Id":9252,"Name":"通用附魔 (Universal Enchants)","CurseForge":"universal-enchants-fabric","Modrinth":""},{"Id":9253,"Name":"","CurseForge":"aa-farmer-compat","Modrinth":""},{"Id":9257,"Name":"","CurseForge":"better-crates","Modrinth":""},{"Id":9259,"Name":"","CurseForge":"vanillaicecreamfix","Modrinth":"vanillaicecreamfix"},{"Id":9260,"Name":"","CurseForge":"actually-unbreaking-forge","Modrinth":"actually-unbreaking"},{"Id":9260,"Name":"","CurseForge":"actually-unbreaking-fabric","Modrinth":""},{"Id":9261,"Name":"精巧手艺 (Handcrafted)","CurseForge":"handcrafted","Modrinth":"handcrafted"},{"Id":9262,"Name":"","CurseForge":"no-nether-teleport","Modrinth":"no-nether-teleport"},{"Id":9263,"Name":"崩溃机 (Crasher)","CurseForge":"crasher","Modrinth":""},{"Id":9265,"Name":"简易白名单 (EasyWhitelist)","CurseForge":"easywhitelist","Modrinth":"easywhitelist"},{"Id":9266,"Name":"","CurseForge":"clayworks","Modrinth":"clayworks"},{"Id":9267,"Name":"","CurseForge":"miniscaled","Modrinth":"miniscaled"},{"Id":9268,"Name":"失落的城市:土豆版 (Lost Cities: Potato Edition)","CurseForge":"lost-cities-potato-edition","Modrinth":""},{"Id":9269,"Name":"","CurseForge":"endless-noend","Modrinth":""},{"Id":9270,"Name":"","CurseForge":"matmos-2","Modrinth":"matmos-ambient-sound"},{"Id":9271,"Name":"","CurseForge":"tfc-item-barrels","Modrinth":""},{"Id":9273,"Name":"","CurseForge":"villagersplus-forge","Modrinth":"villagersplus"},{"Id":9273,"Name":"","CurseForge":"villagersplus-fabric","Modrinth":""},{"Id":9274,"Name":"","CurseForge":"data-criteria","Modrinth":"data-criteria"},{"Id":9275,"Name":"","CurseForge":"japanese-emoji-commands","Modrinth":""},{"Id":9276,"Name":"","CurseForge":"attack-on-christmas","Modrinth":""},{"Id":9278,"Name":"","CurseForge":"voxel-latest","Modrinth":""},{"Id":9279,"Name":"","CurseForge":"the-printer","Modrinth":"the-printer"},{"Id":9281,"Name":"","CurseForge":"flying-cullers","Modrinth":"flying-cullers"},{"Id":9282,"Name":"","CurseForge":"timeless-power","Modrinth":"timeless-power"},{"Id":9283,"Name":"","CurseForge":"create-deco-fabric-fixed","Modrinth":""},{"Id":9284,"Name":"","CurseForge":"calibrated","Modrinth":"calibrated"},{"Id":9285,"Name":"","CurseForge":"frozen-memories","Modrinth":""},{"Id":9286,"Name":"","CurseForge":"atlantis-api","Modrinth":"atlantis-api"},{"Id":9287,"Name":"","CurseForge":"nutritional-balance","Modrinth":""},{"Id":9288,"Name":"","CurseForge":"profession-lock","Modrinth":""},{"Id":9290,"Name":"","CurseForge":"spectrum-jetpacks","Modrinth":"spectrum-jetpacks"},{"Id":9291,"Name":"","CurseForge":"difficult-caves","Modrinth":""},{"Id":9293,"Name":"","CurseForge":"spartanlands-rereforged","Modrinth":""},{"Id":9294,"Name":"","CurseForge":"red-pandas","Modrinth":"red-pandas"},{"Id":9296,"Name":"","CurseForge":"simple-cobblestone-generator-forge","Modrinth":""},{"Id":9297,"Name":"","CurseForge":"floral-flair-fabric","Modrinth":""},{"Id":9297,"Name":"","CurseForge":"floral-flair","Modrinth":""},{"Id":9298,"Name":"","CurseForge":"vertical-slabs-compat","Modrinth":"vertical-slabs-compat"},{"Id":9299,"Name":"","CurseForge":"ruins","Modrinth":"philips-ruins"},{"Id":9300,"Name":"方块宝可梦 (Cobblemon)","CurseForge":"cobblemon","Modrinth":"cobblemon"},{"Id":9301,"Name":"","CurseForge":"mysterious-biomes","Modrinth":""},{"Id":9303,"Name":"","CurseForge":"head-in-the-clouds","Modrinth":"head-in-the-clouds"},{"Id":9304,"Name":"","CurseForge":"fdmc","Modrinth":""},{"Id":9305,"Name":"","CurseForge":"rpg-style-more-weapons","Modrinth":"rpg_style_more_weapons"},{"Id":9308,"Name":"","CurseForge":"easy-experience","Modrinth":""},{"Id":9310,"Name":"","CurseForge":"full-turtle-armor","Modrinth":"full-turtle-armor"},{"Id":9313,"Name":"特摄英雄补完计划 (Tokusatsu Hero Instrumentality Project)","CurseForge":"thip","Modrinth":"tokusatsu-hero-instrumentality-project"},{"Id":9316,"Name":"","CurseForge":"spyglass-astronomy","Modrinth":"spyglass-astronomy"},{"Id":9317,"Name":"","CurseForge":"mchalo","Modrinth":"mchalo"},{"Id":9318,"Name":"","CurseForge":"darkmenu-darkrpg-legacy-menu","Modrinth":"darkrpg-menu"},{"Id":9320,"Name":"奇异饰品-RLCraft版 (RLArtifacts)","CurseForge":"rl-artifacts","Modrinth":""},{"Id":9321,"Name":"","CurseForge":"azurelib","Modrinth":"azurelib"},{"Id":9322,"Name":"","CurseForge":"harder-monster-boats-finer-boat-control","Modrinth":"harder-monster-boats"},{"Id":9323,"Name":"望远镜改进 (Spyglass Improvements)","CurseForge":"spyglass-improvements","Modrinth":"spyglass-improvements"},{"Id":9324,"Name":"原版缩放 (Vanilla Zoom)","CurseForge":"vanilla-zoom","Modrinth":"vanilla-zoom"},{"Id":9325,"Name":"","CurseForge":"time-in-a-bottled","Modrinth":""},{"Id":9326,"Name":"","CurseForge":"improved-end","Modrinth":"improved-end"},{"Id":9327,"Name":"","CurseForge":"raw-block-smelting","Modrinth":""},{"Id":9328,"Name":"","CurseForge":"nocubes-better-blast-furnace","Modrinth":""},{"Id":9329,"Name":"","CurseForge":"bugjump","Modrinth":"bugjump"},{"Id":9330,"Name":"","CurseForge":"cluttered","Modrinth":"cluttered"},{"Id":9331,"Name":"","CurseForge":"digitality","Modrinth":""},{"Id":9333,"Name":"","CurseForge":"nautral-decor-mod","Modrinth":"natural-decor-mod"},{"Id":9335,"Name":"","CurseForge":"cobbled-deepslate-generator","Modrinth":""},{"Id":9336,"Name":"女性村民 (Female Villagers)","CurseForge":"female-villagers","Modrinth":""},{"Id":9338,"Name":"","CurseForge":"subaquatic","Modrinth":"subaquatic"},{"Id":9339,"Name":"","CurseForge":"leos-sans","Modrinth":""},{"Id":9340,"Name":"","CurseForge":"","Modrinth":"damagevignette"},{"Id":9341,"Name":"","CurseForge":"no-irom-farm","Modrinth":""},{"Id":9342,"Name":"","CurseForge":"amethyst-tools-mod","Modrinth":"amethyst-tools-mod"},{"Id":9343,"Name":"","CurseForge":"","Modrinth":"grate-blocks"},{"Id":9344,"Name":"","CurseForge":"lush-forests","Modrinth":""},{"Id":9346,"Name":"","CurseForge":"retraining","Modrinth":"retraining"},{"Id":9347,"Name":"","CurseForge":"ender-ore","Modrinth":"enderore"},{"Id":9348,"Name":"","CurseForge":"ars-instrumentum","Modrinth":""},{"Id":9349,"Name":"","CurseForge":"easier-sleeping","Modrinth":"easier-sleeping"},{"Id":9350,"Name":"","CurseForge":"harder-farther","Modrinth":""},{"Id":9351,"Name":"","CurseForge":"custom-signposts","Modrinth":""},{"Id":9352,"Name":"","CurseForge":"galactic-research","Modrinth":"galactic-research"},{"Id":9353,"Name":"","CurseForge":"mining-dimensions-fabric","Modrinth":""},{"Id":9354,"Name":"","CurseForge":"bejs","Modrinth":""},{"Id":9355,"Name":"","CurseForge":"screenjs","Modrinth":""},{"Id":9356,"Name":"","CurseForge":"pioneer","Modrinth":""},{"Id":9357,"Name":"","CurseForge":"","Modrinth":"sha1runtime"},{"Id":9358,"Name":"","CurseForge":"night-vision-enchantment-forge","Modrinth":"night-vision-enchantment"},{"Id":9359,"Name":"","CurseForge":"galactic-computers","Modrinth":"galactic-computers"},{"Id":9360,"Name":"","CurseForge":"mini-cites","Modrinth":""},{"Id":9361,"Name":"","CurseForge":"ad-tetra","Modrinth":"ad-tetra!"},{"Id":9362,"Name":"胸腔Forge版 (Chest Cavity - Forge Port)","CurseForge":"chest-cavity-forge-port","Modrinth":"chest-cavity-forge-port"},{"Id":9363,"Name":"","CurseForge":"entity-lagfix-lag-fix","Modrinth":""},{"Id":9364,"Name":"","CurseForge":"audioplayer","Modrinth":"audioplayer"},{"Id":9365,"Name":"","CurseForge":"vibes","Modrinth":"vibes"},{"Id":9366,"Name":"","CurseForge":"disco","Modrinth":"disco"},{"Id":9367,"Name":"","CurseForge":"the-mcxr-core","Modrinth":"mcxr-core"},{"Id":9368,"Name":"","CurseForge":"mcxr-play","Modrinth":"mcxr-play"},{"Id":9369,"Name":"","CurseForge":"beneath-the-wetlands","Modrinth":"beneath-the-wetlands"},{"Id":9371,"Name":"","CurseForge":"add-on-the-abyss-beginning","Modrinth":""},{"Id":9372,"Name":"","CurseForge":"reusable-rockets","Modrinth":"reusable-rockets"},{"Id":9373,"Name":"","CurseForge":"item-info","Modrinth":""},{"Id":9374,"Name":"","CurseForge":"florist","Modrinth":""},{"Id":9375,"Name":"","CurseForge":"omni","Modrinth":""},{"Id":9376,"Name":"","CurseForge":"frostrealm","Modrinth":"frostrealm"},{"Id":9377,"Name":"","CurseForge":"nameless-trinkets","Modrinth":"nameless-trinkets"},{"Id":9378,"Name":"","CurseForge":"unsafe-spawns","Modrinth":""},{"Id":9380,"Name":"","CurseForge":"bubbles","Modrinth":"pop"},{"Id":9381,"Name":"假死修复:土豆版 (Potato NaN Health Fix)","CurseForge":"nan-health-fixer","Modrinth":"nan-health-fixer"},{"Id":9382,"Name":"","CurseForge":"","Modrinth":"voxelmap-updated"},{"Id":9383,"Name":"","CurseForge":"blood-and-stuff","Modrinth":"blood-and-stuff"},{"Id":9384,"Name":"YUNG 的下界要塞优化 (YUNG's Better Nether Fortresses)","CurseForge":"yungs-better-nether-fortresses","Modrinth":"yungs-better-nether-fortresses"},{"Id":9384,"Name":"YUNG 的下界要塞优化 (YUNG's Better Nether Fortresses)","CurseForge":"yungs-better-nether-fortresses-fabric","Modrinth":""},{"Id":9384,"Name":"YUNG 的下界要塞优化 (YUNG's Better Nether Fortresses)","CurseForge":"yungs-better-nether-fortresses-neoforge","Modrinth":""},{"Id":9385,"Name":"","CurseForge":"squidless","Modrinth":""},{"Id":9387,"Name":"末影乐事 (Ender's Delight)","CurseForge":"enders-delight","Modrinth":"enders-delight"},{"Id":9388,"Name":"","CurseForge":"decostorage","Modrinth":"decorative-storage"},{"Id":9389,"Name":"","CurseForge":"mahogany","Modrinth":""},{"Id":9390,"Name":"","CurseForge":"aspen","Modrinth":""},{"Id":9391,"Name":"经验不修补:土豆版 (Unmending Potato Edition)","CurseForge":"unmending-potato-edition","Modrinth":""},{"Id":9392,"Name":"简易火箭筒 (Allen's Rocket Launcher)","CurseForge":"mc-modsens-rocket-launcher-arl","Modrinth":""},{"Id":9393,"Name":"","CurseForge":"","Modrinth":"item-tributes"},{"Id":9394,"Name":"","CurseForge":"assorted-discoveries","Modrinth":""},{"Id":9395,"Name":"","CurseForge":"not-so-shrimple-forge","Modrinth":""},{"Id":9396,"Name":"","CurseForge":"valkyrien-computers","Modrinth":"valkyrien-computers"},{"Id":9398,"Name":"","CurseForge":"gems-jewels","Modrinth":""},{"Id":9399,"Name":"","CurseForge":"","Modrinth":"angling"},{"Id":9400,"Name":"维度同步修复 (Dimensional Sync Fixes)","CurseForge":"dimensional-sync-fixes","Modrinth":"dimensional-sync-fixes"},{"Id":9401,"Name":"","CurseForge":"exhaustion-fatigue","Modrinth":"exhaustion-fatigue"},{"Id":9402,"Name":"","CurseForge":"chainmail-bucket","Modrinth":"chainmail-bucket"},{"Id":9403,"Name":"","CurseForge":"preciseblockplacing","Modrinth":""},{"Id":9404,"Name":"","CurseForge":"accurate-block-placement-reforged","Modrinth":""},{"Id":9405,"Name":"","CurseForge":"carpet-tctc-addition","Modrinth":"carpet-tctc-addition"},{"Id":9407,"Name":"","CurseForge":"plushie-mod","Modrinth":"plushie"},{"Id":9408,"Name":"","CurseForge":"shield-expansion","Modrinth":"shield-expansion"},{"Id":9409,"Name":"","CurseForge":"many-systems","Modrinth":""},{"Id":9410,"Name":"野蛮人 (Barbarians)","CurseForge":"barbarians","Modrinth":""},{"Id":9411,"Name":"","CurseForge":"minecraft-startup-sound-aka-mojaaaaaang","Modrinth":""},{"Id":9412,"Name":"真实地形生成非官方版 (Realistic Terrain Generation Unofficial)","CurseForge":"realistic-terrain-generation-unofficial","Modrinth":""},{"Id":9413,"Name":"战斗附魔 (Combat Enchantments)","CurseForge":"combat-enchantments","Modrinth":"combatenchantments"},{"Id":9414,"Name":"","CurseForge":"fastentitytransfer","Modrinth":"fastentitytransfer"},{"Id":9415,"Name":"","CurseForge":"chalice","Modrinth":""},{"Id":9417,"Name":"","CurseForge":"one-twenty-update","Modrinth":""},{"Id":9418,"Name":"","CurseForge":"minecraft-middle-ages","Modrinth":"days-in-the-middle-ages"},{"Id":9419,"Name":"","CurseForge":"gibmemojangstudio","Modrinth":""},{"Id":9420,"Name":"","CurseForge":"redwolf-music-expansion","Modrinth":"redwolf-music-expansion"},{"Id":9421,"Name":"","CurseForge":"","Modrinth":"nameprotect"},{"Id":9422,"Name":"","CurseForge":"gliders","Modrinth":"gliders"},{"Id":9423,"Name":"","CurseForge":"","Modrinth":"no-teleport-cooldown"},{"Id":9424,"Name":"双人骑行 (Riding Partners)","CurseForge":"riding-partners","Modrinth":"riding-partners"},{"Id":9425,"Name":"","CurseForge":"rpgskillable","Modrinth":""},{"Id":9426,"Name":"","CurseForge":"extra-discs","Modrinth":"extra-discs"},{"Id":9427,"Name":"","CurseForge":"propertyerizer","Modrinth":""},{"Id":9428,"Name":"涂蜡珊瑚 (Waxable Coral)","CurseForge":"waxable-coral","Modrinth":"waxable-coral"},{"Id":9429,"Name":"火焰框架 (FireFrame)","CurseForge":"","Modrinth":"fireframe"},{"Id":9430,"Name":"","CurseForge":"goated","Modrinth":"goated"},{"Id":9431,"Name":"","CurseForge":"morebread","Modrinth":"morebread"},{"Id":9435,"Name":"","CurseForge":"ice-prevents-crop-growth","Modrinth":"ice-prevents-crop-growth"},{"Id":9436,"Name":"","CurseForge":"","Modrinth":"gold-coins-mod"},{"Id":9437,"Name":"矿石发光 (Glowing Ores)","CurseForge":"glowing-ores","Modrinth":""},{"Id":9439,"Name":"","CurseForge":"falsetweaks","Modrinth":"falsetweaks"},{"Id":9440,"Name":"元世界:非官方版 (Metaworlds Unofficial)","CurseForge":"metaworlds-unofficial","Modrinth":"metaworldsunofficial"},{"Id":9441,"Name":"","CurseForge":"tslateffectslib","Modrinth":"tslateffectslib"},{"Id":9442,"Name":"","CurseForge":"tslatentitystatus-tes","Modrinth":"tslatentitystatus"},{"Id":9443,"Name":"","CurseForge":"rounds-invisible-frames","Modrinth":"invisible-frames-mod"},{"Id":9444,"Name":"","CurseForge":"elytra-capes","Modrinth":"elytracapes"},{"Id":9445,"Name":"","CurseForge":"config-swapper","Modrinth":""},{"Id":9446,"Name":"","CurseForge":"viafabricplus","Modrinth":"viafabricplus"},{"Id":9447,"Name":"","CurseForge":"menu-companions","Modrinth":""},{"Id":9448,"Name":"","CurseForge":"entity-render-distance-extender","Modrinth":"erde"},{"Id":9449,"Name":"RPG 耐力 (RPG Stamina)","CurseForge":"rpg-stamina","Modrinth":""},{"Id":9450,"Name":"","CurseForge":"mjs-animations","Modrinth":""},{"Id":9451,"Name":"","CurseForge":"deepslate-generator","Modrinth":""},{"Id":9452,"Name":"","CurseForge":"hairy-zombies","Modrinth":""},{"Id":9454,"Name":"脚印粒子 (FootprintParticle)","CurseForge":"footprintparticle","Modrinth":"footprintparticle"},{"Id":9455,"Name":"","CurseForge":"tabbychat","Modrinth":""},{"Id":9456,"Name":"","CurseForge":"","Modrinth":"leafculling"},{"Id":9457,"Name":"","CurseForge":"unimixins","Modrinth":"unimixins"},{"Id":9458,"Name":"魔戒:第一纪元 NEI 插件 (NEI LOTR FA)","CurseForge":"nei-lotr-fa","Modrinth":""},{"Id":9459,"Name":"零重力 (NoGravity)","CurseForge":"nogravity-mod","Modrinth":"nogravity"},{"Id":9460,"Name":"","CurseForge":"milk-of-magnesium","Modrinth":""},{"Id":9461,"Name":"","CurseForge":"","Modrinth":"slumber"},{"Id":9462,"Name":"","CurseForge":"nei-recipe-handlers","Modrinth":""},{"Id":9463,"Name":"","CurseForge":"nox-a-mob-and-difficulty-overhaul","Modrinth":"nox"},{"Id":9464,"Name":"","CurseForge":"christmas-festivity","Modrinth":""},{"Id":9465,"Name":"","CurseForge":"tameable-beasts","Modrinth":"tameable-beasts"},{"Id":9466,"Name":"","CurseForge":"cute-hermit-crabs","Modrinth":""},{"Id":9466,"Name":"","CurseForge":"cute-hermit-crabs-fabric","Modrinth":""},{"Id":9468,"Name":"","CurseForge":"receiver-mod","Modrinth":""},{"Id":9469,"Name":"充电座 (ChargePads)","CurseForge":"chargepads","Modrinth":""},{"Id":9470,"Name":"雪!真实的魔法!(土豆版) (Snow Real Magic Potato Edition)","CurseForge":"snow-real-magic-potato-edition","Modrinth":""},{"Id":9472,"Name":"","CurseForge":"ravenous-void","Modrinth":""},{"Id":9473,"Name":"","CurseForge":"immersive-engineering-blueprint-tweaker","Modrinth":"iebpt"},{"Id":9474,"Name":"","CurseForge":"mob-compack","Modrinth":""},{"Id":9475,"Name":"","CurseForge":"kore-sample","Modrinth":""},{"Id":9476,"Name":"","CurseForge":"multiworld","Modrinth":""},{"Id":9478,"Name":"","CurseForge":"peat-zombie","Modrinth":""},{"Id":9479,"Name":"Ragna Goblin - 新","CurseForge":"ragna-goblin-updated","Modrinth":""},{"Id":9479,"Name":"Ragna Goblin - 旧(不再更新)","CurseForge":"ragna-goblin","Modrinth":""},{"Id":9480,"Name":"","CurseForge":"demogorgon","Modrinth":"demogorgon"},{"Id":9481,"Name":"","CurseForge":"haunted-fields","Modrinth":""},{"Id":9482,"Name":"","CurseForge":"health-command","Modrinth":"health-command"},{"Id":9483,"Name":"","CurseForge":"splash-logo-color-fix","Modrinth":""},{"Id":9484,"Name":"","CurseForge":"frv-tools","Modrinth":""},{"Id":9485,"Name":"","CurseForge":"bombs-bandits","Modrinth":""},{"Id":9486,"Name":"","CurseForge":"immersive-cavegen","Modrinth":"icg"},{"Id":9487,"Name":"","CurseForge":"villager-brute","Modrinth":""},{"Id":9488,"Name":"","CurseForge":"exspiravit-magicae","Modrinth":""},{"Id":9489,"Name":"","CurseForge":"equiped","Modrinth":""},{"Id":9490,"Name":"","CurseForge":"limited-chunkloading","Modrinth":""},{"Id":9491,"Name":"自定义村民交易 (Custom Villager Trades)","CurseForge":"custom-villager-trades-forge","Modrinth":"custom-villager-trades"},{"Id":9491,"Name":"自定义村民交易 (Custom Villager Trades)","CurseForge":"custom-villager-trades-fabric","Modrinth":""},{"Id":9492,"Name":"","CurseForge":"dungeons-more-mod","Modrinth":""},{"Id":9493,"Name":"","CurseForge":"ancient-trees","Modrinth":""},{"Id":9494,"Name":"","CurseForge":"extraskills","Modrinth":""},{"Id":9495,"Name":"","CurseForge":"scotts-tweaks","Modrinth":""},{"Id":9496,"Name":"","CurseForge":"kore-sample-l","Modrinth":""},{"Id":9497,"Name":"","CurseForge":"book-wyrms","Modrinth":"book-wyrms"},{"Id":9498,"Name":"群兽行为L (Nakaroths Herdcraft L)","CurseForge":"nakaroths-herdcraft-l","Modrinth":""},{"Id":9499,"Name":"","CurseForge":"mystical-oak-tree","Modrinth":"mystical-oak-tree"},{"Id":9500,"Name":"","CurseForge":"ancient-trees-l","Modrinth":""},{"Id":9501,"Name":"屠宰工艺 (Butchercraft)","CurseForge":"butchercraft","Modrinth":"butchercraft"},{"Id":9502,"Name":"","CurseForge":"zombie-invasion","Modrinth":"zombie-invasion"},{"Id":9503,"Name":"","CurseForge":"clay-soldiers-reborn","Modrinth":""},{"Id":9504,"Name":"","CurseForge":"geore","Modrinth":"geore"},{"Id":9505,"Name":"","CurseForge":"mt-claysoldiers2-forge","Modrinth":""},{"Id":9506,"Name":"安全键位名 (SafeKeyString)","CurseForge":"safekeystring","Modrinth":""},{"Id":9507,"Name":"","CurseForge":"loadingtips","Modrinth":""},{"Id":9508,"Name":"","CurseForge":"gear-o-plenty","Modrinth":""},{"Id":9509,"Name":"","CurseForge":"regional-water","Modrinth":""},{"Id":9510,"Name":"","CurseForge":"battle-text","Modrinth":""},{"Id":9511,"Name":"","CurseForge":"music-choices","Modrinth":""},{"Id":9513,"Name":"落雪 (Snowfall)","CurseForge":"chemcraft-snowfall","Modrinth":""},{"Id":9514,"Name":"隐藏式字幕 (Closed Captions)","CurseForge":"closed-captions","Modrinth":""},{"Id":9515,"Name":"","CurseForge":"dont-pick-up","Modrinth":""},{"Id":9516,"Name":"简单繁殖 (Easy Breeding)","CurseForge":"easy-breeding","Modrinth":""},{"Id":9518,"Name":"","CurseForge":"chemcraft-core","Modrinth":""},{"Id":9520,"Name":"盆栽人 (Bonsai Man Mod)","CurseForge":"bonsai-man-mod","Modrinth":""},{"Id":9522,"Name":"","CurseForge":"pet-cemetery","Modrinth":"pet-cemetery"},{"Id":9523,"Name":"","CurseForge":"chemcraft-geocraft","Modrinth":""},{"Id":9525,"Name":"蒸汽时代革命 (SteamAgeRevolution)","CurseForge":"steamagerevolution","Modrinth":""},{"Id":9527,"Name":"","CurseForge":"brewcraft","Modrinth":""},{"Id":9528,"Name":"僵尸意识冻结修复 (Zombie Awareness Freeze Fix)","CurseForge":"zombie-awareness-freeze-fix","Modrinth":""},{"Id":9529,"Name":"","CurseForge":"integrated-stronghold","Modrinth":""},{"Id":9529,"Name":"Integrated Stronghold - 未及时更新","CurseForge":"","Modrinth":"integrated-stronghold"},{"Id":9530,"Name":"","CurseForge":"grass-overhaul","Modrinth":"grass-overhaul"},{"Id":9531,"Name":"","CurseForge":"","Modrinth":"purpurclient"},{"Id":9532,"Name":"","CurseForge":"alkimicraft-part-i-project-oasis","Modrinth":""},{"Id":9533,"Name":"洞穴装饰3 (WildCaves 3)","CurseForge":"wild-caves-3","Modrinth":""},{"Id":9534,"Name":"","CurseForge":"modest-mining","Modrinth":"modest-mining"},{"Id":9535,"Name":"","CurseForge":"vanilla-compats","Modrinth":""},{"Id":9536,"Name":"自动售货机 (Vending block)","CurseForge":"vending-block","Modrinth":""},{"Id":9536,"Name":"自动售货机 (Vending block)","CurseForge":"vending-block-1-5","Modrinth":""},{"Id":9538,"Name":"自动售货机:重生 (Vending Block Revived)","CurseForge":"vending-block-revived","Modrinth":""},{"Id":9539,"Name":"","CurseForge":"assortment","Modrinth":""},{"Id":9541,"Name":"哦,土豆! (Opotato)","CurseForge":"opotato","Modrinth":""},{"Id":9542,"Name":"游戏内输入法续更版 / 游戏内输入法 Forge 重置版 (ContingameIME / IngameIME-Forge / IngameIME-Forged)","CurseForge":"contingameime","Modrinth":"contingameime"},{"Id":9543,"Name":"","CurseForge":"ccastroadds","Modrinth":""},{"Id":9544,"Name":"","CurseForge":"aerial-hell","Modrinth":"aerial-hell"},{"Id":9545,"Name":"","CurseForge":"swashbucklers","Modrinth":"swashbucklers"},{"Id":9546,"Name":"","CurseForge":"style","Modrinth":""},{"Id":9547,"Name":"","CurseForge":"eatable-livestock","Modrinth":""},{"Id":9548,"Name":"绝食 (Hunger Strike)","CurseForge":"hunger-strike","Modrinth":"hunger-strike"},{"Id":9549,"Name":"更多按钮 (ExtraButtons)","CurseForge":"extrabuttons","Modrinth":"extra-buttons"},{"Id":9550,"Name":"","CurseForge":"big-doors","Modrinth":""},{"Id":9551,"Name":"","CurseForge":"blockshot","Modrinth":"blockshot"},{"Id":9552,"Name":"","CurseForge":"jump-over-fences-forge","Modrinth":"jump-over-fences"},{"Id":9553,"Name":"","CurseForge":"luppiis-ladders","Modrinth":""},{"Id":9555,"Name":"","CurseForge":"anthropophagy","Modrinth":"anthropophagy"},{"Id":9556,"Name":"","CurseForge":"ambient-structures","Modrinth":""},{"Id":9557,"Name":"魔能3 (Minegicka III)","CurseForge":"minegicka-iii","Modrinth":""},{"Id":9558,"Name":"","CurseForge":"hopo-better-underwater-ruins","Modrinth":""},{"Id":9560,"Name":"","CurseForge":"just-another-crafting-bench","Modrinth":""},{"Id":9561,"Name":"","CurseForge":"tiny-ents","Modrinth":""},{"Id":9565,"Name":"","CurseForge":"nei-emmaitar","Modrinth":""},{"Id":9566,"Name":"","CurseForge":"magicrafted-rings-of-power","Modrinth":""},{"Id":9568,"Name":"","CurseForge":"skybox-loader-forge","Modrinth":""},{"Id":9569,"Name":"简单饲养 (Easy feeding)","CurseForge":"easy-feed","Modrinth":"mcf-easyfeed"},{"Id":9570,"Name":"","CurseForge":"create-buffers-beams","Modrinth":""},{"Id":9571,"Name":"","CurseForge":"small-boats-mod","Modrinth":""},{"Id":9572,"Name":"","CurseForge":"redev","Modrinth":"redev"},{"Id":9573,"Name":"","CurseForge":"wands-and-wizardry","Modrinth":""},{"Id":9574,"Name":"","CurseForge":"geore-nouveau","Modrinth":"geore-nouveau"},{"Id":9575,"Name":"","CurseForge":"crimsonsteves-more-mobs","Modrinth":""},{"Id":9576,"Name":"","CurseForge":"the-ulterlands","Modrinth":""},{"Id":9577,"Name":"","CurseForge":"mt-lotr","Modrinth":""},{"Id":9578,"Name":"","CurseForge":"asjcore","Modrinth":"asjcore"},{"Id":9579,"Name":"克星信息显示 (Bane Tooltips)","CurseForge":"bane-tooltips","Modrinth":""},{"Id":9580,"Name":"","CurseForge":"lava-crystal","Modrinth":""},{"Id":9581,"Name":"","CurseForge":"literal-sky-block","Modrinth":""},{"Id":9582,"Name":"","CurseForge":"","Modrinth":"literal-sky-block-fabric"},{"Id":9583,"Name":"","CurseForge":"aniskin","Modrinth":""},{"Id":9584,"Name":"","CurseForge":"mob-stacker","Modrinth":"mob-stacker"},{"Id":9585,"Name":"","CurseForge":"mob-stacker-integration","Modrinth":"mob-stacker-integration"},{"Id":9586,"Name":"","CurseForge":"mob-stacker-farming","Modrinth":"mob-stacker-farming"},{"Id":9587,"Name":"","CurseForge":"lightspeedmod","Modrinth":"lightspeed"},{"Id":9588,"Name":"咖啡乐事 (Coffee Delight)","CurseForge":"coffee-delight","Modrinth":"coffee-delight"},{"Id":9589,"Name":"","CurseForge":"simple-sculk-dimension-deeper-dark","Modrinth":""},{"Id":9590,"Name":"","CurseForge":"no-more-inifinite-water","Modrinth":"finite-water"},{"Id":9591,"Name":"","CurseForge":"choo-choo-craft","Modrinth":""},{"Id":9592,"Name":"","CurseForge":"eco-mobs","Modrinth":""},{"Id":9593,"Name":"","CurseForge":"project-597651","Modrinth":""},{"Id":9594,"Name":"","CurseForge":"chalk-fabric-colorful-addon","Modrinth":"chalk-colorful-addon"},{"Id":9595,"Name":"","CurseForge":"","Modrinth":"asielib"},{"Id":9596,"Name":"","CurseForge":"food-bosses-reheated","Modrinth":""},{"Id":9597,"Name":"","CurseForge":"dreamland-biomes","Modrinth":""},{"Id":9598,"Name":"基岩版唱片机 (BedrockJukebox)","CurseForge":"","Modrinth":"bedrockjukebox"},{"Id":9599,"Name":"","CurseForge":"environmental-expansion","Modrinth":""},{"Id":9600,"Name":"","CurseForge":"neutrality","Modrinth":""},{"Id":9601,"Name":"","CurseForge":"bygone-land","Modrinth":""},{"Id":9602,"Name":"","CurseForge":"the-amazing-world-of-mobs","Modrinth":""},{"Id":9603,"Name":"","CurseForge":"falloutcraft","Modrinth":"falloutcraft"},{"Id":9604,"Name":"植物魔法附加 (Botania Additions)","CurseForge":"botania-additions","Modrinth":""},{"Id":9605,"Name":"","CurseForge":"dragonrealm","Modrinth":""},{"Id":9606,"Name":"","CurseForge":"ydms-ducks-mod","Modrinth":"the-ducks"},{"Id":9607,"Name":"","CurseForge":"arthropod-reborn","Modrinth":""},{"Id":9608,"Name":"","CurseForge":"the-undefeatables","Modrinth":"undefeatables"},{"Id":9609,"Name":"","CurseForge":"durts-nether-dungeons","Modrinth":"nether-dungeons"},{"Id":9611,"Name":"","CurseForge":"health-and-hunger-tweaks","Modrinth":""},{"Id":9612,"Name":"","CurseForge":"","Modrinth":"create-track-map"},{"Id":9613,"Name":"","CurseForge":"improved-hoes","Modrinth":""},{"Id":9614,"Name":"","CurseForge":"orehider","Modrinth":"orehider"},{"Id":9615,"Name":"","CurseForge":"full-grown-crop-marker","Modrinth":"full-grown-crop-marker"},{"Id":9618,"Name":"行李箱 (Luggage)","CurseForge":"luggage","Modrinth":""},{"Id":9620,"Name":"","CurseForge":"slime-breeder-advanced","Modrinth":""},{"Id":9621,"Name":"","CurseForge":"ahznbs-naruto-mod","Modrinth":"ahznbs-shinobicraft"},{"Id":9622,"Name":"","CurseForge":"delightful-mining","Modrinth":""},{"Id":9624,"Name":"","CurseForge":"","Modrinth":"beancoin"},{"Id":9626,"Name":"","CurseForge":"trimmable-tools","Modrinth":""},{"Id":9627,"Name":"锯木台 (Tablesaw)","CurseForge":"","Modrinth":"tablesaw"},{"Id":9628,"Name":"","CurseForge":"glowglass","Modrinth":"glowglass"},{"Id":9629,"Name":"","CurseForge":"mc-mods-the-fan-made-discs","Modrinth":"all-the-fan-made-discs"},{"Id":9630,"Name":"","CurseForge":"from-the-fog","Modrinth":""},{"Id":9631,"Name":"","CurseForge":"more-ladders","Modrinth":"more-ladders"},{"Id":9632,"Name":"","CurseForge":"reblured","Modrinth":"reblured"},{"Id":9633,"Name":"","CurseForge":"spellbound-weapons","Modrinth":""},{"Id":9635,"Name":"","CurseForge":"sword-parry","Modrinth":"sword-parry"},{"Id":9636,"Name":"","CurseForge":"","Modrinth":"create-ruins"},{"Id":9637,"Name":"","CurseForge":"","Modrinth":"minegpt"},{"Id":9638,"Name":"闲暇风味 (Respiteful)","CurseForge":"respiteful","Modrinth":"respiteful"},{"Id":9639,"Name":"","CurseForge":"useful-slime","Modrinth":"useful-slime"},{"Id":9639,"Name":"","CurseForge":"useful-slime-fabric","Modrinth":""},{"Id":9640,"Name":"","CurseForge":"kelvins-better-player-animations","Modrinth":""},{"Id":9643,"Name":"","CurseForge":"tfc-casting-with-channels","Modrinth":""},{"Id":9644,"Name":"","CurseForge":"tfc-create","Modrinth":""},{"Id":9645,"Name":"","CurseForge":"max-health-fixer","Modrinth":""},{"Id":9646,"Name":"","CurseForge":"gjeb","Modrinth":"gjeb"},{"Id":9647,"Name":"","CurseForge":"bundled-delight","Modrinth":"bundled-delight"},{"Id":9649,"Name":"","CurseForge":"travellerstoasts","Modrinth":"travellerstoasts"},{"Id":9651,"Name":"","CurseForge":"","Modrinth":"ijo-pona-poki"},{"Id":9652,"Name":"身怀绝技 (Skillful)","CurseForge":"sk1llful","Modrinth":"sk1llful"},{"Id":9653,"Name":"","CurseForge":"salt","Modrinth":"salt"},{"Id":9654,"Name":"","CurseForge":"monobank","Modrinth":"monobank"},{"Id":9655,"Name":"","CurseForge":"sooty-chimneys","Modrinth":"sooty-chimneys"},{"Id":9656,"Name":"","CurseForge":"areas-undefined","Modrinth":""},{"Id":9657,"Name":"魔金琐想 (TrivialThoughts)","CurseForge":"trivialthoughts","Modrinth":""},{"Id":9658,"Name":"","CurseForge":"tfc-delight","Modrinth":""},{"Id":9659,"Name":"","CurseForge":"myssyheads-sculk-adventures","Modrinth":""},{"Id":9660,"Name":"","CurseForge":"waystone-towers","Modrinth":"waystone-towers"},{"Id":9661,"Name":"","CurseForge":"smitheesfoundry","Modrinth":"smitheesfoundry"},{"Id":9663,"Name":"","CurseForge":"beach-slimes","Modrinth":""},{"Id":9664,"Name":"可骑乘的劫掠兽 (Rideable Ravagers)","CurseForge":"rideable-ravagers","Modrinth":"rideable-ravagers"},{"Id":9665,"Name":"斯普拉遁 (Splatcraft)","CurseForge":"splatcraft","Modrinth":"splatcraft"},{"Id":9666,"Name":"","CurseForge":"beneath-the-snow","Modrinth":""},{"Id":9667,"Name":"","CurseForge":"sea-creeps","Modrinth":"sea-creeps"},{"Id":9668,"Name":"技能:香草 (Skills: Vanilla)","CurseForge":"skills-v","Modrinth":""},{"Id":9670,"Name":"","CurseForge":"flower-foxes","Modrinth":""},{"Id":9671,"Name":"","CurseForge":"pack-it-up","Modrinth":"pack-it-up"},{"Id":9672,"Name":"","CurseForge":"mine-trading-cards-open-source-edition","Modrinth":"mine-trading-cards"},{"Id":9673,"Name":"电锯人 (Chainsaw Man)","CurseForge":"chainsaw-man-csm","Modrinth":""},{"Id":9674,"Name":"","CurseForge":"superior-shields","Modrinth":"superior-shields"},{"Id":9675,"Name":"","CurseForge":"alternative-world-save-location","Modrinth":"alternative-world-save-location"},{"Id":9676,"Name":"技能:枪械 (Skills: Firearms)","CurseForge":"skills-firearms","Modrinth":""},{"Id":9677,"Name":"","CurseForge":"tx-loader","Modrinth":"tx-loader"},{"Id":9678,"Name":"","CurseForge":"Reacharound","Modrinth":"reacharound"},{"Id":9679,"Name":"Variety Aquatic - 已被续作替代","CurseForge":"variety-aquatic","Modrinth":""},{"Id":9679,"Name":"","CurseForge":"","Modrinth":"variety-aquatic"},{"Id":9680,"Name":"","CurseForge":"blocks-booster","Modrinth":"blocks-booster"},{"Id":9682,"Name":"群峦铸铁烤架 (TFC Cast Iron Grill)","CurseForge":"tfc-cast-iron-grill","Modrinth":"tfc-cast-iron-grill"},{"Id":9683,"Name":"群峦金属加工 (TFC Metalwork)","CurseForge":"tfc_metalwork","Modrinth":""},{"Id":9684,"Name":"赣味乐事与家常菜 (Gan Delight Reborn)","CurseForge":"","Modrinth":"gan_delight"},{"Id":9687,"Name":"Macaw 的家具:群峦传说附属 (Furniture Compatibility for Macaw/TFC)","CurseForge":"furniture-compatibility-for-macaw-tfc","Modrinth":""},{"Id":9688,"Name":"Macaw的屋顶:群峦传说附属 (Roof Compatibility for TFC/Macaw)","CurseForge":"roof-compatibility-for-tfc-macaw","Modrinth":""},{"Id":9690,"Name":"群峦锦致装饰 (TFC Supplementaries)","CurseForge":"tfc-supplementaries","Modrinth":""},{"Id":9691,"Name":"群峦传说:沉浸工程兼容附属 (TFC + IE Crossover)","CurseForge":"tfc-ie-crossover","Modrinth":""},{"Id":9692,"Name":"","CurseForge":"bridging-mod","Modrinth":"bridging-mod"},{"Id":9693,"Name":"晶洞+ (Geode+)","CurseForge":"geode-plus","Modrinth":"geode-plus"},{"Id":9693,"Name":"晶洞+ (Geode+)","CurseForge":"geodeplus-backport","Modrinth":""},{"Id":9694,"Name":"","CurseForge":"cursed-difficulty","Modrinth":"cursed-difficulty"},{"Id":9697,"Name":"","CurseForge":"algane","Modrinth":""},{"Id":9698,"Name":"时之黎明 (Dawn of Time)","CurseForge":"dawn-of-time","Modrinth":"dawn-of-time"},{"Id":9699,"Name":"","CurseForge":"kubejs-projecte","Modrinth":"kubejs-projecte"},{"Id":9700,"Name":"","CurseForge":"biome-backport","Modrinth":""},{"Id":9701,"Name":"","CurseForge":"infernal-geode","Modrinth":""},{"Id":9702,"Name":"","CurseForge":"geode-o-plenty","Modrinth":""},{"Id":9703,"Name":"","CurseForge":"the-banished","Modrinth":"the-banished"},{"Id":9704,"Name":"","CurseForge":"pufflos","Modrinth":""},{"Id":9705,"Name":"","CurseForge":"wizardry-the-next-generation","Modrinth":""},{"Id":9707,"Name":"","CurseForge":"lagbgon","Modrinth":""},{"Id":9708,"Name":"","CurseForge":"doodads-fabric","Modrinth":""},{"Id":9709,"Name":"科目三:甜蜜的梦 (Subject Three: Sweet Dreams)","CurseForge":"subject-three-sweet-dreams","Modrinth":"subject-three-sweet-dreams"},{"Id":9710,"Name":"","CurseForge":"ocd-shaders-mod","Modrinth":""},{"Id":9711,"Name":"","CurseForge":"create-shrunk","Modrinth":""},{"Id":9712,"Name":"","CurseForge":"cherish","Modrinth":""},{"Id":9713,"Name":"失落城堡 (The Lost Castle)","CurseForge":"the-lost-castle","Modrinth":"the-lost-castle"},{"Id":9713,"Name":"失落城堡 (The Lost Castle)","CurseForge":"the-lost-castle-fabric","Modrinth":""},{"Id":9714,"Name":"羊驼! (Llamarama)","CurseForge":"llamarama","Modrinth":""},{"Id":9715,"Name":"","CurseForge":"simple-conveyors","Modrinth":""},{"Id":9716,"Name":"","CurseForge":"itemupgrader-core","Modrinth":""},{"Id":9717,"Name":"","CurseForge":"itemupgrader","Modrinth":""},{"Id":9718,"Name":"","CurseForge":"screenfx","Modrinth":"screenfx"},{"Id":9719,"Name":"","CurseForge":"dense-ores-abundant","Modrinth":"dense-ores"},{"Id":9720,"Name":"工匠巧思 (Tinkers' Thinking)","CurseForge":"tinkers-thinking","Modrinth":"tinkers-thinking"},{"Id":9721,"Name":"","CurseForge":"simple-musket","Modrinth":"simple-musket"},{"Id":9722,"Name":"","CurseForge":"cash-ores","Modrinth":"cash-ores"},{"Id":9723,"Name":"","CurseForge":"stacked-dimensions","Modrinth":""},{"Id":9724,"Name":"","CurseForge":"","Modrinth":"unlimited-maxhealth"},{"Id":9725,"Name":"","CurseForge":"floral-enchantment","Modrinth":"floral-enchantment"},{"Id":9725,"Name":"","CurseForge":"floral-enchantment-fabric","Modrinth":""},{"Id":9726,"Name":"","CurseForge":"newworld","Modrinth":"new_world"},{"Id":9727,"Name":"","CurseForge":"","Modrinth":"more-stats"},{"Id":9728,"Name":"","CurseForge":"notifmod","Modrinth":"notifmod"},{"Id":9729,"Name":"","CurseForge":"wallfence","Modrinth":""},{"Id":9730,"Name":"","CurseForge":"ezwastelands","Modrinth":""},{"Id":9731,"Name":"末日生存工具包 (Zombie Survival Kit)","CurseForge":"zombie-survival-kit","Modrinth":""},{"Id":9732,"Name":"狗头人! (Kobolds!)","CurseForge":"kobolds","Modrinth":"kobolds"},{"Id":9733,"Name":"超自然 (Supernatural)","CurseForge":"supernatural","Modrinth":"supernatural"},{"Id":9734,"Name":"Salju的梯子 (Salju's Ladders)","CurseForge":"better-ladder-placements","Modrinth":"better-ladder-placements"},{"Id":9735,"Name":"","CurseForge":"magic-mirrors-forge","Modrinth":""},{"Id":9737,"Name":"","CurseForge":"abundant-atmosphere","Modrinth":"abundant-atmosphere"},{"Id":9738,"Name":"","CurseForge":"swampex","Modrinth":""},{"Id":9739,"Name":"","CurseForge":"bamboo-combat","Modrinth":"bamboo-combat"},{"Id":9740,"Name":"","CurseForge":"nicer-skies","Modrinth":"nicer-skies"},{"Id":9741,"Name":"","CurseForge":"bed-benefits","Modrinth":"bed-benefits"},{"Id":9742,"Name":"","CurseForge":"accurate-maps","Modrinth":"accurate-maps"},{"Id":9743,"Name":"","CurseForge":"incantationem","Modrinth":"incantationem"},{"Id":9744,"Name":"","CurseForge":"rebind-narrator","Modrinth":"rebind-narrator"},{"Id":9745,"Name":"","CurseForge":"earth2java","Modrinth":"earth2java"},{"Id":9745,"Name":"","CurseForge":"earth2java-mobs","Modrinth":""},{"Id":9746,"Name":"","CurseForge":"fairy-dragons","Modrinth":""},{"Id":9747,"Name":"","CurseForge":"turned-changed-extension","Modrinth":""},{"Id":9748,"Name":"","CurseForge":"immediatelyfast-reforged","Modrinth":"immediatelyfast-reforged"},{"Id":9749,"Name":"","CurseForge":"magic-mirror","Modrinth":""},{"Id":9750,"Name":"","CurseForge":"magic-mirror-fabric","Modrinth":"magic-mirror"},{"Id":9751,"Name":"","CurseForge":"chassis","Modrinth":"chassis"},{"Id":9753,"Name":"","CurseForge":"fast-doll","Modrinth":"fastdoll"},{"Id":9754,"Name":"更好的睡莲 (Better Lily Pads)","CurseForge":"better-lily-pads","Modrinth":"better-lily-pads"},{"Id":9755,"Name":"","CurseForge":"mo-zombies-wave","Modrinth":"mo-zombies-wave"},{"Id":9756,"Name":"","CurseForge":"almost-all-the-ores","Modrinth":""},{"Id":9757,"Name":"","CurseForge":"","Modrinth":"Geyser"},{"Id":9758,"Name":"","CurseForge":"supplementaries-squared","Modrinth":"supplementaries-squared"},{"Id":9759,"Name":"","CurseForge":"changed-addon-plus","Modrinth":"changed-addon-plus"},{"Id":9760,"Name":"","CurseForge":"functional-armor-trim","Modrinth":""},{"Id":9762,"Name":"","CurseForge":"belly-button","Modrinth":""},{"Id":9762,"Name":"","CurseForge":"belly-button-fabric","Modrinth":""},{"Id":9763,"Name":"","CurseForge":"raptor-chickens","Modrinth":""},{"Id":9764,"Name":"幽冥末地:非官方版 (Stygian End:Unoffical)","CurseForge":"","Modrinth":"stygian-endunoffical"},{"Id":9765,"Name":"","CurseForge":"craftheraldry","Modrinth":""},{"Id":9766,"Name":"","CurseForge":"pfaeffs-mod","Modrinth":""},{"Id":9767,"Name":"","CurseForge":"a-bad-experience","Modrinth":""},{"Id":9768,"Name":"","CurseForge":"the-nectar-mod","Modrinth":""},{"Id":9769,"Name":"","CurseForge":"heavy-boulders","Modrinth":""},{"Id":9770,"Name":"","CurseForge":"witherbold","Modrinth":""},{"Id":9771,"Name":"珠宝工艺 (Jewelcraft)","CurseForge":"jewelcraft","Modrinth":"jewelcraft"},{"Id":9772,"Name":"","CurseForge":"corrupted-souls","Modrinth":""},{"Id":9773,"Name":"","CurseForge":"cinnamon","Modrinth":""},{"Id":9774,"Name":"","CurseForge":"tfc-fight","Modrinth":""},{"Id":9775,"Name":"","CurseForge":"sbm-magic-mirror","Modrinth":""},{"Id":9776,"Name":"","CurseForge":"farmers-delight-heat-compats","Modrinth":""},{"Id":9777,"Name":"豆腐乐事 (Tofu Delight)","CurseForge":"tofu-delight","Modrinth":"tofudelight"},{"Id":9778,"Name":"","CurseForge":"gencreator","Modrinth":""},{"Id":9779,"Name":"","CurseForge":"dangeonplus","Modrinth":""},{"Id":9780,"Name":"","CurseForge":"end-upgrade","Modrinth":""},{"Id":9781,"Name":"","CurseForge":"bufferfish","Modrinth":""},{"Id":9782,"Name":"","CurseForge":"florescence","Modrinth":""},{"Id":9783,"Name":"","CurseForge":"mobcages","Modrinth":""},{"Id":9784,"Name":"","CurseForge":"you-win-button","Modrinth":""},{"Id":9785,"Name":"","CurseForge":"tea-anyone","Modrinth":""},{"Id":9786,"Name":"","CurseForge":"envirorot","Modrinth":""},{"Id":9787,"Name":"四季模组 (The Seasons Mod)","CurseForge":"the-seasons-mod","Modrinth":""},{"Id":9789,"Name":"","CurseForge":"the-realistic-leaves-mod","Modrinth":""},{"Id":9790,"Name":"","CurseForge":"untitled-swans-forge","Modrinth":""},{"Id":9791,"Name":"","CurseForge":"playdate","Modrinth":"playdate"},{"Id":9792,"Name":"","CurseForge":"molotov","Modrinth":""},{"Id":9793,"Name":"","CurseForge":"another-weapons","Modrinth":""},{"Id":9794,"Name":"","CurseForge":"","Modrinth":"elytra-toggle"},{"Id":9795,"Name":"","CurseForge":"compression","Modrinth":""},{"Id":9796,"Name":"","CurseForge":"compressor","Modrinth":"compressor"},{"Id":9798,"Name":"咒法拓展 (Hexal)","CurseForge":"hexal","Modrinth":"hexal"},{"Id":9800,"Name":"机械动力:封装工艺 (Create Encased)","CurseForge":"create-encased","Modrinth":"create-encased"},{"Id":9801,"Name":"","CurseForge":"treeplacer","Modrinth":"treeplacer"},{"Id":9802,"Name":"","CurseForge":"death-knell","Modrinth":"death-knell"},{"Id":9803,"Name":"","CurseForge":"moreiotas","Modrinth":"moreiotas"},{"Id":9804,"Name":"货币学拓展 (Numismatic Overhaul/Numismatic Overhaul: Reforged(forge))","CurseForge":"numismatic-overhaul","Modrinth":"numismatic-overhaul"},{"Id":9804,"Name":"货币学拓展 (Numismatic Overhaul/Numismatic Overhaul: Reforged(forge))","CurseForge":"numismatic-overhaul-reforged","Modrinth":""},{"Id":9805,"Name":"咒法组构学 (Hexbound)","CurseForge":"hexbound-fork","Modrinth":"hexbound-fork"},{"Id":9805,"Name":"咒法组构学 (Hexbound) - 原-","CurseForge":"","Modrinth":"hexbound"},{"Id":9806,"Name":"","CurseForge":"vanity-druid-pack","Modrinth":""},{"Id":9807,"Name":"","CurseForge":"vanity-farcrs-colossal-weapons","Modrinth":"vanity-colossal-weapons"},{"Id":9808,"Name":"残骸碎块 (Debris Chunk)","CurseForge":"debris-chunk-raw-netherite-scrap","Modrinth":"raw-netherite-scrap"},{"Id":9809,"Name":"","CurseForge":"malum-vestis","Modrinth":""},{"Id":9810,"Name":"更好的树叶渲染优化重铸版 (CullLessLeaves Reforged)","CurseForge":"culllessleaves-reforged","Modrinth":"cull-less-leaves-reforged"},{"Id":9811,"Name":"生物群系音乐 (Biome Music)","CurseForge":"biome-music","Modrinth":""},{"Id":9812,"Name":"","CurseForge":"agers-earthquake-generator","Modrinth":""},{"Id":9813,"Name":"","CurseForge":"vanity-black-gold","Modrinth":""},{"Id":9814,"Name":"","CurseForge":"vanity-bone-pack","Modrinth":""},{"Id":9815,"Name":"那是什么?仓库管理员! (What That? Wolfhouse!)","CurseForge":"what-that-wolfhouse","Modrinth":""},{"Id":9816,"Name":"","CurseForge":"click-for-hot-chicks","Modrinth":"click-for-hot-chicks"},{"Id":9817,"Name":"","CurseForge":"vanity-molten-pack","Modrinth":""},{"Id":9818,"Name":"","CurseForge":"vanity-spartan-pack","Modrinth":""},{"Id":9819,"Name":"","CurseForge":"woods-and-mires","Modrinth":"woods-and-mires"},{"Id":9820,"Name":"","CurseForge":"suggestion-tweaker","Modrinth":"suggestion-tweaker"},{"Id":9821,"Name":"","CurseForge":"Additional-Redstone","Modrinth":"additional-redstone"},{"Id":9822,"Name":"","CurseForge":"heartstone","Modrinth":"heartstone"},{"Id":9823,"Name":"","CurseForge":"dyed","Modrinth":"dyed"},{"Id":9824,"Name":"","CurseForge":"wireless-redstone","Modrinth":"wirelessredstone"},{"Id":9826,"Name":"","CurseForge":"vanity-steel-pack","Modrinth":""},{"Id":9827,"Name":"","CurseForge":"vanity-viking","Modrinth":""},{"Id":9828,"Name":"","CurseForge":"horse-expert","Modrinth":"horse-expert"},{"Id":9829,"Name":"","CurseForge":"snow-under-trees-remastered","Modrinth":"snow-under-trees-remastered"},{"Id":9830,"Name":"海洋乐事 (Ocean's Delight)","CurseForge":"oceans-delight","Modrinth":"oceans-delight"},{"Id":9831,"Name":"","CurseForge":"transcending-trident","Modrinth":"transcending-trident"},{"Id":9831,"Name":"","CurseForge":"transcending-trident-fabric","Modrinth":""},{"Id":9832,"Name":"","CurseForge":"snow-under-trees-fabric","Modrinth":""},{"Id":9833,"Name":"","CurseForge":"precision-enchanter","Modrinth":"precision-enchanter"},{"Id":9834,"Name":"","CurseForge":"immersivethunder","Modrinth":"immersivethunder"},{"Id":9835,"Name":"TOP 附加 (TOP Extras)","CurseForge":"top-extras","Modrinth":""},{"Id":9837,"Name":"","CurseForge":"potatweaker","Modrinth":""},{"Id":9838,"Name":"","CurseForge":"effect-tooltips","Modrinth":"effect-tooltips"},{"Id":9840,"Name":"","CurseForge":"variant-crafting-tables","Modrinth":""},{"Id":9841,"Name":"","CurseForge":"endless-biomes","Modrinth":"endless-biomes"},{"Id":9843,"Name":"图片聊天 (chatImg)","CurseForge":"chatimg","Modrinth":""},{"Id":9844,"Name":"","CurseForge":"throwable-explosives","Modrinth":"throwable-explosives"},{"Id":9845,"Name":"","CurseForge":"","Modrinth":"skillmmo"},{"Id":9846,"Name":"","CurseForge":"archeon","Modrinth":"archeon"},{"Id":9847,"Name":"","CurseForge":"chattoggle","Modrinth":"chattoggle"},{"Id":9848,"Name":"","CurseForge":"enchancement","Modrinth":"enchancement"},{"Id":9850,"Name":"","CurseForge":"useful-spyglass","Modrinth":"useful-spyglass"},{"Id":9853,"Name":"","CurseForge":"nff-girls","Modrinth":""},{"Id":9854,"Name":"","CurseForge":"launchgui","Modrinth":""},{"Id":9855,"Name":"村民盔甲显示 (Villager Armor Layer)","CurseForge":"villager-armor-layer","Modrinth":"villager-armor-layer"},{"Id":9856,"Name":"","CurseForge":"wasabi","Modrinth":"wasabi"},{"Id":9857,"Name":"磁铁工艺 (Magnet Craft)","CurseForge":"magnet-craft","Modrinth":""},{"Id":9858,"Name":"","CurseForge":"item-obliterator","Modrinth":"item-obliterator"},{"Id":9859,"Name":"","CurseForge":"you-shall-not-spawn","Modrinth":"you-shall-not-spawn"},{"Id":9860,"Name":"","CurseForge":"hell-on-earth","Modrinth":""},{"Id":9861,"Name":"","CurseForge":"zombie-friends","Modrinth":"zombie-friends"},{"Id":9862,"Name":"石头工艺 (Stone Craft)","CurseForge":"stone-craft-je","Modrinth":"stone-craft"},{"Id":9863,"Name":"","CurseForge":"trade-cycling","Modrinth":"trade-cycling"},{"Id":9864,"Name":"","CurseForge":"illager-revolution","Modrinth":"illager-revolution"},{"Id":9865,"Name":"","CurseForge":"extra-trades","Modrinth":""},{"Id":9866,"Name":"","CurseForge":"blood-particles-mod","Modrinth":""},{"Id":9867,"Name":"","CurseForge":"","Modrinth":"two-weeks-hud"},{"Id":9868,"Name":"","CurseForge":"fazcraft-mod","Modrinth":"fazcraft"},{"Id":9869,"Name":"","CurseForge":"mod-menu-no-more","Modrinth":"mod-menu-no-more"},{"Id":9870,"Name":"","CurseForge":"","Modrinth":"slime-craft"},{"Id":9871,"Name":"","CurseForge":"way2wayfabric","Modrinth":"way2wayfabric"},{"Id":9872,"Name":"","CurseForge":"cloche-profit-peripheral","Modrinth":""},{"Id":9873,"Name":"莱特兰-武器 (L2 Weaponry)","CurseForge":"l2weaponry","Modrinth":"l2weaponry"},{"Id":9875,"Name":"铑 (Rhodium)","CurseForge":"","Modrinth":"rhodium"},{"Id":9876,"Name":"","CurseForge":"zoom-o-matic","Modrinth":"zoom-o-matic"},{"Id":9877,"Name":"","CurseForge":"","Modrinth":"broken-tool"},{"Id":9878,"Name":"","CurseForge":"fishing-ruler","Modrinth":"fishing-ruler"},{"Id":9879,"Name":"","CurseForge":"command-relay","Modrinth":"command-relay"},{"Id":9880,"Name":"","CurseForge":"beasts-bosses","Modrinth":""},{"Id":9882,"Name":"检测器-社区版 (The One Probe Community Edition)","CurseForge":"the-one-probe-community-edition","Modrinth":""},{"Id":9883,"Name":"封包龙之进化 (PackagedDraconic)","CurseForge":"packageddraconic","Modrinth":"packageddraconic"},{"Id":9884,"Name":"","CurseForge":"imitationcore","Modrinth":""},{"Id":9885,"Name":"","CurseForge":"big-sip","Modrinth":"big-sip"},{"Id":9886,"Name":"","CurseForge":"floating","Modrinth":""},{"Id":9887,"Name":"","CurseForge":"","Modrinth":"blast-travel"},{"Id":9888,"Name":"","CurseForge":"skygrid","Modrinth":"skygrid"},{"Id":9889,"Name":"","CurseForge":"disable-new-world-creation-screen-forge","Modrinth":"disable-new-create-world-menu-forge"},{"Id":9889,"Name":"","CurseForge":"disable-new-world-creation-screen-fabric","Modrinth":"disable-new-create-world-menu-fabric"},{"Id":9890,"Name":"封包通用化学品 (PackagedMekemicals)","CurseForge":"packagedmekemicals","Modrinth":"packagedmekemicals"},{"Id":9891,"Name":"封包星辉魔法 (PackagedAstral)","CurseForge":"packagedastral","Modrinth":"packagedastral"},{"Id":9892,"Name":"通用机械-更多太阳能板 (Mekanism Advanced Generators / Mekanism-MoreSolarPanels)","CurseForge":"mekanism-advancedgenerators","Modrinth":"mekanism-moresolarpanels"},{"Id":9893,"Name":"","CurseForge":"paperandquill","Modrinth":""},{"Id":9895,"Name":"","CurseForge":"sneaky-curses-forge","Modrinth":"sneaky-curses"},{"Id":9895,"Name":"","CurseForge":"sneaky-curses-fabric","Modrinth":""},{"Id":9896,"Name":"卓越火炬 (Magnum Torch)","CurseForge":"magnum-torch-forge","Modrinth":"magnum-torch"},{"Id":9896,"Name":"卓越火炬 (Magnum Torch)","CurseForge":"magnum-torch-fabric","Modrinth":""},{"Id":9897,"Name":"通用骨粉 (Universal Bone Meal)","CurseForge":"universal-bone-meal","Modrinth":"universal-bone-meal"},{"Id":9897,"Name":"通用骨粉 (Universal Bone Meal)","CurseForge":"universal-bone-meal-fabric","Modrinth":""},{"Id":9898,"Name":"","CurseForge":"","Modrinth":"bottle-of-gender"},{"Id":9900,"Name":"改进的骑乘HUD (Leave My Bars Alone)","CurseForge":"leave-my-bars-alone","Modrinth":"leave-my-bars-alone"},{"Id":9901,"Name":"","CurseForge":"mc-mods-enchantments-for-trade","Modrinth":""},{"Id":9902,"Name":"","CurseForge":"i-need-block","Modrinth":""},{"Id":9903,"Name":"","CurseForge":"spiky-spikes","Modrinth":"spiky-spikes"},{"Id":9904,"Name":"稻草雕像 (Straw Statues)","CurseForge":"straw-statues","Modrinth":"straw-statues"},{"Id":9905,"Name":"","CurseForge":"linear-xp","Modrinth":""},{"Id":9906,"Name":"","CurseForge":"save-gear-on-death","Modrinth":""},{"Id":9907,"Name":"窗帘 (Curtain)","CurseForge":"curtain","Modrinth":"curtain"},{"Id":9908,"Name":"移除重载界面 (Remove Reloading Screen)","CurseForge":"rrls","Modrinth":"rrls"},{"Id":9909,"Name":"实体模型特性 (Entity Model Features)","CurseForge":"entity-model-features","Modrinth":"entity-model-features"},{"Id":9910,"Name":"","CurseForge":"forgestory","Modrinth":""},{"Id":9911,"Name":"","CurseForge":"armor-statues","Modrinth":"armor-statues"},{"Id":9913,"Name":"","CurseForge":"world-of-bosses","Modrinth":""},{"Id":9916,"Name":"","CurseForge":"mirabilis-vanilla-biome-overhaul","Modrinth":""},{"Id":9917,"Name":"","CurseForge":"energized-power","Modrinth":"energized-power"},{"Id":9918,"Name":"","CurseForge":"carpenter","Modrinth":""},{"Id":9919,"Name":"","CurseForge":"tolerable-creepers","Modrinth":""},{"Id":9920,"Name":"","CurseForge":"anchor","Modrinth":""},{"Id":9921,"Name":"","CurseForge":"locksmith","Modrinth":""},{"Id":9922,"Name":"神秘机械 (Mystical Machinery)","CurseForge":"mystical-machinery","Modrinth":""},{"Id":9923,"Name":"","CurseForge":"life-steal-enchantment","Modrinth":""},{"Id":9924,"Name":"更多流浪商人交易 (More Wandering Trades)","CurseForge":"more-wandering-trades","Modrinth":""},{"Id":9925,"Name":"","CurseForge":"mineralas","Modrinth":"mineralas"},{"Id":9926,"Name":"","CurseForge":"ecospherical-expansion","Modrinth":"ecospherical-expansion"},{"Id":9927,"Name":"","CurseForge":"ecospherical-depths","Modrinth":""},{"Id":9928,"Name":"","CurseForge":"arrhys-simple-currency","Modrinth":""},{"Id":9929,"Name":"","CurseForge":"better-wandering-trader","Modrinth":"better-wandering-traders"},{"Id":9930,"Name":"创造无线发送器 (Interdimensional Wireless Transmitter)","CurseForge":"interdimensional-wireless-transmitter","Modrinth":"interdimensional-wireless-transmitter"},{"Id":9931,"Name":"","CurseForge":"cozy-home","Modrinth":"cozy-home"},{"Id":9932,"Name":"","CurseForge":"inventory-crafter","Modrinth":""},{"Id":9934,"Name":"Max 的武器库 (Max's Armory)","CurseForge":"maxs-armory","Modrinth":""},{"Id":9935,"Name":"","CurseForge":"nefs-farm-decoration","Modrinth":""},{"Id":9936,"Name":"","CurseForge":"create-armory","Modrinth":"create-armory"},{"Id":9937,"Name":"","CurseForge":"dangerous-wasps","Modrinth":""},{"Id":9938,"Name":"机械动力 Fabric 版 REI 配方显示修复 (Create&REIBugFix / CreateFabric&REIBugFix)","CurseForge":"createfabricreibugfix","Modrinth":"createfabricreibugfix"},{"Id":9939,"Name":"","CurseForge":"seasontweaks","Modrinth":""},{"Id":9942,"Name":"","CurseForge":"","Modrinth":"automessenger"},{"Id":9945,"Name":"","CurseForge":"padoru","Modrinth":"padoru"},{"Id":9947,"Name":"","CurseForge":"snow-coated","Modrinth":""},{"Id":9948,"Name":"","CurseForge":"miracle-berry","Modrinth":""},{"Id":9949,"Name":"","CurseForge":"locked-chests","Modrinth":""},{"Id":9950,"Name":"Max 的扩展武器库 (Max's Armory Expansion)","CurseForge":"maxs-armory-expansion","Modrinth":""},{"Id":9952,"Name":"","CurseForge":"remove-mouseover-highlight","Modrinth":"remove-mouseover-highlight"},{"Id":9953,"Name":"","CurseForge":"apocalyptic-fortress","Modrinth":"apocalyptic-fortress"},{"Id":9956,"Name":"","CurseForge":"unbreakabler","Modrinth":""},{"Id":9957,"Name":"","CurseForge":"trails-and-tales-fabric","Modrinth":""},{"Id":9957,"Name":"","CurseForge":"trails-and-tales-1-20","Modrinth":""},{"Id":9957,"Name":"","CurseForge":"various-update-1-20-backport","Modrinth":""},{"Id":9958,"Name":"匠魂弹跳板 (Tinkers Bounce Pad)","CurseForge":"tinkers-bounce-pad","Modrinth":"tinkers-bounce-pad"},{"Id":9958,"Name":"匠魂弹跳板 (Tinkers Bounce Pad)","CurseForge":"tinkers-bounce-pad-fabric","Modrinth":"tinkers-bounce-pad-fabric"},{"Id":9959,"Name":"末影接口非官方版 (EnderIO Unofficial)","CurseForge":"enderio-unofficial","Modrinth":""},{"Id":9961,"Name":"","CurseForge":"dimensional-gravity","Modrinth":""},{"Id":9964,"Name":"","CurseForge":"bring-color-to-my-skies","Modrinth":""},{"Id":9965,"Name":"","CurseForge":"portal-dungeons","Modrinth":""},{"Id":9967,"Name":"","CurseForge":"radiant-gear","Modrinth":"radiant-gear"},{"Id":9967,"Name":"","CurseForge":"radiant-gear-fabric","Modrinth":""},{"Id":9968,"Name":"机械动力:传送器 (Create : Teleporters)","CurseForge":"create-teleporters","Modrinth":"create-teleporters"},{"Id":9969,"Name":"","CurseForge":"enchantato","Modrinth":""},{"Id":9970,"Name":"浮空立方体 (Floating Cube)","CurseForge":"floating-block","Modrinth":"floating-cube"},{"Id":9971,"Name":"","CurseForge":"curious-lanterns","Modrinth":"curious-lanterns"},{"Id":9972,"Name":"","CurseForge":"river-redux","Modrinth":"river-redux"},{"Id":9973,"Name":"","CurseForge":"restrictions","Modrinth":"restrictions"},{"Id":9974,"Name":"","CurseForge":"create-modern-train-parts","Modrinth":"modern-train-parts"},{"Id":9976,"Name":"","CurseForge":"targetato","Modrinth":""},{"Id":9977,"Name":"","CurseForge":"messagetweaker","Modrinth":""},{"Id":9980,"Name":"月见清兰的果酒 (Tskimi Seiran's Fruit Wine)","CurseForge":"tskimi-seirans-fruit-wine","Modrinth":"tskimiseirans-fruit-wine"},{"Id":9981,"Name":"刻度量筒 (Graduated Cylinders)","CurseForge":"graduated-cylinders","Modrinth":"graduated-cylinders"},{"Id":9983,"Name":"","CurseForge":"fps-monitor","Modrinth":"fps-monitor"},{"Id":9984,"Name":"","CurseForge":"athena","Modrinth":"athena-ctm"},{"Id":9985,"Name":"","CurseForge":"calm-mornings","Modrinth":"calm-mornings"},{"Id":9986,"Name":"","CurseForge":"fog-looks-good-now","Modrinth":"fog-looks-good-now"},{"Id":9987,"Name":"","CurseForge":"guarding","Modrinth":"guarding"},{"Id":9988,"Name":"","CurseForge":"cats-expanded","Modrinth":"cats-expanded"},{"Id":9989,"Name":"","CurseForge":"modular-bosses","Modrinth":""},{"Id":9990,"Name":"","CurseForge":"experience-obelisk","Modrinth":"cognition"},{"Id":9991,"Name":"","CurseForge":"here-be-no-dragons","Modrinth":""},{"Id":9992,"Name":"","CurseForge":"gnumus-settlement","Modrinth":""},{"Id":9993,"Name":"","CurseForge":"fading-night-vision","Modrinth":""},{"Id":9994,"Name":"","CurseForge":"mru","Modrinth":"mru"},{"Id":9995,"Name":"","CurseForge":"mute","Modrinth":"mute-mod"},{"Id":9996,"Name":"","CurseForge":"simple-knives","Modrinth":""},{"Id":9997,"Name":"","CurseForge":"iron-fishing-rods","Modrinth":""},{"Id":9998,"Name":"","CurseForge":"cave-rats","Modrinth":""},{"Id":9999,"Name":"","CurseForge":"","Modrinth":"squeedometer"},{"Id":10001,"Name":"","CurseForge":"sky-structures","Modrinth":""},{"Id":10002,"Name":"","CurseForge":"mannequins","Modrinth":""},{"Id":10003,"Name":"","CurseForge":"simple-mango","Modrinth":"simple-mango"},{"Id":10004,"Name":"更好的工具信息显示 (betterDrawHoveringText)","CurseForge":"betterdrawhoveringtext","Modrinth":""},{"Id":10006,"Name":"","CurseForge":"badges-by-harmex","Modrinth":"cobblebadges2"},{"Id":10007,"Name":"","CurseForge":"terrarian-arsenal","Modrinth":""},{"Id":10008,"Name":"僵尸科兽医 (Zombie Veterinarian)","CurseForge":"zombie-veterinarian","Modrinth":""},{"Id":10009,"Name":"","CurseForge":"just-enough-sculk-sensor","Modrinth":""},{"Id":10010,"Name":"","CurseForge":"hearth-and-home","Modrinth":"hearth-and-home"},{"Id":10011,"Name":"更好的升级 (Better Leveling)","CurseForge":"better-leveling","Modrinth":""},{"Id":10012,"Name":"应用魔法 (Applied Mana)","CurseForge":"applied-mana","Modrinth":""},{"Id":10013,"Name":"","CurseForge":"boundless-flux","Modrinth":""},{"Id":10015,"Name":"","CurseForge":"","Modrinth":"axolotlclient"},{"Id":10016,"Name":"","CurseForge":"energy-nodes","Modrinth":""},{"Id":10017,"Name":"","CurseForge":"fog","Modrinth":"fog"},{"Id":10018,"Name":"口渴 (Thirst Was Taken)","CurseForge":"thirst-was-taken","Modrinth":"thirst-was-taken"},{"Id":10020,"Name":"","CurseForge":"unlimited-fluidity","Modrinth":""},{"Id":10021,"Name":"","CurseForge":"e4mc","Modrinth":"e4mc"},{"Id":10022,"Name":"","CurseForge":"late-game-golems","Modrinth":"late-game-golems"},{"Id":10023,"Name":"","CurseForge":"iter-rpg","Modrinth":""},{"Id":10025,"Name":"海洋拓展 (Oceanic Expanse)","CurseForge":"oceanic-expanse","Modrinth":"oceanic-expanse"},{"Id":10028,"Name":"起源:吸血鬼 (Origins: Vampire)","CurseForge":"origins-vampire","Modrinth":""},{"Id":10030,"Name":"","CurseForge":"bad-to-the-bone","Modrinth":""},{"Id":10030,"Name":"","CurseForge":"bad-to-the-bone-fabric","Modrinth":""},{"Id":10031,"Name":"","CurseForge":"workers","Modrinth":"villager-workers"},{"Id":10033,"Name":"幽匿部落 (Sculk Horde)","CurseForge":"sculk-horde","Modrinth":"sculk-horde"},{"Id":10034,"Name":"","CurseForge":"stratospherical-expansion","Modrinth":"stratospherical-expansion"},{"Id":10035,"Name":"烛火晚宴 ([Let's Do] Candlelight) - [作者推荐]2.0.0+","CurseForge":"lets-do-candlelight-farm-charm-compat","Modrinth":"lets-do-candlelight-farmcharm-compat"},{"Id":10035,"Name":"烛火晚宴 ([Let's Do] Candlelight) - Legacy版,作者已停止维护","CurseForge":"lets-do-candlelight","Modrinth":"lets-do-candlelight"},{"Id":10036,"Name":"","CurseForge":"let-me-play-iris","Modrinth":"let-me-play-iris"},{"Id":10037,"Name":"","CurseForge":"dimensional-depths","Modrinth":""},{"Id":10038,"Name":"","CurseForge":"create-molten-vents","Modrinth":"create-molten-vents"},{"Id":10039,"Name":"","CurseForge":"everything-as-a-hat","Modrinth":"everything-as-a-hat"},{"Id":10041,"Name":"","CurseForge":"world-border-expander","Modrinth":""},{"Id":10042,"Name":"","CurseForge":"htmltech","Modrinth":""},{"Id":10043,"Name":"","CurseForge":"extra-tan","Modrinth":"extra-tan"},{"Id":10044,"Name":"钻石经济 (Diamond Economy)","CurseForge":"diamond-economy","Modrinth":"diamond-economy"},{"Id":10045,"Name":"","CurseForge":"texels-paintings","Modrinth":"texels-paintings"},{"Id":10046,"Name":"","CurseForge":"tinkers-expansion","Modrinth":""},{"Id":10047,"Name":"","CurseForge":"revelationary","Modrinth":"revelationary"},{"Id":10048,"Name":"","CurseForge":"fullstack-watchdog","Modrinth":"fullstack-watchdog"},{"Id":10050,"Name":"","CurseForge":"adventure-apparatus","Modrinth":""},{"Id":10051,"Name":"","CurseForge":"neruina","Modrinth":"neruina"},{"Id":10052,"Name":"","CurseForge":"kawaii-dishes","Modrinth":"kawaii-dishes"},{"Id":10054,"Name":"","CurseForge":"keep-my-hand","Modrinth":"keep-my-hand"},{"Id":10055,"Name":"","CurseForge":"no-lan-cheating","Modrinth":"nolancheating"},{"Id":10056,"Name":"可放置山羊角 (Placeable Goat Horns)","CurseForge":"goat-horn-block-mod","Modrinth":"placeable-goat-horns"},{"Id":10058,"Name":"金属技艺 (Metallics Arts)","CurseForge":"metallics-arts","Modrinth":""},{"Id":10059,"Name":"","CurseForge":"actions-of-stamina","Modrinth":""},{"Id":10061,"Name":"","CurseForge":"disenchanting-book","Modrinth":""},{"Id":10062,"Name":"","CurseForge":"stackdeobf","Modrinth":"stackdeobf"},{"Id":10064,"Name":"Portfolio - 仅版","CurseForge":"portfolio","Modrinth":""},{"Id":10064,"Name":"","CurseForge":"","Modrinth":"portfolio"},{"Id":10065,"Name":"","CurseForge":"","Modrinth":"nvidium"},{"Id":10066,"Name":"","CurseForge":"merequester","Modrinth":"merequester"},{"Id":10067,"Name":"入侵 (Invade)","CurseForge":"invade","Modrinth":""},{"Id":10068,"Name":"","CurseForge":"frame-api","Modrinth":"frame-api"},{"Id":10070,"Name":"","CurseForge":"realisticclouds","Modrinth":""},{"Id":10071,"Name":"","CurseForge":"arcane-world","Modrinth":""},{"Id":10072,"Name":"","CurseForge":"tiled-cauldron","Modrinth":""},{"Id":10073,"Name":"","CurseForge":"manyideas-christmas","Modrinth":"manyideas-christmas"},{"Id":10074,"Name":"","CurseForge":"overflowing-bars","Modrinth":"overflowing-bars"},{"Id":10075,"Name":"","CurseForge":"kokoalinux","Modrinth":""},{"Id":10076,"Name":"中世纪武器 (MedievalWeapons)","CurseForge":"medievalweapons","Modrinth":"medievalweapons"},{"Id":10077,"Name":"","CurseForge":"completionists-index","Modrinth":"completionists-index"},{"Id":10078,"Name":"","CurseForge":"stoneworks","Modrinth":"stoneworks"},{"Id":10080,"Name":"生物套索 (Mob Lassos)","CurseForge":"mob-lassos","Modrinth":"mob-lassos"},{"Id":10081,"Name":"","CurseForge":"mutant-monsters","Modrinth":"mutant-monsters"},{"Id":10083,"Name":"","CurseForge":"","Modrinth":"physics-toys"},{"Id":10084,"Name":"塔罗牌 (Tarot Cards)","CurseForge":"tarot-cards","Modrinth":"tarot-cards"},{"Id":10086,"Name":"","CurseForge":"chatmove","Modrinth":"chatmove"},{"Id":10087,"Name":"","CurseForge":"","Modrinth":"forgedloaderapi"},{"Id":10088,"Name":"","CurseForge":"public-transport-mod","Modrinth":""},{"Id":10089,"Name":"","CurseForge":"mineral-chance","Modrinth":"mineral-chance"},{"Id":10090,"Name":"","CurseForge":"random-bone-meal-flowers","Modrinth":"random-bone-meal-flowers"},{"Id":10091,"Name":"","CurseForge":"now-playing-forge","Modrinth":"now-playing"},{"Id":10091,"Name":"","CurseForge":"now-playing","Modrinth":""},{"Id":10092,"Name":"末地传送门配方 (End Portal Recipe)","CurseForge":"end-portal-recipe","Modrinth":"end-portal-recipe"},{"Id":10093,"Name":"","CurseForge":"crying-portals","Modrinth":"crying-portals"},{"Id":10094,"Name":"末影龙掉落鞘翅 (Dragon Drops Elytra)","CurseForge":"dragon-drops-elytra","Modrinth":"dragon-drops-elytra"},{"Id":10095,"Name":"命名牌调整 (Name Tag Tweaks)","CurseForge":"name-tag-tweaks","Modrinth":"name-tag-tweaks"},{"Id":10096,"Name":"","CurseForge":"funky-yoyo","Modrinth":"funkyyoyo"},{"Id":10097,"Name":"","CurseForge":"pierce-arrow","Modrinth":"pierce-arrow"},{"Id":10098,"Name":"","CurseForge":"tool-sharpening","Modrinth":""},{"Id":10099,"Name":"群峦救援-非官方版扩展 (kTFRUAddon)","CurseForge":"","Modrinth":"ktfruaddon"},{"Id":10100,"Name":"","CurseForge":"pigsteel","Modrinth":"pigsteel-fabric"},{"Id":10100,"Name":"","CurseForge":"pigsteel-forge","Modrinth":"pigsteel-forge"},{"Id":10105,"Name":"花卉地图 (Flower Map)","CurseForge":"flowermap","Modrinth":"flowermap"},{"Id":10106,"Name":"","CurseForge":"hopo-better-mineshaft","Modrinth":""},{"Id":10108,"Name":"","CurseForge":"reforgium","Modrinth":"reforgium"},{"Id":10109,"Name":"","CurseForge":"spoorn-weapon-attributes","Modrinth":"spoorn-weapon-attributes"},{"Id":10111,"Name":"","CurseForge":"fabrc-legacy-fixes","Modrinth":"legacy-fabric-fixes"},{"Id":10115,"Name":"","CurseForge":"moa-decor-bath","Modrinth":""},{"Id":10117,"Name":"","CurseForge":"stealing-the-villagers-forge","Modrinth":"stealing-the-villagers-forge"},{"Id":10117,"Name":"","CurseForge":"stealing-the-villagers-fabric","Modrinth":"stealing-the-villagers-fabric"},{"Id":10118,"Name":"","CurseForge":"spoorn-armorattributes","Modrinth":"spoorn-armor-attributes"},{"Id":10119,"Name":"","CurseForge":"connectedness","Modrinth":"connectedness"},{"Id":10120,"Name":"史诗武士 (Epic Samurai's / Samurai Dynasty)","CurseForge":"epic-samurais","Modrinth":"epic-samurais"},{"Id":10120,"Name":"史诗武士 (Epic Samurai's / Samurai Dynasty)","CurseForge":"epic-samurais-fabric","Modrinth":"epic-samruais-fabric"},{"Id":10121,"Name":"","CurseForge":"sandwiches-n-more","Modrinth":""},{"Id":10122,"Name":"","CurseForge":"enchantments-plus-fabric","Modrinth":"enchantments-plus"},{"Id":10123,"Name":"","CurseForge":"purpeille","Modrinth":"purpeille"},{"Id":10124,"Name":"","CurseForge":"carpet-sky-additions","Modrinth":"carpet-sky-additions"},{"Id":10125,"Name":"生活调味料:胡萝卜非官方版 (SOL - Carrot Unofficial)","CurseForge":"spice-of-life-carrot-edition-unofficial","Modrinth":""},{"Id":10126,"Name":"","CurseForge":"ender-dragon-egg-respawn-fabric","Modrinth":""},{"Id":10127,"Name":"私人维度 (Personal Space)","CurseForge":"personal-space","Modrinth":""},{"Id":10128,"Name":"手持物品信息显示 (Held Item Tooltips)","CurseForge":"held-item-tooltips","Modrinth":"held-item-tooltips"},{"Id":10129,"Name":"","CurseForge":"minecraft-shark-mod","Modrinth":""},{"Id":10130,"Name":"","CurseForge":"forgotten-delight","Modrinth":"forgotten-delight"},{"Id":10132,"Name":"","CurseForge":"enhancedlootbags","Modrinth":""},{"Id":10133,"Name":"","CurseForge":"recipe-reshaper","Modrinth":"recipe-reshaper"},{"Id":10134,"Name":"布罗艾 Hellish 版 (Hellish Blåhaj)","CurseForge":"hellish-blahaj","Modrinth":"hellish-blahaj"},{"Id":10135,"Name":"琥珀 (Amber)","CurseForge":"amber-jade","Modrinth":"amber-jade"},{"Id":10136,"Name":"","CurseForge":"mafglib","Modrinth":"mafglib"},{"Id":10137,"Name":"","CurseForge":"","Modrinth":"fast-minecart"},{"Id":10138,"Name":"","CurseForge":"ae2_tools","Modrinth":""},{"Id":10139,"Name":"","CurseForge":"create-compats","Modrinth":""},{"Id":10140,"Name":"","CurseForge":"dont-drop-it","Modrinth":"dont-drop-it"},{"Id":10141,"Name":"","CurseForge":"nicemod-new-blocks","Modrinth":"nicemod"},{"Id":10142,"Name":"全息蓝图 (Forgematica / Litematica-Forge)","CurseForge":"forgematica","Modrinth":"forgematica"},{"Id":10143,"Name":"","CurseForge":"framland","Modrinth":""},{"Id":10144,"Name":"布罗艾:旧版 (Blåhaj:Legacy) - 无法访问","CurseForge":"blahaj-legacy","Modrinth":""},{"Id":10144,"Name":"布罗艾:旧版 (Blåhaj:Legacy)","CurseForge":"","Modrinth":"blahaj-legacy"},{"Id":10145,"Name":"深入天境 (Deep Aether)","CurseForge":"deep-aether","Modrinth":"deep-aether"},{"Id":10146,"Name":"","CurseForge":"the-forgotten-dimensions","Modrinth":"the-forgotten-dimensions"},{"Id":10147,"Name":"水槽 (The Sink)","CurseForge":"","Modrinth":"the-sink"},{"Id":10149,"Name":"","CurseForge":"","Modrinth":"stairjumper"},{"Id":10150,"Name":"","CurseForge":"watchdog-anti-cheat","Modrinth":"watchdog-anticheat"},{"Id":10151,"Name":"","CurseForge":"villagers-drop-emeralds-on-death","Modrinth":"villagers-drop-emeralds-on-death"},{"Id":10152,"Name":"","CurseForge":"neydis-dragons","Modrinth":""},{"Id":10153,"Name":"","CurseForge":"colourful-goats","Modrinth":""},{"Id":10154,"Name":"","CurseForge":"perfect-spawn","Modrinth":""},{"Id":10156,"Name":"","CurseForge":"infinity-pickaxe","Modrinth":""},{"Id":10157,"Name":"","CurseForge":"biome-spawn-point","Modrinth":"biome-spawn-point"},{"Id":10158,"Name":"","CurseForge":"smallbiomes","Modrinth":""},{"Id":10159,"Name":"","CurseForge":"enhanced-block-entities-reforged-unofficial","Modrinth":""},{"Id":10160,"Name":"","CurseForge":"hopo-better-ruined-portals","Modrinth":""},{"Id":10161,"Name":"","CurseForge":"wearthat","Modrinth":"wearthat"},{"Id":10162,"Name":"便携工作台 (Portable Crafting Table)","CurseForge":"portable-crafting-table","Modrinth":"portable-crafting-table"},{"Id":10163,"Name":"","CurseForge":"structory-towers","Modrinth":""},{"Id":10164,"Name":"","CurseForge":"everything-is-a-hat","Modrinth":""},{"Id":10165,"Name":"","CurseForge":"skeletal-remains","Modrinth":"skeletal-remains"},{"Id":10166,"Name":"","CurseForge":"tidbits","Modrinth":""},{"Id":10167,"Name":"可怖箱子:土豆版 (Terrible Chest Potato Edition)","CurseForge":"terrible-chest-potato-edition","Modrinth":""},{"Id":10168,"Name":"","CurseForge":"","Modrinth":"dryinglava"},{"Id":10169,"Name":"","CurseForge":"advancedreborn","Modrinth":"advanced-reborn"},{"Id":10170,"Name":"","CurseForge":"blue-archive-halos","Modrinth":""},{"Id":10171,"Name":"","CurseForge":"","Modrinth":"totemcounter"},{"Id":10173,"Name":"","CurseForge":"","Modrinth":"mana-visualizer"},{"Id":10174,"Name":"","CurseForge":"mhcraft","Modrinth":""},{"Id":10175,"Name":"Iron的法术与魔法书 (Iron's Spells 'n Spellbooks)","CurseForge":"irons-spells-n-spellbooks","Modrinth":"irons-spells-n-spellbooks"},{"Id":10176,"Name":"","CurseForge":"infernal-enchantments","Modrinth":""},{"Id":10177,"Name":"","CurseForge":"reimagined-world-menu","Modrinth":"reimagined-world-menu"},{"Id":10178,"Name":"","CurseForge":"origins-assassin","Modrinth":""},{"Id":10179,"Name":"","CurseForge":"peculia","Modrinth":"peculia"},{"Id":10180,"Name":"","CurseForge":"koratio","Modrinth":""},{"Id":10181,"Name":"","CurseForge":"promans-origins","Modrinth":""},{"Id":10182,"Name":"","CurseForge":"mermaid-mythical-origins","Modrinth":""},{"Id":10183,"Name":"","CurseForge":"werewolf-mythical-origins","Modrinth":""},{"Id":10184,"Name":"","CurseForge":"fairy-mythical-origins","Modrinth":""},{"Id":10185,"Name":"","CurseForge":"elf-mythical-origins","Modrinth":""},{"Id":10186,"Name":"","CurseForge":"dragon-mythical-origins","Modrinth":""},{"Id":10187,"Name":"","CurseForge":"budget-fire-aspect","Modrinth":""},{"Id":10188,"Name":"","CurseForge":"facehugger","Modrinth":""},{"Id":10189,"Name":"","CurseForge":"vine-boom-moments","Modrinth":""},{"Id":10190,"Name":"","CurseForge":"lotta-blocks","Modrinth":"lotta-blocks"},{"Id":10191,"Name":"","CurseForge":"snip-those-tags","Modrinth":""},{"Id":10192,"Name":"","CurseForge":"zombie-variants-forge","Modrinth":""},{"Id":10193,"Name":"","CurseForge":"nights-of-sorrow","Modrinth":""},{"Id":10194,"Name":"","CurseForge":"simple-spells","Modrinth":""},{"Id":10195,"Name":"","CurseForge":"auditory","Modrinth":"auditory"},{"Id":10197,"Name":"","CurseForge":"trulios-compilation","Modrinth":""},{"Id":10199,"Name":"","CurseForge":"realms-button-remover","Modrinth":"realms-button-remover"},{"Id":10200,"Name":"","CurseForge":"manyideas-doors","Modrinth":"manyideas-doors"},{"Id":10201,"Name":"","CurseForge":"end-origins","Modrinth":""},{"Id":10202,"Name":"","CurseForge":"extra-classes-origins","Modrinth":""},{"Id":10203,"Name":"电线装饰 (Wire Decoration)","CurseForge":"wire-decoration","Modrinth":""},{"Id":10204,"Name":"","CurseForge":"optimizationsandtweaks","Modrinth":"optimizationsandtweaks"},{"Id":10206,"Name":"","CurseForge":"tabfaces","Modrinth":"tabfaces"},{"Id":10207,"Name":"","CurseForge":"mob-armor-mod-v2","Modrinth":"mob-armor-mod-v3"},{"Id":10208,"Name":"","CurseForge":"umbral-skies","Modrinth":""},{"Id":10209,"Name":"","CurseForge":"recipes-library","Modrinth":"recipes-library"},{"Id":10210,"Name":"","CurseForge":"dimension-access-manager","Modrinth":"dimension-access-manager"},{"Id":10211,"Name":"","CurseForge":"witherborn-origin","Modrinth":""},{"Id":10212,"Name":"","CurseForge":"origins-gravity-enforcer","Modrinth":""},{"Id":10213,"Name":"魄罗Fabric版 (Snuffles (Fabric))","CurseForge":"snuffles-fabric","Modrinth":"snuffles-fabric"},{"Id":10214,"Name":"","CurseForge":"manyideas-halloween","Modrinth":"manyideas-halloween"},{"Id":10215,"Name":"","CurseForge":"selectable-painting","Modrinth":"selectable-painting"},{"Id":10216,"Name":"","CurseForge":"boat-break-fix","Modrinth":"boat-break-fix"},{"Id":10217,"Name":"","CurseForge":"advanced-movement","Modrinth":""},{"Id":10218,"Name":"","CurseForge":"totem-overhaul","Modrinth":""},{"Id":10219,"Name":"","CurseForge":"mobs-no-render","Modrinth":"mobs-no-render"},{"Id":10221,"Name":"","CurseForge":"covenants-choose-your-purpose","Modrinth":""},{"Id":10222,"Name":"","CurseForge":"insatiable","Modrinth":""},{"Id":10223,"Name":"","CurseForge":"odd-organisms","Modrinth":""},{"Id":10224,"Name":"","CurseForge":"rotten-eggs","Modrinth":""},{"Id":10225,"Name":"","CurseForge":"cc-rt","Modrinth":""},{"Id":10226,"Name":"","CurseForge":"manyideas-core","Modrinth":"manyideas-core"},{"Id":10227,"Name":"多方块构建工具 (Multi Builder Tool)","CurseForge":"multi-builder-tool","Modrinth":"multi-builder-tool"},{"Id":10228,"Name":"末影存储:延续版 (Ender Storage continuation)","CurseForge":"ender-storage-1-12-continuation","Modrinth":"ender-storage-continuation"},{"Id":10229,"Name":"","CurseForge":"snail-mail","Modrinth":""},{"Id":10230,"Name":"","CurseForge":"ancient-rituals","Modrinth":""},{"Id":10231,"Name":"","CurseForge":"colorful-anvils","Modrinth":"colorfulanvils"},{"Id":10232,"Name":"","CurseForge":"ecofriendly","Modrinth":""},{"Id":10233,"Name":"","CurseForge":"torchkey","Modrinth":"torchkey"},{"Id":10234,"Name":"","CurseForge":"torch-key-forge","Modrinth":"torch-key-forge"},{"Id":10235,"Name":"","CurseForge":"just-rose-gold","Modrinth":""},{"Id":10236,"Name":"","CurseForge":"revolt-of-the-mobs","Modrinth":""},{"Id":10238,"Name":"","CurseForge":"improved-vanilla","Modrinth":"improved-vanilla"},{"Id":10239,"Name":"","CurseForge":"upgraded-netherite-aetherite","Modrinth":""},{"Id":10240,"Name":"","CurseForge":"betterwithpatches","Modrinth":"betterwithpatches"},{"Id":10242,"Name":"","CurseForge":"pickable-orbs","Modrinth":"pickable-health-orbs"},{"Id":10243,"Name":"","CurseForge":"mobneutralizer","Modrinth":""},{"Id":10246,"Name":"","CurseForge":"","Modrinth":"echoes-of-the-past"},{"Id":10247,"Name":"","CurseForge":"cloud-rider","Modrinth":""},{"Id":10248,"Name":"","CurseForge":"","Modrinth":"assemblymod"},{"Id":10249,"Name":"","CurseForge":"treasure2-bones","Modrinth":""},{"Id":10250,"Name":"","CurseForge":"ender-pearl-swap","Modrinth":""},{"Id":10251,"Name":"","CurseForge":"jer-ore-integration","Modrinth":""},{"Id":10252,"Name":"DK狗的Pocky (Adorkable dog's Pocky)","CurseForge":"adorkable-dogs-pocky","Modrinth":""},{"Id":10254,"Name":"","CurseForge":"realistic-explosion-physics","Modrinth":"realistic-explosion-physics"},{"Id":10255,"Name":"","CurseForge":"nitwitification","Modrinth":"nitwitification"},{"Id":10256,"Name":"","CurseForge":"mutated-items","Modrinth":"mutated-items"},{"Id":10258,"Name":"","CurseForge":"homespun","Modrinth":"homespun"},{"Id":10259,"Name":"","CurseForge":"primitive-start","Modrinth":"primitive-start"},{"Id":10260,"Name":"","CurseForge":"throwing-dynamites","Modrinth":"throwing-dynamite"},{"Id":10261,"Name":"","CurseForge":"paladins-and-priests","Modrinth":"paladins-and-priests"},{"Id":10262,"Name":"灾变:焚天神兵 (Cataclysm: Heaven Burner)","CurseForge":"cataclysm-heaven-burner","Modrinth":"cataclysm-heaven-burner"},{"Id":10263,"Name":"回响箱子 (Echo Chest)","CurseForge":"echo-chest","Modrinth":"echo-chest"},{"Id":10265,"Name":"下界箱子 (Nether Chested)","CurseForge":"nether-chested","Modrinth":"nether-chested"},{"Id":10266,"Name":"","CurseForge":"plenty-plates","Modrinth":"plenty-plates"},{"Id":10267,"Name":"","CurseForge":"simple-sponge","Modrinth":""},{"Id":10268,"Name":"","CurseForge":"new-paper-doll","Modrinth":"paper-doll"},{"Id":10269,"Name":"末影动物学 (Ender Zoology)","CurseForge":"ender-zoology","Modrinth":"ender-zoology"},{"Id":10270,"Name":"","CurseForge":"vectorientation","Modrinth":"vectorientation"},{"Id":10271,"Name":"","CurseForge":"seven-days-to-fix-parasitus","Modrinth":""},{"Id":10272,"Name":"","CurseForge":"dtm-integrations","Modrinth":""},{"Id":10273,"Name":"","CurseForge":"","Modrinth":"hdskins"},{"Id":10274,"Name":"","CurseForge":"bushier-flowers","Modrinth":"bushier-flowers"},{"Id":10275,"Name":"","CurseForge":"create-gravity","Modrinth":""},{"Id":10276,"Name":"灾变Boss血条显示 (Cataclysm Boss Bar)","CurseForge":"cataclysm-boss-bar","Modrinth":"cataclysm-boss-bar"},{"Id":10277,"Name":"","CurseForge":"unusual-gifts","Modrinth":""},{"Id":10278,"Name":"","CurseForge":"building-blocks-overhaul","Modrinth":""},{"Id":10280,"Name":"","CurseForge":"tick-info","Modrinth":""},{"Id":10281,"Name":"","CurseForge":"primal-stage","Modrinth":"primalstage"},{"Id":10282,"Name":"自然更替 (Spontaneous-Replace)","CurseForge":"spontaneous-replace","Modrinth":"spontaneous-replace"},{"Id":10283,"Name":"像素加载器2 (pixel loader2)","CurseForge":"pixel-loader","Modrinth":""},{"Id":10284,"Name":"","CurseForge":"kubejs-ars-nouveau","Modrinth":"kubejs-ars-nouveau"},{"Id":10285,"Name":"","CurseForge":"cataclysmweaponery","Modrinth":"cataclysm-weaponery"},{"Id":10286,"Name":"","CurseForge":"twilight-paintings","Modrinth":""},{"Id":10287,"Name":"","CurseForge":"twilight-origins","Modrinth":""},{"Id":10288,"Name":"自定义玩家模型OSC兼容 (Customizable Player Models OSC Compat)","CurseForge":"cpmoscc","Modrinth":"cpmoscc"},{"Id":10289,"Name":"暮色森林传送门催化石 (Twilight Forest Portal Catalyst)","CurseForge":"twilight-forest-portal-catalyst","Modrinth":""},{"Id":10290,"Name":"","CurseForge":"better-fog","Modrinth":""},{"Id":10291,"Name":"工具升级 (Tool Upgrades)","CurseForge":"tool-upgrades","Modrinth":"tool-upgrades"},{"Id":10292,"Name":"","CurseForge":"visiblebarriers","Modrinth":"visiblebarriers"},{"Id":10293,"Name":"天境之引 (Aether Gravitation)","CurseForge":"aether-gravitation","Modrinth":"aether-gravitation"},{"Id":10294,"Name":"首选语言 (Sublanguage)","CurseForge":"","Modrinth":"sublanguage"},{"Id":10295,"Name":"","CurseForge":"nff-services","Modrinth":""},{"Id":10296,"Name":"","CurseForge":"better-potion-visuals","Modrinth":"better-potion-visuals"},{"Id":10297,"Name":"现代战争方块化 (Modern Warfare Cubed)","CurseForge":"modern-warfare-cubed","Modrinth":"modern-warfare-cubed"},{"Id":10298,"Name":"","CurseForge":"extraordinary-extra-totems","Modrinth":""},{"Id":10299,"Name":"","CurseForge":"","Modrinth":"squidfriends"},{"Id":10300,"Name":"沙滩派对 (Let's Do Beachparty)","CurseForge":"beachparty","Modrinth":"lets-do-beachparty"},{"Id":10302,"Name":"","CurseForge":"s33r-more-food","Modrinth":"s33r-more-food"},{"Id":10303,"Name":"","CurseForge":"froglight-backport","Modrinth":""},{"Id":10306,"Name":"末域奇馔 (Exquisito)","CurseForge":"exquisito","Modrinth":"exquisito"},{"Id":10307,"Name":"","CurseForge":"species","Modrinth":"species"},{"Id":10308,"Name":"战斗物品 (Cle's BattleItems)","CurseForge":"cles-battleitems","Modrinth":""},{"Id":10309,"Name":"","CurseForge":"unu-parts-pack","Modrinth":"unu-parts-pack"},{"Id":10310,"Name":"","CurseForge":"spleaves","Modrinth":"spleaves"},{"Id":10311,"Name":"","CurseForge":"modernworldcreation","Modrinth":"modern-world-creation"},{"Id":10312,"Name":"","CurseForge":"enchant-the-rainbow","Modrinth":"enchant-the-rainbow"},{"Id":10313,"Name":"","CurseForge":"","Modrinth":"muffins-songkran"},{"Id":10314,"Name":"","CurseForge":"fixed-anvil-repair-cost","Modrinth":"fixed-anvil-repair-cost"},{"Id":10315,"Name":"","CurseForge":"sleep-tight","Modrinth":"sleep-tight"},{"Id":10316,"Name":"随机合成表 (Random Crafting)","CurseForge":"random-crafting","Modrinth":"random-crafting"},{"Id":10317,"Name":"","CurseForge":"fallout-inspired-power-amor","Modrinth":""},{"Id":10318,"Name":"无限流体 (InfiniteFluids)","CurseForge":"infinitefluids","Modrinth":""},{"Id":10319,"Name":"整合包更新检查工具 (Upd8r)","CurseForge":"upd8r","Modrinth":"upd8r"},{"Id":10320,"Name":"","CurseForge":"old-guns-mod","Modrinth":""},{"Id":10321,"Name":"","CurseForge":"","Modrinth":"vlzoomer"},{"Id":10323,"Name":"","CurseForge":"vanilla-teleporters","Modrinth":""},{"Id":10324,"Name":"","CurseForge":"aquatic-frontiers","Modrinth":"aquatic-frontiers"},{"Id":10325,"Name":"","CurseForge":"lands-of-icaria","Modrinth":"lands-of-icaria"},{"Id":10326,"Name":"","CurseForge":"wta","Modrinth":"wta"},{"Id":10327,"Name":"","CurseForge":"","Modrinth":"gtnh-no-nerf"},{"Id":10328,"Name":"","CurseForge":"pickable-villagers","Modrinth":"pickable-villagers"},{"Id":10329,"Name":"","CurseForge":"pickable-piglins","Modrinth":"pickable-piglins"},{"Id":10330,"Name":"","CurseForge":"book-of-blocks-fabric","Modrinth":"mc-book-of-blocks"},{"Id":10331,"Name":"","CurseForge":"create-blue-skies-compat","Modrinth":""},{"Id":10332,"Name":"","CurseForge":"dawncraft-mobs","Modrinth":""},{"Id":10333,"Name":"","CurseForge":"dawncraft-tweaks","Modrinth":""},{"Id":10335,"Name":"","CurseForge":"netherracked","Modrinth":""},{"Id":10336,"Name":"","CurseForge":"the-toolkits","Modrinth":"the-toolkits"},{"Id":10337,"Name":"","CurseForge":"immersive-structures-ii-nether-edition","Modrinth":""},{"Id":10339,"Name":"","CurseForge":"mossier-deepslate","Modrinth":"mossier-deepslate"},{"Id":10340,"Name":"","CurseForge":"celestial","Modrinth":"celestial"},{"Id":10342,"Name":"","CurseForge":"quest-giver","Modrinth":""},{"Id":10343,"Name":"咒法调整 (HexTweaks)","CurseForge":"","Modrinth":"hextweaks"},{"Id":10344,"Name":"","CurseForge":"insects-recrafted","Modrinth":"insects-recrafted"},{"Id":10345,"Name":"","CurseForge":"better-boilers","Modrinth":""},{"Id":10346,"Name":"","CurseForge":"aether-plus","Modrinth":""},{"Id":10347,"Name":"","CurseForge":"crafttweaker-sixik-utils-aoa3-nevermine","Modrinth":""},{"Id":10348,"Name":"","CurseForge":"aether-expansion","Modrinth":""},{"Id":10349,"Name":"","CurseForge":"barrels-2012","Modrinth":"barrels-2012"},{"Id":10350,"Name":"","CurseForge":"","Modrinth":"libzoomer"},{"Id":10351,"Name":"","CurseForge":"tfc-sample-drill","Modrinth":""},{"Id":10352,"Name":"","CurseForge":"tfc-tng-rosia","Modrinth":""},{"Id":10352,"Name":"","CurseForge":"tfc-rosia","Modrinth":""},{"Id":10353,"Name":"","CurseForge":"aether-additions","Modrinth":""},{"Id":10354,"Name":"自定义传送门 API Forge 版 (Custom Portal API [Forge])","CurseForge":"custom-portal-api-forge","Modrinth":"customportalapi"},{"Id":10355,"Name":"","CurseForge":"jaopca-extras","Modrinth":"jaopca-extras"},{"Id":10357,"Name":"","CurseForge":"enclosure","Modrinth":"enclosure"},{"Id":10360,"Name":"博克岛 (Isle of Berk)","CurseForge":"isleofberk","Modrinth":"isle-of-berk"},{"Id":10361,"Name":"","CurseForge":"patpatpat","Modrinth":"patpatpat"},{"Id":10361,"Name":"","CurseForge":"patpatpat-fabric","Modrinth":""},{"Id":10363,"Name":"","CurseForge":"wildberries","Modrinth":""},{"Id":10365,"Name":"","CurseForge":"kubejs-powah","Modrinth":"kubejs-powah"},{"Id":10366,"Name":"咒法动力学 (HexKinetics)","CurseForge":"","Modrinth":"hexkinetics"},{"Id":10368,"Name":"","CurseForge":"sand_box","Modrinth":"sandbox"},{"Id":10369,"Name":"","CurseForge":"sublime","Modrinth":""},{"Id":10370,"Name":"","CurseForge":"spells-shields-x-tinkers-construct","Modrinth":""},{"Id":10372,"Name":"断刃 (Mowzie's Mobs: The Broken Blade)","CurseForge":"mowzies-mobs-the-broken-blade","Modrinth":""},{"Id":10373,"Name":"水源EX (Water Source EX)","CurseForge":"water-source-ex","Modrinth":""},{"Id":10374,"Name":"匠魂校准 (Tinkers' Calibration)","CurseForge":"tinkers-calibration-tic3","Modrinth":""},{"Id":10375,"Name":"","CurseForge":"yamatomoveset-epicfight-addon","Modrinth":""},{"Id":10376,"Name":"","CurseForge":"engineers-delight","Modrinth":"engineers-delight"},{"Id":10377,"Name":"","CurseForge":"tinkers-disassembler","Modrinth":""},{"Id":10378,"Name":"","CurseForge":"piseks-tinkers-enchantments","Modrinth":""},{"Id":10379,"Name":"","CurseForge":"tinkering-with-embers","Modrinth":""},{"Id":10380,"Name":"","CurseForge":"mob-despawn-timers","Modrinth":""},{"Id":10381,"Name":"","CurseForge":"tfc-towerheat","Modrinth":""},{"Id":10382,"Name":"","CurseForge":"tfc-toohotaroundhere","Modrinth":""},{"Id":10383,"Name":"","CurseForge":"flower-patch","Modrinth":"flower-patch"},{"Id":10384,"Name":"","CurseForge":"quickcure","Modrinth":"quick-cure"},{"Id":10384,"Name":"","CurseForge":"quickcure-fabric","Modrinth":"quick-cure-fabric"},{"Id":10385,"Name":"","CurseForge":"spoiled","Modrinth":"spoiled"},{"Id":10386,"Name":"","CurseForge":"entity-specific-damage-invulnerability","Modrinth":"entity-specific-damage-invulnerability"},{"Id":10387,"Name":"","CurseForge":"hungryanimals","Modrinth":""},{"Id":10388,"Name":"","CurseForge":"bbl-utility","Modrinth":"bbl-utility"},{"Id":10389,"Name":"","CurseForge":"better-breeding","Modrinth":""},{"Id":10390,"Name":"霜冻 (Frostiful)","CurseForge":"frostiful","Modrinth":"frostiful"},{"Id":10391,"Name":"","CurseForge":"camo-creepers","Modrinth":"camo-creepers"},{"Id":10392,"Name":"","CurseForge":"coupons","Modrinth":"coupons"},{"Id":10393,"Name":"","CurseForge":"simple-bracers","Modrinth":""},{"Id":10394,"Name":"","CurseForge":"baby-delight","Modrinth":""},{"Id":10395,"Name":"","CurseForge":"strategic-enchanting","Modrinth":""},{"Id":10396,"Name":"","CurseForge":"forged-in-fire","Modrinth":""},{"Id":10397,"Name":"","CurseForge":"lumy-skin-patch","Modrinth":""},{"Id":10398,"Name":"","CurseForge":"","Modrinth":"le0s-spoons"},{"Id":10399,"Name":"","CurseForge":"redstone-clock","Modrinth":"redstone-clock"},{"Id":10400,"Name":"","CurseForge":"anti-mob-griefing","Modrinth":""},{"Id":10401,"Name":"游戏内NBT编辑器重制版 (In-game NBTEdit Reborn)","CurseForge":"nbtedit-reborn","Modrinth":"nbtedit-reborn"},{"Id":10403,"Name":"","CurseForge":"the-filler-update","Modrinth":"the-filler-update"},{"Id":10404,"Name":"","CurseForge":"custom-machinery-create","Modrinth":"custom-machinery-create"},{"Id":10405,"Name":"","CurseForge":"","Modrinth":"rightproperguiscale"},{"Id":10406,"Name":"","CurseForge":"armor-trims","Modrinth":"armor-trims"},{"Id":10407,"Name":"","CurseForge":"revised-phantoms","Modrinth":"revised-phantoms"},{"Id":10408,"Name":"ChorusLib - 无文件","CurseForge":"choruslib","Modrinth":""},{"Id":10408,"Name":"","CurseForge":"","Modrinth":"choruslib"},{"Id":10409,"Name":"","CurseForge":"frogs-can-eat-any-hostile-mob","Modrinth":""},{"Id":10410,"Name":"","CurseForge":"artificial-thunder","Modrinth":""},{"Id":10411,"Name":"","CurseForge":"rp-renames","Modrinth":"rp-renames"},{"Id":10412,"Name":"","CurseForge":"openblocks-trophies","Modrinth":"openblocks-trophies"},{"Id":10413,"Name":"","CurseForge":"","Modrinth":"shrug-it-off"},{"Id":10414,"Name":"","CurseForge":"","Modrinth":"f3-t-everywhere"},{"Id":10416,"Name":"","CurseForge":"lootbag-patches","Modrinth":""},{"Id":10418,"Name":"星门之旅 (Stargate Journey)","CurseForge":"stargate-journey","Modrinth":"sgjourney"},{"Id":10419,"Name":"Xaero Arrow Fix - 无法","CurseForge":"xaero-arrow-fix","Modrinth":""},{"Id":10419,"Name":"","CurseForge":"","Modrinth":"xaeroarrowfix"},{"Id":10420,"Name":"","CurseForge":"ornamental","Modrinth":""},{"Id":10421,"Name":"","CurseForge":"xaero-zoom-out","Modrinth":"xaero-zoomout"},{"Id":10422,"Name":"","CurseForge":"minecard","Modrinth":""},{"Id":10424,"Name":"","CurseForge":"ydms-custom-camera-view","Modrinth":"ydms-custom-camera-view"},{"Id":10425,"Name":"","CurseForge":"gravitational-modulating-additional-unit","Modrinth":""},{"Id":10426,"Name":"边缘行者 (Edgerunner)","CurseForge":"edgerunner","Modrinth":"edgerunner-feature-fix"},{"Id":10427,"Name":"","CurseForge":"nbt-autocomplete","Modrinth":"nbt-autocomplete"},{"Id":10428,"Name":"","CurseForge":"smells-fishy","Modrinth":"entity-rain"},{"Id":10429,"Name":"原石工艺 (Primogems Craft)","CurseForge":"primogem-craft","Modrinth":"2primogem-craft"},{"Id":10430,"Name":"","CurseForge":"benched","Modrinth":"benched"},{"Id":10431,"Name":"","CurseForge":"kubejs-tfc","Modrinth":"kubejs-tfc"},{"Id":10432,"Name":"","CurseForge":"precision-prospecting","Modrinth":"precision-prospecting"},{"Id":10433,"Name":"","CurseForge":"potatoos-custom-structure-for-hbms-nuclear-tech","Modrinth":""},{"Id":10434,"Name":"","CurseForge":"fabric-seasons-terraformers-compat","Modrinth":"fabric-seasons-terraformers-compat"},{"Id":10435,"Name":"Fabric Seasons: 拓展 (Fabric Seasons: Extra)","CurseForge":"fabric-seasons-extras","Modrinth":"fabric-seasons-extras"},{"Id":10436,"Name":"","CurseForge":"better-f3-plus","Modrinth":"better-f3-plus"},{"Id":10437,"Name":"","CurseForge":"fabric-seasons-delight-compat","Modrinth":"fabric-seasons-delight-compat"},{"Id":10438,"Name":"","CurseForge":"fabric-seasons-terralith-compat","Modrinth":"fabric-seasons-terralith-compat"},{"Id":10439,"Name":"","CurseForge":"marigolds","Modrinth":"marigolds"},{"Id":10440,"Name":"","CurseForge":"fabric-seasons-croptopia-compat","Modrinth":"fabric-seasons-croptopia-compat"},{"Id":10441,"Name":"","CurseForge":"fabric-seasons-byg-compat","Modrinth":"fabric-seasons-byg-compat"},{"Id":10442,"Name":"","CurseForge":"sassot","Modrinth":"sassot"},{"Id":10443,"Name":"轻松漏斗 (Easy Hopper)","CurseForge":"easyhopper","Modrinth":"easy-hopper"},{"Id":10444,"Name":"","CurseForge":"progressive-archery","Modrinth":"progressive-archery"},{"Id":10445,"Name":"全键无冲 (NonConflictKeys)","CurseForge":"nonconflictkeys","Modrinth":"nonconflictkeys"},{"Id":10445,"Name":"全键无冲 (NonConflictKeys)","CurseForge":"nonconflictkeys-fabric","Modrinth":""},{"Id":10446,"Name":"","CurseForge":"armor-restitched","Modrinth":"armor-restitched"},{"Id":10447,"Name":"","CurseForge":"","Modrinth":"pillager-queen"},{"Id":10449,"Name":"","CurseForge":"nmpr","Modrinth":"nmpr"},{"Id":10450,"Name":"","CurseForge":"sprinklerz","Modrinth":"sprinklerz"},{"Id":10451,"Name":"","CurseForge":"our-villager-discounts","Modrinth":"our-villager-discounts"},{"Id":10452,"Name":"轻松投掷 (Easy Dropper)","CurseForge":"easydropper","Modrinth":""},{"Id":10453,"Name":"","CurseForge":"varied-adventure","Modrinth":""},{"Id":10454,"Name":"","CurseForge":"kubejs-delight","Modrinth":"kubejs-delight"},{"Id":10455,"Name":"","CurseForge":"block-physics-overhaul","Modrinth":""},{"Id":10456,"Name":"探照灯 (Searchlight (& Wall Lights))","CurseForge":"searchlight-forge","Modrinth":""},{"Id":10456,"Name":"探照灯 (Searchlight (& Wall Lights))","CurseForge":"searchlight","Modrinth":""},{"Id":10457,"Name":"远古手稿 (Ancient Manuscripts)","CurseForge":"ancient-manuscripts","Modrinth":"ancient-manuscripts"},{"Id":10458,"Name":"","CurseForge":"gazebos","Modrinth":"gazebos"},{"Id":10459,"Name":"记分板获取时间 (scoreboard get time)","CurseForge":"scoreboard-get-time","Modrinth":""},{"Id":10460,"Name":"现代化按键精灵 (Modern KeyWizard)","CurseForge":"modern-keywizard","Modrinth":""},{"Id":10461,"Name":"","CurseForge":"chunk-sending-forge-fabric","Modrinth":""},{"Id":10463,"Name":"","CurseForge":"limitless-structure-blocks","Modrinth":""},{"Id":10465,"Name":"","CurseForge":"advanced-spawn-control","Modrinth":""},{"Id":10466,"Name":"","CurseForge":"overworld-mirror","Modrinth":"overworld-mirror"},{"Id":10467,"Name":"","CurseForge":"no-sonic-boom-togglable","Modrinth":"toggleable-sonic-boom"},{"Id":10468,"Name":"","CurseForge":"quicksort","Modrinth":"quicksort"},{"Id":10469,"Name":"","CurseForge":"fake-player","Modrinth":"fake-players"},{"Id":10470,"Name":"战利品光束Fabric版 (LootBeamsFabric)","CurseForge":"","Modrinth":"lootbeams-fabric"},{"Id":10471,"Name":"","CurseForge":"continuumation","Modrinth":""},{"Id":10472,"Name":"AI装饰一号 (AI Art Deco 1)","CurseForge":"ai-art-deco-1","Modrinth":""},{"Id":10473,"Name":"","CurseForge":"sodium-rubidium-occlusion-culling-fix","Modrinth":"occlusion-culling-fix-sodium"},{"Id":10474,"Name":"简易地牢 (Easy Dungeons)","CurseForge":"easy-dungeons","Modrinth":""},{"Id":10475,"Name":"变态的凋灵收割者 (The Morbid Reborn Reborn)","CurseForge":"the-morbid-harvester-reborn-reborn","Modrinth":""},{"Id":10476,"Name":"","CurseForge":"ars-armiger","Modrinth":""},{"Id":10477,"Name":"","CurseForge":"bettergolem","Modrinth":""},{"Id":10478,"Name":"终末之诗扩展补丁 (End Poem Extension)","CurseForge":"","Modrinth":"end-poem-extension"},{"Id":10479,"Name":"","CurseForge":"trampledisabler-fabric","Modrinth":""},{"Id":10480,"Name":"索敌 (Spotting)","CurseForge":"spotting","Modrinth":""},{"Id":10481,"Name":"进阶群峦科技非官方版 (Advanced TFC Tech Unofficial)","CurseForge":"advanced-tfc-tech-unofficial","Modrinth":"advanced-tfc-tech-unofficial"},{"Id":10482,"Name":"凤梨标签 (Pineapple Tags)","CurseForge":"pineapple-tags","Modrinth":""},{"Id":10483,"Name":"","CurseForge":"impostore","Modrinth":"impostore"},{"Id":10484,"Name":"","CurseForge":"effishiency","Modrinth":"effishiency"},{"Id":10485,"Name":"","CurseForge":"glumbis","Modrinth":""},{"Id":10486,"Name":"","CurseForge":"prehistoric-nature-fossils","Modrinth":""},{"Id":10487,"Name":"","CurseForge":"peeled","Modrinth":""},{"Id":10488,"Name":"","CurseForge":"butterflys","Modrinth":""},{"Id":10489,"Name":"","CurseForge":"","Modrinth":"forgedapi"},{"Id":10491,"Name":"","CurseForge":"be-style-wither","Modrinth":"be-style-wither"},{"Id":10492,"Name":"","CurseForge":"campfire","Modrinth":"campfire"},{"Id":10493,"Name":"","CurseForge":"ars-enderstorage","Modrinth":""},{"Id":10494,"Name":"","CurseForge":"","Modrinth":"ftbchecker"},{"Id":10495,"Name":"","CurseForge":"mythicmetals-decorations","Modrinth":"mythicmetals-decorations"},{"Id":10496,"Name":"","CurseForge":"metallurgychisel","Modrinth":""},{"Id":10497,"Name":"","CurseForge":"sooty-chimneys-fabric","Modrinth":"sooty-chimneys-fabric"},{"Id":10498,"Name":"","CurseForge":"arboria","Modrinth":""},{"Id":10499,"Name":"","CurseForge":"mekanism-evolution","Modrinth":""},{"Id":10501,"Name":"","CurseForge":"chiseledadditions","Modrinth":""},{"Id":10502,"Name":"工匠匠心 (Tinkers Ingenuity)","CurseForge":"","Modrinth":"tinkers_ingenuity"},{"Id":10503,"Name":"格雷科技4移植版 (GregTech 4 Rewritten)","CurseForge":"gregtech-4","Modrinth":""},{"Id":10504,"Name":"","CurseForge":"lacrimis","Modrinth":""},{"Id":10505,"Name":"","CurseForge":"productive-villagers","Modrinth":"productive-villagers"},{"Id":10506,"Name":"","CurseForge":"canned-goods","Modrinth":"canned-goods"},{"Id":10507,"Name":"","CurseForge":"itemchat-fabric","Modrinth":"itemchat"},{"Id":10509,"Name":"","CurseForge":"crafttweaker-sixik-utils-ftb-quest","Modrinth":""},{"Id":10510,"Name":"","CurseForge":"wares","Modrinth":"wares"},{"Id":10511,"Name":"","CurseForge":"difficult-spawners","Modrinth":""},{"Id":10512,"Name":"","CurseForge":"recoil-shotgun","Modrinth":"recoil-shotgun"},{"Id":10513,"Name":"Stratum - 无法","CurseForge":"stratum","Modrinth":""},{"Id":10513,"Name":"","CurseForge":"","Modrinth":"stratum"},{"Id":10514,"Name":"","CurseForge":"observed","Modrinth":"observed"},{"Id":10515,"Name":"","CurseForge":"ex-sartagine-requiem","Modrinth":"ex-sartagine-requiem"},{"Id":10516,"Name":"","CurseForge":"giant-pacman-1-16-5","Modrinth":""},{"Id":10517,"Name":"","CurseForge":"item-banning-fabric","Modrinth":""},{"Id":10518,"Name":"","CurseForge":"erroring-entity-remover","Modrinth":"erroring-entity-remover"},{"Id":10519,"Name":"","CurseForge":"mclo-gs","Modrinth":""},{"Id":10520,"Name":"","CurseForge":"pink-expansion","Modrinth":""},{"Id":10521,"Name":"","CurseForge":"polluted-earth-reborn","Modrinth":""},{"Id":10522,"Name":"","CurseForge":"kitsus-forgecraft","Modrinth":""},{"Id":10523,"Name":"","CurseForge":"stat-check","Modrinth":""},{"Id":10524,"Name":"","CurseForge":"hit-indication","Modrinth":"hit-indication"},{"Id":10525,"Name":"","CurseForge":"multipart-machines-farming","Modrinth":""},{"Id":10528,"Name":"","CurseForge":"tru-first-person-mod","Modrinth":""},{"Id":10529,"Name":"","CurseForge":"reduced-music-delay","Modrinth":""},{"Id":10530,"Name":"","CurseForge":"agers-giant-junkyard-dimension","Modrinth":""},{"Id":10531,"Name":"","CurseForge":"jsmacros","Modrinth":"jsmacros"},{"Id":10532,"Name":"","CurseForge":"great-big-world","Modrinth":"great-big-world"},{"Id":10532,"Name":"","CurseForge":"","Modrinth":"great-big-world-old"},{"Id":10533,"Name":"","CurseForge":"armored-mobs","Modrinth":""},{"Id":10534,"Name":"","CurseForge":"astrological","Modrinth":"astrological"},{"Id":10535,"Name":"","CurseForge":"end-expansion-the-lamented-islands","Modrinth":"end-expansion-the-lamented-islands"},{"Id":10539,"Name":"折衷 (Compromise)","CurseForge":"","Modrinth":"compromise"},{"Id":10540,"Name":"野蛮渲染剔除 (Brute force Rendering Culling)","CurseForge":"brute-force-rendering-culling","Modrinth":"brute-force-rendering-culling"},{"Id":10541,"Name":"","CurseForge":"no-additional-repair-cost","Modrinth":""},{"Id":10542,"Name":"洞穴尘埃 (Cave Dust)","CurseForge":"cave-dust","Modrinth":"cave-dust"},{"Id":10543,"Name":"","CurseForge":"nocubes-better-grindstone","Modrinth":""},{"Id":10544,"Name":"","CurseForge":"create-weaponry","Modrinth":""},{"Id":10545,"Name":"","CurseForge":"nocubes-chinchillas","Modrinth":""},{"Id":10546,"Name":"机械动力:应用机械 (Create: Applied Kinetics)","CurseForge":"create-applied-kinetics","Modrinth":"create-applied-kinetics"},{"Id":10547,"Name":"","CurseForge":"nocubes-zombie-mobs","Modrinth":""},{"Id":10548,"Name":"","CurseForge":"create-gourmet","Modrinth":""},{"Id":10549,"Name":"","CurseForge":"medical","Modrinth":""},{"Id":10550,"Name":"","CurseForge":"yellowbrosss-extras","Modrinth":""},{"Id":10551,"Name":"","CurseForge":"simply-caterpillar","Modrinth":"simply-caterpillar"},{"Id":10552,"Name":"","CurseForge":"cataclysm-delight","Modrinth":""},{"Id":10553,"Name":"","CurseForge":"old-combat-mod","Modrinth":"old-combat-mod"},{"Id":10554,"Name":"","CurseForge":"pipe-connector","Modrinth":"pipe-connector"},{"Id":10555,"Name":"","CurseForge":"diamethyst-arrows","Modrinth":"diamethyst-arrows"},{"Id":10556,"Name":"","CurseForge":"cherry-blossom-grotto","Modrinth":""},{"Id":10559,"Name":"","CurseForge":"parties","Modrinth":""},{"Id":10560,"Name":"","CurseForge":"pots-and-mimics-rpg","Modrinth":""},{"Id":10561,"Name":"","CurseForge":"gemspark","Modrinth":"gemspark"},{"Id":10562,"Name":"","CurseForge":"otakomod","Modrinth":"otakomod"},{"Id":10563,"Name":"","CurseForge":"wall-jumping","Modrinth":""},{"Id":10564,"Name":"","CurseForge":"new-life","Modrinth":""},{"Id":10565,"Name":"","CurseForge":"reeves-furniture","Modrinth":"furnitury"},{"Id":10566,"Name":"不朽 (Undying)","CurseForge":"","Modrinth":"undying"},{"Id":10567,"Name":"","CurseForge":"creatania","Modrinth":""},{"Id":10568,"Name":"","CurseForge":"boat-rocked","Modrinth":"boat-rocket"},{"Id":10569,"Name":"","CurseForge":"proficiency-honest-work","Modrinth":""},{"Id":10570,"Name":"","CurseForge":"warrior-rage","Modrinth":"warrior-rage"},{"Id":10572,"Name":"","CurseForge":"pokefood","Modrinth":"pokefood"},{"Id":10573,"Name":"","CurseForge":"armor-souls-reforged","Modrinth":""},{"Id":10575,"Name":"天境:新生代 (The Aether: Redux)","CurseForge":"aether-redux","Modrinth":"the-aether-redux"},{"Id":10577,"Name":"","CurseForge":"staaaaaaaaaaaack","Modrinth":"staaaaaaaaaaaack"},{"Id":10578,"Name":"","CurseForge":"thanks-i-have-rei","Modrinth":"tihr"},{"Id":10580,"Name":"挎包 (Satchels)","CurseForge":"satchels","Modrinth":""},{"Id":10581,"Name":"","CurseForge":"matex","Modrinth":""},{"Id":10582,"Name":"","CurseForge":"weapons-of-the-apocalypse","Modrinth":""},{"Id":10583,"Name":"","CurseForge":"tis-advanced","Modrinth":"tis-advanced"},{"Id":10584,"Name":"爱屋及呜 (Love me love my wolf)","CurseForge":"love-me-love-my-wolf","Modrinth":""},{"Id":10585,"Name":"","CurseForge":"toroquest-revamped","Modrinth":""},{"Id":10587,"Name":"","CurseForge":"tis-create","Modrinth":"tis-create"},{"Id":10588,"Name":"","CurseForge":"tektopia-trader","Modrinth":""},{"Id":10589,"Name":"","CurseForge":"worldtime","Modrinth":"worldtime"},{"Id":10590,"Name":"","CurseForge":"beasts","Modrinth":""},{"Id":10591,"Name":"自定义速通挑战 (αβspeedrun)","CurseForge":"alphabet-speedrun","Modrinth":"alphabet-speedrun"},{"Id":10592,"Name":"符号链接拦截 (Symlink Check)","CurseForge":"","Modrinth":"symlink-check"},{"Id":10593,"Name":"","CurseForge":"tis-stringify","Modrinth":""},{"Id":10595,"Name":"","CurseForge":"dismount-entity","Modrinth":"dismount-entity"},{"Id":10595,"Name":"","CurseForge":"dismount-entity-fabric","Modrinth":""},{"Id":10596,"Name":"染色指南针 (Dyeable Compasses)","CurseForge":"dyeable-compasses","Modrinth":"dyeable-compasses"},{"Id":10597,"Name":"超级压缩 (Super Compression)","CurseForge":"supercompression","Modrinth":""},{"Id":10598,"Name":"更好的 HTPVZ (Better HungTeen's Plants vs. Zombies)","CurseForge":"better-hungteen-s-plants-vs-zombies","Modrinth":""},{"Id":10599,"Name":"猪灵:多喝岩浆 (PiglinSafety)","CurseForge":"piglinsafety","Modrinth":""},{"Id":10600,"Name":"","CurseForge":"gatewayer","Modrinth":""},{"Id":10601,"Name":"孤独HUD (BoccHUD / MiniHUD-Forge)","CurseForge":"bocchud","Modrinth":"bocchud"},{"Id":10602,"Name":"你返箭吗 (Arrow Collector)","CurseForge":"arrowcollector","Modrinth":"arrow-collector"},{"Id":10603,"Name":"鸽子衔枝 (SaplingSlayer)","CurseForge":"saplingslayer","Modrinth":""},{"Id":10604,"Name":"","CurseForge":"quality-quails","Modrinth":""},{"Id":10605,"Name":"","CurseForge":"hydration","Modrinth":"hydration"},{"Id":10607,"Name":"","CurseForge":"halohud","Modrinth":"halohud"},{"Id":10608,"Name":"资源下载机 (Resourcify)","CurseForge":"resourcify","Modrinth":"resourcify"},{"Id":10609,"Name":"","CurseForge":"ioclias","Modrinth":"ioclias"},{"Id":10610,"Name":"暮色风味乐事 (Twilight's Flavors & Delight)","CurseForge":"twilights-flavors-delight","Modrinth":"twilight-delight"},{"Id":10611,"Name":"","CurseForge":"clean-f3","Modrinth":"clean-f3"},{"Id":10612,"Name":"","CurseForge":"enchanted-lib","Modrinth":""},{"Id":10613,"Name":"建筑师工具 - 转换器 (Architect Tools - Converter)","CurseForge":"architect-tools-converter-1-7-10","Modrinth":""},{"Id":10615,"Name":"","CurseForge":"","Modrinth":"librarian-trade-finder"},{"Id":10616,"Name":"","CurseForge":"server-resourcepack-checker","Modrinth":"server-resource-pack-checker"},{"Id":10617,"Name":"","CurseForge":"main-menu-credits","Modrinth":"main-menu-credits"},{"Id":10618,"Name":"光子 (Photon)","CurseForge":"photon","Modrinth":"photon-editor"},{"Id":10619,"Name":"","CurseForge":"voice-chat-interaction","Modrinth":"voice-chat-interaction"},{"Id":10620,"Name":"","CurseForge":"replay-voice-chat","Modrinth":"replay-voice-chat"},{"Id":10621,"Name":"船:非官方版 (Cuchaz Ships Unofficial)","CurseForge":"ships-mod-unofficial","Modrinth":""},{"Id":10623,"Name":"","CurseForge":"storage-overhaul","Modrinth":""},{"Id":10624,"Name":"","CurseForge":"chorus-warps","Modrinth":""},{"Id":10625,"Name":"","CurseForge":"aureate-reliquary","Modrinth":""},{"Id":10626,"Name":"","CurseForge":"submerged-explosions","Modrinth":"submerged-explosions"},{"Id":10627,"Name":"","CurseForge":"netherite-items","Modrinth":""},{"Id":10628,"Name":"","CurseForge":"aim-plus","Modrinth":""},{"Id":10629,"Name":"","CurseForge":"reckless-drilling","Modrinth":""},{"Id":10630,"Name":"","CurseForge":"tick-stasis","Modrinth":"tick-stasis"},{"Id":10631,"Name":"","CurseForge":"azure-paxels","Modrinth":"azure-paxels"},{"Id":10633,"Name":"","CurseForge":"no-angled-brackets","Modrinth":""},{"Id":10634,"Name":"","CurseForge":"alien-apocalypse","Modrinth":""},{"Id":10635,"Name":"","CurseForge":"server-utilities","Modrinth":""},{"Id":10636,"Name":"","CurseForge":"su-addon-silk-spawners","Modrinth":""},{"Id":10637,"Name":"","CurseForge":"su-addon-quests","Modrinth":""},{"Id":10638,"Name":"","CurseForge":"harder-hardcore","Modrinth":""},{"Id":10639,"Name":"阿根廷乐事 (Argentina's Delight)","CurseForge":"argentinasdelight","Modrinth":"argentinas-delight"},{"Id":10640,"Name":"","CurseForge":"colonies","Modrinth":""},{"Id":10641,"Name":"万物皆铜 (Everything is Copper)","CurseForge":"everythingcopper","Modrinth":"everythingcopper"},{"Id":10642,"Name":"被动型末影人 (Passive Endermen)","CurseForge":"passive-endermen","Modrinth":"passive-endermen"},{"Id":10644,"Name":"","CurseForge":"elemental-aspects","Modrinth":""},{"Id":10645,"Name":"","CurseForge":"dune","Modrinth":""},{"Id":10646,"Name":"","CurseForge":"lithereal","Modrinth":"lithereal"},{"Id":10647,"Name":"","CurseForge":"mobs-genus","Modrinth":""},{"Id":10648,"Name":"","CurseForge":"ore-extension","Modrinth":""},{"Id":10649,"Name":"额外乐事 (ExtraDelight)","CurseForge":"extradelight","Modrinth":"extradelight"},{"Id":10650,"Name":"","CurseForge":"shady-alchemist","Modrinth":""},{"Id":10651,"Name":"","CurseForge":"ender-knight","Modrinth":""},{"Id":10652,"Name":"","CurseForge":"bubbleland","Modrinth":""},{"Id":10653,"Name":"","CurseForge":"cake-cow","Modrinth":""},{"Id":10655,"Name":"","CurseForge":"shrimps","Modrinth":""},{"Id":10656,"Name":"","CurseForge":"projecte-aether-addon","Modrinth":""},{"Id":10657,"Name":"","CurseForge":"coal-additions","Modrinth":""},{"Id":10658,"Name":"","CurseForge":"fungi-stew","Modrinth":""},{"Id":10659,"Name":"","CurseForge":"grenade-launcher","Modrinth":""},{"Id":10660,"Name":"","CurseForge":"illness","Modrinth":""},{"Id":10661,"Name":"","CurseForge":"structural-statues","Modrinth":""},{"Id":10663,"Name":"","CurseForge":"wild-bushes","Modrinth":""},{"Id":10664,"Name":"","CurseForge":"mutant-wolf","Modrinth":""},{"Id":10665,"Name":"","CurseForge":"curses-naturals","Modrinth":""},{"Id":10667,"Name":"","CurseForge":"straighten-up","Modrinth":"straighten-up"},{"Id":10668,"Name":"暮色催化石 (Twilight Catalist)","CurseForge":"twilight-catalist","Modrinth":""},{"Id":10669,"Name":"","CurseForge":"extra-moas","Modrinth":""},{"Id":10670,"Name":"","CurseForge":"corruptional","Modrinth":""},{"Id":10671,"Name":"","CurseForge":"enablemultiplayermode","Modrinth":"enablemultiplayermode"},{"Id":10672,"Name":"","CurseForge":"wizardy-delight","Modrinth":"wizardry-delight"},{"Id":10675,"Name":"","CurseForge":"tinyallies","Modrinth":"tinyallies"},{"Id":10676,"Name":"","CurseForge":"mc-mods-da-nuggets","Modrinth":""},{"Id":10677,"Name":"","CurseForge":"random-recipes","Modrinth":""},{"Id":10678,"Name":"史塔克一家 (Starks)","CurseForge":"starks","Modrinth":""},{"Id":10679,"Name":"","CurseForge":"easy-paper","Modrinth":""},{"Id":10680,"Name":"","CurseForge":"modern-ruins-pack","Modrinth":""},{"Id":10681,"Name":"","CurseForge":"tetras-delight","Modrinth":""},{"Id":10682,"Name":"结界 (Kekkai)","CurseForge":"","Modrinth":"kekkai"},{"Id":10683,"Name":"无尽贪婪重置版 (Avaritia Reset Version)","CurseForge":"avaritia-reset-version","Modrinth":""},{"Id":10684,"Name":"","CurseForge":"archeology-plus","Modrinth":"archeology-plus"},{"Id":10685,"Name":"","CurseForge":"mobification","Modrinth":""},{"Id":10686,"Name":"","CurseForge":"trimseffects","Modrinth":"trimseffects"},{"Id":10687,"Name":"","CurseForge":"tough-glass","Modrinth":"tough-glass"},{"Id":10688,"Name":"天神剑技 (Celestisynth)","CurseForge":"celestisynth","Modrinth":"celestisynth"},{"Id":10689,"Name":"","CurseForge":"golems-plus-plus","Modrinth":"golems-plus-plus"},{"Id":10690,"Name":"","CurseForge":"more-axolotls","Modrinth":"more-axolotl"},{"Id":10691,"Name":"","CurseForge":"perfect-accuracy","Modrinth":"perfect-accuracy"},{"Id":10692,"Name":"","CurseForge":"","Modrinth":"perfect-accuracy-forge"},{"Id":10693,"Name":"","CurseForge":"","Modrinth":"swingthrough"},{"Id":10694,"Name":"","CurseForge":"log-begone","Modrinth":"log-begone"},{"Id":10695,"Name":"","CurseForge":"","Modrinth":"transferable-pets"},{"Id":10696,"Name":"","CurseForge":"","Modrinth":"bone-blocks"},{"Id":10697,"Name":"","CurseForge":"woodster","Modrinth":"woodster"},{"Id":10698,"Name":"","CurseForge":"deaths-mark","Modrinth":""},{"Id":10699,"Name":"","CurseForge":"sweet-boreal","Modrinth":"sweet-boreal"},{"Id":10700,"Name":"","CurseForge":"fuzzymobs","Modrinth":""},{"Id":10701,"Name":"","CurseForge":"","Modrinth":"beslandia"},{"Id":10702,"Name":"魔法艺术2.5 (Ars Magica 2.5)","CurseForge":"","Modrinth":"ars-magica-25"},{"Id":10703,"Name":"","CurseForge":"delightful-froge","Modrinth":"delightful-froge"},{"Id":10704,"Name":"","CurseForge":"enhancedsnowman","Modrinth":"enhanced-snowmen"},{"Id":10705,"Name":"","CurseForge":"new-world-height-and-depth","Modrinth":"shattered-world-limits"},{"Id":10706,"Name":"","CurseForge":"","Modrinth":"inertiaanticheat"},{"Id":10708,"Name":"","CurseForge":"scroll-of-harvests","Modrinth":"scroll-of-harvests"},{"Id":10709,"Name":"","CurseForge":"","Modrinth":"scripts-chunk-loaders"},{"Id":10710,"Name":"","CurseForge":"clean-tooltips","Modrinth":"clean-tooltips"},{"Id":10712,"Name":"快速存档&快速读档 (QSave&QLoad)","CurseForge":"quick-save","Modrinth":"quicksave"},{"Id":10713,"Name":"","CurseForge":"iron-bows-forge","Modrinth":""},{"Id":10713,"Name":"","CurseForge":"iron-bows-fabric","Modrinth":""},{"Id":10715,"Name":"","CurseForge":"filtered-chests","Modrinth":""},{"Id":10718,"Name":"","CurseForge":"antixray","Modrinth":"anti-xray"},{"Id":10718,"Name":"","CurseForge":"antixray-forge","Modrinth":""},{"Id":10719,"Name":"","CurseForge":"special-strength","Modrinth":""},{"Id":10720,"Name":"","CurseForge":"armorpoints","Modrinth":"armorpoints"},{"Id":10721,"Name":"轻松附魔 (Easy Enchanting)","CurseForge":"easy-enchanting","Modrinth":"easy-enchanting"},{"Id":10722,"Name":"","CurseForge":"elitia","Modrinth":""},{"Id":10723,"Name":"","CurseForge":"cosmetic-wings","Modrinth":""},{"Id":10724,"Name":"深空 (DeepSpace)","CurseForge":"deepspace","Modrinth":""},{"Id":10725,"Name":"死亡备份 (Death Backup)","CurseForge":"death-backup","Modrinth":"death-backup"},{"Id":10726,"Name":"","CurseForge":"bear-with-me","Modrinth":""},{"Id":10727,"Name":"机械动力:柴油动力 (Create: Diesel Generators)","CurseForge":"create-diesel-generators","Modrinth":"create-diesel-generators"},{"Id":10728,"Name":"","CurseForge":"vintagefix","Modrinth":"vintagefix"},{"Id":10730,"Name":"","CurseForge":"nostalgic-tweaks","Modrinth":"nostalgic-tweaks"},{"Id":10731,"Name":"","CurseForge":"suspicious-sand-maker","Modrinth":""},{"Id":10732,"Name":"","CurseForge":"create-cobblemon-industrialized","Modrinth":"create-cobblemon-industrialized"},{"Id":10733,"Name":"","CurseForge":"create-pixelfactory","Modrinth":""},{"Id":10734,"Name":"","CurseForge":"ies-tweaks","Modrinth":""},{"Id":10735,"Name":"","CurseForge":"haunt-furnace","Modrinth":"haunt-furnace"},{"Id":10736,"Name":"","CurseForge":"player-ladder","Modrinth":"player-ladder"},{"Id":10737,"Name":"","CurseForge":"orb-of-origin-plus","Modrinth":"orb-of-origin-plus"},{"Id":10739,"Name":"","CurseForge":"firework-minecart-mod","Modrinth":"firework-minecart-mod"},{"Id":10740,"Name":"","CurseForge":"soots-sandwichcraft","Modrinth":""},{"Id":10741,"Name":"","CurseForge":"rpg-origins","Modrinth":""},{"Id":10742,"Name":"","CurseForge":"","Modrinth":"zombie-lag-fix"},{"Id":10743,"Name":"","CurseForge":"classic-minecraft-icon","Modrinth":"classic-minecraft-icon"},{"Id":10744,"Name":"","CurseForge":"","Modrinth":"the-binding-of-isaac-useful-items"},{"Id":10745,"Name":"","CurseForge":"","Modrinth":"trivia"},{"Id":10746,"Name":"","CurseForge":"some-useful-ores","Modrinth":""},{"Id":10747,"Name":"","CurseForge":"","Modrinth":"stardew-valley-mod"},{"Id":10748,"Name":"","CurseForge":"rainy-harvest","Modrinth":""},{"Id":10749,"Name":"","CurseForge":"mythic-mobs","Modrinth":"mobs-of-mythology"},{"Id":10750,"Name":"","CurseForge":"lost-features","Modrinth":"lostfeatures"},{"Id":10751,"Name":"","CurseForge":"bagus-lib","Modrinth":"bagus-lib"},{"Id":10753,"Name":"","CurseForge":"","Modrinth":"better-doors"},{"Id":10754,"Name":"","CurseForge":"server-pack-unlocker-forge","Modrinth":"server-pack-unlocker"},{"Id":10754,"Name":"","CurseForge":"server-pack-unlocker","Modrinth":""},{"Id":10755,"Name":"","CurseForge":"x-enchant","Modrinth":"x-enchantment"},{"Id":10757,"Name":"","CurseForge":"","Modrinth":"blahaj-remake"},{"Id":10758,"Name":"","CurseForge":"pamps-simple-edition","Modrinth":""},{"Id":10759,"Name":"","CurseForge":"","Modrinth":"babyzombie-drops"},{"Id":10761,"Name":"更好的雕纹书架 (Better Chiseled Bookshelves)","CurseForge":"better-chiseled-bookshelves","Modrinth":""},{"Id":10762,"Name":"","CurseForge":"","Modrinth":"shorks"},{"Id":10763,"Name":"","CurseForge":"","Modrinth":"missing-vanilla-recipes"},{"Id":10764,"Name":"","CurseForge":"alcocraft","Modrinth":"alcocraft"},{"Id":10765,"Name":"","CurseForge":"silences-defense-tower","Modrinth":""},{"Id":10767,"Name":"","CurseForge":"mowlib","Modrinth":""},{"Id":10769,"Name":"高级备份 (Advanced Backups)","CurseForge":"advanced-backups","Modrinth":""},{"Id":10770,"Name":"","CurseForge":"not-just-biomes","Modrinth":"not-just-biomes"},{"Id":10771,"Name":"农业增强 (Agricultural Enhancements)","CurseForge":"agricultural-enhancements","Modrinth":"agricultural-enhancements"},{"Id":10774,"Name":"罗毅的锏 (Lorry's sword breakers)","CurseForge":"lorrys-sword-breakers","Modrinth":""},{"Id":10775,"Name":"","CurseForge":"ramel","Modrinth":"ramel"},{"Id":10777,"Name":"聊天工具箱 (Chat Tools)","CurseForge":"chat-tools","Modrinth":"chat-tools"},{"Id":10778,"Name":"","CurseForge":"amys-rftl","Modrinth":""},{"Id":10779,"Name":"可爱的企鹅 (Cute Penguins)","CurseForge":"cutepenguins","Modrinth":""},{"Id":10780,"Name":"","CurseForge":"hellions-sniffer","Modrinth":"hellions-sniffer+"},{"Id":10782,"Name":"杂交花 (Hybrid Flowers)","CurseForge":"hybrid-flowers","Modrinth":""},{"Id":10785,"Name":"","CurseForge":"methane","Modrinth":""},{"Id":10785,"Name":"","CurseForge":"","Modrinth":"methane"},{"Id":10786,"Name":"","CurseForge":"mushroom-villagers","Modrinth":""},{"Id":10787,"Name":"","CurseForge":"","Modrinth":"litematica-server-paster"},{"Id":10788,"Name":"","CurseForge":"s33r-butterfly-paintings","Modrinth":"s33r-butterfly-paintings"},{"Id":10789,"Name":"","CurseForge":"","Modrinth":"more-statistics"},{"Id":10790,"Name":"","CurseForge":"villager-see-villager-do","Modrinth":"villager-see-villager-do"},{"Id":10791,"Name":"工业基石 (IndustryBase)","CurseForge":"industrybase","Modrinth":""},{"Id":10792,"Name":"炎液断蒸 (Silent River In The Nether)","CurseForge":"silent-river-in-the-nether","Modrinth":""},{"Id":10793,"Name":"","CurseForge":"ramel-reforged","Modrinth":""},{"Id":10794,"Name":"","CurseForge":"sulfar-mod","Modrinth":""},{"Id":10795,"Name":"","CurseForge":"apple-cows","Modrinth":""},{"Id":10796,"Name":"","CurseForge":"gardening-tools","Modrinth":"gardening-tools"},{"Id":10797,"Name":"","CurseForge":"nether-ores-plus","Modrinth":""},{"Id":10798,"Name":"","CurseForge":"river-treasures","Modrinth":""},{"Id":10799,"Name":"","CurseForge":"lumbers-axe","Modrinth":""},{"Id":10801,"Name":"","CurseForge":"immunity-enchantments","Modrinth":""},{"Id":10802,"Name":"","CurseForge":"better-fishing-rods","Modrinth":""},{"Id":10803,"Name":"","CurseForge":"book-fishing","Modrinth":""},{"Id":10804,"Name":"","CurseForge":"more-villager-trades","Modrinth":""},{"Id":10805,"Name":"自定义世界图标 (Custom World Icons)","CurseForge":"custom-world-icons","Modrinth":"custom-world-icons"},{"Id":10806,"Name":"","CurseForge":"trims-begone","Modrinth":"trims-begone!"},{"Id":10807,"Name":"","CurseForge":"haste-enchantment","Modrinth":""},{"Id":10808,"Name":"","CurseForge":"workshop-for-handsome-adventurer","Modrinth":""},{"Id":10809,"Name":"","CurseForge":"desert-upgrade","Modrinth":""},{"Id":10810,"Name":"","CurseForge":"ocean-recovery","Modrinth":""},{"Id":10811,"Name":"更多盔甲纹饰 (More Armor Trims)","CurseForge":"more-armor-trims","Modrinth":""},{"Id":10812,"Name":"","CurseForge":"mc-mods-the-trims","Modrinth":"allthetrims"},{"Id":10813,"Name":"告示牌编辑器 (Bamboo Sign Editor)","CurseForge":"","Modrinth":"bamboo-sign-editor"},{"Id":10814,"Name":"","CurseForge":"revival-orb","Modrinth":"revival-orb"},{"Id":10815,"Name":"","CurseForge":"stackable-trims","Modrinth":"stackable-trims"},{"Id":10816,"Name":"饰品栏优化 (KeepCuriosInventory)","CurseForge":"keepcuriosinventory","Modrinth":""},{"Id":10817,"Name":"","CurseForge":"megachicken","Modrinth":"mega-chicken"},{"Id":10818,"Name":"","CurseForge":"s33r-iris-azalea-mod","Modrinth":""},{"Id":10819,"Name":"","CurseForge":"difficultyplus","Modrinth":"difficulty+"},{"Id":10820,"Name":"","CurseForge":"black-lung","Modrinth":"blacklung"},{"Id":10821,"Name":"","CurseForge":"friends-and-foes-beekeeper-hut-forge","Modrinth":"friends-and-foes-beekeeper-hut-forge"},{"Id":10821,"Name":"","CurseForge":"friends-and-foes-beekeeper-hut-fabric","Modrinth":"friends-and-foes-beekeeper-hut-fabric"},{"Id":10822,"Name":"","CurseForge":"friends-and-foes-flowery-mooblooms-forge","Modrinth":"friends-and-foes-flowery-mooblooms-forge"},{"Id":10822,"Name":"","CurseForge":"friends-and-foes-flowery-mooblooms-fabric","Modrinth":"friends-and-foes-flowery-mooblooms-fabric"},{"Id":10823,"Name":"随机战利品表 (Random Looting)","CurseForge":"random-looting","Modrinth":"random-looting"},{"Id":10824,"Name":"","CurseForge":"kubejs-botany-pots","Modrinth":"kubejs-botany-pots"},{"Id":10825,"Name":"","CurseForge":"irons-rpg-tweaks","Modrinth":""},{"Id":10825,"Name":"Iron's Rpg Tweaks - 未及时更新","CurseForge":"","Modrinth":"irons-rpg-tweaks"},{"Id":10826,"Name":"","CurseForge":"","Modrinth":"enchantips"},{"Id":10827,"Name":"","CurseForge":"tokenable-decoration","Modrinth":""},{"Id":10828,"Name":"","CurseForge":"emogg","Modrinth":"emogg"},{"Id":10829,"Name":"节日佳肴 (Festival Delicacies)","CurseForge":"festival-delicacies","Modrinth":"festival-delicacies"},{"Id":10830,"Name":"","CurseForge":"elytra-trims","Modrinth":"elytra-trims"},{"Id":10831,"Name":"雕纹书架注魔/阅页读著 (Benefits of Reading)","CurseForge":"benefits-of-reading","Modrinth":""},{"Id":10832,"Name":"","CurseForge":"gothic-rpg","Modrinth":"gothic-rpg"},{"Id":10833,"Name":"幻想之梦 (Arcadian Dream)","CurseForge":"arcadian-dream","Modrinth":"arcadian-dream"},{"Id":10835,"Name":"地下城与酒馆 (Dungeons and Taverns)","CurseForge":"dungeon-and-taverns","Modrinth":""},{"Id":10836,"Name":"","CurseForge":"elytra-trims-extensions","Modrinth":"elytra-trims-extensions"},{"Id":10837,"Name":"","CurseForge":"fallingblocks","Modrinth":""},{"Id":10838,"Name":"","CurseForge":"fabric-musica","Modrinth":""},{"Id":10839,"Name":"","CurseForge":"growmeal","Modrinth":"growmeal"},{"Id":10840,"Name":"","CurseForge":"moa-decor-art","Modrinth":""},{"Id":10843,"Name":"","CurseForge":"easier-armor-trim-duplication","Modrinth":"easier-armor-trim-duplication"},{"Id":10844,"Name":"","CurseForge":"steppy","Modrinth":"steppy"},{"Id":10845,"Name":"稀薄的空气 (Thin Air)","CurseForge":"new-thin-air","Modrinth":"thin-air"},{"Id":10846,"Name":"","CurseForge":"the-armory","Modrinth":""},{"Id":10847,"Name":"Xannosz的更好的矿车 (Xannosz's Better Minecarts)","CurseForge":"xannoszs-better-minecarts","Modrinth":""},{"Id":10848,"Name":"","CurseForge":"meliusvanish","Modrinth":"vanish"},{"Id":10849,"Name":"","CurseForge":"tooltip-tool-tips","Modrinth":"tooltip-tool-tips"},{"Id":10850,"Name":"","CurseForge":"sanity-descent-into-madness","Modrinth":"sanity-descent-into-madness"},{"Id":10851,"Name":"无黑暗效果 (No darkness effect)","CurseForge":"no-darkness-effect-mod","Modrinth":"no-darkness-effect"},{"Id":10852,"Name":"","CurseForge":"","Modrinth":"seamless-loading-screen-renewed"},{"Id":10853,"Name":"","CurseForge":"armorskin","Modrinth":"armorskin"},{"Id":10854,"Name":"","CurseForge":"","Modrinth":"translucent-glass"},{"Id":10855,"Name":"","CurseForge":"simple-health-bar","Modrinth":"simple-health-bar"},{"Id":10856,"Name":"","CurseForge":"plenty-of-golems","Modrinth":""},{"Id":10857,"Name":"","CurseForge":"","Modrinth":"hit_particles"},{"Id":10858,"Name":"耐久指示器更新版 (Durability Viewer Updated)","CurseForge":"","Modrinth":"durability-viewer-updated"},{"Id":10859,"Name":"","CurseForge":"puffish-skills","Modrinth":"skills"},{"Id":10860,"Name":"更好的考古学 (Better Archeology)","CurseForge":"better-archeology","Modrinth":"better-archeology"},{"Id":10861,"Name":"假人 (Fake People)","CurseForge":"fake-people","Modrinth":""},{"Id":10862,"Name":"","CurseForge":"apoca-mobs","Modrinth":""},{"Id":10864,"Name":"","CurseForge":"","Modrinth":"snow-sniffer"},{"Id":10865,"Name":"","CurseForge":"responsive-shields","Modrinth":"responsiveshields"},{"Id":10866,"Name":"蜜蜂信息显示 (Beehave)","CurseForge":"beehave","Modrinth":"beehave"},{"Id":10868,"Name":"","CurseForge":"sign-clipboard","Modrinth":"sign-clipboard"},{"Id":10869,"Name":"","CurseForge":"nocubes-better-frogs","Modrinth":""},{"Id":10870,"Name":"","CurseForge":"essential-permissions","Modrinth":"vanilla-permissions"},{"Id":10871,"Name":"机械动力:梦想与欲望 (Create: Dreams & Desires)","CurseForge":"create-dreams-desires","Modrinth":"create-dreams-and-desires"},{"Id":10872,"Name":"","CurseForge":"trails-and-tales","Modrinth":"trails-and-tales-plus"},{"Id":10874,"Name":"","CurseForge":"stackable127","Modrinth":"stackable127"},{"Id":10877,"Name":"","CurseForge":"wanderer-profession","Modrinth":""},{"Id":10879,"Name":"","CurseForge":"cataclysmic-combat","Modrinth":"cataclysmic-combat"},{"Id":10880,"Name":"","CurseForge":"persona","Modrinth":""},{"Id":10882,"Name":"","CurseForge":"create-air-forge","Modrinth":""},{"Id":10883,"Name":"","CurseForge":"","Modrinth":"gravity-pads"},{"Id":10886,"Name":"","CurseForge":"inhibited","Modrinth":"inhibited"},{"Id":10887,"Name":"中国铁路设施","CurseForge":"china-railway-facilities","Modrinth":""},{"Id":10888,"Name":"","CurseForge":"sekc-physics","Modrinth":""},{"Id":10888,"Name":"","CurseForge":"sekc-physics-fabric","Modrinth":""},{"Id":10889,"Name":"","CurseForge":"","Modrinth":"artificial-lightning-mod"},{"Id":10890,"Name":"","CurseForge":"do-api","Modrinth":"do-api"},{"Id":10891,"Name":"","CurseForge":"","Modrinth":"pythonmc"},{"Id":10892,"Name":"TP 聊天命令 (TP Chat Command)","CurseForge":"","Modrinth":"tp-chat-cmd"},{"Id":10893,"Name":"","CurseForge":"grabby-mobs","Modrinth":"grabby-mobs"},{"Id":10894,"Name":"","CurseForge":"pandas-falling-trees","Modrinth":"pandas-falling-trees"},{"Id":10895,"Name":"","CurseForge":"iron-ender-chests","Modrinth":"iron-ender-chests"},{"Id":10896,"Name":"动力乐事 (Delightful Creators)","CurseForge":"delightful-creators-forge","Modrinth":"delightful-creators"},{"Id":10896,"Name":"动力乐事 (Delightful Creators)","CurseForge":"delightful-creators-fabric","Modrinth":""},{"Id":10897,"Name":"逝不过三 (Death But Three)","CurseForge":"deathbutthree","Modrinth":"death-but-three"},{"Id":10899,"Name":"组队兼容 (Comparties)","CurseForge":"comparties","Modrinth":""},{"Id":10900,"Name":"","CurseForge":"dusty-decorations","Modrinth":"dusty-decorations"},{"Id":10901,"Name":"","CurseForge":"simple-double-jump","Modrinth":""},{"Id":10902,"Name":"简单的矿石生成 (Simple Ore Generation)","CurseForge":"simple-ore-generation","Modrinth":""},{"Id":10903,"Name":"","CurseForge":"save-the-monument","Modrinth":""},{"Id":10904,"Name":"","CurseForge":"snifferiety","Modrinth":"snifferiety"},{"Id":10905,"Name":"","CurseForge":"light-the-night","Modrinth":""},{"Id":10906,"Name":"","CurseForge":"tweakerge","Modrinth":"tweakerge"},{"Id":10907,"Name":"","CurseForge":"terrafirmaships","Modrinth":"terrafirmaships"},{"Id":10908,"Name":"","CurseForge":"better-ocelots","Modrinth":""},{"Id":10909,"Name":"","CurseForge":"actually-useful-smithing-table","Modrinth":"actually-useful-smithing-table"},{"Id":10910,"Name":"","CurseForge":"denyblocks","Modrinth":""},{"Id":10911,"Name":"","CurseForge":"sculk-horn","Modrinth":"-sculk-horn"},{"Id":10912,"Name":"","CurseForge":"ydms-red-panda","Modrinth":"ydms-red-panda"},{"Id":10913,"Name":"","CurseForge":"overworld-piglins","Modrinth":"overworld-piglins"},{"Id":10914,"Name":"","CurseForge":"waveapi","Modrinth":"waveapi"},{"Id":10915,"Name":"","CurseForge":"modlist","Modrinth":""},{"Id":10916,"Name":"","CurseForge":"panorama-screens","Modrinth":"panorama-screens"},{"Id":10917,"Name":"","CurseForge":"campfire-spawn-and-tweaks","Modrinth":"campfire-spawn-and-tweaks"},{"Id":10918,"Name":"","CurseForge":"ghostz","Modrinth":"ghostz"},{"Id":10919,"Name":"","CurseForge":"better-totem-of-undying","Modrinth":"better-totem-of-undying"},{"Id":10919,"Name":"","CurseForge":"better-totem-of-undying-fabric","Modrinth":""},{"Id":10920,"Name":"模组秘典 (Modonomicon)","CurseForge":"modonomicon","Modrinth":"modonomicon"},{"Id":10921,"Name":"","CurseForge":"moreyoyos","Modrinth":""},{"Id":10923,"Name":"","CurseForge":"onetwenty-1-20-backport","Modrinth":"trailstales-backport"},{"Id":10924,"Name":"","CurseForge":"xtra-arrows","Modrinth":"xtra-arrows"},{"Id":10925,"Name":"","CurseForge":"secrets-of-forging-revelations-a-tetra-addon","Modrinth":"secrets-of-forging-revelations"},{"Id":10926,"Name":"","CurseForge":"trolldom","Modrinth":""},{"Id":10927,"Name":"中国制造 (Made In China)","CurseForge":"","Modrinth":"made-in-china"},{"Id":10928,"Name":"","CurseForge":"soundlimitextends","Modrinth":""},{"Id":10929,"Name":"","CurseForge":"artemis-flower-pots","Modrinth":""},{"Id":10930,"Name":"","CurseForge":"sculky-bits","Modrinth":""},{"Id":10931,"Name":"","CurseForge":"minecolonies-for-computercraft","Modrinth":""},{"Id":10932,"Name":"烈焰横扫:土豆版 (Flame Sweeping Potato Edition)","CurseForge":"flame-sweeping-potato-edition","Modrinth":""},{"Id":10933,"Name":"","CurseForge":"skinned-carts","Modrinth":"skinned-carts"},{"Id":10934,"Name":"","CurseForge":"quick-effect","Modrinth":"quickeffect"},{"Id":10935,"Name":"","CurseForge":"block-log","Modrinth":""},{"Id":10937,"Name":"装备祝福 (Equipment Benediction)","CurseForge":"equipmentbenediction","Modrinth":"equipment-benediction"},{"Id":10938,"Name":"现代游戏模式选择器 (Modern Gamemode Switcher)","CurseForge":"","Modrinth":"gms"},{"Id":10939,"Name":"","CurseForge":"dimension-localized-inventories","Modrinth":""},{"Id":10940,"Name":"","CurseForge":"skillcraft-modpack-tool","Modrinth":""},{"Id":10941,"Name":"","CurseForge":"modern-inhibited","Modrinth":""},{"Id":10942,"Name":"死者为大 (GhostJump)","CurseForge":"ghostjump","Modrinth":""},{"Id":10943,"Name":"","CurseForge":"","Modrinth":"notsoessential"},{"Id":10944,"Name":"","CurseForge":"worldsalads-opulence","Modrinth":""},{"Id":10946,"Name":"","CurseForge":"wyrms-of-nyrus","Modrinth":"wyrms"},{"Id":10947,"Name":"","CurseForge":"pearfection","Modrinth":"pearfection"},{"Id":10948,"Name":"","CurseForge":"enderchests","Modrinth":"enderchests"},{"Id":10948,"Name":"","CurseForge":"enderchests-fabric","Modrinth":""},{"Id":10949,"Name":"","CurseForge":"dragon-rider","Modrinth":""},{"Id":10950,"Name":"机械动力:实用物品 (Create Utilities)","CurseForge":"createutilities","Modrinth":"create-utilities"},{"Id":10952,"Name":"","CurseForge":"creeperhost-presents-chickens","Modrinth":""},{"Id":10953,"Name":"","CurseForge":"inet","Modrinth":"inet"},{"Id":10954,"Name":"你安星好啦 (Safefall)","CurseForge":"safefall","Modrinth":""},{"Id":10955,"Name":"","CurseForge":"my-beloved-icon","Modrinth":"my-beloved-icon"},{"Id":10956,"Name":"","CurseForge":"mob-catcher-fabric","Modrinth":""},{"Id":10957,"Name":"","CurseForge":"tetra-enlarged","Modrinth":""},{"Id":10958,"Name":"果品乐事 (Fruit Delight)","CurseForge":"fruit-delight","Modrinth":"fruit-delight"},{"Id":10959,"Name":"","CurseForge":"","Modrinth":"idletweaks"},{"Id":10960,"Name":"","CurseForge":"tagmod","Modrinth":""},{"Id":10961,"Name":"被动技能树 (Passive Skill Tree)","CurseForge":"passive-skill-tree","Modrinth":""},{"Id":10962,"Name":"","CurseForge":"villagertradefix","Modrinth":"villagertradefix"},{"Id":10965,"Name":"弹幕聊天 (Bullet Chat)","CurseForge":"bullet-chat","Modrinth":""},{"Id":10966,"Name":"","CurseForge":"fishermans-trap","Modrinth":"fishermens-trap"},{"Id":10967,"Name":"禁止蝙蝠生成 (RemoveBats)","CurseForge":"removebats","Modrinth":"removebats"},{"Id":10968,"Name":"","CurseForge":"nabba","Modrinth":""},{"Id":10969,"Name":"附恶魔 (EnchantDemon)","CurseForge":"enchantdemon","Modrinth":""},{"Id":10972,"Name":"","CurseForge":"create-alchemists-industry","Modrinth":"create-alchemists-industry"},{"Id":10975,"Name":"","CurseForge":"stellarity","Modrinth":""},{"Id":10978,"Name":"","CurseForge":"","Modrinth":"modern-sound"},{"Id":10979,"Name":"","CurseForge":"","Modrinth":"polished-gui"},{"Id":10980,"Name":"","CurseForge":"mc-mods-bark-all-bite","Modrinth":""},{"Id":10981,"Name":"","CurseForge":"lively-forests","Modrinth":""},{"Id":10983,"Name":"","CurseForge":"dynamic-fullbright","Modrinth":"dynamic-fullbright"},{"Id":10984,"Name":"模块化武装:烨熠 (ModularWarfare-Shining)","CurseForge":"","Modrinth":"modularwarfare-shining"},{"Id":10985,"Name":"","CurseForge":"dont-clear-chat-history","Modrinth":"dcch"},{"Id":10986,"Name":"","CurseForge":"difficulty-locker","Modrinth":""},{"Id":10987,"Name":"","CurseForge":"virus-disease-mod","Modrinth":""},{"Id":10988,"Name":"这是我的船! (This boat is MINE!)","CurseForge":"this-boat-is-mine","Modrinth":"this-boat-is-mine"},{"Id":10989,"Name":"","CurseForge":"pandas-extra-details","Modrinth":"pandas-extra-details"},{"Id":10990,"Name":"","CurseForge":"ebs-wildfire","Modrinth":"ebs-wildfire"},{"Id":10993,"Name":"","CurseForge":"bobby-forge","Modrinth":""},{"Id":10994,"Name":"","CurseForge":"matter-transporter","Modrinth":""},{"Id":10995,"Name":"","CurseForge":"tall-flower-pots","Modrinth":"tall-flower-pots"},{"Id":10997,"Name":"","CurseForge":"too-fast","Modrinth":"too-fast"},{"Id":10999,"Name":"","CurseForge":"fast-paintings","Modrinth":"fast-paintings"},{"Id":11000,"Name":"","CurseForge":"personality-rp","Modrinth":"personality"},{"Id":11003,"Name":"","CurseForge":"","Modrinth":"fabric-yaml-configuration"},{"Id":11004,"Name":"","CurseForge":"comfy-beds","Modrinth":"comfy-beds"},{"Id":11005,"Name":"","CurseForge":"twerk-crop-dusting-mod-fabric","Modrinth":""},{"Id":11006,"Name":"","CurseForge":"extra-damage-enchantments","Modrinth":"extra-damage-enchantments"},{"Id":11007,"Name":"","CurseForge":"lemon-core","Modrinth":""},{"Id":11008,"Name":"","CurseForge":"rightclickharvest","Modrinth":"rightclickharvest"},{"Id":11009,"Name":"","CurseForge":"planters-forge","Modrinth":"planters"},{"Id":11010,"Name":"","CurseForge":"passive-charms","Modrinth":"passive-charms"},{"Id":11013,"Name":"","CurseForge":"linkart-updated","Modrinth":"linkart"},{"Id":11014,"Name":"","CurseForge":"jamlib","Modrinth":"jamlib"},{"Id":11015,"Name":"","CurseForge":"globalization","Modrinth":"globalization"},{"Id":11016,"Name":"","CurseForge":"renewable-spore-blossoms","Modrinth":""},{"Id":11017,"Name":"","CurseForge":"","Modrinth":"paragraphs"},{"Id":11019,"Name":"记分板助手 (Scoreboard Helper)","CurseForge":"","Modrinth":"scoreboard-helper"},{"Id":11030,"Name":"生物信息 (Mobs Info)","CurseForge":"mobs-info","Modrinth":"mobsinfo"},{"Id":11031,"Name":"","CurseForge":"ngrok-api","Modrinth":"ngrok-api"},{"Id":11034,"Name":"利刃出鞘:重铸 (Sword Unsheathe Reforged)","CurseForge":"","Modrinth":"swordunsheather"},{"Id":11035,"Name":"","CurseForge":"rpgloot","Modrinth":""},{"Id":11036,"Name":"","CurseForge":"","Modrinth":"sus-saver"},{"Id":11038,"Name":"","CurseForge":"dynamic-fps-reforged","Modrinth":"dynamic-fps-reforged"},{"Id":11039,"Name":"","CurseForge":"utility-belt","Modrinth":"utility-belt"},{"Id":11040,"Name":"","CurseForge":"cultivatecraft","Modrinth":""},{"Id":11041,"Name":"","CurseForge":"rpgloot-patched","Modrinth":""},{"Id":11042,"Name":"","CurseForge":"fluidlogged","Modrinth":"fluidlogged"},{"Id":11043,"Name":"","CurseForge":"create-foundry","Modrinth":""},{"Id":11044,"Name":"","CurseForge":"cobblemon-fight-or-flight","Modrinth":"cobblemon-fight-or-flight"},{"Id":11046,"Name":"末影磁铁 (Ender Magnet)","CurseForge":"ender-magnet","Modrinth":""},{"Id":11047,"Name":"","CurseForge":"dead-guys-hallucination-nightmare","Modrinth":""},{"Id":11050,"Name":"","CurseForge":"simple-hot-air-balloons","Modrinth":""},{"Id":11051,"Name":"","CurseForge":"toomuchrain","Modrinth":"toomuchrain"},{"Id":11052,"Name":"口渴-重制 (Thirst Was Remade)","CurseForge":"thirst-was-remade","Modrinth":"thirst-was-remade"},{"Id":11053,"Name":"","CurseForge":"ies-tweaks-fabric","Modrinth":"ies-tweaks-fabric"},{"Id":11054,"Name":"","CurseForge":"brown-mooshrooms","Modrinth":""},{"Id":11055,"Name":"","CurseForge":"whetstones","Modrinth":"whetstones"},{"Id":11056,"Name":"","CurseForge":"","Modrinth":"better-log4j-config"},{"Id":11057,"Name":"","CurseForge":"","Modrinth":"harvest"},{"Id":11058,"Name":"木制漏斗 (Wooden Hoppers)","CurseForge":"wooden-hoppers","Modrinth":"wooden-hoppers"},{"Id":11059,"Name":"骷髅马生成微调 (Skeleton Horse Spawn)","CurseForge":"skeleton-horse-spawn","Modrinth":"skeleton-horse-spawn"},{"Id":11059,"Name":"骷髅马生成微调 (Skeleton Horse Spawn)","CurseForge":"skeleton-horse-spawn-fabric","Modrinth":""},{"Id":11060,"Name":"","CurseForge":"configanytime","Modrinth":"configanytime"},{"Id":11061,"Name":"","CurseForge":"faster-crouching","Modrinth":"faster-crouching"},{"Id":11062,"Name":"","CurseForge":"yeetusexperimentus","Modrinth":"yeetus-experimentus"},{"Id":11063,"Name":"准星摇晃 (Crosshair Bobbing)","CurseForge":"xbob","Modrinth":"xbob"},{"Id":11064,"Name":"僵尸马生成微调 (Zombie Horse Spawn)","CurseForge":"zombie-horse-spawn","Modrinth":"zombie-horse-spawn"},{"Id":11064,"Name":"僵尸马生成微调 (Zombie Horse Spawn)","CurseForge":"zombie-horse-spawn-fabric","Modrinth":""},{"Id":11065,"Name":"匠魂武士刀 (Tinkers' Katanas)","CurseForge":"tinkers-katanas","Modrinth":""},{"Id":11066,"Name":"","CurseForge":"fbp","Modrinth":""},{"Id":11067,"Name":"","CurseForge":"yeetem-potions","Modrinth":"yeetem-potions"},{"Id":11068,"Name":"","CurseForge":"incapacitated","Modrinth":"incapacitated"},{"Id":11069,"Name":"锻汝砧上 (Forge Yourself)","CurseForge":"","Modrinth":"fys"},{"Id":11070,"Name":"梧桐物语 (MCopper)","CurseForge":"","Modrinth":"mcopper"},{"Id":11071,"Name":"","CurseForge":"no-ranged-knockback","Modrinth":""},{"Id":11072,"Name":"","CurseForge":"industrial-agriculture","Modrinth":""},{"Id":11073,"Name":"Macaw 的桥梁:Sajevius 附属 (Macaw's Bridges - Sajevius)","CurseForge":"macaws-bridges-sajevius","Modrinth":""},{"Id":11074,"Name":"","CurseForge":"","Modrinth":"getwebbed"},{"Id":11075,"Name":"","CurseForge":"","Modrinth":"water-resistance-potion"},{"Id":11076,"Name":"","CurseForge":"the-predators","Modrinth":""},{"Id":11077,"Name":"","CurseForge":"create-structures","Modrinth":""},{"Id":11078,"Name":"","CurseForge":"ivycore","Modrinth":"ivycore"},{"Id":11079,"Name":"","CurseForge":"more-immersive-wires","Modrinth":"more-immersive-wires"},{"Id":11080,"Name":"","CurseForge":"ventur-origin","Modrinth":"venturorigin"},{"Id":11082,"Name":"","CurseForge":"","Modrinth":"sodium-blendingregistry"},{"Id":11083,"Name":"","CurseForge":"waterphysics","Modrinth":""},{"Id":11084,"Name":"月亮事件扩展:第二月亮 (ECE - Enhanced Celestial Enhancement: The Second Moon)","CurseForge":"ece-enhanced-celestial-enhancement","Modrinth":""},{"Id":11085,"Name":"","CurseForge":"plants-vs-zombies-cubed","Modrinth":"pvzcubed"},{"Id":11086,"Name":"","CurseForge":"moa-decor","Modrinth":""},{"Id":11087,"Name":"","CurseForge":"moa-decor-toys","Modrinth":""},{"Id":11088,"Name":"","CurseForge":"moa-decor-cookery","Modrinth":""},{"Id":11089,"Name":"","CurseForge":"moa-decor-science","Modrinth":""},{"Id":11090,"Name":"","CurseForge":"create-guardian-beam-defense","Modrinth":""},{"Id":11091,"Name":"","CurseForge":"antisocial","Modrinth":"antisocial"},{"Id":11092,"Name":"","CurseForge":"expanding-technologies","Modrinth":"expandingtechnologies"},{"Id":11093,"Name":"","CurseForge":"despawning-eggs-hatch","Modrinth":"despawning-eggs-hatch"},{"Id":11094,"Name":"","CurseForge":"mob-death-messages","Modrinth":""},{"Id":11095,"Name":"","CurseForge":"chunkapi","Modrinth":"chunkapi"},{"Id":11096,"Name":"","CurseForge":"","Modrinth":"betterwaystonesmenu"},{"Id":11097,"Name":"","CurseForge":"big-fish","Modrinth":"big-fish"},{"Id":11098,"Name":"","CurseForge":"nulltal","Modrinth":"nulltal"},{"Id":11099,"Name":"","CurseForge":"caffeinefilled","Modrinth":"caffeinefilled"},{"Id":11100,"Name":"","CurseForge":"pet-transfer-trade-your-pets","Modrinth":"pet-pass-trade-your-pets!"},{"Id":11101,"Name":"馥郁烘焙 (Let's Do: Bakery) - [作者推荐]2.0.0+","CurseForge":"lets-do-bakery-farm-charm-compat","Modrinth":"lets-do-bakery-farmcharm-compat"},{"Id":11101,"Name":"馥郁烘焙 (Let's Do: Bakery) - Legacy版,作者已停止维护","CurseForge":"lets-do-bakery","Modrinth":"lets-do-bakery"},{"Id":11102,"Name":"","CurseForge":"searchables","Modrinth":"searchables"},{"Id":11103,"Name":"","CurseForge":"dixtas-armory","Modrinth":"dixtas-armory"},{"Id":11104,"Name":"","CurseForge":"ingamestats","Modrinth":"ingamestats"},{"Id":11105,"Name":"","CurseForge":"hanger-system-overhaul","Modrinth":""},{"Id":11106,"Name":"","CurseForge":"isaidnosnow","Modrinth":"isaidnosnow"},{"Id":11107,"Name":"客户端管理 (JarsAuth) - 此已不受支持","CurseForge":"jarsauth","Modrinth":""},{"Id":11107,"Name":"客户端管理 (JarsAuth) - >= 4.0","CurseForge":"","Modrinth":"jarsauth"},{"Id":11108,"Name":"","CurseForge":"autoelytrapanic","Modrinth":"autoelytrapanic"},{"Id":11109,"Name":"","CurseForge":"more-crossbows-cj","Modrinth":""},{"Id":11110,"Name":"","CurseForge":"multipart-machines-cooking","Modrinth":""},{"Id":11113,"Name":"","CurseForge":"thepeebrain-dream-dimension","Modrinth":""},{"Id":11114,"Name":"混沌世界 (Chaos World)","CurseForge":"","Modrinth":"chaos-world"},{"Id":11115,"Name":"","CurseForge":"ochetgenyo","Modrinth":"ochetgenyo"},{"Id":11116,"Name":"量子物理重构 (qCraft Reimagined)","CurseForge":"qcraft-reimagined","Modrinth":"qcraft"},{"Id":11118,"Name":"待办事项 (TODO List)","CurseForge":"","Modrinth":"todo-list"},{"Id":11119,"Name":"","CurseForge":"","Modrinth":"arst-armor-hud"},{"Id":11120,"Name":"生活调味料:洋葱版 (Spice of Life Onion)","CurseForge":"spice-of-life-onion","Modrinth":"spice-of-life-onion"},{"Id":11121,"Name":"","CurseForge":"effect-berries","Modrinth":"effect-berries"},{"Id":11122,"Name":"","CurseForge":"tinkersworld","Modrinth":""},{"Id":11125,"Name":"布娃娃尸体 (Ragdoll Corpses)","CurseForge":"ragdoll-corpses","Modrinth":""},{"Id":11126,"Name":"浮空遗迹 (FloatingRuins)","CurseForge":"floatingruins","Modrinth":""},{"Id":11128,"Name":"","CurseForge":"creeper-backguard","Modrinth":"creeperbackguard"},{"Id":11129,"Name":"","CurseForge":"audio-extension-for-fancymenu-forge","Modrinth":"audio-extension-for-fancymenu"},{"Id":11129,"Name":"","CurseForge":"audio-extension-for-fancymenu-fabric","Modrinth":""},{"Id":11130,"Name":"","CurseForge":"stay-warm-together","Modrinth":""},{"Id":11131,"Name":"","CurseForge":"aeroblender","Modrinth":"aeroblender"},{"Id":11132,"Name":"亘古天境 (Ancient Aether)","CurseForge":"ancient-aether","Modrinth":"ancient-aether"},{"Id":11133,"Name":"","CurseForge":"artisticcraft","Modrinth":"artisticcraft"},{"Id":11134,"Name":"熔岩船 (LavaBoat)","CurseForge":"lavaboat_mod","Modrinth":""},{"Id":11135,"Name":"精致的狼 (Sophisticated wolves)","CurseForge":"sophisticated-wolves","Modrinth":""},{"Id":11136,"Name":"","CurseForge":"enderio-alloys","Modrinth":""},{"Id":11137,"Name":"","CurseForge":"dynamic-music","Modrinth":""},{"Id":11138,"Name":"","CurseForge":"","Modrinth":"item-hunt"},{"Id":11139,"Name":"","CurseForge":"dynamo","Modrinth":""},{"Id":11140,"Name":"","CurseForge":"create-sabers","Modrinth":""},{"Id":11141,"Name":"","CurseForge":"liveworldgen","Modrinth":""},{"Id":11142,"Name":"","CurseForge":"split-shulker-boxes","Modrinth":"split-shulker-boxes"},{"Id":11143,"Name":"","CurseForge":"tinkers-leveling","Modrinth":""},{"Id":11144,"Name":"","CurseForge":"curios-compat","Modrinth":""},{"Id":11145,"Name":"云备份 (CloudBackup)","CurseForge":"","Modrinth":"cloudbackup"},{"Id":11146,"Name":"","CurseForge":"serverpingerfixer","Modrinth":"serverpingerfixer"},{"Id":11147,"Name":"","CurseForge":"","Modrinth":"world-days"},{"Id":11148,"Name":"","CurseForge":"such-a-delight","Modrinth":""},{"Id":11149,"Name":"","CurseForge":"create-compressed","Modrinth":"create-compressed"},{"Id":11150,"Name":"","CurseForge":"emoji-type","Modrinth":"emoji-type"},{"Id":11151,"Name":"灵魂绑定 (SoulBound)","CurseForge":"soul-bound-enchantment","Modrinth":"soulbound-enchantment"},{"Id":11152,"Name":"","CurseForge":"tower-defense-units","Modrinth":""},{"Id":11153,"Name":"屏障方块 (Barrier Block Mod)","CurseForge":"barrier-block-mod","Modrinth":""},{"Id":11154,"Name":"","CurseForge":"","Modrinth":"simplehealthorbs"},{"Id":11155,"Name":"","CurseForge":"misctweaks_","Modrinth":""},{"Id":11156,"Name":"","CurseForge":"dynamic-music-updated","Modrinth":"dynamic-music-updated"},{"Id":11157,"Name":"","CurseForge":"spartan-netherite","Modrinth":""},{"Id":11158,"Name":"","CurseForge":"climb-ladders-fast","Modrinth":""},{"Id":11159,"Name":"","CurseForge":"custom-machinery-mekanism","Modrinth":"custom-machinery-mekanism"},{"Id":11160,"Name":"东方改进 (Touhou Tweaks)","CurseForge":"","Modrinth":"touhou-tweaks"},{"Id":11163,"Name":"","CurseForge":"noraidtotems","Modrinth":"noraidtotems"},{"Id":11164,"Name":"","CurseForge":"","Modrinth":"snowballs_plus"},{"Id":11165,"Name":"","CurseForge":"bagus-mob","Modrinth":"bagus-mob"},{"Id":11166,"Name":"","CurseForge":"chat-twix","Modrinth":"chat-twix"},{"Id":11167,"Name":"","CurseForge":"shulker-meat","Modrinth":""},{"Id":11168,"Name":"","CurseForge":"accurate-block-placement-reborn","Modrinth":"accurate-block-placement-reborn"},{"Id":11169,"Name":"","CurseForge":"favorite-items","Modrinth":""},{"Id":11171,"Name":"见钱眼开 (Smart Villagers Follow Emeralds)","CurseForge":"smart-villagers-follow-emeralds","Modrinth":"smart-villagers-follow-emeralds"},{"Id":11173,"Name":"","CurseForge":"","Modrinth":"villager-pickup"},{"Id":11174,"Name":"","CurseForge":"step-it-up","Modrinth":"stepitup"},{"Id":11175,"Name":"奇幻树 (Fantasy Trees)","CurseForge":"fantasy-trees","Modrinth":""},{"Id":11177,"Name":"你再造! (Remodifier)","CurseForge":"remodified","Modrinth":""},{"Id":11180,"Name":"","CurseForge":"better-fusion-reactor-for-mekanism","Modrinth":"better-fusion-reactor-for-mekanism"},{"Id":11181,"Name":"","CurseForge":"growableores","Modrinth":"growableores"},{"Id":11181,"Name":"","CurseForge":"growableores-ore-cane-forge","Modrinth":""},{"Id":11181,"Name":"","CurseForge":"growableores-ore-cane-neoforge","Modrinth":""},{"Id":11182,"Name":"","CurseForge":"golemsarefriends","Modrinth":"golemsarefriends"},{"Id":11185,"Name":"","CurseForge":"keep-command-history","Modrinth":"keepcommandhistory"},{"Id":11188,"Name":"","CurseForge":"generatorgalore","Modrinth":"generatorgalore"},{"Id":11189,"Name":"","CurseForge":"map-shirts","Modrinth":"map-shirts"},{"Id":11190,"Name":"","CurseForge":"fireproof-boats","Modrinth":"fireproof-boats"},{"Id":11191,"Name":"","CurseForge":"dyenamicsandfriends","Modrinth":""},{"Id":11194,"Name":"","CurseForge":"fusion-connected-textures","Modrinth":"fusion-connected-textures"},{"Id":11195,"Name":"","CurseForge":"bluebox","Modrinth":""},{"Id":11196,"Name":"","CurseForge":"hunger-reworked","Modrinth":""},{"Id":11197,"Name":"耐久信息显示:重生 (Armor Status HUD Renewed)","CurseForge":"armor-status-hud-renewed","Modrinth":""},{"Id":11198,"Name":"","CurseForge":"boblib","Modrinth":""},{"Id":11199,"Name":"","CurseForge":"placeable-mobs","Modrinth":"placeble-mobs"},{"Id":11200,"Name":"","CurseForge":"potion-blender","Modrinth":"potion-blender"},{"Id":11201,"Name":"","CurseForge":"t6-auto-attack-mod","Modrinth":"t6-auto-attack"},{"Id":11202,"Name":"","CurseForge":"forceasciifont-backport","Modrinth":""},{"Id":11203,"Name":"VM汉化更新 (VMTranslationUpdateMod)","CurseForge":"vmtranslationupdate","Modrinth":"vmupdate"},{"Id":11204,"Name":"","CurseForge":"trample-no-more","Modrinth":"trample-no-more"},{"Id":11206,"Name":"","CurseForge":"jeremyseq-damage-indicator","Modrinth":"jeremyseqs-damage-indicator"},{"Id":11208,"Name":"","CurseForge":"digs-dnd-origins","Modrinth":""},{"Id":11209,"Name":"","CurseForge":"superior-flat","Modrinth":""},{"Id":11210,"Name":"真菌感染:孢子 (Fungal Infection: Spore)","CurseForge":"fungal-infection-spore","Modrinth":"fungal-infectionspore"},{"Id":11211,"Name":"","CurseForge":"easy-tweak","Modrinth":"easy-tweak"},{"Id":11213,"Name":"","CurseForge":"netherless-quartz","Modrinth":""},{"Id":11214,"Name":"","CurseForge":"","Modrinth":"maple-api"},{"Id":11215,"Name":"","CurseForge":"reforged-fabric-api","Modrinth":""},{"Id":11215,"Name":"","CurseForge":"","Modrinth":"reforged-fabric-api"},{"Id":11216,"Name":"","CurseForge":"caffeinated","Modrinth":"caffeinated"},{"Id":11217,"Name":"","CurseForge":"buildcraft-rf","Modrinth":"buildcraft-rf"},{"Id":11218,"Name":"","CurseForge":"gilded-ingot","Modrinth":"gilded-ingot"},{"Id":11219,"Name":"聊天补丁 (Chat Patches)","CurseForge":"chatpatches","Modrinth":"chatpatches"},{"Id":11220,"Name":"","CurseForge":"burning-furnace","Modrinth":"burning-furnace"},{"Id":11221,"Name":"","CurseForge":"shadowizardlib","Modrinth":"shadowizardlib"},{"Id":11222,"Name":"","CurseForge":"ants-unleashed","Modrinth":"ants-unleashed"},{"Id":11223,"Name":"","CurseForge":"","Modrinth":"seaborgium"},{"Id":11224,"Name":"","CurseForge":"gold-fish","Modrinth":""},{"Id":11225,"Name":"","CurseForge":"pipeplus","Modrinth":"pipeplus"},{"Id":11228,"Name":"","CurseForge":"deuf-refabricated","Modrinth":"deuf-refabricated"},{"Id":11230,"Name":"","CurseForge":"runic-items","Modrinth":"runic-items"},{"Id":11231,"Name":"诡变 (Twist)","CurseForge":"twist","Modrinth":""},{"Id":11232,"Name":"","CurseForge":"","Modrinth":"serverlistbufferfixer"},{"Id":11233,"Name":"","CurseForge":"oil-refinery","Modrinth":""},{"Id":11234,"Name":"","CurseForge":"themangonewadvent","Modrinth":""},{"Id":11235,"Name":"","CurseForge":"","Modrinth":"worthy-food"},{"Id":11238,"Name":"更好的下界延续 (BetterNether Continuing)","CurseForge":"better-nether-continuation","Modrinth":"betternether-continuation"},{"Id":11239,"Name":"末地:生物群系扩展延续 (Stygian End Continuation)","CurseForge":"stygian-end-continuation","Modrinth":""},{"Id":11240,"Name":"技能槽 (Skill Slots)","CurseForge":"skill-slots","Modrinth":"skill-slots"},{"Id":11240,"Name":"技能槽 (Skill Slots)","CurseForge":"skill-slots-fabric","Modrinth":""},{"Id":11241,"Name":"","CurseForge":"novam-terram-continuation","Modrinth":""},{"Id":11242,"Name":"玉足 (Jade Feet)","CurseForge":"","Modrinth":"jade-feet"},{"Id":11244,"Name":"","CurseForge":"cutting-edge","Modrinth":""},{"Id":11245,"Name":"","CurseForge":"xp-from-harvest-reworked","Modrinth":"xp-from-harvest-reworked"},{"Id":11246,"Name":"","CurseForge":"papi-project","Modrinth":""},{"Id":11247,"Name":"事件视界 (EventHorizon)","CurseForge":"eventhorizon","Modrinth":""},{"Id":11248,"Name":"","CurseForge":"mob-options","Modrinth":""},{"Id":11249,"Name":"模组集 (Mod Sets)","CurseForge":"mod-sets","Modrinth":"mod-sets"},{"Id":11252,"Name":"","CurseForge":"hold-that-chunk","Modrinth":"hold-that-chunk"},{"Id":11253,"Name":"","CurseForge":"dark-matter","Modrinth":"dark-matter"},{"Id":11254,"Name":"偷狗 (Steal Dogs)","CurseForge":"","Modrinth":"steal_dogs"},{"Id":11255,"Name":"","CurseForge":"faster-random","Modrinth":"faster-random"},{"Id":11258,"Name":"","CurseForge":"simply-steel-continued","Modrinth":"simply-steel-continued"},{"Id":11259,"Name":"","CurseForge":"simple-corinthium","Modrinth":""},{"Id":11260,"Name":"","CurseForge":"chidori-origins-collection","Modrinth":"chidori-origins-collection"},{"Id":11261,"Name":"增强的P2P (EnhancedP2P)","CurseForge":"enhancedp2p","Modrinth":""},{"Id":11262,"Name":"自定义 DE 升级配方 (Custom DE Upgrade Recipes)","CurseForge":"custom-de-upgrade-recipes","Modrinth":""},{"Id":11263,"Name":"","CurseForge":"mode-switch","Modrinth":""},{"Id":11264,"Name":"","CurseForge":"better-clouds-forge","Modrinth":""},{"Id":11265,"Name":"","CurseForge":"better-clouds","Modrinth":"better-clouds"},{"Id":11266,"Name":"","CurseForge":"","Modrinth":"easymapdownload"},{"Id":11267,"Name":"动态难度 (Dynamic Difficulty)","CurseForge":"","Modrinth":"dynamic-difficulty"},{"Id":11268,"Name":"客户端合成 (Client Crafting)","CurseForge":"client-crafting","Modrinth":""},{"Id":11269,"Name":"","CurseForge":"anvil-repairing","Modrinth":"anvil-repairing"},{"Id":11270,"Name":"","CurseForge":"headcrabs","Modrinth":""},{"Id":11271,"Name":"KubeJS工业先锋 (KubeJS Industrial Foregoing)","CurseForge":"kubejs-industrial-foregoing","Modrinth":""},{"Id":11272,"Name":"幻想存有论 (Gensokyo Ontology)","CurseForge":"gensokyo-ontology","Modrinth":"gensokyo-ontology"},{"Id":11273,"Name":"配方书乐事 (Recipe Book Delight)","CurseForge":"recipe-book-delight","Modrinth":"recipe-book-delight"},{"Id":11274,"Name":"箱子漏斗 (Chest Hoppers)","CurseForge":"chest-hoppers","Modrinth":""},{"Id":11275,"Name":"","CurseForge":"","Modrinth":"gravy-delight"},{"Id":11276,"Name":"香芋乐事 (Ube's Delight)","CurseForge":"ubes-delight","Modrinth":"ubes-delight"},{"Id":11277,"Name":"加速火把非官方版 (Torcherino(Unofficial))","CurseForge":"torcherino-unofficial","Modrinth":"torcherino(unofficial)"},{"Id":11278,"Name":"","CurseForge":"more-bows-and-arrows","Modrinth":"more-bows-and-arrows"},{"Id":11279,"Name":"","CurseForge":"xp-shop","Modrinth":""},{"Id":11280,"Name":"","CurseForge":"acclaimed-origins","Modrinth":"acclaimed-origins"},{"Id":11281,"Name":"","CurseForge":"replanter","Modrinth":"replanter"},{"Id":11282,"Name":"","CurseForge":"zombie-infection-vaccine","Modrinth":""},{"Id":11283,"Name":"","CurseForge":"simple-achievements","Modrinth":""},{"Id":11284,"Name":"成就书 (Achievement Books)","CurseForge":"achievement-books","Modrinth":""},{"Id":11285,"Name":"村民附魔师 (VillagerEnchanter)","CurseForge":"villager-enchanter","Modrinth":""},{"Id":11286,"Name":"","CurseForge":"invocore-utility-mod","Modrinth":"invocore-utility-mod"},{"Id":11287,"Name":"","CurseForge":"saljus-quill","Modrinth":"saljus-quill"},{"Id":11289,"Name":"","CurseForge":"derelict","Modrinth":""},{"Id":11290,"Name":"","CurseForge":"","Modrinth":"charged-charms"},{"Id":11291,"Name":"自定义村民 (Custom Villagers)","CurseForge":"custom-villagers","Modrinth":""},{"Id":11292,"Name":"","CurseForge":"turtlematic","Modrinth":"turtlematic"},{"Id":11293,"Name":"","CurseForge":"remove-base-origins","Modrinth":""},{"Id":11294,"Name":"方块宝可梦乐事 (Cobblemon Delights)","CurseForge":"","Modrinth":"cobblemon-delights"},{"Id":11295,"Name":"异引定址 (Redirector)","CurseForge":"redirector","Modrinth":"redirector"},{"Id":11295,"Name":"异引定址 (Redirector)","CurseForge":"redirectionor-retro","Modrinth":""},{"Id":11296,"Name":"村民帽子修复 (Villager Mantle Fix)","CurseForge":"villager-mantle-fix","Modrinth":""},{"Id":11297,"Name":"","CurseForge":"rechiseled-create","Modrinth":"rechiseled-create"},{"Id":11298,"Name":"Xaero的地图增强 (XaeroPlus)","CurseForge":"xaeroplus","Modrinth":"xaeroplus"},{"Id":11299,"Name":"","CurseForge":"cosmetic-nametags","Modrinth":"cosmetic-nametags"},{"Id":11300,"Name":"","CurseForge":"thirdlife-rts","Modrinth":"thirdlife-rts"},{"Id":11301,"Name":"真正的和平模式 (Real Peaceful Mode)","CurseForge":"real-peaceful-mode","Modrinth":"real-peaceful-mode"},{"Id":11302,"Name":"","CurseForge":"niftyblocks","Modrinth":"niftyblocks"},{"Id":11303,"Name":"","CurseForge":"elfs-dark-dimension","Modrinth":""},{"Id":11304,"Name":"","CurseForge":"xaeros-minimap-world-map-waystones-compability","Modrinth":"xaeros-minimap-world-map-waystones-compatibility-forge"},{"Id":11305,"Name":"","CurseForge":"jagms-kiwis","Modrinth":"jagms-kiwis"},{"Id":11306,"Name":"","CurseForge":"","Modrinth":"masaadditions"},{"Id":11307,"Name":"","CurseForge":"improved-trident","Modrinth":"improved-trident"},{"Id":11308,"Name":"","CurseForge":"mystic-bows","Modrinth":""},{"Id":11309,"Name":"","CurseForge":"forgiving-world","Modrinth":""},{"Id":11310,"Name":"","CurseForge":"skill-cloaks","Modrinth":"skillcloaks"},{"Id":11311,"Name":"","CurseForge":"swordinthestone","Modrinth":"swordinthestone"},{"Id":11312,"Name":"懒人AE2补丁 (Lazy AE2 Patch)","CurseForge":"lazy-ae2-patch","Modrinth":""},{"Id":11314,"Name":"","CurseForge":"yamato-gun-mod","Modrinth":"yamato-gun"},{"Id":11316,"Name":"","CurseForge":"ars-mage-fight","Modrinth":""},{"Id":11318,"Name":"","CurseForge":"epic-sanji","Modrinth":""},{"Id":11319,"Name":"","CurseForge":"kubejs-entity-events-extension","Modrinth":""},{"Id":11320,"Name":"我的世界:地下城附魔 (MC Dungeons Enchanting)","CurseForge":"mc-dungeons-enchanting","Modrinth":"mc-dungeons-enchanting"},{"Id":11321,"Name":"REI自定义命令 (REI Custom Command)","CurseForge":"rei-custom-command","Modrinth":"rei-custom-command"},{"Id":11322,"Name":"铜心协力 (Copperative)","CurseForge":"copperative","Modrinth":"copperative"},{"Id":11323,"Name":"","CurseForge":"growable-storage-cells","Modrinth":""},{"Id":11324,"Name":"","CurseForge":"growable-cells-2","Modrinth":""},{"Id":11325,"Name":"","CurseForge":"cinchcraft","Modrinth":"cinchcraft"},{"Id":11326,"Name":"","CurseForge":"day-counter","Modrinth":"ag-day-counter"},{"Id":11327,"Name":"冷境 (MakeCold)","CurseForge":"makecold","Modrinth":""},{"Id":11330,"Name":"","CurseForge":"sculk-redstone-components","Modrinth":"sculkredstonecomponents"},{"Id":11331,"Name":"","CurseForge":"toggle-enchantments","Modrinth":"toggle-enchantments"},{"Id":11332,"Name":"","CurseForge":"unbreakable-enchantment-forge","Modrinth":"unbreakable-enchantment"},{"Id":11333,"Name":"沉浸式传送枪 (Immersive Portal Gun)","CurseForge":"immersive-portal-gun","Modrinth":"portal-gun"},{"Id":11334,"Name":"","CurseForge":"tac-craft-tactical-armor-pack","Modrinth":""},{"Id":11335,"Name":"灵巧双手 (Flexible Arms)","CurseForge":"","Modrinth":"flexible-arms"},{"Id":11336,"Name":"船只调整 (Boat Tweaks)","CurseForge":"boat-tweaks","Modrinth":"boat-tweaks"},{"Id":11337,"Name":"","CurseForge":"new-effect-descriptions","Modrinth":"effect-insights"},{"Id":11338,"Name":"","CurseForge":"diagonal-windows","Modrinth":"diagonal-windows"},{"Id":11340,"Name":"灾厄侵扰 (Illager Invasion)","CurseForge":"illager-invasion","Modrinth":"illager-invasion"},{"Id":11343,"Name":"","CurseForge":"","Modrinth":"touhou-origins-blessings"},{"Id":11345,"Name":"","CurseForge":"altorigingui","Modrinth":"altorigingui"},{"Id":11346,"Name":"动态的树:潘马斯农场2 - 果树附属 (Dynamic Trees Pam's Harvestcraft 2: Trees)","CurseForge":"dynamic-trees-pams-harvestcraft-2","Modrinth":""},{"Id":11347,"Name":"动态的树:魔法巫师附属 (Dynamic Trees - Hexerei)","CurseForge":"dynamic-trees-hexerei","Modrinth":""},{"Id":11348,"Name":"","CurseForge":"minium-stone","Modrinth":"minium-stone"},{"Id":11350,"Name":"","CurseForge":"","Modrinth":"fastrtp"},{"Id":11351,"Name":"科技装饰商 (Tech Decorators)","CurseForge":"tech-decorators","Modrinth":"tech-decorators"},{"Id":11352,"Name":"动态的树:新生魔艺附属 (Dynamic Trees - Ars Nouveau)","CurseForge":"dynamic-trees-ars-nouveau","Modrinth":""},{"Id":11354,"Name":"","CurseForge":"","Modrinth":"kazzmons-magecraft"},{"Id":11355,"Name":"高级收纳袋 (Metal Bundles)","CurseForge":"metal-bundles","Modrinth":"metal-bundles"},{"Id":11358,"Name":"潮汐小镇 (Tidal Towns)","CurseForge":"tidal-towns","Modrinth":""},{"Id":11359,"Name":"","CurseForge":"blossom-blade","Modrinth":""},{"Id":11361,"Name":"","CurseForge":"cute-kiwi-birds-new-animal","Modrinth":""},{"Id":11362,"Name":"","CurseForge":"moremobheads","Modrinth":"moremobheads"},{"Id":11363,"Name":"","CurseForge":"ouchies","Modrinth":"ouchies"},{"Id":11364,"Name":"","CurseForge":"","Modrinth":"traditional-asphalt"},{"Id":11365,"Name":"","CurseForge":"thaumic-boots","Modrinth":"thaumic_boots"},{"Id":11366,"Name":"","CurseForge":"carpeted-stairs","Modrinth":"carpeted-stairs"},{"Id":11367,"Name":"","CurseForge":"just-enough-archaeology","Modrinth":"just-enough-archaeology"},{"Id":11368,"Name":"","CurseForge":"bedrock_world","Modrinth":""},{"Id":11370,"Name":"世界预览 (World Preview)","CurseForge":"world-preview","Modrinth":"world-preview"},{"Id":11371,"Name":"","CurseForge":"not-enough-trinket-slots-nets","Modrinth":""},{"Id":11372,"Name":"玩具熊的五夜后宫 (The Five Nights at Freddy's Mod)","CurseForge":"the-five-nights-at-freddys-mod","Modrinth":"the-five-nights-at-freddys-mod"},{"Id":11373,"Name":"自定义LAN局域网联机服务器 (EasyLAN)","CurseForge":"easylan","Modrinth":"easylan"},{"Id":11374,"Name":"","CurseForge":"pelagic-prehistory","Modrinth":""},{"Id":11375,"Name":"","CurseForge":"minerally","Modrinth":"minerally"},{"Id":11376,"Name":"","CurseForge":"better-jukeboxes","Modrinth":""},{"Id":11377,"Name":"","CurseForge":"patboxs-brewery","Modrinth":"brewery"},{"Id":11379,"Name":"","CurseForge":"stackable-stew-and-soup","Modrinth":""},{"Id":11380,"Name":"","CurseForge":"mindful-darkness","Modrinth":"mindful-darkness"},{"Id":11381,"Name":"","CurseForge":"","Modrinth":"sbet"},{"Id":11382,"Name":"","CurseForge":"nature-arise","Modrinth":"nature-arise"},{"Id":11383,"Name":"压缩袋 (CompressionBag)","CurseForge":"compression-bag","Modrinth":""},{"Id":11384,"Name":"","CurseForge":"more-beautiful-torches","Modrinth":"more-beautiful-torches"},{"Id":11385,"Name":"","CurseForge":"quality-crops","Modrinth":""},{"Id":11386,"Name":"","CurseForge":"","Modrinth":"individual-keep-inventory"},{"Id":11387,"Name":"","CurseForge":"permanent-sponges","Modrinth":"permanent-sponges"},{"Id":11388,"Name":"","CurseForge":"hang-glider","Modrinth":"hang-glider"},{"Id":11389,"Name":"","CurseForge":"","Modrinth":"auto-twerk"},{"Id":11390,"Name":"","CurseForge":"block-beams","Modrinth":"block-beams"},{"Id":11391,"Name":"","CurseForge":"adorabuild-structures","Modrinth":"adorabuild-structures"},{"Id":11393,"Name":"","CurseForge":"moogs-end-structures","Modrinth":"mes-moogs-end-structures"},{"Id":11394,"Name":"","CurseForge":"","Modrinth":"brew-guide"},{"Id":11395,"Name":"","CurseForge":"one-click-crafting-fabric","Modrinth":"oneclickcrafting"},{"Id":11396,"Name":"","CurseForge":"","Modrinth":"genshin-ui"},{"Id":11397,"Name":"","CurseForge":"fenomena-structures","Modrinth":"phenomena-structures"},{"Id":11398,"Name":"","CurseForge":"first-join-message","Modrinth":"first-join-message"},{"Id":11399,"Name":"","CurseForge":"expansive-weaponry","Modrinth":""},{"Id":11400,"Name":"","CurseForge":"wabi-sabi-structures-forge","Modrinth":""},{"Id":11400,"Name":"","CurseForge":"wabi-sabi-structures-fabric","Modrinth":""},{"Id":11401,"Name":"","CurseForge":"jobsaddon","Modrinth":"jobsaddon"},{"Id":11402,"Name":"","CurseForge":"","Modrinth":"partyaddon"},{"Id":11404,"Name":"加载背景 (Loading Backgrounds)","CurseForge":"loading-backgrounds","Modrinth":"loading-backgrounds"},{"Id":11405,"Name":"料理乐事 (Cuisine Delight)","CurseForge":"cuisine-delight","Modrinth":"cuisine-delight"},{"Id":11406,"Name":"","CurseForge":"iron-bookshelves","Modrinth":"iron-bookshelves"},{"Id":11407,"Name":"","CurseForge":"","Modrinth":"dimensional-expansion"},{"Id":11408,"Name":"","CurseForge":"danger-close","Modrinth":"danger-close"},{"Id":11409,"Name":"","CurseForge":"hardcore-wither","Modrinth":""},{"Id":11410,"Name":"","CurseForge":"get-off-my-lawn-reserved","Modrinth":"goml-reserved"},{"Id":11412,"Name":"","CurseForge":"dangerousstonecutter","Modrinth":"dangerousstonecutter"},{"Id":11413,"Name":"","CurseForge":"normal-damage","Modrinth":"normal-damage"},{"Id":11414,"Name":"","CurseForge":"ftb-xmod-compat","Modrinth":""},{"Id":11415,"Name":"蟹农乐事 (Crabber's Delight)","CurseForge":"crabbers-delight","Modrinth":"crabbers-delight"},{"Id":11416,"Name":"","CurseForge":"slot-cycler","Modrinth":"slot-cycler"},{"Id":11417,"Name":"","CurseForge":"resource-pack-overrides","Modrinth":"resource-pack-overrides"},{"Id":11418,"Name":"动物重生 (Respawning Animals)","CurseForge":"respawning-animals","Modrinth":"respawning-animals"},{"Id":11419,"Name":"","CurseForge":"arcane-lanterns","Modrinth":"arcane-lanterns"},{"Id":11421,"Name":"","CurseForge":"crashma","Modrinth":"crashma"},{"Id":11423,"Name":"","CurseForge":"blackwolf-library","Modrinth":"blackwolf-library"},{"Id":11423,"Name":"","CurseForge":"blackwolf-library-fabric","Modrinth":""},{"Id":11424,"Name":"","CurseForge":"blues-scape-and-run-bosses","Modrinth":""},{"Id":11425,"Name":"","CurseForge":"gigeresque","Modrinth":"gigeresque"},{"Id":11426,"Name":"","CurseForge":"lookaround","Modrinth":""},{"Id":11427,"Name":"","CurseForge":"projectileimmunityfix","Modrinth":""},{"Id":11428,"Name":"","CurseForge":"","Modrinth":"betterzoom"},{"Id":11429,"Name":"","CurseForge":"player-visibility","Modrinth":"player-visibility"},{"Id":11430,"Name":"","CurseForge":"bag-of-holding-forge","Modrinth":"bag-of-holding"},{"Id":11434,"Name":"","CurseForge":"fish-of-thieves","Modrinth":"fish-of-thieves"},{"Id":11435,"Name":"","CurseForge":"qualitys-delight","Modrinth":""},{"Id":11436,"Name":"","CurseForge":"arrows-info","Modrinth":""},{"Id":11437,"Name":"","CurseForge":"godly-vampirism","Modrinth":""},{"Id":11438,"Name":"","CurseForge":"itemlocks","Modrinth":"itemlocks"},{"Id":11439,"Name":"选择方块专业版 (Pick Block Pro)","CurseForge":"pick-block-pro","Modrinth":"pick-block-pro"},{"Id":11440,"Name":"","CurseForge":"skin-and-bones","Modrinth":""},{"Id":11441,"Name":"","CurseForge":"pet-armor","Modrinth":"pet-armor"},{"Id":11442,"Name":"Max的装饰 (Max's deco)","CurseForge":"maxs-deco","Modrinth":""},{"Id":11443,"Name":"更多矿物粒 (More Nugget)","CurseForge":"more-nugget","Modrinth":"more-nugget"},{"Id":11443,"Name":"更多矿物粒 (More Nugget) - Farbic,","CurseForge":"more-nugget-fabric","Modrinth":""},{"Id":11444,"Name":"","CurseForge":"dual-swords","Modrinth":"dual-swords"},{"Id":11445,"Name":"","CurseForge":"organizable-play-screens","Modrinth":"organizable-play-screens"},{"Id":11446,"Name":"","CurseForge":"labelling-containers","Modrinth":"labelling-containers"},{"Id":11447,"Name":"","CurseForge":"inventory-pause-forge","Modrinth":"inventory-pause-forge"},{"Id":11448,"Name":"","CurseForge":"ready-player-fun","Modrinth":"ready-player-fun"},{"Id":11449,"Name":"","CurseForge":"condensed-creative","Modrinth":"condensed-creative"},{"Id":11450,"Name":"","CurseForge":"leaves-us-in-peace","Modrinth":"leaves-us-in-peace"},{"Id":11451,"Name":"","CurseForge":"yellow-snow","Modrinth":"yellow-snow"},{"Id":11452,"Name":"","CurseForge":"no-tnt-griefing","Modrinth":"no-tnt-griefing"},{"Id":11453,"Name":"","CurseForge":"monster-plus","Modrinth":"monsterplus"},{"Id":11454,"Name":"","CurseForge":"ilmusu-enchantments","Modrinth":"ilmusuenchantments"},{"Id":11456,"Name":"","CurseForge":"desired-servers","Modrinth":"desired-servers"},{"Id":11457,"Name":"","CurseForge":"attributizer","Modrinth":"attributizer"},{"Id":11458,"Name":"反应炼金术 (Reactive Alchemy)","CurseForge":"reactive","Modrinth":"reactive"},{"Id":11459,"Name":"","CurseForge":"simple-deepslate","Modrinth":""},{"Id":11460,"Name":"","CurseForge":"minunrpg","Modrinth":""},{"Id":11461,"Name":"","CurseForge":"more-sheep-wools","Modrinth":""},{"Id":11462,"Name":"祭典乐事 (Maturi Delight)","CurseForge":"maturi-delight","Modrinth":"maturi-delight"},{"Id":11464,"Name":"","CurseForge":"forgified-fabric-api","Modrinth":"forgified-fabric-api"},{"Id":11465,"Name":"","CurseForge":"artisanat","Modrinth":"artisanat"},{"Id":11466,"Name":"","CurseForge":"devmode","Modrinth":""},{"Id":11467,"Name":"","CurseForge":"better-trims","Modrinth":"bettertrims"},{"Id":11468,"Name":"","CurseForge":"","Modrinth":"doggo-mod-overhauled"},{"Id":11469,"Name":"","CurseForge":"traders-nightmare","Modrinth":""},{"Id":11470,"Name":"","CurseForge":"command-block-ide","Modrinth":"command-block-ide"},{"Id":11472,"Name":"","CurseForge":"green-thing-mod","Modrinth":""},{"Id":11473,"Name":"","CurseForge":"lmft","Modrinth":"lmft"},{"Id":11474,"Name":"","CurseForge":"peripheralium","Modrinth":"peripheralium"},{"Id":11475,"Name":"资源切换器 (ResourceSwitcher)","CurseForge":"resource-switcher","Modrinth":"resource-switcher"},{"Id":11476,"Name":"","CurseForge":"serializationisbad","Modrinth":"serializationisbad"},{"Id":11477,"Name":"","CurseForge":"clutter","Modrinth":"clutter"},{"Id":11478,"Name":"","CurseForge":"no-enchantment-cap-1-12-2-backport","Modrinth":""},{"Id":11479,"Name":"劫后余生 (Surviving The Aftermath)","CurseForge":"survivingtheaftermath","Modrinth":""},{"Id":11480,"Name":"","CurseForge":"dimension-viewer","Modrinth":"dimension-viewer"},{"Id":11481,"Name":"更多食物 (More Food)","CurseForge":"foodmodmorefood","Modrinth":"more-food"},{"Id":11482,"Name":"","CurseForge":"tfcgyres-orehints","Modrinth":""},{"Id":11483,"Name":"","CurseForge":"badstdout","Modrinth":"badstdout"},{"Id":11485,"Name":"","CurseForge":"multiworld-mod","Modrinth":"multiworld"},{"Id":11486,"Name":"","CurseForge":"miaooo","Modrinth":""},{"Id":11487,"Name":"","CurseForge":"pipeblocker","Modrinth":"pipeblocker"},{"Id":11488,"Name":"","CurseForge":"moa-decor-lights","Modrinth":""},{"Id":11489,"Name":"","CurseForge":"craft-saddles-forge-1-16-5","Modrinth":"craftsaddles"},{"Id":11491,"Name":"","CurseForge":"","Modrinth":"elytra-fix"},{"Id":11492,"Name":"","CurseForge":"","Modrinth":"ho-library"},{"Id":11494,"Name":"雨中冒险 (Risk of Rain Mod)","CurseForge":"riskofrainmod","Modrinth":"riskofrain-mobs"},{"Id":11496,"Name":"","CurseForge":"baddie-mobs-uwu","Modrinth":""},{"Id":11497,"Name":"","CurseForge":"beacons-revisioned","Modrinth":"beacons-revisioned"},{"Id":11498,"Name":"","CurseForge":"silence-mobs","Modrinth":"silence-mobs"},{"Id":11500,"Name":"","CurseForge":"utilitix","Modrinth":"utilitix"},{"Id":11502,"Name":"","CurseForge":"tiny-coal","Modrinth":"tiny-coal"},{"Id":11503,"Name":"","CurseForge":"replaymod-for-forge-reborn","Modrinth":""},{"Id":11504,"Name":"","CurseForge":"flib","Modrinth":"flib"},{"Id":11506,"Name":"","CurseForge":"copper-revisioned","Modrinth":"copper-revisioned"},{"Id":11507,"Name":"冻鱼 (FrozenFish)","CurseForge":"frozen-fish","Modrinth":""},{"Id":11508,"Name":"","CurseForge":"fine-tuned-calibration","Modrinth":"finetunedcalibration"},{"Id":11509,"Name":"","CurseForge":"third-person-maps","Modrinth":"third-person-maps"},{"Id":11510,"Name":"","CurseForge":"carpet-minitweaks","Modrinth":"minitweaks"},{"Id":11512,"Name":"","CurseForge":"","Modrinth":"time-in-a-bottle-universal"},{"Id":11513,"Name":"","CurseForge":"seared-ladder-backport","Modrinth":"seared-ladder-(backport)"},{"Id":11514,"Name":"","CurseForge":"wall-jumped","Modrinth":"wall-jumped"},{"Id":11515,"Name":"","CurseForge":"red-core","Modrinth":"red-core"},{"Id":11517,"Name":"","CurseForge":"record-days-survived","Modrinth":"record-days-survived"},{"Id":11518,"Name":"","CurseForge":"veinminer-companion","Modrinth":""},{"Id":11519,"Name":"我要骑着你飞 (Flightem)","CurseForge":"flightem","Modrinth":""},{"Id":11520,"Name":"","CurseForge":"","Modrinth":"leashable-players"},{"Id":11521,"Name":"","CurseForge":"snowballs-freeze-mobs","Modrinth":"snowballs-freeze-mobs"},{"Id":11522,"Name":"","CurseForge":"guinea-pigs","Modrinth":"guineapigs"},{"Id":11525,"Name":"","CurseForge":"vault-research","Modrinth":""},{"Id":11526,"Name":"","CurseForge":"the-chaser","Modrinth":""},{"Id":11527,"Name":"","CurseForge":"bandaging","Modrinth":""},{"Id":11528,"Name":"","CurseForge":"enchanted-charms","Modrinth":"enchanted-charms"},{"Id":11529,"Name":"","CurseForge":"nether-api","Modrinth":"nether-api"},{"Id":11530,"Name":"","CurseForge":"mother-silverfish","Modrinth":""},{"Id":11531,"Name":"","CurseForge":"mcretector","Modrinth":"mcretector"},{"Id":11533,"Name":"","CurseForge":"little-botanics","Modrinth":""},{"Id":11534,"Name":"AE2扩展 (ExtendedAE)","CurseForge":"ex-pattern-provider","Modrinth":"extended-ae"},{"Id":11535,"Name":"","CurseForge":"","Modrinth":"integrated-circuit"},{"Id":11536,"Name":"","CurseForge":"creative-disk","Modrinth":""},{"Id":11537,"Name":"","CurseForge":"engineers-construct","Modrinth":""},{"Id":11538,"Name":"假人映射 (Botools)","CurseForge":"","Modrinth":"botools"},{"Id":11539,"Name":"","CurseForge":"witch-mobility","Modrinth":""},{"Id":11540,"Name":"","CurseForge":"gravestones-die-classy","Modrinth":""},{"Id":11544,"Name":"","CurseForge":"","Modrinth":"pebbles-begone"},{"Id":11545,"Name":"","CurseForge":"eternal-eats","Modrinth":""},{"Id":11546,"Name":"僵尸游戏 (Zombie Game)","CurseForge":"zombiegame","Modrinth":""},{"Id":11547,"Name":"Effect Overhaul / Lucid Library - ,已被作者继任顶替","CurseForge":"effect-overhaul","Modrinth":""},{"Id":11547,"Name":"Effect Overhaul / Lucid Library - ,已被作者继任顶替","CurseForge":"lucid-library","Modrinth":""},{"Id":11548,"Name":"随意乐事 (Casualness Delight)","CurseForge":"casualness-delight","Modrinth":""},{"Id":11548,"Name":"随意乐事 (Casualness Delight) - 仅包含0.4及以下","CurseForge":"","Modrinth":"casualness-delight"},{"Id":11550,"Name":"","CurseForge":"eidolon-rebrewed","Modrinth":"eidolon-rebrewed"},{"Id":11551,"Name":"紫颂果味随机传送 (Fruity Random Teleport)","CurseForge":"fruity-random-teleport","Modrinth":""},{"Id":11552,"Name":"管道专家 2000 (Pipe Master 2000 / Pipe Googles)","CurseForge":"pipe-master-2000","Modrinth":""},{"Id":11553,"Name":"命令宏 (Command Macros)","CurseForge":"command-macros","Modrinth":"command-macros"},{"Id":11554,"Name":"上海地铁装饰组件 (MTR Shanghai Wetro Addon)","CurseForge":"","Modrinth":"shwetro"},{"Id":11555,"Name":"方块建模 (Yuushya Modelling)","CurseForge":"yuushya-modelling","Modrinth":"yuushya-modelling"},{"Id":11556,"Name":"战术医疗 (Tactical Aid)","CurseForge":"tactical-aid","Modrinth":"tactical-aid"},{"Id":11557,"Name":"","CurseForge":"","Modrinth":"clear-enchanting"},{"Id":11558,"Name":"","CurseForge":"fishing-bobber-detector","Modrinth":"create-fishing-bobber-detector"},{"Id":11559,"Name":"村民折扣叠加 (Unfix MC-181190)","CurseForge":"","Modrinth":"unfix-mc-181190"},{"Id":11560,"Name":"","CurseForge":"create-balanced-flight","Modrinth":""},{"Id":11561,"Name":"","CurseForge":"brewin-and-chewin-remastered","Modrinth":""},{"Id":11562,"Name":"","CurseForge":"cupboard","Modrinth":""},{"Id":11563,"Name":"","CurseForge":"mcinstance-loader","Modrinth":"mcinstance-loader"},{"Id":11564,"Name":"打窝 (Pre Fish Feed)","CurseForge":"pre-fish-feed","Modrinth":""},{"Id":11565,"Name":"","CurseForge":"armor-trim-item-fix","Modrinth":"armor-trim-item-fix"},{"Id":11566,"Name":"","CurseForge":"waffles-moss","Modrinth":"waffles-moss"},{"Id":11567,"Name":"","CurseForge":"delightful-cuisine-for-woodheads","Modrinth":""},{"Id":11568,"Name":"旷野之息高塔 : 再重制 (Towers of the Wild Modded)","CurseForge":"towers-of-the-wild-modded","Modrinth":"totw-modded"},{"Id":11570,"Name":"","CurseForge":"waffles-terracotta-plaster","Modrinth":"waffles-terracotta-plaster"},{"Id":11571,"Name":"","CurseForge":"watermedia","Modrinth":"watermedia"},{"Id":11572,"Name":"","CurseForge":"","Modrinth":"inverse-phantoms"},{"Id":11573,"Name":"","CurseForge":"","Modrinth":"cactus-storage"},{"Id":11575,"Name":"","CurseForge":"etcetera","Modrinth":""},{"Id":11578,"Name":"机械动力:装食 (Create: Garnished)","CurseForge":"garnished","Modrinth":"create-garnished"},{"Id":11579,"Name":"","CurseForge":"just-a-well","Modrinth":"just-a-well"},{"Id":11580,"Name":"","CurseForge":"siberiamod","Modrinth":""},{"Id":11581,"Name":"空之翼 (SpaceTime)","CurseForge":"spacetime","Modrinth":""},{"Id":11585,"Name":"","CurseForge":"grappling-hook-restitched","Modrinth":"grappling-hook-mod-fabric"},{"Id":11586,"Name":"","CurseForge":"","Modrinth":"minceraft-title"},{"Id":11587,"Name":"","CurseForge":"mob-animations","Modrinth":""},{"Id":11588,"Name":"","CurseForge":"platter","Modrinth":"platter"},{"Id":11589,"Name":"","CurseForge":"i-want-that-back","Modrinth":""},{"Id":11590,"Name":"","CurseForge":"presence-not-required","Modrinth":""},{"Id":11591,"Name":"","CurseForge":"wnboi","Modrinth":"wnboi"},{"Id":11593,"Name":"","CurseForge":"","Modrinth":"biome-compass"},{"Id":11594,"Name":"","CurseForge":"eye-collector-mod","Modrinth":""},{"Id":11596,"Name":"","CurseForge":"cozy-foods-milk-tea","Modrinth":""},{"Id":11597,"Name":"","CurseForge":"opolis-miners","Modrinth":"opolis-miners"},{"Id":11598,"Name":"","CurseForge":"netherite-but-cheaper","Modrinth":""},{"Id":11599,"Name":"","CurseForge":"","Modrinth":"fabric-hammers"},{"Id":11600,"Name":"物品陈列 (Items Displayed)","CurseForge":"items-displayed-fabric","Modrinth":"items-displayed"},{"Id":11600,"Name":"物品陈列 (Items Displayed)","CurseForge":"items-displayed-forge","Modrinth":"items-displayed-forge"},{"Id":11601,"Name":"","CurseForge":"wood-converter","Modrinth":""},{"Id":11602,"Name":"","CurseForge":"hammer-mod","Modrinth":""},{"Id":11604,"Name":"","CurseForge":"realisticsleepfabric","Modrinth":"stevesrealisticsleep"},{"Id":11605,"Name":"","CurseForge":"zombies-actually-siege","Modrinth":""},{"Id":11606,"Name":"咒法凝浆 (Hex Gloop)","CurseForge":"hex-gloop","Modrinth":"hexgloop"},{"Id":11607,"Name":"","CurseForge":"the-void","Modrinth":""},{"Id":11608,"Name":"","CurseForge":"the-shadowlands","Modrinth":""},{"Id":11609,"Name":"","CurseForge":"bloxys-structures","Modrinth":"bloxys-structures"},{"Id":11610,"Name":"","CurseForge":"enhanced-hordes","Modrinth":""},{"Id":11611,"Name":"","CurseForge":"niftycarts","Modrinth":"niftycarts"},{"Id":11612,"Name":"","CurseForge":"wither-dimension-whitelist","Modrinth":""},{"Id":11613,"Name":"","CurseForge":"","Modrinth":"hexlink"},{"Id":11615,"Name":"有用的食物 重生 (UsefulFood Reborn)","CurseForge":"usefulfood-reborn","Modrinth":"usefulfood-reborn"},{"Id":11615,"Name":"有用的食物 重生 (UsefulFood Reborn)","CurseForge":"usefulfood-community","Modrinth":""},{"Id":11616,"Name":"","CurseForge":"ancient-warfare-2-tweaked","Modrinth":"ancient-warfare-2-tweaked"},{"Id":11617,"Name":"监禁 (Cuffed)","CurseForge":"cuffed","Modrinth":"cuffed"},{"Id":11618,"Name":"","CurseForge":"rockn-roller","Modrinth":"rocknroller"},{"Id":11619,"Name":"","CurseForge":"bodies-bodies","Modrinth":"bodies-bodies"},{"Id":11620,"Name":"药水粒子包 (Potion Particle Pack)","CurseForge":"potionparticlepack","Modrinth":"potionparticlepack"},{"Id":11621,"Name":"","CurseForge":"deep-blood-evolution","Modrinth":""},{"Id":11622,"Name":"更好的马 (Better Horses Mod)","CurseForge":"better-horses-mod","Modrinth":""},{"Id":11623,"Name":"药水捆 (Potion Bundles)","CurseForge":"potion-bundles","Modrinth":"potion-bundles"},{"Id":11624,"Name":"","CurseForge":"kofi-table","Modrinth":"kofi-table"},{"Id":11625,"Name":"","CurseForge":"better-mcdonalds-mod","Modrinth":"better-mcdonalds-mod"},{"Id":11626,"Name":"","CurseForge":"","Modrinth":"itemframesplus"},{"Id":11627,"Name":"信雅互联 (Sinytra Connector)","CurseForge":"sinytra-connector","Modrinth":"connector"},{"Id":11628,"Name":"","CurseForge":"noclip","Modrinth":"noclip"},{"Id":11629,"Name":"","CurseForge":"diamond-in-the-rough-as-in-obsidian","Modrinth":"diamond-in-the-rough"},{"Id":11630,"Name":"","CurseForge":"factioncraft","Modrinth":"factioncraft"},{"Id":11631,"Name":"","CurseForge":"better-ender","Modrinth":""},{"Id":11632,"Name":"","CurseForge":"mlmanimator","Modrinth":""},{"Id":11633,"Name":"","CurseForge":"playlist","Modrinth":"playlist"},{"Id":11634,"Name":"","CurseForge":"","Modrinth":"villagers-far-from-home"},{"Id":11635,"Name":"异道修仙 (CultivationCraft)","CurseForge":"cultivationcraft","Modrinth":""},{"Id":11637,"Name":"","CurseForge":"","Modrinth":"carpet-las-addition"},{"Id":11638,"Name":"我是谁? (Who am i?)","CurseForge":"whoam-i","Modrinth":"whoami"},{"Id":11639,"Name":"","CurseForge":"verticality-hotbar","Modrinth":"verticality"},{"Id":11640,"Name":"","CurseForge":"the-slender-man","Modrinth":""},{"Id":11641,"Name":"","CurseForge":"automodpack","Modrinth":"automodpack"},{"Id":11642,"Name":"","CurseForge":"bella-quilt","Modrinth":"bella"},{"Id":11643,"Name":"","CurseForge":"simply-skills","Modrinth":"simply-skills"},{"Id":11647,"Name":"","CurseForge":"cctv-craft","Modrinth":"cctvcraft"},{"Id":11648,"Name":"重铸家具 (Re:Deco)","CurseForge":"redeco","Modrinth":"redeco"},{"Id":11649,"Name":"","CurseForge":"pocket-storage","Modrinth":""},{"Id":11650,"Name":"动画化玩家 (Animated Player Mod)","CurseForge":"animated-player-mod","Modrinth":""},{"Id":11651,"Name":"","CurseForge":"its-thirst","Modrinth":"its-thirst"},{"Id":11652,"Name":"","CurseForge":"infernal-damage-indicators","Modrinth":""},{"Id":11654,"Name":"","CurseForge":"","Modrinth":"just-enough-speed"},{"Id":11655,"Name":"soul-like armors: medieval weapons & armors - 旧版,","CurseForge":"remion","Modrinth":""},{"Id":11655,"Name":"soul-like armors: medieval weapons & armors - 重置版,","CurseForge":"soul-like-armors-medieval-weapons-armors","Modrinth":""},{"Id":11656,"Name":"","CurseForge":"","Modrinth":"elytratime"},{"Id":11658,"Name":"","CurseForge":"squaremap","Modrinth":""},{"Id":11659,"Name":"","CurseForge":"roots-classic-fabric","Modrinth":""},{"Id":11660,"Name":"","CurseForge":"justenoughbreeding","Modrinth":"justenoughbreeding"},{"Id":11661,"Name":"","CurseForge":"simple-drills","Modrinth":"simple-drills"},{"Id":11662,"Name":"","CurseForge":"peculiarpieces","Modrinth":"peculiarpieces"},{"Id":11663,"Name":"战利品阶段 (SDM Loot Stages)","CurseForge":"sdm-loot-stages","Modrinth":"loot-stages"},{"Id":11664,"Name":"玩家阶段 (Player Stages)","CurseForge":"player-stages","Modrinth":""},{"Id":11665,"Name":"生成阶段 (Generation Stages)","CurseForge":"generation-stages","Modrinth":""},{"Id":11666,"Name":"黑暗魔艺 - 无文件 (Ars Oscura)","CurseForge":"ars-oscura","Modrinth":""},{"Id":11666,"Name":"黑暗魔艺 (Ars Oscura)","CurseForge":"ars-ocultas","Modrinth":"ars-ocultas"},{"Id":11667,"Name":"服务器区块缓存-重铸 (Bobby Reforged)","CurseForge":"bobby-reforged","Modrinth":""},{"Id":11668,"Name":"","CurseForge":"shut-up-gl-error","Modrinth":"shut-up-gl-error"},{"Id":11669,"Name":"","CurseForge":"no-spider","Modrinth":"no-spider"},{"Id":11670,"Name":"","CurseForge":"terracart-reloaded","Modrinth":"terracart-reloaded"},{"Id":11671,"Name":"","CurseForge":"dme","Modrinth":""},{"Id":11672,"Name":"果栈丰萦 (Fruit Stack)","CurseForge":"fruit-stack","Modrinth":"fruit-stack"},{"Id":11673,"Name":"","CurseForge":"gregtech-drawers","Modrinth":""},{"Id":11674,"Name":"海鬣蜥 (Marine Iguana)","CurseForge":"marine-iguana","Modrinth":""},{"Id":11675,"Name":"","CurseForge":"stonks","Modrinth":"stonks"},{"Id":11676,"Name":"泥土TNT (DirTNT)","CurseForge":"dirtnt","Modrinth":"dirtnt"},{"Id":11677,"Name":"可装备的暮色森林符咒 (Equipable Twilight Forest Charms)","CurseForge":"equipable-twilight-forest-charms-tfc","Modrinth":""},{"Id":11678,"Name":"","CurseForge":"buriedwrecks","Modrinth":"buried-wrecks"},{"Id":11679,"Name":"Zaps 转换器 (Zaps Convertor)","CurseForge":"zapsconverter","Modrinth":""},{"Id":11680,"Name":"","CurseForge":"amethyst-update","Modrinth":""},{"Id":11681,"Name":"天使方块 (Angel Block)","CurseForge":"angel-block","Modrinth":""},{"Id":11682,"Name":"","CurseForge":"angel-block-renewed","Modrinth":"angel-block-renewed"},{"Id":11683,"Name":"","CurseForge":"da-bomb","Modrinth":"da-bomb"},{"Id":11684,"Name":"","CurseForge":"quickstack","Modrinth":""},{"Id":11685,"Name":"黑洞储存 (Black Hole Storage)","CurseForge":"","Modrinth":"bhs"},{"Id":11686,"Name":"","CurseForge":"collectors-album","Modrinth":"collectors-album"},{"Id":11687,"Name":"","CurseForge":"head-name-fix","Modrinth":"headfix"},{"Id":11688,"Name":"异趣乐事/宿敌乐事 (Unusual Delight) (Hostile Delight)","CurseForge":"hostile-delight","Modrinth":"unusualdelight"},{"Id":11689,"Name":"ViveCraft兼容 (ViveCraft Compat)","CurseForge":"vivecraft-compat","Modrinth":"vivecraft-compat"},{"Id":11690,"Name":"","CurseForge":"wildlife-expanded-skunk","Modrinth":"wildlife-expanded-skunk"},{"Id":11691,"Name":"","CurseForge":"keepheadnames","Modrinth":"keepheadnames"},{"Id":11692,"Name":"","CurseForge":"ydms-fennec-fox","Modrinth":"ydms-fennec-fox"},{"Id":11693,"Name":"","CurseForge":"ydms-ostrich","Modrinth":"ydms-ostrich"},{"Id":11694,"Name":"","CurseForge":"curse-of-the-warden","Modrinth":"curse-of-the-warden"},{"Id":11695,"Name":"聊天动画 (ChatAnimation)","CurseForge":"chatanimation","Modrinth":"chatanimation"},{"Id":11696,"Name":"","CurseForge":"mobvote-rascal","Modrinth":"rascal"},{"Id":11697,"Name":"","CurseForge":"spotiforge","Modrinth":""},{"Id":11698,"Name":"","CurseForge":"indypets","Modrinth":"indypets"},{"Id":11699,"Name":"","CurseForge":"minecraft-legends-golems","Modrinth":""},{"Id":11700,"Name":"","CurseForge":"create-sandpaper-overhaul","Modrinth":"create-sandpaper-overhaul"},{"Id":11701,"Name":"","CurseForge":"vintage-gregtech","Modrinth":""},{"Id":11702,"Name":"","CurseForge":"ydms-vulture","Modrinth":"ydms-vulture"},{"Id":11704,"Name":"","CurseForge":"locked-slots","Modrinth":""},{"Id":11705,"Name":"","CurseForge":"wildlife-expanded-snakes","Modrinth":"wildlife-expanded-snakes"},{"Id":11706,"Name":"","CurseForge":"jline-for-minecraft-dedicated-server","Modrinth":"jline4mcdsrv"},{"Id":11707,"Name":"","CurseForge":"blocklingcollection","Modrinth":""},{"Id":11708,"Name":"","CurseForge":"trenzalore","Modrinth":""},{"Id":11713,"Name":"","CurseForge":"creo-lib","Modrinth":"creo-lib"},{"Id":11714,"Name":"","CurseForge":"highlight","Modrinth":"highlight"},{"Id":11715,"Name":"","CurseForge":"lost-libraries","Modrinth":""},{"Id":11716,"Name":"","CurseForge":"","Modrinth":"plant-pearl"},{"Id":11718,"Name":"","CurseForge":"sensible-sleep","Modrinth":""},{"Id":11719,"Name":"","CurseForge":"","Modrinth":"hollows-tweaks"},{"Id":11720,"Name":"","CurseForge":"eastward-journeys","Modrinth":"eastward-journeys"},{"Id":11722,"Name":"","CurseForge":"omotions","Modrinth":"omotions"},{"Id":11723,"Name":"","CurseForge":"invisible-frames","Modrinth":""},{"Id":11724,"Name":"","CurseForge":"ultimatebackportmod","Modrinth":"ubm"},{"Id":11727,"Name":"","CurseForge":"true-ending","Modrinth":""},{"Id":11728,"Name":"附魔排序 (Sorted Enchants)","CurseForge":"","Modrinth":"sorted-enchants"},{"Id":11729,"Name":"","CurseForge":"constructs-armory-1-18-2-port","Modrinth":"construct-armory-updated"},{"Id":11731,"Name":"","CurseForge":"","Modrinth":"videotape"},{"Id":11732,"Name":"","CurseForge":"","Modrinth":"enchantmenttweaker"},{"Id":11733,"Name":"","CurseForge":"let-me-sleep","Modrinth":""},{"Id":11734,"Name":"","CurseForge":"forge-tooltip-texts-scroller","Modrinth":""},{"Id":11734,"Name":"","CurseForge":"fabric-tooltip-texts-scroller","Modrinth":""},{"Id":11735,"Name":"","CurseForge":"well-behaved-mobs","Modrinth":""},{"Id":11738,"Name":"","CurseForge":"ancient-realms","Modrinth":""},{"Id":11739,"Name":"","CurseForge":"","Modrinth":"remove-terralith-intro-message"},{"Id":11740,"Name":"","CurseForge":"gambling-style","Modrinth":""},{"Id":11741,"Name":"","CurseForge":"animated-recipe-book","Modrinth":""},{"Id":11743,"Name":"","CurseForge":"","Modrinth":"packetunlimited"},{"Id":11744,"Name":"","CurseForge":"bloxys-bosses","Modrinth":""},{"Id":11745,"Name":"","CurseForge":"more-bows-cj","Modrinth":""},{"Id":11746,"Name":"雪球可以击退玩家 (Snowballs Hit Players)","CurseForge":"","Modrinth":"snowballs-hit-players"},{"Id":11747,"Name":"Tectonic:超多生物群系兼容 (Tectonic + Biomes O' Plenty compat)","CurseForge":"tectonic-bop","Modrinth":""},{"Id":11748,"Name":"","CurseForge":"tech-enhanced","Modrinth":""},{"Id":11749,"Name":"","CurseForge":"gilded-netherite-cj-edition","Modrinth":""},{"Id":11750,"Name":"","CurseForge":"enderite-cj-edition","Modrinth":"enderite-cj-edition"},{"Id":11752,"Name":"","CurseForge":"dangerous-oceans","Modrinth":""},{"Id":11753,"Name":"MC-249136 修复 (MC-249136 Fix)","CurseForge":"","Modrinth":"mc-249136-fix"},{"Id":11754,"Name":"","CurseForge":"","Modrinth":"featherfallflying"},{"Id":11755,"Name":"","CurseForge":"","Modrinth":"lidar"},{"Id":11756,"Name":"","CurseForge":"anvil-never-too-expensive","Modrinth":"ante"},{"Id":11757,"Name":"弩 (Crossbow)","CurseForge":"crossbow-mod","Modrinth":"crossbow"},{"Id":11758,"Name":"","CurseForge":"","Modrinth":"place-item"},{"Id":11760,"Name":"","CurseForge":"controlify","Modrinth":"controlify"},{"Id":11761,"Name":"","CurseForge":"","Modrinth":"bedrodium"},{"Id":11762,"Name":"XBB的热气球幻想 (XBB's hot air balloon fantasy)","CurseForge":"xbbs-hot-air-balloon-fantasy","Modrinth":"xbbs-hot-air-balloon-fantasy"},{"Id":11763,"Name":"","CurseForge":"netherite-horse-armor-cj","Modrinth":""},{"Id":11764,"Name":"","CurseForge":"polydex","Modrinth":"polydex"},{"Id":11765,"Name":"","CurseForge":"plenty-of-armors","Modrinth":"plenty-of-armors"},{"Id":11766,"Name":"","CurseForge":"spatialio-compat","Modrinth":""},{"Id":11767,"Name":"","CurseForge":"","Modrinth":"mica"},{"Id":11768,"Name":"","CurseForge":"heavy-armor","Modrinth":""},{"Id":11769,"Name":"苔藓层 (Moss Layers)","CurseForge":"moss-layers","Modrinth":"moss-layers"},{"Id":11770,"Name":"","CurseForge":"lunchboxes","Modrinth":""},{"Id":11771,"Name":"","CurseForge":"","Modrinth":"autofish-chao"},{"Id":11772,"Name":"稻草傀儡 (Straw Golem)","CurseForge":"strawgolem","Modrinth":""},{"Id":11773,"Name":"","CurseForge":"","Modrinth":"shifting-wares"},{"Id":11774,"Name":"","CurseForge":"dynamic-trim","Modrinth":"dynamic-trim"},{"Id":11775,"Name":"","CurseForge":"trade-uses","Modrinth":"trade-uses"},{"Id":11776,"Name":"","CurseForge":"ambient-fireflies","Modrinth":"ambient-fireflies"},{"Id":11777,"Name":"","CurseForge":"nb_mod","Modrinth":""},{"Id":11779,"Name":"","CurseForge":"stacked-armor-trims","Modrinth":"stacked-armor-trims"},{"Id":11780,"Name":"","CurseForge":"","Modrinth":"final-beta"},{"Id":11781,"Name":"","CurseForge":"better-trim-tooltips","Modrinth":"better-trim-tooltips"},{"Id":11782,"Name":"","CurseForge":"totally-enough-pain","Modrinth":"totally-enough-pain"},{"Id":11783,"Name":"村民调教 (Custom Village)","CurseForge":"custom-village","Modrinth":""},{"Id":11784,"Name":"","CurseForge":"animaticareforged","Modrinth":""},{"Id":11785,"Name":"","CurseForge":"shear-cows","Modrinth":""},{"Id":11786,"Name":"","CurseForge":"fps-boost","Modrinth":"fps-boost-tct"},{"Id":11787,"Name":"","CurseForge":"afkfish","Modrinth":"afkfish"},{"Id":11789,"Name":"","CurseForge":"","Modrinth":"rend"},{"Id":11790,"Name":"","CurseForge":"more-trails-more-tales","Modrinth":"more-trails-more-tales"},{"Id":11791,"Name":"馥郁良茶 (Good Tea)","CurseForge":"good-tea","Modrinth":"good-tea"},{"Id":11792,"Name":"","CurseForge":"screen-size","Modrinth":""},{"Id":11793,"Name":"","CurseForge":"botany-ores","Modrinth":"botany-ores"},{"Id":11794,"Name":"炼药锅修复 (Cauldron Fix)","CurseForge":"","Modrinth":"cauldron-fix"},{"Id":11795,"Name":"","CurseForge":"foods-plants-cooking-with-mindthemoods","Modrinth":""},{"Id":11796,"Name":"自定义 GUI (Custom GUI)","CurseForge":"","Modrinth":"customgui"},{"Id":11797,"Name":"","CurseForge":"keebszs-battletowers-fabric","Modrinth":"keebszs-battletowers"},{"Id":11798,"Name":"×的和你爆了 (As a creeper)","CurseForge":"as-a-creeper","Modrinth":""},{"Id":11800,"Name":"","CurseForge":"smarterwanderers","Modrinth":""},{"Id":11801,"Name":"合成拓展:延续版 (Extended Crafting:Nomifactory Edition)","CurseForge":"extended-crafting-nomifactory-edition","Modrinth":""},{"Id":11802,"Name":"","CurseForge":"","Modrinth":"meal-api-addon"},{"Id":11804,"Name":"","CurseForge":"easy-config-button","Modrinth":""},{"Id":11805,"Name":"","CurseForge":"","Modrinth":"kahur"},{"Id":11806,"Name":"","CurseForge":"","Modrinth":"modloadermp"},{"Id":11807,"Name":"枫 (Maple)","CurseForge":"maple","Modrinth":"maple"},{"Id":11808,"Name":"","CurseForge":"seamless","Modrinth":"seamless"},{"Id":11809,"Name":"","CurseForge":"bundle-enchantments","Modrinth":""},{"Id":11810,"Name":"","CurseForge":"real-time-mod","Modrinth":"real-time-mod"},{"Id":11811,"Name":"","CurseForge":"chromatic-arsenal","Modrinth":""},{"Id":11812,"Name":"","CurseForge":"ore-visual-detector","Modrinth":""},{"Id":11813,"Name":"","CurseForge":"dank-null-no_rce","Modrinth":"danknull-rce"},{"Id":11814,"Name":"","CurseForge":"kubejs-additions","Modrinth":"kubejs-additions"},{"Id":11818,"Name":"","CurseForge":"betterdays","Modrinth":"betterdays"},{"Id":11819,"Name":"","CurseForge":"","Modrinth":"seedy-place"},{"Id":11820,"Name":"","CurseForge":"extradetails","Modrinth":""},{"Id":11821,"Name":"","CurseForge":"signed-paintings","Modrinth":"signed-paintings"},{"Id":11822,"Name":"负魔与改造 (Inenchantment & Reconstruction)","CurseForge":"inenchantment-reconstruction","Modrinth":""},{"Id":11824,"Name":"Neeve的AE2:EL附加工具 (Neeve's AE2: Extended Life Additions)","CurseForge":"nae2","Modrinth":""},{"Id":11825,"Name":"","CurseForge":"the-microworld","Modrinth":""},{"Id":11826,"Name":"","CurseForge":"vionta","Modrinth":""},{"Id":11827,"Name":"","CurseForge":"hammer-animations","Modrinth":"hammer-animations"},{"Id":11829,"Name":"","CurseForge":"blueflame","Modrinth":"blueflame"},{"Id":11830,"Name":"","CurseForge":"nocubes-craftable-music-discs","Modrinth":""},{"Id":11831,"Name":"","CurseForge":"enderlicious","Modrinth":""},{"Id":11832,"Name":"","CurseForge":"quarry-reborn","Modrinth":""},{"Id":11835,"Name":"","CurseForge":"morematerials","Modrinth":"morematerials"},{"Id":11836,"Name":"","CurseForge":"foodmod-for-fabric","Modrinth":"food"},{"Id":11837,"Name":"","CurseForge":"cursed-mod-for-fabric","Modrinth":"cursed"},{"Id":11838,"Name":"","CurseForge":"weaponized-baseball","Modrinth":""},{"Id":11839,"Name":"史诗狼之伞 (Epic Paragliders But Sekiro)","CurseForge":"epic-paragliders-but-sekiro","Modrinth":""},{"Id":11840,"Name":"","CurseForge":"visualores","Modrinth":"visualores"},{"Id":11841,"Name":"","CurseForge":"d-furnace","Modrinth":""},{"Id":11842,"Name":"闪烁修复 (FlickerFix)","CurseForge":"flickerfix","Modrinth":"flickerfix"},{"Id":11843,"Name":"","CurseForge":"","Modrinth":"spongesucc"},{"Id":11844,"Name":"","CurseForge":"","Modrinth":"phosphor-legacy"},{"Id":11845,"Name":"","CurseForge":"random-crits","Modrinth":""},{"Id":11846,"Name":"","CurseForge":"simple-enchantments","Modrinth":""},{"Id":11847,"Name":"","CurseForge":"simple-weapons-for-better-combat","Modrinth":"simple-weapons-for-better-combat"},{"Id":11848,"Name":"","CurseForge":"wither-drops-netherite-templates","Modrinth":""},{"Id":11849,"Name":"","CurseForge":"","Modrinth":"spineless"},{"Id":11850,"Name":"沉浸式奏乐 (Immersive Melodies)","CurseForge":"immersive-melodies","Modrinth":"immersive-melodies"},{"Id":11851,"Name":"","CurseForge":"theobsidianboat","Modrinth":""},{"Id":11852,"Name":"龙之生存:兼容 (Dragon Survival Compatibility)","CurseForge":"dragon-survival-compatibility","Modrinth":"dragon-survival-compatibility"},{"Id":11853,"Name":"","CurseForge":"bettercookedaxolotls","Modrinth":"bettercookedaxolotls"},{"Id":11854,"Name":"","CurseForge":"stateobserver","Modrinth":"stateobserver"},{"Id":11855,"Name":"","CurseForge":"mighty-mail","Modrinth":""},{"Id":11855,"Name":"","CurseForge":"mighty-mail-fabric","Modrinth":""},{"Id":11856,"Name":"","CurseForge":"nature-architect-plants-and-decorations","Modrinth":""},{"Id":11857,"Name":"","CurseForge":"better-berries-redux","Modrinth":""},{"Id":11858,"Name":"叶间穿梭 (Passable Leaves)","CurseForge":"kurisus-passable-leaves","Modrinth":"passable-leaves"},{"Id":11860,"Name":"","CurseForge":"armorful","Modrinth":"armorful"},{"Id":11862,"Name":"","CurseForge":"","Modrinth":"osl"},{"Id":11863,"Name":"修复GPU内存泄漏 (fix GPU memory leak)","CurseForge":"fix-gpu-memory-leak","Modrinth":""},{"Id":11864,"Name":"蛋糕乐事 (Cake Delight)","CurseForge":"cake-delight","Modrinth":"cakedelight"},{"Id":11865,"Name":"","CurseForge":"autoslabs","Modrinth":"autoslabs"},{"Id":11866,"Name":"","CurseForge":"","Modrinth":"kabo-village-marker"},{"Id":11867,"Name":"","CurseForge":"ootn","Modrinth":""},{"Id":11868,"Name":"","CurseForge":"","Modrinth":"signal"},{"Id":11869,"Name":"","CurseForge":"i-see-what-you-did-there","Modrinth":"i-see-what-you-did-there"},{"Id":11870,"Name":"","CurseForge":"hit-streak","Modrinth":"hit-streak"},{"Id":11871,"Name":"","CurseForge":"new-slab-variants","Modrinth":"new-slab-variants"},{"Id":11872,"Name":"","CurseForge":"blue-archive-banner-and-shield-patterns","Modrinth":""},{"Id":11873,"Name":"","CurseForge":"mimic-mod","Modrinth":"mimic"},{"Id":11874,"Name":"","CurseForge":"bocchium","Modrinth":""},{"Id":11875,"Name":"","CurseForge":"despawntweaker","Modrinth":""},{"Id":11877,"Name":"唯一箱子 (Only Need One Chest)","CurseForge":"on1chest","Modrinth":"on1chest"},{"Id":11878,"Name":"地雷 (Landmines)","CurseForge":"landmines","Modrinth":"landmines"},{"Id":11880,"Name":"","CurseForge":"packed-up-backpacks","Modrinth":"packed-up-backpacks"},{"Id":11881,"Name":"","CurseForge":"valhelsia-furniture","Modrinth":"valhelsia-furniture"},{"Id":11883,"Name":"","CurseForge":"dimension-remote","Modrinth":""},{"Id":11884,"Name":"","CurseForge":"bring-decay","Modrinth":"bring-decay"},{"Id":11885,"Name":"","CurseForge":"rendertypecache","Modrinth":""},{"Id":11886,"Name":"","CurseForge":"autotag","Modrinth":"autotag"},{"Id":11887,"Name":"","CurseForge":"libz","Modrinth":"libz"},{"Id":11888,"Name":"自动工具 (AutoTools)","CurseForge":"autotools","Modrinth":"minecraft_autotools"},{"Id":11889,"Name":"","CurseForge":"","Modrinth":"threadtweak"},{"Id":11890,"Name":"","CurseForge":"nbt-editor","Modrinth":"nbt-editor"},{"Id":11892,"Name":"","CurseForge":"","Modrinth":"betterendsky"},{"Id":11894,"Name":"维度传送指令 (DimtpCmd)","CurseForge":"dimtpcmd","Modrinth":""},{"Id":11895,"Name":"","CurseForge":"fast-ip-ping","Modrinth":"fast-ip-ping"},{"Id":11896,"Name":"","CurseForge":"better-anvil","Modrinth":"better-anvil"},{"Id":11897,"Name":"","CurseForge":"bloxys-misc","Modrinth":""},{"Id":11898,"Name":"","CurseForge":"","Modrinth":"find"},{"Id":11899,"Name":"","CurseForge":"","Modrinth":"elytra-recast"},{"Id":11900,"Name":"","CurseForge":"tieredz","Modrinth":"tieredz"},{"Id":11901,"Name":"更多苦力怕 (More Creepers)","CurseForge":"more-creepers","Modrinth":""},{"Id":11904,"Name":"","CurseForge":"cryptic-registry","Modrinth":"cryptic-registry"},{"Id":11905,"Name":"","CurseForge":"level-text-fix","Modrinth":"level-text-fix"},{"Id":11906,"Name":"","CurseForge":"binnies-mods-patched","Modrinth":"binnies-mods-patched"},{"Id":11907,"Name":"氰化物 (Cyanide)","CurseForge":"cyanide","Modrinth":"cyanide"},{"Id":11907,"Name":"氰化物 (Cyanide)","CurseForge":"cyanide-fabric","Modrinth":""},{"Id":11908,"Name":"","CurseForge":"","Modrinth":"particlesenhanced"},{"Id":11909,"Name":"","CurseForge":"","Modrinth":"atum"},{"Id":11910,"Name":"","CurseForge":"","Modrinth":"worldpreview"},{"Id":11912,"Name":"","CurseForge":"prehistoric-nature-precambrian-dimension","Modrinth":""},{"Id":11913,"Name":"","CurseForge":"","Modrinth":"mc-260949-fix"},{"Id":11914,"Name":"专业狙击手 (Pro Sniper)","CurseForge":"pro-sniper","Modrinth":""},{"Id":11915,"Name":"","CurseForge":"aether-gear-expansion","Modrinth":""},{"Id":11916,"Name":"","CurseForge":"aether-enhanced-extinguishing","Modrinth":"aether-enhanced-extinguishing"},{"Id":11917,"Name":"","CurseForge":"","Modrinth":"recipebookmasscraft"},{"Id":11918,"Name":"机械动力:电气时代 (Create: New Age)","CurseForge":"create-new-age","Modrinth":"create-new-age"},{"Id":11919,"Name":"","CurseForge":"","Modrinth":"universal-trading"},{"Id":11920,"Name":"涂酱 (Sauces)","CurseForge":"","Modrinth":"sauces"},{"Id":11924,"Name":"","CurseForge":"nekoui","Modrinth":""},{"Id":11926,"Name":"经验传送器 (XPTeleporters 2)","CurseForge":"xpteleporters-2","Modrinth":""},{"Id":11927,"Name":"植物居中 (Centered Plants)","CurseForge":"centered-plants","Modrinth":"centered-plants"},{"Id":11928,"Name":"","CurseForge":"showkeybinds","Modrinth":"showkeybinds"},{"Id":11929,"Name":"","CurseForge":"","Modrinth":"lostera-coremod"},{"Id":11930,"Name":"","CurseForge":"advanced-tooltips","Modrinth":"advanced-tooltips"},{"Id":11933,"Name":"","CurseForge":"prehistoric-nature-cambrian-dimension","Modrinth":""},{"Id":11934,"Name":"","CurseForge":"","Modrinth":"mushroom-mod"},{"Id":11935,"Name":"","CurseForge":"better-end-sky","Modrinth":""},{"Id":11935,"Name":"","CurseForge":"better-end-sky-fabric","Modrinth":""},{"Id":11936,"Name":"","CurseForge":"valkyrie","Modrinth":"valkyrie"},{"Id":11937,"Name":"Soaring Structures 2 - 完整版","CurseForge":"soaring-structures-2","Modrinth":""},{"Id":11937,"Name":"Soaring Structures 2 - 轻量版","CurseForge":"soaring-structures-2-clean-version-fabric","Modrinth":""},{"Id":11938,"Name":"","CurseForge":"prehistoric-nature-ordovician-dimension","Modrinth":""},{"Id":11939,"Name":"","CurseForge":"fadeless","Modrinth":"fadeless"},{"Id":11940,"Name":"机械动力:高级遥控器 (Create: Tweaked Controllers)","CurseForge":"create-tweaked-controllers","Modrinth":"create-tweaked-controllers"},{"Id":11942,"Name":"","CurseForge":"auto-elytra","Modrinth":"auto-elytra"},{"Id":11943,"Name":"","CurseForge":"villager-names","Modrinth":"villager-names-serilum"},{"Id":11944,"Name":"","CurseForge":"bedrockwaters","Modrinth":"bedrockwaters"},{"Id":11945,"Name":"","CurseForge":"","Modrinth":"antishulkerdupe"},{"Id":11946,"Name":"","CurseForge":"hourai-elixir","Modrinth":"hourai-elixir"},{"Id":11947,"Name":"会饮 (Convivium)","CurseForge":"convivium","Modrinth":""},{"Id":11948,"Name":"","CurseForge":"prehistoric-nature-silurian-dimension","Modrinth":""},{"Id":11949,"Name":"","CurseForge":"grass-seeds","Modrinth":"grass-seeds"},{"Id":11950,"Name":"","CurseForge":"minecraft-dungeons-weaponry","Modrinth":"dungeons-weaponry"},{"Id":11951,"Name":"","CurseForge":"ahznbs-naruto-mod-addon","Modrinth":""},{"Id":11952,"Name":"","CurseForge":"random-village-names","Modrinth":"random-village-names"},{"Id":11952,"Name":"","CurseForge":"random-village-names-fabric","Modrinth":""},{"Id":11953,"Name":"","CurseForge":"mooshroom-tweaks","Modrinth":"mooshroom-tweaks"},{"Id":11954,"Name":"","CurseForge":"grinners-ents","Modrinth":""},{"Id":11955,"Name":"","CurseForge":"log-cleaner","Modrinth":"log-cleaner"},{"Id":11956,"Name":"","CurseForge":"lunar","Modrinth":"lunar"},{"Id":11957,"Name":"","CurseForge":"cosmetics","Modrinth":"cosmetica"},{"Id":11959,"Name":"","CurseForge":"","Modrinth":"abi"},{"Id":11960,"Name":"机械动力:内饰 (Create: Interiors)","CurseForge":"interiors","Modrinth":"interiors"},{"Id":11961,"Name":"","CurseForge":"souls","Modrinth":""},{"Id":11962,"Name":"","CurseForge":"real-seasons","Modrinth":""},{"Id":11963,"Name":"","CurseForge":"eternal-winter","Modrinth":"eternal-winter"},{"Id":11964,"Name":"","CurseForge":"move-boats","Modrinth":"move-boats"},{"Id":11965,"Name":"","CurseForge":"omnom","Modrinth":"omnom"},{"Id":11966,"Name":"","CurseForge":"forest-x-reborn","Modrinth":"forest-x-reborn"},{"Id":11967,"Name":"","CurseForge":"exlines-bark-carpets","Modrinth":"bark-carpets"},{"Id":11968,"Name":"","CurseForge":"exlines-more-carpets","Modrinth":""},{"Id":11969,"Name":"星骸秘遗 (Star Remains Secret Legacy)","CurseForge":"srsl","Modrinth":"srsl"},{"Id":11970,"Name":"出土之旅 (Unearthed Journey)","CurseForge":"unearthed-journey","Modrinth":"unearthed-journey"},{"Id":11971,"Name":"","CurseForge":"prehistoric-nature-devonian-dimension","Modrinth":""},{"Id":11972,"Name":"","CurseForge":"mwtis-stone-expansion","Modrinth":"stone-expansion"},{"Id":11973,"Name":"","CurseForge":"smooth-entity-light","Modrinth":""},{"Id":11974,"Name":"","CurseForge":"title-fixer","Modrinth":"title-fixer"},{"Id":11975,"Name":"更多奇怪的食物:重生 (ExStrangeFood:Reborn)","CurseForge":"exstrangefood-reborn","Modrinth":""},{"Id":11976,"Name":"","CurseForge":"frog-legs","Modrinth":""},{"Id":11977,"Name":"","CurseForge":"ohoy-scallywag","Modrinth":""},{"Id":11978,"Name":"","CurseForge":"ylf-your-flying-pet","Modrinth":""},{"Id":11979,"Name":"\"基岩\"特性 (Bedrock Editon Features)","CurseForge":"bedrock-edition-features","Modrinth":""},{"Id":11980,"Name":"","CurseForge":"simply-hot-springs","Modrinth":""},{"Id":11981,"Name":"","CurseForge":"magma-monsters","Modrinth":""},{"Id":11982,"Name":"","CurseForge":"mystics-biomes","Modrinth":"mystics-biomes"},{"Id":11983,"Name":"","CurseForge":"super-block-world","Modrinth":"super-block-world"},{"Id":11984,"Name":"","CurseForge":"create-train-additions","Modrinth":"create-train-additions"},{"Id":11985,"Name":"","CurseForge":"enchantery","Modrinth":"enchantery"},{"Id":11986,"Name":"Replant Swamp Trees - 仅有老旧的","CurseForge":"replant-swamp-trees","Modrinth":""},{"Id":11986,"Name":"","CurseForge":"","Modrinth":"replant-swamp-trees"},{"Id":11987,"Name":"","CurseForge":"vehiclefix","Modrinth":"vehiclefix"},{"Id":11988,"Name":"","CurseForge":"firework-frenzy","Modrinth":"firework-frenzy"},{"Id":11989,"Name":"","CurseForge":"prehistoric-nature-carboniferous-dimension","Modrinth":""},{"Id":11990,"Name":"","CurseForge":"cammies-combat-tweaks","Modrinth":"cammies-combat-tweaks"},{"Id":11991,"Name":"","CurseForge":"chorus-gormandizers","Modrinth":"chorus-gormandizers"},{"Id":11992,"Name":"","CurseForge":"enemy-expansion","Modrinth":""},{"Id":11993,"Name":"清澈虚空 (Clear Void)","CurseForge":"clear-void","Modrinth":"clear-void"},{"Id":11994,"Name":"","CurseForge":"the-arcaneum","Modrinth":""},{"Id":11995,"Name":"","CurseForge":"","Modrinth":"mixmetica"},{"Id":11996,"Name":"","CurseForge":"mutant-mobs-mod","Modrinth":""},{"Id":11997,"Name":"","CurseForge":"prehistoric-nature-permian-dimension","Modrinth":""},{"Id":11998,"Name":"","CurseForge":"","Modrinth":"phosphorlegacyforge"},{"Id":11999,"Name":"","CurseForge":"stairdoors-extended","Modrinth":"stairdoors-extended"},{"Id":12000,"Name":"","CurseForge":"into-the-rend","Modrinth":""},{"Id":12001,"Name":"","CurseForge":"buff-frog-mod","Modrinth":""},{"Id":12002,"Name":"","CurseForge":"asphere","Modrinth":""},{"Id":12003,"Name":"自动连点器(Fabric) (Click Machine (Fabric))","CurseForge":"autoclick-machine","Modrinth":""},{"Id":12004,"Name":"","CurseForge":"harvestcraft-tweaker","Modrinth":""},{"Id":12005,"Name":"","CurseForge":"the-legend-of-the-mudman","Modrinth":""},{"Id":12006,"Name":"","CurseForge":"mutagenesis","Modrinth":""},{"Id":12007,"Name":"","CurseForge":"nether-update-backport","Modrinth":""},{"Id":12008,"Name":"莱特兰-恶意 (L2Hostility)","CurseForge":"l2hostility","Modrinth":"l2hostility"},{"Id":12009,"Name":"封包神秘时代 (PackagedThaumic)","CurseForge":"packagedthaumic","Modrinth":"packagedthaumic"},{"Id":12010,"Name":"","CurseForge":"cat-eyes-night-vision-toggle-mod","Modrinth":""},{"Id":12011,"Name":"","CurseForge":"vtdownloader","Modrinth":"vtdownloader"},{"Id":12012,"Name":"","CurseForge":"smithing-mod","Modrinth":""},{"Id":12014,"Name":"","CurseForge":"the-doppelganger","Modrinth":"the-doppelganger"},{"Id":12015,"Name":"","CurseForge":"rail-wand","Modrinth":""},{"Id":12016,"Name":"","CurseForge":"tin-ore","Modrinth":"tinore"},{"Id":12017,"Name":"","CurseForge":"dark-elves-of-underdark","Modrinth":""},{"Id":12018,"Name":"","CurseForge":"titan-biomes","Modrinth":""},{"Id":12019,"Name":"","CurseForge":"depth-striders","Modrinth":"depth-striders"},{"Id":12020,"Name":"末影笼 (Endercage)","CurseForge":"endercage","Modrinth":"endercage"},{"Id":12021,"Name":"","CurseForge":"mutationcraft","Modrinth":"mutationcraft"},{"Id":12022,"Name":"","CurseForge":"aftershock","Modrinth":"aftershock"},{"Id":12023,"Name":"永无止境: 音乐会 (Limitless Concert)","CurseForge":"limitless-concert","Modrinth":"limitless_concert"},{"Id":12024,"Name":"","CurseForge":"realm-rpg-dragon-wyrms","Modrinth":""},{"Id":12025,"Name":"","CurseForge":"prehistoric-nature-triassic-dimension","Modrinth":""},{"Id":12026,"Name":"","CurseForge":"flower-power","Modrinth":""},{"Id":12027,"Name":"","CurseForge":"vr-combat","Modrinth":"vr-combat"},{"Id":12028,"Name":"","CurseForge":"embeddium","Modrinth":"embeddium"},{"Id":12029,"Name":"","CurseForge":"no-arrows-in-you","Modrinth":"no-arrows-in-you"},{"Id":12030,"Name":"奇幻小马国 (Unicopia)","CurseForge":"","Modrinth":"unicopia"},{"Id":12031,"Name":"","CurseForge":"ryans-zombies","Modrinth":""},{"Id":12032,"Name":"","CurseForge":"lights-out-2","Modrinth":"lightsout"},{"Id":12033,"Name":"","CurseForge":"leafper-creeping-and-cute","Modrinth":""},{"Id":12034,"Name":"","CurseForge":"the-john-mod-reborn","Modrinth":"john_mod_reborn"},{"Id":12036,"Name":"","CurseForge":"apothic-attributes","Modrinth":"apothic-attributes"},{"Id":12039,"Name":"","CurseForge":"wall-jump-txf","Modrinth":"wall-jump-txf"},{"Id":12040,"Name":"","CurseForge":"","Modrinth":"fastmove"},{"Id":12041,"Name":"原的世界 (Genshin Craft)","CurseForge":"","Modrinth":"genshincraft"},{"Id":12042,"Name":"","CurseForge":"and-there-was-only-one-bed","Modrinth":"and-there-was-only-one-bed"},{"Id":12043,"Name":"","CurseForge":"hex","Modrinth":"hex"},{"Id":12044,"Name":"","CurseForge":"legend-of-dreemland-drakonboos","Modrinth":""},{"Id":12045,"Name":"","CurseForge":"hanew-village","Modrinth":""},{"Id":12046,"Name":"","CurseForge":"battle-allays","Modrinth":""},{"Id":12047,"Name":"","CurseForge":"","Modrinth":"lootbeamsfabricupdated"},{"Id":12048,"Name":"","CurseForge":"styled-chat","Modrinth":"styled-chat"},{"Id":12049,"Name":"","CurseForge":"infiniteinvo","Modrinth":""},{"Id":12050,"Name":"","CurseForge":"playerex-reimagine","Modrinth":""},{"Id":12051,"Name":"","CurseForge":"startup-timer","Modrinth":""},{"Id":12052,"Name":"纸带八音盒 (Music Box)","CurseForge":"cc-mb","Modrinth":"cc-mb"},{"Id":12053,"Name":"","CurseForge":"oryls-adventures","Modrinth":""},{"Id":12054,"Name":"","CurseForge":"elden-craft","Modrinth":""},{"Id":12055,"Name":"钌 (RuOK)","CurseForge":"ruok","Modrinth":""},{"Id":12056,"Name":"","CurseForge":"deep-dark-regrowth","Modrinth":""},{"Id":12057,"Name":"TexTrue 的 Embeddium 视频界面 (TexTrue's Embeddium Options)","CurseForge":"textrues-embeddium-options","Modrinth":"textrues-embeddium-options"},{"Id":12058,"Name":"","CurseForge":"silent-mine","Modrinth":""},{"Id":12059,"Name":"","CurseForge":"headhunter-mod","Modrinth":"shadows-formidable-foes-the-headhunter"},{"Id":12060,"Name":"YUNG 的丛林神庙优化 (YUNG's Better Jungle Temples)","CurseForge":"yungs-better-jungle-temples","Modrinth":"yungs-better-jungle-temples"},{"Id":12060,"Name":"YUNG 的丛林神庙优化 (YUNG's Better Jungle Temples)","CurseForge":"yungs-better-jungle-temples-fabric","Modrinth":""},{"Id":12060,"Name":"YUNG 的丛林神庙优化 (YUNG's Better Jungle Temples)","CurseForge":"yungs-better-jungle-temples-neoforge","Modrinth":""},{"Id":12061,"Name":"","CurseForge":"forlorn-beasts","Modrinth":""},{"Id":12062,"Name":"","CurseForge":"harpiccore-mod","Modrinth":""},{"Id":12063,"Name":"","CurseForge":"poonggis-add-more-bosses","Modrinth":""},{"Id":12065,"Name":"","CurseForge":"simpletweaker","Modrinth":""},{"Id":12066,"Name":"","CurseForge":"","Modrinth":"no-spawning-on-ice-highways"},{"Id":12068,"Name":"","CurseForge":"zens-mmorpg","Modrinth":""},{"Id":12070,"Name":"","CurseForge":"enchantment-lore","Modrinth":"enchantment-lore"},{"Id":12071,"Name":"配方热重载 (ZenRecipeReload)","CurseForge":"zenrecipereload","Modrinth":""},{"Id":12072,"Name":"","CurseForge":"lovable-chest","Modrinth":""},{"Id":12073,"Name":"","CurseForge":"critters-cryptids","Modrinth":""},{"Id":12074,"Name":"","CurseForge":"deathquotes-death-quotes","Modrinth":""},{"Id":12075,"Name":"","CurseForge":"saphyre","Modrinth":""},{"Id":12077,"Name":"","CurseForge":"gameblocks","Modrinth":"gameblocks"},{"Id":12078,"Name":"初始房屋 (Initial House)","CurseForge":"initial-house","Modrinth":"initial-house"},{"Id":12079,"Name":"","CurseForge":"livingchest","Modrinth":""},{"Id":12081,"Name":"","CurseForge":"skibidi-toilet-stevebidop","Modrinth":""},{"Id":12082,"Name":"","CurseForge":"better-impaling-fabric","Modrinth":""},{"Id":12083,"Name":"钒 (Vanadium)","CurseForge":"vanadium-mod","Modrinth":"vanadium"},{"Id":12084,"Name":"","CurseForge":"loginar-storage","Modrinth":"loginar-storage"},{"Id":12085,"Name":"","CurseForge":"jewelry","Modrinth":"jewelry"},{"Id":12086,"Name":"","CurseForge":"elytra-drag","Modrinth":"elytra-drag"},{"Id":12087,"Name":"","CurseForge":"night-vision-flash-be-gone","Modrinth":""},{"Id":12089,"Name":"","CurseForge":"ancient-return","Modrinth":"ancient-return"},{"Id":12090,"Name":"","CurseForge":"mc-modsayed","Modrinth":""},{"Id":12091,"Name":"星铁12 (Honkai Star Rail 12)","CurseForge":"honkai-star-rail-12","Modrinth":""},{"Id":12092,"Name":"","CurseForge":"torchflower-relit","Modrinth":"torchflower-relit"},{"Id":12093,"Name":"","CurseForge":"fexs-random-stuff-mod","Modrinth":""},{"Id":12094,"Name":"","CurseForge":"k9","Modrinth":"k9-mod"},{"Id":12095,"Name":"方块数码宝贝 (The Digimod)","CurseForge":"the-digimod-beta","Modrinth":"the-digimod"},{"Id":12096,"Name":"无中生有:神赐 (Ex Deorum)","CurseForge":"ex-deorum","Modrinth":"ex-deorum"},{"Id":12097,"Name":"","CurseForge":"entity-detectors","Modrinth":"entity-detectors"},{"Id":12098,"Name":"","CurseForge":"","Modrinth":"horse-armor-stand"},{"Id":12099,"Name":"装饰方块(分叉版) (Decorative Blocks (Fork))","CurseForge":"decorative-blocks-fork","Modrinth":""},{"Id":12100,"Name":"","CurseForge":"above-and-below","Modrinth":"above-and-below"},{"Id":12102,"Name":"冷汗:食物冷冻与加热 (Freeze It, and Heat It!)","CurseForge":"freeze-it-and-heat-it","Modrinth":"freeze-it-and-heat-it"},{"Id":12103,"Name":"","CurseForge":"","Modrinth":"keybindsgalore+(hvb007)"},{"Id":12104,"Name":"","CurseForge":"never-full","Modrinth":""},{"Id":12105,"Name":"","CurseForge":"nemos-blooming-blossom","Modrinth":"nemos-blooming-blossom"},{"Id":12106,"Name":"","CurseForge":"legacies-and-legends","Modrinth":"legacies-and-legends"},{"Id":12109,"Name":"","CurseForge":"your-log-saw-something-last-night","Modrinth":"your-log-saw-something-last-night"},{"Id":12110,"Name":"","CurseForge":"tubes-reloaded","Modrinth":"tubes-reloaded"},{"Id":12113,"Name":"自然之灵 (Nature's Spirit)","CurseForge":"natures-spirit","Modrinth":"natures-spirit"},{"Id":12114,"Name":"","CurseForge":"","Modrinth":"natrium"},{"Id":12115,"Name":"","CurseForge":"bossominium","Modrinth":"bossominium"},{"Id":12116,"Name":"","CurseForge":"","Modrinth":"sort-extension"},{"Id":12117,"Name":"","CurseForge":"hostile-water-monsters","Modrinth":""},{"Id":12118,"Name":"","CurseForge":"slabs-layers","Modrinth":"slabs-layers+"},{"Id":12119,"Name":"中洲历史:传承 (History of Middle-earth: Legacy)","CurseForge":"history-of-middle-earth-legacy","Modrinth":""},{"Id":12120,"Name":"","CurseForge":"hostile-humans","Modrinth":"hostile-humans"},{"Id":12121,"Name":"经典且简易的状态栏 (Classic and simple status bars)","CurseForge":"classic-and-simple-status-bars","Modrinth":"cssb"},{"Id":12122,"Name":"","CurseForge":"","Modrinth":"turtle-charging-station"},{"Id":12123,"Name":"","CurseForge":"your-reputation","Modrinth":"your-reputation"},{"Id":12123,"Name":"","CurseForge":"your-reputation-wthit","Modrinth":"your-reputation-wthit"},{"Id":12123,"Name":"","CurseForge":"your-reputation-jade","Modrinth":"your-reputation-jade"},{"Id":12124,"Name":"未来日记 (FutureDiary)","CurseForge":"futurediary","Modrinth":""},{"Id":12125,"Name":"","CurseForge":"infiniverse","Modrinth":"infiniverse"},{"Id":12126,"Name":"","CurseForge":"use-item-on-block-event","Modrinth":"use-item-on-block-event"},{"Id":12127,"Name":"","CurseForge":"genshin-instruments","Modrinth":"genshin-instruments"},{"Id":12128,"Name":"","CurseForge":"genshin-elementreactions","Modrinth":""},{"Id":12129,"Name":"","CurseForge":"chatshot","Modrinth":"chatshot"},{"Id":12130,"Name":"IC2作物信息 (CropChance)","CurseForge":"cropchance","Modrinth":""},{"Id":12132,"Name":"","CurseForge":"freelook-fabric","Modrinth":"freelook"},{"Id":12133,"Name":"","CurseForge":"respawn","Modrinth":"respawn"},{"Id":12134,"Name":"","CurseForge":"infiniverse-utils","Modrinth":""},{"Id":12135,"Name":"核心拓展 (CoreExtensions)","CurseForge":"coreextensions","Modrinth":"coreextensions"},{"Id":12136,"Name":"快速掉落物 (Fast Items)","CurseForge":"","Modrinth":"fast-items"},{"Id":12137,"Name":"","CurseForge":"toad-terror","Modrinth":""},{"Id":12138,"Name":"","CurseForge":"modern-industrialization-sound-addon","Modrinth":"modern-industrialization-sound-addon"},{"Id":12139,"Name":"","CurseForge":"achievements-optimizer","Modrinth":"achievements-optimizer"},{"Id":12140,"Name":"","CurseForge":"automessage","Modrinth":"auto-message"},{"Id":12141,"Name":"","CurseForge":"ftb-quests-optimizer","Modrinth":"ftb-quests-optimizer"},{"Id":12142,"Name":"","CurseForge":"gfarm","Modrinth":"gfarm"},{"Id":12143,"Name":"","CurseForge":"ryoamiclights","Modrinth":"ryoamiclights"},{"Id":12144,"Name":"","CurseForge":"patchouli-rofl-edition","Modrinth":""},{"Id":12145,"Name":"","CurseForge":"alfheim-lighting-engine","Modrinth":"alfheim-lighting-engine"},{"Id":12146,"Name":"","CurseForge":"even-more-instruments","Modrinth":"evenmoreinstruments"},{"Id":12147,"Name":"","CurseForge":"more-red-computercraft-integration","Modrinth":""},{"Id":12149,"Name":"","CurseForge":"no-invincibility-frames","Modrinth":""},{"Id":12150,"Name":"","CurseForge":"moderncreator","Modrinth":"modern-creator"},{"Id":12151,"Name":"更好的任务非官方版 (Better Questing Unofficial)","CurseForge":"better-questing-unofficial","Modrinth":""},{"Id":12152,"Name":"","CurseForge":"p455w0rds-ae2-wireless-terminals-patch","Modrinth":""},{"Id":12153,"Name":"","CurseForge":"spoiledz","Modrinth":"spoiledz"},{"Id":12154,"Name":"","CurseForge":"boss-music-mod","Modrinth":""},{"Id":12155,"Name":"","CurseForge":"yippee","Modrinth":""},{"Id":12156,"Name":"永恒的伙伴 (Friends Forever)","CurseForge":"friends-forever","Modrinth":""},{"Id":12157,"Name":"","CurseForge":"de-extinction-mod","Modrinth":""},{"Id":12158,"Name":"自定义世界生成 (Custom World Generation)","CurseForge":"custom-world-generation","Modrinth":"custom-world-generation"},{"Id":12159,"Name":"","CurseForge":"cataclysm-tweaks","Modrinth":""},{"Id":12160,"Name":"","CurseForge":"euphoria-patches","Modrinth":"euphoria-patches"},{"Id":12161,"Name":"精灵球 (pokeballhv)","CurseForge":"poke-ball","Modrinth":""},{"Id":12162,"Name":"","CurseForge":"aquamirae-mod-music","Modrinth":"aquamirae-mod-extra-music"},{"Id":12163,"Name":"","CurseForge":"deathmatch","Modrinth":""},{"Id":12164,"Name":"平滑滚动 (Smooth Scrolling)","CurseForge":"","Modrinth":"smooth-scroll"},{"Id":12165,"Name":"","CurseForge":"toad-terror-battle-music","Modrinth":""},{"Id":12168,"Name":"","CurseForge":"fusion","Modrinth":"fusion"},{"Id":12169,"Name":"","CurseForge":"machines","Modrinth":"machines"},{"Id":12170,"Name":"","CurseForge":"tenms-discs","Modrinth":""},{"Id":12171,"Name":"","CurseForge":"netherrocks","Modrinth":"netherrocks"},{"Id":12172,"Name":"","CurseForge":"invasion-code-red","Modrinth":""},{"Id":12173,"Name":"","CurseForge":"efw-forgotten-place","Modrinth":""},{"Id":12174,"Name":"","CurseForge":"","Modrinth":"vulkanite-mod"},{"Id":12175,"Name":"YUNG 的末地岛屿优化 (YUNG's Better End Island)","CurseForge":"yungs-better-end-island","Modrinth":"yungs-better-end-island"},{"Id":12175,"Name":"YUNG 的末地岛屿优化 (YUNG's Better End Island)","CurseForge":"yungs-better-end-island-fabric","Modrinth":""},{"Id":12175,"Name":"YUNG 的末地岛屿优化 (YUNG's Better End Island)","CurseForge":"yungs-better-end-island-neoforge","Modrinth":""},{"Id":12177,"Name":"","CurseForge":"bellsandwhistles","Modrinth":"bellsandwhistles"},{"Id":12178,"Name":"","CurseForge":"daniinatorul","Modrinth":""},{"Id":12179,"Name":"","CurseForge":"uuid-offline","Modrinth":""},{"Id":12180,"Name":"原版立方 (Vanilla Cubed)","CurseForge":"vanilla-cubed","Modrinth":"vanilla-cubed"},{"Id":12186,"Name":"","CurseForge":"longer-chat-history","Modrinth":"longer-chat-history"},{"Id":12187,"Name":"","CurseForge":"","Modrinth":"secret-spectator"},{"Id":12188,"Name":"","CurseForge":"shoot-glass","Modrinth":"shoot-glass"},{"Id":12189,"Name":"暴击改革 (Modification Of Critical Hit)","CurseForge":"modification-of-critical-hit","Modrinth":"modification-of-critical-hit"},{"Id":12190,"Name":"","CurseForge":"improved-damage-framework","Modrinth":"idf"},{"Id":12191,"Name":"","CurseForge":"","Modrinth":"shulker+"},{"Id":12192,"Name":"","CurseForge":"biome-tag-villagers","Modrinth":"biome-tag-villagers"},{"Id":12193,"Name":"","CurseForge":"combat-bash","Modrinth":"combat-bash"},{"Id":12194,"Name":"","CurseForge":"","Modrinth":"simpleprivatechest"},{"Id":12195,"Name":"","CurseForge":"marbleds-villager-hats","Modrinth":"marbleds-villager-hats"},{"Id":12197,"Name":"","CurseForge":"connector-extras","Modrinth":"connector-extras"},{"Id":12198,"Name":"Simple Tungsten - 新","CurseForge":"akkamaddis-simple-tungsten","Modrinth":""},{"Id":12199,"Name":"","CurseForge":"just-enough-beacons-reforged","Modrinth":"just-enough-beacons-reforged"},{"Id":12201,"Name":"","CurseForge":"akkamaddis-additions","Modrinth":"akkamaddis-simple-tungsten"},{"Id":12201,"Name":"Simple Cobalt - 新","CurseForge":"simple-cobalt","Modrinth":""},{"Id":12202,"Name":"","CurseForge":"akkamaddis-ashenwheat","Modrinth":"akkamaddis-ashenwheat"},{"Id":12203,"Name":"","CurseForge":"prehistoriclegacy","Modrinth":"prehistoric-legacy"},{"Id":12204,"Name":"","CurseForge":"redyed","Modrinth":""},{"Id":12205,"Name":"","CurseForge":"enchantmentdisabler","Modrinth":"enchantment-disabler"},{"Id":12206,"Name":"矿工眼镜 (Miner's Glasses)","CurseForge":"miners-glasses","Modrinth":""},{"Id":12207,"Name":"","CurseForge":"relics-and-alchemy","Modrinth":"relics-and-alchemy"},{"Id":12208,"Name":"","CurseForge":"greate","Modrinth":"greate"},{"Id":12209,"Name":"","CurseForge":"advanced-world-selection","Modrinth":""},{"Id":12210,"Name":"","CurseForge":"accelerated-decay","Modrinth":"accelerated-decay"},{"Id":12212,"Name":"","CurseForge":"zots-only-silver","Modrinth":"zots-only-silver"},{"Id":12213,"Name":"冰火传说-RLCraft版 (I&F:RLCraft Edition)","CurseForge":"iceandfire-rlcraft","Modrinth":""},{"Id":12214,"Name":"","CurseForge":"bqutweaker","Modrinth":"bqutweaker"},{"Id":12216,"Name":"调停者 (The Arbiter)","CurseForge":"the-arbiter","Modrinth":""},{"Id":12217,"Name":"","CurseForge":"builders-construct","Modrinth":""},{"Id":12219,"Name":"永恒常春藤 (TimelessIvy)","CurseForge":"timelessivy","Modrinth":""},{"Id":12220,"Name":"Hadite Coal - 新","CurseForge":"akkamaddis-hadite-coal","Modrinth":""},{"Id":12222,"Name":"Arsenic and Lace - 新","CurseForge":"akkamaddis-arsenic-and-lace","Modrinth":""},{"Id":12224,"Name":"饩雨的附魔书 (Xiyu's Enchanted Book)","CurseForge":"xiyus-exchanted-book","Modrinth":"xiyus-enchanted-book"},{"Id":12225,"Name":"","CurseForge":"la-abuelita","Modrinth":"abuelita"},{"Id":12226,"Name":"","CurseForge":"rotted-forge","Modrinth":"rotted"},{"Id":12227,"Name":"","CurseForge":"rustic-furniture-compat","Modrinth":""},{"Id":12228,"Name":"Realms 按钮移除 (No Realms Button)","CurseForge":"","Modrinth":"no-realms-button"},{"Id":12229,"Name":"","CurseForge":"","Modrinth":"benchantments"},{"Id":12230,"Name":"坚不可摧 (Epic Fight - Indestructible)","CurseForge":"epic-fight-indestructible","Modrinth":""},{"Id":12235,"Name":"","CurseForge":"catwalks-llc","Modrinth":"catwalks-llc"},{"Id":12236,"Name":"","CurseForge":"divine-quest-rpg","Modrinth":""},{"Id":12237,"Name":"","CurseForge":"","Modrinth":"carpet-org-addition"},{"Id":12238,"Name":"","CurseForge":"simply-headshots","Modrinth":""},{"Id":12239,"Name":"","CurseForge":"random-structure-land","Modrinth":""},{"Id":12241,"Name":"","CurseForge":"random-mobs-land","Modrinth":""},{"Id":12242,"Name":"","CurseForge":"clean-swing-through-grass","Modrinth":""},{"Id":12243,"Name":"","CurseForge":"shrug-it-off-stb-edition","Modrinth":"shrug-it-off-stb-edition"},{"Id":12244,"Name":"","CurseForge":"enchantsmith","Modrinth":"enchantsmith"},{"Id":12245,"Name":"","CurseForge":"snifferent","Modrinth":""},{"Id":12246,"Name":"","CurseForge":"jei-recipe-history","Modrinth":"jei-recipe-history"},{"Id":12247,"Name":"","CurseForge":"","Modrinth":"yeet"},{"Id":12248,"Name":"Macaw 的小径和路面 (Macaw's Paths and Pavings)","CurseForge":"macaws-paths-and-pavings","Modrinth":"macaws-paths-and-pavings"},{"Id":12249,"Name":"","CurseForge":"chiseled-bookshelf-visualizer","Modrinth":"chiseled-bookshelf-visualizer"},{"Id":12250,"Name":"","CurseForge":"elytra-skins","Modrinth":"elytra-skins"},{"Id":12251,"Name":"","CurseForge":"mcv-biome-makeover-lieonlion","Modrinth":"mcv-biome-makeover-lieonlion"},{"Id":12252,"Name":"","CurseForge":"more-chest-variants-lieonlion","Modrinth":"more-chest-variants-lieonlion"},{"Id":12253,"Name":"","CurseForge":"more-crafting-tables-mct","Modrinth":"more-crafting-tables-lieonlion"},{"Id":12254,"Name":"","CurseForge":"","Modrinth":"cobblemon-quests"},{"Id":12255,"Name":"Classical Alchemy - 新","CurseForge":"akkamaddis-classical-alchemy","Modrinth":""},{"Id":12256,"Name":"彩虹大马 (Big Pony)","CurseForge":"","Modrinth":"big-pony"},{"Id":12257,"Name":"","CurseForge":"qraftyfied","Modrinth":""},{"Id":12258,"Name":"","CurseForge":"theft-mod","Modrinth":"theft"},{"Id":12259,"Name":"","CurseForge":"akkamaddis-golden-glitter","Modrinth":"akkamaddis-golden-glitter"},{"Id":12260,"Name":"","CurseForge":"","Modrinth":"obsidianbucket"},{"Id":12261,"Name":"","CurseForge":"enhanced-annihilation-planes","Modrinth":""},{"Id":12262,"Name":"","CurseForge":"akkamaddis-simple-cthon","Modrinth":"akkamaddis-simple-cthon"},{"Id":12263,"Name":"","CurseForge":"","Modrinth":"heads-hurt-too!"},{"Id":12264,"Name":"","CurseForge":"pooping-animals","Modrinth":""},{"Id":12265,"Name":"","CurseForge":"good-boy","Modrinth":"good-boy"},{"Id":12266,"Name":"","CurseForge":"nethers-overhaul","Modrinth":"nethers-overhaul"},{"Id":12267,"Name":"战斗高塔,启动! (Better Battle Towers)","CurseForge":"better-battle-towers","Modrinth":""},{"Id":12270,"Name":"","CurseForge":"","Modrinth":"axiom"},{"Id":12272,"Name":"","CurseForge":"lilac","Modrinth":"lilac"},{"Id":12273,"Name":"自定义附魔光效 (Custom Colorful Enchantment)","CurseForge":"colorful-enchantment","Modrinth":""},{"Id":12274,"Name":"","CurseForge":"rusticwitchcraft","Modrinth":""},{"Id":12276,"Name":"Sterling and Black - 新","CurseForge":"sterling-and-black","Modrinth":""},{"Id":12279,"Name":"","CurseForge":"boss-and-magic-raid-compat","Modrinth":""},{"Id":12280,"Name":"","CurseForge":"animated-mobs","Modrinth":"boss-and-magic"},{"Id":12282,"Name":"鞘翅 (Backlytra)","CurseForge":"backlytra","Modrinth":""},{"Id":12283,"Name":"","CurseForge":"neapolitans-quality","Modrinth":""},{"Id":12284,"Name":"","CurseForge":"rustic-bop-woods","Modrinth":""},{"Id":12285,"Name":"","CurseForge":"hedgehoggery","Modrinth":""},{"Id":12286,"Name":"","CurseForge":"yawctys-giant-squids","Modrinth":""},{"Id":12287,"Name":"","CurseForge":"no-durability","Modrinth":""},{"Id":12288,"Name":"","CurseForge":"potion-of-armor","Modrinth":"potion-of-armor"},{"Id":12289,"Name":"","CurseForge":"","Modrinth":"wmf"},{"Id":12290,"Name":"","CurseForge":"tenebrous-lands","Modrinth":"tenebrous-lands"},{"Id":12291,"Name":"","CurseForge":"super-better-grass","Modrinth":""},{"Id":12292,"Name":"","CurseForge":"configurable-boss-bars","Modrinth":"configurable-boss-bars"},{"Id":12293,"Name":"","CurseForge":"nuclearcraft-neoteric","Modrinth":"nuclearcraft-neoteric"},{"Id":12294,"Name":"","CurseForge":"beastly-beacons","Modrinth":""},{"Id":12295,"Name":"","CurseForge":"creeplets","Modrinth":"creeplets"},{"Id":12296,"Name":"","CurseForge":"thermoo","Modrinth":"thermoo"},{"Id":12297,"Name":"","CurseForge":"restapi","Modrinth":"rest-api"},{"Id":12298,"Name":"","CurseForge":"","Modrinth":"advanced-ui-scale"},{"Id":12299,"Name":"","CurseForge":"","Modrinth":"umines"},{"Id":12300,"Name":"健康&疾病 (health&disease)","CurseForge":"health-disease","Modrinth":""},{"Id":12303,"Name":"","CurseForge":"","Modrinth":"hd-skins"},{"Id":12305,"Name":"","CurseForge":"sundew","Modrinth":""},{"Id":12306,"Name":"","CurseForge":"undead-boxers","Modrinth":""},{"Id":12307,"Name":"","CurseForge":"aesthetics","Modrinth":"aesthetics"},{"Id":12310,"Name":"中国节 (Chinese Festivals)","CurseForge":"chinese-festivals","Modrinth":"chinese-festivals"},{"Id":12311,"Name":"群青 (Ultramarine)","CurseForge":"ultramarine","Modrinth":"ultramarine"},{"Id":12313,"Name":"","CurseForge":"","Modrinth":"cargo"},{"Id":12315,"Name":"","CurseForge":"dragon-nest-forge-fabric","Modrinth":""},{"Id":12316,"Name":"","CurseForge":"geode-creatures","Modrinth":""},{"Id":12317,"Name":"","CurseForge":"haraldsbetterstructures","Modrinth":""},{"Id":12318,"Name":"","CurseForge":"squake","Modrinth":""},{"Id":12319,"Name":"应用能源2非官方拓展 (AE2 Unofficial Extended)","CurseForge":"ae2-uel-extended","Modrinth":"ae2-uel-extended"},{"Id":12320,"Name":"泰拉瑞亚灾厄 (Terraria Calamity)","CurseForge":"terraria-calamity-mod","Modrinth":""},{"Id":12321,"Name":"","CurseForge":"darkrtp-rtp-random-teleport","Modrinth":"darkrtp"},{"Id":12322,"Name":"","CurseForge":"cute-bears","Modrinth":""},{"Id":12323,"Name":"","CurseForge":"additional-fruits","Modrinth":"additional-fruits"},{"Id":12324,"Name":"更大更好的末地城 (Bigger Better End Cities)","CurseForge":"bigger-better-end-cities","Modrinth":"bigger-better-end-cities"},{"Id":12325,"Name":"","CurseForge":"","Modrinth":"some-peripherals"},{"Id":12326,"Name":"","CurseForge":"reden","Modrinth":"reden"},{"Id":12327,"Name":"","CurseForge":"sparse-structures","Modrinth":"sparsestructures"},{"Id":12328,"Name":"物品冷却持久化 (Persistent Cooldowns)","CurseForge":"persistentcooldowns","Modrinth":""},{"Id":12329,"Name":"","CurseForge":"","Modrinth":"command_extractor"},{"Id":12330,"Name":"","CurseForge":"advancement-based-spawning","Modrinth":"advancement-based-spawning"},{"Id":12332,"Name":"","CurseForge":"heroic-armory-legacy","Modrinth":""},{"Id":12333,"Name":"YUNG 的菜单调整 (YUNG's Menu Tweaks)","CurseForge":"yungs-menu-tweaks","Modrinth":"yungs-menu-tweaks"},{"Id":12333,"Name":"YUNG 的菜单调整 (YUNG's Menu Tweaks)","CurseForge":"yungs-menu-tweaks-neoforge","Modrinth":""},{"Id":12333,"Name":"YUNG 的菜单调整 (YUNG's Menu Tweaks)","CurseForge":"yungs-menu-tweaks-fabric","Modrinth":""},{"Id":12334,"Name":"实体距离 (Entity Distance)","CurseForge":"entity-distance-1-12-2","Modrinth":"entity-distance-1.12.2"},{"Id":12335,"Name":"","CurseForge":"coolesthardcore","Modrinth":"coolest-hardcore"},{"Id":12336,"Name":"","CurseForge":"taxcastlepillager","Modrinth":""},{"Id":12337,"Name":"","CurseForge":"pesky-pirates","Modrinth":"pesky-pirates"},{"Id":12338,"Name":"","CurseForge":"subterrestrial","Modrinth":"subterrestrial"},{"Id":12339,"Name":"","CurseForge":"illusioners-tower","Modrinth":""},{"Id":12340,"Name":"","CurseForge":"bad-npcs","Modrinth":""},{"Id":12341,"Name":"","CurseForge":"darkfeather-golden-feather","Modrinth":"darkfeather"},{"Id":12342,"Name":"","CurseForge":"darkspawn-teleport-to-spawn","Modrinth":"darkspawn"},{"Id":12343,"Name":"","CurseForge":"darksmelting-smelt-armor-and-tools","Modrinth":"darksmelting"},{"Id":12344,"Name":"","CurseForge":"fast-build","Modrinth":""},{"Id":12345,"Name":"数码宝贝宇宙应用怪兽 (Digi Applimobs)","CurseForge":"digi-applimobs","Modrinth":""},{"Id":12346,"Name":"","CurseForge":"duckies","Modrinth":""},{"Id":12347,"Name":"","CurseForge":"dimension-crystals","Modrinth":"dimension-crystals"},{"Id":12348,"Name":"","CurseForge":"mechanical-crafting","Modrinth":""},{"Id":12349,"Name":"","CurseForge":"","Modrinth":"enhancedbookwriting"},{"Id":12350,"Name":"","CurseForge":"player-events","Modrinth":"player-events"},{"Id":12351,"Name":"","CurseForge":"mushlings","Modrinth":""},{"Id":12352,"Name":"","CurseForge":"sky-tribes","Modrinth":""},{"Id":12354,"Name":"","CurseForge":"recipe-enhancements","Modrinth":""},{"Id":12355,"Name":"","CurseForge":"oceanopolis","Modrinth":"oceanopolis"},{"Id":12357,"Name":"","CurseForge":"pumpkillagers-quest","Modrinth":"pumpkillagers-quest"},{"Id":12361,"Name":"","CurseForge":"waterlogged-chests","Modrinth":""},{"Id":12362,"Name":"","CurseForge":"realm-rpg-fallen-adventurers","Modrinth":"realm-rpg-fallen-adventurers"},{"Id":12363,"Name":"","CurseForge":"useful-bats","Modrinth":""},{"Id":12364,"Name":"","CurseForge":"goat-food","Modrinth":""},{"Id":12365,"Name":"","CurseForge":"mobile-beacon-1-18-forge","Modrinth":""},{"Id":12366,"Name":"","CurseForge":"durabuilt","Modrinth":""},{"Id":12367,"Name":"","CurseForge":"cavemans","Modrinth":""},{"Id":12368,"Name":"","CurseForge":"balloon-box","Modrinth":""},{"Id":12369,"Name":"","CurseForge":"campfire-resting","Modrinth":"campfire-resting"},{"Id":12370,"Name":"","CurseForge":"fizzle","Modrinth":""},{"Id":12371,"Name":"","CurseForge":"foamflower","Modrinth":""},{"Id":12372,"Name":"","CurseForge":"grimoire-api","Modrinth":""},{"Id":12373,"Name":"","CurseForge":"cristel-lib","Modrinth":"cristel-lib"},{"Id":12374,"Name":"睡眠质量 / 更多睡眠 (Sleep Quality / More Sleeps)","CurseForge":"more-sleeps","Modrinth":"sleepquality"},{"Id":12375,"Name":"","CurseForge":"o-coracao-da-selva","Modrinth":""},{"Id":12376,"Name":"","CurseForge":"creative-experience","Modrinth":""},{"Id":12377,"Name":"","CurseForge":"more-than-50","Modrinth":""},{"Id":12378,"Name":"","CurseForge":"underground-jungle","Modrinth":"underground-worlds"},{"Id":12379,"Name":"","CurseForge":"forge-soul-like-armors-reworked","Modrinth":""},{"Id":12380,"Name":"","CurseForge":"meds-and-herbs","Modrinth":"meds-and-herbs"},{"Id":12381,"Name":"","CurseForge":"soul-like-monsters-epic-fight-addon","Modrinth":""},{"Id":12382,"Name":"","CurseForge":"souls-like-parry","Modrinth":""},{"Id":12383,"Name":"","CurseForge":"tcdcommons","Modrinth":"tcdcommons"},{"Id":12385,"Name":"自动翻译 (AutoTranslation)","CurseForge":"autotranslation","Modrinth":"autotranslation"},{"Id":12386,"Name":"","CurseForge":"villages-and-pillages","Modrinth":"villages-and-pillages"},{"Id":12387,"Name":"","CurseForge":"nohurtcam-plus","Modrinth":"nohurtcam+"},{"Id":12388,"Name":"","CurseForge":"darker-souls","Modrinth":""},{"Id":12390,"Name":"","CurseForge":"","Modrinth":"spooky-bats"},{"Id":12391,"Name":"","CurseForge":"swutms-extra-dungeons","Modrinth":"swutms-extra-dungeons"},{"Id":12392,"Name":"","CurseForge":"swutms-extra-desert","Modrinth":"swutms-extra-desert"},{"Id":12393,"Name":"","CurseForge":"","Modrinth":"refill-chests"},{"Id":12395,"Name":"","CurseForge":"","Modrinth":"cookeymod"},{"Id":12396,"Name":"","CurseForge":"","Modrinth":"useful-brush"},{"Id":12397,"Name":"","CurseForge":"","Modrinth":"horse-spawn"},{"Id":12398,"Name":"","CurseForge":"tw-resurrection","Modrinth":""},{"Id":12399,"Name":"","CurseForge":"","Modrinth":"dice"},{"Id":12400,"Name":"","CurseForge":"any-lanterns","Modrinth":"any-lanterns!"},{"Id":12401,"Name":"","CurseForge":"horse-tack","Modrinth":""},{"Id":12402,"Name":"","CurseForge":"darkmobs-increase-mob-difficulty","Modrinth":"darkmobs"},{"Id":12403,"Name":"","CurseForge":"","Modrinth":"apollo-the-parrot"},{"Id":12404,"Name":"","CurseForge":"mob-variants","Modrinth":""},{"Id":12405,"Name":"","CurseForge":"galvanization","Modrinth":""},{"Id":12406,"Name":"","CurseForge":"biome-grass-available","Modrinth":"biome-grass-available"},{"Id":12407,"Name":"","CurseForge":"pigment","Modrinth":"pigment"},{"Id":12408,"Name":"","CurseForge":"sunrise-sunset-audio","Modrinth":"sunrise-sunset-audio"},{"Id":12409,"Name":"","CurseForge":"halloween-nighmare","Modrinth":""},{"Id":12410,"Name":"锋芒毕露 (Lookin' sharp)","CurseForge":"lookin-sharp","Modrinth":"lookin-sharp"},{"Id":12411,"Name":"","CurseForge":"halloween-luckyblocks","Modrinth":""},{"Id":12412,"Name":"","CurseForge":"spooky-halloween","Modrinth":""},{"Id":12413,"Name":"","CurseForge":"isle-of-berk-variant-loader","Modrinth":"isle-of-berk-variant-loader"},{"Id":12414,"Name":"","CurseForge":"spooky-arms","Modrinth":""},{"Id":12415,"Name":"","CurseForge":"qraftys-end-villages","Modrinth":""},{"Id":12416,"Name":"","CurseForge":"bed-is-not-too-far-away","Modrinth":"bed-is-not-too-far-away"},{"Id":12417,"Name":"","CurseForge":"","Modrinth":"enderman-tweaks"},{"Id":12421,"Name":"","CurseForge":"decoration-and-furniture","Modrinth":""},{"Id":12423,"Name":"","CurseForge":"formations","Modrinth":"formations"},{"Id":12424,"Name":"","CurseForge":"formations-overworld","Modrinth":"formations-overworld"},{"Id":12425,"Name":"","CurseForge":"formations-nether","Modrinth":"formations-nether"},{"Id":12426,"Name":"","CurseForge":"halloween-spirit","Modrinth":""},{"Id":12427,"Name":"","CurseForge":"glitches-halloween","Modrinth":""},{"Id":12428,"Name":"","CurseForge":"rei-collapsible-entries","Modrinth":"rei-collapsible-entries"},{"Id":12431,"Name":"","CurseForge":"kubevs","Modrinth":"kubevs"},{"Id":12433,"Name":"","CurseForge":"halloween-expansion-food","Modrinth":""},{"Id":12434,"Name":"","CurseForge":"fishy-business-more-fish","Modrinth":"fishy-business"},{"Id":12436,"Name":"","CurseForge":"","Modrinth":"parry"},{"Id":12437,"Name":"","CurseForge":"crab-mob-vote-2023","Modrinth":""},{"Id":12440,"Name":"","CurseForge":"enderswords","Modrinth":"enderswords"},{"Id":12442,"Name":"","CurseForge":"lemons-halloween","Modrinth":""},{"Id":12443,"Name":"","CurseForge":"moon-reborn","Modrinth":""},{"Id":12444,"Name":"","CurseForge":"the-witching-hour","Modrinth":""},{"Id":12445,"Name":"","CurseForge":"hallows-eve","Modrinth":"hallows-eve"},{"Id":12446,"Name":"","CurseForge":"","Modrinth":"chroma-world-border"},{"Id":12447,"Name":"","CurseForge":"just-sword-blocking","Modrinth":""},{"Id":12450,"Name":"","CurseForge":"","Modrinth":"blissful-butterflies"},{"Id":12451,"Name":"銘洛天的怪物增强 (MLTPojectMonster)","CurseForge":"mltpojectmonster","Modrinth":""},{"Id":12452,"Name":"空岛遗物 (Relics of the Sky)","CurseForge":"","Modrinth":"relics-of-the-sky"},{"Id":12454,"Name":"","CurseForge":"ae2-stuff-extended","Modrinth":"ae2-stuff-extended"},{"Id":12455,"Name":"","CurseForge":"butchers-delight-foods","Modrinth":"butchers-delight-foods"},{"Id":12456,"Name":"","CurseForge":"better-falling","Modrinth":"better-falling"},{"Id":12457,"Name":"","CurseForge":"dmcloot","Modrinth":""},{"Id":12458,"Name":"","CurseForge":"simply-stacked-dimensions","Modrinth":""},{"Id":12459,"Name":"","CurseForge":"","Modrinth":"what-are-you-voting-for-2023"},{"Id":12460,"Name":"","CurseForge":"","Modrinth":"what-are-you-voting-for-2022"},{"Id":12461,"Name":"","CurseForge":"immersive-electrocution","Modrinth":""},{"Id":12462,"Name":"","CurseForge":"additional-compression","Modrinth":""},{"Id":12463,"Name":"等价交换团队 (Team ProjectE)","CurseForge":"team-projecte","Modrinth":""},{"Id":12464,"Name":"加速火把社区版 (Torcherino Community Edition)","CurseForge":"torcherino-community-edition","Modrinth":"torcherino-ce"},{"Id":12466,"Name":"","CurseForge":"enchantgiver","Modrinth":""},{"Id":12467,"Name":"","CurseForge":"diabolical-delights","Modrinth":"diabolical-delights"},{"Id":12468,"Name":"","CurseForge":"ore-growth","Modrinth":"ore-growth"},{"Id":12469,"Name":"","CurseForge":"","Modrinth":"real-arrow-tip"},{"Id":12470,"Name":"","CurseForge":"dnt-ancient-city-overhaul","Modrinth":""},{"Id":12472,"Name":"","CurseForge":"cropariaplus","Modrinth":""},{"Id":12473,"Name":"","CurseForge":"soularia","Modrinth":"soularia"},{"Id":12474,"Name":"","CurseForge":"stemaria","Modrinth":"stemaria"},{"Id":12475,"Name":"","CurseForge":"spelunkers-charm-ii","Modrinth":""},{"Id":12476,"Name":"","CurseForge":"structure-essentials-forge-fabric","Modrinth":""},{"Id":12478,"Name":"","CurseForge":"tiny-pals","Modrinth":"tiny-pals"},{"Id":12479,"Name":"紫水晶工艺 (Amethyst Craft)","CurseForge":"","Modrinth":"amethyst-craft"},{"Id":12480,"Name":"奇迹武器 (Weapons of Miracles)","CurseForge":"weapons-of-miracles-epicfight","Modrinth":"weapons-of-miracles"},{"Id":12482,"Name":"","CurseForge":"","Modrinth":"hsrpaths"},{"Id":12484,"Name":"我的世界:地下城法器 (MC Dungeons Artifacts)","CurseForge":"mcdar","Modrinth":"mcdar"},{"Id":12485,"Name":"","CurseForge":"dnt-stronghold-overhaul","Modrinth":""},{"Id":12486,"Name":"","CurseForge":"dnt-swamp-hut-overhaul","Modrinth":""},{"Id":12487,"Name":"","CurseForge":"jaopcagt","Modrinth":"jaopcagt"},{"Id":12488,"Name":"片刻满足 (Smidgeon O' Bliss)","CurseForge":"smidgeon-o-bliss","Modrinth":""},{"Id":12489,"Name":"","CurseForge":"cable-flux","Modrinth":"12.3.5"},{"Id":12490,"Name":"","CurseForge":"jet-and-elias-armors","Modrinth":""},{"Id":12495,"Name":"","CurseForge":"dragon-ice","Modrinth":""},{"Id":12497,"Name":"","CurseForge":"abnorlex-and-cryptids-delight","Modrinth":""},{"Id":12498,"Name":"军团要塞2重制版 (TF2 Stuff - Reloaded)","CurseForge":"tf2-stuff-reloaded","Modrinth":""},{"Id":12499,"Name":"","CurseForge":"time-in-a-bottle-curio-support","Modrinth":""},{"Id":12500,"Name":"","CurseForge":"absolute-ultracraft","Modrinth":"absolute-ultracraft"},{"Id":12501,"Name":"","CurseForge":"more-layered-blocks","Modrinth":"more-layered-blocks"},{"Id":12502,"Name":"混合水生 (Hybrid Aquatic)","CurseForge":"hybrid-aquatic","Modrinth":"hybrid-aquatic"},{"Id":12503,"Name":"","CurseForge":"spectre-creep","Modrinth":""},{"Id":12504,"Name":"资源鸡 (Resource Chickens)","CurseForge":"resource-chickens","Modrinth":""},{"Id":12506,"Name":"板条箱 (Storage Crate)","CurseForge":"storage-crate","Modrinth":"storage-crate"},{"Id":12507,"Name":"","CurseForge":"oculus-particle-fix","Modrinth":"oculus-particle-fix"},{"Id":12508,"Name":"","CurseForge":"urkaz-moon-tools","Modrinth":"urkaz-moon-tools"},{"Id":12509,"Name":"","CurseForge":"the-midnight-lurker","Modrinth":"the-midnight-lurker"},{"Id":12510,"Name":"","CurseForge":"realm-rpg-imps-demons","Modrinth":""},{"Id":12511,"Name":"","CurseForge":"multiverse","Modrinth":"multiverse_mod"},{"Id":12514,"Name":"","CurseForge":"strangecreatures","Modrinth":""},{"Id":12515,"Name":"","CurseForge":"bovines-and-buttercups","Modrinth":"bovines-and-buttercups"},{"Id":12516,"Name":"","CurseForge":"mooblooms","Modrinth":"mooblooms"},{"Id":12518,"Name":"","CurseForge":"water-walking-fix","Modrinth":"water-walking-fix"},{"Id":12519,"Name":"","CurseForge":"water-walking-fix-forge","Modrinth":"water-walking-fix-forge"},{"Id":12520,"Name":"","CurseForge":"","Modrinth":"chicken-nerf"},{"Id":12521,"Name":"","CurseForge":"","Modrinth":"explosive-breeding"},{"Id":12522,"Name":"","CurseForge":"squished","Modrinth":"squished"},{"Id":12523,"Name":"","CurseForge":"russtales-forge","Modrinth":""},{"Id":12524,"Name":"","CurseForge":"trident-alter","Modrinth":""},{"Id":12525,"Name":"","CurseForge":"disenchanter","Modrinth":"disenchanter"},{"Id":12526,"Name":"","CurseForge":"minecraft-dungeons-artifacts","Modrinth":"dungeons-artifacts"},{"Id":12527,"Name":"","CurseForge":"uniquedungeons","Modrinth":""},{"Id":12528,"Name":"","CurseForge":"","Modrinth":"cobbledex"},{"Id":12529,"Name":"","CurseForge":"cobblemon-info","Modrinth":"cobblemon-info"},{"Id":12530,"Name":"末影人革新 (Enderman Overhaul)","CurseForge":"enderman-overhaul","Modrinth":"enderman-overhaul"},{"Id":12531,"Name":"","CurseForge":"cloak-dagger","Modrinth":"cloak-and-dagger"},{"Id":12532,"Name":"别创建新世界! (OWorld2Create)","CurseForge":"oworld2create","Modrinth":""},{"Id":12532,"Name":"别创建新世界! (OWorld2Create)","CurseForge":"oworld2create-refoxed","Modrinth":""},{"Id":12533,"Name":"","CurseForge":"dungeons-in-dimensions","Modrinth":""},{"Id":12534,"Name":"","CurseForge":"infernal-bugz","Modrinth":""},{"Id":12535,"Name":"","CurseForge":"","Modrinth":"cobblemon-gts"},{"Id":12536,"Name":"","CurseForge":"cobblepedia","Modrinth":"cobblepedia"},{"Id":12538,"Name":"","CurseForge":"","Modrinth":"cobblemon-integrations"},{"Id":12539,"Name":"果栈丰萦JEI支持 (Fruitstack Jei Support)","CurseForge":"fruitstack-jei-support","Modrinth":"fruitstack-jei-support"},{"Id":12540,"Name":"","CurseForge":"dungeons-artifacts","Modrinth":""},{"Id":12541,"Name":"","CurseForge":"the-monkey-bomb","Modrinth":"the-monkey-bomb"},{"Id":12542,"Name":"","CurseForge":"","Modrinth":"cobblemon-hunt"},{"Id":12543,"Name":"","CurseForge":"ancient-animals","Modrinth":""},{"Id":12544,"Name":"","CurseForge":"beavery","Modrinth":"beavery"},{"Id":12545,"Name":"","CurseForge":"qraftys-halloween-villages","Modrinth":""},{"Id":12546,"Name":"","CurseForge":"vemerioraptor","Modrinth":""},{"Id":12547,"Name":"毙鲨技 (technique to kill thrasher)","CurseForge":"technique-to-kill-thrasher","Modrinth":""},{"Id":12548,"Name":"","CurseForge":"the-open-sauce-toast-killer","Modrinth":"the-open-sauce-toast-killer"},{"Id":12549,"Name":"","CurseForge":"","Modrinth":"chicken-nerf-reforged"},{"Id":12550,"Name":"","CurseForge":"regex-search","Modrinth":"regex-search"},{"Id":12551,"Name":"更好的起床位置 (Better Wake-up Position)","CurseForge":"better-wake-up-position","Modrinth":"better-wake-up-position"},{"Id":12552,"Name":"","CurseForge":"railroad-blocks","Modrinth":"railroad-blocks"},{"Id":12554,"Name":"","CurseForge":"fossilmon","Modrinth":"fossilmon"},{"Id":12555,"Name":"资源包惰性重载/抑验怠载 (0Pack2Reload/OPack2Reload)","CurseForge":"opack2reload","Modrinth":"0pack2reload"},{"Id":12556,"Name":"","CurseForge":"wits","Modrinth":"wits"},{"Id":12557,"Name":"","CurseForge":"","Modrinth":"motleys-music-discs"},{"Id":12559,"Name":"","CurseForge":"husks-drop-sand","Modrinth":"husks-drop-sand"},{"Id":12560,"Name":"","CurseForge":"patched","Modrinth":"patched"},{"Id":12561,"Name":"","CurseForge":"","Modrinth":"snakewheel-attack!"},{"Id":12564,"Name":"","CurseForge":"configurable-falls","Modrinth":"configurable-falls"},{"Id":12565,"Name":"","CurseForge":"just-enough-mekanism-multiblocks","Modrinth":"just-enough-mekanism-multiblocks"},{"Id":12566,"Name":"可投掷黏液球/圆液多掷 (ThrowableSlimeball)","CurseForge":"throwableslimeball","Modrinth":""},{"Id":12567,"Name":"死亡笔记 (Death Note)","CurseForge":"death-note","Modrinth":""},{"Id":12569,"Name":"","CurseForge":"icicle","Modrinth":""},{"Id":12573,"Name":"","CurseForge":"surface-mushrooms","Modrinth":"surface-mushrooms"},{"Id":12574,"Name":"","CurseForge":"dont-void-arrows","Modrinth":"dont-void-arrows"},{"Id":12575,"Name":"","CurseForge":"potion-cauldron","Modrinth":"potion-cauldron"},{"Id":12576,"Name":"","CurseForge":"hippo-keystrokes","Modrinth":"hippo-keystrokes"},{"Id":12577,"Name":"","CurseForge":"spiritcaller-backport","Modrinth":""},{"Id":12579,"Name":"","CurseForge":"kindled","Modrinth":""},{"Id":12581,"Name":"","CurseForge":"mushroom-trees","Modrinth":""},{"Id":12583,"Name":"骷髅苦力怕 (Skeleton Creeper)","CurseForge":"","Modrinth":"skeleton-creeper"},{"Id":12584,"Name":"","CurseForge":"better-chunk-loading-forge-fabric","Modrinth":""},{"Id":12589,"Name":"","CurseForge":"mushroomified","Modrinth":""},{"Id":12590,"Name":"","CurseForge":"soul-like-boss-epic-fight-addon","Modrinth":""},{"Id":12591,"Name":"","CurseForge":"moderately-enough-effect-descriptions-meed-a-jeed-addon","Modrinth":"moderately-enough-effect-descriptions-(meed)-jeed-addon"},{"Id":12591,"Name":"Moderately Enough Effect Descriptions - 新,未及时更新","CurseForge":"","Modrinth":"moderately-enough-effect-descriptions-meed"},{"Id":12592,"Name":"Alex 的洞穴 (Alex's Caves)","CurseForge":"alexs-caves","Modrinth":"alexs-caves"},{"Id":12593,"Name":"","CurseForge":"bow-spam-be-gone","Modrinth":"bow-spam-be-gone"},{"Id":12594,"Name":"","CurseForge":"lmdcraft","Modrinth":""},{"Id":12595,"Name":"硬核生存 (Hardcore Survival)","CurseForge":"hardcore-survival","Modrinth":"hardcore-survival"},{"Id":12598,"Name":"","CurseForge":"dynamic-village","Modrinth":"dynamic-village"},{"Id":12599,"Name":"","CurseForge":"","Modrinth":"even-better-archeology"},{"Id":12601,"Name":"","CurseForge":"jammies","Modrinth":"jammies"},{"Id":12602,"Name":"","CurseForge":"dj-villager","Modrinth":""},{"Id":12603,"Name":"","CurseForge":"ars-energistique","Modrinth":"ars-energistique"},{"Id":12604,"Name":"聊天图片 (ChatImages)","CurseForge":"chatimages","Modrinth":"chatimageN"},{"Id":12605,"Name":"机械动力:更多钻头 (Create: More Drill Heads)","CurseForge":"create-more-drill-heads","Modrinth":"create-more-drill-heads"},{"Id":12606,"Name":"机械动力:液体燃料 (Create: Liquid Fuel)","CurseForge":"create-liquid-fuel","Modrinth":"create-liquid-fuel"},{"Id":12607,"Name":"","CurseForge":"","Modrinth":"rays-cool-armor"},{"Id":12608,"Name":"EEEAB的生物 (EEEAB's Mobs)","CurseForge":"eeeabs-mobs","Modrinth":"eeeab-s-mobs"},{"Id":12609,"Name":"","CurseForge":"","Modrinth":"obfuscated-accessibility"},{"Id":12610,"Name":"","CurseForge":"regional-chat","Modrinth":"regional-chat"},{"Id":12611,"Name":"","CurseForge":"zenith-attributes","Modrinth":"zenith-attributes"},{"Id":12612,"Name":"","CurseForge":"","Modrinth":"smartygui"},{"Id":12615,"Name":"选择性成就共享 (Selectlative)","CurseForge":"selectlative","Modrinth":""},{"Id":12616,"Name":"","CurseForge":"better-compressed-blocks","Modrinth":"better-compressed-blocks"},{"Id":12617,"Name":"","CurseForge":"fakerlib","Modrinth":"fakerlib"},{"Id":12619,"Name":"","CurseForge":"potion-id-packet-fixer","Modrinth":"potion-fix"},{"Id":12620,"Name":"全能魔杖 (Omniwand)","CurseForge":"omniwand","Modrinth":"omniwand"},{"Id":12624,"Name":"按键绑定补丁 (Key Binding Patch)","CurseForge":"key-binding-patch","Modrinth":"key-binding-patch"},{"Id":12625,"Name":"","CurseForge":"packet-fixer","Modrinth":"packet-fixer"},{"Id":12626,"Name":"","CurseForge":"new-xenchant","Modrinth":"new-xenchant"},{"Id":12627,"Name":"","CurseForge":"more-brewable-potions","Modrinth":"more-brewable-potions"},{"Id":12629,"Name":"","CurseForge":"forge-cit","Modrinth":""},{"Id":12630,"Name":"","CurseForge":"","Modrinth":"diamethyst-golem"},{"Id":12631,"Name":"","CurseForge":"you-are-seeing-dungeons","Modrinth":"you-are-seeing-dungeons"},{"Id":12633,"Name":"","CurseForge":"just-leveling","Modrinth":"just-leveling"},{"Id":12634,"Name":"","CurseForge":"create-edible-belts","Modrinth":""},{"Id":12635,"Name":"","CurseForge":"tact","Modrinth":""},{"Id":12636,"Name":"派蒙! (Paimon)","CurseForge":"paimon","Modrinth":""},{"Id":12636,"Name":"派蒙! (Paimon)","CurseForge":"paimon-fabric","Modrinth":""},{"Id":12637,"Name":"铯 (Cesium Storage Format)","CurseForge":"","Modrinth":"cesium"},{"Id":12638,"Name":"","CurseForge":"salvage-furnace","Modrinth":"salvage-furnace"},{"Id":12639,"Name":"","CurseForge":"eager-beavers","Modrinth":"eager-beavers"},{"Id":12640,"Name":"","CurseForge":"laendli-transport","Modrinth":""},{"Id":12641,"Name":"","CurseForge":"witchs-artifacts","Modrinth":""},{"Id":12642,"Name":"","CurseForge":"the-pumpkin-challenge","Modrinth":"the-pumpkin-challenge"},{"Id":12643,"Name":"","CurseForge":"loot-crates-plus","Modrinth":"loot+"},{"Id":12645,"Name":"藤 (Fuji)","CurseForge":"fuji","Modrinth":"fuji"},{"Id":12646,"Name":"","CurseForge":"legendary-origins","Modrinth":"legendary-origins"},{"Id":12647,"Name":"","CurseForge":"flow","Modrinth":"flow"},{"Id":12648,"Name":"","CurseForge":"lit-it-up","Modrinth":"lit-it-up"},{"Id":12649,"Name":"招财猫 (Lucky Cat)","CurseForge":"lucky-cat","Modrinth":""},{"Id":12650,"Name":"","CurseForge":"mc-mods-the-wizard-gear","Modrinth":""},{"Id":12651,"Name":"","CurseForge":"better-tools-and-armor","Modrinth":"better-tools-and-armor"},{"Id":12652,"Name":"完莓无缺 (Berrfect)","CurseForge":"berrfect","Modrinth":"berrfect"},{"Id":12653,"Name":"","CurseForge":"mazemanicore","Modrinth":""},{"Id":12654,"Name":"","CurseForge":"uncanney-valley","Modrinth":""},{"Id":12655,"Name":"","CurseForge":"","Modrinth":"cannibal-conundrum"},{"Id":12656,"Name":"","CurseForge":"","Modrinth":"glass-carpet"},{"Id":12657,"Name":"","CurseForge":"","Modrinth":"quality-sounds"},{"Id":12658,"Name":"","CurseForge":"dolt-compat","Modrinth":""},{"Id":12659,"Name":"","CurseForge":"embeddium-extension","Modrinth":""},{"Id":12660,"Name":"","CurseForge":"wakes","Modrinth":"wakes"},{"Id":12661,"Name":"","CurseForge":"create-immersive-portal-integration","Modrinth":""},{"Id":12662,"Name":"","CurseForge":"dangers-in-the-darkness","Modrinth":""},{"Id":12663,"Name":"","CurseForge":"spookycraft","Modrinth":""},{"Id":12664,"Name":"","CurseForge":"kelpie","Modrinth":"kelpie"},{"Id":12665,"Name":"","CurseForge":"","Modrinth":"viavanillaplus"},{"Id":12666,"Name":"","CurseForge":"dead-mans-abyss","Modrinth":""},{"Id":12667,"Name":"","CurseForge":"the-leagues-of-the-dead","Modrinth":""},{"Id":12668,"Name":"","CurseForge":"centered-crosshair","Modrinth":"centered-crosshair"},{"Id":12669,"Name":"","CurseForge":"","Modrinth":"create-fabric-sodium-fix"},{"Id":12670,"Name":"","CurseForge":"realm-rpg-creep-crop","Modrinth":""},{"Id":12671,"Name":"","CurseForge":"fexcraft-common-library","Modrinth":""},{"Id":12673,"Name":"自动钓鱼XPlus版 (XPlus AutoFish)","CurseForge":"x-autofish","Modrinth":"x+-autofish"},{"Id":12674,"Name":"","CurseForge":"befixment","Modrinth":"bewitchment-rei"},{"Id":12675,"Name":"","CurseForge":"more-magic","Modrinth":"more-magic"},{"Id":12676,"Name":"","CurseForge":"cheat-command","Modrinth":""},{"Id":12677,"Name":"","CurseForge":"","Modrinth":"screenshot-organisation"},{"Id":12678,"Name":"","CurseForge":"pumpkinpal","Modrinth":""},{"Id":12680,"Name":"Johnny的生物笔记 (Johnny's biological notes)","CurseForge":"johnnys-biological-notes","Modrinth":"johnnys-biological-notes-1.0-beta"},{"Id":12681,"Name":"","CurseForge":"autodrop","Modrinth":"autodrop"},{"Id":12682,"Name":"","CurseForge":"mutation-rerun","Modrinth":""},{"Id":12684,"Name":"","CurseForge":"","Modrinth":"compactspawners"},{"Id":12686,"Name":"","CurseForge":"corundum-guardian-reborn","Modrinth":""},{"Id":12687,"Name":"","CurseForge":"autofire-bow-enchant","Modrinth":""},{"Id":12690,"Name":"","CurseForge":"rideableravagers","Modrinth":"rideableravagers"},{"Id":12691,"Name":"被动搜索栏 (Passive SearchBar)","CurseForge":"passive-searchbar","Modrinth":""},{"Id":12692,"Name":"","CurseForge":"flower-mimics","Modrinth":"flower-mimics"},{"Id":12693,"Name":"纯素乐事 (Vegan Delight)","CurseForge":"vegan-delight","Modrinth":"vegan-delight"},{"Id":12694,"Name":"","CurseForge":"bloodmooncmsfix-bmcmsfix","Modrinth":""},{"Id":12695,"Name":"","CurseForge":"evoodooers","Modrinth":""},{"Id":12696,"Name":"","CurseForge":"giant-overhaul","Modrinth":""},{"Id":12697,"Name":"","CurseForge":"","Modrinth":"torohealth-damage-indicators-updated"},{"Id":12698,"Name":"","CurseForge":"boliviamod","Modrinth":""},{"Id":12699,"Name":"Leawind 的第三人称 (Leawind's Third Person)","CurseForge":"leawind-third-person","Modrinth":"leawind-third-person"},{"Id":12700,"Name":"","CurseForge":"fabled-weaponry","Modrinth":""},{"Id":12701,"Name":"","CurseForge":"lazurite","Modrinth":"lazurite"},{"Id":12702,"Name":"下界葡园 (Let's Do: NetherVinery)","CurseForge":"lets-do-nethervinery","Modrinth":"lets-do-nethervinery"},{"Id":12703,"Name":"发光梯子/洇荧登纵 (Shinny Ladders)","CurseForge":"shinnyladders","Modrinth":""},{"Id":12704,"Name":"","CurseForge":"macaws-holidays","Modrinth":"macaws-holidays"},{"Id":12705,"Name":"","CurseForge":"unions-upgrade-scrolls","Modrinth":""},{"Id":12706,"Name":"","CurseForge":"torohealth-unofficial","Modrinth":""},{"Id":12707,"Name":"","CurseForge":"rebindallthekeys","Modrinth":"rebind-all-the-keys"},{"Id":12708,"Name":"","CurseForge":"pocketwatch2","Modrinth":"pocketwatch"},{"Id":12709,"Name":"","CurseForge":"pick-blockstate","Modrinth":"pickblockstate"},{"Id":12710,"Name":"满同态核心 (Epimorphism Core)","CurseForge":"","Modrinth":"epcore"},{"Id":12711,"Name":"","CurseForge":"oh-my-sherd","Modrinth":""},{"Id":12712,"Name":"","CurseForge":"archaeology-banners","Modrinth":"archaeology-banners"},{"Id":12713,"Name":"","CurseForge":"mobvote-2023-crab","Modrinth":"mobvote-2023-crab"},{"Id":12714,"Name":"","CurseForge":"totem-curse","Modrinth":""},{"Id":12716,"Name":"","CurseForge":"zombies-are-real","Modrinth":""},{"Id":12717,"Name":"TaC:绿葡萄附属包 (TaC:LesRaisins Append Pack)","CurseForge":"timeless-and-classics-guns-lesraisins-append-pack","Modrinth":"lesraisins-weapon"},{"Id":12718,"Name":"聊天记录保存 (Permanent ChatLogs)","CurseForge":"permanent-chat-logs","Modrinth":"permanent-chatlogs"},{"Id":12719,"Name":"","CurseForge":"mob-strength","Modrinth":"mob-strength"},{"Id":12720,"Name":"","CurseForge":"catastrophemod","Modrinth":""},{"Id":12721,"Name":"水发电机 (Water Generators)","CurseForge":"","Modrinth":"water-generators"},{"Id":12722,"Name":"","CurseForge":"fishes-undead-rise-ye","Modrinth":""},{"Id":12723,"Name":"","CurseForge":"nameless-servers","Modrinth":"nameless-servers"},{"Id":12724,"Name":"","CurseForge":"noisium","Modrinth":"noisium"},{"Id":12725,"Name":"","CurseForge":"","Modrinth":"embedded_assets"},{"Id":12726,"Name":"","CurseForge":"creative-library","Modrinth":"creative-library"},{"Id":12727,"Name":"","CurseForge":"independent-gizmo","Modrinth":"independent-gizmo"},{"Id":12728,"Name":"","CurseForge":"jackocache","Modrinth":"jackocache"},{"Id":12729,"Name":"","CurseForge":"creepy-creepers","Modrinth":""},{"Id":12730,"Name":"","CurseForge":"modular-item-api","Modrinth":"modular-item-api"},{"Id":12730,"Name":"","CurseForge":"truly-modular-arsenal","Modrinth":"truly-modular-arsenal"},{"Id":12730,"Name":"","CurseForge":"truly-modular-archery","Modrinth":"truly-modular-archery"},{"Id":12730,"Name":"","CurseForge":"truly-modular-armory","Modrinth":"truly-modular-armory"},{"Id":12732,"Name":"","CurseForge":"","Modrinth":"actionhunger"},{"Id":12733,"Name":"","CurseForge":"trafficcraft","Modrinth":"trafficcraft"},{"Id":12734,"Name":"","CurseForge":"banilla-hammers","Modrinth":"banilla-hammers"},{"Id":12735,"Name":"一起火锅 (EveryXHotpot)","CurseForge":"everyxhotpot","Modrinth":"every-x-hotpot"},{"Id":12735,"Name":"一起火锅 (EveryXHotpot)","CurseForge":"everyx-hotpot","Modrinth":""},{"Id":12736,"Name":"","CurseForge":"","Modrinth":"hira-hira"},{"Id":12737,"Name":"","CurseForge":"tierability","Modrinth":"tierability"},{"Id":12738,"Name":"","CurseForge":"soul-collector","Modrinth":"soul-collector"},{"Id":12739,"Name":"","CurseForge":"","Modrinth":"jime"},{"Id":12740,"Name":"","CurseForge":"","Modrinth":"nota"},{"Id":12742,"Name":"","CurseForge":"","Modrinth":"lighty"},{"Id":12743,"Name":"","CurseForge":"echo","Modrinth":"echo"},{"Id":12744,"Name":"","CurseForge":"","Modrinth":"shieldindicator"},{"Id":12746,"Name":"镧 (Lanthanum)","CurseForge":"lanthanum","Modrinth":"lanthanum"},{"Id":12747,"Name":"","CurseForge":"charge-thrower","Modrinth":""},{"Id":12749,"Name":"王者遗灰 (Champion's Ashes)","CurseForge":"champions-ashes","Modrinth":""},{"Id":12751,"Name":"","CurseForge":"jade-addons-ic2classic","Modrinth":"ic2cjadeaddon"},{"Id":12752,"Name":"","CurseForge":"sit1","Modrinth":"sit!"},{"Id":12753,"Name":"","CurseForge":"monnef-core","Modrinth":""},{"Id":12754,"Name":"","CurseForge":"robs-floating-islands","Modrinth":"robs-floating-islands"},{"Id":12756,"Name":"眼镜 (Glasses)","CurseForge":"glasses","Modrinth":"glasses"},{"Id":12758,"Name":"","CurseForge":"gem-crabs-1-19","Modrinth":""},{"Id":12759,"Name":"","CurseForge":"berrybush-magic","Modrinth":""},{"Id":12760,"Name":"","CurseForge":"archers","Modrinth":"archers"},{"Id":12761,"Name":"数据包/游戏规则菜单 (Datapack/Gamerule Menus)","CurseForge":"","Modrinth":"packrule-menus"},{"Id":12762,"Name":"","CurseForge":"inventory-backups","Modrinth":""},{"Id":12763,"Name":"","CurseForge":"rideablepolarbears","Modrinth":"rideablepolarbears"},{"Id":12764,"Name":"","CurseForge":"cobblemon-lucky-blocks","Modrinth":""},{"Id":12765,"Name":"鸡蛋乐事 (Egg Delight)","CurseForge":"egg-delight","Modrinth":"egg-delight"},{"Id":12766,"Name":"","CurseForge":"portable-nether","Modrinth":""},{"Id":12766,"Name":"","CurseForge":"portable-nether-fabric","Modrinth":""},{"Id":12767,"Name":"","CurseForge":"","Modrinth":"resourceful-block-sounds"},{"Id":12769,"Name":"","CurseForge":"the-starved-stalker","Modrinth":"the-starved-stalker"},{"Id":12770,"Name":"","CurseForge":"toms-peripherals","Modrinth":"toms-peripherals"},{"Id":12771,"Name":"","CurseForge":"croptopia-delight","Modrinth":"croptopia-delight"},{"Id":12772,"Name":"","CurseForge":"","Modrinth":"no-mining-cooldown"},{"Id":12773,"Name":"次元科技装饰方块 (Futuristic Decor)","CurseForge":"futuristic-decor","Modrinth":""},{"Id":12775,"Name":"饰品望远镜 (Spyglass of Curios)","CurseForge":"spyglass-of-curios","Modrinth":"spyglass-of-curios"},{"Id":12779,"Name":"","CurseForge":"ssr","Modrinth":""},{"Id":12780,"Name":"","CurseForge":"petal","Modrinth":"petal"},{"Id":12781,"Name":"","CurseForge":"creatures-of-runeterra","Modrinth":"cor"},{"Id":12782,"Name":"","CurseForge":"from-another-world","Modrinth":"from-another-world"},{"Id":12783,"Name":"","CurseForge":"pumpkin-moon","Modrinth":"pumpkin-moon"},{"Id":12784,"Name":"","CurseForge":"zombie-onslaught","Modrinth":"zombie-onslaught"},{"Id":12785,"Name":"","CurseForge":"neighborly","Modrinth":""},{"Id":12786,"Name":"","CurseForge":"natural-progressions","Modrinth":"natural-progression"},{"Id":12787,"Name":"","CurseForge":"charged-explosives","Modrinth":"charged-explosives"},{"Id":12788,"Name":"","CurseForge":"pulver","Modrinth":"pulver"},{"Id":12789,"Name":"","CurseForge":"","Modrinth":"allow-editing-player-data"},{"Id":12790,"Name":"","CurseForge":"apple-crates","Modrinth":"apple-crates"},{"Id":12792,"Name":"更好的末地 Forge 版 (BetterEnd (Forge))","CurseForge":"betterend-forge-port","Modrinth":""},{"Id":12793,"Name":"","CurseForge":"the-corpse-stalker-cave-dweller-mod","Modrinth":""},{"Id":12794,"Name":"","CurseForge":"ciscos-armoury","Modrinth":""},{"Id":12795,"Name":"","CurseForge":"portable-mobs","Modrinth":""},{"Id":12796,"Name":"","CurseForge":"deserts-and-dunes","Modrinth":""},{"Id":12797,"Name":"","CurseForge":"","Modrinth":"mcfc"},{"Id":12798,"Name":"","CurseForge":"box-of-horrors","Modrinth":"the-box-of-horrors"},{"Id":12799,"Name":"","CurseForge":"chat-colours","Modrinth":"chat-colours"},{"Id":12800,"Name":"通用机械武器 (Mekanism: Weapons)","CurseForge":"mekanism-weapons","Modrinth":""},{"Id":12801,"Name":"","CurseForge":"vanilla-reflex","Modrinth":"vanilla-reflex"},{"Id":12802,"Name":"鞘翅飞行抬头显示:重生 (FlightHUD: Reborn)","CurseForge":"flighthud-reborn","Modrinth":""},{"Id":12803,"Name":"星月附魔 (Celestial Enchantments)","CurseForge":"celestial-enchantments","Modrinth":""},{"Id":12804,"Name":"洁净天空 (ClearSky)","CurseForge":"clearsky","Modrinth":""},{"Id":12805,"Name":"","CurseForge":"educate-nitwit","Modrinth":""},{"Id":12806,"Name":"","CurseForge":"damage-spawns-mobs","Modrinth":""},{"Id":12807,"Name":"","CurseForge":"decorative-sniffer-egg","Modrinth":"decorative-sniffer-egg"},{"Id":12808,"Name":"","CurseForge":"gilded-sherds","Modrinth":"gilded-sherds"},{"Id":12809,"Name":"","CurseForge":"camps-castles-carriages","Modrinth":""},{"Id":12810,"Name":"","CurseForge":"rainbow-reef","Modrinth":"rainbow-reef"},{"Id":12811,"Name":"","CurseForge":"advancement-no-more","Modrinth":"advancement-no-more"},{"Id":12812,"Name":"","CurseForge":"aqua-geode","Modrinth":""},{"Id":12814,"Name":"","CurseForge":"medieval-buildings","Modrinth":"medieval-buildings"},{"Id":12817,"Name":"","CurseForge":"","Modrinth":"you-thief-remastered-edition"},{"Id":12819,"Name":"","CurseForge":"more-slabs-stairs-and-walls","Modrinth":"more-slabs-stairs-and-walls"},{"Id":12820,"Name":"","CurseForge":"caves-canyons","Modrinth":""},{"Id":12821,"Name":"龙骑士重制版延续 (Dragon Mounts Legacy Continued)","CurseForge":"dragon-mounts-legacy-continued","Modrinth":"dragon-mounts-legacy-continued"},{"Id":12822,"Name":"","CurseForge":"chloride-mod","Modrinth":"chloride"},{"Id":12823,"Name":"","CurseForge":"aggro-indicator","Modrinth":"aggroindicator"},{"Id":12824,"Name":"","CurseForge":"haveasoltime","Modrinth":"haveasoltime"},{"Id":12825,"Name":"","CurseForge":"tothestars","Modrinth":"tothestars"},{"Id":12826,"Name":"","CurseForge":"translater","Modrinth":"translater"},{"Id":12827,"Name":"","CurseForge":"localized-chat","Modrinth":"localized-chat"},{"Id":12828,"Name":"","CurseForge":"prominent-create","Modrinth":""},{"Id":12829,"Name":"","CurseForge":"bad-lightning-no-cookie","Modrinth":""},{"Id":12830,"Name":"装备标准 (EquipmentStandard)","CurseForge":"equipment-standard","Modrinth":"equipment-standard"},{"Id":12831,"Name":"","CurseForge":"terra-armory","Modrinth":"terra-armory"},{"Id":12832,"Name":"进阶附魔 (Advanced Enchantments)","CurseForge":"advanced-enchantments","Modrinth":"advanced-enchantments"},{"Id":12833,"Name":"","CurseForge":"oaks-nature","Modrinth":"oaks-nature"},{"Id":12834,"Name":"","CurseForge":"geophilic-reforged","Modrinth":""},{"Id":12835,"Name":"延迟监视:移植版 (LagGogglesLegacy)","CurseForge":"lglegacy","Modrinth":"lglegacy"},{"Id":12836,"Name":"","CurseForge":"smooth-scrolling-refurbished","Modrinth":"smooth-scrolling-refurbished"},{"Id":12837,"Name":"","CurseForge":"medieval-weapons-pack","Modrinth":"medieval-weapons-pack"},{"Id":12838,"Name":"星月遗物 (Celestial Artifacts)","CurseForge":"celestial-artifacts","Modrinth":""},{"Id":12840,"Name":"","CurseForge":"perfect-mob-farm","Modrinth":""},{"Id":12841,"Name":"","CurseForge":"smart-render","Modrinth":""},{"Id":12841,"Name":"","CurseForge":"smartrender","Modrinth":""},{"Id":12842,"Name":"","CurseForge":"power-adapters","Modrinth":"power-adapters"},{"Id":12843,"Name":"丝绸开发库 (Silk API)","CurseForge":"silk-api","Modrinth":"silk-api"},{"Id":12844,"Name":"媒质工程 (Mediaworks)","CurseForge":"","Modrinth":"mediaworks"},{"Id":12845,"Name":"","CurseForge":"chestesp","Modrinth":""},{"Id":12846,"Name":"钌 (Ruthenium)","CurseForge":"","Modrinth":"ruthenium"},{"Id":12848,"Name":"","CurseForge":"spirit-walker","Modrinth":"spirit-walker"},{"Id":12849,"Name":"","CurseForge":"gcyr","Modrinth":"gcyr"},{"Id":12850,"Name":"格雷科技现代版 (GregTechCEu Modern)","CurseForge":"gregtechceu-modern","Modrinth":"gregtechceu-modern"},{"Id":12851,"Name":"咒术器具 (Intarsia)","CurseForge":"","Modrinth":"intarsia"},{"Id":12852,"Name":"","CurseForge":"instant-village-building","Modrinth":""},{"Id":12854,"Name":"","CurseForge":"nbt","Modrinth":"nbt"},{"Id":12856,"Name":"","CurseForge":"separated-leaves","Modrinth":"separatedleaves"},{"Id":12857,"Name":"PangTeen的平凡冒险 (PangTeen's Immortal Adventure)","CurseForge":"pangteens-immortal-adventure","Modrinth":"pangteens-immortal-adventure"},{"Id":12858,"Name":"简单商店 (Simple Shops)","CurseForge":"simple-shops","Modrinth":"simpleshops"},{"Id":12859,"Name":"仁慈的世界边界 (ForgivingBorder)","CurseForge":"forgiving-border","Modrinth":""},{"Id":12860,"Name":"","CurseForge":"snow-mercy","Modrinth":""},{"Id":12862,"Name":"","CurseForge":"","Modrinth":"blocky-bubbles"},{"Id":12863,"Name":"空投供应 (Airdrop Supply)","CurseForge":"airdrop-supply","Modrinth":""},{"Id":12864,"Name":"","CurseForge":"refined-proxy","Modrinth":""},{"Id":12866,"Name":"","CurseForge":"pickable-pets","Modrinth":"pickable-pets"},{"Id":12867,"Name":"","CurseForge":"snow-mercy-forge","Modrinth":""},{"Id":12870,"Name":"","CurseForge":"bouncestyles","Modrinth":"bouncestyles"},{"Id":12871,"Name":"","CurseForge":"","Modrinth":"better-beds-reforged"},{"Id":12872,"Name":"不羁乐事 (Untamed Delight)","CurseForge":"untamed-delight","Modrinth":""},{"Id":12873,"Name":"","CurseForge":"monster-no-armor-in-slar","Modrinth":""},{"Id":12875,"Name":"舞动的漏斗 (Dancing Hoppers)","CurseForge":"dancing-hoppers","Modrinth":"dancing-hoppers"},{"Id":12876,"Name":"铁砧配方 (Anvil Crafting)","CurseForge":"anvil-crafting","Modrinth":"anvil-crafting"},{"Id":12877,"Name":"","CurseForge":"ender-chested","Modrinth":"ender-chested"},{"Id":12878,"Name":"","CurseForge":"","Modrinth":"skull-vision"},{"Id":12879,"Name":"","CurseForge":"prefabricated-structures","Modrinth":"prefabricated-structures"},{"Id":12880,"Name":"","CurseForge":"rebirth","Modrinth":"rebirth-paintings"},{"Id":12881,"Name":"紫水晶工具2 (Amethyst Tools Mod 1.2x)","CurseForge":"amethyst-tools-2","Modrinth":""},{"Id":12882,"Name":"驯兽师 (Mob Pets)","CurseForge":"mob-pets","Modrinth":""},{"Id":12884,"Name":"","CurseForge":"ultimate-compression","Modrinth":"ultimate-compression"},{"Id":12886,"Name":"","CurseForge":"farming-in-rain","Modrinth":""},{"Id":12887,"Name":"祸乱鬼魅 [FORGE] (Bosses of Mass Destruction [FORGE])","CurseForge":"bosses-of-mass-destruction-forge","Modrinth":"bosses-of-mass-destruction-forge"},{"Id":12888,"Name":"","CurseForge":"armor-set-bonuses","Modrinth":"armor-set-bonuses"},{"Id":12888,"Name":"","CurseForge":"armor-set-bonuses-fabric","Modrinth":""},{"Id":12889,"Name":"","CurseForge":"nemos-creatures","Modrinth":"nemos-creatures"},{"Id":12890,"Name":"","CurseForge":"immersive-jungles","Modrinth":"immersive-jungles"},{"Id":12892,"Name":"局部气候&风暴 - 重置版 (Weather 2 - Remastered)","CurseForge":"weather-2-remastered","Modrinth":""},{"Id":12894,"Name":"","CurseForge":"phantoms-of-the-end","Modrinth":""},{"Id":12895,"Name":"","CurseForge":"diamond-and-emerald-farming-mod","Modrinth":""},{"Id":12896,"Name":"","CurseForge":"blood-and-gore","Modrinth":""},{"Id":12897,"Name":"","CurseForge":"nonetherportal","Modrinth":"no-nether-portal"},{"Id":12898,"Name":"","CurseForge":"necronomicon","Modrinth":"necronomicon"},{"Id":12899,"Name":"","CurseForge":"showcase-item","Modrinth":"showcase-item"},{"Id":12900,"Name":"","CurseForge":"eldritch-end","Modrinth":"eldritch-end"},{"Id":12902,"Name":"","CurseForge":"quit-or-not","Modrinth":""},{"Id":12903,"Name":"","CurseForge":"spelled-mobs","Modrinth":""},{"Id":12904,"Name":"","CurseForge":"let-fish-love","Modrinth":""},{"Id":12905,"Name":"拾光定影 (Exposure)","CurseForge":"exposure","Modrinth":"exposure"},{"Id":12906,"Name":"","CurseForge":"","Modrinth":"fast-portals"},{"Id":12907,"Name":"","CurseForge":"pick-up-me-please","Modrinth":"pickup-me"},{"Id":12908,"Name":"","CurseForge":"bouncy-creepers","Modrinth":""},{"Id":12909,"Name":"","CurseForge":"simple-death-chest","Modrinth":"simple-death-chest"},{"Id":12910,"Name":"","CurseForge":"","Modrinth":"enhancer-mod"},{"Id":12911,"Name":"","CurseForge":"headphones","Modrinth":""},{"Id":12912,"Name":"","CurseForge":"you-are-the-zombie","Modrinth":""},{"Id":12913,"Name":"","CurseForge":"self-damage-knife","Modrinth":""},{"Id":12915,"Name":"","CurseForge":"coin-craft","Modrinth":""},{"Id":12916,"Name":"","CurseForge":"speedy-ladders","Modrinth":""},{"Id":12917,"Name":"","CurseForge":"","Modrinth":"youaremyhatnow"},{"Id":12920,"Name":"果园乐事 (Fruits Delight)","CurseForge":"fruits-delight","Modrinth":"fruits-delight"},{"Id":12922,"Name":"破坏困难 (Destruction Difficulty)","CurseForge":"destruction-difficulty","Modrinth":"destructiond"},{"Id":12924,"Name":"","CurseForge":"villagers-follow-emeralds","Modrinth":""},{"Id":12925,"Name":"","CurseForge":"dredge","Modrinth":"dredge"},{"Id":12926,"Name":"","CurseForge":"create-creating-space","Modrinth":"creating-space"},{"Id":12927,"Name":"","CurseForge":"asmc-performance-patch","Modrinth":""},{"Id":12928,"Name":"MrCrayfish的枪:非官方版 (MrCrayfish's Gun Mod: Unofficial)","CurseForge":"mrcrayfishs-gun-mod-unofficial","Modrinth":""},{"Id":12929,"Name":"","CurseForge":"","Modrinth":"fish-tanks"},{"Id":12930,"Name":"","CurseForge":"ram-compat","Modrinth":"ram-compat"},{"Id":12931,"Name":"中国式学校 (Chinese School Mod) - 非官方版0.1.x(此由作者提供)","CurseForge":"","Modrinth":"wcsm"},{"Id":12931,"Name":"中国式学校 (Chinese School Mod)","CurseForge":"","Modrinth":"0.0.1"},{"Id":12932,"Name":"","CurseForge":"zombies-reworked-forge","Modrinth":"zombies-reworked"},{"Id":12933,"Name":"传奇怪物 (Legendary Monsters)","CurseForge":"legendary-monsters","Modrinth":"legendary-monsters"},{"Id":12934,"Name":"","CurseForge":"catontoasts-mobs","Modrinth":""},{"Id":12935,"Name":"","CurseForge":"combatify","Modrinth":"combatify"},{"Id":12936,"Name":"一起钓鱼吧!(更新版) (Go Fish (updated))","CurseForge":"go-fish-updated","Modrinth":""},{"Id":12938,"Name":"","CurseForge":"what-are-they-up-to","Modrinth":"what-are-they-up-to"},{"Id":12939,"Name":"Fumo - 仅 16.0.0+","CurseForge":"fumofumo","Modrinth":""},{"Id":12939,"Name":"","CurseForge":"","Modrinth":"fumo"},{"Id":12940,"Name":"","CurseForge":"","Modrinth":"elytraplus"},{"Id":12941,"Name":"","CurseForge":"mcaic","Modrinth":"mcaic"},{"Id":12942,"Name":"","CurseForge":"","Modrinth":"zombification"},{"Id":12943,"Name":"","CurseForge":"","Modrinth":"stutterfix"},{"Id":12944,"Name":"","CurseForge":"extrasounds-forge","Modrinth":"extrasoundsforge"},{"Id":12945,"Name":"资源模载器 (Resource Mod Loader)","CurseForge":"resource-mod-loader","Modrinth":""},{"Id":12946,"Name":"","CurseForge":"regrown","Modrinth":""},{"Id":12947,"Name":"","CurseForge":"carcass","Modrinth":"carcass"},{"Id":12948,"Name":"","CurseForge":"","Modrinth":"humility-afm"},{"Id":12949,"Name":"亿用得纵 (Let Me Use It!)","CurseForge":"let-me-use-it","Modrinth":""},{"Id":12950,"Name":"","CurseForge":"epic-fight-impactful","Modrinth":"epic-fight-impactful"},{"Id":12951,"Name":"浮的古原草送别 (GrassNotFloating)","CurseForge":"grassnotfloating","Modrinth":""},{"Id":12955,"Name":"","CurseForge":"thermite","Modrinth":"thermite"},{"Id":12956,"Name":"","CurseForge":"restriction","Modrinth":""},{"Id":12957,"Name":"","CurseForge":"collision-fix","Modrinth":"collision-fix"},{"Id":12959,"Name":"","CurseForge":"dynamic-name-tags","Modrinth":"dynamic-name-tags"},{"Id":12960,"Name":"","CurseForge":"","Modrinth":"profundis"},{"Id":12961,"Name":"","CurseForge":"ctlib","Modrinth":"ctlibmod"},{"Id":12963,"Name":"","CurseForge":"building-packs","Modrinth":""},{"Id":12964,"Name":"","CurseForge":"styled-sidebars","Modrinth":"styled-sidebars"},{"Id":12965,"Name":"","CurseForge":"cut-and-colored","Modrinth":"cut-and-colored"},{"Id":12966,"Name":"","CurseForge":"the-fence-unleashed","Modrinth":"fency"},{"Id":12967,"Name":"","CurseForge":"","Modrinth":"touch-up"},{"Id":12968,"Name":"","CurseForge":"","Modrinth":"gipples-galore"},{"Id":12970,"Name":"入木三分 (Wood Enjoyer)","CurseForge":"wood-enjoyer","Modrinth":"wood-enjoyer"},{"Id":12971,"Name":"核心拓展-食物 (Coreextensions-Food-API)","CurseForge":"","Modrinth":"coreextensions-foodapi"},{"Id":12972,"Name":"","CurseForge":"dynamic-darker-souls","Modrinth":""},{"Id":12973,"Name":"","CurseForge":"fade-in-chunks","Modrinth":"fade-in-chunks"},{"Id":12974,"Name":"","CurseForge":"","Modrinth":"durability-guard"},{"Id":12975,"Name":"","CurseForge":"sorceryfight","Modrinth":""},{"Id":12976,"Name":"","CurseForge":"better-lava-bucket","Modrinth":""},{"Id":12977,"Name":"","CurseForge":"just-outdoor-stuffs","Modrinth":"just-outdoor-stuffs"},{"Id":12978,"Name":"","CurseForge":"croptopia-additions","Modrinth":"croptopia-additions"},{"Id":12979,"Name":"","CurseForge":"corniergun","Modrinth":""},{"Id":12980,"Name":"","CurseForge":"better-flight-forge","Modrinth":"betterflight"},{"Id":12982,"Name":"农夫乐事:烹饪书重制版 (Farmer's Delight: CookBook Reforged)","CurseForge":"farmers-delight-cookbook-reforged","Modrinth":"farmers-delight-cookbook-reforged"},{"Id":12983,"Name":"","CurseForge":"applications","Modrinth":"applications"},{"Id":12984,"Name":"","CurseForge":"k-clear-lag","Modrinth":""},{"Id":12985,"Name":"咒法维度 (Hexxy Dimensions)","CurseForge":"","Modrinth":"hexdim"},{"Id":12986,"Name":"简单备份 (Simple Backups)","CurseForge":"simple-backups","Modrinth":"simple-backups"},{"Id":12987,"Name":"","CurseForge":"sky-guis","Modrinth":"sky-guis"},{"Id":12988,"Name":"寰宇植物学 (Botaniverse)","CurseForge":"botaniverse","Modrinth":"botaniverse"},{"Id":12989,"Name":"","CurseForge":"betterer-p2p","Modrinth":""},{"Id":12990,"Name":"","CurseForge":"recall-staffs","Modrinth":""},{"Id":12992,"Name":"能量电池 (Enercell)","CurseForge":"enercell","Modrinth":""},{"Id":12993,"Name":"","CurseForge":"default-world-generator-ssp","Modrinth":""},{"Id":12994,"Name":"","CurseForge":"homyatos-explosives","Modrinth":"homyatos-explosives"},{"Id":12995,"Name":"无限箱子 (Inf Chest)","CurseForge":"infchest","Modrinth":"infchest"},{"Id":12996,"Name":"","CurseForge":"","Modrinth":"squashed"},{"Id":12997,"Name":"","CurseForge":"unremovableeffects","Modrinth":"unremovable-effects"},{"Id":12998,"Name":"","CurseForge":"traders-in-disguise-the-illager-assassin-project","Modrinth":"traders-in-disguise-the-illager-assassin-project"},{"Id":12999,"Name":"","CurseForge":"cherished-items","Modrinth":""},{"Id":13000,"Name":"绿意盎然 (VerdantVibes)","CurseForge":"verdantvibes","Modrinth":"verdantvibes"},{"Id":13001,"Name":"","CurseForge":"crafting-manipulator","Modrinth":""},{"Id":13002,"Name":"","CurseForge":"beware-the-rain","Modrinth":""},{"Id":13003,"Name":"","CurseForge":"the-sasquatch","Modrinth":""},{"Id":13004,"Name":"药水披萨 (Potion Pizzas)","CurseForge":"potion-pizzas","Modrinth":"potionpizzas"},{"Id":13005,"Name":"砸罐子 (Pot Breaker)","CurseForge":"pot-breaker","Modrinth":"pot-breaker"},{"Id":13006,"Name":"禁用工具 (Disable Tools)","CurseForge":"disabletools","Modrinth":"disable-tools"},{"Id":13007,"Name":"","CurseForge":"","Modrinth":"humility-se"},{"Id":13009,"Name":"推开一切 (Push Everything Away)","CurseForge":"push-everything-away","Modrinth":"push-everything-away"},{"Id":13010,"Name":"机械动力:动力加载器 (Create: Power Loader)","CurseForge":"create-power-loader","Modrinth":"create-power-loader"},{"Id":13010,"Name":"机械动力:动力加载器 (Create: Power Loader)","CurseForge":"create-power-loader-fabric","Modrinth":"create-power-loader-fabric"},{"Id":13012,"Name":"","CurseForge":"epiceldenringweaponsarmorandmobs","Modrinth":""},{"Id":13013,"Name":"","CurseForge":"restart-server","Modrinth":"restart-server"},{"Id":13014,"Name":"","CurseForge":"sakura-cherry-additions","Modrinth":""},{"Id":13015,"Name":"掠夺者的枪 (Pillager's Gun)","CurseForge":"pillagers-gun","Modrinth":""},{"Id":13016,"Name":"","CurseForge":"hammers-and-smithing","Modrinth":""},{"Id":13018,"Name":"","CurseForge":"tetra-booster-pack","Modrinth":"withering-boon-for-tetra"},{"Id":13019,"Name":"","CurseForge":"everlasting-skins","Modrinth":""},{"Id":13020,"Name":"饰纹陶罐矿车 (Decorated Pot Minecart)","CurseForge":"decorated-pot-minecart","Modrinth":""},{"Id":13021,"Name":"","CurseForge":"legacy-console-sounds","Modrinth":"legacy-console-sounds"},{"Id":13022,"Name":"","CurseForge":"eye-spy","Modrinth":"eye-spy"},{"Id":13023,"Name":"","CurseForge":"sonicraft-demons","Modrinth":"sonicraft-demons"},{"Id":13024,"Name":"计分板禁言管理器 (Minecraft Command Speech Manager)","CurseForge":"","Modrinth":"speech-manager-by-command-scoreboard"},{"Id":13025,"Name":"Flan的枪械重制版 (Flan's Mod: Reloaded)","CurseForge":"flans-mod-reloaded","Modrinth":""},{"Id":13026,"Name":"模组白名单 (Mod Whitelist)","CurseForge":"mod-whitelist","Modrinth":"mod-whitelist"},{"Id":13027,"Name":"简单沙鹰 (Simple Desert Eagle)","CurseForge":"simpledeserteagle","Modrinth":""},{"Id":13028,"Name":"","CurseForge":"dungeons-towers","Modrinth":"dungeons+-towers"},{"Id":13029,"Name":"","CurseForge":"dungeons-more-spawners","Modrinth":"dungeons+-more-spawners"},{"Id":13030,"Name":"","CurseForge":"","Modrinth":"nether-depths-mod"},{"Id":13031,"Name":"机巧核心 (Technical Cores)","CurseForge":"technical-cores","Modrinth":""},{"Id":13032,"Name":"我的陷阱 (MineTraps)","CurseForge":"minetraps","Modrinth":"minetraps"},{"Id":13033,"Name":"","CurseForge":"","Modrinth":"fabricated-rift"},{"Id":13034,"Name":"","CurseForge":"honey-sticky-piston","Modrinth":""},{"Id":13035,"Name":"","CurseForge":"ore-discovery-broadcast","Modrinth":"ore-discovery-broadcast"},{"Id":13036,"Name":"","CurseForge":"alchemists-garden","Modrinth":""},{"Id":13037,"Name":"","CurseForge":"opolis-strainers","Modrinth":"bbl-strainers"},{"Id":13038,"Name":"","CurseForge":"book-eater","Modrinth":"book-eater"},{"Id":13039,"Name":"","CurseForge":"rotom-phone-cobblemon","Modrinth":"rotom-phone-cobblemon"},{"Id":13040,"Name":"随处随笔 (World Comment)","CurseForge":"","Modrinth":"world-comment"},{"Id":13041,"Name":"群青:重织 (Ultramarine Refabricated)","CurseForge":"ultramarine-refabricated","Modrinth":""},{"Id":13042,"Name":"","CurseForge":"long-nbt-killer","Modrinth":""},{"Id":13043,"Name":"饰品属性 (CurioAttribute)","CurseForge":"","Modrinth":"curio-attribute"},{"Id":13044,"Name":"持久瞄准/移眼盯住 (Consistent Aim)","CurseForge":"consistent-aim","Modrinth":""},{"Id":13046,"Name":"","CurseForge":"arrow-pointers","Modrinth":"arrow-pointers"},{"Id":13047,"Name":"","CurseForge":"bareback-horse-riding","Modrinth":"bareback-horse-riding"},{"Id":13048,"Name":"","CurseForge":"what-the-gecko","Modrinth":"what-the-gecko"},{"Id":13049,"Name":"","CurseForge":"forgotten-pots-forge","Modrinth":""},{"Id":13050,"Name":"","CurseForge":"explorations","Modrinth":"explorations"},{"Id":13052,"Name":"","CurseForge":"redstone-lamps-plus","Modrinth":""},{"Id":13053,"Name":"羊毛装饰方块 (The Wool Collection)","CurseForge":"wool-collection","Modrinth":"wool-collection"},{"Id":13054,"Name":"","CurseForge":"","Modrinth":"more-automation"},{"Id":13055,"Name":"随机生物模型大小 (Random Mob Sizes)","CurseForge":"random-mob-sizes","Modrinth":"random-mob-sizes"},{"Id":13056,"Name":"","CurseForge":"unexperienced","Modrinth":""},{"Id":13058,"Name":"","CurseForge":"balanced-crates","Modrinth":"balanced-crates"},{"Id":13060,"Name":"","CurseForge":"ducky-periphs","Modrinth":"ducky-periphs"},{"Id":13061,"Name":"","CurseForge":"","Modrinth":"norefreshscroll"},{"Id":13062,"Name":"","CurseForge":"furnitura","Modrinth":"furnitura"},{"Id":13063,"Name":"","CurseForge":"create-ad-astra-compat","Modrinth":"create-ad-astra-compat"},{"Id":13065,"Name":"","CurseForge":"walkie-talkie","Modrinth":"walkie-talkie"},{"Id":13066,"Name":"","CurseForge":"geotagged-screenshots","Modrinth":"geotagged-screenshots"},{"Id":13067,"Name":"","CurseForge":"","Modrinth":"wafflesscythes"},{"Id":13069,"Name":"","CurseForge":"","Modrinth":"legacy-optifabric"},{"Id":13070,"Name":"","CurseForge":"oneironaut","Modrinth":"oneironaut"},{"Id":13072,"Name":"星月核心 (Celestial Core)","CurseForge":"celestial-core","Modrinth":""},{"Id":13074,"Name":"可染色狐狸/色绘你狐革 (Colorable Fox)","CurseForge":"colorablefox","Modrinth":""},{"Id":13075,"Name":"","CurseForge":"archeology-api","Modrinth":""},{"Id":13076,"Name":"","CurseForge":"rpg-parties","Modrinth":"rpg-parties"},{"Id":13077,"Name":"","CurseForge":"astikor-carts-tfc","Modrinth":"tfc-astikor-carts"},{"Id":13078,"Name":"","CurseForge":"nanexs-mobs","Modrinth":""},{"Id":13079,"Name":"","CurseForge":"no-feather-trample","Modrinth":"no-feather-trample"},{"Id":13080,"Name":"余烬非官方延续版 (Embers Unofficial Extended Life)","CurseForge":"embers-extended-life","Modrinth":"embers-unofficial-extended-life"},{"Id":13081,"Name":"","CurseForge":"terrafirmajousting","Modrinth":"terrafirmajousting"},{"Id":13083,"Name":"","CurseForge":"jujutsu-animation","Modrinth":""},{"Id":13084,"Name":"","CurseForge":"craftable-elytra","Modrinth":""},{"Id":13085,"Name":"钫 (Francium)","CurseForge":"francium","Modrinth":"francium-optimization"},{"Id":13086,"Name":"","CurseForge":"dragonwingselytra","Modrinth":""},{"Id":13087,"Name":"通用终端 (Universal Grid)","CurseForge":"universal-grid","Modrinth":"universal-grid"},{"Id":13089,"Name":"","CurseForge":"antique-atlas-reborn","Modrinth":""},{"Id":13090,"Name":"","CurseForge":"ars-artifice","Modrinth":"ars-artifice"},{"Id":13091,"Name":"","CurseForge":"draconic-energy","Modrinth":""},{"Id":13092,"Name":"","CurseForge":"hamsters-plus","Modrinth":"hamsters"},{"Id":13093,"Name":"","CurseForge":"","Modrinth":"you-bandit!"},{"Id":13094,"Name":"","CurseForge":"eugenes-lance","Modrinth":"eugenes-lance"},{"Id":13095,"Name":"钍反应堆 (Thorium Reactors)","CurseForge":"thorium-reactors","Modrinth":"thorium-reactors"},{"Id":13096,"Name":"","CurseForge":"eugenes-guan-dao","Modrinth":"eugenes-guan-dao"},{"Id":13098,"Name":"","CurseForge":"eugenes-wealthy-plains-village","Modrinth":""},{"Id":13099,"Name":"煨茶酝露 (HerbalBrews)","CurseForge":"lets-do-herbal-brews","Modrinth":"lets-do-herbalbrews"},{"Id":13100,"Name":"附魔标签 (Enchant Icon)","CurseForge":"enchant-icon","Modrinth":"enchant-icon"},{"Id":13101,"Name":"腌渍乐事 (Vintage Delight)","CurseForge":"vintage-delight","Modrinth":"vintage-delight"},{"Id":13102,"Name":"","CurseForge":"","Modrinth":"hotshot"},{"Id":13103,"Name":"","CurseForge":"biospherical-expansion","Modrinth":"biospherical-expansion"},{"Id":13104,"Name":"","CurseForge":"","Modrinth":"serendustry"},{"Id":13105,"Name":"机械动力:创意传动 (Create: Connected)","CurseForge":"create-connected","Modrinth":"create-connected"},{"Id":13106,"Name":"","CurseForge":"","Modrinth":"rgml-quilt"},{"Id":13107,"Name":"","CurseForge":"hbms-nuclear-tech-hamster-reloaded","Modrinth":""},{"Id":13108,"Name":"","CurseForge":"noxesium","Modrinth":"noxesium"},{"Id":13110,"Name":"无限洞穴 (Infinity Cave)","CurseForge":"infinity-cave","Modrinth":""},{"Id":13111,"Name":"","CurseForge":"surface-lush-caves","Modrinth":""},{"Id":13112,"Name":"地质拓展 (Geologic Expansion)","CurseForge":"geologic-expansion","Modrinth":"geologic-expansion"},{"Id":13113,"Name":"","CurseForge":"cpas","Modrinth":"cpas"},{"Id":13115,"Name":"","CurseForge":"awesome-magic","Modrinth":"awesome_magic"},{"Id":13116,"Name":"","CurseForge":"christmas-dweller","Modrinth":"christmas-dweller"},{"Id":13117,"Name":"","CurseForge":"create-curio-goggles","Modrinth":"create-curio-goggles"},{"Id":13118,"Name":"","CurseForge":"","Modrinth":"cobbleloots"},{"Id":13119,"Name":"请别用指令 (DontUseCommand)","CurseForge":"dontusecommand","Modrinth":"dontusecommand"},{"Id":13120,"Name":"","CurseForge":"beans-backpacks","Modrinth":"beans-backpacks-3"},{"Id":13120,"Name":"","CurseForge":"","Modrinth":"beans-backpacks"},{"Id":13122,"Name":"","CurseForge":"randomjs","Modrinth":"randomjs"},{"Id":13123,"Name":"","CurseForge":"piston-push","Modrinth":"piston-push"},{"Id":13124,"Name":"","CurseForge":"erinium-automation","Modrinth":""},{"Id":13125,"Name":"","CurseForge":"angelica","Modrinth":"angelica"},{"Id":13126,"Name":"","CurseForge":"explosiont","Modrinth":""},{"Id":13127,"Name":"","CurseForge":"spider-caves","Modrinth":"spider-caves"},{"Id":13128,"Name":"","CurseForge":"cams-lights","Modrinth":""},{"Id":13130,"Name":"柠檬王国:传说之物 (Lemon Kindom: Artifacts)","CurseForge":"lemon-kindom-artifacts","Modrinth":""},{"Id":13131,"Name":"地牢浮现之时 - 海洋扩展 (When Dungeons Arise - Seven Seas)","CurseForge":"when-dungeons-arise-seven-seas","Modrinth":"when-dungeons-arise-seven-seas"},{"Id":13132,"Name":"","CurseForge":"mob-battle-extra","Modrinth":""},{"Id":13133,"Name":"","CurseForge":"lios-overhauled-villages","Modrinth":"lios-overhauled-villages"},{"Id":13134,"Name":"","CurseForge":"lost-relics","Modrinth":"lost-relics"},{"Id":13135,"Name":"","CurseForge":"provihealth","Modrinth":"provis-health-bars"},{"Id":13136,"Name":"新陈代谢 (Metabolism)","CurseForge":"metabolism","Modrinth":"metabolism"},{"Id":13137,"Name":"Advancement JS - 更新较慢","CurseForge":"adv-js","Modrinth":""},{"Id":13137,"Name":"","CurseForge":"","Modrinth":"advancementjs"},{"Id":13138,"Name":"","CurseForge":"teleportcraft","Modrinth":"teleportcraft"},{"Id":13139,"Name":"惊悚乐事 (Fright's Delight)","CurseForge":"frights-delight","Modrinth":"frights-delight"},{"Id":13140,"Name":"旅行者指南针 (Traveler's Compass)","CurseForge":"travelers-compass","Modrinth":"travelers-compass"},{"Id":13141,"Name":"","CurseForge":"","Modrinth":"artemis-thin-logs"},{"Id":13142,"Name":"","CurseForge":"configjs","Modrinth":"configjs"},{"Id":13143,"Name":"","CurseForge":"hardrock-tools-materials","Modrinth":"hardrock-tools-materials"},{"Id":13144,"Name":"","CurseForge":"animals-trap","Modrinth":""},{"Id":13145,"Name":"","CurseForge":"armor-damage-scaling-forge-fabric","Modrinth":""},{"Id":13146,"Name":"","CurseForge":"hornet","Modrinth":""},{"Id":13147,"Name":"","CurseForge":"exotelcraft","Modrinth":"exotelcraft"},{"Id":13148,"Name":"","CurseForge":"jujutsu-kaisen-gt","Modrinth":""},{"Id":13149,"Name":"","CurseForge":"","Modrinth":"updated-hud"},{"Id":13150,"Name":"","CurseForge":"mapwriter","Modrinth":""},{"Id":13154,"Name":"","CurseForge":"clickmanaita","Modrinth":""},{"Id":13157,"Name":"指令面包机 (Command Toast)","CurseForge":"command-toast","Modrinth":""},{"Id":13158,"Name":"咒法研究 (Hex Research)","CurseForge":"","Modrinth":"hex-research"},{"Id":13159,"Name":"","CurseForge":"cwg-far-plane-view","Modrinth":""},{"Id":13160,"Name":"群峦传说:航海文明 (Firma: Civilization)","CurseForge":"firmacivilization","Modrinth":"firmaciv"},{"Id":13161,"Name":"","CurseForge":"catbop-things","Modrinth":""},{"Id":13162,"Name":"","CurseForge":"player-mobs","Modrinth":"player-mobs"},{"Id":13163,"Name":"","CurseForge":"","Modrinth":"create-trimmed"},{"Id":13164,"Name":"","CurseForge":"tinkers-caramel","Modrinth":""},{"Id":13165,"Name":"","CurseForge":"ctrl-q","Modrinth":"ctrl-q"},{"Id":13166,"Name":"","CurseForge":"rug","Modrinth":"rug"},{"Id":13167,"Name":"发光工具 (Glowing Tools)","CurseForge":"glowing-tools","Modrinth":"glowing-tools"},{"Id":13168,"Name":"","CurseForge":"horsing-around","Modrinth":"horsing-around"},{"Id":13169,"Name":"","CurseForge":"herd-mentality","Modrinth":"herd-mentality"},{"Id":13170,"Name":"","CurseForge":"doggy-talents-next","Modrinth":"doggy-talents-next"},{"Id":13173,"Name":"","CurseForge":"motobox","Modrinth":"motobox"},{"Id":13174,"Name":"","CurseForge":"pottery-additional-pots","Modrinth":"pottery"},{"Id":13175,"Name":"","CurseForge":"better-dogs-x-doggy-talents-next","Modrinth":""},{"Id":13176,"Name":"","CurseForge":"","Modrinth":"villagertimetable"},{"Id":13177,"Name":"","CurseForge":"towntalk","Modrinth":""},{"Id":13178,"Name":"","CurseForge":"cumulus","Modrinth":"cumulus"},{"Id":13179,"Name":"","CurseForge":"epherolib","Modrinth":"epherolib"},{"Id":13180,"Name":"","CurseForge":"icterine","Modrinth":"icterine"},{"Id":13181,"Name":"","CurseForge":"notrample","Modrinth":""},{"Id":13182,"Name":"","CurseForge":"industrial-foregoing-souls","Modrinth":"industrial-foregoing-souls"},{"Id":13183,"Name":"","CurseForge":"fuelgoeshere","Modrinth":"fuelgoeshere"},{"Id":13184,"Name":"","CurseForge":"initial-dimension","Modrinth":""},{"Id":13185,"Name":"妖怪们的归家 (Youkai's Homecoming)","CurseForge":"youkais-homecoming","Modrinth":""},{"Id":13186,"Name":"","CurseForge":"utilitarian","Modrinth":"utilitarian"},{"Id":13187,"Name":"剑之格挡 (Classic Sword Blocking)","CurseForge":"classic-sword-blocking","Modrinth":""},{"Id":13188,"Name":"","CurseForge":"","Modrinth":"flutterandflounder"},{"Id":13190,"Name":"","CurseForge":"jojo-world-of-stands","Modrinth":"jojo-world-of-stands"},{"Id":13191,"Name":"","CurseForge":"ash-api","Modrinth":"ash-api"},{"Id":13193,"Name":"","CurseForge":"stylecolonies","Modrinth":""},{"Id":13194,"Name":"","CurseForge":"hyperbox","Modrinth":"hyperbox"},{"Id":13195,"Name":"","CurseForge":"respite-creators-fabric","Modrinth":"respite-creators-fabric"},{"Id":13196,"Name":"简单比萨 (Simple Pizzas)","CurseForge":"simple-pizzas","Modrinth":"simple-pizzas"},{"Id":13197,"Name":"","CurseForge":"rapscallions-and-rockhoppers","Modrinth":"rapscallions-and-rockhoppers"},{"Id":13198,"Name":"","CurseForge":"pescatore","Modrinth":"pescatore"},{"Id":13199,"Name":"","CurseForge":"apocalypse-now","Modrinth":"apocalypse-now"},{"Id":13200,"Name":"","CurseForge":"cenozoic-nightmare-the-horror-of-prehistory","Modrinth":""},{"Id":13202,"Name":"多槽位备份 (QuickBackupMulti)","CurseForge":"quickbackupmulti","Modrinth":"quickbackupmulti"},{"Id":13203,"Name":"拔刀剑日系附属重置版 (SlashBlade Japanese Addon Pack Reforked)","CurseForge":"slashblade-japanese-addon-pack-reforked","Modrinth":""},{"Id":13204,"Name":"","CurseForge":"","Modrinth":"create-fabric-fixes"},{"Id":13205,"Name":"命令方块权杖 (Command Sceptre)","CurseForge":"","Modrinth":"command-block-sceptre"},{"Id":13206,"Name":"装箱乐事 (Crate Delight)","CurseForge":"crate-delight-forge","Modrinth":"crate-delight"},{"Id":13206,"Name":"装箱乐事 (Crate Delight)","CurseForge":"crate-delight-fabric","Modrinth":""},{"Id":13207,"Name":"","CurseForge":"cultural-creators-forge-create-and-cultural","Modrinth":"cultural-crators"},{"Id":13207,"Name":"","CurseForge":"cultural-creators-fabric-create-and-cultural","Modrinth":""},{"Id":13208,"Name":"","CurseForge":"shuffle","Modrinth":"shuffle"},{"Id":13209,"Name":"","CurseForge":"probejs-legacy","Modrinth":""},{"Id":13210,"Name":"坍毁化合 (Destroy)","CurseForge":"create-destroy","Modrinth":"destroy"},{"Id":13211,"Name":"","CurseForge":"flourish","Modrinth":"flourish"},{"Id":13212,"Name":"","CurseForge":"pitch-dark","Modrinth":"pitch-dark"},{"Id":13213,"Name":"","CurseForge":"survival-debug-stick","Modrinth":""},{"Id":13214,"Name":"","CurseForge":"cerbons-api","Modrinth":"cerbons-api"},{"Id":13215,"Name":"","CurseForge":"arcane-apprentices","Modrinth":""},{"Id":13216,"Name":"","CurseForge":"kirara","Modrinth":""},{"Id":13217,"Name":"","CurseForge":"nether-gold","Modrinth":""},{"Id":13218,"Name":"机械动力:交互学 (Create: Interactive)","CurseForge":"create-interactive","Modrinth":"interactive"},{"Id":13219,"Name":"","CurseForge":"this-tsunami","Modrinth":"this-tsunami"},{"Id":13220,"Name":"","CurseForge":"blendium","Modrinth":"blendium"},{"Id":13221,"Name":"","CurseForge":"awakened-bosses","Modrinth":""},{"Id":13222,"Name":"冬境边域:生存法则 (Survive in the Winter Frontier)","CurseForge":"survive-in-the-winter-frontier","Modrinth":"misc_twf"},{"Id":13223,"Name":"","CurseForge":"toneko","Modrinth":"tonekomod"},{"Id":13224,"Name":"","CurseForge":"goldelight","Modrinth":""},{"Id":13225,"Name":"","CurseForge":"cosmos-portals","Modrinth":""},{"Id":13226,"Name":"","CurseForge":"cc-vs","Modrinth":"cc-vs"},{"Id":13228,"Name":"","CurseForge":"item-despawn-timer","Modrinth":"item-despawn-timer"},{"Id":13229,"Name":"","CurseForge":"","Modrinth":"is-this-mod-legit"},{"Id":13230,"Name":"","CurseForge":"aylyth","Modrinth":"aylyth"},{"Id":13231,"Name":"","CurseForge":"no-shade","Modrinth":"no-shade"},{"Id":13232,"Name":"","CurseForge":"dimthreads","Modrinth":"dimthreads"},{"Id":13233,"Name":"","CurseForge":"jonns-trophies","Modrinth":"jonns-trophies"},{"Id":13234,"Name":"","CurseForge":"it-follows-exclamation","Modrinth":"it-follows!"},{"Id":13235,"Name":"","CurseForge":"","Modrinth":"loggerhead-luminancies"},{"Id":13236,"Name":"Asteor的状态栏和血量显示 (AsteorBar)","CurseForge":"asteorbar","Modrinth":"asteorbar"},{"Id":13237,"Name":"更好的F1重制版 (Better F1 Reborn)","CurseForge":"better-f1-reborn","Modrinth":"better-f1-reborn"},{"Id":13238,"Name":"","CurseForge":"create-tipsy-n-dizzy","Modrinth":"create-tipsy-n-high"},{"Id":13239,"Name":"","CurseForge":"ars-expanded-combat","Modrinth":"ec-ars-compat"},{"Id":13240,"Name":"","CurseForge":"","Modrinth":"revamped-piles"},{"Id":13241,"Name":"","CurseForge":"","Modrinth":"fluiwid"},{"Id":13242,"Name":"","CurseForge":"revamped-phantoms","Modrinth":"revamped_phantoms"},{"Id":13243,"Name":"","CurseForge":"defaultserverlist","Modrinth":"defaultserverlist"},{"Id":13244,"Name":"翠绿乐事 (Green Delights)","CurseForge":"green-delights","Modrinth":""},{"Id":13245,"Name":"","CurseForge":"","Modrinth":"modmenu-ornithe"},{"Id":13246,"Name":"","CurseForge":"lost-city","Modrinth":""},{"Id":13247,"Name":"","CurseForge":"digestive","Modrinth":""},{"Id":13250,"Name":"","CurseForge":"inventory-binds","Modrinth":"inventory-binds"},{"Id":13252,"Name":"","CurseForge":"octo-lib","Modrinth":"octo-lib"},{"Id":13253,"Name":"","CurseForge":"farmers-plus","Modrinth":""},{"Id":13253,"Name":"Farmer's Plus - 旧","CurseForge":"farmers-utils","Modrinth":""},{"Id":13254,"Name":"","CurseForge":"architects-friend","Modrinth":""},{"Id":13255,"Name":"","CurseForge":"bagus-cosmetic","Modrinth":"bagus-cosmetic"},{"Id":13256,"Name":"","CurseForge":"floatingitems","Modrinth":""},{"Id":13258,"Name":"","CurseForge":"tetracelium","Modrinth":"tetracelium"},{"Id":13259,"Name":"","CurseForge":"fugue","Modrinth":"fugue"},{"Id":13260,"Name":"","CurseForge":"create-food","Modrinth":"create-food"},{"Id":13263,"Name":"木炭块 (A Block of Charcoal)","CurseForge":"a-block-of-charcoal","Modrinth":""},{"Id":13264,"Name":"燧石块 (A Block of Flint)","CurseForge":"a-block-of-flint","Modrinth":""},{"Id":13265,"Name":"","CurseForge":"tome-of-blood-rebirth","Modrinth":"tome-of-blood-rebirth"},{"Id":13266,"Name":"","CurseForge":"chatutils","Modrinth":"chatutils"},{"Id":13268,"Name":"","CurseForge":"asgard-shield-reloaded","Modrinth":"asgard-shield-reloaded"},{"Id":13269,"Name":"","CurseForge":"gobble-core","Modrinth":""},{"Id":13270,"Name":"","CurseForge":"expanded-combat","Modrinth":"expanded-combat"},{"Id":13271,"Name":"","CurseForge":"jrrp-daily-luck","Modrinth":""},{"Id":13272,"Name":"","CurseForge":"fancy-chests","Modrinth":"fancy-chests"},{"Id":13274,"Name":"","CurseForge":"glore","Modrinth":"glore"},{"Id":13275,"Name":"私人空岛 (PrivateIsland)","CurseForge":"pi-privateisland","Modrinth":""},{"Id":13276,"Name":"","CurseForge":"i-didnt-mean-it-that-way","Modrinth":"i-didnt-mean-it-that-way"},{"Id":13277,"Name":"","CurseForge":"finitewater","Modrinth":"finitewater"},{"Id":13278,"Name":"","CurseForge":"serverstop","Modrinth":""},{"Id":13278,"Name":"","CurseForge":"serverstop-fabric","Modrinth":""},{"Id":13279,"Name":"","CurseForge":"glassential-renewed","Modrinth":"glassential-renewed"},{"Id":13280,"Name":"狸猫装饰 (Tanuki Decor)","CurseForge":"tanukidecor","Modrinth":""},{"Id":13282,"Name":"","CurseForge":"cit-reforged","Modrinth":""},{"Id":13283,"Name":"","CurseForge":"ultreonlib","Modrinth":"ultreonlib"},{"Id":13284,"Name":"深暗之园乐事 (Undergarden Delight)","CurseForge":"undergarden-delight","Modrinth":"undergarden-delight"},{"Id":13285,"Name":"","CurseForge":"medieval-deco","Modrinth":"medieval-deco"},{"Id":13288,"Name":"轻量化模组名称显示 (Lightweight Mod Indicator)","CurseForge":"limi","Modrinth":""},{"Id":13289,"Name":"","CurseForge":"jtlunlocker","Modrinth":""},{"Id":13290,"Name":"","CurseForge":"ae2-stuff-unofficial","Modrinth":""},{"Id":13291,"Name":"","CurseForge":"","Modrinth":"error422"},{"Id":13292,"Name":"更难的地下 (Harder Underground)","CurseForge":"harder-underground","Modrinth":""},{"Id":13293,"Name":"更难的野生动物 (Harder Wildlife)","CurseForge":"harder-wildlife","Modrinth":""},{"Id":13294,"Name":"更难的农作 (Harder Farming)","CurseForge":"harder-farming","Modrinth":""},{"Id":13295,"Name":"","CurseForge":"waterproof","Modrinth":""},{"Id":13296,"Name":"实体渲染机制优化:非官方版 (EntityCulling Unofficial)","CurseForge":"entityculling-unofficial","Modrinth":"entitycullingunofficial"},{"Id":13297,"Name":"","CurseForge":"","Modrinth":"sync-projecte-knowledge"},{"Id":13299,"Name":"","CurseForge":"eventtweaker","Modrinth":""},{"Id":13300,"Name":"","CurseForge":"craft-vania","Modrinth":""},{"Id":13301,"Name":"额外魔戒银币 ([Legacy] LotRExtraCoins)","CurseForge":"lotrextracoins-for-1-7-10","Modrinth":""},{"Id":13302,"Name":"","CurseForge":"genst","Modrinth":""},{"Id":13303,"Name":"","CurseForge":"ae2-network-analyser","Modrinth":""},{"Id":13304,"Name":"","CurseForge":"mxtune","Modrinth":""},{"Id":13305,"Name":"自定义UI (CustomUI)","CurseForge":"customui","Modrinth":""},{"Id":13306,"Name":"","CurseForge":"deadly-monsters-patched","Modrinth":""},{"Id":13307,"Name":"","CurseForge":"glodium","Modrinth":"glodium"},{"Id":13308,"Name":"天境乐事 (Aether Delight)","CurseForge":"aether-delight","Modrinth":""},{"Id":13310,"Name":"","CurseForge":"dungeonz","Modrinth":"dungeonz"},{"Id":13311,"Name":"","CurseForge":"cazfps-axolotls","Modrinth":""},{"Id":13312,"Name":"","CurseForge":"easy-breeding-tfc","Modrinth":""},{"Id":13313,"Name":"","CurseForge":"paperfixes","Modrinth":"paperfixes"},{"Id":13315,"Name":"","CurseForge":"fishing-bot","Modrinth":""},{"Id":13316,"Name":"","CurseForge":"progression-tweaks","Modrinth":""},{"Id":13317,"Name":"","CurseForge":"whitelistfixer","Modrinth":"whitelistfixer"},{"Id":13318,"Name":"","CurseForge":"fleshz","Modrinth":"fleshz"},{"Id":13320,"Name":"","CurseForge":"depths-of-madness","Modrinth":""},{"Id":13321,"Name":"","CurseForge":"tree-lib","Modrinth":""},{"Id":13322,"Name":"","CurseForge":"","Modrinth":"moehreag-legacy-lwjgl3"},{"Id":13323,"Name":"真实相机 (Real Camera)","CurseForge":"real-camera","Modrinth":"real-camera"},{"Id":13324,"Name":"模组名称显示:非官方版 (Mod Name Tooltip Unofficial)","CurseForge":"unofficial-mod-name-tooltip-backport","Modrinth":""},{"Id":13325,"Name":"","CurseForge":"custom-health-bar","Modrinth":"custom-health-bar"},{"Id":13326,"Name":"魔戒改进 (LOTR Improvements)","CurseForge":"lotrimprovements","Modrinth":""},{"Id":13327,"Name":"","CurseForge":"mousekeyinventoryfix","Modrinth":"mousekeyinventoryfix"},{"Id":13328,"Name":"可见副手 (Visible Offhand)","CurseForge":"visible-offhand","Modrinth":"visible-offhand"},{"Id":13329,"Name":"","CurseForge":"phosphorcrashfix","Modrinth":"phosphor-crash-fix"},{"Id":13330,"Name":"籁 (Sound Physics Remixin)","CurseForge":"sound-physics-remixin","Modrinth":""},{"Id":13331,"Name":"","CurseForge":"hextended-staves","Modrinth":"hextended-staves"},{"Id":13332,"Name":"水产乐事 (Aquaculture Delight)","CurseForge":"aquaculture-delight","Modrinth":"aquaculture-delight"},{"Id":13333,"Name":"","CurseForge":"vics-point-blank","Modrinth":"vics-point-blank"},{"Id":13334,"Name":"","CurseForge":"occultism-kubejs","Modrinth":"occultism-kubejs"},{"Id":13335,"Name":"","CurseForge":"tetra-extras","Modrinth":"tetra-extras"},{"Id":13336,"Name":"","CurseForge":"anilink","Modrinth":""},{"Id":13337,"Name":"","CurseForge":"overworld-netherite-ore","Modrinth":"overworld-netherite-ore"},{"Id":13338,"Name":"","CurseForge":"","Modrinth":"rebindmykeys"},{"Id":13339,"Name":"","CurseForge":"keybind-description-fix","Modrinth":""},{"Id":13340,"Name":"","CurseForge":"kappas-forgelin","Modrinth":""},{"Id":13341,"Name":"","CurseForge":"flesh-mod","Modrinth":""},{"Id":13344,"Name":"","CurseForge":"create-bitterballen","Modrinth":"create-bitterballen"},{"Id":13345,"Name":"","CurseForge":"glowing-illagers","Modrinth":"glowing-illagers"},{"Id":13346,"Name":"","CurseForge":"heads","Modrinth":"heads"},{"Id":13347,"Name":"","CurseForge":"epicdmcbossdante","Modrinth":""},{"Id":13348,"Name":"","CurseForge":"step","Modrinth":"step"},{"Id":13349,"Name":"","CurseForge":"wildist","Modrinth":"wildist"},{"Id":13350,"Name":"","CurseForge":"hiccups-legacy","Modrinth":""},{"Id":13351,"Name":"","CurseForge":"slave-knight-gael","Modrinth":""},{"Id":13352,"Name":"","CurseForge":"gwyndolin-dark-souls-boss","Modrinth":""},{"Id":13353,"Name":"","CurseForge":"mceconomy2","Modrinth":""},{"Id":13354,"Name":"服务器工具-核心 (ServerTools-CORE)","CurseForge":"forgeservertools","Modrinth":""},{"Id":13355,"Name":"","CurseForge":"","Modrinth":"replay-fps"},{"Id":13356,"Name":"夸克乐事 (Quark Delight)","CurseForge":"quark-delight","Modrinth":""},{"Id":13357,"Name":"","CurseForge":"mmm-lib","Modrinth":""},{"Id":13358,"Name":"","CurseForge":"","Modrinth":"crabmtr-transit-plus"},{"Id":13360,"Name":"","CurseForge":"create-design-n-decor","Modrinth":"create-design-n-decor"},{"Id":13362,"Name":"更多生存要素:精简版 (EnviroMine Lite)","CurseForge":"enviromine-lite","Modrinth":"enviromine-lite"},{"Id":13363,"Name":"","CurseForge":"knaves-needs","Modrinth":"knaves-needs"},{"Id":13364,"Name":"","CurseForge":"azurelib-armor","Modrinth":"azurelib-armor"},{"Id":13365,"Name":"","CurseForge":"","Modrinth":"container-tooltips"},{"Id":13366,"Name":"","CurseForge":"magical-jewelry","Modrinth":""},{"Id":13367,"Name":"","CurseForge":"epicsoulsbosses","Modrinth":""},{"Id":13368,"Name":"","CurseForge":"epic-puss-in-boots","Modrinth":""},{"Id":13369,"Name":"","CurseForge":"soul-like-npc","Modrinth":""},{"Id":13370,"Name":"","CurseForge":"epic-empires","Modrinth":"epic-empires"},{"Id":13375,"Name":"","CurseForge":"prefabricated","Modrinth":"prefabricated"},{"Id":13376,"Name":"","CurseForge":"artorias-epicfight-addon","Modrinth":""},{"Id":13377,"Name":"","CurseForge":"soul-like-demons-plus-epic-fight-monsters","Modrinth":""},{"Id":13378,"Name":"","CurseForge":"dark-spirit-dark-souls-system-epic-fight-addon","Modrinth":""},{"Id":13379,"Name":"","CurseForge":"soul-like-mobs","Modrinth":""},{"Id":13380,"Name":"","CurseForge":"untranslateditemsaddon-alsofluids","Modrinth":"untranslateditems-alsofluids"},{"Id":13381,"Name":"","CurseForge":"better-quest-pop-up","Modrinth":"better-quest-pop-up"},{"Id":13382,"Name":"","CurseForge":"","Modrinth":"simple-hud-utilities"},{"Id":13383,"Name":"","CurseForge":"kiln-fabric","Modrinth":"kiln"},{"Id":13384,"Name":"","CurseForge":"tetra-niche-materials","Modrinth":""},{"Id":13385,"Name":"","CurseForge":"the-accurate-backrooms","Modrinth":""},{"Id":13386,"Name":"","CurseForge":"create-trains-on-trains","Modrinth":"create-trains-on-trains"},{"Id":13387,"Name":"","CurseForge":"","Modrinth":"campfire-torches-plus"},{"Id":13388,"Name":"","CurseForge":"","Modrinth":"armor-rack"},{"Id":13389,"Name":"","CurseForge":"flux-networks-fabric","Modrinth":"flux-network-fabric"},{"Id":13390,"Name":"","CurseForge":"","Modrinth":"surface"},{"Id":13391,"Name":"","CurseForge":"poof-sounds","Modrinth":"poof-sounds"},{"Id":13392,"Name":"","CurseForge":"crash-pipe","Modrinth":"crash-pipe"},{"Id":13393,"Name":"","CurseForge":"gradeus-epic-fight-addon-soul-like-boss","Modrinth":""},{"Id":13394,"Name":"","CurseForge":"zombie-more","Modrinth":"zombies-more"},{"Id":13395,"Name":"枪械工艺 (Guns Craft)","CurseForge":"gunscraft","Modrinth":""},{"Id":13396,"Name":"","CurseForge":"audino","Modrinth":"audino"},{"Id":13397,"Name":"","CurseForge":"tabbychat-unofficial","Modrinth":"tabbychat-unofficial"},{"Id":13398,"Name":"","CurseForge":"odyssey-quests","Modrinth":"odyssey-quests"},{"Id":13399,"Name":"","CurseForge":"flapjacks-economy","Modrinth":""},{"Id":13400,"Name":"","CurseForge":"","Modrinth":"onion-onion"},{"Id":13401,"Name":"","CurseForge":"relics-vivid-light-addon","Modrinth":"relics-vivid-light-addon"},{"Id":13402,"Name":"","CurseForge":"tofucreate","Modrinth":"tofu-create"},{"Id":13403,"Name":"","CurseForge":"luminite-sunilite","Modrinth":""},{"Id":13404,"Name":"","CurseForge":"better-formatting-code","Modrinth":""},{"Id":13405,"Name":"","CurseForge":"","Modrinth":"apeeling"},{"Id":13406,"Name":"","CurseForge":"","Modrinth":"bubble-boots"},{"Id":13407,"Name":"","CurseForge":"silkablooie","Modrinth":"silkablooie"},{"Id":13408,"Name":"","CurseForge":"","Modrinth":"belly-flop"},{"Id":13409,"Name":"","CurseForge":"","Modrinth":"milky-way"},{"Id":13410,"Name":"","CurseForge":"","Modrinth":"pet-shop"},{"Id":13411,"Name":"","CurseForge":"bed-is-never-too-far-away","Modrinth":""},{"Id":13412,"Name":"","CurseForge":"create-oxidized","Modrinth":"create_oxidized"},{"Id":13414,"Name":"","CurseForge":"green-soul","Modrinth":""},{"Id":13415,"Name":"一起跳舞! (EveryXDance)","CurseForge":"everyxdance","Modrinth":"everyxdance"},{"Id":13416,"Name":"应用通量 (Applied Flux)","CurseForge":"applied-flux","Modrinth":"appflux"},{"Id":13418,"Name":"匠魂乐事 (Tinkers' Delight / TiC's Delight)","CurseForge":"tics-delight","Modrinth":"tinkers-delight"},{"Id":13419,"Name":"","CurseForge":"unnamed-desert-structures","Modrinth":"unnamed-desert"},{"Id":13420,"Name":"绽芳自然 (Let's Do: BloomingNature)","CurseForge":"bloomingnature","Modrinth":"lets-do-bloomingnature"},{"Id":13421,"Name":"","CurseForge":"waila-inhibitors","Modrinth":"waila-inhibitors"},{"Id":13422,"Name":"","CurseForge":"thingamabobs-and-doohickeys","Modrinth":""},{"Id":13423,"Name":"","CurseForge":"waila-events","Modrinth":"waila-events"},{"Id":13424,"Name":"恩特的进军 (March Of The Ents)","CurseForge":"march-of-the-ents","Modrinth":""},{"Id":13425,"Name":"","CurseForge":"rndtp","Modrinth":""},{"Id":13426,"Name":"","CurseForge":"in-world-buoyancy","Modrinth":""},{"Id":13427,"Name":"","CurseForge":"","Modrinth":"simply-starminer"},{"Id":13428,"Name":"MacOS 输入修复 (MacOS Input Fixes)","CurseForge":"macos-input-fixes","Modrinth":"macos-input-fixes"},{"Id":13429,"Name":"","CurseForge":"","Modrinth":"maxhealthfixfixfix"},{"Id":13430,"Name":"","CurseForge":"","Modrinth":"astronomical"},{"Id":13432,"Name":"小米乐事 (Millet Delight)","CurseForge":"","Modrinth":"millet-delight"},{"Id":13433,"Name":"终焉 (Telos)","CurseForge":"telos","Modrinth":"telos"},{"Id":13434,"Name":"","CurseForge":"magical-torches","Modrinth":"magical-torches"},{"Id":13435,"Name":"","CurseForge":"dynamical-compass","Modrinth":"dynamical-compass"},{"Id":13436,"Name":"更好的任务-魔戒扩展 (Better Questing - Lord of the Rings addon)","CurseForge":"better-questing-lord-of-the-rings-addon","Modrinth":""},{"Id":13437,"Name":"","CurseForge":"dimension-teleport","Modrinth":"dimension-teleport"},{"Id":13438,"Name":"","CurseForge":"better-azalea","Modrinth":""},{"Id":13439,"Name":"","CurseForge":"tetratic-combat-expanded","Modrinth":"tetratic-combat-expanded"},{"Id":13441,"Name":"","CurseForge":"more-beautiful-slabs","Modrinth":"more-beautiful-slabs"},{"Id":13442,"Name":"","CurseForge":"tools-complement-create","Modrinth":"create-complement"},{"Id":13444,"Name":"","CurseForge":"biome-beans","Modrinth":""},{"Id":13445,"Name":"","CurseForge":"cats-workshop","Modrinth":""},{"Id":13446,"Name":"","CurseForge":"soulless-steeds","Modrinth":""},{"Id":13447,"Name":"","CurseForge":"openblocks-elevator-fabric","Modrinth":"openblocks-elevator-fabric"},{"Id":13448,"Name":"","CurseForge":"aurorasdecorations","Modrinth":"aurorasdecorations"},{"Id":13449,"Name":"","CurseForge":"choups-drakvyrn-mod","Modrinth":""},{"Id":13450,"Name":"","CurseForge":"abyssal-decor","Modrinth":""},{"Id":13452,"Name":"Redden的石灯笼 (Redden's Stone Lanterns)","CurseForge":"reddens-stone-lanterns","Modrinth":"reddens-stone-lanterns"},{"Id":13453,"Name":"红烧天堂 (Heaven Burns Red)","CurseForge":"heaven-burns-red","Modrinth":""},{"Id":13455,"Name":"神化:现代诸神黄昏 (Apotheosis Modern Ragnarok: Zero)","CurseForge":"apotheosis-modern-ragnarok","Modrinth":""},{"Id":13456,"Name":"","CurseForge":"","Modrinth":"bedgoboom"},{"Id":13457,"Name":"方块属性 (Block Properties)","CurseForge":"block-properties","Modrinth":""},{"Id":13458,"Name":"自定义战利品箱 (Custom Chest Loot)","CurseForge":"custom-chest-loot","Modrinth":""},{"Id":13459,"Name":"","CurseForge":"resource-pandas","Modrinth":"resource-pandas"},{"Id":13460,"Name":"","CurseForge":"sniffs-weapons","Modrinth":"sniffs-weapons"},{"Id":13461,"Name":"","CurseForge":"maxlermod","Modrinth":""},{"Id":13462,"Name":"","CurseForge":"seed-protect","Modrinth":""},{"Id":13463,"Name":"弓箭改革 (Bow Overhaul)","CurseForge":"bow-overhaul","Modrinth":""},{"Id":13464,"Name":"塞尔达剑技 - 拓展 (Zelda Sword Skills - Addon)","CurseForge":"zelda-sword-skills-addon","Modrinth":""},{"Id":13465,"Name":"","CurseForge":"narrus-yeetus","Modrinth":"narrus-yeetus"},{"Id":13466,"Name":"","CurseForge":"login-shield","Modrinth":""},{"Id":13467,"Name":"禁止右键方块 (BlockInteractionMod)","CurseForge":"blockinteraction","Modrinth":""},{"Id":13468,"Name":"","CurseForge":"linkart-fabric","Modrinth":""},{"Id":13469,"Name":"","CurseForge":"leftist-potions","Modrinth":"leftist-potions"},{"Id":13470,"Name":"多趣乐事 (More Delight)","CurseForge":"more-delight-fabric","Modrinth":"more-delight"},{"Id":13470,"Name":"多趣乐事 (More Delight)","CurseForge":"more-delight-forge","Modrinth":""},{"Id":13471,"Name":"","CurseForge":"mceconomy3","Modrinth":""},{"Id":13472,"Name":"","CurseForge":"","Modrinth":"antique-atlas-4"},{"Id":13473,"Name":"污染 (Pollution)","CurseForge":"pollution","Modrinth":""},{"Id":13474,"Name":"","CurseForge":"tinted-campfires","Modrinth":"tinted-campfires"},{"Id":13475,"Name":"","CurseForge":"additionalstatus","Modrinth":""},{"Id":13476,"Name":"","CurseForge":"epic-knights-slavic-armory","Modrinth":""},{"Id":13477,"Name":"","CurseForge":"create-copies-cats","Modrinth":"create-copies-cats"},{"Id":13478,"Name":"","CurseForge":"chat-signing-hider","Modrinth":"chat-signing-hider"},{"Id":13479,"Name":"","CurseForge":"gamma-creatures","Modrinth":"gamma-creatures"},{"Id":13480,"Name":"","CurseForge":"multipart-machines-mining","Modrinth":""},{"Id":13481,"Name":"更好的结构方块1.20.1","CurseForge":"high-version-better-structure-block","Modrinth":""},{"Id":13483,"Name":"","CurseForge":"","Modrinth":"creeper-multidrop"},{"Id":13484,"Name":"雾中人 (The Man From The Fog)","CurseForge":"the-man-from-the-fog","Modrinth":"the-man-from-the-fog"},{"Id":13484,"Name":"雾中人 (The Man From The Fog)","CurseForge":"the-man-from-the-fog-fabric","Modrinth":"the-man-from-the-fog-fabric"},{"Id":13485,"Name":"锯木机 (Sawmill)","CurseForge":"sawmill","Modrinth":"universal-sawmill"},{"Id":13486,"Name":"","CurseForge":"","Modrinth":"savemod"},{"Id":13487,"Name":"","CurseForge":"","Modrinth":"dudewhatsmygpu"},{"Id":13488,"Name":"机械动力:巫术 (Create: Wizardry)","CurseForge":"create-wizardry","Modrinth":"create-wizardry"},{"Id":13489,"Name":"","CurseForge":"netherite-extras","Modrinth":"netherite-extras"},{"Id":13490,"Name":"","CurseForge":"wfs-cave-overhaul","Modrinth":"wfs-cave-overhaul"},{"Id":13493,"Name":"","CurseForge":"cit-resewn-jsonlagpatch","Modrinth":"cit-resewn-jsonlagpatch"},{"Id":13494,"Name":"","CurseForge":"geckoanimfix","Modrinth":"geckoanimfix"},{"Id":13496,"Name":"","CurseForge":"mekanismecoenergistics","Modrinth":"mekanism-eco-energistics"},{"Id":13497,"Name":"Waila 黑名单 (WAILA Blacklist)","CurseForge":"waila-blacklist","Modrinth":""},{"Id":13498,"Name":"物品黑名单 (Item Blacklist)","CurseForge":"item-blacklist","Modrinth":""},{"Id":13499,"Name":"","CurseForge":"continue","Modrinth":"continue"},{"Id":13500,"Name":"黎明纪元 (The Dawn Era)","CurseForge":"the-dawn-era","Modrinth":"the-dawn-era"},{"Id":13502,"Name":"","CurseForge":"tridents-n-stuff","Modrinth":"tridents-n-stuff"},{"Id":13503,"Name":"","CurseForge":"create-hand-crafting","Modrinth":"create-hand-crafting"},{"Id":13504,"Name":"","CurseForge":"","Modrinth":"canary-safety"},{"Id":13505,"Name":"","CurseForge":"","Modrinth":"softer-pastels"},{"Id":13506,"Name":"","CurseForge":"","Modrinth":"rainbethunder"},{"Id":13507,"Name":"","CurseForge":"create-easy-structures","Modrinth":"create-easy-structures"},{"Id":13508,"Name":"","CurseForge":"sound","Modrinth":"sound"},{"Id":13509,"Name":"","CurseForge":"skinshuffle","Modrinth":"skinshuffle"},{"Id":13510,"Name":"萌化机器人:重启 (Reboot LovelyRobot)","CurseForge":"reboot-lovelyrobot","Modrinth":"reboot-lovelyrobot"},{"Id":13515,"Name":"","CurseForge":"farmers-delight-tfc","Modrinth":"farmers-delight-tfc"},{"Id":13516,"Name":"","CurseForge":"even-more-realistic-ore-veins","Modrinth":""},{"Id":13517,"Name":"","CurseForge":"ad-astra-extra","Modrinth":""},{"Id":13518,"Name":"","CurseForge":"underground-bunkers","Modrinth":"underground-bunkers"},{"Id":13519,"Name":"","CurseForge":"minemath","Modrinth":"minemath"},{"Id":13520,"Name":"","CurseForge":"weapon-leveling","Modrinth":"weapon-leveling"},{"Id":13521,"Name":"稍多药水 (Rather More Potions)","CurseForge":"rather-more-potions","Modrinth":""},{"Id":13522,"Name":"琳琅满目 (Museum Curator)","CurseForge":"museum-curator","Modrinth":"museum-curator"},{"Id":13523,"Name":"","CurseForge":"pixel-hud","Modrinth":"pixel-hud"},{"Id":13524,"Name":"","CurseForge":"","Modrinth":"immibis-macroblocks"},{"Id":13525,"Name":"","CurseForge":"","Modrinth":"heater"},{"Id":13526,"Name":"自然旋律 (Nature's Melody)","CurseForge":"natures-melody","Modrinth":"natures-melody"},{"Id":13527,"Name":"","CurseForge":"astemirlib","Modrinth":"astemirlib"},{"Id":13528,"Name":"","CurseForge":"create-unbreakable-tools","Modrinth":"create_unbreakable"},{"Id":13529,"Name":"","CurseForge":"timeless-heroes","Modrinth":"superhero"},{"Id":13530,"Name":"","CurseForge":"sky-origins","Modrinth":"sky"},{"Id":13531,"Name":"","CurseForge":"glitchcore","Modrinth":"glitchcore"},{"Id":13532,"Name":"简明直观的光照提示 (Light Level Overlay Reloaded)","CurseForge":"light-level-overlay-reloaded","Modrinth":""},{"Id":13533,"Name":"蓬莱药局 (Eirin Yagokoro's Pharmacy)","CurseForge":"eirin-yagokoros-pharmacy","Modrinth":"eirin-yagokoro-pharmacy"},{"Id":13535,"Name":"","CurseForge":"tfc-ore-excavation","Modrinth":""},{"Id":13536,"Name":"TAC交互优化 (TAC Interact Key)","CurseForge":"tac-interact-key","Modrinth":""},{"Id":13537,"Name":"","CurseForge":"","Modrinth":"cement"},{"Id":13539,"Name":"","CurseForge":"","Modrinth":"igfileeditor"},{"Id":13540,"Name":"潮汐 (Tide)","CurseForge":"tide","Modrinth":"tide"},{"Id":13541,"Name":"匠魂合金附加二次重栽版 (TAIGA Replant Replant)","CurseForge":"taiga-replant-replant","Modrinth":""},{"Id":13542,"Name":"","CurseForge":"nether-warlord-boss","Modrinth":""},{"Id":13543,"Name":"","CurseForge":"loot-bundles","Modrinth":"loot-bundles"},{"Id":13544,"Name":"","CurseForge":"optifine-check","Modrinth":""},{"Id":13545,"Name":"","CurseForge":"tfc-ie-minerals","Modrinth":""},{"Id":13546,"Name":"","CurseForge":"looking-at","Modrinth":""},{"Id":13548,"Name":"RF 工具箱:延续 (Rftools Continuation)","CurseForge":"rftools-continuation","Modrinth":""},{"Id":13549,"Name":"","CurseForge":"better-with-everything","Modrinth":"better-with-everything"},{"Id":13550,"Name":"","CurseForge":"create-clockwork","Modrinth":"create-clockwork"},{"Id":13551,"Name":"","CurseForge":"lomlib","Modrinth":""},{"Id":13553,"Name":"","CurseForge":"","Modrinth":"old-and-new"},{"Id":13554,"Name":"","CurseForge":"sparkly-pants","Modrinth":"sparkly-pants"},{"Id":13555,"Name":"暗黑羊 (Nether Sheep)","CurseForge":"nether-sheep","Modrinth":"nether-sheep"},{"Id":13557,"Name":"","CurseForge":"light-level-description","Modrinth":""},{"Id":13558,"Name":"","CurseForge":"set-home-waypoints","Modrinth":""},{"Id":13559,"Name":"","CurseForge":"leaky","Modrinth":""},{"Id":13560,"Name":"潘多拉之咒 (Curse of Pandora)","CurseForge":"curse-of-pandora","Modrinth":"curse-of-pandora"},{"Id":13561,"Name":"","CurseForge":"champions-rotn-edition","Modrinth":""},{"Id":13562,"Name":"","CurseForge":"tempest","Modrinth":"tempest"},{"Id":13563,"Name":"","CurseForge":"simpledifficulty-for-underdog","Modrinth":""},{"Id":13564,"Name":"","CurseForge":"","Modrinth":"proxy-compatible-forge"},{"Id":13565,"Name":"","CurseForge":"tally-master","Modrinth":""},{"Id":13566,"Name":"","CurseForge":"hexagonal-heresy","Modrinth":""},{"Id":13567,"Name":"","CurseForge":"hardcore-spelunking","Modrinth":""},{"Id":13568,"Name":"","CurseForge":"dark-menagerie","Modrinth":""},{"Id":13569,"Name":"","CurseForge":"icarus-mod","Modrinth":""},{"Id":13570,"Name":"","CurseForge":"ars-knightsnmages","Modrinth":"epic-knightsnmages"},{"Id":13570,"Name":"","CurseForge":"epic-knightsnmages-fabric","Modrinth":""},{"Id":13571,"Name":"绷带 (Hotai)","CurseForge":"hotai","Modrinth":""},{"Id":13572,"Name":"","CurseForge":"zeta","Modrinth":"zeta"},{"Id":13573,"Name":"","CurseForge":"taxtowncitizen","Modrinth":""},{"Id":13574,"Name":"转化杀手兔 (Killer Bunny Tweaks)","CurseForge":"killer-rabbit-transformation","Modrinth":"killer-bunny-tweaks"},{"Id":13575,"Name":"","CurseForge":"bronze-viking","Modrinth":""},{"Id":13577,"Name":"","CurseForge":"astikor-carts-redux","Modrinth":"astikorcarts-redux"},{"Id":13578,"Name":"第三人称射击:零 (Third Person Shooting: Zero)","CurseForge":"third-person-shooting","Modrinth":"third-person-shooting-zero"},{"Id":13579,"Name":"视域 (Sight)","CurseForge":"sight","Modrinth":""},{"Id":13580,"Name":"","CurseForge":"","Modrinth":"the-first-city"},{"Id":13581,"Name":"钯 (Palladium)","CurseForge":"threetag-palladium","Modrinth":"threetag-palladium"},{"Id":13585,"Name":"永久状态效果 (Permanent Status Effect)","CurseForge":"permanent-status-effect","Modrinth":"permanent_status_effect"},{"Id":13587,"Name":"","CurseForge":"world-play-time","Modrinth":"world-play-time"},{"Id":13588,"Name":"","CurseForge":"ikwila-i-know-what-im-looking-at","Modrinth":""},{"Id":13589,"Name":"","CurseForge":"experienced-crops","Modrinth":"experienced_crops"},{"Id":13590,"Name":"","CurseForge":"medieval-seedbags","Modrinth":""},{"Id":13591,"Name":"","CurseForge":"fusionutil","Modrinth":""},{"Id":13593,"Name":"压缩空间:无限 (Compact Machines: Infinite)","CurseForge":"","Modrinth":"compact-machines-infinite"},{"Id":13594,"Name":"","CurseForge":"thaumic-sanity","Modrinth":""},{"Id":13595,"Name":"","CurseForge":"tfc-volcanoes","Modrinth":"tfc-volcanoes"},{"Id":13596,"Name":"","CurseForge":"animals-trap-for-tfc","Modrinth":""},{"Id":13598,"Name":"","CurseForge":"zzzzz-custom-configs","Modrinth":""},{"Id":13599,"Name":"","CurseForge":"weird-happenings","Modrinth":""},{"Id":13600,"Name":"","CurseForge":"nbc-heroes","Modrinth":"nbc-heroes"},{"Id":13601,"Name":"","CurseForge":"melody","Modrinth":"melody"},{"Id":13602,"Name":"","CurseForge":"cut-through","Modrinth":"cut-through"},{"Id":13604,"Name":"铁砧修复重生 (Anvil Fix Reborn)","CurseForge":"anvilfixreborn","Modrinth":"anvil-fix-reborn"},{"Id":13606,"Name":"","CurseForge":"apothic-curios","Modrinth":""},{"Id":13607,"Name":"","CurseForge":"hbm-ntm-lucky-blocks","Modrinth":""},{"Id":13608,"Name":"","CurseForge":"thaumtweaks","Modrinth":""},{"Id":13609,"Name":"","CurseForge":"no-baby-zombies","Modrinth":"no-baby-zombies"},{"Id":13610,"Name":"","CurseForge":"combat-nouveau","Modrinth":"combat-nouveau"},{"Id":13611,"Name":"","CurseForge":"","Modrinth":"hanging-on"},{"Id":13613,"Name":"神秘农业:懒人 (Lazy Mystical)","CurseForge":"","Modrinth":"lazy-mystical"},{"Id":13614,"Name":"港口 (Udlede)","CurseForge":"udlede","Modrinth":"udlede"},{"Id":13615,"Name":"","CurseForge":"hammer-time","Modrinth":""},{"Id":13616,"Name":"","CurseForge":"hammerz","Modrinth":""},{"Id":13617,"Name":"物品框交互优化 (Pickup)","CurseForge":"","Modrinth":"pickup"},{"Id":13618,"Name":"","CurseForge":"livingadventuretrails","Modrinth":""},{"Id":13619,"Name":"","CurseForge":"suggestions-api","Modrinth":"suggestions-api"},{"Id":13620,"Name":"","CurseForge":"colorful-subtitles","Modrinth":"colorful-subtitles"},{"Id":13621,"Name":"","CurseForge":"dashing-dashboard","Modrinth":""},{"Id":13622,"Name":"模组控制 (Mod Control)","CurseForge":"mod-control","Modrinth":""},{"Id":13623,"Name":"","CurseForge":"extended-potions","Modrinth":""},{"Id":13624,"Name":"维度物品栏 (Dimension Inventorys)","CurseForge":"dimension-inventorys","Modrinth":""},{"Id":13625,"Name":"维度规则 (Dimension Rules)","CurseForge":"dimension-rules","Modrinth":""},{"Id":13626,"Name":"","CurseForge":"erroring-entity-remover-reforged","Modrinth":"eer-reforged"},{"Id":13627,"Name":"瓦尔基里天空:竞赛 (VS: Tournament Continued)","CurseForge":"","Modrinth":"vs-tournament"},{"Id":13628,"Name":"","CurseForge":"fabricated-exchange","Modrinth":"fabricated-exchange"},{"Id":13629,"Name":"","CurseForge":"more-variants-and-biomes","Modrinth":""},{"Id":13630,"Name":"","CurseForge":"badoptimizations","Modrinth":"badoptimizations"},{"Id":13632,"Name":"","CurseForge":"genshinimpactmod","Modrinth":""},{"Id":13633,"Name":"","CurseForge":"diagonal-walls","Modrinth":"diagonal-walls"},{"Id":13634,"Name":"","CurseForge":"gravestones-die-classy-updated","Modrinth":""},{"Id":13635,"Name":"","CurseForge":"osog-city-cars","Modrinth":""},{"Id":13636,"Name":"","CurseForge":"immersive-vehicles-iav-parts-pack","Modrinth":""},{"Id":13637,"Name":"工业长路:虚拟油田 (TFMG: Virtual Oil Deposit)","CurseForge":"tfmg-virtual-oil-deposit","Modrinth":""},{"Id":13638,"Name":"","CurseForge":"","Modrinth":"alinlib"},{"Id":13639,"Name":"矿石魔种 (矿石作物/魔种之咏 IF版) (Croparia-IF)","CurseForge":"croparia-if","Modrinth":"croparia-if"},{"Id":13641,"Name":"","CurseForge":"","Modrinth":"actionlib"},{"Id":13642,"Name":"","CurseForge":"simple-close-button","Modrinth":"simple-close-button"},{"Id":13645,"Name":"","CurseForge":"godzilla-rising","Modrinth":""},{"Id":13646,"Name":"","CurseForge":"create-netherless","Modrinth":"create-netherless"},{"Id":13647,"Name":"沉浸进化 (NoGuiEvolution)","CurseForge":"noguievolution","Modrinth":"no-gui-evolution"},{"Id":13648,"Name":"","CurseForge":"baseball-bats","Modrinth":""},{"Id":13649,"Name":"","CurseForge":"tfc-weather","Modrinth":""},{"Id":13651,"Name":"","CurseForge":"conrad","Modrinth":"conrad"},{"Id":13653,"Name":"","CurseForge":"nendermoo","Modrinth":""},{"Id":13654,"Name":"","CurseForge":"forgedcarpet","Modrinth":"forgedcarpet"},{"Id":13655,"Name":"","CurseForge":"framed","Modrinth":""},{"Id":13656,"Name":"","CurseForge":"gear-core","Modrinth":"gear-core"},{"Id":13657,"Name":"隐藏“已修改” (HideModded)","CurseForge":"hideasterisk","Modrinth":"hidemodded"},{"Id":13658,"Name":"","CurseForge":"monster-eggs","Modrinth":"monster-eggs"},{"Id":13659,"Name":"驱雨盾 (Rain Shield)","CurseForge":"rain-shield","Modrinth":"rain-shield"},{"Id":13660,"Name":"","CurseForge":"cerbons-better-beacons","Modrinth":"cerbons-better-beacons"},{"Id":13661,"Name":"","CurseForge":"","Modrinth":"funny-roulette"},{"Id":13662,"Name":"","CurseForge":"","Modrinth":"worldeditcui-forge"},{"Id":13663,"Name":"","CurseForge":"better-loot","Modrinth":"better-loot"},{"Id":13664,"Name":"","CurseForge":"trique-api","Modrinth":"trique-api"},{"Id":13665,"Name":"","CurseForge":"lets-do-addon-structures","Modrinth":""},{"Id":13666,"Name":"","CurseForge":"create-recycle-everything","Modrinth":""},{"Id":13667,"Name":"","CurseForge":"tfc-ambiental-second-edition","Modrinth":"tfc-ambiental-second-edition"},{"Id":13668,"Name":"","CurseForge":"","Modrinth":"somemusicdiscs"},{"Id":13669,"Name":"","CurseForge":"gimmetime","Modrinth":""},{"Id":13670,"Name":"","CurseForge":"","Modrinth":"fuzzy"},{"Id":13671,"Name":"","CurseForge":"helpfixer","Modrinth":""},{"Id":13672,"Name":"","CurseForge":"","Modrinth":"litemoretica"},{"Id":13673,"Name":"","CurseForge":"","Modrinth":"shiftingwares-villagerconfig-addon"},{"Id":13674,"Name":"","CurseForge":"","Modrinth":"colored-lamps"},{"Id":13675,"Name":"","CurseForge":"","Modrinth":"expansive-lighting"},{"Id":13676,"Name":"","CurseForge":"drippedout","Modrinth":"dripped-out"},{"Id":13677,"Name":"","CurseForge":"easter-rabbit-life","Modrinth":"easter-rabbit-life"},{"Id":13678,"Name":"","CurseForge":"sticker-frames","Modrinth":"sticker-frames"},{"Id":13679,"Name":"","CurseForge":"tnt-slimes","Modrinth":"tnt-slimes"},{"Id":13680,"Name":"","CurseForge":"armored-redstone","Modrinth":"armored-redstone"},{"Id":13681,"Name":"铋 (Bismuth)","CurseForge":"bismuth-colors","Modrinth":"bismuth-2"},{"Id":13682,"Name":"","CurseForge":"killbind","Modrinth":"killbind"},{"Id":13683,"Name":"","CurseForge":"universal-clock-hud","Modrinth":"universal-clock-hud"},{"Id":13684,"Name":"","CurseForge":"portaldupebegone","Modrinth":"portaldupebegone"},{"Id":13685,"Name":"","CurseForge":"","Modrinth":"teabridge"},{"Id":13686,"Name":"","CurseForge":"missions","Modrinth":"missions"},{"Id":13687,"Name":"","CurseForge":"votemission","Modrinth":"votemission"},{"Id":13688,"Name":"","CurseForge":"immersive-vehicles-automobilwerke-schwikau-veb","Modrinth":""},{"Id":13689,"Name":"","CurseForge":"cheesemaking","Modrinth":""},{"Id":13690,"Name":"","CurseForge":"cardiac","Modrinth":"cardiac"},{"Id":13691,"Name":"","CurseForge":"materialtweaker","Modrinth":"materialtweaker"},{"Id":13692,"Name":"","CurseForge":"whirlwind","Modrinth":"whirlwind"},{"Id":13693,"Name":"","CurseForge":"warden-tools","Modrinth":"warden-tools"},{"Id":13694,"Name":"皇家守卫 (Royal Guard)","CurseForge":"royal-guard","Modrinth":""},{"Id":13695,"Name":"","CurseForge":"","Modrinth":"the-mighty-architectury"},{"Id":13696,"Name":"更忠诚的三叉戟/移运兜转 (TheMoreLoyalTrident)","CurseForge":"themoreloyaltrident","Modrinth":"themoreloyaltrident"},{"Id":13697,"Name":"","CurseForge":"notenoughresources","Modrinth":""},{"Id":13698,"Name":"","CurseForge":"elenai-dodge","Modrinth":""},{"Id":13699,"Name":"氙 (Xenon)","CurseForge":"xenon","Modrinth":"xenon-forge"},{"Id":13700,"Name":"","CurseForge":"riftstorm-rpg","Modrinth":""},{"Id":13701,"Name":"","CurseForge":"data-api","Modrinth":""},{"Id":13702,"Name":"","CurseForge":"better-babies","Modrinth":""},{"Id":13703,"Name":"","CurseForge":"morecreativetabs-forge-fabric","Modrinth":"morecreativetabs"},{"Id":13705,"Name":"","CurseForge":"","Modrinth":"shove!"},{"Id":13706,"Name":"向日葵乐事 (Sunflower Delight)","CurseForge":"sunflower-delight","Modrinth":"sunflower-delight"},{"Id":13707,"Name":"夜雀乐事 (Mystias Izakaya)","CurseForge":"mystias-izakaya","Modrinth":"mystiasizakaya"},{"Id":13708,"Name":"","CurseForge":"carpet-everything","Modrinth":""},{"Id":13710,"Name":"盛节精酿 (Let's Do Brewery) - [作者推荐]2.0.0+","CurseForge":"lets-do-brewery-farm-charm-compat","Modrinth":"lets-do-brewery-farmcharm-compat"},{"Id":13710,"Name":"盛节精酿 (Let's Do Brewery) - Legacy,作者已停止维护","CurseForge":"lets-do-brewery","Modrinth":"lets-do-brewery"},{"Id":13711,"Name":"","CurseForge":"hephaestusplus","Modrinth":"hephaestusplus"},{"Id":13712,"Name":"维度阶段重制版 (Re-Dimension Stages)","CurseForge":"re-dimension-stages","Modrinth":""},{"Id":13713,"Name":"","CurseForge":"lemoned","Modrinth":"lemoned-(farmers-delight)"},{"Id":13714,"Name":"","CurseForge":"","Modrinth":"horizonlimit"},{"Id":13715,"Name":"","CurseForge":"fallen-paladins-and-priests","Modrinth":""},{"Id":13717,"Name":"","CurseForge":"","Modrinth":"rgb"},{"Id":13718,"Name":"","CurseForge":"","Modrinth":"virtualpump"},{"Id":13719,"Name":"","CurseForge":"everymole","Modrinth":"everymole"},{"Id":13720,"Name":"","CurseForge":"mutant-iceologer","Modrinth":"mutant-iceologer-mod"},{"Id":13721,"Name":"","CurseForge":"","Modrinth":"days-gone"},{"Id":13722,"Name":"额外战利品 (Extra Loot)","CurseForge":"","Modrinth":"extra-loot"},{"Id":13723,"Name":"游戏遗物:延续 (Relics Of Gaming Continued)","CurseForge":"relics-of-gaming-continued","Modrinth":"relics-of-gaming-continued"},{"Id":13724,"Name":"","CurseForge":"endermen-plus","Modrinth":"endermen-plus"},{"Id":13725,"Name":"","CurseForge":"tiptapshow","Modrinth":"tiptapshow"},{"Id":13726,"Name":"","CurseForge":"villager-gunners","Modrinth":""},{"Id":13728,"Name":"","CurseForge":"epic-fight-infernal-gainer","Modrinth":""},{"Id":13729,"Name":"","CurseForge":"prodigy-mechanics","Modrinth":""},{"Id":13730,"Name":"","CurseForge":"just-an-end-anchor","Modrinth":"just-an-end-anchor"},{"Id":13732,"Name":"标题显示内存 (Memory Usage Title)","CurseForge":"memory-usage-title","Modrinth":"memory-usage-title"},{"Id":13733,"Name":"字符串工具 (String Utilities)","CurseForge":"string-utilities","Modrinth":"string-utilities"},{"Id":13735,"Name":"清洁女仆 (Sweeper Maid)","CurseForge":"sweeper-maid","Modrinth":"sweeper-maid"},{"Id":13736,"Name":"更多附魔 (More Enchantments)","CurseForge":"more-enchantments_","Modrinth":""},{"Id":13737,"Name":"","CurseForge":"bow-scope","Modrinth":""},{"Id":13739,"Name":"","CurseForge":"fpv20","Modrinth":""},{"Id":13740,"Name":"","CurseForge":"molten-metal","Modrinth":""},{"Id":13741,"Name":"","CurseForge":"selling-bin","Modrinth":"selling-bin"},{"Id":13742,"Name":"","CurseForge":"tomtarus-cobblemon-farmers-delight-tweaks","Modrinth":""},{"Id":13743,"Name":"","CurseForge":"cobblemon-o-plenty","Modrinth":""},{"Id":13744,"Name":"","CurseForge":"tomtarus-cobblemon-immersive-engineering-tweaks","Modrinth":""},{"Id":13745,"Name":"","CurseForge":"abuseless-hardcore","Modrinth":"abuseless-hardcore"},{"Id":13746,"Name":"","CurseForge":"","Modrinth":"wizstacks32"},{"Id":13747,"Name":"","CurseForge":"tconjei","Modrinth":"tconjei"},{"Id":13748,"Name":"","CurseForge":"new-xp-ore","Modrinth":""},{"Id":13749,"Name":"","CurseForge":"","Modrinth":"not-responding"},{"Id":13750,"Name":"","CurseForge":"nocubes-wilderness","Modrinth":""},{"Id":13752,"Name":"","CurseForge":"copper-great-swords","Modrinth":""},{"Id":13753,"Name":"","CurseForge":"","Modrinth":"better-falling-block-particles"},{"Id":13754,"Name":"","CurseForge":"zume","Modrinth":"zume"},{"Id":13755,"Name":"","CurseForge":"mobtimizations","Modrinth":"mobtimizations"},{"Id":13756,"Name":"","CurseForge":"illager-trader","Modrinth":"illager-trader"},{"Id":13757,"Name":"","CurseForge":"","Modrinth":"damagenumbers"},{"Id":13758,"Name":"","CurseForge":"toolendxp","Modrinth":""},{"Id":13759,"Name":"","CurseForge":"spiritmancy","Modrinth":"spiritmancy"},{"Id":13760,"Name":"","CurseForge":"create-vintage-improvements","Modrinth":"create-vintage-improvements"},{"Id":13762,"Name":"","CurseForge":"dragon-craft-quest","Modrinth":""},{"Id":13763,"Name":"","CurseForge":"sword-of-gods","Modrinth":""},{"Id":13764,"Name":"","CurseForge":"horse-stonks","Modrinth":"horse-stonks"},{"Id":13766,"Name":"","CurseForge":"pillarger","Modrinth":"pillarger"},{"Id":13767,"Name":"","CurseForge":"ars-additions","Modrinth":"ars-additions"},{"Id":13768,"Name":"","CurseForge":"visualsound","Modrinth":""},{"Id":13769,"Name":"","CurseForge":"","Modrinth":"cyclic-crash-fixer"},{"Id":13770,"Name":"","CurseForge":"lavender-api","Modrinth":"lavender"},{"Id":13772,"Name":"","CurseForge":"cheatutils","Modrinth":""},{"Id":13773,"Name":"","CurseForge":"jump-sounds","Modrinth":"jump-sounds"},{"Id":13774,"Name":"","CurseForge":"kirin","Modrinth":"kirin"},{"Id":13775,"Name":"","CurseForge":"llamapalooza","Modrinth":""},{"Id":13776,"Name":"","CurseForge":"instant-drown","Modrinth":""},{"Id":13777,"Name":"","CurseForge":"acsguis","Modrinth":""},{"Id":13778,"Name":"游戏阶段 (Game Phase)","CurseForge":"game-phase","Modrinth":"game-phase"},{"Id":13779,"Name":"","CurseForge":"no-zombie-pandemic","Modrinth":""},{"Id":13780,"Name":"","CurseForge":"witcheroo","Modrinth":"witcheroo"},{"Id":13781,"Name":"","CurseForge":"totallybalancedcreativeflying","Modrinth":""},{"Id":13783,"Name":"","CurseForge":"heterorustichromia","Modrinth":""},{"Id":13784,"Name":"","CurseForge":"video-extension-for-fancymenu-forge","Modrinth":""},{"Id":13784,"Name":"","CurseForge":"video-extension-for-fancymenu-fabric","Modrinth":""},{"Id":13785,"Name":"","CurseForge":"easy-npc","Modrinth":"easy-npc"},{"Id":13787,"Name":"黎明纪元乐事 (The Dawn Era Delight)","CurseForge":"the-dawn-era-delight","Modrinth":"the-dawn-era-delight"},{"Id":13788,"Name":"","CurseForge":"dynamic-craft","Modrinth":""},{"Id":13789,"Name":"","CurseForge":"startinginventory","Modrinth":""},{"Id":13790,"Name":"无线扬声器 (Wireless Speakers)","CurseForge":"wireless-speakers","Modrinth":""},{"Id":13791,"Name":"SA特效 (SagerFX)","CurseForge":"sagerfx","Modrinth":"sagerfx"},{"Id":13792,"Name":"","CurseForge":"","Modrinth":"noteit"},{"Id":13793,"Name":"珠宝工艺2 (Jewelrycraft 2)","CurseForge":"jewelrycraft-2","Modrinth":""},{"Id":13794,"Name":"","CurseForge":"fallflyinglib","Modrinth":""},{"Id":13795,"Name":"","CurseForge":"enchantable-spike","Modrinth":""},{"Id":13797,"Name":"","CurseForge":"xaeros-map-chest-tracker-integration","Modrinth":"xaeros-map-chest-tracker-integration"},{"Id":13798,"Name":"","CurseForge":"warden-horn","Modrinth":"warden-horn"},{"Id":13799,"Name":"","CurseForge":"too-many-efficiency-losses","Modrinth":""},{"Id":13800,"Name":"SRP:寄生蜂 (Scape and Run Parasites Addon: Cotesia Glomerata)","CurseForge":"srp-addon-cotesia-glomerata","Modrinth":"srp-addon-cotesia-glomerata"},{"Id":13802,"Name":"磁场天锁 (Damage Lock)","CurseForge":"damage-lock","Modrinth":""},{"Id":13804,"Name":"模块化材料 (Modular Materials)","CurseForge":"modular-materials","Modrinth":"modularmaterials"},{"Id":13805,"Name":"","CurseForge":"minepal","Modrinth":""},{"Id":13806,"Name":"自定义传送门 (Custom Portals)","CurseForge":"custom-portals","Modrinth":"custom-portals"},{"Id":13807,"Name":"","CurseForge":"dirty-lens","Modrinth":"dirty-lens"},{"Id":13808,"Name":"改良的铁砧 (Improved Anvils)","CurseForge":"","Modrinth":"improved-anvils"},{"Id":13809,"Name":"","CurseForge":"styled-player-list","Modrinth":"styledplayerlist"},{"Id":13810,"Name":"","CurseForge":"create-love-war","Modrinth":"create-love-war"},{"Id":13812,"Name":"","CurseForge":"chainmailed","Modrinth":"chainmailed"},{"Id":13813,"Name":"","CurseForge":"serious-player-animations","Modrinth":"serious-player-animations"},{"Id":13814,"Name":"","CurseForge":"abridged","Modrinth":"abridged"},{"Id":13815,"Name":"","CurseForge":"hexvr","Modrinth":"hexvr"},{"Id":13816,"Name":"","CurseForge":"hearths","Modrinth":""},{"Id":13817,"Name":"","CurseForge":"prey-effect","Modrinth":""},{"Id":13818,"Name":"","CurseForge":"venturer","Modrinth":"venturer"},{"Id":13819,"Name":"","CurseForge":"wheres-my-wither-storm","Modrinth":""},{"Id":13820,"Name":"Alex 的生物:交互 (Alexs Mobs Interaction)","CurseForge":"alexsmobsinteraction","Modrinth":"alexs-mobs-interaction"},{"Id":13825,"Name":"","CurseForge":"myworldgen","Modrinth":""},{"Id":13826,"Name":"","CurseForge":"medieval-buildings-end-edition","Modrinth":"medieval-buildings-end-edition"},{"Id":13828,"Name":"","CurseForge":"orpheus","Modrinth":"orpheus"},{"Id":13829,"Name":"","CurseForge":"create-sweets-and-treats","Modrinth":"create-sweets-and-treats"},{"Id":13830,"Name":"","CurseForge":"klsts-beyond-netherite","Modrinth":""},{"Id":13832,"Name":"","CurseForge":"refined-polymorphism","Modrinth":"refined-polymorphism"},{"Id":13833,"Name":"","CurseForge":"cave-dweller","Modrinth":""},{"Id":13834,"Name":"","CurseForge":"dweller-dweller","Modrinth":"dwellerdweller"},{"Id":13835,"Name":"","CurseForge":"thermals-delight","Modrinth":""},{"Id":13836,"Name":"","CurseForge":"","Modrinth":"advanced-hud"},{"Id":13837,"Name":"","CurseForge":"better-farmers-combat","Modrinth":""},{"Id":13839,"Name":"","CurseForge":"simple-butchery","Modrinth":""},{"Id":13839,"Name":"Simple Butchery - 被设置为无法检索列出","CurseForge":"","Modrinth":"simple-butchery"},{"Id":13840,"Name":"","CurseForge":"butchery","Modrinth":"butchery"},{"Id":13842,"Name":"","CurseForge":"enchantment-reveal","Modrinth":"enchantment-reveal"},{"Id":13844,"Name":"机械动力:伪装方块+ (Create: Copycats+)","CurseForge":"copycats","Modrinth":"copycats"},{"Id":13845,"Name":"","CurseForge":"the-great-alchemical-compendium","Modrinth":"the-great-alchemical-compendium"},{"Id":13846,"Name":"","CurseForge":"desperate-measures","Modrinth":"desperate-measures"},{"Id":13847,"Name":"","CurseForge":"block-slabs-mod","Modrinth":""},{"Id":13848,"Name":"","CurseForge":"roost-re-hatched","Modrinth":""},{"Id":13849,"Name":"","CurseForge":"lifedrain","Modrinth":""},{"Id":13850,"Name":"","CurseForge":"mediethings","Modrinth":""},{"Id":13851,"Name":"","CurseForge":"gastrolimital-bypass","Modrinth":"no_player_limit"},{"Id":13853,"Name":"史诗核心API (Epic Core API)","CurseForge":"epic-core-api","Modrinth":"epic-core-api"},{"Id":13855,"Name":"","CurseForge":"infinityrpg","Modrinth":""},{"Id":13856,"Name":"","CurseForge":"super-water-block","Modrinth":""},{"Id":13857,"Name":"停!循环型命令方块 (Stop Repeating Command Block)","CurseForge":"","Modrinth":"stop-repeating-command-block"},{"Id":13859,"Name":"压强 (Pressure)","CurseForge":"pressure","Modrinth":""},{"Id":13860,"Name":"","CurseForge":"amendments","Modrinth":"amendments"},{"Id":13861,"Name":"","CurseForge":"piglin-army","Modrinth":""},{"Id":13862,"Name":"","CurseForge":"decorative-ladders","Modrinth":"decorative-ladders"},{"Id":13863,"Name":"","CurseForge":"more-foods","Modrinth":""},{"Id":13865,"Name":"现代乐事 (Modern Delight)","CurseForge":"modern-delight","Modrinth":"modern-delight"},{"Id":13866,"Name":"","CurseForge":"better-main-menu","Modrinth":"bettermainmenu"},{"Id":13868,"Name":"","CurseForge":"more-wizards","Modrinth":"more-wizards-more-magic-series"},{"Id":13869,"Name":"","CurseForge":"oldresearch","Modrinth":"oldresearch"},{"Id":13870,"Name":"","CurseForge":"ascension-megamons","Modrinth":"ascension-megamons"},{"Id":13871,"Name":"","CurseForge":"simply-sulphur","Modrinth":"simply-sulphur"},{"Id":13872,"Name":"","CurseForge":"fabric-hider","Modrinth":""},{"Id":13873,"Name":"","CurseForge":"custom-cursor","Modrinth":"custom-cursor"},{"Id":13874,"Name":"","CurseForge":"the-man-from-the-void","Modrinth":""},{"Id":13875,"Name":"","CurseForge":"simpletms-tms-and-trs-for-cobblemon","Modrinth":"simpletms-tms-and-trs-for-cobblemon"},{"Id":13876,"Name":"","CurseForge":"cobblemizer","Modrinth":"cobblemizer"},{"Id":13877,"Name":"","CurseForge":"worldtools","Modrinth":"worldtools"},{"Id":13878,"Name":"","CurseForge":"particle-blocker","Modrinth":"particles"},{"Id":13879,"Name":"","CurseForge":"vehicle-hunger-bar","Modrinth":"vehicle-hunger-bar"},{"Id":13880,"Name":"","CurseForge":"spooky-scary-halloween","Modrinth":""},{"Id":13884,"Name":"","CurseForge":"sandbox-bootstrap","Modrinth":""},{"Id":13885,"Name":"","CurseForge":"tetra-toolbooster","Modrinth":""},{"Id":13886,"Name":"","CurseForge":"ad-astra-proxima-plus","Modrinth":""},{"Id":13887,"Name":"","CurseForge":"ad-astra-extra-additions","Modrinth":"ad-astra-extra-additions"},{"Id":13888,"Name":"无限流体桶 (Infinite Fluid Bucket)","CurseForge":"infinite-fluid-bucket","Modrinth":"infinite-fluid-bucket"},{"Id":13890,"Name":"","CurseForge":"","Modrinth":"voxy"},{"Id":13891,"Name":"VMod - 停更","CurseForge":"vmod","Modrinth":""},{"Id":13891,"Name":"","CurseForge":"","Modrinth":"vmod"},{"Id":13892,"Name":"","CurseForge":"minestuck","Modrinth":""},{"Id":13894,"Name":"","CurseForge":"star-wars-planets-ad-astra","Modrinth":"star-wars-planets"},{"Id":13895,"Name":"","CurseForge":"amethyst-equipment","Modrinth":"amethyst-equipment"},{"Id":13896,"Name":"","CurseForge":"the-whisperer","Modrinth":""},{"Id":13898,"Name":"","CurseForge":"epic-vinland-saga","Modrinth":""},{"Id":13899,"Name":"","CurseForge":"cat_jam","Modrinth":"cat_jam"},{"Id":13900,"Name":"","CurseForge":"remastered-structure","Modrinth":""},{"Id":13901,"Name":"","CurseForge":"spacore","Modrinth":""},{"Id":13902,"Name":"","CurseForge":"fancyvideo-api","Modrinth":""},{"Id":13903,"Name":"","CurseForge":"goatman-jar-v2-dweller","Modrinth":"the-goatman-dwller"},{"Id":13905,"Name":"","CurseForge":"mineral-overhaul-shellstone-tuff","Modrinth":""},{"Id":13906,"Name":"清除GPU缓存 (Clear Gpu Cache)","CurseForge":"clear-gpu-cache","Modrinth":"clear-gpu-cache"},{"Id":13907,"Name":"","CurseForge":"stalker-creepers","Modrinth":""},{"Id":13908,"Name":"","CurseForge":"the-ghoul-remastered","Modrinth":"the-ghoul-remastered"},{"Id":13909,"Name":"","CurseForge":"","Modrinth":"transitmanager"},{"Id":13910,"Name":"","CurseForge":"integrated-scripting","Modrinth":"integrated-scripting"},{"Id":13911,"Name":"","CurseForge":"","Modrinth":"nyc-mtr"},{"Id":13912,"Name":"","CurseForge":"","Modrinth":"mtr-utility"},{"Id":13913,"Name":"创造物品栏检索 (CreativeTabSearch)","CurseForge":"creativetabsearch","Modrinth":"creativetabsearch"},{"Id":13914,"Name":"在月亮之间 (Moon Between)","CurseForge":"moonbetween","Modrinth":"moonbetween"},{"Id":13915,"Name":"四弦琴 (Tetrachord Lib)","CurseForge":"tetrachord-lib","Modrinth":"tetrachord-lib"},{"Id":13916,"Name":"屏幕截图分享/移影睹展 (ScreenshotSharing)","CurseForge":"screenshot-sharing","Modrinth":""},{"Id":13917,"Name":"落叶堆 (Leaf Pile)","CurseForge":"leaf-pile","Modrinth":"leaf-pile"},{"Id":13918,"Name":"","CurseForge":"uwufied","Modrinth":"uwufied"},{"Id":13919,"Name":"","CurseForge":"sit-chill","Modrinth":""},{"Id":13920,"Name":"机械动力:蓝图空位 (Create:Blueprint Void)","CurseForge":"blueprintvoid","Modrinth":"create-blueprint-void"},{"Id":13922,"Name":"","CurseForge":"mo-creatures-legacy","Modrinth":"mo-creatures-legacy"},{"Id":13923,"Name":"","CurseForge":"sticky-hands","Modrinth":""},{"Id":13924,"Name":"","CurseForge":"pandalib","Modrinth":"pandalib"},{"Id":13925,"Name":"","CurseForge":"inventory-spam","Modrinth":""},{"Id":13926,"Name":"","CurseForge":"","Modrinth":"mineproc"},{"Id":13927,"Name":"","CurseForge":"slime-merger","Modrinth":""},{"Id":13928,"Name":"","CurseForge":"configurable-cane","Modrinth":""},{"Id":13929,"Name":"","CurseForge":"hex-keys","Modrinth":"hexkeys"},{"Id":13930,"Name":"","CurseForge":"sky-lands","Modrinth":"sky-lands"},{"Id":13932,"Name":"","CurseForge":"vocalized","Modrinth":""},{"Id":13933,"Name":"森罗万象 (Kaleidos)","CurseForge":"","Modrinth":"kaleidos"},{"Id":13937,"Name":"","CurseForge":"kubejs-irons-spells","Modrinth":"isskjs"},{"Id":13938,"Name":"","CurseForge":"revelationaryjs","Modrinth":"revelationaryjs"},{"Id":13939,"Name":"","CurseForge":"arche","Modrinth":""},{"Id":13940,"Name":"","CurseForge":"caverns-and-chasms","Modrinth":"caverns-and-chasms"},{"Id":13943,"Name":"","CurseForge":"mixinbooster","Modrinth":"mixinbooster"},{"Id":13944,"Name":"方块合成 (Block Crafting)","CurseForge":"block-crafting","Modrinth":"block-crafting"},{"Id":13945,"Name":"","CurseForge":"zombplayer","Modrinth":"zombplayer"},{"Id":13946,"Name":"","CurseForge":"knighys-mystical-creatures","Modrinth":""},{"Id":13947,"Name":"","CurseForge":"sign-button","Modrinth":""},{"Id":13948,"Name":"","CurseForge":"startinv","Modrinth":"startinv"},{"Id":13949,"Name":"","CurseForge":"","Modrinth":"server-replay"},{"Id":13950,"Name":"","CurseForge":"ftb-stoneblock-companion","Modrinth":""},{"Id":13951,"Name":"罪业余烬:自定义反附魔实体 (Ash Of Sin: Custom Anti Enchantment Entity)","CurseForge":"ash-of-sin-custom-anti-enchantment-entity","Modrinth":""},{"Id":13952,"Name":"罪业余烬:反高级附魔 (Ash Of Sin: Anti High Level Enchantment)","CurseForge":"ash-of-sin-anti-high-level-enchantment","Modrinth":""},{"Id":13953,"Name":"罪业余烬:自定义反物品实体 (Ash Of Sin: Custom Anti Item Entity)","CurseForge":"ash-of-sin-custom-anti-item-entity","Modrinth":""},{"Id":13954,"Name":"罪业余烬:自定义反坐垫实体 (Ash Of Sin: Custom Anti Seat Entity)","CurseForge":"ash-of-sin-custom-anti-seat-entity","Modrinth":""},{"Id":13955,"Name":"罪业余烬:自定义实体反状态效果 (Ash Of Sin: Custom Entity Anti Effect)","CurseForge":"ash-of-sin-custom-entity-anti-effect","Modrinth":""},{"Id":13956,"Name":"罪业余烬:自定义实体状态效果 (Ash Of Sin: Custom Entity Effect)","CurseForge":"ash-of-sin-custom-entity-effect","Modrinth":""},{"Id":13957,"Name":"罪业余烬:自定义实体装备 (Ash Of Sin: Custom Entity Item)","CurseForge":"ash-of-sin-custom-entity-item","Modrinth":""},{"Id":13958,"Name":"罪业余烬:永恒实体 (Ash Of Sin: Eternal Entity)","CurseForge":"ash-of-sin-eternal-entity","Modrinth":""},{"Id":13960,"Name":"","CurseForge":"fundamental","Modrinth":"fundamental"},{"Id":13961,"Name":"","CurseForge":"wendigo-jar-dweller","Modrinth":""},{"Id":13962,"Name":"超神之路 (TheSuperGodRoad)","CurseForge":"the-super-god-road","Modrinth":"the-super-god-road"},{"Id":13963,"Name":"","CurseForge":"","Modrinth":"backrooms"},{"Id":13966,"Name":"存储乐事 (Storage Delight)","CurseForge":"storage-delight-forge","Modrinth":"storage-delight"},{"Id":13966,"Name":"存储乐事 (Storage Delight)","CurseForge":"storage-delight-fabric","Modrinth":""},{"Id":13967,"Name":"光之护盾 (LightShield)","CurseForge":"lightshield","Modrinth":"lightshield"},{"Id":13968,"Name":"精妙核心(非官方 Fabric 移植) (Sophisticated Core (Unofficial Fabric port))","CurseForge":"sophisticated-core-unofficial-fabric-port","Modrinth":"sophisticated-core-(unofficial-fabric-port)"},{"Id":13969,"Name":"精妙背包 (Sophisticated Backpacks) - 非官方 Fabric 版","CurseForge":"sophisticated-backpacks-unofficial-fabric-port","Modrinth":"sophisticated-backpacks-(unoffical-fabric-port)"},{"Id":13970,"Name":"","CurseForge":"red-power","Modrinth":""},{"Id":13972,"Name":"","CurseForge":"","Modrinth":"minihud-extra"},{"Id":13973,"Name":"精妙存储(非官方 Fabric 移植) (Sophisticated Storage (Unofficial Fabric port))","CurseForge":"sophisticated-storage-unofficial-fabric-port","Modrinth":"sophisticated-storage-(unofficial-fabric-port)"},{"Id":13974,"Name":"","CurseForge":"","Modrinth":"oldoredrops"},{"Id":13975,"Name":"兴怒 (Rage Mod)","CurseForge":"rage-mod","Modrinth":"rage-mod"},{"Id":13976,"Name":"","CurseForge":"","Modrinth":"disable-all-structures"},{"Id":13977,"Name":"复合材料 (Composite Material)","CurseForge":"composite-material","Modrinth":""},{"Id":13978,"Name":"光阴:莉拉提娅 (TimeRecorder)","CurseForge":"timerecorder","Modrinth":"timerecorder"},{"Id":13979,"Name":"","CurseForge":"bettersmithingtable","Modrinth":"bettersmithingtable"},{"Id":13980,"Name":"弹道估计 (Trajectory Estimation)","CurseForge":"trajectory-estimation","Modrinth":"trajectory-estimation"},{"Id":13981,"Name":"狐狐核心 (FoxCore)","CurseForge":"","Modrinth":"foxcore"},{"Id":13988,"Name":"","CurseForge":"iron-repair-kits","Modrinth":"iron-repair-kits"},{"Id":13989,"Name":"","CurseForge":"","Modrinth":"susinsert"},{"Id":13990,"Name":"","CurseForge":"critters-n-crawlers","Modrinth":"critters-n-crawlers"},{"Id":13992,"Name":"","CurseForge":"epic-stats","Modrinth":""},{"Id":13993,"Name":"","CurseForge":"brew-chew","Modrinth":"brewn-chew"},{"Id":13994,"Name":"","CurseForge":"","Modrinth":"lummobs"},{"Id":13995,"Name":"机械动力:齿轮与麦穗 (Create: Ratatouille)","CurseForge":"create-ratatouille","Modrinth":"create-ratatouille"},{"Id":13996,"Name":"","CurseForge":"jains-desserts","Modrinth":"jains-desserts"},{"Id":13997,"Name":"","CurseForge":"","Modrinth":"drizzleproof"},{"Id":13998,"Name":"","CurseForge":"","Modrinth":"thief-tweaks"},{"Id":13999,"Name":"","CurseForge":"the-long-story","Modrinth":"the-long-story"},{"Id":14000,"Name":"","CurseForge":"simple-hud-enhanced","Modrinth":"simple-hud-enhanced"},{"Id":14001,"Name":"Vocalized 绫地宁宁语音包 (VocalizedAyachiNeneVoicePack)","CurseForge":"vocalized-ayachinene-voice-pack","Modrinth":""},{"Id":14002,"Name":"","CurseForge":"the-between-awakens","Modrinth":""},{"Id":14003,"Name":"","CurseForge":"emc-interface","Modrinth":"emc-interface"},{"Id":14004,"Name":"Csgo 箱子 (CsgoBox)","CurseForge":"csgo-box","Modrinth":""},{"Id":14005,"Name":"机械动力:原子计划 (Create: Oppenheimered)","CurseForge":"create-oppenheimered","Modrinth":"create-oppenheimered"},{"Id":14006,"Name":"","CurseForge":"dimension-update-fixer","Modrinth":"dimension-update-fixer"},{"Id":14007,"Name":"","CurseForge":"dont-keep-vanishing-items","Modrinth":"dont-keep-vanishing-items"},{"Id":14008,"Name":"","CurseForge":"ore-processing-for-tfc","Modrinth":""},{"Id":14009,"Name":"创造物品栏页码跳转 (CreativePageJump)","CurseForge":"creativepagejump","Modrinth":"creativepagejump"},{"Id":14010,"Name":"","CurseForge":"april-fools","Modrinth":"april-fools"},{"Id":14011,"Name":"极墨核心 (exmoxl)","CurseForge":"exmoxl","Modrinth":""},{"Id":14013,"Name":"","CurseForge":"armortip","Modrinth":"armortip"},{"Id":14014,"Name":"","CurseForge":"true-herobrine","Modrinth":"true-herobrine"},{"Id":14015,"Name":"","CurseForge":"oam-by-choupiclou2007","Modrinth":"ore-and-more-(oam)"},{"Id":14016,"Name":"","CurseForge":"squat-grow","Modrinth":"squat-grow"},{"Id":14017,"Name":"","CurseForge":"backported-wolves","Modrinth":"backported-wolves"},{"Id":14018,"Name":"","CurseForge":"betweenlands-extended-config","Modrinth":""},{"Id":14020,"Name":"","CurseForge":"deeper-caves","Modrinth":"deeper_caves"},{"Id":14024,"Name":"林海传说 (ArborFirmaCraft)","CurseForge":"arborfirmacraft","Modrinth":"arborfirmacraft-(afc)"},{"Id":14025,"Name":"","CurseForge":"enchanting-with-tfc","Modrinth":""},{"Id":14026,"Name":"","CurseForge":"tfc-vessel-tooltip","Modrinth":"tfc-vessel-tooltip"},{"Id":14027,"Name":"","CurseForge":"nether-gold-ore","Modrinth":""},{"Id":14028,"Name":"","CurseForge":"natural-nether-portals","Modrinth":""},{"Id":14029,"Name":"","CurseForge":"","Modrinth":"vanillapotions+"},{"Id":14030,"Name":"","CurseForge":"","Modrinth":"wait-of-the-world"},{"Id":14032,"Name":"超长快捷栏/忄夬扌疌木兰 (HotBaaaar)","CurseForge":"hotbaaaar","Modrinth":"hotbaaaar"},{"Id":14033,"Name":"","CurseForge":"ui","Modrinth":"ui-lib"},{"Id":14034,"Name":"随机物品 (Random Item)","CurseForge":"random-item","Modrinth":"random-items"},{"Id":14035,"Name":"","CurseForge":"lucky-clover","Modrinth":"lucky-clover!"},{"Id":14036,"Name":"更好的传送门 (Better Portals)","CurseForge":"","Modrinth":"better-portals"},{"Id":14037,"Name":"社交距离 (Social Distance)","CurseForge":"social-distance","Modrinth":"social-distance"},{"Id":14038,"Name":"","CurseForge":"gt","Modrinth":"gtnn"},{"Id":14039,"Name":"饥饿+ (Hunger Plus)","CurseForge":"hunger-plus","Modrinth":"hunger-plus"},{"Id":14040,"Name":"","CurseForge":"melee-ex-machina-meexma","Modrinth":"melee-ex-machina"},{"Id":14042,"Name":"","CurseForge":"arc","Modrinth":"arc"},{"Id":14043,"Name":"","CurseForge":"cores","Modrinth":"cores"},{"Id":14045,"Name":"我的城市:交通与生活 (CityMod:Traffic and life)","CurseForge":"citymod-traffic-and-life","Modrinth":"citymod"},{"Id":14046,"Name":"隐岩砥凿 (Too Hard to Dig)","CurseForge":"too-hard-to-dig","Modrinth":"too-hard-to-dig"},{"Id":14047,"Name":"","CurseForge":"simplecobblestonegenerator","Modrinth":"simple-cobble-gen"},{"Id":14048,"Name":"","CurseForge":"natural-baby-animals","Modrinth":""},{"Id":14049,"Name":"","CurseForge":"essence-mod","Modrinth":"essence"},{"Id":14050,"Name":"","CurseForge":"shield-expansion-expansion","Modrinth":"shield-expansion-expansion"},{"Id":14052,"Name":"","CurseForge":"alexs-caves-trimmed","Modrinth":""},{"Id":14053,"Name":"","CurseForge":"totem-of-immortality","Modrinth":"totem-of-immortality"},{"Id":14054,"Name":"晶化末影之眼 (Crystalline Ender Eye)","CurseForge":"crystalline-ender-eye","Modrinth":""},{"Id":14055,"Name":"","CurseForge":"ars-caelum","Modrinth":"ars-caelum"},{"Id":14056,"Name":"鞘翅之甲 (Elytra Chestplates)","CurseForge":"elytra-chestplates","Modrinth":""},{"Id":14057,"Name":"变种与冒险 (Variants & Ventures)","CurseForge":"variants-and-ventures","Modrinth":"variants-and-ventures"},{"Id":14058,"Name":"马掌 (Horseshoes)","CurseForge":"horseshoes","Modrinth":"horseshoes"},{"Id":14059,"Name":"","CurseForge":"questlines","Modrinth":"questlines"},{"Id":14060,"Name":"","CurseForge":"endofherobrine","Modrinth":"endofherobrine"},{"Id":14061,"Name":"口渴-水壶 (ThirstCanteen)","CurseForge":"thirstcanteen","Modrinth":"thirst-canteen"},{"Id":14062,"Name":"神秘能源延续版分支 (Thaumic Energistics Extended Life Fork)","CurseForge":"thaumic-energistics-extended-life-fork","Modrinth":""},{"Id":14065,"Name":"","CurseForge":"prehistoric-nature-decorations","Modrinth":""},{"Id":14066,"Name":"","CurseForge":"tinyfoes","Modrinth":""},{"Id":14067,"Name":"","CurseForge":"pyradium","Modrinth":""},{"Id":14068,"Name":"铁砧工艺 (AnvilCraft)","CurseForge":"anvilcraft","Modrinth":"anvilcraft"},{"Id":14069,"Name":"迷你刷怪场:重制 (Tiny Mob Farm Remastered)","CurseForge":"tiny-mob-farm-remastered","Modrinth":"tiny-mob-farm-remastered"},{"Id":14070,"Name":"机械动力:瀚海雄心 (Create: Aquatic Ambitions)","CurseForge":"create-aquatic-ambitions","Modrinth":"create-aquatic-ambitions"},{"Id":14071,"Name":"","CurseForge":"ffl-trinkets-compat","Modrinth":""},{"Id":14072,"Name":"","CurseForge":"kaleidios-guns","Modrinth":""},{"Id":14073,"Name":"","CurseForge":"mc-vr-playground","Modrinth":""},{"Id":14074,"Name":"","CurseForge":"cosmopolis-mod","Modrinth":"cosmopolis"},{"Id":14075,"Name":"","CurseForge":"caveopolis-mod","Modrinth":"caveopolis_mod"},{"Id":14076,"Name":"","CurseForge":"flexipause","Modrinth":"flexipause"},{"Id":14077,"Name":"间歇泉 (Geysers)","CurseForge":"geysers","Modrinth":"geysers"},{"Id":14078,"Name":"","CurseForge":"","Modrinth":"moar-enchantments"},{"Id":14079,"Name":"","CurseForge":"","Modrinth":"lose-your-touch"},{"Id":14080,"Name":"","CurseForge":"man-of-many-planes","Modrinth":"man-of-many-planes"},{"Id":14081,"Name":"","CurseForge":"caliber-lib","Modrinth":"caliber-lib"},{"Id":14082,"Name":"","CurseForge":"kriforfab","Modrinth":"kriforfab"},{"Id":14083,"Name":"多重计分板 (MultiScoreboard)","CurseForge":"multiscoreboard","Modrinth":"multiscoreboard"},{"Id":14084,"Name":"","CurseForge":"","Modrinth":"minerally-me!"},{"Id":14085,"Name":"","CurseForge":"","Modrinth":"cover-them-in-armor"},{"Id":14086,"Name":"Jerotes村庄-二轮世界 (Jerotes Village - Second Round World)","CurseForge":"jerotes-village","Modrinth":"jerotes-village-second-round-world"},{"Id":14087,"Name":"","CurseForge":"","Modrinth":"a-cold-day-in-the-nether"},{"Id":14088,"Name":"","CurseForge":"translucencyfix","Modrinth":"translucencyfix"},{"Id":14089,"Name":"机械动力:思索 (Create Ponder)","CurseForge":"create-ponder","Modrinth":"create-ponder"},{"Id":14090,"Name":"","CurseForge":"mopeds","Modrinth":""},{"Id":14092,"Name":"","CurseForge":"advanced-shulkerboxes","Modrinth":"advanced-shulkerboxes"},{"Id":14095,"Name":"可视化盾牌冷却 (Visible Shield Cooldown)","CurseForge":"visible-shield-cooldown","Modrinth":"visible-shield-cooldown"},{"Id":14096,"Name":"","CurseForge":"mns-moogs-nether-structures","Modrinth":"mns-moogs-nether-structures"},{"Id":14097,"Name":"","CurseForge":"bunker-down","Modrinth":""},{"Id":14098,"Name":"","CurseForge":"just-enough-guns","Modrinth":"just-enough-guns"},{"Id":14099,"Name":"","CurseForge":"buildify","Modrinth":"buildify"},{"Id":14100,"Name":"","CurseForge":"","Modrinth":"big-globe"},{"Id":14101,"Name":"","CurseForge":"dragon-finder","Modrinth":""},{"Id":14102,"Name":"","CurseForge":"respackopts","Modrinth":"respackopts"},{"Id":14103,"Name":"","CurseForge":"fortuitous-feasts","Modrinth":"fortuitous-feasts"},{"Id":14104,"Name":"独居石 (Monazite)","CurseForge":"monazite","Modrinth":"monazite"},{"Id":14105,"Name":"音乐控制 (Music Control)","CurseForge":"music-control","Modrinth":"music-control"},{"Id":14106,"Name":"星核 (StellarCore)","CurseForge":"stellarcore","Modrinth":""},{"Id":14108,"Name":"罪业余烬:自定义实体攻击状态效果 (Ash Of Sin: Custom Entity Attack Effect)","CurseForge":"ash-of-sin-custom-entity-attack-effect","Modrinth":""},{"Id":14109,"Name":"罪业余烬:类魂BOSS战 (Ash Of Sin: Soul Like Boss Battle)","CurseForge":"ash-of-sin-soul-like-boss-battle","Modrinth":""},{"Id":14110,"Name":"","CurseForge":"wh40kmc-project","Modrinth":"hammercraft40k"},{"Id":14112,"Name":"Pixelmon 银行 (Pixelmon Bank)","CurseForge":"pixelmon-bank","Modrinth":""},{"Id":14113,"Name":"","CurseForge":"","Modrinth":"loosen-litematica"},{"Id":14114,"Name":"","CurseForge":"wsmc","Modrinth":""},{"Id":14115,"Name":"沉浸箱子 (No Gui Chest)","CurseForge":"no-gui-chest","Modrinth":"no-gui-chest"},{"Id":14117,"Name":"","CurseForge":"filedirector","Modrinth":"filedirector"},{"Id":14118,"Name":"","CurseForge":"extra-compat","Modrinth":"extracompat"},{"Id":14119,"Name":"","CurseForge":"eu-converter","Modrinth":"eu-converter"},{"Id":14120,"Name":"","CurseForge":"royal-variations","Modrinth":"royalvariations"},{"Id":14122,"Name":"","CurseForge":"temporal-api","Modrinth":"temporal-api"},{"Id":14123,"Name":"幽法工艺 (Underworld Magic Craftsmanship)","CurseForge":"","Modrinth":"underworld-magic-craftsmanship"},{"Id":14125,"Name":"召之马来 Fabric版 (CallableHorse Unofficial Fabric port)","CurseForge":"callable-horse-unofficial-fabric-port","Modrinth":""},{"Id":14126,"Name":"更好的战斗体验 (Better Combat Experience)","CurseForge":"","Modrinth":"better-combat-experience"},{"Id":14127,"Name":"","CurseForge":"shiny-horses-forge-enchantable-horse-armor","Modrinth":"shiny-horses-forge"},{"Id":14128,"Name":"斯巴达的武器:简单矿石 (Spartan Weaponry: SimpleOres)","CurseForge":"spartan-weaponry-simpleores","Modrinth":""},{"Id":14130,"Name":"","CurseForge":"dye-depot","Modrinth":"dye-depot"},{"Id":14132,"Name":"自动收获-重制 (AutoHarvest-RE)","CurseForge":"","Modrinth":"autoharvest"},{"Id":14133,"Name":"","CurseForge":"","Modrinth":"nyan-cat-loading"},{"Id":14134,"Name":"","CurseForge":"homeward-bound","Modrinth":"homeward-bound"},{"Id":14135,"Name":"","CurseForge":"sword-blocking-mechanics","Modrinth":"sword-blocking-mechanics"},{"Id":14136,"Name":"","CurseForge":"electric-mace","Modrinth":"electric-mace"},{"Id":14137,"Name":"重锤移植 (Mace Port)","CurseForge":"mace-backport","Modrinth":""},{"Id":14138,"Name":"","CurseForge":"","Modrinth":"steve-eat-stew"},{"Id":14139,"Name":"","CurseForge":"imaginary","Modrinth":""},{"Id":14140,"Name":"赤毒玄骸 (KuvaLich)","CurseForge":"kuvalich","Modrinth":"kuvalich"},{"Id":14141,"Name":"AE2输入输出卡 (AE2 Import Export Card)","CurseForge":"ae2-import-export-card","Modrinth":"ae2-import-export-card"},{"Id":14142,"Name":"","CurseForge":"","Modrinth":"magick-experience"},{"Id":14144,"Name":"","CurseForge":"","Modrinth":"repairable-disc-11"},{"Id":14146,"Name":"","CurseForge":"","Modrinth":"fabric-permissions-api"},{"Id":14147,"Name":"","CurseForge":"","Modrinth":"khinkali-mod"},{"Id":14148,"Name":"","CurseForge":"configured-defaults","Modrinth":"configured-defaults"},{"Id":14149,"Name":"","CurseForge":"bens-sharks","Modrinth":"bens-sharks"},{"Id":14150,"Name":"装备预设 (EquipSet)","CurseForge":"","Modrinth":"eqsequipset"},{"Id":14151,"Name":"水中火把 (Torches in Water)","CurseForge":"torches-in-water","Modrinth":""},{"Id":14152,"Name":"还原旧皮肤 (OlderSkins)","CurseForge":"","Modrinth":"olderskins"},{"Id":14154,"Name":"","CurseForge":"pigs-with-fireworks","Modrinth":""},{"Id":14155,"Name":"无限魔咒 (InfinitySpell)","CurseForge":"infinityspell","Modrinth":""},{"Id":14156,"Name":"","CurseForge":"multipart-machines-grinding","Modrinth":""},{"Id":14157,"Name":"罪业余烬:自定义反高攻击力实体 (Ash Of Sin: Custom Anti High ATK Entity)","CurseForge":"ash-of-sin-custom-anti-high-atk-entity","Modrinth":""},{"Id":14159,"Name":"","CurseForge":"","Modrinth":"bioforge"},{"Id":14160,"Name":"","CurseForge":"quad","Modrinth":"quad"},{"Id":14162,"Name":"移除欢迎界面 (RemoveWelcomeScreen)","CurseForge":"","Modrinth":"removewelcomescreen"},{"Id":14166,"Name":"","CurseForge":"makit-better","Modrinth":""},{"Id":14167,"Name":"","CurseForge":"macaws-for-terrafirmacraft","Modrinth":""},{"Id":14171,"Name":"","CurseForge":"","Modrinth":"blahaj-of-undying"},{"Id":14172,"Name":"","CurseForge":"corals-tfc","Modrinth":"corals-tfc"},{"Id":14173,"Name":"","CurseForge":"tfc-aged-alcohol","Modrinth":""},{"Id":14174,"Name":"","CurseForge":"tfc-improved-badlands","Modrinth":"tfc-improved-badlands"},{"Id":14175,"Name":"","CurseForge":"","Modrinth":"russian-metro-addon"},{"Id":14176,"Name":"","CurseForge":"winter-massacre","Modrinth":""},{"Id":14177,"Name":"幽灵 (Ghostly)","CurseForge":"ghostlys","Modrinth":"ghostly"},{"Id":14178,"Name":"","CurseForge":"tectonic-tweak","Modrinth":""},{"Id":14179,"Name":"","CurseForge":"forge-essentials-client","Modrinth":"forge-essentials-client"},{"Id":14180,"Name":"","CurseForge":"","Modrinth":"world-host"},{"Id":14182,"Name":"唾溅兽 (Spit Splat)","CurseForge":"spit-splat","Modrinth":"spit-splat"},{"Id":14183,"Name":"重锤一击 (Maced)","CurseForge":"maced","Modrinth":""},{"Id":14184,"Name":"","CurseForge":"nether-villager-trader","Modrinth":""},{"Id":14185,"Name":"","CurseForge":"","Modrinth":"no-exp-enchanting-reimagined"},{"Id":14186,"Name":"","CurseForge":"odyssey-claims","Modrinth":"odyssey-claims"},{"Id":14187,"Name":"","CurseForge":"odyssey-allies","Modrinth":"odyssey-allies"},{"Id":14188,"Name":"","CurseForge":"giacomos-travelogue","Modrinth":""},{"Id":14189,"Name":"","CurseForge":"giacomos-maps","Modrinth":""},{"Id":14190,"Name":"","CurseForge":"descension","Modrinth":""},{"Id":14192,"Name":"启动时间 (Startup Time)","CurseForge":"","Modrinth":"startup-time"},{"Id":14195,"Name":"拾取控制 (Toggled Pickup)","CurseForge":"toggledpickup","Modrinth":""},{"Id":14196,"Name":"农夫乐事:重织 (Farmer's Delight Refabricated)","CurseForge":"farmers-delight-refabricated","Modrinth":"farmers-delight-refabricated"},{"Id":14197,"Name":"","CurseForge":"village-nullifier-terralith-mod","Modrinth":""},{"Id":14199,"Name":"","CurseForge":"structure-credits","Modrinth":"structure-credits"},{"Id":14199,"Name":"","CurseForge":"structure-credits-fabric-version","Modrinth":""},{"Id":14200,"Name":"","CurseForge":"i-wanna-travel","Modrinth":""},{"Id":14201,"Name":"","CurseForge":"simple-unbreakable-tools","Modrinth":""},{"Id":14202,"Name":"","CurseForge":"cat-loaf","Modrinth":"cat-loaf"},{"Id":14203,"Name":"","CurseForge":"copper-tuff-backport-fabric","Modrinth":""},{"Id":14204,"Name":"","CurseForge":"","Modrinth":"f3scale"},{"Id":14205,"Name":"","CurseForge":"giacomos-teleport","Modrinth":""},{"Id":14206,"Name":"","CurseForge":"giacomos-farmland","Modrinth":""},{"Id":14207,"Name":"","CurseForge":"back-weapon-slot","Modrinth":""},{"Id":14208,"Name":"","CurseForge":"chested-companions","Modrinth":""},{"Id":14209,"Name":"","CurseForge":"create-train-perspective-fix","Modrinth":"create-train-perspective-fix"},{"Id":14210,"Name":"","CurseForge":"create-metalwork-fabric","Modrinth":"create-metalwork"},{"Id":14212,"Name":"悲惨世界1 (TragicMC)","CurseForge":"tragicmc","Modrinth":""},{"Id":14213,"Name":"","CurseForge":"auditory-continued","Modrinth":"auditory-continued"},{"Id":14215,"Name":"","CurseForge":"create-more-copycats","Modrinth":"create-more-copycats"},{"Id":14216,"Name":"","CurseForge":"farlands-reborn","Modrinth":"farlands-reborn"},{"Id":14219,"Name":"","CurseForge":"momento","Modrinth":"momento"},{"Id":14220,"Name":"","CurseForge":"odyssey-roles","Modrinth":"odyssey-roles"},{"Id":14222,"Name":"传送石碑:Jawsawn版 (Waystones Jawsawn Fork)","CurseForge":"waystones-jawsawn-fork","Modrinth":""},{"Id":14223,"Name":"鹦鹉螺重置版 (Nautilium Spirits)","CurseForge":"nautilium-spirits","Modrinth":"nautilium-spirits"},{"Id":14225,"Name":"","CurseForge":"","Modrinth":"telluriumforge"},{"Id":14226,"Name":"水下微调 (AquaTweaks)","CurseForge":"aquatweaks","Modrinth":""},{"Id":14227,"Name":"水下微调:兼容 (AquaTweaks Compat)","CurseForge":"aquatweaks-compat","Modrinth":""},{"Id":14228,"Name":"","CurseForge":"","Modrinth":"potions-re-glint"},{"Id":14229,"Name":"","CurseForge":"simpletextoverlay","Modrinth":"simpletextoverlay"},{"Id":14230,"Name":"丰饶食记 - 2.0.0 及以上 (Bountiful Fares)","CurseForge":"bountiful-fares","Modrinth":""},{"Id":14230,"Name":"丰饶食记 (Bountiful Fares)","CurseForge":"","Modrinth":"bountiful-fares"},{"Id":14231,"Name":"远古残骸微调 (Ancient Debris Tweak)","CurseForge":"","Modrinth":"ancient-debris-tweak"},{"Id":14234,"Name":"","CurseForge":"deer-jar-dweller","Modrinth":""},{"Id":14235,"Name":"反ID冲突 (Anti Id Conflict)","CurseForge":"anti-id-conflict","Modrinth":""},{"Id":14236,"Name":"配置助手 (config helper)","CurseForge":"confighelper","Modrinth":""},{"Id":14237,"Name":"更好的船 (Better Boat)","CurseForge":"better-boat","Modrinth":""},{"Id":14238,"Name":"物品栏重量 (Weighted Inventories)","CurseForge":"weighted-inventories","Modrinth":""},{"Id":14239,"Name":"","CurseForge":"detected-setblock-be-gone","Modrinth":"dsbg"},{"Id":14240,"Name":"","CurseForge":"","Modrinth":"hexical"},{"Id":14241,"Name":"","CurseForge":"tabula-minecraft-modeler","Modrinth":""},{"Id":14242,"Name":"荧光棒 (Glow Sticks)","CurseForge":"glow-sticks","Modrinth":"glow-sticks"},{"Id":14243,"Name":"","CurseForge":"alt-hud","Modrinth":""},{"Id":14245,"Name":"","CurseForge":"furniture-expanded","Modrinth":"furniture-expanded"},{"Id":14246,"Name":"","CurseForge":"celestora","Modrinth":"celestora"},{"Id":14247,"Name":"Geckolib:非官方版 (Geckolib-Unofficial)","CurseForge":"geckolib-unofficial-1-7-10","Modrinth":"geckolib-unofficial"},{"Id":14248,"Name":"自定义NPC+: Gecko 附属 (CNPC+ Gecko Addon)","CurseForge":"cnpc-custom-model-addon","Modrinth":"customnpc-plus-gecko-addon"},{"Id":14249,"Name":"自定义NPC+ :时装工坊附属 (CNPC+ Armorer's Workshop Addon)","CurseForge":"cnpc-armorers-workshop-addon","Modrinth":"customnpc-plus-aw-addon"},{"Id":14251,"Name":"融锻 (Fusion Smithing)","CurseForge":"fusion-smithing","Modrinth":"fusion-smithing"},{"Id":14252,"Name":"战利品袋 (Loot Bag)","CurseForge":"leos-loot-bag","Modrinth":"loot-bag"},{"Id":14253,"Name":"冒险维度 (Adventure Dimensions)","CurseForge":"adventure-dimensions","Modrinth":""},{"Id":14254,"Name":"简单维度 (Simple Dimensions)","CurseForge":"simple-dimensions","Modrinth":""},{"Id":14255,"Name":"传送门GUI (Portals Gui)","CurseForge":"portals-gui","Modrinth":"portals-gui"},{"Id":14256,"Name":"进入维度加载界面 (Interworlds Splashscreens)","CurseForge":"interworlds-splashscreens","Modrinth":"interworlds-splashscreens"},{"Id":14257,"Name":"","CurseForge":"","Modrinth":"creative-menu-tweaks"},{"Id":14258,"Name":"血族乐事 (Vampire's Delight)","CurseForge":"vampires-delight","Modrinth":"vampires-delight"},{"Id":14259,"Name":"","CurseForge":"thats-my-bed","Modrinth":"thats-my-bed"},{"Id":14260,"Name":"","CurseForge":"caligo","Modrinth":"caligo"},{"Id":14261,"Name":"","CurseForge":"","Modrinth":"sharpenedswords"},{"Id":14263,"Name":"","CurseForge":"donut-and-mochi","Modrinth":""},{"Id":14264,"Name":"","CurseForge":"ducky","Modrinth":"ducky!"},{"Id":14265,"Name":"","CurseForge":"lost-idols","Modrinth":""},{"Id":14266,"Name":"","CurseForge":"simple-trashcan","Modrinth":"simple-trashcan"},{"Id":14267,"Name":"","CurseForge":"darwin-water-ambience","Modrinth":"darwin-water-ambience"},{"Id":14268,"Name":"","CurseForge":"decorative-wooden-lattices","Modrinth":"decorative-wooden-lattices"},{"Id":14269,"Name":"","CurseForge":"apotheotic-additions","Modrinth":""},{"Id":14270,"Name":"","CurseForge":"lithosphere","Modrinth":""},{"Id":14272,"Name":"","CurseForge":"build-your-campfire","Modrinth":""},{"Id":14273,"Name":"","CurseForge":"biome-decoration-fix","Modrinth":""},{"Id":14274,"Name":"","CurseForge":"simply-tools","Modrinth":"simply-tools"},{"Id":14275,"Name":"沉浸式雪生成 (Immersive Snowgen)","CurseForge":"immersive-snowgen","Modrinth":"isg"},{"Id":14276,"Name":"","CurseForge":"the-wandering-gambler","Modrinth":""},{"Id":14277,"Name":"作弊检测器 (CheatDetector)","CurseForge":"cheatdetector","Modrinth":"cheatdetector"},{"Id":14278,"Name":"","CurseForge":"just-another-spawner","Modrinth":""},{"Id":14279,"Name":"","CurseForge":"stack-size-edit-fabric","Modrinth":"stack-size-edit"},{"Id":14280,"Name":"远程资源包 (Remote Resource Pack)","CurseForge":"","Modrinth":"remote-resource-pack"},{"Id":14282,"Name":"电池护盾 (Battery Shield)","CurseForge":"battery-shield","Modrinth":""},{"Id":14283,"Name":"","CurseForge":"giacomos-chat-fix","Modrinth":""},{"Id":14284,"Name":"","CurseForge":"giacomos-compass","Modrinth":""},{"Id":14285,"Name":"","CurseForge":"giacomos-experience-drainer","Modrinth":""},{"Id":14286,"Name":"","CurseForge":"","Modrinth":"frank"},{"Id":14287,"Name":"","CurseForge":"load-my-resources-forge","Modrinth":"load-my-resources"},{"Id":14287,"Name":"","CurseForge":"load-my-resources-fabric","Modrinth":""},{"Id":14288,"Name":"","CurseForge":"apotheotic-creation","Modrinth":"apotheoticcreation"},{"Id":14291,"Name":"","CurseForge":"eiorecipesteinductionsmelter","Modrinth":""},{"Id":14293,"Name":"罪业余烬:更好的AI (Ash Of Sin: Better AI)","CurseForge":"ash-of-sin-better-ai","Modrinth":""},{"Id":14294,"Name":"","CurseForge":"dimensional-cake-rebuilt","Modrinth":"dimensional-cake-rebaked"},{"Id":14295,"Name":"","CurseForge":"medieval-village-dimension","Modrinth":""},{"Id":14296,"Name":"","CurseForge":"create-big-contraptions","Modrinth":"big-contraptions"},{"Id":14297,"Name":"","CurseForge":"gtnhs-forgelin","Modrinth":"gtnhs-forgelin"},{"Id":14298,"Name":"","CurseForge":"rose-gold-equipment","Modrinth":"rose-gold-equipment"},{"Id":14300,"Name":"","CurseForge":"pantheonsent","Modrinth":"pantheonsent"},{"Id":14301,"Name":"","CurseForge":"","Modrinth":"yukkuri"},{"Id":14304,"Name":"","CurseForge":"","Modrinth":"moddetectionpreventer"},{"Id":14305,"Name":"","CurseForge":"dramatic-spawning","Modrinth":""},{"Id":14306,"Name":"","CurseForge":"mc-mods-mobs-attack-villagers","Modrinth":""},{"Id":14307,"Name":"","CurseForge":"cicada","Modrinth":"cicada"},{"Id":14309,"Name":"","CurseForge":"immersive-cvm","Modrinth":""},{"Id":14310,"Name":"沉浸乐事 (No Gui FD)","CurseForge":"no-gui-fd","Modrinth":"no-gui-fd"},{"Id":14311,"Name":"","CurseForge":"custom-credits","Modrinth":"custom-credits"},{"Id":14312,"Name":"钓鱼生活 (FishingLife)","CurseForge":"fishing-life","Modrinth":""},{"Id":14314,"Name":"","CurseForge":"","Modrinth":"crystalcarpetaddition"},{"Id":14315,"Name":"","CurseForge":"hoes-are-scythes","Modrinth":"hoes-are-scythes"},{"Id":14316,"Name":"","CurseForge":"","Modrinth":"pehkuirandomsize"},{"Id":14317,"Name":"","CurseForge":"chat-ping","Modrinth":"ping-santa"},{"Id":14319,"Name":"伤害数字显示 (Damage Number)","CurseForge":"damage-number","Modrinth":""},{"Id":14321,"Name":"高清截图Forge (Mineshot Reforged)","CurseForge":"mineshot-reforged","Modrinth":""},{"Id":14322,"Name":"","CurseForge":"krysztal-language-scala","Modrinth":"krysztal-language-scala"},{"Id":14323,"Name":"","CurseForge":"filters-api","Modrinth":"filters-api"},{"Id":14325,"Name":"","CurseForge":"flavored","Modrinth":"flavored"},{"Id":14326,"Name":"","CurseForge":"huesodewiki","Modrinth":""},{"Id":14327,"Name":"","CurseForge":"platos-transporters","Modrinth":""},{"Id":14328,"Name":"","CurseForge":"plushie-reeker-mod","Modrinth":""},{"Id":14329,"Name":"","CurseForge":"semi-hardcore","Modrinth":""},{"Id":14330,"Name":"","CurseForge":"placeables","Modrinth":"placeables"},{"Id":14331,"Name":"🍌大香蕉🍌 (BigBanana)","CurseForge":"bigbanana","Modrinth":""},{"Id":14332,"Name":"大宝刀 (DabaoSword)","CurseForge":"","Modrinth":"dabaosword"},{"Id":14333,"Name":"","CurseForge":"look-eye-of-cthulhu","Modrinth":"look"},{"Id":14334,"Name":"","CurseForge":"","Modrinth":"salmonberry-addition"},{"Id":14335,"Name":"","CurseForge":"pet-collecting","Modrinth":"pet-collecting"},{"Id":14336,"Name":"","CurseForge":"","Modrinth":"yummy_glass"},{"Id":14338,"Name":"","CurseForge":"totallybalancedfallflying","Modrinth":""},{"Id":14339,"Name":"","CurseForge":"giacomos-experience-seedling","Modrinth":""},{"Id":14340,"Name":"","CurseForge":"","Modrinth":"server-notify"},{"Id":14341,"Name":"","CurseForge":"config-api","Modrinth":""},{"Id":14341,"Name":"Config API - 缺少部分","CurseForge":"","Modrinth":"config-api"},{"Id":14342,"Name":"下界乐事:重织 (Nethers Delight Refabricated)","CurseForge":"nethers-delight-refabricated","Modrinth":"nethers-delight-refabricated"},{"Id":14343,"Name":"","CurseForge":"","Modrinth":"pumpkin-pie-delight"},{"Id":14344,"Name":"","CurseForge":"runiclib","Modrinth":"runiclib"},{"Id":14345,"Name":"龙骑士附属:更多龙 (Dragon Mounts: More Dragons)","CurseForge":"dragon-mounts-more-dragons","Modrinth":"dragon-mounts-more-dragons"},{"Id":14348,"Name":"","CurseForge":"hey-wiki","Modrinth":"hey-wiki"},{"Id":14349,"Name":"","CurseForge":"turf","Modrinth":"turf"},{"Id":14350,"Name":"","CurseForge":"ad-extendra","Modrinth":"ad_extendra"},{"Id":14351,"Name":"","CurseForge":"smava","Modrinth":""},{"Id":14352,"Name":"","CurseForge":"zwieback","Modrinth":""},{"Id":14353,"Name":"","CurseForge":"random-respawn","Modrinth":""},{"Id":14354,"Name":"","CurseForge":"","Modrinth":"telluriums-random-stuff"},{"Id":14355,"Name":"","CurseForge":"per-aspera","Modrinth":"per-aspera"},{"Id":14356,"Name":"","CurseForge":"spice-of-life-valheim-edition","Modrinth":"mKalCkNV"},{"Id":14357,"Name":"","CurseForge":"tfc-paths","Modrinth":""},{"Id":14358,"Name":"","CurseForge":"binkers-bonstruct","Modrinth":""},{"Id":14359,"Name":"","CurseForge":"ranged-weapon-api","Modrinth":"ranged-weapon-api"},{"Id":14360,"Name":"","CurseForge":"numismatics","Modrinth":"numismatics"},{"Id":14363,"Name":"","CurseForge":"canned-foods-and-drinks","Modrinth":""},{"Id":14364,"Name":"","CurseForge":"alexs-caves-dimension","Modrinth":""},{"Id":14365,"Name":"","CurseForge":"villager-contracts","Modrinth":"villager-contracts"},{"Id":14366,"Name":"","CurseForge":"better-agriculture","Modrinth":""},{"Id":14367,"Name":"","CurseForge":"soul-shards-respawn-patched","Modrinth":""},{"Id":14368,"Name":"","CurseForge":"tfc-finger-in-the-wind","Modrinth":""},{"Id":14369,"Name":"","CurseForge":"immersive-craft-patched","Modrinth":""},{"Id":14370,"Name":"","CurseForge":"jockeys","Modrinth":"jockeys"},{"Id":14371,"Name":"","CurseForge":"disguiselib","Modrinth":"disguiselib"},{"Id":14372,"Name":"MTR 资源包保护工具 (MTR Resource Protector)","CurseForge":"","Modrinth":"mtr-resource-protector"},{"Id":14373,"Name":"","CurseForge":"station-architecture","Modrinth":""},{"Id":14375,"Name":"","CurseForge":"enchantmentrequirements","Modrinth":"enchantment-requirements"},{"Id":14376,"Name":"","CurseForge":"enchantment-enhancements","Modrinth":"enchantment-enhancements"},{"Id":14377,"Name":"","CurseForge":"mo-enchantments","Modrinth":""},{"Id":14378,"Name":"","CurseForge":"soul-like-enchantment","Modrinth":""},{"Id":14380,"Name":"","CurseForge":"","Modrinth":"blockbench-import-library"},{"Id":14381,"Name":"","CurseForge":"mrcrayfish-furniture-mod-rebuilt","Modrinth":""},{"Id":14382,"Name":"","CurseForge":"btfixes","Modrinth":""},{"Id":14383,"Name":"","CurseForge":"vmfixes","Modrinth":""},{"Id":14384,"Name":"","CurseForge":"pillar-patched","Modrinth":""},{"Id":14385,"Name":"新星登录 (Nova Login)","CurseForge":"novalogin","Modrinth":""},{"Id":14386,"Name":"","CurseForge":"tfc-desire-paths","Modrinth":"tfc-desire-paths"},{"Id":14387,"Name":"","CurseForge":"tfc-ore-washing","Modrinth":""},{"Id":14389,"Name":"","CurseForge":"tfc-canes","Modrinth":""},{"Id":14390,"Name":"变强的怪物 (LH Mob Difficulty Increase)","CurseForge":"lhmob-difficulty-increase","Modrinth":""},{"Id":14391,"Name":"","CurseForge":"","Modrinth":"zombies-are-real-reforged"},{"Id":14392,"Name":"","CurseForge":"from-the-shadow-reborn","Modrinth":""},{"Id":14393,"Name":"","CurseForge":"","Modrinth":"life-crystals"},{"Id":14395,"Name":"沉睡的预兆 (The Slumbering Omen)","CurseForge":"the-slumbering-omen","Modrinth":"the-slumbering-omen"},{"Id":14398,"Name":"","CurseForge":"ftb-guides-forge","Modrinth":""},{"Id":14398,"Name":"FTB Guides - 旧版","CurseForge":"ftb-guides-legacy-forge","Modrinth":""},{"Id":14399,"Name":"钛 (Titanium)","CurseForge":"","Modrinth":"titaniumod"},{"Id":14400,"Name":"","CurseForge":"caelum","Modrinth":"caelum"},{"Id":14401,"Name":"","CurseForge":"clearspam","Modrinth":""},{"Id":14402,"Name":"","CurseForge":"ad-astra-rocketed","Modrinth":"ad-astra-rocketed"},{"Id":14403,"Name":"","CurseForge":"soulbound-quilt","Modrinth":"soulbound"},{"Id":14404,"Name":"","CurseForge":"tinyinv","Modrinth":"tinyinv"},{"Id":14404,"Name":"","CurseForge":"tinyinv-fabric","Modrinth":""},{"Id":14405,"Name":"","CurseForge":"animationjs","Modrinth":"animationjs"},{"Id":14406,"Name":"","CurseForge":"raids-backport","Modrinth":""},{"Id":14407,"Name":"","CurseForge":"crossbows-backport","Modrinth":""},{"Id":14408,"Name":"","CurseForge":"tfc-caelum","Modrinth":"tfc-caelum"},{"Id":14409,"Name":"","CurseForge":"epic-compat-parcool","Modrinth":"epic-compat-parcool"},{"Id":14410,"Name":"","CurseForge":"loqui","Modrinth":"loqui"},{"Id":14411,"Name":"","CurseForge":"real-worlds","Modrinth":""},{"Id":14413,"Name":"","CurseForge":"dragonlib","Modrinth":"dragonlib"},{"Id":14414,"Name":"群星 (Andromeda)","CurseForge":"andromeda","Modrinth":"andromeda"},{"Id":14416,"Name":"超级授权 (SuperAuth)","CurseForge":"","Modrinth":"superauth"},{"Id":14417,"Name":"","CurseForge":"mobdisguises","Modrinth":"mobdisguises"},{"Id":14418,"Name":"","CurseForge":"inventory-generators","Modrinth":""},{"Id":14419,"Name":"","CurseForge":"creating-space-gravity-addon","Modrinth":""},{"Id":14420,"Name":"Alex 的洞穴:物品 & 鱼雷 (Alex's Caves: Stuff & Torpedoes)","CurseForge":"alexs-caves-torpedoes","Modrinth":"alexscaves-torpedoes"},{"Id":14423,"Name":"","CurseForge":"","Modrinth":"slavic-cuisine"},{"Id":14424,"Name":"","CurseForge":"tfc-tumbleweed","Modrinth":"tfc-tumbleweed"},{"Id":14425,"Name":"","CurseForge":"tfc-barrens","Modrinth":"tfc-barrens"},{"Id":14426,"Name":"","CurseForge":"chiselse-bits-for-tfc","Modrinth":"chisels-bits-for-tfc"},{"Id":14427,"Name":"","CurseForge":"tfc-fresh-water-everywhere","Modrinth":"tfc-fresh-water-everywhere"},{"Id":14428,"Name":"","CurseForge":"tfc-more-swords","Modrinth":""},{"Id":14429,"Name":"","CurseForge":"galleria","Modrinth":"galleria"},{"Id":14430,"Name":"","CurseForge":"constructs-casting","Modrinth":"constructs-casting"},{"Id":14431,"Name":"工匠创新 (Tinkers' Innovation)","CurseForge":"tinkers-innovation","Modrinth":"tinkersinnovation"},{"Id":14433,"Name":"","CurseForge":"delicious-delights","Modrinth":""},{"Id":14434,"Name":"","CurseForge":"","Modrinth":"vietnamsdelight"},{"Id":14435,"Name":"","CurseForge":"harvest-tweaks","Modrinth":""},{"Id":14436,"Name":"","CurseForge":"decay-2012","Modrinth":""},{"Id":14437,"Name":"","CurseForge":"tfc-grooming-station","Modrinth":""},{"Id":14438,"Name":"","CurseForge":"terrafirmagregtech-ores","Modrinth":""},{"Id":14439,"Name":"","CurseForge":"blaze-map","Modrinth":"blaze-map"},{"Id":14440,"Name":"","CurseForge":"epic-knights-japanese-armory","Modrinth":""},{"Id":14441,"Name":"","CurseForge":"tfcpyros-adjustedgen","Modrinth":""},{"Id":14442,"Name":"","CurseForge":"astikor-carts-tfc-florae","Modrinth":""},{"Id":14443,"Name":"","CurseForge":"exp-counter-fabric-forge-neoforge","Modrinth":"exp-counter"},{"Id":14444,"Name":"","CurseForge":"lightwithin","Modrinth":"lightwithin"},{"Id":14445,"Name":"","CurseForge":"the-slenderman-mod","Modrinth":"the-slenderman"},{"Id":14446,"Name":"","CurseForge":"flanchanmod","Modrinth":""},{"Id":14448,"Name":"","CurseForge":"cartography","Modrinth":""},{"Id":14449,"Name":"","CurseForge":"laser-bridges-doors","Modrinth":"laser-bridges-and-doors"},{"Id":14450,"Name":"","CurseForge":"lukis-grand-capitals","Modrinth":"lukis-grand-capitals"},{"Id":14451,"Name":"","CurseForge":"fabric-create-netherless","Modrinth":""},{"Id":14452,"Name":"","CurseForge":"create-connected-fabric","Modrinth":"create-connected-fabric"},{"Id":14454,"Name":"","CurseForge":"wastify","Modrinth":"wastify"},{"Id":14455,"Name":"初始建筑 (Starter Structure)","CurseForge":"starter-structure","Modrinth":"starter-structure"},{"Id":14457,"Name":"","CurseForge":"mobblocker","Modrinth":"mobsblocker"},{"Id":14458,"Name":"","CurseForge":"giacomos-foundry","Modrinth":""},{"Id":14459,"Name":"","CurseForge":"","Modrinth":"blocky-bass"},{"Id":14460,"Name":"","CurseForge":"","Modrinth":"toms-mobs"},{"Id":14461,"Name":"","CurseForge":"","Modrinth":"homoium"},{"Id":14462,"Name":"","CurseForge":"alex-cave-addon","Modrinth":""},{"Id":14465,"Name":"","CurseForge":"iced-lava","Modrinth":"iced-lava"},{"Id":14466,"Name":"","CurseForge":"fabric-core-mods","Modrinth":""},{"Id":14467,"Name":"","CurseForge":"the-tropics-telepastry","Modrinth":""},{"Id":14468,"Name":"胡萝卜苹果 (Carrot Apple)","CurseForge":"carrot-apple","Modrinth":""},{"Id":14469,"Name":"烘烤乐事 (Baked Delight)","CurseForge":"baked-delight","Modrinth":""},{"Id":14470,"Name":"","CurseForge":"create-basic-additions","Modrinth":"create-basic-additions"},{"Id":14471,"Name":"","CurseForge":"horse-stats-and-more","Modrinth":""},{"Id":14472,"Name":"","CurseForge":"giacomos-hud-overlays-configurator","Modrinth":""},{"Id":14473,"Name":"","CurseForge":"giacomos-map-coloring","Modrinth":""},{"Id":14474,"Name":"","CurseForge":"ec-epic-fight-compat","Modrinth":"ec-ef-compat"},{"Id":14475,"Name":"","CurseForge":"easy-npc-epic-fight","Modrinth":"easy-npc-epic-fight"},{"Id":14476,"Name":"","CurseForge":"puffish-attributes","Modrinth":"attributes"},{"Id":14477,"Name":"","CurseForge":"pufferfishs-unofficial-additions","Modrinth":"pufferfishs-unofficial-additions"},{"Id":14478,"Name":"","CurseForge":"smart-completion","Modrinth":""},{"Id":14479,"Name":"","CurseForge":"additional-attributes","Modrinth":"additional-attributes"},{"Id":14480,"Name":"","CurseForge":"","Modrinth":"hexed"},{"Id":14484,"Name":"","CurseForge":"suicide-key","Modrinth":""},{"Id":14486,"Name":"","CurseForge":"uranus","Modrinth":"uranus"},{"Id":14487,"Name":"","CurseForge":"annotationlib","Modrinth":"annotationlib"},{"Id":14488,"Name":"","CurseForge":"","Modrinth":"waxed"},{"Id":14489,"Name":"","CurseForge":"nether-overload","Modrinth":""},{"Id":14490,"Name":"","CurseForge":"ender-relay","Modrinth":"ender-relay-ff"},{"Id":14491,"Name":"","CurseForge":"enchanted-effects","Modrinth":""},{"Id":14492,"Name":"","CurseForge":"emi-create-schematics","Modrinth":"emi-create-schematics"},{"Id":14493,"Name":"The Silence - 无文件","CurseForge":"the-silence","Modrinth":""},{"Id":14493,"Name":"","CurseForge":"","Modrinth":"the-silence"},{"Id":14494,"Name":"","CurseForge":"infinite-music-fabric","Modrinth":"infinite-music"},{"Id":14495,"Name":"","CurseForge":"kakapos","Modrinth":"kakapos"},{"Id":14496,"Name":"","CurseForge":"","Modrinth":"tome-reader"},{"Id":14497,"Name":"","CurseForge":"scary-creepers","Modrinth":"scary-creepers"},{"Id":14498,"Name":"","CurseForge":"","Modrinth":"show-my-skin-parts"},{"Id":14499,"Name":"","CurseForge":"sn0wfrogs-capybaras","Modrinth":"sn0wfrogscapybaras"},{"Id":14500,"Name":"敌怪旗 (EnemyBanner)","CurseForge":"enemybanner","Modrinth":"enemybanner"},{"Id":14502,"Name":"","CurseForge":"souls-egg","Modrinth":""},{"Id":14503,"Name":"","CurseForge":"barely-enough-enchantments","Modrinth":""},{"Id":14504,"Name":"","CurseForge":"tool-kit","Modrinth":"tool-kit"},{"Id":14505,"Name":"","CurseForge":"filament","Modrinth":""},{"Id":14505,"Name":"Filament - 不再更新","CurseForge":"","Modrinth":"filament"},{"Id":14506,"Name":"","CurseForge":"lijms-expanse","Modrinth":"lijms-expanse"},{"Id":14507,"Name":"匠魂乐事 (Tinkers Delight/Tinkers Construct Delight)","CurseForge":"tinker-delight","Modrinth":"tinkers-construct-delight"},{"Id":14508,"Name":"烧烤乐事 (Barbeque's Delight)","CurseForge":"barbeques-delight","Modrinth":"barbeques-delight"},{"Id":14509,"Name":"","CurseForge":"coffeecraft-by-blockbrothers","Modrinth":"coffeecraft"},{"Id":14510,"Name":"","CurseForge":"hearty-meals","Modrinth":"hearty-meals"},{"Id":14511,"Name":"","CurseForge":"","Modrinth":"minecar-drill"},{"Id":14513,"Name":"","CurseForge":"enderfake","Modrinth":""},{"Id":14514,"Name":"","CurseForge":"","Modrinth":"alwaysonline"},{"Id":14516,"Name":"蠹虫觉醒了 (AwakenedSilverfish)","CurseForge":"","Modrinth":"awakenedsilverfish"},{"Id":14517,"Name":"1.12.2的粗矿 (rawOre_on_1.12.2)","CurseForge":"rawore-on-1-12-2","Modrinth":"rawore_on_1.12.2"},{"Id":14518,"Name":"","CurseForge":"entityjs","Modrinth":"entityjs"},{"Id":14519,"Name":"","CurseForge":"poem-of-star-wars","Modrinth":"poem-of-star-wars"},{"Id":14520,"Name":"","CurseForge":"","Modrinth":"hex-ways"},{"Id":14521,"Name":"","CurseForge":"vanity-aesthetic-armory","Modrinth":"vanity-aesthetic-armory"},{"Id":14522,"Name":"","CurseForge":"","Modrinth":"muffins-thais-delight"},{"Id":14523,"Name":"更有用的铜 (MoreUsefulCopper)","CurseForge":"","Modrinth":"moreusefulcopper"},{"Id":14525,"Name":"","CurseForge":"animals-plus","Modrinth":""},{"Id":14526,"Name":"","CurseForge":"giacomos-map-merging","Modrinth":""},{"Id":14527,"Name":"","CurseForge":"giacomos-spyglass-10-90x15","Modrinth":""},{"Id":14529,"Name":"","CurseForge":"","Modrinth":"la-cucaracha"},{"Id":14530,"Name":"","CurseForge":"grieflogger","Modrinth":"grieflogger"},{"Id":14532,"Name":"","CurseForge":"the-quest-of-entity-303","Modrinth":""},{"Id":14533,"Name":"经验修补:凤梨版 (Pineapple Mending)","CurseForge":"pineapple-mending","Modrinth":""},{"Id":14534,"Name":"快捷聊天 (Quick Chat)","CurseForge":"","Modrinth":"quick-chat"},{"Id":14535,"Name":"","CurseForge":"magic-vibe-decorations","Modrinth":"magic-vibe-decorations"},{"Id":14536,"Name":"","CurseForge":"valentines-blessing","Modrinth":"valentines-blessing-lilypads-roses"},{"Id":14537,"Name":"","CurseForge":"decent-biomes","Modrinth":"decent-biomes"},{"Id":14538,"Name":"","CurseForge":"d-placeable-food-fabric-forge","Modrinth":"3d-placeable-food"},{"Id":14539,"Name":"","CurseForge":"fan-shaped-cake","Modrinth":"fan-shaped-cake-mod"},{"Id":14540,"Name":"","CurseForge":"bitter-brews","Modrinth":"bitter-brews"},{"Id":14541,"Name":"","CurseForge":"richards-coffee-tea-mod","Modrinth":"richards-coffee-and-tea-mod"},{"Id":14542,"Name":"","CurseForge":"ribes-adventures","Modrinth":"ribes-adventures"},{"Id":14544,"Name":"","CurseForge":"","Modrinth":"cell"},{"Id":14545,"Name":"","CurseForge":"packed-up","Modrinth":"packed-up"},{"Id":14546,"Name":"","CurseForge":"hexcircus","Modrinth":"hex-circus"},{"Id":14547,"Name":"","CurseForge":"diamond-chest-shops","Modrinth":"diamond-chest-shops"},{"Id":14549,"Name":"","CurseForge":"better-clouds-reforged","Modrinth":""},{"Id":14550,"Name":"","CurseForge":"excessive-building","Modrinth":"excessive-building"},{"Id":14551,"Name":"","CurseForge":"modchu_modchulib","Modrinth":""},{"Id":14552,"Name":"","CurseForge":"","Modrinth":"samhackers-command-gui"},{"Id":14553,"Name":"","CurseForge":"no-slime-in-flat-world","Modrinth":"no-slime-in-flat-world"},{"Id":14554,"Name":"","CurseForge":"icarae-origin","Modrinth":"icarae-origin"},{"Id":14556,"Name":"","CurseForge":"","Modrinth":"consoles"},{"Id":14558,"Name":"","CurseForge":"fsit","Modrinth":"fsit"},{"Id":14559,"Name":"","CurseForge":"carbon-config","Modrinth":"carbon-config"},{"Id":14560,"Name":"","CurseForge":"productivetrees","Modrinth":"productivetrees"},{"Id":14561,"Name":"","CurseForge":"","Modrinth":"tsa-concrete"},{"Id":14562,"Name":"","CurseForge":"","Modrinth":"tsa-planks"},{"Id":14563,"Name":"","CurseForge":"","Modrinth":"tsa-stone"},{"Id":14564,"Name":"","CurseForge":"stellarview","Modrinth":"stellarview"},{"Id":14565,"Name":"","CurseForge":"biome-cows","Modrinth":"biome-cows"},{"Id":14566,"Name":"","CurseForge":"simple-stopwatch","Modrinth":""},{"Id":14567,"Name":"","CurseForge":"liolib","Modrinth":"liolib"},{"Id":14568,"Name":"","CurseForge":"giacomos-better-dye","Modrinth":""},{"Id":14569,"Name":"罪业余烬:自定义反捕捉笼实体 (Ash Of Sin: Custom Anti Trap Cage Entity)","CurseForge":"ash-of-sin-custom-anti-trap-cage-entity","Modrinth":""},{"Id":14570,"Name":"","CurseForge":"elementus","Modrinth":"elementus"},{"Id":14571,"Name":"","CurseForge":"dedicated-bud","Modrinth":""},{"Id":14573,"Name":"Vanity:晨昏线 (Vanity: Twilight Zone)","CurseForge":"vanity-twilight-zone","Modrinth":"vanity-twilight-zone"},{"Id":14574,"Name":"","CurseForge":"tfc-barrels","Modrinth":""},{"Id":14575,"Name":"","CurseForge":"melter","Modrinth":"melter"},{"Id":14576,"Name":"","CurseForge":"armour","Modrinth":""},{"Id":14577,"Name":"","CurseForge":"speedometer-and-more","Modrinth":""},{"Id":14578,"Name":"罪业余烬:反重复修饰符 (Ash Of Sin: Anti Same Modifier)","CurseForge":"ash-of-sin-anti-same-modifier","Modrinth":""},{"Id":14579,"Name":"","CurseForge":"giacomos-automatable-cauldrons","Modrinth":""},{"Id":14580,"Name":"","CurseForge":"giacomos-bookshelf","Modrinth":""},{"Id":14581,"Name":"","CurseForge":"no-outbreaks","Modrinth":"no-outbreaks"},{"Id":14582,"Name":"","CurseForge":"nemos-woodcutter","Modrinth":"nemos-woodcutter"},{"Id":14583,"Name":"","CurseForge":"command-button","Modrinth":""},{"Id":14585,"Name":"是你先开的 (You cheated first)","CurseForge":"you-cheated-first","Modrinth":""},{"Id":14587,"Name":"经验矿石 (Exp Ore)","CurseForge":"exp-ore","Modrinth":"exp-ore"},{"Id":14588,"Name":"","CurseForge":"","Modrinth":"hexpigmentplus"},{"Id":14589,"Name":"","CurseForge":"starcrop","Modrinth":""},{"Id":14590,"Name":"","CurseForge":"the-social","Modrinth":""},{"Id":14592,"Name":"","CurseForge":"goety-mythical-addon","Modrinth":""},{"Id":14593,"Name":"","CurseForge":"huge-structure-blocks","Modrinth":"huge-structure-blocks"},{"Id":14594,"Name":"","CurseForge":"calamity-sn","Modrinth":""},{"Id":14595,"Name":"","CurseForge":"bodyhygiene","Modrinth":""},{"Id":14596,"Name":"","CurseForge":"cafes-birding","Modrinth":"cafes-birding"},{"Id":14597,"Name":"","CurseForge":"kafs-valentine-special","Modrinth":"kafs-valentine-special"},{"Id":14598,"Name":"机械动力:油炸 (Create: Deepfried)","CurseForge":"create-deepfried","Modrinth":"create-deepfried"},{"Id":14599,"Name":"","CurseForge":"sleepable-create","Modrinth":""},{"Id":14600,"Name":"机械动力:铁路导航 (Create Railways Navigator)","CurseForge":"create-railways-navigator","Modrinth":"create-railways-navigator"},{"Id":14601,"Name":"MC飞车 (MCSpeed)","CurseForge":"speed-drifter","Modrinth":"speed_drifters"},{"Id":14603,"Name":"","CurseForge":"rearmour","Modrinth":""},{"Id":14604,"Name":"","CurseForge":"lionfish-api","Modrinth":"lionfish-api"},{"Id":14606,"Name":"","CurseForge":"avaritia-universal","Modrinth":""},{"Id":14607,"Name":"","CurseForge":"slash-blade-tweaker","Modrinth":""},{"Id":14608,"Name":"","CurseForge":"guns-without-roses-additions","Modrinth":"guns-without-roses-additions"},{"Id":14609,"Name":"","CurseForge":"cleanview","Modrinth":""},{"Id":14609,"Name":"","CurseForge":"cleanview-fabric","Modrinth":""},{"Id":14610,"Name":"","CurseForge":"built","Modrinth":"built"},{"Id":14611,"Name":"","CurseForge":"diyotweaks","Modrinth":""},{"Id":14612,"Name":"","CurseForge":"extra-spell-attributes","Modrinth":"extra-rpg-attributes"},{"Id":14613,"Name":"","CurseForge":"","Modrinth":"create-contraption-creatures"},{"Id":14614,"Name":"","CurseForge":"immersive-vehicles-iv-mts-texel-arsenal-pack","Modrinth":""},{"Id":14615,"Name":"","CurseForge":"creature-whisperer","Modrinth":""},{"Id":14618,"Name":"","CurseForge":"create-molten-metals","Modrinth":"create-molten-metals"},{"Id":14619,"Name":"机械动力:光学 (Create Optical)","CurseForge":"create-optical","Modrinth":""},{"Id":14619,"Name":"机械动力:光学 (Create Optical) - 不全","CurseForge":"","Modrinth":"create-optical"},{"Id":14620,"Name":"","CurseForge":"","Modrinth":"farmers-delight-plus"},{"Id":14624,"Name":"战斗音乐 (Mob Battle Music)","CurseForge":"mob-battle-music","Modrinth":"mob-battle-music"},{"Id":14625,"Name":"协奏曲/一起听 (Concerto)","CurseForge":"concerto","Modrinth":"concerto"},{"Id":14627,"Name":"","CurseForge":"","Modrinth":"invisible-frames-for-forge"},{"Id":14628,"Name":"派系与奇遇 (Factions And Curiosities)","CurseForge":"factions-and-curiosities","Modrinth":"factions-and-curiosities"},{"Id":14629,"Name":"","CurseForge":"","Modrinth":"anyfps"},{"Id":14630,"Name":"","CurseForge":"create-amazing-trading","Modrinth":"create-amazing-trading"},{"Id":14633,"Name":"","CurseForge":"westeroscraft-worldeditcui","Modrinth":""},{"Id":14635,"Name":"","CurseForge":"durability-display","Modrinth":"durability-display"},{"Id":14636,"Name":"","CurseForge":"hardrock-samples-tfc","Modrinth":""},{"Id":14637,"Name":"物品栏HUD+ 药水显示支持 (InvHUD_Configurable)","CurseForge":"","Modrinth":"invhud_configurable"},{"Id":14640,"Name":"","CurseForge":"treps-cars","Modrinth":"treps-cars"},{"Id":14642,"Name":"","CurseForge":"back-up-beds","Modrinth":"back-up-beds"},{"Id":14648,"Name":"山海大陆 (Mountain Sea and Continent)","CurseForge":"mountain-sea-and-continent-two","Modrinth":""},{"Id":14650,"Name":"","CurseForge":"vinery-tfc","Modrinth":""},{"Id":14651,"Name":"","CurseForge":"tkbs-campfires","Modrinth":""},{"Id":14654,"Name":"","CurseForge":"whispers-of-the-wendigo","Modrinth":"whispers-of-the-wendigo"},{"Id":14655,"Name":"","CurseForge":"quartz-elevator","Modrinth":"quartz-elevator"},{"Id":14656,"Name":"","CurseForge":"elytra-utilities","Modrinth":"elytra-utilities"},{"Id":14656,"Name":"","CurseForge":"elytra-utilities-fabric","Modrinth":""},{"Id":14657,"Name":"大卫的家具 (David's Furniture)","CurseForge":"davids-furniture","Modrinth":""},{"Id":14658,"Name":"","CurseForge":"kubejs-natures-aura","Modrinth":"kubejs-natures-aura"},{"Id":14659,"Name":"","CurseForge":"fancymenu-system-interactions-addon","Modrinth":"fancymenu-system-interactions-addon"},{"Id":14660,"Name":"","CurseForge":"control-engineering","Modrinth":"control-engineering"},{"Id":14661,"Name":"","CurseForge":"wooden-furnace-fabric","Modrinth":"woodenfurnace"},{"Id":14662,"Name":"","CurseForge":"jjthunder-to-the-max","Modrinth":""},{"Id":14663,"Name":"","CurseForge":"telepass","Modrinth":"telepass"},{"Id":14664,"Name":"禁手令 (Off Hand Banning)","CurseForge":"offhandbanning","Modrinth":""},{"Id":14665,"Name":"幻想工艺 (FantasyCraft)","CurseForge":"fantasycraft-remake","Modrinth":""},{"Id":14665,"Name":"幻想工艺 (FantasyCraft)","CurseForge":"fantasy-craft","Modrinth":""},{"Id":14666,"Name":"繁殖药水 (Breeding Potion)","CurseForge":"breeding-potion","Modrinth":"breeding-potion"},{"Id":14667,"Name":"","CurseForge":"servuxforged","Modrinth":"servuxforged"},{"Id":14668,"Name":"加载提示 (Loading Tips / Pineapple Tips)","CurseForge":"loading-tips","Modrinth":""},{"Id":14669,"Name":"更高的下界 (Higher Nether)","CurseForge":"","Modrinth":"highernether"},{"Id":14670,"Name":"更好的单方块 (Better One Block)","CurseForge":"better-one-block","Modrinth":""},{"Id":14671,"Name":"","CurseForge":"the-fletching-table-mod","Modrinth":"the-fletching-table-mod"},{"Id":14672,"Name":"","CurseForge":"create-militarized","Modrinth":"create-militarized"},{"Id":14674,"Name":"自定义表情 (CustomEmoji)","CurseForge":"customemoji","Modrinth":""},{"Id":14675,"Name":"史诗战斗:御剑凌虚 (Epic Fight - Sword Soaring)","CurseForge":"sword-soaring","Modrinth":""},{"Id":14676,"Name":"","CurseForge":"bigger-ae2","Modrinth":"bigger-ae2"},{"Id":14677,"Name":"","CurseForge":"scalar","Modrinth":""},{"Id":14677,"Name":"","CurseForge":"scalar-legacy","Modrinth":""},{"Id":14678,"Name":"Trials Chambers - 仅最终","CurseForge":"trials-chambers-backport","Modrinth":""},{"Id":14678,"Name":"","CurseForge":"","Modrinth":"trials-chambers-backport"},{"Id":14679,"Name":"","CurseForge":"blus-sign-pack-mts-iv","Modrinth":""},{"Id":14680,"Name":"","CurseForge":"alexs-mediumcore","Modrinth":"alexs-mediumcore"},{"Id":14681,"Name":"","CurseForge":"sherdsapi","Modrinth":"sherdsapi"},{"Id":14682,"Name":"精致机械 (Kontraption)","CurseForge":"","Modrinth":"kontraption"},{"Id":14683,"Name":"","CurseForge":"musketeer-illager","Modrinth":""},{"Id":14685,"Name":"Daker ACG工艺 (DakerACG)","CurseForge":"daker-acg","Modrinth":""},{"Id":14686,"Name":"","CurseForge":"bananarangs","Modrinth":"bananarangs"},{"Id":14687,"Name":"","CurseForge":"remorphed","Modrinth":"remorphed"},{"Id":14688,"Name":"","CurseForge":"particle-core","Modrinth":"particle-core"},{"Id":14689,"Name":"","CurseForge":"fermiumbooter","Modrinth":"fermiumbooter"},{"Id":14690,"Name":"","CurseForge":"ytech","Modrinth":"ytech"},{"Id":14691,"Name":"","CurseForge":"bbrb","Modrinth":""},{"Id":14691,"Name":"Better Biome Reblend - 已归档","CurseForge":"","Modrinth":"bbrb"},{"Id":14692,"Name":"","CurseForge":"mcterra","Modrinth":"mcterra"},{"Id":14693,"Name":"","CurseForge":"siren-head-the-arrival","Modrinth":""},{"Id":14694,"Name":"","CurseForge":"classic-musical-discs","Modrinth":"classic-musical-discs"},{"Id":14695,"Name":"","CurseForge":"music-notification","Modrinth":"music-notification"},{"Id":14696,"Name":"影矿兰 (Orechid Endium)","CurseForge":"orechidendium","Modrinth":""},{"Id":14697,"Name":"","CurseForge":"bones","Modrinth":""},{"Id":14698,"Name":"","CurseForge":"my-nethers-delight","Modrinth":"my-nethers-delight"},{"Id":14699,"Name":"","CurseForge":"localizator","Modrinth":"localizator"},{"Id":14700,"Name":"焦土 (Scorchful)","CurseForge":"scorchful","Modrinth":"scorchful"},{"Id":14701,"Name":"","CurseForge":"marbleds-api-mapi","Modrinth":"marbleds-api-mapi"},{"Id":14703,"Name":"岩浆桶 (Magma Bucket)","CurseForge":"magma-bucket","Modrinth":""},{"Id":14704,"Name":"","CurseForge":"ropes","Modrinth":""},{"Id":14705,"Name":"","CurseForge":"paniclecraft","Modrinth":""},{"Id":14706,"Name":"自定义玩家模型Plasmo语音兼容 (Customizable Player Models Plasmo Voice compat)","CurseForge":"cpmpvc","Modrinth":"cpmpvc"},{"Id":14707,"Name":"","CurseForge":"ydms-gunblades-mod","Modrinth":"ydms-gunblades"},{"Id":14708,"Name":"","CurseForge":"warp-pads","Modrinth":"warppads"},{"Id":14709,"Name":"","CurseForge":"marbleds-arsenal","Modrinth":"marbleds-arsenal"},{"Id":14710,"Name":"","CurseForge":"","Modrinth":"inventory-tabs"},{"Id":14711,"Name":"生物生成修复 (Mob Spawning Fix)","CurseForge":"mob-spawning-fix","Modrinth":""},{"Id":14712,"Name":"奇迹之路之魂系加点 (LH Miracle Road)","CurseForge":"lh-miracle-road","Modrinth":""},{"Id":14714,"Name":"","CurseForge":"compatskills-fork","Modrinth":""},{"Id":14715,"Name":"","CurseForge":"reskillable-fork","Modrinth":""},{"Id":14717,"Name":"","CurseForge":"","Modrinth":"subtick"},{"Id":14718,"Name":"巫术学:延续 (Electroblob's Wizardry Continuation)","CurseForge":"electroblobs-wizardry-continuation","Modrinth":""},{"Id":14719,"Name":"农业工艺:延续 (Agricraft Continuation)","CurseForge":"agricraft-continuation","Modrinth":""},{"Id":14720,"Name":"","CurseForge":"create-nuke","Modrinth":"create-nuke"},{"Id":14721,"Name":"鸡蛋粒子修复 (Egg Particle Fix)","CurseForge":"egg-particle-fix","Modrinth":""},{"Id":14722,"Name":"","CurseForge":"chicken-chunk-patcher","Modrinth":""},{"Id":14723,"Name":"成就检测修复 (Achievement Detection Fix)","CurseForge":"achievement-detection-fix","Modrinth":"achievement-detection-fix"},{"Id":14724,"Name":"自动夜视 (Auto Night Vision)","CurseForge":"","Modrinth":"auto-night-vision"},{"Id":14725,"Name":"","CurseForge":"","Modrinth":"chais-inventory-sorter"},{"Id":14728,"Name":"菌丝 (Mycelium Lib)","CurseForge":"","Modrinth":"myceliumlib"},{"Id":14730,"Name":"","CurseForge":"cataclysmic-illagers","Modrinth":""},{"Id":14731,"Name":"巫术补丁 (WitcheryPatch)","CurseForge":"witcherypatch","Modrinth":"witcherypatch"},{"Id":14732,"Name":"","CurseForge":"pin","Modrinth":""},{"Id":14733,"Name":"","CurseForge":"simple-pings","Modrinth":"simple-pings"},{"Id":14734,"Name":"","CurseForge":"great-scrollable-tooltips","Modrinth":"great-scrollable-tooltips"},{"Id":14735,"Name":"","CurseForge":"waterframes","Modrinth":"waterframes"},{"Id":14736,"Name":"友止殷的马哨和马刺 (Eugene's Whistle & Spur)","CurseForge":"eugenes-whistle-spur","Modrinth":""},{"Id":14737,"Name":"畅启速始/夸克疾速启动 (QuickQuark)","CurseForge":"quickquark","Modrinth":""},{"Id":14738,"Name":"","CurseForge":"minecraft-mineralogy","Modrinth":""},{"Id":14739,"Name":"种子乐事 (Seed Delight)","CurseForge":"seed-delight","Modrinth":"seed-delight"},{"Id":14740,"Name":"幻化 (Transmog)","CurseForge":"transmog","Modrinth":"transmog"},{"Id":14741,"Name":"","CurseForge":"nuclear-guitars","Modrinth":""},{"Id":14742,"Name":"","CurseForge":"cubic-racers","Modrinth":""},{"Id":14743,"Name":"魔戒非官方兼容性补丁 (LOTR UCP)","CurseForge":"lotr-ucp","Modrinth":""},{"Id":14744,"Name":"","CurseForge":"delightful-sandwiches","Modrinth":"delightful-sandwiches"},{"Id":14745,"Name":"光影修复 (Shader fixer)","CurseForge":"shader-fixer","Modrinth":"shader-fixer"},{"Id":14746,"Name":"","CurseForge":"resiever","Modrinth":"resiever"},{"Id":14747,"Name":"","CurseForge":"cartload","Modrinth":"cartload"},{"Id":14748,"Name":"炖与烤 (Stewing & Baking)","CurseForge":"stewing-baking","Modrinth":"stewing-baking"},{"Id":14749,"Name":"","CurseForge":"am2playground","Modrinth":"am2playground"},{"Id":14750,"Name":"","CurseForge":"astrocraft-mod","Modrinth":"astrocraft"},{"Id":14752,"Name":"极简血量显示 - 光影修复版 (Neat - Shaders-Fix)","CurseForge":"neat-shaders-fix","Modrinth":"neat-shaders-fix"},{"Id":14753,"Name":"掉落物信息显示 - 延续版 (WorldTooltips - Continuation)","CurseForge":"worldtooltips-continuation","Modrinth":"worldtooltips-continuation"},{"Id":14754,"Name":"新生魔艺:修复纤维强化 (Ars Repairing)","CurseForge":"ars-repairing","Modrinth":""},{"Id":14755,"Name":"","CurseForge":"options-enforcer","Modrinth":"options-enforcer"},{"Id":14756,"Name":"Macaw 的桥梁:超多生物群系附属 (Macaw's Bridges - Biomes O' Plenty)","CurseForge":"macaws-bridges-biome-o-plenty","Modrinth":"macaws-bridges-biome-o-plenty"},{"Id":14757,"Name":"","CurseForge":"renhider","Modrinth":"renhider"},{"Id":14758,"Name":"物品展示框移除器 (ItemFrameRemover)","CurseForge":"itemframeremover","Modrinth":"itemframeremover"},{"Id":14759,"Name":"","CurseForge":"","Modrinth":"legacy-debug-pause"},{"Id":14760,"Name":"","CurseForge":"trick-or-treat","Modrinth":""},{"Id":14761,"Name":"","CurseForge":"ninjin-entities-by-hedaox","Modrinth":"ninjinentities"},{"Id":14762,"Name":"危险RPG:延续 (DangerRPG Continuation)","CurseForge":"dangerrpg-continuation","Modrinth":"dangerrpg-continuation"},{"Id":14763,"Name":"塞尔达剑技:延续 (Zelda Sword Skills Continuation)","CurseForge":"zelda-sword-skills-continuation","Modrinth":"zelda-sword-skills-continuation"},{"Id":14764,"Name":"失落遗物学:非官方版 (Forgotten Relics Unofficial)","CurseForge":"","Modrinth":"forgotten-relics-unofficial"},{"Id":14765,"Name":"截图增强 (Screenshots Enhanced)","CurseForge":"mc-mods-enhanced","Modrinth":""},{"Id":14766,"Name":"力量之戒/魔戒众戒 (The Rings of Power)","CurseForge":"the-rings-of-power","Modrinth":"the-rings-of-power"},{"Id":14768,"Name":"","CurseForge":"","Modrinth":"fancy-delight"},{"Id":14769,"Name":"","CurseForge":"","Modrinth":"salt-fabric"},{"Id":14770,"Name":"","CurseForge":"suspicious-zombification","Modrinth":"suspicious-zombification"},{"Id":14772,"Name":"IvToolkit:延续 (IvToolkit Arcana Rpg Continuation Edition)","CurseForge":"ivtoolkit-arcana-rpg-continuation-edition","Modrinth":""},{"Id":14774,"Name":"byzh's 麦块画图 (BYZH's Picgen)","CurseForge":"","Modrinth":"byzh-picgen"},{"Id":14775,"Name":"热带世界:延续 (Tropicraft Continuation)","CurseForge":"tropicraft-continuation","Modrinth":""},{"Id":14776,"Name":"战斗高塔:延续 (Battle Tower Continuation)","CurseForge":"battle-tower-continuation","Modrinth":""},{"Id":14777,"Name":"","CurseForge":"kswitch","Modrinth":"kswitch"},{"Id":14778,"Name":"","CurseForge":"tfc-lumberjack","Modrinth":""},{"Id":14779,"Name":"","CurseForge":"tfc-better-stone-tools","Modrinth":""},{"Id":14780,"Name":"","CurseForge":"protons-additions","Modrinth":"protons-additions"},{"Id":14781,"Name":"","CurseForge":"kinetic-anti-cheat","Modrinth":"kac"},{"Id":14782,"Name":"","CurseForge":"where-are-the-ores","Modrinth":"where-are-the-ores"},{"Id":14783,"Name":"","CurseForge":"underp-hangables","Modrinth":"underp-hangables"},{"Id":14784,"Name":"小狗天才:延续 (Doggy Talents Continuation)","CurseForge":"doggy-talent-continuation","Modrinth":"doggy-talents-continuation"},{"Id":14785,"Name":"","CurseForge":"mod-observer","Modrinth":"mod-observer"},{"Id":14786,"Name":"","CurseForge":"mineralogy-continuation","Modrinth":"mineralogy-continuation"},{"Id":14787,"Name":"科学地质:矿石注册 (UBC Ore Registrar)","CurseForge":"ubc-ore-registrar","Modrinth":""},{"Id":14788,"Name":"创世纪 (Genesis)","CurseForge":"genesis-2d","Modrinth":""},{"Id":14789,"Name":"不再有更新重制版 (NonUpdate Reloaded)","CurseForge":"","Modrinth":"non-update-reloaded"},{"Id":14790,"Name":"辐辽地带 (Radiation Zone)","CurseForge":"radiation-zone","Modrinth":""},{"Id":14792,"Name":"探索者背包:延续 (Adventure Backpacks Patched)","CurseForge":"adventure-backpacks-patched","Modrinth":""},{"Id":14793,"Name":"","CurseForge":"","Modrinth":"thaumcraftaltarcull"},{"Id":14795,"Name":"","CurseForge":"bhops","Modrinth":"bhops"},{"Id":14796,"Name":"","CurseForge":"from-spores","Modrinth":""},{"Id":14797,"Name":"","CurseForge":"just-dire-things","Modrinth":""},{"Id":14798,"Name":"攻击反馈 (Hit Feedback)","CurseForge":"hit-feedback","Modrinth":"hit-feedback"},{"Id":14799,"Name":"","CurseForge":"","Modrinth":"hasoook"},{"Id":14800,"Name":"中洲 (Middle-earth)","CurseForge":"middle-earth","Modrinth":"middle-earth"},{"Id":14801,"Name":"Windows 键盘修复 - 粘滞键 (Windows Keyboard Fixes - Fixes sticky keys)","CurseForge":"windows-keyboard-fixes-fixes-sticky-keys","Modrinth":"windows-keyboard-fixes-fixes-sticky-keys"},{"Id":14802,"Name":"雕像模组-修复 (StatuesMod Fix)","CurseForge":"statuesmod-fix","Modrinth":"statuesmodfix"},{"Id":14803,"Name":"","CurseForge":"","Modrinth":"numericaltabping"},{"Id":14804,"Name":"Ninjin Entities-非官方版 (ninjinentities-Unofficial)","CurseForge":"ninjinentities-unofficial","Modrinth":"ninjinentities-unofficial"},{"Id":14805,"Name":"血染武装重铸版 (Sanguine Arsenal Reforged)","CurseForge":"sanguine-arsenal-reforged","Modrinth":""},{"Id":14806,"Name":"","CurseForge":"respawn-obelisks","Modrinth":"respawn-obelisks"},{"Id":14807,"Name":"","CurseForge":"flintandsteel-improve","Modrinth":"flintandsteel-improve"},{"Id":14808,"Name":"僵尸瘟疫2 (Zombie Plague 2)","CurseForge":"forge-zombie-plague-mod-2-wip","Modrinth":"zombie-plague-2-hardcore-zombie-apocalypse"},{"Id":14809,"Name":"","CurseForge":"colored-grasses","Modrinth":""},{"Id":14810,"Name":"","CurseForge":"more-default-options","Modrinth":""},{"Id":14811,"Name":"缤纷弹幕 (LivelyDanmaku)","CurseForge":"","Modrinth":"livelydanmaku"},{"Id":14813,"Name":"砍树更新版 (Treecapitator Updated)","CurseForge":"treecapitator-updated","Modrinth":""},{"Id":14814,"Name":"副手光源 (Offhand Lights)","CurseForge":"","Modrinth":"offhandlights"},{"Id":14815,"Name":"牙科手册 (Dental Handbook)","CurseForge":"dental-handbook","Modrinth":"dental-handbook"},{"Id":14816,"Name":"","CurseForge":"prehistoric-nature-jurassic-dimension","Modrinth":""},{"Id":14818,"Name":"","CurseForge":"many-more-structures","Modrinth":"many-more-structures"},{"Id":14818,"Name":"","CurseForge":"many-more-structures-depricated","Modrinth":"more-structures"},{"Id":14819,"Name":"","CurseForge":"mobs-are-friends","Modrinth":"mobs-are-friends"},{"Id":14820,"Name":"","CurseForge":"polytone","Modrinth":"polytone"},{"Id":14821,"Name":"钙 (Calcium)","CurseForge":"","Modrinth":"calcium-fps"},{"Id":14822,"Name":"","CurseForge":"delightful-burgers","Modrinth":"delightful-burgers"},{"Id":14823,"Name":"","CurseForge":"cinderloe-project","Modrinth":""},{"Id":14824,"Name":"魔戒微调 (LOTweakR)","CurseForge":"lotweakr","Modrinth":""},{"Id":14825,"Name":"魔戒:复兴拓展 (LOTR: Renewed Extended)","CurseForge":"lotr-renewed-extended","Modrinth":"lotr-renewed-extended"},{"Id":14826,"Name":"魔戒:同伴 (LOTR: Companions)","CurseForge":"lotr-companions-renewed-addon","Modrinth":""},{"Id":14827,"Name":"自定义魔戒小建筑 (DVS)","CurseForge":"dvs","Modrinth":""},{"Id":14828,"Name":"","CurseForge":"mffs","Modrinth":""},{"Id":14829,"Name":"魔戒大陆拓展 (LOTR Extended)","CurseForge":"lotr-extended","Modrinth":""},{"Id":14830,"Name":"","CurseForge":"bitcrafting","Modrinth":""},{"Id":14831,"Name":"","CurseForge":"fart-shit-pee","Modrinth":""},{"Id":14832,"Name":"状态信息显示更新版 (StatusEffectHUD Updated)","CurseForge":"statuseffecthud-updated","Modrinth":""},{"Id":14833,"Name":"","CurseForge":"capejs","Modrinth":"capejs"},{"Id":14834,"Name":"高级机械补丁 (Advanced Machines Patcher)","CurseForge":"advanced-machines-patcher","Modrinth":""},{"Id":14835,"Name":"沉浸式提示框 (Immersive:Tooltip)","CurseForge":"","Modrinth":"immersive-tooltip"},{"Id":14837,"Name":"","CurseForge":"sound-controller","Modrinth":"sound-controller"},{"Id":14838,"Name":"","CurseForge":"cagerium","Modrinth":""},{"Id":14839,"Name":"","CurseForge":"advanced-inventory-mod","Modrinth":"advanced-inventory-mod"},{"Id":14840,"Name":"","CurseForge":"rolling-down-in-the-deep","Modrinth":"rolling-down-in-the-deep"},{"Id":14841,"Name":"矮人诸国 (Dwarven Realm)","CurseForge":"dwarven-realm","Modrinth":""},{"Id":14842,"Name":"阿尔达纪元:复兴 (Eras of Arda: Renewed Addon (First and Second Age))","CurseForge":"renewed-eras-of-arda-addon","Modrinth":""},{"Id":14843,"Name":"魔戒传说物品 (Legendary Item)","CurseForge":"legendary-item","Modrinth":"legendary-item"},{"Id":14844,"Name":"中洲微调 (MiddleEarth Tweaks)","CurseForge":"lotr-middleearth-tweaks","Modrinth":"middleearth-tweaks"},{"Id":14845,"Name":"","CurseForge":"thaumcraft-integration","Modrinth":"thaumcraft-integration"},{"Id":14846,"Name":"","CurseForge":"reach-display","Modrinth":"reach-display"},{"Id":14847,"Name":"","CurseForge":"gravitation-suite-patcher","Modrinth":""},{"Id":14848,"Name":"","CurseForge":"anti-rat-dungeon","Modrinth":""},{"Id":14849,"Name":"","CurseForge":"modchu_defaultmodelset","Modrinth":""},{"Id":14850,"Name":"","CurseForge":"create-storage","Modrinth":"fxnt-create-storage"},{"Id":14851,"Name":"无尽特效物品 (Avaritia Item)","CurseForge":"avaritia-item","Modrinth":""},{"Id":14852,"Name":"","CurseForge":"kingdom-of-rin-regions","Modrinth":"regions"},{"Id":14853,"Name":"","CurseForge":"durability-speed-legacy-backport","Modrinth":""},{"Id":14854,"Name":"","CurseForge":"inventory-on-death-mod","Modrinth":""},{"Id":14855,"Name":"","CurseForge":"berries-cherries-delight","Modrinth":"berries-and-cherries"},{"Id":14856,"Name":"幽匿乐事 (Silent's Delight)","CurseForge":"silents-delight","Modrinth":"silents-delight"},{"Id":14857,"Name":"达尔文疾跑系统 (Darwin Sprinting System)","CurseForge":"darwin-sprinting-system","Modrinth":"darwin-sprinting-system"},{"Id":14858,"Name":"","CurseForge":"camera-overhaul-reforged","Modrinth":"camera-overhaul-reforged"},{"Id":14859,"Name":"","CurseForge":"monolib","Modrinth":"monolib"},{"Id":14860,"Name":"","CurseForge":"","Modrinth":"pyrofrost"},{"Id":14861,"Name":"","CurseForge":"animal-armor-trims","Modrinth":"animal-armor-trims"},{"Id":14863,"Name":"","CurseForge":"better-safe-bed","Modrinth":"better-safe-bed"},{"Id":14864,"Name":"","CurseForge":"modchu_models","Modrinth":""},{"Id":14865,"Name":"","CurseForge":"ice-and-fire-spellbooks","Modrinth":"ice-and-fire-spellbooks"},{"Id":14866,"Name":"","CurseForge":"exlines-fishing","Modrinth":"exlines-fishing"},{"Id":14867,"Name":"","CurseForge":"cavernous-delight","Modrinth":""},{"Id":14868,"Name":"","CurseForge":"","Modrinth":"steep-surface-fix"},{"Id":14870,"Name":"","CurseForge":"arthropocolypse","Modrinth":"arthropocolypse"},{"Id":14871,"Name":"","CurseForge":"","Modrinth":"kaleido"},{"Id":14874,"Name":"战斗技巧 (Combat Skill)","CurseForge":"combat-skill","Modrinth":""},{"Id":14875,"Name":"生命是宝贵的 (Life is precious)","CurseForge":"life-is-precious","Modrinth":""},{"Id":14877,"Name":"进阶技能 (Advanced Skills)","CurseForge":"advanced-skills","Modrinth":"advanced-skills"},{"Id":14878,"Name":"","CurseForge":"nuts-delight","Modrinth":""},{"Id":14879,"Name":"","CurseForge":"vegetables-delight","Modrinth":"vegetables-delight"},{"Id":14880,"Name":"","CurseForge":"enderpack","Modrinth":"enderpack"},{"Id":14881,"Name":"游戏内模组配置 (InGame Mod Configs)","CurseForge":"ingame-mod-configs","Modrinth":""},{"Id":14882,"Name":"玩家标签 (PlayerTag)","CurseForge":"playertag","Modrinth":""},{"Id":14883,"Name":"隐藏名称 (Hide Names)","CurseForge":"hide-names","Modrinth":""},{"Id":14884,"Name":"迷彩套装 (Camo Suits)","CurseForge":"camo-suits","Modrinth":""},{"Id":14885,"Name":"Vtubruh的魔戒生物 (vtubruh LOTR Mobs)","CurseForge":"vtubruh-lotr-mobs-new","Modrinth":"vtubruh-lotr-mobs"},{"Id":14888,"Name":"","CurseForge":"","Modrinth":"create-more-features"},{"Id":14889,"Name":"","CurseForge":"armadillo-scute-armor","Modrinth":"armadillo-scute-armor"},{"Id":14890,"Name":"","CurseForge":"new-shield-variants","Modrinth":"new-shield-variants"},{"Id":14893,"Name":"","CurseForge":"way-much-faster-oxidize-reborn","Modrinth":"way-much-faster-oxidize-reborn"},{"Id":14894,"Name":"","CurseForge":"bn-blood-particles","Modrinth":"bn-blood-particles"},{"Id":14895,"Name":"","CurseForge":"bn-weapons","Modrinth":"bn-weapons"},{"Id":14896,"Name":"","CurseForge":"ecotones","Modrinth":"ecotones"},{"Id":14897,"Name":"","CurseForge":"froglins","Modrinth":""},{"Id":14898,"Name":"","CurseForge":"create-armor-trim","Modrinth":""},{"Id":14899,"Name":"拔刀剑:重锋 (SlashBlade: Resharped)","CurseForge":"slashblade-resharped","Modrinth":"slashblade-resharped"},{"Id":14900,"Name":"生机遍布 (Spawn)","CurseForge":"spawn-mod","Modrinth":"spawn-mod"},{"Id":14901,"Name":"平滑转移 1.20.4 移植 (Smooth Swapping 1.20.4 Port)","CurseForge":"","Modrinth":"smooth-swapping-1.20.4-port"},{"Id":14902,"Name":"","CurseForge":"","Modrinth":"create-tab-fix"},{"Id":14903,"Name":"","CurseForge":"scape-and-run-origins","Modrinth":"srp-origins"},{"Id":14904,"Name":"","CurseForge":"origins-extra-keybinds","Modrinth":"origins-extra-keybinds-fabric"},{"Id":14905,"Name":"","CurseForge":"epic-knights-addon","Modrinth":"epic-knights-addon"},{"Id":14907,"Name":"【明日方舟】斯卡蒂的虎鲸抱枕 ([Arknights] Skadi Orca Plushie)","CurseForge":"","Modrinth":"arknights-skadi-orca-plushie"},{"Id":14908,"Name":"唢呐生存指南 (Sona Survival 101)","CurseForge":"sona-survival-101","Modrinth":""},{"Id":14909,"Name":"","CurseForge":"","Modrinth":"more_villagers"},{"Id":14910,"Name":"","CurseForge":"cult-of-the-wither","Modrinth":""},{"Id":14911,"Name":"","CurseForge":"clochetweaks","Modrinth":""},{"Id":14914,"Name":"","CurseForge":"","Modrinth":"multiproto"},{"Id":14915,"Name":"","CurseForge":"frostbytes-improved-inventory","Modrinth":"frostbytes-improved-inventory"},{"Id":14916,"Name":"通用机械:扩展 (Mekanism Extras)","CurseForge":"mekanism-extras","Modrinth":"mekanism_extra"},{"Id":14917,"Name":"","CurseForge":"leaf-beds","Modrinth":"leaf-beds"},{"Id":14918,"Name":"","CurseForge":"unidentified-enchantments","Modrinth":"unidentified_enchantments"},{"Id":14919,"Name":"机素防护 (Create: Protection Pixel)","CurseForge":"protection-pixel","Modrinth":"protection-pixel"},{"Id":14922,"Name":"","CurseForge":"createdpcompat","Modrinth":"createdpcompat"},{"Id":14924,"Name":"","CurseForge":"lava-waterblock","Modrinth":""},{"Id":14925,"Name":"我很疲倦 (I'm Tired)","CurseForge":"im-tired","Modrinth":""},{"Id":14926,"Name":"","CurseForge":"constant-music","Modrinth":"constant-music"},{"Id":14927,"Name":"","CurseForge":"supercore","Modrinth":""},{"Id":14928,"Name":"","CurseForge":"extreme-reactors-create-compat","Modrinth":""},{"Id":14929,"Name":"","CurseForge":"modchu_playerformlittlemaid","Modrinth":""},{"Id":14930,"Name":"","CurseForge":"totally-lit","Modrinth":"totally-lit"},{"Id":14931,"Name":"","CurseForge":"mo-shiz-mod","Modrinth":""},{"Id":14932,"Name":"","CurseForge":"aetheric-tetranomicon","Modrinth":""},{"Id":14934,"Name":"阿尔达拓展 (Arda Addon)","CurseForge":"arda-addon","Modrinth":""},{"Id":14935,"Name":"","CurseForge":"","Modrinth":"potionwarning"},{"Id":14936,"Name":"","CurseForge":"a-good-place","Modrinth":"a-good-place"},{"Id":14937,"Name":"","CurseForge":"aether-protect-your-moa","Modrinth":"aether-protect-your-moa"},{"Id":14938,"Name":"","CurseForge":"advanced-rocketry-2","Modrinth":"advanced-rocketry-reworked"},{"Id":14939,"Name":"","CurseForge":"compostimprove","Modrinth":"compostimprove"},{"Id":14940,"Name":"","CurseForge":"superb-steeds","Modrinth":"superb-steeds"},{"Id":14941,"Name":"","CurseForge":"coal-piece","Modrinth":""},{"Id":14944,"Name":"机械巨兽 (MechMonstrosity)","CurseForge":"","Modrinth":"mechmonstrosity"},{"Id":14945,"Name":"","CurseForge":"slash-illager","Modrinth":"slash-illager"},{"Id":14946,"Name":"机械动力:拳击刷怪笼 (Create: SpawnerBoxer)","CurseForge":"create-spawnerboxer","Modrinth":"create-spawnerboxer"},{"Id":14947,"Name":"骷髅乐队乐谱 (SkeletalBand)","CurseForge":"skeletalband","Modrinth":""},{"Id":14948,"Name":"Alex 的洞穴:熵 (Alex's Caves:Entropy)","CurseForge":"alexs-caves-entropy","Modrinth":""},{"Id":14949,"Name":"通用机械:炸药 (Mekanism Explosives)","CurseForge":"mekanism-explosives","Modrinth":""},{"Id":14950,"Name":"","CurseForge":"","Modrinth":"minimal-coords-hud"},{"Id":14954,"Name":"无尽贪婪:复兴 (AvaritiaReborn)","CurseForge":"avaritiareborn","Modrinth":"avaritiareborn"},{"Id":14955,"Name":"","CurseForge":"cherry-shrimp","Modrinth":"cherry-shrimp"},{"Id":14956,"Name":"俺拾的指令 (Pick Command)","CurseForge":"pick-command","Modrinth":"pick-command"},{"Id":14957,"Name":"","CurseForge":"regalliv","Modrinth":""},{"Id":14958,"Name":"","CurseForge":"extra-addition-s","Modrinth":"extra-additions"},{"Id":14960,"Name":"紫水晶盾 (Amethyst Shield)","CurseForge":"","Modrinth":"amethyst-shield"},{"Id":14961,"Name":"板板 (PlatePlate)","CurseForge":"","Modrinth":"plateplate"},{"Id":14964,"Name":"难度调整 (Difficulty Tweak)","CurseForge":"","Modrinth":"difficulty-tweak"},{"Id":14966,"Name":"","CurseForge":"","Modrinth":"herbal-delight"},{"Id":14969,"Name":"旧版本兼容工具 (LegacyCompatibilityUtils / CompatLib)","CurseForge":"","Modrinth":"compatlib"},{"Id":14970,"Name":"","CurseForge":"warriors-of-past-epoch","Modrinth":""},{"Id":14971,"Name":"","CurseForge":"the-ghast-cow","Modrinth":"the-ghast-cow"},{"Id":14972,"Name":"","CurseForge":"","Modrinth":"alternate-current-unofficial"},{"Id":14973,"Name":"","CurseForge":"birds-on-a-wire","Modrinth":""},{"Id":14974,"Name":"","CurseForge":"no-hurt-animation","Modrinth":""},{"Id":14975,"Name":"","CurseForge":"incense","Modrinth":""},{"Id":14976,"Name":"","CurseForge":"wild-lands-2","Modrinth":""},{"Id":14977,"Name":"","CurseForge":"hullabaloo","Modrinth":"hullabaloo"},{"Id":14978,"Name":"","CurseForge":"invinci-dogs-ssp","Modrinth":""},{"Id":14979,"Name":"禁止发光 (noglow)","CurseForge":"","Modrinth":"noglow"},{"Id":14980,"Name":"永恒枪械工坊:零 (Timeless and Classics Zero)","CurseForge":"timeless-and-classics-zero","Modrinth":"timeless-and-classics-zero"},{"Id":14982,"Name":"专注 (Concentration)","CurseForge":"","Modrinth":"concentration"},{"Id":14983,"Name":"泰拉饰品 (Terra Curio)","CurseForge":"terra-curio","Modrinth":"terra-curio"},{"Id":14985,"Name":"","CurseForge":"cobblemon-counter","Modrinth":"cobblemon-counter"},{"Id":14986,"Name":"","CurseForge":"cobblemon-move-inspector","Modrinth":"cobblemon-move-inspector"},{"Id":14987,"Name":"","CurseForge":"cobblemon-spawn-notification","Modrinth":"cobblemon-spawn-notification"},{"Id":14988,"Name":"","CurseForge":"cobblemon-pokenav","Modrinth":"cobblemon-pokenav"},{"Id":14989,"Name":"","CurseForge":"cobblemontrainers","Modrinth":"cobblemontrainers"},{"Id":14990,"Name":"","CurseForge":"the-ink-arena","Modrinth":"the-ink-arena"},{"Id":14992,"Name":"史诗战斗·集成 (EpicFight Integration)","CurseForge":"epicfight-integration","Modrinth":""},{"Id":14993,"Name":"","CurseForge":"","Modrinth":"stop-spiders-from-climbing"},{"Id":14994,"Name":"","CurseForge":"kubejs-enderio","Modrinth":"kubejs-enderio"},{"Id":14995,"Name":"","CurseForge":"polymorphic-energistics","Modrinth":"polymorphic-energistics"},{"Id":14996,"Name":"魔戒大战 (The War of the Ring MC)","CurseForge":"war-of-the-ring-mc","Modrinth":""},{"Id":14997,"Name":"红石钟 (Redstone Clock)","CurseForge":"redstone-clock-mod","Modrinth":"redstone-clock-mod"},{"Id":14998,"Name":"","CurseForge":"create-cobblestone","Modrinth":"create-cobblestone"},{"Id":14999,"Name":"","CurseForge":"","Modrinth":"another-pickaxe"},{"Id":15000,"Name":"","CurseForge":"selfexpression","Modrinth":"selfexpression"},{"Id":15001,"Name":"","CurseForge":"electricalcraft","Modrinth":""},{"Id":15002,"Name":"","CurseForge":"","Modrinth":"elecfurn"},{"Id":15003,"Name":"","CurseForge":"what-is-stone-colorful-caves","Modrinth":"what-is-stone-(colorful-caves)"},{"Id":15004,"Name":"","CurseForge":"vtones","Modrinth":""},{"Id":15005,"Name":"物品负重 (Heavy Inventories)","CurseForge":"heavy-inventories","Modrinth":""},{"Id":15006,"Name":"瓦尔基里:附加 (VS Addition)","CurseForge":"vs-addition","Modrinth":"vs-addition"},{"Id":15007,"Name":"","CurseForge":"gravity-torch","Modrinth":"gravity-torch"},{"Id":15008,"Name":"","CurseForge":"lifesteal-forge-fabric","Modrinth":"lifesteal-mian"},{"Id":15009,"Name":"","CurseForge":"mores-by-its-infinite","Modrinth":""},{"Id":15010,"Name":"","CurseForge":"dragonite-gear","Modrinth":""},{"Id":15011,"Name":"","CurseForge":"lets-do-addon-fluids","Modrinth":"lets-do-addon-fluids"},{"Id":15014,"Name":"","CurseForge":"","Modrinth":"just-glowing-buttons"},{"Id":15015,"Name":"","CurseForge":"rats-hats","Modrinth":""},{"Id":15016,"Name":"","CurseForge":"biome-reactors","Modrinth":""},{"Id":15017,"Name":"","CurseForge":"mystical-agriculture-tiered-crystals","Modrinth":"mystical-agriculture-tiered-crystals"},{"Id":15018,"Name":"","CurseForge":"tpaplusplus","Modrinth":"tpa++"},{"Id":15019,"Name":"","CurseForge":"warlerys-hq","Modrinth":""},{"Id":15020,"Name":"尤卡坦的呼唤 (Call of Yucatán)","CurseForge":"call-of-yucutan","Modrinth":"call-of-yucutan"},{"Id":15021,"Name":"红超人","CurseForge":"redman","Modrinth":"redman"},{"Id":15022,"Name":"","CurseForge":"lets-do-addon-compat","Modrinth":"lets-do-addon-compat"},{"Id":15024,"Name":"","CurseForge":"worldeditcui-forge-edition","Modrinth":""},{"Id":15025,"Name":"黏液乐事 (Slime Delight)","CurseForge":"slime-delight","Modrinth":""},{"Id":15026,"Name":"","CurseForge":"darkcap","Modrinth":"darkcap"},{"Id":15027,"Name":"","CurseForge":"","Modrinth":"ryoamium"},{"Id":15028,"Name":"","CurseForge":"quality-equipment","Modrinth":""},{"Id":15029,"Name":"","CurseForge":"seals","Modrinth":""},{"Id":15030,"Name":"","CurseForge":"nocubes-better-smoker","Modrinth":""},{"Id":15031,"Name":"","CurseForge":"","Modrinth":"shutdown-on-death"},{"Id":15032,"Name":"","CurseForge":"mekanism-energistics","Modrinth":""},{"Id":15033,"Name":"","CurseForge":"ae2-network-visualiser","Modrinth":""},{"Id":15034,"Name":"","CurseForge":"ahznb-sword-plus","Modrinth":""},{"Id":15035,"Name":"","CurseForge":"anbu-bingo-book-for-ahznbs-shinobicraft","Modrinth":""},{"Id":15036,"Name":"","CurseForge":"ahznbs-naruto-mod-reroll","Modrinth":""},{"Id":15037,"Name":"","CurseForge":"xycraft-override","Modrinth":""},{"Id":15038,"Name":"","CurseForge":"xycraft-machines","Modrinth":""},{"Id":15039,"Name":"","CurseForge":"xycraft-world","Modrinth":""},{"Id":15040,"Name":"","CurseForge":"battlemusic","Modrinth":"battlemusic"},{"Id":15042,"Name":"","CurseForge":"","Modrinth":"embyui"},{"Id":15043,"Name":"","CurseForge":"engineered-golems","Modrinth":""},{"Id":15044,"Name":"","CurseForge":"axifier","Modrinth":"axifier"},{"Id":15045,"Name":"","CurseForge":"renderjs","Modrinth":"renderjs"},{"Id":15046,"Name":"","CurseForge":"","Modrinth":"enchantment-compat"},{"Id":15047,"Name":"","CurseForge":"dehand","Modrinth":"dehand"},{"Id":15048,"Name":"","CurseForge":"jadecolonies","Modrinth":""},{"Id":15049,"Name":"","CurseForge":"","Modrinth":"cobblemon-mike-skills"},{"Id":15050,"Name":"","CurseForge":"diamond-star-combat","Modrinth":"diamond-star-combat"},{"Id":15051,"Name":"","CurseForge":"modern-ae2-additions","Modrinth":"modern-ae2-additions"},{"Id":15052,"Name":"机械动力:冶金学 (Create: Metallurgy)","CurseForge":"create-metallurgy","Modrinth":"create-metallurgy"},{"Id":15053,"Name":"","CurseForge":"","Modrinth":"client-info-fix"},{"Id":15054,"Name":"","CurseForge":"the-shy-guy","Modrinth":"scp-096,-the-shy-guy"},{"Id":15055,"Name":"","CurseForge":"","Modrinth":"tea-time"},{"Id":15056,"Name":"","CurseForge":"","Modrinth":"cobbreeding"},{"Id":15057,"Name":"","CurseForge":"myths-and-legends-cobblemon-addon","Modrinth":"cobblemon-myths-and-legends-sidemod"},{"Id":15058,"Name":"","CurseForge":"","Modrinth":"rctmod"},{"Id":15059,"Name":"","CurseForge":"create-klinks-n-klangs","Modrinth":"klinksnklangs"},{"Id":15060,"Name":"","CurseForge":"mo-than-enough-guns","Modrinth":"mo-than-enough-guns"},{"Id":15062,"Name":"Forge 苦力怕坑修复 (Forge Creeper Heal)","CurseForge":"forge-creeper-heal","Modrinth":""},{"Id":15065,"Name":"莫莫的折跃之手 (Momo's SkipHand)","CurseForge":"","Modrinth":"momos-skiphand"},{"Id":15066,"Name":"","CurseForge":"curse-of-disintegration","Modrinth":""},{"Id":15067,"Name":"冒险模式向后移植 (Adventure Backport)","CurseForge":"adventure-backport","Modrinth":""},{"Id":15068,"Name":"井然有矿:重织 (Oreganized Refabricated)","CurseForge":"","Modrinth":"oreganized-refabricated"},{"Id":15069,"Name":"","CurseForge":"yosby","Modrinth":""},{"Id":15070,"Name":"","CurseForge":"","Modrinth":"zundamod"},{"Id":15071,"Name":"","CurseForge":"common-network","Modrinth":"common-network"},{"Id":15072,"Name":"自定义唱片 (AddurDisc/Add your disc)","CurseForge":"addurdisc","Modrinth":"addurdisc"},{"Id":15073,"Name":"神秘遗物扩展 (Enigmatic Addons)","CurseForge":"enigmatic-addons","Modrinth":"enigmatic-addons"},{"Id":15075,"Name":"","CurseForge":"","Modrinth":"bloodscythe"},{"Id":15076,"Name":"","CurseForge":"ddgourmetbattles","Modrinth":"dungeons-delight-gourmet-battles"},{"Id":15077,"Name":"更强的药水 (Stronger Potions)","CurseForge":"stronger-potions","Modrinth":"stronger-potions"},{"Id":15080,"Name":"","CurseForge":"","Modrinth":"particular"},{"Id":15082,"Name":"录像回放:重置 (ReForgedPlay)","CurseForge":"reforgedplay-mod","Modrinth":""},{"Id":15083,"Name":"","CurseForge":"sqript","Modrinth":""},{"Id":15084,"Name":"生灵乐事 (Nature's Delight)","CurseForge":"natures-delight","Modrinth":"natures-delight"},{"Id":15085,"Name":"","CurseForge":"reimagining-potatoes","Modrinth":"reimagining-potatoes"},{"Id":15086,"Name":"","CurseForge":"","Modrinth":"legacy-resource-pack-adapter"},{"Id":15087,"Name":"","CurseForge":"insane-stamina","Modrinth":""},{"Id":15088,"Name":"","CurseForge":"bren","Modrinth":"bren"},{"Id":15089,"Name":"","CurseForge":"","Modrinth":"power-hud"},{"Id":15090,"Name":"毛绒玩偶 (Plushables)","CurseForge":"plushables","Modrinth":"plushables"},{"Id":15094,"Name":"","CurseForge":"","Modrinth":"rcspeedbuild"},{"Id":15095,"Name":"橙王的权杖 (Staff of the King Orange)","CurseForge":"","Modrinth":"staff-of-the-king-orange"},{"Id":15097,"Name":"","CurseForge":"path-under-gates","Modrinth":""},{"Id":15098,"Name":"","CurseForge":"ojs-guilds","Modrinth":""},{"Id":15099,"Name":"命令宏键 (Command Macro Key)","CurseForge":"command-macro-key","Modrinth":"command-macro-key"},{"Id":15100,"Name":"","CurseForge":"realm-rpg-quests-rewards","Modrinth":""},{"Id":15101,"Name":"","CurseForge":"","Modrinth":"roadworks"},{"Id":15102,"Name":"","CurseForge":"unlucky-tnt","Modrinth":"unlucky-tnt"},{"Id":15103,"Name":"","CurseForge":"fastboot","Modrinth":"fastboot"},{"Id":15105,"Name":"改良的TARDIS (TARDIS Refined)","CurseForge":"tardis-refined","Modrinth":"tardis-refined"},{"Id":15106,"Name":"","CurseForge":"ocean-villager-trader","Modrinth":"ocean-villager-trader"},{"Id":15107,"Name":"机械动力:精制工艺 (Create: Precise Manufacturing)","CurseForge":"","Modrinth":"precise-manufacturing"},{"Id":15108,"Name":"","CurseForge":"","Modrinth":"create-new-age-alexs-caves-integration"},{"Id":15109,"Name":"","CurseForge":"create-kryeit","Modrinth":"create-kryeit"},{"Id":15110,"Name":"","CurseForge":"animationoverhaul","Modrinth":"animationoverhaul"},{"Id":15111,"Name":"","CurseForge":"starbunclemania","Modrinth":""},{"Id":15114,"Name":"","CurseForge":"display-qien","Modrinth":"display-qien"},{"Id":15115,"Name":"村庄医疗 (Village Healthcare)","CurseForge":"","Modrinth":"village-healthcare"},{"Id":15116,"Name":"村民立方 (Cubic Villager)","CurseForge":"cubic-villager","Modrinth":""},{"Id":15117,"Name":"更多光标 (MoreCursors)","CurseForge":"","Modrinth":"morecursors"},{"Id":15118,"Name":"","CurseForge":"true-infinity","Modrinth":""},{"Id":15119,"Name":"","CurseForge":"nukateams-gun-lib","Modrinth":"ntgl"},{"Id":15120,"Name":"","CurseForge":"fantastic-biomes-cave","Modrinth":""},{"Id":15121,"Name":"","CurseForge":"nukacraft","Modrinth":"thenukacraft"},{"Id":15122,"Name":"","CurseForge":"enchantment-limiter","Modrinth":""},{"Id":15123,"Name":"","CurseForge":"emi-ores","Modrinth":"emi-ores"},{"Id":15124,"Name":"面包皮 (Bread Skin)","CurseForge":"","Modrinth":"bread-skin-mite"},{"Id":15125,"Name":"","CurseForge":"extra-gore","Modrinth":""},{"Id":15126,"Name":"","CurseForge":"chassiscore","Modrinth":"chassiscore"},{"Id":15127,"Name":"唾溅兽 Fabric 版 (Spit Splat [Fabric])","CurseForge":"","Modrinth":"spit-splat-fabric"},{"Id":15128,"Name":"","CurseForge":"linweiyun-mod","Modrinth":"moderation"},{"Id":15129,"Name":"","CurseForge":"normalcore","Modrinth":"normalcore"},{"Id":15130,"Name":"","CurseForge":"appliede","Modrinth":"appliede"},{"Id":15131,"Name":"","CurseForge":"waystones-teleport-pets","Modrinth":"waystones-teleport-pets"},{"Id":15132,"Name":"","CurseForge":"","Modrinth":"sneaky-link"},{"Id":15133,"Name":"","CurseForge":"create-mortar","Modrinth":"create-mortar"},{"Id":15134,"Name":"","CurseForge":"forgelin-continuous","Modrinth":"forgelin-continuous"},{"Id":15135,"Name":"RotP:杀手皇后附属 (Ripples of the Past: Killer Queen Addon)","CurseForge":"","Modrinth":"ripples-of-the-past-killer-queen-addon"},{"Id":15136,"Name":"","CurseForge":"ninjin-knockback-dbc-by-hedaox","Modrinth":""},{"Id":15137,"Name":"","CurseForge":"wings-3","Modrinth":""},{"Id":15138,"Name":"","CurseForge":"dstathud","Modrinth":"dstathud"},{"Id":15139,"Name":"","CurseForge":"opticmanager","Modrinth":"opticmanager"},{"Id":15140,"Name":"","CurseForge":"ribbits","Modrinth":"ribbits"},{"Id":15141,"Name":"","CurseForge":"","Modrinth":"actually-camel"},{"Id":15145,"Name":"","CurseForge":"raws-visual-keybinder","Modrinth":""},{"Id":15146,"Name":"合成配方 (Synthetic Products)","CurseForge":"synthetic-products","Modrinth":""},{"Id":15148,"Name":"","CurseForge":"scoreboard-tweaks","Modrinth":"scoreboardtweaks"},{"Id":15149,"Name":"","CurseForge":"rsinfinitewireless","Modrinth":""},{"Id":15150,"Name":"","CurseForge":"rustic-engineer","Modrinth":"rustic-engineer"},{"Id":15151,"Name":"","CurseForge":"artsandcrafts","Modrinth":"artsandcrafts"},{"Id":15152,"Name":"人鱼传说 (Mermaid Legend)","CurseForge":"mermaid-legend","Modrinth":""},{"Id":15153,"Name":"末影蛋糕 (EndCake)","CurseForge":"endcake","Modrinth":""},{"Id":15155,"Name":"","CurseForge":"","Modrinth":"mcsudo"},{"Id":15157,"Name":"","CurseForge":"scp-remake","Modrinth":""},{"Id":15158,"Name":"","CurseForge":"","Modrinth":"scp-fallen-foundation"},{"Id":15160,"Name":"","CurseForge":"create-heat-js","Modrinth":"create-heat-js"},{"Id":15161,"Name":"","CurseForge":"createaddoncompatibility","Modrinth":"createaddoncompatibility"},{"Id":15162,"Name":"","CurseForge":"more-difficulty-levels","Modrinth":""},{"Id":15163,"Name":"","CurseForge":"alternacraft","Modrinth":""},{"Id":15164,"Name":"","CurseForge":"sheep-squeak","Modrinth":"sheep-squeak"},{"Id":15165,"Name":"","CurseForge":"fabric-simple-animated-guns","Modrinth":""},{"Id":15166,"Name":"","CurseForge":"a-v-a-in-minecraft","Modrinth":"a.v.a-alliance-of-valiant-arms-guns"},{"Id":15167,"Name":"坐标显示 (Coordinates Display)","CurseForge":"coordinates-display","Modrinth":"coordinates-display"},{"Id":15168,"Name":"亚克力窗口 (AcryliCraft)","CurseForge":"","Modrinth":"acrylicraft"},{"Id":15169,"Name":"","CurseForge":"towelette","Modrinth":"towelette"},{"Id":15170,"Name":"","CurseForge":"shc-pvz-zengarden","Modrinth":"shc-pvz-zengarden"},{"Id":15171,"Name":"奇食乐事 (Unusual food's Delight)","CurseForge":"unusual-foods-delight","Modrinth":""},{"Id":15172,"Name":"","CurseForge":"re-fruitful","Modrinth":""},{"Id":15173,"Name":"","CurseForge":"dark-rites-2","Modrinth":""},{"Id":15174,"Name":"","CurseForge":"advitam-addon-for-requiem","Modrinth":"memento-mori"},{"Id":15175,"Name":"","CurseForge":"potheads","Modrinth":""},{"Id":15177,"Name":"","CurseForge":"skyfall-meteorites","Modrinth":"skyfall-meteorites"},{"Id":15178,"Name":"","CurseForge":"fancyclear","Modrinth":""},{"Id":15179,"Name":"","CurseForge":"pathfinders-spade","Modrinth":""},{"Id":15180,"Name":"","CurseForge":"legacy-minecraft","Modrinth":"legacy4j"},{"Id":15181,"Name":"","CurseForge":"festive-creepers","Modrinth":""},{"Id":15182,"Name":"","CurseForge":"essential-features","Modrinth":""},{"Id":15183,"Name":"","CurseForge":"piston-control-forge","Modrinth":""},{"Id":15183,"Name":"","CurseForge":"piston-control","Modrinth":""},{"Id":15185,"Name":"布罗艾重制版 (Blahaj Restitched)","CurseForge":"blahaj-restitched","Modrinth":"blahaj-restitched"},{"Id":15186,"Name":"","CurseForge":"","Modrinth":"tabbychat-2-reforged"},{"Id":15187,"Name":"","CurseForge":"lithostitched","Modrinth":"lithostitched"},{"Id":15188,"Name":"","CurseForge":"pogfish","Modrinth":""},{"Id":15189,"Name":"启动耗时 (Launch Time)","CurseForge":"launch-time","Modrinth":"launch-time"},{"Id":15190,"Name":"","CurseForge":"killer-table","Modrinth":""},{"Id":15191,"Name":"","CurseForge":"trading-table","Modrinth":""},{"Id":15192,"Name":"","CurseForge":"winter-decorations","Modrinth":""},{"Id":15193,"Name":"","CurseForge":"fancy-snowy-weather","Modrinth":""},{"Id":15194,"Name":"","CurseForge":"winter-ambience","Modrinth":""},{"Id":15195,"Name":"","CurseForge":"dralards-rock-candy-mod","Modrinth":""},{"Id":15199,"Name":"爆炸不破坏方块 (Explosion Breaks No Block)","CurseForge":"explosion-breaks-no-block","Modrinth":"explosion-breaks-no-block"},{"Id":15200,"Name":"","CurseForge":"via-romana","Modrinth":"via-romana"},{"Id":15201,"Name":"","CurseForge":"lithic-coins","Modrinth":""},{"Id":15202,"Name":"动态的树:自然之灵附属 (Dynamic Trees for Nature's Spirit)","CurseForge":"dynamic-trees-for-natures-spirit","Modrinth":"dynamic-trees-for-natures-spirit"},{"Id":15203,"Name":"","CurseForge":"gore-edition","Modrinth":""},{"Id":15204,"Name":"","CurseForge":"christmas-wish-in-a-bottle","Modrinth":""},{"Id":15205,"Name":"","CurseForge":"chiseled-bricks","Modrinth":""},{"Id":15206,"Name":"","CurseForge":"unethly-origin","Modrinth":"unethly-origin"},{"Id":15207,"Name":"","CurseForge":"dimensional-totem","Modrinth":"dimensional-totem"},{"Id":15208,"Name":"","CurseForge":"placeable-gunpowder","Modrinth":""},{"Id":15209,"Name":"","CurseForge":"library-for-ar-reworked","Modrinth":"arlib"},{"Id":15214,"Name":"","CurseForge":"craftdev-core","Modrinth":""},{"Id":15215,"Name":"","CurseForge":"costume","Modrinth":""},{"Id":15217,"Name":"","CurseForge":"borzoi-dogs","Modrinth":"borzoi-dogs"},{"Id":15219,"Name":"","CurseForge":"nether-exorcism","Modrinth":"nethers-exorcism"},{"Id":15220,"Name":"","CurseForge":"integrated-villages","Modrinth":"integrated-villages"},{"Id":15221,"Name":"","CurseForge":"taxdeepvillager","Modrinth":""},{"Id":15222,"Name":"","CurseForge":"","Modrinth":"voxelprints-desert"},{"Id":15223,"Name":"","CurseForge":"music-on-demand","Modrinth":""},{"Id":15224,"Name":"","CurseForge":"leadable-bats","Modrinth":""},{"Id":15225,"Name":"","CurseForge":"canes-wonderful-spiders","Modrinth":""},{"Id":15228,"Name":"","CurseForge":"scribble","Modrinth":"scribble"},{"Id":15229,"Name":"","CurseForge":"text-formatting-everywhere","Modrinth":"text-formatting-everywhere"},{"Id":15230,"Name":"","CurseForge":"extended-item-information","Modrinth":""},{"Id":15231,"Name":"","CurseForge":"mod-sound-volume-options","Modrinth":"mod-volume-options"},{"Id":15233,"Name":"","CurseForge":"teams-hud","Modrinth":""},{"Id":15234,"Name":"传送管理器 (TeleportManager)","CurseForge":"","Modrinth":"tpm"},{"Id":15235,"Name":"","CurseForge":"","Modrinth":"camera-obscura"},{"Id":15236,"Name":"","CurseForge":"wzorescanner","Modrinth":""},{"Id":15237,"Name":"","CurseForge":"","Modrinth":"potion-recipes"},{"Id":15238,"Name":"","CurseForge":"wither-totem","Modrinth":"wither-skeleton-totems"},{"Id":15239,"Name":"","CurseForge":"","Modrinth":"player-bones"},{"Id":15241,"Name":"更多苹果 (More Apples)","CurseForge":"more-apples-hyj","Modrinth":""},{"Id":15242,"Name":"奇异附魔 (Fancy Enchantments)","CurseForge":"fancy-enchantments","Modrinth":"fancy-enchantments"},{"Id":15243,"Name":"罪业余烬:冒险维度 (Ash Of Sin: Adventure Dimension)","CurseForge":"ash-of-sin-adventure-dimension","Modrinth":""},{"Id":15244,"Name":"猪突猛进 (Push Forward)","CurseForge":"push-forward","Modrinth":"push-forward"},{"Id":15245,"Name":"你现在是我的了! (You're Mine Now!)","CurseForge":"ymn","Modrinth":"ymn"},{"Id":15246,"Name":"","CurseForge":"thermal-endergy","Modrinth":"thermal-endergy"},{"Id":15247,"Name":"","CurseForge":"mekanism-turrets-fences","Modrinth":"mekanism-turrets"},{"Id":15248,"Name":"","CurseForge":"nuka-cola-classic","Modrinth":""},{"Id":15249,"Name":"","CurseForge":"draconic-machinery","Modrinth":""},{"Id":15250,"Name":"","CurseForge":"","Modrinth":"voxelprints-halloween"},{"Id":15251,"Name":"","CurseForge":"iap-gobber","Modrinth":"iap-gobber"},{"Id":15252,"Name":"","CurseForge":"iap-botania","Modrinth":"iap-botania"},{"Id":15253,"Name":"","CurseForge":"iap-industrial-foregoing","Modrinth":"iap-industrial-foregoing"},{"Id":15254,"Name":"","CurseForge":"iap-silents-gems","Modrinth":"iap-powah"},{"Id":15256,"Name":"","CurseForge":"iap-omega-craft","Modrinth":""},{"Id":15257,"Name":"","CurseForge":"iap-mekanism","Modrinth":""},{"Id":15258,"Name":"","CurseForge":"industrial-agriculture-plugin-silents-mechanisms","Modrinth":""},{"Id":15260,"Name":"","CurseForge":"roads-and-roofs-tfc","Modrinth":"roads-and-roofs-tfc"},{"Id":15261,"Name":"","CurseForge":"taxvillagearchitect","Modrinth":""},{"Id":15262,"Name":"","CurseForge":"taxoceanarchitect","Modrinth":""},{"Id":15263,"Name":"","CurseForge":"nethers-flora","Modrinth":""},{"Id":15265,"Name":"","CurseForge":"microcosm","Modrinth":""},{"Id":15266,"Name":"","CurseForge":"chinese-flying-island-tower","Modrinth":"chinese-flying-island-tower"},{"Id":15267,"Name":"","CurseForge":"","Modrinth":"netherite-tools-for-crackers-witherstorm-mod"},{"Id":15268,"Name":"","CurseForge":"better-maces","Modrinth":""},{"Id":15269,"Name":"","CurseForge":"jack-o-launcher","Modrinth":""},{"Id":15270,"Name":"","CurseForge":"the-otherworld-mod","Modrinth":""},{"Id":15271,"Name":"","CurseForge":"craftingxp","Modrinth":"craftingxp"},{"Id":15273,"Name":"","CurseForge":"dmmttba","Modrinth":"dmmttba"},{"Id":15274,"Name":"","CurseForge":"fzzy-config","Modrinth":"fzzy-config"},{"Id":15275,"Name":"","CurseForge":"no-shield-delay","Modrinth":"no-shield-delay"},{"Id":15276,"Name":"音乐之力 (MusicPower)","CurseForge":"musicpower","Modrinth":"musicpower"},{"Id":15277,"Name":"","CurseForge":"macrocraft","Modrinth":"macrocraft"},{"Id":15278,"Name":"","CurseForge":"camerapture","Modrinth":"camerapture"},{"Id":15279,"Name":"","CurseForge":"simple-voice-radio","Modrinth":"simple-radio"},{"Id":15281,"Name":"","CurseForge":"adorned","Modrinth":""},{"Id":15282,"Name":"","CurseForge":"fence-on-slab","Modrinth":"fence_on_slab"},{"Id":15283,"Name":"","CurseForge":"monochromatic-blocks","Modrinth":"monochromatic-blocks"},{"Id":15287,"Name":"","CurseForge":"archaicfixfix","Modrinth":""},{"Id":15288,"Name":"","CurseForge":"inventive-inventory","Modrinth":"inventive-inventory"},{"Id":15289,"Name":"","CurseForge":"boxlib","Modrinth":"boxlib"},{"Id":15290,"Name":"","CurseForge":"the-shattered-goddess-mokels-bossfight-saphyra","Modrinth":""},{"Id":15291,"Name":"","CurseForge":"resource-explorer","Modrinth":"resource_explorer"},{"Id":15292,"Name":"","CurseForge":"","Modrinth":"patcher"},{"Id":15293,"Name":"","CurseForge":"autoreconnectrf","Modrinth":"autoreconnectrf"},{"Id":15294,"Name":"","CurseForge":"disable-accessibility-screen","Modrinth":"disable-accessibility-screen"},{"Id":15295,"Name":"","CurseForge":"","Modrinth":"fly-high"},{"Id":15297,"Name":"飞苹果 (Fly Apple)","CurseForge":"","Modrinth":"fly-apple"},{"Id":15299,"Name":"","CurseForge":"","Modrinth":"hoyoi"},{"Id":15300,"Name":"","CurseForge":"rogues-and-warriors","Modrinth":"rogues-and-warriors"},{"Id":15304,"Name":"","CurseForge":"tfc-support-indicator","Modrinth":"tfc-support-indicator"},{"Id":15305,"Name":"","CurseForge":"tfc-poisoned-drinks","Modrinth":""},{"Id":15306,"Name":"智能动态结构存储 (SmarterContraptionStorage)","CurseForge":"smartercontraptionstorage","Modrinth":"smarter-contraption-storage"},{"Id":15307,"Name":"","CurseForge":"lexiconfig","Modrinth":"lexiconfig"},{"Id":15309,"Name":"进度全屏 (AdvancementsFullscreen)","CurseForge":"","Modrinth":"advancementsfullscreen"},{"Id":15310,"Name":"","CurseForge":"luckys-wardrobe","Modrinth":"luckyowls-wardrobe"},{"Id":15311,"Name":"","CurseForge":"","Modrinth":"forkkit"},{"Id":15312,"Name":"","CurseForge":"more-affordable-than-ever-never-too-expensive","Modrinth":"more-affordable-than-ever"},{"Id":15313,"Name":"","CurseForge":"what-am-i","Modrinth":""},{"Id":15315,"Name":"","CurseForge":"","Modrinth":"camoverlay"},{"Id":15316,"Name":"自动种植 (AutoPlant)","CurseForge":"autoplant","Modrinth":""},{"Id":15317,"Name":"","CurseForge":"","Modrinth":"skip-backup-screen"},{"Id":15318,"Name":"","CurseForge":"","Modrinth":"polysprint"},{"Id":15319,"Name":"","CurseForge":"","Modrinth":"crashpatch"},{"Id":15320,"Name":"","CurseForge":"","Modrinth":"vanillahud"},{"Id":15321,"Name":"","CurseForge":"","Modrinth":"damagetint"},{"Id":15322,"Name":"","CurseForge":"","Modrinth":"polyblur"},{"Id":15323,"Name":"","CurseForge":"","Modrinth":"colorsaturation"},{"Id":15324,"Name":"","CurseForge":"","Modrinth":"hitbox"},{"Id":15325,"Name":"LAIN的随意创作 (Lain's random creation)","CurseForge":"lains-random-creation","Modrinth":""},{"Id":15326,"Name":"","CurseForge":"autochefs-delight","Modrinth":"autochefs-delight"},{"Id":15328,"Name":"","CurseForge":"bindcommands","Modrinth":"bindcommands"},{"Id":15329,"Name":"","CurseForge":"short-grass","Modrinth":"short-grass"},{"Id":15330,"Name":"","CurseForge":"stairs-but-chairs","Modrinth":"stairs-but-chairs"},{"Id":15331,"Name":"压缩空间:产量推演 (yumo compactmachines por)","CurseForge":"yumo-compactmachines-por","Modrinth":"yumo-compactmachines-por"},{"Id":15332,"Name":"动态的树:妙趣果园 🍊附属 (Dynamic Trees for Fruitful Fun 🍊)","CurseForge":"dynamic-trees-for-fruit-trees","Modrinth":""},{"Id":15333,"Name":"动态的树:更好的末地附属 (Dynamic Trees for BetterEnd)","CurseForge":"dynamic-trees-for-better-end","Modrinth":""},{"Id":15334,"Name":"动态的树:秋原附属 (Dynamic Trees - Autumnity)","CurseForge":"dynamic-trees-autumnity","Modrinth":""},{"Id":15335,"Name":"动态的树:绽芳自然附属 (Dynamic Trees for BloomingNature)","CurseForge":"dynamic-trees-for-bloomingnature","Modrinth":""},{"Id":15336,"Name":"动态的树:Terralith附属 (Dynamic Trees - Terralith)","CurseForge":"dynamic-trees-terralith","Modrinth":"dynamic-trees-terralith"},{"Id":15337,"Name":"动态的树:青青草甸附属 (Dynamic Trees for Meadow)","CurseForge":"dynamic-trees-for-meadow","Modrinth":""},{"Id":15338,"Name":"动态的树:沙滩派对附属 (Dynamic Trees for Beachparty)","CurseForge":"dynamic-trees-for-beachparty","Modrinth":""},{"Id":15339,"Name":"动态的树:葡园酒香附属 (Dynamic Trees for Vinery)","CurseForge":"dynamic-trees-for-vinery","Modrinth":""},{"Id":15340,"Name":"","CurseForge":"tfc-aesthetics","Modrinth":"tfc-plus-aesthetics"},{"Id":15341,"Name":"","CurseForge":"smooth-gui","Modrinth":"smooth-gui"},{"Id":15342,"Name":"","CurseForge":"offershud","Modrinth":"offershud"},{"Id":15343,"Name":"","CurseForge":"perspektive","Modrinth":"perspektive"},{"Id":15344,"Name":"","CurseForge":"ore-harvester","Modrinth":"ore-harvester"},{"Id":15345,"Name":"","CurseForge":"flightassistant","Modrinth":"flightassistant"},{"Id":15346,"Name":"","CurseForge":"biomefog","Modrinth":"biomefog"},{"Id":15347,"Name":"无边界聊天框 (Edgeless Chat Screen)","CurseForge":"edgeless-chat-screen","Modrinth":"edgeless-chat-screen"},{"Id":15348,"Name":"","CurseForge":"villager-death-messages","Modrinth":"villager-death-messages"},{"Id":15349,"Name":"","CurseForge":"","Modrinth":"smooth-skies"},{"Id":15350,"Name":"","CurseForge":"clist","Modrinth":"clist"},{"Id":15351,"Name":"ToTheStars重制版 (ToTheStarsRemake)","CurseForge":"tothestarsremake","Modrinth":"tothestarsremake"},{"Id":15352,"Name":"","CurseForge":"galacticraft-gravity","Modrinth":""},{"Id":15353,"Name":"龙骑士附属:附加龙 (Dragon Mounts: Even More Dragons)","CurseForge":"dragon-mounts-even-more-dragons","Modrinth":""},{"Id":15354,"Name":"游戏内输入法 XPlus 版 (XPlus ContingameIME)","CurseForge":"xplus-contingameime","Modrinth":"xplus-contingameime"},{"Id":15355,"Name":"水源 2 (Water Source 2)","CurseForge":"","Modrinth":"watersource2"},{"Id":15356,"Name":"随机袭击生成 (Random Raid Spawn)","CurseForge":"radomraidspawn","Modrinth":""},{"Id":15357,"Name":"神秘遗物经典版 (Enigmatic Legacy Legacy)","CurseForge":"enigmatic-legacy-legacy","Modrinth":""},{"Id":15359,"Name":"","CurseForge":"nco-java-legacy-lib","Modrinth":""},{"Id":15360,"Name":"","CurseForge":"forge-souls-like-universe","Modrinth":"souls-like-universe"},{"Id":15364,"Name":"","CurseForge":"neutral-animals","Modrinth":"neutral-animals"},{"Id":15365,"Name":"","CurseForge":"create-upgraded-armor","Modrinth":""},{"Id":15366,"Name":"","CurseForge":"fbp-renewed","Modrinth":"fbp-renewed"},{"Id":15367,"Name":"聊动魅影 (Chat Impressive Animation)","CurseForge":"chat-impressive-animation","Modrinth":"chat-impressive-animation"},{"Id":15369,"Name":"","CurseForge":"pianocraft","Modrinth":"pianocraft"},{"Id":15370,"Name":"","CurseForge":"jazzymusicality","Modrinth":"musicality"},{"Id":15371,"Name":"","CurseForge":"","Modrinth":"boids"},{"Id":15372,"Name":"恶魔轮盘赌 (BuckshotRoulette)","CurseForge":"buckshotroulette","Modrinth":"buckshotroulette"},{"Id":15373,"Name":"自定义NPC 非官方版 (CustomNPCs Unofficial)","CurseForge":"customnpcs-unofficial","Modrinth":"customnpcs-unofficial"},{"Id":15374,"Name":"","CurseForge":"","Modrinth":"fast-trading"},{"Id":15375,"Name":"","CurseForge":"simple-wooden-pipes","Modrinth":""},{"Id":15376,"Name":"","CurseForge":"simplywalk","Modrinth":"simplywalk"},{"Id":15377,"Name":"","CurseForge":"persistent-stuff","Modrinth":"persistent-stuff"},{"Id":15378,"Name":"","CurseForge":"lan-operators","Modrinth":"lan-operators"},{"Id":15379,"Name":"","CurseForge":"compatdatapacks","Modrinth":"compatdatapacks"},{"Id":15380,"Name":"","CurseForge":"the-luminous-mod","Modrinth":"the-luminous-mod"},{"Id":15383,"Name":"破门而入 (Burst Door Open)","CurseForge":"burst-door-open","Modrinth":"burst-door-open"},{"Id":15386,"Name":"","CurseForge":"chain-suspension-forge","Modrinth":"chain-suspension"},{"Id":15386,"Name":"","CurseForge":"chain-suspension","Modrinth":""},{"Id":15387,"Name":"","CurseForge":"cui","Modrinth":"cui"},{"Id":15388,"Name":"","CurseForge":"emi-enchanting","Modrinth":"emi-enchanting"},{"Id":15389,"Name":"","CurseForge":"clientsort","Modrinth":"clientsort"},{"Id":15390,"Name":"","CurseForge":"immersive-ui","Modrinth":"immersive-ui"},{"Id":15392,"Name":"","CurseForge":"curios-continuation","Modrinth":"curios-continuation"},{"Id":15393,"Name":"","CurseForge":"","Modrinth":"minekimi"},{"Id":15394,"Name":"","CurseForge":"blind-accessibility","Modrinth":"minecraft-access"},{"Id":15395,"Name":"","CurseForge":"enchanting-tree","Modrinth":"enchantingtree"},{"Id":15396,"Name":"","CurseForge":"dragon-enchants","Modrinth":""},{"Id":15397,"Name":"","CurseForge":"item-placer","Modrinth":"item-placer"},{"Id":15398,"Name":"","CurseForge":"expandedworld","Modrinth":""},{"Id":15399,"Name":"","CurseForge":"monster-hunter-villager","Modrinth":"monster-hunter-villager"},{"Id":15400,"Name":"","CurseForge":"jcraft-eyes-of-ender","Modrinth":"jojo-eyes-of-ender"},{"Id":15401,"Name":"","CurseForge":"","Modrinth":"return-dirt-background"},{"Id":15403,"Name":"","CurseForge":"","Modrinth":"reset-keys-confirmation-screen"},{"Id":15404,"Name":"","CurseForge":"idle-boost","Modrinth":"idle-boost"},{"Id":15405,"Name":"更好的草地 (BetterGrassify)","CurseForge":"bettergrassify","Modrinth":"bettergrassify"},{"Id":15406,"Name":"","CurseForge":"lightweight-inventory-sorting","Modrinth":"lightweight-inventory-sorting"},{"Id":15407,"Name":"","CurseForge":"","Modrinth":"stonecutter-gui-remastered"},{"Id":15408,"Name":"","CurseForge":"","Modrinth":"loom-gui-remastered"},{"Id":15409,"Name":"","CurseForge":"unseaworthy","Modrinth":"unseaworthy"},{"Id":15410,"Name":"","CurseForge":"","Modrinth":"chromaanvils"},{"Id":15411,"Name":"","CurseForge":"thermal-and-space","Modrinth":"thermal-and-space"},{"Id":15412,"Name":"","CurseForge":"create-curios-jetpack","Modrinth":"create-curios-jetpack"},{"Id":15413,"Name":"","CurseForge":"epic-knights-antique-legacy","Modrinth":"epic-knights-antique-legacy"},{"Id":15414,"Name":"","CurseForge":"viking-samurai-knight-items","Modrinth":""},{"Id":15415,"Name":"","CurseForge":"barely-simple-staffs","Modrinth":"barely-simple-staff"},{"Id":15418,"Name":"","CurseForge":"alexs-caves-delight","Modrinth":"alexs-caves-delight"},{"Id":15419,"Name":"","CurseForge":"alexs-caves-adventure","Modrinth":"alexs-caves-adventure"},{"Id":15420,"Name":"","CurseForge":"divine-weaponry","Modrinth":""},{"Id":15422,"Name":"抓钩 (Hook)","CurseForge":"hook","Modrinth":"hoook"},{"Id":15423,"Name":"格挡修复 (FixGuard)","CurseForge":"fix-guard","Modrinth":""},{"Id":15424,"Name":"格雷的洞穴 (Greg Caves)","CurseForge":"","Modrinth":"greg-caves"},{"Id":15425,"Name":"","CurseForge":"better-mob-combat","Modrinth":"better-mob-combat"},{"Id":15426,"Name":"","CurseForge":"mob-player-animator","Modrinth":"mob-player-animator"},{"Id":15427,"Name":"抑郁症 (Depression)","CurseForge":"depression","Modrinth":"depression"},{"Id":15428,"Name":"","CurseForge":"more-rpg-classes","Modrinth":"more-rpg-classes"},{"Id":15429,"Name":"极简快速落叶 (Minimalism Leaf Decay)","CurseForge":"minimalism-leaf-decay","Modrinth":"minimalism_leaf_decay"},{"Id":15430,"Name":"Fabric版群系编辑器 (Biome Modifier for Fabric)","CurseForge":"biome-modifier-for-fabric","Modrinth":"biome-modifier-for-fabric"},{"Id":15431,"Name":"","CurseForge":"chunkloader-simple","Modrinth":""},{"Id":15432,"Name":"","CurseForge":"apollyon","Modrinth":""},{"Id":15433,"Name":"","CurseForge":"worldweaver","Modrinth":"worldweaver"},{"Id":15434,"Name":"下界合金指南针 (Netherite Compass)","CurseForge":"netherite-compass","Modrinth":"netherite-compass"},{"Id":15435,"Name":"","CurseForge":"the-darkness-will-find-you","Modrinth":"the-darkness-will-find-you"},{"Id":15436,"Name":"","CurseForge":"silent-screenshots","Modrinth":"silent-screenshots"},{"Id":15437,"Name":"","CurseForge":"cr3stal-updatet","Modrinth":"crestal"},{"Id":15438,"Name":"","CurseForge":"toggle-subtitles","Modrinth":"toggle-subtitles"},{"Id":15439,"Name":"","CurseForge":"ok-boomer-zoom","Modrinth":"ok-boomer"},{"Id":15441,"Name":"","CurseForge":"forcegl2-0-remapped","Modrinth":"forcegl2.0-remapped"},{"Id":15443,"Name":"重生:伤害免疫机制移除 (ReNDI)","CurseForge":"rendi","Modrinth":"rendi"},{"Id":15444,"Name":"","CurseForge":"create-questing","Modrinth":"create-questing"},{"Id":15445,"Name":"","CurseForge":"create-train-perspective","Modrinth":"create-train-perspective"},{"Id":15446,"Name":"魔女之绘 重生:重生 (ElainaLike Reborn: Reborn)","CurseForge":"elainalike","Modrinth":"elainalike"},{"Id":15447,"Name":"收回你的剑! (Take Back Your Sword)","CurseForge":"take-back-your-sword","Modrinth":"take-back-your-sword"},{"Id":15451,"Name":"","CurseForge":"travel-friendly-food-fabric-forge","Modrinth":"travel-friendly-food"},{"Id":15452,"Name":"","CurseForge":"stardew-valley-food","Modrinth":"stardew-valley-food"},{"Id":15453,"Name":"","CurseForge":"minecolonies-compatibility","Modrinth":""},{"Id":15454,"Name":"","CurseForge":"bettergamma","Modrinth":"bettergamma"},{"Id":15455,"Name":"","CurseForge":"more-lectern-variants","Modrinth":"more-lectern-variants"},{"Id":15456,"Name":"","CurseForge":"","Modrinth":"ase"},{"Id":15457,"Name":"","CurseForge":"lush-cave-trader","Modrinth":"lush-cave-trader"},{"Id":15458,"Name":"","CurseForge":"oceans-enhancements","Modrinth":"oceans-enhancements"},{"Id":15459,"Name":"","CurseForge":"xp-jellies","Modrinth":"xp-jellies"},{"Id":15460,"Name":"","CurseForge":"aromatic","Modrinth":"aromatic"},{"Id":15461,"Name":"一键连锁(Neo)Forge (OneKeyMiner(Neo)Forge)","CurseForge":"onekeyminer-nf","Modrinth":"onekeyminer_nf"},{"Id":15463,"Name":"约谊敌众 (ReTargetato)","CurseForge":"retargetato","Modrinth":"retargetato"},{"Id":15464,"Name":"冰火传说社区版 (IceAndFire Community Edition)","CurseForge":"iceandfire-ce","Modrinth":"iceandfire-ce"},{"Id":15465,"Name":"","CurseForge":"tomanos-vehicle-mod","Modrinth":""},{"Id":15466,"Name":"","CurseForge":"ancient-sands","Modrinth":"ancient-sands"},{"Id":15467,"Name":"","CurseForge":"hs-bosses","Modrinth":""},{"Id":15468,"Name":"","CurseForge":"chubby-mobs","Modrinth":"chubby-mobs"},{"Id":15469,"Name":"修复宝石 (Repair Gem)","CurseForge":"repair-gem","Modrinth":""},{"Id":15470,"Name":"","CurseForge":"better-weaponry-compatible-with-better-combat","Modrinth":"better-weaponry"},{"Id":15471,"Name":"","CurseForge":"disable-front-perspective","Modrinth":"disable-front-perspective"},{"Id":15474,"Name":"","CurseForge":"thaumcraft-6-aspects-for-jei","Modrinth":"thaumcraft-6-aspects-for-jei"},{"Id":15475,"Name":"","CurseForge":"","Modrinth":"up-and-away"},{"Id":15477,"Name":"RotP:紫色隐者附属 (Ripples of the Past: Hermit Purple Addon)","CurseForge":"","Modrinth":"ripples-of-the-past-hermit-purple-addon"},{"Id":15478,"Name":"","CurseForge":"nc-steam-additions","Modrinth":"nuclearcraft-steam-additions"},{"Id":15479,"Name":"气场流注 (Aura Cascade)","CurseForge":"aura-cascade","Modrinth":""},{"Id":15480,"Name":"","CurseForge":"rac-compat","Modrinth":"rac-compat"},{"Id":15481,"Name":"","CurseForge":"spartan-weaponry-addon-toolkit","Modrinth":"spartan-weaponry-addon-toolkit"},{"Id":15482,"Name":"救救我的答辩网络 (Save My Shaky Network)","CurseForge":"smsn","Modrinth":"smsn"},{"Id":15483,"Name":"","CurseForge":"sneaky-tree-growing-forge","Modrinth":"sneaky-tree-growing"},{"Id":15483,"Name":"","CurseForge":"sneaky-tree-growing-fabric","Modrinth":""},{"Id":15484,"Name":"","CurseForge":"hungry-zombies","Modrinth":""},{"Id":15485,"Name":"","CurseForge":"","Modrinth":"gravity-gourds"},{"Id":15486,"Name":"","CurseForge":"usa-delight","Modrinth":"usa-delight"},{"Id":15487,"Name":"","CurseForge":"experience-farm","Modrinth":""},{"Id":15488,"Name":"","CurseForge":"dandi2k8s-ad-extendra","Modrinth":"ad_extendra-continuation"},{"Id":15488,"Name":"","CurseForge":"ad-extendra-dandi2k8-version","Modrinth":""},{"Id":15489,"Name":"","CurseForge":"nebulus-juice-trader","Modrinth":"nebulus-juice-trader"},{"Id":15490,"Name":"","CurseForge":"cthulhu-fishing","Modrinth":"cthulhu-fishing"},{"Id":15491,"Name":"大型超级马铃薯 (Large Super Potato)","CurseForge":"large-super-potato","Modrinth":""},{"Id":15492,"Name":"","CurseForge":"","Modrinth":"craft-time"},{"Id":15493,"Name":"","CurseForge":"the-orcs","Modrinth":""},{"Id":15494,"Name":"","CurseForge":"made-in-abyss-shroombears","Modrinth":""},{"Id":15495,"Name":"","CurseForge":"squinkers","Modrinth":""},{"Id":15496,"Name":"","CurseForge":"mokels-bossfight-kinora","Modrinth":""},{"Id":15497,"Name":"","CurseForge":"","Modrinth":"create-high-pressure"},{"Id":15498,"Name":"机械动力:多彩边框 (Create: Framed)","CurseForge":"create-framed","Modrinth":"create-framed"},{"Id":15499,"Name":"驱动工艺 (Trackwork)","CurseForge":"trackwork","Modrinth":"trackwork"},{"Id":15500,"Name":"","CurseForge":"oritech","Modrinth":"oritech"},{"Id":15501,"Name":"","CurseForge":"the-impossible-library","Modrinth":"the-impossible-library"},{"Id":15502,"Name":"","CurseForge":"perspective-mod-redux","Modrinth":"perspective-mod-redux"},{"Id":15503,"Name":"","CurseForge":"more-cartography-tables","Modrinth":"more-cartography-tables"},{"Id":15504,"Name":"","CurseForge":"more-barrel-variants","Modrinth":"more-barrel-variants"},{"Id":15505,"Name":"","CurseForge":"wheelbarrow","Modrinth":"wheelbarrow"},{"Id":15506,"Name":"","CurseForge":"simple-automation","Modrinth":""},{"Id":15507,"Name":"","CurseForge":"better-paragliders","Modrinth":"better-paragliders"},{"Id":15508,"Name":"","CurseForge":"fallen-wizards-more-magic-series","Modrinth":"fallen-wizards-more-magic-series"},{"Id":15510,"Name":"","CurseForge":"","Modrinth":"whiffowisp"},{"Id":15511,"Name":"","CurseForge":"mango-cats","Modrinth":""},{"Id":15512,"Name":"","CurseForge":"tax-tree-giant","Modrinth":"tree-giant"},{"Id":15513,"Name":"","CurseForge":"taxskyvillager","Modrinth":""},{"Id":15514,"Name":"","CurseForge":"compostable-rotten-flesh","Modrinth":""},{"Id":15515,"Name":"","CurseForge":"villager-in-a-bucket","Modrinth":"villager-in-a-bucket"},{"Id":15516,"Name":"","CurseForge":"nebulus-trader-for-the-desert","Modrinth":""},{"Id":15517,"Name":"","CurseForge":"nebulus-jungle-trader","Modrinth":"nebulus-trader-for-the-jungle"},{"Id":15518,"Name":"","CurseForge":"mushroom-villager-trader","Modrinth":"mushroom-villager-trader"},{"Id":15519,"Name":"","CurseForge":"nebulus-better-portals","Modrinth":"nebulus-better-portals"},{"Id":15520,"Name":"","CurseForge":"resource-ghouls","Modrinth":""},{"Id":15521,"Name":"无尽贪婪Neo (AvaritiaNeo)","CurseForge":"avaritianeo","Modrinth":"avaritianeo"},{"Id":15522,"Name":"","CurseForge":"create-legacy","Modrinth":"create-legacy"},{"Id":15523,"Name":"","CurseForge":"","Modrinth":"create-bronze-age"},{"Id":15524,"Name":"风瓶 (wind bottle)","CurseForge":"wind-bottle","Modrinth":"wind-bottle"},{"Id":15525,"Name":"","CurseForge":"lc-tech","Modrinth":"lc-tech"},{"Id":15526,"Name":"","CurseForge":"minecolonies-tweaks","Modrinth":""},{"Id":15527,"Name":"文本占位符 API (Text Placeholder API)","CurseForge":"text-placeholder-api","Modrinth":"placeholder-api"},{"Id":15528,"Name":"","CurseForge":"","Modrinth":"gravity-api-fork"},{"Id":15530,"Name":"","CurseForge":"","Modrinth":"tt20"},{"Id":15531,"Name":"","CurseForge":"kasugalib","Modrinth":"kasugalib"},{"Id":15532,"Name":"乙硫基匠魂 (C2H6S Tinker)","CurseForge":"","Modrinth":"c2h6s-tinker"},{"Id":15533,"Name":"遭遇/长驱速弑 (Encounter)","CurseForge":"encounter-mob-ai-tweaker","Modrinth":""},{"Id":15534,"Name":"","CurseForge":"kubejs-mekanism-unofficial","Modrinth":""},{"Id":15535,"Name":"媒体播放器 (MediaPlayer)","CurseForge":"","Modrinth":"mediaplayer"},{"Id":15536,"Name":"","CurseForge":"bakery-villager-trader","Modrinth":"bakery-villager-trader"},{"Id":15537,"Name":"","CurseForge":"nebulus-trader-for-the-plains","Modrinth":""},{"Id":15538,"Name":"","CurseForge":"mokels-more-spiders","Modrinth":""},{"Id":15540,"Name":"","CurseForge":"exposure-catalog","Modrinth":"exposure-catalog"},{"Id":15541,"Name":"","CurseForge":"skinchanger","Modrinth":"skinchanger"},{"Id":15543,"Name":"","CurseForge":"","Modrinth":"halflifemenu"},{"Id":15544,"Name":"","CurseForge":"sitting","Modrinth":"sitting+"},{"Id":15545,"Name":"","CurseForge":"forgotten-east","Modrinth":"forgotten-east"},{"Id":15546,"Name":"","CurseForge":"brazil-legends","Modrinth":"brazil-legends"},{"Id":15548,"Name":"自定义掉落物消失时间 (Custom Item Despawn Duration)","CurseForge":"custom-item-despawn-duration","Modrinth":"custom-item-despawn-duration"},{"Id":15549,"Name":"","CurseForge":"your-items-to-new-worlds","Modrinth":"your-items-to-new-worlds"},{"Id":15550,"Name":"更好的Boss血条 (Enhanced Boss Bars)","CurseForge":"enhanced-boss-bars","Modrinth":"enhanced-boss-bars-mod"},{"Id":15551,"Name":"","CurseForge":"cutetrade","Modrinth":"cutetrade"},{"Id":15553,"Name":"平滑菜单:重制版 (SmoothMenu Refabricated)","CurseForge":"smoothmenu-refabricated","Modrinth":"smoothmenu-refabricated"},{"Id":15555,"Name":"添加到现有堆叠 (ToExistingStacks)","CurseForge":"toexistingstacks","Modrinth":""},{"Id":15556,"Name":"","CurseForge":"","Modrinth":"postmortal-particles"},{"Id":15557,"Name":"","CurseForge":"","Modrinth":"give-me-a-new-splash-text"},{"Id":15558,"Name":"","CurseForge":"","Modrinth":"less-annoying-fire"},{"Id":15559,"Name":"","CurseForge":"treasuredistance","Modrinth":""},{"Id":15560,"Name":"","CurseForge":"affinity","Modrinth":"affinity"},{"Id":15561,"Name":"","CurseForge":"chaos-moon","Modrinth":""},{"Id":15562,"Name":"","CurseForge":"","Modrinth":"healthindicator"},{"Id":15563,"Name":"小凿子 (Small chisel)","CurseForge":"","Modrinth":"small-chisel"},{"Id":15564,"Name":"","CurseForge":"","Modrinth":"auto-sprint-fix"},{"Id":15565,"Name":"","CurseForge":"lets-do-emi-compat","Modrinth":"lets-do-emi-compat"},{"Id":15566,"Name":"","CurseForge":"health-indicator","Modrinth":"health-indicators"},{"Id":15567,"Name":"","CurseForge":"aiming-fix","Modrinth":"aiming-fix"},{"Id":15568,"Name":"指南针HUD (CompassHUD)","CurseForge":"compasshud","Modrinth":"compasshud"},{"Id":15569,"Name":"","CurseForge":"mini-boss-boss-bars","Modrinth":"mini-boss-boss-bars"},{"Id":15570,"Name":"","CurseForge":"berserker-rpg-class","Modrinth":"berserker-rpg-class"},{"Id":15571,"Name":"","CurseForge":"fromanotherlibrary","Modrinth":"fromanotherlibrary"},{"Id":15572,"Name":"","CurseForge":"mounted-pearl-bring-your-mount-along-when-you","Modrinth":""},{"Id":15573,"Name":"","CurseForge":"biome-id-fixer","Modrinth":""},{"Id":15574,"Name":"","CurseForge":"immortal-coral","Modrinth":"immortal-coral"},{"Id":15575,"Name":"","CurseForge":"immersive-guns","Modrinth":"immersive-guns"},{"Id":15576,"Name":"","CurseForge":"guns-plusplus","Modrinth":""},{"Id":15577,"Name":"","CurseForge":"additional-rpg-jewelry","Modrinth":"additional-rpg-jewelry"},{"Id":15578,"Name":"","CurseForge":"mekanism-ad-astra-ores","Modrinth":"mekanism-ad-astra-ores"},{"Id":15579,"Name":"","CurseForge":"question-ducks-ambient-fireflies","Modrinth":""},{"Id":15580,"Name":"","CurseForge":"travelerz","Modrinth":"travelerz"},{"Id":15581,"Name":"矿石崛起 (The Rise Of Minerals)","CurseForge":"the-rise-of-minerals","Modrinth":""},{"Id":15582,"Name":"","CurseForge":"gregtech-steam-additions","Modrinth":""},{"Id":15583,"Name":"","CurseForge":"gregtech-nomifactory-edition","Modrinth":""},{"Id":15584,"Name":"","CurseForge":"create-ethium","Modrinth":"ethium"},{"Id":15585,"Name":"机械动力:动态终端 (Create Contraption Terminals)","CurseForge":"create-contraption-terminals","Modrinth":"create-contraption-terminals"},{"Id":15587,"Name":"","CurseForge":"strata-recipes","Modrinth":""},{"Id":15588,"Name":"","CurseForge":"strayed-fates-forsaken","Modrinth":""},{"Id":15589,"Name":"","CurseForge":"snowyleavesplus","Modrinth":"snowyleavesplus"},{"Id":15590,"Name":"","CurseForge":"shield-overhaul","Modrinth":"shield-overhaul"},{"Id":15591,"Name":"G武器 (G-Weapons)","CurseForge":"g-weapons-mod-gargantuan-weapons-mods","Modrinth":""},{"Id":15592,"Name":"工具后置/后背工具展示:重制版 (BackTools)","CurseForge":"backtools","Modrinth":"backtools"},{"Id":15593,"Name":"史诗战斗:关刀 (Epic Fight - Guandao Moveset)","CurseForge":"epic-fight-guandao-moveset","Modrinth":""},{"Id":15594,"Name":"","CurseForge":"epicfight-dual-greatsword","Modrinth":""},{"Id":15595,"Name":"","CurseForge":"spell-checker","Modrinth":"spell-checker"},{"Id":15596,"Name":"","CurseForge":"sparkle","Modrinth":"sparkle"},{"Id":15597,"Name":"","CurseForge":"","Modrinth":"visible-traders"},{"Id":15598,"Name":"","CurseForge":"villagers-inventory","Modrinth":""},{"Id":15599,"Name":"","CurseForge":"removehud","Modrinth":"removehud"},{"Id":15600,"Name":"正交相机 (OrthoCamera)","CurseForge":"","Modrinth":"orthocamera"},{"Id":15601,"Name":"","CurseForge":"third-person-crosshair-fabric","Modrinth":""},{"Id":15602,"Name":"","CurseForge":"","Modrinth":"hitrange"},{"Id":15603,"Name":"","CurseForge":"black-moon","Modrinth":"black-moon"},{"Id":15604,"Name":"","CurseForge":"dynamic-fire-overlay","Modrinth":"dynamic-fire-overlay"},{"Id":15605,"Name":"","CurseForge":"firorize","Modrinth":"firorize"},{"Id":15606,"Name":"","CurseForge":"smoke-extender","Modrinth":""},{"Id":15607,"Name":"","CurseForge":"","Modrinth":"nohotbarlooping"},{"Id":15608,"Name":"","CurseForge":"","Modrinth":"higher-chat"},{"Id":15609,"Name":"","CurseForge":"mekanism-cardboard-tooltip","Modrinth":"mekanism-cardboard-tooltip"},{"Id":15610,"Name":"","CurseForge":"durability-notifier","Modrinth":"durability-notifier"},{"Id":15611,"Name":"","CurseForge":"gregtech-extended-chemistry","Modrinth":""},{"Id":15612,"Name":"","CurseForge":"centrifuge-tiers","Modrinth":""},{"Id":15613,"Name":"","CurseForge":"distant-friends","Modrinth":"distant-friends"},{"Id":15614,"Name":"","CurseForge":"the-world-of-herobrine","Modrinth":""},{"Id":15615,"Name":"","CurseForge":"primal-storage","Modrinth":"primalstorage"},{"Id":15616,"Name":"药水核心重制 (PotionCoreReloaded)","CurseForge":"","Modrinth":"potioncorereloaded"},{"Id":15617,"Name":"山樱之刃重置版 (Yamazakura reforked)","CurseForge":"yamazakura-reforked","Modrinth":""},{"Id":15620,"Name":"神化刷怪笼 (Apothic Spawners)","CurseForge":"apothic-spawners","Modrinth":""},{"Id":15622,"Name":"华夏核心 (SinoCore)","CurseForge":"sinocore","Modrinth":""},{"Id":15623,"Name":"","CurseForge":"tinted-dyes","Modrinth":"tinted-dyes"},{"Id":15624,"Name":"动态的树:丰富的生态附属 (Dynamic Trees - Ecologics)","CurseForge":"dynamic-trees-ecologics","Modrinth":"dynamic-trees-ecologics"},{"Id":15625,"Name":"可合成的披风 (Craftable Capes)","CurseForge":"craftablecapes","Modrinth":"craftablecapes"},{"Id":15626,"Name":"","CurseForge":"tamago","Modrinth":"tamago"},{"Id":15627,"Name":"","CurseForge":"","Modrinth":"clickthrough2.0"},{"Id":15629,"Name":"","CurseForge":"open-computer-resurrected","Modrinth":""},{"Id":15630,"Name":"","CurseForge":"advancements-reloaded","Modrinth":"advancements-reloaded"},{"Id":15631,"Name":"","CurseForge":"oc2r","Modrinth":"oc2r"},{"Id":15632,"Name":"EU能源P2P通道 (EU P2P Tunnel)","CurseForge":"eu-p2p-tunnel","Modrinth":"eup2p"},{"Id":15633,"Name":"","CurseForge":"","Modrinth":"hold-onto-everything"},{"Id":15634,"Name":"","CurseForge":"ardagrass","Modrinth":"ardagrass"},{"Id":15635,"Name":"","CurseForge":"geocluster","Modrinth":"geocluster"},{"Id":15637,"Name":"","CurseForge":"","Modrinth":"knives-construct"},{"Id":15639,"Name":"","CurseForge":"updating-world-icon","Modrinth":"updating-world-icon"},{"Id":15640,"Name":"","CurseForge":"shared-resources","Modrinth":"shared-resources"},{"Id":15641,"Name":"","CurseForge":"tech-dimension","Modrinth":"tech-dimension"},{"Id":15642,"Name":"","CurseForge":"tilt-break","Modrinth":"tilt-break"},{"Id":15643,"Name":"","CurseForge":"item-frament","Modrinth":"item-frament"},{"Id":15644,"Name":"","CurseForge":"water-vision","Modrinth":"water-vision"},{"Id":15645,"Name":"","CurseForge":"randomized-default-fireworks","Modrinth":"randomizeddefaultfireworks"},{"Id":15646,"Name":"","CurseForge":"glowing-torchflower","Modrinth":"glowing-torchflower"},{"Id":15647,"Name":"","CurseForge":"","Modrinth":"clock-hud-renew"},{"Id":15648,"Name":"","CurseForge":"cameranoclip","Modrinth":""},{"Id":15649,"Name":"","CurseForge":"barriers-dont-block-rain","Modrinth":"barriers-dont-block-rain"},{"Id":15650,"Name":"","CurseForge":"no-render","Modrinth":"no-render"},{"Id":15652,"Name":"跑鞋 (Running Shoes)","CurseForge":"runningshoes","Modrinth":""},{"Id":15653,"Name":"","CurseForge":"fluid-void-fading","Modrinth":"fluidvoidfading"},{"Id":15654,"Name":"","CurseForge":"","Modrinth":"movement-in-gui"},{"Id":15655,"Name":"","CurseForge":"glowing-eyes","Modrinth":"glowing-eyes"},{"Id":15656,"Name":"","CurseForge":"youarch","Modrinth":""},{"Id":15657,"Name":"","CurseForge":"true-darkness-fabric","Modrinth":"true-darkness-fabric"},{"Id":15658,"Name":"实体声音特性 (Entity Sound Features)","CurseForge":"esf-entity-sound-features","Modrinth":"esf"},{"Id":15659,"Name":"","CurseForge":"nomoreglowingpots","Modrinth":"nomoreglowingpots"},{"Id":15660,"Name":"","CurseForge":"smooth-particles","Modrinth":"smooth-particles"},{"Id":15662,"Name":"","CurseForge":"unloaded-activity","Modrinth":"unloaded-activity"},{"Id":15663,"Name":"","CurseForge":"improperui","Modrinth":"improperui"},{"Id":15664,"Name":"","CurseForge":"neverenoughanimation","Modrinth":"neverenoughanimation"},{"Id":15665,"Name":"","CurseForge":"reds-stagger-parry","Modrinth":""},{"Id":15666,"Name":"","CurseForge":"additional-placements","Modrinth":"additional-placements"},{"Id":15666,"Name":"","CurseForge":"additional-placements-fabric","Modrinth":"additional-placements-fabric"},{"Id":15667,"Name":"","CurseForge":"akicaters-shelves","Modrinth":"akicaters-shelf-mod"},{"Id":15668,"Name":"MrCrayfish 的家具:重制 (MrCrayfish's Furniture Mod: Refurbished)","CurseForge":"refurbished-furniture","Modrinth":""},{"Id":15669,"Name":"","CurseForge":"improved-stations-forge","Modrinth":""},{"Id":15669,"Name":"","CurseForge":"improved-stations","Modrinth":""},{"Id":15669,"Name":"","CurseForge":"improved-stations-for-1-19","Modrinth":""},{"Id":15670,"Name":"","CurseForge":"elemental-wizards-rpg-class","Modrinth":"elemental-wizards-rpg"},{"Id":15671,"Name":"","CurseForge":"pov-that-one-short-friend","Modrinth":""},{"Id":15672,"Name":"","CurseForge":"onward-and-upward","Modrinth":""},{"Id":15673,"Name":"武器箱战利品 (Weapon Case Loot)","CurseForge":"weapon-case-loot","Modrinth":""},{"Id":15674,"Name":"","CurseForge":"mace-but-3d","Modrinth":"mace-but-3d"},{"Id":15675,"Name":"","CurseForge":"","Modrinth":"healthindicators"},{"Id":15676,"Name":"","CurseForge":"smoothcoasters","Modrinth":"smoothcoasters"},{"Id":15677,"Name":"","CurseForge":"do-a-flip","Modrinth":"do-a-flip"},{"Id":15678,"Name":"","CurseForge":"","Modrinth":"no-death-animation"},{"Id":15679,"Name":"","CurseForge":"veindigging","Modrinth":"veindigging"},{"Id":15680,"Name":"","CurseForge":"too-many-entities","Modrinth":"too-many-entities"},{"Id":15685,"Name":"断点调试 (Datapack Debugger)","CurseForge":"datapack-breakpoint","Modrinth":"datapack-debugger"},{"Id":15688,"Name":"冬季救援:寒霜之心 (The Winter Rescue: Frosted Heart)","CurseForge":"frosted-heart","Modrinth":""},{"Id":15689,"Name":"","CurseForge":"create-planetary-tweaks","Modrinth":"cp-tweaks"},{"Id":15690,"Name":"","CurseForge":"entris","Modrinth":"entris"},{"Id":15691,"Name":"","CurseForge":"","Modrinth":"sushi-bar"},{"Id":15692,"Name":"","CurseForge":"lumi","Modrinth":"lumi1710"},{"Id":15693,"Name":"","CurseForge":"pet-the-frog","Modrinth":"frog-petting"},{"Id":15694,"Name":"","CurseForge":"ex-nihilo-extras","Modrinth":"ex-nihilo-extras"},{"Id":15695,"Name":"","CurseForge":"cycle-title-screen-splash","Modrinth":"cycle-title-screen-splash"},{"Id":15696,"Name":"","CurseForge":"hide-invisible-armor","Modrinth":"hide-invisible-armor"},{"Id":15697,"Name":"","CurseForge":"inventory-tweaks-refoxed","Modrinth":"inventory-tweaks-refoxed"},{"Id":15698,"Name":"","CurseForge":"bigshot","Modrinth":"bigshot"},{"Id":15699,"Name":"","CurseForge":"more-immersive-aircraft","Modrinth":""},{"Id":15700,"Name":"传说生存 (Legendary Survival Overhaul)","CurseForge":"legendary-survival-overhaul","Modrinth":"legendary-survival-overhaul"},{"Id":15701,"Name":"","CurseForge":"mineral-delight","Modrinth":""},{"Id":15702,"Name":"","CurseForge":"not-just-sandwich","Modrinth":"notjustsandwich"},{"Id":15703,"Name":"幻想食物 (FantasyFood)","CurseForge":"fantasyfood","Modrinth":""},{"Id":15704,"Name":"","CurseForge":"mc-modsthefood","Modrinth":"allthefood"},{"Id":15705,"Name":"","CurseForge":"villager-names-fabric","Modrinth":"villager-names"},{"Id":15706,"Name":"","CurseForge":"trial-vault-restock","Modrinth":"trialchamberrestock"},{"Id":15707,"Name":"","CurseForge":"hot-green-fire","Modrinth":""},{"Id":15708,"Name":"","CurseForge":"phantom-flames","Modrinth":""},{"Id":15709,"Name":"","CurseForge":"darktitlebar","Modrinth":"darktitlebar"},{"Id":15710,"Name":"","CurseForge":"cubes-without-borders","Modrinth":"cubes-without-borders"},{"Id":15711,"Name":"","CurseForge":"block-parry-dodge","Modrinth":""},{"Id":15712,"Name":"Fargo的护身符 (Fargo's Talismans)","CurseForge":"fargos-talismans","Modrinth":"fargos-talismans"},{"Id":15713,"Name":"","CurseForge":"toostrongmonster","Modrinth":""},{"Id":15714,"Name":"","CurseForge":"simplystronger","Modrinth":""},{"Id":15715,"Name":"","CurseForge":"tacz-durability","Modrinth":""},{"Id":15715,"Name":"TACZ: Durability - 停更","CurseForge":"","Modrinth":"tacz-durability"},{"Id":15716,"Name":"","CurseForge":"bigger-lightning-storms","Modrinth":""},{"Id":15717,"Name":"","CurseForge":"eternal-limbo","Modrinth":""},{"Id":15718,"Name":"","CurseForge":"legoman","Modrinth":""},{"Id":15719,"Name":"","CurseForge":"petcreepers-mod","Modrinth":""},{"Id":15720,"Name":"","CurseForge":"tugkandemans-weaponry","Modrinth":"tugkandemans-weaponry"},{"Id":15728,"Name":"","CurseForge":"","Modrinth":"noanysus"},{"Id":15729,"Name":"Re艹 (ReKusaEater)","CurseForge":"rekusaeater","Modrinth":"rekusaeater"},{"Id":15730,"Name":"","CurseForge":"jsg","Modrinth":"jsg"},{"Id":15731,"Name":"药水混合 (Potion Mixing)","CurseForge":"potion-mixing","Modrinth":"potion-mixing"},{"Id":15732,"Name":"砂滤器 (Sand Filter)","CurseForge":"sandfilter","Modrinth":"sandfilter"},{"Id":15733,"Name":"雁雅得枝 (ReSaplingslayer)","CurseForge":"resaplingslayer","Modrinth":"resaplingslayer"},{"Id":15734,"Name":"狱牙抵战 (Cerberus)","CurseForge":"cerberu","Modrinth":"cerberu"},{"Id":15735,"Name":"远亦得珍 (ReMoreloyaltrident)","CurseForge":"remoreloyaltrident","Modrinth":"remoreloyaltrident"},{"Id":15736,"Name":"药水等级修复/药引对注 (PotionLevelFix)","CurseForge":"potionlevelfix","Modrinth":"potionlevelfix"},{"Id":15737,"Name":"以验垫砧 (ReUnmending)","CurseForge":"reunmending","Modrinth":"reunmending"},{"Id":15738,"Name":"引殃髑至 (ReGhostJump)","CurseForge":"reghostjump","Modrinth":"reghostjump"},{"Id":15739,"Name":"隐影刀珍 (Mowzie's Mobs: ReBroken Blade)","CurseForge":"rebroken-blade","Modrinth":"rebroken-blade"},{"Id":15740,"Name":"又御刀追/追击 (AttackAgain)","CurseForge":"attackagain","Modrinth":"attackagain"},{"Id":15741,"Name":"","CurseForge":"","Modrinth":"sectionsign"},{"Id":15742,"Name":"","CurseForge":"","Modrinth":"allow-chat"},{"Id":15743,"Name":"","CurseForge":"retro-damage-indicators","Modrinth":"retro-damage-indicators"},{"Id":15744,"Name":"","CurseForge":"","Modrinth":"impropers-3d-minimap"},{"Id":15745,"Name":"","CurseForge":"beddium","Modrinth":"beddium"},{"Id":15746,"Name":"","CurseForge":"create-thermal-compat","Modrinth":""},{"Id":15747,"Name":"","CurseForge":"create-lagless","Modrinth":"create-lagless"},{"Id":15748,"Name":"","CurseForge":"create-ironworks","Modrinth":"create-ironworks"},{"Id":15749,"Name":"机械动力:炫彩金库 (Create: Vibrant Vaults)","CurseForge":"","Modrinth":"create-vibrant-vaults"},{"Id":15750,"Name":"","CurseForge":"steam-power","Modrinth":""},{"Id":15751,"Name":"","CurseForge":"kevs-library","Modrinth":"kevs-library"},{"Id":15752,"Name":"","CurseForge":"remove-purpleprison-ads","Modrinth":""},{"Id":15753,"Name":"","CurseForge":"timeoutfixes","Modrinth":""},{"Id":15754,"Name":"","CurseForge":"forgeskyboxes","Modrinth":"forgeskyboxes"},{"Id":15755,"Name":"随液钓趣 (CustomFishing)","CurseForge":"customfishing","Modrinth":""},{"Id":15756,"Name":"Métropolis. - 已不再更新","CurseForge":"metr0polis","Modrinth":""},{"Id":15756,"Name":"","CurseForge":"","Modrinth":"metropolis"},{"Id":15757,"Name":"","CurseForge":"crust","Modrinth":"crust"},{"Id":15759,"Name":"","CurseForge":"sc-structurecraft","Modrinth":"structurecraft"},{"Id":15760,"Name":"Minehop - 主","CurseForge":"minehop","Modrinth":"minehop"},{"Id":15760,"Name":"","CurseForge":"minehoplite","Modrinth":"minehoplite"},{"Id":15761,"Name":"","CurseForge":"placeabletools","Modrinth":""},{"Id":15762,"Name":"","CurseForge":"rlfoliage","Modrinth":"rlfoliage"},{"Id":15763,"Name":"","CurseForge":"bc-remastered","Modrinth":""},{"Id":15764,"Name":"","CurseForge":"","Modrinth":"deepdrilling"},{"Id":15765,"Name":"","CurseForge":"copperworks","Modrinth":""},{"Id":15768,"Name":"","CurseForge":"miner-villager","Modrinth":""},{"Id":15769,"Name":"","CurseForge":"villager-venture","Modrinth":""},{"Id":15770,"Name":"","CurseForge":"alekiships","Modrinth":"alekiships"},{"Id":15771,"Name":"","CurseForge":"alekishipsbop","Modrinth":"alekishipsbop"},{"Id":15772,"Name":"","CurseForge":"antique-trading-ship","Modrinth":"antique-trading-ship"},{"Id":15773,"Name":"小型马厩 (Small Horse Stable)","CurseForge":"small-horse-stable","Modrinth":"small-horse-stable"},{"Id":15774,"Name":"","CurseForge":"shrek-the-ogre","Modrinth":"shrek"},{"Id":15776,"Name":"","CurseForge":"the-anomaly","Modrinth":"the-anomaly-rephased"},{"Id":15777,"Name":"","CurseForge":"desert-behemoths-sandworms","Modrinth":"desert-behemoths-sandworms!"},{"Id":15779,"Name":"","CurseForge":"vermintide-rising","Modrinth":""},{"Id":15780,"Name":"时代铠甲 (Armor of the Ages)","CurseForge":"armor-of-the-ages","Modrinth":"armor-of-the-ages"},{"Id":15784,"Name":"","CurseForge":"","Modrinth":"betterf3-stationapi"},{"Id":15785,"Name":"FTB Quest 本地化 (FTB Quest Localizer)","CurseForge":"ftb-quest-localizer","Modrinth":""},{"Id":15786,"Name":"","CurseForge":"modpack-update-checker","Modrinth":"modpack-update-checker"},{"Id":15787,"Name":"","CurseForge":"minimotd-fabric","Modrinth":""},{"Id":15788,"Name":"","CurseForge":"effecttimerplus","Modrinth":"effecttimerplus"},{"Id":15789,"Name":"神秘议会 (Thaumic Concilium)","CurseForge":"thaumic-concilium","Modrinth":"thaumic-concilium"},{"Id":15790,"Name":"","CurseForge":"equivalentexchange","Modrinth":""},{"Id":15792,"Name":"","CurseForge":"coral-up","Modrinth":"coral-up"},{"Id":15793,"Name":"","CurseForge":"plushie-buddies","Modrinth":"plushie-buddies"},{"Id":15794,"Name":"","CurseForge":"","Modrinth":"the-aethers-delight"},{"Id":15795,"Name":"","CurseForge":"","Modrinth":"wheelchairs"},{"Id":15796,"Name":"","CurseForge":"dnt-pillager-outpost-overhaul","Modrinth":""},{"Id":15797,"Name":"","CurseForge":"mage-flame","Modrinth":"mage-flame"},{"Id":15798,"Name":"","CurseForge":"","Modrinth":"totem-party-popper"},{"Id":15799,"Name":"","CurseForge":"","Modrinth":"powerless-refined-storage"},{"Id":15800,"Name":"","CurseForge":"forgotten-graves","Modrinth":"forgotten-graves"},{"Id":15801,"Name":"","CurseForge":"day-zombies","Modrinth":""},{"Id":15802,"Name":"更多煤炭 (More Coal)","CurseForge":"morecoal","Modrinth":""},{"Id":15803,"Name":"","CurseForge":"jjku","Modrinth":""},{"Id":15805,"Name":"","CurseForge":"immersive-combat-feathers","Modrinth":""},{"Id":15806,"Name":"","CurseForge":"ghosties-monocle","Modrinth":""},{"Id":15807,"Name":"","CurseForge":"ender-dragon-loot","Modrinth":""},{"Id":15808,"Name":"史诗地形 - 史诗地形(实验版) (Epic Terrain)","CurseForge":"epic-terrain","Modrinth":""},{"Id":15809,"Name":"","CurseForge":"oh-the-trees-youll-grow","Modrinth":"oh-the-trees-youll-grow"},{"Id":15810,"Name":"我们走过的生物群系 (Oh The Biomes We've Gone)","CurseForge":"oh-the-biomes-weve-gone","Modrinth":"oh-the-biomes-weve-gone"},{"Id":15811,"Name":"","CurseForge":"dblockbusterdisplays","Modrinth":"dblockbusterdisplays"},{"Id":15814,"Name":"","CurseForge":"","Modrinth":"waygl"},{"Id":15815,"Name":"","CurseForge":"no-sneaking-over-magma","Modrinth":"no-sneaking-over-magma"},{"Id":15816,"Name":"","CurseForge":"harmonia","Modrinth":"wasabiwhisper-harmonia"},{"Id":15817,"Name":"","CurseForge":"configurable-head-drop","Modrinth":"configurable-head-drop"},{"Id":15818,"Name":"C^3M 引擎 (Connectored Concurrent Chunk Management Engine)","CurseForge":"","Modrinth":"connectored-c2me-(c2me-fork-for-connector)"},{"Id":15819,"Name":"","CurseForge":"structure-expansion","Modrinth":"structure-expansion"},{"Id":15820,"Name":"","CurseForge":"armored-doggo","Modrinth":"armored-doggo"},{"Id":15821,"Name":"","CurseForge":"the-newest-goatman","Modrinth":""},{"Id":15822,"Name":"","CurseForge":"epic-mob-siege-nightmare","Modrinth":""},{"Id":15823,"Name":"","CurseForge":"jupiter","Modrinth":"jupiter"},{"Id":15824,"Name":"","CurseForge":"airport","Modrinth":""},{"Id":15825,"Name":"","CurseForge":"just-dandy","Modrinth":"just-dandy"},{"Id":15826,"Name":"","CurseForge":"","Modrinth":"uk-roads"},{"Id":15827,"Name":"","CurseForge":"my-totem-doll","Modrinth":"my_totem_doll"},{"Id":15828,"Name":"虚空动力 (Void Power)","CurseForge":"void-power-for-fabric","Modrinth":""},{"Id":15828,"Name":"虚空动力 (Void Power)","CurseForge":"voidpowermod","Modrinth":""},{"Id":15830,"Name":"","CurseForge":"dis-enchanting-table","Modrinth":"dis-enchanting-table"},{"Id":15833,"Name":"格雷信息显示拓展 (GT TOP Addition)","CurseForge":"gt-top-addition","Modrinth":""},{"Id":15834,"Name":"格雷蒸汽科技 (GT Steam Tech)","CurseForge":"gt-steam-tech","Modrinth":""},{"Id":15835,"Name":"","CurseForge":"simpleanimator","Modrinth":"simpleanimator"},{"Id":15836,"Name":"天津地铁 (Tianjin Metro)","CurseForge":"tianjin-metro","Modrinth":"tianjin-metro"},{"Id":15837,"Name":"模组化花盆 (Modular Flower Pots)","CurseForge":"modular-flower-pots","Modrinth":""},{"Id":15838,"Name":"结构变体:Floralis 兼容模组 (Repurposed Structures - Floralis Compat Mod)","CurseForge":"repurposed-structures-floralis-compat-mod","Modrinth":""},{"Id":15840,"Name":"","CurseForge":"balanced-shield","Modrinth":"balanced-shield"},{"Id":15841,"Name":"更多药水效果 (More Potion Effects)","CurseForge":"more-potion-effects","Modrinth":"more-potion-effects"},{"Id":15842,"Name":"","CurseForge":"jungle-villages","Modrinth":""},{"Id":15843,"Name":"","CurseForge":"truecherry","Modrinth":""},{"Id":15844,"Name":"","CurseForge":"","Modrinth":"revamped-trades"},{"Id":15845,"Name":"烟花苦力怕 (Creeper Fireworks Mod)","CurseForge":"creeper-fireworks","Modrinth":"creeper-fireworks-mod"},{"Id":15846,"Name":"","CurseForge":"","Modrinth":"word-overflow"},{"Id":15847,"Name":"","CurseForge":"chatnotify","Modrinth":"chatnotify"},{"Id":15848,"Name":"","CurseForge":"serverutilities-gtnh","Modrinth":""},{"Id":15849,"Name":"","CurseForge":"nbt-tool","Modrinth":""},{"Id":15855,"Name":"双马尾 (TwinTails)","CurseForge":"twintails","Modrinth":"twintails"},{"Id":15855,"Name":"双马尾 (TwinTails)","CurseForge":"twin-tails","Modrinth":""},{"Id":15856,"Name":"格雷无线科技 (GT Wireless)","CurseForge":"gt-wireless","Modrinth":""},{"Id":15857,"Name":"强制 Java21 (ForceJava21)","CurseForge":"forcejava21","Modrinth":"forcejava21"},{"Id":15858,"Name":"祝福 (Blessings)","CurseForge":"blessings","Modrinth":"blessings"},{"Id":15859,"Name":"","CurseForge":"crafted-core","Modrinth":"crafted-core"},{"Id":15860,"Name":"深渊召唤 (Call From The Depths)","CurseForge":"call-from-the-depths","Modrinth":""},{"Id":15860,"Name":"深渊召唤 (Call From The Depths) - 落后 更新不及时","CurseForge":"","Modrinth":"call-from-the-depths"},{"Id":15861,"Name":"四叶草Fabric版 (Clover Fabric)","CurseForge":"","Modrinth":"clover-fabric"},{"Id":15862,"Name":"冠军/强敌再续 (Champions Unofficial)","CurseForge":"champions-unofficial","Modrinth":"champions-unofficial"},{"Id":15863,"Name":"","CurseForge":"aetherworks-refracted","Modrinth":"aetherworks-refracted"},{"Id":15864,"Name":"幻梦:再颂 (Eidolon : Repraised)","CurseForge":"eidolon-repraised","Modrinth":"eidolonrepraised"},{"Id":15865,"Name":"机械动力:北极星 (Create: Northstar)","CurseForge":"create-northstar","Modrinth":"create-northstar"},{"Id":15866,"Name":"机械动力:模式蓝图 (Create: Pattern Schematics)","CurseForge":"create-pattern-schematics","Modrinth":"create-pattern-schematics"},{"Id":15867,"Name":"","CurseForge":"magic-merchant","Modrinth":""},{"Id":15868,"Name":"天境村庄 (Aether Villages)","CurseForge":"aether-villages","Modrinth":"aether-villages"},{"Id":15869,"Name":"","CurseForge":"tricky-trials","Modrinth":"tricky-trials-1.21"},{"Id":15872,"Name":"黑袍:新世界 (The Boys : New world)","CurseForge":"the-boys-minecraft","Modrinth":""},{"Id":15875,"Name":"更好的创造标签页 (Better Creative Mode Tabs/Better Creative Tabs)","CurseForge":"better-creative-tabs-forge-neoforge","Modrinth":""},{"Id":15876,"Name":"更多锻造模板 (MoreUpgrade)","CurseForge":"more-upgrade","Modrinth":"moreupgradetemplate"},{"Id":15879,"Name":"","CurseForge":"avaritia-unofficial","Modrinth":""},{"Id":15880,"Name":"群星 (Stellaris)","CurseForge":"stellaris","Modrinth":"stellaris"},{"Id":15881,"Name":"","CurseForge":"command-o-matic","Modrinth":""},{"Id":15883,"Name":"","CurseForge":"realistic-physics","Modrinth":"realistic-physics"},{"Id":15884,"Name":"自定义物品属性 (Custom Item Attributes)","CurseForge":"cia","Modrinth":"cia"},{"Id":15885,"Name":"","CurseForge":"item-wheel","Modrinth":"item-wheel"},{"Id":15886,"Name":"","CurseForge":"data-attributes-directors-cut","Modrinth":"data-attributes-directors-cut"},{"Id":15887,"Name":"","CurseForge":"better-walls","Modrinth":"betterwalls"},{"Id":15888,"Name":"","CurseForge":"the-pillager-legion","Modrinth":""},{"Id":15889,"Name":"","CurseForge":"the-frozen-kingdom","Modrinth":""},{"Id":15890,"Name":"","CurseForge":"stardew-fishing","Modrinth":"stardew-fishing"},{"Id":15891,"Name":"","CurseForge":"lets-do-a-jumpscare","Modrinth":"letsdoajumpscare"},{"Id":15894,"Name":"","CurseForge":"the-quackening","Modrinth":""},{"Id":15895,"Name":"","CurseForge":"better-trial-chambers","Modrinth":"better-trial-chambers"},{"Id":15896,"Name":"","CurseForge":"coldsweat-tfc","Modrinth":""},{"Id":15897,"Name":"","CurseForge":"deeper-nether-biomes","Modrinth":""},{"Id":15898,"Name":"","CurseForge":"adventurers-beyond","Modrinth":"adventurers-beyond"},{"Id":15899,"Name":"","CurseForge":"mss-moogs-soaring-structures","Modrinth":"mss-moogs-soaring-structures"},{"Id":15900,"Name":"哥布林的统治 (Goblins Tyranny)","CurseForge":"goblins-tyranny","Modrinth":"goblins-tyranny"},{"Id":15901,"Name":"没有32768限制 (No 32768 Limit)","CurseForge":"no-32768-limit","Modrinth":"no-32768-limit"},{"Id":15906,"Name":"空投供应:重生 (ReAirdrop Supply)","CurseForge":"reairdrop-supply","Modrinth":"reairdrop-supply"},{"Id":15907,"Name":"MC宝 (MineQuery)","CurseForge":"","Modrinth":"minequery"},{"Id":15907,"Name":"MC宝 (MineQuery)","CurseForge":"","Modrinth":"minequery-legacy"},{"Id":15909,"Name":"简单动力 (Simply Create Model)","CurseForge":"","Modrinth":"simply-create-model-mod"},{"Id":15910,"Name":"青丘辞 (Mountain's Poem)","CurseForge":"mountains-poem","Modrinth":"mountains-poem"},{"Id":15911,"Name":"游戏时长计数器:重生 (Playtime Reborn)","CurseForge":"","Modrinth":"playtime-reborn"},{"Id":15912,"Name":"烟火凡人心 (Flavor Immersed Daily)","CurseForge":"","Modrinth":"flavorimmerseddaily"},{"Id":15913,"Name":"在月亮之间:药学拓展 (Moon Between : medicine)","CurseForge":"moon-between-medicine","Modrinth":""},{"Id":15914,"Name":"可制作的锁链甲:重生 (Craftable Chainmail Reborn)","CurseForge":"craftable-chainmail-reborn","Modrinth":""},{"Id":15916,"Name":"神秘时代6修复 (Thaumcraft Fix)","CurseForge":"thaumcraftfix","Modrinth":""},{"Id":15918,"Name":"扩展工业化 (Extended Industrialization)","CurseForge":"extended-industrialization","Modrinth":"extended-industrialization"},{"Id":15919,"Name":"","CurseForge":"small-tetra-additions","Modrinth":""},{"Id":15920,"Name":"家居装饰 ([Let's Do] Furniture)","CurseForge":"lets-do-furniture","Modrinth":"lets-do-furniture"},{"Id":15921,"Name":"","CurseForge":"tesseract-api-neoforge","Modrinth":"tesseract-api"},{"Id":15922,"Name":"","CurseForge":"tickrate-api","Modrinth":""},{"Id":15923,"Name":"","CurseForge":"spectrelib","Modrinth":""},{"Id":15925,"Name":"","CurseForge":"tfc-artisanal","Modrinth":""},{"Id":15927,"Name":"现实时间","CurseForge":"","Modrinth":"the-real-time"},{"Id":15929,"Name":"DragonBlockC 与 OptiFine 的兼容修复 (DragonOptiFix)","CurseForge":"dragonoptifix","Modrinth":""},{"Id":15930,"Name":"轻松建造 (Effortless Structure)","CurseForge":"effortless","Modrinth":"effortless"},{"Id":15931,"Name":"","CurseForge":"","Modrinth":"barriers-dont-block-rain-1.21"},{"Id":15933,"Name":"","CurseForge":"","Modrinth":"nochathide"},{"Id":15934,"Name":"","CurseForge":"inventory-tweaks-extrafoamy","Modrinth":""},{"Id":15935,"Name":"","CurseForge":"automatic-infinite-elytra","Modrinth":"automatic-infinite-elytra"},{"Id":15936,"Name":"","CurseForge":"re-translator","Modrinth":"re-translator"},{"Id":15937,"Name":"","CurseForge":"yank-it-out","Modrinth":"yank-it-out"},{"Id":15938,"Name":"","CurseForge":"vintage-kubejs","Modrinth":"vintage-kubejs"},{"Id":15939,"Name":"","CurseForge":"emi-professions-emip","Modrinth":"emi-professions-(emip)"},{"Id":15940,"Name":"","CurseForge":"improved-grindstone","Modrinth":""},{"Id":15941,"Name":"","CurseForge":"","Modrinth":"starlight-legacy"},{"Id":15942,"Name":"","CurseForge":"themetip","Modrinth":"themetip"},{"Id":15943,"Name":"","CurseForge":"woodwalkers","Modrinth":"woodwalkers"},{"Id":15944,"Name":"","CurseForge":"peaceful-moon","Modrinth":"peaceful-moon"},{"Id":15945,"Name":"","CurseForge":"to-tweaks-irons-spells","Modrinth":"to-tweaks-irons-spells"},{"Id":15946,"Name":"","CurseForge":"horde-moon","Modrinth":"horde-moon"},{"Id":15948,"Name":"","CurseForge":"laser-mod-2","Modrinth":""},{"Id":15949,"Name":"","CurseForge":"mekanism-lasers","Modrinth":"mekanism-lasers"},{"Id":15950,"Name":"","CurseForge":"wizards-reborn","Modrinth":"wizards-reborn"},{"Id":15951,"Name":"工匠村民 (Tinker Villager)","CurseForge":"tinkervillager","Modrinth":""},{"Id":15952,"Name":"","CurseForge":"customnpc-contentback","Modrinth":"cnpc-items"},{"Id":15953,"Name":"","CurseForge":"debug-stick","Modrinth":""},{"Id":15954,"Name":"","CurseForge":"useful-bat","Modrinth":""},{"Id":15955,"Name":"","CurseForge":"runic-inscription","Modrinth":""},{"Id":15956,"Name":"","CurseForge":"bamboo-stuff","Modrinth":"bamboo-stuff"},{"Id":15957,"Name":"","CurseForge":"","Modrinth":"moai-update"},{"Id":15958,"Name":"","CurseForge":"junk-drawers","Modrinth":"junk-drawers"},{"Id":15959,"Name":"","CurseForge":"playerex-directors-cut","Modrinth":"playerex-directors-cut"},{"Id":15960,"Name":"摇曳露营 ([Let's Do] Camping)","CurseForge":"lets-do-camping","Modrinth":"lets-do-camping"},{"Id":15961,"Name":"启动时间非官方版 (StartupTime Unoffical)","CurseForge":"","Modrinth":"startuptime-unoffical"},{"Id":15962,"Name":"","CurseForge":"serverconfig-updater","Modrinth":""},{"Id":15963,"Name":"","CurseForge":"","Modrinth":"epiczoomer"},{"Id":15965,"Name":"","CurseForge":"agenta","Modrinth":"agenta"},{"Id":15967,"Name":"","CurseForge":"more-beehive-variants","Modrinth":"more-beehive-variants"},{"Id":15969,"Name":"","CurseForge":"persistent-creative-inventory","Modrinth":"persistent-creative-inventory"},{"Id":15970,"Name":"野性自然 ([Let's Do] WilderNature)","CurseForge":"lets-do-wildernature","Modrinth":"lets-do-wildernature"},{"Id":15971,"Name":"","CurseForge":"","Modrinth":"quitconfirm"},{"Id":15972,"Name":"","CurseForge":"","Modrinth":"ressourcepackcommand"},{"Id":15974,"Name":"钕:非官方版 (Neodymium Unofficial)","CurseForge":"neodymium-unofficial","Modrinth":"nd1710"},{"Id":15975,"Name":"碳 (Carbon)","CurseForge":"","Modrinth":"carbon-performance"},{"Id":15976,"Name":"","CurseForge":"coloredglowlib","Modrinth":"coloredglowlib"},{"Id":15977,"Name":"更好的雪覆盖 (Better Snow Coverage)","CurseForge":"","Modrinth":"better-snow-coverage"},{"Id":15979,"Name":"交易附魔显示 (Trade Enchantment Display)","CurseForge":"trade-enchantment-display","Modrinth":"trade-enchantment-display"},{"Id":15980,"Name":"永恒星光 (Eternal Starlight)","CurseForge":"eternal-starlight","Modrinth":"eternal-starlight"},{"Id":15981,"Name":"星辉补丁 (Astral Patch)","CurseForge":"astral-patch","Modrinth":""},{"Id":15982,"Name":"","CurseForge":"fast-scrolling-fabric","Modrinth":"fast-scrolling"},{"Id":15982,"Name":"","CurseForge":"fast-scrolling","Modrinth":""},{"Id":15983,"Name":"","CurseForge":"galoblender-updated","Modrinth":""},{"Id":15984,"Name":"","CurseForge":"more-tetra-materials","Modrinth":"more-tetra-materials"},{"Id":15985,"Name":"","CurseForge":"ageing-mobs","Modrinth":"ageing-mobs"},{"Id":15986,"Name":"","CurseForge":"warm-ice-block","Modrinth":""},{"Id":15987,"Name":"","CurseForge":"smoke-signals","Modrinth":"smoke-signals"},{"Id":15988,"Name":"","CurseForge":"wunderreich","Modrinth":"wunderreich"},{"Id":15990,"Name":"","CurseForge":"ames-mobs-renew","Modrinth":""},{"Id":15991,"Name":"","CurseForge":"refreshdisplaylists","Modrinth":""},{"Id":15992,"Name":"","CurseForge":"vulkanmod-android-libs","Modrinth":""},{"Id":15993,"Name":"","CurseForge":"","Modrinth":"black-bar-concealer"},{"Id":15994,"Name":"","CurseForge":"building-shift","Modrinth":"building-shift"},{"Id":15995,"Name":"","CurseForge":"mob-ai-tweaks","Modrinth":"mob-ai-tweaks"},{"Id":15996,"Name":"","CurseForge":"the-masquerade-illager-boss","Modrinth":"the-masquerade-(illager-boss)"},{"Id":15997,"Name":"","CurseForge":"better-armory-x","Modrinth":""},{"Id":15998,"Name":"","CurseForge":"sweetys-horse-armor-tweaks","Modrinth":"sweetys-horse-armor-tweaks"},{"Id":15999,"Name":"","CurseForge":"fired-pots","Modrinth":"fired-pots"},{"Id":16000,"Name":"驻月夜下 (Under the Moon)","CurseForge":"under-the-moon","Modrinth":"under-the-moon"},{"Id":16001,"Name":"","CurseForge":"coffeegs-colorful-world","Modrinth":""},{"Id":16002,"Name":"jeb_羊毛 (jeb_ Wool)","CurseForge":"jeb_-wool","Modrinth":"jeb_-wool"},{"Id":16003,"Name":"","CurseForge":"illage-and-spillage-finally-ported","Modrinth":"illage-and-spillage-respillaged"},{"Id":16004,"Name":"更多符文 (More Runes)","CurseForge":"more-runes-more-magic-series","Modrinth":"more-runes-more-magic-series"},{"Id":16005,"Name":"","CurseForge":"battlemages-more-magic-series","Modrinth":"battlemages-more-magic-series"},{"Id":16006,"Name":"","CurseForge":"eidolon-rebrewed-data-recipes","Modrinth":""},{"Id":16007,"Name":"","CurseForge":"elemental-metals-magical-metallurgy-series","Modrinth":"fallen-paladins-and-priests"},{"Id":16008,"Name":"","CurseForge":"dragonsteel-more-magic-series","Modrinth":"dragonsteel-more-magic-series"},{"Id":16009,"Name":"","CurseForge":"dragon-scale","Modrinth":"dragon-scale"},{"Id":16010,"Name":"","CurseForge":"scholar","Modrinth":"scholar"},{"Id":16011,"Name":"","CurseForge":"","Modrinth":"elytraswimfix"},{"Id":16012,"Name":"","CurseForge":"tacz-bullet-proof-enchant-add-on","Modrinth":"tacz-bullet-proof-enchant-add-on"},{"Id":16012,"Name":"","CurseForge":"tacz-bullet-proof-enchant-fabric-add-on","Modrinth":""},{"Id":16013,"Name":"","CurseForge":"no-screen-bobbing","Modrinth":"viewbobbingmod"},{"Id":16014,"Name":"","CurseForge":"more-spell-attributes-more-magic-series","Modrinth":"more-spell-attributes-more-magic-series"},{"Id":16015,"Name":"","CurseForge":"minos-particle-presets","Modrinth":""},{"Id":16016,"Name":"","CurseForge":"somewhat-hardcore-fabric-forge","Modrinth":"you-die-you-lose-a-heart"},{"Id":16017,"Name":"","CurseForge":"","Modrinth":"blurred-window"},{"Id":16018,"Name":"","CurseForge":"player-list-heads","Modrinth":""},{"Id":16019,"Name":"","CurseForge":"","Modrinth":"antighost-fork"},{"Id":16020,"Name":"","CurseForge":"environs-mod","Modrinth":""},{"Id":16023,"Name":"","CurseForge":"unique-magic","Modrinth":""},{"Id":16026,"Name":"史诗弹射物反射","CurseForge":"epic-projectile-reflection","Modrinth":""},{"Id":16027,"Name":"","CurseForge":"zombie-island","Modrinth":""},{"Id":16028,"Name":"","CurseForge":"stratagems","Modrinth":"stratagems"},{"Id":16029,"Name":"","CurseForge":"solar-hardcore","Modrinth":"solar-hardcore"},{"Id":16030,"Name":"","CurseForge":"i-hate-flesh-reborn-ihfr","Modrinth":"i-hate-flesh-reborn-(ihfr)"},{"Id":16032,"Name":"粒子上限解除 (Particle Unlimit)","CurseForge":"","Modrinth":"particle-unlimit"},{"Id":16033,"Name":"","CurseForge":"aaa-particles","Modrinth":"aaa-particles"},{"Id":16034,"Name":"","CurseForge":"","Modrinth":"anno"},{"Id":16035,"Name":"","CurseForge":"compass3d","Modrinth":"compass3d"},{"Id":16036,"Name":"","CurseForge":"","Modrinth":"clockin"},{"Id":16037,"Name":"连锁挖掘重制版 (Diggus Maximus Reborn)","CurseForge":"diggus-maximus-reborn","Modrinth":"diggus-maximus-reborn"},{"Id":16038,"Name":"","CurseForge":"satisfying-buttons","Modrinth":"satisfying-buttons"},{"Id":16039,"Name":"","CurseForge":"item-on-chest-fabric","Modrinth":"item-on-chest"},{"Id":16040,"Name":"","CurseForge":"industrialreborn","Modrinth":"industrialreborn"},{"Id":16041,"Name":"HBM的核科技航天 (HBM's Nuclear Tech Mod Space)","CurseForge":"ntm-space","Modrinth":"ntmspace"},{"Id":16043,"Name":"","CurseForge":"several-food-craft","Modrinth":"several-food-craft"},{"Id":16044,"Name":"","CurseForge":"cakes-cosmetics","Modrinth":"cakes-cosmetics"},{"Id":16045,"Name":"","CurseForge":"boks-butterflies","Modrinth":"boks-butterflies"},{"Id":16046,"Name":"","CurseForge":"immersive-winds","Modrinth":"immersive-winds"},{"Id":16047,"Name":"","CurseForge":"reef-redux","Modrinth":"reef-redux"},{"Id":16048,"Name":"","CurseForge":"simple-quiver","Modrinth":"simple-quiver"},{"Id":16049,"Name":"","CurseForge":"too-many-paintings-forge-fabric","Modrinth":"too-many-paintings"},{"Id":16050,"Name":"","CurseForge":"building-but-better","Modrinth":"building-but-better"},{"Id":16051,"Name":"","CurseForge":"exchange-fuels","Modrinth":"exchange-fuels"},{"Id":16052,"Name":"","CurseForge":"more-craftings-of-runes","Modrinth":"more-craftings-of-runes"},{"Id":16053,"Name":"","CurseForge":"mega-evolve","Modrinth":""},{"Id":16054,"Name":"","CurseForge":"pixeltweaks","Modrinth":"pixeltweaks"},{"Id":16055,"Name":"","CurseForge":"hrbs-drills","Modrinth":"hrbs-drills"},{"Id":16056,"Name":"禁书目录 (Index-Librorum-Prohibitorum)","CurseForge":"index-librorum-prohibitorum","Modrinth":"index"},{"Id":16057,"Name":"","CurseForge":"bft","Modrinth":""},{"Id":16058,"Name":"","CurseForge":"heartbond","Modrinth":"heartbond"},{"Id":16059,"Name":"","CurseForge":"breakerplacer","Modrinth":"breakerplacer"},{"Id":16060,"Name":"更多梯子 (Iron Ladders)","CurseForge":"iron-ladders","Modrinth":"iron-ladders"},{"Id":16061,"Name":"Crumbs 的深板岩按钮 (Crumbs' Deepslate Button)","CurseForge":"crumbs-deepslate-button","Modrinth":""},{"Id":16063,"Name":"","CurseForge":"cl0uds-paxels","Modrinth":""},{"Id":16064,"Name":"","CurseForge":"unique-weaponry","Modrinth":"unique-weaponry"},{"Id":16066,"Name":"","CurseForge":"boss-keys","Modrinth":""},{"Id":16068,"Name":"","CurseForge":"mace-variants","Modrinth":""},{"Id":16069,"Name":"","CurseForge":"shortswords","Modrinth":"new-short-swords"},{"Id":16070,"Name":"","CurseForge":"bbs-mod","Modrinth":"bbs-mod"},{"Id":16071,"Name":"","CurseForge":"monocle","Modrinth":"monocle-iris"},{"Id":16072,"Name":"","CurseForge":"move-ui","Modrinth":"move-ui"},{"Id":16073,"Name":"","CurseForge":"terrafly","Modrinth":""},{"Id":16074,"Name":"","CurseForge":"achievements-mod-200","Modrinth":"mysticrift-achievements"},{"Id":16076,"Name":"","CurseForge":"saturation-plus","Modrinth":"saturation-plus"},{"Id":16077,"Name":"","CurseForge":"mod-and-resource-pack-checker-abras-additions","Modrinth":""},{"Id":16078,"Name":"","CurseForge":"createstuffadditions-fix","Modrinth":""},{"Id":16079,"Name":"","CurseForge":"warden-slayer-enchantment","Modrinth":"wardenslayerenchantment"},{"Id":16080,"Name":"","CurseForge":"mods-optimizer","Modrinth":"mods-optimizer"},{"Id":16081,"Name":"玩家高亮:重置版 (Glowy Players Renewed)","CurseForge":"glowy-players-renewed","Modrinth":"glowy-players-renewed"},{"Id":16083,"Name":"","CurseForge":"epic-fight-kenjis-combat-forms","Modrinth":""},{"Id":16084,"Name":"通用机械:解放 (Mekanism Unleashed)","CurseForge":"mekanism-unleashed","Modrinth":"mekanism-unleashed"},{"Id":16086,"Name":"简易蛋糕 (Easy Cake)","CurseForge":"easy-cake","Modrinth":""},{"Id":16087,"Name":"","CurseForge":"weave-craft","Modrinth":""},{"Id":16088,"Name":"更多农耕 (MoreFarming)","CurseForge":"morefarming","Modrinth":"morefarming"},{"Id":16089,"Name":"","CurseForge":"iron-bushes","Modrinth":""},{"Id":16090,"Name":"林业:社区版 (Forestry: Community Edition)","CurseForge":"forestry-community-edition","Modrinth":"forestry-community-edition"},{"Id":16092,"Name":"","CurseForge":"specified-spawning","Modrinth":""},{"Id":16093,"Name":"","CurseForge":"kubejs-create-for-fabric-1-20-1","Modrinth":""},{"Id":16094,"Name":"","CurseForge":"portable-spawners","Modrinth":""},{"Id":16095,"Name":"长期熟时/求闻时记/更好的时间 (BetterTime)","CurseForge":"bettertime","Modrinth":"better_time"},{"Id":16100,"Name":"沉浸农艺 ([Let's Do] Farm & Charm)","CurseForge":"lets-do-farm-charm","Modrinth":"lets-do-farm-charm"},{"Id":16102,"Name":"","CurseForge":"hunters-moon","Modrinth":"hunters-moon"},{"Id":16103,"Name":"","CurseForge":"miners-moon","Modrinth":"miners-moon"},{"Id":16104,"Name":"","CurseForge":"ender-moon","Modrinth":"ender-moon"},{"Id":16105,"Name":"","CurseForge":"extreme-horde-moon","Modrinth":"extreme-horde-moon"},{"Id":16106,"Name":"","CurseForge":"spider-moon","Modrinth":"spider-moon"},{"Id":16107,"Name":"","CurseForge":"","Modrinth":"breed-parrots-with-seeds"},{"Id":16108,"Name":"","CurseForge":"persistent-parrots","Modrinth":"persistent-parrots"},{"Id":16109,"Name":"","CurseForge":"","Modrinth":"ultimate-autototem"},{"Id":16110,"Name":"","CurseForge":"anti-mob-cheese","Modrinth":"anti-mob-farm"},{"Id":16111,"Name":"","CurseForge":"bad-horse-fix","Modrinth":"bad-horse-fix"},{"Id":16112,"Name":"","CurseForge":"vanilla-nei-fix","Modrinth":""},{"Id":16114,"Name":"","CurseForge":"fconfiglib","Modrinth":"fconfiglib"},{"Id":16115,"Name":"","CurseForge":"satin-free-wakes","Modrinth":"satin-free-wakes"},{"Id":16116,"Name":"Sensei的珍藏 (Blue Archive Paintings)","CurseForge":"blue-archive-paintings","Modrinth":""},{"Id":16118,"Name":"","CurseForge":"lunar-nether","Modrinth":""},{"Id":16119,"Name":"","CurseForge":"yeehaw-towns","Modrinth":"yeehaw-towns"},{"Id":16120,"Name":"","CurseForge":"","Modrinth":"copperrails"},{"Id":16122,"Name":"","CurseForge":"mana-unification","Modrinth":"mana-unification"},{"Id":16123,"Name":"","CurseForge":"immersive-energistics","Modrinth":"immersive-energistics"},{"Id":16124,"Name":"","CurseForge":"specialised-cells","Modrinth":"specialised-cells"},{"Id":16125,"Name":"","CurseForge":"random-chunks","Modrinth":"random-chunks"},{"Id":16126,"Name":"","CurseForge":"unique-commands","Modrinth":"unique-commands"},{"Id":16129,"Name":"","CurseForge":"flood","Modrinth":"flood"},{"Id":16130,"Name":"","CurseForge":"block-prints","Modrinth":""},{"Id":16133,"Name":"法有所归 (Just Leveling x IronSpell)","CurseForge":"justleveling-x-ironspell","Modrinth":"justleveling-x-ironspell"},{"Id":16135,"Name":"抱抱我! (HugMe!)","CurseForge":"hugme","Modrinth":"hugme"},{"Id":16137,"Name":"","CurseForge":"coins-ll","Modrinth":"coins!"},{"Id":16138,"Name":"","CurseForge":"purediscstrickytrials","Modrinth":"purediscstrickytrials"},{"Id":16139,"Name":"","CurseForge":"tinkers-in-the-sky","Modrinth":""},{"Id":16140,"Name":"机械动力:坦克防御 (Create Tank Defenses)","CurseForge":"create-tank-defenses","Modrinth":"create-tank-defenses"},{"Id":16141,"Name":"","CurseForge":"potato-update","Modrinth":"potato-update-backport"},{"Id":16142,"Name":"","CurseForge":"twilight-forest-fixes","Modrinth":"twilight-forest-fixes"},{"Id":16143,"Name":"","CurseForge":"dietary-statistics","Modrinth":""},{"Id":16144,"Name":"","CurseForge":"day-zombies-rebooted","Modrinth":""},{"Id":16145,"Name":"","CurseForge":"viewboboptions","Modrinth":"viewboboptions"},{"Id":16146,"Name":"","CurseForge":"ender-pearl-anti-disappear","Modrinth":"ender-pearl-ad"},{"Id":16148,"Name":"","CurseForge":"create-dynamic-lights","Modrinth":"create-dynamic-lights"},{"Id":16149,"Name":"","CurseForge":"decorative-tin","Modrinth":""},{"Id":16150,"Name":"","CurseForge":"blended-compat","Modrinth":"blended-compat"},{"Id":16151,"Name":"保持简单放置 (Hold Easy Place)","CurseForge":"hold-easy-place","Modrinth":"hold-easy-place"},{"Id":16155,"Name":"无尽贪婪·伪附属 (EndlessCompat)","CurseForge":"endlesscompat","Modrinth":""},{"Id":16156,"Name":"斯巴达之冰与火-雷电版 (Spartan and Fire - Lightning Edition)","CurseForge":"spartan-and-fire-lightning-edition","Modrinth":""},{"Id":16157,"Name":"暮色森林 - Deforestation 版 (The Twilight Forest - Deforestation Edition)","CurseForge":"the-twilight-forest-deforestation-edition","Modrinth":""},{"Id":16159,"Name":"","CurseForge":"minieffects-legacy-extended-life","Modrinth":""},{"Id":16160,"Name":"","CurseForge":"call-to-battle-ww2-vehicles-addon","Modrinth":""},{"Id":16161,"Name":"","CurseForge":"thaumic_funnel","Modrinth":"thaumic_funnel"},{"Id":16162,"Name":"","CurseForge":"ynet-an-xnet-fork","Modrinth":""},{"Id":16163,"Name":"","CurseForge":"rosatech","Modrinth":""},{"Id":16164,"Name":"","CurseForge":"nutrition-gtceu","Modrinth":"nutrition-gtceu"},{"Id":16165,"Name":"营养学非官方延续版 (Nutrition Unofficial Extended Life)","CurseForge":"nutrition-unofficial-extended-life","Modrinth":"nutrition-unofficial-extended-life"},{"Id":16166,"Name":"魔金微调 (ManaMetalMod Tweaks)","CurseForge":"manametalmod-tweaks-m3-t","Modrinth":"manametalmod-tweaks"},{"Id":16167,"Name":"合成树 (AE2: Crafting Tree)","CurseForge":"ae2-crafting-tree","Modrinth":""},{"Id":16168,"Name":"客户端自动门 (Client Automatic Doors)","CurseForge":"client-automatic-doors","Modrinth":"client_automatic_doors"},{"Id":16170,"Name":"","CurseForge":"","Modrinth":"chais-build-tools"},{"Id":16171,"Name":"","CurseForge":"forge-relocation","Modrinth":""},{"Id":16172,"Name":"","CurseForge":"forge-relocation-fmp-plugin","Modrinth":""},{"Id":16173,"Name":"","CurseForge":"","Modrinth":"fish-lib"},{"Id":16174,"Name":"","CurseForge":"forgedapi-fork","Modrinth":"forgedapi-fork"},{"Id":16175,"Name":"","CurseForge":"prioninfection","Modrinth":""},{"Id":16176,"Name":"暗影怪物 (Dark Shadow Monster)","CurseForge":"dark-shadow-monster","Modrinth":"dark-shadow-monster"},{"Id":16177,"Name":"","CurseForge":"the-mi-alliance-invasion","Modrinth":""},{"Id":16178,"Name":"","CurseForge":"fancy-health-bar","Modrinth":"fancy-health-bar"},{"Id":16179,"Name":"","CurseForge":"","Modrinth":"no-join-leave-messages"},{"Id":16180,"Name":"","CurseForge":"data-trades","Modrinth":"data-trades"},{"Id":16182,"Name":"","CurseForge":"draconic-alchemy","Modrinth":""},{"Id":16183,"Name":"","CurseForge":"fancymenu-animation-maker-tool","Modrinth":""},{"Id":16184,"Name":"","CurseForge":"jmx","Modrinth":"imx"},{"Id":16185,"Name":"","CurseForge":"","Modrinth":"elytra-rebalance"},{"Id":16186,"Name":"可染色潜影贝 (Another Dyeable Shulkers)","CurseForge":"another-dyeable-shulkers","Modrinth":"another-dyeable-shulkers"},{"Id":16188,"Name":"","CurseForge":"thatskyinteractions","Modrinth":"thatskyinteractions"},{"Id":16189,"Name":"匠魂移植 (Tinker Transplant)","CurseForge":"","Modrinth":"tinker-transplant"},{"Id":16190,"Name":"Chisato的更多红石 (Chisato's More Redstone)","CurseForge":"chisatos-more-redstone","Modrinth":"chisatos-more-redstone"},{"Id":16191,"Name":"","CurseForge":"assetmover","Modrinth":"assetmover"},{"Id":16192,"Name":"","CurseForge":"duclib","Modrinth":"duclib"},{"Id":16194,"Name":"矿石作物 (OreCrop)","CurseForge":"orecrop","Modrinth":""},{"Id":16195,"Name":"","CurseForge":"","Modrinth":"vinurl"},{"Id":16196,"Name":"","CurseForge":"nutritionz","Modrinth":"nutritionz"},{"Id":16197,"Name":"","CurseForge":"xxl-packets","Modrinth":"xxl-packets"},{"Id":16198,"Name":"","CurseForge":"uncharted","Modrinth":""},{"Id":16199,"Name":"","CurseForge":"mcfetch","Modrinth":"mcfetch"},{"Id":16200,"Name":"","CurseForge":"reignited-hud","Modrinth":"reignited-hud"},{"Id":16201,"Name":"","CurseForge":"more-crafter-variants","Modrinth":"more-crafter-variants"},{"Id":16202,"Name":"","CurseForge":"sharingan-addon-ahznbs-naruto-mod","Modrinth":""},{"Id":16203,"Name":"机械动力:TaCZ自动化 (Create: TaCZ Automation)","CurseForge":"create-tacz-automation","Modrinth":"create-tacz-automation"},{"Id":16204,"Name":"","CurseForge":"tacz-plus-timeless-and-classics-feature-addon","Modrinth":"tacz-plus"},{"Id":16205,"Name":"","CurseForge":"fibers-guns-pack-for-tacz","Modrinth":""},{"Id":16206,"Name":"","CurseForge":"","Modrinth":"splinecart"},{"Id":16207,"Name":"","CurseForge":"beams","Modrinth":"beams"},{"Id":16208,"Name":"","CurseForge":"discarnate","Modrinth":"discarnate"},{"Id":16209,"Name":"","CurseForge":"","Modrinth":"fishmc"},{"Id":16210,"Name":"","CurseForge":"mob-armor-trims","Modrinth":"naturally-trimmed"},{"Id":16211,"Name":"","CurseForge":"bubbles-a-baubles-fork","Modrinth":""},{"Id":16212,"Name":"","CurseForge":"arst-motion-blur","Modrinth":"arst-motion-blur"},{"Id":16213,"Name":"钯 (Palladium)","CurseForge":"","Modrinth":"mpalladium"},{"Id":16214,"Name":"","CurseForge":"firehud","Modrinth":"firehud"},{"Id":16215,"Name":"","CurseForge":"","Modrinth":"elytra-autopilot"},{"Id":16217,"Name":"","CurseForge":"personal-worlds","Modrinth":"personal-worlds"},{"Id":16218,"Name":"","CurseForge":"pearltickets","Modrinth":""},{"Id":16219,"Name":"","CurseForge":"cobweb","Modrinth":"cobweb"},{"Id":16220,"Name":"","CurseForge":"progression","Modrinth":""},{"Id":16221,"Name":"停!循环型命令方块:重生 (Stop Repeating Command Block Reborn)","CurseForge":"stop-repeating-command-block-reborn","Modrinth":"stop-repeating-command-block-reborn"},{"Id":16222,"Name":"予以刀振/格挡! (Parry)","CurseForge":"parry-us","Modrinth":"parry!"},{"Id":16224,"Name":"油炸乐事 (Frycook's Delight)","CurseForge":"frycooks-delight","Modrinth":"frycooks-delight"},{"Id":16225,"Name":"高级AE (AdvancedAE)","CurseForge":"advancedae","Modrinth":"advancedae"},{"Id":16227,"Name":"更好的管道:流体 (Pretty Pipes: Fluids)","CurseForge":"pretty-pipes-fluids","Modrinth":"pretty-pipes-fluids"},{"Id":16228,"Name":"","CurseForge":"webstone","Modrinth":"webstone"},{"Id":16229,"Name":"","CurseForge":"rotatable-blocks","Modrinth":""},{"Id":16230,"Name":"宝藏海 (Treasure Seas)","CurseForge":"treasure-seas","Modrinth":"treasure-seas"},{"Id":16231,"Name":"","CurseForge":"ambidextrous","Modrinth":""},{"Id":16232,"Name":"","CurseForge":"","Modrinth":"always-sprint"},{"Id":16233,"Name":"茶风·纪事:追叙 (Tea the Story : Recount)","CurseForge":"tea-the-story-recount","Modrinth":""},{"Id":16234,"Name":"经验挑战 (XP Challenge)","CurseForge":"xp-challenge","Modrinth":"xp-challenge"},{"Id":16235,"Name":"","CurseForge":"","Modrinth":"styled-renaming"},{"Id":16236,"Name":"","CurseForge":"simple-block-overlay","Modrinth":"simple-block-overlay"},{"Id":16237,"Name":"","CurseForge":"","Modrinth":"helpfull-action-bar"},{"Id":16238,"Name":"","CurseForge":"repeatable-trial-vaults","Modrinth":"repeatable-trial-vaults"},{"Id":16239,"Name":"","CurseForge":"fast-async-world-save-forge-fabric","Modrinth":""},{"Id":16240,"Name":"","CurseForge":"","Modrinth":"chat-magic"},{"Id":16242,"Name":"无限鞘翅 (UnlimitedElytra)","CurseForge":"unlimitedelytra","Modrinth":"unlimitedelytra"},{"Id":16243,"Name":"","CurseForge":"recrafted-creatures","Modrinth":""},{"Id":16244,"Name":"合成配方研究 (RecipeResearch)","CurseForge":"reciperesearch","Modrinth":""},{"Id":16245,"Name":"神秘再饰 (Thaumon)","CurseForge":"thaumon","Modrinth":"thaumon"},{"Id":16246,"Name":"机械动力火器补丁 (Create Firearms Patch(kinetic pixel))","CurseForge":"create-firearms-patch","Modrinth":""},{"Id":16247,"Name":"","CurseForge":"create-eureka","Modrinth":""},{"Id":16248,"Name":"","CurseForge":"forsaken-corpses","Modrinth":"forsaken-corpses"},{"Id":16249,"Name":"","CurseForge":"cat-variant-eggs","Modrinth":"cat-variant-eggs"},{"Id":16250,"Name":"更加多彩的世界 (More Colorful)","CurseForge":"more-colorful","Modrinth":"morecolorful"},{"Id":16251,"Name":"","CurseForge":"void-island-control-2-0","Modrinth":""},{"Id":16252,"Name":"","CurseForge":"fishing-rod-fix","Modrinth":"fishing-rod-fix"},{"Id":16253,"Name":"","CurseForge":"","Modrinth":"additionalentityattributes"},{"Id":16254,"Name":"","CurseForge":"","Modrinth":"additionalentityattributes-forge"},{"Id":16255,"Name":"","CurseForge":"kubejs-sanity","Modrinth":""},{"Id":16257,"Name":"旅行地图:网络地图 (JourneyMap Web Map)","CurseForge":"journeymap-web-map","Modrinth":"journeymap-web-map"},{"Id":16258,"Name":"","CurseForge":"rain-should-extinguish-campfires","Modrinth":"rain-should-extinguish-campfires"},{"Id":16259,"Name":"","CurseForge":"","Modrinth":"mob-death-sounds"},{"Id":16260,"Name":"","CurseForge":"gauntlets","Modrinth":"gauntlets"},{"Id":16263,"Name":"扔! (Thrown)","CurseForge":"thrown","Modrinth":"thrown"},{"Id":16264,"Name":"","CurseForge":"tacz-npcs-also-vpb","Modrinth":"tacz-npcs"},{"Id":16265,"Name":"逃逸:无适应性发生器 (Scape and Run Parasites Addon: Immalleable Generator)","CurseForge":"","Modrinth":"scape-and-run-parasites-addon-immalleable-generator"},{"Id":16269,"Name":"","CurseForge":"hotdog-delight","Modrinth":""},{"Id":16270,"Name":"玉食俱馩 ([Let's Do Addon] Corn Expansion)","CurseForge":"lets-do-addon-corn-expansion","Modrinth":"lets-do-addon-corn-expansion"},{"Id":16272,"Name":"","CurseForge":"","Modrinth":"client-maps"},{"Id":16273,"Name":"","CurseForge":"dragon-gear-renewed","Modrinth":""},{"Id":16274,"Name":"","CurseForge":"","Modrinth":"archers-plushies"},{"Id":16275,"Name":"","CurseForge":"","Modrinth":"hephaestus-expansion"},{"Id":16276,"Name":"","CurseForge":"create-structures-arise","Modrinth":"create-structures-arise"},{"Id":16277,"Name":"","CurseForge":"kilt","Modrinth":"kilt"},{"Id":16278,"Name":"","CurseForge":"gregtech-extended-chemistry-extended","Modrinth":""},{"Id":16279,"Name":"","CurseForge":"ulv-covers-modern","Modrinth":""},{"Id":16280,"Name":"","CurseForge":"farmers-structures","Modrinth":""},{"Id":16282,"Name":"矿车速度显示 (MinecartSpeedDisplay)","CurseForge":"","Modrinth":"minecartspeeddisplay"},{"Id":16283,"Name":"","CurseForge":"crossstitch","Modrinth":"crossstitch"},{"Id":16285,"Name":"自由相机API (FreeCameraAPI)","CurseForge":"free-camera-api","Modrinth":"free-camera-api"},{"Id":16286,"Name":"","CurseForge":"","Modrinth":"flashback"},{"Id":16287,"Name":"血魔法陨星显示 (BloodMagic Meteors JEI Support)","CurseForge":"bloodmagic-meteors-jei-support","Modrinth":""},{"Id":16288,"Name":"伤害粒子限制 (Limited Damage Indicator Particle)","CurseForge":"limited-damage-indicator-particle","Modrinth":"limited-damage-indicator-particle"},{"Id":16289,"Name":"下界合金拓展续作 (Netherite Extension)","CurseForge":"netherite-extension","Modrinth":"netheriteextension"},{"Id":16290,"Name":"沉浸农业 (Immersive Farming)","CurseForge":"immersive-farming","Modrinth":"immersive-farming"},{"Id":16291,"Name":"","CurseForge":"","Modrinth":"vpb-too-many-guns"},{"Id":16292,"Name":"死亡天使 (Death Angels)","CurseForge":"death-angels","Modrinth":""},{"Id":16293,"Name":"","CurseForge":"the-pale-hound","Modrinth":""},{"Id":16294,"Name":"","CurseForge":"monsters-girls","Modrinth":"monsters-girls"},{"Id":16295,"Name":"","CurseForge":"monsters-girls-secrets-of-mermaids","Modrinth":""},{"Id":16296,"Name":"","CurseForge":"dios-tiny-ore","Modrinth":"dios-tiny-ore"},{"Id":16297,"Name":"","CurseForge":"defence-craft","Modrinth":""},{"Id":16299,"Name":"","CurseForge":"copper-equipment","Modrinth":"exlines-copper-equipment"},{"Id":16300,"Name":"","CurseForge":"terramity","Modrinth":"terramity"},{"Id":16304,"Name":"","CurseForge":"neptune-lib","Modrinth":"neptune"},{"Id":16305,"Name":"告示牌编辑轻量版 (Sign Edit Lite)","CurseForge":"sign-edit-lite","Modrinth":"signeditlite"},{"Id":16306,"Name":"","CurseForge":"","Modrinth":"book-formatting"},{"Id":16307,"Name":"","CurseForge":"","Modrinth":"morewaterlogging"},{"Id":16309,"Name":"自定义望远镜覆盖层 (CustomSpyglassMagnificationOverlay)","CurseForge":"","Modrinth":"customspyglassmagnificationoverlay"},{"Id":16310,"Name":"","CurseForge":"","Modrinth":"chatting"},{"Id":16311,"Name":"","CurseForge":"","Modrinth":"crosshair"},{"Id":16313,"Name":"","CurseForge":"respawning-structures-forge-fabric","Modrinth":""},{"Id":16314,"Name":"","CurseForge":"","Modrinth":"sticky-honey"},{"Id":16315,"Name":"","CurseForge":"horseman","Modrinth":"horseman"},{"Id":16316,"Name":"轻松放置修复 (EasyPlaceFix)","CurseForge":"","Modrinth":"easyplacefix"},{"Id":16317,"Name":"一闪 (Screenshot Flash / Flash)","CurseForge":"screenshot-flash","Modrinth":"flash"},{"Id":16318,"Name":"","CurseForge":"warp-zone","Modrinth":"warp-zone"},{"Id":16319,"Name":"淡出界面 (Faded Widgets)","CurseForge":"faded-widgets","Modrinth":"faded-widgets"},{"Id":16320,"Name":"知识库 (Knowledges)","CurseForge":"knowledges","Modrinth":"knowledges"},{"Id":16321,"Name":"","CurseForge":"panda-genetics-tweak","Modrinth":""},{"Id":16322,"Name":"","CurseForge":"colourful-llamas","Modrinth":""},{"Id":16323,"Name":"","CurseForge":"","Modrinth":"chens-japanese-decoration"},{"Id":16325,"Name":"","CurseForge":"create-halitosis-create-halitosis","Modrinth":"create-halitosis"},{"Id":16326,"Name":"","CurseForge":"create-unify","Modrinth":"create-unify"},{"Id":16327,"Name":"","CurseForge":"create-more-sand-papers","Modrinth":"create-more-sandpapers"},{"Id":16328,"Name":"","CurseForge":"sawmill-house","Modrinth":"sawmill-house"},{"Id":16329,"Name":"","CurseForge":"kaboom-moon","Modrinth":""},{"Id":16330,"Name":"","CurseForge":"hardcore-revive-mod","Modrinth":"hardcore-revive-mod"},{"Id":16333,"Name":"Petrol 的机件 (Petrol's Parts)","CurseForge":"petrols-parts","Modrinth":"petrols-parts"},{"Id":16334,"Name":"","CurseForge":"slavic-delight","Modrinth":"slavic-delight"},{"Id":16335,"Name":"海灵乐事 (Aquamirae Delight)","CurseForge":"aquamirae-delight","Modrinth":"aquamirae-delight"},{"Id":16336,"Name":"","CurseForge":"dumplings-delight-rewrapped","Modrinth":"dumplings-delight-rewrapped"},{"Id":16337,"Name":"","CurseForge":"my-nethers-delight-refabricated","Modrinth":"my-nethers-delight-refabricated"},{"Id":16338,"Name":"","CurseForge":"","Modrinth":"polyweather"},{"Id":16339,"Name":"","CurseForge":"shadow-x-axolotl-buckets-plus","Modrinth":""},{"Id":16340,"Name":"","CurseForge":"daily-shop","Modrinth":"daily-shop"},{"Id":16345,"Name":"","CurseForge":"growable-goodies","Modrinth":""},{"Id":16346,"Name":"Petrolpark 的库 (Petrolpark's Library)","CurseForge":"petrolpark-library","Modrinth":"petrolpark"},{"Id":16348,"Name":"","CurseForge":"ancient-reforging","Modrinth":"ancient-reforging"},{"Id":16349,"Name":"","CurseForge":"stackmob-fabric","Modrinth":"stackmob-fabric"},{"Id":16350,"Name":"","CurseForge":"itemindicator","Modrinth":"itemindicator"},{"Id":16351,"Name":"北斗神拳 (Kenshiro Mod)","CurseForge":"kenshiro-mod","Modrinth":""},{"Id":16352,"Name":"","CurseForge":"roamers","Modrinth":""},{"Id":16353,"Name":"","CurseForge":"","Modrinth":"legacycaneditsign"},{"Id":16354,"Name":"","CurseForge":"title-screen-mobs","Modrinth":"title-screen-mobs"},{"Id":16356,"Name":"","CurseForge":"antiblocksrechiseled","Modrinth":"antiblocksrechiseled"},{"Id":16358,"Name":"","CurseForge":"end-ores","Modrinth":""},{"Id":16359,"Name":"","CurseForge":"tnt-expanded","Modrinth":""},{"Id":16360,"Name":"微光纪事 (Glimmering Tales)","CurseForge":"glimmering-tales","Modrinth":"glimmering-tales"},{"Id":16361,"Name":"自定义流体交互 (Fluid Interaction Tweaker)","CurseForge":"fluid-interaction-tweaker","Modrinth":""},{"Id":16362,"Name":"","CurseForge":"kubejs-extended-crafting","Modrinth":""},{"Id":16363,"Name":"","CurseForge":"kubejs-addon-blood-magic","Modrinth":""},{"Id":16364,"Name":"","CurseForge":"custom-portal-builder","Modrinth":"custom-portal-builder"},{"Id":16365,"Name":"","CurseForge":"biome-difficulty","Modrinth":""},{"Id":16366,"Name":"","CurseForge":"","Modrinth":"viaaprilfools"},{"Id":16367,"Name":"","CurseForge":"tfc-weld-button","Modrinth":"tfc-weld-button"},{"Id":16368,"Name":"","CurseForge":"tfc-regrowing-forests","Modrinth":"tfc-regrowing-forests"},{"Id":16369,"Name":"","CurseForge":"ccdbridge","Modrinth":"ccdbridge"},{"Id":16370,"Name":"","CurseForge":"welcome-message","Modrinth":"welcome-message"},{"Id":16371,"Name":"","CurseForge":"auto-attack-rebirth","Modrinth":""},{"Id":16372,"Name":"","CurseForge":"lotas","Modrinth":"lotas"},{"Id":16373,"Name":"","CurseForge":"tasmod","Modrinth":"tasmod"},{"Id":16375,"Name":"飞起来! (BetterFly)","CurseForge":"betterfly","Modrinth":"betterfly"},{"Id":16376,"Name":"可拴玩家 (LeashedPlayer)","CurseForge":"","Modrinth":"leashedplayer"},{"Id":16377,"Name":"旋律魔法 (MelodyMagic)","CurseForge":"melodymagic","Modrinth":"melodymagic"},{"Id":16378,"Name":"知时修倍 (Scaling Mob Difficulty Fork)","CurseForge":"scaling-mob-difficulty-fork","Modrinth":""},{"Id":16379,"Name":"弹道预测 (Trajectory)","CurseForge":"trajectoryprojections","Modrinth":"trajectory"},{"Id":16380,"Name":"","CurseForge":"accessories","Modrinth":"accessories"},{"Id":16381,"Name":"","CurseForge":"onewholibs","Modrinth":"1wholibs"},{"Id":16382,"Name":"","CurseForge":"nucleus","Modrinth":"nucleus_pauljoda"},{"Id":16383,"Name":"","CurseForge":"","Modrinth":"equator"},{"Id":16384,"Name":"","CurseForge":"accessories-cc-layer","Modrinth":"accessories-cc-layer"},{"Id":16385,"Name":"","CurseForge":"accessories-tc-layer","Modrinth":"accessories-tc-layer"},{"Id":16386,"Name":"","CurseForge":"","Modrinth":"confetti-lib"},{"Id":16389,"Name":"","CurseForge":"material-replication","Modrinth":"material-replication"},{"Id":16390,"Name":"","CurseForge":"rsj","Modrinth":"rsj"},{"Id":16391,"Name":"伊利康纳 (Irikana)","CurseForge":"irikana","Modrinth":""},{"Id":16392,"Name":"","CurseForge":"mts-iv-aq-studios-himars","Modrinth":""},{"Id":16393,"Name":"","CurseForge":"immersive-vehicles-iv-mts-lindqvist","Modrinth":"lav"},{"Id":16394,"Name":"","CurseForge":"immersive-vehicles-iv-mts-zroskyan-ordinary","Modrinth":""},{"Id":16395,"Name":"","CurseForge":"petroleums-wigs","Modrinth":""},{"Id":16396,"Name":"遗怨待战 / 复仇标记 (Revenge Mark)","CurseForge":"revenge-mark","Modrinth":""},{"Id":16401,"Name":"","CurseForge":"","Modrinth":"create-coggle"},{"Id":16402,"Name":"","CurseForge":"create-enchantable-machinery","Modrinth":"create-enchantable-machinery"},{"Id":16402,"Name":"","CurseForge":"create-enchantable-machinery-fabric","Modrinth":""},{"Id":16403,"Name":"近视眼 (Bad Eyes)","CurseForge":"bad-eyes","Modrinth":""},{"Id":16404,"Name":"噩梦 (Bad Dreams)","CurseForge":"bad-dreams","Modrinth":"bad-dreams"},{"Id":16405,"Name":"","CurseForge":"turtlebois-rpg-classes","Modrinth":""},{"Id":16406,"Name":"","CurseForge":"through-the-lily-pads-gently","Modrinth":"through-the-lily-pads-gently"},{"Id":16407,"Name":"","CurseForge":"decofirmacraft","Modrinth":"decofirmacraft"},{"Id":16408,"Name":"","CurseForge":"","Modrinth":"dusty"},{"Id":16409,"Name":"","CurseForge":"","Modrinth":"beeg-smol"},{"Id":16410,"Name":"","CurseForge":"scaling-mobs","Modrinth":"scaling-mob-difficulty"},{"Id":16411,"Name":"","CurseForge":"multiline-mastery","Modrinth":"multiline-mastery"},{"Id":16412,"Name":"","CurseForge":"","Modrinth":"confetti-stuff"},{"Id":16413,"Name":"","CurseForge":"pirates-treasures","Modrinth":""},{"Id":16414,"Name":"","CurseForge":"ars-nouveau-delight","Modrinth":"ars-nouveau-delight"},{"Id":16415,"Name":"","CurseForge":"crossbow-enchants","Modrinth":"crossbow-enchants"},{"Id":16416,"Name":"","CurseForge":"extendeddrawersaddon","Modrinth":"extendeddrawersaddon"},{"Id":16417,"Name":"","CurseForge":"minecolonies-letsdo","Modrinth":""},{"Id":16418,"Name":"","CurseForge":"earlystage","Modrinth":"earlystage"},{"Id":16419,"Name":"","CurseForge":"smitherz","Modrinth":"smitherz"},{"Id":16420,"Name":"","CurseForge":"additionz","Modrinth":"additionz"},{"Id":16421,"Name":"","CurseForge":"bjornlib","Modrinth":"bjornlib"},{"Id":16424,"Name":"串起酥食/烤串:再调味 (Skewers Reflavored)","CurseForge":"skewers-reflavored","Modrinth":""},{"Id":16425,"Name":"验依定值/线性经验 (Linear Xp Curve)","CurseForge":"linear-xp-forge","Modrinth":""},{"Id":16428,"Name":"饺子乐事:重启 (Dumplings Delight Reload)","CurseForge":"dumplings-delight-reload","Modrinth":"dumplings-delight-reload"},{"Id":16429,"Name":"自动切换鞘翅 (Auto Switch Elytra)","CurseForge":"auto-switch-elytra","Modrinth":"autoswitchelytra"},{"Id":16430,"Name":"","CurseForge":"gregtech-placeable-emitters","Modrinth":"gregtech-placeable-emitters"},{"Id":16435,"Name":"榴 (Zakuro)","CurseForge":"zakuro","Modrinth":"zakuro"},{"Id":16436,"Name":"","CurseForge":"dropoff","Modrinth":""},{"Id":16437,"Name":"","CurseForge":"upgraded-totems","Modrinth":""},{"Id":16438,"Name":"","CurseForge":"","Modrinth":"player-chains"},{"Id":16439,"Name":"","CurseForge":"anti-creative-drift","Modrinth":"anti-creative-drift"},{"Id":16440,"Name":"","CurseForge":"damage-incorporated","Modrinth":"damage-incorporated"},{"Id":16445,"Name":"极墨重锻-革故鼎新 (ExModifier)","CurseForge":"exmodifier","Modrinth":"exmodifier"},{"Id":16447,"Name":"","CurseForge":"","Modrinth":"creepersburn-reborn"},{"Id":16448,"Name":"DFU载入优化 [FORGE] (Lazy DataFixerUpper(LazyDFU) [FORGE])","CurseForge":"lazy-dfu-forge","Modrinth":""},{"Id":16450,"Name":"","CurseForge":"creaturechat","Modrinth":"creaturechat"},{"Id":16451,"Name":"","CurseForge":"helldivers-spread-democracy","Modrinth":"helldivers-2-spread-democracy"},{"Id":16453,"Name":"","CurseForge":"variant-tools-and-weaponry-more-weapons","Modrinth":"variant-tools-and-weaponry-more-weapons"},{"Id":16454,"Name":"","CurseForge":"mgrr","Modrinth":"mgrr"},{"Id":16455,"Name":"","CurseForge":"arcanemysteries","Modrinth":"arcane-mysteries"},{"Id":16456,"Name":"","CurseForge":"botanic-pledge","Modrinth":"botanicpledge"},{"Id":16457,"Name":"","CurseForge":"rediculous-ore-generation","Modrinth":"rediculous-ore-generation"},{"Id":16458,"Name":"","CurseForge":"witchy-wearables","Modrinth":""},{"Id":16459,"Name":"重启爽食/简单乐事:再烹饪 (Simple Delights Recooked)","CurseForge":"simple-delights-recooked","Modrinth":""},{"Id":16460,"Name":"巴西乐事 (Brazilian Delight)","CurseForge":"braziliandelight","Modrinth":"braziliandelight"},{"Id":16461,"Name":"","CurseForge":"applied-energistics-delight","Modrinth":"applied-energistics-delight"},{"Id":16462,"Name":"","CurseForge":"extra-meat","Modrinth":""},{"Id":16463,"Name":"","CurseForge":"peculiar-primordials","Modrinth":"peculiar-primordials"},{"Id":16464,"Name":"","CurseForge":"time-wind-forge","Modrinth":"time-wind"},{"Id":16464,"Name":"","CurseForge":"time-wind","Modrinth":""},{"Id":16465,"Name":"","CurseForge":"","Modrinth":"mcbrowser"},{"Id":16466,"Name":"","CurseForge":"additional-trims","Modrinth":""},{"Id":16467,"Name":"","CurseForge":"upgraded-trims","Modrinth":""},{"Id":16468,"Name":"","CurseForge":"water-balloon","Modrinth":"water-balloon"},{"Id":16469,"Name":"","CurseForge":"cataclysm-spellbooks","Modrinth":"cataclysm-spellbooks"},{"Id":16470,"Name":"溺亡者之嚎 (Call of Drowner)","CurseForge":"call-of-drowner","Modrinth":"call-of-drowner"},{"Id":16472,"Name":"终焉之日-重铸 (PrejectZ)","CurseForge":"endofdays","Modrinth":""},{"Id":16474,"Name":"重启速食/快餐乐事非官方版 (FastFood Delight Unofficial)","CurseForge":"fastfood-delight-unofficial","Modrinth":""},{"Id":16475,"Name":"飞行速速破 (Faster Fly Block Breaking)","CurseForge":"faster-fly-block-breaking","Modrinth":""},{"Id":16476,"Name":"","CurseForge":"upgraded-additional-trims","Modrinth":""},{"Id":16477,"Name":"","CurseForge":"create-let-the-adventure-begin","Modrinth":"create-let-the-adventure-begin"},{"Id":16478,"Name":"","CurseForge":"bountiful-critters","Modrinth":"bountiful-critters"},{"Id":16479,"Name":"","CurseForge":"flashlight-mcowners","Modrinth":""},{"Id":16480,"Name":"智能锅 (SmartPot)","CurseForge":"smartpot","Modrinth":"smartpot"},{"Id":16483,"Name":"渊佑堕者/慈悲的虚空 (Merciful Void)","CurseForge":"merciful-void","Modrinth":""},{"Id":16484,"Name":"星空工业 (GSIC2)","CurseForge":"gsic2","Modrinth":""},{"Id":16485,"Name":"","CurseForge":"open-energistics","Modrinth":""},{"Id":16486,"Name":"","CurseForge":"","Modrinth":"the-friends-mod"},{"Id":16487,"Name":"","CurseForge":"","Modrinth":"construction-wand-fabric"},{"Id":16488,"Name":"","CurseForge":"osmiumspacetiers","Modrinth":""},{"Id":16489,"Name":"","CurseForge":"bodyguard","Modrinth":"bodyguard"},{"Id":16490,"Name":"快捷菜单 (Quick Menu)","CurseForge":"","Modrinth":"quick-menu"},{"Id":16491,"Name":"","CurseForge":"lazrs-lib","Modrinth":"lazrs-lib"},{"Id":16492,"Name":"雅言订正/聊天内容替换 (Cute Words)","CurseForge":"cute-words-chat-replacer","Modrinth":""},{"Id":16495,"Name":"热水澡 (Hot Bath)","CurseForge":"hotbath","Modrinth":""},{"Id":16496,"Name":"","CurseForge":"","Modrinth":"no-double-sneak"},{"Id":16497,"Name":"","CurseForge":"tfc-hammer-time","Modrinth":"tfc-hammer-time"},{"Id":16498,"Name":"","CurseForge":"tfc-better-stone-age","Modrinth":""},{"Id":16499,"Name":"","CurseForge":"battery-status-info","Modrinth":"batterystatusinfo"},{"Id":16500,"Name":"","CurseForge":"mineteam","Modrinth":"mine-team"},{"Id":16501,"Name":"禁用创造模式 (NoCreativeMode)","CurseForge":"","Modrinth":"nocreativemode"},{"Id":16502,"Name":"","CurseForge":"","Modrinth":"darktitlebar-forge"},{"Id":16503,"Name":"","CurseForge":"croaklib","Modrinth":"croaklib"},{"Id":16503,"Name":"","CurseForge":"","Modrinth":"croaklib-dep"},{"Id":16505,"Name":"","CurseForge":"nbt-copy","Modrinth":"nbt-copy"},{"Id":16507,"Name":"","CurseForge":"more-totem-effects","Modrinth":""},{"Id":16508,"Name":"","CurseForge":"bakeyourbread","Modrinth":"bake-your-bread"},{"Id":16509,"Name":"","CurseForge":"modern-debugify","Modrinth":""},{"Id":16510,"Name":"","CurseForge":"recipe-essentials-forge-fabric","Modrinth":""},{"Id":16511,"Name":"催起死尸/僵尸村民控制 (Zombie Villager Control)","CurseForge":"zombie-villager-control","Modrinth":""},{"Id":16512,"Name":"","CurseForge":"","Modrinth":"1.8-pvp-mod"},{"Id":16513,"Name":"黑屏安静 (BlackScreenQuiet)","CurseForge":"","Modrinth":"blackscreenquiet"},{"Id":16515,"Name":"","CurseForge":"","Modrinth":"too-many-shortcuts"},{"Id":16516,"Name":"","CurseForge":"better-horse-movement","Modrinth":""},{"Id":16517,"Name":"","CurseForge":"tct-core","Modrinth":"tct-core"},{"Id":16518,"Name":"","CurseForge":"obscure-tooltips-fix","Modrinth":""},{"Id":16520,"Name":"","CurseForge":"","Modrinth":"notica"},{"Id":16522,"Name":"钟吕十二律 (ZhongLv-12ET)","CurseForge":"zhonglv-12et","Modrinth":"zhonglv-12et"},{"Id":16525,"Name":"遥缘调址/随机出生点 (Just Another Random Spawn)","CurseForge":"just-another-random-spawn","Modrinth":""},{"Id":16526,"Name":"KAI我的实体-C (KAIMyEntity-C)","CurseForge":"","Modrinth":"kaimyentity-c"},{"Id":16527,"Name":"Realistic Mobs - 无法文件","CurseForge":"realistic-mobs","Modrinth":""},{"Id":16527,"Name":"","CurseForge":"","Modrinth":"realistic-mobs"},{"Id":16528,"Name":"","CurseForge":"fullthrottle-alchemist","Modrinth":""},{"Id":16529,"Name":"","CurseForge":"fullthrottle-nei","Modrinth":""},{"Id":16530,"Name":"","CurseForge":"creature-compendium","Modrinth":"creature-compendium"},{"Id":16531,"Name":"","CurseForge":"desert-update","Modrinth":"desert_update"},{"Id":16532,"Name":"","CurseForge":"ancient-elements","Modrinth":"ancient-elements-mod"},{"Id":16533,"Name":"","CurseForge":"left-behind","Modrinth":"left-behind"},{"Id":16534,"Name":"","CurseForge":"corrupted-witherskeleton-boss-mod","Modrinth":""},{"Id":16536,"Name":"","CurseForge":"mca-api","Modrinth":""},{"Id":16538,"Name":"钠:树叶剔除 (Sodium Leaf Culling)","CurseForge":"sodium-leaf-culling","Modrinth":"sodiumleafculling"},{"Id":16539,"Name":"引验导追/归航经验球 (Homing Xp Orb)","CurseForge":"homing-xp-orb","Modrinth":""},{"Id":16540,"Name":"","CurseForge":"multiblocked2","Modrinth":"multiblocked2"},{"Id":16541,"Name":"耐久信息显示更新版 (ArmorStatusHUD Updated)","CurseForge":"armorstatushud-updated","Modrinth":""},{"Id":16542,"Name":"","CurseForge":"tfc-better-blast-furnace","Modrinth":""},{"Id":16543,"Name":"","CurseForge":"tfc-textile","Modrinth":"tfc-textile"},{"Id":16544,"Name":"","CurseForge":"tfc-woodworking","Modrinth":"tfc-woodworking"},{"Id":16545,"Name":"","CurseForge":"tfc-auroras","Modrinth":"auroras"},{"Id":16546,"Name":"","CurseForge":"greg-paintings","Modrinth":"greg-paintings"},{"Id":16547,"Name":"","CurseForge":"gtmthings","Modrinth":""},{"Id":16548,"Name":"机械动力:交易站点 (Create: Trading Floor)","CurseForge":"create-trading-floor","Modrinth":"create-trading-floor"},{"Id":16549,"Name":"Yu的机械动力附属 (Fishy Create Stuffs)","CurseForge":"","Modrinth":"fishy-create-stuffs"},{"Id":16550,"Name":"","CurseForge":"biolith","Modrinth":"biolith"},{"Id":16551,"Name":"","CurseForge":"hungrier","Modrinth":"hungrier"},{"Id":16553,"Name":"","CurseForge":"furnace-pickaxe-mod","Modrinth":""},{"Id":16554,"Name":"","CurseForge":"camouflage-doors-and-trapdoor","Modrinth":"camouflage-doors-and-trapdoor"},{"Id":16555,"Name":"","CurseForge":"dense-metals","Modrinth":""},{"Id":16556,"Name":"","CurseForge":"actually-subtractions","Modrinth":"actually-subtractions"},{"Id":16557,"Name":"","CurseForge":"mechanical-botania","Modrinth":""},{"Id":16558,"Name":"","CurseForge":"puddles","Modrinth":""},{"Id":16559,"Name":"","CurseForge":"yoyousukes-kabutoaddon-for-ahzs-shinobicraft","Modrinth":""},{"Id":16560,"Name":"","CurseForge":"illager-world-war","Modrinth":""},{"Id":16561,"Name":"枪械工艺:冒险者的武器库 (Guns Craft Adventurer's Arsenal)","CurseForge":"guns-craft-adventurers-arsenal","Modrinth":""},{"Id":16562,"Name":"","CurseForge":"","Modrinth":"seven-deadly-sins-origins"},{"Id":16563,"Name":"","CurseForge":"difficult-raids-stronghold-survival-edition","Modrinth":"difficult-raids-compatibility-edition"},{"Id":16564,"Name":"","CurseForge":"subnautica-flow","Modrinth":""},{"Id":16565,"Name":"","CurseForge":"cardinal-sins","Modrinth":""},{"Id":16566,"Name":"","CurseForge":"unwrecked-ships-forge","Modrinth":""},{"Id":16566,"Name":"","CurseForge":"unwrecked-ships-fabric","Modrinth":""},{"Id":16567,"Name":"","CurseForge":"revamped-shipwrecks-mod","Modrinth":""},{"Id":16568,"Name":"","CurseForge":"christmas-culinary-desires-decorations","Modrinth":"christmas-culinary-desires-(-decorations)"},{"Id":16569,"Name":"","CurseForge":"","Modrinth":"florum-sporum"},{"Id":16570,"Name":"","CurseForge":"unseens-dungeon-additions","Modrinth":""},{"Id":16573,"Name":"更多物品 (MoreThings)","CurseForge":"","Modrinth":"more-things"},{"Id":16575,"Name":"爆炸信息显示 (ExplosionVisualizer)","CurseForge":"explosionvisualizer","Modrinth":"explosionvisualizer"},{"Id":16576,"Name":"更多原版食物 (More Vanilla Foods)","CurseForge":"","Modrinth":"more-vanilla-foods"},{"Id":16577,"Name":"吃取送食/玩家喂食 (Let Me Feed You!)","CurseForge":"let-me-feed-you","Modrinth":""},{"Id":16579,"Name":"深岩银河激光指示器 (DRG Laser Pointer)","CurseForge":"drg-laser-pointer","Modrinth":"drg-laser-pointer"},{"Id":16580,"Name":"","CurseForge":"spawner-head","Modrinth":""},{"Id":16581,"Name":"","CurseForge":"medieval-core-mod","Modrinth":""},{"Id":16582,"Name":"","CurseForge":"darkmining","Modrinth":"darkmining"},{"Id":16584,"Name":"","CurseForge":"","Modrinth":"visualkeys"},{"Id":16585,"Name":"","CurseForge":"sodium-extra-information","Modrinth":"sodium-extra-information"},{"Id":16586,"Name":"","CurseForge":"","Modrinth":"bulk-villager-trading"},{"Id":16587,"Name":"","CurseForge":"omniscience","Modrinth":""},{"Id":16588,"Name":"","CurseForge":"illusion-onslaught","Modrinth":""},{"Id":16589,"Name":"","CurseForge":"rar-compat","Modrinth":"rar-compat"},{"Id":16590,"Name":"","CurseForge":"wards","Modrinth":""},{"Id":16591,"Name":"","CurseForge":"moremcmeta-emissive-forge","Modrinth":"moremcmeta-emissive"},{"Id":16591,"Name":"","CurseForge":"moremcmeta-emissive-fabric","Modrinth":""},{"Id":16592,"Name":"","CurseForge":"","Modrinth":"fantazia"},{"Id":16593,"Name":"","CurseForge":"falling-attack","Modrinth":""},{"Id":16594,"Name":"","CurseForge":"lesraisins-armor","Modrinth":"lesraisins-armor"},{"Id":16595,"Name":"","CurseForge":"goety-spillage","Modrinth":"goety-spillage"},{"Id":16596,"Name":"","CurseForge":"waifucraft","Modrinth":""},{"Id":16597,"Name":"阅言得知/聊天栏读取告示牌 (Sign to Chat)","CurseForge":"sign-to-chat","Modrinth":""},{"Id":16598,"Name":"","CurseForge":"rainimatormod","Modrinth":"rainimatormod"},{"Id":16599,"Name":"真实空投 (Realistic Airdrop)","CurseForge":"realistic-airdrop","Modrinth":""},{"Id":16600,"Name":"","CurseForge":"keepers-of-the-stones-ii","Modrinth":"keepers-of-the-stones-2"},{"Id":16601,"Name":"Wooden Cog - 最新(已由Manwe_b接手)","CurseForge":"woodencog","Modrinth":""},{"Id":16601,"Name":"Wooden Cog - 已不再更新","CurseForge":"wooden-cog","Modrinth":""},{"Id":16601,"Name":"","CurseForge":"","Modrinth":"woodencog"},{"Id":16602,"Name":"","CurseForge":"shadow-x-blocks-plus","Modrinth":""},{"Id":16603,"Name":"","CurseForge":"pet-essence","Modrinth":"pet-essence"},{"Id":16604,"Name":"","CurseForge":"hardcore-revive-plus","Modrinth":""},{"Id":16605,"Name":"","CurseForge":"watson","Modrinth":"watson"},{"Id":16607,"Name":"翠茶工藝 (Emerald Matcha Craft)","CurseForge":"emerald-matcha-craft-v3","Modrinth":""},{"Id":16608,"Name":"","CurseForge":"cctv-camera","Modrinth":""},{"Id":16609,"Name":"","CurseForge":"trash-compactor","Modrinth":"trash-compactor"},{"Id":16610,"Name":"乡村乐事 (Rustic Delight)","CurseForge":"rustic-delight","Modrinth":"rustic-delight"},{"Id":16611,"Name":"","CurseForge":"total-assault","Modrinth":""},{"Id":16611,"Name":"Total Assault - 已弃用","CurseForge":"","Modrinth":"total-assault"},{"Id":16612,"Name":"天穹突破 (Sky Breaker)","CurseForge":"sky-breaker","Modrinth":""},{"Id":16613,"Name":"","CurseForge":"","Modrinth":"scala3std"},{"Id":16615,"Name":"","CurseForge":"","Modrinth":"hoofprint"},{"Id":16616,"Name":"","CurseForge":"better-controls","Modrinth":"better-controls"},{"Id":16617,"Name":"","CurseForge":"","Modrinth":"optibye"},{"Id":16618,"Name":"","CurseForge":"kubejei","Modrinth":""},{"Id":16619,"Name":"","CurseForge":"actually-harvest","Modrinth":"actually-harvest"},{"Id":16620,"Name":"","CurseForge":"city-craft","Modrinth":"rexs-city-craft"},{"Id":16622,"Name":"","CurseForge":"eggs-better-vanilla-food","Modrinth":"eggs-better-food"},{"Id":16623,"Name":"","CurseForge":"shelf-mod","Modrinth":"shelf-mod"},{"Id":16624,"Name":"","CurseForge":"nebulus-cherryblossom-tree","Modrinth":"nebulus-cherry-blossom-tree"},{"Id":16625,"Name":"","CurseForge":"ftb-rickety-water-wheel","Modrinth":""},{"Id":16626,"Name":"方块制造器 (Cobblegen Galore)","CurseForge":"cobblegen-galore","Modrinth":""},{"Id":16627,"Name":"","CurseForge":"","Modrinth":"ringles-gun-turret"},{"Id":16628,"Name":"","CurseForge":"create-sky-village","Modrinth":""},{"Id":16629,"Name":"","CurseForge":"create-crushing","Modrinth":"create-crushing"},{"Id":16630,"Name":"舒适枕头 (Cushy Pillows)","CurseForge":"cushy-pillows","Modrinth":""},{"Id":16631,"Name":"冰火传说随意修复 (Ice And Fire Patcher)","CurseForge":"ice-and-fire-patcher","Modrinth":"iaf-patcher"},{"Id":16632,"Name":"诡厄巫法:启示录 (Goety: Revelation)","CurseForge":"goety-revelation","Modrinth":"goety-revelation"},{"Id":16633,"Name":"","CurseForge":"the-mandela-catalogue-alternates","Modrinth":"the-mandela-catalogue-alternates"},{"Id":16634,"Name":"","CurseForge":"the-craftela-catalogue","Modrinth":""},{"Id":16635,"Name":"垂顶之地 (The Ceilands)","CurseForge":"the-ceilands","Modrinth":"the-ceilands"},{"Id":16636,"Name":"","CurseForge":"","Modrinth":"sharowings-better-dungeons"},{"Id":16637,"Name":"","CurseForge":"snowbound","Modrinth":"snow_bound"},{"Id":16638,"Name":"","CurseForge":"opencomputers-icbm-classic-addon","Modrinth":""},{"Id":16638,"Name":"Opencomputers ICBM-Classic Addon - 教程文档","CurseForge":"icbm-opencomputers","Modrinth":""},{"Id":16639,"Name":"","CurseForge":"","Modrinth":"ad-astra-pandoras-frontier"},{"Id":16640,"Name":"","CurseForge":"cosmic-horizons","Modrinth":"cosmic-horizons-cosmos"},{"Id":16641,"Name":"猪灵蛮兵掉落下界合金碎片 (Netherite Scrap From Piglin Brutes)","CurseForge":"shadow-x-netherite-scrap-from-piglin-brutes","Modrinth":""},{"Id":16643,"Name":"更好的模组列表 (Better ModList)","CurseForge":"better-modlist-neoforge","Modrinth":"better-modlist"},{"Id":16644,"Name":"","CurseForge":"sky-aesthetics","Modrinth":"sky-aesthetics"},{"Id":16645,"Name":"已无可惧 / 简单爆头 (Headshot Bonus)","CurseForge":"headshot-bonus","Modrinth":""},{"Id":16646,"Name":"附魔等级上限突破2 (EnchantmentLevelBreak)","CurseForge":"enchantlevelbrek","Modrinth":"enchantmentlevelbreak"},{"Id":16647,"Name":"","CurseForge":"the-ruler","Modrinth":"the-ruler"},{"Id":16648,"Name":"","CurseForge":"biome-borders-revived-liteloader-only","Modrinth":""},{"Id":16649,"Name":"区块边界 (ChunkBorders)","CurseForge":"chunkborders","Modrinth":""},{"Id":16650,"Name":"","CurseForge":"burnt","Modrinth":"burnt"},{"Id":16651,"Name":"","CurseForge":"goatman","Modrinth":"goatman"},{"Id":16653,"Name":"甲哇!/盔甲耐久损失限制 (Armor Damage Limit)","CurseForge":"armor-damage-limit","Modrinth":"armor-damage-limit"},{"Id":16654,"Name":"骑士保镖 (Knight Bodyguard)","CurseForge":"knight-bodyguard-forge","Modrinth":""},{"Id":16655,"Name":"","CurseForge":"deeper-depths","Modrinth":""},{"Id":16656,"Name":"","CurseForge":"unseens-nether-backport","Modrinth":""},{"Id":16658,"Name":"","CurseForge":"shadow-x-adventures-plus","Modrinth":""},{"Id":16659,"Name":"","CurseForge":"adventures-in-time","Modrinth":"ait"},{"Id":16660,"Name":"","CurseForge":"elementalist","Modrinth":""},{"Id":16661,"Name":"制作黏液球 (Craft Slime Fabric)","CurseForge":"","Modrinth":"craft-slime-fabric"},{"Id":16662,"Name":"","CurseForge":"shadow-x-unactivated-totems","Modrinth":""},{"Id":16663,"Name":"","CurseForge":"cagebox","Modrinth":""},{"Id":16665,"Name":"","CurseForge":"rechiseled-ae2","Modrinth":"rechiseled-ae2"},{"Id":16666,"Name":"","CurseForge":"archeological","Modrinth":"archeologicalmod"},{"Id":16667,"Name":"","CurseForge":"clarity","Modrinth":""},{"Id":16668,"Name":"","CurseForge":"backpacked-world-of-color","Modrinth":"backpacked-world-of-color"},{"Id":16669,"Name":"","CurseForge":"nofov","Modrinth":""},{"Id":16670,"Name":"钴 (Cobalt)","CurseForge":"cobalt-custom-chunk-renderer","Modrinth":"cobaltmod"},{"Id":16671,"Name":"","CurseForge":"spartacus-army-uniform","Modrinth":""},{"Id":16672,"Name":"","CurseForge":"soviet-army-uniform","Modrinth":"soviet-army-uniform"},{"Id":16673,"Name":"","CurseForge":"german-uniforms-ww2","Modrinth":""},{"Id":16674,"Name":"梦幻终焉 (FantasyEnding)","CurseForge":"fantasy-ending","Modrinth":""},{"Id":16677,"Name":"","CurseForge":"tameable","Modrinth":"tameable"},{"Id":16678,"Name":"游戏扩增·异界之刃 (SlashBladeGameRelic)","CurseForge":"slashblade-gamerelic","Modrinth":""},{"Id":16679,"Name":"","CurseForge":"theovergrowth","Modrinth":""},{"Id":16680,"Name":"","CurseForge":"jadens-nether-expansion","Modrinth":"jadens-nether-expansion"},{"Id":16682,"Name":"","CurseForge":"configurable","Modrinth":"configurable"},{"Id":16684,"Name":"聊天框坐标显示 (ChatPositionDisplay)","CurseForge":"","Modrinth":"chatpositiondisplay"},{"Id":16687,"Name":"Forge 加载屏幕移植 ((Neo)Forge Early Loading Screen for Fabric)","CurseForge":"","Modrinth":"forge-early-loading-screen-fabric"},{"Id":16688,"Name":"","CurseForge":"","Modrinth":"ebe-forge"},{"Id":16690,"Name":"","CurseForge":"patpat","Modrinth":""},{"Id":16691,"Name":"摩登生活补丁 (Modern Life Patch)","CurseForge":"modern-life-patch","Modrinth":"modernlifepatch"},{"Id":16692,"Name":"","CurseForge":"","Modrinth":"ivr"},{"Id":16693,"Name":"乡村乐事:重织 (RusticDelight: Refabricated)","CurseForge":"rusticdelight-refabricated","Modrinth":"rusticdelight-refabricated"},{"Id":16694,"Name":"逃逸:寄生饭 (Scape and Run: Meshi)","CurseForge":"scape-and-run-meshi","Modrinth":"scape-and-run-meshi"},{"Id":16695,"Name":"","CurseForge":"","Modrinth":"bad-apple-world-preset"},{"Id":16696,"Name":"","CurseForge":"gastronomy-works","Modrinth":"gastronomy-works"},{"Id":16697,"Name":"","CurseForge":"","Modrinth":"create-air-fabric"},{"Id":16698,"Name":"","CurseForge":"","Modrinth":"clockwork-additions"},{"Id":16699,"Name":"","CurseForge":"colorfulwater","Modrinth":""},{"Id":16700,"Name":"YUNG的洞穴生物群系 (YUNG's Cave Biomes)","CurseForge":"yungs-cave-biomes","Modrinth":"yungs-cave-biomes"},{"Id":16700,"Name":"YUNG的洞穴生物群系 (YUNG's Cave Biomes)","CurseForge":"yungs-cave-biomes-fabric","Modrinth":""},{"Id":16701,"Name":"旧式命令注册 (Legacy Command Registry)","CurseForge":"","Modrinth":"legacy-command-registry"},{"Id":16702,"Name":"屏保 (Screensaver)","CurseForge":"","Modrinth":"screensaver"},{"Id":16703,"Name":"启动提示音 (StartupTone)","CurseForge":"","Modrinth":"startuptone"},{"Id":16707,"Name":"Vall-11 Hall-A饮品 (Vall-11 Hall-A Drinks)","CurseForge":"va-11-hall-a-drinks","Modrinth":""},{"Id":16708,"Name":"","CurseForge":"bettergive-reborn","Modrinth":"bettergivereborn"},{"Id":16709,"Name":"","CurseForge":"blur-server-address","Modrinth":"blur-server-address"},{"Id":16710,"Name":"生活调味料:经典版 (Spice of Life: Classic Edition)","CurseForge":"foodvariations","Modrinth":"foodvariations"},{"Id":16711,"Name":"","CurseForge":"pizza-delight","Modrinth":"pizzadelight"},{"Id":16712,"Name":"","CurseForge":"simplefog","Modrinth":"simplefog"},{"Id":16713,"Name":"","CurseForge":"","Modrinth":"butter"},{"Id":16714,"Name":"TNT Plus - 所有","CurseForge":"tnt-plus-mod","Modrinth":""},{"Id":16714,"Name":"","CurseForge":"","Modrinth":"tnt-plus-mod"},{"Id":16716,"Name":"","CurseForge":"","Modrinth":"kelvins-better-player-animations-(port)"},{"Id":16717,"Name":"特摄唱片 (Tokusatsu Record)","CurseForge":"tokusatsurecord","Modrinth":""},{"Id":16719,"Name":"","CurseForge":"origins-backgrounds-forge","Modrinth":""},{"Id":16719,"Name":"","CurseForge":"origins-backgrounds","Modrinth":""},{"Id":16720,"Name":"","CurseForge":"cataclysm-apotheosis-addon","Modrinth":""},{"Id":16721,"Name":"","CurseForge":"cave-dweller-reimagined","Modrinth":""},{"Id":16721,"Name":"","CurseForge":"cave-dweller-reimagined-fabric","Modrinth":""},{"Id":16722,"Name":"脱战 (Out of Combat)","CurseForge":"out-of-combat","Modrinth":""},{"Id":16723,"Name":"灵魂碎片 (Soul Fragment)","CurseForge":"soulfragment","Modrinth":""},{"Id":16725,"Name":"","CurseForge":"create-peaceful","Modrinth":"create-peaceful"},{"Id":16726,"Name":"","CurseForge":"baby-players","Modrinth":""},{"Id":16727,"Name":"动态粗矿 (Dynamic Raw Ores)","CurseForge":"dynaores","Modrinth":""},{"Id":16728,"Name":"","CurseForge":"mc-mods-arrows-infinity-fix","Modrinth":""},{"Id":16729,"Name":"","CurseForge":"bundles-backport","Modrinth":""},{"Id":16730,"Name":"","CurseForge":"its-magispelling-time","Modrinth":""},{"Id":16732,"Name":"Windows启动界面 (WindowsStartingOverlay)","CurseForge":"","Modrinth":"windows-starting-overlay"},{"Id":16733,"Name":"偷跑禁止 (DontSneakProgress)","CurseForge":"","Modrinth":"dontsneakprogress"},{"Id":16734,"Name":"","CurseForge":"","Modrinth":"unkindled"},{"Id":16735,"Name":"","CurseForge":"recipe-generator","Modrinth":"recipe-generator"},{"Id":16736,"Name":"","CurseForge":"","Modrinth":"carbonfltr"},{"Id":16737,"Name":"氩 (Argon)","CurseForge":"argonmod","Modrinth":"argonmod"},{"Id":16738,"Name":"","CurseForge":"foggypalegarden","Modrinth":"foggypalegarden"},{"Id":16739,"Name":"","CurseForge":"","Modrinth":"items-stack"},{"Id":16740,"Name":"","CurseForge":"arkane-domains","Modrinth":""},{"Id":16742,"Name":"幻想之刃 (yakumoblade)","CurseForge":"yakumoblade","Modrinth":""},{"Id":16743,"Name":"垂直落下/移除掉落随机偏移 (No Random Drop Offset)","CurseForge":"no-random-drop-offset","Modrinth":""},{"Id":16744,"Name":"巧克力工坊:非官方版 (Croptopia's Chocolaterie Unofficial)","CurseForge":"croptopias-chocolaterie-unofficial","Modrinth":""},{"Id":16745,"Name":"史诗战斗:悟空 (Epic Fight - Wukong Moveset)","CurseForge":"epic-fight-wukong-moveset","Modrinth":""},{"Id":16747,"Name":"口癖X (PetPhraseX)","CurseForge":"petphrasex","Modrinth":"petphrasex"},{"Id":16749,"Name":"尘与烬 (Dust and Ash)","CurseForge":"dust-and-ash","Modrinth":""},{"Id":16750,"Name":"","CurseForge":"","Modrinth":"particle-interactions"},{"Id":16751,"Name":"试炼刷怪笼计时器 (Trial Spawner Timer)","CurseForge":"","Modrinth":"trial-spawner-timer"},{"Id":16753,"Name":"拔刀剑:重锋 渲染修复补丁 (SlashBlade Resharped RenderFix Patch)","CurseForge":"slashblade-resharped-renderfix-patch","Modrinth":"slashblade-resharped-renderfix-patch"},{"Id":16754,"Name":"","CurseForge":"","Modrinth":"invulnerable-wheat"},{"Id":16755,"Name":"","CurseForge":"skin3d-but-not-cubic","Modrinth":"skins3d-but-not-cubic"},{"Id":16756,"Name":"","CurseForge":"leavesly","Modrinth":"leavesly"},{"Id":16757,"Name":"","CurseForge":"create-totem-factory","Modrinth":"create-totem-factory"},{"Id":16758,"Name":"子沙:红石版 (Snad: Redstone Edition)","CurseForge":"snad-redstone-edition","Modrinth":"snad-redstone-edition"},{"Id":16759,"Name":"","CurseForge":"","Modrinth":"party-flames"},{"Id":16760,"Name":"","CurseForge":"subtle-effects","Modrinth":"subtle-effects"},{"Id":16761,"Name":"","CurseForge":"","Modrinth":"dma"},{"Id":16762,"Name":"","CurseForge":"cc-wasm","Modrinth":""},{"Id":16763,"Name":"","CurseForge":"legacy-patch","Modrinth":""},{"Id":16765,"Name":"","CurseForge":"","Modrinth":"glowup"},{"Id":16766,"Name":"","CurseForge":"","Modrinth":"customsavedirs"},{"Id":16767,"Name":"","CurseForge":"just-enough-magiculture","Modrinth":""},{"Id":16768,"Name":"","CurseForge":"ae2-jei-integration","Modrinth":""},{"Id":16769,"Name":"","CurseForge":"entangled-fix","Modrinth":""},{"Id":16770,"Name":"","CurseForge":"","Modrinth":"customdurabilitybar"},{"Id":16772,"Name":"","CurseForge":"scape-and-run-revenants","Modrinth":""},{"Id":16773,"Name":"","CurseForge":"warden-s-domain","Modrinth":""},{"Id":16774,"Name":"","CurseForge":"more-wardens","Modrinth":""},{"Id":16775,"Name":"","CurseForge":"hidden-realm","Modrinth":"hidden-realm"},{"Id":16776,"Name":"","CurseForge":"spells-gone-wrong","Modrinth":"spells-gone-wrong"},{"Id":16777,"Name":"","CurseForge":"wandrous","Modrinth":"wandrous"},{"Id":16778,"Name":"","CurseForge":"cnpc-dbc-addon","Modrinth":"customnpc-plus-dbc-addon"},{"Id":16779,"Name":"","CurseForge":"salmons-genesis","Modrinth":""},{"Id":16780,"Name":"","CurseForge":"the-afterdark","Modrinth":""},{"Id":16781,"Name":"无尽拔刀剑 (Endless Sword)","CurseForge":"endlesssword","Modrinth":""},{"Id":16782,"Name":"崩坏3","CurseForge":"bh3","Modrinth":""},{"Id":16784,"Name":"存档模组核对 (Loaded Mods Checker)","CurseForge":"loaded-mods-checker","Modrinth":"loadedmodschecker"},{"Id":16785,"Name":"朕已安寝 (I have slept)","CurseForge":"i-have-slept","Modrinth":"i-have-slept"},{"Id":16786,"Name":"物品堆叠ProMax (ItemStackProMax)","CurseForge":"","Modrinth":"itemstackpromax"},{"Id":16787,"Name":"物品分裂修复 (Item Split Bug Fix)","CurseForge":"item-split-bug-fix","Modrinth":""},{"Id":16788,"Name":"自然更替:蛛丝网迹 (Spontaneous-Replace: Cobwebbed)","CurseForge":"spontaneous-replace-cobwebbed","Modrinth":"spontaneous-replace-cobwebbed"},{"Id":16789,"Name":"","CurseForge":"modernconverter","Modrinth":""},{"Id":16790,"Name":"","CurseForge":"frozify","Modrinth":"frozify"},{"Id":16791,"Name":"","CurseForge":"potato-library","Modrinth":""},{"Id":16792,"Name":"","CurseForge":"swisscaves","Modrinth":"swisscaves"},{"Id":16793,"Name":"","CurseForge":"title-screen-blobcat","Modrinth":"title-screen-blobcat"},{"Id":16794,"Name":"","CurseForge":"punching-creepers","Modrinth":"punching-creepers"},{"Id":16795,"Name":"","CurseForge":"ancient-curses","Modrinth":""},{"Id":16796,"Name":"流浪商人安家 (Resettleable Traders)","CurseForge":"resettleable-traders-forge-fabric","Modrinth":"resettleable-traders"},{"Id":16797,"Name":"","CurseForge":"ihearttfc","Modrinth":"ihearttfc"},{"Id":16798,"Name":"物品物理掉落非官方版 (ItemPhysic Legacy Unofficial)","CurseForge":"itemphysic-1-7-10-unofficial","Modrinth":"itemphysic-1.7.10-unofficial"},{"Id":16799,"Name":"","CurseForge":"jei-area-fixer","Modrinth":""},{"Id":16800,"Name":"","CurseForge":"ars-elixirum-forge","Modrinth":"ars-elixirum"},{"Id":16800,"Name":"","CurseForge":"ars-elixirum-neoforge","Modrinth":""},{"Id":16800,"Name":"","CurseForge":"ars-elixirum","Modrinth":""},{"Id":16801,"Name":"","CurseForge":"gold-nugget-recycling","Modrinth":""},{"Id":16802,"Name":"","CurseForge":"sodium-options-api","Modrinth":"sodium-options-api"},{"Id":16803,"Name":"","CurseForge":"","Modrinth":"totom-register"},{"Id":16805,"Name":"疯狂的AE (CrazyAE)","CurseForge":"crazyae","Modrinth":"crazyae"},{"Id":16806,"Name":"AE2合成树-传统版 (AE2CT-Legacy)","CurseForge":"ae2-crafting-tree-legacy","Modrinth":""},{"Id":16807,"Name":"","CurseForge":"ae2-alchemistry-addon","Modrinth":""},{"Id":16809,"Name":"","CurseForge":"novaultlimit","Modrinth":"novaultlimit"},{"Id":16810,"Name":"游戏光碟 (Game Discs)","CurseForge":"game-discs","Modrinth":"game-discs"},{"Id":16811,"Name":"午餐肉乐事 (Luncheon Meat 'S Delight)","CurseForge":"luncheon-meat-s-delight","Modrinth":"luncheon-meat-s-delight"},{"Id":16813,"Name":"","CurseForge":"vanilla-plus-resourceful-tools","Modrinth":""},{"Id":16813,"Name":"","CurseForge":"resource-tools-fabric","Modrinth":""},{"Id":16814,"Name":"","CurseForge":"create-horse-power","Modrinth":"create-horse-power"},{"Id":16815,"Name":"","CurseForge":"ars-technica","Modrinth":""},{"Id":16816,"Name":"","CurseForge":"plustic-reforged","Modrinth":"plustic-reforged"},{"Id":16817,"Name":"刷怪笼拓展 (Spawners+)","CurseForge":"spawners-plus","Modrinth":"spawners_plus"},{"Id":16818,"Name":"","CurseForge":"dracolotl","Modrinth":"dracolotl"},{"Id":16820,"Name":"","CurseForge":"sacks-n-such","Modrinth":"sacks-n-such"},{"Id":16823,"Name":"山茶花核心 (CamelliaLib)","CurseForge":"camellialib","Modrinth":"camellialib"},{"Id":16824,"Name":"花朵武器库 (FlowerArmory)","CurseForge":"cameliaarmory","Modrinth":"cameliaarmory"},{"Id":16826,"Name":"","CurseForge":"moonrise","Modrinth":"moonrise-opt"},{"Id":16827,"Name":"","CurseForge":"corpsecomplex-unofficial","Modrinth":"corpsecomplex-unofficial"},{"Id":16828,"Name":"","CurseForge":"","Modrinth":"starlish"},{"Id":16829,"Name":"","CurseForge":"languagereloadunofficial","Modrinth":"languagereloadunofficial"},{"Id":16830,"Name":"","CurseForge":"mekanism-covers","Modrinth":"mekanism-covers"},{"Id":16831,"Name":"雅致乡下 (Elegant Countryside)","CurseForge":"enchanted-wilderness-elegant-countryside","Modrinth":"enchanted-wilderness-elegant-countryside."},{"Id":16832,"Name":"更好的耐久度:重铸 (Better Durability Reforged)","CurseForge":"better-durability-reforged","Modrinth":""},{"Id":16833,"Name":"我来助你! (Fast TPA)","CurseForge":"fast-tpa","Modrinth":""},{"Id":16834,"Name":"1.12.2的樱花 (Cherry_on_1.12.2)","CurseForge":"cherry-on-1-12-2","Modrinth":"cherry_on_1.12.2"},{"Id":16835,"Name":"寄体斯巴达 (Scape and Spartan: Parasites)","CurseForge":"scape-and-spartan-parasites","Modrinth":""},{"Id":16836,"Name":"","CurseForge":"","Modrinth":"ripples-of-the-past-extra-stands-addon"},{"Id":16837,"Name":"","CurseForge":"the-knocker","Modrinth":"the-knocker"},{"Id":16838,"Name":"","CurseForge":"vll-r-mystery","Modrinth":""},{"Id":16839,"Name":"","CurseForge":"scp-origin","Modrinth":""},{"Id":16840,"Name":"","CurseForge":"sniffers-delicacies","Modrinth":""},{"Id":16841,"Name":"","CurseForge":"fix-changed","Modrinth":""},{"Id":16842,"Name":"瓦尔基里海盗 (Valkyrien Pirates)","CurseForge":"valkyrien-pirates","Modrinth":"valkyrien-pirates"},{"Id":16843,"Name":"","CurseForge":"pathogen","Modrinth":""},{"Id":16844,"Name":"","CurseForge":"chrysalis","Modrinth":"chrysalis"},{"Id":16845,"Name":"","CurseForge":"alekis-ridiculously-simple-roofs","Modrinth":"alekiroofs"},{"Id":16846,"Name":"","CurseForge":"","Modrinth":"trails"},{"Id":16847,"Name":"","CurseForge":"rainboows","Modrinth":"rainboows"},{"Id":16848,"Name":"","CurseForge":"particle-effects","Modrinth":"particle-effects"},{"Id":16849,"Name":"","CurseForge":"rple","Modrinth":"rple"},{"Id":16850,"Name":"下界之治 (Reign of Nether RTS)","CurseForge":"reign-of-nether-rts-in-minecraft","Modrinth":"reign-of-nether-rts"},{"Id":16850,"Name":"下界之治 (Reign of Nether RTS) - 官方收录 PVP 对战地图包","CurseForge":"7119668","Modrinth":""},{"Id":16851,"Name":"","CurseForge":"the-secret-doors","Modrinth":""},{"Id":16853,"Name":"“改进-2000”","CurseForge":"improved-2000","Modrinth":""},{"Id":16854,"Name":"驯兽工具 (Tame Tools)","CurseForge":"tame-tools","Modrinth":"tame-tools"},{"Id":16855,"Name":"","CurseForge":"","Modrinth":"bia"},{"Id":16856,"Name":"","CurseForge":"vounierns-turrets","Modrinth":""},{"Id":16857,"Name":"","CurseForge":"seafarer-forge","Modrinth":""},{"Id":16858,"Name":"","CurseForge":"zombies-plus-frenzied-horde","Modrinth":"zombies-plus-frenzied-horde"},{"Id":16859,"Name":"","CurseForge":"","Modrinth":"tetrismc"},{"Id":16860,"Name":"节气 (Ecliptic Seasons)","CurseForge":"ecliptic-seasons","Modrinth":"ecliptic-seasons"},{"Id":16861,"Name":"喜报 ×× (XiBao ××)","CurseForge":"xibaoxx","Modrinth":"xibaoxx"},{"Id":16864,"Name":"鬼妖村正 (Murasama)","CurseForge":"murasama-daker","Modrinth":""},{"Id":16865,"Name":"粒子风暴 (Particle Storm)","CurseForge":"particle-storm","Modrinth":""},{"Id":16866,"Name":"","CurseForge":"","Modrinth":"2d-minecraft"},{"Id":16867,"Name":"","CurseForge":"till-it-breaks-updated","Modrinth":"till-it-breaks-updated"},{"Id":16868,"Name":"","CurseForge":"debark","Modrinth":"debark"},{"Id":16869,"Name":"","CurseForge":"till-it-breaks","Modrinth":"till-it-breaks"},{"Id":16870,"Name":"","CurseForge":"end-reborn-expansion","Modrinth":"end-reborn"},{"Id":16871,"Name":"","CurseForge":"","Modrinth":"origins-genshin"},{"Id":16874,"Name":"","CurseForge":"the-glitched-one","Modrinth":""},{"Id":16875,"Name":"","CurseForge":"progression-reborn","Modrinth":"progression-reborn"},{"Id":16877,"Name":"","CurseForge":"","Modrinth":"simple-info-display"},{"Id":16878,"Name":"","CurseForge":"","Modrinth":"automaticmemories"},{"Id":16879,"Name":"","CurseForge":"zoom-camera","Modrinth":"zoom-camera"},{"Id":16880,"Name":"","CurseForge":"dpi-fix","Modrinth":""},{"Id":16881,"Name":"物品信息显示 (Item Information Display)","CurseForge":"","Modrinth":"item-information-display"},{"Id":16882,"Name":"","CurseForge":"almanac-lib","Modrinth":"almanac"},{"Id":16884,"Name":"移除失明 (Remove Blindess) - 不全","CurseForge":"remove-blindness","Modrinth":""},{"Id":16884,"Name":"移除失明 (Remove Blindess)","CurseForge":"","Modrinth":"remove-blindess"},{"Id":16885,"Name":"","CurseForge":"simplerpgcore","Modrinth":"simplerpgcore"},{"Id":16886,"Name":"","CurseForge":"droppable-villager-trades","Modrinth":"droppable-villager-trades"},{"Id":16887,"Name":"","CurseForge":"stackupper","Modrinth":"stackupper"},{"Id":16888,"Name":"","CurseForge":"colorful-orbs","Modrinth":"colorful-orbs"},{"Id":16889,"Name":"","CurseForge":"","Modrinth":"idmxd"},{"Id":16890,"Name":"","CurseForge":"modernxl-2-in-survival","Modrinth":""},{"Id":16891,"Name":"","CurseForge":"creepercollateral","Modrinth":""},{"Id":16892,"Name":"","CurseForge":"findmyitemsandfluids","Modrinth":""},{"Id":16893,"Name":"","CurseForge":"","Modrinth":"numeric-experience-info"},{"Id":16894,"Name":"","CurseForge":"aquapatch","Modrinth":""},{"Id":16895,"Name":"","CurseForge":"aviator-dreams","Modrinth":"aviator-dreams"},{"Id":16896,"Name":"Macaw 的楼梯与露台 / 麦考的楼梯与阳台 (Macaw's Stairs)","CurseForge":"macaws-stairs","Modrinth":"macaws-stairs"},{"Id":16897,"Name":"","CurseForge":"cross-stitch-colours","Modrinth":"cross-stitch-colours"},{"Id":16898,"Name":"","CurseForge":"gaming-deco","Modrinth":"gaming-deco"},{"Id":16899,"Name":"韵律回响 (Reactive Music)","CurseForge":"reactive-music","Modrinth":"reactive-music"},{"Id":16900,"Name":"","CurseForge":"easel-does-it","Modrinth":"easel-does-it"},{"Id":16901,"Name":"","CurseForge":"rbasamoyais-betsy-ross","Modrinth":"betsy-ross"},{"Id":16902,"Name":"游戏内输入法Super (ContingameIMESuper)","CurseForge":"","Modrinth":"contingameimesuper"},{"Id":16907,"Name":"掉落物调整 (Dropped Item Tweaks)","CurseForge":"dropped-item-tweaks","Modrinth":"droppeditemtweaks"},{"Id":16908,"Name":"禁用快速移动检查 (MovingQuickly)","CurseForge":"movingquickly","Modrinth":""},{"Id":16909,"Name":"","CurseForge":"","Modrinth":"soup-api"},{"Id":16910,"Name":"","CurseForge":"","Modrinth":"tsa-decorations"},{"Id":16911,"Name":"","CurseForge":"","Modrinth":"autofarm-mod"},{"Id":16912,"Name":"意式冰淇淋盛宴 (Gelato Galore 2)","CurseForge":"gelato-galore-2","Modrinth":"gelato-galore-2"},{"Id":16913,"Name":"","CurseForge":"dyeable-jack-olanterns","Modrinth":"dyeable-jack-olanterns"},{"Id":16914,"Name":"","CurseForge":"white-pumpkins","Modrinth":"white-pumpkins"},{"Id":16915,"Name":"","CurseForge":"dawn-of-the-flood","Modrinth":"dawn-of-the-flood"},{"Id":16916,"Name":"逝不过三:重开 (Death But Three Reload)","CurseForge":"deatbutthreereload","Modrinth":"deatbutthreereload"},{"Id":16917,"Name":"","CurseForge":"common-weapons","Modrinth":""},{"Id":16918,"Name":"","CurseForge":"ore-silverfish-mod","Modrinth":"ore-silverfish-mod"},{"Id":16919,"Name":"","CurseForge":"gtbcs-spellbooks","Modrinth":""},{"Id":16920,"Name":"","CurseForge":"project-lambda","Modrinth":""},{"Id":16926,"Name":"可配置的碰撞箱显示-机械动力功能附加 (Pretty Hitbox-Create Addition)","CurseForge":"","Modrinth":"pretty-hitboxes-create-addition"},{"Id":16927,"Name":"水源:重生 (WaterSource: Reborn)","CurseForge":"watersource-reborn","Modrinth":"watersource-reborn"},{"Id":16928,"Name":"锁:非官方版 (Locks-Unofficial)","CurseForge":"locks-unofficial","Modrinth":"locks-unofficial"},{"Id":16929,"Name":"史诗战斗:改进 (EpicFight:Improve)","CurseForge":"epicfight-improve","Modrinth":"epicfight_improve"},{"Id":16930,"Name":"","CurseForge":"just-in-nether","Modrinth":"just-in-nether"},{"Id":16931,"Name":"镜回 (JingHui)","CurseForge":"jinghui","Modrinth":"jinghui"},{"Id":16932,"Name":"RotP:男人领域附属 (Ripples of the Past: Mandom Addon)","CurseForge":"","Modrinth":"ripples-of-the-past-mandom-addon"},{"Id":16933,"Name":"","CurseForge":"","Modrinth":"auto-gg"},{"Id":16934,"Name":"","CurseForge":"better-brightness-slider-respawn","Modrinth":"better-brightness-slider-respawn"},{"Id":16936,"Name":"","CurseForge":"","Modrinth":"playergyro"},{"Id":16937,"Name":"","CurseForge":"animatica-foxified","Modrinth":"animatica-foxified"},{"Id":16938,"Name":"","CurseForge":"mcchatgpt","Modrinth":"mcchatgpt"},{"Id":16939,"Name":"","CurseForge":"","Modrinth":"aimobs"},{"Id":16940,"Name":"氛围! (Aurae!)","CurseForge":"ambiances","Modrinth":"aurae"},{"Id":16941,"Name":"","CurseForge":"screw-your-items","Modrinth":"screw-your-items"},{"Id":16942,"Name":"","CurseForge":"mace-port","Modrinth":""},{"Id":16943,"Name":"","CurseForge":"bloodlines","Modrinth":""},{"Id":16944,"Name":"","CurseForge":"vampiric-ageing-a-vampirism-addon","Modrinth":""},{"Id":16945,"Name":"更多附魔和诅咒 (Extra Enchantments and Curses)","CurseForge":"extra-enchantments-and-curses","Modrinth":"extra-enchantments-and-curses"},{"Id":16946,"Name":"","CurseForge":"enchanting-tweaker","Modrinth":"enchanting-tweaks"},{"Id":16947,"Name":"","CurseForge":"just-a-lot-more-enchantments","Modrinth":"just-a-lot-more-enchantments"},{"Id":16948,"Name":"","CurseForge":"alessandrvs-enchantments","Modrinth":"alessandrv-enchantments"},{"Id":16949,"Name":"","CurseForge":"armor-abilities","Modrinth":"armor-abilities"},{"Id":16950,"Name":"沉眠空谷 (Sleepy Hollows)","CurseForge":"sleepy-hollows","Modrinth":"sleepy-hollows"},{"Id":16952,"Name":"名称标签调整 (Nametag (Display) Tweaks)","CurseForge":"nametag-tweaks","Modrinth":"nametagtweaks"},{"Id":16953,"Name":"","CurseForge":"","Modrinth":"sodium-no-alerts"},{"Id":16954,"Name":"爆头:重生 (Head Shot Respawn)","CurseForge":"headshot-respawn","Modrinth":"headshot-respawn"},{"Id":16955,"Name":"树叶腐烂抑制器 (Leaf Decay Stopper)","CurseForge":"leafdecaystopper","Modrinth":""},{"Id":16956,"Name":"","CurseForge":"animated-loading-screen","Modrinth":"animated-loading-screen"},{"Id":16957,"Name":"RotP:白蛇附属 (Whitesnake Addon (Ripples of the Past))","CurseForge":"","Modrinth":"rotp_whitesnake"},{"Id":16958,"Name":"RotP:天堂制造附属 (Ripples of the Past: Made in Heaven Addon)","CurseForge":"","Modrinth":"ripples-of-the-past-made-in-heaven-addon"},{"Id":16959,"Name":"RotP:新月附属 (Ripples of the Past: C-Moon Addon)","CurseForge":"","Modrinth":"ripples-of-the-past-c-moon-addon"},{"Id":16960,"Name":"","CurseForge":"imbued-gear","Modrinth":"imbued-gear"},{"Id":16961,"Name":"","CurseForge":"tacz-js","Modrinth":"tacz-js"},{"Id":16962,"Name":"","CurseForge":"ipla","Modrinth":"ipla"},{"Id":16963,"Name":"","CurseForge":"bcg-util","Modrinth":""},{"Id":16964,"Name":"全局自定义文本阴影渲染 (Sciophobia)","CurseForge":"sciophobia","Modrinth":"sciophobia"},{"Id":16965,"Name":"","CurseForge":"lithic-addon-mod","Modrinth":""},{"Id":16966,"Name":"","CurseForge":"light-blocks-from-1-17","Modrinth":"light-blocks-from-1-17"},{"Id":16967,"Name":"","CurseForge":"light-and-shadow","Modrinth":"light-and-shadow"},{"Id":16968,"Name":"","CurseForge":"excavein","Modrinth":"excavein"},{"Id":16969,"Name":"西班牙乐事 (Spanish Delight)","CurseForge":"spanish-delight-a-farmers-delight-add-on","Modrinth":"spanish-delight"},{"Id":16970,"Name":"新生乐事 (Ars Nouveau's Flavors & Delight / Ars Delight)","CurseForge":"ars-nouveaus-flavors-delight","Modrinth":"arsdelight"},{"Id":16971,"Name":"海之乐事 (Oceanic Delight)","CurseForge":"oceanic-delight","Modrinth":"oceanic-delight"},{"Id":16972,"Name":"","CurseForge":"the-player","Modrinth":""},{"Id":16973,"Name":"","CurseForge":"kelka-craftable-animals","Modrinth":"craftableanimals"},{"Id":16974,"Name":"","CurseForge":"super-hyper","Modrinth":"super-hyper"},{"Id":16975,"Name":"Wan的远古异兽 (Wan's Ancient Beasts)","CurseForge":"wans-ancient-beasts","Modrinth":"wab"},{"Id":16976,"Name":"","CurseForge":"invocations-spell-engine","Modrinth":"invocations"},{"Id":16977,"Name":"","CurseForge":"gearifiers","Modrinth":"gearifiers"},{"Id":16978,"Name":"回忆药水 (Recall Potion)","CurseForge":"recall-potion-neoforge","Modrinth":"recall-potion-neoforge"},{"Id":16979,"Name":"","CurseForge":"flowing-fluids","Modrinth":"flowing-fluids"},{"Id":16980,"Name":"","CurseForge":"frights-and-foliage","Modrinth":"frights-and-foliage"},{"Id":16981,"Name":"","CurseForge":"blorfstone","Modrinth":""},{"Id":16982,"Name":"","CurseForge":"filinkus-s-huge-tools","Modrinth":""},{"Id":16983,"Name":"","CurseForge":"necromancer-mod","Modrinth":""},{"Id":16984,"Name":"","CurseForge":"e_kedis-electronics","Modrinth":""},{"Id":16985,"Name":"","CurseForge":"uprade-yourself","Modrinth":""},{"Id":16987,"Name":"","CurseForge":"smelting-touch-enchantment","Modrinth":""},{"Id":16988,"Name":"","CurseForge":"shinobiorigins-utils","Modrinth":""},{"Id":16989,"Name":"","CurseForge":"unifine","Modrinth":""},{"Id":16990,"Name":"","CurseForge":"trailier-tales","Modrinth":"trailier-tales"},{"Id":16991,"Name":"","CurseForge":"mixinjs-coremod","Modrinth":""},{"Id":16992,"Name":"","CurseForge":"mcwen","Modrinth":""},{"Id":16993,"Name":"评分系统 (Rank System)","CurseForge":"rank-system","Modrinth":""},{"Id":16994,"Name":"","CurseForge":"","Modrinth":"creative-one-punch-forge"},{"Id":16995,"Name":"","CurseForge":"bundle-inventory","Modrinth":"bundle-inventory"},{"Id":16996,"Name":"鼠标滚轮调整 (Scroll Tweaks)","CurseForge":"scroll-tweaks","Modrinth":"scrolltweaks"},{"Id":16997,"Name":"服务器工具 (Server Tools)","CurseForge":"st","Modrinth":"server-tools"},{"Id":16998,"Name":"骑乘一切 (Ride Every Thing)","CurseForge":"ride-every-thing","Modrinth":"ride-every-thing"},{"Id":16999,"Name":"","CurseForge":"cit-resewn-neopatcher","Modrinth":"cit-resewn-neopatcher"},{"Id":17000,"Name":"传说生物 (Legendary Creatures)","CurseForge":"legendary-creatures","Modrinth":""},{"Id":17001,"Name":"","CurseForge":"","Modrinth":"meowcraft-mod"},{"Id":17006,"Name":"","CurseForge":"frozenlib","Modrinth":"frozenlib"},{"Id":17007,"Name":"","CurseForge":"clientblock","Modrinth":"clientblock"},{"Id":17008,"Name":"","CurseForge":"eventjs","Modrinth":""},{"Id":17009,"Name":"","CurseForge":"backup-manager","Modrinth":"backup-manager"},{"Id":17010,"Name":"","CurseForge":"the-root-of-fear","Modrinth":"the-root-of-fear"},{"Id":17011,"Name":"","CurseForge":"the-modifiger","Modrinth":"the-modifiger"},{"Id":17012,"Name":"键位预设 (KeyPreset)","CurseForge":"keypreset","Modrinth":"keypreset"},{"Id":17013,"Name":"","CurseForge":"","Modrinth":"tweakeroo-features-menu"},{"Id":17014,"Name":"理智:前传 (Sanity: Prequel)","CurseForge":"sanity-prequel","Modrinth":"sanity-prequel"},{"Id":17015,"Name":"Ayame 纸娃娃 (Ayame PaperDoll)","CurseForge":"ayame-paperdoll","Modrinth":"ayame-paperdoll"},{"Id":17016,"Name":"","CurseForge":"","Modrinth":"registry-helper-lib"},{"Id":17017,"Name":"","CurseForge":"","Modrinth":"carpet-permissions"},{"Id":17018,"Name":"被动盾牌 (Passive Shield)","CurseForge":"passive-shield","Modrinth":"passive-shield"},{"Id":17019,"Name":"","CurseForge":"trap-expansion","Modrinth":""},{"Id":17020,"Name":"","CurseForge":"roost-2-flying-higher","Modrinth":""},{"Id":17021,"Name":"","CurseForge":"amber-lib","Modrinth":"amber"},{"Id":17022,"Name":"","CurseForge":"liteminer","Modrinth":"liteminer"},{"Id":17023,"Name":"","CurseForge":"","Modrinth":"lvlz-better-nether"},{"Id":17024,"Name":"","CurseForge":"","Modrinth":"lvlz-better-end"},{"Id":17025,"Name":"","CurseForge":"cc-shops","Modrinth":"cc-shops"},{"Id":17026,"Name":"","CurseForge":"modular-machinery-reborn","Modrinth":"modular-machinery-reborn"},{"Id":17027,"Name":"","CurseForge":"flare","Modrinth":"flare"},{"Id":17028,"Name":"","CurseForge":"rs-crafting-monitor-in-grid","Modrinth":"rs-crafting-monitor-in-grid"},{"Id":17029,"Name":"","CurseForge":"","Modrinth":"photonics"},{"Id":17030,"Name":"","CurseForge":"lambdynamiclights-unofficial-neoforge","Modrinth":"lambdynamiclights-unofficial-neoforge"},{"Id":17032,"Name":"","CurseForge":"","Modrinth":"heracles-button"},{"Id":17033,"Name":"声控 (Voicecontrol)","CurseForge":"voicecontrol","Modrinth":""},{"Id":17034,"Name":"咒法魔艺链接 (Hex-Ars Linker)","CurseForge":"hex-ars-linker","Modrinth":"hex-ars-linker"},{"Id":17035,"Name":"宾果游戏大厅 (BingoLobby)","CurseForge":"bingolobby","Modrinth":"bingolobby"},{"Id":17036,"Name":"","CurseForge":"worldedit-legacy","Modrinth":"worldedit-legacy-enhanced"},{"Id":17037,"Name":"","CurseForge":"","Modrinth":"nohealthbar"},{"Id":17038,"Name":"","CurseForge":"asm-fixes-j-a-f-m","Modrinth":""},{"Id":17039,"Name":"","CurseForge":"moestweaks","Modrinth":""},{"Id":17040,"Name":"","CurseForge":"prickle","Modrinth":"prickle"},{"Id":17041,"Name":"","CurseForge":"farming-3x3","Modrinth":"farming-3x3"},{"Id":17042,"Name":"","CurseForge":"trickery","Modrinth":"trickery"},{"Id":17043,"Name":"","CurseForge":"kebab","Modrinth":"bogismokkebab"},{"Id":17044,"Name":"","CurseForge":"farmers-croptopia","Modrinth":"farmers-croptopia"},{"Id":17045,"Name":"","CurseForge":"mc-mods-trees-drop-apples","Modrinth":""},{"Id":17046,"Name":"","CurseForge":"infinite-dimensions","Modrinth":"infinite-dimensions"},{"Id":17048,"Name":"","CurseForge":"mofus-broken-constellations","Modrinth":"mofus-better-end-mofus-broken-constellation"},{"Id":17049,"Name":"","CurseForge":"starlance","Modrinth":"starlance"},{"Id":17050,"Name":"","CurseForge":"beneath","Modrinth":"beneath"},{"Id":17051,"Name":"简易客户端:基础 (SimpleClientBase)","CurseForge":"","Modrinth":"simple-client-base"},{"Id":17054,"Name":"终极附魔 (Ultimate Enchantment)","CurseForge":"ultimate-enchantment","Modrinth":"ultimate-enchantment"},{"Id":17055,"Name":"","CurseForge":"ron-settings","Modrinth":""},{"Id":17056,"Name":"背包物品内容显示 (Backpack Display)","CurseForge":"backpack-display","Modrinth":"backpack-display"},{"Id":17057,"Name":"Horrrs的植物大战僵尸 (Horrrs Pvz)","CurseForge":"horrrs-pvz","Modrinth":""},{"Id":17058,"Name":"","CurseForge":"","Modrinth":"optibabric"},{"Id":17059,"Name":"","CurseForge":"item-restrictions","Modrinth":"item-restrictions"},{"Id":17060,"Name":"","CurseForge":"vintage-animations","Modrinth":"vintage-animations"},{"Id":17061,"Name":"","CurseForge":"the-one-who-watches","Modrinth":"the-one-who-watches"},{"Id":17062,"Name":"","CurseForge":"scp-ultimate","Modrinth":""},{"Id":17063,"Name":"","CurseForge":"herobrines-omen","Modrinth":"herobrinesomen"},{"Id":17064,"Name":"","CurseForge":"sws-wukong","Modrinth":""},{"Id":17065,"Name":"","CurseForge":"dragns-valiant-vehicles","Modrinth":"dragns-valiant-vehicles!"},{"Id":17067,"Name":"","CurseForge":"create-ad-astra-compatibility","Modrinth":""},{"Id":17068,"Name":"","CurseForge":"create-mechanical-chicken","Modrinth":"create-mechanical-chicken"},{"Id":17069,"Name":"","CurseForge":"zbgt","Modrinth":"zbgt"},{"Id":17070,"Name":"","CurseForge":"casinocraft","Modrinth":""},{"Id":17071,"Name":"","CurseForge":"","Modrinth":"mql-tir5d-turtle"},{"Id":17072,"Name":"ToadLib - 不全","CurseForge":"toadlib","Modrinth":""},{"Id":17072,"Name":"","CurseForge":"","Modrinth":"toadlib"},{"Id":17075,"Name":"十字准星调整 (Crosshair Tweaks)","CurseForge":"crosshair-tweaks","Modrinth":"crosshairtweaks"},{"Id":17076,"Name":"","CurseForge":"what-did-i-just-kill","Modrinth":"what-did-i-just-kill"},{"Id":17077,"Name":"","CurseForge":"scalablelux","Modrinth":"scalablelux"},{"Id":17078,"Name":"","CurseForge":"weather-changer","Modrinth":"weather-changer"},{"Id":17079,"Name":"","CurseForge":"iron-nugget-recycling","Modrinth":""},{"Id":17080,"Name":"","CurseForge":"","Modrinth":"picohud"},{"Id":17081,"Name":"Exposer 重置版 (Re-Exposer)","CurseForge":"re-exposer","Modrinth":"re-exposer"},{"Id":17082,"Name":"","CurseForge":"gtmoreoreprocessing","Modrinth":"gtmoreoreprocessing"},{"Id":17083,"Name":"","CurseForge":"computercraftedu","Modrinth":""},{"Id":17084,"Name":"","CurseForge":"bibliocraft-legacy","Modrinth":"bibliocraft-legacy"},{"Id":17085,"Name":"","CurseForge":"simple-clouds","Modrinth":"simple-clouds"},{"Id":17088,"Name":"","CurseForge":"furniture-modcraft","Modrinth":"several-furniture-craft"},{"Id":17090,"Name":"","CurseForge":"spellblades-and-such-hexblade","Modrinth":""},{"Id":17092,"Name":"七罪之子:器官添加 (Sons Of Sins: Organs Additions)","CurseForge":"sons-of-sins-organs-additions","Modrinth":""},{"Id":17093,"Name":"七罪之子:器官博物馆 (Sons of Sins: Organ Museum)","CurseForge":"sons-of-sins-organs-museum","Modrinth":""},{"Id":17094,"Name":"七罪之子: Alex的生物集成 (Mobs of Sins: Alex's Mobs Integration [Forge])","CurseForge":"mobs-of-sins-alexs-mobs-integration-forge","Modrinth":""},{"Id":17095,"Name":"缝合的罪 (Stitched Sins)","CurseForge":"stitched-sins","Modrinth":""},{"Id":17098,"Name":"SCP-173,雕像 (SCP-173,The Sculpture)","CurseForge":"the-sculpture","Modrinth":"scp-173,-the-sculpture"},{"Id":17099,"Name":"","CurseForge":"goop","Modrinth":"goop"},{"Id":17100,"Name":"","CurseForge":"neepmeat","Modrinth":"neepmeat"},{"Id":17104,"Name":"更多怪物 (HuangSheng1's More Monster)","CurseForge":"","Modrinth":"huangsheng1s-more-monster"},{"Id":17105,"Name":"","CurseForge":"creeping-woods","Modrinth":"creepingwoods"},{"Id":17106,"Name":"","CurseForge":"","Modrinth":"zac"},{"Id":17107,"Name":"龙骑士2 (DragonMounts2)","CurseForge":"dragon-mounts-2","Modrinth":"dragon-mounts-2"},{"Id":17108,"Name":"生命果 (Life Fruits)","CurseForge":"life-fruits","Modrinth":"life-fruits"},{"Id":17109,"Name":"","CurseForge":"ati-structures","Modrinth":""},{"Id":17110,"Name":"幻想铠甲 (Fantasy Armor)","CurseForge":"fantasy-armor","Modrinth":"fantasy_armor"},{"Id":17111,"Name":"","CurseForge":"beautiful-enchanted-books","Modrinth":"beautiful-enchanted-books-mod-edition"},{"Id":17114,"Name":"","CurseForge":"void-fog","Modrinth":"voidfog"},{"Id":17115,"Name":"旧版火箭模型 (Legacy Rocket Model)","CurseForge":"","Modrinth":"legacy-rocket-model"},{"Id":17119,"Name":"工匠接口社区版 (Tinker I/O CE)","CurseForge":"tinker-i-o-ce","Modrinth":""},{"Id":17120,"Name":"","CurseForge":"more-shield-variants","Modrinth":"more-shield-variants"},{"Id":17122,"Name":"","CurseForge":"bendy-items","Modrinth":""},{"Id":17123,"Name":"","CurseForge":"paladins-oath","Modrinth":""},{"Id":17125,"Name":"","CurseForge":"roundabout-the-jojo-mod","Modrinth":"roundabout_the_jojo_mod"},{"Id":17128,"Name":"更多生存要素:延续 (EnviroMine continuation)","CurseForge":"enviromine-continuation","Modrinth":"enviromine-continuation"},{"Id":17129,"Name":"","CurseForge":"","Modrinth":"toffys-hooks"},{"Id":17130,"Name":"","CurseForge":"mutants-buff","Modrinth":""},{"Id":17132,"Name":"玩家方块模型 (BlockPlayer)","CurseForge":"","Modrinth":"blockplayer"},{"Id":17133,"Name":"","CurseForge":"terrablenderfix","Modrinth":"terrablenderfix"},{"Id":17134,"Name":"","CurseForge":"craterlib","Modrinth":"craterlib"},{"Id":17135,"Name":"","CurseForge":"","Modrinth":"caramel-chat"},{"Id":17136,"Name":"","CurseForge":"spark-unforged","Modrinth":"spark-unforged"},{"Id":17137,"Name":"","CurseForge":"pack-mode-reborn","Modrinth":""},{"Id":17138,"Name":"","CurseForge":"mc-mods-the-wood-weve-got","Modrinth":"all-the-wood-weve-got"},{"Id":17139,"Name":"","CurseForge":"bibliowoods-legacy","Modrinth":"bibliowoods-legacy"},{"Id":17140,"Name":"","CurseForge":"hydrological","Modrinth":"hydrological"},{"Id":17141,"Name":"","CurseForge":"unilib","Modrinth":"unilib"},{"Id":17143,"Name":"","CurseForge":"modchu_playerformlittlemaidfml","Modrinth":""},{"Id":17144,"Name":"迁噪碍音/玩家禁言 (Quiet)","CurseForge":"quiet","Modrinth":""},{"Id":17145,"Name":"星系兼容 (Galacticraft Compatibility)","CurseForge":"galacticraft-compatibility","Modrinth":"galacticraft-compatibility"},{"Id":17146,"Name":"","CurseForge":"","Modrinth":"bettertab"},{"Id":17147,"Name":"","CurseForge":"modular-machinery-reborn-mekanism","Modrinth":"modular-machinery-reborn-mekanism"},{"Id":17149,"Name":"","CurseForge":"dawn-of-time-roa-edition","Modrinth":""},{"Id":17150,"Name":"","CurseForge":"buildpaste","Modrinth":""},{"Id":17150,"Name":"","CurseForge":"buildpaste-for-fabric","Modrinth":""},{"Id":17151,"Name":"","CurseForge":"mutils","Modrinth":"mutils"},{"Id":17152,"Name":"更好的营火 (Better Campfires)","CurseForge":"better-campfires","Modrinth":"better-campfires"},{"Id":17153,"Name":"","CurseForge":"","Modrinth":"mtr-renfe-addon"},{"Id":17154,"Name":"","CurseForge":"gt-community-additions","Modrinth":"gt-community-additions"},{"Id":17155,"Name":"机械动力:更多燃烧室 (More Create Burners)","CurseForge":"more-create-burners","Modrinth":""},{"Id":17156,"Name":"","CurseForge":"create-logistics","Modrinth":"create-logistics"},{"Id":17157,"Name":"","CurseForge":"create-pneumatic-equipment","Modrinth":"create-pneumatic-equipment"},{"Id":17158,"Name":"碰撞伤害 (CollisionDamage)","CurseForge":"collisiondamage","Modrinth":""},{"Id":17159,"Name":"","CurseForge":"","Modrinth":"absolutely-proprietary"},{"Id":17160,"Name":"关于我转生变成史莱姆这档事:转生 (Tensura: Reincarnated)","CurseForge":"tensura-reincarnated","Modrinth":"tensura-reincarnated"},{"Id":17161,"Name":"奥特化身:无限 (Becomes Ultraman:Infinity)","CurseForge":"transformer","Modrinth":""},{"Id":17162,"Name":"变身 (Henshin)","CurseForge":"henshin","Modrinth":""},{"Id":17163,"Name":"","CurseForge":"ridiculous-world","Modrinth":""},{"Id":17165,"Name":"石英工艺 (Quartz_Craft)","CurseForge":"quartz_craft","Modrinth":"quartz_craft"},{"Id":17166,"Name":"","CurseForge":"cursed-stare","Modrinth":"cursed-stare"},{"Id":17167,"Name":"传世之刃 (LegendBlade)","CurseForge":"legendblade","Modrinth":""},{"Id":17168,"Name":"","CurseForge":"","Modrinth":"hypothermic-reforged"},{"Id":17169,"Name":"逃逸:寄生体扩展 (Scape and Run: Parasites Extra)","CurseForge":"scape-and-run-parasites-extra","Modrinth":"scape-and-run-parasites-extra"},{"Id":17170,"Name":"","CurseForge":"lauchs-shutters","Modrinth":"shutters"},{"Id":17171,"Name":"","CurseForge":"golden-foods","Modrinth":"golden-foods"},{"Id":17172,"Name":"","CurseForge":"","Modrinth":"alexscaves-delight"},{"Id":17173,"Name":"烤地瓜:重生 (Sweet Potato Reborn)","CurseForge":"","Modrinth":"spmreborn"},{"Id":17174,"Name":"","CurseForge":"dragon-fight-config-endergetic-addon","Modrinth":""},{"Id":17175,"Name":"24小时制 (24Hourclock)","CurseForge":"hour-clock-24","Modrinth":"hour-clock-24"},{"Id":17178,"Name":"星月再锻 (Celestial Forge)","CurseForge":"celestial-forge","Modrinth":""},{"Id":17179,"Name":"麻将工艺 (MahjongCraft)","CurseForge":"mahjongcraft","Modrinth":"mahjongcraft"},{"Id":17180,"Name":"","CurseForge":"formidulus","Modrinth":"formidulus"},{"Id":17181,"Name":"","CurseForge":"ames-stranger-things","Modrinth":""},{"Id":17182,"Name":"","CurseForge":"herobrine-origins","Modrinth":""},{"Id":17183,"Name":"","CurseForge":"milkable-blazes","Modrinth":""},{"Id":17183,"Name":"Milkable Blazes - 已归档","CurseForge":"","Modrinth":"milkable-blazes"},{"Id":17184,"Name":"RotP:暗之遗物 (Stone Legacy (Ripples of the Past addon))","CurseForge":"","Modrinth":"rotp-stone-legacy"},{"Id":17185,"Name":"","CurseForge":"furniture-beetle","Modrinth":"furniture-beetle"},{"Id":17186,"Name":"通用机械:北极星 (Mekanism x Create: Northstar)","CurseForge":"mekanism-x-create-northstar","Modrinth":"mekanism-x-create-northstar"},{"Id":17187,"Name":"","CurseForge":"","Modrinth":"createz"},{"Id":17188,"Name":"","CurseForge":"create-smart-crafter","Modrinth":"create-smart-crafter"},{"Id":17189,"Name":"","CurseForge":"create-fuel-and-water-information","Modrinth":"create-fuel-water-information"},{"Id":17190,"Name":"","CurseForge":"thematic","Modrinth":"thematic"},{"Id":17191,"Name":"","CurseForge":"more-composter-variants","Modrinth":"more-composter-variants"},{"Id":17192,"Name":"","CurseForge":"more-fletching-tables","Modrinth":"more-fletching-tables"},{"Id":17193,"Name":"","CurseForge":"more-grindstone-variants","Modrinth":"more-grindstone-variants"},{"Id":17194,"Name":"","CurseForge":"more-bed-variants","Modrinth":"more-bed-variants"},{"Id":17195,"Name":"","CurseForge":"more-loom-variants","Modrinth":"more-loom-variants"},{"Id":17196,"Name":"","CurseForge":"more-feeding-trough-variants","Modrinth":"more-feeding-trough-variants"},{"Id":17197,"Name":"","CurseForge":"more-smoker-variants","Modrinth":"more-smoker-variants"},{"Id":17198,"Name":"","CurseForge":"manascore","Modrinth":"manascore"},{"Id":17199,"Name":"AME生物配置 (Ame's Mobs' Configuration)","CurseForge":"ames-mobs-configuration","Modrinth":""},{"Id":17200,"Name":"展示乐事 (Display Delight)","CurseForge":"display-delight","Modrinth":"display-delight"},{"Id":17201,"Name":"","CurseForge":"realistic-torches-roa-edition","Modrinth":""},{"Id":17202,"Name":"探险者指南针 修改 (Explorer's Compass Edited)","CurseForge":"explorers-compass-edited","Modrinth":""},{"Id":17204,"Name":"","CurseForge":"","Modrinth":"slime"},{"Id":17205,"Name":"","CurseForge":"x-backup","Modrinth":"x-backup"},{"Id":17206,"Name":"","CurseForge":"iron-barrels-forge","Modrinth":"iron-barrels"},{"Id":17207,"Name":"","CurseForge":"spectral-decorations","Modrinth":"spectral-decorations"},{"Id":17210,"Name":"","CurseForge":"trims-on-tools","Modrinth":"trims-on-tools"},{"Id":17211,"Name":"星系自动资源 (Galacticraft Automatic Resources)","CurseForge":"galacticraft-automatic-resources","Modrinth":""},{"Id":17213,"Name":"轻辅助工具 (light assist tool)","CurseForge":"","Modrinth":"lx-light-assist-tool"},{"Id":17216,"Name":"Robert的建筑扩展包 (Robert's Building Pack)","CurseForge":"roberts-building-pack","Modrinth":""},{"Id":17217,"Name":"","CurseForge":"arcanus","Modrinth":"arcanus"},{"Id":17218,"Name":"","CurseForge":"ultimate-chess","Modrinth":"ultimate-chess"},{"Id":17219,"Name":"","CurseForge":"sparkweave","Modrinth":"sparkweave"},{"Id":17220,"Name":"","CurseForge":"visualjs","Modrinth":""},{"Id":17221,"Name":"","CurseForge":"lights-out","Modrinth":""},{"Id":17222,"Name":"","CurseForge":"a-night-stalker","Modrinth":""},{"Id":17223,"Name":"","CurseForge":"the-faceless-duo","Modrinth":""},{"Id":17224,"Name":"逃逸:祸从天降 (Scape and Run: Parasites Meteorite)","CurseForge":"scape-and-run-parasites-meteorite","Modrinth":"scape-and-run-parasites-meteorite"},{"Id":17225,"Name":"","CurseForge":"cravencrafts-bloody-bits","Modrinth":"cravencrafts-bloody-bits"},{"Id":17227,"Name":"撞车 (CarCrash)","CurseForge":"","Modrinth":"carcrash"},{"Id":17229,"Name":"","CurseForge":"fastlang","Modrinth":""},{"Id":17230,"Name":"","CurseForge":"min-3-hall-a","Modrinth":"min-3-hall-a"},{"Id":17231,"Name":"","CurseForge":"modular-machinery-reborn-energistics","Modrinth":"modular-machinery-reborn-energistics"},{"Id":17232,"Name":"","CurseForge":"tweaks-for-galactic-science","Modrinth":""},{"Id":17233,"Name":"","CurseForge":"java-version-checker","Modrinth":""},{"Id":17234,"Name":"","CurseForge":"chatcopyrite","Modrinth":""},{"Id":17235,"Name":"聊天增强 (Chat Boost)","CurseForge":"chat-boost","Modrinth":""},{"Id":17236,"Name":"","CurseForge":"terracart","Modrinth":""},{"Id":17237,"Name":"","CurseForge":"noteblock-backport","Modrinth":"noteblock-backport"},{"Id":17238,"Name":"逃逸:寄染之世 (Scape and Run: Dimension)","CurseForge":"scape-and-run-parasite-dimension","Modrinth":"srdimension"},{"Id":17239,"Name":"咒术调试 (HexDebug)","CurseForge":"hexdebug","Modrinth":"hexdebug"},{"Id":17240,"Name":"","CurseForge":"paths-of-sin","Modrinth":"paths-of-sin"},{"Id":17241,"Name":"","CurseForge":"","Modrinth":"mapperplugin"},{"Id":17242,"Name":"附魔分解 (Enchantment Dismantling)","CurseForge":"","Modrinth":"enchantment-decomposition"},{"Id":17243,"Name":"隐藏按键绑定 (Hide Key Binding)","CurseForge":"hide-key-binding","Modrinth":"hide-key-binding"},{"Id":17245,"Name":"","CurseForge":"inline","Modrinth":"inline"},{"Id":17246,"Name":"","CurseForge":"fluffy-fur","Modrinth":"fluffy-fur"},{"Id":17249,"Name":"玩家剪头 (Head Cutter)","CurseForge":"head-cutter","Modrinth":""},{"Id":17250,"Name":"","CurseForge":"salty-s-realistic-forging","Modrinth":"saltys-realistic-forging"},{"Id":17251,"Name":"","CurseForge":"","Modrinth":"vs-wakes-compat"},{"Id":17252,"Name":"","CurseForge":"","Modrinth":"vs-crumbles"},{"Id":17253,"Name":"","CurseForge":"","Modrinth":"vs-ship-in-a-bottle"},{"Id":17254,"Name":"","CurseForge":"rustic-pancakes","Modrinth":"rustic-pancakes"},{"Id":17255,"Name":"冰火传说乐事 (Ice and Fire Delight)","CurseForge":"ice-and-fire-delight","Modrinth":"ice-and-fire-delight"},{"Id":17256,"Name":"","CurseForge":"additional-dragons","Modrinth":""},{"Id":17257,"Name":"","CurseForge":"enigmatic-unity","Modrinth":""},{"Id":17258,"Name":"","CurseForge":"ephemera","Modrinth":"ephemera"},{"Id":17259,"Name":"","CurseForge":"theurgy-kubejs","Modrinth":"theurgy-kubejs"},{"Id":17260,"Name":"","CurseForge":"immersive-lanterns","Modrinth":"immersive-lanterns"},{"Id":17261,"Name":"","CurseForge":"txnilib","Modrinth":"txnilib"},{"Id":17262,"Name":"默认按键配置 (Default Key Setup)","CurseForge":"default-key-setup","Modrinth":"default-key-setup"},{"Id":17263,"Name":"","CurseForge":"the-man-king","Modrinth":""},{"Id":17264,"Name":"","CurseForge":"create-arms-race","Modrinth":"create-arms-race"},{"Id":17265,"Name":"","CurseForge":"powered-flashlight","Modrinth":"powered-flashlight"},{"Id":17266,"Name":"","CurseForge":"vmc-mc","Modrinth":"virtual-motion-capture-for-minecraft"},{"Id":17267,"Name":"","CurseForge":"","Modrinth":"hexcellular"},{"Id":17268,"Name":"咒术构筑 (Hex Conjuring)","CurseForge":"hex-conjuring","Modrinth":"hex-conjuring"},{"Id":17269,"Name":"","CurseForge":"hexjs","Modrinth":"hexjs"},{"Id":17270,"Name":"","CurseForge":"craftsense","Modrinth":"craftsense"},{"Id":17272,"Name":"","CurseForge":"zenkorium-creatures","Modrinth":""},{"Id":17273,"Name":"","CurseForge":"zhengelss-techguns-addon","Modrinth":"zhengelss_techguns_addon"},{"Id":17274,"Name":"","CurseForge":"more-artifacts","Modrinth":"more-artifacts"},{"Id":17276,"Name":"","CurseForge":"tfcgenviewer","Modrinth":"tfcgenviewer"},{"Id":17277,"Name":"","CurseForge":"terra-math","Modrinth":"terra-math"},{"Id":17278,"Name":"","CurseForge":"lukis-crazy-chambers","Modrinth":""},{"Id":17279,"Name":"","CurseForge":"tumbleweed-wasteland","Modrinth":""},{"Id":17280,"Name":"Iron的宝石与饰品 (Iron's Gems 'n Jewelry)","CurseForge":"irons-jewelry","Modrinth":""},{"Id":17281,"Name":"","CurseForge":"atlas-api","Modrinth":""},{"Id":17282,"Name":"","CurseForge":"loading-screen-messages","Modrinth":""},{"Id":17283,"Name":"","CurseForge":"","Modrinth":"pipesounds"},{"Id":17284,"Name":"","CurseForge":"nemos-invertory-sorting","Modrinth":"nemos-inventory-sorting"},{"Id":17285,"Name":"","CurseForge":"","Modrinth":"better-ux"},{"Id":17286,"Name":"","CurseForge":"","Modrinth":"hudmini"},{"Id":17287,"Name":"","CurseForge":"ribs-panning","Modrinth":""},{"Id":17288,"Name":"","CurseForge":"hotkettles","Modrinth":"hotkettles"},{"Id":17289,"Name":"","CurseForge":"gift-drop","Modrinth":"gift-drop"},{"Id":17290,"Name":"","CurseForge":"dragns-livestock-overhaul","Modrinth":"dragns-livestock-overhaul"},{"Id":17291,"Name":"储物抽屉非官方版 (Storage Drawers Unofficial)","CurseForge":"storage-drawers-unofficial","Modrinth":"storage-drawers-unofficial"},{"Id":17293,"Name":"","CurseForge":"centrifuge-tiers-reproduced","Modrinth":"centrifuge-tiers-reproduced"},{"Id":17294,"Name":"","CurseForge":"dense-mekanism","Modrinth":"dense-mekanism"},{"Id":17295,"Name":"","CurseForge":"simple-missles","Modrinth":"simple-missles"},{"Id":17296,"Name":"","CurseForge":"galosphere-spellbooks","Modrinth":"galosphere-spellbooks"},{"Id":17297,"Name":"窥玄探秘 (Discerning The Eldritch)","CurseForge":"discerning-the-eldritch","Modrinth":""},{"Id":17298,"Name":"","CurseForge":"","Modrinth":"hexcassettes"},{"Id":17299,"Name":"","CurseForge":"wardens-plus","Modrinth":""},{"Id":17300,"Name":"","CurseForge":"ender-wyrmlings","Modrinth":""},{"Id":17303,"Name":"","CurseForge":"new-classic-battle-towers","Modrinth":""},{"Id":17304,"Name":"甲壳装备 (Chitin Equipment)","CurseForge":"chitin-equipment","Modrinth":"chitin-equipment"},{"Id":17305,"Name":"Mowzie的灾变 (Mowzie's Cataclysm)","CurseForge":"mowzies-cataclysm","Modrinth":"mowzies-cataclysm"},{"Id":17306,"Name":"","CurseForge":"stardew-fishing-fabric","Modrinth":"stardew-fishing-fabric"},{"Id":17307,"Name":"","CurseForge":"piglin-slayer","Modrinth":"piglin-slayer"},{"Id":17308,"Name":"","CurseForge":"cataclysm-tools","Modrinth":"cataclysm-tools"},{"Id":17309,"Name":"","CurseForge":"witherite-gear","Modrinth":""},{"Id":17310,"Name":"","CurseForge":"faunus","Modrinth":"faunus"},{"Id":17311,"Name":"","CurseForge":"oo-ee-a-e-a","Modrinth":"oo-ee-a-e-a"},{"Id":17312,"Name":"翻译器 (Translator)","CurseForge":"","Modrinth":"translator"},{"Id":17315,"Name":"","CurseForge":"sodium-embeddium-options-mod-compat","Modrinth":"sodium-options-mod-compat"},{"Id":17316,"Name":"","CurseForge":"secureseed-reborn","Modrinth":"secureseed-reborn"},{"Id":17317,"Name":"","CurseForge":"creative-eats","Modrinth":""},{"Id":17318,"Name":"","CurseForge":"mazerooms","Modrinth":"mazerooms"},{"Id":17319,"Name":"","CurseForge":"friendly-chests","Modrinth":"friendly-chests"},{"Id":17320,"Name":"","CurseForge":"","Modrinth":"chitinous_ties"},{"Id":17321,"Name":"龙息可酿造 (Brewable Dragon's Breath)","CurseForge":"brewable-dragons-breath","Modrinth":"brewable-dragons-breath"},{"Id":17322,"Name":"鈇 (Flerovium)","CurseForge":"flerovium","Modrinth":"flerovium"},{"Id":17325,"Name":"薪火,造炬成阳 (Gathering Torches Become Sunlight)","CurseForge":"gathering-torches-become-sunlight","Modrinth":""},{"Id":17327,"Name":"更多聊天记录-NeoForge (MoreChatHistoryNeoForge)","CurseForge":"","Modrinth":"morechathistory-neoforge"},{"Id":17328,"Name":"","CurseForge":"no-arrows-in-you-respawn","Modrinth":"no-arrows-in-yourespawn"},{"Id":17330,"Name":"","CurseForge":"glowcase","Modrinth":"glowcase"},{"Id":17331,"Name":"","CurseForge":"hitbox-api","Modrinth":"hitbox-api"},{"Id":17332,"Name":"","CurseForge":"","Modrinth":"polynametag"},{"Id":17333,"Name":"","CurseForge":"broken-nametags","Modrinth":"broken-nametags"},{"Id":17334,"Name":"","CurseForge":"","Modrinth":"compostable-flesh"},{"Id":17335,"Name":"","CurseForge":"a-cute-little-crock-pot","Modrinth":"a-cute-little-crock-pot"},{"Id":17336,"Name":"感恩节乐事 (Bountiful Harvest)","CurseForge":"","Modrinth":"bountifulharvest"},{"Id":17337,"Name":"","CurseForge":"wasteland-grocers","Modrinth":""},{"Id":17338,"Name":"","CurseForge":"arcane-tablet","Modrinth":""},{"Id":17339,"Name":"","CurseForge":"","Modrinth":"unflavoured-pipes"},{"Id":17340,"Name":"","CurseForge":"curvy-pipes","Modrinth":"curvy-pipes"},{"Id":17343,"Name":"经典状态条 延续版 (Classic Bar Legacy)","CurseForge":"classic-bar-legacy","Modrinth":""},{"Id":17344,"Name":"","CurseForge":"glowing-eyeblossom","Modrinth":"glowing-eyeblossom"},{"Id":17345,"Name":"开放式联机 (OpenLink)","CurseForge":"openlink","Modrinth":"openlink"},{"Id":17346,"Name":"","CurseForge":"","Modrinth":"vs-grapples"},{"Id":17347,"Name":"","CurseForge":"","Modrinth":"mydriasis"},{"Id":17348,"Name":"","CurseForge":"no-mob-spawning-on-plants","Modrinth":"no-mob-spawning-on-plants"},{"Id":17350,"Name":"","CurseForge":"durability-rework","Modrinth":"durability-rework"},{"Id":17351,"Name":"","CurseForge":"more-villagers-re-employed","Modrinth":"more-villagers-re-employed"},{"Id":17352,"Name":"","CurseForge":"similsax-transtructors","Modrinth":""},{"Id":17353,"Name":"","CurseForge":"tcw-bedrock-breaker","Modrinth":""},{"Id":17354,"Name":"","CurseForge":"apothic-reforge-tokens","Modrinth":""},{"Id":17355,"Name":"进阶技能:重制版 (Advanced Skills: Remastered)","CurseForge":"advanced-skills-remastered","Modrinth":"advanced-skills-remastered"},{"Id":17356,"Name":"","CurseForge":"monsters-and-dungeons","Modrinth":""},{"Id":17357,"Name":"","CurseForge":"cultivate-the-eternal-realm","Modrinth":"cultivate-the-eternal-realm"},{"Id":17358,"Name":"","CurseForge":"too-much-bosses","Modrinth":""},{"Id":17359,"Name":"","CurseForge":"valoria","Modrinth":"valoria"},{"Id":17360,"Name":"","CurseForge":"glowroot","Modrinth":"glowroot"},{"Id":17361,"Name":"","CurseForge":"","Modrinth":"instaminable-deepslate"},{"Id":17363,"Name":"","CurseForge":"greedy-bag","Modrinth":""},{"Id":17364,"Name":"","CurseForge":"naughthirium","Modrinth":"naughthirium"},{"Id":17365,"Name":"区块清除 (ChunkPurge)","CurseForge":"chunkpurge","Modrinth":""},{"Id":17366,"Name":"","CurseForge":"kubejs-tfmg","Modrinth":"kubejs-tfmg"},{"Id":17367,"Name":"","CurseForge":"gauges-and-switches-ported","Modrinth":""},{"Id":17368,"Name":"","CurseForge":"mifa","Modrinth":"mifa"},{"Id":17369,"Name":"","CurseForge":"tis-vs","Modrinth":"tis-vs"},{"Id":17370,"Name":"","CurseForge":"pistronics-2","Modrinth":""},{"Id":17373,"Name":"","CurseForge":"gladius-combat-evolved","Modrinth":""},{"Id":17374,"Name":"","CurseForge":"hungry-chests","Modrinth":""},{"Id":17375,"Name":"","CurseForge":"better-withered-mobs","Modrinth":"better-withered-mobs"},{"Id":17376,"Name":"","CurseForge":"pkgbadges","Modrinth":"pkgbadges"},{"Id":17377,"Name":"","CurseForge":"","Modrinth":"carbasa"},{"Id":17378,"Name":"","CurseForge":"countereds-settlement-roads","Modrinth":"countereds-settlement-roads"},{"Id":17379,"Name":"","CurseForge":"countereds-terrain-slabs","Modrinth":"countereds-terrain-slabs"},{"Id":17381,"Name":"","CurseForge":"explosive-enhancement-reforged","Modrinth":"explosive-enhancement-forge"},{"Id":17382,"Name":"Tmtravlr的箭矢轨迹 (Tmtravlr's Arrow Trails)","CurseForge":"tmtravlrs-arrow-trails","Modrinth":""},{"Id":17383,"Name":"群系替换器 (Biome Replacer)","CurseForge":"biome-replacer","Modrinth":"biome-replacer"},{"Id":17383,"Name":"群系替换器 (Biome Replacer)","CurseForge":"biome-replacer-neoforge","Modrinth":"biome-replacer-neoforge"},{"Id":17384,"Name":"自定义谜之炖菜 (Custom Suspicious Stew)","CurseForge":"custom-suspicious-stew","Modrinth":""},{"Id":17385,"Name":"子文件夹Mod扫描器 (Child Folder Mod Scanner)","CurseForge":"","Modrinth":"child-folder-mod-scanner"},{"Id":17387,"Name":"","CurseForge":"","Modrinth":"create-stress-debug"},{"Id":17388,"Name":"","CurseForge":"create-kart","Modrinth":""},{"Id":17389,"Name":"","CurseForge":"","Modrinth":"barometry"},{"Id":17391,"Name":"","CurseForge":"menufpsunlocker","Modrinth":"menufpsunlocker"},{"Id":17392,"Name":"沼骸生成微调 (Bogged Spawn)","CurseForge":"bogged-spawn","Modrinth":"bogged-spawn"},{"Id":17393,"Name":"","CurseForge":"unicode-fix","Modrinth":"unicode-fix"},{"Id":17394,"Name":"","CurseForge":"insanity","Modrinth":""},{"Id":17395,"Name":"","CurseForge":"sepals","Modrinth":"sepals"},{"Id":17396,"Name":"","CurseForge":"frustum-culling-advanced","Modrinth":""},{"Id":17399,"Name":"星喵工艺 (Star Meow Craft)","CurseForge":"star-meow-craft","Modrinth":""},{"Id":17400,"Name":"","CurseForge":"","Modrinth":"defile"},{"Id":17401,"Name":"","CurseForge":"vanishmod","Modrinth":"vanishmod"},{"Id":17402,"Name":"","CurseForge":"","Modrinth":"eat-it"},{"Id":17403,"Name":"","CurseForge":"f1-y-f5-mod","Modrinth":"perspective-lock"},{"Id":17404,"Name":"","CurseForge":"meddlebootstrap","Modrinth":""},{"Id":17405,"Name":"","CurseForge":"mc-modstheleaks","Modrinth":""},{"Id":17406,"Name":"","CurseForge":"walk-overhaul","Modrinth":""},{"Id":17407,"Name":"","CurseForge":"no-strip","Modrinth":"no-strip"},{"Id":17408,"Name":"MCPlus:重置版 (MCPlus Remastered)","CurseForge":"mcplus-remastered","Modrinth":""},{"Id":17409,"Name":"","CurseForge":"instant-classic-houses","Modrinth":""},{"Id":17410,"Name":"","CurseForge":"hexparse","Modrinth":"hexparse"},{"Id":17411,"Name":"更好的劫掠 (BetterRaid)","CurseForge":"betterraid","Modrinth":""},{"Id":17412,"Name":"","CurseForge":"villagermetafix","Modrinth":""},{"Id":17413,"Name":"","CurseForge":"create-better-villager","Modrinth":"create-better-villagers"},{"Id":17414,"Name":"","CurseForge":"mc-modsjs","Modrinth":"filesjs"},{"Id":17415,"Name":"","CurseForge":"robotic-parts-first-aid-compat","Modrinth":""},{"Id":17416,"Name":"","CurseForge":"craftingpad-fabric","Modrinth":"craftingpad"},{"Id":17418,"Name":"寿司 (Sushi Mod)","CurseForge":"exlines-sushi-mod","Modrinth":"sushimod"},{"Id":17419,"Name":"","CurseForge":"demanding-saplings","Modrinth":"demanding-saplings"},{"Id":17420,"Name":"","CurseForge":"coastal-waves","Modrinth":"coastal-waves"},{"Id":17421,"Name":"","CurseForge":"","Modrinth":"no-swimming"},{"Id":17423,"Name":"泛用兼容:石材 (Every Compat) (Stone Zone)","CurseForge":"stone-zone","Modrinth":"stone-zone"},{"Id":17425,"Name":"","CurseForge":"a-man-with-plushies","Modrinth":"a-man-with-plushies"},{"Id":17426,"Name":"附魔转移 (Enchantment Transfer)","CurseForge":"enchantmentransfer","Modrinth":"enchantmentransfer"},{"Id":17430,"Name":"","CurseForge":"","Modrinth":"async"},{"Id":17431,"Name":"无名的纸板箱交通拓展 (Aphrodite's Nemo's Transit Expansion)","CurseForge":"","Modrinth":"mtr-ante"},{"Id":17432,"Name":"触摸控制器 (TouchController)","CurseForge":"touchcontroller","Modrinth":"touchcontroller"},{"Id":17434,"Name":"","CurseForge":"let-me-click-and-send","Modrinth":"let-me-click-and-send"},{"Id":17436,"Name":"","CurseForge":"careful-cast-corrector-ccc","Modrinth":""},{"Id":17437,"Name":"","CurseForge":"lagbgon-revived","Modrinth":"lagbgon-revived"},{"Id":17438,"Name":"","CurseForge":"project-steam","Modrinth":""},{"Id":17439,"Name":"","CurseForge":"extended-crafting-terminals-for-applied","Modrinth":""},{"Id":17440,"Name":"","CurseForge":"sweety-archeo","Modrinth":"sweety-archaeology"},{"Id":17442,"Name":"","CurseForge":"chamber-clarity-tac-z","Modrinth":"tacz-chamber-clarity"},{"Id":17443,"Name":"科技枪-社区版 (Techguns-CE)","CurseForge":"techguns-ce","Modrinth":"techguns"},{"Id":17445,"Name":"","CurseForge":"","Modrinth":"jdinpack"},{"Id":17446,"Name":"","CurseForge":"selfexpression-slim","Modrinth":"selfexpression-slim"},{"Id":17447,"Name":"","CurseForge":"nothing-dimension","Modrinth":"nothing-dimension"},{"Id":17448,"Name":"","CurseForge":"","Modrinth":"glassitemframes"},{"Id":17449,"Name":"","CurseForge":"portable-stations","Modrinth":""},{"Id":17450,"Name":"","CurseForge":"new-world-mod","Modrinth":"new-world-mod"},{"Id":17455,"Name":"","CurseForge":"book-scroll","Modrinth":"book-scroll"},{"Id":17456,"Name":"日志模组 (Journal Mod)","CurseForge":"","Modrinth":"journalmod"},{"Id":17457,"Name":"自动工具 (AutoTool)","CurseForge":"","Modrinth":"autotool-ks"},{"Id":17458,"Name":"","CurseForge":"","Modrinth":"fakevanilla"},{"Id":17463,"Name":"","CurseForge":"qualia-carpet-addition","Modrinth":"qca"},{"Id":17464,"Name":"鼠标手势非官方版 (Mouse Tweaks Unofficial)","CurseForge":"mouse-tweaks-unofficial","Modrinth":""},{"Id":17465,"Name":"","CurseForge":"baubles-lts","Modrinth":""},{"Id":17466,"Name":"","CurseForge":"elysium-api","Modrinth":"elysium-api"},{"Id":17467,"Name":"","CurseForge":"noisethreader","Modrinth":"noisethreader"},{"Id":17468,"Name":"","CurseForge":"","Modrinth":"no-bats"},{"Id":17469,"Name":"","CurseForge":"antibat","Modrinth":"antibat"},{"Id":17470,"Name":"","CurseForge":"illage-and-spell-age","Modrinth":""},{"Id":17471,"Name":"起源核心 (Origincore)","CurseForge":"origincore","Modrinth":""},{"Id":17473,"Name":"收容宠物 (Pet Connect)","CurseForge":"pet-connect","Modrinth":""},{"Id":17474,"Name":"天命时刻 (Heaven Destiny Moment)","CurseForge":"heaven-destiny-moment","Modrinth":""},{"Id":17475,"Name":"工业先锋:更多升级 (Industrial Foregoing: Extra Upgrades)","CurseForge":"industrial-foregoing-extra-upgrades","Modrinth":""},{"Id":17476,"Name":"甘蔗转换机 (GrowableOres Extension)","CurseForge":"growableores-extension","Modrinth":"growableores-extension"},{"Id":17477,"Name":"梦华构想 (OneiricConcept)","CurseForge":"oneiricconcept","Modrinth":"oneiricconcept"},{"Id":17478,"Name":"","CurseForge":"simelectricity","Modrinth":""},{"Id":17479,"Name":"","CurseForge":"somnia-refreshed","Modrinth":"somnia-refreshed"},{"Id":17480,"Name":"泰拉时刻 (TerraMoment)","CurseForge":"terramoment","Modrinth":""},{"Id":17481,"Name":"","CurseForge":"miners-diary-beyond-village","Modrinth":""},{"Id":17482,"Name":"","CurseForge":"biggerchathistory","Modrinth":""},{"Id":17483,"Name":"","CurseForge":"unifier","Modrinth":""},{"Id":17484,"Name":"","CurseForge":"compass-ribbon","Modrinth":"compass-ribbon"},{"Id":17486,"Name":"鞘翅 HUD (Elytra HUD)","CurseForge":"","Modrinth":"elytra-hud"},{"Id":17487,"Name":"","CurseForge":"creeper-drops-tnt","Modrinth":""},{"Id":17488,"Name":"","CurseForge":"visual-novel-framework","Modrinth":"visual-novel-framework"},{"Id":17489,"Name":"","CurseForge":"","Modrinth":"experience-progress"},{"Id":17490,"Name":"","CurseForge":"yapping-tooltips","Modrinth":"yapping-tooltips"},{"Id":17491,"Name":"","CurseForge":"bird-nests","Modrinth":"birdnest"},{"Id":17492,"Name":"","CurseForge":"tfc-purified-water","Modrinth":""},{"Id":17493,"Name":"粒子扩展 (ExParticle)","CurseForge":"","Modrinth":"exparticle"},{"Id":17494,"Name":"","CurseForge":"","Modrinth":"entity-render-disabler"},{"Id":17495,"Name":"","CurseForge":"quick-right-click","Modrinth":"quick-right-click"},{"Id":17496,"Name":"炼金魔法师 (Alchimicae Magicae)","CurseForge":"alchimiae-magicae","Modrinth":"alchimiae-magicae"},{"Id":17497,"Name":"","CurseForge":"thaumic-forever","Modrinth":""},{"Id":17498,"Name":"GTCEu/GTM能源拓展 (Gregfluxology)","CurseForge":"gregfluxology","Modrinth":""},{"Id":17499,"Name":"","CurseForge":"create-crowns","Modrinth":"create-crowns"},{"Id":17500,"Name":"","CurseForge":"","Modrinth":"create-modular-tools"},{"Id":17501,"Name":"","CurseForge":"ae2-wireless-terminal-lts","Modrinth":""},{"Id":17502,"Name":"并发修改什么的不要鸭 (CME is Bad)","CurseForge":"","Modrinth":"cme-is-bad"},{"Id":17503,"Name":"和谐相处的附魔书 (EnchantmentHarmony)","CurseForge":"enchantment-harmony","Modrinth":"enchantment-harmony"},{"Id":17504,"Name":"快捷锻刀 (Quick Refine)","CurseForge":"quick-refine","Modrinth":""},{"Id":17505,"Name":"耀红下界 (Rubinated Nether)","CurseForge":"rubinated-nether","Modrinth":"rubinated-nether"},{"Id":17506,"Name":"丰饶之角 (Cornucopia)","CurseForge":"cornucopia-bypizza573","Modrinth":"cornucopiabypizza573"},{"Id":17507,"Name":"","CurseForge":"epic-fight-bow-tweak","Modrinth":"epic-fight-bow-tweak"},{"Id":17509,"Name":"","CurseForge":"jjkutilities","Modrinth":""},{"Id":17510,"Name":"","CurseForge":"crystal-chronicles","Modrinth":"crystal-chronicles"},{"Id":17512,"Name":"","CurseForge":"water-particles-render-fix","Modrinth":""},{"Id":17513,"Name":"","CurseForge":"ray-trace-library","Modrinth":""},{"Id":17514,"Name":"","CurseForge":"delayed-thunder","Modrinth":"delayed-thunder"},{"Id":17515,"Name":"","CurseForge":"book-and-quick-save","Modrinth":"book-and-quick-save"},{"Id":17516,"Name":"","CurseForge":"keybaordjs","Modrinth":"keyboardjs"},{"Id":17517,"Name":"","CurseForge":"better-eating-mod","Modrinth":"better-eating"},{"Id":17519,"Name":"","CurseForge":"","Modrinth":"heart-effects"},{"Id":17520,"Name":"","CurseForge":"","Modrinth":"global-wind"},{"Id":17521,"Name":"","CurseForge":"botaniavisualizer","Modrinth":""},{"Id":17523,"Name":"","CurseForge":"manavisualizer","Modrinth":""},{"Id":17524,"Name":"","CurseForge":"easierworldcreator","Modrinth":"ewc"},{"Id":17525,"Name":"","CurseForge":"kubejs-diesel-generators","Modrinth":"kubejs-diesel-generators"},{"Id":17526,"Name":"","CurseForge":"create-slugma","Modrinth":"create-slugma"},{"Id":17527,"Name":"","CurseForge":"cobblemonrider","Modrinth":"cobblemonrider1.5"},{"Id":17528,"Name":"","CurseForge":"cobbledex","Modrinth":"cobblemon-pokedex"},{"Id":17530,"Name":"","CurseForge":"item-descriptions","Modrinth":"item-descriptions"},{"Id":17531,"Name":"","CurseForge":"item-production-lib","Modrinth":""},{"Id":17533,"Name":"","CurseForge":"connectedtexturesmod-backport","Modrinth":""},{"Id":17534,"Name":"投影打印机 (Litematica-Printer-Easyplace-Extension)","CurseForge":"","Modrinth":"litematica-printer-easyplace-extension"},{"Id":17535,"Name":"雅致画栋 (Elegant Architecture)","CurseForge":"elegant-architecture","Modrinth":"elegant-architecture"},{"Id":17536,"Name":"扩展工作台重置版 (Extended Workbench Reborn)","CurseForge":"extended-workbench-reborn","Modrinth":""},{"Id":17538,"Name":"","CurseForge":"","Modrinth":"stans-deathshot"},{"Id":17539,"Name":"","CurseForge":"pathunderfencegates","Modrinth":"pathunderfencegates"},{"Id":17541,"Name":"辣条工艺 2 (Latiao Craft 2)","CurseForge":"latiao-craft-2","Modrinth":"latiao-craft-2"},{"Id":17542,"Name":"","CurseForge":"canned","Modrinth":"canned"},{"Id":17543,"Name":"","CurseForge":"mushroooms","Modrinth":"mushroooms"},{"Id":17544,"Name":"","CurseForge":"tacz-compatibility","Modrinth":""},{"Id":17545,"Name":"","CurseForge":"","Modrinth":"baablu-natural-disasters"},{"Id":17546,"Name":"","CurseForge":"","Modrinth":"tacz-tweaks"},{"Id":17547,"Name":"","CurseForge":"un-saddle","Modrinth":""},{"Id":17548,"Name":"","CurseForge":"","Modrinth":"item-landing-sound"},{"Id":17549,"Name":"","CurseForge":"rehooked","Modrinth":"rehooked"},{"Id":17553,"Name":"更好的夜视 (Better Night Vision)","CurseForge":"better-night-vision","Modrinth":"betternightvision"},{"Id":17561,"Name":"","CurseForge":"vanilla-anvil-repair","Modrinth":""},{"Id":17562,"Name":"","CurseForge":"tiered-depths","Modrinth":""},{"Id":17563,"Name":"","CurseForge":"tooltip-tweaker","Modrinth":""},{"Id":17564,"Name":"","CurseForge":"editableedibles","Modrinth":"editableedibles"},{"Id":17566,"Name":"","CurseForge":"","Modrinth":"mcdr-command-fabric"},{"Id":17567,"Name":"","CurseForge":"betterbuilderswandsfix","Modrinth":"betterbuilderswandsfix"},{"Id":17568,"Name":"","CurseForge":"pigzilla","Modrinth":"pigzilla"},{"Id":17569,"Name":"","CurseForge":"pale-garden-backport","Modrinth":"pale-garden-backport"},{"Id":17570,"Name":"","CurseForge":"seasons-greetings","Modrinth":"seasons-greetings"},{"Id":17571,"Name":"无中生有:多彩 (Ex Nihilo: Coloratus)","CurseForge":"ex-nihilo-coloratus","Modrinth":""},{"Id":17572,"Name":"","CurseForge":"granular-mob-griefing","Modrinth":""},{"Id":17573,"Name":"","CurseForge":"","Modrinth":"dashloader-portinglib-compat"},{"Id":17574,"Name":"","CurseForge":"fermiumbooter2mixinbooter","Modrinth":""},{"Id":17575,"Name":"","CurseForge":"immersive-optimization","Modrinth":"immersive-optimization"},{"Id":17577,"Name":"","CurseForge":"tab-tweaks","Modrinth":"tabtweaks"},{"Id":17578,"Name":"","CurseForge":"fermiumasm","Modrinth":"fermiumasm"},{"Id":17579,"Name":"","CurseForge":"mc-mods-mobs-out-of-the-pool","Modrinth":""},{"Id":17580,"Name":"","CurseForge":"clipboardplus","Modrinth":"clipboard"},{"Id":17581,"Name":"","CurseForge":"misty-world-unveiled","Modrinth":""},{"Id":17582,"Name":"更多武器:传承 (Balkon's WeaponMod: Legacy)","CurseForge":"balkons-weaponmod-legacy","Modrinth":"balkons-weaponmod-legacy"},{"Id":17583,"Name":"","CurseForge":"betterendforge-backport","Modrinth":""},{"Id":17584,"Name":"","CurseForge":"epic-fight-mod-rapier-moveset-addon","Modrinth":""},{"Id":17585,"Name":"","CurseForge":"legendary-warriors","Modrinth":""},{"Id":17586,"Name":"逃逸:节日 (Scape and Run: Holiday)","CurseForge":"scape-and-run-holiday","Modrinth":"scape-and-run-holiday"},{"Id":17587,"Name":"","CurseForge":"crimson-steves-mutant-mobs","Modrinth":"crimson-steves-mutant-mobs"},{"Id":17589,"Name":"","CurseForge":"tactical-imbuements","Modrinth":""},{"Id":17590,"Name":"","CurseForge":"puppy-paws","Modrinth":"puppy-paws"},{"Id":17591,"Name":"","CurseForge":"ae2-mega-things","Modrinth":""},{"Id":17592,"Name":"","CurseForge":"solar-flux-reboot","Modrinth":""},{"Id":17593,"Name":"","CurseForge":"solar-flux-additions","Modrinth":""},{"Id":17594,"Name":"","CurseForge":"anvil-cell-workbench","Modrinth":""},{"Id":17595,"Name":"","CurseForge":"","Modrinth":"ultimate-furnace"},{"Id":17596,"Name":"","CurseForge":"create-sifting-fabric","Modrinth":"create-sifting-fabric"},{"Id":17597,"Name":"","CurseForge":"create-magics","Modrinth":"create-magics"},{"Id":17598,"Name":"","CurseForge":"","Modrinth":"crypto"},{"Id":17599,"Name":"","CurseForge":"","Modrinth":"polyfactory"},{"Id":17600,"Name":"","CurseForge":"buildcraft-legacy","Modrinth":"legacy-buildcraft"},{"Id":17602,"Name":"风暴乐事 (Wither Storm Delight)","CurseForge":"wither-storm-delight","Modrinth":""},{"Id":17604,"Name":"","CurseForge":"x1000-botania","Modrinth":"1000x-botania"},{"Id":17605,"Name":"天使指环经典版 (Angel Ring Classic)","CurseForge":"angel-ring-classic","Modrinth":""},{"Id":17607,"Name":"","CurseForge":"better-animations-collection-revived-2","Modrinth":""},{"Id":17608,"Name":"","CurseForge":"scape-and-run-parasites-tweaker","Modrinth":""},{"Id":17609,"Name":"","CurseForge":"scape-and-run-parasites-medical-addon","Modrinth":""},{"Id":17610,"Name":"","CurseForge":"durability-overhaul","Modrinth":"durability-overhaul"},{"Id":17611,"Name":"","CurseForge":"quick-hotkeys","Modrinth":"quick_hotkeys"},{"Id":17612,"Name":"永远的圣诞节 (AlwaysChristmasDay)","CurseForge":"","Modrinth":"alwayschristmasday"},{"Id":17613,"Name":"强运 (StrongLuck)","CurseForge":"","Modrinth":"strongluck"},{"Id":17615,"Name":"","CurseForge":"uncrafted","Modrinth":"uncrafted"},{"Id":17616,"Name":"","CurseForge":"mcjtylib-refilmed","Modrinth":"mcjtylib-refilmed"},{"Id":17617,"Name":"","CurseForge":"nanny","Modrinth":"nanny"},{"Id":17618,"Name":"","CurseForge":"resource-library","Modrinth":"resource-library"},{"Id":17619,"Name":"","CurseForge":"resource-config-api","Modrinth":"resource-config-api"},{"Id":17620,"Name":"","CurseForge":"","Modrinth":"threatengl"},{"Id":17621,"Name":"混合修复 (HybridFix)","CurseForge":"hybridfix","Modrinth":"hybridfix"},{"Id":17622,"Name":"","CurseForge":"","Modrinth":"disable-portal-checks"},{"Id":17623,"Name":"吃吃吃 (Eat Eat Eat)","CurseForge":"eat-eat-eat","Modrinth":""},{"Id":17624,"Name":"配方阶段 (Recipe Stages JS)","CurseForge":"","Modrinth":"recipe-stages-js"},{"Id":17625,"Name":"","CurseForge":"create-morerecipes","Modrinth":""},{"Id":17626,"Name":"","CurseForge":"portable-craft-bench","Modrinth":""},{"Id":17627,"Name":"","CurseForge":"portable-tables","Modrinth":"ptables"},{"Id":17628,"Name":"","CurseForge":"","Modrinth":"flux-network-fork-neoforge"},{"Id":17629,"Name":"","CurseForge":"resource-backpacks","Modrinth":"resource-backpacks"},{"Id":17630,"Name":"","CurseForge":"etherology","Modrinth":"etherology"},{"Id":17631,"Name":"","CurseForge":"snackpirates-aeromancy-additions","Modrinth":"aeromancy-additions"},{"Id":17632,"Name":"神化附魔 (Apothic Enchanting)","CurseForge":"apothic-enchanting","Modrinth":"apothic-enchanting"},{"Id":17633,"Name":"女仆厨房 (Maidsoul Kitchen)","CurseForge":"maidsoul-kitchen","Modrinth":"maidsoul-kitchen"},{"Id":17634,"Name":"","CurseForge":"refinedtools","Modrinth":"refinedtools"},{"Id":17635,"Name":"","CurseForge":"programmed-circuit-card","Modrinth":"programmed-circuit-card"},{"Id":17636,"Name":"AE2可切换显示元件 (AE2 Toggleable ViewCell)","CurseForge":"ae2-toogleable-view-cell","Modrinth":"ae2-toggleable-viewcell"},{"Id":17637,"Name":"","CurseForge":"","Modrinth":"cobblemon-armors"},{"Id":17638,"Name":"","CurseForge":"letmorefishlove","Modrinth":"letmorefishlove"},{"Id":17639,"Name":"","CurseForge":"lenderscataclysm-delight","Modrinth":"l_enders-cataclysm-delight"},{"Id":17640,"Name":"信仰与战争1237 (Of Faith and War 1237)","CurseForge":"ofaw-of-faith-and-war-1237","Modrinth":""},{"Id":17641,"Name":"","CurseForge":"lotmoresteves","Modrinth":""},{"Id":17643,"Name":"","CurseForge":"legendary-armory-zelda-mod","Modrinth":"legendary-armory"},{"Id":17644,"Name":"","CurseForge":"hot-update-1-23-by-gt","Modrinth":"hot-and-hotter"},{"Id":17645,"Name":"","CurseForge":"management-wanted","Modrinth":"management-wanted"},{"Id":17646,"Name":"","CurseForge":"perception","Modrinth":"perception"},{"Id":17647,"Name":"","CurseForge":"fancy-vfx","Modrinth":"fancy-vfx"},{"Id":17649,"Name":"","CurseForge":"pretty-rain","Modrinth":"pretty-rain"},{"Id":17650,"Name":"","CurseForge":"alchemancy","Modrinth":""},{"Id":17651,"Name":"","CurseForge":"flavorful","Modrinth":""},{"Id":17652,"Name":"","CurseForge":"heavy-fallings","Modrinth":"heavy-fallings"},{"Id":17653,"Name":"","CurseForge":"erudite-tweaks","Modrinth":""},{"Id":17654,"Name":"","CurseForge":"keymap-presets","Modrinth":"keymap-presets"},{"Id":17655,"Name":"","CurseForge":"mekanism-no-thanks-nbt","Modrinth":"mekanism-no-thanks-nbt"},{"Id":17656,"Name":"","CurseForge":"","Modrinth":"loot-beams-up"},{"Id":17657,"Name":"","CurseForge":"","Modrinth":"tekst"},{"Id":17658,"Name":"","CurseForge":"ledger-databases","Modrinth":"ledger-databases"},{"Id":17659,"Name":"","CurseForge":"","Modrinth":"enderman-death-silence"},{"Id":17660,"Name":"","CurseForge":"infectious-zombie-apocalypse","Modrinth":"infectious-zombie-apocalypse"},{"Id":17661,"Name":"小安的农业核心 (Xiaoan's Farming Core)","CurseForge":"xiaoanfc","Modrinth":"xiaoanfc"},{"Id":17662,"Name":"附魔金苹果重生 (Enchant Golden Apple Reborn)","CurseForge":"","Modrinth":"enchant-golden-apple-reborn"},{"Id":17663,"Name":"自定义光标:重生 (Custom Cursor: Reload)","CurseForge":"cursor-mod-reload","Modrinth":"cursor-mod-reload"},{"Id":17665,"Name":"星月改革 (Celestial Overhaul)","CurseForge":"celestial-overhaul","Modrinth":""},{"Id":17666,"Name":"简单法器 (Simple FaQi)","CurseForge":"simple-faqi","Modrinth":"simple-faqi"},{"Id":17667,"Name":"Rede的硬币 (Rede's Coins)","CurseForge":"redes-coins","Modrinth":""},{"Id":17668,"Name":"传送指令 (Teleport Commands)","CurseForge":"","Modrinth":"teleport-commands"},{"Id":17669,"Name":"","CurseForge":"","Modrinth":"generic-code-library"},{"Id":17670,"Name":"","CurseForge":"cosmeticarmours","Modrinth":"cosmeticarmours"},{"Id":17671,"Name":"","CurseForge":"ooo-jar","Modrinth":"000.jar"},{"Id":17672,"Name":"","CurseForge":"spawner-tweaks","Modrinth":""},{"Id":17673,"Name":"","CurseForge":"mob-brawlers","Modrinth":""},{"Id":17674,"Name":"","CurseForge":"","Modrinth":"transformhandlers"},{"Id":17675,"Name":"","CurseForge":"player-totem","Modrinth":"player-totem"},{"Id":17676,"Name":"","CurseForge":"","Modrinth":"screenshot-uploader"},{"Id":17677,"Name":"","CurseForge":"cute-companions-ducks","Modrinth":""},{"Id":17678,"Name":"","CurseForge":"loot-n-explore","Modrinth":"loot-n-explore"},{"Id":17679,"Name":"","CurseForge":"epic-knights-ice-and-fire","Modrinth":""},{"Id":17680,"Name":"","CurseForge":"medieval-origins-revival","Modrinth":"medieval-origins-revival"},{"Id":17681,"Name":"建筑棒 (Construction Sticks)","CurseForge":"construction-sticks","Modrinth":"construction-sticks"},{"Id":17682,"Name":"精妙物流 (Sophisticated Storage in Motion)","CurseForge":"sophisticated-storage-in-motion","Modrinth":"sophisticated-storage-in-motion"},{"Id":17683,"Name":"","CurseForge":"imgur-display","Modrinth":"imgur-display"},{"Id":17684,"Name":"更多海绵 (Extra Sponges)","CurseForge":"extra-sponges","Modrinth":"extrasponges"},{"Id":17685,"Name":"更多狼铠 (More Wolf Armors)","CurseForge":"more-wolf-armors","Modrinth":"more-wolf-armors"},{"Id":17686,"Name":"","CurseForge":"not-enough-rocks","Modrinth":"not-enough-rocks"},{"Id":17687,"Name":"","CurseForge":"pedestal","Modrinth":"pedestal"},{"Id":17688,"Name":"","CurseForge":"","Modrinth":"snowball-and-egg-knockback"},{"Id":17689,"Name":"","CurseForge":"forestry-worktable-display","Modrinth":""},{"Id":17690,"Name":"","CurseForge":"accessorify","Modrinth":"accessorify"},{"Id":17691,"Name":"高品质作物 (High Quality Crops)","CurseForge":"high-quality-crops","Modrinth":""},{"Id":17692,"Name":"不死附魔 (Immortal Enchantment)","CurseForge":"immortal-enchantment","Modrinth":"immortal-enchantment"},{"Id":17693,"Name":"魔法存储 (Awesome Storage)","CurseForge":"awesome-storage","Modrinth":""},{"Id":17694,"Name":"","CurseForge":"","Modrinth":"wallpaper"},{"Id":17696,"Name":"","CurseForge":"","Modrinth":"modify-player-data"},{"Id":17697,"Name":"ID冲突查看器 (ID Conflicts Viewer)","CurseForge":"idcv","Modrinth":"idcv"},{"Id":17698,"Name":"","CurseForge":"eaglemixins","Modrinth":""},{"Id":17699,"Name":"","CurseForge":"kubejs-thermal-augments","Modrinth":""},{"Id":17700,"Name":"","CurseForge":"","Modrinth":"minopp"},{"Id":17705,"Name":"相机大师 (Camera Anim)","CurseForge":"camera-anim","Modrinth":"camera-anim"},{"Id":17706,"Name":"通用机械升级突破:重生 (Mekanism Upgrades: Reborn)","CurseForge":"mekanism-upgrades-reborn","Modrinth":""},{"Id":17708,"Name":"","CurseForge":"epic-fight-x-irons-spells-animation-fix","Modrinth":"epic-fight-x-irons-spells-animation-fix"},{"Id":17709,"Name":"","CurseForge":"epic-fight-x-wings-reborn-animation-fix","Modrinth":""},{"Id":17710,"Name":"","CurseForge":"ef-bs","Modrinth":"battle_arts"},{"Id":17711,"Name":"","CurseForge":"alshanexs-familiars","Modrinth":"alshanexs-familiars"},{"Id":17712,"Name":"","CurseForge":"feur-skyland","Modrinth":"feur-skyland"},{"Id":17713,"Name":"","CurseForge":"balkons-expansion","Modrinth":""},{"Id":17715,"Name":"","CurseForge":"ascendant-mobs","Modrinth":"ascendant-mobs"},{"Id":17716,"Name":"羽化盔甲 (DuArm)","CurseForge":"duarm","Modrinth":""},{"Id":17717,"Name":"","CurseForge":"bomd-addon","Modrinth":""},{"Id":17718,"Name":"机械动力:空战 (Create: The Air War)","CurseForge":"create-the-air-war","Modrinth":"create-the-air-war"},{"Id":17719,"Name":"","CurseForge":"bew76","Modrinth":"bew76"},{"Id":17720,"Name":"","CurseForge":"block-swapper","Modrinth":"block-swapper"},{"Id":17721,"Name":"简易地图 (SimpleMap)","CurseForge":"","Modrinth":"simplemap"},{"Id":17722,"Name":"","CurseForge":"","Modrinth":"oneconfig"},{"Id":17723,"Name":"更多箱子非官方版 (Iron Chest Unofficial)","CurseForge":"iron-chest-unofficial","Modrinth":"iron-chest-unofficial"},{"Id":17724,"Name":"增加ID上限非官方版 (NotEnoughIDs Unofficial)","CurseForge":"notenoughids-unofficial-1-7-10","Modrinth":"notenoughids-unofficial"},{"Id":17725,"Name":"","CurseForge":"","Modrinth":"shutdown"},{"Id":17727,"Name":"局部气候&风暴经典版 (Weather and Tornadoes Classic)","CurseForge":"tornado-mod-classic","Modrinth":"weather-and-tornadoes-classic"},{"Id":17728,"Name":"","CurseForge":"strange-berries","Modrinth":"strange-berries"},{"Id":17729,"Name":"","CurseForge":"jeffs-cursed-walking-structures","Modrinth":""},{"Id":17730,"Name":"泰拉生物 (Terra Entity)","CurseForge":"terra-entity","Modrinth":"terra-entity"},{"Id":17731,"Name":"","CurseForge":"not-interested","Modrinth":"not-interested"},{"Id":17732,"Name":"","CurseForge":"","Modrinth":"new-soviet"},{"Id":17734,"Name":"","CurseForge":"gt5r","Modrinth":""},{"Id":17735,"Name":"Ragex的核科技 (Ragex's Nuclear Tech)","CurseForge":"ragexs-nuclear-tech","Modrinth":""},{"Id":17736,"Name":"","CurseForge":"civcraft","Modrinth":""},{"Id":17737,"Name":"","CurseForge":"create-springs-loaded","Modrinth":""},{"Id":17738,"Name":"","CurseForge":"mekanism-the-factory-must-grow-compatibility","Modrinth":"mekanism-tfmg-compat"},{"Id":17739,"Name":"","CurseForge":"cfm-wap","Modrinth":""},{"Id":17740,"Name":"","CurseForge":"diving-bell-for-tfc","Modrinth":""},{"Id":17742,"Name":"猪灵 多喝岩浆:重生 (Piglin Safety: Reburn)","CurseForge":"piglin-safety-reburn","Modrinth":""},{"Id":17743,"Name":"请出示证件 (Papers, Please)","CurseForge":"papers-please","Modrinth":""},{"Id":17744,"Name":"暮色森林非官方版 (The Twilight Forest Unofficial)","CurseForge":"the-twilight-forest-unofficial","Modrinth":"the-twilight-forest-unofficial"},{"Id":17745,"Name":"梦醒时分 - GUI美化 (Somnia Awoken - GUI Beautify)","CurseForge":"somnia-awoken-gui-beautify","Modrinth":""},{"Id":17746,"Name":"红石工艺 (RedStoneCraft)","CurseForge":"redstonecraft","Modrinth":"redstonecrafts"},{"Id":17747,"Name":"Mowzie 的生物饰品 (Mowzie's Mobs' Baubles)","CurseForge":"mowzies-mobs-baubles","Modrinth":""},{"Id":17750,"Name":"","CurseForge":"dungeons-and-combat","Modrinth":""},{"Id":17751,"Name":"","CurseForge":"","Modrinth":"blossomlib"},{"Id":17752,"Name":"","CurseForge":"mod-erate-loading-screen-forge","Modrinth":"mod-erate-loading-screen-forge"},{"Id":17753,"Name":"","CurseForge":"fastquit-forge","Modrinth":"fastquit-forge"},{"Id":17754,"Name":"游戏信息显示复兴版 (InGame Info Reborn)","CurseForge":"ingame-info-reborn","Modrinth":""},{"Id":17755,"Name":"","CurseForge":"","Modrinth":"overlay-mod"},{"Id":17756,"Name":"就要睡觉 (Bed Is Not Too Far Away Refoxed)","CurseForge":"bedisnottoofarawayrefoxed","Modrinth":""},{"Id":17757,"Name":"","CurseForge":"goopreforged","Modrinth":"goopreforged"},{"Id":17759,"Name":"","CurseForge":"","Modrinth":"crimes-against-the-jvm"},{"Id":17760,"Name":"","CurseForge":"better-split-stack","Modrinth":""},{"Id":17761,"Name":"","CurseForge":"sdm-engine-core","Modrinth":"sdm-core"},{"Id":17762,"Name":"","CurseForge":"sdm-stages","Modrinth":"sdm-gamestages"},{"Id":17765,"Name":"哼? (Huh?)","CurseForge":"huh-fabric","Modrinth":"huh"},{"Id":17766,"Name":"","CurseForge":"","Modrinth":"acme-admin-tools"},{"Id":17767,"Name":"","CurseForge":"custom-nausea","Modrinth":"custom-nausea"},{"Id":17767,"Name":"","CurseForge":"custom-nausea-fabric","Modrinth":""},{"Id":17768,"Name":"","CurseForge":"accesstransformerjs","Modrinth":""},{"Id":17770,"Name":"","CurseForge":"checklist","Modrinth":""},{"Id":17775,"Name":"","CurseForge":"puncher","Modrinth":"puncher"},{"Id":17776,"Name":"","CurseForge":"sensible-stackables","Modrinth":""},{"Id":17777,"Name":"","CurseForge":"rei-addons-ic2classic","Modrinth":""},{"Id":17778,"Name":"","CurseForge":"","Modrinth":"blossomtpa"},{"Id":17779,"Name":"","CurseForge":"","Modrinth":"lithium-raycast-fix"},{"Id":17780,"Name":"","CurseForge":"","Modrinth":"yet-another-minecraft-bingo"},{"Id":17781,"Name":"工具也横扫! (Tools Attack)","CurseForge":"tools-attack","Modrinth":""},{"Id":17782,"Name":"","CurseForge":"darkster-epic-guns-tacz-epicfight","Modrinth":""},{"Id":17783,"Name":"","CurseForge":"epic-tweaks","Modrinth":"epic-tweaks"},{"Id":17784,"Name":"","CurseForge":"epic-fight-x-gliders","Modrinth":""},{"Id":17787,"Name":"","CurseForge":"familiar-faces","Modrinth":"familiar-faces"},{"Id":17788,"Name":"","CurseForge":"eyes-in-the-dark","Modrinth":"scp-280,-eyes-in-the-dark"},{"Id":17790,"Name":"抓水母乐事 (Jellyfishing Delight)","CurseForge":"jellyfishing-delight","Modrinth":"jellyfishing-delight"},{"Id":17792,"Name":"","CurseForge":"carrot-rarity","Modrinth":"carrot-rarity"},{"Id":17793,"Name":"","CurseForge":"more-husbandry","Modrinth":""},{"Id":17794,"Name":"","CurseForge":"chest-with-legs","Modrinth":"chest-with-legs"},{"Id":17795,"Name":"","CurseForge":"biodiverse","Modrinth":"biodiverse"},{"Id":17796,"Name":"","CurseForge":"railway-wires","Modrinth":""},{"Id":17797,"Name":"靶心 (Bullseye)","CurseForge":"bullseye","Modrinth":""},{"Id":17800,"Name":"","CurseForge":"create-mob-spawners","Modrinth":"create-mob-spawners"},{"Id":17801,"Name":"","CurseForge":"salvation-archives-lobotomy","Modrinth":""},{"Id":17802,"Name":"","CurseForge":"rlcraft-parasited","Modrinth":""},{"Id":17802,"Name":"","CurseForge":"srpmixins","Modrinth":""},{"Id":17803,"Name":"","CurseForge":"dregora-rl","Modrinth":""},{"Id":17804,"Name":"","CurseForge":"underneath","Modrinth":""},{"Id":17805,"Name":"","CurseForge":"","Modrinth":"leaf-me-alone"},{"Id":17806,"Name":"","CurseForge":"rocket-mons","Modrinth":"rocket-mons-cobblemon"},{"Id":17807,"Name":"","CurseForge":"farsighted-mobs","Modrinth":"farsighted-mobs"},{"Id":17808,"Name":"","CurseForge":"","Modrinth":"hev-suit-voice-system"},{"Id":17808,"Name":"","CurseForge":"","Modrinth":"h.e.v-suit-voice-system"},{"Id":17809,"Name":"","CurseForge":"astral-sorcery-anti-anti-fake-player-asaafp","Modrinth":"astral-sorcery-anti-anti-fake-player"},{"Id":17810,"Name":"","CurseForge":"apotheosis-ascended","Modrinth":"apotheosis-ascended"},{"Id":17811,"Name":"","CurseForge":"","Modrinth":"better-than-wolves-legacy-unofficial"},{"Id":17812,"Name":"","CurseForge":"warium","Modrinth":"warium"},{"Id":17813,"Name":"","CurseForge":"","Modrinth":"ait_plus"},{"Id":17814,"Name":"","CurseForge":"fabulous-fletching","Modrinth":""},{"Id":17815,"Name":"","CurseForge":"universal-wrench","Modrinth":"universal-wrench"},{"Id":17816,"Name":"瓶中船 (Bottle Ship)","CurseForge":"","Modrinth":"bottle-ship"},{"Id":17817,"Name":"","CurseForge":"smallblueslimes-ladders","Modrinth":""},{"Id":17818,"Name":"末日装饰 (Doomsday Decoration)","CurseForge":"doomsday-decoration","Modrinth":""},{"Id":17819,"Name":"","CurseForge":"overclocked-watches","Modrinth":"overclocked-watches"},{"Id":17820,"Name":"","CurseForge":"portable-wardrobes-easy-armor-swap","Modrinth":""},{"Id":17824,"Name":"永恒食欲 (Eternal Appetite)","CurseForge":"eternalappetite","Modrinth":"eternalappetite"},{"Id":17826,"Name":"","CurseForge":"platform","Modrinth":"platform"},{"Id":17827,"Name":"流浪的可可豆 (Wandering Cocoa)","CurseForge":"wandering-cocoa","Modrinth":"wandering-cocoa"},{"Id":17829,"Name":"","CurseForge":"no-more-potion-particles","Modrinth":"no-more-potion-particles"},{"Id":17830,"Name":"","CurseForge":"larion-world-generation","Modrinth":"larion-worldgen"},{"Id":17831,"Name":"","CurseForge":"blueprint-texture-issue-fix","Modrinth":""},{"Id":17832,"Name":"透明披风修复 (TransparentCapesPatch)","CurseForge":"transparentcapespatch","Modrinth":"transparentcapespatch"},{"Id":17835,"Name":"","CurseForge":"saltyfish-vehicle","Modrinth":"saltyfish-vehicle"},{"Id":17837,"Name":"","CurseForge":"tacz-leawinds-third-person-compat","Modrinth":"tacz-leawinds-third-person-compat"},{"Id":17840,"Name":"血汗工厂 (GTMaid)","CurseForge":"gtmaid","Modrinth":""},{"Id":17842,"Name":"","CurseForge":"","Modrinth":"damage-tilt-fix"},{"Id":17843,"Name":"","CurseForge":"illager-raid-music","Modrinth":"illager-raid-music"},{"Id":17844,"Name":"","CurseForge":"","Modrinth":"apron"},{"Id":17845,"Name":"","CurseForge":"","Modrinth":"coordinated-compass"},{"Id":17846,"Name":"尼格洛兹·旧日重铸/尼格洛兹·万神重归 (Prinegorerouse)","CurseForge":"prinegorerouse","Modrinth":""},{"Id":17847,"Name":"","CurseForge":"feur-extension-desert","Modrinth":"feur-extension-desert"},{"Id":17848,"Name":"逃逸:疫染夸克 (Scape and Run: Parasites Quark)","CurseForge":"scape-and-run-parasites-quark","Modrinth":"scape-and-run-parasites-quark"},{"Id":17849,"Name":"","CurseForge":"infested-swarms-and-spiders","Modrinth":"infested-swarms-and-spiders"},{"Id":17850,"Name":"","CurseForge":"integrated-cataclysm","Modrinth":""},{"Id":17855,"Name":"","CurseForge":"","Modrinth":"searchworldenhance"},{"Id":17856,"Name":"殖民地女仆市民 (Colonies Maid Citizen)","CurseForge":"colonies-maid-citizen","Modrinth":"colonies-maid-citizen"},{"Id":17857,"Name":"","CurseForge":"relictium","Modrinth":"relictium"},{"Id":17858,"Name":"王城剑兰-清理 (Royal City Gladiolus Sweep)","CurseForge":"royal-city-gladiolus-sweep","Modrinth":""},{"Id":17859,"Name":"","CurseForge":"","Modrinth":"inventory-blur"},{"Id":17860,"Name":"个人云存储 (Personal Cloud Storage)","CurseForge":"personal-cloud-storage","Modrinth":"personal-cloud-storage"},{"Id":17861,"Name":"花草世界/花草剑 (Floral Herb Blade)","CurseForge":"floral-herb-blade","Modrinth":""},{"Id":17862,"Name":"","CurseForge":"","Modrinth":"omni-mobs"},{"Id":17863,"Name":"","CurseForge":"","Modrinth":"him"},{"Id":17864,"Name":"","CurseForge":"steve-anomaly","Modrinth":"the-anomaly"},{"Id":17865,"Name":"","CurseForge":"integrated-simply-swords","Modrinth":""},{"Id":17866,"Name":"黑曜石装备 (Obsidian Equipment)","CurseForge":"obsidian-equipment","Modrinth":"obsidian-equipment"},{"Id":17870,"Name":"","CurseForge":"the-deep-void","Modrinth":"(mortius)-the-deep-void"},{"Id":17872,"Name":"灾变:武器技参数配置/冒火的剑 (Cataclysm: Weapon Skill Config/ Incinerator's Try Hard)","CurseForge":"cataclysm-incinerators-try-hard","Modrinth":"incinerators-try-hard"},{"Id":17873,"Name":"","CurseForge":"scp-apollyon-scp-apollyon","Modrinth":""},{"Id":17874,"Name":"","CurseForge":"trickster","Modrinth":"trickster"},{"Id":17875,"Name":"","CurseForge":"pale-garden","Modrinth":""},{"Id":17876,"Name":"","CurseForge":"shulker-enchantments","Modrinth":"shulker-enchantments"},{"Id":17877,"Name":"","CurseForge":"xenotech","Modrinth":"xenotech"},{"Id":17878,"Name":"","CurseForge":"sewing-kit","Modrinth":""},{"Id":17879,"Name":"","CurseForge":"zephyr","Modrinth":"zephyr-mod"},{"Id":17880,"Name":"机械动力:雷达 (Create: Radars)","CurseForge":"create-radars","Modrinth":"create-radars"},{"Id":17881,"Name":"","CurseForge":"create-more-additions","Modrinth":"create-more-additions"},{"Id":17884,"Name":"","CurseForge":"minecart-turning-reforged","Modrinth":"minecart-turning"},{"Id":17884,"Name":"","CurseForge":"","Modrinth":"minecart-turning-reforged"},{"Id":17885,"Name":"","CurseForge":"offlimits","Modrinth":"offlimits"},{"Id":17886,"Name":"","CurseForge":"apotheosis-threat","Modrinth":""},{"Id":17887,"Name":"","CurseForge":"","Modrinth":"string-duper-fix-remover"},{"Id":17888,"Name":"超分辨率 (Super Resolution)","CurseForge":"super-resolution","Modrinth":"superresolution"},{"Id":17889,"Name":"","CurseForge":"special-model-loader","Modrinth":"special-model-loader"},{"Id":17890,"Name":"","CurseForge":"vs-ship-handler","Modrinth":"vs-ship-handler"},{"Id":17893,"Name":"","CurseForge":"dice-rebuild","Modrinth":"dice-rebuild"},{"Id":17894,"Name":"","CurseForge":"lets-do-apple-wood","Modrinth":"lets-do-addon-apple-wood"},{"Id":17895,"Name":"","CurseForge":"ascended-quark","Modrinth":"ascended-quark"},{"Id":17896,"Name":"","CurseForge":"enchanted-vertical-slabs","Modrinth":"enchanted-vertical-slabs"},{"Id":17897,"Name":"","CurseForge":"","Modrinth":"better-ladders"},{"Id":17898,"Name":"木韵自然 (Would)","CurseForge":"would","Modrinth":"would"},{"Id":17900,"Name":"基因工业:社区版 (Gendustry: Community Edition)","CurseForge":"gendustry-community-edition","Modrinth":"gendustry-community-edition"},{"Id":17901,"Name":"AE2修复 (AE2Fix)","CurseForge":"ae2fix","Modrinth":"ae2fix"},{"Id":17904,"Name":"更好的末地乐事 (BetterEndDelight)","CurseForge":"betterenddelight","Modrinth":"betterenddelight"},{"Id":17906,"Name":"","CurseForge":"","Modrinth":"spanish-delight-refabricated"},{"Id":17907,"Name":"装箱乐事:作物盛景 (Crate Delight: Croptopia)","CurseForge":"crate-delight-croptopia","Modrinth":"crate-delight-croptopia"},{"Id":17908,"Name":"","CurseForge":"foodspoiling","Modrinth":"foodspoiling"},{"Id":17909,"Name":"","CurseForge":"natura-legacy","Modrinth":""},{"Id":17910,"Name":"","CurseForge":"pepsied-potted-farms","Modrinth":""},{"Id":17916,"Name":"双人骑行:重铸 (Riding Partners:Reforged)","CurseForge":"riding-partners-reforged","Modrinth":"riding-partnersreforged"},{"Id":17918,"Name":"","CurseForge":"cat-healing","Modrinth":""},{"Id":17919,"Name":"","CurseForge":"plumbob","Modrinth":""},{"Id":17920,"Name":"","CurseForge":"","Modrinth":"variants-cit"},{"Id":17922,"Name":"豆浆更多附魔 (More Enchantments by Soybeani)","CurseForge":"","Modrinth":"more-enchantments-soybeani-more-enchantments"},{"Id":17924,"Name":"","CurseForge":"","Modrinth":"clearviews"},{"Id":17925,"Name":"","CurseForge":"","Modrinth":"immersive_weapons_sounds"},{"Id":17926,"Name":"无坚不摧 (Epic Fight - Invincible)","CurseForge":"epic-fight-invincible","Modrinth":"epic-fight-invincible-lib"},{"Id":17927,"Name":"","CurseForge":"ore-dict-re-order","Modrinth":""},{"Id":17928,"Name":"","CurseForge":"electrostatics","Modrinth":""},{"Id":17929,"Name":"","CurseForge":"","Modrinth":"radiocraft"},{"Id":17930,"Name":"","CurseForge":"evil-captcha","Modrinth":"evil-captcha"},{"Id":17934,"Name":"通用射击游戏比赛框架 (FPSMatch)","CurseForge":"fpsmatch","Modrinth":"fpsmatch"},{"Id":17935,"Name":"神话护符 (Mythic Charms)","CurseForge":"mythic-charms","Modrinth":"mythic-charms"},{"Id":17939,"Name":"原版补充 (Minecraft Add)","CurseForge":"minecraft-add","Modrinth":"minecraft-add"},{"Id":17940,"Name":"捆扎方块 (Stacked Blocks)","CurseForge":"stacked-blocks","Modrinth":"stacked-blocks"},{"Id":17941,"Name":"捆扎方块:农夫乐事 (Stacked Blocks: Farmer's Delight)","CurseForge":"stacked-blocks-farmers-delight","Modrinth":"stacked-blocks-farmers-delight"},{"Id":17942,"Name":"","CurseForge":"fowlplay","Modrinth":"fowlplay"},{"Id":17944,"Name":"","CurseForge":"ender-totem","Modrinth":""},{"Id":17945,"Name":"","CurseForge":"diversity","Modrinth":"faewufs-diversity"},{"Id":17946,"Name":"","CurseForge":"tonsofenchants","Modrinth":""},{"Id":17949,"Name":"","CurseForge":"cave-root","Modrinth":""},{"Id":17951,"Name":"","CurseForge":"whos-there-ghost-players","Modrinth":"whos-there-ghost-players"},{"Id":17952,"Name":"","CurseForge":"the-cuckoo-clock","Modrinth":"scp-4975,-the-cuckoo-clock"},{"Id":17953,"Name":"","CurseForge":"final-samurai","Modrinth":""},{"Id":17954,"Name":"经典战斗高塔 (Classic Battle Towers)","CurseForge":"classic-battle-towers","Modrinth":"classic-battle-towers"},{"Id":17955,"Name":"","CurseForge":"sihywtcamd-extensions","Modrinth":"difficulty-extensions"},{"Id":17957,"Name":"","CurseForge":"","Modrinth":"heart-crystals"},{"Id":17958,"Name":"","CurseForge":"partialhearts","Modrinth":"partialhearts"},{"Id":17959,"Name":"","CurseForge":"","Modrinth":"the-abyss-runtime"},{"Id":17960,"Name":"","CurseForge":"cosy-critters","Modrinth":"cosy-critters"},{"Id":17961,"Name":"","CurseForge":"omnilib","Modrinth":"omnilib"},{"Id":17962,"Name":"","CurseForge":"astages","Modrinth":""},{"Id":17963,"Name":"","CurseForge":"","Modrinth":"aloria-loading"},{"Id":17964,"Name":"","CurseForge":"","Modrinth":"parentalcontrols"},{"Id":17965,"Name":"Jason机器人 (Jason Bot)","CurseForge":"jason-bot","Modrinth":""},{"Id":17967,"Name":"高空飞行 (Fly in the sky)","CurseForge":"fly-in-the-sky","Modrinth":""},{"Id":17968,"Name":"智能鞘翅 (SmartElytra)","CurseForge":"","Modrinth":"smartelytra"},{"Id":17969,"Name":"墨工坊 (momotinker)","CurseForge":"momotinker","Modrinth":""},{"Id":17970,"Name":"每日任务 (ElectrostaticsRE)","CurseForge":"electrostaticsre","Modrinth":""},{"Id":17972,"Name":"扫帚:非官方版 (Brooms Unofficial)","CurseForge":"brooms-unofficial","Modrinth":""},{"Id":17973,"Name":"","CurseForge":"fishing-dangers","Modrinth":""},{"Id":17974,"Name":"","CurseForge":"distinctpaintings","Modrinth":"distinctpaintings"},{"Id":17975,"Name":"MC百科搜索 (Search on MCMOD)","CurseForge":"","Modrinth":"search-on-mcmod"},{"Id":17976,"Name":"","CurseForge":"infinite-lava-renewed","Modrinth":""},{"Id":17977,"Name":"更好的 Fabric 控制台 (Better Fabric Console)","CurseForge":"","Modrinth":"better-fabric-console"},{"Id":17978,"Name":"","CurseForge":"mine-tooltips","Modrinth":""},{"Id":17979,"Name":"","CurseForge":"fastchest-reforged","Modrinth":"fastchest-reforged"},{"Id":17980,"Name":"古早洞穴优化 (Better Caves Archaic)","CurseForge":"","Modrinth":"better-caves-archaic"},{"Id":17982,"Name":"","CurseForge":"alexis-64-food","Modrinth":""},{"Id":17983,"Name":"","CurseForge":"cosmetic-armor-revitalized-fabric","Modrinth":"cosmetic-armor-revitalized-fabric"},{"Id":17984,"Name":"","CurseForge":"","Modrinth":"ambience-v2"},{"Id":17985,"Name":"马儿蹦跳:拓展包 (Umapyoi:Addon Pack)","CurseForge":"umapyoi-addon-pack","Modrinth":"umapyoi-addon"},{"Id":17986,"Name":"","CurseForge":"the-god-of-roadkill","Modrinth":""},{"Id":17987,"Name":"","CurseForge":"","Modrinth":"visual-snowy-leaves"},{"Id":17988,"Name":"葱茏绿意 (Verdant)","CurseForge":"verdant","Modrinth":"verdant-mod"},{"Id":17989,"Name":"","CurseForge":"grounded","Modrinth":"grounded"},{"Id":17990,"Name":"","CurseForge":"gallery","Modrinth":"mod"},{"Id":17992,"Name":"","CurseForge":"lost-cities-survive-the-dead-edition","Modrinth":""},{"Id":17995,"Name":"虚空之力 (Power of the Void)","CurseForge":"power-of-the-void","Modrinth":""},{"Id":17996,"Name":"","CurseForge":"aerlune-rpg","Modrinth":""},{"Id":17998,"Name":"","CurseForge":"hitboxbackport","Modrinth":"hitboxbackport"},{"Id":17999,"Name":"","CurseForge":"fsmm","Modrinth":"fsmm"},{"Id":18000,"Name":"","CurseForge":"create-pantographs-and-wires","Modrinth":"create-pantographs-and-wires"},{"Id":18001,"Name":"","CurseForge":"footwork-api","Modrinth":"footwork"},{"Id":18002,"Name":"","CurseForge":"","Modrinth":"halplibe"},{"Id":18003,"Name":"战争机器库 (WarMachineLib)","CurseForge":"warmachinelib","Modrinth":"warmachinelib"},{"Id":18005,"Name":"崩溃助手 (Crash Assistant)","CurseForge":"crash-assistant","Modrinth":"crash-assistant"},{"Id":18008,"Name":"库存调整 (InventoryTweak)","CurseForge":"inventorytweak","Modrinth":"inventorytweak"},{"Id":18009,"Name":"","CurseForge":"","Modrinth":"miss"},{"Id":18010,"Name":"传说选项卡 (Legendary Tabs)","CurseForge":"legendary-tabs","Modrinth":""},{"Id":18011,"Name":"天穹突破_1.18.2 (Sky Breaker_1.18.2)","CurseForge":"sky-breaker-blue-skies-limit-remover-1-18-2","Modrinth":""},{"Id":18016,"Name":"MX的工具A (MXA Tools)","CurseForge":"","Modrinth":"mxa-tools"},{"Id":18017,"Name":"浮云工坊 (Clouder Tinker)","CurseForge":"cloudertinker","Modrinth":""},{"Id":18018,"Name":"饩雨的幸运方块 (Xiyu's Lucky Block)","CurseForge":"xiyus-lucky-block","Modrinth":""},{"Id":18019,"Name":"史诗战斗:旧版solar (EpicFight_oldsolar)","CurseForge":"","Modrinth":"epicfight_oldsolar"},{"Id":18020,"Name":"","CurseForge":"reskillable-reimagined","Modrinth":""},{"Id":18021,"Name":"","CurseForge":"renaissance-core","Modrinth":"renaissance-core"},{"Id":18022,"Name":"启动音效 (Startup Chime)","CurseForge":"","Modrinth":"startup-chime"},{"Id":18023,"Name":"竹猫的地毯扩展 (Carpet Takeneko Addition)","CurseForge":"carpet-takeneko-addition","Modrinth":"tnca"},{"Id":18024,"Name":"","CurseForge":"chain-mod","Modrinth":""},{"Id":18025,"Name":"","CurseForge":"speedrunmod","Modrinth":""},{"Id":18026,"Name":"","CurseForge":"insta-boom","Modrinth":""},{"Id":18027,"Name":"","CurseForge":"infinite-night","Modrinth":""},{"Id":18028,"Name":"","CurseForge":"nether-lake","Modrinth":""},{"Id":18029,"Name":"","CurseForge":"","Modrinth":"create-cards"},{"Id":18030,"Name":"","CurseForge":"create-powerlines","Modrinth":"create-powerlines"},{"Id":18031,"Name":"","CurseForge":"emerald-nugget","Modrinth":""},{"Id":18032,"Name":"","CurseForge":"what-dah-dog-doin-tetra-compat","Modrinth":""},{"Id":18033,"Name":"","CurseForge":"endbiome","Modrinth":""},{"Id":18034,"Name":"","CurseForge":"jasons-fly-mod","Modrinth":""},{"Id":18035,"Name":"","CurseForge":"conium","Modrinth":"conium"},{"Id":18036,"Name":"","CurseForge":"yellowtext","Modrinth":"yellowtext"},{"Id":18038,"Name":"","CurseForge":"healight","Modrinth":"healight"},{"Id":18039,"Name":"","CurseForge":"","Modrinth":"body-health-system"},{"Id":18040,"Name":"","CurseForge":"savemykeybinds","Modrinth":"savemykeybinds"},{"Id":18041,"Name":"","CurseForge":"nomenublur","Modrinth":"nomenublur"},{"Id":18043,"Name":"","CurseForge":"more-loot-tables","Modrinth":"more-loot-tables"},{"Id":18044,"Name":"","CurseForge":"noteblocks","Modrinth":""},{"Id":18045,"Name":"","CurseForge":"","Modrinth":"crunchy-crunchy-advancements"},{"Id":18046,"Name":"","CurseForge":"chainvein","Modrinth":"chainvein"},{"Id":18047,"Name":"","CurseForge":"mobs-on-rails","Modrinth":"mobs-on-rails"},{"Id":18048,"Name":"","CurseForge":"","Modrinth":"no-ones-view-model"},{"Id":18049,"Name":"","CurseForge":"gravestone-x-curios-api-compat","Modrinth":"gravestone-x-curios-api-compat"},{"Id":18050,"Name":"","CurseForge":"nolijium","Modrinth":"nolijium"},{"Id":18051,"Name":"","CurseForge":"eventslib","Modrinth":""},{"Id":18052,"Name":"乙硫醇的匠魂词条库 (EtST Lib)","CurseForge":"etst-lib","Modrinth":""},{"Id":18052,"Name":"乙硫醇的匠魂词条库 (EtST Lib) - 更新可能较慢","CurseForge":"","Modrinth":"etstlib"},{"Id":18053,"Name":"","CurseForge":"orbs-of-crafting","Modrinth":""},{"Id":18054,"Name":"Leon轨道交通Mod","CurseForge":"","Modrinth":"leonmtrmod"},{"Id":18060,"Name":"正击何键 (What I'm Pressing)","CurseForge":"whatimpressing","Modrinth":"whatimpressing"},{"Id":18063,"Name":"","CurseForge":"stackcraft","Modrinth":"stackcraft"},{"Id":18064,"Name":"","CurseForge":"","Modrinth":"extremeview"},{"Id":18065,"Name":"","CurseForge":"","Modrinth":"materialexcavator"},{"Id":18066,"Name":"","CurseForge":"","Modrinth":"startinthenether"},{"Id":18067,"Name":"","CurseForge":"mekanismmixinhelp","Modrinth":""},{"Id":18068,"Name":"简单传送指令 (Simple warp commands)","CurseForge":"simple-warp-commands","Modrinth":""},{"Id":18069,"Name":"","CurseForge":"","Modrinth":"mojangfix"},{"Id":18070,"Name":"","CurseForge":"tatercart","Modrinth":"tatercart"},{"Id":18071,"Name":"","CurseForge":"irons-spell-book-mob-attribute-addon","Modrinth":""},{"Id":18072,"Name":"EpicFight—放逐之刃 (Epic Fight — Exsilium Gladius)","CurseForge":"epic-fightexsilium-gladius","Modrinth":""},{"Id":18073,"Name":"假面骑士武器大全集 (KamenRiderWeaponCraft)","CurseForge":"kamenriderweaponcraft","Modrinth":"kamenriderweaponcraft"},{"Id":18074,"Name":"替死图腾 (Totem of Substitution)","CurseForge":"totem-of-substitution","Modrinth":""},{"Id":18075,"Name":"先遣部队 (Advance Army)","CurseForge":"advancearmy","Modrinth":"advancearmy"},{"Id":18076,"Name":"","CurseForge":"","Modrinth":"blood-blade"},{"Id":18077,"Name":"方神 (MineImpact)","CurseForge":"","Modrinth":"mineimpact"},{"Id":18078,"Name":"","CurseForge":"jadens-nether-expansion-delight","Modrinth":"jadens-nether-expansion-delight"},{"Id":18080,"Name":"","CurseForge":"archery-expansion","Modrinth":"archery-expansion"},{"Id":18081,"Name":"","CurseForge":"jjsk","Modrinth":""},{"Id":18083,"Name":"趣亦合成 (So Crazy Try)","CurseForge":"","Modrinth":"so-crazy-try"},{"Id":18084,"Name":"罪业余烬:不死者之王 (Ash Of Sin: Overlord)","CurseForge":"ash-of-sin-overlord","Modrinth":""},{"Id":18085,"Name":"碳条工艺:加强版 (Carbon Strip Craft:Augmented Edition)","CurseForge":"carbon-strip-craft-augmented-edition","Modrinth":"carbon-strip-craft-augmented-edition"},{"Id":18086,"Name":"RotP:极恶中队附属 (Ripples of the Past: Bad Company Addon)","CurseForge":"","Modrinth":"ripples-of-the-past-bad-company-addon"},{"Id":18087,"Name":"","CurseForge":"true-prime-piece","Modrinth":""},{"Id":18088,"Name":"箴言与本源 (Maxims&Core)","CurseForge":"maxims-core","Modrinth":""},{"Id":18089,"Name":"","CurseForge":"arphex","Modrinth":"arphex"},{"Id":18090,"Name":"","CurseForge":"cubic-combat-simulator","Modrinth":""},{"Id":18092,"Name":"网页地图浏览 (webmapview)","CurseForge":"webmapview","Modrinth":"webmapview"},{"Id":18093,"Name":"","CurseForge":"f3-is-my-shawty","Modrinth":""},{"Id":18094,"Name":"","CurseForge":"ollamachat","Modrinth":"ollamachat"},{"Id":18095,"Name":"","CurseForge":"potion-stacker","Modrinth":""},{"Id":18096,"Name":"","CurseForge":"","Modrinth":"betterweather"},{"Id":18097,"Name":"","CurseForge":"better-gamemode","Modrinth":""},{"Id":18098,"Name":"","CurseForge":"better-command","Modrinth":""},{"Id":18099,"Name":"","CurseForge":"fishermans-haven","Modrinth":"fishermans-haven"},{"Id":18100,"Name":"烘焙坊 (Bakeries)","CurseForge":"bakeries","Modrinth":"bakeries-renyigesai"},{"Id":18102,"Name":"","CurseForge":"female-plastic-surgery-bust-limit-tweaker","Modrinth":""},{"Id":18104,"Name":"","CurseForge":"feur-pet-hat-forge","Modrinth":"feur-pet-hat"},{"Id":18105,"Name":"","CurseForge":"feur-dimensional-skyland","Modrinth":"feur-dimensional-skyland"},{"Id":18106,"Name":"","CurseForge":"feur-colors","Modrinth":"feur-colors"},{"Id":18107,"Name":"","CurseForge":"feur-statue","Modrinth":"feur-statue"},{"Id":18108,"Name":"","CurseForge":"feur-builder","Modrinth":"feur-builder"},{"Id":18109,"Name":"","CurseForge":"feur-elytra-wings","Modrinth":"feur-elytra-wings"},{"Id":18110,"Name":"","CurseForge":"feur-magic-more-enchantments-xp-bottle-forge","Modrinth":"feur-magic"},{"Id":18111,"Name":"蔬菜乐事 (Veggies Delight)","CurseForge":"veggies-delight","Modrinth":"veggies-delight"},{"Id":18113,"Name":"斋月乐事 (Ramadan Delight)","CurseForge":"ramadan-delight","Modrinth":"ramadan-delight"},{"Id":18116,"Name":"药水核心:重生 (Potion Core Reborn)","CurseForge":"potion-core-reborn","Modrinth":""},{"Id":18118,"Name":"卷帘门 (Rolling Gate)","CurseForge":"rolling-gate","Modrinth":"rolling-gate"},{"Id":18119,"Name":"更好的Tab (BetterTab)","CurseForge":"bettertab","Modrinth":"better-tab"},{"Id":18120,"Name":"让我看看 (LetMeSeeSee(YourCode))","CurseForge":"let-me-see-see-your-code","Modrinth":"let-me-see-see-(your-code)"},{"Id":18121,"Name":"手充魔力 (Put Mana In)","CurseForge":"put-mana-in","Modrinth":""},{"Id":18122,"Name":"","CurseForge":"ars-botania","Modrinth":""},{"Id":18124,"Name":"","CurseForge":"baubles-ex","Modrinth":""},{"Id":18125,"Name":"自定义方块高亮 (Custom Block Highlight)","CurseForge":"custom-block-highlight","Modrinth":"custom-block-highlight"},{"Id":18126,"Name":"","CurseForge":"tinkers-simple","Modrinth":""},{"Id":18127,"Name":"","CurseForge":"threedmusket","Modrinth":""},{"Id":18128,"Name":"真实火车:地铁扩展 (RTMMetro)","CurseForge":"rtmmetro","Modrinth":""},{"Id":18132,"Name":"","CurseForge":"lobotomy","Modrinth":""},{"Id":18133,"Name":"","CurseForge":"parrot-power","Modrinth":""},{"Id":18134,"Name":"","CurseForge":"fortune-ores-2","Modrinth":""},{"Id":18137,"Name":"","CurseForge":"feur-dungeon-spawner","Modrinth":"feur-dungeon-spawner"},{"Id":18138,"Name":"","CurseForge":"feur-extension-fossil","Modrinth":"feur-extension-fossil"},{"Id":18139,"Name":"","CurseForge":"feur-extension-jungle","Modrinth":"feur-extension-jungle"},{"Id":18140,"Name":"赛博系统 (Cybernetic System)","CurseForge":"cybernetic-system","Modrinth":""},{"Id":18143,"Name":"","CurseForge":"liquid-dirt","Modrinth":""},{"Id":18144,"Name":"","CurseForge":"liquid-blocks","Modrinth":"liquid-blocks"},{"Id":18145,"Name":"","CurseForge":"apothic-combat","Modrinth":"apothic-combat"},{"Id":18146,"Name":"","CurseForge":"toms-trading-network","Modrinth":"toms-trading-network"},{"Id":18147,"Name":"超多苹果 (So Many Apples)","CurseForge":"somanyapples","Modrinth":""},{"Id":18148,"Name":"","CurseForge":"static-block","Modrinth":""},{"Id":18149,"Name":"","CurseForge":"cherryvillage","Modrinth":""},{"Id":18150,"Name":"管道 (Ductwork)","CurseForge":"ductwork","Modrinth":"ductwork"},{"Id":18151,"Name":"","CurseForge":"cooldown-coordinator","Modrinth":"cooldown-coordinator"},{"Id":18152,"Name":"","CurseForge":"librarianlib-continuous","Modrinth":"librarianlib-continuous"},{"Id":18153,"Name":"","CurseForge":"luna","Modrinth":"luna"},{"Id":18154,"Name":"","CurseForge":"loot-integrations","Modrinth":""},{"Id":18155,"Name":"","CurseForge":"realtimescale","Modrinth":""},{"Id":18157,"Name":"","CurseForge":"crafting-recipe-exporter","Modrinth":""},{"Id":18159,"Name":"","CurseForge":"extra-apoth-compat","Modrinth":""},{"Id":18160,"Name":"","CurseForge":"pathtracker","Modrinth":"pathtracker"},{"Id":18161,"Name":"","CurseForge":"elytra-protection","Modrinth":""},{"Id":18162,"Name":"","CurseForge":"skip-sleep","Modrinth":""},{"Id":18163,"Name":"","CurseForge":"stony-cliffs-are-cool","Modrinth":""},{"Id":18164,"Name":"","CurseForge":"simple-ender-things","Modrinth":""},{"Id":18165,"Name":"","CurseForge":"mimecraft-mod","Modrinth":""},{"Id":18166,"Name":"","CurseForge":"warden-sword","Modrinth":""},{"Id":18167,"Name":"","CurseForge":"arch-bows","Modrinth":"arch-bows"},{"Id":18168,"Name":"精美的小饰品 (Fancy Trinkets)","CurseForge":"fancy-trinkets","Modrinth":"fancy-trinkets"},{"Id":18169,"Name":"","CurseForge":"block-n-zapping","Modrinth":"block-n-zapping"},{"Id":18170,"Name":"","CurseForge":"cgs","Modrinth":"cgs"},{"Id":18171,"Name":"","CurseForge":"dynamic-trees-jadens","Modrinth":""},{"Id":18172,"Name":"","CurseForge":"dynamic-trees-croptopia-new","Modrinth":"dynamic-trees-croptopia"},{"Id":18173,"Name":"","CurseForge":"stacksonstacks","Modrinth":""},{"Id":18174,"Name":"","CurseForge":"more-of-all","Modrinth":"more-of-all"},{"Id":18177,"Name":"吉伊卡哇 (Chiikawa)","CurseForge":"chiikawa","Modrinth":""},{"Id":18178,"Name":"","CurseForge":"tolkien-tweaks","Modrinth":""},{"Id":18179,"Name":"","CurseForge":"tolkien-tweaks-mobs-edition","Modrinth":""},{"Id":18180,"Name":"","CurseForge":"soulplied-energistics","Modrinth":""},{"Id":18181,"Name":"","CurseForge":"valarian-conquest","Modrinth":"valarian-conquest"},{"Id":18182,"Name":"","CurseForge":"mowzies-mobs-respawner","Modrinth":""},{"Id":18183,"Name":"合成站:JEI版 (Crafting Station: JEI Edition)","CurseForge":"crafting-station-jei-edition","Modrinth":"crafting-station-jei-edition"},{"Id":18184,"Name":"","CurseForge":"more-waterlogging","Modrinth":""},{"Id":18185,"Name":"","CurseForge":"the-ancient-trinkets-index","Modrinth":"the-ancient-trinkets-index"},{"Id":18186,"Name":"","CurseForge":"straw-golem-rebaled-ported","Modrinth":"straw-golem-rebaled-ported"},{"Id":18187,"Name":"","CurseForge":"haybale-1-20-1","Modrinth":"haybale-ported"},{"Id":18188,"Name":"","CurseForge":"gtbcs-spelllib","Modrinth":""},{"Id":18189,"Name":"","CurseForge":"haybale","Modrinth":"haybale"},{"Id":18191,"Name":"创造也能吃 (Creative Eating Reforged)","CurseForge":"creative-eating-reforged","Modrinth":""},{"Id":18192,"Name":"Better ModList 按钮修复 (Better Mod List Button Fix)","CurseForge":"","Modrinth":"better-mod-list-button-fix"},{"Id":18193,"Name":"氪 NeoForge 版 (Krypton Foxified)","CurseForge":"krypton-foxified","Modrinth":"krypton-foxified"},{"Id":18194,"Name":"","CurseForge":"proximity-text-chat","Modrinth":"proximity-text-chat"},{"Id":18195,"Name":"","CurseForge":"justleveling-fork","Modrinth":"justleveling-fork"},{"Id":18197,"Name":"","CurseForge":"redirected","Modrinth":"redirected"},{"Id":18198,"Name":"","CurseForge":"asynchronous-reprojection","Modrinth":"asynchronous-reprojection"},{"Id":18199,"Name":"","CurseForge":"not-enough-keybinds","Modrinth":"not-enough-keybinds"},{"Id":18200,"Name":"","CurseForge":"daily-deliveries","Modrinth":"daily-deliveries"},{"Id":18201,"Name":"","CurseForge":"vehicular-movement-light","Modrinth":""},{"Id":18202,"Name":"","CurseForge":"vehicular-movement","Modrinth":""},{"Id":18203,"Name":"","CurseForge":"onysdvehicles","Modrinth":"onysd-vehicles"},{"Id":18205,"Name":"Zun号非官方NeoForge/Forge版 (ZUNPet NeoForge/Forge)","CurseForge":"zunpet-forge","Modrinth":""},{"Id":18206,"Name":"更多碰撞箱 (More Hitboxes)","CurseForge":"more-hitboxes","Modrinth":"more-hitboxes"},{"Id":18208,"Name":"沉船修复/沉船卡顿优化 (Shipwreck Fix)","CurseForge":"shipwreck-fix","Modrinth":""},{"Id":18210,"Name":"水仙辞 (Narcissus Farewell)","CurseForge":"narcissus-farewell","Modrinth":""},{"Id":18211,"Name":"百科闪烁标语++ (MCMod Splashes PlusPlus) - 部分常用","CurseForge":"mcmod-splash-plus-plus","Modrinth":""},{"Id":18211,"Name":"百科闪烁标语++ (MCMod Splashes PlusPlus) - 全","CurseForge":"","Modrinth":"mcmod-splashes-plusplus"},{"Id":18212,"Name":"随机附魔 2 (Random Enchants 2)","CurseForge":"random-enchants-2","Modrinth":""},{"Id":18213,"Name":"火花:重铸 (Sparkle: Reforge)","CurseForge":"sparkle-reforge","Modrinth":"sparkle-reforge"},{"Id":18214,"Name":"","CurseForge":"led-lighting","Modrinth":""},{"Id":18215,"Name":"","CurseForge":"not-enough-stuff","Modrinth":""},{"Id":18216,"Name":"","CurseForge":"iron-fence","Modrinth":""},{"Id":18217,"Name":"","CurseForge":"bricks","Modrinth":""},{"Id":18218,"Name":"","CurseForge":"additional-records","Modrinth":""},{"Id":18219,"Name":"","CurseForge":"firefly-bush","Modrinth":""},{"Id":18220,"Name":"","CurseForge":"spring-update-snapshot-to-old-versions","Modrinth":""},{"Id":18221,"Name":"","CurseForge":"","Modrinth":"godot-signal-system-lib"},{"Id":18223,"Name":"","CurseForge":"leons-minecraft-dungeons-paintings-mod","Modrinth":""},{"Id":18224,"Name":"","CurseForge":"miscellaneous-additions","Modrinth":"miscellaneous-additions"},{"Id":18225,"Name":"","CurseForge":"rupters-figure-mod-doors","Modrinth":""},{"Id":18226,"Name":"","CurseForge":"sophisticated-backpack-storage-emerald-upgrade","Modrinth":"sophisticated-backpackstorage-emerald-upgrade"},{"Id":18227,"Name":"","CurseForge":"sophisticatedinjections","Modrinth":"sophisticatedinjections"},{"Id":18228,"Name":"千古乐事 (Immortalers Delight)","CurseForge":"immortalers-delight","Modrinth":"immortalers-delight"},{"Id":18230,"Name":"机械动力:原子核动 (Create Nuclear)","CurseForge":"createnuclear","Modrinth":"createnuclear"},{"Id":18231,"Name":"","CurseForge":"keepthatinventoryopen","Modrinth":"keepthatinventoryopen"},{"Id":18232,"Name":"","CurseForge":"falcons-single-person-sleep","Modrinth":""},{"Id":18233,"Name":"","CurseForge":"realisticsleep","Modrinth":""},{"Id":18235,"Name":"无尽贪婪 1.1x 非官方延续版 (Avaritia 1.1x Unofficial Extended Life)","CurseForge":"avaritia-1-1x-unofficial","Modrinth":""},{"Id":18236,"Name":"","CurseForge":"lightsaberx","Modrinth":""},{"Id":18237,"Name":"","CurseForge":"prime-punch-one-punch-mod","Modrinth":""},{"Id":18238,"Name":"","CurseForge":"rpgmana","Modrinth":""},{"Id":18238,"Name":"","CurseForge":"arch-rpgmana","Modrinth":"arch-rpgmana"},{"Id":18239,"Name":"","CurseForge":"opposite-dimensions","Modrinth":""},{"Id":18240,"Name":"","CurseForge":"migamigos","Modrinth":""},{"Id":18241,"Name":"云音乐房间 / 服内一起听音乐与点歌 (CloudMusicRoom)","CurseForge":"","Modrinth":"cloudmusicroom"},{"Id":18242,"Name":"","CurseForge":"theonesmeagle","Modrinth":""},{"Id":18243,"Name":"","CurseForge":"witchery-companion","Modrinth":"witchery-companion"},{"Id":18244,"Name":"","CurseForge":"","Modrinth":"tpa-utilities"},{"Id":18245,"Name":"","CurseForge":"","Modrinth":"maplink"},{"Id":18247,"Name":"","CurseForge":"addonslib","Modrinth":"addonslib"},{"Id":18248,"Name":"硅胶玩偶 (SiliconeDolls)","CurseForge":"siliconedolls","Modrinth":"silicone-dolls"},{"Id":18249,"Name":"认证防护 (AuthShield)","CurseForge":"","Modrinth":"authshield"},{"Id":18251,"Name":"","CurseForge":"redstone-armoury-minus-thermal","Modrinth":""},{"Id":18252,"Name":"","CurseForge":"elytras-plus","Modrinth":""},{"Id":18253,"Name":"无线通用终端 (AE2UEL Wireless Universal Terminal)","CurseForge":"ae2uel-wireless-universal-terminal","Modrinth":""},{"Id":18254,"Name":"","CurseForge":"presents","Modrinth":""},{"Id":18255,"Name":"","CurseForge":"create-picky-waterwheels","Modrinth":"create-picky-wheels"},{"Id":18257,"Name":"","CurseForge":"","Modrinth":"green-screen"},{"Id":18258,"Name":"","CurseForge":"fancy-lamps","Modrinth":""},{"Id":18259,"Name":"","CurseForge":"resizing-potion","Modrinth":""},{"Id":18260,"Name":"","CurseForge":"miku","Modrinth":""},{"Id":18261,"Name":"荒古炼金炉 (Advanced Alchemical Furnace)","CurseForge":"advanced-smelter","Modrinth":"advanced-smelter"},{"Id":18262,"Name":"匠魂扩张 (Extended Tinker)","CurseForge":"extended-tinker","Modrinth":"extended-tinker"},{"Id":18265,"Name":"床单 (BedSheet)","CurseForge":"bedsheet","Modrinth":"bedsheet"},{"Id":18266,"Name":"","CurseForge":"despawn-tweaks","Modrinth":"despawn-tweaks"},{"Id":18267,"Name":"","CurseForge":"planetguylib","Modrinth":""},{"Id":18268,"Name":"","CurseForge":"","Modrinth":"fabric-kotlin-extensions"},{"Id":18269,"Name":"","CurseForge":"crafting-table-plus","Modrinth":"crafting-table-plus"},{"Id":18270,"Name":"","CurseForge":"","Modrinth":"replay-export"},{"Id":18271,"Name":"","CurseForge":"","Modrinth":"loot4everyone"},{"Id":18272,"Name":"","CurseForge":"containerfix","Modrinth":""},{"Id":18273,"Name":"","CurseForge":"cool-rain","Modrinth":"coolrain"},{"Id":18274,"Name":"鹊桥 (QueQiao)","CurseForge":"queqiao","Modrinth":""},{"Id":18275,"Name":"","CurseForge":"lexikon","Modrinth":"lexikon"},{"Id":18277,"Name":"","CurseForge":"idmid","Modrinth":"idmid"},{"Id":18278,"Name":"","CurseForge":"simple-concrete","Modrinth":"simple-concrete"},{"Id":18279,"Name":"","CurseForge":"chunk-activity-tracker","Modrinth":"chunk-activity-tracker"},{"Id":18280,"Name":"","CurseForge":"lets-do-lilis-lucky-lures","Modrinth":"lets-do-lilis-lucky-lures"},{"Id":18281,"Name":"","CurseForge":"craftformers-prime","Modrinth":"craftformers-prime"},{"Id":18282,"Name":"","CurseForge":"","Modrinth":"pumpkinmoon"},{"Id":18283,"Name":"","CurseForge":"","Modrinth":"vbe"},{"Id":18284,"Name":"","CurseForge":"arts-by-kev-mod-2023","Modrinth":"arts-by-kev-mod-2023"},{"Id":18285,"Name":"","CurseForge":"the-lion-king-mod","Modrinth":""},{"Id":18286,"Name":"史诗地形兼容版 (Epic Terrain Compatible)","CurseForge":"epic-terrain-compatible","Modrinth":""},{"Id":18287,"Name":"","CurseForge":"the-beginning","Modrinth":""},{"Id":18288,"Name":"","CurseForge":"create-simple-ore-doubling","Modrinth":"create-simple-ore-doubling"},{"Id":18289,"Name":"","CurseForge":"create-low-heated","Modrinth":"create-low-heated"},{"Id":18290,"Name":"","CurseForge":"planetguy_gizmos","Modrinth":""},{"Id":18291,"Name":"","CurseForge":"","Modrinth":"thirdpersonfix-babric"},{"Id":18292,"Name":"","CurseForge":"","Modrinth":"retrocommands"},{"Id":18293,"Name":"","CurseForge":"","Modrinth":"mana-peeper"},{"Id":18294,"Name":"复古精妙背包 (Retro Sophisticated Backpacks)","CurseForge":"retro-sophisticated-backpacks","Modrinth":""},{"Id":18295,"Name":"","CurseForge":"grid","Modrinth":"grid"},{"Id":18296,"Name":"","CurseForge":"emienchants","Modrinth":"emienchants"},{"Id":18297,"Name":"随意补充 (RandomComplement)","CurseForge":"random-complement","Modrinth":""},{"Id":18298,"Name":"","CurseForge":"thedulling","Modrinth":""},{"Id":18299,"Name":"","CurseForge":"batsword","Modrinth":""},{"Id":18300,"Name":"","CurseForge":"unidye","Modrinth":"unidye"},{"Id":18301,"Name":"","CurseForge":"obs-overlay","Modrinth":"obs-overlay"},{"Id":18303,"Name":"","CurseForge":"cwhitelist","Modrinth":"cwhitelist"},{"Id":18305,"Name":"原始鼠标输入 - 祝福版 (Raw Mouse Input - Blessed Edition)","CurseForge":"raw-mouse-input-blessed-edition","Modrinth":"raw-mouse-input-blessed-edition"},{"Id":18307,"Name":"","CurseForge":"","Modrinth":"hidetags"},{"Id":18308,"Name":"","CurseForge":"grass-kiss","Modrinth":"grass-kiss"},{"Id":18309,"Name":"","CurseForge":"attack-through-grass","Modrinth":"attack-through-grass"},{"Id":18310,"Name":"","CurseForge":"structurify","Modrinth":"structurify"},{"Id":18311,"Name":"","CurseForge":"netherite-beacons-forge","Modrinth":"netherite-beacons"},{"Id":18311,"Name":"","CurseForge":"netherite-beacons","Modrinth":""},{"Id":18312,"Name":"","CurseForge":"esoteric-reforging-forge","Modrinth":""},{"Id":18313,"Name":"","CurseForge":"dimensional-leap","Modrinth":"dimensional-leap"},{"Id":18314,"Name":"","CurseForge":"replant-it","Modrinth":"replant-it!"},{"Id":18315,"Name":"樱途旅事 (Trail&Tales Delight)","CurseForge":"trail-tales-delight","Modrinth":"trailtales-delight"},{"Id":18316,"Name":"","CurseForge":"pams-harvestcraft-2-fantasy","Modrinth":""},{"Id":18317,"Name":"","CurseForge":"alexs-caves-rad-fork","Modrinth":"alexs-caves-rad-fork"},{"Id":18318,"Name":"红包 (HongBao: Red Envelope)","CurseForge":"hongbao-red-envelope","Modrinth":"red-envelope"},{"Id":18320,"Name":"","CurseForge":"sortilege","Modrinth":"sortilege"},{"Id":18322,"Name":"","CurseForge":"lazymodder","Modrinth":""},{"Id":18325,"Name":"","CurseForge":"minecraft-skill-tree","Modrinth":""},{"Id":18326,"Name":"","CurseForge":"skill-tree-mod","Modrinth":""},{"Id":18329,"Name":"","CurseForge":"easy-shulker-access","Modrinth":""},{"Id":18330,"Name":"森罗物语 (Kaleidoscope Mod)","CurseForge":"","Modrinth":"ysbb"},{"Id":18331,"Name":"更好的火把放置重制版 (Torch Slabs Renewed)","CurseForge":"torch-slabs-renewed","Modrinth":""},{"Id":18333,"Name":"","CurseForge":"wormhole-artifact","Modrinth":"wormhole-artifact"},{"Id":18338,"Name":"机械动力:钻石工厂 (Create: Diamond & Factory)","CurseForge":"create-diamond-factory","Modrinth":"create-diamond-factory"},{"Id":18339,"Name":"","CurseForge":"create-realism","Modrinth":"create-realism"},{"Id":18340,"Name":"","CurseForge":"create-sound-of-steam","Modrinth":"create-sound-of-steam"},{"Id":18342,"Name":"","CurseForge":"big-explosives","Modrinth":"big-explosives"},{"Id":18343,"Name":"","CurseForge":"ice-cream-creepers","Modrinth":""},{"Id":18344,"Name":"","CurseForge":"aquatic-craft","Modrinth":""},{"Id":18345,"Name":"乡村酒馆 (Village Taverns)","CurseForge":"village-taverns","Modrinth":"village-taverns"},{"Id":18346,"Name":"","CurseForge":"f-a-rebirth-and-expand-genesis","Modrinth":""},{"Id":18347,"Name":"考古与化石:起源 (Fossils & Archeology Origins)","CurseForge":"fossils-archeology-origins","Modrinth":"fossilsarchaeology-origins"},{"Id":18348,"Name":"","CurseForge":"faunify","Modrinth":"faunify"},{"Id":18350,"Name":"","CurseForge":"wills-hedgehogs","Modrinth":""},{"Id":18351,"Name":"","CurseForge":"cryptography","Modrinth":"metaphysics"},{"Id":18352,"Name":"","CurseForge":"","Modrinth":"spasm"},{"Id":18353,"Name":"","CurseForge":"sketch","Modrinth":"sketch"},{"Id":18354,"Name":"","CurseForge":"","Modrinth":"envirosoundbeta"},{"Id":18355,"Name":"","CurseForge":"","Modrinth":"keybindsgaloreplus"},{"Id":18357,"Name":"","CurseForge":"","Modrinth":"smoothbeta"},{"Id":18358,"Name":"","CurseForge":"no-fall","Modrinth":""},{"Id":18359,"Name":"共有 (Kyoyu)","CurseForge":"","Modrinth":"kyoyu"},{"Id":18360,"Name":"","CurseForge":"scopic","Modrinth":""},{"Id":18361,"Name":"","CurseForge":"memory-leak-fix-unofficial-remastered","Modrinth":""},{"Id":18362,"Name":"","CurseForge":"","Modrinth":"distance-traveled-calculation"},{"Id":18364,"Name":"控制学 (Control Craft)","CurseForge":"valkyrien-skies-control-craft","Modrinth":"control-craft"},{"Id":18365,"Name":"禁忌魔法:重生 (ReForbidden Magic)","CurseForge":"reforbidden-magic","Modrinth":"reforbidden-magic"},{"Id":18366,"Name":"","CurseForge":"moses-mod","Modrinth":""},{"Id":18367,"Name":"可合成动物 (Craftable Animals)","CurseForge":"craftable-animals","Modrinth":""},{"Id":18368,"Name":"","CurseForge":"avaritia-1-1x-kedition","Modrinth":""},{"Id":18369,"Name":"更多无尽物品 (MoreAvaritia)","CurseForge":"","Modrinth":"more_avaritia"},{"Id":18370,"Name":"方块百宝箱 (The Block Box)","CurseForge":"the-block-box","Modrinth":"the-block-box"},{"Id":18371,"Name":"","CurseForge":"the-dirtbike-mod","Modrinth":""},{"Id":18372,"Name":"","CurseForge":"ore-seeds","Modrinth":""},{"Id":18374,"Name":"","CurseForge":"mana-visualizer","Modrinth":""},{"Id":18375,"Name":"","CurseForge":"custom-tnt-igniter","Modrinth":""},{"Id":18379,"Name":"","CurseForge":"jaiz","Modrinth":"jaizmod"},{"Id":18380,"Name":"","CurseForge":"harder-illage-and-spillage","Modrinth":""},{"Id":18381,"Name":"旧超神之路 (DagerCraft)","CurseForge":"dagercraft","Modrinth":"dagercraft"},{"Id":18382,"Name":"杀出重围 (Deus Ex Minecraft's Conspiracy)","CurseForge":"","Modrinth":"deus-ex-minecraft-s-conspiracy"},{"Id":18383,"Name":"神秘法杖 (Thaumic Staff)","CurseForge":"thaumic-staff","Modrinth":""},{"Id":18384,"Name":"神秘基础学玫瑰重制 (Thaumic Bases Mystical Rose Rework)","CurseForge":"thaumic-bases-mystical-rose-rework","Modrinth":""},{"Id":18385,"Name":"PVZ:润 (Rhyme PVZ)","CurseForge":"rhyme-pvz","Modrinth":"rhyme-pvz"},{"Id":18386,"Name":"","CurseForge":"ichorium-kit","Modrinth":""},{"Id":18387,"Name":"失落遗物学:重生 (ReForgotten Relics)","CurseForge":"reforgotten-relics","Modrinth":"reforgotten-relics"},{"Id":18388,"Name":"","CurseForge":"in-your-world","Modrinth":"in-your-world"},{"Id":18389,"Name":"","CurseForge":"warpapocalypse","Modrinth":"warp-apocalypse"},{"Id":18391,"Name":"奥法献祭学非官方版 (Arcane Arteries Kedition)","CurseForge":"arcane-arteries-kedition","Modrinth":""},{"Id":18392,"Name":"神秘工匠非官方版 (Thaumic Tinkerer Unofficial)","CurseForge":"thaumic-tinkerer-unofficial","Modrinth":"thaumic-tinkerer-unofficial"},{"Id":18394,"Name":"异步粒子 (AsyncParticles)","CurseForge":"asyncparticles","Modrinth":"asyncparticles"},{"Id":18395,"Name":"","CurseForge":"","Modrinth":"dragonfly-model-library"},{"Id":18396,"Name":"","CurseForge":"","Modrinth":"terrainapi"},{"Id":18397,"Name":"","CurseForge":"mnmutils","Modrinth":""},{"Id":18398,"Name":"","CurseForge":"betterend-elytra-fix","Modrinth":"betterend-elytra-fix"},{"Id":18399,"Name":"","CurseForge":"player-swap","Modrinth":""},{"Id":18400,"Name":"","CurseForge":"","Modrinth":"configurable-everything"},{"Id":18401,"Name":"","CurseForge":"no-hearts-ui","Modrinth":"no-hearts-ui"},{"Id":18404,"Name":"旧版加载进度条 (Old Loading Progress Bar)","CurseForge":"old-loading-progress-bar","Modrinth":"old-loading-progress-bar"},{"Id":18405,"Name":"","CurseForge":"raw-tp-chat-command","Modrinth":"raw-tp-chat-cmd"},{"Id":18406,"Name":"","CurseForge":"","Modrinth":"waterplayer"},{"Id":18407,"Name":"","CurseForge":"","Modrinth":"home-utilities"},{"Id":18408,"Name":"","CurseForge":"multiplayer-button","Modrinth":"multiplayer-button"},{"Id":18410,"Name":"","CurseForge":"","Modrinth":"kelui"},{"Id":18411,"Name":"","CurseForge":"brick-lib","Modrinth":""},{"Id":18412,"Name":"无拘速行 (No Slow Motion)","CurseForge":"","Modrinth":"no-slow-motion"},{"Id":18413,"Name":"","CurseForge":"","Modrinth":"minecartsloadchunks"},{"Id":18414,"Name":"","CurseForge":"guideme","Modrinth":"guideme"},{"Id":18415,"Name":"","CurseForge":"neoculus","Modrinth":"neoculus"},{"Id":18416,"Name":"与生物聊天 (ChatWithMobs)","CurseForge":"chatwithmobs","Modrinth":""},{"Id":18417,"Name":"","CurseForge":"","Modrinth":"kiss-mod"},{"Id":18418,"Name":"","CurseForge":"extra-armor-info","Modrinth":"extra-armor-info"},{"Id":18419,"Name":"","CurseForge":"feature-recycler","Modrinth":"feature-recycler"},{"Id":18420,"Name":"","CurseForge":"ore-hammer","Modrinth":"ore-hammer"},{"Id":18422,"Name":"","CurseForge":"exp-chest","Modrinth":""},{"Id":18423,"Name":"","CurseForge":"sophisticated-backpack-allthemodium-tier","Modrinth":""},{"Id":18424,"Name":"","CurseForge":"sophisticated-storage-allthemodium-tier","Modrinth":""},{"Id":18425,"Name":"","CurseForge":"the-amazing-world-of-mobs-renovated","Modrinth":"theamazingworldofmobs"},{"Id":18426,"Name":"罪业余烬:特恩佩斯特 (Ash Of Sin: Tempest)","CurseForge":"ash-of-sin-tempest","Modrinth":""},{"Id":18428,"Name":"铁锅工艺 (Cauldronfix)","CurseForge":"","Modrinth":"cauldronfix"},{"Id":18429,"Name":"","CurseForge":"spelunker","Modrinth":"spelunker"},{"Id":18430,"Name":"","CurseForge":"lil-tater-reloaded","Modrinth":"ltr"},{"Id":18431,"Name":"","CurseForge":"no-modern-industrialization-efficiency","Modrinth":""},{"Id":18432,"Name":"","CurseForge":"","Modrinth":"emitechreborn"},{"Id":18433,"Name":"","CurseForge":"","Modrinth":"better-mipmaps"},{"Id":18434,"Name":"","CurseForge":"showmyskin","Modrinth":"showmyskin"},{"Id":18435,"Name":"","CurseForge":"rhizo","Modrinth":""},{"Id":18436,"Name":"","CurseForge":"deimos-fabric-forge-neoforge","Modrinth":"deimos"},{"Id":18438,"Name":"挖掘 (Excavation)","CurseForge":"excavation","Modrinth":""},{"Id":18439,"Name":"基础末地矿石 (Basic End Ores)","CurseForge":"basic-end-ores","Modrinth":""},{"Id":18440,"Name":"","CurseForge":"","Modrinth":"portable-crafting"},{"Id":18442,"Name":"简易烧烤非官方版 (Simple BBQ Unofficial)","CurseForge":"simple-bbq-unofficial","Modrinth":""},{"Id":18444,"Name":"","CurseForge":"eggy-goodness","Modrinth":""},{"Id":18445,"Name":"幻灯片:增强 (Slide Show Pro)","CurseForge":"","Modrinth":"slide-show-pro"},{"Id":18446,"Name":"暮色:另类 (Alternative Twilight)","CurseForge":"alternative-twilight","Modrinth":"alternative_twilight"},{"Id":18449,"Name":"","CurseForge":"pepsied-item-glow","Modrinth":""},{"Id":18450,"Name":"","CurseForge":"create-bigger-storage","Modrinth":"create-bigger-storage"},{"Id":18451,"Name":"","CurseForge":"tacz-create","Modrinth":""},{"Id":18453,"Name":"","CurseForge":"terrific-trash-cans","Modrinth":""},{"Id":18455,"Name":"","CurseForge":"colourful_portals_mod","Modrinth":""},{"Id":18456,"Name":"","CurseForge":"gud_coolers","Modrinth":""},{"Id":18457,"Name":"","CurseForge":"suppergerrie2s-drone-mod","Modrinth":""},{"Id":18458,"Name":"","CurseForge":"data-essence","Modrinth":"data-essence"},{"Id":18460,"Name":"海蓝科技 (NauTec)","CurseForge":"nautec","Modrinth":"nautec"},{"Id":18462,"Name":"","CurseForge":"thorny-bush-protection","Modrinth":"thorny-bush-protection"},{"Id":18463,"Name":"","CurseForge":"gudlib","Modrinth":""},{"Id":18464,"Name":"","CurseForge":"reflex-antilag","Modrinth":"reflex-antilag"},{"Id":18465,"Name":"","CurseForge":"tfc-nei","Modrinth":""},{"Id":18467,"Name":"","CurseForge":"nolan","Modrinth":""},{"Id":18468,"Name":"","CurseForge":"","Modrinth":"repeater-sound"},{"Id":18469,"Name":"","CurseForge":"audio-hotkeys","Modrinth":"audio-hotkeys"},{"Id":18470,"Name":"","CurseForge":"voicechat-soundboard","Modrinth":"voicechat-soundboard"},{"Id":18471,"Name":"","CurseForge":"","Modrinth":"the-moon-bta"},{"Id":18472,"Name":"","CurseForge":"ftb-ocean-mobs","Modrinth":""},{"Id":18473,"Name":"","CurseForge":"fake-ores","Modrinth":""},{"Id":18475,"Name":"","CurseForge":"","Modrinth":"mystical"},{"Id":18476,"Name":"","CurseForge":"crackedzombie","Modrinth":""},{"Id":18478,"Name":"","CurseForge":"error-404-not-found-horror-entity","Modrinth":"error-404-not-found"},{"Id":18479,"Name":"","CurseForge":"amelet-totem","Modrinth":""},{"Id":18482,"Name":"","CurseForge":"tbone","Modrinth":""},{"Id":18483,"Name":"熔炉性能优化-- (FastFurnace--)","CurseForge":"fastfurnace-decreased","Modrinth":""},{"Id":18485,"Name":"","CurseForge":"","Modrinth":"cdnperspective3d"},{"Id":18486,"Name":"","CurseForge":"","Modrinth":"volume-fix"},{"Id":18487,"Name":"紫颂果集中掉落 (Chorus Fruit Drops Nearby)","CurseForge":"chorus-fruit-drops-nearby","Modrinth":"chorus-fruit-drops-nearby"},{"Id":18488,"Name":"","CurseForge":"better-first-aid-visual","Modrinth":""},{"Id":18489,"Name":"传送命令·简 (Teleport Master Simplified)","CurseForge":"tpms","Modrinth":"tpms"},{"Id":18490,"Name":"","CurseForge":"","Modrinth":"scoreboard-overhaul"},{"Id":18492,"Name":"","CurseForge":"tensura-mysticism","Modrinth":"tensura-mysticism"},{"Id":18493,"Name":"LYIVX的家具 (Furnection)","CurseForge":"furnection","Modrinth":"lyivxs-furniture"},{"Id":18494,"Name":"","CurseForge":"","Modrinth":"colourful-portals-reimagined"},{"Id":18496,"Name":"","CurseForge":"craft-of-the-wild-cotw","Modrinth":""},{"Id":18497,"Name":"","CurseForge":"piglands-mod","Modrinth":""},{"Id":18498,"Name":"","CurseForge":"vanilla-extension","Modrinth":""},{"Id":18499,"Name":"","CurseForge":"floating-items-mod-datapack","Modrinth":""},{"Id":18500,"Name":"","CurseForge":"butterfly-mania","Modrinth":""},{"Id":18501,"Name":"Rensumo 的附魔书附加包 (Rensumo Enchanted Books Addition)","CurseForge":"","Modrinth":"rensumo_enchanted_books_addition"},{"Id":18502,"Name":"","CurseForge":"kbi-mmd","Modrinth":""},{"Id":18503,"Name":"","CurseForge":"sowdispenser","Modrinth":""},{"Id":18504,"Name":"","CurseForge":"metalchests","Modrinth":""},{"Id":18505,"Name":"","CurseForge":"jumppad","Modrinth":""},{"Id":18506,"Name":"黑曜石船 (Obsidian Boat)","CurseForge":"obsidian-boat","Modrinth":""},{"Id":18507,"Name":"","CurseForge":"moderner-beta","Modrinth":"moderner-beta"},{"Id":18508,"Name":"","CurseForge":"the-animals-plus","Modrinth":""},{"Id":18509,"Name":"机械动力:流体附加 (Create:Fluid Stuffs)","CurseForge":"create-fluid-stuffs","Modrinth":""},{"Id":18510,"Name":"","CurseForge":"create-goggle-placement-lieonlion","Modrinth":"create-goggle-placement-lieonlion"},{"Id":18511,"Name":"","CurseForge":"minecraft-multi-purpose-mod","Modrinth":""},{"Id":18512,"Name":"","CurseForge":"kubeloader","Modrinth":"kubeloader"},{"Id":18513,"Name":"","CurseForge":"updatefixerupper","Modrinth":""},{"Id":18514,"Name":"","CurseForge":"configurable-data-fixers","Modrinth":"configurable-data-fixers"},{"Id":18515,"Name":"","CurseForge":"lenient-death","Modrinth":"lenient-death"},{"Id":18516,"Name":"","CurseForge":"short-circuit","Modrinth":"short-circuit"},{"Id":18517,"Name":"","CurseForge":"tensura-kumodesu","Modrinth":""},{"Id":18518,"Name":"前沿匠艺系列 (Tinkers' Advanced) - 前沿匠艺-拆分前","CurseForge":"tinkers-advanced","Modrinth":"tinkers-advanced"},{"Id":18518,"Name":"前沿匠艺系列 (Tinkers' Advanced) - 前沿匠艺-核心","CurseForge":"tinkers-advanced-core","Modrinth":"tinkers-advanced-core"},{"Id":18518,"Name":"前沿匠艺系列 (Tinkers' Advanced) - 前沿匠艺-材料","CurseForge":"tinkers-advanced-materials","Modrinth":"tinkers-advanced-materials"},{"Id":18518,"Name":"前沿匠艺系列 (Tinkers' Advanced) - 前沿匠艺-工具","CurseForge":"tinkers-advanced-tools","Modrinth":""},{"Id":18518,"Name":"前沿匠艺系列 (Tinkers' Advanced) - 前沿匠艺-实用","CurseForge":"tinkers-advanced-utilities","Modrinth":""},{"Id":18519,"Name":"","CurseForge":"more-structure-processors","Modrinth":"more-structure-processors"},{"Id":18520,"Name":"快速堆叠 (QuickStack / Quick Stack To Nearby Chests)","CurseForge":"quick-stack-to-nearby-chests","Modrinth":"quickstack"},{"Id":18522,"Name":"","CurseForge":"","Modrinth":"kallfix"},{"Id":18523,"Name":"","CurseForge":"yggdrasilproxy","Modrinth":"yggdrasil-proxy"},{"Id":18525,"Name":"神秘吐槽 (Thaumic Meme)","CurseForge":"thaumic-meme","Modrinth":""},{"Id":18526,"Name":"星光xAE2修复 (StarlightxAE)","CurseForge":"starlightxae","Modrinth":""},{"Id":18528,"Name":"","CurseForge":"","Modrinth":"levelclear"},{"Id":18529,"Name":"","CurseForge":"","Modrinth":"drops-into-shulker"},{"Id":18530,"Name":"","CurseForge":"ftb-team-dimensions","Modrinth":""},{"Id":18531,"Name":"史诗战斗-重生 (EpicFight : Resurrection)","CurseForge":"epicfight-resurrection","Modrinth":""},{"Id":18532,"Name":"","CurseForge":"epic-fight-dual-axes","Modrinth":""},{"Id":18533,"Name":"","CurseForge":"epic-fight-dual-spears","Modrinth":""},{"Id":18534,"Name":"","CurseForge":"realistic-fire-spread","Modrinth":"realistic-fire-spread"},{"Id":18535,"Name":"","CurseForge":"palehell","Modrinth":""},{"Id":18536,"Name":"伊蕾娜的扫帚 (Elaina's Broom)","CurseForge":"elainasbroom","Modrinth":""},{"Id":18537,"Name":"","CurseForge":"extinction-z","Modrinth":"extinction-z"},{"Id":18538,"Name":"","CurseForge":"pomkots-mechs","Modrinth":"pomkots-mechs"},{"Id":18540,"Name":"","CurseForge":"replication","Modrinth":"replication"},{"Id":18541,"Name":"更好的甘蔗 (Better Sugar Cane)","CurseForge":"better-sugar-cane","Modrinth":""},{"Id":18542,"Name":"","CurseForge":"apogee","Modrinth":"apogee"},{"Id":18543,"Name":"","CurseForge":"btrultima-tensura","Modrinth":""},{"Id":18544,"Name":"","CurseForge":"dragon-block-c-additions","Modrinth":""},{"Id":18545,"Name":"","CurseForge":"twilight-forest-final-boss","Modrinth":""},{"Id":18546,"Name":"","CurseForge":"generations-structures","Modrinth":"generations-structures"},{"Id":18547,"Name":"","CurseForge":"oceanic-realms","Modrinth":""},{"Id":18548,"Name":"","CurseForge":"zoomers-extended-apotheosis","Modrinth":""},{"Id":18549,"Name":"","CurseForge":"the-god","Modrinth":"the-god"},{"Id":18550,"Name":"","CurseForge":"relics-rpg","Modrinth":"relics-rpg"},{"Id":18551,"Name":"","CurseForge":"macaws-quark","Modrinth":"macaws-quark"},{"Id":18552,"Name":"","CurseForge":"macaws-sajevius","Modrinth":"macaws-sajevius"},{"Id":18553,"Name":"","CurseForge":"macaws-biomes-o-plenty","Modrinth":"macaws-biomes-o-plenty"},{"Id":18557,"Name":"","CurseForge":"macaws-modding-legacy","Modrinth":"macaws-modding-legacy"},{"Id":18558,"Name":"","CurseForge":"fancy-spawn-eggs","Modrinth":""},{"Id":18562,"Name":"不再有服务器配置 (NoMoreServerconfig)","CurseForge":"","Modrinth":"no-more-serverconfig"},{"Id":18563,"Name":"","CurseForge":"","Modrinth":"queryinfo"},{"Id":18564,"Name":"","CurseForge":"ftb-pause-menu-api","Modrinth":""},{"Id":18566,"Name":"","CurseForge":"modifyjs","Modrinth":"modifyjs"},{"Id":18567,"Name":"更好的盾牌 (BetterShields)","CurseForge":"","Modrinth":"bettershields"},{"Id":18568,"Name":"","CurseForge":"","Modrinth":"better-selection"},{"Id":18570,"Name":"亚特格拉德的信标 (Ytgld : Better Beacon)","CurseForge":"ytgld-better-beacon","Modrinth":"better-ytgld-orb-beacon"},{"Id":18571,"Name":"","CurseForge":"colorfultools","Modrinth":""},{"Id":18572,"Name":"","CurseForge":"colorful-armor","Modrinth":""},{"Id":18573,"Name":"","CurseForge":"ibench","Modrinth":""},{"Id":18574,"Name":"手持工作台 (Crafting Table on a Stick)","CurseForge":"crafting-table-on-a-stick","Modrinth":""},{"Id":18576,"Name":"","CurseForge":"villager-anti-doors","Modrinth":""},{"Id":18577,"Name":"","CurseForge":"liquipacks","Modrinth":""},{"Id":18578,"Name":"","CurseForge":"create-advanced-crafting","Modrinth":""},{"Id":18579,"Name":"","CurseForge":"create-stone-generators","Modrinth":"create-stone-generators"},{"Id":18580,"Name":"机械动力:冷汗 (Create: Cold Sweat)","CurseForge":"create-cold-sweat","Modrinth":"create-cold-sweat"},{"Id":18581,"Name":"","CurseForge":"another-unbreakable-enchantment","Modrinth":"another-unbreakable-enchantment"},{"Id":18582,"Name":"","CurseForge":"passive-piglins","Modrinth":""},{"Id":18583,"Name":"","CurseForge":"void-miners","Modrinth":""},{"Id":18584,"Name":"","CurseForge":"gwycraft-a-colored-blocks-mod","Modrinth":""},{"Id":18585,"Name":"创造沙盒 (Creative Sandbox)","CurseForge":"creative-sandbox","Modrinth":""},{"Id":18586,"Name":"告示牌预览 (SignBoard Preview)","CurseForge":"signboard-preview","Modrinth":"signboard-preview"},{"Id":18588,"Name":"","CurseForge":"hexoverpowered","Modrinth":"hexoverpowered"},{"Id":18589,"Name":"","CurseForge":"hexflow","Modrinth":"hexflow"},{"Id":18591,"Name":"MyGO!!!!!:千早爱音的前置装甲方案 (Chihaya Anno's steel sheet)","CurseForge":"","Modrinth":"chihayaannos-steel-sheet"},{"Id":18592,"Name":"更多 MekaSuit 模块 (MoreMekaSuitModules)","CurseForge":"moremekasuitmodules","Modrinth":""},{"Id":18593,"Name":"","CurseForge":"eternal-attributes","Modrinth":"eternal-attributes"},{"Id":18595,"Name":"","CurseForge":"easy-pickings","Modrinth":""},{"Id":18596,"Name":"","CurseForge":"relics-in-chaos","Modrinth":"relic-in-chaos"},{"Id":18597,"Name":"","CurseForge":"archers-expansion","Modrinth":"archers-expansion"},{"Id":18598,"Name":"","CurseForge":"witcher-rpg-class","Modrinth":"witcher-rpg-class"},{"Id":18599,"Name":"","CurseForge":"forcemaster-rpg-class","Modrinth":"forcemaster-rpg-class"},{"Id":18600,"Name":"","CurseForge":"death-knights","Modrinth":"death-knights"},{"Id":18602,"Name":"沉浸睡眠 (ImmersivelySleep)","CurseForge":"immersive-slumber","Modrinth":"immersive-slumber"},{"Id":18603,"Name":"丰富的饰品:重铸 (BountifulBaubles:Reforked)","CurseForge":"bountifulbaubles-reforked","Modrinth":"bountifulbaublesreforked"},{"Id":18604,"Name":"铁砧使用次数显示 (Anvil Uses)","CurseForge":"","Modrinth":"anvil-uses"},{"Id":18605,"Name":"我的视界 (Lucidity)","CurseForge":"","Modrinth":"lucidity-mod"},{"Id":18606,"Name":"通用机械:更多单元 (Mekanism: More Modules)","CurseForge":"","Modrinth":"mekanismmoremodules"},{"Id":18607,"Name":"","CurseForge":"","Modrinth":"better-armor-swap"},{"Id":18609,"Name":"","CurseForge":"the-man-from-the-shadow","Modrinth":"the-man-from-the-shadow-(horror)"},{"Id":18614,"Name":"","CurseForge":"arcanmira","Modrinth":""},{"Id":18615,"Name":"组队兼容:重生 (Comparties Reborn)","CurseForge":"comparties-reborn","Modrinth":""},{"Id":18616,"Name":"停碟 (Tape Stop)","CurseForge":"tape-stop","Modrinth":"tape-stop"},{"Id":18617,"Name":"","CurseForge":"persistent-inventory-search","Modrinth":"persistent-inventory-search"},{"Id":18618,"Name":"","CurseForge":"","Modrinth":"no-multiplayer-menu"},{"Id":18619,"Name":"","CurseForge":"","Modrinth":"litematica-enderchest-materials"},{"Id":18620,"Name":"","CurseForge":"","Modrinth":"mob-protect"},{"Id":18621,"Name":"","CurseForge":"only-bags","Modrinth":"only-bags"},{"Id":18622,"Name":"","CurseForge":"the-broken-script-official","Modrinth":"the-broken-script"},{"Id":18623,"Name":"","CurseForge":"torojimas-buildhelper","Modrinth":"torojima_s_buildhelper"},{"Id":18624,"Name":"扩展装备:传承 (Expanded Armory: Legacy)","CurseForge":"expanded-armory-legacy","Modrinth":"expanded-armory-legacy"},{"Id":18625,"Name":"","CurseForge":"loquat-forge","Modrinth":"loquat"},{"Id":18625,"Name":"","CurseForge":"loquat","Modrinth":""},{"Id":18626,"Name":"","CurseForge":"","Modrinth":"waterbeds"},{"Id":18627,"Name":"","CurseForge":"","Modrinth":"customhealthhud"},{"Id":18628,"Name":"","CurseForge":"","Modrinth":"fix-horizontal-camera-lag"},{"Id":18629,"Name":"机械动力:赛博护目镜 (Create: Cyber Goggles)","CurseForge":"create-cyber-goggles","Modrinth":"create-cyber-goggles"},{"Id":18630,"Name":"通用机械:元素 (Mekanism Elements)","CurseForge":"mekanism-elements","Modrinth":""},{"Id":18631,"Name":"","CurseForge":"bots-lib","Modrinth":"bots-lib"},{"Id":18633,"Name":"","CurseForge":"botaniaoverpowered","Modrinth":"botaniaoverpowered"},{"Id":18634,"Name":"蓟县生存 (Simple ? Survival)","CurseForge":"","Modrinth":"simple_no_survival"},{"Id":18637,"Name":"一键柱子生成 (Auto Pillar Generator)","CurseForge":"auto-pillar-generator","Modrinth":"auto-pillar-generator"},{"Id":18638,"Name":"","CurseForge":"vanilla-delight","Modrinth":"vanilla-delights"},{"Id":18639,"Name":"","CurseForge":"jade-vs","Modrinth":"jade-vs"},{"Id":18641,"Name":"维克的现代战争(修复版) (Vic's Modern Warfare (Patched))","CurseForge":"vics-modern-warfare-patched","Modrinth":""},{"Id":18642,"Name":"","CurseForge":"waterframesbackported","Modrinth":""},{"Id":18644,"Name":"","CurseForge":"tweakeroo-update-port","Modrinth":""},{"Id":18645,"Name":"xkball的自动汉化 (xkball's Auto Translate)","CurseForge":"xkballs-auto-translate","Modrinth":"xkballs-auto-translate"},{"Id":18647,"Name":"","CurseForge":"block-replacement-mc1-7-10","Modrinth":""},{"Id":18648,"Name":"","CurseForge":"","Modrinth":"mekanismqq"},{"Id":18650,"Name":"汇流来世 (Confluence: Otherworld)","CurseForge":"confluence","Modrinth":"confluence"},{"Id":18653,"Name":"","CurseForge":"","Modrinth":"trinkets-client-optional"},{"Id":18654,"Name":"数据包助手 (Data Packs Helper)","CurseForge":"data-packs-helper","Modrinth":""},{"Id":18655,"Name":"技能专精 (GokiSkills)","CurseForge":"","Modrinth":"gokiskills"},{"Id":18657,"Name":"有头脑的工匠 (TConstructJs)","CurseForge":"tconstructjs","Modrinth":""},{"Id":18658,"Name":"女仆仓管 (Maid Storage Manager)","CurseForge":"maid-storage-manager","Modrinth":"maid-storage-manager"},{"Id":18659,"Name":"夜雀食堂 (Mystia's Izakaya)","CurseForge":"","Modrinth":"mystias_izakaya"},{"Id":18660,"Name":"芬芳茶园 (Lush Scented Paradise)","CurseForge":"lush-scented-paradise","Modrinth":""},{"Id":18662,"Name":"","CurseForge":"hold-my-items","Modrinth":"hold-my-items"},{"Id":18663,"Name":"","CurseForge":"achievement-extreme","Modrinth":""},{"Id":18664,"Name":"","CurseForge":"advancement-extreme","Modrinth":""},{"Id":18665,"Name":"","CurseForge":"recipe-machine-stages-zs-js","Modrinth":""},{"Id":18666,"Name":"","CurseForge":"configurable-keepinventory","Modrinth":""},{"Id":18667,"Name":"","CurseForge":"better-chat","Modrinth":"betterchat"},{"Id":18668,"Name":"","CurseForge":"mekalus-oculus-fork-with-fixed-mekanism-mekasuit","Modrinth":""},{"Id":18669,"Name":"","CurseForge":"view-emc","Modrinth":""},{"Id":18670,"Name":"","CurseForge":"fortitude","Modrinth":"fortitude"},{"Id":18671,"Name":"经验矿石 (Experience Ore)","CurseForge":"experience-ore","Modrinth":""},{"Id":18672,"Name":"","CurseForge":"passive-torch","Modrinth":""},{"Id":18673,"Name":"","CurseForge":"productive-metalworks","Modrinth":""},{"Id":18674,"Name":"更好的升级:重铸 (Better Leveling: Reforge)","CurseForge":"better-leveling-respawn","Modrinth":""},{"Id":18675,"Name":"线缆控制 (Drive-By-Wire)","CurseForge":"drive-by-wire","Modrinth":"drive-by-wire"},{"Id":18676,"Name":"战魂 (Spirit of Fight)","CurseForge":"spirit-of-fight","Modrinth":"spirit-of-fight"},{"Id":18677,"Name":"","CurseForge":"grim-bleak","Modrinth":"grim-and-bleak"},{"Id":18678,"Name":"","CurseForge":"carrymyboss","Modrinth":""},{"Id":18679,"Name":"远域挡招/远程伤害保护 (Ranged Damage Limit)","CurseForge":"ranged-damage-limit","Modrinth":""},{"Id":18680,"Name":"魔法炼金 (MagiChem)","CurseForge":"magichem","Modrinth":""},{"Id":18681,"Name":"","CurseForge":"iglee-library","Modrinth":"iglee-library"},{"Id":18682,"Name":"","CurseForge":"component-model-hider","Modrinth":""},{"Id":18684,"Name":"","CurseForge":"","Modrinth":"dont-cut-tripwire"},{"Id":18685,"Name":"","CurseForge":"extra-achievements","Modrinth":""},{"Id":18686,"Name":"","CurseForge":"keybindjs","Modrinth":"keybindjs"},{"Id":18687,"Name":"","CurseForge":"","Modrinth":"autototem"},{"Id":18688,"Name":"","CurseForge":"","Modrinth":"totem-cooldown"},{"Id":18689,"Name":"物理声效:遗产 (Sound Physics Legacy)","CurseForge":"sound-physics-legacy","Modrinth":""},{"Id":18690,"Name":"砹 (Astatine)","CurseForge":"astatine","Modrinth":""},{"Id":18692,"Name":"白门的奇异附魔:苦痛长河:重生 (MarbleGate's Exotic Enchantment: Flowing Agony: Reborn)","CurseForge":"marblegates-exotic-enchantment-reborn","Modrinth":"marblegates-exotic-enchantment-flowing-agony-reborn"},{"Id":18694,"Name":"","CurseForge":"","Modrinth":"beta-1.7.3-music-discs"},{"Id":18695,"Name":"刷怪蛋 (Spawn Eggs)","CurseForge":"","Modrinth":"spawn-eggs"},{"Id":18697,"Name":"","CurseForge":"create-waystones-recipes","Modrinth":"create-waystones-recipes"},{"Id":18698,"Name":"","CurseForge":"mekanistic-routers","Modrinth":"mekanistic-routers"},{"Id":18699,"Name":"","CurseForge":"just-healerblock","Modrinth":""},{"Id":18700,"Name":"","CurseForge":"ftb-stuff-things","Modrinth":""},{"Id":18701,"Name":"","CurseForge":"infinibows","Modrinth":""},{"Id":18702,"Name":"","CurseForge":"tacz-labs","Modrinth":"tacz-labs"},{"Id":18703,"Name":"网络奇兵 (MineSHOCK: CyberNightmare)","CurseForge":"","Modrinth":"mineshock-cybernightmare"},{"Id":18704,"Name":"","CurseForge":"make-a-wish","Modrinth":""},{"Id":18705,"Name":"考古研究:探寻 (Archaeological Research:Exploration)","CurseForge":"archaeological-research-exploration","Modrinth":"archaeological_research_exploration"},{"Id":18706,"Name":"","CurseForge":"forgotten-nunchakus","Modrinth":""},{"Id":18707,"Name":"机械动力火炮:先进技术 (Create Big Cannons: Advanced Technologies)","CurseForge":"create-big-cannons-advanced-technologies","Modrinth":"create-big-cannons-advanced-technologies"},{"Id":18708,"Name":"","CurseForge":"quality-food","Modrinth":"quality-food"},{"Id":18709,"Name":"","CurseForge":"snekcraft","Modrinth":"snekcraft"},{"Id":18710,"Name":"暖灶丰年 (Hearth and Harvest)","CurseForge":"hearth-and-harvest","Modrinth":"hearth-and-harvest"},{"Id":18714,"Name":"无尽药水 (WJYS)","CurseForge":"wjys","Modrinth":""},{"Id":18715,"Name":"原理图预览 (SchematicPreview)","CurseForge":"schematicpreview","Modrinth":"schematicpreview"},{"Id":18717,"Name":"聚灵石 (Collect Emerald)","CurseForge":"","Modrinth":"collect-emerald"},{"Id":18718,"Name":"魂樱工匠 (Sakura Tinker)","CurseForge":"sakura-tinker","Modrinth":""},{"Id":18719,"Name":"","CurseForge":"","Modrinth":"appspec"},{"Id":18720,"Name":"心之水晶 (Heart Crystal)","CurseForge":"heart-crystal","Modrinth":""},{"Id":18721,"Name":"","CurseForge":"default-skin","Modrinth":"default-skin"},{"Id":18722,"Name":"让你的朋友吃! (Let Your Friend Eating!)","CurseForge":"letyourfriendeating","Modrinth":"let-your-friend-eating!"},{"Id":18724,"Name":"","CurseForge":"ftb-jei-extras","Modrinth":""},{"Id":18725,"Name":"","CurseForge":"shader-reload","Modrinth":"shader-reload"},{"Id":18726,"Name":"","CurseForge":"simple-menu","Modrinth":"simple-menu"},{"Id":18727,"Name":"","CurseForge":"","Modrinth":"asahi"},{"Id":18728,"Name":"","CurseForge":"keybindspurger","Modrinth":"keybindspurger"},{"Id":18729,"Name":"","CurseForge":"iguana-lib","Modrinth":"iguana-lib"},{"Id":18730,"Name":"地图制作工具 (Map Making Tools)","CurseForge":"map-making-tools","Modrinth":""},{"Id":18732,"Name":"","CurseForge":"turkeyutil","Modrinth":""},{"Id":18733,"Name":"","CurseForge":"drcyanos-wonderful-wands-wizarding-robes","Modrinth":""},{"Id":18734,"Name":"","CurseForge":"dragon-survival-griffin-addon","Modrinth":""},{"Id":18735,"Name":"","CurseForge":"rpg-skillpower","Modrinth":"rpgsp"},{"Id":18736,"Name":"","CurseForge":"unknown-null","Modrinth":""},{"Id":18737,"Name":"","CurseForge":"slime-origin","Modrinth":""},{"Id":18738,"Name":"","CurseForge":"","Modrinth":"slime-origin"},{"Id":18739,"Name":"","CurseForge":"slime-origin-remastered","Modrinth":"slimeorigin"},{"Id":18740,"Name":"炼金王国 (Alchemy Kingdom)","CurseForge":"alchemy-kingdom","Modrinth":""},{"Id":18741,"Name":"匠魂领域 (TconDiadema)","CurseForge":"tcondiadema","Modrinth":""},{"Id":18744,"Name":"","CurseForge":"tome-of-knowledge-sharing","Modrinth":""},{"Id":18751,"Name":"阿辰的直升机 (Archer's Helicopter)","CurseForge":"archers-helicopter","Modrinth":"archers-helicopter"},{"Id":18752,"Name":"","CurseForge":"fels-machine-guns-wwi","Modrinth":""},{"Id":18753,"Name":"","CurseForge":"fels-machine-guns-wwii","Modrinth":""},{"Id":18754,"Name":"","CurseForge":"steamatic-locomotion","Modrinth":""},{"Id":18755,"Name":"","CurseForge":"dungeon-revival","Modrinth":""},{"Id":18756,"Name":"","CurseForge":"new-order","Modrinth":""},{"Id":18757,"Name":"","CurseForge":"create-more-recipes-addon","Modrinth":"create-more-recipes-addon"},{"Id":18758,"Name":"","CurseForge":"cbc-nuclear","Modrinth":"cbc-nuclear"},{"Id":18759,"Name":"","CurseForge":"smarter-zombies","Modrinth":"smart-zombies"},{"Id":18762,"Name":"","CurseForge":"libguifoxified","Modrinth":"libguifoxified"},{"Id":18764,"Name":"","CurseForge":"valkyrien-relogs","Modrinth":"valkyrien-relogs"},{"Id":18765,"Name":"简单监控 (Section 31)","CurseForge":"","Modrinth":"section-31"},{"Id":18766,"Name":"","CurseForge":"chatalert","Modrinth":""},{"Id":18767,"Name":"","CurseForge":"aaa-particles-world","Modrinth":"aaa-particles-world"},{"Id":18768,"Name":"","CurseForge":"pick-up-tnt","Modrinth":"pick-up-tnt"},{"Id":18769,"Name":"","CurseForge":"ymadditions","Modrinth":"ymadditions"},{"Id":18770,"Name":"","CurseForge":"immersive-machinery","Modrinth":"immersive-machinery"},{"Id":18771,"Name":"","CurseForge":"xp-synthesiser","Modrinth":"xp-synthesiser"},{"Id":18772,"Name":"","CurseForge":"oredictionaryconverter","Modrinth":""},{"Id":18773,"Name":"机械动力火炮:现代战争 (CBC: Modern Warfare)","CurseForge":"cbc-modern-warfare","Modrinth":"cbcmodernwarfare"},{"Id":18774,"Name":"","CurseForge":"shulker-charm","Modrinth":"shulker-charm"},{"Id":18775,"Name":"村民证件 (Villager License)","CurseForge":"villager-license","Modrinth":""},{"Id":18776,"Name":"","CurseForge":"description-tags","Modrinth":""},{"Id":18777,"Name":"","CurseForge":"harvestwithdispenser","Modrinth":""},{"Id":18778,"Name":"物理声效 Fabric 版 (Sound Physics Fabric)","CurseForge":"sound-physics-fabric","Modrinth":""},{"Id":18779,"Name":"","CurseForge":"cleanroom-relauncher","Modrinth":"cleanroom-relauncher"},{"Id":18780,"Name":"","CurseForge":"fast-item-frames","Modrinth":"fast-item-frames"},{"Id":18781,"Name":"","CurseForge":"hammering","Modrinth":"hammering"},{"Id":18782,"Name":"","CurseForge":"vanity-elementals","Modrinth":""},{"Id":18783,"Name":"","CurseForge":"fmprojecte-advanced-alchemy-fmpeaa","Modrinth":""},{"Id":18784,"Name":"","CurseForge":"peex","Modrinth":""},{"Id":18785,"Name":"","CurseForge":"animal-origins","Modrinth":"animal-origins"},{"Id":18786,"Name":"","CurseForge":"narutoto-ninja-world","Modrinth":""},{"Id":18787,"Name":"末影卷轴 - 天际工艺 (The Ender Scrolls - Skyrimcraft)","CurseForge":"the-ender-scrolls-skyrimcraft-the-revival","Modrinth":"the-ender-scrolls-skyrimcraft"},{"Id":18788,"Name":"","CurseForge":"kingdom-of-rin-mobs","Modrinth":""},{"Id":18789,"Name":"逃逸:寄染突变体 (Scape and Run: Parasites Mutant Beasts)","CurseForge":"scape-and-run-parasites-mutant-beasts","Modrinth":""},{"Id":18790,"Name":"","CurseForge":"alexscavesexemplified","Modrinth":"alexs-caves-exemplified"},{"Id":18791,"Name":"","CurseForge":"akutolib","Modrinth":""},{"Id":18792,"Name":"","CurseForge":"","Modrinth":"glass-networking"},{"Id":18793,"Name":"","CurseForge":"","Modrinth":"always-more-items"},{"Id":18794,"Name":"","CurseForge":"","Modrinth":"mostlymodernrecipes-stationapi"},{"Id":18795,"Name":"","CurseForge":"toomuchloot","Modrinth":""},{"Id":18796,"Name":"","CurseForge":"toomuchtime","Modrinth":""},{"Id":18797,"Name":"CS2箱子 (CS2 Box)","CurseForge":"cs2-box","Modrinth":""},{"Id":18798,"Name":"","CurseForge":"edit-mob-drops","Modrinth":"edit-mob-drops"},{"Id":18800,"Name":"茶香 (Tea Aroma)","CurseForge":"tea-aroma","Modrinth":"tea-aroma"},{"Id":18804,"Name":"","CurseForge":"overpowered-inventory","Modrinth":""},{"Id":18805,"Name":"","CurseForge":"bbrains-umfixes","Modrinth":""},{"Id":18807,"Name":"食物增强 (foodstats)","CurseForge":"foodstats","Modrinth":"foodstats"},{"Id":18808,"Name":"","CurseForge":"hxchud","Modrinth":""},{"Id":18809,"Name":"排序附魔 (Sorted Enchantments)","CurseForge":"sorted-enchantments","Modrinth":"sorted-enchantments"},{"Id":18810,"Name":"刺客信条跑酷 (Assassin's Creed Parkour Mod)","CurseForge":"assassins-creed-parkour-mod","Modrinth":""},{"Id":18811,"Name":"","CurseForge":"critter-armory","Modrinth":"critter-armory"},{"Id":18812,"Name":"","CurseForge":"the-harvest","Modrinth":""},{"Id":18813,"Name":"Better 米诺菇 (Better Minoshroomtaur)","CurseForge":"better-minoshroomtaur","Modrinth":""},{"Id":18814,"Name":"哞菇与哞花 (Mooblooms and Mooshrooms)","CurseForge":"moobloom","Modrinth":""},{"Id":18815,"Name":"哞菇与哞花BoP版 (Mooblooms and Mooshrooms (BoP Edition))","CurseForge":"mooblooms-and-mooshrooms-bop-edition","Modrinth":""},{"Id":18816,"Name":"","CurseForge":"the-pure-suffering-mod","Modrinth":""},{"Id":18817,"Name":"Dooglamoo 的考古学 (Dooglamoo Jr. Archaeology)","CurseForge":"dooglamoo-jr-archaeology","Modrinth":""},{"Id":18818,"Name":"","CurseForge":"legionary","Modrinth":""},{"Id":18819,"Name":"寂静求生 (Voiceless Survival)","CurseForge":"voiceless-survival","Modrinth":"voiceless-survival"},{"Id":18820,"Name":"","CurseForge":"fabulous-blades","Modrinth":"fabulous-blade"},{"Id":18822,"Name":"棱镜计划 (Prism Plan)","CurseForge":"prism-plan","Modrinth":""},{"Id":18823,"Name":"","CurseForge":"ae2cc-bridge","Modrinth":"ae2cc"},{"Id":18824,"Name":"","CurseForge":"ae2-mousetweaks-fix","Modrinth":"ae2-mousetweaks-fix"},{"Id":18825,"Name":"","CurseForge":"ae2-qol-recipes","Modrinth":"ae2-qol-recipes"},{"Id":18826,"Name":"","CurseForge":"cyberspace","Modrinth":"cyberspace"},{"Id":18828,"Name":"展示 (Display)","CurseForge":"displayed","Modrinth":"displayed"},{"Id":18829,"Name":"","CurseForge":"engineered-compatibility","Modrinth":"engineered-compatibility"},{"Id":18830,"Name":"机械动力:深渊催化 (Create: AbyssCatalysis)","CurseForge":"create-abyss-catalysis","Modrinth":"createabysscatalysis"},{"Id":18832,"Name":"世界下载器旧版 Forge (WorldDownloaderLegacy)","CurseForge":"","Modrinth":"worlddownloaderlegacy"},{"Id":18833,"Name":"","CurseForge":"level-up-rpg-skills-more","Modrinth":""},{"Id":18835,"Name":"","CurseForge":"","Modrinth":"creeper-healing"},{"Id":18836,"Name":"渲染控制 (Render Control)","CurseForge":"render-control","Modrinth":""},{"Id":18837,"Name":"","CurseForge":"chemical-tweaker","Modrinth":""},{"Id":18838,"Name":"","CurseForge":"health-bar","Modrinth":""},{"Id":18839,"Name":"查看稀有度 (See The Rarities)","CurseForge":"see-the-rarities-str","Modrinth":""},{"Id":18840,"Name":"","CurseForge":"craftpilot","Modrinth":"craftpilot"},{"Id":18841,"Name":"复活赛 (Game of Reborn)","CurseForge":"","Modrinth":"game-of-reborn"},{"Id":18842,"Name":"无锋道 (Rough Blade)","CurseForge":"rough-blade","Modrinth":""},{"Id":18843,"Name":"","CurseForge":"","Modrinth":"dota.rg"},{"Id":18844,"Name":"苹狗 (Appledog)","CurseForge":"","Modrinth":"appledog"},{"Id":18845,"Name":"卓越前线 (Superb Warfare)","CurseForge":"superb-warfare","Modrinth":"superb-warfare"},{"Id":18847,"Name":"","CurseForge":"aetherworks-extended-life","Modrinth":"aetherworks-unofficial-extended-life"},{"Id":18848,"Name":"","CurseForge":"pomkots-mechs-extension-pack","Modrinth":"pomkots-mechs-extension-pack"},{"Id":18849,"Name":"","CurseForge":"","Modrinth":"monkey-utils"},{"Id":18850,"Name":"","CurseForge":"some-more-blocks","Modrinth":"some-more-blocks"},{"Id":18852,"Name":"","CurseForge":"projecte-advanced-alchemy","Modrinth":""},{"Id":18853,"Name":"NFF: Girls - 盖亚魔典扩展 (NFF: Girls - Grimoire of Gaia Extension)","CurseForge":"nff-girls-grimoire-of-gaia-extension","Modrinth":""},{"Id":18854,"Name":"复制核心 (RepliCore)","CurseForge":"replicore","Modrinth":"replicore"},{"Id":18855,"Name":"","CurseForge":"create-reforged-foundations","Modrinth":"create-reforged-foundations"},{"Id":18857,"Name":"我踏马吃吃吃! (Just Go Fxxking Eat)","CurseForge":"","Modrinth":"jgfe"},{"Id":18858,"Name":"更好的体验 (Better Experience)","CurseForge":"better-experience","Modrinth":"better-experience-of-confluence"},{"Id":18860,"Name":"ThDilos的狐狸起源 (ThDilos Fox Origin)","CurseForge":"thdilos-fox-origin","Modrinth":"thdilos-fox-origin"},{"Id":18861,"Name":"火影修复 (NarutoFix)","CurseForge":"narutofix","Modrinth":"narutofix"},{"Id":18862,"Name":"重锋:施魔更哥 (SlashBlade Resharped: I need more Enchantment!!!)","CurseForge":"sbr-i-need-more-enchantment","Modrinth":"slashblade-resharped-i-need-more-enchantment"},{"Id":18863,"Name":"可配置的生命值 (Configurable Health)","CurseForge":"configurable-health","Modrinth":""},{"Id":18864,"Name":"","CurseForge":"create-better-fps","Modrinth":"createbetterfps"},{"Id":18865,"Name":"","CurseForge":"create-security-program","Modrinth":"create-security-program"},{"Id":18866,"Name":"","CurseForge":"furnies","Modrinth":"furnies"},{"Id":18867,"Name":"","CurseForge":"cobblefurnies","Modrinth":"cobblefurnies"},{"Id":18868,"Name":"ThDilos的狐狸起源拓展 (ThDilos Fox Origin Expanded)","CurseForge":"thdilos-fox-origin-expanded","Modrinth":"thdilos-fox-origin-expanded"},{"Id":18869,"Name":"","CurseForge":"potion-sauce","Modrinth":"potion-sauce"},{"Id":18870,"Name":"","CurseForge":"copious-dogs-reforged","Modrinth":""},{"Id":18871,"Name":"","CurseForge":"","Modrinth":"slot-customization-api"},{"Id":18872,"Name":"","CurseForge":"hqm-keybind","Modrinth":"hqm-keybind"},{"Id":18873,"Name":"","CurseForge":"zoomer-simple-zoom","Modrinth":""},{"Id":18875,"Name":"饰品附魔 (CurioEnchantment)","CurseForge":"curioenchantment","Modrinth":""},{"Id":18876,"Name":"","CurseForge":"wall-jump-continuation","Modrinth":""},{"Id":18877,"Name":"","CurseForge":"armor-stand-shift-swap","Modrinth":"armor-stand-shift-swap"},{"Id":18878,"Name":"","CurseForge":"moveui-forged","Modrinth":"moveui-forged"},{"Id":18879,"Name":"","CurseForge":"harvest-level-config","Modrinth":""},{"Id":18880,"Name":"","CurseForge":"brewing-helper","Modrinth":"brewing-helper"},{"Id":18881,"Name":"","CurseForge":"theatrical","Modrinth":"theatrical"},{"Id":18882,"Name":"淬火煉刀通用库 (Emberthral)","CurseForge":"etlib","Modrinth":""},{"Id":18884,"Name":"","CurseForge":"tacz-addon","Modrinth":"taczaddon"},{"Id":18885,"Name":"心之容器 (Heart Canisters)","CurseForge":"","Modrinth":"heartcanister"},{"Id":18886,"Name":"枪炮“没”瑰:扩展 (Guns Without Roses : Expansions)","CurseForge":"gunswithoutroses-expansions","Modrinth":"gunswithoutrosesexpansion-s"},{"Id":18887,"Name":"","CurseForge":"ati-structures-datapack-vanilla","Modrinth":""},{"Id":18888,"Name":"机素背包 (Create: Backpack Pixel)","CurseForge":"create-backpack-pixel","Modrinth":""},{"Id":18889,"Name":"","CurseForge":"crazy-alloy","Modrinth":""},{"Id":18890,"Name":"","CurseForge":"spellbound-enchantments","Modrinth":"spellbound"},{"Id":18893,"Name":"群青:重明 (Ultramarine Rekindled)","CurseForge":"ultramarine-rekindled","Modrinth":""},{"Id":18894,"Name":"","CurseForge":"fortunas-anvil","Modrinth":""},{"Id":18895,"Name":"","CurseForge":"create-deep-dark","Modrinth":"create-deep-dark"},{"Id":18896,"Name":"","CurseForge":"create-ranged","Modrinth":"create-ranged"},{"Id":18897,"Name":"","CurseForge":"create-enlightend","Modrinth":"create-enlightend"},{"Id":18898,"Name":"","CurseForge":"create-winery","Modrinth":"create-winery"},{"Id":18899,"Name":"","CurseForge":"create-filters-anywhere","Modrinth":"create-filters-anywhere"},{"Id":18900,"Name":"","CurseForge":"create-cheese","Modrinth":"create-cheese"},{"Id":18901,"Name":"","CurseForge":"create-copper-zinc","Modrinth":"create-copper-zinc"},{"Id":18902,"Name":"","CurseForge":"create-ultimate-factory","Modrinth":"create-ultimate-factory"},{"Id":18904,"Name":"","CurseForge":"lyivxs-core","Modrinth":"lyivxs-core"},{"Id":18905,"Name":"","CurseForge":"exclusions-lib","Modrinth":"exclusions-lib"},{"Id":18906,"Name":"","CurseForge":"json-paintings","Modrinth":"json-paintings"},{"Id":18907,"Name":"","CurseForge":"keybind-unconflict","Modrinth":"keybind-unconflict"},{"Id":18908,"Name":"","CurseForge":"apothic-compats","Modrinth":""},{"Id":18909,"Name":"","CurseForge":"apothic-materials","Modrinth":""},{"Id":18910,"Name":"","CurseForge":"pepsied-easy-multi-item-sorter","Modrinth":""},{"Id":18911,"Name":"","CurseForge":"tetra-apotheosis-fix","Modrinth":"tetra-apotheosis-fix"},{"Id":18912,"Name":"","CurseForge":"ron-timer","Modrinth":""},{"Id":18913,"Name":"","CurseForge":"empty-air-bubbles","Modrinth":""},{"Id":18914,"Name":"","CurseForge":"bundles-throw-potions","Modrinth":""},{"Id":18915,"Name":"","CurseForge":"ftb-team-bases","Modrinth":""},{"Id":18916,"Name":"","CurseForge":"raworesmelting","Modrinth":"raworesmelting"},{"Id":18917,"Name":"","CurseForge":"dpt","Modrinth":"dpt"},{"Id":18918,"Name":"","CurseForge":"potion-effect-enchantment","Modrinth":""},{"Id":18919,"Name":"","CurseForge":"mythical-origins","Modrinth":""},{"Id":18920,"Name":"百般武艺 (Assorted Armaments)","CurseForge":"assorted-armaments","Modrinth":"assorted-armaments"},{"Id":18922,"Name":"","CurseForge":"spanksters-craft","Modrinth":""},{"Id":18923,"Name":"","CurseForge":"heavenlyabyss","Modrinth":""},{"Id":18924,"Name":"拔刀剑:连携攻击 (SlashBlade Twin Attack)","CurseForge":"slashblade-twin-attack","Modrinth":""},{"Id":18925,"Name":"","CurseForge":"dungeon-crawl-dimensional-patch","Modrinth":""},{"Id":18926,"Name":"","CurseForge":"apothic-supplementaries-enchanting","Modrinth":""},{"Id":18927,"Name":"","CurseForge":"apothic-amendments-enchanting","Modrinth":""},{"Id":18928,"Name":"","CurseForge":"apothic-mutant-heads","Modrinth":""},{"Id":18929,"Name":"","CurseForge":"apothic-science-moa-stats","Modrinth":""},{"Id":18930,"Name":"","CurseForge":"ye-gamol-chattels-reborn","Modrinth":"ye-gamol-chattels-reborn"},{"Id":18933,"Name":"我的更多附魔 (My More Enchantments)","CurseForge":"mme","Modrinth":"my-more-enchantments"},{"Id":18934,"Name":"一些小附魔 (Some Little Enchant)","CurseForge":"","Modrinth":"some-little-enchant"},{"Id":18935,"Name":"一脉相挖 (Mine Pulse)","CurseForge":"minepulse","Modrinth":"minepulse"},{"Id":18938,"Name":"饰品与小玩意:重铸 (Trinkets and Baubles Reforked)","CurseForge":"trinkets-and-baubles-reforked","Modrinth":"trinkets-and-baubles-reforked"},{"Id":18939,"Name":"绵阳的重锤拓展 (SunSheep's MaceExpand)","CurseForge":"","Modrinth":"mace_expand"},{"Id":18940,"Name":"复古未来 繁茂洞穴 (RetroFutureMC Lush Cave)","CurseForge":"retrofuturemc-lush-cave","Modrinth":""},{"Id":18941,"Name":"","CurseForge":"astral-dimensions-create-compats","Modrinth":""},{"Id":18942,"Name":"机械动力火炮:武器拓展 (CBC Military Supplement)","CurseForge":"cbcms","Modrinth":"cbc-more-shells"},{"Id":18943,"Name":"","CurseForge":"create-tools-n-weapons","Modrinth":""},{"Id":18944,"Name":"机械动力:流体物流 (Create Factory Logistics)","CurseForge":"create-factory-logistics","Modrinth":"create_factory_logistics"},{"Id":18945,"Name":"","CurseForge":"wiidudes-custom-origin-mod","Modrinth":"wiidudes-custom-origins"},{"Id":18946,"Name":"","CurseForge":"wolfkin-origin","Modrinth":"wolfkin-origin"},{"Id":18947,"Name":"","CurseForge":"horrorgins","Modrinth":"horrorgins"},{"Id":18949,"Name":"","CurseForge":"aspects-origins-addon","Modrinth":"aspects"},{"Id":18950,"Name":"","CurseForge":"","Modrinth":"origins-minus"},{"Id":18951,"Name":"","CurseForge":"hapi-pillager","Modrinth":"hapi-pillager"},{"Id":18952,"Name":"","CurseForge":"","Modrinth":"stop-picking"},{"Id":18953,"Name":"","CurseForge":"pepsied-super-hopper","Modrinth":""},{"Id":18954,"Name":"","CurseForge":"pepsied-item-catcher","Modrinth":""},{"Id":18955,"Name":"","CurseForge":"pepsied-auto-harvest","Modrinth":""},{"Id":18956,"Name":"","CurseForge":"","Modrinth":"bulk-compost"},{"Id":18957,"Name":"物品展示框居中 (Centered Item Frames)","CurseForge":"centered-item-frames","Modrinth":"centered-item-frames"},{"Id":18958,"Name":"","CurseForge":"undergarden-botany-pots-compats","Modrinth":""},{"Id":18961,"Name":"","CurseForge":"bbl-flight-blocks","Modrinth":"bbl-flight-blocks"},{"Id":18962,"Name":"","CurseForge":"mjs-raw-ores","Modrinth":""},{"Id":18963,"Name":"","CurseForge":"create-gunpowder-crafting","Modrinth":""},{"Id":18964,"Name":"","CurseForge":"luminax","Modrinth":"luminax"},{"Id":18965,"Name":"","CurseForge":"cable-facades","Modrinth":"cable-facades"},{"Id":18966,"Name":"简易存储 (Simple Storage)","CurseForge":"ezstorage-new","Modrinth":"ezstorage"},{"Id":18967,"Name":"问君何所需 (TellMeWhatINeed)","CurseForge":"","Modrinth":"tmwin"},{"Id":18968,"Name":"","CurseForge":"elrols-gui-elevator","Modrinth":""},{"Id":18969,"Name":"","CurseForge":"backrooms-found-footage","Modrinth":"minecraft-found-footage"},{"Id":18970,"Name":"","CurseForge":"exposure-polaroid","Modrinth":"exposure-polaroid"},{"Id":18971,"Name":"超限 (Surpass)","CurseForge":"surpass","Modrinth":"surpass"},{"Id":18972,"Name":"坠落炼金 (FallingAlchemy)","CurseForge":"fallingalchemy","Modrinth":""},{"Id":18974,"Name":"","CurseForge":"fluxloading","Modrinth":"fluxloading"},{"Id":18975,"Name":"","CurseForge":"inventory-swapping","Modrinth":"inventory-swapping"},{"Id":18976,"Name":"","CurseForge":"seamless-trading","Modrinth":"seamless-trading"},{"Id":18977,"Name":"","CurseForge":"sophisticated-auto-walk","Modrinth":""},{"Id":18978,"Name":"试验假人补丁 (MmmMmmMmmMmmPatch)","CurseForge":"mmmmmmmmmmmmpatch","Modrinth":""},{"Id":18979,"Name":"","CurseForge":"global-datapacks","Modrinth":"datapacks"},{"Id":18980,"Name":"","CurseForge":"world-guard","Modrinth":"world-guard"},{"Id":18981,"Name":"更多南瓜 (morepumpkins)","CurseForge":"more-murphy-pumpkins","Modrinth":""},{"Id":18982,"Name":"","CurseForge":"tetradelight","Modrinth":""},{"Id":18985,"Name":"","CurseForge":"heroes-of-might-and-magic-3","Modrinth":"heroes-of-might-and-magic-3"},{"Id":18986,"Name":"","CurseForge":"another-changed","Modrinth":""},{"Id":18987,"Name":"随意传送 (Freely/Randomly TP)","CurseForge":"randomly-tp","Modrinth":""},{"Id":18988,"Name":"","CurseForge":"illager-war-trireme","Modrinth":""},{"Id":18990,"Name":"","CurseForge":"hominid","Modrinth":""},{"Id":18991,"Name":"","CurseForge":"anvians-lib","Modrinth":"anvians-lib"},{"Id":18992,"Name":"","CurseForge":"","Modrinth":"creo-api"},{"Id":18993,"Name":"","CurseForge":"amblekit","Modrinth":"amblekit"},{"Id":18995,"Name":"","CurseForge":"nocubes-better-fletching-table","Modrinth":""},{"Id":18996,"Name":"更好的制箭台 (Better Fletching Table)","CurseForge":"better-fletching-table","Modrinth":"better-fletching-table"},{"Id":18997,"Name":"","CurseForge":"jsconfig","Modrinth":"jsconf"},{"Id":18998,"Name":"光速船 (Lightspeed Boat)","CurseForge":"","Modrinth":"lightspeed-boat"},{"Id":18999,"Name":"","CurseForge":"nomissingmods","Modrinth":""},{"Id":19000,"Name":"","CurseForge":"urban-decor","Modrinth":"urban-decor"},{"Id":19001,"Name":"","CurseForge":"nospawnzone","Modrinth":""},{"Id":19002,"Name":"","CurseForge":"keybind-bundles","Modrinth":"keybind-bundles"},{"Id":19003,"Name":"","CurseForge":"tc-nei-additions","Modrinth":""},{"Id":19004,"Name":"","CurseForge":"cloudflared","Modrinth":"cloudflared"},{"Id":19005,"Name":"","CurseForge":"","Modrinth":"aikoyori-tweaks"},{"Id":19006,"Name":"","CurseForge":"flowingfluidfixer","Modrinth":""},{"Id":19007,"Name":"","CurseForge":"absolutely-stuffed-uncapped-hunger-saturation","Modrinth":""},{"Id":19008,"Name":"","CurseForge":"gluttony-oversaturation-overeat","Modrinth":""},{"Id":19009,"Name":"","CurseForge":"overeat","Modrinth":""},{"Id":19010,"Name":"","CurseForge":"oversaturation","Modrinth":""},{"Id":19012,"Name":"","CurseForge":"etheria","Modrinth":"etheria"},{"Id":19014,"Name":"","CurseForge":"legends-of-slugterra","Modrinth":"legends-of-slugterra"},{"Id":19015,"Name":"","CurseForge":"gussdx-decoration","Modrinth":""},{"Id":19017,"Name":"","CurseForge":"projectiles","Modrinth":"projectiles"},{"Id":19018,"Name":"","CurseForge":"space-patrol-delta","Modrinth":""},{"Id":19019,"Name":"纸板箱特色我的世界铁路 (NeoMTR)","CurseForge":"","Modrinth":"neomtr"},{"Id":19020,"Name":"轻量合约 (Contigency Contract Lite)","CurseForge":"","Modrinth":"contigency-contract-lite"},{"Id":19021,"Name":"","CurseForge":"assorted-lib","Modrinth":"assorted-lib"},{"Id":19022,"Name":"","CurseForge":"taterlib","Modrinth":"taterlib"},{"Id":19023,"Name":"客户端飞行 (Client Flight Mod)","CurseForge":"client-flight-mod","Modrinth":""},{"Id":19024,"Name":"","CurseForge":"nocapes","Modrinth":"nocapes"},{"Id":19025,"Name":"","CurseForge":"inventory-sorter-configurable","Modrinth":"inventory-sorter-configurable"},{"Id":19026,"Name":"智能指针 (SmartCursor)","CurseForge":"smartcursor","Modrinth":""},{"Id":19027,"Name":"","CurseForge":"wither-spawn-animation","Modrinth":"wither-spawn-animation"},{"Id":19028,"Name":"","CurseForge":"","Modrinth":"boom-enchantment"},{"Id":19029,"Name":"","CurseForge":"prioritiser","Modrinth":""},{"Id":19030,"Name":"","CurseForge":"engineered-schematics","Modrinth":"engineered-schematics"},{"Id":19031,"Name":"","CurseForge":"","Modrinth":"mojangfix-stationapi-edition"},{"Id":19032,"Name":"","CurseForge":"","Modrinth":"nedologin"},{"Id":19034,"Name":"","CurseForge":"","Modrinth":"sprint-on-ctrl"},{"Id":19035,"Name":"连杀计数 (Kill Counter)","CurseForge":"kill-counter-kill-streak-announcer-mob-death","Modrinth":""},{"Id":19036,"Name":"","CurseForge":"calm-down-dog","Modrinth":"calm-down-dog"},{"Id":19037,"Name":"按键绑定隐藏器 (KeyBinding Hider)","CurseForge":"keybinding-hider","Modrinth":"keybinding-hider"},{"Id":19038,"Name":"","CurseForge":"darkerer","Modrinth":"darkerer"},{"Id":19039,"Name":"","CurseForge":"no-more-sleep-problems","Modrinth":"no-more-sleep-problems"},{"Id":19040,"Name":"","CurseForge":"configbackuper","Modrinth":"configbackuper"},{"Id":19043,"Name":"Inhrtbury 的镀金 (Inhrtbury's gilding)","CurseForge":"inhrtburys-gilding","Modrinth":""},{"Id":19044,"Name":"矿树节 (Tree Miner)","CurseForge":"","Modrinth":"tree-miner"},{"Id":19045,"Name":"超越维度 (Beyond Dimensions)","CurseForge":"beyond-dimensions","Modrinth":"beyonddimensions"},{"Id":19046,"Name":"ME吞吐量检测任务 (Throughput Quest)","CurseForge":"throughput-quest","Modrinth":""},{"Id":19048,"Name":"魔戒:中洲特质 (Lord of the Rings: Qualities of Middle-Earth)","CurseForge":"lord-of-the-rings-qualities-of-middle-earth","Modrinth":""},{"Id":19049,"Name":"魔戒-中洲特质:传承 (Lord of the Rings – Qualities of Middle-earth: Legacy)","CurseForge":"lord-of-the-rings-qualities-of-middle-earth-1-7-10","Modrinth":""},{"Id":19050,"Name":"","CurseForge":"happy-ghast-backported","Modrinth":""},{"Id":19051,"Name":"","CurseForge":"happy-ghast-backport","Modrinth":"happy-ghast"},{"Id":19052,"Name":"","CurseForge":"snowy-tents","Modrinth":"snowy-tents"},{"Id":19053,"Name":"","CurseForge":"nuhayuponosiks-bosses","Modrinth":""},{"Id":19054,"Name":"诡厄灾变 (Goety Cataclysm)","CurseForge":"goety-cataclysm","Modrinth":"goety-cataclysm"},{"Id":19055,"Name":"洞穴乐事 (Cave Delight)","CurseForge":"cave-delight","Modrinth":"cave-delight"},{"Id":19056,"Name":"","CurseForge":"","Modrinth":"forkcart"},{"Id":19057,"Name":"","CurseForge":"silentgear-compat","Modrinth":""},{"Id":19058,"Name":"永恒常春藤:重生 (Timeless Ivy:Reborn)","CurseForge":"timeless-ivy-reborn","Modrinth":"timeless-ivy-reborn"},{"Id":19059,"Name":"","CurseForge":"simply-more","Modrinth":"simplymore"},{"Id":19060,"Name":"奇湿妙想 (Wetland Whimsy)","CurseForge":"wetland-whimsy","Modrinth":"wetland-whimsy"},{"Id":19063,"Name":"求你别放了 (NoG8Put)","CurseForge":"","Modrinth":"deputy-placement-switch"},{"Id":19064,"Name":"","CurseForge":"ileafcore","Modrinth":""},{"Id":19065,"Name":"泥土工具与盔甲 (Dirt Tools and Armor)","CurseForge":"dirt-tools-and-armor","Modrinth":"dirt-tools-and-armor"},{"Id":19066,"Name":"神秘众戒 (Thaumic Rings Of Power)","CurseForge":"thaumic-rings-of-power","Modrinth":""},{"Id":19067,"Name":"魔戒:瓦尔基里兼容 (Lotr+Valkyrien Compat)","CurseForge":"lotr-valkyrien-compat","Modrinth":""},{"Id":19068,"Name":"","CurseForge":"improvedcrashreports","Modrinth":"improvedcrashreports"},{"Id":19069,"Name":"","CurseForge":"colorful-paradise","Modrinth":"colorful-paradise"},{"Id":19070,"Name":"","CurseForge":"oracle-index","Modrinth":"oracle-index"},{"Id":19071,"Name":"","CurseForge":"come-back-my-villagers","Modrinth":"come-back-my-villagers"},{"Id":19072,"Name":"带标截图 (Screenshot with Coords)","CurseForge":"screenshot-with-coords","Modrinth":"screenshot-with-coords"},{"Id":19074,"Name":"","CurseForge":"ccddi-damage-indicator","Modrinth":"ccddi"},{"Id":19075,"Name":"","CurseForge":"lidar","Modrinth":""},{"Id":19076,"Name":"","CurseForge":"","Modrinth":"segmented"},{"Id":19077,"Name":"诡法的混沌拓展 (Goety: gotta summon em all!)","CurseForge":"goety-gotta-summon-em-all","Modrinth":"goety-gotta-summon-em-all!"},{"Id":19078,"Name":"","CurseForge":"aerlune-rpg-2","Modrinth":""},{"Id":19079,"Name":"","CurseForge":"origin-furs","Modrinth":"origin-furs"},{"Id":19080,"Name":"","CurseForge":"grounded-origins-forge","Modrinth":"groundedorigins"},{"Id":19080,"Name":"","CurseForge":"grounded-origins-fabric","Modrinth":""},{"Id":19081,"Name":"禁止下落 (Nofall)","CurseForge":"","Modrinth":"sand-and-gravel-are-forbidden-to-fall"},{"Id":19082,"Name":"匠魂工具升级2 (Tinkers Tool Leveling 2)","CurseForge":"tinkers-tool-leveling-2","Modrinth":"tinkers-tool-leveling-2"},{"Id":19083,"Name":"你别造了!!! (Remodifier Reborn)","CurseForge":"remodifier-reborn","Modrinth":""},{"Id":19084,"Name":"经验球召回 (ExpOrbRecall)","CurseForge":"exporbrecall","Modrinth":"exporbrecall"},{"Id":19085,"Name":"功能性钱币 (FunctionalEconomy)","CurseForge":"functional-economy","Modrinth":"functionaleconomy"},{"Id":19086,"Name":"Ranckor的力量之戒 (Ranckor's Rings of Power)","CurseForge":"ranckors-rings-of-power","Modrinth":""},{"Id":19087,"Name":"魔戒改进:轻量版 (LOTR Improvements Lite)","CurseForge":"lotr-improvements-lite","Modrinth":""},{"Id":19090,"Name":"","CurseForge":"astounding","Modrinth":""},{"Id":19091,"Name":"地毯核心 (Carpets Core)","CurseForge":"carpets-core","Modrinth":"carpets-core"},{"Id":19092,"Name":"","CurseForge":"carpet-variants","Modrinth":"carpet-variants"},{"Id":19093,"Name":"","CurseForge":"","Modrinth":"mineable-unmineable"},{"Id":19094,"Name":"","CurseForge":"tetra-addition","Modrinth":""},{"Id":19095,"Name":"自定义Boss栏 (Styled Boss Bar API)","CurseForge":"styled-boss-bar-api","Modrinth":"styled-boss-bar-api"},{"Id":19097,"Name":"","CurseForge":"random-enchant-fix","Modrinth":"random-enchant-fix"},{"Id":19098,"Name":"沉浸式盔甲 HUD (Immersive Armor HUD)","CurseForge":"immersive-armor-hud","Modrinth":"immersive-armor-hud"},{"Id":19100,"Name":"","CurseForge":"yeast-n-feast","Modrinth":"yeast-n-feast"},{"Id":19102,"Name":"血族工匠 (VampirismTinker)","CurseForge":"vampirism-tinker","Modrinth":""},{"Id":19104,"Name":"源质管道 (Essentia Pipes)","CurseForge":"essentia-pipes","Modrinth":"essentia-pipes"},{"Id":19105,"Name":"","CurseForge":"msp-backpacks","Modrinth":""},{"Id":19106,"Name":"","CurseForge":"simple-block-breaker","Modrinth":"simple-block-breaker"},{"Id":19107,"Name":"","CurseForge":"salis-arcana","Modrinth":"salis-arcana"},{"Id":19108,"Name":"","CurseForge":"thaumic-mixins","Modrinth":""},{"Id":19109,"Name":"","CurseForge":"sanguimancypatch","Modrinth":""},{"Id":19110,"Name":"","CurseForge":"sanguimancy","Modrinth":""},{"Id":19111,"Name":"","CurseForge":"jungle-villager-trader","Modrinth":"jungle-villager-trader"},{"Id":19112,"Name":"","CurseForge":"origin-furs-unofficial-forge-fork","Modrinth":"origin-furs-unofficial-forge-port"},{"Id":19113,"Name":"消逝的凋灵之首 (Ephemeral Wither Skulls)","CurseForge":"ephemeral-wither-skulls","Modrinth":"ephemeral-wither-skulls"},{"Id":19114,"Name":"狐友 (Fox Friend)","CurseForge":"fox-friend","Modrinth":"fox-friend"},{"Id":19116,"Name":"","CurseForge":"simple-difficulty-reforged","Modrinth":""},{"Id":19117,"Name":"","CurseForge":"create-recycling-everything-neo","Modrinth":""},{"Id":19119,"Name":"","CurseForge":"aquaticamod","Modrinth":""},{"Id":19120,"Name":"","CurseForge":"hell-ntegrations","Modrinth":""},{"Id":19121,"Name":"更多的附魔食物 (More Food Enchantment)","CurseForge":"","Modrinth":"mcmod-more-food-enchantment"},{"Id":19122,"Name":"枫树 (Mapletree)","CurseForge":"mapletree","Modrinth":""},{"Id":19123,"Name":"喝!重生 (Drink It! Refoxed)","CurseForge":"drink-it-refoxed","Modrinth":""},{"Id":19125,"Name":"","CurseForge":"galospheric-delight","Modrinth":"galospheric-delight"},{"Id":19126,"Name":"","CurseForge":"growmeal-fabric","Modrinth":"growmeal-(fabric)"},{"Id":19128,"Name":"","CurseForge":"katharite-slimes","Modrinth":"slimes-of-kathare"},{"Id":19129,"Name":"","CurseForge":"botania-ceu","Modrinth":""},{"Id":19130,"Name":"","CurseForge":"magic-from-the-east","Modrinth":"magic-from-the-east"},{"Id":19131,"Name":"","CurseForge":"blatapi","Modrinth":"blatapi"},{"Id":19132,"Name":"","CurseForge":"","Modrinth":"materials-lib"},{"Id":19133,"Name":"","CurseForge":"cavelib","Modrinth":"cavelib"},{"Id":19134,"Name":"","CurseForge":"economy-api","Modrinth":"economy-api"},{"Id":19137,"Name":"","CurseForge":"no-enchantment-cap-level","Modrinth":"no-enchantment-cap-level"},{"Id":19138,"Name":"","CurseForge":"create-ultimine","Modrinth":"create-ultimine"},{"Id":19139,"Name":"","CurseForge":"serene-wild","Modrinth":"serene-wild"},{"Id":19140,"Name":"","CurseForge":"kitchen-decorations","Modrinth":""},{"Id":19141,"Name":"","CurseForge":"refined-storage-curios-integration","Modrinth":"refined-storage-curios-integration"},{"Id":19142,"Name":"","CurseForge":"refined-storage-trinkets-integration","Modrinth":"refined-storage-trinkets-integration"},{"Id":19143,"Name":"精致存储 - EMI 集成 (Refined Storage - EMI Integration)","CurseForge":"refined-storage-emi-integration","Modrinth":"refined-storage-emi-integration"},{"Id":19144,"Name":"精致存储 - REI 集成 (Refined Storage - REI Integration)","CurseForge":"refined-storage-rei-integration","Modrinth":"refined-storage-rei-integration"},{"Id":19145,"Name":"精致存储 - JEI 集成 (Refined Storage - JEI Integration)","CurseForge":"refined-storage-jei-integration","Modrinth":"refined-storage-jei-integration"},{"Id":19146,"Name":"精致存储 - 通用机械集成 (Refined Storage - Mekanism Integration)","CurseForge":"refined-storage-mekanism-integration","Modrinth":"refined-storage-mekanism-integration"},{"Id":19150,"Name":"","CurseForge":"lukis-ancient-cities","Modrinth":""},{"Id":19151,"Name":"","CurseForge":"ungebauts-wildlife","Modrinth":"ungebauts-wildlife"},{"Id":19152,"Name":"","CurseForge":"changed-mcreator-slop","Modrinth":""},{"Id":19153,"Name":"","CurseForge":"forgotten-battle-towers","Modrinth":""},{"Id":19154,"Name":"","CurseForge":"","Modrinth":"back-at-it-again"},{"Id":19155,"Name":"","CurseForge":"summer-cottage","Modrinth":"summer-cottage"},{"Id":19156,"Name":"","CurseForge":"marius0x-furniture","Modrinth":""},{"Id":19157,"Name":"","CurseForge":"youssefs-currency","Modrinth":"youssefs_currency"},{"Id":19158,"Name":"","CurseForge":"bibliobiomes-legacy","Modrinth":"bibliobiomes-legacy"},{"Id":19159,"Name":"","CurseForge":"sniffers-delight","Modrinth":"sniffers_delight"},{"Id":19160,"Name":"复活节乐事 (Easter's Delight)","CurseForge":"easters-delight","Modrinth":"easters-delight"},{"Id":19164,"Name":"更好的女仆搬运 (Better Carryon Maid)","CurseForge":"better-carryon-maid","Modrinth":""},{"Id":19165,"Name":"转生:游戏人生 (Tensura: No Game No Life)","CurseForge":"tensura-no-game-no-life","Modrinth":"tensurano-game-no-life"},{"Id":19166,"Name":"","CurseForge":"summoner-scrolls","Modrinth":"summoner-scrolls"},{"Id":19167,"Name":"","CurseForge":"refined-storage-quartz-arsenal","Modrinth":"refined-storage-quartz-arsenal"},{"Id":19168,"Name":"","CurseForge":"create-advanced-logistics","Modrinth":"createadvlogistics"},{"Id":19169,"Name":"","CurseForge":"create-electric-drive","Modrinth":""},{"Id":19170,"Name":"","CurseForge":"","Modrinth":"lachryvisions"},{"Id":19171,"Name":"倚天屠龙 (The Heaven Sword and Dragon Saber)","CurseForge":"the-heaven-sword-and-dragon-saber","Modrinth":""},{"Id":19172,"Name":"工匠幻梦 (DreamTinker)","CurseForge":"dreamtinker","Modrinth":"dreamtinker"},{"Id":19175,"Name":"狼王的附魔库 (Wolf's Enchantment Lib)","CurseForge":"wolfs-enchantment-lib","Modrinth":""},{"Id":19176,"Name":"槽 (CaoPlus)","CurseForge":"","Modrinth":"caoplus"},{"Id":19177,"Name":"勿扰吾梦 / 起床气 (Disturb Not My Dream)","CurseForge":"disturb-not-my-dream","Modrinth":"disturb-not-my-dream"},{"Id":19178,"Name":"轻量兑换所 (Exchange Site Lite)","CurseForge":"","Modrinth":"contigency-shop-lite"},{"Id":19179,"Name":"战利品袋重制版 (LootBagsRenewal)","CurseForge":"lootbagsrenewal","Modrinth":"lootbags"},{"Id":19182,"Name":"自动鞘翅替换 (AutoSwapLowDurabilityElytra)","CurseForge":"autoswaplowdurabilityelytra","Modrinth":""},{"Id":19183,"Name":"","CurseForge":"no-elytra-equip","Modrinth":"elytras-disabled"},{"Id":19184,"Name":"","CurseForge":"no-elytra","Modrinth":""},{"Id":19185,"Name":"","CurseForge":"title-changer","Modrinth":"title-changer"},{"Id":19186,"Name":"穿牌开箱+ (ClickThrough Plus)","CurseForge":"clickthrough-plus","Modrinth":"clickthrough+"},{"Id":19187,"Name":"","CurseForge":"itemzoomer","Modrinth":"itemzoomer"},{"Id":19188,"Name":"","CurseForge":"","Modrinth":"surveystones"},{"Id":19189,"Name":"","CurseForge":"particular-reforged","Modrinth":"particular-reforged"},{"Id":19190,"Name":"云生 (Cloud Revive)","CurseForge":"cloud-revive","Modrinth":"cloud_revive"},{"Id":19191,"Name":"偏执狂 (Paranoia)","CurseForge":"paranoia","Modrinth":""},{"Id":19192,"Name":"神秘酿造学 (Thaumic Brewing)","CurseForge":"thaumic-brewing","Modrinth":""},{"Id":19193,"Name":"","CurseForge":"aether-treasure-reforging","Modrinth":"aether-treasure-reforging"},{"Id":19194,"Name":"","CurseForge":"animations","Modrinth":"animations"},{"Id":19195,"Name":"","CurseForge":"","Modrinth":"pet-necropolis"},{"Id":19196,"Name":"","CurseForge":"paddle-boats","Modrinth":""},{"Id":19197,"Name":"","CurseForge":"true-darkness-elementriy","Modrinth":""},{"Id":19200,"Name":"","CurseForge":"sophisticated-storage-create-integration","Modrinth":"sophisticated-storage-create-integration"},{"Id":19202,"Name":"移除服务端速度检测消息 (RemoveSpeedDetection)","CurseForge":"","Modrinth":"removespeeddetection"},{"Id":19203,"Name":"","CurseForge":"shared-advancements","Modrinth":"shared-advancements"},{"Id":19204,"Name":"","CurseForge":"","Modrinth":"polytime"},{"Id":19205,"Name":"","CurseForge":"golden-meadows","Modrinth":""},{"Id":19206,"Name":"","CurseForge":"ssmlegacy","Modrinth":"ssmlegacy"},{"Id":19207,"Name":"","CurseForge":"super-sound-muffler-revived","Modrinth":""},{"Id":19208,"Name":"","CurseForge":"current-game-music-track","Modrinth":"current-game-music-track"},{"Id":19209,"Name":"机械动力:无人机物流 (Create: Mobile Packages)","CurseForge":"create-mobile-packages","Modrinth":"create-mobile-packages"},{"Id":19210,"Name":"","CurseForge":"create-cardboarded-conveynience","Modrinth":"create-cardboarded-conveynience"},{"Id":19211,"Name":"铁匠武器 (Blacksmith_Weapon)","CurseForge":"blacksmith-weapon","Modrinth":""},{"Id":19213,"Name":"墨染琴弦的拔刀剑核心 (mrqx's Slashblade Core)","CurseForge":"mrqx-s-slashblade-core","Modrinth":"mrqx%60s-slashblade-core"},{"Id":19214,"Name":"神刀 (GodBlade)","CurseForge":"goldblade","Modrinth":""},{"Id":19216,"Name":"上海地铁一号线 (Shanghai Metro Line One Mod)","CurseForge":"shanghai-metro-line-one-mod","Modrinth":"shanghai-metro-line-one-mod"},{"Id":19218,"Name":"全追踪 (TheTrackers)","CurseForge":"thetrackers","Modrinth":"thetrackers"},{"Id":19219,"Name":"猫猫汉堡 (Cat Burger)","CurseForge":"cat-burger","Modrinth":""},{"Id":19220,"Name":"","CurseForge":"mineral-backpacks","Modrinth":"mineral-backpacks"},{"Id":19221,"Name":"兽薄荷 (Furry Bohe)","CurseForge":"","Modrinth":"furry_bohe"},{"Id":19222,"Name":"水仙辞:重绽 (NarcissusFarewell: Reflorescence)","CurseForge":"narcissusfarewell-reflorescence","Modrinth":""},{"Id":19224,"Name":"","CurseForge":"bibliocraft-bibliowoods-forestry-edition","Modrinth":""},{"Id":19225,"Name":"","CurseForge":"bibliocraft-bibliowoods-biomes-oplenty-edition","Modrinth":""},{"Id":19226,"Name":"","CurseForge":"bibliocraft-bibliowoods-natura-edition","Modrinth":""},{"Id":19227,"Name":"","CurseForge":"bibliocraft-bibliowoods-terrafirmacraft-edition","Modrinth":""},{"Id":19228,"Name":"","CurseForge":"bibliocraft-bibliowoods-highlands-edition","Modrinth":""},{"Id":19229,"Name":"","CurseForge":"bibliocraft-bibliowoods-extrabiomesxl-edition","Modrinth":""},{"Id":19230,"Name":"","CurseForge":"","Modrinth":"blockprintr"},{"Id":19233,"Name":"","CurseForge":"assorted-tools","Modrinth":"assorted-tools"},{"Id":19234,"Name":"","CurseForge":"assorted-core","Modrinth":"assorted-core"},{"Id":19235,"Name":"","CurseForge":"tlotd","Modrinth":"tlotd"},{"Id":19236,"Name":"","CurseForge":"infinity-golem-boss-fight-beta","Modrinth":"infinity-golem-boss-fight-(beta)"},{"Id":19237,"Name":"","CurseForge":"actually-divisions","Modrinth":"actually-divisions"},{"Id":19238,"Name":"","CurseForge":"extra-trinkets","Modrinth":"extra-trinkets"},{"Id":19239,"Name":"","CurseForge":"portable-tanks","Modrinth":""},{"Id":19240,"Name":"","CurseForge":"happier-ghasts","Modrinth":"happier-ghasts"},{"Id":19241,"Name":"洞穴工匠 (Tinker in Caves)","CurseForge":"tinker-in-caves","Modrinth":""},{"Id":19242,"Name":"更好的群峦:重生 (Better TFCR)","CurseForge":"","Modrinth":"better-tfcr"},{"Id":19244,"Name":"坚壁重构 (Mobreaker)","CurseForge":"mobreaker","Modrinth":""},{"Id":19245,"Name":"雾中人乐事 (Man From The Fog's Delight)","CurseForge":"man-from-the-fogs-delight","Modrinth":""},{"Id":19246,"Name":"被遗忘的物品:重生 (Forsaken Items Reforked)","CurseForge":"forsaken-items","Modrinth":"forsaken-items"},{"Id":19247,"Name":"豆浆你提我造 (Soybean Fun Item)","CurseForge":"","Modrinth":"soybean-fun-item"},{"Id":19248,"Name":"史诗战斗网格模型模组 (Epic Fight Mesh Model)","CurseForge":"epic-fight-mesh-model","Modrinth":""},{"Id":19249,"Name":"","CurseForge":"monster-of-the-night-skies","Modrinth":"monster-of-the-night-skies"},{"Id":19250,"Name":"","CurseForge":"spooky-doors","Modrinth":"spooky-doors"},{"Id":19251,"Name":"","CurseForge":"","Modrinth":"mclientapi"},{"Id":19252,"Name":"","CurseForge":"moffs-addonapi-dynload","Modrinth":"addonapi"},{"Id":19253,"Name":"","CurseForge":"","Modrinth":"shiv"},{"Id":19254,"Name":"","CurseForge":"","Modrinth":"tab-list"},{"Id":19255,"Name":"萌化生物 (DokiMobs)","CurseForge":"dokimobs","Modrinth":"dokimobs"},{"Id":19256,"Name":"","CurseForge":"bookling-gear","Modrinth":"bookling-gear"},{"Id":19257,"Name":"","CurseForge":"neuracraft","Modrinth":"neuracraft"},{"Id":19258,"Name":"高速企鹅 (Moves Like Mafuyu)","CurseForge":"moves-like-mafuyu","Modrinth":"moves-like-mafuyu"},{"Id":19260,"Name":"","CurseForge":"vanillin","Modrinth":"flw-vanillin"},{"Id":19261,"Name":"连锁采集重铸 (Chain Mining Reforged)","CurseForge":"chain-mining-reforged","Modrinth":"chainminingreforged"},{"Id":19262,"Name":"HRTF修复 (HRTF Fix)","CurseForge":"hrtffix","Modrinth":"hrtffix"},{"Id":19263,"Name":"","CurseForge":"iammusicplayer-renewed","Modrinth":"iam-music-player-renewed"},{"Id":19264,"Name":"","CurseForge":"misc-tweaks","Modrinth":"misctweaks"},{"Id":19265,"Name":"","CurseForge":"ftb-filter-system","Modrinth":""},{"Id":19266,"Name":"","CurseForge":"neonium","Modrinth":"neonium"},{"Id":19267,"Name":"","CurseForge":"","Modrinth":"super-fast-math"},{"Id":19270,"Name":"","CurseForge":"simple-loot-viewer","Modrinth":"simple-loot-viewer"},{"Id":19272,"Name":"凿子 GTNH 版 (Chisel - GTNH / Greg Tech Chisel)","CurseForge":"greg-tech-chisel","Modrinth":""},{"Id":19273,"Name":"饰品栏 GTNH 版 (Baubles-Expanded-GTNH)","CurseForge":"baubles-expanded-gtnh","Modrinth":""},{"Id":19274,"Name":"","CurseForge":"gregs-tinkering","Modrinth":""},{"Id":19275,"Name":"元世界 - Mixin 重制版 (MetaWorlds - Mixins)","CurseForge":"metaworlds-mixins","Modrinth":""},{"Id":19276,"Name":"宝可梦动力药水 (Create Cobblemon Potion)","CurseForge":"create-cobblemon-potion","Modrinth":"create-cobblemon-potion"},{"Id":19278,"Name":"","CurseForge":"jarjar","Modrinth":"jarjar"},{"Id":19279,"Name":"","CurseForge":"javascriptjs","Modrinth":"javascriptjs"},{"Id":19280,"Name":"","CurseForge":"blood-n-particles-mod","Modrinth":""},{"Id":19281,"Name":"绵阳的特效工具 (Sun Sheep's Tool)","CurseForge":"","Modrinth":"sstool"},{"Id":19282,"Name":"小烦维的物品 (xiaofanwei's items[Iron's Spellbooks and Terra Curios])","CurseForge":"xiaofanweis-items","Modrinth":""},{"Id":19283,"Name":"脑叶公司 (Lob Corp)","CurseForge":"lob-corp","Modrinth":""},{"Id":19284,"Name":"简易殖民地 (Easycolony)","CurseForge":"easycolony-addon-for-minecolonies","Modrinth":""},{"Id":19285,"Name":"骐骥刀剑风云 (Blades Derby)","CurseForge":"blades-derby","Modrinth":"blades-derby"},{"Id":19287,"Name":"机械动力:简单发电机 (Create: Simple Generator)","CurseForge":"create-simple-generator","Modrinth":"create-simple-generator"},{"Id":19288,"Name":"","CurseForge":"sophisticated-backpacks-create-integration","Modrinth":"sophisticated-backpacks-create-integration"},{"Id":19289,"Name":"","CurseForge":"ticex-tinkers-construct-ex","Modrinth":"ticex"},{"Id":19290,"Name":"","CurseForge":"eternal-starlight-vanilla-ores","Modrinth":"eternal-starlight-vo"},{"Id":19291,"Name":"","CurseForge":"supercritical","Modrinth":""},{"Id":19292,"Name":"","CurseForge":"supercritical-gtqt","Modrinth":""},{"Id":19293,"Name":"","CurseForge":"gtconsolidate","Modrinth":"gtconsolidate"},{"Id":19294,"Name":"","CurseForge":"implosionnobomb","Modrinth":"implosionnobomb"},{"Id":19295,"Name":"","CurseForge":"villager-golem-healer","Modrinth":"villager-golem-healer"},{"Id":19296,"Name":"","CurseForge":"yakurum-mod","Modrinth":""},{"Id":19297,"Name":"","CurseForge":"","Modrinth":"fantasytools"},{"Id":19298,"Name":"元世界 / 变幻世界 (Metaworlds Mod)","CurseForge":"metaworlds-mod","Modrinth":""},{"Id":19299,"Name":"机械动力:龙+ (Create: Dragons Plus)","CurseForge":"create-dragons-plus","Modrinth":"create-dragons-plus"},{"Id":19300,"Name":"","CurseForge":"appliances","Modrinth":"appliances-mod"},{"Id":19301,"Name":"","CurseForge":"","Modrinth":"twelvefold-booter"},{"Id":19302,"Name":"","CurseForge":"omniconfig","Modrinth":"omniconfig"},{"Id":19304,"Name":"线性经验值 (LinearXP)","CurseForge":"","Modrinth":"linearxp-legacy"},{"Id":19305,"Name":"更好的雷声 (Better Thunder)","CurseForge":"","Modrinth":"better-thunder"},{"Id":19306,"Name":"增强数据包压缩 (Enhanced Packet Compression)","CurseForge":"","Modrinth":"enhanced-packet-compression"},{"Id":19307,"Name":"","CurseForge":"gnetum","Modrinth":"gnetum"},{"Id":19308,"Name":"无障碍上坡 (Accessible Step)","CurseForge":"accessible-step","Modrinth":"accessible-step"},{"Id":19309,"Name":"","CurseForge":"terrastorage-icons","Modrinth":""},{"Id":19310,"Name":"","CurseForge":"terrastorage","Modrinth":"terrastorage"},{"Id":19311,"Name":"","CurseForge":"","Modrinth":"euphoria-companion"},{"Id":19312,"Name":"","CurseForge":"jump-bridge-mod","Modrinth":""},{"Id":19313,"Name":"","CurseForge":"huskhomes","Modrinth":""},{"Id":19314,"Name":"","CurseForge":"blahajasm","Modrinth":"blahajasm"},{"Id":19315,"Name":"","CurseForge":"mireoles-gtceu-additions","Modrinth":"mireoles-gtceu-additions"},{"Id":19316,"Name":"","CurseForge":"expanded-ae","Modrinth":""},{"Id":19317,"Name":"","CurseForge":"modular-machinery-reborn-ars-nouveau","Modrinth":"modular-machinery-reborn-ars-nouveau"},{"Id":19318,"Name":"盆栽作物 (Bonsai Crops)","CurseForge":"bonsai-crops","Modrinth":"bonsai-crops"},{"Id":19319,"Name":"扑克牌与筹码 (Playing Cards & Chips)","CurseForge":"playing-cards-chips","Modrinth":""},{"Id":19320,"Name":"","CurseForge":"enderdrives","Modrinth":"enderdrives"},{"Id":19321,"Name":"","CurseForge":"lucky77","Modrinth":""},{"Id":19323,"Name":"","CurseForge":"i-dont-see-you","Modrinth":"i-dont-see-you"},{"Id":19325,"Name":"","CurseForge":"epic-fight-valour-guard","Modrinth":""},{"Id":19326,"Name":"","CurseForge":"sweet-calamity","Modrinth":"sweet-calamity"},{"Id":19327,"Name":"","CurseForge":"vanillabackport","Modrinth":"vanillabackport"},{"Id":19328,"Name":"","CurseForge":"stylish-stiles","Modrinth":"stylish-stiles"},{"Id":19329,"Name":"","CurseForge":"stylish-stiles-renewed","Modrinth":"stylish-stiles-renewed"},{"Id":19330,"Name":"","CurseForge":"undermod","Modrinth":"mystronics-undermod"},{"Id":19331,"Name":"","CurseForge":"spitting-image","Modrinth":"spitting-image"},{"Id":19332,"Name":"","CurseForge":"","Modrinth":"repo-heads"},{"Id":19334,"Name":"机械动力蓝图微调 (Blueprint Tweaks: A Create Addon)","CurseForge":"","Modrinth":"create-blueprint-tweaks"},{"Id":19335,"Name":"生物图鉴 (Mob Journal)","CurseForge":"mob-journal","Modrinth":"mob-journal"},{"Id":19337,"Name":"","CurseForge":"sdm-shop","Modrinth":"sdm-shop"},{"Id":19338,"Name":"","CurseForge":"economy-coins-bills-and-gems","Modrinth":""},{"Id":19339,"Name":"","CurseForge":"multi-hotbar-core","Modrinth":""},{"Id":19340,"Name":"多重快捷栏 (Multi-Hotbar)","CurseForge":"multi-hotbar","Modrinth":""},{"Id":19341,"Name":"属性面板 (Properties Panel)","CurseForge":"properties-panel","Modrinth":"propertiespanel"},{"Id":19342,"Name":"奇思妙想 (WhimCraft)","CurseForge":"whimcraft","Modrinth":"whimcraft"},{"Id":19343,"Name":"合成冲突消除:修复版 (RecipeConflict Fixer)","CurseForge":"recipeconflict-fixer","Modrinth":""},{"Id":19344,"Name":"Dooglamoo 的绘画 (Dooglamoo Painter Mod)","CurseForge":"dooglamoo-painter-mod","Modrinth":""},{"Id":19345,"Name":"","CurseForge":"notafreaks-plushies","Modrinth":"notafreaks-plushies"},{"Id":19346,"Name":"原韵新生 (Enchanting Vanilla)","CurseForge":"enchanting-vanilla","Modrinth":"enchanting-vanilla"},{"Id":19349,"Name":"","CurseForge":"quest-items-rpg","Modrinth":"quest-items"},{"Id":19350,"Name":"","CurseForge":"experimental-mobs","Modrinth":""},{"Id":19351,"Name":"高级战斗装备修复版 (Advanced Combat Patched)","CurseForge":"advanced-combat-patched","Modrinth":""},{"Id":19352,"Name":"","CurseForge":"","Modrinth":"authproxy"},{"Id":19353,"Name":"EZ 存储 2 补丁 (EZStorage 2 Patch)","CurseForge":"ezstorage-2-patch","Modrinth":""},{"Id":19354,"Name":"","CurseForge":"squake-patched","Modrinth":""},{"Id":19355,"Name":"","CurseForge":"immersive-hotbar","Modrinth":"immersive-hotbar"},{"Id":19356,"Name":"机械动力:经典烈焰人附魔室 (Create: Classic Blaze Enchanter)","CurseForge":"create-classic-blaze-enchanter","Modrinth":"create-classic-blaze-enchanter"},{"Id":19358,"Name":"工业先锋补丁 (IFPatcher)","CurseForge":"ifpatcher","Modrinth":"ifpatcher"},{"Id":19359,"Name":"樱:织姬 (Sakura-Orihime)","CurseForge":"sakura-orihime","Modrinth":""},{"Id":19361,"Name":"匠魂怀古 (Tinkers' Antique)","CurseForge":"tinkers-antique","Modrinth":""},{"Id":19362,"Name":"","CurseForge":"ex-fusile","Modrinth":""},{"Id":19363,"Name":"更好的玩家重生 (Better Player Respawn)","CurseForge":"better-player-respawn","Modrinth":""},{"Id":19366,"Name":"","CurseForge":"another-experiment-researcher","Modrinth":""},{"Id":19367,"Name":"","CurseForge":"spiders-1-999","Modrinth":""},{"Id":19368,"Name":"村民舒适度更新版 (Villager Comfort Updated)","CurseForge":"villager-comfort-updated","Modrinth":""},{"Id":19369,"Name":"","CurseForge":"flight-affinity","Modrinth":"flight-affinity"},{"Id":19370,"Name":"","CurseForge":"emcgadgets","Modrinth":""},{"Id":19372,"Name":"","CurseForge":"","Modrinth":"minecraft-engineer-edition"},{"Id":19373,"Name":"","CurseForge":"","Modrinth":"eyelib"},{"Id":19374,"Name":"","CurseForge":"custom-armor-bar","Modrinth":"custom-armor-bar"},{"Id":19375,"Name":"","CurseForge":"roughly-enough-input-methods","Modrinth":"roughly-enough-input-methods"},{"Id":19376,"Name":"","CurseForge":"pirates-doom","Modrinth":"pirates-doom"},{"Id":19377,"Name":"科技复兴JEI (TechRebornJEI)","CurseForge":"techrebornjei","Modrinth":"techrebornjei"},{"Id":19378,"Name":"","CurseForge":"little-joys","Modrinth":"little-joys"},{"Id":19379,"Name":"","CurseForge":"blasting-raw-metal-blocks-into-blocks-fabric-forge","Modrinth":"blasting-raw-metal-blocks-into-blocks"},{"Id":19381,"Name":"重制:怪物控制魔杖 (Re: Mob Control Wands)","CurseForge":"","Modrinth":"re_mob-control-wands"},{"Id":19383,"Name":"猫咪装饰:重生 (Nekoration-Reborn)","CurseForge":"nekoration-reborn","Modrinth":""},{"Id":19384,"Name":"失去的声望 (Mine Reputation)","CurseForge":"mine-reputation","Modrinth":"mine-reputation"},{"Id":19385,"Name":"","CurseForge":"ruined-lighthouse","Modrinth":""},{"Id":19386,"Name":"","CurseForge":"frogs-medieval-paintings","Modrinth":""},{"Id":19387,"Name":"","CurseForge":"bad-apple","Modrinth":"bad-apple"},{"Id":19388,"Name":"","CurseForge":"podium-sodium","Modrinth":"podium"},{"Id":19389,"Name":"","CurseForge":"compressed-create-recipes","Modrinth":""},{"Id":19390,"Name":"","CurseForge":"aether-overworld-ores","Modrinth":"aether-overworld-ores"},{"Id":19391,"Name":"拔刀剑实用扩展 (Slashbalde Useful Addon)","CurseForge":"slashbalde-useful-addon","Modrinth":""},{"Id":19393,"Name":"电力转换非官方版 (PowerUtilites Unofficial)","CurseForge":"powerutilites-unofficial","Modrinth":""},{"Id":19394,"Name":"","CurseForge":"","Modrinth":"gameruleplease"},{"Id":19395,"Name":"","CurseForge":"custom-fov","Modrinth":"custom-fov-illusive"},{"Id":19395,"Name":"","CurseForge":"custom-fov-fabric","Modrinth":""},{"Id":19396,"Name":"","CurseForge":"apotheosis-x-irons-spellbooks-compat","Modrinth":""},{"Id":19397,"Name":"","CurseForge":"customtab","Modrinth":"customtab"},{"Id":19398,"Name":"噩梦 (Nightmares)","CurseForge":"nightmares","Modrinth":""},{"Id":19399,"Name":"","CurseForge":"graveyards","Modrinth":""},{"Id":19400,"Name":"","CurseForge":"sky-arena","Modrinth":"demis-sky-arena"},{"Id":19401,"Name":"","CurseForge":"progressive-mechanics-library","Modrinth":"progressive-mechanics-library"},{"Id":19402,"Name":"","CurseForge":"","Modrinth":"shy"},{"Id":19405,"Name":"交易预览 (TradePreview)","CurseForge":"tradepreview","Modrinth":"tradepreview"},{"Id":19406,"Name":"月亮事件光影支持 (Enhanced Celestials Shader Support)","CurseForge":"enhanced-celestials-shader-support","Modrinth":"enhanced-celestials-shader-support"},{"Id":19407,"Name":"","CurseForge":"incendium-biomes-only","Modrinth":""},{"Id":19408,"Name":"","CurseForge":"thaumic-tweaks","Modrinth":"thaumic-tweaks"},{"Id":19409,"Name":"","CurseForge":"selectivebounds","Modrinth":"selectivebounds"},{"Id":19410,"Name":"","CurseForge":"","Modrinth":"bactromod"},{"Id":19411,"Name":"一启动就退出 (Exit On Startup)","CurseForge":"","Modrinth":"exit-on-startup"},{"Id":19412,"Name":"","CurseForge":"","Modrinth":"kotlin-for-forge-unofficial"},{"Id":19413,"Name":"","CurseForge":"","Modrinth":"circlemc"},{"Id":19414,"Name":"","CurseForge":"nearbymobchecker","Modrinth":"nearbymobchecker"},{"Id":19415,"Name":"","CurseForge":"gputape","Modrinth":"gputape"},{"Id":19416,"Name":"铁砧限制修复 (Limitless Anvil)","CurseForge":"","Modrinth":"limitless-anvil"},{"Id":19417,"Name":"搬运:拓展 (Carry On Extend)","CurseForge":"carry-on-extend","Modrinth":"carry-on-extend"},{"Id":19418,"Name":"森罗物语:玩偶 (Kaleidoscope Doll)","CurseForge":"kaleidoscope-doll","Modrinth":"kaleidoscope-doll"},{"Id":19419,"Name":"蓝钢匠艺/假面匠艺 (Kamen Tinker)","CurseForge":"kamen-tinker","Modrinth":""},{"Id":19420,"Name":"","CurseForge":"agritech-automated-crops","Modrinth":"agritech-automated-crops"},{"Id":19421,"Name":"脑洞瓦工 (Pot's Idea)","CurseForge":"","Modrinth":"pots-idea"},{"Id":19422,"Name":"Kogtyv 的城镇与村庄 (kogtyv-Towny and Village)","CurseForge":"kogtyv-tav","Modrinth":"kogtyv-tav"},{"Id":19423,"Name":"哥特式教堂 (Gothic Church)","CurseForge":"gothic-church","Modrinth":""},{"Id":19424,"Name":"","CurseForge":"sky-whale-ship","Modrinth":"sky-whale-ship"},{"Id":19426,"Name":"无人之境 (No Man's Land)","CurseForge":"no-mans-land","Modrinth":"no-mans-land"},{"Id":19427,"Name":"可绑定魔力池 (Bindable Mana Pool)","CurseForge":"bindable-mana-pool","Modrinth":"bindable-mana-pool"},{"Id":19428,"Name":"","CurseForge":"","Modrinth":"blood-mending"},{"Id":19429,"Name":"","CurseForge":"craziness-awakened","Modrinth":"craziness-awakened-(orespawn-remake)"},{"Id":19430,"Name":"","CurseForge":"mischief-illagers","Modrinth":"mischief-illagers"},{"Id":19432,"Name":"动态的树:Caverns & Chasms 附属 (Dynamic Trees - Caverns & Chasms)","CurseForge":"dynamic-trees-caverns-and-chasms","Modrinth":""},{"Id":19435,"Name":"","CurseForge":"apex-a-proper-equipment-expansion","Modrinth":""},{"Id":19436,"Name":"Alex的洞穴维度 (Dimension of Caves)","CurseForge":"dimension-of-caves","Modrinth":""},{"Id":19437,"Name":"","CurseForge":"herobrine-a-friend","Modrinth":"herobrine-a-friend"},{"Id":19438,"Name":"","CurseForge":"stattweaker","Modrinth":"stattweaker"},{"Id":19441,"Name":"","CurseForge":"atsassistmod","Modrinth":""},{"Id":19442,"Name":"","CurseForge":"","Modrinth":"i-cant-believe-its-not-1215"},{"Id":19443,"Name":"服务器列表缓冲崩溃修复版 (ServerlistBufferCrashFixer)","CurseForge":"","Modrinth":"slbcf"},{"Id":19444,"Name":"动态提示框 (Dynamic Tooltips)","CurseForge":"dynamic-tooltips","Modrinth":""},{"Id":19446,"Name":"","CurseForge":"mixed-litter","Modrinth":"mixed-litter"},{"Id":19447,"Name":"","CurseForge":"groovyduvet","Modrinth":"groovyduvet"},{"Id":19448,"Name":"机械动力:鸡蛋产线 (Create: Egg Production)","CurseForge":"create-egg-production","Modrinth":"createegg-production"},{"Id":19450,"Name":"机械动力:乡村结构 (Create: Rustic Structures)","CurseForge":"create-rustic-structures","Modrinth":"create-rustic-structures"},{"Id":19451,"Name":"","CurseForge":"slightly-newer-art-of-forging","Modrinth":""},{"Id":19452,"Name":"","CurseForge":"custom-treasure-maps","Modrinth":"custom-treasure-maps"},{"Id":19453,"Name":"通用机械:进化 (Evolved Mekanism)","CurseForge":"evolved-mekanism","Modrinth":"evolved-mekanism"},{"Id":19455,"Name":"脑子乐事 (Brain Delight)","CurseForge":"brain-delight","Modrinth":""},{"Id":19456,"Name":"村民图书馆 (Villager Library)","CurseForge":"villager-library","Modrinth":""},{"Id":19457,"Name":"","CurseForge":"trade-enchant-overhaul","Modrinth":""},{"Id":19458,"Name":"","CurseForge":"more-additional-paintings","Modrinth":"more-additional-paintings"},{"Id":19459,"Name":"","CurseForge":"simplebackport","Modrinth":"simplebackport"},{"Id":19460,"Name":"","CurseForge":"biomebeats","Modrinth":"biomebeats"},{"Id":19461,"Name":"","CurseForge":"decorative-core","Modrinth":"decorative-core"},{"Id":19462,"Name":"按键绑定不减 (Key Bindings Keeper)","CurseForge":"","Modrinth":"key-bindings-keeper"},{"Id":19463,"Name":"通用机械加速输出 (Mekanism Output Faster)","CurseForge":"","Modrinth":"mekanism-output-faster"},{"Id":19464,"Name":"无限容量元件 (Infinite Capacity Cell)","CurseForge":"","Modrinth":"infinite-capacity-cell"},{"Id":19465,"Name":"","CurseForge":"","Modrinth":"mcutilities"},{"Id":19466,"Name":"","CurseForge":"pickuptorches","Modrinth":"pickuptorches"},{"Id":19468,"Name":"","CurseForge":"pointblank-magazines-vpb","Modrinth":""},{"Id":19469,"Name":"","CurseForge":"pointblank-projectiles-vpb","Modrinth":""},{"Id":19470,"Name":"死亡圣器 (Deathly Hallows)","CurseForge":"deathly-hallows","Modrinth":"deathly-hallows"},{"Id":19471,"Name":"","CurseForge":"tetra-loopback","Modrinth":"tetra-loopback"},{"Id":19472,"Name":"","CurseForge":"appliedenergisticsoddities","Modrinth":""},{"Id":19473,"Name":"","CurseForge":"tweakermoreforge","Modrinth":"tweakermoreforge"},{"Id":19474,"Name":"","CurseForge":"vs2-cbc-armor-blocks","Modrinth":""},{"Id":19475,"Name":"机械动力:集成农业 (Create: Integrated Farming)","CurseForge":"create-integrated-farming","Modrinth":"create-integrated-farming"},{"Id":19476,"Name":"闪现戒指 (Ring of Blink)","CurseForge":"ring-of-blink-forge","Modrinth":""},{"Id":19477,"Name":"傀儡革新 (Golem Overhaul)","CurseForge":"golem-overhaul","Modrinth":"golem-overhaul"},{"Id":19478,"Name":"","CurseForge":"voile","Modrinth":"voile"},{"Id":19479,"Name":"","CurseForge":"title-tweaks","Modrinth":"titletweaks"},{"Id":19480,"Name":"动块 (UgoBlock)","CurseForge":"ugoblock","Modrinth":""},{"Id":19483,"Name":"","CurseForge":"scriptasm","Modrinth":""},{"Id":19486,"Name":"瞄准修正 (Aim Bot)","CurseForge":"aimbot","Modrinth":""},{"Id":19487,"Name":"","CurseForge":"","Modrinth":"server-chat-log-history"},{"Id":19488,"Name":"","CurseForge":"hud-compass","Modrinth":""},{"Id":19490,"Name":"亲密伙伴 (Familiar Friends)","CurseForge":"familiar-friends","Modrinth":"familiar-friends"},{"Id":19491,"Name":"","CurseForge":"golem-spawn-animation","Modrinth":"golem-spawn-animation"},{"Id":19492,"Name":"","CurseForge":"realistic-night-vision","Modrinth":""},{"Id":19493,"Name":"","CurseForge":"stackable-items","Modrinth":""},{"Id":19495,"Name":"","CurseForge":"discrafted","Modrinth":"discrafted"},{"Id":19496,"Name":"","CurseForge":"survival-plus-plus","Modrinth":"survival-plus-plus"},{"Id":19497,"Name":"","CurseForge":"server-plus-plus","Modrinth":"server-plus-plus"},{"Id":19498,"Name":"更好的快乐恶魂 (Better Happy Ghast)","CurseForge":"happier-ghast","Modrinth":"happier-ghast"},{"Id":19499,"Name":"更好的快乐恶魂控制 (Better Happy Ghast Control)","CurseForge":"bhgc","Modrinth":"bhgc"},{"Id":19500,"Name":"","CurseForge":"","Modrinth":"dominatus"},{"Id":19501,"Name":"","CurseForge":"unfocused","Modrinth":"unfocused"},{"Id":19502,"Name":"Jerotes实用仓库 (Jerotes Warehouse)","CurseForge":"jerotes-warehouse","Modrinth":"jerotes-warehouse"},{"Id":19503,"Name":"","CurseForge":"happy-ghast-legacy","Modrinth":"happy-ghast-legacy"},{"Id":19504,"Name":"","CurseForge":"spider-jockey","Modrinth":"spider-jockey"},{"Id":19505,"Name":"","CurseForge":"digger-helmet","Modrinth":"digger-helmet"},{"Id":19506,"Name":"","CurseForge":"acecraft","Modrinth":""},{"Id":19508,"Name":"","CurseForge":"","Modrinth":"familiar-magic"},{"Id":19509,"Name":"流光溢彩 (Lumenized)","CurseForge":"lumenized","Modrinth":""},{"Id":19510,"Name":"","CurseForge":"chili-bullet-weapons","Modrinth":"chili-bullet-weapons"},{"Id":19511,"Name":"AE网络终端 (Applied Web Terminal)","CurseForge":"applied-web-terminal","Modrinth":"applied-web-terminal"},{"Id":19512,"Name":"","CurseForge":"","Modrinth":"dusts-keymap"},{"Id":19513,"Name":"","CurseForge":"itemzoommore","Modrinth":""},{"Id":19514,"Name":"","CurseForge":"","Modrinth":"noitemtooltips"},{"Id":19515,"Name":"Stfu - 已停更","CurseForge":"shuttfup","Modrinth":""},{"Id":19515,"Name":"","CurseForge":"","Modrinth":"shuttfup"},{"Id":19516,"Name":"饰品重铸 (BaublesReforked)","CurseForge":"baublesreforked","Modrinth":"baublesreforked"},{"Id":19517,"Name":"","CurseForge":"","Modrinth":"wills-lively-villages"},{"Id":19518,"Name":"","CurseForge":"tmrv","Modrinth":"tmrv"},{"Id":19520,"Name":"","CurseForge":"twilight-treehouses","Modrinth":"twilight-treehouses"},{"Id":19521,"Name":"更好的铁轨(可转弯の动力铁轨!) (Improved Rail (TURNABLE POWERED RAILS))","CurseForge":"improved-rails","Modrinth":"improved-rails"},{"Id":19522,"Name":"非Create版无线红石 (Redstone Signal Bind Wand)","CurseForge":"redstone-signal-bind-wand","Modrinth":"redstone-signal-bind-wand"},{"Id":19524,"Name":"游戏内聊天翻译 (In game Translator)","CurseForge":"","Modrinth":"ingametranslator"},{"Id":19525,"Name":"","CurseForge":"carnivorous-plants-addition","Modrinth":""},{"Id":19526,"Name":"","CurseForge":"mekanism-curios","Modrinth":""},{"Id":19527,"Name":"","CurseForge":"tetra-compat","Modrinth":""},{"Id":19528,"Name":"","CurseForge":"hex-casting-additions","Modrinth":""},{"Id":19529,"Name":"","CurseForge":"ghasts-crash","Modrinth":""},{"Id":19531,"Name":"未来的樱花 (FutureCherry)","CurseForge":"futurecherry","Modrinth":"futurecherry"},{"Id":19532,"Name":"","CurseForge":"food-fix","Modrinth":""},{"Id":19533,"Name":"","CurseForge":"mining-speed-tooltips","Modrinth":"mining-speed-tooltips"},{"Id":19534,"Name":"","CurseForge":"smithing-template-viewer","Modrinth":"smithing-template-viewer"},{"Id":19535,"Name":"","CurseForge":"picks-of-power","Modrinth":"picks-of-power"},{"Id":19537,"Name":"","CurseForge":"super-hot","Modrinth":""},{"Id":19538,"Name":"","CurseForge":"chill-thrill","Modrinth":""},{"Id":19539,"Name":"","CurseForge":"pyrellium","Modrinth":"pyrellium"},{"Id":19540,"Name":"","CurseForge":"luminous-nether","Modrinth":"luminous-nether"},{"Id":19541,"Name":"刷矿机 (Ore Generator)","CurseForge":"brush-mining-machine","Modrinth":""},{"Id":19543,"Name":"夜视护符 (NightVisionAmulet)","CurseForge":"","Modrinth":"night_vision_amulet"},{"Id":19544,"Name":"套装效果 (Set Effects)","CurseForge":"set-effects","Modrinth":""},{"Id":19545,"Name":"","CurseForge":"tramways","Modrinth":"tramways"},{"Id":19546,"Name":"","CurseForge":"projecte-kubejs","Modrinth":""},{"Id":19547,"Name":"实用拓展 V2 咖啡版 (Actually Additions V2 Coffee Edition)","CurseForge":"actually-additions-v2-coffee-edition","Modrinth":""},{"Id":19548,"Name":"","CurseForge":"create-ender-link","Modrinth":"create-ender-link"},{"Id":19549,"Name":"","CurseForge":"progressive-tweaks","Modrinth":""},{"Id":19550,"Name":"","CurseForge":"portable-blueprints","Modrinth":"portable-blueprints"},{"Id":19551,"Name":"","CurseForge":"carrasconlib","Modrinth":"carrasconlib"},{"Id":19552,"Name":"方块粒子生成 (Block Particle Spawning)","CurseForge":"blockparticlespawning","Modrinth":"blockparticlespawning"},{"Id":19556,"Name":"","CurseForge":"aether-dragon-dragon-survival-addon","Modrinth":""},{"Id":19557,"Name":"","CurseForge":"tundra-dragon-dragon-survival-add-on","Modrinth":""},{"Id":19558,"Name":"","CurseForge":"naturalist-delight","Modrinth":""},{"Id":19559,"Name":"","CurseForge":"civilizations","Modrinth":"civilizations"},{"Id":19560,"Name":"","CurseForge":"block-factory-biomes","Modrinth":"block-factorys-biomes"},{"Id":19561,"Name":"水下游泳修复 (Underwater Swim Fix (MC-220390))","CurseForge":"underwater-swim-fix-mc-220390","Modrinth":"underwater-swim-fix-(mc-220390)"},{"Id":19562,"Name":"","CurseForge":"scaffolding-backported","Modrinth":""},{"Id":19563,"Name":"","CurseForge":"hold-my-items-reforged","Modrinth":"hold-my-items-reforged"},{"Id":19565,"Name":"","CurseForge":"distraction-free-recipes","Modrinth":""},{"Id":19565,"Name":"Distraction Free Recipes - 未及时更新","CurseForge":"","Modrinth":"distraction-free-recipes"},{"Id":19566,"Name":"月之石:噩梦之章/求仙者:噩梦之章 (Moonstone :Nightmare/Seeking Immortals : Nightmare)","CurseForge":"seeking-immortals-nightmare","Modrinth":"seeking-immortals-nightmare"},{"Id":19567,"Name":"魔法水晶箭 (Enchanted Crystal Arrows)","CurseForge":"enchanted-crystal-arrow","Modrinth":""},{"Id":19568,"Name":"东方弹幕神乐核心 (Touhou Danmaku Kagura core)","CurseForge":"touhou-danmaku-kagura-core","Modrinth":""},{"Id":19569,"Name":"","CurseForge":"hah-ueuh","Modrinth":"hah!-ueuh"},{"Id":19570,"Name":"永恒下界 (Eternal Nether)","CurseForge":"eternal-nether","Modrinth":"eternal-nether"},{"Id":19574,"Name":"","CurseForge":"gui-followers","Modrinth":"gui-followers"},{"Id":19574,"Name":"","CurseForge":"gui-followers-fabric","Modrinth":""},{"Id":19575,"Name":"","CurseForge":"omnidirectional-sound-ods","Modrinth":"omnidirectional-sound-(ods)"},{"Id":19577,"Name":"勤劳跟踪狂 (Diligent Stalker)","CurseForge":"diligentstalker","Modrinth":"diligentstalker"},{"Id":19578,"Name":"女仆实用任务 (Maid Useful Task)","CurseForge":"maid-useful-tasks","Modrinth":""},{"Id":19579,"Name":"标题切换器 Next (TitleChanger Next)","CurseForge":"","Modrinth":"titlechanger-next"},{"Id":19580,"Name":"","CurseForge":"embers-underground-rooms","Modrinth":"embers-underground-rooms"},{"Id":19582,"Name":"不要饿死 4 (Don't Starve 4)","CurseForge":"dontstarve4","Modrinth":"dontstarve4"},{"Id":19583,"Name":"星火核心 (Spark Core)","CurseForge":"spark-core","Modrinth":"spark-core"},{"Id":19584,"Name":"下界核心 (Nether Core)","CurseForge":"nether-core-useful-nether-rock","Modrinth":""},{"Id":19585,"Name":"拔刀剑 JS (SlashBlade JS)","CurseForge":"slashblade-js","Modrinth":""},{"Id":19586,"Name":"方块与深蓝之树 (Caerula Arbor)","CurseForge":"caerula-arbor","Modrinth":"caerula-arbor"},{"Id":19587,"Name":"元歌 (Alice's Doll)","CurseForge":"alices-doll","Modrinth":""},{"Id":19588,"Name":"基岩再现 (Bedrock Redux)","CurseForge":"bedrock-redux","Modrinth":"bedrock-redux"},{"Id":19589,"Name":"掉落物清理 (Item Entity Control)","CurseForge":"item-entity-control","Modrinth":""},{"Id":19590,"Name":"许愿泉 (Wishing Fountain)","CurseForge":"wishing-fountain","Modrinth":""},{"Id":19591,"Name":"令人不可置信的附魔 (Unbelievable)","CurseForge":"","Modrinth":"unbelievable-enchantment"},{"Id":19592,"Name":"Hgw的望远镜 (Hgw's Spyglasses)","CurseForge":"","Modrinth":"hgws-spyglass-a"},{"Id":19593,"Name":"","CurseForge":"we-do-copyright","Modrinth":"we-do-copyright"},{"Id":19594,"Name":"","CurseForge":"useful-clipboard","Modrinth":""},{"Id":19595,"Name":"月之石:基因计划/求仙者:基因计划 (Moonstone :Virus/Seeking Immortals :Virus)","CurseForge":"seeking-immortals-virus","Modrinth":"seeking-immortal-virus"},{"Id":19596,"Name":"","CurseForge":"gambler-illager-irons-spells-and-spellbooks-addon","Modrinth":""},{"Id":19597,"Name":"","CurseForge":"chimericlib","Modrinth":""},{"Id":19598,"Name":"","CurseForge":"pokecube-alternative","Modrinth":""},{"Id":19599,"Name":"","CurseForge":"","Modrinth":"intuitive-netherite"},{"Id":19600,"Name":"机械动力:推进工程 (Create: Propulsion)","CurseForge":"create-propulsion","Modrinth":"create-propulsion"},{"Id":19603,"Name":"事件包装器 (Event Wrapper)","CurseForge":"event-wrapper","Modrinth":"event-wrapper"},{"Id":19605,"Name":"模组白名单 (ModWhiteList)","CurseForge":"","Modrinth":"modwhitelist"},{"Id":19606,"Name":"瞬时建造 (Instant Build)","CurseForge":"","Modrinth":"instant-build"},{"Id":19607,"Name":"信标与潮涌核心调整 (Beacon & Conduit Tweaks)","CurseForge":"beacon-conduit-tweaks","Modrinth":""},{"Id":19608,"Name":"群峦传说:工具纹饰 (TFC Tools Trim)","CurseForge":"tfc-tools-trim","Modrinth":"tfc-tools-trim"},{"Id":19609,"Name":"","CurseForge":"","Modrinth":"kill-youkai-with-knives"},{"Id":19610,"Name":"更多蜜蜂 (Mo' Bees)","CurseForge":"mo-bees","Modrinth":"mo-bees"},{"Id":19612,"Name":"","CurseForge":"faux-custom-entity-data","Modrinth":"faux-custom-entity-data"},{"Id":19614,"Name":"空中厕所 (PoopSky)","CurseForge":"poopsky","Modrinth":"poopsky"},{"Id":19615,"Name":"","CurseForge":"","Modrinth":"solarus-classic"},{"Id":19617,"Name":"","CurseForge":"create-unlimited","Modrinth":"create-unlimited"},{"Id":19618,"Name":"骷髅 AI 修复 (Skeleton AI Fix)","CurseForge":"skeleton-ai-fix","Modrinth":"skeleton-ai-fix"},{"Id":19619,"Name":"","CurseForge":"climate-rivers","Modrinth":"climate-rivers"},{"Id":19620,"Name":"地牢乐事 (Dungeons Delight)","CurseForge":"dungeonsdelight","Modrinth":"dungeons_delight"},{"Id":19621,"Name":"Cleanroom 模组式启动器非官方版 (Cleanroom Relauncher Unofficial)","CurseForge":"cleanroom-relauncher-unofficial","Modrinth":"cleanroom-relauncher-unofficial"},{"Id":19622,"Name":"","CurseForge":"silents-power-scale","Modrinth":"silents-power-scale"},{"Id":19623,"Name":"","CurseForge":"trident-return-fabric","Modrinth":""},{"Id":19624,"Name":"资源世界 (Resource World)","CurseForge":"resource-world","Modrinth":"resource-world"},{"Id":19625,"Name":"","CurseForge":"ijm-tweaks","Modrinth":"ijm-tweaks"},{"Id":19626,"Name":"","CurseForge":"no-mans-delight","Modrinth":"no-mans-delight"},{"Id":19628,"Name":"","CurseForge":"applemilktea2-tweaked","Modrinth":""},{"Id":19629,"Name":"","CurseForge":"","Modrinth":"carpet-blue-addition"},{"Id":19630,"Name":"毯上添花 (Yet Another Carpet Addition)","CurseForge":"","Modrinth":"yaca"},{"Id":19631,"Name":"钢铁","CurseForge":"","Modrinth":"steel_myfirstmod"},{"Id":19632,"Name":"Minecraft 大电影插曲唱片 (A Minecraft Movie Discs)","CurseForge":"movie-discs","Modrinth":""},{"Id":19635,"Name":"资源统合 (Materials Integration)","CurseForge":"materials-integration","Modrinth":""},{"Id":19639,"Name":"","CurseForge":"modular-machinery-reborn-create","Modrinth":""},{"Id":19640,"Name":"","CurseForge":"sheep-variety","Modrinth":"sheep-variety"},{"Id":19643,"Name":"易验锻造 (TetraClip)","CurseForge":"","Modrinth":"tetraclip"},{"Id":19644,"Name":"","CurseForge":"","Modrinth":"rozhud"},{"Id":19645,"Name":"宇宙代言者 (The Cosmic Spokespersons)","CurseForge":"the-cosmic-spokespersons","Modrinth":"the-cosmic-spokespersons"},{"Id":19646,"Name":"一切于零 (All In Zero)","CurseForge":"mc-mods-in-zero","Modrinth":"all-in-zero"},{"Id":19647,"Name":"云竹交通拓展 (Yunzhu Transit Extension)","CurseForge":"yunzhu-transit-extension","Modrinth":"yunzhu-transit-extension"},{"Id":19649,"Name":"澄清素视 / 去你的泥土屏幕 (Goodbye Dirt Screen)","CurseForge":"goodbye-dirt-screen","Modrinth":"goodbye-dirt-screen"},{"Id":19650,"Name":"","CurseForge":"create-stock-bridge","Modrinth":"create-stock-bridge"},{"Id":19651,"Name":"机械动力:自动扶梯 (Create: Escalated)","CurseForge":"create-escalated","Modrinth":"escalated"},{"Id":19652,"Name":"机械动力:蛋糕工坊 (Create: Mechanical Confection)","CurseForge":"create-mechanical-confection","Modrinth":"createmechanical-confection"},{"Id":19653,"Name":"","CurseForge":"farmers-delight-compat","Modrinth":"farmers-delight-compat"},{"Id":19654,"Name":"","CurseForge":"gtwoodprocessing","Modrinth":"gtwp"},{"Id":19656,"Name":"","CurseForge":"vintagedisplay","Modrinth":"vintagedisplay"},{"Id":19657,"Name":"","CurseForge":"voidless-framework","Modrinth":"voidless-framework"},{"Id":19658,"Name":"","CurseForge":"mixin-args","Modrinth":""},{"Id":19659,"Name":"","CurseForge":"melonlib","Modrinth":"melonlib"},{"Id":19660,"Name":"","CurseForge":"","Modrinth":"no-kebab"},{"Id":19661,"Name":"","CurseForge":"mechanicals-lib","Modrinth":"mechanicals-lib"},{"Id":19662,"Name":"","CurseForge":"create-mechanical-cow","Modrinth":"create-mechanical-cow"},{"Id":19663,"Name":"","CurseForge":"global-options","Modrinth":"global-options"},{"Id":19664,"Name":"","CurseForge":"kubejs-projecte-fork","Modrinth":"kubejs-projecte-fork"},{"Id":19665,"Name":"","CurseForge":"untoggle-sprint","Modrinth":"untoggle-sprint"},{"Id":19666,"Name":"VN对话框引擎 (VNDialog)","CurseForge":"vndialog","Modrinth":"nvdialog"},{"Id":19667,"Name":"","CurseForge":"","Modrinth":"elytrabugfix"},{"Id":19668,"Name":"","CurseForge":"","Modrinth":"ezbowls"},{"Id":19669,"Name":"","CurseForge":"soundtrack-events","Modrinth":""},{"Id":19670,"Name":"","CurseForge":"commandkeys","Modrinth":"commandkeys"},{"Id":19671,"Name":"","CurseForge":"iron-chests-with-netherite-chest","Modrinth":"iron-chests-(with-netherite-chest)"},{"Id":19672,"Name":"","CurseForge":"emerald-on-a-stick-villager-follower","Modrinth":"emerald-on-a-stick-(villager-follower)"},{"Id":19673,"Name":"","CurseForge":"fishing-indicators","Modrinth":"fishing-indicators"},{"Id":19675,"Name":"","CurseForge":"just-another-witchery-remake","Modrinth":"just-another-witchery-remake"},{"Id":19676,"Name":"","CurseForge":"","Modrinth":"inexorable-origins"},{"Id":19677,"Name":"","CurseForge":"cybersus","Modrinth":"cybersus"},{"Id":19678,"Name":"","CurseForge":"","Modrinth":"passivearmour"},{"Id":19679,"Name":"","CurseForge":"zettai-rpg","Modrinth":"zettai-rpg"},{"Id":19680,"Name":"","CurseForge":"md-units","Modrinth":"md-unit-robots"},{"Id":19681,"Name":"","CurseForge":"extreme-core","Modrinth":""},{"Id":19682,"Name":"","CurseForge":"dreamless-spells-and-spellbooks","Modrinth":""},{"Id":19683,"Name":"格雷科技非官方版 - 喵呜酱版 (GregTech - MeowmelMuku)","CurseForge":"gregtech-meowmelmuku","Modrinth":""},{"Id":19684,"Name":"","CurseForge":"","Modrinth":"namedloot"},{"Id":19685,"Name":"","CurseForge":"","Modrinth":"enchantment-decay"},{"Id":19686,"Name":"","CurseForge":"create-jet-boots","Modrinth":""},{"Id":19687,"Name":"机械动力:地铁列车装饰 (Train Deco)","CurseForge":"train-deco","Modrinth":"train-deco"},{"Id":19688,"Name":"","CurseForge":"packed-packs","Modrinth":"packed-packs"},{"Id":19689,"Name":"","CurseForge":"dyed-flames","Modrinth":"dyed-flames"},{"Id":19690,"Name":"","CurseForge":"hopper-gadgetry","Modrinth":"hopper-gadgetry"},{"Id":19693,"Name":"迅摹天工 (QuickCopy)","CurseForge":"quickcopy","Modrinth":"quickcopy"},{"Id":19694,"Name":"物品信息 (Item Informations)","CurseForge":"item-informations","Modrinth":""},{"Id":19695,"Name":"拍屏 (ShootScreen)","CurseForge":"shootscreen","Modrinth":""},{"Id":19696,"Name":"扫地小狐 (Server Expansion)","CurseForge":"","Modrinth":"server-expansion"},{"Id":19697,"Name":"瓦尔基里:防御 (Valkyrien_Skies: defense)","CurseForge":"","Modrinth":"valkyrien_skies-defense"},{"Id":19699,"Name":"刀锻冶匠魂修复 (TinkerSlashBlade Patch)","CurseForge":"tinkerslashblade-patch","Modrinth":""},{"Id":19700,"Name":"","CurseForge":"alienevo","Modrinth":"alienevo"},{"Id":19702,"Name":"干掉它! (BanIt)","CurseForge":"banit","Modrinth":""},{"Id":19703,"Name":"","CurseForge":"alexs-mobs-naturalist-compat","Modrinth":"alexs-mobs-naturalist-compat"},{"Id":19705,"Name":"匠心之作 (Tinkers' Ingenuity)","CurseForge":"tinkers-ingenuity","Modrinth":""},{"Id":19706,"Name":"趣味物品 (Curiosities)","CurseForge":"curiosities","Modrinth":"curiosities"},{"Id":19708,"Name":"Qis的C4 (C4)","CurseForge":"","Modrinth":"cs2_c4"},{"Id":19709,"Name":"拆弹专家 (Bomb Disposal Expert)","CurseForge":"bomb-disposal-expert","Modrinth":"bde"},{"Id":19710,"Name":"长疾速适 (Sprintify)","CurseForge":"sprintify","Modrinth":""},{"Id":19711,"Name":"","CurseForge":"shield-system","Modrinth":""},{"Id":19712,"Name":"","CurseForge":"","Modrinth":"burythelight"},{"Id":19713,"Name":"","CurseForge":"command-aliases","Modrinth":"command-aliases"},{"Id":19714,"Name":"","CurseForge":"pigium-performance-mod","Modrinth":""},{"Id":19715,"Name":"光谱世界JEI (SpectrumJEI)","CurseForge":"spectrumjei","Modrinth":"spectrumjei"},{"Id":19716,"Name":"","CurseForge":"","Modrinth":"itemban"},{"Id":19717,"Name":"","CurseForge":"","Modrinth":"skiesclear"},{"Id":19718,"Name":"","CurseForge":"vminus","Modrinth":"vminus"},{"Id":19719,"Name":"","CurseForge":"","Modrinth":"villagertalk1"},{"Id":19720,"Name":"","CurseForge":"debug-utils-forge","Modrinth":"debugutils"},{"Id":19720,"Name":"","CurseForge":"debug-utils-fabric","Modrinth":""},{"Id":19721,"Name":"","CurseForge":"slimefun-essentials-port","Modrinth":""},{"Id":19722,"Name":"马儿小女仆 (Uma Little Maid)","CurseForge":"uma-little-maid","Modrinth":"uma_maid"},{"Id":19723,"Name":"","CurseForge":"i-like-wood-twilight-forest-plugin","Modrinth":""},{"Id":19724,"Name":"","CurseForge":"i-like-wood-oh-the-biomes-youll-go-plugin","Modrinth":""},{"Id":19725,"Name":"","CurseForge":"i-like-wood-immersive-engineering-plugin","Modrinth":""},{"Id":19726,"Name":"","CurseForge":"click2pick","Modrinth":"click2pick"},{"Id":19727,"Name":"","CurseForge":"hudless","Modrinth":"hudless"},{"Id":19728,"Name":"","CurseForge":"dungeons-perspective","Modrinth":"dungeons-perspective"},{"Id":19729,"Name":"","CurseForge":"miniutilities-flight-fix","Modrinth":"miniutilities-flight-fix"},{"Id":19730,"Name":"","CurseForge":"linked-chests","Modrinth":"new-linked-chests"},{"Id":19731,"Name":"机械动力:直通溜槽 (Create: Direct Chute)","CurseForge":"create-direct-chute","Modrinth":"direct-chute"},{"Id":19732,"Name":"","CurseForge":"create-packagers-psi-compat","Modrinth":"packagerspsic"},{"Id":19733,"Name":"","CurseForge":"create-more-packages","Modrinth":"create-more-packages"},{"Id":19734,"Name":"机械动力:更多仪表 (Create: Extra Gauges)","CurseForge":"create-extra-gauges","Modrinth":"extra-gauges"},{"Id":19735,"Name":"","CurseForge":"ships-legacy","Modrinth":""},{"Id":19736,"Name":"","CurseForge":"traders-backport","Modrinth":""},{"Id":19737,"Name":"","CurseForge":"banner-patterns-backport","Modrinth":"banner-patterns-backport"},{"Id":19738,"Name":"","CurseForge":"convenient-effects","Modrinth":"convenient-effects"},{"Id":19739,"Name":"","CurseForge":"baguettelib","Modrinth":""},{"Id":19740,"Name":"","CurseForge":"fast-event","Modrinth":"fastevent"},{"Id":19741,"Name":"","CurseForge":"","Modrinth":"citreforged"},{"Id":19742,"Name":"更好的陨石 (Better Meteorite)","CurseForge":"better-meteorite","Modrinth":""},{"Id":19743,"Name":"","CurseForge":"paragraphs-reforged","Modrinth":"paragraphs-reforged"},{"Id":19745,"Name":"","CurseForge":"tpsbooster","Modrinth":""},{"Id":19746,"Name":"","CurseForge":"custom-portal-api-reforged","Modrinth":"custom-portal-api-reforged"},{"Id":19747,"Name":"分页进度 (Neo)Forge 版 (ForgedPaginatedAdvancements)","CurseForge":"forgedpaginatedadvancements","Modrinth":"forgedpaginatedadvancements"},{"Id":19748,"Name":"","CurseForge":"colorfulanvils-reforged","Modrinth":"colorfulanvils-reforged"},{"Id":19749,"Name":"","CurseForge":"keymap-maintained","Modrinth":""},{"Id":19750,"Name":"","CurseForge":"create-mechanical-companion","Modrinth":"create-mechanical-companion"},{"Id":19751,"Name":"","CurseForge":"crazy-ae2-addons","Modrinth":"crazy-ae2-addons"},{"Id":19752,"Name":"精神分裂症 (Schizophrenia)","CurseForge":"schizophrenia","Modrinth":""},{"Id":19753,"Name":"","CurseForge":"","Modrinth":"mobswithpowersaddon"},{"Id":19754,"Name":"","CurseForge":"wolf-sword-mod","Modrinth":"wolf-sword-mod"},{"Id":19756,"Name":"","CurseForge":"charged-mobs","Modrinth":"charged-mobs"},{"Id":19757,"Name":"","CurseForge":"the-mangled-hound","Modrinth":""},{"Id":19758,"Name":"","CurseForge":"avp","Modrinth":"avp"},{"Id":19759,"Name":"","CurseForge":"","Modrinth":"giantess-toki"},{"Id":19760,"Name":"","CurseForge":"enchant-limiter","Modrinth":"enchant-limiter"},{"Id":19761,"Name":"","CurseForge":"crafter-backport","Modrinth":""},{"Id":19762,"Name":"Citadel优化修复 (Citadel Fix)","CurseForge":"citadel-fix","Modrinth":""},{"Id":19763,"Name":"","CurseForge":"knit","Modrinth":""},{"Id":19764,"Name":"热心市民 (Gallant Tireless Altruist)","CurseForge":"gallant-tireless-altruist","Modrinth":"gallant-tireless-altruist"},{"Id":19766,"Name":"","CurseForge":"cerulean","Modrinth":"cerulean-advancements"},{"Id":19767,"Name":"","CurseForge":"color-format","Modrinth":""},{"Id":19769,"Name":"","CurseForge":"swim-in-lava","Modrinth":""},{"Id":19770,"Name":"","CurseForge":"orevolution","Modrinth":"orevolution"},{"Id":19771,"Name":"","CurseForge":"even-better-nether","Modrinth":"even-better-nether"},{"Id":19772,"Name":"","CurseForge":"plastoid-armor","Modrinth":"plastoid-armor"},{"Id":19773,"Name":"","CurseForge":"corpse-x-curios-api-compat","Modrinth":"corpse-x-curios-api-compat"},{"Id":19774,"Name":"","CurseForge":"","Modrinth":"trinkets-canary"},{"Id":19775,"Name":"","CurseForge":"","Modrinth":"a-strange-world-we-live-in"},{"Id":19776,"Name":"","CurseForge":"spellhud-addon","Modrinth":"spellhud-addon"},{"Id":19777,"Name":"","CurseForge":"replication-ae2-bridge","Modrinth":"replication-ae2-bridge"},{"Id":19778,"Name":"","CurseForge":"","Modrinth":"deltarune-mod"},{"Id":19779,"Name":"","CurseForge":"eternalpotions","Modrinth":"eternalpotions"},{"Id":19780,"Name":"","CurseForge":"","Modrinth":"l-mans-cat-clocks"},{"Id":19781,"Name":"生命汲取附魔 (Life Leech Enchantment)","CurseForge":"life-leech-enchantment","Modrinth":"lifeleech"},{"Id":19782,"Name":"奇语之手 (Sakaz Hand)","CurseForge":"sakaz-hand","Modrinth":""},{"Id":19783,"Name":"粘土工业非官方版 (Clayium Unofficial)","CurseForge":"clayium-unofficial","Modrinth":"clayium-unofficial"},{"Id":19784,"Name":"","CurseForge":"mekanism-weaponry","Modrinth":""},{"Id":19785,"Name":"","CurseForge":"wardends-revenge","Modrinth":""},{"Id":19786,"Name":"","CurseForge":"mob-control-rod","Modrinth":""},{"Id":19787,"Name":"","CurseForge":"unlimitedperipheralworks","Modrinth":"unlimitedperipheralworks"},{"Id":19789,"Name":"","CurseForge":"verdant-wonders","Modrinth":"verdant-wonders"},{"Id":19790,"Name":"","CurseForge":"underlay","Modrinth":"underlay"},{"Id":19792,"Name":"咸鱼物品生成器 (Lazy Item Generator)","CurseForge":"lazy-item-generator","Modrinth":""},{"Id":19793,"Name":"螃蟹的路灯 (Crab Street Light)","CurseForge":"crab-street-light","Modrinth":"crab-street-light"},{"Id":19795,"Name":"决心乐事 (Undertale Delight)","CurseForge":"undertale-delight","Modrinth":"undertale-delight"},{"Id":19797,"Name":"起源:算法幻影 (Origins:Algorithmic Phantom)","CurseForge":"","Modrinth":"origins-algorithmic-phantom"},{"Id":19799,"Name":"刷怪蛋信息显示 (Spawn Egg Infomation)","CurseForge":"spawn-egg-information","Modrinth":"spawn-egg-information"},{"Id":19800,"Name":"卡里普索的糖果工坊 (Calypso's Candy Workshop)","CurseForge":"calypsos-candy-workshop","Modrinth":"calypsos-candy-workshop"},{"Id":19801,"Name":"","CurseForge":"fill-tool","Modrinth":""},{"Id":19802,"Name":"","CurseForge":"growth-tonic","Modrinth":""},{"Id":19803,"Name":"","CurseForge":"quivermob","Modrinth":""},{"Id":19806,"Name":"","CurseForge":"world-drop","Modrinth":""},{"Id":19809,"Name":"","CurseForge":"shell-armor","Modrinth":""},{"Id":19810,"Name":"","CurseForge":"cart-livery","Modrinth":""},{"Id":19811,"Name":"","CurseForge":"territorial-dealings","Modrinth":""},{"Id":19812,"Name":"","CurseForge":"potion-packs","Modrinth":""},{"Id":19813,"Name":"","CurseForge":"armor-smelter","Modrinth":""},{"Id":19815,"Name":"","CurseForge":"carpet-sls-addition","Modrinth":"sls-addition"},{"Id":19816,"Name":"(Neo)Forge 常亮绊线特性恢复 (Forge String Unpatched - Powered Permanent String)","CurseForge":"forge-string-unpatched-powered-permanent-string","Modrinth":"fsu"},{"Id":19817,"Name":"","CurseForge":"quests-kill-task-tweaks","Modrinth":""},{"Id":19818,"Name":"","CurseForge":"lpctools","Modrinth":"lpctools"},{"Id":19819,"Name":"","CurseForge":"immersive-messages-api","Modrinth":"immersive-messages-api"},{"Id":19820,"Name":"","CurseForge":"immersive-damage-indicators","Modrinth":"immersive-damage-indicators"},{"Id":19821,"Name":"","CurseForge":"easy-disenchanting","Modrinth":"easy-disenchanting"},{"Id":19822,"Name":"","CurseForge":"respect-my-trims","Modrinth":"respect-my-trims"},{"Id":19824,"Name":"湫渃云魔修改 (CloudGolem Edited)","CurseForge":"cloudgolem-edited","Modrinth":""},{"Id":19825,"Name":"","CurseForge":"maidaddition","Modrinth":""},{"Id":19826,"Name":"网络摄像头 (Webcam)","CurseForge":"webcam","Modrinth":""},{"Id":19827,"Name":"","CurseForge":"projecteteams","Modrinth":"projecteteams"},{"Id":19828,"Name":"越战越勇 (Battle Frenzy)","CurseForge":"battle-frenzy","Modrinth":""},{"Id":19829,"Name":"","CurseForge":"","Modrinth":"plane-advancements"},{"Id":19830,"Name":"四海一家 (Cosmopolitan)","CurseForge":"cosmopolitan","Modrinth":"cosmopolitan"},{"Id":19831,"Name":"红樱 (redtassel)","CurseForge":"redtassel","Modrinth":""},{"Id":19832,"Name":"拔刀剑锻造增伤改革 (SlashBlade Refine Increased Damage Reform)","CurseForge":"sridr","Modrinth":""},{"Id":19834,"Name":"面包军火库 (Mianbao's ModernWarfare)","CurseForge":"mianbaos-modernwarfare","Modrinth":""},{"Id":19835,"Name":"机械动力:机械师之剑 (Create: Creator Sword)","CurseForge":"creator-sword","Modrinth":"creator-sword"},{"Id":19836,"Name":"机械动力:流体抽取限制 (Create: Limited Draining)","CurseForge":"create-limited-draining","Modrinth":"create-limited-draining"},{"Id":19837,"Name":"机械动力:防御 (Create: No Touching)","CurseForge":"create-no-touching","Modrinth":""},{"Id":19838,"Name":"机械动力:天境工业 (Create Aether Industry)","CurseForge":"create-aether-industry","Modrinth":""},{"Id":19839,"Name":"机械动力:实体控制 (Create: Entity Control)","CurseForge":"create-entitycontroller","Modrinth":"create-entity-control"},{"Id":19840,"Name":"更好的进度 - 祝福版 (Better Advancements - Blessed Edtion)","CurseForge":"better-advancements-blessed-edtion","Modrinth":""},{"Id":19841,"Name":"","CurseForge":"gloom-raiders","Modrinth":"gloom-raiders"},{"Id":19842,"Name":"","CurseForge":"herobrine-prime","Modrinth":""},{"Id":19843,"Name":"","CurseForge":"legend-of-the-dwerden","Modrinth":"legend-of-the-dwerden"},{"Id":19844,"Name":"","CurseForge":"dnt-stronghold-overhaul-lite-edition","Modrinth":""},{"Id":19845,"Name":"","CurseForge":"dnt-nether-fortress-overhaul","Modrinth":""},{"Id":19846,"Name":"","CurseForge":"gtfocraftprotocol","Modrinth":"gtfo-craft-protocol"},{"Id":19848,"Name":"","CurseForge":"keerdm-zombie-apocalypse-essentials","Modrinth":"keerdm-zombie-apocolypse-essentials"},{"Id":19849,"Name":"","CurseForge":"chovys-apocalypse","Modrinth":"chovys-apocalypse"},{"Id":19850,"Name":"","CurseForge":"bexlas-enhanced-ores","Modrinth":""},{"Id":19851,"Name":"饿死图书馆 (Starve Library)","CurseForge":"starve-library","Modrinth":"starve-library"},{"Id":19854,"Name":"无限续杯 (Infinite Refills)","CurseForge":"infinite-refills","Modrinth":""},{"Id":19855,"Name":"一导即出 (Systrace)","CurseForge":"systrace","Modrinth":"systrace"},{"Id":19856,"Name":"","CurseForge":"fluxed-core","Modrinth":"fluxed-core"},{"Id":19857,"Name":"我的幸运方块 (MyLuckyBlock)","CurseForge":"myluckyblock","Modrinth":"myluckyblock"},{"Id":19859,"Name":"背倍加 (Backpack Plus/Backpack Plus: Sophisticated Backpacks Addon)","CurseForge":"backpack-plus","Modrinth":"backpackplus"},{"Id":19860,"Name":"","CurseForge":"","Modrinth":"hydration-mod"},{"Id":19862,"Name":"污秽之地重置版 (Defiled Lands Reborn)","CurseForge":"defiled-lands-reborn","Modrinth":"defiled-lands-reborn"},{"Id":19863,"Name":"铜灯补充 (Copper Bulb Early)","CurseForge":"","Modrinth":"copper-bulb-early"},{"Id":19864,"Name":"未来防火 (Future Fireproof)","CurseForge":"future-fireproof","Modrinth":"future-fireproof"},{"Id":19865,"Name":"","CurseForge":"","Modrinth":"low-durability-switcher"},{"Id":19866,"Name":"","CurseForge":"dimensional-potions","Modrinth":""},{"Id":19867,"Name":"恶魂掉落唱片 (Ghasts Drop Records)","CurseForge":"ghasts-drop-records","Modrinth":""},{"Id":19868,"Name":"","CurseForge":"ftb-chunks-compatibility-mod","Modrinth":"ftb-chunks-compatibility-mod"},{"Id":19869,"Name":"","CurseForge":"charm-forked","Modrinth":"charm-forked"},{"Id":19870,"Name":"","CurseForge":"early-bedtime","Modrinth":"early-bedtime"},{"Id":19872,"Name":"","CurseForge":"instant-picking","Modrinth":"instant-picking"},{"Id":19873,"Name":"","CurseForge":"","Modrinth":"quick-craft"},{"Id":19874,"Name":"","CurseForge":"kubejs-curios","Modrinth":""},{"Id":19875,"Name":"","CurseForge":"copper-carrots","Modrinth":"copper-carrots"},{"Id":19876,"Name":"工匠珠宝 (Tinkers' Jewelry)","CurseForge":"tinkers-jewelry","Modrinth":"tinkers-jewelry"},{"Id":19877,"Name":"","CurseForge":"thief","Modrinth":"thief"},{"Id":19878,"Name":"","CurseForge":"applied-schematicannon","Modrinth":""},{"Id":19879,"Name":"更多功能性存储 (More Functional Storage)","CurseForge":"more-functional-storage","Modrinth":"more-functional-storage"},{"Id":19880,"Name":"活力草药 (Vital Herbs)","CurseForge":"vital-herbs","Modrinth":""},{"Id":19882,"Name":"","CurseForge":"hbm-ntm-structure-1-12-2","Modrinth":""},{"Id":19883,"Name":"","CurseForge":"illusioners","Modrinth":""},{"Id":19884,"Name":"","CurseForge":"cataclysms","Modrinth":"cataclysms"},{"Id":19885,"Name":"","CurseForge":"bas-cave-enemies","Modrinth":""},{"Id":19886,"Name":"","CurseForge":"sniffer-ride","Modrinth":""},{"Id":19887,"Name":"","CurseForge":"aesthetic-shelving","Modrinth":""},{"Id":19888,"Name":"","CurseForge":"arboreal-nature","Modrinth":"arboreal-nature"},{"Id":19890,"Name":"","CurseForge":"fracture-point","Modrinth":"fracturepoint"},{"Id":19891,"Name":"","CurseForge":"","Modrinth":"ceres"},{"Id":19893,"Name":"智能爆破专家 (Creeper Super)","CurseForge":"creeper-super","Modrinth":""},{"Id":19894,"Name":"","CurseForge":"expanded-experience","Modrinth":""},{"Id":19895,"Name":"","CurseForge":"reworked-phantoms","Modrinth":"reworked-phantoms"},{"Id":19896,"Name":"","CurseForge":"ex-nihilo-fabricio","Modrinth":"ex-nihilo-fabricio"},{"Id":19897,"Name":"","CurseForge":"hybrid-delights","Modrinth":"hybrid-delights"},{"Id":19898,"Name":"机械动力:服装 (Create: Clothes)","CurseForge":"create-clothes","Modrinth":"create-clothes"},{"Id":19899,"Name":"","CurseForge":"create-delivery-director","Modrinth":"delivery-director"},{"Id":19900,"Name":"","CurseForge":"create-cardboard-things","Modrinth":"create-cardboard-things"},{"Id":19902,"Name":"","CurseForge":"watkinsbase","Modrinth":""},{"Id":19906,"Name":"","CurseForge":"toggleable-enchantments","Modrinth":"toggleable-enchantments"},{"Id":19910,"Name":"逃逸:寄生体深海危机 (Scape and Run: Parasites Deep Sea Danger)","CurseForge":"scape-and-run-parasites-deep-sea-danger","Modrinth":"scape-and-run-parasites-deep-sea-danger"},{"Id":19912,"Name":"","CurseForge":"craft-in-shadow","Modrinth":""},{"Id":19913,"Name":"","CurseForge":"","Modrinth":"jewelryz"},{"Id":19914,"Name":"","CurseForge":"better-armory-mod","Modrinth":"seths-better-armory"},{"Id":19915,"Name":"暮色森林 - 地牢与村庄 (Twilight Forest - Dungeons & Villages)","CurseForge":"twilight-forest-dungeons-villages","Modrinth":"the-twilight-forest-dungeons-villages"},{"Id":19916,"Name":"","CurseForge":"mice","Modrinth":"mice"},{"Id":19917,"Name":"","CurseForge":"ancient-golems","Modrinth":"ancient-golems"},{"Id":19918,"Name":"","CurseForge":"model-citizens","Modrinth":""},{"Id":19919,"Name":"","CurseForge":"botanical-machinery-extra","Modrinth":"tPTR9GcJ"},{"Id":19920,"Name":"","CurseForge":"flowerary","Modrinth":"flowerary"},{"Id":19921,"Name":"额外植物学:重燃 (Extrabotany: Reburn)","CurseForge":"extrabotany-reburn","Modrinth":"extrabotany"},{"Id":19925,"Name":"马儿跳乐事 (Umapyoi Delight)","CurseForge":"umapyoi-delight","Modrinth":""},{"Id":19926,"Name":"","CurseForge":"lne-rogues","Modrinth":"lne-rogues"},{"Id":19927,"Name":"","CurseForge":"lne-archers","Modrinth":"lne-archers"},{"Id":19928,"Name":"","CurseForge":"lne-wizards","Modrinth":"lne-wizards"},{"Id":19929,"Name":"","CurseForge":"lne-paladins","Modrinth":"lne-paladins"},{"Id":19930,"Name":"","CurseForge":"","Modrinth":"protomanlys-weather"},{"Id":19931,"Name":"","CurseForge":"tinkers-mechworks-legacy","Modrinth":""},{"Id":19932,"Name":"","CurseForge":"bbl-core","Modrinth":"bbl-core"},{"Id":19933,"Name":"空栈粒子框架 (CooParticlesAPI)","CurseForge":"cooparticlesapi","Modrinth":"cooparticlesapi"},{"Id":19934,"Name":"","CurseForge":"fdlib","Modrinth":"fdlib"},{"Id":19935,"Name":"","CurseForge":"potion-icons","Modrinth":"potionicons"},{"Id":19936,"Name":"","CurseForge":"catvision","Modrinth":""},{"Id":19937,"Name":"","CurseForge":"spectre-things","Modrinth":"spectre-things"},{"Id":19938,"Name":"","CurseForge":"chatplus","Modrinth":"chatplus"},{"Id":19939,"Name":"","CurseForge":"ritual-enchanting","Modrinth":""},{"Id":19940,"Name":"","CurseForge":"peaceful-progression","Modrinth":"peaceful-progression"},{"Id":19943,"Name":"实用魔法 (UsefulMagic)","CurseForge":"usefulmagic","Modrinth":"usefulmagic"},{"Id":19944,"Name":"死亡不掉落增强 (Keeping Inventoiry Next)","CurseForge":"keepinventorynext","Modrinth":""},{"Id":19946,"Name":"工匠珠宝拓展 (Tinkers' Jewelry EX)","CurseForge":"tinkers-jewelry-ex","Modrinth":""},{"Id":19947,"Name":"璀璨饰品 (Lovely Sparkle Pieces)","CurseForge":"lovely-sparkle-pieces","Modrinth":""},{"Id":19949,"Name":"","CurseForge":"yuns-weather","Modrinth":"yuns-weather"},{"Id":19950,"Name":"逆卡巴拉:觉醒 (Qliphoth Awakening)","CurseForge":"qliphoth-awakening","Modrinth":"qliphoth-awakening"},{"Id":19953,"Name":"通用模组汉化器 (Universal Mod Localizer)","CurseForge":"universal-mod-localizer","Modrinth":"universal_mod_localizer"},{"Id":19954,"Name":"智慧苦力怕 (Smart Creeper)","CurseForge":"smart-creeper","Modrinth":"smart-creeper"},{"Id":19955,"Name":"和平消耗 (Peaceful Depletion)","CurseForge":"peaceful-depletion","Modrinth":"peaceful_depletion"},{"Id":19956,"Name":"","CurseForge":"","Modrinth":"everything-is-tnt"},{"Id":19957,"Name":"","CurseForge":"structure-pool-api","Modrinth":"structure-pool-api"},{"Id":19958,"Name":"","CurseForge":"create-bluemap","Modrinth":"create-bluemap"},{"Id":19959,"Name":"悲惨世界2:延续 (TragicMC 2 Continuation)","CurseForge":"tragicmc-2-continuation","Modrinth":""},{"Id":19960,"Name":"","CurseForge":"nebula-parasites","Modrinth":"nebula-parasites"},{"Id":19961,"Name":"盆栽非官方延续版 (Bonsai Trees Unofficial Extended Life)","CurseForge":"bonsai-trees-unofficial-extended-life","Modrinth":""},{"Id":19962,"Name":"","CurseForge":"","Modrinth":"its-as-shrimple-as-that"},{"Id":19963,"Name":"","CurseForge":"worldedit-items","Modrinth":"worldedit-items"},{"Id":19964,"Name":"拔刀皮肤 (SlashBlade Skin)","CurseForge":"slashblade-skin","Modrinth":"slashblade-skin"},{"Id":19965,"Name":"","CurseForge":"iron-door-key","Modrinth":"iron-door-key"},{"Id":19966,"Name":"","CurseForge":"just-enough-fishing-jef","Modrinth":"just-enough-fishing-(jef)"},{"Id":19967,"Name":"","CurseForge":"containersearch","Modrinth":"container-search"},{"Id":19968,"Name":"","CurseForge":"mousepets","Modrinth":"mousepets"},{"Id":19969,"Name":"","CurseForge":"backported-minecarts","Modrinth":"backported-minecarts"},{"Id":19970,"Name":"","CurseForge":"simple-incubator","Modrinth":"simple-incubator"},{"Id":19971,"Name":"","CurseForge":"amethyst-stairs-slabs-and-walls","Modrinth":""},{"Id":19972,"Name":"","CurseForge":"","Modrinth":"vessels"},{"Id":19973,"Name":"","CurseForge":"ultimate-scaler","Modrinth":"ultimate-scaler"},{"Id":19974,"Name":"","CurseForge":"legendary-weapons-byititor","Modrinth":"legendaryweapons"},{"Id":19975,"Name":"","CurseForge":"slender-reborn","Modrinth":""},{"Id":19976,"Name":"","CurseForge":"craft-vania-lite","Modrinth":""},{"Id":19977,"Name":"","CurseForge":"pollution-of-create","Modrinth":""},{"Id":19978,"Name":"机械动力:巧克力喷泉 (Create: Chocolate Fountain)","CurseForge":"create-chocolate-fountain","Modrinth":"create-chocolate-fountain"},{"Id":19979,"Name":"机械动力:货币商店 (Create: Currency Shops)","CurseForge":"create-currency-shops","Modrinth":"create-currency-shops"},{"Id":19980,"Name":"机械动力:下界工业 (Create: Nether Industry)","CurseForge":"create-nether-industry","Modrinth":"create-nether-industry"},{"Id":19981,"Name":"","CurseForge":"backported-diamond-ore-gen","Modrinth":""},{"Id":19982,"Name":"","CurseForge":"tfthreadsafetyaddon","Modrinth":""},{"Id":19983,"Name":"","CurseForge":"serverautosaver","Modrinth":""},{"Id":19984,"Name":"无限堆叠 (InfiniStack)","CurseForge":"infinistack","Modrinth":"infinistack"},{"Id":19985,"Name":"强力假人 (Powerful Dummy)","CurseForge":"powerful-dummy","Modrinth":""},{"Id":19986,"Name":"","CurseForge":"beyond-bosses","Modrinth":"beyondbosses"},{"Id":19987,"Name":"","CurseForge":"mini-utilities-y","Modrinth":""},{"Id":19988,"Name":"田园调酿! (Concoction!)","CurseForge":"concoction","Modrinth":"concoction!"},{"Id":19989,"Name":"","CurseForge":"zombietactics2","Modrinth":"zombietactics2"},{"Id":19990,"Name":"辐射荒原:再行 (Radiation Zone: Reborn)","CurseForge":"radiation-zone-reborn","Modrinth":""},{"Id":19992,"Name":"","CurseForge":"","Modrinth":"crumbling-hearts"},{"Id":19994,"Name":"","CurseForge":"dye-the-world","Modrinth":"dye-the-world"},{"Id":19995,"Name":"","CurseForge":"modernmarkings","Modrinth":"modernmarkings"},{"Id":19996,"Name":"","CurseForge":"hololive-product","Modrinth":"hololive-product"},{"Id":19997,"Name":"","CurseForge":"fetzis-displays","Modrinth":"fetzis-displays"},{"Id":19998,"Name":"","CurseForge":"shadered","Modrinth":"shadered"},{"Id":19999,"Name":"","CurseForge":"sweety-garden","Modrinth":"sweety-garden"},{"Id":20001,"Name":"","CurseForge":"","Modrinth":"twilight-forest-aurora-palace-regeared"},{"Id":20002,"Name":"长生诀 (ChangShengJue)","CurseForge":"changshengjue","Modrinth":"changshengjue"},{"Id":20004,"Name":"","CurseForge":"medieval-buildings-nether-edition","Modrinth":""},{"Id":20005,"Name":"","CurseForge":"","Modrinth":"ribbits-croaks"},{"Id":20006,"Name":"","CurseForge":"echoes-of-time","Modrinth":"echoes-of-time"},{"Id":20007,"Name":"","CurseForge":"horror-alexbrine","Modrinth":""},{"Id":20008,"Name":"绝区零·星见雅 (ZZZ Miyabi)","CurseForge":"zzz-craft","Modrinth":""},{"Id":20010,"Name":"","CurseForge":"cozy-cabins-and-cottages","Modrinth":"cozy-cabins-and-cottages"},{"Id":20011,"Name":"","CurseForge":"servereye","Modrinth":""},{"Id":20012,"Name":"","CurseForge":"deepseek","Modrinth":"deepseek-neoforge"},{"Id":20013,"Name":"AI指令生成 (AI Command Generator)","CurseForge":"ai-command","Modrinth":""},{"Id":20015,"Name":"","CurseForge":"flighthud-do-a-barrel-roll-fix","Modrinth":""},{"Id":20017,"Name":"快速容器放置 (Fast Container Placement)","CurseForge":"fast-container-placement","Modrinth":"fast-container-placement"},{"Id":20018,"Name":"","CurseForge":"","Modrinth":"teleport-mod"},{"Id":20019,"Name":"","CurseForge":"","Modrinth":"what-meme"},{"Id":20020,"Name":"","CurseForge":"crackers-wither-storm-mod-v-sides-soundtrack","Modrinth":"crackers-wither-storm-mod-v-sides-soundtrack"},{"Id":20022,"Name":"Robert的游戏调整 (Robert's Game Tweaks)","CurseForge":"roberts-game-tweaks","Modrinth":""},{"Id":20024,"Name":"数据包错误修复:重生 (Datapack Load Error Fix Reborn)","CurseForge":"datapackloaderrorfix","Modrinth":"datapack-load-error-fix"},{"Id":20025,"Name":"","CurseForge":"","Modrinth":"whats-this"},{"Id":20026,"Name":"","CurseForge":"","Modrinth":"additional-jewelryz"},{"Id":20027,"Name":"","CurseForge":"tacz-tes-compat","Modrinth":"tacz-tes-compat"},{"Id":20029,"Name":"","CurseForge":"day-counter-mod","Modrinth":""},{"Id":20030,"Name":"","CurseForge":"directionhud","Modrinth":""},{"Id":20031,"Name":"","CurseForge":"raw-netherite-reforged","Modrinth":"raw-netherite-reforged"},{"Id":20032,"Name":"旅行火炮·重生 (Blast Travel Reborn)","CurseForge":"blast-travel-reborn","Modrinth":"blasttravelreborn"},{"Id":20033,"Name":"山西骷髅 (Shanxi Skeleton)","CurseForge":"shanxi-skeleton","Modrinth":"shanxiskeleton"},{"Id":20034,"Name":"火药改革 (Gunpowder Overhaul)","CurseForge":"","Modrinth":"gunpowder-overhaul"},{"Id":20035,"Name":"","CurseForge":"smoking-stuff-a-wizards-hobby","Modrinth":"smoking-stuff-a-wizards-hobby"},{"Id":20036,"Name":"","CurseForge":"mc-modsoy-smelter","Modrinth":"alloy-smelter"},{"Id":20037,"Name":"","CurseForge":"","Modrinth":"autocrafter-early"},{"Id":20038,"Name":"","CurseForge":"time-in-a-bottle-charger","Modrinth":"time-in-a-bottle-charger"},{"Id":20039,"Name":"","CurseForge":"just-a-sculk-vial","Modrinth":"just-a-sculk-vial"},{"Id":20040,"Name":"","CurseForge":"lockylocks","Modrinth":"lockylocks"},{"Id":20041,"Name":"","CurseForge":"server-i18n-api","Modrinth":"server-i18n-api"},{"Id":20042,"Name":"","CurseForge":"fragmentum-forge","Modrinth":"fragmentum"},{"Id":20042,"Name":"","CurseForge":"fragmentum-neoforge","Modrinth":""},{"Id":20042,"Name":"","CurseForge":"fragmentum-fabric","Modrinth":""},{"Id":20043,"Name":"Monument 数据修复 (Monument Data Fix)","CurseForge":"","Modrinth":"monument-data-fix"},{"Id":20044,"Name":"","CurseForge":"","Modrinth":"better_tp"},{"Id":20045,"Name":"消币则至 / 传送石碑:货币 (Waystone: Currencys)","CurseForge":"waystone-currencys","Modrinth":"waystone-currencys"},{"Id":20046,"Name":"盔甲架 (ArmorStand)","CurseForge":"","Modrinth":"armor-stand"},{"Id":20047,"Name":"ThreadTweak (Neo)Forge 移植版 (ThreadTweak Reforged)","CurseForge":"threadtweak-reforged","Modrinth":""},{"Id":20048,"Name":"","CurseForge":"","Modrinth":"environmental-creepers-backport"},{"Id":20049,"Name":"","CurseForge":"com-bat","Modrinth":""},{"Id":20050,"Name":"","CurseForge":"touhou-little-maid-rpg-class-task","Modrinth":"touhou-little-maid-rpg-task"},{"Id":20051,"Name":"","CurseForge":"unknown5473lib","Modrinth":"unknown5473lib"},{"Id":20052,"Name":"热量与气候修复 (Heat And Climate Patch)","CurseForge":"heat-and-climate-patch","Modrinth":""},{"Id":20054,"Name":"","CurseForge":"","Modrinth":"clientupdater"},{"Id":20056,"Name":"","CurseForge":"modern-lucky-block","Modrinth":"modern-lucky-block"},{"Id":20057,"Name":"","CurseForge":"foxrecipemaker","Modrinth":""},{"Id":20058,"Name":"全局生物血量倍率 (Global Mob Health Multiplier)","CurseForge":"","Modrinth":"global-mob-health-multiplier"},{"Id":20059,"Name":"对话框 (ChatBox)","CurseForge":"chatbox-for-mc","Modrinth":"chatbox"},{"Id":20060,"Name":"","CurseForge":"perfectly-balanced-bows","Modrinth":""},{"Id":20061,"Name":"PlayerEx 酒精版 (PlayerEx: Alcohol)","CurseForge":"","Modrinth":"playerex-alcohol"},{"Id":20062,"Name":"","CurseForge":"hak-minepiece","Modrinth":""},{"Id":20063,"Name":"","CurseForge":"grease","Modrinth":"grease"},{"Id":20064,"Name":"","CurseForge":"cleaver-compedium","Modrinth":"cleaver-compendium"},{"Id":20065,"Name":"","CurseForge":"phayriosis-parasite-infection","Modrinth":""},{"Id":20066,"Name":"逃寄:无妄之灾 (SRP: Calamity Catastrophe Cataclysm)","CurseForge":"srp-calamity-catastrophe-cataclysm","Modrinth":"srp-calamity-catastrophe-cataclysm"},{"Id":20067,"Name":"","CurseForge":"moss-overgrowth","Modrinth":""},{"Id":20068,"Name":"","CurseForge":"create-pillager-arise","Modrinth":""},{"Id":20069,"Name":"","CurseForge":"create-qol","Modrinth":"create-qol"},{"Id":20070,"Name":"机械动力:远程终端 (Create: Remote Terminal)","CurseForge":"create-remote-terminal","Modrinth":"create-remote-terminal"},{"Id":20071,"Name":"","CurseForge":"fallen-fungus","Modrinth":""},{"Id":20073,"Name":"战争之歌 (Songs of War)","CurseForge":"songs-of-war","Modrinth":"songs-of-war"},{"Id":20074,"Name":"","CurseForge":"cataclysm-summons","Modrinth":"cataclysm-summons"},{"Id":20075,"Name":"","CurseForge":"cutepuppymod","Modrinth":"cutepuppymod"},{"Id":20076,"Name":"沼泽巨树 (Giant Swamp Tree)","CurseForge":"giant-swamp-tree","Modrinth":"giant-swamp-tree"},{"Id":20077,"Name":"大橡树 (Big Oak Tree)","CurseForge":"big-oak-tree","Modrinth":"big-oak-tree"},{"Id":20078,"Name":"巨型树桩 (Giant Tree Stump)","CurseForge":"giant-tree-stump","Modrinth":"giant-tree-stump"},{"Id":20080,"Name":"","CurseForge":"polars-mad-tweaks","Modrinth":"polars-mad-tweaks"},{"Id":20081,"Name":"方块宝可梦-排位赛 (Cobblemon Ranked)","CurseForge":"cobblemon-ranked","Modrinth":"cobblemon-ranked"},{"Id":20082,"Name":"","CurseForge":"eiramoticons","Modrinth":""},{"Id":20083,"Name":"","CurseForge":"horse-breeding-fix","Modrinth":"horse-breeding-fix"},{"Id":20084,"Name":"TAB 列表扩展 (TabListExtension)","CurseForge":"tablistextension","Modrinth":"tablistextension"},{"Id":20085,"Name":"","CurseForge":"rally-of-the-guard-guardvillagers","Modrinth":""},{"Id":20086,"Name":"","CurseForge":"bncci","Modrinth":""},{"Id":20087,"Name":"","CurseForge":"","Modrinth":"recipe-maker"},{"Id":20088,"Name":"传送门嬗变 (PortalTransform)","CurseForge":"portaltransform","Modrinth":"portaltransform"},{"Id":20089,"Name":"更多的画 (More Paintings)","CurseForge":"","Modrinth":"a555sd"},{"Id":20090,"Name":"","CurseForge":"unusual-furniture","Modrinth":"unusual-furniture"},{"Id":20091,"Name":"小安的月饼狂热 (Xiaoan's Mooncake Fever)","CurseForge":"xiaoanmooncake","Modrinth":"xiaoanmooncake"},{"Id":20092,"Name":"巧觅巧食 (Forager's Insight)","CurseForge":"foragers-insight","Modrinth":"foragers-insight"},{"Id":20093,"Name":"","CurseForge":"palestinian-delight","Modrinth":"palestinian-delight"},{"Id":20094,"Name":"通用机械:更多机器 (Mekanism: More Machine)","CurseForge":"mekanism-more-machine","Modrinth":"mekanismmoremachine"},{"Id":20095,"Name":"自定义大逃杀 (Custom BattleRoyale)","CurseForge":"custom-battleroyale","Modrinth":"custom-battleroyale"},{"Id":20096,"Name":"","CurseForge":"improved-pillager-outpost","Modrinth":""},{"Id":20097,"Name":"","CurseForge":"rebalanced-enchanting","Modrinth":"rebalanced-enchanting"},{"Id":20098,"Name":"","CurseForge":"dark-doppelganger","Modrinth":"dark-doppelganger"},{"Id":20099,"Name":"","CurseForge":"enders-spellsandstuff","Modrinth":""},{"Id":20100,"Name":"","CurseForge":"hazen-n-stuff","Modrinth":"hazen-n-stuff"},{"Id":20101,"Name":"","CurseForge":"spongeforge","Modrinth":"spongeforge"},{"Id":20103,"Name":"补药趋势啊! (Don't Die!)","CurseForge":"","Modrinth":"don%22t-die"},{"Id":20104,"Name":"","CurseForge":"sdm-market","Modrinth":"sdm-market"},{"Id":20105,"Name":"","CurseForge":"omnilook","Modrinth":"omnilook"},{"Id":20107,"Name":"","CurseForge":"survivalist-essentials","Modrinth":"survivalist-essentials"},{"Id":20108,"Name":"","CurseForge":"villager-trading-plus","Modrinth":"trading+"},{"Id":20109,"Name":"经验修补修复 (Mending Fix)","CurseForge":"mending-fix","Modrinth":""},{"Id":20111,"Name":"","CurseForge":"colorwheel","Modrinth":"colorwheel"},{"Id":20112,"Name":"","CurseForge":"tlib","Modrinth":"tlib"},{"Id":20113,"Name":"","CurseForge":"smoothscreen","Modrinth":"smoothscreen"},{"Id":20115,"Name":"","CurseForge":"","Modrinth":"fuzz"},{"Id":20116,"Name":"高级战利品信息显示 (Advanced Loot Info)","CurseForge":"advanced-loot-info","Modrinth":"advanced-loot-info"},{"Id":20117,"Name":"","CurseForge":"resourcepackcached","Modrinth":"resourcepackcached"},{"Id":20118,"Name":"竹叶清 (Aotake Sweep)","CurseForge":"aotake-sweep","Modrinth":""},{"Id":20120,"Name":"","CurseForge":"effectual","Modrinth":"effectual"},{"Id":20121,"Name":"冷晖之枪 (Cold Light)","CurseForge":"cold-light","Modrinth":"cold-light"},{"Id":20123,"Name":"Huanle的武器 (Huanle's weapons)","CurseForge":"huanles-weapons","Modrinth":"huanles-weapons"},{"Id":20124,"Name":"","CurseForge":"","Modrinth":"clay-soldiers-remake"},{"Id":20125,"Name":"","CurseForge":"threateningly-mobs","Modrinth":"threateningly-mobs"},{"Id":20126,"Name":"","CurseForge":"basic-spinosaurus","Modrinth":""},{"Id":20127,"Name":"","CurseForge":"european-wildlife","Modrinth":""},{"Id":20128,"Name":"","CurseForge":"marvelous-menagerie","Modrinth":"marvelous-menagerie"},{"Id":20129,"Name":"","CurseForge":"roman-weaponary","Modrinth":""},{"Id":20130,"Name":"","CurseForge":"compat-structure","Modrinth":"compat-structure"},{"Id":20131,"Name":"","CurseForge":"flower-bed","Modrinth":"flower-bed"},{"Id":20132,"Name":"","CurseForge":"archery-expansion-squared","Modrinth":""},{"Id":20133,"Name":"","CurseForge":"create-more-linked-remote","Modrinth":"create-more-linked-remote"},{"Id":20137,"Name":"","CurseForge":"gambagoons-better-emeralds","Modrinth":""},{"Id":20138,"Name":"游戏内输入法-1.12.2 (IngameIME-Vintage)","CurseForge":"ingameime-vintage","Modrinth":"ingameime-vintage"},{"Id":20139,"Name":"","CurseForge":"extreme-sound-muffler-legacy","Modrinth":"extreme-sound-muffler-legacy"},{"Id":20140,"Name":"","CurseForge":"amazing-trophies","Modrinth":""},{"Id":20143,"Name":"全局服务器配置 (Global Server Configs)","CurseForge":"global-server-configs","Modrinth":"global-server-config"},{"Id":20144,"Name":"","CurseForge":"expandedbonemeal","Modrinth":""},{"Id":20145,"Name":"AI回复助手 (AIReplyAssistant)","CurseForge":"","Modrinth":"aireplyassistant"},{"Id":20146,"Name":"","CurseForge":"utiljs","Modrinth":""},{"Id":20147,"Name":"","CurseForge":"moon-info-updated","Modrinth":"moon-info-updated"},{"Id":20148,"Name":"服务器市场 (Server Market)","CurseForge":"","Modrinth":"server-market"},{"Id":20149,"Name":"","CurseForge":"nbt-tooltip","Modrinth":"nbttooltip"},{"Id":20150,"Name":"","CurseForge":"delicate-dyes","Modrinth":"delicate-dyes"},{"Id":20151,"Name":"","CurseForge":"","Modrinth":"modernmixins"},{"Id":20152,"Name":"","CurseForge":"sdm-economy","Modrinth":""},{"Id":20153,"Name":"","CurseForge":"sdm-ui-lib","Modrinth":"sdm-ui-lib"},{"Id":20154,"Name":"","CurseForge":"mcllm","Modrinth":"mcllm"},{"Id":20155,"Name":"","CurseForge":"","Modrinth":"inventory-pause-yipeekiyaay"},{"Id":20156,"Name":"容器检索 (ChestSearch)","CurseForge":"chestsearch","Modrinth":""},{"Id":20157,"Name":"Clicktor连点器 (Clicktor - Auto Clicker)","CurseForge":"clicktor","Modrinth":""},{"Id":20158,"Name":"","CurseForge":"extended-bone-meal","Modrinth":"extended-bone-meal"},{"Id":20158,"Name":"","CurseForge":"extended-bone-meal-fabric","Modrinth":""},{"Id":20159,"Name":"怎魔,你不附器 (Show Me The Enchantment)","CurseForge":"show-me-the-enchantment","Modrinth":""},{"Id":20160,"Name":"","CurseForge":"better-sign-edit","Modrinth":"better-sign-edit"},{"Id":20161,"Name":"唱片合成 (Disc Recipe)","CurseForge":"disc-recipes","Modrinth":"disc-recipes"},{"Id":20163,"Name":"移植补充 (backportsupplement)","CurseForge":"","Modrinth":"backportsupplement"},{"Id":20164,"Name":"侦察兵 重构 (Scout Reforked)","CurseForge":"scoutreforked","Modrinth":"scoutreforked"},{"Id":20165,"Name":"沉浸交通道路 (Immersion in Traffic Context) - 旧版","CurseForge":"immersion-in-traffic-context","Modrinth":""},{"Id":20165,"Name":"沉浸交通道路 (Immersion in Traffic Context)","CurseForge":"immersion-in-traffic-context-2","Modrinth":"immersion-in-traffic-context"},{"Id":20166,"Name":"明日方舟家具 (ArknightsFurniture)","CurseForge":"arknightsfurniture","Modrinth":"arknightsfurniture"},{"Id":20167,"Name":"","CurseForge":"gunsmith-lib","Modrinth":""},{"Id":20168,"Name":"","CurseForge":"","Modrinth":"emixx"},{"Id":20169,"Name":"","CurseForge":"experiencelib","Modrinth":"experiencelib"},{"Id":20170,"Name":"","CurseForge":"mystical-mobs","Modrinth":""},{"Id":20172,"Name":"","CurseForge":"progressive-difficulty-chaos-integration","Modrinth":"progressive-difficulty-chaos-integration"},{"Id":20173,"Name":"","CurseForge":"ottapomos-scps","Modrinth":""},{"Id":20174,"Name":"","CurseForge":"scp-foundation-requisites","Modrinth":"scp-foundation-requisites"},{"Id":20175,"Name":"","CurseForge":"thermal-construct","Modrinth":"thermal-construct"},{"Id":20176,"Name":"战争凋灵 (War Wither)","CurseForge":"war-wither","Modrinth":"war-wither"},{"Id":20177,"Name":"","CurseForge":"status-effect-bars-reforged","Modrinth":"status-effect-bars-reforged"},{"Id":20178,"Name":"","CurseForge":"dark-tower-maze","Modrinth":""},{"Id":20180,"Name":"","CurseForge":"the-occult","Modrinth":""},{"Id":20181,"Name":"","CurseForge":"wolftailui","Modrinth":"wolftailui"},{"Id":20182,"Name":"更好的客户端 (Better Client)","CurseForge":"better-client","Modrinth":"better-client-enc"},{"Id":20183,"Name":"","CurseForge":"clientharvest","Modrinth":"clientharvest"},{"Id":20184,"Name":"","CurseForge":"auto-afk","Modrinth":""},{"Id":20184,"Name":"Auto AFK - 全,优先在这","CurseForge":"","Modrinth":"auto-afk"},{"Id":20185,"Name":"","CurseForge":"particle-effects-reforged","Modrinth":"particle-effects-reforged"},{"Id":20186,"Name":"","CurseForge":"hold-my-items-refoxed","Modrinth":""},{"Id":20187,"Name":"","CurseForge":"dont-claim-our-structures","Modrinth":""},{"Id":20188,"Name":"","CurseForge":"cosy-critters-creepy-crawlies","Modrinth":"cosy-critters-creepy-crawlies-neo"},{"Id":20189,"Name":"","CurseForge":"thin-air-ad-astra-compat","Modrinth":""},{"Id":20190,"Name":"yyz的背包 (Yyz's Backpack)","CurseForge":"yyzsbackpack","Modrinth":"yyzs-backpack"},{"Id":20192,"Name":"","CurseForge":"vital-delight","Modrinth":""},{"Id":20194,"Name":"","CurseForge":"","Modrinth":"mining-in-place"},{"Id":20195,"Name":"寻路者导航 (Pathfinder Navigation)","CurseForge":"pathfinder-navigation","Modrinth":""},{"Id":20196,"Name":"","CurseForge":"adorable-eggs","Modrinth":"adorable-eggs"},{"Id":20197,"Name":"","CurseForge":"food-addition","Modrinth":"food-addition"},{"Id":20198,"Name":"万物皆可图腾 (Everything Totem)","CurseForge":"everything-totem","Modrinth":""},{"Id":20199,"Name":"","CurseForge":"thaumic-renaissance","Modrinth":"thaumcraft-renaissance"},{"Id":20200,"Name":"","CurseForge":"","Modrinth":"executive"},{"Id":20201,"Name":"","CurseForge":"","Modrinth":"make-i18n-great-again"},{"Id":20202,"Name":"","CurseForge":"steve-goes-fishing","Modrinth":"steve-goes-fishing"},{"Id":20203,"Name":"","CurseForge":"voltaic-api","Modrinth":"voltaic"},{"Id":20204,"Name":"","CurseForge":"boat-delete-begone","Modrinth":"boatdeletebegone"},{"Id":20205,"Name":"","CurseForge":"zs-packet","Modrinth":""},{"Id":20206,"Name":"","CurseForge":"raise-them-hotbars","Modrinth":""},{"Id":20207,"Name":"","CurseForge":"quick-leafdecay","Modrinth":""},{"Id":20208,"Name":"","CurseForge":"footprint-particle-returns","Modrinth":""},{"Id":20209,"Name":"","CurseForge":"inventory-crafter-returns","Modrinth":""},{"Id":20210,"Name":"","CurseForge":"colorwheel-patcher","Modrinth":"colorwheel-patcher"},{"Id":20214,"Name":"llpsw的大喇叭 (llpswsounds)","CurseForge":"","Modrinth":"llpswsounds"},{"Id":20215,"Name":"","CurseForge":"difficulty-lock","Modrinth":"difficulty-lock"},{"Id":20215,"Name":"","CurseForge":"difficulty-lock-fabric","Modrinth":""},{"Id":20216,"Name":"","CurseForge":"ryymr","Modrinth":"ryymr"},{"Id":20217,"Name":"","CurseForge":"","Modrinth":"lazybeefix"},{"Id":20219,"Name":"","CurseForge":"lazy-ae2-tweaks","Modrinth":""},{"Id":20220,"Name":"","CurseForge":"coordinates-hud","Modrinth":"coordinateshud"},{"Id":20221,"Name":"","CurseForge":"just-enough-botania","Modrinth":"just-enough-botania"},{"Id":20222,"Name":"","CurseForge":"fumo-fumo","Modrinth":""},{"Id":20223,"Name":"幻雀妖 (Gensokyo Izakaya)","CurseForge":"touhoupixelcanteen-a-farmers-delight-plugin","Modrinth":"touhoupixelcanteen"},{"Id":20224,"Name":"","CurseForge":"perfect-parity-the-garden-awakens-edition","Modrinth":"perfect-parity-the-garden-awakens-edition"},{"Id":20225,"Name":"","CurseForge":"perfect-parity-spring-to-life-reforged","Modrinth":""},{"Id":20226,"Name":"机械动力:超级管道 (Create: Hypertubes)","CurseForge":"hypertubes","Modrinth":"hypertube"},{"Id":20227,"Name":"","CurseForge":"perfect-parity-spring-to-life-edition","Modrinth":"perfect-parity-1-21-5"},{"Id":20229,"Name":"","CurseForge":"create-apothic-enchanting","Modrinth":"create-apothic-enchanting"},{"Id":20230,"Name":"","CurseForge":"demis-enigmatic-dice","Modrinth":"demis-enigmatic-dice"},{"Id":20232,"Name":"月夜性能优化 (Moonlit Performance Enhancement Module)","CurseForge":"","Modrinth":"mpem"},{"Id":20233,"Name":"事件性能测试 (EventBenchmark)","CurseForge":"","Modrinth":"eventbenchmark"},{"Id":20234,"Name":"","CurseForge":"no-more-garbage-in-cell","Modrinth":""},{"Id":20235,"Name":"","CurseForge":"pick-up-filter-puf","Modrinth":"pick-up-filter"},{"Id":20237,"Name":"","CurseForge":"identity-fix-morph","Modrinth":"identity-fix"},{"Id":20239,"Name":"","CurseForge":"stick-it","Modrinth":"stick-it"},{"Id":20240,"Name":"","CurseForge":"aimod","Modrinth":""},{"Id":20241,"Name":"终末-归寄万物 (End-Parasitize and Convert All)","CurseForge":"epca","Modrinth":"epca"},{"Id":20242,"Name":"传说遗物 (Legendary Relics)","CurseForge":"legendary-relics","Modrinth":""},{"Id":20244,"Name":"真正的力量 (True POWER)","CurseForge":"true-power","Modrinth":"true-power"},{"Id":20245,"Name":"末地村庄 (Ender Villages)","CurseForge":"ender-villages","Modrinth":"ender-villages"},{"Id":20246,"Name":"暮色森林村庄 (Twilight Forest Villages)","CurseForge":"twilight-forest-villages","Modrinth":"twilight-forest-villages"},{"Id":20247,"Name":"","CurseForge":"poland-nature","Modrinth":""},{"Id":20248,"Name":"","CurseForge":"amethyst-extra","Modrinth":""},{"Id":20249,"Name":"","CurseForge":"villagers-windmill","Modrinth":""},{"Id":20250,"Name":"","CurseForge":"extended-wrenches","Modrinth":"extended-wrenches"},{"Id":20251,"Name":"为什么才64个呢? (Why Stack Only 64?)","CurseForge":"why-stack-only-64","Modrinth":""},{"Id":20252,"Name":"挖掘冷却控制 (DigCoolDown)","CurseForge":"","Modrinth":"digcooldown"},{"Id":20255,"Name":"","CurseForge":"potentials","Modrinth":"potentials"},{"Id":20256,"Name":"","CurseForge":"deltaboxlib","Modrinth":"deltaboxlib"},{"Id":20257,"Name":"Gobbob 的动画方块 (GobBob's Animated Blocks)","CurseForge":"gobbobs-animated-blocks","Modrinth":""},{"Id":20258,"Name":"发光足迹粒子 (GlowingFootsteps)","CurseForge":"glowingfootsteps","Modrinth":""},{"Id":20259,"Name":"","CurseForge":"simply-swords-overhaul","Modrinth":"simply-swords-overhaul"},{"Id":20260,"Name":"","CurseForge":"farms-and-foods","Modrinth":"farms-foods"},{"Id":20261,"Name":"成就修复 (Achievement Fix)","CurseForge":"","Modrinth":"achievement-fix"},{"Id":20263,"Name":"","CurseForge":"lang-magic-tweaker","Modrinth":""},{"Id":20264,"Name":"诞生维度自选 (Spawn Dimension Choice)","CurseForge":"spawn-dimension-choice","Modrinth":"spawn-dimension-choice"},{"Id":20265,"Name":"重铸石 (Reforge Stone)","CurseForge":"reforge-stone","Modrinth":"reforge-stone"},{"Id":20266,"Name":"","CurseForge":"numericalbotany","Modrinth":""},{"Id":20267,"Name":"","CurseForge":"cameraoverhaul-vintage","Modrinth":"cameraoverhaul-vintage"},{"Id":20270,"Name":"","CurseForge":"advanced-hoppers","Modrinth":""},{"Id":20272,"Name":"新生陨星 (Ars Meteorites)","CurseForge":"ars-meteorites","Modrinth":""},{"Id":20273,"Name":"","CurseForge":"the-hard-herobrine-mod","Modrinth":""},{"Id":20275,"Name":"","CurseForge":"tektopia-addons","Modrinth":""},{"Id":20276,"Name":"","CurseForge":"jason-voorhees","Modrinth":""},{"Id":20277,"Name":"","CurseForge":"biome-improvement-mindthemoods-pile-of-rocks","Modrinth":""},{"Id":20278,"Name":"简彩跃光 (Mochila)","CurseForge":"mochila","Modrinth":"mochila"},{"Id":20279,"Name":"","CurseForge":"soulytra","Modrinth":""},{"Id":20280,"Name":"高级群峦蓝图 (Advanced TFC Blueprint)","CurseForge":"","Modrinth":"advanced-tfc-blueprint"},{"Id":20281,"Name":"","CurseForge":"","Modrinth":"accesswidener-loader"},{"Id":20282,"Name":"","CurseForge":"improperui-forged","Modrinth":"improperui-forged"},{"Id":20284,"Name":"并非环取/攻击速度附魔非官方版 (Attack Speed Enchantment Unofficial)","CurseForge":"enchantment-to-attack-faster","Modrinth":""},{"Id":20285,"Name":"停止生长 (StopGrowth)","CurseForge":"","Modrinth":"stopgrowth"},{"Id":20286,"Name":"","CurseForge":"squid-no-glitch","Modrinth":""},{"Id":20287,"Name":"无痕夜视 (Permanent Night Vision)","CurseForge":"","Modrinth":"permanent-night-vision"},{"Id":20288,"Name":"","CurseForge":"","Modrinth":"rems-carpet-addition"},{"Id":20290,"Name":"","CurseForge":"colorful-hex","Modrinth":"colorful-hex"},{"Id":20292,"Name":"","CurseForge":"bbl-no-rain-fog","Modrinth":"bbl-no-rain-fog"},{"Id":20294,"Name":"","CurseForge":"","Modrinth":"be-quiet-negotiator"},{"Id":20295,"Name":"","CurseForge":"link15s-no-i-frames","Modrinth":""},{"Id":20296,"Name":"JEI扩展:重生 (JEI Integration: Reborn)","CurseForge":"jei-integration-reborn","Modrinth":"jei-integration-reborn"},{"Id":20297,"Name":"","CurseForge":"appliedsync","Modrinth":""},{"Id":20298,"Name":"","CurseForge":"jei-uu-assembler","Modrinth":"jei-uu-assembler"},{"Id":20299,"Name":"","CurseForge":"ominous-overlays","Modrinth":""},{"Id":20300,"Name":"","CurseForge":"create-nuclear-shell","Modrinth":"create-nuclear-shell"},{"Id":20301,"Name":"","CurseForge":"world-of-wonders","Modrinth":""},{"Id":20302,"Name":"陨石雨 (Horrible Meteor Shower)","CurseForge":"horrible-meteor-shower","Modrinth":""},{"Id":20303,"Name":"","CurseForge":"desertification","Modrinth":"desertification"},{"Id":20304,"Name":"","CurseForge":"cinchs-abandoned-houses","Modrinth":"cinchs-abandoned-houses"},{"Id":20305,"Name":"","CurseForge":"curse-breaker","Modrinth":"curse-breaker"},{"Id":20306,"Name":"百年战争 (Hundred Years Warfare)","CurseForge":"hundred-years-warfare","Modrinth":"hundred-years-warfare"},{"Id":20307,"Name":"","CurseForge":"biologica","Modrinth":"biologica"},{"Id":20308,"Name":"","CurseForge":"oritech-things","Modrinth":"oritech-things"},{"Id":20309,"Name":"","CurseForge":"potato-vehicle-industries","Modrinth":""},{"Id":20310,"Name":"","CurseForge":"warfare-wings","Modrinth":"warfare-wings"},{"Id":20311,"Name":"无尽乐事 (Avaritia's Delight)","CurseForge":"avaritias-delight","Modrinth":"avaritias-delight"},{"Id":20312,"Name":"","CurseForge":"mamas-herbs-and-harvest","Modrinth":"mamas-herbs-and-harvest"},{"Id":20313,"Name":"瓦尔基里:轨道学 (VS Orbit)","CurseForge":"vs-orbit","Modrinth":"vs-orbit"},{"Id":20314,"Name":"车万女仆:万法皆通 (Touhou Little Maid: Spell)","CurseForge":"touhou-little-maid-spell","Modrinth":"touhou-little-maid-spell"},{"Id":20315,"Name":"余影待终/掉落物消失提醒 (Despawn Notifier)","CurseForge":"despawn-notifier","Modrinth":""},{"Id":20316,"Name":"自定义 NPC BetaZavr 非官方版 (CustomNPCs Unofficial from BetaZavr)","CurseForge":"customnpcs-unofficial-from-betazavr","Modrinth":""},{"Id":20318,"Name":"Efficient Core自动挖掘器 (Efficient Core Automatic Mining)","CurseForge":"efficient-core-automatic-mining","Modrinth":""},{"Id":20319,"Name":"便当盒 (Bento Box)","CurseForge":"","Modrinth":"bento_box"},{"Id":20320,"Name":"自定义100天Boss (Custom 100-Day BOSS)","CurseForge":"custom-100-day-boss","Modrinth":"custom-100-day-boss"},{"Id":20321,"Name":"终焉图书馆 (EndingLibrary)","CurseForge":"endinglibrary","Modrinth":"endinglibrary"},{"Id":20322,"Name":"","CurseForge":"cinchs-extra-torches","Modrinth":"cinchs-extra-torches"},{"Id":20323,"Name":"","CurseForge":"corpse-x-cosmetic-armor-reworked-compat","Modrinth":"corpse-x-cosmetic-armor-reworked-compat"},{"Id":20324,"Name":"","CurseForge":"modular-angel-ring","Modrinth":""},{"Id":20325,"Name":"","CurseForge":"magic-feather-replumed","Modrinth":"magicfeather"},{"Id":20326,"Name":"","CurseForge":"essentialcraft-magic-reflux","Modrinth":""},{"Id":20327,"Name":"","CurseForge":"ad-astra-star","Modrinth":"ad-astra-star"},{"Id":20328,"Name":"","CurseForge":"neomopeds","Modrinth":""},{"Id":20329,"Name":"","CurseForge":"create-more-parallel-pipes","Modrinth":"create-more-parallel-pipes"},{"Id":20330,"Name":"","CurseForge":"create-garnished-reworked","Modrinth":"create-garnished-reworked"},{"Id":20332,"Name":"","CurseForge":"blue-archive-school-banners","Modrinth":""},{"Id":20333,"Name":"重锋:cia出如llo (CialloBlade)","CurseForge":"cialloblade","Modrinth":""},{"Id":20334,"Name":"","CurseForge":"windows-keyboard-fixes-returns","Modrinth":""},{"Id":20335,"Name":"","CurseForge":"aquatic-torches-returns","Modrinth":""},{"Id":20336,"Name":"","CurseForge":"cratetech-crate-storage","Modrinth":""},{"Id":20337,"Name":"","CurseForge":"bigger-and-better","Modrinth":"bigger-and-better"},{"Id":20338,"Name":"","CurseForge":"blabber","Modrinth":"blabber"},{"Id":20339,"Name":"","CurseForge":"reducedores","Modrinth":"reducedores"},{"Id":20340,"Name":"","CurseForge":"durabilityrarity","Modrinth":"durabilityrarity"},{"Id":20341,"Name":"","CurseForge":"ironfist-lite","Modrinth":""},{"Id":20342,"Name":"","CurseForge":"shear-chicken","Modrinth":"shear-chickens"},{"Id":20343,"Name":"","CurseForge":"no-moon-jar","Modrinth":"no_moon.jar"},{"Id":20344,"Name":"","CurseForge":"","Modrinth":"deep_space"},{"Id":20345,"Name":"","CurseForge":"blue-grove","Modrinth":""},{"Id":20346,"Name":"","CurseForge":"quarkponders","Modrinth":"quarkponders"},{"Id":20347,"Name":"","CurseForge":"sussy-sniffers","Modrinth":""},{"Id":20348,"Name":"","CurseForge":"firefly-bush-backport","Modrinth":"firefly-bush-backport"},{"Id":20349,"Name":"","CurseForge":"agritech-trees-automated-trees","Modrinth":"agritech-trees"},{"Id":20350,"Name":"","CurseForge":"agritech-evolved","Modrinth":"agritech-evolved"},{"Id":20351,"Name":"工业故事 (Wealizh)","CurseForge":"wealizh","Modrinth":"wealizh"},{"Id":20352,"Name":"湿法冶金学 (Hydrometallurgy)","CurseForge":"","Modrinth":"hydrometallurgy"},{"Id":20353,"Name":"","CurseForge":"mekanism-ecoenergistics-unofficial","Modrinth":""},{"Id":20355,"Name":"林间狐咏 (WoodlandFoxVerses)","CurseForge":"woodlandfoxverses","Modrinth":"woodlandfoxverses"},{"Id":20358,"Name":"摇曳花园 (Swaying Garden)","CurseForge":"swaying-garden","Modrinth":""},{"Id":20359,"Name":"逝者如饲:村民 (Time Feeds: Villager)","CurseForge":"time-feeds-villager","Modrinth":"time-feeds-villager"},{"Id":20360,"Name":"FTB 备份 3 (FTB Backups 3)","CurseForge":"ftb-backups-3","Modrinth":""},{"Id":20361,"Name":"","CurseForge":"kurolib","Modrinth":"kurolib"},{"Id":20362,"Name":"","CurseForge":"trimmed","Modrinth":"trimmed"},{"Id":20363,"Name":"自由相机API-三脚架 (Free Camera API Tripod)","CurseForge":"free-camera-api-tripod","Modrinth":"free-camera-api-tripod"},{"Id":20364,"Name":"","CurseForge":"abelia","Modrinth":"abelia"},{"Id":20366,"Name":"","CurseForge":"simple-weather","Modrinth":""},{"Id":20367,"Name":"","CurseForge":"simple-copy","Modrinth":"simple-copy"},{"Id":20368,"Name":"","CurseForge":"natures-aura-render-fix","Modrinth":"natures-aura-render-fix"},{"Id":20369,"Name":"","CurseForge":"creakingchopperenchantment","Modrinth":"creakingchopperenchantment"},{"Id":20370,"Name":"","CurseForge":"daily-rewards","Modrinth":"daily-rewards"},{"Id":20371,"Name":"","CurseForge":"initialdimensionreborn","Modrinth":"initialdimensionreborn"},{"Id":20373,"Name":"","CurseForge":"","Modrinth":"oo-ee-a-e-a-fabric"},{"Id":20375,"Name":"红石酱的附魔拓展 (Redstone-chan's Enchantment Expansion)","CurseForge":"redstone-chans-enchantment-expansion","Modrinth":""},{"Id":20376,"Name":"","CurseForge":"the-plugin-mod","Modrinth":"the-plugin-mod"},{"Id":20377,"Name":"","CurseForge":"cave-vision","Modrinth":""},{"Id":20378,"Name":"","CurseForge":"","Modrinth":"el-addon-retrieve-to-slot"},{"Id":20379,"Name":"","CurseForge":"aether-gloves-for-all","Modrinth":""},{"Id":20380,"Name":"","CurseForge":"reducedloot","Modrinth":"reducedloot"},{"Id":20381,"Name":"Iris 修复 (IrisFixes)","CurseForge":"","Modrinth":"irisfixes"},{"Id":20382,"Name":"","CurseForge":"musicjs","Modrinth":""},{"Id":20384,"Name":"自动挂起服务器 (Suspend The Server)","CurseForge":"suspendtheserver","Modrinth":""},{"Id":20385,"Name":"","CurseForge":"screenshot-layers","Modrinth":"screenshot-layers"},{"Id":20386,"Name":"","CurseForge":"anti-spider-climbing","Modrinth":""},{"Id":20387,"Name":"","CurseForge":"rechiseled-chipped","Modrinth":"rechiseled-chipped"},{"Id":20389,"Name":"","CurseForge":"weatherdisplay","Modrinth":"weatherdisplay"},{"Id":20390,"Name":"","CurseForge":"radium-fabric","Modrinth":"radium-mod"},{"Id":20391,"Name":"","CurseForge":"cinnabar","Modrinth":""},{"Id":20393,"Name":"","CurseForge":"pquality","Modrinth":"pquality"},{"Id":20395,"Name":"","CurseForge":"mte-patches","Modrinth":""},{"Id":20396,"Name":"","CurseForge":"happy-ghast-breeding","Modrinth":"happy-ghast-breeding"},{"Id":20397,"Name":"","CurseForge":"happy-ghast-flight","Modrinth":"happy-ghast-flight"},{"Id":20398,"Name":"","CurseForge":"the-angry-ghast","Modrinth":"the-angry-ghast"},{"Id":20399,"Name":"","CurseForge":"morfonica-dolls","Modrinth":"morfonica-in-minecraft"},{"Id":20400,"Name":"","CurseForge":"for-vanilla-flowers","Modrinth":""},{"Id":20401,"Name":"技能练习 (SkillPractise)","CurseForge":"","Modrinth":"skillpractise"},{"Id":20405,"Name":"","CurseForge":"bedrock-hotbar-offset","Modrinth":"bedrock-hotbar"},{"Id":20406,"Name":"","CurseForge":"mss-more-slot-swap","Modrinth":""},{"Id":20406,"Name":"","CurseForge":"more-slot-swap","Modrinth":""},{"Id":20407,"Name":"显示所有进度 (Show All Advancements)","CurseForge":"show-all-advancements","Modrinth":"show-all-advancements"},{"Id":20409,"Name":"","CurseForge":"mana-display","Modrinth":"mana-display"},{"Id":20411,"Name":"诅咒锻造 (Curse Forge)","CurseForge":"curse-forge","Modrinth":""},{"Id":20414,"Name":"","CurseForge":"disconnect-packet-fix","Modrinth":"disconnect-packet-fix"},{"Id":20415,"Name":"1.12.2的快乐恶魂 (HappyGhast_on_1.12.2)","CurseForge":"happyghast-on-1-12-2","Modrinth":"happyghast_on_1.12.2"},{"Id":20416,"Name":"自动化时代 (Automation Era)","CurseForge":"automationera","Modrinth":"automationera"},{"Id":20417,"Name":"","CurseForge":"","Modrinth":"tears-backport"},{"Id":20418,"Name":"","CurseForge":"lava-chicken-disc","Modrinth":""},{"Id":20419,"Name":"","CurseForge":"lava-dennis","Modrinth":""},{"Id":20420,"Name":"","CurseForge":"album-go-wall","Modrinth":""},{"Id":20421,"Name":"","CurseForge":"forgotten-java","Modrinth":""},{"Id":20422,"Name":"约翰内斯的文艺复兴:火器之重生 (Johannes's Renaissance: Musket Rebirth)","CurseForge":"johanness-renaissance-rebirth","Modrinth":"johanness-renaissancerebirth"},{"Id":20423,"Name":"","CurseForge":"swarm-infection","Modrinth":"swarm-infection"},{"Id":20424,"Name":"","CurseForge":"necro-rooted","Modrinth":""},{"Id":20425,"Name":"菌丝危机:崛起 (Mycelial Crisis: Mushroom Rising)","CurseForge":"mycelial-crisis","Modrinth":"mycelial-crisis"},{"Id":20427,"Name":"致命拔刀计划 (Lethal Steel Project)","CurseForge":"lethalsteelproject","Modrinth":""},{"Id":20428,"Name":"","CurseForge":"lovecraft-girlfriends-3","Modrinth":"lovecraft-girlfriends-3"},{"Id":20429,"Name":"","CurseForge":"","Modrinth":"faithful-mace"},{"Id":20430,"Name":"","CurseForge":"bard-craft","Modrinth":""},{"Id":20431,"Name":"哔哩哔哩WaterMedia兼容模组","CurseForge":"","Modrinth":"bilibilimedia"},{"Id":20432,"Name":"","CurseForge":"items-timer","Modrinth":""},{"Id":20433,"Name":"","CurseForge":"neo-language-reload","Modrinth":"neo-language-reload"},{"Id":20434,"Name":"","CurseForge":"","Modrinth":"oxidizium"},{"Id":20435,"Name":"","CurseForge":"ixeris","Modrinth":"ixeris"},{"Id":20436,"Name":"","CurseForge":"substrate-add-on","Modrinth":"substrate"},{"Id":20437,"Name":"隐藏物品展示框 (Hide Item Frame)","CurseForge":"hide-item-frame","Modrinth":"hide-item-frame"},{"Id":20438,"Name":"","CurseForge":"","Modrinth":"smoothmaps"},{"Id":20439,"Name":"","CurseForge":"neoessentials","Modrinth":"neoessentials"},{"Id":20440,"Name":"","CurseForge":"structure-layout-optimizer","Modrinth":"structure-layout-optimizer"},{"Id":20441,"Name":"","CurseForge":"mutant-creatures-legacy","Modrinth":""},{"Id":20442,"Name":"","CurseForge":"dynamites-overhaul","Modrinth":"dynamites-overhaul"},{"Id":20443,"Name":"","CurseForge":"dynamite-addon","Modrinth":""},{"Id":20443,"Name":"","CurseForge":"dynamite-addon-fabric","Modrinth":""},{"Id":20444,"Name":"女仆魔源 (Maid Mana Source)","CurseForge":"maid-mana-source","Modrinth":""},{"Id":20445,"Name":"","CurseForge":"maidens-merry-making","Modrinth":"mamas-merrymaking"},{"Id":20446,"Name":"","CurseForge":"bbl-invisible-lights","Modrinth":"bbl-invisible-lights"},{"Id":20447,"Name":"","CurseForge":"superior-trees","Modrinth":"superior-trees"},{"Id":20448,"Name":"","CurseForge":"underground-rivers","Modrinth":"underground-rivers"},{"Id":20449,"Name":"","CurseForge":"improved-village-placement","Modrinth":"improved-village-placement"},{"Id":20450,"Name":"","CurseForge":"","Modrinth":"photosynthesis"},{"Id":20451,"Name":"","CurseForge":"","Modrinth":"mineno"},{"Id":20452,"Name":"","CurseForge":"slashbladetetra","Modrinth":""},{"Id":20454,"Name":"","CurseForge":"irons-spells-n-spellbooks-dynamic-skill-trees","Modrinth":"irons-spells-n-spellbooks-dynamic-skill-trees"},{"Id":20455,"Name":"","CurseForge":"spell-elemental","Modrinth":"spell-elemental"},{"Id":20456,"Name":"","CurseForge":"ward-ring-extension-for-irons-spells-n-spellbooks","Modrinth":""},{"Id":20457,"Name":"","CurseForge":"dungeons-and-combat-x-irons-spells","Modrinth":""},{"Id":20458,"Name":"","CurseForge":"smallcolonies","Modrinth":""},{"Id":20459,"Name":"","CurseForge":"farmers-cutting-regions-unexplored","Modrinth":""},{"Id":20460,"Name":"","CurseForge":"serene-landscapes","Modrinth":"serene-landscapes"},{"Id":20461,"Name":"","CurseForge":"blood-arsenal-reawakened","Modrinth":"blood-arsenal-reawakened"},{"Id":20464,"Name":"","CurseForge":"spell-colonies","Modrinth":""},{"Id":20465,"Name":"","CurseForge":"nature-reimagined","Modrinth":""},{"Id":20466,"Name":"","CurseForge":"ominous-bottle-add","Modrinth":""},{"Id":20467,"Name":"","CurseForge":"only-hammers","Modrinth":"only-hammers"},{"Id":20468,"Name":"自动资源 (Auto Resource)","CurseForge":"auto-resource","Modrinth":""},{"Id":20469,"Name":"","CurseForge":"iu-additions","Modrinth":"iu-additions"},{"Id":20470,"Name":"魔方 (Rubiks Cube)","CurseForge":"rubiks-cube","Modrinth":""},{"Id":20471,"Name":"","CurseForge":"clockworklib","Modrinth":"clockworklib"},{"Id":20473,"Name":"","CurseForge":"fabridge","Modrinth":"fabridge"},{"Id":20475,"Name":"","CurseForge":"true-fullbright","Modrinth":""},{"Id":20476,"Name":"","CurseForge":"quickslots","Modrinth":""},{"Id":20477,"Name":"","CurseForge":"hide-hud-in-third-person-view","Modrinth":"hide-hud-third-person"},{"Id":20478,"Name":"","CurseForge":"automlg","Modrinth":"auto_mlg"},{"Id":20479,"Name":"","CurseForge":"elytraautopilot","Modrinth":"elytra_autopilot"},{"Id":20480,"Name":"","CurseForge":"simple-conveyor-belts","Modrinth":"simple-conveyor-belts"},{"Id":20481,"Name":"片刻满足 重置版 (Smidgeon o' Bliss REMASTERED)","CurseForge":"smidgeon-o-bliss-remastered","Modrinth":"smidgeon-o-bliss"},{"Id":20482,"Name":"超多食物:重生 (XL Food Mod Reborn)","CurseForge":"xl-food-reborn","Modrinth":""},{"Id":20483,"Name":"","CurseForge":"create-spin-spawner","Modrinth":""},{"Id":20484,"Name":"","CurseForge":"vs-rotanator","Modrinth":""},{"Id":20485,"Name":"","CurseForge":"create-refilling-boxes","Modrinth":"create-refilling-boxes"},{"Id":20486,"Name":"机械动力火炮:化学与生物战争 (CBC: Chemical Warfare)","CurseForge":"cbc-chemical-warfare","Modrinth":""},{"Id":20487,"Name":"机械动力火炮:Warium炮弹 (CBC: Warium Projectiles)","CurseForge":"cbc-warium-projectiles","Modrinth":"cbc-warium-projectiles"},{"Id":20488,"Name":"","CurseForge":"create-colored","Modrinth":""},{"Id":20489,"Name":"机械动力:法律与秩序 (Create: Law and Order)","CurseForge":"create-law-and-order","Modrinth":""},{"Id":20490,"Name":"","CurseForge":"blockexporter","Modrinth":"blockexporter"},{"Id":20491,"Name":"修复攻击卡顿 (Fix Attack Lag)","CurseForge":"fix-attack-lag","Modrinth":"fix-attack-lag"},{"Id":20492,"Name":"","CurseForge":"","Modrinth":"clienthings"},{"Id":20493,"Name":"","CurseForge":"","Modrinth":"misinput"},{"Id":20494,"Name":"","CurseForge":"lavablocker","Modrinth":"lavablocker"},{"Id":20495,"Name":"鎏金盔甲 (Gilded Armor)","CurseForge":"gildedarmors","Modrinth":"gilded-armor"},{"Id":20496,"Name":"","CurseForge":"inventory-management-deluxe","Modrinth":""},{"Id":20497,"Name":"跑图音乐 (RunningMapMusic)","CurseForge":"runningmapmusic","Modrinth":""},{"Id":20498,"Name":"","CurseForge":"lava-chicken-music-disc","Modrinth":"lava-chicken-music-disk"},{"Id":20499,"Name":"","CurseForge":"porting-dead-libs","Modrinth":"porting-dead-libs"},{"Id":20500,"Name":"","CurseForge":"panoramica","Modrinth":""},{"Id":20500,"Name":"","CurseForge":"panoramica-fabric","Modrinth":""},{"Id":20501,"Name":"资源统合-机械动力配方附加 (Create Mt Integration)","CurseForge":"create-mt-integration","Modrinth":""},{"Id":20502,"Name":"瓦尔基里:战争与和平 (Valkyrien War and Peace)","CurseForge":"valkyrien-skies-war-and-peace","Modrinth":"valkyrien-warpeace"},{"Id":20503,"Name":"","CurseForge":"sillys-auto-totem","Modrinth":"sillys-auto-totem"},{"Id":20504,"Name":"可修复的铁砧 (Repairables Anvil)","CurseForge":"repairables-anvil","Modrinth":"repairables-anvil"},{"Id":20505,"Name":"","CurseForge":"","Modrinth":"throwable-bricks"},{"Id":20506,"Name":"准点报时 (Now Time)","CurseForge":"","Modrinth":"now-time"},{"Id":20507,"Name":"","CurseForge":"fluidjs","Modrinth":"fluidjs"},{"Id":20508,"Name":"混合兼容 (HybridCompat)","CurseForge":"hybridcompat","Modrinth":""},{"Id":20509,"Name":"配方冷却 (RecipeCooldown)","CurseForge":"","Modrinth":"recipecooldown"},{"Id":20510,"Name":"","CurseForge":"counter-mod","Modrinth":""},{"Id":20511,"Name":"魔戒种族 (LOTR Races)","CurseForge":"lotr-renewed-class-mod","Modrinth":""},{"Id":20513,"Name":"锁链盔甲配方 (Chain Armor Recipe)","CurseForge":"craftable-chain-armors","Modrinth":""},{"Id":20514,"Name":"物品冷却缩减 (Item Cooling Reduction)","CurseForge":"item-cooling-reduction","Modrinth":"item-cooling-reduction"},{"Id":20515,"Name":"","CurseForge":"yosbs","Modrinth":"yosbs"},{"Id":20518,"Name":"","CurseForge":"","Modrinth":"no-bugs"},{"Id":20519,"Name":"","CurseForge":"dark-window-bar","Modrinth":"dark-window-bar"},{"Id":20520,"Name":"","CurseForge":"sodium-core-shader-support","Modrinth":"sodium-core-shader-support"},{"Id":20521,"Name":"铁砧工艺:敲你脑袋 (AnvilCraft: HeadTap)","CurseForge":"","Modrinth":"anvilcraft-headtap"},{"Id":20522,"Name":"","CurseForge":"hearts-in-a-bottle","Modrinth":"hearts-in-a-bottle"},{"Id":20523,"Name":"铜质工具和剪刀 (Copper Tools and Shears)","CurseForge":"copper-tools-and-shears","Modrinth":"copper-tools-and-shears"},{"Id":20524,"Name":"","CurseForge":"windchime-unofficial-continued","Modrinth":"windchime-unofficial-continued"},{"Id":20526,"Name":"","CurseForge":"potionsplus","Modrinth":""},{"Id":20527,"Name":"","CurseForge":"tinkers-wood","Modrinth":"tinkers-wood"},{"Id":20528,"Name":"","CurseForge":"illuminated","Modrinth":"illuminated"},{"Id":20529,"Name":"","CurseForge":"galosphere-argent-edge","Modrinth":""},{"Id":20530,"Name":"","CurseForge":"brutality-a-terramity-addon","Modrinth":""},{"Id":20531,"Name":"FE 游戏框架 (FreeEpicGames)","CurseForge":"free-epic-games","Modrinth":"free-epic-games"},{"Id":20533,"Name":"H2数据库 (Fabric Database H2)","CurseForge":"fabric-database-h2","Modrinth":"fabric-database-h2"},{"Id":20534,"Name":"更好的任务-托尔金主题 (Tolkien Theme [BQ])","CurseForge":"tokien-theme-bq","Modrinth":""},{"Id":20535,"Name":"","CurseForge":"tpa-utilities","Modrinth":""},{"Id":20537,"Name":"","CurseForge":"shutup-opengl","Modrinth":""},{"Id":20538,"Name":"女仆指令 (Maid Command)","CurseForge":"maid-command","Modrinth":""},{"Id":20539,"Name":"","CurseForge":"speedy-hopper-vanilla","Modrinth":""},{"Id":20540,"Name":"","CurseForge":"suggestions-fix-fabric","Modrinth":""},{"Id":20541,"Name":"","CurseForge":"no-ixapi","Modrinth":"no.ixmodapi"},{"Id":20542,"Name":"中华古刃 (Chinese Ancient Blade)","CurseForge":"","Modrinth":"chinese-ancient-blade"},{"Id":20543,"Name":"史诗战斗:刀光修改 (EpicFight Sword Light Modifications)","CurseForge":"epicfight-zylob","Modrinth":"epicfight-sword-light-modifications"},{"Id":20544,"Name":"","CurseForge":"perfect-parity-pale-garden-awakens-neo","Modrinth":""},{"Id":20545,"Name":"","CurseForge":"expressive-advanced","Modrinth":""},{"Id":20546,"Name":"友爱护符 (PhiLia Amulet)","CurseForge":"philia-amulet","Modrinth":""},{"Id":20547,"Name":"原焰帝臻 (Stronger Fire Boss)","CurseForge":"stronger-fire-boss","Modrinth":""},{"Id":20548,"Name":"更多渴望:附魔与制造 (More of Yearn: Enchants & Crafts)","CurseForge":"myec","Modrinth":"myec"},{"Id":20549,"Name":"废弃城市 (Abandoned urban)","CurseForge":"abandoned-urban","Modrinth":""},{"Id":20550,"Name":"蕈骸迷途 (Fungal Hazard)","CurseForge":"fungal-hazard","Modrinth":""},{"Id":20551,"Name":"更有用的铜 (More Useful Copper)","CurseForge":"more-useful-copper-2-0","Modrinth":"more-useful-copper"},{"Id":20552,"Name":"","CurseForge":"boom-bombs","Modrinth":"boom-bombs"},{"Id":20553,"Name":"","CurseForge":"polars-exploration-additions","Modrinth":"polars-exploration-additions"},{"Id":20554,"Name":"","CurseForge":"","Modrinth":"happy-ghast-upgrades"},{"Id":20555,"Name":"","CurseForge":"ozymandias-sundries","Modrinth":""},{"Id":20556,"Name":"","CurseForge":"tensura-enigmatic","Modrinth":""},{"Id":20557,"Name":"机械动力:列车控制 (CreateTrainControl)","CurseForge":"createtraincontrol","Modrinth":"createtraincontrol"},{"Id":20558,"Name":"","CurseForge":"create-collection-bundles","Modrinth":"create-collection-bundles"},{"Id":20559,"Name":"","CurseForge":"create-enhanced-mastery","Modrinth":""},{"Id":20560,"Name":"","CurseForge":"create-industrial-tools","Modrinth":"create-industrial-tools"},{"Id":20561,"Name":"","CurseForge":"create-smart-bounds","Modrinth":"create-smart-bounds"},{"Id":20562,"Name":"机械动力:又在幻想了 (Create: Fantasizing Again)","CurseForge":"create-fantasizing-again","Modrinth":"create-fantasizing-again"},{"Id":20563,"Name":"","CurseForge":"crafting-station-jei-edition-updated","Modrinth":"crafting-station-jei-edition-updated"},{"Id":20564,"Name":"","CurseForge":"uncraft-everything","Modrinth":"uncraft-everything"},{"Id":20565,"Name":"","CurseForge":"","Modrinth":"videoplayer"},{"Id":20566,"Name":"网络音乐机:播放列表 (NetMusic: Play List)","CurseForge":"net-music-play-list","Modrinth":"net-music-play-list"},{"Id":20568,"Name":"","CurseForge":"gregs-modern-construct","Modrinth":""},{"Id":20570,"Name":"灵活按键提示 (SmartKeyPrompts)","CurseForge":"smart-key-prompts","Modrinth":"smart-key-prompts"},{"Id":20571,"Name":"Zero白名单 (Zero Whitelist)","CurseForge":"","Modrinth":"zero-whitelist"},{"Id":20572,"Name":"计程器 (Milometer)","CurseForge":"milometer","Modrinth":""},{"Id":20573,"Name":"珍珠加载区块移植 (Pearl Chunk Loading)","CurseForge":"","Modrinth":"pearlchunkloading"},{"Id":20574,"Name":"","CurseForge":"clean-drops","Modrinth":""},{"Id":20575,"Name":"","CurseForge":"auto-replace","Modrinth":""},{"Id":20576,"Name":"","CurseForge":"","Modrinth":"footprint"},{"Id":20578,"Name":"","CurseForge":"simple-villager-follow","Modrinth":"simple-villager-follow"},{"Id":20579,"Name":"","CurseForge":"tinkers-experience","Modrinth":""},{"Id":20580,"Name":"","CurseForge":"hedgehog-companion","Modrinth":"hedgehog-companion"},{"Id":20581,"Name":"我要开转 (I Want To Spin)","CurseForge":"i-want-to-spin","Modrinth":"i-want-to-spin"},{"Id":20582,"Name":"","CurseForge":"kiss","Modrinth":"kiss-fabric"},{"Id":20583,"Name":"北斗导航 (MC BDS)","CurseForge":"","Modrinth":"mc-bds"},{"Id":20584,"Name":"新泰坦生物:撼世之物 (Neo Titans Mod:Earthshak Creature)","CurseForge":"neo-the-titans","Modrinth":"neo-the-titans"},{"Id":20586,"Name":"矿粒修复物品 (Nuggets Repair Items)","CurseForge":"nuggets-repair-items","Modrinth":"nuggets-repair-items"},{"Id":20589,"Name":"群峦环境音效 (Terra Atmos)","CurseForge":"terra-atmos","Modrinth":"terra_atmos"},{"Id":20590,"Name":"车万女仆:真正的力量 (TLM: True POWER)","CurseForge":"tlm-true-power","Modrinth":"true-power-of-maid"},{"Id":20594,"Name":"","CurseForge":"","Modrinth":"splash-window"},{"Id":20595,"Name":"","CurseForge":"neoenchant","Modrinth":""},{"Id":20596,"Name":"","CurseForge":"","Modrinth":"showcase"},{"Id":20597,"Name":"","CurseForge":"enhancedtooltips","Modrinth":"enhancedtooltips"},{"Id":20598,"Name":"","CurseForge":"locate-fixer","Modrinth":""},{"Id":20599,"Name":"","CurseForge":"journeymap-fixes","Modrinth":""},{"Id":20600,"Name":"","CurseForge":"ancient-structure","Modrinth":"ancient-structures"},{"Id":20602,"Name":"","CurseForge":"wizard-samurai-irons-spells-addon","Modrinth":""},{"Id":20602,"Name":"Wizard Samurai - Iron's Spells Addon - 更新较慢","CurseForge":"","Modrinth":"wizard-samurai-irons-spells-addon"},{"Id":20603,"Name":"","CurseForge":"survival-instinct","Modrinth":""},{"Id":20604,"Name":"","CurseForge":"enderzoo-patched","Modrinth":"enderzoopatched"},{"Id":20605,"Name":"","CurseForge":"illager-keep","Modrinth":""},{"Id":20606,"Name":"","CurseForge":"codex-of-champions","Modrinth":""},{"Id":20607,"Name":"","CurseForge":"ars-controle","Modrinth":"ars-controle"},{"Id":20608,"Name":"","CurseForge":"medieval-craft-historical-firearms","Modrinth":""},{"Id":20609,"Name":"","CurseForge":"too-many-withers","Modrinth":""},{"Id":20610,"Name":"","CurseForge":"reliquified-l-ender-s-cataclysm","Modrinth":"reliquified-l-ender-s-cataclysm"},{"Id":20612,"Name":"找史大王 / 日志溯源 (find log's creator / findshit)","CurseForge":"findshit","Modrinth":"log-creator-finder-findshit"},{"Id":20613,"Name":"附魔查询 (Enchantment Lookup)","CurseForge":"enchantment-lookup","Modrinth":"enchantment-lookup"},{"Id":20618,"Name":"模组校验 (ModsChecker)","CurseForge":"","Modrinth":"mods-checker"},{"Id":20619,"Name":"","CurseForge":"no-enchanting-xp-requirment","Modrinth":""},{"Id":20620,"Name":"客户端动态光源 (Client Dynamic Light)","CurseForge":"client-dynamic-light","Modrinth":""},{"Id":20622,"Name":"","CurseForge":"multiyggdrasil","Modrinth":"multiyggdrasil"},{"Id":20623,"Name":"","CurseForge":"thaumcraft-4-patched","Modrinth":""},{"Id":20624,"Name":"","CurseForge":"patchful","Modrinth":""},{"Id":20625,"Name":"","CurseForge":"gtnh-customizer","Modrinth":"gtnh-customizer"},{"Id":20626,"Name":"","CurseForge":"view-sounds","Modrinth":"view-sounds"},{"Id":20627,"Name":"","CurseForge":"ae-inventory-profiles","Modrinth":""},{"Id":20628,"Name":"提示框:重铸 (Tooltips Reforged)","CurseForge":"tooltips-reforged","Modrinth":"tooltips-reforged"},{"Id":20629,"Name":"","CurseForge":"","Modrinth":"wyr"},{"Id":20630,"Name":"","CurseForge":"soaring-phantoms","Modrinth":"soaring-phantoms"},{"Id":20632,"Name":"","CurseForge":"ritchies-projectile-library","Modrinth":"rpl"},{"Id":20633,"Name":"","CurseForge":"modopedia","Modrinth":"modopedia"},{"Id":20634,"Name":"一体化翻译 (Translate All in One)","CurseForge":"","Modrinth":"translate-allinone"},{"Id":20635,"Name":"","CurseForge":"buttonfix","Modrinth":"buttonfix"},{"Id":20636,"Name":"生日模组 (Birthday Fabric)","CurseForge":"","Modrinth":"birthday-fabric"},{"Id":20637,"Name":"","CurseForge":"bucketstacking","Modrinth":""},{"Id":20638,"Name":"","CurseForge":"creeper-no-break-blocks","Modrinth":"creeper-no-break-blocks"},{"Id":20639,"Name":"机械动力:齿轮 HUD (Create: Cog HUD)","CurseForge":"create-cog-hud","Modrinth":"create-cog-hud"},{"Id":20640,"Name":"","CurseForge":"","Modrinth":"createtools-n-weapons"},{"Id":20641,"Name":"","CurseForge":"create-pipe-networks","Modrinth":"create-pipe-networks"},{"Id":20642,"Name":"岁在甲骨 (Jiagu Reappearance)","CurseForge":"jiagu-reappearance","Modrinth":""},{"Id":20643,"Name":"","CurseForge":"multicolored-redstone-lamps","Modrinth":""},{"Id":20644,"Name":"","CurseForge":"reliquified-twilight-forest","Modrinth":"reliquified-twilight-forest"},{"Id":20645,"Name":"","CurseForge":"witch-tower","Modrinth":""},{"Id":20646,"Name":"","CurseForge":"the-nightmare-000","Modrinth":"the-nightmare-000"},{"Id":20647,"Name":"彩虹猫之刃 (Meowmere)","CurseForge":"meowmere","Modrinth":"meowmere"},{"Id":20648,"Name":"Fallenflower的服务器经济 (Fallenflower's Server Economy)","CurseForge":"","Modrinth":"fallenflowers-server-economy"},{"Id":20649,"Name":"死亡突围医疗用品 (Deadout Medical)","CurseForge":"deadout-medical-supplies","Modrinth":""},{"Id":20650,"Name":"","CurseForge":"","Modrinth":"thermal-shock"},{"Id":20651,"Name":"更好的任务-NPC扩展 (Better Questing - NPC Integration)","CurseForge":"better-questing-npc-integration","Modrinth":""},{"Id":20653,"Name":"EU转EMC能量转换器 (EU2EMC)","CurseForge":"eu2emc","Modrinth":""},{"Id":20655,"Name":"简单整理 (SimpleSorter)","CurseForge":"simplesorter","Modrinth":"simplesorter"},{"Id":20656,"Name":"生成式入侵 (SpawnCursion)","CurseForge":"spawncursion","Modrinth":""},{"Id":20657,"Name":"不要草 (Grass Be Gone)","CurseForge":"grass-be-gone","Modrinth":""},{"Id":20658,"Name":"TACZ:铳械协议 (TACZ: Unidict)","CurseForge":"tacz-unidict","Modrinth":""},{"Id":20659,"Name":"宝石地衣 (Gem Lichens)","CurseForge":"gem-lichens","Modrinth":""},{"Id":20660,"Name":"","CurseForge":"lethality-a-terramity-addon","Modrinth":"lethality-a-terramity-addon"},{"Id":20661,"Name":"","CurseForge":"lootr-fixes","Modrinth":""},{"Id":20662,"Name":"","CurseForge":"no-name-provideds-potion-fruit","Modrinth":"potion-fruit"},{"Id":20663,"Name":"","CurseForge":"fungus-stew","Modrinth":""},{"Id":20664,"Name":"自动树苗种植 (Auto Sapling)","CurseForge":"auto-sapling","Modrinth":""},{"Id":20665,"Name":"","CurseForge":"alans-bees","Modrinth":""},{"Id":20666,"Name":"","CurseForge":"snack-sticks","Modrinth":"snack-sticks"},{"Id":20667,"Name":"","CurseForge":"fish-fix","Modrinth":"fish-fix"},{"Id":20668,"Name":"","CurseForge":"stuttering-screen-lag-protection","Modrinth":""},{"Id":20669,"Name":"","CurseForge":"tilefinder","Modrinth":"tilefinder"},{"Id":20670,"Name":"沉浸式家具 (Immersive Furniture)","CurseForge":"immersive-furniture","Modrinth":"immersive-furniture"},{"Id":20671,"Name":"","CurseForge":"modernnetworking","Modrinth":""},{"Id":20672,"Name":"","CurseForge":"like1-8","Modrinth":""},{"Id":20673,"Name":"","CurseForge":"spoduos-future-mineration","Modrinth":""},{"Id":20674,"Name":"末影接口延续版 (EnderIO Continuous)","CurseForge":"enderio-continuous","Modrinth":""},{"Id":20675,"Name":"","CurseForge":"enchantment-broker","Modrinth":"enchantment-broker"},{"Id":20677,"Name":"","CurseForge":"new-dawn","Modrinth":""},{"Id":20678,"Name":"","CurseForge":"enhanced-glass","Modrinth":""},{"Id":20679,"Name":"","CurseForge":"hospitals","Modrinth":"hospitals"},{"Id":20680,"Name":"","CurseForge":"comfy-cozy","Modrinth":""},{"Id":20681,"Name":"史诗战斗NPC (EpicNpc)","CurseForge":"epicnpc","Modrinth":""},{"Id":20682,"Name":"史诗战斗:脚本扩展版 (Epic Fight Script Extension)","CurseForge":"epic-fight-script-extension","Modrinth":""},{"Id":20683,"Name":"","CurseForge":"","Modrinth":"undead-transformation"},{"Id":20685,"Name":"头颅无皮肤/易颜得帧 (SkullSkinless)","CurseForge":"skullskinless","Modrinth":""},{"Id":20686,"Name":"永夜定驻 (Stay Night)","CurseForge":"staynight","Modrinth":""},{"Id":20687,"Name":"方块放置阻止/抑用挡置 (BlockBlocker)","CurseForge":"blockblocker","Modrinth":""},{"Id":20688,"Name":"","CurseForge":"shoving-shovels","Modrinth":"shoving-shovels"},{"Id":20689,"Name":"不止电池 / 电力镀层 (NotOnlyBattery / Electric Coating)","CurseForge":"electric-coating","Modrinth":""},{"Id":20690,"Name":"","CurseForge":"araxers-bestiary","Modrinth":"araxers-bestiary"},{"Id":20691,"Name":"","CurseForge":"better-questing-immersive-engineering-multiblock","Modrinth":""},{"Id":20692,"Name":"","CurseForge":"bloodyquests","Modrinth":""},{"Id":20693,"Name":"","CurseForge":"croaker","Modrinth":"croaker"},{"Id":20694,"Name":"","CurseForge":"crawl-on-demand","Modrinth":"crawl-on-demand"},{"Id":20695,"Name":"","CurseForge":"gaze-a-malum-addon","Modrinth":""},{"Id":20696,"Name":"矿石菌种社区版 (OreSpawn Community Edition)","CurseForge":"osce","Modrinth":""},{"Id":20697,"Name":"","CurseForge":"explosive-arrow","Modrinth":""},{"Id":20698,"Name":"","CurseForge":"more-relics","Modrinth":"more-relics"},{"Id":20699,"Name":"暗无天日 (No Sun)","CurseForge":"no-sun","Modrinth":"no-sun-mod"},{"Id":20700,"Name":"针锋相对 (Opposing Force)","CurseForge":"opposing-force","Modrinth":"opposing-force"},{"Id":20702,"Name":"","CurseForge":"","Modrinth":"pingfix"},{"Id":20703,"Name":"","CurseForge":"","Modrinth":"volumescroll"},{"Id":20704,"Name":"","CurseForge":"talk-balloons","Modrinth":"talk-balloons"},{"Id":20705,"Name":"","CurseForge":"health-indicator-txf","Modrinth":"health-indicator-txf"},{"Id":20707,"Name":"","CurseForge":"snowy-weather","Modrinth":""},{"Id":20709,"Name":"","CurseForge":"dimensionlock","Modrinth":"dimensionlock"},{"Id":20710,"Name":"锍 (Fluidium)","CurseForge":"fluidium","Modrinth":""},{"Id":20712,"Name":"","CurseForge":"peritia","Modrinth":""},{"Id":20714,"Name":"背包整理 (Inventory Sort)","CurseForge":"inventory-sort","Modrinth":"inventory-sort"},{"Id":20715,"Name":"希望の花 (Corpse: Kibou no Hana)","CurseForge":"corpse-kibou-no-hana","Modrinth":""},{"Id":20716,"Name":"","CurseForge":"redyeable","Modrinth":""},{"Id":20717,"Name":"","CurseForge":"","Modrinth":"natural-motion-blur"},{"Id":20718,"Name":"","CurseForge":"","Modrinth":"modpack-checker"},{"Id":20719,"Name":"","CurseForge":"convenient-achievements","Modrinth":""},{"Id":20720,"Name":"","CurseForge":"vintage-vibes","Modrinth":"vintage-vibes"},{"Id":20722,"Name":"","CurseForge":"","Modrinth":"smelter-the-hedgehog"},{"Id":20723,"Name":"","CurseForge":"","Modrinth":"hopper-the-hedgehog"},{"Id":20724,"Name":"","CurseForge":"custom-trades-mod","Modrinth":""},{"Id":20725,"Name":"可驯服的僵尸马和骷髅马 (Tameable Zombie Horse And Skeleton Horse)","CurseForge":"tameable-zombie-horse-and-skeleton-horse","Modrinth":""},{"Id":20726,"Name":"","CurseForge":"mi-tweaks","Modrinth":""},{"Id":20727,"Name":"Qa 村拓展 & 废物革新 (Qa Villager Extends & Waste Innovations)","CurseForge":"qa-villager-tweaks","Modrinth":"qa-villager-extends"},{"Id":20728,"Name":"","CurseForge":"multiblocked-extended-compatibility","Modrinth":""},{"Id":20729,"Name":"","CurseForge":"enum-extender-js","Modrinth":""},{"Id":20730,"Name":"","CurseForge":"","Modrinth":"btc"},{"Id":20732,"Name":"","CurseForge":"no-pigs","Modrinth":""},{"Id":20733,"Name":"","CurseForge":"vanimals","Modrinth":"vanimals"},{"Id":20734,"Name":"","CurseForge":"wind-charged-weaponry","Modrinth":"wind-charged-weaponry"},{"Id":20735,"Name":"","CurseForge":"untagged-mobs","Modrinth":""},{"Id":20736,"Name":"","CurseForge":"enchanted-potato","Modrinth":""},{"Id":20737,"Name":"","CurseForge":"cit-for-nbt","Modrinth":""},{"Id":20739,"Name":"","CurseForge":"bonemealtweaker","Modrinth":""},{"Id":20740,"Name":"狱岩魔像 (Hellstone Golem)","CurseForge":"hellstone-golem","Modrinth":""},{"Id":20741,"Name":"可合成的下界之星 (Netherstar Crafting)","CurseForge":"netherstar-crafting","Modrinth":""},{"Id":20742,"Name":"塔兹与甜墨的物品 (Tutes-cn & Sweetink's Items)","CurseForge":"tutes-cn-sweetinks-items","Modrinth":"tutes-cn-sweetinks-items"},{"Id":20743,"Name":"","CurseForge":"i-am-steve","Modrinth":"i..am-steve"},{"Id":20744,"Name":"","CurseForge":"backported-stufff","Modrinth":""},{"Id":20746,"Name":"","CurseForge":"tumbleweeds","Modrinth":"tumbleweeds"},{"Id":20747,"Name":"破镜重圆 (Mending Mirror)","CurseForge":"mending-mirror","Modrinth":""},{"Id":20749,"Name":"","CurseForge":"natures-life","Modrinth":""},{"Id":20750,"Name":"","CurseForge":"yggdrasils","Modrinth":""},{"Id":20753,"Name":"DeepSeek的附魔 (DeepSeek's Enchant)","CurseForge":"","Modrinth":"deepseeks-enchant"},{"Id":20757,"Name":"","CurseForge":"isitwaxed","Modrinth":""},{"Id":20758,"Name":"","CurseForge":"simple-hp-bar","Modrinth":"simple-hp-bar"},{"Id":20759,"Name":"","CurseForge":"login-hp-fix","Modrinth":""},{"Id":20760,"Name":"幻形者诅咒 (Shape Shifter Curse)","CurseForge":"shape-shifter-curse","Modrinth":"shape-shifter-curse"},{"Id":20760,"Name":"幻形者诅咒 (Shape Shifter Curse) - 信雅互联兼容","CurseForge":"shape-shifter-curse-sinytra-connector-compatible","Modrinth":"shape-shifter-curse-sinytra-connector-compatible-version"},{"Id":20763,"Name":"匠魂蓝图:重燃 (Tinker's Planner Reborn)","CurseForge":"tinkers-planner-reborn","Modrinth":"tinkers-planner-reborn"},{"Id":20764,"Name":"","CurseForge":"hunger-overflow","Modrinth":""},{"Id":20765,"Name":"","CurseForge":"nocreeper","Modrinth":""},{"Id":20766,"Name":"","CurseForge":"mo-creatures-extended","Modrinth":""},{"Id":20767,"Name":"","CurseForge":"skippy-pearls","Modrinth":""},{"Id":20768,"Name":"","CurseForge":"spelunkery-plus","Modrinth":""},{"Id":20769,"Name":"","CurseForge":"forge-better-redstone","Modrinth":""},{"Id":20770,"Name":"","CurseForge":"jeb-just-enough-book","Modrinth":"justenoughbook"},{"Id":20771,"Name":"","CurseForge":"pal","Modrinth":"pal"},{"Id":20772,"Name":"","CurseForge":"data-anchor","Modrinth":"data-anchor"},{"Id":20773,"Name":"","CurseForge":"elytra-hopping","Modrinth":""},{"Id":20774,"Name":"更多游商交易 (Oh More Wandering Trades)","CurseForge":"oh-more-wandering-trades","Modrinth":"oh-more-wandering-trades"},{"Id":20775,"Name":"不时轻轻肘击幻翼的邻座信标同学 (Beacon Anti-Phantom)","CurseForge":"beacon-anti-phantom","Modrinth":"beacon-anti-phantom"},{"Id":20776,"Name":"灵活的画 (Flexible Painting)","CurseForge":"","Modrinth":"flexible-painting"},{"Id":20778,"Name":"","CurseForge":"cooler-animations","Modrinth":""},{"Id":20780,"Name":"","CurseForge":"hardcore-architect","Modrinth":""},{"Id":20782,"Name":"","CurseForge":"carpet-neoforged","Modrinth":"neoforge-carpet"},{"Id":20783,"Name":"","CurseForge":"no-campfire-smoke","Modrinth":""},{"Id":20784,"Name":"","CurseForge":"tiny-tasks","Modrinth":""},{"Id":20785,"Name":"","CurseForge":"fancy-outline","Modrinth":""},{"Id":20786,"Name":"","CurseForge":"echo-compass-hud","Modrinth":"echoesofadventure-compass"},{"Id":20787,"Name":"","CurseForge":"decorative-stands","Modrinth":""},{"Id":20788,"Name":"","CurseForge":"confluence-otherworld-gun-fix","Modrinth":"confluence-otherworld-gun-fix"},{"Id":20789,"Name":"","CurseForge":"cauldronpp","Modrinth":"cauldron++"},{"Id":20790,"Name":"","CurseForge":"sbm-cardboardboxes","Modrinth":""},{"Id":20793,"Name":"基岩时代 (Bedrock Age)","CurseForge":"bedrock-age","Modrinth":"bedrock-age"},{"Id":20795,"Name":"回程魔杖 (Return Scepter)","CurseForge":"return-scepter","Modrinth":""},{"Id":20796,"Name":"娜拉工艺 (Koniavacraft)","CurseForge":"","Modrinth":"koniavacraft"},{"Id":20797,"Name":"Emoji工艺 (Emojicraft)","CurseForge":"emojicraft","Modrinth":""},{"Id":20798,"Name":"麒麟臂 (Kylin Arm)","CurseForge":"kylin-arm","Modrinth":""},{"Id":20799,"Name":"","CurseForge":"server-hats","Modrinth":"server-hats"},{"Id":20800,"Name":"","CurseForge":"forgotten-ruins","Modrinth":"forgotten-ruins"},{"Id":20802,"Name":"","CurseForge":"creeperhost-presents-steves-carts","Modrinth":"creeperhost-presents-steves-carts"},{"Id":20803,"Name":"","CurseForge":"perspatium","Modrinth":"per-spatium"},{"Id":20805,"Name":"","CurseForge":"offlawn-legacy","Modrinth":""},{"Id":20806,"Name":"","CurseForge":"metalborn","Modrinth":""},{"Id":20807,"Name":"","CurseForge":"","Modrinth":"wizards-mod"},{"Id":20808,"Name":"","CurseForge":"mo-creatures-nostalgia-edition","Modrinth":"mo-creatures-nostalgia-edition"},{"Id":20809,"Name":"","CurseForge":"mocreatures-awakened","Modrinth":""},{"Id":20810,"Name":"","CurseForge":"sterling","Modrinth":""},{"Id":20811,"Name":"料理群峦 (Cuisine TFC)","CurseForge":"cuisine-tfc","Modrinth":""},{"Id":20812,"Name":"","CurseForge":"","Modrinth":"natural-temperature"},{"Id":20813,"Name":"","CurseForge":"silent-gear-metalworks","Modrinth":""},{"Id":20814,"Name":"","CurseForge":"treetap","Modrinth":"treetap"},{"Id":20815,"Name":"","CurseForge":"better-cave-update","Modrinth":""},{"Id":20816,"Name":"","CurseForge":"","Modrinth":"affix"},{"Id":20817,"Name":"","CurseForge":"starry-end","Modrinth":""},{"Id":20818,"Name":"","CurseForge":"dynamic-trees-for-cobblemon","Modrinth":""},{"Id":20819,"Name":"","CurseForge":"immersive-portal-gun-for-forge","Modrinth":"immersive-portal-gun-for-forge"},{"Id":20820,"Name":"","CurseForge":"adorable-hamster-pets","Modrinth":"adorable-hamster-pets"},{"Id":20821,"Name":"无限熔岩 (Infinite Lava)","CurseForge":"infinite-lava","Modrinth":"infinite-lava"},{"Id":20822,"Name":"无限箭制 (Unlimited Arrow Works)","CurseForge":"ethereal-shots","Modrinth":""},{"Id":20824,"Name":"超级铁傀儡 (Epic Fight - Super Golem)","CurseForge":"epic-fight-super-golem","Modrinth":""},{"Id":20825,"Name":"","CurseForge":"fallen-log-hideout","Modrinth":""},{"Id":20826,"Name":"彩绘世界 (Pastel)","CurseForge":"pastel","Modrinth":"pastel-mod"},{"Id":20827,"Name":"","CurseForge":"mob-catcher-unofficial","Modrinth":""},{"Id":20828,"Name":"","CurseForge":"retro-pet-items","Modrinth":""},{"Id":20829,"Name":"汇流来世维度补丁 (Confluence Dimension Patch)","CurseForge":"confluence-dimension-patch","Modrinth":""},{"Id":20830,"Name":"便捷存储 (Convenient Storage)","CurseForge":"convenient-storage","Modrinth":"convenient-storage"},{"Id":20831,"Name":"传世遗产库 (LegendRelicLib)","CurseForge":"legendreliclib","Modrinth":""},{"Id":20832,"Name":"","CurseForge":"jauml","Modrinth":"jauml"},{"Id":20833,"Name":"","CurseForge":"nemexlib","Modrinth":"nemexlib"},{"Id":20834,"Name":"","CurseForge":"cryonicconfig","Modrinth":"cryonicconfig"},{"Id":20835,"Name":"","CurseForge":"knight-lib","Modrinth":"knight-lib"},{"Id":20838,"Name":"","CurseForge":"","Modrinth":"okom"},{"Id":20840,"Name":"","CurseForge":"craft-slabs-back-into-blocks","Modrinth":"craft-slabs-back-into-blocks"},{"Id":20841,"Name":"","CurseForge":"highland-statue","Modrinth":""},{"Id":20842,"Name":"复原矿石 (Restore Ore)","CurseForge":"restore-ore","Modrinth":"restore-ore"},{"Id":20843,"Name":"工厂方块 (Factory Blocks)","CurseForge":"factory-blocks","Modrinth":"factory-blocks"},{"Id":20844,"Name":"","CurseForge":"camouflaged-doors","Modrinth":""},{"Id":20845,"Name":"","CurseForge":"rotten-planks-and-logs","Modrinth":""},{"Id":20846,"Name":"","CurseForge":"create-extended-bogeys-borked-addon","Modrinth":""},{"Id":20847,"Name":"","CurseForge":"create-unify-updated-to-create-6","Modrinth":"create-unify-updated-to-create-6"},{"Id":20848,"Name":"机械动力:臂力臂力炒菜 (Create: Arm-made Cuisine)","CurseForge":"create-arm-made-cuisine","Modrinth":""},{"Id":20849,"Name":"机械动力:栽培工艺 (Create: Cultivation Craft)","CurseForge":"create-cultivation-craft","Modrinth":"create-cultivation-craft"},{"Id":20850,"Name":"森罗物语:厨房 (Kaleidoscope Cookery)","CurseForge":"kaleidoscope-cookery","Modrinth":"kaleidoscope-cookery"},{"Id":20851,"Name":"","CurseForge":"retroemi-forge","Modrinth":"retroemi-forge"},{"Id":20852,"Name":"","CurseForge":"","Modrinth":"pearlecho"},{"Id":20853,"Name":"","CurseForge":"","Modrinth":"mcdaycounter"},{"Id":20854,"Name":"","CurseForge":"minecolonies-war-n-taxes","Modrinth":""},{"Id":20855,"Name":"","CurseForge":"falling-down","Modrinth":"falling-down"},{"Id":20856,"Name":"","CurseForge":"more-red-x-cc-tweaked-compat","Modrinth":"more-red-x-cc-tweaked-compat"},{"Id":20858,"Name":"加加加加加加加速! (Speed Uuuuuuup)","CurseForge":"","Modrinth":"speed-uuuuuuup"},{"Id":20860,"Name":"","CurseForge":"wither-reincarnated","Modrinth":"wither-reincarnated"},{"Id":20861,"Name":"","CurseForge":"biome-snapshot","Modrinth":"biome-snapshot"},{"Id":20862,"Name":"","CurseForge":"toros-auto-attack","Modrinth":"toros-auto-attack"},{"Id":20863,"Name":"自定义烧货 / 苦力怕阳光下燃烧 (CreeperFire)","CurseForge":"creeperfire","Modrinth":""},{"Id":20864,"Name":"刷怪笼渲染优化/产器速算 (FastSpawner)","CurseForge":"fastspawner","Modrinth":""},{"Id":20865,"Name":"存取思深/精妙存储扩容 (Sophisticated Storage Plus)","CurseForge":"sophisticated-storage-plus","Modrinth":""},{"Id":20866,"Name":"鲸帆远航 (Whaleborne)","CurseForge":"whaleborne","Modrinth":"whaleborne"},{"Id":20867,"Name":"","CurseForge":"uniful","Modrinth":"uniful"},{"Id":20868,"Name":"","CurseForge":"newspaper-big-book-bibliocraft-legacy-backport","Modrinth":""},{"Id":20869,"Name":"","CurseForge":"bic-clipboard","Modrinth":""},{"Id":20870,"Name":"","CurseForge":"templates-2","Modrinth":"templates-2"},{"Id":20875,"Name":"可视化配方编写 (Workstation Recipe Exporter)","CurseForge":"workstation-recipe-exporter","Modrinth":"workstation-recipe-exporter"},{"Id":20876,"Name":"","CurseForge":"simple-auto-attack","Modrinth":""},{"Id":20877,"Name":"","CurseForge":"hostile-to-neutral","Modrinth":""},{"Id":20878,"Name":"","CurseForge":"tracer","Modrinth":""},{"Id":20879,"Name":"","CurseForge":"fishing-tick-fix","Modrinth":"fishing-tick-fix"},{"Id":20880,"Name":"","CurseForge":"fzmm","Modrinth":"fzmm"},{"Id":20881,"Name":"彩绘世界JEI (PastelJEI)","CurseForge":"pasteljei","Modrinth":"pasteljei"},{"Id":20882,"Name":"","CurseForge":"e4mc-retro","Modrinth":"e4mc-retro"},{"Id":20884,"Name":"","CurseForge":"mantlejs","Modrinth":"mantlejs"},{"Id":20885,"Name":"只手遮天 (One Enough Hand)","CurseForge":"one-enough-hand","Modrinth":""},{"Id":20886,"Name":"","CurseForge":"persistent-moon-phases","Modrinth":""},{"Id":20887,"Name":"","CurseForge":"sakurapack-compatability-patch","Modrinth":""},{"Id":20888,"Name":"","CurseForge":"cattlestrophic","Modrinth":"cattlestrophic!"},{"Id":20889,"Name":"","CurseForge":"ae-recipe-tool","Modrinth":""},{"Id":20890,"Name":"","CurseForge":"minecraft-cursor","Modrinth":"minecraft-cursor"},{"Id":20891,"Name":"","CurseForge":"stalker-creepers-fabric","Modrinth":"stalker-creepers-fabric"},{"Id":20892,"Name":"史诗战斗灾变兼容 (Epic Fight & L_Enders Cataclysm compatibility)","CurseForge":"epiv-fight-l-enders-cataclysm-compatibility","Modrinth":""},{"Id":20893,"Name":"","CurseForge":"lunar-nether-backport","Modrinth":""},{"Id":20894,"Name":"","CurseForge":"lookinmyeyes","Modrinth":""},{"Id":20895,"Name":"","CurseForge":"more-relics-more-rpg-content","Modrinth":"more-relics-rpg"},{"Id":20896,"Name":"","CurseForge":"backstab-reforged","Modrinth":""},{"Id":20897,"Name":"","CurseForge":"armamentarium","Modrinth":""},{"Id":20899,"Name":"","CurseForge":"remnant-bosses","Modrinth":"remnant-bosses"},{"Id":20900,"Name":"","CurseForge":"choccos-mobs","Modrinth":"choccos-mobs"},{"Id":20903,"Name":"拆解台 (Uncrafting Table)","CurseForge":"uncrafting-table-xiaoyu-2009","Modrinth":""},{"Id":20905,"Name":"AE无线频道 (AE Wireless Channel)","CurseForge":"aewirelesschannel","Modrinth":""},{"Id":20906,"Name":"无尽能源 / 能量叠生 (Infinite Power)","CurseForge":"infinitepower","Modrinth":""},{"Id":20907,"Name":"随意作品 (Hoshikima)","CurseForge":"hoshikima","Modrinth":"hoshikima"},{"Id":20908,"Name":"机械动力:剪贴板修复 (Create Bugfix: Clipboard Patch)","CurseForge":"create-bugfix-clipboard-patch","Modrinth":"create-bugfix-clipboard-patch"},{"Id":20909,"Name":"拆器碎散/匠魂工具拆解 (Tool Disassemble)","CurseForge":"tool-disassemble","Modrinth":""},{"Id":20910,"Name":"夏意盎然 (Summer to Life)","CurseForge":"summer-to-life","Modrinth":""},{"Id":20911,"Name":"","CurseForge":"","Modrinth":"freedraw"},{"Id":20912,"Name":"","CurseForge":"geckojs","Modrinth":"geckojs"},{"Id":20913,"Name":"","CurseForge":"sanandreasps-manager-pack","Modrinth":""},{"Id":20915,"Name":"车万女仆:织姬 (Touhou Little Maid: Orihime)","CurseForge":"touhoulittlemaid-orihime","Modrinth":"touhoulittlemaid-orihime"},{"Id":20916,"Name":"更多Tetra模组锻造材料 (More Mod Tetra/More Mod Tetra New)","CurseForge":"mmt-more-materials-tetra-new","Modrinth":""},{"Id":20917,"Name":"灾变:维度 (Cataclysm Dimensions)","CurseForge":"cataclysm-dimensions","Modrinth":"cataclysm-dimension"},{"Id":20919,"Name":"TaCZ:圣化技能扩展 (MistCloud Tacz Skills Extension)","CurseForge":"misttaczskills","Modrinth":"misttaczskills"},{"Id":20920,"Name":"品质铁路 (Quality Railway)","CurseForge":"quality-railway","Modrinth":"quality-railway"},{"Id":20922,"Name":"","CurseForge":"custom-mob-attributes","Modrinth":"custom-mob-attributes"},{"Id":20923,"Name":"","CurseForge":"custom-durability","Modrinth":"custom-durability"},{"Id":20924,"Name":"","CurseForge":"","Modrinth":"dragons-egg(s)"},{"Id":20925,"Name":"","CurseForge":"zombie-variants","Modrinth":"zombie-variants"},{"Id":20926,"Name":"","CurseForge":"extra-carts","Modrinth":""},{"Id":20927,"Name":"","CurseForge":"fairy-factions-revived","Modrinth":""},{"Id":20928,"Name":"","CurseForge":"netherited","Modrinth":"netherited-fireproof"},{"Id":20928,"Name":"","CurseForge":"fabric-netherited","Modrinth":""},{"Id":20929,"Name":"","CurseForge":"creeperhost-presents-soul-shards","Modrinth":"creeperhost-presents-soul-shards"},{"Id":20930,"Name":"神话与传说 (Myths & Legends)","CurseForge":"myths-n-legends","Modrinth":"myths-and-legends"},{"Id":20931,"Name":"零食工艺 (SnackCraft)","CurseForge":"","Modrinth":"snackcraft"},{"Id":20933,"Name":"","CurseForge":"copper-backport","Modrinth":"copper-backport"},{"Id":20935,"Name":"盾牌指示器 (Shield Indicator)","CurseForge":"","Modrinth":"shield-indicator"},{"Id":20936,"Name":"堡垒遗迹藏宝室重置 (Bastion Remnant Treasure Reset)","CurseForge":"a-bastion-remnant-treasure-reset","Modrinth":""},{"Id":20937,"Name":"堡垒遗迹疣猪兽棚重铸 (Bastion Remnant Hoglin Stable Reforged)","CurseForge":"a-bastion-remnant-hoglin-stable-reforged","Modrinth":""},{"Id":20938,"Name":"殖民地魔法 (Colonial Arcana)","CurseForge":"colonial-arcana-minecolonies-addon","Modrinth":""},{"Id":20940,"Name":"","CurseForge":"fires-ender-expansion","Modrinth":""},{"Id":20941,"Name":"泰坦生物Neo (TheTitansNeo)","CurseForge":"thetitansneo","Modrinth":"thetitansneo"},{"Id":20942,"Name":"","CurseForge":"vectorientation-reneoforge","Modrinth":""},{"Id":20943,"Name":"复制ID (CopyID)","CurseForge":"copyid","Modrinth":"copyid"},{"Id":20944,"Name":"","CurseForge":"","Modrinth":"a-lightcolor-beacon"},{"Id":20945,"Name":"","CurseForge":"","Modrinth":"surveyor"},{"Id":20946,"Name":"","CurseForge":"","Modrinth":"create-portable-packaging"},{"Id":20947,"Name":"","CurseForge":"create-more-pipe-bombs-in-packages","Modrinth":"create-more-pipe-bombs-in-packages"},{"Id":20948,"Name":"机械动力:蓝图补丁 (Create Bugfix: Schematic Patch)","CurseForge":"create-bugfix-schematic-patch","Modrinth":"create-bugfix-schematic-patch"},{"Id":20950,"Name":"","CurseForge":"create-ornithopter-glider","Modrinth":"create-ornithopter-glider"},{"Id":20951,"Name":"","CurseForge":"create-train-parts","Modrinth":"create-train-parts"},{"Id":20952,"Name":"","CurseForge":"","Modrinth":"breakable-blocks"},{"Id":20953,"Name":"","CurseForge":"flux-network-x-cc-tweaked","Modrinth":""},{"Id":20954,"Name":"","CurseForge":"twotility","Modrinth":""},{"Id":20955,"Name":"","CurseForge":"opticubes","Modrinth":""},{"Id":20956,"Name":"","CurseForge":"closets-by-smplesco","Modrinth":"closets-by-smplesco"},{"Id":20957,"Name":"","CurseForge":"variety-chests-mod","Modrinth":""},{"Id":20958,"Name":"","CurseForge":"light-detector","Modrinth":""},{"Id":20959,"Name":"","CurseForge":"quality-hails","Modrinth":""},{"Id":20960,"Name":"","CurseForge":"ancient-structures-edo-japan","Modrinth":"ancient-structures-edo-japan"},{"Id":20961,"Name":"海虎 (TigerShark)","CurseForge":"tiger-shark","Modrinth":"tigershark"},{"Id":20965,"Name":"更好的末地城 (Better End Cities)","CurseForge":"better-end-cities-better-end","Modrinth":"better-end-cities-for-betterend"},{"Id":20965,"Name":"更好的末地城 (Better End Cities)","CurseForge":"better-end-cities-vanilla","Modrinth":"better-end-cities-base"},{"Id":20966,"Name":"","CurseForge":"fallen-gems-affixes","Modrinth":""},{"Id":20967,"Name":"","CurseForge":"skill-tree","Modrinth":""},{"Id":20968,"Name":"","CurseForge":"blatium","Modrinth":"blatium"},{"Id":20969,"Name":"","CurseForge":"trimica","Modrinth":"trimica"},{"Id":20970,"Name":"","CurseForge":"fantasy-weapons-medieval-series","Modrinth":"fantasy_weapons"},{"Id":20971,"Name":"磷光传送 (LSKTP)","CurseForge":"","Modrinth":"lsktp"},{"Id":20972,"Name":"","CurseForge":"ksit","Modrinth":"ksit"},{"Id":20973,"Name":"","CurseForge":"bestia","Modrinth":"bestia"},{"Id":20974,"Name":"","CurseForge":"","Modrinth":"itemfinderinall-items"},{"Id":20975,"Name":"","CurseForge":"filterchat","Modrinth":""},{"Id":20976,"Name":"","CurseForge":"kit-keep-inventory-timer-keepinventorytimer","Modrinth":""},{"Id":20977,"Name":"","CurseForge":"useful-luck","Modrinth":"useful-luck"},{"Id":20978,"Name":"","CurseForge":"","Modrinth":"sneak-fertilizing"},{"Id":20979,"Name":"","CurseForge":"p1neros-epic-fight-leawind-compat","Modrinth":""},{"Id":20980,"Name":"自定义实体等级 (Custom Entity Leveling)","CurseForge":"custom-entity-leveling","Modrinth":"custom-entity-leveling"},{"Id":20981,"Name":"","CurseForge":"no-monster-rooms","Modrinth":""},{"Id":20982,"Name":"","CurseForge":"","Modrinth":"carpetrmsaddition"},{"Id":20983,"Name":"","CurseForge":"","Modrinth":"fireworkindicator"},{"Id":20984,"Name":"","CurseForge":"squeedometer-reforged-special-port","Modrinth":""},{"Id":20986,"Name":"","CurseForge":"difficulty-patch","Modrinth":""},{"Id":20987,"Name":"","CurseForge":"squake-reforged","Modrinth":"squake-fabric-updated"},{"Id":20987,"Name":"","CurseForge":"squake-fabric-1-20","Modrinth":""},{"Id":20988,"Name":"","CurseForge":"squake-reforged-special-port","Modrinth":""},{"Id":20989,"Name":"","CurseForge":"brigo","Modrinth":"brigo"},{"Id":20990,"Name":"","CurseForge":"ae2-web-integration","Modrinth":"ae2-web-integration"},{"Id":20991,"Name":"","CurseForge":"skillet-man-core","Modrinth":""},{"Id":20992,"Name":"","CurseForge":"p1neros-dialogue-lib","Modrinth":""},{"Id":20995,"Name":"机械动力:臂力臂力烧烤 (Create : Arm-made Barbeque)","CurseForge":"create-arm-made-barbeque","Modrinth":""},{"Id":20996,"Name":"","CurseForge":"indestructible-blocks","Modrinth":""},{"Id":20998,"Name":"","CurseForge":"epic-fight-super-chef","Modrinth":""},{"Id":20999,"Name":"史诗战斗:夜幕 (EpicFight-Nightfall)","CurseForge":"epicfight-nightfall","Modrinth":""},{"Id":21000,"Name":"","CurseForge":"genesis-official","Modrinth":""},{"Id":21001,"Name":"","CurseForge":"featurecreep","Modrinth":""},{"Id":21003,"Name":"","CurseForge":"fabric-orm-jimmer","Modrinth":"fabric-orm-jimmer"},{"Id":21004,"Name":"","CurseForge":"aces-spell-utils","Modrinth":"aces-spell-utils"},{"Id":21005,"Name":"","CurseForge":"targeteventbackport","Modrinth":""},{"Id":21006,"Name":"","CurseForge":"silk-kt","Modrinth":"silk"},{"Id":21009,"Name":"","CurseForge":"","Modrinth":"playercommands-(old-mc)"},{"Id":21010,"Name":"","CurseForge":"legends-forge-series-vikings-n-northerners","Modrinth":""},{"Id":21011,"Name":"","CurseForge":"tinkers-battle-spades","Modrinth":""},{"Id":21012,"Name":"","CurseForge":"","Modrinth":"its-not-real"},{"Id":21013,"Name":"","CurseForge":"ly-meteors","Modrinth":""},{"Id":21014,"Name":"","CurseForge":"ashvehicle","Modrinth":""},{"Id":21015,"Name":"","CurseForge":"","Modrinth":"smart-absorption"},{"Id":21016,"Name":"","CurseForge":"","Modrinth":"mooshees"},{"Id":21017,"Name":"","CurseForge":"city-of-chambers","Modrinth":""},{"Id":21018,"Name":"","CurseForge":"tower-of-chambers","Modrinth":"towers-of-chambers-neoforge"},{"Id":21020,"Name":"","CurseForge":"ancient-structures-chinese","Modrinth":"ancient-structures-chinese"},{"Id":21021,"Name":"","CurseForge":"eypipes","Modrinth":""},{"Id":21022,"Name":"","CurseForge":"shipping-bin","Modrinth":""},{"Id":21023,"Name":"HBM的核科技社区版 (HBM's Nuclear Tech Mod: Community Edition)","CurseForge":"hbm-nuclear-tech-mod-community-edition","Modrinth":"ntm-ce"},{"Id":21024,"Name":"","CurseForge":"gte2-coremod","Modrinth":"gte2-coremod"},{"Id":21025,"Name":"","CurseForge":"japan-props","Modrinth":"japan-props"},{"Id":21027,"Name":"","CurseForge":"one-enough-item","Modrinth":"one-enough-item"},{"Id":21028,"Name":"","CurseForge":"o123456789","Modrinth":"o123456789"},{"Id":21029,"Name":"","CurseForge":"friendly-chests-no-fluid","Modrinth":""},{"Id":21030,"Name":"","CurseForge":"herios-floral-expansion","Modrinth":"herios-floral-expansion"},{"Id":21031,"Name":"粉红大包菜的屏幕透明度优化 (PinkCabbage Transparent BetterScreen)","CurseForge":"pinkcabbage-transparent-betterscreen","Modrinth":"pinkcabbagetransparentbetterscreen"},{"Id":21032,"Name":"","CurseForge":"wastify-returns","Modrinth":""},{"Id":21033,"Name":"","CurseForge":"sillys-crossbow-fix","Modrinth":"sillys-crossbow-fix"},{"Id":21034,"Name":"","CurseForge":"thaumpotion-tweaker","Modrinth":"thaumpotion-tweaker"},{"Id":21035,"Name":"","CurseForge":"novoatlas","Modrinth":"novoatlas"},{"Id":21036,"Name":"","CurseForge":"resource-pack-tweaks","Modrinth":""},{"Id":21037,"Name":"夜视衰减修复 (Night Vision Decay Fix)","CurseForge":"night-vision-decay-fix","Modrinth":""},{"Id":21038,"Name":"","CurseForge":"roid-tweaker","Modrinth":""},{"Id":21039,"Name":"","CurseForge":"translatorpp","Modrinth":"translatorpp"},{"Id":21040,"Name":"","CurseForge":"modular-machinery-community-edition-addons","Modrinth":""},{"Id":21041,"Name":"随意之作 (Random Addon)","CurseForge":"randomaddon","Modrinth":""},{"Id":21042,"Name":"持器射首 / MyGO 你个头 (BanG Dream! It's MyHead!!!)","CurseForge":"myhead","Modrinth":""},{"Id":21043,"Name":"查其所伤/Boss伤害追踪器 (Boss DPS Tracker)","CurseForge":"boss-dps-tracker","Modrinth":""},{"Id":21044,"Name":"","CurseForge":"wandering-trader-may-leave","Modrinth":"wandering-trader-may-leave"},{"Id":21045,"Name":"","CurseForge":"mod-tabs","Modrinth":""},{"Id":21046,"Name":"","CurseForge":"totem-bar","Modrinth":"totem-bar"},{"Id":21047,"Name":"","CurseForge":"visualores-meowmel","Modrinth":""},{"Id":21048,"Name":"","CurseForge":"savebabystriders","Modrinth":""},{"Id":21049,"Name":"逝去的下界修复 (Bygone Nether Fixes)","CurseForge":"bygone-nether-fixes","Modrinth":"bygone-nether-fixes"},{"Id":21050,"Name":"首领崛起 (Bosses'Rise)","CurseForge":"bossesrise","Modrinth":"bossesrise"},{"Id":21052,"Name":"","CurseForge":"advancementinfo-update","Modrinth":""},{"Id":21053,"Name":"","CurseForge":"expanded-mace-enchanting","Modrinth":"expanded-mace-enchanting"},{"Id":21054,"Name":"","CurseForge":"silky-spawners","Modrinth":""},{"Id":21055,"Name":"","CurseForge":"starhud","Modrinth":"starhud"},{"Id":21056,"Name":"","CurseForge":"celeritas-dynamic-lights","Modrinth":"celeritas-dynamic-lights"},{"Id":21057,"Name":"","CurseForge":"resistance-balancer","Modrinth":"resistance-balancer"},{"Id":21058,"Name":"","CurseForge":"silkier-touch","Modrinth":"silkier-touch"},{"Id":21059,"Name":"凋灵生成修复 (Wither Spawn Fix)","CurseForge":"wither-spawn-fix","Modrinth":"wither-spawn-fix"},{"Id":21060,"Name":"加速渲染 (Accelerated Rendering)","CurseForge":"accelerated-rendering","Modrinth":""},{"Id":21061,"Name":"","CurseForge":"cii","Modrinth":"cii"},{"Id":21062,"Name":"","CurseForge":"simpler-wooden-pipes","Modrinth":"simpler-wooden-pipes"},{"Id":21063,"Name":"","CurseForge":"garden-cloche-backport","Modrinth":""},{"Id":21064,"Name":"首领仇恨 (Boss Hatred)","CurseForge":"bh-boss-hatred","Modrinth":"boss-hatred"},{"Id":21066,"Name":"","CurseForge":"camol","Modrinth":""},{"Id":21067,"Name":"","CurseForge":"bbb-unforged","Modrinth":"bbb-unforged"},{"Id":21068,"Name":"","CurseForge":"performance-monitoring-enhancer","Modrinth":""},{"Id":21069,"Name":"","CurseForge":"create-upsizing","Modrinth":"create-upsizing"},{"Id":21070,"Name":"","CurseForge":"better-world-loading-forge","Modrinth":"better-world-loading"},{"Id":21070,"Name":"","CurseForge":"better-world-loading-fabric","Modrinth":""},{"Id":21072,"Name":"启示录:小地图Hud (Apocalypse Minimap Hud)","CurseForge":"apocalypse-minimap-hud","Modrinth":"apocalypseminimaphud"},{"Id":21073,"Name":"进度移除 (AdvancementNoMore)","CurseForge":"advancementnomore","Modrinth":""},{"Id":21074,"Name":"","CurseForge":"collisium","Modrinth":""},{"Id":21075,"Name":"","CurseForge":"dypsis","Modrinth":"dypsis"},{"Id":21076,"Name":"","CurseForge":"chat-plus","Modrinth":"chat-plus"},{"Id":21077,"Name":"","CurseForge":"mcreatormemfix","Modrinth":"mcreatormemfix"},{"Id":21078,"Name":"","CurseForge":"","Modrinth":"atlas"},{"Id":21079,"Name":"","CurseForge":"legacy-tweaks","Modrinth":"legacytweaks"},{"Id":21080,"Name":"简单电梯 (Easy Elevators)","CurseForge":"easy-elevators","Modrinth":"easy-elevators"},{"Id":21082,"Name":"","CurseForge":"davincing","Modrinth":""},{"Id":21083,"Name":"航空无线电 (Aeronautical Radio)","CurseForge":"aeronautical-radio","Modrinth":""},{"Id":21084,"Name":"猎人鼠鼠游戏 (Hunter Vs Mice)","CurseForge":"hunter-vs-mice","Modrinth":"hunter-vs-mice"},{"Id":21085,"Name":"","CurseForge":"citymod-one-block-one-building","Modrinth":"city_mod"},{"Id":21086,"Name":"","CurseForge":"gedrite-mod","Modrinth":"gedrite-mod"},{"Id":21087,"Name":"","CurseForge":"","Modrinth":"shorkie"},{"Id":21088,"Name":"","CurseForge":"enchantable-boat","Modrinth":"enchantable-boat"},{"Id":21089,"Name":"","CurseForge":"throw-bricks","Modrinth":""},{"Id":21090,"Name":"动物围栏 (Animal Pens)","CurseForge":"animal-pens","Modrinth":"animalpens"},{"Id":21094,"Name":"GLY的罐头 (GLYCan)","CurseForge":"","Modrinth":"glys-can"},{"Id":21095,"Name":"Fargo魂石 (Fargo Soul)","CurseForge":"fargo-soul","Modrinth":""},{"Id":21096,"Name":"破损弓 (Broken Bows)","CurseForge":"","Modrinth":"brokenbows"},{"Id":21097,"Name":"通用机械纹饰 (Mekanism Trimming)","CurseForge":"mekanism-trimming","Modrinth":"mekanism-trimming"},{"Id":21098,"Name":"跃迁蛋糕 (Teleport Cakes)","CurseForge":"teleportcakes","Modrinth":"teleportcakes"},{"Id":21099,"Name":"","CurseForge":"repair-amulet","Modrinth":""},{"Id":21100,"Name":"","CurseForge":"alpine","Modrinth":""},{"Id":21101,"Name":"客户端消息清理 (ClientChatClean)","CurseForge":"clientchatclean","Modrinth":""},{"Id":21102,"Name":"","CurseForge":"clickmobs","Modrinth":""},{"Id":21103,"Name":"","CurseForge":"vlib","Modrinth":"vlib"},{"Id":21104,"Name":"","CurseForge":"wabbanode-companion","Modrinth":""},{"Id":21105,"Name":"麦克风语音识别文本输入 (Microphone Text Input)","CurseForge":"","Modrinth":"mcmti"},{"Id":21106,"Name":"","CurseForge":"powernexus-menu","Modrinth":""},{"Id":21107,"Name":"","CurseForge":"hit-delay-fix","Modrinth":""},{"Id":21108,"Name":"更好的挖掘机制 (BetterExcavate)","CurseForge":"betterexcavate","Modrinth":""},{"Id":21109,"Name":"营火烟雾优化 (Optimization of Campfire Smoke)","CurseForge":"optimization-of-campfire-smoke","Modrinth":""},{"Id":21110,"Name":"","CurseForge":"armored-combat-enhancer","Modrinth":""},{"Id":21112,"Name":"","CurseForge":"animal-hats","Modrinth":"animal-hats-yeah"},{"Id":21113,"Name":"","CurseForge":"","Modrinth":"raid-restore"},{"Id":21114,"Name":"","CurseForge":"asgardandelion-for-botania","Modrinth":""},{"Id":21115,"Name":"","CurseForge":"trotting-wagons","Modrinth":"trotting-wagons"},{"Id":21116,"Name":"","CurseForge":"grindstonehoning","Modrinth":""},{"Id":21117,"Name":"彩虹扳手:Forge版 (RainbowWrenchForJei: ReForge)","CurseForge":"rainbowwrenchforjei-reforge","Modrinth":""},{"Id":21118,"Name":"更好的结构定位指令 (Better Locate Structure Command)","CurseForge":"better-locate-structure-command","Modrinth":""},{"Id":21119,"Name":"闪避攻击 (Att Miss)","CurseForge":"att-miss","Modrinth":""},{"Id":21120,"Name":"","CurseForge":"energizexp","Modrinth":"energizexp"},{"Id":21121,"Name":"更好的铁魔法UI (No More Magic Choices)","CurseForge":"no-more-magic-choices","Modrinth":""},{"Id":21122,"Name":"更好的ME样板供应器 (Pattern Better)","CurseForge":"patternbetter","Modrinth":"patternbetter"},{"Id":21123,"Name":"","CurseForge":"legacy-skins","Modrinth":"legacy-skins"},{"Id":21124,"Name":"","CurseForge":"","Modrinth":"oh-my-pc"},{"Id":21125,"Name":"","CurseForge":"vsprinter","Modrinth":"vsprinter"},{"Id":21126,"Name":"","CurseForge":"clickvillagers","Modrinth":""},{"Id":21127,"Name":"","CurseForge":"","Modrinth":"button-packet-id-fix"},{"Id":21128,"Name":"","CurseForge":"accessories-compat-layer","Modrinth":"accessories-compat-layer"},{"Id":21129,"Name":"","CurseForge":"world-downloader","Modrinth":"world-downloader"},{"Id":21130,"Name":"","CurseForge":"tameable-guinea-pigs","Modrinth":""},{"Id":21131,"Name":"","CurseForge":"familiarslib","Modrinth":""},{"Id":21132,"Name":"龙骑士重制版 (Dragon Mounts Remastered)","CurseForge":"dmr","Modrinth":"dmr"},{"Id":21134,"Name":"无尽贪婪 : 拓展 (Avaritia : Expand)","CurseForge":"avaritia-expand","Modrinth":""},{"Id":21135,"Name":"北极星市场方块 (PolarisTrading)","CurseForge":"polaristrading","Modrinth":""},{"Id":21136,"Name":"节气:多维修补 (Ecliptic Seasons: MultiMod Patch)","CurseForge":"ecliptic-seasons-multimod-patch","Modrinth":""},{"Id":21137,"Name":"","CurseForge":"random-things-returns","Modrinth":""},{"Id":21138,"Name":"","CurseForge":"infinite-storage-cell","Modrinth":""},{"Id":21139,"Name":"八宝粥行动 (Delta Technology)","CurseForge":"delta-technology","Modrinth":""},{"Id":21140,"Name":"雅致咒术 (Elegant Spells)","CurseForge":"elegant-spells","Modrinth":"elegant-spells"},{"Id":21141,"Name":"希儿的工坊 (Seele's Craft)","CurseForge":"","Modrinth":"seelescraft"},{"Id":21142,"Name":"随时可住 (ReadyHomes)","CurseForge":"readyhomes","Modrinth":""},{"Id":21143,"Name":"方舟武器 (Arknights Weapon)","CurseForge":"arknights-weapon","Modrinth":""},{"Id":21145,"Name":"","CurseForge":"illager-warship","Modrinth":"illager-warship"},{"Id":21146,"Name":"","CurseForge":"asian-fountains","Modrinth":"asian-fountains"},{"Id":21147,"Name":"","CurseForge":"illager-chef-trader","Modrinth":""},{"Id":21148,"Name":"","CurseForge":"skyblock-villager","Modrinth":""},{"Id":21149,"Name":"","CurseForge":"","Modrinth":"redstoneer-villager"},{"Id":21150,"Name":"","CurseForge":"perrys-urban","Modrinth":"perrys-urban"},{"Id":21151,"Name":"","CurseForge":"neo-blahaj","Modrinth":""},{"Id":21153,"Name":"传送水晶 (Teleportation Crystal)","CurseForge":"teleportation-crystal","Modrinth":""},{"Id":21154,"Name":"魔女的魔咒 (Majo's Spell Enchantment)","CurseForge":"majo-spell-enchantment","Modrinth":""},{"Id":21155,"Name":"","CurseForge":"oaks-capes","Modrinth":"oaks-capes"},{"Id":21157,"Name":"Cobblemon:骑乘! (Cobblemon: Ride On!)","CurseForge":"cobblemon-ride-on","Modrinth":"cobblemon-ride-on"},{"Id":21158,"Name":"","CurseForge":"clayium-additions","Modrinth":""},{"Id":21159,"Name":"农夫群峦 (Farmers TFC)","CurseForge":"farmers-tfc","Modrinth":""},{"Id":21160,"Name":"","CurseForge":"oaks-delight","Modrinth":"oaks-delight"},{"Id":21162,"Name":"殖民地寻路大修 (Pathfinding Edition For Minecolonies)","CurseForge":"pathfinding-edition-for-minecolonies","Modrinth":"pathfinding-edition-for-minecolonies"},{"Id":21163,"Name":"","CurseForge":"clicksigns","Modrinth":"clicksigns"},{"Id":21164,"Name":"咸鱼 (Salted Fish)","CurseForge":"","Modrinth":"salted-fish-craft"},{"Id":21165,"Name":"","CurseForge":"herios-helian-mod","Modrinth":"herios-helian-mod"},{"Id":21166,"Name":"装饰性食物 (Decorative Food)","CurseForge":"decorative-food","Modrinth":"decorative-food"},{"Id":21168,"Name":"铁砧工艺:合金扩展 (Anvilcraft: Alloy Extension)","CurseForge":"anvilcraft-alloyextension","Modrinth":"anvilcraft-alloyextension"},{"Id":21169,"Name":"","CurseForge":"arkifs-hoverboard-mod","Modrinth":""},{"Id":21170,"Name":"","CurseForge":"glow","Modrinth":"glows"},{"Id":21171,"Name":"","CurseForge":"leaf-villager-trader","Modrinth":""},{"Id":21172,"Name":"","CurseForge":"guard-villager-trader","Modrinth":""},{"Id":21173,"Name":"","CurseForge":"hunter-villager-trader","Modrinth":""},{"Id":21174,"Name":"","CurseForge":"garbage-collector-villager","Modrinth":""},{"Id":21175,"Name":"","CurseForge":"more-traders","Modrinth":"more-traders"},{"Id":21176,"Name":"","CurseForge":"ae2-better-villagers","Modrinth":"ae2-better-villagers"},{"Id":21177,"Name":"","CurseForge":"harvester-trader","Modrinth":""},{"Id":21178,"Name":"","CurseForge":"railman-villager","Modrinth":"railman-villager"},{"Id":21179,"Name":"","CurseForge":"dimensionaltraders","Modrinth":""},{"Id":21180,"Name":"","CurseForge":"taxbiometrader","Modrinth":"tax-leons-biome-trader"},{"Id":21181,"Name":"","CurseForge":"quickelytraswapperplus-client","Modrinth":"elytraswapper+"},{"Id":21182,"Name":"","CurseForge":"","Modrinth":"elytrakey"},{"Id":21183,"Name":"","CurseForge":"elytraswapperplus","Modrinth":""},{"Id":21184,"Name":"味觉疲劳 (Taste Fatigue)","CurseForge":"taste-fatigue","Modrinth":"taste-fatigue"},{"Id":21185,"Name":"","CurseForge":"realistic-nametag","Modrinth":"realistic-nametag"},{"Id":21186,"Name":"","CurseForge":"hitboxplus","Modrinth":"hitboxplus"},{"Id":21187,"Name":"","CurseForge":"","Modrinth":"hittable"},{"Id":21188,"Name":"","CurseForge":"hitmarker","Modrinth":""},{"Id":21189,"Name":"自动落地水 (AutoLandingWater)","CurseForge":"autolandingwater","Modrinth":"autolandingwater"},{"Id":21190,"Name":"","CurseForge":"skygrid-reloaded","Modrinth":"skygrid-reloaded"},{"Id":21191,"Name":"石木工艺 (Stone & Wood Industry)","CurseForge":"","Modrinth":"stone-wood-industry"},{"Id":21192,"Name":"","CurseForge":"roomopolis","Modrinth":"roomopolis"},{"Id":21193,"Name":"","CurseForge":"bbl-placers","Modrinth":"bbl-placers"},{"Id":21195,"Name":"龙之进化旧版模型 (Draconic Legacy Models)","CurseForge":"draconic-legacy-models","Modrinth":""},{"Id":21196,"Name":"","CurseForge":"furnaces","Modrinth":""},{"Id":21197,"Name":"","CurseForge":"gtconstruct","Modrinth":""},{"Id":21198,"Name":"","CurseForge":"rain-be-gone-ritual","Modrinth":"rain-be-gone-ritual"},{"Id":21199,"Name":"素食者的选择 (The Vegan Option)","CurseForge":"the-vegan-option","Modrinth":""},{"Id":21200,"Name":"幻想乡乐事 ~~ 妖怪们的飨宴 (Gensokyo Delight ~ Youkais' Feasts)","CurseForge":"gensokyo-delight-youkais-feasts","Modrinth":"youkaishomecoming"},{"Id":21202,"Name":"","CurseForge":"tuttas-doors","Modrinth":"tuttas-doors"},{"Id":21203,"Name":"行尸走肉 (Effect Living Dead)","CurseForge":"","Modrinth":"effectlivingdead"},{"Id":21204,"Name":"VS区块加载器 (VS ChunkLoader)","CurseForge":"vs-chunkloader","Modrinth":"vs-chunkloader"},{"Id":21205,"Name":"","CurseForge":"create-blocks-bogies","Modrinth":"blocks-bogies"},{"Id":21206,"Name":"","CurseForge":"create-netherite-additions","Modrinth":"create-netherite-additions"},{"Id":21207,"Name":"","CurseForge":"create-sophisticated-backpacks-compat","Modrinth":"create-sophisticated-backpacks-compat"},{"Id":21208,"Name":"","CurseForge":"create-item-pets","Modrinth":""},{"Id":21209,"Name":"","CurseForge":"c-bc-nukes-6-0-port","Modrinth":""},{"Id":21210,"Name":"","CurseForge":"plushieverse","Modrinth":"plushieverse"},{"Id":21211,"Name":"","CurseForge":"thavma","Modrinth":"thavma"},{"Id":21212,"Name":"","CurseForge":"arsarms","Modrinth":"arsarms"},{"Id":21213,"Name":"","CurseForge":"yorupo-mod","Modrinth":"yorupo-mod"},{"Id":21214,"Name":"","CurseForge":"yande-mod","Modrinth":"yande-mod"},{"Id":21215,"Name":"","CurseForge":"gtcefucontent","Modrinth":""},{"Id":21216,"Name":"","CurseForge":"mcheli-overdrive-ext","Modrinth":"mcheli-o-ext"},{"Id":21217,"Name":"","CurseForge":"iron-biplane","Modrinth":"iron-biplane"},{"Id":21218,"Name":"","CurseForge":"realistic-computers","Modrinth":""},{"Id":21220,"Name":"","CurseForge":"boss-mob-enhancer","Modrinth":""},{"Id":21221,"Name":"飞行 API (Flight API)","CurseForge":"flight-api","Modrinth":""},{"Id":21222,"Name":"无限刷怪笼 (Unlimited Spawners)","CurseForge":"unlimited-spawners","Modrinth":"unlimited-spawners"},{"Id":21224,"Name":"敞骑速视 / 矿车信息可视化 (MinecartVisualizer)","CurseForge":"","Modrinth":"minecart-visualizer"},{"Id":21225,"Name":"","CurseForge":"","Modrinth":"shadowborders"},{"Id":21226,"Name":"认证 (Authenticate)","CurseForge":"authenticate","Modrinth":"authenticate"},{"Id":21228,"Name":"","CurseForge":"unbinilium","Modrinth":""},{"Id":21229,"Name":"","CurseForge":"veinbreaker","Modrinth":"veinbreaker"},{"Id":21230,"Name":"","CurseForge":"actions","Modrinth":"actions"},{"Id":21231,"Name":"","CurseForge":"i-have-no-mouth-but-i-must-chat","Modrinth":"ihavenomouthbutimustchat"},{"Id":21232,"Name":"","CurseForge":"renderscale","Modrinth":"renderscale"},{"Id":21233,"Name":"","CurseForge":"proportional-destruction-particles","Modrinth":""},{"Id":21234,"Name":"","CurseForge":"tacz-ammo-query","Modrinth":""},{"Id":21235,"Name":"","CurseForge":"fast-happy-ghasts","Modrinth":""},{"Id":21236,"Name":"","CurseForge":"","Modrinth":"starhudforged"},{"Id":21237,"Name":"","CurseForge":"","Modrinth":"slotted-armor-hud"},{"Id":21239,"Name":"","CurseForge":"","Modrinth":"say-sorry!"},{"Id":21240,"Name":"","CurseForge":"","Modrinth":"playerautoma"},{"Id":21241,"Name":"","CurseForge":"im-fast","Modrinth":"im-fast"},{"Id":21242,"Name":"","CurseForge":"","Modrinth":"unpath"},{"Id":21243,"Name":"","CurseForge":"no-more-popups","Modrinth":"no-more-popups"},{"Id":21244,"Name":"","CurseForge":"sussypatches","Modrinth":"sussypatches"},{"Id":21245,"Name":"","CurseForge":"","Modrinth":"simple-item-editor"},{"Id":21246,"Name":"","CurseForge":"baby-zombie-removal","Modrinth":"baby-zombie-removal"},{"Id":21247,"Name":"","CurseForge":"immersive-sounds","Modrinth":""},{"Id":21248,"Name":"","CurseForge":"boatview360","Modrinth":"boatview360"},{"Id":21249,"Name":"","CurseForge":"","Modrinth":"my-resource-pack"},{"Id":21250,"Name":"","CurseForge":"oaks-bits","Modrinth":"oaks-bits-and-bops"},{"Id":21251,"Name":"星源拔刀剑 (Star Source Blade)","CurseForge":"","Modrinth":"starsource"},{"Id":21252,"Name":"雪下的誓言 (Snow Waifu Spell)","CurseForge":"snow-waifu-spell","Modrinth":""},{"Id":21253,"Name":"香草刷怪塔陷阱强化:涌渊敌冢 (Mob Farm Trap)","CurseForge":"mob-farm-trap","Modrinth":"mob-farm-trap"},{"Id":21254,"Name":"","CurseForge":"twograve","Modrinth":""},{"Id":21255,"Name":"","CurseForge":"perrys-decorations","Modrinth":"perrys-decorations"},{"Id":21256,"Name":"","CurseForge":"perry-s-decorations-2","Modrinth":""},{"Id":21257,"Name":"","CurseForge":"bookshelf-extended-enchanting-reach","Modrinth":""},{"Id":21258,"Name":"","CurseForge":"enchanter-fix","Modrinth":"enchanter-fix"},{"Id":21259,"Name":"","CurseForge":"dynamic-regen-enhancer","Modrinth":""},{"Id":21260,"Name":"","CurseForge":"guinea-pig-variety","Modrinth":"guinea-pig-variety"},{"Id":21262,"Name":"域名 (Area Hints)","CurseForge":"","Modrinth":"area-hints"},{"Id":21263,"Name":"","CurseForge":"yammo","Modrinth":""},{"Id":21265,"Name":"","CurseForge":"fps-display-doubler","Modrinth":"fps-display-doubler"},{"Id":21266,"Name":"背包阶段 (Inventory Stages)","CurseForge":"inventory-stages","Modrinth":""},{"Id":21267,"Name":"格雷矿物通用机械支持 (GregMek)","CurseForge":"gregmek","Modrinth":""},{"Id":21268,"Name":"","CurseForge":"","Modrinth":"armor-hud"},{"Id":21269,"Name":"","CurseForge":"","Modrinth":"ukus-armor-hud"},{"Id":21270,"Name":"","CurseForge":"mob-flow-utilities","Modrinth":"flowtech-mob-systems"},{"Id":21272,"Name":"","CurseForge":"ftb-materials","Modrinth":""},{"Id":21273,"Name":"","CurseForge":"the-great-below","Modrinth":""},{"Id":21274,"Name":"","CurseForge":"illagerblabber","Modrinth":"illagerblabber"},{"Id":21276,"Name":"","CurseForge":"serene-season-extended-fix","Modrinth":"serene-seasons-plus"},{"Id":21277,"Name":"","CurseForge":"create-enchantment-industry-plus","Modrinth":"create-enchantment-industry-plus"},{"Id":21278,"Name":"","CurseForge":"boiled-one-unleashed","Modrinth":"boiled-one-unleashed"},{"Id":21279,"Name":"","CurseForge":"creaturecraft-plus","Modrinth":""},{"Id":21280,"Name":"","CurseForge":"war-elephants","Modrinth":""},{"Id":21282,"Name":"点到为止 (One Click One Block)","CurseForge":"one-click-one-block-1c1b","Modrinth":"oneclickoneblock"},{"Id":21283,"Name":"可翻译调试选项屏幕 (TranslatableDebugOptions)","CurseForge":"","Modrinth":"translatabledebugoptions"},{"Id":21285,"Name":"OpenGL错误隐藏 (Suppress OpenGL Error 128(0-2))","CurseForge":"suppressopengl1280","Modrinth":"suppressopengl1280"},{"Id":21286,"Name":"","CurseForge":"fexs-vehicle-mod","Modrinth":"fvtm"},{"Id":21287,"Name":"","CurseForge":"otterlib","Modrinth":""},{"Id":21288,"Name":"维度禁用 (DimBan)","CurseForge":"dimban","Modrinth":""},{"Id":21289,"Name":"仅存一物 (Only One Item)","CurseForge":"onlyoneitem","Modrinth":""},{"Id":21290,"Name":"自定义区块加载器 (BedLoad)","CurseForge":"bedload","Modrinth":""},{"Id":21291,"Name":"","CurseForge":"","Modrinth":"unreachable-nether"},{"Id":21293,"Name":"","CurseForge":"","Modrinth":"detail-armor-bar-reconstructed"},{"Id":21294,"Name":"","CurseForge":"","Modrinth":"auto-fishing"},{"Id":21296,"Name":"工业革命JEI (IndRevJEI)","CurseForge":"indrevjei","Modrinth":"indrevjei"},{"Id":21297,"Name":"飞向未来研究数据包兼容 (Futurepack Research Patcher)","CurseForge":"fpresearchpatcher","Modrinth":""},{"Id":21298,"Name":"ME无限元件 (ME Infinity Cell)","CurseForge":"me-infinity-cell","Modrinth":""},{"Id":21299,"Name":"","CurseForge":"air-jump","Modrinth":""},{"Id":21300,"Name":"更多嗅探兽花卉 (More Sniffer Flowers)","CurseForge":"more-sniffer-flowers","Modrinth":"more-sniffer-flowers"},{"Id":21302,"Name":"附魔能力 (Enchantability)","CurseForge":"enchantability","Modrinth":""},{"Id":21303,"Name":"末影拴绳 (Ender Lead)","CurseForge":"ender-lead","Modrinth":"ender-lead"},{"Id":21306,"Name":"","CurseForge":"create-growableores-compat","Modrinth":"creategrowableores-compat"},{"Id":21308,"Name":"","CurseForge":"gears-n-kinetics","Modrinth":"gears-n-kinetics"},{"Id":21309,"Name":"","CurseForge":"valkyrien-sails","Modrinth":"valkyrien-sails"},{"Id":21311,"Name":"","CurseForge":"moo-fluids-modern","Modrinth":""},{"Id":21312,"Name":"FF14的羊 (Yan from FF14)","CurseForge":"yan-from-ff14","Modrinth":"yan-from-ff14"},{"Id":21315,"Name":"群峦料理 (TFC Cuisine)","CurseForge":"tfc-cuisine","Modrinth":"tfc-cuisine"},{"Id":21316,"Name":"群峦传说:塌方禁止 (TFC No Collapse)","CurseForge":"tfc-no-collapse","Modrinth":""},{"Id":21317,"Name":"","CurseForge":"no-sleep-chat-overlay-nsco","Modrinth":"no-sleep-chat-overlay-(nsco)"},{"Id":21318,"Name":"","CurseForge":"funkys-fancy-furnaces","Modrinth":"funkys-fancy-furnaces"},{"Id":21319,"Name":"","CurseForge":"timber-enchantment","Modrinth":""},{"Id":21320,"Name":"","CurseForge":"","Modrinth":"alternative-chunkloading"},{"Id":21321,"Name":"","CurseForge":"","Modrinth":"particulate"},{"Id":21322,"Name":"","CurseForge":"haydenapi","Modrinth":""},{"Id":21323,"Name":"","CurseForge":"spore-inquisition","Modrinth":""},{"Id":21324,"Name":"","CurseForge":"ice-and-fire-spartan-weaponry-extras","Modrinth":""},{"Id":21325,"Name":"","CurseForge":"","Modrinth":"vanitydungeons"},{"Id":21326,"Name":"","CurseForge":"","Modrinth":"fcitx5-enhancer"},{"Id":21327,"Name":"","CurseForge":"kubejs-actually-additions","Modrinth":"kubejs-actually-additions"},{"Id":21328,"Name":"","CurseForge":"vibrative-voice","Modrinth":"vibrative-voice"},{"Id":21329,"Name":"","CurseForge":"spawnlock","Modrinth":""},{"Id":21330,"Name":"自定义附魔台 (Enchantment Custom Table)","CurseForge":"enchantment-custom-table","Modrinth":"enchantment-custom-table"},{"Id":21332,"Name":"","CurseForge":"navigator","Modrinth":""},{"Id":21334,"Name":"","CurseForge":"keeping-inventory-reborn","Modrinth":""},{"Id":21335,"Name":"骆驼拓展 (Camel Extend)","CurseForge":"camel-extend","Modrinth":""},{"Id":21336,"Name":"汇流音乐 (Confluence Music)","CurseForge":"confluence-music","Modrinth":""},{"Id":21337,"Name":"取消冷却间隔 (Cancel Attack Cooldown)","CurseForge":"cancel-attack-cooldown","Modrinth":""},{"Id":21338,"Name":"藏奇速释/惊喜战利品 (Surprising Loot)","CurseForge":"surprising-loot","Modrinth":""},{"Id":21339,"Name":"","CurseForge":"","Modrinth":"onlykeys"},{"Id":21340,"Name":"","CurseForge":"flair","Modrinth":""},{"Id":21341,"Name":"凡家物语·重制 (Minecraft Comes Alive Reforged)","CurseForge":"minecraft-comes-alive-reforged","Modrinth":""},{"Id":21342,"Name":"","CurseForge":"cave-mita-dweller","Modrinth":"mita-dweller"},{"Id":21343,"Name":"","CurseForge":"eeeabs-mobs-death-mode","Modrinth":""},{"Id":21344,"Name":"复活币 (ReviveToken)","CurseForge":"revivetoken","Modrinth":"revivetoken"},{"Id":21345,"Name":"","CurseForge":"real-filing-reborn","Modrinth":"real-filing-reborn-cabinet-based-item-storage"},{"Id":21346,"Name":"","CurseForge":"quivers","Modrinth":""},{"Id":21347,"Name":"","CurseForge":"infused-crystals","Modrinth":"infused-crystals"},{"Id":21348,"Name":"","CurseForge":"mendingremover","Modrinth":"mendingremover"},{"Id":21349,"Name":"","CurseForge":"auto-vanilla","Modrinth":"autovanilla"},{"Id":21350,"Name":"","CurseForge":"underground-villages-stoneholm","Modrinth":"underground-village,-stoneholm"},{"Id":21351,"Name":"","CurseForge":"gep","Modrinth":"gep"},{"Id":21353,"Name":"更多挽具 (More Harnesses)","CurseForge":"more-harnesses","Modrinth":"more-harnesses"},{"Id":21354,"Name":"","CurseForge":"vanilla-aiots","Modrinth":"vanilla-aiots"},{"Id":21355,"Name":"","CurseForge":"nether-villager-merchant","Modrinth":"nether-villager-merchant"},{"Id":21356,"Name":"","CurseForge":"end-villager-trader","Modrinth":"end-villager-trader"},{"Id":21357,"Name":"","CurseForge":"deep-dark-trader","Modrinth":"deep-dark-trader"},{"Id":21358,"Name":"","CurseForge":"random-generator-block","Modrinth":""},{"Id":21359,"Name":"","CurseForge":"devour","Modrinth":""},{"Id":21360,"Name":"","CurseForge":"quantum-storage-reborn","Modrinth":"quantum-storage-reborn"},{"Id":21361,"Name":"","CurseForge":"library-section","Modrinth":"library-section"},{"Id":21362,"Name":"","CurseForge":"move-subtitles","Modrinth":"move-subtitles"},{"Id":21363,"Name":"","CurseForge":"","Modrinth":"modrenf3"},{"Id":21364,"Name":"","CurseForge":"modern-inline","Modrinth":"modern-inline"},{"Id":21365,"Name":"","CurseForge":"culler","Modrinth":"culler"},{"Id":21366,"Name":"","CurseForge":"","Modrinth":"playernoticeboard"},{"Id":21367,"Name":"","CurseForge":"extendedae-plus","Modrinth":"extendedae-plus"},{"Id":21368,"Name":"","CurseForge":"","Modrinth":"ae2uel-extra"},{"Id":21370,"Name":"","CurseForge":"gems-realm","Modrinth":"gems-realm"},{"Id":21371,"Name":"箭矢回收修复 (ArrowCollect)","CurseForge":"arrowcollect","Modrinth":"arrowcollect"},{"Id":21372,"Name":"","CurseForge":"","Modrinth":"primitivemobsrevival"},{"Id":21373,"Name":"","CurseForge":"steampunk-clocktower","Modrinth":""},{"Id":21374,"Name":"猪灵前哨站 (Piglin Outpost)","CurseForge":"piglin-outpost","Modrinth":""},{"Id":21375,"Name":"","CurseForge":"nolando-structurez","Modrinth":""},{"Id":21376,"Name":"","CurseForge":"skinlayers3d-customskinloader-bridge","Modrinth":"skinlayers3d-customskinloader-bridge"},{"Id":21377,"Name":"","CurseForge":"puffish-biome-dither","Modrinth":"biome-dither"},{"Id":21378,"Name":"","CurseForge":"voracious","Modrinth":""},{"Id":21379,"Name":"","CurseForge":"","Modrinth":"minecraft-dungeons-weaponry"},{"Id":21380,"Name":"","CurseForge":"gentech-block-generation","Modrinth":"gentech-block-generation"},{"Id":21381,"Name":"","CurseForge":"byzantine-styles-pack-for-minecolonies","Modrinth":""},{"Id":21383,"Name":"","CurseForge":"aquaculture-tinkers","Modrinth":"aquaculture-tinkers"},{"Id":21384,"Name":"","CurseForge":"cups","Modrinth":""},{"Id":21385,"Name":"仿碧蓝档案光环 (Blue Archive Halo)","CurseForge":"blue-archive-halo","Modrinth":"blue-archive-halo"},{"Id":21386,"Name":"存档时光机 (MineBackup)","CurseForge":"minebackup","Modrinth":""},{"Id":21386,"Name":"存档时光机 (MineBackup) - 推荐的方式","CurseForge":"","Modrinth":"minebackup"},{"Id":21387,"Name":"生态补给站 (Ecological Replenishment Station)","CurseForge":"ecological-replenishment-station","Modrinth":"ecological-replenishment-station"},{"Id":21388,"Name":"进阶仇恨 (Advanced Hostility)","CurseForge":"","Modrinth":"advancedhostility"},{"Id":21389,"Name":"","CurseForge":"aggro-fix","Modrinth":"aggro-fix"},{"Id":21390,"Name":"箱子里的小饰品 (Chest Curio Items)","CurseForge":"chest-curio-items","Modrinth":"chest-curio-items"},{"Id":21391,"Name":"Galaxy的奇思妙想 (Galaxy's Imagination)","CurseForge":"galaxysimagination","Modrinth":""},{"Id":21392,"Name":"懒人厨房·重制 (Delightful Cuisine for Woodheads Reforged)","CurseForge":"delightful-cuisine-for-woodheads-reforged","Modrinth":""},{"Id":21393,"Name":"","CurseForge":"","Modrinth":"loans-cinema"},{"Id":21394,"Name":"","CurseForge":"banana-baking","Modrinth":"banana-baking"},{"Id":21395,"Name":"岩城乐事 (Duacan Delight)","CurseForge":"duacan-delight","Modrinth":""},{"Id":21396,"Name":"拔刀剑:重织 (SlashBlade: Refabricated)","CurseForge":"slashblade-refabricated","Modrinth":"slashblade-refabricated"},{"Id":21397,"Name":"","CurseForge":"ender-dragon-fix","Modrinth":""},{"Id":21399,"Name":"细节盔甲兼容 (Detail Armor Bar Compat)","CurseForge":"detailab-compat","Modrinth":"detailab-compat"},{"Id":21400,"Name":"卡里普索的生物 (Calypso's Mobs)","CurseForge":"calypsos-mobs","Modrinth":"calypsos-mobs"},{"Id":21401,"Name":"泥土工艺 - 非官方版 (DirtCraft - Unofficial)","CurseForge":"dirtcraft-unoffical","Modrinth":""},{"Id":21402,"Name":"材料 (Materials)","CurseForge":"specialmaterials","Modrinth":"specialmaterials"},{"Id":21403,"Name":"仅传送Next (OnlyTPNext)","CurseForge":"","Modrinth":"onlytpnext"},{"Id":21404,"Name":"简单生存指令TP (EasySurvivalCommand)","CurseForge":"easy-survival-command","Modrinth":""},{"Id":21405,"Name":"梦隐的幻想乡 (Gensokyo Reverie of Lost Dream)","CurseForge":"","Modrinth":"gensokyo-reverie-of-lost-dreams"},{"Id":21406,"Name":"","CurseForge":"reliquified-ars-nouveau","Modrinth":"reliquified-ars-nouveau"},{"Id":21407,"Name":"","CurseForge":"requesting-interface","Modrinth":"irequesting"},{"Id":21408,"Name":"","CurseForge":"applied-experienced","Modrinth":"applied-experienced"},{"Id":21409,"Name":"","CurseForge":"plain-cars-pack","Modrinth":"plaincars"},{"Id":21410,"Name":"","CurseForge":"gt-craft-iv-mts","Modrinth":"gt-craft-ivmts"},{"Id":21411,"Name":"","CurseForge":"ad-astra-more-structures","Modrinth":"ad-astra-more-structures"},{"Id":21412,"Name":"完美闪避 (Perfect Dodge)","CurseForge":"perfect-dodge","Modrinth":""},{"Id":21413,"Name":"简易滑翔翼 (Simple Paraglider)","CurseForge":"simple-paraglider","Modrinth":"simple-paraglider"},{"Id":21414,"Name":"","CurseForge":"human-gunner","Modrinth":""},{"Id":21415,"Name":"TaCZ 爆头机制扩展 (TaCZ Headshot Extension)","CurseForge":"tacz-headshot-extension","Modrinth":""},{"Id":21416,"Name":"","CurseForge":"dream-in-a-manhunt","Modrinth":""},{"Id":21419,"Name":"","CurseForge":"","Modrinth":"thesunrise"},{"Id":21420,"Name":"更多异兽 (More Critters)","CurseForge":"more-critters","Modrinth":"more-critters"},{"Id":21421,"Name":"","CurseForge":"oelib","Modrinth":"oelib"},{"Id":21422,"Name":"物品黑名单修复版 (ItemBlackListFIXED)","CurseForge":"itemblacklistfixed","Modrinth":""},{"Id":21424,"Name":"","CurseForge":"voxelmap-patch","Modrinth":""},{"Id":21425,"Name":"","CurseForge":"xaero-train-map","Modrinth":"xaero-train-map"},{"Id":21426,"Name":"","CurseForge":"traversable-leaves-neoforge","Modrinth":""},{"Id":21426,"Name":"","CurseForge":"traversable-leaves","Modrinth":""},{"Id":21426,"Name":"","CurseForge":"traversable-leaves-fabric","Modrinth":""},{"Id":21427,"Name":"","CurseForge":"","Modrinth":"etched-extension"},{"Id":21428,"Name":"VS Addition Continue - 更新慢","CurseForge":"vs-addition-continue","Modrinth":""},{"Id":21428,"Name":"VS Addition Continue - 更新较快","CurseForge":"","Modrinth":"vs-addition-continue"},{"Id":21430,"Name":"","CurseForge":"clavis","Modrinth":"clavis"},{"Id":21431,"Name":"","CurseForge":"luckyblock-lib","Modrinth":""},{"Id":21433,"Name":"禁用资源包兼容性检查 (NoPackCompatCheck)","CurseForge":"nopackcompatcheck","Modrinth":"nopackcompatcheck"},{"Id":21436,"Name":"蟹农乐事:渔冶锭整 (Crabber's Delight Expand)","CurseForge":"crabbers-delight-expand","Modrinth":""},{"Id":21438,"Name":"","CurseForge":"offlinegrowth","Modrinth":"offlinegrowth"},{"Id":21440,"Name":"","CurseForge":"fauna-and-orchestra","Modrinth":"faunaandorchestra"},{"Id":21443,"Name":"往来:旧情复燃 (Contact: LoveRekindled)","CurseForge":"contact-love-rekindled","Modrinth":"contact-loverekindled"},{"Id":21444,"Name":"","CurseForge":"autosow-by-neni-o","Modrinth":"autosow-by-neni-o"},{"Id":21445,"Name":"猪灵加入了WTO (Piglin Join WTO)","CurseForge":"piglin-join-wto","Modrinth":""},{"Id":21446,"Name":"键位检测器 (Keyboard Detector)","CurseForge":"keyboard-detector","Modrinth":"keyboard-detector"},{"Id":21447,"Name":"药水药丸 (Potion Pill)","CurseForge":"potion-pill","Modrinth":""},{"Id":21448,"Name":"Inhrtbury的金币 (Inhrtbury's Coin)","CurseForge":"inhrtburys-coin","Modrinth":""},{"Id":21449,"Name":"","CurseForge":"","Modrinth":"firesight"},{"Id":21450,"Name":"","CurseForge":"epic-villages","Modrinth":""},{"Id":21451,"Name":"","CurseForge":"","Modrinth":"brainfk-in-minecraft"},{"Id":21452,"Name":"","CurseForge":"","Modrinth":"aviator-dreams-reloaded"},{"Id":21453,"Name":"","CurseForge":"russian-dream","Modrinth":""},{"Id":21455,"Name":"","CurseForge":"cbc-ballistics","Modrinth":""},{"Id":21456,"Name":"","CurseForge":"create-programmable-pals","Modrinth":""},{"Id":21457,"Name":"","CurseForge":"create-ore-excavation-plus","Modrinth":"create-ore-excavation-plus"},{"Id":21458,"Name":"机械动力:跑步机 (Create:Treadmill)","CurseForge":"","Modrinth":"createtreadmill"},{"Id":21459,"Name":"","CurseForge":"create-more-package-couriers","Modrinth":"create-more-package-couriers"},{"Id":21460,"Name":"","CurseForge":"regius","Modrinth":"regius"},{"Id":21464,"Name":"别让我红温 (Dont Make Me See Red)","CurseForge":"dont-make-me-see-red","Modrinth":""},{"Id":21466,"Name":"佩伊洛的镰刀 (Peyro's Scythe)","CurseForge":"peyros-scythe","Modrinth":""},{"Id":21468,"Name":"占星术 (ReadStar)","CurseForge":"","Modrinth":"readstar"},{"Id":21469,"Name":"","CurseForge":"illage-and-legend","Modrinth":""},{"Id":21470,"Name":"","CurseForge":"giant-dead-oak-tree","Modrinth":"giant-dead-oak-tree"},{"Id":21472,"Name":"","CurseForge":"ascension-nether","Modrinth":""},{"Id":21473,"Name":"","CurseForge":"ascension-end","Modrinth":""},{"Id":21474,"Name":"","CurseForge":"","Modrinth":"echovoids"},{"Id":21475,"Name":"","CurseForge":"soulful-nether","Modrinth":"soulfulnether"},{"Id":21476,"Name":"","CurseForge":"zefs-nether","Modrinth":""},{"Id":21477,"Name":"","CurseForge":"the-end-update-concept","Modrinth":""},{"Id":21478,"Name":"","CurseForge":"","Modrinth":"ending-biomes"},{"Id":21479,"Name":"","CurseForge":"charred-horizons","Modrinth":"charred-horizons"},{"Id":21480,"Name":"","CurseForge":"","Modrinth":"nether-update-expanded"},{"Id":21481,"Name":"","CurseForge":"i-see-my-armored-hand","Modrinth":"ismah"},{"Id":21482,"Name":"自然生成凋灵 (Naturally Spawning Withers)","CurseForge":"naturally-spawning-withers","Modrinth":"naturally-spawning-withers"},{"Id":21483,"Name":"","CurseForge":"wither-infection","Modrinth":"wither-infection"},{"Id":21484,"Name":"","CurseForge":"creeper-infection","Modrinth":"creeper-infection"},{"Id":21485,"Name":"","CurseForge":"long-books","Modrinth":"long-books"},{"Id":21486,"Name":"","CurseForge":"ftb-chunks-recoloured","Modrinth":""},{"Id":21487,"Name":"","CurseForge":"jei-hover-search","Modrinth":"jei-hover-search"},{"Id":21488,"Name":"","CurseForge":"rollable","Modrinth":"rollable"},{"Id":21489,"Name":"","CurseForge":"invisibility-aggro-fix","Modrinth":"invisibility-aggro-fix"},{"Id":21490,"Name":"","CurseForge":"quick-skin","Modrinth":"quick-skin"},{"Id":21491,"Name":"","CurseForge":"countryball","Modrinth":"minecraft-countryball-mod"},{"Id":21492,"Name":"","CurseForge":"tinkers-construct-emergence","Modrinth":""},{"Id":21493,"Name":"","CurseForge":"pointblank-jelly","Modrinth":"pb-jelly"},{"Id":21494,"Name":"","CurseForge":"terrabnormals","Modrinth":""},{"Id":21495,"Name":"","CurseForge":"extra-mining-world","Modrinth":""},{"Id":21496,"Name":"","CurseForge":"herobrine011840s-nether-biomes","Modrinth":""},{"Id":21497,"Name":"","CurseForge":"my-end","Modrinth":""},{"Id":21498,"Name":"","CurseForge":"update-ender-a-reimagine-of-the-end","Modrinth":""},{"Id":21499,"Name":"","CurseForge":"","Modrinth":"air-puffers"},{"Id":21500,"Name":"同伴! (Companions!)","CurseForge":"companions-mod","Modrinth":"companions-mod"},{"Id":21501,"Name":"AI聊天 (AI Chat)","CurseForge":"","Modrinth":"ai-chat"},{"Id":21502,"Name":"神化属性拓展 (Apothic Attributes Extension)","CurseForge":"apothic-attributes-extension","Modrinth":""},{"Id":21503,"Name":"","CurseForge":"databank","Modrinth":"databank"},{"Id":21504,"Name":"","CurseForge":"randomtp","Modrinth":"randomtp"},{"Id":21506,"Name":"","CurseForge":"instantunify-reforged","Modrinth":""},{"Id":21507,"Name":"","CurseForge":"","Modrinth":"blockfire"},{"Id":21508,"Name":"","CurseForge":"morphoverlay","Modrinth":""},{"Id":21509,"Name":"","CurseForge":"display-prior-work-count","Modrinth":""},{"Id":21510,"Name":"","CurseForge":"extended-scripts","Modrinth":""},{"Id":21511,"Name":"自然灵气:简化 (Nature's Aura Simplified)","CurseForge":"natures-aura-simplified","Modrinth":""},{"Id":21512,"Name":"想设就设 (Bed Spawn Backport)","CurseForge":"bed-spawn-backport","Modrinth":"bed-spawn-backport"},{"Id":21513,"Name":"药水效果显示 (Visible Effect)","CurseForge":"visible-effect","Modrinth":"visible-effect"},{"Id":21514,"Name":"设置管理器 (Config Manager)","CurseForge":"","Modrinth":"config-manager"},{"Id":21515,"Name":"","CurseForge":"simple-datapacks","Modrinth":"simple-datapacks"},{"Id":21516,"Name":"","CurseForge":"shulkerrrt","Modrinth":"srrt"},{"Id":21517,"Name":"","CurseForge":"custom-icon-sets","Modrinth":""},{"Id":21518,"Name":"","CurseForge":"gregic-probe-ceu","Modrinth":""},{"Id":21519,"Name":"","CurseForge":"","Modrinth":"antilootgame"},{"Id":21520,"Name":"石墨烯性能优化 (Graphene)","CurseForge":"graphene","Modrinth":"graphene"},{"Id":21522,"Name":"","CurseForge":"talents-fabric","Modrinth":"talents"},{"Id":21523,"Name":"","CurseForge":"","Modrinth":"combat-maids"},{"Id":21524,"Name":"","CurseForge":"voxelfurni","Modrinth":""},{"Id":21525,"Name":"","CurseForge":"voxels","Modrinth":""},{"Id":21526,"Name":"","CurseForge":"voxel-pairing","Modrinth":""},{"Id":21527,"Name":"","CurseForge":"no-stuck-healing","Modrinth":""},{"Id":21528,"Name":"","CurseForge":"pixelcompress","Modrinth":""},{"Id":21529,"Name":"","CurseForge":"matrinoxes-village-names","Modrinth":""},{"Id":21530,"Name":"","CurseForge":"redlink-wireless-redstone-control","Modrinth":"redlink-wireless-redstone-control"},{"Id":21531,"Name":"雫拔刀剑 (ShizukuBlade)","CurseForge":"","Modrinth":"nekohashizuku-blade"},{"Id":21532,"Name":"","CurseForge":"xtones-reworked","Modrinth":"xtones-reworked"},{"Id":21533,"Name":"","CurseForge":"","Modrinth":"tinkers-enchanting"},{"Id":21534,"Name":"","CurseForge":"new-woods","Modrinth":""},{"Id":21535,"Name":"","CurseForge":"ennuis-bigger-inventories","Modrinth":"ennuis_bigger_inventories"},{"Id":21536,"Name":"生活调味料:探索 (Spice of Life: Discovery)","CurseForge":"","Modrinth":"soldisco"},{"Id":21537,"Name":"","CurseForge":"missing-cookery","Modrinth":""},{"Id":21538,"Name":"","CurseForge":"","Modrinth":"farmers-tea-resteeped"},{"Id":21539,"Name":"","CurseForge":"peruvians-delight","Modrinth":"peruvians-delight"},{"Id":21540,"Name":"","CurseForge":"productivefarming","Modrinth":""},{"Id":21541,"Name":"鸡尾酒乐事 (Cocktails Delight)","CurseForge":"brewin-compat-delight","Modrinth":"cocktails-delight"},{"Id":21542,"Name":"","CurseForge":"kubejs-tweaks","Modrinth":""},{"Id":21543,"Name":"","CurseForge":"krypton-fnp","Modrinth":"krypton-fnp"},{"Id":21544,"Name":"","CurseForge":"neoauth","Modrinth":"neoauth"},{"Id":21545,"Name":"","CurseForge":"crystalix","Modrinth":""},{"Id":21546,"Name":"","CurseForge":"chisel-chipped-integration","Modrinth":""},{"Id":21547,"Name":"","CurseForge":"refined-types","Modrinth":"refined-types"},{"Id":21548,"Name":"神秘自动化 (Mystical Automation)","CurseForge":"mystical-automation","Modrinth":"mystical-automation"},{"Id":21549,"Name":"","CurseForge":"utility-vest","Modrinth":""},{"Id":21550,"Name":"","CurseForge":"little-big-redstone","Modrinth":"little-big-redstone"},{"Id":21551,"Name":"","CurseForge":"","Modrinth":"stone-is-stone"},{"Id":21552,"Name":"","CurseForge":"almost-unified-ie","Modrinth":""},{"Id":21553,"Name":"","CurseForge":"","Modrinth":"trident-are-weapon"},{"Id":21554,"Name":"","CurseForge":"collect-seeds","Modrinth":""},{"Id":21555,"Name":"","CurseForge":"create-delicious-teas","Modrinth":"create-delicious-teas"},{"Id":21556,"Name":"","CurseForge":"","Modrinth":"showtime"},{"Id":21557,"Name":"","CurseForge":"","Modrinth":"windup-music-box"},{"Id":21558,"Name":"","CurseForge":"babylonian-empire-origins","Modrinth":""},{"Id":21559,"Name":"","CurseForge":"mc-mods-the-arcanist-gear","Modrinth":""},{"Id":21560,"Name":"","CurseForge":"epitaphs","Modrinth":""},{"Id":21561,"Name":"生物学家 (Biologist)","CurseForge":"biologist","Modrinth":""},{"Id":21562,"Name":"流浪猎人2 (Wandering Trapper2)","CurseForge":"wandering-trapper2","Modrinth":""},{"Id":21563,"Name":"滑雪 (Skiing2)","CurseForge":"skiing2","Modrinth":""},{"Id":21564,"Name":"","CurseForge":"backported-animal-variants","Modrinth":"backported-animal-variants"},{"Id":21565,"Name":"","CurseForge":"explore-ruins-aether","Modrinth":"explore-ruins-aether"},{"Id":21566,"Name":"","CurseForge":"warpdrive-extras","Modrinth":"warpdrive-extras"},{"Id":21567,"Name":"","CurseForge":"","Modrinth":"chest-transport-reloaded"},{"Id":21568,"Name":"","CurseForge":"lrs-blockollection","Modrinth":""},{"Id":21569,"Name":"","CurseForge":"","Modrinth":"the-what-tools"},{"Id":21570,"Name":"","CurseForge":"tacz-chaoscrafts-apocalyptic-arsernal","Modrinth":""},{"Id":21571,"Name":"细节盔甲条:重装 (Detail Armor Bar Re-equepment)","CurseForge":"detail-armor-bar-re-equipment","Modrinth":"detail-armor-bar-re-equipment"},{"Id":21572,"Name":"","CurseForge":"justenoughanvilcraft","Modrinth":"jeac"},{"Id":21573,"Name":"船飞行 (Boat Fly)","CurseForge":"boat-fly","Modrinth":""},{"Id":21574,"Name":"","CurseForge":"finite-water-infinite-lava","Modrinth":""},{"Id":21575,"Name":"","CurseForge":"transfer-labels","Modrinth":"transfer-labels"},{"Id":21576,"Name":"","CurseForge":"growth-accelerator-tiers","Modrinth":""},{"Id":21577,"Name":"","CurseForge":"astages-curios","Modrinth":""},{"Id":21578,"Name":"","CurseForge":"astages-pufferfishs-skills","Modrinth":""},{"Id":21579,"Name":"","CurseForge":"sound-physics-perfected","Modrinth":"sound-physics-perfected"},{"Id":21580,"Name":"","CurseForge":"the-sound-of-rain","Modrinth":"the-sound-of-rain"},{"Id":21582,"Name":"","CurseForge":"greekfantasy-unofficial","Modrinth":""},{"Id":21583,"Name":"","CurseForge":"musketeer-illager-port","Modrinth":""},{"Id":21584,"Name":"","CurseForge":"cataclysm-apotheosis-addon-neo","Modrinth":""},{"Id":21585,"Name":"","CurseForge":"iron-apples-iron-series","Modrinth":"iron-apples-iron-series"},{"Id":21586,"Name":"","CurseForge":"","Modrinth":"mangos-compat-delight"},{"Id":21587,"Name":"","CurseForge":"tinkers-oreganized","Modrinth":"tinkers-oreganized"},{"Id":21588,"Name":"","CurseForge":"simple-basketballs","Modrinth":"simple-basketball"},{"Id":21589,"Name":"","CurseForge":"decorative-blocks-repurposed","Modrinth":""},{"Id":21590,"Name":"","CurseForge":"create-mechanical-botany","Modrinth":"create-mechanical-botany"},{"Id":21591,"Name":"","CurseForge":"","Modrinth":"insecticide"},{"Id":21593,"Name":"焰眼掉装 (Naked Gauntlet)","CurseForge":"naked-gauntlet","Modrinth":""},{"Id":21594,"Name":"","CurseForge":"only-one-item","Modrinth":"only-one-item"},{"Id":21596,"Name":"弓箭瞄准 (AimBow)","CurseForge":"aimbow-bow-hit-indicator","Modrinth":""},{"Id":21598,"Name":"","CurseForge":"","Modrinth":"tt20forged"},{"Id":21599,"Name":"","CurseForge":"","Modrinth":"worldfarview"},{"Id":21600,"Name":"","CurseForge":"fixmcstats","Modrinth":"fixmcstats"},{"Id":21601,"Name":"还魂符 (Soul Return Scroll)","CurseForge":"soul-return-scroll","Modrinth":""},{"Id":21602,"Name":"拔刀剑:丛雨丸 (Slashblade Murasame)","CurseForge":"slashblade-murasame","Modrinth":"slashblade-murasame"},{"Id":21604,"Name":"地牢工具 2 (Dungeon Tools 2)","CurseForge":"dungeon-tools-2","Modrinth":""},{"Id":21605,"Name":"","CurseForge":"gregtech-beyond-coremod","Modrinth":""},{"Id":21606,"Name":"","CurseForge":"create-compatible-storage","Modrinth":"create-compatible-storage"},{"Id":21607,"Name":"","CurseForge":"antique-rockets","Modrinth":"antique-rockets"},{"Id":21608,"Name":"","CurseForge":"meta-changer","Modrinth":""},{"Id":21609,"Name":"","CurseForge":"chromatic-enchantments","Modrinth":"chromatic-enchantments"},{"Id":21612,"Name":"群峦传说:细节盔甲条 (TFC Detail Armor Bar)","CurseForge":"tfc-detail-armor-bar","Modrinth":"tfc-detail-armor-bar"},{"Id":21614,"Name":"","CurseForge":"tinkers-compatibility","Modrinth":"tinkers-compatibility"},{"Id":21615,"Name":"","CurseForge":"fabric-trade","Modrinth":"fabric-trade"},{"Id":21616,"Name":"巨型下界树 (Giant Nether Tree)","CurseForge":"giant-nether-tree","Modrinth":"giant-nether-tree"},{"Id":21617,"Name":"","CurseForge":"gamerule-doblockupdates","Modrinth":""},{"Id":21618,"Name":"","CurseForge":"terralith-restoned","Modrinth":""},{"Id":21619,"Name":"","CurseForge":"guitas-woodworks","Modrinth":"guitas-woodworks"},{"Id":21620,"Name":"机械动力:交错电网 (Create: Power Grid)","CurseForge":"power-grid","Modrinth":"power-grid"},{"Id":21622,"Name":"","CurseForge":"audaki-cart-engine","Modrinth":"audaki-cart-engine"},{"Id":21624,"Name":"信标强制加载 (Force Beacon Load)","CurseForge":"","Modrinth":"force-beacon-load"},{"Id":21625,"Name":"","CurseForge":"humansmod","Modrinth":"humans-mod"},{"Id":21626,"Name":"","CurseForge":"aquaacrobaticslegacy","Modrinth":""},{"Id":21627,"Name":"","CurseForge":"","Modrinth":"modmenu-btw"},{"Id":21628,"Name":"","CurseForge":"armored-arms","Modrinth":"armored-arms"},{"Id":21629,"Name":"","CurseForge":"armored-golems","Modrinth":""},{"Id":21630,"Name":"","CurseForge":"disable-fog","Modrinth":"disable-fog"},{"Id":21631,"Name":"加速渲染:重织 (AcceleratedRendering-reFabricated)","CurseForge":"accrelatedrendering-refabricated","Modrinth":"accrelatedrendering-refabricated"},{"Id":21632,"Name":"我的菜单 重制 (MineMenuReforged)","CurseForge":"minemenureforged","Modrinth":""},{"Id":21633,"Name":"函数命令去重器 (Function Command Deduplicator)","CurseForge":"function-command-deduplicator","Modrinth":"function-command-deduplicator"},{"Id":21634,"Name":"","CurseForge":"","Modrinth":"hide-armour"},{"Id":21635,"Name":"FTB任务冻结修复 (FTB Quests Freeze Fix)","CurseForge":"ftb-quests-freeze-fix","Modrinth":"ftb-quests-freeze-fix"},{"Id":21636,"Name":"","CurseForge":"playeranimatorapi","Modrinth":"playeranimatorapi"},{"Id":21637,"Name":"","CurseForge":"strictly-origins","Modrinth":"strictly-origins"},{"Id":21638,"Name":"","CurseForge":"born-in-configuration","Modrinth":"born-in-configuration"},{"Id":21639,"Name":"","CurseForge":"eyes-of-ice-and-fire","Modrinth":"eyes-of-ice-and-fire"},{"Id":21640,"Name":"","CurseForge":"better-hp","Modrinth":"betterhp"},{"Id":21641,"Name":"","CurseForge":"jsonate","Modrinth":""},{"Id":21642,"Name":"残血了就给我乖乖去死啊! (PlsGoDie)","CurseForge":"plsgodie","Modrinth":""},{"Id":21643,"Name":"Tetra帕秋莉手册 (Tetra Patchouli Book)","CurseForge":"tetra-patchouli-book","Modrinth":""},{"Id":21645,"Name":"","CurseForge":"configurable-death","Modrinth":"configurable-death"},{"Id":21646,"Name":"","CurseForge":"invenaudio","Modrinth":"invenaudio"},{"Id":21647,"Name":"","CurseForge":"client-curse-of-binding-prevention","Modrinth":""},{"Id":21648,"Name":"","CurseForge":"simpleclockmod","Modrinth":""},{"Id":21649,"Name":"更好的鞘翅渲染 (Better Elytra Render)","CurseForge":"","Modrinth":"better-elytra-render"},{"Id":21650,"Name":"","CurseForge":"audio-improvements","Modrinth":"audio-improvements"},{"Id":21654,"Name":"简易农作物收割 (Simple Crop Harvester)","CurseForge":"simple-crop-harvester","Modrinth":""},{"Id":21655,"Name":"暗影诅咒·重生 (Darkness Curse • Reborn)","CurseForge":"darkness-curse","Modrinth":""},{"Id":21656,"Name":"滚轮命令 (Scroll Wheel Command)","CurseForge":"scroll-wheel-command","Modrinth":"scroll-whell-command"},{"Id":21657,"Name":"","CurseForge":"infoplus","Modrinth":"infoplus"},{"Id":21658,"Name":"","CurseForge":"","Modrinth":"bin-slot"},{"Id":21659,"Name":"","CurseForge":"cobblemon-utils","Modrinth":""},{"Id":21660,"Name":"","CurseForge":"flamingo-mania","Modrinth":""},{"Id":21661,"Name":"生活调味料:胡萝贝版 (Spice of Life: Fabric Flavor)","CurseForge":"","Modrinth":"sol2f"},{"Id":21662,"Name":"濒危植物 (Endangered Plants)","CurseForge":"endangered-plants","Modrinth":""},{"Id":21664,"Name":"更好的西瓜 (Better Melon)","CurseForge":"better-melon","Modrinth":"better-melon"},{"Id":21665,"Name":"更好的嗅探 (Better Snifferty)","CurseForge":"better-snifferty","Modrinth":"better-snifferty"},{"Id":21666,"Name":"鲍勃之源石梦想 (BOB's Originium Dream)","CurseForge":"","Modrinth":"bobs-originium-dream"},{"Id":21668,"Name":"","CurseForge":"minibloom","Modrinth":""},{"Id":21669,"Name":"","CurseForge":"teatime","Modrinth":"tea_time"},{"Id":21670,"Name":"","CurseForge":"garden-trails","Modrinth":"garden-trails"},{"Id":21672,"Name":"GD656击杀图标 (GD656Killicon) - 此的正式版页","CurseForge":"gd656killicon","Modrinth":""},{"Id":21672,"Name":"GD656击杀图标 (GD656Killicon) - 此的最及时的文件页","CurseForge":"","Modrinth":"gd656killicon"},{"Id":21673,"Name":"掉落物清洁者 (ItemCleaner)","CurseForge":"itemcleaner","Modrinth":"itemcleaner"},{"Id":21674,"Name":"","CurseForge":"","Modrinth":"tinkers-dolabrae"},{"Id":21675,"Name":"","CurseForge":"metallic-tinkering","Modrinth":"metallic-tinkering"},{"Id":21676,"Name":"","CurseForge":"kubejs-draconic-evolution","Modrinth":""},{"Id":21677,"Name":"","CurseForge":"kubejs-mystical-agriculture","Modrinth":"kubejs-mystical-agriculture"},{"Id":21678,"Name":"","CurseForge":"modern-beta-forge-islands","Modrinth":""},{"Id":21679,"Name":"","CurseForge":"modern-beta-forge-release-plus","Modrinth":""},{"Id":21680,"Name":"","CurseForge":"pomkots-world","Modrinth":"pomkots-world"},{"Id":21681,"Name":"怪物猎人·世界:黑龙盔甲 (Black Dragon Armor)","CurseForge":"black-dragon-armor","Modrinth":""},{"Id":21682,"Name":"鬼灭之刃 重制 (Kimetsu No Yaiba Reload)","CurseForge":"kimetsu-no-yaiba-reload","Modrinth":""},{"Id":21683,"Name":"同调造物·所罗门 (Fabrica Resonantis: Shelomoh)","CurseForge":"resonantisshelomoh","Modrinth":""},{"Id":21684,"Name":"","CurseForge":"withering-away-reborn","Modrinth":""},{"Id":21685,"Name":"村民拓展:地头蛇 (Villager Extend - LocalBully)","CurseForge":"villager-extend-localbully","Modrinth":""},{"Id":21686,"Name":"","CurseForge":"dancing-villagers","Modrinth":""},{"Id":21687,"Name":"","CurseForge":"natures-of-witchery","Modrinth":""},{"Id":21688,"Name":"","CurseForge":"tct-flashlight","Modrinth":"tctflashlight"},{"Id":21689,"Name":"","CurseForge":"mace-attack-assistance","Modrinth":""},{"Id":21690,"Name":"","CurseForge":"changed-doomsday","Modrinth":""},{"Id":21691,"Name":"","CurseForge":"changed-ice","Modrinth":""},{"Id":21692,"Name":"","CurseForge":"tile-entity-breaker","Modrinth":""},{"Id":21693,"Name":"","CurseForge":"frozen-ocean","Modrinth":""},{"Id":21694,"Name":"","CurseForge":"portable-pet-sphere","Modrinth":"portable-pet-sphere"},{"Id":21695,"Name":"","CurseForge":"","Modrinth":"thaumicthermae"},{"Id":21696,"Name":"","CurseForge":"bbl-routers","Modrinth":"bbl-routers"},{"Id":21697,"Name":"","CurseForge":"bed-sapwnpoint","Modrinth":""},{"Id":21698,"Name":"","CurseForge":"wans-storage-shelves","Modrinth":"storage-shelves"},{"Id":21699,"Name":"酒狐的魔法书 (Winefox's Spellbooks)","CurseForge":"winefoxs-spellbooks","Modrinth":"winefoxs_spellbooks"},{"Id":21700,"Name":"","CurseForge":"better-allay","Modrinth":"better-allay"},{"Id":21701,"Name":"","CurseForge":"codechicken-lib-cre","Modrinth":"codechicken-lib-cre"},{"Id":21702,"Name":"生活调味料:胡萝卜版 - 死吃修复 (Solcarrot Fix)","CurseForge":"solcarrot-fix","Modrinth":""},{"Id":21704,"Name":"","CurseForge":"nanexs-cherry-biome","Modrinth":""},{"Id":21705,"Name":"","CurseForge":"digital-botania","Modrinth":""},{"Id":21707,"Name":"螃蟹的城建 (Crab city facilities)","CurseForge":"crab-city-facilities","Modrinth":"crab-city-facilities"},{"Id":21708,"Name":"","CurseForge":"bbl-casting","Modrinth":"casting"},{"Id":21709,"Name":"","CurseForge":"bbl-smart-crafting","Modrinth":""},{"Id":21710,"Name":"","CurseForge":"foolproof","Modrinth":"foolproof"},{"Id":21711,"Name":"真实地形生成:社区版 (Realistic Terrain Generation Community)","CurseForge":"realistic-terrain-generation-community","Modrinth":""},{"Id":21712,"Name":"","CurseForge":"more-outlines","Modrinth":"more-outlines"},{"Id":21713,"Name":"移除幻翼 (RemovePhantoms)","CurseForge":"phantomtweaks","Modrinth":"removephantoms"},{"Id":21714,"Name":"简易物品黑名单 (Simple Item Blacklist)","CurseForge":"simple-item-blacklist","Modrinth":""},{"Id":21715,"Name":"","CurseForge":"titlescreen-cleaner","Modrinth":""},{"Id":21717,"Name":"终极骷髅 (Ultimate Skeletons And Titans)","CurseForge":"ultimate-skeletons-and-titans","Modrinth":""},{"Id":21718,"Name":"砧板传承 (ManaitaPlus Legacy)","CurseForge":"manaitaplus-legacy","Modrinth":"manaitaplus-legacy"},{"Id":21720,"Name":"方块攻势 (BlockOffensive)","CurseForge":"blockoffensive","Modrinth":"blockoffensive"},{"Id":21722,"Name":"抱抱我!Forge 版 (Hugme Forge Edition)","CurseForge":"hugme-forge-edition","Modrinth":""},{"Id":21726,"Name":"工具附魔等级升级 (Tool Update)","CurseForge":"tool-upadate","Modrinth":"tool-update"},{"Id":21727,"Name":"更好的格雷科技与应用能源 (Better GregTech And Applied Energistics)","CurseForge":"","Modrinth":"better-gregtech-and-applied-energistics"},{"Id":21729,"Name":"挚爱 — 魂樱工匠补充 (myLove(sakuratnker expand))","CurseForge":"tprt-sakuratinker-expand","Modrinth":""},{"Id":21730,"Name":"更好的海龟壳 (Better Turtle Scute)","CurseForge":"better-turtle-scute","Modrinth":"better-turtle-scute"},{"Id":21731,"Name":"无限水源方块 (Infinite Water Block)","CurseForge":"","Modrinth":"infinite-water-block-1.7.10"},{"Id":21732,"Name":"可浮空压力板 (Floatable Pressure Plates)","CurseForge":"floatable-pressure-plates","Modrinth":"floatable-pressure-plates"},{"Id":21735,"Name":"锈 (Rust)","CurseForge":"more-rust","Modrinth":"rust"},{"Id":21736,"Name":"严寒插花术 (Cryofloric Arts)","CurseForge":"cryofloric-arts","Modrinth":"cryofloric-arts"},{"Id":21737,"Name":"TaCZ:重织 (Timeless and Classics Zero: Refabricated)","CurseForge":"tacz-refabricated","Modrinth":"tacz-refabricated"},{"Id":21739,"Name":"魔女的扫帚:重制版 (Ashen Witch Broom)","CurseForge":"ashen-witch-broom","Modrinth":"ashen-witch-broom"},{"Id":21740,"Name":"女仆御剑 (Maid Sword Soaring)","CurseForge":"maidswordsoaring","Modrinth":""},{"Id":21741,"Name":"","CurseForge":"lembrary","Modrinth":""},{"Id":21742,"Name":"","CurseForge":"skyboxify","Modrinth":"skyboxify"},{"Id":21743,"Name":"","CurseForge":"create-furnace-lava-adapter","Modrinth":""},{"Id":21744,"Name":"","CurseForge":"create-trainutilities","Modrinth":"create-trainutilities"},{"Id":21745,"Name":"","CurseForge":"","Modrinth":"createtrainscustomportalapi1.20.1"},{"Id":21746,"Name":"机械动力:经验工具 (Create: XPTool)","CurseForge":"create-xptool","Modrinth":"cxptcreatexptool"},{"Id":21747,"Name":"","CurseForge":"graveyard-death-mode","Modrinth":""},{"Id":21748,"Name":"","CurseForge":"beautiful-campfires","Modrinth":"beautiful-campfires"},{"Id":21749,"Name":"","CurseForge":"kimetsu-no-yaiba-final-hope","Modrinth":""},{"Id":21750,"Name":"","CurseForge":"legend-ary","Modrinth":"legend-ary"},{"Id":21751,"Name":"床起速时 / 梦该醒了 (TFC Hourglass)","CurseForge":"tfc-hourglass","Modrinth":"tfc-hourglass"},{"Id":21757,"Name":"","CurseForge":"alans-unified-ui","Modrinth":"alan-unified-ui"},{"Id":21758,"Name":"","CurseForge":"cntiertagger","Modrinth":"cntiertagger"},{"Id":21759,"Name":"物品拾取提示 (Pick Up the Hint)","CurseForge":"pick-up-the-hint","Modrinth":""},{"Id":21760,"Name":"","CurseForge":"jei-tetra","Modrinth":""},{"Id":21761,"Name":"","CurseForge":"eyes-in-the-shadows","Modrinth":"eyes-in-the-shadows"},{"Id":21762,"Name":"","CurseForge":"bandagez","Modrinth":""},{"Id":21763,"Name":"","CurseForge":"kineticdamage","Modrinth":"kineticdamage"},{"Id":21764,"Name":"","CurseForge":"underwater-village","Modrinth":"underwater-village"},{"Id":21765,"Name":"维度寄生者 (Dimension Parasite)","CurseForge":"dimension-parasite","Modrinth":"dimension-parasite"},{"Id":21766,"Name":"","CurseForge":"","Modrinth":"realistic-stamina"},{"Id":21767,"Name":"","CurseForge":"ciscos-content","Modrinth":""},{"Id":21768,"Name":"","CurseForge":"pet-home","Modrinth":"pet_home"},{"Id":21769,"Name":"","CurseForge":"changed-xtras","Modrinth":"changed-xtras"},{"Id":21770,"Name":"Alex 的洞穴:浓缩 (Alex's Caves: Enriched)","CurseForge":"alexs-caves-enriched","Modrinth":"alexs-caves-enriched"},{"Id":21771,"Name":"","CurseForge":"","Modrinth":"fps-to-the-trash"},{"Id":21772,"Name":"","CurseForge":"","Modrinth":"entity-desync-viewer"},{"Id":21773,"Name":"","CurseForge":"re-entity-outliner","Modrinth":""},{"Id":21774,"Name":"","CurseForge":"","Modrinth":"c2mef"},{"Id":21775,"Name":"","CurseForge":"hellspawn-starting-dimension","Modrinth":"hellspawn"},{"Id":21776,"Name":"","CurseForge":"jj-weapon-config","Modrinth":""},{"Id":21777,"Name":"","CurseForge":"bbl-compat","Modrinth":"opolis-compat"},{"Id":21778,"Name":"","CurseForge":"tinkertime-geology","Modrinth":""},{"Id":21779,"Name":"","CurseForge":"spectral-arrow-tweaks","Modrinth":""},{"Id":21780,"Name":"琳琅满弓 / 太多弓 (Too Many Bows)","CurseForge":"too-many-bows","Modrinth":"too-many-bows"},{"Id":21782,"Name":"灵魂绑定 (Soulbind)","CurseForge":"","Modrinth":"soulbinditem"},{"Id":21785,"Name":"吴氏玩偶 (Wudoll)","CurseForge":"","Modrinth":"yJSmJSur"},{"Id":21786,"Name":"女仆伴行 (Maid Beside)","CurseForge":"maid-beside","Modrinth":""},{"Id":21787,"Name":"键 (Sn Key)","CurseForge":"snkey","Modrinth":""},{"Id":21788,"Name":"","CurseForge":"vzlinglib","Modrinth":"vzlinglib"},{"Id":21789,"Name":"告示牌查找器 (Signfinder)","CurseForge":"","Modrinth":"signfinder"},{"Id":21793,"Name":"","CurseForge":"","Modrinth":"colorful-leaves-mod"},{"Id":21794,"Name":"装饰性电脑 (DECORATIVE COMPUTERS)","CurseForge":"decorative-computers","Modrinth":"decorative-computers"},{"Id":21795,"Name":"","CurseForge":"landk-furniture","Modrinth":"landk-furniture"},{"Id":21796,"Name":"","CurseForge":"derfl007s-road-mod","Modrinth":"derfl007s-road-mod-repaved"},{"Id":21797,"Name":"","CurseForge":"medieval-paintings","Modrinth":"medieval-paintings"},{"Id":21798,"Name":"","CurseForge":"glymworld-deepslate","Modrinth":""},{"Id":21800,"Name":"","CurseForge":"roadarchitect","Modrinth":"roadarchitect"},{"Id":21803,"Name":"咸鱼银行 (Lazybank)","CurseForge":"lazybank","Modrinth":"lazybank"},{"Id":21806,"Name":"香草附魔调整 (Vanilla Enchantment Tweaker)","CurseForge":"","Modrinth":"vanilla-enchantment-tweak"},{"Id":21808,"Name":"","CurseForge":"","Modrinth":"projectile-ding"},{"Id":21809,"Name":"","CurseForge":"client-time","Modrinth":"clienttime"},{"Id":21810,"Name":"","CurseForge":"replanter-plus","Modrinth":"replanter-plus"},{"Id":21811,"Name":"","CurseForge":"ae2-retex-port","Modrinth":""},{"Id":21812,"Name":"","CurseForge":"tinker-tantrum","Modrinth":""},{"Id":21813,"Name":"","CurseForge":"amethyst-additions","Modrinth":""},{"Id":21814,"Name":"","CurseForge":"","Modrinth":"tetravsikt"},{"Id":21815,"Name":"高级下界合金升级模板 (Advanced Netherite Upgrade Templates)","CurseForge":"","Modrinth":"advanced-netherite-upgrade-templates"},{"Id":21816,"Name":"","CurseForge":"","Modrinth":"falling-sand"},{"Id":21817,"Name":"","CurseForge":"gregified-energistics","Modrinth":"gregified-energistics"},{"Id":21818,"Name":"","CurseForge":"scalable-storage-ceu","Modrinth":"scalable-storage-ceu"},{"Id":21819,"Name":"","CurseForge":"luminous-blocks","Modrinth":"luminous-blocks"},{"Id":21820,"Name":"","CurseForge":"epic-structures-witch-huts","Modrinth":""},{"Id":21822,"Name":"","CurseForge":"void-block-fabric","Modrinth":"void-block-fabric-1.21.1"},{"Id":21823,"Name":"","CurseForge":"more-stews-mod","Modrinth":""},{"Id":21824,"Name":"","CurseForge":"","Modrinth":"ported"},{"Id":21825,"Name":"","CurseForge":"better-music-player","Modrinth":""},{"Id":21826,"Name":"","CurseForge":"berries-and-mobs","Modrinth":""},{"Id":21827,"Name":"","CurseForge":"applied-soul","Modrinth":""},{"Id":21828,"Name":"封包流体合成 (Packaged Fluid Crafting)","CurseForge":"packagedfluidcrafting","Modrinth":"packagedfluidcrafting"},{"Id":21829,"Name":"封包供应器 (Packaging Provider)","CurseForge":"packagingprovider","Modrinth":"packagingprovider"},{"Id":21830,"Name":"","CurseForge":"mts-iv-recurring-air-war","Modrinth":""},{"Id":21834,"Name":"","CurseForge":"","Modrinth":"explodee"},{"Id":21835,"Name":"迅捷轮盘 (Swift Wheel)","CurseForge":"swift-wheel","Modrinth":"swift-wheel"},{"Id":21836,"Name":"客户端时间与天气控制 (ClientTimeAndWeatherControlMod)","CurseForge":"","Modrinth":"clienttimeandweathercontrolmod"},{"Id":21837,"Name":"","CurseForge":"better-spectral-arrows","Modrinth":""},{"Id":21838,"Name":"","CurseForge":"polymorphic-tom","Modrinth":"polymorphic-toms-simple-storag"},{"Id":21839,"Name":"","CurseForge":"shoulder-surfing-ultimine","Modrinth":"shoulder-surfing-ultimine"},{"Id":21840,"Name":"","CurseForge":"artisan-pottery","Modrinth":"artisan-pottery"},{"Id":21841,"Name":"","CurseForge":"epic-fight-avalon","Modrinth":""},{"Id":21842,"Name":"自定义速通挑战:Zero (NeoSpeed Zero)","CurseForge":"","Modrinth":"neospeedzero"},{"Id":21843,"Name":"","CurseForge":"fluffy-dandelions","Modrinth":"fluffy-dandelions"},{"Id":21844,"Name":"","CurseForge":"nether-update-concept-mod","Modrinth":""},{"Id":21845,"Name":"车万女仆:情绪萌动 (Little Maid: Mood Flutter)","CurseForge":"","Modrinth":"little-maid-mood-flutter"},{"Id":21846,"Name":"","CurseForge":"mobvotes-sniffer","Modrinth":"sniffer"},{"Id":21847,"Name":"AE无线收发器 (AE Wireless Transceiver)","CurseForge":"ae-wireless-transceiver","Modrinth":"ae-wireless-transceiver"},{"Id":21848,"Name":"","CurseForge":"create-train-lights","Modrinth":"create-train-lights"},{"Id":21849,"Name":"","CurseForge":"kabooms","Modrinth":""},{"Id":21850,"Name":"","CurseForge":"zoo-architect","Modrinth":"zoo-architect"},{"Id":21852,"Name":"无验证聊天 (NoVerifyChat / FixChatVerify)","CurseForge":"","Modrinth":"noverifychat"},{"Id":21853,"Name":"","CurseForge":"giant-cherry-blossom-bonsai-tree","Modrinth":"giant-cherry-blossom-bonsai-tree"},{"Id":21854,"Name":"柠檬皮 (LemonSkin)","CurseForge":"lemonskin","Modrinth":"lemonskin"},{"Id":21855,"Name":"","CurseForge":"water-erosion","Modrinth":""},{"Id":21856,"Name":"","CurseForge":"","Modrinth":"undertale-healthbars"},{"Id":21858,"Name":"","CurseForge":"tetra-gui-compat","Modrinth":""},{"Id":21859,"Name":"","CurseForge":"","Modrinth":"shortratio-mod"},{"Id":21860,"Name":"","CurseForge":"quantumchunks","Modrinth":"quantumchunks"},{"Id":21862,"Name":"","CurseForge":"","Modrinth":"citrus"},{"Id":21863,"Name":"","CurseForge":"","Modrinth":"accessory-api"},{"Id":21864,"Name":"","CurseForge":"","Modrinth":"catalyst"},{"Id":21865,"Name":"","CurseForge":"","Modrinth":"day-counter-enhanced"},{"Id":21866,"Name":"","CurseForge":"messenger-crow","Modrinth":""},{"Id":21867,"Name":"史诗战斗:超级监守者 (Epic Fight - Super Warden)","CurseForge":"epic-fight-super-warden","Modrinth":""},{"Id":21868,"Name":"","CurseForge":"armageddon","Modrinth":""},{"Id":21869,"Name":"","CurseForge":"cobblemon-mega-showdown","Modrinth":"cobblemon-mega-showdown"},{"Id":21870,"Name":"傀儡地牢 (Golem Dungeons)","CurseForge":"golem-dungeons","Modrinth":"golem-dungeons"},{"Id":21872,"Name":"","CurseForge":"explosion-overhaul-a-new-level-of-destruction","Modrinth":""},{"Id":21873,"Name":"","CurseForge":"","Modrinth":"skillz"},{"Id":21874,"Name":"幽焰之息 (Hadean Breathe)","CurseForge":"hadean-breathe","Modrinth":"hadean-breathe"},{"Id":21875,"Name":"","CurseForge":"can-you-survive","Modrinth":""},{"Id":21876,"Name":"永御盾珠 (Eternal Shield Bead)","CurseForge":"eternal-shield-bead","Modrinth":""},{"Id":21877,"Name":"","CurseForge":"slashnouveau","Modrinth":""},{"Id":21878,"Name":"","CurseForge":"","Modrinth":"aether-stapi"},{"Id":21879,"Name":"","CurseForge":"","Modrinth":"notenoughminecraft"},{"Id":21880,"Name":"源石技艺 (OriginiumArts)","CurseForge":"originiumarts","Modrinth":"originiumarts"},{"Id":21881,"Name":"简单回家 (SimpleBackHome)","CurseForge":"simplebackhome","Modrinth":""},{"Id":21882,"Name":"齐的更多命令 (Qi's More Commands)","CurseForge":"","Modrinth":"qismorecommands"},{"Id":21883,"Name":"","CurseForge":"polymorphic-travelers-backpack","Modrinth":"polymorphic-travelers-backpack"},{"Id":21884,"Name":"","CurseForge":"playernbt-quests-ftb-quests","Modrinth":""},{"Id":21885,"Name":"可交互方块提示 (Interactive Block Prompt)","CurseForge":"interactive-block-prompt","Modrinth":"ibp"},{"Id":21886,"Name":"","CurseForge":"","Modrinth":"timeshifts"},{"Id":21887,"Name":"","CurseForge":"weathershift","Modrinth":"weathershift"},{"Id":21888,"Name":"","CurseForge":"chat-binds","Modrinth":"chatbinds"},{"Id":21889,"Name":"","CurseForge":"tridentperf-1-0-0","Modrinth":""},{"Id":21890,"Name":"女仆的烘焙坊 (Maid's Bakeries)","CurseForge":"maid-s-bakeries","Modrinth":""},{"Id":21892,"Name":"鞘翅自动搜集 (ElytraAutoCollect)","CurseForge":"elytraautocollect","Modrinth":""},{"Id":21893,"Name":"物品封禁 (Banitems)","CurseForge":"","Modrinth":"banitems"},{"Id":21895,"Name":"","CurseForge":"tickaccelerate","Modrinth":"tt20-reforged"},{"Id":21896,"Name":"默认服务器属性 (Default Server Properties)","CurseForge":"default-server-properties","Modrinth":"default-server-properties"},{"Id":21897,"Name":"","CurseForge":"f3-lite","Modrinth":"f3-lite"},{"Id":21898,"Name":"","CurseForge":"text-animator","Modrinth":"text-animator"},{"Id":21900,"Name":"","CurseForge":"yet-another-furniture","Modrinth":"yet-another-furniture"},{"Id":21902,"Name":"","CurseForge":"qarsans-insurgency","Modrinth":""},{"Id":21903,"Name":"Yum!美味! (Yum! Delicious!)","CurseForge":"yum-delicious","Modrinth":"yum!-delicious!"},{"Id":21904,"Name":"丰盛晚宴 (Lunarini Spread)","CurseForge":"lunarinispread","Modrinth":"lunarinispread"},{"Id":21906,"Name":"","CurseForge":"rs-backpack","Modrinth":"rs-backpack"},{"Id":21907,"Name":"","CurseForge":"no-template-netherite","Modrinth":"no-template-netherite"},{"Id":21909,"Name":"","CurseForge":"","Modrinth":"mobcapture"},{"Id":21910,"Name":"","CurseForge":"koifish","Modrinth":"koifish"},{"Id":21913,"Name":"","CurseForge":"","Modrinth":"mcinspects"},{"Id":21914,"Name":"","CurseForge":"","Modrinth":"csgo-inspects"},{"Id":21915,"Name":"","CurseForge":"armor-hud-by-mcjunky33","Modrinth":"armor-hud-by-mcjunky33"},{"Id":21916,"Name":"","CurseForge":"","Modrinth":"can-i-sleep-now"},{"Id":21917,"Name":"","CurseForge":"","Modrinth":"zenxarch-damage-vignette"},{"Id":21918,"Name":"","CurseForge":"simple-teleport-commands","Modrinth":"teleportg"},{"Id":21919,"Name":"","CurseForge":"too-many-binds","Modrinth":""},{"Id":21920,"Name":"","CurseForge":"too-many-binds-plus","Modrinth":"toomanybinds"},{"Id":21921,"Name":"","CurseForge":"astral-dragon","Modrinth":""},{"Id":21922,"Name":"中洲拓展:NPC (Middle-Earth Additions: Npc)","CurseForge":"middle-earth-additions-npc","Modrinth":"middle-earth-additions-npc"},{"Id":21923,"Name":"中洲拓展:派系 (Middle-Earth Additions: Factions)","CurseForge":"middle-earth-additions-factions","Modrinth":"middle-earth-additions-factions"},{"Id":21924,"Name":"中洲拓展:战争 (Middle-Earth Additions: War)","CurseForge":"middle-earth-additions-war","Modrinth":"middle-earth-additions-war"},{"Id":21925,"Name":"酿造与饮料 (Brews and Bevs)","CurseForge":"brews-and-bevs","Modrinth":"brews-and-bevs"},{"Id":21926,"Name":"","CurseForge":"","Modrinth":"kimetsu-no-yaiba-x-epic-fight"},{"Id":21928,"Name":"","CurseForge":"lrs-dynamic-dungeon","Modrinth":""},{"Id":21929,"Name":"","CurseForge":"buff-mobs","Modrinth":"buff-mobs"},{"Id":21930,"Name":"旗帜圈地 (Banner Claim)","CurseForge":"banner-claim","Modrinth":"banner-claim"},{"Id":21931,"Name":"不死图腾重制 (ReformUndyingTotem)","CurseForge":"","Modrinth":"reformundyingtotem"},{"Id":21933,"Name":"更多世界合成 (More World Crafting)","CurseForge":"more-world-crafting","Modrinth":"more-world-crafting"},{"Id":21934,"Name":"简单的锁 (SimpleLocks)","CurseForge":"","Modrinth":"simplelocks"},{"Id":21935,"Name":"","CurseForge":"luminous-helmet","Modrinth":""},{"Id":21936,"Name":"机械动力:钢铁装甲方块 (Create: Steel Armor Blocks)","CurseForge":"steel-armor-blocks","Modrinth":"sab"},{"Id":21937,"Name":"机械动力:装甲方块 (Create: Armor Blocks)","CurseForge":"create-armor-blocks","Modrinth":"create-armor-blocks"},{"Id":21938,"Name":"轧压均质装甲 (Rolled Homogenous)","CurseForge":"rolled-homogenous","Modrinth":""},{"Id":21939,"Name":"","CurseForge":"elemental-end-portal","Modrinth":""},{"Id":21940,"Name":"","CurseForge":"unseens-better-stronghold","Modrinth":""},{"Id":21941,"Name":"","CurseForge":"salutation","Modrinth":""},{"Id":21942,"Name":"","CurseForge":"better-than-bountiful","Modrinth":""},{"Id":21943,"Name":"","CurseForge":"global-customnpc-data","Modrinth":""},{"Id":21944,"Name":"","CurseForge":"modern-beta-forge-rivers","Modrinth":""},{"Id":21945,"Name":"","CurseForge":"zombie-improvements","Modrinth":"zombieimprovements"},{"Id":21946,"Name":"","CurseForge":"rewithered","Modrinth":"rewithered"},{"Id":21947,"Name":"","CurseForge":"better-lost-candle","Modrinth":""},{"Id":21948,"Name":"","CurseForge":"openblocks-reopened","Modrinth":""},{"Id":21949,"Name":"","CurseForge":"","Modrinth":"rc-toys"},{"Id":21950,"Name":"","CurseForge":"fancy-toasts","Modrinth":"fancy-toasts"},{"Id":21953,"Name":"正版离线共存 (TrueUUID)","CurseForge":"trueuuid","Modrinth":"trueuuid"},{"Id":21954,"Name":"","CurseForge":"owapote-bc-exlaser","Modrinth":""},{"Id":21955,"Name":"","CurseForge":"truly-custom-horse-tack","Modrinth":"truly-custom-horse-tack"},{"Id":21956,"Name":"","CurseForge":"tacz-applied-ammo-box","Modrinth":"tacz-applied-ammo-box"},{"Id":21957,"Name":"","CurseForge":"azurum-miner","Modrinth":"azurum-miner"},{"Id":21958,"Name":"热力回收 (Thermal Recycling)","CurseForge":"thermal-recycling","Modrinth":""},{"Id":21960,"Name":"","CurseForge":"revoted-wildfire","Modrinth":"revoted-wildfire"},{"Id":21961,"Name":"","CurseForge":"biome-makeover-altar-fix","Modrinth":""},{"Id":21962,"Name":"","CurseForge":"techgunsmixins","Modrinth":""},{"Id":21963,"Name":"","CurseForge":"open-persistence","Modrinth":"open-persistence"},{"Id":21964,"Name":"","CurseForge":"hungerstrike-extended-support","Modrinth":"hungerstrike-extended-support"},{"Id":21965,"Name":"","CurseForge":"","Modrinth":"floras-delight"},{"Id":21966,"Name":"鳍妙至极 (Fintastic)","CurseForge":"fintastic","Modrinth":"fintastic"},{"Id":21967,"Name":"弩自动装填 (Auto Reload Crossbow)","CurseForge":"auto-reload-crossbow","Modrinth":"auto-reload-crossbow"},{"Id":21968,"Name":"辅助瞄准 (AimAssiste)","CurseForge":"aimassiste","Modrinth":""},{"Id":21969,"Name":"","CurseForge":"zombie-dinosaur","Modrinth":"a-zombie-dinosaur"},{"Id":21970,"Name":"","CurseForge":"monster-expansion","Modrinth":"monster-expansion"},{"Id":21971,"Name":"怪物女孩 (Monster Girl)","CurseForge":"monster-girl","Modrinth":""},{"Id":21972,"Name":"离线认证 (OfflineAuth)","CurseForge":"","Modrinth":"offlineauth"},{"Id":21973,"Name":"","CurseForge":"claxels-classic-paxels","Modrinth":""},{"Id":21974,"Name":"","CurseForge":"meowmeldrawers","Modrinth":""},{"Id":21975,"Name":"","CurseForge":"","Modrinth":"perrys-botany"},{"Id":21976,"Name":"","CurseForge":"warforge-factions-remaintained","Modrinth":"warforge-remaintaned"},{"Id":21977,"Name":"","CurseForge":"lunar-moon-reborn","Modrinth":""},{"Id":21978,"Name":"","CurseForge":"minefactorial","Modrinth":"minefactorial"},{"Id":21979,"Name":"","CurseForge":"create-universal-ores","Modrinth":"create-universal-ores"},{"Id":21980,"Name":"","CurseForge":"create-crystallized","Modrinth":"create-crystallized"},{"Id":21981,"Name":"","CurseForge":"chorus-expansion","Modrinth":""},{"Id":21982,"Name":"","CurseForge":"","Modrinth":"lootshare"},{"Id":21983,"Name":"","CurseForge":"clojure-lib","Modrinth":""},{"Id":21984,"Name":"扔掉\"custom_data\"! (StripCustomData)","CurseForge":"","Modrinth":"stripcustomdata"},{"Id":21985,"Name":"","CurseForge":"wheres-my-brain","Modrinth":""},{"Id":21986,"Name":"冠军-重塑 (champions-alter)","CurseForge":"champions-alter","Modrinth":"champions-alter"},{"Id":21987,"Name":"拔刀剑:高频刀 (SlashBlade: HF Blade)","CurseForge":"slashblade-hf-blade","Modrinth":"energyblade"},{"Id":21988,"Name":"虚拟魔女排布法 (Virtual Witch Arrangement)","CurseForge":"virtual-witch-arrangement","Modrinth":""},{"Id":21989,"Name":"","CurseForge":"","Modrinth":"player-move-detector"},{"Id":21990,"Name":"瓦尔基里太空战争 (Valkyrien Space War)","CurseForge":"valkyrien-space-war","Modrinth":"valkyrien-space-war"},{"Id":21991,"Name":"","CurseForge":"","Modrinth":"blazerod-model-assimp"},{"Id":21992,"Name":"","CurseForge":"","Modrinth":"bindfirework-hotbar"},{"Id":21993,"Name":"","CurseForge":"","Modrinth":"new-soul"},{"Id":21994,"Name":"","CurseForge":"beautiful-potions","Modrinth":"beautiful-potions-mod-edition"},{"Id":21995,"Name":"","CurseForge":"yukamis-sophisticated-backpack-tab","Modrinth":"yukamis-sophisticated-backpack-tab"},{"Id":21996,"Name":"","CurseForge":"crouch-to-block","Modrinth":"crouch-to-block"},{"Id":21998,"Name":"永雏 (Juvenile Preserve)","CurseForge":"juv","Modrinth":"juvenile-preserve"},{"Id":21999,"Name":"","CurseForge":"hooklib","Modrinth":"hooklib"},{"Id":22000,"Name":"","CurseForge":"oasis2","Modrinth":"oasis2"},{"Id":22001,"Name":"蓝冰 (Blue Ice)","CurseForge":"blue-ice","Modrinth":""},{"Id":22002,"Name":"","CurseForge":"json-model-legacy","Modrinth":"json-model-legacy"},{"Id":22003,"Name":"","CurseForge":"lidar-laser-mod","Modrinth":""},{"Id":22004,"Name":"","CurseForge":"sleep-tighter","Modrinth":""},{"Id":22005,"Name":"","CurseForge":"butterflies-extension","Modrinth":""},{"Id":22006,"Name":"","CurseForge":"back-in-slime-honey","Modrinth":""},{"Id":22007,"Name":"","CurseForge":"alans-basalt-generator","Modrinth":""},{"Id":22008,"Name":"","CurseForge":"demis-better-stealth","Modrinth":""},{"Id":22011,"Name":"坐标 HUD (Coords HUD)","CurseForge":"","Modrinth":"coords-hud"},{"Id":22013,"Name":"星河传承 (Eternis Starry Sky)","CurseForge":"","Modrinth":"eternisstarrysky"},{"Id":22014,"Name":"安全重生 (Safe(ish) Respawn)","CurseForge":"","Modrinth":"safe-respawn"},{"Id":22015,"Name":"帕鲁梦 (Palmon)","CurseForge":"palmon","Modrinth":""},{"Id":22016,"Name":"旁观者生成战利品 (Spectators Generate Loot)","CurseForge":"","Modrinth":"spectators-generate-loot"},{"Id":22017,"Name":"死亡减少生命值 (Death Reduces Life Mod)","CurseForge":"death-reduces-life","Modrinth":"deathpenaltymod"},{"Id":22018,"Name":"车万女仆:区块加载 (Maid Chunk Loader)","CurseForge":"maid-chunk-loader","Modrinth":""},{"Id":22019,"Name":"女仆摇曲柄 (MaidUseHandCrank)","CurseForge":"maidusehandcrank","Modrinth":"maidusehandcrank"},{"Id":22020,"Name":"大保底:凋灵骷髅/下界合金/三叉戟/龙蛋 (Hard Pity)","CurseForge":"hard-pity","Modrinth":"hard-pity"},{"Id":22021,"Name":"","CurseForge":"genetics-resequenced","Modrinth":"genetics-resequenced"},{"Id":22022,"Name":"","CurseForge":"moo-fluids","Modrinth":""},{"Id":22023,"Name":"","CurseForge":"create-balanced-flight-forked","Modrinth":""},{"Id":22024,"Name":"","CurseForge":"mc-modsthemodium-enderio-capacitor-additions","Modrinth":""},{"Id":22025,"Name":"","CurseForge":"ironsarms","Modrinth":""},{"Id":22026,"Name":"","CurseForge":"burst","Modrinth":"burst"},{"Id":22027,"Name":"","CurseForge":"chat-calculator","Modrinth":"chat-calculator"},{"Id":22029,"Name":"","CurseForge":"unbreakable-leads","Modrinth":"unbreakable-leads"},{"Id":22030,"Name":"","CurseForge":"mortality-a-terramity-addon","Modrinth":"mortality-a-terramity-addon"},{"Id":22033,"Name":"","CurseForge":"chatjs","Modrinth":"chatjs"},{"Id":22034,"Name":"","CurseForge":"let-me-peek","Modrinth":"peekmod"},{"Id":22035,"Name":"","CurseForge":"persistent-players","Modrinth":""},{"Id":22036,"Name":"","CurseForge":"torchmaster-cobblemon-compat","Modrinth":""},{"Id":22037,"Name":"","CurseForge":"nemos-backpacks","Modrinth":"nemos-backpacks"},{"Id":22038,"Name":"","CurseForge":"homy-tp","Modrinth":"homy-tp"},{"Id":22039,"Name":"","CurseForge":"","Modrinth":"shellphone"},{"Id":22040,"Name":"","CurseForge":"faded-conquest-ii","Modrinth":""},{"Id":22043,"Name":"","CurseForge":"chosenlib","Modrinth":"chosenlib"},{"Id":22045,"Name":"渲染搅拌机 (Render Blender)","CurseForge":"render-blender","Modrinth":""},{"Id":22046,"Name":"","CurseForge":"ve-fluidhandling","Modrinth":""},{"Id":22047,"Name":"客户端数据导出 (Client Export Helper)","CurseForge":"","Modrinth":"client-export-helper"},{"Id":22050,"Name":"","CurseForge":"overgeared","Modrinth":"overgeared"},{"Id":22051,"Name":"久旱逢甘霖 (Rain after long drough)","CurseForge":"rain-after-long-drough","Modrinth":""},{"Id":22053,"Name":"","CurseForge":"","Modrinth":"clarityhud"},{"Id":22054,"Name":"刷怪蛋预览 (Spawn Egg Preview)","CurseForge":"spawn-egg-preview","Modrinth":"spawn-egg-preview"},{"Id":22055,"Name":"","CurseForge":"vulkanmod-extra","Modrinth":"vulkanmod-extra"},{"Id":22056,"Name":"","CurseForge":"vramo","Modrinth":""},{"Id":22057,"Name":"","CurseForge":"","Modrinth":"afar"},{"Id":22059,"Name":"中键标点 (MiddleKeyPing)","CurseForge":"middle-key-ping","Modrinth":"middle-key-ping"},{"Id":22060,"Name":"","CurseForge":"scape-and-run-randomizer","Modrinth":""},{"Id":22061,"Name":"","CurseForge":"amnesia-core","Modrinth":""},{"Id":22062,"Name":"","CurseForge":"","Modrinth":"minecraft-sqlite-jdbc"},{"Id":22063,"Name":"","CurseForge":"sqlite-jdbc","Modrinth":""},{"Id":22064,"Name":"","CurseForge":"forbidden-arcanus-js","Modrinth":""},{"Id":22066,"Name":"","CurseForge":"","Modrinth":"sha1redemption"},{"Id":22067,"Name":"不要创建世界 (F××k Create World)","CurseForge":"f-k-create-world","Modrinth":"fcw"},{"Id":22068,"Name":"女仆任务滚动助手 (Maid Task Scrolling Helper)","CurseForge":"maid-task-scrolling-helper","Modrinth":"maid-task-scrolling-helper"},{"Id":22069,"Name":"","CurseForge":"rozutils","Modrinth":"rozutils"},{"Id":22070,"Name":"随点随用 (Instantly Interact Internally)","CurseForge":"instantly-interact-internally","Modrinth":"instantly-interact-internally"},{"Id":22071,"Name":"Json格式化实体模型·多加载器 (Json Entity Models Muit)","CurseForge":"","Modrinth":"jsonem-mult"},{"Id":22072,"Name":"","CurseForge":"gadothaumy","Modrinth":"gadothaumy"},{"Id":22074,"Name":"维度传送器 (Dimensional Teleporter)","CurseForge":"dimensional-teleporter","Modrinth":""},{"Id":22075,"Name":"无尽贪婪:集成 (Avaritia:Integration)","CurseForge":"avaritia-integration","Modrinth":""},{"Id":22076,"Name":"超级拴绳 (SuperLead) - 新项目","CurseForge":"super-lead-rope","Modrinth":""},{"Id":22076,"Name":"超级拴绳 (SuperLead) - 旧项目,不再更新","CurseForge":"super-lead","Modrinth":""},{"Id":22076,"Name":"超级拴绳 (SuperLead)","CurseForge":"","Modrinth":"superlead"},{"Id":22077,"Name":"","CurseForge":"solo-leveling-mod","Modrinth":""},{"Id":22078,"Name":"","CurseForge":"platanitos","Modrinth":"platanitos"},{"Id":22079,"Name":"生活调味料:辣条版 (Spice Of Life: Latiao)","CurseForge":"","Modrinth":"spiceoflifelatiao"},{"Id":22080,"Name":"","CurseForge":"spicy-species","Modrinth":"spicy_species"},{"Id":22081,"Name":"","CurseForge":"thaumic-isorropia-kedition","Modrinth":""},{"Id":22082,"Name":"","CurseForge":"thaumic-concilium-kedition","Modrinth":""},{"Id":22083,"Name":"","CurseForge":"znet","Modrinth":""},{"Id":22085,"Name":"","CurseForge":"railcraft-diesel-locomotive-addon","Modrinth":""},{"Id":22090,"Name":"","CurseForge":"alchemistry-redox","Modrinth":"alchemistry-redox"},{"Id":22092,"Name":"","CurseForge":"extra-hostile-neural-networks","Modrinth":""},{"Id":22093,"Name":"","CurseForge":"extended-crafting-expanded","Modrinth":""},{"Id":22094,"Name":"","CurseForge":"packagedexexcrafting","Modrinth":"packagedexexcrafting"},{"Id":22095,"Name":"SCP:重生 (SCP: Reborn)","CurseForge":"scp-reborn","Modrinth":""},{"Id":22096,"Name":"灵焰炽铳 (Spiritual Flame Firearms)","CurseForge":"spiritual-flame-firearms","Modrinth":"spiritual-flame-firearms"},{"Id":22097,"Name":"奇奇怪怪的弓 (A Weird Bow)","CurseForge":"a-weird-bow","Modrinth":"a-weird-bow"},{"Id":22099,"Name":"","CurseForge":"bacchanalian-mobs","Modrinth":""},{"Id":22100,"Name":"毒术 (Toxony)","CurseForge":"toxony","Modrinth":"toxony"},{"Id":22102,"Name":"NCM播放器 (Ncm for Mc)","CurseForge":"ncm-for-mc","Modrinth":"neteasecloudmusic-for-minecraft"},{"Id":22103,"Name":"熔岩西瓜 (Lavamelon)","CurseForge":"lavamelon","Modrinth":""},{"Id":22104,"Name":"香蕉皮 (BananaSkin)","CurseForge":"","Modrinth":"bananaskin"},{"Id":22105,"Name":"磨痕 (Worn Tear)","CurseForge":"worn-tear","Modrinth":"worn-tear"},{"Id":22106,"Name":"","CurseForge":"cool-rain-reforged","Modrinth":"cool-rain-reforged"},{"Id":22107,"Name":"暮色森林洞穴修复 (Twilight Forest Cave Fix)","CurseForge":"twilight-forest-cave-fix","Modrinth":"twilight-forest-cave-fix"},{"Id":22110,"Name":"机械动力飞越版 (Create Fly)","CurseForge":"create-fly","Modrinth":"create-fly"},{"Id":22111,"Name":"木桶 ([SBM] Wooden Buckets)","CurseForge":"sbm-wooden-buckets","Modrinth":""},{"Id":22112,"Name":"","CurseForge":"sea-of-chests","Modrinth":""},{"Id":22113,"Name":"","CurseForge":"flammable-tweaker","Modrinth":""},{"Id":22114,"Name":"","CurseForge":"changed-armor-and-weapons","Modrinth":""},{"Id":22115,"Name":"","CurseForge":"abominationsinfection","Modrinth":""},{"Id":22116,"Name":"目标假人 (Target Dummy)","CurseForge":"ly-target-dummy","Modrinth":""},{"Id":22117,"Name":"","CurseForge":"unique-accessories","Modrinth":"unique-accessories"},{"Id":22118,"Name":"","CurseForge":"","Modrinth":"plants-vs-zombieminecraft-warfare-pvz"},{"Id":22120,"Name":"","CurseForge":"goners-armor-trims","Modrinth":""},{"Id":22122,"Name":"","CurseForge":"muffins-slime-golem","Modrinth":"muffins-slime-golem"},{"Id":22123,"Name":"不要饿死:Moss版 (Don't Starve: Moss Edition)","CurseForge":"dontstarve-moss-edition","Modrinth":"dontstarve-moss-edition"},{"Id":22124,"Name":"Jerotes村庄乐事 (Jerotes Village Delight)","CurseForge":"jerotes-village-delight","Modrinth":""},{"Id":22125,"Name":"星神之怒 (Stellar Striker)","CurseForge":"stellar-striker","Modrinth":""},{"Id":22126,"Name":"","CurseForge":"ptp","Modrinth":"ptp"},{"Id":22127,"Name":"","CurseForge":"the-mad-hatter","Modrinth":"the-mad-hatter"},{"Id":22128,"Name":"","CurseForge":"magic-bees-kedition","Modrinth":""},{"Id":22129,"Name":"","CurseForge":"complicated-backpacks","Modrinth":"complicatedbackpacks"},{"Id":22130,"Name":"","CurseForge":"retro-mario-worlds","Modrinth":"retro-mario-worlds"},{"Id":22131,"Name":"","CurseForge":"","Modrinth":"guard-villagers-1.21.1"},{"Id":22132,"Name":"","CurseForge":"","Modrinth":"mcmassok-guardvillagers-fork"},{"Id":22133,"Name":"","CurseForge":"villager-pagoda-house","Modrinth":"villager-pagoda-house"},{"Id":22134,"Name":"女仆!给我阎魔刀 (Maid Function Extension)","CurseForge":"","Modrinth":"maid-function-extension"},{"Id":22135,"Name":"狐狐圣剑 (XfoxSword)","CurseForge":"xfoxsword","Modrinth":""},{"Id":22136,"Name":"灵魂契约 (Soul Pact)","CurseForge":"soul-pact","Modrinth":""},{"Id":22138,"Name":"分辨率控制++ (ResolutionControl++)","CurseForge":"resolution-controll","Modrinth":"resolution-control-plus-plus"},{"Id":22139,"Name":"潜影盒堆叠修复 (Stackable Shulkers Fix)","CurseForge":"","Modrinth":"stackable-shulkers-fix"},{"Id":22140,"Name":"色谱竞速 (Spectrum Rush)","CurseForge":"spectrum-rush","Modrinth":"spectrum-rush"},{"Id":22141,"Name":"","CurseForge":"libertys-villagers-revived","Modrinth":""},{"Id":22142,"Name":"","CurseForge":"blue-skies-tweaks","Modrinth":""},{"Id":22143,"Name":"","CurseForge":"drpgspawnfix","Modrinth":""},{"Id":22144,"Name":"","CurseForge":"eat-yourself","Modrinth":"eat-yourself"},{"Id":22145,"Name":"","CurseForge":"kaiju-calamity","Modrinth":""},{"Id":22146,"Name":"","CurseForge":"","Modrinth":"hattened"},{"Id":22147,"Name":"","CurseForge":"ender-christmas-plus","Modrinth":"ender-christmas+"},{"Id":22148,"Name":"","CurseForge":"juniors-open-smash-bats","Modrinth":"opensmashbats"},{"Id":22149,"Name":"","CurseForge":"choppers-delight","Modrinth":"choppers-delight"},{"Id":22150,"Name":"云端之乐 (Delight o' Flight)","CurseForge":"delighto-flight","Modrinth":""},{"Id":22151,"Name":"XBB的呼啸骑士 (XBB's Roaring Knight)","CurseForge":"xbbs-roaring-knight","Modrinth":"xbbs-roaring-knight"},{"Id":22152,"Name":"随性修改 (Suixing Xiugai)","CurseForge":"suixingxiugai","Modrinth":"suixingxiugai"},{"Id":22155,"Name":"无尽贪婪:魔改 (Avaritia: Tweak)","CurseForge":"avaritia-tweak","Modrinth":""},{"Id":22156,"Name":"","CurseForge":"gregtech-easy-core","Modrinth":""},{"Id":22157,"Name":"","CurseForge":"polishedlib","Modrinth":""},{"Id":22158,"Name":"","CurseForge":"minecraftapi","Modrinth":""},{"Id":22159,"Name":"","CurseForge":"easy-gun-mod","Modrinth":"easy-guns"},{"Id":22160,"Name":"","CurseForge":"lightroot","Modrinth":"lightroot"},{"Id":22161,"Name":"","CurseForge":"miscmfrcircuits","Modrinth":""},{"Id":22162,"Name":"","CurseForge":"dartpatch","Modrinth":""},{"Id":22163,"Name":"","CurseForge":"polar-bears-frozen-oceans-backport","Modrinth":""},{"Id":22164,"Name":"","CurseForge":"uptodatemod","Modrinth":""},{"Id":22165,"Name":"","CurseForge":"concrete-and-marble-mod-2","Modrinth":""},{"Id":22166,"Name":"","CurseForge":"kaminari-motor-works","Modrinth":""},{"Id":22167,"Name":"","CurseForge":"block-highlightfx","Modrinth":"block-hightlightfx"},{"Id":22168,"Name":"","CurseForge":"better-compass-hud","Modrinth":"better-compass-hud"},{"Id":22169,"Name":"","CurseForge":"","Modrinth":"mendmeter"},{"Id":22170,"Name":"小楼梯 (Small Stairs)","CurseForge":"smallstairs","Modrinth":""},{"Id":22170,"Name":"小楼梯 (Small Stairs)","CurseForge":"small-stairs","Modrinth":""},{"Id":22171,"Name":"","CurseForge":"mana-crystals","Modrinth":"mana-crystals"},{"Id":22172,"Name":"","CurseForge":"abstract-rpg","Modrinth":""},{"Id":22173,"Name":"","CurseForge":"more-pylons","Modrinth":"more-pylons"},{"Id":22174,"Name":"热力并行 (Thermal Parallel)","CurseForge":"thermal-parallel","Modrinth":"thermal-parallel"},{"Id":22175,"Name":"","CurseForge":"mcpatcher","Modrinth":"mcpatcher"},{"Id":22176,"Name":"","CurseForge":"spindles-tfc","Modrinth":""},{"Id":22177,"Name":"","CurseForge":"tfc-more-items","Modrinth":"tfc-more-items"},{"Id":22178,"Name":"","CurseForge":"dynamic-trees-tfc-seeds","Modrinth":"dynamic-trees-tfc-seeds"},{"Id":22179,"Name":"","CurseForge":"farmer-enchants","Modrinth":"farmer-enchants"},{"Id":22180,"Name":"","CurseForge":"tiny-tree","Modrinth":""},{"Id":22182,"Name":"XNet 汉化版 (XNet-zhCN edition)","CurseForge":"xnet-zhcn-edition","Modrinth":""},{"Id":22183,"Name":"Yomi的MTR实用拓展 (MTR Yomi Utility Mod)","CurseForge":"mtr-yomi-utility-mod","Modrinth":"mtr-yomi-utility-mod"},{"Id":22185,"Name":"Lasea的荒野商人 (Lasea's Wilderness Traders)","CurseForge":"laseas-wilderness-traders","Modrinth":""},{"Id":22187,"Name":"","CurseForge":"mtr-moogs-temples-reimagined","Modrinth":"mtr-moogs-temples-reimagined"},{"Id":22189,"Name":"","CurseForge":"perennial-pastries","Modrinth":"perennial-pastries"},{"Id":22190,"Name":"","CurseForge":"narrativecraft","Modrinth":"narrativecraft"},{"Id":22191,"Name":"","CurseForge":"mixinbooter2fermiumbooter","Modrinth":"mixinbooter2fermiumbooter"},{"Id":22192,"Name":"","CurseForge":"moogs-structure-lib","Modrinth":"moogs-structure-lib"},{"Id":22193,"Name":"","CurseForge":"chickens-can-cast-fireball","Modrinth":""},{"Id":22194,"Name":"","CurseForge":"bad-sound","Modrinth":"bad-sound"},{"Id":22195,"Name":"","CurseForge":"heirlooms","Modrinth":"heirlooms"},{"Id":22196,"Name":"","CurseForge":"warborn-capture-points","Modrinth":""},{"Id":22197,"Name":"","CurseForge":"tacz-x-gunslightsaddon-addon","Modrinth":"tacz-x-guns-lights-addon-addon"},{"Id":22198,"Name":"","CurseForge":"hunger-tweaks","Modrinth":"hunger-tweaks"},{"Id":22199,"Name":"","CurseForge":"it-takes-a-pillage-continuation","Modrinth":"it-takes-a-pillage-continuation"},{"Id":22200,"Name":"","CurseForge":"swansong","Modrinth":"swansong"},{"Id":22201,"Name":"无创造和冒险 (No creativity and adventure)","CurseForge":"no-creativity-and-adventure-mod","Modrinth":"no-creativity-and-adventure"},{"Id":22202,"Name":"矿石种植工艺 (Croparium)","CurseForge":"croparium","Modrinth":"croparium"},{"Id":22203,"Name":"健胃消食片 (Indigestion Tablet)","CurseForge":"indigestion-tablet","Modrinth":"indigestion-tablets"},{"Id":22204,"Name":"ME光束 (ME Beam Former)","CurseForge":"me-beam-former","Modrinth":"me-beam-former"},{"Id":22205,"Name":"机械动力:更快的蓝图加农炮 (Create: Fast Schematic Cannon)","CurseForge":"create-fast-schematiccannon","Modrinth":"create-fast-schematic-cannon"},{"Id":22207,"Name":"","CurseForge":"trail-of-light","Modrinth":""},{"Id":22208,"Name":"","CurseForge":"abominations-apocalypse","Modrinth":""},{"Id":22209,"Name":"","CurseForge":"","Modrinth":"pams-harvestcraft-2-nerf"},{"Id":22210,"Name":"","CurseForge":"pommel-held-item-models","Modrinth":"pommel-held-item-models"},{"Id":22211,"Name":"","CurseForge":"echoes-of-battle","Modrinth":""},{"Id":22212,"Name":"神秘奇境非官方版 (Thaumic Wonders Unofficial)","CurseForge":"thaumic-wonders-unofficial","Modrinth":""},{"Id":22213,"Name":"","CurseForge":"mystical-expansion","Modrinth":""},{"Id":22214,"Name":"折射:延续 (Refraction Continuation)","CurseForge":"refraction-continuation","Modrinth":""},{"Id":22215,"Name":"","CurseForge":"expanded-arcanum","Modrinth":""},{"Id":22216,"Name":"TPA工具集合 (TPATools)","CurseForge":"","Modrinth":"tpatools"},{"Id":22217,"Name":"界面管理器 (HUD Manager)","CurseForge":"hud-manager","Modrinth":"hud-manager"},{"Id":22218,"Name":"","CurseForge":"simple-smithing-overhaul","Modrinth":"simple-smithing-overhaul"},{"Id":22219,"Name":"死亡惩罚 (Death Penalty)","CurseForge":"tinyfish-death-penalty","Modrinth":"tinyfish-death-penalty"},{"Id":22220,"Name":"动态NBT编辑器 (Dynamic In-Game NBT Editor)","CurseForge":"","Modrinth":"dine"},{"Id":22221,"Name":"","CurseForge":"","Modrinth":"wecuifix"},{"Id":22222,"Name":"时间控制 (Time Control)","CurseForge":"time-control","Modrinth":"time-control"},{"Id":22223,"Name":"","CurseForge":"embers-text-api","Modrinth":"embers-text-api"},{"Id":22224,"Name":"阶段附魔 (StageEnchantment)","CurseForge":"stageenchantment","Modrinth":""},{"Id":22225,"Name":"","CurseForge":"","Modrinth":"black-sun"},{"Id":22226,"Name":"","CurseForge":"the-many-faces-of-enderman","Modrinth":""},{"Id":22228,"Name":"","CurseForge":"","Modrinth":"eternal-sky-orbs"},{"Id":22229,"Name":"","CurseForge":"antiqueatlas-recurrentcomplex-compatability","Modrinth":"antiqueatlas-recurrentcomplex-compatability"},{"Id":22230,"Name":"全局光影包配置 (Global Shaderpacks Properties)","CurseForge":"global-shaderpack-properties","Modrinth":""},{"Id":22231,"Name":"","CurseForge":"strawberrylib","Modrinth":"strawberrylib"},{"Id":22232,"Name":"","CurseForge":"","Modrinth":"ibukigourd"},{"Id":22233,"Name":"一键连锁:可视化 (OneKeyMiner Chainable Visuals)","CurseForge":"onekeyminer-chainable-visuals","Modrinth":"onekeyminer-chainable-visuals"},{"Id":22234,"Name":"","CurseForge":"precision-mining","Modrinth":"precision-mining"},{"Id":22235,"Name":"","CurseForge":"better-capes-x","Modrinth":"better-capes-x"},{"Id":22236,"Name":"","CurseForge":"botanic-cheater","Modrinth":""},{"Id":22237,"Name":"","CurseForge":"villagerxp","Modrinth":"villagerxp"},{"Id":22238,"Name":"","CurseForge":"silk-suspicious-sand","Modrinth":""},{"Id":22239,"Name":"","CurseForge":"trial-liberator","Modrinth":"trial-liberator"},{"Id":22240,"Name":"","CurseForge":"nycto","Modrinth":"nycto"},{"Id":22243,"Name":"","CurseForge":"healingbed","Modrinth":""},{"Id":22244,"Name":"清道夫 (ClearDrops)","CurseForge":"","Modrinth":"cleardrops"},{"Id":22245,"Name":"方块审计 (CraftAudit)","CurseForge":"","Modrinth":"craftaudit"},{"Id":22246,"Name":"Kiss Mod:非官方版 (Kiss Mod Unofficial)","CurseForge":"kiss-mod-unofficial","Modrinth":"kiss-mod-unofficial"},{"Id":22247,"Name":"","CurseForge":"rawinput","Modrinth":"rawinput"},{"Id":22248,"Name":"","CurseForge":"loot-beams-retro","Modrinth":""},{"Id":22249,"Name":"","CurseForge":"am2pga","Modrinth":""},{"Id":22250,"Name":"","CurseForge":"gtbcs-geomancy-plus","Modrinth":""},{"Id":22252,"Name":"","CurseForge":"","Modrinth":"modmenu-babric"},{"Id":22255,"Name":"","CurseForge":"","Modrinth":"hiirosakura"},{"Id":22256,"Name":"通用召唤 (Universal Summoning)","CurseForge":"us-universal-summoning-new","Modrinth":""},{"Id":22258,"Name":"","CurseForge":"","Modrinth":"gambac"},{"Id":22259,"Name":"","CurseForge":"cad-editor","Modrinth":"cad-editor"},{"Id":22260,"Name":"","CurseForge":"","Modrinth":"unitweaks"},{"Id":22261,"Name":"","CurseForge":"","Modrinth":"nyalib"},{"Id":22263,"Name":"","CurseForge":"nei-mystcraft-plugin","Modrinth":""},{"Id":22264,"Name":"","CurseForge":"jei-mystcraft-plugin","Modrinth":""},{"Id":22265,"Name":"","CurseForge":"bubblesex","Modrinth":""},{"Id":22266,"Name":"","CurseForge":"legendary-stages","Modrinth":""},{"Id":22267,"Name":"","CurseForge":"tesseract-optimizations","Modrinth":""},{"Id":22268,"Name":"","CurseForge":"","Modrinth":"uwufied-beta"},{"Id":22269,"Name":"","CurseForge":"","Modrinth":"uniwrench"},{"Id":22270,"Name":"","CurseForge":"useful-ribbits","Modrinth":""},{"Id":22273,"Name":"能量优势 (Power Advantage)","CurseForge":"power-advantage","Modrinth":""},{"Id":22275,"Name":"","CurseForge":"create-transmission","Modrinth":""},{"Id":22280,"Name":"应用气动 (Applied Pneumatics)","CurseForge":"applied-pneumatics","Modrinth":"applied-pneumatics"},{"Id":22281,"Name":"","CurseForge":"","Modrinth":"bratwurst"},{"Id":22282,"Name":"机器码封禁Neo版 (NeoABan)","CurseForge":"neoa-ban","Modrinth":""},{"Id":22283,"Name":"","CurseForge":"trashpandas-ascension","Modrinth":""},{"Id":22284,"Name":"","CurseForge":"","Modrinth":"food-needed-to-respawn-at-bed"},{"Id":22285,"Name":"方块投射炮 (Block Cannon)","CurseForge":"block-cannon","Modrinth":""},{"Id":22286,"Name":"口袋空间传送器 (Pocket Space Teleporter)","CurseForge":"pocket-space-teleporter","Modrinth":"pocket-space-teleporter"},{"Id":22287,"Name":"","CurseForge":"re-from-the-ground-up","Modrinth":""},{"Id":22288,"Name":"","CurseForge":"","Modrinth":"stacks-are-stacks"},{"Id":22289,"Name":"乐音奇旅 (VocaCraft)","CurseForge":"vc-vocacraft","Modrinth":"vocacraft"},{"Id":22290,"Name":"","CurseForge":"resource-fish","Modrinth":""},{"Id":22294,"Name":"","CurseForge":"","Modrinth":"immibis-peripherals"},{"Id":22295,"Name":"尸潮信标 (Horde Beacon)","CurseForge":"horde-beacon","Modrinth":""},{"Id":22297,"Name":"极限方块 (Extreme Blocks)","CurseForge":"extreme-blocks","Modrinth":""},{"Id":22299,"Name":"","CurseForge":"talecraft","Modrinth":""},{"Id":22300,"Name":"","CurseForge":"new-crimson-revelations","Modrinth":""},{"Id":22301,"Name":"","CurseForge":"makeae2better","Modrinth":"makeae2better"},{"Id":22302,"Name":"","CurseForge":"","Modrinth":"elemental-arrows-stationapi"},{"Id":22303,"Name":"","CurseForge":"","Modrinth":"nyabags"},{"Id":22304,"Name":"","CurseForge":"","Modrinth":"past-el-palettes"},{"Id":22305,"Name":"","CurseForge":"","Modrinth":"blowing-bubbles"},{"Id":22306,"Name":"","CurseForge":"mobs-n-growths-origins","Modrinth":""},{"Id":22307,"Name":"","CurseForge":"roadarchitect-encounters","Modrinth":""},{"Id":22309,"Name":"","CurseForge":"","Modrinth":"mystcraft-ageless"},{"Id":22310,"Name":"","CurseForge":"thaumcraft-return-of-the-ancients","Modrinth":"thaumcraft-return-of-the-ancients"},{"Id":22315,"Name":"","CurseForge":"neocontinuity","Modrinth":"neocontinuity"},{"Id":22316,"Name":"","CurseForge":"continuity-unofficial-port-1-16","Modrinth":"continuity-unofficial-port-1.16"},{"Id":22317,"Name":"耕地保护 (SafeFarmland)","CurseForge":"","Modrinth":"safefarmland"},{"Id":22318,"Name":"","CurseForge":"","Modrinth":"bone-meal-fern"},{"Id":22319,"Name":"","CurseForge":"ae2-cell-upgrade-compat","Modrinth":""},{"Id":22320,"Name":"","CurseForge":"iris-shader-folder","Modrinth":"iris-shader-folder"},{"Id":22321,"Name":"","CurseForge":"rpcdrive","Modrinth":"rpcdrive"},{"Id":22323,"Name":"","CurseForge":"mixintrace-resmithed","Modrinth":"mixintrace-reforged"},{"Id":22324,"Name":"火枪锻造 (Tetra Musket)","CurseForge":"tetra-musket","Modrinth":""},{"Id":22325,"Name":"土地公 (TuDiGong)","CurseForge":"tudigong-wayfinder","Modrinth":""},{"Id":22326,"Name":"","CurseForge":"mob-statues","Modrinth":""},{"Id":22328,"Name":"","CurseForge":"charset-cre","Modrinth":"charset-cre"},{"Id":22329,"Name":"","CurseForge":"legacy-farms","Modrinth":""},{"Id":22330,"Name":"","CurseForge":"thaumictweaker","Modrinth":""},{"Id":22331,"Name":"","CurseForge":"covers1624-lib","Modrinth":""},{"Id":22333,"Name":"","CurseForge":"one-enough-block","Modrinth":"one-enough-block"},{"Id":22334,"Name":"更好的聊天框 (Better Chat)","CurseForge":"","Modrinth":"better-chat"},{"Id":22336,"Name":"渲染抑制器 (RenderLimiter)","CurseForge":"","Modrinth":"renderlimiter"},{"Id":22337,"Name":"丰饶之角:重生 (Cornucopia Reborn)","CurseForge":"","Modrinth":"cornucopia-reborn"},{"Id":22338,"Name":"","CurseForge":"longwings","Modrinth":"longwings"},{"Id":22339,"Name":"","CurseForge":"more-ae2-additions","Modrinth":""},{"Id":22340,"Name":"","CurseForge":"congrega-mystica","Modrinth":""},{"Id":22341,"Name":"无屏幕截图消息 (No Screenshot Message)","CurseForge":"","Modrinth":"no-screenshot-message"},{"Id":22342,"Name":"快速工业平台 (Fast Industrial Platform)","CurseForge":"fast-industrial-platform","Modrinth":""},{"Id":22343,"Name":"人哉肥的卷帘门附加包 (Rolling Gate RZF Addition)","CurseForge":"","Modrinth":"rolling-gate-rzf-addition"},{"Id":22344,"Name":"转生:凡人修仙 (Tensura: Mortal Cultivation)","CurseForge":"tensura-mortal-cultivation","Modrinth":""},{"Id":22345,"Name":"","CurseForge":"pickup-limits","Modrinth":""},{"Id":22348,"Name":"军械库 (Armory Cache)","CurseForge":"armorycache","Modrinth":""},{"Id":22349,"Name":"","CurseForge":"gregtech-storage-drawers","Modrinth":"gregtech-storage-drawers"},{"Id":22350,"Name":"","CurseForge":"","Modrinth":"chiseled-mod"},{"Id":22352,"Name":"","CurseForge":"","Modrinth":"area_lib"},{"Id":22353,"Name":"","CurseForge":"unordinaryextras","Modrinth":""},{"Id":22354,"Name":"","CurseForge":"awakened-craziness","Modrinth":""},{"Id":22355,"Name":"村民市场 - NBT 修复版 (Villager Market - NBT Fix)","CurseForge":"villager-market-nbt-fix","Modrinth":""},{"Id":22356,"Name":"","CurseForge":"illager-expansions","Modrinth":""},{"Id":22357,"Name":"","CurseForge":"","Modrinth":"tropicraft-stationapi"},{"Id":22358,"Name":"","CurseForge":"bbl-shops","Modrinth":""},{"Id":22359,"Name":"","CurseForge":"","Modrinth":"dronebox"},{"Id":22360,"Name":"","CurseForge":"","Modrinth":"volo-volare"},{"Id":22361,"Name":"自定义铁砧改名权 (CustomAnvilRenameable)","CurseForge":"","Modrinth":"customanvilrenameable"},{"Id":22364,"Name":"铁砧工艺:额外电力 (Anvilcraft:Extra Power)","CurseForge":"anvilcraft-extra-power","Modrinth":""},{"Id":22365,"Name":"机械动力:流光溢彩 (Create: Prismatic Shine)","CurseForge":"create-prismatic-shine","Modrinth":"create-prismatic-shine"},{"Id":22366,"Name":"梦之石 (Dream Stone)","CurseForge":"","Modrinth":"dream-stone"},{"Id":22368,"Name":"增幅 (Enhance Buffs)","CurseForge":"enhance","Modrinth":""},{"Id":22369,"Name":"失落配方 (Recipes of the Lost)","CurseForge":"recipes-of-the-lost","Modrinth":"recipes-of-the-lost"},{"Id":22370,"Name":"","CurseForge":"","Modrinth":"huhobot-mod"},{"Id":22372,"Name":"","CurseForge":"tacz-pack-upgrader","Modrinth":"tacz-pack-upgrader"},{"Id":22375,"Name":"","CurseForge":"","Modrinth":"ping-view"},{"Id":22378,"Name":"","CurseForge":"extravagant-delight","Modrinth":"extravagant-delight"},{"Id":22379,"Name":"","CurseForge":"dodos-mobs","Modrinth":""},{"Id":22380,"Name":"","CurseForge":"pillager-caravans","Modrinth":"pillager-caravans"},{"Id":22381,"Name":"世界之低语 (World's Whisper)","CurseForge":"","Modrinth":"worlds-whisper"},{"Id":22383,"Name":"机械之魂 (Create Soul)","CurseForge":"create-soul","Modrinth":""},{"Id":22384,"Name":"网络音乐机:登登你的 (NetMusic: LoginNeed)","CurseForge":"","Modrinth":"netmusic-loginneed"},{"Id":22386,"Name":"","CurseForge":"quality-equipment-reforked","Modrinth":""},{"Id":22387,"Name":"铜铁新生 (Metalmith)","CurseForge":"metalmith","Modrinth":""},{"Id":22388,"Name":"更方便的灵灾 (Convenient Malum)","CurseForge":"","Modrinth":"convenient-malum"},{"Id":22389,"Name":"鹦鹉螺&矛 - 群骑纷争 (Nautilus & Spears - Mounts of Mayhem)","CurseForge":"nautilus-spears-mounts-of-mayhem","Modrinth":"nautilus-spears-mounts-of-mayhem"},{"Id":22390,"Name":"电波女仆 (Telepathic Maid)","CurseForge":"telepathic-maid","Modrinth":"telepathic-maid"},{"Id":22391,"Name":"","CurseForge":"tombmanygraves-2-api","Modrinth":""},{"Id":22392,"Name":"","CurseForge":"mytown","Modrinth":""},{"Id":22395,"Name":"竖半砖 (Lin Vertical Slab)","CurseForge":"","Modrinth":"linverticalslab"},{"Id":22397,"Name":"珍珠区块加载器 (PearlChunkLoader)","CurseForge":"","Modrinth":"pearlchunkloader"},{"Id":22398,"Name":"","CurseForge":"","Modrinth":"lv-wings"},{"Id":22399,"Name":"","CurseForge":"","Modrinth":"foxbox"},{"Id":22400,"Name":"","CurseForge":"","Modrinth":"more_than_a_foxbox"},{"Id":22401,"Name":"","CurseForge":"","Modrinth":"fox-plushies"},{"Id":22402,"Name":"","CurseForge":"ecliptic-seasons-oh-the-biomes-weve-gone","Modrinth":""},{"Id":22403,"Name":"","CurseForge":"tacz-1-21-1","Modrinth":"tacz-1.21.1"},{"Id":22404,"Name":"","CurseForge":"tacz-special-forces","Modrinth":"tacz-special-forces"},{"Id":22405,"Name":"生物雕像 (Sculpture)","CurseForge":"sculpture","Modrinth":"sculpture"},{"Id":22406,"Name":"","CurseForge":"aps-repowered","Modrinth":""},{"Id":22407,"Name":"市民锅 (Citizen Pot)","CurseForge":"citizen-pot","Modrinth":""},{"Id":22408,"Name":"线性经验 (Linear Experience)","CurseForge":"linear-experience","Modrinth":"lineaer-experience"},{"Id":22409,"Name":"耐久指示器:延续 (Durability Viewer Continuation)","CurseForge":"","Modrinth":"durability-viewer-continuation"},{"Id":22411,"Name":"滑稽纪元:轮回星启 (HUAJI Age: Astral Regenesis)","CurseForge":"huaji-age-astral-regenesis","Modrinth":"huaji-age-astral-regenesis"},{"Id":22412,"Name":"拔刀剑:重织附属包 (SlashBlade Fabric Addons)","CurseForge":"slashblade-fabric-addons","Modrinth":"slashblade-fabric-addons"},{"Id":22414,"Name":"荣誉的证明 (Proof of Honor)","CurseForge":"proof-of-honor","Modrinth":"proof-of-honor"},{"Id":22415,"Name":"棠煌纪元 (Splendour Ablaze Epoch)","CurseForge":"splendour-ablaze-epoch","Modrinth":""},{"Id":22416,"Name":"铁魔法属性:重铸 (Spellbooks Attributes:Reforged)","CurseForge":"spellbooks-attributes-reforged","Modrinth":""},{"Id":22418,"Name":"Snow的Boss:机械遣使 (Snow's Bosses: Mechasent)","CurseForge":"snows-bosses-mechasent","Modrinth":""},{"Id":22419,"Name":"","CurseForge":"create-crafter-integration","Modrinth":""},{"Id":22420,"Name":"机械动力:蓝图校验 (Create: Schematic Checker)","CurseForge":"create-schematicchecker","Modrinth":"createschematicchecker"},{"Id":22422,"Name":"AE2显示元件槽位修复 (AE Terminal View Cell Fix)","CurseForge":"ae-terminal-view-cell-fix","Modrinth":"terminal-view-cell-fix"},{"Id":22423,"Name":"实体区块加载 (Pearload)","CurseForge":"pearload","Modrinth":""},{"Id":22424,"Name":"","CurseForge":"mbc-projectez","Modrinth":""},{"Id":22425,"Name":"","CurseForge":"comfy-cozy-brickery","Modrinth":"comfy-cozy-brickery-patch"},{"Id":22426,"Name":"矛:向下移植版 (Spear Downport)","CurseForge":"spear-downport","Modrinth":"spear-downport"},{"Id":22427,"Name":"‌精准长矛‌ (Accurate Spears)","CurseForge":"accurate-spears","Modrinth":"accurate-spears"},{"Id":22428,"Name":"","CurseForge":"soundreload","Modrinth":""},{"Id":22429,"Name":"","CurseForge":"world-mod-cacher","Modrinth":""},{"Id":22430,"Name":"Orbital Railgun - 他人的非官方上传,","CurseForge":"orbital-railgun-by-mishkis","Modrinth":""},{"Id":22430,"Name":"","CurseForge":"","Modrinth":"orbital-railgun"},{"Id":22434,"Name":"","CurseForge":"file-director-incremental-mod-downloading","Modrinth":""},{"Id":22435,"Name":"","CurseForge":"paytheprice","Modrinth":"paytheprice"},{"Id":22437,"Name":"氮 (Nitrogen)","CurseForge":"","Modrinth":"nitrogen_rbn"},{"Id":22440,"Name":"","CurseForge":"extended-itemview-eiv","Modrinth":"eiv"},{"Id":22443,"Name":"","CurseForge":"projecte-teams-sync","Modrinth":""},{"Id":22444,"Name":"","CurseForge":"sequence-pathways-lotm-mod","Modrinth":"lotmmod"},{"Id":22445,"Name":"","CurseForge":"yung-structures-addon-for-loot-integrations","Modrinth":""},{"Id":22446,"Name":"","CurseForge":"backpacks-for-dummies","Modrinth":"backpacks-for-dummies"},{"Id":22447,"Name":"附魔金苹果修复 (Enchanted Golden Apple Fixer)","CurseForge":"","Modrinth":"egafixer"},{"Id":22448,"Name":"匠魂挖掘等级修复 (FixTconstructPickaxe)","CurseForge":"","Modrinth":"fixtconstructpickaxe"},{"Id":22449,"Name":"","CurseForge":"co-lib","Modrinth":""},{"Id":22450,"Name":"OMNI 存储元件 (OMNI Cells)","CurseForge":"omni-cells","Modrinth":"ae2-omni-cells"},{"Id":22453,"Name":"","CurseForge":"sdm-gamestages-helper","Modrinth":""},{"Id":22454,"Name":"","CurseForge":"mangos-multiblock-library","Modrinth":""},{"Id":22457,"Name":"A177增修附魔 (A177 Added Modified Enchantments)","CurseForge":"","Modrinth":"a177-added-modified-enchantments"},{"Id":22458,"Name":"Qa 附魔 (Qa Enchants)","CurseForge":"qa-enchants","Modrinth":"qa-enchants"},{"Id":22460,"Name":"","CurseForge":"create-golems-galore","Modrinth":"create-golems-galore"},{"Id":22461,"Name":"","CurseForge":"vmh","Modrinth":""},{"Id":22462,"Name":"","CurseForge":"ore-stages-reborn","Modrinth":"ore-stages-reborn"},{"Id":22463,"Name":"","CurseForge":"journey-map-stages-reborn","Modrinth":"journeymapstages-reborn"},{"Id":22464,"Name":"","CurseForge":"the-one-prode-stage","Modrinth":"the-one-prode-stage"},{"Id":22465,"Name":"","CurseForge":"sdm-mob-stages","Modrinth":""},{"Id":22466,"Name":"","CurseForge":"passive-skill-tree-stage","Modrinth":""},{"Id":22467,"Name":"","CurseForge":"sdm-loot-overhaul","Modrinth":"sdm-loot-overhaul"},{"Id":22468,"Name":"","CurseForge":"","Modrinth":"area-tools"},{"Id":22469,"Name":"亮度绑定 (LightBind)","CurseForge":"lightbind","Modrinth":""},{"Id":22470,"Name":"天圆地方 (GeoCraft)","CurseForge":"qg-geocraft","Modrinth":"qg_geocraft"},{"Id":22471,"Name":"","CurseForge":"timberreplant","Modrinth":"timberreplant"},{"Id":22472,"Name":"","CurseForge":"hunting-dimension-reforged","Modrinth":""},{"Id":22473,"Name":"","CurseForge":"better-angel-ring","Modrinth":""},{"Id":22474,"Name":"","CurseForge":"tcompat-tinkers-construct-addon","Modrinth":"tcompat"},{"Id":22475,"Name":"","CurseForge":"j-a-c-m-just-another-chisel","Modrinth":""},{"Id":22476,"Name":"","CurseForge":"acuisine","Modrinth":"assorted-cuisine"},{"Id":22477,"Name":"","CurseForge":"juniors-troll-tnt","Modrinth":"trolltnt"},{"Id":22478,"Name":"","CurseForge":"compact-mekanism-machines","Modrinth":""},{"Id":22479,"Name":"","CurseForge":"compact-mekanism-machines-plus","Modrinth":"compact-mekanism-machines-plus"},{"Id":22480,"Name":"","CurseForge":"woot-revived","Modrinth":"woot-revived"},{"Id":22482,"Name":"矿石种植工艺:暮色森林 (Croparium: the Twilight Forest)","CurseForge":"croparium-the-twilight-forest","Modrinth":"croparium-the-twilight-forest"},{"Id":22483,"Name":"Leaf的炼金炉 - 冰与火 (Leafs Crucible - Ice and Fire)","CurseForge":"","Modrinth":"leafs-crucible-ice-and-fire"},{"Id":22485,"Name":"捕星者 (Starcatcher)","CurseForge":"starcatcher","Modrinth":"starcatcher"},{"Id":22486,"Name":"","CurseForge":"thermaloot","Modrinth":""},{"Id":22487,"Name":"","CurseForge":"rs-insert-export-upgrade","Modrinth":"rs-insert-export-upgrade"},{"Id":22488,"Name":"","CurseForge":"voidminer-forked","Modrinth":""},{"Id":22489,"Name":"","CurseForge":"sanguine-neural-networks","Modrinth":"sanguine-neural-networks"},{"Id":22490,"Name":"","CurseForge":"chiseler","Modrinth":"chiseler"},{"Id":22492,"Name":"","CurseForge":"","Modrinth":"mod-menu-bta"},{"Id":22493,"Name":"","CurseForge":"xp-cost","Modrinth":""},{"Id":22494,"Name":"","CurseForge":"shut-up-realms","Modrinth":"shut-up-realms"},{"Id":22495,"Name":"","CurseForge":"narrator","Modrinth":"narrator-legacy"},{"Id":22496,"Name":"","CurseForge":"mc-truststore","Modrinth":"mc-truststore"},{"Id":22497,"Name":"","CurseForge":"rlcraft-dregora-srp-arachnida-tweak","Modrinth":""},{"Id":22498,"Name":"","CurseForge":"broken-heart-undershirt-statistic","Modrinth":""},{"Id":22499,"Name":"","CurseForge":"stitchedsnow","Modrinth":"stitchedsnow"},{"Id":22500,"Name":"","CurseForge":"","Modrinth":"moderndeco"},{"Id":22502,"Name":"","CurseForge":"create-henry","Modrinth":"create-henry"},{"Id":22503,"Name":"","CurseForge":"recipe-history-addon-for-jei","Modrinth":"jei-recipe-history-addon-1.16.5"},{"Id":22504,"Name":"新生心智 (Proto Hivemind Girl)","CurseForge":"","Modrinth":"proto-hivemind-girl"},{"Id":22505,"Name":"","CurseForge":"wooden-tools-are-dumb","Modrinth":"wooden-tools-are-dumb"},{"Id":22506,"Name":"","CurseForge":"laserio-uel","Modrinth":""},{"Id":22507,"Name":"","CurseForge":"hamtastic-hamsters","Modrinth":"hamtastic-hamsters!"},{"Id":22508,"Name":"","CurseForge":"gateways-to-eternity-more-gateways","Modrinth":"gateways-to-eternity-more-gateways"},{"Id":22509,"Name":"","CurseForge":"cursed-earth-returns","Modrinth":""},{"Id":22510,"Name":"","CurseForge":"not-enough-trials","Modrinth":""},{"Id":22511,"Name":"","CurseForge":"orbital-railgun-reforged","Modrinth":""},{"Id":22515,"Name":"机械热力 (Create: Heat)","CurseForge":"create-heat","Modrinth":"create-heat"},{"Id":22516,"Name":"梦之咒 (Dream Enchantment)","CurseForge":"","Modrinth":"dream-enchantment"},{"Id":22517,"Name":"一直吃 (EatAlways)","CurseForge":"","Modrinth":"eatalways"},{"Id":22519,"Name":"伤害免疫机制重做 (ReHurtTime)","CurseForge":"rehurttime","Modrinth":"rehurttime"},{"Id":22520,"Name":"","CurseForge":"naraka","Modrinth":"naraka"},{"Id":22522,"Name":"","CurseForge":"minechem-working-with-better-builders-wands","Modrinth":""},{"Id":22523,"Name":"","CurseForge":"dungeons-mobs-port","Modrinth":""},{"Id":22524,"Name":"","CurseForge":"obtainable-end","Modrinth":"obtainable-end"},{"Id":22525,"Name":"","CurseForge":"slideshowplus","Modrinth":"slideshowplus"},{"Id":22526,"Name":"经典且简易的状态栏:重制版 (Classic and simple status bars rebuild)","CurseForge":"classic-and-simple-status-bars-rebuild","Modrinth":""},{"Id":22527,"Name":"","CurseForge":"","Modrinth":"the-last-crystal-cup"},{"Id":22528,"Name":"新版创建世界界面 (CreateWorldUI)","CurseForge":"createworldui","Modrinth":"crwui"},{"Id":22529,"Name":"","CurseForge":"","Modrinth":"whiteout"},{"Id":22530,"Name":"","CurseForge":"mining-quakes","Modrinth":"mining-quakes"},{"Id":22531,"Name":"","CurseForge":"tpw","Modrinth":"wenxingtpw"},{"Id":22532,"Name":"","CurseForge":"inspectability-forge","Modrinth":"hi-inspectability"},{"Id":22533,"Name":"","CurseForge":"","Modrinth":"orbital-railgun-sounds"},{"Id":22534,"Name":"","CurseForge":"beneathmixins","Modrinth":""},{"Id":22535,"Name":"","CurseForge":"cutting-delight","Modrinth":"cutting-delight"},{"Id":22536,"Name":"","CurseForge":"locate-command-backport","Modrinth":""},{"Id":22537,"Name":"","CurseForge":"the-copperier-age","Modrinth":"the-copperier-age"},{"Id":22538,"Name":"","CurseForge":"","Modrinth":"veinminer-client"},{"Id":22540,"Name":"","CurseForge":"","Modrinth":"vertigo"},{"Id":22541,"Name":"","CurseForge":"powercrystalscore","Modrinth":""},{"Id":22542,"Name":"暮色之魂 (TwilightSoul)","CurseForge":"twilightsoul","Modrinth":""},{"Id":22544,"Name":"终末地工业 (Endfield Industry)","CurseForge":"endfield-industry","Modrinth":"endfield-industry"},{"Id":22545,"Name":"模组分类器 (ModClassifier)","CurseForge":"modclassifier","Modrinth":""},{"Id":22546,"Name":"电能机枪豌豆 (Lightning Super Peashooter)","CurseForge":"lightningsuperpeashooter","Modrinth":""},{"Id":22547,"Name":"","CurseForge":"display-delight-fabric","Modrinth":"display-delight-fabric"},{"Id":22549,"Name":"生命精油 (Life Essential Oil)","CurseForge":"","Modrinth":"life-essential-oil"},{"Id":22550,"Name":"","CurseForge":"st-drive","Modrinth":"stdrive"},{"Id":22551,"Name":"阡陌交通 (RoadWeaver)","CurseForge":"roadweaver","Modrinth":"roadweaver"},{"Id":22552,"Name":"","CurseForge":"xemos-cluckshroom","Modrinth":""},{"Id":22553,"Name":"","CurseForge":"","Modrinth":"the-past-ages"},{"Id":22554,"Name":"","CurseForge":"take-back-the-night","Modrinth":"take-back-the-night"},{"Id":22555,"Name":"","CurseForge":"winds-of-requiem","Modrinth":"winds-of-requiem"},{"Id":22556,"Name":"","CurseForge":"classjs","Modrinth":"classjs"},{"Id":22557,"Name":"","CurseForge":"c3-blocks","Modrinth":"c3-blocks"},{"Id":22558,"Name":"","CurseForge":"","Modrinth":"allium"},{"Id":22559,"Name":"","CurseForge":"create-netherless-ported","Modrinth":"create-netherless-ported"},{"Id":22560,"Name":"","CurseForge":"mechanical-healing-machine","Modrinth":"mechanical-healing-machine"},{"Id":22561,"Name":"药水附魔 (PotionEnchant)","CurseForge":"","Modrinth":"potionenchant"},{"Id":22562,"Name":"通达路 (TongDaWay)","CurseForge":"tongda-way","Modrinth":""},{"Id":22564,"Name":"","CurseForge":"enigmatic-legacy-cursed-ring","Modrinth":""},{"Id":22565,"Name":"","CurseForge":"elemental-synergies","Modrinth":""},{"Id":22566,"Name":"","CurseForge":"simple-netherite-horse-armor","Modrinth":"simple-netherite-horse-armor"},{"Id":22567,"Name":"","CurseForge":"project-mmo-farmers-delight-compat","Modrinth":"project-mmo-farmers-delight"},{"Id":22568,"Name":"","CurseForge":"darling-decorations","Modrinth":"darling-decorations!"},{"Id":22569,"Name":"","CurseForge":"cute-n-sweet","Modrinth":"cute-n-sweet!"},{"Id":22570,"Name":"","CurseForge":"inspectability","Modrinth":"inspectability"},{"Id":22571,"Name":"","CurseForge":"crafttweakeradditions","Modrinth":"crafttweakeradditions"},{"Id":22572,"Name":"","CurseForge":"hunting-dimension-remake","Modrinth":""},{"Id":22573,"Name":"","CurseForge":"","Modrinth":"lootify-(structures)"},{"Id":22574,"Name":"随身仓库 (Portable Storage)","CurseForge":"portable-storage","Modrinth":"portable-storage"},{"Id":22575,"Name":"遇言典著 (LootStories)","CurseForge":"lootstories","Modrinth":""},{"Id":22576,"Name":"","CurseForge":"otherworld-core","Modrinth":""},{"Id":22577,"Name":"","CurseForge":"simple-corpse","Modrinth":""},{"Id":22578,"Name":"","CurseForge":"botania-mana-fluid","Modrinth":""},{"Id":22579,"Name":"","CurseForge":"create-ae-generator","Modrinth":""},{"Id":22580,"Name":"机械动力:物流附加 (Create: Additional Logistics)","CurseForge":"create-additional-logistics","Modrinth":"create-additional-logistics"},{"Id":22581,"Name":"铁魔法溢出射程修复 (Range Fix - Iron's Spells 'n Spellbooks)","CurseForge":"issrf-range-fix-irons-spells-n-spellbooks","Modrinth":""},{"Id":22582,"Name":"诡厄乐事 (Goety Delight)","CurseForge":"goety-delight","Modrinth":"goetydelight"},{"Id":22583,"Name":"高级小垃圾 (Advanced Little Garbage)","CurseForge":"advanced-little-garbage","Modrinth":"advanced_little_garbage"},{"Id":22584,"Name":"","CurseForge":"","Modrinth":"tpa-tp"},{"Id":22585,"Name":"MITE:宁静 (MITE: Equilibrium)","CurseForge":"","Modrinth":"miteequilibrium"},{"Id":22586,"Name":"Tetra磨刀石 (TetraWhetstone)","CurseForge":"tetrawhetstone","Modrinth":""},{"Id":22587,"Name":"龙之生存:夺脑龙 (Brain Stealer Dragon - Addon)","CurseForge":"brain-stealer-dragon-addon","Modrinth":""},{"Id":22588,"Name":"","CurseForge":"official-epic-fight-x-parcool","Modrinth":"official-epic-x-parcool"},{"Id":22589,"Name":"跳跳效率 (Jump Efficiency)","CurseForge":"jump-efficiency","Modrinth":""},{"Id":22590,"Name":"","CurseForge":"smooth-scrolling-reforged","Modrinth":""},{"Id":22592,"Name":"","CurseForge":"one-enough-fluid","Modrinth":"one-enough-fluid"},{"Id":22593,"Name":"","CurseForge":"jerksteve","Modrinth":"jerksteve"},{"Id":22595,"Name":"","CurseForge":"ydms-mobhealthbar-mod","Modrinth":"ydms-mobhealthbar"},{"Id":22596,"Name":"","CurseForge":"otherworld-origins","Modrinth":""},{"Id":22597,"Name":"","CurseForge":"dragon-mounts-patches","Modrinth":"dragon-mounts-patches"},{"Id":22598,"Name":"","CurseForge":"gregtech-modern-ore-generation-standalone","Modrinth":"gtmogs"},{"Id":22599,"Name":"","CurseForge":"cape-banners","Modrinth":""},{"Id":22600,"Name":"","CurseForge":"bftp","Modrinth":"blast-from-the-past"},{"Id":22601,"Name":"","CurseForge":"compact-crafting-updated","Modrinth":""},{"Id":22602,"Name":"应用凿子 (AppliedChisel)","CurseForge":"appliedchisel","Modrinth":""},{"Id":22603,"Name":"","CurseForge":"item-obliterator-despawn-fix","Modrinth":""},{"Id":22604,"Name":"","CurseForge":"","Modrinth":"borukva-food"},{"Id":22605,"Name":"","CurseForge":"dynamic-difficulty-mod","Modrinth":""},{"Id":22606,"Name":"","CurseForge":"obituary-exchange","Modrinth":""},{"Id":22607,"Name":"","CurseForge":"from-the-caves","Modrinth":"from-the-caves-official"},{"Id":22608,"Name":"","CurseForge":"lumen-alveary-patch","Modrinth":""},{"Id":22609,"Name":"","CurseForge":"configurable-tooltips","Modrinth":""},{"Id":22610,"Name":"模组列表记忆 (Mod List Memory)","CurseForge":"modlistmemory","Modrinth":"modlistmemory"},{"Id":22611,"Name":"","CurseForge":"macu-lib","Modrinth":"macu-lib"},{"Id":22613,"Name":"","CurseForge":"better-end-crashed-ships-tweaks","Modrinth":"betterend-crashed-ships-tweaks"},{"Id":22615,"Name":"无洞穴 (No Caves Mod)","CurseForge":"no-caves-mod","Modrinth":"no-caves-mod"},{"Id":22616,"Name":"","CurseForge":"simply-desire-paths","Modrinth":""},{"Id":22617,"Name":"","CurseForge":"happy-ghasts-boost","Modrinth":"happy-ghasts-boost"},{"Id":22618,"Name":"自定义大逃杀扩展 (CBR Addon)","CurseForge":"cbr-addon","Modrinth":"cbr-addon"},{"Id":22619,"Name":"","CurseForge":"compact-expansion","Modrinth":""},{"Id":22620,"Name":"盔甲快速切换 (Armor Quick Swap)","CurseForge":"armor-quick-swap","Modrinth":"armor-quick-swap"},{"Id":22622,"Name":"混合切制 (Mixing and Cutting!)","CurseForge":"mixing-and-cutting","Modrinth":"mixing_and_cutting!"},{"Id":22623,"Name":"拼好组 (Yumo isk-Stackstackstack)","CurseForge":"yumo-isk-stackstackstack","Modrinth":""},{"Id":22625,"Name":"面食 (Flour Food)","CurseForge":"flourfood","Modrinth":""},{"Id":22627,"Name":"AE2可切换显示原件-Neo (Neo AE2 Toogleable View Cell)","CurseForge":"neo-ae2-toogleable-view-cell","Modrinth":"neo-ae2-toogleable-view-cell"},{"Id":22628,"Name":"更多Tetra工具 (More Tetra Tools)","CurseForge":"mtt-more-tetra-tools-new","Modrinth":""},{"Id":22630,"Name":"","CurseForge":"compat-delight","Modrinth":"compat-delight"},{"Id":22633,"Name":"","CurseForge":"thermal-processing","Modrinth":""},{"Id":22634,"Name":"","CurseForge":"botanical-machinery-extra-reforked","Modrinth":""},{"Id":22635,"Name":"","CurseForge":"botanical-machinery-reforked","Modrinth":""},{"Id":22636,"Name":"","CurseForge":"armorplus-reforged","Modrinth":""},{"Id":22638,"Name":"","CurseForge":"","Modrinth":"better_tooltips"},{"Id":22639,"Name":"","CurseForge":"","Modrinth":"ironmanarmor"},{"Id":22640,"Name":"","CurseForge":"vs-genesis","Modrinth":"vs-genesis"},{"Id":22641,"Name":"元素赋予 (Element Endow)","CurseForge":"element-endow","Modrinth":""},{"Id":22642,"Name":"","CurseForge":"resource-bar-api","Modrinth":"resource-bar-api"},{"Id":22643,"Name":"诡厄铁魔法 (Goety Iron)","CurseForge":"goety-iron","Modrinth":""},{"Id":22644,"Name":"恙 - 疫恙待诊 (I Feel Bad)","CurseForge":"i-feel-bad","Modrinth":"i-feel-bad"},{"Id":22645,"Name":"","CurseForge":"","Modrinth":"backoff"},{"Id":22647,"Name":"","CurseForge":"mc-mods-creepypasta-in-one","Modrinth":"all-creepypasta-in-one"},{"Id":22648,"Name":"禁用结构 (Disable Structures)","CurseForge":"disable-structures","Modrinth":"disable-structures"},{"Id":22649,"Name":"","CurseForge":"windowlogging-renewed","Modrinth":""},{"Id":22650,"Name":"","CurseForge":"leaderboards","Modrinth":""},{"Id":22651,"Name":"信标龙蛋 (Beacon Dragon Egg)","CurseForge":"","Modrinth":"beacon-dragon-egg"},{"Id":22652,"Name":"女仆旅行相机 (Maid Travel Camera)","CurseForge":"maid-travel-camera","Modrinth":""},{"Id":22653,"Name":"","CurseForge":"nieih","Modrinth":"nieih"},{"Id":22655,"Name":"","CurseForge":"origins-furs-updated","Modrinth":"origins-furs-updated"},{"Id":22656,"Name":"匠械 (Tinkers' Gears)","CurseForge":"tinkers-gears","Modrinth":"tinkers-gears"},{"Id":22658,"Name":"","CurseForge":"moreeverything","Modrinth":""},{"Id":22659,"Name":"","CurseForge":"epic-fight-skill-tree","Modrinth":"epic-fight-skill-tree"},{"Id":22660,"Name":"","CurseForge":"dtk-update","Modrinth":"pale-lively-update"},{"Id":22661,"Name":"魔力剑聚晶Tetra兼容 (GoetyTetraFix)","CurseForge":"goety-tetra-fix","Modrinth":""},{"Id":22662,"Name":"","CurseForge":"otherworld-apotheosis","Modrinth":""},{"Id":22663,"Name":"","CurseForge":"mana-attributes","Modrinth":"mana-attributes"},{"Id":22664,"Name":"","CurseForge":"azalea-growth-control","Modrinth":"azalea-growth-control"},{"Id":22665,"Name":"","CurseForge":"natural-waters","Modrinth":"natural-waters"},{"Id":22666,"Name":"","CurseForge":"health-bars","Modrinth":"new-health-bars"},{"Id":22667,"Name":"","CurseForge":"enchantment-insights","Modrinth":"enchantment-insights"},{"Id":22668,"Name":"","CurseForge":"bloomcraft","Modrinth":"bloomcraft"},{"Id":22669,"Name":"","CurseForge":"bmc-pale-garden-patcher","Modrinth":""},{"Id":22670,"Name":"","CurseForge":"","Modrinth":"polluted-rain"},{"Id":22671,"Name":"","CurseForge":"modernfix-mvus","Modrinth":"modernfix-mvus"},{"Id":22672,"Name":"","CurseForge":"stutterfix-refursbished","Modrinth":"stutterfix-refurbished"},{"Id":22673,"Name":"","CurseForge":"noisiumforked","Modrinth":"noisiumforked"},{"Id":22674,"Name":"","CurseForge":"golems-kill-creepers","Modrinth":"golemskillcreepers"},{"Id":22675,"Name":"","CurseForge":"no-animal-tempt-delay","Modrinth":"no-animal-tempt-delay"},{"Id":22677,"Name":"","CurseForge":"pixelshot","Modrinth":""},{"Id":22679,"Name":"","CurseForge":"changeling","Modrinth":""},{"Id":22680,"Name":"","CurseForge":"ancient-scribes","Modrinth":""},{"Id":22681,"Name":"假面骑士补完计划 (Kamen Rider Completion Plan)","CurseForge":"kamenridercompletionplan","Modrinth":"kamenridercompletionplan"},{"Id":22682,"Name":"法厄通 (Goety Iron Link)","CurseForge":"goety-iron-link","Modrinth":""},{"Id":22683,"Name":"","CurseForge":"superaim","Modrinth":""},{"Id":22685,"Name":"Tacz 属性添加 (TaczAttributeAdd)","CurseForge":"taczattributeadd","Modrinth":"taczattributeadd"},{"Id":22686,"Name":"以物易币 (ItemToCoin)","CurseForge":"","Modrinth":"itemtocoin"},{"Id":22687,"Name":"宠物石 (Pet Rock™)","CurseForge":"pet-rocktm","Modrinth":""},{"Id":22688,"Name":"","CurseForge":"gunfire-overhaul-echoes-of-the-battlefield","Modrinth":""},{"Id":22689,"Name":"","CurseForge":"stamina-attributes","Modrinth":"stamina-attributes"},{"Id":22690,"Name":"","CurseForge":"clanging-howl","Modrinth":""},{"Id":22691,"Name":"边狱公司:麦块部门 (Limbus Company Mine Section)","CurseForge":"limbus-company-mod-lcm","Modrinth":""},{"Id":22693,"Name":"真实鸟类行为 (Realistic Bird Behavior)","CurseForge":"realistic-bird-behavior","Modrinth":"realistic-bird-behavior"},{"Id":22694,"Name":"翼麒麟 (Wing Kirin)","CurseForge":"wing-kirin","Modrinth":""},{"Id":22695,"Name":"","CurseForge":"mcheli-reforged-mch-r","Modrinth":""},{"Id":22699,"Name":"神秘遗物+ (Enigmatic Legacy+)","CurseForge":"enigmatic-legacy-plus","Modrinth":"enigmaticlegacy+"},{"Id":22702,"Name":"","CurseForge":"novacore","Modrinth":"novacore"},{"Id":22703,"Name":"雪月核心 (Snowy Crescent Core)","CurseForge":"snowycrescentcore","Modrinth":"snowycrescentcore"},{"Id":22704,"Name":"","CurseForge":"hostile-neural-industrialization","Modrinth":"hostile-neural-industrialization"},{"Id":22705,"Name":"","CurseForge":"clockwork","Modrinth":"clockwork_mod"},{"Id":22706,"Name":"","CurseForge":"vista","Modrinth":"vista_tv"},{"Id":22707,"Name":"","CurseForge":"kismet","Modrinth":""},{"Id":22708,"Name":"","CurseForge":"sea-life","Modrinth":"new-sea-life"},{"Id":22709,"Name":"","CurseForge":"armored-foes","Modrinth":"armored-foes"},{"Id":22710,"Name":"","CurseForge":"vehicle-upgrade","Modrinth":"vehicle-upgrade"},{"Id":22711,"Name":"","CurseForge":"party-creepers","Modrinth":"party-creepers"},{"Id":22712,"Name":"","CurseForge":"mc-mods-the-heads","Modrinth":"all-the-heads"},{"Id":22713,"Name":"","CurseForge":"fantastic-wings","Modrinth":"fantastic-wings"},{"Id":22714,"Name":"","CurseForge":"village-masquerade","Modrinth":"village-masquerade"},{"Id":22715,"Name":"","CurseForge":"new-shroomcraft","Modrinth":"shroomcraft"},{"Id":22716,"Name":"","CurseForge":"tinker-and-better-combat","Modrinth":""},{"Id":22718,"Name":"","CurseForge":"extralib","Modrinth":"extralib"},{"Id":22719,"Name":"","CurseForge":"whats-your-build","Modrinth":""},{"Id":22720,"Name":"","CurseForge":"where-did-i-die","Modrinth":"where-did-i-die"},{"Id":22722,"Name":"","CurseForge":"tooltips-txf","Modrinth":"tooltips-txf"},{"Id":22723,"Name":"","CurseForge":"","Modrinth":"allow-disconnect"},{"Id":22724,"Name":"注视锁定 (Target Lock)","CurseForge":"target-locks","Modrinth":""},{"Id":22725,"Name":"","CurseForge":"fleeing-animals","Modrinth":"fleeing-animals"},{"Id":22726,"Name":"和平方块 (PeaceGiver)","CurseForge":"peacegiver","Modrinth":""},{"Id":22727,"Name":"","CurseForge":"better-books","Modrinth":"better-enchantment-tooltips"},{"Id":22728,"Name":"","CurseForge":"","Modrinth":"chest-on-a-ghast"},{"Id":22730,"Name":"通用意见反馈 (General Feedback)","CurseForge":"general-feedback","Modrinth":"general-feedback"},{"Id":22731,"Name":"","CurseForge":"raid-counter","Modrinth":"raid-counter"},{"Id":22732,"Name":"","CurseForge":"modern-startup-qol-reforked","Modrinth":""},{"Id":22733,"Name":"","CurseForge":"loot-integrations-dungeon-crawl","Modrinth":""},{"Id":22734,"Name":"","CurseForge":"vanilla-loot-addon-for-loot-integrations","Modrinth":""},{"Id":22735,"Name":"","CurseForge":"loot-integrations-cataclysm","Modrinth":""},{"Id":22736,"Name":"","CurseForge":"aquamirae-x-better-combat-compatibility","Modrinth":""},{"Id":22737,"Name":"","CurseForge":"ice-and-fire-dragons-x-better-combat","Modrinth":"ice-and-fire-dragons-x-better-combat"},{"Id":22738,"Name":"","CurseForge":"eternal-currencies","Modrinth":""},{"Id":22739,"Name":"","CurseForge":"comfortable-campfires","Modrinth":"comfortable-campfires"},{"Id":22740,"Name":"","CurseForge":"embers-floating-islands","Modrinth":"embers-floating-islands"},{"Id":22741,"Name":"","CurseForge":"farmers-cutting-oh-the-biomes-weve-gone","Modrinth":""},{"Id":22742,"Name":"","CurseForge":"beds-dont-explode","Modrinth":""},{"Id":22743,"Name":"","CurseForge":"enchantment-library-at-home","Modrinth":""},{"Id":22744,"Name":"","CurseForge":"turtlearmor","Modrinth":""},{"Id":22745,"Name":"","CurseForge":"wandering-collector-forge","Modrinth":"wandering-collector-forge"},{"Id":22747,"Name":"","CurseForge":"jaffactory","Modrinth":""},{"Id":22748,"Name":"","CurseForge":"horses-can-swim","Modrinth":"swimming-horses-forge"},{"Id":22749,"Name":"","CurseForge":"mob-population-control","Modrinth":""},{"Id":22750,"Name":"","CurseForge":"blighted-beasts","Modrinth":""},{"Id":22751,"Name":"魔女的扫帚-Fabric移植版 (Majo's Broom)","CurseForge":"","Modrinth":"the-witchs-broom"},{"Id":22753,"Name":"属性雕刻家 (Attribute Sculptor)","CurseForge":"attribute-sculptor","Modrinth":""},{"Id":22754,"Name":"无纹理旋转 (NoTextureRotations)","CurseForge":"notexturerotations","Modrinth":"notexturerotations"},{"Id":22755,"Name":"","CurseForge":"baked-enchants","Modrinth":""},{"Id":22756,"Name":"","CurseForge":"","Modrinth":"priority"},{"Id":22757,"Name":"","CurseForge":"combatproperties","Modrinth":""},{"Id":22759,"Name":"","CurseForge":"judgement-day","Modrinth":""},{"Id":22760,"Name":"","CurseForge":"","Modrinth":"origins-plus"},{"Id":22764,"Name":"","CurseForge":"dynamic-rpg-resource-bars","Modrinth":"dynamic-resource-bars"},{"Id":22765,"Name":"","CurseForge":"lwjgl3ify-colorful","Modrinth":"lwjgl3ify-1.12"},{"Id":22766,"Name":"叁玖库 (Lib39)","CurseForge":"lib-39","Modrinth":"lib-39"},{"Id":22768,"Name":"简单的纸娃娃 (Simple Paper Doll)","CurseForge":"","Modrinth":"simple-paper-doll"},{"Id":22770,"Name":"","CurseForge":"","Modrinth":"destroying-minecraft"},{"Id":22772,"Name":"奖杯模组 (Trophy Mod)","CurseForge":"","Modrinth":"trophymod"},{"Id":22773,"Name":"","CurseForge":"create-brassworks-missions","Modrinth":"create-brassworks-missions"},{"Id":22774,"Name":"","CurseForge":"elysian-event","Modrinth":""},{"Id":22775,"Name":"","CurseForge":"sticky-enchanting-lapis","Modrinth":"sticky-enchanting-lapis"},{"Id":22776,"Name":"","CurseForge":"hungry-pouches","Modrinth":""},{"Id":22777,"Name":"","CurseForge":"antiquities","Modrinth":"antiquities"},{"Id":22779,"Name":"","CurseForge":"pams-harvest-the-nether","Modrinth":""},{"Id":22780,"Name":"","CurseForge":"certain-questing-additions","Modrinth":"certain-questing-additions"},{"Id":22781,"Name":"Alex生物衣壳体修复 (Alex's Mobs Capsid Fix)","CurseForge":"alexs-mobs-capsid-fix","Modrinth":""},{"Id":22782,"Name":"跑酷技能 (ParCoolSkill)","CurseForge":"parcoolskill","Modrinth":"parcoolskill"},{"Id":22783,"Name":"","CurseForge":"merchantjs","Modrinth":"merchantjs"},{"Id":22784,"Name":"","CurseForge":"fetchjs","Modrinth":"fetchjs"},{"Id":22785,"Name":"万象瑞雪 (All the Mafuyu)","CurseForge":"mc-mods-the-mafuyu","Modrinth":"all-the-mafuyu"},{"Id":22786,"Name":"","CurseForge":"goety-end-biomes","Modrinth":""},{"Id":22787,"Name":"结构生成区域修复 (Structure Spawn Area Fix)","CurseForge":"structure-spawn-area-fix","Modrinth":"structure-spawn-area-fix"},{"Id":22788,"Name":"","CurseForge":"aloof-new","Modrinth":"aloof"},{"Id":22788,"Name":"Aloof! - 旧版","CurseForge":"aloof","Modrinth":""},{"Id":22790,"Name":"","CurseForge":"armory-rpg-series","Modrinth":"armory-rpg-series"},{"Id":22791,"Name":"","CurseForge":"moving-light-source","Modrinth":"moving-light-source"},{"Id":22792,"Name":"","CurseForge":"ftb-mighty-ender-chicken-rehatched","Modrinth":""},{"Id":22793,"Name":"","CurseForge":"cyborg-robot-chicken-returns","Modrinth":"cyborg-robot-chicken-returns"},{"Id":22794,"Name":"龙翅膀 (Dragon Wings)","CurseForge":"dragon-wings","Modrinth":"dragon-wings-09"},{"Id":22796,"Name":"","CurseForge":"furnitures-o-plenty","Modrinth":"furnitures-o-plenty"},{"Id":22797,"Name":"","CurseForge":"windswept-delights","Modrinth":"windswept-delights"},{"Id":22798,"Name":"","CurseForge":"beltborne-lanterns-accessories-layer","Modrinth":"beltborne-lanterns-accessories-layer"},{"Id":22799,"Name":"","CurseForge":"beltborne-lanterns","Modrinth":"beltborne-lanterns"},{"Id":22800,"Name":"","CurseForge":"mesophils-cities","Modrinth":"mesophils-cities"},{"Id":22801,"Name":"","CurseForge":"mesophils-cities-classic","Modrinth":""},{"Id":22802,"Name":"","CurseForge":"villagers-reborn","Modrinth":"villagers-reborn"},{"Id":22803,"Name":"","CurseForge":"","Modrinth":"simple-player-logger"},{"Id":22804,"Name":"","CurseForge":"mint-lib","Modrinth":"mint-lib"},{"Id":22805,"Name":"更好的鱼缸 (Better Fishtanks)","CurseForge":"better-fishtanks","Modrinth":"better-fishtanks"},{"Id":22806,"Name":"","CurseForge":"","Modrinth":"roman-minimap"},{"Id":22807,"Name":"加速碰撞 (Accelerated Recoiling)","CurseForge":"accelerated-recoiling","Modrinth":"accelerated-recoiling"},{"Id":22808,"Name":"谢个蛋/鸡谢动力 (Thank Your Eggs)","CurseForge":"thank-your-eggs","Modrinth":""},{"Id":22809,"Name":"星穹铁道:末日幻影 (Star Rail: Apocalyptic Shadow)","CurseForge":"star-rail-apocalyptic-shadow","Modrinth":""},{"Id":22810,"Name":"","CurseForge":"unusual-adventures","Modrinth":""},{"Id":22811,"Name":"","CurseForge":"gui-scaler","Modrinth":"auto-gui-scaler"},{"Id":22812,"Name":"","CurseForge":"ae2-id-sorter","Modrinth":""},{"Id":22813,"Name":"魔女论破 (DespairBook)","CurseForge":"","Modrinth":"danganronpa"},{"Id":22814,"Name":"女仆归心 (Maid's Return)","CurseForge":"maids-return","Modrinth":"maids-return"},{"Id":22815,"Name":"","CurseForge":"boosted-brightness-remastered","Modrinth":"boosted-brightness-remastered"},{"Id":22816,"Name":"","CurseForge":"helpfulcampfires","Modrinth":"helpfulcampfires"},{"Id":22817,"Name":"","CurseForge":"geophilic-backport-vanilla-backport-compact","Modrinth":""},{"Id":22818,"Name":"","CurseForge":"nexus-layer","Modrinth":""},{"Id":22819,"Name":"","CurseForge":"zipline","Modrinth":"zipline"},{"Id":22820,"Name":"","CurseForge":"fathomless-crimson","Modrinth":""},{"Id":22821,"Name":"","CurseForge":"","Modrinth":"hexconnect"},{"Id":22822,"Name":"","CurseForge":"phase-journey","Modrinth":""},{"Id":22823,"Name":"","CurseForge":"lucky-pot","Modrinth":""},{"Id":22824,"Name":"附魔控制器 (Enchantment Controller)","CurseForge":"","Modrinth":"enchantment-controller"},{"Id":22825,"Name":"","CurseForge":"auroraslanterns","Modrinth":"auroraslanterns"},{"Id":22826,"Name":"","CurseForge":"pocket-repose","Modrinth":"pocket-repose"},{"Id":22827,"Name":"","CurseForge":"fishing-plus","Modrinth":"fishing+"},{"Id":22828,"Name":"","CurseForge":"chaoscrafts-devices","Modrinth":"chaoscrafts-devices"},{"Id":22829,"Name":"","CurseForge":"obsessed","Modrinth":"obsessed"},{"Id":22830,"Name":"","CurseForge":"arsenal-rpg-series","Modrinth":"arsenal-rpg-series"},{"Id":22831,"Name":"模组变更记录 (Mod Change Log)","CurseForge":"mod-change-log","Modrinth":""},{"Id":22832,"Name":"实体发光 (Entity Glow (Backport))","CurseForge":"","Modrinth":"entity-glow"},{"Id":22833,"Name":"精妙整理 (Sophisticated Sorter)","CurseForge":"sophisticated-sorter","Modrinth":"sophisticated-sorter"},{"Id":22834,"Name":"","CurseForge":"abi-forge","Modrinth":""},{"Id":22834,"Name":"","CurseForge":"abi-fabric","Modrinth":""},{"Id":22835,"Name":"","CurseForge":"display-edit","Modrinth":""},{"Id":22836,"Name":"","CurseForge":"arthys-elemental-engine-aee-forge","Modrinth":""},{"Id":22837,"Name":"","CurseForge":"bobby-legacy","Modrinth":"bobby-legacy"},{"Id":22838,"Name":"","CurseForge":"ambience-mini","Modrinth":""},{"Id":22839,"Name":"","CurseForge":"arthys-ebonite-ae-forge","Modrinth":""},{"Id":22840,"Name":"","CurseForge":"enigmatic-arcana","Modrinth":""},{"Id":22841,"Name":"通用机械:更多机械 (Mekanism-CE-Unofficial-MoreMachine)","CurseForge":"mekanismceu-moremachine","Modrinth":""},{"Id":22842,"Name":"","CurseForge":"optifine-cit-enchantment-patch","Modrinth":"optifine-cit-patch"},{"Id":22843,"Name":"控制器支持 (Controller Support Mod)","CurseForge":"controller-mod","Modrinth":"controllermod"},{"Id":22844,"Name":"","CurseForge":"new-enchantment-switch","Modrinth":"enchantment-switch"},{"Id":22845,"Name":"","CurseForge":"ftgu-from-the-ground-up","Modrinth":"from-the-ground-up"},{"Id":22846,"Name":"","CurseForge":"options-profiles","Modrinth":"options-profiles"},{"Id":22847,"Name":"","CurseForge":"forgematicaprinter","Modrinth":"forgematicaprinter"},{"Id":22848,"Name":"","CurseForge":"better-biome-blend-continued","Modrinth":"better-biome-blend-continued"},{"Id":22849,"Name":"","CurseForge":"furnace-xp-storage","Modrinth":"furnace-xp-storage"},{"Id":22850,"Name":"","CurseForge":"recased","Modrinth":"recased"},{"Id":22852,"Name":"元质学 (Elemenics)","CurseForge":"elemenics","Modrinth":""},{"Id":22853,"Name":"","CurseForge":"pale-bloom","Modrinth":""},{"Id":22854,"Name":"","CurseForge":"zip-fetcher","Modrinth":"zip-fetcher"},{"Id":22855,"Name":"","CurseForge":"create-kinetic-illuminator","Modrinth":"create-kinetic-illuminator"},{"Id":22856,"Name":"","CurseForge":"","Modrinth":"tagban"},{"Id":22858,"Name":"交易优化 (Trade Tweaks)","CurseForge":"trade-tweaks","Modrinth":"trade-tweaks"},{"Id":22861,"Name":"","CurseForge":"bryszirake","Modrinth":""},{"Id":22862,"Name":"","CurseForge":"no-worldgen-5-you","Modrinth":"no-worldgen-5-you"},{"Id":22863,"Name":"","CurseForge":"no-worldgen-5-you-continued","Modrinth":"no-worldgen-5-you-continued"},{"Id":22864,"Name":"","CurseForge":"spiral-tower-villages","Modrinth":"spiral-tower-villages"},{"Id":22865,"Name":"","CurseForge":"care-to-share","Modrinth":"care-to-share"},{"Id":22866,"Name":"仓鼠模组 (Hamster Mod)","CurseForge":"","Modrinth":"hamstermod"},{"Id":22867,"Name":"静态TNT (StaticTNT)","CurseForge":"","Modrinth":"statictnt"},{"Id":22868,"Name":"","CurseForge":"floating-damage-numbers","Modrinth":""},{"Id":22869,"Name":"语音消息 (Voice Messages)","CurseForge":"voice-messages","Modrinth":""},{"Id":22870,"Name":"","CurseForge":"millmix-remixined","Modrinth":""},{"Id":22872,"Name":"园林耕作 (Garden Farming)","CurseForge":"","Modrinth":"garden-farming"},{"Id":22873,"Name":"群峦农艺 ([Let's Do] TFC Farm Charm)","CurseForge":"lets-do-tfc-farm-charm","Modrinth":""},{"Id":22874,"Name":"随意骑乘 (Ride Casually)","CurseForge":"ride-casually","Modrinth":"ride-casually"},{"Id":22876,"Name":"夜视修复 (Night Repair)","CurseForge":"night-repair","Modrinth":"night-repair"},{"Id":22883,"Name":"起源JS (OriginJs)","CurseForge":"originjs","Modrinth":""},{"Id":22885,"Name":"","CurseForge":"ancient-nature-a-prehistoric-experience","Modrinth":""},{"Id":22886,"Name":"更多Tetra词条 (More Tetra Effects)","CurseForge":"mte-more-tetra-effects","Modrinth":""},{"Id":22887,"Name":"","CurseForge":"","Modrinth":"vertical-bobbing"},{"Id":22888,"Name":"","CurseForge":"extraquests","Modrinth":"extraquests"},{"Id":22889,"Name":"崩溃漏洞修复 (CrashExploitFixer)","CurseForge":"crashexploitfixer","Modrinth":"crashexploitfixer"},{"Id":22890,"Name":"","CurseForge":"sticky-it","Modrinth":""},{"Id":22891,"Name":"你有宝! (You Have Treasure!)","CurseForge":"you-have-treasure","Modrinth":"you-have-treasure"},{"Id":22892,"Name":"","CurseForge":"nether-portal-configurator","Modrinth":""},{"Id":22893,"Name":"熔岩清道夫 (LavaSweeper)","CurseForge":"lavasweeper","Modrinth":"lavasweeper"},{"Id":22894,"Name":"","CurseForge":"","Modrinth":"more-people"},{"Id":22895,"Name":"简单地形改进 (Simply Improved Terrain)","CurseForge":"simply-improved-terrain","Modrinth":""},{"Id":22895,"Name":"简单地形改进 (Simply Improved Terrain)","CurseForge":"simply-improved-terrain-fabric","Modrinth":""},{"Id":22897,"Name":"","CurseForge":"faewulfs-lib","Modrinth":"faewulfslib"},{"Id":22898,"Name":"","CurseForge":"mce2-lib","Modrinth":""},{"Id":22899,"Name":"超多生物群系往昔重生 & 矿石种植工艺 (Biomes O' Plenty Legacy Reborn & Croparium)","CurseForge":"bop-legacy-reborn-croparium","Modrinth":"bop-legacy-reborn-croparium"},{"Id":22900,"Name":"魔戒:重置 (LOTR Reworked)","CurseForge":"lotr-reworked-new-beginning","Modrinth":"lotr-reworked-new-beginning"},{"Id":22901,"Name":"海带肥料 (Kelp Fertilizer)","CurseForge":"kelp-fertilizer","Modrinth":"kelp-fertilizer"},{"Id":22902,"Name":"水晶之翼 (CrystalWing)","CurseForge":"crystalwing","Modrinth":""},{"Id":22903,"Name":"","CurseForge":"","Modrinth":"label-my-items"},{"Id":22904,"Name":"","CurseForge":"lightoverlay","Modrinth":"lightoverlay"},{"Id":22905,"Name":"","CurseForge":"rcw","Modrinth":"rcw"},{"Id":22908,"Name":"","CurseForge":"obituary","Modrinth":""},{"Id":22909,"Name":"","CurseForge":"worn-horseshoes","Modrinth":"wornhorseshoes"},{"Id":22910,"Name":"","CurseForge":"antiqueatlasautomarker","Modrinth":""},{"Id":22911,"Name":"","CurseForge":"connectorlib","Modrinth":"connectorlib"},{"Id":22912,"Name":"","CurseForge":"milkable-creepers","Modrinth":""},{"Id":22913,"Name":"","CurseForge":"","Modrinth":"villager-clothes"},{"Id":22914,"Name":"","CurseForge":"monsters-girls-witchy-stuff","Modrinth":""},{"Id":22915,"Name":"盖亚魔法 (Grimoire of Gaia Spells)","CurseForge":"grimoire-of-gaia-spells","Modrinth":""},{"Id":22916,"Name":"Psi-奇思妙想 (Psi Oddities)","CurseForge":"psi-oddities","Modrinth":""},{"Id":22917,"Name":"","CurseForge":"","Modrinth":"schempaste"},{"Id":22918,"Name":"挖掘进度 HUD (Mining Progress HUD)","CurseForge":"mining-progress-hud","Modrinth":""},{"Id":22919,"Name":"","CurseForge":"creativetabs","Modrinth":"creativetabsplus"},{"Id":22920,"Name":"","CurseForge":"create-missiles","Modrinth":"create-missiles"},{"Id":22923,"Name":"","CurseForge":"nuclear-bomb-bay","Modrinth":"nuclear-bomb-bay"},{"Id":22924,"Name":"","CurseForge":"lightning-rod-backport","Modrinth":""},{"Id":22925,"Name":"","CurseForge":"complicated-bees","Modrinth":"complicated-bees"},{"Id":22926,"Name":"沃尔顿的刌民 (Werden's Illager +)","CurseForge":"werdens-illagers","Modrinth":""},{"Id":22927,"Name":"","CurseForge":"thaumic-attempts","Modrinth":""},{"Id":22928,"Name":"","CurseForge":"horseshoes-forge","Modrinth":""},{"Id":22929,"Name":"","CurseForge":"replication-matter-overflow-tank","Modrinth":""},{"Id":22930,"Name":"","CurseForge":"spaceploitation","Modrinth":""},{"Id":22933,"Name":"","CurseForge":"pathfinder-api","Modrinth":"pathfinder-api"},{"Id":22934,"Name":"","CurseForge":"no-resource-pack-warnings-forge","Modrinth":"no-resource-pack-warnings-forge"},{"Id":22935,"Name":"DBC扩展 (DBC-Expansion)","CurseForge":"dbc-expansion","Modrinth":""},{"Id":22936,"Name":"砧板乐事 (Pro Assistant Cutting Board)","CurseForge":"cutt-promix","Modrinth":"cutt_promix"},{"Id":22937,"Name":"脏碗乐事 (Dirty Bowls Delight)","CurseForge":"dirty-bowls-delight","Modrinth":""},{"Id":22938,"Name":"遗体调整 (CorpseTweaker)","CurseForge":"corpsetweaker","Modrinth":"corpse-tweaker"},{"Id":22939,"Name":"便捷接口 (Convenient Interface)","CurseForge":"convenient-interface","Modrinth":""},{"Id":22940,"Name":"","CurseForge":"brimm-armors-tactical-military-armors","Modrinth":""},{"Id":22941,"Name":"","CurseForge":"","Modrinth":"the-shadow-tapes"},{"Id":22942,"Name":"","CurseForge":"starter-bunker","Modrinth":""},{"Id":22943,"Name":"","CurseForge":"shortbow-revamped","Modrinth":""},{"Id":22944,"Name":"","CurseForge":"places","Modrinth":"places"},{"Id":22945,"Name":"","CurseForge":"pets-pillage","Modrinth":""},{"Id":22946,"Name":"连锁撤回 (Ultimine Rewind)","CurseForge":"ultimine-rewind","Modrinth":"ultimine-rewind"},{"Id":22947,"Name":"","CurseForge":"project-time-master","Modrinth":""},{"Id":22949,"Name":"","CurseForge":"let-me-click-and-send-for-server","Modrinth":"let-me-click-and-send-for-server"},{"Id":22950,"Name":"","CurseForge":"extra-hoppers","Modrinth":"extra-hoppers"},{"Id":22951,"Name":"","CurseForge":"quick-pack","Modrinth":"quick-pack"},{"Id":22952,"Name":"","CurseForge":"armored-paws-backport","Modrinth":"wolf-armor-backport"},{"Id":22955,"Name":"","CurseForge":"create-mining-laser","Modrinth":""},{"Id":22956,"Name":"机械动力:谁动了我的列车! (Create: Who Touched My Train!)","CurseForge":"create-who-touched-my-train","Modrinth":"create-who-touched-my-train"},{"Id":22957,"Name":"","CurseForge":"","Modrinth":"so-lets-set-the-ore-on-fire"},{"Id":22958,"Name":"","CurseForge":"tab","Modrinth":""},{"Id":22959,"Name":"","CurseForge":"armor-tooltip","Modrinth":""},{"Id":22960,"Name":"","CurseForge":"modefite-item-definition-backport","Modrinth":"modefite-item-definition-backport"},{"Id":22961,"Name":"","CurseForge":"hobbit-hill-village","Modrinth":"hobbit-hill-village"},{"Id":22962,"Name":"","CurseForge":"alexs-caves-better-combat","Modrinth":"alexs-caves-better-combat"},{"Id":22964,"Name":"","CurseForge":"mc-modstheimbaium","Modrinth":""},{"Id":22965,"Name":"","CurseForge":"storage-drawers-extra-reloaded","Modrinth":""},{"Id":22966,"Name":"","CurseForge":"startup-qol","Modrinth":""},{"Id":22967,"Name":"","CurseForge":"modern-startup-qol","Modrinth":""},{"Id":22968,"Name":"驯养革新修复版 (Domestication Innovation Fixed)","CurseForge":"domestication-innovation-fixed","Modrinth":""},{"Id":22969,"Name":"","CurseForge":"","Modrinth":"clear-despawn-reworked"},{"Id":22970,"Name":"斯巴达的武器:灾变 (Spartan Weaponry: Cataclysm)","CurseForge":"spartancataclysm","Modrinth":"spartancataclysm"},{"Id":22971,"Name":"","CurseForge":"","Modrinth":"metalrender"},{"Id":22972,"Name":"","CurseForge":"nirvana-library","Modrinth":"nirvana-library"},{"Id":22974,"Name":"","CurseForge":"animated-mojang-logo","Modrinth":"animated-mojang-logo"},{"Id":22975,"Name":"","CurseForge":"hardcoreastagesitem","Modrinth":""},{"Id":22976,"Name":"","CurseForge":"","Modrinth":"morbid-reborn-reborn-reborn"},{"Id":22978,"Name":"","CurseForge":"fullbright-ultimate","Modrinth":""},{"Id":22979,"Name":"","CurseForge":"fast-pipes","Modrinth":"fast-pipes"},{"Id":22980,"Name":"沉浸式附魔 (Immersive Enchanting)","CurseForge":"immersive-enchanting","Modrinth":"immersive-enchanting"},{"Id":22982,"Name":"","CurseForge":"boss-checklist","Modrinth":"boss-checklist"},{"Id":22983,"Name":"","CurseForge":"fire-resistance-tiers","Modrinth":""},{"Id":22984,"Name":"诅咒之笼注入 (CursedInfuserCage)","CurseForge":"cursedinfuserbycage","Modrinth":""},{"Id":22985,"Name":"","CurseForge":"enchantedsails","Modrinth":"enchantedsails"},{"Id":22986,"Name":"","CurseForge":"pale-monarch","Modrinth":"pale-monarch-boss-mod"},{"Id":22987,"Name":"","CurseForge":"firmanutrition","Modrinth":"firmanutrition"},{"Id":22988,"Name":"卡里普索的夜视仪 (Calypso's Night Vision Goggles)","CurseForge":"calypsos-night-vision-goggles","Modrinth":""},{"Id":22989,"Name":"","CurseForge":"the-apiarists-terminal","Modrinth":""},{"Id":22990,"Name":"","CurseForge":"bee-mastery","Modrinth":"bee-mastery"},{"Id":22991,"Name":"不再有更新:Retro 版 (NonUpdate-Retro)","CurseForge":"nonupdate-retro","Modrinth":"nonupdate-retro"},{"Id":22992,"Name":"自定义消息 (Custom Message)","CurseForge":"custom-message","Modrinth":""},{"Id":22993,"Name":"","CurseForge":"kjsutils","Modrinth":""},{"Id":22995,"Name":"","CurseForge":"create-access-denied","Modrinth":"create-access-denied"},{"Id":22996,"Name":"","CurseForge":"create-better-motors","Modrinth":"create-better-motors"},{"Id":22997,"Name":"","CurseForge":"","Modrinth":"create-cc-total-logistics"},{"Id":22998,"Name":"","CurseForge":"create-fuel-motor","Modrinth":"create-fuel-motor"},{"Id":22999,"Name":"","CurseForge":"create-extra-casing","Modrinth":"create-extra-casing"},{"Id":23000,"Name":"机械动力:元物流 (Create: Meta Logistics)","CurseForge":"","Modrinth":"create-meta-logistics"},{"Id":23001,"Name":"","CurseForge":"bush-master-core","Modrinth":""},{"Id":23002,"Name":"氚配置 (TritiumConfiguration)","CurseForge":"","Modrinth":"tritiumconfiguration"},{"Id":23004,"Name":"状态效果显示修复 (Mob Effect Display Fix)","CurseForge":"","Modrinth":"mob-effect-display-fix"},{"Id":23007,"Name":"铁砧工艺:猪+ (AnvilCraft: PigsPlus)","CurseForge":"anvilcraft-pigsplus","Modrinth":"anvilcraftpigsplus"},{"Id":23009,"Name":"森罗物语:兼容 (Kaleidoscope Compat)","CurseForge":"kaleidoscope-compat","Modrinth":"kaleidoscope-compat"},{"Id":23011,"Name":"Eh5の茶会:随意作品 (Teas Official Random Things)","CurseForge":"","Modrinth":"teas-official-random-things"},{"Id":23014,"Name":"聊天屏幕 (Chat Screen)","CurseForge":"","Modrinth":"chatscreen"},{"Id":23017,"Name":"","CurseForge":"sunny-riptide-trident","Modrinth":"sunny-riptide-trident"},{"Id":23018,"Name":"鸳鸯董卓 (LastWords)","CurseForge":"","Modrinth":"lastwords"},{"Id":23020,"Name":"气泡柱调整 (Bubble Column Tweaks)","CurseForge":"","Modrinth":"bubble-column-tweaks"},{"Id":23022,"Name":"","CurseForge":"","Modrinth":"villager-inventory-hwyla-plugin"},{"Id":23023,"Name":"","CurseForge":"blessfulled","Modrinth":""},{"Id":23024,"Name":"","CurseForge":"irregular-implements","Modrinth":"irregular-implements"},{"Id":23025,"Name":"","CurseForge":"sounds-be-gone","Modrinth":"soundsbegone"},{"Id":23026,"Name":"","CurseForge":"","Modrinth":"copper-grates-bubble"},{"Id":23027,"Name":"","CurseForge":"","Modrinth":"fireworkdurability"},{"Id":23028,"Name":"","CurseForge":"create-colored-chain-conveyor","Modrinth":"create-colored-chain-conveyor"},{"Id":23029,"Name":"","CurseForge":"create-dimension-steamworks-realm","Modrinth":"create-dimension,-steamworks-realm"},{"Id":23030,"Name":"","CurseForge":"punchy","Modrinth":"punchy-fpa"},{"Id":23031,"Name":"快速切换物品栏 (Quick Swap)","CurseForge":"","Modrinth":"quickswap"},{"Id":23032,"Name":"繁殖抑制&实体冻结器 (Block Dynamics)","CurseForge":"","Modrinth":"blockdynamics_mod"},{"Id":23033,"Name":"","CurseForge":"armor-durability-hud","Modrinth":""},{"Id":23034,"Name":"","CurseForge":"g3-doors","Modrinth":""},{"Id":23035,"Name":"奥法归一 (Arcane Convergence)","CurseForge":"arcane-convergence","Modrinth":""},{"Id":23036,"Name":"AE2-FTB任务检测器 (AE2-Ftbquest-Detector)","CurseForge":"ae2-ftbquest-detector","Modrinth":""},{"Id":23037,"Name":"","CurseForge":"better-library","Modrinth":"better-library"},{"Id":23039,"Name":"Alex的洞穴:维度 (Dimensions-of-Alex's-Caves)","CurseForge":"dimensions-of-alexs-caves","Modrinth":"dimensions-of-alexs-caves"},{"Id":23040,"Name":"更好的战斗粒子 (Better Combat Particle)","CurseForge":"better-combat-particle","Modrinth":"better-combat-particle"},{"Id":23041,"Name":"V裂 (VSplit)","CurseForge":"vsplit","Modrinth":"vsplit"},{"Id":23042,"Name":"Tacz饰品 (TaczCurios)","CurseForge":"taczcurios","Modrinth":"taczcurios"},{"Id":23043,"Name":"","CurseForge":"jeai","Modrinth":"jeai"},{"Id":23046,"Name":"","CurseForge":"unofficial-variedcommodities","Modrinth":""},{"Id":23047,"Name":"","CurseForge":"literal-sky-block-neo","Modrinth":""},{"Id":23048,"Name":"","CurseForge":"cnpc-cobblemon-integration","Modrinth":""},{"Id":23049,"Name":"","CurseForge":"cnpc-gecko-addon","Modrinth":"cnpc-geckolib-addon"},{"Id":23050,"Name":"我的卡牌 (Minecards)","CurseForge":"minecards","Modrinth":"minecards-forge"},{"Id":23052,"Name":"建筑手杖-耕云钓月版 (Construction Wand - KOTS)","CurseForge":"construction-wand-kots","Modrinth":"construction-wand-kots"},{"Id":23053,"Name":"","CurseForge":"thaumcraft-nei-plugin-patched","Modrinth":"thaumcraft-nei-plugin-patched"},{"Id":23054,"Name":"","CurseForge":"replication-rs2-bridge","Modrinth":""},{"Id":23056,"Name":"玩家属性指令 (Player Attribute Commands)","CurseForge":"player-attribute-commands","Modrinth":"player-attribute-commands"},{"Id":23057,"Name":"","CurseForge":"lumis-lots","Modrinth":"lumis-lots"},{"Id":23059,"Name":"万象搜索 (Omnisearch)","CurseForge":"omnisearch","Modrinth":"omnisearch"},{"Id":23060,"Name":"","CurseForge":"ftb-unearthed","Modrinth":""},{"Id":23061,"Name":"","CurseForge":"","Modrinth":"colored-obsidian"},{"Id":23062,"Name":"","CurseForge":"collectors-caravan","Modrinth":"collectors-caravan"},{"Id":23064,"Name":"","CurseForge":"","Modrinth":"itemagnetic"},{"Id":23066,"Name":"灵魂蜡烛 (Soul Candles)","CurseForge":"soul-candles","Modrinth":"soul-candles"},{"Id":23067,"Name":"好好吃饭 (Lunchbox Sustenance Project)","CurseForge":"lunchbox-sustenance-project","Modrinth":""},{"Id":23068,"Name":"农务多多 (Just Some More Crops)","CurseForge":"just-some-more-crops","Modrinth":""},{"Id":23069,"Name":"方块宝可梦生成提醒 (Cobblemon Spawn Alerts)","CurseForge":"cobblemon-spawn-alerts","Modrinth":"cobblemon-spawn-alerts"},{"Id":23070,"Name":"","CurseForge":"hex-text","Modrinth":"hex-text"},{"Id":23071,"Name":"给我一个雪球 (Hand Snow Ball)","CurseForge":"hand-snow-ball","Modrinth":""},{"Id":23072,"Name":"","CurseForge":"extended-shaders","Modrinth":""},{"Id":23073,"Name":"称号与计时 (Titles and Timing)","CurseForge":"titles-and-timing","Modrinth":"renxi.ch"},{"Id":23074,"Name":"群系间谍 (BiomeSpy)","CurseForge":"biomespy","Modrinth":"biomespy"},{"Id":23075,"Name":"随机地牢刷怪笼 (Random Dungeon Spawners)","CurseForge":"random-dungeon-spawners","Modrinth":""},{"Id":23076,"Name":"整合包版本工具:重生 (VersionerReborn)","CurseForge":"versionerreborn","Modrinth":"versionerreborn"},{"Id":23077,"Name":"","CurseForge":"critical-strike","Modrinth":"critical-strike"},{"Id":23078,"Name":"幽灵方块 (GhostBlock)","CurseForge":"ghostblocks","Modrinth":"ghostblock"},{"Id":23079,"Name":"","CurseForge":"","Modrinth":"crossbow_scoping"},{"Id":23080,"Name":"","CurseForge":"create-threaded-trains","Modrinth":"create-threaded-trains"},{"Id":23081,"Name":"雨后生草 (Rain Grow Mod)","CurseForge":"raing-row","Modrinth":"raing_row"},{"Id":23083,"Name":"海底花园 (Seafloor Gardening)","CurseForge":"","Modrinth":"seafloor_gardening"},{"Id":23084,"Name":"","CurseForge":"nemos-vertical-slabs","Modrinth":"nemos-vertical-slabs"},{"Id":23085,"Name":"电力优势 (Electric Advantage)","CurseForge":"electric-advantage","Modrinth":""},{"Id":23086,"Name":"","CurseForge":"froglightsreimagined","Modrinth":"froglightsreimagined"},{"Id":23087,"Name":"","CurseForge":"flower-pots-plus","Modrinth":""},{"Id":23089,"Name":"","CurseForge":"","Modrinth":"sturdy-farmland"},{"Id":23090,"Name":"更好的原版鱼类 (Better Vannila Fishes)","CurseForge":"bettervannilafishes","Modrinth":"bettervannilafishes"},{"Id":23092,"Name":"易研电炸/核抑危 (EzUnclear)","CurseForge":"ezunclear-reactor-big-explosion-preventer","Modrinth":""},{"Id":23094,"Name":"","CurseForge":"kubejs-goety","Modrinth":""},{"Id":23095,"Name":"","CurseForge":"create-stuff-and-addition-tank-fix","Modrinth":"create-stuff-and-addition-tank-fix"},{"Id":23096,"Name":"机械动力:齿轮与麦穗的炸物拓展 (Create:Ratatouille Fried Delights)","CurseForge":"create-ratatouille-fried-delights","Modrinth":"create-ratatouille-fried-delights"},{"Id":23097,"Name":"施法者档案馆 (Spellcaster's Archives)","CurseForge":"spellcasters-archives","Modrinth":""},{"Id":23098,"Name":"","CurseForge":"enders-spells-and-stuff-requiem","Modrinth":""},{"Id":23099,"Name":"","CurseForge":"ironrust","Modrinth":"ironrust"},{"Id":23100,"Name":"","CurseForge":"web","Modrinth":"webs"},{"Id":23101,"Name":"让我看看 (Let Me See See)","CurseForge":"letmecc","Modrinth":"letmecc"},{"Id":23102,"Name":"自动点击器 (Auto Clicker)","CurseForge":"","Modrinth":"autoclicker.1.0"},{"Id":23105,"Name":"梦幻刀光 (Fancy Trail)","CurseForge":"fancy-trail","Modrinth":""},{"Id":23106,"Name":"灿奇术饰 (Caster Curios Bonus)","CurseForge":"caster-curios-bonus","Modrinth":""},{"Id":23107,"Name":"万物皆为刃 (Anything SlashBlade)","CurseForge":"anyblade","Modrinth":"anyblade"},{"Id":23110,"Name":"通达铁路 (TongDa Railway)","CurseForge":"tongda-railway","Modrinth":""},{"Id":23111,"Name":"晶咒龙 (Crystcursed Dragon)","CurseForge":"crystcursed-dragon","Modrinth":""},{"Id":23112,"Name":"狂暴生物 (Brutal Mobs)","CurseForge":"brutal-mobs","Modrinth":""},{"Id":23113,"Name":"超级猎头蟹 (Super Headcrab)","CurseForge":"super-headcrab","Modrinth":""},{"Id":23115,"Name":"简单位置 (Simple Locations)","CurseForge":"","Modrinth":"simple-locations"},{"Id":23116,"Name":"","CurseForge":"lios-seafaring-dungeons","Modrinth":"lios-seafaring-dungeons"},{"Id":23118,"Name":"","CurseForge":"inductive-automation","Modrinth":""},{"Id":23119,"Name":"蒸汽优势 (Steam Advantage)","CurseForge":"steam-advantage","Modrinth":""},{"Id":23120,"Name":"","CurseForge":"","Modrinth":"better-block-entities"},{"Id":23122,"Name":"","CurseForge":"rs-logical","Modrinth":""},{"Id":23123,"Name":"","CurseForge":"industrial-revolution-by-redstone-rebooted","Modrinth":""},{"Id":23125,"Name":"","CurseForge":"omoshiroi-kamo","Modrinth":""},{"Id":23126,"Name":"","CurseForge":"death-taxes","Modrinth":"death-and-taxes"},{"Id":23127,"Name":"","CurseForge":"","Modrinth":"emotional-support-creeper"},{"Id":23128,"Name":"","CurseForge":"ly-ender-compass","Modrinth":""},{"Id":23129,"Name":"","CurseForge":"walking-crops","Modrinth":""},{"Id":23130,"Name":"","CurseForge":"harken-scythe-resharpened","Modrinth":"harken-scythe-resharpened"},{"Id":23133,"Name":"","CurseForge":"resonant-engine","Modrinth":""},{"Id":23134,"Name":"液体经验 (Liquid XP)","CurseForge":"","Modrinth":"liquid-xp"},{"Id":23136,"Name":"Xlv 的锁 (Xlv's Locks)","CurseForge":"xlvs-locks","Modrinth":""},{"Id":23137,"Name":"","CurseForge":"the-legend-of-2900-core","Modrinth":""},{"Id":23139,"Name":"","CurseForge":"graphene-extension","Modrinth":""},{"Id":23140,"Name":"","CurseForge":"dr-stone-kingdom-of-science","Modrinth":"dr.-stone-kingdom-of-science"},{"Id":23141,"Name":"","CurseForge":"kinetic-pixel-dup-bug-fix","Modrinth":""},{"Id":23142,"Name":"自选关机 (Custom Shutdown)","CurseForge":"","Modrinth":"custom-shutdown"},{"Id":23144,"Name":"格逝 (Formatless)","CurseForge":"formatless","Modrinth":""},{"Id":23145,"Name":"隐形方块 (Invisiblocks)","CurseForge":"invisiblocks-1-2-1","Modrinth":""},{"Id":23146,"Name":"","CurseForge":"mage","Modrinth":""},{"Id":23147,"Name":"孢子扩展包:噩梦 (Spore Addon: Nightmare)","CurseForge":"spore-addon-nightmare","Modrinth":""},{"Id":23148,"Name":"生物质必须生长 (The Biomass Must Grow)","CurseForge":"the-biomass-must-grow","Modrinth":""},{"Id":23149,"Name":"","CurseForge":"create-nuka-cola","Modrinth":"create-nuka"},{"Id":23150,"Name":"戴森立方计划 (Dyson Cube Project)","CurseForge":"dyson-cube-project","Modrinth":""},{"Id":23152,"Name":"烦人的村民 (Annoying Villagers: Herobrine Invasion)","CurseForge":"annoying-villagers-herobrine-invasion","Modrinth":"annoying-villagers-herobrine-invasion"},{"Id":23153,"Name":"网络音乐机:电脑外设 (Net Music: Peripheral)","CurseForge":"","Modrinth":"net-music-peripheral"},{"Id":23155,"Name":"傀儡装配-战术人形 (TaCZ Golem Compat)","CurseForge":"tacz-golem-compat","Modrinth":"tacz-golem-compat"},{"Id":23156,"Name":"可自定义的玩家生命值 (Customizable Player Health)","CurseForge":"customizable-player-health","Modrinth":"customizable-player-health"},{"Id":23158,"Name":"诡厄暮色 (Goety Twilight)","CurseForge":"goety-twilight","Modrinth":""},{"Id":23159,"Name":"成就属性提升 (Attribute Achievement Rewards/Achievement attribute rewards)","CurseForge":"attribute-achievement-rewards","Modrinth":"achievement-attribute-rewards"},{"Id":23161,"Name":"","CurseForge":"","Modrinth":"easyentitylib"},{"Id":23162,"Name":"","CurseForge":"coolcatlib","Modrinth":""},{"Id":23164,"Name":"计时仪 (Chronograph)","CurseForge":"","Modrinth":"chronograph"},{"Id":23165,"Name":"","CurseForge":"cnpc-additions","Modrinth":"cnpc-additions"},{"Id":23166,"Name":"","CurseForge":"complicated-bees-genetic-industry","Modrinth":""},{"Id":23167,"Name":"","CurseForge":"squish","Modrinth":"squish"},{"Id":23168,"Name":"","CurseForge":"tameableminisheep","Modrinth":"tameableminisheep"},{"Id":23169,"Name":"","CurseForge":"tameablemossbloom","Modrinth":"tameablemossbloom"},{"Id":23170,"Name":"","CurseForge":"wolf-armor-and-storage-legacy","Modrinth":"wolf-armor-and-storage-legacy"},{"Id":23172,"Name":"","CurseForge":"","Modrinth":"mcedia"},{"Id":23174,"Name":"","CurseForge":"phonk-edit","Modrinth":"phonk-edit"},{"Id":23175,"Name":"","CurseForge":"ae2addonlib","Modrinth":""},{"Id":23176,"Name":"","CurseForge":"infinity-mending-datapack-mod","Modrinth":""},{"Id":23177,"Name":"","CurseForge":"epic-knights-ores-and-alloys","Modrinth":""},{"Id":23178,"Name":"","CurseForge":"epic-knights-dark-ages-addon","Modrinth":""},{"Id":23179,"Name":"坚不可摧服务端修复 (Indestructible Server Fix)","CurseForge":"indestructible-server-fix","Modrinth":""},{"Id":23180,"Name":"","CurseForge":"chromosome-lib","Modrinth":"chromosome-lib"},{"Id":23181,"Name":"","CurseForge":"turtlebois-core-library","Modrinth":""},{"Id":23182,"Name":"","CurseForge":"simple-voice-chat-group-player-names","Modrinth":"svc-group-player-names"},{"Id":23183,"Name":"","CurseForge":"cinematic-zoom-neoforge","Modrinth":"cinematiczoom"},{"Id":23184,"Name":"","CurseForge":"busy-villagers","Modrinth":""},{"Id":23186,"Name":"","CurseForge":"ars-affinity","Modrinth":""},{"Id":23187,"Name":"","CurseForge":"ars-hex-unity","Modrinth":""},{"Id":23188,"Name":"","CurseForge":"pretty-in-pink","Modrinth":"pretty-in-pink"},{"Id":23189,"Name":"","CurseForge":"chatcalc-neoforge","Modrinth":"chatcalc"},{"Id":23190,"Name":"","CurseForge":"dust-and-ore","Modrinth":"dust-and-ores"},{"Id":23191,"Name":"","CurseForge":"matrix-minecraft-bridge","Modrinth":""},{"Id":23193,"Name":"","CurseForge":"","Modrinth":"entity-chat"},{"Id":23194,"Name":"JEI随意复制 (JEI Copy Recipe Json)","CurseForge":"jei-copy-recipe-json","Modrinth":""},{"Id":23195,"Name":"可配置的燃烧时间 (Configurable Burn Time)","CurseForge":"configured-burn-time","Modrinth":"configured-burn-time"},{"Id":23196,"Name":"","CurseForge":"time-controller","Modrinth":"time-controller"},{"Id":23197,"Name":"","CurseForge":"","Modrinth":"improved-snow-melting"},{"Id":23198,"Name":"骑士战争库 (RideBattleLib)","CurseForge":"ridebattle-lib","Modrinth":"ridebattlelib"},{"Id":23200,"Name":"","CurseForge":"gamma-tweaks","Modrinth":"gamma-tweaks"},{"Id":23202,"Name":"流浪速递 (Wandering Trader Express)","CurseForge":"wandering-trader-express","Modrinth":""},{"Id":23203,"Name":"铁锅炖自己 (Stew Me)","CurseForge":"stewme","Modrinth":""},{"Id":23204,"Name":"","CurseForge":"kubejs-powah-reborn","Modrinth":""},{"Id":23205,"Name":"可继承的绵羊毛色 (Inheritable Coat Color)","CurseForge":"inheritable-coat-color","Modrinth":"inheritable-coat-color"},{"Id":23206,"Name":"未知之袋:涅槃 (Pouch of Unknown: Nirvana)","CurseForge":"pouch-of-unknown-nirvana","Modrinth":""},{"Id":23207,"Name":"AE2自动样板上传 (AE2 Auto Pattern Upload)","CurseForge":"ae2-auto-pattern-upload","Modrinth":"ae2-auto-pattern-upload"},{"Id":23209,"Name":"职业自定义:词条与生物 (ClassBioarSenal)","CurseForge":"classbioarsenal","Modrinth":""},{"Id":23210,"Name":"真实物品栏 / 娇小物品栏 (Petite Inventory)","CurseForge":"petite-inventory","Modrinth":"petite-inventory"},{"Id":23211,"Name":"","CurseForge":"cipher-wright","Modrinth":""},{"Id":23212,"Name":"矮玩家 (Short Players)","CurseForge":"short-players","Modrinth":"short-players"},{"Id":23213,"Name":"","CurseForge":"backported-spears","Modrinth":"backported-spears"},{"Id":23214,"Name":"","CurseForge":"ufo-future","Modrinth":""},{"Id":23215,"Name":"","CurseForge":"copper-age-backport","Modrinth":"backport-copper-age"},{"Id":23216,"Name":"","CurseForge":"animal-garden-sea-otter","Modrinth":"animal-garden-sea-otter"},{"Id":23217,"Name":"","CurseForge":"animal-garden-porcupine","Modrinth":"animal-garden-porcupine"},{"Id":23218,"Name":"","CurseForge":"animal-garden-red-panda","Modrinth":"animal-garden-red-panda"},{"Id":23219,"Name":"","CurseForge":"animal-garden-owl","Modrinth":"animal-garden-owl"},{"Id":23220,"Name":"","CurseForge":"bytebuddies","Modrinth":""},{"Id":23221,"Name":"实体附魔 (Entity Enchantment)","CurseForge":"entity-enchantment","Modrinth":""},{"Id":23222,"Name":"","CurseForge":"smoothwater","Modrinth":""},{"Id":23223,"Name":"","CurseForge":"insanity-assorted-magics","Modrinth":""},{"Id":23224,"Name":"","CurseForge":"bonded","Modrinth":"bonded"},{"Id":23225,"Name":"","CurseForge":"indexer","Modrinth":"indexer"},{"Id":23226,"Name":"","CurseForge":"dimensional-worldborder-continuation","Modrinth":""},{"Id":23227,"Name":"","CurseForge":"dimensional-worldborder","Modrinth":""},{"Id":23228,"Name":"","CurseForge":"damage-tracker","Modrinth":""},{"Id":23229,"Name":"","CurseForge":"the-growling-man","Modrinth":""},{"Id":23230,"Name":"","CurseForge":"mapwright","Modrinth":"mapwright"},{"Id":23232,"Name":"","CurseForge":"wandering-ribbit","Modrinth":"wandering-ribbit"},{"Id":23233,"Name":"","CurseForge":"kinetic-minecart","Modrinth":"kinetic-minecart"},{"Id":23235,"Name":"","CurseForge":"classic-pipes","Modrinth":"classic-pipes"},{"Id":23236,"Name":"递归合成 (RecursiveCraft)","CurseForge":"recursivecraft-by-xczl","Modrinth":"recursivecraft"},{"Id":23237,"Name":"","CurseForge":"dust-and-ore-raw-ore-expansion","Modrinth":""},{"Id":23238,"Name":"","CurseForge":"","Modrinth":"minecraft-sigma"},{"Id":23239,"Name":"","CurseForge":"","Modrinth":"pricks-n-planks"},{"Id":23240,"Name":"","CurseForge":"archogenum","Modrinth":""},{"Id":23241,"Name":"","CurseForge":"giant-drops","Modrinth":""},{"Id":23242,"Name":"","CurseForge":"kubejs-data-component","Modrinth":""},{"Id":23243,"Name":"","CurseForge":"quantum-things","Modrinth":"quantum-things"},{"Id":23244,"Name":"","CurseForge":"simple-emotes","Modrinth":"simple-emotes"},{"Id":23245,"Name":"","CurseForge":"flux-ducts","Modrinth":""},{"Id":23246,"Name":"","CurseForge":"valley","Modrinth":"valleys"},{"Id":23248,"Name":"","CurseForge":"wizard-tower","Modrinth":""},{"Id":23249,"Name":"戴森球计划 (The Dyson Sphere Project)","CurseForge":"the-dyson-sphere-project","Modrinth":"dyson-sphere-project"},{"Id":23250,"Name":"青铜 (Bronze)","CurseForge":"bronze-mod","Modrinth":"bronze"},{"Id":23251,"Name":"钇 (Lib39)","CurseForge":"lib39","Modrinth":"lib39"},{"Id":23252,"Name":"","CurseForge":"companions-dogfolk","Modrinth":"companions-dogfolk"},{"Id":23253,"Name":"","CurseForge":"the-block-keeps-ticking","Modrinth":"the-block-keeps-ticking"},{"Id":23254,"Name":"更好的宠物传送 (Better Pet Teleporting)","CurseForge":"better-pet-teleporting","Modrinth":"better-pet-teleporting"},{"Id":23255,"Name":"","CurseForge":"beacon-aura","Modrinth":"beacon-aura"},{"Id":23256,"Name":"","CurseForge":"create-ender-storage","Modrinth":""},{"Id":23257,"Name":"","CurseForge":"portalfarm-despawn-fix","Modrinth":"portalfarm-despawn-fix"},{"Id":23258,"Name":"","CurseForge":"","Modrinth":"kitchen-projectiles"},{"Id":23259,"Name":"","CurseForge":"eternally-overburdened","Modrinth":""},{"Id":23260,"Name":"","CurseForge":"robot-dinos","Modrinth":""},{"Id":23261,"Name":"繁星枯朽 (Stellar Decay)","CurseForge":"stellar-decay","Modrinth":""},{"Id":23262,"Name":"湮灭之刃 (Annihilation Blade)","CurseForge":"annihilationblade","Modrinth":""},{"Id":23263,"Name":"拔刀剑:加速渲染兼容 (SlashBlade: AcceleratedRendering)","CurseForge":"acceleratedblade","Modrinth":"acceleratedblade"},{"Id":23264,"Name":"心之所向非官方版 (HeartBladeUnOffical)","CurseForge":"heartbladeunoffical","Modrinth":""},{"Id":23265,"Name":"拔刀剑·日系附属·扩展包 (SJAPA·The SlashBlade EXtra)","CurseForge":"slashblade-japanese-addon-pack-adder","Modrinth":""},{"Id":23266,"Name":"炼金重铸计划·七罪新约 (Project Saligia Reborn)","CurseForge":"project-saligia-reborn","Modrinth":""},{"Id":23267,"Name":"遗忘之刃重生 (LostBladeReborn)","CurseForge":"lostbladereborn","Modrinth":""},{"Id":23268,"Name":"炼狱真红之刃 (SlashBlade: Shinku And Blood Katana)","CurseForge":"slashblade-shinku-and-blood-katana","Modrinth":""},{"Id":23269,"Name":"狐月刀改·重生 (FoxBladeExtraRe)","CurseForge":"foxbladeextrare","Modrinth":""},{"Id":23270,"Name":"","CurseForge":"spelunkers-palette","Modrinth":"spelunkers-palette"},{"Id":23271,"Name":"季节 API (Seasons API)","CurseForge":"","Modrinth":"seasons-api"},{"Id":23272,"Name":"","CurseForge":"mavity-lib","Modrinth":"mavity-lib"},{"Id":23273,"Name":"","CurseForge":"void-lib","Modrinth":"void-lib"},{"Id":23274,"Name":"简易平台 (Easy Platform)","CurseForge":"easy-platform","Modrinth":""},{"Id":23275,"Name":"无伤大雅 (Dont Get Hurt)","CurseForge":"dont-get-hurt","Modrinth":"dont-get-hurt"},{"Id":23277,"Name":"飞行戒指 (Flight Ring)","CurseForge":"flight-ring","Modrinth":"flight-ring"},{"Id":23279,"Name":"坚不可摧 (AutoRepairHandler)","CurseForge":"autorepairhandler","Modrinth":""},{"Id":23280,"Name":"","CurseForge":"wonderous-sea-endlessocean","Modrinth":"wonderoussea"},{"Id":23281,"Name":"更好的传送 (BetterTP)","CurseForge":"","Modrinth":"bettertp"},{"Id":23282,"Name":"","CurseForge":"ftb-echoes","Modrinth":""},{"Id":23283,"Name":"","CurseForge":"makeup-aesthetics-decor","Modrinth":"makeup-aesthetics-decor"},{"Id":23284,"Name":"","CurseForge":"opencomputers-rescaled","Modrinth":""},{"Id":23285,"Name":"","CurseForge":"entityguardian","Modrinth":""},{"Id":23286,"Name":"","CurseForge":"deep-dark-dimensional-dungeons","Modrinth":""},{"Id":23287,"Name":"无限光源 (Infinite Light)","CurseForge":"infinite-light","Modrinth":"infinite-light"},{"Id":23288,"Name":"","CurseForge":"","Modrinth":"list-core"},{"Id":23289,"Name":"","CurseForge":"thermal-tweaks-dynamic-temperature-survival","Modrinth":""},{"Id":23290,"Name":"","CurseForge":"debloat","Modrinth":"debloat"},{"Id":23291,"Name":"","CurseForge":"orthocamera-unofficial-neoforge-port","Modrinth":"orthocamera-(unofficial-neoforge-port)"},{"Id":23292,"Name":"","CurseForge":"crossroads-legacy","Modrinth":""},{"Id":23293,"Name":"","CurseForge":"","Modrinth":"wilder-enderscapes"},{"Id":23294,"Name":"","CurseForge":"charcoalplus","Modrinth":"charcoalplus"},{"Id":23295,"Name":"","CurseForge":"modern-decor-outdoor","Modrinth":"modern-decor-outdoor"},{"Id":23296,"Name":"","CurseForge":"shadeless-blocks","Modrinth":"shadeless-blocks"},{"Id":23297,"Name":"","CurseForge":"modern-decor-wooden","Modrinth":"modern-decor-wooden"},{"Id":23298,"Name":"","CurseForge":"shadeless-mobs","Modrinth":"shadeless-mobs"},{"Id":23299,"Name":"","CurseForge":"herobrine-old-edition","Modrinth":"herobrine-mod-alpha-version"},{"Id":23300,"Name":"","CurseForge":"multiplayer-spawners","Modrinth":"multiplayer-spawners"},{"Id":23301,"Name":"","CurseForge":"compact-crafting-fork","Modrinth":""},{"Id":23303,"Name":"","CurseForge":"custom-machinery-ars-nouveau","Modrinth":""},{"Id":23304,"Name":"","CurseForge":"peaceful-hunger","Modrinth":"peaceful-hunger"},{"Id":23305,"Name":"","CurseForge":"ftb-ez-crystals","Modrinth":""},{"Id":23307,"Name":"","CurseForge":"falling-blocks-anim","Modrinth":""},{"Id":23308,"Name":"","CurseForge":"immersive-overlays","Modrinth":"immersive-overlays"},{"Id":23309,"Name":"","CurseForge":"volcano","Modrinth":""},{"Id":23311,"Name":"","CurseForge":"nbtstructurelib","Modrinth":"nbtstructurelib"},{"Id":23312,"Name":"","CurseForge":"","Modrinth":"enderlib"},{"Id":23313,"Name":"","CurseForge":"coalapi","Modrinth":"coalapi"},{"Id":23314,"Name":"野兽先辈的HTTP路由器 (Homo Http Router)","CurseForge":"homo-http-router","Modrinth":"homohttprouter"},{"Id":23315,"Name":"","CurseForge":"fastconfigapi","Modrinth":"fastconfigapi"},{"Id":23316,"Name":"","CurseForge":"","Modrinth":"awakeapi"},{"Id":23317,"Name":"","CurseForge":"","Modrinth":"anti-offhand"},{"Id":23318,"Name":"","CurseForge":"","Modrinth":"so-tuff"},{"Id":23320,"Name":"","CurseForge":"moreeventsjs","Modrinth":""},{"Id":23321,"Name":"土豆盛宴-更多的土豆! (Spudiversity - More And More Potato)","CurseForge":"spudiversity-more-and-more-potato","Modrinth":""},{"Id":23323,"Name":"","CurseForge":"flans-mod-tyrants-and-plebians-edition","Modrinth":""},{"Id":23324,"Name":"","CurseForge":"connected-caves","Modrinth":"connected-caves"},{"Id":23325,"Name":"","CurseForge":"invasion-code-red-reborn","Modrinth":"invasion-code-red-reborn"},{"Id":23326,"Name":"","CurseForge":"mecha-pillager-boss","Modrinth":""},{"Id":23327,"Name":"","CurseForge":"","Modrinth":"zg-mobs"},{"Id":23328,"Name":"","CurseForge":"invincibleconquest","Modrinth":""},{"Id":23329,"Name":"明日方舟种族 (Arknights origins races)","CurseForge":"","Modrinth":"arknights-races"},{"Id":23330,"Name":"","CurseForge":"gulliver-lite","Modrinth":"gulliverlite"},{"Id":23331,"Name":"","CurseForge":"mojo-redmetal","Modrinth":""},{"Id":23332,"Name":"Logistics Bridge - 原版","CurseForge":"logistics-bridge","Modrinth":""},{"Id":23332,"Name":"Logistics Bridge - 修复版","CurseForge":"logistics-bridge-dmnedition","Modrinth":""},{"Id":23333,"Name":"源方块 (Source Block)","CurseForge":"sourceblock","Modrinth":"sourceblock"},{"Id":23334,"Name":"以太工艺 (AetherCraft)","CurseForge":"aec","Modrinth":""},{"Id":23335,"Name":"","CurseForge":"animal-garden-sugar-glider","Modrinth":"animal-garden-sugar-glider"},{"Id":23336,"Name":"","CurseForge":"animal-garden-meerkat","Modrinth":"animal-garden-meerkat"},{"Id":23337,"Name":"","CurseForge":"just-sit","Modrinth":"just-sit!"},{"Id":23338,"Name":"","CurseForge":"tameable-endermen","Modrinth":""},{"Id":23339,"Name":"","CurseForge":"vanilla-shears","Modrinth":"vanillashears"},{"Id":23340,"Name":"","CurseForge":"logibots","Modrinth":""},{"Id":23341,"Name":"","CurseForge":"always-eat","Modrinth":"always-eat"},{"Id":23342,"Name":"","CurseForge":"spice-of-life-valheim-reforged","Modrinth":"spice-of-life-valheim-reforged"},{"Id":23343,"Name":"附魔收纳 (EnchantedStorage)","CurseForge":"enchantedstorage","Modrinth":"enchantedstorage"},{"Id":23344,"Name":"","CurseForge":"ultimine-addition","Modrinth":""},{"Id":23345,"Name":"沉浸式提示 (Immersive Tips)","CurseForge":"immersive-tips","Modrinth":"immersive-tips"},{"Id":23346,"Name":"","CurseForge":"lightspeedre-launch-optimizations","Modrinth":"lightspeedre"},{"Id":23347,"Name":"","CurseForge":"enhancedgunsounds","Modrinth":""},{"Id":23348,"Name":"","CurseForge":"","Modrinth":"mcsr-ranked"},{"Id":23349,"Name":"机械动力:咖啡馆 非官方分支 (Create Cafe Unofficial Version)","CurseForge":"","Modrinth":"create-cafe-unofficial"},{"Id":23350,"Name":"","CurseForge":"realm-rpg-treasure-balloons","Modrinth":"realm-rpg-treasure-balloons"},{"Id":23352,"Name":"","CurseForge":"","Modrinth":"alexs-caves-delight-(-farmers-delight-alexs-caves-add-on)"},{"Id":23353,"Name":"厨师宝具 (Kitchen Tools)","CurseForge":"kitchen-tools","Modrinth":"kitchen-tools-tc6-addon"},{"Id":23354,"Name":"","CurseForge":"camphor","Modrinth":"camphor"},{"Id":23355,"Name":"","CurseForge":"jade-magnifying-glass","Modrinth":"jade-magnifying-glass"},{"Id":23356,"Name":"","CurseForge":"c418-music-restored","Modrinth":"c418-music-restored"},{"Id":23358,"Name":"","CurseForge":"crab-claws","Modrinth":"crab-claws"},{"Id":23359,"Name":"","CurseForge":"draconic-evolution-render-patcher","Modrinth":"draconic-evolution-render-patcher"},{"Id":23360,"Name":"车万女仆:纸短情长 (Touhou Little Maid: Epistalove)","CurseForge":"touhou-little-maid-epistalove","Modrinth":"touhou-little-maid-epistalove"},{"Id":23361,"Name":"","CurseForge":"omnicore","Modrinth":"omnicore"},{"Id":23362,"Name":"","CurseForge":"","Modrinth":"voxelbridge"},{"Id":23364,"Name":"沉浸工程修复 (Immersive Fixes)","CurseForge":"immersive-fixes","Modrinth":"immersive-fixes"},{"Id":23365,"Name":"","CurseForge":"schematic-energistics","Modrinth":"schematic-energistics"},{"Id":23366,"Name":"老板冲 (Boss Rush)","CurseForge":"boss-rush","Modrinth":"boss-rush-mod"},{"Id":23367,"Name":"","CurseForge":"mekanism-bigger-teleporters","Modrinth":"mekanism-bigger-teleporters"},{"Id":23368,"Name":"","CurseForge":"carpet-igny-addition","Modrinth":"carpet-igny-addition"},{"Id":23369,"Name":"","CurseForge":"registry-blocker","Modrinth":"registry-blocker"},{"Id":23370,"Name":"观赏植物 (Ornamental Plants)","CurseForge":"more-ornamental-plants","Modrinth":"more-ornamental-plants"},{"Id":23371,"Name":"脚步声NeoForge版 (Presence Footsteps (NeoForge))","CurseForge":"presence-footsteps-neoforge","Modrinth":"pf-neoforge"},{"Id":23372,"Name":"村民语言翻译器 (Villager translator)","CurseForge":"","Modrinth":"villager-translator"},{"Id":23373,"Name":"AI玩家 (AI Player)","CurseForge":"ai-player","Modrinth":"ai-player"},{"Id":23374,"Name":"","CurseForge":"aaron","Modrinth":"aaron"},{"Id":23375,"Name":"海克斯 (Hextech Lib)","CurseForge":"","Modrinth":"hextech-lib"},{"Id":23377,"Name":"","CurseForge":"missing-trees","Modrinth":"missing-trees"},{"Id":23378,"Name":"","CurseForge":"pk-craft","Modrinth":"p.e.k.k.a-craft"},{"Id":23379,"Name":"","CurseForge":"easy-craft-tweaker","Modrinth":"easy-crafttweaker"},{"Id":23380,"Name":"","CurseForge":"wenxins-warp-pipes","Modrinth":"wenxins-warp-pipes"},{"Id":23381,"Name":"","CurseForge":"forgelin-legacy","Modrinth":"forgelin-legacy"},{"Id":23382,"Name":"","CurseForge":"anothertips","Modrinth":"anothertips"},{"Id":23384,"Name":"","CurseForge":"copper-drops","Modrinth":""},{"Id":23385,"Name":"","CurseForge":"cooks-collection","Modrinth":"cooks-collection"},{"Id":23387,"Name":"我的末地呢?! (No End)","CurseForge":"no-end","Modrinth":""},{"Id":23388,"Name":"","CurseForge":"ome-tweaks","Modrinth":"ome-tweaks"},{"Id":23389,"Name":"","CurseForge":"clutter-no-more","Modrinth":"clutter-no-more"},{"Id":23390,"Name":"","CurseForge":"decocraft-nature","Modrinth":"deconature"},{"Id":23391,"Name":"","CurseForge":"frex","Modrinth":"frex"},{"Id":23392,"Name":"","CurseForge":"open-terrain-generator-continued","Modrinth":"open-terrain-generator-continued"},{"Id":23393,"Name":"复演结/コピーの終結 (Duplicationless)","CurseForge":"duplicationless","Modrinth":""},{"Id":23394,"Name":"死亡继承&保命 (Keep Buffs on Death)","CurseForge":"","Modrinth":"keep-buffs-on-death"},{"Id":23395,"Name":"","CurseForge":"custom-mob-targets","Modrinth":""},{"Id":23397,"Name":"超多生物群系集成:非官方版 (BOPIntegration - Catifized)","CurseForge":"bopintegration-catized","Modrinth":"bopic"},{"Id":23398,"Name":"","CurseForge":"","Modrinth":"rawmouseinput"},{"Id":23400,"Name":"建筑笔记 (BuildNotes)","CurseForge":"buildnotes","Modrinth":"buildnotes"},{"Id":23403,"Name":"HBM的核科技现代化 (HBM's Nuclear Tech Modernized)","CurseForge":"hbms-nuclear-tech-modernized","Modrinth":"hbms-nuclear-tech-modernized"},{"Id":23404,"Name":"","CurseForge":"mtr-france-addon","Modrinth":"mtr-france-addon"},{"Id":23405,"Name":"","CurseForge":"minions-remastered","Modrinth":""},{"Id":23406,"Name":"应用定整 (Applied Enough Items)","CurseForge":"applied-enough-items","Modrinth":"applied-enough-items"},{"Id":23407,"Name":"牛奶喷雾 (Milk Spray)","CurseForge":"milkspray","Modrinth":""},{"Id":23408,"Name":"进化之路 (Road to Evolution)","CurseForge":"","Modrinth":"road-to-evolution"},{"Id":23409,"Name":"归家图腾 (Totem of Homing)","CurseForge":"","Modrinth":"totem-of-homing"},{"Id":23410,"Name":"","CurseForge":"better-foliage-legacy-edition","Modrinth":"better-foliage-legacy-edition"},{"Id":23413,"Name":"","CurseForge":"","Modrinth":"adventure-platform-mod"},{"Id":23414,"Name":"","CurseForge":"pedestal-crafting","Modrinth":""},{"Id":23415,"Name":"","CurseForge":"pedestal-crafting-patched","Modrinth":"pedestal-crafting-patched"},{"Id":23416,"Name":"建筑放置 (PutBuildings)","CurseForge":"putbuildings","Modrinth":"putbuildings"},{"Id":23417,"Name":"去除浮空挖掘惩罚 (No Air Mining Penalty)","CurseForge":"","Modrinth":"no-air-mining-penalty"},{"Id":23420,"Name":"","CurseForge":"reader","Modrinth":""},{"Id":23422,"Name":"","CurseForge":"improved-cleanroom-relauncher","Modrinth":"improved-cleanroom-relauncher"},{"Id":23423,"Name":"","CurseForge":"qbithop","Modrinth":""},{"Id":23424,"Name":"","CurseForge":"catalogue-vintage","Modrinth":""},{"Id":23425,"Name":"","CurseForge":"wilder-flowers","Modrinth":"wilder-flowers"},{"Id":23426,"Name":"","CurseForge":"render-held-item-while-a-wolf-witchery-addon","Modrinth":""},{"Id":23427,"Name":"","CurseForge":"economicalmilktea","Modrinth":""},{"Id":23428,"Name":"","CurseForge":"unnamed-monster","Modrinth":"unnamed-monster"},{"Id":23429,"Name":"","CurseForge":"half-bite","Modrinth":""},{"Id":23430,"Name":"瑞雪物语 (Merry Snow)","CurseForge":"merry-snow","Modrinth":"merry-snow"},{"Id":23432,"Name":"","CurseForge":"hdd-continuation","Modrinth":"hdd-continuation"},{"Id":23433,"Name":"","CurseForge":"headdowndisplay","Modrinth":"hdd"},{"Id":23434,"Name":"","CurseForge":"refined-equivalence","Modrinth":""},{"Id":23436,"Name":"","CurseForge":"amtweaker","Modrinth":""},{"Id":23439,"Name":"","CurseForge":"fluidityfoodstuffs","Modrinth":""},{"Id":23440,"Name":"","CurseForge":"chisel-modern","Modrinth":""},{"Id":23441,"Name":"","CurseForge":"rmscore","Modrinth":"rmscore"},{"Id":23442,"Name":"","CurseForge":"magic-coins-tweak","Modrinth":""},{"Id":23443,"Name":"","CurseForge":"irons-apothic-invaders","Modrinth":"irons-apothic-invaders"},{"Id":23444,"Name":"","CurseForge":"mekagenjei-mekanism-generator-addon","Modrinth":""},{"Id":23445,"Name":"船只飞行 (BoatFly)","CurseForge":"boatfly","Modrinth":""},{"Id":23446,"Name":"","CurseForge":"ibicf","Modrinth":""},{"Id":23447,"Name":"","CurseForge":"kube-utils","Modrinth":"kube-utils"},{"Id":23448,"Name":"","CurseForge":"laputan","Modrinth":"laputan"},{"Id":23449,"Name":"","CurseForge":"lecovian","Modrinth":"lecovian"},{"Id":23450,"Name":"","CurseForge":"pops","Modrinth":"pops"},{"Id":23451,"Name":"","CurseForge":"bad-ores","Modrinth":""},{"Id":23452,"Name":"","CurseForge":"reactor-plus","Modrinth":""},{"Id":23456,"Name":"","CurseForge":"petrock-mod","Modrinth":""},{"Id":23457,"Name":"","CurseForge":"bettertalk","Modrinth":""},{"Id":23458,"Name":"","CurseForge":"autocrafter2000","Modrinth":""},{"Id":23460,"Name":"","CurseForge":"baby-mobs-rebrushed","Modrinth":"baby-mobs-rebrushed"},{"Id":23461,"Name":"","CurseForge":"animal-garden-mouse","Modrinth":"animal-garden-mouse"},{"Id":23462,"Name":"更好的睡眠 (Better Sleeping)","CurseForge":"better-sleeping","Modrinth":""},{"Id":23463,"Name":"","CurseForge":"amtgenerators","Modrinth":""},{"Id":23464,"Name":"","CurseForge":"blooming-biosphere","Modrinth":""},{"Id":23465,"Name":"更多蜜蜂:社区版 (ExtraBees: Community Edition)","CurseForge":"extrabees-community","Modrinth":""},{"Id":23466,"Name":"可编程魔法 (Programmable Magic)","CurseForge":"programmable-magic","Modrinth":"programmable-magic"},{"Id":23467,"Name":"","CurseForge":"better-farming","Modrinth":"better-farming-plus"},{"Id":23468,"Name":"邪恶海鸥 (Evil Seagull)","CurseForge":"evil-seagull","Modrinth":"evil-seagull"},{"Id":23469,"Name":"","CurseForge":"hbm-galacticraft-companion","Modrinth":""},{"Id":23470,"Name":"","CurseForge":"gamingbarns-guns","Modrinth":""},{"Id":23471,"Name":"","CurseForge":"jas-compatability-addon","Modrinth":""},{"Id":23473,"Name":"","CurseForge":"ad-astra-auto-lander","Modrinth":""},{"Id":23474,"Name":"机械动力:解放合成器 (Create: FuckCrafter)","CurseForge":"","Modrinth":"createfkcrafter"},{"Id":23475,"Name":"","CurseForge":"create-cobblemon-balls-overhaul","Modrinth":""},{"Id":23476,"Name":"","CurseForge":"create-air-ducts","Modrinth":"create-air-ducts"},{"Id":23477,"Name":"","CurseForge":"grimoire-of-gaia-redux","Modrinth":""},{"Id":23479,"Name":"","CurseForge":"create-wrapped","Modrinth":""},{"Id":23480,"Name":"","CurseForge":"create-cogs-invaders","Modrinth":""},{"Id":23481,"Name":"","CurseForge":"notenoughscaffold","Modrinth":""},{"Id":23482,"Name":"","CurseForge":"ore-trees-reboot","Modrinth":""},{"Id":23483,"Name":"","CurseForge":"re-barked","Modrinth":""},{"Id":23484,"Name":"","CurseForge":"composing","Modrinth":""},{"Id":23485,"Name":"匠魂盔甲怀古 (Antique Armory)","CurseForge":"antique-armory","Modrinth":""},{"Id":23486,"Name":"","CurseForge":"cataclysm-ignis-soulfires","Modrinth":""},{"Id":23487,"Name":"","CurseForge":"just-dyna-things","Modrinth":""},{"Id":23488,"Name":"","CurseForge":"metal-detector","Modrinth":""},{"Id":23489,"Name":"","CurseForge":"replication-addon-tiered","Modrinth":""},{"Id":23492,"Name":"哦齁齁齁斯 (SaveTheHorse)","CurseForge":"savethehorse","Modrinth":""},{"Id":23493,"Name":"仓鼠乐事 (Hamster's Delight)","CurseForge":"hamsters-delight","Modrinth":"hamsters-delight"},{"Id":23494,"Name":"","CurseForge":"the-ultimate-ore-mod","Modrinth":""},{"Id":23495,"Name":"","CurseForge":"animal-garden-fennec-fox","Modrinth":"animal-garden-fennec-fox"},{"Id":23496,"Name":"","CurseForge":"animal-garden-common-raven","Modrinth":"animal-garden-common-raven"},{"Id":23497,"Name":"","CurseForge":"nether-master-remastered","Modrinth":"nether-portal-remastered"},{"Id":23498,"Name":"","CurseForge":"redstone-recharged","Modrinth":"recharged"},{"Id":23499,"Name":"","CurseForge":"toil-and-trouble","Modrinth":"toil-and-trouble"},{"Id":23500,"Name":"基础武器 (Basic Weapons)","CurseForge":"basicweapons","Modrinth":"basicweapons"},{"Id":23502,"Name":"妖怪们的归家:饰品兼容 (Youkais Home Coming Curios)","CurseForge":"youkaishomecomingcurios","Modrinth":""},{"Id":23503,"Name":"掉落力 (Drop Force)","CurseForge":"drop-force","Modrinth":"drop-force"},{"Id":23504,"Name":"祭品/掉落不死亡 (Sacrifice)","CurseForge":"sacrifice","Modrinth":""},{"Id":23506,"Name":"别挡我的路! (GetOutOfMyWay)","CurseForge":"getoutofmyway","Modrinth":""},{"Id":23507,"Name":"","CurseForge":"stronger-snowballs","Modrinth":"stronger-snowballs"},{"Id":23510,"Name":"简易刀剑 - 史诗战斗 (Epic Fight - Simply Swords EpicFied 2)","CurseForge":"simply-swords-epicfied","Modrinth":""},{"Id":23511,"Name":"","CurseForge":"cotton-resources","Modrinth":""},{"Id":23513,"Name":"","CurseForge":"talents","Modrinth":""},{"Id":23514,"Name":"","CurseForge":"rain-rot","Modrinth":"rain-rot"},{"Id":23515,"Name":"","CurseForge":"lothryas-spell-additiions","Modrinth":""},{"Id":23516,"Name":"","CurseForge":"shershavy","Modrinth":"shershavy"},{"Id":23517,"Name":"","CurseForge":"craycrafting","Modrinth":""},{"Id":23518,"Name":"","CurseForge":"","Modrinth":"rain-world-weaponry"},{"Id":23519,"Name":"","CurseForge":"customtitlescreen","Modrinth":""},{"Id":23520,"Name":"不寻常的史前史2 (Unusual Prehistory 2)","CurseForge":"unusual-prehistory-2","Modrinth":"unusual-prehistory-2"},{"Id":23521,"Name":"","CurseForge":"shield-api","Modrinth":"shield-api"},{"Id":23522,"Name":"","CurseForge":"brick-lib-api","Modrinth":"brick-lib-api"},{"Id":23523,"Name":"申必版本号 (WhatVersioning)","CurseForge":"whatversioning","Modrinth":""},{"Id":23524,"Name":"完了 (YourEnder)","CurseForge":"yourender","Modrinth":""},{"Id":23525,"Name":"以玉定植 (Mana Jade)","CurseForge":"mana-jade","Modrinth":"mana-jade"},{"Id":23526,"Name":"","CurseForge":"villagerapi","Modrinth":"villagerapi"},{"Id":23527,"Name":"","CurseForge":"peeping-angels","Modrinth":"peeping-angels"},{"Id":23528,"Name":"","CurseForge":"simple-teleporters-reforged","Modrinth":"simple-teleporters-reforged"},{"Id":23529,"Name":"","CurseForge":"structures-tweaker","Modrinth":"structures-tweaker"},{"Id":23530,"Name":"","CurseForge":"tooltip-overhaul","Modrinth":"tooltip-overhaul"},{"Id":23532,"Name":"","CurseForge":"pre-menu-screen","Modrinth":""},{"Id":23533,"Name":"","CurseForge":"titlescreennotice","Modrinth":""},{"Id":23534,"Name":"","CurseForge":"spellboundskiescustom","Modrinth":""},{"Id":23535,"Name":"","CurseForge":"kind-of-nice-weapon","Modrinth":""},{"Id":23536,"Name":"","CurseForge":"copperized","Modrinth":""},{"Id":23538,"Name":"凡家物语:重制 (Comes Alive Reworked)","CurseForge":"comes-alive-reworked","Modrinth":"comes-alive-reworked"},{"Id":23539,"Name":"","CurseForge":"better-animal-feeding","Modrinth":"better-animal-feeding"},{"Id":23540,"Name":"","CurseForge":"tiny-dragons","Modrinth":"tiny-dragons"},{"Id":23541,"Name":"永冬幻境 (Eternal Winter Mirage)","CurseForge":"","Modrinth":"eternal_winter_mirage"},{"Id":23542,"Name":"","CurseForge":"tightfire","Modrinth":"tightfire"},{"Id":23543,"Name":"","CurseForge":"wax-item-frames","Modrinth":"wax-item-frames"},{"Id":23544,"Name":"","CurseForge":"obese-crops","Modrinth":"obese-crops"},{"Id":23545,"Name":"","CurseForge":"","Modrinth":"frame-changer"},{"Id":23549,"Name":"","CurseForge":"tfcgurman","Modrinth":"tfc_gurman"},{"Id":23550,"Name":"","CurseForge":"fungi-delight","Modrinth":"fungi-delight"},{"Id":23551,"Name":"","CurseForge":"leaves-youll-go","Modrinth":"leaves-youll-go"},{"Id":23552,"Name":"Yagen的属性 (Yagen's Attributes)","CurseForge":"yagens-attributes","Modrinth":"yagens-attributes"},{"Id":23553,"Name":"","CurseForge":"terrarium-world","Modrinth":"terrarium-earth"},{"Id":23554,"Name":"","CurseForge":"daylightchangerstruggle","Modrinth":"daylightchangerstruggle"},{"Id":23556,"Name":"","CurseForge":"","Modrinth":"eclipses-tweakeroo-additions"},{"Id":23557,"Name":"","CurseForge":"utamis-futon","Modrinth":"utamis-futon"},{"Id":23558,"Name":"","CurseForge":"","Modrinth":"not-enough-furniture"},{"Id":23559,"Name":"","CurseForge":"ceruleans-mystical-smithery","Modrinth":""},{"Id":23560,"Name":"","CurseForge":"mutated-mobs-mod","Modrinth":""},{"Id":23561,"Name":"","CurseForge":"ftbxaerocompat","Modrinth":""},{"Id":23562,"Name":"","CurseForge":"aesthetic-windows","Modrinth":""},{"Id":23563,"Name":"","CurseForge":"bagels-palette-blocks","Modrinth":"bagels-palette-blocks"},{"Id":23564,"Name":"","CurseForge":"astrochem","Modrinth":"astrochem"},{"Id":23565,"Name":"","CurseForge":"dynamic-portals","Modrinth":""},{"Id":23566,"Name":"","CurseForge":"heralds-ii","Modrinth":"heralds-ii"},{"Id":23567,"Name":"","CurseForge":"industrialized-architecture","Modrinth":""},{"Id":23568,"Name":"","CurseForge":"better-starting-armors","Modrinth":"better-starting-armors"},{"Id":23569,"Name":"拔刀剑:雪蚀绽霜 (SlashBlade: Frostbite Snowbloom)","CurseForge":"slashblade-frostbite-snowbloom","Modrinth":"slashblade-frostbite-snowbloom"},{"Id":23570,"Name":"","CurseForge":"raspberry-core","Modrinth":"raspberry-core"},{"Id":23571,"Name":"","CurseForge":"advancedcamera-by-lostmortal","Modrinth":""},{"Id":23572,"Name":"","CurseForge":"classic-peripherals","Modrinth":"classicperipherals"},{"Id":23573,"Name":"","CurseForge":"sbm-punt-animal","Modrinth":""},{"Id":23574,"Name":"","CurseForge":"sbm-baggable-mobs","Modrinth":""},{"Id":23575,"Name":"","CurseForge":"sbm-helm-bucket","Modrinth":""},{"Id":23576,"Name":"","CurseForge":"animal-garden-spotted-hyena","Modrinth":"animal-garden-spotted-hyena"},{"Id":23577,"Name":"","CurseForge":"animal-garden-western-gorilla","Modrinth":"animal-garden-western-gorilla"},{"Id":23578,"Name":"","CurseForge":"more-concrete","Modrinth":"more-concrete"},{"Id":23579,"Name":"","CurseForge":"lukis-strongholds","Modrinth":""},{"Id":23580,"Name":"","CurseForge":"lukis-woodland-mansions","Modrinth":""},{"Id":23581,"Name":"","CurseForge":"thaumic-model","Modrinth":""},{"Id":23582,"Name":"","CurseForge":"gtse","Modrinth":""},{"Id":23583,"Name":"","CurseForge":"ancore","Modrinth":"ancore"},{"Id":23584,"Name":"","CurseForge":"xdonplugins","Modrinth":"xdonplugins"},{"Id":23587,"Name":"扩展存储 - 耕云钓月版 (Expanded Storage - KOTS)","CurseForge":"expanded-storage-kots","Modrinth":""},{"Id":23588,"Name":"","CurseForge":"ragdolls","Modrinth":"ragdolls"},{"Id":23589,"Name":"","CurseForge":"mar-mars-enhanced-ore-variety","Modrinth":"mar-mars-enhanced-ore-variety"},{"Id":23590,"Name":"","CurseForge":"superflat-progression","Modrinth":"superflat-progression"},{"Id":23591,"Name":"始源匠心 (Tinker's Origin)","CurseForge":"","Modrinth":"tinkers-origin"},{"Id":23592,"Name":"荏心音乐机 (Renxin Music Player)","CurseForge":"renxin-music-player","Modrinth":"renxin-music-player"},{"Id":23593,"Name":"","CurseForge":"slotify","Modrinth":""},{"Id":23594,"Name":"","CurseForge":"textile","Modrinth":"textile-lib"},{"Id":23595,"Name":"","CurseForge":"clash","Modrinth":""},{"Id":23596,"Name":"","CurseForge":"morebatsvariants","Modrinth":""},{"Id":23597,"Name":"","CurseForge":"hxcperipherals","Modrinth":""},{"Id":23598,"Name":"","CurseForge":"yori3os-grappling-hooks","Modrinth":"yori3os-grappling-hooks"},{"Id":23599,"Name":"🎄 季节性装饰 (🎄 Seasonal Decorations)","CurseForge":"seasonal-decorations","Modrinth":"seasonal-decorations"},{"Id":23600,"Name":"","CurseForge":"neon-sentry-keeper","Modrinth":""},{"Id":23602,"Name":"女仆,请帮我打铁 (Maid Please Help Me Forge)","CurseForge":"maid-please-help-me-forge","Modrinth":""},{"Id":23605,"Name":"更多林业背包 (More Backpacks)","CurseForge":"chemcraft-more-backpacks","Modrinth":""},{"Id":23606,"Name":"","CurseForge":"e-flux","Modrinth":""},{"Id":23607,"Name":"神秘扩展 (Thaumcraft Extras)","CurseForge":"thaumcraft-extras","Modrinth":""},{"Id":23609,"Name":"","CurseForge":"peacefulpack","Modrinth":""},{"Id":23610,"Name":"","CurseForge":"sulfur-and-nitre","Modrinth":""},{"Id":23611,"Name":"","CurseForge":"combat-evolution","Modrinth":""},{"Id":23612,"Name":"光影修复:Ragecraft 版 (ShaderFixerRagecraftVer)","CurseForge":"shaderfixerragecraftver","Modrinth":""},{"Id":23613,"Name":"","CurseForge":"brokenentity-0","Modrinth":""},{"Id":23614,"Name":"","CurseForge":"the-cardboard-box-extension","Modrinth":""},{"Id":23615,"Name":"","CurseForge":"kubejs-cc","Modrinth":"kubejs+cc-tweaked"},{"Id":23616,"Name":"","CurseForge":"sbm-elevators","Modrinth":""},{"Id":23617,"Name":"","CurseForge":"sbm-cacti-bucket","Modrinth":""},{"Id":23618,"Name":"","CurseForge":"sbm-grappling-hook","Modrinth":""},{"Id":23619,"Name":"","CurseForge":"sbm-hand-held-piston","Modrinth":""},{"Id":23620,"Name":"","CurseForge":"petting","Modrinth":"petting"},{"Id":23621,"Name":"","CurseForge":"datapatched","Modrinth":"datapatched"},{"Id":23622,"Name":"","CurseForge":"no-villages","Modrinth":""},{"Id":23623,"Name":"","CurseForge":"hbms-nuclear-tech-leafias-cursed-edition","Modrinth":""},{"Id":23624,"Name":"","CurseForge":"cell-chemistry","Modrinth":""},{"Id":23625,"Name":"AE2:包罗万象 (AE2: All Encompassing)","CurseForge":"ae2-all-encompassing","Modrinth":"ae2-all-encompassing"},{"Id":23626,"Name":"","CurseForge":"tiptool","Modrinth":""},{"Id":23627,"Name":"","CurseForge":"burrowers","Modrinth":"burrowers"},{"Id":23628,"Name":"","CurseForge":"skyislands","Modrinth":""},{"Id":23629,"Name":"","CurseForge":"fastflyblockbreaking-reworked","Modrinth":""},{"Id":23630,"Name":"","CurseForge":"aether-ruined-portals","Modrinth":""},{"Id":23631,"Name":"星穹饰品 (Flame Chase Artifacts/Flame Chase Artifacts New)","CurseForge":"fca-flame-chase-artifacts-new","Modrinth":""},{"Id":23632,"Name":"更多背包升级 (More Backpack Upgrades)","CurseForge":"","Modrinth":"more-backpack-upgrades"},{"Id":23633,"Name":"代达罗斯附魔 (DaedalusEnchantments)","CurseForge":"","Modrinth":"daedalus-enchantments"},{"Id":23635,"Name":"史诗战斗 - 更好的锁定 (Epic Fight - Better Lock On)","CurseForge":"better-lock-on","Modrinth":"better-lock-on"},{"Id":23636,"Name":"史诗战斗:夜幕入侵 (NightFall : Invade)","CurseForge":"nightfall-invade","Modrinth":""},{"Id":23638,"Name":"铜器时代的小家伙 (Copper Friend Backport)","CurseForge":"copper-friend-backport","Modrinth":""},{"Id":23639,"Name":"自然台阶 (slab topographic)","CurseForge":"slab-topographic","Modrinth":""},{"Id":23640,"Name":"贴标签 (Tag Editor)","CurseForge":"tag-editor","Modrinth":""},{"Id":23642,"Name":"全能工具 (OmniTools)","CurseForge":"omnitool","Modrinth":"omnitools"},{"Id":23645,"Name":"共享原理图增强 (Syncmatica Revolution)","CurseForge":"","Modrinth":"syncmatica-revolution"},{"Id":23646,"Name":"量子色域 视界 (QuantumHue Visualizer)","CurseForge":"quantumhue-visualizer","Modrinth":""},{"Id":23648,"Name":"[SBW]龙之崛起:重铸 (DragonRise: Reforge)","CurseForge":"sbw-drr","Modrinth":""},{"Id":23649,"Name":"九幽引 (Nine-nether Regions)","CurseForge":"nine-nether-regions","Modrinth":"nine-nether-regions"},{"Id":23650,"Name":"掌中明月 (Handheld Moon)","CurseForge":"handheld-moon","Modrinth":"handheld-moon"},{"Id":23651,"Name":"木匠方块-社区版 (Carpenter's Blocks-CE)","CurseForge":"carpenters-blocks-ce","Modrinth":""},{"Id":23653,"Name":"","CurseForge":"","Modrinth":"yos-coins"},{"Id":23654,"Name":"AE无限磁盘 (AE Infinity Disk)","CurseForge":"ae-infinity-disk","Modrinth":"ae-infinity-disk"},{"Id":23655,"Name":"","CurseForge":"survivalplus-primer","Modrinth":""},{"Id":23655,"Name":"","CurseForge":"survivalplus-primer-fabric","Modrinth":""},{"Id":23656,"Name":"机械动力:北极星 - 重制版 (Create: Northstar - Redux)","CurseForge":"northstar-redux","Modrinth":"northstar-redux"},{"Id":23657,"Name":"","CurseForge":"create-igneodynamics","Modrinth":"create-igneodynamics"},{"Id":23658,"Name":"","CurseForge":"create-numismatics-utils","Modrinth":"create-numismatics-utils"},{"Id":23659,"Name":"","CurseForge":"create-vintage-unofficial-port","Modrinth":"create-vintage-(unofficial-port)"},{"Id":23660,"Name":"","CurseForge":"create-bits-n-bobs","Modrinth":"create-bits-n-bobs"},{"Id":23661,"Name":"","CurseForge":"ccb-tweaks","Modrinth":"ccbt"},{"Id":23662,"Name":"","CurseForge":"gregtechceu-modern-extra-unofficial","Modrinth":"gtceu_extra"},{"Id":23663,"Name":"","CurseForge":"geotetraarmor","Modrinth":""},{"Id":23664,"Name":"","CurseForge":"more-more-tooltips","Modrinth":""},{"Id":23665,"Name":"","CurseForge":"more-tooltips","Modrinth":""},{"Id":23666,"Name":"","CurseForge":"elemental-creepers-redux","Modrinth":""},{"Id":23667,"Name":"","CurseForge":"mc-modsthecreepers","Modrinth":""},{"Id":23668,"Name":"","CurseForge":"wikiful","Modrinth":"wikiful"},{"Id":23669,"Name":"","CurseForge":"atlatls","Modrinth":"atlatls"},{"Id":23670,"Name":"物品存取限制器 (Item Access Restrictor)","CurseForge":"","Modrinth":"itemaccessrestrictor"},{"Id":23671,"Name":"辉夜姬的五难题:重置 (KaguyaFD)","CurseForge":"kaguyafd","Modrinth":""},{"Id":23673,"Name":"","CurseForge":"ahh-pvp","Modrinth":"ahh-pvp"},{"Id":23674,"Name":"","CurseForge":"toggle-sneak-sprint","Modrinth":"togglesneaksprint"},{"Id":23675,"Name":"","CurseForge":"monstie-hunter-baby-monster-collector","Modrinth":"monstie-hunter-baby-monster-collector!"},{"Id":23676,"Name":"","CurseForge":"enchants","Modrinth":""},{"Id":23677,"Name":"","CurseForge":"hubris","Modrinth":""},{"Id":23678,"Name":"","CurseForge":"custom-nether-portals","Modrinth":"custom-nether-portal"},{"Id":23679,"Name":"","CurseForge":"damagenumberlegacy","Modrinth":""},{"Id":23680,"Name":"","CurseForge":"helios-divinity","Modrinth":""},{"Id":23681,"Name":"物品标记 (Item Marks)","CurseForge":"item-marks","Modrinth":""},{"Id":23682,"Name":"","CurseForge":"mossylib","Modrinth":"mossylib"},{"Id":23685,"Name":"更好的交易菜单 (Better Trading Menu)","CurseForge":"better-trading-menu","Modrinth":"better-trading-menu"},{"Id":23686,"Name":"","CurseForge":"easy-npc-config-ui","Modrinth":"easy-npc-config-ui"},{"Id":23687,"Name":"通用机械:进化扩展 (Evolved Mekanism Extras)","CurseForge":"evolved-mekanism-extras","Modrinth":""},{"Id":23688,"Name":"","CurseForge":"","Modrinth":"music-hud"},{"Id":23689,"Name":"","CurseForge":"backups","Modrinth":""},{"Id":23690,"Name":"物品栏粒子 (Inventory Particles)","CurseForge":"inventory-particles","Modrinth":"inventory-particles"},{"Id":23691,"Name":"","CurseForge":"backport-recipes","Modrinth":"backport-recipes"},{"Id":23692,"Name":"","CurseForge":"primal-survival","Modrinth":"primal-survival"},{"Id":23693,"Name":"","CurseForge":"electrical-age-eln","Modrinth":""},{"Id":23693,"Name":"Electrical Age - jrddunbr's edition - 正常更新","CurseForge":"","Modrinth":"electrical-age-jrddunbr-edition"},{"Id":23694,"Name":"显示FPS (ShowFPS)","CurseForge":"","Modrinth":"showfps"},{"Id":23695,"Name":"","CurseForge":"magia-daemonica","Modrinth":""},{"Id":23696,"Name":"","CurseForge":"death-n-taxes","Modrinth":""},{"Id":23697,"Name":"F5视角控制器 (F5 Camera control)","CurseForge":"f5-camera-control-f5","Modrinth":"summer_xtjl_f5_camera_control"},{"Id":23698,"Name":"","CurseForge":"super-factory-manager-unofficial-backport-sfm-ub","Modrinth":""},{"Id":23699,"Name":"","CurseForge":"cart-complete","Modrinth":""},{"Id":23700,"Name":"","CurseForge":"veilings","Modrinth":""},{"Id":23702,"Name":"","CurseForge":"narutoloading","Modrinth":""},{"Id":23703,"Name":"可视化键位图 (Visual Keymap)","CurseForge":"visual-keymap","Modrinth":"visual-keymap"},{"Id":23706,"Name":"更好的砂轮 (GrindstonePlus)","CurseForge":"grindstoneplus","Modrinth":""},{"Id":23707,"Name":"铁砧工艺:并入电网 (AnvilCraft Transducers)","CurseForge":"anvilcraft-transducers","Modrinth":""},{"Id":23708,"Name":"汇流来世:武器修改 (Confluence: Weapon Modification)","CurseForge":"confluence-weapon-modification","Modrinth":"confluence_weaponmodification"},{"Id":23709,"Name":"无用之物 (Some Useless Things)","CurseForge":"some-useless-things","Modrinth":"a-useless-mod"},{"Id":23710,"Name":"藏妻术式 (HMaG Spells)","CurseForge":"hmag-spells","Modrinth":""},{"Id":23711,"Name":"Tetra法术书 (Tetra Spell Book)","CurseForge":"tsb-tetra-spell-book-new","Modrinth":""},{"Id":23712,"Name":"幸运钓竿 (Lucky Fishing Rod)","CurseForge":"lucky-fishing-rod","Modrinth":"lucky-fishing-rod"},{"Id":23713,"Name":"","CurseForge":"gilded-krmor","Modrinth":""},{"Id":23715,"Name":"","CurseForge":"traces-of-the-fallen","Modrinth":""},{"Id":23716,"Name":"","CurseForge":"lycanite-mobs-additions","Modrinth":""},{"Id":23717,"Name":"","CurseForge":"revmobs","Modrinth":""},{"Id":23718,"Name":"森罗物语:厨房——重织 (Kaleidoscope Cookery Refabricated)","CurseForge":"kaleidoscope-cookery-refabricated","Modrinth":"kaleidoscope-cookery-refabricated"},{"Id":23719,"Name":"","CurseForge":"timelesslib","Modrinth":"timelesslib"},{"Id":23720,"Name":"","CurseForge":"norfrieds-eldritch-takeover","Modrinth":""},{"Id":23721,"Name":"殖民地现代化更新 (Minecolonies Modernization Update)","CurseForge":"minecolonies-modernitzation-update","Modrinth":""},{"Id":23722,"Name":"套装效果 (SetCraftJS)","CurseForge":"setcraftjs","Modrinth":""},{"Id":23723,"Name":"聊天分栏 (XYMultiChat)","CurseForge":"xymultichat","Modrinth":"xymultichat"},{"Id":23724,"Name":"","CurseForge":"mc-mods-of-slashblades","Modrinth":""},{"Id":23726,"Name":"","CurseForge":"texture-locale-redirector","Modrinth":"texture-locale-redirector"},{"Id":23727,"Name":"幻梦:欢宴 (Eidolon : Edoni)","CurseForge":"eidolon-edoni","Modrinth":"eidolon-edoni"},{"Id":23728,"Name":"","CurseForge":"mekanism-morecapacity","Modrinth":"mekanismmorecapacity"},{"Id":23729,"Name":"","CurseForge":"modular-machinery-cryogenic-simulation-edition","Modrinth":""},{"Id":23730,"Name":"","CurseForge":"sbm-wooden-rails","Modrinth":""},{"Id":23731,"Name":"水果地形 (Project Fruit)","CurseForge":"project-fruit","Modrinth":""},{"Id":23732,"Name":"","CurseForge":"","Modrinth":"mcef2"},{"Id":23733,"Name":"车万女仆:原生的力量 (TLM: Native POWER)","CurseForge":"tlm-native-power","Modrinth":""},{"Id":23734,"Name":"","CurseForge":"hogcraft","Modrinth":""},{"Id":23735,"Name":"丰毛肥羊 (Awesome Sheep Swell)","CurseForge":"awesome-sheep-swell","Modrinth":"awesome-sheep-swell"},{"Id":23736,"Name":"桶 (Casks)","CurseForge":"","Modrinth":"casks"},{"Id":23737,"Name":"","CurseForge":"luxurious-misfortunes","Modrinth":""},{"Id":23738,"Name":"","CurseForge":"transparent-entities","Modrinth":"transparent-entities"},{"Id":23739,"Name":"","CurseForge":"paintings-n-discs-backport","Modrinth":""},{"Id":23740,"Name":"","CurseForge":"fallen-elves","Modrinth":""},{"Id":23741,"Name":"","CurseForge":"","Modrinth":"pv-addon-flashback"},{"Id":23742,"Name":"","CurseForge":"betterback","Modrinth":""},{"Id":23743,"Name":"AE2流体合成套件重置非官方版 (AE2 Fluid Craft Rework Unofficial)","CurseForge":"ae2fluidcraft-rework-unofficial","Modrinth":""},{"Id":23744,"Name":"","CurseForge":"annihilation-recreated","Modrinth":""},{"Id":23745,"Name":"","CurseForge":"simple-kelpies","Modrinth":"simple-kelpies"},{"Id":23746,"Name":"","CurseForge":"tacz-turrets","Modrinth":"tacz-turrets"},{"Id":23749,"Name":"","CurseForge":"health-scoring","Modrinth":""},{"Id":23750,"Name":"","CurseForge":"supearlposition","Modrinth":""},{"Id":23751,"Name":"","CurseForge":"daisy","Modrinth":"daisy"},{"Id":23752,"Name":"","CurseForge":"no-fall-mod","Modrinth":""},{"Id":23753,"Name":"","CurseForge":"","Modrinth":"farmers-assortment"},{"Id":23754,"Name":"","CurseForge":"foggy-world","Modrinth":""},{"Id":23756,"Name":"","CurseForge":"thieves","Modrinth":""},{"Id":23757,"Name":"","CurseForge":"witt","Modrinth":""},{"Id":23758,"Name":"","CurseForge":"techrot","Modrinth":"techrot"},{"Id":23759,"Name":"","CurseForge":"create-easyfilling","Modrinth":"create-easyfilling"},{"Id":23760,"Name":"","CurseForge":"mortar-and-pastels","Modrinth":"mortar"},{"Id":23761,"Name":"精致小垃圾 (Delicate Little Garbage)","CurseForge":"","Modrinth":"delicate_little_garbage"},{"Id":23762,"Name":"属性锻造:元素反应 (ElementalCraft: Reactions)","CurseForge":"elementalcraft-reactions","Modrinth":"elementalcraft-reactions"},{"Id":23764,"Name":"KubeJS配方生成 (KubeJS Recipes Create)","CurseForge":"kubejs-recipes-create","Modrinth":""},{"Id":23765,"Name":"仓鼠核心 (HamsterCore)","CurseForge":"hamstercore","Modrinth":"hamstercore"},{"Id":23766,"Name":"洗浴核心 (Shower Core)","CurseForge":"showercore","Modrinth":""},{"Id":23767,"Name":"音频播放专业版 (Playsound Pro)","CurseForge":"playsound-pro","Modrinth":"playsound_pro"},{"Id":23768,"Name":"四向疾跑 (OmniSprint)","CurseForge":"omnisprint","Modrinth":""},{"Id":23769,"Name":"幸运图腾 (Totem of Luck)","CurseForge":"","Modrinth":"totem-of-luck"},{"Id":23770,"Name":"无限供应器 (Infinite Provider)","CurseForge":"infinite-provider","Modrinth":"infinite-provider"},{"Id":23771,"Name":"","CurseForge":"annuus","Modrinth":"annuus"},{"Id":23772,"Name":"","CurseForge":"myosotis","Modrinth":"myosotis"},{"Id":23780,"Name":"魔法物流 (Magistics)","CurseForge":"magistics","Modrinth":""},{"Id":23781,"Name":"","CurseForge":"littlefix","Modrinth":""},{"Id":23782,"Name":"","CurseForge":"","Modrinth":"legacyvoicechat"},{"Id":23783,"Name":"快速配方查找 (Fast Recipe Search)","CurseForge":"fast-recipe-search","Modrinth":""},{"Id":23785,"Name":"","CurseForge":"speech-recognition","Modrinth":""},{"Id":23786,"Name":"更快的方块放置 (Faster Block Placement)","CurseForge":"faster-block-placement","Modrinth":"faster-block-placement"},{"Id":23787,"Name":"","CurseForge":"instantsleep","Modrinth":""},{"Id":23788,"Name":"区块保存修复 (Chunk Save Fix)","CurseForge":"chunk-save-fix","Modrinth":"chunk-save-fix"},{"Id":23789,"Name":"","CurseForge":"peacefulsurface","Modrinth":""},{"Id":23789,"Name":"","CurseForge":"peacefulsurface-fabric","Modrinth":""},{"Id":23790,"Name":"","CurseForge":"mazons-quarks","Modrinth":""},{"Id":23791,"Name":"光 渲染库 (LucisRenderLib)","CurseForge":"lucisrenderlib","Modrinth":"lucisrenderlib"},{"Id":23792,"Name":"禁止 AI 胡扯 (No AI Guess)","CurseForge":"no-ai-guess","Modrinth":"no-ai-guess"},{"Id":23793,"Name":"复制物品名称 (ItemNameCopier)","CurseForge":"itemnamecopier","Modrinth":""},{"Id":23794,"Name":"","CurseForge":"ping-like-r2","Modrinth":""},{"Id":23795,"Name":"","CurseForge":"super-bosses","Modrinth":"super-bosses"},{"Id":23796,"Name":"","CurseForge":"slashblade-patchouli","Modrinth":"slashblade-patchouli"},{"Id":23797,"Name":"","CurseForge":"ender-dragon-suit","Modrinth":""},{"Id":23798,"Name":"","CurseForge":"ecliptic-seasons-lets-do","Modrinth":""},{"Id":23799,"Name":"木工营造 ([Let's Do] Hearth & Timber)","CurseForge":"lets-do-hearth-timber","Modrinth":"lets-do-hearth-timber"},{"Id":23800,"Name":"","CurseForge":"immersive-vehicles-vdeco","Modrinth":"vdeco"},{"Id":23801,"Name":"","CurseForge":"netherized-kedition","Modrinth":""},{"Id":23802,"Name":"","CurseForge":"wizardry-and-fire","Modrinth":""},{"Id":23803,"Name":"","CurseForge":"pepsied-item-name-recolorer","Modrinth":""},{"Id":23804,"Name":"","CurseForge":"pepsied-auto-droppers","Modrinth":""},{"Id":23805,"Name":"","CurseForge":"pepsied-copper-item-pipes","Modrinth":""},{"Id":23806,"Name":"","CurseForge":"pepsied-exp-vacuum","Modrinth":""},{"Id":23807,"Name":"","CurseForge":"pepsied-pocket-dimension","Modrinth":""},{"Id":23808,"Name":"","CurseForge":"pepsied-mining-quarries","Modrinth":""},{"Id":23809,"Name":"","CurseForge":"sbm-red-cow","Modrinth":""},{"Id":23810,"Name":"","CurseForge":"fangs-textiles-and-trinkets","Modrinth":""},{"Id":23814,"Name":"","CurseForge":"saurialib","Modrinth":"saurialib"},{"Id":23815,"Name":"","CurseForge":"riftlibrary","Modrinth":"riftlibrary"},{"Id":23816,"Name":"","CurseForge":"clean-portals-randomportals-cleanroom-edition","Modrinth":""},{"Id":23817,"Name":"","CurseForge":"spinning-items-displayer-mod","Modrinth":"spinning-items-displayer-mod"},{"Id":23818,"Name":"","CurseForge":"attack-range-attribute","Modrinth":"attack-range-attribute"},{"Id":23819,"Name":"","CurseForge":"kreno-fpatcher","Modrinth":"kreno-fpatcher"},{"Id":23820,"Name":"","CurseForge":"riautomobility","Modrinth":"riautomobility"},{"Id":23821,"Name":"","CurseForge":"cyberware-reforged","Modrinth":"cyberware-reforged"},{"Id":23822,"Name":"","CurseForge":"project-plastic","Modrinth":""},{"Id":23823,"Name":"方块文件 (Blocky File)","CurseForge":"blocky-file","Modrinth":"blocky-file"},{"Id":23825,"Name":"森罗物语:下界 (Kaleidoscope Nether)","CurseForge":"kaleidoscope-nether","Modrinth":"kaleidoscope-nether"},{"Id":23826,"Name":"ME放置工具 (ME Placement Tool)","CurseForge":"me-placement-tool","Modrinth":"me-placement-tool"},{"Id":23827,"Name":"","CurseForge":"pepsied-slow-hopper","Modrinth":""},{"Id":23828,"Name":"","CurseForge":"nocubes-food-desire","Modrinth":""},{"Id":23829,"Name":"","CurseForge":"","Modrinth":"dense-flowers"},{"Id":23830,"Name":"","CurseForge":"prehistoric-rift","Modrinth":"prehistoric-rift"},{"Id":23833,"Name":"超多附魔增效 (More SlashBlade Ex Enchantment Effects)","CurseForge":"more-slashblade-ex-enchantment-effects","Modrinth":""},{"Id":23834,"Name":"匠魂EMC (Tinker's EMC)","CurseForge":"tinkers-emc","Modrinth":""},{"Id":23835,"Name":"TACZ 高级死亡信息 (TACZ Advanced DeathInfo (Kill Banners))","CurseForge":"","Modrinth":"tacz-advanced-deathinfo"},{"Id":23836,"Name":"召唤图腾 (Summon Totem)","CurseForge":"summon-totem","Modrinth":""},{"Id":23837,"Name":"古法工艺 (Traditional Craft)","CurseForge":"traditionalcraft","Modrinth":"traditionalcraft"},{"Id":23839,"Name":"圣诞音乐唱片 (Christmas Music Discs)","CurseForge":"christmas-music-discs","Modrinth":"christmas-music-discs"},{"Id":23840,"Name":"","CurseForge":"friends-for-life","Modrinth":"friends-for-life"},{"Id":23842,"Name":"羊毛压力板 (Wool Pressure Plates)","CurseForge":"wool-pressure-plates","Modrinth":"wool-pressure-plates"},{"Id":23843,"Name":"","CurseForge":"protect-mobs-from-daylight","Modrinth":"protect-mobs-from-daylight"},{"Id":23844,"Name":"","CurseForge":"pepsied-more-professions","Modrinth":""},{"Id":23845,"Name":"","CurseForge":"pepsied-chaos-core","Modrinth":""},{"Id":23846,"Name":"","CurseForge":"pepsied-auto-bridger","Modrinth":""},{"Id":23847,"Name":"自定义树苗 (Custom Sapling)","CurseForge":"custom-sapling","Modrinth":"custom-sapling"},{"Id":23848,"Name":"箱子是个谎言 (ChestLie)","CurseForge":"chestlie","Modrinth":""},{"Id":23849,"Name":"样板供应器保存 (PatternProviderSave)","CurseForge":"patternprovidersave","Modrinth":"patternprovidersave"},{"Id":23850,"Name":"机械动力:懒惰刻 (Create: LazyTick)","CurseForge":"create-lazytick","Modrinth":"createlazytick"},{"Id":23851,"Name":"机械动力:哨戒动力臂 (Create: Sentry Mechanical Arm)","CurseForge":"create-sentry-mechanical-arm","Modrinth":""},{"Id":23852,"Name":"JEI匠魂燃料 (Just Enough Fuels)","CurseForge":"just-enough-fuels","Modrinth":""},{"Id":23853,"Name":"交易刷新:旧版 (Trade Refresh Legacy)","CurseForge":"trade-refresh-legacy","Modrinth":"trade_refresh_legacy"},{"Id":23855,"Name":"水产养殖 (Aquatic Breeding)","CurseForge":"aquatic-breeding","Modrinth":"aquatic-breeding"},{"Id":23856,"Name":"场取速拾 (Pack Up)","CurseForge":"pack-up","Modrinth":"ppack-up"},{"Id":23857,"Name":"","CurseForge":"fox-white-technologies","Modrinth":"fox-white-technologies"},{"Id":23858,"Name":"","CurseForge":"the-watching-deer","Modrinth":""},{"Id":23860,"Name":"","CurseForge":"sketches-blueprints","Modrinth":""},{"Id":23861,"Name":"","CurseForge":"whitefoxlib","Modrinth":"foxlib"},{"Id":23863,"Name":"","CurseForge":"compost","Modrinth":"compost"},{"Id":23864,"Name":"","CurseForge":"","Modrinth":"copper-coins"},{"Id":23865,"Name":"","CurseForge":"bons-odds-n-ends","Modrinth":"odds-n-ends"},{"Id":23866,"Name":"","CurseForge":"i-f-amphithere-mod","Modrinth":""},{"Id":23868,"Name":"","CurseForge":"unu-civilian-pack-for-mts","Modrinth":"unu-civilian-pack"},{"Id":23869,"Name":"","CurseForge":"rlcraft-manhunt","Modrinth":""},{"Id":23870,"Name":"","CurseForge":"ancient-forgemastery","Modrinth":"ancient-forgemastery"},{"Id":23871,"Name":"","CurseForge":"relentless-undead","Modrinth":""},{"Id":23872,"Name":"经典边境之地 (Classic Farlands)","CurseForge":"","Modrinth":"classic-farlands"},{"Id":23874,"Name":"","CurseForge":"the-morbid-unreborn","Modrinth":""},{"Id":23875,"Name":"","CurseForge":"","Modrinth":"crop-critters"},{"Id":23877,"Name":"","CurseForge":"clash-of-cards","Modrinth":""},{"Id":23878,"Name":"","CurseForge":"re-animal","Modrinth":"re-animal"},{"Id":23879,"Name":"","CurseForge":"tfc-ruins","Modrinth":"tfc-ruins"},{"Id":23880,"Name":"","CurseForge":"","Modrinth":"airraid"},{"Id":23881,"Name":"便捷传送 (EasyTp)","CurseForge":"","Modrinth":"easytp"},{"Id":23883,"Name":"星露谷物语HUD (Stardew HUD)","CurseForge":"stardew-hud","Modrinth":"stardew-hud"},{"Id":23884,"Name":"增强仿生 (Enhance Bionics)","CurseForge":"enhance-bionics","Modrinth":""},{"Id":23886,"Name":"","CurseForge":"profile-cached","Modrinth":"profile-cached"},{"Id":23887,"Name":"诡厄巫法:觉醒 (Goety: Awaken)","CurseForge":"goety-awaken","Modrinth":"goety-awaken"},{"Id":23888,"Name":"食施法 (ISS: Food Spelling)","CurseForge":"iss-food-spelling","Modrinth":"iss-food-spelling"},{"Id":23889,"Name":"","CurseForge":"one-enough-enchantment","Modrinth":"one-enough-enchantment"},{"Id":23890,"Name":"","CurseForge":"one-enough-value","Modrinth":"one-enough-value"},{"Id":23891,"Name":"坐标管理器 (Coordinate Manager)","CurseForge":"","Modrinth":"coordinate-manager"},{"Id":23894,"Name":"墓碑修复 (Gravestones Fix)","CurseForge":"","Modrinth":"gravestones-fix"},{"Id":23895,"Name":"","CurseForge":"whimsy-deco","Modrinth":"whimsy-deco"},{"Id":23896,"Name":"","CurseForge":"incendium-translation-fix","Modrinth":"incendium-translation-fix"},{"Id":23897,"Name":"","CurseForge":"","Modrinth":"sinfo"},{"Id":23898,"Name":"","CurseForge":"tarkovcraft-core","Modrinth":"tarkovcraft-core"},{"Id":23899,"Name":"","CurseForge":"saro-s-road-blocks-mod","Modrinth":"saros-road-blocks"},{"Id":23900,"Name":"","CurseForge":"saro-s-road-signs-mod","Modrinth":"saros-road-signs"},{"Id":23902,"Name":"更多音乐唱片 (More Music Discs)","CurseForge":"more-mc-music-discs","Modrinth":"more-music-discs"},{"Id":23904,"Name":"","CurseForge":"astikorcarts-deluxe","Modrinth":""},{"Id":23905,"Name":"","CurseForge":"village-spirits","Modrinth":""},{"Id":23906,"Name":"","CurseForge":"immersive-engineering-js","Modrinth":""},{"Id":23907,"Name":"","CurseForge":"bygone-fortress","Modrinth":""},{"Id":23910,"Name":"","CurseForge":"extra-shiny","Modrinth":""},{"Id":23911,"Name":"","CurseForge":"pack-cen-header-fix","Modrinth":"pack-cen-header-fix"},{"Id":23912,"Name":"","CurseForge":"tmagriculture","Modrinth":""},{"Id":23914,"Name":"","CurseForge":"zombie-rush-1-12-2","Modrinth":"zombie-rush+"},{"Id":23915,"Name":"","CurseForge":"foxae2upgrade","Modrinth":"foxae2upgrade"},{"Id":23916,"Name":"","CurseForge":"wasteland-expanded","Modrinth":"wasteland-expanded"},{"Id":23917,"Name":"","CurseForge":"wakes-reforged","Modrinth":"wakes-reforged"},{"Id":23918,"Name":"","CurseForge":"dank-null-legacy","Modrinth":""},{"Id":23919,"Name":"","CurseForge":"subtle-fix","Modrinth":""},{"Id":23920,"Name":"宙蚀之刻 (Hyxcate (Night/Day Events and Meteors))","CurseForge":"hyxcate","Modrinth":""},{"Id":23923,"Name":"","CurseForge":"bucket-hat","Modrinth":""},{"Id":23924,"Name":"","CurseForge":"christmas-sweaters","Modrinth":""},{"Id":23925,"Name":"","CurseForge":"christmas-delight","Modrinth":"christmas-delight-(farmers-delight-addon)"},{"Id":23926,"Name":"","CurseForge":"autumnal-winterly","Modrinth":"autumnal-winterly"},{"Id":23927,"Name":"","CurseForge":"zombie-virus-antidote","Modrinth":"(hordes)-zombie-virus-antidote"},{"Id":23928,"Name":"","CurseForge":"","Modrinth":"letmespeak"},{"Id":23929,"Name":"","CurseForge":"otyacraft-engine-renewed","Modrinth":"otyacraft-engine-renewed"},{"Id":23931,"Name":"","CurseForge":"openinventory","Modrinth":"openinventory"},{"Id":23932,"Name":"僵尸破坏玻璃 (Zombies Break Glass)","CurseForge":"zombies-break-glass","Modrinth":"zombies-break-glass"},{"Id":23933,"Name":"","CurseForge":"","Modrinth":"vintagetag"},{"Id":23934,"Name":"","CurseForge":"floodlights","Modrinth":""},{"Id":23935,"Name":"","CurseForge":"ic2c-additions","Modrinth":""},{"Id":23936,"Name":"","CurseForge":"ic2additions","Modrinth":"ic2additions"},{"Id":23937,"Name":"","CurseForge":"uranium-big-reactor","Modrinth":""},{"Id":23938,"Name":"","CurseForge":"custommachinery-fork","Modrinth":""},{"Id":23939,"Name":"","CurseForge":"player-animation-library","Modrinth":"player-animation-library"},{"Id":23940,"Name":"","CurseForge":"cnpc-epicfight-integration","Modrinth":"cnpc-epicfight-integration"},{"Id":23942,"Name":"","CurseForge":"","Modrinth":"pextras"},{"Id":23944,"Name":"","CurseForge":"create-hamsterwheel","Modrinth":"create-hamsterwheel"},{"Id":23945,"Name":"","CurseForge":"guerreros-del-mundo-2","Modrinth":""},{"Id":23946,"Name":"","CurseForge":"tacz-additions","Modrinth":""},{"Id":23947,"Name":"","CurseForge":"potion-replacer","Modrinth":""},{"Id":23948,"Name":"回城之尘 (Home Dust)","CurseForge":"home-dust","Modrinth":""},{"Id":23949,"Name":"","CurseForge":"","Modrinth":"hagds_tpa"},{"Id":23950,"Name":"","CurseForge":"oeuvre","Modrinth":""},{"Id":23952,"Name":"森罗物语:玩偶拓展 (Kaleidoscope Addons)","CurseForge":"","Modrinth":"kaleidoscope-addons"},{"Id":23953,"Name":"藍月光的交通扩展 (BML's Transit Expansion)","CurseForge":"","Modrinth":"bte"},{"Id":23954,"Name":"通达铁路-for-Forge (TongDaRailway for Forge)","CurseForge":"tongdarailway-for-forge","Modrinth":""},{"Id":23955,"Name":"反恐精英:投掷物 (Counter Strike Grenades)","CurseForge":"counter-strike-grenades","Modrinth":"counterstrikegrenade"},{"Id":23957,"Name":"","CurseForge":"sync-forge","Modrinth":""},{"Id":23958,"Name":"","CurseForge":"","Modrinth":"sync-fabric-reported"},{"Id":23959,"Name":"玩家躯壳 (Player Shells)","CurseForge":"player-shells","Modrinth":"player-shells"},{"Id":23960,"Name":"","CurseForge":"cataclysm-ametyst-crab-temple","Modrinth":"cataclysm-ametyst-crab-temple"},{"Id":23961,"Name":"","CurseForge":"","Modrinth":"entity-0-elytra-fix"},{"Id":23962,"Name":"巫法精通 (Goety: Mastery of Magic Addon)","CurseForge":"goety-mastery-of-magic-addon","Modrinth":"goety-mastery-of-magic-addon"},{"Id":23963,"Name":"","CurseForge":"malisis-doors-revived","Modrinth":""},{"Id":23964,"Name":"","CurseForge":"akuto-engine","Modrinth":""},{"Id":23966,"Name":"","CurseForge":"","Modrinth":"omnicrossbow"},{"Id":23967,"Name":"","CurseForge":"knightperipherals","Modrinth":""},{"Id":23969,"Name":"","CurseForge":"","Modrinth":"things-made-easy"},{"Id":23970,"Name":"","CurseForge":"tool-trims-mod","Modrinth":"tool-trims-mod"},{"Id":23971,"Name":"经典洞穴 (Classic Caves)","CurseForge":"","Modrinth":"classic-caves"},{"Id":23972,"Name":"","CurseForge":"just-parry","Modrinth":"just-parry"},{"Id":23973,"Name":"","CurseForge":"colored-light-core","Modrinth":""},{"Id":23975,"Name":"天顶剑 (The Zenith Sword)","CurseForge":"the-zenith-sword","Modrinth":"the-zenith-sword"},{"Id":23976,"Name":"","CurseForge":"better-f3-reborn","Modrinth":""},{"Id":23977,"Name":"","CurseForge":"blockcraftery-refurbished","Modrinth":""},{"Id":23978,"Name":"","CurseForge":"wonderland-jar","Modrinth":"wonderland-jar"},{"Id":23979,"Name":"","CurseForge":"block-duplicator-tree","Modrinth":"block-duplicator-tree"},{"Id":23980,"Name":"","CurseForge":"the-enderwoman-mod","Modrinth":"the-enderwoman-mod"},{"Id":23982,"Name":"","CurseForge":"","Modrinth":"no-hurt-flash"},{"Id":23983,"Name":"","CurseForge":"no-hurt-flash-reforged","Modrinth":""},{"Id":23984,"Name":"","CurseForge":"","Modrinth":"darks-found-footage-addon"},{"Id":23985,"Name":"起源:明日方舟源石技艺","CurseForge":"","Modrinth":"arknights-origins-originium-arts"},{"Id":23986,"Name":"Quincy的盘子 (Quincy's Plate)","CurseForge":"quincys-plate","Modrinth":"quincys-plate"},{"Id":23987,"Name":"","CurseForge":"visiontoggle","Modrinth":"visiontoggle+"},{"Id":23988,"Name":"","CurseForge":"regions-unexplored-expansion","Modrinth":"regions-unexplored-expansion"},{"Id":23989,"Name":"","CurseForge":"cyberbop","Modrinth":""},{"Id":23990,"Name":"可爱多 (Adorable Dolls)","CurseForge":"adorable-dolls","Modrinth":"adorable-dolls"},{"Id":23991,"Name":"随意传送 (No permission tp)","CurseForge":"","Modrinth":"tpnoop"},{"Id":23992,"Name":"","CurseForge":"qliphoth-armaments","Modrinth":""},{"Id":23994,"Name":"龙之赛环 (Dragon Rings)","CurseForge":"dragon-rings","Modrinth":""},{"Id":23995,"Name":"","CurseForge":"viscriptshop","Modrinth":"viscriptshop"},{"Id":23998,"Name":"Create:实用功能 (Create: Ergonomic)","CurseForge":"","Modrinth":"create-ergonomic"},{"Id":23999,"Name":"","CurseForge":"mending-gems","Modrinth":""},{"Id":24000,"Name":"","CurseForge":"energy-meters","Modrinth":""},{"Id":24002,"Name":"永爱之刃 (ForeverLoveSword)","CurseForge":"","Modrinth":"forever-love-sword"},{"Id":24005,"Name":"女仆属性 (Maid Attributes)","CurseForge":"maid-attributes","Modrinth":"maid-attributes"},{"Id":24006,"Name":"存储和一键合成 (Storage and One-Click Synthesis)","CurseForge":"","Modrinth":"storage-and-one-click-synthesis"},{"Id":24007,"Name":"王城剑兰 Lib (Rcg Lib)","CurseForge":"rcg-lib","Modrinth":""},{"Id":24008,"Name":"隐藏准星 (Crosshair Hider)","CurseForge":"","Modrinth":"hide-crosshair"},{"Id":24009,"Name":"快速帧率显示 (Fast FPS Display)","CurseForge":"fast-fps-display","Modrinth":""},{"Id":24009,"Name":"快速帧率显示 (Fast FPS Display) - 源代码/正式版/测试版","CurseForge":"","Modrinth":"fast-fps-display"},{"Id":24010,"Name":"","CurseForge":"catzilla","Modrinth":""},{"Id":24011,"Name":"小狼夜瑛的物品 (Wolf_Yeying_s_Item)","CurseForge":"wy-s-item","Modrinth":""},{"Id":24012,"Name":"混乱处刑 (Blade of Chaos)","CurseForge":"thebladeofchaos49","Modrinth":""},{"Id":24013,"Name":"MaoPhone体验版 (MaoPhone - Trial Version)","CurseForge":"maophone-trial-version","Modrinth":"maophone-trial-version"},{"Id":24016,"Name":"世界之心 (Aether Cores)","CurseForge":"mrmc","Modrinth":""},{"Id":24018,"Name":"秘法涡流 (Arcane Vortex)","CurseForge":"","Modrinth":"arcane-vortex"},{"Id":24020,"Name":"往来任务 (ContactQuests)","CurseForge":"contactquests","Modrinth":"contactquests"},{"Id":24022,"Name":"自定义药水颜色 (Custom Potion Color)","CurseForge":"custom-potion-color","Modrinth":""},{"Id":24023,"Name":"","CurseForge":"modular-forcefields","Modrinth":"modular-force-field-systems"},{"Id":24024,"Name":"","CurseForge":"shinyfood","Modrinth":""},{"Id":24026,"Name":"","CurseForge":"integrated-lucky-blocks","Modrinth":""},{"Id":24027,"Name":"","CurseForge":"doublingtable","Modrinth":""},{"Id":24028,"Name":"","CurseForge":"immersive-ores","Modrinth":"immersive-ores"},{"Id":24029,"Name":"","CurseForge":"spartan-compatibility","Modrinth":""},{"Id":24030,"Name":"","CurseForge":"looters-compass","Modrinth":"looters-compass"},{"Id":24033,"Name":"","CurseForge":"the-creep","Modrinth":""},{"Id":24034,"Name":"","CurseForge":"bettermineteam","Modrinth":"bettermineteam"},{"Id":24035,"Name":"","CurseForge":"stopwatch","Modrinth":""},{"Id":24036,"Name":"","CurseForge":"as-you-wish","Modrinth":"as-you-wish"},{"Id":24039,"Name":"","CurseForge":"clifftree-mod","Modrinth":""},{"Id":24040,"Name":"绝妙的生物群:悖论 (Marvelous Menagerie: Paradoxical)","CurseForge":"marvelous-menagerie-paradoxical","Modrinth":"marvelous-menagerie-paradoxical"},{"Id":24041,"Name":"长骑速驰 · 召之马来兼容版 (Callable Horse compatible)","CurseForge":"callable-horse-compatible","Modrinth":""},{"Id":24042,"Name":"","CurseForge":"spiritborne-ascendants","Modrinth":""},{"Id":24043,"Name":"","CurseForge":"rgb-chat-vintage","Modrinth":""},{"Id":24045,"Name":"","CurseForge":"bloody-bits-fix","Modrinth":""},{"Id":24046,"Name":"","CurseForge":"descendants-weaponry","Modrinth":"descendants-weaponry"},{"Id":24047,"Name":"","CurseForge":"chemicalscience","Modrinth":"chemicalscience"},{"Id":24048,"Name":"HUD 控制 (HUD Control)","CurseForge":"hud-control","Modrinth":"hud-control"},{"Id":24050,"Name":"MC 直升机:社区版 (McHeli: Community Edition)","CurseForge":"mchce","Modrinth":""},{"Id":24052,"Name":"更容易的耀魂碎片获取 (easier proud soul acquisition)","CurseForge":"easier-proud-soul-acquisition","Modrinth":""},{"Id":24053,"Name":"拔刀剑:再重织 (SlashBlade: RE-Refabricated)","CurseForge":"","Modrinth":"slashblade-re-refabricated"},{"Id":24054,"Name":"神秘农业社区版 (Mystical Agriculture Community Edition)","CurseForge":"mystical-agriculture-community-edition","Modrinth":"mystical-agriculture-community-edition"},{"Id":24055,"Name":"","CurseForge":"lazydfu-reloaded","Modrinth":"lazydfu-reloaded"},{"Id":24056,"Name":"元元元元件件件件 (Cell⁴)","CurseForge":"cell4","Modrinth":"cell4"},{"Id":24057,"Name":"","CurseForge":"tacz-slings","Modrinth":"tacz-slings"},{"Id":24058,"Name":"简易玩偶 (EasyDoll)","CurseForge":"easydoll","Modrinth":"easydoll"},{"Id":24060,"Name":"","CurseForge":"gaiatweaks","Modrinth":"gaiatweaks"},{"Id":24062,"Name":"更幸运的四叶草 (Luckier Clover)","CurseForge":"luckier-clover","Modrinth":"luckier-clover"},{"Id":24063,"Name":"机械动力:电力学 (Create: Electro Energetics)","CurseForge":"create-electro-energetics","Modrinth":""},{"Id":24065,"Name":"","CurseForge":"universal-trinkets","Modrinth":"universal-trinkets"},{"Id":24066,"Name":"肉鸽塔 (Roguelike tower)","CurseForge":"roguelike-tower","Modrinth":""},{"Id":24068,"Name":"","CurseForge":"stranger-things-the-upside-down","Modrinth":"stranger-things-the-upside-down"},{"Id":24070,"Name":"","CurseForge":"prims-stranger-things-mod","Modrinth":""},{"Id":24072,"Name":"超级背包 (Super Backpack)","CurseForge":"super-backpack","Modrinth":"super-backpack"},{"Id":24075,"Name":"","CurseForge":"radiance","Modrinth":""},{"Id":24075,"Name":"","CurseForge":"","Modrinth":"radiance-mod-windows"},{"Id":24075,"Name":"","CurseForge":"","Modrinth":"radiance-mod-linux"},{"Id":24076,"Name":"","CurseForge":"xaerolib","Modrinth":"xaerolib"},{"Id":24078,"Name":"通用金属工具 (Universal Metal Tools)","CurseForge":"umt-universal-metal-tools","Modrinth":""},{"Id":24079,"Name":"","CurseForge":"steel-spin-balls","Modrinth":""},{"Id":24080,"Name":"BOMD乐事 (Bosses Delight)","CurseForge":"bosses-delight","Modrinth":""},{"Id":24081,"Name":"清空编辑框 (Emptiable Boxes)","CurseForge":"emptiableboxes","Modrinth":""},{"Id":24082,"Name":"","CurseForge":"gadgets-n-goodies-mod","Modrinth":""},{"Id":24083,"Name":"","CurseForge":"lag-spike-profiler","Modrinth":""},{"Id":24084,"Name":"","CurseForge":"jabelars-moving-light-sources","Modrinth":""},{"Id":24085,"Name":"","CurseForge":"just-enough-torches","Modrinth":""},{"Id":24086,"Name":"","CurseForge":"quantum-lights","Modrinth":""},{"Id":24087,"Name":"","CurseForge":"curios-slot-for-ammo-boxes","Modrinth":""},{"Id":24088,"Name":"流光溢彩延续版 (Lumenized Continued)","CurseForge":"lumenized-continued","Modrinth":"lumenized-continued"},{"Id":24089,"Name":"","CurseForge":"thirdpersoncrosshair","Modrinth":""},{"Id":24090,"Name":"高清摄影 (HiResShot)","CurseForge":"hiresshot","Modrinth":"hiresshot"},{"Id":24091,"Name":"","CurseForge":"","Modrinth":"swappingaffinity"},{"Id":24092,"Name":"伤害补正 (Damage Correction)","CurseForge":"damage-correction","Modrinth":"damage-correction"},{"Id":24093,"Name":"","CurseForge":"no-fly-zone","Modrinth":"no-fly-zone"},{"Id":24095,"Name":"2D 投掷物 ➵ (2D Projectiles ➵)","CurseForge":"twod-projectiles","Modrinth":"twod_projectiles"},{"Id":24096,"Name":"","CurseForge":"morethermalevaporation","Modrinth":""},{"Id":24097,"Name":"自动钓鱼Forge版-匠魂兼容 (AutoFish for Tic)","CurseForge":"autofish-for-tic","Modrinth":"autofish-for-tic"},{"Id":24098,"Name":"泰拉饰品拓展 (Wizard Terra Curios/Wizard Terra Curios New)","CurseForge":"wtc-wizard-terra-curios-new","Modrinth":""},{"Id":24099,"Name":"物品标记 (InvItemMark)","CurseForge":"invitemmark","Modrinth":"invitemmark"},{"Id":24100,"Name":"","CurseForge":"book-of-dragons","Modrinth":"book-of-dragons"},{"Id":24102,"Name":"","CurseForge":"nexuslib","Modrinth":"nexuslib"},{"Id":24103,"Name":"无相 (Formless)","CurseForge":"formless","Modrinth":""},{"Id":24104,"Name":"","CurseForge":"storagebox-adapter","Modrinth":"storagebox-adapter"},{"Id":24105,"Name":"","CurseForge":"nondirectionaldamagetiltfix","Modrinth":"nondirectionaldamagetiltfix"},{"Id":24106,"Name":"","CurseForge":"mekanism-atmospheric-stabilizer","Modrinth":""},{"Id":24107,"Name":"","CurseForge":"mekajadeupgrades","Modrinth":""},{"Id":24108,"Name":"","CurseForge":"re-avaritia-io-neo","Modrinth":"re-avaritia-io"},{"Id":24109,"Name":"","CurseForge":"more-capacitor","Modrinth":""},{"Id":24111,"Name":"","CurseForge":"","Modrinth":"lexforgefix"},{"Id":24112,"Name":"泥砖菜盘(逆转裁判) (AA-MBVD)","CurseForge":"","Modrinth":"aa-mbvd"},{"Id":24115,"Name":"东垂瓜 (The Wax Gourd)","CurseForge":"the-wax-gourd","Modrinth":"the-wax-gourd"},{"Id":24117,"Name":"永恒烟花火箭 (Eternal Firework Rocket)","CurseForge":"","Modrinth":"eternal-firework-rocket"},{"Id":24118,"Name":"魔艺拓展 (Ars Extensions)","CurseForge":"arse-ars-extensions","Modrinth":""},{"Id":24119,"Name":"宝石属性 (GemAttribute)","CurseForge":"","Modrinth":"gemattribute"},{"Id":24120,"Name":"增强采石场 (Enhanced Quarries)","CurseForge":"enhancedquarries","Modrinth":"enhancedquarries"},{"Id":24123,"Name":"","CurseForge":"extraloader","Modrinth":"extraloader"},{"Id":24124,"Name":"","CurseForge":"skyrims-skeletons-meme","Modrinth":""},{"Id":24126,"Name":"","CurseForge":"","Modrinth":"3k08"},{"Id":24127,"Name":"空间立方体 (Space Cube)","CurseForge":"spacecube","Modrinth":"spacecube"},{"Id":24128,"Name":"","CurseForge":"cinematic-cataclysm","Modrinth":""},{"Id":24129,"Name":"呼朋引伴/你的名字 (Call You By Your Name)","CurseForge":"call-you-by-your-name","Modrinth":"call-you-by-your-name"},{"Id":24130,"Name":"","CurseForge":"","Modrinth":"techutils"},{"Id":24131,"Name":"","CurseForge":"storagebox-mod","Modrinth":""},{"Id":24132,"Name":"","CurseForge":"storagebox-fabric","Modrinth":"storagebox-fabric"},{"Id":24133,"Name":"","CurseForge":"extended-tools","Modrinth":"extended-tools"},{"Id":24134,"Name":"","CurseForge":"dynamic-electricity","Modrinth":"dynamic-electricity"},{"Id":24135,"Name":"","CurseForge":"maptip","Modrinth":"maptip"},{"Id":24136,"Name":"","CurseForge":"astikorcarts-tfc","Modrinth":""},{"Id":24137,"Name":"","CurseForge":"","Modrinth":"nvidium-neoforge"},{"Id":24138,"Name":"","CurseForge":"item-flicker","Modrinth":"itemflicker"},{"Id":24139,"Name":"","CurseForge":"vamppatch","Modrinth":""},{"Id":24140,"Name":"","CurseForge":"speedy-path","Modrinth":"speedy-path"},{"Id":24141,"Name":"","CurseForge":"","Modrinth":"core-lib-api"},{"Id":24142,"Name":"","CurseForge":"","Modrinth":"text-placeholder-api-expr"},{"Id":24143,"Name":"铱物语 (Iridium Story)","CurseForge":"iridium-story","Modrinth":""},{"Id":24144,"Name":"","CurseForge":"jei-enhancements","Modrinth":"jei-enhancements"},{"Id":24146,"Name":"DLC管理器 (DLC Manager) - 主要通道","CurseForge":"dlc-manager","Modrinth":""},{"Id":24146,"Name":"DLC管理器 (DLC Manager)","CurseForge":"","Modrinth":"dlc-manager"},{"Id":24148,"Name":"","CurseForge":"","Modrinth":"map.png"},{"Id":24149,"Name":"","CurseForge":"bluelib","Modrinth":"bluelib"},{"Id":24149,"Name":"BlueLib - Common 版","CurseForge":"bluelib-common","Modrinth":"bluelib-common"},{"Id":24150,"Name":"","CurseForge":"bluedude-dragons","Modrinth":"bluedude-dragons"},{"Id":24151,"Name":"","CurseForge":"","Modrinth":"native-nicknames"},{"Id":24153,"Name":"开山棒 (KaiShanStick)","CurseForge":"","Modrinth":"kaishanstick"},{"Id":24154,"Name":"","CurseForge":"hell-yeah-grass","Modrinth":""},{"Id":24155,"Name":"","CurseForge":"small-stairs119","Modrinth":"small-stairs119"},{"Id":24156,"Name":"","CurseForge":"nuclear-boiler","Modrinth":"nuclear-boiler"},{"Id":24158,"Name":"森罗物语:玩偶工坊 (Kaleidoscope Doll Workshop)","CurseForge":"kaleidoscope-doll-workshop","Modrinth":"kaleidoscope-doll-workshop"},{"Id":24159,"Name":"","CurseForge":"skybeam-block-revival","Modrinth":"skybeam-block-revival"},{"Id":24160,"Name":"","CurseForge":"mechanix","Modrinth":""},{"Id":24162,"Name":"水果乐事 (FruityDelight)","CurseForge":"fruitydelight","Modrinth":"fruitydelight"},{"Id":24163,"Name":"","CurseForge":"the-architects-bypass","Modrinth":""},{"Id":24164,"Name":"","CurseForge":"terran-expansion","Modrinth":""},{"Id":24165,"Name":"铁砧工艺:KubeJS (AnvilCraft: KubeJS)","CurseForge":"anvilcraft-kubejs","Modrinth":"anvilcraf-kubejs"},{"Id":24166,"Name":"机械动力汽鸣铁道:重铸 (Steam 'n' Rails NeoForge)","CurseForge":"steam-n-rails-neoforge","Modrinth":"create-steam-n-rails-1.21.1"},{"Id":24167,"Name":"","CurseForge":"foxified-dense-flowers","Modrinth":"foxified-dense-flowers"},{"Id":24168,"Name":"","CurseForge":"chickens-2","Modrinth":"chickens-2"},{"Id":24169,"Name":"","CurseForge":"ender-io-conduit-replacer","Modrinth":""},{"Id":24170,"Name":"瓦尔基里:逻辑仪表 (Create: Valkyrien Logistics)","CurseForge":"valkyrien-logistics","Modrinth":"valkyrien-logistics"},{"Id":24171,"Name":"铁砧工艺:更好的信标兼容 (AnvilCraft: BetterBeaconsCompatible)","CurseForge":"anvilcraft-better-beacons-compatible","Modrinth":"anvilcraft-better-beacons-compatible"},{"Id":24172,"Name":"铁砧工艺:饰品 (AnvilCraft: Curios)","CurseForge":"anvilcraft-curios","Modrinth":"anvilcraft-curios"},{"Id":24173,"Name":"铁砧工艺:帕秋莉手册 (AnvilCraft: Patchouli)","CurseForge":"anvilcraft-patchouli","Modrinth":"anvilcraft-patchouli"},{"Id":24174,"Name":"幻形 (Illusion)","CurseForge":"","Modrinth":"illusion"},{"Id":24175,"Name":"TNT复制器 (TNT Duper)","CurseForge":"tnt-duper","Modrinth":""},{"Id":24176,"Name":"","CurseForge":"create-storage-neo-forge","Modrinth":"create-storage-neo-forge"},{"Id":24177,"Name":"","CurseForge":"create-springs","Modrinth":"create-springs"},{"Id":24178,"Name":"","CurseForge":"","Modrinth":"create-more-parallel-pipes-fabric"},{"Id":24179,"Name":"","CurseForge":"baby-animals","Modrinth":""},{"Id":24180,"Name":"","CurseForge":"","Modrinth":"infernum-effugium"},{"Id":24182,"Name":"息壤 (World Reloader)","CurseForge":"world-reloader","Modrinth":""},{"Id":24183,"Name":"飞升:精通 (Ascension Mastery)","CurseForge":"ascension-mastery","Modrinth":"ascension-mastery"},{"Id":24185,"Name":"","CurseForge":"","Modrinth":"skip-server-resource-packs"},{"Id":24186,"Name":"","CurseForge":"alexs-mobs-1-21-1-port","Modrinth":"alexs-mobs(1.21.1)"},{"Id":24187,"Name":"","CurseForge":"alexs-caves-unofficial-port","Modrinth":"alexs-caves-(unofficial-port)"},{"Id":24188,"Name":"","CurseForge":"betterend-neoforge","Modrinth":"betterend-neoforge"},{"Id":24189,"Name":"","CurseForge":"betternether-neoforge","Modrinth":"betternether-neoforge"},{"Id":24190,"Name":"","CurseForge":"","Modrinth":"create-wells"},{"Id":24191,"Name":"","CurseForge":"wunderlib","Modrinth":"wunderlib"},{"Id":24192,"Name":"","CurseForge":"wunderlib-neoforge","Modrinth":"wunderlib-neoforge"},{"Id":24193,"Name":"","CurseForge":"citadel-1-21-1-port","Modrinth":"citadel-(1.21.1-port)"},{"Id":24194,"Name":"","CurseForge":"bclib-neoforge","Modrinth":"bclib-neoforge"},{"Id":24195,"Name":"","CurseForge":"worldweaver-neoforge","Modrinth":"worldweaver-neoforge"},{"Id":24196,"Name":"模组菜单(NeoForge 版) (Mod Menu (NeoForge Edition))","CurseForge":"mod-menu-neoforge-edition","Modrinth":"mod-menu-(neoforge-edition)"},{"Id":24197,"Name":"","CurseForge":"bugfixerupper","Modrinth":"bugfixerupper"},{"Id":24198,"Name":"","CurseForge":"","Modrinth":"create-storage-refabricated"},{"Id":24200,"Name":"","CurseForge":"critters-delight","Modrinth":"critters-delight"},{"Id":24202,"Name":"星光的养成模组 (Stars Good Life)","CurseForge":"stars-good-life","Modrinth":""},{"Id":24203,"Name":"[黎氏科技] 指向靶点 (XCZ Target Directed)","CurseForge":"","Modrinth":"beacon-enhancement"},{"Id":24204,"Name":"Diexv苦力怕 (DiexvCreeper)","CurseForge":"","Modrinth":"diexvcreeper"},{"Id":24205,"Name":"森罗厨房:自动化 (Kaleidoscope Cookery: Automation)","CurseForge":"kaleidoscope-cookery-automation","Modrinth":"kaleidoscopecookery-automation"},{"Id":24206,"Name":"堡垒遗迹翻新工程 (Bastion Remnant Renovation Project)","CurseForge":"bastion-remnant-renovation-project","Modrinth":""},{"Id":24210,"Name":"堆肥箱 (Compostbin)","CurseForge":"compostbin","Modrinth":"compostbin"},{"Id":24211,"Name":"铁砧工艺:思索 (AnvilCraft: Ponder)","CurseForge":"anvilcraft-ponder","Modrinth":"anvilcraft-ponder"},{"Id":24212,"Name":"铁砧工艺:GuideME (AnvilCraft: GuideME)","CurseForge":"anvilcraft-guideme","Modrinth":"anvilcraft-guideme"},{"Id":24213,"Name":"铁砧工艺:三角化 (AnvilCraft: Delta)","CurseForge":"anvilcraft-delta","Modrinth":"anvilcraft-delta"},{"Id":24214,"Name":"铁砧工艺:青春版 (AnvilCraft: Lite)","CurseForge":"anvilcraft-lite","Modrinth":"anvilcraft-lite"},{"Id":24216,"Name":"","CurseForge":"me-proxy","Modrinth":"me-proxy"},{"Id":24217,"Name":"","CurseForge":"kubejs-oritech-kjs","Modrinth":"kubejs-oritech"},{"Id":24219,"Name":"矿石探测器 (Ore Detector)","CurseForge":"","Modrinth":"oredetector1"},{"Id":24220,"Name":"","CurseForge":"enchanted-wands-tomes","Modrinth":"enchanted-wands-tomes"},{"Id":24221,"Name":"机械动力:咖啡馆 (Fabric) (Create Cafe Fabric)","CurseForge":"","Modrinth":"create-cafe-fabric"},{"Id":24222,"Name":"","CurseForge":"createjeicompat","Modrinth":"create-jei-compat"},{"Id":24223,"Name":"","CurseForge":"jeiores","Modrinth":""},{"Id":24224,"Name":"","CurseForge":"enhanced-mob-variants","Modrinth":""},{"Id":24225,"Name":"","CurseForge":"squickens","Modrinth":""},{"Id":24226,"Name":"","CurseForge":"additional-small-stairs","Modrinth":"additional-small-stairs"},{"Id":24227,"Name":"","CurseForge":"","Modrinth":"golem-dandori"},{"Id":24228,"Name":"","CurseForge":"","Modrinth":"private-horses"},{"Id":24229,"Name":"","CurseForge":"","Modrinth":"dropbar"},{"Id":24230,"Name":"","CurseForge":"","Modrinth":"vanilla-outsider-better-dogs"},{"Id":24231,"Name":"","CurseForge":"","Modrinth":"oceans-delight-polymer-port"},{"Id":24232,"Name":"","CurseForge":"","Modrinth":"storage-delight-polymer"},{"Id":24233,"Name":"","CurseForge":"","Modrinth":"crate-delight-polymer"},{"Id":24234,"Name":"","CurseForge":"","Modrinth":"more-delight-polymer"},{"Id":24235,"Name":"","CurseForge":"","Modrinth":"spanish-delight-polymer"},{"Id":24236,"Name":"","CurseForge":"","Modrinth":"choppers-delight-port"},{"Id":24237,"Name":"","CurseForge":"","Modrinth":"frights-delight-polymer"},{"Id":24238,"Name":"","CurseForge":"","Modrinth":"ubes-delight-polymer"},{"Id":24239,"Name":"","CurseForge":"","Modrinth":"farmers-delight-polymer"},{"Id":24240,"Name":"","CurseForge":"repair-box","Modrinth":""},{"Id":24242,"Name":"","CurseForge":"","Modrinth":"out-of-sight-out-of-mind"},{"Id":24243,"Name":"聊天频道 (ChannelChat)","CurseForge":"","Modrinth":"channelchat"},{"Id":24244,"Name":"Omocha no Shugosha / おもちゃの守護者","CurseForge":"omocha-no-shugosha","Modrinth":""},{"Id":24245,"Name":"生活调味料:酒狐萝贝 (Spice of Life: Maid)","CurseForge":"spice-of-life-maid","Modrinth":"spice-of-life-maid"},{"Id":24246,"Name":"","CurseForge":"frostfall","Modrinth":""},{"Id":24247,"Name":"","CurseForge":"onlylooking-updated","Modrinth":""},{"Id":24248,"Name":"","CurseForge":"velocity-blur","Modrinth":""},{"Id":24249,"Name":"","CurseForge":"","Modrinth":"kmmms"},{"Id":24250,"Name":"","CurseForge":"rpg-style-more-bosses-early","Modrinth":"rpg-style-more-bosses"},{"Id":24252,"Name":"远古城市翻新工程 (Ancient City Renovation Project)","CurseForge":"ancient-city-renovation-project","Modrinth":""},{"Id":24253,"Name":"战舰崛起之时 (Warship Arise)","CurseForge":"warship-arise","Modrinth":""},{"Id":24254,"Name":"瓦尔基里X群峦传说兼容 (Valkrien Skies TFC Compat Fix)","CurseForge":"","Modrinth":"valkrien-skies-tfc-compat-fix"},{"Id":24255,"Name":"普罗米修斯 (Prometheus)","CurseForge":"prometheus","Modrinth":"prometheus-api"},{"Id":24256,"Name":"动态注册 (Dynamic Registrar)","CurseForge":"dynamic-registrar","Modrinth":""},{"Id":24257,"Name":"蔚蓝之海 (BlueOceans)","CurseForge":"blue-oceans","Modrinth":"blue-oceans"},{"Id":24258,"Name":"点到为止:遗产 (One Click One Block Legacy)","CurseForge":"one-click-one-block-legacy","Modrinth":"one-click-one-block-legacy"},{"Id":24259,"Name":"始终允许传送 (AlwaysAllowTP)","CurseForge":"","Modrinth":"alwaysallowtp"},{"Id":24260,"Name":"车万女仆:移动信标 (Touhou Little Maid: Beacon)","CurseForge":"","Modrinth":"touhou-little-maid-beacon"},{"Id":24261,"Name":"语录签名 (LuyuBaubles)","CurseForge":"luyubaubles","Modrinth":""},{"Id":24262,"Name":"铁砧工艺:森罗物语 (AnvilCraft: Kaleidoscope)","CurseForge":"anvilcraft-kaleidoscope","Modrinth":"anvilcraft-kaleidoscope"},{"Id":24263,"Name":"模块化蜜蜂 (Modular Bees)","CurseForge":"modular-bees","Modrinth":""},{"Id":24265,"Name":"稚子长留 (Forever Babies)","CurseForge":"forever-babies","Modrinth":"forever-babies"},{"Id":24266,"Name":"麦块主图 (Maingraph for MC)","CurseForge":"maingraph","Modrinth":"maingraph-for-mc"},{"Id":24267,"Name":"命令方块界面重构 (CommandBlockUIOverhaul)","CurseForge":"command-block-ui-overhaul","Modrinth":"command-block-ui-overhaul"},{"Id":24268,"Name":"链在一起 (ChainTogether)","CurseForge":"","Modrinth":"chaintogether"},{"Id":24269,"Name":"光耀千万块 (GowingBlockOutlines)","CurseForge":"","Modrinth":"glowmyblocks"},{"Id":24270,"Name":"","CurseForge":"","Modrinth":"zip-to-it"},{"Id":24272,"Name":"暮色森林线程修复(Forge) (Twilight Forest Thread Safety Addon Fork for Forge)","CurseForge":"fork-twilightforest-thread-safety-addon-for-forge","Modrinth":""},{"Id":24273,"Name":"Homura的闪电附魔 (Homura Lightning Enchantment)","CurseForge":"","Modrinth":"homura_lightning_enchantment"},{"Id":24274,"Name":"Homura的吸血附魔 (Homura Life Steal Enchantment)","CurseForge":"","Modrinth":"homura-life-steal-enchantment"},{"Id":24275,"Name":"","CurseForge":"easy-auto-cycler","Modrinth":"easy-auto-cycler"},{"Id":24277,"Name":"","CurseForge":"f34","Modrinth":"f34"},{"Id":24278,"Name":"","CurseForge":"biome-hud","Modrinth":""},{"Id":24279,"Name":"","CurseForge":"one-stack","Modrinth":""},{"Id":24280,"Name":"","CurseForge":"animights","Modrinth":""},{"Id":24281,"Name":"","CurseForge":"230215-library","Modrinth":""},{"Id":24282,"Name":"","CurseForge":"ctnh-core","Modrinth":""},{"Id":24283,"Name":"","CurseForge":"debugify-reforged","Modrinth":""},{"Id":24285,"Name":"","CurseForge":"","Modrinth":"lotr-legacy-kings-addon"},{"Id":24287,"Name":"","CurseForge":"ae2-tangible-bookmarks","Modrinth":"ae2-tangible-bookmarks"},{"Id":24288,"Name":"","CurseForge":"deadbyskillcheck","Modrinth":"deadbyskillcheck"},{"Id":24289,"Name":"","CurseForge":"stormies-spiders","Modrinth":"stormies-spiders"},{"Id":24290,"Name":"","CurseForge":"saints-dragons","Modrinth":"saints-dragons"},{"Id":24293,"Name":"建筑科技 (BuildTech)","CurseForge":"buildtech","Modrinth":""},{"Id":24294,"Name":"","CurseForge":"forge-multipart-integration-fmpi","Modrinth":""},{"Id":24295,"Name":"","CurseForge":"chemlab","Modrinth":""},{"Id":24296,"Name":"","CurseForge":"","Modrinth":"grand-indestructible-kingdom"},{"Id":24297,"Name":"隐藏的世界边界 (Hidden World Border)","CurseForge":"","Modrinth":"hidden-world-border"},{"Id":24298,"Name":"智能工作台4 (CraftingTable IV)","CurseForge":"craftingtable-iv","Modrinth":""},{"Id":24299,"Name":"特摄英雄补完计划-进化 (Tokusatsu Hero Instrumentality Project-Evolution)","CurseForge":"tokusatsu-hero-instrumentality-project-evolution","Modrinth":"thip-evo"},{"Id":24300,"Name":"","CurseForge":"buddy-drones","Modrinth":"buddy-drones"},{"Id":24301,"Name":"","CurseForge":"","Modrinth":"tlskin"},{"Id":24302,"Name":"","CurseForge":"shels-minechat","Modrinth":""},{"Id":24303,"Name":"","CurseForge":"legacy-gamemode-switcher","Modrinth":""},{"Id":24304,"Name":"","CurseForge":"","Modrinth":"borukva-food-exotic"},{"Id":24305,"Name":"","CurseForge":"betterblockz","Modrinth":"betterblockz"},{"Id":24306,"Name":"封包TaCZ (PackagedTacz)","CurseForge":"packagedtacz","Modrinth":""},{"Id":24307,"Name":"","CurseForge":"lotas-light","Modrinth":"lotas-light"},{"Id":24309,"Name":"","CurseForge":"better-keepinventory","Modrinth":"keepinventory"},{"Id":24310,"Name":"","CurseForge":"mob-locator","Modrinth":"mob-locator"},{"Id":24312,"Name":"","CurseForge":"zoesteria","Modrinth":""},{"Id":24314,"Name":"随意优化 (Random Optimization)","CurseForge":"","Modrinth":"random-optimization"},{"Id":24315,"Name":"","CurseForge":"embergetic-expansion-embers-rekindled","Modrinth":""},{"Id":24316,"Name":"","CurseForge":"irons-spell-books-arcane-essence-blocks","Modrinth":"irons-spellbooks-arcane-essence-blocks"},{"Id":24317,"Name":"","CurseForge":"vampirism-irons-spells-compatibility","Modrinth":"vampirism-irons-spells-compatibility"},{"Id":24318,"Name":"","CurseForge":"unofficial-irons-spells-n-spellbooks-skill-tree","Modrinth":""},{"Id":24322,"Name":"万象棱镜 (Item Rarity)","CurseForge":"item-rarity","Modrinth":""},{"Id":24323,"Name":"魂锻 (ForgeSoul)","CurseForge":"forgesoul","Modrinth":""},{"Id":24324,"Name":"我的支配维度 (Zhipeiweidu)","CurseForge":"zhipeiweidu","Modrinth":""},{"Id":24325,"Name":"群峦精妙背包升级 (TFC Sophisticated Backpacks Upgrade)","CurseForge":"tfc-sophisticated-backpacks-upgrade","Modrinth":""},{"Id":24326,"Name":"","CurseForge":"explosives-plus-plus","Modrinth":""},{"Id":24327,"Name":"幻形者诅咒扩展包 (Shape Shifter Curse Addon)","CurseForge":"shape-shifter-curse-addon","Modrinth":"shape-shifter-curse-addon"},{"Id":24328,"Name":"","CurseForge":"mine-trigger","Modrinth":""},{"Id":24329,"Name":"能源转换3 (Power Converters3)","CurseForge":"power-converters3","Modrinth":""},{"Id":24330,"Name":"","CurseForge":"","Modrinth":"stickerbomb"},{"Id":24331,"Name":"","CurseForge":"","Modrinth":"unlockedcamera"},{"Id":24332,"Name":"","CurseForge":"stygian-end-recontinuation","Modrinth":""},{"Id":24333,"Name":"","CurseForge":"undead-variants","Modrinth":"undead-variants"},{"Id":24334,"Name":"克隆物品 (CloneItems)","CurseForge":"clone-items","Modrinth":""},{"Id":24335,"Name":"","CurseForge":"more-compostables","Modrinth":""},{"Id":24336,"Name":"","CurseForge":"legacy-duplicator-mod","Modrinth":""},{"Id":24337,"Name":"","CurseForge":"ftbquest-slot-rewards","Modrinth":""},{"Id":24339,"Name":"","CurseForge":"","Modrinth":"carpet-gugu-addition"},{"Id":24340,"Name":"","CurseForge":"","Modrinth":"be-a-doll"},{"Id":24343,"Name":"守护者之箱 (Guardian Chests)","CurseForge":"guardian-chests","Modrinth":""},{"Id":24344,"Name":"工业线缆经典版 (Industrial Wires Classic)","CurseForge":"industrial-wires-classic","Modrinth":""},{"Id":24345,"Name":"","CurseForge":"industrial-wires-reengineered","Modrinth":""},{"Id":24347,"Name":"万物隐藏","CurseForge":"","Modrinth":"everything-invisible"},{"Id":24349,"Name":"","CurseForge":"","Modrinth":"hidehitbox"},{"Id":24350,"Name":"应用能源:水晶科技 (AE2 Crystal Science)","CurseForge":"ae2-crystal-science","Modrinth":"ae2-crystal-science"},{"Id":24351,"Name":"","CurseForge":"pc-compat","Modrinth":"pc-compat"},{"Id":24353,"Name":"瓦基大冒险核心 (TAOV Core)","CurseForge":"taov-core","Modrinth":""},{"Id":24354,"Name":"","CurseForge":"natural-philosophy","Modrinth":"natural-philosophy"},{"Id":24355,"Name":"","CurseForge":"monsters-spellbooks-iss","Modrinth":""},{"Id":24356,"Name":"","CurseForge":"advanced-arsenal","Modrinth":"advanced-arsenal"},{"Id":24357,"Name":"","CurseForge":"first-person-view","Modrinth":"first-person-view"},{"Id":24359,"Name":"","CurseForge":"eat-whenever-you-want","Modrinth":"eat-whenever-you-want"},{"Id":24362,"Name":"","CurseForge":"visiting-villagers","Modrinth":"visiting-villagers"},{"Id":24363,"Name":"战利品光束:Refork (Loot Beams: Refork)","CurseForge":"loot-beams-refork","Modrinth":"loot-beams-refork"},{"Id":24366,"Name":"TmT 匠魂材质映射 (Too Many Tinkers)","CurseForge":"too-many-tinkers","Modrinth":""},{"Id":24367,"Name":"","CurseForge":"rosettaenchanttable","Modrinth":""},{"Id":24368,"Name":"这是什么东西? (Huh?What Is This)","CurseForge":"","Modrinth":"huh-what-is-this"},{"Id":24369,"Name":"汤姆的简易存储附属 (AkatZumaPick)","CurseForge":"akatzumapick","Modrinth":"akatzumapick"},{"Id":24371,"Name":"","CurseForge":"immersive-optimization-edition","Modrinth":""},{"Id":24372,"Name":"","CurseForge":"shoulder-surfing-irons-spells-integration","Modrinth":"shoulder-surfing-iron-spells-integration"},{"Id":24373,"Name":"TF存储 (TF Storage)","CurseForge":"tf-storage","Modrinth":"tf-storage"},{"Id":24374,"Name":"玩家天赋 (PlayerAffixes)","CurseForge":"playeraffixes","Modrinth":""},{"Id":24375,"Name":"野生生物 (Wild Mobs)","CurseForge":"wild-mobs-mod","Modrinth":""},{"Id":24376,"Name":"","CurseForge":"chest-cavity-beyond","Modrinth":""},{"Id":24377,"Name":"加载中保护 (Loading Protection)","CurseForge":"loading-protection","Modrinth":""},{"Id":24380,"Name":"","CurseForge":"lets-do-lilis-pottery","Modrinth":"lets-do-lilis-pottery"},{"Id":24381,"Name":"","CurseForge":"hotbarlock-reborn","Modrinth":""},{"Id":24382,"Name":"","CurseForge":"carry-me","Modrinth":"carry-me"},{"Id":24383,"Name":"","CurseForge":"ae-tetra","Modrinth":""},{"Id":24384,"Name":"","CurseForge":"improved-botania-pools","Modrinth":""},{"Id":24385,"Name":"","CurseForge":"improved-botania-sparks","Modrinth":""},{"Id":24386,"Name":"","CurseForge":"improved-botania-spreaders","Modrinth":""},{"Id":24387,"Name":"","CurseForge":"ftb-quests-lang-splitter","Modrinth":""},{"Id":24388,"Name":"","CurseForge":"circumnavigate","Modrinth":"circumnavigate"},{"Id":24389,"Name":"幽匿与钳合 (Sculk And Jaw)","CurseForge":"sculkandjaw","Modrinth":"sculkandjaw"},{"Id":24390,"Name":"","CurseForge":"raxiores-of-raxiore","Modrinth":""},{"Id":24392,"Name":"","CurseForge":"fsang18s-heropack","Modrinth":""},{"Id":24393,"Name":"森罗厨房:思索 (Ponder For KaleidoscopeCookery)","CurseForge":"ponder-for-kaleidoscope-cookery","Modrinth":""},{"Id":24394,"Name":"","CurseForge":"","Modrinth":"sanity-neo"},{"Id":24395,"Name":"梦醒时分:社区版 (Somnia: Community Edition)","CurseForge":"somnia-ce","Modrinth":"somnia-ce"},{"Id":24396,"Name":"","CurseForge":"vs-hose-connectors","Modrinth":"vs-hose-connectors"},{"Id":24397,"Name":"","CurseForge":"beautifultnts","Modrinth":"beautifultnts"},{"Id":24398,"Name":"","CurseForge":"create-rubberworks","Modrinth":"create-rubberworks"},{"Id":24399,"Name":"机械动力:实用物品 J版 (Create Utilities J)","CurseForge":"create-utilities-j","Modrinth":""},{"Id":24400,"Name":"机械动力:物品抽屉 (Create: Item Drawers)","CurseForge":"create-item-drawers","Modrinth":"create-item-drawers"},{"Id":24401,"Name":"","CurseForge":"glass-remastered","Modrinth":"glass-remastered"},{"Id":24402,"Name":"","CurseForge":"the-rpg-inventory-and-classarmor-mod","Modrinth":""},{"Id":24403,"Name":"","CurseForge":"dragonforged","Modrinth":""},{"Id":24405,"Name":"","CurseForge":"nebulalib","Modrinth":"nebulalib"},{"Id":24406,"Name":"","CurseForge":"wunderlib-forge","Modrinth":"wunderlib-forge"},{"Id":24407,"Name":"","CurseForge":"bclib-forge","Modrinth":"bclib-forge"},{"Id":24408,"Name":"","CurseForge":"undertale-death-screen","Modrinth":"undertale-death-screen"},{"Id":24409,"Name":"","CurseForge":"skibidi-toilet-skibidi-doom-craft","Modrinth":""},{"Id":24410,"Name":"Robert的物品提示 (Robert's Tooltips)","CurseForge":"roberts-tooltips","Modrinth":""},{"Id":24411,"Name":"区块调试 (ChunkDebug)","CurseForge":"","Modrinth":"chunk-debug"},{"Id":24412,"Name":"","CurseForge":"betternether-forge","Modrinth":"betternether-forge"},{"Id":24413,"Name":"","CurseForge":"betterend-forge","Modrinth":"betterend-forge"},{"Id":24414,"Name":"","CurseForge":"spitfire-throwable-fire-charges","Modrinth":""},{"Id":24415,"Name":"","CurseForge":"lava-chicken-boss","Modrinth":"lava-chicken-boss"},{"Id":24416,"Name":"","CurseForge":"better-water-breathing","Modrinth":""},{"Id":24417,"Name":"","CurseForge":"brick-break-pickaxe-cracking","Modrinth":""},{"Id":24418,"Name":"","CurseForge":"crawling-chaos","Modrinth":"crawling-chaos"},{"Id":24419,"Name":"仔细搜刮 (SearchCarefully)","CurseForge":"searchcarefully","Modrinth":"searchcarefully"},{"Id":24420,"Name":"逃逸:寄生体万圣节 (Scape and Run: Parasites Halloween)","CurseForge":"scape-and-run-parasites-halloween","Modrinth":"scape-and-run-parasites-halloween"},{"Id":24433,"Name":"","CurseForge":"ct","Modrinth":""},{"Id":24436,"Name":"","CurseForge":"","Modrinth":"rarityglow"},{"Id":24438,"Name":"","CurseForge":"rezero-return-by-death","Modrinth":"aland-return-by-death"},{"Id":24439,"Name":"UU物质查看器 (IC2X UU-Matter)","CurseForge":"ic2xuumatter","Modrinth":"ic2xuumatter"},{"Id":24440,"Name":"","CurseForge":"beta-plus","Modrinth":""},{"Id":24441,"Name":"","CurseForge":"","Modrinth":"gl_ass"},{"Id":24442,"Name":"华胄 (HuaZhou : Chinese Armor)","CurseForge":"","Modrinth":"huazhou-chinese-armor"},{"Id":24443,"Name":"更好的箭矢 (BetterArrow)","CurseForge":"","Modrinth":"betterarrow"},{"Id":24444,"Name":"","CurseForge":"illusionist-grimoire","Modrinth":""},{"Id":24445,"Name":"我的魂石 (Mine Fargo/Mine Fargo New) - 作者新账号更新","CurseForge":"mygo-mine-fargo-new","Modrinth":""},{"Id":24445,"Name":"我的魂石 (Mine Fargo/Mine Fargo New) - 作者旧账号,已停更","CurseForge":"mygo-mine-fargo","Modrinth":""},{"Id":24447,"Name":"矿异位 (Ore Spawn Confusion)","CurseForge":"ore-spawn-confusion","Modrinth":""},{"Id":24449,"Name":"","CurseForge":"lognore","Modrinth":""},{"Id":24450,"Name":"机械动力:和声学 (Create: Harmonics)","CurseForge":"create-harmonics","Modrinth":"create-harmonics"},{"Id":24451,"Name":"不友好的生物 (Unfriendly Creature)","CurseForge":"","Modrinth":"unfriendly-creature"},{"Id":24452,"Name":"GD656战术侧头 (GD656Peek)","CurseForge":"","Modrinth":"gd656peek"},{"Id":24454,"Name":"","CurseForge":"neo-bee-fix","Modrinth":"neo-bee-fix"},{"Id":24455,"Name":"","CurseForge":"itemlod","Modrinth":""},{"Id":24456,"Name":"","CurseForge":"onysd-guns","Modrinth":""},{"Id":24457,"Name":"","CurseForge":"tinkers-arsenal-reloaded","Modrinth":""},{"Id":24458,"Name":"","CurseForge":"fluxzoom","Modrinth":"fluxzoom"},{"Id":24459,"Name":"","CurseForge":"zoomx","Modrinth":"zoomx"},{"Id":24460,"Name":"","CurseForge":"grim-kingdoms","Modrinth":""},{"Id":24461,"Name":"","CurseForge":"vanillaconfig","Modrinth":"vanillaconfig"},{"Id":24462,"Name":"","CurseForge":"","Modrinth":"spatialaudio"},{"Id":24463,"Name":"轻轻敲响沉睡的心灵 (Awaken Gateway Entity)","CurseForge":"awaken-gateway-entity","Modrinth":""},{"Id":24467,"Name":"","CurseForge":"","Modrinth":"qiuymmod"},{"Id":24468,"Name":"矿石定位器 (OreLocator Compass)","CurseForge":"","Modrinth":"orelocator_compass"},{"Id":24469,"Name":"日志过滤器 (Log Filter)","CurseForge":"","Modrinth":"log-filter1"},{"Id":24470,"Name":"","CurseForge":"icustommenu","Modrinth":""},{"Id":24481,"Name":"","CurseForge":"","Modrinth":"configurationsbackport"},{"Id":24483,"Name":"","CurseForge":"day-counter-plus","Modrinth":"day-counter-plus"},{"Id":24484,"Name":"","CurseForge":"spore-underground-bunker-spawner-compat","Modrinth":"sporeunderground-bunker-spawner-compat"},{"Id":24485,"Name":"","CurseForge":"","Modrinth":"bta"},{"Id":24486,"Name":"","CurseForge":"sneak-push","Modrinth":"sneak-push"},{"Id":24487,"Name":"","CurseForge":"balanced-unbreakable","Modrinth":""},{"Id":24488,"Name":"超级生物追踪器 (Super Mob Tracker)","CurseForge":"super-mob-tracker","Modrinth":""},{"Id":24489,"Name":"","CurseForge":"everything-nunchaku","Modrinth":""},{"Id":24490,"Name":"元件终端 (Cell Terminal)","CurseForge":"cell-terminal","Modrinth":""},{"Id":24491,"Name":"工业防爆石 (IC2 Reinforced Stone)","CurseForge":"ic2-reinforced-stone","Modrinth":""},{"Id":24492,"Name":"牛奶盒 (Milkcarton)","CurseForge":"milkcarton","Modrinth":""},{"Id":24494,"Name":"UU物质查找器 (IC2C UU-Matter)","CurseForge":"ic2cuumatter","Modrinth":"ic2cuumatter"},{"Id":24495,"Name":"永无止境:载具 (Limitless Vehicle)","CurseForge":"limitless-vehicle","Modrinth":""},{"Id":24496,"Name":"美化!(NeoForge) (Beautify: ReFoxed)","CurseForge":"beautify-refoxed","Modrinth":"beautify-refoxed"},{"Id":24497,"Name":"","CurseForge":"aecapfix","Modrinth":"aecapfix"},{"Id":24498,"Name":"","CurseForge":"lcompat","Modrinth":"lcompat"},{"Id":24499,"Name":"稀有度核心 (RarityCore)","CurseForge":"raritycore","Modrinth":"raritycore"},{"Id":24500,"Name":"","CurseForge":"simply-cozy","Modrinth":"simply-cozy"},{"Id":24501,"Name":"","CurseForge":"souls-like-universe-weapons-armors","Modrinth":"slu"},{"Id":24502,"Name":"","CurseForge":"do-me-a-favor","Modrinth":"dmaf"},{"Id":24503,"Name":"","CurseForge":"cave-dweller-evolved","Modrinth":"cave-dweller-evolved"},{"Id":24503,"Name":"","CurseForge":"","Modrinth":"cave-dweller-evolved-(fabric)"},{"Id":24504,"Name":"","CurseForge":"obfuscated-kamussy","Modrinth":"obfuscated"},{"Id":24505,"Name":"","CurseForge":"poison-madness","Modrinth":""},{"Id":24507,"Name":"","CurseForge":"combatlog","Modrinth":"combatlog"},{"Id":24508,"Name":"","CurseForge":"marvelous-species","Modrinth":""},{"Id":24509,"Name":"","CurseForge":"","Modrinth":"blink-eye"},{"Id":24510,"Name":"","CurseForge":"sporeadds","Modrinth":"sporeadds"},{"Id":24511,"Name":"","CurseForge":"lord-of-the-mysteries-craft","Modrinth":"lotmc"},{"Id":24513,"Name":"","CurseForge":"weather2-remaster-addon-weather-computers-and","Modrinth":"weather2-remaster-addon-weather,-computers-and-broadcast"},{"Id":24514,"Name":"","CurseForge":"","Modrinth":"particleculling-1.8.9-port"},{"Id":24515,"Name":"","CurseForge":"","Modrinth":"renderlib-1.8.9-port"},{"Id":24516,"Name":"","CurseForge":"","Modrinth":"nothirium-1.8.9-port"},{"Id":24517,"Name":"","CurseForge":"","Modrinth":"entityculling-1.8.9-port"},{"Id":24519,"Name":"","CurseForge":"oxygen-mod","Modrinth":""},{"Id":24520,"Name":"矛发射器 (Dispenspear)","CurseForge":"","Modrinth":"dispenspear"},{"Id":24521,"Name":"阡陌疾旅 (Qianmo Speed)","CurseForge":"qianmospeedmod","Modrinth":"qianmospeedmod"},{"Id":24522,"Name":"","CurseForge":"funky-fluids","Modrinth":"funky-fluids"},{"Id":24524,"Name":"","CurseForge":"brainier-bees","Modrinth":"brainier-bees"},{"Id":24525,"Name":"","CurseForge":"rrv","Modrinth":"rrv"},{"Id":24526,"Name":"","CurseForge":"hopper-golden-edition","Modrinth":""},{"Id":24527,"Name":"","CurseForge":"ae2-powertools","Modrinth":""},{"Id":24528,"Name":"","CurseForge":"simple-sleep-vote","Modrinth":"simple-sleep-vote"},{"Id":24529,"Name":"逃逸:疫染天境 (Scape and Run: Parasites Aether)","CurseForge":"scape-and-run-parasites-aether","Modrinth":""},{"Id":24530,"Name":"","CurseForge":"santa-logistics","Modrinth":"santa-logistics"},{"Id":24533,"Name":"","CurseForge":"easy-survival-plus","Modrinth":"easy-survival-mod"},{"Id":24536,"Name":"森罗厨房:乐此不疲 (Kaleidoscope Texture Expansion)","CurseForge":"","Modrinth":"kaleidoscope-texture-expansion"},{"Id":24537,"Name":"","CurseForge":"legendary-additions","Modrinth":""},{"Id":24538,"Name":"","CurseForge":"tacz-arcana-timeless-and-classics-guns","Modrinth":""},{"Id":24540,"Name":"Mebahel 的生物 - 尸鬼 (Mebahel's Creatures - Draugr Invasion)","CurseForge":"mebahels-creatures-draugr","Modrinth":"mebahels-creatures-draugr"},{"Id":24543,"Name":"DG 模块 (DG Modules)","CurseForge":"dgmodules","Modrinth":""},{"Id":24544,"Name":"虚拟矿脉 (Custom Virtual Vein)","CurseForge":"","Modrinth":"cvn"},{"Id":24545,"Name":"","CurseForge":"curvebuilding","Modrinth":""},{"Id":24546,"Name":"我的菜单 - 非官方按键冲突优化补丁 (MineMenu: No-Shift-Conflict Patch)","CurseForge":"minemenu-no-shift-conflict-patch","Modrinth":"minemenu-no-shift-conflict-patch"},{"Id":24548,"Name":"自定义箱子战利品 (ChestLootEditor)","CurseForge":"","Modrinth":"chestlooteditor"},{"Id":24550,"Name":"工匠:古物重建 (Tinkers: Ancient Tools Rebuilding)","CurseForge":"tinkers-ancient-tools-rebuilding","Modrinth":""},{"Id":24551,"Name":"","CurseForge":"mace-enchantments","Modrinth":""},{"Id":24552,"Name":"","CurseForge":"masterful-machinery-fork","Modrinth":""},{"Id":24553,"Name":"","CurseForge":"enchantment-limiter-fork","Modrinth":""},{"Id":24554,"Name":"","CurseForge":"cobblemonraiddens","Modrinth":"cobblemonraiddens"},{"Id":24556,"Name":"","CurseForge":"heartmod","Modrinth":"binding-of-isaac-heart-mod"},{"Id":24557,"Name":"","CurseForge":"pokecube-legacy","Modrinth":"pokecube-legacy"},{"Id":24558,"Name":"","CurseForge":"seasons-mc","Modrinth":""},{"Id":24559,"Name":"","CurseForge":"immersive-cinematics","Modrinth":"immersivecinematics"},{"Id":24560,"Name":"","CurseForge":"akashic-goggles","Modrinth":"akashic-goggles"},{"Id":24564,"Name":"苦力怕中立 (Creeper Neutral)","CurseForge":"","Modrinth":"creeperneutral"},{"Id":24565,"Name":"","CurseForge":"chainsaw-man-devilcraft","Modrinth":"chainsaw-man-devilcraft"},{"Id":24566,"Name":"方块附加药水效果 (BlockGiveEffects)","CurseForge":"","Modrinth":"blockgiveeffects"},{"Id":24567,"Name":"灾厄艺术 (Illage Art)","CurseForge":"","Modrinth":"illage-art"},{"Id":24568,"Name":"","CurseForge":"crd-broadcasts","Modrinth":"crd-broadcasts"},{"Id":24570,"Name":"","CurseForge":"","Modrinth":"create-blockchain"},{"Id":24571,"Name":"","CurseForge":"miscellaneous-metals","Modrinth":"marbleds-core"},{"Id":24572,"Name":"","CurseForge":"owen233666s-windows","Modrinth":"owen233666s-windows"},{"Id":24573,"Name":"无限样板供应器 (Infinity Pattern Provider)","CurseForge":"infinity-pattern-provider","Modrinth":"infinity-pattern-provider"},{"Id":24574,"Name":"","CurseForge":"","Modrinth":"carpet-sdk-additon"},{"Id":24575,"Name":"","CurseForge":"","Modrinth":"gbattlepass"},{"Id":24576,"Name":"","CurseForge":"floralis","Modrinth":"floralis"},{"Id":24577,"Name":"斯巴达的武器:非官方版 (Spartan Weaponry Unofficial)","CurseForge":"spartan-weaponry-unofficial","Modrinth":"spartan-weaponry-unofficial"},{"Id":24578,"Name":"","CurseForge":"iron-furnaces-enhanced","Modrinth":""},{"Id":24579,"Name":"","CurseForge":"spectral-utilities","Modrinth":""},{"Id":24580,"Name":"","CurseForge":"pvp-flagging","Modrinth":"pvp-flagging"},{"Id":24583,"Name":"分形闪电 (Fractal Lightning)","CurseForge":"","Modrinth":"fractal-lightning"},{"Id":24584,"Name":"","CurseForge":"electroblobs-wizardry-redux","Modrinth":"electroblobs-wizardry-redux"},{"Id":24585,"Name":"傀儡装配X超级铁傀儡 (Epic Fight - Super Golem x Modular Golems)","CurseForge":"epic-fight-super-golem-x-modular-golems","Modrinth":""},{"Id":24587,"Name":"","CurseForge":"","Modrinth":"f3-screenshot"},{"Id":24588,"Name":"","CurseForge":"ssc-xu-addon","Modrinth":"ssc-xu-addon"},{"Id":24589,"Name":"","CurseForge":"unitytranslate","Modrinth":"unitytranslate"},{"Id":24590,"Name":"","CurseForge":"celeritasleafculling","Modrinth":"celeritas-leaf-culling"},{"Id":24592,"Name":"红石酱的化学元素 (Redstone-chan Chemical Elements)","CurseForge":"redstone-chemical-elements","Modrinth":"redstone-chan-chemical-elements"},{"Id":24593,"Name":"","CurseForge":"tbc","Modrinth":""},{"Id":24594,"Name":"","CurseForge":"ocean-lily-pad-village","Modrinth":"ocean-lily-pad-village"},{"Id":24595,"Name":"","CurseForge":"","Modrinth":"player-doll"},{"Id":24596,"Name":"","CurseForge":"","Modrinth":"crazy-hunters-manhunt-ai"},{"Id":24597,"Name":"","CurseForge":"","Modrinth":"dont-hit-the-bees"},{"Id":24598,"Name":"","CurseForge":"skeleton-uses-custom-bow","Modrinth":"skeleton-uses-custom-bow"},{"Id":24599,"Name":"","CurseForge":"","Modrinth":"zerocontact"},{"Id":24600,"Name":"","CurseForge":"jubitus-birds","Modrinth":""},{"Id":24601,"Name":"结构不重叠 (StructureOverlapless)","CurseForge":"structureoverlapless","Modrinth":""},{"Id":24603,"Name":"聊天计算器增强 (Chat Calculator Boost)","CurseForge":"chat-calculator-boost","Modrinth":"chat-calculator-boost"},{"Id":24604,"Name":"禁止生物破坏方块 (No Mobs Destroy Block)","CurseForge":"","Modrinth":"no_mobs_destroy_block"},{"Id":24605,"Name":"瞬时世界之镜 (Instant World Mirror)","CurseForge":"instantworldmirror","Modrinth":""},{"Id":24606,"Name":"浮空挖掘 (FloatingExcavation)","CurseForge":"","Modrinth":"floating-excavation"},{"Id":24607,"Name":"敌对生物与魔物娘:追忆 (Hostile Mobs and Girls: Recall)","CurseForge":"hostile-mobs-and-girls-recall","Modrinth":""},{"Id":24608,"Name":"物品显示/物品清单:重载版 (HoloInventory-Reloaded)","CurseForge":"","Modrinth":"holoinventory-reloaded"},{"Id":24609,"Name":"七叶镜绫的随想/言引定制 (EverlaArtifacts)","CurseForge":"","Modrinth":"everlaartifacts"},{"Id":24610,"Name":"曜日金葵 (Bright Sunflower)","CurseForge":"","Modrinth":"bright-sunflower"},{"Id":24611,"Name":"蓝钢锻艺 (Azure Tetra Materials)","CurseForge":"atm-azure-tetra-materials","Modrinth":""},{"Id":24613,"Name":"诡启兼容 (RevelationGoetyFix)","CurseForge":"revelation-goety-fix","Modrinth":"revelation-goety-fix"},{"Id":24614,"Name":"资源农场 (Resource Farm)","CurseForge":"resource-farm","Modrinth":""},{"Id":24619,"Name":"机械动力:无限水 (Create: Infinite Water)","CurseForge":"create-infinite-water","Modrinth":"createinfinite-water"},{"Id":24620,"Name":"机械动力:光学 (Fabric) (Create Optical Fabric)","CurseForge":"","Modrinth":"create-optical-fabric"},{"Id":24623,"Name":"","CurseForge":"","Modrinth":"honormod"},{"Id":24624,"Name":"","CurseForge":"botany-pot-configuration-card","Modrinth":""},{"Id":24625,"Name":"","CurseForge":"hellish-trials","Modrinth":"hellish-trials"},{"Id":24627,"Name":"","CurseForge":"","Modrinth":"voxy-worldgen"},{"Id":24628,"Name":"","CurseForge":"fullbright-optimized","Modrinth":"optimized-fullbright"},{"Id":24629,"Name":"","CurseForge":"merlins-epic-boss-cataclysm","Modrinth":""},{"Id":24630,"Name":"","CurseForge":"enter-sandworm","Modrinth":"enter-sandworm"},{"Id":24631,"Name":"","CurseForge":"playerengine","Modrinth":"playerengine"},{"Id":24632,"Name":"","CurseForge":"terralith-no-structures","Modrinth":""},{"Id":24633,"Name":"活塞ProPlus (PistonProPlus)","CurseForge":"pistonproplus","Modrinth":"pistonproplus"},{"Id":24634,"Name":"生物辞典 (Biology Dictionary)","CurseForge":"biology-dictionary","Modrinth":"biology-dictionary"},{"Id":24636,"Name":"更多精妙堆叠 (More Tier Upgrade)","CurseForge":"more-tier-upgrade","Modrinth":""},{"Id":24637,"Name":"更多功能性存储升级 (More Functional Storage Upgrade)","CurseForge":"more-functional-storage-upgrade","Modrinth":"more-functional-storage-upgrade"},{"Id":24639,"Name":"","CurseForge":"carpet-lms-addition","Modrinth":"carpet-lms-addition"},{"Id":24640,"Name":"女仆餐厅 (Maid Restaurant)","CurseForge":"maid-restaurant","Modrinth":"maid-restaurant"},{"Id":24641,"Name":"","CurseForge":"seven-elements","Modrinth":"seven-elements"},{"Id":24642,"Name":"","CurseForge":"neo-eco-ae-extension","Modrinth":"neoecoae"},{"Id":24643,"Name":"","CurseForge":"golem-snowball-damage","Modrinth":""},{"Id":24644,"Name":"","CurseForge":"in-the-corners","Modrinth":"in-the-corners"},{"Id":24645,"Name":"","CurseForge":"waystones-x","Modrinth":"waystones-x"},{"Id":24646,"Name":"","CurseForge":"waypoint-bridge","Modrinth":""},{"Id":24647,"Name":"","CurseForge":"olderpingdisplay","Modrinth":"olderpingdisplay"},{"Id":24648,"Name":"","CurseForge":"expanded-unuverse-pack","Modrinth":"expanded-unuverse-pack-mts"},{"Id":24649,"Name":"","CurseForge":"unu-military-pack-for-mts","Modrinth":"unu-military-pack"},{"Id":24650,"Name":"","CurseForge":"raisy","Modrinth":"raisy"},{"Id":24652,"Name":"森罗物语:国味 (Kaleidoscope Chinese Food)","CurseForge":"kaleidoscope-chinese-food","Modrinth":"kaleidoscopechinesefood"},{"Id":24653,"Name":"神话饰品 (Mythical Accessories)","CurseForge":"mythicalaccessories","Modrinth":""},{"Id":24655,"Name":"","CurseForge":"combat-circle","Modrinth":"combat-circle"},{"Id":24656,"Name":"","CurseForge":"player2npc","Modrinth":"player2npc"},{"Id":24658,"Name":"","CurseForge":"tacz-fire-control-extension","Modrinth":""},{"Id":24659,"Name":"","CurseForge":"celeritas-extra","Modrinth":"celeritas-extra"},{"Id":24660,"Name":"","CurseForge":"caves-revamp","Modrinth":"caves-revamp"},{"Id":24661,"Name":"","CurseForge":"pneumatic-popcorn","Modrinth":""},{"Id":24662,"Name":"","CurseForge":"rubber-tree-for-dynamic-trees","Modrinth":"rubber-tree-for-dynamic-trees"},{"Id":24663,"Name":"更多剑 (BladeCraft)","CurseForge":"bladecraft","Modrinth":""},{"Id":24664,"Name":"","CurseForge":"terrafirmagreg-core","Modrinth":"terrafirmagreg-core"},{"Id":24665,"Name":"","CurseForge":"","Modrinth":"etched-fabric"},{"Id":24666,"Name":"","CurseForge":"epicfight-physic-rag-doll","Modrinth":"epicfight-physic-rag-doll"},{"Id":24667,"Name":"","CurseForge":"spice-of-life-valheim-updated","Modrinth":"sol-valheim-updated"},{"Id":24668,"Name":"","CurseForge":"ae2-improved-search","Modrinth":""},{"Id":24669,"Name":"","CurseForge":"ae2-fluid-terminals-rework","Modrinth":""},{"Id":24670,"Name":"","CurseForge":"shoulderturrets","Modrinth":""},{"Id":24672,"Name":"斯巴达之盾:非官方版 (Spartan Shields Unofficial)","CurseForge":"spartan-shields-unofficial","Modrinth":"spartan-shields-unofficial"},{"Id":24673,"Name":"","CurseForge":"","Modrinth":"fake-ping"},{"Id":24674,"Name":"圣诞殖民地 (ChristmasColonies)","CurseForge":"christmascolonies","Modrinth":""},{"Id":24675,"Name":"","CurseForge":"mnaoverpowered","Modrinth":"mnaoverpowered"},{"Id":24676,"Name":"","CurseForge":"stack-manager","Modrinth":"stack-manager"},{"Id":24677,"Name":"","CurseForge":"ae2-mod-id-view-cell","Modrinth":""},{"Id":24678,"Name":"我抄饰你的媒 (Curios Media Holder / Trinkets Media Holder)","CurseForge":"","Modrinth":"curios-media-holder"},{"Id":24679,"Name":"","CurseForge":"custommeteorjs","Modrinth":"custommeteorjs"},{"Id":24680,"Name":"森罗物语:末地 (Kaleidoscope End)","CurseForge":"kaleidoscope-end","Modrinth":"kaleidoscope-end"},{"Id":24681,"Name":"","CurseForge":"macaws-regions-unexplored","Modrinth":"macaws-regions-unexplored"},{"Id":24683,"Name":"","CurseForge":"bc-extra-pipes","Modrinth":""},{"Id":24684,"Name":"","CurseForge":"","Modrinth":"debugsurvivability"},{"Id":24685,"Name":"","CurseForge":"ae2-toggleable-view-cells","Modrinth":""},{"Id":24686,"Name":"","CurseForge":"better-ic2-seed-bags","Modrinth":""},{"Id":24687,"Name":"","CurseForge":"energized-power-farmers-delight","Modrinth":"energized-power-fd"},{"Id":24688,"Name":"","CurseForge":"energized-power-the-aether","Modrinth":"energized-power-ta"},{"Id":24689,"Name":"","CurseForge":"energized-power-biomes-o-plenty","Modrinth":"energized-power-bop"},{"Id":24690,"Name":"","CurseForge":"weapon-class","Modrinth":"weapon-class"},{"Id":24691,"Name":"自定义生物刷怪笼 (Boss Spawn Block)","CurseForge":"boss-spawner-block","Modrinth":""},{"Id":24692,"Name":"巫法集成 (Goety Integration)","CurseForge":"goety-integration","Modrinth":"goety-integration"},{"Id":24693,"Name":"方块末日 (BlockZ)","CurseForge":"blockz","Modrinth":"blockz"},{"Id":24696,"Name":"","CurseForge":"simplycataclysm","Modrinth":"simplycataclysm"},{"Id":24697,"Name":"","CurseForge":"attributefix-sync","Modrinth":"attributefix-sync"},{"Id":24698,"Name":"精妙物品操作 (Sophisticated Item Actions)","CurseForge":"sophisticated-item-actions","Modrinth":"sophisticated-item-actions"},{"Id":24699,"Name":"","CurseForge":"only-hammers-and-excavators","Modrinth":"only-hammers-and-excavators"},{"Id":24700,"Name":"","CurseForge":"foolish","Modrinth":"foolish"},{"Id":24702,"Name":"实体中文名 (Entity Chinese Name)","CurseForge":"entitychinesename","Modrinth":"entitychinesename"},{"Id":24703,"Name":"群峦航线 (Firma Aircraft)","CurseForge":"firma-aircraft","Modrinth":"firma-aircraft"},{"Id":24704,"Name":"更多实用设备:再重生 (Extra Utilities Reborn Again)","CurseForge":"exura","Modrinth":"exura"},{"Id":24706,"Name":"","CurseForge":"shaolib","Modrinth":"shaolib"},{"Id":24707,"Name":"","CurseForge":"manage-your-ship","Modrinth":"manage-your-ship"},{"Id":24708,"Name":"","CurseForge":"peak-craft","Modrinth":"peak-craft"},{"Id":24709,"Name":"闪耀的长庭 (Shimmering Golden Flowers)","CurseForge":"pink-precious-flowers","Modrinth":""},{"Id":24710,"Name":"AE2 智能样板系统 (Smart Pattern System)","CurseForge":"ae2-sampleintegration","Modrinth":"ae2uel-smart-pattern-system"},{"Id":24711,"Name":"","CurseForge":"","Modrinth":"new-big-trees"},{"Id":24712,"Name":"","CurseForge":"bananaplant","Modrinth":"bananaplant"},{"Id":24714,"Name":"","CurseForge":"caps-connected-area-prompt-shear","Modrinth":"caps"},{"Id":24715,"Name":"仿卡拉彼丘机制 (Imitating the Strinova Mechanism)","CurseForge":"","Modrinth":"strinova-strings-and-floating"},{"Id":24716,"Name":"","CurseForge":"explainium","Modrinth":""},{"Id":24717,"Name":"源流无尽 (Sourceflow Infinite)","CurseForge":"sourceflow-infinite","Modrinth":"sourceflow-infinite"},{"Id":24718,"Name":"","CurseForge":"hbms-ntm-ce-space","Modrinth":"ntm-ce-space"},{"Id":24720,"Name":"","CurseForge":"ultimatespawn","Modrinth":"ultimatespawn"},{"Id":24721,"Name":"简单的2048 (Simple 2048)","CurseForge":"simple2048","Modrinth":""},{"Id":24722,"Name":"网络音乐机:高级唱片机 (Net Music: Advanced Player)","CurseForge":"","Modrinth":"net-music-advanced-player"},{"Id":24723,"Name":"扩展音符盒 (Extended Note Block)","CurseForge":"","Modrinth":"extendednoteblock"},{"Id":24724,"Name":"","CurseForge":"realistic-explosives-ic2-exp-addon","Modrinth":""},{"Id":24725,"Name":"旁观时间管理大师 (NoMoreF3+F4)","CurseForge":"nomoref3-f4","Modrinth":"nomoref3+f4"},{"Id":24726,"Name":"","CurseForge":"","Modrinth":"ccccc_"},{"Id":24729,"Name":"信标强制加载Forge版 (ForceBeaconLoadForForge)","CurseForge":"","Modrinth":"force-beacon-load-for-forge"},{"Id":24730,"Name":"","CurseForge":"folks-favors","Modrinth":"folksfavors"},{"Id":24731,"Name":"便携基地 (Easy Adventure)","CurseForge":"easy-adventure","Modrinth":"easy-adventure"},{"Id":24732,"Name":"","CurseForge":"star-optimized","Modrinth":""},{"Id":24733,"Name":"网络拦截器 (Network Blocker)","CurseForge":"networkblocker","Modrinth":"networkblocker"},{"Id":24734,"Name":"","CurseForge":"simple-world-downloader","Modrinth":"simple-world-downloader"},{"Id":24735,"Name":"","CurseForge":"class-armor-beast-master","Modrinth":""},{"Id":24736,"Name":"","CurseForge":"class-armor-necromancer-and-paladin","Modrinth":""},{"Id":24737,"Name":"","CurseForge":"class-armor-berserker-mage-and-archer","Modrinth":""},{"Id":24738,"Name":"工业平台 (Industrial Platform)","CurseForge":"industrial-platform","Modrinth":""},{"Id":24740,"Name":"","CurseForge":"sunlight-zombie-mod","Modrinth":"sunlight-zombie"},{"Id":24741,"Name":"","CurseForge":"lycheejs","Modrinth":""},{"Id":24742,"Name":"调色棒 (Colorwand)","CurseForge":"colorwand","Modrinth":"colorwand"},{"Id":24743,"Name":"","CurseForge":"","Modrinth":"item-router"},{"Id":24744,"Name":"","CurseForge":"","Modrinth":"commandbot"},{"Id":24745,"Name":"","CurseForge":"","Modrinth":"village-diplomacy"},{"Id":24746,"Name":"","CurseForge":"","Modrinth":"i-wanna-show"},{"Id":24747,"Name":"","CurseForge":"musket-mod-reloaded","Modrinth":"musket-mod-reloaded"},{"Id":24748,"Name":"","CurseForge":"","Modrinth":"chainveinfabric"},{"Id":24749,"Name":"","CurseForge":"vcfix","Modrinth":"vcfix"},{"Id":24750,"Name":"Mixin 黑名单 (Mixin Blacklist)","CurseForge":"","Modrinth":"mixin-blacklist"},{"Id":24751,"Name":"凿子3 (Chisel 3)","CurseForge":"chisel-3-the-cricket-strikes-back","Modrinth":"chisel-3"},{"Id":24752,"Name":"曼基尼 (Mankini)","CurseForge":"mankini","Modrinth":""},{"Id":24753,"Name":"等价团队:重生 (Team ProjectE Reborn)","CurseForge":"teamprojecte-reborn","Modrinth":"teamprojecte-reborn"},{"Id":24754,"Name":"","CurseForge":"","Modrinth":"mcapibridge"},{"Id":24755,"Name":"","CurseForge":"behemoths","Modrinth":"behemoths"},{"Id":24756,"Name":"备份永远是对的 (Backup Always Right)","CurseForge":"","Modrinth":"bar"},{"Id":24757,"Name":"速度调整器 (Speed Slider)","CurseForge":"","Modrinth":"speed-slider"},{"Id":24758,"Name":"","CurseForge":"questtapestry","Modrinth":""},{"Id":24759,"Name":"神秘学 仪式挎包 (Occultism Ritual Satchel)","CurseForge":"occultism-ritual-satchel","Modrinth":"occultism-ritual-satchel"},{"Id":24760,"Name":"","CurseForge":"mineclawd","Modrinth":"mineclawd"},{"Id":24761,"Name":"矿石种子 (Core Plants)","CurseForge":"","Modrinth":"core-plants"},{"Id":24762,"Name":"末影接口:进化 (Ender IO: Evolution)","CurseForge":"enderio-evolution","Modrinth":"enderio_evolution"},{"Id":24763,"Name":"口袋军团 (Pocket Legion)","CurseForge":"pocket-legion","Modrinth":"pocket-legion"},{"Id":24764,"Name":"随机方块空岛生存","CurseForge":"","Modrinth":"randomblocks_emerald_rabbit"},{"Id":24765,"Name":"战甲军械 (Tennory)","CurseForge":"tennory","Modrinth":"tennory"},{"Id":24766,"Name":"安之编辑 (AnkiNBT)","CurseForge":"ankinbt","Modrinth":""},{"Id":24766,"Name":"安之编辑 (AnkiNBT) - 主要方式","CurseForge":"","Modrinth":"ankinbt"},{"Id":24767,"Name":"游戏信息显示 独木舟版 (InGame Info XML CanoeEdition)","CurseForge":"ingame-info-xml-canoeedition","Modrinth":""},{"Id":24768,"Name":"","CurseForge":"lunatriuscorecanoeedition","Modrinth":""},{"Id":24771,"Name":"","CurseForge":"thaumic-integration","Modrinth":""},{"Id":24772,"Name":"基岩究极工具 (BedrockUltimateTool)","CurseForge":"","Modrinth":"bedrockultimatetool"},{"Id":24773,"Name":"","CurseForge":"","Modrinth":"windowplayerhead"},{"Id":24774,"Name":"更多车 (morecars)","CurseForge":"morecars","Modrinth":"morecars"},{"Id":24776,"Name":"传送台 (Telepad)","CurseForge":"telepad","Modrinth":""},{"Id":24777,"Name":"","CurseForge":"primitive-mobs-wondersapped","Modrinth":""},{"Id":24778,"Name":"","CurseForge":"","Modrinth":"farmerscreate"},{"Id":24779,"Name":"","CurseForge":"maestro","Modrinth":"maestro-music"},{"Id":24780,"Name":"","CurseForge":"accents","Modrinth":"accents"},{"Id":24781,"Name":"","CurseForge":"fancy-entity-renderer","Modrinth":"fancy-entity-renderer"},{"Id":24782,"Name":"","CurseForge":"pantheonapi","Modrinth":""},{"Id":24783,"Name":"","CurseForge":"eye-of-dreams-reforged","Modrinth":""},{"Id":24785,"Name":"","CurseForge":"mobs-equipment","Modrinth":""},{"Id":24786,"Name":"文礼 (Civillis)","CurseForge":"civillis","Modrinth":"civillis"},{"Id":24787,"Name":"","CurseForge":"desert-villager-trader","Modrinth":"desert-villager-trader"},{"Id":24788,"Name":"","CurseForge":"","Modrinth":"mmdskin"},{"Id":24789,"Name":"网络音乐机:看你的QQ (NetMusicCanNeedQQ)","CurseForge":"","Modrinth":"netmusiccanneedqq"},{"Id":24790,"Name":"万能截图 (Power Screenshot)","CurseForge":"panoramic-screenshot","Modrinth":"panoramic-screenshot"},{"Id":24792,"Name":"自定义图腾粒子 - 缺失 2.91 最新 (Custom Totem Particles)","CurseForge":"custom-totem-particles","Modrinth":""},{"Id":24792,"Name":"自定义图腾粒子 (Custom Totem Particles)","CurseForge":"","Modrinth":"custom-totem-particles"},{"Id":24793,"Name":"Yomi的常磐装饰 (Yomi's Joban Client Mod)","CurseForge":"","Modrinth":"GuxlRbJ2"},{"Id":24794,"Name":"","CurseForge":"","Modrinth":"U75MCH6y"},{"Id":24795,"Name":"","CurseForge":"irons-spells-n-spellbooks-restrictions","Modrinth":"irons-spells-n-spellbooks-restricitons"},{"Id":24796,"Name":"","CurseForge":"","Modrinth":"IepjOJdK"},{"Id":24797,"Name":"状态机模组 (State Machine)","CurseForge":"","Modrinth":"state-machine"},{"Id":24798,"Name":"","CurseForge":"empty-shulker-nesting","Modrinth":"empty-shulker-nesting"},{"Id":24799,"Name":"封包禁忌与奥秘 (PackagedFAA)","CurseForge":"pakcagedfaa","Modrinth":"packaged_faa"},{"Id":24800,"Name":"","CurseForge":"ad-inferos","Modrinth":""},{"Id":24802,"Name":"","CurseForge":"cc-directgpu","Modrinth":"ccdirectgpu-mod"},{"Id":24803,"Name":"简单替换 (Easy Exchange)","CurseForge":"easy-exchange","Modrinth":"easy-exchange"},{"Id":24804,"Name":"","CurseForge":"","Modrinth":"simple-image-renderer"},{"Id":24805,"Name":"","CurseForge":"ait-extras","Modrinth":"ait-extras"},{"Id":24806,"Name":"","CurseForge":"rats-ratn-edition","Modrinth":""},{"Id":24807,"Name":"","CurseForge":"","Modrinth":"eye_of_dreams"},{"Id":24808,"Name":"","CurseForge":"foolish-unofficial-patch","Modrinth":""},{"Id":24810,"Name":"伤害引擎 (Damage Engine)","CurseForge":"","Modrinth":"damage-engine"},{"Id":24811,"Name":"","CurseForge":"travelers-lib","Modrinth":"travelers-lib"},{"Id":24815,"Name":"车站建设器 (Station Builder)","CurseForge":"station-builder","Modrinth":"station-builder"},{"Id":24816,"Name":"重装防护板块 (Heavy-Duty Plate Blocks)","CurseForge":"heavy-duty-plate-blocks","Modrinth":""},{"Id":24817,"Name":"Brx的自定义Nextbot (Brx's Customizable Nextbot)","CurseForge":"","Modrinth":"brxs-customizable-nextbot"},{"Id":24818,"Name":"樱·重制 (Sakura Reforged)","CurseForge":"sakura-reforged","Modrinth":""},{"Id":24819,"Name":"","CurseForge":"","Modrinth":"worst-luck-possible"},{"Id":24820,"Name":"","CurseForge":"ihfr-fo","Modrinth":""},{"Id":24822,"Name":"掉落物转化 (Item Despawn To What)","CurseForge":"item-despawn-to-what","Modrinth":"item-despawn-to-what"},{"Id":24823,"Name":"","CurseForge":"jurassic-saga","Modrinth":"jurassic-saga"},{"Id":24824,"Name":"AE2 科技扩展 (AE2 Tech Add-On)","CurseForge":"ae2-tech-add-on","Modrinth":""},{"Id":24825,"Name":"","CurseForge":"","Modrinth":"create-nerfad"},{"Id":24826,"Name":"","CurseForge":"questextra","Modrinth":""},{"Id":24827,"Name":"","CurseForge":"flans-mod-npc-vehicles","Modrinth":""},{"Id":24828,"Name":"简易登录 (EasyLogin)","CurseForge":"","Modrinth":"easyloginmod"},{"Id":24829,"Name":"背包整理(NeoForge 版) (Inventory Sort (NeoForge Edition))","CurseForge":"inventory-sort-nf","Modrinth":""},{"Id":24830,"Name":"","CurseForge":"someordinarytweaks-forge","Modrinth":"ordinarytweaks"},{"Id":24832,"Name":"","CurseForge":"qliphoth-awakening-dimensions","Modrinth":"qliphoth-awakening-dimensions"},{"Id":24833,"Name":"","CurseForge":"","Modrinth":"mca-expanded"},{"Id":24834,"Name":"流星雨 (Meteor Shower)","CurseForge":"ex-meteor-shower","Modrinth":""},{"Id":24835,"Name":"","CurseForge":"chaos-persists","Modrinth":""},{"Id":24836,"Name":"冒险家的护身符 (Adventurer's Amulets)","CurseForge":"adventurers-amulets","Modrinth":""},{"Id":24838,"Name":"","CurseForge":"","Modrinth":"mortem"},{"Id":24839,"Name":"机械动力:频率过滤器 (Create: Frequency Filter)","CurseForge":"create-frequency-filter","Modrinth":""},{"Id":24840,"Name":"","CurseForge":"","Modrinth":"accurate-skies"},{"Id":24843,"Name":"Xy的TPA模组","CurseForge":"","Modrinth":"xytpa"},{"Id":24845,"Name":"史蒂夫工厂-重置 (Steve's Factory Manager Reborn)","CurseForge":"steves-factory-manager-reborn","Modrinth":""},{"Id":24846,"Name":"史蒂夫工厂管理附加 (Steve's Addons)","CurseForge":"steves-addons","Modrinth":""},{"Id":24847,"Name":"液体存储 (Fancy Fluid Storage)","CurseForge":"ffs-fancy-fluid-storage","Modrinth":"ffs-fancy-fluid-storage"},{"Id":24848,"Name":"遐想旅途 (Journey of Reverie)","CurseForge":"reverie-foundry","Modrinth":""},{"Id":24849,"Name":"花朵世界 (Flowercraft)","CurseForge":"flowercraft","Modrinth":""},{"Id":24850,"Name":"","CurseForge":"shaders-hdr","Modrinth":"rrtt217-s-hdr-mod"},{"Id":24851,"Name":"","CurseForge":"lycheejs-neoforge","Modrinth":""},{"Id":24853,"Name":"","CurseForge":"epic-fight-the-arachne","Modrinth":""},{"Id":24854,"Name":"","CurseForge":"insane-tnt","Modrinth":"insane-tnt"},{"Id":24855,"Name":"","CurseForge":"extra-tnt","Modrinth":""},{"Id":24856,"Name":"","CurseForge":"mob-loot-bags","Modrinth":"mob-loot-bags"},{"Id":24858,"Name":"","CurseForge":"steve-chair","Modrinth":"steve-chair"},{"Id":24859,"Name":"","CurseForge":"stoic-dummy","Modrinth":"stoic-dummy"},{"Id":24860,"Name":"","CurseForge":"wildex-bestiary","Modrinth":"wildex-bestiary"},{"Id":24861,"Name":"","CurseForge":"fubricapi","Modrinth":"fubric-api"},{"Id":24865,"Name":"适应性 (Adaptability)","CurseForge":"adaptability","Modrinth":""},{"Id":24866,"Name":"虚空维度 (Void Dimension)","CurseForge":"redstone-chans-void-dimension","Modrinth":"redstone-chans-void-dimension"},{"Id":24868,"Name":"太初寰宇难度调整 (TCHY Difficulty Adjustment)","CurseForge":"","Modrinth":"tchy_difficultyadjustment"},{"Id":24872,"Name":"","CurseForge":"noisiumed","Modrinth":"noisiumed"},{"Id":24873,"Name":"可交易风爆 (Tradable Wind Burst)","CurseForge":"tradable-wind-burst","Modrinth":"tradable-wind-burst"},{"Id":24874,"Name":"","CurseForge":"","Modrinth":"enchant-tweaker"},{"Id":24875,"Name":"MBD2 线程拓展 (Mbd2Thread)","CurseForge":"mbd2thread","Modrinth":"mbd2thread"},{"Id":24876,"Name":"IgnatiusHC 的更多矿石 (IgnatiusHC's More Ore)","CurseForge":"","Modrinth":"ignatiushcsmoreore"},{"Id":24877,"Name":"终极村庄 (Ultimate Village)","CurseForge":"ultimate-village","Modrinth":""},{"Id":24878,"Name":"方速MTR扩展 (FangSu MTR Addon)","CurseForge":"","Modrinth":"fangsu-mtr-addon"},{"Id":24879,"Name":"我的世界:王国之泪 (Minecraft: Tears of the Kingdom)","CurseForge":"","Modrinth":"mitoftk"},{"Id":24880,"Name":"更多蜡烛 (More Candles)","CurseForge":"more-candles","Modrinth":"more-candles"},{"Id":24882,"Name":"","CurseForge":"tacz-automatic-first-person","Modrinth":""},{"Id":24883,"Name":"","CurseForge":"","Modrinth":"kgt6neiaddon"},{"Id":24884,"Name":"","CurseForge":"abyssalcraft-remnant-tweaker","Modrinth":""},{"Id":24885,"Name":"Herobrine 的陪伴 (Herobrine Companion)","CurseForge":"herobrine-companion","Modrinth":"herobrine_companion"},{"Id":24886,"Name":"","CurseForge":"industrial-forestry","Modrinth":""},{"Id":24887,"Name":"","CurseForge":"avaritia-lite-extended","Modrinth":""},{"Id":24888,"Name":"","CurseForge":"goety-hostility","Modrinth":"goety-hostility"},{"Id":24889,"Name":"鱼栅非官方重制版 (Fish Traps Remastered)","CurseForge":"fish-traps-remastered","Modrinth":"fish-traps-remastered"},{"Id":24890,"Name":"思索者 (Ponderer)","CurseForge":"the-ponderer","Modrinth":"the-ponderer"},{"Id":24891,"Name":"","CurseForge":"fallen-lib","Modrinth":""},{"Id":24892,"Name":"","CurseForge":"lazyyyyy","Modrinth":"lazyyyyy"},{"Id":24894,"Name":"","CurseForge":"zunpet-vintage","Modrinth":""},{"Id":24895,"Name":"变换水晶2 (Fluxed-Crystals 2)","CurseForge":"fluxed-crystals-2","Modrinth":""},{"Id":24896,"Name":"","CurseForge":"gregtech-ceu-gaseous-blast-handler","Modrinth":""},{"Id":24897,"Name":"","CurseForge":"gtmoretools","Modrinth":"gtmoretools"},{"Id":24900,"Name":"Viola 的衣柜 (Viola's Wardrobe)","CurseForge":"violas-wardrobe","Modrinth":"violas-wardrobe"},{"Id":24901,"Name":"","CurseForge":"","Modrinth":"simple-chat-disabler"},{"Id":24902,"Name":"机械动力火炮:幻影炮弹 (CBC Phantom Shells)","CurseForge":"","Modrinth":"cbc-phantom-shells"},{"Id":24904,"Name":"","CurseForge":"","Modrinth":"create-jade-quartz"},{"Id":24905,"Name":"","CurseForge":"create-idlx","Modrinth":"create-idlx"},{"Id":24906,"Name":"","CurseForge":"","Modrinth":"physics-drop"},{"Id":24907,"Name":"","CurseForge":"sketchrender","Modrinth":"sketchrender"},{"Id":24908,"Name":"","CurseForge":"brainrot-protocol","Modrinth":""},{"Id":24909,"Name":"","CurseForge":"my-shadow","Modrinth":"my-shadow"},{"Id":24910,"Name":"","CurseForge":"pipecraft","Modrinth":"pipecraft"},{"Id":24911,"Name":"更好的森林 (Better Forests)","CurseForge":"better-forests","Modrinth":"better-forests"},{"Id":24912,"Name":"","CurseForge":"overworld-ancient-debris","Modrinth":"overworld-ancient-debris"},{"Id":24913,"Name":"","CurseForge":"simply-potion-rings","Modrinth":"simply-potion-rings"},{"Id":24914,"Name":"更好的原版 (Better Vanilla)","CurseForge":"bettervanilla","Modrinth":""},{"Id":24915,"Name":"更多重生锚重制版 (More Respawn Anchors Remastered)","CurseForge":"more-respawn-anchors-remastered","Modrinth":"more-respawn-anchors-remastered"},{"Id":24916,"Name":"诡厄巫法:阶梯 (Goety: Ladder)","CurseForge":"goety-ladder","Modrinth":"goetyladder"},{"Id":24917,"Name":"Sown 的星球大战 (Sown's Star Wars Mod)","CurseForge":"outer-rim","Modrinth":"the-outer-rim"},{"Id":24918,"Name":"优化效能 (Extreme Vanilla Optimizations Collection)","CurseForge":"evoc","Modrinth":""},{"Id":24919,"Name":"","CurseForge":"mobiuscore","Modrinth":""},{"Id":24921,"Name":"虫洞药水 (Wormhole Potion)","CurseForge":"wormhole-potion","Modrinth":"wormhole-potion"},{"Id":24922,"Name":"","CurseForge":"finndusfillies","Modrinth":""},{"Id":24923,"Name":"","CurseForge":"moogs-glow-up","Modrinth":"moogs-glow-up"},{"Id":24924,"Name":"","CurseForge":"starlight-with-create-fix","Modrinth":""},{"Id":24925,"Name":"","CurseForge":"","Modrinth":"zombies-everywhere"},{"Id":24926,"Name":"","CurseForge":"undyings-bosses","Modrinth":""},{"Id":24927,"Name":"","CurseForge":"nice-to-have","Modrinth":"nice-to-have"},{"Id":24928,"Name":"","CurseForge":"","Modrinth":"fmod"},{"Id":24929,"Name":"更多附魔信息 (More Enchantment Info)","CurseForge":"more-enchantment-info","Modrinth":"more-enchantment-info"},{"Id":24930,"Name":"","CurseForge":"","Modrinth":"profitabletrade"},{"Id":24933,"Name":"","CurseForge":"harvestcraft-waila-fixes","Modrinth":""},{"Id":24934,"Name":"","CurseForge":"ore-stages-restaged","Modrinth":""},{"Id":24935,"Name":"","CurseForge":"the-mini-bosses","Modrinth":""},{"Id":24936,"Name":"","CurseForge":"nether-descent","Modrinth":"nether-descent"},{"Id":24937,"Name":"","CurseForge":"wtp-whats-this-pack","Modrinth":""},{"Id":24938,"Name":"","CurseForge":"im-looking-at-blood","Modrinth":""},{"Id":24940,"Name":"","CurseForge":"iriss-plushie-mod","Modrinth":"iriss-plushie-mod"},{"Id":24941,"Name":"","CurseForge":"screencopy","Modrinth":"screencopy"},{"Id":24942,"Name":"","CurseForge":"legendgear-returns","Modrinth":""},{"Id":24943,"Name":"","CurseForge":"legend-gear","Modrinth":""},{"Id":24944,"Name":"","CurseForge":"ae2helpers","Modrinth":"ae2helpers"},{"Id":24945,"Name":"AE2样板工作站 (AE2 Pattern Workstation)","CurseForge":"ae2-pattern-workstation","Modrinth":""},{"Id":24946,"Name":"","CurseForge":"chiseltones","Modrinth":""},{"Id":24947,"Name":"錾面 (Chisel Facades)","CurseForge":"chisel-facades","Modrinth":""},{"Id":24948,"Name":"","CurseForge":"tinkers-extra-integrations","Modrinth":""},{"Id":24949,"Name":"符咒2 (Talismans 2)","CurseForge":"talismans-2","Modrinth":""},{"Id":24950,"Name":"","CurseForge":"dalek-mod-all-dimensions-plus","Modrinth":"dalek-mod-all-dimensions-plus"},{"Id":24951,"Name":"","CurseForge":"pepoyo","Modrinth":"pepoyo-mod"},{"Id":24952,"Name":"CTNH更新日志 (CTNH-Changelog)","CurseForge":"ctnh-changelog","Modrinth":""},{"Id":24953,"Name":"","CurseForge":"","Modrinth":"i-want-cute-plushies-!"},{"Id":24954,"Name":"工匠思索 (Tinkers' Ponder)","CurseForge":"tinkers-ponder","Modrinth":"tinkers-ponder"},{"Id":24955,"Name":"","CurseForge":"","Modrinth":"nekostulaicompanion"},{"Id":24956,"Name":"聊天过滤 (ChatPurity)","CurseForge":"","Modrinth":"chatpurity"},{"Id":24958,"Name":"","CurseForge":"qwertech","Modrinth":""},{"Id":24959,"Name":"寂静装备JEI (Silent Gear JEI)","CurseForge":"silent-gear-jei","Modrinth":"silentgearjei"},{"Id":24960,"Name":"","CurseForge":"cobbledex-rei-emi-jei","Modrinth":"cobbledex-rei-emi-jei"},{"Id":24962,"Name":"匠魂领域附加 (TconDiadema Plus)","CurseForge":"tcondiadema-plus","Modrinth":"tcondiadema-plus"},{"Id":24963,"Name":"新年红 (New Year Red)","CurseForge":"","Modrinth":"new-year-red"},{"Id":24964,"Name":"","CurseForge":"","Modrinth":"fix-mc-249973-in-1.19"},{"Id":24965,"Name":"给我音乐! (I Wanna Music)","CurseForge":"i-wanna-music","Modrinth":"i-wanna-music"},{"Id":24966,"Name":"","CurseForge":"","Modrinth":"1.8-style-inventory"},{"Id":24967,"Name":"","CurseForge":"","Modrinth":"numeric-id"},{"Id":24968,"Name":"","CurseForge":"","Modrinth":"multiplayer164"},{"Id":24969,"Name":"更多凿子 (More Chisels)","CurseForge":"morechisels","Modrinth":""},{"Id":24974,"Name":"","CurseForge":"naturot","Modrinth":"naturot"},{"Id":24975,"Name":"","CurseForge":"","Modrinth":"infinity-stack"},{"Id":24976,"Name":"","CurseForge":"","Modrinth":"zstdmc"},{"Id":24977,"Name":"","CurseForge":"vulkanbobby","Modrinth":"vulkanbobby"},{"Id":24978,"Name":"应用复制学 (Applied Replicatics)","CurseForge":"applied-replicatics","Modrinth":"applied-replicatics"},{"Id":24979,"Name":"亡灵弱火 (Undead Fire Weakness)","CurseForge":"","Modrinth":"undead-fire-weakness"},{"Id":24980,"Name":"","CurseForge":"ruthless","Modrinth":""},{"Id":24981,"Name":"更好的拾取 (Better Looting)","CurseForge":"betterlooting","Modrinth":"better-looting"},{"Id":24982,"Name":"明日方舟种族外观 (Arknights Origin Furs)","CurseForge":"","Modrinth":"arknights-furs"},{"Id":24986,"Name":"吃不能停 (I Should Eat More)","CurseForge":"","Modrinth":"i-should-eat-more"},{"Id":24987,"Name":"","CurseForge":"mekanism-ponders","Modrinth":"mekanism-ponders"},{"Id":24988,"Name":"机械动力火炮:紧凑式炮座 (CBC: Compact Mount)","CurseForge":"","Modrinth":"cbc-compact-mount"},{"Id":24989,"Name":"机械动力:径工地点 (Create: Auto Track)","CurseForge":"create-auto-track","Modrinth":"create-auto-track"},{"Id":24990,"Name":"","CurseForge":"pulsetech","Modrinth":"pulsetech"},{"Id":24993,"Name":"","CurseForge":"","Modrinth":"night-lights-polymer"},{"Id":24994,"Name":"","CurseForge":"snowscaress","Modrinth":"snowscaress"},{"Id":24995,"Name":"新:模拟大都市 (New: Sim-U-Kraft)","CurseForge":"","Modrinth":"new-sim-u-kraft"},{"Id":24996,"Name":"","CurseForge":"fancy-outlines","Modrinth":""},{"Id":24997,"Name":"","CurseForge":"ae2-pattern-encoding-access-terminal","Modrinth":"ae2-pattern-encoding-access-terminal"},{"Id":24998,"Name":"","CurseForge":"efficient-entities","Modrinth":"efficient-entities"},{"Id":24999,"Name":"","CurseForge":"distant-banners","Modrinth":"distant-banners"},{"Id":25000,"Name":"","CurseForge":"chroma-carvings","Modrinth":""},{"Id":25001,"Name":"无忧聊Minecraft (CoffeeChatMC)","CurseForge":"coffeechat","Modrinth":""},{"Id":25002,"Name":"箱子追踪非官方移植版 (Chest Tracker (Unofficial port))","CurseForge":"chest-tracker-port","Modrinth":"chest-tracker-port"},{"Id":25003,"Name":"更好的崩溃日志 (Better Crash Reports)","CurseForge":"better-crash-reports","Modrinth":"better-crash-report"},{"Id":25004,"Name":"","CurseForge":"trinkets-updated","Modrinth":"trinkets-updated"},{"Id":25005,"Name":"","CurseForge":"not-enough-glyphs","Modrinth":""},{"Id":25006,"Name":"","CurseForge":"","Modrinth":"not-enough-vulkan"},{"Id":25007,"Name":"","CurseForge":"goslingcord","Modrinth":""},{"Id":25008,"Name":"","CurseForge":"emojicord","Modrinth":""},{"Id":25009,"Name":"","CurseForge":"","Modrinth":"logarithmic-volume-control"},{"Id":25010,"Name":"","CurseForge":"scarcity","Modrinth":"scarcity"},{"Id":25011,"Name":"更多弯曲 [现代化移植] (Mo' Bends [MODERN PORT])","CurseForge":"mo-bends-unofficial-modern-port","Modrinth":"mo-bends-unofficial-modern-port"},{"Id":25012,"Name":"超级史蒂夫 (Super Steve)","CurseForge":"","Modrinth":"supersteve"},{"Id":25014,"Name":"前路已明 (Road Is Ahead)","CurseForge":"longroad","Modrinth":""},{"Id":25015,"Name":"粗渲滥食 (Rough Render Excessive Eating)","CurseForge":"rough-render-excessive-eating","Modrinth":"rough-render-excessive-eating"},{"Id":25017,"Name":"简单的扫雷 (Simple Minesweeper)","CurseForge":"simple-minesweeper","Modrinth":""},{"Id":25018,"Name":"拔刀剑:更多电力工具 (MoreElectricTools Blade)","CurseForge":"mets-blade","Modrinth":"mets_blade"},{"Id":25019,"Name":"拔刀剑重锋—一点也不极端的拓展 (SlashBladeUnUnExtremeAddon)","CurseForge":"slashblade-ununextremeaddon","Modrinth":""},{"Id":25020,"Name":"图片拖拽 (DragIt)","CurseForge":"dragit","Modrinth":""},{"Id":25021,"Name":"","CurseForge":"ixapi","Modrinth":""},{"Id":25024,"Name":"就是不钓鱼 (Anything But Fish)","CurseForge":"anything-but-fish","Modrinth":"anything-but-fish"},{"Id":25025,"Name":"下单了 (Order To Cook)","CurseForge":"order-to-cook","Modrinth":"order-to-cook"},{"Id":25026,"Name":"","CurseForge":"butchery-lite","Modrinth":"butchery-lite"},{"Id":25027,"Name":"应用建筑棒 (Applied Construction Sticks)","CurseForge":"applied-construction-sticks","Modrinth":"applied-construction-sticks"},{"Id":25028,"Name":"","CurseForge":"farscape-addon-for-gc3","Modrinth":""},{"Id":25030,"Name":"","CurseForge":"serene-seasons-better-winter","Modrinth":"serene-seasons-better-winter"},{"Id":25031,"Name":"","CurseForge":"","Modrinth":"mc122477fix-re-updated"},{"Id":25033,"Name":"","CurseForge":"refined-construction-sticks","Modrinth":"refined-construction-sticks"},{"Id":25034,"Name":"","CurseForge":"yeti-jar-dweller","Modrinth":""},{"Id":25035,"Name":"","CurseForge":"create-automotives","Modrinth":"create-automotives"},{"Id":25036,"Name":"","CurseForge":"exposure-expanded","Modrinth":"exposure-expanded"},{"Id":25037,"Name":"","CurseForge":"smart-spawn","Modrinth":"smart-spawn"},{"Id":25038,"Name":"","CurseForge":"random-mob-textures","Modrinth":"random-mob-textures"},{"Id":25039,"Name":"","CurseForge":"uifadefx","Modrinth":"uifadefx"},{"Id":25040,"Name":"","CurseForge":"daily-boss","Modrinth":"daily-boss"},{"Id":25041,"Name":"与洞顶的连接似乎并不牢固 (It seems loosely connected to the ceiling)","CurseForge":"it-seems-loosely-connected-to-the-ceiling","Modrinth":"it-seems-loosely-connected-to-the-ceiling"},{"Id":25042,"Name":"","CurseForge":"agricraft-refitted","Modrinth":"agricraft-refitted"},{"Id":25047,"Name":"服务器无人时间静止 (Server Tick Stasis)","CurseForge":"","Modrinth":"unmannedonlinetickstasis"},{"Id":25048,"Name":"乱流加载动画 (Turbulence Loading Animation)","CurseForge":"turbulence-loading-animation","Modrinth":""},{"Id":25049,"Name":"拔刀剑:模型预热 (SlashBlade Model WarmUp)","CurseForge":"slashblade-model-warmup","Modrinth":""},{"Id":25050,"Name":"","CurseForge":"raids-enhanced","Modrinth":"raidsenhanced"},{"Id":25052,"Name":"笼中生物 - 耕云钓月版 (Caged Mobs - KOTS)","CurseForge":"caged-mobs-kots","Modrinth":""},{"Id":25054,"Name":"常用服务器命令 (Basic Server Commands)","CurseForge":"","Modrinth":"basic-server-commands"},{"Id":25055,"Name":"稀有度核心Fabric版 (RarityCore For Fabric)","CurseForge":"raritycore-for-fabric","Modrinth":"raritycore_fabric"},{"Id":25057,"Name":"汤姆存储 - 星的奇妙优化 (Toms Storage Star Optimized)","CurseForge":"toms-storage-star-optimized","Modrinth":""},{"Id":25058,"Name":"[SBW]残骸系统 ([SBW] Wrecked!)","CurseForge":"sbw-wrecked","Modrinth":"sbw-wrecked!"},{"Id":25059,"Name":"售货箱 (Shipping Box)","CurseForge":"shipping-box","Modrinth":""},{"Id":25060,"Name":"消费了! (Coin To Shop)","CurseForge":"","Modrinth":"coin-to-shop"},{"Id":25061,"Name":"","CurseForge":"","Modrinth":"liteloaderloader"},{"Id":25062,"Name":"我需要龙蛋 (I Need Dragon Egg)","CurseForge":"i-need-dragon-egg","Modrinth":"i-need-dragon-egg"},{"Id":25063,"Name":"昵称 (Nickname)","CurseForge":"nickname","Modrinth":""},{"Id":25064,"Name":"圆石生成器 (Cobblestone Generator)","CurseForge":"redstone-chan-cobblestone-generator","Modrinth":"cobblestone-generator"},{"Id":25065,"Name":"鞘翅尾迹 (Elytra Contrails Mod)","CurseForge":"elytra-contrails","Modrinth":"elytra-contrails-mod"},{"Id":25066,"Name":"警卫号角 (Guard Horn)","CurseForge":"guard-horn","Modrinth":"guard-horn"},{"Id":25067,"Name":"JEI 纹饰模板隐藏 (JEI Trim Hider)","CurseForge":"jei-trim-hider","Modrinth":"jei-trim-hider"},{"Id":25068,"Name":"只狼死亡界面:重生 (SekiroDiedScreen)","CurseForge":"","Modrinth":"sekirodiedscreen"},{"Id":25069,"Name":"终末地游戏加载页面 (EndfieldPanorama) - 本体","CurseForge":"endfieldpanorama","Modrinth":"endfieldpanorama"},{"Id":25069,"Name":"终末地游戏加载页面 (EndfieldPanorama) - 本体所需的加载模块","CurseForge":"endfieldearlywindowmodule","Modrinth":"endfieldearlywindowmodule"},{"Id":25070,"Name":"让我改改 (Let Me Tweak It)","CurseForge":"bmts-imagination","Modrinth":""},{"Id":25074,"Name":"璞玉 (Puyu)","CurseForge":"puyu","Modrinth":"puyu"},{"Id":25075,"Name":"新泰坦生物-变种 (NeoTitansVariantMod)","CurseForge":"neo-titans-variant","Modrinth":"neo-titans-variant"},{"Id":25076,"Name":"装配线 (Assembly Line)","CurseForge":"assembly-line","Modrinth":""},{"Id":25078,"Name":"更好的坐标记录 / 更好的座標紀錄 (Better coordinate records)","CurseForge":"","Modrinth":"better-coordinate-records"},{"Id":25079,"Name":"夜幕强化 (EFN Enhance)","CurseForge":"efn-enhance","Modrinth":""},{"Id":25080,"Name":"","CurseForge":"pets-locator","Modrinth":"pets-locator"},{"Id":25081,"Name":"合成指南书 (Guide Book)","CurseForge":"guide-book","Modrinth":""},{"Id":25082,"Name":"","CurseForge":"elders-wild","Modrinth":""},{"Id":25083,"Name":"","CurseForge":"voidaic-arcania","Modrinth":""},{"Id":25084,"Name":"","CurseForge":"","Modrinth":"more-swords+"},{"Id":25085,"Name":"","CurseForge":"scp-662-butlers-hand-bell","Modrinth":"scp-662,-butlers-hand-bell"},{"Id":25086,"Name":"","CurseForge":"","Modrinth":"perihelion"},{"Id":25087,"Name":"","CurseForge":"auroras-arsenal","Modrinth":""},{"Id":25088,"Name":"","CurseForge":"infernal-expansion-redux","Modrinth":"infernal-expansion-redux"},{"Id":25089,"Name":"","CurseForge":"hbms-nuclear-tech-mod-waldemar-edition","Modrinth":""},{"Id":25090,"Name":"","CurseForge":"","Modrinth":"cloud-boots-legacy"},{"Id":25091,"Name":"","CurseForge":"","Modrinth":"htcpwebserver"},{"Id":25092,"Name":"","CurseForge":"","Modrinth":"noserversideclientmods"},{"Id":25093,"Name":"","CurseForge":"","Modrinth":"minecraftpatcher"},{"Id":25094,"Name":"","CurseForge":"","Modrinth":"staticenchanteditemrenderer"},{"Id":25095,"Name":"","CurseForge":"","Modrinth":"timeup"},{"Id":25096,"Name":"","CurseForge":"","Modrinth":"paragraphsreborn"},{"Id":25098,"Name":"AE2超频 (AE2 Overclocked)","CurseForge":"ae2-overclocked","Modrinth":"ae2-overclocked"},{"Id":25099,"Name":"","CurseForge":"","Modrinth":"bred-is-cool"},{"Id":25100,"Name":"","CurseForge":"integrated-mekanism","Modrinth":"integrated-mekanism"},{"Id":25101,"Name":"","CurseForge":"rainjava","Modrinth":""},{"Id":25104,"Name":"","CurseForge":"me-soul-card","Modrinth":""},{"Id":25106,"Name":"","CurseForge":"mcqoy","Modrinth":"mcqoy"},{"Id":25107,"Name":"","CurseForge":"qomc","Modrinth":"qomc"},{"Id":25108,"Name":"爆炸动画增强:移植版 (Explosive Enhancement: Legacy)","CurseForge":"explosive-enhancement-legacy","Modrinth":"explosive-enhancement-1.12.2"},{"Id":25109,"Name":"共享物品栏 (Shared Inventory)","CurseForge":"","Modrinth":"sharedinv"},{"Id":25111,"Name":"落地泥! (Landing Mud)","CurseForge":"landing-mud","Modrinth":""},{"Id":25113,"Name":"列车与物品 (MTR Trains and Textures)","CurseForge":"","Modrinth":"mtr-tat"},{"Id":25114,"Name":"朋友TP (FrinedTP)","CurseForge":"friendtp","Modrinth":"friendtp"},{"Id":25116,"Name":"生物显血·极轻量版 (Display Tool)","CurseForge":"display-tool","Modrinth":""},{"Id":25117,"Name":"Minecraft 挖掘榜 (Minecraft Digging Leaderboard)","CurseForge":"","Modrinth":"digging-leaderboard"},{"Id":25118,"Name":"第一人称沉浸式音频 (First-person immersive audio)","CurseForge":"","Modrinth":"first-person-immersive-audio"},{"Id":25119,"Name":"科技辅助 (Technological Assistance)","CurseForge":"technological-assistance","Modrinth":""},{"Id":25120,"Name":"网络包优化 (Not Enough Bandwidth)","CurseForge":"not-enough-bandwidth","Modrinth":"not-enough-bandwidth"},{"Id":25121,"Name":"学徒法典 (Apprentice's Codex)","CurseForge":"apprentices-codex","Modrinth":"apprentices-codex"},{"Id":25122,"Name":"","CurseForge":"asterism-arcanum-addon-for-irons-spells-and","Modrinth":""},{"Id":25123,"Name":"","CurseForge":"wizards-help-irons-spells-n-spellbooks-addon","Modrinth":""},{"Id":25124,"Name":"","CurseForge":"ftw-addon","Modrinth":""},{"Id":25125,"Name":"","CurseForge":"new-years-delight-a-farmers-delight-add-on","Modrinth":"new-years-delight-(a-farmers-delight-add-on)"},{"Id":25126,"Name":"","CurseForge":"","Modrinth":"more-tools-1.21.1+"},{"Id":25127,"Name":"","CurseForge":"","Modrinth":"toms_simple_storage_in_tfc"},{"Id":25129,"Name":"","CurseForge":"","Modrinth":"oled-saver"},{"Id":25131,"Name":"存在 (Existence)","CurseForge":"existencealone","Modrinth":"existence"},{"Id":25133,"Name":"","CurseForge":"","Modrinth":"the-nuke-mod"},{"Id":25134,"Name":"","CurseForge":"armor-3d","Modrinth":"armor-3d"},{"Id":25135,"Name":"","CurseForge":"hot-iron","Modrinth":""},{"Id":25136,"Name":"","CurseForge":"dangerous","Modrinth":"dangerous"},{"Id":25137,"Name":"","CurseForge":"balaclava-mod","Modrinth":"balaclava-mod"},{"Id":25138,"Name":"","CurseForge":"","Modrinth":"goodblock"},{"Id":25139,"Name":"枪鸣尸至 (TaCZ: Sound Attracts Zombies)","CurseForge":"tacz-sound-attracts-zombies","Modrinth":"tacz-sound-attracts-zombies"},{"Id":25140,"Name":"","CurseForge":"ntrials","Modrinth":"ntrials"},{"Id":25141,"Name":"Alex 的生物(Fabric) (Alex's Mobs (Fabric))","CurseForge":"alexs-mobs-fabric","Modrinth":""},{"Id":25142,"Name":"","CurseForge":"citadel-fabric","Modrinth":""},{"Id":25143,"Name":"","CurseForge":"bibliocraft-legacy-expanded","Modrinth":""},{"Id":25144,"Name":"","CurseForge":"untamed-wilds-unofficial-port","Modrinth":"untamed-wilds-(unofficial-port)"},{"Id":25145,"Name":"","CurseForge":"cit-recrafted","Modrinth":"cit-recrafted"},{"Id":25146,"Name":"","CurseForge":"greek-fantasy-unofficial-port","Modrinth":"greek-fantasy-(unofficial-port)"},{"Id":25147,"Name":"","CurseForge":"universutil","Modrinth":""},{"Id":25148,"Name":"","CurseForge":"indev-hell-mod","Modrinth":""},{"Id":25149,"Name":"","CurseForge":"apocalypse-dimension","Modrinth":"apocalypse-dimension"},{"Id":25150,"Name":"","CurseForge":"dranergize-dragon-origin","Modrinth":"dranergize-dragon-origin"},{"Id":25152,"Name":"伤害显示:扩展版 (Damage Indicators (Expanded))","CurseForge":"damage-indicators-fabric-neoforge","Modrinth":""},{"Id":25153,"Name":"","CurseForge":"deadly-weather-storms","Modrinth":""},{"Id":25154,"Name":"","CurseForge":"vapourware","Modrinth":"vapourware"},{"Id":25155,"Name":"","CurseForge":"inlinelatex","Modrinth":"inlinelatex"},{"Id":25156,"Name":"","CurseForge":"fear-of-sound","Modrinth":"fear-of-sound"},{"Id":25157,"Name":"","CurseForge":"horror-pacman","Modrinth":""},{"Id":25158,"Name":"","CurseForge":"","Modrinth":"lock-doors-from-villagers"},{"Id":25159,"Name":"","CurseForge":"depths-update","Modrinth":"depths-update"},{"Id":25160,"Name":"","CurseForge":"furnace-mk2","Modrinth":"furnacemk2"},{"Id":25161,"Name":"","CurseForge":"auto-clicker-fabric","Modrinth":"auto-clicker"},{"Id":25162,"Name":"","CurseForge":"","Modrinth":"no-moon-network-fix"},{"Id":25163,"Name":"","CurseForge":"multi-key-bindings","Modrinth":"multi-key-bindings"},{"Id":25164,"Name":"","CurseForge":"dog-dog","Modrinth":"dogdog"},{"Id":25166,"Name":"","CurseForge":"deus-ex-machina-reborn","Modrinth":""},{"Id":25167,"Name":"南滨创意 (Nanbin Create Mod)","CurseForge":"nanbin-create-mod","Modrinth":"nanbin-create-mod"},{"Id":25168,"Name":"竞速实用工具","CurseForge":"","Modrinth":"multi-racing-utilities"},{"Id":25169,"Name":"","CurseForge":"simple-absorption","Modrinth":"simple-absorption"},{"Id":25170,"Name":"","CurseForge":"cobblemon-trials-edition","Modrinth":"cobblemon-trials-edition"},{"Id":25171,"Name":"药水核心重制版 (Potion Core Remastered)","CurseForge":"potion-core-remastered","Modrinth":"potioncoreremastered"},{"Id":25172,"Name":"铁梦兼容 (Fantasy Iron Fix)","CurseForge":"fantasy-iron-fix","Modrinth":""},{"Id":25173,"Name":"厄醒修复 (Goety Awaken Fix)","CurseForge":"goety-awaken-fix","Modrinth":""},{"Id":25174,"Name":"诡暮兼容 (Goety Twilight Fix)","CurseForge":"goety-twilight-fix","Modrinth":""},{"Id":25176,"Name":"绿宝石工艺 (EmeraldCraft)","CurseForge":"","Modrinth":"emeraldcraft"},{"Id":25177,"Name":"我是僵尸 (As The Zombie)","CurseForge":"you-are-the-zombie-2-0","Modrinth":""},{"Id":25178,"Name":"","CurseForge":"mobcivics","Modrinth":"mobcivics"},{"Id":25180,"Name":"塔罗牌:重制 (TarotCards: Remastered)","CurseForge":"tarotcards-remastered","Modrinth":"tarotcards-remastered"},{"Id":25181,"Name":"复制方块 (Copy Block)","CurseForge":"","Modrinth":"copyblock"},{"Id":25182,"Name":"天启终焉 (Apocalypse End)","CurseForge":"","Modrinth":"apocalypse_end"},{"Id":25184,"Name":"","CurseForge":"","Modrinth":"bypass-fabric-check"},{"Id":25186,"Name":"剑拔弩张之时附加 (TensionAdd)","CurseForge":"tensionadd","Modrinth":""},{"Id":25187,"Name":"纹饰增强 : 核心 (Trim Upgrade : Core)","CurseForge":"","Modrinth":"trim-upgrade-core"},{"Id":25188,"Name":"开放式联机:Chmlfrp扩展 (OpenLink Chmlfrp Extension)","CurseForge":"openlink-chmlfrp-extension","Modrinth":"openlink-chmlfrp-extension"},{"Id":25191,"Name":"","CurseForge":"enchantato-enchantment-table","Modrinth":""},{"Id":25193,"Name":"红包 (Red Envelope)","CurseForge":"red-envelope-reforge","Modrinth":""},{"Id":25194,"Name":"高级备份补丁 (Advanced Backups Patch)","CurseForge":"advanced-backups-patch","Modrinth":"advanced-backups-patch"},{"Id":25195,"Name":"","CurseForge":"","Modrinth":"network-proxy"},{"Id":25196,"Name":"","CurseForge":"","Modrinth":"asmcraft"},{"Id":25198,"Name":"神化小玩意 (Apotheosis Things)","CurseForge":"apotheosis-things","Modrinth":""},{"Id":25199,"Name":"更平衡的饱腹代偿 (Weaken Satiated Shield)","CurseForge":"weaken-satiated-shield","Modrinth":""},{"Id":25200,"Name":"森罗物语:酒馆 (Kaleidoscope Tavern)","CurseForge":"kaleidoscope-tavern","Modrinth":"kaleidoscopetavern"},{"Id":25201,"Name":"","CurseForge":"the-farlands-are-back-tfab","Modrinth":""},{"Id":25202,"Name":"","CurseForge":"beta-graphics","Modrinth":"beta-graphics"},{"Id":25203,"Name":"","CurseForge":"world-corruption-fixer","Modrinth":"world-corruption-fixer"},{"Id":25204,"Name":"","CurseForge":"","Modrinth":"echoes-of-utopia"},{"Id":25205,"Name":"结构工具 (Structural Tools)","CurseForge":"structural-tools","Modrinth":"structural-tools"},{"Id":25206,"Name":"","CurseForge":"","Modrinth":"originclasses"},{"Id":25207,"Name":"","CurseForge":"slime-chunk-finder","Modrinth":"slime-chunk-finder"},{"Id":25209,"Name":"","CurseForge":"optinotfine","Modrinth":"optinotfine"},{"Id":25210,"Name":"","CurseForge":"enderdragon-loot","Modrinth":""},{"Id":25211,"Name":"","CurseForge":"","Modrinth":"carpet_cuo_addition"},{"Id":25213,"Name":"","CurseForge":"","Modrinth":"iceandfire-atm-compatibility"},{"Id":25214,"Name":"时尚玻璃门 (Neo)Forge 版 (Modern Glass Doors(Forge))","CurseForge":"","Modrinth":"modern-glass-doors(forge)"},{"Id":25215,"Name":"AE2更好的磁引卡 (AE2 Better Magnet Card)","CurseForge":"ae2-better-magnet-card","Modrinth":""},{"Id":25216,"Name":"","CurseForge":"rangedjs-kubejs-addon","Modrinth":"rangedjs"},{"Id":25218,"Name":"森罗物语:群峦厨房 (Kaleidoscope TFC Cookery)","CurseForge":"kaleidoscope-tfc-cookery","Modrinth":""},{"Id":25219,"Name":"","CurseForge":"reliable-recipes","Modrinth":"reliable-recipes"},{"Id":25220,"Name":"","CurseForge":"inline-tooltips","Modrinth":"inline-tooltips"},{"Id":25221,"Name":"","CurseForge":"mtr-east-japan-railway-addon","Modrinth":""},{"Id":25222,"Name":"","CurseForge":"raidspawn","Modrinth":""},{"Id":25223,"Name":"","CurseForge":"gtoex","Modrinth":"gtoex"},{"Id":25224,"Name":"","CurseForge":"","Modrinth":"zzaiclear"},{"Id":25225,"Name":"","CurseForge":"","Modrinth":"veil"},{"Id":25226,"Name":"","CurseForge":"gregtech-molecule-drawings","Modrinth":""},{"Id":25227,"Name":"","CurseForge":"the-broken-script-patches-herdyn-edition","Modrinth":""},{"Id":25227,"Name":"The Broken Script Patches - 原","CurseForge":"","Modrinth":"the-broken-script-patches"},{"Id":25228,"Name":"","CurseForge":"wifi-mod","Modrinth":""},{"Id":25229,"Name":"","CurseForge":"more-tide-fish","Modrinth":"more-tide-fish"},{"Id":25230,"Name":"","CurseForge":"ez-actions","Modrinth":"ez-actions"},{"Id":25231,"Name":"","CurseForge":"create-train-tracker","Modrinth":""},{"Id":25234,"Name":"","CurseForge":"create-backtank-is-jetpack","Modrinth":""},{"Id":25235,"Name":"","CurseForge":"create-real-stack-size","Modrinth":"create-real-stack-size"},{"Id":25236,"Name":"机械动力:流体包裹 (Create: Fluid Logistic)","CurseForge":"create-fluidlogistic","Modrinth":"createfluidlogistic"},{"Id":25237,"Name":"流体炮弹扩展 (Fluid Shell Extensions)","CurseForge":"","Modrinth":"fluid-shell-extensions"},{"Id":25238,"Name":"","CurseForge":"kubejs-create-automation","Modrinth":"kubejs-create-automation"},{"Id":25239,"Name":"","CurseForge":"nether-star-items-forge","Modrinth":"nether-star-items"},{"Id":25239,"Name":"","CurseForge":"nether-star-items-fabric","Modrinth":""},{"Id":25240,"Name":"","CurseForge":"piglin-hunt-fix","Modrinth":""},{"Id":25241,"Name":"","CurseForge":"ok-core","Modrinth":""},{"Id":25242,"Name":"CC拓展外设 (CCExpand Peripherals)","CurseForge":"","Modrinth":"ccexpand-peripherals"},{"Id":25244,"Name":"","CurseForge":"colored-end-crystals","Modrinth":""},{"Id":25245,"Name":"温州美食 (Wenzhou Specialties)","CurseForge":"wenzhou-specialties","Modrinth":""},{"Id":25246,"Name":"铁镰兼容 (Peyro's Scythe Fix)","CurseForge":"peyros-scythe-fix","Modrinth":""},{"Id":25247,"Name":"","CurseForge":"snowify-eternal-snow","Modrinth":"snowify-eternal-snow"},{"Id":25248,"Name":"","CurseForge":"","Modrinth":"modernui-mc-mvus"},{"Id":25249,"Name":"","CurseForge":"horror-messages-kamussy","Modrinth":"horror-messages"},{"Id":25250,"Name":"","CurseForge":"velthoric","Modrinth":"velthoric"},{"Id":25252,"Name":"","CurseForge":"re-constructed-wands","Modrinth":"reconstructed-wands"},{"Id":25253,"Name":"附魔图书馆 (Enchantment Library)","CurseForge":"enchantment-library","Modrinth":"enchantment-library"},{"Id":25254,"Name":"","CurseForge":"load-stone","Modrinth":"load-stone"},{"Id":25255,"Name":"","CurseForge":"creatures-of-sonaria-in-minecraft","Modrinth":"creatures-of-sonariacraft"},{"Id":25257,"Name":"","CurseForge":"command-keybindings","Modrinth":""},{"Id":25258,"Name":"","CurseForge":"","Modrinth":"rdpfix"},{"Id":25259,"Name":"","CurseForge":"true-end-cf","Modrinth":"true_end"},{"Id":25260,"Name":"","CurseForge":"barnyard-buddies","Modrinth":"barnyard-buddies"},{"Id":25261,"Name":"黑色之魂:选项 (Black Souls: Options)","CurseForge":"black-souls-options","Modrinth":""},{"Id":25262,"Name":"","CurseForge":"","Modrinth":"crosstie"},{"Id":25263,"Name":"","CurseForge":"jcplugin","Modrinth":""},{"Id":25264,"Name":"无光仙途 (Nonsun's Pursuit of Immortality)","CurseForge":"pursuit-of-immortality","Modrinth":""},{"Id":25265,"Name":"","CurseForge":"craftingnetherstar","Modrinth":""},{"Id":25266,"Name":"","CurseForge":"emeddium-au-naturel-edit","Modrinth":""},{"Id":25267,"Name":"","CurseForge":"viewmodel-tuner","Modrinth":"viewmodel-tuner"},{"Id":25268,"Name":"","CurseForge":"aethersteel","Modrinth":"aethersteel"},{"Id":25269,"Name":"","CurseForge":"custom-better-beacons","Modrinth":"custom-better-beacons"},{"Id":25270,"Name":"","CurseForge":"immersive-cookfarm","Modrinth":"immersive-cooking-adoon"},{"Id":25271,"Name":"","CurseForge":"goety-heart-of-creation","Modrinth":""},{"Id":25273,"Name":"","CurseForge":"dragns-livestock-overhaul-pets-addon","Modrinth":"dragns-livestock-overhaul-pets-addon!"},{"Id":25274,"Name":"","CurseForge":"unnatural-absorption","Modrinth":""},{"Id":25275,"Name":"","CurseForge":"ripples-of-the-past-recording","Modrinth":"ripples-of-the-past-recording"},{"Id":25276,"Name":"静谧四季兼容桥 (Serene Seasons API Stub / Ecliptic Seasons Bridge)","CurseForge":"serene-seasons-api-stub-ecliptic-seasons-bridge","Modrinth":""},{"Id":25277,"Name":"节气:捆绑包 (Ecliptic Seasons : Bundles)","CurseForge":"ecliptic-seasons-bundles","Modrinth":""},{"Id":25278,"Name":"重锤效果 (MaceEffect)","CurseForge":"","Modrinth":"maceeffect"},{"Id":25279,"Name":"","CurseForge":"spiders-shoot-webs","Modrinth":"spiders-shoot-webs"},{"Id":25280,"Name":"","CurseForge":"","Modrinth":"attribute-pvp-helper"},{"Id":25282,"Name":"神秘遗物拓展经典版 (Enigmatic Addons Legacy)","CurseForge":"enigmatic-addons-legacy","Modrinth":""},{"Id":25283,"Name":"喙囊悲事 (Beak&Pouch's Plight)","CurseForge":"beak-pouchs-plight","Modrinth":"beak-pouchs-plight"},{"Id":25284,"Name":"锤子多多 (Hammers Galore)","CurseForge":"hammers-galore","Modrinth":"hammers-galore"},{"Id":25285,"Name":"译言订正 (Language Amend)","CurseForge":"language-amend","Modrinth":"language-amend"},{"Id":25287,"Name":"","CurseForge":"mechanical-millstone","Modrinth":""},{"Id":25288,"Name":"","CurseForge":"zoology-of-the-world-of-withernauts","Modrinth":""},{"Id":25289,"Name":"","CurseForge":"stackable-flowers","Modrinth":"stackable-flowers"},{"Id":25290,"Name":"","CurseForge":"dragns-deadly-dinos-reconstructed","Modrinth":"dragns-deadly-dinos-reconstructed"},{"Id":25291,"Name":"","CurseForge":"teleporttagjs","Modrinth":"teleporttagjs"},{"Id":25292,"Name":"传送标签 (Teleport Tag)","CurseForge":"teleport-tag","Modrinth":"teleporttag"},{"Id":25293,"Name":"","CurseForge":"insconfigjs","Modrinth":"insconfigjs"},{"Id":25294,"Name":"即时重配 (InsConfig)","CurseForge":"insconfig","Modrinth":"insconfig"},{"Id":25295,"Name":"生物替换 (EntityReplacer)","CurseForge":"entityreplacer","Modrinth":"entityreplacer"},{"Id":25296,"Name":"没有受击变红 (NoHurtRed)","CurseForge":"nohurtred","Modrinth":""},{"Id":25297,"Name":"哔哩哔哩WaterMedia兼容模组 - 耕云钓月版 (Bilibili Media - KOTS)","CurseForge":"bilibili-media-kots","Modrinth":""},{"Id":25298,"Name":"饱腹代偿修复 (Satiated Shield Fix)","CurseForge":"satiated-shield-fix","Modrinth":""},{"Id":25299,"Name":"TaCZ护甲缩放 (TaCZ Armor Scaling)","CurseForge":"tacz-armor-scaling","Modrinth":"tacz-armor-scaling"},{"Id":25300,"Name":"","CurseForge":"crazy-chocobos","Modrinth":"crazy-chocobos!"},{"Id":25301,"Name":"","CurseForge":"burnt-basic","Modrinth":"burnt-basic"},{"Id":25302,"Name":"","CurseForge":"","Modrinth":"regsyncfix"},{"Id":25303,"Name":"","CurseForge":"giddy-guinea-pigs","Modrinth":"giddy-guinea-pigs!"},{"Id":25304,"Name":"","CurseForge":"dragns-crop-overhaul","Modrinth":"dragns-crop-overhaul!"},{"Id":25305,"Name":"","CurseForge":"dragns-livestock-overhaul-permafrost","Modrinth":"dragns-livestock-overhaul-permafrost"},{"Id":25306,"Name":"","CurseForge":"radical-rats","Modrinth":""},{"Id":25307,"Name":"","CurseForge":"little-tractor","Modrinth":"little-tractor"},{"Id":25308,"Name":"","CurseForge":"fancy-ferrets","Modrinth":"fancy-ferrets!"},{"Id":25309,"Name":"","CurseForge":"","Modrinth":"dune-striders"},{"Id":25310,"Name":"翻箱倒柜 (Rummage)","CurseForge":"rummage","Modrinth":""},{"Id":25311,"Name":"","CurseForge":"tacz-creative-supplement","Modrinth":"tacz-creative-supplement"},{"Id":25312,"Name":"综合能源管理系统 (Integrated Energy Management System)","CurseForge":"","Modrinth":"iems"},{"Id":25313,"Name":"铁砧工艺:Qualia (AnvilCraft: Qualia Addon)","CurseForge":"anvilcraft-qualia-addon","Modrinth":"aqa"},{"Id":25315,"Name":"机械动力:更多机械 (Create More Machines)","CurseForge":"create-more-machines","Modrinth":""},{"Id":25316,"Name":"","CurseForge":"turret-mod-rebirth","Modrinth":""},{"Id":25317,"Name":"善良海鸥 (Kind Seagull)","CurseForge":"kind-seagull","Modrinth":""},{"Id":25318,"Name":"纸鸢庄园 (Paper Kite Manor)","CurseForge":"paper-kite-manor","Modrinth":"paper_kite_manor"},{"Id":25319,"Name":"史诗战斗:冲击之刃 (EpicFight : Clash Blade)","CurseForge":"epicfight-clash-blade","Modrinth":"epicfight-clash-blade"},{"Id":25320,"Name":"","CurseForge":"attribute-keeper","Modrinth":""},{"Id":25321,"Name":"冲撞 (Collide)","CurseForge":"","Modrinth":"collide"},{"Id":25323,"Name":"冰焰龙 (Frostfire Dragon)","CurseForge":"frostfire-dragon","Modrinth":""},{"Id":25324,"Name":"成就&奖励 (Advancements&Rewards)","CurseForge":"advancements-rewards","Modrinth":"advancements_rewards"},{"Id":25325,"Name":"森罗厨房:嬗变饭袋回调 (Kaleidoscope Cooker: Transmutation Callback)","CurseForge":"","Modrinth":"kaleidoscope-cookertransmutation-callback"},{"Id":25326,"Name":"建筑手杖怀古 (Construction Wand Legacy)","CurseForge":"constructionwandlegacy","Modrinth":""},{"Id":25328,"Name":"","CurseForge":"","Modrinth":"minewatch"},{"Id":25329,"Name":"重量系统 (Weight System)","CurseForge":"","Modrinth":"weight-system"},{"Id":25330,"Name":"交错织法 (Interlace SpellWeaves)","CurseForge":"interlace-spellweaves-irons-spells-and-spellbooks","Modrinth":""},{"Id":25331,"Name":"","CurseForge":"mobs-use-shield","Modrinth":""},{"Id":25332,"Name":"","CurseForge":"skilltreemkp","Modrinth":"skilltreemkp"},{"Id":25333,"Name":"","CurseForge":"cells","Modrinth":""},{"Id":25334,"Name":"","CurseForge":"wanderer-pets","Modrinth":"wanderer-pets"},{"Id":25335,"Name":"","CurseForge":"medieval-embroidery","Modrinth":"medieval-embroidery"},{"Id":25336,"Name":"","CurseForge":"dragns-wagons","Modrinth":""},{"Id":25337,"Name":"","CurseForge":"dragns-deadly-dinos","Modrinth":"dragns-deadly-dinos!"},{"Id":25338,"Name":"","CurseForge":"dragns-bettas-aquatics","Modrinth":"dragns-bettas-aquatics"},{"Id":25339,"Name":"","CurseForge":"reliable-remover","Modrinth":"reliable-remover"},{"Id":25340,"Name":"","CurseForge":"reliable-replacer","Modrinth":"reliable-replacer"},{"Id":25341,"Name":"怪物肢解 [非官方现代化移植] (Mob Dismemberment [UNOFFICIAL MODERN PORT])","CurseForge":"mob-dismemberment-unofficial-modern-port","Modrinth":"mob-dismemberment-unofficial-modern-port"},{"Id":25342,"Name":"","CurseForge":"guard-villagers-automatic-guard-conversion","Modrinth":"guard-villagers-automatic-guard-conversion"},{"Id":25343,"Name":"","CurseForge":"repair-station","Modrinth":"repair-station"},{"Id":25345,"Name":"","CurseForge":"gtm-advanced-hatch","Modrinth":"gtm-advanced-hatch"},{"Id":25346,"Name":"","CurseForge":"kubejs-jei","Modrinth":""},{"Id":25347,"Name":"","CurseForge":"traveler-tool-belt","Modrinth":"traveler-tool-belt"},{"Id":25348,"Name":"","CurseForge":"floor-beds","Modrinth":"floor-beds"},{"Id":25349,"Name":"","CurseForge":"shadow-actionbar","Modrinth":""},{"Id":25350,"Name":"","CurseForge":"baby-steps","Modrinth":""},{"Id":25352,"Name":"复古伤害显示 (Vintage Damage Indicators)","CurseForge":"vintage-damage-indicators","Modrinth":"vintage-damage-indicators"},{"Id":25355,"Name":"晴雪UI (ApricityUI)","CurseForge":"apricityui","Modrinth":"apricityui"},{"Id":25357,"Name":"怀旧功能性存储 (FunctionalStorageLegacy)","CurseForge":"functionalstoragelegacy","Modrinth":"functionalstoragelegacy"},{"Id":25359,"Name":"","CurseForge":"echo-chest-experience-obliterator","Modrinth":"echo-chest-experience-obliterator"},{"Id":25361,"Name":"","CurseForge":"custom-stars-forge","Modrinth":""},{"Id":25363,"Name":"","CurseForge":"mobs-use-shields","Modrinth":"mobs-use-shields"},{"Id":25364,"Name":"","CurseForge":"fairy-factions","Modrinth":""},{"Id":25365,"Name":"","CurseForge":"navs-pipes","Modrinth":""},{"Id":25366,"Name":"","CurseForge":"big-lost-city","Modrinth":"big-lost-city"},{"Id":25367,"Name":"","CurseForge":"","Modrinth":"taczaddonsfix"},{"Id":25368,"Name":"","CurseForge":"rollthesky","Modrinth":""},{"Id":25369,"Name":"车万女仆:收容异变 (Tamable Fairy)","CurseForge":"","Modrinth":"tamablefairy"},{"Id":25370,"Name":"女仆匠魂 (Maid's Construct)","CurseForge":"maidsconstruct","Modrinth":"maidsconstruct"},{"Id":25371,"Name":"","CurseForge":"bugrock","Modrinth":""},{"Id":25372,"Name":"","CurseForge":"enchantato-loot","Modrinth":""},{"Id":25373,"Name":"","CurseForge":"just-enough-crafting-tree-ject","Modrinth":""},{"Id":25375,"Name":"","CurseForge":"advanced-hud","Modrinth":"advancedhud"},{"Id":25376,"Name":"","CurseForge":"ycqin","Modrinth":""},{"Id":25377,"Name":"","CurseForge":"deep-blue-a-bettas-aquatics-addon","Modrinth":"deep-blue-a-bettas-aquatics-addon!"},{"Id":25378,"Name":"应用机动 (Applied Create)","CurseForge":"applied-create","Modrinth":"applied-create"},{"Id":25379,"Name":"","CurseForge":"tradeworks","Modrinth":"tradeworks"},{"Id":25380,"Name":"","CurseForge":"","Modrinth":"create-origins"},{"Id":25381,"Name":"旋力转接:机械动力×群峦 (Torque Link Create To TFC)","CurseForge":"torque-link-create-to-tfc","Modrinth":""},{"Id":25383,"Name":"","CurseForge":"i-hate-ghost-blocks","Modrinth":""},{"Id":25384,"Name":"自定义箱子名称 (Custom Chest Name)","CurseForge":"custom-chest-name","Modrinth":""},{"Id":25385,"Name":"","CurseForge":"modern-chickens","Modrinth":"modern-chickens"},{"Id":25387,"Name":"RPG背包 (RPG Backpacks)","CurseForge":"rpg-backpacks","Modrinth":"rpg-backpacks"},{"Id":25388,"Name":"资源复制机 (Resource Replicator)","CurseForge":"resource-replicator","Modrinth":"resource-replicator"},{"Id":25389,"Name":"","CurseForge":"","Modrinth":"the-fossils-mod"},{"Id":25390,"Name":"","CurseForge":"little-johns-galvanized-square-steel","Modrinth":"little-johns"},{"Id":25391,"Name":"","CurseForge":"navaroneecorelib","Modrinth":""},{"Id":25392,"Name":"","CurseForge":"","Modrinth":"yosbr-neo"},{"Id":25393,"Name":"东洋花卉 (Osten Botanics)","CurseForge":"","Modrinth":"osten_botanics"},{"Id":25394,"Name":"","CurseForge":"tree-vein-miner","Modrinth":""},{"Id":25395,"Name":"","CurseForge":"ziplines-rezipped","Modrinth":"ziplines-rezipped"},{"Id":25396,"Name":"","CurseForge":"reconnectible-chains","Modrinth":"reconnectible-chains"},{"Id":25397,"Name":"","CurseForge":"foxeternity","Modrinth":"foxeternity"},{"Id":25398,"Name":"服务器离线认证 (ServerOfflineAuth)","CurseForge":"serverofflineauth","Modrinth":"serverofflineauth"},{"Id":25399,"Name":"传奇魔法书 (Legendary Spellbooks)","CurseForge":"legendary-spellbooks","Modrinth":""},{"Id":25400,"Name":"","CurseForge":"lootselect","Modrinth":"lootselect"},{"Id":25401,"Name":"咒术时代 (Sorcery Age)","CurseForge":"sorcery-age","Modrinth":"sorcery-age"},{"Id":25402,"Name":"无锻造模板 (No Smithing Template)","CurseForge":"nosmithing-template","Modrinth":"no-smithing-template"},{"Id":25403,"Name":"","CurseForge":"mm-modern-mayhem","Modrinth":"mm-modern-mayhem"},{"Id":25404,"Name":"","CurseForge":"epicfight-extra","Modrinth":"epicfight-extra"},{"Id":25405,"Name":"太空 (Space)","CurseForge":"the-space","Modrinth":"space"},{"Id":25406,"Name":"地牢世界 (Roguelike World)","CurseForge":"roguelike-world","Modrinth":""},{"Id":25407,"Name":"","CurseForge":"music-trigger","Modrinth":"music-trigger"},{"Id":25409,"Name":"无作弊Locate传送 (Cheating Free Locate Teleporting)","CurseForge":"cheating-free-locate-teleporting","Modrinth":""},{"Id":25410,"Name":"","CurseForge":"wallpapers","Modrinth":"wallpapers"},{"Id":25411,"Name":"","CurseForge":"","Modrinth":"creepebucketlib"},{"Id":25412,"Name":"","CurseForge":"missing-mods-checker","Modrinth":"missing-mods-checker"},{"Id":25413,"Name":"","CurseForge":"undead-nights","Modrinth":"undead-nights"},{"Id":25414,"Name":"abm991的僵尸感染 (abm991's Zombie Infection)","CurseForge":"","Modrinth":"abm991s-zombie-infection"},{"Id":25415,"Name":"简单R键整理 (SimpleSorterR)","CurseForge":"simplesorterr","Modrinth":"simplesorterr"},{"Id":25416,"Name":"战术轮盘 (Tactical Wheel)","CurseForge":"","Modrinth":"tacticalwheel"},{"Id":25417,"Name":"DBC成就 (DBCAchievement)","CurseForge":"dbcachievement","Modrinth":""},{"Id":25418,"Name":"深度求索 (Research)","CurseForge":"jei-research","Modrinth":""},{"Id":25419,"Name":"","CurseForge":"aperture-innovations","Modrinth":"aperture-innovations"},{"Id":25420,"Name":"","CurseForge":"townsfolk-tenants","Modrinth":""},{"Id":25421,"Name":"自定义亮度 (Custom Light)","CurseForge":"custom-light","Modrinth":"custom_light"},{"Id":25422,"Name":"","CurseForge":"the-cave-crawler","Modrinth":""},{"Id":25423,"Name":"","CurseForge":"particle-rain-backport","Modrinth":"particle-rain-(backport)"},{"Id":25424,"Name":"物品栏禁用 (Inventory disabled)","CurseForge":"","Modrinth":"inventory-disabled"},{"Id":25425,"Name":"","CurseForge":"navs-motors-inc","Modrinth":""},{"Id":25427,"Name":"","CurseForge":"theoria","Modrinth":""},{"Id":25428,"Name":"","CurseForge":"ad-skies","Modrinth":""},{"Id":25429,"Name":"亿衍定真 (Attribute Unification)","CurseForge":"attribute-unification","Modrinth":""},{"Id":25430,"Name":"是敌是友一看便知 (Team Healthbar)","CurseForge":"team-healthbar","Modrinth":"team-healthbar"},{"Id":25431,"Name":"车万女仆附属:爱恋 (Touhou Maid: Affection)","CurseForge":"touhou-maid-affection","Modrinth":"touhou-maid-affection"},{"Id":25433,"Name":"","CurseForge":"stoprendering","Modrinth":""},{"Id":25434,"Name":"远古木板 (Ancient Planks)","CurseForge":"","Modrinth":"ancient-planks"},{"Id":25436,"Name":"","CurseForge":"more-notches","Modrinth":""},{"Id":25437,"Name":"新开山棒 (NewFlatWorld)","CurseForge":"newflatworld","Modrinth":"newflatworld"},{"Id":25438,"Name":"","CurseForge":"oreganized-carcinogenius","Modrinth":"oreganized-carcinogenius"},{"Id":25439,"Name":"更好的盔甲纹饰提示 (Better Trim Tooltips)","CurseForge":"better-trim-tooltips-forge","Modrinth":"better-trim-tooltips-forge"},{"Id":25440,"Name":"","CurseForge":"shutter-up","Modrinth":"shutter-up"},{"Id":25441,"Name":"","CurseForge":"","Modrinth":"pridespecial"},{"Id":25442,"Name":"","CurseForge":"worldgenfeaturefix","Modrinth":"worldgenfeaturefix"},{"Id":25443,"Name":"","CurseForge":"bloodmoon-update","Modrinth":""},{"Id":25444,"Name":"","CurseForge":"immersive-gateways","Modrinth":"immersive-gateways"},{"Id":25445,"Name":"","CurseForge":"slabbed","Modrinth":"slabbed"},{"Id":25446,"Name":"物品复制器 (ItemReplicator)","CurseForge":"","Modrinth":"item-replicator"},{"Id":25447,"Name":"更多金苹果/满目金果 (HanToKe1's More Golden Apples)","CurseForge":"hantoke1s-more-golden-apples","Modrinth":"hantoke1s-more-golden-apple"},{"Id":25448,"Name":"网易云音乐播放器 (Minecraft Music Player)","CurseForge":"mc-music-player","Modrinth":"custom-music-player"},{"Id":25449,"Name":"","CurseForge":"wallpaper","Modrinth":""},{"Id":25450,"Name":"","CurseForge":"field-guide","Modrinth":"field-guide"},{"Id":25451,"Name":"灾厄饰品 (Calamity Curios)","CurseForge":"calamity-curios","Modrinth":""},{"Id":25453,"Name":"","CurseForge":"carvable-pumpkins-mod","Modrinth":""},{"Id":25455,"Name":"","CurseForge":"way-where-are-you","Modrinth":"way-where-are-you"},{"Id":25456,"Name":"待办列表 (TeamTasks: TodoList)","CurseForge":"teamtasks-todolist","Modrinth":"todolist"},{"Id":25457,"Name":"","CurseForge":"","Modrinth":"create-diesel-generators-fabric-restitched"},{"Id":25458,"Name":"","CurseForge":"create-enhanced-schematicannon","Modrinth":"create-enhanced-schematicannon"},{"Id":25459,"Name":"","CurseForge":"","Modrinth":"luncheon"},{"Id":25460,"Name":"","CurseForge":"pollys-pets","Modrinth":""},{"Id":25461,"Name":"","CurseForge":"yuutolib","Modrinth":""},{"Id":25462,"Name":"","CurseForge":"randommixins","Modrinth":""},{"Id":25463,"Name":"","CurseForge":"no-ai-spawn-eggs","Modrinth":"no-ai-spawn-eggs"},{"Id":25464,"Name":"P2P详细信息 (P2PDetails)","CurseForge":"p2pdetails","Modrinth":""},{"Id":25465,"Name":"","CurseForge":"afterimages","Modrinth":"afterimages"},{"Id":25466,"Name":"","CurseForge":"smooth-movement","Modrinth":""},{"Id":25467,"Name":"更有用的杂酚油 (Creosote Oil Fuel & Power)","CurseForge":"creosote-oil-fuel-power","Modrinth":""},{"Id":25468,"Name":"","CurseForge":"rideable-blazes","Modrinth":"rideable-blazes"},{"Id":25469,"Name":"","CurseForge":"alexs-caves-cacophony","Modrinth":""},{"Id":25470,"Name":"Alex 的生物乐事 (Alex's Mobs Delight)","CurseForge":"alexs-mobs-delight","Modrinth":""},{"Id":25471,"Name":"","CurseForge":"tinkers-idea","Modrinth":""},{"Id":25472,"Name":"","CurseForge":"ae2-me-interface-through","Modrinth":""},{"Id":25473,"Name":"通用机械:人造太阳 (Mekanism Sun)","CurseForge":"mekanism-sun","Modrinth":""},{"Id":25475,"Name":"","CurseForge":"anvil-lib","Modrinth":"anvil-lib"},{"Id":25476,"Name":"葡园酒香森罗酒馆酒瓶兼容 (Vinery & Kaleidoscope Tavern Bottle Compatibility)","CurseForge":"vkbc","Modrinth":""},{"Id":25477,"Name":"森罗酒馆:世界名酒 (Kaleidoscope World Liquor)","CurseForge":"kaleidoscope-world-liquor","Modrinth":"kaleidoscope-world-liquor"},{"Id":25478,"Name":"","CurseForge":"","Modrinth":"burning"},{"Id":25479,"Name":"","CurseForge":"","Modrinth":"burning-energy"},{"Id":25480,"Name":"","CurseForge":"realisticsunburn","Modrinth":""},{"Id":25481,"Name":"","CurseForge":"novums-altitude","Modrinth":""},{"Id":25482,"Name":"神秘岛:重生 (Mystcraft Reborn)","CurseForge":"mystcraft-reborn","Modrinth":"mystcraft-reborn"},{"Id":25483,"Name":"","CurseForge":"","Modrinth":"cod-pattern"},{"Id":25484,"Name":"TaCZ:绿葡萄战术装备 (TACZ: LesRaisins Tactical Equipements)","CurseForge":"tacz-lesraisins-tactical-equipements","Modrinth":"lr-tactical"},{"Id":25485,"Name":"腐朽之疫 (Rotten Ruins)","CurseForge":"rotten-ruins","Modrinth":""},{"Id":25486,"Name":"稻草傀儡非官方延续版 (Straw Golem Unofficial Extended Life)","CurseForge":"strawgolem-extended-life","Modrinth":"straw-golem-unofficial-extended-life"},{"Id":25487,"Name":"","CurseForge":"caves-not-cliffs-backport","Modrinth":"caves-not-cliffs-backported"},{"Id":25488,"Name":"","CurseForge":"irons-spells-n-spellbooks-scroll-description","Modrinth":""},{"Id":25489,"Name":"","CurseForge":"epic-fight-skillbook-description","Modrinth":""},{"Id":25490,"Name":"","CurseForge":"cnpcextended","Modrinth":""},{"Id":25491,"Name":"Yifei的游戏调整","CurseForge":"yifeis-game-adjustments","Modrinth":""},{"Id":25492,"Name":"","CurseForge":"forcegl3-1","Modrinth":""},{"Id":25493,"Name":"","CurseForge":"baublevault","Modrinth":""},{"Id":25495,"Name":"","CurseForge":"embellish-chat","Modrinth":"embellish-chat"},{"Id":25497,"Name":"","CurseForge":"changed-extra","Modrinth":""},{"Id":25500,"Name":"","CurseForge":"dolt-mod-how","Modrinth":"dolt-mod-how"},{"Id":25501,"Name":"铁魔法:言出法随 (Iron's Spells: Spoken Sorcery)","CurseForge":"irons-spells-spoken-sorcery","Modrinth":"irons-spells-spoken-sorcery"},{"Id":25504,"Name":"","CurseForge":"","Modrinth":"tickrate"},{"Id":25505,"Name":"","CurseForge":"nitshas-fastbind","Modrinth":"nitshas-fastbind"},{"Id":25509,"Name":"下界合金图腾 (Nether Alloy Totem)","CurseForge":"nether-alloy-totem","Modrinth":"nether-alloy-totem"},{"Id":25510,"Name":"","CurseForge":"inhabitants","Modrinth":"inhabitants"},{"Id":25512,"Name":"","CurseForge":"zoomax","Modrinth":"zoomax"},{"Id":25514,"Name":"群峦超级锤 (TFC Super Hammer)","CurseForge":"tfc-super-hammer","Modrinth":""},{"Id":25515,"Name":"","CurseForge":"evolution-of-entities","Modrinth":""},{"Id":25516,"Name":"宝可梦幸运方块 (Cobblemon Lucky Block)","CurseForge":"","Modrinth":"cobblemon-lucky-block"},{"Id":25517,"Name":"","CurseForge":"nekojs","Modrinth":""},{"Id":25518,"Name":"迷因生物 (MemeMobs)","CurseForge":"mememobs","Modrinth":"mememobs"},{"Id":25519,"Name":"匠魂:分离 (Tinkers' Centrifuge)","CurseForge":"tinkers-centrifuge","Modrinth":""},{"Id":25520,"Name":"","CurseForge":"questlog","Modrinth":"questlog"},{"Id":25521,"Name":"","CurseForge":"","Modrinth":"perftriage"},{"Id":25522,"Name":"","CurseForge":"create-ender-gateway","Modrinth":"create-ender-gateway"},{"Id":25523,"Name":"应用合成拓展 (Applied Extended Crafting)","CurseForge":"applied-extended-crafting","Modrinth":"applied-extended-crafting"},{"Id":25524,"Name":"","CurseForge":"mech-trowel","Modrinth":"mech-trowel"},{"Id":25525,"Name":"GUI 动画 (GUI Tween)","CurseForge":"gui-tween","Modrinth":"gui-tween"},{"Id":25526,"Name":"","CurseForge":"hexalia","Modrinth":"hexalia"},{"Id":25527,"Name":"","CurseForge":"ars-unification","Modrinth":"ars-unification"},{"Id":25528,"Name":"","CurseForge":"ars-elemancy","Modrinth":""},{"Id":25529,"Name":"","CurseForge":"ars-polymorphia","Modrinth":"ars-polymorphia"},{"Id":25530,"Name":"","CurseForge":"debug-block-overlay-reloaded","Modrinth":"debug-block-collision-reloaded"},{"Id":25531,"Name":"阶梯强化 (Progressive Tiers)","CurseForge":"","Modrinth":"progressive-tiers"},{"Id":25532,"Name":"通量神化附属 (Apothic Enchanting Addition)","CurseForge":"apothic-enchanting-addition","Modrinth":""},{"Id":25533,"Name":"","CurseForge":"puddles-floods","Modrinth":"puddles-floods"},{"Id":25534,"Name":"星辰龙 (Star Dragon)","CurseForge":"star-dragon-dragon-survival-addon","Modrinth":""},{"Id":25535,"Name":"","CurseForge":"casual-swing","Modrinth":""},{"Id":25537,"Name":"","CurseForge":"","Modrinth":"carvedmelon"},{"Id":25542,"Name":"","CurseForge":"john-mod-resurrected","Modrinth":""},{"Id":25543,"Name":"","CurseForge":"ohaydens-mob-control","Modrinth":"mob-control"},{"Id":25544,"Name":"","CurseForge":"","Modrinth":"wikirenderer"},{"Id":25545,"Name":"机械动力:能量加农炮 (Create: Energy Cannons)","CurseForge":"create-energy-cannons","Modrinth":"create-energy-cannons"},{"Id":25546,"Name":"管道攀爬者 (Pipe Climber)","CurseForge":"pipe-climber","Modrinth":""},{"Id":25549,"Name":"","CurseForge":"demogorgons","Modrinth":""},{"Id":25550,"Name":"","CurseForge":"toows","Modrinth":"toows"},{"Id":25551,"Name":"","CurseForge":"","Modrinth":"noopentolan"},{"Id":25552,"Name":"","CurseForge":"","Modrinth":"marlow-crystal-optimizer"},{"Id":25553,"Name":"","CurseForge":"mc-mods-the-mons-coremod","Modrinth":""},{"Id":25554,"Name":"","CurseForge":"epic-fight-the-leonidas","Modrinth":""},{"Id":25555,"Name":"","CurseForge":"epic-fight-wraithon","Modrinth":""},{"Id":25556,"Name":"","CurseForge":"epic-fight-the-mimic","Modrinth":""},{"Id":25557,"Name":"装备重生 (Gear Reborn)","CurseForge":"gearreborn","Modrinth":""},{"Id":25558,"Name":"","CurseForge":"","Modrinth":"panorama_screen"},{"Id":25559,"Name":"","CurseForge":"make-panorama","Modrinth":"makepanorama"},{"Id":25560,"Name":"","CurseForge":"","Modrinth":"dbtools"},{"Id":25562,"Name":"","CurseForge":"neko-ui","Modrinth":"nekoui"},{"Id":25563,"Name":"","CurseForge":"ae2-inf-pattern-addon","Modrinth":""},{"Id":25564,"Name":"","CurseForge":"","Modrinth":"mod-menu-1.1x"},{"Id":25565,"Name":"蓬松标题 (Fluffy Title)","CurseForge":"fluffy-title","Modrinth":"fluffy-title"},{"Id":25566,"Name":"人皇幡 (Human Emperor Banner)","CurseForge":"human-emperor-banner","Modrinth":""},{"Id":25568,"Name":"","CurseForge":"eeeabs-mobs-custom-bossbars","Modrinth":"eeeabs-mobs-custom-bossbars"},{"Id":25570,"Name":"","CurseForge":"kryxiom","Modrinth":"kryxiom"},{"Id":25571,"Name":"传奇法师 (Legendary Mage)","CurseForge":"legendary-mage","Modrinth":"legendary-mage"},{"Id":25572,"Name":"亿源定值 (Thaumcraft Recipe Aspect Patcher)","CurseForge":"thaumcraft-recipe-aspect-patcher","Modrinth":""},{"Id":25573,"Name":"强调 (It Is Me)","CurseForge":"itisme","Modrinth":""},{"Id":25576,"Name":"","CurseForge":"epic-fight-better-skill-menu","Modrinth":""},{"Id":25577,"Name":"","CurseForge":"epic-fight-skill-irons-spells-n-spellbooks","Modrinth":""},{"Id":25578,"Name":"","CurseForge":"epic-fight-skill-tacz","Modrinth":""},{"Id":25579,"Name":"","CurseForge":"tijons-epic-crayfish","Modrinth":""},{"Id":25580,"Name":"","CurseForge":"tijons-epic-arsenal-tacz","Modrinth":"tijons-epic-arsenal"},{"Id":25581,"Name":"","CurseForge":"mobsfriendly","Modrinth":"mobsfriendly"},{"Id":25582,"Name":"系统命令 (SysCmd) - 只包含最新","CurseForge":"syscmd","Modrinth":""},{"Id":25582,"Name":"系统命令 (SysCmd)","CurseForge":"","Modrinth":"syscmd"},{"Id":25583,"Name":"驭役斗战·万物皆驯! (Mob Controller)","CurseForge":"mob-controller-mob-pet","Modrinth":"mob_controller"},{"Id":25586,"Name":"疯狂的村民 (Crazy Villagers)","CurseForge":"crazyvillagers-forge","Modrinth":"crazyvillagers"},{"Id":25588,"Name":"格雷科技现代版生活品质升级 (GregTech Modern Quality of Life)","CurseForge":"gregtech-modern-quality-of-life","Modrinth":"gtmqol"},{"Id":25589,"Name":"","CurseForge":"custom-lan","Modrinth":"custom-lan"},{"Id":25590,"Name":"AE2样板档案馆 (AE2 Pattern Archive)","CurseForge":"ae2-pattern-archive","Modrinth":"ae2-pattern-archive"},{"Id":25591,"Name":"","CurseForge":"preloading-tricks","Modrinth":"preloading-tricks"},{"Id":25592,"Name":"","CurseForge":"ares-hud","Modrinth":""},{"Id":25593,"Name":"塔罗牌Plus (TarotCardsPlus)","CurseForge":"tarotcardsplus","Modrinth":"tarotcardsplus"},{"Id":25594,"Name":"","CurseForge":"no-portals","Modrinth":"no-portals"},{"Id":25595,"Name":"","CurseForge":"p1neros-epic-x-cataclysm","Modrinth":""},{"Id":25596,"Name":"","CurseForge":"epic-fight-dodge-parry-reward","Modrinth":""},{"Id":25598,"Name":"群峦:三水合物 (TFC: TriHydrate)","CurseForge":"tfc-tri-hydrate","Modrinth":""},{"Id":25599,"Name":"自动电网 (NeoGrid)","CurseForge":"neogrid","Modrinth":"neo-grid"},{"Id":25600,"Name":"储物增强 (Enhanced Inventories)","CurseForge":"enhanced-inventories","Modrinth":""},{"Id":25601,"Name":"群峦女仆 (TfcMaid)","CurseForge":"tfcmaid","Modrinth":"tfcmaid"},{"Id":25602,"Name":"","CurseForge":"ae2-cell-render","Modrinth":""},{"Id":25603,"Name":"","CurseForge":"aerobind","Modrinth":"aerobind"},{"Id":25604,"Name":"","CurseForge":"","Modrinth":"galmc-api"},{"Id":25605,"Name":"TV世界:天纳传说 (TVCraft: The Legend of Tenna)","CurseForge":"tvcraft-the-legend-of-tenna","Modrinth":"tvcraft-legend-of-tenna"},{"Id":25606,"Name":"","CurseForge":"srp-info","Modrinth":"srp-info"},{"Id":25607,"Name":"","CurseForge":"","Modrinth":"flywheel-of-terror"},{"Id":25608,"Name":"","CurseForge":"refinedrains-spells","Modrinth":""},{"Id":25609,"Name":"","CurseForge":"inventory-tools","Modrinth":""},{"Id":25610,"Name":"","CurseForge":"valkyrien-warium","Modrinth":"valkyrien-warium"},{"Id":25611,"Name":"声随形动 (VoiceTrigger)","CurseForge":"voicetrigger","Modrinth":"voicetrigger"},{"Id":25612,"Name":"","CurseForge":"neobiosphere","Modrinth":"neobiosphere"},{"Id":25613,"Name":"自制替身 (Homemade Stand)","CurseForge":"","Modrinth":"homemade-stand"},{"Id":25614,"Name":"无限制聊天 (UnlimitedChat)","CurseForge":"unlimitedchat-for-1-7-10","Modrinth":""},{"Id":25615,"Name":"","CurseForge":"ae2-odds-ends","Modrinth":""},{"Id":25616,"Name":"","CurseForge":"registry-dumper-3000","Modrinth":"registry-dumper-3000"},{"Id":25617,"Name":"","CurseForge":"oriental-armoury","Modrinth":""},{"Id":25618,"Name":"自动重连 (AutoReconnect-CN)","CurseForge":"autoreconnect-cn","Modrinth":"autoreconnect-cn"},{"Id":25619,"Name":"","CurseForge":"","Modrinth":"mmdskinsync"},{"Id":25620,"Name":"","CurseForge":"beyond-storage-addon","Modrinth":"beyond_storage_addon"},{"Id":25621,"Name":"","CurseForge":"decapitation","Modrinth":""},{"Id":25622,"Name":"","CurseForge":"","Modrinth":"narrow-zone"},{"Id":25623,"Name":"","CurseForge":"","Modrinth":"aekey-legacy"},{"Id":25624,"Name":"","CurseForge":"okbackpack","Modrinth":""},{"Id":25625,"Name":"","CurseForge":"thirst-was-tweaked","Modrinth":"thirst-was-tweaked"},{"Id":25626,"Name":"","CurseForge":"","Modrinth":"loots"},{"Id":25629,"Name":"精妙背包:JEI 索引升级 (Sophisticated JEI Index)","CurseForge":"sophisticated-jei-index","Modrinth":""},{"Id":25630,"Name":"","CurseForge":"tropicraft-legacy","Modrinth":""},{"Id":25631,"Name":"","CurseForge":"tcrmodsfilter","Modrinth":""},{"Id":25632,"Name":"","CurseForge":"no-worldgen-warning","Modrinth":""},{"Id":25633,"Name":"","CurseForge":"p1neros-epic-bow","Modrinth":""},{"Id":25634,"Name":"","CurseForge":"p1neros-primal-arena-dimension","Modrinth":""},{"Id":25635,"Name":"","CurseForge":"bountiful-villager","Modrinth":""},{"Id":25636,"Name":"","CurseForge":"tcrmeshes","Modrinth":""},{"Id":25637,"Name":"","CurseForge":"tcr-core","Modrinth":""},{"Id":25638,"Name":"","CurseForge":"settings-profiles","Modrinth":"settings-profiles"},{"Id":25640,"Name":"","CurseForge":"beyond-deepest-dark-sculk-dimension","Modrinth":""},{"Id":25641,"Name":"铁砧工艺:机动附加 (AnvilCraft: Create Addition)","CurseForge":"anvilcraft-create","Modrinth":"anvilcraft-create"},{"Id":25642,"Name":"","CurseForge":"","Modrinth":"fractalterrain"},{"Id":25643,"Name":"车万女仆:织姬拓展 (TLMO Additions)","CurseForge":"tlmo-additions","Modrinth":"tlmo-additions"},{"Id":25644,"Name":"","CurseForge":"pull-me-up","Modrinth":"pull-me-up"},{"Id":25645,"Name":"","CurseForge":"integrations-o-plenty","Modrinth":"integrations-o-plenty"},{"Id":25646,"Name":"","CurseForge":"grothic-mobs","Modrinth":""},{"Id":25647,"Name":"","CurseForge":"eclipse-of-divinity","Modrinth":""},{"Id":25648,"Name":"","CurseForge":"witching-gadgets-patched","Modrinth":""},{"Id":25649,"Name":"","CurseForge":"mystical-extended-tier","Modrinth":""},{"Id":25650,"Name":"","CurseForge":"ntm-fluid-converters","Modrinth":"ntm-fluid-converters"},{"Id":25651,"Name":"","CurseForge":"forkedendertweaker","Modrinth":"forkedendertweaker"},{"Id":25653,"Name":"","CurseForge":"caves-delight","Modrinth":"caves_delight"},{"Id":25654,"Name":"","CurseForge":"minimum-for-maximum","Modrinth":"minimum-for-maximum"},{"Id":25655,"Name":"","CurseForge":"","Modrinth":"gently-holds"},{"Id":25656,"Name":"八角 (Anisum)","CurseForge":"anisum","Modrinth":"anisum"},{"Id":25657,"Name":"天顶剑 (TheZenithSword)","CurseForge":"thezenith","Modrinth":"thezenithsword"},{"Id":25658,"Name":"","CurseForge":"sbw-ping-from-drone","Modrinth":""},{"Id":25659,"Name":"","CurseForge":"gravisuit-classic","Modrinth":""},{"Id":25660,"Name":"","CurseForge":"tiny-storage","Modrinth":""},{"Id":25661,"Name":"按键宏 (KeyMacro)","CurseForge":"keymacro","Modrinth":"keymacro"},{"Id":25662,"Name":"工业先锋:模拟 (Industrial Foregoing: Simulation)","CurseForge":"industrial-foregoing-simulation","Modrinth":""},{"Id":25663,"Name":"","CurseForge":"sbw-drill-baby-drill","Modrinth":"sbw-drill,-baby,-drill!"},{"Id":25664,"Name":"罪业余烬:别再无效统计 (Ash Of Sin: No More Invalid Statistic)","CurseForge":"ash-of-sin-no-more-invalid-statistic","Modrinth":""},{"Id":25665,"Name":"","CurseForge":"immersive-flight-simulator-ifs-immersive-vehicles","Modrinth":""},{"Id":25666,"Name":"","CurseForge":"imageframeclient","Modrinth":"imageframeclient"},{"Id":25667,"Name":"EMI快速编码 (EMI Patternizer)","CurseForge":"emi-patternizer","Modrinth":"emi-patternizer"},{"Id":25668,"Name":"样板自动上传 (Pattern Uploader)","CurseForge":"pattern-uploader","Modrinth":"pattern-uploader"},{"Id":25670,"Name":"拔刀生物 (SlashBlade Mobs)","CurseForge":"slashblade-mobs","Modrinth":"slashblade-mobs"},{"Id":25671,"Name":"能量工厂:门 (PowerCraft Gates)","CurseForge":"powercraft-gates","Modrinth":""},{"Id":25672,"Name":"","CurseForge":"superwindmills-ic2-classic-addon","Modrinth":""},{"Id":25673,"Name":"","CurseForge":"thecasketofrrveriesbosses","Modrinth":""},{"Id":25674,"Name":"","CurseForge":"","Modrinth":"sbw-combined-perk"},{"Id":25675,"Name":"","CurseForge":"reliquified-irons-spells-n-spellbooks","Modrinth":"reliquified-irons-spells-n-spellbooks"},{"Id":25676,"Name":"","CurseForge":"kilt-forgeconfigapiport-fix","Modrinth":"kilt-forgeconfigapiport-fix"},{"Id":25677,"Name":"","CurseForge":"entity-respawner","Modrinth":""},{"Id":25678,"Name":"","CurseForge":"kill-cam","Modrinth":""},{"Id":25679,"Name":"神秘全要素 (Thaumic All Aspect)","CurseForge":"thaumic-all-aspect","Modrinth":"thaumic-all-aspect"},{"Id":25680,"Name":"","CurseForge":"withers-wrath","Modrinth":""},{"Id":25681,"Name":"污秽之地重铸版 (Defiled Lands Reforged)","CurseForge":"defiled-lands-reforged","Modrinth":""},{"Id":25682,"Name":"","CurseForge":"sandwichable-unofficial-port","Modrinth":"sandwichable-unofficial-port"},{"Id":25683,"Name":"局域网信标 (LANBeacon)","CurseForge":"","Modrinth":"lanbeacon"},{"Id":25684,"Name":"","CurseForge":"harvesting-crops-for-xp","Modrinth":""},{"Id":25685,"Name":"","CurseForge":"wizarding-world-mod","Modrinth":""},{"Id":25686,"Name":"别碰我的数据包 (Don't Touch My Datapack)","CurseForge":"dont-touch-my-datapack","Modrinth":""},{"Id":25687,"Name":"","CurseForge":"brighter-full-bright","Modrinth":"brighter"},{"Id":25688,"Name":"车万女仆:属性显示 (Touhou Little Maid: Attribute Display)","CurseForge":"tlm-attributedisplay","Modrinth":""},{"Id":25689,"Name":"一眼认主 (JadeOwnerFix)","CurseForge":"jadeownerfix","Modrinth":"jadeownerfix"},{"Id":25690,"Name":"","CurseForge":"logistics-network","Modrinth":"logisticsnetwork"},{"Id":25691,"Name":"","CurseForge":"","Modrinth":"the-tnt-mod"},{"Id":25693,"Name":"","CurseForge":"","Modrinth":"elytra-chestplate-swap"},{"Id":25694,"Name":"无加载地形中 (No Loading Terrain)","CurseForge":"","Modrinth":"noloadingterrain"},{"Id":25696,"Name":"露天战利品 (Ground Loot)","CurseForge":"ground-loot","Modrinth":""},{"Id":25698,"Name":"","CurseForge":"corrupted-worlds-jar-horror","Modrinth":"corrupted_worlds"},{"Id":25699,"Name":"","CurseForge":"minecraft-flight-simulator","Modrinth":"immersive-vehicles-official-content-pack"},{"Id":25700,"Name":"","CurseForge":"frontline-comabat-pack","Modrinth":"frontline-combat-pack"},{"Id":25701,"Name":"三合一拆解台 (Three In One Uncrafting Table)","CurseForge":"three-in-one-uncrafting-table","Modrinth":"three-in-one-uncrafting-table"},{"Id":25702,"Name":"更多通量存储 (More Flux Storage)","CurseForge":"more-flux-storage","Modrinth":""},{"Id":25703,"Name":"抹泥铲 (Trowel)","CurseForge":"trowel","Modrinth":"trowel"},{"Id":25704,"Name":"","CurseForge":"trowel-future","Modrinth":"trowel-future"},{"Id":25705,"Name":"地图生成锁定 (Lock Down Reneoforged)","CurseForge":"lockdown-reneoforged","Modrinth":""},{"Id":25706,"Name":"","CurseForge":"ardas-uncrafting-table","Modrinth":"ardas-uncrafting-table"},{"Id":25707,"Name":"","CurseForge":"mana-and-artifice-attributes","Modrinth":""},{"Id":25708,"Name":"巫师匠艺 (Tinker's Wizardry)","CurseForge":"tinkerswizardry","Modrinth":""},{"Id":25709,"Name":"实体回收站 (Entity Recycle Bin)","CurseForge":"","Modrinth":"entity_recycle_bin"},{"Id":25710,"Name":"飞矢摇芳 (Whistling Petals)","CurseForge":"whistling-petals","Modrinth":"whistling-petals"},{"Id":25711,"Name":"","CurseForge":"create-track-map-unofficial-fork","Modrinth":"create-track-map-(unofficial-fork)"},{"Id":25712,"Name":"","CurseForge":"sulphur-backport","Modrinth":"sulphur_backport"},{"Id":25714,"Name":"","CurseForge":"","Modrinth":"private-vault"},{"Id":25715,"Name":"","CurseForge":"sophisticated-inventory-interactions","Modrinth":"sophisticated-inventory-interactions"},{"Id":25716,"Name":"快捷背包整理 (QuickOrganizer)","CurseForge":"","Modrinth":"quickorganizer"},{"Id":25717,"Name":"","CurseForge":"even-better-burning","Modrinth":""},{"Id":25718,"Name":"机械动力:纸张 (Create Paper)","CurseForge":"create-paper","Modrinth":"create-paper"},{"Id":25719,"Name":"","CurseForge":"","Modrinth":"a-villagers-dream"},{"Id":25720,"Name":"","CurseForge":"colds-wandering-trader","Modrinth":""},{"Id":25721,"Name":"魔女的扫帚 - 耕云钓月版 (Majo's Broom KOTS)","CurseForge":"majobroom-kots","Modrinth":""},{"Id":25722,"Name":"模拟大都市:筑艺坊 (Simupack)","CurseForge":"","Modrinth":"simupack"},{"Id":25723,"Name":"水车仙人 (Waterwheel Immortal)","CurseForge":"waterwheel-immortal","Modrinth":""},{"Id":25724,"Name":"暮色创世 (TF Remastered)","CurseForge":"tf-remastered","Modrinth":""},{"Id":25726,"Name":"","CurseForge":"configurable-sunburn","Modrinth":""},{"Id":25727,"Name":"","CurseForge":"villager-inflation-fix-vif","Modrinth":""},{"Id":25728,"Name":"","CurseForge":"","Modrinth":"tweelix"},{"Id":25729,"Name":"","CurseForge":"stalkerentity","Modrinth":""},{"Id":25730,"Name":"","CurseForge":"openitempuller","Modrinth":"openitempuller"},{"Id":25731,"Name":"逃逸:疫染暮色 (Scape and Run: Parasites The Twilight Forest)","CurseForge":"scape-and-run-parasites-twilight","Modrinth":"scape-and-run-parasites-twilight"},{"Id":25732,"Name":"工具切换器 (Tool Switcher)","CurseForge":"tool-switcher","Modrinth":"tool-switcher"},{"Id":25733,"Name":"","CurseForge":"casual-tinkering","Modrinth":"casual-tinkering"},{"Id":25734,"Name":"","CurseForge":"hyperlink","Modrinth":"hyperlink"},{"Id":25735,"Name":"月饼乐事 (Mooncake Delight)","CurseForge":"mooncake-delight","Modrinth":"mooncake-delight"},{"Id":25736,"Name":"更多原版盔甲 Fabric (More Vanilla Armor Fabric)","CurseForge":"more-vanilla-armor-fabric","Modrinth":"more-vanilla-armor-fabric"},{"Id":25737,"Name":"无锻造模板(非官方Fabric移植) (No Smithing Template ReFabriced)","CurseForge":"no-smithing-template-refabriced","Modrinth":"no-smithing-template-refabriced"},{"Id":25738,"Name":"蓝图加农炮处理样板 (Schematicannon Processing Pattern)","CurseForge":"schematicannon-processing-pattern","Modrinth":"schematicannon-processing-pattern"},{"Id":25739,"Name":"","CurseForge":"deadeye-mod","Modrinth":"deadeye-mod"},{"Id":25740,"Name":"","CurseForge":"sbw-halovehicles","Modrinth":""},{"Id":25743,"Name":"挖掘速度调整 (MiningSpeedTweak)","CurseForge":"miningspeedtweak","Modrinth":""},{"Id":25748,"Name":"","CurseForge":"fluid-couriers","Modrinth":""},{"Id":25749,"Name":"","CurseForge":"","Modrinth":"absolutely-a-zoom-mod"},{"Id":25750,"Name":"","CurseForge":"warium-n-spell-book","Modrinth":""},{"Id":25752,"Name":"","CurseForge":"","Modrinth":"animatium"},{"Id":25754,"Name":"矿石僵尸 (Ore Zombies)","CurseForge":"ore-zombies","Modrinth":""},{"Id":25756,"Name":"矿石蜘蛛 (Ore Spiders)","CurseForge":"vaders-ore-spiders-mod","Modrinth":""},{"Id":25758,"Name":"","CurseForge":"crafting-slots","Modrinth":"crafting-slots"},{"Id":25759,"Name":"","CurseForge":"ddlc-chibis","Modrinth":""},{"Id":25760,"Name":"","CurseForge":"create-additional-lights","Modrinth":"create-additional-lights"},{"Id":25762,"Name":"自动筑路 (AutoRoadBuild)","CurseForge":"autoroadbuild","Modrinth":""},{"Id":25763,"Name":"网络音乐机:更好的登录 (Net Music: Better Login)","CurseForge":"","Modrinth":"net-music-better-login"},{"Id":25764,"Name":"我有一局,和你赌命 (Life Bet)","CurseForge":"life-bet","Modrinth":""},{"Id":25765,"Name":"机械动力:黄油猫 (Create: Butter Cat)","CurseForge":"create-butter-cat","Modrinth":"createbutter-cat"},{"Id":25766,"Name":"","CurseForge":"map-distance-fix","Modrinth":"map-distance-fix"},{"Id":25767,"Name":"咒法自动机 (HexAutomata)","CurseForge":"hexautomata","Modrinth":"hexautomata"},{"Id":25768,"Name":"虚饰修复 (Fictional Mod)","CurseForge":"fictional","Modrinth":"fictional"},{"Id":25769,"Name":"","CurseForge":"sixalphasix-jar","Modrinth":""},{"Id":25770,"Name":"","CurseForge":"mycelium-mire","Modrinth":""},{"Id":25771,"Name":"","CurseForge":"ore-spiders-revived","Modrinth":""},{"Id":25772,"Name":"","CurseForge":"","Modrinth":"playerdieautomessage"},{"Id":25773,"Name":"","CurseForge":"vintagecraft","Modrinth":""},{"Id":25774,"Name":"","CurseForge":"scary-player","Modrinth":"scaryplayer"},{"Id":25775,"Name":"","CurseForge":"sulkan","Modrinth":"sulkan"},{"Id":25776,"Name":"","CurseForge":"","Modrinth":"armorstatus"},{"Id":25777,"Name":"","CurseForge":"thalassophobia","Modrinth":"thalasophobia"},{"Id":25778,"Name":"","CurseForge":"silly-umas","Modrinth":""},{"Id":25779,"Name":"更好的生存重铸版 (Better Survival Reforged)","CurseForge":"better-survival-reforged","Modrinth":""},{"Id":25780,"Name":"","CurseForge":"dualhotbar-reworked","Modrinth":"dualhotbar-reworked"},{"Id":25781,"Name":"","CurseForge":"concurrent-chunk-management-engine-for-forge-the","Modrinth":""},{"Id":25782,"Name":"真菌侵染:孢子・疯狂版 (Fungal Infection: Spore; Unhinged)","CurseForge":"fungal-infection-spore-unhinged","Modrinth":""},{"Id":25783,"Name":"孢子:哞菇狂欢 (Spore: Mooshroom Boogaloo)","CurseForge":"spore-mooshroom-boogaloo","Modrinth":""},{"Id":25784,"Name":"孢子:侵染扩展 (Spore: Infestation Expansion)","CurseForge":"spore-infestation-expansion","Modrinth":""},{"Id":25785,"Name":"昆虫恐惧症 (Entomophobia)","CurseForge":"entomophobia","Modrinth":""},{"Id":25786,"Name":"神化:孢子 Boss 适配扩展 (Apotheosis Spore (Apoth Boss Compat))","CurseForge":"apotheosis-spore-apoth-boss-compat","Modrinth":""},{"Id":25787,"Name":"孢子维度 (Spore Dimension)","CurseForge":"spore-dimension","Modrinth":""},{"Id":25788,"Name":"孢子添加 (Spore Additions)","CurseForge":"spore-additions","Modrinth":""},{"Id":25790,"Name":"","CurseForge":"zoologicalparkcollection","Modrinth":""},{"Id":25791,"Name":"","CurseForge":"","Modrinth":"fabric-key-binding-api-v1-for-1.14.2"},{"Id":25792,"Name":"","CurseForge":"chisel-unofficial-novus","Modrinth":""},{"Id":25793,"Name":"","CurseForge":"botania-editor","Modrinth":"botaniaeditor"},{"Id":25794,"Name":"","CurseForge":"sapling","Modrinth":"sapling"},{"Id":25795,"Name":"艺演叮砧/铁砧音符盒 (Anvil MusBox)","CurseForge":"","Modrinth":"anvil-musbox"},{"Id":25797,"Name":"无指令确认屏幕 (No Command Confirm)","CurseForge":"","Modrinth":"nocc"},{"Id":25798,"Name":"","CurseForge":"mrt-sign-addon","Modrinth":"mtr-sign-addon"},{"Id":25799,"Name":"","CurseForge":"chocolate-croissant-beyond-the-horizon-paucbh","Modrinth":""},{"Id":25801,"Name":"","CurseForge":"superior-ambience","Modrinth":""},{"Id":25802,"Name":"","CurseForge":"bamboodecor","Modrinth":""},{"Id":25803,"Name":"","CurseForge":"angels-of-lovecraft","Modrinth":""},{"Id":25804,"Name":"","CurseForge":"superior-combat-sounds","Modrinth":""},{"Id":25805,"Name":"","CurseForge":"when-dungeons-arise-lost-architects","Modrinth":""},{"Id":25806,"Name":"","CurseForge":"death-generator","Modrinth":""},{"Id":25807,"Name":"饱腹代偿调整器 (Kaleidoscope Cookery: Satiated Shield Tuner)","CurseForge":"kaleidoscope-cookery-satiated-shield-tuner","Modrinth":"kaleidoscope-cookery-satiated-shield-tuner"},{"Id":25808,"Name":"","CurseForge":"shirium","Modrinth":""},{"Id":25809,"Name":"","CurseForge":"simple-sculk-blocks","Modrinth":"simple-sculk-blocks"},{"Id":25810,"Name":"","CurseForge":"eternal-starlight-delight","Modrinth":"eternal-starlight-delight"},{"Id":25811,"Name":"","CurseForge":"gardons-tnt-pack","Modrinth":""},{"Id":25812,"Name":"","CurseForge":"mega-tnt-mod","Modrinth":""},{"Id":25813,"Name":"","CurseForge":"not-enough-tnt","Modrinth":""},{"Id":25815,"Name":"","CurseForge":"quantified-api","Modrinth":"quantifiedapi"},{"Id":25816,"Name":"通用机械:增强 (Mekanism: Empowered)","CurseForge":"mekanism-empowered","Modrinth":""},{"Id":25817,"Name":"通用机械:增强核心 (Mekanism: Empowered Core)","CurseForge":"mekanism-empowered-core","Modrinth":""},{"Id":25818,"Name":"星界机械&能源 (Astral Mekanism & Energistics)","CurseForge":"astral-mekanism","Modrinth":""},{"Id":25819,"Name":"字幕高亮官方重置版 (Subtitle Highlight Official Reset)","CurseForge":"subtitle-highlight-unofficial-reset","Modrinth":"subtitle-highlight-unofficial-reset"},{"Id":25820,"Name":"","CurseForge":"wheres-that-structure","Modrinth":""},{"Id":25821,"Name":"枪械工坊之魂 (TaCZ Soul)","CurseForge":"tacz-soul","Modrinth":""},{"Id":25822,"Name":"","CurseForge":"mutant-addition","Modrinth":"mutant-addition-mod"},{"Id":25824,"Name":"铼 (Rhenium)","CurseForge":"rhenium","Modrinth":""},{"Id":25825,"Name":"","CurseForge":"fwa","Modrinth":"fwa"},{"Id":25826,"Name":"","CurseForge":"superior-trees-tht-performance-addon","Modrinth":""},{"Id":25828,"Name":"","CurseForge":"piggyback","Modrinth":"piggyback"},{"Id":25829,"Name":"","CurseForge":"","Modrinth":"pandacommandwhitelist"},{"Id":25830,"Name":"更好的自定义命令 (MeliusCommands)","CurseForge":"melius-commands","Modrinth":"melius-commands"},{"Id":25831,"Name":"服务器登陆模组 (ServerAuth Mod)","CurseForge":"","Modrinth":"serverauth-mod"},{"Id":25832,"Name":"迷你生物 (Mini Mob)","CurseForge":"mini-mob","Modrinth":""},{"Id":25833,"Name":"","CurseForge":"","Modrinth":"beryl"},{"Id":25834,"Name":"","CurseForge":"scavenger-mobs","Modrinth":"scavenger-mobs"},{"Id":25835,"Name":"","CurseForge":"overgeared-spartan-shields","Modrinth":""},{"Id":25837,"Name":"","CurseForge":"fermiummixins","Modrinth":"fermiummixins"},{"Id":25838,"Name":"","CurseForge":"panorama-mod-recreated","Modrinth":"panorama-mod-recreated"},{"Id":25839,"Name":"","CurseForge":"ender-storage-energy","Modrinth":""},{"Id":25840,"Name":"","CurseForge":"ophidiophobia","Modrinth":"ophidiophobia"},{"Id":25841,"Name":"","CurseForge":"spice-wood-content","Modrinth":"spice-wood-content"},{"Id":25842,"Name":"","CurseForge":"ender-io-custom-capacitors","Modrinth":"ender-io-custom-capacitors"},{"Id":25843,"Name":"","CurseForge":"","Modrinth":"the-right-path"},{"Id":25844,"Name":"","CurseForge":"extra-chisels","Modrinth":""},{"Id":25845,"Name":"","CurseForge":"tabular","Modrinth":""},{"Id":25846,"Name":"","CurseForge":"baby-dont-herd-me","Modrinth":"babydontherdme"},{"Id":25847,"Name":"","CurseForge":"railway-depot-worker","Modrinth":""},{"Id":25849,"Name":"","CurseForge":"discsbackport","Modrinth":""},{"Id":25850,"Name":"","CurseForge":"dragon-mounts-legacy-tweaked","Modrinth":""},{"Id":25851,"Name":"魔戒历史物品 (LOTR History Items)","CurseForge":"history-items","Modrinth":""},{"Id":25852,"Name":"魔戒种族能力 (LOTR Race Abilities)","CurseForge":"lotr-race-abilities","Modrinth":""},{"Id":25853,"Name":"","CurseForge":"valentias-entropy","Modrinth":"valentias-entropy"},{"Id":25856,"Name":"机械动力:食物注药 (Create: Food Filling)","CurseForge":"create-food-filling","Modrinth":"create-food-filling"},{"Id":25857,"Name":"森罗酒馆:画拓展 (Kaleidoscope Painting Extension)","CurseForge":"","Modrinth":"kaleidoscope-painting-extension"},{"Id":25858,"Name":"","CurseForge":"aether-addon-beyond-parity","Modrinth":"aether-beyond-parity"},{"Id":25860,"Name":"","CurseForge":"lagless","Modrinth":""},{"Id":25861,"Name":"渲染 • 龙 (Ryan's Rendering Lib)","CurseForge":"","Modrinth":"ryansrenderingkit"},{"Id":25862,"Name":"","CurseForge":"holographic-ui-lib","Modrinth":""},{"Id":25863,"Name":"","CurseForge":"holographic-keybinds","Modrinth":""},{"Id":25864,"Name":"","CurseForge":"lightspeed-kryo","Modrinth":""},{"Id":25866,"Name":"","CurseForge":"","Modrinth":"clearitems"},{"Id":25868,"Name":"","CurseForge":"memorycatcher","Modrinth":""},{"Id":25869,"Name":"格雷科技终端 (Gregtech Terminals)","CurseForge":"gtceu-terminals","Modrinth":"gtceu-terminals"},{"Id":25870,"Name":"","CurseForge":"superior-spellcasting","Modrinth":""},{"Id":25871,"Name":"","CurseForge":"irons-patreon-library","Modrinth":"irons-lib"},{"Id":25872,"Name":"","CurseForge":"yttrjei","Modrinth":"yttrjei"},{"Id":25873,"Name":"奇怪饰品 (Strange Trinkets)","CurseForge":"strange-trinkets","Modrinth":"strange-trinkets"},{"Id":25874,"Name":"","CurseForge":"adaptive-optimization","Modrinth":""},{"Id":25875,"Name":"","CurseForge":"","Modrinth":"echo-clones"},{"Id":25876,"Name":"","CurseForge":"modfixer","Modrinth":""},{"Id":25877,"Name":"","CurseForge":"elemental-wolf","Modrinth":""},{"Id":25879,"Name":"","CurseForge":"draconic-codex-expansion-of-the-ancient-tome-from-quark","Modrinth":""},{"Id":25880,"Name":"","CurseForge":"interbridge","Modrinth":""},{"Id":25881,"Name":"","CurseForge":"uprising-project-shinobi","Modrinth":""},{"Id":25882,"Name":"","CurseForge":"human-encounters","Modrinth":""},{"Id":25883,"Name":"","CurseForge":"the-witch-hut","Modrinth":"the-witch-hut"},{"Id":25884,"Name":"龙之生存:冰火兼容 (Dragon Survival: IAF Integration)","CurseForge":"dragon-survival-iaf-integration","Modrinth":"dragon-survival-iaf-integration"},{"Id":25885,"Name":"","CurseForge":"","Modrinth":"linuxssh"},{"Id":25886,"Name":"","CurseForge":"better-combat-heavier-weapons","Modrinth":""},{"Id":25888,"Name":"藿香 (Ageratum)","CurseForge":"ageratum","Modrinth":"ageratum"},{"Id":25889,"Name":"","CurseForge":"fakedate","Modrinth":"fakedate"},{"Id":25890,"Name":"","CurseForge":"","Modrinth":"aether-bedrock-mobs"},{"Id":25891,"Name":"","CurseForge":"","Modrinth":"him-forge-1201"},{"Id":25892,"Name":"沉浸语音 (Channel)","CurseForge":"channel","Modrinth":"channel"},{"Id":25893,"Name":"网络包优化重制版 (Not Enough Bandwidth Legacy)","CurseForge":"not-enough-bandwidth-legacy","Modrinth":"not-enough-bandwidth-legacy(nebl)"},{"Id":25894,"Name":"","CurseForge":"epic-rpg-attribute-core","Modrinth":"xp-attribute-core"},{"Id":25895,"Name":"幻翼 (Phantoms)","CurseForge":"phantoms","Modrinth":""},{"Id":25896,"Name":"村庄革新 (Village Revolution)","CurseForge":"","Modrinth":"village_revolution"},{"Id":25897,"Name":"","CurseForge":"better-combat-toggle-on-off","Modrinth":""},{"Id":25898,"Name":"","CurseForge":"parkour-and-more","Modrinth":""},{"Id":25899,"Name":"罪业余烬:不再过多结构 (Ash Of Sin: No More Too Many Structures)","CurseForge":"ash-of-sin-no-more-too-many-structures","Modrinth":""},{"Id":25900,"Name":"","CurseForge":"the-between","Modrinth":"the-between"},{"Id":25901,"Name":"进化防御塔 (Evolutionary Defense Tower)","CurseForge":"evolutionary-defense-tower","Modrinth":"evolutionary-defense-tower"},{"Id":25902,"Name":"","CurseForge":"the-zoomify-mod","Modrinth":"zoomify!"},{"Id":25903,"Name":"起源 (NeoForge) (Origins (NeoForge))","CurseForge":"origins-neoforge","Modrinth":"origins-neoforge"},{"Id":25904,"Name":"","CurseForge":"lovecraft-boyfriends-3","Modrinth":""},{"Id":25905,"Name":"","CurseForge":"saddlebag-wolf-bag-pet-backpack-companion-utility","Modrinth":"saddlebag"},{"Id":25906,"Name":"","CurseForge":"rpg-attribute-system","Modrinth":"rpg-attribute-system"},{"Id":25907,"Name":"","CurseForge":"rpg-mob-leveling-system","Modrinth":"rpg-mob-leveling-system"},{"Id":25908,"Name":"","CurseForge":"robotica","Modrinth":"robotica"},{"Id":25909,"Name":"筋斗云 (Nuvem Voadora (Flying Cloud))","CurseForge":"nuvem-voadora-flying-cloud","Modrinth":""},{"Id":25910,"Name":"","CurseForge":"better-with-gold","Modrinth":"better-with-gold"},{"Id":25911,"Name":"","CurseForge":"","Modrinth":"mphone"},{"Id":25912,"Name":"我的配置 (MineConf)","CurseForge":"mineconf","Modrinth":"mineconf"},{"Id":25913,"Name":"","CurseForge":"","Modrinth":"blazesdl"},{"Id":25914,"Name":"","CurseForge":"epic-armor-visibility","Modrinth":"epic-armor-visibility"},{"Id":25915,"Name":"灵动提示框 (ColorTooltips)","CurseForge":"colortooltips","Modrinth":"colortooltips"},{"Id":25916,"Name":"","CurseForge":"neoi","Modrinth":"neoi"},{"Id":25917,"Name":"森罗物语:动态结构 (Kaleidoscope Contraption)","CurseForge":"kaleidoscope-contraption","Modrinth":"kaleidoscope-contraption"},{"Id":25918,"Name":"","CurseForge":"musical-foxes","Modrinth":"musical-foxes"},{"Id":25919,"Name":"瞳术槽位 (Dojutsu Slot)","CurseForge":"dojutsu-slot","Modrinth":""},{"Id":25920,"Name":"","CurseForge":"better-arachnophobia","Modrinth":"better-arachnophobia"},{"Id":25921,"Name":"","CurseForge":"orespawn-boss","Modrinth":""},{"Id":25922,"Name":"","CurseForge":"immersive-horse-riding","Modrinth":"immersive-horse-riding"},{"Id":25923,"Name":"","CurseForge":"camcord-reforged","Modrinth":""},{"Id":25924,"Name":"","CurseForge":"the-gingerbread-house","Modrinth":"the-gingerbread-house"},{"Id":25925,"Name":"","CurseForge":"the-fisherman-house","Modrinth":"the-fisherman-house"},{"Id":25926,"Name":"","CurseForge":"carry-on-back","Modrinth":""},{"Id":25927,"Name":"","CurseForge":"clone-minerador-clone-miner","Modrinth":""},{"Id":25928,"Name":"","CurseForge":"zombies-eat-animals","Modrinth":"zombies-eat-animals"},{"Id":25929,"Name":"","CurseForge":"the-lost-city","Modrinth":"the-lost-city-by-berezka"},{"Id":25930,"Name":"","CurseForge":"much-more-dungeons","Modrinth":""},{"Id":25931,"Name":"","CurseForge":"patchouli-library","Modrinth":"patchouli-library"},{"Id":25932,"Name":"","CurseForge":"weather-refined","Modrinth":"weatherrefind"},{"Id":25933,"Name":"死亡回溯 (Death Rewind)","CurseForge":"","Modrinth":"death-rewind"},{"Id":25934,"Name":"","CurseForge":"death-keeper","Modrinth":"death-keeper"},{"Id":25935,"Name":"","CurseForge":"quickshot","Modrinth":"quickshot"},{"Id":25936,"Name":"","CurseForge":"powerborne-heroes","Modrinth":"powerborne-heroes"},{"Id":25937,"Name":"","CurseForge":"magic-reborn","Modrinth":""},{"Id":25938,"Name":"","CurseForge":"excessive-utilities","Modrinth":"excessive-utilities"},{"Id":25939,"Name":"","CurseForge":"kimetsucraft-kc","Modrinth":""},{"Id":25940,"Name":"","CurseForge":"curiosities-syndicate","Modrinth":"curiosities-syndicate"},{"Id":25941,"Name":"","CurseForge":"neurolib","Modrinth":"neurolib"},{"Id":25942,"Name":"","CurseForge":"mlp-boss","Modrinth":""},{"Id":25943,"Name":"","CurseForge":"neoorigins","Modrinth":"neo-origins"},{"Id":25944,"Name":"","CurseForge":"berezka-library","Modrinth":"berezkas-library"},{"Id":25945,"Name":"","CurseForge":"epic-structures-dungeons","Modrinth":"epic-structures-dungeons"},{"Id":25946,"Name":"","CurseForge":"","Modrinth":"morphica"},{"Id":25947,"Name":"","CurseForge":"particull","Modrinth":"particull"},{"Id":25948,"Name":"","CurseForge":"ticktact","Modrinth":"ticktact"},{"Id":25949,"Name":"","CurseForge":"optileaves","Modrinth":"optileaves"},{"Id":25949,"Name":"","CurseForge":"","Modrinth":"optileaves(fabric)"},{"Id":25950,"Name":"","CurseForge":"lost-trinkets-renewed","Modrinth":""},{"Id":25951,"Name":"退出前确认:复生 (QuitOrNot Revived)","CurseForge":"","Modrinth":"quitornot-revived"},{"Id":25952,"Name":"超越维度:集成扩展 (Beyond: Integration)","CurseForge":"beyond-integration","Modrinth":"beyondintegration"},{"Id":25952,"Name":"超越维度:集成扩展 (Beyond: Integration) - 仅存档","CurseForge":"","Modrinth":"beyondcmd-extension"},{"Id":25953,"Name":"UI缓存覆载 (GUI Cache Reuse)","CurseForge":"","Modrinth":"guioptimizer"},{"Id":25954,"Name":"CNPC:脚本系统扩展 (CNPC: Dangerous Script Extension)","CurseForge":"","Modrinth":"cnpc-dangerous-script-extension"},{"Id":25955,"Name":"建筑非官方版 (BuildCraft UNOFFICIAL)","CurseForge":"buildcraft-unofficial","Modrinth":"buildcraft-unofficial"},{"Id":25956,"Name":"地毯-LIR拓展 (Carpet LIR Addition)","CurseForge":"carpet-lir-addition","Modrinth":"carpet-lir-addition"},{"Id":25957,"Name":"抗争证明 (Mark of Revolution)","CurseForge":"slave-mark","Modrinth":""},{"Id":25958,"Name":"幻境神话 (Elder Tales)","CurseForge":"","Modrinth":"elder-tales"},{"Id":25959,"Name":"摸摸头 (Headpats)","CurseForge":"headpats","Modrinth":""},{"Id":25960,"Name":"傀儡装配-奥法魔像 (Golem Magicka)","CurseForge":"golem-magicka","Modrinth":"golem-magicka"},{"Id":25961,"Name":"","CurseForge":"sword-parry-enchant","Modrinth":"parry-enchant"},{"Id":25962,"Name":"","CurseForge":"golemera","Modrinth":""},{"Id":25963,"Name":"","CurseForge":"the-imitator","Modrinth":""},{"Id":25964,"Name":"","CurseForge":"cyberware-visible-modifications","Modrinth":"cyberware-visible-modifications"},{"Id":25965,"Name":"构印师匠 (Structure Crafter)","CurseForge":"structure-crafter","Modrinth":"structure-crafter"},{"Id":25966,"Name":"","CurseForge":"pop-up-emotes","Modrinth":"pop-up-emotes"},{"Id":25968,"Name":"","CurseForge":"ice-and-fire-dragonsteel","Modrinth":""},{"Id":25969,"Name":"","CurseForge":"overgeared-ice-and-fire-edition","Modrinth":""},{"Id":25970,"Name":"","CurseForge":"overgeared-spartan","Modrinth":""},{"Id":25972,"Name":"","CurseForge":"loot-sentinel","Modrinth":"loot-sentinel"},{"Id":25973,"Name":"","CurseForge":"legendary-titles","Modrinth":"legendary-titles"},{"Id":25974,"Name":"","CurseForge":"weapon-rarity\\","Modrinth":"epic-rpg-weapon-rarity"},{"Id":25975,"Name":"","CurseForge":"party-hud","Modrinth":"party-hud"},{"Id":25976,"Name":"","CurseForge":"rpg-class-artifacts","Modrinth":"rpg-class-artifacts"},{"Id":25977,"Name":"","CurseForge":"average-dps","Modrinth":"average-dps"},{"Id":25978,"Name":"","CurseForge":"xp-dungeon-blocks","Modrinth":"unique-dungeon-blocks"},{"Id":25979,"Name":"异步日志 (Async Logger)","CurseForge":"asynclogger","Modrinth":"asynclogger"},{"Id":25980,"Name":"","CurseForge":"legacy-image-maps","Modrinth":""},{"Id":25981,"Name":"","CurseForge":"first-person-body","Modrinth":""},{"Id":25982,"Name":"","CurseForge":"realistic-rowing","Modrinth":"realistic-rowing"},{"Id":25983,"Name":"末地铁块不生成末影人 (EndermanNoSpawnIron)","CurseForge":"","Modrinth":"endermannospawniron"},{"Id":25984,"Name":"","CurseForge":"star-technology-core","Modrinth":""},{"Id":25985,"Name":"","CurseForge":"siegeweapons","Modrinth":"siegeweapons"},{"Id":25986,"Name":"Jerotes村庄的掠夺 (Jerotes Village's Pillage)","CurseForge":"jerotes-villages-pillage","Modrinth":"jerotes-villages-pillage"},{"Id":25987,"Name":"像素原神 (Minegenshin)","CurseForge":"","Modrinth":"minegenshin"},{"Id":25988,"Name":"","CurseForge":"leveling-rank","Modrinth":"epic-rpg-leveling-rank"},{"Id":25989,"Name":"无尽的后室 (Endless Backrooms)","CurseForge":"","Modrinth":"endless_backrooms"},{"Id":25990,"Name":"","CurseForge":"sbw-electronic-countermeasure-force","Modrinth":""},{"Id":25991,"Name":"功能性存储非官方延续版 (Functional Storage Unofficial Extended Life)","CurseForge":"functional-storage-unofficial-extended-life","Modrinth":""},{"Id":25992,"Name":"","CurseForge":"spell-wheel-pages","Modrinth":""},{"Id":25993,"Name":"","CurseForge":"create-utilities-unofficial-port","Modrinth":""},{"Id":25994,"Name":"","CurseForge":"froggyincntrlcont","Modrinth":"froggyincntrlcont"},{"Id":25995,"Name":"","CurseForge":"where-are-my-translations","Modrinth":"where-are-my-translations"},{"Id":25996,"Name":"","CurseForge":"wear-anything","Modrinth":""},{"Id":25997,"Name":"","CurseForge":"transformacoes-sun-wukong","Modrinth":""},{"Id":25998,"Name":"","CurseForge":"atmosfera-neo","Modrinth":""},{"Id":26000,"Name":"","CurseForge":"litewers-ai-girlfriend-gf","Modrinth":"litewers-ai-girlfriend-(gf)"},{"Id":26001,"Name":"驱动工艺:重织 (Trackwork Refabricated)","CurseForge":"trackwork-refabricated","Modrinth":"trackwork-refabricated"},{"Id":26002,"Name":"Victus非官方1.21.1NeoForge版本","CurseForge":"","Modrinth":"victus-neoforge-unofficial"},{"Id":26003,"Name":"最终之剑:重制版 (The Last Sword You Will Ever Need: Remastered)","CurseForge":"the-last-sword-you-will-ever-need-remastered","Modrinth":"the-last-sword-you-will-ever-need-remastered"},{"Id":26004,"Name":"高级战斗:重制 (Advanced Combat: Re)","CurseForge":"advanced-combat-re","Modrinth":"advanced-combat-re"},{"Id":26005,"Name":"更真实的用餐 (Realistic Dining)","CurseForge":"realisticdining","Modrinth":"realisticdining"},{"Id":26006,"Name":"更多的食物 (A Better Foods)","CurseForge":"a-better-foods","Modrinth":"a-better-foods"},{"Id":26007,"Name":"禁用饥饿值 (Ban Hunger Value)","CurseForge":"ban-hunger-value","Modrinth":"ban-hunger-value"},{"Id":26008,"Name":"三角洲乐事 (Delta's Delight)","CurseForge":"delta-delight","Modrinth":"delta-delight"},{"Id":26009,"Name":"更多稀有度 (More Rarities)","CurseForge":"more-rarities","Modrinth":"more-rarities"},{"Id":26010,"Name":"","CurseForge":"time-in-a-bottle-fix-tiab-fix","Modrinth":"time-in-a-bottle-fix-tiab-fix"},{"Id":26012,"Name":"手持物品描边 (Item Glint)","CurseForge":"item-glint","Modrinth":"item-glint"},{"Id":26013,"Name":"","CurseForge":"","Modrinth":"mc-273265_fix"},{"Id":26014,"Name":"","CurseForge":"sbw-colorized","Modrinth":"sbw-colorized!"},{"Id":26015,"Name":"","CurseForge":"fading-time","Modrinth":""},{"Id":26016,"Name":"","CurseForge":"","Modrinth":"customnpcs-sortplus"},{"Id":26017,"Name":"","CurseForge":"","Modrinth":"customnpcs-crafting-view"},{"Id":26018,"Name":"","CurseForge":"survival-monitor","Modrinth":"survival-monitor"},{"Id":26020,"Name":"","CurseForge":"wmd","Modrinth":""},{"Id":26021,"Name":"","CurseForge":"","Modrinth":"more-xp-more-hp"},{"Id":26022,"Name":"","CurseForge":"the-age-of-engender","Modrinth":""},{"Id":26023,"Name":"","CurseForge":"yumemigusa","Modrinth":"yumemigusa"},{"Id":26024,"Name":"","CurseForge":"mineberkcraft","Modrinth":""},{"Id":26025,"Name":"","CurseForge":"armor-poser","Modrinth":"armor-poser"},{"Id":26026,"Name":"","CurseForge":"treeliable","Modrinth":"treeliable"},{"Id":26029,"Name":"","CurseForge":"better-caravans","Modrinth":"better-caravans"},{"Id":26030,"Name":"","CurseForge":"dragonminez","Modrinth":"dragonminez"},{"Id":26032,"Name":"无尽防御升级 (Avaritia Armor Upgrade)","CurseForge":"avaritia-armor-upgrade","Modrinth":""},{"Id":26033,"Name":"无青金石 (No Lapis Lazuli)","CurseForge":"no-lapis-lazuli","Modrinth":"no-lapis-lazuli"},{"Id":26034,"Name":"","CurseForge":"stronger-structures","Modrinth":""},{"Id":26035,"Name":"","CurseForge":"warning","Modrinth":"warning"},{"Id":26036,"Name":"机械动力:传送带烧烤 (Create: BBQ Belt)","CurseForge":"create-bbq-belt","Modrinth":""},{"Id":26037,"Name":"","CurseForge":"shogi","Modrinth":""},{"Id":26038,"Name":"奥术饰品 (MnA: Arcane Adornment)","CurseForge":"mna-arcane-adornment","Modrinth":""},{"Id":26039,"Name":"游戏内日志显示 (In-game Log Display)","CurseForge":"","Modrinth":"in-game-log-display"},{"Id":26040,"Name":"","CurseForge":"kindred-legacy","Modrinth":""},{"Id":26040,"Name":"","CurseForge":"pokemonmd-disciples-of-corruption","Modrinth":""},{"Id":26041,"Name":"鞘翅跳 (ElytraJump)","CurseForge":"","Modrinth":"elytra-jump"},{"Id":26042,"Name":"","CurseForge":"dynamic-trees-universal-compat","Modrinth":""},{"Id":26043,"Name":"","CurseForge":"","Modrinth":"tellus"},{"Id":26044,"Name":"","CurseForge":"malice-and-mischief","Modrinth":""},{"Id":26045,"Name":"","CurseForge":"insight-ui","Modrinth":"insight-ui"},{"Id":26046,"Name":"","CurseForge":"project-mmo-xp-bottles","Modrinth":"project-mmo-xp-bottles"},{"Id":26047,"Name":"","CurseForge":"swing-through-grass","Modrinth":"swing-through-grass"},{"Id":26048,"Name":"","CurseForge":"apothic-extensions","Modrinth":""},{"Id":26049,"Name":"","CurseForge":"simply-tents","Modrinth":"simply-tents"},{"Id":26050,"Name":"","CurseForge":"floral-tonics-tinctures","Modrinth":"floral-tonics-and-tinctures"},{"Id":26051,"Name":"终末-归寄万物骑乘附加 (E-PCA Ride Addon)","CurseForge":"epca-ride-addon","Modrinth":"epca-ride-addon"},{"Id":26052,"Name":"","CurseForge":"mekanism-pipez-fix","Modrinth":"mekanism-pipez-fix"},{"Id":26053,"Name":"","CurseForge":"","Modrinth":"burvys-zombies"},{"Id":26054,"Name":"诡厄巫法Fabric版 (Goety-Fabric)","CurseForge":"goety-fabric","Modrinth":"goety-fabric"},{"Id":26055,"Name":"J村的掠夺 (JV's Pillage)","CurseForge":"jvs-pillage","Modrinth":"jvs-pillage"},{"Id":26057,"Name":"","CurseForge":"xp-farming","Modrinth":"xp-farming"},{"Id":26058,"Name":"","CurseForge":"simply-bows","Modrinth":"simply-bows"},{"Id":26059,"Name":"","CurseForge":"synesthesia","Modrinth":"synesthesia"},{"Id":26060,"Name":"","CurseForge":"create-solar-powered","Modrinth":"create-solar-powered"},{"Id":26062,"Name":"龙咒异闻录渲染API (DC Render API)","CurseForge":"dc-render-api","Modrinth":"dc-render-api"},{"Id":26063,"Name":"龙咒异闻录 (Dragon Curse Chronicles)","CurseForge":"dragon-curse-chronicles","Modrinth":"dragon-curse-chronicles"},{"Id":26064,"Name":"","CurseForge":"koifees-mobs","Modrinth":""},{"Id":26065,"Name":"","CurseForge":"","Modrinth":"vanilla-constructs"},{"Id":26066,"Name":"","CurseForge":"ice-and-fire-curios-and-trinkets","Modrinth":"ice-and-fire-curios-and-trinkets"},{"Id":26068,"Name":"JEI迅速复制 (JEI Swift Copy)","CurseForge":"jei-swift-copy","Modrinth":""},{"Id":26069,"Name":"","CurseForge":"create-rns","Modrinth":"create-rns"},{"Id":26070,"Name":"机械动力:图形工艺 (Create: Shape Craft)","CurseForge":"create-shape-craft","Modrinth":"create-shape-craft"},{"Id":26071,"Name":"网络包优化Fabric版 (Not Enough Bandwidth Fabric)","CurseForge":"","Modrinth":"notenoughbandwidthfabric"},{"Id":26072,"Name":"玻璃盔甲 (Glass Armor)","CurseForge":"","Modrinth":"glass-armor"},{"Id":26073,"Name":"","CurseForge":"dmzkiattacks","Modrinth":"dmzkiattacks"},{"Id":26074,"Name":"","CurseForge":"sorttochests","Modrinth":""},{"Id":26075,"Name":"","CurseForge":"petrescue","Modrinth":""},{"Id":26076,"Name":"简易帐篷:黑名单 (Simply Tents Blacklist)","CurseForge":"simply-tents-blacklist","Modrinth":"simply-tents-blacklist"},{"Id":26077,"Name":"","CurseForge":"leashall","Modrinth":"leashall"},{"Id":26078,"Name":"","CurseForge":"auto-swap","Modrinth":"autoswap"},{"Id":26079,"Name":"","CurseForge":"","Modrinth":"reset-villager-trades"},{"Id":26080,"Name":"机械动力火炮:增强型弹药 (CBC Enchanced Shells)","CurseForge":"cbc-enchanced-shells-create-big-cannons","Modrinth":""},{"Id":26081,"Name":"","CurseForge":"xnet-additions","Modrinth":""},{"Id":26083,"Name":"","CurseForge":"zcraft-stalker-pda","Modrinth":""},{"Id":26084,"Name":"","CurseForge":"shellbound-for-airship","Modrinth":"shellbound-for-airship"},{"Id":26085,"Name":"","CurseForge":"integrated-seven-seas","Modrinth":"integrated-seven-seas"},{"Id":26086,"Name":"","CurseForge":"integrated-dungeons-arise","Modrinth":""},{"Id":26087,"Name":"","CurseForge":"damagesource-is-not-null","Modrinth":"damagesource-is-not-null"},{"Id":26088,"Name":"","CurseForge":"caps-awim-tactical-gear","Modrinth":""},{"Id":26089,"Name":"","CurseForge":"caps-awim-s-tactical-equipment","Modrinth":"caps_awim%60s-tactical-equipment-1.20.1-1.16.5"},{"Id":26090,"Name":"FPV无人机 (Drone FPV)","CurseForge":"drone-fpv","Modrinth":"fpv-drone"},{"Id":26091,"Name":"","CurseForge":"gabous-libs","Modrinth":"gabous-libs"},{"Id":26093,"Name":"","CurseForge":"sitoneverything","Modrinth":"sitoneverything"},{"Id":26094,"Name":"","CurseForge":"epic-tnt-mod","Modrinth":"epic-tnt-mod"},{"Id":26095,"Name":"","CurseForge":"the-body-boosts","Modrinth":"the-body-boosts"},{"Id":26096,"Name":"未来科技:装备 (F-Tech: Equipment)","CurseForge":"f-tech-equipment#project-logo","Modrinth":"f-tech-equipment"},{"Id":26097,"Name":"","CurseForge":"jujutsu-kaisen-ultimate-zenith","Modrinth":""},{"Id":26099,"Name":"","CurseForge":"terramity-paisleys-summoning","Modrinth":"paisleys-summoning"},{"Id":26100,"Name":"森罗物语:次元酒窖 (Kaleidoscope Dimensions Wine)","CurseForge":"kaleidoscope-dimensions-wine","Modrinth":"kaleidoscopedimensions-wine"},{"Id":26101,"Name":"","CurseForge":"betterlan","Modrinth":"betterlan"},{"Id":26102,"Name":"","CurseForge":"flys-config-lib","Modrinth":"flys-config-lib"},{"Id":26103,"Name":"比狼好 [现代化移植] (Better Than Wolves [MODERN PORT])","CurseForge":"better-than-wolves-modern-port","Modrinth":""},{"Id":26104,"Name":"","CurseForge":"microdurability-maintained","Modrinth":"microdurability-maintained"},{"Id":26105,"Name":"","CurseForge":"windy-forge-port","Modrinth":""},{"Id":26106,"Name":"","CurseForge":"recycling-arrows","Modrinth":"recycling-arrow"},{"Id":26107,"Name":"","CurseForge":"back-tools-modern","Modrinth":""},{"Id":26108,"Name":"","CurseForge":"dark-fantasy-nordic-tombs","Modrinth":"dark-fantasy-nordic-tombs"},{"Id":26109,"Name":"","CurseForge":"bee-gui","Modrinth":"bee-gui"},{"Id":26110,"Name":"","CurseForge":"envelope","Modrinth":"envelope"},{"Id":26111,"Name":"","CurseForge":"","Modrinth":"windy"},{"Id":26112,"Name":"更多熔炉(Fabric & NeoForge) (Iron Furnaces (Fabric & NeoForge))","CurseForge":"iron-furnaces-fabric-neoforge","Modrinth":""},{"Id":26113,"Name":"更多潜影盒(Fabric & NeoForge) (Iron Shulkers (Fabric & NeoForge))","CurseForge":"iron-shulkers","Modrinth":""},{"Id":26114,"Name":"更多箱子(Fabric 版) (Iron Chests (Fabric Edition))","CurseForge":"iron-chests-fabric-edition","Modrinth":""},{"Id":26115,"Name":"","CurseForge":"","Modrinth":"piggy-lib"},{"Id":26116,"Name":"","CurseForge":"dungeons-and-villages-deeper-and-darker","Modrinth":"dungeons-and-villages-deeper-and-darker"},{"Id":26117,"Name":"","CurseForge":"spring-to-life-backport","Modrinth":"spring-to-life-backport"},{"Id":26118,"Name":"","CurseForge":"tricky-trials-backport","Modrinth":"tricky-trials-backport"},{"Id":26119,"Name":"","CurseForge":"dark-fantasy-church-of-sin-vanilla","Modrinth":"dark-fantasy-church-of-sin-vanilla"},{"Id":26120,"Name":"","CurseForge":"ipv2","Modrinth":""},{"Id":26121,"Name":"潮汐观测卡 (Tidal Observation Card)","CurseForge":"tidal-observation-card","Modrinth":"tidal-observation-card"},{"Id":26122,"Name":"西瓜发电 (Watermelon Power)","CurseForge":"watermelon-power","Modrinth":"watermelon_power"},{"Id":26123,"Name":"南瓜前夜 (Pumpkin Eve)","CurseForge":"","Modrinth":"pumpkineve"},{"Id":26127,"Name":"","CurseForge":"bblib","Modrinth":"bluebirdlib"},{"Id":26128,"Name":"一键搬空 (Drop Container Contents)","CurseForge":"drop-container-contents","Modrinth":""},{"Id":26129,"Name":"","CurseForge":"","Modrinth":"exploitpreventer"},{"Id":26130,"Name":"","CurseForge":"hats-classic","Modrinth":""},{"Id":26131,"Name":"sal_fish的附魔 (sal_fish's enchantments)","CurseForge":"sal-fishs-enchantments","Modrinth":""},{"Id":26132,"Name":"sal_fish的hud (sal_fish's hud)","CurseForge":"sal-fishs-hud","Modrinth":""},{"Id":26133,"Name":"电波通讯 (Broadcast Radio)","CurseForge":"broadcast-radio","Modrinth":"broadcast-radio"},{"Id":26136,"Name":"","CurseForge":"roaring","Modrinth":"roaring"},{"Id":26137,"Name":"","CurseForge":"symformers","Modrinth":"symformers"},{"Id":26139,"Name":"","CurseForge":"mrfegs-image-frame","Modrinth":"mrfegs-image-frame"},{"Id":26140,"Name":"月 (Tsuki)","CurseForge":"tsuki","Modrinth":""},{"Id":26141,"Name":"","CurseForge":"","Modrinth":"bookfiller"},{"Id":26142,"Name":"","CurseForge":"","Modrinth":"files-njs"},{"Id":26143,"Name":"灵灾附属:异域 (Malstone)","CurseForge":"malstone","Modrinth":"malstone"},{"Id":26144,"Name":"","CurseForge":"jei-want-that","Modrinth":""},{"Id":26145,"Name":"","CurseForge":"dragonmine-z-super","Modrinth":"dragonmine-z-super"},{"Id":26147,"Name":"","CurseForge":"unified-combat","Modrinth":""},{"Id":26148,"Name":"","CurseForge":"artificers-armory","Modrinth":"artificers-armory"},{"Id":26149,"Name":"","CurseForge":"sweets-delight","Modrinth":""},{"Id":26150,"Name":"","CurseForge":"tweaks-delight","Modrinth":"tweaks-delight"},{"Id":26152,"Name":"","CurseForge":"simple-snowy-fix-forge-fabric","Modrinth":"simple-snowy-fix-(forge-fabric)"},{"Id":26154,"Name":"","CurseForge":"enchanting-plus-classic","Modrinth":""},{"Id":26155,"Name":"","CurseForge":"universal-portals","Modrinth":""},{"Id":26156,"Name":"","CurseForge":"oculus-for-simpleclouds","Modrinth":""},{"Id":26158,"Name":"云北城建 (Yunbei Urban Construction)","CurseForge":"","Modrinth":"yunbeiuc"},{"Id":26159,"Name":"","CurseForge":"log-deduplicator","Modrinth":""},{"Id":26161,"Name":"","CurseForge":"project-atmosphere","Modrinth":"project-atmosphere"},{"Id":26162,"Name":"","CurseForge":"","Modrinth":"happy-ghast-shoot"},{"Id":26163,"Name":"","CurseForge":"naming-unconvention","Modrinth":""},{"Id":26164,"Name":"神化本地化 (Apotheosis Localized)","CurseForge":"apotheosis-localized","Modrinth":""},{"Id":26165,"Name":"","CurseForge":"kotlinlangforge","Modrinth":"kotlin-lang-forge"},{"Id":26167,"Name":"","CurseForge":"ntm-space-plus","Modrinth":""},{"Id":26168,"Name":"以音定著 (Enchantment Library Compat)","CurseForge":"enchantment-library-compat","Modrinth":""},{"Id":26169,"Name":"","CurseForge":"tacz-magazines","Modrinth":""},{"Id":26170,"Name":"","CurseForge":"the-beyond","Modrinth":"the-beyond"},{"Id":26171,"Name":"","CurseForge":"glowtools","Modrinth":"glowtools"},{"Id":26172,"Name":"","CurseForge":"enchantment-level-cap-indicator","Modrinth":"enchantment-level-cap-indicator"},{"Id":26173,"Name":"更多材料:重生 (MoreMaterials Reborn)","CurseForge":"morematerials-reborn","Modrinth":"morematerials-reborn"},{"Id":26174,"Name":"","CurseForge":"ranking-list","Modrinth":""},{"Id":26175,"Name":"","CurseForge":"earth-and-water","Modrinth":"earth-and-water"},{"Id":26176,"Name":"","CurseForge":"botany-pots-fps-fix","Modrinth":""},{"Id":26177,"Name":"","CurseForge":"nikos-backported-lush-cave","Modrinth":""},{"Id":26178,"Name":"怪物肢解(Fabric & NeoForge) (Mob Dismemberment (Fabric & NeoForge))","CurseForge":"mob-dismemberment-fabric-neoforge","Modrinth":""},{"Id":26179,"Name":"","CurseForge":"","Modrinth":"the-morbid-reengaged"},{"Id":26180,"Name":"","CurseForge":"item-scrapper","Modrinth":""},{"Id":26181,"Name":"","CurseForge":"random-tnt-adds-4-useless-tnt-blocks","Modrinth":""},{"Id":26183,"Name":"","CurseForge":"au-naturel-da-fishing-mod","Modrinth":""},{"Id":26184,"Name":"","CurseForge":"crafter-hologram","Modrinth":""},{"Id":26185,"Name":"","CurseForge":"village-utilities","Modrinth":""},{"Id":26186,"Name":"","CurseForge":"some-illager-servants","Modrinth":""},{"Id":26187,"Name":"","CurseForge":"cataclysm-fallingtree-compat","Modrinth":""},{"Id":26189,"Name":"","CurseForge":"fip-vips-aimoptimizer","Modrinth":""},{"Id":26190,"Name":"","CurseForge":"minepersist","Modrinth":"minepersist"},{"Id":26191,"Name":"附魔:无法破坏 (Indestructible Enchantment)","CurseForge":"indestructible-enchantment","Modrinth":"indestructible-enchantmentby-sal_fish"},{"Id":26193,"Name":"思索:遗产 (Ponder Legacy)","CurseForge":"ponder-legacy","Modrinth":"ponderlegacy"},{"Id":26194,"Name":"光标样式回植 (Cursor Backport)","CurseForge":"","Modrinth":"cursor-backport"},{"Id":26195,"Name":"","CurseForge":"recurrent-complex-volts","Modrinth":"recurrent-complex-volts"},{"Id":26196,"Name":"","CurseForge":"beyond-oxygen","Modrinth":"beyond-oxygen"},{"Id":26198,"Name":"","CurseForge":"tinkers-reposession","Modrinth":""},{"Id":26199,"Name":"","CurseForge":"infinite-storage-bundle","Modrinth":""},{"Id":26200,"Name":"","CurseForge":"jei-worldgen","Modrinth":""},{"Id":26201,"Name":"自动攻击移植版 (Auto Attack Port)","CurseForge":"","Modrinth":"auto-attack-port"},{"Id":26203,"Name":"","CurseForge":"better-mob-combat-fix","Modrinth":"better-mob-combat-fix"},{"Id":26204,"Name":"语言魔法 (Spelled)","CurseForge":"spelled","Modrinth":"spelled"},{"Id":26205,"Name":"","CurseForge":"krypton-hybrid","Modrinth":""},{"Id":26207,"Name":"生灵食性 (Nature's Appetite)","CurseForge":"natures-appetite","Modrinth":"natures-appetite"},{"Id":26208,"Name":"米西娅的魔法金属扩展 (Misia's ManaMetalMod Extension)","CurseForge":"","Modrinth":"misias-manametalmod-extension"},{"Id":26209,"Name":"饱腹远行 (Hunger Begone)","CurseForge":"hunger-begone","Modrinth":"hunger-begone"},{"Id":26210,"Name":"","CurseForge":"the-boreal","Modrinth":"the-boreal"},{"Id":26211,"Name":"","CurseForge":"kerria","Modrinth":""},{"Id":26212,"Name":"","CurseForge":"cc-complementary-core","Modrinth":"cc-complementary-core"},{"Id":26213,"Name":"","CurseForge":"cs-towers","Modrinth":""},{"Id":26214,"Name":"","CurseForge":"vista-all-the-cassettes","Modrinth":"vista-all-the-cassettes"},{"Id":26215,"Name":"","CurseForge":"the-silver-age","Modrinth":"the-silver-age"},{"Id":26216,"Name":"工业先锋:更多升级插件 (Industrial Foregoing: More Upgrade Plugins)","CurseForge":"industrial-foregoing-more-upgrade-plugins","Modrinth":"industrial-foregoingmore-upgrade-plugins"},{"Id":26217,"Name":"","CurseForge":"biome-golems","Modrinth":"biome-golems"},{"Id":26218,"Name":"","CurseForge":"kittycat","Modrinth":"kittycat"},{"Id":26219,"Name":"","CurseForge":"","Modrinth":"forcegl4.0"},{"Id":26220,"Name":"","CurseForge":"kpk","Modrinth":""},{"Id":26221,"Name":"通用机动:蒸汽机 (CreateMek Steam)","CurseForge":"createmek-steam","Modrinth":""},{"Id":26222,"Name":"","CurseForge":"tacz-magic-bullet","Modrinth":""},{"Id":26223,"Name":"","CurseForge":"immersivethunder-legacy","Modrinth":""},{"Id":26224,"Name":"","CurseForge":"megablocked-unofficial-remake","Modrinth":"megablocked-unofficial-remake"},{"Id":26225,"Name":"","CurseForge":"ouro-tweaker","Modrinth":"ouro-tweaker"},{"Id":26226,"Name":"没有钓鱼等待 (No Fishing Delays)","CurseForge":"no-fishing-delays","Modrinth":""},{"Id":26227,"Name":"","CurseForge":"item-scrapper-pack-tacz","Modrinth":""},{"Id":26228,"Name":"","CurseForge":"","Modrinth":"real-nicknames"},{"Id":26229,"Name":"","CurseForge":"","Modrinth":"raccoons-rabies"},{"Id":26230,"Name":"","CurseForge":"infernaddon","Modrinth":""},{"Id":26231,"Name":"空袭指示器 (AirstrikePointers)","CurseForge":"","Modrinth":"airstrikepointers"},{"Id":26232,"Name":"","CurseForge":"gatewaysjs","Modrinth":""},{"Id":26233,"Name":"","CurseForge":"witheria","Modrinth":""},{"Id":26234,"Name":"","CurseForge":"simply-airdrops","Modrinth":""},{"Id":26235,"Name":"","CurseForge":"malum-arma","Modrinth":""},{"Id":26236,"Name":"","CurseForge":"","Modrinth":"the-error-(horror)"},{"Id":26237,"Name":"","CurseForge":"item-scrapper-pack-armor-tools","Modrinth":""},{"Id":26238,"Name":"地毯GUI (CarpetGUI)","CurseForge":"","Modrinth":"carpetgui"},{"Id":26240,"Name":"","CurseForge":"","Modrinth":"collections-field"},{"Id":26243,"Name":"末地创世增强 (End Remastered ProMax)","CurseForge":"end-remastered-promax","Modrinth":"end-remastered-promax"},{"Id":26244,"Name":"","CurseForge":"","Modrinth":"vs-safe-and-sound"},{"Id":26245,"Name":"Jerotes村庄-傀儡装配 (Jerotes Village Golems)","CurseForge":"jerotes-village-golems","Modrinth":"jerotes-village-golems"},{"Id":26247,"Name":"","CurseForge":"item-scrapper-pack-vpb","Modrinth":""},{"Id":26248,"Name":"","CurseForge":"json-more","Modrinth":""},{"Id":26249,"Name":"","CurseForge":"","Modrinth":"splashcycle"},{"Id":26251,"Name":"","CurseForge":"citadel-neoforge","Modrinth":""},{"Id":26252,"Name":"Alex 的生物(NeoForge) (Alex's Mobs (NeoForge))","CurseForge":"alexs-mobs-neoforge","Modrinth":""},{"Id":26253,"Name":"沉浸式飞机x沉浸工程 (Immersive Aircraft x Immersive Engineering)","CurseForge":"immersive-aircraft-x-immersive-engineering","Modrinth":"immersive-aircraft-x-immersive-engineering"},{"Id":26257,"Name":"","CurseForge":"yaml-config","Modrinth":"yaml-config"},{"Id":26258,"Name":"","CurseForge":"bosscraft-respawn-unofficial-port","Modrinth":"bosscraft-unofficial-port"},{"Id":26259,"Name":"","CurseForge":"infinitylib-lighting-patch","Modrinth":""},{"Id":26260,"Name":"浮冰UI (Aura Tip)","CurseForge":"auratip","Modrinth":"auratip"},{"Id":26261,"Name":"区块加载动画:扩展版 (Chunk Animator (Expanded))","CurseForge":"chunk-animator-fabric-neoforge","Modrinth":""},{"Id":26264,"Name":"","CurseForge":"shincolle-reforge","Modrinth":""},{"Id":26266,"Name":"BOMD乐事 非官方1.21.1NeoForge分支 (Bosses Delight Unofficial 1.21.1 NeoForge)","CurseForge":"bosses-delight-unofficial-neoforge","Modrinth":""},{"Id":26267,"Name":"","CurseForge":"","Modrinth":"italians-delight-remade"},{"Id":26268,"Name":"现代工业化并行仓扩展 (Modern Industrialization Parallel Hatch)","CurseForge":"modern-industrialization-parallel-hatch","Modrinth":""},{"Id":26269,"Name":"现代工业化多槽流体仓 (Modern Industrialization Multi-Slot Fluid Hatch)","CurseForge":"modernindustrialization-multi-slot-fluid-hatch","Modrinth":"mimsf"},{"Id":26270,"Name":"","CurseForge":"infinite-items-ie","Modrinth":""},{"Id":26271,"Name":"Yet Another Bingo 队伍箱 (Yet Another Bingo - Team Chest)","CurseForge":"yet-another-bingo-team-chest","Modrinth":"yab-teamchest"},{"Id":26272,"Name":"更好的魂石 (BetterSoulStone)","CurseForge":"","Modrinth":"bettersoulstone"},{"Id":26273,"Name":"附魔:熔岩明视 (Lava Vision Enchantment)","CurseForge":"lava-vision-enchantment","Modrinth":"lava-vision-enchantment"},{"Id":26274,"Name":"","CurseForge":"modern-mob-spawn","Modrinth":""},{"Id":26275,"Name":"允用对杖 (Ambidexterity)","CurseForge":"irons-spellbooks-ambidexterity","Modrinth":""},{"Id":26276,"Name":"意志坚定:传承 (Tough As Nails: Legacy)","CurseForge":"tough-as-nails-legacy","Modrinth":""},{"Id":26279,"Name":"","CurseForge":"magic-of-color","Modrinth":"magic-of-color"},{"Id":26280,"Name":"","CurseForge":"tunes-n-tomes-a-bards-journey","Modrinth":""},{"Id":26281,"Name":"源石:材料 (Originium Materials)","CurseForge":"originium-materials","Modrinth":""},{"Id":26282,"Name":"","CurseForge":"researchd","Modrinth":"researchd"},{"Id":26283,"Name":"","CurseForge":"tacz-leaning","Modrinth":""},{"Id":26284,"Name":"","CurseForge":"tacz-dolphin-dive","Modrinth":""},{"Id":26285,"Name":"","CurseForge":"create-repair","Modrinth":"create-repair"},{"Id":26286,"Name":"机械动力:预见时间 (Create: Just Enough Time)","CurseForge":"create-just-enough-time","Modrinth":""},{"Id":26287,"Name":"应用加农炮 (AppliedCannon)","CurseForge":"","Modrinth":"appliedcannon"},{"Id":26289,"Name":"","CurseForge":"nvl-storage-blocks","Modrinth":""},{"Id":26290,"Name":"","CurseForge":"nvl-blocks","Modrinth":""},{"Id":26291,"Name":"","CurseForge":"the-sun-town","Modrinth":""},{"Id":26292,"Name":"","CurseForge":"moremousetweaks","Modrinth":"moremousetweaks"},{"Id":26293,"Name":"","CurseForge":"flys-adrenaline","Modrinth":"flys-adrenaline"},{"Id":26294,"Name":"","CurseForge":"enchanting-infuser-backport","Modrinth":""},{"Id":26295,"Name":"","CurseForge":"totem-morph","Modrinth":""},{"Id":26296,"Name":"","CurseForge":"elemental-witches-unofficial-remake","Modrinth":"elemental-witches-reborn"},{"Id":26297,"Name":"","CurseForge":"item-scrapper-pack-marbleds-arsenal","Modrinth":""},{"Id":26298,"Name":"","CurseForge":"medical-remedies","Modrinth":""},{"Id":26299,"Name":"","CurseForge":"alien-cat","Modrinth":""},{"Id":26301,"Name":"","CurseForge":"item-scrapper-pack-tacz-zc","Modrinth":""},{"Id":26302,"Name":"现代工业化并行控制仓 (Modern Industrialization Parallel Control Hatch)","CurseForge":"modernindustrialization-parallel-control-hatch","Modrinth":"mi-parallel-hatch"},{"Id":26303,"Name":"","CurseForge":"simple-build-colony","Modrinth":""},{"Id":26304,"Name":"","CurseForge":"","Modrinth":"bundled_"},{"Id":26305,"Name":"通用机械配置卡扩展 (Mekanism Config Card Upgrades)","CurseForge":"mekanism-config-card-upgrades","Modrinth":""},{"Id":26306,"Name":"潜行与警戒 (Stealth and Alert)","CurseForge":"stealth-and-alert","Modrinth":"stealth-and-alert"},{"Id":26307,"Name":"喀斯德军事附属包 (Qawsed Military Pack)","CurseForge":"iv-mts-q-m-p-qawsed-military-pack","Modrinth":"ivmts-q.m.p-qawsed-military-pack"},{"Id":26308,"Name":"附魔增强 (Enchant Enhancemen)","CurseForge":"","Modrinth":"enchant-enhancemen"},{"Id":26309,"Name":"","CurseForge":"","Modrinth":"cookie-keybind-helper"},{"Id":26311,"Name":"Obfuscate 兼容修复 (Obfuscate Lib Compatible Fix)","CurseForge":"","Modrinth":"obfuscate-lib-compatible-fix"},{"Id":26312,"Name":"可视化村民交易编辑器 (Visual Villager Trade Edit)","CurseForge":"visual-villager-trade-edit","Modrinth":"visual-villager-trade-edit"},{"Id":26314,"Name":"","CurseForge":"","Modrinth":"create-drill-backport"},{"Id":26315,"Name":"RS的自动发送信息 (RS's AutoMessage)","CurseForge":"rss-automessage","Modrinth":"rss-automessage"},{"Id":26316,"Name":"","CurseForge":"unbreakables","Modrinth":"unbreakables"},{"Id":26317,"Name":"","CurseForge":"enhanced-explosives","Modrinth":"enhanced-explosives"},{"Id":26318,"Name":"","CurseForge":"epic-fight-limbus-company-moveset","Modrinth":""},{"Id":26319,"Name":"潮汐委托 - data文件为英文 (Tidal Commission)","CurseForge":"tidal-commission","Modrinth":""},{"Id":26319,"Name":"潮汐委托 (Tidal Commission)","CurseForge":"","Modrinth":"tidal-commission"},{"Id":26320,"Name":"","CurseForge":"","Modrinth":"arsenal"},{"Id":26322,"Name":"更强的怪物 (AAA's StrongerMobs)","CurseForge":"aaas-strongermobs","Modrinth":"strongermobs"},{"Id":26323,"Name":"","CurseForge":"","Modrinth":"legacy-of-utopia"},{"Id":26324,"Name":"","CurseForge":"packcompanion","Modrinth":""},{"Id":26325,"Name":"","CurseForge":"portalmod","Modrinth":"portalmod"},{"Id":26326,"Name":"","CurseForge":"theworldbelow","Modrinth":"alpha-below"},{"Id":26329,"Name":"","CurseForge":"mc-matrix-bridge","Modrinth":"mc-matrix-bridge"},{"Id":26330,"Name":"","CurseForge":"","Modrinth":"world-importer"},{"Id":26331,"Name":"","CurseForge":"weaponsexpanded","Modrinth":"weaponsexpanded"},{"Id":26333,"Name":"物品图标导出器 (Item Icon Exporter)","CurseForge":"item-icon-exporter","Modrinth":"item-icon-exporter"},{"Id":26334,"Name":"","CurseForge":"","Modrinth":"right-click-chest-boat"},{"Id":26335,"Name":"","CurseForge":"rechests","Modrinth":"rechests"},{"Id":26336,"Name":"","CurseForge":"","Modrinth":"ratatouille"},{"Id":26337,"Name":"小铁剑 (Ttle Iron Sword)","CurseForge":"ttle-iron-sword","Modrinth":""},{"Id":26338,"Name":"战斗韧性 (CombatFlex)","CurseForge":"combatflex","Modrinth":""},{"Id":26339,"Name":"","CurseForge":"experience-remover","Modrinth":"experience-remover"},{"Id":26340,"Name":"旧梦遗物 (Dream Relics)","CurseForge":"dream-relics","Modrinth":"dream-relics"},{"Id":26341,"Name":"为了钓鱼 (RealFish)","CurseForge":"realfish","Modrinth":"realfish"},{"Id":26343,"Name":"","CurseForge":"thermodynamica","Modrinth":"thermodynamica"},{"Id":26344,"Name":"","CurseForge":"sable","Modrinth":"sable"},{"Id":26345,"Name":"狐步酿香 (Fox Trot Brew)","CurseForge":"fox-trot-brew","Modrinth":"fox-trot-brew"},{"Id":26346,"Name":"农家乐 (Farmer's Delight Legacy)","CurseForge":"farmers-delight-legacy","Modrinth":""},{"Id":26347,"Name":"事乐乐事 (Syal's Delight)","CurseForge":"","Modrinth":"syals-delight"},{"Id":26348,"Name":"","CurseForge":"create-unclamped","Modrinth":"create-unclamped"},{"Id":26349,"Name":"机械动力:坦克扩展 (Create: Tank Additions)","CurseForge":"cta","Modrinth":"cta"},{"Id":26350,"Name":"机械动力:航空学 (Create: Aeronautics)","CurseForge":"create-aeronautics","Modrinth":"create-aeronautics"},{"Id":26351,"Name":"","CurseForge":"tips-enhancement","Modrinth":""},{"Id":26352,"Name":"","CurseForge":"siege-of-settlements","Modrinth":"siege-of-settlements"},{"Id":26353,"Name":"","CurseForge":"ninshu-origins","Modrinth":"ninshu-origins-naruto-mod"},{"Id":26354,"Name":"","CurseForge":"dayspot","Modrinth":""},{"Id":26355,"Name":"","CurseForge":"aerlune-adventures","Modrinth":""},{"Id":26356,"Name":"","CurseForge":"ancient-elements-better-combat-fix","Modrinth":""},{"Id":26357,"Name":"","CurseForge":"artifex","Modrinth":""},{"Id":26358,"Name":"","CurseForge":"epic-structures-igloo","Modrinth":"epic-structures-igloo"},{"Id":26359,"Name":"Grim Kingdoms: Vanilla Edition - 仅","CurseForge":"grim-kingdoms-lost-structures-ruins-vanilla","Modrinth":""},{"Id":26359,"Name":"Grim Kingdoms: Vanilla Edition - 数据包","CurseForge":"","Modrinth":"grim-kingdoms-lost-structures-ruins-vanilla-edition"},{"Id":26360,"Name":"末地村民前哨站 (End Villager Outpost)","CurseForge":"end-villager-outpost","Modrinth":"end-villager-outpost"},{"Id":26361,"Name":"","CurseForge":"japanese-residence","Modrinth":""},{"Id":26362,"Name":"丛林树屋村庄 (Jungle Treehouse Village)","CurseForge":"jungle-treehouse-village","Modrinth":"jungle-treehouse-village"},{"Id":26363,"Name":"","CurseForge":"illager-arena","Modrinth":"illager-arena"},{"Id":26364,"Name":"","CurseForge":"beginner-survival-house","Modrinth":"beginner-survival-house"},{"Id":26365,"Name":"","CurseForge":"skeleton-ghost-ship","Modrinth":"skeleton-ghost-ship"},{"Id":26366,"Name":"","CurseForge":"animal-barn","Modrinth":""},{"Id":26367,"Name":"","CurseForge":"hobbit-house","Modrinth":""},{"Id":26368,"Name":"","CurseForge":"desert-survival-house","Modrinth":"desert-survival-house"},{"Id":26369,"Name":"","CurseForge":"villager-saloon","Modrinth":""},{"Id":26370,"Name":"巨型睡莲 (Giant Lily Pads)","CurseForge":"giant-lily-pads","Modrinth":"giant-lily-pads"},{"Id":26371,"Name":"","CurseForge":"villager-clock-tower","Modrinth":"villager-clock-tower"},{"Id":26372,"Name":"","CurseForge":"old-fisherman-swamp-house","Modrinth":"old-fisherman-swamp-house"},{"Id":26373,"Name":"","CurseForge":"giant-snowy-tree","Modrinth":"giant-snowy-tree"},{"Id":26374,"Name":"巨型红色蘑菇 (Giant Red Mushroom)","CurseForge":"giant-red-mushroom","Modrinth":"giant-red-mushroom"},{"Id":26375,"Name":"巨型棕榈树 (Giant Palm Tree)","CurseForge":"giant-palm-tree","Modrinth":"giant-palm-tree"},{"Id":26376,"Name":"巨型仙人掌 (Giant Cactus)","CurseForge":"giant-cactus","Modrinth":"giant-cactus"},{"Id":26377,"Name":"巨型棕色蘑菇 (Giant Brown Mushroom)","CurseForge":"giant-brown-mushroom","Modrinth":"giant-brown-mushroom"},{"Id":26378,"Name":"大型白桦树 (Big Birch Tree)","CurseForge":"big-birch-tree","Modrinth":"big-birch-tree"},{"Id":26379,"Name":"巨型松树 (Giant Pine Tree)","CurseForge":"giant-pine-tree","Modrinth":"giant-pine-tree"},{"Id":26380,"Name":"","CurseForge":"giant-natural-additions","Modrinth":"giant-natural-additions"},{"Id":26381,"Name":"","CurseForge":"giant-yellow-tree","Modrinth":"giant-yellow-tree"},{"Id":26382,"Name":"巨型丛林树 (Giant Jungle Tree)","CurseForge":"giant-jungle-tree","Modrinth":"giant-jungle-tree"},{"Id":26383,"Name":"森林生存树屋 (Forest Survival Treehouse)","CurseForge":"forest-survival-treehouse","Modrinth":"forest-survival-treehouse"},{"Id":26384,"Name":"巨型橡树 (Giant Oak Tree)","CurseForge":"giant-oak-tree","Modrinth":"giant-oak-tree"},{"Id":26385,"Name":"","CurseForge":"villager-gold-washing-facility","Modrinth":"villager-gold-washing-facility"},{"Id":26386,"Name":"","CurseForge":"bamboo-jungle-survival-house","Modrinth":"bamboo-jungle-survival-house"},{"Id":26387,"Name":"","CurseForge":"villager-frog-house","Modrinth":"villager-frog-house"},{"Id":26388,"Name":"","CurseForge":"cherry-grove-starter-house","Modrinth":"cherry-grove-starter-house"},{"Id":26390,"Name":"","CurseForge":"big-gift-snowglobe","Modrinth":"swamp-boat"},{"Id":26391,"Name":"","CurseForge":"snowman-house","Modrinth":"snowman-house"},{"Id":26392,"Name":"巨型圣诞树 (Giant Christmas Tree)","CurseForge":"giant-christmas-tree","Modrinth":"giant-christmas-tree"},{"Id":26393,"Name":"","CurseForge":"orc-hut","Modrinth":"orc-hut"},{"Id":26394,"Name":"","CurseForge":"villager-mushroom-house","Modrinth":"villager-mushroom-house"},{"Id":26395,"Name":"希腊村民房屋 (Greek Villager House)","CurseForge":"greek-villager-house","Modrinth":""},{"Id":26396,"Name":"海龟房屋 (Turtle House)","CurseForge":"turtle-house","Modrinth":""},{"Id":26397,"Name":"姜饼屋 (Gingerbread House)","CurseForge":"gingerbread-house","Modrinth":""},{"Id":26398,"Name":"","CurseForge":"villager-observatory","Modrinth":"villager-observatory"},{"Id":26399,"Name":"沙漠村庄神殿 (Desert Village Temple)","CurseForge":"desert-village-temple","Modrinth":""},{"Id":26400,"Name":"","CurseForge":"arcane-armaments","Modrinth":""},{"Id":26401,"Name":"村民火车站 (Villager Train Station)","CurseForge":"villager-train-station","Modrinth":"villager-train-station"},{"Id":26402,"Name":"","CurseForge":"villager-country-house","Modrinth":"villager-country-house"},{"Id":26403,"Name":"沙漠瞭望塔 (Desert Watchtower)","CurseForge":"desert-watchtower","Modrinth":""},{"Id":26404,"Name":"村民酿造厂 (Villager Brewery)","CurseForge":"villager-brewery","Modrinth":"villager-brewery"},{"Id":26405,"Name":"","CurseForge":"illager-viking-longship","Modrinth":""},{"Id":26406,"Name":"","CurseForge":"georges-flying-island","Modrinth":"georges-flying-island"},{"Id":26407,"Name":"","CurseForge":"villager-tannery-house","Modrinth":"villager-tannery-house"},{"Id":26408,"Name":"","CurseForge":"ancient-enchantment-temple","Modrinth":"ancient-enchantment-temple"},{"Id":26409,"Name":"","CurseForge":"small-mob-arena","Modrinth":""},{"Id":26410,"Name":"","CurseForge":"villager-warship","Modrinth":"villager-warship"},{"Id":26411,"Name":"","CurseForge":"villager-flower-house","Modrinth":"villager-flower-house"},{"Id":26412,"Name":"","CurseForge":"villager-fish-shop","Modrinth":"villager-fish-shop"},{"Id":26413,"Name":"巨型鸟居 (Giant Torii)","CurseForge":"giant-torii","Modrinth":"giant-torii"},{"Id":26414,"Name":"小型维京村民房屋 (Small Viking Villager House)","CurseForge":"small-viking-villager-house","Modrinth":"small-viking-villager-house"},{"Id":26415,"Name":"","CurseForge":"villager-forge","Modrinth":"villager-forge"},{"Id":26416,"Name":"","CurseForge":"llama-stable","Modrinth":"llama-stable"},{"Id":26417,"Name":"","CurseForge":"villager-butcher-house","Modrinth":"villager-butcher-house"},{"Id":26418,"Name":"","CurseForge":"villager-fishermans-hut","Modrinth":"villager-fishermans-hut"},{"Id":26419,"Name":"","CurseForge":"villager-cleric-house","Modrinth":"villager-cleric-house"},{"Id":26420,"Name":"","CurseForge":"villager-fletcher-house","Modrinth":"villager-fletcher-house"},{"Id":26421,"Name":"","CurseForge":"villager-cartographer-house","Modrinth":"villager-cartographer-house"},{"Id":26422,"Name":"","CurseForge":"villager-farmer-house","Modrinth":"villager-farmer-house"},{"Id":26423,"Name":"村民马戏团帐篷 (Villager Circus Tent)","CurseForge":"villager-circus-tent","Modrinth":"villager-circus-tent"},{"Id":26424,"Name":"大型马厩 (Big Horse Stable)","CurseForge":"big-horse-stable","Modrinth":"big-horse-stable"},{"Id":26425,"Name":"","CurseForge":"small-biome-towers","Modrinth":"small-biome-towers"},{"Id":26426,"Name":"","CurseForge":"taiga-survival-house","Modrinth":"taiga-survival-house"},{"Id":26427,"Name":"","CurseForge":"desert-pillager-wall","Modrinth":"desert-pillager-wall"},{"Id":26428,"Name":"现代村民房屋 (Modern Villager House)","CurseForge":"modern-villager-house","Modrinth":"modern-villager-house"},{"Id":26429,"Name":"","CurseForge":"mushroom-survival-house","Modrinth":"mushroom-survival-house"},{"Id":26430,"Name":"小型马车 (Small Wagons)","CurseForge":"small-wagons","Modrinth":""},{"Id":26431,"Name":"猪灵石英塔 (Piglin Quartz Tower)","CurseForge":"piglin-quartz-tower","Modrinth":"piglin-quartz-tower"},{"Id":26432,"Name":"","CurseForge":"fine-art-paintings","Modrinth":"fine-art-paintings"},{"Id":26433,"Name":"","CurseForge":"new-ambient-music","Modrinth":"new-ambient-music"},{"Id":26435,"Name":"","CurseForge":"qpack","Modrinth":""},{"Id":26436,"Name":"","CurseForge":"edenring-forge","Modrinth":""},{"Id":26437,"Name":"","CurseForge":"loot-bag-mod-renewed","Modrinth":""},{"Id":26438,"Name":"叠叠乐 (StackUpUp)","CurseForge":"stackupup","Modrinth":""},{"Id":26439,"Name":"下拉式按键绑定 (Drop-Down Keybindings)","CurseForge":"drop-down-keybindings","Modrinth":"drop-down-keybindings"},{"Id":26440,"Name":"节气:重织 (Ecliptic Seasons : Fabricated)","CurseForge":"ecliptic-seasons-fabricated","Modrinth":""},{"Id":26441,"Name":"","CurseForge":"from-the-caves-april-1st-incident","Modrinth":""},{"Id":26442,"Name":"瞳术拓展 (Dojutsu Addon)","CurseForge":"dojutsu-addon","Modrinth":""},{"Id":26443,"Name":"帕秋莉:不要这么多书 (NoMoreBook)","CurseForge":"nomorebook","Modrinth":""},{"Id":26444,"Name":"","CurseForge":"sieging-of-the-illagers","Modrinth":""},{"Id":26446,"Name":"","CurseForge":"","Modrinth":"scalable-tooltips"},{"Id":26447,"Name":"","CurseForge":"future-villager-trades-visible","Modrinth":""},{"Id":26448,"Name":"自动断连 (AutoDisconnect)","CurseForge":"autodisconnect","Modrinth":""},{"Id":26449,"Name":"","CurseForge":"dyson-cube-project-refitted","Modrinth":"dyson-cube-project-refitted"},{"Id":26450,"Name":"方块酱:怀旧版 (Blocklings: Nostalgia Edition)","CurseForge":"blocklings-nostalgia-edition","Modrinth":""},{"Id":26452,"Name":"荧光惊异 (SlashBlade:AmazingShining)","CurseForge":"slashblade-amazingshining","Modrinth":""},{"Id":26453,"Name":"御神狐之刃 (The God Fox Reborn)","CurseForge":"the-god-fox","Modrinth":""},{"Id":26454,"Name":"毕方重生 (GodBirdReborn)","CurseForge":"godbirdreborn","Modrinth":""},{"Id":26455,"Name":"巴鲁蒙格重生 (BalmungReborn)","CurseForge":"balmungreborn","Modrinth":""},{"Id":26456,"Name":"伪格雷普终境之刃·终境破晓 (Pseudo-Edge: Dawnbreaker)","CurseForge":"pseudo-edge-dawnbreaker","Modrinth":""},{"Id":26457,"Name":"刀绘卷 (SlashBlade: Egotachi)","CurseForge":"slashblade-thebladechronicles","Modrinth":""},{"Id":26458,"Name":"近距长兵·重解 (SlashBlade: ColseWeaponInSystem)","CurseForge":"slashblade-colseweaponinsystem","Modrinth":""},{"Id":26459,"Name":"","CurseForge":"sumer-mega-renderer","Modrinth":""},{"Id":26460,"Name":"","CurseForge":"class-selection-mod","Modrinth":""},{"Id":26463,"Name":"","CurseForge":"better-combat-nbt-fix","Modrinth":"better-combat-nbt-fix"},{"Id":26464,"Name":"","CurseForge":"","Modrinth":"magitech_mod"},{"Id":26465,"Name":"魔像秘经非官方版 (Gadomancy Unofficial)","CurseForge":"gadomancy-unofficial","Modrinth":""},{"Id":26466,"Name":"","CurseForge":"","Modrinth":"bosscraft-respawn-overlord"},{"Id":26468,"Name":"通用机械:实用卡 (Mekanism Card)","CurseForge":"mekanism-card","Modrinth":""},{"Id":26469,"Name":"机械动力航空学:工具枪 (Create Aeronautics: Toolgun)","CurseForge":"create-aeronauticstoolgun","Modrinth":"create-aeronautics-toolgun"},{"Id":26470,"Name":"","CurseForge":"clutterbestiary","Modrinth":"clutterbestiary"},{"Id":26472,"Name":"自定义谁是杀手 (Custom Murder Mystery)","CurseForge":"custom-murder-mystery","Modrinth":"custom-murder-mystery"},{"Id":26473,"Name":"自动翻译 (Auto Translator)","CurseForge":"autotranslator-cn","Modrinth":"autotranslator"},{"Id":26474,"Name":"","CurseForge":"what-i-wanna-show-u","Modrinth":"what-i-wanna-show-u"},{"Id":26475,"Name":"","CurseForge":"madness-mod","Modrinth":"madness_entities"},{"Id":26476,"Name":"","CurseForge":"not-so-shrimple-remolted","Modrinth":""},{"Id":26477,"Name":"","CurseForge":"","Modrinth":"peony-from-field-to-table"},{"Id":26479,"Name":"","CurseForge":"capsule-modify","Modrinth":""},{"Id":26480,"Name":"","CurseForge":"candle-blaze","Modrinth":""},{"Id":26481,"Name":"","CurseForge":"aquarius-libs","Modrinth":"aquarius-libs"},{"Id":26482,"Name":"全彩工艺 (XBRGB-DyeCraft)","CurseForge":"xbrgb-dyecraft","Modrinth":"f6YrFYJU"},{"Id":26483,"Name":"","CurseForge":"","Modrinth":"ia_engines"},{"Id":26484,"Name":"","CurseForge":"tinkers-gadgets","Modrinth":"tinkers-gadgets"},{"Id":26485,"Name":"","CurseForge":"create-twistermill","Modrinth":"create-twistermill"},{"Id":26486,"Name":"","CurseForge":"elytra-drag-new","Modrinth":""},{"Id":26487,"Name":"","CurseForge":"deepslate-dubble","Modrinth":"deepslatedubble"},{"Id":26488,"Name":"工匠御械/御严抵阵 (Tinkers Tactical Toughness)","CurseForge":"tinkers-tactical-toughness","Modrinth":""},{"Id":26489,"Name":"","CurseForge":"datafly-lib","Modrinth":"datafly-lib"},{"Id":26490,"Name":"森罗物语:暮色 (Kaleidoscope Twilight)","CurseForge":"kaleidoscope-twilight","Modrinth":"kaleidoscope-twilight"},{"Id":26491,"Name":"","CurseForge":"oculus-unofficial","Modrinth":""},{"Id":26492,"Name":"","CurseForge":"matter-overdrive-refitted","Modrinth":""},{"Id":26493,"Name":"","CurseForge":"nutrition-unofficial-extended-life-continued","Modrinth":""},{"Id":26494,"Name":"多倍掉落 (Drop Multiplier)","CurseForge":"drop-multiplier","Modrinth":""},{"Id":26495,"Name":"","CurseForge":"additional-enchantments","Modrinth":"additional-enchantments"},{"Id":26496,"Name":"","CurseForge":"wits-backport","Modrinth":""},{"Id":26497,"Name":"","CurseForge":"fights-frights","Modrinth":""},{"Id":26498,"Name":"","CurseForge":"brazilian-expansion","Modrinth":"brazilian-expansion"},{"Id":26499,"Name":"","CurseForge":"similar-prehistory","Modrinth":"similar-prehistory"},{"Id":26500,"Name":"","CurseForge":"animal-garden-snow-leopard","Modrinth":"animal-garden-snow-leopard"},{"Id":26501,"Name":"","CurseForge":"always-shield","Modrinth":"always-shield"},{"Id":26502,"Name":"","CurseForge":"simply-tooltips","Modrinth":"simply-tooltips"},{"Id":26503,"Name":"","CurseForge":"","Modrinth":"from-the-woods"},{"Id":26504,"Name":"","CurseForge":"functional-storage-downgrade-fix","Modrinth":"functional-storage-downgrade-fix"},{"Id":26505,"Name":"","CurseForge":"transform-or-morph-into-any-mobs","Modrinth":""},{"Id":26506,"Name":"投影容器填充机 (Litematica Container Filler)","CurseForge":"","Modrinth":"litematica-container-filler"},{"Id":26507,"Name":"","CurseForge":"bibliocraft-reshelved","Modrinth":""},{"Id":26508,"Name":"","CurseForge":"macaws-functional-furniture","Modrinth":""},{"Id":26509,"Name":"魔戒克星信息查看器 (LOTR Bane Viewer)","CurseForge":"lotr-bane-viewer","Modrinth":""},{"Id":26510,"Name":"虚数分支[二游ACT] (Imaginary Branch[Character Transformation])","CurseForge":"imaginary-branch","Modrinth":""},{"Id":26511,"Name":"","CurseForge":"fpe-companions","Modrinth":""},{"Id":26513,"Name":"","CurseForge":"picture-mode","Modrinth":"picture-mode"},{"Id":26515,"Name":"","CurseForge":"visual-health","Modrinth":"visualhealth"},{"Id":26516,"Name":"初见 (First Steps)","CurseForge":"","Modrinth":"first-step-mod"},{"Id":26517,"Name":"更好的Ponder (BetterPonder)","CurseForge":"","Modrinth":"betterponder"},{"Id":26518,"Name":"","CurseForge":"foodtastic-crops-and-trees","Modrinth":""},{"Id":26519,"Name":"环流网络 (Circulation Flow Networks)","CurseForge":"circulation-flow-networks","Modrinth":""},{"Id":26520,"Name":"","CurseForge":"castle-shift","Modrinth":"castle-shift"},{"Id":26521,"Name":"高度极限 [-2032~2031](可自定义) (BeyondHeights)","CurseForge":"","Modrinth":"beyondheights"},{"Id":26522,"Name":"竖半砖 (Vertical Slab)","CurseForge":"vertical-slab-block","Modrinth":""},{"Id":26524,"Name":"现代工业化物品流体总成仓 (Modern Industrialization Item-Fluid Combined Hatch)","CurseForge":"modernindustrialization-item-fluid-combined-hatch","Modrinth":"mi-item-fluid-combined-hatch"},{"Id":26525,"Name":"","CurseForge":"quickstack-backpacks-compat","Modrinth":""},{"Id":26527,"Name":"","CurseForge":"ansible-crafting","Modrinth":"ansible-crafting"},{"Id":26528,"Name":"","CurseForge":"anti-oneshot","Modrinth":""},{"Id":26529,"Name":"","CurseForge":"","Modrinth":"c4-pro"},{"Id":26530,"Name":"","CurseForge":"ender-modpack-tweaks","Modrinth":"ender-modpack-tweaks"},{"Id":26531,"Name":"永恒核心:启程 (Eternal Core: Starter)","CurseForge":"eternal-core-starter","Modrinth":"eternal_core_starter"},{"Id":26532,"Name":"","CurseForge":"functionality-forge","Modrinth":"functionality"},{"Id":26533,"Name":"","CurseForge":"lily-pads-expansion","Modrinth":""},{"Id":26534,"Name":"","CurseForge":"zcoper-karts","Modrinth":"zcoper-karts"},{"Id":26535,"Name":"","CurseForge":"","Modrinth":"taccorps-trinkets"},{"Id":26536,"Name":"灵魂印记 (Soulbound Sigils)","CurseForge":"soulbound-sigils","Modrinth":""},{"Id":26537,"Name":"","CurseForge":"doomsday-functionality","Modrinth":""},{"Id":26538,"Name":"","CurseForge":"tiny-mob-farm-boss-addon","Modrinth":"tiny-mob-farm-boss-addon"},{"Id":26539,"Name":"","CurseForge":"simple-structure-mushroom-fields","Modrinth":"simplestructure-mushroom-fields"},{"Id":26540,"Name":"","CurseForge":"cursed-fate","Modrinth":"cursed-fate"},{"Id":26541,"Name":"","CurseForge":"kashimo-mythical-beast-amber-cursed-fate-addon","Modrinth":"kashimo-(mythical-beast-amber)-cursed-fate-addon"},{"Id":26542,"Name":"","CurseForge":"cursed-fate-projection-sorcery","Modrinth":"cursed-fate-projection-sorcery"},{"Id":26543,"Name":"","CurseForge":"cursed-speech-cursed-fate-addon","Modrinth":"cursed-speech-cursed-fate-addon."},{"Id":26544,"Name":"","CurseForge":"cursed-fate-multiverse","Modrinth":"cursed-fate-multiverse"},{"Id":26545,"Name":"","CurseForge":"cf-ratio-technique","Modrinth":"cf-ratio-technique"},{"Id":26547,"Name":"","CurseForge":"box-of-structures-goety","Modrinth":""},{"Id":26548,"Name":"","CurseForge":"blades-dungeons","Modrinth":"blades-dungeons"},{"Id":26550,"Name":"","CurseForge":"gaucho","Modrinth":""},{"Id":26551,"Name":"","CurseForge":"waystones-sable","Modrinth":"waystones-sable"},{"Id":26552,"Name":"小翔的修仙世界 (Xiaoxiang Cultivatio)","CurseForge":"xiaoxiang-cultivation-world","Modrinth":"xiaoxiang-cultivation-world"},{"Id":26555,"Name":"远距冲击屏障 (Distant Shock Barrier)","CurseForge":"iss-affiliated-distant-shock-barrier","Modrinth":"iss-affiliateddistant-shock-barrier"},{"Id":26556,"Name":"诡厄巫法:聚晶核心 (GoetyFocus)","CurseForge":"goetyfocus","Modrinth":"gyfc"},{"Id":26557,"Name":"","CurseForge":"","Modrinth":"katton"},{"Id":26558,"Name":"","CurseForge":"swem-lite","Modrinth":""},{"Id":26559,"Name":"","CurseForge":"swdm","Modrinth":""},{"Id":26560,"Name":"","CurseForge":"rumors","Modrinth":""},{"Id":26561,"Name":"","CurseForge":"animation-api-reborn","Modrinth":""},{"Id":26562,"Name":"","CurseForge":"attributification","Modrinth":"attributification"},{"Id":26563,"Name":"","CurseForge":"swgc","Modrinth":"swgc"},{"Id":26564,"Name":"","CurseForge":"chunk-animator-embeddium-compat","Modrinth":""},{"Id":26565,"Name":"","CurseForge":"tag-fixes","Modrinth":"tag-fixes"},{"Id":26567,"Name":"","CurseForge":"suns-son-mod","Modrinth":""},{"Id":26568,"Name":"禁用村庄生成 (Disable Villages Generation)","CurseForge":"disable-villages-generation","Modrinth":""},{"Id":26569,"Name":"","CurseForge":"locks-reforged","Modrinth":"locks-reforged"},{"Id":26570,"Name":"","CurseForge":"tidyinv","Modrinth":""},{"Id":26571,"Name":"","CurseForge":"tetra-data-kubejs","Modrinth":""},{"Id":26572,"Name":"让它们燃烧! (Create: LET!EM!BURN!)","CurseForge":"","Modrinth":"letemburn"},{"Id":26573,"Name":"森罗物语酒馆:重织 (Kaleidoscope Tavern Refabricated)","CurseForge":"kaleidoscope-tavern-refabricated","Modrinth":"kaleidoscope-tavern-refabricated"},{"Id":26574,"Name":"森罗酒馆:血酒 (Kaleidoscope: Bloodwine)","CurseForge":"kaleidoscope-bloodwine","Modrinth":"kaleidoscope_bloodwine"},{"Id":26576,"Name":"万法皆杖 (This is a Magic Staff)","CurseForge":"iss-tms-this-is-a-magic-staff","Modrinth":"this-is-a-magic-staff"},{"Id":26577,"Name":"Ai_myh的植物大战僵尸 (Ai_myh's Plants Vs. Zombies Mod)","CurseForge":"ai-myhs-plants-vs-zombies","Modrinth":"ai_myhs-plants-vs.-zombies"},{"Id":26578,"Name":"","CurseForge":"cursedfate-npcs","Modrinth":""},{"Id":26579,"Name":"下界传送门限制器 (Nether Portal Restrictor)","CurseForge":"moderngamingworlds-nether-portal-restrictor","Modrinth":"nether-portal-restrictor"},{"Id":26580,"Name":"","CurseForge":"kubejs-kaleidoscope","Modrinth":"kubejs-kaleidoscope"},{"Id":26581,"Name":"乐魂拓展 (HappyGhast Extend)","CurseForge":"happyghast-extend","Modrinth":""},{"Id":26582,"Name":"","CurseForge":"planar-artifice-forked-continuation","Modrinth":""},{"Id":26583,"Name":"","CurseForge":"","Modrinth":"tacz-presence"},{"Id":26584,"Name":"","CurseForge":"","Modrinth":"diexvapocalypse"},{"Id":26588,"Name":"","CurseForge":"mousetweaks-x-accessories-fix","Modrinth":"mousetweaks-x-accessories-fix"},{"Id":26589,"Name":"","CurseForge":"malice-and-light-cursed-fate-addon-dabura","Modrinth":""},{"Id":26590,"Name":"","CurseForge":"cursed-fate-divine-general-mahoraga","Modrinth":""},{"Id":26591,"Name":"","CurseForge":"create-crafts-additions-and-aeronautics-compat","Modrinth":"create-crafts-additions-and-aeronautics-compat"},{"Id":26592,"Name":"","CurseForge":"cave-dweller-fabric-port","Modrinth":""},{"Id":26593,"Name":"","CurseForge":"","Modrinth":"152mmboom"},{"Id":26594,"Name":"洞穴装饰 4 (Wild Caves 4)","CurseForge":"wild-caves-4","Modrinth":""},{"Id":26595,"Name":"","CurseForge":"derpy-squid-mod","Modrinth":""},{"Id":26596,"Name":"通用升级模版 (Universal Smithing Template)","CurseForge":"universal-smithing-template","Modrinth":""},{"Id":26597,"Name":"","CurseForge":"concatenated-compat","Modrinth":""},{"Id":26598,"Name":"Xaero玩家位置显示 (Xaero's Player Position)","CurseForge":"","Modrinth":"xaeros-playerposition"},{"Id":26599,"Name":"","CurseForge":"feywild-library","Modrinth":""},{"Id":26600,"Name":"","CurseForge":"grand-depths","Modrinth":"grand_depths"},{"Id":26602,"Name":"下一个边境-基石 (NextBoundary-Cornerstone)","CurseForge":"","Modrinth":"next-boundary-cornerstone"},{"Id":26603,"Name":"","CurseForge":"the-trial-monolith","Modrinth":""},{"Id":26604,"Name":"","CurseForge":"blades-libraries","Modrinth":"blades-libraries"},{"Id":26605,"Name":"","CurseForge":"carved-wood","Modrinth":"carved-wood"},{"Id":26607,"Name":"","CurseForge":"cawezs-mantle-to-stratus","Modrinth":"cawezs-mantle-to-stratus"},{"Id":26608,"Name":"","CurseForge":"attacker","Modrinth":""},{"Id":26609,"Name":"超级源方块 (Super Source Block)","CurseForge":"super-source-block","Modrinth":""},{"Id":26610,"Name":"","CurseForge":"eternitys","Modrinth":"eternitys"},{"Id":26611,"Name":"","CurseForge":"more-fun-tnts","Modrinth":"more-fun-tnts"},{"Id":26614,"Name":"","CurseForge":"pipez-lag-fix","Modrinth":""},{"Id":26615,"Name":"","CurseForge":"butchery-alexs-mobs","Modrinth":"butchery-alexs-mobs-addon"},{"Id":26616,"Name":"","CurseForge":"bllues-weapons","Modrinth":""},{"Id":26617,"Name":"巨型冰刺 (Giant Ice Spike)","CurseForge":"giant-ice-spike","Modrinth":"giant-ice-spike"},{"Id":26618,"Name":"巨型竹子 (Giant Bamboo)","CurseForge":"giant-bamboo","Modrinth":"giant-bamboo"},{"Id":26619,"Name":"","CurseForge":"quick-boot","Modrinth":""},{"Id":26620,"Name":"","CurseForge":"zfastnoise","Modrinth":"zfastnoise"},{"Id":26621,"Name":"","CurseForge":"collision-damage-port","Modrinth":""},{"Id":26622,"Name":"","CurseForge":"disaster-plants-cursed-fate-addon","Modrinth":"disaster-plants-cursed-fate-addon."},{"Id":26623,"Name":"","CurseForge":"mrcrayfishs-furniture-mod-tools-refurbished","Modrinth":"mrcrayfishs-furniture-mod-tools-refurbished"},{"Id":26624,"Name":"","CurseForge":"hats-x-mo-bends-compat","Modrinth":""},{"Id":26625,"Name":"","CurseForge":"","Modrinth":"dimensional-inventories"},{"Id":26626,"Name":"","CurseForge":"curios-eggs","Modrinth":"curios-eggs"},{"Id":26627,"Name":"","CurseForge":"taczeo","Modrinth":"taczeo"},{"Id":26628,"Name":"","CurseForge":"blades-temples","Modrinth":"blades-temples"},{"Id":26629,"Name":"","CurseForge":"middle-age-castles","Modrinth":""},{"Id":26630,"Name":"失落的城市现代化调整 (Lost Cities Modern Tweaks)","CurseForge":"lost-cities-modern-tweaks","Modrinth":"lost-cities-modern-tweaks"},{"Id":26631,"Name":"","CurseForge":"expanded-ecosphere","Modrinth":""},{"Id":26631,"Name":"","CurseForge":"","Modrinth":"expanded-ecosphere"},{"Id":26632,"Name":"闪枢库 (Thunderbolt Lib)","CurseForge":"thunderbolt-lib","Modrinth":"thunderbolt_lib"},{"Id":26633,"Name":"","CurseForge":"crucifix-unbanished","Modrinth":""},{"Id":26634,"Name":"","CurseForge":"country-road-creature","Modrinth":"country-road-creature"},{"Id":26635,"Name":"","CurseForge":"ftb-quests-entity-visualization","Modrinth":""},{"Id":26636,"Name":"","CurseForge":"uncapped-spectator-speed","Modrinth":""},{"Id":26637,"Name":"","CurseForge":"creatures-and-beasts-continued","Modrinth":""},{"Id":26638,"Name":"","CurseForge":"antlers-of-hunger","Modrinth":"antlers-of-hunger"},{"Id":26639,"Name":"Neo物品收藏 (Neo Favorite Items)","CurseForge":"neofavoriteitems","Modrinth":"neofavoriteitems"},{"Id":26640,"Name":"快捷别名 (QuickAlias)","CurseForge":"quickalias","Modrinth":"quickalias"},{"Id":26641,"Name":"","CurseForge":"botania-dimension-blacklist","Modrinth":"botania-dimension-blacklist"},{"Id":26642,"Name":"森罗物语:果酒 (Kaleidoscope Fruit Brew)","CurseForge":"kaleidoscope-fruit-brew","Modrinth":""},{"Id":26643,"Name":"","CurseForge":"tinkers-unexplored","Modrinth":"tinkers-unexplored"},{"Id":26644,"Name":"","CurseForge":"aesthetic-frames","Modrinth":"aesthetic-frames"},{"Id":26645,"Name":"","CurseForge":"aesthetic-edges","Modrinth":"aesthetic-edges"},{"Id":26646,"Name":"","CurseForge":"aesthetic-ladders","Modrinth":"aesthetic-ladders"},{"Id":26647,"Name":"","CurseForge":"aesthetic-seating","Modrinth":"aesthetic-seating"},{"Id":26648,"Name":"","CurseForge":"invincible-craft","Modrinth":""},{"Id":26649,"Name":"","CurseForge":"aesthetic-tables","Modrinth":"aesthetic-tables"},{"Id":26650,"Name":"","CurseForge":"aesthetic-storage","Modrinth":"aesthetic-storage"},{"Id":26651,"Name":"","CurseForge":"aesthetic-surfaces","Modrinth":"aesthetic-surfaces"},{"Id":26652,"Name":"","CurseForge":"aesthetic-stairs","Modrinth":"aesthetic-stairs"},{"Id":26653,"Name":"","CurseForge":"the-lost-records","Modrinth":""},{"Id":26654,"Name":"","CurseForge":"cherry-tree-pond","Modrinth":""},{"Id":26655,"Name":"","CurseForge":"jaki-versatile-structures","Modrinth":"jaki-versatile-structures"},{"Id":26656,"Name":"","CurseForge":"recipeexport","Modrinth":"recipeexport"},{"Id":26657,"Name":"天然海绵 (Natural Sponge)","CurseForge":"","Modrinth":"natural-sponge"},{"Id":26658,"Name":"怪物截肢:重生 (Mob Amputation (Reborn))","CurseForge":"mob-amputation-reborn","Modrinth":""},{"Id":26659,"Name":"","CurseForge":"boomspeakers","Modrinth":""},{"Id":26661,"Name":"魔法艺术2:复刻版 (Ars Magica 2: Rekindled)","CurseForge":"ars-magica-2-rekindled","Modrinth":""},{"Id":26662,"Name":"","CurseForge":"winds-spellbooks-irons-spells-n-spellbooks-addon","Modrinth":"winds-spellbooks"},{"Id":26663,"Name":"","CurseForge":"hexxyskies","Modrinth":"hexxyskies"},{"Id":26664,"Name":"更好的砧板经典版 (Manaita Plus General)","CurseForge":"manaita-plus-general","Modrinth":""},{"Id":26665,"Name":"","CurseForge":"structure-generation-improver-sgi-foundations","Modrinth":"structure-generation-improver-(sgi-foundations!)"},{"Id":26666,"Name":"","CurseForge":"primal-frontier","Modrinth":"primal-frontier"},{"Id":26669,"Name":"","CurseForge":"create-tweaked-controller-for-fabric","Modrinth":""},{"Id":26670,"Name":"","CurseForge":"mod-primal","Modrinth":"mod-primal"},{"Id":26671,"Name":"批量编辑,保存到本地,模拟玩家编写AE2样板 (batch edit and save and upload AE2 pattern content with local files)","CurseForge":"batch-edit-and-save-and-upload-ae2-pattern-content","Modrinth":"batcheditandsaveanduploadae2patterncontentwithlocalfiles"},{"Id":26673,"Name":"","CurseForge":"stack-calculator","Modrinth":"stack-calculator"},{"Id":26674,"Name":"超级牛逼的科技整合包2 一些修复 (nbtech2fix)","CurseForge":"nbtech2fix","Modrinth":"nbtech2fix"},{"Id":26675,"Name":"","CurseForge":"better-safe-bed-backport","Modrinth":""},{"Id":26676,"Name":"无菌蛋 (Sterile Egg)","CurseForge":"","Modrinth":"sterile-egg"},{"Id":26678,"Name":"","CurseForge":"okprogressions","Modrinth":""},{"Id":26679,"Name":"","CurseForge":"ae2enhanced","Modrinth":""},{"Id":26680,"Name":"","CurseForge":"townstead","Modrinth":""},{"Id":26681,"Name":"","CurseForge":"mebahels-api","Modrinth":"mebahels-api"},{"Id":26682,"Name":"更多锻造模板:凌空之上 (MoreUpgradeTemplate-AboveTheSky)","CurseForge":"moreupgradetemplate-abovethesky","Modrinth":"mut-ats"},{"Id":26683,"Name":"离线皮肤补丁 (StraySkins)","CurseForge":"","Modrinth":"strayskins"},{"Id":26684,"Name":"动力火箭 (PowerRocket)","CurseForge":"","Modrinth":"powerrocket"},{"Id":26685,"Name":"AE2 闪电科技 (AE2 Lightning Tech)","CurseForge":"ae2-lightning-tech","Modrinth":"ae2-lightning-tech"},{"Id":26686,"Name":"史诗战斗:车万女仆 (EpicFight:TouhouLittleMaid)","CurseForge":"","Modrinth":"epicfight_touhoulittlemaid"},{"Id":26687,"Name":"","CurseForge":"put-a-plug-in-it","Modrinth":"put-a-plug-in-it!"},{"Id":26688,"Name":"","CurseForge":"elemental-witches-legacy","Modrinth":""},{"Id":26689,"Name":"星野牧歌 (StarfieldPastoral)","CurseForge":"starfield-pastoral","Modrinth":"starfield-pastoral"},{"Id":26691,"Name":"机械动力:雷达重制版 (Create: Radars Unofficial Port)","CurseForge":"create-radars-unofficial-port","Modrinth":"create-radars-unofficial-port"},{"Id":26692,"Name":"机械动力:推进工程 - 模拟物理 (Create Propulsion: Simulated)","CurseForge":"create-propulsion-simulated","Modrinth":"create-propulsion-simulated"},{"Id":26694,"Name":"","CurseForge":"create-additions-sable-compat","Modrinth":"create-additions-sable-compat"},{"Id":26695,"Name":"机械动力:应力链界 (Create: Stressbound)","CurseForge":"create-stressbound","Modrinth":"create-stressbound"},{"Id":26696,"Name":"","CurseForge":"create-tracks","Modrinth":""},{"Id":26697,"Name":"","CurseForge":"create-propulsion-sable","Modrinth":"create-propulsion-sable"},{"Id":26698,"Name":"","CurseForge":"create-towed","Modrinth":"create-towed"},{"Id":26699,"Name":"","CurseForge":"create-dreams-n-desires-updated-to-create-6","Modrinth":"create-dreams-n-desires-updated-to-create-6"},{"Id":26700,"Name":"机械动力:更多触媒 (Create:More Catalysts)","CurseForge":"create-more-catalysts","Modrinth":"createmore-catalysts"},{"Id":26701,"Name":"","CurseForge":"create-more-alloys","Modrinth":""},{"Id":26702,"Name":"","CurseForge":"create-pipesn-physics","Modrinth":"create-pipes-n-phisycs"},{"Id":26703,"Name":"","CurseForge":"dabr-dragonsurvivalcompat","Modrinth":""},{"Id":26705,"Name":"","CurseForge":"block-display","Modrinth":"block-display"},{"Id":26706,"Name":"现代伤害控制 (Modern Damage Control)","CurseForge":"modern-damage-control","Modrinth":"modern-damage-control"},{"Id":26707,"Name":"静音快捷键 (MuteHotkey)","CurseForge":"mutehotkey-fabric","Modrinth":""},{"Id":26708,"Name":"简易静音 (EasyMute)","CurseForge":"","Modrinth":"easymute"},{"Id":26709,"Name":"","CurseForge":"ramization","Modrinth":""},{"Id":26710,"Name":"","CurseForge":"antique-beasts","Modrinth":"mebahels-antique-beasts"},{"Id":26711,"Name":"","CurseForge":"mebahels-zombie-horde","Modrinth":"mebahels-zombie-horde"},{"Id":26712,"Name":"通用机械高级配置卡 (Mekanism Advanced Configuration Card)","CurseForge":"mekanism-advanced-configuration-card","Modrinth":""},{"Id":26713,"Name":"","CurseForge":"my-battle-mod","Modrinth":"my-battle-mod"},{"Id":26714,"Name":"植物魔法花生成调整 (Botania Flower Adjust)","CurseForge":"botania-flower-adjust","Modrinth":""},{"Id":26715,"Name":"","CurseForge":"placeable-gunpowder-1-12","Modrinth":""},{"Id":26716,"Name":"","CurseForge":"anvilcore","Modrinth":"anvilcore-"},{"Id":26717,"Name":"","CurseForge":"formicapi","Modrinth":"formicapi"},{"Id":26718,"Name":"","CurseForge":"jcs-dungeons-musics","Modrinth":""},{"Id":26719,"Name":"","CurseForge":"dragon-radars","Modrinth":""},{"Id":26720,"Name":"","CurseForge":"fast-recipes","Modrinth":""},{"Id":26721,"Name":"禁止自动跳跃 (No Auto Jump)","CurseForge":"no-auto-jump","Modrinth":""},{"Id":26722,"Name":"","CurseForge":"satstack","Modrinth":""},{"Id":26723,"Name":"","CurseForge":"","Modrinth":"custom-end-portals"},{"Id":26724,"Name":"","CurseForge":"hlelevators","Modrinth":"hlelevators"},{"Id":26725,"Name":"","CurseForge":"","Modrinth":"moremobility"},{"Id":26726,"Name":"","CurseForge":"berk-furniture","Modrinth":"berk-furniture"},{"Id":26727,"Name":"","CurseForge":"woodyoudeco","Modrinth":""},{"Id":26728,"Name":"车万女仆:血族 (touhou_little_maid_vampirism)","CurseForge":"touhou-little-maid-vampirism","Modrinth":"touhou_little_maid_vampirism"},{"Id":26729,"Name":"","CurseForge":"hats-renewed","Modrinth":""},{"Id":26730,"Name":"","CurseForge":"shared-pets","Modrinth":"shared-pets"},{"Id":26731,"Name":"","CurseForge":"err422","Modrinth":"err422"},{"Id":26732,"Name":"","CurseForge":"kubejsable","Modrinth":"kubejsable"},{"Id":26733,"Name":"","CurseForge":"geckolibbetterfps","Modrinth":""},{"Id":26734,"Name":"","CurseForge":"svdialog","Modrinth":"svdialog"},{"Id":26735,"Name":"","CurseForge":"botania-seeds","Modrinth":"botania-seeds"},{"Id":26736,"Name":"","CurseForge":"shadow-config","Modrinth":"shadow-config"},{"Id":26737,"Name":"核弹 (Nuke block)","CurseForge":"","Modrinth":"nuke-block"},{"Id":26738,"Name":"等价交换无限 (ProjectE Infinite)","CurseForge":"projecte-infinite","Modrinth":""},{"Id":26739,"Name":"现代工业化结构导出工具","CurseForge":"modernindustrialization-structure-exporter","Modrinth":"mi-structure-exporter"},{"Id":26740,"Name":"","CurseForge":"chrono-dawn","Modrinth":"chrono-dawn"},{"Id":26741,"Name":"太多的实体 (Too Much Entities)","CurseForge":"too-much-entities","Modrinth":""},{"Id":26742,"Name":"","CurseForge":"zero-ordinary-vehicles","Modrinth":""},{"Id":26743,"Name":"","CurseForge":"false-swipe","Modrinth":""},{"Id":26745,"Name":"","CurseForge":"ds-caperspectivefix","Modrinth":""},{"Id":26746,"Name":"","CurseForge":"create-aeronautics-compatability","Modrinth":"create-aeronautics-compatability"},{"Id":26747,"Name":"","CurseForge":"create-aeroworks","Modrinth":"create-aeroworks"},{"Id":26748,"Name":"直上九霄 (FlyHigher)","CurseForge":"","Modrinth":"flyhigher"},{"Id":26749,"Name":"线缆控制:Sable兼容 (Drive-By-Wire With Sable)","CurseForge":"drive-by-wire-with-sable","Modrinth":"drive-by-wire-sable"},{"Id":26750,"Name":"","CurseForge":"create-nomad","Modrinth":"create-nomad"},{"Id":26751,"Name":"中世纪治疗 (Medieval Healing)","CurseForge":"medieval-healing","Modrinth":""},{"Id":26752,"Name":"夸克背包增强 (Quark Backpack Plus)","CurseForge":"quark-backpack-plus","Modrinth":"quark-backpack-plus"},{"Id":26753,"Name":"农夫乐事兼容修复 (Farmer's Delight Compatibility Fix)","CurseForge":"farmers-delight-compatibility-fix","Modrinth":""},{"Id":26755,"Name":"","CurseForge":"webdisplay-fork-for-shimer","Modrinth":""},{"Id":26756,"Name":"ME源质二合一接口 (Thaumic Duality Interface)","CurseForge":"thaumic-duality-interface","Modrinth":"thaumic-duality-interface"},{"Id":26757,"Name":"可视化战利品池编辑器 (Visual Loot Edit)","CurseForge":"visual-loot-edit","Modrinth":"visual-loot-edit"},{"Id":26759,"Name":"","CurseForge":"mixin-extras-neoforge-on-forge-fix","Modrinth":""},{"Id":26760,"Name":"","CurseForge":"fancy-frames","Modrinth":"fancy-frames"},{"Id":26762,"Name":"随机掉落 (Any Random-drop)","CurseForge":"","Modrinth":"any-random-drops"},{"Id":26763,"Name":"泰拉装备 (TerraEquipment)","CurseForge":"te-terra-equipment","Modrinth":""},{"Id":26764,"Name":"","CurseForge":"warp-o-mania","Modrinth":""},{"Id":26765,"Name":"微缩天辉星门 (Shrunkgateway)","CurseForge":"shrunkgateway","Modrinth":""},{"Id":26766,"Name":"","CurseForge":"chocolate-quest-golden-apple-edition","Modrinth":""},{"Id":26767,"Name":"","CurseForge":"better-snowball","Modrinth":"better-snowball"},{"Id":26768,"Name":"","CurseForge":"society-trading","Modrinth":"society-trading"},{"Id":26769,"Name":"","CurseForge":"wiki-zoomer-unofficial","Modrinth":""},{"Id":26770,"Name":"睡梦包裹 (Dream Cocoon)","CurseForge":"dream-cocoon","Modrinth":"dream-cocoon"},{"Id":26771,"Name":"","CurseForge":"powercraft-new-live","Modrinth":""},{"Id":26774,"Name":"","CurseForge":"kira-death-note","Modrinth":"kira-death-note"},{"Id":26775,"Name":"","CurseForge":"","Modrinth":"planket"},{"Id":26776,"Name":"","CurseForge":"moregolems","Modrinth":"moregolems"},{"Id":26777,"Name":"","CurseForge":"maples-chicken-collection","Modrinth":"maples-chicken-collection"},{"Id":26778,"Name":"","CurseForge":"maples-creeper-collection","Modrinth":"maples-creeper-collection"},{"Id":26779,"Name":"","CurseForge":"maples-bee-collection","Modrinth":"maples-bee-collection"},{"Id":26780,"Name":"","CurseForge":"splendid-slimes","Modrinth":"splendid-slimes"},{"Id":26789,"Name":"","CurseForge":"plain-grinder","Modrinth":"plain-grinder"},{"Id":26790,"Name":"","CurseForge":"maples-rabbit-collection","Modrinth":"maples-rabbit-collection"},{"Id":26791,"Name":"","CurseForge":"maples-frog-collection","Modrinth":"maples-frog-collection"},{"Id":26794,"Name":"","CurseForge":"deuf-neoforge","Modrinth":"deuf-neoforge"},{"Id":26795,"Name":"","CurseForge":"dynamic-lightings","Modrinth":"dynamic-lighting"},{"Id":26796,"Name":"","CurseForge":"ancient-villages","Modrinth":"ancient-villages"},{"Id":26797,"Name":"","CurseForge":"twilight-forest-final-boss-remake","Modrinth":""},{"Id":26798,"Name":"","CurseForge":"cosmetics-equipment","Modrinth":"cosmetics-equipment"},{"Id":26799,"Name":"","CurseForge":"ore-vein-miner","Modrinth":""},{"Id":26800,"Name":"","CurseForge":"illager-structures","Modrinth":""},{"Id":26804,"Name":"四重快捷栏 (Quad Hotbar)","CurseForge":"","Modrinth":"quad-hotbar"},{"Id":26805,"Name":"","CurseForge":"prehistoric-seacreatures","Modrinth":"prehistoric-seacreatures"},{"Id":26809,"Name":"车万女仆:GrowableOres 兼容 (Touhou Little Maid: GrowableOres Compat)","CurseForge":"touhou-little-maid-growableores-compat","Modrinth":"touhou-little-maidgrowableores-compat"},{"Id":26810,"Name":"","CurseForge":"plantasia","Modrinth":""},{"Id":26811,"Name":"","CurseForge":"animalsplusplus","Modrinth":""},{"Id":26812,"Name":"更好的指示器 (Better Indicators)","CurseForge":"better-indicators","Modrinth":""},{"Id":26813,"Name":"","CurseForge":"","Modrinth":"rail-lubricant"},{"Id":26814,"Name":"","CurseForge":"","Modrinth":"mushroom-madness"},{"Id":26815,"Name":"撤回 (Undo mod)","CurseForge":"","Modrinth":"undo"},{"Id":26817,"Name":"","CurseForge":"gonebutnotforgotten-jar","Modrinth":"gonebutnotforgotten"},{"Id":26818,"Name":"深渊侵蚀者 (Abyssal Corrupter)","CurseForge":"abyssal-corrupter","Modrinth":""},{"Id":26819,"Name":"","CurseForge":"project-poppa","Modrinth":""},{"Id":26820,"Name":"可视化生物编辑器 (Visual Mobs Edit)","CurseForge":"visual-mobs-edit","Modrinth":"visual-mobs-edit"},{"Id":26821,"Name":"航空学-额外配置 (SableFanConfig)","CurseForge":"","Modrinth":"sabelfanconfig"},{"Id":26822,"Name":"符咒传说 (Jackie Chan Adventures: Talisman Legend)","CurseForge":"jackie-chan-adventures-talisman-legend","Modrinth":""},{"Id":26824,"Name":"自动图腾 (Automatic Replacement)","CurseForge":"","Modrinth":"automatic-replacement"},{"Id":26825,"Name":"","CurseForge":"","Modrinth":"sleepy-disconnect"},{"Id":26826,"Name":"","CurseForge":"attribute-setter","Modrinth":"attributesetter"},{"Id":26827,"Name":"网络音乐机:唱片预览 (NetMusic: CD Preview)","CurseForge":"","Modrinth":"netmusiccd-preview"},{"Id":26828,"Name":"红石远联 (RedstoneLink-makomi)","CurseForge":"redstonelink-makomi","Modrinth":"redstonelink-makomi"},{"Id":26829,"Name":"","CurseForge":"","Modrinth":"mixinruntime"},{"Id":26831,"Name":"","CurseForge":"terrano","Modrinth":""},{"Id":26832,"Name":"","CurseForge":"visualcontrol","Modrinth":""},{"Id":26833,"Name":"","CurseForge":"mebahels-creatures-dwarven-automatons","Modrinth":"mebahels-creatures-dwarven-automatons"},{"Id":26834,"Name":"","CurseForge":"lootbags-plus","Modrinth":"lootbags-plus"},{"Id":26835,"Name":"Skniro的家具 (Skniro's Furniture)","CurseForge":"skniros-furniture","Modrinth":"skniros-furniture"},{"Id":26836,"Name":"","CurseForge":"abandoned-watchtowers","Modrinth":"abandoned-watchtowers"},{"Id":26837,"Name":"","CurseForge":"a-squidly-minecraft-movie-mod","Modrinth":""},{"Id":26838,"Name":"","CurseForge":"galosphere-trimming","Modrinth":"galosphere-trimming"},{"Id":26839,"Name":"","CurseForge":"abandoned-urban-remaster","Modrinth":"abandoned-urban-remaster"},{"Id":26840,"Name":"","CurseForge":"hollowmarch","Modrinth":"hollowmarch"},{"Id":26841,"Name":"","CurseForge":"rock-candy","Modrinth":""},{"Id":26842,"Name":"","CurseForge":"refined-storage-mixin","Modrinth":"refined-storage-mixin"},{"Id":26843,"Name":"","CurseForge":"tensura-compat-ice-fire","Modrinth":"tensura-compat-ice-fire"},{"Id":26844,"Name":"随机世界名称 (Random World Names)","CurseForge":"","Modrinth":"random-world-names"},{"Id":26847,"Name":"","CurseForge":"alexs-caves-spellbooks","Modrinth":""},{"Id":26848,"Name":"","CurseForge":"deeper-and-darker-spellbooks","Modrinth":"deeper-and-darker-spellbooks"},{"Id":26849,"Name":"","CurseForge":"long-horse","Modrinth":"long-horse"},{"Id":26850,"Name":"","CurseForge":"olvens-deep-end","Modrinth":""},{"Id":26851,"Name":"","CurseForge":"","Modrinth":"sculktech"},{"Id":26852,"Name":"","CurseForge":"patchouli-cryogenic-simulation-edition","Modrinth":""},{"Id":26854,"Name":"","CurseForge":"ender-core-ceu","Modrinth":""},{"Id":26855,"Name":"","CurseForge":"enderio-ceu","Modrinth":""},{"Id":26856,"Name":"","CurseForge":"beyond-bosses-2","Modrinth":""},{"Id":26857,"Name":"","CurseForge":"tpa-qmz","Modrinth":"tpa_qmz"},{"Id":26858,"Name":"","CurseForge":"boss-checklist-addon","Modrinth":""},{"Id":26859,"Name":"","CurseForge":"paintable","Modrinth":"paintable"},{"Id":26860,"Name":"","CurseForge":"diversity-of-life","Modrinth":""},{"Id":26861,"Name":"平滑菜单 (Smooth Menus)","CurseForge":"smooth-menus","Modrinth":""},{"Id":26862,"Name":"","CurseForge":"iron-jetpacks-updated-fabric","Modrinth":""},{"Id":26863,"Name":"","CurseForge":"harsh-encounters","Modrinth":"harsh-encounters"},{"Id":26864,"Name":"TW的矿石淘采 (TW`s Ore Dredging)","CurseForge":"tws-ore-dredging","Modrinth":"ore-dredging"},{"Id":26865,"Name":"丹 (Elixir)","CurseForge":"","Modrinth":"elixir_dan"},{"Id":26866,"Name":"游戏规则分身 (Per-Dimension Game Rules)","CurseForge":"per-world-game-rules","Modrinth":"per-world-game-rules"},{"Id":26867,"Name":"","CurseForge":"structures-better-structures-exploration","Modrinth":""},{"Id":26868,"Name":"","CurseForge":"structures-modd","Modrinth":""},{"Id":26869,"Name":"","CurseForge":"sturdy-farmland-growth-edition","Modrinth":"sturdy-farmland-growth-edition"},{"Id":26870,"Name":"","CurseForge":"smart-particles","Modrinth":"smart-particles"},{"Id":26872,"Name":"","CurseForge":"","Modrinth":"wills-farming-tweaks"},{"Id":26874,"Name":"闪电苦力怕渲染修复 (Charged Creeper Render Fix)","CurseForge":"charged-creeper-render-fix","Modrinth":""},{"Id":26875,"Name":"","CurseForge":"nohurtflash","Modrinth":"nohurtflash"},{"Id":26876,"Name":"","CurseForge":"advanced-wall-climber-api","Modrinth":"advanced-wall-climber-api"},{"Id":26877,"Name":"","CurseForge":"modern-blocks-port","Modrinth":""},{"Id":26878,"Name":"","CurseForge":"particle-tweaks","Modrinth":"particle-tweaks"},{"Id":26879,"Name":"","CurseForge":"artifacts-merging","Modrinth":"artifacts-merging"},{"Id":26880,"Name":"","CurseForge":"echoes-of-the-end-structures","Modrinth":"echoes-of-the-end-(-structures)"},{"Id":26881,"Name":"","CurseForge":"delight-lib","Modrinth":"delight-lib"},{"Id":26882,"Name":"","CurseForge":"thaumicapi","Modrinth":""},{"Id":26884,"Name":"哇哇大哭 (Big Cry)","CurseForge":"","Modrinth":"big-cry"},{"Id":26885,"Name":"","CurseForge":"clab","Modrinth":"clab"},{"Id":26886,"Name":"","CurseForge":"shincolle-shin","Modrinth":""},{"Id":26887,"Name":"","CurseForge":"azumanga-mod","Modrinth":"azumanga-mod"},{"Id":26888,"Name":"","CurseForge":"decofood","Modrinth":""},{"Id":26889,"Name":"","CurseForge":"dragons-reborn","Modrinth":""},{"Id":26890,"Name":"","CurseForge":"the-great-outdoors","Modrinth":""},{"Id":26891,"Name":"","CurseForge":"riichi-mahjong-forge","Modrinth":""},{"Id":26892,"Name":"","CurseForge":"particle-interactions-reforged","Modrinth":""},{"Id":26893,"Name":"","CurseForge":"inmis-forge-port","Modrinth":""},{"Id":26894,"Name":"","CurseForge":"luminous-monsters","Modrinth":"luminous-monsters"},{"Id":26895,"Name":"","CurseForge":"luminous-tag","Modrinth":"luminous-tag"},{"Id":26896,"Name":"","CurseForge":"even-more-magic","Modrinth":"even-more-magic"},{"Id":26897,"Name":"","CurseForge":"piglet-structures","Modrinth":"piglet-structures"},{"Id":26898,"Name":"传说之下 世界 (Undertale World)","CurseForge":"undertale-world","Modrinth":"undertale-world"},{"Id":26899,"Name":"","CurseForge":"kubejs-mekanism-extends","Modrinth":"kubejs-mekanism-extends"},{"Id":26900,"Name":"解惑 (Unconfusion)","CurseForge":"unconfusion","Modrinth":"unconfusion"},{"Id":26904,"Name":"","CurseForge":"mapleful","Modrinth":""},{"Id":26905,"Name":"通用切制配方 (Universal Cutting Recipe)","CurseForge":"universal-cutting-recipe","Modrinth":"universal-cutting-recipe"},{"Id":26907,"Name":"","CurseForge":"jeasync","Modrinth":""},{"Id":26908,"Name":"现代工业化物品堆叠升级 (Modern Industrialization Item Hatch Stack Upgrade)","CurseForge":"mi-item-hatch-stack-upgrade","Modrinth":"mi-item-hatch-stack-upgrade"},{"Id":26909,"Name":"","CurseForge":"sandrone-toy-mod","Modrinth":"sandrone-toy-mod"},{"Id":26910,"Name":"萌系船只 (Cute Ships)","CurseForge":"cute-ships","Modrinth":""},{"Id":26913,"Name":"","CurseForge":"dannys-aot","Modrinth":"dannys-aot"},{"Id":26914,"Name":"简单的传送 (SimpletpPro)","CurseForge":"simpletppro","Modrinth":"simpletppro"},{"Id":26915,"Name":"","CurseForge":"invincible-wobble-edit-mod","Modrinth":""},{"Id":26916,"Name":"棉叫兽的游戏王 (MYSYGO)","CurseForge":"mjsygo","Modrinth":"ygogacha"},{"Id":26918,"Name":"仆从学 (Servantry)","CurseForge":"servantry","Modrinth":""},{"Id":26919,"Name":"递归合成 (RecursiveCraft)","CurseForge":"recursivecraft","Modrinth":""},{"Id":26921,"Name":"","CurseForge":"aeronautic-additions-and-chunkloader","Modrinth":""},{"Id":26922,"Name":"能源转换器 (Transducers)","CurseForge":"transducers","Modrinth":""},{"Id":26923,"Name":"沉浸机械 (Immersive Mechanical)","CurseForge":"immersive-mechanical","Modrinth":""},{"Id":26925,"Name":"","CurseForge":"ftbuxaerocompat","Modrinth":""},{"Id":26926,"Name":"古怪饰品 (Odd Accessories)","CurseForge":"odd-accessories","Modrinth":"odd-accessories"},{"Id":26927,"Name":"饮食均衡-苹果籽版 (Diet - AppleSeed Edition)","CurseForge":"diet-appleseed-edition","Modrinth":"diet-appleseed-edition"},{"Id":26929,"Name":"","CurseForge":"no-enderman-grief-mod","Modrinth":""},{"Id":26930,"Name":"","CurseForge":"anatidaephobia","Modrinth":"anatidaephobia"},{"Id":26931,"Name":"","CurseForge":"hazentouvelib","Modrinth":""},{"Id":26932,"Name":"通量超驱 (Flux Overdrive)","CurseForge":"flux-overdrive","Modrinth":""},{"Id":26933,"Name":"","CurseForge":"capns-chisel-search","Modrinth":""},{"Id":26935,"Name":"","CurseForge":"an-extra-touch","Modrinth":"an-extra-touch"},{"Id":26936,"Name":"拔刀剑重锋 · 山樱之刃 (SlashBlade Resharped: Yamazakura)","CurseForge":"slashblade-resharped-yamazakura","Modrinth":""},{"Id":26937,"Name":"口渴-非官方 Fabric 版 (ThirstWasTaken-UnofficialFabric)","CurseForge":"thirstwastaken-unofficialfabric","Modrinth":"thirstwastaken-unofficialfabric"},{"Id":26938,"Name":"车万女仆:AE附属 (Touhou Little Maid for AE2)","CurseForge":"touhou-little-maid-for-ae2","Modrinth":""},{"Id":26939,"Name":"","CurseForge":"command-block-golem-recast","Modrinth":""},{"Id":26940,"Name":"","CurseForge":"brntalk","Modrinth":"brntalk"},{"Id":26942,"Name":"","CurseForge":"retro-draconic","Modrinth":""},{"Id":26943,"Name":"","CurseForge":"nuts-and-fruit","Modrinth":""},{"Id":26944,"Name":"梦隐的幻想乡:Polymer 兼容性补丁 (Polymer Patch For Gensokyo: Reverie of Lost Dreams)","CurseForge":"","Modrinth":"polymer-patch-for-gensokyo-reverie-of-lost-dreams"},{"Id":26945,"Name":"自然地平线 (Nature Horizons)","CurseForge":"nature-horizons","Modrinth":"nature-horizons"},{"Id":26946,"Name":"","CurseForge":"","Modrinth":"openboatutils"},{"Id":26947,"Name":"故事模式模组 (Minecraft Story Mode Mod)","CurseForge":"minecraft-story-mode-mod","Modrinth":""},{"Id":26948,"Name":"模组依赖导出 (Mod Required)","CurseForge":"mod-required","Modrinth":"mod-required"},{"Id":26950,"Name":"","CurseForge":"photon-and-epicfight-mod","Modrinth":""},{"Id":26952,"Name":"","CurseForge":"no-see-no-tick","Modrinth":"no-see-no-tick"},{"Id":26953,"Name":"","CurseForge":"gregtechmodern-food-option","Modrinth":""},{"Id":26954,"Name":"","CurseForge":"tag-stacker","Modrinth":"tag-stacker"},{"Id":26955,"Name":"","CurseForge":"recursive-ae2-pattern-provider","Modrinth":"recursiveae2patternprovider"},{"Id":26956,"Name":"马铃薯面包 (Potato Bread)","CurseForge":"potato-bread","Modrinth":""},{"Id":26958,"Name":"机械动力:燃烧的天空 (Create: Skies on Fire)","CurseForge":"create-skies-on-fire","Modrinth":"create-skies-on-fire"},{"Id":26959,"Name":"机械动力:装壳开窗 (Create: Right Hand)","CurseForge":"create-right-hand","Modrinth":"create-right-hand"},{"Id":26960,"Name":"","CurseForge":"","Modrinth":"create-configured"},{"Id":26961,"Name":"","CurseForge":"unified-api","Modrinth":"unified-api"},{"Id":26962,"Name":"等轴渲染 - 分叉版 (Isometric Renders - Forked)","CurseForge":"isometric-renders-forked","Modrinth":"isometric-renders-forked"},{"Id":26963,"Name":"魔戒信息显示 (LOTR Info)","CurseForge":"","Modrinth":"lotrinfo"},{"Id":26964,"Name":"压缩空间:产量推演 重制版 (CompactMachinesPOR)","CurseForge":"compactmachinespor","Modrinth":"compactmachinespor"},{"Id":26965,"Name":"","CurseForge":"enhanced-celestials-tweaks","Modrinth":""},{"Id":26966,"Name":"","CurseForge":"","Modrinth":"golemscript"},{"Id":26967,"Name":"磨刀石 (Grindstone Sharpener)","CurseForge":"grindstone-sharpener","Modrinth":"grindstone-sharpener"},{"Id":26968,"Name":"","CurseForge":"dynamiducts","Modrinth":""},{"Id":26969,"Name":"","CurseForge":"more-creeps-and-weirdos-revival","Modrinth":"more-creeps-revival"},{"Id":26970,"Name":"","CurseForge":"rolling-giant-oldest-view","Modrinth":"rolling-giant-oldest-view"},{"Id":26971,"Name":"","CurseForge":"nvl-simple-blocks","Modrinth":""},{"Id":26974,"Name":"","CurseForge":"beyond-the-skybox","Modrinth":"beyond_the_skybox"},{"Id":26975,"Name":"","CurseForge":"frostbytes-maximum-mobility","Modrinth":"frostbytes-maximum-mobility"},{"Id":26976,"Name":"","CurseForge":"armor-stand-arms-mod","Modrinth":""},{"Id":26977,"Name":"","CurseForge":"less-simple-void-world","Modrinth":""},{"Id":26978,"Name":"","CurseForge":"metallum-metal-backend","Modrinth":"metallum-mc"},{"Id":26979,"Name":"","CurseForge":"just-hammers-backport","Modrinth":"just-hammers-backport"},{"Id":26980,"Name":"","CurseForge":"additional-hammers","Modrinth":""},{"Id":26981,"Name":"","CurseForge":"nvls-teleport-blocks","Modrinth":""},{"Id":26982,"Name":"车万女仆:香草伙伴 (Touhou Little Maid - Vanilla Companion)","CurseForge":"touhou-little-maid-vanilla-companion","Modrinth":"touhou-little-maid-vanilla-companion"},{"Id":26983,"Name":"","CurseForge":"immersive-favella","Modrinth":""},{"Id":26984,"Name":"","CurseForge":"sable-destructive","Modrinth":"sable-destructive"},{"Id":26986,"Name":"寄械传动 (E-PCA Drive Addon)","CurseForge":"epca-drive","Modrinth":""},{"Id":26987,"Name":"未来小装饰 (Future Small Decorations)","CurseForge":"future-small-decorations","Modrinth":""},{"Id":26988,"Name":"","CurseForge":"the-wings-of-fire","Modrinth":"wings-of-fire!"},{"Id":26990,"Name":"诡厄遗物 (Goetic Legacy)","CurseForge":"goetic-legacy","Modrinth":"goetic-legacy"},{"Id":26991,"Name":"诡厄拓展 (Goety:Expansion)","CurseForge":"","Modrinth":"1.0.0"},{"Id":26992,"Name":"自适应宿敌 (Adaptive Nemesis)","CurseForge":"an-adaptive-nemesis","Modrinth":"anadaptive-nemesis"},{"Id":26993,"Name":"食补 (Gourmet Boost)","CurseForge":"gourmet-boost","Modrinth":"gourmet-boost"},{"Id":26994,"Name":"","CurseForge":"gastro-crisis","Modrinth":""},{"Id":26995,"Name":"错误数据包杀手 (Wrong Data Pack Killer)","CurseForge":"wrong-data-pack-killer","Modrinth":""},{"Id":26996,"Name":"","CurseForge":"auto-sable-physics","Modrinth":"auto-sable-physics"},{"Id":26997,"Name":"建造蓝图 (NSPrefab)","CurseForge":"nsprefab","Modrinth":""},{"Id":26998,"Name":"","CurseForge":"","Modrinth":"celestial-vela"},{"Id":26999,"Name":"","CurseForge":"rupters-random-mobs","Modrinth":""},{"Id":27000,"Name":"空气动力学 (Aerodynamics4MC)","CurseForge":"aerodynamics4mc","Modrinth":"aerodynamics4mc"},{"Id":27001,"Name":"","CurseForge":"elysium-jar","Modrinth":""},{"Id":27002,"Name":"","CurseForge":"walkie-talkie-plus","Modrinth":""},{"Id":27003,"Name":"","CurseForge":"luos-structures-of-goety","Modrinth":""},{"Id":27004,"Name":"","CurseForge":"atoms-blueprint-lib","Modrinth":""},{"Id":27005,"Name":"","CurseForge":"large-spruce-starter-house","Modrinth":""},{"Id":27006,"Name":"泰坦旧梦 (The Titans: Old Dream (Unofficial))","CurseForge":"the-titans-old-dream-unofficial","Modrinth":""},{"Id":27008,"Name":"","CurseForge":"join-autosprint-mod","Modrinth":"join-autosprint-mod"},{"Id":27009,"Name":"暗影迷雾 (Shadow Fog)","CurseForge":"etbw2-shadow-fog-effect","Modrinth":""},{"Id":27010,"Name":"","CurseForge":"zstdnet","Modrinth":""},{"Id":27011,"Name":"","CurseForge":"id-relocator","Modrinth":"id_relocator"},{"Id":27012,"Name":"","CurseForge":"blocks-previewer","Modrinth":"blocks-previewer"},{"Id":27013,"Name":"","CurseForge":"unsuspicious-block","Modrinth":"unsuspicious-block"},{"Id":27014,"Name":"光影流转 (Lumina Flow)","CurseForge":"lumina-flow","Modrinth":""},{"Id":27015,"Name":"","CurseForge":"hermesgod","Modrinth":"hermesgod"},{"Id":27016,"Name":"再见,配方书系统 (No Recipe Book System)","CurseForge":"no-recipe-book-system","Modrinth":"no-recipe-book-system"},{"Id":27017,"Name":"工程师材料 (Engineers Materials)","CurseForge":"engineers-materials","Modrinth":"engineers-materials"},{"Id":27018,"Name":"","CurseForge":"primitive-mobs-reforged","Modrinth":""},{"Id":27019,"Name":"群峦传说:更多煤 (TFC More Coal)","CurseForge":"tfc-more-coal","Modrinth":"tfc-more-coal"},{"Id":27020,"Name":"","CurseForge":"viscriptshop-market","Modrinth":"viscriptshop-market"},{"Id":27022,"Name":"","CurseForge":"emc-construction-wand","Modrinth":""},{"Id":27024,"Name":"群峦更好的耐火粘土 (TFC Better Fireclay)","CurseForge":"tfc-better-fireclay","Modrinth":"tfc-better-fireclay"},{"Id":27025,"Name":"终端交互集成 (Terminal Interaction Integration)","CurseForge":"terminal-interaction-integration","Modrinth":""},{"Id":27027,"Name":"","CurseForge":"","Modrinth":"atmospherics"},{"Id":27028,"Name":"","CurseForge":"tfc-pot-rule-breaker","Modrinth":""},{"Id":27029,"Name":"群峦热处理 (TFC Heat Treatment)","CurseForge":"tfc-heat-treatment","Modrinth":"tfc-heat-treatment"},{"Id":27030,"Name":"植物应用 (Botania Applie)","CurseForge":"botania-applie","Modrinth":""},{"Id":27031,"Name":"通量应用 (Flux Applied)","CurseForge":"flux-applied","Modrinth":""},{"Id":27032,"Name":"","CurseForge":"","Modrinth":"applied-kubejs"},{"Id":27033,"Name":"可视化套装效果编辑器 (Visual Set Edit)","CurseForge":"visual-set-edit","Modrinth":"visual-set-edit"},{"Id":27034,"Name":"","CurseForge":"","Modrinth":"telluscn"},{"Id":27035,"Name":"遐想装备 (ReverieGear)","CurseForge":"reveriegear","Modrinth":""},{"Id":27036,"Name":"","CurseForge":"fast-nbt","Modrinth":""},{"Id":27037,"Name":"","CurseForge":"multi-mob","Modrinth":""},{"Id":27038,"Name":"","CurseForge":"infernal-mobs-legacy","Modrinth":""},{"Id":27039,"Name":"左键拔刀剑 (SlashBlade Left Click)","CurseForge":"left-click-slashblade","Modrinth":""},{"Id":27040,"Name":"幻想乐事:XIV (Flavor Fantasy XIV)","CurseForge":"flavor-fantasy-xiv","Modrinth":""},{"Id":27041,"Name":"","CurseForge":"hunting-dimension-moderna","Modrinth":""},{"Id":27043,"Name":"","CurseForge":"nco-crafttweaker-legacy-lib-java","Modrinth":""},{"Id":27044,"Name":"","CurseForge":"daggers-and-deception","Modrinth":"daggers-and-deception"},{"Id":27045,"Name":"","CurseForge":"simpleintro","Modrinth":""},{"Id":27046,"Name":"好友联机 (FriendLink)","CurseForge":"friendlink","Modrinth":"friendlink"},{"Id":27048,"Name":"","CurseForge":"configurable-difficulty","Modrinth":"configurable-difficulty"},{"Id":27049,"Name":"探囊取物 (Su's Instant Swap)","CurseForge":"sus-instant-swap","Modrinth":"sus-instant-swap"},{"Id":27050,"Name":"","CurseForge":"the-scarecrow","Modrinth":"the-scarecrow"},{"Id":27051,"Name":"","CurseForge":"grue-the-darkness-hunter","Modrinth":""},{"Id":27052,"Name":"来自深渊:弹药包 (Cartridge)","CurseForge":"cartridge","Modrinth":"cartridge"},{"Id":27053,"Name":"JIOJIO的车载音响 (JIOJIO Car Audio)","CurseForge":"","Modrinth":"jiojiofly"},{"Id":27054,"Name":"","CurseForge":"keybindtool","Modrinth":""},{"Id":27055,"Name":"","CurseForge":"load-my-chunks","Modrinth":"load-my-chunks"},{"Id":27056,"Name":"模板工艺 (Template Craft)","CurseForge":"template-craft","Modrinth":""},{"Id":27057,"Name":"","CurseForge":"evolved-mekanism-apt-only","Modrinth":""},{"Id":27058,"Name":"傀儡装配:海纳百川 (ModularGolems: MassiveStorageUpgrade)","CurseForge":"modulargolemsmassivestorageupgrade","Modrinth":""},{"Id":27059,"Name":"时间缩放库 (TimeScaleLib)","CurseForge":"timescalelib","Modrinth":"timescalelib"},{"Id":27060,"Name":"模组鸣谢 (Mod Credits)","CurseForge":"","Modrinth":"moehreag-modcredits"},{"Id":27061,"Name":"泰坦黑曜石扩展 (Titan Obsidian)","CurseForge":"","Modrinth":"titanobsidian"},{"Id":27063,"Name":"钠-汉化模组 (Sodium Chinese Localization Mod)","CurseForge":"sodium-chinese-localization-package1-16-x","Modrinth":"mc1.16.5-sodium-chinese-localization-pack"},{"Id":27064,"Name":"月之石:乱七八糟 (Moonstone: Other)","CurseForge":"moonstone-other","Modrinth":"moonstone-other"},{"Id":27065,"Name":"联机反向连接 (Reverse Connect)","CurseForge":"reverseconnect","Modrinth":"reverseconnect"},{"Id":27066,"Name":"","CurseForge":"multiblockjs","Modrinth":"multiblockjs"},{"Id":27067,"Name":"","CurseForge":"saverestorer","Modrinth":"saverestorer"},{"Id":27069,"Name":"迷彩战车 (CamoWarfare)","CurseForge":"camowarfare","Modrinth":"camowarfare"},{"Id":27071,"Name":"","CurseForge":"dynamic-surroundings-legacy","Modrinth":""},{"Id":27072,"Name":"","CurseForge":"tacz-recycling","Modrinth":"tacz_recycling"},{"Id":27073,"Name":"","CurseForge":"","Modrinth":"the-king-sword"},{"Id":27075,"Name":"","CurseForge":"","Modrinth":"aaaparticlescommand"},{"Id":27076,"Name":"更好的战斗攻击距离修复 (Better Combat Reach Fix)","CurseForge":"better-combat-reach-fix","Modrinth":"better-combat-reach-fix"},{"Id":27077,"Name":"","CurseForge":"quick-access","Modrinth":"quick-access"},{"Id":27078,"Name":"","CurseForge":"harium","Modrinth":"harium"},{"Id":27079,"Name":"","CurseForge":"","Modrinth":"shared-folder-skins"},{"Id":27080,"Name":"","CurseForge":"","Modrinth":"marketmod"},{"Id":27081,"Name":"","CurseForge":"the-summoner-resummoned","Modrinth":""},{"Id":27082,"Name":"","CurseForge":"stupendous-smeltery-accelerator","Modrinth":""},{"Id":27083,"Name":"","CurseForge":"tiny-potatoes-evolved","Modrinth":""},{"Id":27085,"Name":"无粒子 (No Particle)","CurseForge":"no-particle","Modrinth":"no-particle"},{"Id":27086,"Name":"现代工业化:曲柄动力! (Modern Industrialization Hand Crank Power!)","CurseForge":"modern-industrialization-hand-crank-power","Modrinth":"mi-hand-crank-power!"},{"Id":27087,"Name":"","CurseForge":"","Modrinth":"world-remembers-dear-diary"},{"Id":27088,"Name":"","CurseForge":"nuclearcraft-neohaul","Modrinth":"nuclearcraft-neohaul"},{"Id":27090,"Name":"","CurseForge":"golem-crackiness","Modrinth":""},{"Id":27092,"Name":"多人Boss属性修改器 (Multiplayer Boss Attribute Modifier)","CurseForge":"multiplayer-boss-attribute-modifier","Modrinth":""},{"Id":27093,"Name":"","CurseForge":"adventrous-gamers-tnt","Modrinth":""},{"Id":27095,"Name":"","CurseForge":"tacz-bullet-improvement","Modrinth":"tacz-tacz-bullet-improvement"},{"Id":27096,"Name":"","CurseForge":"","Modrinth":"ballistic-missile-mod"},{"Id":27097,"Name":"","CurseForge":"enchanted-arsenal","Modrinth":"enchanted-arsenal"},{"Id":27098,"Name":"","CurseForge":"","Modrinth":"mori-nomending"},{"Id":27099,"Name":"","CurseForge":"","Modrinth":"sadjiers-playertracker"},{"Id":27100,"Name":"","CurseForge":"monster-hunter-craftlands","Modrinth":"mhcraftlands"},{"Id":27101,"Name":"过期食物 (Expired Food)","CurseForge":"","Modrinth":"expired-food"},{"Id":27102,"Name":"宝箱猪 (Piggy Bank)","CurseForge":"redstone-chans-piggy-bank","Modrinth":"piggy-bank"},{"Id":27103,"Name":"","CurseForge":"ae2-monotype-infinity-cell","Modrinth":""},{"Id":27104,"Name":"","CurseForge":"souls-disks-soulpliedenergistics-backport","Modrinth":""},{"Id":27105,"Name":"","CurseForge":"me-xposed","Modrinth":""},{"Id":27106,"Name":"搜刮物品 (Item Scavenging)","CurseForge":"","Modrinth":"item-scavenging"},{"Id":27107,"Name":"","CurseForge":"soulpliedenergistics-1-20-1-backport","Modrinth":""},{"Id":27108,"Name":"","CurseForge":"more-mob-variants-modernized","Modrinth":"more-mob-variants-modernized"},{"Id":27109,"Name":"","CurseForge":"","Modrinth":"voxy-fog-addon"},{"Id":27110,"Name":"宽带优化 (BandwidthOptimizer)","CurseForge":"bandwidthoptimizer","Modrinth":"bandwidthoptimizer"},{"Id":27111,"Name":"棍木 (Gunwood)","CurseForge":"gunwood","Modrinth":""},{"Id":27112,"Name":"幻形者诅咒非官方版 (Shape Shifter Curse-Unofficial Port)","CurseForge":"shape-shifter-curse-unofficial-port","Modrinth":"shape-shifter-curse-unofficial-port"},{"Id":27113,"Name":"","CurseForge":"deepnull-reforged","Modrinth":"deepnull-reforged"},{"Id":27114,"Name":"","CurseForge":"","Modrinth":"unlocked-void-sea"},{"Id":27115,"Name":"","CurseForge":"brutal","Modrinth":""},{"Id":27116,"Name":"更大的战利品箱 (Lootr Bigger Chest)","CurseForge":"lootrbiggerchest","Modrinth":"lootrbiggerchest"},{"Id":27117,"Name":"","CurseForge":"quark-quilts-n-stains","Modrinth":""},{"Id":27118,"Name":"","CurseForge":"gravity-gun-reforged","Modrinth":""},{"Id":27119,"Name":"","CurseForge":"stupid-things-even-dumber","Modrinth":""},{"Id":27120,"Name":"","CurseForge":"shreks-revenge","Modrinth":""},{"Id":27121,"Name":"暮色:另类(重置版) (Alternative Twilight Remastere)","CurseForge":"alternative-twilight-remastered-version","Modrinth":"alternative-twilight(remastered)"},{"Id":27123,"Name":"","CurseForge":"compact-f3-plus","Modrinth":"compact-f3-plus"},{"Id":27124,"Name":"","CurseForge":"flamboyant-repalletized","Modrinth":""},{"Id":27125,"Name":"","CurseForge":"bannerpoint","Modrinth":"bannerpoint"},{"Id":27126,"Name":"MrCrayfish 的载具非官方版 (MrCrayfish's Vehicle Unofficial)","CurseForge":"mrcrayfishs-vehicle-unofficial","Modrinth":"mrcrayfishs-vehicle-unofficial"},{"Id":27128,"Name":"箱柜索引 (Container Indexer)","CurseForge":"","Modrinth":"container-indexer-qol"},{"Id":27129,"Name":"套装盒 (Armor Set Box)","CurseForge":"armor-set-box","Modrinth":""},{"Id":27130,"Name":"","CurseForge":"have-a-bad-day","Modrinth":"have-a-bad-day"},{"Id":27131,"Name":"","CurseForge":"nomorecraters","Modrinth":""},{"Id":27132,"Name":"甲弹系统 (BullerproofArmorSystemMod)","CurseForge":"","Modrinth":"bullerproof-armorsystem-mod"},{"Id":27133,"Name":"","CurseForge":"","Modrinth":"vulkan-postfx"},{"Id":27134,"Name":"","CurseForge":"talkingheads","Modrinth":"talkingheads"},{"Id":27136,"Name":"科能工程:再技术化 (Kenergy Engineering Retechnicalized)","CurseForge":"kenergy-engineering-retechnicalized","Modrinth":"kenergyengineering"},{"Id":27137,"Name":"简易生物生成控制 (Easy Mob Spawn Control)","CurseForge":"easy-mob-spawn-control","Modrinth":"easy-mob-spawn-control"},{"Id":27138,"Name":"","CurseForge":"legends-mod-glfix","Modrinth":""},{"Id":27139,"Name":"","CurseForge":"polymer-pipes","Modrinth":"polymer-pipes"},{"Id":27140,"Name":"","CurseForge":"seam","Modrinth":"seam"},{"Id":27141,"Name":"始终开放水域-NeoForge (AlwaysOpenWaterNeoForge)","CurseForge":"alwaysopenwaterneoforge","Modrinth":"alwaysopenwaterneoforge"},{"Id":27143,"Name":"","CurseForge":"carryon-patched","Modrinth":""},{"Id":27144,"Name":"封包植物魔法 (PackagedBotania)","CurseForge":"packagedbotania","Modrinth":""},{"Id":27145,"Name":"应用能源2:样板查找 (AE2 Pattrn Find)","CurseForge":"ae2-pattrn-find","Modrinth":""},{"Id":27146,"Name":"","CurseForge":"aether-no-nerf","Modrinth":"aether-no-nerf"},{"Id":27147,"Name":"真实火把:重生 (Realistic Torches (Reborn))","CurseForge":"realistic-torches-reborn","Modrinth":""},{"Id":27148,"Name":"","CurseForge":"the-summoner","Modrinth":""},{"Id":27149,"Name":"","CurseForge":"large-meals","Modrinth":""},{"Id":27150,"Name":"","CurseForge":"animal-weights","Modrinth":""},{"Id":27151,"Name":"新生魔艺:存储讲台拓展 (Make Ars Lectern Great Again)","CurseForge":"make-ars-lectern-great-again","Modrinth":"make-ars-lectern-great-again"},{"Id":27153,"Name":"显示槽位引索 (View Slot Index)","CurseForge":"view-slot-index","Modrinth":"view-slot-index"},{"Id":27154,"Name":"","CurseForge":"fabric-tabs","Modrinth":""},{"Id":27155,"Name":"","CurseForge":"fast-tag","Modrinth":""},{"Id":27158,"Name":"ME综合工作终端 (AE2 WCWT)","CurseForge":"ae2-wcwt","Modrinth":"ae2-wcwt"},{"Id":27159,"Name":"","CurseForge":"food-expansion-reforged","Modrinth":""},{"Id":27160,"Name":"","CurseForge":"nodeworks","Modrinth":"nodeworks"},{"Id":27161,"Name":"","CurseForge":"","Modrinth":"explosiveaircraft"},{"Id":27163,"Name":"","CurseForge":"advanced-netherite-polymer-patch","Modrinth":""},{"Id":27164,"Name":"海瑞的连锁挖矿 (Harry-hq's Vein Miner)","CurseForge":"harry-hqs-vein-miner","Modrinth":"harry-hqs-vein-miner"},{"Id":27165,"Name":"","CurseForge":"threading-entity-mod","Modrinth":""},{"Id":27166,"Name":"","CurseForge":"twemoji","Modrinth":"twemoji"},{"Id":27167,"Name":"股市 (StockMarket)","CurseForge":"stockmarket","Modrinth":"kroia_stockmarket"},{"Id":27168,"Name":"","CurseForge":"ae2-matter-condenser-recipe","Modrinth":""},{"Id":27169,"Name":"储物板条箱 (Only Crates)","CurseForge":"only-crates","Modrinth":""},{"Id":27170,"Name":"","CurseForge":"ltx-industries","Modrinth":"ltx-industries"},{"Id":27171,"Name":"","CurseForge":"digital-chests-polymer","Modrinth":"digital-chests"},{"Id":27172,"Name":"","CurseForge":"","Modrinth":"findme-again"},{"Id":27173,"Name":"","CurseForge":"polytech","Modrinth":"polytech"},{"Id":27174,"Name":"群峦烟熏烤炉 (TFC Offset Smoker)","CurseForge":"tfc-offset-smoker","Modrinth":""},{"Id":27175,"Name":"","CurseForge":"minestruct-recrafted","Modrinth":""},{"Id":27176,"Name":"","CurseForge":"actually-forgotten-additions","Modrinth":""},{"Id":27177,"Name":"垂直快捷栏 (Iventory Vertical Swap)","CurseForge":"iventory-vertical-swap","Modrinth":"inventory-vertical-swap"},{"Id":27179,"Name":"巫术:村庄 (Witchery (Villages))","CurseForge":"witchery-villages","Modrinth":""},{"Id":27180,"Name":"","CurseForge":"tree-physics","Modrinth":"tree-physics"},{"Id":27181,"Name":"荒芜:重燃 (Desolation: Reburn (Forge))","CurseForge":"desolation-reburn-forge","Modrinth":""},{"Id":27183,"Name":"","CurseForge":"villager-retaliation","Modrinth":"villager-retaliation"},{"Id":27184,"Name":"","CurseForge":"more-furnaces-polymer","Modrinth":"morefurnaces"},{"Id":27185,"Name":"","CurseForge":"","Modrinth":"waylandcraft"},{"Id":27186,"Name":"","CurseForge":"peeping-tom","Modrinth":"peeping-tom"},{"Id":27187,"Name":"","CurseForge":"lycanites-mobs-reloaded","Modrinth":""},{"Id":27188,"Name":"","CurseForge":"mmr-random-fix","Modrinth":"mmr-random-fix"},{"Id":27189,"Name":"","CurseForge":"secondwind","Modrinth":"second-wind-mod"},{"Id":27190,"Name":"","CurseForge":"","Modrinth":"insomnia"},{"Id":27192,"Name":"生态花园 (Ecological Garden)","CurseForge":"ecological-garden","Modrinth":"ecological-garden"},{"Id":27193,"Name":"防御炮台 (Defense Turrets)","CurseForge":"defenseturrets","Modrinth":""},{"Id":27194,"Name":"更好的家具-NeoForge (Better Furniture-Neoforge)","CurseForge":"","Modrinth":"better-furniture-neoforge"},{"Id":27195,"Name":"","CurseForge":"","Modrinth":"lamb-lanterns"},{"Id":27196,"Name":"更好的存储讲台 (Better Storage Lectern)","CurseForge":"better-storage-lectern","Modrinth":"better-storage-lectern"},{"Id":27197,"Name":"不值钱的东西请远离我 (CheapAway)","CurseForge":"cheapaway","Modrinth":"cheapaway"},{"Id":27199,"Name":"拔刀剑:视检 (SlashBlade Inspect)","CurseForge":"slashblade-inspect","Modrinth":""},{"Id":27200,"Name":"","CurseForge":"sable-true-impact","Modrinth":"sable-true-impact"},{"Id":27202,"Name":"","CurseForge":"the-beasts-reborn","Modrinth":""},{"Id":27203,"Name":"","CurseForge":"require-wizard-armor","Modrinth":""},{"Id":27204,"Name":"","CurseForge":"emilink","Modrinth":"emilink"},{"Id":27205,"Name":"","CurseForge":"call-of-companions","Modrinth":""},{"Id":27206,"Name":"","CurseForge":"fps-test-benchmark","Modrinth":"fps-benchmark"},{"Id":27207,"Name":"","CurseForge":"rldragonsteel","Modrinth":""},{"Id":27208,"Name":"","CurseForge":"ice-and-fire-attack-ancient-warfare-2","Modrinth":""},{"Id":27209,"Name":"","CurseForge":"mythic-tinkers","Modrinth":"mythic-tinkers"},{"Id":27211,"Name":"灾变纪元 (Cataclysm Era)","CurseForge":"","Modrinth":"cataclysm-era"},{"Id":27212,"Name":"虫巢集群 (Hive Collective‌)","CurseForge":"","Modrinth":"hive-collective"},{"Id":27213,"Name":"","CurseForge":"","Modrinth":"stacksizetweaks"},{"Id":27216,"Name":"","CurseForge":"","Modrinth":"optionalfurnacesmelting"},{"Id":27217,"Name":"","CurseForge":"just-enough-recipe-sharing","Modrinth":"just-enough-recipe-sharing"},{"Id":27218,"Name":"","CurseForge":"surface-geodes","Modrinth":""},{"Id":27219,"Name":"","CurseForge":"emiaccelerator","Modrinth":"emiaccelerator"},{"Id":27220,"Name":"","CurseForge":"yazzs-dungeons-and-legends","Modrinth":""},{"Id":27221,"Name":"目之所及! (Point Your Destination!)","CurseForge":"point-your-destination","Modrinth":""},{"Id":27222,"Name":"","CurseForge":"deep-retrograde","Modrinth":"deep-retrograde"},{"Id":27223,"Name":"","CurseForge":"more-tools-polymer","Modrinth":"more-tools"},{"Id":27224,"Name":"","CurseForge":"book2map","Modrinth":"book2map"},{"Id":27225,"Name":"简单音乐控制 (Simple Music Control)","CurseForge":"simple-music-control","Modrinth":"simple-music-control"},{"Id":27226,"Name":"可视化按键绑定管理 (New Visual Keybing)","CurseForge":"new-visual-keybing","Modrinth":"new-visual-keybing"},{"Id":27228,"Name":"","CurseForge":"motley-fins","Modrinth":""},{"Id":27229,"Name":"","CurseForge":"rays-of-rament","Modrinth":""},{"Id":27230,"Name":"","CurseForge":"paradox_","Modrinth":""},{"Id":27231,"Name":"MC易如反掌 (MC SO EASY)","CurseForge":"mc-so-easy","Modrinth":""},{"Id":27233,"Name":"群峦传说:光阴荏苒 (TerraFirmaCraft: Time Flies)","CurseForge":"terrafirmacraft-time-flies","Modrinth":""},{"Id":27234,"Name":"","CurseForge":"arcadia-ah","Modrinth":"arcadia-ah"},{"Id":27235,"Name":"创造者快捷栏 (Creator Hotbar)","CurseForge":"creator-hotbar","Modrinth":""},{"Id":27236,"Name":"麦冬木砧 (Ophiopogon Wooden Anvil)","CurseForge":"ophiopogon-wooden-anvil","Modrinth":"ophiopogon-wooden-anvil"},{"Id":27237,"Name":"","CurseForge":"","Modrinth":"voxyworldgenxaero-bridge"},{"Id":27238,"Name":"诡厄天境 (Goety Aether)","CurseForge":"goety-aether","Modrinth":""},{"Id":27239,"Name":"英雄不屈 (Immortality)","CurseForge":"immortality-by-adoleiiiiii","Modrinth":"immortality-by-adoleiiiiii"},{"Id":27240,"Name":"新帕斯特之梦 (NeoPasterDream)","CurseForge":"neopasterdream","Modrinth":""},{"Id":27241,"Name":"虚空工艺 (VoidCraft: Phase Technology)","CurseForge":"voidcraft-phase-technology","Modrinth":""},{"Id":27242,"Name":"","CurseForge":"powah-cable-orb-extension","Modrinth":""},{"Id":27243,"Name":"","CurseForge":"malisis-doors-reforged","Modrinth":""},{"Id":27244,"Name":"","CurseForge":"rack-it-up","Modrinth":"rack-it-up"},{"Id":27245,"Name":"","CurseForge":"lychee-oritech","Modrinth":"lychee-oritech"},{"Id":27248,"Name":"","CurseForge":"extermination","Modrinth":"wotw-extermination"},{"Id":27249,"Name":"","CurseForge":"","Modrinth":"trims-expanded"},{"Id":27250,"Name":"","CurseForge":"auroral","Modrinth":"auroral"},{"Id":27251,"Name":"","CurseForge":"filtered-hoppers","Modrinth":""},{"Id":27252,"Name":"群峦堆硝 (TFC Nitrary)","CurseForge":"tfc-nitrary","Modrinth":""},{"Id":27253,"Name":"调整无敌帧 (IFramesTweaker)","CurseForge":"iframestweaker","Modrinth":"iframestweaker"},{"Id":27254,"Name":"","CurseForge":"moderndifficultylocker","Modrinth":"difficultylocker"},{"Id":27255,"Name":"","CurseForge":"pepsied-wide-hopper","Modrinth":""},{"Id":27256,"Name":"","CurseForge":"hell-gunners","Modrinth":""},{"Id":27257,"Name":"苍白橡木建材 (Pale Oak Building Materials)","CurseForge":"","Modrinth":"pale-oak-building-materials"},{"Id":27258,"Name":"应用格雷 (Applied Greg)","CurseForge":"applied-greg","Modrinth":""},{"Id":27259,"Name":"风暴节奏 (Stormfest)","CurseForge":"","Modrinth":"stormfest"},{"Id":27260,"Name":"可视化世界合成编辑器 (Visual Recipe Edit-World)","CurseForge":"visual-recipe-edit-world","Modrinth":"visual-recipe-edit-world"},{"Id":27261,"Name":"","CurseForge":"pepsied-brew-queue","Modrinth":"brew-queue"},{"Id":27262,"Name":"","CurseForge":"pepsied-upgradeable-spawners","Modrinth":""},{"Id":27263,"Name":"黑檀工艺 (Ebon Arts)","CurseForge":"ebon-arts","Modrinth":""},{"Id":27264,"Name":"","CurseForge":"dnt-end-castle-standalone","Modrinth":""},{"Id":27265,"Name":"重塑饰品 (Reshapes)","CurseForge":"reshapes","Modrinth":"reshapes"},{"Id":27266,"Name":"精致存储:链接 (Refined Storage Linker)","CurseForge":"","Modrinth":"refinedstorage-linker"},{"Id":27267,"Name":"","CurseForge":"limacore","Modrinth":"limacore"},{"Id":27269,"Name":"摔落药水 (Fall Potion)","CurseForge":"","Modrinth":"fall-potion"},{"Id":27270,"Name":"JEI拔刀剑 (JEI SlashBlade)","CurseForge":"jei-slashblade","Modrinth":""},{"Id":27271,"Name":"","CurseForge":"","Modrinth":"carpet-rof-addition"},{"Id":27272,"Name":"视觉分享 (Visual Share)","CurseForge":"","Modrinth":"visual-share"},{"Id":27273,"Name":"音频合成器 (Audio Synth)","CurseForge":"","Modrinth":"audio-synth"},{"Id":27276,"Name":"懒人能源 (LazyEnergy)","CurseForge":"lazyenergy","Modrinth":""},{"Id":27277,"Name":"ToroHealth 伤害显示:延续 (ToroHealth-Continued)","CurseForge":"torohealth-continued","Modrinth":"torohealth-continued"},{"Id":27279,"Name":"","CurseForge":"","Modrinth":"simplenetherores"},{"Id":27280,"Name":"","CurseForge":"recreative","Modrinth":"recreative"},{"Id":27281,"Name":"","CurseForge":"","Modrinth":"notsofarlands"},{"Id":27282,"Name":"","CurseForge":"long-time-no-sword-longsword","Modrinth":"long-time-no-sword"},{"Id":27284,"Name":"","CurseForge":"rack-it-up-twilight-forest","Modrinth":"rack-it-up-twilight-forest"},{"Id":27285,"Name":"","CurseForge":"squash","Modrinth":""},{"Id":27286,"Name":"","CurseForge":"ars-zero","Modrinth":""},{"Id":27287,"Name":"","CurseForge":"","Modrinth":"mtr-34-minecraft-transit-railway-3+4"},{"Id":27288,"Name":"更多方块 (MoreBlock)","CurseForge":"moreblock","Modrinth":""},{"Id":27289,"Name":"现代工业化EMC支持 (Modern Industrialization EMC Machine Condition)","CurseForge":"modern-industrialization-emc-machine-condition","Modrinth":"modern-industrialization-emc-machine-condition"},{"Id":27290,"Name":"鳍妙至极 (Fintastic Supreme)","CurseForge":"fintastic-supreme","Modrinth":"fintastic-supreme"},{"Id":27291,"Name":"llpsw的库 (llpswLib)","CurseForge":"","Modrinth":"llpswlib"},{"Id":27292,"Name":"","CurseForge":"citadel-up","Modrinth":""},{"Id":27294,"Name":"","CurseForge":"hologram-api","Modrinth":"hologram-api"},{"Id":27295,"Name":"四面体附魔 (Tetrahedron Enchantment)","CurseForge":"tetrahedron-enchantment","Modrinth":""},{"Id":27296,"Name":"","CurseForge":"iskanderts-utilities","Modrinth":"iska-utils"},{"Id":27297,"Name":"史诗战斗:舞动 (EpicFight : Dancing)","CurseForge":"epicfight-dancing","Modrinth":"epicfight-dancing"},{"Id":27298,"Name":"史诗战斗:踢击技能 (EpicFight : Kick Skills)","CurseForge":"epicfight-kick-skills","Modrinth":"epicfight-kick-skills"},{"Id":27299,"Name":"","CurseForge":"untitled-log","Modrinth":"untitledlog"},{"Id":27300,"Name":"","CurseForge":"hand-magic","Modrinth":"hand-magic"},{"Id":27301,"Name":"回溯 - 加载慢,更新快 (Rollback)","CurseForge":"rollback","Modrinth":""},{"Id":27301,"Name":"回溯 (Rollback) - 加载快,更新慢","CurseForge":"","Modrinth":"rollback-mod"},{"Id":27302,"Name":"MCS2枪包EMC值兼容 (MCS2 ProjectE Compat)","CurseForge":"tacz-mcs2-projecte-compat","Modrinth":"tacz-mcs2-projecte-compat"},{"Id":27304,"Name":"","CurseForge":"ram-memory-notice","Modrinth":""},{"Id":27305,"Name":"","CurseForge":"pepsied-redstone-table","Modrinth":"redstone-table"},{"Id":27306,"Name":"","CurseForge":"wider-tab","Modrinth":"wider-tab"},{"Id":27307,"Name":"TPA指令 (Tpa Command)","CurseForge":"","Modrinth":"tpa-command"},{"Id":27308,"Name":"玩家重掷 (Reroll Player)","CurseForge":"reroll-player","Modrinth":""},{"Id":27309,"Name":"","CurseForge":"netherlink-nli","Modrinth":"netherlink-nli"},{"Id":27310,"Name":"个性伤害数字显示 (Highly Customizable Damage Numbers)","CurseForge":"hicudan","Modrinth":"hicudan"},{"Id":27311,"Name":"","CurseForge":"fentlib","Modrinth":"fentlib"},{"Id":27312,"Name":"星环 (Planet Ring)","CurseForge":"planetring","Modrinth":"planetring"},{"Id":27313,"Name":"","CurseForge":"expanded-events","Modrinth":""},{"Id":27314,"Name":"五号化合物 (Compound V)","CurseForge":"compound-v","Modrinth":"compound-v"},{"Id":27315,"Name":"","CurseForge":"create-aeronautics-dyeable-components","Modrinth":"aeronautics-dyeable-components"},{"Id":27316,"Name":"苹果拓展 (Apple Expand)","CurseForge":"apple-expand","Modrinth":""},{"Id":27317,"Name":"","CurseForge":"alexs-mobs-legacy","Modrinth":""},{"Id":27318,"Name":"","CurseForge":"alexs-mobs-up","Modrinth":""},{"Id":27319,"Name":"","CurseForge":"the-summoner-revived-raid","Modrinth":""},{"Id":27320,"Name":"月尖塔 (Moon Spire)","CurseForge":"","Modrinth":"moon-spire"},{"Id":27321,"Name":"附魔词条折叠 (Enchanted Display)","CurseForge":"","Modrinth":"enchanted-display"},{"Id":27322,"Name":"遗体 x 龙之生存 (Corpse x Dragon Survival)","CurseForge":"corpse-x-dragon-survival","Modrinth":""},{"Id":27323,"Name":"龙之生存:滚筒飞行 (Dragon Barrel Roll)","CurseForge":"dragon-barrel-roll","Modrinth":""},{"Id":27324,"Name":"","CurseForge":"citadel-legacy","Modrinth":""},{"Id":27325,"Name":"","CurseForge":"schematicians-goggles","Modrinth":"schematicians-goggles"},{"Id":27326,"Name":"","CurseForge":"create-aeronautics-x-curios-api-compat","Modrinth":""},{"Id":27327,"Name":"","CurseForge":"create-simulated-additions","Modrinth":"create-simulated-additions"},{"Id":27328,"Name":"","CurseForge":"create-bigger-storage-updated-to-create-6","Modrinth":"create-bigger-storage-updateded-to-create-6"},{"Id":27329,"Name":"","CurseForge":"create-stuff-n-additions-x-sable-aeronautics","Modrinth":"create-stuff-n-additions-x-sable-aeronautics-compat"},{"Id":27330,"Name":"机械动力航空学:FTB 区块 (Create Aeronautics: FTB Chunks)","CurseForge":"create-aeronautics-ftb-chunks","Modrinth":""},{"Id":27331,"Name":"","CurseForge":"copycats-aeronautics-weight","Modrinth":"copycats+-aeronautics-weight"},{"Id":27332,"Name":"机械动力:多功能传动箱 (Create Versatile Gearbox)","CurseForge":"","Modrinth":"create-versatile-gearbox"},{"Id":27333,"Name":"机械动力:小型发电机","CurseForge":"create-small-generator","Modrinth":"create-small-generator"},{"Id":27334,"Name":"","CurseForge":"","Modrinth":"create-stuff-n-additions-curios-compat"},{"Id":27335,"Name":"","CurseForge":"ymw","Modrinth":"y-modern-warfare"},{"Id":27336,"Name":"","CurseForge":"cbc-neo-warfare","Modrinth":""},{"Id":27337,"Name":"机械动力:重力枪 (Create: Gravity Gun)","CurseForge":"create-gravity-gun","Modrinth":""},{"Id":27338,"Name":"","CurseForge":"create-simulated-thrusters","Modrinth":"create-simulated-thrusters"},{"Id":27339,"Name":"机械动力:降落伞 (Create: Parachute)","CurseForge":"","Modrinth":"createparachute"},{"Id":27340,"Name":"","CurseForge":"sable-schematic-tool","Modrinth":"sable-schematic-tool"},{"Id":27341,"Name":"匠魂附魔与调整 (Tinkers Enchantment & Modification)","CurseForge":"tinkers-enchantment-modification","Modrinth":"tinkers-enchantment-modification"},{"Id":27344,"Name":"","CurseForge":"portal-gun-reforged","Modrinth":""},{"Id":27345,"Name":"","CurseForge":"wireless-redstone-lite","Modrinth":"wireless-redstone-lite"},{"Id":27347,"Name":"合成拓展-量子压缩机增强 (Extended Compressor)","CurseForge":"extended-compressor","Modrinth":"extended-compressor"},{"Id":27348,"Name":"TACZ更多枪械等级NPC (TACZ MORE LEVEL)","CurseForge":"tacz-more-level","Modrinth":"tacz_more_level"},{"Id":27349,"Name":"","CurseForge":"justdirethings-legacy","Modrinth":""},{"Id":27350,"Name":"","CurseForge":"nvl-force-fields","Modrinth":""},{"Id":27351,"Name":"","CurseForge":"nvl-portal-gates","Modrinth":""},{"Id":27352,"Name":"","CurseForge":"dramatictrees-bop","Modrinth":""},{"Id":27353,"Name":"","CurseForge":"dramatictrees-naturalegacy","Modrinth":""},{"Id":27358,"Name":"","CurseForge":"iskanderts-library","Modrinth":"iska-lib"},{"Id":27359,"Name":"","CurseForge":"vintage-resourcify","Modrinth":"vintage-resourcify"},{"Id":27360,"Name":"","CurseForge":"hp-hariplayer","Modrinth":"hp-hariplayer"},{"Id":27361,"Name":"","CurseForge":"harimt","Modrinth":"hmt-harimultithread"},{"Id":27363,"Name":"","CurseForge":"nearly-enough-items-nei","Modrinth":""},{"Id":27364,"Name":"","CurseForge":"nvlic2machines","Modrinth":""},{"Id":27365,"Name":"","CurseForge":"","Modrinth":"sableedit"},{"Id":27366,"Name":"最后一日 (The Last Day)","CurseForge":"the-last-day","Modrinth":"the-last-day-reset"},{"Id":27368,"Name":"","CurseForge":"","Modrinth":"aligner-mod"},{"Id":27369,"Name":"","CurseForge":"legendary-spellbook-eternal-prototype","Modrinth":""},{"Id":27370,"Name":"","CurseForge":"undo-craft","Modrinth":"undo-craft"},{"Id":27371,"Name":"","CurseForge":"mypos","Modrinth":"mypos"},{"Id":27372,"Name":"SA的摄像机控制模组 (SaCameraMod)","CurseForge":"sacameramod","Modrinth":""},{"Id":27373,"Name":"更好的加载屏幕 (Better loading screen)","CurseForge":"","Modrinth":"better-loading-screen-mod"},{"Id":27374,"Name":"新无中生有 (Fabricate Out of Nothing)","CurseForge":"fabricate-out-of-nothing","Modrinth":""},{"Id":27375,"Name":"","CurseForge":"radical-cobblemon-trainers-api","Modrinth":"rctapi"},{"Id":27377,"Name":"等价交换组队 (ProjectETeam)","CurseForge":"projecte-team","Modrinth":"projecte-team"},{"Id":27378,"Name":"","CurseForge":"scout-reforged","Modrinth":""},{"Id":27379,"Name":"","CurseForge":"time-in-a-bottle-rewinded","Modrinth":""},{"Id":27380,"Name":"","CurseForge":"book-of-familiars","Modrinth":"book-of-familiars"},{"Id":27381,"Name":"火影增强拓展 (Naruto Enhanced Extension)","CurseForge":"naruto-enhanced-extension","Modrinth":""},{"Id":27382,"Name":"妖怪们的归家(非官方移植) (Youkai's Homecoming Unofficial Port)","CurseForge":"youkais-homecoming-unofficial-port","Modrinth":"youkaishomecoming-unofficial-port"},{"Id":27383,"Name":"","CurseForge":"structure-tools-continued","Modrinth":"structure-tools-continued-(building-gadget)"},{"Id":27384,"Name":"大蛇丸模组 (Orochimaru Addon)","CurseForge":"orochimaru-addon","Modrinth":""},{"Id":27385,"Name":"至尊合成 (Supreme Crafting Backport)","CurseForge":"supreme-crafting-backport","Modrinth":""},{"Id":27386,"Name":"","CurseForge":"charging-gadgets-updated-fabric","Modrinth":""},{"Id":27387,"Name":"","CurseForge":"berry-overgrown","Modrinth":""},{"Id":27388,"Name":"探囊取物 (Wrench Finder)","CurseForge":"wrench-finder","Modrinth":""},{"Id":27389,"Name":"","CurseForge":"room-for-two","Modrinth":"room-for-two"},{"Id":27390,"Name":"友谊 (Friendship)","CurseForge":"","Modrinth":"friendship-breezeth"},{"Id":27391,"Name":"漏斗过滤器 (Hopper Filter)","CurseForge":"hopper-filter","Modrinth":"hopper-filter"},{"Id":27392,"Name":"可视化矿石生成编辑器 (Visual Ore Edit)","CurseForge":"visual-ore-edit","Modrinth":"visual-ore-edit"},{"Id":27393,"Name":"掠夺者的枪(非官方移植) (Pillager's Gun (Unofficial Port))","CurseForge":"pillagers-gun-unofficial-port","Modrinth":"pillagers-gun-(unofficial-port)"},{"Id":27394,"Name":"","CurseForge":"holo-damage-indicator","Modrinth":"holo-damage-indicator"},{"Id":27395,"Name":"","CurseForge":"industrialization-overdrive","Modrinth":"industrialization-overdrive"},{"Id":27396,"Name":"静态物流 (StaticLogistics)","CurseForge":"staticlogistics","Modrinth":""},{"Id":27397,"Name":"模块化格雷仓/格块化雷械 (Godular Tachinery)","CurseForge":"godular-tachinery","Modrinth":""},{"Id":27398,"Name":"灵动灯笼 (DynamicLantern)","CurseForge":"dynamiclantern","Modrinth":""},{"Id":27400,"Name":"","CurseForge":"hand-magic-renewed","Modrinth":"hand-magic-renewed"},{"Id":27401,"Name":"鎏龙之刃 (GlazedDragonSword)","CurseForge":"","Modrinth":"glazed-dragon-sword"},{"Id":27402,"Name":"","CurseForge":"mining-gadgets-updated-fabric","Modrinth":""},{"Id":27403,"Name":"区块清理 (MemorySweeper)","CurseForge":"memorysweeper","Modrinth":"memorysweeper"},{"Id":27404,"Name":"AS的附加包 (Carpet-AS-Addition)","CurseForge":"carpet-as-addition","Modrinth":""},{"Id":27405,"Name":"","CurseForge":"automatic-sorter","Modrinth":""},{"Id":27406,"Name":"四叶草 (FourLeafClover)","CurseForge":"","Modrinth":"fourleafclover"},{"Id":27407,"Name":"可重置的试炼宝库与试炼刷怪笼 (Resettable Trial Vaults & Spawners)","CurseForge":"resettable-trial-vaults-spawners","Modrinth":"resettable-trial-vaults-spawners"},{"Id":27409,"Name":"黑色灵魂 II (BLACKSOULS II)","CurseForge":"blacksouls-ii","Modrinth":""},{"Id":27410,"Name":"","CurseForge":"","Modrinth":"oxide"},{"Id":27411,"Name":"","CurseForge":"progresspeek","Modrinth":"progresspeek"},{"Id":27412,"Name":"匠魂盔甲扩展 (TConstruct Armor Extension)","CurseForge":"","Modrinth":"tconstruct-armor-extension"},{"Id":27413,"Name":"","CurseForge":"","Modrinth":"creative-inv"},{"Id":27414,"Name":"","CurseForge":"create-balanced-flight-fork-neoforge","Modrinth":""},{"Id":27415,"Name":"","CurseForge":"simplecables76","Modrinth":"simplecables76"},{"Id":27416,"Name":"","CurseForge":"jei-gateways","Modrinth":""},{"Id":27417,"Name":"","CurseForge":"pintonium","Modrinth":""},{"Id":27418,"Name":"森罗物语:幽匿 (Kaleidoscope Sculk)","CurseForge":"","Modrinth":"kaleidoscope_sculk"},{"Id":27419,"Name":"魔戒装备修饰高亮显示 (LOTR Modifier Highlights)","CurseForge":"lotr-modifier-highlights","Modrinth":""},{"Id":27420,"Name":"","CurseForge":"vista-aeronautics-fix","Modrinth":"vista-aeronautics-fix"},{"Id":27421,"Name":"鱼各有所爱 (Let Fish Love Reborn)","CurseForge":"let-fish-love-reborn","Modrinth":""},{"Id":27422,"Name":"冰火传说-龙巢修复 (IAFDragonFix)","CurseForge":"iaf-dragon-fix","Modrinth":"iafdragonfix"},{"Id":27423,"Name":"诡厄巫法内存修复 (Goety Apostle Fix)","CurseForge":"","Modrinth":"goety-apostle-fix"},{"Id":27424,"Name":"魔戒商人交易刷新进度显示 (LOTR Trader Reset Status)","CurseForge":"lotr-trader-reset-status","Modrinth":""},{"Id":27425,"Name":"魔戒铁砧重铸高亮显示 (LOTR Anvil Reforged)","CurseForge":"lotr-anvil-reforged","Modrinth":""},{"Id":27426,"Name":"魔戒旅行地图联动 (LOTR-JourneyMap Bridge)","CurseForge":"lotr-journeymap-bridge","Modrinth":""},{"Id":27427,"Name":"AE2陨石附加 (AE2 Meteorite Addon)","CurseForge":"ae2-meteorite-addon","Modrinth":""},{"Id":27428,"Name":"","CurseForge":"async-locator-refined","Modrinth":"async-locator-refined"},{"Id":27429,"Name":"","CurseForge":"just-dire-things-forge","Modrinth":""},{"Id":27430,"Name":"","CurseForge":"fluid-pipes","Modrinth":"fluidpipes"},{"Id":27431,"Name":"猫咪装饰:重置 (Nekoration Remastered)","CurseForge":"nekoration-remastered","Modrinth":""},{"Id":27432,"Name":"锲石 (Chislate)","CurseForge":"","Modrinth":"chislate"},{"Id":27433,"Name":"星轨立方 (Astralrail Cube)","CurseForge":"","Modrinth":"astralrail-cube"},{"Id":27434,"Name":"更多僵尸 (Mo' Zombies)","CurseForge":"more-zombies-legacy","Modrinth":""},{"Id":27435,"Name":"魔戒马匹喂食提醒 (LOTR Horse Heal Alert)","CurseForge":"lotr-horse-heal-alert","Modrinth":""},{"Id":27436,"Name":"","CurseForge":"the-moder","Modrinth":""},{"Id":27437,"Name":"","CurseForge":"reborn-core-unoffical-1-21-11","Modrinth":""},{"Id":27438,"Name":"","CurseForge":"","Modrinth":"twsmp-discs"},{"Id":27439,"Name":"经济市场 (EconomicMarket)","CurseForge":"","Modrinth":"economicmarket"},{"Id":27441,"Name":"","CurseForge":"","Modrinth":"enhanced-voxy-addon"},{"Id":27442,"Name":"","CurseForge":"aeronautics-deployer-direction-fix","Modrinth":""},{"Id":27443,"Name":"","CurseForge":"","Modrinth":"operation-starcleave"},{"Id":27444,"Name":"","CurseForge":"littlemaid-loving-crossover-mod","Modrinth":""},{"Id":27445,"Name":"AE2 附加 (AE2 Additions)","CurseForge":"ae2-additions-sophisticated-backpacks-integration","Modrinth":""},{"Id":27446,"Name":"","CurseForge":"bgm-player","Modrinth":"bgm-player"},{"Id":27447,"Name":"更好的换行 (Better Line Break)","CurseForge":"better-line-break","Modrinth":"better-line-break"},{"Id":27448,"Name":"","CurseForge":"holo-health-indicator","Modrinth":"holo-health-indicator"},{"Id":27449,"Name":"布罗艾:简化 (Blåhaj Lite)","CurseForge":"blahaj-lite","Modrinth":""},{"Id":27450,"Name":"进阶下界合金 (Enhanced Netherite)","CurseForge":"enhanced-netherite-xianziyu","Modrinth":"enhanced-netherite"},{"Id":27451,"Name":"生物适应性 (Adaptive Mobs)","CurseForge":"adaptive-mobs-1","Modrinth":""},{"Id":27452,"Name":"道士15狗 (taoist with 15 dogs)","CurseForge":"taoist-with-15-dogs","Modrinth":"taoist_with_15_dogs"},{"Id":27453,"Name":"","CurseForge":"","Modrinth":"gamerule-gui"},{"Id":27454,"Name":"物品交互动画 (Item Interactions Mod)","CurseForge":"","Modrinth":"item-interactions-mod"},{"Id":27455,"Name":"JEI 页面添加 (ggg JEI Plugin)","CurseForge":"ggg-jei-plugin","Modrinth":""},{"Id":27456,"Name":"","CurseForge":"ae2-utility","Modrinth":""},{"Id":27457,"Name":"RTS视角建造 (RTS Building: Build From Above)","CurseForge":"rts-building-build-from-above","Modrinth":"rts-building-build-from-above"},{"Id":27458,"Name":"现世遗痕 (Vestiges of the Present)","CurseForge":"vestiges-of-the-present","Modrinth":"vestiges-of-the-present"},{"Id":27459,"Name":"","CurseForge":"pull-it","Modrinth":""},{"Id":27460,"Name":"","CurseForge":"iris-veil-compat","Modrinth":"iris-veil-compat"},{"Id":27461,"Name":"","CurseForge":"floralchemy","Modrinth":""},{"Id":27462,"Name":"","CurseForge":"sound-subtitles","Modrinth":""},{"Id":27463,"Name":"","CurseForge":"custom-disenchanter","Modrinth":""},{"Id":27464,"Name":"","CurseForge":"blockhitding","Modrinth":""},{"Id":27465,"Name":"","CurseForge":"foxy","Modrinth":"foxy-mod"},{"Id":27466,"Name":"","CurseForge":"","Modrinth":"tensura-slimethrone-extras"},{"Id":27467,"Name":"新超级虚拟箱子 (New Super Virtual Chest)","CurseForge":"","Modrinth":"new-super-virtual-chest"},{"Id":27468,"Name":"殖民地链接 (ColonyLink)","CurseForge":"colonylink","Modrinth":""},{"Id":27469,"Name":"","CurseForge":"hopper-upper","Modrinth":""},{"Id":27471,"Name":"","CurseForge":"","Modrinth":"noxlights"},{"Id":27472,"Name":"","CurseForge":"","Modrinth":"catframe"},{"Id":27473,"Name":"","CurseForge":"yawningnekoapi","Modrinth":""},{"Id":27475,"Name":"救救我的配方书 (SaveMyRecipeBook)","CurseForge":"savemyrecipebook","Modrinth":""},{"Id":27476,"Name":"","CurseForge":"spectrumcraft","Modrinth":""},{"Id":27477,"Name":"","CurseForge":"redstone-overpower","Modrinth":"redstone-overpower"},{"Id":27478,"Name":"","CurseForge":"conductive-copper","Modrinth":""},{"Id":27479,"Name":"","CurseForge":"where-is-it-port","Modrinth":"where-is-it-port"},{"Id":27480,"Name":"","CurseForge":"","Modrinth":"create-geology"},{"Id":27481,"Name":"轧压均质装甲:分叉版 (Rolled Homongenous: Forked)","CurseForge":"rolled-homongenous-forked","Modrinth":"rolled-homongenous-forked"},{"Id":27482,"Name":"机械动力火炮:CC外设 (Create Big Cannons: Peripherals)","CurseForge":"","Modrinth":"cbcperipheral"},{"Id":27483,"Name":"机械动力:生物科技 (Create: Biotech)","CurseForge":"create-biotech","Modrinth":"create-biotech"},{"Id":27485,"Name":"机械动力:智械时代 (Create: LLM Era)","CurseForge":"create-llm-era","Modrinth":"create-llm-era"},{"Id":27486,"Name":"机械动力火炮:火力组件 (CBC: Firepower Components)","CurseForge":"cbc-firepower-components","Modrinth":"cbc-firepower-components"},{"Id":27487,"Name":"","CurseForge":"","Modrinth":"create-northstar-aeronautics-compatibility"},{"Id":27488,"Name":"机械动力:口袋工厂 (Create: Pocket Factory)","CurseForge":"","Modrinth":"create-pocket-factory"},{"Id":27489,"Name":"带有工作盆输出口的置物台 (Has Basin Output Faucet Depot)","CurseForge":"has-basin-output-faucet-depot","Modrinth":"has-basin-output-faucet-depot"},{"Id":27490,"Name":"","CurseForge":"create-aeronautics-climbable-ropes","Modrinth":"create-aeronautics-climbable-rope"},{"Id":27491,"Name":"墨镜 (Sunglasses)","CurseForge":"thesunglasses","Modrinth":"thesunglasses"},{"Id":27492,"Name":"可视化机械动力配方编辑器 (Visual Recipe Edit-Create)","CurseForge":"visual-recipe-edit-create","Modrinth":"visual-recipe-edit-create"},{"Id":27493,"Name":"航空学:传动与连结 (Create Aeronautics: Transmission & Linkage)","CurseForge":"create-aeronautics-transmission-linkage","Modrinth":"create-aeronautics-transmission-linkage"},{"Id":27494,"Name":"机动突破 (Create Break)","CurseForge":"create-break","Modrinth":""},{"Id":27495,"Name":"齿轮与酒馆 (Create: Gears and Tavern)","CurseForge":"create-gears-and-tavern","Modrinth":"create-gears-and-tavern"},{"Id":27496,"Name":"传奇怪物修改 (Legendary Monsters Fix)","CurseForge":"legendary-monsters-fix","Modrinth":"legendary-monsters-fix"},{"Id":27497,"Name":"","CurseForge":"sable-x-xaero-bridge","Modrinth":""},{"Id":27498,"Name":"","CurseForge":"","Modrinth":"ssrd"},{"Id":27499,"Name":"","CurseForge":"sablebridge","Modrinth":""},{"Id":27500,"Name":"","CurseForge":"springtrap-the-returning","Modrinth":"springtrap-the-returning"},{"Id":27501,"Name":"简单的方块游戏 (Simple Block Game)","CurseForge":"simple-block-game","Modrinth":""},{"Id":27502,"Name":"","CurseForge":"repairtools","Modrinth":"repairtool"},{"Id":27503,"Name":"","CurseForge":"multiblocked2-unofficial","Modrinth":""},{"Id":27505,"Name":"","CurseForge":"cybernetics","Modrinth":"createcybernetics"},{"Id":27506,"Name":"","CurseForge":"decorative-sniffer-eggs","Modrinth":"decorative-sniffer-eggs"},{"Id":27507,"Name":"","CurseForge":"festering-portal","Modrinth":""},{"Id":27508,"Name":"中世纪玻璃 (Medieval Glass)","CurseForge":"medievalglass","Modrinth":"medieval-glass"},{"Id":27509,"Name":"简单城堡 (Simple Castles)","CurseForge":"simple-castles","Modrinth":""},{"Id":27510,"Name":"","CurseForge":"distinct-potions","Modrinth":"distinct-potions"},{"Id":27512,"Name":"","CurseForge":"raise-sound-limit-simplified-unofficial-forge-port","Modrinth":"raise-sound-limit-simplified-(unofficial-forge-port)"},{"Id":27513,"Name":"","CurseForge":"","Modrinth":"spotlights-or-something"},{"Id":27514,"Name":"","CurseForge":"backstube","Modrinth":"backstube"},{"Id":27515,"Name":"","CurseForge":"caged-and-boxed","Modrinth":"caged-and-boxed"},{"Id":27516,"Name":"","CurseForge":"","Modrinth":"quick-menu-renewed"},{"Id":27517,"Name":"轻松建造 重置版 (Effortless Structure)","CurseForge":"effortless-structure","Modrinth":""},{"Id":27518,"Name":"","CurseForge":"emi-backport","Modrinth":"emi-plus-backport"},{"Id":27519,"Name":"折叠标签页支持 (Added support for collapsible creative tabs)","CurseForge":"added-support-for-collapsible-creative-tabs","Modrinth":""},{"Id":27520,"Name":"","CurseForge":"holo-items","Modrinth":"holo-items"},{"Id":27524,"Name":"法术反应 (Spell Reaction - Iron's Spells Addon)","CurseForge":"spell-reaction-irons-spells-addon","Modrinth":""},{"Id":27525,"Name":"","CurseForge":"guidenh","Modrinth":""},{"Id":27526,"Name":"","CurseForge":"extended-crafting-expanded-reforked","Modrinth":""},{"Id":27527,"Name":"战利品箱物品 (Loot Chest Item)","CurseForge":"loot-chest-item","Modrinth":""},{"Id":27528,"Name":"","CurseForge":"fletch-craft","Modrinth":""},{"Id":27529,"Name":"","CurseForge":"crafter-template","Modrinth":""},{"Id":27530,"Name":"","CurseForge":"","Modrinth":"resourceful-refinement"},{"Id":27532,"Name":"","CurseForge":"mekalivingextension","Modrinth":""},{"Id":27533,"Name":"","CurseForge":"cc-ar","Modrinth":""},{"Id":27534,"Name":"","CurseForge":"arcadiatweaks","Modrinth":"arcadiatweaks"},{"Id":27535,"Name":"","CurseForge":"arcadiaguard","Modrinth":"arcadiaguard"},{"Id":27536,"Name":"繁星传送 (StellarRTP)","CurseForge":"stellarrtp","Modrinth":""},{"Id":27537,"Name":"","CurseForge":"packagedexexexcrafting","Modrinth":"packagedexexexcrafting"},{"Id":27538,"Name":"方可梦农场 (Cobblemon Farmers)","CurseForge":"cobblemon-farmers","Modrinth":"cobblemon-farmers"},{"Id":27539,"Name":"箭不如飞 (Hovering)","CurseForge":"","Modrinth":"hovering"},{"Id":27540,"Name":"AkatZumaの工具 (AkatZumaTool)","CurseForge":"akatzumatool","Modrinth":"akatzumatool"},{"Id":27541,"Name":"","CurseForge":"immersive-convergence","Modrinth":"immersive-convergence"},{"Id":27543,"Name":"","CurseForge":"emi-recipe-pin","Modrinth":"emi-recipe-pin"},{"Id":27546,"Name":"维度Tickrate (Dimension Tickrate)","CurseForge":"","Modrinth":"dimension-tickrate"},{"Id":27548,"Name":"","CurseForge":"immersive-mechanic","Modrinth":""},{"Id":27549,"Name":"结构注解 (NeoStructureMapper)","CurseForge":"neostructuremapper","Modrinth":"neostructuremapper"},{"Id":27550,"Name":"","CurseForge":"pretension","Modrinth":""},{"Id":27551,"Name":"","CurseForge":"","Modrinth":"coloredplanks"},{"Id":27552,"Name":"","CurseForge":"foxifiedclasstweaker","Modrinth":"foxifiedclasstweaker"},{"Id":27553,"Name":"无尽贪婪:星辰贯穿之矛 (Avaritia Spear)","CurseForge":"avaritia-spear","Modrinth":"avaritia-spear"},{"Id":27554,"Name":"长矛核心 (Spear Core)","CurseForge":"spear-core","Modrinth":"spear-core"},{"Id":27555,"Name":"x3d地图 (x3d Map)","CurseForge":"x3d-map","Modrinth":"x3d-map"},{"Id":27556,"Name":"","CurseForge":"animatica-refabricated","Modrinth":"animaticarefabricated"},{"Id":27557,"Name":"","CurseForge":"depillage","Modrinth":"depillage"},{"Id":27558,"Name":"","CurseForge":"stonecutting-upgrade","Modrinth":"stonecutting-upgrade"},{"Id":27559,"Name":"","CurseForge":"smart-copper-golems","Modrinth":"smart-copper-golems"},{"Id":27560,"Name":"","CurseForge":"mochas-complicated-bosses","Modrinth":""},{"Id":27561,"Name":"","CurseForge":"the-aether-ii-phosphor-not-included","Modrinth":""},{"Id":27562,"Name":"","CurseForge":"grow-faster","Modrinth":""},{"Id":27563,"Name":"零号边境 (BorderZero)","CurseForge":"borderzero","Modrinth":""},{"Id":27565,"Name":"","CurseForge":"mca-social-expansion","Modrinth":""},{"Id":27566,"Name":"凡家物语:方块宝可梦 (MCA: Cobblemon)","CurseForge":"mca-cobblemon","Modrinth":""},{"Id":27567,"Name":"","CurseForge":"fields","Modrinth":"fields"},{"Id":27568,"Name":"","CurseForge":"viscriptrecipe","Modrinth":"viscriptrecipe"},{"Id":27570,"Name":"死亡回滚 (DeathRollback)","CurseForge":"","Modrinth":"deathrollback"},{"Id":27571,"Name":"","CurseForge":"ic2radbauble","Modrinth":""},{"Id":27572,"Name":"","CurseForge":"","Modrinth":"step-crafter"},{"Id":27573,"Name":"","CurseForge":"gazetteer","Modrinth":"gazetteer"},{"Id":27574,"Name":"","CurseForge":"eclipseui","Modrinth":"eclipseui"},{"Id":27576,"Name":"","CurseForge":"agricraft-reloaded","Modrinth":"agricraft-reloaded"},{"Id":27577,"Name":"神秘工匠:重生 (Thaumic Tinkerer: Reborn)","CurseForge":"thaumic-tinkerer-reborn","Modrinth":""},{"Id":27578,"Name":"掉落物清道夫 (Drop Scavenger)","CurseForge":"","Modrinth":"drop-scavenger"},{"Id":27579,"Name":"镜面艺术:反射 (Planar Artifice: Reflected)","CurseForge":"planar-artifice-reflected","Modrinth":""},{"Id":27580,"Name":"神灵:重生 (KAMI: Reborn)","CurseForge":"kami-reborn","Modrinth":""},{"Id":27581,"Name":"紫剑生态:沧海 (Puris Eco Ocean)","CurseForge":"puris-eco-ocean","Modrinth":""},{"Id":27582,"Name":"","CurseForge":"wings-legacy","Modrinth":""},{"Id":27583,"Name":"模块化机械终端 (Modular Machinery Terminal)","CurseForge":"modularmachinery-terminal","Modrinth":""},{"Id":27584,"Name":"","CurseForge":"backported-spells-irons-spells-x-vanilla-backport","Modrinth":""},{"Id":27585,"Name":"植物与僵尸 (Plants & Zombies)","CurseForge":"plants-and-zombies","Modrinth":"plants-and-zombies"},{"Id":27586,"Name":"机械动力:北极星 - 重制版 去硬编码重制版 (Create: Northstar - Redux Unhardcoded)","CurseForge":"create-northstar-redux-unhardcoded","Modrinth":""},{"Id":27587,"Name":"机械动力:红石调速器 (Create: Redstone Throttle)","CurseForge":"redstone-throttle","Modrinth":"createredstone-throttle"},{"Id":27588,"Name":"","CurseForge":"synaxis","Modrinth":"synaxis"},{"Id":27589,"Name":"","CurseForge":"locked-in-slots","Modrinth":"locked-in-slots"},{"Id":27590,"Name":"","CurseForge":"name-tag-upgrade","Modrinth":"name-tag-upgrade"},{"Id":27591,"Name":"","CurseForge":"vintage-pick-up-notifier","Modrinth":""},{"Id":27592,"Name":"","CurseForge":"minemoticon","Modrinth":""},{"Id":27593,"Name":"模块化机械:社区版:补充 (MMCE Complement)","CurseForge":"modularmachinery-community-edition-complement","Modrinth":""},{"Id":27594,"Name":"虚空认证 (VoidAuth)","CurseForge":"voidauth","Modrinth":"voidauth"},{"Id":27595,"Name":"","CurseForge":"konfig","Modrinth":"konfig"},{"Id":27596,"Name":"","CurseForge":"ftb-obsidian","Modrinth":""},{"Id":27597,"Name":"石头剪刀布 (Rock Paper Scissors Shoot)","CurseForge":"","Modrinth":"rock-paper-scissors-shoot"},{"Id":27598,"Name":"","CurseForge":"","Modrinth":"placeholder-api-neoforge"},{"Id":27599,"Name":"神秘外饰修复 (Thaumic Periphery Fix)","CurseForge":"thaumic-periphery-fix","Modrinth":""},{"Id":27600,"Name":"","CurseForge":"","Modrinth":"creature-feature"},{"Id":27601,"Name":"","CurseForge":"","Modrinth":"fix-too-many-registered-channels"},{"Id":27602,"Name":"","CurseForge":"oraculum","Modrinth":""},{"Id":27603,"Name":"通用数据 (Mek Energistics)","CurseForge":"mek-energistics","Modrinth":""},{"Id":27604,"Name":"神谕工作台 (OraculumWorktables)","CurseForge":"oraculumworktables","Modrinth":""},{"Id":27605,"Name":"提示酱 (Just Enough Tooltips)","CurseForge":"just-enough-tooltips","Modrinth":"just-enough-tooltips"},{"Id":27606,"Name":"","CurseForge":"twist-mod","Modrinth":""},{"Id":27607,"Name":"","CurseForge":"kaf-hud","Modrinth":"kaf-hud"},{"Id":27608,"Name":"","CurseForge":"perdimkeepinvfix","Modrinth":""},{"Id":27609,"Name":"","CurseForge":"botaniawootaddon","Modrinth":"botaniawootaddon"},{"Id":27610,"Name":"","CurseForge":"flower-picking","Modrinth":"flower-picking"},{"Id":27611,"Name":"","CurseForge":"datatip","Modrinth":""},{"Id":27612,"Name":"拉美西斯二世的诅咒 (The Curse of Ramses II)","CurseForge":"the-curse-of-ramses-ii","Modrinth":"the-curse-of-ramses-ii"},{"Id":27613,"Name":"","CurseForge":"minecraft-mob-armor-mod","Modrinth":""},{"Id":27614,"Name":"生物生成开关 (Mob Spawn Switch)","CurseForge":"mobspawnswitch","Modrinth":"mobspawnswitch"},{"Id":27615,"Name":"","CurseForge":"","Modrinth":"farmers-sellingbin"},{"Id":27616,"Name":"","CurseForge":"immersive-storms","Modrinth":"immersive-storms"},{"Id":27617,"Name":"JEI配方管理器 (JEIRecipeManager)","CurseForge":"jeirecipemanager","Modrinth":""},{"Id":27618,"Name":"快速助手 (QuickMate)","CurseForge":"quickmate","Modrinth":"quickmate"},{"Id":27619,"Name":"","CurseForge":"subterranean-wilderness-revival","Modrinth":"subterranean-wilderness-revival"},{"Id":27620,"Name":"","CurseForge":"modernsunspirit","Modrinth":""},{"Id":27621,"Name":"","CurseForge":"custom-machinery-pneumaticcraft","Modrinth":"custom-machinery-pneumaticcraft"},{"Id":27622,"Name":"","CurseForge":"realms-of-redemption","Modrinth":"realms-of-redemption"},{"Id":27623,"Name":"","CurseForge":"bloodmagicwootaddon","Modrinth":"bloodmagicwootaddon"},{"Id":27624,"Name":"","CurseForge":"deployer","Modrinth":"deployer"},{"Id":27625,"Name":"","CurseForge":"repackaged","Modrinth":"repackaged"},{"Id":27627,"Name":"","CurseForge":"scp-001-when-day-breaks","Modrinth":"scp-001,-when-day-breaks"},{"Id":27628,"Name":"","CurseForge":"eat-with-ease","Modrinth":"eat-with-ease"},{"Id":27629,"Name":"","CurseForge":"happy-ghast-improvements","Modrinth":"happyghastimprovements"},{"Id":27630,"Name":"","CurseForge":"agritech","Modrinth":"agritech"},{"Id":27632,"Name":"","CurseForge":"","Modrinth":"quickeat"},{"Id":27633,"Name":"","CurseForge":"backpack-pro","Modrinth":"backpack-pro"},{"Id":27634,"Name":"","CurseForge":"creeper-consent","Modrinth":"creepers-consent"},{"Id":27635,"Name":"兄弟懂我的EMI折叠者 (Bro Know My EMI Folder)","CurseForge":"bro-know-my-emi-folder","Modrinth":""},{"Id":27636,"Name":"","CurseForge":"raids-api","Modrinth":""},{"Id":27637,"Name":"更多刷子 (More Brushes)","CurseForge":"more-brushes","Modrinth":"more-brushes"},{"Id":27638,"Name":"","CurseForge":"drive-by-wire-typewriter","Modrinth":"drive-by-wiretypewriter"},{"Id":27639,"Name":"更多萤石 (Mo' Glowstone)","CurseForge":"mo-glowstone","Modrinth":"mo-glowstone"},{"Id":27640,"Name":"自由放置 (Free Place)","CurseForge":"free-place","Modrinth":"free-place"},{"Id":27642,"Name":"怪物飞行 (Flying Mobs)","CurseForge":"flyingmobs","Modrinth":""},{"Id":27643,"Name":"神化自动回收背包升级 (Salvaging Backpack)","CurseForge":"salvagingbackpack","Modrinth":""},{"Id":27644,"Name":"","CurseForge":"craft-config","Modrinth":"craft-config"},{"Id":27645,"Name":"","CurseForge":"armor-hider","Modrinth":"zannaghs-armor-hider"},{"Id":27646,"Name":"","CurseForge":"armorfade","Modrinth":"armorfade"},{"Id":27647,"Name":"","CurseForge":"mindustrial","Modrinth":"mindustrial"},{"Id":27648,"Name":"","CurseForge":"modern-f3","Modrinth":""},{"Id":27649,"Name":"奥术魔刃 (Arcane Spell Sword - Iron's Spells Addon)","CurseForge":"ass-arcane-spell-sword","Modrinth":""},{"Id":27650,"Name":"","CurseForge":"rifted-valkyrium","Modrinth":"rifted-valkyrium"},{"Id":27651,"Name":"","CurseForge":"balkon-and-fire","Modrinth":""},{"Id":27652,"Name":"","CurseForge":"ifwootaddon","Modrinth":"ifwootaddon"},{"Id":27653,"Name":"","CurseForge":"aeronautics-propeller-blur","Modrinth":"aeronautics-propeller-blur"},{"Id":27654,"Name":"","CurseForge":"advanced-ore-deposits","Modrinth":"advanced-ore-deposits"},{"Id":27655,"Name":"机械动力:紧凑型传动 (Create: Compact Transmission)","CurseForge":"create-compact-transmission","Modrinth":"create-compact_transmission"},{"Id":27656,"Name":"","CurseForge":"","Modrinth":"retromod"},{"Id":27659,"Name":"高级炮塔 (Advanced Turret)","CurseForge":"advanced-turret","Modrinth":""},{"Id":27660,"Name":"","CurseForge":"","Modrinth":"capitals-a-monarchy-mod-for-mca-reborn"},{"Id":27661,"Name":"更好的配方书(续作) (Better Recipe Book (Extended))","CurseForge":"","Modrinth":"better-recipe-book-(extended)"},{"Id":27662,"Name":"","CurseForge":"auto-log-remover","Modrinth":"auto-log-remover"},{"Id":27663,"Name":"","CurseForge":"bettertabinfo","Modrinth":"bettertabinfo"},{"Id":27664,"Name":"","CurseForge":"adkm","Modrinth":""},{"Id":27665,"Name":"鬼妖村正 (Xian's Murasama)","CurseForge":"xian-murasama","Modrinth":"xian-murasama"},{"Id":27666,"Name":"","CurseForge":"sable-shoulder-surfing-compat","Modrinth":""},{"Id":27667,"Name":"","CurseForge":"arcane-adversaries","Modrinth":""},{"Id":27668,"Name":"","CurseForge":"magic-realms","Modrinth":""},{"Id":27669,"Name":"简单方块编辑器 (Easy Block Editor)","CurseForge":"easy-block-editor","Modrinth":"easy-block-editor"},{"Id":27670,"Name":"","CurseForge":"shop-ping","Modrinth":"shop-ping"},{"Id":27671,"Name":"","CurseForge":"","Modrinth":"superaccesstransformer"},{"Id":27672,"Name":"NBT导出 (NBT Exporter)","CurseForge":"nbt-exporter","Modrinth":""},{"Id":27673,"Name":"","CurseForge":"mythical-weaponry-jstuff","Modrinth":"mythical-weaponry-jstuff"},{"Id":27674,"Name":"","CurseForge":"nicholas-tinker-tweaks","Modrinth":""},{"Id":27675,"Name":"","CurseForge":"just-enough-lightmans-trades","Modrinth":"just-enough-lightmans-trades"},{"Id":27677,"Name":"难度系统/难度蒸汽 (Difficulty Steam)","CurseForge":"ds-difficulty-steam","Modrinth":""},{"Id":27678,"Name":"自动攻击 (Auto Attack)","CurseForge":"","Modrinth":"auto-attack"},{"Id":27679,"Name":"","CurseForge":"viltrumite","Modrinth":"viltrumite"},{"Id":27680,"Name":"别样的伤害跳字 (StylizedDamage)","CurseForge":"stylizeddamage","Modrinth":"stylizeddamage"},{"Id":27681,"Name":"赤物语 (Redtale)","CurseForge":"redtale","Modrinth":"redtale"},{"Id":27682,"Name":"","CurseForge":"gokistats-legacy","Modrinth":""},{"Id":27683,"Name":"动物作物重置版 (Animal Crops Reborn)","CurseForge":"animal-crops-reborn","Modrinth":""},{"Id":27684,"Name":"","CurseForge":"create-big-cannons-going-ballistic","Modrinth":"create-big-cannons-going-ballistic"},{"Id":27685,"Name":"","CurseForge":"berry-pouch","Modrinth":"berry-pouch"},{"Id":27686,"Name":"","CurseForge":"scout-recrafted","Modrinth":""},{"Id":27688,"Name":"旋转飞斧 (Spinning Tomahawk)","CurseForge":"spinning-tomahawk","Modrinth":"spinning-tomahawk"},{"Id":27689,"Name":"","CurseForge":"","Modrinth":"carbonfast"},{"Id":27690,"Name":"","CurseForge":"animal-weight","Modrinth":"animal-weight"},{"Id":27691,"Name":"","CurseForge":"arcane-archives-legacy","Modrinth":""},{"Id":27692,"Name":"","CurseForge":"single-spot-chest","Modrinth":""},{"Id":27693,"Name":"","CurseForge":"botany-pots-mystical-agriculture-compat","Modrinth":"botany-pots-mystical-agriculture-compat"},{"Id":27694,"Name":"","CurseForge":"stygian-end-rebirth","Modrinth":""},{"Id":27695,"Name":"","CurseForge":"somake-spells-irons-spells-addon","Modrinth":""},{"Id":27696,"Name":"","CurseForge":"","Modrinth":"enchanteveryticks"},{"Id":27697,"Name":"","CurseForge":"easy-ink-mod","Modrinth":""},{"Id":27698,"Name":"","CurseForge":"elemental-dimensions","Modrinth":"elemental-dimensions"},{"Id":27699,"Name":"","CurseForge":"psychonautic","Modrinth":""},{"Id":27700,"Name":"","CurseForge":"viltrumite-flight","Modrinth":"viltrumite-flight"},{"Id":27701,"Name":"","CurseForge":"the-ethereal-forest","Modrinth":""},{"Id":27702,"Name":"","CurseForge":"gustnovs-motorsport","Modrinth":""},{"Id":27703,"Name":"","CurseForge":"countereds-smooth-f5","Modrinth":"countereds-smooth-f5"},{"Id":27705,"Name":"米西娅的简单ToolTips (Misia's Simple ToolTips)","CurseForge":"","Modrinth":"misias-simple-tooltips"},{"Id":27709,"Name":"季节樱花 (Seasonal Cherries)","CurseForge":"seasonal-cherries","Modrinth":"seasonal-cherries"},{"Id":27710,"Name":"","CurseForge":"eternal-starlight-forge","Modrinth":""},{"Id":27712,"Name":"","CurseForge":"holycube-backport","Modrinth":""},{"Id":27713,"Name":"","CurseForge":"easy-magic-backport","Modrinth":""},{"Id":27714,"Name":"水游技艺非官方版 (Aqua Acrobatics Unofficial [Forge])","CurseForge":"aqua-acrobatics-unofficial-forge","Modrinth":""},{"Id":27715,"Name":"","CurseForge":"","Modrinth":"blockbreakwarden"},{"Id":27716,"Name":"","CurseForge":"","Modrinth":"simplesoundboard"},{"Id":27717,"Name":"","CurseForge":"create-aeronautics-covers","Modrinth":"create-aeronautics-covers"},{"Id":27718,"Name":"","CurseForge":"create-copyfoxes","Modrinth":"create-copyfoxes"},{"Id":27719,"Name":"","CurseForge":"create-sable-pallets","Modrinth":"create-sable-pallets"},{"Id":27720,"Name":"","CurseForge":"create-armored-rails","Modrinth":""},{"Id":27722,"Name":"相约星期四重置版 (WithThursdayReset)","CurseForge":"withthursdayreset","Modrinth":"withthursdayreset"},{"Id":27723,"Name":"主播帷幕 (StreamVeil)","CurseForge":"stream-veil","Modrinth":""},{"Id":27724,"Name":"妖怪们无家可归 (Youkai's Homeless)","CurseForge":"youkais-homeless","Modrinth":""},{"Id":27725,"Name":"蓝白光标特效 (BAEffect)","CurseForge":"baeffect","Modrinth":""},{"Id":27726,"Name":"咲雪随想 (Sayuki Mod)","CurseForge":"sayuki","Modrinth":""},{"Id":27729,"Name":"","CurseForge":"","Modrinth":"blchat"},{"Id":27730,"Name":"","CurseForge":"forget-me-crops","Modrinth":"forgetmecrops"},{"Id":27731,"Name":"","CurseForge":"vanilla-golden-head","Modrinth":""},{"Id":27732,"Name":"","CurseForge":"cc-sable","Modrinth":"cc-sable"},{"Id":27733,"Name":"CNPC商户扣款精妙背包 (CNPC Sophisticated Backpacks)","CurseForge":"","Modrinth":"cnpc-sophisticated-backpacks"},{"Id":27734,"Name":"","CurseForge":"potato-power-craft","Modrinth":""},{"Id":27735,"Name":"蜂蜜拓展重置 (Honey Expansion Reborn)","CurseForge":"honeyexpansion-reborn","Modrinth":""},{"Id":27736,"Name":"","CurseForge":"save-my-ankh-shield","Modrinth":""},{"Id":27737,"Name":"","CurseForge":"i113ws-camera-lib","Modrinth":"i113ws-camera-lib"},{"Id":27738,"Name":"半原木 (Half Logs)","CurseForge":"half-logs","Modrinth":""},{"Id":27739,"Name":"电能测量 (Electrometrics)","CurseForge":"electrometrics","Modrinth":""},{"Id":27740,"Name":"无实体 (Intangible Effect)","CurseForge":"intangible-effect","Modrinth":"intangible-effect"},{"Id":27742,"Name":"","CurseForge":"basic-music-tweak","Modrinth":""},{"Id":27743,"Name":"血液发电机 (Blood Dynamo)","CurseForge":"blood-dynamo","Modrinth":""},{"Id":27744,"Name":"AE2实用器械 (AE2 Utilix)","CurseForge":"ae2-utilix","Modrinth":""},{"Id":27745,"Name":"","CurseForge":"xercamod","Modrinth":"xercamod"},{"Id":27746,"Name":"","CurseForge":"splashscreen","Modrinth":"splashscreen"},{"Id":27747,"Name":"航空学:破风 (Aeronautics Wind Sound)","CurseForge":"aeronautics-wind-sound","Modrinth":""},{"Id":27748,"Name":"","CurseForge":"","Modrinth":"you-must-have-the-rain"},{"Id":27749,"Name":"可合成炮塔 (Craftable Turrets)","CurseForge":"craftable-turrets","Modrinth":""},{"Id":27750,"Name":"","CurseForge":"wawel-auth","Modrinth":"wawel-auth"},{"Id":27751,"Name":"森罗物语:末地——重织 (Kaleidoscope End Refabricated)","CurseForge":"kaleidoscope-end-refabricated","Modrinth":"kaleidoscope-end-refabricated"},{"Id":27752,"Name":"","CurseForge":"the-graveyard-unofficial-port","Modrinth":"the-graveyard-(unofficial-port)"},{"Id":27753,"Name":"","CurseForge":"applied-energistics-2-utilities","Modrinth":""},{"Id":27754,"Name":"","CurseForge":"spawn-c2me-fix","Modrinth":""},{"Id":27756,"Name":"","CurseForge":"armorswap-right-click-to-swap","Modrinth":""},{"Id":27757,"Name":"无敌宇宙领主的至尊神秘维度 (The Omnipotent Galactic Emperor's Supreme & Mysterious Dimension)","CurseForge":"toges","Modrinth":"toges"},{"Id":27760,"Name":"潮汐女仆 (Tide Maid)","CurseForge":"tidemaid","Modrinth":"tidemaid"},{"Id":27762,"Name":"便捷合成 (Convenient Crafting)","CurseForge":"convenient-crafting","Modrinth":"convenientcrafting"},{"Id":27763,"Name":"","CurseForge":"tacz-aeronautics-compat","Modrinth":"tacz-aeronautics-compat"},{"Id":27764,"Name":"","CurseForge":"tremendous-storage","Modrinth":"tremendous-storage"},{"Id":27765,"Name":"","CurseForge":"server-tree-feller","Modrinth":""},{"Id":27766,"Name":"","CurseForge":"bluemap-ftbchunks","Modrinth":""},{"Id":27767,"Name":"","CurseForge":"foxdarkmagic","Modrinth":"foxdarkmagic"},{"Id":27768,"Name":"","CurseForge":"fox-power-converter","Modrinth":"fox-power-converter"},{"Id":27769,"Name":"","CurseForge":"capture-nets","Modrinth":"capture-nets"},{"Id":27770,"Name":"","CurseForge":"dynamic-waters","Modrinth":"dynamic-waters-realistic-flowing-rivers"},{"Id":27772,"Name":"","CurseForge":"better-than-boats","Modrinth":"better_than_boats"},{"Id":27773,"Name":"真实工艺 (Realcraft: Minecraft Expanded!)","CurseForge":"realcraft-mcexpand","Modrinth":""},{"Id":27774,"Name":"可视化合成 (visualcrafting)","CurseForge":"visualcrafting","Modrinth":""},{"Id":27775,"Name":"铁砧工艺:天猫行空 (AnvilCraft: Void in Air)","CurseForge":"anvilcraft-via","Modrinth":"anvilcraft-via"},{"Id":27776,"Name":"逃逸:油炸寄生体 (Scape and Run: Parasites Oil)","CurseForge":"scape-and-run-parasite-oil","Modrinth":"scape-and-run-parasite-oil"},{"Id":27777,"Name":"","CurseForge":"random-mob-effects","Modrinth":"random-mob-effects"},{"Id":27778,"Name":"数字型采矿机过滤卡 (Digital Miner Filter)","CurseForge":"digital-miner-filter","Modrinth":""},{"Id":27779,"Name":"","CurseForge":"mochas-enhanced-difficulties","Modrinth":"mochas-enhanced-difficulties"},{"Id":27780,"Name":"十字准星目标过滤器 (CrosshairTarget Filter)","CurseForge":"crosshairtarget-filter","Modrinth":"crosshairtarget-filter"},{"Id":27781,"Name":"聚光灯 (The Spotlight Mod)","CurseForge":"the-spotlight-mod","Modrinth":""},{"Id":27782,"Name":"","CurseForge":"presence-footsteps-x-sable-aeronautics-compat","Modrinth":"presence-footsteps-x-sable"},{"Id":27783,"Name":"","CurseForge":"give-me-my-flat-world","Modrinth":""},{"Id":27785,"Name":"音符盒调教师 (NoteBlock Tweaker)","CurseForge":"","Modrinth":"noteblocktweaker"},{"Id":27786,"Name":"无限派 (Infinite Pie)","CurseForge":"infinite-pie","Modrinth":""},{"Id":27787,"Name":"紫气的 Essentials (PPE Essentials)","CurseForge":"ppe-essentials","Modrinth":"ppe-essentials"},{"Id":27788,"Name":"","CurseForge":"tj-additions","Modrinth":""},{"Id":27789,"Name":"","CurseForge":"tpa-minus-minus","Modrinth":"tpa-minus-minus"},{"Id":27790,"Name":"CNPC兼容Mmd模型加载 (CNPCMmdSkin)","CurseForge":"","Modrinth":"cnpcmmdskin"},{"Id":27792,"Name":"不要切削染梦合金块 (DONOT Cutting Dyedream Block)","CurseForge":"","Modrinth":"do_not_cutting_dyedream_block"},{"Id":27793,"Name":"窥探不朽 (Snoop On Immortality)","CurseForge":"soi-snoop-on-immortality","Modrinth":"soi"},{"Id":27795,"Name":"","CurseForge":"gregtech-modern-utilities","Modrinth":"gregtech-modern-utilities"},{"Id":27796,"Name":"","CurseForge":"","Modrinth":"ae2-qol-client"},{"Id":27797,"Name":"","CurseForge":"jeioptimizer","Modrinth":""},{"Id":27798,"Name":"","CurseForge":"","Modrinth":"simple-voice-chat-soundboard"},{"Id":27799,"Name":"简单跑酷 (Parkour)","CurseForge":"simple-parkour","Modrinth":""},{"Id":27800,"Name":"器鸣 (Clangor)","CurseForge":"clangor","Modrinth":"clangor"},{"Id":27801,"Name":"","CurseForge":"vulkan-create-compatibility","Modrinth":"vulkan-create-compatibility"},{"Id":27802,"Name":"精妙背包扩展GUI (Backpack Side GUI)","CurseForge":"backpack-side-gui","Modrinth":"backpack-side-gui"},{"Id":27804,"Name":"战斗增强 (Simple Enhancement)","CurseForge":"simple-enhancement","Modrinth":"simple-enhancement"},{"Id":27805,"Name":"可视化诡厄巫法配方编辑器 (Visual Recipe Edit-Goety)","CurseForge":"visual-recipe-edit-goety","Modrinth":"visual-recipe-edit-goety"},{"Id":27806,"Name":"","CurseForge":"","Modrinth":"depression-tiantian"},{"Id":27807,"Name":"","CurseForge":"regenerating-loot-blocks","Modrinth":""},{"Id":27808,"Name":"飞行警报+ (PullUp+)","CurseForge":"pullupplus","Modrinth":"pullup+"},{"Id":27809,"Name":"机械动力炮镜 (Create Cannon Gun Sight)","CurseForge":"create-cannon-gun-sight","Modrinth":""},{"Id":27810,"Name":"","CurseForge":"keybind-atlas","Modrinth":"keybind-atlas"},{"Id":27811,"Name":"向着更深的深渊 (Toward Deeper Abyss)","CurseForge":"toward-deeper-abyss","Modrinth":""},{"Id":27812,"Name":"可配置的袭击 (Configurable Raids)","CurseForge":"configurable-raids","Modrinth":"configurable-raids"},{"Id":27813,"Name":"天堂阶梯 (Stairway to Heaven)","CurseForge":"stairway-to-heaven","Modrinth":"stairway-to-heaven"},{"Id":27814,"Name":"","CurseForge":"dungeons-dimensions-nether","Modrinth":"dungeons-dimensions-nether"},{"Id":27815,"Name":"飞行踢出优化 (Flight Kick Bypass)","CurseForge":"flight-kick-bypass","Modrinth":"flight-kick-bypass"},{"Id":27816,"Name":"奇趣效果Lib (Funky Effect Lib)","CurseForge":"funky-effect-lib","Modrinth":""},{"Id":27817,"Name":"CNPC可穿戴饰品 (CNPC Curios API)","CurseForge":"","Modrinth":"cnpccurios"},{"Id":27818,"Name":"","CurseForge":"jei-structures","Modrinth":""},{"Id":27819,"Name":"拓展存储 (Extended Storage)","CurseForge":"","Modrinth":"extended-storage"},{"Id":27820,"Name":"","CurseForge":"remote-access","Modrinth":"remote-access"},{"Id":27821,"Name":"","CurseForge":"weeping-angels-reforged","Modrinth":""},{"Id":27822,"Name":"","CurseForge":"aquatic-abyss-reforged","Modrinth":""},{"Id":27823,"Name":"突变生物:重铸版 (Mutant Creatures (Reforged))","CurseForge":"mutant-creatures-reforged","Modrinth":""},{"Id":27824,"Name":"动画化玩家:重铸版 (Animated Player Mod (Reforged))","CurseForge":"animated-player-mod-reforged","Modrinth":""},{"Id":27825,"Name":"","CurseForge":"hats-reforged","Modrinth":""},{"Id":27826,"Name":"","CurseForge":"arke","Modrinth":"arke"},{"Id":27827,"Name":"泡沫修复:重铸版 (FoamFix (Reforged))","CurseForge":"foamfix-reforged","Modrinth":""},{"Id":27828,"Name":"扫描器:非官方版 (Scannable Unofficial)","CurseForge":"scannable-unofficial","Modrinth":"scannable-unofficial"},{"Id":27829,"Name":"腌渍乐事 - 耕云钓月版 (Vintage Delight KOTS)","CurseForge":"vintage-delight-kots","Modrinth":""},{"Id":27831,"Name":"","CurseForge":"together-forever-unofficial","Modrinth":""},{"Id":27832,"Name":"","CurseForge":"cloud-glass","Modrinth":"cloud-glass"},{"Id":27833,"Name":"","CurseForge":"shield-hider","Modrinth":"shieldhider"},{"Id":27834,"Name":"","CurseForge":"golden-dandelion-mod","Modrinth":""},{"Id":27835,"Name":"","CurseForge":"pakko","Modrinth":"pakko"},{"Id":27836,"Name":"","CurseForge":"inventory-profiles-next-backport","Modrinth":""},{"Id":27837,"Name":"","CurseForge":"structure-tools","Modrinth":"structure-tools"},{"Id":27838,"Name":"闪电科技:封包 (AE2LT Packaged Pattern Provider)","CurseForge":"ae2lt-packaged-pattern-provider","Modrinth":"ae2lt-packaged-pattern-provider"},{"Id":27839,"Name":"低延迟 (Low Latency)","CurseForge":"low-latency","Modrinth":"low-latency"},{"Id":27840,"Name":"","CurseForge":"tonten","Modrinth":"tonten"},{"Id":27842,"Name":"","CurseForge":"tpaauto","Modrinth":"tpaauto"},{"Id":27843,"Name":"","CurseForge":"healthbar","Modrinth":""},{"Id":27844,"Name":"","CurseForge":"warborn-renewed","Modrinth":""},{"Id":27845,"Name":"兑换码Fabric版 (RedemptionCodeFabric)","CurseForge":"redemptioncodefabric","Modrinth":""},{"Id":27846,"Name":"史诗战斗车万女仆:奇迹武器扩展 (EFTLM_WeaponOfMiracl)","CurseForge":"","Modrinth":"eftlm_weaponofmiracles"},{"Id":27847,"Name":"","CurseForge":"createatomic","Modrinth":"createatomic"},{"Id":27848,"Name":"","CurseForge":"cobblemon-battle-extras","Modrinth":"cobblemon-battle-extras"},{"Id":27849,"Name":"","CurseForge":"ad-astra-planet-screen-expanded","Modrinth":"ad-astra-planet-screen-expanded"},{"Id":27850,"Name":"星级! (Star Rating)","CurseForge":"star-rating","Modrinth":"star-rating"},{"Id":27852,"Name":"完全的制箭台 (Complete Fletching Table)","CurseForge":"complete-fletching-table","Modrinth":"complete-fletching_table"},{"Id":27853,"Name":"下界合金火把弓 (Netherite Torch Bow)","CurseForge":"","Modrinth":"netherite-torch-bow"},{"Id":27854,"Name":"","CurseForge":"accurate-block-placement-reforked","Modrinth":"accurate-block-placement-reforked"},{"Id":27855,"Name":"","CurseForge":"reforged-accurate-block-placement","Modrinth":"reforged-accurate-block-placement"},{"Id":27857,"Name":"","CurseForge":"mangos-multiblock-library-revived","Modrinth":""},{"Id":27858,"Name":"最终下界合金 (Final Netherite)","CurseForge":"final-netherite","Modrinth":"final-netherite"},{"Id":27859,"Name":"","CurseForge":"casualties-cubed","Modrinth":""},{"Id":27861,"Name":"","CurseForge":"spooky-scary-halloween-reborn","Modrinth":""},{"Id":27862,"Name":"","CurseForge":"evil-hunter","Modrinth":"evil-hunter"},{"Id":27863,"Name":"","CurseForge":"falling-leaves-backport","Modrinth":"falling-leaves-backport"},{"Id":27864,"Name":"迷你刷怪场 社区版 (Tiny Mob Farm CE)","CurseForge":"tiny-mob-farm-ce","Modrinth":"tiny-mob-farm-ce"},{"Id":27865,"Name":"帕斯特之梦:配方修复与扩展 (Pasterdream: Recipe Repair And Addition)","CurseForge":"pasterdream-recipe-repair-and-addition","Modrinth":"pasterdream_recipe_repair_and_addition"},{"Id":27866,"Name":"","CurseForge":"","Modrinth":"betterbundlehud"},{"Id":27867,"Name":"","CurseForge":"overflowing-bars-backport","Modrinth":""},{"Id":27868,"Name":"","CurseForge":"easy-anvils-backport","Modrinth":"easy-anvils-backport"},{"Id":27869,"Name":"","CurseForge":"malisisdoorsreborn","Modrinth":"malisisdoorsreborn"},{"Id":27870,"Name":"","CurseForge":"mp-moogs-paths","Modrinth":"mp-moogs-paths"},{"Id":27871,"Name":"","CurseForge":"pickaxe-armor-trims","Modrinth":""},{"Id":27872,"Name":"","CurseForge":"recipe-crafter","Modrinth":""},{"Id":27873,"Name":"","CurseForge":"wavify","Modrinth":""},{"Id":27874,"Name":"","CurseForge":"magnet-hoppers","Modrinth":"magnet-hopper"},{"Id":27875,"Name":"","CurseForge":"better-farmlife","Modrinth":"better-farmlife"},{"Id":27876,"Name":"真实置物 (RealPlace)","CurseForge":"","Modrinth":"realplace"},{"Id":27877,"Name":"","CurseForge":"you-died-backport","Modrinth":"you-died-backport"},{"Id":27879,"Name":"","CurseForge":"","Modrinth":"perfect-flow"},{"Id":27880,"Name":"","CurseForge":"dabcrafttcg","Modrinth":""},{"Id":27881,"Name":"","CurseForge":"mobbility","Modrinth":""},{"Id":27882,"Name":"澪的空指针修复 (NullPointer Fix for Mio)","CurseForge":"nullpointer-fix-for-mio","Modrinth":"nullpointer-fix-for-mio"},{"Id":27883,"Name":"便携式工作方块 (Portable Workstations)","CurseForge":"portable-workstations","Modrinth":"portable_workstations"},{"Id":27885,"Name":"","CurseForge":"hungry-mechanics","Modrinth":""},{"Id":27886,"Name":"","CurseForge":"equivalency","Modrinth":""},{"Id":27887,"Name":"更多傀儡 Fabric (Extra Golems Fabric)","CurseForge":"extra-golems-fabric","Modrinth":""},{"Id":27888,"Name":"随机身高 (Random Height)","CurseForge":"random-height","Modrinth":"random-height"},{"Id":27889,"Name":"鞘翅组件 (Elytra Component)","CurseForge":"elytra-component","Modrinth":"elytra-component"},{"Id":27891,"Name":"","CurseForge":"","Modrinth":"enderscapes-delight"},{"Id":27892,"Name":"蟑螂乐/农家悲 (Roach's Delight Legacy)","CurseForge":"roachs-delight-legacy","Modrinth":""},{"Id":27893,"Name":"","CurseForge":"requious-frakto-unofficial","Modrinth":""},{"Id":27894,"Name":"","CurseForge":"possibly-baubles","Modrinth":""},{"Id":27895,"Name":"","CurseForge":"simplified-guardians","Modrinth":""},{"Id":27896,"Name":"肩部装备 (DOOM SG)","CurseForge":"","Modrinth":"doom-sg"},{"Id":27898,"Name":"空岛资源3 (Sky Resources3)","CurseForge":"skyresources3","Modrinth":"skyresources3"},{"Id":27900,"Name":"","CurseForge":"calm-the-leaks-ctl","Modrinth":""},{"Id":27901,"Name":"三位一体:非官方版 (Trinity Unofficial)","CurseForge":"trinity-unofficial","Modrinth":""},{"Id":27902,"Name":"Reinhardt协议核心","CurseForge":"reinhardt-protocol-core","Modrinth":"reinhardt-protocol-core"},{"Id":27903,"Name":"尸行遍野 (ZombiesEverywhere)","CurseForge":"zombieseverywhere","Modrinth":"zombieseverywhere"},{"Id":27905,"Name":"","CurseForge":"","Modrinth":"tooltipeta"},{"Id":27907,"Name":"","CurseForge":"cult-of-azazel","Modrinth":"cult-of-azazel"},{"Id":27908,"Name":"液体燃料 (Liquid Fuels)","CurseForge":"chemcraft-liquid-fuels","Modrinth":""},{"Id":27909,"Name":"进阶下界合金:枪炮“没”瑰扩展 (Enhanced Netherite: Guns Without Roses)","CurseForge":"enhanced-netherite-guns-without-roses","Modrinth":""},{"Id":27910,"Name":"可视化召唤仪式配方编辑器 (Visual Recipe Edit-Summoning Rituals)","CurseForge":"visual-recipe-edit-summoning-rituals","Modrinth":"visual-recipe-edit-summoning-rituals"},{"Id":27911,"Name":"模组翻译 (Mine Mod Translator)","CurseForge":"mine-mod-translator","Modrinth":"EkzAz4uk"},{"Id":27912,"Name":"掉落物扫地姬","CurseForge":"dropsweeper","Modrinth":"dropsweeper"},{"Id":27913,"Name":"Lycrex的队伍 (LyTeam)","CurseForge":"","Modrinth":"lyteam"},{"Id":27914,"Name":"基质矿物 (Substratum)","CurseForge":"substratum","Modrinth":""},{"Id":27915,"Name":"","CurseForge":"","Modrinth":"borderless-fullscreen"},{"Id":27916,"Name":"毋畏死亡 (MortisFix)","CurseForge":"mortis-fix","Modrinth":""},{"Id":27918,"Name":"","CurseForge":"utilities-plus","Modrinth":"utilities-plus"},{"Id":27919,"Name":"","CurseForge":"untagged-untitled","Modrinth":""},{"Id":27920,"Name":"疼吗? (Did That Hurt?)","CurseForge":"did-that-hurt","Modrinth":"did-that-hurt"},{"Id":27921,"Name":"","CurseForge":"","Modrinth":"hardcore-tweaks"},{"Id":27922,"Name":"","CurseForge":"carpenters-block-port","Modrinth":""},{"Id":27924,"Name":"应用蓝图 (Applied Schematics)","CurseForge":"applied-schematics","Modrinth":"applied-schematics"},{"Id":27925,"Name":"机械动力:实体模型特性兼容 (Create: EMF Compat)","CurseForge":"emf-compat-create","Modrinth":"create-emf-compat-skyhook"},{"Id":27926,"Name":"","CurseForge":"unvalkyried-heavens","Modrinth":""},{"Id":27927,"Name":"","CurseForge":"ne-carpenters-blocks","Modrinth":""},{"Id":27928,"Name":"鞋网 (SneakerNet)","CurseForge":"sneakernet","Modrinth":""},{"Id":27929,"Name":"宝藏世界:晶洞 (Trove: Geode)","CurseForge":"trove-geode","Modrinth":""},{"Id":27930,"Name":"","CurseForge":"optimised-block-entities","Modrinth":"obe"},{"Id":27931,"Name":"按键精灵社区版 (Keyboard Wizard CE)","CurseForge":"keyboard-wizard-ce","Modrinth":"keyboard-wizard-ce"},{"Id":27932,"Name":"魔幻世界重置版 (Mystical World Reborn)","CurseForge":"mystical-world-reborn","Modrinth":""},{"Id":27934,"Name":"","CurseForge":"waystones-restored-unofficial-fix","Modrinth":""},{"Id":27935,"Name":"","CurseForge":"necromancer-mod-legacy-raid","Modrinth":""},{"Id":27936,"Name":"","CurseForge":"multiplayer-bosses","Modrinth":"multiplayerbosses"},{"Id":27937,"Name":"","CurseForge":"nag-not-another-guidebook","Modrinth":""},{"Id":27938,"Name":"","CurseForge":"esc-extra-special-core","Modrinth":""},{"Id":27940,"Name":"","CurseForge":"erie","Modrinth":"erie"},{"Id":27941,"Name":"聊天记录/指令历史 (Command History)","CurseForge":"commandhistory","Modrinth":"commandhistory"},{"Id":27942,"Name":"滴答按钮 (TicTac Buttons)","CurseForge":"tictac-buttons","Modrinth":"tictac-buttons"},{"Id":27943,"Name":"","CurseForge":"friendly-beacons","Modrinth":""},{"Id":27944,"Name":"开放式电脑社区版 (OpenComputers Community Edition)","CurseForge":"opencomputers-ce","Modrinth":"opencomputers-ce"},{"Id":27945,"Name":"","CurseForge":"any-dimension-mod-1-7-10","Modrinth":""},{"Id":27946,"Name":"","CurseForge":"hovering-hotbar","Modrinth":"hovering-hotbar"},{"Id":27947,"Name":"","CurseForge":"bundle-upgrade","Modrinth":"bundle-upgrade"},{"Id":27948,"Name":"","CurseForge":"reach-behind","Modrinth":"reach-behind"},{"Id":27949,"Name":"","CurseForge":"open-together","Modrinth":"open-together"},{"Id":27950,"Name":"","CurseForge":"vibrant-parrots","Modrinth":"vibrant-parrots"},{"Id":27952,"Name":"","CurseForge":"no-chat-restrictions","Modrinth":"no-chat-restrictions"},{"Id":27953,"Name":"","CurseForge":"universal-circuits","Modrinth":""},{"Id":27954,"Name":"音乐事件 (MusicEvents)","CurseForge":"musicevents","Modrinth":""},{"Id":27955,"Name":"","CurseForge":"pyrite","Modrinth":"pyrite"},{"Id":27956,"Name":"百草可食 (Herbcraft-BCKS)","CurseForge":"herbcraft-bcks","Modrinth":"herbcraft-bcks"},{"Id":27957,"Name":"百草可食:炼金分册 (Herbcraft Alchemy)","CurseForge":"herbcraft-alchemy","Modrinth":"herbcraft_alchemy"},{"Id":27958,"Name":"百草可食:膳房分册 (Herbcraft Cuisine)","CurseForge":"herbcraft-cuisine","Modrinth":"herbcraft_cuisine"},{"Id":27959,"Name":"菌材实料 (Fungalworks)","CurseForge":"fungalworks","Modrinth":"fungalworks"},{"Id":27960,"Name":"片片俱到 (Slice by Slice)","CurseForge":"slice-by-slice","Modrinth":"slice-by-slice"},{"Id":27961,"Name":"自动配置 API (Auto Config API)","CurseForge":"auto-config","Modrinth":""},{"Id":27962,"Name":"","CurseForge":"small-progressions-2","Modrinth":"small-progressions-2"},{"Id":27963,"Name":"可燃冰 (Methane Ice)","CurseForge":"methane-ice","Modrinth":"methane-ice"},{"Id":27964,"Name":"Xaero地图阶段控制 (XaeroMapStages)","CurseForge":"xaeromapstages","Modrinth":""},{"Id":27965,"Name":"","CurseForge":"","Modrinth":"inventorio-extra"},{"Id":27966,"Name":"可合成的披风 - (Neo)Forge版 (Craftable Capes - (Neo)Forge)","CurseForge":"craftable-capes-reforge","Modrinth":"craftable-capes-reforge"},{"Id":27967,"Name":"饮水升级 (Water Upgrade)","CurseForge":"waterupgrade","Modrinth":""},{"Id":27968,"Name":"流光音匣 (LuminaBox)","CurseForge":"luminabox","Modrinth":""},{"Id":27969,"Name":"","CurseForge":"mochas-complicated-dungeon","Modrinth":""},{"Id":27970,"Name":"","CurseForge":"bridge-worm-reborn","Modrinth":"bridge-worm-reborn"},{"Id":27971,"Name":"诡厄巫法:超越 (Goety Transcended)","CurseForge":"goety-transcended","Modrinth":""},{"Id":27972,"Name":"神化-巧技 (Apotheosis Artifice)","CurseForge":"apotheosis-artifice","Modrinth":""},{"Id":27973,"Name":"","CurseForge":"potion-bar","Modrinth":"potion-bar"},{"Id":27974,"Name":"精妙背包升级拓展 (Soph Upgrade Addons)","CurseForge":"soph-upgrade-addons","Modrinth":"soph-upgrade-addons"},{"Id":27976,"Name":"","CurseForge":"tnt-ultra","Modrinth":""},{"Id":27980,"Name":"假人伙伴 (FakePlayer)","CurseForge":"","Modrinth":"-fakeplayer-"},{"Id":27981,"Name":"","CurseForge":"omega-config","Modrinth":""},{"Id":27982,"Name":"","CurseForge":"faster-iris-shadow-mapper","Modrinth":"fism"},{"Id":27983,"Name":"","CurseForge":"","Modrinth":"xp-sync"},{"Id":27984,"Name":"神秘时代6研究助手 (Thaumcraft6 Research Helper)","CurseForge":"thaumcraft6-research-helper","Modrinth":""},{"Id":27986,"Name":"机械动力:装甲构件 (Create: Armored Constructs)","CurseForge":"create-armored-constructs","Modrinth":"create-armored-constructs"},{"Id":27987,"Name":"机械动力:声呐 (Create: Sonar)","CurseForge":"create-sonar","Modrinth":""},{"Id":27988,"Name":"","CurseForge":"gregic-tinkering","Modrinth":"gregic-tinkering"},{"Id":27989,"Name":"","CurseForge":"gregtech-nexus","Modrinth":""},{"Id":27990,"Name":"","CurseForge":"falling-leaves-plus","Modrinth":"falling-leaves-plus"},{"Id":27991,"Name":"","CurseForge":"oh-no-another-tnt-mod","Modrinth":"onatm"},{"Id":27992,"Name":"TW的核心 (TW`s Core)","CurseForge":"tw-core","Modrinth":"tw-core"},{"Id":27993,"Name":"","CurseForge":"unvalkyried-heavens-control","Modrinth":""},{"Id":27994,"Name":"","CurseForge":"srparasites-traps","Modrinth":""},{"Id":27995,"Name":"植物魔法:无缚 (Botania Unbound)","CurseForge":"botania-unbound","Modrinth":""},{"Id":27996,"Name":"家用附魔图书馆 - 非官方版 (Enchantment Library at Home Unofficial)","CurseForge":"enchantment-library-at-home-unofficial","Modrinth":""},{"Id":27997,"Name":"","CurseForge":"the-block-box-refabricated","Modrinth":"the-block-box-re-fabricated"},{"Id":27998,"Name":"","CurseForge":"cobblemon-utility","Modrinth":"cobblemon-utility+"},{"Id":28000,"Name":"死亡回归 (Return by Death)","CurseForge":"return-by-death-by-lom2333","Modrinth":"return-by-death-by-lom233"},{"Id":28001,"Name":"","CurseForge":"toucanlib","Modrinth":"toucan"},{"Id":28002,"Name":"幽灵方块同步 (anticlientghost)","CurseForge":"","Modrinth":"anti-ghost-in-client"},{"Id":28004,"Name":"未知回响 (Unknown Echoes)","CurseForge":"unknown-echoes","Modrinth":"unknown-echoes"},{"Id":28005,"Name":"机械动力:量化蓝图 (VisualBlueprintMaterials)","CurseForge":"visual-blueprint-materials","Modrinth":"visual-blueprint-materials"},{"Id":28006,"Name":"","CurseForge":"cnpc-xaerominimap-addon","Modrinth":""},{"Id":28009,"Name":"RF风力发电机 (RF Windmills)","CurseForge":"rf-windmills","Modrinth":""},{"Id":28010,"Name":"","CurseForge":"blockspan","Modrinth":"blockspan"},{"Id":28011,"Name":"模块化装甲 (Modular Armour)","CurseForge":"modular-armour","Modrinth":""},{"Id":28014,"Name":"","CurseForge":"lumeon","Modrinth":""},{"Id":28015,"Name":"","CurseForge":"advanced-rocketry-3-0","Modrinth":"advanced-rocketry-3"},{"Id":28016,"Name":"可视化匠魂调整 (Tinkers Visual Tweaker)","CurseForge":"tinkers-visual-tweaker","Modrinth":"tinkers_visual_tweaker"},{"Id":28017,"Name":"","CurseForge":"tiab-gtm-compat","Modrinth":""},{"Id":28019,"Name":"","CurseForge":"","Modrinth":"draftout"},{"Id":28020,"Name":"","CurseForge":"symbiotic-swiss-knife","Modrinth":"symbiotic-swiss-knife"},{"Id":28022,"Name":"刚好是我所需要的 (Just What I Needed Mod)","CurseForge":"just-what-i-needed-mod","Modrinth":""},{"Id":28023,"Name":"","CurseForge":"ranchable-fluid-cows","Modrinth":""},{"Id":28026,"Name":"极限模式禁用选项修复 (Hardcore Disabled Fix)","CurseForge":"hardcore-disabled-fix","Modrinth":"hardcore_disabled_fix"},{"Id":28027,"Name":"","CurseForge":"electricityinnovation","Modrinth":""},{"Id":28028,"Name":"","CurseForge":"colored_water","Modrinth":"coloredwater"},{"Id":28029,"Name":"便携式村民 (Portable Villager)","CurseForge":"portable-villager","Modrinth":"portable-villager"},{"Id":28031,"Name":"","CurseForge":"","Modrinth":"neococoa"},{"Id":28032,"Name":"","CurseForge":"ftpa","Modrinth":"ftpa"},{"Id":28033,"Name":"超级巧克力制造2 (SuperChocolateMaker2)","CurseForge":"superchocolatemaker2","Modrinth":""},{"Id":28034,"Name":"","CurseForge":"alchemylib-neoforged","Modrinth":""},{"Id":28035,"Name":"","CurseForge":"frame-companion","Modrinth":""},{"Id":28037,"Name":"村民交易编辑 (VillagerTradesEdit)","CurseForge":"villagertradeedit","Modrinth":"villagertradesedit"},{"Id":28038,"Name":"不再有筛网 (No More Meshes)","CurseForge":"no-more-meshes","Modrinth":"no-more-meshes"},{"Id":28039,"Name":"","CurseForge":"create-neapolitan","Modrinth":"create-neapolitan"},{"Id":28040,"Name":"机械动力:改进 (Create:Improve)","CurseForge":"create-improve","Modrinth":"create-improve"},{"Id":28042,"Name":"存力合作 (RS on Create)","CurseForge":"rsoncreate","Modrinth":""},{"Id":28043,"Name":"机械动力:红石信号终端GUI","CurseForge":"create-redstone-link-gui","Modrinth":"create-redstone-link-gui"},{"Id":28044,"Name":"机械动力:VVVF模拟器 (Create: VVVF-Simulator)","CurseForge":"create-vvvf-simulator","Modrinth":""},{"Id":28045,"Name":"","CurseForge":"create-nowheel","Modrinth":"create-nowheel"},{"Id":28046,"Name":"","CurseForge":"kroiautilities","Modrinth":"kroia_modutilities"},{"Id":28047,"Name":"航空学:Addition (Aeronautics: Addition)","CurseForge":"aeronautics-addition","Modrinth":"aeronautics-addition"},{"Id":28048,"Name":"航空学:风洞 (Aeronautics: Wind Tunnel)","CurseForge":"aeronautics-wind-tunnel","Modrinth":"aeronauticswind-tunnel"},{"Id":28049,"Name":"","CurseForge":"create-gregified-storage","Modrinth":""},{"Id":28050,"Name":"","CurseForge":"frequency-create","Modrinth":"frequency-create"},{"Id":28051,"Name":"银行系统 (BankSystem)","CurseForge":"banksystem","Modrinth":"kroia_banksystem"},{"Id":28052,"Name":"","CurseForge":"farmers-cutting-collection","Modrinth":""},{"Id":28053,"Name":"生命罐头 (Life Can)","CurseForge":"","Modrinth":"lifecan"},{"Id":28054,"Name":"神奇飞毯 (O's FlyingCarpet)","CurseForge":"","Modrinth":"os-flyingcarpet"},{"Id":28055,"Name":"","CurseForge":"visuality-reforged-backport","Modrinth":""},{"Id":28056,"Name":"","CurseForge":"magma-lucky-block","Modrinth":""},{"Id":28057,"Name":"","CurseForge":"creating-tables","Modrinth":""},{"Id":28058,"Name":"","CurseForge":"betterweather-renewed","Modrinth":""},{"Id":28059,"Name":"RPG天启进化(NeoForge) (RPGApocalypticEvolution)","CurseForge":"rpg-rpgae-neoforge","Modrinth":""},{"Id":28060,"Name":"","CurseForge":"rebind","Modrinth":""},{"Id":28061,"Name":"跳过剧情等于跳过人生 (Bosses Rise Intro Skipper)","CurseForge":"bosses-rise-intro-skipper","Modrinth":""},{"Id":28062,"Name":"古代调整 (Ancient Tweaks)","CurseForge":"ancient-tweaks","Modrinth":""},{"Id":28063,"Name":"三角洲技艺 (Delta Force Skills)","CurseForge":"deltaforceskills","Modrinth":"delta_force_skills"},{"Id":28065,"Name":"","CurseForge":"tacz-40k","Modrinth":"tacz40k"},{"Id":28066,"Name":"","CurseForge":"carpentry-chisels","Modrinth":"carpentry-and-chisels"},{"Id":28068,"Name":"空岛世界 (Sky Islands)","CurseForge":"sky-islands","Modrinth":"skyislands"},{"Id":28069,"Name":"","CurseForge":"more-withers","Modrinth":""},{"Id":28070,"Name":"","CurseForge":"","Modrinth":"itemcommander"},{"Id":28071,"Name":"","CurseForge":"spooky-foods","Modrinth":"spooky-foods"},{"Id":28072,"Name":"","CurseForge":"peaks","Modrinth":""},{"Id":28073,"Name":"","CurseForge":"chemlib-neoforged","Modrinth":""},{"Id":28074,"Name":"","CurseForge":"particular-reforged-backport","Modrinth":""},{"Id":28075,"Name":"","CurseForge":"","Modrinth":"mtr-traffic-addon"},{"Id":28077,"Name":"","CurseForge":"mundus-magicus","Modrinth":""},{"Id":28078,"Name":"","CurseForge":"chest-tracker-forge-edition","Modrinth":""},{"Id":28079,"Name":"","CurseForge":"midnight-thoughts","Modrinth":"midnight-thoughts"},{"Id":28080,"Name":"","CurseForge":"bosscraft-2-remake","Modrinth":"bosscraft-2-reamke"},{"Id":28081,"Name":"公式加载器 (Formula Loader)","CurseForge":"","Modrinth":"formula-loader"},{"Id":28082,"Name":"","CurseForge":"mc2-interactive-foliage","Modrinth":"mc2-interactive-foliage"},{"Id":28085,"Name":"","CurseForge":"alchemistry-neoforged","Modrinth":""},{"Id":28086,"Name":"","CurseForge":"","Modrinth":"vulkanmodneoforge"},{"Id":28088,"Name":"","CurseForge":"moretraffic","Modrinth":"moretraffic"},{"Id":28089,"Name":"","CurseForge":"dopplegangers","Modrinth":""},{"Id":28090,"Name":"","CurseForge":"self-aware-robot","Modrinth":"selfawarerobot"},{"Id":28091,"Name":"像素化-城建 (Pixelated Urban Construction)","CurseForge":"","Modrinth":"pixelated-uc"},{"Id":28092,"Name":"","CurseForge":"cc-utf-8-compat","Modrinth":""},{"Id":28094,"Name":"","CurseForge":"neoportals","Modrinth":"neoportals"},{"Id":28096,"Name":"水槽 (JustSink)","CurseForge":"justsink","Modrinth":"justsink"},{"Id":28097,"Name":"史诗战斗:巅峰 (EpicFight: ChampionZone)","CurseForge":"ef-cz","Modrinth":""},{"Id":28098,"Name":"世界预览:新锻 (World Preview NeoForged)","CurseForge":"","Modrinth":"world-preview-neoforged-(unofficial)"},{"Id":28099,"Name":"世界预览:群峦 (World Preview TFC)","CurseForge":"world-preview-tfc","Modrinth":"world-preview-terrafirmacraft"},{"Id":28100,"Name":"","CurseForge":"genesis-world-previewer-pregenerator","Modrinth":"genesis-world-previewer-pregenerator"},{"Id":28101,"Name":"诡厄巫法:黑暗祭坛GUI (Goety DarGui)","CurseForge":"goety-dargui","Modrinth":"goety-dargui"},{"Id":28102,"Name":"辐射区","CurseForge":"radiation-area","Modrinth":""},{"Id":28103,"Name":"","CurseForge":"galtc","Modrinth":""},{"Id":28104,"Name":"","CurseForge":"chestcavitytweak","Modrinth":""},{"Id":28106,"Name":"","CurseForge":"bmaddon","Modrinth":""},{"Id":28107,"Name":"","CurseForge":"gregtech-x-forestry-addon-by-moojifiji","Modrinth":""},{"Id":28108,"Name":"航空学:无界 (Aeronautics: No Horizon)","CurseForge":"aeronautics-no-horizon","Modrinth":""},{"Id":28109,"Name":"","CurseForge":"glimmering-gardens","Modrinth":"glimmering-gardens"},{"Id":28110,"Name":"","CurseForge":"slenderman-ascend","Modrinth":"slenderman-ascend"},{"Id":28111,"Name":"","CurseForge":"realistic-terrain-movement","Modrinth":""},{"Id":28112,"Name":"","CurseForge":"dndinstrument","Modrinth":""},{"Id":28113,"Name":"机械动力火炮:光学瞄具 (CBC Optics)","CurseForge":"cbc-optics","Modrinth":""},{"Id":28114,"Name":"","CurseForge":"","Modrinth":"allmusic_lyrics"},{"Id":28115,"Name":"村民快乐机 (Villager Happy Machine)","CurseForge":"vhm","Modrinth":""},{"Id":28116,"Name":"","CurseForge":"prehistoric-spawns-a-fossils-and-archeology","Modrinth":"prehistoric-spawns"},{"Id":28117,"Name":"不洁饮食 (Unsanitary Food)","CurseForge":"","Modrinth":"unsanitary-food"},{"Id":28118,"Name":"","CurseForge":"projectex-lite","Modrinth":""},{"Id":28125,"Name":"","CurseForge":"ae2-draconic-fusion-autocrafter","Modrinth":""},{"Id":28126,"Name":"生活调味料:雪梨版 (Spice of Life: Peer Edition)","CurseForge":"spice-of-life-peer-edition","Modrinth":""},{"Id":28127,"Name":"","CurseForge":"hardened-armadillos","Modrinth":""},{"Id":28128,"Name":"","CurseForge":"mining-excavation-dimension","Modrinth":"mining-excavation-dimension-read-bio"},{"Id":28129,"Name":"","CurseForge":"pvputils-fix","Modrinth":"pvputils-fix"},{"Id":28130,"Name":"TW的烘培工艺 (TW's Baking Process)","CurseForge":"baking-process","Modrinth":"baking-process"},{"Id":28131,"Name":"猫猫科技 (NekoTech)","CurseForge":"","Modrinth":"neko_tech"},{"Id":28133,"Name":"Tacz的奇特附魔 (Tacz's Bizarre Enchantments)","CurseForge":"taczs-bizarre-enchantments","Modrinth":""},{"Id":28134,"Name":"","CurseForge":"just-enough-freaky-additions-jefa","Modrinth":"jefa"},{"Id":28136,"Name":"言出法随 (Numen)","CurseForge":"numen-ai","Modrinth":"numen"},{"Id":28137,"Name":"","CurseForge":"irons-simple-blood","Modrinth":"irons-simple-blood"},{"Id":28138,"Name":"","CurseForge":"functional-chemical","Modrinth":""},{"Id":28140,"Name":"","CurseForge":"metus-oblita","Modrinth":""},{"Id":28144,"Name":"暮色森林:旅行者套装增强 (Twilight Forest: Travellers Set Plus)","CurseForge":"twilight-forest-travellers-set-plus","Modrinth":""},{"Id":28146,"Name":"Packwiz 整合包加载器 (Packwiz Modpack Loader)","CurseForge":"","Modrinth":"packwiz-modpack-loader"},{"Id":28147,"Name":"飘扬披风:传承 (Wavey Capes (Legacy))","CurseForge":"wavey-capes-legacy","Modrinth":""},{"Id":28150,"Name":"","CurseForge":"exposure-space","Modrinth":"exposure-space"},{"Id":28151,"Name":"天气效果 (Weather Effect)","CurseForge":"","Modrinth":"weathereffect"},{"Id":28152,"Name":"交换键盘生存!-幽幽的奇思妙想","CurseForge":"","Modrinth":"swapkeyboards"},{"Id":28154,"Name":"无尽贪婪:涅槃 (Avaritia:Nirvana)","CurseForge":"","Modrinth":"avaritia-nirvana"},{"Id":28155,"Name":"观鸟 (Bird Watching)","CurseForge":"bird-watching","Modrinth":""},{"Id":28156,"Name":"无尽物品编辑器:重生 (Infinity Item Editor Re)","CurseForge":"","Modrinth":"infinity-item-editor-re"},{"Id":28157,"Name":"更多弓箭/更多箭矢 (More Arrows)","CurseForge":"plumes-more-arrows","Modrinth":"more_arrows"},{"Id":28158,"Name":"收获:遗产 (HarvestHeritage)","CurseForge":"harvestheritage","Modrinth":""},{"Id":28159,"Name":"","CurseForge":"","Modrinth":"bigger-stacks-unofficial"},{"Id":28160,"Name":"机械动力:工厂控制台 (Create: Factory Controller)","CurseForge":"create-factory-controller","Modrinth":"create-factory-controller"},{"Id":28163,"Name":"3D 皮肤层:传承 (Skin Layers 3D (Legacy))","CurseForge":"skin-layers-3d-legacy","Modrinth":""},{"Id":28164,"Name":"变身:重铸版 (Morph (Reforged))","CurseForge":"morph-reforged","Modrinth":""},{"Id":28165,"Name":"","CurseForge":"utility-mobs-redux","Modrinth":""},{"Id":28166,"Name":"挖矿与砍杀:双持与战备 2 - 重铸版 (Mine & Blade: Battlegear 2 (Reforged))","CurseForge":"mine-blade-battlegear-2-reforged","Modrinth":""},{"Id":28168,"Name":"秘传工匠 (Esotericism Tinker)","CurseForge":"esotericismtinker","Modrinth":"esotericismtinker"},{"Id":28169,"Name":"航空学显示链接器修复 (Aeronautics Display Link Fix)","CurseForge":"aeronautics-display-link-fix","Modrinth":"aeronautics-display-link-fix"},{"Id":28170,"Name":"配方研究台 (Recipe Linkage)","CurseForge":"recipe-linkage","Modrinth":""},{"Id":28171,"Name":"原味双拼咸鱼罐头 (Sal_fish's Attribute Lib)","CurseForge":"sal-fishs-attribute-lib","Modrinth":"sal_fishs-attribute-lib"},{"Id":28172,"Name":"RS神化自动回收升级 (RS Apotheosis Salvaging)","CurseForge":"rsapotheosisalvaging","Modrinth":""},{"Id":28173,"Name":"耐久度显示 (Durability Show)","CurseForge":"durability-show","Modrinth":""},{"Id":28174,"Name":"","CurseForge":"chips-world-types","Modrinth":""},{"Id":28175,"Name":"异星科技:资源 (FTech Resource)","CurseForge":"ftechresource","Modrinth":"ftechresource"},{"Id":28176,"Name":"轻世 (Mild)","CurseForge":"mild","Modrinth":"mild"},{"Id":28178,"Name":"","CurseForge":"bren-guns-of-bin-fork","Modrinth":"bren-bin-fork"},{"Id":28179,"Name":"","CurseForge":"spore-srp","Modrinth":"sporesrp!"},{"Id":28180,"Name":"","CurseForge":"legacychecker","Modrinth":"legacychecker"},{"Id":28181,"Name":"死亡音效消除器修复 (Death Muffler Fix)","CurseForge":"death-muffler-fix","Modrinth":""},{"Id":28182,"Name":"我就是想开天窗 (I Just Want to Ruin the Ceiling)","CurseForge":"","Modrinth":"i-just-want-to-ruin-nether-ceiling"},{"Id":28183,"Name":"","CurseForge":"simplifygamemodecommands","Modrinth":""},{"Id":28184,"Name":"","CurseForge":"op-commands","Modrinth":"opcommands"},{"Id":28185,"Name":"新更好的战斗 (New Better Combat)","CurseForge":"new-better-combat","Modrinth":"new-better-combat"},{"Id":28186,"Name":"","CurseForge":"the-db","Modrinth":"the-db"},{"Id":28187,"Name":"","CurseForge":"emi-unofficial-port-unstable","Modrinth":""},{"Id":28188,"Name":"","CurseForge":"luminanceo","Modrinth":""},{"Id":28189,"Name":"","CurseForge":"ghostpig-jar","Modrinth":"ghostpig.jar"},{"Id":28190,"Name":"","CurseForge":"the-chicken-ghost","Modrinth":"the-chicken-ghost"},{"Id":28191,"Name":"天枢-库 (Tianshu Libs)","CurseForge":"tianshu-library","Modrinth":"tianshu-library"},{"Id":28192,"Name":"","CurseForge":"extra-golems-reborn","Modrinth":""},{"Id":28193,"Name":"","CurseForge":"astrids-structures","Modrinth":"astrids-structures"},{"Id":28194,"Name":"","CurseForge":"quick-stack","Modrinth":""},{"Id":28197,"Name":"","CurseForge":"decorative-blocks-reborn","Modrinth":"decorative-blocks-reborn"},{"Id":28198,"Name":"机械动力 :村民劳工 (Create Villager Labor)","CurseForge":"","Modrinth":"create-villager-labor"},{"Id":28199,"Name":"凡家物语:浪漫扩展 (MCA: Romantic Expansion)","CurseForge":"mca-romantic-expansion","Modrinth":"mca-romantic-expansion"},{"Id":28200,"Name":"","CurseForge":"","Modrinth":"mononym"},{"Id":28201,"Name":"Server I18n API 重生版 (Server I18n API (Reborn))","CurseForge":"server-i18n-api-reborn","Modrinth":"server-i18n-api-reborn"},{"Id":28202,"Name":"药水 API (Potion API)","CurseForge":"potion-api","Modrinth":""},{"Id":28203,"Name":"安全的鹦鹉 (Safe Parrots)","CurseForge":"","Modrinth":"safeparrots"},{"Id":28204,"Name":"简单世界 (Simple World)","CurseForge":"simple-world","Modrinth":"simple_world"},{"Id":28205,"Name":"","CurseForge":"strut-your-stuff","Modrinth":"strut-your-stuff"},{"Id":28206,"Name":"兢II (Dust Trench)","CurseForge":"ii-dust-trench","Modrinth":""},{"Id":28208,"Name":"神圣锻造 (Holy Forging)","CurseForge":"holy-forging","Modrinth":"holy-forging"},{"Id":28210,"Name":"","CurseForge":"twilight-spellbooks-irons-spells-n-spellbooks","Modrinth":""},{"Id":28211,"Name":"","CurseForge":"cobblemon-utility-ivs-evs-more-no-recipes","Modrinth":""},{"Id":28212,"Name":"","CurseForge":"","Modrinth":"bob-fluid-translator"},{"Id":28213,"Name":"数据包配方生成器 (Data Recipe Generator)","CurseForge":"data-recipe-generator","Modrinth":"data-recipe-generator"},{"Id":28214,"Name":"","CurseForge":"magma-core","Modrinth":"magma-core"},{"Id":28215,"Name":"","CurseForge":"ooundeadexpansion","Modrinth":""},{"Id":28216,"Name":"","CurseForge":"re-retro-damage-indicators","Modrinth":"re-retro-damage-indicators"},{"Id":28217,"Name":"失落遗物学:重现 (Forgotten Relics RE)","CurseForge":"forgotten-relics-re","Modrinth":""},{"Id":28218,"Name":"","CurseForge":"visible-barriers","Modrinth":"visible-barriers"},{"Id":28219,"Name":"","CurseForge":"nomads-delight","Modrinth":"nomads-delight"},{"Id":28220,"Name":"","CurseForge":"caves-delights","Modrinth":"caves-delights"},{"Id":28222,"Name":"动量 (Momentum)","CurseForge":"momentum-parkour","Modrinth":"momentum-parkour"},{"Id":28224,"Name":"","CurseForge":"no-double-eat","Modrinth":"no-double-eat"},{"Id":28225,"Name":"我是僵尸? (I Am Zombie?)","CurseForge":"iamzombieq","Modrinth":"iamzombieq"},{"Id":28226,"Name":"","CurseForge":"villager-industries","Modrinth":"villager-industries"},{"Id":28229,"Name":"","CurseForge":"vanillin-fly","Modrinth":""},{"Id":28230,"Name":"服务器路径点 (Server Waypoint)","CurseForge":"server-waypoint","Modrinth":""},{"Id":28231,"Name":"","CurseForge":"world-name-terrarified","Modrinth":"world-name-terrarified"},{"Id":28232,"Name":"末影导管优化器 (Ender IO:Conduit Optimizer)","CurseForge":"ender-io-conduit-optimizer","Modrinth":"ender-io-conduit-optimizer"},{"Id":28233,"Name":"机魂大悦 (The Machine Spirit is Pleased)","CurseForge":"create-the-machine-spirit-is-pleased","Modrinth":""},{"Id":28234,"Name":"航空学:录像回放兼容 (Aeronautics Replay)","CurseForge":"aeronautics-replay","Modrinth":"aeronautics-replay"},{"Id":28235,"Name":"VulkanMod Create 兼容补丁 (VulkanMod Create Compat)","CurseForge":"vulkanmod-create-compat","Modrinth":"vulkanmod-create-compat"},{"Id":28236,"Name":"","CurseForge":"vestalihy","Modrinth":"vestalihy"},{"Id":28237,"Name":"","CurseForge":"trimmable-create-armor","Modrinth":""},{"Id":28238,"Name":"自动钓鱼模式 (AutoAFKFish)","CurseForge":"autoafkfish","Modrinth":"autoafkfish"},{"Id":28239,"Name":"试验假人暴击修复 (DummyCritFix)","CurseForge":"dummycritfix","Modrinth":"dummycritfix"},{"Id":28240,"Name":"护甲调整 (Armor Tweaks)","CurseForge":"","Modrinth":"armor-nerf"},{"Id":28242,"Name":"","CurseForge":"bossspawner","Modrinth":""},{"Id":28244,"Name":"晶化花搜索","CurseForge":"crystallineflowersearch","Modrinth":"crystallineflowersearch"},{"Id":28245,"Name":"","CurseForge":"shield-banner-fix","Modrinth":"shield-banner-fix"},{"Id":28246,"Name":"猫娘 (Nekomusume)","CurseForge":"nekomusume","Modrinth":""},{"Id":28247,"Name":"","CurseForge":"gone-fishin","Modrinth":""},{"Id":28248,"Name":"","CurseForge":"quick-zoom","Modrinth":"quickzoom"},{"Id":28249,"Name":"","CurseForge":"rlbt-kimohapng","Modrinth":""},{"Id":28250,"Name":"神秘定制师 (Thaumic Customizer)","CurseForge":"thaumic-customizer","Modrinth":""},{"Id":28253,"Name":"热成像 (Thermal)","CurseForge":"thermal","Modrinth":""},{"Id":28254,"Name":"AE2收藏夹 (AE2 Favorites)","CurseForge":"ae2-favorites","Modrinth":"ae2-favorites"},{"Id":28255,"Name":"","CurseForge":"irissearch","Modrinth":"irissearch"},{"Id":28256,"Name":"高清截图NeoForge (Neoshot)","CurseForge":"neoshot","Modrinth":"neoshot"},{"Id":28257,"Name":"争锋频道:我的世界城 (Rival Channel Minecraft City)","CurseForge":"rival-channel-city","Modrinth":""},{"Id":28258,"Name":"","CurseForge":"","Modrinth":"locator-heads"},{"Id":28259,"Name":"更好的局域网列表 (LAN Enhancer)","CurseForge":"","Modrinth":"lan-enhancer"},{"Id":28260,"Name":"","CurseForge":"big-charlie","Modrinth":"big-charlie"},{"Id":28261,"Name":"匠魂器官 (tinkers_organ)","CurseForge":"","Modrinth":"tinkers_organ"},{"Id":28263,"Name":"去他的下界铁掌 (FkGauntlet)","CurseForge":"fkgauntlet","Modrinth":"fkgauntlet"},{"Id":28265,"Name":"暗影饰品 (EtBW2 Curios)","CurseForge":"etbw2-curios","Modrinth":""},{"Id":28267,"Name":"领地记录 (Territory Record)","CurseForge":"territory-record","Modrinth":""},{"Id":28268,"Name":"森罗酒馆:老牌酒馆","CurseForge":"kaleidoscope-old-tavern","Modrinth":""},{"Id":28269,"Name":"车万女仆:末影 (TLM Ender)","CurseForge":"tlm-ender","Modrinth":""},{"Id":28270,"Name":"","CurseForge":"baubley-elytra","Modrinth":"baubley-elytra"},{"Id":28272,"Name":"","CurseForge":"backpack-baubles","Modrinth":""},{"Id":28273,"Name":"","CurseForge":"backpackbubbles-cre","Modrinth":""},{"Id":28274,"Name":"方块耐久 (Block Durability)","CurseForge":"","Modrinth":"block-durability"},{"Id":28275,"Name":"","CurseForge":"betterloot-zibura","Modrinth":"betterloot-zibura"},{"Id":28276,"Name":"编年史引擎:RPG框架 (Chronicle Engine: RPG Framework)","CurseForge":"chronicle-engine-rpg-framework","Modrinth":""},{"Id":28277,"Name":"","CurseForge":"sable-x-little-tiles-create-aeronautics","Modrinth":""},{"Id":28278,"Name":"","CurseForge":"bye-pregen","Modrinth":""},{"Id":28279,"Name":"树洞Forge版 (Tree Hollows Forge)","CurseForge":"tree-hollows-forge","Modrinth":""},{"Id":28282,"Name":"未至之域 (Yetrealm)","CurseForge":"yetrealm","Modrinth":""},{"Id":28283,"Name":"","CurseForge":"","Modrinth":"autoeat"},{"Id":28284,"Name":"技能树 (Skill)","CurseForge":"skilltree","Modrinth":""},{"Id":28285,"Name":"找到我 (Find me)","CurseForge":"find-me","Modrinth":"find-me"},{"Id":28286,"Name":"黑暗祭坛UI (DarkAltarUI)","CurseForge":"darkaltarui","Modrinth":""},{"Id":28287,"Name":"","CurseForge":"","Modrinth":"technomod"},{"Id":28288,"Name":"","CurseForge":"ahznbs-ranking-system-addon","Modrinth":""},{"Id":28289,"Name":"天国的战斗 (Kindomcome Combat)","CurseForge":"kingdomcome-combat","Modrinth":"kingdomcome-combat"},{"Id":28290,"Name":"","CurseForge":"mining-forks","Modrinth":""},{"Id":28291,"Name":"闪避子弹时间 (DodgeBulletTime)","CurseForge":"dodgebullettime","Modrinth":"dodgebullettime"},{"Id":28292,"Name":"方程式头盔 (Formula Helmets)","CurseForge":"f1-racing-mod","Modrinth":"formula-helmets"},{"Id":28293,"Name":"","CurseForge":"micro-h-i-d","Modrinth":""},{"Id":28295,"Name":"","CurseForge":"voxlink","Modrinth":"voxlink"},{"Id":28296,"Name":"机械动力:虚空通道 (Create: Voidway)","CurseForge":"create-voidway","Modrinth":""},{"Id":28297,"Name":"机械动力火炮:火车装甲 (CBC: Locometal Armor)","CurseForge":"","Modrinth":"cbc-locometal-armor"},{"Id":28298,"Name":"机械动力火炮:终端弹道学 (CBC: Terminal Ballistics)","CurseForge":"","Modrinth":"cbc-terminal-ballistics"},{"Id":28299,"Name":"","CurseForge":"corvicraft-spawn-utility","Modrinth":"corvicraft-spawn-utility"},{"Id":28300,"Name":"魔导透镜视效复刻 (Thaumometer Remake)","CurseForge":"thaumometer-remake","Modrinth":""},{"Id":28302,"Name":"生物效果编辑器 (Mob Effects Modifier)","CurseForge":"mob-effects-modifier","Modrinth":"mob-effects-modifier"},{"Id":28303,"Name":"","CurseForge":"","Modrinth":"memory-leak"},{"Id":28305,"Name":"更好的自动保存 (Shinoyuki BetterAutoSave)","CurseForge":"","Modrinth":"shinoyuki-betterautosave"},{"Id":28306,"Name":"","CurseForge":"plutonium244","Modrinth":""},{"Id":28307,"Name":"","CurseForge":"controlify-forgified","Modrinth":"controlify-forgified"},{"Id":28308,"Name":"","CurseForge":"relicera-accessories-and-relics","Modrinth":"relicera"},{"Id":28310,"Name":"混沌能量水晶 (Chaotic Energy Crystal)","CurseForge":"chaotic-energy-crystal","Modrinth":"chaotic-energy-crystal"},{"Id":28311,"Name":"降灵法术 (Spirit Mediumship Spell - Iron's Spells Addon)","CurseForge":"sms-spirit-mediumship-spell-irons-spells-addon","Modrinth":""},{"Id":28312,"Name":"极限闪避 (Extreme Evasion)","CurseForge":"extreme-evasion","Modrinth":"extreme-evasion"},{"Id":28313,"Name":"区块实体清理 (Chunk Cap Guard)","CurseForge":"chunk-cap-guard","Modrinth":""},{"Id":28314,"Name":"","CurseForge":"bens-titans","Modrinth":""},{"Id":28315,"Name":"","CurseForge":"firework-table","Modrinth":""},{"Id":28316,"Name":"","CurseForge":"actually-additions-advanced-machinery","Modrinth":""},{"Id":28317,"Name":"","CurseForge":"sleepingoverhaul2","Modrinth":"sleeping-overhaul-2"},{"Id":28318,"Name":"","CurseForge":"player-animation-library-more-rotation","Modrinth":"description"},{"Id":28319,"Name":"碘 (Iodium)","CurseForge":"iodium","Modrinth":""},{"Id":28320,"Name":"魂归原位 (SoulSort)","CurseForge":"soulsort","Modrinth":""},{"Id":28321,"Name":"伤害要在结束动画后 (Strike After Swing)","CurseForge":"strike-after-swing","Modrinth":"strike-after-swing"},{"Id":28322,"Name":"","CurseForge":"","Modrinth":"stepupagain2"},{"Id":28323,"Name":"","CurseForge":"","Modrinth":"stepupagain"},{"Id":28324,"Name":"","CurseForge":"only-paxels","Modrinth":"only-paxels"},{"Id":28325,"Name":"","CurseForge":"magispellers-april-fool-bosses","Modrinth":""},{"Id":28326,"Name":"","CurseForge":"noclipbackrooms","Modrinth":""},{"Id":28327,"Name":"","CurseForge":"regoogly-eyes","Modrinth":""},{"Id":28328,"Name":"更大更好更强的女仆雕像 (Bigger Better Statue)","CurseForge":"bigger-better-statue","Modrinth":""},{"Id":28330,"Name":"Punchy! x Tiny Takeover - 仅 26.1+","CurseForge":"punchy-x-tiny-takeover","Modrinth":""},{"Id":28330,"Name":"","CurseForge":"","Modrinth":"tiny-takeover-x-punchy"},{"Id":28331,"Name":"真正永恒的伙伴 (Truly Best Friends Forever)","CurseForge":"truly-best-friends-forever","Modrinth":""},{"Id":28332,"Name":"","CurseForge":"broken-tag-fixer","Modrinth":""},{"Id":28333,"Name":"","CurseForge":"mh-hunter-s-brews","Modrinth":""},{"Id":28334,"Name":"泰拉生物:召唤师拓展 (Summoner Expansion)","CurseForge":"summoner-expansion","Modrinth":""},{"Id":28335,"Name":"","CurseForge":"gridless-inventory","Modrinth":""},{"Id":28338,"Name":"","CurseForge":"dark-souls-expansion","Modrinth":"dark-souls-expansion"},{"Id":28339,"Name":"","CurseForge":"rimskin","Modrinth":""},{"Id":28340,"Name":"","CurseForge":"mutant-mobs","Modrinth":""},{"Id":28343,"Name":"通用法术 (Universal Spell - Iron's Spells Addon)","CurseForge":"us-universal-spell-irons-spells-addon","Modrinth":""},{"Id":28344,"Name":"生命共享 (HeartTogether)","CurseForge":"","Modrinth":"hearttogether"},{"Id":28345,"Name":"音乐机 (MengSamaNetMusic)","CurseForge":"mengsamanetmusic","Modrinth":"mengsamanetmusic"},{"Id":28346,"Name":"TFC 锻造计算 (TerraFirmaCraft Forging Calculator)","CurseForge":"tfc-forging-calculator","Modrinth":""},{"Id":28347,"Name":"","CurseForge":"ragdoll-reactions","Modrinth":"ragdoll-reactions"},{"Id":28348,"Name":"","CurseForge":"sable-ragdolls","Modrinth":"sable-ragdolls"},{"Id":28349,"Name":"简单指令 (EasyCommand)","CurseForge":"","Modrinth":"easycommand"},{"Id":28350,"Name":"","CurseForge":"saro-s-player-ragdoll","Modrinth":"saros-player-ragdoll"},{"Id":28351,"Name":"","CurseForge":"sorcerer-of-madness-goety-addon","Modrinth":""},{"Id":28352,"Name":"","CurseForge":"","Modrinth":"aposabackup"},{"Id":28354,"Name":"","CurseForge":"","Modrinth":"magic-mtr"},{"Id":28355,"Name":"","CurseForge":"universal-shops","Modrinth":"universal-shops"},{"Id":28356,"Name":"","CurseForge":"window-fix","Modrinth":"window-fix"},{"Id":28358,"Name":"","CurseForge":"rotten-recycler","Modrinth":"rotten-recycler"},{"Id":28359,"Name":"","CurseForge":"handful","Modrinth":"handful"},{"Id":28360,"Name":"天穹物流 (Sky Logistics)","CurseForge":"sky-logistics","Modrinth":""},{"Id":28361,"Name":"","CurseForge":"simplest-paxels","Modrinth":"simplest-paxels"},{"Id":28364,"Name":"","CurseForge":"","Modrinth":"gtp"},{"Id":28365,"Name":"","CurseForge":"utility-drawers","Modrinth":"utility-drawers"},{"Id":28366,"Name":"","CurseForge":"mod-toggler","Modrinth":""},{"Id":28367,"Name":"","CurseForge":"wearable-backpacks-newlcraft-edition","Modrinth":""},{"Id":28369,"Name":"","CurseForge":"key-and-code-lock-ce","Modrinth":""},{"Id":28370,"Name":"","CurseForge":"rlbubbles","Modrinth":"rlbubbles"},{"Id":28371,"Name":"","CurseForge":"shearable-chicken","Modrinth":""},{"Id":28372,"Name":"","CurseForge":"recoraled-reef","Modrinth":""},{"Id":28374,"Name":"","CurseForge":"rustic-renaissance","Modrinth":""},{"Id":28375,"Name":"","CurseForge":"smoothfy","Modrinth":"smoothfy"},{"Id":28376,"Name":"","CurseForge":"sousou-no-frierencraft-neo","Modrinth":""},{"Id":28377,"Name":"黑板 (Blackboard)","CurseForge":"blackboard","Modrinth":""},{"Id":28379,"Name":"冒险地牢:延续 (Roguelike Dungeons Continuation)","CurseForge":"roguelike-dungeons-continuation","Modrinth":""},{"Id":28380,"Name":"","CurseForge":"universal-translator","Modrinth":""},{"Id":28381,"Name":"","CurseForge":"gpushift","Modrinth":"gpushift"},{"Id":28383,"Name":"","CurseForge":"three-dimensional-experience","Modrinth":""},{"Id":28384,"Name":"终焉冠冕 (EndCrown)","CurseForge":"endcrown","Modrinth":""},{"Id":28385,"Name":"CS2 开箱 (CS2 Box)","CurseForge":"","Modrinth":"csgo-box"},{"Id":28387,"Name":"","CurseForge":"ethiums-delight","Modrinth":"ethiums-delight"},{"Id":28388,"Name":"","CurseForge":"create-aeronautics-harness","Modrinth":""},{"Id":28389,"Name":"","CurseForge":"azimuth-api","Modrinth":"azimuth-api"},{"Id":28390,"Name":"","CurseForge":"effortless-building-gadgets","Modrinth":"effortless-building-gadgets"},{"Id":28391,"Name":"","CurseForge":"new-shears","Modrinth":"new-shears"},{"Id":28392,"Name":"","CurseForge":"cit-reborn","Modrinth":"cit-reborn-mod"},{"Id":28393,"Name":"","CurseForge":"","Modrinth":"world-preview-prime"},{"Id":28395,"Name":"","CurseForge":"cmt-custom-mob-targets-cre","Modrinth":""},{"Id":28396,"Name":"","CurseForge":"levelup-rereloaded","Modrinth":""},{"Id":28397,"Name":"光点:护盾 (Light Point: Shields)","CurseForge":"light-point-shields","Modrinth":""},{"Id":28398,"Name":"神秘遗物:深邃诅咒 (Enigmatic Legacy: Profound Curse)","CurseForge":"enigmatic-legacy-profound-curse","Modrinth":""},{"Id":28399,"Name":"","CurseForge":"htp-citoptimizer","Modrinth":"htp-citoptimizer"},{"Id":28400,"Name":"","CurseForge":"resprouted","Modrinth":"resprouted"},{"Id":28401,"Name":"森罗物语:果园 (Kaleidoscope Orchard)","CurseForge":"","Modrinth":"kaleidoscope-orchard"},{"Id":28402,"Name":"","CurseForge":"portalium","Modrinth":""},{"Id":28403,"Name":"","CurseForge":"gradium","Modrinth":""},{"Id":28404,"Name":"","CurseForge":"project-yummy","Modrinth":""},{"Id":28405,"Name":"","CurseForge":"gradlemc","Modrinth":""},{"Id":28406,"Name":"","CurseForge":"block-pack","Modrinth":"block-pack"},{"Id":28407,"Name":"鞘翅飞行 HUD (Elytra Flight HUD)","CurseForge":"elytra-flight-hud","Modrinth":""},{"Id":28408,"Name":"钾 (Potassium)","CurseForge":"potassium-mod","Modrinth":"projectpotassium"},{"Id":28409,"Name":"","CurseForge":"mc-dungeons-reimagined","Modrinth":""},{"Id":28410,"Name":"","CurseForge":"bbs-cml-edition","Modrinth":"bbs-cml-edition"},{"Id":28412,"Name":"JEI群系信息查询 (JEI Biome)","CurseForge":"jei-biome","Modrinth":""},{"Id":28413,"Name":"","CurseForge":"jujutsu-kaisen-jujutsu-verse","Modrinth":""},{"Id":28415,"Name":"末影接口:气压导管 (Ender IO: Pressure Conduits)","CurseForge":"ender-io-pressure-conduits","Modrinth":"ender-io-pressure-conduits"},{"Id":28416,"Name":"","CurseForge":"dashpanels","Modrinth":"dashpanels"},{"Id":28417,"Name":"蓝图连接 (BlockPrint-Link)","CurseForge":"blockprint-link","Modrinth":""},{"Id":28418,"Name":"封包加速 (PackagedAuto Acceleration)","CurseForge":"packaged-acceleration","Modrinth":""},{"Id":28419,"Name":"永恒装备 (Everlast Gear)","CurseForge":"everlast-gear","Modrinth":"everlast_gear"},{"Id":28420,"Name":"","CurseForge":"stars-aligned","Modrinth":""},{"Id":28421,"Name":"","CurseForge":"siren-head-reborn","Modrinth":"sirenhead-reborn"},{"Id":28422,"Name":"","CurseForge":"skarrier-mobs","Modrinth":""},{"Id":28424,"Name":"特殊沉船遗迹 (Legacy Boat Ruins)","CurseForge":"legacy-boat-ruins","Modrinth":"legacy-boat-ruins"},{"Id":28425,"Name":"","CurseForge":"feathered-friend","Modrinth":"feathered-friend"},{"Id":28427,"Name":"咖啡工艺移植版 (Coffee Craft Unofficial Port)","CurseForge":"coffee-craft-unofficial-port","Modrinth":""},{"Id":28428,"Name":"","CurseForge":"cinematic-respawn","Modrinth":"cinematic-respawn"},{"Id":28430,"Name":"","CurseForge":"take-a-seat","Modrinth":"tas"},{"Id":28431,"Name":"湮灭之刃-非官方重制版","CurseForge":"annihilationbladeex","Modrinth":""},{"Id":28433,"Name":"核废料处理 (Nuclear Waste Disposal)","CurseForge":"","Modrinth":"uclearwastedisposal"},{"Id":28434,"Name":"赤焦枪械:女仆兼容 (Scorched Guns: Maid Compat)","CurseForge":"scorched-guns-maid-compat","Modrinth":""},{"Id":28435,"Name":"","CurseForge":"farmers-delight-offhand-cutting-board-interaction","Modrinth":"farmers-delight-offhand-cutting-board-interaction"},{"Id":28436,"Name":"","CurseForge":"pvputils","Modrinth":"pvp_utils"},{"Id":28437,"Name":"","CurseForge":"glowing-emissive-ores-definitive-edition","Modrinth":"glowing-emissive-ores-definitive-edition"},{"Id":28438,"Name":"","CurseForge":"corail-pillar","Modrinth":""},{"Id":28439,"Name":"","CurseForge":"mosaic-carpentry","Modrinth":"mosaic-carpentry"},{"Id":28440,"Name":"","CurseForge":"antarchy","Modrinth":"antarchy"},{"Id":28442,"Name":"","CurseForge":"","Modrinth":"simple-durability-tooltip"},{"Id":28444,"Name":"碧蓝档案光环(梦樱版) (Dream Sakura Blue Archive)","CurseForge":"dream-sakura-blue-archive","Modrinth":""},{"Id":28446,"Name":"Iam 音乐播放器:系统媒体传输控件 (Iam Music Player: System Media Transport Controls)","CurseForge":"","Modrinth":"impsmtc"},{"Id":28447,"Name":"","CurseForge":"attribute-adventure","Modrinth":"attribute-adventure"},{"Id":28448,"Name":"","CurseForge":"fast-items","Modrinth":""},{"Id":28449,"Name":"","CurseForge":"simplest-hammers","Modrinth":"simplest-hammers"},{"Id":28450,"Name":"","CurseForge":"c2me-ocl","Modrinth":"c2me-ocl"},{"Id":28451,"Name":"","CurseForge":"thirst-was-reclaimed","Modrinth":"thirst-was-reclaimed"},{"Id":28452,"Name":"吐司的弓 (ToastsBows)","CurseForge":"toastsbows","Modrinth":""},{"Id":28453,"Name":"等价元件 (ProjectCell)","CurseForge":"projectcell","Modrinth":"projectcell"},{"Id":28454,"Name":"","CurseForge":"fastvancements","Modrinth":""},{"Id":28455,"Name":"简易交易器 (Simple Trading Devices)","CurseForge":"simple-trading-device","Modrinth":""},{"Id":28456,"Name":"","CurseForge":"hunters-equipment","Modrinth":""},{"Id":28457,"Name":"高级植物学:重绽 (Advanced Botany: Rebloom)","CurseForge":"advanced-botany-rebloom","Modrinth":""},{"Id":28458,"Name":"","CurseForge":"sway","Modrinth":"sway"},{"Id":28459,"Name":"奥法乐事 (Iron's Spell's Delight - Iron's Spells Addon)","CurseForge":"isd-irons-spells-delight","Modrinth":""},{"Id":28460,"Name":"","CurseForge":"bielggs-spells-addon","Modrinth":""},{"Id":28461,"Name":"护甲组合API (Armors API)","CurseForge":"armors-api","Modrinth":""},{"Id":28463,"Name":"","CurseForge":"apothic-infinite","Modrinth":""},{"Id":28464,"Name":"","CurseForge":"pokemontcg","Modrinth":"pokmontcg"},{"Id":28465,"Name":"寄体乐事 (Parasites' Delight)","CurseForge":"parasites-delight","Modrinth":""},{"Id":28466,"Name":"","CurseForge":"murmora","Modrinth":""},{"Id":28467,"Name":"","CurseForge":"projectee","Modrinth":""},{"Id":28468,"Name":"现代洞穴地形 (Modern Cave Terrain)","CurseForge":"modern-cave-terrain","Modrinth":""},{"Id":28469,"Name":"","CurseForge":"create-randomize-filters","Modrinth":"create-randomize-filters"},{"Id":28470,"Name":"机械动力:幻翼物流 (Create Phantom)","CurseForge":"create-phantom","Modrinth":"createphantom"},{"Id":28471,"Name":"","CurseForge":"create-cosmonautics","Modrinth":""},{"Id":28472,"Name":"","CurseForge":"create-advanced-optimization","Modrinth":""},{"Id":28473,"Name":"机械动力火炮现代战争:配方修复 (CBCMW recipe fix)","CurseForge":"cbcmw-recipe-fix","Modrinth":""},{"Id":28474,"Name":"乞讨者 (Beggars)","CurseForge":"","Modrinth":"beggars"},{"Id":28475,"Name":"","CurseForge":"norecipebook","Modrinth":"norecipebookmod"},{"Id":28476,"Name":"可视化物品编辑器 (Visual Item Edit)","CurseForge":"visual-item-edit","Modrinth":"visual-item-edit"},{"Id":28477,"Name":"","CurseForge":"thaumic-information","Modrinth":""},{"Id":28478,"Name":"","CurseForge":"gtm-visual-recipe-editor","Modrinth":""},{"Id":28479,"Name":"","CurseForge":"advancedae-addon","Modrinth":"advancedae-addon"},{"Id":28480,"Name":"","CurseForge":"bee-workforce","Modrinth":""},{"Id":28482,"Name":"Mod迁移 (Mod Migrator)","CurseForge":"mod-migrator","Modrinth":""},{"Id":28484,"Name":"","CurseForge":"shine-vfx","Modrinth":"shine"},{"Id":28485,"Name":"","CurseForge":"more-animations","Modrinth":""},{"Id":28486,"Name":"","CurseForge":"verity-je","Modrinth":""},{"Id":28487,"Name":"","CurseForge":"directauth","Modrinth":""},{"Id":28488,"Name":"","CurseForge":"one-enough-damage","Modrinth":"one-enough-damage"},{"Id":28489,"Name":"","CurseForge":"advanced-tfr-rocketry","Modrinth":""},{"Id":28490,"Name":"","CurseForge":"twilight-lootr","Modrinth":""},{"Id":28492,"Name":"","CurseForge":"horror-the-shepherd","Modrinth":""},{"Id":28493,"Name":"","CurseForge":"always-hostile-animals","Modrinth":"always-hostile-animals"},{"Id":28495,"Name":"丰年 (Verdant Harvest)","CurseForge":"verdant-harvest","Modrinth":"verdant-harvest"},{"Id":28496,"Name":"","CurseForge":"liteblur","Modrinth":""},{"Id":28497,"Name":"E33EPUS的聊天界面 (E33EPUS's ChatScreen)","CurseForge":"e33epus-s-chatscreen","Modrinth":"e33epus-s-chatscreen"},{"Id":28498,"Name":"","CurseForge":"sound-culling","Modrinth":""},{"Id":28499,"Name":"","CurseForge":"safe-spawn","Modrinth":"safespawn"},{"Id":28500,"Name":"","CurseForge":"timber-frames","Modrinth":"timber-frames"},{"Id":28501,"Name":"","CurseForge":"anime-bride","Modrinth":"anime-bride"},{"Id":28502,"Name":"","CurseForge":"anime-angel-by-anoosh","Modrinth":"anime-angel"},{"Id":28503,"Name":"","CurseForge":"modern-apple-cows","Modrinth":"modern-apple-cows"},{"Id":28504,"Name":"铁砧工艺:叮咚叽 (AnvilCraft: DingDongJi)","CurseForge":"anvilcraft-dingdongji","Modrinth":"anvilcraftdingdongji"},{"Id":28505,"Name":"数学函数 (Math Function)","CurseForge":"","Modrinth":"math-function"},{"Id":28507,"Name":"心声 (Inner voice)","CurseForge":"inner-voice","Modrinth":""},{"Id":28508,"Name":"","CurseForge":"exlines-awnings","Modrinth":"exlines-awnings"},{"Id":28509,"Name":"","CurseForge":"nuclear-bombs-mod","Modrinth":""},{"Id":28510,"Name":"","CurseForge":"packdev-toolkit","Modrinth":"packdev-toolkit"},{"Id":28511,"Name":"","CurseForge":"inspect-animations","Modrinth":"inspect-animations"},{"Id":28512,"Name":"","CurseForge":"red-bits","Modrinth":"red-bits"},{"Id":28513,"Name":"","CurseForge":"indestructible-fix-for-modular-bees","Modrinth":""},{"Id":28515,"Name":"","CurseForge":"enchanter-tools","Modrinth":""},{"Id":28516,"Name":"更多锻造模板:齿轮力量 (MUT Create Power)","CurseForge":"mut-create-power","Modrinth":"mut-create-power"},{"Id":28517,"Name":"","CurseForge":"","Modrinth":"create-schematic-preview"},{"Id":28518,"Name":"机械动力:航空发动机 (AeroEngine)","CurseForge":"aeroengine","Modrinth":"aeroengine"},{"Id":28519,"Name":"","CurseForge":"too-many-tag-viewers","Modrinth":""},{"Id":28520,"Name":"","CurseForge":"agony-forge","Modrinth":""},{"Id":28522,"Name":"","CurseForge":"deep-below","Modrinth":"deep-below"},{"Id":28523,"Name":"棋盘 (Chess Board)","CurseForge":"chessboard","Modrinth":""},{"Id":28524,"Name":"枝繁叶茂 (Abundant Vegetation)","CurseForge":"abundant-vegetation","Modrinth":""},{"Id":28525,"Name":"","CurseForge":"educate-your-parrots","Modrinth":"educate-your-parrots"},{"Id":28526,"Name":"森罗物语:玩偶+ (Kaleidoscope Doll +)","CurseForge":"kaleidoscope-doll-plus","Modrinth":""},{"Id":28527,"Name":"七星 API (Seven Stars API)","CurseForge":"seven-stars-api","Modrinth":""},{"Id":28528,"Name":"荒灵野物 (Of Beasts and Wild Things)","CurseForge":"of-beasts-and-wild-things","Modrinth":""},{"Id":28529,"Name":"时钟定位 (Horologium Positioning)","CurseForge":"horologium-positioning","Modrinth":""},{"Id":28530,"Name":"","CurseForge":"digimod-cobblemon","Modrinth":"digimod-cobblemon"},{"Id":28531,"Name":"TaCZ 等级 (Tacz Level)","CurseForge":"","Modrinth":"taczlevel"},{"Id":28532,"Name":"命令与FancyMenu占位符 (Command Operation & FM Placeholder Expand)","CurseForge":"","Modrinth":"commandwithfmplaceholder"},{"Id":28533,"Name":"","CurseForge":"","Modrinth":"hysk-longhotbar"},{"Id":28535,"Name":"","CurseForge":"genders","Modrinth":""},{"Id":28536,"Name":"","CurseForge":"hear-the-wind","Modrinth":"hear-the-wind"},{"Id":28537,"Name":"","CurseForge":"fov-effects-backport","Modrinth":""},{"Id":28538,"Name":"","CurseForge":"future-shops","Modrinth":""},{"Id":28539,"Name":"","CurseForge":"","Modrinth":"sky-whales"},{"Id":28541,"Name":"","CurseForge":"additional-planets-a-galacticraft-addon","Modrinth":""},{"Id":28542,"Name":"星系Boobcat版 (Galacticraft Boobcat Edition)","CurseForge":"galacticraft-boobcat-edition","Modrinth":""},{"Id":28544,"Name":"","CurseForge":"transparent-window","Modrinth":"transparent-window"},{"Id":28545,"Name":"暮色森林:终之乐章 (Twilight Forest Finale)","CurseForge":"twilight-forest-finale","Modrinth":""},{"Id":28548,"Name":"初始小屋 (Building Saver)","CurseForge":"building-saver","Modrinth":"building-saver"},{"Id":28549,"Name":"EFab 非官方版 (EFab - Unofficial)","CurseForge":"efab-unofficial","Modrinth":""},{"Id":28551,"Name":"","CurseForge":"true-power-optimization","Modrinth":"true-power-optimization"},{"Id":28558,"Name":"每日悬赏 (Daily Bounty)","CurseForge":"daily-bounty","Modrinth":""},{"Id":28560,"Name":"","CurseForge":"ic2-reborn","Modrinth":""},{"Id":28561,"Name":"小诺清理 (XiaoNuoClean)","CurseForge":"xiaonuoclean","Modrinth":""},{"Id":28562,"Name":"神秘的野生动物 (Mystical Wildlife)","CurseForge":"mystical-wildlife","Modrinth":"mystical-wildlife"},{"Id":28564,"Name":"","CurseForge":"sign-preview","Modrinth":"sign-preview"},{"Id":28565,"Name":"沉浸盆栽 (Immersive Bonsai)","CurseForge":"immersive-bonsai","Modrinth":"immersive-bonsai"},{"Id":28566,"Name":"","CurseForge":"contents-director","Modrinth":""},{"Id":28567,"Name":"铁魔法修改器 (miaoModifiesIronspellsArtifacts)","CurseForge":"miaomodifiesironspellsartifacts","Modrinth":""},{"Id":28568,"Name":"","CurseForge":"","Modrinth":"autopack-director"},{"Id":28569,"Name":"机械动力:轮椅轮椅 (Create: Wheels Upon Chairs)","CurseForge":"create-wheels-upon-chairs","Modrinth":""},{"Id":28571,"Name":"头盔灯 (Light Helmet)","CurseForge":"","Modrinth":"light-helmet"},{"Id":28572,"Name":"鞘翅 HUD 重制版 (Elytra HUD Rework)","CurseForge":"","Modrinth":"elytra-hud-rework"},{"Id":28573,"Name":"鞘翅 HUD 3 (ElytraHud3)","CurseForge":"","Modrinth":"elytrahud3"},{"Id":28574,"Name":"可视化食物编辑器 (Visual Food Edit)","CurseForge":"visual-food-edit","Modrinth":""},{"Id":28575,"Name":"AI指令 (AI Command)","CurseForge":"","Modrinth":"ai-command"},{"Id":28576,"Name":"","CurseForge":"clear-sound-engine","Modrinth":""},{"Id":28577,"Name":"锁定瞄准 (LockAim)","CurseForge":"lockaim","Modrinth":""},{"Id":28578,"Name":"","CurseForge":"applied-dyenamics","Modrinth":""},{"Id":28579,"Name":"千坐爱印 (Colorcush)","CurseForge":"colorcush","Modrinth":""},{"Id":28580,"Name":"坐垫优化 (Optimized Cushions)","CurseForge":"optimized-cushions","Modrinth":"optimized-cushions"},{"Id":28581,"Name":"技能核心 (SkillCore)","CurseForge":"skillcore","Modrinth":""},{"Id":28584,"Name":"","CurseForge":"better-jujutsu-craft","Modrinth":"better-jujutsu-craft"},{"Id":28585,"Name":"","CurseForge":"creeper-bats","Modrinth":""},{"Id":28587,"Name":"","CurseForge":"macaws-natures-spirit","Modrinth":"macaws-natures-spirit"},{"Id":28588,"Name":"","CurseForge":"macaws-mystics-biomes","Modrinth":"macaws-mystics-biomes"},{"Id":28589,"Name":"你们两个给我打一架 (You Two Fight For Me)","CurseForge":"you-two-fight-for-me","Modrinth":"you-two-fight-for-me"},{"Id":28590,"Name":"建筑蓝图 (Building Blueprint)","CurseForge":"building-blueprint","Modrinth":"building-blueprint"},{"Id":28591,"Name":"","CurseForge":"","Modrinth":"lostcitiesfilter"},{"Id":28593,"Name":"","CurseForge":"tacz-port","Modrinth":""},{"Id":28595,"Name":"魔艺紫金装备 (Ars Violetgold Equipment)","CurseForge":"ars-violetgold-equipment","Modrinth":""},{"Id":28596,"Name":"背景音乐播放器 (Background Music Player)","CurseForge":"bmp-background-music-player","Modrinth":""},{"Id":28597,"Name":"","CurseForge":"","Modrinth":"grassier-grass"},{"Id":28599,"Name":"你的名字? (Whats Ur Name?)","CurseForge":"","Modrinth":"whats-ur-name"},{"Id":28600,"Name":"","CurseForge":"anime-characters","Modrinth":""},{"Id":28601,"Name":"眨眼 (Blink)","CurseForge":"wink","Modrinth":""},{"Id":28602,"Name":"","CurseForge":"","Modrinth":"nitroito-tooltips"},{"Id":28603,"Name":"冠军 优化 (Champions Optimization)","CurseForge":"champions-optimization","Modrinth":""},{"Id":28604,"Name":"","CurseForge":"sakura-library","Modrinth":""},{"Id":28605,"Name":"现代 MITE (Modern MITE)","CurseForge":"","Modrinth":"modernmite"},{"Id":28606,"Name":"失落的城市:多线程 (LC²H / Lost Cities: Multithreaded)","CurseForge":"lc2h","Modrinth":"lc2h"},{"Id":28608,"Name":"挖掘疲劳重置 (MiningFatigueReproduction)","CurseForge":"","Modrinth":"miningfatiguereproductio"},{"Id":28610,"Name":"搜完就跑 (LootRun)","CurseForge":"lootrun","Modrinth":"lootrun"},{"Id":28612,"Name":"","CurseForge":"reglass","Modrinth":"reglass"},{"Id":28615,"Name":"","CurseForge":"ecstatic","Modrinth":""},{"Id":28616,"Name":"","CurseForge":"poison-dragons-ice-fire-addon","Modrinth":""},{"Id":28617,"Name":"黑金同盟 (Black Gold Alliance)","CurseForge":"black-gold-alliance","Modrinth":"black-gold-alliance"},{"Id":28618,"Name":"","CurseForge":"watervision","Modrinth":"watervision"},{"Id":28619,"Name":"","CurseForge":"mrcrayfish-device-mod-continued","Modrinth":""},{"Id":28620,"Name":"暮色森林: Re26 (The Twilight Forest: Re26)","CurseForge":"twilightforest-re26","Modrinth":"twilightforest-re26"},{"Id":28621,"Name":"","CurseForge":"groxs-villagers","Modrinth":"groxs-villagers"},{"Id":28622,"Name":"","CurseForge":"nimbus-scabbards","Modrinth":""},{"Id":28624,"Name":"","CurseForge":"reload-only-data","Modrinth":""},{"Id":28626,"Name":"","CurseForge":"","Modrinth":"create-vertical-chain-conveyors"},{"Id":28627,"Name":"并行理包 (God Damn Repackager)","CurseForge":"god-damn-repackager","Modrinth":"god-damn-repackager"},{"Id":28628,"Name":"","CurseForge":"","Modrinth":"create-blueprinted"},{"Id":28630,"Name":"","CurseForge":"create-deep-seas","Modrinth":"create-deep-seas"},{"Id":28632,"Name":"数据能源学 (Data Energistics)","CurseForge":"data-energistics","Modrinth":""},{"Id":28633,"Name":"","CurseForge":"","Modrinth":"cnpc-gecko-addon-ce"},{"Id":28634,"Name":"","CurseForge":"worldnamepacket","Modrinth":""},{"Id":28636,"Name":"种瓜得瓜 (Melon Melon)","CurseForge":"melon-melon","Modrinth":""},{"Id":28637,"Name":"真·铁路 (True-Rails)","CurseForge":"true-rails","Modrinth":"true-rails"},{"Id":28638,"Name":"","CurseForge":"starcatchers-delight","Modrinth":"starcatchers-delight"},{"Id":28639,"Name":"","CurseForge":"extra-delight-unofficial-port","Modrinth":""},{"Id":28640,"Name":"","CurseForge":"diversity-delight","Modrinth":""},{"Id":28641,"Name":"","CurseForge":"farmers-respite-unofficial-port","Modrinth":"farmers-respite-unofficial-port"},{"Id":28642,"Name":"","CurseForge":"windowx","Modrinth":"windowx"},{"Id":28643,"Name":"X光与超级工具:重生 (Re:X-ray And Super Tools)","CurseForge":"rexrayandsupertools","Modrinth":"rexrayandsupertools"},{"Id":28645,"Name":"那个东西 (That Thing)","CurseForge":"that-thing","Modrinth":""},{"Id":28646,"Name":"巨人艾利克斯:沉默观察者 (Giant Alex: The Silent Watcher)","CurseForge":"giant-alex-the-silent-watcher","Modrinth":""},{"Id":28647,"Name":"幻化:无限充能 (Transmog Inf fuel)","CurseForge":"transmog-inf-fuel","Modrinth":""},{"Id":28648,"Name":"","CurseForge":"nuclear-tech-mod-waldemar-edition","Modrinth":""},{"Id":28649,"Name":"","CurseForge":"","Modrinth":"amazing-digital-circus-mod"},{"Id":28650,"Name":"","CurseForge":"beyondenchant","Modrinth":""},{"Id":28652,"Name":"次元:侵蚀结晶 (Dimension Corrosion Crystal)","CurseForge":"dimension-corrosion-crystal","Modrinth":"dimension_corrosion_crystal"},{"Id":28653,"Name":"创世神GUI (WorldEdit GUI)","CurseForge":"","Modrinth":"wegui"},{"Id":28656,"Name":"话痨的世界 (Blabby World)","CurseForge":"blabby-world","Modrinth":"blabby-world"},{"Id":28657,"Name":"","CurseForge":"mob-battle-plus","Modrinth":""},{"Id":28658,"Name":"灵气复苏 (Spiritual Revival)","CurseForge":"spiritual-revival-mobss-irons-spells","Modrinth":""},{"Id":28659,"Name":"伊尔卡 (Yrka)","CurseForge":"yrka","Modrinth":""},{"Id":28660,"Name":"","CurseForge":"full-metal-combat","Modrinth":""},{"Id":28661,"Name":"危言耸听 (Alarmist)","CurseForge":"alarmist","Modrinth":""},{"Id":28662,"Name":"宇宙意志 (Cosmic Will)","CurseForge":"cosmic-will","Modrinth":""},{"Id":28663,"Name":"","CurseForge":"","Modrinth":"shades"},{"Id":28665,"Name":"","CurseForge":"oh-my-world","Modrinth":""},{"Id":28666,"Name":"物品栏互动 (Inventory Interactions)","CurseForge":"inventory-interactions","Modrinth":"inventory-interactions"},{"Id":28667,"Name":"","CurseForge":"item-shadows","Modrinth":"item-shadows"},{"Id":28669,"Name":"天灾 (Scourge)","CurseForge":"scourge","Modrinth":"_scourge"},{"Id":28670,"Name":"","CurseForge":"bigfoot-into-the-woods","Modrinth":"bigfoot-into-the-woods"},{"Id":28671,"Name":"自毁 (Self Destruct)","CurseForge":"","Modrinth":"self-destruct"},{"Id":28674,"Name":"古代化提升 (Archaic Raisy)","CurseForge":"archaic-raisy","Modrinth":""},{"Id":28675,"Name":"物品名称显示 (Item Nameplate)","CurseForge":"item-nameplate","Modrinth":""},{"Id":28677,"Name":"","CurseForge":"ascendant-arcana","Modrinth":""},{"Id":28678,"Name":"","CurseForge":"oathbound-relics","Modrinth":"oathbound-relics"},{"Id":28679,"Name":"","CurseForge":"","Modrinth":"geo-expansion"},{"Id":28680,"Name":"顿悟 (Epiphany)","CurseForge":"epiphany-mod","Modrinth":"epiphany-mod"},{"Id":28681,"Name":"筑界基石 (PhantomRain's Worldgen Lib)","CurseForge":"phantomrains-worldgen-lib","Modrinth":""},{"Id":28683,"Name":"僵尸游戏:重生 (Zombie Game : Reborn)","CurseForge":"zombiegamereborn","Modrinth":"zombiegamereborn"},{"Id":28685,"Name":"偏执狂 (Paranoid)","CurseForge":"paranoid","Modrinth":""},{"Id":28686,"Name":"惊魂录像带 (Horror Video Tape)","CurseForge":"","Modrinth":"horror-video-tape"},{"Id":28688,"Name":"","CurseForge":"reliable-backpacks","Modrinth":"reliable-backpacks"},{"Id":28689,"Name":"","CurseForge":"giant-tnt-mod","Modrinth":""},{"Id":28690,"Name":"抽卡瘾 (GachaAddiction)","CurseForge":"gachaaddiction","Modrinth":"gachaaddiction"},{"Id":28691,"Name":"牛奶幼诱 (Milk Lure / Baby Animal Follow Milk)","CurseForge":"babyanimal-follow-milk","Modrinth":""},{"Id":28692,"Name":"村民作息 (All Villager Work)","CurseForge":"mc-mods-villager-work","Modrinth":""},{"Id":28694,"Name":"","CurseForge":"true-power-dmc5-sfx","Modrinth":"true-power-dmc5-sfx"},{"Id":28695,"Name":"航空学太空战 (Space War - Aeronautics / Aeronautics Space War)","CurseForge":"","Modrinth":"space-war-aeronautics"},{"Id":28696,"Name":"FTB任务书增强 (Quest Enhance)","CurseForge":"quest-enhance","Modrinth":""},{"Id":28697,"Name":"森罗酒馆:缤纷葡园 (Kaleidoscope Bountiful Vineyard)","CurseForge":"kaleidoscope-bountiful-vineyard","Modrinth":""},{"Id":28698,"Name":"不破烂的废弃下界传送门 (Intact Ruined Nether Portal)","CurseForge":"intact-ruined-nether-portal","Modrinth":"intact-ruined-nether-portal"},{"Id":28699,"Name":"","CurseForge":"weapons-of-legendary-monsters-epicfight","Modrinth":""},{"Id":28700,"Name":"","CurseForge":"packs-editor","Modrinth":"packs-editor"},{"Id":28705,"Name":"难度存档化 (Level Difficulty)","CurseForge":"level-difficulty","Modrinth":""},{"Id":28707,"Name":"","CurseForge":"better-combat-toggler","Modrinth":""},{"Id":28709,"Name":"","CurseForge":"","Modrinth":"sbl"},{"Id":28710,"Name":"","CurseForge":"jawas-lightsaber","Modrinth":"jawas-lightsaber"},{"Id":28711,"Name":"拔刀剑:双刃重铸 (SlashBlade: Double Edged Reforged)","CurseForge":"slashblade-double-edged-reforged","Modrinth":"slashbladedouble-edged-reforged"},{"Id":28713,"Name":"","CurseForge":"odventure-core","Modrinth":"odventure-core"},{"Id":28714,"Name":"机械动力:药物和草药自动化 (Create: Meds and Herbs: Automated)","CurseForge":"meds-and-herbs-automated","Modrinth":"meds-and-herbs-automated"},{"Id":28715,"Name":"","CurseForge":"","Modrinth":"sable-ragdoll-corpse"},{"Id":28716,"Name":"灰烬 (Ashes)","CurseForge":"","Modrinth":"coylocker123-ashes-mod"},{"Id":28717,"Name":"","CurseForge":"dnt-ocean-monument-overhaul","Modrinth":""},{"Id":28718,"Name":"通用机械CEu:AE升级 (MekanismCeu AE Upgrade)","CurseForge":"mekanismceu-ae-upgrade","Modrinth":""},{"Id":28719,"Name":"","CurseForge":"punctuation","Modrinth":""},{"Id":28720,"Name":"","CurseForge":"","Modrinth":"autonotebot"},{"Id":28721,"Name":"","CurseForge":"touhou-origins-unofficial-backport","Modrinth":"touhou-origins-forge-port-(unofficial)"},{"Id":28722,"Name":"","CurseForge":"cushion-backport","Modrinth":"cushions-backport"},{"Id":28723,"Name":"","CurseForge":"legendarymonsters-affiliated","Modrinth":""},{"Id":28725,"Name":"我的世界开箱模拟器 (MC Box)","CurseForge":"mc-box","Modrinth":"mc-box"},{"Id":28726,"Name":"","CurseForge":"neoforgeskyboxes","Modrinth":""},{"Id":28728,"Name":"","CurseForge":"alexs-mobs-re-legacy","Modrinth":""},{"Id":28729,"Name":"","CurseForge":"woc-render-arts-extra-for-weapons-of-cataclysm","Modrinth":""},{"Id":28730,"Name":"","CurseForge":"fpvdrones","Modrinth":""},{"Id":28731,"Name":"","CurseForge":"","Modrinth":"lzxnoneterraria"},{"Id":28732,"Name":"链式挖掘 (ChainMining)","CurseForge":"chainmining","Modrinth":""},{"Id":28733,"Name":"","CurseForge":"creepyhorse-jar","Modrinth":""},{"Id":28734,"Name":"","CurseForge":"brokenbots-lost-medias-pentaros","Modrinth":""},{"Id":28735,"Name":"可视化创造标签页编辑 (Visual Creative Tab Editor)","CurseForge":"visual-creative-tab-editor","Modrinth":"visual-creative-tab-editor"},{"Id":28736,"Name":"科能工程4 (Technical Engineering 4)","CurseForge":"technical-engineering-4","Modrinth":"technical-engineering-4"},{"Id":28737,"Name":"空投 (AirDrop)","CurseForge":"","Modrinth":"air-drop"},{"Id":28738,"Name":"","CurseForge":"","Modrinth":"ziy-swthb"},{"Id":28739,"Name":"","CurseForge":"make-a-lot-money","Modrinth":"makemoney"},{"Id":28740,"Name":"","CurseForge":"toolcompat","Modrinth":"toolcompat"},{"Id":28741,"Name":"禁止破坏方块 (NO Mining)","CurseForge":"","Modrinth":"no-mining"},{"Id":28742,"Name":"救救我的精妙箱子 (Sophisticated Chest Optimized)","CurseForge":"sophisticated-chest-optimized","Modrinth":""},{"Id":28743,"Name":"","CurseForge":"multicore-helper","Modrinth":""},{"Id":28744,"Name":"","CurseForge":"f-sweep","Modrinth":"f-sweep"},{"Id":28745,"Name":"基地核心 (BaseCore)","CurseForge":"","Modrinth":"base-core"},{"Id":28746,"Name":"社交型虚拟玩家 (Social Player Mobs)","CurseForge":"interactive-player-mobs","Modrinth":"interactive-player-mobs"},{"Id":28747,"Name":"宠物兔子 (bbyj's Pet Bunny)","CurseForge":"bbyjs-pet-bunny","Modrinth":"bbyjs-pet-bunny"},{"Id":28749,"Name":"真菌感染:灾厄生物乐章 (Fungal Infection: Calamitous Tunes)","CurseForge":"fungal-infection-calamitous-tunes","Modrinth":""},{"Id":28750,"Name":"","CurseForge":"aromara-thaumic-perfumery","Modrinth":""},{"Id":28753,"Name":"超级重锤大坐第二季:谁问你了 (Super Mace Slam Enchantment 2: Electric Boogaloo)","CurseForge":"mace-enchantment2-electric-boogaloo","Modrinth":""},{"Id":28755,"Name":"AE2:畅起速式 (Pattern Encoding Terminal Quick Math)","CurseForge":"pattern-encoding-terminal-quick-math","Modrinth":""},{"Id":28757,"Name":"","CurseForge":"jfmuy","Modrinth":""},{"Id":28758,"Name":"铁砧工艺:简易加工","CurseForge":"","Modrinth":"anvilcraft-simpleprocessing"},{"Id":28759,"Name":"末影接口:魔源导管 (Ender IO: Source Conduits)","CurseForge":"ender-io-source-conduits","Modrinth":""},{"Id":28760,"Name":"","CurseForge":"loot-all","Modrinth":""},{"Id":28761,"Name":"","CurseForge":"fakeneko-config","Modrinth":""},{"Id":28762,"Name":"","CurseForge":"outbreak-epca-performance-compatibility","Modrinth":""},{"Id":28763,"Name":"","CurseForge":"mca-descendants","Modrinth":"mca-descendants"},{"Id":28765,"Name":"终末合约 (Ender Contract)","CurseForge":"ender-contract","Modrinth":""},{"Id":28766,"Name":"密室-非官方版 (SecretRooms-Unofficial)","CurseForge":"secret-rooms-unofficial","Modrinth":"secret-rooms-unofficial"},{"Id":28767,"Name":"","CurseForge":"","Modrinth":"chamber-clarity-reloaded"},{"Id":28768,"Name":"有效攻击 (ValidAttack)","CurseForge":"validattack","Modrinth":""},{"Id":28769,"Name":"","CurseForge":"acedium-sodiumized","Modrinth":"acedium-sodiumized"},{"Id":28770,"Name":"","CurseForge":"milkshade-dynamics","Modrinth":"milkshade-dynamics"},{"Id":28777,"Name":"万物坠落 (All Falling Damage)","CurseForge":"","Modrinth":"eeverything_hurts"},{"Id":28779,"Name":"更多云层 (More Cloud Layers)","CurseForge":"more-cloud-layers","Modrinth":"more-cloud-layers"},{"Id":28780,"Name":"","CurseForge":"sizeable-foliage","Modrinth":"sizeable-foliage"},{"Id":28785,"Name":"","CurseForge":"provisioners-delight","Modrinth":""},{"Id":28786,"Name":"","CurseForge":"grandteleport-neoforge","Modrinth":"grandteleport-neoforge"},{"Id":28788,"Name":"拼好床 (Omnibed)","CurseForge":"omnibed","Modrinth":"omnibed"},{"Id":28790,"Name":"","CurseForge":"med-system","Modrinth":"med-system"},{"Id":28793,"Name":"","CurseForge":"","Modrinth":"highlightitem"},{"Id":28794,"Name":"","CurseForge":"falsity-mod","Modrinth":""},{"Id":28795,"Name":"","CurseForge":"","Modrinth":"playerbatch"},{"Id":28796,"Name":"","CurseForge":"mca-r-polygamy","Modrinth":""},{"Id":28798,"Name":"","CurseForge":"chameleon-metamorph-plus","Modrinth":""},{"Id":28799,"Name":"","CurseForge":"quality-o-life","Modrinth":""},{"Id":28800,"Name":"","CurseForge":"apokinetics","Modrinth":"apokinetics"},{"Id":28802,"Name":"法术连击系统 (Spell Combo System - Iron's Spells Addon)","CurseForge":"scs-spell-combo-system-irons-spells-addon","Modrinth":""},{"Id":28803,"Name":"旧梦词条 (Dream Champions)","CurseForge":"dream-champions","Modrinth":""},{"Id":28806,"Name":"","CurseForge":"","Modrinth":"disc-jockey-plus"},{"Id":28807,"Name":"ME无线封包供应器 (PackagedAuto Wireless)","CurseForge":"packagedauto-wireless","Modrinth":""},{"Id":28808,"Name":"","CurseForge":"","Modrinth":"autowork"},{"Id":28809,"Name":"机械动力:冷却鼓风机 (Create Cooling Fan)","CurseForge":"create-cooling-fan","Modrinth":""},{"Id":28810,"Name":"","CurseForge":"","Modrinth":"create-avionics"},{"Id":28811,"Name":"","CurseForge":"create-lights-controls","Modrinth":"createlights-controls"},{"Id":28812,"Name":"实体模型特性兼容:核心 (EMF Compat: Core)","CurseForge":"emf-compat-core","Modrinth":"emf-compat-core"},{"Id":28813,"Name":"","CurseForge":"cynosure","Modrinth":"cynosure"},{"Id":28814,"Name":"jeb_坐垫 (jeb_ Cushions)","CurseForge":"jeb-cushions","Modrinth":"jeb-cushions"},{"Id":28815,"Name":"多态合成+ (Polymorph+)","CurseForge":"polymorph-plus","Modrinth":"polymorph_plus"},{"Id":28816,"Name":"","CurseForge":"","Modrinth":"no-wight-music"},{"Id":28818,"Name":"","CurseForge":"enhanced-attack-indicator-reborn","Modrinth":"enhanced-attack-indicator-reborn"},{"Id":28820,"Name":"","CurseForge":"one-mana-bar-to-rule-them-all","Modrinth":""},{"Id":28821,"Name":"真实伤害附魔 (TrueDamage)","CurseForge":"","Modrinth":"truedamage"},{"Id":28822,"Name":"","CurseForge":"mf3f","Modrinth":"mf3f"},{"Id":28823,"Name":"","CurseForge":"apotheotic-hostility","Modrinth":""},{"Id":28824,"Name":"赛博农夫 (Cyber-Cultivator-Bio-Synthesis)","CurseForge":"cyber-cultivator-bio-synthesis","Modrinth":"cyber-cultivator-bio-synthesis"},{"Id":28825,"Name":"真实的值 (RealityValue)","CurseForge":"","Modrinth":"reality-value"},{"Id":28826,"Name":"","CurseForge":"cauldron-cubes","Modrinth":"cauldron-cubes"},{"Id":28827,"Name":"机械动力:空包裹飞越 (Create: Empty Packages Fly)","CurseForge":"","Modrinth":"create-empty-packages-fly"},{"Id":28828,"Name":"冒险者魔艺 (MnA Integrated Adventures)","CurseForge":"mna-integrated-adventures","Modrinth":""},{"Id":28829,"Name":"","CurseForge":"","Modrinth":"elytra-slot!"},{"Id":28831,"Name":"Oritech扩展 (Extended Oritech)","CurseForge":"extended-oritech","Modrinth":"extended-oritech"},{"Id":28834,"Name":"","CurseForge":"create-crafts-additions-plus","Modrinth":""},{"Id":28835,"Name":"生活调味料:美食征程 (Spice of Life: Delicacy Journey)","CurseForge":"spice-of-life-delicacy-journey","Modrinth":""},{"Id":28836,"Name":"幽幽局域网联机 (UWULAN)","CurseForge":"uwulan","Modrinth":"uwulan"},{"Id":28838,"Name":"冰火传说内存修复 (Ice and Fire Memory Fix)","CurseForge":"ice-and-fire-memory-fix","Modrinth":""},{"Id":28839,"Name":"","CurseForge":"automuteonafk","Modrinth":"automuteonafk"},{"Id":28840,"Name":"","CurseForge":"builders-shulkers","Modrinth":"builders-shulkers"},{"Id":28843,"Name":"铁魔法UI重制 (ISS UI Overhaul)","CurseForge":"iss-ui-overhaul","Modrinth":""},{"Id":28844,"Name":"奥法附魔 (Iron's Spell's Enchantments - Iron's Spells Addon)","CurseForge":"irons-spells-enchantments-irons-spells-addon","Modrinth":""},{"Id":28846,"Name":"","CurseForge":"magispellers-mob-battle-utility","Modrinth":""},{"Id":28847,"Name":"更多生物现代版 (Mo' Creatures Modern)","CurseForge":"mo-creatures-modern","Modrinth":""},{"Id":28848,"Name":"","CurseForge":"moai-statues","Modrinth":""},{"Id":28850,"Name":"","CurseForge":"intense-horror","Modrinth":"intensehorror"},{"Id":28851,"Name":"","CurseForge":"dungeons-additions","Modrinth":""},{"Id":28853,"Name":"GT3赛车包","CurseForge":"gt3-racing-pack","Modrinth":""},{"Id":28854,"Name":"","CurseForge":"f3-f4-gamemode-switcher-for-older-versions","Modrinth":""},{"Id":28856,"Name":"","CurseForge":"","Modrinth":"fast-masa-configui"},{"Id":28857,"Name":"排行榜计分板 (RankBoard)","CurseForge":"","Modrinth":"rankboard"},{"Id":28859,"Name":"","CurseForge":"no-more-63-ae2","Modrinth":""},{"Id":28860,"Name":"","CurseForge":"cobblemon-trainers-backpack","Modrinth":"cobblemon-trainers-backpack"},{"Id":28861,"Name":"","CurseForge":"lightload","Modrinth":"lightload"},{"Id":28863,"Name":"","CurseForge":"tfc-music-maker","Modrinth":""},{"Id":28864,"Name":"","CurseForge":"jade-sable-compat","Modrinth":"jade-sable-compat"},{"Id":28865,"Name":"","CurseForge":"","Modrinth":"tierify"},{"Id":28866,"Name":"可视化VND编辑器 (Visual VND Edit)","CurseForge":"visual-mod-edit-vndialog","Modrinth":"visual-mod-edit-vndialog"},{"Id":28868,"Name":"","CurseForge":"stupid-block-animations","Modrinth":"stupid-block-animations"},{"Id":28869,"Name":"","CurseForge":"legend-of-the-lucky-blocks","Modrinth":"legend-of-the-lucky-blocks"},{"Id":28870,"Name":"","CurseForge":"chronos-backups","Modrinth":"chronos-backups"},{"Id":28871,"Name":"","CurseForge":"spacesuit-required-addon-for-galaxy-space","Modrinth":""},{"Id":28872,"Name":"","CurseForge":"gcs-gchouston-command-remover","Modrinth":""},{"Id":28873,"Name":"","CurseForge":"galacticraft-respawn-fix","Modrinth":""},{"Id":28874,"Name":"更好的画","CurseForge":"better-paint","Modrinth":""},{"Id":28875,"Name":"工匠傀儡 (Tinkers' Golem)","CurseForge":"tinkers-golem","Modrinth":"tinkers-golem"},{"Id":28876,"Name":"精致储存跨维度 (Refined Storage Cross Latitude)","CurseForge":"","Modrinth":"refined-storage-cross-latitude"},{"Id":28877,"Name":"茂盛草地 (Lush Grass)","CurseForge":"lush-grass","Modrinth":""},{"Id":28878,"Name":"","CurseForge":"","Modrinth":"(ssrdfv)-separate-sable-render-distance-for-voxy"},{"Id":28879,"Name":"Sable:装配修复 (Sable Assembly Fix)","CurseForge":"sable-assembly-fix","Modrinth":""},{"Id":28880,"Name":"机械动力:无人机 (Create: Droneworks Simulated)","CurseForge":"","Modrinth":"create-droneworks-simulated"},{"Id":28881,"Name":"","CurseForge":"3YV3R=3Xe3X;3X43X/3S]3B'3FY3Ab39i2,[3V^3WE3SG3F43V:3Hp3VH3W}3Tb0012ze35e3V)3Wl3W=3EF3TF3K;31T3YS3KA3O'3Np2!","Modrinth":"3Nh3W32z$3MD3G@3Ve3T637{3Qg3Xo2dM3GT2:z3V?2y434(3Od3X]36w38g3Tw3TA39}3XH2o]2uD2rl3Fc2w$3Lf2Nx2Kd2zk26?2M+3G{3F*2S)2Ep3QD3Q[3S53E^3F/2?,2ge3Jt3OA3OU3O:2cU3RL3ON3S?2nC2Kw2k<2su3YA1b*3O$2iz3YR37839e3J=0043XU1%+3OK3LJ3U$2+Y3P*2&+3XW36{3Xy3W;2=;35)3X:2J{3Wa2z3YK2]f3P]3XY3523J'2dI3WJ3BH2]K2zS2Ya3NX3W^2=i3N^2)D2SW3I[3Wz3W@3U03Qj3Ix3T(2]P3N42EP2;33FD2H*2w23Kr2]02m{0063CU3WZ3R:3YG3Uk2}:3Q}3YU2,03Ok32O3Nt35t2OE3Fd3U[33b3QN3UT3Vv3YO3Fp30L3U@3O93T@3Jf3N+37%2+W2%s2Xn2^x2w]2&&3G)3183Tu3K+3R>3X73Xj3T<2Yc3H)2tZ2&^2vr2uy3Vt26%2xR3V#3Kq3V'3IP3Uz2'F3EI3Uv3S(3G+3C{38*35I3YB3UM3XR31u3O#3Vx2)&3P)2,b3RU3MT3J62Jf38u3QG2>P3FO3VE2]&3I836o3S23K,3Sf2:b32k3Sx3EE2&Z3G$3Y034m3T[3W63YD3T/3Ht2WB3L;3V93Ub3Rh0073VY3Eq3U*3Qd3Kj3D70082!n3Ud2;R3F{3Uq32z3JK3Nc3Eb35w3MA34t3Y82n53X}3HP2{z2,93Y63953X)3T+3LT3Tc3Vj3YL3U#2'f34?3Q?3Hh30*3Hv3T,3I53G33XP3VU3SA3X,3Xs3UL3Vo38c3Tg3E23Lp3103XF3P?3QF3J$38^2:%2?:3Aq3UF3W{3K}3XS3Wg3N;2tR00A2hf3TJ3Xp37z3V>3EQ3Uc3Ln00B2(53Ga3BM3003JL2,=3Ot3WG3Dn2F{3W*2/P3Xb2*K3XL3X83X*3J331q3I+3Dp3S+3642*G3Ax3P}3H/2}q32U37>3Vs3D/3Lt2??00C31]3U,3VX2&I3MB2,53Ja30k3Fy3X>2ug3GW3K53MM00D3Ow31O2?L39G3Y72]/00E2Vc2#d3KR2Q83T33892#R33,1=k3Nj3C]3B&2)72p!3P@3I=3Do2[%2?$2>=3P12^l3VM3VN2&?31F2'k3M<2:W38r34632i3Ks3Xm31}3A63F@2Sb3JS3BQ3W<3XT37T3LU3OM3Tz3E;2nv3Db2Rz3M(2jT3G43NT30c3933Pn3OB3N*3OS3KI2y%3W&3HE2$j3AB2X2t{2f!3BK3AX3EZ2}E2=&2?R2I83OP2e+2((3SZ3Sb2kA3CA3SO2:X37(2dS3GQ3Ge3Ce2gO3T;2&>23E)3SV2yu3WM1[Z2?x2^R36d30g3X^2jr3RM2wX3M$3Vu3Mo39]3VV3Ux2$]3Su3013Oj2uw3Gm2*,3H!3T$2(Z3FB3C<2;e3N%2<=3Jr1&s2?31@$2UZ3Au22y1,@2Nl1[H2o53F93B)3PN3C?3Q$3Rb3M}3S!1+a3V<3NF3QT2)q35(2hM22r3MK3Pm2qx3G;2cX3R+3Te2w'2Ye2>,35E2&s3Xn2hL3N32zx2=J33[3Pb3NM3DC3C:2}K2)d3T^3J@2!43A026D2Lc2L^3Xw3Xx36y3Sn3EJ37L33{32(2:r3Tk3WL3RD3W:3Ji2IL2NU3K83F)2,S2#J2,42VO3Um00F3Iz2>j3FK3R42{+3H'2(h1yh1mU3Xv2+@2}}2K82il2}D34i2>63E32r$3Ka3Q/3Xu3I;3U93W%2^e2lj35U3A33I)2CA3Jo2h!25X3L$3DX293V&2uo3DP3C%2%E3GK3W$2!s37w2]b2&732R3L[38J3MZ3TE35{2n%2@<3G?3Wb2(?2qj3P!3O43XZ2#73Ug3Nq3C12Mr2[o3BE2F<2i<2k@2Pw30d2Cw2*h3632v>2PS2kv2vk30D3Hd3R13J>3G/2;t2yz2}72jH2M<2FU2+$3CL2r;2{83RW2RQ27>2t&34T2pD3Dc3N=3Ul2rf3S'3Q^3SM3K[32a2t=2Sn2xa39M2,!1*V2Q:2Y<2nj2U/3993M=3VR2cE3MI3Tn3JA3YW3K@2]839L2>*37v3Gv34R2l63SY3OI3D#35H3LH3U=3Mp3572;}2p$3U}38x3X%39H3IH3Wi3F:3Rf3EW2OQ2:t2mp3Qy3W]2/M3K?38>38)3Rd3O(2!M3I&32m3E*3Uh2UW2pA3WO32G3VA2:k3Hs2;<2,83YF3AI3Lz2(!2Xv2ak30y3Ha2#V3Jp2m<2%/2Ab3SW3Ej3Xq3IG3YQ3S131k3ED38Q3H934h2nK36S3T12r%3P>2'Q2iE3B939*37N2@F3Tr3483ET39B3WC3Nv3QC2'd3BX2>+2,:3Pr3LM36L34]2=c30v2'?2#k3Es2)k2q*2rG3E@30Q2S63S^3L)2E+3AV1+o1!m3M[3H:2)a2}'2k(3Ta3Q#31)3Iv2y&2Yd2,+33n2je2]s2}C2:*2Gi00H31{1]}2{h3QM28U2,#3J13U]2G[37[3K33Qe2>}2xh2(v3Ls3C43GO3VP2za31L3Ut2yM2&!34c2mM2{C3W03DE3M#3Uj3OO3Id2Qe3Vl2iv33]3IZ3Wc36'2ic3AA3R52ye35C2CX2h/1w?3He2}#2![3KN2Tk3W52?v32n3P(3Oh3RA2@C2:{1%n3Nr2i&2[!3G#35k3PW32X2Y73E[1?:3LP3W'35M2[P2B{2*q2=w3IQ2mu2&Y2mo3HU3W225s39^2^?2#z2:l3U52tp3Wu3LL2;]3SX2>73E(3J}3WQ3Df2*L2?c3Ba3Wr3D>2g?2%>3Ci2*n3RJ39O2]@3A42+t2}P3FE2mF2e03LW2kn3923FT35>33W3Az3UY37q2;%3353IV3U/3F52{u3Vk26R38S3I*3M62?+2rM31(2&T3F,2;*39r33c3HQ2>:2'33LN2$t30P3Hz3XN3Lk2ne2h43PF30[2;n2hb2*U2/k3BF3Oa3R}2zQ2=S2or2Wc36@3E&2)v37i2>{3Af3D;3R03WU3W(3HX3Mz3O12p#2(>1>/3B%3TG2'/2=D2}639n39;2&i3Un3FX3SQ2H]2<+3KJ2xM2fK2pm39!3Op2T2[T3NG2q12*g2gP2GI2AO2;S2:@2%M2p*3U{3Ld3S93HY3KT26@34p3GY2!L3EK3Dj3LG2%J3Qs3EB35,2Li3WK2$52)>33^3VC3LY2j<2(w3Bi3O{3Tf2zz2X228z3XX3S$2Y92(j2&z2o/2:f3PR3C72Fg2j#2sU2C22!Q2nF1eL3U;3AL3Lu2h62>d3Jd2}@2H$2!(3Li2Z52e#3Hb3S&31E3LB3K23S;3Jb3LS2sK1({3PV2[52X;2er3KH2}U37u3Md3QV35O3XJ2[#2H)2,m37m1:Q3882Rq3DO2,23Q+2qo3TT3Vh3X(2;73X'3G533#3Kd3DM2@T2z02az2$(1}%2622u33Fb1ut1yO1;[2OT2=Z2CY2sD3Dm2*{2?W35K3Ou3AR38M2,C32C34e2:732Z3Ui3Uf2yc2$T2}%34X3Tl3Ny3Qq2Sc2w(2Cv2Tu38'2bj2#X2Ku37c2^G2Zt3R^3TS2Z(2)U3Xi33V3O@3AO2:a3A:3X{2%%2:E2=t3Cz3GS3SC3Q<3Rc2h&2eH3713TZ3We31n3M>3323IT32b20H3XB38a2!$3I$29738<2Mc2!93Wv2'<2el2p;2?s2&:3MP3N#2c92lK2VN2>O2Xl3Qc2,/39j36,2:I2]Y2J+3Rs2jF22ds3Q!3D[33!2>#2=^2xW20Y3JH22x83OT37=3Jl3J,2gG2bP3Ng3NC3LD2G23PI2=z2UK3R,2vW3FI2KB2(333u31<2CV2#w1},2Hz3D(2XC2pd212k32{#2iX38U1[n2{x2ck39x3V@2s'2Xi3AP2ZJ2])3Q,2sN2e'3W>2I;1od2s$2n(2Vd2A22ok31@3NS2<13Fo3J82&43CX3Cd3Oe2UA2Xe3Qm1n=3Io3D52}L2:g3U'3B#3H+33a2rw3F$2E,2^Z2*N2pv2D33WV38,2Vv2'R1'62T{2cj2{^3Mj2+f3Cp2gE32t3P22'I35'3XD3Q%3DW3YN3J!239c2nw3Ry3Sy3M930W3IW3MG2dD1aL2H72)13M83O!38V2473M03JP2x#3TP2D02n^2?G36P3Fq34>3Gc3Pv33<2{J2!m3Re2+Q2/w3Tv3SH2!U2)%2,E3E,3C;2v(2[{3J01}z36>37@2&k33+38]2I?2}(35R2#C2yV2i@3I92!{2K>2*41}S00I38+3JY3R{35=2xP1vd3D)3Gr3H%2/]3JF3G>3V03U12>82{=3Mt3Q)3CF2)L3Q02<*1lg3VG3I:3RS2g;2k/3L/3Q&2s+2uj2$n3DT23}31w2bW1yA3P<2?y2oD2^W3SD2XH2{v3963VS3Jj39a3702Su2^'2&e3Dq3J?2e72vt2Ig2XA2=o2$92Ei2AH2rb3A{28l2AE3D]2&F2Q@1:V2pn2yo3Kb1lZ2x^2?;2hR2}Q3Ir2x:2uW2bi3Ip3B839z3Dk3Wt2R@2LJ2b3Ms2([2wc36(2^r3N{37l2/'3CQ31t1:(2,*3Oc3W92%g3Ec3U22ty2Oo3Vb1'(3O62>F2Bo2eI2Z82K;3OW3YJ3Wf2*P3R%2v:30I2Zx3Ua3NQ2oQ23)2+#3Wp3TL26530p2;93Qt2=f3Cs2%#3CZ38Z3Q43T#1yE2Ft1?u38i2OP3QQ2Rn3373I#2qn2S#2'52a12}F3Th2]k2]F3N}2/G2v32o&3R/38E3VO3V{2lR2#O3592ks2zW32d3M:3C,2/Z39>3L]2M*3Vr3Cg3LI3LA3T43On2bS3552rW25)2XE2/v2)*3H[2U{2sy3Nk2^52bn32?3Sl26i3OL2Pd2<43243U:2><3H^2b$35#3F02)E3OF3PX2vq2/S2>^1iz2Dd2wq3B^2r}2}]2W43P72m*3O820e2nr3O33GH3Uw3Bm34l2P{3U72GM2]z2(H2sk2rr3Ct2!B1=&2mx3HW34C2)83Ib2wg3GC2qa3Kx2xk38W2'M2+l2e)2p31p;3SK2BQ1j91gY3TQ2qI2!r3M21Ir1841rm1!&1?E19Z1a61Nw1D#3Q22)+2YB3U62fE2f/2dV2!J1ey3M{2*63VI2gr3IX1@'2}d3Tp2Y^2zq2fx3942$c32^3O?2k%28:3Qp3Vm2Vu3531)D2%f2bp1'K1Vo2s@2MN2Df1{52XU1sz1!y3E633s2L<3Rz3JT2o=3Y43UN26c2/l2W?3RX2^L3Bj1z,2tc3Mu2#K3X530@2,>00J2y,2*R3Ad1@62w73V=00K2}B2>c2;C2^g2oj3JW1&>2%z3T?2G@3PA2E<2=Q34K3BI3861aZ24o2PE2Tr26p34O3RO3F73JN2a82^a2A%2]e1WQ2U82yr2Uz3Lc1]u2+D2i$32L22?'1%12'L3H525!2Zv2)Z2rO2u)2=[2Sf33i3E72AF2zZ2&L3DQ2#N2o)2v52?M3JI2+H37^2zT2KD2=@2{a2I12l$2ZW2J32?%2L#2Bt35@2V12fV2>m00L2d)2GV3Vq2Y,3Cm2L*30=2E32oL30}3Q;2'+2;H2dK3Gp3Q*2b83Xa3PT1tT2V83L333d3Ds3Ek2Uv2wV2vE30'39d2;13BO3Wn2Gj2C{2JL2,H30H3Hy1}m2oc2[D3XK3Ob3O>2@y3NV3T%2rs2>22}v3Tq34s30S2}p2'S3L91}(36[3Hi2${3B=3JJ3I13NE3W#2@m2Z339A1xZ2[B2oU2]2/O2{(1)]28,2FP3Iu2B12'D00M2mb2/W2q43Ch37Y2v'2mI2q3Td2qt2,n2zu2gC2ZY2pj3Mm2&g2P42Zj00V00W2R23S*2Wq3If1)A1/w2aa1U82h[1$a30X34f3N@3R<2#f3E<2%F2b11}G3Q:3Ic2;(2x=2u?3BU1/{2YF2wQ2$k2gD2ZK2hV3Q53Gn32%37x3Mw32:2HI1)K2]W24M2f02mC3AG2(+1[O2W52yU1$?23N1%{2px2^V3Nw3D23763Xl21J2SR3N837H22q2Ra3R!2d:3T*2w!3O72oe39U3Gb3DF2'13Ws2u^2mZ29*2D@2Lx2IX2!72{G31A3F<1UY1{@2?{3Rg2#037]22,3IL2U:3C*2}s2{w3Am2V92>?1'X2(X34b2w{2'w2+T3R233O00X2$L2cD2/u3Vf3Iy35W2fR3GX3JM3G]2Mp263Fa2N:2]U2@62!02H<2mT2,@1o:2&c1W>2uL33A3A22)c2,i3XQ2{K2F52&(1]e2*(2=,1'+2$U1;U3D<2!f2+q2=12Z;36E3PM2PZ2HX2IW2pO3TW3Tj2&V2mK2^22)I2%p2{y2hd2[[3Dd2#52XI2FS33M3QP3Mq2C&3Jw34J2=L2}83Sc2R62#Q3RC2ju2;o2uP2$X2>u2<(2*02=}39[3Cr2?91#'2MG2VM2&D2>C3V}3H<2p'2b,3CT2*y28W2q]2v+2p]3042tP1>c2rS2,d2nI00Z1Mp1ew3272)i1aI2[J2}42Dq3X92@H2^+2sl3Jx2811vj3B@28*2#D2;822}2Z62VD3NU2+N2tr3Lb1:?2<;1'}2ik2pG2T>2Q(1}D2;X2$z2J'2YU2@c1:v3S<2zH3NW2>V3B(2W;2KC2I#2iR1c)2vV2^#1(92eF3YE3E41*k1TI3Bp2tM3CV3472mi2*O2:o2hU2qu21S2:53Kc2zX2*J2V}2J,33D2C=2Lp2en3Mb2rn2#M38y1;#2p+2wx3AQ2:+3QU2Kb2UO3Le22!C2yK1##2(Y3Vy1?&2kW3KG2+i2zt2a3Px3Om38(3CB1[E38B2/b3TU2[j3Js1E723?30t3Nm2yx3X[3S63D!3P,3Ty2h*2O!2cc2<)2@S3FQ2$F3PQ3Wq2&h2&;3Dy3UW2y32:p3Gu3GZ3S/3Sv3Ss2?F2sv3N<33}2{U2^%3Lw3D@2>I35y3SB2=62$O3P426+3AY2z^2zo2k!2X^2@=2T]2i:30G3RB2qX3N$3TH2^32w&3283OY2vZ2yj1u:2>J2e}2au2gh2=N1S&2:?3UI11>x3S)37,36T3Bk1^^3G<2yk33j2,336D2'$30i2L13X238Y2p22$>2<:2lG31B2e$1;s2P)2l:2kL3RI2,M2y/3Xz2&@33v2u]3U<2}[3Jv34^3Sk2ls2+=31*3C83UH3Rw3GI29^2;:2^p2R,3Qx3IU2N$2$?2)g2;E2@N22b2?P2s%1,:2v63A%2x?3ER24R2/r2%33CW31H2{c1WU2:T38C2pJ2Q$1t)1WZ22%2/;1!Z2j)2gp1og36;2h^1]53AT3M+24w3L#3WR2:H2sg3R$3GD2mk2t522i2G^2$l21A3IF2h52/>2VK2'u2TX3Ei2Ua3422&22Ym2GB2iA00b3AD1:42jB2&u2lW2552U;2^F1a*2a33Xr2j[1:i2;x3H41*J2et2Av2$R2ui29,3D^2m13F(2S423U2O22my3221;e2kJ2493C$2n;3DL1n22[u2a]2o12mc3S71'V3UD2/%3B[3GR2B22,F2zB3It3H22X!1{21mr1]02Tq34Y2+35c2n?28{2?b3U81[)2/$1zK32323C3Sz1<11(,1U52b?39y3BG2:900d2eN3Gk2mL3N51&43M'2!'2tS37A3N[39l2^I3US2QR2Kv3C'2yw2:M2^Y2HR3D636n2^^2^S2GX2;d22iY2h;36B2vi2n}36%29I1^M1>[3UO2f;2uH34o21*/1%k2un2+h3B02O639f2;?2O^2@x3K>34W3QH2W32}/2/:2tq1lv1:y3Oz3GB22]1%A16M2c{2@b31X39'1ru2Aq1>@2]{3M)3V42Vx27$3EX2Qr24W10l2=G32*3P:2h}3Kv1;82&d1Yi2?Z3Cj38s32T3I/1Mr1]#3Eu32M1}W3BR1$}1En1oN2zA1,b2YV2ov2=A2aT2L/3Ju1}53Aa2JJ2iJ2Ze1[z2462a&2?[2wt2hI1^T2v*1mx2Y%2Hp1*=3Ma2hY3L'30l28/1{j2$e1;'2Hx2xg3Mh1%=2ho2Eg1&?2vd2Pb2L@2n&3QJ21'1}O1{G2^]2J93ME2qT2^j2De2So2<#00e2*21*F00f2f72!z2)<1$C2N%2:>2(i3XV2Ik3Ap35L22wA3R'28J3AU2;F2m1ug2lO1f526S1w>2Tt1t:2tx12!]2g)1m52wz2X{36?2nD3B}36A1:%1${2w13N92l>2Te3HC3C[2Ed2,13BT2uI32g2dn2+p2vM2*D3Ll2Dl2^D2{N3B?2Z&2C92wB36U2nH3692D524u2)z2C/2$K2iL2iC2ut2:d2fi2R82bZ00g3DK2jM2*B3DB2hD3Ep1+H36O2?f3DY2%Q2e<2?82Z02>%1wC2$N3Fw30C33?34#3II2qQ2on2B92xF2)W1?y3Oi2vG2fv1N&2Xy2;{2hX39<33%27R2E&1&(2E53Er39F2/71%T2a,3R(31b3F&1,J3Ti2Rt3Kn34M3O52[;2'63Pd31y31p2kM3Sr2iI2!:2+}3S@2=>3D&2y!2ZE2bX33f3C+3FW34$1,E2eQ2$[2jG3FP2a(2=)2[I38X2>A3061QP1&%2(@2C>3K%1rc2;m2ki2(d3PP3L12tE2dc2K{1h:3DV2L3PJ3Kg2v[2v73Pp1l^3C/1m>2p63E]2r'3Qz34=2f{37R2SX2$y3BN2Fk12*Y3I^30M2gJ33U35o1f$3Al2gw3T)2EY2[g2?J3BB3SI31h34P1zZ3F?2HA3F+2*33Ns2:q2#g23G37J2:&3P%2;v2ZV2/,2I@3E?2KT2t;39k1O&3L!2=%3Vz2X=2]S3Fi2z82An1AZ3GJ2}320W2;B3V12d]2C12^72K'2Ky1),3493I@2:[3U^3913SS20b1E2w,2{22TH2tX2012Q'2b<1!U3UA3J%3Bb2SH3FS3BV2*@2+L38f3Ue3Bw3983Q'3Wo3I32^=26P2[K2HL2')2at2}=2ol2SP3P{36I2[&3Mr32q2k?2jX1vM1ZL1'y34Z3M]1&q1;A1[62(]3Si3E82'E2t/2/s3Eh2n!3B;2C32$02Vz2ED36V1%y2;[3Gl1}82pB2@:3UV2,&38j0(t2e{1!$2Ib1/u2Q72(B2!R2}&2qW18A3Us2FN32c2*z2V#3G%2zn32;2y#2+X18$1{E2jO32)1&k2%02'n2c<2cI3M,2Iq3CJ2%^2'@2b{32J3IO1x52)J2(,1^R3Fg2RY1Be1@%1J%1}}1q:1^>1{62lX3A(1f91%42P/2'l24%2jw1}e2{T1zR2n:2%Y2sT1zz37!2z42[}2NP1hF3Rp1o)2VJ2vU3EH2j&39Z2w82p=2O*38l3Dw33X1KJ1u51S71w=2(a25Y27O2kU2F037g2]*3WF2}a2ZF3A=3Bh2C41MX2p52X02qM2Wg2S31Ch1]n39@3QK3EA2m(22J2L[3ES2Qg2W82L93Fj2Si2^n2'a1([2Pr2'e37Z2wr2fd3Ck3HM2eG34!3Ie2:m2BP30#3XE2*$3J)2RP2x43112tz2qg2}x2tN2zf2Ty3682E82?z2#F2$v2:824f2*)3Je2]V2]H2yZ3833Gj3K93R&2s02I$2j]2VP1*p1}u2rZ2zO2c#2,P2r#1&E3Lo2+F3G22Cn2z+3J+2Q{2ST1G>3L&2:$37W2dC35J1p62c}2u@2dY3Mi1Hv1!:1I$1q[3E%37*2l!2zV2!;1'A2(E3EP2cZ2I:2xT2NF3I<2Z<3DJ1Nk2J@2pX16'38P1y426/32&3873KC2k*2z*2j$2dk2e[1Ok2(*1lJ2vo3Vd32Q2,{2:G2=m2QS2hy1Ls2^b26A2%+2&K1<>2#Y3N&2wi3Bg2u41Jo2QX3V32*I3WY1xW2[+2Yf2!y2FO2fs1}y2i>1um2H}2qs1=z1vX3PZ2/=1p]2@{3CO00l22@38w3N!2D?2]j2r332!37I2HM2r&27,3C&2Rf2yv2qB2Oq3MO36N2ma2nB2#)2wo2#e38d2;L3FG2%B2/x2;#2%<1,736g2Nm00m3BZ3IK3BC2^02r25j35+2,<2sG39q1O*1W33D42,Y2qk2ZI23x2eg2r@3G&2tl2jR2%739023I0]S1yX2B)1,A2R026t35:2Qi2X(2tw2u:3E03811vY27S2zP1sL3771nF2t}2GG2No2Yb1)i2$<1kB1oW2/82d92?a2UV2tH2e93LC2F>2*V3R33My1Zl1@:3B:2iW3I%2Ox3By34w2uR2%t1b&3U42xO35P2[U2052Qp2Ob2w52:Z3YH2zF3H;2MF31g39{2zs2Jt2a<3F]35S3BS34/2@L1du31#3Ij2FH2)F2r>3Tx2#;1nA0*m3I,2;l3653E+2{[2#x1l%37f1f{1,c27c33g1&!2e*2Y>1^k2@z1}@1oO36Q2D^2@71[=3F^1Rb2>i1vI3P&2aY2x*2k21z91[Y3MJ3FV2Vf2;M1'%2ni1]K2[@2eX2B02kh2)n2M!36730/37F22z]2f62)V2?C1@42[>39C2Cp3OH2Dv2v?3B$2?22aG2H!1>72F+2n@1)01ha2E@1;938v2)p1:R1,41;,34G31d2T71VZ2pQ3QW1;*1):1b62V=21W2,j3Mf2G52f12+x2t:2'*2Xg2+r2Qa2O72AN13q2OC30(22+37}28G1qK2(k1=s1ul3VF3HG3C33Cv1:Y37U3A@2RZ12?I3Sj1W{2)Q2/Q2[b00n2]E2!232y0]o2JT3Q11(F1e<0>'1[?28%1M&2m91^h3Fl3Vi2IC2%b00o2aE2;w1v:3Bo2%(3D'0{L1g02j+2HE2$'1;c2as2:y29W25S2+V1?F2nV3821)#1p(1$t2F%3D%2^P2zM30Z2wN1xg2pP1iU2/D1u/3Jq3D:2[32+B2%22xl1{p2w;1,u35l1$&2+a3HJ2Pz3K72?}25*31R2Zs3Ft2$:2P72m$2!Y2qq2ba1@01x^2I424h2D'3F22wG3P533l3UE3O^3Ao2sZ1]z1e?3X036+1Tr2Jk3LO3H*1{72==1>e1{}2Hd2s#2;)3N?2]52)P3Gi1h#2@g1v<2s]3E93Kz2v^2s42j02>k2/V2&H15W3Ay2'J35!2KA2MP1E11}x2n92+{2Vs2]T2h32BN2EO29p3Iw30E3Q=2U12qd2+n2F[2Gy2gY2Qf2aS1]32}e3Q82iU3HS1dN0;t1)^2iF2(=2Da2w^2PQ2b'1Hn2ku31D2gU34r2+Z2;c2KL1y#2z=1%w2^!2B32;r2:B1Ze3UQ2FA3QE2od2K?1WR2=b2TM1a[33z2tI2,p2=g2&v1aD3UU1$#3Fe1ZM2T^2?(2[y1cP29r1xy2#(2;W2Vk2jg2>v1)S1=H13Q2cg1nG1=*20L3Gf1%f3EC2M}1M62K#35%2mG2Bn1Th3H@2!E23$1wv2Z!1km1l$2aI32+2O82'T1'0,61bJ1rL2Wo2zC2Kf1+B2)s1wF1OS2vn1%z1)f1Ad3M&1j*2Ks1$b17z0;A0}X1AI1mS1j71&F1[o2WA2sL1j)2Rg3Cb3412DJ2G{2AS2xm32o2Ny29e29N2UP2Kh2KW2Gs2T:1z+1R^1K:2bb29x2BO2?&2Pk3OV1!!2VE3Eg2B^2xu2@&2nd2>h24K36K2)23K(0%r2uM2{E2g/2d&1,s2Pl1vk1xN1Pa1Wd1vO1yb2'X1?g2Wn2}l38b1t]2f=2l)1aC2MQ1y&2mJ22M2lH1nB2o{2z12?12Q>1)*2i01dX32e3Cy1/i3Hx2[d1>k2PW27112{2fu2CL2<<1i51l[1xj223O2@n2uT1qu30R2Zd2us2&,3K=1!K2)$2TF1E925$22t1i92[W2&y2BR2dG2B51n'2?/2@E2v12Z>1n[27t1{l1BI2s32@X2Ov2HV2q010i2o(3ND2;&2,t2Es1#B1+42XK2*a1%81KM2Md2fa2IE2@@2gv1[c2VT2,}2%;2$b2P'2PL2)x2?639N2X12:w1We2b&3W738@2:=32u1]Z3Lx2fM1/72s,2&'2802RF2zN1;X2V<2}W2ss28Y2*H2/[2#&38&3O=2M=2Gl1,z2I'2OF2Qy20B2J/2OZ3NZ2(O2Bw2w[2Uo2d;3Pe2rA2ag1My1L)2x93KZ1'i2y52f@1[^26l35q1}r2682hQ2}O3L^21n2:D2P62W!1]y3Oy38:2;>2s72of30O2b[00p3Qn2P&1&n2X$2N11dv2YL2'g2s61n)1=630B2;j2:K2kj1;E2ZN2*A2kX2#q3NB2H{2GL3B32)A2{02x]2NE2fS2sQ2/01+L2!G1%g2TE1W:36Z2Q]2Il1)I1n}31c2)?3Sw2cq1x+29?2E*33(2Ap3790]i1JK2qG35Q2}w28c2pI2OH2583R)2[x1b:2,k3Ol2(;3Mk2ad2@I2{51m$2OJ2ez2dd2}m2Q)2d43AZ2Lw1KZ1%i2SN3KY2H52yY2R+1#Z25K2^K3G72)[2GY2jV3A81yt2M:2wS3742rg1h71'q2pl2F82kq2!o34&2hW1NZ2&M3M^2ld2?o2,^2$42Xp2x%1^H2]10<72}11:J2&S2GP1#=2mh2+d2Yu23q1wi1Ml1wp0'Z2N52Ej142ET3TB2RG1o42=+2?w1#d25w14W38q2gZ1(I2HT34z31G2iG2tU1lt1m,3A)1vZ2MT2fl1:g2Jn2;a2*C28[23@2$D3Qr2D=2RN34N2!b2%P2',2fy3B,32v2#u2QI1}X1gT2!T36k23%1>$35s1+W2vL1t<2Jb2?u23]2v{1DF2n'3Ca1i@1z72>D2=02Ea1)22D!1=12To28(2T;26V2[c2aZ1>02T!3T!2Fe2wY2qm2n61c[2@j3IN35<2ON1?J12$3MF3DN2<]1G?1?j2^c2>p2gu2,X1'p3C92431)r2C^2(11HX3B*3An3Qa2VI2Cc2P033*2z'2c>1{O2cC2lg2lz1wn1<21$[12Z2x[16k2h@1&{3NO1Im2G/2>U1hB11D0%p1=%1NS2nx34S1O81=S1692[Z2dT1])2!P39u2$Y1:*2+c2jm31K2Fv1mm3HZ1tM38T3CY3GV2H22CD3PU3NJ1wz2282L!2h>13N1B%1iF2=l1$*1#W11R25k1tf2+k1ZE2BT29b2b>2/T2h01^11&,1t^2Sp1p31&G1vK2i82t%29@1U!3C61tj2V{25#2is10a2cv2212Rc1j21#}1QH31z2?H2As2Kn2oO2p&3A]1s/2(}2FT30r21v3RP2)31I22q(2N,2,f1v%2dJ1Y/2SE2h12+72RB1))3SF2Bs1{e2/o1wI2X]3Nb3K)2e>0u2fJ2i42Mn27?23b3FC27E2M]2Ba2w41]d1C03Rj2uV1he23F1Q1%#1(52/f1C]2sr29[2bA2<'1J;0,u1m821)2YQ17G1Lh2hS27o1;o3H83LZ2ax2981s{2eu1dr1Hj2(V2Oj0@c1!X1&z2(72Ae1>31Dc1fm2@'1o$2:#1vP3G*2]%2UN3A^3262EB2P82Xj15;3Pg1]c2=p1>51ar2I91%>2N22?B1cY2Be3PB2m&37j2G<2ES11F29t29D17+1'<1&u3Ex1rs2Xt1K82hc2ep2YZ1#J2TZ1R;2Ue23:1:/2Y*31o1Rc1eK1+F1t&0>d1O/25t1Zs2ub30^2BE2@R1}d2aH1$G28}2@l2C$00q2xA2gl2E40{+2BH2G=10K2Tz2'01,M2br2/21Lz0>%1]S2Zp0:q2UF2rm1Le17=1Nu0=v2W+2SG1&C2*'2Mq3D+1KG1WV2nS21227g0'/1Gf2LQ2/*2^w1BB2g71g=2e]1Ek2y^2MK3AW3Bd2sI1c<2^M3O22DQ22P2/337K1g11'Z1L@2@G1n?1&;1/}1+O2]M2tJ2Q/39J1$h2p[1bo3I!2+91W02AX2@d1zC1Y!1c/2j12!k2wu2ay2dj1:o2;O2RH1K)2;z3JQ1F72oz2q63O&2tC3J;1}<2)52!62Sl1t41X]2O3051WG2!I20C26W27C2S11Un2zJ2<937D1%Y1k32eb2al2KE1H?2a+1Wf0k83Ey2M01!h22c1{s1jN2##3EM1P<1,O1w{2yi31:1]p23w2Bh31[2V^1%62#h2Io1%l1,j1Uz2,,1zp3TD1yn2w918Y1$<2I<3C!2RA23u36]2e%1*:2OO2a#22{3Pf3Hu1Ka2LP1aA0'P1bO32h2[H2z/2341%F1Vu2Ix1Oo2V51ht1{/1Oa1>v3H]1@q1>3H}1u#2^u2p11x&1$P2!h1Ev2yL2s^1v62=u2[Q2dW1]]2nG2f}2r!37s2]G1a92(b1u%1zO0},30,2LT3J<2Fj25W2CT1QT2^92k)2XQ3C#2Uw1'22f42y(1k]1OO1;m30u36W2J*2%R1d^2sH2Xw2201;+2o91}M2Q%1DJ1Y21Mm1&K2A91+;3Ni2];3501)w2*W2$s1AQ2O>16E2W22<[11G3SE2M72)N0/G1[}3J231?0mE1gp17P2e&2EI2m]2X)2HJ3F61)a3Hk1jn1?R2PP25f2<233935832=2Fb10V1x;26E1n+3Ia2S92eA1}#1)m2m/3I?1,d1Lt2P}3I71!p1e=1w91?i2o?1{$1v41Z021s1HT3I21=;2'o2nq23V1s[2YD2*w20S3VB11*X1cw2)]2%[33h39K2YR2l^1G=3AN2&O2Um1(72i(0z/3EN2/@2vR3PC30o3YI2Nj2s?0'T25y2;Q0>^2Dh11M2hk32W0]%2nu2VZ33Z21p22[2xs1]g2]h2cx2Ql1bt1k>26g2A020m2LX1{<2nb36z1tB2Jh2G;2UR1nb2jl2yh1jX1701W}2qh1#y2b)2uh2fo1i$2NB1)t27x1Te2MC1A]2Xf2ME2gW2vK2aA2<,23s1,R1(i2=W2Km39w2dH3P+1KB1,I1I'3HD22&1z:1zg1zc3B21s)3E#2g,2U)2A31A42V:23+2}V1:S1VQ2)o2Ax3U)3Pc2W2UT1=w2H>3HR2VC0zN1b>2yP1FX19k1hG1D21dU2y82*#1Cr2e(11/1bD16c1;=2a:0'h0:o2u}2m%1Jh1{H1@70}01N71uX1i11aM1MH2ym2x73Ag2=*00s2e21Cg2$81nC2fD2cK2AP2rP28I1T82{e2vl2xq1*h2#U2xN2sh1zH2SC0>H2>N0l1g!0:=2[M1C/1''1M21Z'1Q=2cT2I{1Jv2lq14j2,r2eC1}N26C2QF1*{1Uc25b20Z3W+1vE2Wd2HS1dy1j11Y&2(:2/51sp1Z<2]Z2yd2aP2@J1EM1yN1+M2Cq3CE2z51,w2@]2:u1eA22*1vB1Aq1gf28V0'd3Ih2V!2:h37y1eP1Y:1I52P,1f,3Qv2!<2P^1dV2nP1g$2Gk2Y61pw2Z+2+]35Z2c,2:U2la1xk2b32oq2Se27(2lE1{n2xI1Wk1Ia2;P2=v1M83FH2>o2k42xj2x/10%2rz1N82mN23a1cv2N>2c'1qQ2I(2pp31^1OC31m3D}1^C2l83Nu2Jz2ll2sb3IB1R#2z{2tg24J2CU2ia2Ta1+n2={2Z42Bb29y2gK2u>2>'31324g2Kr1WL1FD2IN2x633m1by18%1O@1Gg0,<2*T1u421X=2yI2jN2?Q2Xo1*S1Gq2dz1f1Pn1p?1vz1tQ2yl1m)2k#1rF2j91jI2EC3Ac12ts1OA1Fy1OU1/J1&X36<1Ec1Tl1:z2r721D1*P2y>2o32v#2gj1L{2&l1,F2XL2w02fn2LL37$2}Z26n2S22wb2ps2i91rX2AI2(s2u{33k1kp2mv3192hp0;T0>,1sI1mC2Qs3122#T27:1g+3V522;2!A2CJ1Ti21d1d;29&2:P1Yl1Qg25&3MS2B$1gK3KX26Y1[F1'&2T[15v3R61u83G[1uM1y21d'1^Z1Xs2FV3ML19=2sp1Gb2[v1^82dN2'Y1Cc0,22)C2{:1p!3Q>25(2%C3JR1JC2)f1CF1u&2@r30!2l735N2^m2m=1(r1683MU1eg1%@0:}3D*1T91/L1k#1X;1X[2nz0(r2K31=@2[r2t+2?=2%'2^12's2q,2&{2B&2BU2{k2=U1;C1ZF2='2Ud1v#0{M2lU2T)1Zc28F1bq2,K3Dh2{{1=O3L*1&H1i#11#2+m1X%2mQ2}$1mN2772c22T61w#1Dy10P0*C3So2P?1Dz0!*2HW2372jx2],1]Q1tK29H2/L1?X1xI1B;1x=2h81(+2ln1p'1G32=k29<1(M1F%2@D2[(2W{16Q2;g2PR1@A2E635G2rT2DT1Vq1z}0}?1y)2E]2t[3142a>2?U1!u2i[1B+37)2aB24;27G2RC24H1PH1=82OD19L2Do2YN2Wr1p+2t<0:314U1W+1yZ00u2}j1#I1;P31V2Pt2702ZC2$32a?1df1,p1?#1'724P2HZ31$2B;1A^0{U0(N2C1E)2it2m+2{q3As21r30<1n$1;u1HF2oM2ow2^X20D2Ff3Jy24l1Ol2l52Bv1nz2v=2<@27a2/(3Sa1wr2i=2Hi2o;2+J1jh2w61yT2#B2bF1#[1#{2^42!l2!t2jL36b2c:33J0(p2833EV2,g3202uA2*[2?@2nc2rF3HK1BR1rR2{p2cz1Q)2Kj1K#1bH1@r34<0x'2eP25Q2ZO2s(28o28$2HK2f^2>K1@81nh2iQ29n2BX2j82&t1{f2,e3TX1g,3XO2X30#f2gB1c51j>2@?1$42=:1as1FM2)r1y:3Q{2Dk2dB2k12D[2:n1?(1v&2D723j2tO2%A1782[p1]<1)E2*Q2Mu2E:2v;1;}2n423c2wU2r]3CD1*}2Hu3CK2YI2Ci1tu1x}3P^2Ss2rD2HF1*M2A!2mt2/t1Lq28s2ch2jc1X91((26d1FF2^f3Cn2Y{34{1O72LH1su26J0;u3X62)j2uq1@Y0)d1Z#00w2/i1zj1y2:i36q00z1Xi1z=11,2g31pE2/!2Dp2[F2+s13@1!<2CS34F2ID1[21+S1:01OP2=$1'd18I1VW1wB1j&0&T2c)1lX2pM1Ww2>w2WR1v=27v1lS1wb1+33V228A0&n0#;1Ko3G61CN1(d23^1<@2v%3FL2Jo1N02uQ1QN1z(2D*2E)1+s14w2A)1J:2f'38!1*41%v2Y$1Iz1AD12+G2@i1LC2ff2@Y26!2m51?l2lY35f2Sq2d/1s}1X!2@}2a!2Oy1p{2]A1iI1J{1nl2EF1&l19(1892NV1n%0:r18K12,2b*14>1,]22/2^y1iO1Gh2aK1WF1(o2rd2$@1v'1=(2/K3HV1=l1bP2L>2'q13x2Lf2c12:s2tA2}y1sN2@U0:Q2$Z26f3FZ2b^2ix1Q'2v81:m1,22C*37+36M1@y1lx2N2Ll1hI19q11*3A/3J:0ob2Fl23Y1gZ1U22E/1t713&1[&2tb2dq1;k1d52Yn16H2{I0wU1:e1C{1T:1a;0:i2y02BS0;K0]>1lQ1FN1V]29P2](1cQ0{I2fQ38m1IN27i2962US1>{2=F2t$1jM2]$1a71!71s&1Xe3Jc1&M27W2FB2O)2r=1qO2z)1Cj22$1h52g81ME1:O1;Y1s41}U2152R41p$1p72[s1$714e1v*2}91+k1U=0@,1Df0'a16&1!42c52%D1Vr29l1o?2Bk2,A2nk2l}1u21B(2{b0]^2g>2DV1I,1e32oE2+;2[L2!#1Bj2)@2B}1mb2mA1rD2vz3M*11X2''1@j2sq1$61b(1#o1<62Gu27m1uh1Mj1!e2aU2xB1&/2W}2pa1(s2ND2T42FC3L}2oS2:C0*b2F!2n]34d3DS1<91vn2Ke1FG1sw16Y1[r2850{d1{m1;G2061{W1,%1=[1FC1r^19D2$21Hh3Ak2$^2Vm0k22&$1mZ2S>1US2;h1&L0;w2Bd13'2)/0zo1jo15X2#p2ea1UF1{?2:J1yG1wQ2Ck0}a1l818Z2$C1cI1j51',1*I2Z%2di2oF24+2+*2QO1b72}22cl22D2&n1bY2M11/=1x!2bk1'm2Lg2Eb2?E3Kl3Kp0[61w22ve2}S3Jg1Ta1;N20,2SL2Wu2?50='22p1sm33y0y21/q0od1ph28E1?Y2q%1ZN1Q!0[P2dy2i71kq1hk1}v2g51TE1^@1mz28O21Mn3Bq2Dg0^c0(H1vb1g;0us15m2422@>2a41yS2Ij13H1Jm27q1Lc2a'2m62%L1hp1{C1NB2l=2F?22l0x#1yu2F210;2Aw0!F2i+1VF1'u2Kt0jb0(X1Ro1251,/0#&1zF1fz34j2Fp1eQ22>38I1uR1wY1G[2)G1m;1l]1+m1q,1xE1g)2rp1Xb1cW2{$14;1sy2P>1xO1$W1uG2YE2jZ1qX1[v1F,2RS1*L0(Y2WZ0wc1{I1!w2JH1{y17l2PF0@S1k!1U,1Y[1yD17'1JO2lN33S26N1SN1gu0yE0m;2#!1h!2!}0#]3Q@1'Y25U2rI1WC1%M0*l1:71Kq0'614,1aB1DX1hV29R0]70,(2SV1Dj1[91WN2pk2{Q2Lo1!)1231]B2Bz1L}2Gc1r;0zV2#637'1TG31S20v1#>1[D2EW1Dr1d}1q(2UI1m32A:1U11xm2nM0]I1If0<#1iC1Vj1tP1un1:E1/]16r1<72q72e,1LO1@l1d+1Eg1Tv14A1XI1&=1mV1Sz3603C(1px1js22E1X:1XF1c>0>11bk1ps18q1OJ2q'1e21Q01>M2vb1kG1!%1]^2CK2mH1+P2mw1L21l>1{k2fk1J^3TY1z]0<^2C(1Bo0=!1l{31W0/#25,2z;20V2It2Fd2(P2ER1,,2Ir2Qq2Ha31'2Xr1ep2En2;'2ny2MO2Qm23*38}2B#2l;29)1iX0@P1P52@^1sR1rq2&q1=Q1{'1#Q2Lq2Yq2Hw3971+62Q[20F1L3Bt1w$0}30*r1=]1Mv2+z3J72kZ29q0xv1kQ2bO1(L11a17u0:K1a@3Mv2*536}1zV1G01}31q81ke2E#29$1j%1'!2oV2hA2FQ1,32g11lF1z*0%u1G%2Cy2(F2Y42yt2#>2vS2wd1h30'b22Q1R&0:T1OD0<10^f1es2cR0{:1gU1:r1w*1(&2{'1L/1,80&G1wU0[j2Wk1S@1LD1J/1*b1Ud0{Y2Qc0)>1NC0>u1JA1P>2$!2'm1nX1){2ms2&R1/S1N91h+2gf1?[2S2/z1aP2so1%B1!]2eB00/1)F1Dp3Ii2'h3Lv10,2yn2}g1xG2!81S[1By1Sj2U?1T32Jr2da0+n2V71991CH1v}2zw2lA23L2}T1@o37B1So2g*2481Lw2C!1Ho0>/0&Q2Gp1?526(2w)2D<2Wj1&t1L50;)23/2>g2::26e1nn2{i2Na1uH2*&1^=1WA2{n1eC2%!2(n1WT1yR2Kg1@51zY2vN1AK35p22u2eV1di1@N1!>1:I1eh2QJ1(k2Q<25o2Wz2fp1i71gH2^;2e/2W/1*]1^I1n^2X#3Gw1B{3B12?]3La3AC2qR1pz2;631Q2Y/3Hg1wu0:M2+51i^0s61JV18c2lV28B2P#2Eh24F1UU31U30Y1zx2AL1R}1Yg2K,1rU1&)1?739W2]^2/e10R0{$2g$1Z}1%N3Ah1n{2tf2QD2)92'W3I>1sB3O,0&X2Ns2BY2Qu1,?24&2!32M82km2a%13>24V1k12J01];2P32bv2Zg2Ut0&b2R?2Ge2NK2}A3J{1j!2ib1602$i2A81$d2fG2[R1#12m01vi1541B72sV3FN1q}1iV1xb18M1(O3LQ15^1y93MR3IM2r80q$2M&29Y1Xj1Cl1e80:$2hF1%h2l]2/}1vD2?Y32p0:/1'O1Ug1O$0z{2a621&y1c]1{T1r81p<2V*1Q31/<1yp1O%1qe1;b0;l0)+1m}27r21u1eR1E[1a]1t51I11JR1)G1(n1'>24b1KK22V1i60>E13V1AL1hb0:R2R)0zp1!50#O2xG2142H316s2&f35a2l,2rq28K1%32d<2%r1(?21F1>81[A2IF1Y82>[18k1B:0+O18(3622GD2eq2<>1J+2Z21&g2A{1{(2#^1@&2jo1+G2Ga0[p3F>1i:0wo3E11U(0(B37P3A'2Gn2bU0p!2H%1R$0}@2cb2@42^v2902A@1*1sW1I=1l=1LE1?C2bM1@p39p1@U1&h1tE1k/1:@1A$2VR2XN1rj2O/1$%2Z,0)]2H:2!c1U<0}j2Hm1Dk1qh2tT1/r1x%2g92%k2Vj2MW2R[2r02bQ0&@2nW2i61WH1Fc1d@1C}2T,17>1c61V*2S[1ri1351HY1/%1Gp18D2h+2$&1am3H61b81oH2KF1f00'*14o2$B1q41q<1eO1Tx1t#18;00+1Bu1,}0=311W1IP0[u2Zu2=?2fL1Kk1z32Oa2o%26F1]t2xi1pZ2wl24Q2i;1{Y2Rh1N+32[2TQ2?D1H&1[V1<}2]92RT2OU1!*1&B1(82r[1rv2iZ1mG19s2wR2K22lu1EV1Ar2BB2(91{83Ev2;U0=g1(Z0yn1ce1/v2A*2H'1XO1qa1d!25;1wd0=U1IL2TL0*+1wG2$%2lF0@w3Du2kH1eD17{0;32DK35&2X53N)2g01(}1uv2kN1;12D%39=2Mt2he1rS1AV0=n1V41N@1E51Tj18f2P(1z%12X20o1)x0t#0kF1N53J^1M)2qc26x1L3HT2by0!v2Wl1yI0+o12f2YG17m2*:2ky2i50z+1]H2&b1SI1Y*0i[1BM1#x0d53G!3Hq0[12%)2Ru1{A2kw1^02&m1B&1/D2na27n2DF1hu2KX1Pr1OK2A'2n=1/N1o11P81y>1q$2f?1JB1e;1o%22v1h{2B/1DL1f)1v024)1Dt20$2fB2jn1%L0w,1/t33w0wd1VU1101Bk2oh2M;2sS2292e@1>z0s<1os2$72#*2ZX2m>2sm3FF2130%31rJ1dm2Ii1l)1C;2zp15w1%J2JF1VV36C27}0zT1aH25r2IO2Yk1WE2ij3E=3JV2{71h61=d2d}2Nw0;%16i2793PE2J^2qO1+82($1d62cO0vZ1YF2t(2N=1IR31>1?a22W2Y32{A23R2vY2!u2NR2I*1fO1!j0<81Fh1r/3QX25G0sM1uC0,>2N<2R&25a0%q1nt2JO1:]15#2f*2%X1Jk1r<2eh2jh1**2Pv12?0{)141fK1w01lP2{R1S$14l2d+0nY24?2@91(x0=z1p%2T?2o}23<1w61Qw0}f2hC2v!1Z60+L10$1xB1;q0!>2]+1jt1()1=020c15G13K1uS1;W2820gj2)R1]Y1T}1*m2KP0[A1fH1:>1*H2&311b1po1Z70(72}k1BN1261+51ES26{1RS2Kp2Uk1==21yQ2dU2gA1mi1(R26L23S2X*0<$2io25>1EI17)29U1?z0rl1t21ej3MW3DD2{]1ic1wV10c2WW0,Q2aw2cy1XG2%V0}41G!1fC0[e2*X0(31^m2T21lu1b^2C81412sa2$+1o718721,1n51D40jB1h?2%41ZB0:g14(1ds1q@2G)1a(1$D2]72J!2(^1&Q1bj0za1MU1zm1(j1y628'2LO0z61E@2tj0pZ0xL1ow0);21k1]h2kB1+^2{!2wn2?m2XZ18G2b/1661m71Nx31i1Uw1:F2w:1it1u;2FJ2ZU10=3A,2MY2Qx2F)1]w3V[1*10;[0Y]16e2K[00=29g2^{2+/28<1Rw1ss1St1x31,112w2rJ18J1cX32N1s;00!1#]2d%0[b2@q0}G1>P1ci2F:1F?2NH1/C1S'1H*2P<2732PH1#^1vm1dw1m?1H=2w%0su2t@2!p1$S1d,0]1sY1r11jU2%y38%1H/2;y3M%0oo1>F35$2=#1!P2,l20%2JD1w+1nJ28Q2G&2E!1;)2mU10m2?T0:Z2v@1^X2Ti0)Z1d21f}2Tj1OX0?n2ai30f2c=2vs1vL1M72bG2gs3P#20p2KZ1yL0:^2JY1)e2Cl1P(0?U2Q^2'j2@M1El1K%19x0[$1uT2W$2if1PW2{B1iv2Z/3K&1qt2UL1}=1[g1TK2bH18o2g'1xD2g=2Pe1d<2Rk2tV1(/1Gr2wT37e16R1l12022K@2I71y52W(1y;1dQ2F13LK2PI1x)1/f1@k1=)1KP1=K34@3Kf2Kc2zc2d(2c;1Nl0/}28^2dR1fu1WP0]g12v2g+2u52uc1iL2xZ2L]2081@B15S1%x2Jy1{91LK1Dq1*)20f1q&1*O2DX1Q[2r62#v1hA12>021U2l%36#2qP2+u1X^1>q2>)2*l2]?2xU1#31yg1sk1')2H^0rZ2!&0(Q3QL1<:1&S23r23o1371In1#f2$)1*s21V1FQ2q)2qN0nc2{F2[)2te1#z2]y27j19h1f61;/1L(2bx1%u3Aw1*91IH1hq1aE1L62E?2vj1;n1)y1!02MS3Rq1[[1c@1r&1y*1^F1bK0>U20T1Fr1{w2Q42D92g:2]O1643B42C[1;@1b51'@1K[1c=2#t1>#0&11YI1S,2j41bB1Ob0[E1fd1bA2:627/00@2B?1>K0/k1H!1M*2V?1>!1Fa2GQ2]q1l&2nE2r?024a0wT2Uq0(C2A41aT1#!1[31AB2U>0:e1Tk1ku1lh2:12K/0(d1,>2F71IT1K62Co2%O11g1uA1gG1#(2,I1io1=U1SJ1pq1hm1Yu1dz1yr0qT0&:1sq2@%1QG1Kg2WX1S%1@i1,51,K2mY1)?1iW35D1Ub2aL1]91282mm1R11Ja1oD2BF1}i39(2p71@H1NM1pt0o&1k21oj1r:26G2NG2/R2Ai1;?23T2%62@01GD0^v1U@1gI1eB2jU2nN2f:1tF1@W2;01Uk1lT1Q21L72W71uI0kC1}11Z51&U1Jz1qo1wJ1y[0}H1ge1uo2G}1NA3O]1D&2Vg1$e1MO1!J1a30<%0*D1kn0eE21y2U32Ca1kM1's2[i1(@30>1b)0[m1z42=j1do21Y2Sx2@82Rs1w41}61Lo2ZM22o1gc2;21}41,G1<421l1gr2D(1da0,Y2@$2u;1fY1^v1r?1W&1Z!1/T1r(1lf2[z1pr1$n2sW2Xk2L61vQ0u@1H'1G*1if0;V17C2uC2GJ2P%1i>27)1e41vp0)=19T1NW2]o1{30]=1F:1*x2V>3UK2+'2cu17n0xQ2rE15+1f&0=L1Vt1T722R2aj2QH2{42!w1?11k:1zu3T}1Z/2;V1(c2wP1Wa2/I3C52F32o#3JG0;e1vx1Rt2Cd1yq26m1gJ24/2LI1Qd1l;1g?1]*3E{2;I30x2L02jz2}J1yF1^(1tg1C40n#1C!2K:29}19r1pT29X0z00'82ao1fq1[m17r1%e14*38h28R0[!1i31mB2d51&b1]T1wH2jS38R1Gj1Yw2E;1f;2vP1:}25?1{U2J}1h>20?3Gq0tm2d*0!+1q^1DO20Q2^E2'c1xp2ii2c$1RB17W2l&1;K1='14X2Of1S60/l2lT2A61kI1c!2o'1y}2wO1d>2vD2E92u'1?K0&91mE1#H1z{1!D1ba2951dC2X}1TM2vy2O&3L+2&522N1]s2?X0pz2T%1=W1O^1=C1ju2T/2hz3CI2*e2#%1*(2hT1(:1MI1f?2/d1$T1pn1Bp1^N1BA1k42>Y1%<2Br1+'1ua2AB0x,1&R2s>1nH2t91fU2w#27&3Cc0>p1!q2Ev2GR1d%1n,2i!1W#1'x0'%22#1Zo2,J1D/16W2?d1Qi0s30xX2^80zZ1$O1?k1#t0%J2um1&O1fL1U%2IY1/>2xH1!i11Qa0=F1mo1=!1+12d'38?0>S1=g1b'15y1B}2m^1!f1sl1k'0x)0$x1:Z1yJ1Q]2LA28q1V02fw1,T1VD1(D0#01me1&P38O2LN0?/1On1h$2?035b0vz1c$0:x1$^1/62lo2$E1T<1Vc1ca2u<2Sj28+2p?1o{0tN1Cw2Hg2(z2881o[2[^18&21O1Jb21T1S<18H1xz2G02S;0v<1P$1R'1B21ax0(+1=f0$E12<2QC1l92+A1CI0s%1Zf1#u0,v1cH1j41U[0uO1I[31x1ch0^@0]J1G91%,2gI33H2GK1Hi2H;3A[2;k19/1tC1MK0:51V(16p1Ty1PI1F32y]28C1,L2WK2I31F11t>12S14/0w{1t*1ou2lD1>&0)R1;p1r}24C0?o10:1sJ2Mv2Oh2eo0#*0uE2381o>0r>0;R1C70/C1u{1/W1@91I@15$0(u1G(1o+1oS1oF2N#2=229=27=1dG2I61T51SA1$:38#2=e1ID1Io2!^1rE2n$1Vd1oY1!n2ab2#30;Z2B83P=2l92fz2YJ2F(27N23g1V+2661ry1A%2]X2Vo1:=12E2{Z2SA2L=27@2D;1sF2#$2MD2Vi0yb2E%1R217!01vg2p43C}1qG33C1201Oy2s&2yE2%N2DY1{R15V2oX1jV1Vz1XY1W=2Am1n00,w16/1562Eu1hy2:Y2uX0qb1d:1pu0{O1gR2}r1=a22!16q1X@1Nm1v^1;]1[:1Jf1L^1j'2zL0:k24,1'03Y91C(1C?38L2nY1h%1g71Fv2)K1:!2sX35F1dx3T:0#z15)1l50z)15l1Hu13l1Ke1tw2+[3GG1Y?0$D2w>1OB1ZP2d11s92v92$h2Y]2101Af2RL0(z1Wz00$2ux2F'2Ie2DN1,B2{}1&91RC1Mo1{c2GA1m[2Tc13b2ob2g&10G2c/1ET3161ZG1&D0*91P%2Th2I21d=3D000%1^)12b1H>1H82l41ko24}11t27%1MJ1m%2Y=1$w2=X1pB26u1[;2!v21?32S2%U2^<2>s1RP2e61v(2z%1Xt1B016=23P1V%1UC1e:0$Z1:M3M51q#2OB1R]2J?1I*0&{3BL1380l^0%c0}D1k)2hx1y02ha1Bd35/1A:0xY0%g1m(0!h2a*1b]14I1eU14?34'1k@28D0W81eG2MU1QX0?h2$61i/1Od16)2o22^N0^y0#J2!?2NJ2Lm2O,0%(2RJ2S@1WO1]F2@a1J31O)1gy1v{1af0/u0!c1W'00^2^}27F2ZA1?0,'0>r0>[1Xg2pe1(A1F(0t/2&B1!S24[2Tp2F#3G}21+1%X1o21iR1m62+^0o32u01Fn2'%0)i2Yt1oc1o61TA3Vp1S^1Vf1L31n@2Q31w)24q1n&2s}3XC2G>1u=1fA1$l2#P2qi1ji15D1jK1(p1zb2Ui0>71zn1>D39%1A'26k1u*1bp0'K2/j1tN1p}2]}1{L1M+3A92xc1J!1LM2=r0/K1iN1)51uu2jC2b72(2/g2';2g%3VD0wD1s%2443DU2ZR13y1!;0;x28P2n,1f21^E1e%1hc2H42{f2BV1,90$U1@x0('1uw1?m0:s1N40'91cs0+t1u(2zv0$*18d00*31']2dZ1lE27Q2&P1gV2241(]32A1^J2gF1?$19t1b$0}v1xc2u&1BK0uS2SZ0y?2=P0w}32K1(P0]L1S>1h113I15134v2W@1r]1&a37a1402#,2P*16D1CS1S929c0[t2;N2EM1)o1&c1m91k92Re2SD0s)0}z2L$1XB20l1I/2Mb2F*2PC1:22XV2C+0%81sK21%0'V2fH1Q*0}Y11+2K^1[p1{r1;B1Fi1/+1ag1#n2Yl0?523M2hl3S42Gr2OM2YS2R}0]+2ZL1qd0}k2hj1j@2QN1qR2&[24S2h=1RL2,o28r1nM2es1<82Oi3F}2u63Mg0){1^G1H;3Jm0nj2e42kt2!N1T/2?g0,,0:E2J61Sf2j@2va2IS19^1LY16Z2]=1P!1!a1YV2,]3C^2692=q2Xh2OL2781=q2Ve2[N2qK1W]0}[1%71(=2KM1392KU2(20XI2632'i1Xl1'a13$2q:1v92tm2e11wf1'81o;2Xq1E=1Xh2#l1?h1E62B%1=A2nL2XT2S'2o82Ma2{W1kw1b33W)2GS2xS0>22>;20[2l32U,1>%1!I1431ra30w1XM00&3751?02SM2<71]=1SU1oX3NR1hS0x$0p+2UD1{h14y0!d39E1r$1=x2B'2hh2?>2Q01Wi2=Y1W10}V1rA1eb2ip1oq15o0po3EG2Pg1:l2Jp1qH0@a1;!1H42j;1^Y1$,1Tn11y2$=2q=0tS1n41cx2@#2f[2{S1U^1C@2Rj1Hp1d&0rq2l/1P)1f+2:x2Xb1ee1Sb1fs2VF2QP2A(1GF2*<1]{1XZ0U[26o2z&18L1IY1Ak0#C2UG2Ju1P]1;M0]X1Me2t,1Ca1xX1l32cA2(m1=t0ri0xH1tZ1kO0[N0;61gn2UH0k&1g231+1SK1#h1T11IM2VH1Qn1$f1{g36)3P01Zv2zg1br29{0!m0)<1dZ1J(2'^27]1fa1k&1$01m42Kx1cR1bl1A91v71*B2:A1D52N02]<1$'2ee2IZ1eV1:11o]1ff1hE2R52?S1wN1X<1iw1>I0x]1uk1DA0+]2+)2I^2Yp0x>1Py1@I1DU0&!1<#1y'2AT3Jn1g%0+,1>Q2T+2X<22Y2Y[1TN0#/1K@0+V0]A0*=1o=25p0}r2h%1L&28)30s3A127A2)S0''19o1aX1b+14R0wp1Zg1lY1eq1QA2xf2O11L'12F1D;1cu0$n2m;1531SX1T+1JD0!V1sG1ZY2R#23Q2fI31r3L20qf1C:2Nf10y2H/1ab1sM1X>1d$1JI1g@1P#10U0bk3450sn2bV2FY1@21CV2cd2YO1Vy2Z)2*u1!A0&R3T82jd1,y0xr2[O1yK2C)1$Y2]C2E=0@(25]1Q134U1@Q2Kk1pW1E31U:2xY2)h2G!2=K2qF1O<2hs2q;1TP2#b1B@1zk1U#0j01Q>1#S2Ho2WQ2Jv1z035B1=?2M?2Zz2r^0g?0eA38K2K$2%W2Vr2X'1*80fg12n1R@3G(0a40yG0?C1;d1YJ2n)2ev3KO1>i1}21Pu1;w2Bu0,+0[%0z'1/:2ua2Va2;b2S&19821/2$P39v25:2T82f$2Ip2Kz1IW1$E1s$0k]1{x1G,22)1z#0wq0^62Ao2&j2w<1<;2?V2AR1hn1]U2@B11&2Y}1+Z1HW1G]1+@1Da0kr1r@1C#1ot0?i0[71Rd1LJ30$2vu1E^35u2V'2X/10#2fr2Z{26Q12>2,U19b1E'2O]2VB2+,0>O2N40SU11H2Ad0v/1hR1)2L;1}R1aq20r2MV35T1UI12A1w}1Sm1Vv2!V3JB0@Q3Lh1u^1z/1,q0vg1lW1EA0'$2U=27z0,y1vt2cm0,a1@+2xp2n70(a0]H1yd1Iv39T2{d1F}2HB1#R2jP2k:2b;2P50/b0&52st1t+12(1N}1b{0{x2&x2pH1yo2Iw1Hs21#2({0)w29>1vo1N>2(l1Ib1J)1?U2+210z1Re10^0&C0^L2K}0;G1Z,13611J1VH22l(1Z41J03Pi1QL1j#1tI1}E1Vk1/!21C36J1w82#}2rL1w72hm0%K1w,1gq3071Ou2zr2N(2G32aW2Yv2Pn1%H2SO1fv1(12Nh3M42b@38o01&w1^{1nT24T1iY1:q1Sw27;2Nz1yw1iP0[R1$=2bC1hw0&c1$(1*w0;y1H02H91)W2c71,)236i2V02k,00*1jb2rh2tW14)2v]0k'3KK2X423=2^,02Ef1,k1KH1x21i=1(!2e!27h1o00'Y1g32<01Z%1$q0>+1M%1#:2g{1Q;11;1^O2QU2%H1>Y1A+2$r2&*3Fu1cc1fZ1rB3Qb2q>2%:0b*1Ee0>&13g1I61v21+!1P[1Kj3250Y#0h*0u:1M?1V53Vg2601KC2zK20)2TD1N;2!,23B2[k0}d2#L2s{1?c1ww2D,2G*2>x0(R2pT2/Y1@[0[n1qv1;L1cL25+1R<2<$1C+2oI1RU1'L1jj2Jd25E2d61X&1XJ2=R1oR2Z]0lr0?<2;p2t^1C)0!71qf0/n2i22Sk1q>1fe1q;0mt2Ul2w?0];0{y1{q1T,3RF1'P1j$1$J1}{1[%2Ld0%z1h^2SQ1k+2AY2BM2ql1*g14&1*51n!0oQ0)z1e72LR2G'3Gt17&2Fs2D82FZ1r41so1BW0##0q,2001+D2L?2KS0>{1cC1xL1}P0yC1Z&1[x2Ka0lF1CW0xg1111&23Ru2zD1GB1YW1Wq10{1Bq1r61;<1Z+1}H0,725'0+^1}F1zt1qE1tk2Rb1WX1z50{(0,z0@42;Y1b!1pa1ms0^#0*!16l1+>1O01IO38A2(p1yc1E?1N{1MT1T22LG0z$2*p1^P2a;0oL0(e1J'0(s2A&2z!0*c1kR0zD1p#2Z*1f=1zL2B@1ap0=X0r^13C2uf1kU2vp1x@2c&2X810*081&A1#$0gf1wD26;2sc0rY2R!1ZS0z=0tn0!60[<0xO0%a1';1t/1UL1Ic2cw1YD1lC2IB1Aa1=u0$A2sR1)n1'31z@2M%1@>2X:21t31l18,20/2B[0'W2cN1o31o(1iM2c31>h1*?2S:1g(2D61[j2A}1tU0t+1r>1?32;40@[1sa1+l1om1tL1FJ0qO2^J3EL0'[1vV0$a1qT1]72Fq1[41[<0%k1Hk2qC1q%1KN1pI1TY29]2}b1Vw29!1V<2%e1F'1SD0[21#k2QM2bD0^[0Zg0s^0{r2nZ2N612121j0/D2PV2Yx2r21!/1hX27X1v10{!2Sv0:[0{}0,S1G20[Q2l'2m?1vR1E#1GT0*x1P?1rk2H+0!Y10S1o#1Xp25z2z23A#1Xz1nc1TL0+h1)70,h2!/2Bi16^1]C1n82iu1xw1Ul15O0%I1HD1;J190ey2zE1#%1XC2'C2Ys2GW1b?1(C2nJ1gj2HP1R:2':2$a2NM2wE0}B2C61gQ2?K1V,2Z@1D(2nX2*^2d@28=2Dx1'{2jI14z1^i1Yd0{o3RT1Ts2JK1Yx14p0'i1C'17Z1O[1EJ2Y+1}k1FS2@h0&I1M(1RX26q1S!2gX0l60?R0[^22^2Qw1u!2do1EP0>=0=h2V+2pL1mR2z70;730j2>/1H31u30:72LD2d>0wa0=r1h]0*Z29(2b61^/2F$10e1=}0qp0$(0/F0*,24'0)P1Wx1uB1Bf2d=1!o0}M1t%0$G16P1gA1oZ1D$1hQ1j;0t^1UP0%90m81'=0}Z0k<0*#36H2y@2>Z1eH0,31Pm0pQ3L?2uB2273O*2U}0w60q62cr1K^1//0d;2u(0s=0wy1V>1e@2K)29G2111+j1A32k+1;02N/0]T00)2H(1rY11K2bd1W20!(2I!1^S1Y915H1}Q1e{1)L1;h1>0^D2HD2$#16<2Cj1'F1rI26)1l!0wF2;+1Y}1,g1r21(;10+1,^1#/2ce1>s2M,1)Z1=/0W1$F2gc13}1+20%01>}1nx1Uo1S#2F]3U%2/m1f:2IP2Fm1PK2kT21K2$,1+T1Kb0nA0vb2/63MH0:V1Hq3BP1fi0+b1!,1}V0>X1xa1Ns1Ax1^+2ga1)Q0v=2mg2Bl1<^1RM1r70iG1:b2(K2j512e2?n2Ts1R,2p81Dv10T1wP17;1kT00q@2em1P^1340p;1%s1mv29'2S+2V,1#E2yR2Zi2IJ2x31E&1Dn1ui1pl0ev2p@2X62HH2v23020bz2Y80:N2p02#Z2)!2N;2vQ1e]1Qq0)&0@{1Uu10D1:+2WC2j'3V!1oL2NZ1wL2!O2!g0/M2ru2V20x}1c12HO1B82Up1Fw2LB1/p16N1+v2h70:41LR2/q2[q1hW2'p2hJ1EE2{,2eD0Zq1=Z1Fo1fw0{<1$12F62Iu2p(2rV1+&2W915e0eY00[0XS2,;1(321<2CH26j2u[1bn2Sw0Xl1Mz2(t0{s2wf2VS12G1x<2(U2W#19$0J2E12%q1:60z^1Y70nX1O10kt00{0eB0vD0ho1pF2Us1tr0a01Pv2Q625}1cy0@52K<1U60(=2@f1c;1^A1oI2Z12Nv2qA1!'0y91OL2[<1lq36p1bE1e1jY0]80;c1SW1Ri2M'1{*0@}2>W2T'0[g1ML1nK1+#0!)1iq1I]2d[2=B2LZ1KD2q&0,F2uK1hJ21;2KQ2dX0%[0u[1/@2cG2#i2o01121rr0)p1B'0Y1YM2p)2S524D1&I2dg1e02wH1}T2(r1nk2KJ1Ao1Ew2q?1:X27J2P!10o1Hc1E:11T1*C2Tx2QZ2E}2[21n11VX2452ei21m0/<0$P11h1091YA1cZ3R72N&3G81qs1s#2cF1CU1Pz2M^0=o1Y10o)2XX14612a2Pa2af33T1+[0jQ0*72040)42Jm1e*2sE1hY1N?1[K17a21c2*72Nb2sM32/3V61d]1XV0@h1EC1SL0m%2cs1c:0@:14s28w1U30lT1][1p&1Gx1kf1}C1m23Hr2oK1J&1Um1%02RU2q31MC2ed1:f35*29C1'I20w1!81BS1*a2Lz1?91LU2dP1ZV1Qz1z813X2){0%m1u91Iw0{T0qG0=+2i/2W[2O;1G)1ub15,2HG2Ec0r01f11^c23X15<1J}0f10[C2i'2+12OA2dr0(D1kL2T921R1Kr1(G2{r0xh26:1Li2Iy1D%18x2&a2qb1HH1kJ2;u1#T0}w1?,15n1jL1?S0>M0;z0s80$)0E1OH17^0wB2qJ1+,2WY1L422s1Y@1Es1MF1PR1C80,n1130}'0wG1O,1851Pc0k,1s61IE0}>17313K624k1u11R+1c}1q313e0cb0oh0xG2*]1YR2p90(00$@3Hm0vE16#0iD0mZ2P]14t1zU1oi1p*1]R1m*1tx1o'1}s1'/29#2aJ25d0cr0zE2r<0(K2j{1#51n*2d22Uj2A50gQ2Os1o&1lU1P:2W,1zf1N127I0lt1w;1Yy2Iv1V=1rx1!@2xn1*Q2Dn1=E1Zk2h22K41r*2!!1Sn2PN2Mh27D1(T2cV2[V0,020s2D$1Fs2BD1fR1V{2b]1mO1RF2Y;2tK1':0/v23!3Is2ws3F82L31Rl0):1kr0R]2$f1=e1iD26$2762i^1WY1kN0x029:2[Y30:1W*1zI1P02]40%i0+r0u=2Zr0!n0kT17$24=1'91h'23W1c32b51xT1^918R1q13L51!N37d28#3L(2?A2#r1g:2!a1SE2]'1(u00<1It2*x0])1Gs2O}030b#0aM1i+1tO1D918U1#p23Z2fN1A?1QQ2G%1$K3V,2E^0z12u#2?r2pz1kP1Ez0^s0gV0oW12@1NN1P42ww0{^1X70d[1D]0%P1md2[00TX0uF24n1S]1Mf1k72%x3TO1qb1&116F2ht1UO0gD19d1Il2QK0[*2RW0+x0>j2th2jf1DV1IS0y&2>e1YG1ah37O1QY1Nr0gk12j0'w13D1)j0;>3Aj1k{0!i1ln1(q1BV0yP1IQ1Fz1$Q2H&2Yj1+y0tO24Y1Jx2vF1I30pR1Pi33G1>10p?1G@3G910@1Kn1{>1:A1Dx1iZ22F2C,1c00%n2Di1}J1dR0'11gB0p{0(f1yY0d:15q0/w1qU1!Y1D{2pC2pK0}]2db0:<2KR0(q1^;23,1'r1x01mJ2cn1NI0%12T@17s2Z'0mk1/d1qi2dv3OQ1yW1xh1tV1#61kX0{00!!0>s1dW1;(0bM0&<1qI2bT1lk1'W1U)1,+2VQ1E{1N20t*1l:1W%2wW2s/1GU0$$1K(2*i1IX1ol15T2F}1Po0lC2mV1Pf1vl1*z2YH1'R2PD1S{2E015J0{/0'70[Y1F>1*u2+?1Oi1Rs0!o0x[0Ta0bV2*m1zw1k,1Ru0az1YZ0n[18V0l(0!t1F@1I<3G=0%j0::1T)2Z}1IA1dA1[a12q0'A1nN0'{2Jc3D33F'3Da2JU0;^1K<0rt1!2FD2+R0:A20d2Un1z22Fz2T52Wy1%j2XB0?)1+p1>X3W[1Of1I70ew0nT16a0$[0sW1*%0lg2Po2YT18W0(w1P&15%0r;0ta1(a1:K00>1^w1{F1K70'^2k;1+Q2^@2Ce1n1JF1/k2@s0^d1Y^1kA0}W2GZ1+h0z&0Yc1zA0>a13^10w2Wa1:p1QC1id1(<12P1@J1(60(!0vo1kk2S(0$r0wH0e>1'c1HN2BG1g514f1vc2i*1g[2W)1+91PL1W81fp2BC0wn2j=2@*2Qo24m1t'0>I00;1fb2321qL1Mg2R32Zw2>$0$c22d2ie2N81)>1lI1JG1Yq2]g1F*1N(0[v2d{1{)1d#1jy1>o1x>2C}2CE0@]2B:2$x1Z11^61oA1A,2/N2,B2PG1ac1}g2jk2AW1(^1CR0$}1k(1Rv2MA1=h1wg3Di2kD2=(14@1Fx1]l0zw0!<1[b2F,0=91hh1*T0's2g#1Ua2Yg1dK1cb2]63XM2YX1xx2oT1Rz1EY0>m1'12^k25n2!e1tJ2Ex3A;1G^0@E1bI2Q+2E'2yN1ij2Y12HY1S12]m0rT14C0r411U2932l00zd1+*11r1u}0=&1jc1gC3Ly25%37r1j:3S[1cT1K/1d32I&2b!1pA16S2pu2%w1[L1tl1L?2pi0y,2:40@?0'@1g*1)C0=Y0j;2N}2Sy1H518*1}c1XL1,D1Ph2wI2hH1l71SO2Mz1Nb1a02Dr1nj1]@1zE1/E0?^28i0n]1Ky20+1:L29Z3Hj1]o25=2{Y1#e2md1}01lR2$w0[:1r#18<25Z1U$0/)2#o27b0}t0r816I1QW1w&2l214J0=@2am1pM1P21e,1hz1/81?W1$52KI2[,2js1P122(2dw2b%03Ae1t[2JE1yx1J[0}l11{0&(1Tp1Et25A1D<0w10)x2F^1/)27p2bE1D@1nR1XP1yf0sU0wv1$v0lD10Y0b<1g<2x}2ja16:1^z2cL1n61)g2V(1*W1BC1pL1ga0wY2Jw0{J1Pq2=E1Tz25<13+2%K2J>1/?1?M29z2!Z1Z>2PJ2MX0zF1!?0>F1H]0}#0'R2PA0h21&@1,62fT2(q1bR2^q0:W1Ld2f)1HZ0@C1&61DI1mK2U'2pw2L)1LH3Be1(v0>31AE1cS0[31Uy1+C2f,37t37/1CP1R41yj2%S1)@1GQ1st2Nn12y0eS0jU1Qb0fx1Mk1H^1]A18!26v1BZ0+P1#21GO0}T1qS1Qr1>b1nm2yF0>}0}70;;1ox1e(2c+1U]1+U1Ih2i32T<0Os1AF2Py0u]1s+2Bx2:21FU1Wn0(%24>1ho1dO2mB1=B0cl0>k1]m1jH1Lj0jz0q21{42n{0g71P}1/*29M18u20'2iS2n21@L15K33'1/'1x#2Zo1D,14E2AK2Mo2Pp1:H2Ug2ap1u+2Sd1bL1Ov0Qt24d1/,1@s2[C1/o1741G+2Zh0[;0@m1,P2V]1a#1ta1cG1rt2IK1Wb24!1uJ1[M1hg1&$2M$00:2n32*d2[82U%1ql15p1EB0)U0mi2Et2:V1e)1A@2W61BD27u0;o29i1qM0/%1lp0:;1#m1h/0rK1hU2J52251PO0]O1r1@C21b2YP0dd1&&2%d1'G1jw1j}1}p0;*2fY1Yo2PY16h1qg1!C0x90dF0kW0kz0rm0hb0yQ0l{1Jr1f@2>n0/*2,s1mM24B1u<1i%1Qo1Xd0%b2Mi1I41D'0;81C*1s]1)k16o2fO23e1RZ1DG1$!0}U0#90@t0+X1XW0ve13[2wh1Tq1@z1VI1SM1&71*[1q]1ck1UK25g22626y1xK3Ea22e17H13]1D^2kc2U41uf2NT2ZT1a+0p31B*0}g0x318y0^=1jP24L0;M1ue2hi0^k2;f1pU0o@1eX2N)1d11270&t1aK1Wp22n18B1?H1Su1v[2lr2rX1441Js23p1%K0&?2{o1f]1Ac2a52H80}N1qm2VU2Q&1W40]#1V'1Z:13f1Ag3803EO0ix11N0[]1S}0uz1CD0^E1/[2MM18i2mD1N:2571@m0tr2,v1;S0wh0p616]20g1XX0v:2ZB2^h0eZ2WD1!M2J71%:0jo0re1$u1m11AX18g2DB22=15d0[G0#X1y]1EF0)a2j22JW2K!0'e2KH0i71A>1F^1p)0?r1N%1ZX1JL0}K1$B1!T3KL1=c18813%0ad0W22<&0#20l10@s1z11#r1@10?g2Qt1QM1Kh0;:1cl0#:2N?0nR1^q1j31,&2aF2oW2#:1gP1P/1AJ1H)1VM1+$2aQ2VG1I;1s^0uM0[q0+[2f80q%0@X1r)0&z1O>1$;1JN1*e1nY0y;0$!2=/2Uy21{1^:2kQ1<*2XM1X20uv2840>90}/0:b0?[1BG0WQ1>d13?18e1O;0m^1w/0,42S/1TJ1JU2D/1}$1BJ0td2U]20G2#22K11:;2642Hc2y$0tI0e10'z0m<1Cd0=*0@R1zQ15I19J0yH1u'0$o2K526<1]M1#Y1L>2ji2Fw1g80f!0to3L{0{z1bS2l[1LI2{g0t<0&w1[W2S]0?80oM0yT16z1Qy1ld1gb26[1c&1h)0#L0y72G?2sJ1fF1qJ0hc0v31PJ2}51(t2IT1pX20=1'Q1t;15t2U(0{90wE0y$14q1i*1Du1uO1*&1Y]2;51vw1Y)0{Z1't1]W1fE0;L1Bh19C1W(0f:2E{0$L0#<2cP1)$10&1^!0%A1>B0#p0*01P*1$X1nO2qw2(o39Q0]}1a=24(1Vb0>A2'91Zi0#b1t}1F+1:D2m81K{2Yw10'0ts0q>0wJ0y)0!^1;H1861BT0@+2lM0{52b#21P2r+0/V1?o2Sm0ZK1*@2Ro1TB0<00t{1Xu0xi1YK1?42b91v+2{&2s90uH1Ge1)s0,A1K10xt15a1{#20A1mh1ly1th1F&1UX0][15?2a01f[2k'2q[24x2Rl33o1bF1P61}:0)e21g2B<12B17K21M1JY1mY1Hd0&o1xV1Dg2912#81)81Hg0^:1QE0u#1A526b2FX0sX1Wy1Jt2}u1OE17X1w32#90y>0;(27k1eJ0{?1r31x90jt0@N1Rk0(k1Kl0Z80vv1EQ0(n11n1ih0YG1Yr0;P2C#12H2eE2M/22C11'1]f2/#1Ks0rE1K]1r{0>C0]b1yi1mT1};1&:1}'1K$2Uu1vG0*K0'32ox1rf2(80#l1W^11o1%G0l'2g!0(]1q?2Ag2Hv0/j1N)2Im22z1V72Nq2P$2uJ0ug1XD0ij0pG2;i1*d2DG1uW2k00jF2^>26]1[/0/R1>p1M}2O%20U1:N2JI1mj2hP2!51[C1E81i]0=12zb1AU0ti2=<2Lt0+d0,{2Ms20737n0w]1CB0),1y(1#,1uQ1X11Tm1/n1eo2Sr1YN1,i0}C1C11C^1$i0b(1Hr1dJ13m1L[1QO2/10dN0{K0+i0&61;%2N91@{26&2b22Ey0j$2My37;0cH1hM1/O1YX21e0si1<[1Q}1Ut1?%0lc1*i0S!0i}1?>1Aj0@*2r(1n>2Er0mV0eJ2w2II0eW2M#17/1Ss1ng2HQ0cT0yc0cE1gi1i?0f]0f41Hl2Zb20{1YO2yQ0nI1VY2kO1+V2ke2U[27U25h23(2xQ1>Z3Br1Yc16m0f{0q[0tW1Em10<0pO1nW3H=2tD0zl1EL0>i0A1[T1h}2161yC1il0eq0@Y1jQ0rx0bp0vm0;S24p1ty2zh0z!0^w1?d1iA2Id0jh1@}1sO0qU1Mu1#c2TC1a{1UG0/T0+{0tK0b/1s70Rd0$M0#q1O?2Od1rl2AC0l!0zx0xZ0gq2f(0z;0'E23i2qy1%!1[N0Z<1g41Iu0kL1:n0er19m1P'1&i0:829j2Zy1CA0n51FV0WW1FA1jR1:G1q*2Hq2iq1],24O2Dj0Yg0Tu0TF0Zz0Xx0!;0w*0RM0'x0jw0%e2OG2He3Up2[]0kH0+70@<2400dq1]a19,0m12an1RN12'0[&1Z(1,Q1d82;J1i'0gb0l,1*,0Y$1k^0?10ra0m$1$p1[01+K2C;23'0S?0sD0%$0;j0o{0n628e2P@0h=0v00u;1Sk2E[1:'0ke0we0Yh0yw00,0jp1{a1jz0gW0XR0e21al2/<0>y1>^1@@1op1H+1pN1E}0]w1z!0=t0g*20a2!%0u62a{0sJ0P&38k0z*21(1h&2A[0J&1ed1h@0iT37V0{m1Gm1R{1r'1?81Cv0Z:1ts2301V82Cu1'?0)91?N0gH0ch0PI1M'0dG0jV17[0ik1yH0oO2n>2Zf0j80uT1wK3291mc0kB0e;1E20ae0<&1@)2Ry1@O19e0^?1yB19R1@c2DP1i<0;B1vT2}!0ZG0Tx0K?0wC0RV12Q0m90it0cB0ci0*y0QH0ea0YC0oX0qc2ud2lb0^l25V0;D1/#1S*0rL1}a1(J1A21yk0{p1Ox0TM1Zz0&K1E<15z0pP1p[1l?1U/1I:1w%0kU22K2pt1Wu2Fx2IA13S0h40S>0dI15F2b:1EO0W92GF0cW0YD0vU0p70)%0b31O20lU0#u0[{1w[1EZ0qq1gw0lx0?L1K>1f82AZ1c'21@2QB0W51j<0fq0XP1VJ0kI0',0hA0c^11I0m40#61+g0py25F19X0v*1R)0a+0fA1Qs1!O1bi2]x0/!1t{2C%1UM1^D1m<0!p19I0*42*>1k}0,;0[40li2eO1;^1>a2nQ0vK0oD1tb1$M1sD16>22O2F;2fb2du1Co0Uo0100zm0iI0>J0RN0)}0)f1)N1zB1SQ0R&0x!0TN1I80YE0Ql1F41yM2U!2In0jZ2c@0h(1Z80}O1X,1He1*^2Mm0tT0hk1I#1,028d1s31?@1/X33E0,*1sS2r*0r62KK1pm1*>10A1U;0cm13W0*A0s92()0s41jZ1HA0Zv0(>1AY220x2dt152%@1B92cQ1i,1*Y1L+26M1Cz0{12WP1jv0(J0[=1QZ0n424E1FB2Q12q21(l0&'2),11f10n0s?0jC0sd29w2lw1Fp0^>12/1zT1I!2oG2np0$B2WS2L+0iy0Oo0o*0UR0({0Xm2N^1T?2Is1d{0z82fq18v2CM0]n1dg1@X2IU0ym0R1%q0Q(0Th2A<15[1lo2590/70+10#W2:;1K;2L{2wC1L!0mX0n$2+%0q]2hg0QM0V}0pL0xp13r1K310d10}0](1T@0k$0cX1fP0tA0%U27{1E$1d)1>>1yU0#32>B1,f2u701L]2Fi1;l1Rp14v0bZ0f50:c1GH1Z)1Ex0,81at0;]1>V1A61Gc0vi0Sb2If1570yd0*@1*R1IC1YL1D70/o2K*2me0nU0^}2hN0zJ2d!15x1=L0sq0>n1:h0S;1c40oR1Nj0jq1rM1aR1BE1ON11w1ad3Kt14]0@^0]<20R2Pm1jB1L93KF2m'1VN1QU1xY2V)2m)2Mk0JT1Bs1GA1I90zI0j[1[J1D30tJ0,e0wb0zh2oH10b&1C$2gL0>41Nc0ud1Q(0s50*B1VR2!S23y2Wb2ul2kz1Gn1]:2qp0#=1k;1I+0rG0eK0X,0R?0af0ek0eO1sv0?k1av1$g0!w1A{19U1N<2P;20z1#82+U1+c14:2Iz0<}1]q0IE1H}0L511P32w0ls1582M(2pq1[f01!W0rH1ZU1nw0sN1X#1M00qm2U^0x<1M@1?^1&1xP2&N31&2bu1JZ16T2eW1pS1&*1{d1!90*i2IM23h0U+19i2f<1bU0r&0&21Q:0rg1AR0x*0MS2U22tn1Hy0=E2xe2^(1oh1n/0gx0}^1c{0se0>t1)42Uf1A=1MG1Og1901f41,=0,f2g[1a}2#/1D>2QQ0hd0=^00xu0yJ1*j2J11x:1%m1OZ0f$1>S2IV0<628722m0;#0{h1a814=1t(1n:1Cs1Zb1DH0#427Y1g>12I0qK1D=0'=1*U1S(1T{1rN1Fd22k1U02GN0or1ea1150nm2Rp1#b1$22M[1*'0^M0^O2q^23E2y'1Ji1xJ1^]2?*1fk16u2Jj30%1F81*t0121Z[0d]2kE3RH1Ps1Kp2UM2171L#1a!0{&14b2o!2YA0p%0?u1OF2?N1}71J,1'*17,11913n1Jn1EN2@50+u2GH1,{2FR3S>1r[1W!0f&2LU1UB1lN16O12Y1$c23A1Oc1>j0pk1fJ2Nr0Pt27!1wk28v1(Q2CF2jE22h1{u0p80*U0r10[k0il0lZ1y{1z'0eP25m0U^20q1BH0Q/0=]1#X1eF0up0l81W70ib1Ay0[@0]Q19&1gW29V1[e0*o1d71[G1)U1V$1v)2BK1^[1Hw1YC1[(1mH1Jp2Q91Yp2222{/2UQ1OG1i&1j+0sv0ui0t41UH0{k0%M1qk1pk0?Y0@80{a2v/0)j0WO18m1jm0]W1k*1M[1+]1{K1<,1qP2Y?0?}1NF11}1{;1i42Mj0<91Cp11d0<+0,#1H10jd1gk2El2qD2R;2Tn1HJ1%p1FW1X'2q91LA1bx22G0Ty2LE1'50Zi0^$1FZ26r0%{2NQ1,'1de0y<1ev1Zm1Lk1QR1#G1z617f27T1tc0;C1PM0nO1hj1nQ1go2ft1Gd1Tc2%]0rd0Z?0S&0i?0v(0Y<0k50dY0ag1Vl1!E2J]1wa1Z;1#g1y%0kf1)h2^/0*u1mn0$H0j93842a22kR2S}2J<2DI1ys1(E2eT1dL2++1S/1cJ1Ap1Y+0%%2J:1!g1X80131no0[(0a[2h?2we0he1jq0=i0&30/[0nn17O0:m0@=16B0@H0+*25O0ng2Rw1=r2N]1x62^d1NJ0r92I00*E0i+0wQ0!k2Jq1#?2G+1C90[I0!M11i1}]1:31wE0WS17(1;F0zt0Zc1R52*b0hJ1sH0ZB2C<0)Q38p1vq0;10&k0+40}11%Q0tB01S+2L:2(41&m1Az14m1242oo1P+0*W0{F1LS0/h0vf0,/0la1!B1/42KO0sF0s72fm0p:0wj15926z24z1kc17Y1:513)0:X0sw0nS1sb1(h1K40cd1ER1*21?{0l+0Rj2le20}0Y%0}*1&W0X?2H,1)60o>0sx1(m1c+0,M2$I2!q1Y52K]1:{1]20d/1'#1rW0wr1Do1KE1li1p822j0m*0qg1DP0%D0SC0o41z)0rQ1s00gR2mE1mW34A2Vh1;O1Ba2+o2P:2@A0zi1HK1Wh1gD1K92n/0]&2$A0p}0pb1mQ2z#1GW2qV1qB15A2sd11=2VL1JJ0im1p00;{1zN0qs0{[1q!0$e2Ri13o01@]2EE2%m0%}0=S0Wg2K&0$z1R?22LV0pp0($1Xn2Ch1j=0$d0zj0}80l?0<:1*f0wz0m[0e!0&Z0[M14V0/H0tX2CI12&0(M1N*19!1^20ru0r<0c90w#1/b1K=0ph20*1iE0R'0dL14}0v62Bm0#$0#g0o[1{]1To1LL1D[1H61L02[E1LV2Hj1G{2Wh2#m0;f2l@3M/0x72Aj0)E0,p1;42oA0Kj1hK0$s0!20tG1](1ni1*l1&+1KR2*=0qS0gY0@U0*P0{>0&i1E!15&0jr2S$1+I1I(1Vg0[F0xP0?61SF2eK1H@1Ft21$2C:1J920u16b0(I0t,0@>1+z11L1BU0w$10N0Xy0$21xl0c'1J81oz14h0+Q1]i0rM0)u0h[0b413T0+C1N!1B#10q0tg0fN0yi0{Q1310&r0n%0=Z0/e0q;0'y1aU1vF20X1Uf0kJ0#Q0YA0d@1o,2m31Xc2Q22n#2S%1o@0+M0ty1v]1NK0'!12u2yb1dk1Wj0rz0,i2nO1rZ0z(0qJ2gd1Oq0g,0wR1N]2Ji0:h0ig2cW2i%2Az2CQ2Qh1Gv0[)0$30&Y0sA0/Y0+H0;I2Ph0!314K0]B1Ct1Dd0Re0+80U20}e1gh1^#1hO0$?1y@1F;2EL20<1HV11E0gc1]60*50ap0N41W;1Rq1E,0y40T811Z1+/2TP0]k0(,0Yx0?x0>f0ub1T>1D}0/W0gs0}b0m:0aq0!H1s11or0k!0$/12K0Wk1uZ0)W0+D2GU1#w0tL0Rz0?F0St2o^0w%0Zr2Zk1;{29u0$f1)92Zc1vU2I=1&^2h)2J#1jS1$j0yA1f/1Q725J1p@1T40,T1'h2xw14#2kr0!u2vc1]D2H?0+l0sk0)v10]0+v12c1Fq1?v0$<1Tt1)&15b3Jk1D10&N3Av0v81/g1QF1=j0^R1E01,x1A<29/0VA1QS2R$1Ei0!I1Ln2JQ1iB0<0:&1,U2jp1=40!f0UQ1B11^u1970?V2DA0TK2gV1Go0H{0,:0nC0UG19*13M0/f1Pb1GX10x1'D0I[0es0sr0Rh1GM0}Q1x81500e}0S*1@Z10I0141De0j^0o;17g0Z/29225/0NY0=T0Xc36G2Ln1+}0eb1O=0*G0{60h81Zy0zz1(V0IB0ov24U0/Z0{u0g&2a^0w?0Z217%0/P0+s1oK0^41ak0)!1f<1)q0(L1wS0fO1t!2Hh2J;2F&2f224Z2jY1x?2oZ1GI1Pw0/:16f0+60#v0S10jg1hv2@;1lz1Jd2G60hi1^n1/K0ce1[u2DU2g61X+0n{0[D1%/0MG11:0sY0mb1&v0W!0Nu1{,1A)26H2Nu3S=1Gi0N#0r*0;d0^{0#h10)2G(0i81Lb1rQ1e$28X2FM1er0Y>0Yy0,%12bI1930Np0?#1e>0O!0oE1B517o2f90h@0]l0Tz1xe1NY1t92P233$0@;1Yz0%l0*;1R81Sp1$H1x(1+%0sO0(?1lK0ul0N$0aV0gZ0pr1is2e;2Fo2bz1%?0oJ0Z(2M51Ng0^&0w^0R*0V&0fB1JH0+w0,q0^J0L60]m0Tw0Wz0bd10?0rh1B=1Vs0#i0}h1kz0'f0:*2:<0ww0t&0dx1s50J,2St25e1'g1hZ0(80z}2wZ0)n0+;0q90oA1sC0Wt1Ha2oi0bt1V/2@10?y0wM1Q80gX0XD0o00nG0>@0Xz0kO0+y1c%14$1AS1c#1Y61DB0?$0vy0X+0Mj0hR30312g0=[0P{1i[1jW18O19>1EK3380ip0XW0={1mp0,P0qx0qL1Za1i)1q)0v41i{1GY1Zu1oa0b!0LQ1o!0T/0)G1E>0mc0=d0W?0P>0Gc2J20*v2uv0Q10[r0wN1U70vM0g$1Km1Kt0n>0*60f80p>0,b2A70iM0G2C'23t1CX1s@1<]1(U24{1&[1em20O0]Z0,c0oi0h]0;U0UL13;2#A0lV1]N0mF1=M1i;2G819A1La0%'1>21R[0%50vJ0&x0@L0lv0UV0uW1<<0de0PU0^51gL0']0th0UM0#T0iX0R/0WE00't18F1Ms1V?0*s2lL0UH2Al0X(0^/0o10Pb0w&1h*0KX0d60ji1Fk0P40>*1DD0WF0Q=2sA2s<0%N0c10uG0#@1Sr1[$0Zw0lJ0,L0xn0cc0:]1cU1J21oM0um1pb1h81N[1Ny1J41&j0]01LW1m00X@0k=0=w0V=0/51BX13B0Hl25c1VT0fr0XB1?T0h;2k81b411l0s>1qx1w<11j1HU0ma0!T0J%0Gy1PY0w70u'0$'2fA26>1kl18p1Ey12[1NL2yD0^912V0lz1V[1@E1Lp0b[0k%2Hb1K01Vm0+R0oz0e)0n}0t50VW1^j0W60^A0hf0/r13U0/?0#,0tP0Y&0gg0]r0aF1IU0#k0X}2:'1nL0yW0n^0=N0=(0)A1L$1('1ro0#w1Lx0=p1'f0@q0I,2bw2OS2'#1$31r%2fe2T$1Am0uw0n21kx2vm0tb1sd1;21E]0zQ0^+1R*24G1ig0^C1O60)g2JX1im2+v0j20,U1Na13E0n)33P1'w0pD0Nf1?Z0'r14<1>H17j0n(1lr2ir0RB0;a2CB0^m1Pj0yo19F0<=0j&22<0W@1+X0t(1uF1ZW1zo2Xc28m0*20s;2ya1iQ0#!0!?0w>0$J0>(1c90l00<20?]01A/1SS0U]1N^32Y0i<0j31za0bG0b}0{C0/c1%[0aL14S0Y71630:#2[40]d1Up0tQ1180/;1BQ0!81F$1>t0ut19f1W?1y=0)B0>)1=m1!F1)T0wk1)J1vs0;b0zX0iJ0W#0qv1IF0t737h0rU0bN0X$0#?0h:1:U0[h2^$16w2IQ0YU0eQ1l02}i1Nv1X)1i!0>T0&u0O50WA1td0<*1)H2c81ia1{B0Xq0RC12}1a:17h0ol0Zt0V[13,0nD0!E0ht0]e2$/0p(0=P2350=u1IG1@#0>b0hK0{P1Nf0jx0%x0k00Ui3C>2{>1oG1}I1+e29A2FF1PB0]R0w)0)'2e531v1U}2X70E}10:S0l20MY0m(1l#0^Y28k0y+0Wx0s&2(N0eM2to0'20>P0'>0*L1Jl1c(0:(0=}0)k0X51dl0=e0mC0t00*q0op1#N1wW2?j2=H1tp0vq2%c14Y0>51@g0b$02L813v0:21V90&=0!$0v11RA2lc1P=1^'1g{1yP0e61NE1C=0:z1f#2eR0sy0r#0=k0vc0gS0:00{f0B%0Tm0GH0YN18w1S80<;0*$1CY10/1AC1pJ1M#0^h0;X1nI0]h0jM1dS19n0%41cA0i90at0c=0Wb0P,1RV0@b0y@0!r0X12A,2N{0fP0yR1y30*d0(x1V^0Pc0*a0S(0L?1Bb1}B0?,1E/1S=2rB2O+1!V0/&11p0&P0r+1WB0yg0!:0[J0WD0ec0PS0dA1QV1TZ2Wt1+q0cN2im0Vr0Wl0%W1WJ1,r0w/1v!0h^0,V2H00s*0c60hE16$0le0qa12C0r(2O#0aG1ne0tk0xB2Qk2#I21q0r=0@u0pd0xc2h<0$K0Wp0LS1Q$0u*15@0l<0[01J?0w[0nE1$/0D)1ae0Qv0rn1<30f}0so0(51s<1Oj1H<1a&1Qm0Kv0$60l)0>Q0Zx1dD2A10g{1s>0b:2SY0df2tY17y1pf0;921:1L;0w31BP0kv0Uv0a;28@1Ej0dg1^x0?30dR0fs1Bi1Ip0eh0/@0>w15f1DE31s0Z)0xJ0z:0sI2EJ1Mx1wX0'H0!N17J19O2JA1(S1O!0'D02QV0yj0CF0Wc0bq0mL0C=0DO0T)0L;0P81p>0QZ0O'0U&0hx0g;1pD0*:2a70}y0el0/S0os0pX0k318P1ft0%<1>g0X^0v,1S42KY1uK1w^1G61fW2I51dT23k1l,1W$2oP1Kv1)R2V;0U*0&U0,B0+E011!0P%0Vg0g]1fN1420%71Lu0ny0#N0+00$>0Vy0]D2Mx1>N1)%1H:0;42W<19:12L11DK0=q1;I1=D0WT0g82G$0Oz0PJ0OV0%/1X32ex1J<0m]2DC1mP0)?2yC0NZ0Xn2pf2I)0nz0sz0c;0Qx0M;0oj0%+0O{0U?0NW2R<0qw0sK0#%1eY0m,0n/0bO1fc1!G1on1Nt0+A1);0ie0{]01615N0v@0Vu0Pv0Wy0r70jN1Q@0O*0gA1e+14Z0f%2XS12R1M,0{{1B!0)#1tz1wm1QI1ib0)y0D0iq1LQ0cz0z22d,1R/0Em1n32+<1O(1LX1I00wf1gN2{60b70+F17M1p90/i0e/0h#0!j0^72L71?w2Ml1K'11<1K}1Ah13h0]:0ux0u,0>G26B1GK0y]0>#0:I15u2UC1Fj3EY1KS0'O2U01kh1ao1F!10J0&H1Ff0@n1A70+j10Q0ju0aO1qr0Pj1710T&0xz15'0mQ2pF0NA0Z>1F[0Qa0@O1$R0kZ1A80ue0#c1ix0hg1Yh0d^0y^1}K1+=0lO1Mc1S;0(@0sG10k0[/0,}0F@2@p1m+0mD14P0di0Q>0>60!&2Ds0jk0MT2h:0Hq1gO0Xt1zP1Sv0#A17F1WK1{b1ti1ZJ0#I0/g2B60d123l0zR0=B1Ii0V?0}F1wc2k^17]2sF0z30[90>h0+S2L}1f*0Ru2CR1]O3Cw0!z1P@0$X1%D20(1Jq1nd1VB1b[1M:1DM1nE1Q<1a?1tG0h<0pi19g0#50jl19z0WZ0=f0XG0f*0[T0OH0K^0pe0#{1Zq0VM1rp0u40]11Iq0z]0R:0>o0O>0a30b'0QV0y#17S0;0Ue0u!0?J0]s0w;1]L0:f17A2Em1g^0xR0hU2x<0QA0uX0#d0@)19+1mI1EH1@(0^r0(l1tS0tc0q021Z0v0F,0X)0k?0;'1;60:U0qM0[l18#1(y1C60ZY0^Z1%c0go0iC0Nw0j/0YB1Kd0fK0kd10$+0]!0I<0fc0cJ2Gx0mM0jS0uY1VK12W0rf0pT1K+0qd2MH17B0tu0(;26*0lh0,^1DQ0UN1cB0f317}1MB0/+1rh0Kq0Dm0Hm1hf0T?1^70'+0*80mW0ei0&y0du0i)21o1bg0V41&80ne0]z0Z^1'M0PV0y00fL0Uj0i#0zr1Ux0;O0%R0@V1X40Fs1Y{14[1AH2q0JQ12M0q&0=41cm1KO1lD0!A0L%0ga1Z]2O?0=$0^S16X0q<0o:22I0kR0Pw0Pq0Qw0Kr0Jb0PE28M2H11la10t1#40o!1+x0ZH0;?1Tu1iG1y$2nA1:s21]1tm1{X0f,0Gf0#K0Yi0P01[10rW0jy1Z@1Nn0aC0ed0oc10f0Lc0Wn0KR0,k0Qo0;k0oY0p#0y10ca0v#2Me1M1HL2PX0hu2(C1zW0AJ0MQ0MN0)h0c$0R(0MC0L,0MH1Qh1SB18}13d0qr0yx0(^0hj0Gk0YW0fY0=x0#R0+p0x?0kP0]t0LZ0MD15E0bD0o60G$0$g0]E1a)1x*0UW0X:0iP1wO1k?2N[0Fe0%o28L1aG1et0lK0bE0m{16J1B$0a&0LT0J>1Ci0UD0R50FV0c41J$0rO0yS0Ln1p40r?0Aj0IN0SP1wM0If0vN0/U0m)0K;1cV0yr1%21TR0K90+G0nu0oT0ws0g(0VV0@d0q71A(1,C24y1,!1ud2Px20J1s,1=G22X0xK0Mg0tj0EI1Xr2ra1uE0?21KI0zK0gF0jv0VF0aE0gt19w0*k0r)0P$0F#0VQ0Hw0Jm0Px0La0iR0H!0ih0vO0Z@0dP0rb0qP0cC1TC0?X0HF04u05#0Vj0Jf09}0AE0}o1Bm1ZQ0W/0dj0}R0)61UT1&r1#j0hZ0F]0N:1/a0P10iv0u00ba0N@0Bu0Oa1xr0qN1N626w1UQ27^0U@1720xo1771OR0/80!}1WI0=513P0$m2^&0xW0]U1Zh1V}1y,0[y1Z{0$Y1^a1r=0)o1�Va1Je0sZ1J@0@00p^0a(0Ux0j*0{41k60gp14n1O'0S{0WR1q'0x/0dO0rI0g/0%V2Vq0xl0jO1sT0K01g/0Ro0Y?0/a0S@0R11Sc0d=0)H0><0Q*16,1Q{0YO0bF1An0US1ip0B:0B&2GE0E20I60[X0JX0C&0x50zu0@30VC0cn0MO0IG0b,0FK0ML0TC0JL0I20PC0d,0dk0HK1kd0RQ1Ur0^H1<=0yD1^}0E)0qC1S50)X0+%0p=0/30+'0E:0dT0Vp09n1Sh1rz1zs0':0Q{1#P1{S0yt0&V1081SZ0jG0g)28g1*v0lp0}p2de0Ou1PZ07}0=y0*f0uj0xE0SW0a{0Mx2a=0Py0Y112*19[1x40>;0iz0kp0{i1oU09(07#0G]0,$0I#1%%0Y20{j0qn0QR0B{0VG0eF0y{1ND0Hj1:P0:P0Hd1HO0M/0T90a/0Yz1qj0uZ0I>0M(0c!0)b18:0R82a@0ZC0An0Zj0T;0ZJ0cD0tq0y!0ge1Wm1+J0k{12z0t[0bJ1Xq0}m0;v0m@0wl0<)0jK0oq0w:0<@0PZ1Gl0}S0;Q2L40Ib0R)0j]0Jp0r{1q+0n00m30s[0Y'0WU0fI0l[0?D1@S0g50kD1Lr0hr1q60Up0u70oN0QF0,I30U2Ot2PM1V#1?r0/p0tY1o81Wo0]G0[a2u12B>2K00c&0O21P70D02=80Xh0jH0r}1:^1H70e:1fy0G?0AY0Ol0B!0IX0k[0T21^r0m70e@18z14g0P+0>V0a,0@90e'11C1Gy1821(>0z,0yM1,Z0et0!l0/,1SC0kQ0kq0&B0:@0cR0r]0?:1R(1(b10C16x2N!2IH1u60vr0i,0jT0iY1k02c%0c20Xd0$51d?0K10,)1GJ1m&0zS0O90FD0S30g02n+0!X0$,0IY0M}0Q80Ve0Pu0r@0v$1aF1iS0*z2L50[+0@o0a70Oy0uu0h'0QI0NL0g90)q0bQ15g1u[1A&0[>1^K0ze0>B0tw16}0=V0HZ0ka0B;0K'1)+0Eb0bT0bH0Q70$90<<0aP1sn0MV0M#1L:1k80oH0]V1G'0TV0?P1Om0h/0mR0wW0@&11[0:B0s@1E*0eG0VT0YI0p90ZR0(b1ZD21z0jD0@e2:e1:T0oe0$0LC0W:1CQ1q70QN0a60?A0(E0[d0P20mA0YX0Ff0Nh0Qy0P}0a@0g[0U/0,C0H@0k61Kw0CV0EM0ou0l*0U30S40SO0ET0Ks0VR0T,0Io0tM0AL0Q?1f311s0Vk0#U1N31!=0d80YJ0i/0h)1l@0X'1q21I&0u<0N'1c21FH0E&2Ar0k;0Gb0ZS0Ci0N51B/0H}0b>0D?2NA0n?0T32Vy0W^1Mi0e+0r'0'41QJ1%r0r$19P0^01G:0R90;E0@y1u$1Fe0bx0d&2J[2Qb00K20zA0;@0Hx1r00ZZ0l@2s81AN0C!0v{0Q40{V0T*0u/0Fg1F<0tR1rO0Ec0fl1cK1JQ0Z,0#80zL1M{0}q0{E0mm1pK1(01Jg0iV1'n1Cu16;15/0Pf1eu24e0k^1nV0)70+Y1VC28b26s0{w0z?2/J0P=0XU0Ur12t0V{0Z{1E+0(h0Tq1220be1JM0uU1PN0:)1PS2c(1FE2W]0Q219G0Qp0e#0O@0/00^u0N[0Op0p)14i0lG1?20qi0nF0k/17V0yY0;/1pH18j1B60L(0kV0n@0kG0Z$0aH1ay0n&0pY0n+0BZ0Ic0@j14!1,0PH0ct0IK0gn0Z#0>x0o#0'(0YL1lj0Wm0Gr0o,0Zd1VO1[s0U}1>=1>U1@t1b90!B0VU0*{10g0*'0]]1p,0kS0qy16+1%$0Rs0o72SJ0(i0=c0pE0f?0/90T10bA0cL1CG1Uv0kM0t;0'00lP0Kh0Zk0U90HP0OW0aI0dv0C>0FP0Ey09;0Gs0Dy0J70hD0e=0l/0xU0uc2mr1^g0yp0+(0v+1^d1RH1Qc0ZT0,50IH1MD0Z+11x2Qn0#e1q02Dc1KY1i20rP12m0mI0sp1U90en0bf1E%0$I0Cr0?90xb09614u0HX0LM0!K0H#0fZ2?q0IZ0Ee0C$0M70VN0jm2TR0t10rc0p50?a0fa0a*0?B0OQ0HC0K#0F11l(0Ld0:'0vW0mS1+N0?z0>?1FT0C221*0J^0Pg0CY0Zs0?'0?70>g0d*0i>1Ce0[U0wS0XF0b]0e,0dU0U,2fg0KS1YP0WB1pg0X70fp0F{0{N1T;1Xf0@l0$11v30yZ0p&1zD1M10O:1ZR0e[0:,0an1aw1OI0un0uk0vt0cw0f)14'2411X}2LF0*H0}c1Zw0g:1451051Us0H:0bg0?b0B*0yu0[w0!x0*(0s]0h$1dh1+<0qW0ej0rV0ss0nJ2LC0xw0TP0R215k0V00TQ0S)2310R,16?2q#0j40Bh1Ki0VJ1X(0%F0q+0:j0}20p10:Y1(20He0rB1I)0WJ0xq0)M0SS06T0h01q/0k40NM0H'0PT0W+0aR0SI0Gd0Pl2hK15s0QS0FX2U+0+B1Xy0v^0'n0?t0dl0ys0/s0o=1>T1H#0FL0By08c0Ge0Ls0@B0Uy0^n0lq0#B0<[0nK0?N0l#1JW1Bt0VS2be0g}2Y@1/z1Rr0@'0Hk0ai0o81mF0Cj0T:0ZU1Q%0Ly0E%0kb0e00Q^0TD0YY0Ii0,&0170b@0S20dt1ir0?H0l%0!O1o90:J0hL0%Z0o'2I/1Bc0ms0%!0nb10p16t0lB1fX0#Y0$C0f[0)C1,a0=G1=T0Lh0@@1gF0aY1RO0q?1Jj0x+17k1>l0sB0*X0=a0F&0Y,0;m2VA0,t1kj0[s0zY0OX0a81n<1wA0l]0dm2/&13L2r10X=1#@0/O0UJ0fh0pm0=<0ZD2y{1yz0x:1]j1Zd1Ra0+N0FG0Z90Y)0xm0V11b00iQ0q^0ry0u%0?>0WK0[50y80p20t=0t]0u82=90=)0OC0OR0j=0W%0fS0Xi0eH1FP1F92o:1u01fV0dQ1P,0(21Uq0P]0j51(e0TE0J=0Wr0sS1dp0@W0Om0eR12;0GV1/c1Eb0W)0jP1U*0Z'09y0hM0&s0Yn0S51b<1GP0'I0Lv0DT0C10Bf20P0Un0P;0D&0TA0BA0S60L80$u0xx0H/0Qq0N{0'Q1ei0T(0rJ0=A0gN0Lw0YQ0gi1co1]$0q520#0ha1p20Mh0Ep0OY0+)07,12h0L>0M00?=0wi0++0Ua08N0TH0Zl2WO0SL2/A1%O0/m0U>0xd1fS1Ij0/I0Yo0Rv1VL0g11E(0c/0i10E*0q30JY0X[1ec0HG0j?09<0nH1S)0Fp0rr0i]1!r0Pm0ua0Ma0da0tC0?40Bi19?1TH1zi1G50q=0cf0c<0aK0!@0180Cn0Vl0;J0EY12N0J}1G#0dn0A:0)N0Rw0UE0s10c)0uy1Al0V;1RI0Ti0K30mj0qQ0ki18>0+I0Ka1!L0EJ0O61PF0M&0=l1=90wx1,$0cK1P;0Za0Ix0G>0Cs1DR07(0*/0iF0{W0j<0$h0w@0sa0d}0Ps0Xj0nw0aZ09G2qr0p*0F$09)0S+07f0h{1be0Mq0,[0580hn1]X0D!0bu0j60vR1Hm0e<0d(0tD0cM0Kz0190v>0%T09f08x0U00LI0Eu0c>0zB0j+1Nh0cG0nv0mN0vs0'U1DW0n30Pn0ya0QO0XV0V:0Xr0FY0aU1020*Q0w90LD0iK1{V0@Z0]?0mv1uj0;00LN0Ca0dJ2]c0FH0u>0d!0GS0VO0a=00o}1[I2D]1H,1m!0hN1J60H90L)07P1G$0Jk0<>0Mr1HC0E40vS1aY13F1rH0b%0aW0Sn0Mb0Jy08V0C+0HR0x^10h0hO0Uu0T'0V(0S=0RL11m0sg0oZ0tZ0l>1ED0/]1610av0lj0'50MZ0=%0ez0v50wt1n90F62WN1EX1Wg0J10bh0RH0bU0Ll0je0JR0K%08k0^T19Q33>0NT0G;0So0xS0KF0Al0Sx0(S1ob0qe0XK14r0jn0p01b;0rN0=I0I;0h10(90sC1$90o/0^30n70)^0>Z0HS0Sy0r21&d0Sc0V20V,0Ob0Kt0;g0Wu1w@0yk0Uk01A0o90s#1Z30%=0G{0eI0GT0HA0;20!S0)I0GF0W[0l40Ns1VP1Rx0T[0G%0ni0p[0'j0pV0%v1XR1Y#0?j0pK0yq1&51/Q10u0fC1VS0G80CG0<'0B)0FO08l0E'0Q$0LW1TF0[}0(j0J;0'l0P!0X/0gB0hy0Yq0Yj0Xo0Q+2AA1:t1CC0U41W90c[0(T2df1K*0J)0Ef0*R0mn0;s1TO0Lk0Pz29f0Mu0(y0wu0Yk0r[0c50dw0m#0wg0pM0@J18n0D,0,O0Wo00qz0R{0CL0Eq0Vw0VH0Bm0KB07N0%@0+=1Nq2=C0iO0Xv0G(10X0Qk0Qg0j)0zs0fR0>c1550Fl0'k0!{0ks0I91Zx0^80W'0fQ0)30i&0uN0dC0wA05o0hX0ar0p,0tl0[O0?v0f+0u12)'0Xw0Sk1#;0$%1iu2dF0dV0VK0s{0E,0Tr0X!2Z:1zd0A}0TG0Z40i^0HU0/t0DM0Zp0!P0)r0Rk1XE0F*0oU0&W0q10B80h}0Z%0'c0,d0eD1Id0Oc06h15]11]0gI1y^1F00)813Z0{@0kg2AG1Vn0}%0=C0eo07Q0y'0%20SY1V&0A20n<0H608y0kj17p0+J0!416G0UY0X80VX0^t0]*0d209Z0J<1+Y0/60Gg1/;0Tv0${0v}1Y$1$A0@/1#A0QC0Lf1Fl0g!0zf0P513a0b80fD1:w0EK0pN0nQ0vT0mT0H21w50no0ZA0uo0u20RI1Wc1ZK0Ms0bW0&80uh0Nl0B,0PD0EV0ZW0ft0h&1/10D80V)0C)0sT0Uq0KU1s=0K$0JJ0H50&]0mg0hH0DE1Sl0C'1&e0{b0d'1gX0Q!0MM10L0+#0mJ0$T0vH0V<1Pe1Tw0(&1W51GN0ep0H[0YK0Vb17q1/Z0?!1cp0dr1G/0&,1hd05f0U#0/y1rb1ct0u90j(0=Q0&%1A!0uV0Kb0do0GK0L40ic0B}1!H0#}1pY0C30F70990x@0$y01B1}L1GR1MW0Rx0Qj0e30&v0db0$j1u70c+0k#0fj0RR1R90id0l:0>]0pq0T@0wL1bG1=n1@T0H$0J80R[1JX08E1Pl0a#0/(15h1{D0U70zk0(#0SF1xR0Vc0NU06x1EU0U(0bb0S70+20lH0;$0sE1[80s:1bh0om0XQ0(:0^i0F80E^0N>0Q)0Nm14k0OS0<]0@!0{'0e*0)F0]/0Nk0&&0Wv0Yu0OG0Jc0Gn03m0C009J0L90G90Ju0G30Ig0X>0Vm1AT0ds11e0a}1C20+a0R<0*S06r0C]0780Me1a20Vs1BF0VL0NI0)O0h+29F0{q0T#0vd08v0RE0e70LE1Q+0C40J!0L+0890E50ZL0}+0L}0Ag07G0Cg09^0I$0Ai0%B0Dn0Ww0Z70sP1Or0%X0^U0ps0Jz0Zb0yy0TT0O]0V60sf27V0gl1Md0%Q0q{0&J0k70+30)s0WH0hh0c00#Z0Y90n:18{0w51QK1Nz1I^1?D0G:0ox1GL1Dh0D%0ex0To0Vh0IC0]50I%0Of0#j0lE0d40G/0Lg0J60]N0f90Il1/$0Ew1[+08S0ff0X<0z@0d#0Fq0Hr0i00Z00GU0T$1SG0?{0Mt0,J0}I0ee0ZM0$^0co0?%0st0m>0A)0jI0>:0#S1IV0UO0lw0q'0%&1F/0G}1m{0Ht0Hn14H0HH0L[0,10??1c^0Di0LV0l$0W]0;i0P315!0Sl0Og0Ie0S$0JB0M40OJ0Xp0CW1F)0Br0EW0AZ09a0M=0IR00a)0WX0bv0,Z0TW0$&0ZN0)l0Uf0%G05u0h%0Ml0S[0Q&0Ke1670v;0KV07)0Hg0M80iZ1Ow0S80sV0pt0Sp0F21>:04l0TZ1pi0WC0]q0gu18S0!U12i0y61[>0i30rS1^30a10!50Uw0O(0hB0nq0s$0t:0<319@0al0r30UA0B^0oV0M90E$19S0JC0j>02v0L105D08W1&}0dy06M0802Go0my09A0SH0EU0F00eN0Ts0Ws0F90Nq1910gU0>K0#V0JU17?0hY0t'0x60k10?p0RJ0W,0TU0U{0nZ0/=0P:0Tt0Qn0#[0q#0K,0PF0fU0IM0r:0{#0gO0rs0+!0W00,K0WL1p:0U51H%0Ek0Pk0Cu0H<1Fm1h90Gl0i*0BR0[L0Sg0*%0o]0fu0if0lk0PB0F}1]I0y:0Iv0?m0XX0f@0}<0Kf0Bg1Oz0NR0G'0x40Iu0GY0QJ0;50zM0f'0nr0Lx0S}0O,0u)0of16g0oa0CT0A@0a]0Mv0<40*N04D0A#1Di0Gh0G)0cY08L0gG0>00IU0[K0c?0G<0Oh0rw0Cb0C50is0PK05407<0A'0ef0IS0Da2890Jr0+K2xC21B1=^1}w1Bn1RR3I{04=0Jg0kX0Ds0u30ED0UP0gJ13310>0RZ0I:0T^07T0Gt08m06y06,09z0OT06009u06s05K07[08508F07H06@0j@0A&0OL0E@0B108204V03h0Bc01C03606t04I04306d04T06u04z0Cv06n0W&07$03i0R%08106z05*07u08X0B[04R06i0Mm09?06*0410FT06W05S06N05T09K0D10CX04K0790EN0ZF04f0Cf0DW08u0A807%0fv0C;0VD0Q;01D0%w0Q'0mo0GL08J0SZ09[0o<0Q[0!y1B]0!90pC1160[o0=D04v0BD0E#0bo0Gu0SQ0YM2I]0Go0E60xe0Tk0rX0sQ0O70K&0AU0D90E70G^0F!0Ej0920s!0ns02]2N711A0Tb0P90bI0QB0Oi0n'0@z0nN0e(0ST0jY0+f0500E30X]0HD08q04}25x0GW0eu0VE1$k0Ij0A<1Cq0W=0X%0H%0Nb0z50Rl0HI0hC0F<0m!0IA0590HL0BU0XL0O)0GO0Tn1gE0V90Lm0H70PX0H>0Sm08h0B712T1%]0jX1=y0LA0Ez0Cc0O00470Fu0N&0CJ0GM09@0CK0A30K[0J91#i1Av1np1Ix1SH0K509R0!%00FW04;0C?05a0e90J/02t0Ba0aB0C[0I&08@0m}08T0Iz0AS0L@09L07g06j1K!0Vx0vw0SJ0JV16j2dQ1ym0}L0iS06:0Jh0h!0^a0w+0gw0X90{80I?0g%03G09t1*n09:0M:1XT06P0CD0Z}0Vq0E(0W*0jJ0Z50L*0W<0xF0Gi0IW0mY0DU0U=0P60U$0NF1TS0yU17i0Qc0B<0Cz0*?0k+0AN05704a0B90o$09T0br0Qd0P@0Js06Z0D#0Ji0Iq0WM0/40D306%0rD1cn0*}1b@0gP0Kg0PN0d{1SV0UB09M12U0gy0jE03z0MW0J?0T40390Hv0=b09O0j70HJ0NJ04G12r0OO0,!09H0740CP0Ak0Q@08=0L#0Ph0Je0Vo0950tv1c*0kw0Z=0bi0Gm08P0)t04L0LJ0KJ0G40yz0Es03(03,0w20LR0Ax0EA05y0i50P(0F'0nB0oB0BH05V0KG0E/0ZO0Zu0QU0E[0O}0Hi0Tc0J[0R30DR0Bt0bX1OW0BI0D40bK0Co0Ia0UZ0D^0i:0SN0H31a504x08M0Bk09$07*08d0Dt0WV0X;0DB0&+06)0JE0I10c708B0h?05g0*O0&E07Z0C{0Lp0<50:G0(*0T+0Fw0Mn0I*0480Sd0Ck0y(0@K0o%17905{0vB0V30/10Ys1070E>08Z06605}0%f0Ao0M10GG0FE0B?0Bo0RU0Dr0qk0sc11(1O40Ja0O40GQ0CA0DX0T}0c{0UU0330FF0E+05L05<0W>0HT0cq08>0r,0ao0H80D[0Y!1NV0#r0AO0J@1CE09p02M06C0ME0uJ03W0Lq03n0S<08*0750V%0QK0Bq0TR0N^06B0My04<0VY06<0m=0Ug0Dk0bP1IK0Hz06(0MA06Q0B408G0Yw0n108i0Kw08C0)/0)c0L]0!#11V0D:0@k0I70O#0HV0JW0mO0s20%H09/0TB1830}n0KH0OD0Df0Ab1Ie0o20(A0aT1T&0WI0AT04j0i!1d90Pa09%08#0DF0GA08;0H40WG0Zn0O$05h0O80:{06>0eL0LK04J05c0N!0Kl0860D'09S07?0J#0IO0^K0M'0Uh0jc0KD0NQ0jL0q*0(/05W0v&0[z0bR0hP0}u0dp0%O0w'0Ye02w0m006707C0A,015R05i0BM0A$0PG0{D1Rf05'0Vz0J30oC13z03j03C0830N*0Bl0I404$0I(04&12D0Dv03Y0Fx02G03w0H+0M,0h30N?0Ze0,m0ZP0WP0Rg0X00uC0M]0P/07h0cv0F30e51fg1Br0DC0hQ08706H0L707l0$00Hy04)0K40460Jj06R08z0fo02102J01s04:08$0Ed0RG1Xw0Gw0Q31Qk0b00Ik0PA0Kx0^'1mX1Se1Cf0?+0ii1170h>0hS0C@04^0Ub0Yl0EZ0610Q50DG0nV0ER0N}0DD0Fy0Dw0+50UC0Ar0Gp0*)0NK0Eg0fF03H0490W(0HN0p]08H05M0{20880D(06v14M0BB0A00Sa0QW0En0iB02a0LO1W,1480TS0MF0I)0f(0MJ0&F0G,0Fh0nL0?&0cx0i60lQ0F?09q0dD0J$0N<0b90ia0RD0Xu0jA0^(0As0ND0JF0)@0cA0I@1VE0RP0Jw0N00G20T=0IJ0K=0O10NG0EC0GD0Q002h0BJ0nW0f=0Ea0R=08)06a0Dg0N30qR1iT07z0J+0Lr0760Mo03c0MP0D}03k0MR0H10Mc0Td0aj0C:0Hs0c%0LF0Rq0MB0kE0a>0PO0V@0XH0b10XN0mr04(0Mz05%0Dh05d0:?0B$0E80BW0N70Dp0d>0i(0LH1TT0xs0JP0Tj0ZE0^,0F>0Li0YT0M!0Kp09w0SB0Sz05!0C%0%>0Gz1T$1O30bB0H;0B#0J]08U0Fi0G&0F^0V^05U04b09X0B>0=60380Jn0PL0RT0@f0L=0N(0cP0qo02}0u^02/0Ky0R!01[03P0b20VI08(0M{0aa06w0lL0vn0Qz07b0AA04s07t0FA07c09P03u0N801f02d0JS02004A0D50E;06[0f>02i03>0A[0U80h60420Fj0370f^0p40Hc0M502K0a!0A*0AK05,0560a$01)0AB0JK08I0am0J:0DY08r0I=0300A]04t03D0Uz0Od0Dd02[0C*0AW0>z0Cd0K*0Tg03o0g>0dX03r13w0HQ0}s0GE03x0QL0Y30PY1$o03Z0Cm0o^06?0Us0Y40nl0Qs08[04+04%0Ir09k03Q0FN0Ny0Rc0Pe05b02!0DH0Yf03I0Iy01>0]j0F(0LB07/02S0Yp01!0hI0V/05z09{0zg07W03!05H02A0250Eh0CH06f0x=03$0Mf05/0CN0H^0EX0BE0M<04W0B50DV02,04m0F;03L08s02l0J50ay04!0Mp01@0B@0G*0Jv08:0N904S06806S0R^0KN0BF09U0EH0iW02D1Lm02x0CE0c(0LY07K06b02Q04i0P#06V0kx0@$03?04?0Bw0C}05v04n0I50#+0]F0'v0M)09x0EB0U%02@0At09v08403A02f0BX06!0H?0Hp0G@0KZ0YF0Nd02j04C0MK0JA04M0AD0H*0Nn01q01?0BN05X0Ac07105>08'07]0BK1az0x{0LU1iy0290bL03E0lR02%0Dz09C0Q,07R0q(0V701+0C#04E0G50In0Lj05&06I0f;02b02X0UK0Is07L03/01j06c0PP0Pi0JD07;05N06J08e02203)02z0520N=0B002309V02V02Y0Bs0FQ05j1Z=04@0770Cp0hv01X0^q0t>0A=0980A604F0A709Y08w0E=03s0E!0G008!0Tl0Fm1pp0io0F=0kY0Oj01y0Qu0F)02;0CQ07i0AF03}0OI0KE0R$0Nt09>0dK0720F50TL07>04d03B0#s12O0GZ03%0BV1A102*09r02g09+0FU0]c06K04k0GP03V0Ap02q0D]0FR0No07m04N0N203F0J*01'0p/0H(0j#09c0!/0&}0FB0tE0qu04c03t0M20VP0511g60%#0^<04O0AP0Fb0W70M?0Hu0CR09I0Uc0cZ0d30HY0Bd08f09l0LL0Ku0It0fw03#04X05m03;05O0Nr0Dl0Jt03@0Ne09m09d03d08}05n07:0(<0L/01h02:08a01#0K<06D0Bx0Ch0!a01k09003102L08j09W0Qr02^0M^0K>08%05R0%*09g03+08o02$0H=0T!03e06O0EQ05[03a06^07308Q09Q07D13p0Ay02R0BS0JM0FS0Db0I{02E0BY02?04e0Av0MX0Xf0L&02n0XC0GR06/02r03f0lI07v0HO06L0t?0C^0H,0D70U10NN0Ex04o0690S^04>03J0A102<0P70C<0BO0CI01x0G105A02+0a?08Y04h1kF0XA0t20bj0E?0o?09h0B+0DQ0Cw0940NX0%:07{01n0J(0Cl0De05s0Fc0X*0[#03M09&05P02u0Ry03407w0lu07E0LG03{0AI0GB06F0as0Fz01w02N06p0LP0530Qm0JN0Du0Te01$02'03S0BG0Be08D0CZ0HB0IT0K(0QX05k08g0&h01<0dH09=05I0Gx03[06+02F02s05?05w05^0S01Nd04'0Eo0on0OE0I00D20Cx0Ok03U0fM0aN0Ud0cQ0Zf08^0Dc0B(08<0JG0Nj09!0Pp03^0FJ0A>0EE0Ce0YP0Gj0oy0M+0FM0S%0KK0CU0fm02H0&m02#06q07+0A;01G0O<05:0Bv0F405e05x0Az06g0bc0OK04H0R60Gq0g^0M60Y{0Qh0I/0dE0Yt06&0Ad0D{04U0dc0C(06=0IQ06l0Ae0H)09s2A?05l0Z&05B0Dx0K{05+0Md03:0Lb0Jq07r09D0KL0HW0Bp0AX05@0E102O02B03=0ID0Mi0Rm0Q%0S:0T00fV0T50Wf0A%06X0L302=0HE07@0A{08/0Fn0G60I}0R#0J'0gC0H&0QY0R707'0Y=05;0g60C/03b0S#08+0Et02(09e04P0El0A/0Ng09'0U)02601b06]0J{03p02T04q04[0I+0Iw02y0BP06E03R03K0I80D=05]0Rp0X{0Y@0+?0Y}0ck02c04Y0OM03O0Ei0F[06Y0ES07n09*0Y*0{704008R0!e0R;09F07!0B30Qi0Cq0eX0{c0Sr0KO0P^0P)0Sh0Wa0a:0Fk02Z0[Z0BQ0AC0L!0DN0Q:0Xb0gK0Qe0ah0cs0Nz07F02m0D$11B0CS02p0R002U0ac06207d0kk0t@0qj0sh0rv0!b0Aw0Fo07A0NO0A+01P0BT01o05Y0DS0K)0W;0CB07X06'04p02&03T04r07M0G=04406m04#0K:07I0Bb04,07j0630Ym0Y50Z60Ri0W10Z]0c:05=07a0B=04]03<0Ow03]01t01;01c01^0Rb04y07o04*0KA0640Ct05J0K!0S]0Pr0L<0KI0Ss01l07S08p0A!0A^0G[07x07=0450RX0KP0OU0GJ02P02702801p0CC02I05C01H04{0AQ08b07e01I03N01:01&05t0A?02e01Y01}05G02W01g03507Y0l70hW0pI0d$0Z!0b+0jW0bs01u01%01r01m03v01R01M03l03&01]01N01Z01v01{01a01O01K01J01d01Q01=01i01z02C02k01,03g04B01L01T01S01V02>01W01/01e01U01*"}] diff --git a/src/SHOU.Launcher.Core/SHOU.Launcher.Core.csproj b/src/SHOU.Launcher.Core/SHOU.Launcher.Core.csproj new file mode 100644 index 00000000..0a830989 --- /dev/null +++ b/src/SHOU.Launcher.Core/SHOU.Launcher.Core.csproj @@ -0,0 +1,34 @@ + + net10.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/SHOU.Launcher.Core/Tools/GameLogCleaner.cs b/src/SHOU.Launcher.Core/Tools/GameLogCleaner.cs new file mode 100644 index 00000000..88697558 --- /dev/null +++ b/src/SHOU.Launcher.Core/Tools/GameLogCleaner.cs @@ -0,0 +1,121 @@ +using System.Security.Cryptography; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core.Tools; + +/// Only old, direct game log/crash files. Moves are reversible; worlds, mods and caches are not candidates. +public static class GameLogCleaner +{ + private const int MaximumFiles = 2000; + private const long MaximumTotal = 512L * 1024 * 1024; + private static bool Allowed(string relative) + { + var p = relative.Split('/'); + return p.Length == 2 && (p[0] == "logs" && (p[1].EndsWith(".log", StringComparison.OrdinalIgnoreCase) || p[1].EndsWith(".log.gz", StringComparison.OrdinalIgnoreCase)) + || p[0] == "crash-reports" && p[1].StartsWith("crash-", StringComparison.OrdinalIgnoreCase) && p[1].EndsWith(".txt", StringComparison.OrdinalIgnoreCase)); + } + private static string PathFor(GameInstance instance, GameLogFile file) + { + if (file.InstanceId != instance.Id || !Allowed(file.RelativePath) || file.Bytes is < 0 or > 64 * 1024 * 1024 || !ContentInstallFiles.Hash(file.Sha256, 64)) throw new InvalidDataException("清理记录无效,未修改文件。"); + return ContentInstallFiles.Literal(instance.GameDirectory, file.RelativePath); + } + private static string Trash(GameInstance instance, string id, GameLogFile file) + => ContentInstallFiles.Literal(instance.GameDirectory, ".shou-trash/game-logs/" + id + "/" + file.RelativePath); + private static void Validate(GameLogCleanupPlan plan) + { + if (!Guid.TryParseExact(plan.Id, "N", out _) || plan.Files is null || plan.Files.Count > MaximumFiles || plan.Bytes > MaximumTotal + || plan.Files.Select(f => f.InstanceId + "/" + f.RelativePath.ToUpperInvariant()).Distinct(StringComparer.Ordinal).Count() != plan.Files.Count) + throw new InvalidDataException("清理记录无效,原文件保留。"); + } + public static async Task ScanAsync(IReadOnlyList instances, CancellationToken ct = default) + { + ct.ThrowIfCancellationRequested(); + var files = new List(); long bytes = 0; + foreach (var instance in instances) + foreach (var name in new[] { "logs", "crash-reports" }) + { + var folder = ContentInstallFiles.Literal(instance.GameDirectory, name); if (!Directory.Exists(folder)) continue; + foreach (var path in Directory.EnumerateFiles(folder).Take(MaximumFiles + 1)) + { + ct.ThrowIfCancellationRequested(); var relative = name + "/" + Path.GetFileName(path); if (!Allowed(relative)) continue; + var literal = ContentInstallFiles.Literal(instance.GameDirectory, relative); var info = new FileInfo(literal); + if (info.LastWriteTimeUtc > DateTime.UtcNow.AddDays(-1) || info.Length > 64 * 1024 * 1024) continue; + bytes += info.Length; + if (files.Count == MaximumFiles || bytes > MaximumTotal) throw new IOException("清理预览超过 2000 文件或 512 MiB,请分批整理;原文件未修改。"); + files.Add(new(instance.Id, relative, info.Length, await HashAsync(literal, ct))); + } + } + return new(Guid.NewGuid().ToString("N"), files); + } + public static async Task MoveAsync(GameLogCleanupPlan plan, IReadOnlyList instances, string receipts, CancellationToken ct = default) + { + ct.ThrowIfCancellationRequested(); + Validate(plan); var moved = new List<(string Source, string Target)>(); + // Revalidate every file before the first move. A changed preview is never silently accepted. + foreach (var file in plan.Files) + { + var instance = instances.Single(i => i.Id == file.InstanceId); var source = PathFor(instance, file); + if (new FileInfo(source).Length != file.Bytes || await HashAsync(source, ct) != file.Sha256) throw new IOException("日志在预览后发生变化,请重新扫描。"); + } + Directory.CreateDirectory(receipts); var receipt = ContentInstallFiles.Literal(receipts, plan.Id + ".json"); + await using (var stream = new FileStream(receipt, FileMode.CreateNew, FileAccess.Write, FileShare.None, 4096, true)) + await JsonSerializer.SerializeAsync(stream, plan, cancellationToken: ct); + try + { + foreach (var file in plan.Files) + { + ct.ThrowIfCancellationRequested(); var instance = instances.Single(i => i.Id == file.InstanceId); + var source = PathFor(instance, file); var target = Trash(instance, plan.Id, file); Directory.CreateDirectory(Path.GetDirectoryName(target)!); + _ = PathFor(instance, file); _ = Trash(instance, plan.Id, file); + if (new FileInfo(source).Length != file.Bytes || await HashAsync(source, ct) != file.Sha256) throw new IOException("日志在移动前发生变化,请重新扫描。"); + File.Move(source, target, false); moved.Add((source, target)); + } + } + catch + { + foreach (var (source, target) in moved.AsEnumerable().Reverse()) + { + VerifiedDownloader.RejectLink(source); VerifiedDownloader.RejectLink(target); + if (!File.Exists(source)) File.Move(target, source, false); + } + throw; + } + } + public static async Task RestoreLatestAsync(IReadOnlyList instances, string receipts, CancellationToken ct = default) + { + ct.ThrowIfCancellationRequested(); + VerifiedDownloader.RejectLink(receipts); if (!Directory.Exists(receipts)) return 0; + foreach (var file in Directory.EnumerateFiles(receipts, "*.json").OrderByDescending(File.GetLastWriteTimeUtc).Take(1000)) + { + VerifiedDownloader.RejectLink(file); if (new FileInfo(file).Length > 2 * 1024 * 1024) continue; + GameLogCleanupPlan? plan; + try { plan = JsonSerializer.Deserialize(await File.ReadAllBytesAsync(file, ct)); if (plan is null || Path.GetFileNameWithoutExtension(file) != plan.Id) continue; Validate(plan); } + catch (Exception ex) when (ex is JsonException or InvalidDataException or ArgumentException) { continue; } + var restores = new List<(string Source, string Target)>(); + foreach (var entry in plan.Files) + { + var instance = instances.FirstOrDefault(i => i.Id == entry.InstanceId); if (instance is null) continue; + var target = PathFor(instance, entry); var source = Trash(instance, plan.Id, entry); if (!File.Exists(source)) continue; + if (File.Exists(target) || Directory.Exists(target)) throw new IOException("原位置已有同名日志,未覆盖;回收文件保留。"); + if (new FileInfo(source).Length != entry.Bytes || await HashAsync(source, ct) != entry.Sha256) throw new IOException("回收日志校验失败,回收文件保留。"); + restores.Add((source, target)); + } + if (restores.Count == 0) continue; + var moved = new List<(string Source, string Target)>(); + try + { + foreach (var item in restores) + { ct.ThrowIfCancellationRequested(); VerifiedDownloader.RejectLink(item.Source); VerifiedDownloader.RejectLink(item.Target); Directory.CreateDirectory(Path.GetDirectoryName(item.Target)!); File.Move(item.Source, item.Target, false); moved.Add(item); } + return moved.Count; + } + catch + { foreach (var item in moved.AsEnumerable().Reverse()) { VerifiedDownloader.RejectLink(item.Target); VerifiedDownloader.RejectLink(item.Source); if (!File.Exists(item.Source)) File.Move(item.Target, item.Source, false); } throw; } + } + return 0; + } + private static async Task HashAsync(string path, CancellationToken ct) + { await using var stream = File.OpenRead(path); return Convert.ToHexStringLower(await SHA256.HashDataAsync(stream, ct)); } +} diff --git a/src/SHOU.Launcher.Core/Tools/LauncherCacheCleaner.cs b/src/SHOU.Launcher.Core/Tools/LauncherCacheCleaner.cs new file mode 100644 index 00000000..e0b2620f --- /dev/null +++ b/src/SHOU.Launcher.Core/Tools/LauncherCacheCleaner.cs @@ -0,0 +1,104 @@ +using System.Security.Cryptography; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core.Tools; + +/// Explicit, reproducible cache only. Never traverses links or deletes exports, runtimes, credentials or instances. +public static class LauncherCacheCleaner +{ + private static readonly HashSet CacheFolders = new(StringComparer.Ordinal) + { "assets", "authlib", "catalog", "club-updates", "content", "libraries", "loaders", "versions", "java-metadata" }; + private const int MaximumFiles = 100000; + private static bool Allowed(string area, string relative) + { + var parts = relative.Split('/'); + if (parts.Any(p => string.IsNullOrEmpty(p) || p is "." or ".." || p.Contains('\\') || p.Contains(':'))) return false; + if (area == "temporary") return parts[0].StartsWith("game-", StringComparison.Ordinal) || parts[0].StartsWith("loader-", StringComparison.Ordinal) || parts[0].StartsWith("installer-", StringComparison.Ordinal); + return area == "cache" && (CacheFolders.Contains(parts[0]) || parts.Length == 1 && (relative.EndsWith(".json", StringComparison.Ordinal) || relative.EndsWith(".json.sha256", StringComparison.Ordinal))) + && !relative.EndsWith(".lock", StringComparison.Ordinal); + } + private static string Resolve(IAppPaths paths, CacheFile file) + { + if (!Allowed(file.Area, file.RelativePath) || file.Bytes < 0 || file.Sha256.Length != 64 || !file.Sha256.All(Uri.IsHexDigit)) throw new InvalidDataException("缓存清理预览无效,请重新扫描。"); + var root = file.Area == "cache" ? paths.CacheDirectory : paths.TempDirectory; + var full = Path.GetFullPath(Path.Combine(root, file.RelativePath.Replace('/', Path.DirectorySeparatorChar))); + if (!full.StartsWith(Path.GetFullPath(root).TrimEnd(Path.DirectorySeparatorChar) + Path.DirectorySeparatorChar, OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal)) throw new IOException("缓存路径超出范围。"); + VerifiedDownloader.RejectLink(full); return full; + } + private static async Task HashAsync(string file, CancellationToken ct) + { await using var stream = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.Read, 131072, true); return Convert.ToHexStringLower(await SHA256.HashDataAsync(stream, ct)); } + private static bool Busy(string path) + { + foreach (var suffix in new[] { ".part.resume.json", ".aria2-part.aria2", ".aria2-part", ".part" }) + if (path.EndsWith(suffix, StringComparison.Ordinal)) { path = path[..^suffix.Length]; break; } + foreach (var suffix in new[] { ".download.lock", ".coordinator.lock" }) + { + var lease = path + suffix; VerifiedDownloader.RejectLink(lease); + if (!File.Exists(lease)) continue; + try { using var check = new FileStream(lease, FileMode.Open, FileAccess.ReadWrite, FileShare.None); } + catch (IOException) { return true; } + } + return false; + } + public static async Task ScanAsync(IAppPaths paths, CancellationToken ct = default) + { + List files = []; var skipped = 0; var visited = 0; + foreach (var (area, root) in new[] { ("cache", paths.CacheDirectory), ("temporary", paths.TempDirectory) }) + { + VerifiedDownloader.RejectLink(root); if (!Directory.Exists(root)) continue; + var pending = new Stack(); pending.Push(root); + while (pending.TryPop(out var directory)) + { + ct.ThrowIfCancellationRequested(); VerifiedDownloader.RejectLink(directory); + foreach (var entry in new DirectoryInfo(directory).EnumerateFileSystemInfos()) + { + ct.ThrowIfCancellationRequested(); + if (++visited > MaximumFiles) throw new IOException("缓存超过 100000 项,请分批整理;未修改文件。"); + if (entry.LinkTarget is not null || (entry.Attributes & FileAttributes.ReparsePoint) != 0) { skipped++; continue; } + var relative = Path.GetRelativePath(root, entry.FullName).Replace('\\', '/'); + if (entry is DirectoryInfo) + { + if (Allowed(area, relative + "/placeholder")) pending.Push(entry.FullName); + else skipped++; + continue; + } + var staging = relative.EndsWith(".part", StringComparison.Ordinal) || relative.EndsWith(".part.resume.json", StringComparison.Ordinal) || relative.EndsWith(".aria2", StringComparison.Ordinal); + if (!Allowed(area, relative) || (area == "temporary" || staging) && entry.LastWriteTimeUtc > DateTime.UtcNow.AddDays(-1) || Busy(entry.FullName)) { skipped++; continue; } + try { var file = (FileInfo)entry; files.Add(new(area, relative, file.Length, await HashAsync(file.FullName, ct))); } + catch (IOException) { skipped++; } + } + } + } + return new(files, skipped); + } + public static async Task ClearAsync(IAppPaths paths, CacheCleanupPlan plan, CancellationToken ct = default) + { + if (plan.Files.Count > MaximumFiles || plan.Files.Select(f => f.Area + "/" + f.RelativePath.ToUpperInvariant()).Distinct().Count() != plan.Files.Count) throw new InvalidDataException("缓存清理预览无效。"); + // Check the entire preview before deleting anything; changed or replaced files require a new preview. + foreach (var file in plan.Files) + { + ct.ThrowIfCancellationRequested(); var path = Resolve(paths, file); + if (!File.Exists(path) || new FileInfo(path).Length != file.Bytes || Busy(path) || await HashAsync(path, ct) != file.Sha256) throw new IOException("缓存已变化或正在使用,请重新扫描;尚未清理文件。"); + } + var count = 0; long bytes = 0; var skipped = plan.SkippedFiles; + foreach (var file in plan.Files) + { + if (ct.IsCancellationRequested) return new(count, bytes, skipped, true); + try + { + var path = Resolve(paths, file); + // The exclusive handle prevents a writer from changing this file during the final check. + await using (var stream = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Delete, 131072, true)) + { + if (Busy(path) || stream.Length != file.Bytes || Convert.ToHexStringLower(await SHA256.HashDataAsync(stream, ct)) != file.Sha256) { skipped++; continue; } + File.Delete(path); + } + count++; bytes += file.Bytes; + } + catch (OperationCanceledException) { return new(count, bytes, skipped, true); } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { skipped++; } + } + return new(count, bytes, skipped, false); + } +} diff --git a/src/SHOU.Launcher.Core/Tools/LauncherLogArchive.cs b/src/SHOU.Launcher.Core/Tools/LauncherLogArchive.cs new file mode 100644 index 00000000..6bb73820 --- /dev/null +++ b/src/SHOU.Launcher.Core/Tools/LauncherLogArchive.cs @@ -0,0 +1,107 @@ +using System.IO.Compression; +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core.Diagnostics; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Core.Tools; + +public sealed record HistoricalLauncherLog(string Name, long Bytes, string Sha256); +public static class LauncherLogArchive +{ + private static readonly LogRedactor Redactor = new(); + private static bool Allowed(FileInfo f) => f.Extension is ".log" or ".txt" && f.Name != "launcher.log" && !f.Name.StartsWith("game-", StringComparison.OrdinalIgnoreCase); + private static string LiteralFile(string directory, string name) + { + if (string.IsNullOrWhiteSpace(name) || Path.GetFileName(name) != name || name.Contains(':') || name.IndexOfAny(['/', '\\']) >= 0) throw new InvalidDataException("日志文件名无效。"); + var file = Path.Combine(Path.GetFullPath(directory), name); VerifiedDownloader.RejectLink(file); return file; + } + public static async Task ExportAsync(string directory, CancellationToken ct = default) + { + VerifiedDownloader.RejectLink(directory); using var result = new MemoryStream(); + using (var zip = new ZipArchive(result, ZipArchiveMode.Create, true)) + { + if (Directory.Exists(directory)) + foreach (var file in new DirectoryInfo(directory).EnumerateFiles().Where(f => f.Extension is ".log" or ".txt").OrderByDescending(f => f.LastWriteTimeUtc).Take(100)) + { + ct.ThrowIfCancellationRequested(); VerifiedDownloader.RejectLink(file.FullName); + await using var input = new FileStream(file.FullName, FileMode.Open, FileAccess.Read, FileShare.ReadWrite | FileShare.Delete, 16384, true); + var truncated = input.Length > 1024 * 1024; + var limit = (int)Math.Min(input.Length, 1024 * 1024); if (truncated) input.Seek(-limit, SeekOrigin.End); + var bytes = new byte[limit]; await input.ReadExactlyAsync(bytes, ct); + using var reader = new StreamReader(new MemoryStream(bytes), Encoding.UTF8, true); var text = await reader.ReadToEndAsync(ct); + if (truncated) { var newline = text.IndexOf('\n'); text = newline < 0 ? "" : text[(newline + 1)..]; } + if (text.Contains('\0')) text = "[Unsupported log encoding omitted.]"; + var clean = string.Join('\n', text.Split('\n').Select(line => Redactor.Scrub(line))); + clean = System.Text.RegularExpressions.Regex.Replace(clean, @"(?i)(\b(?:access[_-]?token|refresh[_-]?token|id[_-]?token|client[_-]?token|client[_-]?secret|api[_-]?key|token|secret|password|passwd|rpc[_-]?secret|authorization|code_verifier)\b[""']?\s*[:=]\s*[""']?)(?:Bearer\s+)?[^\s,""';&]+", "$1", System.Text.RegularExpressions.RegexOptions.CultureInvariant, TimeSpan.FromSeconds(1)); + clean = System.Text.RegularExpressions.Regex.Replace(clean, @"(?i)(cookie|set-cookie|api[_-]?key)(\s*[:=]\s*)[^\r\n]+", "$1$2", System.Text.RegularExpressions.RegexOptions.CultureInvariant, TimeSpan.FromSeconds(1)); + clean = System.Text.RegularExpressions.Regex.Replace(clean, @"(?i)https?://[^\s\""<>]+", m => Uri.TryCreate(m.Value, UriKind.Absolute, out var uri) ? new UriBuilder(uri) { UserName = "", Password = "", Query = "", Fragment = "" }.Uri.GetLeftPart(UriPartial.Path) : "", System.Text.RegularExpressions.RegexOptions.CultureInvariant, TimeSpan.FromSeconds(1)); + var home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); + if (home.Length > 0) clean = clean.Replace(home, "", OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); + if (truncated) clean = "[Earlier content omitted; exporting the last 1 MiB.]\n" + clean; + var entry = zip.CreateEntry(file.Name, CompressionLevel.Optimal); await using var stream = entry.Open(); + await stream.WriteAsync(Encoding.UTF8.GetBytes(clean), ct); + } + var readme = zip.CreateEntry("README.txt"); await using var notes = readme.Open(); + await notes.WriteAsync(Encoding.UTF8.GetBytes("Sanitized launcher logs only. Up to 100 files, the last 1 MiB of each (truncation is marked). Account caches, configuration and game files are excluded. Review before sharing."), ct); + } + return result.ToArray(); + } + public static async Task> ScanAsync(string directory, CancellationToken ct = default) + { + VerifiedDownloader.RejectLink(directory); List entries = []; + if (!Directory.Exists(directory)) return entries; + foreach (var file in new DirectoryInfo(directory).EnumerateFiles().Where(Allowed).Where(f => f.LastWriteTimeUtc < DateTime.UtcNow.AddDays(-7)).Take(100)) + { + ct.ThrowIfCancellationRequested(); if (file.LinkTarget is not null || file.Length > 10 * 1024 * 1024) continue; + await using var read = new FileStream(file.FullName, FileMode.Open, FileAccess.Read, FileShare.Read); + entries.Add(new(file.Name, read.Length, Convert.ToHexStringLower(await SHA256.HashDataAsync(read, ct)))); + } + return entries; + } + public static async Task RecycleAsync(string directory, IReadOnlyList plan, CancellationToken ct = default) + { + if (plan.Count > 100 || plan.Any(p => p is null || string.IsNullOrEmpty(p.Sha256) || p.Sha256.Length != 64 || !p.Sha256.All(Uri.IsHexDigit)) || plan.Select(p => p.Name).Distinct().Count() != plan.Count) throw new InvalidDataException("日志预览无效。"); + foreach (var file in plan) + { + var path = LiteralFile(directory, file.Name); var info = new FileInfo(path); + if (Path.GetFileName(file.Name) != file.Name || !Allowed(info) || info.LastWriteTimeUtc >= DateTime.UtcNow.AddDays(-7) || info.Length != file.Bytes) throw new IOException("日志已变化,请重新扫描。"); + await using var stream = File.OpenRead(path); if (Convert.ToHexStringLower(await SHA256.HashDataAsync(stream, ct)) != file.Sha256) throw new IOException("日志已变化,请重新扫描。"); + } + var target = Path.Combine(Path.GetFullPath(directory), ".shou-trash", Guid.NewGuid().ToString("N")); VerifiedDownloader.RejectLink(target); Directory.CreateDirectory(target); + List moved = []; + try + { + foreach (var file in plan) + { + ct.ThrowIfCancellationRequested(); var source = LiteralFile(directory, file.Name); + await using var read = new FileStream(source, FileMode.Open, FileAccess.Read, FileShare.Delete, 16384, true); + if (read.Length != file.Bytes || File.GetLastWriteTimeUtc(source) >= DateTime.UtcNow.AddDays(-7) || Convert.ToHexStringLower(await SHA256.HashDataAsync(read, ct)) != file.Sha256) throw new IOException("日志已变化,请重新扫描。"); + File.Move(source, LiteralFile(target, file.Name)); moved.Add(file); + } + } + finally { await File.WriteAllTextAsync(Path.Combine(target, "receipt.json"), JsonSerializer.Serialize(moved), CancellationToken.None); } + return target; + } + public static async Task RestoreAsync(string directory, string receiptDirectory, CancellationToken ct = default) + { + var root = Path.Combine(Path.GetFullPath(directory), ".shou-trash"); VerifiedDownloader.RejectLink(root); + if (!Path.GetFullPath(receiptDirectory).StartsWith(root + Path.DirectorySeparatorChar, OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal)) throw new IOException("日志收据超出范围。"); + var receipt = Path.Combine(receiptDirectory, "receipt.json"); VerifiedDownloader.RejectLink(receipt); + if (new FileInfo(receipt).Length > 65536) throw new InvalidDataException("日志收据过大。"); + var files = JsonSerializer.Deserialize>(await File.ReadAllTextAsync(receipt, ct)) ?? []; + if (files.Count > 100 || files.Any(f => f is null || string.IsNullOrEmpty(f.Sha256) || f.Sha256.Length != 64 || !Allowed(new FileInfo(LiteralFile(directory, f.Name))))) throw new InvalidDataException("日志收据无效。"); + foreach (var file in files) + { + if (Path.GetFileName(file.Name) != file.Name) throw new IOException("日志收据无效。"); + var from = LiteralFile(receiptDirectory, file.Name); var to = LiteralFile(directory, file.Name); + if (File.Exists(to)) throw new IOException("存在同名日志,未覆盖。"); + await using var stream = File.OpenRead(from); if (Convert.ToHexStringLower(await SHA256.HashDataAsync(stream, ct)) != file.Sha256) throw new IOException("日志哈希已变化,未恢复。"); + } + var remaining = files.ToList(); + try { foreach (var file in files) { ct.ThrowIfCancellationRequested(); File.Move(LiteralFile(receiptDirectory, file.Name), LiteralFile(directory, file.Name)); remaining.Remove(file); } } + finally { VerifiedDownloader.RejectLink(receipt); await File.WriteAllTextAsync(receipt, JsonSerializer.Serialize(remaining), CancellationToken.None); } + } +} diff --git a/src/SHOU.Launcher.Core/Tools/ToolFileTransfer.cs b/src/SHOU.Launcher.Core/Tools/ToolFileTransfer.cs new file mode 100644 index 00000000..3a551f1f --- /dev/null +++ b/src/SHOU.Launcher.Core/Tools/ToolFileTransfer.cs @@ -0,0 +1,73 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Core.Tools; + +/// Anonymous user-requested downloads, separate from authenticated API transports. Never executes files. +public static class ToolFileTransfer +{ + public const long MaximumBytes = 512L * 1024 * 1024; + public static Uri ValidateSource(Uri uri) + { + if (!uri.IsAbsoluteUri || uri.Scheme is not ("http" or "https") || uri.UserInfo.Length != 0 || uri.Fragment.Length != 0 || uri.AbsoluteUri.Length > 8192) + throw new ArgumentException("请输入 HTTP 或 HTTPS 下载地址,不要包含账户密码或片段。"); + return uri; + } + public static string ValidateDestination(string path) + { + if (!Path.IsPathFullyQualified(path)) throw new ArgumentException("请选择本机保存位置。"); + var destination = Path.GetFullPath(path); var name = Path.GetFileName(destination); + if (string.IsNullOrWhiteSpace(name) || name is "." or ".." || name.Length > 200 || name.Any(c => char.IsControl(c) || "<>:\"/\\|?*".Contains(c)) || name.EndsWith('.') || name.EndsWith(' ')) + throw new ArgumentException("请输入有效的文件名。"); + var stem = name.Split('.')[0].ToUpperInvariant(); + if (stem is "CON" or "PRN" or "AUX" or "NUL" || stem.Length == 4 && (stem.StartsWith("COM", StringComparison.Ordinal) || stem.StartsWith("LPT", StringComparison.Ordinal)) && stem[3] is >= '1' and <= '9') throw new ArgumentException("文件名不能使用系统设备名称。"); + VerifiedDownloader.RejectLink(destination); + if (File.Exists(destination) || Directory.Exists(destination)) throw new IOException("保存位置已存在文件,未覆盖;请更换文件名。"); + return destination; + } + public static async Task DownloadAsync(HttpClient http, Uri uri, string path, IProgress? progress = null, CancellationToken ct = default) + { + uri = ValidateSource(uri); var destination = ValidateDestination(path); + var directory = Path.GetDirectoryName(destination)!; Directory.CreateDirectory(directory); VerifiedDownloader.RejectLink(destination); + var stage = Path.Combine(directory, ".shou-tool-" + Guid.NewGuid().ToString("N") + ".part"); var owned = false; + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(ct); timeout.CancelAfter(TimeSpan.FromMinutes(5)); var token = timeout.Token; + try + { + for (var hop = 0; ; hop++) + { + using var request = new HttpRequestMessage(HttpMethod.Get, uri); + using var response = await http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead, token).ConfigureAwait(false); + if (response.RequestMessage?.RequestUri is { } final && final != uri) throw new InvalidDataException("下载连接发生未审核的跳转,请重试。"); + if ((int)response.StatusCode is >= 300 and < 400) + { + if (hop == 5 || response.Headers.Location is not { } location) throw new InvalidDataException("下载重定向次数过多或地址无效。"); + var next = ValidateSource(new Uri(uri, location)); + if (uri.Scheme == "https" && next.Scheme != "https") throw new InvalidDataException("下载服务器跳转到不安全的连接。"); + uri = next; continue; + } + if (!response.IsSuccessStatusCode) throw new IOException($"下载失败(HTTP {(int)response.StatusCode})。"); + var total = response.Content.Headers.ContentLength; + if (total is > MaximumBytes) throw new InvalidDataException("自定义文件超过 512 MiB 限制。"); + VerifiedDownloader.RejectLink(stage); + await using (var output = new FileStream(stage, FileMode.CreateNew, FileAccess.Write, FileShare.None, 65536, true)) + { + owned = true; await using var input = await response.Content.ReadAsStreamAsync(token).ConfigureAwait(false); + var buffer = new byte[65536]; long count = 0; + while (true) + { + var read = await input.ReadAsync(buffer, token).ConfigureAwait(false); if (read == 0) break; + count += read; if (count > MaximumBytes || total is { } expected && count > expected) throw new InvalidDataException("下载大小超出限制或服务器声明。"); + await output.WriteAsync(buffer.AsMemory(0, read), token).ConfigureAwait(false); + progress?.Report(new(destination, "Downloading", count, total, uri.Host)); + } + if (total is { } length && count != length) throw new InvalidDataException("下载不完整,请重试。"); + await output.FlushAsync(token).ConfigureAwait(false); + } + token.ThrowIfCancellationRequested(); ValidateDestination(destination); VerifiedDownloader.RejectLink(stage); + File.Move(stage, destination, false); owned = false; return; + } + } + catch (HttpRequestException) { throw new IOException("无法连接下载服务器,请检查网络后重试。"); } + finally { if (owned) { VerifiedDownloader.RejectLink(stage); File.Delete(stage); } } + } +} diff --git a/src/SHOU.Launcher.Core/Tools/ToolImages.cs b/src/SHOU.Launcher.Core/Tools/ToolImages.cs new file mode 100644 index 00000000..3fd7de25 --- /dev/null +++ b/src/SHOU.Launcher.Core/Tools/ToolImages.cs @@ -0,0 +1,47 @@ +using System.Buffers.Binary; +using System.IO.Compression; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Core.Tools; + +public static class ToolImages +{ + public static byte[] Avatar(AccountTextureImage skin, int size) + { + if (size is not (64 or 128 or 256)) throw new ArgumentException("头像大小须为 64、128 或 256。"); + var source = skin.Rgba.Span; var rgba = new byte[size * size * 4]; + // Old 64×32 skins often have an opaque, unused hat rectangle; treat the solid rectangle as absent. + var uniformHat = true; var first = source.Slice((8 * skin.Width + 40) * 4, 4); + for (var y = 8; y < 16; y++) for (var x = 40; x < 48; x++) if (!source.Slice((y * skin.Width + x) * 4, 4).SequenceEqual(first)) uniformHat = false; + for (var y = 0; y < size; y++) for (var x = 0; x < size; x++) + { + var sx = x * 8 / size; var sy = y * 8 / size; var target = rgba.AsSpan((y * size + x) * 4, 4); + var face = source.Slice(((8 + sy) * skin.Width + 8 + sx) * 4, 4); face.CopyTo(target); + if (skin.Height != 32 || !uniformHat) Composite(source.Slice(((8 + sy) * skin.Width + 40 + sx) * 4, 4), target); + } + return EncodeRgba(size, size, rgba); + } + private static void Composite(ReadOnlySpan over, Span under) + { + var a = over[3]; var b = under[3] * (255 - a); var alpha = a * 255 + b; + if (alpha == 0) { under.Clear(); return; } + for (var c = 0; c < 3; c++) under[c] = (byte)((over[c] * a * 255 + under[c] * b + alpha / 2) / alpha); + under[3] = (byte)((alpha + 127) / 255); + } + public static byte[] EncodeRgba(int width, int height, ReadOnlySpan rgba) + { + if (width is < 1 or > 2048 || height is < 1 or > 2048 || rgba.Length != checked(width * height * 4)) throw new ArgumentException("图像像素大小无效。"); + using var png = new MemoryStream(); png.Write([137, 80, 78, 71, 13, 10, 26, 10]); + Span header = stackalloc byte[13]; header.Clear(); BinaryPrimitives.WriteInt32BigEndian(header, width); BinaryPrimitives.WriteInt32BigEndian(header[4..], height); header[8] = 8; header[9] = 6; Chunk(png, "IHDR"u8, header); + using var packed = new MemoryStream(); + using (var zip = new ZLibStream(packed, CompressionLevel.Fastest, true)) for (var y = 0; y < height; y++) { zip.WriteByte(0); zip.Write(rgba.Slice(y * width * 4, width * 4)); } + Chunk(png, "IDAT"u8, packed.ToArray()); Chunk(png, "IEND"u8, []); return png.ToArray(); + } + private static void Chunk(Stream output, ReadOnlySpan tag, ReadOnlySpan bytes) + { + Span number = stackalloc byte[4]; BinaryPrimitives.WriteInt32BigEndian(number, bytes.Length); output.Write(number); output.Write(tag); output.Write(bytes); + var crc = uint.MaxValue; foreach (var b in tag) Update(ref crc, b); foreach (var b in bytes) Update(ref crc, b); + BinaryPrimitives.WriteUInt32BigEndian(number, ~crc); output.Write(number); + } + private static void Update(ref uint crc, byte b) { crc ^= b; for (var i = 0; i < 8; i++) crc = (crc & 1) == 0 ? crc >> 1 : crc >> 1 ^ 0xedb88320u; } +} diff --git a/src/SHOU.Launcher.Core/packages.lock.json b/src/SHOU.Launcher.Core/packages.lock.json new file mode 100644 index 00000000..4852d444 --- /dev/null +++ b/src/SHOU.Launcher.Core/packages.lock.json @@ -0,0 +1,51 @@ +{ + "version": 1, + "dependencies": { + "net10.0": { + "SharpZipLib": { + "type": "Direct", + "requested": "[1.4.2, )", + "resolved": "1.4.2", + "contentHash": "yjj+3zgz8zgXpiiC3ZdF/iyTBbz2fFvMxZFEBPUcwZjIvXOf37Ylm+K58hqMfIBt5JgU/Z2uoUS67JmTLe973A==" + }, + "System.Security.Cryptography.Pkcs": { + "type": "Direct", + "requested": "[10.0.14, )", + "resolved": "10.0.14", + "contentHash": "Wz+IgL2xpg8KJ4i2VWj6uz1PmZNu4Q0Ljlwd73P9Vze5NcOBtctLii3itV0PB2MpOqwqDEGfB6RCdv94A4E5yQ==" + } + }, + "net10.0/linux-x64": { + "System.Security.Cryptography.Pkcs": { + "type": "Direct", + "requested": "[10.0.14, )", + "resolved": "10.0.14", + "contentHash": "Wz+IgL2xpg8KJ4i2VWj6uz1PmZNu4Q0Ljlwd73P9Vze5NcOBtctLii3itV0PB2MpOqwqDEGfB6RCdv94A4E5yQ==" + } + }, + "net10.0/osx-arm64": { + "System.Security.Cryptography.Pkcs": { + "type": "Direct", + "requested": "[10.0.14, )", + "resolved": "10.0.14", + "contentHash": "Wz+IgL2xpg8KJ4i2VWj6uz1PmZNu4Q0Ljlwd73P9Vze5NcOBtctLii3itV0PB2MpOqwqDEGfB6RCdv94A4E5yQ==" + } + }, + "net10.0/win-arm64": { + "System.Security.Cryptography.Pkcs": { + "type": "Direct", + "requested": "[10.0.14, )", + "resolved": "10.0.14", + "contentHash": "Wz+IgL2xpg8KJ4i2VWj6uz1PmZNu4Q0Ljlwd73P9Vze5NcOBtctLii3itV0PB2MpOqwqDEGfB6RCdv94A4E5yQ==" + } + }, + "net10.0/win-x64": { + "System.Security.Cryptography.Pkcs": { + "type": "Direct", + "requested": "[10.0.14, )", + "resolved": "10.0.14", + "contentHash": "Wz+IgL2xpg8KJ4i2VWj6uz1PmZNu4Q0Ljlwd73P9Vze5NcOBtctLii3itV0PB2MpOqwqDEGfB6RCdv94A4E5yQ==" + } + } + } +} \ No newline at end of file diff --git a/src/SHOU.Launcher.Desktop/App.axaml b/src/SHOU.Launcher.Desktop/App.axaml new file mode 100644 index 00000000..2811ce44 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/App.axaml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/App.axaml.cs b/src/SHOU.Launcher.Desktop/App.axaml.cs new file mode 100644 index 00000000..09902fd4 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/App.axaml.cs @@ -0,0 +1,55 @@ +using Avalonia; +using Avalonia.Controls; +using Avalonia.Controls.ApplicationLifetimes; +using Avalonia.Markup.Xaml; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Configuration; +using SHOU.Launcher.Desktop.ViewModels; +using SHOU.Launcher.Desktop.Views; + +namespace SHOU.Launcher.Desktop; + +public partial class App : Application +{ + public override void Initialize() + { + Name = Bootstrap.Launcher?.Snapshot.Build.Name ?? new BuildConfiguration().GetIdentity().Name; + AvaloniaXamlLoader.Load(this); + // Use a real platform CJK face as the primary family. A comma-separated request can + // select a Latin face and let the platform choose an unrelated Chinese fallback. + Resources["ClubFontFamily"] = new Avalonia.Media.FontFamily(OperatingSystem.IsWindows() ? "Microsoft YaHei UI" + : OperatingSystem.IsMacOS() ? "PingFang SC" : "Noto Sans CJK SC"); + Resources["ClubMonospaceFontFamily"] = new Avalonia.Media.FontFamily(OperatingSystem.IsWindows() ? "Consolas" + : OperatingSystem.IsMacOS() ? "Menlo" : "monospace"); + } + public override void OnFrameworkInitializationCompleted() + { + if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) + { + desktop.MainWindow = CreateMainWindow(Bootstrap.Launcher, Bootstrap.ExternalLauncher); + Bootstrap.AttachLifetime(desktop); + } + base.OnFrameworkInitializationCompleted(); + } + + public static Window CreateMainWindow(ILauncherService? launcher, IExternalLauncher? externalLauncher) + { + if (launcher is not null && externalLauncher is not null) + { + try { return new MainWindow { DataContext = new MainWindowViewModel(launcher, externalLauncher) }; } + catch (Exception ex) { return ErrorWindow("启动器服务初始化失败:" + UiPrivacy.Redact(ex.Message)); } + } + return ErrorWindow("启动器服务尚未连接,无法加载账户、实例与设置。请查看启动日志并重试。\n缺少宿主服务:" + + (launcher is null ? "ILauncherService " : "") + (externalLauncher is null ? "IExternalLauncher" : "")); + } + + private static Window ErrorWindow(string message) => new() + { + Name = "BootstrapFailureWindow", Title = "潮涌核心社启动器 · 初始化失败", Width = 680, Height = 320, + Content = new StackPanel { Margin = new Thickness(32), Spacing = 18, Children = + { + new TextBlock { Text = "无法初始化启动器", FontSize = 24 }, + new TextBlock { Name = "HostErrorMessage", Text = message, TextWrapping = Avalonia.Media.TextWrapping.Wrap } + } } + }; +} diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/LICENSE.txt b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/LICENSE.txt new file mode 100644 index 00000000..96153b88 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023-2026 Marvin Menzerath + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/README.md b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/README.md new file mode 100644 index 00000000..415ec37b --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/README.md @@ -0,0 +1,7 @@ +# 旧成就图标库 + +39 张背景 PNG 与 ID 顺序来自 [menzerath/mcgen](https://github.com/menzerath/mcgen) 的 `assets/backgrounds`、`assets/legacy.go`(2026-11-07 获取)。归档 SHA-256:`01f0ea544a3c0253d72d69c51bf35f0749b0071bf8201a596d8510e817eab2f8`。 + +数字 1–39 是旧成就生成器的图标序号,不是 Minecraft 数字物品 ID。共享渲染器仅绘制背景 PNG 中 `(16,16,32,32)` 的图标区;不连接生成服务,不上传文字,不包含该项目的字体。 + +生成器 MIT 许可全文见 LICENSE.txt。Minecraft 及游戏图像归 Mojang Studios / Microsoft;本项目无官方隶属关系。此素材说明与许可随候选包保留。 diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/arrow.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/arrow.png new file mode 100644 index 00000000..1c1c3a57 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/arrow.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bed.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bed.png new file mode 100644 index 00000000..60431258 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bed.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/book.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/book.png new file mode 100644 index 00000000..66855e94 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/book.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bow.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bow.png new file mode 100644 index 00000000..9f5c044d Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bow.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bucket.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bucket.png new file mode 100644 index 00000000..f8905c0f Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bucket.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bucket_lava.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bucket_lava.png new file mode 100644 index 00000000..9416e8f7 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bucket_lava.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bucket_milk.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bucket_milk.png new file mode 100644 index 00000000..cf620d80 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bucket_milk.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bucket_water.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bucket_water.png new file mode 100644 index 00000000..35383066 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/bucket_water.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/cake.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/cake.png new file mode 100644 index 00000000..e12d6449 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/cake.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/chest.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/chest.png new file mode 100644 index 00000000..9313f9a7 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/chest.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/chestplate_diamond.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/chestplate_diamond.png new file mode 100644 index 00000000..f7d3a7f4 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/chestplate_diamond.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/chestplate_iron.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/chestplate_iron.png new file mode 100644 index 00000000..7d62bd2c Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/chestplate_iron.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/coal.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/coal.png new file mode 100644 index 00000000..1b60fa04 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/coal.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/cobweb.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/cobweb.png new file mode 100644 index 00000000..ae11c1ed Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/cobweb.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/cookie.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/cookie.png new file mode 100644 index 00000000..6b485ffe Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/cookie.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/crafting_table.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/crafting_table.png new file mode 100644 index 00000000..518834cb Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/crafting_table.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/creeper.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/creeper.png new file mode 100644 index 00000000..89386c61 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/creeper.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/diamond.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/diamond.png new file mode 100644 index 00000000..7ec49eb1 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/diamond.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/door_iron.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/door_iron.png new file mode 100644 index 00000000..fc83f8bb Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/door_iron.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/door_wood.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/door_wood.png new file mode 100644 index 00000000..edae2c9e Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/door_wood.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/fire.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/fire.png new file mode 100644 index 00000000..ed126200 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/fire.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/flint_and_steel.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/flint_and_steel.png new file mode 100644 index 00000000..e924d0fd Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/flint_and_steel.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/furnace.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/furnace.png new file mode 100644 index 00000000..3c91a04b Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/furnace.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/gold.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/gold.png new file mode 100644 index 00000000..1fdc4d7d Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/gold.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/grass.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/grass.png new file mode 100644 index 00000000..dec45450 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/grass.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/heart.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/heart.png new file mode 100644 index 00000000..85e43103 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/heart.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/iron.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/iron.png new file mode 100644 index 00000000..02ca0668 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/iron.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/pig.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/pig.png new file mode 100644 index 00000000..b6a25a3c Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/pig.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/planks.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/planks.png new file mode 100644 index 00000000..619f755a Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/planks.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/potion.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/potion.png new file mode 100644 index 00000000..f012d842 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/potion.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/rail.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/rail.png new file mode 100644 index 00000000..1c636285 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/rail.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/redstone.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/redstone.png new file mode 100644 index 00000000..aa638f6b Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/redstone.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/sign.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/sign.png new file mode 100644 index 00000000..e8820b15 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/sign.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/spawn_egg.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/spawn_egg.png new file mode 100644 index 00000000..cd1fdef1 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/spawn_egg.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/splash_potion.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/splash_potion.png new file mode 100644 index 00000000..1f43aba3 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/splash_potion.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/stone.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/stone.png new file mode 100644 index 00000000..ac07474b Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/stone.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/sword_diamond.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/sword_diamond.png new file mode 100644 index 00000000..6e6211a4 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/sword_diamond.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/sword_iron.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/sword_iron.png new file mode 100644 index 00000000..103f6134 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/sword_iron.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/tnt.png b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/tnt.png new file mode 100644 index 00000000..05d521ae Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/AchievementIcons/tnt.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Conduit/README.md b/src/SHOU.Launcher.Desktop/Assets/Conduit/README.md new file mode 100644 index 00000000..5f9b9c21 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Conduit/README.md @@ -0,0 +1,12 @@ +# 社团视觉素材 + +本目录使用潮涌核心社网站现有素材,2026-10-02 获取,用于社团启动器品牌与首页轮播。 + +- `club-logo.png`:https://conduit-club.github.io/img/brand/velocity-server-icon.png +- `campus-lake.jpg`:https://conduit-club.github.io/img/screenshots/shou/campus-lake.jpg +- `spawn-plaza.jpg`:https://conduit-club.github.io/img/screenshots/smp/spawn-plaza.jpg +- `spawn-statues.jpg`:https://conduit-club.github.io/img/screenshots/create/spawn-statues.jpg + +`club.ico` 为原图标按最近邻缩放生成的 16/32/48/64/128/256 像素 Windows 图标,`club-splash.png` 为 256 像素启动图,不改动原画面内容。首页直接加载内置实景图片,通过 WPF 实时虚化、裁剪和淡入轮播,不在启动时联网下载。 + +素材归属原作者及社团;此处的社团使用不意味着另行授予第三方素材许可。 diff --git a/src/SHOU.Launcher.Desktop/Assets/Conduit/campus-lake.jpg b/src/SHOU.Launcher.Desktop/Assets/Conduit/campus-lake.jpg new file mode 100644 index 00000000..8aace12f Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Conduit/campus-lake.jpg differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Conduit/club-logo.png b/src/SHOU.Launcher.Desktop/Assets/Conduit/club-logo.png new file mode 100644 index 00000000..e6ef3d15 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Conduit/club-logo.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Conduit/spawn-plaza.jpg b/src/SHOU.Launcher.Desktop/Assets/Conduit/spawn-plaza.jpg new file mode 100644 index 00000000..3406d16a Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Conduit/spawn-plaza.jpg differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Conduit/spawn-statues.jpg b/src/SHOU.Launcher.Desktop/Assets/Conduit/spawn-statues.jpg new file mode 100644 index 00000000..bf77ce97 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Conduit/spawn-statues.jpg differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Credits/LTCat.jpg b/src/SHOU.Launcher.Desktop/Assets/Credits/LTCat.jpg new file mode 100644 index 00000000..c8807f4e Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Credits/LTCat.jpg differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Credits/PCL-Community.png b/src/SHOU.Launcher.Desktop/Assets/Credits/PCL-Community.png new file mode 100644 index 00000000..9da559d9 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Credits/PCL-Community.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Credits/README.md b/src/SHOU.Launcher.Desktop/Assets/Credits/README.md new file mode 100644 index 00000000..06dcaad2 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Credits/README.md @@ -0,0 +1,3 @@ +# 原作者与社区头像 + +本目录头像沿用本仓库 WPF 版本 `Plain Craft Launcher 2/Images/Heads`,用于保留原作者与 PCL Community 的鸣谢,版权归各原作者。项目许可和历史说明随发行包提供。 diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/.gitattributes b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/.gitattributes new file mode 100644 index 00000000..49761734 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/.gitattributes @@ -0,0 +1 @@ +*.svg text eol=lf diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/LICENSE.txt b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/LICENSE.txt new file mode 100644 index 00000000..718bb3f0 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/LICENSE.txt @@ -0,0 +1,43 @@ +ISC License + +Copyright (c) 2026 Lucide Icons and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +--- + +The following Lucide icons are derived from the Feather project: + +airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out + +The MIT License (MIT) (for the icons listed above) + +Copyright (c) 2013-present Cole Bemis + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/SOURCE.txt b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/SOURCE.txt new file mode 100644 index 00000000..824441d1 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/SOURCE.txt @@ -0,0 +1,96 @@ +Lucide standalone SVG assets from PCL.Core/UI/Assets/IconPacks/lucide (lucide-static v1.17.0). +ISC and Feather-derived MIT notices: LICENSE.txt. No WPF view/template/font. +Bundled SVGs only normalize line endings to LF; geometry is unchanged. +SHA-256: original-source bundled-LF filename +fe55c7dc2ff3ff7cb4732395d5e2ac91eb2632b7266470ecdc667ebd1b30cf1a c32f61f0ea5aea4f11592db61e42774977a95086a4fa40656d00289a9604b9ad arrow-right-left.svg +348629d41b745ffb545f1621fdbbc81e26c7e95febf75bac1551772d0bbe60c9 0637765552b7cb580c8a1cf7d12888ad006eea2c6d49c6416e8fc40742a863b8 download.svg +da3a5bffaf91418a2f758f45f872b94b411f6ccb861cd1889912dc71c60a6c16 1111247e64bafe365fb7001a08cb7bacb72b118d2b12ce7924c7dafaadd61bb9 pencil.svg +84d0083e6fd4bea63e3f010e071326b6d65a92225a192c61d05715c97aa90491 ba893bd6736e802250e1defd89c74b024453627396d98e03b04525151c85111a play.svg +af738f7b40b1610818d4c82dc28ae15339c48b0ae8cb0ab12ac443712edb12a4 0c9d8f661749a5e74363231d6aa7ebe54cf86e0b94baa722cba2ce33376dee26 refresh-cw.svg +18baf6f316ccff028d3e072a98f970c0d0839f2b655ccffbf2c23f94c7c09b74 41efbe5469695dc0b17e02ff9e8c9a51eee31be3f94adf6816177b778f6e79b6 settings.svg +cb4d6551ad10459930c0d79405b48835c7b4a5088423b1c7a1ff4deb4cea61fa 29c993289cd30dfcfdac827a434b04b507d5e96dced412112b15489140a38df9 shirt.svg +5454ad2170ed3a638638d98b778126d95bfe63bca7d47085f550794c4bd646b1 118c21ce0a8e3ed27abfff25936485185b864c0050c6d435fed9748aaff79138 wrench.svg + +R11: extend the same licensed standalone set for shared navigation and action icons. +7e6d6619ee09c13fdb718b5100da16849b1352e60174fe9e9f335c7f852b531a 0ab21e579971b4a2bbcf336a78e4067bf07bafe7590d959bbf6d61b86061710b anvil.svg +9499133f50f2931af2d8edb9fe31044b82bb1e7f8cd49cc7580181239e402397 deb9fdc5bf03774fcf1a37946318c3d19bc6bc6f85dc4c27e6c3ddf2cde59229 arrow-left.svg +4b20fcef1fd15e1cdce208c47a03fc25a049f59e9e74bee238566abe81137e24 554fd9dcc8e6b3ac22641bf213dff146f363972b689daf8838c5d627f540c08e arrow-right.svg +63952aff642025c93d1bab3e6de5a5542cee724f7e784cc9cb3692b7772f38be 634930d40aa1e8b5cd5de26d8e34b53d2b3862526700e8ebfb41322a99a564fe arrow-up-down.svg +9a68fcef69bca7461220d3161d1825d1002a5bb1e61baba84e481162d9411f82 4b8f99c4836217108bedc4122c4375abcd8ddb45d0453fbf44775df26656c5c8 arrow-up-from-line.svg +6c5c3dc7116aef2a8b1791bc79c107a4182846f579dd5dae71c19c90b0953a9c 3ebd0d99f8541c6405c577de79687288594a78a0c9acd43e3be80f98b9317219 arrow-up-to-line.svg +f7656e22877a65aeffa8c97441f7707d22e67001f9382a699b94635cb4952f65 b0fdf1c2c376bde6824779ef280cb2490505d7792b0a737e14bf2ff566b6fa7a book-marked.svg +2259b3b9850b80da5962a166f46448f837f61a14890269ced2857f498fdb1837 55110a3d2ce1c4289f839f19eb12634bc3b30fc4f502bcda26b1e35eb8590045 box.svg +68273acabb1f5310bfbd6485329c81693b60ec7442e2a7cc79bce48160165f19 7e301f6c38337389f5a96675d14cb9d8ef8a613329e99c3dfcf7c635bdd1faae boxes.svg +56a044051b8f23baa8f070ff27ac5a9505ca8b3bce1c39e0f814c9278a9f7a93 0ccf6b8c43c46971f6f55f8e9fb4b0b2b6704e9ba2333c4e79b8cdc30e39d234 bubbles.svg +cf7afe5aac518b74b7cc866acac6c19c4900669c50cf6b19db8de612a67df5af aa8dacc2b7db300a4137da7a7b0e2b4983061d45ef8bfff2c8078796b97e7518 cat.svg +eccb0de3b293fe3e5aecddd8ee85b8f417cf116a0efa7cb6877cd04c6cef2ae5 f82467fcd5ee52bff9ee1512aece4746486e2949c17bd82e532bdc54c9bc9c23 chevron-left.svg +09157cf55412918521a6070c6496cd1a2e13001fb8ef024132427875917eda11 2cc996c552c6cca1325b69c6ab8432d8e30097a96835d205266efabd6f44b0f8 chevron-right.svg +34de65f622886f2aa5e8deac9a609f370cb0a81e0a93e57f4cccf38f20e28d41 5e2ee0d102fc43670bd7b602b6ff3609ec227a593ea82859a460ca82cdb1f287 chevrons-left.svg +33563f2dccb433751c04ec6bfa759a85172e228c19f95218b849e02c285da441 fddbe8c1e7947e32dd20527a9990e90bc82c8e34f0c115f7f38383112b2a3c8c circle-check.svg +10893b2a2a5a719f97d171869195062052853c9833b78c1ad9a03e11cdd08f13 33ff5a4d21fe59916e7a4486ff1c71ec085794dfa84c96d3a2158b59894dff13 circle-help.svg +1255324606219783149f9655684d701081f928e7cd1d630e07e216ca9ef573d3 f768b402a262e8353607a645564176ecc675a4cad407afcf38a523599592e0c1 circle-minus.svg +541ef3130696e75331327bd11709d958617aae6106e7a9ceb80522c36f9b794e aa70d9ee619ef1ef112653f61624faa366e3bf63e0607f567270056b8dfae484 circle-plus.svg +d22afcbdd1eb6cfa38f89610aa76f3cf49125dafdb48be7daef3cb31cfcce675 16814bb55c574fe316f3ea8d88f9d41403cece531be7710526056108c2d8abe8 coffee.svg +c761942aa39ad970b0de0ea59b48915230c6b068d91169e900e06fe15222d5e6 2c305fb312bb443c079494b862f70e4eaa63f47080f21d4d248ac9f0dc8b80ff copy.svg +cb22b74c282f310fbab81f0410e6451638c519400f94b77bd9155b3f4acc32af 6b60984ecb323ebf05ad3a318af0646cd222dc4610ae92b7ab15fed3c0604532 earth.svg +aa1b0dd2902b040a1ab4f07cfd4a6624c56a477ad257f96098fbccd1ff7f6c8f dcb5af7408bb9d49fd2286d705e0d3099faf2b0a7169c2dbba77cd702d47ab49 egg.svg +adaee589b9f81afafeb4386e4e49db4fec7e3ee45e5011413a819a5fad57863a abffdfe4c332187fa1e1e1a763ba96689515b5bff630135c9af82123a075d4e3 ethernet-port.svg +0d90a6151b625fbea0dc3e224cf98e3c57da34f7de7d0d4c49c0fb1d551fbb22 3231229c4b0a32913dc1da8827bf4f7eb4bdb299dd3992ea192a428d7f25c733 external-link.svg +16f048d0702b05acae4dc7efb50e5c76ee30a35bb6706b7a3f8ad97e794d3f00 cde99a47ed0a3e7d32f2e95dcfe2263e92757859eec005ce5c808c0728abfd4e file-archive.svg +5fa6a95674aad8732d3cd07e0bdb029c11af6ed185135d097adaea19bcfaa2de c4df74075225839c4ad44e4cf9cee2a27d6968a31f0aef63fcd5054813355028 file-box.svg +8d527ba16c4cdb7cc74e00bf995b653e0dec3df9c59c8c378a6d9771f51fd716 5db27ed07f6ead24786b44356dfbc92ef171ffe751767d564d765e6bf690ccd6 file-input.svg +7b9cce9ed5cf93909a4d246994e0decb789565004df81ae70c726311f24d44d5 320d195ee969cbbdf3486fdbe3406eae62aa90f6e6d534150eeeb36cac427f10 flag.svg +3a853e206639dddca81e81dea45ddd94323c7d60d92cdcca8d3b060c8a5c8aed 197245374dc28a7ffefac8b4daef616da000c79ce309ade710d4a7c9e45ad09a flask-conical.svg +6c6281472647a5c9a79f0a90cc526fa8ef2fd125222236cfaea56d6160204165 422afd22efd4b7474ee50fcdc42c37cdee1c170a81a2eb339df7ecd0d0dc3578 folder-input.svg +f6d6ae99fa67b509480db2c630ecc316bc49d6d44aa12f4fa486733a6b987c88 2ce0b0e20dcbd603d934d514f76f04ec94817079736cf30447f8839e2fb9099d folder-open.svg +06def7a422dba48e9b60cc2005f4042501b4a4082f3cb21dd36e603325ab903b 0335999cdf98ffc778fa20997dcdc88285deca1983352757c01507a2bab752b1 folder-plus.svg +a38662f14b68818404e34b94f43fb7395aa6889f8a8a2506740f0ac563ec21c7 48b103979e25c809eea12a820121bc2abebaeeed940330d69f6d8838ffb8c2f3 gauge.svg +a80b87274e42a50bcb6c2eb4d8c970472a08a21acc174e1cc3e80a232d01b5f9 a80b87274e42a50bcb6c2eb4d8c970472a08a21acc174e1cc3e80a232d01b5f9 git-pull-request-arrow.svg +1d4ecbf9fece6019289ef78739c8913bba607ce3e6b49afe0fa05e8d14c6fa0a 2b132b372a18ff8536b919b5a5842f6e3817221f04bd502f01fc7c91bcde408d globe.svg +120e7a13f643d7a54dbf4c3a0044fe7d6a5404a58d59da69d0e7049007c89144 98f4b29694e4f389ac5763c466cc2fc0fcfc908a526b5e66e7733e2c3064933e grid-2x2.svg +7d56badb4497d0ac4026c32ddfd2b9eba3c2bf8b76d77c0242f7c52ef2755c27 4c38f9042e1a81dbe1f302a8eb392c0d0fdb84f2ab18bb5f7c04d9d65dd7337a hammer.svg +cff38e837e6fa1aea70704439d638ff9c54e25fe10ddf761adecb5ec5b80d6c7 6e955825ad89a53c317c3111bffaa532902a7fe239b647e6ae54c7b421d79c87 heart-filled.svg +067e80ce8645479c5c27c26b688ac8c60fcf5b4828e3c349d739b8dbc67ca775 4e987396feba007d9b8541fbf7de0ca9968849912df7ed5dcc80487ed88f2bb8 heart-off.svg +427bca13d6068dac4415ff31e53f35f23b4ac28d54607ff22601cf2193125bb5 5822440c5dd334ead1855bc676cdccda748cf61a914083a94339cecd4c88a400 heart.svg +e8a99823cdcc0cd813ce6ec75a7f41dd42fc834da7281a3f0545de99e6943086 435049180f462ff5fc1cdb92955922a9dc553f1e1fa97e1d2f2aba428ba01761 image.svg +8aeffdf053c7b3175d4c9a12abb6296cf61ce3ced46d37deebb77aa7577da0cc 1dae7d95893f6e3a38fa2ccb186ba3b0874ee0cf8ca79e9bf31e941931c0dff0 info.svg +530be033e8ef374d3fecaf034c657a6687698506fe55b995da706b36cd74b197 ce16d0a955e3581cda17f6b2fd5c5bc2034b405f9cecc31c8ebb8495b4afc1bb layers.svg +a67a657cb1e0d9fc0436d3fbb38de32517d2e2164e5deeed9ceba49ebaf2aec9 ddbcf40d8b74269726461e1d652a53bee575c9e1955a601ba84a3d5b2dfd637e layout-dashboard.svg +30bf248e045f1468880afc729bd9d40bdd95e9a776031d0aef93c402f236b21d 062ced0bfe4c3fb61b42471ab3d16b3fc26e6b764cb043890caf31e64df58534 layout-list.svg +2a79552f614c281968b5360fbaefda555ff2893d3bb8f542007d86bbd456cfab 2e76e61a91564e7d0bc527d826573cf4d2e5581fa296092fdb13669f99ab3fe4 link-2-off.svg +b9b7b95b976c60335750aeee31cab1125e177b06a69e472e916fefe3eddeee22 5a17fc2afb01f2889deee2c90c95e37b8eb942f5ffd625b028c87995b46e87ab link-2.svg +725c1f7c1e7475d558fe9c7e8a9d198807d0b3e014daa55764a1c21548b716a6 992351bb7a93de0e783bc81c34a36d4d4e0ce505ef7db7366480193587c76054 list-x.svg +4b667d5d279d31d99f8a8481f7d5975601fec26d20749c66560a51b0fb266cde 8af58ae4f85426afc9d9ed44693a4f0c4b0e1aa06943fd5df539c2f2f79534d2 list.svg +f18670cb50b53dce1f14493d8a89909dc0e466a62fae5563d33a3f24cfb69dc7 1b29828d50f03bbc9ab420bd227e19dd87ca61443cd0533ddaaef612353c939b log-out.svg +29c509152801ba829a15d5b9983ff6eb35c910d2007099f04055f666cc94a529 859b447fe567aa1eab7f0b95d22fe9ec0c974413fdfbfca1166b93287abea4d4 message-circle.svg +5a22704d9e3d0eb45ffcad72474f211640dac489e17d5d823a59e7b30e2e2880 cb4ee2fc9e0ca0af45bd6cfa6fac8632414a7df17d139847c213272fe85d4b83 minus.svg +bf93ded79f8f4c1e3aa0f271157017ce9b2a6d6d34572930d635d99985347064 ab2f7422ba68b243d9e079dc7f405b4819c914c77264368627ba6408ded980f1 monitor-cog.svg +671b1e9b1cd5ef51f3471b27dd5d11a91f47882612dc08b6e96486c729ef7ace 56143cfe0c09f1bb96f43d48717208ecb3185688af18437932b914c69c7bcbfd move-down.svg +35eabb5cf7111b834bce9346ce0ad31470b042e68f1998214757de79ecc4cef1 3752ca174c81fd91a6256f1055683b6ddb7659b3448cf4ba42fed05ffd71e986 move-up.svg +22ea279eb169d3067c30abae44a99db67ba9276948319a874ce47d0383a96553 0b71190dd471431aec4a43040eabb920aad11cf131e1c1c5d68b23c41fafa1c9 music.svg +9163751476785f8fbf80626047a897a22fdb15651abc358e3ebc71cbbd0832e3 5de295b47805f773d478a6bc49aaef7af90d274e635fb9987714283eab8d8319 network.svg +b7daa9118d8290eb2adc3af0cd46b36dcffac693f58de24b9b84bf1cbec6a593 c8e0795e5f1cfdf0707ebd232745bd941618c1156e763074bc8b43ba74ec70f5 package-plus.svg +e0cdda4ef5e5f98486ee676f5e929bfc76c201130472de3d7e2298f99d8b6883 8df5420c0ba776f5246df8457b8a481c63c9dd7412f6c2e1e88e20f7d9d7aee4 package.svg +9d949f1d227af301b72f5b0a2f810b4a0d9b09cc49ace8960e626fc93d1016b3 1a0ea718e2201c4dba4a11a5f4746b9a75f5a112d3b75aadc3f742a25e333245 palette.svg +91099f4807ac42bb183d07a06252036636907376c764a5d55cceeef59f801efd 169c48974e2281bb38da985a3a4478395af0c01855c83e59da68611223f4bd82 power.svg +b457b52edbb17f7485c4225eb2651163c6cd0ff5abd9c0fba33e52cd07c2b8ae 5198e7a59f85d31aa7b38a20f6d1553012a27f86f11174644f1787f7e1c47876 puzzle.svg +b5a5f29f819eac5f68684be80f050b3882bfc964d929d8c4acf6eb0d3d910938 c0db5342a4ea5d6ec36f2e09369dc7085573b9fec77d48efee2414621b984e70 rocket.svg +82b86d1a7d12c3a2a6b3845415688cbba24088be7d593ef2038cb5c271c57b69 adacab2fa42faac10392839511774dc6f56a02c47baeec4f2da5c6ca9ed8978b rotate-ccw.svg +67fa4597797737520cc8855b51fa21d48b20943a1ce45918b2163004e69f373d 3eb6102bfe7ceb289e55ed62eedaa24820a564c245c16d7662b3a2c192665bc1 save.svg +e0f1be63844b89bb508b77ccb4ba57e5c50334246a06a4db3f5cc7b9818781f3 a77192441c316eb9d2858c255a6b719c68a4bd696ee917caadc2d849cdc5c6e2 scroll-text.svg +da243839e430d95ab3386d5ee32dbe3d7e4ada4b89fa96a7d2e42bc53ffbb3f6 ebc0e666566cb70e7910531d947f59be8cad186733417683823f147827b06989 scroll.svg +d1f2d559c8b7393e1b59219643099d780fc46deca10a6b762ba5a38b34b8a565 d85f7b0e84076213988f9458e58bb13e46f71ca6aa7c4c562f8a2acb2fb7e434 search.svg +1a6f700d4a3ed04ecd2f1553bcdbafd60d64259d4af11fc298bd3adc774ea941 c8590c0c2110ffc64773d8a1faba97ae3c76c717a9d219b91c93fa1438fee323 server.svg +ef66ef96df3600815fcbdd9a20165ba39a97521435b6c1d984d737b38ca3a7dd 933e8e2899c2f1d1992c40e1c2f33ae5e9c2b5d2dc172ec7e12efc45006a3433 share-2.svg +e7f262032060171d6ad433cb03cd592e19d3a48827ca2a2e82906d19b942d657 0bfa6738b92f05e3109c5154a0f0f2ed2e80f3c117cf0a3e80420e94b777afaf shield-check.svg +906cf2caeb0934450c0bd9ecef918b2a93d0a6edd3704e255299223f624afa77 10fee855b80ece2628d72c16800f17ee7775153cf2fbfca2a3fbf93c7d4a9ebe sparkles.svg +bf9459307050114fb3924f5a007d3be6fac487c64feed0e935c4ac98e6d65773 6ef4bed2e9cc0fea9c6b5b89aaab2fcfe2ad6d317dfe0703c49b114ed82b12b4 tool-case.svg +d826644c3801370f4feb51ca16a8fc710b3c73ffe42af00ebcb8fda1ecdab72e 183c2fbda3b9af0412fd7ac4888928461d00bed0620c97bdcc8acecbcc6c3314 trash-2.svg +dced410589d46f7b2be2d3a301c0feea08d0f0aea3b1134ce4d34f5779633b6f dced410589d46f7b2be2d3a301c0feea08d0f0aea3b1134ce4d34f5779633b6f triangle-alert.svg +ce16727da1c87d218209f85ffa05654e4960c12085e35e1458b3d13b1360480d 5c5eea90e4f1dfe5627227326c05ed973825c3125246cee732a053c4f723e52b upload.svg +5575c6db939eb0bb681499dff5afdaf3385ac2c890b9490aea565b1b3cad351b ad51320428c9b9fc8f45c3db7deb656dc4e8fe0b3025498959087cef062260af user-plus.svg +51217971e30e9b41cdefb21d94ec90f7a9accaf5e26abb30f724e6d2e8f6ac45 b2503ea9c27fd409e13a4889f36601cf641ab1f1e44dc576d3171aa0804cf6f7 user.svg +56aec15843d27bdef7d39068e7c441d7ac2dbbf94a441b3c3509bbc39fe9ef3e ffce86dfb4b38ff475f3b79e354d255eab7bc90a491f29e63444cff8e2c37223 x.svg + +R12 additional pinned Lucide asset (ISC/Feather MIT notices unchanged): https://raw.githubusercontent.com/lucide-icons/lucide/0.468.0/icons/pickaxe.svg +29477e935c4be5efcfe105a9f937bc790bb8f40fd571e219202d6571e2831638 29477e935c4be5efcfe105a9f937bc790bb8f40fd571e219202d6571e2831638 pickaxe.svg diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/anvil.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/anvil.svg new file mode 100644 index 00000000..1ced4506 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/anvil.svg @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-left.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-left.svg new file mode 100644 index 00000000..f448eefc --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-left.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-right-left.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-right-left.svg new file mode 100644 index 00000000..150693cb --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-right-left.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-right.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-right.svg new file mode 100644 index 00000000..2ed86ed1 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-right.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-up-down.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-up-down.svg new file mode 100644 index 00000000..a9b1d653 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-up-down.svg @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-up-from-line.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-up-from-line.svg new file mode 100644 index 00000000..2a60541f --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-up-from-line.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-up-to-line.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-up-to-line.svg new file mode 100644 index 00000000..fc2442c4 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/arrow-up-to-line.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/book-marked.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/book-marked.svg new file mode 100644 index 00000000..4ba30e64 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/book-marked.svg @@ -0,0 +1,14 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/box.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/box.svg new file mode 100644 index 00000000..8dda3bea --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/box.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/boxes.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/boxes.svg new file mode 100644 index 00000000..fddb08c5 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/boxes.svg @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/bubbles.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/bubbles.svg new file mode 100644 index 00000000..c11214f2 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/bubbles.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/cat.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/cat.svg new file mode 100644 index 00000000..3a8805fd --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/cat.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/chevron-left.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/chevron-left.svg new file mode 100644 index 00000000..555eb2ec --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/chevron-left.svg @@ -0,0 +1,15 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/chevron-right.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/chevron-right.svg new file mode 100644 index 00000000..0ee0a0ee --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/chevron-right.svg @@ -0,0 +1,15 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/chevrons-left.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/chevrons-left.svg new file mode 100644 index 00000000..9eff17da --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/chevrons-left.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/circle-check.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/circle-check.svg new file mode 100644 index 00000000..f0584aee --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/circle-check.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/circle-help.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/circle-help.svg new file mode 100644 index 00000000..064b0b27 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/circle-help.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/circle-minus.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/circle-minus.svg new file mode 100644 index 00000000..18479ffc --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/circle-minus.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/circle-plus.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/circle-plus.svg new file mode 100644 index 00000000..b0e82db3 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/circle-plus.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/coffee.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/coffee.svg new file mode 100644 index 00000000..bb5f10e5 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/coffee.svg @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/copy.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/copy.svg new file mode 100644 index 00000000..4f21fb58 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/copy.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/download.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/download.svg new file mode 100644 index 00000000..dabb2992 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/download.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/earth.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/earth.svg new file mode 100644 index 00000000..f8ba3ffb --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/earth.svg @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/egg.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/egg.svg new file mode 100644 index 00000000..37c694a6 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/egg.svg @@ -0,0 +1,13 @@ + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/ethernet-port.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/ethernet-port.svg new file mode 100644 index 00000000..38a05346 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/ethernet-port.svg @@ -0,0 +1,17 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/external-link.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/external-link.svg new file mode 100644 index 00000000..f0397f03 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/external-link.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/file-archive.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/file-archive.svg new file mode 100644 index 00000000..8ce27db4 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/file-archive.svg @@ -0,0 +1,20 @@ + + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/file-box.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/file-box.svg new file mode 100644 index 00000000..44ec7511 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/file-box.svg @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/file-input.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/file-input.svg new file mode 100644 index 00000000..8b069712 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/file-input.svg @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/flag.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/flag.svg new file mode 100644 index 00000000..81fe93d4 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/flag.svg @@ -0,0 +1,15 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/flask-conical.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/flask-conical.svg new file mode 100644 index 00000000..82a674f8 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/flask-conical.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/folder-input.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/folder-input.svg new file mode 100644 index 00000000..b3e342cc --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/folder-input.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/folder-open.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/folder-open.svg new file mode 100644 index 00000000..54559af3 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/folder-open.svg @@ -0,0 +1,15 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/folder-plus.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/folder-plus.svg new file mode 100644 index 00000000..af4e9df6 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/folder-plus.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/gauge.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/gauge.svg new file mode 100644 index 00000000..64249b26 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/gauge.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/git-pull-request-arrow.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/git-pull-request-arrow.svg new file mode 100644 index 00000000..c7a7e6d5 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/git-pull-request-arrow.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/globe.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/globe.svg new file mode 100644 index 00000000..b6901237 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/globe.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/grid-2x2.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/grid-2x2.svg new file mode 100644 index 00000000..da77118b --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/grid-2x2.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/hammer.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/hammer.svg new file mode 100644 index 00000000..4d7d922b --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/hammer.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/heart-filled.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/heart-filled.svg new file mode 100644 index 00000000..b70c3afe --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/heart-filled.svg @@ -0,0 +1,12 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/heart-off.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/heart-off.svg new file mode 100644 index 00000000..170a439e --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/heart-off.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/heart.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/heart.svg new file mode 100644 index 00000000..17aa80db --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/heart.svg @@ -0,0 +1,15 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/image.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/image.svg new file mode 100644 index 00000000..2207e6d2 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/image.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/info.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/info.svg new file mode 100644 index 00000000..5186f843 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/info.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/layers.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/layers.svg new file mode 100644 index 00000000..a3b69ae3 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/layers.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/layout-dashboard.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/layout-dashboard.svg new file mode 100644 index 00000000..5798ea72 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/layout-dashboard.svg @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/layout-list.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/layout-list.svg new file mode 100644 index 00000000..8d71a7ad --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/layout-list.svg @@ -0,0 +1,18 @@ + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/link-2-off.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/link-2-off.svg new file mode 100644 index 00000000..9ed7fe65 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/link-2-off.svg @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/link-2.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/link-2.svg new file mode 100644 index 00000000..627adb76 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/link-2.svg @@ -0,0 +1,15 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/list-x.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/list-x.svg new file mode 100644 index 00000000..e9905e1e --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/list-x.svg @@ -0,0 +1,17 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/list.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/list.svg new file mode 100644 index 00000000..831250d6 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/list.svg @@ -0,0 +1,20 @@ + + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/log-out.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/log-out.svg new file mode 100644 index 00000000..cee88543 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/log-out.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/message-circle.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/message-circle.svg new file mode 100644 index 00000000..d432c95f --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/message-circle.svg @@ -0,0 +1,15 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/minus.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/minus.svg new file mode 100644 index 00000000..253a94c0 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/minus.svg @@ -0,0 +1,15 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/monitor-cog.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/monitor-cog.svg new file mode 100644 index 00000000..85297971 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/monitor-cog.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/move-down.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/move-down.svg new file mode 100644 index 00000000..1281defa --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/move-down.svg @@ -0,0 +1,14 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/move-up.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/move-up.svg new file mode 100644 index 00000000..bb0f09d1 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/move-up.svg @@ -0,0 +1,14 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/music.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/music.svg new file mode 100644 index 00000000..04f12e4f --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/music.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/network.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/network.svg new file mode 100644 index 00000000..5f69fdbe --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/network.svg @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/package-plus.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/package-plus.svg new file mode 100644 index 00000000..f2e04c2f --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/package-plus.svg @@ -0,0 +1,18 @@ + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/package.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/package.svg new file mode 100644 index 00000000..c3828775 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/package.svg @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/palette.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/palette.svg new file mode 100644 index 00000000..8c0ef5d4 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/palette.svg @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/pencil.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/pencil.svg new file mode 100644 index 00000000..46ef0790 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/pencil.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/pickaxe.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/pickaxe.svg new file mode 100644 index 00000000..fd134ab9 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/pickaxe.svg @@ -0,0 +1,16 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/play.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/play.svg new file mode 100644 index 00000000..f215912d --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/play.svg @@ -0,0 +1,15 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/power.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/power.svg new file mode 100644 index 00000000..3f148982 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/power.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/puzzle.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/puzzle.svg new file mode 100644 index 00000000..60ab759b --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/puzzle.svg @@ -0,0 +1,15 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/refresh-cw.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/refresh-cw.svg new file mode 100644 index 00000000..fb1e908c --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/refresh-cw.svg @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/rocket.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/rocket.svg new file mode 100644 index 00000000..5a19ecab --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/rocket.svg @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/rotate-ccw.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/rotate-ccw.svg new file mode 100644 index 00000000..0c7874f7 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/rotate-ccw.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/save.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/save.svg new file mode 100644 index 00000000..8e9a83db --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/save.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/scroll-text.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/scroll-text.svg new file mode 100644 index 00000000..9f88464f --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/scroll-text.svg @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/scroll.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/scroll.svg new file mode 100644 index 00000000..2cdf751e --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/scroll.svg @@ -0,0 +1,14 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/search.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/search.svg new file mode 100644 index 00000000..9c1fd4bb --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/search.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/server.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/server.svg new file mode 100644 index 00000000..1fd855c6 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/server.svg @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/settings.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/settings.svg new file mode 100644 index 00000000..3bdb7be9 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/settings.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/share-2.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/share-2.svg new file mode 100644 index 00000000..9ae9d182 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/share-2.svg @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/shield-check.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/shield-check.svg new file mode 100644 index 00000000..f39586e2 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/shield-check.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/shirt.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/shirt.svg new file mode 100644 index 00000000..b301af9b --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/shirt.svg @@ -0,0 +1,15 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/sparkles.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/sparkles.svg new file mode 100644 index 00000000..42ad3c40 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/sparkles.svg @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/tool-case.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/tool-case.svg new file mode 100644 index 00000000..9880e2f2 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/tool-case.svg @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/trash-2.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/trash-2.svg new file mode 100644 index 00000000..5baf972a --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/trash-2.svg @@ -0,0 +1,19 @@ + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/triangle-alert.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/triangle-alert.svg new file mode 100644 index 00000000..1a5b6989 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/triangle-alert.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/upload.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/upload.svg new file mode 100644 index 00000000..08392cf4 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/upload.svg @@ -0,0 +1,17 @@ + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/user-plus.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/user-plus.svg new file mode 100644 index 00000000..00da7e7c --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/user-plus.svg @@ -0,0 +1,18 @@ + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/user.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/user.svg new file mode 100644 index 00000000..cecc1133 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/user.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/wrench.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/wrench.svg new file mode 100644 index 00000000..5b82c182 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/wrench.svg @@ -0,0 +1,15 @@ + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/x.svg b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/x.svg new file mode 100644 index 00000000..948a38f6 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Icons/Lucide/x.svg @@ -0,0 +1,16 @@ + + + + + diff --git a/src/SHOU.Launcher.Desktop/Assets/Minecraft/Anvil.png b/src/SHOU.Launcher.Desktop/Assets/Minecraft/Anvil.png new file mode 100644 index 00000000..4a0df3e7 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Minecraft/Anvil.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Minecraft/Cleanroom.png b/src/SHOU.Launcher.Desktop/Assets/Minecraft/Cleanroom.png new file mode 100644 index 00000000..8736ac06 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Minecraft/Cleanroom.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Minecraft/CobbleStone.png b/src/SHOU.Launcher.Desktop/Assets/Minecraft/CobbleStone.png new file mode 100644 index 00000000..f1cac180 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Minecraft/CobbleStone.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Minecraft/CommandBlock.png b/src/SHOU.Launcher.Desktop/Assets/Minecraft/CommandBlock.png new file mode 100644 index 00000000..ace887c1 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Minecraft/CommandBlock.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Minecraft/Egg.png b/src/SHOU.Launcher.Desktop/Assets/Minecraft/Egg.png new file mode 100644 index 00000000..886d6b5d Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Minecraft/Egg.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Minecraft/Fabric.png b/src/SHOU.Launcher.Desktop/Assets/Minecraft/Fabric.png new file mode 100644 index 00000000..064d3e6c Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Minecraft/Fabric.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Minecraft/GoldBlock.png b/src/SHOU.Launcher.Desktop/Assets/Minecraft/GoldBlock.png new file mode 100644 index 00000000..417a3c06 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Minecraft/GoldBlock.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Minecraft/Grass.png b/src/SHOU.Launcher.Desktop/Assets/Minecraft/Grass.png new file mode 100644 index 00000000..dce7c148 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Minecraft/Grass.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Minecraft/GrassPath.png b/src/SHOU.Launcher.Desktop/Assets/Minecraft/GrassPath.png new file mode 100644 index 00000000..9ced72ed Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Minecraft/GrassPath.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Minecraft/LabyMod.png b/src/SHOU.Launcher.Desktop/Assets/Minecraft/LabyMod.png new file mode 100644 index 00000000..94bc98cb Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Minecraft/LabyMod.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Minecraft/NeoForge.png b/src/SHOU.Launcher.Desktop/Assets/Minecraft/NeoForge.png new file mode 100644 index 00000000..7d46d392 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Minecraft/NeoForge.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Minecraft/Quilt.png b/src/SHOU.Launcher.Desktop/Assets/Minecraft/Quilt.png new file mode 100644 index 00000000..7a29ce57 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Minecraft/Quilt.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Minecraft/README.md b/src/SHOU.Launcher.Desktop/Assets/Minecraft/README.md new file mode 100644 index 00000000..897f8abe --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Assets/Minecraft/README.md @@ -0,0 +1,26 @@ +# Minecraft 版本目录图标 + +直接复用仓库独立位图 `Plain Craft Launcher 2/Images/Blocks/Grass.png` 和 `CommandBlock.png`,未读取旧 WPF 视图或样式。素材归属 Minecraft/Mojang 及原作者;不另行授予许可。 + +- Grass.png SHA-256: `f2a69811c4d596349b15643e7ae75870cfbc82cf5dc6d542c62de1f9792825ab` +- CommandBlock.png SHA-256: `3065e07b0777806c3f9b9460e9eb2b0539834122665fa6018d80cfc136db8e30` + +R12:从 v1.5.0 同一独立图片目录复用 Anvil、Fabric、Quilt;仅用于目录行图标,归属与上方相同。 + +- Anvil.png SHA-256: `a06354cdd9dd58233a9e8ba24666572ffdf8df0bf84a7256152616dd925ad975` +- Fabric.png SHA-256: `87ef88be536f49b2a7cc61e04cc2e1ae034498d3d450291950e21e8e552e39e9` +- Quilt.png SHA-256: `746a0f1e985bd15f15663356ae9bd08e96df237379af91625487db9cddc60a23` + +R13:从同一独立图片目录复用 Cleanroom、LabyMod、Egg,仅用于安装器目录;素材归属沿用上文。 +- Cleanroom.png SHA-256: `7dd52eab31b09327333ea06a7adfe95426e21400002955e659d82fa50ebc0271` +- LabyMod.png SHA-256: `44d9b755652e17ba1ee0ee450692c9c1524800769b55858e205027392fc473c4` +- Egg.png SHA-256: `ff7a4a47c643055087c903a20e293c472cdce9e4fa45cf6293c7412a8dff3554` + +R20:从同一独立图片目录复用以下实例图标,素材归属沿用上文;不读取旧 WPF 视图或样式。 + +- NeoForge.png SHA-256: `62517cda8453e91bc1f0aba1d65e0753b63cd5e8c7e533553c7508bb75d76a6e` +- GrassPath.png SHA-256: `aebf8ce46cb065e01cbc881ac719e7f5b7df2fe6b7cbce6bbbd7e6fb27957fed` +- CobbleStone.png SHA-256: `718c6cca154325d7d53f45770a298f8c555114db40baffcb02ba3f1bdd080398` +- RedstoneLampOn.png SHA-256: `5e06b19740eb95681815c125b611e5d750697b94d179a83d9cad0d93aca2c2da` +- GoldBlock.png SHA-256: `4fc6dadce45d6a8564235c7651ae41ac5fd2d3edf24af880935358687356c5e8` +- RedstoneBlock.png SHA-256: `fa7c97a193837818e4eef7c94a57f84e894ec8f077af6b6d105db938377cba46` diff --git a/src/SHOU.Launcher.Desktop/Assets/Minecraft/RedstoneBlock.png b/src/SHOU.Launcher.Desktop/Assets/Minecraft/RedstoneBlock.png new file mode 100644 index 00000000..088e56b2 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Minecraft/RedstoneBlock.png differ diff --git a/src/SHOU.Launcher.Desktop/Assets/Minecraft/RedstoneLampOn.png b/src/SHOU.Launcher.Desktop/Assets/Minecraft/RedstoneLampOn.png new file mode 100644 index 00000000..5f9e052b Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Assets/Minecraft/RedstoneLampOn.png differ diff --git a/src/SHOU.Launcher.Desktop/Bootstrap.Commands.cs b/src/SHOU.Launcher.Desktop/Bootstrap.Commands.cs new file mode 100644 index 00000000..22a7cddd --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Bootstrap.Commands.cs @@ -0,0 +1,114 @@ +using System.Runtime.InteropServices; +using System.Text; +using System.Text.Json; +using PCL.Core.Conduit; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Configuration; + +namespace SHOU.Launcher.Desktop; + +public static partial class Bootstrap +{ + private static async Task RunCommandAsync() + { + var launcher = Launcher ?? throw new InvalidOperationException("Launcher is not initialized."); + var timeoutSeconds = int.TryParse(ArgumentValue("--exit-after"), out var value) ? value : 1800; + using var deadline = new CancellationTokenSource(TimeSpan.FromSeconds(timeoutSeconds)); + var ct = deadline.Token; + if (ArgumentValue("--launch-instance") is { } requested) + { + if (!launcher.Snapshot.Instances.Any(i => i.Id == requested)) { WriteCommandReport(new { status = "FAIL", message = "脚本对应的实例不存在,请打开启动器重新导出。" }); return 2; } + if (!launcher.Snapshot.Accounts.Any(a => a.Id == launcher.Snapshot.SelectedAccountId)) { WriteCommandReport(new { status = "FAIL", message = "请先打开启动器登录并选择账户,再运行脚本。" }); return 3; } + await SavedInstanceLaunch.RunAsync(launcher, requested, ct).ConfigureAwait(false); + return 0; + } + if (Arguments.Contains("--inspect-java-trust", StringComparer.Ordinal)) + { + var source = ArgumentValue("--java-path") ?? throw new ArgumentException("Java trust validation requires an explicit Java path."); + var findings = await launcher.InspectJavaTrustAsync(source, ct).ConfigureAwait(false); + WriteCommandReport(new { status = "PASS", scope = "read_only_java_trust_inspection", source, findings, + sourceSha = launcher.Snapshot.Build.SourceSha, launcher.Paths.IsIsolated }); return 0; + } + if (Arguments.Contains("--derive-java-trust", StringComparer.Ordinal)) + { + var source = ArgumentValue("--java-path") ?? throw new ArgumentException("Java trust derivation requires an explicit Java path."); + var derivation = await launcher.CreateRepairedJavaCopyAsync(source, ct).ConfigureAwait(false); + WriteCommandReport(new { status = "PASS", scope = "copied_java_trust_derivation", derivation, + sourceSha = launcher.Snapshot.Build.SourceSha, launcher.Paths.IsIsolated, + evidenceBoundary = "Source runtime is retained; policy/provenance/probe do not prove Minecraft GUI acceptance." }); return 0; + } + if (Arguments.Contains("--diagnostics", StringComparer.Ordinal)) + { + var java = await launcher.DiscoverJavaAsync(ct).ConfigureAwait(false); + WriteCommandReport(new { status = "PASS", scope = "diagnostics_only", build = launcher.Snapshot.Build, + platform = launcher.Snapshot.Platform, runtime = RuntimeInformation.FrameworkDescription, + paths = new { launcher.Paths.DataDirectory, launcher.Paths.SharedDataDirectory, launcher.Paths.LocalDataDirectory, + launcher.Paths.CacheDirectory, launcher.Paths.LogsDirectory, launcher.Paths.RuntimesDirectory, + launcher.Paths.InstancesDirectory, launcher.Paths.TempDirectory, launcher.Paths.ResourcesDirectory, + launcher.Paths.LockFile, launcher.Paths.IsIsolated }, + configurationAssembly = typeof(BuildConfiguration).Assembly.GetName().Name, dataLockAcquired = dataLease is not null, + java, generatedSettings = GeneratedSettingsSchema.Entries, lifecycle = GeneratedLifecycle.Entries, + javaBootstrap = new { available = productJavaBootstrap is not null, sha256 = productJavaBootstrap?.Sha256 }, + capabilities = new { launcher.Capabilities.SupportsCredentialPersistence, launcher.Capabilities.SupportsSystemProxy, launcher.Capabilities.Limitations } }); + return 0; + } + if (ArgumentValue("--credential-smoke") is { } credentialAction) + { + var run = Core.IO.SafePath.Identifier(ArgumentValue("--run-id") ?? throw new ArgumentException("Credential smoke requires run-id.")); + var key = "native-smoke:" + run; + var store = platformServices!.Credentials; + var expected = Encoding.UTF8.GetBytes("SHOU isolated native credential fixture v1"); + if (credentialAction == "write") await store.WriteAsync(key, expected, ct).ConfigureAwait(false); + else if (credentialAction == "delete") await store.DeleteAsync(key, ct).ConfigureAwait(false); + else if (credentialAction != "read") throw new ArgumentException("Unknown credential smoke action."); + var actual = await store.ReadAsync(key, ct).ConfigureAwait(false); + var matched = credentialAction == "delete" ? actual is null : actual is not null && System.Security.Cryptography.CryptographicOperations.FixedTimeEquals(actual, expected); + if (actual is not null) System.Security.Cryptography.CryptographicOperations.ZeroMemory(actual); + WriteCommandReport(new { status = matched ? "PASS" : "FAIL", scope = "isolated_native_credential", action = credentialAction, + matched, launcher.Paths.CredentialScope, launcher.Paths.IsIsolated, sourceSha = launcher.Snapshot.Build.SourceSha }); + return matched ? 0 : 1; + } + if (ArgumentValue("--dry-run-launch") is { } selected) + { + var plan = await launcher.BuildLaunchPlanAsync(selected, ct).ConfigureAwait(false); + WriteCommandReport(new { status = "PASS", scope = "launch_plan_only", plan = plan.ToRedactedReport() }); return 0; + } + var prepare = Arguments.Contains("--prepare-minecraft", StringComparer.Ordinal); + var launch = Arguments.Contains("--launch-minecraft", StringComparer.Ordinal); + if (!prepare && !launch) return null; + var settings = launcher.Snapshot.Settings; + if (ArgumentValue("--java-path") is { } javaPath) settings = settings with { JavaExecutable = javaPath }; + if (Arguments.Contains("--official-downloads", StringComparer.Ordinal)) + settings = settings with { DownloadSourcesJson = JsonSerializer.Serialize(DownloadSources.Defaults().Where(source => source.Layout == SourceLayout.Official)) }; + await launcher.SaveSettingsAsync(settings, ct).ConfigureAwait(false); + var profileName = ArgumentValue("--offline-profile") ?? "SHOUNightTest"; + var account = launcher.Snapshot.Accounts.FirstOrDefault(a => a.Kind == AccountKind.Offline && a.DisplayName == profileName) + ?? await launcher.AddOfflineAccountAsync(profileName, ct).ConfigureAwait(false); + await launcher.SelectAccountAsync(account.Id, ct).ConfigureAwait(false); + var version = ArgumentValue("--version") ?? "1.21.1"; + var loader = ArgumentValue("--loader") ?? "vanilla"; + if (loader is not ("vanilla" or "fabric" or "quilt" or "forge" or "neoforge" or "cleanroom" or "legacyfabric" or "optifine" or "labymod" or "liteloader")) throw new ArgumentException("Unsupported loader."); + var loaderVersion = ArgumentValue("--loader-version") ?? (loader == "fabric" ? "0.16.14" : loader == "vanilla" ? "" : throw new ArgumentException("An explicit loader-version is required.")); + var instance = launcher.Snapshot.Instances.FirstOrDefault(i => i.Loader == loader && (loader == "vanilla" ? i.VersionId == version : i.LoaderVersion == loaderVersion && Core.Instances.InstanceIdentity.GameVersion(i) == version)) + ?? (loader == "vanilla" ? await launcher.CreateInstanceAsync("Minecraft " + version + " · 隔离验证", version, ct).ConfigureAwait(false) + : await ((ILoaderInstanceService)launcher).CreateLoaderInstanceAsync(loader + " " + version + " · 隔离验证", version, loader, loaderVersion, ct).ConfigureAwait(false)); + await launcher.SelectInstanceAsync(instance.Id, ct).ConfigureAwait(false); + if (launch) + { + await launcher.LaunchAsync(instance.Id, "none", ct).ConfigureAwait(false); + try { while (launcher.Snapshot.GameProcessId is not null) await Task.Delay(200, ct).ConfigureAwait(false); } + catch (OperationCanceledException) { await launcher.StopGameAsync().ConfigureAwait(false); throw; } + var success = launcher.Snapshot.State != "Error"; + WriteCommandReport(new { status = success ? "PASS" : "FAIL", scope = "process_lifecycle_only", instanceId = instance.Id, + version, loader, loaderVersion = loader == "vanilla" ? null : loaderVersion, offlineProfile = true, serverJoined = false, sourceSha = launcher.Snapshot.Build.SourceSha, + finalState = launcher.Snapshot.State, evidenceBoundary = "Minecraft main-menu evidence must be observed separately through native GUI" }); + return success ? 0 : 1; + } + await launcher.InstallInstanceAsync(instance.Id, ct).ConfigureAwait(false); + var dryRun = await launcher.BuildLaunchPlanAsync(instance.Id, ct).ConfigureAwait(false); + WriteCommandReport(new { status = "PASS", scope = "verified_install_and_plan_only", instanceId = instance.Id, + version, loader, loaderVersion = loader == "vanilla" ? null : loaderVersion, offlineProfile = true, serverJoined = false, sourceSha = launcher.Snapshot.Build.SourceSha, + plan = dryRun.ToRedactedReport(), evidenceBoundary = "No game was started; this is not L4 evidence" }); + return 0; + } +} diff --git a/src/SHOU.Launcher.Desktop/Bootstrap.Hosting.cs b/src/SHOU.Launcher.Desktop/Bootstrap.Hosting.cs new file mode 100644 index 00000000..ca80fbdc --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Bootstrap.Hosting.cs @@ -0,0 +1,129 @@ +using System.Runtime.InteropServices; +using System.Text.Json; +using SHOU.Launcher.Core; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Configuration; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Desktop.Platform; +using Avalonia; + +namespace SHOU.Launcher.Desktop; + +public static partial class Bootstrap +{ + private static PlatformServices? platformServices; + private static IDataDirectoryLease? dataLease; + private static HttpClient? httpClient; + private static NetworkOptions? networkOptions; + private static IVerifiedDownloader? verifiedDownloader; + public static int Run(string[] args) + { + Arguments = args; + var exitCode = 1; + try + { + ValidateArguments(); + if (args.Contains("--smoke-test", StringComparer.Ordinal) && ArgumentValue("--exit-after") is null) + Arguments = [.. args, "--exit-after", "20"]; + InitializeHostAsync().GetAwaiter().GetResult(); + var command = RunCommandAsync().GetAwaiter().GetResult(); + // Keep AppKit startup on the original STA/main thread, after async services have completed. + if (command is { } result) exitCode = result; + else + { + MacDisplayLinkObservation = Platform.MacOS.MacDisplayLinkStartup.Prepare(OperatingSystem.IsMacOS()); + exitCode = Program.BuildAvaloniaApp().StartWithClassicDesktopLifetime(Arguments); + } + } + catch (Exception ex) + { + Console.Error.WriteLine("Launcher startup/command failed: " + ex.GetType().Name); + TryWriteFailureReport(ex, "startup_or_command"); + exitCode = 1; + } + finally + { + try { ShutdownHostAsync().GetAwaiter().GetResult(); } + catch (Exception ex) { Console.Error.WriteLine("Launcher shutdown failed: " + ex.GetType().Name); TryWriteFailureReport(ex, "shutdown"); exitCode = 1; } + } + return exitCode; + } + private static async Task InitializeHostAsync() + { + var data = ArgumentValue("--data-dir"); + if (data is null && OperatingSystem.IsWindows()) + data = Platform.Windows.WindowsStartupPaths.ResolveDataDirectory(AppContext.BaseDirectory, + Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)); + networkOptions = new(); + httpClient = new(new ConfigurableNetworkHandler(networkOptions)) { Timeout = TimeSpan.FromSeconds(40), MaxResponseContentBufferSize = 4 * 1024 * 1024 }; + httpClient.DefaultRequestHeaders.UserAgent.ParseAdd("SHOU-Launcher/1.6.2"); + verifiedDownloader = new DownloadCoordinator(httpClient, new VerifiedDownloader(httpClient, networkOptions), networkOptions, + warning => Console.Error.WriteLine(warning)); + platformServices = PlatformServicesFactory.Create(new(data, ArgumentValue("--java-path")), verifiedDownloader); + // Constructors above do not create data or read credentials. The lease is the first write. + dataLease = platformServices.DataLock.Acquire(platformServices.Paths); + ExternalLauncher = platformServices.ExternalLauncher; + productJavaBootstrap = DescribeJavaBootstrap(platformServices.Paths); + Launcher = new LauncherService(platformServices, httpClient, verifiedDownloader, networkOptions, javaBootstrap: productJavaBootstrap); + await Launcher.InitializeAsync().ConfigureAwait(false); + if (productJavaBootstrap is not null) await InstallJavaBootstrapAsync(productJavaBootstrap).ConfigureAwait(false); + } + private static async Task ShutdownHostAsync() + { + try { if (Launcher is not null) await Launcher.DisposeAsync().ConfigureAwait(false); } + finally + { + try { if (platformServices?.Processes is IAsyncDisposable processes) await processes.DisposeAsync().ConfigureAwait(false); } + finally { httpClient?.Dispose(); dataLease?.Dispose(); dataLease = null; } + } + } + private static void ValidateArguments() + { + var switches = new HashSet(["--diagnostics","--smoke-test","--prepare-minecraft","--launch-minecraft","--official-downloads","--inspect-java-trust","--derive-java-trust"], StringComparer.Ordinal); + var valued = new HashSet(["--data-dir","--result-file","--run-id","--exit-after","--java-path","--version","--loader","--loader-version","--offline-profile","--launch-instance","--dry-run-launch","--credential-smoke"], StringComparer.Ordinal); + for (var i = 0; i < Arguments.Length; i++) + { + var option = Arguments[i]; + if (switches.Contains(option) || option.StartsWith("-psn_", StringComparison.Ordinal)) continue; + if (!valued.Contains(option) || ++i >= Arguments.Length || Arguments[i].StartsWith("--", StringComparison.Ordinal)) throw new ArgumentException("Unknown or incomplete launcher option."); + } + foreach (var flag in new[] { "--data-dir", "--result-file", "--java-path" }) + if (ArgumentValue(flag) is { } path && !Path.IsPathFullyQualified(path)) throw new ArgumentException(flag + " requires an absolute path."); + var testMode = Arguments.Any(a => a is "--smoke-test" or "--prepare-minecraft" or "--launch-minecraft" or "--credential-smoke" or "--inspect-java-trust" or "--derive-java-trust"); + if (testMode && ArgumentValue("--data-dir") is null) throw new ArgumentException("Smoke/game/credential validation requires a fully isolated --data-dir."); + if (ArgumentValue("--exit-after") is { } value && (!int.TryParse(value, out var seconds) || seconds is <= 0 or > 3600)) throw new ArgumentException("exit-after must be 1–3600 seconds."); + } + private static void WriteCommandReport(object result) + { + var json = JsonSerializer.Serialize(result, new JsonSerializerOptions { WriteIndented = true }); + if (ArgumentValue("--result-file") is { } file) + { + if (!Path.IsPathFullyQualified(file)) throw new ArgumentException("Result file must be absolute."); + Directory.CreateDirectory(Path.GetDirectoryName(file)!); + var temporary = file + ".tmp-" + Guid.NewGuid().ToString("N"); + File.WriteAllText(temporary, json); File.Move(temporary, file, true); + } + Console.WriteLine(json); + } + private static void TryWriteFailureReport(Exception error, string stage) + { + try { WriteCommandReport(new { status = "FAIL", stage, errorType = error.GetType().Name, + message = Launcher?.Snapshot.Error ?? "命令或清理未完成;未作成功声明。", + // Method identities diagnose native startup without copying exception text, argv, + // response bodies, file contents, credentials or source-file paths into a report. + stackMethods = new System.Diagnostics.StackTrace(error, false).GetFrames() + .Select(frame => frame.GetMethod()).Where(method => method is not null) + .Select(method => method!.DeclaringType?.FullName + "." + method.Name).Take(32).ToArray(), + nativeDisplayLink = error is Platform.MacOS.DisplayLinkStartupException display ? display.Report : MacDisplayLinkObservation, + nativeRenderTimerStatus = Platform.MacOS.MacDisplayLinkStartup.NativeFailureStatus(error), + innerTypes = InnerExceptionTypes(error), reportedAt = DateTimeOffset.UtcNow }); } + catch (Exception reportError) { Console.Error.WriteLine("Failure report could not be written: " + reportError.GetType().Name); } + } + private static string[] InnerExceptionTypes(Exception error) + { + var types = new List(); + for (var inner = error.InnerException; inner is not null && types.Count < 8; inner = inner.InnerException) + types.Add(inner.GetType().FullName ?? inner.GetType().Name); + return types.ToArray(); + } +} diff --git a/src/SHOU.Launcher.Desktop/Bootstrap.JavaResource.cs b/src/SHOU.Launcher.Desktop/Bootstrap.JavaResource.cs new file mode 100644 index 00000000..31c36c13 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Bootstrap.JavaResource.cs @@ -0,0 +1,44 @@ +using System.Reflection; +using System.Security.Cryptography; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Desktop; + +public static partial class Bootstrap +{ + private const string JavaResourceName = "SHOU.Launcher.Desktop.JavaBootstrap.jar"; + private static JavaBootstrapArtifact? productJavaBootstrap; + private static JavaBootstrapArtifact? DescribeJavaBootstrap(IAppPaths paths) + { + var assembly = typeof(Bootstrap).Assembly; + var hash = assembly.GetCustomAttributes().FirstOrDefault(a => a.Key == "SHOU.JavaBootstrap.Sha256")?.Value; + var exists = assembly.GetManifestResourceNames().Contains(JavaResourceName, StringComparer.Ordinal); + if (hash is null && !exists) return null; // Direct developer builds cannot launch real accounts. + if (hash?.Length != 64 || hash.Any(c => !Uri.IsHexDigit(c)) || !exists) throw new InvalidDataException("Trusted Java bootstrap resource identity is incomplete."); + return new(SafePath.Within(paths.CacheDirectory, "launcher-bootstrap/" + hash.ToLowerInvariant() + "/bootstrap.jar"), hash.ToLowerInvariant()); + } + private static async Task InstallJavaBootstrapAsync(JavaBootstrapArtifact artifact) + { + await using var input = typeof(Bootstrap).Assembly.GetManifestResourceStream(JavaResourceName) + ?? throw new InvalidDataException("Trusted Java bootstrap resource is missing."); + if (input.Length > 2 * 1024 * 1024) throw new InvalidDataException("Trusted Java bootstrap resource exceeds its budget."); + using var buffer = new MemoryStream(); await input.CopyToAsync(buffer).ConfigureAwait(false); + var bytes = buffer.ToArray(); + if (!Convert.ToHexStringLower(SHA256.HashData(bytes)).Equals(artifact.Sha256, StringComparison.Ordinal)) throw new InvalidDataException("Trusted Java bootstrap resource checksum mismatch."); + if (File.Exists(artifact.JarPath)) + { + await using var old = File.OpenRead(artifact.JarPath); + if (Convert.ToHexStringLower(await SHA256.HashDataAsync(old).ConfigureAwait(false)) == artifact.Sha256) return; + } + var directory = Path.GetDirectoryName(artifact.JarPath)!; Directory.CreateDirectory(directory); + var temporary = SafePath.Within(directory, "bootstrap.tmp-" + Guid.NewGuid().ToString("N")); + try + { + await using (var file = new FileStream(temporary, FileMode.CreateNew, FileAccess.Write, FileShare.None, 65536, true)) + { await file.WriteAsync(bytes).ConfigureAwait(false); await file.FlushAsync().ConfigureAwait(false); } + File.Move(temporary, artifact.JarPath, true); + } + finally { if (File.Exists(temporary)) File.Delete(temporary); } + } +} diff --git a/src/SHOU.Launcher.Desktop/Bootstrap.cs b/src/SHOU.Launcher.Desktop/Bootstrap.cs new file mode 100644 index 00000000..e25a9e64 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Bootstrap.cs @@ -0,0 +1,57 @@ +using System.Runtime.InteropServices; +using System.Text.Json; +using Avalonia.Controls.ApplicationLifetimes; +using Avalonia.Threading; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Configuration; + +namespace SHOU.Launcher.Desktop; + +public static partial class Bootstrap +{ + public static ILauncherService? Launcher { get; internal set; } + public static IExternalLauncher? ExternalLauncher { get; internal set; } + public static string[] Arguments { get; internal set; } = []; + private static string exitReason = "normal_close"; + private static bool nativeWindowObserved; + internal static object? MacTitlebarObservation { get; set; } + internal static Platform.MacOS.DisplayLinkStartupReport? MacDisplayLinkObservation { get; set; } + public static void AttachLifetime(IClassicDesktopStyleApplicationLifetime desktop) + { + if (desktop.MainWindow is { } window) + window.Opened += (_, _) => { nativeWindowObserved = window.TryGetPlatformHandle() is { Handle: var h } && h != IntPtr.Zero; WriteNativeReport("window_opened"); }; + desktop.Exit += (_, _) => WriteNativeReport(exitReason); + if (int.TryParse(ArgumentValue("--exit-after"), out var seconds) && seconds is > 0 and <= 3600) + DispatcherTimer.RunOnce(() => { exitReason = "exit_after"; desktop.Shutdown(0); }, TimeSpan.FromSeconds(seconds)); + } + internal static string? ArgumentValue(string name) + { + var index = Array.IndexOf(Arguments, name); + return index >= 0 && index + 1 < Arguments.Length ? Arguments[index + 1] : null; + } + internal static void WriteNativeReport(string reason) + { + var result = ArgumentValue("--result-file"); + if (result is null) return; + if (!Path.IsPathFullyQualified(result)) throw new ArgumentException("Result file must be absolute."); + Directory.CreateDirectory(Path.GetDirectoryName(result)!); + var report = new { runId = ArgumentValue("--run-id"), build = new BuildConfiguration().GetIdentity(), + os = RuntimeInformation.OSDescription, processArchitecture = RuntimeInformation.ProcessArchitecture.ToString(), + configurationAssembly = typeof(BuildConfiguration).Assembly.GetName().Name, executableDirectory = AppContext.BaseDirectory, + dataDirectory = Launcher?.Paths.DataDirectory, + isolated = Launcher?.Paths.IsIsolated, state = Launcher?.Snapshot.State, nativeWindowHandleObserved = nativeWindowObserved, + macTitlebar = MacTitlebarObservation, nativeDisplayLink = MacDisplayLinkObservation, reason, reportedAt = DateTimeOffset.UtcNow, evidenceBoundary = "application observation only; external GUI evidence required" }; + var temporary = result + ".tmp-" + Guid.NewGuid().ToString("N"); + File.WriteAllText(temporary, JsonSerializer.Serialize(report, new JsonSerializerOptions { WriteIndented = true })); + File.Move(temporary, result, true); + } + public static int? TryRunDiagnostics(string[] args) + { + Arguments = args; + if (!args.Contains("--diagnostics", StringComparer.Ordinal)) return null; + Console.WriteLine(JsonSerializer.Serialize(new { build = new BuildConfiguration().GetIdentity(), + os = RuntimeInformation.OSDescription, processArchitecture = RuntimeInformation.ProcessArchitecture.ToString(), + settingsKeys = GeneratedSettingsSchema.Entries, startupOrder = GeneratedLifecycle.Entries }, new JsonSerializerOptions { WriteIndented = true })); + return 0; + } +} diff --git a/src/SHOU.Launcher.Desktop/Localization/Resources/en-GB.json b/src/SHOU.Launcher.Desktop/Localization/Resources/en-GB.json new file mode 100644 index 00000000..b99cf3e7 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Localization/Resources/en-GB.json @@ -0,0 +1,2923 @@ +{ + "t315f7b86bc870e93": "en-GB", + "tf16855db45e76615": "English (United Kingdom)", + "t770a353ab10a2d69": "Conduit Club", + "t40f7cd2f6f68e5a1": "Conduit Club Launcher", + "t07cf529081e07007": "About Conduit Club", + "t92883aa4f5bed5a9": "Plain Craft Launcher — Conduit Club edition", + "tb709766dafadfeba": "An animation operation failed. See the details below.", + "t789c57b570ee950c": "A user interface control operation failed. See the details below.", + "t9dc0825fba5422e4": "Loading...", + "td1d044826a45ef65": "Loading failed", + "t38a8cdb210598179": "Network conditions are poor. Please try again later.", + "t13a46616e16fe5e6": "Unknown error", + "teaa048da7bbf7eef": "A message dialogue operation failed. See the details below.", + "t348f1cf1243e74bc": "I see", + "tfe2daed4a4a6c7d7": "PCL CE detected environment issues on startup:\n\n{0}\n\nSome features may not work properly if these issues are not resolved...", + "t57a67439a449f9ac": "- PCL CE is running from a download folder of social apps such as QQ, WeChat, or TIM. Consider moving it elsewhere, otherwise game saves or settings may be lost.", + "t3d0c9cba3a1c81e9": "- The current system is 32-bit. PCL CE and newer versions of Minecraft no longer support it. It is strongly recommended to reinstall a 64-bit system before playing.", + "tcdfc824df0a3af89": "- PCL CE is running from a temporary folder. Please extract PCL CE from the compressed file before using it, otherwise game saves or settings may be lost.", + "t41f54b1baa2f856a": "Environment warning", + "t567a304e1b960dfb": "- The Windows version does not meet the recommended requirement. Windows 10 1809 or later is recommended. Consider upgrading Windows.", + "t3f828f9d60fb401d": "PCL CE path: {0}", + "t29b3a1b57e5b5780": "Unable to obtain", + "ta1fdb416d2ff82b0": "PCL CE initialisation error", + "t11036031881d1a5a": "A task loading operation failed. See the details below.", + "tf56c6c82203b33f6": "Hint", + "ta8b7a4480407ac8a": "Warning", + "t589b1ae54117ebf4": "Not a valid JSON file", + "t35bcad5bb280902d": "{0} downloads", + "td37563c31d52408d": "{0}k", + "t87328c2970c0949e": "{0}M", + "tce6dbce5ca91ab86": "{0}B", + "t5749d79515962393": "in {0}", + "t4b7f9dda7314e6c4": "{0} ago", + "tcb9c3d54dc149d46": "Copied!", + "tb1f6d08a33e99468": "Failed to copy the text. The clipboard may be in use by another programme.", + "ta54a0add54472cb1": "Do not show again", + "t4afad295c7582adb": "Pasted {0} files and {1} folders.", + "t5c55a67935af8f45": "All", + "t7eb336e42cb5076b": "Auto", + "t4eafa9e925b30bcd": "Customise", + "t844b8cc8dff7c1d8": "Default", + "t31b86e9372ca7d41": "I don't know", + "t0c70665b6eb65f1a": "No", + "tb5141d3d19e9a048": "Yes", + "t4d8c1c5b42830791": "Unknown", + "t464a8e0d77bb6889": "Cancelled!", + "t09a4e5504e488a8c": "Failure:", + "tbe5b5900c14f799e": "Success!", + "t905819e2e3a059a0": "Agree", + "t572cf45ba43634b3": "Back", + "t2cd0f3be8738a86c": "Cancel", + "t3fd47edce45b3603": "Close", + "tfac2a67ad87807c4": "OK", + "t7c9691192f1b7340": "Continue", + "t63d90d977348ab1f": "Copy", + "t136de7a8c46fc803": "Decline", + "t2f9daa828907b93f": "Delete", + "t4673a23061656125": "Downloads", + "t65622e8ee9fb116b": "Initialise", + "te8f88f51ccb085ea": "Install", + "tc771248e511fbf93": "Open", + "tfcf8b4bff0df782d": "Open folder", + "t4ce4c98eb27e4b65": "Override", + "taee88743413144a2": "Refresh", + "tcb5d682bac3d1a2d": "Reset", + "t44ce7ae909bbb28b": "Search", + "tde6811e73d403172": "Changelog", + "t3330131bf7bfcda8": "Cleanroom", + "tde7b2b8384b81848": "Fabric", + "taa03a58dd655f242": "Fabric API", + "t8899ecd1626db63d": "Forge", + "t65003c7a186430e8": "Iris", + "tecd1401bc618b41f": "LabyMod", + "t80c7dfd19f110c47": "Legacy Fabric", + "tcc183d69f036c82a": "Legacy Fabric API", + "td62e27eea8fb1ca9": "LiteLoader", + "te098b8a25b0a7a26": "Minecraft", + "t3803dc90d9f8578d": "NeoForge", + "t333a55aef76cda96": "OptiFabric", + "tb1b36951dde91b4c": "OptiFine", + "tb0c25286507fdb23": "Quilt", + "tc0028b730280136e": "Configuration initialisation failed during the {0} stage.\n\nThe configuration file at {1} contains invalid data and was backed up to {2}.\nTo help prevent the problem from happening again, PCL CE tried to restore a previous version when one was available. If you changed the configuration file manually, fix the problem and replace the current file.\n\nIf you are not sure what happened, you can ignore this message for now. After restarting PCL CE, the affected settings may return to their defaults, but normal use should not be affected.", + "tee2d6eb8cace92f1": "Configuration initialisation failed during the {0} stage.\n\nThe configuration system could not be initialised. Fix the problem and restart PCL CE.", + "tb37790547db1b6de": "The configuration system failed during the {0} stage.", + "t1ba68cce121c1664": "Configuration initialisation failed", + "t3e8dc438a4715f1c": "Could not save the configuration file.\n\nPath: {0}", + "tc6070f450211044a": "Failed to save configuration file", + "td88b15f7379837c6": "Crash analysis failed. See the details below.", + "t37c42c65d9b0a02b": "Export crash report", + "t90e01acb5c9edd35": "Modify settings", + "t6598755879490792": "View log", + "tb56dacc6615f683f": "Minecraft crashed", + "te3ba07c8080abe28": "Crash report analysis result", + "t092894a3fee643a2": "Copy details", + "td6e7f1232d85007c": "The crash report could not be exported.\n\nTarget path: {0}", + "t67bd98cc6ddcf702": "The crash report could not be exported, and the target path is unavailable.", + "tc81aa8bc768648e4": "Failed to export crash report", + "ta01b89841daf67e3": " - {0}", + "tcefa7588fe99aa24": "Cause\n{0}", + "t7fc9c5a1ce0a4aa4": "{0}\n\n{1}", + "t35c22b1afbd3fb7d": "Cause\n{0}\n\nWhat you can try\n{1}", + "tfae615e265a131a0": "The following mods caused the error:\n{0}", + "taed90775b693b199": "The mod {0} caused the error.", + "te13f6b316936a6df": "Duplicate mods were detected:\n{0}", + "t50dbecc31daa8e89": "Duplicate mods may be installed.", + "tff2461be8d7ecdbe": "An extracted mod file was detected.", + "t8aadd91a598f41b4": "Fabric may have provided an error message.", + "t347e533b23891be0": "Fabric provided the following error message:\n{0}", + "t65d6d0dc70d111b6": "Fabric may have provided a solution.", + "tea36408934d9b781": "Fabric provided the following solution:\n{0}", + "td3423bf6cf1ac47e": "Some files or content did not pass validation.", + "t6e70a8befb3cb889": "Forge may have provided an error message.", + "t61c8944a2b8d1708": "Forge provided the following error message:\n{0}", + "t02070df4122c1669": "The graphics driver may be preventing the game from running correctly.", + "t7f62bb1c94fad1c4": "There may be a graphics driver problem, or the game may not be using the dedicated GPU.", + "t1fa875bbfad5bdbd": "The installed mods may be incompatible.", + "tc837e5874afba4f3": "The installed mods are incompatible:\n{0}", + "taa6fd4a25de9af40": "The Forge installation is incomplete and required files are missing.", + "ta966d3f72f113711": "A mod file name contains special characters that Java cannot use.", + "tbc852193d70dc63a": "The selected Java version is incompatible with the game or mods.", + "tfe816d1d201e7521": "The selected Java version is too new for this game or loader.", + "t5f432b374bd80ac7": "This was a manually triggered debug crash. The game itself is usually fine.", + "t94478e651aa093cc": "Some mods are missing dependencies or do not match the current Minecraft version.", + "tb1b53c63283e5851": "Some mods are missing dependencies or do not match the current Minecraft version:\n{0}", + "t7bfdce0244ad6cb5": "MixinBootstrap is missing, so the game cannot continue loading.", + "t164eb28a4e0b0b1c": "The configuration for the mod {0} could not be read.", + "t416f25fa791c1401": "The configuration file {1} for the mod {0} could not be read.", + "te316ac44fdc6a01e": "The following mods failed to initialise:\n{0}", + "t62b59361f7a24bb3": "The mod {0} failed to initialise.", + "t328cee8872725e35": "The mod loader may have provided an error message.", + "te9c9c782cbe7f56d": "The mod loader provided the following error message:\n{0}", + "tf93eab675ec07cc7": "The mod loader version is incompatible with the mods:\n{0}", + "td99f060b8fee8c31": "Mixin injection failed for the following mods:\n{0}", + "t08c1c3f097a09bd6": "Mixin injection failed for one or more mods.", + "t060586dc3c6f645b": "Mixin injection failed for the mod {0}.", + "tedf284fafab771a4": "Some installed mods require Java 11 or later.", + "t33457310a91f25bb": "The instance JSON contains multiple Forge version arguments.", + "t3dce704b11144264": "Night Config encountered an error whilst reading configuration files.", + "t223b6e297e3f1ea6": "The game ran into a problem, but PCL CE could not find related log files to analyse.", + "t721280eb48614a27": "An old Forge version is incompatible with the selected Java version.", + "te235be5f2c1d3170": "A shader pack or resource pack may have triggered OpenGL error 1282.", + "td324d7778dee590f": "OptiFine may be incompatible with the current Forge or Minecraft version.", + "t5c7a6135b262daa2": "The selected OptiFine version may have caused the world to fail to load.", + "td861c658ccadced7": "Minecraft ran out of memory.", + "t92092d4764cdc3b6": "The resource pack resolution may be too high, or the graphics card may not be powerful enough.", + "t952fcf5717f69a2f": "Both Shaders Mod and OptiFine are installed.", + "tfe91a807e1c93bad": "Some blocks in the world may have caused the error.", + "t0d544eeed74643d0": "The block {0} may have caused the error.", + "t9684df6fb67fb0be": "Some entities in the world may have caused the error.", + "t18c1d36bf63cd3b6": "The entity {0} may have caused the error.", + "t478f32d6b069e44d": "PCL CE found possibly related keywords in the error stack trace:\n{0}", + "t9821a18bb44b4f64": "PCL CE found a possibly related keyword in the error stack trace: {0}", + "tf2b1703200b5a7d5": "The crash report suspects that the following mods caused the error:\n{0}", + "t71c045613b39e47a": "The crash report suspects that the mod {0} caused the error.", + "t8e272d4e6361dc6a": "Too many mods are installed, exceeding the ID limit of an older Minecraft version.", + "t3692de4e77775b5f": "PCL CE could not determine the exact cause of the crash.", + "t4a5b66423be7af16": "PCL CE could not determine the cause of this error.", + "ta4bc2716c341dd81": "PCL CE detected an error cause without details: {0}", + "t43cf814723a1317e": "The game may be using a JDK, or the selected Java version may be too new.", + "t3812634fe44f8428": "The OpenJ9 Java runtime may be incompatible with the game, mods, or loader.", + "ta35277063f85e469": "The game output is too short for PCL CE to analyse. Raw output:\n{0}", + "tbe910c8649d97ae7": "The selected 32-bit Java runtime cannot allocate enough memory for the game.", + "t5ada8acc0df427dd": "The 32-bit operating system cannot provide enough memory for the game.", + "taefe78048b57ce30": "Crash report exported!", + "t9c1e36ba3609be98": "Crash Report-{0}.zip", + "t886ad926d77454af": "Minecraft crash report (*.zip)|*.zip", + "tedfa33a3f470ecc5": "Select save location", + "t2f22bf320de8842e": "CPU:{0}", + "t74d9fe9c21915402": "- Environment information -", + "t5de2b1e2f82cb09e": "GPU {0}: {1} ({2} MiB, {3})", + "t164346368c1e2e72": "- Instance information -", + "t3516bd66c4307a00": "Identification code: {0}", + "t29dec972b0f2301d": "PCL CE version: {0}", + "t95e694b0f5218c2e": "Log4j2 NoLookups:{0}", + "t110b2c909c7403ff": "Memory allocation (allocated memory / installed physical memory): {0} / {1} GiB ({2} MiB)", + "t78c1222202ada4e2": "Minecraft folder: {0}", + "taec071eef5251661": "Operating system: {0} (64-bit: {1}, ARM64: {2})", + "t1b273d70a2c6ad89": "Profile name: {0} (login method: {1})", + "t90ba25961e9b7fe8": "- Profile information -", + "t40ef92a388943c46": "Selected Java VM: {0}", + "tcd3f5d5d894f018b": "Directory: {0}", + "t96c914ddbe8b1681": "{0} [{1}] <-> bundled in {2} ({3})", + "tf7b98113b3d7e402": "(Matched by mod ID and may include false positives.)", + "td03f26cc4789ab87": "These mods may conflict with their bundled copies and cause crashes:", + "t484d55613910eb8c": "None", + "t972ecc9b7c5256be": "=== Potentially duplicated mods (installed standalone and bundled via Jar-in-Jar) ===", + "t49a7be4efd82aa7d": "No Jar-in-Jar information found", + "tc86892d82348aa47": "=== Jar-in-Jar information (enabled mods only) ===", + "t8c44658a527fa3fa": "=== Mod list ===", + "t40c4aaef12065dc8": "Try disabling these mods one by one, then check whether the game still crashes.", + "t0ef773efa1d6c031": "Try disabling this mod, then check whether the game still crashes.", + "t3cf5aaea1a375671": "Each mod should be installed only once. Remove the duplicate mods and launch the game again.", + "t0fa488a842726589": "When asking for help, send the crash report file instead of a photo or screenshot of this window.", + "tb9fd451df6743922": "Remove extracted mod folders from the mods folder, then put the original .jar mod files there and try again.", + "t82cacbaa10b2d0db": "Delete the game and related mods, then download them again.", + "td7dff1ed611e4192": "Follow the loader messages above or in the crash report to resolve the problem.", + "te3cbac4133b5f0c3": "Try updating or rolling back the graphics driver. If needed, switch to an older Java version.", + "t37a7bed9e869ffdd": "If the device has a dedicated GPU, use it to launch PCL CE and Minecraft. You can also update or roll back the graphics driver.", + "t6c5f9bddd09191c7": "Reset or reinstall Forge in instance settings. Do not delete the libraries folder when packaging an instance.", + "ta74d8b873c5078cd": "Remove or rename the affected mod file so that its name contains only English letters, numbers, hyphens, underscores, and periods.", + "tf943161bdf0bf23a": "Choose a suitable Java version in launch settings based on the Minecraft version and mod requirements.", + "t01a298487e13d230": "Switch to an older Java version in launch settings and try again.", + "ta743b54ea7005725": "You are using an outdated version of PCL CE. Updating PCL CE may resolve this problem: Settings → Launcher → Check updates.", + "tf1cca4af375344b7": "Check that MixinBootstrap, the mod loader, and related dependencies are installed correctly.", + "t18acbdf96509ed38": "Try deleting this mod's configuration file and launch again. If needed, update or disable the mod.", + "t263b159ede4ee0f5": "Open instance settings and adjust or reinstall the mod loader version.", + "t1c38b69975f05e15": "Disable mods step by step to find the one that is incompatible with the current environment or has a problem.", + "tb4d7dfa3841d0d82": "Switch to Java 11 or later in launch settings and try again.", + "t9807131b9f1198a3": "Reset or reinstall Forge in instance settings. Do not use another launcher to modify the Forge version.", + "tb40c547c1baa5d77": "Try deleting the related mod configuration files, or install Night Config Fixes.", + "t7bf0db98218b182b": "Try updating Forge or switching to an older Java version.", + "te0717c2695266260": "Disable shader packs and remove recently added resource packs, then try again.", + "t65e1cc2062bc5e1c": "Check the compatible OptiFine and Forge versions, then reinstall matching versions.", + "td96210b13c30bb9d": "Try another OptiFine version, or remove OptiFine before entering the world again.", + "td1e6a0c6c71dd4b9": "Increase the memory allocated in launch settings, and remove demanding resource packs, mods, or shader packs. You can also close other applications before launching the game.", + "t6037c82cd1aad293": "Remove high-resolution resource packs or lower their resolution. You can also update the graphics driver.", + "t4b0be12885f96fd3": "Remove Shaders Mod. OptiFine already provides shader support.", + "tef774a71e06ea3b4": "Create a new world to test whether the game runs normally. If it does, blocks in the original world may be responsible.", + "t36578bca83d6e618": "Create a new world to test whether the game runs normally. If it does, remove this block with a map editor or disable the mod that provides it.", + "tfd186fec088dae23": "Create a new world and spawn entities to test whether the game runs normally. If it does, entities in the original world may be responsible.", + "tc196a33781b8d496": "Create a new world and spawn this entity to test whether the game runs normally. If it does, remove the entity with a map editor or disable the mod that provides it.", + "t96c9a7cc1feae4e7": "Check the mods or libraries related to these keywords. You can also export the crash report for more details.", + "te844d9b041040315": "Reduce the number of installed mods, or install a fix mod that extends the ID limit for older Minecraft versions.", + "t99a6fb13e2788e97": "Switch to a regular JRE or another Java version that is suitable for this instance in launch settings.", + "t4e87bb6471ea2e25": "Switch to HotSpot Java in launch settings and try again.", + "ta5f76be10571a046": "View the crash report for more details about how the error happened.", + "t0803604d1f34bea5": "Install and select 64-bit Java in launch settings, then try again.", + "ta11e5707e9a8e208": "Use a 64-bit operating system and 64-bit Java, then try again.", + "t73ef595851576fe0": "A download page operation failed. See the details below.", + "t0da20d8b9dc72593": "A resource download operation failed. See the details below.", + "t5883e5643f980726": "Unable to connect to Modrinth; only contents from CurseForge are being displayed. Results might be incomplete.\nPlease check your internet and try again.", + "t22e87d6361c02327": "Could not recognise or fetch the resource link", + "t303c30f301514250": "Search resources", + "t3a8b232a834e2fa2": "Downloads", + "t63390385cc587605": "Follows", + "tb33f2e6617ec5db8": "Latest", + "t865854c27d879972": "Relevance", + "tb067526e73e5b801": "Recently updated", + "tc79e8435b942cd5f": "Adventure", + "t18704a278632121e": "Animated", + "tc991c7eef0aa00da": "Audio", + "t829a35554fa12c2d": "Automation", + "tb33881e3833f9fc4": "Biomes", + "t8f7e2ad723ebd014": "Cartoon", + "tc091c98702a377f0": "Coloured Lighting", + "ta642a31e11820a4e": "Combat", + "te3db1776792014be": "Core Shaders", + "t584741806d8311b9": "Creative", + "te5a6f926456d5e3a": "Cursed", + "t6895f601b65fdc10": "Fantasy", + "tac40db6607b72f56": "Decoration", + "t4fa164bacd535f85": "Dimensions", + "tde4e44264035c8d7": "Display", + "t9196f0338a8d16d7": "Energy", + "t18de9f691b47fc6b": "Entities", + "tcbe3d3b779999843": "Equipment", + "t05aa4d62741045df": "Fantasy", + "tb2acdef8f2efe1fb": "Farming", + "tadcf64ba14be2a0a": "Features", + "taced55addbf033c2": "Fonts", + "t969c7fc4d7a3d64c": "Food & Cooking", + "tb0b98fd928edff24": "Game Mechanics", + "tc4e3f3fb84e6bd0c": "GUI", + "tc6e0480ef9844ba9": "API & Library", + "tcc3dd1f07544494c": "Locale", + "tf92fd0c0b8c950fc": "Magic", + "t2d92a4f66c9ceec3": "Medieval", + "t61aacd674a2c7586": "Mobs", + "t9ea6b4816b0c7d95": "Mod", + "t8e048731fcac28a7": "Mod-related", + "t41735735da6b1466": "Mod Support", + "t2bdc253afdc92985": "Models", + "tc05df15bf39a4ee9": "Modern", + "tf68c25a937e33136": "Multiplayer", + "t50b3ce31646573c1": "Optimisation", + "t0ceb2a65af8faacd": "Ores & Resources", + "td2909f1647e7c891": "Other", + "t8e5915536a00b1ff": "Path Tracing", + "tba9db5d2c572aad5": "PBR", + "tdd5f3e2d50cf0435": "Performance impact", + "tb1c27820fec23edb": "High", + "taa9e366f68d3d097": "Low", + "ta567bdaa11367f26": "Medium", + "t6e990ca942a25713": "Potato", + "t122e51b8a282ffb0": "Energy, Fluid, and Item Transport", + "td9f9b63f9d9f6062": "Realistic", + "t70e3887c68a89570": "Redstone", + "t8a8f1a0cf7cf089a": "Reflections", + "tb92421822c213c2b": "Resolution", + "te44de61444e0c61a": "Semi-realistic", + "t2388cbc6a486af9f": "Server", + "taa55960e4b02e668": "Simplistic", + "t717cbdd0b24adc4a": "Steampunk", + "te2c57c5c935df898": "Storage", + "t9c888380daed37e0": "Structures", + "t1bfde6b7ea27c9b8": "Style", + "t6edb77679bbe71f5": "Technology", + "td333e7c430f4a611": "Themed", + "t71faaa139f3affc5": "Transportation", + "t7703c8789564782c": "Tweaks", + "te3acd17ea04e3a49": "Utility", + "tab8936477328e934": "Vanilla", + "t9c5a5f7582706688": "Vanilla-like", + "te2795d0547cb684e": "Creative", + "t7eb04a099024f6e0": "Mod World", + "tb1f0cb13ffcaa01e": "Parkour", + "t7462fe3991258156": "Puzzle", + "tcbd9667c3fa1225e": "Survival", + "tea56c3200c998da7": "World Gen", + "t98ceb57fd8c4192a": "Exploration", + "t3ed46e6cab0ac788": "Extra Large", + "t338cc0fd2a2c4d17": "FTB", + "tdbca9dcc12759328": "Published by FTB.", + "t56acdc65a6d3783f": "Hardcore", + "t64aec591c1c79c93": "Kitchen Sink", + "td78ea1d4d3cf84ad": "Map Based", + "t52afc06a6fdc90bc": "Mini Games", + "t5253040db8643c85": "Quests", + "tc1613bc333ed5654": "Sci-Fi", + "t1fa5b34c505b2249": "Skyblock", + "t459045778e6d727e": "Small & Light", + "tf8428719215ef8b4": "Vanilla+", + "tdb95c71ee38000fc": "128x", + "t97d3b806d6b0cd6a": "16x", + "t4f552d2e542b6470": "256x", + "t5794dd04acf0b11a": "32x", + "t82e7e3d1ccb7561f": "48x", + "t640f86e6c1bb0514": "512x or higher", + "tce07e3db42adfa65": "64x", + "t968443a6fff0f915": "8x or lower", + "t67bf9dc67f0bedec": "Installation was cancelled.\n\nReason:\n{0}", + "t9088cfa9a1c7645f": "Installation cancelled", + "t191a09e32e312bc4": "Cancel installation", + "t472887ef3f07b5ec": "- {0} ({1}) - {2} v{3}", + "t1470f08a1fd3a31a": "This mod requires the following dependencies:\n\n{0}", + "t2b75ae1a67a38be7": "Install mod dependencies", + "t01a97ea980217280": "Install mod and dependencies", + "t1c1f6bbc6e42087c": "Download mod only (not recommended)", + "t7730fe6c7fbea65b": "Continue download", + "tcf85b3dc76a126d5": "Failed to resolve the mod dependencies. Only the main mod will be downloaded.", + "t5c028beb63de11ce": "Failed to resolve dependencies", + "t11f345d6669a5566": "- {0} {1}: {2}", + "t58be92ca3949285c": "The following required dependencies could not be resolved:\n\n{0}", + "t0fdb26c45e398f59": "Required dependencies could not be installed", + "tb2fd2e2a883cd7a2": "Clean cache", + "t47026cfb59de504b": "A resource link was detected in the clipboard. Open the details page?", + "t902186f9cd1df585": "Resource link detected", + "t40a2a5956295b9cb": "Getting resource information...", + "t2717a23db971665f": "Invalid resource content.", + "t8e86f9b1d54f2c51": "Copy link", + "ta77a6cca3ce275e0": "Copy name", + "t370b1f0f2e1a34d5": "No description translation is available for this resource", + "td81097017b39083a": "Getting description translation for {0}...", + "tb6d4d3a957e787d1": "Failed to get description translation", + "t6710d01346f08050": "Original: {0}\nTranslation: {1}", + "t3926d1bb98be8401": "Download file", + "td04d08f28ec4fca3": "Download modpack file", + "te37a7e2a87892329": "{0} download: {1}", + "t7884990b2b345033": "Download world file", + "t60a53514eb9228a2": "Favourite", + "te0f2b9e34d955211": "Added {0} to {1}", + "tc900c91ac35223bb": "Added {0} resources to {1}!", + "tb108cfdfd617090c": "Added {0} resources to {1}; {2} resources had already been added!", + "t3b076fd9eb9e7808": "Add to {0}", + "t655760c7ef1954fb": "Removed {0} from {1}", + "tae34229f66130de3": "Unfavourite {0}", + "t9cd2f9ef5701723d": "Looking for an applicable instance...", + "t5783f26277a1be55": "Enter instance name", + "t75574e78f139e825": "Install world", + "t4f5420a2c4564f17": "Instance: ", + "t4088955ce9133557": "Mod loader: ", + "t2e5739449ed67f97": "MCMod", + "t630510f769bf79e6": "Modpack download", + "te17abc30dd9bd2b6": "No applicable instance found in this Minecraft folder for this resource!", + "t97872ee0fa952f24": "Original modpack", + "tce90616bf6f4553c": "Prepare for modpack installation", + "tb15cb14bdf7ccb3f": "{0} file", + "t166c6925b0986e8c": "Select world install location (saves folder)", + "t9d3f093c4227f9b4": "Selected version: {0}{1}", + "t3ece481d115d0413": "Modpack installation cancelled: {0}", + "td19448c09c827df0": "Modpack installation failed.\n\nTask: {0}\n\nDetails:\n{1}", + "t68580c651dbaed55": "Translate description", + "tdca60869e7d26839": "Unfavourite", + "tcf865167e879e225": "Older", + "t8382fe1229487ef4": "Snapshot", + "tdd63fa768c76470f": "Since the API updates slowly, it may not be able to recognise the Minecraft version that was just updated. It will be recognised normally after a few days.", + "t3895b880ef60dc2f": "World download", + "tce7c62739183ea1c": "World file|*.zip", + "tcea32269309fbb1b": "All versions", + "tb7d92919ff6509e6": "Before-release", + "t5d7906f5af429022": "Any", + "tf594f171672d3bef": " Edition", + "t769400c019e1e3d7": " Preview", + "tba0d5a1fa939f53c": "Snapshot only", + "tf1e7bec171ae3b9e": "Unknown version", + "te4f41303b0825883": "{0} dependencies", + "t6827fbb5676f2a42": "Game version {0}", + "t3b10470e173f82cc": "Optional dependencies", + "t5a381a1174a336de": "Alpha", + "t065d4b037ce5d3c6": "Beta", + "t93a48223a516e074": "Release", + "tf7c5c819b9f0f09d": "Required dependencies", + "t8da1ada0abe274c9": "Updated {0}", + "t34362a4c5ad7f814": "Version list", + "tbb6d995724f49a72": "Manage", + "tfa1e7180cf6c8ea6": "{0} ({1})", + "t3f55bb31a6bf0420": "Mod ({0})", + "t74966e20df2ea9fd": "Deselect", + "tf583ba476b0fc0bb": "Download selected", + "t7886e13b90d0c33b": "Edit note", + "tf9071ee190cc2b33": "You can click the favourite button on the resource detail page to add a resource to favourites.", + "t7569da968438822f": "No favourites yet", + "te5d9da44d6ec2aa4": "A favourites operation failed. See the details below.", + "tf8df64ad4b80a37d": "Online information for some resources failed to load. Click to view details.", + "t383b9a3f9103f3b6": "Batch download resources ({0})", + "t0214ead9956d0a25": "Batch download applicable resources", + "t18d91d56368f7efd": "Query resource information", + "t184f56fec419cdb5": "Loading favourites list...", + "t381c647a1bf4039d": "Delete current favourites folder", + "t900a238d2066bf56": "Import favourites", + "tfdf0b569d820ade8": "Create favourites folder", + "tdc334e8452b32c8d": "Rename favourites folder", + "tb81569c77abbc943": "Share current favourites", + "t88b71f1b3034d981": "Search favourites", + "t7a62ab6f8a3adde5": "Search results ({0})", + "tef35e30a69c37328": "8 files selected", + "t7512ca72601551d1": "Share selected", + "t8ef77368a0f4b926": "Unknown type", + "t26923e70e420257a": "Bulk download is still in testing.\nUsing this feature to download mods will not automatically download dependencies.\nPlease think through your needs and carefully check your selections before downloading to avoid wasting time and bandwidth.", + "tdaf806c8e5b5697f": "Use this feature?", + "te7d728fe70f8ebf4": "Are you sure you want to delete the {0} favourites folder?\nThis favourites folder has {1} favourite items\nFavourites folder ID: {2}\nThis action cannot be undone!", + "tfe43bc43c294210a": "Deletion confirmation", + "t2069143095d1bd58": "The following resources failed to load due to deleted online resources, network issues, or other reasons (shown by resource ID).", + "tea6b88c037011def": "Copy these IDs", + "t522e9382728b0f13": "Remove these favourites", + "t60e415c1cf639529": "Some favourites failed to load", + "tb5f1a8c8a20d3821": "Current folder", + "t1b32866b36678f15": "e.g. [\"23333\"]", + "t74b8382b21124f79": "Enter shared favourites", + "t575c8c85b7229ae3": "New folder name", + "t29aec3eeadd2bd3c": "New folder", + "t72247501abd78e91": "Enter new folder name", + "te2ac7dd248108eba": "Do you want to add the shared favourites to the current favourites folder or to a new favourites folder?", + "tf5d96b0a35d232be": "Enter new name", + "t6ef70a73eeba8d63": "Select desired loader", + "t96b1172d977ca388": "Select desired game version", + "t658b8279fe6e9071": "Favourites folder deleted", + "td8260f09d4876470": "You cannot delete the last favourites folder", + "t4de4cd268e281f93": "Please wait whilst detailed version support is being queried. This may take a while...", + "t36480334dc21b022": "No resource exists for the specified loader and same game version", + "tea0f92057312b72a": "Nothing to share!", + "t56500d3b0a5b2648": "Related favourites removed", + "t9f2231fa4a7bd5a2": "The selected mods do not support the same loader", + "tfae12c46945252ae": "Selected {0}; now select a save location below", + "t9a242aca5ad49539": "{0} favourite items selected", + "t24e4c22ca6ce8acf": "Install the modpack into the currently selected Minecraft folder.", + "t7a2bd8b6cb0ed3bf": "Loader", + "teb4108182aff0289": "Any loader", + "t86e562ec274a2795": "It can be loaded as a resource pack and used directly in the vanilla game.", + "t66960a14f9c7ba67": "Reset filters", + "t1ce6b1d7c95ce2ee": "Sorting", + "ta488e93d69cc1296": "Source", + "t1d0fd5f9336d9103": "Tags", + "t5f76b2bf82dd2c5d": "Version", + "t0547392f6ab5aaa0": "All (input available)", + "te27f5dd1f4538825": "No matching results", + "t28f9799cf70cfa7d": "No results, please try searching in English", + "t4e90152337531b53": "No search results", + "t668ac1fa4ed68028": "Unable to connect to CurseForge; only contents from Modrinth are being displayed. Search results might be incomplete.\nPlease check your internet and try again.", + "tcdb82e3a60be207c": "Community resource fetching: {0}", + "tc76d3401f5da3852": "Getting data pack list...", + "t1588d0e07d0c3d93": "Getting mod list...", + "t0ca80f81d892be73": "Getting modpack list...", + "tcdf547d1a76c4fe4": "Getting plugin list...", + "tf795ef40fd5886f8": "Getting resource pack list...", + "t3b935782561fa2a2": "Getting schematic list...", + "t6f6d6cd9226ac771": "Getting shader list...", + "tb1bfcf7fdf990edb": "Getting unknown list...", + "td4a100e5c8124658": "Getting world list...", + "t3ae4e3634da3e95a": "Search data packs", + "t1b3ec9656da62b84": "Search mods", + "t20ee7b798773bd60": "Search modpacks", + "t054a05050e0e790b": "Search plugins", + "t8ad10013cd735fdd": "Search resource packs", + "t663ee97585643974": "Search schematics", + "t41a2e0cee213dc9a": "Search shaders", + "tbabb50e5eb48f55d": "Search unknown", + "t687dc571759336c9": "Search worlds", + "t3e1f70c05113ed01": "Download the latest version", + "ta21786c18070def1": "Select a target Minecraft instance", + "t6b4104acb4da734e": "Select an instance…", + "tb2c12d1210804fbf": "Select a folder…", + "tcd4113a3aa659835": "Download to the current instance", + "t05749348132920b6": "Select a download destination", + "t425a5f4ebd7fb175": "Started downloading: {0}", + "t377d5938e9e7dc29": "Getting resource version info, please wait…", + "t6ce55079915b8512": "No compatible version found for this instance", + "t0cab9ab949df01cb": "No compatible Minecraft instances found", + "t27be0d144fa9901d": "No downloadable files found", + "tff9c0846f754f0c5": "No Minecraft instance selected!", + "t4caa0d59924a122e": "Select a folder to save the file", + "t10f8430565994663": "Data pack", + "t46d9b2a668211df4": "Modpack", + "t748ab1f7fede7538": "Only {0}", + "te806fbbe8ec6e82d": "Plugin", + "t6518cf1fcb303a64": "Resource pack", + "tec9e3045aaf89c11": "Schematic", + "te50c88a4cc32f5f3": "Shader", + "t33650a369521ec29": "World", + "t79ae243e67109584": "An installation version list operation failed. See the details below.", + "t6a56f18359796e28": "Click the Minecraft tile to return!", + "t14d1e349b14010a9": "Cancel", + "ted3f0e431ff837cc": "Instance isolation is not enabled, causing multiple instances to share the same mods folder.\nAs a result, Minecraft may crash when switching instances due to incompatible mods being loaded.\nIt is strongly recommended to enable instance isolation under 'Settings → Launch options → Instance isolation' before proceeding with the installation.", + "ta7f814bc0ea3f1a5": "Instance isolation", + "t541961415c3d4b09": "Download", + "t37963f28d576ea3e": "Compatible only with certain Forge versions", + "t4b8d4db45dfbdb2e": "Incompatible with LiteLoader", + "t54e8c0f85b4c7218": "Incompatible with {0}", + "tdb96d71d80320b2f": "Incompatible with OptiFine", + "t9ddc992b0f648bd2": "Incompatible with older versions of Fabric, please download OptiFabric Origins manually.", + "t054797aa2e86fb1e": "Requires Fabric", + "t60f584f0e0fc3169": "Requires Legacy Fabric", + "t0311603a56856290": "Requires OptiFine", + "t69205975147d8c24": "Requires OptiFine & Fabric", + "t7ba62a14c8f6e30e": "Installable", + "t5e5cbbb485753cc5": "Failed to get version list: {0}", + "t2555423b0683bbf7": "Failed to get version list: {0}", + "tc23ecce4fb5c37d8": "Obtaining...", + "t03ddcecd6af05e62": "Loading...", + "t82cde44456802ea0": "No available version", + "t0d16214d515b612b": "No version available", + "t51ffff3f8b245993": "Unknown error, the status is Unloaded", + "tabc3889ae4cc4596": "Most of the mods will be unable to run if Fabric API is not installed!", + "t66bca3a05acb25a6": "Most of the mods will be unable to run if Legacy Fabric API is not installed!", + "t2fd8f9daef98aae9": "Please install 'LegacyOptiFabric' mod after the installation, otherwise OptiFine will be unable to run!", + "tab802ab0206f6691": "OptiFine has poor compatibility with some mods. Please install it cautiously.", + "t217af0b4f2f3009c": "OptiFine will be unable to run if OptiFabric is not installed!", + "t4d4441632ec36afa": "Please install 'OptiFabric Origins' mod after the installation, otherwise OptiFine will be unable to run!", + "tb6ed713343309e14": "Community resources", + "t63c87fb56f3d4e21": "Unknown download subpage type: {0}", + "t796d20e915884195": "Favourites", + "tf9354acb640dd0c5": "Refreshing...", + "t4ef515abfdb8690d": "Installation", + "t0e0a74013968325e": "Cleanroom official source", + "ta186ce516379f40d": "Fabric official source", + "t9298cfccd8c84372": "Forge official source", + "t5cead49c88eb67ad": "Legacy Fabric official source", + "t52b7439518934766": "LiteLoader official source", + "ta2970acc2d338793": "Mojang official source", + "t6866d5c1fab2b663": "NeoForge official source", + "t8c9404fa505622fe": "OptiFine official source", + "t24221d7fefdf2993": "UVMC Exclusive", + "td2d37ab6563bc332": "All versions ({0})", + "tc88176e908f43cac": "Cleanroom is a Forge-based mod loader for 1.12.2, theoretically compatible with 99% of Forge mods.", + "t7c48e0da6dde3bdb": "Introduction of Cleanroom", + "td58d947415597357": "Getting Cleanroom list...", + "ta5047f32348bfbaf": "Download server", + "t8165ca7a7f7795c4": "Fabric Loader is a lightweight mod loader for modern versions of Minecraft.\nYou must install it before using any Fabric mods. This page offers the Fabric installer for download. After downloading, you need to complete the installation process manually through the installer.", + "t5006b8cf5ec5e726": "Introduction of Fabric", + "t22cd2f30cf35026d": "Getting Fabric list...", + "t60277e6110afe433": "Forge is a mod loader. You must install it before using any Forge mods.", + "t2661009bd83549a0": "Introduction of Forge", + "t1ed221ce1444cda8": "Getting Forge list...", + "ta429ef57d8403fb3": "Type: {0}", + "t38a846ed736a3b9f": "Latest development", + "t569af1a47dbdf053": "Latest", + "tb556e7880bb7dc26": "Latest stable", + "t50008bba144e8878": "Fabric installer (*.jar)|*.jar", + "tb1d7c873a165a7a4": "LabyMod installer (*.jar)|*.jar", + "t96eb0447b4508d05": "Legacy Fabric installer (*.jar)|*.jar", + "tc6d0cf1f29b04fe0": "LabyMod is an optimisation client for Minecraft.\nThis page offers the LabyMod installer for download. After downloading, you need to complete the installation process manually through the installer.", + "t966deb695edfc1f0": "Introduction of LabyMod", + "t0c4958a54587ac61": "Getting LabyMod list...", + "t2449ee325082121e": "Latest development, released on {0}", + "ta5bd51b5a48b406c": "Latest release, released on {0}", + "tc2a497830ef74215": "Latest version", + "t409037db81f013ae": "Legacy Fabric is a backport of Fabric for older versions of Minecraft.\nYou must install it before using any Legacy Fabric mods. This page offers the Legacy Fabric installer for download. After downloading, you need to complete the installation process manually through the installer.", + "t9be9080b5b227074": "Introduction of Legacy Fabric", + "td4a617e74b328469": "Getting Legacy Fabric list...", + "t9e249718b33002e0": "Similar to Forge, LiteLoader can be used to load LiteLoader mods in older versions of Minecraft.", + "te381ec18148bcab7": "Introduction of LiteLoader", + "t0ac4c924baceaa39": "Getting LiteLoader list...", + "t279ca5f87c082275": "Getting version list...", + "tdf2763b431451fbb": "NeoForge is a mod loader for Minecraft 1.20.1+. You must install it before using any NeoForge mods. Additionally, it is compatible with some Forge mods.\nThis page offers the NeoForge installer for download. After downloading, you need to complete the installation process manually through the installer.", + "tfe40d869db01db47": "Introduction of NeoForge", + "tb15f809730dbada9": "Getting NeoForge list...", + "t2a387b9dca2585fc": "Official website", + "t695c01fd8329830e": "Compatible with Forge {0}", + "t7854340185c3ac0b": "Incompatible with Forge", + "tdf694f1474ba2f41": "OptiFine allows you to install shaders, use HD resource packs, and improve game performance significantly.", + "te8d57a8f9448791c": "Introduction of OptiFine", + "t1c0f7351720755f6": "Getting OptiFine list...", + "t072a06e256c342c1": "Snapshot", + "t0e49ddd2102099a8": "Released on {0}", + "t1232eb44296bb8cf": "Save as", + "tb55ff3413e4553a0": "Save installer", + "t25ca0efe303f063a": "Version list ({0})", + "t5dcfd2328497ed68": "Show all versions", + "t0b86991e76ab0e6a": "April Fools'", + "tf8ba3e6e5825e399": "Development", + "t7c2d69d150f060b9": "Installer", + "td6e22c8c01320523": "Recommended", + "t320e85714d077705": "Stable", + "te80fbe0786bb33fd": "About to download from this URL:\n{0}", + "t4a07be888ae672ef": "EventData must be a URL starting with http:// or https://.\nPCL CE does not support other download protocols.", + "t19984f88d01fd0ad": "Event execution failed ({0}, {1})", + "t04fd5e3ee85a1b68": "Local file not found for EventData: {0}", + "t3808635bcebe52f7": "EventType {0} requires at least 2 parametres separated by |, e.g. {1}", + "tb37593f19b3c3f45": "Event execution failed", + "t2fb0c55b1ab8fb62": "Unknown event type: {0}\nPlease check if the EventType is correct, or if PCL CE is up to date.", + "t45df8d0e74c2f632": "EventData must be a URL.\nIf you want to launch a programme, change EventType to OpenFile.", + "ta40eb286240a74f2": "Please select a Minecraft instance first!", + "t88af33c51d5d4234": "Starting {0}...", + "tfcc03d11adda3586": "Opening, please wait: {0}", + "te2647f412a632008": "The current page does not support refresh!", + "t9c012d80380b46b7": "Refreshed!", + "t1919f8c3fe196e7d": "About to execute: {0}\nPlease confirm there are no security risks before continuing.", + "tf1537e9083397197": "Continue and do not ask again", + "t2fa286387af138e8": "A custom homepage cannot write the security-sensitive setting: {0}", + "t5f6a32366a6d46a7": "Confirm execution", + "t10a26148d2d86669": "[{0}] is an unrecognised EventType and has been removed from the homepage.", + "t360dfaf1b8683cbb": "[{0}] is an unsupported original PCL EventType and has been removed from the homepage.", + "t06b4fe9252c24534": "Setting written: {0} → {1}", + "t4465e9af83dbb719": "Variable written: {0} → {1}", + "t95a9fa6a922b388a": "An instance operation failed. See the details below.", + "t37090f45651676fc": "Modify", + "tf061707c91e7035e": "Modify", + "t66b6eb4f15dd7f8f": "Reset", + "t9319bdabec708223": "An instance installation operation failed. See the details below.", + "t689cb884253c10b1": "No extra installation", + "t719c6d4065a0710e": "You are resetting the current instance.\nPCL CE will re-download the files required for this instance from the internet and reinstall mod loaders (if any).\nThis operation will not lose your saves, mods, resource packs, etc.", + "tb3e7e5d19f61b55d": "Reset this instance", + "t3930b7eb554270a6": "An instance export operation failed. See the details below.", + "t85fc945df2667ff0": "Export modpack:", + "t83b1bafe63b05f96": "Due to Modrinth modpack specifications, exported modpacks will not include OptiFine.", + "tc7bf96f15b044837": "Modrinth modpack file (*.mrpack)|*.mrpack", + "tf682510f4ca61067": "Failed to obtain file info online. Continue export?\n\nIf you continue, all files will be bundled directly.\nSince redistribution may violate usage terms, please avoid publishing the exported modpack!", + "t6926458ee8b8880f": "File info retrieval failed", + "tcf9ee68b64025d1e": "Failed to obtain info for some files online. Continue export?\n\nIf you continue, files without info will be bundled directly.\nSince redistribution may violate usage terms, please avoid publishing the exported modpack!", + "t23631b28bef020ab": "Partial file info retrieval failed", + "t2ebae8f836e0c2cd": "Read from config file", + "t1ff4904e89c49279": "Export content list", + "t1a385e9a46bc81af": "Modpack name", + "tb0cf74135c456d6f": "Cannot use the export path specified in config", + "t035e2c571df8f0da": "The export path specified in the configuration file cannot be used.\n\nSpecified path: {0}\n\nDetails:\n{1}", + "te7c1412d61ed9580": "Modpack version", + "tbaacb1031c0fd9f2": "Specified path: {0}", + "t5fc7e60b3e0ea96b": "Failed to read config file: {0}", + "t700c6b7f34febcb6": "Config file loaded: {0}", + "tc88336d3f0564e85": "Config file saved: {0}", + "ta5ddf79f9db4b7c4": "Select config file", + "t41908b2e24facd70": "Select file location", + "tb2e236f1a684652f": "Select export location", + "t88da633ca77352d5": "Export", + "t2d07a7c29d147b04": "Copy export contents", + "tae2d9e324c3db844": "Create archive", + "t4f92d6f5fbf6758c": "Download PCL CE release", + "td6871010d1aa649a": "Get file information", + "tb7a64cf1f43d6b29": "ZIP file (*.zip)|*.zip", + "t16919be1d226dfae": "Bundle resource files to avoid downloading them on import", + "t170ec2eeb60f331b": "Place Mods, resource packs, and shader packs directly into the modpack so they do not need to be downloaded during import.\nOnly consider this when you cannot reliably connect to CurseForge or Modrinth.", + "t28241821d44d72ce": "Only bundle resource files when you cannot reliably connect to CurseForge or Modrinth.\nDo not publicly distribute modpacks with bundled resource files, as this may violate some mods' ToS!", + "t63149ec2218a02b2": "The configuration file contains more advanced options, such as precise control over exported files and modpack storage location.\nTo modify these options, click 'Save config' first, then import after editing the configuration file.", + "t6e584e3d5ce64aa0": "Export config", + "tdf31c1965b31314c": "Import config", + "t1af1a80b7137a17a": "Modrinth upload mode", + "t8f09ff0390101a63": "Enable this if you plan to upload to Modrinth to generate fully Modrinth-compliant modpack files.\nDue to Modrinth requirements, resources only available from CurseForge cannot be downloaded online and will be bundled directly.\nAdditionally, the PCL CE launcher files cannot be included in the modpack when this is enabled.", + "t91a61fdde856cd9e": "Advanced options", + "t8f1f82e93114c262": "Modpack export config (*.txt)|*.txt", + "t831e1baa52867edc": "File specified in config not found: {0}", + "t2c6bf3089fff31d2": "Folder specified in config not found: {0}", + "t7c93a93bf68a0811": "Config file is invalid or empty!", + "t4c809b9508121ac6": "(Shader config)", + "tfa40202b01261c38": "Whether to place Mods, resource packs, and shader packs directly into the modpack so they don't need to be downloaded during import.", + "te9f148bf03cae838": "Only consider this when you cannot reliably connect to CurseForge or Modrinth.", + "t28b7bcd9121af308": "Redistribution may violate usage terms. Please avoid publicly distributing modpacks with bundled resource files!", + "t8da92f5f8489c2d2": "Excluded files", + "tc945d818be2e85fa": "If you want to automatically place additional files in the root of the archive, write their paths below.", + "t16531641b2020930": "Must be absolute paths. In each line, ending with \\\\ indicates a folder; not ending with \\\\ indicates a file.", + "t3feb43b5c222849b": "Whether to bundle the stable version of PCL CE so players without a launcher can install the modpack.", + "taa2ffe67b56dbe18": "Whether to bundle PCL CE custom content, such as feature toggle settings, homepage, background music and images, etc.", + "t8db253436c6f4eee": "Modify the rules below to control the content to be exported.", + "t5ca8aa8fb104fa6f": "If you plan to upload to Modrinth, enabling this will generate fully Modrinth-compliant modpack files.", + "t9c51701c8ab5ac4a": "Due to Modrinth requirements, resources only available from CurseForge cannot be downloaded online and will be bundled directly.", + "t7251c23837a95161": "This option conflicts with IncludeLauncher, IncludeLauncherCustom, and DontCheckHostedAssets.", + "tbc11a4062a212be9": "Storage location for the exported file.", + "t3918adec400df739": "If set, the file will be placed directly at this path during export without prompting for a location.", + "t6e0dfd93630167df": "If IncludeLauncher is True, it should end with .zip; if False, it should end with .mrpack.", + "t592a83024be6413e": "Prefix with ! to invert. You can use *, ?, [] wildcards. Later lines override earlier ones.", + "tcd81b08fddef4eaa": "Disabled mods", + "t0006a8748e35145b": "EMI profile", + "te1372fc307d55387": "Item favourites, default recipes, recipe history, etc.", + "te9faa1792d4db0b2": "Game", + "t8d9080be0c9c8370": "Game profile", + "tfe79063076b7f17f": "Command history, saved hotbar", + "t268e82d2e6e7bedb": "Game settings", + "t6f543cba87687310": "Key bindings, volume, video settings, etc.", + "tc6550bf3b055801b": "Important modpack data", + "te5075ca4e6d95834": "Scripts, built-in resource packs, data packs, etc.", + "t1b71480d61233a77": "JEI profile", + "t60d4d433a0601db5": "Item favourites, etc.", + "t5dbc6f1c9b481011": "PCL CE Launcher", + "td40d2dd6575487ce": "Bundle PCL CE for players without a launcher", + "tecdfc6c1134830a2": "PCL CE custom content", + "tf6fb8bcc23dd80f0": "Feature toggle settings, homepage, background music and images, etc.", + "t862c9a50d5287e87": "Saved maps", + "t6ace96f020ffb38b": "Maps, waypoints, etc. saved by map mods", + "tdb021393d3c2b58b": "Mod settings", + "t3b454c23efd1d7e4": "OptiFine settings", + "tfaff21b51908ce9d": "Patchouli profile", + "tc56dc67f745cfa23": "Read records, bookmarks, reading history, etc.", + "t2173eb47ca72149a": "Replay recordings", + "t0624a09a0dfb71e2": "Replay mod recordings", + "t29cb489372297726": "Texture packs", + "tc7a3c9dbb220e5d6": "Singleplayer saves", + "tfb76b9676a7fe53c": "Worlds / maps", + "tc95dc99afe57b285": "Screenshots", + "t0ef42470d670efdd": "Other folders", + "t8c9933ce3a5e1dc4": "Other folders not covered by the options above", + "tf4af1eaef3074434": "Multiplayer server list", + "tf1a57238be2ac752": "Exported structures", + "t77c622fa54ad7292": "schematics folder", + "t76420433f22d1c80": "Export", + "t9be6709eb0019ebe": "Do you want to initialise per-instance settings for this instance? This action cannot be undone.", + "t141e351a2eef1e08": "Initialise confirmation", + "tfea405f9b01d1416": "Overview", + "t83acdb2d4d760f6d": "Refreshing...", + "t9b4eaaa18caee368": "Game resources", + "tc73a6774d91ca0f6": "Saves", + "tdf3d58c7d84b85f2": "Settings", + "tca4781cceaf664e0": "April Fools'", + "t9b1c8ca621c3a255": "Hidden", + "t4a8d900c57844210": "This instance will not be shown in the instance list by default.\nPress F11 in the instance list page to view all hidden instances.", + "t69a2009a9deb78bd": "Less-used", + "t480ef5f17abdd1b1": "Mod-supported", + "tc1e6bfac5a22e765": "Regular", + "t515559957fd3acbd": "Category", + "ta88017157115d638": "Are you sure you want to delete instance {0}?", + "te358c6fc0652182b": "Are you sure you want to delete instance {0}?\nSince instance isolation is enabled for this instance, the corresponding saves, resource packs, mods, etc. will also be deleted!", + "tc6096dd6e3b57495": "Are you sure you want to permanently delete instance {0}?\nSince instance isolation is enabled for this instance, the corresponding saves, resource packs, mods, etc. will also be deleted!", + "t5489860978c76803": "Are you sure you want to permanently delete instance {0}?", + "td4fd4ae5ffd5b4e9": "Delete instance confirmation", + "t86aa9269ba9412a1": "Instance {0} has been permanently deleted!", + "t27321bb6ca447d84": "Instance {0} has been moved to the recycle bin!", + "t8779f71adfbd7287": "Default description", + "tb9ac1c43040b82cb": "Edit the description text for this instance. Leave empty to use PCL CE's default description.", + "t896f6359a87045fa": "Edit description", + "tc9d9331f6df13c83": "Edit description", + "td8e665c668dd99f6": "An instance overview operation failed. See the details below.", + "t2e8a4ae9c22dca06": "Favourite", + "tfc3389551193a511": "Are you sure you want to hide this instance from the instance list? After hiding it will no longer appear in the displayed instance list.\nPress F11 in the instance list page to view hidden instances.", + "t617a197cedd648ac": "Hide instance", + "t06c509fdf8d6e78b": "Rename instance", + "t5a30c4156f939e37": "Renamed successfully!", + "t8709e4857f104e24": "Are you sure you want to patch the core of {0}?\nPatching the game core may cause crashes or other issues.\nAfter patching, file verification will be automatically disabled.", + "t54f273b0e125077d": "Patching notice", + "t8cd8f2390e11dce3": "Patching game core, this may take a while", + "tbf98514ebdf17400": "Archive files(*.jar;*.zip)|*.jar;*.zip", + "t48574874b7e4bcab": "Select file for core patching", + "te69b44290d2ac527": "Game core patched successfully", + "t38c043e08502e710": "Personalisation", + "t28a39ead5f71b8b2": "Rename instance", + "tc0252af360e72700": "Are you sure you want to reset instance {0}?\nPCL CE will try to re-download this instance's resource file information from the internet and perform automatic installation.", + "t8b3223231d320fb3": "Reset instance confirmation", + "te3bad172c4ab6ffc": "This instance does not support reset yet!", + "t98f99fa1334c609f": "Cannot reset: Quilt is no longer supported by this launcher.", + "tc08f3233cf499266": "Export launch script failed", + "t03fefc9344418167": "Exporting launch script...", + "t68767ef57a8c1509": "Exporting launch script... (Note: using the script to launch may cause your login session to expire!)", + "t6c182e20eb78d7d2": "Batch file (*.bat)|*.bat", + "t8bff7573066345c0": "Select where to save the script", + "t0c3fd1fbf68df17d": "Please wait for the current launch task to finish first!", + "t737dc0aa07b51649": "Instance folder", + "tc87d9c833d9720b2": "Mods folder", + "tf6e37bd65d12b035": "Saves folder", + "t6ab335864461b295": "Shortcuts", + "tdd7f9fcd5cd340ab": "Unfavourite", + "tb094339479ac81e9": "Anvil", + "ta2797bfb0c0400f0": "Cobblestone", + "t16a0dbdcfa2b6779": "Command Block", + "t4986e50332fe9483": "Dirt Path", + "te9f5b71a472d27bb": "Egg", + "t95dec4757941cf7c": "Fabric (Fabric)", + "t7c63dcc48d04cbc3": "Gold Block", + "tb6dafde3be054a37": "Grass Block", + "t6f5537d8652ec493": "Fox (NeoForge)", + "t9e7529c557f180cb": "Patch (Quilt)", + "t770fdcdd6d6f3e7d": "Redstone Block", + "t229595ed966c69bf": "Redstone Lamp (off)", + "t69b8251b1d7fd98a": "Redstone Lamp (on)", + "t103f091554dcf69f": "Common image files(*.png;*.jpg;*.gif)|*.png;*.jpg;*.gif", + "t9ad12a1ab4f6b527": "Choose image", + "t0d720eeea26466dd": "Icon", + "ta8b6c39dcabfc14b": "Installed", + "t5da8476895d8c353": "Launched {0} times", + "tc30419ac9d6d256d": "Never launched", + "t713dffe3e706a2f8": "Times launched", + "t7fa9f74dc70a0ee7": "Loading instance info", + "t4c79277fb16af473": "Loading modpack info", + "t85fedcb111e93f53": "Loading information...", + "t92b742d80072559b": "Properties", + "t0e1c46c0a4d39fd6": "Delete instance", + "t633eb5f8529a10f6": "Export launch script", + "t425d85157b443ac9": "Patch core", + "tc0540c3dea709da0": "Re-download installation information for this instance from the internet and perform automatic installation.\nYour saves, mods, resource packs, etc. will not be lost.\nIf the game cannot start due to missing Libraries or other resources, try this option.", + "t74894f76ad198901": "Repair files", + "ta5769ef36ec8dde4": "Check whether the dependencies of the instance are intact, and re-download the missing or corrupted index and assets files.\nIf you encounter missing sounds in game, try this option.", + "t853aab6ecaacb35b": "Test game", + "t58dbf974977f7f52": "Advanced options", + "t0bfccf12bc46e29f": "{0} cancelled!", + "t431ec84a1fdd4a35": "Please first disable [Instance settings → Settings → Advanced startup options → Disable file verification], then try repairing the files!", + "t662704167945cee0": "{0} failed.\n\nDetails:\n{1}", + "t948ef9f66c2e8b99": "Processing, please wait...", + "t4f7ad22053699ca0": "{0} completed successfully!", + "td58f9cbfb01d2092": "File repair", + "t6e280f54e3f9a1b5": "Back to parent", + "t47721ffdd1cb67be": "Check mods", + "t2066c72f7d8c7873": "Quickly check mod version requirements, duplicates, missing dependencies, etc.\nResults are for reference only and may be inaccurate due to incorrect information in some mods.", + "tdfab0dd8cfeb41a6": "Download new data packs", + "t4520036789cd1cf1": "You can install data packs from previously downloaded files.\nData packs need to be placed in the save's datapacks folder to take effect.", + "t49bf35e5b4668026": "No data packs installed", + "t892a649bde9508bc": "Export detailed data pack info", + "t3dd3f0fe7d069599": "Loading data pack list", + "t5b99268f11dbb51d": "Deletion failed due to file being in use. Please try closing any running games and try again!", + "t9c227fa3c9000ad0": "Permanently deleted {0} items!", + "tb1651ccfeba1b5b9": "Permanently deleted {0}!", + "t5369f5ce60c4f22f": "Moved {0} items to the recycle bin!", + "t81f82ad6b08f36b1": "Moved {0} to the recycle bin!", + "t7df5c456c765e4c3": "Disable", + "tfa7b98e0f04439e3": "Download new", + "tdb5380c5ca00d8a4": "File conflict", + "t0892ef4262528ab7": "There are currently two mod files (enabled and disabled):\n - {0}\n - {1}\n\nThese two files have different content.\nYou must manually delete or rename one of them before proceeding.", + "tb3a79dfdcd946011": "Mod status toggle failed. Please try closing any running games and try again!", + "t89a377eefd04c4bf": "You can install resources from previously downloaded files.\nIf you have already installed resources, the instance isolation setting may be incorrect. Please adjust it in the settings.", + "t0b8326f6ae1fdb38": "You can download new resources or install from previously downloaded files.\nIf you have already installed resources, the instance isolation setting may be incorrect. Please adjust it in the settings.", + "tfce3b7df9ab2aba1": "No resources installed", + "t4a574e1c3c709066": "You can install resources from previously downloaded files", + "t43155cb048105719": "This folder is empty", + "tf4f0ead1116b5b62": "Enable", + "t6c67533a8afe1f01": "A resource management operation failed. See the details below.", + "t333de441c99bc22b": "Text file (*.txt)|*.txt|CSV file (*.csv)|*.csv", + "tbb203b17ebdf7f60": "CSV format", + "tdda50484e377dac9": "TXT format: Only export the current resource file name info, usually sufficient for others to get installed resource info\nCSV format: Export detailed resource info, including file name, project ID, version info, and other details", + "t7a3f8ec103a45dd5": "Select export mode", + "td1c9f8e32f6727d9": "TXT format", + "ta083aef147108081": "Export info", + "t8a8e0b1a7e4b315c": "Export detailed version info for resources", + "t7bc03302e1e4f67c": "Install from files", + "t42ca6e8863ed93d7": "Loading resource list", + "te56afdba8c75968f": "Go to the download page", + "t29fc017d002a058f": "You need to install a mod loader such as Forge, Fabric, etc. to use mods. Please go to the download page to install one.\nIf you have already installed a mod loader, you may have selected the wrong instance. Please switch to the correct instance.", + "tf5a76549ed49cfaa": "Select instance", + "t1df33817426cf8ff": "This instance cannot install mods", + "td944035e48cdd9db": "Download Litematica", + "t71c9d0bdaa75e6c2": "You may need to install the Litematica mod first. If you have already installed one, please launch the game once.\nAlternatively, you may have selected the wrong instance. Please use the instance selection button to switch instances.", + "te507785c9e87e955": "Schematics unavailable for this instance", + "t858de76f2de899f6": "Search resources: name / description / tags", + "t3a5040b68abf75f9": "Select all", + "t56d6ec3bf4515e41": "{0} file(s) selected", + "tf9294e9ea241b1b5": "Date added", + "ta6e48adc26d686d7": "File name", + "tb9bf6916437a77eb": "File size", + "t41cec19b0b5be53d": "Resource name", + "tfb3f54d79ebf0bb1": "Tag count", + "t2c485168df9ec9fe": "Sort: {0}", + "t64b0cd8342af4b26": "All ({0})", + "t2f8f1620a524b9f3": "Disabled ({0})", + "t609cf2fdf6ffcc61": "Duplicate", + "ta0c1c6602c8e66e4": "Duplicate ({0})", + "tdfb802238b38fbd4": "Enabled", + "tda8e5543f13369ca": "Enabled ({0})", + "t0bc1fb72ae1be5c5": "Error", + "t9c25d3997bc2e41f": "Error ({0})", + "t88d72ece7cf76737": "Search results", + "t08d43bdc4dcb6253": "Updatable", + "tb3d89638c58dc897": "Updatable ({0})", + "t0d5abd9fe44513fc": "Do you want to install these files as {0} to {1}?", + "t636ed7bef392fff2": "Confirm {0} installation", + "t4b4e35bb50052731": "Do you want to install these files as a Mod to {0}?", + "tcb6ca2481331d3ca": "Confirm mod installation", + "te859e6d66a16e151": "A file with the name {0} already exists. Overwrite?", + "tb23fb9949a582fc3": "Confirm file overwrite", + "tc8fe5e44bf2bf09a": "Please restore the file from the recycle bin first before trying to install!", + "t9f3672fd59db1a0c": "To install a mod, please first select a mod-compatible instance!", + "t97522f95ee697162": "Successfully installed {0} {1}(s)!", + "t2f9e65b4e18ca8a8": "Successfully installed {0}!", + "t7f9db0f6fb9b9023": "Unsupported file format: {0}. {1} supported formats: {2}", + "t7c9062e87916df7f": "Mod files (*.jar;*.litemod;*.disabled;*.old)|*.jar;*.litemod;*.disabled;*.old", + "t299ba3446d92abbf": "Select mods to install", + "t0190e4f428de4d1e": "Resource pack files (*.zip)|*.zip", + "t528303ecc4272d74": "Select resource packs to install", + "t816123fb64a91787": "Schematic files (*.litematic;*.nbt;*.schematic;*.schem)|*.litematic;*.nbt;*.schematic;*.schem", + "te44bfec7f618a520": "Select schematics to install", + "t8e5c11d41b754d1e": "Shader pack files (*.zip)|*.zip", + "ta4a892908fbb9c3f": "Select shader packs to install", + "t597848b318c74c4e": " [Error]", + "t7c7802d8adaed72e": "Folder", + "tf39b33bb4aadc5e2": "Unable to get information", + "tdfa85a041ea1809b": "Failed to open changelog", + "t3055a035f0eb7a8b": "Update", + "tfcacadc617fb5db9": "Current version: {0} ({1})\nLatest version: {2} ({3})", + "tab1696e556f288de": "Update {0}?", + "t2e3963b7e1af3f3b": "Confirm update", + "t676481107ed10a2e": "Click to update, right-click to view changelog.", + "tbd50eff4af4697ff": "View changelog", + "t3f7d59cf3b763754": "Author: {0}", + "ta5949e8d1389abbb": "Contains {0} files", + "ta79cdb56cddbd02d": "Contains 1 file", + "tedd4c541cf326c7f": "Depends on: ", + "t4ce9023ebcffd766": "{0}, version: {1}", + "tb6ce5ff81c9e5838": "Detailed error: ", + "t8413b6cec2bea3f4": "Empty folder", + "t9858574191aad1b4": "Unable to read information for this resource.", + "t988119f2f60eff68": "Unable to read information for this resource.\n\nDetails:\n{0}", + "t855e1152acd54c1e": "Failed to Read Resource", + "te51b804de1fa1601": "File: {0} ({1})", + "td81a0bc3d2b23320": "Folder not found", + "t5f179fa65fa3c5c4": "Loading details...", + "tb9ae22fecbf1f2e9": "Search on MCMod", + "t32da8316199b8a0c": "Mod ID: {0}", + "td1ef10bd63ff9022": "Path: {0}", + "ta7286ba3d06d5271": "Version: {0}", + "t4bcfaa4e7ca946ef": "Created: ", + "tcdb39b0543017609": "Data version: ", + "t7eead9ab3cb8b494": "Details: ", + "td9a16e0f46daed4d": "Enclosing dimensions: ", + "tf7c4cd5114c2e9f6": "Enclosing size: ", + "td1898e258d5d922f": "File type: ", + "tccc84b3d9a140c3d": "MCEdit/WorldEdit schematic", + "t1dbb9ebc3b7143a7": "Vanilla structure", + "tc0b0a7f5107813a7": "Sponge schematic", + "tc64efddf10849cd9": "Game version: ", + "tb4575c3ecd059aa4": "Modified: ", + "t3c81f1a5533e9cd1": "Original name: ", + "t46bfb359ba439e26": "Region count: ", + "t888d070cf293a0aa": "Size: ", + "t27083401efb100da": "Sponge version: ", + "t68a663d72674a1ec": "Total blocks: ", + "tc7a0ccee7fde8993": "Total volume: ", + "t1299a463693b6308": "Schematic version: ", + "t00a50d0f21c92f67": "Resource update aborted!", + "tf929e6e4296436fb": "Resource update failed: {0}", + "tf647bbb59100158c": "Successfully updated {0} resources!", + "t2fe702002e0cc8a1": "Successfully updated {0}!", + "t3353932ac7b3a2d3": "Download updated resource files", + "tcfc6f0f80e300d9d": "Replace old resource files", + "t23fb47d47949cd76": "Update resources: {0}", + "tc8b6acd6c2824a03": "Updating resources", + "t0c06c0f68525de81": "I understand the risks, continue updating", + "tbdbde764a34d4f32": "Newer versions of mods may be incompatible with old saves or other mods, which could cause game crashes or even permanently corrupt your saves!\nIf you are playing a modpack, do NOT update mods on your own!\n\nBefore updating, please back up your saves and check the mod's changelog.\nIf problems arise after updating, you can retrieve the previous mod version from the recycle bin.", + "t21693937fb2e718d": "Mod update warning", + "t9d8a03f46364f97f": "Save folder copied to clipboard!", + "te52345553d8eece9": "Copy failed...", + "tad2886a4dc41e1b6": "Warning! Deleting before pasting will cause save loss!", + "t3ec349752dabe75e": "Copy save", + "tc1e74205b46bf513": "Created: {0}, last modified: {1}", + "t3e89dc78fd3fb178": "Failed to delete save!", + "t2e8a29e4b72616e5": "Save moved to recycle bin!", + "t369484c5ec1fd2fd": "Deleting...", + "t979a332955c855bf": "Details", + "t454857e571a74097": "Found duplicate folder, cannot paste: {0}", + "t120b12cdbf2d75e3": "You can view the current instance's saves here", + "t9a847ba1161acb10": "No saves yet", + "t9171f53414524e65": "A saves operation failed. See the details below.", + "t0e7d90ffb11b2d6d": "Double-click a folder to enter it.", + "tb87b880332e23a8f": "Operation notice", + "te4067375056a4946": "Folder does not exist or has been deleted", + "t67c4ace2b9e92d61": "Save folder not found!", + "te7028601e7da793d": "Info", + "t899432d83d98c3bf": "Quick actions", + "td181b68d7894551f": "Failed to switch sub-page (ID {0})", + "t7c194a7fff1796ef": "Unknown instance settings sub-page type: {0}", + "t96762502d60e1998": "Save list", + "tbd755fab3b30a6b5": "Failed to load save list", + "t0a490eb3af40018c": "Open file location", + "tb716ad55bffa744e": "Open saves folder", + "t787851c9802de7b9": "Paste clipboard file", + "t0beffbcfa4510819": "Failed to paste save folder", + "te71a9e220ede1d03": "Pasted {0} folder(s)", + "t91103c8fae0111a0": "Quick launch", + "t9c5b4871d36c903f": "Failed to refresh save UI", + "t69fc05bff50ed548": "Save list ({0})", + "t47f206fe3ec9a685": "Error occurred during search", + "t46c10fbcd79ec83e": "Search save name", + "t07ec86e0f1d44f91": "Creation time", + "t257bbcc44c839db4": "Modification time", + "ta7bb2f73f0f43556": "Source folder does not exist or is not a folder", + "t9283634badebfa28": "TXT format: Only export the current data pack file name information\nCSV format: Export detailed data pack information, including file name, project ID, version information, and other details", + "t82c0db872c4a7ffc": "Author: ", + "t2228b2755b4fb353": "Data pack ID: ", + "t9491ade2781febfb": "File: ", + "t011958f9bf79ae4f": "Unable to read data pack information.", + "t3ee8679632fcd1a1": "Unable to read data pack information.\n\nDetails:\n{0}", + "t0bdf9529104b7008": "Data pack read failed", + "tb6c0bf3495992e5c": "Version: ", + "t7eabd5a06216e332": "Data pack files (*.zip)|*.zip", + "tdd989c3b4b9d5e3c": "Select data packs to install", + "t0523c0608cfcad50": "Do you want to install these files as data packs to the current save?", + "t1060c0725d578c79": "Confirm data pack installation", + "tda2630538f07aa7a": "A file with the same name already exists: {0}. Please handle that file first and try again.", + "t510f783ad2c9ea66": "Data pack status toggle failed. Please try closing any running games and try again!", + "t9dd267b91dae16ea": "Download updated data pack files", + "tb3a5d6b0f49ff53a": "Replace old data pack files", + "tb220d03ff8fa1c16": "Update data packs: {0}", + "t989f8339ff941ce3": "Skipped {0} data pack updates with unsafe file names.", + "t5d237e5a89e8c00f": "Newer versions of data packs may be incompatible with old saves or other data packs, which could cause game crashes or save corruption!\n\nBefore updating, please back up your save.\nIf problems arise after updating, you can retrieve the previous data pack version from the recycle bin.", + "t5b9399bc2a220260": "Data pack update warning", + "td85f6fb029fcb14d": "Allow commands", + "tce7ef28b670ade58": "Allowed", + "t4a044484f863c5e5": "Not allowed", + "tf0a24fc8598efefe": "Save version '{0}' may be a preview version, unsupported, cannot open in Chunkbase", + "t723c616ebe870dbe": "Open in Chunkbase", + "t8ed201fe2d0a22ec": "Unable to determine save version, cannot open in Chunkbase", + "td70e7288e1af0694": "Save details", + "t01805727314e4def": "Easy", + "t4ea02714a1e96276": "Hard", + "tde907d10df98b498": "Normal", + "tc38b401e2062ca88": "Peaceful", + "te227246f4d1712f9": "Difficulty locked: {0}", + "t418ee1851864601f": "Failed to open Chunkbase", + "tbf3cf269a0241175": "Failed to copy to clipboard", + "te5f2a4634c0a8561": "Failed to get save info", + "t10fc628593208200": "Game difficulty", + "tfda0e5d87bac4091": "Game mode", + "t16d0879b78417cf2": "Adventure", + "tff0b169fcecb9fbd": "Hardcore", + "te89383dd0b899df8": "Spectator", + "tdb8f876a8dd99404": "Survival", + "t69aee90c9b104a39": "Difficulty", + "te6df2ef62df6b8ea": "Last played", + "t90e4538f0770c4c9": "Save name", + "t99d61ea4514d645f": "Lock difficulty", + "t75d5eae61e59696b": "Lock current difficulty, preventing changes in-game", + "t64187c54fcf06c21": "Make sure the save is not open in-game before modifying settings", + "t6f38d81d63644d56": "Failed to modify cheat settings", + "t319cd8edbf998568": "Cheat settings modified successfully", + "t345e027ba7aa9931": "Failed to modify difficulty settings", + "td8a787e6dd32590c": "Difficulty modified successfully", + "t51c738ac0ef65de7": "Play time", + "t5e20fc223736c86a": "Seed", + "tac50792e77e73837": "Save settings", + "tb0bc86009feba52d": "Spawn point (X/Y/Z)", + "t2936050efd476c66": "Save version", + "t0160dee680ba5122": "Unable to get save version, difficulty, and cheat settings for versions below 1.3", + "t3594d6baee45e710": "Unable to get save version and difficulty for versions below 1.8", + "t67296e5b0b6f14d0": "Unable to get save version for versions below 1.9", + "t095a2f5192379793": "Screenshot copied to clipboard!", + "te0dba6ba1c0c78dd": "Screenshot copy failed!", + "t7e31502d17727490": "Failed to delete screenshot!", + "t0437dbd2e6ef93f2": "Screenshot moved to recycle bin!", + "tf6697801012cb5c3": "Press the screenshot key (default F2) in-game to view saved screenshots here", + "ta2e8e9dbf9330447": "No screenshots yet", + "teb369aa527e812aa": "Screenshot file not found!", + "t6d3279b3578e2c5e": "Failed to open screenshot!", + "td45f7834d6d90962": "Open screenshots folder", + "t7471e181a1530af4": "Add new server", + "tf0fe5f8377db97cf": "Please enter new server address:", + "tba0a28cd23806bff": "Minecraft Server", + "t7b5e700895abe812": "Edit server info", + "t01af5e5c7e2cf9a6": "No servers found. Add a server in-game or click the button below to add one.", + "t0f9dae50dc2d636a": "No servers yet", + "t77fdc45528150bc2": "Server list found", + "tc3b1f2a66670a584": "Unable to find server index in list", + "te4b8931b003fcbdc": "Please enter new server name:", + "t35f9c779db261c5e": "Please do not refresh too frequently!", + "t9f2a15d87299064a": "No servers found", + "ta788d8b94485ccb9": "Unable to read server data file", + "td8eadcfaa53e99f7": "Failed to read servers.dat file", + "tf87b9db5ce114e67": "Refresh all servers", + "te03d7b7e2eee4aae": "Failed to refresh server list", + "tb0a1a3b397f6c100": "Failed to refresh server list.\n\nDetails:\n{0}", + "tb3b549a29cf70bdf": "Refresh server info", + "t07c44eb39f105d1d": "Refreshing server list, please wait...", + "t17b79c84e37b296d": "Server removed", + "tc16129bac4e37a55": "Server info updated", + "td56a07882a6a4c30": "Unable to write server data file", + "ta3694e2c97a83037": "Server address copied: {0}", + "t694186911ae3e4da": "Connecting", + "t83cd1d8f37747eaa": "Connecting...", + "tb96f23f9b1db9da3": "Connecting to server {0}...", + "t4c6de01bbe86b3d8": "Copy address", + "t9d631083fbb86edf": "Failed to copy server address", + "t051836569928a9f9": "Edit", + "t4d96a8f48a04db72": "Failed to edit server info: {0}", + "te2a6044888c9aa01": "Failed to launch server", + "t8eff613f1c16c691": "Failed to launch server: {0}", + "tbe1b4f3c6c1cda1e": "Offline", + "te1c40eb448009e4e": "Refreshing server {0} status...", + "t6135d4159e892541": "Remove", + "tf6e40d6dda9d9d2c": "Are you sure you want to remove server {0}?\n'{1}' will be removed from your list, including the in-game list, and cannot be recovered.", + "t027ee565544e28b9": "Confirm server removal", + "tcd522a502acc5efb": "Server offline", + "tc0ff50ddf6a9590a": "An instance settings operation failed. See the details below.", + "td1c8332214d92565": "Follow global settings", + "tf079baf5319805b2": "These settings only apply to this game instance and do not affect other instances.", + "t8a4c4be60b6c23ec": "Instance settings initialised!", + "t0942cfc0d4005d46": "Memory used", + "t3f754f38a6547e20": "Global settings", + "t254170063a3d4c95": "Additional classpath prefix", + "tce6add83ab057f49": "Content will be added as Classpath entries at the head of this instance's launch arguments.\nAbsolute paths are required. Separate multiple entries with English semicolons (;).", + "t2f207f903580b01b": "Disable file verification", + "t276c9874402c1956": "Do not modify Assets at all; do not verify Libraries, third-party login libraries, or the instance main Jar file for modifications.\nDo not enable this unless you have modified related files.", + "t7734f842a3842a40": "Content in this text box will be appended directly to the end of the launch arguments.\nFor example, entering --demo will launch the game in demo mode.\nSupports substitution tokens from the Minecraft instance JSON, e.g. ${library_directory}.\n\nLeave empty to follow the global setting.", + "tbaf991914cae91dc": "Ignore Java compatibility warning", + "t236723cfbca1d79e": "If a manually selected Java is incompatible with this instance, automatically skip the compatibility warning popup and force the use of the manually selected Java.", + "tad9f842ba691fb1c": "Additional JVM arguments used when launching Minecraft. Do not modify unless you are certain what you are doing.\nSupports substitution tokens from the Minecraft instance JSON, e.g. ${library_directory}.\n\nLeave empty to follow the global setting.", + "t3c7e5c6976b76dc0": "This does not override the global setting: the global command runs first, then the instance command.\n\nExecutes a command or programme before launching Minecraft, using Windows command prompt syntax.\n\nThe following substitution tokens can be used for relative paths (paths end with \\):\n · {path}: PCL CE executable folder\n · {minecraft}: .minecraft folder\n · {verpath}: Instance folder (.minecraft\\versions\\instance-name\\)\n · {verindie}: Version folder when isolation is on, .minecraft folder otherwise\n · {java}: Java runtime folder\n\nAdditionally, these tokens are also supported:\n · {user}: Player name\n · {login}: Player login method\n · {uuid}: Player UUID\n · {name}: Game instance name\n · {date}, {time}: Current system time\n · {version}: Game vanilla version\n\nExamples:\n · \"{verpath}test.exe\" : Run test.exe in the instance folder\n · \"{java}java.exe\" -jar \"{verpath}test.jar\" : Run test.jar from the instance folder with Java\n · notepad \"{verindie}options.txt\" : Open the instance settings file with Notepad\n\nAlways wrap paths in double quotes to avoid failures caused by spaces.\nThe working directory when executing the command is the current .minecraft folder.", + "tcdd830c6cd119267": "Use debug-level log4j configuration", + "t4b595752bc8a3a8c": "This option changes the game log level to the minimum, which may consume substantial disk space and potentially affect game performance. It may also pose some security risks. Do not change this option if you don't know what you're doing!\nAre you sure you want to continue?", + "te376f1655a97f78c": "Follow launcher network proxy settings", + "taf8e128ddba4278b": "Use the proxy configured in [Settings - Misc - Network - HTTP Proxy] to launch the game.\nIncorrect global settings will prevent login!", + "tff584bda0148332e": "This info is displayed at the bottom-left of the game's main screen and the top-left of the F3 debug screen.\nLeave empty to follow the global setting.", + "tab631b712c513887": "Instance isolation", + "t37df05c413d1ee97": "Share saves, mods, and other files with instances that have isolation disabled.\nIf multiple instances with mods are present, mod conflicts may cause crashes.", + "t8da97ddda990e7c4": "Enabled", + "tc77bf2481702f366": "Saves, mods, and other files are kept separate from other instances, without interfering with each other.\nThis prevents cross-instance save sharing, but can help avoid mod conflicts.", + "ta7ce7dbe1128f0d9": "After changing instance isolation, you may need to manually migrate save files, mods, and other files to the new game folder.\nIf you find your saves are missing after the change, reverting this setting will restore them.\nIf you don't know how to migrate saves, it is not recommended to change this setting!", + "t5ff70e0c460b14ba": "Default window title", + "t72b24a24b7186171": "Whether the game window title should keep the default.", + "t2cb7d85e465d4c68": "Customise the game window title. Leave empty to follow the global setting.\nThe following replacement tokens are supported:\n · {user}: Player name\n · {login}: Player login method\n · {name}: Game instance name\n · {date}, {time}: Current system time\n · {version}: Game vanilla version\nNote: If your instance uses the Modern UI mod, this setting will be ineffective.", + "t80d02d707e18a966": "Game Java", + "tfb31b8a8dca01dfb": "Auto-select", + "t10c43f80e36f6f1c": "Path: {0}\nVersion: {1}\nSource: {2}", + "teaec117ce227a9bf": "Invalid path: {0}\nClick this item to re-select a valid Java", + "ta2d981f17e38c87f": "Failed to load list, please retry", + "t91004033f37b6298": "No available Java runtime detected", + "tf8379e8f48942368": "Please manually specify a Java path in settings, or click 'Scan' to re-detect", + "t9e405604dae16e94": "Path is out of allowed range. Please select a file within or under the launcher directory.", + "t82907c4d2fb89580": "Relative path: {0}\nResolved path: {1}", + "t464d60369ec72913": "Select Java in launcher directory", + "ta1671b20fa7e11a4": "Select Java in launcher directory (current path is invalid)", + "tcfe0b2eeaa7c70ed": "Java in launcher directory | {0}", + "tce793c1d927e8312": "Select a Java path relative to the instance directory", + "t7498384b686c2fcf": "If Java is placed in the game or PCL CE folder, PCL CE will prefer selecting it during auto-detection.", + "ta6ac7a930db5437f": "Target auth server", + "t20d5ef706cb3723d": "Auth server address automatically formatted!", + "t2573aa7313bbafa4": "Full address of the Yggdrasil API authentication server", + "tcef3e2cea27303a4": "Automatic join", + "tff98385f8cce2ea2": "Automatically join a server after Minecraft opens.\nSeparate IP and port with an colon, e.g. 233.233.233.233:12345.", + "t936d52b878ee55f5": "Create profile", + "tfbe2d154eb82c9c5": "Using HTTP for login operations may expose your credentials in plaintext.\nUnless you have a specific reason, always use HTTPS!", + "tafb8b636e332555b": "LittleSkin login", + "t670154db6b3a27e1": "Your third-party login settings will be overridden with LittleSkin login.\nDo not proceed unless you are the server owner, or the server owner has instructed you to do so.\n\nAre you sure you want to override the current settings?", + "taa4a7e90a21ab78f": "Confirm setting override", + "t66ba32e26defe4e5": "Lock login method", + "td4f0c724de7627b4": "You are about to lock the login method for this instance. Once locked, the login method requirement cannot be changed, and the game must be launched using the specified login method.\nThis feature may help some server owners.\nContinue?", + "tb7550744a3af66c2": "Confirm login method lock", + "tc5616d31356e3c65": "The authentication method for this instance has been locked and cannot be changed. Please use the required authentication method to launch the game.", + "t8027864b27f501cc": "Third-party login only (Authlib-Injector)", + "t31d45494e818f473": "Microsoft login only", + "t54d1b0d14b50efea": "Microsoft or third-party login (Authlib-Injector)", + "t9ee3c076a148a297": "No restriction", + "tec79bfcf63ea434d": "Server name", + "t182035e460e6884c": "Server name displayed on the login page", + "t80313b450cbb168c": "Registration link", + "t695a9798c6fba05c": "Web address for account registration, e.g. https://xxxxx.xxx/auth/register", + "t3ceae2377a17af62": "Restrict login method", + "t48fc3c860db30e8c": "Set to LittleSkin", + "t6af32ec6e6f57cfd": "Disabling SSL certificate verification may expose your login credentials to third-party interception.\nUnless you have a specific reason, always keep SSL certificate verification enabled!", + "t3468f875c729b5dc": "A launch page operation failed. See the details below.", + "t0cf642cf998c86ac": "Launch failed", + "t0c6e6d36a48d3015": "To permanently hide this notice, enter the correct PCL CE development organisation name.", + "tabf930d81a9203d3": "Enter the PCL CE development organisation name", + "tf7bf91b7d28e65ab": "You are using PCL CE (PCL Community Edition)! This version is independently developed and maintained, and differs from the original version in its development path and user experience.\n\nIf you downloaded the PCL CE by accident, we strongly recommend downloading the original PCL version for long-term use, as this distribution may not be user-friendly for newcomers.\nAdditionally, please submit PCL CE issues to the PCL CE repository, and do not report PCL CE issues to the original repository!", + "t7474a16bc5c89a9a": "PCL CE notice", + "t61599e09cb13804d": "Not quite right...", + "tb0e3009e712b21e8": "Launch log", + "tf2e307925f823db1": "« Back", + "tff0e560e20a2082f": "Failed to switch login page. ({0})", + "t1e2df9c3075ae9e4": "Log in", + "t78039212f6520d7a": "Login cancelled!", + "td01600ce19257b9f": "Microsoft", + "t6008bbfdb3e38dc4": "Offline", + "t6114f5d6d0205ad4": "Third-party", + "t04ade1879dda1916": "Switch profile", + "t73075237fd0f05f0": "Email", + "t498f7d2f8747223d": "Authentication server, username, and password cannot be empty!", + "t06eb15b75f0110f9": "Forgot password", + "t790a4386b9505be0": "The authentication server address is invalid.", + "t493f38e317087595": "Third-party login failed.", + "t5be0cbfcf01b1d6a": "Third-party login failed.\n\nOriginal error:\n{0}", + "t3ab8cc15939f3b5c": "Log out", + "ta621ab606db2a11f": "Password", + "t3d3c840a9479c5ef": "Preset - LittleSkin", + "t679e917b16ef72d9": "Register", + "t902374eeaf859afa": "Authentication server: {0}", + "t551710fd549587c9": "Select authentication server", + "tbe3cb04a40919d69": "Start OAuth login", + "ta6d788232ec3f20a": "» Use password login", + "t0315a8b263132e2d": "» Use OAuth login", + "t420c20dd9fcca860": "Copy code", + "tef5d4285531e7737": "Failed to initialise Microsoft login dialogue", + "t1b71e1023492f244": "Failed to load Microsoft login dialogue", + "td13635300bb3dac8": "The login page will open automatically. Enter the authorisation code {0} (it will be copied automatically).\n\nIf you have network issues and the page fails to load, please try again.\nYou can also open {1} on another device and enter the code manually.", + "t42b563f4a5e8d794": "The login page will open automatically, and the authorisation code will be filled in automatically.\n\nIf you have network issues and the page fails to load, please try again.\nIf the code is not filled in automatically, paste this authorisation code {0} manually (it will be copied automatically).\nYou can also open {1} on another device and enter the code manually.", + "t2a1d761830126275": "Log in to Minecraft", + "t5904373868640ff6": "Microsoft login polling failed", + "t01ed19e2900d3910": "Reopen webpage", + "t5d57127847ba6af8": "Successfully logged in from the webpage!", + "tf7df4fc957c82c54": "Test title text", + "t2e89909e0fd092e7": "A Microsoft sign-in operation failed. See the details below.", + "t5f35b345cf33839e": "Unknown error!", + "td59f3d1d31f29907": "Microsoft login authentication failed.\nPlease consider disabling the 'Verify SSL certificates for Microsoft login' option in 'Settings → Miscellaneous' and try again.\n\nOriginal error message:", + "t5cd0d666d6bab4f5": "Microsoft login authentication failed", + "t2bde595d094e39ef": "Microsoft login failed.\n\nOriginal error:\n{0}", + "td2c8f3b49f73b807": "» Purchase", + "te8eead3a6646c67d": "Log in", + "t986325cf33e84b0c": "» Website", + "tcde2cd071d25bbab": "Create", + "tced85ec25bcc781d": "Your username does not meet the standard (3 - 16 characters, letters, numbers, and underscores only), which may cause some game versions to fail to launch or encounter errors.\nIt is strongly recommended to use a standard username!\nIf you insist on using this username, you can continue.", + "tc6ddaa742bb8cdfd": "Invalid username", + "t4cc492b208bda0b3": "UUID does not meet requirements: {0}", + "td5edf64786cd13e3": "Username", + "t477a342ca80c3b80": "3 - 16 characters, letters, numbers, and underscores only", + "tb42833f5a2d2c13a": "Must be a 32-character hexadecimal string without hyphens", + "tc2209d7f05d76783": "For advanced users. If you do not know what this is, do not select this option.", + "t04ea81768ab82ad0": "Legacy", + "ta2614c41a13b5af9": "Use legacy PCL CE UUID generation rules.\nIf some single-player save data is missing after upgrading from an older PCL CE version, try this option.", + "te7bff89ec0daeeda": "Standard", + "t713f13d217d11e28": "[Recommended] The generated UUID is consistent with other launchers such as HMCL, BakaXL, and Bukkit.", + "t80fcb4b2ebd4ca91": "UUID standard", + "taa0265f4399d3309": "Change authentication server name", + "t2369ed131e93090d": "Change UUID", + "t74e814bb19061a0d": "Copy UUID", + "t952724a3a21dc439": "New profile - Select login type", + "taa4c9300b7e8607e": "Create and select a profile before launching the game", + "tc935b2db7282e943": "A Microsoft profile is required to create profiles using other login types", + "t946412fba614b86c": "Profile created!", + "t408bf95406abc59d": "Delete profile", + "t336ff2ef7565b07b": "You are about to delete this profile. This action cannot be undone.\nAre you sure you want to continue?", + "t97426dd1b93354ed": "Confirm profile deletion", + "t88022f5a042e5a8b": "Profile deleted!", + "t602a9a7ba17ca415": "Enter the new authentication server name.", + "t8ceb0f69c39c3f8c": "Change authentication server name", + "tb17131209743c985": "Failed to change username.", + "t7acd54368b376ebe": "Failed to change skin", + "t43541cd29a60bb1a": "Failed to read profile data. The file may be corrupted; the profile file has been backed up and reset.", + "t715a3dcbcfdba242": "Failed to read profile list.", + "t20af727477c625e0": "Failed to write profile list.", + "ta173733f1faa78f8": "Import / Export", + "t77358d4c779996a0": "Profile saved!", + "tbfebf1de59d23772": "Select a profile before launching the game", + "tb02a4597f7485f56": "Change UUID for profile {0}", + "t5ae64b316e76b06d": "32 characters, no hyphens", + "tca61c221e43ef3d0": "UUID should only contain letters and numbers!", + "t73504ef0b71f6fde": "Legacy PCL UUID (if single-player save data is missing, try this option)", + "t41c9551db4210c11": "New profile - Select UUID type", + "t4c177e2b3ccb969c": "Standard UUID (recommended)", + "t9a0eb83e4d605332": "Username cannot be empty!", + "te5ebbf4d9f614249": "Username cannot contain quotation marks!", + "t0ec90bdfe39bf7ff": "Unknown login type.", + "t5de593495b0ec032": "Starting from version 1.20.3, usernames can contain a maximum of 16 characters!", + "t18b2e4d6607e2743": "Note: Username can only be changed once every 30 days. Please consider carefully!", + "t4c62c9c5a5368d5b": "Confirm change", + "t1e956957673b5fc6": "After changing your username for the first time, you must wait 30 days before changing it again. You can check the exact date on the official website.", + "tc4e45c8f10d3877b": "This username is already in use. Please choose a different one.", + "tab06d3017b3b0178": "The username cannot be empty.", + "tb108f4881e05943d": "Failed to change username", + "tc8c89417c7b6fc27": "3 - 16 characters, letters, numbers, and underscores only", + "t4b41b75f3ee20c02": "The username can only be changed once every 30 days. Please consider carefully!", + "t2d868a3e66a95b91": "This username contains invalid characters other than letters, numbers and underscores.", + "te7808fed4d5d82dd": "Username changed successfully. Current username: {0}", + "tb40c5b98384b3f11": "Enter a new username", + "t6a65e07235585643": "This profile does not support changing the cape!", + "tafa058778f0044cf": "Change cape", + "tdb995b31656dddc5": "Change skin", + "t08d00806241183c5": "Edit password", + "ta6032fe19b5f8e3d": "Edit profile", + "td84c0d9e1f6a5630": "Edit username", + "t23022216697074ff": "This profile does not support changing the password!", + "t96fa37f15534dfcd": "Refresh", + "t772d00472094988f": "Save skin", + "tad222fff9f1986a6": "This profile does not support changing the skin!", + "t9320324148d73c83": "Skins and capes", + "tbf6831310af54af6": "Switch accounts", + "te2f1f4a640f734e1": "Download", + "t7ab2a77d57a655e0": "Launch", + "tf020e4630a54d322": "Loading", + "te92039beeed1d2de": "The current instance is being installed and cannot be launched!", + "t97e1807083f12386": "The current instance is being installed and cannot be configured!", + "t2bdb1de3d57c95dc": "Loading, please wait", + "t200375f1052cb52b": "No instance available", + "tcb5c4d21c9d75f2f": "Properties", + "ta562ab75537b5aab": "Getting version list...", + "td4685d3827a646d5": "Failed to download homepage. ({0})", + "t35dd74b6a44c0cc8": "Failed to read external file. ({0})", + "t6a59fd2ea5a009c9": "The homepage content is malformed. Please check the following error information:\n{0}", + "tb8784c8dd5636ff2": "Retry", + "td07b31c6e2724888": "Failed to load homepage", + "tdc479af7c40f1e57": "Loading homepage...", + "ta748cc074f78de00": "View details", + "t07405d613ec91a17": "The Echo Cave preset has been removed as it only had a shell. Please go to Settings and select another homepage preset.", + "t50d371c77a35db85": "The PCL CE announcements preset has been removed and no longer loads a homepage from the original project. Please go to Settings and select another homepage preset.", + "ta6397f884141229f": "The homepage is loading too slowly ({0} seconds). Please report this issue to the homepage author, or temporarily stop using this homepage.", + "t1f6e2c0ee3e44bf7": "Download homepage", + "tef5be5afe0c37e0c": "Change cape", + "t9f72582f4a459081": "Skin changed successfully!", + "tf1344989f6c36880": "Failed to get Authlib-Injector skin. ({0})", + "t6d0a0bc67cefb5f2": "Failed to get the Authlib-Injector skin. Too many requests were made. Please try again in 5 minutes.", + "tcf46ba5403f4305d": "Failed to get Microsoft skin. ({0})", + "t18054bb7ac0b9424": "Skin fetch has been rate-limited. Please try again in 5 minutes. ({0})", + "t6043a198efd191c1": "Obtaining the skin, please wait!", + "t07b14e88a7449ed5": "Skin file error", + "td9fa62b892e0a222": "Skin file (*.png;*.jpg;*.webp)|*.png;*.jpg;*.webp", + "tb3de450bdef8be23": "Select skin file", + "td4096ad3fa87cc72": "The skin file must be smaller than 24 KiB. The selected file is {0} KiB.", + "t15d76acc730894df": "The skin image should be 64x32 pixels or 64x64 pixels!", + "t245fe2c513e95109": "Failed to load avatar: {0}", + "t5943b5f5bb67cd73": "Skin file is corrupted: {0}", + "t34b593812b243e6c": "Alex model", + "t9a2a16545c9f7596": "Is this skin the Steve model (wide arms) or the Alex model (slim arms)?", + "te3e976d4a94f3119": "Skin model", + "t6726da71ef0a71d7": "Steve model", + "ta4c7f3beb9fee759": "Please confirm the skin model on the skin download page before using this skin!", + "t7924d4186a6410f3": "Still obtaining the skin, please try again later!", + "tbaf5db0ad0fc2ffc": "Failed to refresh skin cache.", + "tddd5fefce750d0d5": "The avatar has been refreshed!", + "t3bb3573d7bce93a1": "Updating avatar...", + "tf5b8f1c77f79766f": "Failed to save the skin file.", + "t1337f005b67c60d4": "Skin image file (*.png)|*.png", + "t888af92f234bbf9b": "Select a location to save the skin file.", + "t63b42ac69be9dc16": "Skin saved successfully!", + "t4b806a69aa469d42": "Failed to change the cape.", + "t8cfac8620b8b71cc": "Failed to change the cape: {0}", + "td4b716cf55c8c43b": "Cape changed successfully!", + "t4174fa1ba1e4dd2c": "Changing cape, please wait!", + "t01292be04704765d": "Failed to get player cape list.", + "t4cefd87fe5fd94be": "Getting the list of capes, please wait...", + "t0c46444fedd38803": "Failed to log in, and the cape cannot be changed!", + "t343395b54b51c4f2": "None", + "t8ea4dd1ce7d48f1f": "Choose a cape", + "tbc2f2a591218f46d": "Builder", + "t802de1c2cfa3d074": "Cherry Blossom", + "t1ddd7612cdf12cc2": "Cobalt", + "t651c078884443a67": "Common", + "t248549d2c853f412": "Copper", + "t8740817490051fd4": "Crafter", + "t6da94e3758d02496": "15th Anniversary", + "tce38d8c38623ed8a": "Follower's", + "t172d25e80b785f38": "Founders", + "t6015b3bf5e6a612a": "Home", + "t323bb4188bf32a1a": "Realms MapMaker", + "t14b18e03dc9baa58": "MCC 15th Year", + "tbe6a616c538152ce": "Menace", + "tf8a745f9359fea5e": "Migrator", + "tb007f8ec09ceb88e": "MINECON 2011", + "t236c63cb22af52ca": "MINECON 2012", + "t221b1ef6255641c3": "MINECON 2013", + "t2e94ef4260ac4459": "MINECON 2015", + "tbdc679f81a1476e8": "MINECON 2016", + "t3b492dbb3e9ef5cc": "Minecraft Experience", + "t84d55b41e7b59112": "Mojira Moderator", + "t49119945877e52d4": "Mojang Office", + "t5eecfa4eae6cf658": "Moonlight Trail", + "t048fa8105f1c1dd7": "Pan", + "ta53349f8da1d9ceb": "Purple Heart", + "td65b0ddda59f4497": "Translator", + "t1ced2c262fdf42f0": "Chinese Translator", + "t4de45a1ea1abe56e": "Vanilla", + "td3d9d1beb54e183e": "Yearn", + "tad5cccdf0a7c08f7": "Zombie Horse", + "t4cc3fa20673cc47d": "Changing skin, please wait!", + "t4b7622c76c05d02b": "Failed to refresh the Microsoft skin after changing it.", + "tcc0253d986a9e159": "Failed to change skin.\n\nDetails:\n{0}", + "taf13751ca1ae43c3": "Failed to log in, so the skin cannot be changed.", + "t77b40bc0e7203b74": "Signing in. The skin change will continue after sign-in completes...", + "tb84eacc7c8c3e440": "Changing skin...", + "t1554171e7d162fc4": "Failed to change skin because the connection to Mojang's skin server timed out. Please check your network connection.\n\nDetails:\n{0}", + "t05b1bda811601df2": "Click to change (right-click for more options)", + "tf28461bb49c85647": "Completed", + "te590e84f23a587dc": "Current step", + "t11d78f4ed3136371": "Download libraries", + "t56f0864c0868a2e7": "Speed", + "t895e7a9a2fefc660": "Progress", + "t52373e4342173705": "Login method", + "t6d58efacd35a835c": "Exporting launch script", + "t9f65d7ecf9589a20": "Game launched", + "t66c5e34568722ea8": "Launching...", + "t39b4d254b443f8be": "Trivia", + "t43b9c4c478bee2d1": "This is a test trivia text that should be long enough to span two lines.", + "t8a94c4a1cdbd821e": "Local", + "t195ad4475713519f": "P2P", + "t715ce81251a45319": "Relay", + "t1c67a7983b893cc3": "Failed to get AccessToken and RefreshToken: response is empty", + "tf4fc7f89fcbaa38f": "Failed to get AccessToken and RefreshToken: unable to parse response", + "t62e03af1c62b9d88": "Failed to get Natayark user information: response is empty", + "te60f2df061020360": "Failed to get Natayark user information: unable to parse response", + "t2c99de8357e3c349": "Good", + "t8e74c6d9caf4783f": "The current network environment should not affect connection experience.\nThis environment is suitable as the lobby host.", + "t91e25f4ddc6f6cd8": "Normal", + "t67e9f958a471f60f": "The current network environment may affect your connection experience.", + "t895dcef3f1bda199": "Poor", + "t88dc1bd4509b2644": "Some router and firewall settings may affect your connection experience.", + "t3def5fd29978a052": "Failed to create lobby. Please check logs or report to the developer.", + "t61e4b216cf0f2727": "An error occurred whilst creating the room. Please check the logs and report this to the developer!", + "te0fbbf57104b6aba": "Lobby service initialisation failed. Please check your network.", + "t8040959ea00f0af3": "Invalid lobby code format. Please check and try again!", + "ta2b283fbabf514ba": "Failed to join lobby. It may not exist or may have been disbanded.", + "tb044ce04bb093e0f": "Please log in to Natayark ID first!", + "td939cafbb3895a53": "PCL CE Lobby{0}", + "t228e5a443383de80": "Unsupported lobby type: {0}", + "ta186e752d6130366": "{0} / {1} ({2})", + "t6aca6fd59b821b21": "Your Natayark Network account status is abnormal and may be banned!", + "t69e1fa79b502c053": "Multiplayer components downloaded!", + "t80ef76c616854596": "Failed to download EasyTier dependencies. Please check your network.", + "teb6444363087132e": "Downloading multiplayer dependencies. Please wait...", + "t02fa63991eb87276": "Downloading EasyTier. Please wait...", + "t7bff432a11f9e911": "EasyTier has not finished downloading. Please wait and try again!", + "t4f1c57515b3e6001": "Minecraft player ID cannot contain separators (|)!", + "t59815c8201bc6e49": "Lobby is currently unavailable. Please try again later.", + "t3412261e29107fd4": "Please go to multiplayer settings and log in to Natayark Network first!", + "t9041c3ffcfae95dc": "Failed to fetch Natayark ID information", + "t728dd244bc22f2f9": "Please log in to your Natayark Network account again and try again!", + "t5999316ef723721a": "Please complete real-name verification at the Natayark Account Centre first!", + "t7123fb6bc936dc5e": "Clean caches and redundant components", + "t01341f490a387604": "Download EasyTier", + "tb32af2a5114f57c5": "Extract files", + "te8cf95714422bdc4": "Fetch lobby announcement", + "td5117ad4d0564f31": "Initialise lobby", + "t2d719a5b587c6abd": "Initialise lobby UI", + "tf5b07efd2d5c87a7": "Refresh UI", + "tb71b21582321bc5f": "Set a lobby name or select a game account.", + "t5dc4ee83965480f2": "Moderate (full cone)", + "tc14c915da5fbec64": "Open", + "tdde4255b079bbdd7": "Moderate (port restricted)", + "t36dba1e2a0e29517": "Moderate (restricted)", + "t47344176e0802f10": "Strict (symmetric)", + "t3770a023a6779840": "Strict (loose symmetric)", + "t2f95d7e8cb1970b8": "Strict (symmetric firewall)", + "t095de638a586e2cf": "Strict (UDP blocked)", + "t1ef3de06b32e521b": "Clear", + "t8ef3f16ae2c3621a": "Dump", + "t64815e7955a3eaa4": "Game {0} closed.", + "tc83695c236312546": "Kill", + "t34dedaffd3cc55f0": "Scroll", + "te484b7d274357fd5": "Go to Instance settings → Overview → Test game to display live game logs.", + "ted3a96589a9af7d7": "No live logs", + "t4efd367d15d81f2d": "A log page operation failed. See the details below.", + "td33b07075d58f565": "Game log - {0}.log", + "t7f63072f6d7e4ad3": "Game log (*.log)|*.log", + "ta78e3d3144d8f7ee": "Log exported!", + "t3c56411b4624424a": "Game stack dump - {0}.log", + "tae8b132d4e19abd4": "Game stack dump (*.log)|*.log", + "tbb008295942ade38": "Exporting stack dump. Please wait (may take 15 seconds to 1 minute).", + "t836501c01eed36a5": "Stack dump exported!", + "t17e077fb4cbb50db": "Test instances", + "t1a03bd2fd107c453": "Debug", + "t54a0e8c17ebb21a1": "Error", + "td04f4ecc104de17c": "Fatal", + "t170322a32f3c35b2": "Info", + "t8448814dc5caff5c": "Warn", + "t5900d3a13b6e1fe5": "Logs are limited to {0} lines by default. Adjust this in the max log lines settings.", + "teda53a9cf5c1aeb1": "Max lines", + "t2686da4f857240ae": "Maximum number of lines displayed. Older logs are automatically removed when this limit is exceeded.", + "te79fa23e8d1b5faf": "Live logs", + "t5eefa4f9c2007800": "Muda!", + "t0d37b78184658e5b": "[Debug mode] PCL CE is running in debug mode, which may cause performance degradation. Please do NOT enable it unless necessary!", + "tc88a37e3bf6afbeb": "A launcher interface operation failed. See the details below.", + "t8fd62066ce3444aa": "Could not return to the top of the page.", + "t4a820fbf7f49b218": "Before using PCL CE, please review and agree to the Terms of Service and Disclaimer.", + "ta7de63b1bff903d7": "ToS & Disclaimer authorisation", + "t591f3b5c1257fedd": "ToS & Disclaimer", + "tf7cefd256922f5fe": "The Conduit Club launcher still has a download task in progress. Are you sure you want to quit?", + "t071b374af1b861ac": "Back to top", + "t78148e389096d89e": "Launch log", + "t08f61250ec4d1f70": "Surrender", + "t1dfe375c285de9f0": "Close Minecraft", + "te3401b9b20685564": "Task manager", + "tcf0e3e9917f7af9d": "Restart PCL CE to apply software updates", + "t724cf6893978a9f9": "Restart PCL CE to apply software updates ({0} → {1})", + "t8b5ff083a35cc30a": "The feature hiding setting has been temporarily disabled!", + "t4ba8981c4947a770": "The feature hiding setting has been re-enabled!", + "td79d205e87282045": "Minecraft instance closed!", + "t16dd0a29f4ddf6df": "The current PCL CE build is an automated CI build.\nThis build includes the latest bug fixes, optimisations, and new features, but its performance and stability are lower. It is not suitable for daily use or creating modpacks.\n\nUnless a community developer asks you to use it, or you specifically want to do so, please use the latest stable version instead.", + "t9fcec75643ee50b5": "The current PCL CE build is a Debug build.\nThis build is only intended for developer debugging and may have serious performance issues or various unexpected network problems.\n\nProblems caused by non-developer users running this build are not supported by the community, and related issues may be closed directly.\nUnless you are a developer, please delete this build immediately and use the latest stable version instead.", + "t985d9bb520eae88e": "You can add the PCL_DISABLE_DEBUG_HINT environment variable with any value to hide this prompt.", + "tda74cc446c8cd2ca": "I know what I am doing", + "t19c423dae1947251": "Open latest download page and exit", + "t7f011c355ebdab05": "Special build notice", + "t56410fc65314dfb5": "Launch", + "t5ca6730d44152201": "Tools", + "tde71c2dc0b3fe99e": "Properties - {0}", + "t352d37af3aec3745": "Resource download - {0}", + "ta10e9ab6f4ff12b8": "Save management - {0}", + "t36919af03e986fa3": "Welcome!", + "t83c67e2888bad2b4": "Full changelog", + "t7a3c4764d30ec426": "PCL CE has been updated to {0} {1}", + "t81b589b65559418b": "Homepage preset setting has been reset", + "t100bcaba3c2faa4c": "The homepage preset setting has been reset due to the launcher update.\nPlease go to Settings - Personalisation and select the preset again.", + "t5842d5dedfcf6c37": "The Authlib authentication server does not match the URL format ({0})!", + "te4865c9996cf3b7c": "Do you want to create a new third-party authentication profile?\nAuthentication server address: {0}", + "t61946d3c915f1cc7": "Create new third-party authentication profile", + "td3e363c01d5c8484": "Please extract the file before dragging it in!", + "t6b61f012729a7a2f": "The file dragged in does not exist: {0}", + "tb73740e9a951f505": "Please drag in a file instead of a folder!", + "tb360b8237df6972e": "A homepage file already exists. Do you want to override it?", + "t15eef8589dbe45ce": "Custom homepage file loaded!", + "ta8bb9a7a12efd6da": "Imported {0}", + "t992ba00cb3767f87": "Override confirmation", + "t859cbeeb8db131a4": "A file with the same name already exists: {0}", + "t0c3020d669335449": "Please drag in only files of the same type at a time.", + "t681c037da647fbb4": "Failed to import save", + "t1ca8ad5847239b50": "The imported save is missing level.dat!", + "t044d5211fa29a9ca": "The archive does not contain an importable Minecraft save!", + "t57370495af445498": "PCL CE cannot determine which file drag operation to perform...", + "ted8286ab72394409": "A component operation failed. See the details below.", + "t0faddb0a6d3be573": "A Minecraft folder operation failed. See the details below.", + "tf4e58fd3c817a653": "Invalid skin type: {0}", + "t500fd190d4511cd2": "User has not set a custom skin", + "te8b582a46acfcc61": "Skin response contains no skin data, possibly a user without custom skin", + "t8604ca71489d8691": "Offline UUID has no official skin.", + "t36f99289673965ec": "No matching property found in skin response", + "t5c017163e4c31e1f": "Skin return value is empty, possibly a user without custom skin", + "tfe4f6cee87cd7984": "UUID is empty.", + "t819a1979606bb1df": "New version: {0}", + "tf7217af256bf18dc": "Minecraft update", + "tccc10870c6e4441c": "Update time: ", + "t2f0ed2b43758d74f": "Updated: ", + "t24308e2f6efcb539": "Vanilla", + "t311884750ff0ab4c": "New Forge", + "t7a94b3e6c7f62c38": "If prompted 'You need to agree to the EULA', edit eula.txt to agree!", + "t355ec8cf79840c5c": "If the server stops immediately, right-click edit this script and replace %JAVA_HOME% with !JAVA_HOME!", + "tc230fe7459f1e9f6": "You can select this version as a suitable Java and enable it in PCL CE under [Settings → Launch options → Java path inside launcher]!", + "t36694b2cee9dfe71": "Server stopped.", + "taad8d56288d3951f": "{0} vanilla server", + "ta58f5a5b7bb98ab1": "Failed to add client version", + "td495a225b4d7b49f": "Failed to analyse asset index URL", + "t6effc2cd919c0916": "BMCLAPI missing target version {0}", + "t985c2233443f8475": "Fabric meta download failed: {0}", + "t6a414f3061ad95a0": "Failed to install Forge in old-style mode", + "t494eeedb45023c10": "Result too short ({0})", + "t5831f634ad3bf5aa": "Too few recommended versions ({0})", + "t854a98d5cb5658f9": "Installation cancelled.", + "t3130c81240df11c4": "The installer failed, and the last line is {0}", + "t01568a626a5fe73e": "Instance {0} already exists. Download it again?{1}This will overwrite the instance JSON and JAR files, but will not affect version-isolated files.", + "t97497ce8f100afa7": "Instance already exists", + "t020f60058af369a7": "This instance is already downloading!", + "t584388f17c0aabbc": "Java was not found, installation cancelled.", + "tb34a449dc0d1ddcc": "Java 8 or higher", + "t5bb42cc340fccaed": "{0} JSON is invalid. Path: {1}; beginning content: {2}", + "t2e51682b54f9b7f4": "Failed to install new LiteLoader instance", + "tc66dc936aa69f1b6": "Unable to find details for {0} {1}-{2}!", + "t613e096cdc22a904": "Failed to install new {0} instance", + "td15eac46bcb58942": "{0} installer failed. Log ending: {1}", + "t3452b5fb3ace3eb8": "Failed to run {0} installer", + "t9a48aaca900edabd": "Failed to get {0} library list", + "t6cdd512a828b8522": "No JAR download info in base version {0}", + "t685866b2d2c32e8e": "No corresponding JSON download URL", + "t6dabaaeda6caaf29": "Mojang has not provided an official server download for Minecraft {0}, so it cannot be downloaded.", + "t90c81375158018ac": "The MC installation folder cannot be specified unless a Vanilla downloader is specified", + "t6b2048323d54080d": "A Minecraft download operation failed. See the details below.", + "tf01ed48211021a47": "Version and Forge compatibility data mismatch", + "ta868b8ba4374a7e0": "Failed to install OptiFine (method A)", + "t0c247555439b410b": "Failed to install OptiFine (method B)", + "tddec810d42434272": "Failed to run OptiFine installer", + "t9ed4bec5d844b7d9": "Version and release time data mismatch", + "t42f2ede3e4caed5e": "This server is already downloading!", + "tf78ca93e9925476a": "Download source connection timed out", + "t758af873093b85cd": "Unknown Minecraft version ({0})", + "t4db04d86761297ef": "Failed to parse {0} version list ({1})", + "t46a14880462e9f6a": "Do not use", + "t0a592a0d47f8f538": "The modpack appears to include its own launcher. Switch to using it to continue?\r\nWill open: {0}", + "tef4d1058b662bb6a": "Switch to modpack launcher?", + "t4523e519fa0dec3e": "Use bundled", + "tb41ece010e846aa0": "PCL CE cannot handle encrypted archives. Please extract and re-archive them in an unencrypted .zip format and try again.", + "t5efa5c86c96658f5": "A modpack operation failed. See the details below.", + "t763ae4f9be9771e0": "Modpack files(*.rar;*.zip;*.mrpack)|*.rar;*.zip;*.mrpack", + "t40429f1d1d245350": "Select modpack archive", + "t1dd2ddd8327674fc": "This modpack is currently being installed!", + "t06274b1078865466": "Game path cannot contain exclamation marks (!) or semicolons (;): {0}", + "t75e49b338b4afacb": "This modpack does not provide game version information and cannot be installed!", + "t2bd6193ea5041b87": "This HMCL modpack does not provide game version information and cannot be installed!", + "t30f1593165b78159": "This MCBBS modpack does not provide game version addon information and cannot be installed!", + "t9d5397c8fcc8f94c": "A mod is missing required information and has been skipped: {0}", + "t0789b76931620e89": "Failed to open modpack file", + "tccfaf5211cf7df04": "Do you want to download the optional file {0} from the modpack?", + "tfc50a99caae0cddc": "Skip", + "tea0adda7f17cd7b7": "Download optional file", + "tab1e935488bf06d0": "A file path in the modpack exceeds the instance folder. Please report this issue to the modpack author!\nIncorrect file: {0}", + "t464d48eb3e6be367": "File path validation failed", + "t4fa48085ffc3e6ae": "Cannot install this modpack: Quilt is no longer supported by this launcher.", + "t6a0e5dfa4702e9d8": "PCL CE cannot handle .rar archive files. Please extract and re-archive them in .zip format and try again!", + "tac8de86b10ce404f": "Next, select an empty folder. The modpack will be installed there.", + "td8f2eda3c923d0be": "Select installation target (must be an empty folder)", + "t2cf8efc75fddf84c": "Some mod versions in the modpack have been deleted by the mod authors, so installation cannot continue. Please report this issue to the modpack author.", + "t3cec39ab83cd0873": "Please select an empty folder as the installation target!", + "tc3ba6a23d906b986": "Install CurseForge modpack: {0}", + "tdc97c107701abc69": "Install HMCL modpack: {0}", + "t592eb3790ed70716": "Install MCBBS modpack: {0}", + "t66ecc5652d3db44f": "Install MultiMC modpack: {0}", + "t38050ed75a8a4153": "Install Modrinth modpack: {0}", + "t0582e4f542603a00": "This modpack version is too old and no longer supported!", + "ta1d92fe4579761f1": "No suitable file structure was found. This may not be a Minecraft archive.", + "t73052db1aa523fe6": "Cannot install modpack, unknown mod loader {0} (version {1})!", + "te1d74bb07585f823": "Failed to open the modpack file. The file may be corrupted or in an unsupported archive format.", + "t2d6699257c4bee24": "Construct mods download information", + "tf850a03846268d9b": "Download additions", + "taeae1c38a63a9054": "Download mods", + "td0619cf1951a25f1": "Download mods (main loader)", + "t9d8088aadb676156": "Extract archive", + "teaa3c77b95314ea3": "Extract modpack files", + "t54628284eecf8765": "Final files organisation", + "t49a5e123e9a9ae0b": "Game installation", + "tfcaa1a8a79c8afb1": "Modpack installation", + "t7dc09a852c2b0930": "Prepare mods download information", + "t8a87034e7a8f7d1d": "Add ignore flag", + "t5dbfce794cd27c76": "Analyse assets index URL", + "t5e64f8c7cd17f376": "Analyse assets index URL (background)", + "t850bd4645a0d2f63": "Analyse assets index URL (side loader)", + "te448212e6c381de6": "Analyse core JAR URL", + "t6648b90b63005612": "Analyse Fabric libraries", + "tfe2585b70e185d13": "Analyse game libraries (side loader)", + "td4c58f822a3aef82": "Analyse LabyMod libraries", + "t639f71eb7b54210c": "Analyse Legacy Fabric libraries", + "t8c86a23a263cd0b6": "Analyse LiteLoader libraries", + "tc8a5cf161a12c9fb": "Analyse {0} libraries", + "t07da133bbb650807": "Analyse missing assets", + "tddc4256b50c3f927": "Analyse missing libraries", + "t235eb110efe7a01c": "Analyse OptiFine libraries", + "t10d916f991e5c7d8": "Analyse required assets (side loader)", + "t36152f5016c75c73": "Analyse Vanilla and LabyMod libraries (side loader)", + "tc18d0670decbac13": "Analyse Vanilla libraries (side loader)", + "t43d830d701dd7e63": "Build server", + "tdb2989b3d2b56659": "Copy assets index (background)", + "t742cf1db4c0648a3": "Delete ignore flag", + "t322d0347e5da0fad": "Download assets", + "t6e52a38d98a1e081": "Download assets (main loader)", + "t351e38925dcc0390": "Download assets (side loader)", + "t7b808081572fb7c3": "Download assets index", + "t4224da49aa04e71c": "Download assets index (background)", + "t3e7a1bebf4cda08a": "Download assets index (side loader)", + "t7ef995497cdacf64": "Download core JAR", + "t07003c11e5fe4aae": "Download Fabric API", + "t84536b59b375886f": "Download game libraries", + "t7824c78e48f6e9ec": "Download game libraries (side loader)", + "te43997ba30c73f65": "Download instance JSON", + "t87f1dd50f2efde7a": "Download LabyMod client JSON", + "t850b58c5b9aabb7f": "Download Legacy Fabric API", + "t7db47cc8d9375b4a": "Download libraries", + "ta86a2bd62f08fc79": "Download libraries (main loader)", + "t704abaa1a2d7b6e2": "Download LiteLoader libraries", + "ta3437c05b03ae1af": "Download {0} libraries", + "t063c097b9651ab37": "Download {0} libraries (side loader)", + "t548dab1c4fd069d7": "Download {0} main file", + "t87c38288cd3f93d7": "Download main file", + "t27f466ba7bc211f7": "Download OptiFabric", + "t9e76b8d5b1154aa9": "Download OptiFine libraries", + "t725b88899ac8bd00": "Download OptiFine main file", + "tcc0687f3ce770246": "Download server file", + "tab80b1698d47695c": "Download Vanilla and LabyMod libraries (side loader)", + "tfca622f8a97f1a3c": "Download Vanilla assets", + "t963f930eaff1ccb9": "Download Vanilla libraries (side loader)", + "tc682d7d687c34a50": "Fabric {0} installer download", + "t5df370bbbc1eb180": "{0} download", + "tff923df470791e76": "{0} installer (*.{1})|*.{1}", + "te4921f72d87066b2": "Obtain {0} libraries", + "ta37bbd85da9c6917": "Install Forge (method A)", + "t9bf2d5ab9bc1ae80": "Install Forge (method B)", + "t98004dd0f372d9e3": "Install {0}", + "t5ed0ae446521bd0e": "Install game", + "t0bdf648848a51e7f": "Install LiteLoader", + "t36feda467bf527ff": "Install OptiFine (method A)", + "tfa9abade65008622": "Install OptiFine (method B)", + "td0e906de38a3bd2a": "LabyMod installer download", + "tee2e7e2c855329b8": "Legacy Fabric {0} installer download", + "ta53a40e20a35c07c": "LiteLoader {0} download", + "t3b859c8ac4d2ac96": "LiteLoader {0} installer download", + "t5d9e93846266cad7": "{0} {1} download", + "t4ef0b9ee70adc294": "Download {0} {1}", + "t3129676f4afe03e3": "Minecraft {0} download", + "t549ddb7fc7ed4c7c": "Minecraft {0} server download", + "tec0d598694a0ddc1": "Obtain Fabric main file URI", + "td0acf72161974466": "Obtain LabyMod client file URI", + "t090360d6da9ae7e3": "Obtain Legacy Fabric main file URI", + "t793ad8b8f3898167": "Obtain {0} details", + "t1c804515417ec737": "Obtain OptiFine URI", + "tbc48fe8c80a89e80": "Obtain OptiFine URI", + "t6c33674b42ecf17a": "Obtain Vanilla JSON URL", + "t61735d2fa2bde160": "OptiFine {0} download", + "t0eca281f2d7e8bbd": "Prepare to download {0}", + "t5040d53068b79a12": "Start LiteLoader dependency download", + "te9fc22a5a7e0d478": "Update assets index (background)", + "tb550edc45a307948": "Download Vanilla JSON", + "t6dae3e0074e3a171": "Download Vanilla libraries", + "t672309d2a4937b90": "Wait for Vanilla download", + "t66172d19b9166569": "Asset index not found", + "tae119ab9ab5df41b": "Cannot read instance folder, possibly due to permissions ({0})", + "td016464593adf365": "Version dependency recursion: {0}", + "tcf0fd86bc86e1456": "Failed to initialise instance JSON ({0})", + "t50e16427b0eb1625": "Instance JSON file not found: {0}", + "te9e87d37f1ab8f71": "This instance has no asset index information", + "te7287c7295ac4ef2": "Quilt does not support Minecraft {0}", + "t4b3aef9a87672c73": "Unrecognizable: {0}", + "t90c6a5f758bf161c": "Failed to send Minecraft update notification. ({0})", + "t363b83b42420228e": "Cannot get version number, result is empty", + "t24959e2bd7674d13": "Failed to fetch version number: {0}", + "t371e8c7c2b832d2b": "(Blue version)", + "t72f885f7783b65df": "(Purple version)", + "t73b49cbcf04c0c66": "(Red version)", + "t88957145d46b6ce7": "2013 | This update, planned in secret for two years, takes the game to new heights!", + "t28119dbbd3a79ff9": "2015 | As an all-ages game, we need peace, love, and hugs.", + "te43a4e6fa8722156": "2016 | It's time to bring modern technology to Minecraft!", + "tca7f25ab9366b74a": "2019 | We found this masterpiece from 1994 in the basement ruins!", + "t26b1c5a928eab75e": "2020 | We added 20 billion new dimensions, turning infinite imagination into reality!", + "t8f6fc5e5c9c8e13e": "2022 | One block at a time! Embrace new mining, crafting and riding gameplay!", + "t149526ae9afed496": "2023 | Research shows: players love making choices—the more the better!", + "taa4f08f65a97c993": "2024 | Poisonous potatoes have always been overlooked and underestimated, so we supercharged them!", + "tc2a0db61ced98643": "2025 | You can craft anything—including crafting your world!", + "t2dc4464c65ece2c8": "2026 | Who needs an inventory? Let the blocks follow you!", + "t9224d15218e7e49d": "Demo", + "tc4900615729aa2f1": "You must log in with a Microsoft account to launch the game!", + "t654320ad6ae70500": "Purchase", + "t6bf68aafc7cee197": "Launch cancelled!", + "t76dffb2c4f2cc2ad": "The game will launch in demo mode!", + "td13a6b69ab3c4896": "Pardon my rejection", + "t0cb5b33a8328c700": "PCL CE has launched the game {0} times for you!\nIf PCL CE has been useful, maybe consider supporting the original PCL author...\nWithout everyone's support, it's hard for PCL to maintain updates for years whilst staying free and ad-free!", + "t3b27be4b91b7a351": "Support!", + "tecc8c755ac14647f": "{0} launches!", + "t657d020bdfdb7cfb": "Exporting launch script cancelled!", + "tbeccf74cd10d3b8b": "Launch script exported successfully!", + "tb940a325d459b0a6": "Nah, maybe next time", + "t7e310e5ccdbcf626": "It looks like you haven't purchased the game...\nIf you think Minecraft is good, consider purchasing it to support the developers... Don't keep freeloading.\n\nThis prompt will no longer appear after you verify a valid Microsoft account!", + "tc9a07ce1b389631a": "Purchase!", + "tfc1342634a5a9877": "Purchase the game?", + "tc0368e509028f754": "{0} launched successfully!", + "t8339d02397914afa": "A game is already launching!", + "tdade3f9269d73a36": "Failed to cancel launch and terminate process", + "ta69385b0e77f69a0": "Unable to connect to third-party login server. ({0})", + "tcb817b9f6df0e3b0": "Unable to connect to third-party login server ({0}).\nDetails:", + "t8a4a93ef0be24ff4": "Cannot launch Minecraft: {0}", + "tce4b563b1e0fcd5a": "Failed to execute custom command", + "t6441debc90d92366": "The launcher interface is unavailable and cannot run this action.", + "t7c8e880862b48d05": "Failed to export the launch script. See the details below.", + "t6bb2d9a05c810a24": "Failed to set GPU preference, Minecraft may run on the default GPU", + "t4b826c6045501691": "Invalid state change: {0}", + "t625a743c8589309e": "Minecraft failed to launch. See the details below.", + "t8942af803997eeab": "Missing 'mainClass' in version JSON!", + "t81015a190ce3068c": "Unable to open the Natives file ({0}), the file may be corrupted. Please try relaunching the game.", + "t98f383f475ad949e": "No Java available, launch cancelled!", + "t95d7954997299ddd": "A Minecraft launch operation failed. See the details below.", + "t3b659248e42d4da7": "OptiFine may be incompatible with auto-join server, potentially causing missing textures or even game crashes!", + "t0e4e9bcc040dc17d": "Failed to set process priority", + "t1dc242a1da26ac90": "Failed to add proxy info, giving up", + "t8e7403cdad3aa82a": "Failed to refresh launch info", + "t4bb9bfdb9b969aa9": "Launch failed.\n\nError message:\n{0}", + "tc2e72b3e9539a366": "Failed to update options.txt. See the details below.", + "t50b1ec6881faa77a": "Failed to update launcher_profiles.json. See the details below.", + "t653d045d630d7b42": "Minecraft runtime monitoring failed. See the details below.", + "t919ef5f1b2ebb6c7": "Download automatically", + "t545dce6cf2cac721": "PCL CE could not find {0}. Would you like PCL CE to download it automatically?\nIf you have already installed {0}, you can import it manually under Settings → Launch options → Game Java.", + "t78bc4ff164e489bb": "Download Java automatically?", + "tb338957ee88d38c9": "Failed to check Java compatibility. See the details below.", + "te1c70601e0990be0": "The globally selected Java ({0}) is outside the required range [{1}, {2}] and may cause the game to crash.", + "t17f154d9933908cf": "The Java selected for this instance ({0}) is outside the required range [{1}, {2}] and may cause the game to crash.", + "ta74df9d076ad2976": "No maximum", + "tfa41d59eba2ae220": "No minimum", + "t4c78368cfe226393": "The Java selected through this instance's relative path ({0}) is outside the required range [{1}, {2}] and may cause the game to crash.", + "t971eaaf22dec2777": "Please search and install it manually.", + "tf9c9f3ef57e0c00f": "You need to install Java 7 to launch this version.\nPlease search and install Java 7 manually, then re-search or import it under 'Settings → Launch options → Game Java'.", + "t51e9ccc1e5938f58": "You need to install Java 8u141 or later to launch this version.\nPlease search and install it manually, then re-search or import it under 'Settings → Launch options → Game Java'.", + "tb408d038e5ea7069": "You need to install Java 8u141 ~ 8u320 to launch this version.\nPlease search and install it manually, then re-search or import it under 'Settings → Launch options → Game Java'.", + "t60471a2227f24ece": "You need to install the LegacyJavaFixer mod, or install Java 7 to launch this version.\nPlease search and install Java 7 manually, then re-search or import it under 'Settings → Launch options → Game Java'.", + "te0fa1a233ccfdbbc": "PCL CE could not find {0}.\nPlease install {0} manually, then re-search or import it under Settings → Launch options → Game Java.", + "te6880909fae0cd7b": "Java not found", + "taa970e9b5f66cb27": "Download Java", + "t9a0dca76eb146055": "Download Java files", + "td1f0861e03fb7047": "Get Java download information", + "t38bb76bf057eddb6": "Failed to get login input information.", + "te4343921c928a856": "Login failed", + "t0ce677709002afed": "Login hint", + "t8e18b410a825cf5e": "During login, please select {0}Other Sign-in Methods{1}, then select {0}Use My Password{1}.\nIf this option is not available, please select {0}Set Password{1}, then log in after setting it up.", + "t957244cdb9f232ab": "Log in again", + "t0139e54b9887614d": "Set password", + "tb1284444083463ae": "Password required", + "tb4a719df37fc0c1a": "The launcher encountered a network error whilst trying to refresh account information.\nYou can cancel, check your network, and try again, or ignore the error and continue launching, but some servers may not be playable.", + "t84c469072cb76e46": "Failed to refresh account information", + "tc4fb62202bad55cf": "Register", + "td0885b1c8accb8c4": "Third-party login failed", + "t505ed533316954c0": "Selected profile {0} is invalid!", + "ta47d7c3db5a3ecd7": "Login failed: {0}", + "t629db69d51c674ac": "Third-party login failed.\n\nDetails:\n{0}", + "tc74669bd4e04beb9": "Third-party login failed. Please check your network connection.", + "t2507cb83ddb93d57": "Third-party login failed. Please check your network connection.\n\nDetails:\n{0}", + "t2fe08f37f9c4fbc9": "$You have not created a profile. Please create one first!", + "t069848b5109f0838": "You have not created a profile, so you cannot switch profiles!", + "t53353b43b4fb6f7c": "There is only one profile in your account, so you cannot switch profiles!", + "t5c048b6749548459": "Login refresh failed", + "tfcd62b9638113ae6": "Login refresh failed.\n\nDetails:\n{0}", + "te16a027b3819593a": "Second login refresh failed", + "t1beddd14a2487400": "Select profile", + "td353cfa947a32c37": "$Login failed: Connection to login server timed out.\nPlease check your network connection!\nDetails:", + "te946fee70b5432b7": "Login failed: Connection to login server timed out.\nPlease check your network connection!", + "t69aebccd3de9e3b5": "Login failed because the connection to the login server timed out.\nPlease check your network connection.\n\nDetails:\n{0}", + "t7810e333174a1be1": "Login validation failed.\n\nDetails:\n{0}", + "t9f71cfd68e8da20d": "Abnormal login attempts from this IP.\nPlease check your network settings or try again later.", + "t0c97e64f4f6524a9": "This account appears to have been banned by Microsoft and cannot log in.", + "t4a391ad0f48f212d": "Please modify the account's date of birth on the opened webpage (change to at least 18 years old).\nWait one minute after the modification is successful, then return to PCL CE and you can log in normally!", + "td5e83cb3e4a881fe": "Create profile", + "t0041600a66874b8a": "Please create a Minecraft player profile first, then log in again.", + "t0cdab0208dd9b1c1": "Unable to get account information. This account may not have purchased Minecraft: Java Edition, or its Xbox Game Pass may have expired.", + "ta84457c800fa97e2": "You have already added this profile...", + "t341cfad6e497fb62": "Purchase Minecraft", + "te7e566064371a953": "Microsoft account login is not available in your country or region.\nPlease check your network settings or try again later.", + "t6c4c9fd31e4cf346": "Too many login attempts. Please wait a few minutes and try again!", + "t90937428a6292a44": "13 or older", + "t8cac58e844809460": "12 or younger", + "tb80931f90bb75f3b": "The account is underage. You need to modify the date of birth before logging in.\nIs the age currently set on this account over 13?", + "t5186de1fc617beb8": "You have not registered an Xbox account. Please register one first and then log in.", + "tf21947a021445476": "The third-party login server used by the current profile does not match the one required by this instance. Please use a matching profile!", + "t2b1bf91e41526b03": "Launch precheck failed: {0}", + "t04b8df72d324a8f9": "Minecraft has a problem: {0}", + "td0d23982cde78a69": "Game path cannot contain ! or ; ({0})", + "t3540d033674d12f2": "No Minecraft instance selected!", + "ta683889781f32c58": "Please select a profile before launching!", + "td63c184fbd0ad0c8": "Back", + "t5fe625f4c5f72ecf": "The path of instance '{0}' contains characters that may affect the game (non-ASCII characters). Do you still want to launch?\n\nIf you are unsure, you can choose 'Continue' first, and try modifying the game path if the game crashes shortly after launch.", + "t7a1a04bbbb8b300a": "Game path check", + "t936dfbe4346a884f": "This instance requires Microsoft login. Please use a Microsoft login profile!", + "t6bbc1a695ac1483e": "This instance requires Microsoft or third-party login. Please use a matching profile!", + "t4962e67427cca4db": "This instance requires third-party login. Please use a third-party login profile!", + "t365e4167bf66733d": "Execute custom command", + "t0e943126188968da": "End processing", + "tbdeb90f6044cfeff": "Get launch arguments", + "t2a717bf9256ca194": "Get Java", + "t5b494f8db501baf6": "Pre-launch processing", + "t6d1e318000cc6226": "Minecraft launch", + "ta48102d0cbf2b964": "Start process", + "t3fc9bbd6665c2c1d": "Wait for appearance", + "t8c565bc877a118f8": "Background music cleared!", + "t648799bd110d01d3": "Playing: {0}", + "t72b333d3f6056e5f": "Background music refreshed: {0}", + "tccdae4e6b292ec87": "Replaying: {0}", + "t20afef0cc1d05914": "Paused: {0}\nLeft-click to resume. Right-click to play the next track.", + "t025d58cc42d4e4ef": "Paused: {0}\nLeft-click to resume. Right-click to replay from the beginning.", + "ta46033f7ccb669f9": "Playing: {0}\nLeft-click to pause. Right-click to play the next track.", + "t029eb2ae0c89245c": "Playing: {0}\nLeft-click to pause. Right-click to replay from the beginning.", + "t1372bd54e91d50e1": "The audio device is being used by another programme. Close the programme using it, then restart PCL CE to restore music playback.", + "t11dbd29108dac901": "The audio device has changed. Restart PCL CE to restore music playback.", + "tabf74735dc98f54f": "No music is available to play.", + "t1eb91417ae14881f": "No usable background music was found.", + "t51cc48d44d785f39": "Music playback has not started.", + "t0232b0d0cf8235dc": "Failed to initialise or refresh background music. See the details below.", + "ta179991c9763d2fb": "Failed to play {0}.", + "t182978e78d3a250b": "Failed to play {0}: PCL CE does not support files that change audio properties during playback.", + "tad2dffd1ad63b6b9": "Failed to play {0}: PCL CE may not support this format. Convert it to .wav, .mp3, or .flac.", + "t9ff2e447b1cd935a": "An instance selection operation failed. See the details below.", + "t30bf6ea1e6cbb3ea": "Failed to add folder: PCL CE does not have permission to access this folder!", + "t8cb22d45913254c2": "Add an existing folder", + "tf30f31b25c6a7f23": "Add an existing Minecraft folder to the list.", + "t311ff990373611d3": "Add or import", + "td65df22bba6becfe": "The folder {0} has been added!", + "t3be345aa979f5bb6": "This folder already exists on the list!", + "tfe3210897a1d2cb3": "The game folder cannot be added whilst the download task is in progress!", + "t8d6efbfdb7dbf7bb": "The game folder cannot be created whilst the download task is in progress!", + "t670ec25af8419f48": "Keep", + "tc9c488906638c1d5": "Do you want to clean up the PCL CE config files in this folder?\nThis includes settings for each instance (such as custom icons, third-party login options, etc.). It has no effect on the instance itself.", + "tf132a7d5cf4e3411": "Profile clean-up", + "t3c7a4fb3566dd193": "Clear", + "t3ccc7a23bf4e7fac": "Non-Minecraft files stored in the folder will also be cleared!\nContinuing will cause all files in this folder to be permanently lost.\nPlease confirm carefully before continuing!\nTarget folder: {0}\n\nThis is the last warning!", + "t7aed7ab2250f6286": "Are you sure you want to clear this folder?\nTarget folder: {0}\n\nAll saves and other files in this folder will be permanently lost and unrecoverable!", + "t2d372a7e15c62804": "Clearing folder {0}...", + "t71d79d31f66addfc": "The folder {0} has been cleared!", + "t2d4a360f030c202a": "Create a new folder", + "t4ee29f956f35a704": "Create a new '.minecraft' folder at the location of PCL CE.", + "tb8e075b9e6571f9a": "Create a new '.minecraft' folder successfully!", + "t9112e7066855185e": "Current folder", + "ta3ea3c17b401bd2f": "Delete", + "tc2762d4d2b4a9664": "Non-Minecraft files stored in the folder will also be deleted!\nContinuing the deletion will cause all files in this folder to be permanently lost.\nPlease confirm carefully before continuing!\nTarget folder: {0}\n\nThis is the last warning!", + "tf7bc6a4534c6c560": "Are you sure you want to delete this folder?\nTarget folder: {0}\n\nAll saves and other files in this folder will be permanently lost and unrecoverable!", + "tdfc71c4b86cadf4c": "Deleting folder {0}...", + "taa21dd6bb478244a": "The folder {0} has been deleted!", + "t480f940c4266accf": "Deletion warning", + "t18dd417828ff3dfe": "Import a modpack", + "t53069994090bc005": "Enter the name of the folder that shows on the list on the left column.", + "t00da52a6efc08b10": "Enter a display name", + "taf4152a85daa327f": "Invalid Minecraft folder: {0}", + "t774b31d41110843f": "Invalid Minecraft folder: {0}\n\nDetails:\n{1}", + "t6c1a27b35c2fdfa7": "Invalid Minecraft folder", + "t26b7df503021b3be": "Minecraft folder paths cannot contain exclamation marks (!) or semicolons (;)!", + "taf9996bc4d45ff49": "Folder list", + "te75e8b4e5c971227": "Move down", + "tf853a70b120418be": "Move up", + "t8da3eaeb9d21ee6e": "The folder has been renamed to {0}!", + "tc5706b5efe897788": "Official launcher folder", + "tac86ad117c4ad469": "Remove from list", + "t3d916fa79519f383": "The folder {0} has been removed from the list!", + "t0d0cbac2eee54113": "Rename", + "t4fd5f93b2e189662": "Restore name", + "t7f5c83622e9032e2": "The folder name has been restored!", + "tdd3424eca3f5926e": "The game folder cannot be switched whilst the download task is in progress!", + "tcb087a540ef45e88": "Failed to add folder. ({0})", + "t5293d5b2e40c9c2b": "Failed to add a new folder to the folder list.", + "t54e5c6b2ebbb1327": "Failed to clean up leftover ignored items. ({0})", + "t1c0741133f4c11c4": "Failed to sort folders by drag-and-drop.", + "tdc22198bd9d518d6": "Failed to install the modpack automatically: {0}", + "t83d5573ea5bac3f9": "Failed to load Minecraft folder list.", + "tfe877ffce10860ac": "Failed to {0} folder {1}.", + "t4d05f569fa022dde": "Failed to remove game folder from list.", + "t8fe776059e171394": "Failed to rename the folder.", + "tac291dd5d1653e66": "Since the instance isolation is enabled for this instance, the corresponding saves, resource packs, mods, and other files of this instance will also be deleted!", + "te904c3f1787ed978": "No instances found. Please download an instance in any game version first.\nIf there is an existing instance, click 'Add an existing folder' on the list on the left, and select the '.minecraft' folder to import it.", + "tb8eef7430e8ded1a": "No instances available", + "t37b48005c4f3bb2c": "No matching instances", + "t7070707a64c9a260": "Failed whilst converting the instance list to display.", + "ta796d7fd4f5d2861": "Failed to delete the instance {0}.", + "tb1bc097d0d5046f9": "Failed to load instance icon.", + "tee6d064758d1c64b": "Failed to load .minecraft instance list.", + "t65f6ae117eb5a358": "Failed to load instance. ({0})", + "t624a1bd969b04ad3": "Failed to render instance list UI.", + "tfaba197404b1a0cc": "No instances are hidden. You can select 'Hidden from list' in 'Properties → Personalisation → Category' to hide the instance.\nPress 'F11' again to exit the hidden instance viewing mode.", + "tb4b5ababd87530ae": "No matching hidden instances", + "t67293e20df986327": "No hidden instances", + "t9e49a62d885d4a69": "Getting instance list...", + "taa110a744e0e909a": "Folder", + "t52408b1748edeba7": "Please enter search content.", + "tb6df28d3654ef358": "Search game instances", + "t8b146f614d81d9d6": "No hidden instances matching '{0}' were found.", + "t72d0ea2301ee1ef8": "No instances matching '{0}' were found.", + "t9d86f73d8c839940": "Enter instance name or [game version] [mod loader] to search.", + "t2018b7c67d9df1aa": "Cleanroom", + "tad25415f662cadae": "Error", + "t9f7c03879bc8f209": "Fabric", + "t11411c63fa861dfb": "Forge", + "te4a51ed9a6eb7f28": "Hidden", + "t754c99e4beca6d42": "LabyMod", + "t6e93910539e49db1": "LiteLoader", + "tdfb722df57594e91": "Mod-installable", + "t5a78fbed8fab7ac6": "NeoForge", + "tc1a3c13cf005c799": "Quilt", + "t307379fa50de1c8f": "April Fools' {0}", + "td0c19b7bcac3341b": "Experimental snapshot {0}", + "t364496f9944c3a92": "Experimental snapshot", + "tafa96f87a75359a5": "{0} needs to be installed as a parent instance.", + "t15d946f9a3f66ba0": "PCL CE does not have permission to access this folder. Please run PCL CE as administrator.", + "taf60b1b6781419af": "Instance {0} not found.", + "tb45121cb3219798b": "This instance has not been loaded. Please report this issue to the developers.", + "t34ed76db9d138f12": "Pre-release {0}", + "t7d94c018ec8d8aad": "Release {0}", + "tb2d20face804b66b": "Release candidate {0}", + "t72a02fbb1918ecd8": "An unknown error occurred. Please report this issue to the author.", + "t956930e51f0034a2": "Snapshot {0}", + "te54d01b8f183de30": "PCL CE cannot recognise the Minecraft version number of this version.", + "t157743a115bb9b04": "A settings operation failed. See the details below.", + "tbfc3cc67977c4968": "The development team of Plain Craft Launcher Community Edition!", + "tc8b5ca8c068c74a2": "PCL Community", + "t959f5c10296aca64": "Contributors", + "t92b2b2dec25efa81": "View more", + "t4f3322e66bd27de5": "Failed to load contributor information", + "ted7b822a352f1a8f": "GitHub page", + "t5c34f7d0e2124dca": "Licences and copyrights", + "t807babdd337ee4b4": "Licence document", + "tc8137453b496a581": "Source website", + "t81bfdd3e969c811c": "The original author of Plain Craft Launcher!", + "t73a72e066ebc68df": "LTCat (龙腾猫跃)", + "t035440298e53691b": "Source code", + "t6f29a8a9196ab325": "Sponsor original author", + "t52d25a9e30ba94f1": "About", + "tb4069a79aa2a678e": "Copyright © 龙腾猫跃 2016. All Rights Reserved.\rComputer Software Copyright Registration No.: 2020SR0875133\rReport violations to: hexdragon@vip.qq.com\rNOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.", + "t3dac0de92967a617": "Source code", + "tce27748c701b3f07": "The User Agent of this software includes the launcher version number to count the number of users on each version.\rOther than this, this software will not upload any other information to the developers.", + "tcc417001c6df7013": "ToS & Disclaimer", + "t5f03c875fedd5804": "Upstream legal information", + "t447f5a94d1d1baf0": "Current version: %VERSION% (%BRANCH%, %VERSIONCODE%, %COMMIT_HASH%)", + "t1db09f99bc07d686": "Are you really that bored?", + "t853b2cc96a46e4ed": "Not really", + "t844f2790a6ab01c5": "Then why are you still clicking... I don't get it.", + "td3aea5ff9a116023": "Coo coo coo?", + "taa2a331d2dcf5668": "Yes", + "tac3e99f08c1426ac": "Still clicking? Click again and I'll disable clicking...", + "t678356bfcd86ce2f": "Uh, keep going, uh...", + "t2844d197ce946c3d": "The hidden theme 'Chaos Yellow' has been unlocked... wait, this is PCL CE, probably not...", + "t856909212f10a850": "Is this fun to click...", + "tce747d78d31ac834": "There's nothing behind this!", + "t93315bcd0e441bcd": "Still clicking?", + "tfc23bacc172e8469": "How are you still so bored?", + "t9d76c8fb32d29b01": "I'm exhausted", + "t17bc26230690587f": "Alright... but there really is nothing behind this, no need to keep clicking, seriously.", + "t677dba982d2faa73": "Aren't you tired?", + "t31a9aab9d69e2374": "Aren't you really, really tired?", + "t3c9827b1a8508e9b": "Aren't you really, really, really tired?", + "t5dd7d1319ebf4115": "Not really tired", + "taa2a319aa39178ce": "Really really really not tired", + "t012ad2f1967c181b": "Then stop clicking... There's really, really, really nothing behind this!", + "t49f4c7f33678f149": "Friendly reminder", + "tf2117bc2a4b9e77c": "Super friendly reminder", + "t7a0196c867021130": "SUPER SUPER FRIENDLY REMINDER", + "t51835cce05d6a549": "Lobby and privacy information", + "t320d3c1f295a0e51": "PCL CE source code", + "teab081c430521c52": "Copyright © PCL Community & LTCat (龙腾猫跃) 2026.\rNOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.", + "t655d18bb77ca0039": "Natayark OpenID ToS", + "t73b126a0aabe2e01": "Other information", + "t9d06d61ee41fcd3e": "Privacy statement", + "t168d1ea49b72bf5c": "Device telemetry, automatic error reporting and upstream remote lobby controls have been removed. Lobbies use locally configured names and peers without a Natayark account. Peers and lobby members can receive network addresses, player names and a random identifier generated for this launcher session. The local hardware-derived identifier is no longer sent as the lobby identifier. Logs stay local unless you choose to share them for support.", + "ta35a70eb14682930": "Legal information", + "t34148e2b1bb6d40e": "Blog", + "t6cb56e40cc752f9c": "Provided BMCLAPI mirror and Forge installation tool. Details at https://bmclapi.bangbang93.com", + "tb690fb353b95bd25": "Provided cloud services for PCL CE.", + "tfa40a47cd8f8f8c2": "Designed and created the PCL CE icon.", + "tfb30d3ee224eec37": "Provided the multiplayer module!", + "t45c78b83a562341a": "Provided MCIM community resource mirrors and image hosting services for the help centre!", + "t0e2d0fc0fb341558": "Provided Chinese translation of mods and more related information!", + "tb59c1811054bb4b4": "bangbang93", + "t756076b519e4f03f": "EasyTier", + "tec28f9eae8efb349": "Emperormummy", + "t60b5ba4ac6f8f595": "Pysio @ Akaere Network", + "tf24ccdbd91428f25": "云默安 @ 至远光辉", + "t4d37865b71872697": "z0z0r4", + "t03eab0e484bc869b": "Website", + "tbdc799e5677d1954": "Website", + "t84fa39a5943f1b24": "Sponsor mirror", + "tc08d52bad6f70342": "Special thanks", + "t8b2106ca13719cb2": "Send feedback", + "t225df982c62420ad": "{0}\n\nWould you like to send feedback? Without a report, this problem may not be resolved.", + "t916b55495ae5bdfd": "{0}\n\nUpdating PCL CE to the latest version may resolve this problem.", + "t7d337d7bb23b9f79": "Submitter: {0} ({1})", + "tcb9976823cd92611": "Unable to get content", + "te422670a2a64311e": "Loading feedback list...", + "t21dda8a60ca020aa": "To report a bug, click Open folder and upload the log file containing the error from Launch-{0}-[number].log.\n\nGame crashes are usually unrelated to the launcher. Please do not submit launcher feedback only because the game crashed.", + "tc6ca814dc1e4dafb": "Not needed", + "tdd453a19bb1dc13b": "Feedback reminder", + "tf604b9cfcbaf6037": "Please check the feedback list for similar issues before submitting new feedback to avoid duplicate submissions.\nNote: This page does not show all feedback. To view more, please go to GitHub.", + "t1a9656a6fd78e1da": "New feedback", + "t228d8b711ccf3ab3": "Submit feedback", + "t4f5b599d6f30a7d1": "Check again", + "t62d71c571eb90743": "Update checking failed, so feedback cannot be sent.\nConnect to the internet, check for updates, confirm that the problem still occurs on the latest version, then send feedback.", + "t79e91fbf5a0b78d9": "You are not using the latest version of PCL CE, so feedback cannot be sent.\nUpdate PCL CE, confirm that the problem still occurs on the latest version, then send feedback.", + "tf596f520eb5a277f": "Cannot send feedback", + "t54b89f901274588b": "Uncategorised", + "tf098218a3032a625": "Declined", + "tc9bb70bcaaa3bee1": "Ignored", + "t8d12fc0d4eb26021": "Paused", + "t3b7e27cb4379da3c": "Processing", + "t34411312dc1e1f65": "Up next", + "t251bc40e7027dfc0": "Waiting", + "t8fb3a3261b438645": "Awaiting processing", + "t09ee1f81b9915207": "Output CLI information to logs for debugging", + "t2263b01199fe59d8": "Output EasyTier CLI information to the launcher log every 30 seconds for developer and community support investigation.\nThis option is for debugging only and is not recommended to keep enabled.", + "tf23b88723a5af181": "Allow IPv6 communication", + "t3b7e421dd45ec058": "Compared with IPv4, IPv6 makes P2P communication easier and can greatly improve the multiplayer experience. Do not disable it unless you have a specific reason.", + "tee966e1122adc493": "Failed to change configuration item.", + "t407600e503713ece": "Failed to initialise multiplayer settings", + "t8a5accfd518c6eca": "Failed to get network test results. See the details below.", + "t30bfbb5a5647c7ef": "Multiplayer settings have been initialised!", + "t513b240407ca2956": "Select the lowest-latency path instead of the shortest path", + "td9c1e7dfa9e7f9d2": "When enabled, EasyTier will choose the path with the lowest latency rather than the path with the fewest routing hops.\nEnabling this may reduce latency in some cases, but may increase packet loss.", + "tb7c1fc233a857f66": "Perform port guessing for symmetric NAT", + "tc6b4ea96735f3104": "Let EasyTier attempt port guessing for symmetric NAT (birthday paradox).\nThis may improve the multiplayer experience, but it may also cause issues in some cases.\nGenerally, keep it enabled.", + "t61c34cca8750946c": "Protocol preference", + "t2e9430507b92dee1": "TCP", + "t12c90425f9a33d63": "Let EasyTier prefer TCP communication, which usually provides better stability.", + "tdc4030f9688d6e67": "UDP", + "ta466cf4c7c16a577": "Let EasyTier prefer UDP communication, which usually provides lower latency.", + "ta70f93226e0720e3": "A lobby restart is required for changes on this page to take effect.", + "t1a3f0617d6de8e52": "Username", + "t3786a41b109aac73": "PCL CE will try to use this username for lobby display.\nIf left blank, the Natayark ID username will be used.\n\nIn some cases, the Natayark ID username may still be displayed instead of the name set here.", + "t2f1f3ce718ccabd9": "IPv6 status: {0}", + "ta52d1b6e84cd1052": "IPv6: Not tested", + "t4d2966c438002afc": "Not tested", + "t69ed375721d90fff": "Start test", + "td93373f81363e3cc": "Supported", + "tfb5524c38154375e": "TCP NAT type: {0}", + "t046700c56738d22f": "TCP NAT type: Not tested", + "tc8f3060095865885": "Testing...", + "tc2b7d1d16044eae7": "Network test", + "td14d3566aa4938ab": "UDP NAT type: {0}", + "t48048211fcb0fd51": "UDP NAT type: Not tested", + "t7c5378606570020b": "Unsupported", + "tf08d34169341e0d0": "Failed to initialise game management settings", + "t16564ee546afabf0": "Game management settings have been initialised!", + "t294a1ac5cd9ffa49": "File download source", + "t6a9ffc8f41744e00": "Prefer official sources, fallback to mirrors when slow", + "t28447a978045e72d": "Game download behavior", + "tded7c9d6351ed89a": "Prefer mirror sources", + "t78f63dabc9722495": "Prefer official sources", + "tea5763857dc4580e": "Version list source", + "t3701feffd233fcfc": "Prefer mirror sources (recently released versions may be missing)", + "t316ed1389081bd72": "Automatically set to launcher language", + "t18009bb726c0dab4": "Game language", + "t75aef217fe826da7": "Game update notification", + "t4e679e6605ec3cdf": "Recognise community resource links in clipboard", + "t9e4129a9cab4faf6": "When enabled, PCL CE will read your clipboard and recognise resource links, then ask whether to navigate to the detail page.", + "tdfe304b06f22b322": "Release notification", + "tde6d4af47b324415": "Show a notification when a Minecraft release is available", + "t78dc05c3affaba2e": "Snapshot notification", + "t7c2a46b90ec00890": "Show a notification when a Minecraft snapshot or pre-release is available", + "tb8f88aeead1520c8": "Accessibility", + "t808c417cbe281fb4": "Auto-check and install required dependencies when downloading mods", + "t0aad21e38cb31a02": "When installing a mod, if missing required dependencies are detected, a list will be shown for confirmation before auto-downloading and installing them (can be cancelled during confirmation)", + "t4f5b37450a4780c6": "File name format", + "t88e454d9c767686b": "【Create】create-1.21.1-6.0.4", + "ta3a5f1ae156f33d6": "[Create] create-1.21.1-6.0.4", + "t117b2b0bb6482497": "Create-create-1.21.1-6.0.4", + "te8ecd64405711f82": "create-1.21.1-6.0.4-Create", + "t903ef8218edbf7d8": "create-1.21.1-6.0.4", + "t18fe0570712243a2": "Default file name format when downloading community resources", + "t262aba8abbc29843": "Hide Quilt loader", + "t90c7475f7b2b6c57": "Hide Quilt from the community resource loader display.", + "t84b22c759a18bebe": "Mod management style", + "t388d7e42b29d1362": "Title shows file name, details show translated name", + "t256870b9129547c1": "Title shows translated name, details show file name", + "t5983c446e38dff7a": "Display style of mod items on the Mod management page", + "ta81c476b36158de7": "Quick download behaviour", + "t4e4399bf6d85879a": "Always ask", + "t1c0500ea5de39faa": "Ask which instance to use", + "t7f0a99440b3cd1a2": "Ask where to save", + "t8452e76391bf6390": "Choose what happens when you click the quick download button on a resource card", + "td343ee3cdcd01563": "Download source", + "tf393258e8039a648": "Use mirrors only when the official source is slow", + "t7605b03f359674ca": "Community resources", + "ta0e12a3c655398f1": "Auto-select the instance after installation", + "taedba8d1dfc1c8c4": "Upgrade Authlib for some versions", + "t88dbf1f583fd92e8": "Some Minecraft versions, such as 1.16.5, have a bug that may cause multiplayer to be disabled when using offline login.\nPCL CE can try to upgrade the Authlib support library for these versions to fix the issue.\nThis setting only applies to newly installed instances.", + "tc07093e4582374a6": "Install behaviour", + "tb4b2fe2e349f95a5": "Speed limit", + "t1584de9adc6289ab": "Set a download speed cap to prevent other programmes that depend on the internet from freezing during downloads.", + "t388a187b43846859": "Target folder", + "t7766e1caa681595c": "Go to Launch → Selection → Folder list to change the download target folder.\nRight-click a folder or game instance to open the corresponding folder.", + "t3dfb1049a37f1fa2": "Max threads", + "t5b86780e357df406": "Setting too many download threads may cause serious lag during downloads.\n64 threads are generally enough for most download needs. Unless you know what you are doing, it is not recommended to set a higher value!", + "t4d05c1b9df8e4ac6": "More threads can speed up rate-limited downloads, but too many may cause serious lag during downloads.\nIn general, 64 threads are enough for most download needs.", + "t7a8a11ead50742a2": "Add", + "t7ed26007d70ddc71": "Failed to add Java to the list.", + "t051e92d393a1cd39": "Java added!", + "t46f06e6d97f80983": "This Java already exists, so it does not need to be added again...", + "tc925dcdabe4fb56e": "Java auto mode: automatically selects the appropriate Java based on game requirements.", + "tdb9773faa309c257": "Auto select", + "td4284e17c5004dd2": "Please deselect this Java as default before disabling it.", + "t1932da4d4dba4ed0": "Details", + "te931e4e9559f8e37": "Disable this Java", + "t01bc2f0855b961c0": "Enable this Java", + "t5dfb9bc19d6cf36d": "Please enable this Java before selecting it as default.", + "tc8b40ac095a7b3af": "Failed to change Java enabled state", + "t2f9c93437c79dae4": "Type: {0}\nVersion: {1}\nArchitecture: {2} ({3})\nVendor: {4}\nLocation: {5}", + "tf20f1464aa73b77d": "Java information", + "t4520f6a52ca17778": "Loading Java list...", + "t3678517afe8ae580": "Java programme (java.exe)|java.exe", + "t38bd35efb2db5e99": "Select Java programme", + "t69470854ac235fb0": "This Java is unavailable. Please refresh the list.", + "t9f6fee1aba17a565": "Language", + "t6844dd84fe0c919a": "Language settings updated", + "t911ff33787921f2c": "Regional format", + "t7f0588b578de1d25": "Follow system regional format", + "t778e13d48d9ac6df": "Follow UI language", + "tad3757440409cf73": "Let", + "te2ea979f4972c192": "Go Internationalised.", + "t2dd2d3bbf201d464": "With the support of the community, PCL CE is entering a new chapter in its journey towards internationalisation.", + "t6e88b1be7e03f689": "You can help shape that journey by contributing on our translation platform or submitting pull requests to our GitHub repository, making PCL CE more accessible to users around the world.", + "t7468a194ad5f19f1": "Thank you to everyone who contributes translations, reviews, and improvements—your support makes PCL CE better for everyone.", + "t473ae6a49c7be50d": "Visit translation platform", + "t9fab3495730840c1": "Submit pull request", + "t07868c98084791c9": "Language page settings initialised!", + "t3d13868593ae4eeb": "Display language", + "tbe55d2aaf1fcbdf9": "Follow system ({0})", + "t5e1b1d94c0e5ec6c": "Launch settings are abnormal and have been automatically reset", + "t866f2e8b15bbf10d": "Failed to initialise launch settings", + "t224330a0d283e1f0": "Failed to reload launch settings", + "t21e8bf4ff0c320b5": "Launch settings have been initialised!", + "t135351677632ac37": "Instance settings", + "tbac6d69c75030d00": "Disable automatic crash analysis", + "t979cecf2ea38e5ed": "When enabled, the crash analysis page will no longer automatically appear when the game crashes.", + "tb67c8dc9b5108377": "Disable Java Launch Wrapper", + "t717f55325a08f1f2": "Do not wrap with Java Wrapper when launching the game.\nJava Wrapper has been forcibly disabled because the system is ARM64 architecture.", + "t04b1a8a68dcd1d3d": "PCL CE uses Java Launch Wrapper to fix issues where older Java versions cannot launch from paths containing Chinese characters.\nIf it is blocked by anti-cheat or causes other issues, you can disable it.", + "ta4ac6f2b9461508e": "Disable LegacyFix", + "tb66984289deb751e": "PCL CE uses LegacyFix when launching version 1.5.x and below to improve legacy version gameplay experience and fix compatibility issues.", + "ta5faf266c2bf4bd1": "Lock memory allocation (-Xms = -Xmx)", + "tdbb8303350754f2d": "When enabled, the launcher additionally appends -Xms equal to the maximum heap (-Xmx), fixing the heap size. This implicitly disables heap memory uncommit, reducing latency jitter caused by the OS unmapping and remapping memory pages, and helps ZGC's collection prediction. The trade-off is that the game holds close to the maximum allocated memory for its entire runtime.", + "t70aac975eb3883d0": "Disable LWJGL Unsafe Agent", + "t0e816b9d5fcba048": "Minecraft 26.1 uses LWJGL 3.4.1, which uses the FFM API to access native memory on JDK 25+. Due to JDK optimisation limitations, this may cause severe performance issues in some cases.\nPCL CE uses LWJGL Unsafe Agent to fix this issue and avoid possible performance problems.\nThere is generally no need to disable this option, but if you encounter additional issues, you can try temporarily disabling it for troubleshooting.\n\nThis feature only takes effect when the LWJGL version is 3.4.1.", + "t50509f2f2741a776": "Game arguments tail", + "teaa2d1aa2fb6853b": "The content in this text box will be directly appended to the end of the launch arguments.\nFor example, entering --demo will start the game in demo mode.\nString replacement tokens from the Minecraft instance JSON, such as ${library_directory}, are supported.", + "tc14354ebc33a17bb": "Require Java to use the high-performance GPU", + "ta91d4f4468a428d9": "Automatically set Java to use the high-performance GPU in Windows Settings → System → Display → Graphics.\nIf the computer has both integrated and dedicated graphics, this ensures that Minecraft uses the dedicated GPU for rendering, greatly improving performance.", + "tc9173ee83b6a7e8c": "JVM arguments head", + "tddde08946298195d": "Restore", + "t72c9c84b503bf113": "Extra JVM arguments used when launching Minecraft. Do not change unless you are absolutely sure.\nSupports string replacement tokens from Minecraft instance JSON, e.g. ${library_directory}.", + "tbf0458f51f725bd0": "You can find more advanced launch options in instance settings.", + "teae7eebd4717a8c8": "Pre-launch command", + "t9c85b98e60179302": "Execute a specific command or programme before Minecraft launches. The syntax is the same as Windows Command Prompt.\n\nThe following replacement tokens can be used for relative paths (paths all end with \\):\n · {path}: The folder containing PCL CE's exe file\n · {minecraft}: The .minecraft folder\n · {verpath}: Instance folder (.minecraft\\versions\\instance_name\\)\n · {verindie}: Same as the instance folder when instance isolation is enabled; otherwise same as the .minecraft folder\n · {java}: The Java folder used by the game\n\nThe following replacement tokens are also supported:\n · {user}: Username\n · {login}: Login method\n · {uuid}: Player UUID\n · {name}: Instance name\n · {date}, {time}: System time\n · {version}: Vanilla game version\n\nExamples:\n · \"{verpath}test.exe\": Run test.exe in the instance folder\n · \"{java}java.exe\" -jar \"{verpath}test.jar\": Use Java to run test.jar in the instance folder\n · notepad \"{verindie}options.txt\": Open the instance settings file with Notepad\n\nIt is recommended to wrap paths in double quotes to avoid launch failures caused by spaces in the path.\nWhen the command is executed, the working directory is the current .minecraft folder.", + "tb91f2daef6cb7fc5": "Wait for command completion before continuing launch", + "tf73e1bec92acf66e": "DirectX 12 (d3d12)", + "t00e24be033f5005f": "Game default", + "t5eea85049ec9d7ce": "Renderer", + "t737feb88176e4a99": "Software renderer (llvmpipe)", + "t850e8e886943d301": "Vulkan (zink)", + "t439f0a0d70ef2a6f": "I know what I am doing", + "t3e86062bd8d86334": "Changing this setting will seriously affect game stability and performance. If you do not know what you are doing, do not change this option!\nAre you sure you want to continue?", + "t7da6d9ed8cd279d7": "Advanced launch options", + "t9e61db66bd99366b": "Use java.exe instead of javaw.exe", + "tc742b3df890f3fed": "If the game window does not appear for a long time, try enabling this option. PCL CE will use java.exe to run the game, giving the game process standard input/output streams to avoid possible issues when logs are printed.\n\nDepending on the behaviour of different Java distributions, java.exe may not support features that depend on operating system support, such as HDR colours. Therefore, do not enable this option if everything works normally.", + "t83550872e202b15b": "Auto", + "t919175c3b15e994f": "Dynamically adjust the memory allocated to the game based on the installed mods and available system memory.", + "t5224f4d708cd672c": "Available: {0} GiB", + "t0a954ca969b6d28e": "Game allocation", + "tf5d370fa5dfd1c7f": "Maximum memory (-Xmx)", + "t62f0a060c5487d66": "The maximum heap memory the game can use", + "tbab6ef9ef8b6f431": "Initial memory (-Xms)", + "t78aa81051d289070": "The heap memory pre-allocated when the game starts, which can be lower than the maximum heap (-Xmx). Set to 0 to let the JVM decide. Only takes effect when memory allocation is set to Custom, and has no effect when Lock memory allocation is enabled.", + "tc9dd3f417f3385d2": "initial {0} GiB, available {1} GiB", + "t1acc21aa1aa6d311": "initial {0} GiB", + "t75067b871c5a21ae": "Game memory", + "t53b504dc12213492": "Used / installed memory", + "t02cb8aec1397b56c": "32-bit Java can only allocate up to 1 GiB of memory. It is strongly recommended to use 64-bit Java!", + "t0b7fe0054a9175a0": "You have allocated too much memory to the game, which may cause crashes. It is recommended to use Auto first!", + "tabc00290e88e742c": "Custom text", + "tc03933d4d07db8ab": "This text will be displayed in the title screen and the F3 debug screen.", + "t3d7d10b1c631978c": "IPv4 preferred", + "tf0ef39242684353e": "IPv6 preferred", + "tf0d56e6d52ea394b": "Java default", + "t3f85718d9a70a26b": "IP protocol preference", + "tb12638a54d9c3005": "Set the Minecraft IP protocol preference through JVM arguments.\nIn general, IPv4 preferred is recommended to ensure that the PCL CE lobby works properly.\nIf you need manual IPv6 networking, you can choose another option.\n\nIPv4 preferred: -Djava.net.preferIPv4Stack=true\nDefault: no extra arguments\nIPv6 preferred: -Djava.net.preferIPv6Stack=true", + "tc7579b98de9a840a": "Device Code Flow", + "t1eea28ef2a1611c7": "Microsoft login method", + "t7823d20f249363e3": "The Web Account Manager has a simpler Microsoft login flow, whilst the Device Code Flow allows you to authenticate on any device with a web browser.\nIf you encounter issues with the Web Account Manager, try using the Device Code Flow.\nIf you are temporarily logging in on a public computer, Device Code Flow is recommended.\n\nDue to issues with some dependencies, this option is temporarily forced to Device Code Flow.", + "t3de88ae3855f55dd": "Web Account Manager (temporarily forced to Device Code Flow)", + "t1df7f71d2900b4fe": "High (prioritises game performance, but may cause other programmes to lag)", + "t2579a4a4a7eea088": "Low (prioritises other programmes, but may cause the game to lag; suitable for running in the background)", + "t0c8e2bcff5b7aa69": "Very high (use with caution, may severely impact other programmes)", + "t6dfa4ea7d8c811fd": "Process priority", + "t1cb9bed8c03ab7d2": "Normal (balanced)", + "tfd9ab136a934331a": "Realtime (runs the game at the highest priority; use with caution, may severely impact system performance)", + "t8dd0655d53256a1f": "Launch options", + "t8a2e28474a495058": "Custom size", + "tde377e9d2531c755": "Some versions such as Forge 1.12.2 have a bug that causes the height setting to not take effect", + "t22ea3f47fee80536": "Fullscreen", + "tc3cc36f628b16596": "Window size", + "t82c4aa13b7ca109e": "Maximised", + "t7ffd1ae8f2261484": "Note: If your instance has the Modern UI mod installed, this setting will not take effect", + "tfd5a66ba9df45b8c": "Same as launcher size", + "tcd959f842f08bb65": "Window title", + "t557756ea2b1f6d4a": "{name} | Player: {user} | Logged in as {login}", + "t29d0695615333b77": "Customise the game window title. Leave it blank to keep the default.\nThe following alternate tags are supported:\n · {user}: Username\n · {login}: Login method\n · {name}: Instance name\n · {date}, {time}: System time\n · {version}: Vanilla game version\nNote: If your instance has the Modern UI mod installed, this setting will not take effect.", + "t5aa3b331af68694c": "Isolate all instances", + "tb38d7e29457fc624": "Saves, mods, resource packs, and other files are not shared between instances.\nSaves will not be shared between Vanilla instances either, so this is generally not recommended.", + "t055d0dbd22e092e3": "The default policy only applies to newly installed instances.\nExisting instances' isolation policy needs to be adjusted in their settings.", + "t90fc54a0fbd0fbb8": "Default instance isolation", + "t85b5413d903841c6": "Isolate instances with mod support and non-releases", + "t3026c39cf4a54845": "Isolate instances with mod support", + "t71f1f5c476a616cf": "Isolate instances with mod support like Forge and Fabric to avoid mod conflicts, whilst other instances like Vanilla are not isolated.", + "t49800b5369c36fb0": "Isolate non-releases", + "t92a6e9458cbed227": "Isolate snapshots, pre-releases, old versions, and April Fools' versions from other instances.", + "tae93e7aec8122ebc": "All instances use the same profile. Saves, mods, resource packs, and other files are shared.\nIf multiple instances with mods installed are present, this may cause mod conflicts.", + "t21f1dcc19144ce64": "When installing a new instance, the isolation option for the new instance will be automatically set accordingly.\nTo adjust the isolation policy for an existing instance, please go to instance settings.", + "te1bbb3021cac8a23": "Close immediately after game starts", + "tf69a9b2a7b8f9ccd": "If the launcher is closed immediately after the game starts, features such as crash detection and changing the game title will be unavailable.\nTo keep these features, you can choose to hide the launcher after the game starts and close it automatically after the game exits.", + "t8f29b3132ccf2182": "Reminder", + "t5cfb31ef373d74fc": "Hide after game starts, close automatically after game exits", + "t868de648dbfb29e0": "Hide after game starts, reopen after game exits", + "t054311a905850c9a": "Keep unchanged after game starts", + "t87f5b03f0660fc3e": "Launcher visibility", + "t5fb815183a762c59": "Minimise after game starts", + "t847c5f681ce955a0": "Game", + "td6965cf52f76549a": "Launcher", + "t132196f9d69faabf": "Please check the feedback list for similar issues before submitting new feedback to avoid duplicate submissions.", + "td1f20df746ecf456": "New feedback", + "td884aac1d76b14dd": "Feedback list", + "t682c033f7635b5d9": "Do you want to initialise all settings on the Tools – Multiplayer page? This action cannot be undone.", + "taebd75ded7eef1fa": "Do you want to initialise all settings on the Game – Management page? This action cannot be undone.", + "t538d1ccfa63e3752": "Do you want to initialise all settings on the Launcher – Language page? This action cannot be undone.", + "tb5c5bac9db252ffb": "Do you want to initialise all settings on the Game – Launch page? This action cannot be undone.", + "tad5c097665b46cac": "Do you want to initialise all settings on the Launcher – Miscellaneous page? This action cannot be undone.", + "t5a5642ea93ce419f": "Do you want to initialise all settings on the Launcher – Personalisation page? This action cannot be undone.\n(Background images, music, homepage files, and other external files will not be deleted.)", + "t0fe8acdee57bdb1f": "About", + "t362494fcf9a50a87": "Multiplayer", + "tc1ba60ce13586503": "Java", + "t887d938275c72602": "Miscellaneous", + "t651f274470153a05": "Updates", + "t3cdf2acc08371928": "All logs", + "tc854cea07e3bf030": "Do you want to delete all historical logs?", + "t1112534a916c28f1": "Clear historical logs", + "t6bbf56f2f4b5159e": "Log files cleaned successfully!", + "tb27a136b0b135703": "{0} (current)", + "tb8f32d2848485a01": "Export log", + "t09403feb9890b4eb": "Export sanitized log archive", + "t415a08cc2123489a": "Failed to save log", + "tfd4287a32f1e01b9": "PCL CE log archive|*.zip", + "t60a4cbbcf35c0bdc": "Export log file", + "t39416ba758f35912": "Log saved successfully!", + "t6e15bd283c306fc3": "Open log folder", + "t66d6e64fb4894b59": "Log actions", + "tfe5cfebb97b6e5cc": "Temporarily stored logs ({0})", + "t933e7212e7bb2e0c": "Temporarily stored logs that have not been output", + "t83d1348e1c742209": "Failed to initialise miscellaneous settings", + "t8b245403d5b3db93": "This change will take effect after restarting PCL CE.", + "t78393456ea5a63e1": "Miscellaneous settings have been initialised!", + "t27f40db6d3e45b1f": "Animation speed", + "tf6d7ce5e5bef2cf3": "Add delay", + "ta7fc70d11c9c94a8": "Add random delays at various stages, slowing down loading to test whether certain features work correctly.\nThis will seriously affect launcher performance. Not recommended unless specifically needed.", + "td09ed8ce71faf29c": "Debug mode", + "t9bf00e23535634c2": "Some debug information will switch display after refresh or launcher restart!", + "t98b180ae3fccd4a4": "Show debug information and more error details.\nThis may slightly decrease launcher performance. Not recommended unless specifically needed.", + "t3c55d52b9f4ceb59": "Do not copy files from other folders whilst downloading", + "t403a9de54619f284": "When downloading, do not copy identical files that already exist in other Minecraft folders; re-download them instead.\nOnly recommended for testing download speed.", + "tde90f1bae01bfe50": "Debug options", + "t61da6e6dbde1e9d8": "Use DoH for address resolution", + "t01f2765244199572": "Using DoH for address resolution can provide better IP results and improve the launcher's network access. If you have deployed a DoH resolution service, you can disable this feature.", + "tfe51a8c86091b1e6": "HTTP proxy", + "t97b31b5d63f57e51": "Network", + "t7171ee0eb3241f48": "Apply proxy information", + "t5da55869ce443189": "Custom proxy", + "tb1ffbe40a56324ce": "Incorrect proxy server addresses will cause network connection failures. Network issues caused by proxy usage will not be handled.\nDo not enter untrusted proxy server addresses, as this may lead to account information leakage or even account theft.", + "tf9af167c9a973d07": "No proxy", + "t724ab82484f8b28d": "If needed", + "td86fa42c3848c680": "Use system proxy", + "t26c964f2678bec85": "Do not enter untrusted proxy addresses", + "t311bb313fdeca6aa": "Account", + "t85dc04b240179bc3": "Launcher announcements", + "t8b9863c87259d440": "Show all announcements", + "ta63f65583b1c7c4d": "Show all announcements, including launcher feature surveys, events, and more.", + "t6d7f52838cbbbe55": "Disable all announcements", + "td2215efd9defef4a": "If you choose this option, you will not receive relevant notifications even when serious issues occur in the future.\nFor example, if a critical bug is found in a certain game version, you may miss the notification and face unpredictable consequences.\n\nIn general, choosing 'Show announcements only when important' should keep you mostly undisturbed.\nUnless you are creating a server modpack or frequently update the launcher manually, this option is strongly discouraged!", + "t2d7d643563907540": "Show announcements only when important", + "tff5dba9cb7d49f84": "Disable hardware acceleration", + "tfe017784aa548855": "Export settings", + "t2194621d69fa669a": "PCL CE config file (*.json)|*.json", + "t9042d4511be4ec23": "Settings exported successfully!", + "t1a80d4a192698b02": "Import settings", + "t448ce4712d08f78e": "Settings imported successfully! Please restart PCL CE to apply them...", + "t562822892865b377": "Restart", + "t2428b36ebf26d6d3": "Maximum animation FPS", + "t6b3b75a466a0e7c0": "If you have disabled hardware acceleration, it is recommended to lower the maximum animation FPS to prevent excessive resource usage.", + "t36e08d26b3e688c6": "Live log line limit", + "te8d5c7cfffc654b9": "Stop using PCL CE", + "t144bf4a8d383995c": "Continue and remove instance configs", + "td187ce540ba1fad2": "This is the final warning! Are you sure you want to continue?\nAll PCL CE data on this computer will be lost forever! (A long time!)", + "t4b401440fe83a8d8": "This will delete all PCL CE settings, cached data, saved account information, and other related data from this computer. Your acceptance of any licence agreements will also be revoked. PCL CE will close automatically when the process is complete.\n\nThe following cannot be removed automatically:\n- Local data from other PCL CE installations on this computer\n- Your Natayark account\n\nTo also remove PCL CE configuration files from Minecraft instances, choose 'Continue and remove instance configs'. This will not affect Minecraft settings, mods, saves, or other game data.\n\nThis action cannot be undone. Are you sure you want to continue?", + "t79954066883f0100": "Stop using PCL CE?", + "t5b50d7c4b5950dc5": "System", + "t061397c80b293926": "Failed to refresh the background. The video may not be encoded as H.264 (AVC). Re-encode it as H.264 (AVC) and try again.", + "t0b439e4c7819d240": "There is an exception in the personalisation settings and it has been automatically reset.", + "tbc331a1e39cdb046": "Failed to initialise the personalisation settings.", + "tb6461d33e5f04ee0": "Error whilst loading the personalisation settings.", + "ta25bf7d8b15e98a5": "An interface settings operation failed. See the details below.", + "td2bb8322065f6b80": "Failed to change the title bar image. The image may not use a supported format. Open it in Paint and save it again, then try again.", + "t2c6edfe62773c0a8": "Failed to resize the title bar image. The image may not use a supported format. Open it in Paint and save it again, then try again.", + "t63d6b47116de363c": "Global", + "te8f6dbbb3bf54375": "Global default font", + "t58145f3b31599087": "MOTD", + "t6c47aeb621dce5fa": "Formatted code text font, used for server status info and similar content", + "t078838da4218490b": "Font", + "tebf778110553e92d": "Common image files (*.png;*.jpg;*.gif;*.webp)|*.png;*.jpg;*.gif;*.webp", + "tefa114de0809e043": "The personalisation settings have been initialised.", + "t81901c460c6d189c": "{0}px", + "t80faf20d6a765f01": "Background blur", + "t4e930298086b49a8": "Strong blur may cause serious FPS drops in the launcher. Please use it cautiously.\nIt is not recommended to enable blur when making a modpack to ensure that PCL CE can run smoothly on low-performance devices.", + "t1773a48f7a8d2962": "Clear all", + "tb7cdc2b9bac4aaa8": "All files in the background folder are about to be deleted. This operation is irrevocable. Are you sure?", + "te7a402170c880505": "The background has been cleared!", + "t11f610810899730a": "The background has been cleared!", + "t5cf0e6be448fedff": "Overlay coloured background", + "t55896c703bafb6d5": "Adaptive", + "t5104415b6ba37798": "Failed to load the image, trying to play the file as a video: {0}", + "tef290865923226d6": "No available background detected!", + "tb8acdc8748b843cd": "Put background images and videos in this folder, and PCL CE will randomly load one each time it is opened.\nFor smoother playback, videos are recommended to use H.264 encoding.", + "t06d01ff55be3682d": "Pause video backgrounds whilst an instance is running", + "t2c74ea963a9c7efd": "If enabled, the background cannot be refreshed whilst the game is running", + "td64de922a9baa612": "Refresh", + "t685fe0a268c05e47": "The background has been refreshed: {0}", + "te3612b09d212faf7": "Randomly load a background image or video from the folder.\nFor smoother playback, videos are recommended to use H.264 encoding.", + "te9ffa3f88cd8dccb": "Backgrounds", + "tbd9760b1cf6966bb": "Backgrounds", + "tfb18e26a3e30a7b1": "Backgrounds (total: {0})", + "t871323b649586984": "Bottom-left", + "t4c32aebb63c47340": "Bottom-right", + "t4cc3885c182e419c": "Centre", + "t53c9aca4b68c2237": "Fit", + "t836cc39f06440bcc": "Stretch the content whilst keeping the aspect ratio until the entire window is filled.", + "t8fffc40833fbab25": "Smart", + "t5d9086da66997984": "Select 'Tile' when the content is small, and 'Fit' when it is large.", + "t5d7d4daca250eac9": "Stretch", + "tbb90c27eb19907fd": "Stretch the content to fill the entire window, which may alter the aspect ratio.", + "t01d70f8715e4a1f3": "Tile", + "t5678ba100a412644": "Top-left", + "t9eb1676e1fbcc2fc": "Top-right", + "t024ea32a1313c4fe": "Advanced material", + "tbe778d48defe88aa": "When enabled, blur effects will be applied to some transparent areas, such as cards.\nNote that this feature consumes significant GPU resources and may cause lag!", + "t2a52f69a56f3bb88": "Blue, blue, and more blue! Want to escape from the blue dilemma? Use the official snapshot build!", + "t6ce9bf045d2a05cd": "Blur method", + "t7ea613c4d564ac02": "Box blur", + "tab92655be889c66e": "Uses linear average sampling over a small area around each pixel, which is faster but may produce colour blocks.\nThis blur may lose detail information but has better performance. It can be used on devices with poor performance.", + "t0e134f5a85ab8047": "Gaussian blur", + "t7288d8ae632a1f3a": "Uses weighted average sampling with a Gaussian convolution algorithm over a large area around each pixel, which is slower.\nThis blur has higher quality and handles details more finely. Recommended for devices with better performance.", + "t13b303db394d13b7": "Sets the blur method.", + "t6e7016fd595656b8": "Blur radius", + "t3dc2644852d55708": "Sets the sampling radius of the blur effect. Larger values produce stronger blur.", + "t0f549853799d6bde": "Sampling rate", + "tf1557ac4b742212c": "Sets the sampling rate of the blur effect. Higher values produce finer blur.\nIf your device has poor performance, try lowering this value for better performance.", + "t932689f159c9c7ad": "Get official snapshot build", + "tb61e39bfa4e57232": "Lock launcher size", + "t04405e4a9ffd2a3d": "Opacity", + "t85f65461cb14beea": "Display the PCL CE logo whilst opening the launcher", + "tef46719d9f6f3123": "Show 'Trivia' when launching the game", + "t89e5e14c8db996da": "Basics", + "t543ec5435d90915c": "You can hide unnecessary pages or disable specific features. Press F12 in any interface to show the hidden features temporarily.", + "t465eaeb5cc7dab00": "Main interface", + "tc58f3ec38d2caf68": "Specific features", + "t1c0437bb6369e94d": "'Properties' subpages", + "tfb61b744f5efe126": "'Settings' subpages", + "t03550af111b8aa63": "'Tools' subpages", + "tfe284da8d4e7a2eb": "Press F12 to disable feature hiding settings temporarily. Do not forget it or you will not be able to change the settings back...", + "t7a347b34ab5567ea": "Feature hiding", + "tc64d21f535c2819f": "Feature hiding (disabled temporarily, press F12 to re-enable)", + "t11df5cff349ab74b": "Only this tab will be hidden. Disabled content settings are still valid.\nThis can avoid feature hiding being changed whilst keeping the Personalisation page.", + "t7db1b3229df3c7f3": "Selection", + "t1b4c38bff4e63def": "Hide the selection and properties buttons below the Launch button.", + "td44271b927e7c3b7": "Mod updates", + "t8d14cef265cd3a38": "Prohibit mod updates on the mod management page.", + "t7b2a5133349a7018": "Toolbox", + "tf0bf4574ce25c131": "Blank", + "t7b2e800cb995cee6": "URL", + "ta464bc09e9661330": "Get more homepages", + "t7aa34c6fe793a492": "Homepage Market", + "tbc704b9434c846cb": "See ModSetup", + "tea2f46d33b367a9c": "Local", + "tcbcba2bce4054cb6": "Read the homepage from Custom.xaml in the PCL folder.\nYou can edit this file to add text, images, frequently used websites, quick launch actions, and more to the homepage.", + "t276ebcf50f045b9e": "Online", + "tec9999cc67b90e4a": "Get homepage content from the specified URL. Server owners can also use it to update server announcements dynamically.\nIf you have created a stable online homepage, click this hint to share it. Approved submissions may be added to the presets!", + "t088703267eb240c0": "Please exercise caution when using homepages provided by strangers. Malicious homepages may cause harm!", + "tb2d4690a1c25cdd6": "Homepage presets", + "t5e0bf841841d8682": "Refresh", + "t3ac145bc9625de54": "Homepage refreshed!", + "t3e0d676d2d85073d": "Homepage", + "t6353a8f9659464de": "Tutorials", + "tf1de1e2621deb2e1": "Preset", + "td8c8e4cc99de3432": "Daily Modpack Recommendation (Author: wkea)", + "te2ed8c9bd5193ef0": "Echo Cave (removed)", + "t1deaa9e0bf7bccd7": "PCL GitHub Dashboard (Author: Deep-Dark-Forest)", + "tf0d7d1f0cc6b7670": "Magazine Homepage (Author: CreeperIsASpy)", + "t1a9907e0bd68a1ed": "Minecraft News (Author: Nattiden)", + "t874c2a9cf3785541": "Minecraft Official Feed", + "t9ea0cb74d20dbf57": "Minecraft Skin Recommendation (Author: wkea)", + "t951b1dc62f975856": "Minecraft Update Summary (Author: pynickle, partially AI-generated)", + "ta1681755e51f2a1e": "News Today (Author: EYicheng)", + "ted667982fda1fb7a": "Minecraft Knowledge (Author: awaEric233)", + "t679c82547decd75b": "Modpack Recommendation Engine (Author: CHMYGZ)", + "t51842d6c9b0a6e43": "Bangumi Anime (Author: wzyaeu)", + "t4cd9d16cc2965838": "OpenBMCLAPI Dashboard Lite (Authors: Silverteal, Mxmilu666)", + "t8577eaed364f440e": "OpenMCIM Dashboard (Author: SALTWOOD)", + "tdf50de0152c2ad96": "PCL CE Announcements", + "t5efa12ae3ab38ba8": "PCL New Feature Manual (Author: WForst-Breeze)", + "te164350a1a176125": "PCL Homepage Market (Author: MoYuan-CN)", + "tb0f0a41800cc1fb6": "PCL News Bulletin (Author: Joker2184)", + "tbe9ce9c8aea9c1d0": "Simple Homepage (Author: MFn233)", + "t6874e7f26b359019": "Trivia", + "tb9fde9e71fddec30": "Change the icon", + "t67a58b99d117583e": "The title bar image has been cleared!", + "t27a25fbfb3baeecf": "Clear the icon", + "td24c10d37db0feea": "Image", + "t87ed84119176b0eb": "Align left", + "tdd81861811e57bf7": "Text", + "t8632017ffbbd32ab": "Text", + "tc3ebe56c4633ef87": "Title bar", + "tb8136bc5d404f531": "Play when the launcher starts", + "t9fb5e6302d69719e": "Clear all", + "ted0dd009d4925166": "All files in the music folder are about to be deleted. This operation is irrevocable. Are you sure?", + "tfefbe4b648be0ca9": "The music has been deleted!", + "t65db69340e6b658a": "Deleting music...", + "t20aa97e47730e05a": "Put the music in this folder, and PCL CE will play all of them.", + "t4c16c62e756a2e25": "Refresh", + "t6c225a11406e70d3": "Refresh the playlist and play music on the list.", + "tf34b7ce61098e539": "Shuffle playing", + "tda1e5c5bfb05854f": "Integrate with System Media Transport Controls (SMTC)", + "t826602e16c869379": "When enabled, you can use the system control centre and shortcuts to control PCL CE's media playback.\nCan be used with software such as Lyricify Lite or FluentFlyout.", + "t2f0554b570acedd8": "Play whilst an instance is running", + "t584493be26cfb1ff": "Play whilst no instance is running", + "t3c3638bb300c2032": "Musics", + "t3f1ad2c2124ef395": "Musics (total: {0})", + "t8bf8b9780d342816": "Volume", + "t6c05f9d3b4790151": "LTCat Blue", + "tceff55faed41bc0e": "Crash Blue", + "te9f5486a5bf7822c": "HMCL", + "tc3337363b6202dcc": "Sky Blue", + "ta6b75d0680322a61": "Dark", + "td988940b113e0f27": "Dark theme colors", + "t03e610202e5de15e": "Default theme colour in dark mode", + "t217cfe7db1e3d10a": "Follow system", + "taa0819dfc4d8d782": "Light", + "t0749b3e79d60511e": "Light theme colors", + "t788db1cfec2a3db5": "Theme", + "t92813534999a1b3f": "The developers seem to have forgotten to provide an update summary... Maybe click below to view the full changelog?", + "tb7149d5805df899d": "More information about this update...", + "t7f34c8f91c0afff4": "PCL CE 2.14.0 brings a refreshing new design, several Pigeon smart features, and a delightful cross-instance workflow to boost your productivity.", + "tf81139b7590901be": "About this update", + "taa0b207af6a71230": "No changelog available...", + "tfe0503e4a3c3fe50": "Check again", + "t2b66dde439e65404": "Failed to check for updates", + "t5703942ae3f8f353": "Checking for updates...", + "tbf6c3a5a4b6a0a10": "Download .NET 10 Runtime", + "t55ee22ea7fd39738": "A launcher update (version {0}) was found, but the new version requires .NET 10 to be installed on your computer.\nYou need to install .NET 10 before continuing the update.\n\nClick the button below to open the webpage, then select {1} under '.NET Desktop Runtime' to download.", + "tbb538fd77e3b3f58": "Launcher update - missing runtime", + "t9d6111711b8551f8": "Unable to retrieve latest version information. Please check your network connection.", + "tac69f68b7010ec79": "Download and install", + "tbc310480b4ce9236": "Already up to date", + "tc3ddff22bc608066": "Get CDK", + "t2eddb6fed22a8959": "MirrorChyan CDK", + "t54ff1cdfa91d0c61": "MirrorChyan (mirrorchyan.com) is a paid third-party application distribution platform that provides high-speed download sources in China.\nThis is an optional service. Leaving the CDK blank does not affect normal use or updates.\nIf you have a MirrorChyan CDK, you can provide it to PCL CE, and the launcher will prioritise its high-speed download source for software updates. This can also help reduce pressure on the community update server...", + "tfdf67c466241041b": "AquaCL 3 is the first major update of PCL CE. It brings a refreshing new design, uses the latest development technologies, completely rebuilds the core experience, and adds support for macOS, Linux, and other platforms.", + "ta3eda49175016a79": "Other update options - upgrade to AquaCL", + "t70007836f36591e9": "Restart to install", + "t13c9f157f3c4f694": "Do not automatically check for updates (not recommended)", + "tb9bdb5f8a1771090": "Disable automatic update checking. This may prevent you from receiving updates in a timely manner.", + "ta6dcd15827d0e064": "Automatically download and install updates", + "t8d99494424225f47": "The launcher will automatically check for and download available updates, and install them after closing.", + "t334a81de09fe72c6": "Automatically download and prompt for update", + "t951f3b472a6c44eb": "The launcher will automatically check for and download available updates, then prompt you to install.", + "t8560b5959338b481": "Prompt for update", + "te4d86f14bbee03fb": "The launcher will automatically check for available updates, then prompt you to download and install.", + "t559788d54f67a051": "Auto update settings", + "t4e0c88a6cc681b85": "Beta", + "t0188a9fd17f6c9bc": "Potentially unstable beta versions for early feature testing. Suitable for users who want to help test and have some technical ability.", + "t241cf8967f10e2fc": "You are switching the launcher update channel to Beta.\nBeta versions provide previews of upcoming updates, but may include insufficiently tested features and have reduced stability.\n\nAfter upgrading to Beta, you will need to wait for the next Release version or manually re-download the launcher to switch back to Release.\nThis option is only recommended for users with some basic knowledge and ability. If you are creating a modpack, please use the Release version!", + "ta11e1b352d7c08b1": "I understand", + "t64210b9be487d310": "Before continuing...", + "t32f18f63c23912eb": "Release", + "te8f76e467cf86726": "A relatively stable version that only receives bug fixes and some built-in resource updates. Suitable for most users.", + "tb5260335fcac93bb": "Update channel", + "t3a28352796575f06": "Dev", + "t7c8ed90320f087f9": "I confirm switching to this branch and am aware of the risks", + "t84f5aa1f6443b97c": "Are you sure you want to switch to the Dev channel?\nDev versions may have serious issues or even fail to launch!\n\nAfter upgrading to Dev, you will not be able to switch back to any other update channel without manually re-downloading the launcher.\n\nThis option is only recommended for advanced users. If you are creating a modpack, please use the Release version!\nPlease enter '{0}' to confirm.", + "t08a85f4ab4bab9ca": "Submit", + "ted253257e0ddbe0b": "Final confirmation", + "tf1023c97cf56d2c1": "The content you entered is incorrect...", + "t9d5144930a6b8955": "Potentially highly unstable development versions built directly from the latest source code. Suitable for highly technical users.\nGood internet connectivity may be required to download updates from this channel.", + "tc5f1b238fabd5eda": "You are switching the launcher update channel to Dev.\nThis channel provides early access to development builds from the latest code, but may be extremely unstable or even fail to launch.\n\nAfter upgrading to Dev, you can only manually re-download the launcher to switch back to Release or Beta.\nThis option is only recommended for advanced users. If you are creating a modpack, please use the Release version!", + "tb916c37c29682234": "Click to copy error details", + "tefbb30a9844474b2": "Error details copied!", + "t03500c1ff7d0dd35": "A task manager operation failed. See the details below.", + "t4e57e74634386653": "Remaining files", + "t3726bcb6903fa086": "Remaining threads", + "t6407f8f0a2148bfb": "Total progress", + "td51799004211e8dd": "PCL CE could not open this link. The link was copied to the clipboard and can be opened manually.\n\nLink: {0}", + "t6b6b1a1be9546c50": "Failed to open link", + "t46fec206fcbc256d": "{0}\n\nIf you think this is a launcher issue, please submit feedback so it can be investigated.\nExport logs: Settings → View logs → Export all logs", + "tfb8af64dc5dfe5bb": "Fatal error", + "tb0e866423d5863db": "All files|*.*", + "t4bc8cb9cd2ec74ff": "Failed to open the file or programme.\n\nPath: {0}", + "t822fb37dba29381a": "Select file", + "t422d0a1bbf05be3e": "Failed to open File Explorer. Try closing security software, such as 360 Total Security.\n\nPath: {0}", + "t0d6fad8138e77630": "Select folder", + "t37d6c1b88404d396": "Your .NET Desktop Runtime is outdated or corrupted. Please reinstall .NET 10.", + "t124d8f9462df3e83": "PCL CE failed to initialise", + "ta76ed0f9d3498caa": "{0}\n\nDetails:\n{1}", + "t25d3c6ebd7c24a1d": "{0}\n\nWhen asking for help, do not close launcher. Export the logs now (Settings → View logs → Export logs), then send the exported log archive. A screenshot of this window alone is usually not enough to diagnose the problem.", + "t744dd9d4c454cc62": "An error occurred whilst performing this operation.\n\nOperation:\n{0}\n\nDetails:\n{1}", + "tf0be132de641fdbe": "An error occurred whilst performing this operation.\n\nOperation:\n{0}\n\nDetails:\n{1}\n\nA low-level system operation failed. Please try reinstalling .NET 10.", + "t18e9c71958e02aaf": "An unexpected error occurred.", + "t87ac7e4a339b67c8": "Unexpected error", + "t34a39f97baf1c447": "An error occurred.\n\nDetails:\n{0}", + "t676ad01fa9d92cc3": "A utilities operation failed. See the details below.", + "tea6dca5fc82fc027": "Lobby", + "t7ff4ff7f1107e506": "Utilities", + "t040240d7ad1aebdd": "[{0}] {1}", + "ta8cd9642aa48cd9f": "Important", + "t4ffef8f3113a3a11": "Warning", + "t6dbdc671089d81aa": "Lobby host's game address: {0}\nNote: IP connection is only recommended when the lobby broadcast does not appear in the Minecraft multiplayer list. IP connection may require a licenced account.", + "tcf4375284e631371": "Copy IP", + "t0d167d8f62ecbfe4": "1. After entering a world, select 'Open to LAN' in the game menu\n2. Select this game instance below and click 'Create'\n3. After the lobby is created, copy the lobby ID and send it to your friend", + "td1192e27c3d45da3": "Enter port", + "tc6dd40c3fcc31173": "Manual input", + "t9c7b3a173c6311bc": "Please select a world to play together!", + "t81453549856435af": "This doesn't seem to be a Minecraft service port...", + "ta53a5686d4d1c378": "Create lobby", + "t366d5d693d0f028c": "Both sides are using different launcher versions, which may cause connection issues.\nWe strongly recommend that both sides upgrade to the latest version before continuing.", + "t618667b8799b9f7f": "Failed to connect to the lobby server", + "t49c689fcf7eb9d0e": "An error occurred whilst exiting the server!", + "tcda1ca8aeb7cceeb": "A lobby server error occurred.\n\nOriginal error:\n{0}", + "tb50c5142045477f7": "Please update to the latest PCL CE to use lobby features.", + "tb41e58390a82ef12": "Lobby feature disabled!", + "tc497c026e17e3546": "Are you sure you want to revoke the lobby agreement authorisation?", + "t522552a571bec9ac": "Revoke authorisation", + "t5633e5ca70665f71": "Are you sure you want to exit the lobby?", + "tac333f933bbbadee": "Are you sure you want to exit the lobby?\nSince you are the lobby host, exiting will automatically disband this lobby.", + "tab942a2caccc9837": "Confirm exit", + "td28522a7eed6f157": "The lobby has been automatically disbanded because you closed the Minecraft instance in the lobby.", + "t4eaa621c701e93af": "Lobby disbanded", + "tba00a3c8fbf8af45": "Since you are the lobby host, exiting will automatically disband this lobby.", + "t451755e3831fa39e": "Join", + "tbce2377283c2455a": "Clear", + "tc405771287cb9eaa": "1. Enter the lobby ID sent by your friend below and click 'Join'\n2. Launch the game, select 'Multiplayer', and join the lobby in LAN games", + "tc807f61a6dbb5bbd": "ID should look like: U/NNNN-AAAA-SSSS-EEEE", + "tf268b8c7a8bac4e4": "Invalid lobby ID. Please check and enter it again.", + "t33517926747180e6": "Paste", + "tcccb42ffea8ab9de": "Join lobby", + "t49751039edd5e32d": "Disable lobby", + "tb74e6321499e4c6e": "EasyTier official website", + "t4dae8c8326995683": "Links: ", + "tf2f07703a571ccdc": "Report violation", + "t7fa99838c3a3bfbb": "Natayark OpenID ToS", + "t44e208945d552d78": "Connecting to lobby server...", + "t7ba763c3858df793": "Creating lobby", + "tebf8e0aa81c0a74d": "Downloading lobby module", + "td9b382b6a8cf45b1": "Lobby members ({0} total)", + "tf58c1b2e60b3a71f": "Lobby members (retrieving information)", + "t77c9e582e85583af": "Test failed", + "te5790681bbc71644": "UDP: {0}, TCP: {1}", + "tdd78205d6a22eb82": "Click to test", + "tc5f592ec96939056": "NAT type", + "t10866a9df5f8be5b": "{0} {1}", + "te89bfdda0fa62738": "[Host]", + "t7ab55d8950e8e167": "Username: {0}\nClient identifier: {1}\n\nThis data is for reference only. Actual gameplay may vary.\n\nTo learn about NAT types and how they affect your lobby experience, see the FAQ section on the left.", + "t85319ce239329139": "Player {0} details", + "td7ce794d0b865b91": "I have read and agree", + "t8c6d08a3b14a4844": "EasyTier connects to locally configured or public peers. The original PCL CE servers no longer supply lobby policy or receive device/account reports from this launcher. Connect only to trusted peers and players and follow server rules. See the project privacy documentation for details.", + "taecb4aae0039efdf": "Service documents and introductions used by PCL CE Lobby are listed below.", + "te4647d4a1da9a446": "View Natayark OpenID terms of service.", + "t9091f623714c81d7": "PCL CE Lobby Terms & Conditions", + "td59d7f96bb3136ad": "Lobby actions", + "t20f99990c7224710": "Checking", + "t833ec488da5ac311": "Close lobby", + "t5be0323e8adcaeae": "Connected", + "ta898478be1813b95": "Connecting", + "tc44899529d41af30": "Connection status", + "t485a26050ce57431": "Connection type", + "t377c1d199e1e9a5f": "Copy lobby ID", + "tf13680c6c92d4ab4": "Copy virtual IP", + "t153b723547e28a7f": "Exit lobby", + "te07b4fc0d8f7a080": "Guest", + "tf46c86c0286a8fad": "Host", + "tb9882ece53ac5aed": "Lobby information", + "t703a794ea636d4fd": "Lobby ID", + "t11a5b319f94c7cda": "{0}ms", + "t0f1ec7ad5ba404a1": "Ping to lobby host", + "tf36cac96220bb1e4": "Unavailable", + "taec6d9b3d261eec1": "User type", + "t7c97905a624a516a": "(Abnormal)", + "t1b86bb059497356d": "Natayark account", + "tf2258959755e8d97": "Natayark account information has expired. Please log in again in Settings!", + "tfaca22f81c54dcc9": "Please continue in your browser...", + "t192e2d1b88c97653": "Failed to fetch information", + "tbd6ebead5c3d0363": "NAID authorisation code is invalid.", + "t7545b39503978718": "Loading...", + "t897c57569e5d5e92": "Log in to Natayark", + "t69abb59848ddc741": "Login completed", + "t18da5f06a1f8a360": "NAID login failed. Please log in again in Settings.", + "t775d096e34a19cc3": "PCL CE will open a login page. Please complete the login in your browser, then return to the launcher to continue.", + "tffeb92a2b93f05b9": "Log in to Natayark Network", + "tde40decda2d82a57": "Logged out!", + "t6ac08263271b6831": "Are you sure you want to log out?", + "tbfb33bbc5ca2d4df": "Failed to load Natayark user data. Please log in again in Settings.", + "t06649de34a56c4d8": "Natayark ID token has expired. Please log in again.", + "tbd60dbce32b2b1b5": "NAID access token is invalid. Try refreshing your login.", + "tbcd6771e08ec7cc7": "Query", + "td9b0c560be91190d": "Enter server address", + "t69d74b0366d76c34": "No server information", + "t192533042f7fe6a8": "Querying...", + "t2c4649245fcac966": "Minecraft server", + "t35c46ad240ea5881": "Server address too long", + "t08b3c0570d05c6c6": "Server returned empty data packet", + "t438efd6860601575": "Server disconnected before returning the complete status packet.", + "t4cbabb9022807441": "Server returned invalid information", + "ta3f6c3cac0cd706d": "Pong data must be exactly 8 bytes", + "t7422de751672e6d8": "Server disconnected before returning the pong packet, so latency could not be calculated.", + "tae5ead4d89074727": "Connection timeout", + "td1f6a584308bd107": "Read/Write timeout", + "t9166474cbc87daf1": "Unable to connect: {0}", + "t9cb4045de52a802c": "For ease of maintenance, this feature is not included in the Community Edition...", + "tf8934d32be002bd8": "Manual crash", + "t9ebbcada9e949dce": "Crash test", + "t9d209f342a1c637f": "Checking environment...", + "t9d2ca261281a158a": "Later", + "t1ab4459e28e8ffc0": "Required dependency '{0}' is missing.\n\nClick OK to open Microsoft Store.", + "t6565bf48c8899990": "Dependency check", + "t3f0bad9f8269d025": "A test utility operation failed. See the details below.", + "tbcc7b9fbf5dec68e": "PCL CE has launched games for you {0} times.", + "taa7108333483e90e": "View launch count", + "t8a991189eccf79e6": "Check server", + "ta333fb3e7b70ae12": "Failed to get achievement image. Please check for special characters.", + "ta07ae189359e4cdd": "PNG image (*.png)|*.png", + "t8003fe6ecd36de67": "Please enter a valid item ID!", + "t99ccd224125072c0": "Item name (ID)", + "t5e9d0ede025b4748": "Line 1", + "t8190cc058c7298e2": "Line 2 (optional)", + "t286ca3cb5a195748": "Achievement name", + "t1c85853c3c254289": "Preview achievement", + "t850de13a01d9b482": "Save image", + "t0538061cf3674619": "Custom achievement image saved!", + "taa78b565a7843433": "Custom achievement image generator (English only)", + "tff6bd08680bfc66e": "Image file (*.png)|*.png", + "t60132dc9543f632f": "Failed to generate avatar: {0}", + "t629bcd796ad7a1dc": "Avatar generated!", + "tb650356bb4c79cce": "Image size is incorrect! Please confirm you selected the correct file!", + "t36217e670f6e322e": "Save avatar", + "t3d047c95d6a59414": "Avatar saved!", + "tfbaf9e39bd12ffdf": "Please select a skin first!", + "t8e3726813b56a63d": "Select skin", + "t9d345873c5e799d2": "Avatar size:", + "tc93593d81c35f544": "Skin avatar generator", + "t0f0d83a17d0b20d3": "Cache cleared", + "t84693550d00e7f29": "Cleaned {0} files!\nPCL CE will restart...", + "td7430286fe835554": "Please close all running games first...", + "t74ee503b0170ace3": "About to clean game logs, error reports, caches, and other files.\nThese folders should not contain important files, but are you sure you want to continue?\n\nPCL CE will restart automatically after cleanup.", + "tdfab62e692507ce4": "Confirm cleanup", + "t9ee3364d93ebc1df": "No files to clean!", + "t2ffa8e0e69fa8eb3": "Clean game junk", + "tbc7d4caf5229b425": "Clean PCL CE cache, Minecraft logs, crash reports, and other junk files", + "t933c3667c10c70fc": "Please wait for all downloads to complete before cleaning...", + "t3766f8301b35b1b5": "Use PCL CE's high-speed multi-threaded download engine to download any file. Note: some websites may return 403 Forbidden errors and cannot be downloaded.", + "t52acd47244df9b29": "{0} completed!", + "t7c22b8a76fd86b5a": "Custom download file: {0} ", + "td94a7e10c577490a": "Custom download ({0}) ", + "te31cccd7bba006f5": "Save to", + "tc11330b85234f9c0": "Select", + "t71b07031e71eeba2": "Select save location", + "td1647ab99edddd86": "Custom download", + "tb8bcd45ac0952599": "User-Agent", + "t170aab66d43da5e3": "Your luck value is: {0}... {1}", + "tfabb859a49d376dd": "Your luck value is: {0}! {1}", + "t2a8e4073d6b41952": "Today's luck - {0}", + "t92efadc123f947dc": "(It's on a 0-100 scale)", + "t7fd041424ffd370e": "No way!", + "te811b65f2616eb5f": "100! 100!\nHidden theme... oh wait, CE probably doesn't have this...", + "t56d49c0764955373": "Aww...", + "tec3232f5a53179d2": "Barely okay...", + "t0ec61f06eac531ec": "Not bad, not bad", + "t9c489929c644d366": "Overwhelmingly positive!", + "tfa5e1078a914ee54": "So close to 100...", + "t803a2627eed3f457": "Today's luck", + "t5aaee84c9765dc1f": "This shortcut will not be automatically removed. Please remove it manually before deleting/moving the launcher.\n\n{0} location: {1}\n{2} location: {3}", + "t885097e93a5181f6": "Shortcut created on {0}", + "tf48d334495f6e4f4": "Desktop", + "t93078affa070bd25": "PCL CE{0}", + "tf53f86bacb454243": "Select shortcut location", + "t5f8fc718797aca7f": "Start menu", + "taf852212987fc97d": "Create shortcut", + "t32f82c230c13af78": "Create a shortcut to the PCL CE executable", + "t729a19fc26d3c5ba": "Fetching skin...", + "t9c60961ad4f24e72": "This is not a valid ID...", + "t23f40c8649af757e": "Player name", + "t5536d6e5e12eff18": "Player {0}'s skin saved!", + "t3b9c27e43bbdafc2": "Download a player's official skin", + "t3c442d1005e8ff50": "Skin fetch has been rate-limited. Please try again in 5 minutes!", + "te3b46bf6b16f0ef3": "A new launcher version is available ({0} -> {1})\nUpdate now?", + "t06ca3ef56c8ea79a": "You are using PCL CE from PCL-Community. Please DO NOT report issues to the original repository!\nPCL-Community and its members are not affiliated with LTCat (龙腾猫跃), and do not guarantee your usage.\n\nIf you downloaded PCL CE by mistake, we recommend using the original PCL instead.\nIf you downloaded PCL CE by mistake, we recommend using the original PCL instead.\nIf you downloaded PCL CE by mistake, we recommend using the original PCL instead.\n\nDifferences from the original version:\n- Themes: only some fixed blue themes; no plans to add new themes.\n- Toolbox: some content from the original version is missing (Echo Cave, Don't Click).\n\nThis message will be shown once after a launcher update.", + "t508475c13584c58c": "PCL CE notice", + "tedea985a6324004e": "Failed to get launcher update. Please check your network connection.", + "tcd5f4b92afe99822": "Update file not found", + "tb811dc3558bc7924": "An update operation failed. See the details below.", + "t4cd5fde8d16eefc8": "Update file SHA256 mismatch. Expected: {0}, actual: {1}", + "tc62696417dd23edf": "Unable to get update information", + "tec99e5c45d648fd6": "Update failed", + "t4f6bc8960e4c3922": "PCL CE cannot update because it was blocked by Windows Security or does not have sufficient permissions.\nPlease add the PCL CE folder to the exclusion list, or manually replace the current file with {0}PCL\\Plain Craft Launcher Community Edition.exe!", + "taa03f1972326ab1d": "PCL CE service", + "tc24a02bdf8950257": "Launcher update", + "ta2d3ec3bb4307280": "Apply file", + "td2dedb390499560f": "Verify update", + "t88c9e8ce41f5eb06": "Download latest stable", + "t60e91c6a0eec6622": "Download update file", + "t9133064e581c3481": "Failed to get announcement information", + "tff63af0c5f1a8797": "Get download information", + "t0e73771409eaf7c8": "Get version information", + "ta377055a04f9983e": "Failed to get version information", + "t7a6bafc9c85304a1": "Install update", + "tccfe46267f3cb7ca": "Prepare update", + "tbdff32cd1ef29c21": "Refresh settings UI", + "tc5c9e38f16f9f2aa": "Show button", + "t61f13cea13731d09": "Minecraft exited with an abnormal code and may have crashed.", + "tf46cf772aba4561f": "Crash analysis started", + "t962a19a6deb7171b": "Minecraft has crashed. Crash analysis will start in 2 seconds.", + "t32838cfc1676e42d": "Minecraft has crashed. Since crash analysis has been disabled, analysis will not be started.", + "t7fb5752a03c77ef1": "Minecraft error detected. Starting analysis...", + "t3d7323980d97dd61": "Minecraft hasn't finished loading and may have crashed.", + "t48f5d3e87238e153": "Minecraft log monitoring exited", + "t6ea9883b64f35d09": "FML window loaded: {0} ({1})", + "t2aa0e3cc14220312": "Attempting to force-kill the Minecraft process", + "tbe25012b3cc8a57b": "Failed to force-kill the Minecraft process", + "tb507ae799e29accc": "Minecraft process force-killed", + "t5e74e5851c668b93": "Process is still alive. Trying taskkill.exe", + "t58aa18dea58f8490": "taskkill.exe result: {0}", + "t1eeced21ea4715bb": "Force-kill failed: process exit timed out", + "t4399a57fec946ae9": "Minecraft loading completed", + "t6a7e7c2098dc1c96": "Detected close log: {0}", + "t2e57209c245a3b57": "Detected crash log: {0}", + "tcdf8d3495afcb330": "Minecraft exited with code: {0}", + "tcc639f4bf98d8a5f": "Log 1/5: Log output appeared", + "t9323d79d5fa03463": "Log 3/5: LWJGL version confirmed", + "te61a1b2541adbad7": "Log 4/5: OpenAL loaded", + "t0854eaaff4958645": "Log 5/5: Textures loaded", + "tf20362b3e39f3d9f": "Log 2/5: Game user set", + "t24fa88345de2f73b": "PCL CE cannot access the game window due to anti-cheat or security software", + "t6a16eeb2e864fed9": "Started Minecraft log monitoring", + "t0abb82c15cbd176d": "Minecraft window loaded: {0} ({1})", + "t2a25370f3f42378a": "Minecraft window maximised: {0}", + "tfdd8a487551ef56c": "Add an account or choose a profile from the list.", + "tfc45eb94060a2412": "Club announcements", + "tc9b9ae7a61444ab7": "Previous page", + "t8a8542f6964852dc": "Next page", + "tcc4b37166fcb77a3": "Club wiki", + "t527baa645f1698e1": "Sign-in and server guide", + "t88ecdc10bcaeed51": "Save appearance", + "t90516b535fd78607": "Use global Java selection", + "ta20ece0a9ee45404": "Use global memory settings", + "tffa1692cb8aef60b": "Use global launch options", + "tc8ea0b805c649d5f": "Save instance settings", + "tc8550237ba701f64": "Save settings", + "t70403791a99417bb": "Discard changes", + "t183725f0b131915a": "Select a compatible Java version for the instance. Instance settings can override the global selection.", + "t0d71b2213b336f25": "Use automatic selection", + "t9c584b2a81873930": "Discover Java again", + "t238772bfd1b0ebf5": "Use selected Java", + "td731ef0e7fd6bc2b": "Open Java certificate tools", + "td095e4ae28cbd58d": "Prefer the complete official manifest", + "t48c0b7fb7feac616": "Use HTTPS only", + "t258118497e278bf1": "Custom download sources and priorities", + "t68a317bb52086bfd": "Use custom source priorities", + "t49336686595ee9ff": "Minecraft game files", + "t5cd9eeef256e7cf1": "Home customization", + "t4c761a62d0857e35": "Show club introduction and notices", + "t4db9a8ff39d7bda9": "Show club server selection", + "t7ff87815a52623fc": "Choose home backgrounds", + "tb0962267b4c04ada": "Restore bundled background", + "t8aa5d1b4c3fc5be2": "Show the club logo at startup", + "t5a46fc326a59719b": "Show tips while launching a game", + "tcabc3ec0e94348b9": "Show new club announcements at startup", + "t848e79eebd3a9dab": "Use system backdrop effects, with a plain background fallback.", + "ta950dd1ab1c059dd": "Background images / video", + "t941935be29e9ad21": "Image slideshows are supported. Background video still needs a cross-platform player.", + "t6f894812df38768c": "Enable background slideshow", + "t7d035001b555125c": "Open images folder", + "tee1b60ff9e53a999": "Refresh backgrounds", + "t138d7c8b800614f6": "Open music folder", + "t958be7e98504adb7": "Refresh music", + "tc3396195e91ccdd8": "Play", + "tca4d973c0b006b75": "Stop", + "tc2e679a42feb5e22": "Title bar / Home / Navigation", + "t7de1743c39f80f24": "A local TXT/Markdown file or an HTTPS text document. XAML, HTML and scripts are not executed.", + "tf1bbb4dc6aade547": "Hide Downloads", + "t6f9e5d21f4feae5d": "Hide Tools", + "t58180fce3e44b99b": "Help make SHOU Launcher\navailable in your language.", + "t9d09c117cc732997": "Contribute translations", + "t6d82f15ee4690509": "Save and restart the launcher to apply.", + "tdcf34de5a7f40688": "Use DNS over HTTPS for direct connections, with system DNS fallback. Proxies keep their own DNS behavior.", + "t12cb30be6910fbe2": "username:password (leave blank to keep existing credentials)", + "t67ae2bf7dacfde5d": "Application data directory", + "t3c6cf2eb5d9a3c51": "Cache directory", + "tda99ea1331dc3046": "Open data folder", + "t8ec96af634a85bed": "Override Microsoft public client ID", + "tac8817889eec6bf0": "Leave blank to use bundled configuration", + "tca365f98a69ba937": "This launcher collects no telemetry. Connection secrets use the system credential store.", + "t2a2846c57eb53222": "Conduit Club · Shanghai Ocean University Minecraft club", + "t390454a193f8d16f": "Club website", + "t9167585eb2f64c3f": "Launcher source code", + "t065d53d95c055a59": "Version and runtime", + "tad5ff6fb4f25d7fb": "Contributors and copyright", + "t0d5ef03afd68266a": "Thanks to the original Plain Craft Launcher authors, PCL Community and all open-source contributors. Conduit Club maintains this launcher independently. Source history and licenses are included with the package.", + "t0e1c8682fb86f0bc": "Club branding and campus images belong to their original creators and the club.", + "t1352d0d826f739fe": "Legal notices and open-source licenses", + "t286dd76ac21c03cc": "Minecraft is a trademark of Mojang Studios. This project is not endorsed by Mojang or Microsoft.", + "t1c6c37490d081918": "View project licenses and notices", + "tf3a6bfd645ea015e": "Check for launcher updates at startup", + "t0680f1a5de11e1c6": "Check for updates", + "t8eaea891ab90f264": "Open releases", + "tee20b99fb2d36c62": "Download update package", + "tb899e958deffdd1a": "Show downloaded package", + "td7458d4306675d6f": "Feedback and suggestions", + "t17446947768a1524": "Include the version and sanitized logs. Never submit passwords or tokens.", + "td403a1b145ffc84d": "Open the project issue tracker", + "t0b919f782432f404": "Feedback", + "tdd5f95d8e6a7af24": "Search feedback", + "tf030dc0931d341f9": "View and export sanitized logs", + "te28be7098db113cb": "Refresh list", + "t4794ea837d52056f": "Confirm recycling the previewed logs", + "t8403e0cafe60b618": "Move to recovery folder", + "ta399efef8717c2c8": "Restore last cleanup", + "te60b6a604415f87d": "Java certificates", + "t67df947ba5c5c474": "Java certificate diagnostics and repair", + "t62c7a471a9e4bdc9": "Launcher logs", + "t686071c91036f6a1": "Select Java automatically (recommended)", + "t8b36707a1254b51d": "Global Java selected", + "t3cb588b9ae1a3bc1": "Discovered Java installations ({0})", + "t6c601d0509193732": "Microsoft ({0})", + "t4ba0bc300b36c2f6": "LittleSkin ({0})", + "t9dff44238967c42e": "MUA ({0})", + "t0b9091b472a2fafd": "Offline ({0})", + "tf96e4f69a7a7003d": "All accounts ({0} profiles)", + "tc761d9bb55bb7785": "{0} ({1} profiles)", + "t3c736a450fefae54": "Microsoft account", + "t79e22ad9c9ad455d": "Offline profile", + "t4a9352e9ccb3ce66": "Adding {0}. Select another sign-in method to switch.", + "t1ce02a0f37e5fb2c": "Using the bundled campus background.", + "t2717052f81ecc243": "Settings saved.", + "t7ebe0cee2e914a68": "Connection secrets are stored in the system credential store.", + "t8d9d7620ca6ace59": "Releases loaded. No verified cross-platform update package is available for this platform.", + "t1e0d3ca339308144": "Available releases loaded.", + "t8171ec8d4fc88d4f": "No published releases.", + "t064fa89fe2c29b1c": "Update package downloaded and verified.", + "t9ae933d139db7744": "No matching feedback.", + "t7bfbed49a0ffbd16": "Version v{0} · {1}", + "tdbf5e608fd8e4ff8": "Historical logs moved to the recovery folder.", + "te9e29d7f8a7a9ab8": "Historical logs restored.", + "tc3674929aa1556c9": "No historical logs to clean.", + "tc232a90747592e2d": "Operation cancelled or timed out.", + "t7c89b9a82411e1bc": "Settings exported. Accounts and connection secrets are excluded.", + "t3d4bde8a062869ec": "Settings loaded into a draft. Save settings to apply.", + "tcb4b372faf9c2b95": "User selected", + "tb92756269d3659d3": "Launcher managed", + "te26117dcb6537ae6": "Portable installation", + "t18e5843aa7b6d002": "Registry", + "t9bd76b73081a3a54": "System installation", + "t9b7824cefa1e8b16": "Discard changes", + "tcee766edcd150ddd": "Default home", + "t074939b7a33fdeec": "Web address", + "t57e88a43ef2b00ba": "Local file", + "t35e664d3a6e0509d": "Default colors", + "t241450652225211b": "Garnet", + "td3f08a6ba56a166d": "Ocean blue", + "tb13d01dab9a04f6e": "Jade", + "t8bbade5c6104c27a": "A global animation frame cap still needs platform support.", + "t2f66cb92a4bbc34d": "Exports contain sanitized logs only. Historical logs can be recycled and restored.", + "t95c9829d9df09896": "System credential store available", + "t5bc5af409a3b50d4": "System credential store unavailable", + "ta0937d519f824727": "Do not notify", + "tafbf120f9931e200": "Choose home backgrounds", + "t50661c4f4ea2de29": "Choose title bar image", + "ta2ef09c6181de90c": "Choose a local home document", + "t8bd702c9e6aa6865": "Export launcher settings", + "tf70b568a3498b652": "Import launcher settings", + "ta9ce867e2aa99cab": "Export sanitized log archive", + "t1744d728d39313fe": "Choose Java executable", + "t72eede5bcc7fe4c8": "The service is limiting requests. Try again later or open the project page.", + "t35934c2944612350": "Cannot connect to the service. Check your network and try again.", + "t1826a485d82ea11b": "Minecraft runtime" +} diff --git a/src/SHOU.Launcher.Desktop/Localization/Resources/en-US.json b/src/SHOU.Launcher.Desktop/Localization/Resources/en-US.json new file mode 100644 index 00000000..7d76cb9a --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Localization/Resources/en-US.json @@ -0,0 +1,3243 @@ +{ + "t315f7b86bc870e93": "en-US", + "tf16855db45e76615": "English (US)", + "t770a353ab10a2d69": "Conduit Club", + "t40f7cd2f6f68e5a1": "Conduit Club Launcher", + "t07cf529081e07007": "About Conduit Club", + "t92883aa4f5bed5a9": "Plain Craft Launcher — Conduit Club edition", + "tb709766dafadfeba": "An animation operation failed. See the details below.", + "t789c57b570ee950c": "A user interface control operation failed. See the details below.", + "t9dc0825fba5422e4": "Loading...", + "td1d044826a45ef65": "Loading failed", + "t38a8cdb210598179": "Network conditions are poor. Please try again later.", + "t13a46616e16fe5e6": "Unknown error", + "teaa048da7bbf7eef": "A message dialog operation failed. See the details below.", + "t348f1cf1243e74bc": "I see", + "tfe2daed4a4a6c7d7": "PCL CE detected environment issues on startup:\n\n{0}\n\nSome features may not work properly if these issues are not resolved...", + "t57a67439a449f9ac": "- PCL CE is running from a download folder of social apps such as QQ, WeChat, or TIM. Consider moving it elsewhere, otherwise game saves or settings may be lost.", + "t3d0c9cba3a1c81e9": "- The current system is 32-bit. PCL CE and newer versions of Minecraft no longer support it. It is strongly recommended to reinstall a 64-bit system before playing.", + "tcdfc824df0a3af89": "- PCL CE is running from a temporary folder. Please extract PCL CE from the compressed file before using it, otherwise game saves or settings may be lost.", + "t41f54b1baa2f856a": "Environment warning", + "t567a304e1b960dfb": "- The Windows version does not meet the recommended requirement. Windows 10 1809 or later is recommended. Consider upgrading Windows.", + "t3f828f9d60fb401d": "PCL CE path: {0}", + "t29b3a1b57e5b5780": "Unable to obtain", + "ta1fdb416d2ff82b0": "PCL CE initialization error", + "t11036031881d1a5a": "A task loading operation failed. See the details below.", + "tf56c6c82203b33f6": "Hint", + "ta8b7a4480407ac8a": "Warning", + "t589b1ae54117ebf4": "Not a valid JSON file", + "t35bcad5bb280902d": "{0} downloads", + "td37563c31d52408d": "{0}k", + "t87328c2970c0949e": "{0}M", + "tce6dbce5ca91ab86": "{0}B", + "t5749d79515962393": "in {0}", + "t4b7f9dda7314e6c4": "{0} ago", + "tcb9c3d54dc149d46": "Copied!", + "tb1f6d08a33e99468": "Failed to copy the text. The clipboard may be in use by another program.", + "ta54a0add54472cb1": "Do not show again", + "t4afad295c7582adb": "Pasted {0} files and {1} folders.", + "t5c55a67935af8f45": "All", + "t7eb336e42cb5076b": "Auto", + "t4eafa9e925b30bcd": "Customize", + "t844b8cc8dff7c1d8": "Default", + "t31b86e9372ca7d41": "I don't know", + "t0c70665b6eb65f1a": "No", + "tb5141d3d19e9a048": "Yes", + "t4d8c1c5b42830791": "Unknown", + "t464a8e0d77bb6889": "Canceled!", + "t09a4e5504e488a8c": "Failure:", + "tbe5b5900c14f799e": "Success!", + "t905819e2e3a059a0": "Agree", + "t572cf45ba43634b3": "Back", + "t2cd0f3be8738a86c": "Cancel", + "t3fd47edce45b3603": "Close", + "tfac2a67ad87807c4": "OK", + "t7c9691192f1b7340": "Continue", + "t63d90d977348ab1f": "Copy", + "t136de7a8c46fc803": "Decline", + "t2f9daa828907b93f": "Delete", + "t4673a23061656125": "Downloads", + "t65622e8ee9fb116b": "Initialize", + "te8f88f51ccb085ea": "Install", + "tc771248e511fbf93": "Open", + "tfcf8b4bff0df782d": "Open folder", + "t4ce4c98eb27e4b65": "Override", + "taee88743413144a2": "Refresh", + "tcb5d682bac3d1a2d": "Reset", + "t44ce7ae909bbb28b": "Search", + "tde6811e73d403172": "Changelog", + "t3330131bf7bfcda8": "Cleanroom", + "tde7b2b8384b81848": "Fabric", + "taa03a58dd655f242": "Fabric API", + "t8899ecd1626db63d": "Forge", + "t65003c7a186430e8": "Iris", + "tecd1401bc618b41f": "LabyMod", + "t80c7dfd19f110c47": "Legacy Fabric", + "tcc183d69f036c82a": "Legacy Fabric API", + "td62e27eea8fb1ca9": "LiteLoader", + "te098b8a25b0a7a26": "Minecraft", + "t3803dc90d9f8578d": "NeoForge", + "t333a55aef76cda96": "OptiFabric", + "tb1b36951dde91b4c": "OptiFine", + "tb0c25286507fdb23": "Quilt", + "tc0028b730280136e": "Configuration initialization failed during the {0} stage.\n\nThe configuration file at {1} contains invalid data and was backed up to {2}.\nTo help prevent the problem from happening again, PCL CE tried to restore a previous version when one was available. If you changed the configuration file manually, fix the problem and replace the current file.\n\nIf you are not sure what happened, you can ignore this message for now. After restarting PCL CE, the affected settings may return to their defaults, but normal use should not be affected.", + "tee2d6eb8cace92f1": "Configuration initialization failed during the {0} stage.\n\nThe configuration system could not be initialized. Fix the problem and restart PCL CE.", + "tb37790547db1b6de": "The configuration system failed during the {0} stage.", + "t1ba68cce121c1664": "Configuration initialization failed", + "t3e8dc438a4715f1c": "Could not save the configuration file.\n\nPath: {0}", + "tc6070f450211044a": "Failed to save configuration file", + "td88b15f7379837c6": "Crash analysis failed. See the details below.", + "t37c42c65d9b0a02b": "Export crash report", + "t90e01acb5c9edd35": "Modify settings", + "t6598755879490792": "View log", + "tb56dacc6615f683f": "Minecraft crashed", + "te3ba07c8080abe28": "Crash report analysis result", + "t092894a3fee643a2": "Copy details", + "td6e7f1232d85007c": "The crash report could not be exported.\n\nTarget path: {0}", + "t67bd98cc6ddcf702": "The crash report could not be exported, and the target path is unavailable.", + "tc81aa8bc768648e4": "Failed to export crash report", + "ta01b89841daf67e3": " - {0}", + "tcefa7588fe99aa24": "Cause\n{0}", + "t7fc9c5a1ce0a4aa4": "{0}\n\n{1}", + "t35c22b1afbd3fb7d": "Cause\n{0}\n\nWhat you can try\n{1}", + "tfae615e265a131a0": "The following mods caused the error:\n{0}", + "taed90775b693b199": "The mod {0} caused the error.", + "te13f6b316936a6df": "Duplicate mods were detected:\n{0}", + "t50dbecc31daa8e89": "Duplicate mods may be installed.", + "tff2461be8d7ecdbe": "An extracted mod file was detected.", + "t8aadd91a598f41b4": "Fabric may have provided an error message.", + "t347e533b23891be0": "Fabric provided the following error message:\n{0}", + "t65d6d0dc70d111b6": "Fabric may have provided a solution.", + "tea36408934d9b781": "Fabric provided the following solution:\n{0}", + "td3423bf6cf1ac47e": "Some files or content did not pass validation.", + "t6e70a8befb3cb889": "Forge may have provided an error message.", + "t61c8944a2b8d1708": "Forge provided the following error message:\n{0}", + "t02070df4122c1669": "The graphics driver may be preventing the game from running correctly.", + "t7f62bb1c94fad1c4": "There may be a graphics driver problem, or the game may not be using the dedicated GPU.", + "t1fa875bbfad5bdbd": "The installed mods may be incompatible.", + "tc837e5874afba4f3": "The installed mods are incompatible:\n{0}", + "taa6fd4a25de9af40": "The Forge installation is incomplete and required files are missing.", + "ta966d3f72f113711": "A mod file name contains special characters that Java cannot use.", + "tbc852193d70dc63a": "The selected Java version is incompatible with the game or mods.", + "tfe816d1d201e7521": "The selected Java version is too new for this game or loader.", + "t5f432b374bd80ac7": "This was a manually triggered debug crash. The game itself is usually fine.", + "t94478e651aa093cc": "Some mods are missing dependencies or do not match the current Minecraft version.", + "tb1b53c63283e5851": "Some mods are missing dependencies or do not match the current Minecraft version:\n{0}", + "t7bfdce0244ad6cb5": "MixinBootstrap is missing, so the game cannot continue loading.", + "t164eb28a4e0b0b1c": "The configuration for the mod {0} could not be read.", + "t416f25fa791c1401": "The configuration file {1} for the mod {0} could not be read.", + "te316ac44fdc6a01e": "The following mods failed to initialize:\n{0}", + "t62b59361f7a24bb3": "The mod {0} failed to initialize.", + "t328cee8872725e35": "The mod loader may have provided an error message.", + "te9c9c782cbe7f56d": "The mod loader provided the following error message:\n{0}", + "tf93eab675ec07cc7": "The mod loader version is incompatible with the mods:\n{0}", + "td99f060b8fee8c31": "Mixin injection failed for the following mods:\n{0}", + "t08c1c3f097a09bd6": "Mixin injection failed for one or more mods.", + "t060586dc3c6f645b": "Mixin injection failed for the mod {0}.", + "tedf284fafab771a4": "Some installed mods require Java 11 or later.", + "t33457310a91f25bb": "The instance JSON contains multiple Forge version arguments.", + "t3dce704b11144264": "Night Config encountered an error while reading configuration files.", + "t223b6e297e3f1ea6": "The game ran into a problem, but PCL CE could not find related log files to analyze.", + "t721280eb48614a27": "An old Forge version is incompatible with the selected Java version.", + "te235be5f2c1d3170": "A shader pack or resource pack may have triggered OpenGL error 1282.", + "td324d7778dee590f": "OptiFine may be incompatible with the current Forge or Minecraft version.", + "t5c7a6135b262daa2": "The selected OptiFine version may have caused the world to fail to load.", + "td861c658ccadced7": "Minecraft ran out of memory.", + "t92092d4764cdc3b6": "The resource pack resolution may be too high, or the graphics card may not be powerful enough.", + "t952fcf5717f69a2f": "Both Shaders Mod and OptiFine are installed.", + "tfe91a807e1c93bad": "Some blocks in the world may have caused the error.", + "t0d544eeed74643d0": "The block {0} may have caused the error.", + "t9684df6fb67fb0be": "Some entities in the world may have caused the error.", + "t18c1d36bf63cd3b6": "The entity {0} may have caused the error.", + "t478f32d6b069e44d": "PCL CE found possibly related keywords in the error stack trace:\n{0}", + "t9821a18bb44b4f64": "PCL CE found a possibly related keyword in the error stack trace: {0}", + "tf2b1703200b5a7d5": "The crash report suspects that the following mods caused the error:\n{0}", + "t71c045613b39e47a": "The crash report suspects that the mod {0} caused the error.", + "t8e272d4e6361dc6a": "Too many mods are installed, exceeding the ID limit of an older Minecraft version.", + "t3692de4e77775b5f": "PCL CE could not determine the exact cause of the crash.", + "t4a5b66423be7af16": "PCL CE could not determine the cause of this error.", + "ta4bc2716c341dd81": "PCL CE detected an error cause without details: {0}", + "t43cf814723a1317e": "The game may be using a JDK, or the selected Java version may be too new.", + "t3812634fe44f8428": "The OpenJ9 Java runtime may be incompatible with the game, mods, or loader.", + "ta35277063f85e469": "The game output is too short for PCL CE to analyze. Raw output:\n{0}", + "tbe910c8649d97ae7": "The selected 32-bit Java runtime cannot allocate enough memory for the game.", + "t5ada8acc0df427dd": "The 32-bit operating system cannot provide enough memory for the game.", + "taefe78048b57ce30": "Crash report exported!", + "t9c1e36ba3609be98": "Crash Report-{0}.zip", + "t886ad926d77454af": "Minecraft crash report (*.zip)|*.zip", + "tedfa33a3f470ecc5": "Select save location", + "t2f22bf320de8842e": "CPU:{0}", + "t74d9fe9c21915402": "- Environment information -", + "t5de2b1e2f82cb09e": "GPU {0}: {1} ({2} MiB, {3})", + "t164346368c1e2e72": "- Instance information -", + "t3516bd66c4307a00": "Identification code: {0}", + "t29dec972b0f2301d": "PCL CE version: {0}", + "t95e694b0f5218c2e": "Log4j2 NoLookups:{0}", + "t110b2c909c7403ff": "Memory allocation (allocated memory / installed physical memory): {0} / {1} GiB ({2} MiB)", + "t78c1222202ada4e2": "Minecraft folder: {0}", + "taec071eef5251661": "Operating system: {0} (64-bit: {1}, ARM64: {2})", + "t1b273d70a2c6ad89": "Profile name: {0} (login method: {1})", + "t90ba25961e9b7fe8": "- Profile information -", + "t40ef92a388943c46": "Selected Java VM: {0}", + "tcd3f5d5d894f018b": "Directory: {0}", + "t96c914ddbe8b1681": "{0} [{1}] <-> bundled in {2} ({3})", + "tf7b98113b3d7e402": "(Matched by mod ID and may include false positives.)", + "td03f26cc4789ab87": "These mods may conflict with their bundled copies and cause crashes:", + "t484d55613910eb8c": "None", + "t972ecc9b7c5256be": "=== Potentially duplicated mods (installed standalone and bundled via Jar-in-Jar) ===", + "t49a7be4efd82aa7d": "No Jar-in-Jar information found", + "t4133f927fd60c4d7": "=== Dependency warnings (missing / version mismatch) ===", + "tcf2a6f3169db6539": "No dependency issues found.", + "t43a1d7f28503f47f": "missing prerequisite(s) [{0}]", + "t65fca9f8f6472051": "version-incompatible prerequisite(s) [{0}]", + "td15f3946501d2a9a": "disabled prerequisite(s) [{0}]", + "t811d83047433e133": "=== Conflicts (incompatible / discouraged) ===", + "td85687e149b2202e": "No conflicts found.", + "t4ae9eb28741faa5f": "Incompatible", + "tefe18cee4560e876": "Discouraged", + "tc86892d82348aa47": "=== Jar-in-Jar information (enabled mods only) ===", + "t8c44658a527fa3fa": "=== Mod list ===", + "t40c4aaef12065dc8": "Try disabling these mods one by one, then check whether the game still crashes.", + "t0ef773efa1d6c031": "Try disabling this mod, then check whether the game still crashes.", + "t3cf5aaea1a375671": "Each mod should be installed only once. Remove the duplicate mods and launch the game again.", + "t0fa488a842726589": "When asking for help, send the crash report file instead of a photo or screenshot of this window.", + "tb9fd451df6743922": "Remove extracted mod folders from the mods folder, then put the original .jar mod files there and try again.", + "t82cacbaa10b2d0db": "Delete the game and related mods, then download them again.", + "td7dff1ed611e4192": "Follow the loader messages above or in the crash report to resolve the problem.", + "te3cbac4133b5f0c3": "Try updating or rolling back the graphics driver. If needed, switch to an older Java version.", + "t37a7bed9e869ffdd": "If the device has a dedicated GPU, use it to launch PCL CE and Minecraft. You can also update or roll back the graphics driver.", + "t6c5f9bddd09191c7": "Reset or reinstall Forge in instance settings. Do not delete the libraries folder when packaging an instance.", + "ta74d8b873c5078cd": "Remove or rename the affected mod file so that its name contains only English letters, numbers, hyphens, underscores, and periods.", + "tf943161bdf0bf23a": "Choose a suitable Java version in launch settings based on the Minecraft version and mod requirements.", + "t01a298487e13d230": "Switch to an older Java version in launch settings and try again.", + "ta743b54ea7005725": "You are using an outdated version of PCL CE. Updating PCL CE may resolve this problem: Settings → Launcher → Check updates.", + "tf1cca4af375344b7": "Check that MixinBootstrap, the mod loader, and related dependencies are installed correctly.", + "t18acbdf96509ed38": "Try deleting this mod's configuration file and launch again. If needed, update or disable the mod.", + "t263b159ede4ee0f5": "Open instance settings and adjust or reinstall the mod loader version.", + "t1c38b69975f05e15": "Disable mods step by step to find the one that is incompatible with the current environment or has a problem.", + "tb4d7dfa3841d0d82": "Switch to Java 11 or later in launch settings and try again.", + "t9807131b9f1198a3": "Reset or reinstall Forge in instance settings. Do not use another launcher to modify the Forge version.", + "tb40c547c1baa5d77": "Try deleting the related mod configuration files, or install Night Config Fixes.", + "t7bf0db98218b182b": "Try updating Forge or switching to an older Java version.", + "te0717c2695266260": "Disable shader packs and remove recently added resource packs, then try again.", + "t65e1cc2062bc5e1c": "Check the compatible OptiFine and Forge versions, then reinstall matching versions.", + "td96210b13c30bb9d": "Try another OptiFine version, or remove OptiFine before entering the world again.", + "td1e6a0c6c71dd4b9": "Increase the memory allocated in launch settings, and remove demanding resource packs, mods, or shader packs. You can also close other applications before launching the game.", + "t6037c82cd1aad293": "Remove high-resolution resource packs or lower their resolution. You can also update the graphics driver.", + "t4b0be12885f96fd3": "Remove Shaders Mod. OptiFine already provides shader support.", + "tef774a71e06ea3b4": "Create a new world to test whether the game runs normally. If it does, blocks in the original world may be responsible.", + "t36578bca83d6e618": "Create a new world to test whether the game runs normally. If it does, remove this block with a map editor or disable the mod that provides it.", + "tfd186fec088dae23": "Create a new world and spawn entities to test whether the game runs normally. If it does, entities in the original world may be responsible.", + "tc196a33781b8d496": "Create a new world and spawn this entity to test whether the game runs normally. If it does, remove the entity with a map editor or disable the mod that provides it.", + "t96c9a7cc1feae4e7": "Check the mods or libraries related to these keywords. You can also export the crash report for more details.", + "te844d9b041040315": "Reduce the number of installed mods, or install a fix mod that extends the ID limit for older Minecraft versions.", + "t99a6fb13e2788e97": "Switch to a regular JRE or another Java version that is suitable for this instance in launch settings.", + "t4e87bb6471ea2e25": "Switch to HotSpot Java in launch settings and try again.", + "ta5f76be10571a046": "View the crash report for more details about how the error happened.", + "t0803604d1f34bea5": "Install and select 64-bit Java in launch settings, then try again.", + "ta11e5707e9a8e208": "Use a 64-bit operating system and 64-bit Java, then try again.", + "t73ef595851576fe0": "A download page operation failed. See the details below.", + "t0da20d8b9dc72593": "A resource download operation failed. See the details below.", + "t5883e5643f980726": "Unable to connect to Modrinth; only contents from CurseForge are being displayed. Results might be incomplete.\nPlease check your internet and try again.", + "t22e87d6361c02327": "Could not recognize or fetch the resource link", + "t303c30f301514250": "Search resources", + "t3a8b232a834e2fa2": "Downloads", + "t63390385cc587605": "Follows", + "tb33f2e6617ec5db8": "Latest", + "t865854c27d879972": "Relevance", + "tb067526e73e5b801": "Recently updated", + "tc79e8435b942cd5f": "Adventure", + "t18704a278632121e": "Animated", + "tc991c7eef0aa00da": "Audio", + "t829a35554fa12c2d": "Automation", + "tb33881e3833f9fc4": "Biomes", + "t8f7e2ad723ebd014": "Cartoon", + "tc091c98702a377f0": "Colored lighting", + "ta642a31e11820a4e": "Combat", + "te3db1776792014be": "Core Shaders", + "t584741806d8311b9": "Creative", + "te5a6f926456d5e3a": "Cursed", + "t6895f601b65fdc10": "Fantasy", + "tac40db6607b72f56": "Decoration", + "t4fa164bacd535f85": "Dimensions", + "tde4e44264035c8d7": "Display", + "t9196f0338a8d16d7": "Energy", + "t18de9f691b47fc6b": "Entities", + "tcbe3d3b779999843": "Equipment", + "t05aa4d62741045df": "Fantasy", + "tb2acdef8f2efe1fb": "Farming", + "tadcf64ba14be2a0a": "Features", + "taced55addbf033c2": "Fonts", + "t969c7fc4d7a3d64c": "Food & Cooking", + "tb0b98fd928edff24": "Game Mechanics", + "tc4e3f3fb84e6bd0c": "GUI", + "tc6e0480ef9844ba9": "API & Library", + "tcc3dd1f07544494c": "Languages", + "tf92fd0c0b8c950fc": "Magic", + "t2d92a4f66c9ceec3": "Medieval", + "t61aacd674a2c7586": "Mobs", + "t9ea6b4816b0c7d95": "Mod", + "t8e048731fcac28a7": "Mod-related", + "t41735735da6b1466": "Mod support", + "t2bdc253afdc92985": "Models", + "tc05df15bf39a4ee9": "Modern", + "tf68c25a937e33136": "Multiplayer", + "t50b3ce31646573c1": "Optimization", + "t0ceb2a65af8faacd": "Ores & Resources", + "td2909f1647e7c891": "Other", + "t8e5915536a00b1ff": "Path Tracing", + "tba9db5d2c572aad5": "PBR", + "tdd5f3e2d50cf0435": "Performance impact", + "tb1c27820fec23edb": "High", + "taa9e366f68d3d097": "Low", + "ta567bdaa11367f26": "Medium", + "t6e990ca942a25713": "Potato", + "t122e51b8a282ffb0": "Energy, Fluid, and Item Transport", + "td9f9b63f9d9f6062": "Realistic", + "t70e3887c68a89570": "Redstone", + "t8a8f1a0cf7cf089a": "Reflections", + "tb92421822c213c2b": "Resolution", + "te44de61444e0c61a": "Semi-realistic", + "t2388cbc6a486af9f": "Server", + "taa55960e4b02e668": "Simplistic", + "t717cbdd0b24adc4a": "Steampunk", + "te2c57c5c935df898": "Storage", + "t9c888380daed37e0": "Structures", + "t1bfde6b7ea27c9b8": "Style", + "t6edb77679bbe71f5": "Technology", + "td333e7c430f4a611": "Themed", + "t71faaa139f3affc5": "Transportation", + "t7703c8789564782c": "Tweaks", + "te3acd17ea04e3a49": "Utility", + "tab8936477328e934": "Vanilla", + "t9c5a5f7582706688": "Vanilla-like", + "te2795d0547cb684e": "Creative", + "t7eb04a099024f6e0": "Mod World", + "tb1f0cb13ffcaa01e": "Parkour", + "t7462fe3991258156": "Puzzle", + "tcbd9667c3fa1225e": "Survival", + "tea56c3200c998da7": "World Gen", + "t98ceb57fd8c4192a": "Exploration", + "t3ed46e6cab0ac788": "Extra Large", + "t338cc0fd2a2c4d17": "FTB", + "tdbca9dcc12759328": "Published by FTB.", + "t56acdc65a6d3783f": "Hardcore", + "t64aec591c1c79c93": "Kitchen Sink", + "td78ea1d4d3cf84ad": "Map Based", + "t52afc06a6fdc90bc": "Mini Games", + "t5253040db8643c85": "Quests", + "tc1613bc333ed5654": "Sci-Fi", + "t1fa5b34c505b2249": "Skyblock", + "t459045778e6d727e": "Small & Light", + "tf8428719215ef8b4": "Vanilla+", + "tdb95c71ee38000fc": "128x", + "t97d3b806d6b0cd6a": "16x", + "t4f552d2e542b6470": "256x", + "t5794dd04acf0b11a": "32x", + "t82e7e3d1ccb7561f": "48x", + "t640f86e6c1bb0514": "512x or higher", + "tce07e3db42adfa65": "64x", + "t968443a6fff0f915": "8x or lower", + "t67bf9dc67f0bedec": "Installation was canceled.\n\nReason:\n{0}", + "t9088cfa9a1c7645f": "Installation canceled", + "t191a09e32e312bc4": "Cancel installation", + "t472887ef3f07b5ec": "- {0} ({1}) - {2} v{3}", + "t1470f08a1fd3a31a": "This mod requires the following dependencies:\n\n{0}", + "t2b75ae1a67a38be7": "Install mod dependencies", + "t01a97ea980217280": "Install mod and dependencies", + "t1c1f6bbc6e42087c": "Download mod only (not recommended)", + "t7730fe6c7fbea65b": "Continue download", + "tcf85b3dc76a126d5": "Failed to resolve the mod dependencies. Only the main mod will be downloaded.", + "t5c028beb63de11ce": "Failed to resolve dependencies", + "t11f345d6669a5566": "- {0} {1}: {2}", + "t58be92ca3949285c": "The following required dependencies could not be resolved:\n\n{0}", + "t0fdb26c45e398f59": "Required dependencies could not be installed", + "tb2fd2e2a883cd7a2": "Clean cache", + "t47026cfb59de504b": "A resource link was detected in the clipboard. Open the details page?", + "t902186f9cd1df585": "Resource link detected", + "t40a2a5956295b9cb": "Getting resource information...", + "t2717a23db971665f": "Invalid resource content.", + "t8e86f9b1d54f2c51": "Copy link", + "ta77a6cca3ce275e0": "Copy name", + "t370b1f0f2e1a34d5": "No description translation is available for this resource", + "td81097017b39083a": "Getting description translation for {0}...", + "tb6d4d3a957e787d1": "Failed to get description translation", + "t6710d01346f08050": "Original: {0}\nTranslation: {1}", + "t3926d1bb98be8401": "Download file", + "td04d08f28ec4fca3": "Download modpack file", + "te37a7e2a87892329": "{0} download: {1}", + "t7884990b2b345033": "Download world file", + "t60a53514eb9228a2": "Favorite", + "te0f2b9e34d955211": "Added {0} to {1}", + "tc900c91ac35223bb": "Added {0} resources to {1}!", + "tb108cfdfd617090c": "Added {0} resources to {1}; {2} resources had already been added!", + "t3b076fd9eb9e7808": "Add to {0}", + "t655760c7ef1954fb": "Removed {0} from {1}", + "tae34229f66130de3": "Unfavorite {0}", + "t9cd2f9ef5701723d": "Looking for an applicable instance...", + "t5783f26277a1be55": "Enter instance name", + "t75574e78f139e825": "Install world", + "t4f5420a2c4564f17": "Instance: ", + "t4088955ce9133557": "Mod loader: ", + "t2e5739449ed67f97": "MCMod Wiki", + "t630510f769bf79e6": "Modpack download", + "te17abc30dd9bd2b6": "No applicable instance found in this Minecraft folder for this resource!", + "t97872ee0fa952f24": "Original modpack", + "tce90616bf6f4553c": "Prepare for modpack installation", + "tb15cb14bdf7ccb3f": "{0} file", + "t166c6925b0986e8c": "Select world install location (saves folder)", + "t9d3f093c4227f9b4": "Selected version: {0}{1}", + "t3ece481d115d0413": "Modpack installation canceled: {0}", + "td19448c09c827df0": "Modpack installation failed.\n\nTask: {0}\n\nDetails:\n{1}", + "t68580c651dbaed55": "Translate description", + "tdca60869e7d26839": "Unfavorite", + "tcf865167e879e225": "Older", + "t8382fe1229487ef4": "Snapshot", + "tdd63fa768c76470f": "Since the API updates slowly, it may not be able to recognize the Minecraft version that was just updated. It will be recognized normally after a few days.", + "t3895b880ef60dc2f": "World download", + "tce7c62739183ea1c": "World file|*.zip", + "tcea32269309fbb1b": "All versions", + "tb7d92919ff6509e6": "Before-release", + "t5d7906f5af429022": "Any", + "tf594f171672d3bef": " Edition", + "t769400c019e1e3d7": " Preview", + "tba0d5a1fa939f53c": "Snapshot only", + "tf1e7bec171ae3b9e": "Unknown version", + "te4f41303b0825883": "{0} dependencies", + "t6827fbb5676f2a42": "Game version {0}", + "t3b10470e173f82cc": "Optional dependencies", + "t5a381a1174a336de": "Alpha", + "t065d4b037ce5d3c6": "Beta", + "t93a48223a516e074": "Release", + "tf7c5c819b9f0f09d": "Required dependencies", + "t8da1ada0abe274c9": "Updated {0}", + "t34362a4c5ad7f814": "Version list", + "tbb6d995724f49a72": "Manage", + "tfa1e7180cf6c8ea6": "{0} ({1})", + "t3f55bb31a6bf0420": "Mod ({0})", + "t74966e20df2ea9fd": "Clear selection", + "tf583ba476b0fc0bb": "Download selected", + "t7886e13b90d0c33b": "Edit note", + "tf9071ee190cc2b33": "You can click the favorite button on the resource detail page to add a resource to favorites.", + "t7569da968438822f": "No favorites yet", + "te5d9da44d6ec2aa4": "A favorites operation failed. See the details below.", + "tf8df64ad4b80a37d": "Online information for some resources failed to load. Click to view details.", + "t383b9a3f9103f3b6": "Batch download resources ({0})", + "t0214ead9956d0a25": "Batch download applicable resources", + "t18d91d56368f7efd": "Query resource information", + "t184f56fec419cdb5": "Loading favorites list...", + "t381c647a1bf4039d": "Delete current favorites folder", + "t900a238d2066bf56": "Import favorites", + "tfdf0b569d820ade8": "Create favorites folder", + "tdc334e8452b32c8d": "Rename favorites folder", + "tb81569c77abbc943": "Share current favorites", + "t88b71f1b3034d981": "Search favorites", + "t7a62ab6f8a3adde5": "Search results ({0})", + "tef35e30a69c37328": "8 files selected", + "t7512ca72601551d1": "Share selected", + "t8ef77368a0f4b926": "Unknown type", + "t26923e70e420257a": "Bulk download is still in testing.\nUsing this feature to download mods will not automatically download dependencies.\nPlease think through your needs and carefully check your selections before downloading to avoid wasting time and bandwidth.", + "tdaf806c8e5b5697f": "Use this feature?", + "te7d728fe70f8ebf4": "Are you sure you want to delete the {0} favorites folder?\nThis favorites folder has {1} favorite items\nFavorites folder ID: {2}\nThis action cannot be undone!", + "tfe43bc43c294210a": "Deletion confirmation", + "t2069143095d1bd58": "The following resources failed to load due to deleted online resources, network issues, or other reasons (shown by resource ID).", + "tea6b88c037011def": "Copy these IDs", + "t522e9382728b0f13": "Remove these favorites", + "t60e415c1cf639529": "Some favorites failed to load", + "tb5f1a8c8a20d3821": "Current folder", + "t1b32866b36678f15": "e.g. [\"23333\"]", + "t74b8382b21124f79": "Enter shared favorites", + "t575c8c85b7229ae3": "New folder name", + "t29aec3eeadd2bd3c": "New folder", + "t72247501abd78e91": "Enter new folder name", + "te2ac7dd248108eba": "Do you want to add the shared favorites to the current favorites folder or to a new favorites folder?", + "tf5d96b0a35d232be": "Enter new name", + "t6ef70a73eeba8d63": "Select desired loader", + "t96b1172d977ca388": "Select desired game version", + "t658b8279fe6e9071": "Favorites folder deleted", + "td8260f09d4876470": "You cannot delete the last favorites folder", + "t4de4cd268e281f93": "Please wait while detailed version support is being queried. This may take a while...", + "t36480334dc21b022": "No resource exists for the specified loader and same game version", + "tea0f92057312b72a": "Nothing to share!", + "t56500d3b0a5b2648": "Related favorites removed", + "t9f2231fa4a7bd5a2": "The selected mods do not support the same loader", + "tfae12c46945252ae": "Selected {0}; now select a save location below", + "t9a242aca5ad49539": "{0} favorite items selected", + "t24e4c22ca6ce8acf": "Install the modpack into the currently selected Minecraft folder.", + "t7a2bd8b6cb0ed3bf": "Loader", + "teb4108182aff0289": "Any loader", + "t86e562ec274a2795": "It can be loaded as a resource pack and used directly in the vanilla game.", + "t66960a14f9c7ba67": "Reset filters", + "t1ce6b1d7c95ce2ee": "Sorting", + "ta488e93d69cc1296": "Source", + "t1d0fd5f9336d9103": "Tags", + "t5f76b2bf82dd2c5d": "Version", + "t0547392f6ab5aaa0": "All (input available)", + "te27f5dd1f4538825": "No matching results", + "t28f9799cf70cfa7d": "No results, please try searching in English", + "t4e90152337531b53": "No search results", + "t668ac1fa4ed68028": "Unable to connect to CurseForge; only contents from Modrinth are being displayed. Search results might be incomplete.\nPlease check your internet and try again.", + "tcdb82e3a60be207c": "Community resource fetching: {0}", + "tc76d3401f5da3852": "Getting data pack list...", + "t1588d0e07d0c3d93": "Getting mod list...", + "t0ca80f81d892be73": "Getting modpack list...", + "tcdf547d1a76c4fe4": "Getting plugin list...", + "tf795ef40fd5886f8": "Getting resource pack list...", + "t3b935782561fa2a2": "Getting schematic list...", + "t6f6d6cd9226ac771": "Getting shader list...", + "tb1bfcf7fdf990edb": "Getting unknown list...", + "td4a100e5c8124658": "Getting world list...", + "t3ae4e3634da3e95a": "Search data packs", + "t1b3ec9656da62b84": "Search mods", + "t20ee7b798773bd60": "Search modpacks", + "t054a05050e0e790b": "Search plugins", + "t8ad10013cd735fdd": "Search resource packs", + "t663ee97585643974": "Search schematics", + "t41a2e0cee213dc9a": "Search shaders", + "tbabb50e5eb48f55d": "Search unknown", + "t687dc571759336c9": "Search worlds", + "t3e1f70c05113ed01": "Download the latest version", + "ta21786c18070def1": "Select a target Minecraft instance", + "t6b4104acb4da734e": "Select instances…", + "tb2c12d1210804fbf": "Select a folder…", + "tcd4113a3aa659835": "Download to the current instance", + "t05749348132920b6": "Select a download destination", + "t425a5f4ebd7fb175": "Started downloading: {0}", + "t377d5938e9e7dc29": "Getting resource version info, please wait…", + "t6ce55079915b8512": "No compatible version found for this instance", + "t0cab9ab949df01cb": "No compatible Minecraft instances found", + "t27be0d144fa9901d": "No downloadable files found", + "tff9c0846f754f0c5": "No Minecraft instance selected!", + "t4caa0d59924a122e": "Select a folder to save the file", + "t10f8430565994663": "Data pack", + "t46d9b2a668211df4": "Modpack", + "t748ab1f7fede7538": "Only {0}", + "te806fbbe8ec6e82d": "Plugin", + "t6518cf1fcb303a64": "Resource pack", + "tec9e3045aaf89c11": "Schematic", + "te50c88a4cc32f5f3": "Shader", + "t33650a369521ec29": "World", + "t79ae243e67109584": "An installation version list operation failed. See the details below.", + "t6a56f18359796e28": "Click the Minecraft tile to return!", + "t14d1e349b14010a9": "Cancel", + "ted3f0e431ff837cc": "Instance isolation is not enabled, causing multiple instances to share the same mods folder.\nAs a result, Minecraft may crash when switching instances due to incompatible mods being loaded.\nIt is strongly recommended to enable instance isolation under \"Settings → Launch options → Instance isolation\" before proceeding with the installation.", + "ta7f814bc0ea3f1a5": "Instance isolation", + "t541961415c3d4b09": "Download", + "t37963f28d576ea3e": "Compatible only with certain Forge versions", + "t4b8d4db45dfbdb2e": "Incompatible with LiteLoader", + "t54e8c0f85b4c7218": "Incompatible with {0}", + "tdb96d71d80320b2f": "Incompatible with OptiFine", + "t9ddc992b0f648bd2": "Incompatible with older versions of Fabric, please download OptiFabric Origins manually.", + "t054797aa2e86fb1e": "Requires Fabric", + "t60f584f0e0fc3169": "Requires Legacy Fabric", + "t0311603a56856290": "Requires OptiFine", + "t69205975147d8c24": "Requires OptiFine & Fabric", + "t7ba62a14c8f6e30e": "Installable", + "t5e5cbbb485753cc5": "Failed to get version list: {0}", + "t2555423b0683bbf7": "Failed to get version list: {0}", + "tc23ecce4fb5c37d8": "Obtaining...", + "t03ddcecd6af05e62": "Loading...", + "t82cde44456802ea0": "No available version", + "t0d16214d515b612b": "No version available", + "t51ffff3f8b245993": "Unknown error, the status is Unloaded", + "tabc3889ae4cc4596": "Most of the mods will be unable to run if Fabric API is not installed!", + "t66bca3a05acb25a6": "Most of the mods will be unable to run if Legacy Fabric API is not installed!", + "t2fd8f9daef98aae9": "Please install \"LegacyOptiFabric\" mod after the installation, otherwise OptiFine will be unable to run!", + "tab802ab0206f6691": "OptiFine has poor compatibility with some mods. Please install it cautiously.", + "t217af0b4f2f3009c": "OptiFine will be unable to run if OptiFabric is not installed!", + "t4d4441632ec36afa": "Please install \"OptiFabric Origins\" mod after the installation, otherwise OptiFine will be unable to run!", + "tb6ed713343309e14": "Community resources", + "t63c87fb56f3d4e21": "Unknown download subpage type: {0}", + "t796d20e915884195": "Favorites", + "tf9354acb640dd0c5": "Refreshing...", + "t4ef515abfdb8690d": "Installation", + "t0e0a74013968325e": "Cleanroom official source", + "ta186ce516379f40d": "Fabric official source", + "t9298cfccd8c84372": "Forge official source", + "t5cead49c88eb67ad": "Legacy Fabric official source", + "t52b7439518934766": "LiteLoader official source", + "ta2970acc2d338793": "Mojang official source", + "t6866d5c1fab2b663": "NeoForge official source", + "t8c9404fa505622fe": "OptiFine official source", + "t24221d7fefdf2993": "UVMC Exclusive", + "td2d37ab6563bc332": "All versions ({0})", + "tc88176e908f43cac": "Cleanroom is a Forge-based mod loader for 1.12.2, theoretically compatible with 99% of Forge mods.", + "t7c48e0da6dde3bdb": "Introduction of Cleanroom", + "td58d947415597357": "Getting Cleanroom list...", + "ta5047f32348bfbaf": "Download server", + "t8165ca7a7f7795c4": "Fabric Loader is a lightweight mod loader for modern versions of Minecraft.\nYou must install it before using any Fabric mods. This page offers the Fabric installer for download. After downloading, you need to complete the installation process manually through the installer.", + "t5006b8cf5ec5e726": "Introduction of Fabric", + "t22cd2f30cf35026d": "Getting Fabric list...", + "t60277e6110afe433": "Forge is a mod loader. You must install it before using any Forge mods.", + "t2661009bd83549a0": "Introduction of Forge", + "t1ed221ce1444cda8": "Getting Forge list...", + "ta429ef57d8403fb3": "Type: {0}", + "t38a846ed736a3b9f": "Latest development", + "t569af1a47dbdf053": "Latest", + "tb556e7880bb7dc26": "Latest stable", + "t50008bba144e8878": "Fabric installer (*.jar)|*.jar", + "tb1d7c873a165a7a4": "LabyMod installer (*.jar)|*.jar", + "t96eb0447b4508d05": "Legacy Fabric installer (*.jar)|*.jar", + "tc6d0cf1f29b04fe0": "LabyMod is an optimization client for Minecraft.\nThis page offers the LabyMod installer for download. After downloading, you need to complete the installation process manually through the installer.", + "t966deb695edfc1f0": "Introduction of LabyMod", + "t0c4958a54587ac61": "Getting LabyMod list...", + "t2449ee325082121e": "Latest development, released on {0}", + "ta5bd51b5a48b406c": "Latest release, released on {0}", + "tc2a497830ef74215": "Latest version", + "t409037db81f013ae": "Legacy Fabric is a backport of Fabric for older versions of Minecraft.\nYou must install it before using any Legacy Fabric mods. This page offers the Legacy Fabric installer for download. After downloading, you need to complete the installation process manually through the installer.", + "t9be9080b5b227074": "Introduction of Legacy Fabric", + "td4a617e74b328469": "Getting Legacy Fabric list...", + "t9e249718b33002e0": "Similar to Forge, LiteLoader can be used to load LiteLoader mods in older versions of Minecraft.", + "te381ec18148bcab7": "Introduction of LiteLoader", + "t0ac4c924baceaa39": "Getting LiteLoader list...", + "t279ca5f87c082275": "Getting version list...", + "tdf2763b431451fbb": "NeoForge is a mod loader for Minecraft 1.20.1+. You must install it before using any NeoForge mods. Additionally, it is compatible with some Forge mods.\nThis page offers the NeoForge installer for download. After downloading, you need to complete the installation process manually through the installer.", + "tfe40d869db01db47": "Introduction of NeoForge", + "tb15f809730dbada9": "Getting NeoForge list...", + "t2a387b9dca2585fc": "Open website", + "t695c01fd8329830e": "Compatible with Forge {0}", + "t7854340185c3ac0b": "Incompatible with Forge", + "tdf694f1474ba2f41": "OptiFine allows you to install shaders, use HD resource packs, and improve game performance significantly.", + "te8d57a8f9448791c": "Introduction of OptiFine", + "t1c0f7351720755f6": "Getting OptiFine list...", + "t072a06e256c342c1": "Snapshot", + "t0e49ddd2102099a8": "Released on {0}", + "t1232eb44296bb8cf": "Save as", + "tb55ff3413e4553a0": "Save installer", + "t25ca0efe303f063a": "Version list ({0})", + "t5dcfd2328497ed68": "Show all versions", + "t0b86991e76ab0e6a": "April Fools'", + "tf8ba3e6e5825e399": "Development", + "t7c2d69d150f060b9": "Installer", + "td6e22c8c01320523": "Recommended", + "t320e85714d077705": "Stable", + "te80fbe0786bb33fd": "About to download from this URL:\n{0}", + "t4a07be888ae672ef": "EventData must be a URL starting with http:// or https://.\nPCL CE does not support other download protocols.", + "t19984f88d01fd0ad": "Event execution failed ({0}, {1})", + "t04fd5e3ee85a1b68": "Local file not found for EventData: {0}", + "t3808635bcebe52f7": "EventType {0} requires at least 2 parameters separated by |, e.g. {1}", + "tb37593f19b3c3f45": "Event execution failed", + "t2fb0c55b1ab8fb62": "Unknown event type: {0}\nPlease check if the EventType is correct, or if PCL CE is up to date.", + "t45df8d0e74c2f632": "EventData must be a URL.\nIf you want to launch a program, change EventType to OpenFile.", + "ta40eb286240a74f2": "Please select a Minecraft instance first!", + "t88af33c51d5d4234": "Starting {0}...", + "tfcc03d11adda3586": "Opening, please wait: {0}", + "te2647f412a632008": "The current page does not support refresh!", + "t9c012d80380b46b7": "Refreshed!", + "t1919f8c3fe196e7d": "About to execute: {0}\nPlease confirm there are no security risks before continuing.", + "tf1537e9083397197": "Continue and do not ask again", + "t2fa286387af138e8": "A custom homepage cannot write the security-sensitive setting: {0}", + "t5f6a32366a6d46a7": "Confirm execution", + "t10a26148d2d86669": "[{0}] is an unrecognized EventType and has been removed from the homepage.", + "t360dfaf1b8683cbb": "[{0}] is an unsupported original PCL EventType and has been removed from the homepage.", + "t06b4fe9252c24534": "Setting written: {0} → {1}", + "t4465e9af83dbb719": "Variable written: {0} → {1}", + "t95a9fa6a922b388a": "An instance operation failed. See the details below.", + "t37090f45651676fc": "Modify", + "tf061707c91e7035e": "Modify", + "t66b6eb4f15dd7f8f": "Reset", + "t9319bdabec708223": "An instance installation operation failed. See the details below.", + "t689cb884253c10b1": "No extra installation", + "t719c6d4065a0710e": "You are resetting the current instance.\nPCL CE will re-download the files required for this instance from the internet and reinstall mod loaders (if any).\nThis operation will not lose your saves, mods, resource packs, etc.", + "tb3e7e5d19f61b55d": "Reset this instance", + "t3930b7eb554270a6": "An instance export operation failed. See the details below.", + "t85fc945df2667ff0": "Export modpack:", + "t83b1bafe63b05f96": "Due to Modrinth modpack specifications, exported modpacks will not include OptiFine.", + "tc7bf96f15b044837": "Modrinth modpack file (*.mrpack)|*.mrpack", + "tf682510f4ca61067": "Failed to obtain file info online. Continue export?\n\nIf you continue, all files will be bundled directly.\nSince redistribution may violate usage terms, please avoid publishing the exported modpack!", + "t6926458ee8b8880f": "File info retrieval failed", + "tcf9ee68b64025d1e": "Failed to obtain info for some files online. Continue export?\n\nIf you continue, files without info will be bundled directly.\nSince redistribution may violate usage terms, please avoid publishing the exported modpack!", + "t23631b28bef020ab": "Partial file info retrieval failed", + "t2ebae8f836e0c2cd": "Read from config file", + "t1ff4904e89c49279": "Export content list", + "t1a385e9a46bc81af": "Modpack name", + "tb0cf74135c456d6f": "Cannot use the export path specified in config", + "t035e2c571df8f0da": "The export path specified in the configuration file cannot be used.\n\nSpecified path: {0}\n\nDetails:\n{1}", + "te7c1412d61ed9580": "Modpack version", + "tbaacb1031c0fd9f2": "Specified path: {0}", + "t5fc7e60b3e0ea96b": "Failed to read config file: {0}", + "t700c6b7f34febcb6": "Config file loaded: {0}", + "tc88336d3f0564e85": "Config file saved: {0}", + "ta5ddf79f9db4b7c4": "Select config file", + "t41908b2e24facd70": "Select file location", + "tb2e236f1a684652f": "Select export location", + "t88da633ca77352d5": "Export", + "t2d07a7c29d147b04": "Copy export contents", + "tae2d9e324c3db844": "Create archive", + "t4f92d6f5fbf6758c": "Download PCL CE release", + "td6871010d1aa649a": "Get file information", + "tb7a64cf1f43d6b29": "ZIP file (*.zip)|*.zip", + "t16919be1d226dfae": "Bundle resource files to avoid downloading them on import", + "t170ec2eeb60f331b": "Place Mods, resource packs, and shader packs directly into the modpack so they do not need to be downloaded during import.\nOnly consider this when you cannot reliably connect to CurseForge or Modrinth.", + "t28241821d44d72ce": "Only bundle resource files when you cannot reliably connect to CurseForge or Modrinth.\nDo not publicly distribute modpacks with bundled resource files, as this may violate some mods' ToS!", + "t63149ec2218a02b2": "The configuration file contains more advanced options, such as precise control over exported files and modpack storage location.\nTo modify these options, click \"Save config\" first, then import after editing the configuration file.", + "t6e584e3d5ce64aa0": "Export config", + "tdf31c1965b31314c": "Import config", + "t1af1a80b7137a17a": "Modrinth upload mode", + "t8f09ff0390101a63": "Enable this if you plan to upload to Modrinth to generate fully Modrinth-compliant modpack files.\nDue to Modrinth requirements, resources only available from CurseForge cannot be downloaded online and will be bundled directly.\nAdditionally, the PCL CE launcher files cannot be included in the modpack when this is enabled.", + "t91a61fdde856cd9e": "Advanced options", + "t8f1f82e93114c262": "Modpack export config (*.txt)|*.txt", + "t831e1baa52867edc": "File specified in config not found: {0}", + "t2c6bf3089fff31d2": "Folder specified in config not found: {0}", + "t7c93a93bf68a0811": "Config file is invalid or empty!", + "t4c809b9508121ac6": "(Shader config)", + "tfa40202b01261c38": "Whether to place Mods, resource packs, and shader packs directly into the modpack so they don't need to be downloaded during import.", + "te9f148bf03cae838": "Only consider this when you cannot reliably connect to CurseForge or Modrinth.", + "t28b7bcd9121af308": "Redistribution may violate usage terms. Please avoid publicly distributing modpacks with bundled resource files!", + "t8da92f5f8489c2d2": "Excluded files", + "tc945d818be2e85fa": "If you want to automatically place additional files in the root of the archive, write their paths below.", + "t16531641b2020930": "Must be absolute paths. In each line, ending with \\\\ indicates a folder; not ending with \\\\ indicates a file.", + "t3feb43b5c222849b": "Whether to bundle the stable version of PCL CE so players without a launcher can install the modpack.", + "taa2ffe67b56dbe18": "Whether to bundle PCL CE custom content, such as feature toggle settings, homepage, background music and images, etc.", + "t8db253436c6f4eee": "Modify the rules below to control the content to be exported.", + "t5ca8aa8fb104fa6f": "If you plan to upload to Modrinth, enabling this will generate fully Modrinth-compliant modpack files.", + "t9c51701c8ab5ac4a": "Due to Modrinth requirements, resources only available from CurseForge cannot be downloaded online and will be bundled directly.", + "t7251c23837a95161": "This option conflicts with IncludeLauncher, IncludeLauncherCustom, and DontCheckHostedAssets.", + "tbc11a4062a212be9": "Storage location for the exported file.", + "t3918adec400df739": "If set, the file will be placed directly at this path during export without prompting for a location.", + "t6e0dfd93630167df": "If IncludeLauncher is True, it should end with .zip; if False, it should end with .mrpack.", + "t592a83024be6413e": "Prefix with ! to invert. You can use *, ?, [] wildcards. Later lines override earlier ones.", + "tcd81b08fddef4eaa": "Disabled mods", + "t0006a8748e35145b": "EMI profile", + "te1372fc307d55387": "Item favorites, default recipes, recipe history, etc.", + "te9faa1792d4db0b2": "Game", + "t8d9080be0c9c8370": "Game profile", + "tfe79063076b7f17f": "Command history, saved hotbar", + "t268e82d2e6e7bedb": "Game settings", + "t6f543cba87687310": "Key bindings, volume, video settings, etc.", + "tc6550bf3b055801b": "Important modpack data", + "te5075ca4e6d95834": "Scripts, built-in resource packs, data packs, etc.", + "t1b71480d61233a77": "JEI profile", + "t60d4d433a0601db5": "Item favorites, etc.", + "t5dbc6f1c9b481011": "PCL CE Launcher", + "td40d2dd6575487ce": "Bundle PCL CE for players without a launcher", + "tecdfc6c1134830a2": "PCL CE custom content", + "tf6fb8bcc23dd80f0": "Feature toggle settings, homepage, background music and images, etc.", + "t862c9a50d5287e87": "Saved maps", + "t6ace96f020ffb38b": "Maps, waypoints, etc. saved by map mods", + "tdb021393d3c2b58b": "Mod settings", + "t3b454c23efd1d7e4": "OptiFine settings", + "tfaff21b51908ce9d": "Patchouli profile", + "tc56dc67f745cfa23": "Read records, bookmarks, reading history, etc.", + "t2173eb47ca72149a": "Replay recordings", + "t0624a09a0dfb71e2": "Replay mod recordings", + "t29cb489372297726": "Texture packs", + "tc7a3c9dbb220e5d6": "Singleplayer saves", + "tfb76b9676a7fe53c": "Worlds / maps", + "tc95dc99afe57b285": "Screenshots", + "t0ef42470d670efdd": "Other folders", + "t8c9933ce3a5e1dc4": "Other folders not covered by the options above", + "tf4af1eaef3074434": "Multiplayer server list", + "tf1a57238be2ac752": "Exported structures", + "t77c622fa54ad7292": "schematics folder", + "t76420433f22d1c80": "Export", + "t9be6709eb0019ebe": "Do you want to initialize per-instance settings for this instance? This action cannot be undone.", + "t141e351a2eef1e08": "Initialize confirmation", + "tfea405f9b01d1416": "Overview", + "t83acdb2d4d760f6d": "Refreshing...", + "t9b4eaaa18caee368": "Game resources", + "tc73a6774d91ca0f6": "Saves", + "tdf3d58c7d84b85f2": "Settings", + "tca4781cceaf664e0": "April Fools'", + "t9b1c8ca621c3a255": "Hidden", + "t4a8d900c57844210": "This instance will not be shown in the instance list by default.\nPress F11 in the instance list page to view all hidden instances.", + "t69a2009a9deb78bd": "Less-used", + "t480ef5f17abdd1b1": "Mod-supported", + "tc1e6bfac5a22e765": "Regular", + "t515559957fd3acbd": "Category", + "ta88017157115d638": "Are you sure you want to delete instance {0}?", + "te358c6fc0652182b": "Are you sure you want to delete instance {0}?\nSince instance isolation is enabled for this instance, the corresponding saves, resource packs, mods, etc. will also be deleted!", + "tc6096dd6e3b57495": "Are you sure you want to permanently delete instance {0}?\nSince instance isolation is enabled for this instance, the corresponding saves, resource packs, mods, etc. will also be deleted!", + "t5489860978c76803": "Are you sure you want to permanently delete instance {0}?", + "td4fd4ae5ffd5b4e9": "Delete instance confirmation", + "t86aa9269ba9412a1": "Instance {0} has been permanently deleted!", + "t27321bb6ca447d84": "Instance {0} has been moved to the recycle bin!", + "t8779f71adfbd7287": "Default description", + "tb9ac1c43040b82cb": "Edit the description text for this instance. Leave empty to use PCL CE's default description.", + "t896f6359a87045fa": "Edit description", + "tc9d9331f6df13c83": "Edit description", + "td8e665c668dd99f6": "An instance overview operation failed. See the details below.", + "t2e8a4ae9c22dca06": "Favorite", + "tfc3389551193a511": "Are you sure you want to hide this instance from the instance list? After hiding it will no longer appear in the displayed instance list.\nPress F11 in the instance list page to view hidden instances.", + "t617a197cedd648ac": "Hide instance", + "t06c509fdf8d6e78b": "Rename instance", + "t5a30c4156f939e37": "Renamed successfully!", + "t8709e4857f104e24": "Are you sure you want to patch the core of {0}?\nPatching the game core may cause crashes or other issues.\nAfter patching, file verification will be automatically disabled.", + "t54f273b0e125077d": "Patching notice", + "t8cd8f2390e11dce3": "Patching game core, this may take a while", + "tbf98514ebdf17400": "Archive files(*.jar;*.zip)|*.jar;*.zip", + "t48574874b7e4bcab": "Select file for core patching", + "te69b44290d2ac527": "Game core patched successfully", + "t38c043e08502e710": "Personalization", + "t28a39ead5f71b8b2": "Rename instance", + "tc0252af360e72700": "Are you sure you want to reset instance {0}?\nPCL CE will try to re-download this instance's resource file information from the internet and perform automatic installation.", + "t8b3223231d320fb3": "Reset instance confirmation", + "te3bad172c4ab6ffc": "This instance does not support reset yet!", + "t98f99fa1334c609f": "Cannot reset: Quilt is no longer supported by this launcher.", + "tc08f3233cf499266": "Export launch script failed", + "t03fefc9344418167": "Exporting launch script...", + "t68767ef57a8c1509": "Exporting launch script... (Note: using the script to launch may cause your login session to expire!)", + "t6c182e20eb78d7d2": "Batch file (*.bat)|*.bat", + "t8bff7573066345c0": "Select where to save the script", + "t0c3fd1fbf68df17d": "Please wait for the current launch task to finish first!", + "t737dc0aa07b51649": "Instance folder", + "tc87d9c833d9720b2": "Mods folder", + "tf6e37bd65d12b035": "Saves folder", + "t6ab335864461b295": "Shortcuts", + "tdd7f9fcd5cd340ab": "Unfavorite", + "tb094339479ac81e9": "Anvil", + "ta2797bfb0c0400f0": "Cobblestone", + "t16a0dbdcfa2b6779": "Command Block", + "t4986e50332fe9483": "Dirt Path", + "te9f5b71a472d27bb": "Egg", + "t95dec4757941cf7c": "Fabric (Fabric)", + "t7c63dcc48d04cbc3": "Gold Block", + "tb6dafde3be054a37": "Grass Block", + "t6f5537d8652ec493": "Fox (NeoForge)", + "t9e7529c557f180cb": "Patch (Quilt)", + "t770fdcdd6d6f3e7d": "Redstone Block", + "t229595ed966c69bf": "Redstone Lamp (off)", + "t69b8251b1d7fd98a": "Redstone Lamp (on)", + "t103f091554dcf69f": "Common image files(*.png;*.jpg;*.gif)|*.png;*.jpg;*.gif", + "t9ad12a1ab4f6b527": "Choose image", + "t0d720eeea26466dd": "Icon", + "ta8b6c39dcabfc14b": "Installed", + "t5da8476895d8c353": "Launched {0} times", + "tc30419ac9d6d256d": "Never launched", + "t713dffe3e706a2f8": "Times launched", + "t7fa9f74dc70a0ee7": "Loading instance info", + "t4c79277fb16af473": "Loading modpack info", + "t85fedcb111e93f53": "Loading information...", + "t92b742d80072559b": "Properties", + "t0e1c46c0a4d39fd6": "Delete instance", + "t633eb5f8529a10f6": "Export launch script", + "t425d85157b443ac9": "Patch core", + "tc0540c3dea709da0": "Re-download installation information for this instance from the internet and perform automatic installation.\nYour saves, mods, resource packs, etc. will not be lost.\nIf the game cannot start due to missing Libraries or other resources, try this option.", + "t74894f76ad198901": "Repair files", + "ta5769ef36ec8dde4": "Check whether the dependencies of the instance are intact, and re-download the missing or corrupted index and assets files.\nIf you encounter missing sounds in game, try this option.", + "t853aab6ecaacb35b": "Test game", + "t58dbf974977f7f52": "Advanced options", + "t0bfccf12bc46e29f": "{0} canceled!", + "t431ec84a1fdd4a35": "Please first disable [Instance settings → Settings → Advanced startup options → Disable file verification], then try repairing the files!", + "t662704167945cee0": "{0} failed.\n\nDetails:\n{1}", + "t948ef9f66c2e8b99": "Processing, please wait...", + "t4f7ad22053699ca0": "{0} completed successfully!", + "td58f9cbfb01d2092": "File repair", + "t6e280f54e3f9a1b5": "Back to parent", + "t47721ffdd1cb67be": "Check mods", + "t2066c72f7d8c7873": "Quickly check mod version requirements, duplicates, missing dependencies, etc.\nResults are for reference only and may be inaccurate due to incorrect information in some mods.", + "tdfab0dd8cfeb41a6": "Download new data packs", + "t4520036789cd1cf1": "You can install data packs from previously downloaded files.\nData packs need to be placed in the save's datapacks folder to take effect.", + "t49bf35e5b4668026": "No data packs installed", + "t892a649bde9508bc": "Export detailed data pack info", + "t3dd3f0fe7d069599": "Loading data pack list", + "t5b99268f11dbb51d": "Deletion failed due to file being in use. Please try closing any running games and try again!", + "t9c227fa3c9000ad0": "Permanently deleted {0} items!", + "tb1651ccfeba1b5b9": "Permanently deleted {0}!", + "t5369f5ce60c4f22f": "Moved {0} items to the recycle bin!", + "t81f82ad6b08f36b1": "Moved {0} to the recycle bin!", + "t7df5c456c765e4c3": "Disabled", + "tfa7b98e0f04439e3": "Download resources", + "tdb5380c5ca00d8a4": "File conflict", + "t0892ef4262528ab7": "There are currently two mod files (enabled and disabled):\n - {0}\n - {1}\n\nThese two files have different content.\nYou must manually delete or rename one of them before proceeding.", + "tb3a79dfdcd946011": "Mod status toggle failed. Please try closing any running games and try again!", + "t89a377eefd04c4bf": "You can install resources from previously downloaded files.\nIf you have already installed resources, the instance isolation setting may be incorrect. Please adjust it in the settings.", + "t0b8326f6ae1fdb38": "You can download new resources or install from previously downloaded files.\nIf you have already installed resources, the instance isolation setting may be incorrect. Please adjust it in the settings.", + "tfce3b7df9ab2aba1": "No resources installed", + "t4a574e1c3c709066": "You can install resources from previously downloaded files", + "t43155cb048105719": "This folder is empty", + "tf4f0ead1116b5b62": "Enabled", + "t6c67533a8afe1f01": "A resource management operation failed. See the details below.", + "t333de441c99bc22b": "Text file (*.txt)|*.txt|CSV file (*.csv)|*.csv", + "tbb203b17ebdf7f60": "CSV format", + "tdda50484e377dac9": "TXT format: Only export the current resource file name info, usually sufficient for others to get installed resource info\nCSV format: Export detailed resource info, including file name, project ID, version info, and other details", + "t7a3f8ec103a45dd5": "Select export mode", + "td1c9f8e32f6727d9": "TXT format", + "ta083aef147108081": "Export info", + "t8a8e0b1a7e4b315c": "Export detailed version info for resources", + "t7bc03302e1e4f67c": "Install files", + "t42ca6e8863ed93d7": "Loading resource list", + "te56afdba8c75968f": "Go to the download page", + "t29fc017d002a058f": "You need to install a mod loader such as Forge, Fabric, etc. to use mods. Please go to the download page to install one.\nIf you have already installed a mod loader, you may have selected the wrong instance. Please switch to the correct instance.", + "tf5a76549ed49cfaa": "Select instance", + "t1df33817426cf8ff": "This instance cannot install mods", + "t14e68ce7631adc07": "Mod relationships", + "te44b26efe75fb52b": "View mod dependencies, missing prerequisites and bundled (Jar-in-Jar) structure", + "t0854a00f04095795": "An overview of dependencies and bundled structure between mods. Disabling or deleting a mod will warn about affected dependencies.", + "t4142a8614a5f5082": "Mods still loading", + "tc408a0772b63ea47": "Embedded mod relationships are still being analyzed in the background. Dependency cascade detection may be incomplete right now and could miss mods that should be handled together. Continue anyway?", + "t093ef87147f7b024": "No mod relations to analyze", + "tcf4ed2419584cad4": "None of this instance's mods declare dependencies or bundle other mods, or the mod list has not finished loading.", + "t08616b42bd23356c": "Conflicts", + "t2f517e46fae14e9d": "Incompatible: cannot load together; installing both will crash the game or prevent startup — remove one.\nDiscouraged: can load together, but the author flagged compatibility issues that may cause bugs or broken features.", + "t9a7c7a01905d3b77": "{0} and {1}", + "tdddfc423fbf8f547": "Bundled mods", + "td9e3e35ceb81eb32": "{0} is missing prerequisite(s): {1}", + "tc78a02068c5fb530": "{0} has version-incompatible prerequisite(s): {1}", + "t7cfcb800c1fb4b2c": "{0} {1} (detected: {2})", + "t241d2e8cb6a00bc3": "{0} has disabled prerequisite(s): {1}", + "tbc5a87a757a557d9": "Disabled", + "tc7b100922251edf5": "Bundled", + "t27a8e574a23eeebc": "Version mismatch", + "t65364e6fd8c7b5f1": "Missing", + "t9dc7bac672c4c813": "[optional]", + "te8a452844d9fd6b9": "✓ used by this instance", + "tc955b3b6e6ee226f": "⚠ incompatible with this version", + "t02784d9ae7aea2dc": "{0} versions", + "t8e98cfd0f447a9ca": "[bundled · from {0}]", + "t9af25a4904ed9d4f": "Search mods: name / ModId / dependency", + "t1115a649da2df346": "Only this mod", + "t39d069a363c9f2fc": "Also disable mods that depend on it", + "t1b20806091275818": "Also delete mods that depend on it", + "t9aee4315e0a9323b": "Disabling this mod affects {0} mod(s) that depend on it. Choose how to proceed:", + "t9f11573bb2709e02": "Deleting this mod affects {0} mod(s) that depend on it. Choose how to proceed:", + "td944035e48cdd9db": "Download Litematica", + "t71c9d0bdaa75e6c2": "You may need to install the Litematica mod first. If you have already installed one, please launch the game once.\nAlternatively, you may have selected the wrong instance. Please use the instance selection button to switch instances.", + "te507785c9e87e955": "Schematics unavailable for this instance", + "t858de76f2de899f6": "Search resources: name / description / tags", + "t3a5040b68abf75f9": "Select all", + "t56d6ec3bf4515e41": "{0} file(s) selected", + "tf9294e9ea241b1b5": "Date added", + "ta6e48adc26d686d7": "File name", + "tb9bf6916437a77eb": "File size", + "t41cec19b0b5be53d": "Resource name", + "tfb3f54d79ebf0bb1": "Tag count", + "t2c485168df9ec9fe": "Sort: {0}", + "t64b0cd8342af4b26": "All ({0})", + "t2f8f1620a524b9f3": "Disabled ({0})", + "t609cf2fdf6ffcc61": "Duplicates", + "ta0c1c6602c8e66e4": "Duplicate ({0})", + "tdfb802238b38fbd4": "Enabled", + "tda8e5543f13369ca": "Enabled ({0})", + "t0bc1fb72ae1be5c5": "Errors", + "t9c25d3997bc2e41f": "Error ({0})", + "t88d72ece7cf76737": "Search results", + "t08d43bdc4dcb6253": "Updatable", + "tb3d89638c58dc897": "Updatable ({0})", + "t0d5abd9fe44513fc": "Do you want to install these files as {0} to {1}?", + "t636ed7bef392fff2": "Confirm {0} installation", + "t4b4e35bb50052731": "Do you want to install these files as a Mod to {0}?", + "tcb6ca2481331d3ca": "Confirm mod installation", + "te859e6d66a16e151": "A file with the name {0} already exists. Overwrite?", + "tb23fb9949a582fc3": "Confirm file overwrite", + "tc8fe5e44bf2bf09a": "Please restore the file from the recycle bin first before trying to install!", + "t9f3672fd59db1a0c": "To install a mod, please first select a mod-compatible instance!", + "t97522f95ee697162": "Successfully installed {0} {1}(s)!", + "t2f9e65b4e18ca8a8": "Successfully installed {0}!", + "t7f9db0f6fb9b9023": "Unsupported file format: {0}. {1} supported formats: {2}", + "t7c9062e87916df7f": "Mod files (*.jar;*.litemod;*.disabled;*.old)|*.jar;*.litemod;*.disabled;*.old", + "t299ba3446d92abbf": "Select mods to install", + "t0190e4f428de4d1e": "Resource pack files (*.zip)|*.zip", + "t528303ecc4272d74": "Select resource packs to install", + "t816123fb64a91787": "Schematic files (*.litematic;*.nbt;*.schematic;*.schem)|*.litematic;*.nbt;*.schematic;*.schem", + "te44bfec7f618a520": "Select schematics to install", + "t8e5c11d41b754d1e": "Shader pack files (*.zip)|*.zip", + "ta4a892908fbb9c3f": "Select shader packs to install", + "t597848b318c74c4e": " [Error]", + "t7c7802d8adaed72e": "Folder", + "tf39b33bb4aadc5e2": "Unable to get information", + "tdfa85a041ea1809b": "Failed to open changelog", + "t3055a035f0eb7a8b": "Update", + "tfcacadc617fb5db9": "Current version: {0} ({1})\nLatest version: {2} ({3})", + "tab1696e556f288de": "Update {0}?", + "t2e3963b7e1af3f3b": "Confirm update", + "t676481107ed10a2e": "Click to update, right-click to view changelog.", + "tbd50eff4af4697ff": "View changelog", + "t3f7d59cf3b763754": "Author: {0}", + "ta5949e8d1389abbb": "Contains {0} files", + "ta79cdb56cddbd02d": "Contains 1 file", + "tedd4c541cf326c7f": "Depends on: ", + "t4ce9023ebcffd766": "{0}, version: {1}", + "tb6ce5ff81c9e5838": "Detailed error: ", + "t8413b6cec2bea3f4": "Empty folder", + "t9858574191aad1b4": "Unable to read information for this resource.", + "t988119f2f60eff68": "Unable to read information for this resource.\n\nDetails:\n{0}", + "t855e1152acd54c1e": "Failed to Read Resource", + "te51b804de1fa1601": "File: {0} ({1})", + "td81a0bc3d2b23320": "Folder not found", + "t5f179fa65fa3c5c4": "Loading details...", + "tb9ae22fecbf1f2e9": "Search on MCMod", + "t32da8316199b8a0c": "Mod ID: {0}", + "td1ef10bd63ff9022": "Path: {0}", + "ta7286ba3d06d5271": "Version: {0}", + "t4bcfaa4e7ca946ef": "Created: ", + "tcdb39b0543017609": "Data version: ", + "t7eead9ab3cb8b494": "Details: ", + "td9a16e0f46daed4d": "Enclosing dimensions: ", + "tf7c4cd5114c2e9f6": "Enclosing size: ", + "td1898e258d5d922f": "File type: ", + "tccc84b3d9a140c3d": "MCEdit/WorldEdit schematic", + "t1dbb9ebc3b7143a7": "Vanilla structure", + "tc0b0a7f5107813a7": "Sponge schematic", + "tc64efddf10849cd9": "Game version: ", + "tb4575c3ecd059aa4": "Modified: ", + "t3c81f1a5533e9cd1": "Original name: ", + "t46bfb359ba439e26": "Region count: ", + "t888d070cf293a0aa": "Size: ", + "t27083401efb100da": "Sponge version: ", + "t68a663d72674a1ec": "Total blocks: ", + "tc7a0ccee7fde8993": "Total volume: ", + "t1299a463693b6308": "Schematic version: ", + "t00a50d0f21c92f67": "Resource update aborted!", + "tf929e6e4296436fb": "Resource update failed: {0}", + "tf647bbb59100158c": "Successfully updated {0} resources!", + "t2fe702002e0cc8a1": "Successfully updated {0}!", + "t3353932ac7b3a2d3": "Download updated resource files", + "tcfc6f0f80e300d9d": "Replace old resource files", + "t23fb47d47949cd76": "Update resources: {0}", + "tc8b6acd6c2824a03": "Updating resources", + "t0c06c0f68525de81": "I understand the risks, continue updating", + "tbdbde764a34d4f32": "Newer versions of mods may be incompatible with old saves or other mods, which could cause game crashes or even permanently corrupt your saves!\nIf you are playing a modpack, do NOT update mods on your own!\n\nBefore updating, please back up your saves and check the mod's changelog.\nIf problems arise after updating, you can retrieve the previous mod version from the recycle bin.", + "t21693937fb2e718d": "Mod update warning", + "t9d8a03f46364f97f": "Save folder copied to clipboard!", + "te52345553d8eece9": "Copy failed...", + "tad2886a4dc41e1b6": "Warning! Deleting before pasting will cause save loss!", + "t3ec349752dabe75e": "Copy save", + "tc1e74205b46bf513": "Created: {0}, last modified: {1}", + "t3e89dc78fd3fb178": "Failed to delete save!", + "t2e8a29e4b72616e5": "Save moved to recycle bin!", + "t369484c5ec1fd2fd": "Deleting...", + "t979a332955c855bf": "Details", + "t454857e571a74097": "Found duplicate folder, cannot paste: {0}", + "t120b12cdbf2d75e3": "You can view the current instance's saves here", + "t9a847ba1161acb10": "No saves yet", + "t9171f53414524e65": "A saves operation failed. See the details below.", + "t0e7d90ffb11b2d6d": "Double-click a folder to enter it.", + "tb87b880332e23a8f": "Operation notice", + "te4067375056a4946": "Folder does not exist or has been deleted", + "t67c4ace2b9e92d61": "Save folder not found!", + "te7028601e7da793d": "Info", + "t899432d83d98c3bf": "Quick actions", + "td181b68d7894551f": "Failed to switch sub-page (ID {0})", + "t7c194a7fff1796ef": "Unknown instance settings sub-page type: {0}", + "t96762502d60e1998": "Save list", + "tbd755fab3b30a6b5": "Failed to load save list", + "t0a490eb3af40018c": "Open file location", + "tb716ad55bffa744e": "Open saves folder", + "t787851c9802de7b9": "Paste clipboard file", + "t0beffbcfa4510819": "Failed to paste save folder", + "te71a9e220ede1d03": "Pasted {0} folder(s)", + "t91103c8fae0111a0": "Quick launch", + "t9c5b4871d36c903f": "Failed to refresh save UI", + "t69fc05bff50ed548": "Save list ({0})", + "t47f206fe3ec9a685": "Error occurred during search", + "t46c10fbcd79ec83e": "Search save name", + "t07ec86e0f1d44f91": "Creation time", + "t257bbcc44c839db4": "Modification time", + "ta7bb2f73f0f43556": "Source folder does not exist or is not a folder", + "t9283634badebfa28": "TXT format: Only export the current data pack file name information\nCSV format: Export detailed data pack information, including file name, project ID, version information, and other details", + "t82c0db872c4a7ffc": "Author: ", + "t2228b2755b4fb353": "Data pack ID: ", + "t9491ade2781febfb": "File: ", + "t011958f9bf79ae4f": "Unable to read data pack information.", + "t3ee8679632fcd1a1": "Unable to read data pack information.\n\nDetails:\n{0}", + "t0bdf9529104b7008": "Data pack read failed", + "tb6c0bf3495992e5c": "Version: ", + "t7eabd5a06216e332": "Data pack files (*.zip)|*.zip", + "tdd989c3b4b9d5e3c": "Select data packs to install", + "t0523c0608cfcad50": "Do you want to install these files as data packs to the current save?", + "t1060c0725d578c79": "Confirm data pack installation", + "tda2630538f07aa7a": "A file with the same name already exists: {0}. Please handle that file first and try again.", + "t510f783ad2c9ea66": "Data pack status toggle failed. Please try closing any running games and try again!", + "t9dd267b91dae16ea": "Download updated data pack files", + "tb3a5d6b0f49ff53a": "Replace old data pack files", + "tb220d03ff8fa1c16": "Update data packs: {0}", + "t989f8339ff941ce3": "Skipped {0} data pack updates with unsafe file names.", + "t5d237e5a89e8c00f": "Newer versions of data packs may be incompatible with old saves or other data packs, which could cause game crashes or save corruption!\n\nBefore updating, please back up your save.\nIf problems arise after updating, you can retrieve the previous data pack version from the recycle bin.", + "t5b9399bc2a220260": "Data pack update warning", + "td85f6fb029fcb14d": "Allow commands", + "tce7ef28b670ade58": "Allowed", + "t4a044484f863c5e5": "Not allowed", + "tf0a24fc8598efefe": "Save version '{0}' may be a preview version, unsupported, cannot open in Chunkbase", + "t723c616ebe870dbe": "Open in Chunkbase", + "t8ed201fe2d0a22ec": "Unable to determine save version, cannot open in Chunkbase", + "td70e7288e1af0694": "Save details", + "t01805727314e4def": "Easy", + "t4ea02714a1e96276": "Hard", + "tde907d10df98b498": "Normal", + "tc38b401e2062ca88": "Peaceful", + "te227246f4d1712f9": "Difficulty locked: {0}", + "t418ee1851864601f": "Failed to open Chunkbase", + "tbf3cf269a0241175": "Failed to copy to clipboard", + "te5f2a4634c0a8561": "Failed to get save info", + "t10fc628593208200": "Game difficulty", + "tfda0e5d87bac4091": "Game mode", + "t16d0879b78417cf2": "Adventure", + "tff0b169fcecb9fbd": "Hardcore", + "te89383dd0b899df8": "Spectator", + "tdb8f876a8dd99404": "Survival", + "t69aee90c9b104a39": "Difficulty", + "te6df2ef62df6b8ea": "Last played", + "t90e4538f0770c4c9": "Save name", + "t99d61ea4514d645f": "Lock difficulty", + "t75d5eae61e59696b": "Lock current difficulty, preventing changes in-game", + "t64187c54fcf06c21": "Make sure the save is not open in-game before modifying settings", + "t6f38d81d63644d56": "Failed to modify cheat settings", + "t319cd8edbf998568": "Cheat settings modified successfully", + "t345e027ba7aa9931": "Failed to modify difficulty settings", + "td8a787e6dd32590c": "Difficulty modified successfully", + "t51c738ac0ef65de7": "Play time", + "t5e20fc223736c86a": "Seed", + "tac50792e77e73837": "Save settings", + "tb0bc86009feba52d": "Spawn point (X/Y/Z)", + "t2936050efd476c66": "Save version", + "t0160dee680ba5122": "Unable to get save version, difficulty, and cheat settings for versions below 1.3", + "t3594d6baee45e710": "Unable to get save version and difficulty for versions below 1.8", + "t67296e5b0b6f14d0": "Unable to get save version for versions below 1.9", + "t095a2f5192379793": "Screenshot copied to clipboard!", + "te0dba6ba1c0c78dd": "Screenshot copy failed!", + "t7e31502d17727490": "Failed to delete screenshot!", + "t0437dbd2e6ef93f2": "Screenshot moved to recycle bin!", + "tf6697801012cb5c3": "Press the screenshot key (default F2) in-game to view saved screenshots here", + "ta2e8e9dbf9330447": "No screenshots yet", + "teb369aa527e812aa": "Screenshot file not found!", + "t6d3279b3578e2c5e": "Failed to open screenshot!", + "td45f7834d6d90962": "Open screenshots folder", + "t7471e181a1530af4": "Add new server", + "tf0fe5f8377db97cf": "Please enter new server address:", + "tba0a28cd23806bff": "Minecraft Server", + "t7b5e700895abe812": "Edit server info", + "t01af5e5c7e2cf9a6": "No servers found. Add a server in-game or click the button below to add one.", + "t0f9dae50dc2d636a": "No servers yet", + "t77fdc45528150bc2": "Server list found", + "tc3b1f2a66670a584": "Unable to find server index in list", + "te4b8931b003fcbdc": "Please enter new server name:", + "t35f9c779db261c5e": "Please do not refresh too frequently!", + "t9f2a15d87299064a": "No servers found", + "ta788d8b94485ccb9": "Unable to read server data file", + "td8eadcfaa53e99f7": "Failed to read servers.dat file", + "tf87b9db5ce114e67": "Refresh all servers", + "te03d7b7e2eee4aae": "Failed to refresh server list", + "tb0a1a3b397f6c100": "Failed to refresh server list.\n\nDetails:\n{0}", + "tb3b549a29cf70bdf": "Refresh server info", + "t07c44eb39f105d1d": "Refreshing server list, please wait...", + "t17b79c84e37b296d": "Server removed", + "tc16129bac4e37a55": "Server info updated", + "td56a07882a6a4c30": "Unable to write server data file", + "ta3694e2c97a83037": "Server address copied: {0}", + "t694186911ae3e4da": "Connecting", + "t83cd1d8f37747eaa": "Connecting...", + "tb96f23f9b1db9da3": "Connecting to server {0}...", + "t4c6de01bbe86b3d8": "Copy address", + "t9d631083fbb86edf": "Failed to copy server address", + "t051836569928a9f9": "Edit", + "t4d96a8f48a04db72": "Failed to edit server info: {0}", + "te2a6044888c9aa01": "Failed to launch server", + "t8eff613f1c16c691": "Failed to launch server: {0}", + "tbe1b4f3c6c1cda1e": "Offline", + "te1c40eb448009e4e": "Refreshing server {0} status...", + "t6135d4159e892541": "Remove", + "tf6e40d6dda9d9d2c": "Are you sure you want to remove server {0}?\n'{1}' will be removed from your list, including the in-game list, and cannot be recovered.", + "t027ee565544e28b9": "Confirm server removal", + "tcd522a502acc5efb": "Server offline", + "tc0ff50ddf6a9590a": "An instance settings operation failed. See the details below.", + "td1c8332214d92565": "Follow global settings", + "tf079baf5319805b2": "These settings only apply to this game instance and do not affect other instances.", + "t8a4c4be60b6c23ec": "Instance settings initialized!", + "t0942cfc0d4005d46": "Memory used", + "t3f754f38a6547e20": "Global settings", + "t254170063a3d4c95": "Additional classpath prefix", + "tce6add83ab057f49": "Content will be added as Classpath entries at the head of this instance's launch arguments.\nAbsolute paths are required. Separate multiple entries with English semicolons (;).", + "t2f207f903580b01b": "Disable file verification", + "t276c9874402c1956": "Do not modify Assets at all; do not verify Libraries, third-party login libraries, or the instance main Jar file for modifications.\nDo not enable this unless you have modified related files.", + "t7734f842a3842a40": "Content in this text box will be appended directly to the end of the launch arguments.\nFor example, entering --demo will launch the game in demo mode.\nSupports substitution tokens from the Minecraft instance JSON, e.g. ${library_directory}.\n\nLeave empty to follow the global setting.", + "tbaf991914cae91dc": "Ignore Java compatibility warning", + "t236723cfbca1d79e": "If a manually selected Java is incompatible with this instance, automatically skip the compatibility warning popup and force the use of the manually selected Java.", + "tad9f842ba691fb1c": "Additional JVM arguments used when launching Minecraft. Do not modify unless you are certain what you are doing.\nSupports substitution tokens from the Minecraft instance JSON, e.g. ${library_directory}.\n\nLeave empty to follow the global setting.", + "t3c7e5c6976b76dc0": "This does not override the global setting: the global command runs first, then the instance command.\n\nExecutes a command or program before launching Minecraft, using Windows command prompt syntax.\n\nThe following substitution tokens can be used for relative paths (paths end with \\):\n · {path}: PCL CE executable folder\n · {minecraft}: .minecraft folder\n · {verpath}: Instance folder (.minecraft\\versions\\instance-name\\)\n · {verindie}: Version folder when isolation is on, .minecraft folder otherwise\n · {java}: Java runtime folder\n\nAdditionally, these tokens are also supported:\n · {user}: Player name\n · {login}: Player login method\n · {uuid}: Player UUID\n · {name}: Game instance name\n · {date}, {time}: Current system time\n · {version}: Game vanilla version\n\nExamples:\n · \"{verpath}test.exe\" : Run test.exe in the instance folder\n · \"{java}java.exe\" -jar \"{verpath}test.jar\" : Run test.jar from the instance folder with Java\n · notepad \"{verindie}options.txt\" : Open the instance settings file with Notepad\n\nAlways wrap paths in double quotes to avoid failures caused by spaces.\nThe working directory when executing the command is the current .minecraft folder.", + "tcdd830c6cd119267": "Use debug-level log4j configuration", + "t4b595752bc8a3a8c": "This option changes the game log level to the minimum, which may consume substantial disk space and potentially affect game performance. It may also pose some security risks. Do not change this option if you don't know what you're doing!\nAre you sure you want to continue?", + "te376f1655a97f78c": "Follow launcher network proxy settings", + "taf8e128ddba4278b": "Use the proxy configured in [Settings - Misc - Network - HTTP Proxy] to launch the game.\nIncorrect global settings will prevent login!", + "tff584bda0148332e": "This info is displayed at the bottom-left of the game's main screen and the top-left of the F3 debug screen.\nLeave empty to follow the global setting.", + "tab631b712c513887": "Instance isolation", + "t37df05c413d1ee97": "Share saves, mods, and other files with instances that have isolation disabled.\nIf multiple instances with mods are present, mod conflicts may cause crashes.", + "t8da97ddda990e7c4": "Enabled", + "tc77bf2481702f366": "Saves, mods, and other files are kept separate from other instances, without interfering with each other.\nThis prevents cross-instance save sharing, but can help avoid mod conflicts.", + "ta7ce7dbe1128f0d9": "After changing instance isolation, you may need to manually migrate save files, mods, and other files to the new game folder.\nIf you find your saves are missing after the change, reverting this setting will restore them.\nIf you don't know how to migrate saves, it is not recommended to change this setting!", + "t5ff70e0c460b14ba": "Default window title", + "t72b24a24b7186171": "Whether the game window title should keep the default.", + "t2cb7d85e465d4c68": "Customize the game window title. Leave empty to follow the global setting.\nThe following replacement tokens are supported:\n · {user}: Player name\n · {login}: Player login method\n · {name}: Game instance name\n · {date}, {time}: Current system time\n · {version}: Game vanilla version\nNote: If your instance uses the Modern UI mod, this setting will be ineffective.", + "t80d02d707e18a966": "Game Java", + "tfb31b8a8dca01dfb": "Auto-select", + "t10c43f80e36f6f1c": "Path: {0}\nVersion: {1}\nSource: {2}", + "teaec117ce227a9bf": "Invalid path: {0}\nClick this item to re-select a valid Java", + "ta2d981f17e38c87f": "Failed to load list, please retry", + "t91004033f37b6298": "No available Java runtime detected", + "tf8379e8f48942368": "Please manually specify a Java path in settings, or click \"Scan\" to re-detect", + "t9e405604dae16e94": "Path is out of allowed range. Please select a file within or under the launcher directory.", + "t82907c4d2fb89580": "Relative path: {0}\nResolved path: {1}", + "t464d60369ec72913": "Select Java in launcher directory", + "ta1671b20fa7e11a4": "Select Java in launcher directory (current path is invalid)", + "tcfe0b2eeaa7c70ed": "Java in launcher directory | {0}", + "tce793c1d927e8312": "Select a Java path relative to the instance directory", + "t7498384b686c2fcf": "If Java is placed in the game or PCL CE folder, PCL CE will prefer selecting it during auto-detection.", + "ta6ac7a930db5437f": "Target auth server", + "t20d5ef706cb3723d": "Auth server address automatically formatted!", + "t2573aa7313bbafa4": "Full address of the Yggdrasil API authentication server", + "tcef3e2cea27303a4": "Automatic join", + "tff98385f8cce2ea2": "Automatically join a server after Minecraft opens.\nSeparate IP and port with an colon, e.g. 233.233.233.233:12345.", + "t936d52b878ee55f5": "Create profile", + "tfbe2d154eb82c9c5": "Using HTTP for login operations may expose your credentials in plaintext.\nUnless you have a specific reason, always use HTTPS!", + "tafb8b636e332555b": "LittleSkin login", + "t670154db6b3a27e1": "Your third-party login settings will be overridden with LittleSkin login.\nDo not proceed unless you are the server owner, or the server owner has instructed you to do so.\n\nAre you sure you want to override the current settings?", + "taa4a7e90a21ab78f": "Confirm setting override", + "t66ba32e26defe4e5": "Lock login method", + "td4f0c724de7627b4": "You are about to lock the login method for this instance. Once locked, the login method requirement cannot be changed, and the game must be launched using the specified login method.\nThis feature may help some server owners.\nContinue?", + "tb7550744a3af66c2": "Confirm login method lock", + "tc5616d31356e3c65": "The authentication method for this instance has been locked and cannot be changed. Please use the required authentication method to launch the game.", + "t8027864b27f501cc": "Third-party login only (Authlib-Injector)", + "t31d45494e818f473": "Microsoft login only", + "t54d1b0d14b50efea": "Microsoft or third-party login (Authlib-Injector)", + "t9ee3c076a148a297": "No restriction", + "tec79bfcf63ea434d": "Server name", + "t182035e460e6884c": "Server name displayed on the login page", + "t80313b450cbb168c": "Registration link", + "t695a9798c6fba05c": "Web address for account registration, e.g. https://xxxxx.xxx/auth/register", + "t3ceae2377a17af62": "Restrict login method", + "t48fc3c860db30e8c": "Set to LittleSkin", + "t6af32ec6e6f57cfd": "Disabling SSL certificate verification may expose your login credentials to third-party interception.\nUnless you have a specific reason, always keep SSL certificate verification enabled!", + "t3468f875c729b5dc": "A launch page operation failed. See the details below.", + "t0cf642cf998c86ac": "Launch failed", + "t0c6e6d36a48d3015": "To permanently hide this notice, enter the correct PCL CE development organization name.", + "tabf930d81a9203d3": "Enter the PCL CE development organization name", + "tf7bf91b7d28e65ab": "You are using PCL CE (PCL Community Edition)! This version is independently developed and maintained, and differs from the original version in its development path and user experience.\n\nIf you downloaded the PCL CE by accident, we strongly recommend downloading the original PCL version for long-term use, as this distribution may not be user-friendly for newcomers.\nAdditionally, please submit PCL CE issues to the PCL CE repository, and do not report PCL CE issues to the original repository!", + "t7474a16bc5c89a9a": "PCL CE notice", + "t61599e09cb13804d": "Not quite right...", + "tb0e3009e712b21e8": "Launch log", + "tf2e307925f823db1": "« Back", + "tff0e560e20a2082f": "Failed to switch login page. ({0})", + "t1e2df9c3075ae9e4": "Log in", + "t78039212f6520d7a": "Login canceled!", + "td01600ce19257b9f": "Microsoft", + "t6008bbfdb3e38dc4": "Offline", + "t6114f5d6d0205ad4": "Third-party", + "t04ade1879dda1916": "Switch profile", + "t73075237fd0f05f0": "Email", + "t498f7d2f8747223d": "Authentication server, username, and password cannot be empty!", + "t06eb15b75f0110f9": "Forgot password", + "t790a4386b9505be0": "The authentication server address is invalid.", + "t493f38e317087595": "Third-party login failed.", + "t5be0cbfcf01b1d6a": "Third-party login failed.\n\nOriginal error:\n{0}", + "t3ab8cc15939f3b5c": "Log out", + "ta621ab606db2a11f": "Password", + "t3d3c840a9479c5ef": "Preset - LittleSkin", + "t679e917b16ef72d9": "Register", + "t902374eeaf859afa": "Authentication server: {0}", + "t551710fd549587c9": "Select authentication server", + "tbe3cb04a40919d69": "Start OAuth login", + "ta6d788232ec3f20a": "» Use password login", + "t0315a8b263132e2d": "» Use OAuth login", + "t420c20dd9fcca860": "Copy code", + "tef5d4285531e7737": "Failed to initialize Microsoft login dialog", + "t1b71e1023492f244": "Failed to load Microsoft login dialog", + "td13635300bb3dac8": "The login page will open automatically. Enter the authorization code {0} (it will be copied automatically).\n\nIf you have network issues and the page fails to load, please try again.\nYou can also open {1} on another device and enter the code manually.", + "t42b563f4a5e8d794": "The login page will open automatically, and the authorization code will be filled in automatically.\n\nIf you have network issues and the page fails to load, please try again.\nIf the code is not filled in automatically, paste this authorization code {0} manually (it will be copied automatically).\nYou can also open {1} on another device and enter the code manually.", + "t2a1d761830126275": "Log in to Minecraft", + "t5904373868640ff6": "Microsoft login polling failed", + "t01ed19e2900d3910": "Reopen webpage", + "t5d57127847ba6af8": "Successfully logged in from the webpage!", + "tf7df4fc957c82c54": "Test title text", + "t2e89909e0fd092e7": "A Microsoft sign-in operation failed. See the details below.", + "t5f35b345cf33839e": "Unknown error!", + "td59f3d1d31f29907": "Microsoft login authentication failed.\nPlease consider disabling the \"Verify SSL certificates for Microsoft login\" option in \"Settings → Miscellaneous\" and try again.\n\nOriginal error message:", + "t5cd0d666d6bab4f5": "Microsoft login authentication failed", + "t2bde595d094e39ef": "Microsoft login failed.\n\nOriginal error:\n{0}", + "td2c8f3b49f73b807": "» Purchase", + "te8eead3a6646c67d": "Log in", + "t986325cf33e84b0c": "» Website", + "tcde2cd071d25bbab": "Create", + "tced85ec25bcc781d": "Your username does not meet the standard (3 - 16 characters, letters, numbers, and underscores only), which may cause some game versions to fail to launch or encounter errors.\nIt is strongly recommended to use a standard username!\nIf you insist on using this username, you can continue.", + "tc6ddaa742bb8cdfd": "Invalid username", + "t4cc492b208bda0b3": "UUID does not meet requirements: {0}", + "td5edf64786cd13e3": "Username", + "t477a342ca80c3b80": "3 - 16 characters, letters, numbers, and underscores only", + "tb42833f5a2d2c13a": "Must be a 32-character hexadecimal string without hyphens", + "tc2209d7f05d76783": "For advanced users. If you do not know what this is, do not select this option.", + "t04ea81768ab82ad0": "Legacy", + "ta2614c41a13b5af9": "Use legacy PCL CE UUID generation rules.\nIf some single-player save data is missing after upgrading from an older PCL CE version, try this option.", + "te7bff89ec0daeeda": "Standard", + "t713f13d217d11e28": "[Recommended] The generated UUID is consistent with other launchers such as HMCL, BakaXL, and Bukkit.", + "t80fcb4b2ebd4ca91": "UUID standard", + "taa0265f4399d3309": "Change authentication server name", + "t2369ed131e93090d": "Change UUID", + "t74e814bb19061a0d": "Copy UUID", + "t952724a3a21dc439": "New profile - Select login type", + "taa4c9300b7e8607e": "Create and select a profile before launching the game", + "tc935b2db7282e943": "A Microsoft profile is required to create profiles using other login types", + "t946412fba614b86c": "Profile created!", + "t408bf95406abc59d": "Delete profile", + "t336ff2ef7565b07b": "You are about to delete this profile. This action cannot be undone.\nAre you sure you want to continue?", + "t97426dd1b93354ed": "Confirm profile deletion", + "t88022f5a042e5a8b": "Profile deleted!", + "t602a9a7ba17ca415": "Enter the new authentication server name.", + "t8ceb0f69c39c3f8c": "Change authentication server name", + "tb17131209743c985": "Failed to change username.", + "t7acd54368b376ebe": "Failed to change skin", + "t43541cd29a60bb1a": "Failed to read profile data. The file may be corrupted; the profile file has been backed up and reset.", + "t715a3dcbcfdba242": "Failed to read profile list.", + "t20af727477c625e0": "Failed to write profile list.", + "ta173733f1faa78f8": "Import / Export", + "t77358d4c779996a0": "Profile saved!", + "tbfebf1de59d23772": "Select a profile before launching the game", + "tb02a4597f7485f56": "Change UUID for profile {0}", + "t5ae64b316e76b06d": "32 characters, no hyphens", + "tca61c221e43ef3d0": "UUID should only contain letters and numbers!", + "t73504ef0b71f6fde": "Legacy PCL UUID (if single-player save data is missing, try this option)", + "t41c9551db4210c11": "New profile - Select UUID type", + "t4c177e2b3ccb969c": "Standard UUID (recommended)", + "t9a0eb83e4d605332": "Username cannot be empty!", + "te5ebbf4d9f614249": "Username cannot contain quotation marks!", + "t0ec90bdfe39bf7ff": "Unknown login type.", + "t5de593495b0ec032": "Starting from version 1.20.3, usernames can contain a maximum of 16 characters!", + "t18b2e4d6607e2743": "Note: Username can only be changed once every 30 days. Please consider carefully!", + "t4c62c9c5a5368d5b": "Confirm change", + "t1e956957673b5fc6": "After changing your username for the first time, you must wait 30 days before changing it again. You can check the exact date on the official website.", + "tc4e45c8f10d3877b": "This username is already in use. Please choose a different one.", + "tab06d3017b3b0178": "The username cannot be empty.", + "tb108f4881e05943d": "Failed to change username", + "tc8c89417c7b6fc27": "3 - 16 characters, letters, numbers, and underscores only", + "t4b41b75f3ee20c02": "The username can only be changed once every 30 days. Please consider carefully!", + "t2d868a3e66a95b91": "This username contains invalid characters other than letters, numbers and underscores.", + "te7808fed4d5d82dd": "Username changed successfully. Current username: {0}", + "tb40c5b98384b3f11": "Enter a new username", + "t6a65e07235585643": "This profile does not support changing the cape!", + "tafa058778f0044cf": "Change cape", + "tdb995b31656dddc5": "Change skin", + "t08d00806241183c5": "Edit password", + "ta6032fe19b5f8e3d": "Edit profile", + "td84c0d9e1f6a5630": "Edit username", + "t23022216697074ff": "This profile does not support changing the password!", + "t96fa37f15534dfcd": "Refresh", + "t772d00472094988f": "Save skin", + "tad222fff9f1986a6": "This profile does not support changing the skin!", + "t9320324148d73c83": "Skins and capes", + "tbf6831310af54af6": "Switch accounts", + "te2f1f4a640f734e1": "Download", + "t7ab2a77d57a655e0": "Launch", + "tf020e4630a54d322": "Loading", + "te92039beeed1d2de": "The current instance is being installed and cannot be launched!", + "t97e1807083f12386": "The current instance is being installed and cannot be configured!", + "t2bdb1de3d57c95dc": "Loading, please wait", + "t200375f1052cb52b": "No instance available", + "tcb5c4d21c9d75f2f": "Properties", + "ta562ab75537b5aab": "Getting version list...", + "td4685d3827a646d5": "Failed to download homepage. ({0})", + "t35dd74b6a44c0cc8": "Failed to read external file. ({0})", + "t6a59fd2ea5a009c9": "The homepage content is malformed. Please check the following error information:\n{0}", + "tb8784c8dd5636ff2": "Retry", + "td07b31c6e2724888": "Failed to load homepage", + "tdc479af7c40f1e57": "Loading homepage...", + "ta748cc074f78de00": "View details", + "t07405d613ec91a17": "The Echo Cave preset has been removed as it only had a shell. Please go to Settings and select another homepage preset.", + "t50d371c77a35db85": "The PCL CE announcements preset has been removed and no longer loads a homepage from the original project. Please go to Settings and select another homepage preset.", + "ta6397f884141229f": "The homepage is loading too slowly ({0} seconds). Please report this issue to the homepage author, or temporarily stop using this homepage.", + "t1f6e2c0ee3e44bf7": "Download homepage", + "tef5be5afe0c37e0c": "Change cape", + "t9f72582f4a459081": "Skin changed successfully!", + "tf1344989f6c36880": "Failed to get Authlib-Injector skin. ({0})", + "t6d0a0bc67cefb5f2": "Failed to get the Authlib-Injector skin. Too many requests were made. Please try again in 5 minutes.", + "tcf46ba5403f4305d": "Failed to get Microsoft skin. ({0})", + "t18054bb7ac0b9424": "Skin fetch has been rate-limited. Please try again in 5 minutes. ({0})", + "t6043a198efd191c1": "Obtaining the skin, please wait!", + "t07b14e88a7449ed5": "Skin file error", + "td9fa62b892e0a222": "Skin file (*.png;*.jpg;*.webp)|*.png;*.jpg;*.webp", + "tb3de450bdef8be23": "Select skin file", + "td4096ad3fa87cc72": "The skin file must be smaller than 24 KiB. The selected file is {0} KiB.", + "t15d76acc730894df": "The skin image should be 64x32 pixels or 64x64 pixels!", + "t245fe2c513e95109": "Failed to load avatar: {0}", + "t5943b5f5bb67cd73": "Skin file is corrupted: {0}", + "t34b593812b243e6c": "Alex model", + "t9a2a16545c9f7596": "Is this skin the Steve model (wide arms) or the Alex model (slim arms)?", + "te3e976d4a94f3119": "Skin model", + "t6726da71ef0a71d7": "Steve model", + "ta4c7f3beb9fee759": "Please confirm the skin model on the skin download page before using this skin!", + "t7924d4186a6410f3": "Still obtaining the skin, please try again later!", + "tbaf5db0ad0fc2ffc": "Failed to refresh skin cache.", + "tddd5fefce750d0d5": "The avatar has been refreshed!", + "t3bb3573d7bce93a1": "Updating avatar...", + "tf5b8f1c77f79766f": "Failed to save the skin file.", + "t1337f005b67c60d4": "Skin image file (*.png)|*.png", + "t888af92f234bbf9b": "Select a location to save the skin file.", + "t63b42ac69be9dc16": "Skin saved successfully!", + "t4b806a69aa469d42": "Failed to change the cape.", + "t8cfac8620b8b71cc": "Failed to change the cape: {0}", + "td4b716cf55c8c43b": "Cape changed successfully!", + "t4174fa1ba1e4dd2c": "Changing cape, please wait!", + "t01292be04704765d": "Failed to get player cape list.", + "t4cefd87fe5fd94be": "Getting the list of capes, please wait...", + "t0c46444fedd38803": "Failed to log in, and the cape cannot be changed!", + "t343395b54b51c4f2": "None", + "t8ea4dd1ce7d48f1f": "Choose a cape", + "t65973f1492db2d8f": "Aurora", + "tbc2f2a591218f46d": "Builder", + "t802de1c2cfa3d074": "Cherry Blossom", + "t1ddd7612cdf12cc2": "Cobalt", + "t651c078884443a67": "Common", + "t248549d2c853f412": "Copper", + "t8740817490051fd4": "Crafter", + "t6da94e3758d02496": "15th Anniversary", + "tce38d8c38623ed8a": "Follower's", + "t172d25e80b785f38": "Founders", + "tcd94f37c1f87f57d": "Hero", + "t6015b3bf5e6a612a": "Home", + "t323bb4188bf32a1a": "Realms MapMaker", + "t14b18e03dc9baa58": "MCC 15th Year", + "tbe6a616c538152ce": "Menace", + "tf8a745f9359fea5e": "Migrator", + "tb007f8ec09ceb88e": "MINECON 2011", + "t236c63cb22af52ca": "MINECON 2012", + "t221b1ef6255641c3": "MINECON 2013", + "t2e94ef4260ac4459": "MINECON 2015", + "tbdc679f81a1476e8": "MINECON 2016", + "t3b492dbb3e9ef5cc": "Minecraft Experience", + "t84d55b41e7b59112": "Mojira Moderator", + "t49119945877e52d4": "Mojang Office", + "t5eecfa4eae6cf658": "Moonlight Trail", + "t048fa8105f1c1dd7": "Pan", + "ta53349f8da1d9ceb": "Purple Heart", + "td65b0ddda59f4497": "Translator", + "t1ced2c262fdf42f0": "Chinese Translator", + "tf7721e5008601a69": "Twisted", + "t4de45a1ea1abe56e": "Vanilla", + "td3d9d1beb54e183e": "Yearn", + "tad5cccdf0a7c08f7": "Zombie Horse", + "t4cc3fa20673cc47d": "Changing skin, please wait!", + "t4b7622c76c05d02b": "Failed to refresh the Microsoft skin after changing it.", + "tcc0253d986a9e159": "Failed to change skin.\n\nDetails:\n{0}", + "taf13751ca1ae43c3": "Failed to log in, so the skin cannot be changed.", + "t77b40bc0e7203b74": "Signing in. The skin change will continue after sign-in completes...", + "tb84eacc7c8c3e440": "Changing skin...", + "t1554171e7d162fc4": "Failed to change skin because the connection to Mojang's skin server timed out. Please check your network connection.\n\nDetails:\n{0}", + "t05b1bda811601df2": "Click to change (right-click for more options)", + "tf28461bb49c85647": "Completed", + "te590e84f23a587dc": "Current step", + "t11d78f4ed3136371": "Download libraries", + "t56f0864c0868a2e7": "Speed", + "t895e7a9a2fefc660": "Progress", + "t52373e4342173705": "Login method", + "t6d58efacd35a835c": "Exporting launch script", + "t9f65d7ecf9589a20": "Game launched", + "t66c5e34568722ea8": "Launching...", + "t39b4d254b443f8be": "Trivia", + "t43b9c4c478bee2d1": "This is a test trivia text that should be long enough to span two lines.", + "t8a94c4a1cdbd821e": "Local", + "t195ad4475713519f": "P2P", + "t715ce81251a45319": "Relay", + "t1c67a7983b893cc3": "Failed to get AccessToken and RefreshToken: response is empty", + "tf4fc7f89fcbaa38f": "Failed to get AccessToken and RefreshToken: unable to parse response", + "t62e03af1c62b9d88": "Failed to get Natayark user information: response is empty", + "te60f2df061020360": "Failed to get Natayark user information: unable to parse response", + "t2c99de8357e3c349": "Good", + "t8e74c6d9caf4783f": "The current network environment should not affect connection experience.\nThis environment is suitable as the lobby host.", + "t91e25f4ddc6f6cd8": "Normal", + "t67e9f958a471f60f": "The current network environment may affect your connection experience.", + "t895dcef3f1bda199": "Poor", + "t88dc1bd4509b2644": "Some router and firewall settings may affect your connection experience.", + "t3def5fd29978a052": "Failed to create lobby. Please check logs or report to the developer.", + "t61e4b216cf0f2727": "An error occurred while creating the room. Please check the logs and report this to the developer!", + "te0fbbf57104b6aba": "Lobby service initialization failed. Please check your network.", + "t8040959ea00f0af3": "Invalid lobby code format. Please check and try again!", + "ta2b283fbabf514ba": "Failed to join lobby. It may not exist or may have been disbanded.", + "tb044ce04bb093e0f": "Please log in to Natayark ID first!", + "td939cafbb3895a53": "PCL CE Lobby{0}", + "t228e5a443383de80": "Unsupported lobby type: {0}", + "ta186e752d6130366": "{0} / {1} ({2})", + "t6aca6fd59b821b21": "Your Natayark Network account status is abnormal and may be banned!", + "t69e1fa79b502c053": "Multiplayer components downloaded!", + "t80ef76c616854596": "Failed to download EasyTier dependencies. Please check your network.", + "teb6444363087132e": "Downloading multiplayer dependencies. Please wait...", + "t02fa63991eb87276": "Downloading EasyTier. Please wait...", + "t7bff432a11f9e911": "EasyTier has not finished downloading. Please wait and try again!", + "t4f1c57515b3e6001": "Minecraft player ID cannot contain separators (|)!", + "t59815c8201bc6e49": "Lobby is currently unavailable. Please try again later.", + "t3412261e29107fd4": "Please go to multiplayer settings and log in to Natayark Network first!", + "t9041c3ffcfae95dc": "Failed to fetch Natayark ID information", + "t728dd244bc22f2f9": "Please log in to your Natayark Network account again and try again!", + "t5999316ef723721a": "Please complete real-name verification at the Natayark Account Center first!", + "t7123fb6bc936dc5e": "Clean caches and redundant components", + "t01341f490a387604": "Download EasyTier", + "tb32af2a5114f57c5": "Extract files", + "te8cf95714422bdc4": "Fetch lobby announcement", + "td5117ad4d0564f31": "Initialize lobby", + "t2d719a5b587c6abd": "Initialize lobby UI", + "tf5b07efd2d5c87a7": "Refresh UI", + "tb71b21582321bc5f": "Set a lobby name or select a game account.", + "t5dc4ee83965480f2": "Moderate (full cone)", + "tc14c915da5fbec64": "Open", + "tdde4255b079bbdd7": "Moderate (port restricted)", + "t36dba1e2a0e29517": "Moderate (restricted)", + "t47344176e0802f10": "Strict (symmetric)", + "t3770a023a6779840": "Strict (loose symmetric)", + "t2f95d7e8cb1970b8": "Strict (symmetric firewall)", + "t095de638a586e2cf": "Strict (UDP blocked)", + "t1ef3de06b32e521b": "Clear", + "t8ef3f16ae2c3621a": "Dump", + "t64815e7955a3eaa4": "Game {0} closed.", + "tc83695c236312546": "Kill", + "t34dedaffd3cc55f0": "Scroll", + "te484b7d274357fd5": "Go to Instance settings → Overview → Test game to display live game logs.", + "ted3a96589a9af7d7": "No live logs", + "t4efd367d15d81f2d": "A log page operation failed. See the details below.", + "td33b07075d58f565": "Game log - {0}.log", + "t7f63072f6d7e4ad3": "Game log (*.log)|*.log", + "ta78e3d3144d8f7ee": "Log exported!", + "t3c56411b4624424a": "Game stack dump - {0}.log", + "tae8b132d4e19abd4": "Game stack dump (*.log)|*.log", + "tbb008295942ade38": "Exporting stack dump. Please wait (may take 15 seconds to 1 minute).", + "t836501c01eed36a5": "Stack dump exported!", + "t17e077fb4cbb50db": "Test instances", + "t1a03bd2fd107c453": "Debug", + "t54a0e8c17ebb21a1": "Error", + "td04f4ecc104de17c": "Fatal", + "t170322a32f3c35b2": "Info", + "t8448814dc5caff5c": "Warn", + "t5900d3a13b6e1fe5": "Logs are limited to {0} lines by default. Adjust this in the max log lines settings.", + "teda53a9cf5c1aeb1": "Max lines", + "t2686da4f857240ae": "Maximum number of lines displayed. Older logs are automatically removed when this limit is exceeded.", + "te79fa23e8d1b5faf": "Live logs", + "t5eefa4f9c2007800": "Muda!", + "t0d37b78184658e5b": "[Debug mode] PCL CE is running in debug mode, which may cause performance degradation. Please do NOT enable it unless necessary!", + "tc88a37e3bf6afbeb": "A launcher interface operation failed. See the details below.", + "t8fd62066ce3444aa": "Could not return to the top of the page.", + "t4a820fbf7f49b218": "Before using PCL CE, please review and agree to the Terms of Service and Disclaimer.", + "ta7de63b1bff903d7": "ToS & Disclaimer authorization", + "t591f3b5c1257fedd": "ToS & Disclaimer", + "tf7cefd256922f5fe": "The Conduit Club launcher still has a download task in progress. Are you sure you want to quit?", + "t071b374af1b861ac": "Back to top", + "t78148e389096d89e": "Launch log", + "t08f61250ec4d1f70": "Surrender", + "t1dfe375c285de9f0": "Close Minecraft", + "te3401b9b20685564": "Task manager", + "tcf0e3e9917f7af9d": "Restart PCL CE to apply software updates", + "t724cf6893978a9f9": "Restart PCL CE to apply software updates ({0} → {1})", + "t8b5ff083a35cc30a": "The feature hiding setting has been temporarily disabled!", + "t4ba8981c4947a770": "The feature hiding setting has been re-enabled!", + "td79d205e87282045": "Minecraft instance closed!", + "t16dd0a29f4ddf6df": "The current PCL CE build is an automated CI build.\nThis build includes the latest bug fixes, optimizations, and new features, but its performance and stability are lower. It is not suitable for daily use or creating modpacks.\n\nUnless a community developer asks you to use it, or you specifically want to do so, please use the latest stable version instead.", + "t9fcec75643ee50b5": "The current PCL CE build is a Debug build.\nThis build is only intended for developer debugging and may have serious performance issues or various unexpected network problems.\n\nProblems caused by non-developer users running this build are not supported by the community, and related issues may be closed directly.\nUnless you are a developer, please delete this build immediately and use the latest stable version instead.", + "t985d9bb520eae88e": "You can add the PCL_DISABLE_DEBUG_HINT environment variable with any value to hide this prompt.", + "tda74cc446c8cd2ca": "I know what I am doing", + "t19c423dae1947251": "Open latest download page and exit", + "t7f011c355ebdab05": "Special build notice", + "t56410fc65314dfb5": "Launch", + "t5ca6730d44152201": "Tools", + "tde71c2dc0b3fe99e": "Properties - {0}", + "t352d37af3aec3745": "Resource download - {0}", + "ta10e9ab6f4ff12b8": "Save management - {0}", + "t36919af03e986fa3": "Welcome!", + "t83c67e2888bad2b4": "Full changelog", + "t7a3c4764d30ec426": "PCL CE has been updated to {0} {1}", + "t81b589b65559418b": "Homepage preset setting has been reset", + "t100bcaba3c2faa4c": "The homepage preset setting has been reset due to the launcher update.\nPlease go to Settings - Personalization and select the preset again.", + "t5842d5dedfcf6c37": "The Authlib authentication server does not match the URL format ({0})!", + "te4865c9996cf3b7c": "Do you want to create a new third-party authentication profile?\nAuthentication server address: {0}", + "t61946d3c915f1cc7": "Create new third-party authentication profile", + "td3e363c01d5c8484": "Please extract the file before dragging it in!", + "t6b61f012729a7a2f": "The file dragged in does not exist: {0}", + "tb73740e9a951f505": "Please drag in a file instead of a folder!", + "tb360b8237df6972e": "A homepage file already exists. Do you want to override it?", + "t15eef8589dbe45ce": "Custom homepage file loaded!", + "ta8bb9a7a12efd6da": "Imported {0}", + "t992ba00cb3767f87": "Override confirmation", + "t859cbeeb8db131a4": "A file with the same name already exists: {0}", + "t0c3020d669335449": "Please drag in only files of the same type at a time.", + "t681c037da647fbb4": "Failed to import save", + "t1ca8ad5847239b50": "The imported save is missing level.dat!", + "t044d5211fa29a9ca": "The archive does not contain an importable Minecraft save!", + "t57370495af445498": "PCL CE cannot determine which file drag operation to perform...", + "ted8286ab72394409": "A component operation failed. See the details below.", + "t0faddb0a6d3be573": "A Minecraft folder operation failed. See the details below.", + "tf4e58fd3c817a653": "Invalid skin type: {0}", + "t500fd190d4511cd2": "User has not set a custom skin", + "te8b582a46acfcc61": "Skin response contains no skin data, possibly a user without custom skin", + "t8604ca71489d8691": "Offline UUID has no official skin.", + "t36f99289673965ec": "No matching property found in skin response", + "t5c017163e4c31e1f": "Skin return value is empty, possibly a user without custom skin", + "tfe4f6cee87cd7984": "UUID is empty.", + "t819a1979606bb1df": "New version: {0}", + "tf7217af256bf18dc": "Minecraft update", + "tccc10870c6e4441c": "Update time: ", + "t2f0ed2b43758d74f": "Updated: ", + "t24308e2f6efcb539": "Vanilla", + "t311884750ff0ab4c": "New Forge", + "t7a94b3e6c7f62c38": "If prompted \"You need to agree to the EULA\", edit eula.txt to agree!", + "t355ec8cf79840c5c": "If the server stops immediately, right-click edit this script and replace %JAVA_HOME% with !JAVA_HOME!", + "tc230fe7459f1e9f6": "You can select this version as a suitable Java and enable it in PCL CE under [Settings → Launch options → Java path inside launcher]!", + "t36694b2cee9dfe71": "Server stopped.", + "taad8d56288d3951f": "{0} vanilla server", + "ta58f5a5b7bb98ab1": "Failed to add client version", + "td495a225b4d7b49f": "Failed to analyze asset index URL", + "t6effc2cd919c0916": "BMCLAPI missing target version {0}", + "t985c2233443f8475": "Fabric meta download failed: {0}", + "t6a414f3061ad95a0": "Failed to install Forge in old-style mode", + "t494eeedb45023c10": "Result too short ({0})", + "t5831f634ad3bf5aa": "Too few recommended versions ({0})", + "t854a98d5cb5658f9": "Installation canceled.", + "t3130c81240df11c4": "The installer failed, and the last line is {0}", + "t01568a626a5fe73e": "Instance {0} already exists. Download it again?{1}This will overwrite the instance JSON and JAR files, but will not affect version-isolated files.", + "t97497ce8f100afa7": "Instance already exists", + "t020f60058af369a7": "This instance is already downloading!", + "t584388f17c0aabbc": "Java was not found, installation canceled.", + "tb34a449dc0d1ddcc": "Java 8 or higher", + "t5bb42cc340fccaed": "{0} JSON is invalid. Path: {1}; beginning content: {2}", + "t2e51682b54f9b7f4": "Failed to install new LiteLoader instance", + "tc66dc936aa69f1b6": "Unable to find details for {0} {1}-{2}!", + "t613e096cdc22a904": "Failed to install new {0} instance", + "td15eac46bcb58942": "{0} installer failed. Log ending: {1}", + "t3452b5fb3ace3eb8": "Failed to run {0} installer", + "t9a48aaca900edabd": "Failed to get {0} library list", + "t6cdd512a828b8522": "No JAR download info in base version {0}", + "t685866b2d2c32e8e": "No corresponding JSON download URL", + "t6dabaaeda6caaf29": "Mojang has not provided an official server download for Minecraft {0}, so it cannot be downloaded.", + "t90c81375158018ac": "The MC installation folder cannot be specified unless a Vanilla downloader is specified", + "t6b2048323d54080d": "A Minecraft download operation failed. See the details below.", + "tf01ed48211021a47": "Version and Forge compatibility data mismatch", + "ta868b8ba4374a7e0": "Failed to install OptiFine (method A)", + "t0c247555439b410b": "Failed to install OptiFine (method B)", + "tddec810d42434272": "Failed to run OptiFine installer", + "t9ed4bec5d844b7d9": "Version and release time data mismatch", + "t42f2ede3e4caed5e": "This server is already downloading!", + "tf78ca93e9925476a": "Download source connection timed out", + "t758af873093b85cd": "Unknown Minecraft version ({0})", + "t4db04d86761297ef": "Failed to parse {0} version list ({1})", + "t46a14880462e9f6a": "Do not use", + "t0a592a0d47f8f538": "The modpack appears to include its own launcher. Switch to using it to continue?\r\nWill open: {0}", + "tef4d1058b662bb6a": "Switch to modpack launcher?", + "t4523e519fa0dec3e": "Use bundled", + "tb41ece010e846aa0": "PCL CE cannot handle encrypted archives. Please extract and re-archive them in an unencrypted .zip format and try again.", + "t5efa5c86c96658f5": "A modpack operation failed. See the details below.", + "t763ae4f9be9771e0": "Modpack files(*.rar;*.zip;*.mrpack)|*.rar;*.zip;*.mrpack", + "t40429f1d1d245350": "Select modpack archive", + "t1dd2ddd8327674fc": "This modpack is currently being installed!", + "t06274b1078865466": "Game path cannot contain exclamation marks (!) or semicolons (;): {0}", + "t75e49b338b4afacb": "This modpack does not provide game version information and cannot be installed!", + "t2bd6193ea5041b87": "This HMCL modpack does not provide game version information and cannot be installed!", + "t30f1593165b78159": "This MCBBS modpack does not provide game version addon information and cannot be installed!", + "t9d5397c8fcc8f94c": "A mod is missing required information and has been skipped: {0}", + "t0789b76931620e89": "Failed to open modpack file", + "tccfaf5211cf7df04": "Do you want to download the optional file {0} from the modpack?", + "tfc50a99caae0cddc": "Skip", + "tea0adda7f17cd7b7": "Download optional file", + "tab1e935488bf06d0": "A file path in the modpack exceeds the instance folder. Please report this issue to the modpack author!\nIncorrect file: {0}", + "t464d48eb3e6be367": "File path validation failed", + "t4fa48085ffc3e6ae": "Cannot install this modpack: Quilt is no longer supported by this launcher.", + "t6a0e5dfa4702e9d8": "PCL CE cannot handle .rar archive files. Please extract and re-archive them in .zip format and try again!", + "tac8de86b10ce404f": "Next, select an empty folder. The modpack will be installed there.", + "td8f2eda3c923d0be": "Select installation target (must be an empty folder)", + "t2cf8efc75fddf84c": "Some mod versions in the modpack have been deleted by the mod authors, so installation cannot continue. Please report this issue to the modpack author.", + "t3cec39ab83cd0873": "Please select an empty folder as the installation target!", + "tc3ba6a23d906b986": "Install CurseForge modpack: {0}", + "tdc97c107701abc69": "Install HMCL modpack: {0}", + "t592eb3790ed70716": "Install MCBBS modpack: {0}", + "t66ecc5652d3db44f": "Install MultiMC modpack: {0}", + "t38050ed75a8a4153": "Install Modrinth modpack: {0}", + "t0582e4f542603a00": "This modpack version is too old and no longer supported!", + "ta1d92fe4579761f1": "No suitable file structure was found. This may not be a Minecraft archive.", + "t73052db1aa523fe6": "Cannot install modpack, unknown mod loader {0} (version {1})!", + "te1d74bb07585f823": "Failed to open the modpack file. The file may be corrupted or in an unsupported archive format.", + "t2d6699257c4bee24": "Construct mods download information", + "tf850a03846268d9b": "Download additions", + "taeae1c38a63a9054": "Download mods", + "td0619cf1951a25f1": "Download mods (main loader)", + "t9d8088aadb676156": "Extract archive", + "teaa3c77b95314ea3": "Extract modpack files", + "t54628284eecf8765": "Final files organization", + "t49a5e123e9a9ae0b": "Game installation", + "tfcaa1a8a79c8afb1": "Modpack installation", + "t7dc09a852c2b0930": "Prepare mods download information", + "t8a87034e7a8f7d1d": "Add ignore flag", + "t5dbfce794cd27c76": "Analyze assets index URL", + "t5e64f8c7cd17f376": "Analyze assets index URL (background)", + "t850bd4645a0d2f63": "Analyze assets index URL (side loader)", + "te448212e6c381de6": "Analyze core JAR URL", + "t6648b90b63005612": "Analyze Fabric libraries", + "tfe2585b70e185d13": "Analyze game libraries (side loader)", + "td4c58f822a3aef82": "Analyze LabyMod libraries", + "t639f71eb7b54210c": "Analyze Legacy Fabric libraries", + "t8c86a23a263cd0b6": "Analyze LiteLoader libraries", + "tc8a5cf161a12c9fb": "Analyze {0} libraries", + "t07da133bbb650807": "Analyze missing assets", + "tddc4256b50c3f927": "Analyze missing libraries", + "t235eb110efe7a01c": "Analyze OptiFine libraries", + "t10d916f991e5c7d8": "Analyze required assets (side loader)", + "t36152f5016c75c73": "Analyze Vanilla and LabyMod libraries (side loader)", + "tc18d0670decbac13": "Analyze Vanilla libraries (side loader)", + "t43d830d701dd7e63": "Build server", + "tdb2989b3d2b56659": "Copy assets index (background)", + "t742cf1db4c0648a3": "Delete ignore flag", + "t322d0347e5da0fad": "Download assets", + "t6e52a38d98a1e081": "Download assets (main loader)", + "t351e38925dcc0390": "Download assets (side loader)", + "t7b808081572fb7c3": "Download assets index", + "t4224da49aa04e71c": "Download assets index (background)", + "t3e7a1bebf4cda08a": "Download assets index (side loader)", + "t7ef995497cdacf64": "Download core JAR", + "t07003c11e5fe4aae": "Download Fabric API", + "t84536b59b375886f": "Download game libraries", + "t7824c78e48f6e9ec": "Download game libraries (side loader)", + "te43997ba30c73f65": "Download instance JSON", + "t87f1dd50f2efde7a": "Download LabyMod client JSON", + "t850b58c5b9aabb7f": "Download Legacy Fabric API", + "t7db47cc8d9375b4a": "Download libraries", + "ta86a2bd62f08fc79": "Download libraries (main loader)", + "t704abaa1a2d7b6e2": "Download LiteLoader libraries", + "ta3437c05b03ae1af": "Download {0} libraries", + "t063c097b9651ab37": "Download {0} libraries (side loader)", + "t548dab1c4fd069d7": "Download {0} main file", + "t87c38288cd3f93d7": "Download main file", + "t27f466ba7bc211f7": "Download OptiFabric", + "t9e76b8d5b1154aa9": "Download OptiFine libraries", + "t725b88899ac8bd00": "Download OptiFine main file", + "tcc0687f3ce770246": "Download server file", + "tab80b1698d47695c": "Download Vanilla and LabyMod libraries (side loader)", + "tfca622f8a97f1a3c": "Download Vanilla assets", + "t963f930eaff1ccb9": "Download Vanilla libraries (side loader)", + "tc682d7d687c34a50": "Fabric {0} installer download", + "t5df370bbbc1eb180": "{0} download", + "tff923df470791e76": "{0} installer (*.{1})|*.{1}", + "te4921f72d87066b2": "Obtain {0} libraries", + "ta37bbd85da9c6917": "Install Forge (method A)", + "t9bf2d5ab9bc1ae80": "Install Forge (method B)", + "t98004dd0f372d9e3": "Install {0}", + "t5ed0ae446521bd0e": "Install game", + "t0bdf648848a51e7f": "Install LiteLoader", + "t36feda467bf527ff": "Install OptiFine (method A)", + "tfa9abade65008622": "Install OptiFine (method B)", + "td0e906de38a3bd2a": "LabyMod installer download", + "tee2e7e2c855329b8": "Legacy Fabric {0} installer download", + "ta53a40e20a35c07c": "LiteLoader {0} download", + "t3b859c8ac4d2ac96": "LiteLoader {0} installer download", + "t5d9e93846266cad7": "{0} {1} download", + "t4ef0b9ee70adc294": "Download {0} {1}", + "t3129676f4afe03e3": "Minecraft {0} download", + "t549ddb7fc7ed4c7c": "Minecraft {0} server download", + "tec0d598694a0ddc1": "Obtain Fabric main file URI", + "td0acf72161974466": "Obtain LabyMod client file URI", + "t090360d6da9ae7e3": "Obtain Legacy Fabric main file URI", + "t793ad8b8f3898167": "Obtain {0} details", + "t1c804515417ec737": "Obtain OptiFine URI", + "tbc48fe8c80a89e80": "Obtain OptiFine URI", + "t6c33674b42ecf17a": "Obtain Vanilla JSON URL", + "t61735d2fa2bde160": "OptiFine {0} download", + "t0eca281f2d7e8bbd": "Prepare to download {0}", + "t5040d53068b79a12": "Start LiteLoader dependency download", + "te9fc22a5a7e0d478": "Update assets index (background)", + "tb550edc45a307948": "Download Vanilla JSON", + "t6dae3e0074e3a171": "Download Vanilla libraries", + "t672309d2a4937b90": "Wait for Vanilla download", + "t66172d19b9166569": "Asset index not found", + "tae119ab9ab5df41b": "Cannot read instance folder, possibly due to permissions ({0})", + "td016464593adf365": "Version dependency recursion: {0}", + "tcf0fd86bc86e1456": "Failed to initialize instance JSON ({0})", + "t50e16427b0eb1625": "Instance JSON file not found: {0}", + "te9e87d37f1ab8f71": "This instance has no asset index information", + "te7287c7295ac4ef2": "Quilt does not support Minecraft {0}", + "t4b3aef9a87672c73": "Unrecognizable: {0}", + "t90c6a5f758bf161c": "Failed to send Minecraft update notification. ({0})", + "t363b83b42420228e": "Cannot get version number, result is empty", + "t24959e2bd7674d13": "Failed to fetch version number: {0}", + "t371e8c7c2b832d2b": "(Blue version)", + "t72f885f7783b65df": "(Purple version)", + "t73b49cbcf04c0c66": "(Red version)", + "t88957145d46b6ce7": "2013 | This update, planned in secret for two years, takes the game to new heights!", + "t28119dbbd3a79ff9": "2015 | As an all-ages game, we need peace, love, and hugs.", + "te43a4e6fa8722156": "2016 | It's time to bring modern technology to Minecraft!", + "tca7f25ab9366b74a": "2019 | We found this masterpiece from 1994 in the basement ruins!", + "t26b1c5a928eab75e": "2020 | We added 20 billion new dimensions, turning infinite imagination into reality!", + "t8f6fc5e5c9c8e13e": "2022 | One block at a time! Embrace new mining, crafting and riding gameplay!", + "t149526ae9afed496": "2023 | Research shows: players love making choices—the more the better!", + "taa4f08f65a97c993": "2024 | Poisonous potatoes have always been overlooked and underestimated, so we supercharged them!", + "tc2a0db61ced98643": "2025 | You can craft anything—including crafting your world!", + "t2dc4464c65ece2c8": "2026 | Who needs an inventory? Let the blocks follow you!", + "t9224d15218e7e49d": "Demo", + "tc4900615729aa2f1": "You must log in with a Microsoft account to launch the game!", + "t654320ad6ae70500": "Purchase", + "t6bf68aafc7cee197": "Launch canceled!", + "t76dffb2c4f2cc2ad": "The game will launch in demo mode!", + "td13a6b69ab3c4896": "Pardon my rejection", + "t0cb5b33a8328c700": "PCL CE has launched the game {0} times for you!\nIf PCL CE has been useful, maybe consider supporting the original PCL author...\nWithout everyone's support, it's hard for PCL to maintain updates for years while staying free and ad-free!", + "t3b27be4b91b7a351": "Support!", + "tecc8c755ac14647f": "{0} launches!", + "t657d020bdfdb7cfb": "Exporting launch script canceled!", + "tbeccf74cd10d3b8b": "Launch script exported successfully!", + "tb940a325d459b0a6": "Nah, maybe next time", + "t7e310e5ccdbcf626": "It looks like you haven't purchased the game...\nIf you think Minecraft is good, consider purchasing it to support the developers... Don't keep freeloading.\n\nThis prompt will no longer appear after you verify a valid Microsoft account!", + "tc9a07ce1b389631a": "Purchase!", + "tfc1342634a5a9877": "Purchase the game?", + "tc0368e509028f754": "{0} launched successfully!", + "t8339d02397914afa": "A game is already launching!", + "tdade3f9269d73a36": "Failed to cancel launch and terminate process", + "ta69385b0e77f69a0": "Unable to connect to third-party login server. ({0})", + "tcb817b9f6df0e3b0": "Unable to connect to third-party login server ({0}).\nDetails:", + "t8a4a93ef0be24ff4": "Cannot launch Minecraft: {0}", + "tce4b563b1e0fcd5a": "Failed to execute custom command", + "t6441debc90d92366": "The launcher interface is unavailable and cannot run this action.", + "t7c8e880862b48d05": "Failed to export the launch script. See the details below.", + "t6bb2d9a05c810a24": "Failed to set GPU preference, Minecraft may run on the default GPU", + "t4b826c6045501691": "Invalid state change: {0}", + "t625a743c8589309e": "Minecraft failed to launch. See the details below.", + "t8942af803997eeab": "Missing \"mainClass\" in version JSON!", + "t81015a190ce3068c": "Unable to open the Natives file ({0}), the file may be corrupted. Please try relaunching the game.", + "t98f383f475ad949e": "No Java available, launch canceled!", + "t95d7954997299ddd": "A Minecraft launch operation failed. See the details below.", + "t3b659248e42d4da7": "OptiFine may be incompatible with auto-join server, potentially causing missing textures or even game crashes!", + "t0e4e9bcc040dc17d": "Failed to set process priority", + "t1dc242a1da26ac90": "Failed to add proxy info, giving up", + "t8e7403cdad3aa82a": "Failed to refresh launch info", + "t4bb9bfdb9b969aa9": "Launch failed.\n\nError message:\n{0}", + "tc2e72b3e9539a366": "Failed to update options.txt. See the details below.", + "t50b1ec6881faa77a": "Failed to update launcher_profiles.json. See the details below.", + "t653d045d630d7b42": "Minecraft runtime monitoring failed. See the details below.", + "t919ef5f1b2ebb6c7": "Download automatically", + "t545dce6cf2cac721": "PCL CE could not find {0}. Would you like PCL CE to download it automatically?\nIf you have already installed {0}, you can import it manually under Settings → Launch options → Game Java.", + "t78bc4ff164e489bb": "Download Java automatically?", + "tb338957ee88d38c9": "Failed to check Java compatibility. See the details below.", + "te1c70601e0990be0": "The globally selected Java ({0}) is outside the required range [{1}, {2}] and may cause the game to crash.", + "t17f154d9933908cf": "The Java selected for this instance ({0}) is outside the required range [{1}, {2}] and may cause the game to crash.", + "ta74df9d076ad2976": "No maximum", + "tfa41d59eba2ae220": "No minimum", + "t4c78368cfe226393": "The Java selected through this instance's relative path ({0}) is outside the required range [{1}, {2}] and may cause the game to crash.", + "t971eaaf22dec2777": "Please search and install it manually.", + "tf9c9f3ef57e0c00f": "You need to install Java 7 to launch this version.\nPlease search and install Java 7 manually, then re-search or import it under \"Settings → Launch options → Game Java\".", + "t51e9ccc1e5938f58": "You need to install Java 8u141 or later to launch this version.\nPlease search and install it manually, then re-search or import it under \"Settings → Launch options → Game Java\".", + "tb408d038e5ea7069": "You need to install Java 8u141 ~ 8u320 to launch this version.\nPlease search and install it manually, then re-search or import it under \"Settings → Launch options → Game Java\".", + "t60471a2227f24ece": "You need to install the LegacyJavaFixer mod, or install Java 7 to launch this version.\nPlease search and install Java 7 manually, then re-search or import it under \"Settings → Launch options → Game Java\".", + "te0fa1a233ccfdbbc": "PCL CE could not find {0}.\nPlease install {0} manually, then re-search or import it under Settings → Launch options → Game Java.", + "te6880909fae0cd7b": "Java not found", + "taa970e9b5f66cb27": "Download Java", + "t9a0dca76eb146055": "Download Java files", + "td1f0861e03fb7047": "Get Java download information", + "t38bb76bf057eddb6": "Failed to get login input information.", + "te4343921c928a856": "Login failed", + "t0ce677709002afed": "Login hint", + "t8e18b410a825cf5e": "During login, please select {0}Other Sign-in Methods{1}, then select {0}Use My Password{1}.\nIf this option is not available, please select {0}Set Password{1}, then log in after setting it up.", + "t957244cdb9f232ab": "Log in again", + "t0139e54b9887614d": "Set password", + "tb1284444083463ae": "Password required", + "tb4a719df37fc0c1a": "The launcher encountered a network error while trying to refresh account information.\nYou can cancel, check your network, and try again, or ignore the error and continue launching, but some servers may not be playable.", + "t84c469072cb76e46": "Failed to refresh account information", + "tc4fb62202bad55cf": "Register", + "td0885b1c8accb8c4": "Third-party login failed", + "t505ed533316954c0": "Selected profile {0} is invalid!", + "ta47d7c3db5a3ecd7": "Login failed: {0}", + "t629db69d51c674ac": "Third-party login failed.\n\nDetails:\n{0}", + "tc74669bd4e04beb9": "Third-party login failed. Please check your network connection.", + "t2507cb83ddb93d57": "Third-party login failed. Please check your network connection.\n\nDetails:\n{0}", + "t2fe08f37f9c4fbc9": "$You have not created a profile. Please create one first!", + "t069848b5109f0838": "You have not created a profile, so you cannot switch profiles!", + "t53353b43b4fb6f7c": "There is only one profile in your account, so you cannot switch profiles!", + "t5c048b6749548459": "Login refresh failed", + "tfcd62b9638113ae6": "Login refresh failed.\n\nDetails:\n{0}", + "te16a027b3819593a": "Second login refresh failed", + "t1beddd14a2487400": "Select profile", + "td353cfa947a32c37": "$Login failed: Connection to login server timed out.\nPlease check your network connection!\nDetails:", + "te946fee70b5432b7": "Login failed: Connection to login server timed out.\nPlease check your network connection!", + "t69aebccd3de9e3b5": "Login failed because the connection to the login server timed out.\nPlease check your network connection.\n\nDetails:\n{0}", + "t7810e333174a1be1": "Login validation failed.\n\nDetails:\n{0}", + "t9f71cfd68e8da20d": "Abnormal login attempts from this IP.\nPlease check your network settings or try again later.", + "t0c97e64f4f6524a9": "This account appears to have been banned by Microsoft and cannot log in.", + "t4a391ad0f48f212d": "Please modify the account's date of birth on the opened webpage (change to at least 18 years old).\nWait one minute after the modification is successful, then return to PCL CE and you can log in normally!", + "td5e83cb3e4a881fe": "Create profile", + "t0041600a66874b8a": "Please create a Minecraft player profile first, then log in again.", + "t0cdab0208dd9b1c1": "Unable to get account information. This account may not have purchased Minecraft: Java Edition, or its Xbox Game Pass may have expired.", + "ta84457c800fa97e2": "You have already added this profile...", + "t341cfad6e497fb62": "Purchase Minecraft", + "te7e566064371a953": "Microsoft account login is not available in your country or region.\nPlease check your network settings or try again later.", + "t6c4c9fd31e4cf346": "Too many login attempts. Please wait a few minutes and try again!", + "t90937428a6292a44": "13 or older", + "t8cac58e844809460": "12 or younger", + "tb80931f90bb75f3b": "The account is underage. You need to modify the date of birth before logging in.\nIs the age currently set on this account over 13?", + "t5186de1fc617beb8": "You have not registered an Xbox account. Please register one first and then log in.", + "tf21947a021445476": "The third-party login server used by the current profile does not match the one required by this instance. Please use a matching profile!", + "t2b1bf91e41526b03": "Launch precheck failed: {0}", + "t04b8df72d324a8f9": "Minecraft has a problem: {0}", + "td0d23982cde78a69": "Game path cannot contain ! or ; ({0})", + "t3540d033674d12f2": "No Minecraft instance selected!", + "ta683889781f32c58": "Please select a profile before launching!", + "td63c184fbd0ad0c8": "Back", + "t5fe625f4c5f72ecf": "The path of instance \"{0}\" contains characters that may affect the game (non-ASCII characters). Do you still want to launch?\n\nIf you are unsure, you can choose \"Continue\" first, and try modifying the game path if the game crashes shortly after launch.", + "t7a1a04bbbb8b300a": "Game path check", + "t936dfbe4346a884f": "This instance requires Microsoft login. Please use a Microsoft login profile!", + "t6bbc1a695ac1483e": "This instance requires Microsoft or third-party login. Please use a matching profile!", + "t4962e67427cca4db": "This instance requires third-party login. Please use a third-party login profile!", + "t365e4167bf66733d": "Execute custom command", + "t0e943126188968da": "End processing", + "tbdeb90f6044cfeff": "Get launch arguments", + "t2a717bf9256ca194": "Get Java", + "t5b494f8db501baf6": "Pre-launch processing", + "t6d1e318000cc6226": "Minecraft launch", + "ta48102d0cbf2b964": "Start process", + "t3fc9bbd6665c2c1d": "Wait for appearance", + "t8c565bc877a118f8": "Background music cleared!", + "t648799bd110d01d3": "Playing: {0}", + "t72b333d3f6056e5f": "Background music refreshed: {0}", + "tccdae4e6b292ec87": "Replaying: {0}", + "t20afef0cc1d05914": "Paused: {0}\nLeft-click to resume. Right-click to play the next track.", + "t025d58cc42d4e4ef": "Paused: {0}\nLeft-click to resume. Right-click to replay from the beginning.", + "ta46033f7ccb669f9": "Playing: {0}\nLeft-click to pause. Right-click to play the next track.", + "t029eb2ae0c89245c": "Playing: {0}\nLeft-click to pause. Right-click to replay from the beginning.", + "t1372bd54e91d50e1": "The audio device is being used by another program. Close the program using it, then restart PCL CE to restore music playback.", + "t11dbd29108dac901": "The audio device has changed. Restart PCL CE to restore music playback.", + "tabf74735dc98f54f": "No music is available to play.", + "t1eb91417ae14881f": "No usable background music was found.", + "t51cc48d44d785f39": "Music playback has not started.", + "t0232b0d0cf8235dc": "Failed to initialize or refresh background music. See the details below.", + "ta179991c9763d2fb": "Failed to play {0}.", + "t182978e78d3a250b": "Failed to play {0}: PCL CE does not support files that change audio properties during playback.", + "tad2dffd1ad63b6b9": "Failed to play {0}: PCL CE may not support this format. Convert it to .wav, .mp3, or .flac.", + "t9ff2e447b1cd935a": "An instance selection operation failed. See the details below.", + "t30bf6ea1e6cbb3ea": "Failed to add folder: PCL CE does not have permission to access this folder!", + "t8cb22d45913254c2": "Add an existing folder", + "tf30f31b25c6a7f23": "Add an existing Minecraft folder to the list.", + "t311ff990373611d3": "Add or import", + "td65df22bba6becfe": "The folder {0} has been added!", + "t3be345aa979f5bb6": "This folder already exists on the list!", + "tfe3210897a1d2cb3": "The game folder cannot be added while the download task is in progress!", + "t8d6efbfdb7dbf7bb": "The game folder cannot be created while the download task is in progress!", + "t670ec25af8419f48": "Keep", + "tc9c488906638c1d5": "Do you want to clean up the PCL CE config files in this folder?\nThis includes settings for each instance (such as custom icons, third-party login options, etc.). It has no effect on the instance itself.", + "tf132a7d5cf4e3411": "Profile clean-up", + "t3c7a4fb3566dd193": "Clear", + "t3ccc7a23bf4e7fac": "Non-Minecraft files stored in the folder will also be cleared!\nContinuing will cause all files in this folder to be permanently lost.\nPlease confirm carefully before continuing!\nTarget folder: {0}\n\nThis is the last warning!", + "t7aed7ab2250f6286": "Are you sure you want to clear this folder?\nTarget folder: {0}\n\nAll saves and other files in this folder will be permanently lost and unrecoverable!", + "t2d372a7e15c62804": "Clearing folder {0}...", + "t71d79d31f66addfc": "The folder {0} has been cleared!", + "t2d4a360f030c202a": "Create a new folder", + "t4ee29f956f35a704": "Create a new \".minecraft\" folder at the location of PCL CE.", + "tb8e075b9e6571f9a": "Create a new \".minecraft\" folder successfully!", + "t9112e7066855185e": "Current folder", + "ta3ea3c17b401bd2f": "Delete", + "tc2762d4d2b4a9664": "Non-Minecraft files stored in the folder will also be deleted!\nContinuing the deletion will cause all files in this folder to be permanently lost.\nPlease confirm carefully before continuing!\nTarget folder: {0}\n\nThis is the last warning!", + "tf7bc6a4534c6c560": "Are you sure you want to delete this folder?\nTarget folder: {0}\n\nAll saves and other files in this folder will be permanently lost and unrecoverable!", + "tdfc71c4b86cadf4c": "Deleting folder {0}...", + "taa21dd6bb478244a": "The folder {0} has been deleted!", + "t480f940c4266accf": "Deletion warning", + "t18dd417828ff3dfe": "Import a modpack", + "t53069994090bc005": "Enter the name of the folder that shows on the list on the left column.", + "t00da52a6efc08b10": "Enter a display name", + "taf4152a85daa327f": "Invalid Minecraft folder: {0}", + "t774b31d41110843f": "Invalid Minecraft folder: {0}\n\nDetails:\n{1}", + "t6c1a27b35c2fdfa7": "Invalid Minecraft folder", + "t26b7df503021b3be": "Minecraft folder paths cannot contain exclamation marks (!) or semicolons (;)!", + "taf9996bc4d45ff49": "Folder list", + "te75e8b4e5c971227": "Move down", + "tf853a70b120418be": "Move up", + "t8da3eaeb9d21ee6e": "The folder has been renamed to {0}!", + "tc5706b5efe897788": "Official launcher folder", + "tac86ad117c4ad469": "Remove from list", + "t3d916fa79519f383": "The folder {0} has been removed from the list!", + "t0d0cbac2eee54113": "Rename", + "t4fd5f93b2e189662": "Restore name", + "t7f5c83622e9032e2": "The folder name has been restored!", + "tdd3424eca3f5926e": "The game folder cannot be switched while the download task is in progress!", + "tcb087a540ef45e88": "Failed to add folder. ({0})", + "t5293d5b2e40c9c2b": "Failed to add a new folder to the folder list.", + "t54e5c6b2ebbb1327": "Failed to clean up leftover ignored items. ({0})", + "t1c0741133f4c11c4": "Failed to sort folders by drag-and-drop.", + "tdc22198bd9d518d6": "Failed to install the modpack automatically: {0}", + "t83d5573ea5bac3f9": "Failed to load Minecraft folder list.", + "tfe877ffce10860ac": "Failed to {0} folder {1}.", + "t4d05f569fa022dde": "Failed to remove game folder from list.", + "t8fe776059e171394": "Failed to rename the folder.", + "tac291dd5d1653e66": "Since the instance isolation is enabled for this instance, the corresponding saves, resource packs, mods, and other files of this instance will also be deleted!", + "te904c3f1787ed978": "No instances found. Please download an instance in any game version first.\nIf there is an existing instance, click \"Add an existing folder\" on the list on the left, and select the \".minecraft\" folder to import it.", + "tb8eef7430e8ded1a": "No instances available", + "t37b48005c4f3bb2c": "No matching instances", + "t7070707a64c9a260": "Failed while converting the instance list to display.", + "ta796d7fd4f5d2861": "Failed to delete the instance {0}.", + "tb1bc097d0d5046f9": "Failed to load instance icon.", + "tee6d064758d1c64b": "Failed to load .minecraft instance list.", + "t65f6ae117eb5a358": "Failed to load instance. ({0})", + "t624a1bd969b04ad3": "Failed to render instance list UI.", + "tfaba197404b1a0cc": "No instances are hidden. You can select \"Hidden from list\" in \"Properties → Personalization → Category\" to hide the instance.\nPress \"F11\" again to exit the hidden instance viewing mode.", + "tb4b5ababd87530ae": "No matching hidden instances", + "t67293e20df986327": "No hidden instances", + "t9e49a62d885d4a69": "Getting instance list...", + "taa110a744e0e909a": "Folder", + "t52408b1748edeba7": "Please enter search content.", + "tb6df28d3654ef358": "Search game instances", + "t8b146f614d81d9d6": "No hidden instances matching \"{0}\" were found.", + "t72d0ea2301ee1ef8": "No instances matching \"{0}\" were found.", + "t9d86f73d8c839940": "Enter instance name or [game version] [mod loader] to search.", + "t2018b7c67d9df1aa": "Cleanroom", + "tad25415f662cadae": "Error", + "t9f7c03879bc8f209": "Fabric", + "t11411c63fa861dfb": "Forge", + "te4a51ed9a6eb7f28": "Hidden", + "t754c99e4beca6d42": "LabyMod", + "t6e93910539e49db1": "LiteLoader", + "tdfb722df57594e91": "Mod-installable", + "t5a78fbed8fab7ac6": "NeoForge", + "tc1a3c13cf005c799": "Quilt", + "t307379fa50de1c8f": "April Fools' {0}", + "td0c19b7bcac3341b": "Experimental snapshot {0}", + "t364496f9944c3a92": "Experimental snapshot", + "tafa96f87a75359a5": "{0} needs to be installed as a parent instance.", + "t15d946f9a3f66ba0": "PCL CE does not have permission to access this folder. Please run PCL CE as administrator.", + "taf60b1b6781419af": "Instance {0} not found.", + "tb45121cb3219798b": "This instance has not been loaded. Please report this issue to the developers.", + "t34ed76db9d138f12": "Pre-release {0}", + "t7d94c018ec8d8aad": "Release {0}", + "tb2d20face804b66b": "Release candidate {0}", + "t72a02fbb1918ecd8": "An unknown error occurred. Please report this issue to the author.", + "t956930e51f0034a2": "Snapshot {0}", + "te54d01b8f183de30": "PCL CE cannot recognize the Minecraft version number of this version.", + "t157743a115bb9b04": "A settings operation failed. See the details below.", + "tbfc3cc67977c4968": "The development team of Plain Craft Launcher Community Edition!", + "tc8b5ca8c068c74a2": "PCL Community", + "t959f5c10296aca64": "Contributors", + "t92b2b2dec25efa81": "View more", + "t4f3322e66bd27de5": "Failed to load contributor information", + "ted7b822a352f1a8f": "GitHub profile", + "t5c34f7d0e2124dca": "Licenses and attribution", + "t807babdd337ee4b4": "License document", + "tc8137453b496a581": "Source website", + "t81bfdd3e969c811c": "The original author of Plain Craft Launcher!", + "t73a72e066ebc68df": "LTCat (龙腾猫跃)", + "t035440298e53691b": "Source code", + "t6f29a8a9196ab325": "Support the author", + "t52d25a9e30ba94f1": "About", + "tb4069a79aa2a678e": "Copyright © 龙腾猫跃 2016. All Rights Reserved.\rComputer Software Copyright Registration No.: 2020SR0875133\rReport violations to: hexdragon@vip.qq.com\rNOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.", + "t3dac0de92967a617": "Source code", + "tce27748c701b3f07": "The User Agent of this software includes the launcher version number to count the number of users on each version.\rOther than this, this software will not upload any other information to the developers.", + "tcc417001c6df7013": "ToS & Disclaimer", + "t5f03c875fedd5804": "Upstream legal information", + "t447f5a94d1d1baf0": "Current version: %VERSION% (%BRANCH%, %VERSIONCODE%, %COMMIT_HASH%)", + "t1db09f99bc07d686": "Are you really that bored?", + "t853b2cc96a46e4ed": "Not really", + "t844f2790a6ab01c5": "Then why are you still clicking... I don't get it.", + "td3aea5ff9a116023": "Coo coo coo?", + "taa2a331d2dcf5668": "Yes", + "tac3e99f08c1426ac": "Still clicking? Click again and I'll disable clicking...", + "t678356bfcd86ce2f": "Uh, keep going, uh...", + "t2844d197ce946c3d": "The hidden theme \"Chaos Yellow\" has been unlocked... wait, this is PCL CE, probably not...", + "t856909212f10a850": "Is this fun to click...", + "tce747d78d31ac834": "There's nothing behind this!", + "t93315bcd0e441bcd": "Still clicking?", + "tfc23bacc172e8469": "How are you still so bored?", + "t9d76c8fb32d29b01": "I'm exhausted", + "t17bc26230690587f": "Alright... but there really is nothing behind this, no need to keep clicking, seriously.", + "t677dba982d2faa73": "Aren't you tired?", + "t31a9aab9d69e2374": "Aren't you really, really tired?", + "t3c9827b1a8508e9b": "Aren't you really, really, really tired?", + "t5dd7d1319ebf4115": "Not really tired", + "taa2a319aa39178ce": "Really really really not tired", + "t012ad2f1967c181b": "Then stop clicking... There's really, really, really nothing behind this!", + "t49f4c7f33678f149": "Friendly reminder", + "tf2117bc2a4b9e77c": "Super friendly reminder", + "t7a0196c867021130": "SUPER SUPER FRIENDLY REMINDER", + "t51835cce05d6a549": "Lobby and privacy information", + "t320d3c1f295a0e51": "PCL CE source code", + "teab081c430521c52": "Copyright © PCL Community & LTCat (龙腾猫跃) 2026.\rNOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.", + "t655d18bb77ca0039": "Natayark OpenID ToS", + "t73b126a0aabe2e01": "Other information", + "t9d06d61ee41fcd3e": "Privacy", + "t168d1ea49b72bf5c": "Device telemetry, automatic error reporting and upstream remote lobby controls have been removed. Lobbies use locally configured names and peers without a Natayark account. Peers and lobby members can receive network addresses, player names and a random identifier generated for this launcher session. The local hardware-derived identifier is no longer sent as the lobby identifier. Logs stay local unless you choose to share them for support.", + "ta35a70eb14682930": "Copyright and legal information", + "t34148e2b1bb6d40e": "Blog", + "t6cb56e40cc752f9c": "Provided BMCLAPI mirror and Forge installation tool. Details at https://bmclapi.bangbang93.com", + "tb690fb353b95bd25": "Provided cloud services for PCL CE.", + "tfa40a47cd8f8f8c2": "Designed and created the PCL CE icon.", + "tfb30d3ee224eec37": "Provided the multiplayer module!", + "t45c78b83a562341a": "Provided MCIM community resource mirrors and image hosting services for the help center!", + "t0e2d0fc0fb341558": "Provided Chinese translation of mods and more related information!", + "tb59c1811054bb4b4": "bangbang93", + "t756076b519e4f03f": "EasyTier", + "tec28f9eae8efb349": "Emperormummy", + "t60b5ba4ac6f8f595": "Pysio @ Akaere Network", + "tf24ccdbd91428f25": "云默安 @ 至远光辉", + "t4d37865b71872697": "z0z0r4", + "t03eab0e484bc869b": "Website", + "tbdc799e5677d1954": "Website", + "t84fa39a5943f1b24": "Sponsor mirror", + "tc08d52bad6f70342": "Special thanks", + "t8b2106ca13719cb2": "Send feedback", + "t225df982c62420ad": "{0}\n\nWould you like to send feedback? Without a report, this problem may not be resolved.", + "t916b55495ae5bdfd": "{0}\n\nUpdating PCL CE to the latest version may resolve this problem.", + "t7d337d7bb23b9f79": "Submitter: {0} ({1})", + "tcb9976823cd92611": "Unable to get content", + "te422670a2a64311e": "Loading feedback list...", + "t21dda8a60ca020aa": "To report a bug, click Open folder and upload the log file containing the error from Launch-{0}-[number].log.\n\nGame crashes are usually unrelated to the launcher. Please do not submit launcher feedback only because the game crashed.", + "tc6ca814dc1e4dafb": "Not needed", + "tdd453a19bb1dc13b": "Feedback reminder", + "tf604b9cfcbaf6037": "Please check the feedback list for similar issues before submitting new feedback to avoid duplicate submissions.\nNote: This page does not show all feedback. To view more, please go to GitHub.", + "t1a9656a6fd78e1da": "New feedback", + "t228d8b711ccf3ab3": "Submit feedback", + "t4f5b599d6f30a7d1": "Check again", + "t62d71c571eb90743": "Update checking failed, so feedback cannot be sent.\nConnect to the internet, check for updates, confirm that the problem still occurs on the latest version, then send feedback.", + "t79e91fbf5a0b78d9": "You are not using the latest version of PCL CE, so feedback cannot be sent.\nUpdate PCL CE, confirm that the problem still occurs on the latest version, then send feedback.", + "tf596f520eb5a277f": "Cannot send feedback", + "t54b89f901274588b": "Uncategorized", + "tf098218a3032a625": "Declined", + "tc9bb70bcaaa3bee1": "Ignored", + "t8d12fc0d4eb26021": "Paused", + "t3b7e27cb4379da3c": "Processing", + "t34411312dc1e1f65": "Up next", + "t251bc40e7027dfc0": "Waiting", + "t8fb3a3261b438645": "Awaiting processing", + "t09ee1f81b9915207": "Output CLI information to logs for debugging", + "t2263b01199fe59d8": "Output EasyTier CLI information to the launcher log every 30 seconds for developer and community support investigation.\nThis option is for debugging only and is not recommended to keep enabled.", + "tf23b88723a5af181": "Allow IPv6 communication", + "t3b7e421dd45ec058": "Compared with IPv4, IPv6 makes P2P communication easier and can greatly improve the multiplayer experience. Do not disable it unless you have a specific reason.", + "tee966e1122adc493": "Failed to change configuration item.", + "t407600e503713ece": "Failed to initialize multiplayer settings", + "t8a5accfd518c6eca": "Failed to get network test results. See the details below.", + "t30bfbb5a5647c7ef": "Multiplayer settings have been initialized!", + "t513b240407ca2956": "Select the lowest-latency path instead of the shortest path", + "td9c1e7dfa9e7f9d2": "When enabled, EasyTier will choose the path with the lowest latency rather than the path with the fewest routing hops.\nEnabling this may reduce latency in some cases, but may increase packet loss.", + "tb7c1fc233a857f66": "Perform port guessing for symmetric NAT", + "tc6b4ea96735f3104": "Let EasyTier attempt port guessing for symmetric NAT (birthday paradox).\nThis may improve the multiplayer experience, but it may also cause issues in some cases.\nGenerally, keep it enabled.", + "t61c34cca8750946c": "Protocol preference", + "t2e9430507b92dee1": "TCP", + "t12c90425f9a33d63": "Let EasyTier prefer TCP communication, which usually provides better stability.", + "tdc4030f9688d6e67": "UDP", + "ta466cf4c7c16a577": "Let EasyTier prefer UDP communication, which usually provides lower latency.", + "ta70f93226e0720e3": "A lobby restart is required for changes on this page to take effect.", + "t1a3f0617d6de8e52": "Username", + "t3786a41b109aac73": "PCL CE will try to use this username for lobby display.\nIf left blank, the Natayark ID username will be used.\n\nIn some cases, the Natayark ID username may still be displayed instead of the name set here.", + "t2f1f3ce718ccabd9": "IPv6 status: {0}", + "ta52d1b6e84cd1052": "IPv6: Not tested", + "t4d2966c438002afc": "Not tested", + "t69ed375721d90fff": "Start test", + "td93373f81363e3cc": "Supported", + "tfb5524c38154375e": "TCP NAT type: {0}", + "t046700c56738d22f": "TCP NAT type: Not tested", + "tc8f3060095865885": "Testing...", + "tc2b7d1d16044eae7": "Network test", + "td14d3566aa4938ab": "UDP NAT type: {0}", + "t48048211fcb0fd51": "UDP NAT type: Not tested", + "t7c5378606570020b": "Unsupported", + "tf08d34169341e0d0": "Failed to initialize game management settings", + "t16564ee546afabf0": "Game management settings have been initialized!", + "t294a1ac5cd9ffa49": "File download source", + "t6a9ffc8f41744e00": "Prefer official sources, fallback to mirrors when slow", + "t28447a978045e72d": "Game download behavior", + "tded7c9d6351ed89a": "Prefer mirror sources", + "t78f63dabc9722495": "Prefer official sources", + "tea5763857dc4580e": "Version list source", + "t3701feffd233fcfc": "Prefer mirror sources (recently released versions may be missing)", + "t316ed1389081bd72": "Automatically set to launcher language", + "t18009bb726c0dab4": "Game language", + "t75aef217fe826da7": "Game update notification", + "t4e679e6605ec3cdf": "Recognize community resource links in clipboard", + "t9e4129a9cab4faf6": "When enabled, PCL CE will read your clipboard and recognize resource links, then ask whether to navigate to the detail page.", + "tdfe304b06f22b322": "Release notification", + "tde6d4af47b324415": "Show a notification when a Minecraft release is available", + "t78dc05c3affaba2e": "Snapshot notification", + "t7c2a46b90ec00890": "Show a notification when a Minecraft snapshot or pre-release is available", + "tb8f88aeead1520c8": "Accessibility", + "t808c417cbe281fb4": "Auto-check and install required dependencies when downloading mods", + "t0aad21e38cb31a02": "When installing a mod, if missing required dependencies are detected, a list will be shown for confirmation before auto-downloading and installing them (can be cancelled during confirmation)", + "t4f5b37450a4780c6": "File name format", + "t88e454d9c767686b": "【Create】create-1.21.1-6.0.4", + "ta3a5f1ae156f33d6": "[Create] create-1.21.1-6.0.4", + "t117b2b0bb6482497": "Create-create-1.21.1-6.0.4", + "te8ecd64405711f82": "create-1.21.1-6.0.4-Create", + "t903ef8218edbf7d8": "create-1.21.1-6.0.4", + "t18fe0570712243a2": "Default file name format when downloading community resources", + "t262aba8abbc29843": "Hide Quilt loader", + "t90c7475f7b2b6c57": "Hide Quilt from the community resource loader display.", + "t84b22c759a18bebe": "Mod management style", + "t388d7e42b29d1362": "Title shows file name, details show translated name", + "t256870b9129547c1": "Title shows translated name, details show file name", + "t5983c446e38dff7a": "Display style of mod items on the Mod management page", + "ta81c476b36158de7": "Quick download behavior", + "t4e4399bf6d85879a": "Always ask", + "t1c0500ea5de39faa": "Ask which instance to use", + "t7f0a99440b3cd1a2": "Ask where to save", + "t8452e76391bf6390": "Choose what happens when you click the quick download button on a resource card", + "td343ee3cdcd01563": "Download source", + "tf393258e8039a648": "Use mirrors only when the official source is slow", + "t7605b03f359674ca": "Community resources", + "ta0e12a3c655398f1": "Auto-select the instance after installation", + "taedba8d1dfc1c8c4": "Upgrade Authlib for some versions", + "t88dbf1f583fd92e8": "Some Minecraft versions, such as 1.16.5, have a bug that may cause multiplayer to be disabled when using offline login.\nPCL CE can try to upgrade the Authlib support library for these versions to fix the issue.\nThis setting only applies to newly installed instances.", + "tc07093e4582374a6": "Install behavior", + "tb4b2fe2e349f95a5": "Speed limit", + "t1584de9adc6289ab": "Set a download speed cap to prevent other programs that depend on the internet from freezing during downloads.", + "t388a187b43846859": "Target folder", + "t7766e1caa681595c": "Go to Launch → Selection → Folder list to change the download target folder.\nRight-click a folder or game instance to open the corresponding folder.", + "t3dfb1049a37f1fa2": "Max concurrent connections", + "t5b86780e357df406": "A high connection limit can lead to severe lag or even stricter throttling strategies from the server.\n64 connections are usually sufficient. Do not set it higher unless you know what you are doing!", + "t4d05c1b9df8e4ac6": "Limits the total network connections used by all download tasks. 64 connections are usually sufficient.", + "t963131b78a44bc20": "Max connections per file", + "t6c50c6e2ff88d131": "The most connections a large file may use at once. A higher value can help sources that cap each connection, but may also trigger source throttling.", + "t95290f113039e4e8": "File download protocol", + "t4dbbe8db5d4d0ef9": "Automatic (recommended)", + "t2ef63a2941a01ecc": "Prefer HTTP/2 for small files and batch downloads, and use HTTP/1.1 for large segmented downloads to balance concurrency and compatibility.", + "tc7b7e1d08e579f89": "HTTP/1.1", + "t962ab24a355d7a9d": "Force HTTP/1.1 for all file downloads. This can help environments where independent connections improve large-file throughput.", + "t2fd702a06eb4bcc2": "Prefer HTTP/2", + "tc985b4bb82bd98ec": "Prefer HTTP/2 for all file downloads, falling back to HTTP/1.1 when the source or proxy does not support it.", + "t7a8a11ead50742a2": "Add", + "t7ed26007d70ddc71": "Failed to add Java to the list.", + "t051e92d393a1cd39": "Java added!", + "t46f06e6d97f80983": "This Java already exists, so it does not need to be added again...", + "tc925dcdabe4fb56e": "Java auto mode: automatically selects the appropriate Java based on game requirements.", + "tdb9773faa309c257": "Auto select", + "td4284e17c5004dd2": "Please deselect this Java as default before disabling it.", + "t1932da4d4dba4ed0": "Details", + "te931e4e9559f8e37": "Disable this Java", + "t01bc2f0855b961c0": "Enable this Java", + "t5dfb9bc19d6cf36d": "Please enable this Java before selecting it as default.", + "tc8b40ac095a7b3af": "Failed to change Java enabled state", + "t2f9c93437c79dae4": "Type: {0}\nVersion: {1}\nArchitecture: {2} ({3})\nVendor: {4}\nLocation: {5}", + "tf20f1464aa73b77d": "Java information", + "t4520f6a52ca17778": "Loading Java list...", + "t3678517afe8ae580": "Java program (java.exe)|java.exe", + "t38bd35efb2db5e99": "Select Java program", + "t69470854ac235fb0": "This Java is unavailable. Please refresh the list.", + "t9f6fee1aba17a565": "Language", + "t6844dd84fe0c919a": "Language settings updated", + "t911ff33787921f2c": "Regional format", + "t7f0588b578de1d25": "Follow system regional format", + "t778e13d48d9ac6df": "Follow UI language", + "tad3757440409cf73": "Let", + "te2ea979f4972c192": "Go Internationalized.", + "t2dd2d3bbf201d464": "With the support of the community, PCL CE is entering a new chapter in its journey toward internationalization.", + "t6e88b1be7e03f689": "You can help shape that journey by contributing on our translation platform or submitting pull requests to our GitHub repository, making PCL CE more accessible to users around the world.", + "t7468a194ad5f19f1": "Thank you to everyone who contributes translations, reviews, and improvements—your support makes PCL CE better for everyone.", + "t473ae6a49c7be50d": "Visit translation platform", + "t9fab3495730840c1": "Submit pull request", + "t07868c98084791c9": "Language page settings initialized!", + "t3d13868593ae4eeb": "Display language", + "tbe55d2aaf1fcbdf9": "Follow system ({0})", + "t5e1b1d94c0e5ec6c": "Launch settings are abnormal and have been automatically reset", + "t866f2e8b15bbf10d": "Failed to initialize launch settings", + "t224330a0d283e1f0": "Failed to reload launch settings", + "t21e8bf4ff0c320b5": "Launch settings have been initialized!", + "t135351677632ac37": "Instance settings", + "tbac6d69c75030d00": "Disable automatic crash analysis", + "t979cecf2ea38e5ed": "When enabled, the crash analysis page will no longer automatically appear when the game crashes.", + "tb67c8dc9b5108377": "Disable Java Launch Wrapper", + "t717f55325a08f1f2": "Do not wrap with Java Wrapper when launching the game.\nJava Wrapper has been forcibly disabled because the system is ARM64 architecture.", + "t04b1a8a68dcd1d3d": "PCL CE uses Java Launch Wrapper to fix issues where older Java versions cannot launch from paths containing Chinese characters.\nIf it is blocked by anti-cheat or causes other issues, you can disable it.", + "ta4ac6f2b9461508e": "Disable LegacyFix", + "tb66984289deb751e": "PCL CE uses LegacyFix when launching version 1.5.x and below to improve legacy version gameplay experience and fix compatibility issues.", + "ta5faf266c2bf4bd1": "Lock memory allocation (-Xms = -Xmx)", + "tdbb8303350754f2d": "When enabled, the launcher additionally appends -Xms equal to the maximum heap (-Xmx), fixing the heap size. This implicitly disables heap memory uncommit, reducing latency jitter caused by the OS unmapping and remapping memory pages, and helps ZGC's collection prediction. The trade-off is that the game holds close to the maximum allocated memory for its entire runtime.", + "t70aac975eb3883d0": "Disable LWJGL Unsafe Agent", + "t0e816b9d5fcba048": "Minecraft 26.1 uses LWJGL 3.4.1, which uses the FFM API to access native memory on JDK 25+. Due to JDK optimization limitations, this may cause severe performance issues in some cases.\nPCL CE uses LWJGL Unsafe Agent to fix this issue and avoid possible performance problems.\nThere is generally no need to disable this option, but if you encounter additional issues, you can try temporarily disabling it for troubleshooting.\n\nThis feature only takes effect when the LWJGL version is 3.4.1.", + "t50509f2f2741a776": "Game arguments tail", + "teaa2d1aa2fb6853b": "The content in this text box will be directly appended to the end of the launch arguments.\nFor example, entering --demo will start the game in demo mode.\nString replacement tokens from the Minecraft instance JSON, such as ${library_directory}, are supported.", + "tc14354ebc33a17bb": "Require Java to use the high-performance GPU", + "ta91d4f4468a428d9": "Automatically set Java to use the high-performance GPU in Windows Settings → System → Display → Graphics.\nIf the computer has both integrated and dedicated graphics, this ensures that Minecraft uses the dedicated GPU for rendering, greatly improving performance.", + "tc9173ee83b6a7e8c": "JVM arguments head", + "tddde08946298195d": "Restore", + "t72c9c84b503bf113": "Extra JVM arguments used when launching Minecraft. Do not change unless you are absolutely sure.\nSupports string replacement tokens from Minecraft instance JSON, e.g. ${library_directory}.", + "tbf0458f51f725bd0": "You can find more advanced launch options in instance settings.", + "teae7eebd4717a8c8": "Pre-launch command", + "t9c85b98e60179302": "Execute a specific command or program before Minecraft launches. The syntax is the same as Windows Command Prompt.\n\nThe following replacement tokens can be used for relative paths (paths all end with \\):\n · {path}: The folder containing PCL CE's exe file\n · {minecraft}: The .minecraft folder\n · {verpath}: Instance folder (.minecraft\\versions\\instance_name\\)\n · {verindie}: Same as the instance folder when instance isolation is enabled; otherwise same as the .minecraft folder\n · {java}: The Java folder used by the game\n\nThe following replacement tokens are also supported:\n · {user}: Username\n · {login}: Login method\n · {uuid}: Player UUID\n · {name}: Instance name\n · {date}, {time}: System time\n · {version}: Vanilla game version\n\nExamples:\n · \"{verpath}test.exe\": Run test.exe in the instance folder\n · \"{java}java.exe\" -jar \"{verpath}test.jar\": Use Java to run test.jar in the instance folder\n · notepad \"{verindie}options.txt\": Open the instance settings file with Notepad\n\nIt is recommended to wrap paths in double quotes to avoid launch failures caused by spaces in the path.\nWhen the command is executed, the working directory is the current .minecraft folder.", + "tb91f2daef6cb7fc5": "Wait for command completion before continuing launch", + "tf73e1bec92acf66e": "DirectX 12 (d3d12)", + "t00e24be033f5005f": "Game default", + "t5eea85049ec9d7ce": "Renderer", + "t737feb88176e4a99": "Software renderer (llvmpipe)", + "t850e8e886943d301": "Vulkan (zink)", + "t439f0a0d70ef2a6f": "I know what I am doing", + "t3e86062bd8d86334": "Changing this setting will seriously affect game stability and performance. If you do not know what you are doing, do not change this option!\nAre you sure you want to continue?", + "t7da6d9ed8cd279d7": "Advanced launch options", + "t9e61db66bd99366b": "Use java.exe instead of javaw.exe", + "tc742b3df890f3fed": "If the game window does not appear for a long time, try enabling this option. PCL CE will use java.exe to run the game, giving the game process standard input/output streams to avoid possible issues when logs are printed.\n\nDepending on the behavior of different Java distributions, java.exe may not support features that depend on operating system support, such as HDR colors. Therefore, do not enable this option if everything works normally.", + "t83550872e202b15b": "Auto", + "t919175c3b15e994f": "Dynamically adjust the memory allocated to the game based on the installed mods and available system memory.", + "t5224f4d708cd672c": "Available: {0} GiB", + "t0a954ca969b6d28e": "Game allocation", + "tf5d370fa5dfd1c7f": "Maximum memory (-Xmx)", + "t62f0a060c5487d66": "The maximum heap memory the game can use", + "tbab6ef9ef8b6f431": "Initial memory (-Xms)", + "t78aa81051d289070": "The heap memory pre-allocated when the game starts, which can be lower than the maximum heap (-Xmx). Set to 0 to let the JVM decide. Only takes effect when memory allocation is set to Custom, and has no effect when Lock memory allocation is enabled.", + "tc9dd3f417f3385d2": "initial {0} GiB, available {1} GiB", + "t1acc21aa1aa6d311": "initial {0} GiB", + "t75067b871c5a21ae": "Game memory", + "t53b504dc12213492": "Used / installed memory", + "t02cb8aec1397b56c": "32-bit Java can only allocate up to 1 GiB of memory. It is strongly recommended to use 64-bit Java!", + "t0b7fe0054a9175a0": "You have allocated too much memory to the game, which may cause crashes. It is recommended to use Auto first!", + "tabc00290e88e742c": "Custom text", + "tc03933d4d07db8ab": "This text will be displayed in the title screen and the F3 debug screen.", + "t3d7d10b1c631978c": "IPv4 preferred", + "tf0ef39242684353e": "IPv6 preferred", + "tf0d56e6d52ea394b": "Java default", + "t3f85718d9a70a26b": "IP protocol preference", + "tb12638a54d9c3005": "Set the Minecraft IP protocol preference through JVM arguments.\nIn general, IPv4 preferred is recommended to ensure that the PCL CE lobby works properly.\nIf you need manual IPv6 networking, you can choose another option.\n\nIPv4 preferred: -Djava.net.preferIPv4Stack=true\nDefault: no extra arguments\nIPv6 preferred: -Djava.net.preferIPv6Stack=true", + "tc7579b98de9a840a": "Device Code Flow", + "t1eea28ef2a1611c7": "Microsoft login method", + "t7823d20f249363e3": "The Web Account Manager has a simpler Microsoft login flow, while the Device Code Flow allows you to authenticate on any device with a web browser.\nIf you encounter issues with the Web Account Manager, try using the Device Code Flow.\nIf you are temporarily logging in on a public computer, Device Code Flow is recommended.\n\nDue to issues with some dependencies, this option is temporarily forced to Device Code Flow.", + "t3de88ae3855f55dd": "Web Account Manager (temporarily forced to Device Code Flow)", + "t1df7f71d2900b4fe": "High (prioritizes game performance, but may cause other programs to lag)", + "t2579a4a4a7eea088": "Low (prioritizes other programs, but may cause the game to lag; suitable for running in the background)", + "t0c8e2bcff5b7aa69": "Very high (use with caution, may severely impact other programs)", + "t6dfa4ea7d8c811fd": "Process priority", + "t1cb9bed8c03ab7d2": "Normal (balanced)", + "tfd9ab136a934331a": "Realtime (runs the game at the highest priority; use with caution, may severely impact system performance)", + "t8dd0655d53256a1f": "Launch options", + "t8a2e28474a495058": "Custom size", + "tde377e9d2531c755": "Some versions such as Forge 1.12.2 have a bug that causes the height setting to not take effect", + "t22ea3f47fee80536": "Fullscreen", + "tc3cc36f628b16596": "Window size", + "t82c4aa13b7ca109e": "Maximized", + "t7ffd1ae8f2261484": "Note: If your instance has the Modern UI mod installed, this setting will not take effect", + "tfd5a66ba9df45b8c": "Same as launcher size", + "tcd959f842f08bb65": "Window title", + "t557756ea2b1f6d4a": "{name} | Player: {user} | Logged in as {login}", + "t29d0695615333b77": "Customize the game window title. Leave it blank to keep the default.\nThe following alternate tags are supported:\n · {user}: Username\n · {login}: Login method\n · {name}: Instance name\n · {date}, {time}: System time\n · {version}: Vanilla game version\nNote: If your instance has the Modern UI mod installed, this setting will not take effect.", + "t5aa3b331af68694c": "Isolate all instances", + "tb38d7e29457fc624": "Saves, mods, resource packs, and other files are not shared between instances.\nSaves will not be shared between Vanilla instances either, so this is generally not recommended.", + "t055d0dbd22e092e3": "The default policy only applies to newly installed instances.\nExisting instances' isolation policy needs to be adjusted in their settings.", + "t90fc54a0fbd0fbb8": "Default instance isolation", + "t85b5413d903841c6": "Isolate instances with mod support and non-releases", + "t3026c39cf4a54845": "Isolate instances with mod support", + "t71f1f5c476a616cf": "Isolate instances with mod support like Forge and Fabric to avoid mod conflicts, while other instances like Vanilla are not isolated.", + "t49800b5369c36fb0": "Isolate non-releases", + "t92a6e9458cbed227": "Isolate snapshots, pre-releases, old versions, and April Fools' versions from other instances.", + "tae93e7aec8122ebc": "All instances use the same profile. Saves, mods, resource packs, and other files are shared.\nIf multiple instances with mods installed are present, this may cause mod conflicts.", + "t21f1dcc19144ce64": "When installing a new instance, the isolation option for the new instance will be automatically set accordingly.\nTo adjust the isolation policy for an existing instance, please go to instance settings.", + "te1bbb3021cac8a23": "Close immediately after game starts", + "tf69a9b2a7b8f9ccd": "If the launcher is closed immediately after the game starts, features such as crash detection and changing the game title will be unavailable.\nTo keep these features, you can choose to hide the launcher after the game starts and close it automatically after the game exits.", + "t8f29b3132ccf2182": "Reminder", + "t5cfb31ef373d74fc": "Hide after game starts, close automatically after game exits", + "t868de648dbfb29e0": "Hide after game starts, reopen after game exits", + "t054311a905850c9a": "Keep unchanged after game starts", + "t87f5b03f0660fc3e": "Launcher visibility", + "t5fb815183a762c59": "Minimize after game starts", + "t847c5f681ce955a0": "Game", + "td6965cf52f76549a": "Launcher", + "t132196f9d69faabf": "Please check the feedback list for similar issues before submitting new feedback to avoid duplicate submissions.", + "td1f20df746ecf456": "New feedback", + "td884aac1d76b14dd": "Feedback list", + "t682c033f7635b5d9": "Do you want to initialize all settings on the Tools – Multiplayer page? This action cannot be undone.", + "taebd75ded7eef1fa": "Do you want to initialize all settings on the Game – Management page? This action cannot be undone.", + "t538d1ccfa63e3752": "Do you want to initialize all settings on the Launcher – Language page? This action cannot be undone.", + "tb5c5bac9db252ffb": "Do you want to initialize all settings on the Game – Launch page? This action cannot be undone.", + "tad5c097665b46cac": "Do you want to initialize all settings on the Launcher – Miscellaneous page? This action cannot be undone.", + "t5a5642ea93ce419f": "Do you want to initialize all settings on the Launcher – Personalization page? This action cannot be undone.\n(Background images, music, homepage files, and other external files will not be deleted.)", + "t0fe8acdee57bdb1f": "About", + "t362494fcf9a50a87": "Multiplayer", + "tc1ba60ce13586503": "Java", + "t887d938275c72602": "Miscellaneous", + "t651f274470153a05": "Updates", + "t3cdf2acc08371928": "All logs", + "tc854cea07e3bf030": "Do you want to delete all historical logs?", + "t1112534a916c28f1": "Clear historical logs", + "t6bbf56f2f4b5159e": "Log files cleaned successfully!", + "tb27a136b0b135703": "{0} (current)", + "tb8f32d2848485a01": "Export log", + "t09403feb9890b4eb": "Export sanitized log archive", + "t415a08cc2123489a": "Failed to save log", + "tfd4287a32f1e01b9": "PCL CE log archive|*.zip", + "t60a4cbbcf35c0bdc": "Export log file", + "t39416ba758f35912": "Log saved successfully!", + "t6e15bd283c306fc3": "Open log folder", + "t66d6e64fb4894b59": "Log actions", + "tfe5cfebb97b6e5cc": "Temporarily stored logs ({0})", + "t933e7212e7bb2e0c": "Temporarily stored logs that have not been output", + "t83d1348e1c742209": "Failed to initialize miscellaneous settings", + "t8b245403d5b3db93": "This change will take effect after restarting PCL CE.", + "t78393456ea5a63e1": "Miscellaneous settings have been initialized!", + "t27f40db6d3e45b1f": "Animation speed", + "tf6d7ce5e5bef2cf3": "Add delay", + "ta7fc70d11c9c94a8": "Add random delays at various stages, slowing down loading to test whether certain features work correctly.\nThis will seriously affect launcher performance. Not recommended unless specifically needed.", + "td09ed8ce71faf29c": "Debug mode", + "t9bf00e23535634c2": "Some debug information will switch display after refresh or launcher restart!", + "t98b180ae3fccd4a4": "Show debug information and more error details.\nThis may slightly decrease launcher performance. Not recommended unless specifically needed.", + "t3c55d52b9f4ceb59": "Do not copy files from other folders while downloading", + "t403a9de54619f284": "When downloading, do not copy identical files that already exist in other Minecraft folders; re-download them instead.\nOnly recommended for testing download speed.", + "tde90f1bae01bfe50": "Debug options", + "t61da6e6dbde1e9d8": "Use DoH for address resolution", + "t01f2765244199572": "Using DoH for address resolution can provide better IP results and improve the launcher's network access. If you have deployed a DoH resolution service, you can disable this feature.", + "tfe51a8c86091b1e6": "HTTP proxy", + "t97b31b5d63f57e51": "Network", + "t7171ee0eb3241f48": "Apply proxy information", + "t5da55869ce443189": "Custom proxy", + "tb1ffbe40a56324ce": "Incorrect proxy server addresses will cause network connection failures. Network issues caused by proxy usage will not be handled.\nDo not enter untrusted proxy server addresses, as this may lead to account information leakage or even account theft.", + "tf9af167c9a973d07": "No proxy", + "t724ab82484f8b28d": "If needed", + "td86fa42c3848c680": "Use system proxy", + "t26c964f2678bec85": "Do not enter untrusted proxy addresses", + "t311bb313fdeca6aa": "Account", + "t85dc04b240179bc3": "Launcher announcements", + "t8b9863c87259d440": "Show all announcements", + "ta63f65583b1c7c4d": "Show all announcements, including launcher feature surveys, events, and more.", + "t6d7f52838cbbbe55": "Disable all announcements", + "td2215efd9defef4a": "If you choose this option, you will not receive relevant notifications even when serious issues occur in the future.\nFor example, if a critical bug is found in a certain game version, you may miss the notification and face unpredictable consequences.\n\nIn general, choosing \"Show announcements only when important\" should keep you mostly undisturbed.\nUnless you are creating a server modpack or frequently update the launcher manually, this option is strongly discouraged!", + "t2d7d643563907540": "Show announcements only when important", + "tff5dba9cb7d49f84": "Disable hardware acceleration", + "tfe017784aa548855": "Export settings", + "t2194621d69fa669a": "PCL CE config file (*.json)|*.json", + "t9042d4511be4ec23": "Settings exported successfully!", + "t1a80d4a192698b02": "Import settings", + "t448ce4712d08f78e": "Settings imported successfully! Please restart PCL CE to apply them...", + "t562822892865b377": "Restart", + "t2428b36ebf26d6d3": "Maximum animation FPS", + "t6b3b75a466a0e7c0": "If you have disabled hardware acceleration, it is recommended to lower the maximum animation FPS to prevent excessive resource usage.", + "t36e08d26b3e688c6": "Live log line limit", + "te8d5c7cfffc654b9": "Stop using PCL CE", + "t144bf4a8d383995c": "Continue and remove instance configs", + "td187ce540ba1fad2": "This is the final warning! Are you sure you want to continue?\nAll PCL CE data on this computer will be lost forever! (A long time!)", + "t4b401440fe83a8d8": "This will delete all PCL CE settings, cached data, saved account information, and other related data from this computer. Your acceptance of any license agreements will also be revoked. PCL CE will close automatically when the process is complete.\n\nThe following cannot be removed automatically:\n- Local data from other PCL CE installations on this computer\n- Your Natayark account\n\nTo also remove PCL CE configuration files from Minecraft instances, choose \"Continue and remove instance configs\". This will not affect Minecraft settings, mods, saves, or other game data.\n\nThis action cannot be undone. Are you sure you want to continue?", + "t79954066883f0100": "Stop using PCL CE?", + "t5b50d7c4b5950dc5": "System", + "t061397c80b293926": "Failed to refresh the background. The video may not be encoded as H.264 (AVC). Re-encode it as H.264 (AVC) and try again.", + "t0b439e4c7819d240": "There is an exception in the personalization settings and it has been automatically reset.", + "tbc331a1e39cdb046": "Failed to initialize the personalization settings.", + "tb6461d33e5f04ee0": "Error while loading the personalization settings.", + "ta25bf7d8b15e98a5": "An interface settings operation failed. See the details below.", + "td2bb8322065f6b80": "Failed to change the title bar image. The image may not use a supported format. Open it in Paint and save it again, then try again.", + "t2c6edfe62773c0a8": "Failed to resize the title bar image. The image may not use a supported format. Open it in Paint and save it again, then try again.", + "t63d6b47116de363c": "Interface", + "te8f6dbbb3bf54375": "Global default font", + "t58145f3b31599087": "MOTD", + "t6c47aeb621dce5fa": "Formatted code text font, used for server status info and similar content", + "t078838da4218490b": "Fonts", + "tebf778110553e92d": "Common image files (*.png;*.jpg;*.gif;*.webp)|*.png;*.jpg;*.gif;*.webp", + "tefa114de0809e043": "The personalization settings have been initialized.", + "t81901c460c6d189c": "{0}px", + "t80faf20d6a765f01": "Image blur", + "t4e930298086b49a8": "Strong blur may cause serious FPS drops in the launcher. Please use it cautiously.\nIt is not recommended to enable blur when making a modpack to ensure that PCL CE can run smoothly on low-performance devices.", + "t1773a48f7a8d2962": "Clear all", + "tb7cdc2b9bac4aaa8": "All files in the background folder are about to be deleted. This operation is irrevocable. Are you sure?", + "te7a402170c880505": "The background has been cleared!", + "t11f610810899730a": "The background has been cleared!", + "t5cf0e6be448fedff": "Overlay colored background", + "t55896c703bafb6d5": "Adaptive", + "t5104415b6ba37798": "Failed to load the image, trying to play the file as a video: {0}", + "tef290865923226d6": "No available background detected!", + "tb8acdc8748b843cd": "Put background images and videos in this folder, and PCL CE will randomly load one each time it is opened.\nFor smoother playback, videos are recommended to use H.264 encoding.", + "t06d01ff55be3682d": "Pause video backgrounds while an instance is running", + "t2c74ea963a9c7efd": "If enabled, the background cannot be refreshed while the game is running", + "td64de922a9baa612": "Refresh", + "t685fe0a268c05e47": "The background has been refreshed: {0}", + "te3612b09d212faf7": "Randomly load a background image or video from the folder.\nFor smoother playback, videos are recommended to use H.264 encoding.", + "te9ffa3f88cd8dccb": "Backgrounds", + "tbd9760b1cf6966bb": "Backgrounds", + "tfb18e26a3e30a7b1": "Backgrounds (total: {0})", + "t871323b649586984": "Bottom-left", + "t4c32aebb63c47340": "Bottom-right", + "t4cc3885c182e419c": "Center", + "t53c9aca4b68c2237": "Fit", + "t836cc39f06440bcc": "Stretch the content while keeping the aspect ratio until the entire window is filled.", + "t8fffc40833fbab25": "Smart", + "t5d9086da66997984": "Select \"Tile\" when the content is small, and \"Fit\" when it is large.", + "t5d7d4daca250eac9": "Stretch", + "tbb90c27eb19907fd": "Stretch the content to fill the entire window, which may alter the aspect ratio.", + "t01d70f8715e4a1f3": "Tile", + "t5678ba100a412644": "Top-left", + "t9eb1676e1fbcc2fc": "Top-right", + "t024ea32a1313c4fe": "Advanced materials", + "tbe778d48defe88aa": "When enabled, blur effects will be applied to some transparent areas, such as cards.\nNote that this feature consumes significant GPU resources and may cause lag!", + "t2a52f69a56f3bb88": "Blue, blue, and more blue! Want to escape from the blue dilemma? Use the official snapshot build!", + "t6ce9bf045d2a05cd": "Blur method", + "t7ea613c4d564ac02": "Box blur", + "tab92655be889c66e": "Uses linear average sampling over a small area around each pixel, which is faster but may produce color blocks.\nThis blur may lose detail information but has better performance. It can be used on devices with poor performance.", + "t0e134f5a85ab8047": "Gaussian blur", + "t7288d8ae632a1f3a": "Uses weighted average sampling with a Gaussian convolution algorithm over a large area around each pixel, which is slower.\nThis blur has higher quality and handles details more finely. Recommended for devices with better performance.", + "t13b303db394d13b7": "Sets the blur method.", + "t6e7016fd595656b8": "Blur radius", + "t3dc2644852d55708": "Sets the sampling radius of the blur effect. Larger values produce stronger blur.", + "t0f549853799d6bde": "Sampling rate", + "tf1557ac4b742212c": "Sets the sampling rate of the blur effect. Higher values produce finer blur.\nIf your device has poor performance, try lowering this value for better performance.", + "t932689f159c9c7ad": "Get official snapshot build", + "tb61e39bfa4e57232": "Lock window size", + "t04405e4a9ffd2a3d": "Opacity", + "t85f65461cb14beea": "Display the PCL CE logo while opening the launcher", + "tef46719d9f6f3123": "Show \"Trivia\" when launching the game", + "t89e5e14c8db996da": "Basics", + "t543ec5435d90915c": "You can hide unnecessary pages or disable specific features. Press F12 in any interface to show the hidden features temporarily.", + "t465eaeb5cc7dab00": "Main navigation", + "tc58f3ec38d2caf68": "Other features", + "t1c0437bb6369e94d": "\"Properties\" subpages", + "tfb61b744f5efe126": "\"Settings\" subpages", + "t03550af111b8aa63": "\"Tools\" subpages", + "tfe284da8d4e7a2eb": "Press F12 to disable feature hiding settings temporarily. Do not forget it or you will not be able to change the settings back...", + "t7a347b34ab5567ea": "Feature visibility", + "tc64d21f535c2819f": "Feature hiding (disabled temporarily, press F12 to re-enable)", + "t11df5cff349ab74b": "Only this tab will be hidden. Disabled content settings are still valid.\nThis can avoid feature hiding being changed while keeping the Personalization page.", + "t7db1b3229df3c7f3": "Instance manager", + "t1b4c38bff4e63def": "Hide the selection and properties buttons below the Launch button.", + "td44271b927e7c3b7": "Mod updates", + "t8d14cef265cd3a38": "Prohibit mod updates on the mod management page.", + "t7b2a5133349a7018": "Toolbox", + "tf0bf4574ce25c131": "Blank", + "t7b2e800cb995cee6": "URL", + "ta464bc09e9661330": "Get more homepages", + "t7aa34c6fe793a492": "Homepage Market", + "tbc704b9434c846cb": "See ModSetup", + "tea2f46d33b367a9c": "Local", + "tcbcba2bce4054cb6": "Read the homepage from Custom.xaml in the PCL folder.\nYou can edit this file to add text, images, frequently used websites, quick launch actions, and more to the homepage.", + "t276ebcf50f045b9e": "Online", + "tec9999cc67b90e4a": "Get homepage content from the specified URL. Server owners can also use it to update server announcements dynamically.\nIf you have created a stable online homepage, click this hint to share it. Approved submissions may be added to the presets!", + "t088703267eb240c0": "Please exercise caution when using homepages provided by strangers. Malicious homepages may cause harm!", + "tb2d4690a1c25cdd6": "Homepage presets", + "t5e0bf841841d8682": "Refresh home", + "t3ac145bc9625de54": "Homepage refreshed!", + "t3e0d676d2d85073d": "Home page", + "t6353a8f9659464de": "Tutorials", + "tf1de1e2621deb2e1": "Preset", + "td8c8e4cc99de3432": "Daily Modpack Recommendation (Author: wkea)", + "te2ed8c9bd5193ef0": "Echo Cave (removed)", + "t1deaa9e0bf7bccd7": "PCL GitHub Dashboard (Author: Deep-Dark-Forest)", + "tf0d7d1f0cc6b7670": "Magazine Homepage (Author: CreeperIsASpy)", + "t1a9907e0bd68a1ed": "Minecraft News (Author: Nattiden)", + "t874c2a9cf3785541": "Minecraft Official Feed", + "t9ea0cb74d20dbf57": "Minecraft Skin Recommendation (Author: wkea)", + "t951b1dc62f975856": "Minecraft Update Summary (Author: pynickle, partially AI-generated)", + "ta1681755e51f2a1e": "News Today (Author: EYicheng)", + "ted667982fda1fb7a": "Minecraft Knowledge (Author: awaEric233)", + "t679c82547decd75b": "Modpack Recommendation Engine (Author: CHMYGZ)", + "t51842d6c9b0a6e43": "Bangumi Anime (Author: wzyaeu)", + "t4cd9d16cc2965838": "OpenBMCLAPI Dashboard Lite (Authors: Silverteal, Mxmilu666)", + "t8577eaed364f440e": "OpenMCIM Dashboard (Author: SALTWOOD)", + "tdf50de0152c2ad96": "PCL CE Announcements", + "t5efa12ae3ab38ba8": "PCL New Feature Manual (Author: WForst-Breeze)", + "te164350a1a176125": "PCL Homepage Market (Author: MoYuan-CN)", + "tb0f0a41800cc1fb6": "PCL News Bulletin (Author: Joker2184)", + "tbe9ce9c8aea9c1d0": "Simple Homepage (Author: MFn233)", + "t6874e7f26b359019": "Trivia", + "tb9fde9e71fddec30": "Change the icon", + "t67a58b99d117583e": "The title bar image has been cleared!", + "t27a25fbfb3baeecf": "Clear the icon", + "td24c10d37db0feea": "Image", + "t87ed84119176b0eb": "Align left", + "tdd81861811e57bf7": "Text", + "t8632017ffbbd32ab": "Text", + "tc3ebe56c4633ef87": "Title bar", + "tb8136bc5d404f531": "Play when the launcher starts", + "t9fb5e6302d69719e": "Clear all", + "ted0dd009d4925166": "All files in the music folder are about to be deleted. This operation is irrevocable. Are you sure?", + "tfefbe4b648be0ca9": "The music has been deleted!", + "t65db69340e6b658a": "Deleting music...", + "t20aa97e47730e05a": "Put the music in this folder, and PCL CE will play all of them.", + "t4c16c62e756a2e25": "Refresh music", + "t6c225a11406e70d3": "Refresh the playlist and play music on the list.", + "tf34b7ce61098e539": "Shuffle", + "tda1e5c5bfb05854f": "Integrate with System Media Transport Controls (SMTC)", + "t826602e16c869379": "When enabled, you can use the system control center and shortcuts to control PCL CE's media playback.\nCan be used with software such as Lyricify Lite or FluentFlyout.", + "t2f0554b570acedd8": "Play while an instance is running", + "t584493be26cfb1ff": "Play while no instance is running", + "t3c3638bb300c2032": "Background music", + "t3f1ad2c2124ef395": "Musics (total: {0})", + "t8bf8b9780d342816": "Volume", + "t6c05f9d3b4790151": "Cat blue", + "tceff55faed41bc0e": "Crash blue", + "te9f5486a5bf7822c": "HMCL", + "tc3337363b6202dcc": "Sky blue", + "ta6b75d0680322a61": "Dark", + "td988940b113e0f27": "Dark palette", + "t03e610202e5de15e": "Default theme color in dark mode", + "t217cfe7db1e3d10a": "Follow system", + "taa0819dfc4d8d782": "Light", + "t0749b3e79d60511e": "Light palette", + "t788db1cfec2a3db5": "Theme", + "t92813534999a1b3f": "The developers seem to have forgotten to provide an update summary... Maybe click below to view the full changelog?", + "tb7149d5805df899d": "More information about this update...", + "t7f34c8f91c0afff4": "PCL CE 2.14.0 brings a refreshing new design, several Pigeon smart features, and a delightful cross-instance workflow to boost your productivity.", + "tf81139b7590901be": "About this update", + "taa0b207af6a71230": "No changelog available...", + "tfe0503e4a3c3fe50": "Check again", + "t2b66dde439e65404": "Failed to check for updates", + "t5703942ae3f8f353": "Checking for updates...", + "tbf6c3a5a4b6a0a10": "Download .NET 10 Runtime", + "t55ee22ea7fd39738": "A launcher update (version {0}) was found, but the new version requires .NET 10 to be installed on your computer.\nYou need to install .NET 10 before continuing the update.\n\nClick the button below to open the webpage, then select {1} under \".NET Desktop Runtime\" to download.", + "tbb538fd77e3b3f58": "Launcher update - missing runtime", + "t9d6111711b8551f8": "Unable to retrieve latest version information. Please check your network connection.", + "tac69f68b7010ec79": "Download and install", + "tbc310480b4ce9236": "Already up to date", + "tc3ddff22bc608066": "Get CDK", + "t2eddb6fed22a8959": "MirrorChyan CDK", + "t54ff1cdfa91d0c61": "MirrorChyan (mirrorchyan.com) is a paid third-party application distribution platform that provides high-speed download sources in China.\nThis is an optional service. Leaving the CDK blank does not affect normal use or updates.\nIf you have a MirrorChyan CDK, you can provide it to PCL CE, and the launcher will prioritize its high-speed download source for software updates. This can also help reduce pressure on the community update server...", + "tfdf67c466241041b": "AquaCL 3 is the first major update of PCL CE. It brings a refreshing new design, uses the latest development technologies, completely rebuilds the core experience, and adds support for macOS, Linux, and other platforms.", + "ta3eda49175016a79": "Other update options - upgrade to AquaCL", + "t70007836f36591e9": "Restart to install", + "t13c9f157f3c4f694": "Do not automatically check for updates (not recommended)", + "tb9bdb5f8a1771090": "Disable automatic update checking. This may prevent you from receiving updates in a timely manner.", + "ta6dcd15827d0e064": "Automatically download and install updates", + "t8d99494424225f47": "The launcher will automatically check for and download available updates, and install them after closing.", + "t334a81de09fe72c6": "Automatically download and prompt for update", + "t951f3b472a6c44eb": "The launcher will automatically check for and download available updates, then prompt you to install.", + "t8560b5959338b481": "Prompt for update", + "te4d86f14bbee03fb": "The launcher will automatically check for available updates, then prompt you to download and install.", + "t559788d54f67a051": "Auto update settings", + "t4e0c88a6cc681b85": "Beta", + "t0188a9fd17f6c9bc": "Potentially unstable beta versions for early feature testing. Suitable for users who want to help test and have some technical ability.", + "t241cf8967f10e2fc": "You are switching the launcher update channel to Beta.\nBeta versions provide previews of upcoming updates, but may include insufficiently tested features and have reduced stability.\n\nAfter upgrading to Beta, you will need to wait for the next Release version or manually re-download the launcher to switch back to Release.\nThis option is only recommended for users with some basic knowledge and ability. If you are creating a modpack, please use the Release version!", + "ta11e1b352d7c08b1": "I understand", + "t64210b9be487d310": "Before continuing...", + "t32f18f63c23912eb": "Release", + "te8f76e467cf86726": "A relatively stable version that only receives bug fixes and some built-in resource updates. Suitable for most users.", + "tb5260335fcac93bb": "Update channel", + "t3a28352796575f06": "Dev", + "t7c8ed90320f087f9": "I confirm switching to this branch and am aware of the risks", + "t84f5aa1f6443b97c": "Are you sure you want to switch to the Dev channel?\nDev versions may have serious issues or even fail to launch!\n\nAfter upgrading to Dev, you will not be able to switch back to any other update channel without manually re-downloading the launcher.\n\nThis option is only recommended for advanced users. If you are creating a modpack, please use the Release version!\nPlease enter \"{0}\" to confirm.", + "t08a85f4ab4bab9ca": "Submit", + "ted253257e0ddbe0b": "Final confirmation", + "tf1023c97cf56d2c1": "The content you entered is incorrect...", + "t9d5144930a6b8955": "Potentially highly unstable development versions built directly from the latest source code. Suitable for highly technical users.\nGood internet connectivity may be required to download updates from this channel.", + "tc5f1b238fabd5eda": "You are switching the launcher update channel to Dev.\nThis channel provides early access to development builds from the latest code, but may be extremely unstable or even fail to launch.\n\nAfter upgrading to Dev, you can only manually re-download the launcher to switch back to Release or Beta.\nThis option is only recommended for advanced users. If you are creating a modpack, please use the Release version!", + "tb916c37c29682234": "Click to copy error details", + "tefbb30a9844474b2": "Error details copied!", + "t03500c1ff7d0dd35": "A task manager operation failed. See the details below.", + "t4e57e74634386653": "Remaining files", + "t3726bcb6903fa086": "Active connections", + "t6407f8f0a2148bfb": "Total progress", + "td51799004211e8dd": "PCL CE could not open this link. The link was copied to the clipboard and can be opened manually.\n\nLink: {0}", + "t6b6b1a1be9546c50": "Failed to open link", + "t46fec206fcbc256d": "{0}\n\nIf you think this is a launcher issue, please submit feedback so it can be investigated.\nExport logs: Settings → View logs → Export all logs", + "tfb8af64dc5dfe5bb": "Fatal error", + "tb0e866423d5863db": "All files|*.*", + "t4bc8cb9cd2ec74ff": "Failed to open the file or program.\n\nPath: {0}", + "t822fb37dba29381a": "Select file", + "t422d0a1bbf05be3e": "Failed to open File Explorer. Try closing security software, such as 360 Total Security.\n\nPath: {0}", + "t0d6fad8138e77630": "Select folder", + "t37d6c1b88404d396": "Your .NET Desktop Runtime is outdated or corrupted. Please reinstall .NET 10.", + "t124d8f9462df3e83": "PCL CE failed to initialize", + "ta76ed0f9d3498caa": "{0}\n\nDetails:\n{1}", + "t25d3c6ebd7c24a1d": "{0}\n\nWhen asking for help, do not close launcher. Export the logs now (Settings → View logs → Export logs), then send the exported log archive. A screenshot of this window alone is usually not enough to diagnose the problem.", + "t744dd9d4c454cc62": "An error occurred while performing this operation.\n\nOperation:\n{0}\n\nDetails:\n{1}", + "tf0be132de641fdbe": "An error occurred while performing this operation.\n\nOperation:\n{0}\n\nDetails:\n{1}\n\nA low-level system operation failed. Please try reinstalling .NET 10.", + "t18e9c71958e02aaf": "An unexpected error occurred.", + "t87ac7e4a339b67c8": "Unexpected error", + "t34a39f97baf1c447": "An error occurred.\n\nDetails:\n{0}", + "t676ad01fa9d92cc3": "A utilities operation failed. See the details below.", + "tea6dca5fc82fc027": "Lobby", + "t7ff4ff7f1107e506": "Utilities", + "t040240d7ad1aebdd": "[{0}] {1}", + "ta8cd9642aa48cd9f": "Important", + "t4ffef8f3113a3a11": "Warning", + "t6dbdc671089d81aa": "Lobby host's game address: {0}\nNote: IP connection is only recommended when the lobby broadcast does not appear in the Minecraft multiplayer list. IP connection may require a licensed account.", + "tcf4375284e631371": "Copy IP", + "t0d167d8f62ecbfe4": "1. After entering a world, select \"Open to LAN\" in the game menu\n2. Select this game instance below and click \"Create\"\n3. After the lobby is created, copy the lobby ID and send it to your friend", + "td1192e27c3d45da3": "Enter port", + "tc6dd40c3fcc31173": "Manual input", + "t9c7b3a173c6311bc": "Please select a world to play together!", + "t81453549856435af": "This doesn't seem to be a Minecraft service port...", + "ta53a5686d4d1c378": "Create lobby", + "t366d5d693d0f028c": "Both sides are using different launcher versions, which may cause connection issues.\nWe strongly recommend that both sides upgrade to the latest version before continuing.", + "t618667b8799b9f7f": "Failed to connect to the lobby server", + "t49c689fcf7eb9d0e": "An error occurred while exiting the server!", + "tcda1ca8aeb7cceeb": "A lobby server error occurred.\n\nOriginal error:\n{0}", + "tb50c5142045477f7": "Please update to the latest PCL CE to use lobby features.", + "tb41e58390a82ef12": "Lobby feature disabled!", + "tc497c026e17e3546": "Are you sure you want to revoke the lobby agreement authorization?", + "t522552a571bec9ac": "Revoke authorization", + "t5633e5ca70665f71": "Are you sure you want to exit the lobby?", + "tac333f933bbbadee": "Are you sure you want to exit the lobby?\nSince you are the lobby host, exiting will automatically disband this lobby.", + "tab942a2caccc9837": "Confirm exit", + "td28522a7eed6f157": "The lobby has been automatically disbanded because you closed the Minecraft instance in the lobby.", + "t4eaa621c701e93af": "Lobby disbanded", + "tba00a3c8fbf8af45": "Since you are the lobby host, exiting will automatically disband this lobby.", + "t451755e3831fa39e": "Join", + "tbce2377283c2455a": "Clear", + "tc405771287cb9eaa": "1. Enter the lobby ID sent by your friend below and click \"Join\"\n2. Launch the game, select \"Multiplayer\", and join the lobby in LAN games", + "tc807f61a6dbb5bbd": "ID should look like: U/NNNN-AAAA-SSSS-EEEE", + "tf268b8c7a8bac4e4": "Invalid lobby ID. Please check and enter it again.", + "t33517926747180e6": "Paste", + "tcccb42ffea8ab9de": "Join lobby", + "t49751039edd5e32d": "Disable lobby", + "tb74e6321499e4c6e": "EasyTier official website", + "t4dae8c8326995683": "Links: ", + "tf2f07703a571ccdc": "Report violation", + "t7fa99838c3a3bfbb": "Natayark OpenID ToS", + "t44e208945d552d78": "Connecting to lobby server...", + "t7ba763c3858df793": "Creating lobby", + "tebf8e0aa81c0a74d": "Downloading lobby module", + "td9b382b6a8cf45b1": "Lobby members ({0} total)", + "tf58c1b2e60b3a71f": "Lobby members (retrieving information)", + "t77c9e582e85583af": "Test failed", + "te5790681bbc71644": "UDP: {0}, TCP: {1}", + "tdd78205d6a22eb82": "Click to test", + "tc5f592ec96939056": "NAT type", + "t10866a9df5f8be5b": "{0} {1}", + "te89bfdda0fa62738": "[Host]", + "t7ab55d8950e8e167": "Username: {0}\nClient identifier: {1}\n\nThis data is for reference only. Actual gameplay may vary.\n\nTo learn about NAT types and how they affect your lobby experience, see the FAQ section on the left.", + "t85319ce239329139": "Player {0} details", + "td7ce794d0b865b91": "I have read and agree", + "t8c6d08a3b14a4844": "EasyTier connects to locally configured or public peers. The original PCL CE servers no longer supply lobby policy or receive device/account reports from this launcher. Connect only to trusted peers and players and follow server rules. See the project privacy documentation for details.", + "taecb4aae0039efdf": "Service documents and introductions used by PCL CE Lobby are listed below.", + "te4647d4a1da9a446": "View Natayark OpenID terms of service.", + "t9091f623714c81d7": "PCL CE Lobby Terms & Conditions", + "td59d7f96bb3136ad": "Lobby actions", + "t20f99990c7224710": "Checking", + "t833ec488da5ac311": "Close lobby", + "t5be0323e8adcaeae": "Connected", + "ta898478be1813b95": "Connecting", + "tc44899529d41af30": "Connection status", + "t485a26050ce57431": "Connection type", + "t377c1d199e1e9a5f": "Copy lobby ID", + "tf13680c6c92d4ab4": "Copy virtual IP", + "t153b723547e28a7f": "Exit lobby", + "te07b4fc0d8f7a080": "Guest", + "tf46c86c0286a8fad": "Host", + "tb9882ece53ac5aed": "Lobby information", + "t703a794ea636d4fd": "Lobby ID", + "t11a5b319f94c7cda": "{0}ms", + "t0f1ec7ad5ba404a1": "Ping to lobby host", + "tf36cac96220bb1e4": "Unavailable", + "taec6d9b3d261eec1": "User type", + "t7c97905a624a516a": "(Abnormal)", + "t1b86bb059497356d": "Natayark account", + "tf2258959755e8d97": "Natayark account information has expired. Please log in again in Settings!", + "tfaca22f81c54dcc9": "Please continue in your browser...", + "t192e2d1b88c97653": "Failed to fetch information", + "tbd6ebead5c3d0363": "NAID authorization code is invalid.", + "t7545b39503978718": "Loading...", + "t897c57569e5d5e92": "Log in to Natayark", + "t69abb59848ddc741": "Login completed", + "t18da5f06a1f8a360": "NAID login failed. Please log in again in Settings.", + "t775d096e34a19cc3": "PCL CE will open a login page. Please complete the login in your browser, then return to the launcher to continue.", + "tffeb92a2b93f05b9": "Log in to Natayark Network", + "tde40decda2d82a57": "Logged out!", + "t6ac08263271b6831": "Are you sure you want to log out?", + "tbfb33bbc5ca2d4df": "Failed to load Natayark user data. Please log in again in Settings.", + "t06649de34a56c4d8": "Natayark ID token has expired. Please log in again.", + "tbd60dbce32b2b1b5": "NAID access token is invalid. Try refreshing your login.", + "tbcd6771e08ec7cc7": "Query", + "td9b0c560be91190d": "Enter server address", + "t69d74b0366d76c34": "No server information", + "t192533042f7fe6a8": "Querying...", + "t2c4649245fcac966": "Minecraft server", + "t35c46ad240ea5881": "Server address too long", + "t08b3c0570d05c6c6": "Server returned empty data packet", + "t438efd6860601575": "Server disconnected before returning the complete status packet.", + "t4cbabb9022807441": "Server returned invalid information", + "ta3f6c3cac0cd706d": "Pong data must be exactly 8 bytes", + "t7422de751672e6d8": "Server disconnected before returning the pong packet, so latency could not be calculated.", + "tae5ead4d89074727": "Connection timeout", + "td1f6a584308bd107": "Read/Write timeout", + "t9166474cbc87daf1": "Unable to connect: {0}", + "t9cb4045de52a802c": "For ease of maintenance, this feature is not included in the Community Edition...", + "tf8934d32be002bd8": "Manual crash", + "t9ebbcada9e949dce": "Crash test", + "t9d209f342a1c637f": "Checking environment...", + "t9d2ca261281a158a": "Later", + "t1ab4459e28e8ffc0": "Required dependency \"{0}\" is missing.\n\nClick OK to open Microsoft Store.", + "t6565bf48c8899990": "Dependency check", + "t3f0bad9f8269d025": "A test utility operation failed. See the details below.", + "tbcc7b9fbf5dec68e": "PCL CE has launched games for you {0} times.", + "taa7108333483e90e": "View launch count", + "t8a991189eccf79e6": "Check server", + "ta333fb3e7b70ae12": "Failed to get achievement image. Please check for special characters.", + "ta07ae189359e4cdd": "PNG image (*.png)|*.png", + "t8003fe6ecd36de67": "Please enter a valid item ID!", + "t99ccd224125072c0": "Item name (ID)", + "t5e9d0ede025b4748": "Line 1", + "t8190cc058c7298e2": "Line 2 (optional)", + "t286ca3cb5a195748": "Achievement name", + "t1c85853c3c254289": "Preview achievement", + "t850de13a01d9b482": "Save image", + "t0538061cf3674619": "Custom achievement image saved!", + "taa78b565a7843433": "Custom achievement image generator (English only)", + "tff6bd08680bfc66e": "Image file (*.png)|*.png", + "t60132dc9543f632f": "Failed to generate avatar: {0}", + "t629bcd796ad7a1dc": "Avatar generated!", + "tb650356bb4c79cce": "Image size is incorrect! Please confirm you selected the correct file!", + "t36217e670f6e322e": "Save avatar", + "t3d047c95d6a59414": "Avatar saved!", + "tfbaf9e39bd12ffdf": "Please select a skin first!", + "t8e3726813b56a63d": "Select skin", + "t9d345873c5e799d2": "Avatar size:", + "tc93593d81c35f544": "Skin avatar generator", + "t0f0d83a17d0b20d3": "Cache cleared", + "t84693550d00e7f29": "Cleaned {0} files!\nPCL CE will restart...", + "td7430286fe835554": "Please close all running games first...", + "t74ee503b0170ace3": "About to clean game logs, error reports, caches, and other files.\nThese folders should not contain important files, but are you sure you want to continue?\n\nPCL CE will restart automatically after cleanup.", + "tdfab62e692507ce4": "Confirm cleanup", + "t9ee3364d93ebc1df": "No files to clean!", + "t2ffa8e0e69fa8eb3": "Clean game junk", + "tbc7d4caf5229b425": "Clean PCL CE cache, Minecraft logs, crash reports, and other junk files", + "t933c3667c10c70fc": "Please wait for all downloads to complete before cleaning...", + "t3766f8301b35b1b5": "Use PCL CE's high-speed multi-threaded download engine to download any file. Note: some websites may return 403 Forbidden errors and cannot be downloaded.", + "t52acd47244df9b29": "{0} completed!", + "t7c22b8a76fd86b5a": "Custom download file: {0} ", + "td94a7e10c577490a": "Custom download ({0}) ", + "te31cccd7bba006f5": "Save to", + "tc11330b85234f9c0": "Select", + "t71b07031e71eeba2": "Select save location", + "td1647ab99edddd86": "Custom download", + "tb8bcd45ac0952599": "User-Agent", + "t170aab66d43da5e3": "Your luck value is: {0}... {1}", + "tfabb859a49d376dd": "Your luck value is: {0}! {1}", + "t2a8e4073d6b41952": "Today's luck - {0}", + "t92efadc123f947dc": "(It's on a 0-100 scale)", + "t7fd041424ffd370e": "No way!", + "te811b65f2616eb5f": "100! 100!\nHidden theme... oh wait, CE probably doesn't have this...", + "t56d49c0764955373": "Aww...", + "tec3232f5a53179d2": "Barely okay...", + "t0ec61f06eac531ec": "Not bad, not bad", + "t9c489929c644d366": "Overwhelmingly positive!", + "tfa5e1078a914ee54": "So close to 100...", + "t803a2627eed3f457": "Today's luck", + "t5aaee84c9765dc1f": "This shortcut will not be automatically removed. Please remove it manually before deleting/moving the launcher.\n\n{0} location: {1}\n{2} location: {3}", + "t885097e93a5181f6": "Shortcut created on {0}", + "tf48d334495f6e4f4": "Desktop", + "t93078affa070bd25": "PCL CE{0}", + "tf53f86bacb454243": "Select shortcut location", + "t5f8fc718797aca7f": "Start menu", + "taf852212987fc97d": "Create shortcut", + "t32f82c230c13af78": "Create a shortcut to the PCL CE executable", + "t729a19fc26d3c5ba": "Fetching skin...", + "t9c60961ad4f24e72": "This is not a valid ID...", + "t23f40c8649af757e": "Player name", + "t5536d6e5e12eff18": "Player {0}'s skin saved!", + "t3b9c27e43bbdafc2": "Download a player's official skin", + "t3c442d1005e8ff50": "Skin fetch has been rate-limited. Please try again in 5 minutes!", + "te3b46bf6b16f0ef3": "A new launcher version is available ({0} -> {1})\nUpdate now?", + "t06ca3ef56c8ea79a": "You are using PCL CE from PCL-Community. Please DO NOT report issues to the original repository!\nPCL-Community and its members are not affiliated with LTCat (龙腾猫跃), and do not guarantee your usage.\n\nIf you downloaded PCL CE by mistake, we recommend using the original PCL instead.\nIf you downloaded PCL CE by mistake, we recommend using the original PCL instead.\nIf you downloaded PCL CE by mistake, we recommend using the original PCL instead.\n\nDifferences from the original version:\n- Themes: only some fixed blue themes; no plans to add new themes.\n- Toolbox: some content from the original version is missing (Echo Cave, Don't Click).\n\nThis message will be shown once after a launcher update.", + "t508475c13584c58c": "PCL CE notice", + "tedea985a6324004e": "Failed to get launcher update. Please check your network connection.", + "tcd5f4b92afe99822": "Update file not found", + "tb811dc3558bc7924": "An update operation failed. See the details below.", + "t4cd5fde8d16eefc8": "Update file SHA256 mismatch. Expected: {0}, actual: {1}", + "tc62696417dd23edf": "Unable to get update information", + "tec99e5c45d648fd6": "Update failed", + "t4f6bc8960e4c3922": "PCL CE cannot update because it was blocked by Windows Security or does not have sufficient permissions.\nPlease add the PCL CE folder to the exclusion list, or manually replace the current file with {0}PCL\\Plain Craft Launcher Community Edition.exe!", + "taa03f1972326ab1d": "PCL CE service", + "tc24a02bdf8950257": "Launcher update", + "ta2d3ec3bb4307280": "Apply file", + "td2dedb390499560f": "Verify update", + "t88c9e8ce41f5eb06": "Download latest stable", + "t60e91c6a0eec6622": "Download update file", + "t9133064e581c3481": "Failed to get announcement information", + "tff63af0c5f1a8797": "Get download information", + "t0e73771409eaf7c8": "Get version information", + "ta377055a04f9983e": "Failed to get version information", + "t7a6bafc9c85304a1": "Install update", + "tccfe46267f3cb7ca": "Prepare update", + "tbdff32cd1ef29c21": "Refresh settings UI", + "tc5c9e38f16f9f2aa": "Show button", + "t61f13cea13731d09": "Minecraft exited with an abnormal code and may have crashed.", + "tf46cf772aba4561f": "Crash analysis started", + "t962a19a6deb7171b": "Minecraft has crashed. Crash analysis will start in 2 seconds.", + "t32838cfc1676e42d": "Minecraft has crashed. Since crash analysis has been disabled, analysis will not be started.", + "t7fb5752a03c77ef1": "Minecraft error detected. Starting analysis...", + "t3d7323980d97dd61": "Minecraft hasn't finished loading and may have crashed.", + "t48f5d3e87238e153": "Minecraft log monitoring exited", + "t6ea9883b64f35d09": "FML window loaded: {0} ({1})", + "t2aa0e3cc14220312": "Attempting to force-kill the Minecraft process", + "tbe25012b3cc8a57b": "Failed to force-kill the Minecraft process", + "tb507ae799e29accc": "Minecraft process force-killed", + "t5e74e5851c668b93": "Process is still alive. Trying taskkill.exe", + "t58aa18dea58f8490": "taskkill.exe result: {0}", + "t1eeced21ea4715bb": "Force-kill failed: process exit timed out", + "t4399a57fec946ae9": "Minecraft loading completed", + "t6a7e7c2098dc1c96": "Detected close log: {0}", + "t2e57209c245a3b57": "Detected crash log: {0}", + "tcdf8d3495afcb330": "Minecraft exited with code: {0}", + "tcc639f4bf98d8a5f": "Log 1/5: Log output appeared", + "t9323d79d5fa03463": "Log 3/5: LWJGL version confirmed", + "te61a1b2541adbad7": "Log 4/5: OpenAL loaded", + "t0854eaaff4958645": "Log 5/5: Textures loaded", + "tf20362b3e39f3d9f": "Log 2/5: Game user set", + "t24fa88345de2f73b": "PCL CE cannot access the game window due to anti-cheat or security software", + "t6a16eeb2e864fed9": "Started Minecraft log monitoring", + "t0abb82c15cbd176d": "Minecraft window loaded: {0} ({1})", + "t2a25370f3f42378a": "Minecraft window maximized: {0}", + "tfdd8a487551ef56c": "Add an account or choose a profile from the list.", + "tfc45eb94060a2412": "Club announcements", + "tc9b9ae7a61444ab7": "Previous page", + "t8a8542f6964852dc": "Next page", + "tcc4b37166fcb77a3": "Club wiki", + "t527baa645f1698e1": "Sign-in and server guide", + "t88ecdc10bcaeed51": "Save appearance", + "t90516b535fd78607": "Use global Java selection", + "ta20ece0a9ee45404": "Use global memory settings", + "tffa1692cb8aef60b": "Use global launch options", + "tc8ea0b805c649d5f": "Save instance settings", + "tc8550237ba701f64": "Save settings", + "t70403791a99417bb": "Discard changes", + "t183725f0b131915a": "Select a compatible Java version for the instance. Instance settings can override the global selection.", + "t0d71b2213b336f25": "Use automatic selection", + "t9c584b2a81873930": "Discover Java again", + "t238772bfd1b0ebf5": "Use selected Java", + "td731ef0e7fd6bc2b": "Open Java certificate tools", + "td095e4ae28cbd58d": "Prefer the complete official manifest", + "t48c0b7fb7feac616": "Use HTTPS only", + "t258118497e278bf1": "Custom download sources and priorities", + "t68a317bb52086bfd": "Use custom source priorities", + "t49336686595ee9ff": "Minecraft game files", + "t5cd9eeef256e7cf1": "Home customization", + "t4c761a62d0857e35": "Show club introduction and notices", + "t4db9a8ff39d7bda9": "Show club server selection", + "t7ff87815a52623fc": "Choose home backgrounds", + "tb0962267b4c04ada": "Restore bundled background", + "t8aa5d1b4c3fc5be2": "Show the club logo at startup", + "t5a46fc326a59719b": "Show tips while launching a game", + "tcabc3ec0e94348b9": "Show club updates at startup", + "t848e79eebd3a9dab": "Use system backdrop effects, with a plain background fallback.", + "ta950dd1ab1c059dd": "Background images / video", + "t941935be29e9ad21": "Image slideshows are supported. Background video still needs a cross-platform player.", + "t6f894812df38768c": "Enable background slideshow", + "t7d035001b555125c": "Open images folder", + "tee1b60ff9e53a999": "Refresh background", + "t138d7c8b800614f6": "Open music folder", + "t958be7e98504adb7": "Refresh music", + "tc3396195e91ccdd8": "Play", + "tca4d973c0b006b75": "Stop", + "tc2e679a42feb5e22": "Title bar / Home / Navigation", + "t7de1743c39f80f24": "A local TXT/Markdown file or an HTTPS text document. XAML, HTML and scripts are not executed.", + "tf1bbb4dc6aade547": "Hide Downloads", + "t6f9e5d21f4feae5d": "Hide Tools", + "t58180fce3e44b99b": "Help make SHOU Launcher\navailable in your language.", + "t9d09c117cc732997": "Contribute translations", + "t6d82f15ee4690509": "Save and restart the launcher to apply.", + "tdcf34de5a7f40688": "Use DNS over HTTPS for direct connections, with system DNS fallback. Proxies keep their own DNS behavior.", + "t12cb30be6910fbe2": "username:password (leave blank to keep existing credentials)", + "t67ae2bf7dacfde5d": "Application data directory", + "t3c6cf2eb5d9a3c51": "Cache directory", + "tda99ea1331dc3046": "Open data folder", + "t8ec96af634a85bed": "Override Microsoft public client ID", + "tac8817889eec6bf0": "Leave blank to use bundled configuration", + "tca365f98a69ba937": "This launcher collects no telemetry. Connection secrets use the system credential store.", + "t2a2846c57eb53222": "Conduit Club · Shanghai Ocean University Minecraft club", + "t390454a193f8d16f": "Club website", + "t9167585eb2f64c3f": "Launcher source code", + "t065d53d95c055a59": "Version and runtime", + "tad5ff6fb4f25d7fb": "Contributors and copyright", + "t0d5ef03afd68266a": "Thanks to the original Plain Craft Launcher authors, PCL Community and all open-source contributors. Conduit Club maintains this launcher independently. Source history and licenses are included with the package.", + "t0e1c8682fb86f0bc": "Club branding and campus images belong to their original creators and the club.", + "t1352d0d826f739fe": "Legal notices and open-source licenses", + "t286dd76ac21c03cc": "Minecraft is a trademark of Mojang Studios. This project is not endorsed by Mojang or Microsoft.", + "t1c6c37490d081918": "View project licenses and notices", + "tf3a6bfd645ea015e": "Check for launcher updates at startup", + "t0680f1a5de11e1c6": "Check for updates", + "t8eaea891ab90f264": "Open releases", + "tee20b99fb2d36c62": "Download update package", + "tb899e958deffdd1a": "Show downloaded package", + "td7458d4306675d6f": "Feedback and suggestions", + "t17446947768a1524": "Include the version and sanitized logs. Never submit passwords or tokens.", + "td403a1b145ffc84d": "Open the project issue tracker", + "t0b919f782432f404": "Feedback", + "tdd5f95d8e6a7af24": "Search feedback", + "tf030dc0931d341f9": "View and export sanitized logs", + "te28be7098db113cb": "Refresh list", + "t4794ea837d52056f": "Confirm recycling the previewed logs", + "t8403e0cafe60b618": "Move to recovery folder", + "ta399efef8717c2c8": "Restore last cleanup", + "te60b6a604415f87d": "Java certificates", + "t67df947ba5c5c474": "Java certificate diagnostics and repair", + "t62c7a471a9e4bdc9": "Launcher logs", + "t686071c91036f6a1": "Select Java automatically (recommended)", + "t8b36707a1254b51d": "Global Java selected", + "t3cb588b9ae1a3bc1": "Discovered Java installations ({0})", + "t6c601d0509193732": "Microsoft ({0})", + "t4ba0bc300b36c2f6": "LittleSkin ({0})", + "t9dff44238967c42e": "MUA ({0})", + "t0b9091b472a2fafd": "Offline ({0})", + "tf96e4f69a7a7003d": "All accounts ({0} profiles)", + "tc761d9bb55bb7785": "{0} ({1} profiles)", + "t3c736a450fefae54": "Microsoft account", + "t79e22ad9c9ad455d": "Offline profile", + "t4a9352e9ccb3ce66": "Adding {0}. Select another sign-in method to switch.", + "t1ce02a0f37e5fb2c": "Using the built-in club photos.", + "t2717052f81ecc243": "Settings saved.", + "t7ebe0cee2e914a68": "Connection secrets are stored in the system credential store.", + "t8d9d7620ca6ace59": "Releases loaded. No verified cross-platform update package is available for this platform.", + "t1e0d3ca339308144": "Available releases loaded.", + "t8171ec8d4fc88d4f": "No published releases.", + "t064fa89fe2c29b1c": "Update package downloaded and verified.", + "t9ae933d139db7744": "No matching feedback.", + "t7bfbed49a0ffbd16": "Version v{0} · {1}", + "tdbf5e608fd8e4ff8": "Historical logs moved to the recovery folder.", + "te9e29d7f8a7a9ab8": "Historical logs restored.", + "tc3674929aa1556c9": "No historical logs to clean.", + "tc232a90747592e2d": "Operation cancelled or timed out.", + "t7c89b9a82411e1bc": "Settings exported. Accounts and connection secrets are excluded.", + "t3d4bde8a062869ec": "Settings loaded into a draft. Save settings to apply.", + "tcb4b372faf9c2b95": "User selected", + "tb92756269d3659d3": "Launcher managed", + "te26117dcb6537ae6": "Portable installation", + "t18e5843aa7b6d002": "Registry", + "t9bd76b73081a3a54": "System installation", + "t9b7824cefa1e8b16": "Discard changes", + "tcee766edcd150ddd": "Default home", + "t074939b7a33fdeec": "Web address", + "t57e88a43ef2b00ba": "Local file", + "t35e664d3a6e0509d": "Diana", + "t241450652225211b": "Garnet", + "td3f08a6ba56a166d": "Ocean blue", + "tb13d01dab9a04f6e": "Jade", + "t8bbade5c6104c27a": "A global animation frame cap still needs platform support.", + "t2f66cb92a4bbc34d": "Exports contain sanitized logs only. Historical logs can be recycled and restored.", + "t95c9829d9df09896": "System credential store available", + "t5bc5af409a3b50d4": "System credential store unavailable", + "ta0937d519f824727": "Do not notify", + "tafbf120f9931e200": "Choose home backgrounds", + "t50661c4f4ea2de29": "Choose title bar image", + "ta2ef09c6181de90c": "Choose a local home document", + "t8bd702c9e6aa6865": "Export launcher settings", + "tf70b568a3498b652": "Import launcher settings", + "ta9ce867e2aa99cab": "Export sanitized log archive", + "t1744d728d39313fe": "Choose Java executable", + "t72eede5bcc7fe4c8": "The service is limiting requests. Try again later or open the project page.", + "t35934c2944612350": "Cannot connect to the service. Check your network and try again.", + "t1826a485d82ea11b": "Minecraft runtime", + "t36887d9b2ad35a12": "Background images", + "tff13402cecbb9194": "Image fit", + "t9eaa61edf066946a": "Image opacity", + "t38feac1ef57f7530": "Slide interval (seconds)", + "t4b3b45a347eb3097": "Club photo slideshow", + "t4a14255e93d43a6e": "Includes the campus lake, SMP plaza and Create statues. You can also choose local images. Turn off the built-in slideshow to show the theme background.", + "t79b21b81fac46f51": "Choose images…", + "t8b4261294f8e2c90": "Restore built-in images", + "te360fc3377b293ec": "Open image folder", + "t9f8c282f835b62a6": "Play music when the launcher opens", + "t4fa138a971d33ed5": "While a game is running", + "tb0d3d0cf02bc6965": "Open music folder", + "ta45897804b7572f2": "Title content", + "t1c623e5fbeffe5f2": "Home content", + "t33e69e113e978c4e": "Choose local file", + "t8f6178afb7effd3b": "Check an entry to hide it. Press F12 to temporarily reveal all hidden features, then press it again to restore your choices.", + "t8f1070ca7452f4e4": "Settings pages", + "t35657b39fa109dc8": "Tool pages", + "t09a4e2154c4b5496": "Instance pages", + "t40a782d43a96162f": "An independently maintained cross-platform launcher by Conduit Club, with historical roots in PCL-CE. Development and maintenance: Moeary and Codex.", + "t199e232f9d511523": "Original author and PCL-CE", + "tb7f16d747c68864b": "Club acknowledgements", + "ta77db7e0a10ccaa1": "Historical project acknowledgements", + "td67e813c1227f6c4": "Club contributors", + "taffcee307cfb401f": "Credentials use the system secure store and logs stay on this computer. Sign-in, downloads and online content contact the services you select. You decide whether to share logs. This version has no multiplayer lobby and does not automatically download or replace the launcher.", + "td4ec05e2afa60282": "Original copyright notices for historical code and assets are retained. Project licenses and attribution are included in the package.", + "t3497c1bd86a1652c": "Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.", + "td56ddef7d359808b": "Privacy and network use", + "t38b899b44339abff": "PCL-CE source code", + "t17885ed3ef564375": "Historical copyright and legal information", + "ta4fc763353b3d343": "Original project source code", + "te38b8d16e03d2b2b": "Aimisi", + "tac2af1d3e91a02b4": "Elegant", + "t86df2a26066e2d44": "Smart fill", + "t715bb134d936a2cf": "Fit", + "tfef304a69096b2c3": "Top left", + "tddf11974a72b465a": "Top right", + "t8537c17b8e3e8ce3": "Bottom left", + "teae5305a5c764661": "Bottom right", + "t9c9ee9a819996bcb": "Keep playback", + "t2eecbe60f6b9a3a0": "Stop while a game runs", + "tb2037ea3cdfe898d": "Play only while a game runs", + "t6c031fd1176a21a1": "Original author of Plain Craft Launcher", + "tff99556c2e15299d": "Developers of Plain Craft Launcher Community Edition", + "t9e9ccc1de1a670e6": "A cross-platform version maintained by the club", + "t593ad70c186de5ea": "About the advisor", + "tc7ffae102dfe5b82": "About the contributor", + "tc44abb25c3f6a0c0": "Project development and club maintenance", + "t1febec6381b91710": "Development collaboration and testing", + "t0d72e06a12578fe5": "Historical project support and contributions", + "t91fe7f73195932cd": "Historical project contributor", + "tb07a140754883838": "Project website", + "t04913c227839e308": "Website", + "t9247bbb40a81f614": "Open MC Wiki", + "t2a1f44f78b386264": "Some settings could not be saved. Check the input or secure store, then try again.", + "tfb286866866dc5db": "Valid input is saved automatically.", + "t148314849d1e3c95": "Show the club logo at startup", + "t678463fdac2d7c9a": "Show tips when launching a game", + "tb25cf527bf367792": "Show club introduction", + "t3fd014a1f6ed480b": "Show servers", + "td854044d5ce6cd2a": "Launcher source code", + "t128ac8e6ea60cf3e": "Special thanks · Club advisor ZRY", + "tcec91059e352bbf6": "Special contribution · ZST", + "t7bf1d59e03f40c93": "Provided major support in founding the Conduit Club Minecraft society.", + "tcfa4da390461a001": "Contributed to the club’s virtual reality and Unity projects.", + "t3bdf6176817da848": "Minecraft download mirror", + "tee655b06ea41df64": "Minecraft mod information in Chinese", + "t7d35a66894138d75": "Historical networking component; multiplayer lobby removed in this version", + "t9cea4540daa70a2b": "Automatic save timed out. Some input has not been saved; please try again.", + "t065c765a90695511": "Invalid source configuration: ", + "t03b172ea135d9c4f": "Source order changed. Valid settings are saved automatically.", + "t4d5b21631fe5f50b": "Settings saved automatically.", + "t778ba19ffb5befef": "Address changed. Valid input is saved automatically.", + "t370446e738783d11": "Secret changed. Valid input is saved automatically.", + "te53967ca1ff3a96a": "No WAV, MP3 or M4A files in the music folder.", + "t4f078f908f8c3017": "Select downloaded file…", + "t75e2fabcb4a0f801": "Check again", + "tacf2725262be5b6a": "Some files must be downloaded from the author’s website. Select the specified files to verify them, then confirm the instance name and install.", + "tb577306338735d2a": "{0:0.##} MiB · Official file {1}", + "t936bcd6c422aeee8": "Checking the pack and supplied files again…", + "tbf228f4caebf121f": "Reading the local modpack…", + "td336f829b21272c6": "The pack changed after a file was supplied. Select and check it again before installing.", + "t8fd6c3c0f5c02fc8": "Pack checking was cancelled. Check again to continue.", + "t92acca5c8bbcd8b2": "Verifying the supplied file against the official version…", + "t0a20c4da3cfd03e3": "Supplying the file was cancelled. Pending files are kept; retry or check the pack again.", + "tf5ea7220cf203860": "The archive changed and the new file has been checked. Review its contents before installing.", + "t6474fb292922dfd9": "Select the optional downloads you want. Unchecked downloads will be skipped.", + "t7be8aae334cc8c1c": "Continue with this selection", + "t3370edc05677b48e": "Optional files", + "t6f8123ec68a2fe43": "Check selection and import", + "tfd1a09022fd5e712": "Optional choices changed. They will be checked again before importing.", + "t99d0c7ca04291297": "Optional choices changed. They will be checked again before continuing.", + "tef2ea260c348e6b1": "Choose optional files", + "t868e29a93bc2edbc": "Choose optional downloads, then continue. Unchecked downloads will be skipped.", + "t19a32d238fa54100": "Cancelled. Retry to review the optional files.", + "t531d746fbf2ba539": "Official name is not verified yet. Selecting this file will check its identity and availability.", + "t4d761bdef85f56ea": "Cancel check", + "ta96c9a854190874d": "Sort", + "t02f56db87dcd6547": "Export resource information", + "t25360e782ef5c106": "Select / deselect all", + "t99f8f4f97cfdbdf1": "Update selected", + "t26008950621fcb56": "Enable selected", + "tc35ebeed062b488a": "Disable selected", + "t435bf8a234fde6f2": "Delete selected", + "tba35dc23b245e61e": "Trash", + "t557e7ef05116a514": "Mod trash", + "t675c2e148a7a9305": "Restore selected entry", + "t9071cfe7cd010bb1": "Close details", + "t9756c549e06b91d5": "Update and back up", + "t6a5b1cb18fb64c5c": "Move to trash", + "t526fed29561d2913": "Date added", + "t5f80b5165d7c3b68": "Duplicate project", + "t1082ee1202a56dfa": "Update available: {0}", + "t5a5c8318ef649672": "{0} selected", + "t73d55515ac08cf1b": "{0} ({1})", + "t30c3a408785cce93": "Install local resources", + "t5bb18dfb347ac7c1": "Install {0} files into {1}?", + "t9f7da21680020bda": "Move the selected mods to this instance’s trash?", + "t9bc2480077924309": "Update the selected mods and back up the originals. Pack-specific versions may be unsuitable for individual updates.", + "t19612b3051d19e56": "Check cancelled. Mod files were unchanged.", + "te8bc17581c32891c": "Checking installed mods and official updates; you can cancel at any time.", + "t5c6117ff57e7aa8b": "Check cancelled or failed. Mod files were unchanged.", + "t4d91f7765d314387": "Back to mods", + "tdf7392cc96bedc51": "Reload", + "t1b81f418a6111381": "Shows file declarations. Version constraints, loader selection and conflicts still need checking.", + "t5d8e40ab8b8f94b5": "Search mods, embedded IDs or dependencies", + "t89a97de8a0609e18": "Only files needing review", + "t9c94bd277ebaa24f": "No matching mod declarations.", + "t8459c09fb5eaedee": "Dependency declarations and sources", + "t71c172084904b191": "Standalone and embedded declarations", + "t6e15853f4883ed66": "{0} files · {1} declaration nodes · {2} dependencies", + "t2f18915b108603fb": "Read cancelled. You can reload.", + "t9898793b3bfdbb8e": "This service cannot read mod relationships.", + "t9299b98ddf31792f": "Reading mod and embedded declarations…", + "t6b8b79b5fc1d2523": "Some declarations could not be read. Check file details.", + "t78911af0e24d1c03": "Declarations loaded.", + "t9f2a4477c71eba5f": "Read failed: ", + "tbc63ac5f5dac6061": "Standalone declaration found", + "te4b696356a6bc6e4": "Embedded declaration found", + "ta11f747ff407906f": "Found only in disabled files", + "t57cd2b6e160faf99": "No declaration found", + "t403c57fbc15051a5": "Read incomplete; unverified", + "t847efd925c48a35a": "The file changed during reading. Reload it.", + "t4e601080b90761eb": "Cannot read the archive or mod declaration.", + "t0b8bd4e1afa58007": "Embedded parsing reached its depth or node budget. Results are incomplete.", + "tdc7ae7f51b9bf127": "Too many archive entries. Declarations are incomplete.", + "t5dca86d1deac1357": "A compound Quilt dependency declaration was not parsed.", + "t47bbf57ae4694f8d": "Some mod declarations could not be parsed. Results are incomplete.", + "tc1facef2a191a7a2": "An embedded archive is missing, damaged or beyond the read budget. Results are incomplete.", + "te13ab655d6ca1ce9": "Invalid embedded path declaration. Results are incomplete.", + "t3b83ff6a70abab8f": "Check mod updates", + "tde3c35c2a69a3102": "Sort:", + "t9f07d2ce4115f575": "More actions", + "ta6bccf6ff247cfbb": "Update mod", + "tfe76e31d24ddf33c": "Reveal file", + "tf8bbcd6fea98c392": "Too many resource archive entries to read display metadata.", + "tdc5a86024be7f4e7": "Could not read resource archive display metadata.", + "t53a1187ad2615275": "Checking resource display metadata. Local files remain available.", + "tdb0d83b922a85498": "Verified metadata for {0} resources; {1} keep local information.", + "t1516861defba32c5": "Resource metadata is unavailable. Local files remain available.", + "tf947d382ebca9b6d": "Cursed", + "tc13491446baa0ac5": "Semi-realistic", + "t93294b654c4017ad": "Realistic", + "t1b9d21130542b840": "Potato", + "t4832877d9fac3e5a": "Low", + "t118c0c03438634e0": "Medium", + "tc63c900816036798": "High", + "tf31c4407739e6a75": "Ultra", + "t891f1255618481d9": "Bloom", + "ta0fb1c62d0e8ce9e": "Shadows", + "t73f33d69d8a6d5dd": "Check resource updates", + "t9caca24bf3f774c1": "Update resource", + "tad98c42548d7e004": "Update resources and back up", + "t6c0974f8b3ae5502": "Check cancelled. Resource files are unchanged.", + "tff3224023f2754e4": "Check cancelled or failed. Resource files are unchanged.", + "t8b0baeea2637137b": "Checking installed resources and official updates. You can cancel at any time.", + "tda0eb8e6126419f1": "Checked {0}/{1} resources", + "td27ec7c9359c3ba6": "Checked {0} resources; found {1} release updates for this game version.", + "t0fc9e0c979426199": " {0} could not be verified and are not marked up to date.", + "t2b8756c51d6bef60": "Could not verify resource updates: ", + "td10cf31d6f2c6ff2": "Updated {0}/{1} resources. Original files were backed up.", + "t5392c3d1e9da59c2": "No updatable resources match this filter", + "t43e6c7570b77f609": "No resources match this filter", + "t72e80862791a8109": "This release declares dependencies. Review its details; only the selected file was updated.", + "t430446a51dcd8554": "Files go in shaderpacks; enabling shaders requires a compatible rendering mod.", + "tf5347d661a21ee12": "Resource release dependencies: ", + "t92707d3318b3d04f": "Required", + "t537352400c495fb8": "Optional", + "t975f9da19eee1b16": "Embedded", + "te146d0aa4f6d8f81": "Move the selected resources to the instance trash?", + "t28b4afd6d21a67d5": "Resource trash", + "tfe4e0d291b7478d9": "Restore selected", + "tafd4b783536b8297": "Close", + "taf9ab85222e0c4a2": "View download details", + "t7f9920e38dec6df9": "Move resources to trash", + "t102784dad55e3a72": "Read resource trash", + "te45a070e24ec96a8": "Restore resources", + "t9fcbeab9ecfe4f6f": "Load more screenshots", + "t2413ba708781d909": "Showing {0}/{1} screenshots", + "t92b9bae024bb51b2": "Choose files and folders", + "t8e7847be62b68c2b": "Parent folder", + "t36aff47e9da99ebf": "Selecting a folder includes its contents; open it to select individual files.", + "tf88182fcd575be3a": "Open", + "t18e57daa4a061a64": "Clear extra selections", + "t3bc3f948d49c7fae": "{0} extra files or folders selected", + "t2d962a4add956924": "Could not read the export folder: ", + "t728b49f9cdb72476": "Search favorites: name / author / source / type", + "tf06fb3f71f88681b": "Refresh server status", + "t613172aeea9e8c19": "Response {0} ms", + "t8bbb38569df143b3": "Querying…", + "t84d11bab76dc6066": "Not queried", + "t1ad2d5463a1d2b08": "Play", + "t7dc5cd68ff29a1fd": "Edit server", + "td52291a26b912a86": "Launch this instance and connect to the server", + "t80d2d8145a503816": "Open log file", + "t440f779300918915": "Open screenshot", + "t314bfb6dc41fdc10": "Load favorite icons", + "tbea9982da7d72327": "Double-click or press Enter to open this folder", + "t0d6324caf8aa6c05": "No matching favorites", + "t02aa1fe8479d44bf": "This folder is empty", + "t2172cb489d3eecd9": "Share favorites", + "tf074def5de38a40a": "Manage folders", + "t50ef2f4cf6a46924": "New", + "te965cb43b78bde3e": "Remove folder (keep favorites)", + "t61ec1c040213fb45": "Paste a WPF favorites share code", + "t8d8d657d7a815657": "Import into this folder", + "t9f4c783b28cc94e0": "Select / deselect all", + "t1113af786ccfd852": "Remove selected favorites", + "t43f9d4de56f54085": "Prepend classpath (one JAR per line)", + "t12ee24baeddab047": "Detailed game logging", + "t50c37782012c26fb": "Additional renderer and compatibility options are not yet available.", + "t93b053bff32f3814": "Default favorites", + "t9f4a9b9e966deaeb": "New folder", + "t69575bb70908edff": "This folder has no favorites yet.", + "t2d22af42a79f019a": "Edit note", + "t8d9284d5e4936a9b": "Remove from this folder", + "t4f8b0ab088ec2524": "Save note", + "t920fe6ef0593c099": "Delete folder", + "t7203bfcf26c3119f": "Import WPF favorites…", + "t9ffc0154b97daeb9": "Confirm folder deletion", + "t0d1f81d513556baa": "Search favorites: name / description / tags / notes", + "t2492d028220961df": "Copy to folder", + "ta2defe28a03a69cd": "Move to folder", + "tf57493dabb517cf5": "Download selected…", + "t96f7895e01f2468d": "Retry unresolved favorites", + "t29cdbd447a3d3dee": "Download favorites", + "t8be216be7a848dd3": "Game version", + "t22120d4c037ee575": "Choose folder and download…", + "tdca2fe47daa24930": "Choose WPF favorites configuration", + "t8c9d1e22fbe8f0eb": "Choose download destination", + "tdaede9881787abe7": "Note", + "t0c8ba7104e9ab134": "The selected favorites have no common loader or game version.", + "t8599f06038ef6f14": "Choose a common version and destination. Downloads save files without installing them. The selection may include beta versions.", + "tdcc9061fb4159860": "Could not read all selected projects; nothing downloaded: {0}", + "t51741c58faab5884": "Unresolved favorites: {0}", + "t87ea224d0bd738bd": "Delete folder “{0}” and its favorites? Other folders keep their items.", + "t3e4097f052c17323": "Saved {0} files; reused {1} existing files.", + "t7a0a6ccb8c6ad857": "Incomplete: {0}", + "td09ae8da9937c141": "Imported {0} favorites.", + "t70f9b6f26de2f4f2": "Could not resolve (retained for retry): {0}", + "tded2e7766fd4567e": "Download cancelled or failed; completed files are retained.", + "tfd2d4eb005e182d0": "Custom JVM arguments are passed to Java unchanged. Quote values containing spaces.", + "tfebb5a932e21b5eb": "Custom JVM arguments are passed to Java unchanged. Quote values containing spaces.", + "t53a59354361e5939": "Authorize Keychain access", + "t50a626534809dffa": "Allow this updated launcher to read macOS Keychain. Your existing sign-in credentials are preserved.", + "t3b2133aceb4fb225": "Initializing Minecraft", + "t0facea6421e1fea3": "Return to launcher", + "tb80a7249a2b7bc9e": "Waiting {0:0} s for the game window…", + "t56c84f1069b65b44": "Game process started; window not yet confirmed" +} diff --git a/src/SHOU.Launcher.Desktop/Localization/Resources/es-ES.json b/src/SHOU.Launcher.Desktop/Localization/Resources/es-ES.json new file mode 100644 index 00000000..f6ca4b1d --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Localization/Resources/es-ES.json @@ -0,0 +1,4 @@ +{ + "t315f7b86bc870e93": "es-ES", + "tf16855db45e76615": "Español (España)" +} diff --git a/src/SHOU.Launcher.Desktop/Localization/Resources/fr-FR.json b/src/SHOU.Launcher.Desktop/Localization/Resources/fr-FR.json new file mode 100644 index 00000000..fdf17ceb --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Localization/Resources/fr-FR.json @@ -0,0 +1,248 @@ +{ + "t315f7b86bc870e93": "fr-FR", + "tf16855db45e76615": "Français (France)", + "tb709766dafadfeba": "L'animation a échoué. Veuillez consulter les détails de l'erreur.", + "t789c57b570ee950c": "L'opération sur un élément de l'interface a échoué. Veuillez consulter les détails de l'erreur.", + "t9dc0825fba5422e4": "Chargement...", + "td1d044826a45ef65": "Échec du chargement.", + "t38a8cdb210598179": "Les conditions réseau sont mauvaises. Veuillez réessayer plus tard ou utiliser un VPN pour améliorer la connexion.", + "t13a46616e16fe5e6": "Erreur inconnue", + "teaa048da7bbf7eef": "L'opération de la boîte de dialogue de message a échoué. Veuillez consulter les détails de l'erreur ci-dessous.", + "t348f1cf1243e74bc": "J'ai compris", + "tfe2daed4a4a6c7d7": "PCL CE a détecté des problèmes d'environnement au démarrage:\n\n{0}\n\nSi ces problèmes ne sont pas résolus, certaines fonctions risquent de ne pas fonctionner correctement…", + "t57a67439a449f9ac": "- PCL CE est en cours d'exécution depuis le dossier de téléchargement de logiciels sociaux tels que Discord, WhatsApp, etc. Veuillez envisager de le déplacer vers un autre emplacement, sinon cela pourrait entraîner la perte des sauvegardes de jeu ou des paramètres", + "t3d0c9cba3a1c81e9": "- Votre système est en 32 bits, ce qui n'est pas pris en charge par PCL CE ni par les versions récentes de Minecraft. Il est fortement recommandé de réinstaller un système 64 bits avant de jouer", + "tcdfc824df0a3af89": "- PCL CE est en cours d'exécution dans le dossier temporaire, veuillez extraire PCL CE de l'archive avant de l'utiliser, sinon cela pourrait entraîner la perte des sauvegardes de jeu ou des paramètres", + "t41f54b1baa2f856a": "Avertissement d'environnement", + "t567a304e1b960dfb": "- La version de Windows ne répond pas aux exigences recommandées, Windows 10 1809 ou version ultérieure est recommandé, il est conseillé d'envisager une mise à niveau de Windows", + "t3f828f9d60fb401d": "Chemin d'accès de PCL CE : {0}", + "t29b3a1b57e5b5780": "Échec de la récupération", + "ta1fdb416d2ff82b0": "Erreur d'initialisation de PCL CE", + "t11036031881d1a5a": "Le chargement de la tâche a échoué. Veuillez consulter les détails de l'erreur.", + "tf56c6c82203b33f6": "Astuce", + "ta8b7a4480407ac8a": "Avertissement", + "t589b1ae54117ebf4": "Ce n'est pas un fichier JSON valide", + "t35bcad5bb280902d": "Téléchargé {0} fois", + "td37563c31d52408d": "{0}k", + "t87328c2970c0949e": "{0}M", + "t5749d79515962393": "dans {0}", + "t4b7f9dda7314e6c4": "il y a {0}", + "tcb9c3d54dc149d46": "Copié avec succès !", + "tb1f6d08a33e99468": "Impossible de copier le texte, le presse-papiers est peut-être occupé par un autre programme.", + "ta54a0add54472cb1": "Ne plus afficher", + "t4afad295c7582adb": "Collé {0} fichiers et {1} dossiers.", + "t5c55a67935af8f45": "Tout", + "t7eb336e42cb5076b": "Automatique", + "t4eafa9e925b30bcd": "Personnalisé", + "t844b8cc8dff7c1d8": "Par défaut", + "t31b86e9372ca7d41": "Je ne sais pas", + "t0c70665b6eb65f1a": "Non", + "tb5141d3d19e9a048": "Oui", + "t4d8c1c5b42830791": "Inconnu", + "t464a8e0d77bb6889": "Annulé !", + "t09a4e5504e488a8c": "Échec :", + "tbe5b5900c14f799e": "Succès !", + "t905819e2e3a059a0": "Accepter", + "t572cf45ba43634b3": "Retour", + "t2cd0f3be8738a86c": "Annuler", + "t3fd47edce45b3603": "Fermer", + "tfac2a67ad87807c4": "Confirmer", + "t7c9691192f1b7340": "Continuer", + "t63d90d977348ab1f": "Copier", + "t136de7a8c46fc803": "Refuser", + "t2f9daa828907b93f": "Supprimer", + "t4673a23061656125": "Télécharger", + "t65622e8ee9fb116b": "Initialiser", + "te8f88f51ccb085ea": "Installer", + "tc771248e511fbf93": "Ouvrir", + "tfcf8b4bff0df782d": "Ouvrir le dossier", + "t4ce4c98eb27e4b65": "Remplacer", + "taee88743413144a2": "Actualiser", + "tcb5d682bac3d1a2d": "Réinitialiser", + "t44ce7ae909bbb28b": "Rechercher", + "tde6811e73d403172": "Journal des modifications", + "t3330131bf7bfcda8": "Cleanroom", + "tde7b2b8384b81848": "Fabric", + "taa03a58dd655f242": "Fabric API", + "t8899ecd1626db63d": "Forge", + "t65003c7a186430e8": "Iris", + "tecd1401bc618b41f": "LabyMod", + "t80c7dfd19f110c47": "Legacy Fabric", + "tcc183d69f036c82a": "Legacy Fabric API", + "td62e27eea8fb1ca9": "LiteLoader", + "te098b8a25b0a7a26": "Minecraft", + "t3803dc90d9f8578d": "NeoForge", + "t333a55aef76cda96": "OptiFabric", + "tb1b36951dde91b4c": "OptiFine", + "tb0c25286507fdb23": "Quilt", + "tc0028b730280136e": "L'initialisation de la configuration a échoué lors de l'étape {0}.\n\nLe fichier de configuration situé à {1} contient des données invalides et a été sauvegardé vers {2}.\nPour éviter que le problème ne se reproduise, PCL CE a tenté de restaurer une version précédente si elle était disponible. Si vous avez modifié le fichier de configuration manuellement, corrigez le problème et remplacez le fichier actuel.\n\nSi vous ne savez pas ce qui s'est passé, vous pouvez ignorer ce message pour le moment. Après le redémarrage de PCL CE, les paramètres concernés peuvent revenir à leurs valeurs par défaut, mais l'utilisation normale ne devrait pas être affectée.", + "tee2d6eb8cace92f1": "L'initialisation de la configuration a échoué lors de l'étape {0}.\n\nLe système de configuration n'a pas pu être initialisé. Corrigez le problème et redémarrez PCL CE.", + "tb37790547db1b6de": "Le système de configuration a échoué lors de l'étape {0}.", + "t1ba68cce121c1664": "Échec de l'initialisation de la configuration", + "t3e8dc438a4715f1c": "Impossible d'enregistrer le fichier de configuration.\n\nChemin : {0}", + "tc6070f450211044a": "Échec de l'enregistrement du fichier de configuration", + "td88b15f7379837c6": "L'analyse du crash a échoué. Veuillez consulter les détails de l'erreur ci-dessous.", + "t37c42c65d9b0a02b": "Exporter le rapport de crash", + "t90e01acb5c9edd35": "Aller modifier les paramètres", + "t6598755879490792": "Modifier les paramètres", + "tb56dacc6615f683f": "Minecraft a rencontré une erreur", + "te3ba07c8080abe28": "Résultat de l'analyse du rapport de crash", + "t092894a3fee643a2": "Copier les détails", + "td6e7f1232d85007c": "Impossible d'exporter le rapport de crash.\n\nChemin cible : {0}", + "t67bd98cc6ddcf702": "Impossible d'exporter le rapport de crash, et le chemin cible est indisponible.", + "tc81aa8bc768648e4": "Échec de l'exportation du rapport de crash", + "ta01b89841daf67e3": " - {0}", + "tcefa7588fe99aa24": "Cause\n{0}", + "t7fc9c5a1ce0a4aa4": "{0}\n\n{1}", + "t35c22b1afbd3fb7d": "Cause\n{0}\n\nCe que vous pouvez essayer\n{1}", + "tfae615e265a131a0": "Les mods suivants ont causé l'erreur:\n{0}", + "taed90775b693b199": "Le mod {0} a causé l'erreur.", + "te13f6b316936a6df": "Des mods en double ont été détectés:\n{0}", + "t50dbecc31daa8e89": "Des mods en double peuvent être installés.", + "tff2461be8d7ecdbe": "Un fichier de mod extrait a été détecté.", + "t8aadd91a598f41b4": "Fabric a peut-être fourni un message d'erreur.", + "t347e533b23891be0": "Fabric a fourni le message d'erreur suivant:\n{0}", + "t65d6d0dc70d111b6": "Fabric a peut-être fourni une solution.", + "tea36408934d9b781": "Fabric a fourni la solution suivante:\n{0}", + "td3423bf6cf1ac47e": "Certains fichiers ou contenus n'ont pas passé la validation.", + "t6e70a8befb3cb889": "Forge a peut-être fourni un message d'erreur.", + "t61c8944a2b8d1708": "Forge a fourni le message d'erreur suivant:\n{0}", + "t02070df4122c1669": "Le pilote graphique peut empêcher le jeu de fonctionner correctement.", + "t7f62bb1c94fad1c4": "Il y a peut-être un problème avec le pilote graphique, ou le jeu n'utilise pas le GPU dédié.", + "t1fa875bbfad5bdbd": "Les mods installés peuvent être incompatibles.", + "tc837e5874afba4f3": "Les mods installés sont incompatibles:\n{0}", + "taa6fd4a25de9af40": "L'installation de Forge est incomplète et des fichiers nécessaires sont manquants.", + "ta966d3f72f113711": "Un nom de fichier de mod contient des caractères spéciaux que Java ne peut pas utiliser.", + "tbc852193d70dc63a": "La version Java sélectionnée est incompatible avec le jeu ou les mods.", + "tfe816d1d201e7521": "La version Java sélectionnée est trop récente pour ce jeu ou ce chargeur.", + "t94478e651aa093cc": "Certains mods manquent de dépendances ou ne correspondent pas à la version actuelle de Minecraft.", + "tb1b53c63283e5851": "Certains mods manquent de dépendances ou ne correspondent pas à la version actuelle de Minecraft:\n{0}", + "t7bfdce0244ad6cb5": "MixinBootstrap est manquant, le jeu ne peut donc pas continuer le chargement.", + "t164eb28a4e0b0b1c": "La configuration du mod {0} n'a pas pu être lue.", + "t416f25fa791c1401": "Le fichier de configuration {1} du mod {0} n'a pas pu être lu.", + "te316ac44fdc6a01e": "Les mods suivants n'ont pas pu être initialisés:\n{0}", + "t62b59361f7a24bb3": "Le mod {0} n'a pas pu être initialisé.", + "t328cee8872725e35": "Le chargeur de mods a peut-être fourni un message d'erreur.", + "te9c9c782cbe7f56d": "Le chargeur de mods a fourni le message d'erreur suivant:\n{0}", + "tf93eab675ec07cc7": "La version du chargeur de mods est incompatible avec les mods:\n{0}", + "td99f060b8fee8c31": "L'injection Mixin a échoué pour les mods suivants:\n{0}", + "t08c1c3f097a09bd6": "L'injection Mixin a échoué pour un ou plusieurs mods.", + "t060586dc3c6f645b": "L'injection Mixin a échoué pour le mod {0}.", + "tedf284fafab771a4": "Certains mods installés nécessitent Java 11 ou une version ultérieure.", + "t33457310a91f25bb": "L'instance JSON contient plusieurs arguments de version Forge.", + "t3dce704b11144264": "Night Config a rencontré une erreur lors de la lecture des fichiers de configuration.", + "t223b6e297e3f1ea6": "Le jeu a rencontré un problème, mais PCL CE n'a pas pu trouver de fichiers journaux associés à analyser.", + "t721280eb48614a27": "Une ancienne version de Forge est incompatible avec la version Java sélectionnée.", + "te235be5f2c1d3170": "Un pack de shaders ou de ressources peut avoir déclenché l'erreur OpenGL 1282.", + "td324d7778dee590f": "OptiFine peut être incompatible avec la version actuelle de Forge ou de Minecraft.", + "t5c7a6135b262daa2": "La version d'OptiFine sélectionnée a pu causer l'échec du chargement du monde.", + "td861c658ccadced7": "Minecraft a manqué de mémoire.", + "t92092d4764cdc3b6": "La résolution du pack de ressources est peut-être trop élevée, ou la carte graphique n'est pas assez puissante.", + "t952fcf5717f69a2f": "Shaders Mod et OptiFine sont tous deux installés.", + "tfe91a807e1c93bad": "Certains blocs dans le monde peuvent avoir causé l'erreur.", + "t0d544eeed74643d0": "Le bloc {0} peut avoir causé l'erreur.", + "t9684df6fb67fb0be": "Certaines entités dans le monde peuvent avoir causé l'erreur.", + "t18c1d36bf63cd3b6": "L'entité {0} peut avoir causé l'erreur.", + "t478f32d6b069e44d": "PCL CE a trouvé des mots-clés possiblement liés dans la trace de pile d'erreurs:\n{0}", + "t9821a18bb44b4f64": "PCL CE a trouvé un mot-clé possiblement lié dans la trace de pile d'erreurs: {0}", + "tf2b1703200b5a7d5": "Le rapport de crash soupçonne que les mods suivants ont causé l'erreur:\n{0}", + "t71c045613b39e47a": "Le rapport de crash soupçonne que le mod {0} a causé l'erreur.", + "t8e272d4e6361dc6a": "Trop de mods sont installés, dépassant la limite d'ID d'une ancienne version de Minecraft.", + "t3692de4e77775b5f": "PCL CE n'a pas pu déterminer la cause exacte du crash.", + "t4a5b66423be7af16": "PCL CE n'a pas pu déterminer la cause de cette erreur.", + "ta4bc2716c341dd81": "PCL CE a détecté une cause d'erreur sans détails: {0}", + "t43cf814723a1317e": "Le jeu utilise peut-être un JDK, ou la version Java sélectionnée est peut-être trop récente.", + "t3812634fe44f8428": "Le runtime Java OpenJ9 peut être incompatible avec le jeu, les mods ou le chargeur.", + "ta35277063f85e469": "La sortie du jeu est trop courte pour que PCL CE puisse l'analyser. Sortie brute:\n{0}", + "taefe78048b57ce30": "Rapport de crash exporté!", + "t9c1e36ba3609be98": "Rapport de crash-{0}.zip", + "t886ad926d77454af": "Rapport de crash Minecraft (.zip)|.zip", + "tedfa33a3f470ecc5": "Sélectionner l'emplacement d'enregistrement", + "t2f22bf320de8842e": "CPU:{0}", + "t74d9fe9c21915402": "‐ Informations sur l'environnement -", + "t5de2b1e2f82cb09e": "GPU {0}:{1} ({2} MiB, {3})", + "t164346368c1e2e72": "‐ Informations sur l'instance -", + "t3516bd66c4307a00": "Code d'identification:{0}", + "t29dec972b0f2301d": "Version de PCL CE: {0}", + "t95e694b0f5218c2e": "Log4j2 NoLookups:{0}", + "t110b2c909c7403ff": "Allocation de mémoire (mémoire allouée / mémoire physique installée): {0} / {1} GiB ({2} MiB)", + "t78c1222202ada4e2": "Dossier Minecraft: {0}", + "taec071eef5251661": "Système d'exploitation: {0} (64 bits: {1}, ARM64: {2})", + "t1b273d70a2c6ad89": "Nom du profil: {0} (méthode de connexion: {1})", + "t90ba25961e9b7fe8": "- Informations sur le profil -", + "t40ef92a388943c46": "VM Java sélectionnée: {0}", + "tcd3f5d5d894f018b": "Répertoire: {0}", + "t96c914ddbe8b1681": "{0} [{1}] <-> intégré dans {2} ({3})", + "tf7b98113b3d7e402": "(Correspondance par ID de mod, peut contenir des faux positifs.)", + "td03f26cc4789ab87": "Ces mods peuvent entrer en conflit avec leurs copies intégrées et provoquer des crashs:", + "t484d55613910eb8c": "Aucun", + "t972ecc9b7c5256be": "=== Mods potentiellement dupliqués (installés séparément et intégrés via Jar-in-Jar) ===", + "t49a7be4efd82aa7d": "Aucune information Jar-in-Jar trouvée", + "tc86892d82348aa47": "=== Informations Jar-in-Jar (mods activés uniquement) ===", + "t8c44658a527fa3fa": "=== Liste des mods ===", + "t40c4aaef12065dc8": "Essayez de désactiver ces mods un par un, puis vérifiez si le jeu plante encore.", + "t0ef773efa1d6c031": "Essayez de désactiver ce mod, puis vérifiez si le jeu plante encore.", + "t3cf5aaea1a375671": "Chaque mod ne doit être installé qu'une seule fois. Supprimez les mods en double et relancez le jeu.", + "tb9fd451df6743922": "Supprimez les dossiers de mods extraits du dossier mods, puis placez-y les fichiers .jar originaux des mods et réessayez.", + "t82cacbaa10b2d0db": "Supprimez le jeu et les mods associés, puis téléchargez-les à nouveau.", + "td7dff1ed611e4192": "Suivez les messages du chargeur ci-dessus ou dans le rapport de crash pour résoudre le problème.", + "te3cbac4133b5f0c3": "Essayez de mettre à jour ou de rétrograder le pilote graphique. Si nécessaire, passez à une version plus ancienne de Java.", + "t37a7bed9e869ffdd": "Si l'appareil dispose d'un GPU dédié, utilisez-le pour lancer PCL CE et Minecraft. Vous pouvez aussi mettre à jour ou rétrograder le pilote graphique.", + "t6c5f9bddd09191c7": "Réinitialisez ou réinstallez Forge dans les paramètres de l'instance. Ne supprimez pas le dossier libraries lors de l'empaquetage d'une instance.", + "ta74d8b873c5078cd": "Supprimez ou renommez le fichier de mod concerné afin que son nom ne contienne que des lettres anglaises, des chiffres, des traits d'union, des traits de soulignement et des points.", + "tf943161bdf0bf23a": "Choisissez une version Java adaptée dans les paramètres de lancement selon la version de Minecraft et les exigences des mods.", + "t01a298487e13d230": "Dans les paramètres de lancement, passez à une version plus ancienne de Java, puis réessayez.", + "ta743b54ea7005725": "Vous utilisez une version obsolète de PCL CE. La mise à jour de PCL CE peut résoudre ce problème: Paramètres → Lanceur → Vérifier les mises à jour.", + "tf1cca4af375344b7": "Vérifiez que MixinBootstrap, le chargeur de mods et les dépendances associées sont correctement installés.", + "t18acbdf96509ed38": "Essayez de supprimer le fichier de configuration de ce mod, puis relancez le jeu. Si nécessaire, mettez à jour ou désactivez le mod.", + "t263b159ede4ee0f5": "Ouvrez les paramètres de l'instance et ajustez ou réinstallez la version du chargeur de mods.", + "t1c38b69975f05e15": "Désactivez les mods un par un pour identifier celui qui est incompatible avec l'environnement actuel ou qui pose problème.", + "tb4d7dfa3841d0d82": "Dans les paramètres de lancement, passez à Java 11 ou une version ultérieure, puis réessayez.", + "t9807131b9f1198a3": "Réinitialisez ou réinstallez Forge dans les paramètres de l'instance. N'utilisez pas un autre lanceur pour modifier la version de Forge.", + "tb40c547c1baa5d77": "Essayez de supprimer les fichiers de configuration des mods concernés, ou installez Night Config Fixes.", + "t7bf0db98218b182b": "Essayez de mettre à jour Forge ou de passer à une version plus ancienne de Java.", + "te0717c2695266260": "Désactivez les packs de shaders et supprimez les packs de ressources récemment ajoutés, puis réessayez.", + "t65e1cc2062bc5e1c": "Check the compatible OptiFine and Forge versions, then reinstall matching versions.", + "td96210b13c30bb9d": "Essayez une autre version d'OptiFine, ou retirez OptiFine avant de réessayer d'entrer dans le monde.", + "td1e6a0c6c71dd4b9": "Augmentez la mémoire allouée au jeu dans les paramètres de lancement, et supprimez les packs de ressources, mods ou packs de shaders gourmands en ressources. Vous pouvez également fermer d'autres applications avant de lancer le jeu.", + "t6037c82cd1aad293": "Supprimez les packs de ressources haute résolution ou réduisez leur résolution. Vous pouvez également mettre à jour le pilote graphique.", + "t4b0be12885f96fd3": "Supprimez Shaders Mod. OptiFine prend déjà en charge les shaders.", + "tef774a71e06ea3b4": "Créez un nouveau monde pour vérifier si le jeu fonctionne normalement. Si c'est le cas, les blocs du monde d'origine peuvent être en cause.", + "t36578bca83d6e618": "Créez un nouveau monde pour vérifier si le jeu fonctionne normalement. Si c'est le cas, supprimez ce bloc avec un éditeur de carte ou désactivez le mod qui le fournit.", + "tfd186fec088dae23": "Créez un nouveau monde et faites apparaître des entités pour vérifier si le jeu fonctionne normalement. Si c'est le cas, les entités du monde d'origine peuvent être en cause.", + "tc196a33781b8d496": "Créez un nouveau monde et faites apparaître cette entité pour vérifier si le jeu fonctionne normalement. Si c'est le cas, supprimez l'entité avec un éditeur de carte ou désactivez le mod qui la fournit.", + "t96c9a7cc1feae4e7": "Vérifiez les mods ou bibliothèques correspondant à ces mots-clés. Vous pouvez également exporter le rapport de crash pour plus de détails.", + "te844d9b041040315": "Réduisez le nombre de mods installés, ou installez un mod correctif qui étend la limite d'ID pour les anciennes versions de Minecraft.", + "t99a6fb13e2788e97": "Dans les paramètres de lancement, passez à un JRE standard ou à une autre version de Java adaptée à cette instance.", + "t4e87bb6471ea2e25": "Dans les paramètres de lancement, passez à HotSpot Java, puis réessayez.", + "ta5f76be10571a046": "Consultez le rapport de crash pour plus de détails sur la façon dont l'erreur s'est produite.", + "t0803604d1f34bea5": "Installez et sélectionnez Java 64 bits dans les paramètres de lancement, puis réessayez.", + "ta11e5707e9a8e208": "Utilisez un système d'exploitation 64 bits et Java 64 bits, puis réessayez.", + "t73ef595851576fe0": "L'opération de la page de téléchargement a échoué. Consultez les détails ci-dessous.", + "t0da20d8b9dc72593": "L'opération de téléchargement de ressources a échoué. Consultez les détails ci-dessous.", + "t22e87d6361c02327": "Impossible de reconnaître ou de récupérer le lien de la ressource", + "t303c30f301514250": "Rechercher des ressources", + "t3a8b232a834e2fa2": "Téléchargements", + "t63390385cc587605": "Abonnements", + "tb33f2e6617ec5db8": "Plus récents", + "t865854c27d879972": "Pertinence", + "tb067526e73e5b801": "Récemment mis à jour", + "tc79e8435b942cd5f": "Aventure", + "t18704a278632121e": "Animé", + "t829a35554fa12c2d": "Automatisation", + "tb33881e3833f9fc4": "Biomes", + "t8f7e2ad723ebd014": "Cartoon", + "tc091c98702a377f0": "Éclairage coloré", + "ta642a31e11820a4e": "Combat", + "t584741806d8311b9": "Créatif", + "t6895f601b65fdc10": "Fantastique", + "tac40db6607b72f56": "Décoration", + "t4fa164bacd535f85": "Dimensions", + "tde4e44264035c8d7": "Affichage", + "t9196f0338a8d16d7": "Énergie", + "t18de9f691b47fc6b": "Entités", + "tcbe3d3b779999843": "Équipement", + "t6a59fd2ea5a009c9": "Le contenu de la page d'accueil est mal formé. Veuillez vérifier les informations d'erreur suivantes:\n{0}", + "tb8784c8dd5636ff2": "Réessayer", + "ta6397f884141229f": "Le chargement de la page d'accueil est trop lent ({0} secondes). Veuillez signaler ce problème à l'auteur de la page d'accueil, ou cesser temporairement d'utiliser cette page." +} diff --git a/src/SHOU.Launcher.Desktop/Localization/Resources/ja-JP.json b/src/SHOU.Launcher.Desktop/Localization/Resources/ja-JP.json new file mode 100644 index 00000000..01a222e3 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Localization/Resources/ja-JP.json @@ -0,0 +1,18 @@ +{ + "t315f7b86bc870e93": "ja-JP", + "tf16855db45e76615": "日本語(日本)", + "tb709766dafadfeba": "アニメーション操作に失敗しました。エラーデータを見てください。", + "t789c57b570ee950c": "インターフェースコントロールの操作に失敗しました。エラーデータを確認してください。", + "t9dc0825fba5422e4": "読み込み中...", + "td1d044826a45ef65": "ロードに失敗しました", + "t38a8cdb210598179": "ネット環境が悪い場合は、後でやり直すか、VPNを使用してネット環境を改善してください。", + "t13a46616e16fe5e6": "未知のエラー", + "teaa048da7bbf7eef": "メッセージウィンドウの操作に失敗しました。エラーデータを見てください。", + "t348f1cf1243e74bc": "わかりました", + "tfe2daed4a4a6c7d7": "PCL CE は起動時に環境問題を検知しました:\n\n{0}\n\nこれらの問題を解決しないと、一部の機能が正常に作動しない可能性があります……", + "t57a67439a449f9ac": "- PCL CE 起動器はQQ、WeChat、TIMなどのソーシャルソフトウェアのダウンロードディレクトリで実行中です。他の場所に移動することを検討してください。そうしないと、ゲームのセーブデータや設定が失われる可能性があります", + "t3d0c9cba3a1c81e9": "- 現在のシステムは32ビットで、PCL CE 起動器や新しいMinecraftに対応しておらず、64ビットシステムに再インストールすることを強くお勧めします", + "tcdfc824df0a3af89": "- PCL CE は一時ディレクトリで実行中です。PCL CE をアーカイブから展開してからご使用ください。そうしないと、ゲームのセーブデータや設定が失われる可能性があります", + "t41f54b1baa2f856a": "環境警報", + "t567a304e1b960dfb": "- Windows 版本は推奨要件を満たしておらず、少なくともWindows 10 1809が推奨されており、Windowsシステムのアップグレードを検討することをお勧めします" +} diff --git a/src/SHOU.Launcher.Desktop/Localization/Resources/zh-CN.json b/src/SHOU.Launcher.Desktop/Localization/Resources/zh-CN.json new file mode 100644 index 00000000..c7077202 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Localization/Resources/zh-CN.json @@ -0,0 +1,3489 @@ +{ + "t315f7b86bc870e93": "zh-CN", + "tf16855db45e76615": "简体中文(中国大陆)", + "t770a353ab10a2d69": "潮涌核心社", + "t40f7cd2f6f68e5a1": "潮涌核心社启动器", + "t07cf529081e07007": "关于潮涌核心社", + "t92883aa4f5bed5a9": "Plain Craft Launcher 潮涌核心社版", + "tb709766dafadfeba": "动画操作失败。请查看错误详情。", + "t789c57b570ee950c": "界面控件操作失败。请查看错误详情。", + "t9dc0825fba5422e4": "加载中...", + "td1d044826a45ef65": "加载失败", + "t38a8cdb210598179": "网络环境不佳,请稍后重试,或使用 VPN 以改善网络环境。", + "t13a46616e16fe5e6": "未知错误", + "teaa048da7bbf7eef": "消息弹窗操作失败。请查看错误详情。", + "t348f1cf1243e74bc": "我知道了", + "tfe2daed4a4a6c7d7": "PCL CE 在启动时检测到环境问题:\n\n{0}\n\n不解决这些问题可能会导致部分功能无法正常工作……", + "t57a67439a449f9ac": "- PCL CE 正在 QQ、微信、TIM 等社交软件的下载目录运行,请考虑移动到其他位置,否则可能导致游戏存档或设置丢失", + "t3d0c9cba3a1c81e9": "- 当前系统为 32 位,不受 PCL CE 和新版 Minecraft 支持,非常建议重装为 64 位系统后再进行游戏", + "tcdfc824df0a3af89": "- PCL CE 正在临时目录运行,请将 PCL CE 从压缩包中解压之后再使用,否则可能导致游戏存档或设置丢失", + "t41f54b1baa2f856a": "环境警告", + "t567a304e1b960dfb": "- Windows 版本不满足推荐要求,推荐至少 Windows 10 1809,建议考虑升级 Windows 系统", + "t3f828f9d60fb401d": "PCL CE 所在路径:{0}", + "t29b3a1b57e5b5780": "获取失败", + "ta1fdb416d2ff82b0": "PCL CE 初始化错误", + "t11036031881d1a5a": "任务加载操作失败。请查看错误详情。", + "tf56c6c82203b33f6": "提示", + "ta8b7a4480407ac8a": "警告", + "t589b1ae54117ebf4": "不是有效的 JSON 文件", + "t35bcad5bb280902d": "下载 {0} 次", + "td37563c31d52408d": "{0} 万", + "t87328c2970c0949e": "{0} 亿", + "tce6dbce5ca91ab86": "{0} 兆", + "t5749d79515962393": "{0}后", + "t4b7f9dda7314e6c4": "{0}前", + "tcb9c3d54dc149d46": "已成功复制!", + "tb1f6d08a33e99468": "无法复制文本,剪贴板可能正被其他程序占用。", + "ta54a0add54472cb1": "不再提示", + "t4afad295c7582adb": "已粘贴 {0} 个文件和 {1} 个文件夹。", + "t5c55a67935af8f45": "全部", + "t7eb336e42cb5076b": "自动", + "t4eafa9e925b30bcd": "自定义", + "t844b8cc8dff7c1d8": "默认", + "t31b86e9372ca7d41": "我不知道", + "t0c70665b6eb65f1a": "否", + "tb5141d3d19e9a048": "是", + "t4d8c1c5b42830791": "未知", + "t464a8e0d77bb6889": "已取消!", + "t09a4e5504e488a8c": "失败:", + "tbe5b5900c14f799e": "成功!", + "t905819e2e3a059a0": "同意", + "t572cf45ba43634b3": "返回", + "t2cd0f3be8738a86c": "取消", + "t3fd47edce45b3603": "关闭", + "tfac2a67ad87807c4": "确定", + "t7c9691192f1b7340": "继续", + "t63d90d977348ab1f": "复制", + "t136de7a8c46fc803": "拒绝", + "t2f9daa828907b93f": "删除", + "t4673a23061656125": "下载", + "t65622e8ee9fb116b": "初始化", + "te8f88f51ccb085ea": "安装", + "tc771248e511fbf93": "打开", + "tfcf8b4bff0df782d": "打开文件夹", + "t4ce4c98eb27e4b65": "覆盖", + "taee88743413144a2": "刷新", + "tcb5d682bac3d1a2d": "重置", + "t44ce7ae909bbb28b": "搜索", + "tde6811e73d403172": "更新日志", + "t3330131bf7bfcda8": "Cleanroom", + "tde7b2b8384b81848": "Fabric", + "taa03a58dd655f242": "Fabric API", + "t8899ecd1626db63d": "Forge", + "t65003c7a186430e8": "Iris", + "tecd1401bc618b41f": "LabyMod", + "t80c7dfd19f110c47": "Legacy Fabric", + "tcc183d69f036c82a": "Legacy Fabric API", + "td62e27eea8fb1ca9": "LiteLoader", + "te098b8a25b0a7a26": "Minecraft", + "t3803dc90d9f8578d": "NeoForge", + "t333a55aef76cda96": "OptiFabric", + "tb1b36951dde91b4c": "OptiFine", + "tb0c25286507fdb23": "Quilt", + "tc0028b730280136e": "配置初始化失败,当前位于 {0} 阶段。\n\n配置文件 {1} 的内容出现问题,已备份到 {2}。\n为尽可能防止重复故障,若存在上一版本,PCL CE 已尝试将配置恢复至上一版本。若曾手动更改过配置文件,请修复问题并替换当前的配置文件。\n\n如果你不知道发生了什么,可以先无视。重新打开启动器后,相关配置项可能会恢复为默认值,但通常不影响正常使用。", + "tee2d6eb8cace92f1": "配置初始化失败,当前位于 {0} 阶段。\n\n配置系统无法完成初始化。请修复问题后重启 PCL CE。", + "tb37790547db1b6de": "配置系统在 {0} 阶段发生错误。", + "t1ba68cce121c1664": "配置初始化失败", + "t3e8dc438a4715f1c": "无法保存配置文件。\n\n路径:{0}", + "tc6070f450211044a": "保存配置文件失败", + "td88b15f7379837c6": "崩溃分析失败。请查看错误详情。", + "t37c42c65d9b0a02b": "导出错误报告", + "t90e01acb5c9edd35": "前往修改", + "t6598755879490792": "查看日志", + "tb56dacc6615f683f": "Minecraft 出现错误", + "te3ba07c8080abe28": "错误报告分析结果", + "t092894a3fee643a2": "复制详细信息", + "td6e7f1232d85007c": "无法导出错误报告。\n\n目标路径:{0}", + "t67bd98cc6ddcf702": "无法导出错误报告,且未能获取目标路径。", + "tc81aa8bc768648e4": "导出错误报告失败", + "ta01b89841daf67e3": " - {0}", + "tcefa7588fe99aa24": "原因\n{0}", + "t7fc9c5a1ce0a4aa4": "{0}\n\n{1}", + "t35c22b1afbd3fb7d": "原因\n{0}\n\n你可以尝试\n{1}", + "tfae615e265a131a0": "以下模组导致了游戏出错:\n{0}", + "taed90775b693b199": "模组 {0} 导致了游戏出错。", + "te13f6b316936a6df": "检测到重复安装的模组:\n{0}", + "t50dbecc31daa8e89": "可能安装了重复的模组。", + "tff2461be8d7ecdbe": "检测到已被解压的模组文件。", + "t8aadd91a598f41b4": "Fabric 可能已经提供了错误信息。", + "t347e533b23891be0": "Fabric 提供了以下错误信息:\n{0}", + "t65d6d0dc70d111b6": "Fabric 可能已经提供了解决方案。", + "tea36408934d9b781": "Fabric 提供了以下解决方案:\n{0}", + "td3423bf6cf1ac47e": "部分文件或内容未能通过校验。", + "t6e70a8befb3cb889": "Forge 可能已经提供了错误信息。", + "t61c8944a2b8d1708": "Forge 提供了以下错误信息:\n{0}", + "t02070df4122c1669": "显卡驱动可能导致游戏无法正常运行。", + "t7f62bb1c94fad1c4": "显卡驱动存在问题,或游戏未使用独立显卡。", + "t1fa875bbfad5bdbd": "已安装的模组可能不兼容。", + "tc837e5874afba4f3": "已安装的模组不兼容:\n{0}", + "taa6fd4a25de9af40": "Forge 安装不完整,缺少必要文件。", + "ta966d3f72f113711": "某个模组文件名包含 Java 不支持的特殊字符。", + "tbc852193d70dc63a": "当前 Java 版本与游戏或模组不兼容。", + "tfe816d1d201e7521": "当前 Java 版本对该游戏或加载器来说过高。", + "t5f432b374bd80ac7": "这是手动触发的调试崩溃,游戏本身通常没有问题。", + "t94478e651aa093cc": "部分模组缺少前置,或与当前 Minecraft 版本不匹配。", + "tb1b53c63283e5851": "部分模组缺少前置,或与当前 Minecraft 版本不匹配:\n{0}", + "t7bfdce0244ad6cb5": "缺少 MixinBootstrap,游戏无法继续加载。", + "t164eb28a4e0b0b1c": "模组 {0} 的配置读取失败。", + "t416f25fa791c1401": "模组 {0} 的配置文件 {1} 无法读取。", + "te316ac44fdc6a01e": "以下模组初始化失败:\n{0}", + "t62b59361f7a24bb3": "模组 {0} 初始化失败。", + "t328cee8872725e35": "模组加载器可能已经提供了错误信息。", + "te9c9c782cbe7f56d": "模组加载器提供了以下错误信息:\n{0}", + "tf93eab675ec07cc7": "模组加载器版本与模组不兼容:\n{0}", + "td99f060b8fee8c31": "以下模组的 Mixin 注入失败:\n{0}", + "t08c1c3f097a09bd6": "部分模组的 Mixin 注入失败。", + "t060586dc3c6f645b": "模组 {0} 的 Mixin 注入失败。", + "tedf284fafab771a4": "部分已安装模组需要 Java 11 或更高版本。", + "t33457310a91f25bb": "实例 JSON 中包含多个 Forge 版本参数。", + "t3dce704b11144264": "Night Config 读取配置时发生错误。", + "t223b6e297e3f1ea6": "游戏出现了问题,但未找到可分析的相关日志文件。", + "t721280eb48614a27": "旧版 Forge 与当前 Java 版本不兼容。", + "te235be5f2c1d3170": "光影或资源包可能触发了 OpenGL 1282 错误。", + "td324d7778dee590f": "OptiFine 与当前 Forge 或 Minecraft 版本可能不兼容。", + "t5c7a6135b262daa2": "当前 OptiFine 版本可能导致世界加载失败。", + "td861c658ccadced7": "Minecraft 内存不足,无法继续运行。", + "t92092d4764cdc3b6": "资源包分辨率可能过高,或显卡性能不足。", + "t952fcf5717f69a2f": "同时安装了 Shaders 模组与 OptiFine。", + "tfe91a807e1c93bad": "世界中的某些方块可能导致了游戏出错。", + "t0d544eeed74643d0": "方块 {0} 可能导致了游戏出错。", + "t9684df6fb67fb0be": "世界中的某些实体可能导致了游戏出错。", + "t18c1d36bf63cd3b6": "实体 {0} 可能导致了游戏出错。", + "t478f32d6b069e44d": "PCL CE 在错误堆栈中找到了可能相关的关键词:\n{0}", + "t9821a18bb44b4f64": "PCL CE 在错误堆栈中找到了可能相关的关键词:{0}", + "tf2b1703200b5a7d5": "崩溃报告怀疑以下模组导致了游戏出错:\n{0}", + "t71c045613b39e47a": "崩溃报告怀疑模组 {0} 导致了游戏出错。", + "t8e272d4e6361dc6a": "模组数量过多,超出了旧版 Minecraft 的 ID 限制。", + "t3692de4e77775b5f": "PCL CE 无法确定游戏出错的具体原因。", + "t4a5b66423be7af16": "PCL CE 无法确定错误原因。", + "ta4bc2716c341dd81": "PCL CE 检测到一个没有详细说明的错误原因:{0}", + "t43cf814723a1317e": "游戏可能正在使用 JDK,或当前 Java 版本过高。", + "t3812634fe44f8428": "当前使用的 OpenJ9 Java 可能与游戏、模组或加载器不兼容。", + "ta35277063f85e469": "游戏输出过短,PCL CE 无法获得足够的分析信息。原始输出:\n{0}", + "tbe910c8649d97ae7": "当前使用的是 32 位 Java,无法分配游戏所需的内存。", + "t5ada8acc0df427dd": "当前使用的是 32 位操作系统,无法为游戏提供所需的内存。", + "taefe78048b57ce30": "错误报告已导出!", + "t9c1e36ba3609be98": "错误报告-{0}.zip", + "t886ad926d77454af": "Minecraft 错误报告(*.zip)|*.zip", + "tedfa33a3f470ecc5": "选择保存位置", + "t2f22bf320de8842e": "CPU:{0}", + "t74d9fe9c21915402": "- 环境信息 -", + "t5de2b1e2f82cb09e": "显卡 {0}:{1} ({2} MiB, {3})", + "t164346368c1e2e72": "- 实例信息 -", + "t3516bd66c4307a00": "识别码:{0}", + "t29dec972b0f2301d": "PCL CE 版本:{0}", + "t95e694b0f5218c2e": "Log4j2 NoLookups:{0}", + "t110b2c909c7403ff": "内存分配 (分配的内存 / 已安装物理内存):{0} / {1} GiB ({2} MiB)", + "t78c1222202ada4e2": "MC 文件夹:{0}", + "taec071eef5251661": "操作系统:{0}(64 位:{1}, ARM64: {2})", + "t1b273d70a2c6ad89": "档案名称:{0} (验证方式:{1})", + "t90ba25961e9b7fe8": "- 档案信息 -", + "t40ef92a388943c46": "选定的 Java 虚拟机:{0}", + "tcd3f5d5d894f018b": "目录:{0}", + "t96c914ddbe8b1681": "{0} [{1}] <-> 内嵌于 {2}({3})", + "tf7b98113b3d7e402": "(按模组 ID 匹配,可能包含误报)", + "td03f26cc4789ab87": "以下模组可能与内嵌副本冲突并导致崩溃:", + "t484d55613910eb8c": "无", + "t972ecc9b7c5256be": "=== 潜在重复模组===", + "t49a7be4efd82aa7d": "未发现 Jar-in-Jar 信息", + "t4133f927fd60c4d7": "=== 依赖警告(缺失前置 / 版本不符)===", + "tcf2a6f3169db6539": "未发现依赖问题。", + "t43a1d7f28503f47f": "缺少前置 [{0}]", + "t65fca9f8f6472051": "前置版本不符 [{0}]", + "td15f3946501d2a9a": "前置被禁用 [{0}]", + "t811d83047433e133": "=== 冲突关系(不兼容 / 不建议共存)===", + "td85687e149b2202e": "未发现冲突。", + "t4ae9eb28741faa5f": "不兼容", + "tefe18cee4560e876": "不建议共存", + "tc86892d82348aa47": "=== Jar-in-Jar 信息(仅启用模组)===", + "t8c44658a527fa3fa": "=== 模组列表 ===", + "t40c4aaef12065dc8": "尝试逐个禁用这些模组,再观察游戏是否仍会崩溃。", + "t0ef773efa1d6c031": "尝试禁用该模组,再观察游戏是否仍会崩溃。", + "t3cf5aaea1a375671": "每个模组只能安装一次。删除重复的模组后再启动游戏。", + "t0fa488a842726589": "需要帮助时,请发送错误报告文件,而不是此窗口的照片或截图。", + "tb9fd451df6743922": "删除 mods 文件夹中已被解压的模组文件夹,并放入完整的 .jar 模组文件后再试。", + "t82cacbaa10b2d0db": "删除游戏及相关模组后重新下载。", + "td7dff1ed611e4192": "请根据上述原始错误信息或错误报告中的加载器提示进行处理。", + "te3cbac4133b5f0c3": "尝试更新或回退显卡驱动;必要时改用更低版本的 Java。", + "t37a7bed9e869ffdd": "若设备有独立显卡,请使用独立显卡启动 PCL CE 与 Minecraft;也可以更新或回退显卡驱动。", + "t6c5f9bddd09191c7": "在实例设置中重置或重新安装 Forge;不要在打包实例时删除 libraries 文件夹。", + "ta74d8b873c5078cd": "移除或重命名异常的模组文件,使文件名仅包含英文字母、数字、短横线、下划线和小数点。", + "tf943161bdf0bf23a": "根据 Minecraft 版本和模组要求,在启动设置中选择合适的 Java。", + "t01a298487e13d230": "在启动设置中改用较低版本的 Java 后再试。", + "ta743b54ea7005725": "当前使用的 PCL CE 版本较旧。更新 PCL CE 可能会解决此问题:设置 → 启动器 → 检查更新。", + "tf1cca4af375344b7": "检查 MixinBootstrap、模组加载器和相关前置是否已完整安装。", + "t18acbdf96509ed38": "尝试删除该模组的配置文件后重新启动;必要时更新或禁用该模组。", + "t263b159ede4ee0f5": "打开实例设置并调整或重新安装模组加载器版本。", + "t1c38b69975f05e15": "逐步禁用模组,以定位与当前环境不兼容或存在问题的模组。", + "tb4d7dfa3841d0d82": "在启动设置中改用 Java 11 或更高版本后再试。", + "t9807131b9f1198a3": "在实例设置中重置或重新安装 Forge,不要使用其他启动器修改 Forge 版本。", + "tb40c547c1baa5d77": "尝试删除相关模组配置文件,或安装 Night Config Fixes。", + "t7bf0db98218b182b": "尝试升级 Forge,或改用较低版本的 Java。", + "te0717c2695266260": "关闭光影,并移除最近添加的资源包后再试。", + "t65e1cc2062bc5e1c": "检查 OptiFine 与 Forge 的兼容版本,并重新安装匹配的版本。", + "td96210b13c30bb9d": "尝试更换 OptiFine 版本,或暂时移除 OptiFine 后再进入世界。", + "td1e6a0c6c71dd4b9": "在启动设置中增加游戏分配内存,并移除配置要求较高的资源包、模组或光影。也可以在启动前关闭其他软件。", + "t6037c82cd1aad293": "移除高清资源包,或降低资源包分辨率;也可以更新显卡驱动。", + "t4b0be12885f96fd3": "删除 Shaders Mod。OptiFine 已提供光影支持。", + "tef774a71e06ea3b4": "创建一个新世界测试游戏是否正常。若正常运行,问题可能来自原世界中的方块。", + "t36578bca83d6e618": "创建一个新世界测试游戏是否正常。若正常运行,可使用地图编辑器移除该方块,或禁用提供该方块的模组。", + "tfd186fec088dae23": "创建一个新世界并生成实体测试游戏是否正常。若正常运行,问题可能来自原世界中的实体。", + "tc196a33781b8d496": "创建一个新世界并生成该实体测试游戏是否正常。若正常运行,可使用地图编辑器移除该实体,或禁用提供它的模组。", + "t96c9a7cc1feae4e7": "检查这些关键词对应的模组或库;也可以导出错误报告以获取更多信息。", + "te844d9b041040315": "减少模组数量,或为旧版 Minecraft 安装能够扩展 ID 限制的修复模组。", + "t99a6fb13e2788e97": "在启动设置中改用常规 JRE 或其他适合该实例的 Java 后再试。", + "t4e87bb6471ea2e25": "在启动设置中改用 HotSpot Java 后再试。", + "ta5f76be10571a046": "你可以查看错误报告,以了解错误发生的详细过程。", + "t0803604d1f34bea5": "安装并在启动设置中选择 64 位 Java 后再试。", + "ta11e5707e9a8e208": "改用 64 位操作系统和 64 位 Java 后再试。", + "t73ef595851576fe0": "下载页面操作失败。请查看错误详情。", + "t0da20d8b9dc72593": "资源下载操作失败。请查看错误详情。", + "t5883e5643f980726": "无法连接到 Modrinth,所以目前仅显示了来自 CurseForge 的内容,搜索结果可能不全。\n请稍后重试,或使用 VPN 以改善网络环境。", + "t22e87d6361c02327": "未能识别或获取该资源链接", + "t303c30f301514250": "搜索资源", + "t3a8b232a834e2fa2": "下载量", + "t63390385cc587605": "关注量", + "tb33f2e6617ec5db8": "最新发布", + "t865854c27d879972": "相关性", + "tb067526e73e5b801": "最近更新", + "tc79e8435b942cd5f": "冒险", + "t18704a278632121e": "动态效果", + "tc991c7eef0aa00da": "含声音", + "t829a35554fa12c2d": "自动化", + "tb33881e3833f9fc4": "生物群系", + "t8f7e2ad723ebd014": "卡通风", + "tc091c98702a377f0": "彩色光照", + "ta642a31e11820a4e": "战斗", + "te3db1776792014be": "核心着色器", + "t584741806d8311b9": "创造模式", + "te5a6f926456d5e3a": "鬼畜", + "t6895f601b65fdc10": "幻想", + "tac40db6607b72f56": "装饰", + "t4fa164bacd535f85": "维度", + "tde4e44264035c8d7": "信息显示", + "t9196f0338a8d16d7": "能源", + "t18de9f691b47fc6b": "含实体", + "tcbe3d3b779999843": "装备与工具", + "t05aa4d62741045df": "幻想风", + "tb2acdef8f2efe1fb": "农业", + "tadcf64ba14be2a0a": "特性", + "taced55addbf033c2": "含字体", + "t969c7fc4d7a3d64c": "食物与烹饪", + "tb0b98fd928edff24": "游戏机制", + "tc4e3f3fb84e6bd0c": "含 UI", + "tc6e0480ef9844ba9": "支持库", + "tcc3dd1f07544494c": "含语言", + "tf92fd0c0b8c950fc": "魔法", + "t2d92a4f66c9ceec3": "中世纪", + "t61aacd674a2c7586": "生物", + "t9ea6b4816b0c7d95": "模组", + "t8e048731fcac28a7": "模组相关", + "t41735735da6b1466": "兼容模组", + "t2bdc253afdc92985": "含模型", + "tc05df15bf39a4ee9": "现代风", + "tf68c25a937e33136": "多人", + "t50b3ce31646573c1": "性能优化", + "t0ceb2a65af8faacd": "矿物与资源", + "td2909f1647e7c891": "其他", + "t8e5915536a00b1ff": "路径追踪", + "tba9db5d2c572aad5": "PBR", + "tdd5f3e2d50cf0435": "性能负荷", + "tb1c27820fec23edb": "高", + "taa9e366f68d3d097": "低", + "ta567bdaa11367f26": "中", + "t6e990ca942a25713": "极低", + "t122e51b8a282ffb0": "管道与物流", + "td9f9b63f9d9f6062": "写实风", + "t70e3887c68a89570": "红石", + "t8a8f1a0cf7cf089a": "反射", + "tb92421822c213c2b": "分辨率", + "te44de61444e0c61a": "半写实风", + "t2388cbc6a486af9f": "服务器", + "taa55960e4b02e668": "简洁", + "t717cbdd0b24adc4a": "蒸汽朋克", + "te2c57c5c935df898": "仓储", + "t9c888380daed37e0": "天然结构", + "t1bfde6b7ea27c9b8": "风格", + "t6edb77679bbe71f5": "科技", + "td333e7c430f4a611": "主题化", + "t71faaa139f3affc5": "运输", + "t7703c8789564782c": "改良", + "te3acd17ea04e3a49": "实用", + "tab8936477328e934": "原版可用", + "t9c5a5f7582706688": "原版风", + "te2795d0547cb684e": "创造", + "t7eb04a099024f6e0": "模组世界", + "tb1f0cb13ffcaa01e": "跑酷", + "t7462fe3991258156": "解谜", + "tcbd9667c3fa1225e": "生存", + "tea56c3200c998da7": "世界元素", + "t98ceb57fd8c4192a": "探索", + "t3ed46e6cab0ac788": "大型整合", + "t338cc0fd2a2c4d17": "FTB", + "tdbca9dcc12759328": "由 FTB 官方发布", + "t56acdc65a6d3783f": "硬核", + "t64aec591c1c79c93": "水槽包", + "td78ea1d4d3cf84ad": "基于地图", + "t52afc06a6fdc90bc": "小游戏", + "t5253040db8643c85": "任务", + "tc1613bc333ed5654": "科幻", + "t1fa5b34c505b2249": "空岛", + "t459045778e6d727e": "轻量整合", + "tf8428719215ef8b4": "原版改良", + "tdb95c71ee38000fc": "128x", + "t97d3b806d6b0cd6a": "16x", + "t4f552d2e542b6470": "256x", + "t5794dd04acf0b11a": "32x", + "t82e7e3d1ccb7561f": "48x", + "t640f86e6c1bb0514": "512x 或更高", + "tce07e3db42adfa65": "64x", + "t968443a6fff0f915": "8x 或更低", + "t67bf9dc67f0bedec": "安装已中止。\n\n原因:\n{0}", + "t9088cfa9a1c7645f": "安装已中止", + "t191a09e32e312bc4": "取消安装", + "t472887ef3f07b5ec": "- {0}({1})- {2} v{3}", + "t1470f08a1fd3a31a": "此模组需要以下必需前置:\n\n{0}", + "t2b75ae1a67a38be7": "安装模组前置确认", + "t01a97ea980217280": "安装模组与必需前置", + "t1c1f6bbc6e42087c": "仅下载模组本体(不建议)", + "t7730fe6c7fbea65b": "继续下载", + "tcf85b3dc76a126d5": "无法解析模组前置,将仅下载模组本体。", + "t5c028beb63de11ce": "前置解析失败", + "t11f345d6669a5566": "- {0} {1}: {2}", + "t58be92ca3949285c": "以下必需前置无法解析:\n\n{0}", + "t0fdb26c45e398f59": "无法安装必需前置", + "tb2fd2e2a883cd7a2": "清理缓存", + "t47026cfb59de504b": "检测到剪贴板中包含资源链接,是否前往详情页?", + "t902186f9cd1df585": "检测到资源链接", + "t40a2a5956295b9cb": "正在获取资源信息……", + "t2717a23db971665f": "资源内容无效。", + "t8e86f9b1d54f2c51": "复制链接", + "ta77a6cca3ce275e0": "复制名称", + "t370b1f0f2e1a34d5": "当前资源的简介暂无译文", + "td81097017b39083a": "正在获取 {0} 的简介译文……", + "tb6d4d3a957e787d1": "获取译文失败", + "t6710d01346f08050": "原文:{0}\n译文:{1}", + "t3926d1bb98be8401": "下载文件", + "td04d08f28ec4fca3": "下载整合包文件", + "te37a7e2a87892329": "{0}下载:{1}", + "t7884990b2b345033": "下载世界文件", + "t60a53514eb9228a2": "收藏", + "te0f2b9e34d955211": "已将 {0} 添加到 {1} 中", + "tc900c91ac35223bb": "已将 {0} 个资源添加到 {1} 中!", + "tb108cfdfd617090c": "已将 {0} 个资源添加到 {1} 中,{2} 个资源已添加!", + "t3b076fd9eb9e7808": "收藏到 {0}", + "t655760c7ef1954fb": "已将 {0} 从 {1} 中删除", + "tae34229f66130de3": "取消收藏 {0}", + "t9cd2f9ef5701723d": "正在查找适合的游戏实例……", + "t5783f26277a1be55": "输入实例名称", + "t75574e78f139e825": "安装世界", + "t4f5420a2c4564f17": "实例筛选:", + "t4088955ce9133557": "模组加载器筛选:", + "t2e5739449ed67f97": "MC 百科", + "t630510f769bf79e6": "整合包下载", + "te17abc30dd9bd2b6": "当前 MC 文件夹中没有找到适合此资源文件的实例!", + "t97872ee0fa952f24": "原始整合包", + "tce90616bf6f4553c": "准备安装整合包", + "tb15cb14bdf7ccb3f": "{0}文件", + "t166c6925b0986e8c": "选择世界安装位置 (saves 文件夹)", + "t9d3f093c4227f9b4": "所选版本:{0}{1}", + "t3ece481d115d0413": "已取消整合包安装:{0}", + "td19448c09c827df0": "整合包安装失败。\n\n任务:{0}\n\n详细信息:\n{1}", + "t68580c651dbaed55": "翻译简介", + "tdca60869e7d26839": "取消收藏", + "tcf865167e879e225": "远古版", + "t8382fe1229487ef4": "快照版", + "tdd63fa768c76470f": "由于版本信息更新缓慢,可能无法识别刚更新的 MC 版本。几天后即可正常识别。", + "t3895b880ef60dc2f": "世界下载", + "tce7c62739183ea1c": "世界文件|*.zip", + "tcea32269309fbb1b": "全版本", + "tb7d92919ff6509e6": "远古版本", + "t5d7906f5af429022": "任意", + "tf594f171672d3bef": " 版", + "t769400c019e1e3d7": " 预览版", + "tba0d5a1fa939f53c": "仅快照版本", + "tf1e7bec171ae3b9e": "未知版本", + "te4f41303b0825883": "{0} 项前置", + "t6827fbb5676f2a42": "游戏版本 {0}", + "t3b10470e173f82cc": "可选前置资源", + "t5a381a1174a336de": "早期测试版", + "t065d4b037ce5d3c6": "测试版", + "t93a48223a516e074": "正式版", + "tf7c5c819b9f0f09d": "必要前置资源", + "t8da1ada0abe274c9": "更新于 {0}", + "t34362a4c5ad7f814": "版本列表", + "tbb6d995724f49a72": "管理", + "tfa1e7180cf6c8ea6": "{0} ({1})", + "t3f55bb31a6bf0420": "模组 ({0})", + "t74966e20df2ea9fd": "取消选择", + "tf583ba476b0fc0bb": "下载所选", + "t7886e13b90d0c33b": "修改备注", + "tf9071ee190cc2b33": "在资源详细信息界面中可以点击收藏按钮进行收藏", + "t7569da968438822f": "还没有收藏内容", + "te5d9da44d6ec2aa4": "收藏夹操作失败。请查看错误详情。", + "tf8df64ad4b80a37d": "部分资源在线信息获取失败,点此查看详情", + "t383b9a3f9103f3b6": "批量下载资源({0})", + "t0214ead9956d0a25": "批量下载合适资源", + "t18d91d56368f7efd": "查询资源信息", + "t184f56fec419cdb5": "正在加载收藏夹列表", + "t381c647a1bf4039d": "删除当前收藏夹", + "t900a238d2066bf56": "导入收藏", + "tfdf0b569d820ade8": "新建收藏夹", + "tdc334e8452b32c8d": "重命名收藏夹名称", + "tb81569c77abbc943": "分享当前收藏夹", + "t88b71f1b3034d981": "搜索收藏夹内容", + "t7a62ab6f8a3adde5": "搜索结果 ({0})", + "tef35e30a69c37328": "已选择 8 个文件", + "t7512ca72601551d1": "分享所选", + "t8ef77368a0f4b926": "未分类类型", + "t26923e70e420257a": "批量下载功能仍旧处于测试状态。\n使用此功能下载模组不会自动下载前置项。\n请在下载前仔细思考自己的需求,并仔细检查自己的选择,避免下载错误导致时间和网络流量的浪费。", + "tdaf806c8e5b5697f": "确定使用此功能?", + "te7d728fe70f8ebf4": "确认删除 {0} 收藏夹?\n此收藏夹有 {1} 个收藏项目\n收藏夹 ID 为 {2}\n此操作不可逆!", + "tfe43bc43c294210a": "删除确认", + "t2069143095d1bd58": "由于在线资源被删除或者网络问题等因素导致以下资源未获取成功(以资源的 ID 展示)", + "tea6b88c037011def": "复制这些 ID", + "t522e9382728b0f13": "移除这些收藏", + "t60e415c1cf639529": "部分收藏项目获取失败", + "tb5f1a8c8a20d3821": "当前收藏夹", + "t1b32866b36678f15": "例如 [\"23333\"]", + "t74b8382b21124f79": "输入分享的收藏", + "t575c8c85b7229ae3": "新收藏夹名称", + "t29aec3eeadd2bd3c": "新的收藏夹", + "t72247501abd78e91": "请输入新收藏夹名称", + "te2ac7dd248108eba": "你希望将分享的收藏加入到当前收藏夹还是新的收藏夹中?", + "tf5d96b0a35d232be": "输入新名称", + "t6ef70a73eeba8d63": "选择期望的加载器", + "t96b1172d977ca388": "选择期望的游戏版本", + "t658b8279fe6e9071": "已删除收藏夹", + "td8260f09d4876470": "您不能删除最后一个收藏夹", + "t4de4cd268e281f93": "请稍后,正在查询详细版本支持中,这可能需要一段时间……", + "t36480334dc21b022": "不存在指定加载器并且同版本的资源", + "tea0f92057312b72a": "分享了个寂寞啊!", + "t56500d3b0a5b2648": "已移除相关收藏", + "t9f2231fa4a7bd5a2": "所选模组不支持相同的加载器", + "tfae12c46945252ae": "已选择 {0} 版本,下面请选择保存位置", + "t9a242aca5ad49539": "已选择 {0} 个收藏项目", + "t24e4c22ca6ce8acf": "在当前选择的 Minecraft 文件夹下安装整合包", + "t7a2bd8b6cb0ed3bf": "加载器", + "teb4108182aff0289": "任意加载器", + "t86e562ec274a2795": "作为资源包加载,可以直接在原版游戏里使用。", + "t66960a14f9c7ba67": "重置条件", + "t1ce6b1d7c95ce2ee": "排序方式", + "ta488e93d69cc1296": "来源", + "t1d0fd5f9336d9103": "标签", + "t5f76b2bf82dd2c5d": "版本", + "t0547392f6ab5aaa0": "全部 (也可自行输入)", + "te27f5dd1f4538825": "没有符合条件的结果", + "t28f9799cf70cfa7d": "无搜索结果,请尝试搜索英文名称", + "t4e90152337531b53": "没有搜索结果", + "t668ac1fa4ed68028": "无法连接到 CurseForge,所以目前仅显示了来自 Modrinth 的内容,搜索结果可能不全。\n请稍后重试,或使用 VPN 以改善网络环境。", + "tcdb82e3a60be207c": "社区资源获取:{0}", + "tc76d3401f5da3852": "正在获取 数据包 列表", + "t1588d0e07d0c3d93": "正在获取模组列表", + "t0ca80f81d892be73": "正在获取 整合包 列表", + "tcdf547d1a76c4fe4": "正在获取 插件 列表", + "tf795ef40fd5886f8": "正在获取 资源包 列表", + "t3b935782561fa2a2": "正在获取 投影原理图 列表", + "t6f6d6cd9226ac771": "正在获取 光影包 列表", + "tb1bfcf7fdf990edb": "正在获取 未知 列表", + "td4a100e5c8124658": "正在获取 世界 列表", + "t3ae4e3634da3e95a": "搜索 数据包", + "t1b3ec9656da62b84": "搜索模组", + "t20ee7b798773bd60": "搜索 整合包", + "t054a05050e0e790b": "搜索 插件", + "t8ad10013cd735fdd": "搜索 资源包", + "t663ee97585643974": "搜索 投影原理图", + "t41a2e0cee213dc9a": "搜索 光影包", + "tbabb50e5eb48f55d": "搜索 未知", + "t687dc571759336c9": "搜索 世界", + "t3e1f70c05113ed01": "快速下载最新版本", + "ta21786c18070def1": "选择要下载到的 Minecraft 实例", + "t6b4104acb4da734e": "选择实例…", + "tb2c12d1210804fbf": "选择一个文件夹…", + "tcd4113a3aa659835": "下载到当前选中实例", + "t05749348132920b6": "选择下载方式", + "t425a5f4ebd7fb175": "已开始下载:{0}", + "t377d5938e9e7dc29": "正在获取资源版本信息,请稍候……", + "t6ce55079915b8512": "未找到适用于该实例的版本", + "t0cab9ab949df01cb": "没有与该资源兼容的 Minecraft 实例", + "t27be0d144fa9901d": "未找到可下载的文件", + "tff9c0846f754f0c5": "当前未选中任何 Minecraft 实例", + "t4caa0d59924a122e": "请选择保存位置", + "t10f8430565994663": "数据包", + "t46d9b2a668211df4": "整合包", + "t748ab1f7fede7538": "仅 {0}", + "te806fbbe8ec6e82d": "插件", + "t6518cf1fcb303a64": "资源包", + "tec9e3045aaf89c11": "投影原理图", + "te50c88a4cc32f5f3": "光影包", + "t33650a369521ec29": "世界", + "t79ae243e67109584": "安装版本列表操作失败。请查看错误详情。", + "t6a56f18359796e28": "点击 Minecraft 项即可返回游戏主版本选择页面!", + "t14d1e349b14010a9": "取消下载", + "ted3f0e431ff837cc": "你尚未开启实例隔离,多个 MC 实例会共用同一个模组文件夹。\r因此,游戏可能会因为读取到与当前实例不符的模组而崩溃。\r推荐先在 设置 → 启动选项 → 默认实例隔离 中开启实例隔离!", + "ta7f814bc0ea3f1a5": "实例隔离提示", + "t541961415c3d4b09": "开始下载", + "t37963f28d576ea3e": "仅兼容特定版本的 Forge", + "t4b8d4db45dfbdb2e": "与 LiteLoader 不兼容", + "t54e8c0f85b4c7218": "与 {0} 不兼容", + "tdb96d71d80320b2f": "与 OptiFine 不兼容", + "t9ddc992b0f648bd2": "不兼容老版本 Fabric,请手动下载 OptiFabric Origins", + "t054797aa2e86fb1e": "需要安装 Fabric", + "t60f584f0e0fc3169": "需要安装 LegacyFabric", + "t0311603a56856290": "需要安装 OptiFine", + "t69205975147d8c24": "需要安装 OptiFine 与 Fabric", + "t7ba62a14c8f6e30e": "可以添加", + "t5e5cbbb485753cc5": "获取失败:{0}", + "t2555423b0683bbf7": "获取版本列表失败:{0}", + "tc23ecce4fb5c37d8": "获取中……", + "t03ddcecd6af05e62": "加载中……", + "t82cde44456802ea0": "没有可用版本", + "t0d16214d515b612b": "无可用版本", + "t51ffff3f8b245993": "未知错误,状态为 Unloaded", + "tabc3889ae4cc4596": "如果不安装 Fabric API,大多数模组都会无法使用!", + "t66bca3a05acb25a6": "如果不安装 Legacy Fabric API,大多数模组都会无法使用!", + "t2fd8f9daef98aae9": "安装结束后,请在模组下载中搜索 LegacyOptiFabric 并下载,否则 OptiFine 会无法使用!", + "tab802ab0206f6691": "OptiFine 与一部分模组的兼容性不佳,请谨慎安装。", + "t217af0b4f2f3009c": "必须安装 OptiFabric 才能正常使用 OptiFine!", + "t4d4441632ec36afa": "安装结束后,请在模组下载中搜索 OptiFabric Origins 并下载,否则 OptiFine 会无法使用!", + "tb6ed713343309e14": "社区资源", + "t63c87fb56f3d4e21": "未知的下载子页面种类:{0}", + "t796d20e915884195": "收藏夹", + "tf9354acb640dd0c5": "正在刷新……", + "t4ef515abfdb8690d": "安装包", + "t0e0a74013968325e": "Cleanroom 官方源", + "ta186ce516379f40d": "Fabric 官方源", + "t9298cfccd8c84372": "Forge 官方源", + "t5cead49c88eb67ad": "LegacyFabric 官方源", + "t52b7439518934766": "LiteLoader 官方源", + "ta2970acc2d338793": "Mojang 官方源", + "t6866d5c1fab2b663": "NeoForge 官方源", + "t8c9404fa505622fe": "OptiFine 官方源", + "t24221d7fefdf2993": "UVMC 特供下载", + "td2d37ab6563bc332": "全部版本 ({0})", + "tc88176e908f43cac": "Cleanroom 是针对 1.12.2 基于 Forge 二次开发的模组加载器,理论上与 99% 的 Forge 模组兼容。", + "t7c48e0da6dde3bdb": "Cleanroom 简介", + "td58d947415597357": "正在获取 Cleanroom 列表", + "ta5047f32348bfbaf": "下载服务端", + "t8165ca7a7f7795c4": "Fabric Loader 是新版 Minecraft 下的轻量化模组加载器,你需要先安装它才能安装各种 Fabric 模组。\n本页面提供 Fabric 安装器下载,在下载后你需要手动打开安装器进行安装。", + "t5006b8cf5ec5e726": "Fabric 简介", + "t22cd2f30cf35026d": "正在获取 Fabric 列表", + "t60277e6110afe433": "Forge 是一个模组加载器,你需要先安装 Forge 才能安装各种 Forge 模组。", + "t2661009bd83549a0": "Forge 简介", + "t1ed221ce1444cda8": "正在获取 Forge 列表", + "ta429ef57d8403fb3": "类型:{0}", + "t38a846ed736a3b9f": "最新测试版", + "t569af1a47dbdf053": "最新", + "tb556e7880bb7dc26": "最新稳定版", + "t50008bba144e8878": "Fabric 安装器 (*.jar)|*.jar", + "tb1d7c873a165a7a4": "LabyMod 安装器 (*.jar)|*.jar", + "t96eb0447b4508d05": "LegacyFabric 安装器 (*.jar)|*.jar", + "tc6d0cf1f29b04fe0": "LabyMod 是 Minecraft 下的优化客户端。\n本页面提供 LabyMod 安装器下载,在下载后你需要手动打开安装器进行安装。", + "t966deb695edfc1f0": "LabyMod 简介", + "t0c4958a54587ac61": "正在获取 LabyMod 列表", + "t2449ee325082121e": "最新预览版,发布于 {0}", + "ta5bd51b5a48b406c": "最新正式版,发布于 {0}", + "tc2a497830ef74215": "最新版本", + "t409037db81f013ae": "Legacy Fabric 是 Fabric 的旧版本移植,你需要先安装它才能安装各种 Legacy Fabric 模组。\n本页面提供 Legacy Fabric 安装器下载,在下载后你需要手动打开安装器进行安装。", + "t9be9080b5b227074": "Legacy Fabric 简介", + "td4a617e74b328469": "正在获取 Legacy Fabric 列表", + "t9e249718b33002e0": "与 Forge 类似,LiteLoader 可以用于加载老版本 Minecraft 中的 LiteLoader 模组。", + "te381ec18148bcab7": "LiteLoader 简介", + "t0ac4c924baceaa39": "正在获取 LiteLoader 列表", + "t279ca5f87c082275": "正在获取版本列表", + "tdf2763b431451fbb": "NeoForge 是 Minecraft 1.20.1+ 的模组加载器,你需要先安装它才能安装各种 NeoForge 模组,它也兼容一些 Forge 模组。\n本页面提供 NeoForge 安装器下载,在下载后你需要手动打开安装器进行安装。", + "tfe40d869db01db47": "NeoForge 简介", + "tb15f809730dbada9": "正在获取 NeoForge 列表", + "t2a387b9dca2585fc": "打开官网", + "t695c01fd8329830e": "兼容 Forge {0}", + "t7854340185c3ac0b": "不兼容 Forge", + "tdf694f1474ba2f41": "OptiFine 又称为高清修复,以允许安装光影、使用高清材质、提高游戏性能,但与模组的兼容性不佳。", + "te8d57a8f9448791c": "OptiFine 简介", + "t1c0f7351720755f6": "正在获取 OptiFine 列表", + "t072a06e256c342c1": "快照版本", + "t0e49ddd2102099a8": "发布于 {0}", + "t1232eb44296bb8cf": "另存为", + "tb55ff3413e4553a0": "保存安装器", + "t25ca0efe303f063a": "版本列表({0})", + "t5dcfd2328497ed68": "查看全部版本", + "t0b86991e76ab0e6a": "愚人节版", + "tf8ba3e6e5825e399": "预览版", + "t7c2d69d150f060b9": "安装器", + "td6e22c8c01320523": "推荐版", + "t320e85714d077705": "稳定版", + "te80fbe0786bb33fd": "即将从该网址下载文件:\n{0}", + "t4a07be888ae672ef": "EventData 必须为以 http:// 或 https:// 开头的网址。\nPCL CE 不支持其他下载协议。", + "t19984f88d01fd0ad": "事件执行失败({0}, {1})", + "t04fd5e3ee85a1b68": "未找到 EventData 指向的本地文件:{0}", + "t3808635bcebe52f7": "EventType {0} 需要至少 2 个以 | 分割的参数,例如 {1}", + "tb37593f19b3c3f45": "事件执行失败", + "t2fb0c55b1ab8fb62": "未知的事件类型:{0}\n请检查事件类型填写是否正确,或者 PCL CE 是否为最新版本。", + "t45df8d0e74c2f632": "EventData 必须为一个网址。\n如果想要启动程序,请将 EventType 改为 OpenFile。", + "ta40eb286240a74f2": "请先选择一个 Minecraft 实例!", + "t88af33c51d5d4234": "正在启动 {0}……", + "tfcc03d11adda3586": "正在开启中,请稍候:{0}", + "te2647f412a632008": "当前页面不支持刷新操作!", + "t9c012d80380b46b7": "已刷新!", + "t1919f8c3fe196e7d": "即将执行:{0}\n请在确认没有安全隐患后再继续。", + "tf1537e9083397197": "继续且今后不再要求确认", + "t2fa286387af138e8": "自定义主页不能写入高危设置:{0}", + "t5f6a32366a6d46a7": "执行确认", + "t10a26148d2d86669": "[{0}] 是无法解析的 EventType,已从主页中移除。", + "t360dfaf1b8683cbb": "[{0}] 是不受支持的原版 PCL EventType,已从主页中移除。", + "t06b4fe9252c24534": "已写入设置:{0} → {1}", + "t4465e9af83dbb719": "已写入变量:{0} → {1}", + "t95a9fa6a922b388a": "实例操作失败。请查看错误详情。", + "t37090f45651676fc": "修改", + "tf061707c91e7035e": "开始修改", + "t66b6eb4f15dd7f8f": "开始重置", + "t9319bdabec708223": "实例安装操作失败。请查看错误详情。", + "t689cb884253c10b1": "无附加安装", + "t719c6d4065a0710e": "你正在重置当前实例。\nPCL CE 将会重新联网下载该实例所需的文件,并重新安装模组加载器(如有)。\n此操作不会丢失你的存档、模组、资源包等。", + "tb3e7e5d19f61b55d": "重置此实例", + "t3930b7eb554270a6": "实例导出操作失败。请查看错误详情。", + "t85fc945df2667ff0": "导出整合包:", + "t83b1bafe63b05f96": "受 Modrinth 整合包规范限制,导出的整合包中不会包含 OptiFine。", + "tc7bf96f15b044837": "Modrinth 整合包文件(*.mrpack)|*.mrpack", + "tf682510f4ca61067": "联网获取文件信息失败,是否继续导出?\n\n若继续,所有文件都将被直接打包。\n由于二次分发可能违反使用协议,请尽量不要公开发布导出的整合包!", + "t6926458ee8b8880f": "文件信息获取失败", + "tcf9ee68b64025d1e": "联网获取部分文件信息失败,是否继续导出?\n\n若继续,无法获取信息的文件将被直接打包。\n由于二次分发可能违反使用协议,请尽量不要公开发布导出的整合包!", + "t23631b28bef020ab": "部分文件信息获取失败", + "t2ebae8f836e0c2cd": "从配置文件中读取", + "t1ff4904e89c49279": "导出内容列表", + "t1a385e9a46bc81af": "整合包名称", + "tb0cf74135c456d6f": "无法使用配置文件中指定的导出路径", + "t035e2c571df8f0da": "无法使用配置文件中指定的导出路径。\n\n指定的路径:{0}\n\n详细信息:\n{1}", + "te7c1412d61ed9580": "整合包版本", + "tbaacb1031c0fd9f2": "指定的路径:{0}", + "t5fc7e60b3e0ea96b": "读取配置文件失败:{0}", + "t700c6b7f34febcb6": "已读取配置文件:{0}", + "tc88336d3f0564e85": "已保存配置文件:{0}", + "ta5ddf79f9db4b7c4": "选择配置文件", + "t41908b2e24facd70": "选择文件位置", + "tb2e236f1a684652f": "选择导出位置", + "t88da633ca77352d5": "开始导出", + "t2d07a7c29d147b04": "复制导出内容", + "tae2d9e324c3db844": "生成压缩包", + "t4f92d6f5fbf6758c": "下载 PCL CE 正式版", + "td6871010d1aa649a": "联网获取文件信息", + "tb7a64cf1f43d6b29": "压缩文件(*.zip)|*.zip", + "t16919be1d226dfae": "打包资源文件,以避免在导入时下载", + "t170ec2eeb60f331b": "将模组、资源包、光影包的文件直接放入整合包中,这样在导入时就无需联网下载它们。\n建议仅在无法稳定连接 CurseForge 或 Modrinth 时才考虑勾选。", + "t28241821d44d72ce": "建议仅在无法稳定连接 CurseForge 或 Modrinth 时才打包资源文件。\n请不要公开发布含资源文件的整合包,这会违反部分模组的使用协议!", + "t63149ec2218a02b2": "配置文件中含有更多高级选项,例如精准控制导出的文件、设置整合包存放位置等。\n要修改这些选项,请先点击 \"保存配置\",在编辑配置文件后再导入。", + "t6e584e3d5ce64aa0": "保存配置", + "tdf31c1965b31314c": "读取配置", + "t1af1a80b7137a17a": "Modrinth 上传模式", + "t8f09ff0390101a63": "如果你想要打包上传到 Modrinth,勾选此项会生成完全符合 Modrinth 要求的整合包文件。\n由于 Modrinth 要求,只能从 CurseForge 下载的资源将无法联网下载,会被直接放入整合包中。\n此外,勾选后也不能在整合包中包含 PCL CE 启动器文件。", + "t91a61fdde856cd9e": "高级选项", + "t8f1f82e93114c262": "整合包导出配置(*.txt)|*.txt", + "t831e1baa52867edc": "未找到配置文件中指定的单个文件:{0}", + "t2c6bf3089fff31d2": "未找到配置文件中指定的文件夹:{0}", + "t7c93a93bf68a0811": "配置文件内容无效或为空!", + "t4c809b9508121ac6": " (光影配置文件)", + "tfa40202b01261c38": "是否将模组、资源包、光影包的文件直接放入整合包中,这样在导入时就无需联网下载它们。", + "te9f148bf03cae838": "建议仅在无法稳定连接 CurseForge 或 Modrinth 时才考虑启用。", + "t28b7bcd9121af308": "二次分发可能违反使用协议,请尽量不要公开发布包含资源文件的整合包!", + "t8da92f5f8489c2d2": "排除的文件", + "tc945d818be2e85fa": "如果想将额外的文件自动放到压缩包根目录中,可以将它们的路径写在下方。", + "t16531641b2020930": "必须是完整路径。每行中,若以 \\ 结尾则代表是文件夹,不以 \\ 结尾则代表是文件。", + "t3feb43b5c222849b": "是否打包正式版 PCL CE,以便没有启动器的玩家安装整合包。", + "taa2ffe67b56dbe18": "是否打包 PCL CE 个性化内容,例如功能隐藏设置、主页、背景音乐和图片等。", + "t8db253436c6f4eee": "修改下方的规则以控制需要导出的内容。", + "t5ca8aa8fb104fa6f": "如果你想要打包上传到 Modrinth,启用此项会生成完全符合 Modrinth 要求的整合包文件。", + "t9c51701c8ab5ac4a": "由于 Modrinth 要求,只能从 CurseForge 下载的资源将无法联网下载,会被直接放入整合包中。", + "t7251c23837a95161": "此选项与 IncludeLauncher、IncludeLauncherCustom、DontCheckHostedAssets 冲突。", + "tbc11a4062a212be9": "导出的文件的存放位置。", + "t3918adec400df739": "若设置了此项,在导出时会直接将文件放到此路径,不会弹窗要求选择。", + "t6e0dfd93630167df": "若 IncludeLauncher 为 True,应以 .zip 结尾;若为 False,应以 .mrpack 结尾。", + "t592a83024be6413e": "以 ! 开头以反选。可以使用 *、?、[] 通配符。靠后的行覆盖靠前的。", + "tcd81b08fddef4eaa": "已禁用的模组", + "t0006a8748e35145b": "EMI 个人信息", + "te1372fc307d55387": "物品收藏夹、默认配方、合成历史记录等", + "te9faa1792d4db0b2": "游戏本体", + "t8d9080be0c9c8370": "游戏本体个人信息", + "tfe79063076b7f17f": "命令历史、已保存的快捷栏", + "t268e82d2e6e7bedb": "游戏本体设置", + "t6f543cba87687310": "键位、音量、视频设置等", + "tc6550bf3b055801b": "整合包重要数据", + "te5075ca4e6d95834": "脚本文件、内置资源包、数据包等", + "t1b71480d61233a77": "JEI 个人信息", + "t60d4d433a0601db5": "物品收藏夹等", + "t5dbc6f1c9b481011": "PCL CE 启动器程序", + "td40d2dd6575487ce": "打包 PCL CE,以便没有启动器的玩家安装整合包", + "tecdfc6c1134830a2": "PCL CE 个性化内容", + "tf6fb8bcc23dd80f0": "功能隐藏设置、主页、背景音乐和图片等", + "t862c9a50d5287e87": "已绘制的地图", + "t6ace96f020ffb38b": "地图类模组为现有的存档、服务器记录的地图、路标点等", + "tdb021393d3c2b58b": "模组设置", + "t3b454c23efd1d7e4": "OptiFine 设置", + "tfaff21b51908ce9d": "帕秋莉手册个人信息", + "tc56dc67f745cfa23": "教程书的已读记录、书签、阅读历史记录等", + "t2173eb47ca72149a": "录像回放", + "t0624a09a0dfb71e2": "Replay 模组的录像文件", + "t29cb489372297726": "纹理包/材质包", + "tc7a3c9dbb220e5d6": "单人游戏存档", + "tfb76b9676a7fe53c": "世界/地图", + "tc95dc99afe57b285": "截图", + "t0ef42470d670efdd": "其他文件夹", + "t8c9933ce3a5e1dc4": "未被上方选项覆盖的文件夹", + "tf4af1eaef3074434": "多人游戏服务器列表", + "tf1a57238be2ac752": "导出的结构", + "t77c622fa54ad7292": "schematics 文件夹", + "t76420433f22d1c80": "导出", + "t9be6709eb0019ebe": "是否要初始化该实例的实例独立设置?该操作不可撤销。", + "t141e351a2eef1e08": "初始化确认", + "tfea405f9b01d1416": "概览", + "t83acdb2d4d760f6d": "刷新中……", + "t9b4eaaa18caee368": "游戏资源", + "tc73a6774d91ca0f6": "存档", + "tdf3d58c7d84b85f2": "设置", + "tca4781cceaf664e0": "愚人节版本", + "t9b1c8ca621c3a255": "从实例列表中隐藏", + "t4a8d900c57844210": "该实例默认将不会在实例列表中显示。\n在实例列表页面按下 F11,即可查看所有隐藏的实例。", + "t69a2009a9deb78bd": "不常用实例", + "t480ef5f17abdd1b1": "可安装模组的实例", + "tc1e6bfac5a22e765": "常规实例", + "t515559957fd3acbd": "分类", + "ta88017157115d638": "你确定要删除实例 {0} 吗?", + "te358c6fc0652182b": "你确定要删除实例 {0} 吗?\n由于该实例开启了实例隔离,删除时该实例对应的存档、资源包、模组等文件也将被一并删除!", + "tc6096dd6e3b57495": "你确定要永久删除实例 {0} 吗?\n由于该实例开启了实例隔离,删除时该实例对应的存档、资源包、模组等文件也将被一并删除!", + "t5489860978c76803": "你确定要永久删除实例 {0} 吗?", + "td4fd4ae5ffd5b4e9": "实例删除确认", + "t86aa9269ba9412a1": "实例 {0} 已永久删除!", + "t27321bb6ca447d84": "实例 {0} 已删除到回收站!", + "t8779f71adfbd7287": "默认描述", + "tb9ac1c43040b82cb": "修改实例的描述文本,留空则使用 PCL CE 的默认描述。", + "t896f6359a87045fa": "更改描述", + "tc9d9331f6df13c83": "修改实例描述", + "td8e665c668dd99f6": "实例概览操作失败。请查看错误详情。", + "t2e8a4ae9c22dca06": "加入收藏夹", + "tfc3389551193a511": "确认要从实例列表中隐藏该实例吗?隐藏该实例后,它将不再出现于 PCL CE 显示的实例列表中。\n此后,在实例列表页面按下 F11 才可以查看被隐藏的实例。", + "t617a197cedd648ac": "隐藏实例提示", + "t06c509fdf8d6e78b": "重命名实例", + "t5a30c4156f939e37": "重命名成功!", + "t8709e4857f104e24": "你确定要对 {0} 的核心文件进行修补吗?\n修补游戏核心可能导致游戏崩溃等问题。\n在修补核心后,文件校验会自动关闭。", + "t54f273b0e125077d": "修补提示", + "t8cd8f2390e11dce3": "正在修补游戏核心,这可能需要一段时间", + "tbf98514ebdf17400": "压缩文件(*.jar;*.zip)|*.jar;*.zip", + "t48574874b7e4bcab": "选择用于修补核心的文件", + "te69b44290d2ac527": "修补游戏核心成功", + "t38c043e08502e710": "个性化", + "t28a39ead5f71b8b2": "修改实例名", + "tc0252af360e72700": "你确定要重置实例 {0} 吗?\nPCL CE 将会尝试重新从互联网获取此实例的资源文件信息,并重新执行自动安装。", + "t8b3223231d320fb3": "实例重置确认", + "te3bad172c4ab6ffc": "该实例暂不支持重置!", + "t98f99fa1334c609f": "无法重置:当前启动器已不再支持 Quilt 加载器。", + "tc08f3233cf499266": "导出启动脚本失败", + "t03fefc9344418167": "正在导出启动脚本……", + "t68767ef57a8c1509": "正在导出启动脚本……(注意,使用脚本启动可能会导致登录失效!)", + "t6c182e20eb78d7d2": "批处理文件(*.bat)|*.bat", + "t8bff7573066345c0": "选择脚本保存位置", + "t0c3fd1fbf68df17d": "请在当前启动任务结束后再试!", + "t737dc0aa07b51649": "实例文件夹", + "tc87d9c833d9720b2": "模组文件夹", + "tf6e37bd65d12b035": "存档文件夹", + "t6ab335864461b295": "快捷方式", + "tdd7f9fcd5cd340ab": "从收藏夹中移除", + "tb094339479ac81e9": "铁砧", + "ta2797bfb0c0400f0": "圆石", + "t16a0dbdcfa2b6779": "命令方块", + "t4986e50332fe9483": "土径", + "te9f5b71a472d27bb": "鸡蛋", + "t95dec4757941cf7c": "布料(Fabric)", + "t7c63dcc48d04cbc3": "金块", + "tb6dafde3be054a37": "草方块", + "t6f5537d8652ec493": "狐狸(NeoForge)", + "t9e7529c557f180cb": "方格(Quilt)", + "t770fdcdd6d6f3e7d": "红石块", + "t229595ed966c69bf": "红石灯(关)", + "t69b8251b1d7fd98a": "红石灯(开)", + "t103f091554dcf69f": "常用图片文件(*.png;*.jpg;*.gif)|*.png;*.jpg;*.gif", + "t9ad12a1ab4f6b527": "选择图片", + "t0d720eeea26466dd": "图标", + "ta8b6c39dcabfc14b": "已安装", + "t5da8476895d8c353": "已启动 {0} 次", + "tc30419ac9d6d256d": "从未启动", + "t713dffe3e706a2f8": "启动次数", + "t7fa9f74dc70a0ee7": "获取实例信息", + "t4c79277fb16af473": "获取可能的整合包信息", + "t85fedcb111e93f53": "正在获取信息", + "t92b742d80072559b": "实例信息", + "t0e1c46c0a4d39fd6": "删除实例", + "t633eb5f8529a10f6": "导出启动脚本", + "t425d85157b443ac9": "修补核心", + "tc0540c3dea709da0": "重新从互联网获取此实例的安装信息,并执行自动安装。\n你的存档、模组、资源包等信息不会丢失。\n若游戏因 Libraries 等资源缺失无法启动,请尝试此项。", + "t74894f76ad198901": "补全文件", + "ta5769ef36ec8dde4": "校验实例依赖文件是否完整,并重新下载 Assets 索引与缺失、校验失败的文件。\n若游戏缺失音效,请尝试此项。", + "t853aab6ecaacb35b": "测试游戏", + "t58dbf974977f7f52": "高级管理", + "t0bfccf12bc46e29f": "{0}已取消!", + "t431ec84a1fdd4a35": "请先关闭 [实例设置 → 设置 → 高级启动选项 → 关闭文件校验],然后再尝试补全文件!", + "t662704167945cee0": "{0}失败。\n\n详细信息:\n{1}", + "t948ef9f66c2e8b99": "正在处理中,请稍候!", + "t4f7ad22053699ca0": "{0}成功!", + "td58f9cbfb01d2092": "文件补全", + "t6e280f54e3f9a1b5": "返回上级", + "t47721ffdd1cb67be": "检查模组", + "t2066c72f7d8c7873": "快速检查模组的版本要求、重复、前置缺失等问题。\n结果仅供参考,由于部分模组标注的信息有误,可能并不准确。", + "tdfab0dd8cfeb41a6": "下载新数据包", + "t4520036789cd1cf1": "你可以从已经下载好的文件安装数据包。\n数据包需要放置在存档的 datapacks 文件夹中才能生效。", + "t49bf35e5b4668026": "尚未安装数据包", + "t892a649bde9508bc": "导出详细的数据包信息", + "t3dd3f0fe7d069599": "正在加载数据包列表", + "t5b99268f11dbb51d": "由于文件被占用,删除失败,请尝试关闭正在运行的游戏后再试!", + "t9c227fa3c9000ad0": "已彻底删除 {0} 个项目!", + "tb1651ccfeba1b5b9": "已彻底删除 {0}!", + "t5369f5ce60c4f22f": "已将 {0} 个项目删除到回收站!", + "t81f82ad6b08f36b1": "已将 {0} 删除到回收站!", + "t7df5c456c765e4c3": "禁用", + "tfa7b98e0f04439e3": "下载新资源", + "tdb5380c5ca00d8a4": "存在文件冲突", + "t0892ef4262528ab7": "目前同时存在启用和禁用的两个模组文件:\n - {0}\n - {1}\n\n注意,这两个文件的内容并不相同。\n在手动删除或重命名其中一个文件后,才能继续操作。", + "tb3a79dfdcd946011": "由于文件被占用,模组的状态切换失败,请尝试关闭正在运行的游戏后再试!", + "t89a377eefd04c4bf": "你可以从已经下载好的文件安装资源。\n如果你已经安装了资源,可能是实例隔离设置有误,请在设置中调整实例隔离选项。", + "t0b8326f6ae1fdb38": "你可以下载新的资源,也可以从已经下载好的文件安装资源。\n如果你已经安装了资源,可能是实例隔离设置有误,请在设置中调整实例隔离选项。", + "tfce3b7df9ab2aba1": "尚未安装资源", + "t4a574e1c3c709066": "你可以从已经下载好的文件安装资源", + "t43155cb048105719": "该文件夹为空", + "tf4f0ead1116b5b62": "启用", + "t6c67533a8afe1f01": "资源管理操作失败。请查看错误详情。", + "t333de441c99bc22b": "文本文件(*.txt)|*.txt|CSV 文件(*.csv)|*.csv", + "tbb203b17ebdf7f60": "CSV 格式", + "tdda50484e377dac9": "TXT 格式:仅导出当前的资源文件名称信息,通常足够他人获取已安装的资源信息\nCSV 格式:导出详细的资源信息,包括其文件名、工程的 ID、文件内版本信息等详细信息", + "t7a3f8ec103a45dd5": "选择导出模式", + "td1c9f8e32f6727d9": "TXT 格式", + "ta083aef147108081": "导出信息", + "t8a8e0b1a7e4b315c": "导出详细的资源的版本信息", + "t7bc03302e1e4f67c": "从文件安装", + "t42ca6e8863ed93d7": "正在加载资源列表", + "te56afdba8c75968f": "转到下载页面", + "t29fc017d002a058f": "你需要先安装 Forge、Fabric 等模组加载器才能使用模组,请在下载页面安装这些实例。\n如果你已经安装过了模组加载器,那么你很可能选择了错误的实例,请点击实例选择按钮切换实例。", + "tf5a76549ed49cfaa": "实例选择", + "t1df33817426cf8ff": "该实例不可使用模组", + "t14e68ce7631adc07": "模组关系", + "te44b26efe75fb52b": "查看模组的依赖关系、缺失前置与内嵌(Jar-in-Jar)结构", + "t0854a00f04095795": "这里概览模组间的依赖关系与内嵌结构。禁用或删除模组时会提示受影响的依赖项。", + "t4142a8614a5f5082": "模组仍在解析", + "tc408a0772b63ea47": "内嵌模组关系仍在后台解析,此时禁用或删除的连带依赖检测可能不完整,可能遗漏应一并处理的模组。是否仍要继续?", + "t093ef87147f7b024": "没有可分析的模组关系", + "tcf4ed2419584cad4": "当前实例的模组均无依赖声明或内嵌模组,或模组列表尚未加载完成。", + "t08616b42bd23356c": "冲突关系", + "t2f517e46fae14e9d": "「不兼容」:两者无法同时加载,一起安装会导致游戏崩溃或无法启动,需卸载其一。\n「不建议共存」:可以一起加载,但作者标注了兼容性问题,可能出现异常或功能失效。", + "t9a7c7a01905d3b77": "{0} 与 {1}", + "tdddfc423fbf8f547": "内嵌模组", + "td9e3e35ceb81eb32": "{0} 缺少前置:{1}", + "tc78a02068c5fb530": "{0} 前置版本不符:{1}", + "t7cfcb800c1fb4b2c": "{0} {1}(检测到:{2})", + "t241d2e8cb6a00bc3": "{0} 的前置被禁用:{1}", + "tbc5a87a757a557d9": "已禁用", + "tc7b100922251edf5": "内嵌提供", + "t27a8e574a23eeebc": "版本不符", + "t65364e6fd8c7b5f1": "缺失", + "t9dc7bac672c4c813": "[可选]", + "te8a452844d9fd6b9": "✓ 当前实例使用", + "tc955b3b6e6ee226f": "⚠ 不适配当前版本", + "t02784d9ae7aea2dc": "{0} 个版本", + "t8e98cfd0f447a9ca": "[内置 · 来自 {0}]", + "t9af25a4904ed9d4f": "搜索模组:名称 / ModId / 依赖", + "t1115a649da2df346": "仅操作此模组", + "t39d069a363c9f2fc": "连带禁用依赖它的模组", + "t1b20806091275818": "连带删除依赖它的模组", + "t9aee4315e0a9323b": "禁用此模组会影响 {0} 个依赖它的模组,请选择处理方式", + "t9f11573bb2709e02": "删除此模组会影响 {0} 个依赖它的模组,请选择处理方式", + "td944035e48cdd9db": "下载投影模组", + "t71c9d0bdaa75e6c2": "你可能需要先安装投影模组,如果已经安装过了投影模组请先启动一次游戏。\n也可能是你选择错了实例,请点击实例选择按钮切换实例。", + "te507785c9e87e955": "该实例不可用投影原理图", + "t858de76f2de899f6": "搜索资源:名称 / 描述 / 标签", + "t3a5040b68abf75f9": "全选", + "t56d6ec3bf4515e41": "已选择 {0} 个文件", + "tf9294e9ea241b1b5": "加入时间", + "ta6e48adc26d686d7": "文件名", + "tb9bf6916437a77eb": "文件大小", + "t41cec19b0b5be53d": "资源名称", + "tfb3f54d79ebf0bb1": "标签数量", + "t2c485168df9ec9fe": "排序:{0}", + "t64b0cd8342af4b26": "全部 ({0})", + "t2f8f1620a524b9f3": "禁用 ({0})", + "t609cf2fdf6ffcc61": "重复", + "ta0c1c6602c8e66e4": "重复 ({0})", + "tdfb802238b38fbd4": "已启用", + "tda8e5543f13369ca": "启用 ({0})", + "t0bc1fb72ae1be5c5": "错误", + "t9c25d3997bc2e41f": "错误 ({0})", + "t88d72ece7cf76737": "搜索结果", + "t08d43bdc4dcb6253": "可更新", + "tb3d89638c58dc897": "可更新 ({0})", + "t0d5abd9fe44513fc": "是否要将这些文件作为{0}安装到 {1}?", + "t636ed7bef392fff2": "{0}安装确认", + "t4b4e35bb50052731": "是否要将这些文件作为模组安装到 {0}?", + "tcb6ca2481331d3ca": "模组安装确认", + "te859e6d66a16e151": "已存在同名文件:{0},是否要覆盖?", + "tb23fb9949a582fc3": "文件覆盖确认", + "tc8fe5e44bf2bf09a": "请先将文件从回收站还原,再尝试安装!", + "t9f3672fd59db1a0c": "若要安装模组,请先选择一个可以安装模组的实例!", + "t97522f95ee697162": "已安装 {0} 个{1}!", + "t2f9e65b4e18ca8a8": "已安装 {0}!", + "t7f9db0f6fb9b9023": "不支持的文件格式:{0},{1}支持的格式:{2}", + "t7c9062e87916df7f": "模组文件(*.jar;*.litemod;*.disabled;*.old)|*.jar;*.litemod;*.disabled;*.old", + "t299ba3446d92abbf": "选择要安装的模组", + "t0190e4f428de4d1e": "资源包文件(*.zip)|*.zip", + "t528303ecc4272d74": "选择要安装的资源包", + "t816123fb64a91787": "投影原理图文件(*.litematic;*.nbt;*.schematic;*.schem)|*.litematic;*.nbt;*.schematic;*.schem", + "te44bfec7f618a520": "选择要安装的投影原理图", + "t8e5c11d41b754d1e": "光影包文件(*.zip)|*.zip", + "ta4a892908fbb9c3f": "选择要安装的光影包", + "t597848b318c74c4e": " [错误]", + "t7c7802d8adaed72e": "文件夹", + "tf39b33bb4aadc5e2": "存在错误,无法获取信息", + "tdfa85a041ea1809b": "打开更新日志出现错误", + "t3055a035f0eb7a8b": "更新", + "tfcacadc617fb5db9": "当前版本:{0}({1})\n最新版本:{2}({3})", + "tab1696e556f288de": "是否要更新 {0}?", + "t2e3963b7e1af3f3b": "更新确认", + "t676481107ed10a2e": "点击以更新,右键查看更新日志。", + "tbd50eff4af4697ff": "查看更新日志", + "t3f7d59cf3b763754": "作者:{0}", + "ta5949e8d1389abbb": "包含 {0} 个文件", + "ta79cdb56cddbd02d": "包含 1 个文件", + "tedd4c541cf326c7f": "依赖于:", + "t4ce9023ebcffd766": "{0},版本:{1}", + "tb6ce5ff81c9e5838": "详细的错误信息:", + "t8413b6cec2bea3f4": "空文件夹", + "t9858574191aad1b4": "无法读取此资源的信息。", + "t988119f2f60eff68": "无法读取此资源的信息。\n\n详细的错误信息:\n{0}", + "t855e1152acd54c1e": "资源读取失败", + "te51b804de1fa1601": "文件:{0}({1})", + "td81a0bc3d2b23320": "文件夹不存在", + "t5f179fa65fa3c5c4": "正在加载详情....", + "tb9ae22fecbf1f2e9": "百科搜索", + "t32da8316199b8a0c": "模组 ID:{0}", + "td1ef10bd63ff9022": "路径:{0}", + "ta7286ba3d06d5271": "版本:{0}", + "t4bcfaa4e7ca946ef": "创建时间:", + "tcdb39b0543017609": "数据版本:", + "t7eead9ab3cb8b494": "详细信息:", + "td9a16e0f46daed4d": "包围盒尺寸:", + "tf7c4cd5114c2e9f6": "包围盒大小:", + "td1898e258d5d922f": "文件类型:", + "tccc84b3d9a140c3d": "MCEdit/WorldEdit Schematic", + "t1dbb9ebc3b7143a7": "原版结构", + "tc0b0a7f5107813a7": "Sponge Schematic", + "tc64efddf10849cd9": "游戏版本:", + "tb4575c3ecd059aa4": "修改时间:", + "t3c81f1a5533e9cd1": "原始名称:", + "t46bfb359ba439e26": "区域数量:", + "t888d070cf293a0aa": "大小:", + "t27083401efb100da": "Sponge 版本:", + "t68a663d72674a1ec": "总方块数:", + "tc7a0ccee7fde8993": "总体积:", + "t1299a463693b6308": "原理图版本:", + "t00a50d0f21c92f67": "资源更新已中止!", + "tf929e6e4296436fb": "资源更新失败:{0}", + "tf647bbb59100158c": "已成功更新 {0} 个资源!", + "t2fe702002e0cc8a1": "已成功更新 {0}!", + "t3353932ac7b3a2d3": "下载新版资源文件", + "tcfc6f0f80e300d9d": "替换旧版资源文件", + "t23fb47d47949cd76": "资源更新:{0}", + "tc8b6acd6c2824a03": "正在更新资源", + "t0c06c0f68525de81": "我已了解风险,继续更新", + "tbdbde764a34d4f32": "新版本模组可能不兼容旧存档或者其他模组,这可能导致游戏崩溃,甚至永久损坏存档!\n如果你在游玩整合包,请千万不要自行更新模组!\n\n在更新前,请先备份存档,并检查模组的更新日志。\n如果更新后出现问题,你也可以在回收站找回更新前的模组。", + "t21693937fb2e718d": "模组更新警告", + "t9d8a03f46364f97f": "已复制存档文件夹到剪贴板!", + "te52345553d8eece9": "复制失败……", + "tad2886a4dc41e1b6": "注意!在粘贴之前进行删除操作会导致存档丢失!", + "t3ec349752dabe75e": "复制存档", + "tc1e74205b46bf513": "创建时间:{0},最后修改时间:{1}", + "t3e89dc78fd3fb178": "删除存档失败!", + "t2e8a29e4b72616e5": "已将存档移至回收站!", + "t369484c5ec1fd2fd": "删除中……", + "t979a332955c855bf": "详情", + "t454857e571a74097": "发现同名文件夹,无法粘贴:{0}", + "t120b12cdbf2d75e3": "可以在此处查看当前实例的存档", + "t9a847ba1161acb10": "暂时没有存档文件", + "t9171f53414524e65": "存档操作失败。请查看错误详情。", + "t0e7d90ffb11b2d6d": "现改为双击文件夹进入子文件夹。", + "tb87b880332e23a8f": "操作提示", + "te4067375056a4946": "文件夹不存在或已被删除", + "t67c4ace2b9e92d61": "存档文件夹不存在!", + "te7028601e7da793d": "信息", + "t899432d83d98c3bf": "快捷操作", + "td181b68d7894551f": "切换分页面失败(ID {0})", + "t7c194a7fff1796ef": "未知的实例设置子页面种类:{0}", + "t96762502d60e1998": "存档列表", + "tbd755fab3b30a6b5": "载入存档列表失败", + "t0a490eb3af40018c": "打开文件位置", + "tb716ad55bffa744e": "打开存档文件夹", + "t787851c9802de7b9": "粘贴剪贴板文件", + "t0beffbcfa4510819": "粘贴存档文件夹失败", + "te71a9e220ede1d03": "已粘贴 {0} 个文件夹", + "t91103c8fae0111a0": "快捷启动", + "t9c5b4871d36c903f": "刷新存档UI失败", + "t69fc05bff50ed548": "存档列表 ({0})", + "t47f206fe3ec9a685": "搜索过程中发生异常", + "t46c10fbcd79ec83e": "搜索存档名称", + "t07ec86e0f1d44f91": "创建时间", + "t257bbcc44c839db4": "修改时间", + "ta7bb2f73f0f43556": "源文件夹不存在或源目标不是文件夹", + "t9283634badebfa28": "TXT 格式:仅导出当前的数据包文件名称信息\nCSV 格式:导出详细的数据包信息,包括文件名、工程 ID、版本信息等详细信息", + "t82c0db872c4a7ffc": "作者:", + "t2228b2755b4fb353": "数据包 ID:", + "t9491ade2781febfb": "文件:", + "t011958f9bf79ae4f": "无法读取此数据包的信息。", + "t3ee8679632fcd1a1": "无法读取此数据包的信息。\n\n详细错误:\n{0}", + "t0bdf9529104b7008": "数据包读取失败", + "tb6c0bf3495992e5c": "版本:", + "t7eabd5a06216e332": "数据包文件(*.zip)|*.zip", + "tdd989c3b4b9d5e3c": "选择要安装的数据包", + "t0523c0608cfcad50": "是否要将这些文件作为数据包安装到当前存档?", + "t1060c0725d578c79": "数据包安装确认", + "tda2630538f07aa7a": "已存在同名文件:{0},请先处理该文件再重试。", + "t510f783ad2c9ea66": "由于文件被占用,数据包的状态切换失败,请尝试关闭正在运行的游戏后再试!", + "t9dd267b91dae16ea": "下载新版数据包文件", + "tb3a5d6b0f49ff53a": "替换旧版数据包文件", + "tb220d03ff8fa1c16": "数据包更新:{0}", + "t989f8339ff941ce3": "已跳过 {0} 个文件名不安全的数据包更新。", + "t5d237e5a89e8c00f": "新版本数据包可能不兼容旧存档或者其他数据包,这可能导致游戏崩溃或存档损坏!\n\n在更新前,请先备份存档。\n如果更新后出现问题,你也可以在回收站找回更新前的数据包。", + "t5b9399bc2a220260": "数据包更新警告", + "td85f6fb029fcb14d": "是否允许作弊", + "tce7ef28b670ade58": "允许", + "t4a044484f863c5e5": "不允许", + "tf0a24fc8598efefe": "当前存档版本 '{0}' 可能是预览版,不受支持,无法跳转到 Chunkbase", + "t723c616ebe870dbe": "跳转到 Chunkbase", + "t8ed201fe2d0a22ec": "当前存档版本无法确定,因此无法跳转到 Chunkbase", + "td70e7288e1af0694": "存档详细信息", + "t01805727314e4def": "简单", + "t4ea02714a1e96276": "困难", + "tde907d10df98b498": "普通", + "tc38b401e2062ca88": "和平", + "te227246f4d1712f9": "是否已锁定难度:{0}", + "t418ee1851864601f": "跳转到 Chunkbase 失败", + "tbf3cf269a0241175": "复制到剪贴板失败", + "te5f2a4634c0a8561": "获取存档信息失败", + "t10fc628593208200": "游戏难度", + "tfda0e5d87bac4091": "游戏模式", + "t16d0879b78417cf2": "冒险模式", + "tff0b169fcecb9fbd": "极限模式", + "te89383dd0b899df8": "旁观模式", + "tdb8f876a8dd99404": "生存模式", + "t69aee90c9b104a39": "困难度", + "te6df2ef62df6b8ea": "最后一次游玩", + "t90e4538f0770c4c9": "存档名称", + "t99d61ea4514d645f": "锁定难度", + "t75d5eae61e59696b": "锁定当前难度设置,锁定后无法在游戏中更改游戏难度", + "t64187c54fcf06c21": "修改设置前请确保该存档未在游戏中打开,否则会导致设置无效", + "t6f38d81d63644d56": "作弊设置修改失败", + "t319cd8edbf998568": "作弊设置修改成功", + "t345e027ba7aa9931": "难度设置修改失败", + "td8a787e6dd32590c": "难度设置修改成功", + "t51c738ac0ef65de7": "游戏时长", + "t5e20fc223736c86a": "种子", + "tac50792e77e73837": "存档设置", + "tb0bc86009feba52d": "出生点 (X/Y/Z)", + "t2936050efd476c66": "存档版本", + "t0160dee680ba5122": "1.3 以下的版本无法获取存档版本、游戏难度和是否允许作弊", + "t3594d6baee45e710": "1.8 以下的版本无法获取存档版本和游戏难度", + "t67296e5b0b6f14d0": "1.9 以下的版本无法获取存档版本", + "t095a2f5192379793": "已复制截图到剪贴板!", + "te0dba6ba1c0c78dd": "截图复制失败!", + "t7e31502d17727490": "删除截图失败!", + "t0437dbd2e6ef93f2": "已将截图移至回收站!", + "tf6697801012cb5c3": "在游戏内按下截图键(默认为 F2)后,可在此处查看保存的截图", + "ta2e8e9dbf9330447": "暂时没有截图文件", + "teb369aa527e812aa": "截图文件不存在!", + "t6d3279b3578e2c5e": "打开截图失败!", + "td45f7834d6d90962": "打开截图文件夹", + "t7471e181a1530af4": "添加新服务器", + "tf0fe5f8377db97cf": "请输入新的服务器地址:", + "tba0a28cd23806bff": "Minecraft服务器", + "t7b5e700895abe812": "编辑服务器信息", + "t01af5e5c7e2cf9a6": "暂时没有找到服务器,在游戏内添加服务器或点击下方按钮添加新服务器", + "t0f9dae50dc2d636a": "暂时没有服务器", + "t77fdc45528150bc2": "找到服务器列表", + "tc3b1f2a66670a584": "无法找到服务器在列表中的索引", + "te4b8931b003fcbdc": "请输入新的服务器名称:", + "t35f9c779db261c5e": "请勿频繁刷新!", + "t9f2a15d87299064a": "没有找到任何服务器", + "ta788d8b94485ccb9": "无法读取服务器数据文件", + "td8eadcfaa53e99f7": "读取servers.dat文件失败", + "tf87b9db5ce114e67": "刷新所有服务器", + "te03d7b7e2eee4aae": "刷新服务器列表失败", + "tb0a1a3b397f6c100": "刷新服务器列表失败。\n\n详细错误:\n{0}", + "tb3b549a29cf70bdf": "刷新服务器信息", + "t07c44eb39f105d1d": "正在刷新服务器列表,请稍候...", + "t17b79c84e37b296d": "服务器已移除", + "tc16129bac4e37a55": "服务器信息已更新", + "td56a07882a6a4c30": "无法写入服务器数据文件", + "ta3694e2c97a83037": "已复制服务器地址:{0}", + "t694186911ae3e4da": "正在连接", + "t83cd1d8f37747eaa": "正在连接...", + "tb96f23f9b1db9da3": "正在连接到服务器 {0}...", + "t4c6de01bbe86b3d8": "复制地址", + "t9d631083fbb86edf": "复制服务器地址失败", + "t051836569928a9f9": "编辑", + "t4d96a8f48a04db72": "编辑服务器信息失败:{0}", + "te2a6044888c9aa01": "启动服务器失败", + "t8eff613f1c16c691": "启动服务器失败:{0}", + "tbe1b4f3c6c1cda1e": "离线", + "te1c40eb448009e4e": "正在刷新服务器 {0} 的状态...", + "t6135d4159e892541": "移除", + "tf6e40d6dda9d9d2c": "你确定要移除服务器 {0} 吗?\n'{1}' 将从您的列表中移除,包括游戏内列表,且无法恢复。", + "t027ee565544e28b9": "移除服务器确认", + "tcd522a502acc5efb": "服务器离线", + "tc0ff50ddf6a9590a": "实例设置操作失败。请查看错误详情。", + "td1c8332214d92565": "跟随全局设置", + "tf079baf5319805b2": "这些设置只对该游戏实例生效,不影响其他实例。", + "t8a4c4be60b6c23ec": "已初始化实例独立设置!", + "t0942cfc0d4005d46": "已使用内存", + "t3f754f38a6547e20": "全局设置", + "t254170063a3d4c95": "Classpath 头部附加", + "tce6add83ab057f49": "文本框中的内容将被作为 Classpath 添加到该实例的启动参数中的 Classpath 头部。\n需要使用绝对路径。若有多个,请以半角 (英文) 分号分隔。", + "t2f207f903580b01b": "关闭文件校验", + "t276c9874402c1956": "完全不更改 Assets;不校验 Libraries、第三方登录库与实例主 Jar 文件是否被修改。\n如果你没有修改相关文件,请勿勾选此项。", + "t7734f842a3842a40": "文本框中的内容将会被直接拼合在启动参数的末尾。\n例如,输入 --demo 则会以试玩模式启动游戏。\n支持 Minecraft 实例 JSON 中的字符串替换标记,例如 ${library_directory}。\n\n若留空,则跟随全局设置的值。", + "tbaf991914cae91dc": "忽略 Java 兼容性警告", + "t236723cfbca1d79e": "如果手动选择了与当前实例不兼容的 Java,则自动跳过兼容性警告弹窗,强制使用手动选择的 Java。", + "tad9f842ba691fb1c": "启动 Minecraft 时使用的额外 JVM 参数,在没有确定把握的情况下请不要尝试修改。\n支持 Minecraft 实例 JSON 中的字符串替换标记,例如 ${library_directory}。\n\n若留空,则跟随全局设置的值。", + "t3c7e5c6976b76dc0": "该项不会覆盖全局设置:启动时会先执行全局设置的命令,再执行实例设置的命令。\n\n在 MC 启动前执行特定命令或程序,语法与 Windows 的命令提示符一致。\n\n可以使用以下替换标记实现相对路径(路径均以 \\ 结尾):\n · {path}:PCL CE 的 exe 文件所在的文件夹\n · {minecraft}:.minecraft 文件夹\n · {verpath}:实例文件夹(.minecraft\\versions\\实例名\\)\n · {verindie}:开启实例隔离时等同版本文件夹,未开启时等同 .minecraft 文件夹\n · {java}:游戏运行时的 Java 文件夹\n\n除此之外,也支持以下替换标记:\n · {user}:玩家名字\n · {login}:玩家的登录方式\n · {uuid}:玩家的 UUID\n · {name}:游戏实例名\n · {date}、{time}:当前的系统时间\n · {version}:游戏对应的原版版本号\n\n例如:\n · \"{verpath}test.exe\" :运行实例文件夹下的 test.exe 程序\n · \"{java}java.exe\" -jar \"{verpath}test.jar\" :用 Java 运行实例文件夹下的 test.jar\n · notepad \"{verindie}options.txt\" :使用记事本打开该实例的设置文件\n\n涉及路径的操作最好都打上双引号,以避免路径中的空格导致运行失败。\n执行命令时,命令行所在的目录是当前的 .minecraft 文件夹。", + "tcdd830c6cd119267": "使用调试级别 log4j 配置文件", + "t4b595752bc8a3a8c": "本选项会修改游戏日志级别修改为最低,大量日志输出会消耗大量磁盘空间并可能影响游戏性能。这也可能带来一定安全风险。如果你不知道你在做什么,不要修改此选项!\n你确定要继续修改吗?", + "te376f1655a97f78c": "跟随启动器网络代理设置", + "taf8e128ddba4278b": "使用 [设置-其他-网络-HTTP 代理] 中填写的代理来启动游戏。\n错误的全局配置将会导致无法登录!", + "tff584bda0148332e": "该信息会显示在游戏主界面的左下角,与 F3 调试页面的左上角。\n若留空,则跟随全局设置的值。", + "tab631b712c513887": "实例隔离", + "t37df05c413d1ee97": "与其余关闭隔离的实例共享存档、模组等文件。\n若存在多个安装了模组的实例,可能会由于模组冲突而导致崩溃。", + "t8da97ddda990e7c4": "开启", + "tc77bf2481702f366": "与其他实例的存档、模组等文件相互独立,互不干涉。\n这会使你无法跨实例共享存档,但可以规避模组冲突问题。", + "ta7ce7dbe1128f0d9": "调整实例隔离后,你可能得把游戏存档、模组等文件手动迁移到新的游戏文件夹中。\n如果修改后发现存档消失,把这项设置改回来就能恢复。\n如果你不会迁移存档,不建议修改这项设置!", + "t5ff70e0c460b14ba": "默认窗口标题", + "t72b24a24b7186171": "游戏窗口标题是否保留默认。", + "t2cb7d85e465d4c68": "自定义游戏窗口的标题,若留空则跟随全局设置的值。\n支持以下替换标记:\n · {user}:玩家名字\n · {login}:玩家的登录方式\n · {name}:游戏实例名\n · {date}、{time}:当前的系统时间\n · {version}:游戏对应的原版版本号\n注意:如果你的实例安装了 Modern UI 模组,那么这里的设置将会失效", + "t80d02d707e18a966": "游戏 Java", + "tfb31b8a8dca01dfb": "自动选择合适的 Java", + "t10c43f80e36f6f1c": "路径: {0}\n版本: {1}\n来源: {2}", + "teaec117ce227a9bf": "无效路径: {0}\n点击此项重新选择有效 Java", + "ta2d981f17e38c87f": "列表加载失败,请重试", + "t91004033f37b6298": "未检测到可用的 Java 运行时", + "tf8379e8f48942368": "请在设置中手动指定 Java 路径,或点击“扫描”按钮重新检测", + "t9e405604dae16e94": "超出路径允许范围,请选择启动器文件夹或其子文件夹下的文件", + "t82907c4d2fb89580": "相对路径: {0}\n解析路径: {1}", + "t464d60369ec72913": "选择启动器目录下的 Java", + "ta1671b20fa7e11a4": "选择启动器目录下的 Java(当前路径无效)", + "tcfe0b2eeaa7c70ed": "启动器目录下的 Java | {0}", + "tce793c1d927e8312": "将选择相对于实例目录的 Java 路径", + "t7498384b686c2fcf": "若将 Java 放在游戏文件夹或 PCL CE 文件夹,在进行自动选择时 PCL CE 会尽量优先选择它", + "ta6ac7a930db5437f": "目标验证服务器", + "t20d5ef706cb3723d": "已自动格式化验证服务器地址!", + "t2573aa7313bbafa4": "Yggdrasil API 认证服务器的完整地址", + "tcef3e2cea27303a4": "自动进入服务器", + "tff98385f8cce2ea2": "在打开 Minecraft 后自动进入某服务器。\n用英文冒号间隔 IP 与端口,例如 233.233.233.233:12345。", + "t936d52b878ee55f5": "新建档案", + "tfbe2d154eb82c9c5": "使用 HTTP 协议进行登录操作可能面临登录密码在未加密的情况下被明文传输的安全风险。\n如果没有特殊需求,请始终考虑使用 HTTPS 协议!", + "tafb8b636e332555b": "LittleSkin 登录", + "t670154db6b3a27e1": "即将把第三方登录设置覆盖为 LittleSkin 登录。\n除非你是服主,或者服主要求你这样做,否则请不要继续。\n\n是否确实需要覆盖当前设置?", + "taa4a7e90a21ab78f": "设置覆盖确认", + "t66ba32e26defe4e5": "锁定验证方式", + "td4f0c724de7627b4": "你正在选择锁定此实例的验证方式。锁定之后,将无法再更改此实例的验证方式要求,启动此实例将必须使用指定的验证方式。\n此功能可能会帮助一些服主吧。\n是否继续?", + "tb7550744a3af66c2": "锁定验证方式确认", + "tc5616d31356e3c65": "当前实例的验证方式已锁定,无法再次更改。请使用要求的验证方式启动游戏。", + "t8027864b27f501cc": "仅第三方验证(Authlib-Injector)", + "t31d45494e818f473": "仅正版验证", + "t54d1b0d14b50efea": "正版验证与第三方验证(Authlib-Injector)", + "t9ee3c076a148a297": "无限制", + "tec79bfcf63ea434d": "服务器名称", + "t182035e460e6884c": "显示在登录页面的服务器名称", + "t80313b450cbb168c": "注册链接", + "t695a9798c6fba05c": "注册账号的网页地址,如 https://xxxxx.xxx/auth/register", + "t3ceae2377a17af62": "限制验证方式", + "t48fc3c860db30e8c": "设置为 LittleSkin", + "t6af32ec6e6f57cfd": "未启用 SSL 证书验证可能导致登录密码面临被第三方截获的安全风险。\n如果没有特殊需求,请始终考虑启用 SSL 证书验证!", + "t3468f875c729b5dc": "启动页操作失败。请查看错误详情。", + "t0cf642cf998c86ac": "启动失败", + "t0c6e6d36a48d3015": "若要永久隐藏此提示,请输入正确的 PCL CE 开发组织名称。", + "tabf930d81a9203d3": "输入 PCL CE 开发组织名称", + "tf7bf91b7d28e65ab": "你正在使用 PCL CE(PCL 社区版)!此版本为独立开发和维护,与原版维护路线不同,体验有所出入。\n\n如果你是意外下载到了 PCL CE ,我们十分建议您下载原版 PCL 长期使用,此发行版本对新手用户体验可能不友好。\n此外, PCL CE 的问题请向 PCL CE 的仓库提交 Issue,不要向官方仓库反馈 PCL CE 的问题哦!", + "t7474a16bc5c89a9a": "PCL CE 提示", + "t61599e09cb13804d": "不太对哦……", + "tb0e3009e712b21e8": "启动日志", + "tf2e307925f823db1": "« 返回", + "tff0e560e20a2082f": "切换登录分页失败({0})", + "t1e2df9c3075ae9e4": "登录", + "t78039212f6520d7a": "已取消登录!", + "td01600ce19257b9f": "正版验证", + "t6008bbfdb3e38dc4": "离线验证", + "t6114f5d6d0205ad4": "第三方验证", + "t04ade1879dda1916": "更换角色", + "t73075237fd0f05f0": "邮箱", + "t498f7d2f8747223d": "验证服务器、用户名与密码均不能为空!", + "t06eb15b75f0110f9": "找回密码", + "t790a4386b9505be0": "输入的验证服务器地址无效", + "t493f38e317087595": "第三方登录尝试失败", + "t5be0cbfcf01b1d6a": "第三方登录尝试失败。\n\n原始错误信息:\n{0}", + "t3ab8cc15939f3b5c": "退出登录", + "ta621ab606db2a11f": "密码", + "t3d3c840a9479c5ef": "预设 - LittleSkin", + "t679e917b16ef72d9": "注册账号", + "t902374eeaf859afa": "验证服务器: {0}", + "t551710fd549587c9": "选择验证服务器", + "tbe3cb04a40919d69": "开始 OAuth 登录", + "ta6d788232ec3f20a": "» 使用密码登录", + "t0315a8b263132e2d": "» 使用 OAuth 登录", + "t420c20dd9fcca860": "复制代码", + "tef5d4285531e7737": "正版验证弹窗初始化失败", + "t1b71e1023492f244": "正版验证弹窗加载失败", + "td13635300bb3dac8": "登录网页将自动开启,请在网页中输入授权码 {0}(将自动复制)。\n\n如果网络环境不佳,网页可能一直加载不出来,届时请使用 VPN 并重试。\n你也可以用其他设备打开 {1} 并输入上述授权码。", + "t42b563f4a5e8d794": "登录网页将自动开启,授权码将自动填充。\n\n如果网络环境不佳,网页可能一直加载不出来,届时请使用 VPN 并重试。\n如果没有自动填充,请在页面内粘贴此授权码 {0}(将自动复制)\n你也可以用其他设备打开 {1} 并输入授权码。", + "t2a1d761830126275": "登录 Minecraft", + "t5904373868640ff6": "正版验证轮询失败", + "t01ed19e2900d3910": "重新打开网页", + "t5d57127847ba6af8": "网页登录成功!", + "tf7df4fc957c82c54": "测试标题文本", + "t2e89909e0fd092e7": "Microsoft 登录操作失败。请查看错误详情。", + "t5f35b345cf33839e": "未知错误!", + "td59f3d1d31f29907": "正版登录验证失败,请考虑在 [设置 → 其他] 中关闭 [在正版登录时验证 SSL 证书],然后再试。\n\n原始错误信息:", + "t5cd0d666d6bab4f5": "正版登录尝试失败", + "t2bde595d094e39ef": "正版登录验证失败。\n\n原始错误信息:\n{0}", + "td2c8f3b49f73b807": "» 购买正版", + "te8eead3a6646c67d": "开始正版验证", + "t986325cf33e84b0c": "» 前往官网", + "tcde2cd071d25bbab": "创建", + "tced85ec25bcc781d": "你输入的玩家 ID 不符合标准(3 - 16 位,只可以包含英文字母、数字与下划线),可能导致部分版本的游戏无法启动或发生错误。\n强烈建议使用规范的玩家 ID!\n如果你坚持,仍然可以继续创建档案。", + "tc6ddaa742bb8cdfd": "玩家 ID 不符合规范", + "t4cc492b208bda0b3": "UUID 不符合要求:{0}", + "td5edf64786cd13e3": "玩家 ID", + "t477a342ca80c3b80": "3 - 16 位,只可以包含英文字母、数字与下划线", + "tb42833f5a2d2c13a": "应为 32 位 16 进制字符串,不含连字符", + "tc2209d7f05d76783": "适用于高级用户,如果你不知道这是什么,请不要选择此项", + "t04ea81768ab82ad0": "旧版", + "ta2614c41a13b5af9": "使用旧版 PCL CE 的 UUID 生成规则\n若从旧版 PCL CE 升级,且单人存档的部分信息丢失,可尝试此项", + "te7bff89ec0daeeda": "行业规范", + "t713f13d217d11e28": "[推荐] 生成的 UUID 与 HMCL、BakaXL 和 Bukkit 等其他软件一致", + "t80fcb4b2ebd4ca91": "UUID 标准", + "taa0265f4399d3309": "更改验证服务器名称", + "t2369ed131e93090d": "更改 UUID", + "t74e814bb19061a0d": "复制 UUID", + "t952724a3a21dc439": "新建档案 - 选择验证类型", + "taa4c9300b7e8607e": "新建并选择一个档案以启动游戏", + "tc935b2db7282e943": "需要先进行一次正版验证才能使用其他验证方式", + "t946412fba614b86c": "档案新建成功!", + "t408bf95406abc59d": "删除档案", + "t336ff2ef7565b07b": "你正在选择删除此档案,该操作无法撤销。\n确定继续?", + "t97426dd1b93354ed": "删除档案确认", + "t88022f5a042e5a8b": "档案删除成功!", + "t602a9a7ba17ca415": "请输入新的验证服务器名称", + "t8ceb0f69c39c3f8c": "修改验证服务器名称", + "tb17131209743c985": "修改档案 ID 失败", + "t7acd54368b376ebe": "更改皮肤失败", + "t43541cd29a60bb1a": "档案数据读取失败,文件可能意外损坏。已对档案文件进行备份重置。", + "t715a3dcbcfdba242": "读取档案列表失败", + "t20af727477c625e0": "写入档案列表失败", + "ta173733f1faa78f8": "导入 / 导出", + "t77358d4c779996a0": "档案信息已保存!", + "tbfebf1de59d23772": "选择一个档案以启动游戏", + "tb02a4597f7485f56": "更改档案 {0} 的 UUID", + "t5ae64b316e76b06d": "32 位,不含连字符", + "tca61c221e43ef3d0": "UUID 只应该包括英文字母和数字!", + "t73504ef0b71f6fde": "原版 PCL UUID(若单人存档的部分信息丢失,可尝试此项)", + "t41c9551db4210c11": "新建档案 - 选择 UUID 类型", + "t4c177e2b3ccb969c": "行业规范 UUID(推荐)", + "t9a0eb83e4d605332": "玩家名不能为空!", + "te5ebbf4d9f614249": "玩家名不能包含英文引号!", + "t0ec90bdfe39bf7ff": "未知的验证方式", + "t5de593495b0ec032": "自 1.20.3 起,玩家名至多只能包含 16 个字符!", + "t18b2e4d6607e2743": "注意:玩家 ID 只能每 30 天更改一次,请务必谨慎考虑!", + "t4c62c9c5a5368d5b": "确认修改", + "t1e956957673b5fc6": "首次更改 ID 后,必须等待 30 天后才能再次修改 ID,你可以前往官网查询具体时间。", + "tc4e45c8f10d3877b": "此 ID 已被使用,请换一个 ID。", + "tab06d3017b3b0178": "欲设置的玩家名称为空", + "tb108f4881e05943d": "ID 修改失败", + "tc8c89417c7b6fc27": "3 - 16 个字符,只可以包含大小写字母、数字、下划线", + "t4b41b75f3ee20c02": "玩家 ID 只能每 30 天更改一次名称,请谨慎考虑!", + "t2d868a3e66a95b91": "此 ID 包含了除大小写字母、数字、下划线以外的不合法字符。", + "te7808fed4d5d82dd": "玩家 ID 修改成功,当前 ID 为:{0}", + "tb40c5b98384b3f11": "输入新的玩家 ID", + "t6a65e07235585643": "当前档案不支持修改披风!", + "tafa058778f0044cf": "修改披风", + "tdb995b31656dddc5": "修改皮肤", + "t08d00806241183c5": "修改密码", + "ta6032fe19b5f8e3d": "修改信息", + "td84c0d9e1f6a5630": "修改玩家名", + "t23022216697074ff": "当前档案不支持修改密码!", + "t96fa37f15534dfcd": "刷新头像", + "t772d00472094988f": "保存皮肤", + "tad222fff9f1986a6": "当前档案不支持修改皮肤!", + "t9320324148d73c83": "皮肤与披风", + "tbf6831310af54af6": "选择档案", + "te2f1f4a640f734e1": "下载游戏", + "t7ab2a77d57a655e0": "启动游戏", + "tf020e4630a54d322": "正在加载", + "te92039beeed1d2de": "当前实例正在安装,无法启动!", + "t97e1807083f12386": "当前实例正在安装,暂无法进行实例设置!", + "t2bdb1de3d57c95dc": "正在加载中,请稍候", + "t200375f1052cb52b": "未找到可用的游戏实例", + "tcb5c4d21c9d75f2f": "实例设置", + "ta562ab75537b5aab": "正在加载版本列表,请稍候", + "td4685d3827a646d5": "下载主页失败({0})", + "t35dd74b6a44c0cc8": "读取外部文件失败:{0}", + "t6a59fd2ea5a009c9": "主页内容编写有误,请根据下列错误信息进行检查:\n{0}", + "tb8784c8dd5636ff2": "重试", + "td07b31c6e2724888": "加载主页界面失败", + "tdc479af7c40f1e57": "正在加载主页……", + "ta748cc074f78de00": "查看详情", + "t07405d613ec91a17": "回声洞 因为只有空壳因此已被移除,请前往设置选择其他预设主页", + "t50d371c77a35db85": "PCL CE 公告栏已移除,不会再从原项目服务器加载主页。请前往设置选择其他预设主页", + "ta6397f884141229f": "主页加载过于缓慢(花费了 {0} 秒),请向主页作者反馈此问题,或暂时停止使用该主页", + "t1f6e2c0ee3e44bf7": "下载主页", + "tef5be5afe0c37e0c": "更换披风", + "t9f72582f4a459081": "更改皮肤成功!", + "tf1344989f6c36880": "获取 Authlib-Injector 皮肤失败({0})", + "t6d0a0bc67cefb5f2": "获取 Authlib-Injector 皮肤失败。请求过于频繁,请 5 分钟后再试。", + "tcf46ba5403f4305d": "获取微软正版皮肤失败({0})", + "t18054bb7ac0b9424": "获取正版皮肤太过频繁,请 5 分钟后再试({0})", + "t6043a198efd191c1": "皮肤正在获取中,请稍候!", + "t07b14e88a7449ed5": "皮肤文件存在错误", + "td9fa62b892e0a222": "皮肤文件(*.png;*.jpg;*.webp)|*.png;*.jpg;*.webp", + "tb3de450bdef8be23": "选择皮肤文件", + "td4096ad3fa87cc72": "皮肤文件大小需小于 24 KiB,而所选文件大小为 {0} KiB", + "t15d76acc730894df": "皮肤图片大小应为 64x32 像素或 64x64 像素!", + "t245fe2c513e95109": "载入头像失败:{0}", + "t5943b5f5bb67cd73": "皮肤文件已损坏:{0}", + "t34b593812b243e6c": "Alex 模型", + "t9a2a16545c9f7596": "此皮肤为 Steve 模型(粗手臂)还是 Alex 模型(细手臂)?", + "te3e976d4a94f3119": "选择皮肤种类", + "t6726da71ef0a71d7": "Steve 模型", + "ta4c7f3beb9fee759": "请在皮肤下载页面确认皮肤种类后再使用此皮肤!", + "t7924d4186a6410f3": "有正在获取中的皮肤,请稍后再试!", + "tbaf5db0ad0fc2ffc": "刷新皮肤缓存失败", + "tddd5fefce750d0d5": "已刷新头像!", + "t3bb3573d7bce93a1": "正在刷新头像……", + "tf5b8f1c77f79766f": "保存皮肤失败", + "t1337f005b67c60d4": "皮肤图片文件(*.png)|*.png", + "t888af92f234bbf9b": "选取保存皮肤的位置", + "t63b42ac69be9dc16": "皮肤保存成功!", + "t4b806a69aa469d42": "更改披风失败", + "t8cfac8620b8b71cc": "更改披风失败:{0}", + "td4b716cf55c8c43b": "更改披风成功!等待一段时间后将会生效……", + "t4174fa1ba1e4dd2c": "正在更改披风中,请稍候!", + "t01292be04704765d": "获取玩家皮肤列表失败", + "t4cefd87fe5fd94be": "正在获取披风列表,请稍候……", + "t0c46444fedd38803": "登录失败,无法更改披风!", + "t343395b54b51c4f2": "无披风", + "t8ea4dd1ce7d48f1f": "选择披风", + "t65973f1492db2d8f": "极光披风", + "tbc2f2a591218f46d": "建造者披风", + "t802de1c2cfa3d074": "樱花披风", + "t1ddd7612cdf12cc2": "Cobalt 披风", + "t651c078884443a67": "普通披风", + "t248549d2c853f412": "铜披风", + "t8740817490051fd4": "工匠披风", + "t6da94e3758d02496": "15 周年纪念披风", + "tce38d8c38623ed8a": "追随者披风", + "t172d25e80b785f38": "创始人披风", + "tcd94f37c1f87f57d": "英雄披风", + "t6015b3bf5e6a612a": "家园披风", + "t323bb4188bf32a1a": "Realms 地图制作者披风", + "t14b18e03dc9baa58": "MCC 15 周年披风", + "tbe6a616c538152ce": "入侵披风", + "tf8a745f9359fea5e": "迁移者披风", + "tb007f8ec09ceb88e": "Minecon 2011 参与者披风", + "t236c63cb22af52ca": "Minecon 2012 参与者披风", + "t221b1ef6255641c3": "Minecon 2013 参与者披风", + "t2e94ef4260ac4459": "Minecon 2015 参与者披风", + "tbdc679f81a1476e8": "Minecon 2016 参与者披风", + "t3b492dbb3e9ef5cc": "村民救援披风", + "t84d55b41e7b59112": "Mojira 管理员披风", + "t49119945877e52d4": "Mojang 办公室披风", + "t5eecfa4eae6cf658": "Moonlight Trail 披风", + "t048fa8105f1c1dd7": "薄煎饼披风", + "ta53349f8da1d9ceb": "紫色心形披风", + "td65b0ddda59f4497": "Crowdin 翻译者披风", + "t1ced2c262fdf42f0": "Crowdin 中文翻译者披风", + "tf7721e5008601a69": "扭曲披风", + "t4de45a1ea1abe56e": "原版披风", + "td3d9d1beb54e183e": "渴望披风", + "tad5cccdf0a7c08f7": "僵尸马披风", + "t4cc3fa20673cc47d": "正在更改皮肤中,请稍候!", + "t4b7622c76c05d02b": "更改正版皮肤后刷新皮肤失败", + "tcc0253d986a9e159": "更改皮肤失败。\n\n详细信息:\n{0}", + "taf13751ca1ae43c3": "登录失败,无法更改皮肤!", + "t77b40bc0e7203b74": "正在登录,将在登录完成后继续更改皮肤……", + "tb84eacc7c8c3e440": "正在更改皮肤……", + "t1554171e7d162fc4": "更改皮肤失败:与 Mojang 皮肤服务器的连接超时,请检查网络连接。\n\n详细信息:\n{0}", + "t05b1bda811601df2": "点击更换皮肤(右键查看更多选项)", + "tf28461bb49c85647": "已完成", + "te590e84f23a587dc": "当前步骤", + "t11d78f4ed3136371": "下载支持", + "t56f0864c0868a2e7": "下载速度", + "t895e7a9a2fefc660": "启动进度", + "t52373e4342173705": "验证方式", + "t6d58efacd35a835c": "正在导出启动脚本", + "t9f65d7ecf9589a20": "已启动游戏", + "t66c5e34568722ea8": "正在启动游戏", + "t39b4d254b443f8be": "你知道吗", + "t43b9c4c478bee2d1": "这是一段测试用的小提示文本,它应该足够长以让它有两行。", + "t8a94c4a1cdbd821e": "本机", + "t195ad4475713519f": "P2P", + "t715ce81251a45319": "中继", + "t1c67a7983b893cc3": "获取 AccessToken 与 RefreshToken 失败,返回内容为空", + "tf4fc7f89fcbaa38f": "获取 AccessToken 与 RefreshToken 失败,解析返回内容失败", + "t62e03af1c62b9d88": "获取 Natayark 用户信息失败,返回内容为空", + "te60f2df061020360": "获取 Natayark 用户信息失败,解析返回内容失败", + "t2c99de8357e3c349": "优秀", + "t8e74c6d9caf4783f": "当前网络环境不会影响联机体验\n该网络环境适合作为大厅创建者", + "t91e25f4ddc6f6cd8": "一般", + "t67e9f958a471f60f": "当前网络环境可能会影响您的联机体验", + "t895dcef3f1bda199": "较差", + "t88dc1bd4509b2644": "部分路由器和防火墙设置可能会影响您的联机体验", + "t3def5fd29978a052": "创建大厅失败,请检查日志或向开发者反馈。", + "t61e4b216cf0f2727": "在创建房间的时候遇到了问题,请查看日志并将此问题反馈给开发者!", + "te0fbbf57104b6aba": "大厅服务初始化失败,请检查网络连接。", + "t8040959ea00f0af3": "大厅编号格式不正确,请检查后再试!", + "ta2b283fbabf514ba": "加入大厅失败,可能是大厅不存在或已被解散", + "tb044ce04bb093e0f": "请先登录 Natayark ID 再使用大厅!", + "td939cafbb3895a53": "PCL CE 大厅{0}", + "t228e5a443383de80": "不支持的大厅类型: {0}", + "ta186e752d6130366": "{0} / {1} ({2})", + "t6aca6fd59b821b21": "你的 Natayark Network 账号状态异常,可能已被封禁!", + "t69e1fa79b502c053": "联机组件下载完成!", + "t80ef76c616854596": "下载 EasyTier 依赖文件失败,请检查网络连接", + "teb6444363087132e": "正在下载联机依赖组件,请稍后...", + "t02fa63991eb87276": "正在下载 EasyTier,请稍后...", + "t7bff432a11f9e911": "EasyTier 尚未下载完成,请等待其下载完成后再试!", + "t4f1c57515b3e6001": "MC 玩家 ID 不可包含分隔符 (|) !", + "t59815c8201bc6e49": "大厅功能暂不可用,请稍后再试", + "t3412261e29107fd4": "请先前往联机设置并登录至 Natayark Network 再进行联机!", + "t9041c3ffcfae95dc": "尝试获取 Natayark ID 信息失败", + "t728dd244bc22f2f9": "请重新登录 Natayark Network 账号再试!", + "t5999316ef723721a": "请先前往 Natayark 账户中心进行实名验证再尝试操作!", + "t7123fb6bc936dc5e": "清理缓存与冗余组件", + "t01341f490a387604": "下载 EasyTier", + "tb32af2a5114f57c5": "解压文件", + "te8cf95714422bdc4": "大厅公告获取", + "td5117ad4d0564f31": "大厅初始化", + "t2d719a5b587c6abd": "大厅界面初始化", + "tf5b07efd2d5c87a7": "刷新界面", + "tb71b21582321bc5f": "请在联机设置填写昵称,或选择游戏账户。", + "t5dc4ee83965480f2": "中等(完全圆锥)", + "tc14c915da5fbec64": "开放", + "tdde4255b079bbdd7": "中等(端口受限圆锥)", + "t36dba1e2a0e29517": "中等(受限圆锥)", + "t47344176e0802f10": "严格(对称)", + "t3770a023a6779840": "严格(宽松对称)", + "t2f95d7e8cb1970b8": "严格(对称防火墙)", + "t095de638a586e2cf": "严格(阻止 UDP)", + "t1ef3de06b32e521b": "清空", + "t8ef3f16ae2c3621a": "导出运行栈", + "t64815e7955a3eaa4": "已关闭游戏 {0}!", + "tc83695c236312546": "结束进程", + "t34dedaffd3cc55f0": "滚动", + "te484b7d274357fd5": "请点击 实例设置 → 概览 → 测试游戏 以显示游戏的实时日志。", + "ted3a96589a9af7d7": "无实时日志", + "t4efd367d15d81f2d": "日志页面操作失败。请查看错误详情。", + "td33b07075d58f565": "游戏日志 - {0}.log", + "t7f63072f6d7e4ad3": "游戏日志(*.log)|*.log", + "ta78e3d3144d8f7ee": "日志已导出!", + "t3c56411b4624424a": "游戏运行栈 - {0}.log", + "tae8b132d4e19abd4": "游戏运行栈(*.log)|*.log", + "tbb008295942ade38": "正在导出运行栈,请稍等(可能需要 15 秒 ~ 1 分钟)", + "t836501c01eed36a5": "运行栈已导出!", + "t17e077fb4cbb50db": "测试实例列表", + "t1a03bd2fd107c453": "Debug", + "t54a0e8c17ebb21a1": "Error", + "td04f4ecc104de17c": "Fatal", + "t170322a32f3c35b2": "Info", + "t8448814dc5caff5c": "Warn", + "t5900d3a13b6e1fe5": "实时日志默认只保留 {0} 行,你可以在 实时日志行数 设置中修改!", + "teda53a9cf5c1aeb1": "最大行数", + "t2686da4f857240ae": "实时日志功能中最大显示行数,超过该值会自动删除旧的日志。", + "te79fa23e8d1b5faf": "实时日志", + "t5eefa4f9c2007800": "木大!", + "t0d37b78184658e5b": "[调试模式] PCL CE 正以调试模式运行,这可能会导致性能下降,若无必要请不要开启!", + "tc88a37e3bf6afbeb": "启动器界面操作失败。请查看错误详情。", + "t8fd62066ce3444aa": "无法返回顶部。", + "t4a820fbf7f49b218": "在使用 PCL CE 前,请同意 PCL 的用户协议与免责声明。", + "ta7de63b1bff903d7": "协议授权", + "t591f3b5c1257fedd": "查看用户协议与免责声明", + "tf7cefd256922f5fe": "潮涌核心社启动器仍有下载任务尚未完成,是否确定退出?", + "t071b374af1b861ac": "返回顶部", + "t78148e389096d89e": "游戏日志", + "t08f61250ec4d1f70": "投降", + "t1dfe375c285de9f0": "关闭 Minecraft", + "te3401b9b20685564": "任务管理", + "tcf0e3e9917f7af9d": "重启 PCL CE 以应用软件更新", + "t724cf6893978a9f9": "重启 PCL CE 以应用软件更新 ({0} → {1})", + "t8b5ff083a35cc30a": "功能隐藏设置已暂时关闭!", + "t4ba8981c4947a770": "功能隐藏设置已重新开启!", + "td79d205e87282045": "已关闭运行中的 Minecraft!", + "t16dd0a29f4ddf6df": "当前运行的 PCL CE 为 CI 自动构建版本。\n该版本包含最新的漏洞修复、优化和新特性,但性能和稳定性较差,不适合日常使用和制作整合包。\n\n除非社区开发者要求或您自己想要这么做,否则请下载最新稳定版使用。", + "t9fcec75643ee50b5": "当前运行的 PCL CE 为 Debug 版本。\n该版本仅适合开发者调试运行,可能会有严重的性能下降以及各种奇怪的网络问题。\n\n非开发者用户使用该版本造成的一切问题均不被社区支持,相关 issue 可能会被直接关闭。\n除非您是开发者,否则请立即删除该版本,并下载最新稳定版使用。", + "t985d9bb520eae88e": "可以添加 PCL_DISABLE_DEBUG_HINT 环境变量 (任意值) 来隐藏这个提示。", + "tda74cc446c8cd2ca": "我清楚我在做什么", + "t19c423dae1947251": "打开最新版下载页并退出", + "t7f011c355ebdab05": "特殊版本提示", + "t56410fc65314dfb5": "启动", + "t5ca6730d44152201": "工具", + "tde71c2dc0b3fe99e": "实例设置 - {0}", + "t352d37af3aec3745": "资源下载 - {0}", + "ta10e9ab6f4ff12b8": "存档管理 - {0}", + "t36919af03e986fa3": "欢迎使用呀~", + "t83c67e2888bad2b4": "完整更新日志", + "t7a3c4764d30ec426": "PCL CE 已更新至 {0} {1}", + "t81b589b65559418b": "主页预设已重置", + "t100bcaba3c2faa4c": "由于启动器更新,已重置主页预设。请重新前往 设置 - 个性化 选择预设", + "t5842d5dedfcf6c37": "输入的 Authlib 验证服务器不符合网址格式({0})!", + "te4865c9996cf3b7c": "是否要创建新的第三方验证档案?\n验证服务器地址:{0}", + "t61946d3c915f1cc7": "创建新的第三方验证档案", + "td3e363c01d5c8484": "请将文件解压后再拖入!", + "t6b61f012729a7a2f": "拖入的文件不存在:{0}", + "tb73740e9a951f505": "请拖入一个文件,而非文件夹!", + "tb360b8237df6972e": "已存在一个主页文件,是否要将它覆盖?", + "t15eef8589dbe45ce": "已加载主页自定义文件!", + "ta8bb9a7a12efd6da": "已导入 {0}", + "t992ba00cb3767f87": "覆盖确认", + "t859cbeeb8db131a4": "已存在同名文件:{0}", + "t0c3020d669335449": "一次请只拖入相同类型的文件!", + "t681c037da647fbb4": "导入存档失败", + "t1ca8ad5847239b50": "导入后的存档缺少 level.dat!", + "t044d5211fa29a9ca": "压缩包内没有可导入的 Minecraft 存档!", + "t57370495af445498": "PCL CE 无法确定应当执行的文件拖拽操作……", + "ted8286ab72394409": "组件操作失败。请查看错误详情。", + "t0faddb0a6d3be573": "Minecraft 文件夹操作失败。请查看错误详情。", + "tf4e58fd3c817a653": "皮肤地址种类无效:{0}", + "t500fd190d4511cd2": "用户未设置自定义皮肤", + "te8b582a46acfcc61": "皮肤返回值中不包含皮肤数据项,可能是未设置自定义皮肤的用户", + "t8604ca71489d8691": "离线 Uuid 无正版皮肤文件。", + "t36f99289673965ec": "未从皮肤返回值中找到符合条件的 Property", + "t5c017163e4c31e1f": "皮肤返回值为空,可能是未设置自定义皮肤的用户", + "tfe4f6cee87cd7984": "Uuid 为空。", + "t819a1979606bb1df": "新版本:{0}", + "tf7217af256bf18dc": "Minecraft 更新提示", + "tccc10870c6e4441c": "更新时间:", + "t2f0ed2b43758d74f": "更新于:", + "t24308e2f6efcb539": "原版", + "t311884750ff0ab4c": "新版 Forge", + "t7a94b3e6c7f62c38": "如果提示 \"You need to agree to the EULA\",请编辑 eula.txt 同意协议!", + "t355ec8cf79840c5c": "如果服务端立即停止,请右键编辑该脚本,使用!JAVA_HOME!替换%JAVA_HOME%", + "tc230fe7459f1e9f6": "你可以在 PCL CE 的 [设置 → 启动选项 → 启动器内 Java 路径] 中将此版本选为合适的 Java 并启用!", + "t36694b2cee9dfe71": "服务端已停止。", + "taad8d56288d3951f": "{0} 原版服务端", + "ta58f5a5b7bb98ab1": "添加客户端版本失败", + "td495a225b4d7b49f": "分析资源文件索引地址失败", + "t6effc2cd919c0916": "BMCLAPI 源未包含目标版本 {0}", + "t985c2233443f8475": "Fabric meta 下载失败: {0}", + "t6a414f3061ad95a0": "非新版方式安装 Forge 失败", + "t494eeedb45023c10": "获取的结果过短({0})", + "t5831f634ad3bf5aa": "获取的推荐版本数过少({0})", + "t854a98d5cb5658f9": "已取消安装。", + "t3130c81240df11c4": "安装器运行出错,末行为 {0}", + "t01568a626a5fe73e": "实例 {0} 已存在,是否重新下载?{1}这会覆盖实例的 Json 和 Jar 文件,但不会影响实例隔离的文件。", + "t97497ce8f100afa7": "实例已存在", + "t020f60058af369a7": "该实例正在下载中!", + "t584388f17c0aabbc": "由于未找到 Java,已取消安装。", + "tb34a449dc0d1ddcc": "Java 8 或更高版本", + "t5bb42cc340fccaed": "{0} Json 有误,地址:{1},前段内容:{2}", + "t2e51682b54f9b7f4": "安装新 LiteLoader 实例失败", + "tc66dc936aa69f1b6": "未能找到 {0} {1}-{2} 的详细信息!", + "t613e096cdc22a904": "安装新 {0} 实例失败", + "td15eac46bcb58942": "{0} 安装器出错,日志结束部分为:{1}", + "t3452b5fb3ace3eb8": "运行 {0} 安装器失败", + "t9a48aaca900edabd": "获取{0}支持库列表失败", + "t6cdd512a828b8522": "底层实例 {0} 中无 Jar 文件下载信息", + "t685866b2d2c32e8e": "无对应的 json 下载地址", + "t6dabaaeda6caaf29": "Mojang 没有给 Minecraft {0} 提供官方服务端下载,没法下,撤退!", + "t90c81375158018ac": "如果没有指定原版下载器,则不能指定 MC 安装文件夹", + "t6b2048323d54080d": "Minecraft 下载操作失败。请查看错误详情。", + "tf01ed48211021a47": "版本与 Forge 兼容数据无法对应", + "ta868b8ba4374a7e0": "安装 OptiFine(方式 A)失败", + "t0c247555439b410b": "安装 OptiFine(方式 B)失败", + "tddec810d42434272": "运行 OptiFine 安装器失败", + "t9ed4bec5d844b7d9": "版本与发布时间数据无法对应", + "t42f2ede3e4caed5e": "该服务端正在下载中!", + "tf78ca93e9925476a": "下载源连接超时", + "t758af873093b85cd": "未知的 Minecraft 版本({0})", + "t4db04d86761297ef": "{0} 版本列表解析失败({1})", + "t46a14880462e9f6a": "不换用", + "t0a592a0d47f8f538": "整合包里似乎自带了启动器,是否换用它继续安装?\r\n即将打开:{0}", + "tef4d1058b662bb6a": "换用整合包启动器?", + "t4523e519fa0dec3e": "换用", + "tb41ece010e846aa0": "PCL CE 无法处理加密的压缩包,请在解压后重新压缩为不加密的 zip 格式再试", + "t5efa5c86c96658f5": "整合包操作失败。请查看错误详情。", + "t763ae4f9be9771e0": "整合包文件(*.rar;*.zip;*.mrpack)|*.rar;*.zip;*.mrpack", + "t40429f1d1d245350": "选择整合包压缩文件", + "t1dd2ddd8327674fc": "该整合包正在安装中!", + "t06274b1078865466": "游戏路径中不能含有感叹号或分号:{0}", + "t75e49b338b4afacb": "该整合包未提供游戏版本信息,无法安装!", + "t2bd6193ea5041b87": "该 HMCL 整合包未提供游戏版本信息,无法安装!", + "t30f1593165b78159": "该 MCBBS 整合包未提供游戏版本附加信息,无法安装!", + "t9d5397c8fcc8f94c": "某项模组缺少必要信息,已跳过:{0}", + "t0789b76931620e89": "打开整合包文件失败", + "tccfaf5211cf7df04": "是否要下载整合包中的可选文件 {0}?", + "tfc50a99caae0cddc": "跳过", + "tea0adda7f17cd7b7": "下载可选文件", + "tab1e935488bf06d0": "整合包的文件路径超出了实例文件夹,请向整合包作者反馈此问题!\r\n错误的文件:{0}", + "t464d48eb3e6be367": "文件路径校验失败", + "t4fa48085ffc3e6ae": "无法安装整合包:当前启动器已不再支持 Quilt 加载器。", + "t6a0e5dfa4702e9d8": "PCL CE 无法处理 rar 格式的压缩包,请在解压后重新压缩为 zip 格式再试", + "tac8de86b10ce404f": "接下来请选择一个空文件夹,它会被安装到这个文件夹里。", + "td8f2eda3c923d0be": "选择安装目标(必须是一个空文件夹)", + "t2cf8efc75fddf84c": "整合包中的部分模组版本已被模组作者删除,所以没法继续安装了,请向整合包作者反馈该问题", + "t3cec39ab83cd0873": "请选择一个空文件夹作为安装目标!", + "tc3ba6a23d906b986": "CurseForge 整合包安装:{0}", + "tdc97c107701abc69": "HMCL 整合包安装:{0}", + "t592eb3790ed70716": "MCBBS 整合包安装:{0}", + "t66ecc5652d3db44f": "MMC 整合包安装:{0}", + "t38050ed75a8a4153": "Modrinth 整合包安装:{0}", + "t0582e4f542603a00": "该整合包版本过老,已不支持进行安装!", + "ta1d92fe4579761f1": "未能找到适合的文件结构,这可能不是一个 MC 压缩包", + "t73052db1aa523fe6": "无法安装整合包,其中出现了未知的模组加载器 {0}(版本为 {1})!", + "te1d74bb07585f823": "打开整合包文件失败,文件可能损坏或为不支持的压缩包格式", + "t2d6699257c4bee24": "构造模组下载信息", + "tf850a03846268d9b": "下载额外文件", + "taeae1c38a63a9054": "下载模组", + "td0619cf1951a25f1": "下载模组(主加载器)", + "t9d8088aadb676156": "解压压缩包", + "teaa3c77b95314ea3": "解压整合包文件", + "t54628284eecf8765": "最终整理文件", + "t49a5e123e9a9ae0b": "游戏安装", + "tfcaa1a8a79c8afb1": "整合包安装", + "t7dc09a852c2b0930": "获取模组下载信息", + "t8a87034e7a8f7d1d": "添加忽略标识", + "t5dbfce794cd27c76": "分析资源文件索引地址", + "t5e64f8c7cd17f376": "后台分析资源文件索引地址", + "t850bd4645a0d2f63": "分析资源文件索引地址(副加载器)", + "te448212e6c381de6": "分析核心 Jar 文件下载地址", + "t6648b90b63005612": "分析 Fabric 支持库文件", + "tfe2585b70e185d13": "分析游戏支持库文件(副加载器)", + "td4c58f822a3aef82": "分析 LabyMod 支持库文件", + "t639f71eb7b54210c": "分析 Legacy Fabric 支持库文件", + "t8c86a23a263cd0b6": "分析 LiteLoader 支持库文件", + "tc8a5cf161a12c9fb": "分析 {0} 支持库文件", + "t07da133bbb650807": "分析缺失资源文件", + "tddc4256b50c3f927": "分析缺失支持库文件", + "t235eb110efe7a01c": "分析 OptiFine 支持库文件", + "t10d916f991e5c7d8": "分析所需资源文件(副加载器)", + "t36152f5016c75c73": "分析原版与 LabyMod 支持库文件(副加载器)", + "tc18d0670decbac13": "分析原版支持库文件(副加载器)", + "t43d830d701dd7e63": "构建服务端", + "tdb2989b3d2b56659": "后台复制资源文件索引", + "t742cf1db4c0648a3": "删除忽略标识", + "t322d0347e5da0fad": "下载资源文件", + "t6e52a38d98a1e081": "下载资源文件(主加载器)", + "t351e38925dcc0390": "下载资源文件(副加载器)", + "t7b808081572fb7c3": "下载资源文件索引", + "t4224da49aa04e71c": "后台下载资源文件索引", + "t3e7a1bebf4cda08a": "下载资源文件索引(副加载器)", + "t7ef995497cdacf64": "下载核心 Jar 文件", + "t07003c11e5fe4aae": "下载 Fabric API", + "t84536b59b375886f": "下载游戏支持库文件", + "t7824c78e48f6e9ec": "下载游戏支持库文件(副加载器)", + "te43997ba30c73f65": "下载实例 JSON 文件", + "t87f1dd50f2efde7a": "下载 LabyMod 客户端 JSON 文件", + "t850b58c5b9aabb7f": "下载 Legacy Fabric API", + "t7db47cc8d9375b4a": "下载支持库文件", + "ta86a2bd62f08fc79": "下载支持库文件(主加载器)", + "t704abaa1a2d7b6e2": "下载 LiteLoader 支持库文件", + "ta3437c05b03ae1af": "下载 {0} 支持库文件", + "t063c097b9651ab37": "下载 {0} 支持库文件(副加载器)", + "t548dab1c4fd069d7": "下载 {0} 主文件", + "t87c38288cd3f93d7": "下载主文件", + "t27f466ba7bc211f7": "下载 OptiFabric", + "t9e76b8d5b1154aa9": "下载 OptiFine 支持库文件", + "t725b88899ac8bd00": "下载 OptiFine 主文件", + "tcc0687f3ce770246": "下载服务端文件", + "tab80b1698d47695c": "下载原版与 LabyMod 支持库文件(副加载器)", + "tfca622f8a97f1a3c": "下载原版资源文件", + "t963f930eaff1ccb9": "下载原版支持库文件(副加载器)", + "tc682d7d687c34a50": "Fabric {0} 安装器下载", + "t5df370bbbc1eb180": "{0} 下载", + "tff923df470791e76": "{0} 安装器 (*.{1})|*.{1}", + "te4921f72d87066b2": "获取 {0} 支持库文件", + "ta37bbd85da9c6917": "安装 Forge(方式 A)", + "t9bf2d5ab9bc1ae80": "安装 Forge(方式 B)", + "t98004dd0f372d9e3": "安装 {0}", + "t5ed0ae446521bd0e": "安装游戏", + "t0bdf648848a51e7f": "安装 LiteLoader", + "t36feda467bf527ff": "安装 OptiFine(方式 A)", + "tfa9abade65008622": "安装 OptiFine(方式 B)", + "td0e906de38a3bd2a": "LabyMod 安装器下载", + "tee2e7e2c855329b8": "Legacy Fabric {0} 安装器下载", + "ta53a40e20a35c07c": "LiteLoader {0} 下载", + "t3b859c8ac4d2ac96": "LiteLoader {0} 安装器下载", + "t5d9e93846266cad7": "{0} {1} 下载", + "t4ef0b9ee70adc294": "下载 {0} {1}", + "t3129676f4afe03e3": "Minecraft {0} 下载", + "t549ddb7fc7ed4c7c": "Minecraft {0} 服务端下载", + "tec0d598694a0ddc1": "获取 Fabric 主文件下载地址", + "td0acf72161974466": "获取 LabyMod 客户端文件下载地址", + "t090360d6da9ae7e3": "获取 Legacy Fabric 主文件下载地址", + "t793ad8b8f3898167": "获取 {0} 详细信息", + "t1c804515417ec737": "获取 OptiFine 下载地址", + "tbc48fe8c80a89e80": "获取 OptiFine 主文件下载地址", + "t6c33674b42ecf17a": "获取原版 Json 文件下载地址", + "t61735d2fa2bde160": "OptiFine {0} 下载", + "t0eca281f2d7e8bbd": "准备下载 {0}", + "t5040d53068b79a12": "启动 LiteLoader 依赖实例下载", + "te9fc22a5a7e0d478": "后台更新资源文件索引", + "tb550edc45a307948": "下载原版 Json 文件", + "t6dae3e0074e3a171": "下载原版支持库文件", + "t672309d2a4937b90": "等待原版下载", + "t66172d19b9166569": "未找到 Asset Index", + "tae119ab9ab5df41b": "无法读取实例文件夹,可能是由于没有权限({0})", + "td016464593adf365": "版本依赖项出现嵌套:{0}", + "tcf0fd86bc86e1456": "初始化实例 JSON 时失败({0})", + "t50e16427b0eb1625": "未找到实例 JSON 文件:{0}", + "te9e87d37f1ab8f71": "该实例不存在资源文件索引信息", + "te7287c7295ac4ef2": "Quilt 不支持 Minecraft {0}", + "t4b3aef9a87672c73": "无法识别:{0}", + "t90c6a5f758bf161c": "Minecraft 更新提示发送失败({0})", + "t363b83b42420228e": "无法获取版本号,结果为空", + "t24959e2bd7674d13": "版本号获取失败:{0}", + "t371e8c7c2b832d2b": "(蓝色版本)", + "t72f885f7783b65df": "(紫色版本)", + "t73b49cbcf04c0c66": "(红色版本)", + "t88957145d46b6ce7": "2013 | 这个秘密计划了两年的更新将游戏推向了一个新高度!", + "t28119dbbd3a79ff9": "2015 | 作为一款全年龄向的游戏,我们需要和平,需要爱与拥抱。", + "te43a4e6fa8722156": "2016 | 是时候将现代科技带入 Minecraft 了!", + "tca7f25ab9366b74a": "2019 | 我们从地下室的废墟里找到了这个开发于 1994 年的杰作!", + "t26b1c5a928eab75e": "2020 | 我们加入了 20 亿个新的维度,让无限的想象变成了现实!", + "t8f6fc5e5c9c8e13e": "2022 | 一次一个方块更新!迎接全新的挖掘、合成与骑乘玩法吧!", + "t149526ae9afed496": "2023 | 研究表明:玩家喜欢作出选择——越多越好!", + "taa4f08f65a97c993": "2024 | 毒马铃薯一直都被大家忽视和低估,于是我们超级加强了它!", + "tc2a0db61ced98643": "2025 | 你可以合成任何东西——包括合成你的世界!", + "t2dc4464c65ece2c8": "2026 | 为什么需要物品栏?让方块们跟着你走吧!", + "t9224d15218e7e49d": "试玩", + "tc4900615729aa2f1": "你必须先登录正版账号才能启动游戏!", + "t654320ad6ae70500": "购买正版", + "t6bf68aafc7cee197": "已取消启动!", + "t76dffb2c4f2cc2ad": "游戏将以试玩模式启动!", + "td13a6b69ab3c4896": "但是我拒绝", + "t0cb5b33a8328c700": "PCL CE 已经为你启动了 {0} 次游戏啦!\n如果 PCL CE 还算好用的话,也许可以考虑赞助一下 PCL 原作者……\n如果没有大家的支持,PCL 很难在免费、无任何广告的情况下维持数年的更新(磕头)……!", + "t3b27be4b91b7a351": "支持一下!", + "tecc8c755ac14647f": "{0} 次启动!", + "t657d020bdfdb7cfb": "已取消导出启动脚本!", + "tbeccf74cd10d3b8b": "导出启动脚本成功!", + "tb940a325d459b0a6": "下次一定", + "t7e310e5ccdbcf626": "看起来你似乎没买正版...\n如果觉得 Minecraft 还不错,可以购买正版支持一下,毕竟开发游戏也真的很不容易...不要一直白嫖啦。\n\n在验证一个正版账号之后,就不会出现这个提示了!", + "tc9a07ce1b389631a": "支持正版游戏!", + "tfc1342634a5a9877": "考虑一下正版?", + "tc0368e509028f754": "{0} 启动成功!", + "t8339d02397914afa": "已有游戏正在启动中!", + "tdade3f9269d73a36": "取消启动结束进程失败", + "ta69385b0e77f69a0": "无法连接到第三方登录服务器({0})", + "tcb817b9f6df0e3b0": "无法连接到第三方登录服务器({0})\n详细信息:", + "t8a4a93ef0be24ff4": "无法启动 Minecraft:{0}", + "tce4b563b1e0fcd5a": "执行自定义命令失败", + "t6441debc90d92366": "启动器界面不可用,无法执行此操作。", + "t7c8e880862b48d05": "导出启动脚本失败。请查看错误详情。", + "t6bb2d9a05c810a24": "调整显卡设置失败,Minecraft 可能会使用默认显卡运行", + "t4b826c6045501691": "错误的状态改变:{0}", + "t625a743c8589309e": "Minecraft 启动失败。请查看错误详情。", + "t8942af803997eeab": "实例 JSON 中没有 mainClass 项!", + "t81015a190ce3068c": "无法打开 Natives 文件({0}),该文件可能已损坏,请重新尝试启动游戏", + "t98f383f475ad949e": "没有可用的 Java,已取消启动!", + "t95d7954997299ddd": "Minecraft 启动操作失败。请查看错误详情。", + "t3b659248e42d4da7": "OptiFine 与自动进入服务器可能不兼容,有概率导致材质丢失甚至游戏崩溃!", + "t0e4e9bcc040dc17d": "设置进程优先级失败", + "t1dc242a1da26ac90": "添加代理信息到游戏失败,放弃加入", + "t8e7403cdad3aa82a": "刷新启动信息失败", + "t4bb9bfdb9b969aa9": "启动失败。\n\n错误信息:\n{0}", + "tc2e72b3e9539a366": "更新 options.txt 失败。请查看错误详情。", + "t50b1ec6881faa77a": "更新 launcher_profiles.json 失败。请查看错误详情。", + "t653d045d630d7b42": "Minecraft 运行监控失败。请查看错误详情。", + "t919ef5f1b2ebb6c7": "自动下载", + "t545dce6cf2cac721": "PCL CE 未找到 {0},是否需要自动下载?\n如果已经安装了 {0},可以在 设置 → 启动选项 → 游戏 Java 中手动导入。", + "t78bc4ff164e489bb": "自动下载 Java?", + "tb338957ee88d38c9": "检查 Java 兼容性失败。请查看错误详情。", + "te1c70601e0990be0": "全局指定的 Java({0})超出版本要求范围 [{1}, {2}],可能导致游戏崩溃。", + "t17f154d9933908cf": "实例指定的 Java({0})超出版本要求范围 [{1}, {2}],可能导致游戏崩溃。", + "ta74df9d076ad2976": "无上限", + "tfa41d59eba2ae220": "无下限", + "t4c78368cfe226393": "实例相对路径指定的 Java({0})超出版本要求范围 [{1}, {2}],可能导致游戏崩溃。", + "t971eaaf22dec2777": "请自行搜索并安装", + "tf9c9f3ef57e0c00f": "你需要安装 Java 7 才能启动该版本。\n请自行搜索并安装 Java 7,安装后在 设置 → 启动选项 → 游戏 Java 中重新搜索或导入。", + "t51e9ccc1e5938f58": "你需要安装 Java 8u141 或更高版本的 Java 8 才能启动该版本。\n请自行搜索并安装,安装后在 设置 → 启动选项 → 游戏 Java 中重新搜索或导入。", + "tb408d038e5ea7069": "你需要安装 Java 8u141 ~ 8u320 才能启动该版本。\n请自行搜索并安装,安装后在 设置 → 启动选项 → 游戏 Java 中重新搜索或导入。", + "t60471a2227f24ece": "你需要先安装 LegacyJavaFixer 模组,或安装 Java 7 才能启动该版本。\n请自行搜索并安装 Java 7,安装后在 设置 → 启动选项 → 游戏 Java 中重新搜索或导入。", + "te0fa1a233ccfdbbc": "PCL CE 未找到 {0}。\n请自行搜索并安装 {0},安装后在 设置 → 启动选项 → 游戏 Java 中重新搜索或导入。", + "te6880909fae0cd7b": "未找到 Java", + "taa970e9b5f66cb27": "下载 Java", + "t9a0dca76eb146055": "下载 Java 文件", + "td1f0861e03fb7047": "获取 Java 下载信息", + "t38bb76bf057eddb6": "获取登录输入信息失败", + "te4343921c928a856": "登录失败", + "t0ce677709002afed": "登录提示", + "t8e18b410a825cf5e": "请在登录时选择 {0}其他登录方法{1},然后选择 {0}使用我的密码{1}。\n如果没有该选项,请选择 {0}设置密码{1},设置完毕后再登录。", + "t957244cdb9f232ab": "重新登录", + "t0139e54b9887614d": "设置密码", + "tb1284444083463ae": "需要使用密码登录", + "tb4a719df37fc0c1a": "启动器在尝试刷新账号信息时遇到了网络错误。\n你可以选择取消,检查网络后再次启动,也可以选择忽略错误继续启动,但可能无法游玩部分服务器。", + "t84c469072cb76e46": "账号信息获取失败", + "tc4fb62202bad55cf": "注册", + "td0885b1c8accb8c4": "第三方验证失败", + "t505ed533316954c0": "选择的角色 {0} 无效!", + "ta47d7c3db5a3ecd7": "登录失败:{0}", + "t629db69d51c674ac": "第三方验证登录失败。\n\n详细信息:\n{0}", + "tc74669bd4e04beb9": "第三方验证登录失败,请检查你的网络状况是否良好。", + "t2507cb83ddb93d57": "第三方验证登录失败,请检查网络连接。\n\n详细信息:\n{0}", + "t2fe08f37f9c4fbc9": "$你还没有创建角色,请在创建角色后再试!", + "t069848b5109f0838": "你还没有创建角色,无法更换!", + "t53353b43b4fb6f7c": "你的账户中只有一个角色,无法更换!", + "t5c048b6749548459": "刷新登录失败", + "tfcd62b9638113ae6": "刷新登录失败。\n\n详细信息:\n{0}", + "te16a027b3819593a": "二轮刷新登录失败", + "t1beddd14a2487400": "选择使用的角色", + "td353cfa947a32c37": "$登录失败:连接登录服务器超时。\n请检查你的网络状况是否良好,或尝试使用 VPN!\n详细信息:", + "te946fee70b5432b7": "登录失败:连接登录服务器超时。\n请检查你的网络状况是否良好,或尝试使用 VPN!", + "t69aebccd3de9e3b5": "登录失败:连接登录服务器超时。\n请检查网络连接,或尝试使用 VPN。\n\n详细信息:\n{0}", + "t7810e333174a1be1": "验证登录失败。\n\n详细信息:\n{0}", + "t9f71cfd68e8da20d": "当前 IP 的登录尝试异常。\n如果你使用了 VPN 或加速器,请把它们关掉或更换节点后再试!", + "t0c97e64f4f6524a9": "该账号似乎已被微软封禁,无法登录。", + "t4a391ad0f48f212d": "请在打开的网页中修改账号的出生日期(至少改为 18 岁以上)。\n在修改成功后等待一分钟,然后再回到 PCL CE,就可以正常登录了!", + "td5e83cb3e4a881fe": "创建档案", + "t0041600a66874b8a": "请先创建 Minecraft 玩家档案,然后再重新登录。", + "t0cdab0208dd9b1c1": "暂时无法获取到此账户信息,此账户可能没有购买 Minecraft Java Edition 或者账户的 Xbox Game Pass 已过期", + "ta84457c800fa97e2": "你已经添加了这个档案...", + "t341cfad6e497fb62": "购买 Minecraft", + "te7e566064371a953": "你的网络所在的国家或地区无法登录微软账号。\n请使用加速器或 VPN。", + "t6c4c9fd31e4cf346": "登录尝试太过频繁,请等待几分钟后再试!", + "t90937428a6292a44": "13 岁以上", + "t8cac58e844809460": "12 岁以下", + "tb80931f90bb75f3b": "该账号年龄不足,你需要先修改出生日期,然后才能登录。\n该账号目前填写的年龄是否在 13 岁以上?", + "t5186de1fc617beb8": "你尚未注册 Xbox 账户,请在注册后再登录。", + "tf21947a021445476": "当前档案使用的第三方验证服务器与实例要求使用的不一致,请使用符合要求的档案启动游戏!", + "t2b1bf91e41526b03": "启动前检查失败:{0}", + "t04b8df72d324a8f9": "Minecraft 存在问题:{0}", + "td0d23982cde78a69": "游戏路径中不可包含 ! 或 ;({0})", + "t3540d033674d12f2": "未选择 Minecraft 实例!", + "ta683889781f32c58": "请先选择一个档案再启动游戏!", + "td63c184fbd0ad0c8": "返回处理", + "t5fe625f4c5f72ecf": "欲启动实例 \"{0}\" 的路径中存在可能影响游戏正常运行的字符(非 ASCII 字符),是否仍旧启动游戏?\n\n如果不清楚具体作用,你可以先选择 \"继续\",发现游戏在启动后很快出现崩溃的情况后再尝试修改游戏路径等操作", + "t7a1a04bbbb8b300a": "游戏路径检查", + "t936dfbe4346a884f": "当前实例要求使用正版验证,请使用正版验证档案启动游戏!", + "t6bbc1a695ac1483e": "当前实例要求使用正版验证或第三方验证,请使用符合要求的档案启动游戏!", + "t4962e67427cca4db": "当前实例要求使用第三方验证,请使用第三方验证档案启动游戏!", + "t365e4167bf66733d": "执行自定义命令", + "t0e943126188968da": "结束处理", + "tbdeb90f6044cfeff": "获取启动参数", + "t2a717bf9256ca194": "获取 Java", + "t5b494f8db501baf6": "预启动处理", + "t6d1e318000cc6226": "Minecraft 启动", + "ta48102d0cbf2b964": "启动进程", + "t3fc9bbd6665c2c1d": "等待游戏窗口出现", + "t8c565bc877a118f8": "背景音乐已清除!", + "t648799bd110d01d3": "正在播放:{0}", + "t72b333d3f6056e5f": "背景音乐已刷新:{0}", + "tccdae4e6b292ec87": "重新播放:{0}", + "t20afef0cc1d05914": "已暂停:{0}\n左键恢复播放,右键播放下一曲。", + "t025d58cc42d4e4ef": "已暂停:{0}\n左键恢复播放,右键重新从头播放。", + "ta46033f7ccb669f9": "正在播放:{0}\n左键暂停,右键播放下一曲。", + "t029eb2ae0c89245c": "正在播放:{0}\n左键暂停,右键重新从头播放。", + "t1372bd54e91d50e1": "音频设备正被其他程序占用。请关闭占用程序后重启 PCL CE,以恢复音乐功能。", + "t11dbd29108dac901": "音频设备已发生变化。请重启 PCL CE,以恢复音乐功能。", + "tabf74735dc98f54f": "没有可以播放的音乐!", + "t1eb91417ae14881f": "未检测到可用的背景音乐!", + "t51cc48d44d785f39": "音乐播放尚未开始!", + "t0232b0d0cf8235dc": "初始化或刷新背景音乐失败。请查看错误详情。", + "ta179991c9763d2fb": "无法播放 {0}。", + "t182978e78d3a250b": "无法播放 {0}:PCL CE 不支持播放过程中变更音频属性的文件。", + "tad2dffd1ad63b6b9": "无法播放 {0}:PCL CE 可能不支持此格式,请转换为 .wav、.mp3 或 .flac。", + "t9ff2e447b1cd935a": "实例选择操作失败。请查看错误详情。", + "t30bf6ea1e6cbb3ea": "添加文件夹失败:PCL CE 没有访问该文件夹的权限!", + "t8cb22d45913254c2": "添加已有文件夹", + "tf30f31b25c6a7f23": "将一个已有的 Minecraft 文件夹添加到列表", + "t311ff990373611d3": "添加或导入", + "td65df22bba6becfe": "文件夹 {0} 已添加!", + "t3be345aa979f5bb6": "此文件夹已在列表中!", + "tfe3210897a1d2cb3": "在下载任务进行时,无法添加游戏文件夹!", + "t8d6efbfdb7dbf7bb": "在下载任务进行时,无法创建游戏文件夹!", + "t670ec25af8419f48": "保留", + "tc9c488906638c1d5": "是否需要清理 PCL CE 在该文件夹中的配置文件?\n这包括各个实例的独立设置(如自定义图标、第三方登录配置)等,对游戏本身没有影响。", + "tf132a7d5cf4e3411": "配置文件清理", + "t3c7a4fb3566dd193": "确认清空", + "t3ccc7a23bf4e7fac": "如果你在该文件夹中存放了除 MC 以外的其他文件,这些文件也会被一同清空!\n继续清空会导致该文件夹中的所有文件永久丢失,请在仔细确认后再继续!\n目标文件夹:{0}\n\n这是最后一次警告!", + "t7aed7ab2250f6286": "你确定要清空这个文件夹吗?\n目标文件夹:{0}\n\n这会导致该文件夹中的所有存档与其他文件永久丢失,且不可恢复!", + "t2d372a7e15c62804": "正在清空文件夹 {0}!", + "t71d79d31f66addfc": "已清空文件夹 {0}!", + "t2d4a360f030c202a": "新建 .minecraft 文件夹", + "t4ee29f956f35a704": "在 PCL CE 当前所在文件夹下创建新的 .minecraft 文件夹", + "tb8e075b9e6571f9a": "新建 .minecraft 文件夹成功!", + "t9112e7066855185e": "当前文件夹", + "ta3ea3c17b401bd2f": "确认删除", + "tc2762d4d2b4a9664": "如果你在该文件夹中存放了除 MC 以外的其他文件,这些文件也会被一同删除!\n继续删除会导致该文件夹中的所有文件永久丢失,请在仔细确认后再继续!\n目标文件夹:{0}\n\n这是最后一次警告!", + "tf7bc6a4534c6c560": "你确定要删除这个文件夹吗?\n目标文件夹:{0}\n\n这会导致该文件夹中的所有存档与其他文件永久丢失,且不可恢复!", + "tdfc71c4b86cadf4c": "正在删除文件夹 {0}!", + "taa21dd6bb478244a": "已删除文件夹 {0}!", + "t480f940c4266accf": "删除警告", + "t18dd417828ff3dfe": "导入整合包", + "t53069994090bc005": "输入该文件夹在左边栏列表中显示的名称。", + "t00da52a6efc08b10": "输入显示名称", + "taf4152a85daa327f": "无效的 Minecraft 文件夹:{0}", + "t774b31d41110843f": "无效的 Minecraft 文件夹:{0}\n\n详细信息:\n{1}", + "t6c1a27b35c2fdfa7": "Minecraft 文件夹失效", + "t26b7df503021b3be": "Minecraft 文件夹路径中不能含有感叹号或分号!", + "taf9996bc4d45ff49": "文件夹列表", + "te75e8b4e5c971227": "下移", + "tf853a70b120418be": "上移", + "t8da3eaeb9d21ee6e": "文件夹名称已更新为 {0}!", + "tc5706b5efe897788": "官方启动器文件夹", + "tac86ad117c4ad469": "移出列表", + "t3d916fa79519f383": "文件夹 {0} 已从列表中移除!", + "t0d0cbac2eee54113": "重命名", + "t4fd5f93b2e189662": "复原名称", + "t7f5c83622e9032e2": "文件夹名称已复原!", + "tdd3424eca3f5926e": "在下载任务进行时,无法切换游戏文件夹!", + "tcb087a540ef45e88": "添加文件夹失败({0})", + "t5293d5b2e40c9c2b": "向文件夹列表中添加新文件夹失败", + "t54e5c6b2ebbb1327": "清理残留的忽略项目失败({0})", + "t1c0741133f4c11c4": "拖拽文件夹排序操作失败", + "tdc22198bd9d518d6": "自动安装整合包失败:{0}", + "t83d5573ea5bac3f9": "加载 Minecraft 文件夹列表失败", + "tfe877ffce10860ac": "{0}文件夹 {1} 失败", + "t4d05f569fa022dde": "从列表中移除游戏文件夹失败", + "t8fe776059e171394": "重命名文件夹失败", + "tac291dd5d1653e66": "由于该实例开启了实例隔离,删除时该实例对应的存档、资源包、模组等文件也将被一并删除!", + "te904c3f1787ed978": "未找到任何游戏实例,请先下载一个游戏实例。\n若有已存在的实例,请在左边的列表中选择添加文件夹,选择 .minecraft 文件夹将其导入。", + "tb8eef7430e8ded1a": "无可用实例", + "t37b48005c4f3bb2c": "无匹配的游戏实例", + "t7070707a64c9a260": "分类实例列表失败", + "ta796d7fd4f5d2861": "删除实例 {0} 失败", + "tb1bc097d0d5046f9": "加载实例图标失败", + "tee6d064758d1c64b": "加载 .minecraft 实例列表失败", + "t65f6ae117eb5a358": "加载实例失败({0})", + "t624a1bd969b04ad3": "将实例列表转换显示时失败", + "tfaba197404b1a0cc": "没有实例被隐藏,你可以在实例设置的实例分类选项中隐藏实例。\n再次按下 F11 即可退出隐藏实例查看模式。", + "tb4b5ababd87530ae": "无匹配的隐藏实例", + "t67293e20df986327": "无隐藏实例", + "t9e49a62d885d4a69": "正在获取实例列表", + "taa110a744e0e909a": "打开实例目录", + "t52408b1748edeba7": "请输入搜索内容", + "tb6df28d3654ef358": "搜索游戏实例", + "t8b146f614d81d9d6": "没有找到与 '{0}' 匹配的隐藏实例", + "t72d0ea2301ee1ef8": "没有找到与 '{0}' 匹配的实例", + "t9d86f73d8c839940": "输入实例名称或 [游戏版本号] [模组加载器] 进行搜索", + "t2018b7c67d9df1aa": "Cleanroom 实例", + "tad25415f662cadae": "错误的实例", + "t9f7c03879bc8f209": "Fabric 实例", + "t11411c63fa861dfb": "Forge 实例", + "te4a51ed9a6eb7f28": "隐藏的实例", + "t754c99e4beca6d42": "LabyMod 实例", + "t6e93910539e49db1": "LiteLoader 实例", + "tdfb722df57594e91": "可安装模组", + "t5a78fbed8fab7ac6": "NeoForge 实例", + "tc1a3c13cf005c799": "Quilt 实例", + "t307379fa50de1c8f": "愚人节版本 {0}", + "td0c19b7bcac3341b": "实验性快照{0}", + "t364496f9944c3a92": "实验性快照", + "tafa96f87a75359a5": "需要安装 {0} 作为前置实例", + "t15d946f9a3f66ba0": "PCL CE 没有对该文件夹的访问权限,请右键以管理员身份运行 PCL CE", + "taf60b1b6781419af": "未找到实例 {0}", + "tb45121cb3219798b": "该实例未被加载,请向开发者反馈此问题", + "t34ed76db9d138f12": "预发布版 {0}", + "t7d94c018ec8d8aad": "正式版 {0}", + "tb2d20face804b66b": "发布候选 {0}", + "t72a02fbb1918ecd8": "发生了未知错误,请向作者反馈此问题", + "t956930e51f0034a2": "快照版 {0}", + "te54d01b8f183de30": "PCL CE 无法识别该版本的 MC 版本号", + "t157743a115bb9b04": "设置操作失败。请查看错误详情。", + "tbfc3cc67977c4968": "Plain Craft Launcher Community Edition 的开发团队!", + "tc8b5ca8c068c74a2": "PCL Community", + "t959f5c10296aca64": "贡献者们", + "t92b2b2dec25efa81": "查看更多", + "t4f3322e66bd27de5": "加载贡献者信息失败", + "ted7b822a352f1a8f": "GitHub 主页", + "t5c34f7d0e2124dca": "许可与版权声明", + "t807babdd337ee4b4": "查看许可文档", + "tc8137453b496a581": "查看来源网站", + "t81bfdd3e969c811c": "Plain Craft Launcher 的原作者!", + "t73a72e066ebc68df": "龙腾猫跃", + "t035440298e53691b": "查看源代码", + "t6f29a8a9196ab325": "赞助原作者", + "t52d25a9e30ba94f1": "关于", + "tb4069a79aa2a678e": "Copyright © 龙腾猫跃 2016. All Rights Reserved.\r计算机软件著作权登记号:2020SR0875133\r违法违规行为举报投诉邮箱:hexdragon@vip.qq.com\r非 MINECRAFT 官方产品。未经 MOJANG 或 MICROSOFT 批准,也不与 MOJANG 或 MICROSOFT 关联。", + "t3dac0de92967a617": "开源代码", + "tce27748c701b3f07": "本软件的 User Agent 中包含启动器的版本号,以统计各版本的用户数量。\r除此之外,本软件不会向开发者上传任何其他信息。", + "tcc417001c6df7013": "用户协议与免责声明", + "t5f03c875fedd5804": "上游版权与法律信息", + "t447f5a94d1d1baf0": "当前版本: %VERSION% (%BRANCH%, %VERSIONCODE%, %COMMIT_HASH%)", + "t1db09f99bc07d686": "你现在是不是超无聊的?", + "t853b2cc96a46e4ed": "并不是", + "t844f2790a6ab01c5": "那你还点啥……真是搞不懂。", + "td3aea5ff9a116023": "咕咕咕?", + "taa2a331d2dcf5668": "是的", + "tac3e99f08c1426ac": "还点,还点就不让你点了……", + "t678356bfcd86ce2f": "嗯,加油吧,嗯……", + "t2844d197ce946c3d": "隐藏主题 混乱黄 已……嗯不对,这是 PCL CE,应该没有这玩意……", + "t856909212f10a850": "点这个很好玩么……", + "tce747d78d31ac834": "后面什么都没有了哦!", + "t93315bcd0e441bcd": "还点?", + "tfc23bacc172e8469": "你咋还这么无聊啊?", + "t9d76c8fb32d29b01": "累死了", + "t17bc26230690587f": "好吧……不过后面是真的啥也没了,不用点了真的。", + "t677dba982d2faa73": "你真的不累么?", + "t31a9aab9d69e2374": "你真的真的不累么?", + "t3c9827b1a8508e9b": "你真的真的真的不累么?", + "t5dd7d1319ebf4115": "真的不累", + "taa2a319aa39178ce": "真的真的真的不累", + "t012ad2f1967c181b": "那你就别点了喂……后面真的真的真的什么都没有了!", + "t49f4c7f33678f149": "温馨提示", + "tf2117bc2a4b9e77c": "超温馨的温馨提示", + "t7a0196c867021130": "超超超温馨的温馨提示", + "t51835cce05d6a549": "联机与隐私说明", + "t320d3c1f295a0e51": "PCL CE 开源代码", + "teab081c430521c52": "Copyright © 2026 PCL Community & 龙腾猫跃.\r非 MINECRAFT 官方产品。未经 MOJANG 或 MICROSOFT 批准,也不与 MOJANG 或 MICROSOFT 关联。", + "t655d18bb77ca0039": "Natayark OpenID 服务条款", + "t73b126a0aabe2e01": "其他信息", + "t9d06d61ee41fcd3e": "隐私说明", + "t168d1ea49b72bf5c": "启动器已移除设备遥测、错误自动上报和原项目远程联机开关。联机使用本机设置的昵称与节点,不需要 Natayark 账户。连接节点和大厅成员可接触到联机所需的网络地址、昵称和本次启动随机生成的会话标识;本地硬件识别码不再作为联机标识发送。日志保存在本机,反馈时由用户自行选择是否分享。", + "ta35a70eb14682930": "版权声明与法律信息", + "t34148e2b1bb6d40e": "转到博客", + "t6cb56e40cc752f9c": "提供 BMCLAPI 镜像源和 Forge 安装工具,详见 https://bmclapi.bangbang93.com", + "tb690fb353b95bd25": "提供了 PCL CE 的相关云服务", + "tfa40a47cd8f8f8c2": "设计并制作了 PCL CE 的图标", + "tfb30d3ee224eec37": "提供了联机模块", + "t45c78b83a562341a": "提供了 MCIM 中国模组下载镜像源和帮助库图床!", + "t0e2d0fc0fb341558": "提供了模组名称的中文翻译和更多相关信息!", + "tb59c1811054bb4b4": "bangbang93", + "t756076b519e4f03f": "EasyTier", + "tec28f9eae8efb349": "Emperormummy", + "t60b5ba4ac6f8f595": "Pysio @ Akaere Network", + "tf24ccdbd91428f25": "云默安 @ 至远光辉", + "t4d37865b71872697": "z0z0r4", + "t03eab0e484bc869b": "打开百科", + "tbdc799e5677d1954": "打开网站", + "t84fa39a5943f1b24": "赞助镜像源", + "tc08d52bad6f70342": "特别鸣谢", + "t8b2106ca13719cb2": "反馈", + "t225df982c62420ad": "{0}\n\n是否反馈此问题?如果不反馈,这个问题可能永远无法得到解决!", + "t916b55495ae5bdfd": "{0}\n\n将 PCL CE 更新至最新版或许可以解决这个问题。", + "t7d337d7bb23b9f79": "提交者:{0}({1})", + "tcb9976823cd92611": "无法获取到内容", + "te422670a2a64311e": "正在获取反馈列表", + "t21dda8a60ca020aa": "若要汇报 Bug,请点击“打开文件夹”并上传 Launch-{0}-[一串数字].log 中包含错误信息的文件。\n\n游戏崩溃一般与启动器无关,请不要因为游戏崩溃而提交启动器反馈。", + "tc6ca814dc1e4dafb": "不需要", + "tdd453a19bb1dc13b": "反馈提交提醒", + "tf604b9cfcbaf6037": "在提交反馈之前,先查找一下是否存在重复反馈,如果有重复反馈,那么请不要再次提交反馈,这样会加剧维护者的负担……\n注意:此页面未展示所有的反馈,如需查看更多反馈,请前往 GitHub。", + "t1a9656a6fd78e1da": "前往反馈", + "t228d8b711ccf3ab3": "提交反馈", + "t4f5b599d6f30a7d1": "重新检查更新", + "t62d71c571eb90743": "检查更新失败,因此无法提交反馈。\n请连接互联网,检查更新后确认该问题在最新版中依然存在,再提交反馈。", + "t79e91fbf5a0b78d9": "当前 PCL CE 不是最新版,因此无法提交反馈。\n请更新后确认该问题在最新版中依然存在,再提交反馈。", + "tf596f520eb5a277f": "无法提交反馈", + "t54b89f901274588b": "未分类", + "tf098218a3032a625": "已拒绝", + "tc9bb70bcaaa3bee1": "已忽略", + "t8d12fc0d4eb26021": "暂停", + "t3b7e27cb4379da3c": "正在处理", + "t34411312dc1e1f65": "在即", + "t251bc40e7027dfc0": "等待", + "t8fb3a3261b438645": "等待处理", + "t09ee1f81b9915207": "在日志中输出 Cli 信息以用于调试", + "t2263b01199fe59d8": "在启动器日志中每 30s 输出一次 EasyTier Cli 信息以便于开发者和社区支持调查。\n该选项仅用于调试目的,不推荐一直开启。", + "tf23b88723a5af181": "允许使用 IPv6 通信", + "t3b7e421dd45ec058": "IPv6 相比于 IPv4 更加容易进行 P2P 通信,能极大改善联机体验,除有特殊原因外不建议关闭。", + "tee966e1122adc493": "改变配置项失败", + "t407600e503713ece": "初始化联机页设置失败", + "t8a5accfd518c6eca": "获取网络测试结果失败。请查看错误详情。", + "t30bfbb5a5647c7ef": "已初始化联机页设置!", + "t513b240407ca2956": "选择最低延迟路径而不是最短路径", + "td9c1e7dfa9e7f9d2": "启用后,EasyTier 将在通信时选择延迟最低的路径,而不是路由跳数最少的路径。\n启用此选项在部分情况下能降低联机时的延迟,但可能会提高丢包率。", + "tb7c1fc233a857f66": "对对称型 NAT 进行端口猜测", + "tc6b4ea96735f3104": "让 EasyTier 尝试对对称型 NAT 进行端口猜测(生日悖论)。\n这也许可以改善联机体验,但在部分情况下也可能导致一些问题。\n一般保持开启即可。", + "t61c34cca8750946c": "协议偏好", + "t2e9430507b92dee1": "TCP", + "t12c90425f9a33d63": "让 EasyTier 优先使用 TCP 进行通信,TCP 通常能带来更好的稳定性", + "tdc4030f9688d6e67": "UDP", + "ta466cf4c7c16a577": "让 EasyTier 优先使用 UDP 进行通信,UDP 通常能带来更低的通信时延", + "ta70f93226e0720e3": "修改此处的设置后,需要重新启动大厅以使设置生效。", + "t1a3f0617d6de8e52": "用户名", + "t3786a41b109aac73": "PCL CE 会尽可能使用此处的用户名用于大厅信息展示。\n若留空,则使用 Natayark ID 的用户名。\n\n部分情况下可能始终展示 Natayark ID 用户名,而非此处设置的名称。", + "t2f1f3ce718ccabd9": "IPv6: {0}", + "ta52d1b6e84cd1052": "IPv6: 尚未检测", + "t4d2966c438002afc": "尚未检测", + "t69ed375721d90fff": "开始测试", + "td93373f81363e3cc": "支持", + "tfb5524c38154375e": "TCP NAT 类型: {0}", + "t046700c56738d22f": "TCP NAT 类型: 尚未检测", + "tc8f3060095865885": "正在测试", + "tc2b7d1d16044eae7": "网络测试", + "td14d3566aa4938ab": "UDP NAT 类型: {0}", + "t48048211fcb0fd51": "UDP NAT 类型: 尚未检测", + "t7c5378606570020b": "不支持", + "tf08d34169341e0d0": "初始化其他页设置失败", + "t16564ee546afabf0": "已初始化其他页设置!", + "t294a1ac5cd9ffa49": "文件下载源", + "t6a9ffc8f41744e00": "优先使用官方源,在加载缓慢时换用镜像源", + "t28447a978045e72d": "游戏资源获取行为", + "tded7c9d6351ed89a": "尽量使用镜像源", + "t78f63dabc9722495": "尽量使用官方源", + "tea5763857dc4580e": "版本列表源", + "t3701feffd233fcfc": "尽量使用镜像源(可能缺少刚刚更新的版本)", + "t316ed1389081bd72": "自动设置为启动器语言", + "t18009bb726c0dab4": "游戏语言", + "t75aef217fe826da7": "游戏更新提示", + "t4e679e6605ec3cdf": "识别跳转剪贴板中的社区资源链接", + "t9e4129a9cab4faf6": "开启此选项后,PCL CE 将会读取你的剪贴板并识别其中的资源链接,并询问你是否要跳转到详情页面。", + "tdfe304b06f22b322": "正式版更新提示", + "tde6d4af47b324415": "在 Minecraft 正式版更新时弹窗提示", + "t78dc05c3affaba2e": "测试版更新提示", + "t7c2a46b90ec00890": "在 Minecraft 测试版(快照、预发布版)更新时弹窗提示", + "tb8f88aeead1520c8": "辅助功能", + "t808c417cbe281fb4": "下载模组时自动检查并安装必需前置", + "t0aad21e38cb31a02": "安装模组时,若检测到缺少必需前置,将列出前置列表供确认后自动下载安装(可在确认时取消)", + "t4f5b37450a4780c6": "文件名格式", + "t88e454d9c767686b": "【机械动力】create-1.21.1-6.0.4", + "ta3a5f1ae156f33d6": "[机械动力] create-1.21.1-6.0.4", + "t117b2b0bb6482497": "机械动力-create-1.21.1-6.0.4", + "te8ecd64405711f82": "create-1.21.1-6.0.4-机械动力", + "t903ef8218edbf7d8": "create-1.21.1-6.0.4", + "t18fe0570712243a2": "下载社区资源时,其默认文件名的格式", + "t262aba8abbc29843": "不显示 Quilt 加载器", + "t90c7475f7b2b6c57": "不在社区资源的加载器展示中显示 Quilt 加载器", + "t84b22c759a18bebe": "模组管理样式", + "t388d7e42b29d1362": "标题显示文件名,详情显示译名", + "t256870b9129547c1": "标题显示译名,详情显示文件名", + "t5983c446e38dff7a": "在模组管理页面中,模组项的显示方式", + "ta81c476b36158de7": "快速下载行为", + "t4e4399bf6d85879a": "总是询问", + "t1c0500ea5de39faa": "询问并下载到选择的实例", + "t7f0a99440b3cd1a2": "询问并下载到一个路径", + "t8452e76391bf6390": "点击资源搜索结果卡片上的快速下载按钮时的行为。", + "td343ee3cdcd01563": "下载源", + "tf393258e8039a648": "仅在官方源加载缓慢时改用镜像源", + "t7605b03f359674ca": "社区资源获取行为", + "ta0e12a3c655398f1": "安装新实例后自动选定该实例", + "taedba8d1dfc1c8c4": "升级部分版本的 Authlib", + "t88dbf1f583fd92e8": "部分 MC 版本(如 1.16.5)存在 Bug,可能导致使用离线验证时多人游戏被禁用。\nPCL CE 可尝试升级这些版本的 Authlib 支持库以解决问题。\n此设置仅对新安装的实例有效。", + "tc07093e4582374a6": "安装行为", + "tb4b2fe2e349f95a5": "速度限制", + "t1584de9adc6289ab": "设置下载的速度上限,以避免在下载时导致其他需要联网的程序卡死", + "t388a187b43846859": "目标文件夹", + "t7766e1caa681595c": "请在 启动 → 实例选择 → 文件夹列表 中更改下载目标文件夹。\n在某个文件夹或游戏实例上右键,即可选择打开对应文件夹。", + "t3dfb1049a37f1fa2": "最大并发连接数", + "t5b86780e357df406": "过高的并发连接数可能导致下载时出现非常严重的卡顿,甚至导致服务器使用更严格的限速策略。\n64 个连接通常已经可以满足需求。除非你知道自己在做什么,否则不建议设置更高的并发连接数!", + "t4d05c1b9df8e4ac6": "限制所有下载任务合计使用的网络连接数。64 个连接通常已经足够。", + "t963131b78a44bc20": "单文件最大连接数", + "t6c50c6e2ff88d131": "大文件最多同时使用的连接数。提高该值可能加快被单连接限速的下载,但也有可能更容易被下载源限速。", + "t95290f113039e4e8": "文件下载协议", + "t4dbbe8db5d4d0ef9": "自动选择(推荐)", + "t2ef63a2941a01ecc": "小文件和批量下载优先使用 HTTP/2;大文件分段下载使用 HTTP/1.1,以兼顾并发和兼容性。", + "tc7b7e1d08e579f89": "HTTP/1.1", + "t962ab24a355d7a9d": "所有文件下载强制使用 HTTP/1.1。适合需要多条独立连接提升大文件速度的网络环境。", + "t2fd702a06eb4bcc2": "优先使用 HTTP/2", + "tc985b4bb82bd98ec": "所有文件下载优先使用 HTTP/2;如果下载源或代理不支持,会自动回退到 HTTP/1.1。", + "t7a8a11ead50742a2": "添加", + "t7ed26007d70ddc71": "未能成功将 Java 加入列表中", + "t051e92d393a1cd39": "已添加 Java!", + "t46f06e6d97f80983": "Java 已经存在,不用再次添加……", + "tc925dcdabe4fb56e": "Java 选择自动挡,依据游戏需要自动选择合适的 Java", + "tdb9773faa309c257": "自动选择", + "td4284e17c5004dd2": "请先取消选择此 Java 作为默认 Java 后再禁用", + "t1932da4d4dba4ed0": "详细信息", + "te931e4e9559f8e37": "禁用此 Java", + "t01bc2f0855b961c0": "启用此 Java", + "t5dfb9bc19d6cf36d": "请先启用此 Java 后再选择其作为默认 Java", + "tc8b40ac095a7b3af": "调整 Java 启用状态失败", + "t2f9c93437c79dae4": "类型: {0}\r\n版本: {1}\r\n架构: {2} ({3})\r\n发行商: {4}\r\n位置: {5}", + "tf20f1464aa73b77d": "Java 信息", + "t4520f6a52ca17778": "正在加载 Java 列表", + "t3678517afe8ae580": "Java 程序(java.exe)|java.exe", + "t38bd35efb2db5e99": "选择 Java 程序", + "t69470854ac235fb0": "此 Java 不可用,请刷新列表", + "t9f6fee1aba17a565": "语言", + "t6844dd84fe0c919a": "语言设置已更新", + "t911ff33787921f2c": "区域格式", + "t7f0588b578de1d25": "跟随系统区域格式", + "t778e13d48d9ac6df": "同步界面语言", + "tad3757440409cf73": "让", + "te2ea979f4972c192": "走向国际化。", + "t2dd2d3bbf201d464": "在社区的共同助力下,PCL CE 正迈向国际化的新篇章。", + "t6e88b1be7e03f689": "欢迎前往翻译平台参与本地化贡献,或向 GitHub 仓库提交 Pull Request,与我们一同完善多语言支持,为 PCL CE 更好地服务全球用户的目标添砖加瓦。", + "t7468a194ad5f19f1": "感谢每一位参与翻译、校对与改进的贡献者,让 PCL CE 因你们而更加完善。", + "t473ae6a49c7be50d": "前往翻译平台", + "t9fab3495730840c1": "提交 Pull Request", + "t07868c98084791c9": "已初始化语言页设置!", + "t3d13868593ae4eeb": "界面语言", + "tbe55d2aaf1fcbdf9": "跟随系统({0})", + "t5e1b1d94c0e5ec6c": "启动设置项存在异常,已被自动重置", + "t866f2e8b15bbf10d": "初始化启动设置失败", + "t224330a0d283e1f0": "重载启动设置时出错", + "t21e8bf4ff0c320b5": "已初始化启动设置!", + "t135351677632ac37": "实例独立设置", + "tbac6d69c75030d00": "禁用自动崩溃分析", + "t979cecf2ea38e5ed": "启用后,游戏崩溃时将不再自动弹出崩溃分析页面。", + "tb67c8dc9b5108377": "禁用 Java Launch Wrapper", + "t717f55325a08f1f2": "在启动游戏时不使用 Java Wrapper 进行包装。\n由于系统为 ARM64 架构,Java Wrapper 已被强制禁用。", + "t04b1a8a68dcd1d3d": "PCL CE 会使用 Java Launch Wrapper 来修复老版本 Java 在中文路径下无法启动的问题。\n如果这被反作弊拦截,或遇到其他问题,也可以将其关闭。", + "ta4ac6f2b9461508e": "禁用 LegacyFix", + "tb66984289deb751e": "PCL CE 会在启动 1.5.x 及以下版本时使用 LegacyFix 来改善老版本游戏体验和修复兼容性问题。", + "ta5faf266c2bf4bd1": "锁定内存分配(-Xms = -Xmx)", + "tdbb8303350754f2d": "启用后,启动器会额外追加 -Xms 参数并令其等于最大堆 -Xmx,从而固定堆大小。这会隐式禁用堆内存归还(Uncommit),减少操作系统取消映射/重新分配内存页带来的延迟抖动,也有利于 ZGC 的回收预测。代价是游戏全程会占用接近最大分配的内存。", + "t70aac975eb3883d0": "禁用 LWJGL Unsafe Agent", + "t0e816b9d5fcba048": "Minecraft 26.1 使用了 LWJGL 3.4.1,LWJGL 3.4.1 使用了 FFM API 以在 JDK 25+ 上访问原生内存。由于 JDK 优化能力限制,某些情况下这会产生严重的性能问题。\nPCL CE 会使用 LWJGL Unsafe Agent 修复这个问题,以解决可能存在的性能问题。\n一般情况下没有禁用该选项的必要,但如果你遇到了额外问题,也可以尝试暂时禁用该选项以排查错误。\n\n该功能仅会在 LWJGL 版本为 3.4.1 时生效。", + "t50509f2f2741a776": "游戏参数尾部", + "teaa2d1aa2fb6853b": "文本框中的内容将会被直接拼合在启动参数的末尾。\n例如,输入 --demo 则会以试玩模式启动游戏。\n支持 Minecraft 实例 JSON 中的字符串替换标记,例如 ${library_directory}。", + "tc14354ebc33a17bb": "要求 Java 使用高性能显卡", + "ta91d4f4468a428d9": "自动在 Windows 设置 → 系统 → 屏幕 → 显示卡 中将 Java 改为使用高性能显卡。\n如果电脑同时有集显和独显,这能确保 MC 使用独显进行渲染,以大幅提高性能。", + "tc9173ee83b6a7e8c": "JVM 参数头部", + "tddde08946298195d": "还原", + "t72c9c84b503bf113": "启动 Minecraft 时使用的额外 JVM 参数,除非有确定把握,否则请不要修改。\n支持 Minecraft 实例 JSON 中的字符串替换标记,例如 ${library_directory}。", + "tbf0458f51f725bd0": "你还可以在实例独立设置中找到更多高级启动选项。", + "teae7eebd4717a8c8": "启动前执行命令", + "t9c85b98e60179302": "在 MC 启动前执行特定命令或程序,语法与 Windows 的命令提示符一致。\n\n可以使用以下替换标记实现相对路径(路径均以 \\ 结尾):\n · {path}:PCL CE 的 exe 文件所在的文件夹\n · {minecraft}:.minecraft 文件夹\n · {verpath}:实例文件夹(.minecraft\\versions\\实例名\\)\n · {verindie}:开启实例隔离时等同实例文件夹,未开启时等同 .minecraft 文件夹\n · {java}:游戏运行时的 Java 文件夹\n\n除此之外,也支持以下替换标记:\n · {user}:玩家名字\n · {login}:玩家的登录方式\n · {uuid}:玩家的 UUID\n · {name}:游戏实例名\n · {date}、{time}:当前的系统时间\n · {version}:游戏对应的原版版本号\n\n例如:\n · \"{verpath}test.exe\" :运行实例文件夹下的 test.exe 程序\n · \"{java}java.exe\" -jar \"{verpath}test.jar\" :用 Java 运行实例文件夹下的 test.jar\n · notepad \"{verindie}options.txt\" :使用记事本打开该实例的设置文件\n\n涉及路径的操作最好都打上双引号,以避免路径中的空格导致运行失败。\n执行命令时,命令行所在的目录是当前的 .minecraft 文件夹。", + "tb91f2daef6cb7fc5": "等待命令执行完成后再继续启动", + "tf73e1bec92acf66e": "DirectX12(d3d12)", + "t00e24be033f5005f": "游戏默认", + "t5eea85049ec9d7ce": "渲染器", + "t737feb88176e4a99": "软渲染(llvmpipe)", + "t850e8e886943d301": "Vulkan(zink)", + "t439f0a0d70ef2a6f": "我知道我在做什么", + "t3e86062bd8d86334": "修改此项会严重影响游戏的稳定性与性能。如果你不知道你在做什么,不要修改此选项!\n你确定要继续修改吗?", + "t7da6d9ed8cd279d7": "高级启动选项", + "t9e61db66bd99366b": "使用 java.exe 而不是 javaw.exe", + "tc742b3df890f3fed": "如果遇到游戏窗口长时间不出现等故障可尝试启用此项,PCL CE 将使用 java.exe 来运行游戏,这样会让游戏进程拥有标准输入/输出流,以尽可能避免打印日志时出现问题。\n\n取决于不同 Java 发行版的行为,java.exe 可能无法使用 HDR 颜色等依赖操作系统支持的特性。因此,如果正常使用没有问题,请勿启用该选项。", + "t83550872e202b15b": "自动配置", + "t919175c3b15e994f": "根据安装的模组量与电脑剩余内存,动态调整为游戏分配的内存", + "t5224f4d708cd672c": "可用 {0} GiB", + "t0a954ca969b6d28e": "游戏分配", + "tf5d370fa5dfd1c7f": "最大内存(-Xmx)", + "t62f0a060c5487d66": "游戏可使用的最大堆内存大小", + "tbab6ef9ef8b6f431": "初始内存(-Xms)", + "t78aa81051d289070": "游戏启动时预先分配的堆内存大小,可以低于最大堆(-Xmx)。设为 0 表示不主动设置,由 JVM 自行决定。仅在手动配置内存分配时生效,启用“锁定内存分配”时不生效。", + "tc9dd3f417f3385d2": "初始 {0} GiB,可用 {1} GiB", + "t1acc21aa1aa6d311": "初始 {0} GiB", + "t75067b871c5a21ae": "游戏内存", + "t53b504dc12213492": "已使用内存 / 已安装内存", + "t02cb8aec1397b56c": "32 位 Java 只能分配最多 1 GiB 的内存。强烈建议换用 64 位的 Java!", + "t0b7fe0054a9175a0": "你给游戏分配的内存过多,这可能引发游戏崩溃。建议优先考虑「自动分配」选项!", + "tabc00290e88e742c": "自定义信息", + "tc03933d4d07db8ab": "该信息会显示在游戏主界面的左下角,与 F3 调试页面的左上角", + "t3d7d10b1c631978c": "IPv4 优先", + "tf0ef39242684353e": "IPv6 优先", + "tf0d56e6d52ea394b": "Java 默认", + "t3f85718d9a70a26b": "IP 协议偏好", + "tb12638a54d9c3005": "通过设置 Java 虚拟机参数来设置 MC 的 IP 协议版本偏好。\n一般建议设置为 \"IPv4 优先\",这能确保 PCL CE 大厅正常工作。\n如果有手动 IPv6 联机等需要,可以选择其他选项。\n\nIPv4 优先:-Djava.net.preferIPv4Stack=true\n默认:不添加额外参数\nIPv6 优先:-Djava.net.preferIPv6Stack=true", + "tc7579b98de9a840a": "设备代码流", + "t1eea28ef2a1611c7": "正版验证方式", + "t7823d20f249363e3": "Web 账户管理器的正版验证流程更为简单,而设备代码流允许你在任意设备上打开网页进行验证。\n如果使用 Web 账户管理器登录遇到问题,可以尝试使用设备代码流。\n如果正在公共计算机上临时登录账号,推荐使用设备代码流。\n\n由于部分依赖组件存在较多问题,该选项暂时强制指定为设备代码流。", + "t3de88ae3855f55dd": "Web 账户管理器(暂时强制设备代码流)", + "t1df7f71d2900b4fe": "高(优先保证游戏运行,游戏性能更佳,但可能造成其他程序卡顿)", + "t2579a4a4a7eea088": "低(优先保证其他程序运行,但可能让游戏卡顿,适合挂机时使用)", + "t0c8e2bcff5b7aa69": "极高(谨慎使用,可能严重影响其他程序运行)", + "t6dfa4ea7d8c811fd": "进程优先级", + "t1cb9bed8c03ab7d2": "中(平衡)", + "tfd9ab136a934331a": "实时(使游戏以最高优先级运行,谨慎使用,可能严重影响系统运行)", + "t8dd0655d53256a1f": "启动选项", + "t8a2e28474a495058": "自定义尺寸", + "tde377e9d2531c755": "Forge 1.12.2 等个别版本存在 Bug,会导致高度设定无效", + "t22ea3f47fee80536": "全屏", + "tc3cc36f628b16596": "窗口大小", + "t82c4aa13b7ca109e": "最大化", + "t7ffd1ae8f2261484": "注意:如果你的实例安装了 Modern UI 模组,那么这里的设置将会失效", + "tfd5a66ba9df45b8c": "与启动器尺寸一致", + "tcd959f842f08bb65": "游戏窗口标题", + "t557756ea2b1f6d4a": "{name} | 玩家 : {user} | 使用 {login} 登录", + "t29d0695615333b77": "自定义游戏窗口的标题,若留空则不进行更改。\n支持以下替换标记:\n · {user}:玩家名字\n · {login}:玩家的登录方式\n · {name}:游戏实例名\n · {date}、{time}:当前的系统时间\n · {version}:游戏对应的原版版本号\n注意:如果你的实例安装了 Modern UI 模组,那么这里的设置将会失效", + "t5aa3b331af68694c": "隔离所有实例", + "tb38d7e29457fc624": "不同实例之间的存档、模组、资源包等均不互通。\n这会导致不同原版实例间的存档不能共用,所以一般不推荐。", + "t055d0dbd22e092e3": "默认策略只会对今后新安装的实例生效。\n已有实例的隔离策略需要在它的设置中调整。", + "t90fc54a0fbd0fbb8": "默认实例隔离", + "t85b5413d903841c6": "隔离可安装模组的实例与非正式版", + "t3026c39cf4a54845": "隔离可安装模组的实例", + "t71f1f5c476a616cf": "可安装模组的实例(例如 Forge、Fabric)均互相独立以避免模组冲突,其他实例(例如原版)则不会被隔离。", + "t49800b5369c36fb0": "隔离非正式版", + "t92a6e9458cbed227": "将 Minecraft 快照、预发布版、远古版本、愚人节版本与其他实例进行隔离", + "tae93e7aec8122ebc": "所有实例均使用同一档案,存档、模组、资源包等均为公用。\n若存在多个安装了模组的实例,可能会导致模组冲突。", + "t21f1dcc19144ce64": "当安装新实例时,据此自动设置新实例的隔离选项。\n若想调整已有实例的隔离策略,请前往它的实例设置。", + "te1bbb3021cac8a23": "游戏启动后立即关闭", + "tf69a9b2a7b8f9ccd": "若在游戏启动后立即关闭启动器,崩溃检测、更改游戏标题等功能将失效。\n如果想保留这些功能,可以选择让启动器在游戏启动后隐藏,游戏退出后自动关闭。", + "t8f29b3132ccf2182": "提醒", + "t5cfb31ef373d74fc": "游戏启动后隐藏,游戏退出后自动关闭", + "t868de648dbfb29e0": "游戏启动后隐藏,游戏退出后重新打开", + "t054311a905850c9a": "游戏启动后仍保持不变", + "t87f5b03f0660fc3e": "启动器可见性", + "t5fb815183a762c59": "游戏启动后最小化", + "t847c5f681ce955a0": "游戏", + "td6965cf52f76549a": "启动器", + "t132196f9d69faabf": "在提交新反馈前,建议先搜索反馈列表,以避免重复提交。\n如果无法打开该网页,请尝试使用加速器或 VPN。", + "td1f20df746ecf456": "提交新反馈", + "td884aac1d76b14dd": "查看反馈列表", + "t682c033f7635b5d9": "是否要初始化 工具-联机 页面的所有设置?该操作不可撤销。", + "taebd75ded7eef1fa": "是否要初始化 游戏-管理 页面的所有设置?该操作不可撤销。", + "t538d1ccfa63e3752": "是否要初始化 启动器-语言 页面的所有设置?该操作不可撤销。", + "tb5c5bac9db252ffb": "是否要初始化 游戏-启动 页面的所有设置?该操作不可撤销。", + "tad5c097665b46cac": "是否要初始化 启动器-杂项 页面的所有设置?该操作不可撤销。", + "t5a5642ea93ce419f": "是否要初始化 启动器-个性化 页面的所有设置?该操作不可撤销。\n(背景图片与音乐、主页等外部文件不会被删除)", + "t0fe8acdee57bdb1f": "软件信息", + "t362494fcf9a50a87": "联机", + "tc1ba60ce13586503": "Java", + "t887d938275c72602": "杂项", + "t651f274470153a05": "软件更新", + "t3cdf2acc08371928": "所有日志", + "tc854cea07e3bf030": "是否删除所有历史日志?", + "t1112534a916c28f1": "清理历史日志", + "t6bbf56f2f4b5159e": "清理日志文件成功!", + "tb27a136b0b135703": "{0} (当前)", + "tb8f32d2848485a01": "导出日志", + "t09403feb9890b4eb": "导出全部日志", + "t415a08cc2123489a": "日志保存失败", + "tfd4287a32f1e01b9": "PCL CE 日志压缩包|*.zip", + "t60a4cbbcf35c0bdc": "导出日志文件", + "t39416ba758f35912": "日志保存成功!", + "t6e15bd283c306fc3": "打开日志目录", + "t66d6e64fb4894b59": "日志操作", + "tfe5cfebb97b6e5cc": "临时存储的日志 ({0})", + "t933e7212e7bb2e0c": "临时存储的未输出日志", + "t83d1348e1c742209": "初始化启动器-杂项页设置失败", + "t8b245403d5b3db93": "此项变更将在重启 PCL CE 后生效", + "t78393456ea5a63e1": "已初始化杂项页设置!", + "t27f40db6d3e45b1f": "动画速度", + "tf6d7ce5e5bef2cf3": "添加延迟", + "ta7fc70d11c9c94a8": "在各个环节添加随机的延迟,拖慢加载速度,以测试部分功能是否正常运行。\n这会严重影响启动器运行,若无特殊需要不建议开启。", + "td09ed8ce71faf29c": "调试模式", + "t9bf00e23535634c2": "部分调试信息将在刷新或启动器重启后切换显示!", + "t98b180ae3fccd4a4": "显示调试信息与更多错误信息。\n这会导致启动器性能略有下降,若无特殊需要不建议开启。", + "t3c55d52b9f4ceb59": "禁止在下载时从其他文件夹复制文件", + "t403a9de54619f284": "在下载时不直接复制其他 MC 文件夹中已经存在的相同文件,而是重新下载文件。\n只建议在测试下载速度时开启。", + "tde90f1bae01bfe50": "调试选项", + "t61da6e6dbde1e9d8": "使用 DoH 解析地址", + "t01f2765244199572": "使用 DoH 解析地址可以获取更加优质的 IP 结果,提高启动器的网络访问水平。如果您已部署 DoH 解析服务,可以关闭此功能。", + "tfe51a8c86091b1e6": "HTTP 代理", + "t97b31b5d63f57e51": "网络", + "t7171ee0eb3241f48": "应用代理信息", + "t5da55869ce443189": "自定义代理", + "tb1ffbe40a56324ce": "不正确的代理服务器地址会导致无法连接网络,因使用代理导致的网络问题不予处理。\n请勿填写不信任的代理服务器地址,这可能会导致你的账号信息泄露,甚至账号被盗。", + "tf9af167c9a973d07": "不使用代理", + "t724ab82484f8b28d": "如有", + "td86fa42c3848c680": "使用系统代理", + "t26c964f2678bec85": "请勿填写不信任的代理地址", + "t311bb313fdeca6aa": "账号", + "t85dc04b240179bc3": "启动器公告", + "t8b9863c87259d440": "显示所有公告", + "ta63f65583b1c7c4d": "显示包括启动器功能调查、活动等在内的全部公告", + "t6d7f52838cbbbe55": "关闭所有公告", + "td2215efd9defef4a": "若选择此项,即使在将来出现严重问题时,你也无法获取相关通知。\n例如,如果发现某个版本游戏存在严重 Bug,你可能就会因为无法得到通知而导致无法预知的后果。\n\n一般选择 仅在有重要通知时显示公告 就可以让你尽量不受打扰了。\n除非你在制作服务器整合包,或时常手动更新启动器,否则极度不推荐选择此项!", + "t2d7d643563907540": "仅在有重要通知时显示公告", + "tff5dba9cb7d49f84": "禁用硬件加速", + "tfe017784aa548855": "导出设置", + "t2194621d69fa669a": "PCL CE 配置文件(*.json)|*.json", + "t9042d4511be4ec23": "配置导出成功!", + "t1a80d4a192698b02": "导入设置", + "t448ce4712d08f78e": "配置导入成功!请重启 PCL CE 以应用配置……", + "t562822892865b377": "重启", + "t2428b36ebf26d6d3": "最高动画帧率", + "t6b3b75a466a0e7c0": "如果你禁用了硬件加速,那么建议你调低最高动画帧率以防止过多的资源占用", + "t36e08d26b3e688c6": "实时日志行数", + "te8d5c7cfffc654b9": "停止使用 PCL CE", + "t144bf4a8d383995c": "继续并清理实例文件夹", + "td187ce540ba1fad2": "你确定要继续操作吗?这是最后警告!\n与 PCL CE 有关的一切数据将被永久消除!(真的很久!)", + "t4b401440fe83a8d8": "即将删除此电脑上与 PCL CE 有关的全部配置、缓存、已保存的账户信息及其他相关数据,并撤销已接受的许可协议。完成后,软件将自动关闭。\n\n但请注意,以下内容无法自动删除或注销:\n- 此电脑上其他 PCL CE 实例的本地数据\n- Natayark 账户\n\n如需同时删除 Minecraft 实例中的 PCL CE 配置文件,请选择“继续并清理实例文件夹”,这不会影响你的游戏配置、模组、存档,以及其他数据。\n\n此操作无法撤销。您确定要继续吗?", + "t79954066883f0100": "停止使用 PCL CE?", + "t5b50d7c4b5950dc5": "系统", + "t061397c80b293926": "刷新背景内容失败。该视频文件可能并非 H.264(AVC)格式。请使用视频转码工具将其转码为 H.264(AVC)后再试。", + "t0b439e4c7819d240": "个性化设置项存在异常,已被自动重置", + "tbc331a1e39cdb046": "初始化个性化设置失败", + "tb6461d33e5f04ee0": "重载个性化设置时出错", + "ta25bf7d8b15e98a5": "界面设置操作失败。请查看错误详情。", + "td2bb8322065f6b80": "更改标题栏图片失败。该图片文件可能并非标准格式。请使用画图打开并重新保存该文件后再试。", + "t2c6edfe62773c0a8": "调整标题栏图片失败。该图片文件可能并非标准格式。请使用画图打开并重新保存该文件后再试。", + "t63d6b47116de363c": "全局", + "te8f6dbbb3bf54375": "全局默认字体", + "t58145f3b31599087": "MOTD", + "t6c47aeb621dce5fa": "格式化代码文本字体,用于服务器状态信息等内容", + "t078838da4218490b": "字体", + "tebf778110553e92d": "常用图片文件(*.png;*.jpg;*.gif;*.webp)|*.png;*.jpg;*.gif;*.webp", + "tefa114de0809e043": "已初始化个性化设置", + "t81901c460c6d189c": "{0} 像素", + "t80faf20d6a765f01": "背景模糊", + "t4e930298086b49a8": "较强的模糊会导致启动器严重掉帧,请谨慎使用。\r不建议在制作整合包时开启模糊,以确保 PCL CE 在低性能电脑上可以流畅运行。", + "t1773a48f7a8d2962": "清空背景内容", + "tb7cdc2b9bac4aaa8": "即将删除背景内容文件夹中的所有文件。\n此操作不可撤销,是否确定?", + "te7a402170c880505": "背景内容已清空!", + "t11f610810899730a": "背景内容已清除!", + "t5cf0e6be448fedff": "叠加彩色背景", + "t55896c703bafb6d5": "内容自适应方式", + "t5104415b6ba37798": "图片加载失败,尝试将文件作为视频播放:{0}", + "tef290865923226d6": "未检测到可用背景内容!", + "tb8acdc8748b843cd": "将背景图片和视频放到该文件夹,PCL CE 将会在每次打开时随机加载其中的一张图片或视频\n为提高播放时的流畅度,视频推荐使用H264格式编码", + "t06d01ff55be3682d": "游戏启动后暂停视频背景,游戏退出后重新播放", + "t2c74ea963a9c7efd": "若启用此项设置,游戏时将无法刷新背景", + "td64de922a9baa612": "刷新背景内容", + "t685fe0a268c05e47": "背景内容已刷新:{0}", + "te3612b09d212faf7": "随机加载文件夹内的一张背景图片或视频\n为提高播放时的流畅度,视频推荐使用H264格式编码", + "te9ffa3f88cd8dccb": "背景内容", + "tbd9760b1cf6966bb": "背景图片/视频", + "tfb18e26a3e30a7b1": "背景图片/视频({0} 张)", + "t871323b649586984": "居于左下", + "t4c32aebb63c47340": "居于右下", + "t4cc3885c182e419c": "居中", + "t53c9aca4b68c2237": "适应", + "t836cc39f06440bcc": "拉伸内容并保持长宽比不变,直至填满整个窗口", + "t8fffc40833fbab25": "智能", + "t5d9086da66997984": "当内容较小时选择平铺,较大时选择适应", + "t5d7d4daca250eac9": "拉伸", + "tbb90c27eb19907fd": "拉伸内容使其恰好填满整个窗口,很可能会导致长宽比的改变", + "t01d70f8715e4a1f3": "平铺", + "t5678ba100a412644": "居于左上", + "t9eb1676e1fbcc2fc": "居于右上", + "t024ea32a1313c4fe": "高级材质", + "tbe778d48defe88aa": "启用此功能后会在部分透明区域(例如卡片)实现模糊效果。\n请注意,该功能会消耗大量 GPU 算力,并导致卡顿!", + "t2a52f69a56f3bb88": "蓝色,蓝色,还是蓝色!想要逃离蓝色困境?请使用官方快照版!", + "t6ce9bf045d2a05cd": "模糊方法", + "t7ea613c4d564ac02": "方框模糊", + "tab92655be889c66e": "对每个像素周围较小范围的像素使用线性均值采样,速度较快,但容易产生色块。\n该模糊容易丢失细节信息,但性能较好,若设备性能不佳可选择使用。", + "t0e134f5a85ab8047": "高斯模糊", + "t7288d8ae632a1f3a": "对每个像素周围较大范围的像素使用高斯卷积算法的带权重均值采样,速度较慢。\n该模糊质量较高,对细节的处理较为细致,推荐性能较好的设备使用。", + "t13b303db394d13b7": "设定模糊方法。", + "t6e7016fd595656b8": "模糊半径", + "t3dc2644852d55708": "设定模糊效果的采样半径,值越大模糊效果越强。", + "t0f549853799d6bde": "采样率", + "tf1557ac4b742212c": "设定模糊效果的采样率,值越大模糊效果越细致。\n若设备性能不佳,可尝试降低该值以获得更好的性能。", + "t932689f159c9c7ad": "获取官方快照版", + "tb61e39bfa4e57232": "锁定启动器大小", + "t04405e4a9ffd2a3d": "不透明度", + "t85f65461cb14beea": "打开启动器时显示 PCL CE 图标", + "tef46719d9f6f3123": "在启动游戏时显示\"你知道吗\"", + "t89e5e14c8db996da": "基础", + "t543ec5435d90915c": "你可以隐藏不需要的页面或关闭特定功能。在任意界面按 F12 可以暂时显示被隐藏的功能。", + "t465eaeb5cc7dab00": "主页面", + "tc58f3ec38d2caf68": "特定功能", + "t1c0437bb6369e94d": "子页面 实例设置", + "tfb61b744f5efe126": "子页面 设置", + "t03550af111b8aa63": "子页面 工具", + "tfe284da8d4e7a2eb": "按 F12 即可暂时关闭功能隐藏设置。千万别忘了,要不然设置就改不回来了……", + "t7a347b34ab5567ea": "功能隐藏", + "tc64d21f535c2819f": "功能隐藏(已暂时关闭,按 F12 以重新启用)", + "t11df5cff349ab74b": "仅隐藏本选项卡,设置的禁用内容依然有效。\n可以在保留个性化设置页面的情况下避免隐藏设置被修改。", + "t7db1b3229df3c7f3": "实例管理", + "t1b4c38bff4e63def": "隐藏启动按钮下方的实例选择与实例设置入口。", + "td44271b927e7c3b7": "模组更新", + "t8d14cef265cd3a38": "禁止在模组管理页面更新模组。", + "t7b2a5133349a7018": "百宝箱", + "tf0bf4574ce25c131": "空白", + "t7b2e800cb995cee6": "下载地址", + "ta464bc09e9661330": "获取更多主页", + "t7aa34c6fe793a492": "前往主页市场", + "tbc704b9434c846cb": "内容见 ModSetup", + "tea2f46d33b367a9c": "读取本地文件", + "tcbcba2bce4054cb6": "从 PCL 文件夹下的 Custom.xaml 读取主页内容。\n你可以手动编辑该文件,向主页添加文本、图片、常用网站、快捷启动等功能。", + "t276ebcf50f045b9e": "联网更新", + "tec9999cc67b90e4a": "从指定网址联网获取主页内容。服主也可以用于动态更新服务器公告。\n如果你制作了稳定运行的联网主页,可以点击这条提示投稿,若合格即可加入预设!", + "t088703267eb240c0": "请谨慎使用陌生人提供的主页,恶意代码可能会造成损害!", + "tb2d4690a1c25cdd6": "主页预设", + "t5e0bf841841d8682": "刷新主页", + "t3ac145bc9625de54": "已刷新主页!", + "t3e0d676d2d85073d": "主页", + "t6353a8f9659464de": "查看教程", + "tf1de1e2621deb2e1": "预设", + "td8c8e4cc99de3432": "每日整合包推荐(作者:wkea)", + "te2ed8c9bd5193ef0": "回声洞 (已移除)", + "t1deaa9e0bf7bccd7": "PCL GitHub 仪表盘(作者:Deep-Dark-Forest)", + "tf0d7d1f0cc6b7670": "杂志主页(作者:CreeperIsASpy)", + "t1a9907e0bd68a1ed": "Minecraft 新闻(作者:最亮的信标)", + "t874c2a9cf3785541": "Minecraft 官方信息流", + "t9ea0cb74d20dbf57": "Minecraft 皮肤推荐(作者:wkea)", + "t951b1dc62f975856": "Minecraft 更新摘要(作者:pynickle,部分由 AI 生成)", + "ta1681755e51f2a1e": "今日新闻热点(作者:EYicheng)", + "ted667982fda1fb7a": "Minecraft 芝士站(作者:awaEric233)", + "t679c82547decd75b": "整合包推荐引擎(作者:CHMYGZ)", + "t51842d6c9b0a6e43": "Bangumi 番剧主页(作者:wzyaeu)", + "t4cd9d16cc2965838": "OpenBMCLAPI 仪表盘 Lite(作者:Silverteal、Mxmilu666)", + "t8577eaed364f440e": "OpenMCIM 仪表盘(作者:SALTWOOD)", + "tdf50de0152c2ad96": "PCL CE 公告栏", + "t5efa12ae3ab38ba8": "PCL 新功能说明书(作者:WForst-Breeze)", + "te164350a1a176125": "PCL 主页市场(作者:凌云)", + "tb0f0a41800cc1fb6": "PCL 新闻速报(作者:Joker2184)", + "tbe9ce9c8aea9c1d0": "简单主页(作者:MFn233)", + "t6874e7f26b359019": "你知道吗?", + "tb9fde9e71fddec30": "更改图片", + "t67a58b99d117583e": "标题栏图片已清空!", + "t27a25fbfb3baeecf": "清空图片", + "td24c10d37db0feea": "图片", + "t87ed84119176b0eb": "标题栏居左", + "tdd81861811e57bf7": "文本", + "t8632017ffbbd32ab": "标题栏文本", + "tc3ebe56c4633ef87": "标题栏", + "tb8136bc5d404f531": "打开启动器自动开始播放", + "t9fb5e6302d69719e": "清空背景音乐", + "ted0dd009d4925166": "即将删除背景音乐文件夹中的所有文件。\n此操作不可撤销,是否确定?", + "tfefbe4b648be0ca9": "背景音乐已删除!", + "t65db69340e6b658a": "正在删除背景音乐……", + "t20aa97e47730e05a": "将背景音乐放到该文件夹,PCL CE 将会播放其中的所有音乐", + "t4c16c62e756a2e25": "刷新背景音乐", + "t6c225a11406e70d3": "刷新播放列表,并播放列表中的音乐", + "tf34b7ce61098e539": "随机播放", + "tda1e5c5bfb05854f": "接入系统媒体传输控制 (SMTC) 控件", + "t826602e16c869379": "启用此选项后,可以使用系统控制中心和快捷键等控制 PCL CE 的媒体播放。\n可以与 Lyricify Lite 或 FluentFlyout 等软件搭配使用。", + "t2f0554b570acedd8": "游戏启动后自动开始播放,游戏退出后自动暂停播放", + "t584493be26cfb1ff": "游戏启动后自动暂停播放,游戏退出后自动开始播放", + "t3c3638bb300c2032": "背景音乐", + "t3f1ad2c2124ef395": "背景音乐({0} 首)", + "t8bf8b9780d342816": "音量", + "t6c05f9d3b4790151": "龙猫蓝", + "tceff55faed41bc0e": "死机蓝", + "te9f5486a5bf7822c": "HMCL", + "tc3337363b6202dcc": "天空蓝", + "ta6b75d0680322a61": "深色", + "td988940b113e0f27": "深色配色", + "t03e610202e5de15e": "在深色模式下默认的主题配色", + "t217cfe7db1e3d10a": "跟随系统", + "taa0819dfc4d8d782": "浅色", + "t0749b3e79d60511e": "浅色配色", + "t788db1cfec2a3db5": "主题", + "t92813534999a1b3f": "开发者似乎忘记提供更新摘要了...也许你可以点击下方看看完整更新日志?", + "tb7149d5805df899d": "有关此更新的更多信息...", + "t7f34c8f91c0afff4": "PCL CE 2.14.0 带来了让人眼前一亮的新设计和 Pigeon 智能的多项功能,同时还带来了令人愉快的跨实例工作方式,助你提高工作效率。", + "tf81139b7590901be": "关于此更新", + "taa0b207af6a71230": "没有可用的更新日志...", + "tfe0503e4a3c3fe50": "再次检查", + "t2b66dde439e65404": "检查更新时出错", + "t5703942ae3f8f353": "正在检查更新...", + "tbf6c3a5a4b6a0a10": "下载 .NET 10 运行时", + "t55ee22ea7fd39738": "发现了启动器更新(版本 {0}),但是新版本要求你的电脑安装 .NET 10 才可以运行。\n你需要先安装 .NET 10 才可以继续更新。\n\n点击下方按钮打开网页,然后选择 ⌈.NET 桌面运行时⌋ 中的 {1} 选项下载。", + "tbb538fd77e3b3f58": "启动器更新 - 缺少运行环境", + "t9d6111711b8551f8": "无法获取最新版本信息,请检查网络连接", + "tac69f68b7010ec79": "下载并安装", + "tbc310480b4ce9236": "已是最新版本", + "tc3ddff22bc608066": "获取 CDK", + "t2eddb6fed22a8959": "Mirror 酱 CDK", + "t54ff1cdfa91d0c61": "Mirror 酱 (mirrorchyan.com) 是一个付费的第三方应用分发平台,用于提供国内有偿高速下载源。\n这是一项可选服务,不填入 CDK 不影响正常使用与更新。\n如果你有 Mirror 酱的 CDK,可以提供给 PCL CE,启动器会优先使用他们的高速下载源下载软件更新,也能缓解社区公益更新服务器的一些压力……", + "tfdf67c466241041b": "AquaCL 3 是 PCL CE 的第一个主要更新,带来了让人眼前一亮的新设计,使用了最新开发技术,完全重构了基础体验,并更支持 macOS、Linux 等其他平台。", + "ta3eda49175016a79": "其他更新选项 - 升级到 AquaCL", + "t70007836f36591e9": "重启安装", + "t13c9f157f3c4f694": "不自动检查更新(不推荐)", + "tb9bdb5f8a1771090": "关闭自动更新检查。这可能导致你无法及时获得更新。", + "ta6dcd15827d0e064": "自动下载并安装更新", + "t8d99494424225f47": "启动器将会自动检查并下载可用更新,并在关闭启动器后自动安装更新。", + "t334a81de09fe72c6": "自动下载并提示更新", + "t951f3b472a6c44eb": "启动器将会自动检查并下载可用更新,并在完成后提示你安装更新。", + "t8560b5959338b481": "提示更新", + "te4d86f14bbee03fb": "启动器将会自动检查可用更新,然后提示你下载并安装更新。", + "t559788d54f67a051": "自动更新设置", + "t4e0c88a6cc681b85": "测试版 / Beta", + "t0188a9fd17f6c9bc": "可能不稳定的测试版本,将会进行功能的早期测试,适合希望帮助测试且有一定技术能力的用户使用。", + "t241cf8967f10e2fc": "你正在切换启动器更新通道到测试版。\n测试版可以提供下个版本更新内容的预览,但可能会包含未经充分测试的功能,稳定性欠佳。\n\n在升级到测试版后,你需要等待下一个正式版发布,或是手动重新下载启动器来切换到正式版。\n该选项仅推荐具有一定基础知识和能力的用户选择。如果你正在制作整合包,请使用正式版!", + "ta11e1b352d7c08b1": "我已知晓", + "t64210b9be487d310": "继续之前...", + "t32f18f63c23912eb": "正式版 / Release", + "te8f76e467cf86726": "较为稳定的版本,仅推送修复性更新与部分内置资源更新,适合大多数用户使用。", + "tb5260335fcac93bb": "更新通道", + "t3a28352796575f06": "开发版 / Dev", + "t7c8ed90320f087f9": "我确认切换到此分支并已知晓风险", + "t84f5aa1f6443b97c": "你确定要切换到开发版通道吗?\n开发版可能存在严重问题,甚至无法启动!\n\n在升级到开发版后,将无法切换回其他任何更新通道,只能手动重新下载启动器来切换回正式版或测试版。\n\n该选项仅推荐高级用户选择。如果你正在制作整合包,请使用正式版!\n请输入 '{0}' 以确认。", + "t08a85f4ab4bab9ca": "提交", + "ted253257e0ddbe0b": "最终确认", + "tf1023c97cf56d2c1": "你输入了错误的内容...", + "t9d5144930a6b8955": "可能极不稳定的开发版本,直接从最新源代码构建,适合高度技术性用户。\n可能需要具备较好的互联网连接质量才能顺利获取此通道更新。", + "tc5f1b238fabd5eda": "你正在切换启动器更新通道到开发版。\n该通道可第一时间获取基于最新代码构建的开发版本,但可能极不稳定,甚至直接无法启动。\n\n在升级到开发版后,只能手动重新下载启动器来切换回正式版或测试版。\n该选项仅推荐高级用户选择。如果你正在制作整合包,请使用正式版!", + "tb916c37c29682234": "单击复制错误详情", + "tefbb30a9844474b2": "已复制错误详情!", + "t03500c1ff7d0dd35": "任务管理操作失败。请查看错误详情。", + "t4e57e74634386653": "剩余文件", + "t3726bcb6903fa086": "活动连接", + "t6407f8f0a2148bfb": "总进度", + "td51799004211e8dd": "PCL CE 无法打开此网页。网址已复制到剪贴板,可手动粘贴访问。\n\n网址:{0}", + "t6b6b1a1be9546c50": "无法打开网页", + "t46fec206fcbc256d": "{0}\n\n如果你认为这是启动器的问题,请提交反馈,以便开发者调查。\n导出日志:设置 → 查看日志 → 导出全部日志", + "tfb8af64dc5dfe5bb": "致命错误", + "tb0e866423d5863db": "所有文件|*.*", + "t4bc8cb9cd2ec74ff": "无法打开文件或程序。\n\n路径:{0}", + "t822fb37dba29381a": "选择文件", + "t422d0a1bbf05be3e": "无法打开文件资源管理器。请尝试关闭安全软件(例如 360 安全卫士)。\n\n路径:{0}", + "t0d6fad8138e77630": "选择文件夹", + "t37d6c1b88404d396": "你的 .NET 桌面运行时已过期或损坏。请重新安装 .NET 10。", + "t124d8f9462df3e83": "PCL CE 初始化失败", + "ta76ed0f9d3498caa": "{0}\n\n详细信息:\n{1}", + "t25d3c6ebd7c24a1d": "{0}\n\n若要寻求帮助,请不要关闭启动器。请立即导出日志(设置 → 查看日志 → 导出日志),并发送导出的日志压缩包;仅发送此窗口的截图通常无法帮助定位问题。", + "t744dd9d4c454cc62": "执行操作时发生错误。\n\n操作信息:\n{0}\n\n详细信息:\n{1}", + "tf0be132de641fdbe": "执行操作时发生错误。\n\n操作信息:\n{0}\n\n详细信息:\n{1}\n\n与系统底层交互失败。请尝试重新安装 .NET 10。", + "t18e9c71958e02aaf": "发生意外错误。", + "t87ac7e4a339b67c8": "发生意外错误", + "t34a39f97baf1c447": "发生错误。\n\n详细信息:\n{0}", + "t676ad01fa9d92cc3": "工具页操作失败。请查看错误详情。", + "tea6dca5fc82fc027": "大厅", + "t7ff4ff7f1107e506": "奇妙小工具", + "t040240d7ad1aebdd": "[{0}] {1}", + "ta8cd9642aa48cd9f": "重要", + "t4ffef8f3113a3a11": "注意", + "t6dbdc671089d81aa": "大厅创建者的游戏地址:{0}\n注意:仅推荐在 MC 多人游戏列表不显示大厅广播时使用 IP 连接!通过 IP 连接将可能要求使用正版档案。", + "tcf4375284e631371": "复制 IP", + "t0d167d8f62ecbfe4": "1、进入世界后,在游戏菜单中选择【对局域网开放】\n2、在下方选择此游戏实例,单击【创建】\n3、成功创建大厅后,复制大厅编号并发送给你的朋友", + "td1192e27c3d45da3": "请输入端口", + "tc6dd40c3fcc31173": "手动输入", + "t9c7b3a173c6311bc": "请先选择一个要联机的世界!", + "t81453549856435af": "这似乎不是个 MC 服务端口...", + "ta53a5686d4d1c378": "创建大厅", + "t366d5d693d0f028c": "联机双方目前使用的启动器版本不同,这可能会导致一些连接问题\n强烈建议双方升级到最新版本后再继续联机", + "t618667b8799b9f7f": "无法连接到大厅服务器", + "t49c689fcf7eb9d0e": "在服务器退出时发生了错误!", + "tcda1ca8aeb7cceeb": "与大厅服务器的连接出现错误。\n\n原始错误信息:\n{0}", + "tb50c5142045477f7": "请更新到最新版 PCL CE 以使用大厅", + "tb41e58390a82ef12": "联机功能已停用!", + "tc497c026e17e3546": "你确定要撤销联机协议授权吗?", + "t522552a571bec9ac": "撤销授权确认", + "t5633e5ca70665f71": "你确定要退出大厅吗?", + "tac333f933bbbadee": "你确定要退出大厅吗?\n由于你是大厅创建者,退出后此大厅将会自动解散。", + "tab942a2caccc9837": "确认退出", + "td28522a7eed6f157": "由于你关闭了联机中的 MC 实例,大厅已自动解散。", + "t4eaa621c701e93af": "大厅已解散", + "tba00a3c8fbf8af45": "由于你是大厅创建者,退出后此大厅将会自动解散。", + "t451755e3831fa39e": "加入", + "tbce2377283c2455a": "清除", + "tc405771287cb9eaa": "1、在下方输入朋友发送给你的大厅编号,单击【加入】\n2、启动游戏,选择【多人游戏】,在局域网游戏中加入大厅", + "tc807f61a6dbb5bbd": "编号应该长得像这样:U/NNNN-AAAA-SSSS-EEEE", + "tf268b8c7a8bac4e4": "大厅编号不正确,请检查后重新输入", + "t33517926747180e6": "粘贴", + "tcccb42ffea8ab9de": "加入大厅", + "t49751039edd5e32d": "停用联机功能", + "tb74e6321499e4c6e": "EasyTier 工具官网", + "t4dae8c8326995683": "友情链接:", + "tf2f07703a571ccdc": "违法违规举报", + "t7fa99838c3a3bfbb": "Natayark Network 用户协议与隐私政策", + "t44e208945d552d78": "正在连接到大厅服务器...", + "t7ba763c3858df793": "正在创建大厅", + "tebf8e0aa81c0a74d": "下载联机模块中……", + "td9b382b6a8cf45b1": "大厅成员列表(共 {0} 人)", + "tf58c1b2e60b3a71f": "大厅成员列表(正在获取信息)", + "t77c9e582e85583af": "测试失败", + "te5790681bbc71644": "UDP: {0}, TCP: {1}", + "tdd78205d6a22eb82": "点击测试", + "tc5f592ec96939056": "NAT 类型", + "t10866a9df5f8be5b": "{0} {1}", + "te89bfdda0fa62738": "[主机]", + "t7ab55d8950e8e167": "用户名:{0}\n联机协议客户端标识:{1}\n\n此处数据仅供参考,请以实际游玩体验为准。\n\n若想了解 NAT 类型与其如何影响联机体验,请前往界面左侧的常见问题一栏。", + "t85319ce239329139": "玩家 {0} 的详细信息", + "td7ce794d0b865b91": "我已阅读并同意", + "t8c6d08a3b14a4844": "联机通过 EasyTier 连接自定义或公共节点,不再由原 PCL CE 服务器下发功能策略,也不向其上报设备与账户信息。请仅与信任的玩家和节点建立连接,遵守服务器规则。详细的数据使用说明见项目隐私文档。", + "taecb4aae0039efdf": "此处列出了 PCL CE 大厅使用的相关服务文档及介绍", + "te4647d4a1da9a446": "查看 Natayark OpenID 服务条款", + "t9091f623714c81d7": "PCL CE 联机大厅说明与条款", + "td59d7f96bb3136ad": "大厅操作", + "t20f99990c7224710": "检测中", + "t833ec488da5ac311": "关闭大厅", + "t5be0323e8adcaeae": "已连接", + "ta898478be1813b95": "连接中", + "tc44899529d41af30": "连接状况", + "t485a26050ce57431": "连接方式", + "t377c1d199e1e9a5f": "复制大厅编号", + "tf13680c6c92d4ab4": "复制虚拟 IP", + "t153b723547e28a7f": "退出大厅", + "te07b4fc0d8f7a080": "加入者", + "tf46c86c0286a8fad": "创建者", + "tb9882ece53ac5aed": "大厅信息", + "t703a794ea636d4fd": "大厅编号", + "t11a5b319f94c7cda": "{0}ms", + "t0f1ec7ad5ba404a1": "与大厅创建者的延迟", + "tf36cac96220bb1e4": "暂不可用", + "taec6d9b3d261eec1": "用户类型", + "t7c97905a624a516a": "(异常)", + "t1b86bb059497356d": "Natayark 账户", + "tf2258959755e8d97": "Natayark 账号信息已过期,请前往设置重新登录!", + "tfaca22f81c54dcc9": "请在浏览器中继续...", + "t192e2d1b88c97653": "获取信息失败", + "tbd6ebead5c3d0363": "Naid 验证代码无效", + "t7545b39503978718": "正在加载...", + "t897c57569e5d5e92": "点击登录 Natayark 账户", + "t69abb59848ddc741": "已完成登录操作", + "t18da5f06a1f8a360": "Naid 登录失败,请尝试前往设置重新登录", + "t775d096e34a19cc3": "PCL CE 将会打开一个登录页面,请在浏览器中完成登录操作,然后回到启动器继续操作。", + "tffeb92a2b93f05b9": "登录至 Natayark Network", + "tde40decda2d82a57": "已退出登录!", + "t6ac08263271b6831": "你确定要退出登录吗?", + "tbfb33bbc5ca2d4df": "获取 Natayark 用户数据失败,请尝试前往设置重新登录", + "t06649de34a56c4d8": "Natayark ID 令牌已过期,请重新登录", + "tbd60dbce32b2b1b5": "Naid Access Token 无效,尝试刷新登录", + "tbcd6771e08ec7cc7": "查询", + "td9b0c560be91190d": "输入服务器地址", + "t69d74b0366d76c34": "未返回服务器信息", + "t192533042f7fe6a8": "查询中...", + "t2c4649245fcac966": "Minecraft 服务器", + "t35c46ad240ea5881": "服务器地址过长", + "t08b3c0570d05c6c6": "服务器返回了空数据包", + "t438efd6860601575": "服务器在返回完整状态数据包前提前断开连接。", + "t4cbabb9022807441": "服务器返回了错误的信息", + "ta3f6c3cac0cd706d": "Pong 数据长度必须为 8 字节", + "t7422de751672e6d8": "服务器在返回状态后提前断开连接,未返回 pong 数据包,无法计算延迟。", + "tae5ead4d89074727": "连接超时", + "td1f6a584308bd107": "数据读写超时", + "t9166474cbc87daf1": "无法连接: {0}", + "t9cb4045de52a802c": "为便于维护,PCL CE 中不包含百宝箱功能……", + "tf8934d32be002bd8": "手动崩溃", + "t9ebbcada9e949dce": "崩溃测试", + "t9d209f342a1c637f": "开始环境检查……", + "t9d2ca261281a158a": "稍后", + "t1ab4459e28e8ffc0": "当前系统环境缺失软件运行所需依赖\"{0}\"\n\n点击确定打开微软应用商店安装", + "t6565bf48c8899990": "依赖检查", + "t3f0bad9f8269d025": "测试工具操作失败。请查看错误详情。", + "tbcc7b9fbf5dec68e": "PCL CE 已经为你启动了 {0} 次游戏了。", + "taa7108333483e90e": "查看启动计数", + "t8a991189eccf79e6": "瞅眼服务器", + "ta333fb3e7b70ae12": "获取成就图片失败,请检查文字是否包含特殊字符", + "ta07ae189359e4cdd": "PNG 图片 (*.png)|*.png", + "t8003fe6ecd36de67": "请输入正确的物品 ID!", + "t99ccd224125072c0": "物品名(ID)", + "t5e9d0ede025b4748": "第一行", + "t8190cc058c7298e2": "第二行(可选)", + "t286ca3cb5a195748": "成就名", + "t1c85853c3c254289": "预览成就图像", + "t850de13a01d9b482": "保存图片", + "t0538061cf3674619": "自定义成就图片已保存!", + "taa78b565a7843433": "自定义成就图片生成器 (仅支持英文)", + "tff6bd08680bfc66e": "图像文件(*.png)|*.png", + "t60132dc9543f632f": "生成头像失败:{0}", + "t629bcd796ad7a1dc": "头像生成成功!", + "tb650356bb4c79cce": "图片的大小不正确!请确认你选择了正确的文件!", + "t36217e670f6e322e": "保存头像", + "t3d047c95d6a59414": "头像保存成功!", + "tfbaf9e39bd12ffdf": "请先选择皮肤!", + "t8e3726813b56a63d": "选择皮肤", + "t9d345873c5e799d2": "头像大小:", + "tc93593d81c35f544": "皮肤头像生成器", + "t0f0d83a17d0b20d3": "缓存已清理", + "t84693550d00e7f29": "清理了 {0} 个文件!\nPCL CE 即将自动重启……", + "td7430286fe835554": "请先关闭所有运行中的游戏……", + "t74ee503b0170ace3": "即将清理游戏日志、错误报告、缓存等文件。\n虽然应该没人往这些地方放重要文件,但还是问一下,是否确认继续?\n\n在完成清理后,PCL CE 将自动重启。", + "tdfab62e692507ce4": "清理确认", + "t9ee3364d93ebc1df": "没有找到任何可以清理的文件!", + "t2ffa8e0e69fa8eb3": "清理游戏垃圾", + "tbc7d4caf5229b425": "清理 PCL CE 的缓存与 MC 的日志、崩溃报告等垃圾文件", + "t933c3667c10c70fc": "请在所有下载任务完成后再来清理吧……", + "t3766f8301b35b1b5": "使用 PCL CE 的高速多线程下载引擎下载任意文件。请注意,部分网站(例如百度网盘)可能会报错 (403) 已禁止,无法正常下载。", + "t52acd47244df9b29": "{0}完成!", + "t7c22b8a76fd86b5a": "自定义下载文件:{0} ", + "td94a7e10c577490a": "自定义下载 ({0}) ", + "te31cccd7bba006f5": "保存到", + "tc11330b85234f9c0": "选择", + "t71b07031e71eeba2": "选择文件保存位置", + "td1647ab99edddd86": "下载自定义文件", + "tb8bcd45ac0952599": "User-Agent", + "t170aab66d43da5e3": "你今天的人品值是:{0}... {1}", + "tfabb859a49d376dd": "你今天的人品值是:{0}!{1}", + "t2a8e4073d6b41952": "今日人品 - {0}", + "t92efadc123f947dc": "(是百分制哦)", + "t7fd041424ffd370e": "不会吧!", + "te811b65f2616eb5f": "100!100!\n隐藏主题 欧皇…… 不对,社区版应该没有这玩意……", + "t56d49c0764955373": "呜...", + "tec3232f5a53179d2": "勉强还行吧...", + "t0ec61f06eac531ec": "还行啦,还行啦", + "t9c489929c644d366": "好评如潮!", + "tfa5e1078a914ee54": "差一点就到100了呢...", + "t803a2627eed3f457": "今日人品", + "t5aaee84c9765dc1f": "这个快捷方式不会自动移除,在删除/移动启动器前请手动移除快捷方式。\n\n{0}位置: {1}\n{2}位置: {3}", + "t885097e93a5181f6": "已在{0}创建快捷方式", + "tf48d334495f6e4f4": "桌面", + "t93078affa070bd25": "PCL CE{0}", + "tf53f86bacb454243": "选择快捷方式位置", + "t5f8fc718797aca7f": "开始菜单", + "taf852212987fc97d": "创建快捷方式", + "t32f82c230c13af78": "创建一个指向 PCL CE 可执行文件的快捷方式", + "t729a19fc26d3c5ba": "正在获取皮肤...", + "t9c60961ad4f24e72": "这不是一个有效的 ID...", + "t23f40c8649af757e": "正版玩家名", + "t5536d6e5e12eff18": "玩家 {0} 的皮肤已保存!", + "t3b9c27e43bbdafc2": "下载正版玩家的皮肤", + "t3c442d1005e8ff50": "获取皮肤太过频繁,请 5 分钟之后再试!", + "te3b46bf6b16f0ef3": "启动器有新版本可用({0} -> {1})\n是否立即更新?", + "t06ca3ef56c8ea79a": "你正在使用来自 PCL-Community 的 PCL CE,遇到问题请不要向原版仓库反馈!\nPCL-Community 及其成员与龙腾猫跃无从属关系,且均不会为您的使用做担保。\n\n如果你是意外下载的 PCL CE,建议下载原版 PCL 使用。\n如果你是意外下载的 PCL CE,建议下载原版 PCL 使用。\n如果你是意外下载的 PCL CE,建议下载原版 PCL 使用。\n\n该版本与原版的特性区别:\n- 主题切换:仅部分固定蓝色系主题,没有计划新增其它主题。\n- 百宝箱:缺失部分原版中的内容(回声洞、千万别点)。\n\n此提示会在启动器更新后展示一次。", + "t508475c13584c58c": "PCL CE 版本说明", + "tedea985a6324004e": "获取启动器更新失败,请检查网络连接", + "tcd5f4b92afe99822": "找不到更新文件", + "tb811dc3558bc7924": "更新操作失败。请查看错误详情。", + "t4cd5fde8d16eefc8": "更新文件 SHA256 不正确,应该为 {0},实际为 {1}", + "tc62696417dd23edf": "无法获取更新", + "tec99e5c45d648fd6": "更新失败", + "t4f6bc8960e4c3922": "由于被 Windows 安全中心拦截,或者存在权限问题,导致 PCL CE 无法更新。\n请将 PCL CE 所在文件夹加入白名单,或者手动用 {0}PCL\\Plain Craft Launcher Community Edition.exe 替换当前文件!", + "taa03f1972326ab1d": "PCL CE 服务", + "tc24a02bdf8950257": "启动器更新", + "ta2d3ec3bb4307280": "应用文件", + "td2dedb390499560f": "校验更新", + "t88c9e8ce41f5eb06": "下载最新稳定版", + "t60e91c6a0eec6622": "下载更新文件", + "t9133064e581c3481": "获取公告信息失败", + "tff63af0c5f1a8797": "获取下载信息", + "t0e73771409eaf7c8": "获取版本信息", + "ta377055a04f9983e": "获取版本信息失败", + "t7a6bafc9c85304a1": "安装更新", + "tccfe46267f3cb7ca": "准备更新", + "tbdff32cd1ef29c21": "刷新设置 UI", + "tc5c9e38f16f9f2aa": "显示按钮", + "t61f13cea13731d09": "Minecraft 返回值异常,可能已崩溃", + "tf46cf772aba4561f": "崩溃分析开始", + "t962a19a6deb7171b": "Minecraft 已崩溃,将在 2 秒后开始崩溃分析", + "t32838cfc1676e42d": "Minecraft 已崩溃。由于崩溃分析已被禁用,将不会开始分析", + "t7fb5752a03c77ef1": "检测到 Minecraft 出现错误,错误分析已开始……", + "t3d7323980d97dd61": "Minecraft 尚未加载完成,可能已崩溃", + "t48f5d3e87238e153": "Minecraft 日志监控已退出", + "t6ea9883b64f35d09": "FML 窗口已加载:{0}({1})", + "t2aa0e3cc14220312": "尝试强制结束 Minecraft 进程", + "tbe25012b3cc8a57b": "强制结束 Minecraft 进程失败", + "tb507ae799e29accc": "已强制结束 Minecraft 进程", + "t5e74e5851c668b93": "进程仍未退出,尝试使用 taskkill.exe", + "t58aa18dea58f8490": "执行 taskkill.exe 结果:{0}", + "t1eeced21ea4715bb": "强制结束 Minecraft 进程失败:等待进程退出超时", + "t4399a57fec946ae9": "Minecraft 加载已完成", + "t6a7e7c2098dc1c96": "识别为关闭的 Log:{0}", + "t2e57209c245a3b57": "识别为崩溃的 Log:{0}", + "tcdf8d3495afcb330": "Minecraft 已退出,返回值:{0}", + "tcc639f4bf98d8a5f": "日志 1/5:已出现日志输出", + "t9323d79d5fa03463": "日志 3/5:LWJGL 版本已确认", + "te61a1b2541adbad7": "日志 4/5:OpenAL 已加载", + "t0854eaaff4958645": "日志 5/5:材质已加载", + "tf20362b3e39f3d9f": "日志 2/5:游戏用户已设置", + "t24fa88345de2f73b": "由于反作弊或安全软件拦截,PCL CE 无法操作游戏窗口", + "t6a16eeb2e864fed9": "开始 Minecraft 日志监控", + "t0abb82c15cbd176d": "Minecraft 窗口已加载:{0}({1})", + "t2a25370f3f42378a": "已最大化 Minecraft 窗口:{0}", + "tad93d84391821288": "已穿戴", + "t95be0103f3d08834": "没有可显示的披风;可点击刷新读取当前档案。", + "t7b23834751bb120f": "前往官网修改披风", + "t2969b18bc1a61c75": "选择皮肤后在此显示 3D 预览。", + "tf5d00e4846a47470": "皮肤模型", + "t180ee1322559a48f": "选择并保存 PNG", + "tde5bc03839b12c3e": "选择 64×64 或 64×32 的本机 PNG(最大 2 MiB)。选择后保存到当前离线角色;取消不改动原皮肤。", + "t13a552f02fde1959": "另存当前皮肤", + "tfe3f9d295c66ea50": "皮肤外层", + "tc8cede4357602235": "显示披风", + "t95ac0ce3b08bf57c": "复位", + "ta1f84ed0b8c2d28a": "拖动旋转 · 滚轮缩放 · Esc 关闭", + "t3d65a34ee0ef1b95": "也可使用方向键旋转。", + "t6cd7c2dac6c36ef4": "刷新外观", + "tcaf06adff4f18c9e": "取消读取", + "t2a8b2f268240eac9": "离线(盗版)角色仅用于无需认证的游戏,不能进入正版或皮肤站认证服务器。建议使用英文字母、数字或下划线,不推荐中文名。", + "tf5f4fd79bf0c08be": "添加当前渠道账户", + "t5a3fb8c44c938539": "移除所选本机账户", + "tfdd8a487551ef56c": "此渠道尚无已选角色,可添加账户或在下拉列表中选择。", + "t33d17bcc56da3318": "3D 预览皮肤与披风", + "tfee7969e381007be": "允许 3D 皮肤展示", + "t46161a6cd4bff3ce": "账户操作", + "tf6fd9f688f0a32c9": "刷新授权", + "tc4a7a8084f348fd6": "账户官网", + "tcc894cbb3dbc79b3": "取消读取外观", + "t6c5de7f5f954d45a": "确认从本机移除此账户", + "t52e98d7a6bd03271": "只移除本机授权档案,不删除网站账户。", + "tb487f606a41ea8e8": "移除账户", + "tdb4f260975f6badc": "离线角色不能进入需要正版或皮肤站认证的服务器。不推荐使用中文名,部分模组和服务器不兼容。", + "t5183e44102a47d98": "建议使用英文字母、数字或下划线;不推荐使用中文名。", + "td771254187028205": "不推荐使用中文名,部分模组和服务器不兼容。", + "t5513205d2c931abc": "推荐:生成的 UUID 与 HMCL、BakaXL、Bukkit 等软件一致。名称大小写会影响 UUID。", + "t30cea34ccb033023": "沿用旧版 PCL 的名称算法,用于保留旧离线角色的存档身份。", + "t26aa8becf5530c94": "填写已有角色的 UUID;修改 UUID 会改变存档中的角色身份。", + "t9810f2f10532ad6c": "UUID(32 位十六进制,可带连字符)", + "t78a4043b3fe02356": "在微软官网输入设备代码完成授权。", + "tf2dad7d22c3e5144": "邮箱 / 用户名", + "t1de8db25fa95d059": "凭据仅提交给当前选择的皮肤站。", + "tc54c101e02cc35a1": "前往官网", + "t97ce606c7d813c50": "选择本次登录的角色", + "t03420f525ada1482": "请明确选择一个角色,其他角色不会自动获得授权。", + "t7cf772790898098e": "确认角色", + "t531c764f9b4eea01": "取消登录", + "t345486d9ee4b78e5": "打开微软授权页", + "t56c0967e94b3c13f": "可在底部取消当前授权。离开启动或账户页会结束等待。", + "tfc45eb94060a2412": "社团更新日志", + "t85f84691fa453c0b": "重新读取正文", + "tb6c03c6e50c05a61": "尚无可阅读记录,可刷新或在社团网站阅读。", + "td0b32ab0c26ac157": "社团网站", + "tb909a6316e9823d6": "重新读取社团更新日志;网络不可用时保留已有缓存。", + "tdbf22f72fa0d766c": "安装本机整合包", + "ta0f13f9c9a3cdaeb": "选择整合包…", + "t019054bc54c62289": "也可将 .zip 或 .mrpack 拖入窗口;确认清单后安装到独立新实例。", + "td1c6ac73e5b58311": "读取已下载的整合包", + "t8bfc11ae086390df": "新实例名称", + "t4440a2db7c16efb9": "客户端可选文件(默认不安装)", + "tb8d398d9ffed439a": "导入到独立新实例", + "t23f33d1709458503": "安装提示与未完成项", + "t171f673bb4e265b5": "取消读取(Esc)", + "t133251e05068cbab": "返回版本列表", + "t374930f1453fcd3e": "暂不支持", + "t972a0ba2828d5d53": "查看已安装游戏", + "t95ac6efa1b546add": "返回 Minecraft 版本列表", + "t6e6d499730c42429": "下载官方客户端或服务端 JAR 文件,保存到所选位置。要安装可启动的基础游戏,请使用左侧顶部的 Minecraft。", + "td683d1f7d649b079": "下载文件…", + "t13a431e59b658d16": "重置筛选", + "tc9b9ae7a61444ab7": "上一页", + "t8a8542f6964852dc": "下一页", + "t4f62a614fb8f01a4": "返回资源列表", + "taba83d2af8177a74": "筛选文件", + "t8624c13ae5d21b79": "装入实例", + "t6e531b4433a5db79": "选择明确的兼容实例", + "td63ff645f191855a": "下载到缓存", + "t5f55a3d754902c7e": "文件已校验并保存到缓存;尚未自动装入实例或存档。", + "t982450485bc451c9": "打开下载目录", + "t1640d50f8dbf6fa3": "还没有下载任务", + "t8ba03fba98587c3d": "取消或重试会作用于任务所属实例的整次安装,或当前资源下载。", + "t05406efd909a359b": "取消所属安装", + "t6bf755b50acb9ac7": "重试所属安装", + "t15b8dfee1958be7b": "取消本次游戏启动", + "ta2727bc66a6b8014": "社团在线", + "t57209032cc8d68b1": "五湖四海之士,汇于东海之滨", + "tcc4b37166fcb77a3": "社团 Wiki", + "t527baa645f1698e1": "登录与入服指南", + "ta6881f6c7c8f2bf2": "QQ群 756155087", + "tf06fb3f71f88681b": "刷新服务器状态", + "t802a407c774302aa": "刷新状态", + "tccc334b83bd8dcca": "启动后前往", + "ta03119e61efcbdf3": "游戏目录", + "t149cea82a14e38fb": "选择实例后可双击或按 Enter 进入实例设置。", + "t6a34849aee547b61": "管理游戏目录", + "td71fabe064ac0de3": "接入已有实例目录", + "te4926ee48a96fb12": "接入已有实例", + "t3f5213203fd586ed": "接入所选实例", + "t84781588451401d1": "搜索实例名称、版本或加载器", + "tcedfafe1bbd6fb1c": "只显示收藏的实例", + "t97555304b0d7e196": "下载新版本", + "t0a2d96fa6891f03c": "从此版本开始记录成功创建游戏进程的次数。", + "t88ecdc10bcaeed51": "保存个性化", + "te5c51732660c8bb5": "补全 / 校验文件", + "t026e2a6c2e9b63dc": "检查启动计划", + "te4178a23f86691f0": "受保护启动参数不可作为明文脚本导出。", + "t90516b535fd78607": "Java 跟随全局设置", + "t9b8295587af9906d": "独立 Java 路径", + "t5f7469894e0eb5b2": "Java 可执行文件的绝对路径", + "ta20ece0a9ee45404": "内存跟随全局设置", + "t7414a2c95ffa0a13": "最大内存(MiB)", + "tffa1692cb8aef60b": "其它启动选项跟随全局设置", + "tfd2d4eb005e182d0": "支持自定义 JVM 参数,按原样传给 Java;含空格的值请加引号。", + "tc8ea0b805c649d5f": "保存实例设置", + "tbfb579e0b55c8526": "全局 Java 与内存", + "t0617557e7bbc153d": "浏览…", + "t5e5ee0fe2602625c": "发现 Java", + "t782a5bacbed379f1": "应用 Java 与内存", + "tdda9d19277377e4f": "修改实例", + "ta7d8b0fac0530c5d": "重新校验当前实例", + "t6cc6d10d1c2de003": "下载其他版本", + "ta5f60f01968f6b61": "导出实例", + "t544148aa438ca527": "包含实例清单、模组、配置和资源;不包含启动器账户或凭据。游戏本体与运行库可按清单重新安装。", + "te68f1ccd9cd2cd8d": "SHOU 实例 ZIP", + "t83d2e0abb1be9fda": "包含存档", + "tdc4c94a1a3ea2d5e": "客户端整合包(Modrinth / CurseForge)", + "t58a5ad2bda3e2f92": "支持原版、Fabric、Quilt、Forge 与 NeoForge。已登记资源优先导出经核验的提供方清单;本地文件须明确选入,不包含启动器账户、日志或缓存。", + "td44e9b3d3b31d37b": "名称", + "t09ef712618900f7e": "包含现有 config 配置目录", + "tefb82dfd5f5adf50": "包含 options.txt 客户端设置", + "t39ad239746a87b3b": "打包本机模组、资源包与光影文件", + "t77587cdd53235518": "导出 .mrpack", + "tc5e3c735e678f439": "启用 / 禁用模组", + "tb00dda1796c8a1e3": "恢复最近删除", + "tb825ccc758e9cba4": "无法预览", + "t4e1449e7d5e50593": "显示", + "tde3b627ba0b656e0": "移入当前实例的截图回收站,可恢复。", + "ta1ca2a6b2f93b4d6": "打开实例文件夹", + "t4ae7b70e363dd219": "新的实例名称", + "t46b738c9f0ee6737": "描述此实例的用途", + "ta3030bf8f16dc63c": "保存", + "tf6380d0e2176efe9": "返回存档列表", + "tf835643490635b7b": "世界资源下载入口尚未接入。", + "t871cf8ebaa4b3d80": "粘贴导入尚未接入。", + "tdf7392cc96bedc51": "重新读取", + "tfda9e77c937bce24": "排序:文件名", + "tb4bc4d1127969966": "按世界快速游玩尚未接入。", + "t1ad2d5463a1d2b08": "快捷游玩", + "t9c12568c3e340a4c": "出生点(X/Y/Z)", + "t5ffb479ba1fe7570": "世界运行时长", + "t71c204b076f78898": "保存世界设置", + "ted487cbd69c0ebdd": "放弃草稿并重新读取", + "t7debbccfe6a63270": "上次保存前的 level.dat 备份", + "tb4b78f8ecb35ae9c": "版本更新尚未验证。", + "t64a44b4d2ca30888": "仅验证 Java 1.21.1 的格式 48 本地包;原 level.dat 自动备份。", + "t72f1685f08bc9ab6": "实验特性与内建包不会修改。", + "tdf61006688a818ca": "数据包删除尚未接入。", + "tae02379509c337da": "搜索数据包文件名", + "t23d5c391e4253299": "数据包下载入口尚未接入。", + "t96dbd1b6f55c6a9c": "可更新(未检查)", + "tfce9129f09fcdc94": "放弃草稿并重新读取状态", + "t5cd0696d4bb99d54": "保存服务器", + "taf22c7ed89133605": "刷新服务器列表", + "t49b05eb30421a456": "快捷连接尚未接入。", + "t7dc5cd68ff29a1fd": "编辑服务器", + "tf987690e16e5366c": "上次保存前的备份", + "t37aac5b4e639b93b": "地址", + "t309fc62253abc35a": "主机名或 IP:端口", + "t9d08baee81d15811": "先更新草稿,再显式保存到当前隔离实例。", + "teeb1584afb53da6d": "从草稿移除", + "t2354c137ceb3b688": "应用到草稿", + "t06b7bd3a89f54974": "选择要检查的 Java", + "t840ec7ba032619cc": "此处只选择检查目标,不更改默认 Java。只读检查不会修改证书或保存设置。", + "t1e209a0e433d17b0": "Java 可执行文件的完整路径", + "t63e81e40a2465d67": "选择 Java…", + "t2ae8f2e5dd7122c1": "填入当前默认 Java", + "t7feaebd0b48c79a0": "诊断结果", + "t64ffaaa46969a7c1": "源 Java、其它证书和修复记录保留。修复不会关闭 TLS 验证或改写系统证书库。", + "t06533ab1fb98647f": "当前默认 Java", + "te983a7b097c6008d": "只读检查", + "ta01a770f844c6645": "创建并核验独立副本", + "t33d56791e4425c56": "已核验的修复副本", + "t7a6d65ebf34126d5": "选用会更新默认 Java,实例独立设置保持;选用前会再次核验副本。", + "t59069443798153f9": "设为默认 Java", + "tad9bdc77353ad92e": "检查详情与来源记录", + "td7add3476bfb793b": "新下载 Java 的自动修复", + "t501dbfb083e4710e": "自动修复已知证书问题(推荐)", + "t13c6f205d3052965": "保存自动修复偏好", + "tf1e8c2a7426d72a4": "复制脱敏日志", + "tdc194a40b2906ea7": "导出日志…", + "tdc9b78c003372d95": "清空显示", + "t958c9eeb2d6a1f99": "跟随最新日志", + "t19181fcd1bc18789": "尚无日志。操作实例、下载或账户后,服务输出会显示在此处。", + "tac29e57a46f41c30": "最小化", + "t1ae6b0a0f8266382": "关闭窗口", + "td301bc1258334c7c": "关闭提示", + "tc8550237ba701f64": "保存设置", + "t70403791a99417bb": "放弃草稿", + "t333b1712d7ed78bf": "用于新建实例;不搬动已有实例、存档和已接入目录。", + "t41df7510d2775a1a": "使用游戏默认标题", + "t9ae9aa477efccbc1": "支持 {name} 和 {version}。当前原生标题适配仅在 Windows 提供。", + "tfd7131f788ac5cc5": "显示为游戏版本类型", + "t77fe8531d263922b": "实例自己的内存设置优先。", + "t51cbd61f5f6ca602": "指定初始内存", + "tf9991a30a894a021": "高级启动设置", + "t3b863b9361682509": "渲染器和旧版兼容开关仍待移植;其它参数不允许覆盖安全引导与证书验证。", + "tfebb5a932e21b5eb": "支持自定义 JVM 参数,按原样传给 Java;含空格的值请加引号。", + "tb0cb1125219c82b5": "支持 --server、--port 和快速游戏参数。", + "tb46fa9936f0c2ef4": "启动前执行程序", + "td54704d887666fc3": "程序完整路径;直接执行,不经过 Shell,超时或失败时不继续启动游戏。", + "t96cce502c0bf0fee": "程序参数", + "t43620c97105740c8": "当前 Java", + "t183725f0b131915a": "启动游戏时按实例要求选择兼容版本。全局选择可被实例单独设置覆盖。", + "t88b02b0b6281fb23": "留空自动选择", + "t16242928cc42a717": "添加…", + "t0d71b2213b336f25": "使用自动选择", + "t9c584b2a81873930": "重新发现 Java", + "t238772bfd1b0ebf5": "选用此 Java", + "t0cc79543609929dc": "默认 Java 已在工具页更新", + "t6400aabc00f964f4": "已保存的选择:", + "t3243d28fbdc5937a": "当前 Java 草稿已保留。保存其它设置前,请选择要使用的 Java。", + "t6b43c116c5d6b350": "使用已保存的选择", + "t7127277219f30299": "保留我的 Java 草稿", + "td731ef0e7fd6bc2b": "打开 Java 证书工具", + "tae7548c9c2ef3e7f": "文件、版本列表与 Mod 的来源按下方分类顺序回退。保存路径不会搬移已有实例或存档。并发与限速用于后续文件传输。", + "td095e4ae28cbd58d": "优先完整官方清单", + "t48c0b7fb7feac616": "仅使用 HTTPS", + "tb0c53f9de9c6e6cc": "关闭时使用来源原有协议;不会将 HTTPS 降级。", + "te604577bf629c51d": "速度限制(KiB/s)", + "t50ea92c5c6824e17": "0 表示不限速。并发名额由各下载后端共享;无法保证当前限速或协议策略时,自动使用内置下载器。", + "t860e2c49d628b5cc": "游戏根目录", + "t692bd6062260efc9": "留空使用启动器管理的实例目录", + "t258118497e278bf1": "自定义下载源与优先级", + "t316504774a90e71b": "每类至少保留一个启用来源;保存设置后生效。", + "t68a317bb52086bfd": "使用自定义来源顺序", + "t49336686595ee9ff": "Minecraft 游戏本体", + "t43c212a5e3442086": "Mod / 整合包", + "t1b93e0c54996e98c": "添加来源", + "teb7fbeb35a4d44d0": "移除来源", + "tba2e93e73037c71e": "恢复默认", + "t4dfd07a6a8cdf83a": "来源高级参数", + "tf5a07dbcfaad08aa": "来源名称", + "tc994d898f007ab95": "自定义 URL 前缀替换要求接口与官方响应格式兼容。", + "t38e1e77b3ef39016": "来源类型", + "tb1968db970026087": "基础地址", + "t866ffdbfc224214b": "官方 URL 前缀", + "t565d64601d4d174f": "优先级", + "tf63270e872062f0e": "高级下载源 JSON", + "ta3e6c2a7d284a679": "留空使用内置来源", + "tf61eb0b7e86ac239": "快速下载策略与依赖自动安装尚未接入。", + "t49d444fc81195b19": "使用上方 Mod 分类来源", + "t0bb652a958ecc6a0": "选择后确认安装", + "t10d062fa5e2f3d3d": "后台版本提醒与自动崩溃分析尚未接入。", + "te1f3694014dd30ae": "自动检测游戏崩溃", + "t14845fee3c7a6ee2": "aria2 RPC - 外部下载加速", + "tc1ad30dc39554802": "仅支持本机 aria2,需自行运行;连接或本机输出校验失败会回退内部下载器。", + "t42a2df845aa02a2c": "启用本机 aria2 下载", + "tcf26e888a4c84401": "RPC 地址、密钥与连接说明", + "t2634666b5faad646": "RPC 地址", + "t7c0424254ac07d04": "RPC Secret(留空保留)", + "td7f370365fb28be1": "新密钥", + "t5cd9eeef256e7cf1": "首页定制", + "t4c761a62d0857e35": "显示社团介绍与顶部提示", + "t4db9a8ff39d7bda9": "显示社团服务器切换", + "t7ff87815a52623fc": "替换首页轮播图片", + "tb0962267b4c04ada": "恢复内置轮播", + "t8aa5d1b4c3fc5be2": "打开启动器时显示社团图标", + "t5a46fc326a59719b": "在启动游戏时显示“你知道吗”", + "tcabc3ec0e94348b9": "启动时提示社团更新日志", + "t848e79eebd3a9dab": "使用系统支持的背景材质;不支持时回退为普通背景。", + "ta950dd1ab1c059dd": "背景图片 / 视频", + "t941935be29e9ad21": "图片轮播已接入;背景视频仍待跨平台播放器适配。", + "t6f894812df38768c": "允许背景轮播", + "t7d035001b555125c": "打开图片目录", + "tee1b60ff9e53a999": "刷新背景", + "t138d7c8b800614f6": "打开音乐目录", + "t958be7e98504adb7": "刷新音乐", + "tc3396195e91ccdd8": "播放", + "tca4d973c0b006b75": "停止", + "tc2e679a42feb5e22": "标题栏 / 主页 / 功能隐藏", + "t7de1743c39f80f24": "TXT / Markdown 本地文件或 HTTPS 文本地址;不执行 XAML、HTML 或脚本。", + "tf1bbb4dc6aade547": "隐藏下载入口", + "t6f9e5d21f4feae5d": "隐藏工具入口", + "t58180fce3e44b99b": "让潮涌核心社启动器\n走向国际化。", + "t9d09c117cc732997": "参与本地化贡献", + "t6d82f15ee4690509": "保存后重启启动器生效。", + "tdcf34de5a7f40688": "直连时使用 DNS over HTTPS;失败回退系统解析。代理连接保留代理自身的解析方式。", + "t12cb30be6910fbe2": "username:password(留空保留已有凭据)", + "t67ae2bf7dacfde5d": "应用数据目录", + "t3c6cf2eb5d9a3c51": "缓存目录", + "tda99ea1331dc3046": "打开数据目录", + "t8ec96af634a85bed": "Microsoft public Client ID 覆盖", + "tac8817889eec6bf0": "留空使用发行包内置配置", + "tca365f98a69ba937": "本启动器不收集遥测。连接密钥仅写入系统安全存储。", + "t2a2846c57eb53222": "Conduit Club · 上海海洋大学 Minecraft 社团", + "t390454a193f8d16f": "社团主页", + "t9167585eb2f64c3f": "社团启动器源代码", + "t065d53d95c055a59": "版本与运行环境", + "tad5ff6fb4f25d7fb": "贡献与版权", + "t0d5ef03afd68266a": "感谢 Plain Craft Launcher 原作者、PCL Community 与所有开源项目贡献者。潮涌核心社独立维护本启动器,历史来源与许可随发行包提供。", + "t0e1c8682fb86f0bc": "社团标识和实景素材归其原作者及社团所有。", + "t1352d0d826f739fe": "法律信息与开源许可", + "t286dd76ac21c03cc": "Minecraft 是 Mojang Studios 的商标。本项目未获 Mojang 或 Microsoft 官方认可。", + "t1c6c37490d081918": "查看项目许可与说明", + "tf3a6bfd645ea015e": "启动时检查启动器更新", + "t0680f1a5de11e1c6": "检查社团更新", + "t8eaea891ab90f264": "打开发行页面", + "tee20b99fb2d36c62": "下载更新包", + "tb899e958deffdd1a": "打开更新包目录", + "td7458d4306675d6f": "反馈与建议", + "t17446947768a1524": "提交反馈时请附版本与脱敏日志,勿提交密码和令牌。", + "td403a1b145ffc84d": "打开社团问题列表", + "t0b919f782432f404": "反馈列表", + "tdd5f95d8e6a7af24": "检索反馈", + "t7c16b4b18da87c30": "批量导出与历史清理尚未接入;原始日志文件可能含隐私,分享前请检查。", + "tf030dc0931d341f9": "查看并导出脱敏日志", + "te28be7098db113cb": "刷新列表", + "t4794ea837d52056f": "确认回收预览中的历史日志", + "t8403e0cafe60b618": "移入回收目录", + "ta399efef8717c2c8": "恢复最近清理", + "t423f51a286789ed3": "运行环境", + "te60b6a604415f87d": "Java 证书", + "t67df947ba5c5c474": "Java 证书诊断与修复", + "ta38be99cc20e0ba4": "检查所选 Java;需要修复时创建独立副本,核验后由你决定是否选用。", + "t9698fc80d82c4cde": "管理默认 Java", + "t7b224bc0c731704f": "社团入口", + "t62c7a471a9e4bdc9": "启动器日志", + "t5d8cd20d31c86087": "预览超过一天的游戏日志、崩溃报告,确认后移入可恢复目录。保留存档、模组、截图和配置。", + "tb384e1a1f1d60c93": "确认将以上日志移入回收目录", + "ta722be7756e1fc76": "恢复最近一次清理", + "t60a858211dee3b61": "恢复最近一次仍有回收文件的清理;原位置有同名文件时不会覆盖。", + "tb8ba15d4796732d9": "启动器缓存", + "t8a839ce77df0440e": "扫描缓存", + "t607ab1620f6391d1": "扫描可重新下载的版本目录、资源、依赖与旧临时文件;保留导出、账户、实例、Java 和正在下载的文件。", + "t1edab91bd1649eed": "确认清理预览中的缓存,之后按需重新下载", + "t673b2f5bb190baeb": "保存 HTTP(S) 文件,最多 512 MiB;不会运行下载内容,已有文件不会被覆盖。", + "t75634ded8879d1fd": "自定义成就图片生成器(仅支持英文)", + "tc11d47b1f0ae67cc": "旧物品图标库", + "tf6455df7788dd4b1": "支持旧生成器全部 39 个图标;数字 1–39 是图标序号,也可使用英文名或自选 PNG。", + "t6d8adad124d0987f": "选择图标", + "t686071c91036f6a1": "自动选择 Java(推荐)", + "t8b36707a1254b51d": "已指定全局 Java", + "t3cb588b9ae1a3bc1": "已发现的 Java({0})", + "t6c601d0509193732": "微软正版登录({0})", + "t4ba0bc300b36c2f6": "LittleSkin 登录({0})", + "t9dff44238967c42e": "MUA 登录({0})", + "t0b9091b472a2fafd": "离线登录({0})", + "tf96e4f69a7a7003d": "全部账户({0} 个角色)", + "tc761d9bb55bb7785": "{0}({1} 个角色)", + "t3c736a450fefae54": "微软正版", + "t79e22ad9c9ad455d": "离线角色", + "t4a9352e9ccb3ce66": "正在添加:{0}。可直接点击其他登录方式切换。", + "t1ce02a0f37e5fb2c": "当前使用内置社团实景。", + "t2717052f81ecc243": "设置已保存。", + "t7ebe0cee2e914a68": "连接密钥仅写入系统安全存储。", + "t8d9d7620ca6ace59": "已读取发行版本;暂无当前平台的可校验跨平台更新包。", + "t1e0d3ca339308144": "已读取可用发行版本。", + "t8171ec8d4fc88d4f": "没有已发布版本。", + "t064fa89fe2c29b1c": "更新包下载并校验完成。", + "t9ae933d139db7744": "没有匹配的反馈。", + "t7bfbed49a0ffbd16": "发行版本 v{0} · 代号 {1}", + "tdbf5e608fd8e4ff8": "历史日志已移入回收目录。", + "te9e29d7f8a7a9ab8": "历史日志已恢复。", + "tc3674929aa1556c9": "没有可清理的历史日志。", + "tc232a90747592e2d": "操作已取消或超时。", + "t7c89b9a82411e1bc": "设置已导出;账户和连接密钥未包含在内。", + "t3d4bde8a062869ec": "已读入设置草稿;点击保存设置后生效。", + "tcb4b372faf9c2b95": "用户选择", + "tb92756269d3659d3": "启动器管理", + "te26117dcb6537ae6": "便携目录", + "t18e5843aa7b6d002": "注册表", + "t9bd76b73081a3a54": "系统安装", + "t9b7824cefa1e8b16": "放弃修改", + "tcee766edcd150ddd": "默认主页", + "t074939b7a33fdeec": "网络地址", + "t57e88a43ef2b00ba": "本地文件", + "t35e664d3a6e0509d": "嘉然配色", + "t241450652225211b": "绯红", + "td3f08a6ba56a166d": "海蓝", + "tb13d01dab9a04f6e": "青玉", + "t8bbade5c6104c27a": "全局动画帧率仍待平台适配。", + "t2f66cb92a4bbc34d": "导出仅包含脱敏日志;历史日志可移入回收目录并恢复。", + "t95c9829d9df09896": "系统安全存储可用", + "t5bc5af409a3b50d4": "系统安全存储不可用", + "ta0937d519f824727": "不提示", + "tafbf120f9931e200": "选择首页轮播图片", + "t50661c4f4ea2de29": "选择标题栏图片", + "ta2ef09c6181de90c": "选择本地主页", + "t8bd702c9e6aa6865": "导出启动器设置", + "tf70b568a3498b652": "导入启动器设置", + "ta9ce867e2aa99cab": "导出全部脱敏日志", + "t1744d728d39313fe": "选择 Java 可执行文件", + "t72eede5bcc7fe4c8": "服务暂时限制了请求。请稍后重试,或前往项目页面查看。", + "t35934c2944612350": "无法连接服务。请检查网络后重试。", + "t1826a485d82ea11b": "Minecraft 运行环境", + "t36887d9b2ad35a12": "背景图片", + "tff13402cecbb9194": "图片适应", + "t9eaa61edf066946a": "背景不透明度", + "t38feac1ef57f7530": "轮播间隔(秒)", + "t4b3b45a347eb3097": "首页社团实景轮播", + "t4a14255e93d43a6e": "内置校园湖畔、生存服主城与创造服雕像,可选择本机图片。关闭内置轮播后恢复主题背景。", + "t79b21b81fac46f51": "选择图片…", + "t8b4261294f8e2c90": "恢复内置图片", + "te360fc3377b293ec": "打开图片文件夹", + "t9f8c282f835b62a6": "启动器打开后自动播放", + "t4fa138a971d33ed5": "游戏运行时", + "tb0d3d0cf02bc6965": "打开音乐文件夹", + "ta45897804b7572f2": "标题内容", + "t1c623e5fbeffe5f2": "主页内容", + "t33e69e113e978c4e": "选择本地文件", + "t8f6178afb7effd3b": "勾选以隐藏不需要的入口;按 F12 可临时显示全部隐藏功能,再按一次恢复。", + "t8f1070ca7452f4e4": "设置子页面", + "t35657b39fa109dc8": "工具子页面", + "t09a4e2154c4b5496": "实例设置子页面", + "t40a782d43a96162f": "潮涌核心社独立维护的跨平台启动器。历史源自 PCL-CE;开发与维护:Moeary 与 Codex。", + "t199e232f9d511523": "原作者与 PCL-CE 支持", + "tb7f16d747c68864b": "社团鸣谢", + "ta77db7e0a10ccaa1": "上游项目鸣谢", + "td67e813c1227f6c4": "社团版贡献者", + "taffcee307cfb401f": "凭据使用系统安全存储,日志保存在本机。登录、下载与在线内容会联系用户选择的服务;分享日志由用户决定。新版不提供联机大厅,也不会自动下载或替换启动器自身。", + "td4ec05e2afa60282": "历史代码和素材的原作者版权继续保留;项目许可与归属随发行包提供。", + "t3497c1bd86a1652c": "非 Minecraft 官方产品,未经 Mojang 或 Microsoft 认可,也不与其关联。", + "td56ddef7d359808b": "隐私与网络说明", + "t38b899b44339abff": "PCL-CE 源代码", + "t17885ed3ef564375": "原项目版权与法律信息", + "ta4fc763353b3d343": "原项目源代码", + "te38b8d16e03d2b2b": "爱弥斯配色", + "tac2af1d3e91a02b4": "高雅人士配色", + "t86df2a26066e2d44": "智能填充", + "t715bb134d936a2cf": "完整适应", + "tfef304a69096b2c3": "左上", + "tddf11974a72b465a": "右上", + "t8537c17b8e3e8ce3": "左下", + "teae5305a5c764661": "右下", + "t9c9ee9a819996bcb": "保持播放状态", + "t2eecbe60f6b9a3a0": "游戏运行时停止", + "tb2037ea3cdfe898d": "仅在游戏运行时播放", + "t6c031fd1176a21a1": "Plain Craft Launcher 的原作者", + "tff99556c2e15299d": "Plain Craft Launcher Community Edition 的开发团队", + "t9e9ccc1de1a670e6": "由社团独立维护的跨平台新版本", + "t593ad70c186de5ea": "了解指导老师", + "tc7ffae102dfe5b82": "了解空间博士", + "tc44abb25c3f6a0c0": "项目开发与社团维护", + "t1febec6381b91710": "开发协作与测试", + "t0d72e06a12578fe5": "历史项目支持与贡献", + "t91fe7f73195932cd": "历史项目贡献者", + "tb07a140754883838": "访问项目", + "t04913c227839e308": "访问网站", + "t9247bbb40a81f614": "打开 MC 百科", + "t2a1f44f78b386264": "设置未全部保存,请检查输入或安全存储后重试。", + "tfb286866866dc5db": "有效输入会自动保存。", + "t148314849d1e3c95": "启动时显示社团图标", + "t678463fdac2d7c9a": "启动游戏时显示提示", + "tb25cf527bf367792": "显示社团介绍", + "t3fd014a1f6ed480b": "显示服务器列表", + "td854044d5ce6cd2a": "社团启动器源码", + "t128ac8e6ea60cf3e": "特别鸣谢 · 社团指导老师-ZRY", + "tcec91059e352bbf6": "特别贡献 · 空间博士-ZST", + "t7bf1d59e03f40c93": "为 Minecraft 潮涌核心社团的创立提供了大力支持。", + "tcfa4da390461a001": "为社团在虚拟现实与 Unity 技术上的发展作出了贡献。", + "t3bdf6176817da848": "Minecraft 下载镜像服务", + "tee655b06ea41df64": "中文 Minecraft 模组资料", + "t7d35a66894138d75": "历史联机组件贡献;新版本已移除联机功能", + "t9cea4540daa70a2b": "自动保存超时;当前输入未全部保存,请重试。", + "t065c765a90695511": "来源配置无效:", + "t03b172ea135d9c4f": "来源顺序已更改,有效配置会自动保存。", + "t4d5b21631fe5f50b": "设置已自动保存。", + "t778ba19ffb5befef": "地址已更改;有效输入会自动保存。", + "t370446e738783d11": "密钥已更改;有效输入会自动保存。", + "te53967ca1ff3a96a": "音乐目录中没有 WAV、MP3 或 M4A 文件。", + "t4f078f908f8c3017": "选择已下载文件…", + "t75e2fabcb4a0f801": "重新预检", + "tacf2725262be5b6a": "部分文件需从作者官网获取。下载指定版本并选择文件校验后,请确认实例名称并安装。", + "tb577306338735d2a": "{0:0.##} MiB · 官方文件 {1}", + "t936bcd6c422aeee8": "正在重新预检整合包与补充文件…", + "tbf228f4caebf121f": "正在读取本机整合包…", + "td336f829b21272c6": "整合包在补充文件后已改变,请重新选择并预检,再确认安装。", + "t8fd6c3c0f5c02fc8": "整合包预检已取消;可重新预检后继续。", + "t92acca5c8bbcd8b2": "正在按官方版本校验补充文件…", + "t0a20c4da3cfd03e3": "补充文件已取消;待补文件保留,可重试或重新预检。", + "tf5ea7220cf203860": "整合包文件已改变,本次已按新文件重新预检,请核对内容后安装。", + "t6474fb292922dfd9": "勾选需要的可选下载;未勾选的下载将跳过。", + "t7be8aae334cc8c1c": "按所选项目继续安装", + "t3370edc05677b48e": "可选文件", + "t6f8123ec68a2fe43": "检查选择并导入", + "tfd1a09022fd5e712": "可选项目已更改,导入前会重新预检本次选择。", + "t99d0c7ca04291297": "可选项目已更改,继续前会重新预检本次选择。", + "tef2ea260c348e6b1": "等待选择可选文件", + "t868e29a93bc2edbc": "勾选需要的可选下载后继续;未勾选的下载将跳过。", + "t19a32d238fa54100": "已取消;可重试并重新确认可选文件。", + "t531d746fbf2ba539": "官方名称尚未核实;选中后会核实文件身份与可用性。", + "t4d761bdef85f56ea": "取消检查", + "ta96c9a854190874d": "排序", + "t02f56db87dcd6547": "导出资源信息", + "t25360e782ef5c106": "全选 / 反选", + "t99f8f4f97cfdbdf1": "更新所选", + "t26008950621fcb56": "启用所选", + "tc35ebeed062b488a": "禁用所选", + "t435bf8a234fde6f2": "删除所选", + "tba35dc23b245e61e": "回收站", + "t557e7ef05116a514": "模组回收站", + "t675c2e148a7a9305": "恢复所选记录", + "t9071cfe7cd010bb1": "关闭详情", + "t9756c549e06b91d5": "更新并备份", + "t6a5b1cb18fb64c5c": "移到回收站", + "t526fed29561d2913": "添加时间", + "t5f80b5165d7c3b68": "重复项目", + "t1082ee1202a56dfa": "可更新至 {0}", + "t5a5c8318ef649672": "已选择 {0} 项", + "t73d55515ac08cf1b": "{0}({1})", + "t30c3a408785cce93": "安装本地资源", + "t5bb18dfb347ac7c1": "将 {0} 个文件装入 {1}?", + "t9f7da21680020bda": "将所选模组移到实例回收站?", + "t9bc2480077924309": "更新所选模组并保留原文件备份。整合包定制版本可能不适合单独更新。", + "t19612b3051d19e56": "检查已取消,未修改模组文件。", + "te8bc17581c32891c": "正在核对已安装模组及其官方更新,可随时取消。", + "t5c6117ff57e7aa8b": "检查已取消或失败,未修改模组文件。", + "t4d91f7765d314387": "返回模组", + "t1b81f418a6111381": "仅核对文件声明;版本约束、加载器实际选择与冲突仍需核验。", + "t5d8e40ab8b8f94b5": "搜索模组、内嵌 ID 或依赖", + "t89a97de8a0609e18": "只看需要检查的文件", + "t9c94bd277ebaa24f": "没有匹配的模组声明。", + "t8459c09fb5eaedee": "依赖声明与来源", + "t71c172084904b191": "独立与内嵌声明", + "t6e15853f4883ed66": "{0} 个文件 · {1} 个声明节点 · {2} 项依赖", + "t2f18915b108603fb": "读取已取消,可重新读取。", + "t9898793b3bfdbb8e": "当前服务不支持读取模组关系。", + "t9299b98ddf31792f": "正在读取模组与内嵌声明…", + "t6b8b79b5fc1d2523": "部分声明未能读取,请查看文件详情。", + "t78911af0e24d1c03": "声明读取完成。", + "t9f2a4477c71eba5f": "读取失败:", + "tbc63ac5f5dac6061": "找到独立声明", + "te4b696356a6bc6e4": "找到内嵌声明", + "ta11f747ff407906f": "仅在已禁用文件中找到", + "t57cd2b6e160faf99": "未找到声明", + "t403c57fbc15051a5": "读取不完整,尚未核实", + "t847efd925c48a35a": "文件在读取期间发生变化,请重新读取。", + "t4e601080b90761eb": "无法读取归档或模组声明。", + "t0b8bd4e1afa58007": "内嵌解析达到深度或节点预算,结果不完整。", + "tdc7ae7f51b9bf127": "归档条目过多,声明读取不完整。", + "t5dca86d1deac1357": "存在未解析的 Quilt 组合依赖声明。", + "t47bbf57ae4694f8d": "部分模组声明无法解析,结果不完整。", + "tc1facef2a191a7a2": "内嵌归档缺失、损坏或超出读取预算,结果不完整。", + "te13ab655d6ca1ce9": "内嵌路径声明无效,结果不完整。", + "t3b83ff6a70abab8f": "检查模组更新", + "tde3c35c2a69a3102": "排序:", + "t9f07d2ce4115f575": "更多操作", + "ta6bccf6ff247cfbb": "更新模组", + "tfe76e31d24ddf33c": "显示文件", + "tf8bbcd6fea98c392": "资源归档条目过多,未读取展示信息。", + "tdc5a86024be7f4e7": "无法读取资源归档展示信息。", + "t53a1187ad2615275": "正在核对资源展示信息,本机列表可继续使用。", + "tdb0d83b922a85498": "已核实 {0} 项资源展示信息;{1} 项保留本机信息。", + "t1516861defba32c5": "资源展示信息暂不可用,本机列表保留。", + "tf947d382ebca9b6d": "奇趣", + "tc13491446baa0ac5": "半写实", + "t93294b654c4017ad": "写实", + "t1b9d21130542b840": "极低配", + "t4832877d9fac3e5a": "低配", + "t118c0c03438634e0": "中配", + "tc63c900816036798": "高配", + "tf31c4407739e6a75": "高画质", + "t891f1255618481d9": "泛光", + "ta0fb1c62d0e8ce9e": "阴影", + "t73f33d69d8a6d5dd": "检查资源更新", + "t9caca24bf3f774c1": "更新资源", + "tad98c42548d7e004": "更新资源并备份", + "t6c0974f8b3ae5502": "检查已取消,未修改资源文件。", + "tff3224023f2754e4": "检查已取消或失败,未修改资源文件。", + "t8b0baeea2637137b": "正在核对已安装资源及其官方更新,可随时取消。", + "tda0eb8e6126419f1": "已检查 {0}/{1} 项资源", + "td27ec7c9359c3ba6": "已检查 {0} 项资源,发现 {1} 项同游戏版本的正式版更新。", + "t0fc9e0c979426199": " {0} 项未能核实,未计为最新版。", + "t2b8756c51d6bef60": "暂未能核实资源更新:", + "td10cf31d6f2c6ff2": "已更新 {0}/{1} 项资源,原文件已备份。", + "t5392c3d1e9da59c2": "当前筛选下没有可更新的资源", + "t43e6c7570b77f609": "当前筛选下没有资源", + "t72e80862791a8109": "资源版本声明了依赖,请在资源详情核对;本次仅更新所选文件。", + "t430446a51dcd8554": "文件装入shaderpacks;启用光影仍需实例具备相应渲染模组。", + "tf5347d661a21ee12": "资源版本依赖:", + "t92707d3318b3d04f": "必需", + "t537352400c495fb8": "可选", + "t975f9da19eee1b16": "内嵌", + "te146d0aa4f6d8f81": "将所选资源移到实例回收站?", + "t28b4afd6d21a67d5": "资源回收站", + "tfe4e0d291b7478d9": "恢复所选", + "tafd4b783536b8297": "收起", + "taf9ab85222e0c4a2": "查看下载详情", + "t7f9920e38dec6df9": "回收资源", + "t102784dad55e3a72": "读取资源回收站", + "te45a070e24ec96a8": "恢复资源", + "t9fcbeab9ecfe4f6f": "继续加载截图", + "t2413ba708781d909": "已显示 {0}/{1} 张截图", + "t92b9bae024bb51b2": "选择文件和目录", + "t8e7847be62b68c2b": "上一级", + "t36aff47e9da99ebf": "勾选目录会包含其全部内容;可进入目录选择单个文件。", + "tf88182fcd575be3a": "进入", + "t18e57daa4a061a64": "清除额外选择", + "t3bc3f948d49c7fae": "另选 {0} 项文件或目录", + "t2d962a4add956924": "导出目录读取失败:", + "t728b49f9cdb72476": "搜索收藏:名称 / 作者 / 来源 / 类型", + "t613172aeea9e8c19": "响应 {0} ms", + "t8bbb38569df143b3": "正在查询…", + "t84d11bab76dc6066": "尚未查询", + "td52291a26b912a86": "启动当前实例并连接此服务器", + "t80d2d8145a503816": "打开日志文件", + "t440f779300918915": "打开截图", + "t314bfb6dc41fdc10": "读取收藏图标", + "tbea9982da7d72327": "双击或按 Enter 进入文件夹", + "t0d6324caf8aa6c05": "没有匹配的收藏", + "t02aa1fe8479d44bf": "当前文件夹为空", + "t2172cb489d3eecd9": "分享收藏", + "tf074def5de38a40a": "管理收藏夹", + "t50ef2f4cf6a46924": "新建", + "te965cb43b78bde3e": "移除分组(保留收藏)", + "t61ec1c040213fb45": "粘贴 WPF 收藏分享码", + "t8d8d657d7a815657": "导入到当前收藏夹", + "t9f4c783b28cc94e0": "全选 / 取消选择", + "t1113af786ccfd852": "移除所选收藏", + "t43f9d4de56f54085": "Classpath 前置路径", + "t12ee24baeddab047": "详细游戏日志", + "t50c37782012c26fb": "其他渲染与兼容选项尚未适配此版本。", + "t93b053bff32f3814": "默认收藏夹", + "t9f4a9b9e966deaeb": "新收藏夹", + "t69575bb70908edff": "当前收藏夹还没有资源。", + "t2d22af42a79f019a": "编辑备注", + "t8d9284d5e4936a9b": "取消当前分组收藏", + "t4f8b0ab088ec2524": "保存备注", + "t920fe6ef0593c099": "删除收藏夹", + "t7203bfcf26c3119f": "导入旧 WPF 收藏文件…", + "t9ffc0154b97daeb9": "确认删除收藏夹", + "t0d1f81d513556baa": "搜索收藏:名称 / 描述 / 标签 / 备注", + "t2492d028220961df": "复制到分组", + "ta2defe28a03a69cd": "移至分组", + "tf57493dabb517cf5": "批量下载所选…", + "t96f7895e01f2468d": "重新读取失效收藏", + "t29cdbd447a3d3dee": "收藏批量下载", + "t8be216be7a848dd3": "游戏版本", + "t22120d4c037ee575": "选择目录并下载…", + "tdca2fe47daa24930": "选择旧 WPF 收藏配置", + "t8c9d1e22fbe8f0eb": "选择收藏资源保存目录", + "tdaede9881787abe7": "备注", + "t0c8ba7104e9ab134": "所选收藏没有共同支持的加载器或游戏版本。", + "t8599f06038ef6f14": "选择共同版本和保存目录后下载;仅保存文件,不安装到实例。所选版本可能包含测试版。", + "tdcc9061fb4159860": "未能读取所选项目,未下载:{0}", + "t51741c58faab5884": "暂未读取的收藏:{0}", + "t87ea224d0bd738bd": "删除收藏夹“{0}”及其收藏记录?其他收藏夹不受影响。", + "t3e4097f052c17323": "已保存 {0} 个文件,复用 {1} 个文件。", + "t7a0a6ccb8c6ad857": "未完成:{0}", + "td09ae8da9937c141": "已导入 {0} 项收藏。", + "t70f9b6f26de2f4f2": "无法读取(已保留,可重试):{0}", + "tded2e7766fd4567e": "下载已取消或失败;已完成的文件保留。", + "t53a59354361e5939": "重新授权钥匙串", + "t50a626534809dffa": "更新后需重新允许此启动器读取 macOS 钥匙串,原登录凭据仍保留。", + "t3b2133aceb4fb225": "游戏正在初始化", + "t0facea6421e1fea3": "返回启动器", + "tb80a7249a2b7bc9e": "已等待 {0:0} 秒,正在初始化游戏窗口…", + "t56c84f1069b65b44": "游戏进程已启动,窗口状态尚未确认" +} diff --git a/src/SHOU.Launcher.Desktop/Localization/Resources/zh-TW.json b/src/SHOU.Launcher.Desktop/Localization/Resources/zh-TW.json new file mode 100644 index 00000000..87dbb564 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Localization/Resources/zh-TW.json @@ -0,0 +1,3064 @@ +{ + "t315f7b86bc870e93": "zh-TW", + "tf16855db45e76615": "繁體中文(台灣)", + "tb709766dafadfeba": "動畫操作失敗。請檢視錯誤詳情。", + "t789c57b570ee950c": "介面控制項操作失敗。請檢視錯誤詳情。", + "t9dc0825fba5422e4": "載入中……", + "td1d044826a45ef65": "載入失敗", + "t38a8cdb210598179": "網路連線狀況不佳,請稍後再試,或使用 VPN 改善網路連線。", + "t13a46616e16fe5e6": "未知錯誤", + "teaa048da7bbf7eef": "訊息對話方塊操作失敗。請檢視錯誤詳情。", + "t348f1cf1243e74bc": "我知道了", + "tfe2daed4a4a6c7d7": "PCL CE 在啟動時偵測到環境問題:\n\n{0}\n\n不解決這些問題可能會導致部分功能無法正常運作……", + "t57a67439a449f9ac": "- PCL CE 正在 QQ、微信、TIM 等社交軟體的下載資料夾執行,請考慮移動到其他位置,否則可能導致遊戲存檔或設定遺失", + "t3d0c9cba3a1c81e9": "- 目前系統為 32 位元,不受 PCL CE 和新版 Minecraft 支援,強烈建議重灌為 64 位元系統後再進行遊戲", + "tcdfc824df0a3af89": "- PCL CE 正在暫存資料夾執行,請將 PCL CE 從壓縮檔中解壓縮後再使用,否則可能導致遊戲存檔或設定遺失", + "t41f54b1baa2f856a": "環境警告", + "t567a304e1b960dfb": "- Windows 版本低於建議需求;建議使用 Windows 10 1809 或更新版本,並考慮升級 Windows", + "t3f828f9d60fb401d": "PCL CE 所在路徑:{0}", + "t29b3a1b57e5b5780": "取得失敗", + "ta1fdb416d2ff82b0": "PCL CE 初始化錯誤", + "t11036031881d1a5a": "任務載入操作失敗。請檢視錯誤詳情。", + "tf56c6c82203b33f6": "提示", + "ta8b7a4480407ac8a": "警告", + "t589b1ae54117ebf4": "不是有效的 JSON 檔案", + "t35bcad5bb280902d": "下載 {0} 次", + "td37563c31d52408d": "{0} 萬", + "t87328c2970c0949e": "{0} 億", + "tce6dbce5ca91ab86": "{0} 兆", + "t5749d79515962393": "{0}後", + "t4b7f9dda7314e6c4": "{0}前", + "tcb9c3d54dc149d46": "已成功複製!", + "tb1f6d08a33e99468": "無法複製文字,剪貼簿可能正由其他程式使用。", + "ta54a0add54472cb1": "不再提示", + "t4afad295c7582adb": "已貼上 {0} 個檔案及 {1} 個資料夾。", + "t5c55a67935af8f45": "全部", + "t7eb336e42cb5076b": "自動", + "t4eafa9e925b30bcd": "自訂", + "t844b8cc8dff7c1d8": "預設", + "t31b86e9372ca7d41": "我不知道", + "t0c70665b6eb65f1a": "否", + "tb5141d3d19e9a048": "是", + "t4d8c1c5b42830791": "未知", + "t464a8e0d77bb6889": "已取消!", + "t09a4e5504e488a8c": "失敗:", + "tbe5b5900c14f799e": "成功!", + "t905819e2e3a059a0": "同意", + "t572cf45ba43634b3": "返回", + "t2cd0f3be8738a86c": "取消", + "t3fd47edce45b3603": "關閉", + "tfac2a67ad87807c4": "確定", + "t7c9691192f1b7340": "繼續", + "t63d90d977348ab1f": "複製", + "t136de7a8c46fc803": "拒絕", + "t2f9daa828907b93f": "刪除", + "t4673a23061656125": "下載", + "t65622e8ee9fb116b": "初始化", + "te8f88f51ccb085ea": "安裝", + "tc771248e511fbf93": "開啟", + "tfcf8b4bff0df782d": "開啟資料夾", + "t4ce4c98eb27e4b65": "覆蓋", + "taee88743413144a2": "重新整理", + "tcb5d682bac3d1a2d": "重設", + "t44ce7ae909bbb28b": "搜尋", + "tde6811e73d403172": "更新紀錄", + "t3330131bf7bfcda8": "Cleanroom", + "tde7b2b8384b81848": "Fabric", + "taa03a58dd655f242": "Fabric API", + "t8899ecd1626db63d": "Forge", + "t65003c7a186430e8": "Iris", + "tecd1401bc618b41f": "LabyMod", + "t80c7dfd19f110c47": "Legacy Fabric", + "tcc183d69f036c82a": "Legacy Fabric API", + "td62e27eea8fb1ca9": "LiteLoader", + "te098b8a25b0a7a26": "Minecraft", + "t3803dc90d9f8578d": "NeoForge", + "t333a55aef76cda96": "OptiFabric", + "tb1b36951dde91b4c": "OptiFine", + "tb0c25286507fdb23": "Quilt", + "tc0028b730280136e": "設定初始化失敗,目前位於 {0} 階段。\n\n設定檔 {1} 的內容出現問題,已備份到 {2}。\n為盡可能防止重複故障,若存在上一版本,PCL CE 已嘗試將設定復原至上一版本。若曾手動更改過設定檔,請修復問題並取代目前的設定檔。\n\n如果你不知道發生了什麼事,可以先忽略。重新開啟啟動器後,相關設定項可能會復原為預設值,但通常不影響正常使用。", + "tee2d6eb8cace92f1": "設定初始化失敗,目前位於 {0} 階段。\n\n設定系統無法完成初始化。請修復問題後重啟 PCL CE。", + "tb37790547db1b6de": "設定系統在 {0} 階段發生錯誤。", + "t1ba68cce121c1664": "設定初始化失敗", + "t3e8dc438a4715f1c": "無法儲存設定檔。\n\n路徑:{0}", + "tc6070f450211044a": "儲存設定檔失敗", + "td88b15f7379837c6": "崩潰分析失敗。請檢視錯誤詳情。", + "t37c42c65d9b0a02b": "匯出錯誤報告", + "t90e01acb5c9edd35": "前往修改", + "t6598755879490792": "檢視日誌", + "tb56dacc6615f683f": "Minecraft 出現錯誤", + "te3ba07c8080abe28": "錯誤報告分析結果", + "t092894a3fee643a2": "複製詳細資訊", + "td6e7f1232d85007c": "無法匯出錯誤報告。\n\n目標路徑:{0}", + "t67bd98cc6ddcf702": "無法匯出錯誤報告,且未能取得目標路徑。", + "tc81aa8bc768648e4": "匯出錯誤報告失敗", + "ta01b89841daf67e3": " - {0}", + "tcefa7588fe99aa24": "原因\n{0}", + "t7fc9c5a1ce0a4aa4": "{0}\n\n{1}", + "t35c22b1afbd3fb7d": "原因\n{0}\n\n你可以嘗試\n{1}", + "tfae615e265a131a0": "以下模組導致了遊戲出錯:\n{0}", + "taed90775b693b199": "模組 {0} 導致了遊戲出錯。", + "te13f6b316936a6df": "偵測到重複安裝的模組:\n{0}", + "t50dbecc31daa8e89": "可能安裝了重複的模組。", + "tff2461be8d7ecdbe": "偵測到已被解壓縮的模組檔案。", + "t8aadd91a598f41b4": "Fabric 可能已經提供了錯誤資訊。", + "t347e533b23891be0": "Fabric 提供了以下錯誤資訊:\n{0}", + "t65d6d0dc70d111b6": "Fabric 可能已經提供了解決方案。", + "tea36408934d9b781": "Fabric 提供了以下解決方案:\n{0}", + "td3423bf6cf1ac47e": "部分檔案或內容未能透過校驗。", + "t6e70a8befb3cb889": "Forge 可能已經提供了錯誤資訊。", + "t61c8944a2b8d1708": "Forge 提供了以下錯誤資訊:\n{0}", + "t02070df4122c1669": "顯示卡驅動可能導致遊戲無法正常執行。", + "t7f62bb1c94fad1c4": "顯示卡驅動存在問題,或遊戲未使用獨立顯示卡。", + "t1fa875bbfad5bdbd": "可能與已安裝的模組不相容。", + "tc837e5874afba4f3": "與已安裝的模組不相容:\n{0}", + "taa6fd4a25de9af40": "Forge 安裝不完整,缺少必要檔案。", + "ta966d3f72f113711": "某個模組檔名包含 Java 不支援的特殊字元。", + "tbc852193d70dc63a": "目前 Java 版本與遊戲或模組不相容。", + "tfe816d1d201e7521": "目前 Java 版本對該遊戲或載入器來說過高。", + "t5f432b374bd80ac7": "這是手動觸發的除錯崩潰,遊戲本身通常沒有問題。", + "t94478e651aa093cc": "部分模組缺少前置,或與目前 Minecraft 版本不匹配。", + "tb1b53c63283e5851": "部分模組缺少前置,或與目前 Minecraft 版本不匹配:\n{0}", + "t7bfdce0244ad6cb5": "缺少 MixinBootstrap,遊戲無法繼續載入。", + "t164eb28a4e0b0b1c": "模組 {0} 的設定讀取失敗。", + "t416f25fa791c1401": "模組 {0} 的設定檔 {1} 無法讀取。", + "te316ac44fdc6a01e": "以下模組初始化失敗:\n{0}", + "t62b59361f7a24bb3": "模組 {0} 初始化失敗。", + "t328cee8872725e35": "模組載入器可能已經提供了錯誤資訊。", + "te9c9c782cbe7f56d": "模組載入器提供了以下錯誤資訊:\n{0}", + "tf93eab675ec07cc7": "模組載入器版本與模組不相容:\n{0}", + "td99f060b8fee8c31": "以下模組的 Mixin 注入失敗:\n{0}", + "t08c1c3f097a09bd6": "部分模組的 Mixin 注入失敗。", + "t060586dc3c6f645b": "模組 {0} 的 Mixin 注入失敗。", + "tedf284fafab771a4": "部分已安裝模組需要 Java 11 或更高版本。", + "t33457310a91f25bb": "實例 JSON 中包含多個 Forge 版本參數。", + "t3dce704b11144264": "Night Config 讀取設定時發生錯誤。", + "t223b6e297e3f1ea6": "遊戲出現了問題,但未找到可分析的相關日誌檔案。", + "t721280eb48614a27": "舊版 Forge 與目前 Java 版本不相容。", + "te235be5f2c1d3170": "光影或資源包可能觸發了 OpenGL 1282 錯誤。", + "td324d7778dee590f": "OptiFine 與目前 Forge 或 Minecraft 版本可能不相容。", + "t5c7a6135b262daa2": "目前 OptiFine 版本可能導致世界載入失敗。", + "td861c658ccadced7": "Minecraft 記憶體不足,無法繼續執行。", + "t92092d4764cdc3b6": "資源包解析度可能過高,或顯示卡效能不足。", + "t952fcf5717f69a2f": "同時安裝了 Shaders 模組與 OptiFine。", + "tfe91a807e1c93bad": "世界中的某些方塊可能導致了遊戲出錯。", + "t0d544eeed74643d0": "方塊 {0} 可能導致了遊戲出錯。", + "t9684df6fb67fb0be": "世界中的某些實體可能導致了遊戲出錯。", + "t18c1d36bf63cd3b6": "實體 {0} 可能導致了遊戲出錯。", + "t478f32d6b069e44d": "PCL CE 在錯誤堆疊中找到了可能相關的關鍵字:\n{0}", + "t9821a18bb44b4f64": "PCL CE 在錯誤堆疊中找到了可能相關的關鍵字:{0}", + "tf2b1703200b5a7d5": "當機報告懷疑以下模組導致了遊戲出錯:\n{0}", + "t71c045613b39e47a": "當機報告懷疑模組 {0} 導致了遊戲出錯。", + "t8e272d4e6361dc6a": "模組數量過多,超出了舊版 Minecraft 的 ID 限制。", + "t3692de4e77775b5f": "PCL CE 無法確定遊戲出錯的具體原因。", + "t4a5b66423be7af16": "PCL CE 無法確定錯誤原因。", + "ta4bc2716c341dd81": "PCL CE 偵測到一個沒有詳細說明的錯誤原因:{0}", + "t43cf814723a1317e": "遊戲可能正在使用 JDK,或目前 Java 版本過高。", + "t3812634fe44f8428": "目前使用的 OpenJ9 Java 可能與遊戲、模組或載入器不相容。", + "ta35277063f85e469": "遊戲輸出過短,PCL CE 無法獲得足夠的分析資訊。原始輸出:\n{0}", + "tbe910c8649d97ae7": "目前使用的是 32 位元 Java,無法分配遊戲所需的記憶體。", + "t5ada8acc0df427dd": "目前使用的是 32 位元作業系統,無法為遊戲提供所需的記憶體。", + "taefe78048b57ce30": "錯誤報告已匯出!", + "t9c1e36ba3609be98": "錯誤報告-{0}.zip", + "t886ad926d77454af": "Minecraft 錯誤報告(*.zip)|*.zip", + "tedfa33a3f470ecc5": "選擇儲存位置", + "t2f22bf320de8842e": "CPU:{0}", + "t74d9fe9c21915402": "- 環境資訊 -", + "t5de2b1e2f82cb09e": "顯示卡 {0}:{1} ({2} MiB, {3})", + "t164346368c1e2e72": "- 實例資訊 -", + "t3516bd66c4307a00": "識別碼:{0}", + "t29dec972b0f2301d": "PCL CE 版本:{0}", + "t95e694b0f5218c2e": "Log4j2 NoLookups:{0}", + "t110b2c909c7403ff": "記憶體分配 (分配的記憶體 / 已安裝實體記憶體):{0} / {1} GiB ({2} MiB)", + "t78c1222202ada4e2": "Minecraft 資料夾:{0}", + "taec071eef5251661": "作業系統:{0}(64 位元:{1}, ARM64: {2})", + "t1b273d70a2c6ad89": "檔案名:{0} (驗證方式:{1})", + "t90ba25961e9b7fe8": "- 檔案資訊 -", + "t40ef92a388943c46": "選定的 Java 虛擬機器:{0}", + "tcd3f5d5d894f018b": "目錄:{0}", + "t96c914ddbe8b1681": "{0} [{1}] <-> 內嵌於 {2}({3})", + "tf7b98113b3d7e402": "(按模組 ID 匹配,可能包含誤報)", + "td03f26cc4789ab87": "以下模組可能與內嵌副本衝突並導致崩潰:", + "t484d55613910eb8c": "無", + "t972ecc9b7c5256be": "=== 潛在重複模組===", + "t49a7be4efd82aa7d": "未發現 Jar-in-Jar 資訊", + "tc86892d82348aa47": "=== Jar-in-Jar 資訊(僅啟用模組)===", + "t8c44658a527fa3fa": "=== 模組清單 ===", + "t40c4aaef12065dc8": "嘗試逐個停用這些模組,再觀察遊戲是否仍會崩潰。", + "t0ef773efa1d6c031": "嘗試停用該模組,再觀察遊戲是否仍會崩潰。", + "t3cf5aaea1a375671": "每個模組只能安裝一次。刪除重複的模組後再啟動遊戲。", + "t0fa488a842726589": "需要幫助時,請傳送錯誤報告檔案,而不是此視窗的照片或截圖。", + "tb9fd451df6743922": "刪除 mods 資料夾中已被解壓縮的模組資料夾,並放入完整的 .jar 模組檔案後再試。", + "t82cacbaa10b2d0db": "刪除遊戲及相關模組後重新下載。", + "td7dff1ed611e4192": "請根據上述原始錯誤資訊或錯誤報告中的載入器提示進行處理。", + "te3cbac4133b5f0c3": "嘗試更新或回退顯示卡驅動;必要時改用更低版本的 Java。", + "t37a7bed9e869ffdd": "若裝置有獨立顯示卡,請使用獨立顯示卡啟動 PCL CE 與 Minecraft;也可以更新或回退顯示卡驅動。", + "t6c5f9bddd09191c7": "在實例設定中重設或重新安裝 Forge;不要在打包實例時刪除 libraries 資料夾。", + "ta74d8b873c5078cd": "移除或重新命名異常的模組檔案,使檔名僅包含英文字母、數字、短橫線、下劃線和小數點。", + "tf943161bdf0bf23a": "根據 Minecraft 版本和模組要求,在啟動設定中選擇合適的 Java。", + "t01a298487e13d230": "在啟動設定中改用較低版本的 Java 後再試。", + "ta743b54ea7005725": "目前使用的 PCL CE 版本較舊。更新 PCL CE 可能會解決此問題:設定 → 啟動器 → 檢查更新。", + "tf1cca4af375344b7": "檢查 MixinBootstrap、模組載入器和相關前置是否已完整安裝。", + "t18acbdf96509ed38": "嘗試刪除該模組的設定檔後重新啟動;必要時更新或停用該模組。", + "t263b159ede4ee0f5": "開啟實例設定並調整或重新安裝模組載入器版本。", + "t1c38b69975f05e15": "逐步停用模組,以定位與目前環境不相容或存在問題的模組。", + "tb4d7dfa3841d0d82": "在啟動設定中改用 Java 11 或更高版本後再試。", + "t9807131b9f1198a3": "在實例設定中重設或重新安裝 Forge,不要使用其他啟動器修改 Forge 版本。", + "tb40c547c1baa5d77": "嘗試刪除相關模組設定檔,或安裝 Night Config Fixes。", + "t7bf0db98218b182b": "嘗試升級 Forge,或改用較低版本的 Java。", + "te0717c2695266260": "關閉光影,並移除最近新增的資源包後再試。", + "t65e1cc2062bc5e1c": "檢查 OptiFine 與 Forge 相容的版本,並重新安裝匹配的版本。", + "td96210b13c30bb9d": "嘗試更換 OptiFine 版本,或暫時移除 OptiFine 後再進入世界。", + "td1e6a0c6c71dd4b9": "在啟動設定中增加遊戲分配記憶體,並移除設定要求較高的資源包、模組或光影。也可以在啟動前關閉其他軟體。", + "t6037c82cd1aad293": "移除高畫質資源包,或降低資源包解析度;也可以更新顯示卡驅動。", + "t4b0be12885f96fd3": "刪除 Shaders Mod。OptiFine 已提供光影支援。", + "tef774a71e06ea3b4": "建立一個新世界測試遊戲是否正常。若正常執行,問題可能來自原世界中的方塊。", + "t36578bca83d6e618": "建立一個新世界測試遊戲是否正常。若正常執行,可使用地圖編輯器移除該方塊,或停用提供該方塊的模組。", + "tfd186fec088dae23": "建立一個新世界並生成實體測試遊戲是否正常。若正常執行,問題可能來自原世界中的實體。", + "tc196a33781b8d496": "建立一個新世界並生成該實體測試遊戲是否正常。若正常執行,可使用地圖編輯器移除該實體,或停用提供它的模組。", + "t96c9a7cc1feae4e7": "檢查這些關鍵字對應的模組或庫;也可以匯出錯誤報告以取得更多資訊。", + "te844d9b041040315": "減少模組數量,或為舊版 Minecraft 安裝能夠擴充套件 ID 限制的修復模組。", + "t99a6fb13e2788e97": "在啟動設定中改用一般 JRE 或其他適合該實例的 Java 後再試。", + "t4e87bb6471ea2e25": "在啟動設定中改用 HotSpot Java 後再試。", + "ta5f76be10571a046": "你可以檢視錯誤報告,以了解錯誤發生的詳細過程。", + "t0803604d1f34bea5": "安裝並在啟動設定中選擇 64 位元 Java 後再試。", + "ta11e5707e9a8e208": "改用 64 位元作業系統和 64 位元 Java 後再試。", + "t73ef595851576fe0": "下載頁面操作失敗。請檢視錯誤詳情。", + "t0da20d8b9dc72593": "資源下載操作失敗。請檢視錯誤詳情。", + "t5883e5643f980726": "無法連線到 Modrinth,所以目前僅顯示了來自 CurseForge 的內容,搜尋結果可能不全。\n請稍後再試,或使用 VPN 以改善網路環境。", + "t22e87d6361c02327": "未能識別或取得該資源連結", + "t303c30f301514250": "搜尋資源", + "t3a8b232a834e2fa2": "下載量", + "t63390385cc587605": "關注量", + "tb33f2e6617ec5db8": "最新發布", + "t865854c27d879972": "相關性", + "tb067526e73e5b801": "最近更新", + "tc79e8435b942cd5f": "冒險", + "t18704a278632121e": "動態效果", + "tc991c7eef0aa00da": "含聲音", + "t829a35554fa12c2d": "自動化", + "tb33881e3833f9fc4": "生態域", + "t8f7e2ad723ebd014": "卡通風", + "tc091c98702a377f0": "彩色光照", + "ta642a31e11820a4e": "戰鬥", + "te3db1776792014be": "核心著色器", + "t584741806d8311b9": "創造模式", + "te5a6f926456d5e3a": "鬼畜", + "t6895f601b65fdc10": "幻想", + "tac40db6607b72f56": "裝飾", + "t4fa164bacd535f85": "維度", + "tde4e44264035c8d7": "資訊顯示", + "t9196f0338a8d16d7": "能源", + "t18de9f691b47fc6b": "含實體", + "tcbe3d3b779999843": "裝備與工具", + "t05aa4d62741045df": "幻想風", + "tb2acdef8f2efe1fb": "農業", + "tadcf64ba14be2a0a": "特性", + "taced55addbf033c2": "含字型", + "t969c7fc4d7a3d64c": "食物與烹飪", + "tb0b98fd928edff24": "遊戲機制", + "tc4e3f3fb84e6bd0c": "含 UI", + "tc6e0480ef9844ba9": "支援庫", + "tcc3dd1f07544494c": "含語言", + "tf92fd0c0b8c950fc": "魔法", + "t2d92a4f66c9ceec3": "中世紀", + "t61aacd674a2c7586": "生物", + "t9ea6b4816b0c7d95": "模組", + "t8e048731fcac28a7": "模組相關", + "t41735735da6b1466": "相容模組", + "t2bdc253afdc92985": "含模型", + "tc05df15bf39a4ee9": "現代風", + "tf68c25a937e33136": "多人", + "t50b3ce31646573c1": "效能最佳化", + "t0ceb2a65af8faacd": "礦物與資源", + "td2909f1647e7c891": "其他", + "t8e5915536a00b1ff": "路徑追蹤", + "tba9db5d2c572aad5": "PBR", + "tdd5f3e2d50cf0435": "效能負荷", + "tb1c27820fec23edb": "高", + "taa9e366f68d3d097": "低", + "ta567bdaa11367f26": "中", + "t6e990ca942a25713": "極低", + "t122e51b8a282ffb0": "管道與物流", + "td9f9b63f9d9f6062": "寫實風", + "t70e3887c68a89570": "紅石", + "t8a8f1a0cf7cf089a": "反射", + "tb92421822c213c2b": "解析度", + "te44de61444e0c61a": "半寫實風", + "t2388cbc6a486af9f": "伺服器", + "taa55960e4b02e668": "簡潔", + "t717cbdd0b24adc4a": "蒸汽龐克", + "te2c57c5c935df898": "倉儲", + "t9c888380daed37e0": "天然結構", + "t1bfde6b7ea27c9b8": "風格", + "t6edb77679bbe71f5": "科技", + "td333e7c430f4a611": "主題化", + "t71faaa139f3affc5": "運輸", + "t7703c8789564782c": "改良", + "te3acd17ea04e3a49": "實用", + "tab8936477328e934": "原版可用", + "t9c5a5f7582706688": "原版風", + "te2795d0547cb684e": "創造", + "t7eb04a099024f6e0": "模組世界", + "tb1f0cb13ffcaa01e": "跑酷", + "t7462fe3991258156": "解謎", + "tcbd9667c3fa1225e": "生存", + "tea56c3200c998da7": "世界元素", + "t98ceb57fd8c4192a": "探索", + "t3ed46e6cab0ac788": "大型", + "t338cc0fd2a2c4d17": "FTB", + "tdbca9dcc12759328": "由 FTB 官方發布", + "t56acdc65a6d3783f": "硬核", + "t64aec591c1c79c93": "水槽包", + "td78ea1d4d3cf84ad": "基於地圖", + "t52afc06a6fdc90bc": "小遊戲", + "t5253040db8643c85": "任務", + "tc1613bc333ed5654": "科幻", + "t1fa5b34c505b2249": "空島", + "t459045778e6d727e": "輕量", + "tf8428719215ef8b4": "原版改良", + "tdb95c71ee38000fc": "128x", + "t97d3b806d6b0cd6a": "16x", + "t4f552d2e542b6470": "256x", + "t5794dd04acf0b11a": "32x", + "t82e7e3d1ccb7561f": "48x", + "t640f86e6c1bb0514": "512x 或更高", + "tce07e3db42adfa65": "64x", + "t968443a6fff0f915": "8x 或更低", + "t67bf9dc67f0bedec": "安裝已中止。\n\n原因:\n{0}", + "t9088cfa9a1c7645f": "安裝已中止", + "t191a09e32e312bc4": "取消安裝", + "t472887ef3f07b5ec": "- {0}({1})- {2} v{3}", + "t1470f08a1fd3a31a": "此模組需要以下必需前置:\n\n{0}", + "t2b75ae1a67a38be7": "安裝模組前置確認", + "t01a97ea980217280": "安裝模組與必需前置", + "t1c1f6bbc6e42087c": "僅下載模組本體(不建議)", + "t7730fe6c7fbea65b": "繼續下載", + "tcf85b3dc76a126d5": "無法解析模組前置,將僅下載模組本體。", + "t5c028beb63de11ce": "前置解析失敗", + "t11f345d6669a5566": "- {0} {1}: {2}", + "t58be92ca3949285c": "以下必需前置無法解析:\n\n{0}", + "t0fdb26c45e398f59": "無法安裝必需前置", + "tb2fd2e2a883cd7a2": "清理快取", + "t47026cfb59de504b": "偵測到剪貼簿中包含資源連結,是否前往詳情頁?", + "t902186f9cd1df585": "偵測到資源連結", + "t40a2a5956295b9cb": "正在取得資源資訊……", + "t2717a23db971665f": "資源內容無效。", + "t8e86f9b1d54f2c51": "複製連結", + "ta77a6cca3ce275e0": "複製名稱", + "t370b1f0f2e1a34d5": "目前資源的簡介暫無譯文", + "td81097017b39083a": "正在取得 {0} 的簡介譯文……", + "tb6d4d3a957e787d1": "取得譯文失敗", + "t6710d01346f08050": "原文:{0}\n譯文:{1}", + "t3926d1bb98be8401": "下載檔案", + "td04d08f28ec4fca3": "下載模組包檔案", + "te37a7e2a87892329": "{0}下載:{1}", + "t7884990b2b345033": "下載世界檔案", + "t60a53514eb9228a2": "新增至我的最愛", + "te0f2b9e34d955211": "已將 {0} 新增到 {1} 中", + "tc900c91ac35223bb": "已將 {0} 個資源新增到 {1} 中!", + "tb108cfdfd617090c": "已將 {0} 個資源新增到 {1} 中,{2} 個資源已新增!", + "t3b076fd9eb9e7808": "新增到 {0} 資料夾", + "t655760c7ef1954fb": "已將 {0} 從 {1} 中刪除", + "tae34229f66130de3": "從 {0} 中移除", + "t9cd2f9ef5701723d": "正在查詢適合的遊戲實例……", + "t5783f26277a1be55": "輸入實例名稱", + "t75574e78f139e825": "安裝世界", + "t4f5420a2c4564f17": "實例篩選:", + "t4088955ce9133557": "模組載入器篩選:", + "t2e5739449ed67f97": "MC 百科", + "t630510f769bf79e6": "模組包下載", + "te17abc30dd9bd2b6": "目前 Minecraft 資料夾中沒有找到適合此資源檔案的實例!", + "t97872ee0fa952f24": "原始模組包", + "tce90616bf6f4553c": "準備安裝模組包", + "tb15cb14bdf7ccb3f": "{0}檔案", + "t166c6925b0986e8c": "選擇世界安裝位置 (saves 資料夾)", + "t9d3f093c4227f9b4": "所選版本:{0}{1}", + "t3ece481d115d0413": "已取消模組包安裝:{0}", + "td19448c09c827df0": "模組包安裝失敗。\n\n任務:{0}\n\n詳細資訊:\n{1}", + "t68580c651dbaed55": "翻譯簡介", + "tdca60869e7d26839": "從我的最愛中移除", + "tcf865167e879e225": "遠古版", + "t8382fe1229487ef4": "快照", + "tdd63fa768c76470f": "目前版本資訊尚未更新,可能無法立即辨識最新的 Minecraft 版本。請稍候數日後再試。", + "t3895b880ef60dc2f": "世界下載", + "tce7c62739183ea1c": "世界檔案|*.zip", + "tcea32269309fbb1b": "全版本", + "tb7d92919ff6509e6": "遠古版本", + "t5d7906f5af429022": "任意", + "tf594f171672d3bef": " 版", + "t769400c019e1e3d7": "預覽版", + "tba0d5a1fa939f53c": "僅快照版本", + "tf1e7bec171ae3b9e": "未知實例", + "te4f41303b0825883": "{0} 項前置", + "t6827fbb5676f2a42": "遊戲版本 {0}", + "t3b10470e173f82cc": "可選前置資源", + "t5a381a1174a336de": "早期測試版", + "t065d4b037ce5d3c6": "測試版", + "t93a48223a516e074": "正式版", + "tf7c5c819b9f0f09d": "必要前置資源", + "t8da1ada0abe274c9": "更新於 {0}", + "t34362a4c5ad7f814": "版本清單", + "tbb6d995724f49a72": "管理", + "tfa1e7180cf6c8ea6": "{0} ({1})", + "t3f55bb31a6bf0420": "模組 ({0})", + "t74966e20df2ea9fd": "取消選取", + "tf583ba476b0fc0bb": "下載所選", + "t7886e13b90d0c33b": "修改備註", + "tf9071ee190cc2b33": "在資源詳細資訊介面中可以點擊新增至我的最愛按鈕進行新增", + "t7569da968438822f": "還沒有我的最愛內容", + "te5d9da44d6ec2aa4": "我的最愛資料夾操作失敗。請檢視錯誤詳情。", + "tf8df64ad4b80a37d": "部分資源線上資訊取得失敗,點此檢視詳情", + "t383b9a3f9103f3b6": "批次下載資源({0})", + "t0214ead9956d0a25": "批次下載合適資源", + "t18d91d56368f7efd": "查詢資源資訊", + "t184f56fec419cdb5": "正在載入我的最愛資料夾清單", + "t381c647a1bf4039d": "刪除目前資料夾", + "t900a238d2066bf56": "匯入我的最愛", + "tfdf0b569d820ade8": "建立資料夾", + "tdc334e8452b32c8d": "重新命名資料夾名稱", + "tb81569c77abbc943": "分享目前資料夾", + "t88b71f1b3034d981": "搜尋我的最愛資料夾內容", + "t7a62ab6f8a3adde5": "搜尋結果 ({0})", + "tef35e30a69c37328": "已選擇 8 個檔案", + "t7512ca72601551d1": "分享所選", + "t8ef77368a0f4b926": "未分型別別", + "t26923e70e420257a": "批次下載功能仍舊處於測試狀態。\n使用此功能下載模組不會自動下載前置項。\n請在下載前仔細思考自己的需求,並仔細檢查自己的選擇,避免下載錯誤導致時間和網路流量的浪費。", + "tdaf806c8e5b5697f": "確定使用此功能?", + "te7d728fe70f8ebf4": "確認刪除我的最愛資料夾 {0}?\n此資料夾有 {1} 個專案\n資料夾 ID 為 {2}\n此操作不可逆!", + "tfe43bc43c294210a": "刪除確認", + "t2069143095d1bd58": "由於線上資源被刪除或網路問題等因素導致以下資源未取得成功(以資源的 ID 展示)", + "tea6b88c037011def": "複製這些 ID", + "t522e9382728b0f13": "移除這些我的最愛專案", + "t60e415c1cf639529": "部分我的最愛專案取得失敗", + "tb5f1a8c8a20d3821": "目前資料夾", + "t1b32866b36678f15": "例如 [\"8787\"]", + "t74b8382b21124f79": "輸入分享的我的最愛", + "t575c8c85b7229ae3": "新資料夾名稱", + "t29aec3eeadd2bd3c": "新資料夾", + "t72247501abd78e91": "請輸入新的我的最愛資料夾名稱", + "te2ac7dd248108eba": "你希望將分享的我的最愛專案加入到目前資料夾還是新的資料夾中?", + "tf5d96b0a35d232be": "輸入新名稱", + "t6ef70a73eeba8d63": "選擇期望的載入器", + "t96b1172d977ca388": "選擇期望的遊戲版本", + "t658b8279fe6e9071": "已刪除資料夾", + "td8260f09d4876470": "您不能刪除最後一個資料夾", + "t4de4cd268e281f93": "請稍後,正在查詢詳細版本支援中,這可能需要一段時間……", + "t36480334dc21b022": "不存在指定載入器且同版本的資源", + "tea0f92057312b72a": "分享了個寂寞啊!", + "t56500d3b0a5b2648": "已移除相關我的最愛專案", + "t9f2231fa4a7bd5a2": "所選模組不支援相同的載入器", + "tfae12c46945252ae": "已選擇 {0} 版本,下面請選擇儲存位置", + "t9a242aca5ad49539": "已選擇 {0} 個我的最愛專案", + "t24e4c22ca6ce8acf": "在目前選擇的 Minecraft 資料夾下安裝模組包", + "t7a2bd8b6cb0ed3bf": "載入器", + "teb4108182aff0289": "任意載入器", + "t86e562ec274a2795": "作為資源包載入,可以直接在原版遊戲中使用。", + "t66960a14f9c7ba67": "重設條件", + "t1ce6b1d7c95ce2ee": "排序方式", + "ta488e93d69cc1296": "來源", + "t1d0fd5f9336d9103": "標籤", + "t5f76b2bf82dd2c5d": "版本", + "t0547392f6ab5aaa0": "全部 (也可自行輸入)", + "te27f5dd1f4538825": "沒有符合條件的結果", + "t28f9799cf70cfa7d": "無搜尋結果,請嘗試搜尋英文名稱", + "t4e90152337531b53": "沒有搜尋結果", + "t668ac1fa4ed68028": "無法連線到 CurseForge,所以目前僅顯示了來自 Modrinth 的內容,搜尋結果可能不全。\n請稍後再試,或使用 VPN 以改善網路環境。", + "tcdb82e3a60be207c": "社群資源取得:{0}", + "tc76d3401f5da3852": "正在取得 資料包 清單", + "t1588d0e07d0c3d93": "正在取得模組清單", + "t0ca80f81d892be73": "正在取得 模組包 清單", + "tcdf547d1a76c4fe4": "正在取得 外掛 清單", + "tf795ef40fd5886f8": "正在取得 資源包 清單", + "t3b935782561fa2a2": "正在取得 投影原理圖 清單", + "t6f6d6cd9226ac771": "正在取得 光影包 清單", + "tb1bfcf7fdf990edb": "正在取得 未知 清單", + "td4a100e5c8124658": "正在取得 世界 清單", + "t3ae4e3634da3e95a": "搜尋 資料包", + "t1b3ec9656da62b84": "搜尋模組", + "t20ee7b798773bd60": "搜尋 模組包", + "t054a05050e0e790b": "搜尋 外掛", + "t8ad10013cd735fdd": "搜尋 資源包", + "t663ee97585643974": "搜尋 投影原理圖", + "t41a2e0cee213dc9a": "搜尋 光影包", + "tbabb50e5eb48f55d": "搜尋 未知", + "t687dc571759336c9": "搜尋 世界", + "t3e1f70c05113ed01": "快速下載最新版本", + "ta21786c18070def1": "選擇要下載到的 Minecraft 實例", + "t6b4104acb4da734e": "選擇一個實例…", + "tb2c12d1210804fbf": "選擇一個資料夾…", + "tcd4113a3aa659835": "下載到目前選取實例", + "t05749348132920b6": "選擇下載方式", + "t425a5f4ebd7fb175": "已開始下載:{0}", + "t377d5938e9e7dc29": "正在取得資源版本資訊,請稍候……", + "t6ce55079915b8512": "未找到適用於該實例的版本", + "t0cab9ab949df01cb": "沒有與該資源相容的 Minecraft 實例", + "t27be0d144fa9901d": "未找到可下載的檔案", + "tff9c0846f754f0c5": "目前未選取任何 Minecraft 實例", + "t4caa0d59924a122e": "請選擇儲存位置", + "t10f8430565994663": "資料包", + "t46d9b2a668211df4": "模組包", + "t748ab1f7fede7538": "僅 {0}", + "te806fbbe8ec6e82d": "外掛", + "t6518cf1fcb303a64": "資源包", + "tec9e3045aaf89c11": "投影原理圖", + "te50c88a4cc32f5f3": "光影包", + "t33650a369521ec29": "世界", + "t79ae243e67109584": "安裝版本清單操作失敗。請檢視錯誤詳情。", + "t6a56f18359796e28": "點擊 Minecraft 項即可返回遊戲主版本選擇畫面!", + "t14d1e349b14010a9": "取消下載", + "ted3f0e431ff837cc": "你尚未開啟實例隔離,多個 Minecraft 實例會共用同一個模組資料夾。\r因此,遊戲可能會因為讀取到與目前實例不符的模組而崩潰。\r推薦先在 設定 → 啟動選項 → 預設實例隔離 中開啟實例隔離!", + "ta7f814bc0ea3f1a5": "實例隔離提示", + "t541961415c3d4b09": "開始下載", + "t37963f28d576ea3e": "僅與特定版本的 Forge 相容", + "t4b8d4db45dfbdb2e": "與 LiteLoader 不相容", + "t54e8c0f85b4c7218": "與 {0} 不相容", + "tdb96d71d80320b2f": "與 OptiFine 不相容", + "t9ddc992b0f648bd2": "與舊版本 Fabric 不相容,請手動下載 OptiFabric Origins", + "t054797aa2e86fb1e": "需要安裝 Fabric", + "t60f584f0e0fc3169": "需要安裝 LegacyFabric", + "t0311603a56856290": "需要安裝 OptiFine", + "t69205975147d8c24": "需要安裝 OptiFine 與 Fabric", + "t7ba62a14c8f6e30e": "可以新增", + "t5e5cbbb485753cc5": "取得失敗:{0}", + "t2555423b0683bbf7": "取得版本清單失敗:{0}", + "tc23ecce4fb5c37d8": "取得中……", + "t03ddcecd6af05e62": "載入中……", + "t82cde44456802ea0": "沒有可用版本", + "t0d16214d515b612b": "無可用實例", + "t51ffff3f8b245993": "未知錯誤,狀態為 Unloaded", + "tabc3889ae4cc4596": "如果不安裝 Fabric API,大多數模組都會無法使用!", + "t66bca3a05acb25a6": "如果不安裝 Legacy Fabric API,大多數模組都會無法使用!", + "t2fd8f9daef98aae9": "安裝結束後,請在模組下載中搜尋 LegacyOptiFabric 並下載,否則 OptiFine 會無法使用!", + "tab802ab0206f6691": "OptiFine 與一部分模組的相容性不佳,請謹慎安裝。", + "t217af0b4f2f3009c": "必須安裝 OptiFabric 才能正常使用 OptiFine!", + "t4d4441632ec36afa": "安裝結束後,請在模組下載中搜尋 OptiFabric Origins 並下載,否則 OptiFine 會無法使用!", + "tb6ed713343309e14": "社群資源", + "t63c87fb56f3d4e21": "未知的下載子畫面種類:{0}", + "t796d20e915884195": "我的最愛", + "tf9354acb640dd0c5": "正在重新整理……", + "t4ef515abfdb8690d": "安裝套件", + "t0e0a74013968325e": "Cleanroom 官方源", + "ta186ce516379f40d": "Fabric 官方源", + "t9298cfccd8c84372": "Forge 官方源", + "t5cead49c88eb67ad": "LegacyFabric 官方源", + "t52b7439518934766": "LiteLoader 官方源", + "ta2970acc2d338793": "Mojang 官方源", + "t6866d5c1fab2b663": "NeoForge 官方源", + "t8c9404fa505622fe": "OptiFine 官方源", + "t24221d7fefdf2993": "UVMC 特供下載", + "td2d37ab6563bc332": "全部版本 ({0})", + "tc88176e908f43cac": "Cleanroom 是針對 1.12.2 基於 Forge 二次開發的模組載入器,理論上與 99% 的 Forge 模組相容。", + "t7c48e0da6dde3bdb": "Cleanroom 簡介", + "td58d947415597357": "正在取得 Cleanroom 清單", + "ta5047f32348bfbaf": "下載伺服器端", + "t8165ca7a7f7795c4": "Fabric Loader 是新版 Minecraft 下的輕量化模組載入器,你需要先安裝它才能安裝各種 Fabric 模組。\n本頁面提供 Fabric 安裝器下載,在下載後你需要手動開啟安裝器進行安裝。", + "t5006b8cf5ec5e726": "Fabric 簡介", + "t22cd2f30cf35026d": "正在取得 Fabric 清單", + "t60277e6110afe433": "Forge 是一個模組載入器,你需要先安裝 Forge 才能安裝各種 Forge 模組。", + "t2661009bd83549a0": "Forge 簡介", + "t1ed221ce1444cda8": "正在取得 Forge 清單", + "ta429ef57d8403fb3": "型別:{0}", + "t38a846ed736a3b9f": "最新測試版", + "t569af1a47dbdf053": "最新", + "tb556e7880bb7dc26": "最新穩定版", + "t50008bba144e8878": "Fabric 安裝器 (*.jar)|*.jar", + "tb1d7c873a165a7a4": "LabyMod 安裝器 (*.jar)|*.jar", + "t96eb0447b4508d05": "LegacyFabric 安裝器 (*.jar)|*.jar", + "tc6d0cf1f29b04fe0": "LabyMod 是 Minecraft 下的最佳化用戶端。\n本頁面提供 LabyMod 安裝器下載,在下載後你需要手動開啟安裝器進行安裝。", + "t966deb695edfc1f0": "LabyMod 簡介", + "t0c4958a54587ac61": "正在取得 LabyMod 清單", + "t2449ee325082121e": "最新預覽版,釋出於 {0}", + "ta5bd51b5a48b406c": "最新正式版,釋出於 {0}", + "tc2a497830ef74215": "最新版本", + "t409037db81f013ae": "Legacy Fabric 是 Fabric 的舊版本移植,你需要先安裝它才能安裝各種 Legacy Fabric 模組。\n本頁面提供 Legacy Fabric 安裝器下載,在下載後你需要手動開啟安裝器進行安裝。", + "t9be9080b5b227074": "Legacy Fabric 簡介", + "td4a617e74b328469": "正在取得 Legacy Fabric 清單", + "t9e249718b33002e0": "與 Forge 類似,LiteLoader 可以用於載入舊版本 Minecraft 中的 LiteLoader 模組。", + "te381ec18148bcab7": "LiteLoader 簡介", + "t0ac4c924baceaa39": "正在取得 LiteLoader 清單", + "t279ca5f87c082275": "正在取得版本清單", + "tdf2763b431451fbb": "NeoForge 是 Minecraft 1.20.1+ 的模組載入器,你需要先安裝它才能安裝各種 NeoForge 模組,它也與一些 Forge 模組相容。\n本頁面提供 NeoForge 安裝器下載,在下載後你需要手動開啟安裝器進行安裝。", + "tfe40d869db01db47": "NeoForge 簡介", + "tb15f809730dbada9": "正在取得 NeoForge 清單", + "t2a387b9dca2585fc": "開啟官網", + "t695c01fd8329830e": "與 Forge {0} 相容", + "t7854340185c3ac0b": "與 Forge 不相容", + "tdf694f1474ba2f41": "OptiFine 允許你安裝光影、使用高畫質材質、提高遊戲效能,但與模組的相容性不佳。", + "te8d57a8f9448791c": "OptiFine 簡介", + "t1c0f7351720755f6": "正在取得 OptiFine 清單", + "t072a06e256c342c1": "快照版本", + "t0e49ddd2102099a8": "發布於 {0}", + "t1232eb44296bb8cf": "另存新檔", + "tb55ff3413e4553a0": "儲存安裝器", + "t25ca0efe303f063a": "版本清單({0})", + "t5dcfd2328497ed68": "檢視全部版本", + "t0b86991e76ab0e6a": "愚人節版", + "tf8ba3e6e5825e399": "預覽版", + "t7c2d69d150f060b9": "安裝器", + "td6e22c8c01320523": "推薦版", + "t320e85714d077705": "穩定版", + "te80fbe0786bb33fd": "即將從該網址下載檔案:\n{0}", + "t4a07be888ae672ef": "EventData 必須為以 http:// 或 https:// 開頭的網址。\nPCL CE 不支援其他下載協議。", + "t19984f88d01fd0ad": "事件執行失敗({0}, {1})", + "t04fd5e3ee85a1b68": "未找到 EventData 指向的本機檔案:{0}", + "t3808635bcebe52f7": "EventType {0} 需要至少 2 個以 | 分割的參數,例如 {1}", + "tb37593f19b3c3f45": "事件執行失敗", + "t2fb0c55b1ab8fb62": "未知的事件型別:{0}\n請檢查事件型別填寫是否正確,或 PCL CE 是否為最新版本。", + "t45df8d0e74c2f632": "EventData 必須為一個網址。\n如果想要啟動程式,請將 EventType 改為 OpenFile。", + "ta40eb286240a74f2": "請先選擇一個 Minecraft 實例!", + "t88af33c51d5d4234": "正在啟動 {0}……", + "tfcc03d11adda3586": "正在開啟中,請稍候:{0}", + "te2647f412a632008": "目前頁面不支援重新整理操作!", + "t9c012d80380b46b7": "已重新整理!", + "t1919f8c3fe196e7d": "即將執行:{0}\n請在確認沒有安全隱患後再繼續。", + "tf1537e9083397197": "繼續且今後不再要求確認", + "t2fa286387af138e8": "自訂首頁不能寫入高危設定:{0}", + "t5f6a32366a6d46a7": "執行確認", + "t10a26148d2d86669": "[{0}] 是無法解析的 EventType,已從首頁中移除。", + "t360dfaf1b8683cbb": "[{0}] 是不受支援的原版 PCL EventType,已從首頁中移除。", + "t06b4fe9252c24534": "已寫入設定:{0} → {1}", + "t4465e9af83dbb719": "已寫入變數:{0} → {1}", + "t95a9fa6a922b388a": "實例操作失敗。請檢視錯誤詳情。", + "t37090f45651676fc": "修改", + "tf061707c91e7035e": "開始修改", + "t66b6eb4f15dd7f8f": "開始重設", + "t9319bdabec708223": "實例安裝操作失敗。請檢視錯誤詳情。", + "t689cb884253c10b1": "無附加安裝", + "t719c6d4065a0710e": "你正在重設目前實例。\nPCL CE 將會重新連線下載該實例所需的檔案,並重新安裝模組載入器(如有)。\n此操作不會使你的存檔、模組、資源包等資訊遺失。", + "tb3e7e5d19f61b55d": "重設此實例", + "t3930b7eb554270a6": "實例匯出操作失敗。請檢視錯誤詳情。", + "t85fc945df2667ff0": "匯出模組包:", + "t83b1bafe63b05f96": "受 Modrinth 模組包規範限制,匯出的模組包中不會包含 OptiFine。", + "tc7bf96f15b044837": "Modrinth 模組包檔案(*.mrpack)|*.mrpack", + "tf682510f4ca61067": "連線取得檔案資訊失敗,是否繼續匯出?\n\n若繼續,所有檔案都將被直接打包。\n由於二次分發可能違反使用協議,請盡量不要公開發布匯出的模組包!", + "t6926458ee8b8880f": "檔案資訊取得失敗", + "tcf9ee68b64025d1e": "連線取得部分檔案資訊失敗,是否繼續匯出?\n\n若繼續,無法取得資訊的檔案將被直接打包。\n由於二次分發可能違反使用協議,請盡量不要公開發布匯出的模組包!", + "t23631b28bef020ab": "部分檔案資訊取得失敗", + "t2ebae8f836e0c2cd": "從設定檔中讀取", + "t1ff4904e89c49279": "匯出內容清單", + "t1a385e9a46bc81af": "模組包名稱", + "tb0cf74135c456d6f": "無法使用設定檔中指定的匯出路徑", + "t035e2c571df8f0da": "無法使用設定檔中指定的匯出路徑。\n\n指定的路徑:{0}\n\n詳細資訊:\n{1}", + "te7c1412d61ed9580": "模組包版本", + "tbaacb1031c0fd9f2": "指定的路徑:{0}", + "t5fc7e60b3e0ea96b": "讀取設定檔失敗:{0}", + "t700c6b7f34febcb6": "已讀取設定檔:{0}", + "tc88336d3f0564e85": "已儲存設定檔:{0}", + "ta5ddf79f9db4b7c4": "選擇設定檔", + "t41908b2e24facd70": "選擇檔案位置", + "tb2e236f1a684652f": "選擇匯出位置", + "t88da633ca77352d5": "開始匯出", + "t2d07a7c29d147b04": "複製匯出內容", + "tae2d9e324c3db844": "建立壓縮檔", + "t4f92d6f5fbf6758c": "下載 PCL CE 正式版", + "td6871010d1aa649a": "連線取得檔案資訊", + "tb7a64cf1f43d6b29": "壓縮檔案(*.zip)|*.zip", + "t16919be1d226dfae": "打包資源檔案,以避免在匯入時下載", + "t170ec2eeb60f331b": "將模組、資源包、光影包的檔案直接放入模組包中,這樣在匯入時就無需連線下載它們。\n建議僅在無法穩定連線 CurseForge 或 Modrinth 時才考慮勾選。", + "t28241821d44d72ce": "建議僅在無法穩定連線 CurseForge 或 Modrinth 時才打包資源檔案。\n請不要公開發布含資源檔案的模組包,這會違反部分模組的使用協議!", + "t63149ec2218a02b2": "設定檔中含有未在此處列出的選項,例如精準控制匯出的檔案、設定模組包存放位置等。\n請先選擇「儲存設定檔」,然後編輯儲存的設定檔。", + "t6e584e3d5ce64aa0": "儲存設定檔", + "tdf31c1965b31314c": "讀取設定檔", + "t1af1a80b7137a17a": "Modrinth 上傳模式", + "t8f09ff0390101a63": "如果你想要打包上傳到 Modrinth,勾選此項會生成完全符合 Modrinth 要求的模組包檔案。\n由於 Modrinth 要求,只能從 CurseForge 下載的資源將無法連線下載,會被直接放入模組包中。\n此外,勾選後也不能在模組包中包含 PCL CE 啟動器檔案。", + "t91a61fdde856cd9e": "進階選項", + "t8f1f82e93114c262": "模組包匯出設定檔(*.txt)|*.txt", + "t831e1baa52867edc": "未找到設定檔中指定的單個檔案:{0}", + "t2c6bf3089fff31d2": "未找到設定檔中指定的資料夾:{0}", + "t7c93a93bf68a0811": "設定檔內容無效或為空!", + "t4c809b9508121ac6": " (光影設定檔)", + "tfa40202b01261c38": "是否將模組、資源包、光影包的檔案直接放入模組包中,這樣在匯入時就無需連線下載它們。", + "te9f148bf03cae838": "建議僅在無法穩定連線 CurseForge 或 Modrinth 時才考慮啟用。", + "t28b7bcd9121af308": "二次分發可能違反使用協議,請盡量不要公開發布包含資源檔案的模組包!", + "t8da92f5f8489c2d2": "排除的檔案", + "tc945d818be2e85fa": "如果想將額外的檔案自動放到壓縮檔根目錄中,可以將它們的路徑寫在下方。", + "t16531641b2020930": "必須是完整路徑。每行中,若以 \\ 結尾則代表是資料夾,不以 \\ 結尾則代表是檔案。", + "t3feb43b5c222849b": "是否打包正式版 PCL CE,以便沒有啟動器的玩家安裝模組包。", + "taa2ffe67b56dbe18": "是否打包 PCL CE 個性化內容,例如功能隱藏設定、首頁、背景音樂和圖片等。", + "t8db253436c6f4eee": "修改下方的規則以控制需要匯出的內容。", + "t5ca8aa8fb104fa6f": "如果你想要打包上傳到 Modrinth,啟用此項會生成完全符合 Modrinth 要求的模組包檔案。", + "t9c51701c8ab5ac4a": "由於 Modrinth 要求,只能從 CurseForge 下載的資源將無法連線下載,會被直接放入模組包中。", + "t7251c23837a95161": "此選項與 IncludeLauncher、IncludeLauncherCustom、DontCheckHostedAssets 衝突。", + "tbc11a4062a212be9": "匯出的檔案的存放位置。", + "t3918adec400df739": "若設定了此項,在匯出時會直接將檔案放到此路徑,不會對話方塊要求選擇。", + "t6e0dfd93630167df": "若 IncludeLauncher 為 True,應以 .zip 結尾;若為 False,應以 .mrpack 結尾。", + "t592a83024be6413e": "以 ! 開頭以反向選取。可以使用 *、?、[] 萬用字元。靠後的行覆蓋靠前的。", + "tcd81b08fddef4eaa": "已停用的模組", + "t0006a8748e35145b": "EMI 個人資訊", + "te1372fc307d55387": "物品我的最愛、預設配方、合成歷史紀錄等", + "te9faa1792d4db0b2": "遊戲本體", + "t8d9080be0c9c8370": "遊戲本體個人資訊", + "tfe79063076b7f17f": "指令歷史、已儲存的快捷欄", + "t268e82d2e6e7bedb": "遊戲本體設定", + "t6f543cba87687310": "鍵位、音量、顯示設定等", + "tc6550bf3b055801b": "模組包重要資料", + "te5075ca4e6d95834": "指令碼檔案、內建資源包、資料包等", + "t1b71480d61233a77": "JEI 個人資訊", + "t60d4d433a0601db5": "物品我的最愛等", + "t5dbc6f1c9b481011": "PCL CE 啟動器程式", + "td40d2dd6575487ce": "打包 PCL CE,以便沒有啟動器的玩家安裝模組包", + "tecdfc6c1134830a2": "PCL CE 個性化內容", + "tf6fb8bcc23dd80f0": "功能隱藏設定、首頁、背景音樂和圖片等", + "t862c9a50d5287e87": "已繪製的地圖", + "t6ace96f020ffb38b": "地圖類模組為現有的存檔、伺服器紀錄的地圖、路標點等", + "tdb021393d3c2b58b": "模組設定", + "t3b454c23efd1d7e4": "OptiFine 設定", + "tfaff21b51908ce9d": "帕秋莉手冊個人資訊", + "tc56dc67f745cfa23": "教學書的已讀紀錄、書籤、閱讀歷史紀錄等", + "t2173eb47ca72149a": "錄影重播", + "t0624a09a0dfb71e2": "Replay 模組的錄影檔案", + "t29cb489372297726": "紋理包/材質包", + "tc7a3c9dbb220e5d6": "單人遊戲存檔", + "tfb76b9676a7fe53c": "世界/地圖", + "tc95dc99afe57b285": "截圖", + "t0ef42470d670efdd": "其他資料夾", + "t8c9933ce3a5e1dc4": "未被上方選項覆蓋的資料夾", + "tf4af1eaef3074434": "多人遊戲伺服器清單", + "tf1a57238be2ac752": "匯出的結構", + "t77c622fa54ad7292": "schematics 資料夾", + "t76420433f22d1c80": "匯出", + "t9be6709eb0019ebe": "是否要初始化該實例的實例獨立設定?該操作不可復原。", + "t141e351a2eef1e08": "初始化確認", + "tfea405f9b01d1416": "概覽", + "t83acdb2d4d760f6d": "重新整理中……", + "t9b4eaaa18caee368": "遊戲資源", + "tc73a6774d91ca0f6": "存檔", + "tdf3d58c7d84b85f2": "設定", + "tca4781cceaf664e0": "愚人節實例", + "t9b1c8ca621c3a255": "從實例清單中隱藏", + "t4a8d900c57844210": "該實例預設將不會在實例清單中顯示。\n在實例清單頁面按下 F11,即可檢視所有隱藏的實例。", + "t69a2009a9deb78bd": "不常用實例", + "t480ef5f17abdd1b1": "可安裝模組的實例", + "tc1e6bfac5a22e765": "一般實例", + "t515559957fd3acbd": "分類", + "ta88017157115d638": "你確認要刪除實例 {0} 嗎?", + "te358c6fc0652182b": "你確認要刪除實例 {0} 嗎?\n由於該實例開啟了實例隔離,刪除時該實例對應的存檔、資源包、模組等檔案也將被一併刪除!", + "tc6096dd6e3b57495": "你確認要永久刪除實例 {0} 嗎?\n由於該實例開啟了實例隔離,刪除時該實例對應的存檔、資源包、模組等檔案也將被一併刪除!", + "t5489860978c76803": "你確認要永久刪除實例 {0} 嗎?", + "td4fd4ae5ffd5b4e9": "實例刪除確認", + "t86aa9269ba9412a1": "實例 {0} 已永久刪除!", + "t27321bb6ca447d84": "實例 {0} 已刪除到資源回收筒!", + "t8779f71adfbd7287": "預設描述", + "tb9ac1c43040b82cb": "修改實例的描述文字,留空則使用 PCL CE 的預設描述。", + "t896f6359a87045fa": "更改描述", + "tc9d9331f6df13c83": "修改實例描述", + "td8e665c668dd99f6": "實例概覽操作失敗。請檢視錯誤詳情。", + "t2e8a4ae9c22dca06": "加入我的最愛", + "tfc3389551193a511": "確認要從實例清單中隱藏該實例嗎?隱藏該實例後,它將不再出現於 PCL CE 顯示的實例清單中。\n此後,在實例清單頁面按下 F11 才可以檢視被隱藏的實例。", + "t617a197cedd648ac": "隱藏實例提示", + "t06c509fdf8d6e78b": "重新命名實例", + "t5a30c4156f939e37": "重新命名成功!", + "t8709e4857f104e24": "你確認要對 {0} 的核心檔案進行修補嗎?\n修補遊戲核心可能導致遊戲崩潰等問題。\n在修補核心後,檔案校驗會自動關閉。", + "t54f273b0e125077d": "修補提示", + "t8cd8f2390e11dce3": "正在修補遊戲核心,這可能需要一段時間", + "tbf98514ebdf17400": "壓縮檔案(*.jar;*.zip)|*.jar;*.zip", + "t48574874b7e4bcab": "選擇用於修補核心的檔案", + "te69b44290d2ac527": "修補遊戲核心成功", + "t38c043e08502e710": "個人化", + "t28a39ead5f71b8b2": "修改實例名", + "tc0252af360e72700": "你確認要重設實例 {0} 嗎?\nPCL CE 將會嘗試重新從網際網路取得此實例的資源檔案資訊,並重新執行自動安裝。", + "t8b3223231d320fb3": "實例重設確認", + "te3bad172c4ab6ffc": "該實例暫不支援重設!", + "t98f99fa1334c609f": "無法重設:目前啟動器已不再支援 Quilt 載入器。", + "tc08f3233cf499266": "匯出啟動指令碼失敗", + "t03fefc9344418167": "正在匯出啟動指令碼……", + "t68767ef57a8c1509": "正在匯出啟動指令碼……(注意,使用指令碼啟動可能會導致登入失效!)", + "t6c182e20eb78d7d2": "批次檔(*.bat)|*.bat", + "t8bff7573066345c0": "選擇指令碼儲存位置", + "t0c3fd1fbf68df17d": "請在目前啟動工作結束後再試!", + "t737dc0aa07b51649": "實例資料夾", + "tc87d9c833d9720b2": "模組資料夾", + "tf6e37bd65d12b035": "存檔資料夾", + "t6ab335864461b295": "捷徑", + "tdd7f9fcd5cd340ab": "從我的最愛中移除", + "tb094339479ac81e9": "鐵砧", + "ta2797bfb0c0400f0": "鵝卵石", + "t16a0dbdcfa2b6779": "指令方塊", + "t4986e50332fe9483": "土徑", + "te9f5b71a472d27bb": "雞蛋", + "t95dec4757941cf7c": "布料(Fabric)", + "t7c63dcc48d04cbc3": "黃金方塊", + "tb6dafde3be054a37": "草地", + "t6f5537d8652ec493": "狐狸(NeoForge)", + "t9e7529c557f180cb": "方格(Quilt)", + "t770fdcdd6d6f3e7d": "紅石方塊", + "t229595ed966c69bf": "紅石燈(關)", + "t69b8251b1d7fd98a": "紅石燈(開)", + "t103f091554dcf69f": "常用圖片檔案(*.png;*.jpg;*.gif)|*.png;*.jpg;*.gif", + "t9ad12a1ab4f6b527": "選擇圖片", + "t0d720eeea26466dd": "圖示", + "ta8b6c39dcabfc14b": "已安裝", + "t5da8476895d8c353": "已啟動 {0} 次", + "tc30419ac9d6d256d": "從未啟動", + "t713dffe3e706a2f8": "啟動次數", + "t7fa9f74dc70a0ee7": "取得實例資訊", + "t4c79277fb16af473": "取得可能的模組包資訊", + "t85fedcb111e93f53": "正在取得資訊", + "t92b742d80072559b": "實例資訊", + "t0e1c46c0a4d39fd6": "刪除實例", + "t633eb5f8529a10f6": "匯出啟動指令碼", + "t425d85157b443ac9": "修補核心", + "tc0540c3dea709da0": "重新從網際網路取得此實例的安裝資訊,並執行自動安裝。\n你的存檔、模組、資源包等資訊不會遺失。\n若遊戲因 Libraries 等資源缺失無法啟動,請嘗試此項。", + "t74894f76ad198901": "補全檔案", + "ta5769ef36ec8dde4": "校驗實例依賴檔案是否完整,並重新下載 Assets 索引與缺失、校驗失敗的檔案。\n若遊戲缺失音效,請嘗試此項。", + "t853aab6ecaacb35b": "測試遊戲", + "t58dbf974977f7f52": "進階管理", + "t0bfccf12bc46e29f": "{0}已取消!", + "t431ec84a1fdd4a35": "請先關閉 [實例設定 → 設定 → 高階啟動選項 → 關閉檔案校驗],然後再嘗試補全檔案!", + "t662704167945cee0": "{0}失敗。\n\n詳細資訊:\n{1}", + "t948ef9f66c2e8b99": "正在處理中,請稍候!", + "t4f7ad22053699ca0": "{0}成功!", + "td58f9cbfb01d2092": "檔案補全", + "t6e280f54e3f9a1b5": "返回上級", + "t47721ffdd1cb67be": "檢查模組", + "t2066c72f7d8c7873": "快速檢查模組的版本要求、重複、前置缺失等問題。\n結果僅供參考,由於部分模組標註的資訊有誤,可能並不準確。", + "tdfab0dd8cfeb41a6": "下載新資料包", + "t4520036789cd1cf1": "你可以從已經下載好的檔案安裝資料包。\n資料包需要放置在存檔的 datapacks 資料夾中才能生效。", + "t49bf35e5b4668026": "尚未安裝資料包", + "t892a649bde9508bc": "匯出詳細的資料包資訊", + "t3dd3f0fe7d069599": "正在載入資料包清單", + "t5b99268f11dbb51d": "由於檔案被佔用,刪除失敗,請嘗試關閉正在執行的遊戲後再試!", + "t9c227fa3c9000ad0": "已徹底刪除 {0} 個專案!", + "tb1651ccfeba1b5b9": "已徹底刪除 {0}!", + "t5369f5ce60c4f22f": "已將 {0} 個專案刪除到資源回收筒!", + "t81f82ad6b08f36b1": "已將 {0} 刪除到資源回收筒!", + "t7df5c456c765e4c3": "停用", + "tfa7b98e0f04439e3": "下載新資源", + "tdb5380c5ca00d8a4": "存在檔案衝突", + "t0892ef4262528ab7": "目前同時存在啟用和停用的兩個模組檔案:\n - {0}\n - {1}\n\n注意,這兩個檔案的內容並不相同。\n在手動刪除或重新命名其中一個檔案後,才能繼續操作。", + "tb3a79dfdcd946011": "由於檔案被佔用,模組的狀態切換失敗,請嘗試關閉正在執行的遊戲後再試!", + "t89a377eefd04c4bf": "你可以從已經下載好的檔案安裝資源。\n如果你已經安裝了資源,可能是實例隔離設定有誤,請在設定中調整實例隔離選項。", + "t0b8326f6ae1fdb38": "你可以下載新的資源,也可以從已經下載好的檔案安裝資源。\n如果你已經安裝了資源,可能是實例隔離設定有誤,請在設定中調整實例隔離選項。", + "tfce3b7df9ab2aba1": "尚未安裝資源", + "t4a574e1c3c709066": "你可以從已經下載好的檔案安裝資源", + "t43155cb048105719": "該資料夾為空", + "tf4f0ead1116b5b62": "啟用", + "t6c67533a8afe1f01": "資源管理操作失敗。請檢視錯誤詳情。", + "t333de441c99bc22b": "文字檔案(*.txt)|*.txt|CSV 檔案(*.csv)|*.csv", + "tbb203b17ebdf7f60": "CSV 格式", + "tdda50484e377dac9": "TXT 格式:僅匯出目前的資源檔案名資訊,通常足夠他人取得已安裝的資源資訊\nCSV 格式:匯出詳細的資源資訊,包括其檔名、專案 ID、檔案內版本資訊等詳細資訊", + "t7a3f8ec103a45dd5": "選擇匯出模式", + "td1c9f8e32f6727d9": "TXT 格式", + "ta083aef147108081": "匯出資訊", + "t8a8e0b1a7e4b315c": "匯出詳細的資源的版本資訊", + "t7bc03302e1e4f67c": "從檔案安裝", + "t42ca6e8863ed93d7": "正在載入資源清單", + "te56afdba8c75968f": "轉到下載畫面", + "t29fc017d002a058f": "你需要先安裝 Forge、Fabric 等模組載入器才能使用模組,請在下載頁面安裝這些實例。\n如果你已經安裝過了模組載入器,那麼你很可能選擇了錯誤的實例,請點擊實例選擇按鈕切換實例。", + "tf5a76549ed49cfaa": "實例選擇", + "t1df33817426cf8ff": "該實例不可使用模組", + "td944035e48cdd9db": "下載投影模組", + "t71c9d0bdaa75e6c2": "你可能需要先安裝投影模組,如果已經安裝過了投影模組請先啟動一次遊戲。\n也可能是你選擇錯了實例,請點擊實例選擇按鈕切換實例。", + "te507785c9e87e955": "該實例不可使用投影原理圖", + "t858de76f2de899f6": "搜尋資源:名稱 / 描述 / 標籤", + "t3a5040b68abf75f9": "全選", + "t56d6ec3bf4515e41": "已選擇 {0} 個檔案", + "tf9294e9ea241b1b5": "加入時間", + "ta6e48adc26d686d7": "檔案名稱", + "tb9bf6916437a77eb": "檔案大小", + "t41cec19b0b5be53d": "資源名稱", + "tfb3f54d79ebf0bb1": "標籤數量", + "t2c485168df9ec9fe": "排序:{0}", + "t64b0cd8342af4b26": "全部 ({0})", + "t2f8f1620a524b9f3": "停用 ({0})", + "t609cf2fdf6ffcc61": "重複", + "ta0c1c6602c8e66e4": "重複 ({0})", + "tdfb802238b38fbd4": "已啟用", + "tda8e5543f13369ca": "啟用 ({0})", + "t0bc1fb72ae1be5c5": "錯誤", + "t9c25d3997bc2e41f": "錯誤 ({0})", + "t88d72ece7cf76737": "搜尋結果", + "t08d43bdc4dcb6253": "可更新", + "tb3d89638c58dc897": "可更新 ({0})", + "t0d5abd9fe44513fc": "是否要將這些檔案作為{0}安裝到 {1}?", + "t636ed7bef392fff2": "{0}安裝確認", + "t4b4e35bb50052731": "是否要將這些檔案作為模組安裝到 {0}?", + "tcb6ca2481331d3ca": "模組安裝確認", + "te859e6d66a16e151": "已存在同名檔案:{0},是否要覆蓋?", + "tb23fb9949a582fc3": "檔案覆蓋確認", + "tc8fe5e44bf2bf09a": "請先將檔案從資源回收筒還原,再嘗試安裝!", + "t9f3672fd59db1a0c": "若要安裝模組,請先選擇一個可以安裝模組的實例!", + "t97522f95ee697162": "已安裝 {0} 個{1}!", + "t2f9e65b4e18ca8a8": "已安裝 {0}!", + "t7f9db0f6fb9b9023": "不支援的檔案格式:{0},{1}支援的格式:{2}", + "t7c9062e87916df7f": "模組檔案(*.jar;*.litemod;*.disabled;*.old)|*.jar;*.litemod;*.disabled;*.old", + "t299ba3446d92abbf": "選擇要安裝的模組", + "t0190e4f428de4d1e": "資源包檔案(*.zip)|*.zip", + "t528303ecc4272d74": "選擇要安裝的資源包", + "t816123fb64a91787": "投影原理圖檔案(*.litematic;*.nbt;*.schematic;*.schem)|*.litematic;*.nbt;*.schematic;*.schem", + "te44bfec7f618a520": "選擇要安裝的投影原理圖", + "t8e5c11d41b754d1e": "光影包檔案(*.zip)|*.zip", + "ta4a892908fbb9c3f": "選擇要安裝的光影包", + "t597848b318c74c4e": " [錯誤]", + "t7c7802d8adaed72e": "資料夾", + "tf39b33bb4aadc5e2": "存在錯誤,無法取得資訊", + "tdfa85a041ea1809b": "開啟更新紀錄出現錯誤", + "t3055a035f0eb7a8b": "更新", + "tfcacadc617fb5db9": "目前版本:{0} ({1})\n最新版本:{2} ({3})", + "tab1696e556f288de": "是否要更新 {0}?", + "t2e3963b7e1af3f3b": "更新確認", + "t676481107ed10a2e": "點擊以更新,右鍵檢視更新紀錄。", + "tbd50eff4af4697ff": "查看更新記錄", + "t3f7d59cf3b763754": "作者:{0}", + "ta5949e8d1389abbb": "包含 {0} 個檔案", + "ta79cdb56cddbd02d": "包含 1 個檔案", + "tedd4c541cf326c7f": "依賴於:", + "t4ce9023ebcffd766": "{0},版本:{1}", + "tb6ce5ff81c9e5838": "詳細的錯誤資訊:", + "t8413b6cec2bea3f4": "空資料夾", + "t9858574191aad1b4": "無法讀取此資源的資訊。", + "t988119f2f60eff68": "無法讀取此資源的資訊。\n\n詳細的錯誤資訊:\n{0}", + "t855e1152acd54c1e": "資源讀取失敗", + "te51b804de1fa1601": "檔案:{0}({1})", + "td81a0bc3d2b23320": "資料夾不存在", + "t5f179fa65fa3c5c4": "正在載入詳情....", + "tb9ae22fecbf1f2e9": "百科搜尋", + "t32da8316199b8a0c": "模組 ID:{0}", + "td1ef10bd63ff9022": "路徑:{0}", + "ta7286ba3d06d5271": "版本:{0}", + "t4bcfaa4e7ca946ef": "建立時間:", + "tcdb39b0543017609": "資料版本:", + "t7eead9ab3cb8b494": "詳細資訊:", + "td9a16e0f46daed4d": "包圍盒尺寸:", + "tf7c4cd5114c2e9f6": "包圍盒大小:", + "td1898e258d5d922f": "檔案型別:", + "tccc84b3d9a140c3d": "MCEdit/WorldEdit Schematic", + "t1dbb9ebc3b7143a7": "原版結構", + "tc0b0a7f5107813a7": "Sponge Schematic", + "tc64efddf10849cd9": "遊戲版本:", + "tb4575c3ecd059aa4": "修改時間:", + "t3c81f1a5533e9cd1": "原始名稱:", + "t46bfb359ba439e26": "區域數量:", + "t888d070cf293a0aa": "大小:", + "t27083401efb100da": "Sponge 版本:", + "t68a663d72674a1ec": "總方塊數:", + "tc7a0ccee7fde8993": "總體積:", + "t1299a463693b6308": "原理圖版本:", + "t00a50d0f21c92f67": "資源更新已中止!", + "tf929e6e4296436fb": "資源更新失敗:{0}", + "tf647bbb59100158c": "已成功更新 {0} 個資源!", + "t2fe702002e0cc8a1": "已成功更新 {0}!", + "t3353932ac7b3a2d3": "下載新版資源檔案", + "tcfc6f0f80e300d9d": "取代舊版資源檔案", + "t23fb47d47949cd76": "資源更新:{0}", + "tc8b6acd6c2824a03": "正在更新資源", + "t0c06c0f68525de81": "我已了解風險,繼續更新", + "tbdbde764a34d4f32": "新版本模組可能不與舊存檔或其他模組相容,這可能導致遊戲崩潰,甚至永久損壞存檔!\n如果你在遊玩模組包,請千萬不要自行更新模組!\n\n在更新前,請先備份存檔,並檢查模組的更新紀錄。\n如果更新後出現問題,你也可以在資源回收筒找回更新前的模組。", + "t21693937fb2e718d": "模組更新警告", + "t9d8a03f46364f97f": "已複製存檔資料夾到剪貼簿!", + "te52345553d8eece9": "複製失敗……", + "tad2886a4dc41e1b6": "注意!在貼上之前進行刪除操作會導致存檔遺失!", + "t3ec349752dabe75e": "複製存檔", + "tc1e74205b46bf513": "建立時間:{0},最後修改時間:{1}", + "t3e89dc78fd3fb178": "刪除存檔失敗!", + "t2e8a29e4b72616e5": "已將存檔移至資源回收筒!", + "t369484c5ec1fd2fd": "刪除中……", + "t979a332955c855bf": "詳情", + "t454857e571a74097": "發現同名資料夾,無法貼上:{0}", + "t120b12cdbf2d75e3": "可以在此處檢視目前實例的存檔", + "t9a847ba1161acb10": "暫時沒有存檔檔案", + "t9171f53414524e65": "存檔操作失敗。請檢視錯誤詳情。", + "t0e7d90ffb11b2d6d": "現改為按兩下資料夾進入子資料夾。", + "tb87b880332e23a8f": "操作提示", + "te4067375056a4946": "資料夾不存在或已被刪除", + "t67c4ace2b9e92d61": "存檔資料夾不存在!", + "te7028601e7da793d": "資訊", + "t899432d83d98c3bf": "快捷操作", + "td181b68d7894551f": "切換分頁失敗(ID {0})", + "t7c194a7fff1796ef": "未知的實例設定子畫面種類:{0}", + "t96762502d60e1998": "存檔清單", + "tbd755fab3b30a6b5": "載入存檔清單失敗", + "t0a490eb3af40018c": "開啟檔案位置", + "tb716ad55bffa744e": "開啟存檔資料夾", + "t787851c9802de7b9": "貼上剪貼簿檔案", + "t0beffbcfa4510819": "貼上存檔資料夾失敗", + "te71a9e220ede1d03": "已貼上 {0} 個資料夾", + "t91103c8fae0111a0": "快捷啟動", + "t9c5b4871d36c903f": "重新整理存檔UI失敗", + "t69fc05bff50ed548": "存檔清單 ({0})", + "t47f206fe3ec9a685": "搜尋過程中發生異常", + "t46c10fbcd79ec83e": "搜尋存檔名稱", + "t07ec86e0f1d44f91": "建立時間", + "t257bbcc44c839db4": "修改時間", + "ta7bb2f73f0f43556": "來源資料夾不存在,或來源不是資料夾", + "t9283634badebfa28": "TXT 格式:僅匯出目前的資料包檔名資訊\nCSV 格式:匯出詳細的資料包資訊,包括檔名、專案 ID、版本資訊等詳細資訊", + "t82c0db872c4a7ffc": "作者:", + "t2228b2755b4fb353": "資料包 ID:", + "t9491ade2781febfb": "檔案:", + "t011958f9bf79ae4f": "無法讀取此資料包的資訊。", + "t3ee8679632fcd1a1": "無法讀取此資料包的資訊。\n\n詳細錯誤:\n{0}", + "t0bdf9529104b7008": "資料包讀取失敗", + "tb6c0bf3495992e5c": "版本:", + "t7eabd5a06216e332": "資料包檔案(*.zip)|*.zip", + "tdd989c3b4b9d5e3c": "選擇要安裝的資料包", + "t0523c0608cfcad50": "是否要將這些檔案作為資料包安裝到目前存檔?", + "t1060c0725d578c79": "資料包安裝確認", + "tda2630538f07aa7a": "已存在同名檔案:{0},請先處理該檔案再重試。", + "t510f783ad2c9ea66": "由於檔案被佔用,資料包的狀態切換失敗,請嘗試關閉正在執行的遊戲後再試!", + "t9dd267b91dae16ea": "下載新版資料包檔案", + "tb3a5d6b0f49ff53a": "取代舊版資料包檔案", + "tb220d03ff8fa1c16": "資料包更新:{0}", + "t989f8339ff941ce3": "已跳過 {0} 個檔名不安全的資料包更新。", + "t5d237e5a89e8c00f": "新版本資料包可能不與舊存檔或其他資料包相容,這可能導致遊戲崩潰或存檔損壞!\n\n在更新前,請先備份存檔。\n如果更新後出現問題,你也可以在資源回收筒找回更新前的資料包。", + "t5b9399bc2a220260": "資料包更新警告", + "td85f6fb029fcb14d": "是否允許作弊", + "tce7ef28b670ade58": "允許", + "t4a044484f863c5e5": "不允許", + "tf0a24fc8598efefe": "目前存檔版本 '{0}' 可能是預覽版,不受支援,無法跳轉到 Chunkbase", + "t723c616ebe870dbe": "跳轉到 Chunkbase", + "t8ed201fe2d0a22ec": "目前存檔版本無法確定,因此無法跳轉到 Chunkbase", + "td70e7288e1af0694": "存檔詳細資訊", + "t01805727314e4def": "簡單", + "t4ea02714a1e96276": "困難", + "tde907d10df98b498": "普通", + "tc38b401e2062ca88": "和平", + "te227246f4d1712f9": "是否已鎖定難易度:{0}", + "t418ee1851864601f": "跳轉到 Chunkbase 失敗", + "tbf3cf269a0241175": "複製到剪貼簿失敗", + "te5f2a4634c0a8561": "取得存檔資訊失敗", + "t10fc628593208200": "遊戲難易度", + "tfda0e5d87bac4091": "遊戲模式", + "t16d0879b78417cf2": "冒險模式", + "tff0b169fcecb9fbd": "極限模式", + "te89383dd0b899df8": "旁觀者模式", + "tdb8f876a8dd99404": "生存模式", + "t69aee90c9b104a39": "難易度", + "te6df2ef62df6b8ea": "最後一次遊玩", + "t90e4538f0770c4c9": "存檔名稱", + "t99d61ea4514d645f": "鎖定難易度", + "t75d5eae61e59696b": "鎖定目前難易度設定,鎖定後無法在遊戲中更改遊戲難易度", + "t64187c54fcf06c21": "修改設定前請確保該存檔未在遊戲中開啟,否則會導致設定無效", + "t6f38d81d63644d56": "作弊設定修改失敗", + "t319cd8edbf998568": "作弊設定修改成功", + "t345e027ba7aa9931": "難易度設定修改失敗", + "td8a787e6dd32590c": "難易度設定修改成功", + "t51c738ac0ef65de7": "遊戲時長", + "t5e20fc223736c86a": "種子碼", + "tac50792e77e73837": "存檔設定", + "tb0bc86009feba52d": "重生點 (X/Y/Z)", + "t2936050efd476c66": "存檔版本", + "t0160dee680ba5122": "1.3 以下的版本無法取得存檔版本、遊戲難易度和是否允許作弊", + "t3594d6baee45e710": "1.8 以下的版本無法取得存檔版本和遊戲難易度", + "t67296e5b0b6f14d0": "1.9 以下的版本無法取得存檔版本", + "t095a2f5192379793": "已複製截圖到剪貼簿!", + "te0dba6ba1c0c78dd": "截圖複製失敗!", + "t7e31502d17727490": "刪除截圖失敗!", + "t0437dbd2e6ef93f2": "已將截圖移至資源回收筒!", + "tf6697801012cb5c3": "在遊戲內按下截圖鍵(預設為 F2)後,可在此處檢視儲存的截圖", + "ta2e8e9dbf9330447": "暫時沒有截圖檔案", + "teb369aa527e812aa": "截圖檔案不存在!", + "t6d3279b3578e2c5e": "開啟截圖失敗!", + "td45f7834d6d90962": "開啟截圖資料夾", + "t7471e181a1530af4": "新增新伺服器", + "tf0fe5f8377db97cf": "請輸入新的伺服器位址:", + "tba0a28cd23806bff": "Minecraft伺服器", + "t7b5e700895abe812": "編輯伺服器資訊", + "t01af5e5c7e2cf9a6": "暫時沒有找到伺服器,在遊戲內新增伺服器或點擊下方按鈕新增新伺服器", + "t0f9dae50dc2d636a": "暫時沒有伺服器", + "t77fdc45528150bc2": "找到伺服器清單", + "tc3b1f2a66670a584": "無法找到伺服器在清單中的索引", + "te4b8931b003fcbdc": "請輸入新的伺服器名稱:", + "t35f9c779db261c5e": "請勿頻繁重新整理!", + "t9f2a15d87299064a": "沒有找到任何伺服器", + "ta788d8b94485ccb9": "無法讀取伺服器資料檔案", + "td8eadcfaa53e99f7": "讀取 servers.dat 檔案失敗", + "tf87b9db5ce114e67": "重新整理所有伺服器", + "te03d7b7e2eee4aae": "重新整理伺服器清單失敗", + "tb0a1a3b397f6c100": "重新整理伺服器清單失敗。\n\n詳細錯誤:\n{0}", + "tb3b549a29cf70bdf": "重新整理伺服器資訊", + "t07c44eb39f105d1d": "正在重新整理伺服器清單,請稍候...", + "t17b79c84e37b296d": "伺服器已移除", + "tc16129bac4e37a55": "伺服器資訊已更新", + "td56a07882a6a4c30": "無法寫入伺服器資料檔案", + "ta3694e2c97a83037": "已複製伺服器位址:{0}", + "t694186911ae3e4da": "正在連線", + "t83cd1d8f37747eaa": "正在連線...", + "tb96f23f9b1db9da3": "正在連線到伺服器 {0}...", + "t4c6de01bbe86b3d8": "複製位址", + "t9d631083fbb86edf": "複製伺服器位址失敗", + "t051836569928a9f9": "編輯", + "t4d96a8f48a04db72": "編輯伺服器資訊失敗:{0}", + "te2a6044888c9aa01": "啟動伺服器失敗", + "t8eff613f1c16c691": "啟動伺服器失敗:{0}", + "tbe1b4f3c6c1cda1e": "離線", + "te1c40eb448009e4e": "正在重新整理伺服器 {0} 的狀態...", + "t6135d4159e892541": "移除", + "tf6e40d6dda9d9d2c": "你確認要移除伺服器 {0} 嗎?\n'{1}' 將從您的清單中移除,包括遊戲內清單,且無法復原。", + "t027ee565544e28b9": "移除伺服器確認", + "tcd522a502acc5efb": "伺服器離線", + "tc0ff50ddf6a9590a": "實例設定操作失敗。請檢視錯誤詳情。", + "td1c8332214d92565": "跟隨全域設定", + "tf079baf5319805b2": "這些設定只對該遊戲實例生效,不影響其他實例。", + "t8a4c4be60b6c23ec": "已初始化實例獨立設定!", + "t0942cfc0d4005d46": "已使用記憶體", + "t3f754f38a6547e20": "全域設定", + "t254170063a3d4c95": "Classpath 頭部附加", + "tce6add83ab057f49": "文字方塊中的內容將被作為 Classpath 新增到該實例的啟動參數中的 Classpath 頭部。\n需要使用絕對路徑。若有多個,請以半形(英文)分號分隔。", + "t2f207f903580b01b": "關閉檔案校驗", + "t276c9874402c1956": "完全不更改 Assets;不校驗 Libraries、第三方登入庫與實例主 Jar 檔案是否被修改。\n如果你沒有修改相關檔案,請勿勾選此項。", + "t7734f842a3842a40": "文字方塊中的內容將會被直接拼合在啟動參數的末尾。\n例如,輸入 --demo 則會以試玩模式啟動遊戲。\n支援 Minecraft 實例 JSON 中的字串取代標記,例如 ${library_directory}。\n\n若留空,則跟隨全域設定的值。", + "tbaf991914cae91dc": "忽略 Java 相容性警告", + "t236723cfbca1d79e": "如果手動選擇了與目前實例不相容的 Java,則自動跳過相容性警告對話方塊,強制使用手動選擇的 Java。", + "tad9f842ba691fb1c": "啟動 Minecraft 時使用的額外 JVM 參數,在沒有確定把握的情況下請不要嘗試修改。\n支援 Minecraft 實例 JSON 中的字串取代標記,例如 ${library_directory}。\n\n若留空,則跟隨全域設定的值。", + "t3c7e5c6976b76dc0": "該項不會覆蓋全域設定:啟動時會先執行全域設定的指令,再執行實例設定的指令。\n\n在 Minecraft 啟動前執行特定指令或程式,語法與 Windows 的指令提示字元一致。\n\n可以使用以下取代標記實現相對路徑(路徑均以 \\ 結尾):\n · {path}:PCL CE 的 exe 檔案所在的資料夾\n · {minecraft}:.minecraft 資料夾\n · {verpath}:實例資料夾(.minecraft\\versions\\實例名\\)\n · {verindie}:開啟實例隔離時等同實例資料夾,未開啟時等同 .minecraft 資料夾\n · {java}:遊戲執行時的 Java 資料夾\n\n除此之外,也支援以下取代標記:\n · {user}:玩家名字\n · {login}:玩家的登入方式\n · {uuid}:玩家的 UUID\n · {name}:遊戲實例名\n · {date}、{time}:目前的系統時間\n · {version}:遊戲對應的原版版本號\n\n例如:\n · \"{verpath}test.exe\" :執行實例資料夾下的 test.exe 程式\n · \"{java}java.exe\" -jar \"{verpath}test.jar\" :用 Java 執行實例資料夾下的 test.jar\n · notepad \"{verindie}options.txt\" :使用記事本開啟該實例的設定檔\n\n涉及路徑的操作最好都打上雙引號,以避免路徑中的空格導致執行失敗。\n執行指令時,指令列所在的目錄是目前的 .minecraft 資料夾。", + "tcdd830c6cd119267": "使用除錯級別 log4j 設定檔", + "t4b595752bc8a3a8c": "本選項會修改遊戲日誌層級修改為最低,大量日誌輸出會消耗大量磁碟空間並可能影響遊戲效能。這也可能帶來一定安全風險。如果你不知道你在做什麼,不要修改此選項!\n你確認要繼續修改嗎?", + "te376f1655a97f78c": "跟隨啟動器網路 Proxy 設定", + "taf8e128ddba4278b": "使用 [設定-其他-網路-HTTP Proxy] 中填寫的 Proxy 來啟動遊戲。\n錯誤的全域設定將會導致無法登入!", + "tff584bda0148332e": "該資訊會顯示在遊戲主介面的左下角,與 F3 除錯頁面的左上角。\n若留空,則跟隨全域設定的值。", + "tab631b712c513887": "實例隔離", + "t37df05c413d1ee97": "與其餘關閉隔離的實例共享存檔、模組等檔案。\n若存在多個安裝了模組的實例,可能會由於模組衝突而導致崩潰。", + "t8da97ddda990e7c4": "開啟", + "tc77bf2481702f366": "與其他實例的存檔、模組等檔案相互獨立,互不干涉。\n這會使你無法跨實例共享存檔,但可以規避模組衝突問題。", + "ta7ce7dbe1128f0d9": "調整實例隔離後,你可能得把遊戲存檔、模組等檔案手動遷移到新的遊戲資料夾中。\n如果修改後發現存檔消失,把這項設定改回來就能復原。\n如果你不會遷移存檔,不建議修改這項設定!", + "t5ff70e0c460b14ba": "預設視窗標題", + "t72b24a24b7186171": "遊戲視窗標題是否保留預設。", + "t2cb7d85e465d4c68": "自訂遊戲視窗的標題,若留空則跟隨全域設定的值。\n支援以下取代標記:\n · {user}:玩家名字\n · {login}:玩家的登入方式\n · {name}:遊戲實例名\n · {date}、{time}:目前的系統時間\n · {version}:遊戲對應的原版版本號\n注意:如果你的實例安裝了 Modern UI 模組,那麼這裡的設定將會失效", + "t80d02d707e18a966": "遊戲 Java", + "tfb31b8a8dca01dfb": "自動選擇適合的 Java", + "t10c43f80e36f6f1c": "路徑: {0}\n版本: {1}\n來源: {2}", + "teaec117ce227a9bf": "無效路徑: {0}\n點擊此項重新選擇有效 Java", + "ta2d981f17e38c87f": "清單載入失敗,請重試", + "t91004033f37b6298": "未偵測到可用的 Java 執行時", + "tf8379e8f48942368": "請在設定中手動指定 Java 路徑,或點擊「掃描」按鈕重新偵測", + "t9e405604dae16e94": "超出路徑允許範圍,請選擇啟動器資料夾或其子資料夾下的檔案", + "t82907c4d2fb89580": "相對路徑: {0}\n解析路徑: {1}", + "t464d60369ec72913": "選擇啟動器資料夾下的 Java", + "ta1671b20fa7e11a4": "選擇啟動器資料夾下的 Java(目前路徑無效)", + "tcfe0b2eeaa7c70ed": "啟動器資料夾下的 Java | {0}", + "tce793c1d927e8312": "將選擇相對於例專案錄的 Java 路徑", + "t7498384b686c2fcf": "若將 Java 放在遊戲資料夾或 PCL CE 資料夾,在進行自動選擇時 PCL CE 會盡量優先選擇它", + "ta6ac7a930db5437f": "目標驗證伺服器", + "t20d5ef706cb3723d": "已自動格式化驗證伺服器位址!", + "t2573aa7313bbafa4": "Yggdrasil API 認證伺服器的完整網址", + "tcef3e2cea27303a4": "自動進入伺服器", + "tff98385f8cce2ea2": "在開啟 Minecraft 後自動進入某伺服器。\n用英文冒號間隔 IP 與通訊埠,例如「87.87.87.87:12345」。", + "t936d52b878ee55f5": "建立檔案", + "tfbe2d154eb82c9c5": "使用 HTTP 協議進行登入操作可能面臨登入密碼在未加密的情況下被明文傳輸的安全風險。\n如果沒有特殊需求,請始終考慮使用 HTTPS 協議!", + "tafb8b636e332555b": "LittleSkin 登入", + "t670154db6b3a27e1": "即將把第三方登入設定覆蓋為 LittleSkin 登入。\n除非你是服主,或服主要求你這樣做,否則請勿繼續。\n\n是否確實需要覆蓋目前設定?", + "taa4a7e90a21ab78f": "設定覆蓋確認", + "t66ba32e26defe4e5": "鎖定驗證方式", + "td4f0c724de7627b4": "你正在選擇鎖定此實例的驗證方式。鎖定後,將無法再更改此實例的驗證方式要求,啟動此實例將必須使用指定的驗證方式。\n此功能可能會幫助一些服主吧。\n是否繼續?", + "tb7550744a3af66c2": "鎖定驗證方式確認", + "tc5616d31356e3c65": "目前實例的驗證方式已鎖定,無法再次更改。請使用要求的驗證方式啟動遊戲。", + "t8027864b27f501cc": "僅第三方驗證(Authlib-Injector)", + "t31d45494e818f473": "僅微軟驗證", + "t54d1b0d14b50efea": "微軟驗證與第三方驗證(Authlib-Injector)", + "t9ee3c076a148a297": "無限制", + "tec79bfcf63ea434d": "伺服器名稱", + "t182035e460e6884c": "顯示在登入畫面的伺服器名稱", + "t80313b450cbb168c": "註冊連結", + "t695a9798c6fba05c": "註冊帳戶的網頁位址,如 https://xxxxx.xxx/auth/register", + "t3ceae2377a17af62": "限制驗證方式", + "t48fc3c860db30e8c": "設定為 LittleSkin", + "t6af32ec6e6f57cfd": "未啟用 SSL 證書驗證可能導致登入密碼面臨被第三方截獲的安全風險。\n如果沒有特殊需求,請始終考慮啟用 SSL 證書驗證!", + "t3468f875c729b5dc": "啟動頁操作失敗。請檢視錯誤詳情。", + "t0cf642cf998c86ac": "啟動失敗", + "t0c6e6d36a48d3015": "若要永久隱藏此提示,請輸入正確的 PCL CE 開發組織名稱。", + "tabf930d81a9203d3": "輸入 PCL CE 開發組織名稱", + "tf7bf91b7d28e65ab": "你正在使用 PCL CE(PCL 社群版)!此版本為獨立開發和維護,與原版維護路線不同,體驗有所出入。\n\n如果你是意外下載到了 PCL CE ,我們十分建議您下載原版 PCL 長期使用,此發行版本對新手使用者體驗可能不友好。\n此外, PCL CE 的問題請向 PCL CE 的儲存庫提交 Issue,不要向官方儲存庫回饋 PCL CE 的問題哦!", + "t7474a16bc5c89a9a": "PCL CE 提示", + "t61599e09cb13804d": "不太對哦……", + "tb0e3009e712b21e8": "啟動日誌", + "tf2e307925f823db1": "« 返回", + "tff0e560e20a2082f": "切換登入分頁失敗({0})", + "t1e2df9c3075ae9e4": "登入", + "t78039212f6520d7a": "已取消登入!", + "td01600ce19257b9f": "微軟驗證", + "t6008bbfdb3e38dc4": "離線驗證", + "t6114f5d6d0205ad4": "第三方驗證", + "t04ade1879dda1916": "更換角色", + "t73075237fd0f05f0": "電子信箱", + "t498f7d2f8747223d": "驗證伺服器、使用者名稱與密碼均不能為空!", + "t06eb15b75f0110f9": "找回密碼", + "t790a4386b9505be0": "輸入的驗證伺服器位址無效", + "t493f38e317087595": "第三方登入嘗試失敗", + "t5be0cbfcf01b1d6a": "第三方登入嘗試失敗。\n\n原始錯誤資訊:\n{0}", + "t3ab8cc15939f3b5c": "退出登入", + "ta621ab606db2a11f": "密碼", + "t3d3c840a9479c5ef": "預設 - LittleSkin", + "t679e917b16ef72d9": "註冊帳戶", + "t902374eeaf859afa": "驗證伺服器: {0}", + "t551710fd549587c9": "選擇驗證伺服器", + "tbe3cb04a40919d69": "開始 OAuth 登入", + "ta6d788232ec3f20a": "» 使用密碼登入", + "t0315a8b263132e2d": "» 使用 OAuth 登入", + "t420c20dd9fcca860": "複製代號", + "tef5d4285531e7737": "微軟驗證對話方塊初始化失敗", + "t1b71e1023492f244": "微軟驗證對話方塊載入失敗", + "td13635300bb3dac8": "登入網頁將自動開啟,請在網頁中輸入授權碼 {0}(將自動複製)。\n\n如果網路環境不佳,網頁可能一直載入不出來,屆時請使用 VPN 並重試。\n你也可以用其他裝置開啟 {1} 並輸入上述授權碼。", + "t42b563f4a5e8d794": "登入網頁將自動開啟,授權碼將自動填充。\n\n如果網路環境不佳,網頁可能一直載入不出來,屆時請使用 VPN 並重試。\n如果沒有自動填充,請在頁面內貼上此授權碼 {0}(將自動複製)\n你也可以用其他裝置開啟 {1} 並輸入授權碼。", + "t2a1d761830126275": "登入 Minecraft", + "t5904373868640ff6": "微軟驗證輪詢失敗", + "t01ed19e2900d3910": "重新開啟網頁", + "t5d57127847ba6af8": "網頁登入成功!", + "tf7df4fc957c82c54": "測試標題文字", + "t2e89909e0fd092e7": "Microsoft 登入操作失敗。請檢視錯誤詳情。", + "t5f35b345cf33839e": "未知錯誤!", + "td59f3d1d31f29907": "微軟登入驗證失敗,請考慮在 [設定 → 其他] 中關閉 [在微軟登入時驗證 SSL 證書],然後再試。\n\n原始錯誤資訊:", + "t5cd0d666d6bab4f5": "微軟登入嘗試失敗", + "t2bde595d094e39ef": "微軟登入驗證失敗。\n\n原始錯誤資訊:\n{0}", + "td2c8f3b49f73b807": "» 購買游戲", + "te8eead3a6646c67d": "開始微軟驗證", + "t986325cf33e84b0c": "» 前往官網", + "tcde2cd071d25bbab": "建立", + "tced85ec25bcc781d": "你輸入的玩家 ID 不符合標準(3 - 16 位,只可以包含英文字母、數字與下劃線),可能導致部分版本的遊戲無法啟動或發生錯誤。\n強烈建議使用規範的玩家 ID!\n如果你堅持,仍然可以繼續建立檔案。", + "tc6ddaa742bb8cdfd": "玩家 ID 不符合規範", + "t4cc492b208bda0b3": "UUID 不符合要求:{0}", + "td5edf64786cd13e3": "玩家 ID", + "t477a342ca80c3b80": "3 - 16 位,只可以包含英文字母、數字與下劃線", + "tb42833f5a2d2c13a": "應為 32 個十六進位字元,且不含連字號", + "tc2209d7f05d76783": "適用於高階使用者,如果你不知道這是什麼,請不要選擇此項", + "t04ea81768ab82ad0": "舊版", + "ta2614c41a13b5af9": "使用舊版 PCL CE 的 UUID 生成規則\n若從舊版 PCL CE 升級,且單人存檔的部分資訊遺失,可嘗試此項", + "te7bff89ec0daeeda": "行業規範", + "t713f13d217d11e28": "[推薦] 生成的 UUID 與 HMCL、BakaXL 和 Bukkit 等其他軟體一致", + "t80fcb4b2ebd4ca91": "UUID 標準", + "taa0265f4399d3309": "更改驗證伺服器名稱", + "t2369ed131e93090d": "更改 UUID", + "t74e814bb19061a0d": "複製 UUID", + "t952724a3a21dc439": "建立檔案 - 選擇驗證型別", + "taa4c9300b7e8607e": "建立並選擇一個檔案以啟動遊戲", + "tc935b2db7282e943": "需要先進行一次微軟驗證才能使用其他驗證方式", + "t946412fba614b86c": "檔案建立成功!", + "t408bf95406abc59d": "刪除檔案", + "t336ff2ef7565b07b": "你正在選擇刪除此檔案,該操作無法復原。\n確定繼續?", + "t97426dd1b93354ed": "刪除檔案確認", + "t88022f5a042e5a8b": "檔案刪除成功!", + "t602a9a7ba17ca415": "請輸入新的驗證伺服器名稱", + "t8ceb0f69c39c3f8c": "修改驗證伺服器名稱", + "tb17131209743c985": "修改檔案 ID 失敗", + "t7acd54368b376ebe": "更改外觀失敗", + "t43541cd29a60bb1a": "讀取檔案資料失敗,資料檔案可能意外損壞。已備份並重設檔案資料。", + "t715a3dcbcfdba242": "讀取檔案清單失敗", + "t20af727477c625e0": "寫入檔案清單失敗", + "ta173733f1faa78f8": "匯入 / 匯出", + "t77358d4c779996a0": "檔案資訊已儲存!", + "tbfebf1de59d23772": "選擇一個檔案以啟動遊戲", + "tb02a4597f7485f56": "更改檔案 {0} 的 UUID", + "t5ae64b316e76b06d": "32 個字元,不含連字號", + "tca61c221e43ef3d0": "UUID 只能包含英文字母與數字!", + "t73504ef0b71f6fde": "原版 PCL UUID(若單人存檔的部分資訊遺失,可嘗試此項)", + "t41c9551db4210c11": "建立檔案 - 選擇 UUID 型別", + "t4c177e2b3ccb969c": "行業規範 UUID(推薦)", + "t9a0eb83e4d605332": "玩家名不能為空!", + "te5ebbf4d9f614249": "玩家名不能包含英文引號!", + "t0ec90bdfe39bf7ff": "未知的驗證方式", + "t5de593495b0ec032": "自 1.20.3 起,玩家名至多只能包含 16 個字元!", + "t18b2e4d6607e2743": "注意:玩家 ID 只能每 30 天更改一次,請務必謹慎考慮!", + "t4c62c9c5a5368d5b": "確認修改", + "t1e956957673b5fc6": "首次更改 ID 後,必須等待 30 天後才能再次修改 ID。你可以前往官網查詢確切時間。", + "tc4e45c8f10d3877b": "此 ID 已被使用,請換一個 ID。", + "tab06d3017b3b0178": "欲設定的玩家名稱為空", + "tb108f4881e05943d": "ID 修改失敗", + "tc8c89417c7b6fc27": "3 - 16 個字元,只可以包含大小寫字母、數字、下劃線", + "t4b41b75f3ee20c02": "玩家 ID 只能每 30 天更改一次名稱,請謹慎考慮!", + "t2d868a3e66a95b91": "此 ID 包含了除大小寫字母、數字、下劃線以外的不合法字元。", + "te7808fed4d5d82dd": "玩家 ID 修改成功,目前 ID 為:{0}", + "tb40c5b98384b3f11": "輸入新的玩家 ID", + "t6a65e07235585643": "目前檔案不支援修改披風!", + "tafa058778f0044cf": "修改披風", + "tdb995b31656dddc5": "修改外觀", + "t08d00806241183c5": "修改密碼", + "ta6032fe19b5f8e3d": "修改資訊", + "td84c0d9e1f6a5630": "修改玩家名", + "t23022216697074ff": "目前檔案不支援修改密碼!", + "t96fa37f15534dfcd": "重新整理大頭貼", + "t772d00472094988f": "儲存外觀", + "tad222fff9f1986a6": "目前檔案不支援修改外觀!", + "t9320324148d73c83": "外觀與披風", + "tbf6831310af54af6": "選擇檔案", + "te2f1f4a640f734e1": "下載遊戲", + "t7ab2a77d57a655e0": "啟動遊戲", + "tf020e4630a54d322": "正在載入", + "te92039beeed1d2de": "目前實例正在安裝,無法啟動!", + "t97e1807083f12386": "目前實例正在安裝,暫無法進行實例設定!", + "t2bdb1de3d57c95dc": "正在載入中,請稍候", + "t200375f1052cb52b": "未找到可用的遊戲實例", + "tcb5c4d21c9d75f2f": "實例設定", + "ta562ab75537b5aab": "正在載入版本清單,請稍候", + "td4685d3827a646d5": "下載首頁失敗({0})", + "t35dd74b6a44c0cc8": "讀取外部檔案失敗:{0}", + "t6a59fd2ea5a009c9": "首頁內容編寫有誤,請根據下列錯誤資訊進行檢查:\n{0}", + "tb8784c8dd5636ff2": "重試", + "td07b31c6e2724888": "載入首頁介面失敗", + "tdc479af7c40f1e57": "正在載入首頁……", + "ta748cc074f78de00": "查看詳情", + "t07405d613ec91a17": "回聲洞 因為只有空殼因此已被移除,請前往設定選擇其他預設首頁", + "t50d371c77a35db85": "PCL CE 公告已移除,不會再從原專案伺服器載入首頁。請前往設定選擇其他預設首頁", + "ta6397f884141229f": "首頁載入過於緩慢(花費了 {0} 秒),請向首頁作者回饋此問題,或暫時停止使用該首頁", + "t1f6e2c0ee3e44bf7": "下載首頁", + "tef5be5afe0c37e0c": "更換披風", + "t9f72582f4a459081": "更改外觀成功!", + "tf1344989f6c36880": "取得 Authlib-Injector 外觀失敗({0})", + "t6d0a0bc67cefb5f2": "取得 Authlib-Injector 外觀失敗。請求過於頻繁,請 5 分鐘後再試。", + "tcf46ba5403f4305d": "取得微軟外觀失敗({0})", + "t18054bb7ac0b9424": "取得外觀太過頻繁,請 5 分鐘後再試({0})", + "t6043a198efd191c1": "外觀正在取得中,請稍候!", + "t07b14e88a7449ed5": "外觀檔案存在錯誤", + "td9fa62b892e0a222": "外觀檔案(*.png;*.jpg;*.webp)|*.png;*.jpg;*.webp", + "tb3de450bdef8be23": "選擇外觀檔案", + "td4096ad3fa87cc72": "外觀檔案大小需小於 24 KiB,而所選檔案大小為 {0} KiB", + "t15d76acc730894df": "外觀圖片大小應為 64x32 畫素或 64x64 畫素!", + "t245fe2c513e95109": "載入大頭貼失敗:{0}", + "t5943b5f5bb67cd73": "外觀檔案已損壞:{0}", + "t34b593812b243e6c": "Alex 模型(細手臂)", + "t9a2a16545c9f7596": "此外觀為 Steve 模型(粗手臂)還是 Alex 模型(細手臂)?", + "te3e976d4a94f3119": "選擇外觀種類", + "t6726da71ef0a71d7": "Steve 模型(粗手臂)", + "ta4c7f3beb9fee759": "請在外觀下載畫面確認外觀種類後再使用此外觀!", + "t7924d4186a6410f3": "有正在取得中的外觀,請稍後再試!", + "tbaf5db0ad0fc2ffc": "重新整理外觀快取失敗", + "tddd5fefce750d0d5": "已重新整理大頭貼!", + "t3bb3573d7bce93a1": "正在重新整理大頭貼……", + "tf5b8f1c77f79766f": "儲存外觀失敗", + "t1337f005b67c60d4": "外觀圖片檔案(*.png)|*.png", + "t888af92f234bbf9b": "選取儲存外觀的位置", + "t63b42ac69be9dc16": "外觀儲存成功!", + "t4b806a69aa469d42": "更改披風失敗", + "t8cfac8620b8b71cc": "更改披風失敗:{0}", + "td4b716cf55c8c43b": "更改披風成功!等待一段時間後將會生效……", + "t4174fa1ba1e4dd2c": "正在更改披風中,請稍候!", + "t01292be04704765d": "取得玩家外觀清單失敗", + "t4cefd87fe5fd94be": "正在取得披風清單,請稍候……", + "t0c46444fedd38803": "登入失敗,無法更改披風!", + "t343395b54b51c4f2": "無披風", + "t8ea4dd1ce7d48f1f": "選擇披風", + "tbc2f2a591218f46d": "建造者披風", + "t802de1c2cfa3d074": "櫻花披風", + "t1ddd7612cdf12cc2": "Cobalt 披風", + "t651c078884443a67": "普通披風", + "t248549d2c853f412": "銅披風", + "t8740817490051fd4": "工匠披風", + "t6da94e3758d02496": "15 週年紀念披風", + "tce38d8c38623ed8a": "追隨者披風", + "t172d25e80b785f38": "創始人披風", + "t6015b3bf5e6a612a": "家園披風", + "t323bb4188bf32a1a": "Realms 地圖製作者披風", + "t14b18e03dc9baa58": "MCC 15 週年披風", + "tbe6a616c538152ce": "入侵披風", + "tf8a745f9359fea5e": "遷移者披風", + "tb007f8ec09ceb88e": "MINECON 2011 參與者披風", + "t236c63cb22af52ca": "MINECON 2012 參與者披風", + "t221b1ef6255641c3": "MINECON 2013 參與者披風", + "t2e94ef4260ac4459": "MINECON 2015 參與者披風", + "tbdc679f81a1476e8": "MINECON 2016 參與者披風", + "t3b492dbb3e9ef5cc": "Minecraft Experience 披風", + "t84d55b41e7b59112": "Mojira 管理員披風", + "t49119945877e52d4": "Mojang Office 披風", + "t5eecfa4eae6cf658": "Moonlight Trail 披風", + "t048fa8105f1c1dd7": "薄煎餅披風", + "ta53349f8da1d9ceb": "紫色愛心披風", + "td65b0ddda59f4497": "Crowdin 翻譯者披風", + "t1ced2c262fdf42f0": "Crowdin 中文翻譯者披風", + "t4de45a1ea1abe56e": "原版披風", + "td3d9d1beb54e183e": "渴望披風", + "tad5cccdf0a7c08f7": "殭屍馬披風", + "t4cc3fa20673cc47d": "正在更改外觀中,請稍候!", + "t4b7622c76c05d02b": "更改外觀後重新整理外觀失敗", + "tcc0253d986a9e159": "更改外觀失敗。\n\n詳細資訊:\n{0}", + "taf13751ca1ae43c3": "登入失敗,無法更改外觀!", + "t77b40bc0e7203b74": "正在登入,將在登入完成後繼續更改外觀……", + "tb84eacc7c8c3e440": "正在更改外觀……", + "t1554171e7d162fc4": "更改外觀失敗:與 Mojang 外觀伺服器的連線超時,請檢查網路連線。\n\n詳細資訊:\n{0}", + "t05b1bda811601df2": "點擊更換外觀(右鍵檢視更多選項)", + "tf28461bb49c85647": "已完成", + "te590e84f23a587dc": "目前步驟", + "t11d78f4ed3136371": "下載支援", + "t56f0864c0868a2e7": "下載速度", + "t895e7a9a2fefc660": "啟動進度", + "t52373e4342173705": "驗證方式", + "t6d58efacd35a835c": "正在匯出啟動指令碼", + "t9f65d7ecf9589a20": "已啟動遊戲", + "t66c5e34568722ea8": "正在啟動遊戲", + "t39b4d254b443f8be": "你知道嗎", + "t43b9c4c478bee2d1": "這是一段測試用的小提示文字,它應該足夠長以讓它有兩行。", + "t8a94c4a1cdbd821e": "本機", + "t195ad4475713519f": "P2P", + "t715ce81251a45319": "中繼", + "t1c67a7983b893cc3": "取得 AccessToken 與 RefreshToken 失敗,返回內容為空", + "tf4fc7f89fcbaa38f": "取得 AccessToken 與 RefreshToken 失敗,解析返回內容失敗", + "t62e03af1c62b9d88": "取得 Natayark 使用者資訊失敗,返回內容為空", + "te60f2df061020360": "取得 Natayark 使用者資訊失敗,解析返回內容失敗", + "t2c99de8357e3c349": "優秀", + "t8e74c6d9caf4783f": "目前網路環境不會影響連線體驗\n該網路環境適合作為大廳建立者", + "t91e25f4ddc6f6cd8": "一般", + "t67e9f958a471f60f": "目前網路環境可能會影響您的連線體驗", + "t895dcef3f1bda199": "較差", + "t88dc1bd4509b2644": "部分路由器和防火牆設定可能會影響您的連線體驗", + "t3def5fd29978a052": "建立大廳失敗,請檢查日誌或向開發者回饋。", + "t61e4b216cf0f2727": "在建立房間的時候遇到了問題,請檢視日誌並將此問題回饋給開發者!", + "te0fbbf57104b6aba": "大廳服務初始化失敗,請檢查網路連線。", + "t8040959ea00f0af3": "大廳編號格式不正確,請檢查後再試!", + "ta2b283fbabf514ba": "加入大廳失敗,可能是大廳不存在或已被解散", + "tb044ce04bb093e0f": "請先登入 Natayark ID 再使用大廳!", + "td939cafbb3895a53": "PCL CE 大廳{0}", + "t228e5a443383de80": "不支援的大廳型別: {0}", + "ta186e752d6130366": "{0} / {1} ({2})", + "t6aca6fd59b821b21": "你的 Natayark Network 帳戶狀態異常,可能已被封禁!", + "t69e1fa79b502c053": "連線元件下載完成!", + "t80ef76c616854596": "下載 EasyTier 依賴檔案失敗,請檢查網路連線", + "teb6444363087132e": "正在下載連線依賴元件,請稍後...", + "t02fa63991eb87276": "正在下載 EasyTier,請稍後...", + "t7bff432a11f9e911": "EasyTier 尚未下載完成,請等待其下載完成後再試!", + "t4f1c57515b3e6001": "Minecraft 玩家 ID 不可包含分隔符號 (|) !", + "t59815c8201bc6e49": "大廳功能暫不可用,請稍後再試", + "t3412261e29107fd4": "請先前往連線設定並登入至 Natayark Network 再進行連線!", + "t9041c3ffcfae95dc": "嘗試取得 Natayark ID 資訊失敗", + "t728dd244bc22f2f9": "請重新登入 Natayark Network 帳戶再試!", + "t5999316ef723721a": "請先前往 Natayark 帳戶中心進行實名驗證再嘗試操作!", + "t7123fb6bc936dc5e": "清理快取與冗餘元件", + "t01341f490a387604": "下載 EasyTier", + "tb32af2a5114f57c5": "解壓縮檔", + "te8cf95714422bdc4": "大廳公告取得", + "td5117ad4d0564f31": "大廳初始化", + "t2d719a5b587c6abd": "大廳介面初始化", + "tf5b07efd2d5c87a7": "重新整理介面", + "tb71b21582321bc5f": "Set a lobby name or select a game account.", + "t5dc4ee83965480f2": "中等(完全圓錐)", + "tc14c915da5fbec64": "開放", + "tdde4255b079bbdd7": "中等(埠受限圓錐)", + "t36dba1e2a0e29517": "中等(受限圓錐)", + "t47344176e0802f10": "嚴格(對稱)", + "t3770a023a6779840": "嚴格(寬鬆對稱)", + "t2f95d7e8cb1970b8": "嚴格(對稱防火牆)", + "t095de638a586e2cf": "嚴格(阻止 UDP)", + "t1ef3de06b32e521b": "清空", + "t8ef3f16ae2c3621a": "匯出執行堆疊", + "t64815e7955a3eaa4": "已關閉遊戲 {0}!", + "tc83695c236312546": "結束程式", + "t34dedaffd3cc55f0": "滾動", + "te484b7d274357fd5": "請點擊 實例設定 → 概覽 → 測試遊戲 以顯示遊戲的即時日誌。", + "ted3a96589a9af7d7": "無即時日誌", + "t4efd367d15d81f2d": "日誌頁面操作失敗。請檢視錯誤詳情。", + "td33b07075d58f565": "遊戲日誌 - {0}.log", + "t7f63072f6d7e4ad3": "遊戲日誌(*.log)|*.log", + "ta78e3d3144d8f7ee": "日誌已匯出!", + "t3c56411b4624424a": "遊戲執行堆疊 - {0}.log", + "tae8b132d4e19abd4": "遊戲執行堆疊(*.log)|*.log", + "tbb008295942ade38": "正在匯出執行堆疊,請稍等(可能需要 15 秒 ~ 1 分鐘)", + "t836501c01eed36a5": "執行堆疊已匯出!", + "t17e077fb4cbb50db": "測試實例清單", + "t1a03bd2fd107c453": "Debug", + "t54a0e8c17ebb21a1": "Error", + "td04f4ecc104de17c": "Fatal", + "t170322a32f3c35b2": "Info", + "t8448814dc5caff5c": "Warn", + "t5900d3a13b6e1fe5": "即時日誌預設只保留 {0} 行,你可以在 即時日誌行數 設定中修改!", + "teda53a9cf5c1aeb1": "最大行數", + "t2686da4f857240ae": "即時日誌功能中最大顯示行數,超過該值會自動刪除舊的日誌。", + "te79fa23e8d1b5faf": "即時日誌", + "t5eefa4f9c2007800": "木大!", + "t0d37b78184658e5b": "[除錯模式] PCL CE 正以除錯模式執行,這可能會導致效能下降,若無必要請不要開啟!", + "tc88a37e3bf6afbeb": "啟動器介面操作失敗。請檢視錯誤詳情。", + "t8fd62066ce3444aa": "無法返回頂部。", + "t4a820fbf7f49b218": "在使用 PCL CE 前,請同意 PCL 的使用者協議與免責宣告。", + "ta7de63b1bff903d7": "協議授權", + "t591f3b5c1257fedd": "檢視使用者協議與免責宣告", + "tf7cefd256922f5fe": "還有下載工作尚未完成,是否確認結束?", + "t071b374af1b861ac": "返回頂部", + "t78148e389096d89e": "遊戲日誌", + "t08f61250ec4d1f70": "投降", + "t1dfe375c285de9f0": "關閉 Minecraft", + "te3401b9b20685564": "任務管理", + "tcf0e3e9917f7af9d": "重啟 PCL CE 以應用軟體更新", + "t724cf6893978a9f9": "重啟 PCL CE 以應用軟體更新 ({0} → {1})", + "t8b5ff083a35cc30a": "功能隱藏設定已暫時關閉!", + "t4ba8981c4947a770": "功能隱藏設定已重新開啟!", + "td79d205e87282045": "已關閉執行中的 Minecraft!", + "t16dd0a29f4ddf6df": "目前執行的 PCL CE 為 CI 自動建置版本。\n此版本包含最新的錯誤修正、最佳化與新功能,但效能和穩定性較差,不適合日常使用或製作模組包。\n\n除非社群開發者要求,或您確實需要使用,否則請下載最新穩定版。", + "t9fcec75643ee50b5": "目前執行的 PCL CE 為 Debug 版本。\n該版本僅適合開發者除錯執行,可能會有嚴重的效能下降以及各種奇怪的網路問題。\n\n非開發者使用者使用該版本造成的一切問題均不被社群支援,相關 issue 可能會被直接關閉。\n除非您是開發者,否則請立即刪除該版本,並下載最新穩定版使用。", + "t985d9bb520eae88e": "可以新增 PCL_DISABLE_DEBUG_HINT 環境變數 (任意值) 來隱藏這個提示。", + "tda74cc446c8cd2ca": "我清楚我在做什麼", + "t19c423dae1947251": "開啟最新版下載頁並退出", + "t7f011c355ebdab05": "特殊版本提示", + "t56410fc65314dfb5": "啟動", + "t5ca6730d44152201": "工具", + "tde71c2dc0b3fe99e": "實例設定 - {0}", + "t352d37af3aec3745": "資源下載 - {0}", + "ta10e9ab6f4ff12b8": "存檔管理 - {0}", + "t36919af03e986fa3": "歡迎使用呀~", + "t83c67e2888bad2b4": "完整更新紀錄", + "t7a3c4764d30ec426": "PCL CE 已更新至 {0} {1}", + "t81b589b65559418b": "首頁預設已重設", + "t100bcaba3c2faa4c": "由於啟動器更新,已重設首頁預設。請重新前往 設定 - 個性化 選擇預設", + "t5842d5dedfcf6c37": "輸入的 Authlib 驗證伺服器不符合網址格式 ({0})!", + "te4865c9996cf3b7c": "是否要建立新的第三方驗證檔案?\n驗證伺服器位址:{0}", + "t61946d3c915f1cc7": "建立新的第三方驗證檔案", + "td3e363c01d5c8484": "請將檔案解壓縮後再拖入!", + "t6b61f012729a7a2f": "拖入的檔案不存在:{0}", + "tb73740e9a951f505": "請拖入一個檔案,而非資料夾!", + "tb360b8237df6972e": "已存在一個首頁檔案,是否要將它覆蓋?", + "t15eef8589dbe45ce": "已載入首頁自訂檔案!", + "ta8bb9a7a12efd6da": "已匯入 {0}", + "t992ba00cb3767f87": "覆蓋確認", + "t859cbeeb8db131a4": "已存在同名檔案:{0}", + "t0c3020d669335449": "一次請只拖入相同型別的檔案!", + "t681c037da647fbb4": "匯入存檔失敗", + "t1ca8ad5847239b50": "匯入後的存檔缺少 level.dat!", + "t044d5211fa29a9ca": "壓縮檔內沒有可匯入的 Minecraft 存檔!", + "t57370495af445498": "PCL CE 無法確定應當執行的檔案拖曳操作……", + "ted8286ab72394409": "元件操作失敗。請檢視錯誤詳情。", + "t0faddb0a6d3be573": "Minecraft 資料夾操作失敗。請檢視錯誤詳情。", + "tf4e58fd3c817a653": "外觀位址種類無效:{0}", + "t500fd190d4511cd2": "使用者未設定自訂外觀", + "te8b582a46acfcc61": "外觀返回值中不包含外觀資料項,可能是未設定自訂外觀的使用者", + "t8604ca71489d8691": "離線 UUID 無外觀檔案。", + "t36f99289673965ec": "未從外觀回傳值中找到符合條件的 Property", + "t5c017163e4c31e1f": "外觀回傳值為空,可能是未設定自訂外觀的使用者", + "tfe4f6cee87cd7984": "UUID 為空。", + "t819a1979606bb1df": "新版本:{0}", + "tf7217af256bf18dc": "Minecraft 更新提示", + "tccc10870c6e4441c": "更新時間:", + "t2f0ed2b43758d74f": "更新於:", + "t24308e2f6efcb539": "原版", + "t311884750ff0ab4c": "新版 Forge", + "t7a94b3e6c7f62c38": "如果提示 \"You need to agree to the EULA\",請編輯 eula.txt 同意協議!", + "t355ec8cf79840c5c": "如果服務端立即停止,請右鍵編輯該指令碼,使用!JAVA_HOME!取代%JAVA_HOME%", + "tc230fe7459f1e9f6": "你可以在 PCL CE 的 [設定 → 啟動選項 → 啟動器內 Java 路徑] 中將此版本選為合適的 Java 並啟用!", + "t36694b2cee9dfe71": "服務端已停止。", + "taad8d56288d3951f": "{0} 原版服務端", + "ta58f5a5b7bb98ab1": "新增使用者端版本失敗", + "td495a225b4d7b49f": "分析資源檔案索引位址失敗", + "t6effc2cd919c0916": "BMCLAPI 源未包含目標版本 {0}", + "t985c2233443f8475": "Fabric meta 下載失敗: {0}", + "t6a414f3061ad95a0": "非新版方式安裝 Forge 失敗", + "t494eeedb45023c10": "取得的結果過短({0})", + "t5831f634ad3bf5aa": "取得的推薦版本數過少({0})", + "t854a98d5cb5658f9": "已取消安裝。", + "t3130c81240df11c4": "安裝器執行出錯,末列為 {0}", + "t01568a626a5fe73e": "實例 {0} 已存在,是否重新下載?{1}這會覆蓋實例的 Json 和 Jar 檔案,但不會影響實例隔離的檔案。", + "t97497ce8f100afa7": "實例已存在", + "t020f60058af369a7": "該實例正在下載中!", + "t584388f17c0aabbc": "由於未找到 Java,已取消安裝。", + "tb34a449dc0d1ddcc": "Java 8 或更高版本", + "t5bb42cc340fccaed": "{0} Json 有誤,位址:{1},前段內容:{2}", + "t2e51682b54f9b7f4": "安裝新 LiteLoader 實例失敗", + "tc66dc936aa69f1b6": "未能找到 {0} {1}-{2} 的詳細資訊!", + "t613e096cdc22a904": "安裝新 {0} 實例失敗", + "td15eac46bcb58942": "{0} 安裝器出錯,日誌結束部分為:{1}", + "t3452b5fb3ace3eb8": "執行 {0} 安裝器失敗", + "t9a48aaca900edabd": "取得{0}支援庫清單失敗", + "t6cdd512a828b8522": "底層實例 {0} 中無 Jar 檔案下載資訊", + "t685866b2d2c32e8e": "無對應的 json 下載位址", + "t6dabaaeda6caaf29": "Mojang 沒有給 Minecraft {0} 提供官方伺服器端下載,下不了,撤退!", + "t90c81375158018ac": "如果沒有指定原版下載器,則不能指定 Minecraft 安裝資料夾", + "t6b2048323d54080d": "Minecraft 下載操作失敗。請檢視錯誤詳情。", + "tf01ed48211021a47": "版本與 Forge 相容資料無法對應", + "ta868b8ba4374a7e0": "安裝 OptiFine(方式 A)失敗", + "t0c247555439b410b": "安裝 OptiFine(方式 B)失敗", + "tddec810d42434272": "執行 OptiFine 安裝器失敗", + "t9ed4bec5d844b7d9": "版本與釋出時間資料無法對應", + "t42f2ede3e4caed5e": "該伺服器端正在下載中!", + "tf78ca93e9925476a": "下載源連線逾時", + "t758af873093b85cd": "未知的 Minecraft 版本({0})", + "t4db04d86761297ef": "{0} 版本清單解析失敗({1})", + "t46a14880462e9f6a": "不換用", + "t0a592a0d47f8f538": "模組包裡似乎內建了啟動器,是否換用它繼續安裝?\r\n即將開啟:{0}", + "tef4d1058b662bb6a": "換用模組包啟動器?", + "t4523e519fa0dec3e": "換用", + "tb41ece010e846aa0": "PCL CE 無法處理加密的壓縮檔,請在解壓縮後重新壓縮為不加密的 zip 格式再試", + "t5efa5c86c96658f5": "模組包操作失敗。請檢視錯誤詳情。", + "t763ae4f9be9771e0": "模組包檔案(*.rar;*.zip;*.mrpack)|*.rar;*.zip;*.mrpack", + "t40429f1d1d245350": "選擇模組包壓縮檔", + "t1dd2ddd8327674fc": "該模組包正在安裝中!", + "t06274b1078865466": "遊戲路徑中不能含有驚嘆號或分號:{0}", + "t75e49b338b4afacb": "該模組包未提供遊戲版本資訊,無法安裝!", + "t2bd6193ea5041b87": "該 HMCL 模組包未提供遊戲版本資訊,無法安裝!", + "t30f1593165b78159": "該 MCBBS 模組包未提供遊戲版本附加資訊,無法安裝!", + "t9d5397c8fcc8f94c": "某項模組缺少必要資訊,已跳過:{0}", + "t0789b76931620e89": "開啟模組包檔案失敗", + "tccfaf5211cf7df04": "是否要下載模組包中的可選檔案 {0}?", + "tfc50a99caae0cddc": "跳過", + "tea0adda7f17cd7b7": "下載可選檔案", + "tab1e935488bf06d0": "模組包的檔案路徑超出了實例資料夾,請向模組包作者回饋此問題!\r\n錯誤的檔案:{0}", + "t464d48eb3e6be367": "檔案路徑校驗失敗", + "t4fa48085ffc3e6ae": "無法安裝模組包:目前啟動器已不再支援 Quilt 載入器。", + "t6a0e5dfa4702e9d8": "PCL CE 無法處理 rar 格式的壓縮檔,請在解壓縮後重新壓縮為 zip 格式再試", + "tac8de86b10ce404f": "接下來請選擇一個空資料夾,它會被安裝到這個資料夾裡。", + "td8f2eda3c923d0be": "選擇安裝目標(必須是一個空白資料夾)", + "t2cf8efc75fddf84c": "模組包中的部分模組版本已被模組作者刪除,所以沒辦法繼續安裝了,請向模組包作者回饋該問題", + "t3cec39ab83cd0873": "請選擇一個空白資料夾作為安裝目標!", + "tc3ba6a23d906b986": "CurseForge 模組包安裝:{0}", + "tdc97c107701abc69": "HMCL 模組包安裝:{0}", + "t592eb3790ed70716": "MCBBS 模組包安裝:{0}", + "t66ecc5652d3db44f": "MMC 模組包安裝:{0}", + "t38050ed75a8a4153": "Modrinth 模組包安裝:{0}", + "t0582e4f542603a00": "該模組包版本過舊,已不支援進行安裝!", + "ta1d92fe4579761f1": "未能找到適合的檔案結構,這可能不是一個 Minecraft 壓縮檔", + "t73052db1aa523fe6": "無法安裝模組包,其中出現了未知的模組載入器 {0}(版本為 {1})!", + "te1d74bb07585f823": "開啟模組包檔案失敗,檔案可能損壞或為不支援的壓縮檔格式", + "t2d6699257c4bee24": "構造模組下載資訊", + "tf850a03846268d9b": "下載額外檔案", + "taeae1c38a63a9054": "下載模組", + "td0619cf1951a25f1": "下載模組(主載入器)", + "t9d8088aadb676156": "解壓縮壓縮檔", + "teaa3c77b95314ea3": "解壓縮模組包檔案", + "t54628284eecf8765": "最終整理檔案", + "t49a5e123e9a9ae0b": "遊戲安裝", + "tfcaa1a8a79c8afb1": "模組包安裝", + "t7dc09a852c2b0930": "取得模組下載資訊", + "t8a87034e7a8f7d1d": "新增忽略標記", + "t5dbfce794cd27c76": "分析資源檔案索引位址", + "t5e64f8c7cd17f376": "後台分析資源檔案索引位址", + "t850bd4645a0d2f63": "分析資源檔案索引位址(副載入器)", + "te448212e6c381de6": "分析核心 Jar 檔案下載位址", + "t6648b90b63005612": "分析 Fabric 支援庫檔案", + "tfe2585b70e185d13": "分析遊戲支援庫檔案(副載入器)", + "td4c58f822a3aef82": "分析 LabyMod 支援庫檔案", + "t639f71eb7b54210c": "分析 Legacy Fabric 支援庫檔案", + "t8c86a23a263cd0b6": "分析 LiteLoader 支援庫檔案", + "tc8a5cf161a12c9fb": "分析 {0} 支援庫檔案", + "t07da133bbb650807": "分析缺失資源檔案", + "tddc4256b50c3f927": "分析缺失支援庫檔案", + "t235eb110efe7a01c": "分析 OptiFine 支援庫檔案", + "t10d916f991e5c7d8": "分析所需資源檔案(副載入器)", + "t36152f5016c75c73": "分析原版與 LabyMod 支援庫檔案(副載入器)", + "tc18d0670decbac13": "分析原版支援庫檔案(副載入器)", + "t43d830d701dd7e63": "建置伺服器端", + "tdb2989b3d2b56659": "後台複製資源檔案索引", + "t742cf1db4c0648a3": "刪除忽略標記", + "t322d0347e5da0fad": "下載資源檔案", + "t6e52a38d98a1e081": "下載資源檔案(主載入器)", + "t351e38925dcc0390": "下載資源檔案(副載入器)", + "t7b808081572fb7c3": "下載資源檔案索引", + "t4224da49aa04e71c": "後台下載資源檔案索引", + "t3e7a1bebf4cda08a": "下載資源檔案索引(副載入器)", + "t7ef995497cdacf64": "下載核心 Jar 檔案", + "t07003c11e5fe4aae": "下載 Fabric API", + "t84536b59b375886f": "下載遊戲支援庫檔案", + "t7824c78e48f6e9ec": "下載遊戲支援庫檔案(副載入器)", + "te43997ba30c73f65": "下載實例 JSON 檔案", + "t87f1dd50f2efde7a": "下載 LabyMod 用戶端 JSON 檔案", + "t850b58c5b9aabb7f": "下載 Legacy Fabric API", + "t7db47cc8d9375b4a": "下載支援庫檔案", + "ta86a2bd62f08fc79": "下載支援庫檔案(主載入器)", + "t704abaa1a2d7b6e2": "下載 LiteLoader 支援庫檔案", + "ta3437c05b03ae1af": "下載 {0} 支援庫檔案", + "t063c097b9651ab37": "下載 {0} 支援庫檔案(副載入器)", + "t548dab1c4fd069d7": "下載 {0} 主檔案", + "t87c38288cd3f93d7": "下載主檔案", + "t27f466ba7bc211f7": "下載 OptiFabric", + "t9e76b8d5b1154aa9": "下載 OptiFine 支援庫檔案", + "t725b88899ac8bd00": "下載 OptiFine 主檔案", + "tcc0687f3ce770246": "下載伺服器端檔案", + "tab80b1698d47695c": "下載原版與 LabyMod 支援庫檔案(副載入器)", + "tfca622f8a97f1a3c": "下載原版資源檔案", + "t963f930eaff1ccb9": "下載原版支援庫檔案(副載入器)", + "tc682d7d687c34a50": "Fabric {0} 安裝器下載", + "t5df370bbbc1eb180": "{0} 下載", + "tff923df470791e76": "{0} 安裝器 (*.{1})|*.{1}", + "te4921f72d87066b2": "取得 {0} 支援庫檔案", + "ta37bbd85da9c6917": "安裝 Forge(方式 A)", + "t9bf2d5ab9bc1ae80": "安裝 Forge(方式 B)", + "t98004dd0f372d9e3": "安裝 {0}", + "t5ed0ae446521bd0e": "安裝遊戲", + "t0bdf648848a51e7f": "安裝 LiteLoader", + "t36feda467bf527ff": "安裝 OptiFine(方式 A)", + "tfa9abade65008622": "安裝 OptiFine(方式 B)", + "td0e906de38a3bd2a": "LabyMod 安裝器下載", + "tee2e7e2c855329b8": "Legacy Fabric {0} 安裝器下載", + "ta53a40e20a35c07c": "LiteLoader {0} 下載", + "t3b859c8ac4d2ac96": "LiteLoader {0} 安裝器下載", + "t5d9e93846266cad7": "{0} {1} 下載", + "t4ef0b9ee70adc294": "下載 {0} {1}", + "t3129676f4afe03e3": "Minecraft {0} 下載", + "t549ddb7fc7ed4c7c": "Minecraft {0} 伺服器端下載", + "tec0d598694a0ddc1": "取得 Fabric 主檔案下載連結", + "td0acf72161974466": "取得 LabyMod 用戶端檔案下載位址", + "t090360d6da9ae7e3": "取得 Legacy Fabric 主檔案下載位址", + "t793ad8b8f3898167": "取得 {0} 詳細資訊", + "t1c804515417ec737": "取得 OptiFine 下載位址", + "tbc48fe8c80a89e80": "取得 OptiFine 主檔案下載位址", + "t6c33674b42ecf17a": "取得原版 Json 檔案下載位址", + "t61735d2fa2bde160": "OptiFine {0} 下載", + "t0eca281f2d7e8bbd": "準備下載 {0}", + "t5040d53068b79a12": "啟動 LiteLoader 依賴實例下載", + "te9fc22a5a7e0d478": "後台更新資源檔案索引", + "tb550edc45a307948": "下載原版 Json 檔案", + "t6dae3e0074e3a171": "下載原版支援庫檔案", + "t672309d2a4937b90": "等待原版下載", + "t66172d19b9166569": "未找到 Asset Index", + "tae119ab9ab5df41b": "無法讀取實例資料夾,可能是由於沒有權限({0})", + "td016464593adf365": "版本依賴項出現巢狀:{0}", + "tcf0fd86bc86e1456": "初始化實例 JSON 時失敗({0})", + "t50e16427b0eb1625": "未找到實例 JSON 檔案:{0}", + "te9e87d37f1ab8f71": "該實例不存在資源檔案索引資訊", + "te7287c7295ac4ef2": "Quilt 不支援 Minecraft {0}", + "t4b3aef9a87672c73": "無法識別:{0}", + "t90c6a5f758bf161c": "Minecraft 更新提示傳送失敗({0})", + "t363b83b42420228e": "無法取得版本號,結果為空", + "t24959e2bd7674d13": "版本號取得失敗:{0}", + "t371e8c7c2b832d2b": "(藍色版本)", + "t72f885f7783b65df": "(紫色版本)", + "t73b49cbcf04c0c66": "(紅色版本)", + "t88957145d46b6ce7": "2013 | 這個秘密計劃了兩年的更新將遊戲推向了一個新高度!", + "t28119dbbd3a79ff9": "2015 | 作為一款全年齡向的遊戲,我們需要和平,需要愛與擁抱。", + "te43a4e6fa8722156": "2016 | 是時候將現代科技帶入 Minecraft 了!", + "tca7f25ab9366b74a": "2019 | 我們從地下室的廢墟裡找到了這個開發於 1994 年的傑作!", + "t26b1c5a928eab75e": "2020 | 我們加入了 20 億個新的維度,讓無限的想像變成了現實!", + "t8f6fc5e5c9c8e13e": "2022 | 一次一個方塊更新!迎接全新的挖掘、合成與騎乘玩法吧!", + "t149526ae9afed496": "2023 | 研究表明:玩家喜歡作出選擇——越多越好!", + "taa4f08f65a97c993": "2024 | 毒馬鈴薯一直都被大家忽視和低估,於是我們超級加強了它!", + "tc2a0db61ced98643": "2025 | 你可以合成任何東西——包括合成你的世界!", + "t2dc4464c65ece2c8": "2026 | 為什麼需要物品欄?讓方塊們跟著你走吧!", + "t9224d15218e7e49d": "試玩", + "tc4900615729aa2f1": "你必須先登入微軟帳戶才能啟動遊戲!", + "t654320ad6ae70500": "購買游戲", + "t6bf68aafc7cee197": "已取消啟動!", + "t76dffb2c4f2cc2ad": "遊戲將以試玩模式啟動!", + "td13a6b69ab3c4896": "但是我拒絕", + "t0cb5b33a8328c700": "PCL CE 已經為你啟動了 {0} 次遊戲啦!\n如果 PCL CE 還算好用的話,也許可以考慮贊助一下 PCL 原作者……\n如果沒有大家的支援,PCL 很難在免費、無任何廣告的情況下維持數年的更新(磕頭)……!", + "t3b27be4b91b7a351": "支援一下!", + "tecc8c755ac14647f": "{0} 次啟動!", + "t657d020bdfdb7cfb": "已取消匯出啟動指令碼!", + "tbeccf74cd10d3b8b": "匯出啟動指令碼成功!", + "tb940a325d459b0a6": "下次一定", + "t7e310e5ccdbcf626": "看起來你似乎沒買游戲...\n如果覺得 Minecraft 還不錯,可以購買支援一下,畢竟開發遊戲也真的很不容易...不要一直接嫖啦。\n\n在驗證一個微軟帳戶後,就不會出現這個提示了!", + "tc9a07ce1b389631a": "支援!", + "tfc1342634a5a9877": "考慮購買一下游戲?", + "tc0368e509028f754": "{0} 啟動成功!", + "t8339d02397914afa": "已有遊戲正在啟動中!", + "tdade3f9269d73a36": "取消啟動結束程式失敗", + "ta69385b0e77f69a0": "無法連線到第三方登入伺服器({0})", + "tcb817b9f6df0e3b0": "無法連線到第三方登入伺服器({0})\n詳細資訊:", + "t8a4a93ef0be24ff4": "無法啟動 Minecraft:{0}", + "tce4b563b1e0fcd5a": "執行自訂指令失敗", + "t6441debc90d92366": "啟動器介面不可用,無法執行此操作。", + "t7c8e880862b48d05": "匯出啟動指令碼失敗。請檢視錯誤詳情。", + "t6bb2d9a05c810a24": "調整顯示卡設定失敗,Minecraft 可能會使用預設顯示卡執行", + "t4b826c6045501691": "錯誤的狀態改變:{0}", + "t625a743c8589309e": "Minecraft 啟動失敗。請檢視錯誤詳情。", + "t8942af803997eeab": "實例 JSON 中沒有 mainClass 項!", + "t81015a190ce3068c": "無法開啟 Natives 檔案({0}),該檔案可能已損壞,請重新嘗試啟動遊戲", + "t98f383f475ad949e": "沒有可用的 Java,已取消啟動!", + "t95d7954997299ddd": "Minecraft 啟動操作失敗。請檢視錯誤詳情。", + "t3b659248e42d4da7": "OptiFine 與自動進入伺服器可能不相容,有機率導致紋理遺失甚至遊戲崩潰!", + "t0e4e9bcc040dc17d": "設定程式優先順序失敗", + "t1dc242a1da26ac90": "新增 Proxy 資訊到遊戲失敗,放棄加入", + "t8e7403cdad3aa82a": "重新整理啟動資訊失敗", + "t4bb9bfdb9b969aa9": "啟動失敗。\n\n錯誤資訊:\n{0}", + "tc2e72b3e9539a366": "更新 options.txt 失敗。請檢視錯誤詳情。", + "t50b1ec6881faa77a": "更新 launcher_profiles.json 失敗。請檢視錯誤詳情。", + "t653d045d630d7b42": "Minecraft 執行監控失敗。請檢視錯誤詳情。", + "t919ef5f1b2ebb6c7": "自動下載", + "t545dce6cf2cac721": "PCL CE 未找到 {0},是否需要自動下載?\n如果已經安裝了 {0},可以在 設定 → 啟動選項 → 遊戲 Java 中手動匯入。", + "t78bc4ff164e489bb": "自動下載 Java?", + "tb338957ee88d38c9": "檢查 Java 相容性失敗。請檢視錯誤詳情。", + "te1c70601e0990be0": "全域指定的 Java({0})超出版本要求範圍 [{1}, {2}],可能導致遊戲崩潰。", + "t17f154d9933908cf": "實例指定的 Java({0})超出版本要求範圍 [{1}, {2}],可能導致遊戲崩潰。", + "ta74df9d076ad2976": "無上限", + "tfa41d59eba2ae220": "無下限", + "t4c78368cfe226393": "實例相對路徑指定的 Java({0})超出版本要求範圍 [{1}, {2}],可能導致遊戲崩潰。", + "t971eaaf22dec2777": "請自行搜尋並安裝", + "tf9c9f3ef57e0c00f": "你需要安裝 Java 7 才能啟動該版本。\n請自行搜尋並安裝 Java 7,安裝後在 設定 → 啟動選項 → 遊戲 Java 中重新搜尋或匯入。", + "t51e9ccc1e5938f58": "你需要安裝 Java 8u141 或更高版本的 Java 8 才能啟動該版本。\n請自行搜尋並安裝,安裝後在 設定 → 啟動選項 → 遊戲 Java 中重新搜尋或匯入。", + "tb408d038e5ea7069": "你需要安裝 Java 8u141 ~ 8u320 才能啟動該版本。\n請自行搜尋並安裝,安裝後在 設定 → 啟動選項 → 遊戲 Java 中重新搜尋或匯入。", + "t60471a2227f24ece": "你需要先安裝 LegacyJavaFixer 模組,或安裝 Java 7 才能啟動該版本。\n請自行搜尋並安裝 Java 7,安裝後在 設定 → 啟動選項 → 遊戲 Java 中重新搜尋或匯入。", + "te0fa1a233ccfdbbc": "PCL CE 未找到 {0}。\n請自行搜尋並安裝 {0},安裝後在 設定 → 啟動選項 → 遊戲 Java 中重新搜尋或匯入。", + "te6880909fae0cd7b": "未找到 Java", + "taa970e9b5f66cb27": "下載 Java", + "t9a0dca76eb146055": "下載 Java 檔案", + "td1f0861e03fb7047": "取得 Java 下載資訊", + "t38bb76bf057eddb6": "取得登入輸入資訊失敗", + "te4343921c928a856": "登入失敗", + "t0ce677709002afed": "登入提示", + "t8e18b410a825cf5e": "請在登入時選擇 {0}其他登入方法{1},然後選擇 {0}使用我的密碼{1}。\n如果沒有該選項,請選擇 {0}設定密碼{1},設定完畢後再登入。", + "t957244cdb9f232ab": "重新登入", + "t0139e54b9887614d": "設定密碼", + "tb1284444083463ae": "需要使用密碼登入", + "tb4a719df37fc0c1a": "啟動器在嘗試重新整理帳戶資訊時遇到了網路錯誤。\n你可以選擇取消,檢查網路後再次啟動,也可以選擇忽略錯誤繼續啟動,但可能無法遊玩部分伺服器。", + "t84c469072cb76e46": "帳戶資訊取得失敗", + "tc4fb62202bad55cf": "註冊", + "td0885b1c8accb8c4": "第三方驗證失敗", + "t505ed533316954c0": "選擇的角色 {0} 無效!", + "ta47d7c3db5a3ecd7": "登入失敗:{0}", + "t629db69d51c674ac": "第三方驗證登入失敗。\n\n詳細資訊:\n{0}", + "tc74669bd4e04beb9": "第三方驗證登入失敗,請檢查你的網路狀況是否良好。", + "t2507cb83ddb93d57": "第三方驗證登入失敗,請檢查網路連線。\n\n詳細資訊:\n{0}", + "t2fe08f37f9c4fbc9": "$你還沒有建立角色,請在建立角色後再試!", + "t069848b5109f0838": "你還沒有建立角色,無法更換!", + "t53353b43b4fb6f7c": "你的帳戶中只有一個角色,無法更換!", + "t5c048b6749548459": "重新整理登入失敗", + "tfcd62b9638113ae6": "重新整理登入失敗。\n\n詳細資訊:\n{0}", + "te16a027b3819593a": "二輪重新整理登入失敗", + "t1beddd14a2487400": "選擇使用的角色", + "td353cfa947a32c37": "$登入失敗:連線登入伺服器超時。\n請檢查你的網路狀況是否良好,或嘗試使用 VPN!\n詳細資訊:", + "te946fee70b5432b7": "登入失敗:連線登入伺服器超時。\n請檢查你的網路狀況是否良好,或嘗試使用 VPN!", + "t69aebccd3de9e3b5": "登入失敗:連線登入伺服器超時。\n請檢查網路連線,或嘗試使用 VPN。\n\n詳細資訊:\n{0}", + "t7810e333174a1be1": "驗證登入失敗。\n\n詳細資訊:\n{0}", + "t9f71cfd68e8da20d": "目前 IP 的登入嘗試異常。\n如果你使用了 VPN 或 Proxy,請把它們關掉或更換節點後再試!", + "t0c97e64f4f6524a9": "該帳戶似乎已被微軟封禁,無法登入。", + "t4a391ad0f48f212d": "請在開啟的網頁中修改帳戶的出生日期(至少改為 18 歲以上)。\n在修改成功後等待一分鐘,然後再回到 PCL CE,就可以正常登入了!", + "td5e83cb3e4a881fe": "建立檔案", + "t0041600a66874b8a": "請先建立 Minecraft 玩家檔案,然後再重新登入。", + "t0cdab0208dd9b1c1": "暫時無法取得到此帳戶資訊,此帳戶可能沒有購買 Minecraft Java Edition 或帳戶的 Xbox Game Pass 已過期", + "ta84457c800fa97e2": "你已經新增了這個檔案...", + "t341cfad6e497fb62": "購買 Minecraft", + "te7e566064371a953": "你的網路所在的國家或地區無法登入微軟帳戶。\n請使用加速器或 VPN。", + "t6c4c9fd31e4cf346": "登入嘗試太過頻繁,請等待幾分鐘後再試!", + "t90937428a6292a44": "13 歲以上", + "t8cac58e844809460": "12 歲以下", + "tb80931f90bb75f3b": "該帳戶年齡不足,你需要先修改出生日期,然後才能登入。\n該帳戶目前填寫的年齡是否在 13 歲以上?", + "t5186de1fc617beb8": "你尚未註冊 Xbox 帳戶,請在註冊後再登入。", + "tf21947a021445476": "目前檔案使用的第三方驗證伺服器與實例要求使用的不一致,請使用符合要求的檔案啟動遊戲!", + "t2b1bf91e41526b03": "啟動前檢查失敗:{0}", + "t04b8df72d324a8f9": "Minecraft 存在問題:{0}", + "td0d23982cde78a69": "遊戲路徑中不可包含「!」或「;」({0})", + "t3540d033674d12f2": "未選擇 Minecraft 實例!", + "ta683889781f32c58": "請先選擇一個檔案再啟動遊戲!", + "td63c184fbd0ad0c8": "返回處理", + "t5fe625f4c5f72ecf": "欲啟動實例 \"{0}\" 的路徑中存在可能影響遊戲正常執行的字元(非 ASCII 字元),是否仍舊啟動遊戲?\n\n如果不清楚具體作用,你可以先選擇 \"繼續\",發現遊戲在啟動後很快出現崩潰的情況後再嘗試修改遊戲路徑等操作", + "t7a1a04bbbb8b300a": "遊戲路徑檢查", + "t936dfbe4346a884f": "目前實例要求使用微軟驗證,請使用微軟驗證檔案啟動遊戲!", + "t6bbc1a695ac1483e": "目前實例要求使用微軟驗證或第三方驗證,請使用符合要求的檔案啟動遊戲!", + "t4962e67427cca4db": "目前實例要求使用第三方驗證,請使用第三方驗證檔案啟動遊戲!", + "t365e4167bf66733d": "執行自訂指令", + "t0e943126188968da": "結束處理", + "tbdeb90f6044cfeff": "取得啟動參數", + "t2a717bf9256ca194": "取得 Java", + "t5b494f8db501baf6": "預啟動處理", + "t6d1e318000cc6226": "Minecraft 啟動", + "ta48102d0cbf2b964": "啟動處理程式", + "t3fc9bbd6665c2c1d": "等待遊戲視窗出現", + "t8c565bc877a118f8": "背景音樂已清除!", + "t648799bd110d01d3": "正在播放:{0}", + "t72b333d3f6056e5f": "背景音樂已重新整理:{0}", + "tccdae4e6b292ec87": "重新播放:{0}", + "t20afef0cc1d05914": "已暫停:{0}\n左鍵復原播放,右鍵播放下一曲。", + "t025d58cc42d4e4ef": "已暫停:{0}\n左鍵復原播放,右鍵重新從頭播放。", + "ta46033f7ccb669f9": "正在播放:{0}\n左鍵暫停,右鍵播放下一曲。", + "t029eb2ae0c89245c": "正在播放:{0}\n左鍵暫停,右鍵重新從頭播放。", + "t1372bd54e91d50e1": "音訊裝置正被其他程式佔用。請關閉佔用程式後重啟 PCL CE,以復原音樂功能。", + "t11dbd29108dac901": "音訊裝置已發生變化。請重啟 PCL CE,以復原音樂功能。", + "tabf74735dc98f54f": "沒有可以播放的音樂!", + "t1eb91417ae14881f": "未偵測到可用的背景音樂!", + "t51cc48d44d785f39": "音樂播放尚未開始!", + "t0232b0d0cf8235dc": "初始化或重新整理背景音樂失敗。請檢視錯誤詳情。", + "ta179991c9763d2fb": "無法播放 {0}。", + "t182978e78d3a250b": "無法播放 {0}:PCL CE 不支援播放過程中變更音訊屬性的檔案。", + "tad2dffd1ad63b6b9": "無法播放 {0}:PCL CE 可能不支援此格式,請轉換為 .wav、.mp3 或 .flac。", + "t9ff2e447b1cd935a": "實例選擇操作失敗。請檢視錯誤詳情。", + "t30bf6ea1e6cbb3ea": "新增資料夾失敗:PCL CE 沒有存取該資料夾的權限!", + "t8cb22d45913254c2": "新增已有資料夾", + "tf30f31b25c6a7f23": "將一個已有的 Minecraft 資料夾新增到清單", + "t311ff990373611d3": "新增或匯入", + "td65df22bba6becfe": "資料夾 {0} 已新增!", + "t3be345aa979f5bb6": "此資料夾已在清單中!", + "tfe3210897a1d2cb3": "在下載工作進行時,無法新增遊戲資料夾!", + "t8d6efbfdb7dbf7bb": "在下載工作進行時,無法建立遊戲資料夾!", + "t670ec25af8419f48": "保留", + "tc9c488906638c1d5": "是否需要清理 PCL CE 在該資料夾中的設定檔?\n這包括各個實例的獨立設定(如自訂圖示、第三方登入設定)等,對遊戲本身沒有影響。", + "tf132a7d5cf4e3411": "設定檔清理", + "t3c7a4fb3566dd193": "確認清空", + "t3ccc7a23bf4e7fac": "如果你在該資料夾中存放了除 Minecraft 以外的其他檔案,這些檔案也會被一同清空!\n繼續清空會導致該資料夾中的所有檔案永久遺失,請在仔細確認後再繼續!\n目標資料夾:{0}\n\n這是最後一次警告!", + "t7aed7ab2250f6286": "你確認要清空這個資料夾嗎?\n目標資料夾:{0}\n\n這會導致該資料夾中的所有存檔與其他檔案永久遺失,且不可復原!", + "t2d372a7e15c62804": "正在清空資料夾 {0}!", + "t71d79d31f66addfc": "已清空資料夾 {0}!", + "t2d4a360f030c202a": "新增 .minecraft 資料夾", + "t4ee29f956f35a704": "在 PCL CE 目前所在資料夾下建立新的 .minecraft 資料夾", + "tb8e075b9e6571f9a": "新增 .minecraft 資料夾成功!", + "t9112e7066855185e": "目前資料夾", + "ta3ea3c17b401bd2f": "確認刪除", + "tc2762d4d2b4a9664": "如果你在該資料夾中存放了除 Minecraft 以外的其他檔案,這些檔案也會被一同刪除!\n繼續刪除會導致該資料夾中的所有檔案永久遺失,請在仔細確認後再繼續!\n目標資料夾:{0}\n\n這是最後一次警告!", + "tf7bc6a4534c6c560": "你確認要刪除這個資料夾嗎?\n目標資料夾:{0}\n\n這會導致該資料夾中的所有存檔與其他檔案永久遺失,且不可復原!", + "tdfc71c4b86cadf4c": "正在刪除資料夾 {0}!", + "taa21dd6bb478244a": "已刪除資料夾 {0}!", + "t480f940c4266accf": "刪除警告", + "t18dd417828ff3dfe": "匯入模組包", + "t53069994090bc005": "輸入該資料夾在左邊欄清單中顯示的名稱。", + "t00da52a6efc08b10": "輸入顯示名稱", + "taf4152a85daa327f": "無效的 Minecraft 資料夾:{0}", + "t774b31d41110843f": "無效的 Minecraft 資料夾:{0}\n\n詳細資訊:\n{1}", + "t6c1a27b35c2fdfa7": "Minecraft 資料夾失效", + "t26b7df503021b3be": "Minecraft 資料夾路徑中不能含有驚嘆號或分號!", + "taf9996bc4d45ff49": "資料夾清單", + "te75e8b4e5c971227": "下移", + "tf853a70b120418be": "上移", + "t8da3eaeb9d21ee6e": "資料夾名稱已更新為 {0} !", + "tc5706b5efe897788": "官方啟動器資料夾", + "tac86ad117c4ad469": "移出清單", + "t3d916fa79519f383": "資料夾 {0} 已從清單中移除!", + "t0d0cbac2eee54113": "重新命名", + "t4fd5f93b2e189662": "復原名稱", + "t7f5c83622e9032e2": "資料夾名稱已復原!", + "tdd3424eca3f5926e": "在下載工作進行時,無法切換遊戲資料夾!", + "tcb087a540ef45e88": "新增資料夾失敗 ({0})", + "t5293d5b2e40c9c2b": "向資料夾清單中新增新資料夾失敗", + "t54e5c6b2ebbb1327": "清理殘留的忽略專案失敗({0})", + "t1c0741133f4c11c4": "拖曳資料夾排序操作失敗", + "tdc22198bd9d518d6": "自動安裝模組包失敗:{0}", + "t83d5573ea5bac3f9": "載入 Minecraft 資料夾清單失敗", + "tfe877ffce10860ac": "{0}資料夾 {1} 失敗", + "t4d05f569fa022dde": "從清單中移除遊戲資料夾失敗", + "t8fe776059e171394": "重新命名資料夾失敗", + "tac291dd5d1653e66": "由於該實例開啟了實例隔離,刪除時該實例對應的存檔、資源包、模組等檔案也將被一併刪除!", + "te904c3f1787ed978": "未找到任何遊戲實例,請先下載一個遊戲實例。\n若有已存在的實例,請在左邊的清單中選擇新增資料夾,選擇 .minecraft 資料夾將其匯入。", + "tb8eef7430e8ded1a": "無可用實例", + "t37b48005c4f3bb2c": "無匹配的遊戲實例", + "t7070707a64c9a260": "分類實例清單失敗", + "ta796d7fd4f5d2861": "刪除實例 {0} 失敗", + "tb1bc097d0d5046f9": "載入實例圖示失敗", + "tee6d064758d1c64b": "載入 .minecraft 實例清單失敗", + "t65f6ae117eb5a358": "載入實例失敗({0})", + "t624a1bd969b04ad3": "將實例清單轉換顯示時失敗", + "tfaba197404b1a0cc": "沒有實例被隱藏,你可以在實例設定的實例分類選項中隱藏實例。\n再次按下 F11 即可退出隱藏實例檢視模式。", + "tb4b5ababd87530ae": "無匹配的隱藏實例", + "t67293e20df986327": "無隱藏實例", + "t9e49a62d885d4a69": "正在取得實例清單", + "taa110a744e0e909a": "開啟例專案錄", + "t52408b1748edeba7": "請輸入搜尋內容", + "tb6df28d3654ef358": "搜尋遊戲實例", + "t8b146f614d81d9d6": "沒有找到與 '{0}' 匹配的隱藏實例", + "t72d0ea2301ee1ef8": "沒有找到與 '{0}' 匹配的實例", + "t9d86f73d8c839940": "輸入實例名稱或 [遊戲版本號] [模組載入器] 進行搜尋", + "t2018b7c67d9df1aa": "Cleanroom 實例", + "tad25415f662cadae": "錯誤的實例", + "t9f7c03879bc8f209": "Fabric 實例", + "t11411c63fa861dfb": "Forge 實例", + "te4a51ed9a6eb7f28": "隱藏的實例", + "t754c99e4beca6d42": "LabyMod 實例", + "t6e93910539e49db1": "LiteLoader 實例", + "tdfb722df57594e91": "可安裝模組", + "t5a78fbed8fab7ac6": "NeoForge 實例", + "tc1a3c13cf005c799": "Quilt 實例", + "t307379fa50de1c8f": "愚人節版本 {0}", + "td0c19b7bcac3341b": "實驗性快照{0}", + "t364496f9944c3a92": "實驗性快照", + "tafa96f87a75359a5": "需要安裝 {0} 作為前置實例", + "t15d946f9a3f66ba0": "PCL CE 沒有對該資料夾的存取權限,請右鍵以系統管理員身分執行 PCL CE", + "taf60b1b6781419af": "未找到實例 {0}", + "tb45121cb3219798b": "該實例未被載入,請向開發者回饋此問題", + "t34ed76db9d138f12": "預釋出版 {0}", + "t7d94c018ec8d8aad": "正式版 {0}", + "tb2d20face804b66b": "釋出候選 {0}", + "t72a02fbb1918ecd8": "發生了未知錯誤,請向作者回饋此問題", + "t956930e51f0034a2": "快照版 {0}", + "te54d01b8f183de30": "PCL CE 無法識別該版本的 Minecraft 版本號", + "t157743a115bb9b04": "設定操作失敗。請檢視錯誤詳情。", + "tbfc3cc67977c4968": "Plain Craft Launcher Community Edition 的開發團隊!", + "tc8b5ca8c068c74a2": "PCL Community", + "t959f5c10296aca64": "貢獻者們", + "t92b2b2dec25efa81": "檢視更多", + "t4f3322e66bd27de5": "載入貢獻者資訊失敗", + "ted7b822a352f1a8f": "GitHub 首頁", + "t5c34f7d0e2124dca": "授權與版權聲明", + "t807babdd337ee4b4": "檢視許可檔案", + "tc8137453b496a581": "檢視來源網站", + "t81bfdd3e969c811c": "Plain Craft Launcher 的原作者!", + "t73a72e066ebc68df": "龙腾猫跃(龍騰貓躍)", + "t035440298e53691b": "檢視原始碼", + "t6f29a8a9196ab325": "贊助原作者", + "t52d25a9e30ba94f1": "關於", + "tb4069a79aa2a678e": "Copyright © 龙腾猫跃 2016. All Rights Reserved.\r電腦軟體著作權登記號:2020SR0875133\r違法違規行為檢舉投訴信箱:hexdragon@vip.qq.com\r非 MINECRAFT 官方產品。未經 MOJANG 或 MICROSOFT 批准,也不與 MOJANG 或 MICROSOFT 關聯。", + "t3dac0de92967a617": "原始碼", + "tce27748c701b3f07": "本軟體的 User Agent 中包含啟動器的版本號,以統計各版本的使用者數量。\r除此之外,本軟體不會向開發者上傳任何其他資訊。", + "tcc417001c6df7013": "使用者協議與免責宣告", + "t5f03c875fedd5804": "上游版權與法律資訊", + "t447f5a94d1d1baf0": "目前版本: %VERSION% (%BRANCH%, %VERSIONCODE%, %COMMIT_HASH%)", + "t1db09f99bc07d686": "你現在是不是超無聊的?", + "t853b2cc96a46e4ed": "並不是", + "t844f2790a6ab01c5": "那你還點什麽……真是搞不懂。", + "td3aea5ff9a116023": "咕咕咕?", + "taa2a331d2dcf5668": "是的", + "tac3e99f08c1426ac": "還點,還點就不讓你點了……", + "t678356bfcd86ce2f": "嗯,加油吧,嗯……", + "t2844d197ce946c3d": "隱藏主題 混亂黃 已……嗯不對,這是 PCL CE,應該沒有這東西……", + "t856909212f10a850": "點這個很好玩嗎……", + "tce747d78d31ac834": "後面什麼都沒有了哦!", + "t93315bcd0e441bcd": "還點?", + "tfc23bacc172e8469": "你怎麽還這麼無聊啊?", + "t9d76c8fb32d29b01": "累死了", + "t17bc26230690587f": "好吧……不過後面是真的什麽也沒了,不用點了真的。", + "t677dba982d2faa73": "你真的不累嗎?", + "t31a9aab9d69e2374": "你真的真的不累嗎?", + "t3c9827b1a8508e9b": "你真的真的真的不累嗎?", + "t5dd7d1319ebf4115": "真的不累", + "taa2a319aa39178ce": "真的真的真的不累", + "t012ad2f1967c181b": "那你就別點了喂……後面真的真的真的什麼都沒有了!", + "t49f4c7f33678f149": "溫馨提示", + "tf2117bc2a4b9e77c": "超溫馨的溫馨提示", + "t7a0196c867021130": "超超超溫馨的溫馨提示", + "t51835cce05d6a549": "連線與隱私說明", + "t320d3c1f295a0e51": "PCL CE 開放原始碼", + "teab081c430521c52": "Copyright © 2026 PCL Community & 龙腾猫跃.\r非 MINECRAFT 官方產品。未經 MOJANG 或 MICROSOFT 批准,也不與 MOJANG 或 MICROSOFT 關聯。", + "t655d18bb77ca0039": "Natayark OpenID 服務條款", + "t73b126a0aabe2e01": "其他資訊", + "t9d06d61ee41fcd3e": "隱私說明", + "t168d1ea49b72bf5c": "啟動器已移除裝置遙測、錯誤自動回報及原專案遠端連線開關。連線使用本機設定的暱稱與節點,不需要 Natayark 帳戶。連線節點和大廳成員可接觸到連線所需的網路位址、暱稱及本次啟動隨機產生的工作階段識別碼;本機硬體識別碼不再作為連線識別碼傳送。記錄保存在本機,回饋時由使用者自行選擇是否分享。", + "ta35a70eb14682930": "版權聲明與法律資訊", + "t34148e2b1bb6d40e": "轉到部落格", + "t6cb56e40cc752f9c": "提供 BMCLAPI 鏡像來源和 Forge 安裝工具,詳見 https://bmclapi.bangbang93.com", + "tb690fb353b95bd25": "提供了 PCL CE 的相關雲服務", + "tfa40a47cd8f8f8c2": "設計並製作了 PCL CE 的圖示", + "tfb30d3ee224eec37": "提供了連線模組", + "t45c78b83a562341a": "提供了 MCIM 社群資源鏡像來源和幫助庫圖床!", + "t0e2d0fc0fb341558": "提供了模組名稱的中文翻譯和更多相關資訊!", + "tb59c1811054bb4b4": "bangbang93", + "t756076b519e4f03f": "EasyTier", + "tec28f9eae8efb349": "Emperormummy", + "t60b5ba4ac6f8f595": "Pysio @ Akaere Network", + "tf24ccdbd91428f25": "雲默安 @ 至遠光輝", + "t4d37865b71872697": "z0z0r4", + "t03eab0e484bc869b": "開啟百科", + "tbdc799e5677d1954": "開啟網站", + "t84fa39a5943f1b24": "贊助鏡像來源", + "tc08d52bad6f70342": "特別鳴謝", + "t8b2106ca13719cb2": "回饋", + "t225df982c62420ad": "{0}\n\n是否回饋此問題?如果不回饋,這個問題可能永遠無法得到解決!", + "t916b55495ae5bdfd": "{0}\n\n將 PCL CE 更新至最新版或許可以解決這個問題。", + "t7d337d7bb23b9f79": "提交者:{0}({1})", + "tcb9976823cd92611": "無法取得到內容", + "te422670a2a64311e": "正在取得回饋清單", + "t21dda8a60ca020aa": "若要彙報 Bug,請點擊「開啟資料夾」並上傳 Launch-{0}-[一串數字].log 中包含錯誤資訊的檔案。\n\n遊戲崩潰一般與啟動器無關,請不要因為遊戲崩潰而提交啟動器回饋。", + "tc6ca814dc1e4dafb": "不需要", + "tdd453a19bb1dc13b": "回饋提交提醒", + "tf604b9cfcbaf6037": "在提交回饋之前,先查詢一下是否存在重複回饋,如果有重複回饋,那麼請不要再次提交回饋,這樣會加劇維護者的負擔……\n注意:此頁面未展示所有的回饋,如需檢視更多回饋,請前往 GitHub。", + "t1a9656a6fd78e1da": "前往回饋", + "t228d8b711ccf3ab3": "提交回饋", + "t4f5b599d6f30a7d1": "重新檢查更新", + "t62d71c571eb90743": "檢查更新失敗,因此無法提交回饋。\n請連線網際網路,檢查更新後確認該問題在最新版中依然存在,再提交回饋。", + "t79e91fbf5a0b78d9": "目前 PCL CE 不是最新版,因此無法提交回饋。\n請更新後確認該問題在最新版中依然存在,再提交回饋。", + "tf596f520eb5a277f": "無法提交回饋", + "t54b89f901274588b": "未分類", + "tf098218a3032a625": "已拒絕", + "tc9bb70bcaaa3bee1": "已忽略", + "t8d12fc0d4eb26021": "暫停", + "t3b7e27cb4379da3c": "正在處理", + "t34411312dc1e1f65": "在即", + "t251bc40e7027dfc0": "等待", + "t8fb3a3261b438645": "等待處理", + "t09ee1f81b9915207": "在日誌中輸出 Cli 資訊以用於除錯", + "t2263b01199fe59d8": "在啟動器日誌中每 30s 輸出一次 EasyTier Cli 資訊以便於開發者和社群支援調查。\n該選項僅用於除錯目的,不推薦一直開啟。", + "tf23b88723a5af181": "允許使用 IPv6 通訊", + "t3b7e421dd45ec058": "IPv6 相比於 IPv4 更容易進行 P2P 通訊,能極大改善連線體驗,除有特殊原因外不建議關閉。", + "tee966e1122adc493": "改變設定項失敗", + "t407600e503713ece": "初始化連線頁設定失敗", + "t8a5accfd518c6eca": "取得網路測試結果失敗。請檢視錯誤詳情。", + "t30bfbb5a5647c7ef": "已初始化連線頁設定!", + "t513b240407ca2956": "選擇最低延遲路徑而不是最短路徑", + "td9c1e7dfa9e7f9d2": "啟用後,EasyTier 將在通訊時選擇延遲最低的路徑,而不是路由跳數最少的路徑。\n啟用此選項在部分情況下能降低連線時的延遲,但可能會提高丟包率。", + "tb7c1fc233a857f66": "對對稱型 NAT 進行埠猜測", + "tc6b4ea96735f3104": "讓 EasyTier 嘗試對對稱型 NAT 進行埠猜測(生日悖論)。\n這也許可以改善連線體驗,但在部分情況下也可能導致一些問題。\n一般保持開啟即可。", + "t61c34cca8750946c": "協議偏好", + "t2e9430507b92dee1": "TCP", + "t12c90425f9a33d63": "讓 EasyTier 優先使用 TCP 進行通訊,TCP 通常能帶來更好的穩定性", + "tdc4030f9688d6e67": "UDP", + "ta466cf4c7c16a577": "讓 EasyTier 優先使用 UDP 進行通訊,UDP 通常能帶來更低的通訊時延", + "ta70f93226e0720e3": "修改此處的設定後,需要重新啟動大廳以使設定生效。", + "t1a3f0617d6de8e52": "使用者名稱", + "t3786a41b109aac73": "PCL CE 會盡可能使用此處的使用者名稱用於大廳資訊展示。\n若留空,則使用 Natayark ID 的使用者名稱。\n\n部分情況下可能始終展示 Natayark ID 使用者名稱,而非此處設定的名稱。", + "t2f1f3ce718ccabd9": "IPv6: {0}", + "ta52d1b6e84cd1052": "IPv6: 尚未偵測", + "t4d2966c438002afc": "尚未偵測", + "t69ed375721d90fff": "開始測試", + "td93373f81363e3cc": "支援", + "tfb5524c38154375e": "TCP NAT 型別: {0}", + "t046700c56738d22f": "TCP NAT 型別: 尚未偵測", + "tc8f3060095865885": "正在測試", + "tc2b7d1d16044eae7": "網路測試", + "td14d3566aa4938ab": "UDP NAT 型別: {0}", + "t48048211fcb0fd51": "UDP NAT 型別: 尚未偵測", + "t7c5378606570020b": "不支援", + "tf08d34169341e0d0": "初始化其他頁設定失敗", + "t16564ee546afabf0": "已初始化其他頁設定!", + "t294a1ac5cd9ffa49": "檔案下載源", + "t6a9ffc8f41744e00": "優先使用官方源,在載入緩慢時換用鏡像來源", + "t28447a978045e72d": "遊戲資源取得行為", + "tded7c9d6351ed89a": "盡量使用鏡像來源", + "t78f63dabc9722495": "盡量使用官方源", + "tea5763857dc4580e": "版本清單源", + "t3701feffd233fcfc": "盡量使用鏡像來源(可能缺少剛更新的版本)", + "t316ed1389081bd72": "自動設定為啟動器語言", + "t18009bb726c0dab4": "遊戲語言", + "t75aef217fe826da7": "遊戲更新提示", + "t4e679e6605ec3cdf": "識別跳轉剪貼簿中的社群資源連結", + "t9e4129a9cab4faf6": "開啟此選項後,PCL CE 將會讀取你的剪貼簿並識別其中的資源連結,並詢問你是否要跳轉到詳情頁面。", + "tdfe304b06f22b322": "正式版更新提示", + "tde6d4af47b324415": "在 Minecraft 正式版更新時彈出視窗提示", + "t78dc05c3affaba2e": "開發版更新提示", + "t7c2a46b90ec00890": "在 Minecraft 開發版(快照、預發布版)更新時彈出視窗提示", + "tb8f88aeead1520c8": "協助工具", + "t808c417cbe281fb4": "下載模組時自動檢查並安裝必需前置", + "t0aad21e38cb31a02": "安裝模組時,若偵測到缺少必需前置,將列出前置清單供確認後自動下載安裝(可在確認時取消)", + "t4f5b37450a4780c6": "檔案名格式", + "t88e454d9c767686b": "【機械動力】create-1.21.1-6.0.4", + "ta3a5f1ae156f33d6": "[機械動力] create-1.21.1-6.0.4", + "t117b2b0bb6482497": "機械動力-create-1.21.1-6.0.4", + "te8ecd64405711f82": "create-1.21.1-6.0.4-機械動力", + "t903ef8218edbf7d8": "create-1.21.1-6.0.4", + "t18fe0570712243a2": "下載社群資源時,其預設檔案名的格式", + "t262aba8abbc29843": "不顯示 Quilt 載入器", + "t90c7475f7b2b6c57": "不在社群資源的載入器展示中顯示 Quilt 載入器", + "t84b22c759a18bebe": "模組管理樣式", + "t388d7e42b29d1362": "標題顯示檔案名,詳情顯示譯名", + "t256870b9129547c1": "標題顯示譯名,詳情顯示檔案名", + "t5983c446e38dff7a": "在模組管理頁面中,模組項的顯示方式", + "ta81c476b36158de7": "快速下載行為", + "t4e4399bf6d85879a": "總是詢問", + "t1c0500ea5de39faa": "詢問並下載到選擇的實例", + "t7f0a99440b3cd1a2": "詢問並下載到一個路徑", + "t8452e76391bf6390": "點擊資源搜尋結果卡片上的快速下載按鈕時的行為。", + "td343ee3cdcd01563": "下載源", + "tf393258e8039a648": "僅在官方源載入緩慢時改用鏡像來源", + "t7605b03f359674ca": "社群資源取得行為", + "ta0e12a3c655398f1": "安裝新實例後自動選定該實例", + "taedba8d1dfc1c8c4": "升級部分版本的 Authlib", + "t88dbf1f583fd92e8": "部分 Minecraft 版本(如 1.16.5)存在 Bug,可能導致使用離線驗證時多人遊戲被停用。\nPCL CE 可嘗試升級這些版本的 Authlib 支援庫以解決問題。\n此設定僅對新安裝的實例有效。", + "tc07093e4582374a6": "安裝行為", + "tb4b2fe2e349f95a5": "速度限制", + "t1584de9adc6289ab": "設定下載的速度上限,以避免在下載時導致其他需要連線的程式卡死", + "t388a187b43846859": "目標資料夾", + "t7766e1caa681595c": "請在 啟動 → 實例選擇 → 資料夾清單 中更改下載目標資料夾。\n在某個資料夾或遊戲實例上右鍵,即可選擇開啟對應資料夾。", + "t3dfb1049a37f1fa2": "最大執行緒數", + "t5b86780e357df406": "如果設定過多的下載執行緒,可能會導致下載時出現非常嚴重的卡頓。\n一般設定 64 執行緒即可滿足大多數下載需求,除非你知道你在幹什麼,否則不建議設定更多的執行緒數!", + "t4d05c1b9df8e4ac6": "執行緒數越多,限速的檔案下載越快,但過高的執行緒數可能會造成下載時非常嚴重的卡頓。\n一般而言,64 執行緒已可以保證足夠的下載速度。", + "t7a8a11ead50742a2": "新增", + "t7ed26007d70ddc71": "未能成功將 Java 加入清單中", + "t051e92d393a1cd39": "已新增 Java!", + "t46f06e6d97f80983": "Java 已經存在,不用再次新增……", + "tc925dcdabe4fb56e": "Java 選擇自動模式,依據遊戲需要自動選擇合適的 Java", + "tdb9773faa309c257": "自動選擇", + "td4284e17c5004dd2": "請先取消選取此 Java 作為預設 Java 後再停用", + "t1932da4d4dba4ed0": "詳細資訊", + "te931e4e9559f8e37": "停用此 Java", + "t01bc2f0855b961c0": "啟用此 Java", + "t5dfb9bc19d6cf36d": "請先啟用此 Java 後再選擇其作為預設 Java", + "tc8b40ac095a7b3af": "調整 Java 啟用狀態失敗", + "t2f9c93437c79dae4": "型別: {0}\r\n版本: {1}\r\n架構: {2} ({3})\r\n發行商: {4}\r\n位置: {5}", + "tf20f1464aa73b77d": "Java 資訊", + "t4520f6a52ca17778": "正在載入 Java 清單", + "t3678517afe8ae580": "Java 程式(java.exe)|java.exe", + "t38bd35efb2db5e99": "選擇 Java 程式", + "t69470854ac235fb0": "此 Java 不可用,請重新整理清單", + "t9f6fee1aba17a565": "語言", + "t6844dd84fe0c919a": "語言設定已更新", + "t911ff33787921f2c": "區域格式", + "t7f0588b578de1d25": "跟隨系統區域格式", + "t778e13d48d9ac6df": "同步介面語言", + "tad3757440409cf73": "讓", + "te2ea979f4972c192": "走向國際化。", + "t2dd2d3bbf201d464": "在社群的共同助力下,PCL CE 正邁向國際化的新篇章。", + "t6e88b1be7e03f689": "歡迎前往翻譯平台參與在地化貢獻,或向 GitHub 倉庫提交 Pull Request,與我們一同完善多語言支援,為 PCL CE 更好地服務全球使用者的目標添磚加瓦。", + "t7468a194ad5f19f1": "感謝每一位參與翻譯、校對與改進的貢獻者,讓 PCL CE 因你們而更加完善。", + "t473ae6a49c7be50d": "前往翻譯平台", + "t9fab3495730840c1": "提交 Pull Request", + "t07868c98084791c9": "已初始化語言頁設定!", + "t3d13868593ae4eeb": "介面語言", + "tbe55d2aaf1fcbdf9": "跟隨系統({0})", + "t5e1b1d94c0e5ec6c": "啟動設定項存在異常,已被自動重設", + "t866f2e8b15bbf10d": "初始化啟動設定失敗", + "t224330a0d283e1f0": "過載啟動設定時出錯", + "t21e8bf4ff0c320b5": "已初始化啟動設定!", + "t135351677632ac37": "實例獨立設定", + "tbac6d69c75030d00": "停用自動崩潰分析", + "t979cecf2ea38e5ed": "啟用後,遊戲崩潰時將不再自動彈出崩潰分析頁面。", + "tb67c8dc9b5108377": "停用 Java Launch Wrapper", + "t717f55325a08f1f2": "在啟動遊戲時不使用 Java Wrapper 進行包裝。\n由於系統為 ARM64 架構,Java Wrapper 已被強制停用。", + "t04b1a8a68dcd1d3d": "PCL CE 會使用 Java Launch Wrapper 來修復舊版本 Java 在中文路徑下無法啟動的問題。\n如果這被反作弊攔截,或遇到其他問題,也可以將其關閉。", + "ta4ac6f2b9461508e": "停用 LegacyFix", + "tb66984289deb751e": "PCL CE 會在啟動 1.5.x 及以下版本時使用 LegacyFix 來改善舊版本遊戲體驗和修復相容性問題。", + "ta5faf266c2bf4bd1": "鎖定記憶體分配(-Xms = -Xmx)", + "tdbb8303350754f2d": "啟用後,啟動器會額外追加 -Xms 參數並令其等於最大堆 -Xmx,從而固定堆大小。這會隱式停用堆記憶體歸還(Uncommit),減少作業系統取消對映/重新分配記憶體頁帶來的延遲抖動,也有利於 ZGC 的回收預測。代價是遊戲全程會佔用接近最大分配的記憶體。", + "t70aac975eb3883d0": "停用 LWJGL Unsafe Agent", + "t0e816b9d5fcba048": "Minecraft 26.1 使用了 LWJGL 3.4.1,LWJGL 3.4.1 使用了 FFM API 以在 JDK 25+ 上存取原生記憶體。由於 JDK 最佳化能力限制,某些情況下這會產生嚴重的效能問題。\nPCL CE 會使用 LWJGL Unsafe Agent 修復這個問題,以解決可能存在的效能問題。\n一般情況下沒有停用該選項的必要,但如果你遇到了額外問題,也可以嘗試暫時停用該選項以排查錯誤。\n\n該功能僅會在 LWJGL 版本為 3.4.1 時生效。", + "t50509f2f2741a776": "遊戲參數尾部", + "teaa2d1aa2fb6853b": "文字方塊中的內容將會被直接拼合在啟動參數的末尾。\n例如,輸入 --demo 則會以試玩模式啟動遊戲。\n支援 Minecraft 實例 JSON 中的字串取代標記,例如 ${library_directory}。", + "tc14354ebc33a17bb": "要求 Java 使用高效能顯示卡", + "ta91d4f4468a428d9": "自動在 Windows 設定 → 系統 → 螢幕 → 顯示卡 中將 Java 改為使用高效能顯示卡。\n如果電腦同時有集顯和獨顯,這能確保 Minecraft 使用獨顯進行繪製,以大幅提高效能。", + "tc9173ee83b6a7e8c": "JVM 參數頭部", + "tddde08946298195d": "還原", + "t72c9c84b503bf113": "啟動 Minecraft 時使用的額外 JVM 參數,除非有確定把握,否則請不要修改。\n支援 Minecraft 實例 JSON 中的字串取代標記,例如 ${library_directory}。", + "tbf0458f51f725bd0": "你還可以在實例獨立設定中找到更多高階啟動選項。", + "teae7eebd4717a8c8": "啟動前執行指令", + "t9c85b98e60179302": "在 Minecraft 啟動前執行特定指令或程式,語法與 Windows 的指令提示字元一致。\n\n可以使用以下取代標記實現相對路徑(路徑均以 \\ 結尾):\n · {path}:PCL CE 的 exe 檔案所在的資料夾\n · {minecraft}:.minecraft 資料夾\n · {verpath}:實例資料夾(.minecraft\\versions\\實例名\\)\n · {verindie}:開啟實例隔離時等同實例資料夾,未開啟時等同 .minecraft 資料夾\n · {java}:遊戲執行時的 Java 資料夾\n\n除此之外,也支援以下取代標記:\n · {user}:玩家名字\n · {login}:玩家的登入方式\n · {uuid}:玩家的 UUID\n · {name}:遊戲實例名\n · {date}、{time}:目前的系統時間\n · {version}:遊戲對應的原版版本號\n\n例如:\n · \"{verpath}test.exe\" :執行實例資料夾下的 test.exe 程式\n · \"{java}java.exe\" -jar \"{verpath}test.jar\" :用 Java 執行實例資料夾下的 test.jar\n · notepad \"{verindie}options.txt\" :使用記事本開啟該實例的設定檔\n\n涉及路徑的操作最好都打上雙引號,以避免路徑中的空格導致執行失敗。\n執行指令時,指令列所在的目錄是目前的 .minecraft 資料夾。", + "tb91f2daef6cb7fc5": "等待指令執行完成後再繼續啟動", + "tf73e1bec92acf66e": "DirectX12(d3d12)", + "t00e24be033f5005f": "遊戲預設", + "t5eea85049ec9d7ce": "繪製器", + "t737feb88176e4a99": "軟繪製(llvmpipe)", + "t850e8e886943d301": "Vulkan(zink)", + "t439f0a0d70ef2a6f": "我知道我在做什麼", + "t3e86062bd8d86334": "修改此項會嚴重影響遊戲的穩定性與效能。如果你不知道你在做什麼,不要修改此選項!\n你確認要繼續修改嗎?", + "t7da6d9ed8cd279d7": "高階啟動選項", + "t9e61db66bd99366b": "使用 java.exe 而不是 javaw.exe", + "tc742b3df890f3fed": "如果遇到遊戲視窗長時間不出現等故障可嘗試啟用此項,PCL CE 將使用 java.exe 來執行遊戲,這樣會讓遊戲程式擁有標準輸入/輸出流,以盡可能避免列印日誌時出現問題。\n\n取決於不同 Java 發行版的行為,java.exe 可能無法使用 HDR 顏色等依賴作業系統支援的特性。因此,如果正常使用沒有問題,請勿啟用該選項。", + "t83550872e202b15b": "自動設定", + "t919175c3b15e994f": "根據安裝的模組量與電腦剩餘記憶體,動態調整為遊戲分配的記憶體", + "t5224f4d708cd672c": "可用 {0} GiB", + "t0a954ca969b6d28e": "遊戲分配", + "tf5d370fa5dfd1c7f": "最大記憶體(-Xmx)", + "t62f0a060c5487d66": "遊戲可使用的最大堆積記憶體大小", + "tbab6ef9ef8b6f431": "初始記憶體(-Xms)", + "t78aa81051d289070": "遊戲啟動時預先分配的堆積記憶體大小,可以低於最大堆(-Xmx)。設為 0 表示不主動設定,由 JVM 自行決定。僅在手動配置記憶體分配時生效,啟用「鎖定記憶體分配」時不生效。", + "tc9dd3f417f3385d2": "初始 {0} GiB,可用 {1} GiB", + "t1acc21aa1aa6d311": "初始 {0} GiB", + "t75067b871c5a21ae": "遊戲記憶體", + "t53b504dc12213492": "已使用記憶體 / 已安裝記憶體", + "t02cb8aec1397b56c": "32 位元 Java 只能分配最多 1 GiB 的記憶體。強烈建議換用 64 位元的 Java!", + "t0b7fe0054a9175a0": "你給遊戲分配的記憶體過多,這可能引發遊戲崩潰。建議優先考慮「自動分配」選項!", + "tabc00290e88e742c": "自訂訊息", + "tc03933d4d07db8ab": "該資訊會顯示在遊戲主介面的左下角,與 F3 除錯頁面的左上角", + "t3d7d10b1c631978c": "IPv4 優先", + "tf0ef39242684353e": "IPv6 優先", + "tf0d56e6d52ea394b": "Java 預設", + "t3f85718d9a70a26b": "IP 協議偏好", + "tb12638a54d9c3005": "透過設定 Java 虛擬機器參數來設定 Minecraft 的 IP 協議版本偏好。\n一般建議設定為 \"IPv4 優先\",這能確保 PCL CE 大廳正常運作。\n如果有手動 IPv6 連線等需要,可以選擇其他選項。\n\nIPv4 優先:-Djava.net.preferIPv4Stack=true\n預設:不新增額外參數\nIPv6 優先:-Djava.net.preferIPv6Stack=true", + "tc7579b98de9a840a": "裝置程式碼流", + "t1eea28ef2a1611c7": "微軟驗證方式", + "t7823d20f249363e3": "Web 帳戶管理器的微軟驗證流程更為簡單,而裝置程式碼流允許你在任意裝置上開啟網頁進行驗證。\n如果使用 Web 帳戶管理器登入遇到問題,可以嘗試使用裝置程式碼流。\n如果正在公用電腦上臨時登入帳戶,推薦使用裝置程式碼流。\n\n由於部分依賴元件存在較多問題,該選項暫時強制指定為裝置程式碼流。", + "t3de88ae3855f55dd": "Web 帳戶管理器(暫時強制裝置程式碼流)", + "t1df7f71d2900b4fe": "高(優先保證遊戲執行,遊戲效能更佳,但可能造成其他程式卡頓)", + "t2579a4a4a7eea088": "低(優先保證其他程式執行,但可能讓遊戲卡頓,適合掛機時使用)", + "t0c8e2bcff5b7aa69": "極高(謹慎使用,可能嚴重影響其他程式執行)", + "t6dfa4ea7d8c811fd": "行程優先度", + "t1cb9bed8c03ab7d2": "中(平衡)", + "tfd9ab136a934331a": "即時(使遊戲以最高優先順序執行,謹慎使用,可能嚴重影響系統執行)", + "t8dd0655d53256a1f": "啟動選項", + "t8a2e28474a495058": "自訂尺寸", + "tde377e9d2531c755": "Forge 1.12.2 等個別版本存在 Bug,會導致高度設定無效", + "t22ea3f47fee80536": "全螢幕", + "tc3cc36f628b16596": "視窗大小", + "t82c4aa13b7ca109e": "最大化", + "t7ffd1ae8f2261484": "注意:如果你的實例安裝了 Modern UI 模組,那麼這裡的設定將會失效", + "tfd5a66ba9df45b8c": "與啟動器尺寸一致", + "tcd959f842f08bb65": "遊戲視窗標題", + "t557756ea2b1f6d4a": "{name} | 玩家 : {user} | 使用 {login} 登入", + "t29d0695615333b77": "自訂遊戲視窗的標題,若留空則不進行更改。\n支援以下取代標記:\n · {user}:玩家名字\n · {login}:玩家的登入方式\n · {name}:遊戲實例名\n · {date}、{time}:目前的系統時間\n · {version}:遊戲對應的原版版本號\n注意:如果你的實例安裝了 Modern UI 模組,那麼這裡的設定將會失效", + "t5aa3b331af68694c": "隔離所有實例", + "tb38d7e29457fc624": "不同實例之間的存檔、模組、資源包等均不互通。\n這會導致不同原版實例間的存檔不能共用,所以一般不推薦。", + "t055d0dbd22e092e3": "預設策略只會對今後新安裝的實例生效。\n已有實例的隔離策略需要在它的設定中調整。", + "t90fc54a0fbd0fbb8": "預設實例隔離", + "t85b5413d903841c6": "隔離可安裝模組的實例與非正式版", + "t3026c39cf4a54845": "隔離可安裝模組的實例", + "t71f1f5c476a616cf": "可安裝模組的實例(例如 Forge、Fabric)均互相獨立以避免模組衝突,其他實例(例如原版)則不會被隔離。", + "t49800b5369c36fb0": "隔離非正式版", + "t92a6e9458cbed227": "將 Minecraft 快照、預釋出版、遠古版本、愚人節版本與其他實例進行隔離", + "tae93e7aec8122ebc": "所有實例均使用同一檔案,存檔、模組、資源包等均為公用。\n若存在多個安裝了模組的實例,可能會導致模組衝突。", + "t21f1dcc19144ce64": "當安裝新實例時,據此自動設定新實例的隔離選項。\n若想調整已有實例的隔離策略,請前往它的實例設定。", + "te1bbb3021cac8a23": "遊戲啟動後立即關閉", + "tf69a9b2a7b8f9ccd": "若在遊戲啟動後立即關閉啟動器,崩潰偵測、更改遊戲標題等功能將失效。\n如果想保留這些功能,可以選擇讓啟動器在遊戲啟動後隱藏,遊戲結束後自動關閉。", + "t8f29b3132ccf2182": "提醒", + "t5cfb31ef373d74fc": "遊戲啟動後隱藏,遊戲結束後自動關閉", + "t868de648dbfb29e0": "遊戲啟動後隱藏,遊戲結束後重新開啟", + "t054311a905850c9a": "遊戲啟動後仍保持不變", + "t87f5b03f0660fc3e": "啟動器可見性", + "t5fb815183a762c59": "遊戲啟動後最小化", + "t847c5f681ce955a0": "遊戲", + "td6965cf52f76549a": "啟動器", + "t132196f9d69faabf": "在提交新回饋前,建議先搜尋回饋清單,以避免重複提交。\n如果無法開啟該網頁,請嘗試使用加速器或 VPN。", + "td1f20df746ecf456": "提交新回饋", + "td884aac1d76b14dd": "檢視回饋清單", + "t682c033f7635b5d9": "是否要初始化 工具-連線 頁面的所有設定?該操作不可復原。", + "taebd75ded7eef1fa": "是否要初始化 遊戲-管理 頁面的所有設定?該操作不可復原。", + "t538d1ccfa63e3752": "是否要初始化 啟動器-語言 頁面的所有設定?該操作不可復原。", + "tb5c5bac9db252ffb": "是否要初始化 遊戲-啟動 頁面的所有設定?該操作不可復原。", + "tad5c097665b46cac": "是否要初始化 啟動器-雜項 頁面的所有設定?該操作不可復原。", + "t5a5642ea93ce419f": "是否要初始化 啟動器-個性化 頁面的所有設定?該操作不可復原。\n(背景圖片與音樂、首頁等外部檔案不會被刪除)", + "t0fe8acdee57bdb1f": "軟體資訊", + "t362494fcf9a50a87": "連線", + "tc1ba60ce13586503": "Java", + "t887d938275c72602": "雜項", + "t651f274470153a05": "軟體更新", + "t3cdf2acc08371928": "所有日誌", + "tc854cea07e3bf030": "是否刪除所有歷史日誌?", + "t1112534a916c28f1": "清理歷史日誌", + "t6bbf56f2f4b5159e": "清理日誌檔案成功!", + "tb27a136b0b135703": "{0} (目前)", + "tb8f32d2848485a01": "匯出日誌", + "t09403feb9890b4eb": "匯出全部日誌", + "t415a08cc2123489a": "日誌儲存失敗", + "tfd4287a32f1e01b9": "PCL CE 日誌壓縮檔|*.zip", + "t60a4cbbcf35c0bdc": "匯出日誌檔案", + "t39416ba758f35912": "日誌儲存成功!", + "t6e15bd283c306fc3": "開啟日誌資料夾", + "t66d6e64fb4894b59": "日誌操作", + "tfe5cfebb97b6e5cc": "臨時儲存的日誌 ({0})", + "t933e7212e7bb2e0c": "臨時儲存的未輸出日誌", + "t83d1348e1c742209": "初始化啟動器-雜項頁設定失敗", + "t8b245403d5b3db93": "此項變更將在重啟 PCL CE 後生效", + "t78393456ea5a63e1": "已初始化雜項頁設定!", + "t27f40db6d3e45b1f": "動畫速度", + "tf6d7ce5e5bef2cf3": "新增延遲", + "ta7fc70d11c9c94a8": "在各個環節新增隨機的延遲,拖慢載入速度,以測試部分功能是否正常執行。\n這會嚴重影響啟動器執行,若無特殊需要不建議開啟。", + "td09ed8ce71faf29c": "除錯模式", + "t9bf00e23535634c2": "部分除錯資訊將在重新整理或啟動器重啟後切換顯示!", + "t98b180ae3fccd4a4": "顯示除錯資訊與更多錯誤資訊。\n這會導致啟動器效能略有下降,若無特殊需要不建議開啟。", + "t3c55d52b9f4ceb59": "禁止在下載時從其他資料夾複製檔案", + "t403a9de54619f284": "在下載時不直接複製其他 Minecraft 資料夾中已經存在的相同檔案,而是重新下載檔案。\n只建議在測試下載速度時開啟。", + "tde90f1bae01bfe50": "除錯選項", + "t61da6e6dbde1e9d8": "使用 DoH 解析位址", + "t01f2765244199572": "使用 DoH 解析位址可取得品質較佳的 IP 結果,改善啟動器的網路連線。如果您已部署 DoH 解析服務,可以關閉此功能。", + "tfe51a8c86091b1e6": "HTTP Proxy", + "t97b31b5d63f57e51": "網路", + "t7171ee0eb3241f48": "應用 Proxy 資訊", + "t5da55869ce443189": "自訂 Proxy", + "tb1ffbe40a56324ce": "不正確的 Proxy 伺服器位址會導致無法連線網路,因使用 Proxy 導致的網路問題不予處理。\n請勿填寫不信任的 Proxy 伺服器位址,這可能會導致你的帳戶資訊洩露,甚至帳戶被盜。", + "tf9af167c9a973d07": "不使用 Proxy", + "t724ab82484f8b28d": "如有", + "td86fa42c3848c680": "使用系統 Proxy", + "t26c964f2678bec85": "請勿填寫不信任的 Proxy 位址", + "t311bb313fdeca6aa": "帳戶", + "t85dc04b240179bc3": "啟動器公告", + "t8b9863c87259d440": "顯示所有公告", + "ta63f65583b1c7c4d": "顯示包括啟動器功能調查、活動等在內的全部公告", + "t6d7f52838cbbbe55": "關閉所有公告", + "td2215efd9defef4a": "若選擇此選項,即使日後出現重大問題,您也將無法收到相關通知。\n例如,若某個遊戲版本被發現存在嚴重錯誤,您可能因未接收到通知而導致無法預期的後果。\n\n一般建議選擇「僅在有重要通知時顯示公告」,這樣可在不造成干擾的情況下獲得關鍵資訊。\n除非您正在製作伺服器模組包,或經常手動更新啟動器,否則強烈不建議選擇此選項!", + "t2d7d643563907540": "僅在有重要通知時顯示公告", + "tff5dba9cb7d49f84": "停用硬體加速", + "tfe017784aa548855": "匯出設定", + "t2194621d69fa669a": "PCL CE 設定檔(*.json)|*.json", + "t9042d4511be4ec23": "設定匯出成功!", + "t1a80d4a192698b02": "匯入設定", + "t448ce4712d08f78e": "設定匯入成功!請重啟 PCL CE 以應用設定……", + "t562822892865b377": "重啟", + "t2428b36ebf26d6d3": "最高動畫幀率", + "t6b3b75a466a0e7c0": "如果你停用了硬體加速,那麼建議你調低最高動畫幀率以防止過多的資源佔用", + "t36e08d26b3e688c6": "即時日誌行數", + "te8d5c7cfffc654b9": "停止使用 PCL CE", + "t144bf4a8d383995c": "繼續並清理實例資料夾", + "td187ce540ba1fad2": "你確認要繼續操作嗎?這是最後警告!\n與 PCL CE 有關的一切資料將被永久消除!(真的很久!)", + "t4b401440fe83a8d8": "即將刪除此電腦上與 PCL CE 有關的全部設定、快取、已儲存的帳戶資訊及其他相關資料,並復原已接受的許可協議。完成後,軟體將自動關閉。\n\n但請注意,以下內容無法自動刪除或登出:\n- 此電腦上其他 PCL CE 實例的本機資料\n- Natayark 帳戶\n\n如需同時刪除 Minecraft 實例中的 PCL CE 設定檔,請選擇「繼續並清理實例資料夾」,這不會影響你的遊戲設定、模組、存檔,以及其他資料。\n\n此操作無法復原。您確認要繼續嗎?", + "t79954066883f0100": "停止使用 PCL CE?", + "t5b50d7c4b5950dc5": "系統", + "t061397c80b293926": "重新整理背景內容失敗。該影片檔案可能並非 H.264(AVC)格式。請使用影片轉檔工具將其轉檔為 H.264(AVC)後再試。", + "t0b439e4c7819d240": "個人化設定項存在異常,已被自動重設", + "tbc331a1e39cdb046": "初始化個人化設定失敗", + "tb6461d33e5f04ee0": "過載個人化設定時出錯", + "ta25bf7d8b15e98a5": "介面設定操作失敗。請檢視錯誤詳情。", + "td2bb8322065f6b80": "更改標題列圖片失敗。該圖片檔案可能並非標準格式。請使用小畫家開啟並重新儲存該檔案後再試。", + "t2c6edfe62773c0a8": "調整標題列圖片失敗。該圖片檔案可能並非標準格式。請使用小畫家開啟並重新儲存該檔案後再試。", + "t63d6b47116de363c": "全域", + "te8f6dbbb3bf54375": "全域預設字型", + "t58145f3b31599087": "MOTD", + "t6c47aeb621dce5fa": "格式化程式碼文字字型,用於伺服器狀態資訊等內容", + "t078838da4218490b": "字型", + "tebf778110553e92d": "常用圖片檔案(*.png;*.jpg;*.gif;*.webp)|*.png;*.jpg;*.gif;*.webp", + "tefa114de0809e043": "已初始化個人化設定", + "t81901c460c6d189c": "{0} 畫素", + "t80faf20d6a765f01": "背景模糊", + "t4e930298086b49a8": "較強的模糊會導致啟動器嚴重掉幀,請謹慎使用。\r不建議在製作模組包時開啟模糊,以確保 PCL CE 在低效能電腦上可以流暢執行。", + "t1773a48f7a8d2962": "清空背景內容", + "tb7cdc2b9bac4aaa8": "即將刪除背景內容資料夾中的所有檔案。\n此操作不可復原,是否確認?", + "te7a402170c880505": "背景內容已清空!", + "t11f610810899730a": "背景內容已清除!", + "t5cf0e6be448fedff": "疊加彩色背景", + "t55896c703bafb6d5": "內容自適應方式", + "t5104415b6ba37798": "圖片載入失敗,嘗試將檔案作為影片播放:{0}", + "tef290865923226d6": "未偵測到可用背景內容!", + "tb8acdc8748b843cd": "將背景圖片和影片放到該資料夾,PCL CE 將會在每次開啟時隨機載入其中的一張圖片或影片\n為提高播放時的流暢度,影片推薦使用H264格式編碼", + "t06d01ff55be3682d": "遊戲啟動後暫停影片背景,遊戲退出後重新播放", + "t2c74ea963a9c7efd": "若啟用此項設定,遊戲時將無法重新整理背景", + "td64de922a9baa612": "重新整理背景內容", + "t685fe0a268c05e47": "背景內容已重新整理:{0}", + "te3612b09d212faf7": "隨機載入資料夾內的一張背景圖片或影片\n為提高播放時的流暢度,影片推薦使用H264格式編碼", + "te9ffa3f88cd8dccb": "背景內容", + "tbd9760b1cf6966bb": "背景圖片/影片", + "tfb18e26a3e30a7b1": "背景圖片/影片({0} 張)", + "t871323b649586984": "置於左下", + "t4c32aebb63c47340": "置於右下", + "t4cc3885c182e419c": "置中", + "t53c9aca4b68c2237": "適應", + "t836cc39f06440bcc": "拉伸內容並保持長寬比不變,直至填滿整個視窗", + "t8fffc40833fbab25": "智慧", + "t5d9086da66997984": "當內容較小時選擇平鋪,較大時選擇適應", + "t5d7d4daca250eac9": "延展", + "tbb90c27eb19907fd": "拉伸內容使其恰好填滿整個視窗,很可能會導致長寬比的改變", + "t01d70f8715e4a1f3": "並排", + "t5678ba100a412644": "置於左上", + "t9eb1676e1fbcc2fc": "置於右上", + "t024ea32a1313c4fe": "進階材質", + "tbe778d48defe88aa": "啟用此功能後會在部分透明區域(例如卡片)實現模糊效果。\n請注意,該功能會消耗大量 GPU 算力,並導致卡頓!", + "t2a52f69a56f3bb88": "藍色,藍色,還是藍色!想要逃離藍色困境?請使用官方快照版!", + "t6ce9bf045d2a05cd": "模糊方法", + "t7ea613c4d564ac02": "方框模糊", + "tab92655be889c66e": "對每個畫素周圍較小範圍的畫素使用線性均值取樣,速度較快,但容易產生色塊。\n該模糊容易造成細節資訊遺失,但效能較好,若裝置效能不佳可選擇使用。", + "t0e134f5a85ab8047": "高斯模糊", + "t7288d8ae632a1f3a": "對每個畫素周圍較大範圍的畫素使用高斯卷積演算法的帶權重均值取樣,速度較慢。\n該模糊品質較高,對細節的處理較為細緻,推薦效能較好的裝置使用。", + "t13b303db394d13b7": "設定模糊方法。", + "t6e7016fd595656b8": "模糊半徑", + "t3dc2644852d55708": "設定模糊效果的取樣半徑,值越大模糊效果越強。", + "t0f549853799d6bde": "取樣率", + "tf1557ac4b742212c": "設定模糊效果的取樣率,值越大模糊效果越細緻。\n若裝置效能不佳,可嘗試降低該值以獲得更好的效能。", + "t932689f159c9c7ad": "取得官方快照版", + "tb61e39bfa4e57232": "鎖定啟動器大小", + "t04405e4a9ffd2a3d": "不透明度", + "t85f65461cb14beea": "開啟啟動器時顯示 PCL CE 圖示", + "tef46719d9f6f3123": "在啟動遊戲時顯示\"你知道嗎\"", + "t89e5e14c8db996da": "基礎", + "t543ec5435d90915c": "你可以隱藏不需要的畫面或關閉特定功能。在任意畫面按 F12 可以暫時顯示被隱藏的功能。", + "t465eaeb5cc7dab00": "主頁面", + "tc58f3ec38d2caf68": "特定功能", + "t1c0437bb6369e94d": "子畫面 實例設定", + "tfb61b744f5efe126": "子畫面 設定", + "t03550af111b8aa63": "子畫面 工具", + "tfe284da8d4e7a2eb": "按 F12 即可暫時關閉功能隱藏設定。千萬別忘了,要不然設定就改不回來了……", + "t7a347b34ab5567ea": "功能隱藏", + "tc64d21f535c2819f": "功能隱藏(已暫時關閉,按 F12 以重新啟用)", + "t11df5cff349ab74b": "僅隱藏本頁籤,設定的停用內容依然有效。\n可以在保留個人化設定畫面的情況下避免隱藏設定被修改。", + "t7db1b3229df3c7f3": "實例管理", + "t1b4c38bff4e63def": "隱藏啟動按鈕下方的實例選擇與實例設定入口。", + "td44271b927e7c3b7": "模組更新", + "t8d14cef265cd3a38": "禁止在模組管理頁面更新模組。", + "t7b2a5133349a7018": "百寶箱", + "tf0bf4574ce25c131": "空白", + "t7b2e800cb995cee6": "下載連結", + "ta464bc09e9661330": "取得更多首頁", + "t7aa34c6fe793a492": "前往首頁市場", + "tbc704b9434c846cb": "內容見 ModSetup", + "tea2f46d33b367a9c": "存取本機檔案", + "tcbcba2bce4054cb6": "從 PCL 資料夾下的 Custom.xaml 存取首頁內容。\n你可以手動編輯該檔案,向首頁新增文字、圖片、常用網站、快速啟動等功能。", + "t276ebcf50f045b9e": "連線更新", + "tec9999cc67b90e4a": "從指定網址連網取得首頁內容。伺服器管理員也可以用於動態更新伺服器公告。\n如果你製作了穩定執行的連網首頁,可以點擊這條提示投稿,若合格即可加入預設!", + "t088703267eb240c0": "請謹慎使用陌生人提供的首頁,惡意程式碼可能會造成損害!", + "tb2d4690a1c25cdd6": "首頁預設", + "t5e0bf841841d8682": "重新整理首頁", + "t3ac145bc9625de54": "已重新整理首頁!", + "t3e0d676d2d85073d": "首頁", + "t6353a8f9659464de": "檢視教學", + "tf1de1e2621deb2e1": "預設", + "td8c8e4cc99de3432": "每日模組包推薦(作者:wkea)", + "te2ed8c9bd5193ef0": "回聲洞 (已移除)", + "t1deaa9e0bf7bccd7": "PCL GitHub 儀錶板(作者:Deep-Dark-Forest)", + "tf0d7d1f0cc6b7670": "雜誌首頁(作者:CreeperIsASpy)", + "t1a9907e0bd68a1ed": "Minecraft 新聞(作者:Nattiden)", + "t874c2a9cf3785541": "Minecraft 官方資訊流", + "t9ea0cb74d20dbf57": "Minecraft 外觀推薦(作者:wkea)", + "t951b1dc62f975856": "Minecraft 更新摘要(作者:pynickle,部分由 AI 生成)", + "ta1681755e51f2a1e": "今日新聞熱點(作者:EYicheng)", + "ted667982fda1fb7a": "Minecraft 芝士站(作者:awaEric233)", + "t679c82547decd75b": "模組包推薦引擎(作者:CHMYGZ)", + "t51842d6c9b0a6e43": "Bangumi 番劇首頁(作者:wzyaeu)", + "t4cd9d16cc2965838": "OpenBMCLAPI 儀錶板 Lite(作者:Silverteal、Mxmilu666)", + "t8577eaed364f440e": "OpenMCIM 儀錶板(作者:SALTWOOD)", + "tdf50de0152c2ad96": "PCL CE 公告", + "t5efa12ae3ab38ba8": "PCL 新功能說明書(作者:WForst-Breeze)", + "te164350a1a176125": "PCL 首頁市場(作者:凌雲)", + "tb0f0a41800cc1fb6": "PCL 新聞速報(作者:Joker2184)", + "tbe9ce9c8aea9c1d0": "簡單首頁(作者:MFn233)", + "t6874e7f26b359019": "你知道嗎?", + "tb9fde9e71fddec30": "更改圖片", + "t67a58b99d117583e": "標題列圖示已清除!", + "t27a25fbfb3baeecf": "清除圖片", + "td24c10d37db0feea": "圖片", + "t87ed84119176b0eb": "標題列置左", + "tdd81861811e57bf7": "文字", + "t8632017ffbbd32ab": "標題列文字", + "tc3ebe56c4633ef87": "標題列", + "tb8136bc5d404f531": "開啟啟動器自動開始播放", + "t9fb5e6302d69719e": "清除背景音樂", + "ted0dd009d4925166": "即將刪除背景音樂資料夾中的所有檔案。\n此操作不可復原,是否確認?", + "tfefbe4b648be0ca9": "背景音樂已刪除!", + "t65db69340e6b658a": "正在刪除背景音樂……", + "t20aa97e47730e05a": "將背景音樂放到該資料夾,PCL CE 將會播放其中的所有音樂", + "t4c16c62e756a2e25": "重新整理背景音樂", + "t6c225a11406e70d3": "重新整理播放清單,並播放清單中的音樂", + "tf34b7ce61098e539": "隨機播放", + "tda1e5c5bfb05854f": "接入系統媒體傳輸控制 (SMTC) 控制項", + "t826602e16c869379": "啟用此選項後,可以使用系統控制中心和快速鍵等控制 PCL CE 的媒體播放。\n可以與 Lyricify Lite 或 FluentFlyout 等軟體搭配使用。", + "t2f0554b570acedd8": "遊戲啟動後自動開始播放,遊戲結束後自動暫停播放", + "t584493be26cfb1ff": "遊戲啟動後自動暫停播放,遊戲結束後自動開始播放", + "t3c3638bb300c2032": "背景音樂", + "t3f1ad2c2124ef395": "背景音樂( {0} 首)", + "t8bf8b9780d342816": "音量", + "t6c05f9d3b4790151": "龍貓藍", + "tceff55faed41bc0e": "當機藍", + "te9f5486a5bf7822c": "HMCL", + "tc3337363b6202dcc": "天空藍", + "ta6b75d0680322a61": "深色", + "td988940b113e0f27": "深色配色", + "t03e610202e5de15e": "在深色模式下預設的主題配色", + "t217cfe7db1e3d10a": "跟隨系統", + "taa0819dfc4d8d782": "淺色", + "t0749b3e79d60511e": "淺色配色", + "t788db1cfec2a3db5": "主題", + "t92813534999a1b3f": "開發者似乎忘記提供更新摘要了...也許你可以點擊下方看看完整更新紀錄?", + "tb7149d5805df899d": "有關此更新的更多資訊...", + "t7f34c8f91c0afff4": "PCL CE 2.14.0 帶來了讓人眼睛一亮的新設計和 Pigeon 智慧的多項功能,同時還帶來了令人愉快的跨實例工作方式,助你提高工作效率。", + "tf81139b7590901be": "關於此更新", + "taa0b207af6a71230": "沒有可用的更新紀錄...", + "tfe0503e4a3c3fe50": "再次檢查", + "t2b66dde439e65404": "檢查更新時出錯", + "t5703942ae3f8f353": "正在檢查更新...", + "tbf6c3a5a4b6a0a10": "下載 .NET 10 執行時", + "t55ee22ea7fd39738": "發現了啟動器更新(版本 {0}),但是新版本要求你的電腦安裝 .NET 10 才可以執行。\n你需要先安裝 .NET 10 才可以繼續更新。\n\n點擊下方按鈕開啟網頁,然後選擇「.NET 桌面執行時」中的 {1} 選項下載。", + "tbb538fd77e3b3f58": "啟動器更新 - 缺少執行環境", + "t9d6111711b8551f8": "無法取得最新版本資訊,請檢查網路連線", + "tac69f68b7010ec79": "下載並安裝", + "tbc310480b4ce9236": "已是最新版本", + "tc3ddff22bc608066": "取得 CDK", + "t2eddb6fed22a8959": "Mirror 醬 CDK", + "t54ff1cdfa91d0c61": "Mirror 醬 (mirrorchyan.com) 是一個付費的第三方應用分發平台,用於提供有償高速下載源。\n這是一項可選服務,不填入 CDK 不影響正常使用與更新。\n如果你有 Mirror 醬的 CDK,可以提供給 PCL CE,啟動器會優先使用他們的高速下載源下載軟體更新,也能紓解社群公益更新伺服器的一些壓力……", + "tfdf67c466241041b": "AquaCL 3 是 PCL CE 的第一個主要更新,帶來了讓人眼睛一亮的新設計,使用了最新開發技術,完全重構了基礎體驗,並更支援 macOS、Linux 等其他平台。", + "ta3eda49175016a79": "其他更新選項 - 升級到 AquaCL", + "t70007836f36591e9": "重啟安裝", + "t13c9f157f3c4f694": "不自動檢查更新(不推薦)", + "tb9bdb5f8a1771090": "關閉自動更新檢查。這可能導致你無法及時獲得更新。", + "ta6dcd15827d0e064": "自動下載並安裝更新", + "t8d99494424225f47": "啟動器將會自動檢查並下載可用更新,並在關閉啟動器後自動安裝更新。", + "t334a81de09fe72c6": "自動下載並提示更新", + "t951f3b472a6c44eb": "啟動器將會自動檢查並下載可用更新,並在完成後提示你安裝更新。", + "t8560b5959338b481": "提示更新", + "te4d86f14bbee03fb": "啟動器將會自動檢查可用更新,然後提示你下載並安裝更新。", + "t559788d54f67a051": "自動更新設定", + "t4e0c88a6cc681b85": "測試版 / Beta", + "t0188a9fd17f6c9bc": "可能不穩定的測試版本,將會進行功能的早期測試,適合希望幫助測試且有一定技術能力的使用者使用。", + "t241cf8967f10e2fc": "你正在切換啟動器更新通道到測試版。\n測試版可以提供下個版本更新內容的預覽,但可能會包含未經充分測試的功能,穩定性欠佳。\n\n在升級到測試版後,你需要等待下一個正式版釋出,或是手動重新下載啟動器來切換到正式版。\n該選項僅推薦具有一定基礎知識和能力的使用者選擇。如果你正在製作模組包,請使用正式版!", + "ta11e1b352d7c08b1": "我已知曉", + "t64210b9be487d310": "繼續之前...", + "t32f18f63c23912eb": "正式版 / Release", + "te8f76e467cf86726": "較為穩定的版本,僅推送修復性更新與部分內建資源更新,適合大多數使用者使用。", + "tb5260335fcac93bb": "更新通道", + "t3a28352796575f06": "開發版 / Dev", + "t7c8ed90320f087f9": "我確認切換到此分支並已知曉風險", + "t84f5aa1f6443b97c": "你確認要切換到開發版通道嗎?\n開發版可能存在嚴重問題,甚至無法啟動!\n\n在升級到開發版後,將無法切換回其他任何更新通道,只能手動重新下載啟動器來切換回正式版或測試版。\n\n該選項僅推薦高階使用者選擇。如果你正在製作模組包,請使用正式版!\n請輸入 '{0}' 以確認。", + "t08a85f4ab4bab9ca": "提交", + "ted253257e0ddbe0b": "最終確認", + "tf1023c97cf56d2c1": "你輸入了錯誤的內容...", + "t9d5144930a6b8955": "可能極不穩定的開發版本,直接從最新原始碼建置,適合高度技術性使用者。\n可能需要具備較好的網際網路連線品質才能順利取得此通道更新。", + "tc5f1b238fabd5eda": "你正在切換啟動器更新通道到開發版。\n該通道可第一時間取得基於最新程式碼建置的開發版本,但可能極不穩定,甚至直接無法啟動。\n\n在升級到開發版後,只能手動重新下載啟動器來切換回正式版或測試版。\n該選項僅推薦高階使用者選擇。如果你正在製作模組包,請使用正式版!", + "tb916c37c29682234": "點擊複製錯誤詳情", + "tefbb30a9844474b2": "已複製錯誤詳情!", + "t03500c1ff7d0dd35": "任務管理操作失敗。請檢視錯誤詳情。", + "t4e57e74634386653": "剩餘檔案", + "t3726bcb6903fa086": "剩餘執行緒", + "t6407f8f0a2148bfb": "總進度", + "td51799004211e8dd": "PCL CE 無法開啟此網頁。網址已複製到剪貼簿,可手動貼上存取。\n\n網址:{0}", + "t6b6b1a1be9546c50": "無法開啟網頁", + "t46fec206fcbc256d": "{0}\n\n如果你認為這是啟動器的問題,請提交回饋,以便開發者調查。\n匯出日誌:設定 → 檢視日誌 → 匯出全部日誌", + "tfb8af64dc5dfe5bb": "致命錯誤", + "tb0e866423d5863db": "所有檔案|*.*", + "t4bc8cb9cd2ec74ff": "無法開啟檔案或程式。\n\n路徑:{0}", + "t822fb37dba29381a": "選擇檔案", + "t422d0a1bbf05be3e": "無法開啟檔案總管。請嘗試關閉安全軟體(例如 360 安全衛士)。\n\n路徑:{0}", + "t0d6fad8138e77630": "選擇資料夾", + "t37d6c1b88404d396": "你的 .NET 桌面執行時已過期或損壞。請重新安裝 .NET 10。", + "t124d8f9462df3e83": "PCL CE 初始化失敗", + "ta76ed0f9d3498caa": "{0}\n\n詳細資訊:\n{1}", + "t25d3c6ebd7c24a1d": "{0}\n\n若要尋求幫助,請不要關閉啟動器。請立即匯出日誌(設定 → 檢視日誌 → 匯出日誌),並傳送匯出的日誌壓縮檔;僅傳送此視窗的截圖通常無法幫助定位問題。", + "t744dd9d4c454cc62": "執行操作時發生錯誤。\n\n操作資訊:\n{0}\n\n詳細資訊:\n{1}", + "tf0be132de641fdbe": "執行操作時發生錯誤。\n\n操作資訊:\n{0}\n\n詳細資訊:\n{1}\n\n與系統底層互動失敗。請嘗試重新安裝 .NET 10。", + "t18e9c71958e02aaf": "發生意外錯誤。", + "t87ac7e4a339b67c8": "發生意外錯誤", + "t34a39f97baf1c447": "發生錯誤。\n\n詳細資訊:\n{0}", + "t676ad01fa9d92cc3": "工具頁操作失敗。請檢視錯誤詳情。", + "tea6dca5fc82fc027": "大廳", + "t7ff4ff7f1107e506": "奇妙小工具", + "t040240d7ad1aebdd": "[{0}] {1}", + "ta8cd9642aa48cd9f": "重要", + "t4ffef8f3113a3a11": "注意", + "t6dbdc671089d81aa": "大廳建立者的遊戲位址:{0}\n注意:僅建議在 Minecraft 多人遊戲清單未顯示大廳廣播時使用 IP 連線!透過 IP 連線可能需要使用微軟帳戶。", + "tcf4375284e631371": "複製 IP", + "t0d167d8f62ecbfe4": "1、進入世界後,在遊戲選單中選擇【對區域網開放】\n2、在下方選擇此遊戲實例,點擊【建立】\n3、成功建立大廳後,複製大廳編號並傳送給你的朋友", + "td1192e27c3d45da3": "請輸入埠", + "tc6dd40c3fcc31173": "手動輸入", + "t9c7b3a173c6311bc": "請先選擇一個要連線的世界!", + "t81453549856435af": "這似乎不是個 Minecraft 服務埠...", + "ta53a5686d4d1c378": "建立大廳", + "t366d5d693d0f028c": "連線雙方目前使用的啟動器版本不同,這可能會導致一些連線問題\n強烈建議雙方升級到最新版本後再繼續連線", + "t618667b8799b9f7f": "無法連線到大廳伺服器", + "t49c689fcf7eb9d0e": "在伺服器退出時發生了錯誤!", + "tcda1ca8aeb7cceeb": "與大廳伺服器的連線出現錯誤。\n\n原始錯誤資訊:\n{0}", + "tb50c5142045477f7": "請更新到最新版 PCL CE 以使用大廳", + "tb41e58390a82ef12": "連線功能已停用!", + "tc497c026e17e3546": "你確認要復原連線協議授權嗎?", + "t522552a571bec9ac": "復原授權確認", + "t5633e5ca70665f71": "你確認要退出大廳嗎?", + "tac333f933bbbadee": "你確認要退出大廳嗎?\n由於你是大廳建立者,退出後此大廳將會自動解散。", + "tab942a2caccc9837": "確認退出", + "td28522a7eed6f157": "由於你關閉了連線中的 Minecraft 實例,大廳已自動解散。", + "t4eaa621c701e93af": "大廳已解散", + "tba00a3c8fbf8af45": "由於你是大廳建立者,退出後此大廳將會自動解散。", + "t451755e3831fa39e": "加入", + "tbce2377283c2455a": "清除", + "tc405771287cb9eaa": "1、在下方輸入朋友傳送給你的大廳編號,點擊【加入】\n2、啟動遊戲,選擇【多人遊戲】,在區域網遊戲中加入大廳", + "tc807f61a6dbb5bbd": "編號應該長得像這樣:U/NNNN-AAAA-SSSS-EEEE", + "tf268b8c7a8bac4e4": "大廳編號不正確,請檢查後重新輸入", + "t33517926747180e6": "貼上", + "tcccb42ffea8ab9de": "加入大廳", + "t49751039edd5e32d": "停用連線功能", + "tb74e6321499e4c6e": "EasyTier 工具官網", + "t4dae8c8326995683": "友情連結:", + "tf2f07703a571ccdc": "違法違規檢舉", + "t7fa99838c3a3bfbb": "Natayark Network 使用者協議與隱私政策", + "t44e208945d552d78": "正在連線到大廳伺服器...", + "t7ba763c3858df793": "正在建立大廳", + "tebf8e0aa81c0a74d": "下載連線模組中……", + "td9b382b6a8cf45b1": "大廳成員清單(共 {0} 人)", + "tf58c1b2e60b3a71f": "大廳成員清單(正在取得資訊)", + "t77c9e582e85583af": "測試失敗", + "te5790681bbc71644": "UDP: {0}, TCP: {1}", + "tdd78205d6a22eb82": "點擊測試", + "tc5f592ec96939056": "NAT 型別", + "t10866a9df5f8be5b": "{0} {1}", + "te89bfdda0fa62738": "[主機]", + "t7ab55d8950e8e167": "使用者名稱:{0}\n連線協議用戶端識別碼:{1}\n\n此處資料僅供參考,請以實際遊玩體驗為準。\n\n若想了解 NAT 類型及其對連線體驗的影響,請前往介面左側的常見問題。", + "t85319ce239329139": "玩家 {0} 的詳細資訊", + "td7ce794d0b865b91": "我已閱讀並同意", + "t8c6d08a3b14a4844": "連線透過 EasyTier 連接自訂或公共節點,不再由原 PCL CE 伺服器下發功能政策,也不向其回報裝置與帳戶資訊。請僅與信任的玩家和節點建立連線,遵守伺服器規則。詳細資料使用說明請見專案隱私文件。", + "taecb4aae0039efdf": "此處列出了 PCL CE 大廳使用的相關服務檔案及介紹", + "te4647d4a1da9a446": "檢視 Natayark OpenID 服務條款", + "t9091f623714c81d7": "PCL CE 連線大廳說明與條款", + "td59d7f96bb3136ad": "大廳操作", + "t20f99990c7224710": "偵測中", + "t833ec488da5ac311": "關閉大廳", + "t5be0323e8adcaeae": "已連線", + "ta898478be1813b95": "連線中", + "tc44899529d41af30": "連線狀況", + "t485a26050ce57431": "連線方式", + "t377c1d199e1e9a5f": "複製大廳編號", + "tf13680c6c92d4ab4": "複製虛擬 IP", + "t153b723547e28a7f": "退出大廳", + "te07b4fc0d8f7a080": "加入者", + "tf46c86c0286a8fad": "建立者", + "tb9882ece53ac5aed": "大廳資訊", + "t703a794ea636d4fd": "大廳編號", + "t11a5b319f94c7cda": "{0}ms", + "t0f1ec7ad5ba404a1": "與大廳建立者的延遲", + "tf36cac96220bb1e4": "暫不可用", + "taec6d9b3d261eec1": "使用者型別", + "t7c97905a624a516a": "(異常)", + "t1b86bb059497356d": "Natayark 帳戶", + "tf2258959755e8d97": "Natayark 帳戶資訊已過期,請前往設定重新登入!", + "tfaca22f81c54dcc9": "請在瀏覽器中繼續...", + "t192e2d1b88c97653": "取得資訊失敗", + "tbd6ebead5c3d0363": "Naid 驗證程式碼無效", + "t7545b39503978718": "正在載入……", + "t897c57569e5d5e92": "點擊登入 Natayark 帳戶", + "t69abb59848ddc741": "已完成登入操作", + "t18da5f06a1f8a360": "Naid 登入失敗,請嘗試前往設定重新登入", + "t775d096e34a19cc3": "PCL CE 將會開啟一個登入頁面,請在瀏覽器中完成登入操作,然後回到啟動器繼續操作。", + "tffeb92a2b93f05b9": "登入至 Natayark Network", + "tde40decda2d82a57": "已退出登入!", + "t6ac08263271b6831": "你確認要退出登入嗎?", + "tbfb33bbc5ca2d4df": "取得 Natayark 使用者資料失敗,請嘗試前往設定重新登入", + "t06649de34a56c4d8": "Natayark ID 令牌已過期,請重新登入", + "tbd60dbce32b2b1b5": "Naid Access Token 無效,嘗試重新整理登入", + "tbcd6771e08ec7cc7": "查詢", + "td9b0c560be91190d": "輸入伺服器位址", + "t69d74b0366d76c34": "未返回伺服器資訊", + "t192533042f7fe6a8": "查詢中...", + "t2c4649245fcac966": "Minecraft 伺服器", + "t35c46ad240ea5881": "伺服器位址過長", + "t08b3c0570d05c6c6": "伺服器傳回了空封包", + "t438efd6860601575": "伺服器尚未傳回完整狀態封包便提前中斷連線。", + "t4cbabb9022807441": "伺服器返回了錯誤的資訊", + "ta3f6c3cac0cd706d": "Pong 資料長度必須為 8 位元組", + "t7422de751672e6d8": "伺服器傳回狀態後提前中斷連線,未傳回 pong 封包,因此無法計算延遲。", + "tae5ead4d89074727": "連線超時", + "td1f6a584308bd107": "資料讀寫超時", + "t9166474cbc87daf1": "無法連線: {0}", + "t9cb4045de52a802c": "為便於維護,PCL CE 中不包含百寶箱功能……", + "tf8934d32be002bd8": "手動崩潰", + "t9ebbcada9e949dce": "崩潰測試", + "t9d209f342a1c637f": "開始環境檢查……", + "t9d2ca261281a158a": "稍後", + "t1ab4459e28e8ffc0": "目前系統環境缺失軟體執行所需依賴\"{0}\"\n\n點擊確定開啟微軟應用商店安裝", + "t6565bf48c8899990": "依賴檢查", + "t3f0bad9f8269d025": "測試工具操作失敗。請檢視錯誤詳情。", + "tbcc7b9fbf5dec68e": "PCL CE 已經為你啟動了 {0} 次遊戲了。", + "taa7108333483e90e": "檢視啟動計數", + "t8a991189eccf79e6": "看眼伺服器", + "ta333fb3e7b70ae12": "取得進度圖片失敗,請檢查文字是否包含特殊字元", + "ta07ae189359e4cdd": "PNG 圖片 (*.png)|*.png", + "t8003fe6ecd36de67": "請輸入正確的物品 ID!", + "t99ccd224125072c0": "物品名(ID)", + "t5e9d0ede025b4748": "第一行", + "t8190cc058c7298e2": "第二行(可選)", + "t286ca3cb5a195748": "進度名", + "t1c85853c3c254289": "預覽進度影像", + "t850de13a01d9b482": "儲存圖片", + "t0538061cf3674619": "自訂進度圖片已儲存!", + "taa78b565a7843433": "自訂進度圖片生成器 (僅支援英文)", + "tff6bd08680bfc66e": "影像檔案(*.png)|*.png", + "t60132dc9543f632f": "生成大頭貼失敗:{0}", + "t629bcd796ad7a1dc": "大頭貼生成成功!", + "tb650356bb4c79cce": "圖片的大小不正確!請確認你選擇了正確的檔案!", + "t36217e670f6e322e": "儲存大頭貼", + "t3d047c95d6a59414": "大頭貼儲存成功!", + "tfbaf9e39bd12ffdf": "請先選擇外觀!", + "t8e3726813b56a63d": "選擇外觀", + "t9d345873c5e799d2": "大頭貼大小:", + "tc93593d81c35f544": "外觀大頭貼生成器", + "t0f0d83a17d0b20d3": "快取已清理", + "t84693550d00e7f29": "清理了 {0} 個檔案!\nPCL CE 即將自動重啟……", + "td7430286fe835554": "請先關閉所有執行中的遊戲……", + "t74ee503b0170ace3": "即將清理遊戲日誌、錯誤報告、快取等檔案。\n雖然應該沒人往這些地方放重要檔案,但還是問一下,是否確認繼續?\n\n在完成清理後,PCL CE 將自動重啟。", + "tdfab62e692507ce4": "清理確認", + "t9ee3364d93ebc1df": "沒有找到任何可以清理的檔案!", + "t2ffa8e0e69fa8eb3": "清理遊戲垃圾", + "tbc7d4caf5229b425": "清理 PCL CE 的快取與 Minecraft 的日誌、當機報告等垃圾檔案", + "t933c3667c10c70fc": "請在所有下載任務完成後再來清理吧……", + "t3766f8301b35b1b5": "使用 PCL CE 的高速多執行緒下載引擎下載任意檔案。請注意,部分網站(例如 Google Drive、MEGA)可能會報錯 (403) 已禁止,無法正常下載。", + "t52acd47244df9b29": "{0}完成!", + "t7c22b8a76fd86b5a": "自訂下載檔案:{0} ", + "td94a7e10c577490a": "自訂下載 ({0}) ", + "te31cccd7bba006f5": "儲存到", + "tc11330b85234f9c0": "選擇", + "t71b07031e71eeba2": "選擇檔案儲存位置", + "td1647ab99edddd86": "下載自訂檔案", + "tb8bcd45ac0952599": "User-Agent", + "t170aab66d43da5e3": "你今天的人品值是:{0}... {1}", + "tfabb859a49d376dd": "你今天的人品值是:{0}!{1}", + "t2a8e4073d6b41952": "今日人品 - {0}", + "t92efadc123f947dc": "(是百分制哦)", + "t7fd041424ffd370e": "不會吧!", + "te811b65f2616eb5f": "100!100!\n隱藏主題 歐皇…… 不對,社群版應該沒有這東西……", + "t56d49c0764955373": "嗚...", + "tec3232f5a53179d2": "勉強還行吧...", + "t0ec61f06eac531ec": "還行啦,還行啦", + "t9c489929c644d366": "好評如潮!", + "tfa5e1078a914ee54": "差一點就到100了呢...", + "t803a2627eed3f457": "今日人品", + "t5aaee84c9765dc1f": "這個捷徑不會自動移除,在刪除/移動啟動器前請手動移除捷徑。\n\n{0}位置: {1}\n{2}位置: {3}", + "t885097e93a5181f6": "已在{0}建立捷徑", + "tf48d334495f6e4f4": "桌面", + "t93078affa070bd25": "PCL CE{0}", + "tf53f86bacb454243": "選擇捷徑位置", + "t5f8fc718797aca7f": "開始選單", + "taf852212987fc97d": "建立捷徑", + "t32f82c230c13af78": "建立一個指向 PCL CE 執行檔的捷徑", + "t729a19fc26d3c5ba": "正在取得外觀...", + "t9c60961ad4f24e72": "這不是一個有效的 ID...", + "t23f40c8649af757e": "微軟使用者名稱", + "t5536d6e5e12eff18": "玩家 {0} 的外觀已儲存!", + "t3b9c27e43bbdafc2": "下載微軟玩家的外觀", + "t3c442d1005e8ff50": "取得外觀太過頻繁,請 5 分鐘後再試!", + "te3b46bf6b16f0ef3": "啟動器有新版本可用({0} -> {1})\n是否立即更新?", + "t06ca3ef56c8ea79a": "你正在使用來自 PCL-Community 的 PCL CE,遇到問題請不要向原版儲存庫回饋!\nPCL-Community 及其成員與龍騰貓躍無從屬關係,且均不會為您的使用做擔保。\n\n如果你是意外下載的 PCL CE,建議下載原版 PCL 使用。\n如果你是意外下載的 PCL CE,建議下載原版 PCL 使用。\n如果你是意外下載的 PCL CE,建議下載原版 PCL 使用。\n\n該版本與原版的特性區別:\n- 主題切換:僅部分固定藍色系主題,沒有計劃新增其他主題。\n- 百寶箱:缺失部分原版中的內容(回聲洞、千萬別點)。\n\n此提示會在啟動器更新後展示一次。", + "t508475c13584c58c": "PCL CE 版本說明", + "tedea985a6324004e": "取得啟動器更新失敗,請檢查網路連線", + "tcd5f4b92afe99822": "找不到更新檔案", + "tb811dc3558bc7924": "更新操作失敗。請檢視錯誤詳情。", + "t4cd5fde8d16eefc8": "更新檔案 SHA256 不正確,應該為 {0},實際為 {1}", + "tc62696417dd23edf": "無法取得更新", + "tec99e5c45d648fd6": "更新失敗", + "t4f6bc8960e4c3922": "由於被 Windows 安全中心攔截,或存在權限問題,導致 PCL CE 無法更新。\n請將 PCL CE 所在資料夾加入白名單,或手動用 {0}PCL\\Plain Craft Launcher Community Edition.exe 取代目前檔案!", + "taa03f1972326ab1d": "PCL CE 服務", + "tc24a02bdf8950257": "啟動器更新", + "ta2d3ec3bb4307280": "應用檔案", + "td2dedb390499560f": "校驗更新", + "t88c9e8ce41f5eb06": "下載最新穩定版", + "t60e91c6a0eec6622": "下載更新檔案", + "t9133064e581c3481": "取得公告資訊失敗", + "tff63af0c5f1a8797": "取得下載資訊", + "t0e73771409eaf7c8": "取得版本資訊", + "ta377055a04f9983e": "取得版本資訊失敗", + "t7a6bafc9c85304a1": "安裝更新", + "tccfe46267f3cb7ca": "準備更新", + "tbdff32cd1ef29c21": "重新整理設定 UI", + "tc5c9e38f16f9f2aa": "顯示按鈕", + "t61f13cea13731d09": "Minecraft 返回值異常,可能已崩潰", + "tf46cf772aba4561f": "崩潰分析開始", + "t962a19a6deb7171b": "Minecraft 已崩潰,將在 2 秒後開始崩潰分析", + "t32838cfc1676e42d": "Minecraft 已崩潰。由於崩潰分析已被停用,將不會開始分析", + "t7fb5752a03c77ef1": "偵測到 Minecraft 出現錯誤,錯誤分析已開始……", + "t3d7323980d97dd61": "Minecraft 尚未載入完成,可能已崩潰", + "t48f5d3e87238e153": "Minecraft 日誌監控已退出", + "t6ea9883b64f35d09": "FML 視窗已載入:{0}({1})", + "t2aa0e3cc14220312": "嘗試強制結束 Minecraft 程式", + "tbe25012b3cc8a57b": "強制結束 Minecraft 程式失敗", + "tb507ae799e29accc": "已強制結束 Minecraft 程式", + "t5e74e5851c668b93": "程式仍未退出,嘗試使用 taskkill.exe", + "t58aa18dea58f8490": "執行 taskkill.exe 結果:{0}", + "t1eeced21ea4715bb": "強制結束 Minecraft 程式失敗:等待程式退出超時", + "t4399a57fec946ae9": "Minecraft 載入已完成", + "t6a7e7c2098dc1c96": "識別為關閉的 Log:{0}", + "t2e57209c245a3b57": "識別為崩潰的 Log:{0}", + "tcdf8d3495afcb330": "Minecraft 已退出,返回值:{0}", + "tcc639f4bf98d8a5f": "日誌 1/5:已出現日誌輸出", + "t9323d79d5fa03463": "日誌 3/5:LWJGL 版本已確認", + "te61a1b2541adbad7": "日誌 4/5:OpenAL 已載入", + "t0854eaaff4958645": "日誌 5/5:材質已載入", + "tf20362b3e39f3d9f": "日誌 2/5:遊戲使用者已設定", + "t24fa88345de2f73b": "由於反作弊或安全軟體攔截,PCL CE 無法操作遊戲視窗", + "t6a16eeb2e864fed9": "開始 Minecraft 日誌監控", + "t0abb82c15cbd176d": "Minecraft 視窗已載入:{0}({1})", + "t2a25370f3f42378a": "已最大化 Minecraft 視窗:{0}", + "t36887d9b2ad35a12": "背景圖片", + "tff13402cecbb9194": "圖片適應", + "t9eaa61edf066946a": "背景不透明度", + "t38feac1ef57f7530": "輪播間隔(秒)", + "t4b3b45a347eb3097": "首頁社團實景輪播", + "t4a14255e93d43a6e": "內建校園湖畔、生存服主城與創造服雕像,可選擇本機圖片。關閉內建輪播後恢復主題背景。", + "t79b21b81fac46f51": "選擇圖片…", + "t8b4261294f8e2c90": "恢復內建圖片", + "te360fc3377b293ec": "開啟圖片資料夾", + "tee1b60ff9e53a999": "重新整理背景", + "t9f8c282f835b62a6": "啟動器開啟後自動播放", + "t4fa138a971d33ed5": "遊戲執行時", + "tb0d3d0cf02bc6965": "開啟音樂資料夾", + "tc3396195e91ccdd8": "播放", + "tca4d973c0b006b75": "停止", + "ta45897804b7572f2": "標題內容", + "t1c623e5fbeffe5f2": "首頁內容", + "t33e69e113e978c4e": "選擇本機檔案", + "t8f6178afb7effd3b": "勾選以隱藏不需要的入口;按 F12 可暫時顯示所有隱藏功能,再按一次恢復。", + "t8f1070ca7452f4e4": "設定子頁面", + "t35657b39fa109dc8": "工具子頁面", + "t09a4e2154c4b5496": "實例設定子頁面", + "t07cf529081e07007": "關於潮湧核心社", + "t40a782d43a96162f": "潮湧核心社獨立維護的跨平台啟動器。歷史源自 PCL-CE;開發與維護:Moeary 與 Codex。", + "t199e232f9d511523": "原作者與 PCL-CE 支援", + "tb7f16d747c68864b": "社團鳴謝", + "ta77db7e0a10ccaa1": "原始專案鳴謝", + "td67e813c1227f6c4": "社團版貢獻者", + "taffcee307cfb401f": "憑證使用系統安全儲存,日誌儲存在本機。登入、下載與線上內容會連線至使用者選擇的服務;是否分享日誌由使用者決定。新版不提供連線大廳,也不會自動下載或取代啟動器本身。", + "td4ec05e2afa60282": "歷史程式碼與素材的原作者版權繼續保留;專案授權與歸屬隨發行包提供。", + "t3497c1bd86a1652c": "非 Minecraft 官方產品,未經 Mojang 或 Microsoft 認可,也不與其關聯。", + "td56ddef7d359808b": "隱私與網路說明", + "t38b899b44339abff": "PCL-CE 原始碼", + "t17885ed3ef564375": "原始專案版權與法律資訊", + "ta4fc763353b3d343": "原始專案原始碼", + "t35e664d3a6e0509d": "嘉然配色", + "te38b8d16e03d2b2b": "愛彌斯配色", + "tac2af1d3e91a02b4": "高雅人士配色", + "t86df2a26066e2d44": "智慧填滿", + "t715bb134d936a2cf": "完整適應", + "tfef304a69096b2c3": "左上", + "tddf11974a72b465a": "右上", + "t8537c17b8e3e8ce3": "左下", + "teae5305a5c764661": "右下", + "t9c9ee9a819996bcb": "保持播放狀態", + "t2eecbe60f6b9a3a0": "遊戲執行時停止", + "tb2037ea3cdfe898d": "僅在遊戲執行時播放", + "t6c031fd1176a21a1": "Plain Craft Launcher 的原作者", + "tff99556c2e15299d": "Plain Craft Launcher Community Edition 的開發團隊", + "t9e9ccc1de1a670e6": "由社團獨立維護的跨平台新版本", + "t593ad70c186de5ea": "認識指導老師", + "tc7ffae102dfe5b82": "認識空間博士", + "tc44abb25c3f6a0c0": "專案開發與社團維護", + "t1febec6381b91710": "開發協作與測試", + "t0d72e06a12578fe5": "歷史專案支援與貢獻", + "t91fe7f73195932cd": "歷史專案貢獻者", + "tb07a140754883838": "造訪專案", + "t04913c227839e308": "造訪網站", + "t9247bbb40a81f614": "開啟 MC 百科", + "t2a1f44f78b386264": "設定尚未全部儲存,請檢查輸入或安全儲存後重試。", + "tfb286866866dc5db": "有效輸入會自動儲存。", + "t148314849d1e3c95": "啟動時顯示社團圖示", + "t678463fdac2d7c9a": "啟動遊戲時顯示提示", + "tcabc3ec0e94348b9": "啟動時提示社團更新日誌", + "tb25cf527bf367792": "顯示社團介紹", + "t3fd014a1f6ed480b": "顯示伺服器清單", + "t2a2846c57eb53222": "Conduit Club · 上海海洋大學 Minecraft 社團", + "t390454a193f8d16f": "社團首頁", + "td854044d5ce6cd2a": "社團啟動器原始碼", + "t065d53d95c055a59": "版本與執行環境", + "t128ac8e6ea60cf3e": "特別鳴謝 · 社團指導老師-ZRY", + "tcec91059e352bbf6": "特別貢獻 · 空間博士-ZST", + "t7bf1d59e03f40c93": "為 Minecraft 潮湧核心社團的創立提供了大力支援。", + "tcfa4da390461a001": "為社團在虛擬實境與 Unity 技術上的發展作出了貢獻。", + "t3bdf6176817da848": "Minecraft 下載鏡像服務", + "tee655b06ea41df64": "中文 Minecraft 模組資料", + "t7d35a66894138d75": "歷史連線元件貢獻;新版本已移除連線功能", + "t9cea4540daa70a2b": "自動儲存逾時;目前輸入尚未全部儲存,請重試。", + "t065c765a90695511": "來源設定無效:", + "t03b172ea135d9c4f": "來源順序已變更,有效設定會自動儲存。", + "t1ce02a0f37e5fb2c": "目前使用內建社團實景。", + "t4d5b21631fe5f50b": "設定已自動儲存。", + "t778ba19ffb5befef": "位址已變更;有效輸入會自動儲存。", + "t370446e738783d11": "密鑰已變更;有效輸入會自動儲存。", + "te53967ca1ff3a96a": "音樂資料夾中沒有 WAV、MP3 或 M4A 檔案。", + "t40f7cd2f6f68e5a1": "潮湧核心社啟動器", + "t7bfbed49a0ffbd16": "發行版本 v{0} · 代號 {1}", + "t4f078f908f8c3017": "選擇已下載檔案…", + "t75e2fabcb4a0f801": "重新預檢", + "tacf2725262be5b6a": "部分檔案需從作者官網取得。下載指定版本並選擇檔案校驗後,請確認實例名稱並安裝。", + "tb577306338735d2a": "{0:0.##} MiB · 官方檔案 {1}", + "t936bcd6c422aeee8": "正在重新預檢整合包與補充檔案…", + "tbf228f4caebf121f": "正在讀取本機整合包…", + "td336f829b21272c6": "整合包在補充檔案後已變更,請重新選擇並預檢,再確認安裝。", + "t8fd6c3c0f5c02fc8": "整合包預檢已取消;可重新預檢後繼續。", + "t92acca5c8bbcd8b2": "正在按官方版本校驗補充檔案…", + "t0a20c4da3cfd03e3": "補充檔案已取消;待補檔案保留,可重試或重新預檢。", + "tf5ea7220cf203860": "整合包檔案已變更,本次已按新檔案重新預檢,請核對內容後安裝。", + "t6474fb292922dfd9": "勾選需要的可選下載;未勾選的下載將略過。", + "t7be8aae334cc8c1c": "按所選項目繼續安裝", + "t3370edc05677b48e": "可選檔案", + "t6f8123ec68a2fe43": "檢查選擇並匯入", + "tfd1a09022fd5e712": "可選項目已變更,匯入前會重新檢查本次選擇。", + "t99d0c7ca04291297": "可選項目已變更,繼續前會重新檢查本次選擇。", + "tef2ea260c348e6b1": "等待選擇可選檔案", + "t868e29a93bc2edbc": "勾選需要的可選下載後繼續;未勾選的下載將略過。", + "t19a32d238fa54100": "已取消;可重試並重新選擇可選檔案。", + "t531d746fbf2ba539": "官方名稱尚未核實;選取後會核實檔案身分與可用性。", + "t4d761bdef85f56ea": "取消檢查", + "ta96c9a854190874d": "排序", + "t02f56db87dcd6547": "匯出資源資訊", + "t25360e782ef5c106": "全選 / 反選", + "t99f8f4f97cfdbdf1": "更新所選", + "t26008950621fcb56": "啟用所選", + "tc35ebeed062b488a": "停用所選", + "t435bf8a234fde6f2": "刪除所選", + "tba35dc23b245e61e": "資源回收筒", + "t557e7ef05116a514": "模組資源回收筒", + "t675c2e148a7a9305": "還原所選記錄", + "t9071cfe7cd010bb1": "關閉詳細資訊", + "t9756c549e06b91d5": "更新並備份", + "t6a5b1cb18fb64c5c": "移到資源回收筒", + "t526fed29561d2913": "新增時間", + "tbc5a87a757a557d9": "已停用", + "t5f80b5165d7c3b68": "重複項目", + "t1082ee1202a56dfa": "可更新至 {0}", + "t5a5c8318ef649672": "已選取 {0} 項", + "t73d55515ac08cf1b": "{0}({1})", + "t30c3a408785cce93": "安裝本機資源", + "t5bb18dfb347ac7c1": "將 {0} 個檔案裝入 {1}?", + "t9f7da21680020bda": "將所選模組移至實例資源回收筒?", + "t9bc2480077924309": "更新所選模組並保留原始檔案備份。整合包自訂版本可能不適合單獨更新。", + "t19612b3051d19e56": "檢查已取消,未修改模組檔案。", + "te8bc17581c32891c": "正在核對已安裝模組及其官方更新,可隨時取消。", + "t5c6117ff57e7aa8b": "檢查已取消或失敗,未修改模組檔案。", + "t4d91f7765d314387": "返回模組", + "tdf7392cc96bedc51": "重新讀取", + "t1b81f418a6111381": "僅核對檔案宣告;版本限制、載入器實際選擇與衝突仍需核驗。", + "t5d8e40ab8b8f94b5": "搜尋模組、內嵌 ID 或相依項", + "t89a97de8a0609e18": "只看需要檢查的檔案", + "t9c94bd277ebaa24f": "沒有符合的模組宣告。", + "t8459c09fb5eaedee": "相依宣告與來源", + "t71c172084904b191": "獨立與內嵌宣告", + "t6e15853f4883ed66": "{0} 個檔案 · {1} 個宣告節點 · {2} 項相依", + "t2f18915b108603fb": "讀取已取消,可重新讀取。", + "t9898793b3bfdbb8e": "目前服務不支援讀取模組關係。", + "t9299b98ddf31792f": "正在讀取模組與內嵌宣告…", + "t6b8b79b5fc1d2523": "部分宣告未能讀取,請查看檔案詳情。", + "t78911af0e24d1c03": "宣告讀取完成。", + "t9f2a4477c71eba5f": "讀取失敗:", + "tbc63ac5f5dac6061": "找到獨立宣告", + "te4b696356a6bc6e4": "找到內嵌宣告", + "ta11f747ff407906f": "僅在已停用檔案中找到", + "t57cd2b6e160faf99": "未找到宣告", + "t403c57fbc15051a5": "讀取不完整,尚未核實", + "t847efd925c48a35a": "檔案在讀取期間發生變更,請重新讀取。", + "t4e601080b90761eb": "無法讀取封存檔或模組宣告。", + "t0b8bd4e1afa58007": "內嵌解析達到深度或節點預算,結果不完整。", + "tdc7ae7f51b9bf127": "封存檔項目過多,宣告讀取不完整。", + "t5dca86d1deac1357": "存在未解析的 Quilt 組合相依宣告。", + "t47bbf57ae4694f8d": "部分模組宣告無法解析,結果不完整。", + "tc1facef2a191a7a2": "內嵌封存檔遺失、損壞或超出讀取預算,結果不完整。", + "te13ab655d6ca1ce9": "內嵌路徑宣告無效,結果不完整。", + "t14e68ce7631adc07": "模組關係", + "t3b83ff6a70abab8f": "檢查模組更新", + "tde3c35c2a69a3102": "排序:", + "t9f07d2ce4115f575": "更多操作", + "ta6bccf6ff247cfbb": "更新模組", + "tfe76e31d24ddf33c": "顯示檔案", + "tf8bbcd6fea98c392": "資源封存檔項目過多,未讀取顯示資訊。", + "tdc5a86024be7f4e7": "無法讀取資源封存檔顯示資訊。", + "t53a1187ad2615275": "正在核對資源顯示資訊,本機列表可繼續使用。", + "tdb0d83b922a85498": "已核實 {0} 項資源顯示資訊;{1} 項保留本機資訊。", + "t1516861defba32c5": "資源顯示資訊暫不可用,本機列表保留。", + "tf947d382ebca9b6d": "奇趣", + "tc13491446baa0ac5": "半寫實", + "t93294b654c4017ad": "寫實", + "t1b9d21130542b840": "極低配", + "t4832877d9fac3e5a": "低配", + "t118c0c03438634e0": "中配", + "tc63c900816036798": "高配", + "tf31c4407739e6a75": "高畫質", + "t891f1255618481d9": "泛光", + "ta0fb1c62d0e8ce9e": "陰影", + "t73f33d69d8a6d5dd": "檢查資源更新", + "t9caca24bf3f774c1": "更新資源", + "tad98c42548d7e004": "更新資源並備份", + "t6c0974f8b3ae5502": "檢查已取消,未修改資源檔案。", + "tff3224023f2754e4": "檢查已取消或失敗,未修改資源檔案。", + "t8b0baeea2637137b": "正在核對已安裝資源及其官方更新,可隨時取消。", + "tda0eb8e6126419f1": "已檢查 {0}/{1} 項資源", + "td27ec7c9359c3ba6": "已檢查 {0} 項資源,發現 {1} 項相同遊戲版本的正式版更新。", + "t0fc9e0c979426199": " {0} 項未能核實,未計為最新版。", + "t2b8756c51d6bef60": "暫未能核實資源更新:", + "td10cf31d6f2c6ff2": "已更新 {0}/{1} 項資源,原檔案已備份。", + "t5392c3d1e9da59c2": "目前篩選下沒有可更新的資源", + "t43e6c7570b77f609": "目前篩選下沒有資源", + "t72e80862791a8109": "資源版本宣告了相依項目,請在資源詳情核對;本次僅更新所選檔案。", + "t430446a51dcd8554": "檔案裝入 shaderpacks;啟用光影仍需實例具備相應繪製模組。", + "tf5347d661a21ee12": "資源版本相依項目:", + "t92707d3318b3d04f": "必需", + "t4ae9eb28741faa5f": "不相容", + "t537352400c495fb8": "可選", + "t975f9da19eee1b16": "內嵌", + "te146d0aa4f6d8f81": "將所選資源移到實例資源回收筒?", + "t28b4afd6d21a67d5": "資源回收筒", + "tfe4e0d291b7478d9": "還原所選", + "tafd4b783536b8297": "收起", + "taf9ab85222e0c4a2": "檢視下載詳情", + "t7f9920e38dec6df9": "回收資源", + "t102784dad55e3a72": "讀取資源回收筒", + "te45a070e24ec96a8": "還原資源", + "t9fcbeab9ecfe4f6f": "繼續載入截圖", + "t2413ba708781d909": "已顯示 {0}/{1} 張截圖", + "t92b9bae024bb51b2": "選擇檔案與目錄", + "t8e7847be62b68c2b": "上一層", + "t36aff47e9da99ebf": "勾選目錄會包含其全部內容;可進入目錄選擇個別檔案。", + "tf88182fcd575be3a": "進入", + "t18e57daa4a061a64": "清除額外選擇", + "t3bc3f948d49c7fae": "另選 {0} 項檔案或目錄", + "t2d962a4add956924": "匯出目錄讀取失敗:", + "t728b49f9cdb72476": "搜尋收藏:名稱 / 作者 / 來源 / 類型", + "tf06fb3f71f88681b": "重新整理伺服器狀態", + "t613172aeea9e8c19": "回應 {0} ms", + "t8bbb38569df143b3": "正在查詢…", + "t84d11bab76dc6066": "尚未查詢", + "t1ad2d5463a1d2b08": "快捷遊玩", + "t7dc5cd68ff29a1fd": "編輯伺服器", + "td52291a26b912a86": "啟動目前實例並連線至此伺服器", + "t80d2d8145a503816": "開啟記錄檔案", + "t440f779300918915": "開啟截圖", + "t314bfb6dc41fdc10": "讀取收藏圖示", + "tbea9982da7d72327": "按兩下或按 Enter 進入資料夾", + "t0d6324caf8aa6c05": "沒有符合條件的收藏", + "t02aa1fe8479d44bf": "目前資料夾是空的", + "t2172cb489d3eecd9": "分享收藏", + "tf074def5de38a40a": "管理收藏夾", + "t50ef2f4cf6a46924": "新增", + "te965cb43b78bde3e": "移除分組(保留收藏)", + "t61ec1c040213fb45": "貼上 WPF 收藏分享碼", + "t8d8d657d7a815657": "匯入至目前收藏夾", + "t9f4c783b28cc94e0": "全選 / 取消選取", + "t1113af786ccfd852": "移除所選收藏", + "t43f9d4de56f54085": "Classpath 前置路徑", + "t12ee24baeddab047": "詳細遊戲日誌", + "t50c37782012c26fb": "其他渲染與相容選項尚未適配此版本。", + "t93b053bff32f3814": "預設收藏夾", + "t9f4a9b9e966deaeb": "新收藏夾", + "t69575bb70908edff": "目前收藏夾還沒有資源。", + "t2d22af42a79f019a": "編輯備註", + "t8d9284d5e4936a9b": "取消目前分組收藏", + "t4f8b0ab088ec2524": "儲存備註", + "t920fe6ef0593c099": "刪除收藏夾", + "t7203bfcf26c3119f": "匯入舊 WPF 收藏檔案…", + "t9ffc0154b97daeb9": "確認刪除收藏夾", + "t0d1f81d513556baa": "搜尋收藏:名稱 / 描述 / 標籤 / 備註", + "t2492d028220961df": "複製至分組", + "ta2defe28a03a69cd": "移至分組", + "tf57493dabb517cf5": "批次下載所選…", + "t96f7895e01f2468d": "重新讀取失效收藏", + "t29cdbd447a3d3dee": "收藏批次下載", + "t8be216be7a848dd3": "遊戲版本", + "t22120d4c037ee575": "選擇目錄並下載…", + "tdca2fe47daa24930": "選擇舊 WPF 收藏設定", + "t8c9d1e22fbe8f0eb": "選擇收藏資源儲存目錄", + "tdaede9881787abe7": "備註", + "t0c8ba7104e9ab134": "所選收藏沒有共同支援的載入器或遊戲版本。", + "t8599f06038ef6f14": "選擇共同版本及儲存目錄後下載;僅儲存檔案,不安裝至實例。所選版本可能包含測試版。", + "tdcc9061fb4159860": "未能讀取所選項目,未下載:{0}", + "t51741c58faab5884": "暫未讀取的收藏:{0}", + "t87ea224d0bd738bd": "刪除收藏夾「{0}」及其收藏記錄?其他收藏夾不受影響。", + "t3e4097f052c17323": "已儲存 {0} 個檔案,重用 {1} 個檔案。", + "t7a0a6ccb8c6ad857": "未完成:{0}", + "td09ae8da9937c141": "已匯入 {0} 項收藏。", + "t70f9b6f26de2f4f2": "無法讀取(已保留,可重試):{0}", + "tded2e7766fd4567e": "下載已取消或失敗;已完成的檔案保留。", + "tfd2d4eb005e182d0": "支援自訂 JVM 參數,按原樣傳給 Java;含空格的值請加引號。", + "tfebb5a932e21b5eb": "支援自訂 JVM 參數,按原樣傳給 Java;含空格的值請加引號。", + "t53a59354361e5939": "重新授權鑰匙圈", + "t50a626534809dffa": "更新後需重新允許此啟動器讀取 macOS 鑰匙圈,原登入憑據仍保留。", + "t3b2133aceb4fb225": "遊戲正在初始化", + "t0facea6421e1fea3": "返回啟動器", + "tb80a7249a2b7bc9e": "已等待 {0:0} 秒,正在初始化遊戲視窗…", + "t56c84f1069b65b44": "遊戲程序已啟動,視窗狀態尚未確認" +} diff --git a/src/SHOU.Launcher.Desktop/Localization/UiLocalization.cs b/src/SHOU.Launcher.Desktop/Localization/UiLocalization.cs new file mode 100644 index 00000000..6713be2e --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Localization/UiLocalization.cs @@ -0,0 +1,93 @@ +using System.Globalization; +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using System.Text.RegularExpressions; +using Avalonia.Data; +using Avalonia.Data.Converters; +using Avalonia.Markup.Xaml; +using CommunityToolkit.Mvvm.ComponentModel; + +namespace SHOU.Launcher.Desktop.Localization; + +public sealed class UiLocalization : ObservableObject +{ + private static readonly CultureInfo SystemUi = CultureInfo.CurrentUICulture; + private static readonly CultureInfo SystemRegion = CultureInfo.CurrentCulture; + public static UiLocalization Instance { get; } = new(); + private readonly Dictionary> catalogs = new(StringComparer.OrdinalIgnoreCase); + private string locale = "zh-CN"; + private int revision; + public int Revision => revision; + public string Locale => locale; + public CultureInfo FormattingCulture { get; private set; } = SystemRegion; + public static string Key(string phrase) => "t" + Convert.ToHexStringLower(SHA256.HashData(Encoding.UTF8.GetBytes(phrase)))[..16]; + private Dictionary Catalog(string code) + { + if (catalogs.TryGetValue(code, out var catalog)) return catalog; + using var data = typeof(UiLocalization).Assembly.GetManifestResourceStream("SHOU.Launcher.Desktop.Localization.Resources." + code + ".json"); + catalog = data is null ? [] : JsonSerializer.Deserialize>(data) ?? []; + catalogs[code] = catalog; return catalog; + } + public static IReadOnlyList SupportedLanguages { get; } = ["zh-CN", "zh-TW", "en-US"]; + public static string NormalizeLanguage(string? requested) + { + var code = string.Equals(requested, "system", StringComparison.OrdinalIgnoreCase) ? SystemUi.Name : requested ?? "zh-CN"; + if (code.StartsWith("zh", StringComparison.OrdinalIgnoreCase)) + return code.Contains("Hant", StringComparison.OrdinalIgnoreCase) || code.StartsWith("zh-TW", StringComparison.OrdinalIgnoreCase) || + code.StartsWith("zh-HK", StringComparison.OrdinalIgnoreCase) || code.StartsWith("zh-MO", StringComparison.OrdinalIgnoreCase) ? "zh-TW" : "zh-CN"; + return "en-US"; + } + public void SetLanguage(string requested, string region = "system") + { + var code = NormalizeLanguage(requested); + // Do not pin an AsyncLocal culture in one save callback: it would revert at the await boundary. + CultureInfo.DefaultThreadCurrentUICulture = CultureInfo.GetCultureInfo(code); + FormattingCulture = region == "system" ? SystemRegion : CultureInfo.GetCultureInfo(region); + CultureInfo.DefaultThreadCurrentCulture = FormattingCulture; + if (locale == code) return; locale = code; revision++; OnPropertyChanged(nameof(Revision)); OnPropertyChanged(nameof(Locale)); + } + public string Get(string key) + { + if (locale == "zh-CN") return Catalog("zh-CN").GetValueOrDefault(key, key); + return Catalog(locale).GetValueOrDefault(key) ?? Catalog("en-US").GetValueOrDefault(key) ?? Catalog("zh-CN").GetValueOrDefault(key, key); + } + public string Text(string phrase) + { + if (string.IsNullOrEmpty(phrase) || locale == "zh-CN") return phrase; + // Picker labels are native language names, not translatable UI captions. + if (phrase is "简体中文" or "繁體中文" or "English") return phrase; + var key = Key(phrase); return Catalog("zh-CN").ContainsKey(key) ? Get(key) : phrase; + } + public string Format(string phrase, params object?[] arguments) => string.Format(FormattingCulture, Text(phrase), arguments); +} + +public sealed class LocExtension(string key) : MarkupExtension +{ + public override object ProvideValue(IServiceProvider serviceProvider) => new Binding(nameof(UiLocalization.Revision)) + { Source = UiLocalization.Instance, Converter = new LiteralConverter(key) }; + private sealed class LiteralConverter(string key) : IValueConverter + { + public object Convert(object? value, Type type, object? parameter, CultureInfo culture) => UiLocalization.Instance.Get(key); + public object ConvertBack(object? value, Type type, object? parameter, CultureInfo culture) => throw new NotSupportedException(); + } +} + +public sealed class TranslateExtension(string path) : MarkupExtension +{ + public IValueConverter? Converter { get; set; } + public override object ProvideValue(IServiceProvider serviceProvider) => new MultiBinding + { + Bindings = { new Binding(path), new Binding(nameof(UiLocalization.Revision)) { Source = UiLocalization.Instance } }, + Converter = new TranslatedValue(Converter) + }; + private sealed class TranslatedValue(IValueConverter? converter) : IMultiValueConverter + { + public object? Convert(IList values, Type targetType, object? parameter, CultureInfo culture) + { + var original = values.Count == 0 ? null : values[0]; + if (converter is not null) original = converter.Convert(original, typeof(string), null, culture); + return original is string text ? UiLocalization.Instance.Text(text) : original; + } + } +} diff --git a/src/SHOU.Launcher.Desktop/Localization/supplement-en.json b/src/SHOU.Launcher.Desktop/Localization/supplement-en.json new file mode 100644 index 00000000..5ea4952f --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Localization/supplement-en.json @@ -0,0 +1,159 @@ +{ + "自动选择 Java(推荐)": "Select Java automatically (recommended)", + "已指定全局 Java": "Global Java selected", + "已发现的 Java({0})": "Discovered Java installations ({0})", + "微软正版登录({0})": "Microsoft ({0})", + "LittleSkin 登录({0})": "LittleSkin ({0})", + "MUA 登录({0})": "MUA ({0})", + "离线登录({0})": "Offline ({0})", + "全部账户({0} 个角色)": "All accounts ({0} profiles)", + "{0}({1} 个角色)": "{0} ({1} profiles)", + "微软正版": "Microsoft account", + "离线角色": "Offline profile", + "正在添加:{0}。可直接点击其他登录方式切换。": "Adding {0}. Select another sign-in method to switch.", + "此渠道尚无已选角色,可添加账户或在下拉列表中选择。": "Add an account or choose a profile from the list.", + "使用自动选择": "Use automatic selection", + "重新发现 Java": "Discover Java again", + "选用此 Java": "Use selected Java", + "打开 Java 证书工具": "Open Java certificate tools", + "启动游戏时按实例要求选择兼容版本。全局选择可被实例单独设置覆盖。": "Select a compatible Java version for the instance. Instance settings can override the global selection.", + "当前使用内置社团实景。": "Using the bundled campus background.", + "替换首页轮播图片": "Choose home backgrounds", + "恢复内置轮播": "Restore bundled background", + "浅色配色": "Light theme colors", + "深色配色": "Dark theme colors", + "打开启动器时显示社团图标": "Show the club logo at startup", + "在启动游戏时显示“你知道吗”": "Show tips while launching a game", + "启动时提示社团更新日志": "Show new club announcements at startup", + "使用系统支持的背景材质;不支持时回退为普通背景。": "Use system backdrop effects, with a plain background fallback.", + "图片轮播已接入;背景视频仍待跨平台播放器适配。": "Image slideshows are supported. Background video still needs a cross-platform player.", + "选择图片": "Choose image", + "隐藏下载入口": "Hide Downloads", + "隐藏工具入口": "Hide Tools", + "TXT / Markdown 本地文件或 HTTPS 文本地址;不执行 XAML、HTML 或脚本。": "A local TXT/Markdown file or an HTTPS text document. XAML, HTML and scripts are not executed.", + "让潮涌核心社启动器\n走向国际化。": "Help make SHOU Launcher\navailable in your language.", + "保存设置": "Save settings", + "设置已保存。": "Settings saved.", + "放弃草稿": "Discard changes", + "实时日志行数": "Live log line limit", + "保存后重启启动器生效。": "Save and restart the launcher to apply.", + "直连时使用 DNS over HTTPS;失败回退系统解析。代理连接保留代理自身的解析方式。": "Use DNS over HTTPS for direct connections, with system DNS fallback. Proxies keep their own DNS behavior.", + "连接密钥仅写入系统安全存储。": "Connection secrets are stored in the system credential store.", + "本启动器不收集遥测。连接密钥仅写入系统安全存储。": "This launcher collects no telemetry. Connection secrets use the system credential store.", + "启动时检查启动器更新": "Check for launcher updates at startup", + "检查社团更新": "Check for updates", + "打开发行页面": "Open releases", + "下载更新包": "Download update package", + "打开更新包目录": "Show downloaded package", + "已读取发行版本;暂无当前平台的可校验跨平台更新包。": "Releases loaded. No verified cross-platform update package is available for this platform.", + "已读取可用发行版本。": "Available releases loaded.", + "没有已发布版本。": "No published releases.", + "更新包下载并校验完成。": "Update package downloaded and verified.", + "打开社团问题列表": "Open the project issue tracker", + "反馈与建议": "Feedback and suggestions", + "反馈列表": "Feedback", + "检索反馈": "Search feedback", + "没有匹配的反馈。": "No matching feedback.", + "提交反馈时请附版本与脱敏日志,勿提交密码和令牌。": "Include the version and sanitized logs. Never submit passwords or tokens.", + "法律信息与开源许可": "Legal notices and open-source licenses", + "Conduit Club · 上海海洋大学 Minecraft 社团": "Conduit Club · Shanghai Ocean University Minecraft club", + "贡献与版权": "Contributors and copyright", + "社团标识和实景素材归其原作者及社团所有。": "Club branding and campus images belong to their original creators and the club.", + "感谢 Plain Craft Launcher 原作者、PCL Community 与所有开源项目贡献者。潮涌核心社独立维护本启动器,历史来源与许可随发行包提供。": "Thanks to the original Plain Craft Launcher authors, PCL Community and all open-source contributors. Conduit Club maintains this launcher independently. Source history and licenses are included with the package.", + "Minecraft 是 Mojang Studios 的商标。本项目未获 Mojang 或 Microsoft 官方认可。": "Minecraft is a trademark of Mojang Studios. This project is not endorsed by Mojang or Microsoft.", + "查看项目许可与说明": "View project licenses and notices", + "版本与运行环境": "Version and runtime", + "发行版本 v{0} · 代号 {1}": "Version v{0} · {1}", + "社团主页": "Club website", + "社团启动器源代码": "Launcher source code", + "日志操作": "Log actions", + "查看并导出脱敏日志": "View and export sanitized logs", + "导出全部日志": "Export sanitized log archive", + "确认回收预览中的历史日志": "Confirm recycling the previewed logs", + "移入回收目录": "Move to recovery folder", + "恢复最近清理": "Restore last cleanup", + "所有日志": "All logs", + "刷新列表": "Refresh list", + "历史日志已移入回收目录。": "Historical logs moved to the recovery folder.", + "历史日志已恢复。": "Historical logs restored.", + "没有可清理的历史日志。": "No historical logs to clean.", + "操作已取消或超时。": "Operation cancelled or timed out.", + "设置已导出;账户和连接密钥未包含在内。": "Settings exported. Accounts and connection secrets are excluded.", + "已读入设置草稿;点击保存设置后生效。": "Settings loaded into a draft. Save settings to apply.", + "用户选择": "User selected", + "启动器管理": "Launcher managed", + "便携目录": "Portable installation", + "注册表": "Registry", + "系统安装": "System installation", + "社团更新日志": "Club announcements", + "Minecraft 游戏本体": "Minecraft game files", + "社团 Wiki": "Club wiki", + "登录与入服指南": "Sign-in and server guide", + "工具": "Tools", + "启动器日志": "Launcher logs", + "Java 证书": "Java certificates", + "Java 证书诊断与修复": "Java certificate diagnostics and repair", + "游戏资源获取行为": "Game download behavior", + "优先完整官方清单": "Prefer the complete official manifest", + "仅使用 HTTPS": "Use HTTPS only", + "使用自定义来源顺序": "Use custom source priorities", + "自定义下载源与优先级": "Custom download sources and priorities", + "内存跟随全局设置": "Use global memory settings", + "Java 跟随全局设置": "Use global Java selection", + "其它启动选项跟随全局设置": "Use global launch options", + "保存实例设置": "Save instance settings", + "保存个性化": "Save appearance", + "放弃修改": "Discard changes", + "上一页": "Previous page", + "下一页": "Next page", + "设置": "Settings", + "启动": "Launch", + "下载": "Downloads", + "默认": "Default", + "跟随系统": "Follow system", + "默认主页": "Default home", + "网络地址": "Web address", + "文本": "Text", + "图片": "Image", + "本地文件": "Local file", + "嘉然配色": "Default colors", + "绯红": "Garnet", + "海蓝": "Ocean blue", + "青玉": "Jade", + "Microsoft public Client ID 覆盖": "Override Microsoft public client ID", + "username:password(留空保留已有凭据)": "username:password (leave blank to keep existing credentials)", + "停止": "Stop", + "允许背景轮播": "Enable background slideshow", + "刷新背景": "Refresh backgrounds", + "刷新音乐": "Refresh music", + "参与本地化贡献": "Contribute translations", + "应用数据目录": "Application data directory", + "打开图片目录": "Open images folder", + "打开数据目录": "Open data folder", + "打开音乐目录": "Open music folder", + "播放": "Play", + "显示社团介绍与顶部提示": "Show club introduction and notices", + "显示社团服务器切换": "Show club server selection", + "标题栏 / 主页 / 功能隐藏": "Title bar / Home / Navigation", + "留空使用发行包内置配置": "Leave blank to use bundled configuration", + "缓存目录": "Cache directory", + "背景图片 / 视频": "Background images / video", + "首页定制": "Home customization", + "全局动画帧率仍待平台适配。": "A global animation frame cap still needs platform support.", + "导出仅包含脱敏日志;历史日志可移入回收目录并恢复。": "Exports contain sanitized logs only. Historical logs can be recycled and restored.", + "系统安全存储可用": "System credential store available", + "系统安全存储不可用": "System credential store unavailable", + "不提示": "Do not notify", + "启动器公告": "Launcher announcements", + "选择首页轮播图片": "Choose home backgrounds", + "选择标题栏图片": "Choose title bar image", + "选择本地主页": "Choose a local home document", + "导出启动器设置": "Export launcher settings", + "导入启动器设置": "Import launcher settings", + "导出全部脱敏日志": "Export sanitized log archive", + "选择 Java 可执行文件": "Choose Java executable", + "服务暂时限制了请求。请稍后重试,或前往项目页面查看。": "The service is limiting requests. Try again later or open the project page.", + "无法连接服务。请检查网络后重试。": "Cannot connect to the service. Check your network and try again.", + "Minecraft 运行环境": "Minecraft runtime", + "实例选择": "Select instance" +} diff --git a/src/SHOU.Launcher.Desktop/Native/MacOS/README.md b/src/SHOU.Launcher.Desktop/Native/MacOS/README.md new file mode 100644 index 00000000..448b1352 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Native/MacOS/README.md @@ -0,0 +1,47 @@ +# 稳定的 macOS 凭据组件 + +`credential_broker.c` 是单次请求的原生 Security.framework 客户端,不是常驻服务。 +维护者签名的 Mac 应用通过匿名管道调用它,原有 service/account 键和凭据内容保持不变。 + +## 为什么保留固定产物 + +自签程序在当前登录钥匙串中按 cdhash 分区。主程序每次编译/打包的 cdhash 都可能变化; +单纯复用证书不能阻止这类授权提示。组件的完整签名二进制固定保存于 `frozen-arm64-v1/`, +普通打包仅核验源码/二进制 SHA-256、签名者和签名完整性,再原样复制到应用 `Contents/Helpers`。 +不要在普通发布过程中重编或重签该文件,主程序版本、构建机和 SDK 的变化不应改变它。 + +`manifest.json` 记录源码与产物哈希、cdhash、签名身份、编译器、SDK 和最低系统版本。 +Git 对二进制禁用文本转换,对源码固定 LF;文件只包含公开代码签名证书,不含签名私钥。 +需要修改组件本身或迁移签名身份时,明确执行: + +```sh +python3 scripts/macos/build_credential_broker.py +``` + +这会使用已配置的本地身份(或明确提供的 CI 签名身份)重新编译并签名。 +组件自身或签名身份的变更可能需要用户重新授权,不能将它混入普通 UI 更新而宣称仍是同一凭据组件。 + +## 访问边界 + +- 组件只接受同一证书签名、标识精确为 `club.conduit.shou.launcher` 的直接父进程。 + 校验运行中的父进程,并验证完整应用包及嵌套代码,包含托管程序集和资源;收到请求后再次核验。 +- 主程序在发送任何凭据前验证运行中的子进程:证书相同、标识精确为 + `club.conduit.shou.launcher.credentials.v1`,且启用 hardened runtime。 + 组件没有 JIT、调试或关闭库验证等例外 entitlement。 +- 数据只经过匿名 stdin/stdout 管道;不出现在 argv、环境变量、临时文件或日志。 + 消息长度受限,临时输入和响应缓冲区在使用后清理;错误不回显凭据。 +- 仅支持启动器既有 service 和明确隔离的 service;不提供任意钥匙串、任意程序运行或网络接口。 + 没有全局 ACL 修改、系统信任修改、登录钥匙串解锁密码或明文凭据后备。 +- 后台读写禁止系统交互;仅既有“重新授权钥匙串”入口的读取请求允许系统交互。 + 普通请求 30 秒、显式授权 5 分钟上限;取消时主程序终止自己的子进程,原生组件也有独立超时。 +- 固定签名的完整应用缺少组件或子进程身份不符时失败,不退回旧后端继续写入。 + 未打包开发宿主及明确标注的 ad-hoc PR 测试包保留原适配器,不宣称具备同等升级免授权效果。 + +## 验证 + +`scripts/macos/test_credential_broker.py` 验证冻结产物与源码、不同 cdhash 的可信调用者读写、 +无关签名/不同应用/父资源篡改/无关 service 拒绝,并删除模拟项与签名测试程序。 +`scripts/macos/test_packaged_credentials.py` 对真实候选的更新副本验证读写和故障: +资源或托管程序集篡改、组件缺失、冒充组件均拒绝;冒充组件收到的请求/凭据字节数必须为零。 +本机使用唯一隔离命名空间;GitHub CI 使用临时测试钥匙串并恢复默认钥匙串和搜索列表。 +这些测试不读取真实账户、不弹授权、不启动游戏,也不会留下测试应用到发行目录中。 diff --git a/src/SHOU.Launcher.Desktop/Native/MacOS/credential_broker.c b/src/SHOU.Launcher.Desktop/Native/MacOS/credential_broker.c new file mode 100644 index 00000000..5b8e40aa --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Native/MacOS/credential_broker.c @@ -0,0 +1,181 @@ +// Conduit Club. Stable, single-request Keychain client; protocol version 1. +// Keep this executable unchanged across ordinary launcher updates. A changed +// broker version can require a new macOS authorization, unlike a UI update. +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define MAGIC 0x53484f55u +#define MAX_VALUE 1048576u +#define APP_ID "club.conduit.shou.launcher" +#define BROKER_ID APP_ID ".credentials.v1" + +static int transfer(int fd, void *bytes, size_t count, int writing) { + unsigned char *p = bytes; + while (count) { + ssize_t n = writing ? write(fd, p, count) : read(fd, p, count); + if (n <= 0) return 0; + p += n; count -= (size_t)n; + } + return 1; +} + +static void release(CFTypeRef value) { if (value) CFRelease(value); } +static void erase_free(void *value, size_t length) { + if (value) { + volatile unsigned char *p = value; + while (length--) *p++ = 0; + free(value); + } +} + +static int service_allowed(const char *service) { + static const char base[] = "com.conduitclub.shou-launcher"; + static const char isolated[] = "com.conduitclub.shou-launcher.isolated."; + if (!strcmp(service, base)) return 1; + size_t prefix = sizeof(isolated) - 1; + if (strlen(service) != prefix + 64 || strncmp(service, isolated, prefix)) return 0; + for (size_t i = prefix; i < prefix + 64; i++) + if (!((service[i] >= '0' && service[i] <= '9') || (service[i] >= 'a' && service[i] <= 'f'))) return 0; + return 1; +} + +// Require the same signing certificate as this broker and the exact launcher ID. +// A process simply knowing a PID, path, service name or protocol cannot gain access. +static OSStatus authorized_parent(pid_t pid, SecCodeRef *result) { + OSStatus status = errSecAuthFailed; + SecCodeRef self = NULL, parent = NULL; + SecStaticCodeRef static_parent = NULL; + CFDictionaryRef info = NULL, attributes = NULL; + CFDataRef certificate = NULL; + CFNumberRef number = NULL; + CFStringRef expression = NULL; + SecRequirementRef requirement = NULL; + if (pid <= 1 || getuid() != geteuid() || getgid() != getegid()) goto done; + if (SecCodeCopySelf(kSecCSDefaultFlags, &self) || + SecCodeCopySigningInformation(self, kSecCSSigningInformation, &info)) goto done; + CFStringRef identifier = CFDictionaryGetValue(info, kSecCodeInfoIdentifier); + CFArrayRef certificates = CFDictionaryGetValue(info, kSecCodeInfoCertificates); + CFNumberRef flags = CFDictionaryGetValue(info, kSecCodeInfoFlags); + uint32_t flag_value = 0; + if (flags) CFNumberGetValue(flags, kCFNumberSInt32Type, &flag_value); + if (!identifier || !CFEqual(identifier, CFSTR(BROKER_ID)) || !(flag_value & 0x10000u) || + !certificates || CFArrayGetCount(certificates) < 1) goto done; + certificate = SecCertificateCopyData((SecCertificateRef)CFArrayGetValueAtIndex(certificates, 0)); + if (!certificate) goto done; + unsigned char digest[CC_SHA1_DIGEST_LENGTH]; char hex[41]; + CC_SHA1(CFDataGetBytePtr(certificate), (CC_LONG)CFDataGetLength(certificate), digest); + for (size_t i = 0; i < sizeof(digest); i++) snprintf(hex + 2*i, 3, "%02x", digest[i]); + expression = CFStringCreateWithFormat(NULL, NULL, + CFSTR("identifier \"%s\" and certificate leaf = H\"%s\""), APP_ID, hex); + if (!expression || SecRequirementCreateWithString(expression, kSecCSDefaultFlags, &requirement)) goto done; + number = CFNumberCreate(NULL, kCFNumberIntType, &pid); + const void *keys[] = { kSecGuestAttributePid }, *values[] = { number }; + attributes = CFDictionaryCreate(NULL, keys, values, 1, + &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); + if (!number || !attributes || SecCodeCopyGuestWithAttributes(NULL, attributes, kSecCSDefaultFlags, &parent) || + SecCodeCheckValidity(parent, kSecCSDefaultFlags, requirement) || + SecCodeCopyStaticCode(parent, kSecCSDefaultFlags, &static_parent)) goto done; + // Verify the whole parent bundle, including its managed assemblies/resources. + // Checking only its apphost would accept a modified .NET payload on disk. + if (SecStaticCodeCheckValidity(static_parent, + kSecCSStrictValidate | kSecCSCheckAllArchitectures | kSecCSCheckNestedCode, requirement)) goto done; + if (getppid() != pid) goto done; + *result = parent; parent = NULL; status = errSecSuccess; +done: + release(requirement); release(expression); release(number); release(attributes); + release(certificate); release(info); release(static_parent); release(parent); release(self); + return status; +} + +static OSStatus operate(uint32_t operation, const char *service, const char *key, + unsigned char *value, uint32_t length, CFDataRef *result) { + OSStatus status = errSecAllocate; + CFMutableDictionaryRef query = CFDictionaryCreateMutable(NULL, 0, + &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); + CFStringRef service_string = CFStringCreateWithCString(NULL, service, kCFStringEncodingUTF8); + CFStringRef key_string = CFStringCreateWithCString(NULL, key, kCFStringEncodingUTF8); + CFDataRef data = NULL; + CFMutableDictionaryRef changes = NULL; + if (!query || !service_string || !key_string) goto done; + CFDictionarySetValue(query, kSecClass, kSecClassGenericPassword); + CFDictionarySetValue(query, kSecAttrService, service_string); + CFDictionarySetValue(query, kSecAttrAccount, key_string); + CFDictionarySetValue(query, kSecUseAuthenticationUI, + operation == 4 ? kSecUseAuthenticationUIAllow : kSecUseAuthenticationUIFail); + if (SecKeychainSetUserInteractionAllowed(operation == 4)) { status = errSecInteractionNotAllowed; goto done; } + if (operation == 1 || operation == 4) { + CFDictionarySetValue(query, kSecReturnData, kCFBooleanTrue); + CFDictionarySetValue(query, kSecMatchLimit, kSecMatchLimitOne); + status = SecItemCopyMatching(query, (CFTypeRef *)result); + if (!status && (!*result || CFGetTypeID(*result) != CFDataGetTypeID() || CFDataGetLength(*result) > MAX_VALUE)) { + release(*result); *result = NULL; status = errSecDecode; + } + } else if (operation == 2) { + data = CFDataCreate(NULL, value, length); + changes = CFDictionaryCreateMutable(NULL, 0, + &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); + if (!data || !changes) goto done; + CFDictionarySetValue(changes, kSecValueData, data); + status = SecItemUpdate(query, changes); + if (status == errSecItemNotFound) { + CFDictionarySetValue(query, kSecValueData, data); + status = SecItemAdd(query, NULL); + if (status == errSecDuplicateItem) { + CFDictionaryRemoveValue(query, kSecValueData); + status = SecItemUpdate(query, changes); + } + } + } else if (operation == 3) { + status = SecItemDelete(query); + if (status == errSecItemNotFound) status = errSecSuccess; + } else status = errSecParam; +done: + release(changes); release(data); release(query); release(service_string); release(key_string); + return status; +} + +int main(int argc, char **argv) { + (void)argv; + if (argc != 1) return 2; + signal(SIGPIPE, SIG_IGN); + alarm(30); // Also bounds an abandoned pipe if the launcher crashes. + SecKeychainSetUserInteractionAllowed(false); + pid_t parent_pid = getppid(); SecCodeRef parent = NULL; + int32_t status = authorized_parent(parent_pid, &parent); + uint32_t greeting[2] = { MAGIC, (uint32_t)status }; + if (!transfer(STDOUT_FILENO, greeting, sizeof(greeting), 1) || status) { release(parent); return 1; } + uint32_t header[4] = {0}; + if (!transfer(STDIN_FILENO, header, sizeof(header), 0) || header[0] < 1 || header[0] > 4 || + !header[1] || header[1] > 4096 || !header[2] || header[2] > 4096 || header[3] > MAX_VALUE || + (header[0] != 2 && header[3])) { release(parent); return 2; } + alarm(header[0] == 4 ? 300 : 30); + char *service = calloc(1, header[1]+1), *key = calloc(1, header[2]+1); + unsigned char *value = calloc(1, header[3] ? header[3] : 1); + CFDataRef result = NULL; + status = errSecParam; + if (!service || !key || !value) { status = errSecAllocate; goto done; } + if (!transfer(STDIN_FILENO, service, header[1], 0) || !transfer(STDIN_FILENO, key, header[2], 0) || + !transfer(STDIN_FILENO, value, header[3], 0)) goto done; + if (memchr(service, 0, header[1]) || memchr(key, 0, header[2]) || !service_allowed(service)) goto done; + // Re-resolve the live caller after the request, detecting reparenting, exec + // or a changed bundle before accessing any Keychain item. + SecCodeRef refreshed_parent = NULL; + status = authorized_parent(parent_pid, &refreshed_parent); + release(refreshed_parent); + if (status) goto done; + status = operate(header[0], service, key, value, header[3], &result); +done: + erase_free(value, header[3]); erase_free(key, header[2]); erase_free(service, header[1]); + uint32_t response[2] = { (uint32_t)status, status == 0 && result ? (uint32_t)CFDataGetLength(result) : 0 }; + int sent = transfer(STDOUT_FILENO, response, sizeof(response), 1); + if (sent && response[1]) sent = transfer(STDOUT_FILENO, (void *)CFDataGetBytePtr(result), response[1], 1); + release(result); release(parent); + return sent ? 0 : 3; +} diff --git a/src/SHOU.Launcher.Desktop/Native/MacOS/frozen-arm64-v1/SHOU.CredentialBroker b/src/SHOU.Launcher.Desktop/Native/MacOS/frozen-arm64-v1/SHOU.CredentialBroker new file mode 100755 index 00000000..882ddae6 Binary files /dev/null and b/src/SHOU.Launcher.Desktop/Native/MacOS/frozen-arm64-v1/SHOU.CredentialBroker differ diff --git a/src/SHOU.Launcher.Desktop/Native/MacOS/frozen-arm64-v1/manifest.json b/src/SHOU.Launcher.Desktop/Native/MacOS/frozen-arm64-v1/manifest.json new file mode 100644 index 00000000..8bb1cc19 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Native/MacOS/frozen-arm64-v1/manifest.json @@ -0,0 +1,12 @@ +{ + "protocol": 1, + "identifier": "club.conduit.shou.launcher.credentials.v1", + "signing_identity": "BBFC2DA005E308768F21B86F4BA73D5B691305C9", + "cdhash": "b52770a28e3a962111114fccf06023cdbc08793f", + "source_sha256": "1c1209b4fade7e84d83e34625cc1477659955b928ac27c22c24987688e4a6e17", + "payload_sha256": "753543641f62113e3ad3f5d237c2978965ac2a87a4fcc559de43f9c617cb25ce", + "compiler": "Apple clang version 21.0.0 (clang-2100.4.1.1)", + "sdk": "27.2", + "minimum_macos": "14.0", + "architecture": "arm64" +} diff --git a/src/SHOU.Launcher.Desktop/Platform/AppPaths.cs b/src/SHOU.Launcher.Desktop/Platform/AppPaths.cs new file mode 100644 index 00000000..13f47f1d --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/AppPaths.cs @@ -0,0 +1,129 @@ +using System.Security.Cryptography; +using System.Text; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Java; +using SHOU.Launcher.Desktop.Platform.MacOS; + +namespace SHOU.Launcher.Desktop.Platform; + +/// Calculates paths without creating directories or opening a credential store. +public sealed class AppPaths : IAppPaths +{ + public string DataDirectory { get; } + public string SharedDataDirectory { get; } + public string LocalDataDirectory { get; } + public string CacheDirectory { get; } + public string LogsDirectory { get; } + public string RuntimesDirectory { get; } + public string InstancesDirectory { get; } + public string TempDirectory { get; } + public string ResourcesDirectory { get; } + public string LockFile { get; } + public string CredentialScope { get; } + public bool IsIsolated { get; } + + public AppPaths(PlatformOptions options, PlatformContext context, string? executableDirectory = null, + string? homeDirectory = null, string? roamingDataDirectory = null, string? localDataDirectory = null, + string? temporaryDirectory = null) + { + ResourcesDirectory = Absolute(executableDirectory ?? AppContext.BaseDirectory); + var home = Absolute(homeDirectory ?? Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)); + IsIsolated = !string.IsNullOrWhiteSpace(options.DataDirectory); + if (IsIsolated) + { + DataDirectory = ResolveExistingLinks(Absolute(options.DataDirectory!)); + SharedDataDirectory = Path.Combine(DataDirectory, "shared"); + LocalDataDirectory = Path.Combine(DataDirectory, "local"); + CacheDirectory = Path.Combine(DataDirectory, "cache"); + LogsDirectory = Path.Combine(DataDirectory, "logs"); + TempDirectory = Path.Combine(DataDirectory, "tmp"); + var identity = context.OS == LauncherOS.Windows ? DataDirectory.ToUpperInvariant() : DataDirectory; + CredentialScope = "com.conduitclub.shou-launcher.isolated." + + Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(identity))).ToLowerInvariant(); + } + else if (context.OS == LauncherOS.Windows) + { + // These are the production roots and lock used by the legacy WPF launcher. + DataDirectory = Path.Combine(ResourcesDirectory, "PCL"); + SharedDataDirectory = Path.Combine(Absolute(roamingDataDirectory + ?? Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)), "PCLCE"); + LocalDataDirectory = Path.Combine(Absolute(localDataDirectory + ?? Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)), "PCLCE"); + CacheDirectory = Path.Combine(LocalDataDirectory, "cache"); + LogsDirectory = Path.Combine(DataDirectory, "logs"); + TempDirectory = Path.Combine(Absolute(temporaryDirectory ?? Path.GetTempPath()), "PCLCE"); + CredentialScope = "com.conduitclub.shou-launcher"; + } + else if (context.OS == LauncherOS.MacOS) + { + DataDirectory = Path.Combine(home, "Library", "Application Support", "SHOU-Launcher"); + SharedDataDirectory = LocalDataDirectory = DataDirectory; + CacheDirectory = Path.Combine(home, "Library", "Caches", "SHOU-Launcher"); + LogsDirectory = Path.Combine(home, "Library", "Logs", "SHOU-Launcher"); + TempDirectory = Path.Combine(Absolute(temporaryDirectory ?? Path.GetTempPath()), "SHOU-Launcher"); + CredentialScope = "com.conduitclub.shou-launcher"; + } + else if (context.OS == LauncherOS.Linux) + { + DataDirectory = Path.Combine(home, ".local", "share", "SHOU-Launcher"); + SharedDataDirectory = LocalDataDirectory = DataDirectory; + CacheDirectory = Path.Combine(home, ".cache", "SHOU-Launcher"); + LogsDirectory = Path.Combine(DataDirectory, "logs"); + TempDirectory = Path.Combine(Absolute(temporaryDirectory ?? Path.GetTempPath()), "SHOU-Launcher"); + CredentialScope = "com.conduitclub.shou-launcher"; + } + else throw new PlatformNotSupportedException("This operating system has no application path mapping."); + + RuntimesDirectory = Path.Combine(DataDirectory, "runtimes"); + InstancesDirectory = Path.Combine(DataDirectory, "instances"); + if (OperatingSystem.IsMacOS()) + { + // Normalize stored case/Unicode through the actual filesystem, including ancestors of new roots. + // Do not merge Foo/foo or Unicode spellings on a filesystem where they identify distinct objects. + DataDirectory = ResolveExistingLinks(DataDirectory); + SharedDataDirectory = ResolveExistingLinks(SharedDataDirectory); + LocalDataDirectory = ResolveExistingLinks(LocalDataDirectory); + CacheDirectory = ResolveExistingLinks(CacheDirectory); + LogsDirectory = ResolveExistingLinks(LogsDirectory); + RuntimesDirectory = ResolveExistingLinks(RuntimesDirectory); + InstancesDirectory = ResolveExistingLinks(InstancesDirectory); + TempDirectory = ResolveExistingLinks(TempDirectory); + ResourcesDirectory = ResolveExistingLinks(ResourcesDirectory); + } + LockFile = Path.Combine(LocalDataDirectory, "instance.lock"); + if (IsIsolated) + foreach (var path in new[] { SharedDataDirectory, LocalDataDirectory, CacheDirectory, LogsDirectory, + RuntimesDirectory, InstancesDirectory, TempDirectory }) + EnsureContained(DataDirectory, path); + } + + private static string Absolute(string path) + { + if (string.IsNullOrWhiteSpace(path) || !Path.IsPathFullyQualified(path)) + throw new ArgumentException("An absolute directory is required; paths cannot depend on the current directory.", nameof(path)); + return Path.TrimEndingDirectorySeparator(Path.GetFullPath(path)); + } + + // Use the identity of existing symlink ancestors, including when the final directory is new. + internal static string ResolveExistingLinks(string path) + { + var root = Path.GetPathRoot(path)!; + var current = root; + foreach (var part in path[root.Length..].Split(Path.DirectorySeparatorChar, StringSplitOptions.RemoveEmptyEntries)) + { + current = Path.Combine(current, part); + var info = new DirectoryInfo(current); + if (info.LinkTarget is not null) + current = info.ResolveLinkTarget(true)?.FullName + ?? throw new IOException("The data directory contains an unresolved symbolic link."); + } + var normalized = Path.TrimEndingDirectorySeparator(Path.GetFullPath(current)); + return OperatingSystem.IsMacOS() ? MacFileSystemPaths.CanonicalDirectory(normalized) : normalized; + } + + internal static void EnsureContained(string root, string path) + { + if (!JavaPathBoundary.ContainsCanonical(ResolveExistingLinks(root), ResolveExistingLinks(path))) + throw new IOException("An isolated application path escapes its data root through a symbolic link."); + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/BackgroundAudio.cs b/src/SHOU.Launcher.Desktop/Platform/BackgroundAudio.cs new file mode 100644 index 00000000..18c66da3 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/BackgroundAudio.cs @@ -0,0 +1,51 @@ +using System.Diagnostics; +using System.Globalization; +using System.Text; +using System.Runtime.InteropServices; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Desktop.Platform; + +public sealed class BackgroundAudio : IDisposable +{ + private readonly string alias = "shou" + Guid.NewGuid().ToString("N"); + private Process? player; + private bool nativeOpen; + public bool IsPlaying + { + get + { + if (OperatingSystem.IsWindows() && nativeOpen) { var mode = new StringBuilder(32); return MciStatus("status " + alias + " mode", mode, 32, IntPtr.Zero) == 0 && mode.ToString() == "playing"; } + return player is { HasExited: false }; + } + } + public void SetVolume(decimal volume) + { if (OperatingSystem.IsWindows() && nativeOpen) Send("setaudio " + alias + " volume to " + ((int)Math.Clamp(volume * 10, 0, 1000)).ToString(CultureInfo.InvariantCulture)); } + public void Play(string file, decimal volume = 50) + { + Stop(); + if (!Path.IsPathFullyQualified(file) || !File.Exists(file) || Path.GetExtension(file).ToLowerInvariant() is not (".wav" or ".mp3" or ".m4a")) throw new ArgumentException("请选择本机 WAV、MP3 或 M4A 音乐。"); + SHOU.Launcher.Core.IO.SafePath.RejectLinks(file); + if (OperatingSystem.IsWindows()) + { + if (file.Contains('"') || Send("open \"" + file + "\" alias " + alias) != 0) throw new IOException("无法打开音乐文件,请检查格式或系统音频组件。"); + nativeOpen = true; SetVolume(volume); + if (Send("play " + alias) != 0) { Stop(); throw new IOException("无法播放音乐。"); } + } + else if (OperatingSystem.IsMacOS()) + { + var start = new ProcessStartInfo("/usr/bin/afplay") { UseShellExecute = false, CreateNoWindow = true }; + start.ArgumentList.Add("-v"); start.ArgumentList.Add(((double)Math.Clamp(volume, 0, 100) / 100).ToString(CultureInfo.InvariantCulture)); start.ArgumentList.Add(file); player = Process.Start(start) ?? throw new IOException("无法启动系统音频播放器。"); + } + else throw new PlatformNotSupportedException("当前平台尚未接入音频播放器。"); + } + public void Stop() + { + if (nativeOpen && OperatingSystem.IsWindows()) { Send("close " + alias); nativeOpen = false; } + if (player is { } owned) { try { if (!owned.HasExited) owned.Kill(); } catch (InvalidOperationException) { } finally { owned.Dispose(); player = null; } } + } + public void Dispose() => Stop(); + private static uint Send(string command) => MciSendString(command, IntPtr.Zero, 0, IntPtr.Zero); + [DllImport("winmm.dll", EntryPoint = "mciSendStringW", CharSet = CharSet.Unicode)] private static extern uint MciStatus(string command, StringBuilder result, int length, IntPtr callback); + [DllImport("winmm.dll", EntryPoint = "mciSendStringW", CharSet = CharSet.Unicode)] private static extern uint MciSendString(string command, IntPtr result, int length, IntPtr callback); +} diff --git a/src/SHOU.Launcher.Desktop/Platform/DataDirectoryLock.cs b/src/SHOU.Launcher.Desktop/Platform/DataDirectoryLock.cs new file mode 100644 index 00000000..383da9c4 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/DataDirectoryLock.cs @@ -0,0 +1,52 @@ +using System.ComponentModel; +using System.Runtime.InteropServices; +using System.Text; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.Platform; + +public sealed class DataDirectoryLock : IDataDirectoryLock +{ + public IDataDirectoryLease Acquire(IAppPaths paths) + { + if (paths.IsIsolated) AppPaths.EnsureContained(paths.DataDirectory, paths.LocalDataDirectory); + if (new FileInfo(paths.LockFile).LinkTarget is not null) + throw new IOException("The data lock cannot be a symbolic link."); + Directory.CreateDirectory(Path.GetDirectoryName(paths.LockFile)!); + FileStream? stream = null; + try + { + // FileShare.Read is intentionally compatible with legacy SingleInstanceService. + stream = new FileStream(paths.LockFile, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.Read); + if (!OperatingSystem.IsWindows()) + { + var fd = stream.SafeFileHandle.DangerousGetHandle().ToInt32(); + var result = OperatingSystem.IsMacOS() ? MacFlock(fd, 2 | 4) : UnixFlock(fd, 2 | 4); + if (result != 0) + throw new IOException("The application data directory is already in use.", new Win32Exception(Marshal.GetLastPInvokeError())); + } + stream.SetLength(0); + stream.Write(Encoding.ASCII.GetBytes(Environment.ProcessId.ToString(System.Globalization.CultureInfo.InvariantCulture))); + stream.Flush(true); + return new Lease(paths.LockFile, stream); + } + catch + { + stream?.Dispose(); + throw; + } + } + + private sealed class Lease(string path, FileStream stream) : IDataDirectoryLease + { + private FileStream? _stream = stream; + public string LockPath { get; } = path; + // Keep the inode. Deleting a released lock can race with the next owner's acquisition. + public void Dispose() => Interlocked.Exchange(ref _stream, null)?.Dispose(); + } + + [DllImport("/usr/lib/libSystem.B.dylib", EntryPoint = "flock", SetLastError = true)] + private static extern int MacFlock(int fileDescriptor, int operation); + [DllImport("libc", EntryPoint = "flock", SetLastError = true)] + private static extern int UnixFlock(int fileDescriptor, int operation); +} diff --git a/src/SHOU.Launcher.Desktop/Platform/ExternalLauncher.cs b/src/SHOU.Launcher.Desktop/Platform/ExternalLauncher.cs new file mode 100644 index 00000000..1f329288 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/ExternalLauncher.cs @@ -0,0 +1,63 @@ +using System.Diagnostics; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.Platform; + +public sealed class ExternalLauncher(IProcessRunner processes, PlatformContext context) : IExternalLauncher, ILocalFileLauncher +{ + public Task OpenUriAsync(Uri uri, CancellationToken cancellationToken = default) + { + if (!uri.IsAbsoluteUri || uri.Scheme is not ("http" or "https" or "mailto") || !string.IsNullOrEmpty(uri.UserInfo)) + throw new ArgumentException("Only absolute HTTP(S)/mailto links without embedded credentials may be opened."); + return OpenAsync(uri.AbsoluteUri, false, cancellationToken); + } + + public Task OpenDirectoryAsync(string directory, CancellationToken cancellationToken = default) + { + ValidatePath(directory); + if (!Directory.Exists(directory)) throw new DirectoryNotFoundException("The requested directory does not exist."); + return OpenAsync(Path.GetFullPath(directory), false, cancellationToken); + } + + public Task RevealFileAsync(string file, CancellationToken cancellationToken = default) + { + ValidatePath(file); + if (!File.Exists(file)) throw new FileNotFoundException("The requested file does not exist."); + return OpenAsync(Path.GetFullPath(file), true, cancellationToken); + } + + public Task OpenFileAsync(string file, CancellationToken cancellationToken = default) + { + ValidatePath(file); SHOU.Launcher.Core.IO.SafePath.RejectLinks(file); + if (!File.Exists(file)) throw new FileNotFoundException("The requested file does not exist."); + return OpenAsync(Path.GetFullPath(file), false, cancellationToken); + } + + private async Task OpenAsync(string target, bool reveal, CancellationToken cancellationToken) + { + cancellationToken.ThrowIfCancellationRequested(); + if (context.OS == LauncherOS.MacOS && OperatingSystem.IsMacOS()) + { + var result = await processes.RunAsync(new ProcessSpec("/usr/bin/open", reveal ? ["-R", "--", target] : ["--", target], "/", + Timeout: TimeSpan.FromSeconds(15), OutputLimitCharacters: 32768), cancellationToken: cancellationToken); + cancellationToken.ThrowIfCancellationRequested(); + if (result.ExitCode != 0 || result.TimedOut || result.Cancelled) + throw new IOException("LaunchServices 未接受打开请求。"); + } + else if (context.OS == LauncherOS.Windows && OperatingSystem.IsWindows()) + { + var start = reveal + ? new ProcessStartInfo(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Windows), "explorer.exe")) { UseShellExecute = false } + : new ProcessStartInfo(target) { UseShellExecute = true }; + if (reveal) { start.ArgumentList.Add("/select,"); start.ArgumentList.Add(target); } + using var process = Process.Start(start); + // This acknowledges the OS opening request, not that another application's window is ready. + } + else throw new PlatformNotSupportedException("No native desktop opener is registered for this platform."); + } + + private static void ValidatePath(string path) + { + if (!Path.IsPathFullyQualified(path)) throw new ArgumentException("An absolute path is required."); + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/JavaDiscovery.Portable.cs b/src/SHOU.Launcher.Desktop/Platform/JavaDiscovery.Portable.cs new file mode 100644 index 00000000..afb205c0 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/JavaDiscovery.Portable.cs @@ -0,0 +1,36 @@ +namespace SHOU.Launcher.Desktop.Platform; + +public sealed partial class JavaDiscovery +{ + private IEnumerable PortableSearchRoots() + { + foreach (var root in _additionalSearchRoots) yield return root; + if (!_includeSystemSources) yield break; + yield return _home; + yield return AppContext.BaseDirectory; + yield return Path.Combine(_home, ".jdks"); + yield return Path.Combine(_home, ".sdkman", "candidates", "java"); + var javaHome = Environment.GetEnvironmentVariable("JAVA_HOME"); + if (!string.IsNullOrWhiteSpace(javaHome) && Path.IsPathFullyQualified(javaHome)) + yield return Path.GetDirectoryName(javaHome.TrimEnd(Path.DirectorySeparatorChar)) ?? javaHome; + if (OperatingSystem.IsWindows()) + { + yield return Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); + foreach (var drive in DriveInfo.GetDrives().Where(d => d.DriveType == DriveType.Fixed && d.IsReady)) + foreach (var directory in EnumerateDirectories(drive.RootDirectory.FullName).Where(d => IsJavaSearchDirectory(Path.GetFileName(d)))) + yield return directory; + } + else if (OperatingSystem.IsMacOS()) + { + foreach (var root in new[] { "/opt/homebrew/opt", "/usr/local/opt", "/Library/Java/JavaVirtualMachines", Path.Combine(_home, "Library", "Java", "JavaVirtualMachines") }) yield return root; + } + } + + private static bool IsJavaSearchDirectory(string name) + { + if (name is ".git" or "node_modules" or "Downloads" or "Pictures" or "Music" or "Documents" || name.Contains("cache", StringComparison.OrdinalIgnoreCase)) return false; + return new[] { "java", "jdk", "jre", "jbr", "runtime", "openjdk", "graal", "zulu", "corretto", "adoptium", "temurin", "liberica", "bellsoft", "microsoft", "jetbrains", "android", "studio", "program", "software", "tools", "sdk", "minecraft", "pcl", "home", "contents", "bin" } + .Any(word => name.Contains(word, StringComparison.OrdinalIgnoreCase)) + || name.Length <= 30 && name.Any(char.IsDigit) && name.All(c => char.IsDigit(c) || c is '.' or '_' or '-' or '+'); + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/JavaDiscovery.cs b/src/SHOU.Launcher.Desktop/Platform/JavaDiscovery.cs new file mode 100644 index 00000000..64b1356e --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/JavaDiscovery.cs @@ -0,0 +1,205 @@ +using System.Security; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Java; +using SHOU.Launcher.Desktop.Platform.Windows; + +namespace SHOU.Launcher.Desktop.Platform; + +public sealed partial class JavaDiscovery : IJavaDiscovery +{ + private readonly IProcessRunner _processes; + private readonly JavaRuntimeProbe _probe; + private readonly PlatformContext _platform; + private readonly string? _configuredExecutable; + private readonly string _home; + private readonly bool _includeSystemSources; + private readonly string? _managedRuntimeDirectory; + private readonly IReadOnlyList _additionalSearchRoots; + + public JavaDiscovery(IProcessRunner processes, PlatformContext platform, PlatformOptions? options = null, + string? homeDirectory = null, bool includeSystemSources = true, TimeSpan? probeTimeout = null, + string? managedRuntimeDirectory = null, IReadOnlyList? additionalSearchRoots = null) + { + _processes = processes; + _probe = new JavaRuntimeProbe(processes, probeTimeout); + _platform = platform; + _configuredExecutable = options?.ConfiguredJavaExecutable; + _home = homeDirectory ?? Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); + _includeSystemSources = includeSystemSources; + _managedRuntimeDirectory = managedRuntimeDirectory; + _additionalSearchRoots = additionalSearchRoots ?? []; + } + + public async Task ProbeAsync(string executable, CancellationToken cancellationToken = default) + { + if (Path.IsPathFullyQualified(executable)) + { + var root = DerivedJavaTrustService.FindDerivedRootForCandidate(executable, + _managedRuntimeDirectory ?? Path.GetDirectoryName(executable)!); + if (root is not null && !await DerivedJavaTrustService.ValidateCandidateReadOnlyAsync(root, executable, cancellationToken)) + return InvalidDerived(executable, "probe"); + } + return await _probe.ProbeAsync(executable, cancellationToken); + } + + public async Task> DiscoverAsync(JavaDiscoveryRequest request, + CancellationToken cancellationToken = default) + { + cancellationToken.ThrowIfCancellationRequested(); + var candidates = new Dictionary(_platform.OS == LauncherOS.Windows + ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal); + var configured = request.ConfiguredExecutable ?? _configuredExecutable; + if (!string.IsNullOrWhiteSpace(configured)) Add(configured, "configured", requireExists: false); + // On macOS prefer conventional installed JDKs; managed runtimes remain a fallback. + if (_platform.OS != LauncherOS.MacOS || !_includeSystemSources) ScanRuntimeRoot(request.ManagedRuntimeDirectory, "managed"); + + if (_includeSystemSources) + { + var javaHome = Environment.GetEnvironmentVariable("JAVA_HOME"); + if (!string.IsNullOrWhiteSpace(javaHome)) AddHome(javaHome, "JAVA_HOME"); + if (_platform.OS == LauncherOS.MacOS && OperatingSystem.IsMacOS()) + { + // Finder does not inherit an interactive shell's PATH. + foreach (var root in new[] { "/Library/Java/JavaVirtualMachines", Path.Combine(_home, "Library", "Java", "JavaVirtualMachines") }) + foreach (var directory in EnumerateDirectories(root)) + AddHome(Path.Combine(directory, "Contents", "Home"), "JavaVirtualMachines"); + + if (File.Exists("/usr/libexec/java_home")) + { + var result = await _processes.RunAsync(new ProcessSpec("/usr/libexec/java_home", ["-V"], "/", + Timeout: TimeSpan.FromSeconds(5), OutputLimitCharacters: 32768), cancellationToken: cancellationToken); + cancellationToken.ThrowIfCancellationRequested(); + if (result.ExitCode == 0 && !result.TimedOut && !result.OutputTruncated) + foreach (var line in (result.StandardOutput + "\n" + result.StandardError).Split('\n')) + { + var slash = line.IndexOf('/'); + if (slash >= 0) AddHome(line[slash..].Trim(), "java_home"); + } + } + } + else if (_platform.OS == LauncherOS.Windows && OperatingSystem.IsWindows()) + { + foreach (var home in WindowsJavaCandidates.RegistryHomes()) AddHome(home, "registry"); + var local = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); + ScanRuntimeRoot(Path.Combine(local, "Packages", "Microsoft.4297127D64EC6_8wekyb3d8bbwe", "LocalCache", "Local", "runtime"), "MicrosoftStore"); + var roaming = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); + ScanRuntimeRoot(Path.Combine(roaming, ".minecraft", "runtime"), "MinecraftRuntime"); + foreach (var baseDirectory in new[] { Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), + Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86) }.Where(path => !string.IsNullOrWhiteSpace(path)).Distinct()) + foreach (var vendor in new[] { "Java", "Eclipse Adoptium", "Microsoft", "Zulu", "BellSoft", "Amazon Corretto" }) + ScanRuntimeRoot(Path.Combine(baseDirectory, vendor), "installed"); + } + foreach (var entry in (Environment.GetEnvironmentVariable("PATH") ?? "").Split( + _platform.OS == LauncherOS.Windows ? ';' : ':', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries)) + { + var directory = _platform.OS == LauncherOS.Windows ? entry.Trim('"') : entry; + if (Path.IsPathFullyQualified(directory)) Add(Path.Combine(directory, JavaFilename), "PATH"); + } + } + + if (_platform.OS == LauncherOS.MacOS && _includeSystemSources) ScanRuntimeRoot(request.ManagedRuntimeDirectory, "managed"); + foreach (var root in PortableSearchRoots().Distinct(_platform.OS == LauncherOS.Windows ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal)) ScanPortableRoot(root); + var installations = new List(); + foreach (var (path, source) in candidates) + { + cancellationToken.ThrowIfCancellationRequested(); + var derivedRoot = DerivedJavaTrustService.FindDerivedRootForCandidate(path, request.ManagedRuntimeDirectory); + if (derivedRoot is not null + && !await DerivedJavaTrustService.ValidateCandidateReadOnlyAsync(derivedRoot, path, cancellationToken)) + { + if (source == "configured") installations.Add(InvalidDerived(path, source)); + continue; + } + installations.Add((await _probe.ProbeAsync(path, cancellationToken)) with { Source = source }); + } + return installations.OrderByDescending(java => java.IsUsable + && (!request.RequiredMajorVersion.HasValue || java.MajorVersion == request.RequiredMajorVersion) + && (!request.RequiredArchitecture.HasValue || java.RuntimeArchitecture == request.RequiredArchitecture)) + .ThenByDescending(java => java.MajorVersion) + .ThenBy(java => _platform.OS == LauncherOS.MacOS && java.Source is "configured" or "JAVA_HOME" or "JavaVirtualMachines" or "java_home" ? 0 : 1) + .ThenBy(java => java.ExecutablePath, StringComparer.Ordinal).ToArray(); + + void Add(string path, string source, bool requireExists = true) + { + if (candidates.Count >= 64) return; + if (!Path.IsPathFullyQualified(path)) + { + // Keep an explicitly configured bad path visible to the caller; never resolve it against cwd. + if (!requireExists) candidates.TryAdd(path, source); + return; + } + path = Path.GetFullPath(path); + // This Apple stub can invoke a system installation prompt rather than an installed JVM. + if (_platform.OS == LauncherOS.MacOS && path == "/usr/bin/java") return; + if (!requireExists || File.Exists(path)) candidates.TryAdd(path, source); + } + + void AddHome(string path, string source) + { + if (!Path.IsPathFullyQualified(path)) return; + Add(Path.Combine(path, "bin", JavaFilename), source); + if (_platform.OS == LauncherOS.MacOS) Add(Path.Combine(path, "Contents", "Home", "bin", JavaFilename), source); + } + + void ScanRuntimeRoot(string root, string source) + { + if (!Path.IsPathFullyQualified(root) || !Directory.Exists(root)) return; + var queue = new Queue<(string Directory, int Depth)>(); + queue.Enqueue((root, 0)); + var visited = 0; + while (queue.Count > 0 && visited++ < 2048) + { + cancellationToken.ThrowIfCancellationRequested(); + var (directory, depth) = queue.Dequeue(); + if (Path.GetFileName(directory) == ".staging" || MojangJavaRuntimeInstaller.IsIncompleteRuntime(directory)) continue; + AddHome(directory, source); + if (Path.GetFileName(directory) == "bin") Add(Path.Combine(directory, JavaFilename), source); + if (depth >= 7) continue; + foreach (var child in EnumerateDirectories(directory)) + { + if (IsLink(child)) continue; // No loops or traversal into unrelated runtime trees. + if (DerivedJavaTrustService.IsDerivedRootDirectory(directory) + && !DerivedJavaTrustService.IsCompletedVariantDirectory(child)) continue; + queue.Enqueue((child, depth + 1)); + } + } + } + + void ScanPortableRoot(string root) + { + if (!Path.IsPathFullyQualified(root) || !Directory.Exists(root) || IsLink(root)) return; + var pending = new Queue<(string Path, int Depth)>(); pending.Enqueue((root, 0)); + var visited = 0; + while (pending.TryDequeue(out var entry) && visited++ < 1024 && candidates.Count < 64) + { + cancellationToken.ThrowIfCancellationRequested(); + if (MojangJavaRuntimeInstaller.IsIncompleteRuntime(entry.Path) || Path.GetFileName(entry.Path) == ".staging") continue; + AddHome(entry.Path, "portable"); + if (Path.GetFileName(entry.Path).Equals("bin", StringComparison.OrdinalIgnoreCase)) Add(Path.Combine(entry.Path, JavaFilename), "portable"); + if (entry.Depth >= 5 || File.Exists(Path.Combine(entry.Path, "bin", JavaFilename))) continue; + foreach (var child in EnumerateDirectories(entry.Path)) + { + if (IsLink(child) || !IsJavaSearchDirectory(Path.GetFileName(child))) continue; + if (DerivedJavaTrustService.IsDerivedRootDirectory(entry.Path) && !DerivedJavaTrustService.IsCompletedVariantDirectory(child)) continue; + pending.Enqueue((child, entry.Depth + 1)); + } + } + } + } + + private string JavaFilename => _platform.OS == LauncherOS.Windows ? "java.exe" : "java"; + private static JavaInstallation InvalidDerived(string executable, string source) => new(executable, "", "", 0, "", + RuntimeArchitecture.Unknown, source, "[InvalidDerivedRuntime] 派生 Java 未通过执行前只读验证。"); + + private static bool IsLink(string path) + { + try { return (File.GetAttributes(path) & FileAttributes.ReparsePoint) != 0; } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or SecurityException) { return true; } + } + + private static IEnumerable EnumerateDirectories(string root) + { + try { return Directory.Exists(root) ? Directory.GetDirectories(root).Order(StringComparer.Ordinal).ToArray() : []; } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or SecurityException) { return []; } + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/LauncherShortcut.cs b/src/SHOU.Launcher.Desktop/Platform/LauncherShortcut.cs new file mode 100644 index 00000000..39f7337f --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/LauncherShortcut.cs @@ -0,0 +1,90 @@ +using System.Runtime.InteropServices; +using SHOU.Launcher.Core.Tools; + +namespace SHOU.Launcher.Desktop.Platform; + +/// Launcher shortcuts only. The target is our current apphost, never a game or arbitrary command. +public static class LauncherShortcut +{ + public static string Extension => OperatingSystem.IsMacOS() ? "app" : "lnk"; + public static async Task CreateAsync(string destination, string dataDirectory, CancellationToken ct = default) + { + var executable = Environment.ProcessPath ?? throw new IOException("找不到当前启动器。"); + if (Path.GetFileNameWithoutExtension(executable).Equals("dotnet", StringComparison.OrdinalIgnoreCase)) throw new IOException("请在打包后的启动器中创建快捷方式。"); + destination = ToolFileTransfer.ValidateDestination(destination); + if (!Path.GetExtension(destination).Equals("." + Extension, StringComparison.OrdinalIgnoreCase)) throw new ArgumentException("快捷方式扩展名无效。"); + ct.ThrowIfCancellationRequested(); + if (OperatingSystem.IsWindows()) await CreateWindowsAsync(destination, executable, dataDirectory, ct); + else if (OperatingSystem.IsMacOS()) await CreateMacAsync(destination, executable, dataDirectory, ct); + else throw new PlatformNotSupportedException("当前系统没有注册快捷方式适配器。"); + } + [System.Runtime.Versioning.SupportedOSPlatform("windows")] + private static Task CreateWindowsAsync(string destination, string executable, string dataDirectory, CancellationToken ct) + { + var completion = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); + var thread = new Thread(() => + { + object? shell = null, shortcut = null; var stage = Path.Combine(Path.GetDirectoryName(destination)!, ".shou-shortcut-" + Guid.NewGuid().ToString("N") + ".lnk"); + Exception? failure = null; + try + { + ct.ThrowIfCancellationRequested(); var type = Type.GetTypeFromProgID("WScript.Shell", true)!; + shell = Activator.CreateInstance(type)!; dynamic s = shell; shortcut = s.CreateShortcut(stage); dynamic link = shortcut; + link.TargetPath = executable; link.Arguments = "--data-dir " + QuoteWindows(dataDirectory); + link.WorkingDirectory = Path.GetDirectoryName(executable); link.Description = "潮涌核心社启动器"; link.IconLocation = executable + ",0"; link.Save(); + ct.ThrowIfCancellationRequested(); ToolFileTransfer.ValidateDestination(destination); File.Move(stage, destination, false); + } + catch (Exception ex) { failure = ex; } + finally + { + try + { + if (shortcut is not null && Marshal.IsComObject(shortcut)) Marshal.FinalReleaseComObject(shortcut); + if (shell is not null && Marshal.IsComObject(shell)) Marshal.FinalReleaseComObject(shell); + if (File.Exists(stage)) File.Delete(stage); + } + catch (Exception ex) { failure ??= ex; } + } + if (failure is null) completion.TrySetResult(); else completion.TrySetException(failure); + }) { IsBackground = true, Name = "SHOU shortcut writer" }; + thread.SetApartmentState(ApartmentState.STA); thread.Start(); return completion.Task; + } + public static string QuoteWindows(string argument) + { + var result = new System.Text.StringBuilder("\""); var slashes = 0; + foreach (var c in argument) + { + if (c == '\\') { slashes++; continue; } + result.Append('\\', c == '"' ? slashes * 2 + 1 : slashes); result.Append(c); slashes = 0; + } + return result.Append('\\', slashes * 2).Append('"').ToString(); + } + [System.Runtime.Versioning.SupportedOSPlatform("macos")] + private static async Task CreateMacAsync(string destination, string executable, string dataDirectory, CancellationToken ct) + { + var stage = Path.Combine(Path.GetDirectoryName(destination)!, ".shou-shortcut-" + Guid.NewGuid().ToString("N") + ".app"); + var macos = Path.Combine(stage, "Contents", "MacOS"); Directory.CreateDirectory(macos); + static string Quote(string value) => "'" + value.Replace("'", "'\"'\"'") + "'"; + // Generated code has only literal, shell-quoted paths; this script does not interpolate user commands. + var runner = Path.Combine(macos, "launch"); + var plist = Path.Combine(stage, "Contents", "Info.plist"); + try + { + await File.WriteAllTextAsync(runner, "#!/bin/sh\nexec " + Quote(executable) + " --data-dir " + Quote(dataDirectory) + "\n", ct); + File.SetUnixFileMode(runner, UnixFileMode.UserRead | UnixFileMode.UserWrite | UnixFileMode.UserExecute); + await File.WriteAllTextAsync(plist, "CFBundleExecutablelaunchCFBundleIdentifierclub.conduit.shou.shortcutCFBundleName潮涌核心社启动器CFBundlePackageTypeAPPL", ct); + ct.ThrowIfCancellationRequested(); ToolFileTransfer.ValidateDestination(destination); Directory.Move(stage, destination); + } + finally + { + // Only these two generated files are owned; never recursively remove a directory. + if (Directory.Exists(stage)) + { + if (File.Exists(runner)) File.Delete(runner); if (File.Exists(plist)) File.Delete(plist); + if (!Directory.EnumerateFileSystemEntries(macos).Any()) Directory.Delete(macos); + var contents = Path.Combine(stage, "Contents"); if (!Directory.EnumerateFileSystemEntries(contents).Any()) Directory.Delete(contents); + if (!Directory.EnumerateFileSystemEntries(stage).Any()) Directory.Delete(stage); + } + } + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/MacOS/KeychainCredentialStore.cs b/src/SHOU.Launcher.Desktop/Platform/MacOS/KeychainCredentialStore.cs new file mode 100644 index 00000000..2ca87e28 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/MacOS/KeychainCredentialStore.cs @@ -0,0 +1,211 @@ +using System.Runtime.InteropServices; +using System.Security.Cryptography; +using Microsoft.Win32.SafeHandles; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.Platform.MacOS; + +/// Generic-password items via Security.framework. Secret bytes never enter a subprocess or argv. +public sealed class KeychainCredentialStore : ICredentialStore, IUserAuthorizedCredentialStore +{ + private static readonly object InteractionGate = new(); + private static readonly Lazy Broker = new(MacCredentialBrokerClient.ForCurrentApp); + private readonly string _service; + private readonly SemaphoreSlim _gate = new(1, 1); + + public KeychainCredentialStore(string service) + { + if (!OperatingSystem.IsMacOS()) throw new PlatformNotSupportedException("Keychain requires macOS."); + ValidateName(service); + _service = service; + // No framework initialization or keychain access until the data lease has been acquired by the host. + } + + public Task ReadAsync(string key, CancellationToken cancellationToken = default) + => Broker.Value is { } broker ? broker.RequestAsync(_service, key, 1, default, cancellationToken) : ReadCoreAsync(key, false, cancellationToken); + public Task ReadWithUserAuthorizationAsync(string key, CancellationToken cancellationToken = default) + => Broker.Value is { } broker ? broker.RequestAsync(_service, key, 4, default, cancellationToken) : ReadCoreAsync(key, true, cancellationToken); + private async Task ReadCoreAsync(string key, bool allowInteraction, CancellationToken cancellationToken) + { + ValidateName(key); + await _gate.WaitAsync(cancellationToken); + try + { + return await Task.Run(() => WithInteraction(() => + { + using var query = Query(key, allowInteraction); + Native.Set(query, "kSecReturnData", Native.True); + Native.Set(query, "kSecMatchLimit", Native.Constant("kSecMatchLimitOne")); + var status = Native.SecItemCopyMatching(query.DangerousGetHandle(), out var result); + using var data = new CFHandle(result); + if (status == -25300) return null; + Check(status); + if (data.IsInvalid || Native.CFGetTypeID(result) != Native.CFDataGetTypeID()) + throw new CredentialStoreException(CredentialFailure.Corrupt, "Keychain 未返回有效凭据数据。"); + var count = Native.CFDataGetLength(result); + if (count < 0 || count > 1048576) throw new CredentialStoreException(CredentialFailure.Corrupt, "Keychain 凭据大小无效。"); + var bytes = new byte[(int)count]; + if (bytes.Length > 0) Marshal.Copy(Native.CFDataGetBytePtr(result), bytes, 0, bytes.Length); + return bytes; + }, allowInteraction), cancellationToken); + } + catch (Exception ex) when (ex is DllNotFoundException or EntryPointNotFoundException or TypeInitializationException) + { throw new CredentialStoreException(CredentialFailure.Unavailable, "本机 Security framework 不可用。", ex); } + finally { _gate.Release(); } + } + + public async Task WriteAsync(string key, ReadOnlyMemory value, CancellationToken cancellationToken = default) + { + if (Broker.Value is { } broker) { _ = await broker.RequestAsync(_service, key, 2, value, cancellationToken).ConfigureAwait(false); return; } + ValidateName(key); + if (value.Length > 1048576) throw new ArgumentOutOfRangeException(nameof(value)); + await _gate.WaitAsync(cancellationToken); + var bytes = value.ToArray(); + try + { + await Task.Run(() => WithInteraction(() => + { + using var query = Query(key); + using var data = new CFHandle(Native.CFDataCreate(IntPtr.Zero, bytes, bytes.Length)); + using var changes = Native.Dictionary(); + Native.Set(changes, "kSecValueData", data.DangerousGetHandle()); + var status = Native.SecItemUpdate(query.DangerousGetHandle(), changes.DangerousGetHandle()); + if (status == -25300) + { + Native.Set(query, "kSecValueData", data.DangerousGetHandle()); + status = Native.SecItemAdd(query.DangerousGetHandle(), IntPtr.Zero); + if (status == -25299) + { + using var retry = Query(key); + status = Native.SecItemUpdate(retry.DangerousGetHandle(), changes.DangerousGetHandle()); + } + } + Check(status); + return 0; + }), cancellationToken); + } + catch (Exception ex) when (ex is DllNotFoundException or EntryPointNotFoundException or TypeInitializationException) + { throw new CredentialStoreException(CredentialFailure.Unavailable, "本机 Security framework 不可用。", ex); } + finally { CryptographicOperations.ZeroMemory(bytes); _gate.Release(); } + } + + public async Task DeleteAsync(string key, CancellationToken cancellationToken = default) + { + if (Broker.Value is { } broker) { _ = await broker.RequestAsync(_service, key, 3, default, cancellationToken).ConfigureAwait(false); return; } + ValidateName(key); + await _gate.WaitAsync(cancellationToken); + try + { + await Task.Run(() => WithInteraction(() => + { + using var query = Query(key); + var status = Native.SecItemDelete(query.DangerousGetHandle()); + if (status != -25300) Check(status); + return 0; + }), cancellationToken); + } + catch (Exception ex) when (ex is DllNotFoundException or EntryPointNotFoundException or TypeInitializationException) + { throw new CredentialStoreException(CredentialFailure.Unavailable, "本机 Security framework 不可用。", ex); } + finally { _gate.Release(); } + } + + private CFHandle Query(string key, bool allowInteraction = false) + { + var query = Native.Dictionary(); + Native.Set(query, "kSecClass", Native.Constant("kSecClassGenericPassword")); + using var service = Native.String(_service); + using var account = Native.String(key); + Native.Set(query, "kSecAttrService", service.DangerousGetHandle()); + Native.Set(query, "kSecAttrAccount", account.DangerousGetHandle()); + // Background calls never prompt. Foreground recovery explicitly allows the system to authorize the existing item. + Native.Set(query, "kSecUseAuthenticationUI", Native.Constant(allowInteraction ? "kSecUseAuthenticationUIAllow" : "kSecUseAuthenticationUIFail")); + return query; + } + + private static void ValidateName(string name) + { + if (string.IsNullOrWhiteSpace(name) || name.Length > 1024 || name.Contains('\0')) + throw new ArgumentException("A nonempty bounded credential identifier is required."); + } + + // SecItem's authentication-UI query flag does not cover every legacy-keychain UI path. + // Apple's SecKeychain.cpp/Globals.h implement this legacy switch as a process-local bool, + // not a keychain preference or an ACL change. Serialize every store instance, and keep + // save/set/call/restore on one native worker thread without any await under this gate. + // https://github.com/apple-oss-distributions/Security/blob/main/OSX/libsecurity_keychain/lib/Globals.h + private static T WithInteraction(Func action, bool allowInteraction = false) + { + lock (InteractionGate) + { + Check(Native.SecKeychainGetUserInteractionAllowed(out var previous), "读取交互状态"); + try + { + Check(Native.SecKeychainSetUserInteractionAllowed(allowInteraction ? (byte)1 : (byte)0), "设置本次交互"); + return action(); + } + finally + { + // A restore failure is an operation failure, including after a successful mutation. + Check(Native.SecKeychainSetUserInteractionAllowed(previous), "恢复交互状态"); + } + } + } + + internal static void Check(int status, string operation = "操作") + { + if (status == 0) return; + var failure = status switch + { + -25308 => CredentialFailure.Locked, + -25293 or -128 or -34018 => CredentialFailure.Denied, + -26275 => CredentialFailure.Corrupt, + _ => CredentialFailure.Unavailable + }; + throw new CredentialStoreException(failure, $"Keychain {operation}失败(OSStatus {status}),凭据未降级保存。"); + } + + private sealed class CFHandle : SafeHandleZeroOrMinusOneIsInvalid + { + public CFHandle(IntPtr handle) : base(true) { SetHandle(handle); } + protected override bool ReleaseHandle() { Native.CFRelease(handle); return true; } + } + + // Apple Security/SecItem.h and CoreFoundation headers are the ABI authority. + // https://developer.apple.com/documentation/security/secitemcopymatching(_:_:) + private static class Native + { + private const string Security = "/System/Library/Frameworks/Security.framework/Security"; + private const string CoreFoundation = "/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation"; + private static readonly IntPtr SecurityLibrary = NativeLibrary.Load(Security); + private static readonly IntPtr FoundationLibrary = NativeLibrary.Load(CoreFoundation); + public static IntPtr Constant(string name) => Marshal.ReadIntPtr(NativeLibrary.GetExport(SecurityLibrary, name)); + public static IntPtr True => Marshal.ReadIntPtr(NativeLibrary.GetExport(FoundationLibrary, "kCFBooleanTrue")); + public static CFHandle Dictionary() + { + var handle = new CFHandle(CFDictionaryCreateMutable(IntPtr.Zero, 0, + NativeLibrary.GetExport(FoundationLibrary, "kCFTypeDictionaryKeyCallBacks"), + NativeLibrary.GetExport(FoundationLibrary, "kCFTypeDictionaryValueCallBacks"))); + if (handle.IsInvalid) throw new OutOfMemoryException(); + return handle; + } + public static CFHandle String(string value) => new(CFStringCreateWithCString(IntPtr.Zero, value, 0x08000100)); + public static void Set(CFHandle dictionary, string key, IntPtr value) => CFDictionarySetValue(dictionary.DangerousGetHandle(), Constant(key), value); + + [DllImport(Security)] public static extern int SecItemCopyMatching(IntPtr query, out IntPtr result); + [DllImport(Security)] public static extern int SecItemAdd(IntPtr attributes, IntPtr result); + [DllImport(Security)] public static extern int SecItemUpdate(IntPtr query, IntPtr attributes); + [DllImport(Security)] public static extern int SecItemDelete(IntPtr query); + // Darwin Boolean is unsigned char, not the four-byte Win32 BOOL. + [DllImport(Security)] public static extern int SecKeychainGetUserInteractionAllowed(out byte state); + [DllImport(Security)] public static extern int SecKeychainSetUserInteractionAllowed(byte state); + [DllImport(CoreFoundation)] public static extern void CFRelease(IntPtr value); + [DllImport(CoreFoundation)] public static extern nuint CFGetTypeID(IntPtr value); + [DllImport(CoreFoundation)] public static extern nuint CFDataGetTypeID(); + [DllImport(CoreFoundation)] public static extern nint CFDataGetLength(IntPtr data); + [DllImport(CoreFoundation)] public static extern IntPtr CFDataGetBytePtr(IntPtr data); + [DllImport(CoreFoundation)] public static extern IntPtr CFDataCreate(IntPtr allocator, byte[] bytes, nint length); + [DllImport(CoreFoundation)] private static extern IntPtr CFDictionaryCreateMutable(IntPtr allocator, nint capacity, IntPtr keyCallbacks, IntPtr valueCallbacks); + [DllImport(CoreFoundation)] private static extern void CFDictionarySetValue(IntPtr dictionary, IntPtr key, IntPtr value); + [DllImport(CoreFoundation)] private static extern IntPtr CFStringCreateWithCString(IntPtr allocator, [MarshalAs(UnmanagedType.LPUTF8Str)] string value, uint encoding); + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/MacOS/MacCodeIdentity.cs b/src/SHOU.Launcher.Desktop/Platform/MacOS/MacCodeIdentity.cs new file mode 100644 index 00000000..acc585af --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/MacOS/MacCodeIdentity.cs @@ -0,0 +1,102 @@ +using System.Runtime.InteropServices; +using System.Security.Cryptography; +using System.Text; +using Microsoft.Win32.SafeHandles; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.Platform.MacOS; + +/// Security.framework verifies live processes, not a caller-supplied path or PID alone. +internal static class MacCodeIdentity +{ + internal sealed record Identity(string Identifier, string? CertificateSha1, uint Flags); + internal static Identity ReadSelf() + { + Check(Native.SecCodeCopySelf(0, out var pointer)); + using var code = new Handle(pointer); + return Read(code.DangerousGetHandle()); + } + + internal static void VerifyChild(int pid, string identifier, string certificateSha1) + { + using var attributes = new Handle(Native.CFDictionaryCreateMutable(0, 0, + NativeLibrary.GetExport(Native.Foundation, "kCFTypeDictionaryKeyCallBacks"), + NativeLibrary.GetExport(Native.Foundation, "kCFTypeDictionaryValueCallBacks"))); + using var number = new Handle(Native.CFNumberCreate(0, 3, ref pid)); // kCFNumberSInt32Type + Native.CFDictionarySetValue(attributes.DangerousGetHandle(), Native.Constant("kSecGuestAttributePid"), number.DangerousGetHandle()); + Check(Native.SecCodeCopyGuestWithAttributes(0, attributes.DangerousGetHandle(), 0, out var pointer)); + using var code = new Handle(pointer); + using var expression = String($"identifier \"{identifier}\" and certificate leaf = H\"{certificateSha1}\""); + Check(Native.SecRequirementCreateWithString(expression.DangerousGetHandle(), 0, out var requirementPointer)); + using var requirement = new Handle(requirementPointer); + Check(Native.SecCodeCheckValidity(code.DangerousGetHandle(), 0, requirement.DangerousGetHandle())); + var identity = Read(code.DangerousGetHandle()); + // CS_RUNTIME: the broker has no JIT, plug-in or DYLD exception entitlements. + if (identity.Identifier != identifier || identity.CertificateSha1 != certificateSha1 || (identity.Flags & 0x10000) == 0) + throw new CredentialStoreException(CredentialFailure.Denied, "凭据组件的签名身份或运行保护无效。"); + } + + private static Identity Read(nint code) + { + Check(Native.SecCodeCopySigningInformation(code, 2, out var pointer)); // kSecCSSigningInformation + using var info = new Handle(pointer); + var identifier = Native.CFDictionaryGetValue(pointer, Native.Constant("kSecCodeInfoIdentifier")); + var text = new StringBuilder(2048); + if (identifier == 0 || !Native.CFStringGetCString(identifier, text, text.Capacity, 0x08000100)) + throw new CredentialStoreException(CredentialFailure.Unavailable, "无法核实本机程序签名。"); + var flagsPointer = Native.CFDictionaryGetValue(pointer, Native.Constant("kSecCodeInfoFlags")); + var flags = 0; + if (flagsPointer != 0) Native.CFNumberGetValue(flagsPointer, 3, out flags); + string? fingerprint = null; + var certificates = Native.CFDictionaryGetValue(pointer, Native.Constant("kSecCodeInfoCertificates")); + if (certificates != 0 && Native.CFArrayGetCount(certificates) > 0) + { + using var data = new Handle(Native.SecCertificateCopyData(Native.CFArrayGetValueAtIndex(certificates, 0))); + var length = data.IsInvalid ? 0 : Native.CFDataGetLength(data.DangerousGetHandle()); + if (length is <= 0 or > 65536) throw new CredentialStoreException(CredentialFailure.Corrupt, "程序签名证书无效。"); + var bytes = new byte[(int)length]; + Marshal.Copy(Native.CFDataGetBytePtr(data.DangerousGetHandle()), bytes, 0, bytes.Length); + // The certificate fingerprint syntax is defined by Apple's requirement language. + fingerprint = Convert.ToHexString(SHA1.HashData(bytes)); + } + return new(text.ToString(), fingerprint, unchecked((uint)flags)); + } + + private static Handle String(string value) => new(Native.CFStringCreateWithCString(0, value, 0x08000100)); + private static void Check(int status) + { + if (status != 0) throw new CredentialStoreException(CredentialFailure.Denied, "本机程序签名校验未通过,未发送登录凭据。"); + } + private sealed class Handle : SafeHandleZeroOrMinusOneIsInvalid + { + internal Handle(nint pointer) : base(true) { SetHandle(pointer); } + protected override bool ReleaseHandle() { Native.CFRelease(handle); return true; } + } + + private static class Native + { + private const string SecurityPath = "/System/Library/Frameworks/Security.framework/Security"; + private const string FoundationPath = "/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation"; + private static readonly nint Security = NativeLibrary.Load(SecurityPath); + internal static readonly nint Foundation = NativeLibrary.Load(FoundationPath); + internal static nint Constant(string name) => Marshal.ReadIntPtr(NativeLibrary.GetExport(Security, name)); + [DllImport(SecurityPath)] internal static extern int SecCodeCopySelf(uint flags, out nint code); + [DllImport(SecurityPath)] internal static extern int SecCodeCopySigningInformation(nint code, uint flags, out nint info); + [DllImport(SecurityPath)] internal static extern int SecCodeCopyGuestWithAttributes(nint host, nint attributes, uint flags, out nint code); + [DllImport(SecurityPath)] internal static extern int SecRequirementCreateWithString(nint expression, uint flags, out nint requirement); + [DllImport(SecurityPath)] internal static extern int SecCodeCheckValidity(nint code, uint flags, nint requirement); + [DllImport(SecurityPath)] internal static extern nint SecCertificateCopyData(nint certificate); + [DllImport(FoundationPath)] internal static extern void CFRelease(nint value); + [DllImport(FoundationPath)] internal static extern nint CFDictionaryCreateMutable(nint allocator, nint capacity, nint keys, nint values); + [DllImport(FoundationPath)] internal static extern void CFDictionarySetValue(nint dictionary, nint key, nint value); + [DllImport(FoundationPath)] internal static extern nint CFDictionaryGetValue(nint dictionary, nint key); + [DllImport(FoundationPath)] internal static extern nint CFNumberCreate(nint allocator, int type, ref int value); + [DllImport(FoundationPath)] [return: MarshalAs(UnmanagedType.I1)] internal static extern bool CFNumberGetValue(nint number, int type, out int value); + [DllImport(FoundationPath)] internal static extern nint CFStringCreateWithCString(nint allocator, string value, uint encoding); + [DllImport(FoundationPath)] [return: MarshalAs(UnmanagedType.I1)] internal static extern bool CFStringGetCString(nint text, StringBuilder buffer, nint size, uint encoding); + [DllImport(FoundationPath)] internal static extern nint CFArrayGetCount(nint array); + [DllImport(FoundationPath)] internal static extern nint CFArrayGetValueAtIndex(nint array, nint index); + [DllImport(FoundationPath)] internal static extern nint CFDataGetLength(nint data); + [DllImport(FoundationPath)] internal static extern nint CFDataGetBytePtr(nint data); + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/MacOS/MacCredentialBrokerClient.cs b/src/SHOU.Launcher.Desktop/Platform/MacOS/MacCredentialBrokerClient.cs new file mode 100644 index 00000000..aeb8eabc --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/MacOS/MacCredentialBrokerClient.cs @@ -0,0 +1,118 @@ +using System.Buffers.Binary; +using System.Diagnostics; +using System.Security.Cryptography; +using System.Text; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.Platform.MacOS; + +/// Private anonymous pipes; verify the live child before sending any secret. +internal sealed class MacCredentialBrokerClient(string executable, string certificateSha1) +{ + internal const string Identifier = "club.conduit.shou.launcher.credentials.v1"; + private const uint Magic = 0x53484f55; + private const int MaximumValue = 1048576; + private readonly SemaphoreSlim gate = new(1, 1); + + internal static MacCredentialBrokerClient? ForCurrentApp() + { + var contents = Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, "..")); + if (!File.Exists(Path.Combine(contents, "Info.plist"))) return null; // dotnet run / unit test hosts + var identity = MacCodeIdentity.ReadSelf(); + // PR packages are explicitly ad-hoc test builds. Their legacy storage + // remains available, but they cannot invoke the fixed signed broker. + if (identity.Identifier != "club.conduit.shou.launcher" || identity.CertificateSha1 is null) return null; + var executable = Path.Combine(contents, "Helpers", "SHOU.CredentialBroker"); + if (!File.Exists(executable)) throw new CredentialStoreException(CredentialFailure.Unavailable, "候选包缺少凭据组件,请重新安装完整应用。"); + return new(executable, identity.CertificateSha1); + } + + internal async Task RequestAsync(string service, string key, uint operation, + ReadOnlyMemory value, CancellationToken cancellationToken) + { + ValidateName(service); ValidateName(key); + if (value.Length > MaximumValue) throw new ArgumentOutOfRangeException(nameof(value)); + await gate.WaitAsync(cancellationToken).ConfigureAwait(false); + using var deadline = CancellationTokenSource.CreateLinkedTokenSource(cancellationToken); + deadline.CancelAfter(operation == 4 ? TimeSpan.FromMinutes(5) : TimeSpan.FromSeconds(30)); + var ct = deadline.Token; + Process? child = null; byte[]? response = null; Task? drain = null; + var bytes = value.ToArray(); + try + { + var start = new ProcessStartInfo(executable) + { + UseShellExecute = false, CreateNoWindow = true, + RedirectStandardInput = true, RedirectStandardOutput = true, RedirectStandardError = true + }; + child = Process.Start(start) ?? throw new IOException("Credential component did not start."); + drain = DrainAsync(child.StandardError, ct); + var output = child.StandardOutput.BaseStream; + var greeting = new byte[8]; + await output.ReadExactlyAsync(greeting, ct).ConfigureAwait(false); + if (BinaryPrimitives.ReadUInt32LittleEndian(greeting) != Magic) throw new InvalidDataException("Credential protocol mismatch."); + KeychainCredentialStore.Check(BinaryPrimitives.ReadInt32LittleEndian(greeting.AsSpan(4))); + await Task.Run(() => MacCodeIdentity.VerifyChild(child.Id, Identifier, certificateSha1), ct).ConfigureAwait(false); + if (child.HasExited) throw new IOException("Credential component exited before validation."); + // Nothing private is written to the pipe until the OS verifies this live child. + var serviceBytes = Encoding.UTF8.GetBytes(service); var keyBytes = Encoding.UTF8.GetBytes(key); + var header = new byte[16]; + BinaryPrimitives.WriteUInt32LittleEndian(header, operation); + BinaryPrimitives.WriteUInt32LittleEndian(header.AsSpan(4), (uint)serviceBytes.Length); + BinaryPrimitives.WriteUInt32LittleEndian(header.AsSpan(8), (uint)keyBytes.Length); + BinaryPrimitives.WriteUInt32LittleEndian(header.AsSpan(12), (uint)bytes.Length); + var input = child.StandardInput.BaseStream; + await input.WriteAsync(header, ct).ConfigureAwait(false); + await input.WriteAsync(serviceBytes, ct).ConfigureAwait(false); + await input.WriteAsync(keyBytes, ct).ConfigureAwait(false); + await input.WriteAsync(bytes, ct).ConfigureAwait(false); + await input.FlushAsync(ct).ConfigureAwait(false); + child.StandardInput.Close(); + await output.ReadExactlyAsync(greeting, ct).ConfigureAwait(false); + var status = BinaryPrimitives.ReadInt32LittleEndian(greeting); + var length = BinaryPrimitives.ReadUInt32LittleEndian(greeting.AsSpan(4)); + if (length > MaximumValue || (status != 0 && length != 0)) throw new InvalidDataException("Credential response size is invalid."); + response = new byte[(int)length]; + await output.ReadExactlyAsync(response, ct).ConfigureAwait(false); + await child.WaitForExitAsync(ct).ConfigureAwait(false); + await drain.ConfigureAwait(false); + if (child.ExitCode != 0) throw new IOException("Credential component did not finish."); + if (status == -25300) return null; + KeychainCredentialStore.Check(status); + var result = response; response = null; return result; + } + catch (OperationCanceledException) when (!cancellationToken.IsCancellationRequested) + { throw new CredentialStoreException(CredentialFailure.Unavailable, "钥匙串操作超时,原登录记录保留。"); } + catch (Exception ex) when (ex is IOException or InvalidDataException or System.ComponentModel.Win32Exception) + { throw new CredentialStoreException(CredentialFailure.Unavailable, "凭据组件未完成操作,原登录记录保留。", ex); } + finally + { + CryptographicOperations.ZeroMemory(bytes); + if (response is not null) CryptographicOperations.ZeroMemory(response); + if (child is not null) + { + try { if (!child.HasExited) child.Kill(); } + catch (Exception ex) when (ex is InvalidOperationException or System.ComponentModel.Win32Exception) { } + child.Dispose(); + } + deadline.Cancel(); + if (drain is not null) + { + try { await drain.ConfigureAwait(false); } + catch (Exception ex) when (ex is OperationCanceledException or IOException or ObjectDisposedException) { } + } + gate.Release(); + } + } + + private static void ValidateName(string value) + { + if (string.IsNullOrWhiteSpace(value) || value.Length > 1024 || value.Contains('\0')) + throw new ArgumentException("A nonempty bounded credential identifier is required."); + } + private static async Task DrainAsync(StreamReader reader, CancellationToken ct) + { + var buffer = new char[512]; + while (await reader.ReadAsync(buffer.AsMemory(), ct).ConfigureAwait(false) != 0) { } + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/MacOS/MacDisplayLinkStartup.cs b/src/SHOU.Launcher.Desktop/Platform/MacOS/MacDisplayLinkStartup.cs new file mode 100644 index 00000000..0b6d0388 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/MacOS/MacDisplayLinkStartup.cs @@ -0,0 +1,69 @@ +using System.Globalization; +using System.Runtime.InteropServices; + +namespace SHOU.Launcher.Desktop.Platform.MacOS; + +internal enum DisplayLinkStage { Create, Register, Ready } +internal sealed record DisplayLinkProbe(DisplayLinkStage Stage, int NativeStatus); +internal sealed record DisplayLinkStartupReport(bool Ready, int Attempts, DisplayLinkStage Stage, int NativeStatus); +internal sealed class DisplayLinkStartupException(DisplayLinkStartupReport report) + : Exception($"macOS 显示时钟暂不可用({report.Stage}: {report.NativeStatus})。请在桌面唤醒后重试;原账户和实例保留。") +{ + internal DisplayLinkStartupReport Report { get; } = report; +} + +/// Prepare the same CoreVideo registration used by Avalonia before its one-shot platform setup. +internal static class MacDisplayLinkStartup +{ + internal const string NativeFailurePrefix = "Avalonia.Native was not able to start the RenderTimer. Native error code is: "; + internal static DisplayLinkStartupReport? Prepare(bool isMacOS, + Func? probe = null, Action? delay = null) + { + if (!isMacOS) return null; + probe ??= ProbeNative; + delay ??= Thread.Sleep; + for (var attempt = 1; ; attempt++) + { + var result = probe(); + var report = new DisplayLinkStartupReport(result.NativeStatus == 0, attempt, result.Stage, result.NativeStatus); + if (report.Ready) return report; + // Display reconfiguration/wake can briefly reject registration. Never + // retry a half-initialized Avalonia AppBuilder or wait indefinitely. + if (attempt == 8) throw new DisplayLinkStartupException(report); + delay(TimeSpan.FromMilliseconds(250)); + } + } + + internal static int? NativeFailureStatus(Exception error) + { + if (error is not InvalidOperationException || !error.Message.StartsWith(NativeFailurePrefix, StringComparison.Ordinal)) return null; + return int.TryParse(error.Message.AsSpan(NativeFailurePrefix.Length), NumberStyles.AllowLeadingSign, + CultureInfo.InvariantCulture, out var status) ? status : null; + } + + private static DisplayLinkProbe ProbeNative() + { + nint link = 0; + try + { + var status = Native.CVDisplayLinkCreateWithActiveCGDisplays(out link); + if (status != 0) return new(DisplayLinkStage.Create, status); + status = Native.CVDisplayLinkSetOutputCallback(link, Native.Callback, 0); + return new(status == 0 ? DisplayLinkStage.Ready : DisplayLinkStage.Register, status); + } + finally { if (link != 0) Native.CVDisplayLinkRelease(link); } + } + + private static class Native + { + private const string CoreVideo = "/System/Library/Frameworks/CoreVideo.framework/CoreVideo"; + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + internal delegate int OutputCallback(nint link, nint now, nint output, ulong flags, ref ulong outputFlags, nint context); + // The probe does not start the display link. Keep the callback rooted until release. + internal static readonly OutputCallback Callback = NoTick; + private static int NoTick(nint link, nint now, nint output, ulong flags, ref ulong outputFlags, nint context) => 0; + [DllImport(CoreVideo)] internal static extern int CVDisplayLinkCreateWithActiveCGDisplays(out nint link); + [DllImport(CoreVideo)] internal static extern int CVDisplayLinkSetOutputCallback(nint link, OutputCallback callback, nint context); + [DllImport(CoreVideo)] internal static extern void CVDisplayLinkRelease(nint link); + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/MacOS/MacFileSystemPaths.cs b/src/SHOU.Launcher.Desktop/Platform/MacOS/MacFileSystemPaths.cs new file mode 100644 index 00000000..eb882672 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/MacOS/MacFileSystemPaths.cs @@ -0,0 +1,59 @@ +using System.ComponentModel; +using System.Buffers.Binary; +using System.Runtime.InteropServices; +using System.Text; + +namespace SHOU.Launcher.Desktop.Platform.MacOS; + +/// Obtains stored names from the filesystem; never folds names that may belong to different files. +internal static class MacFileSystemPaths +{ + public static string CanonicalDirectory(string absoluteDirectory) + { + if (!OperatingSystem.IsMacOS()) throw new PlatformNotSupportedException(); + var current = Path.TrimEndingDirectorySeparator(Path.GetFullPath(absoluteDirectory)); + var suffix = new Stack(); + // A not-yet-created root uses the stored path of its nearest existing directory ancestor. + // Preserve new names exactly, so their first creation and the next process use the same scope. + while (!Directory.Exists(current)) + { + var parent = Path.GetDirectoryName(current); + if (string.IsNullOrEmpty(parent)) throw new IOException("No existing filesystem ancestor can resolve the application directory."); + suffix.Push(Path.GetFileName(current)); + current = parent; + } + // sys/attr.h: fixed-arity getattrlist avoids Darwin arm64's special variadic ABI (fcntl). + // ATTR_CMN_FULLPATH returns the actual stored path, cross-checked against native C F_GETPATH. + var attributes = new AttributeList { BitmapCount = 5, Reserved = 0, Common = 0x08000000, + Volume = 0, Directory = 0, File = 0, Fork = 0 }; + var buffer = new byte[4096]; + if (GetAttributes(current, ref attributes, buffer, (nuint)buffer.Length, 0) != 0) throw Failure(Marshal.GetLastPInvokeError()); + var returned = BinaryPrimitives.ReadInt32LittleEndian(buffer); + var offset = BinaryPrimitives.ReadInt32LittleEndian(buffer.AsSpan(4)); + var length = BinaryPrimitives.ReadInt32LittleEndian(buffer.AsSpan(8)); + var start = 4L + offset; // attrreference_t offsets are relative to the reference, not the buffer. + if (returned < 12 || returned > buffer.Length || offset < 8 || length < 1 || start + length > returned + || buffer[(int)(start + length - 1)] != 0) + throw new IOException("The filesystem did not return a valid canonical path attribute."); + var stored = new UTF8Encoding(false, true).GetString(buffer, (int)start, length - 1); + if (!Path.IsPathFullyQualified(stored)) throw new IOException("The filesystem returned a relative stored path."); + while (suffix.TryPop(out var part)) stored = Path.Combine(stored, part); + return Path.TrimEndingDirectorySeparator(Path.GetFullPath(stored)); + } + + private static IOException Failure(int error) => new("Cannot obtain the actual filesystem directory identity.", new Win32Exception(error)); + [StructLayout(LayoutKind.Sequential)] + private struct AttributeList + { + public ushort BitmapCount; + public ushort Reserved; + public uint Common; + public uint Volume; + public uint Directory; + public uint File; + public uint Fork; + } + [DllImport("/usr/lib/libSystem.B.dylib", EntryPoint = "getattrlist", SetLastError = true)] + private static extern int GetAttributes([MarshalAs(UnmanagedType.LPUTF8Str)] string path, + ref AttributeList attributes, [Out] byte[] buffer, nuint bufferSize, uint options); +} diff --git a/src/SHOU.Launcher.Desktop/Platform/NativeMemoryInfo.cs b/src/SHOU.Launcher.Desktop/Platform/NativeMemoryInfo.cs new file mode 100644 index 00000000..48462c2d --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/NativeMemoryInfo.cs @@ -0,0 +1,43 @@ +using System.Diagnostics; +using System.Globalization; +using System.Runtime.InteropServices; +using System.Text.RegularExpressions; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.Platform; + +public sealed class NativeMemoryInfo : IMemoryInfo +{ + public MemoryStatus Read() + { + if (OperatingSystem.IsWindows()) + { + var status = new MemoryStatusEx { Length = (uint)Marshal.SizeOf() }; + if (!GlobalMemoryStatusEx(ref status)) throw new IOException("无法读取系统内存。"); + return new((long)status.TotalPhysical, (long)status.AvailablePhysical); + } + if (OperatingSystem.IsMacOS()) + { + var total = long.Parse(ReadCommand("/usr/sbin/sysctl", "-n", "hw.memsize").Trim(), CultureInfo.InvariantCulture); + var text = ReadCommand("/usr/bin/vm_stat"); + var pageSize = long.Parse(Regex.Match(text, @"page size of (\d+) bytes").Groups[1].Value, CultureInfo.InvariantCulture); + long Pages(string key) => long.TryParse(Regex.Match(text, Regex.Escape(key) + @":\s+(\d+)").Groups[1].Value, out var pages) ? pages : 0; + return new(total, Math.Min(total, (Pages("Pages free") + Pages("Pages inactive") + Pages("Pages speculative")) * pageSize)); + } + throw new PlatformNotSupportedException("该平台尚无系统内存适配器。"); + } + private static string ReadCommand(string executable, params string[] args) + { + var start = new ProcessStartInfo(executable) { UseShellExecute = false, RedirectStandardOutput = true, RedirectStandardError = true, CreateNoWindow = true }; + foreach (var argument in args) start.ArgumentList.Add(argument); + using var process = Process.Start(start) ?? throw new IOException("无法读取系统内存。"); + if (!process.WaitForExit(1000)) { process.Kill(); throw new IOException("读取系统内存超时。"); } + if (process.ExitCode != 0) throw new IOException("无法读取系统内存。"); + return process.StandardOutput.ReadToEnd(); + } + [StructLayout(LayoutKind.Sequential)] + private struct MemoryStatusEx + { public uint Length, Load; public ulong TotalPhysical, AvailablePhysical, TotalPageFile, AvailablePageFile, TotalVirtual, AvailableVirtual, AvailableExtendedVirtual; } + [DllImport("kernel32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] + private static extern bool GlobalMemoryStatusEx(ref MemoryStatusEx status); +} diff --git a/src/SHOU.Launcher.Desktop/Platform/NativePlatformInfo.cs b/src/SHOU.Launcher.Desktop/Platform/NativePlatformInfo.cs new file mode 100644 index 00000000..ca248bc8 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/NativePlatformInfo.cs @@ -0,0 +1,38 @@ +using System.Runtime.InteropServices; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.Platform; + +public sealed class NativePlatformInfo : IPlatformInfo +{ + public PlatformContext Context { get; } + + public NativePlatformInfo() + { + var os = OperatingSystem.IsWindows() ? LauncherOS.Windows + : OperatingSystem.IsMacOS() ? LauncherOS.MacOS + : OperatingSystem.IsLinux() ? LauncherOS.Linux : LauncherOS.Unknown; + var hardware = Normalize(RuntimeInformation.OSArchitecture); + if (OperatingSystem.IsMacOS()) + { + // This remains the hardware architecture when the launcher runs under Rosetta. + nuint length = sizeof(int); + if (SysctlByName("hw.optional.arm64", out var arm64, ref length, IntPtr.Zero, 0) == 0 && arm64 == 1) + hardware = RuntimeArchitecture.Arm64; + } + Context = new PlatformContext(os, hardware, Normalize(RuntimeInformation.ProcessArchitecture), + Environment.OSVersion.Version.ToString()); + } + + private static RuntimeArchitecture Normalize(Architecture architecture) => architecture switch + { + Architecture.X86 => RuntimeArchitecture.X86, + Architecture.X64 => RuntimeArchitecture.X64, + Architecture.Arm64 => RuntimeArchitecture.Arm64, + _ => RuntimeArchitecture.Unknown + }; + + [DllImport("/usr/lib/libSystem.B.dylib", EntryPoint = "sysctlbyname", SetLastError = true)] + private static extern int SysctlByName([MarshalAs(UnmanagedType.LPUTF8Str)] string name, + out int value, ref nuint length, IntPtr newValue, nuint newLength); +} diff --git a/src/SHOU.Launcher.Desktop/Platform/PlatformProxy.cs b/src/SHOU.Launcher.Desktop/Platform/PlatformProxy.cs new file mode 100644 index 00000000..add95982 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/PlatformProxy.cs @@ -0,0 +1,21 @@ +using System.Net; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.Platform; + +public static class PlatformProxy +{ + /// Creates a per-client handler; never changes system settings or HttpClient.DefaultProxy. + public static HttpClientHandler CreateHandler(ProxySettings settings, NetworkCredential? credentials = null) + { + if (settings.Mode == ProxyMode.Direct) return new HttpClientHandler { UseProxy = false }; + // .NET 9+ refreshes Windows registry proxy changes; macOS uses the native/default proxy implementation. + // https://devblogs.microsoft.com/dotnet/dotnet-9-networking-improvements/#proxy-auto-update-on-windows + if (settings.Mode == ProxyMode.System) return new HttpClientHandler { UseProxy = true, Proxy = HttpClient.DefaultProxy }; + if (settings.Mode != ProxyMode.Custom || !Uri.TryCreate(settings.Address, UriKind.Absolute, out var address) + || address.Scheme is not ("http" or "https" or "socks4" or "socks4a" or "socks5") + || !string.IsNullOrEmpty(address.UserInfo)) + throw new ArgumentException("A custom proxy requires a valid address; credentials must be supplied by the credential store."); + return new HttpClientHandler { UseProxy = true, Proxy = new WebProxy(address) { Credentials = credentials, BypassProxyOnLocal = false } }; + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/PlatformServicesFactory.cs b/src/SHOU.Launcher.Desktop/Platform/PlatformServicesFactory.cs new file mode 100644 index 00000000..87ad752e --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/PlatformServicesFactory.cs @@ -0,0 +1,56 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Java; +using SHOU.Launcher.Desktop.Platform.MacOS; +using SHOU.Launcher.Desktop.Platform.Windows; + +namespace SHOU.Launcher.Desktop.Platform; + +public static class PlatformServicesFactory +{ + public static PlatformServices Create(PlatformOptions options, IVerifiedDownloader downloader) + => CreateCore(options, downloader, null); + + /// Compose services with an explicitly supplied credential adapter, including isolated test stores. + public static PlatformServices Create(PlatformOptions options, IVerifiedDownloader downloader, ICredentialStore credentials) + { + ArgumentNullException.ThrowIfNull(credentials); + return CreateCore(options, downloader, credentials); + } + + private static PlatformServices CreateCore(PlatformOptions options, IVerifiedDownloader downloader, ICredentialStore? credentials) + { + ArgumentNullException.ThrowIfNull(downloader); + var info = new NativePlatformInfo(); + var paths = new AppPaths(options, info.Context); + var processes = new ProcessRunner(); + credentials ??= CreateNativeCredentials(paths); + var discovery = new JavaDiscovery(processes, info.Context, options, managedRuntimeDirectory: paths.RuntimesDirectory); + var installer = new MojangJavaRuntimeInstaller(downloader, discovery, paths.RuntimesDirectory, + Path.Combine(paths.CacheDirectory, "java-metadata")); + IJavaRuntimeInstaller runtimeInstaller = OperatingSystem.IsMacOS() ? new MacJava8RuntimeInstaller(installer, downloader, discovery, paths.RuntimesDirectory, paths.CacheDirectory) : installer; + return new PlatformServices(info, paths, new Capabilities(info.Context), new ExternalLauncher(processes, info.Context), + credentials, processes, discovery, runtimeInstaller, new DataDirectoryLock()) + { + LegacyDesktopData = OperatingSystem.IsWindows() && !paths.IsIsolated + ? new WindowsLegacyDesktopDataReader(paths.ResourcesDirectory, paths.SharedDataDirectory) : null, + MemoryInfo = new NativeMemoryInfo(), + LegacyMicrosoftAccounts = OperatingSystem.IsWindows() + ? new WindowsLegacyMicrosoftAccountReader(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "PCLCE")) : null + }; + } + + private static ICredentialStore CreateNativeCredentials(IAppPaths paths) + { + if (OperatingSystem.IsMacOS()) return new KeychainCredentialStore(paths.CredentialScope); + if (OperatingSystem.IsWindows()) return new WindowsDpapiCredentialStore(paths); + throw new PlatformNotSupportedException("This Desktop host supports Windows and macOS; no credential adapter is registered for this OS."); + } + + private sealed class Capabilities(PlatformContext context) : IPlatformCapabilities + { + public bool SupportsCredentialPersistence => context.OS is LauncherOS.MacOS or LauncherOS.Windows; + public bool SupportsSystemProxy => context.OS is LauncherOS.MacOS or LauncherOS.Windows; + public bool SupportsRevealFile => context.OS is LauncherOS.MacOS or LauncherOS.Windows; + public IReadOnlyList Limitations => []; + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/ProcessRunner.MacWindows.cs b/src/SHOU.Launcher.Desktop/Platform/ProcessRunner.MacWindows.cs new file mode 100644 index 00000000..903786b2 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/ProcessRunner.MacWindows.cs @@ -0,0 +1,90 @@ +using System.Diagnostics; +using System.Runtime.InteropServices; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.Platform; + +public sealed partial class ProcessRunner +{ + private static async Task WaitForMacGameWindowAsync(IManagedProcess process, TimeSpan timeout, CancellationToken ct) + { + using var windows = new MacGameWindowQuery(); + var timer = Stopwatch.StartNew(); + while ((timeout == Timeout.InfiniteTimeSpan || timer.Elapsed < timeout) && !process.Completion.IsCompleted) + { + ct.ThrowIfCancellationRequested(); + if (windows.HasWindow(process.ProcessId)) return true; + await Task.Delay(150, ct).ConfigureAwait(false); + } + return false; + } +} + +/// Window-server metadata only: no screenshots, window titles, Accessibility or permission prompts. +internal sealed class MacGameWindowQuery : IDisposable +{ + private const string CoreGraphics = "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics"; + private const string CoreFoundation = "/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation"; + private readonly List keys = []; + + public MacGameWindowQuery() + { + try + { + foreach (var key in new[] { "kCGWindowOwnerPID", "kCGWindowLayer", "kCGWindowBounds", "Width", "Height", "kCGWindowAlpha" }) + { + var value = CFStringCreateWithCString(0, key, 0x08000100); + if (value == 0) throw new IOException("无法创建窗口元数据查询。"); + keys.Add(value); + } + } + catch { Dispose(); throw; } + } + + public bool HasWindow(int processId) + { + // On-screen windows only, excluding desktop elements. Owner PID and bounds are public metadata; + // deliberately do not request kCGWindowName or any window pixel content. + var list = CGWindowListCopyWindowInfo(1 | 16, 0); + if (list == 0) throw new IOException("当前 Mac 窗口列表不可用。"); + try + { + var count = CFArrayGetCount(list); + for (nint i = 0; i < count; i++) + { + var window = CFArrayGetValueAtIndex(list, i); + if (!IsDictionary(window) || !ReadNumber(window, keys[0], out var owner) || owner != processId) continue; + var bounds = CFDictionaryGetValue(window, keys[2]); + if (IsDictionary(bounds) && ReadNumber(window, keys[1], out var layer) && ReadNumber(bounds, keys[3], out var width) + && ReadNumber(bounds, keys[4], out var height) && ReadNumber(window, keys[5], out var alpha) + && IsGameWindow(processId, owner, layer, width, height, alpha)) return true; + } + return false; + } + finally { CFRelease(list); } + } + + // Excludes Java's hidden/tiny AWT helper windows and unrelated PIDs; this is not a user window-size setting. + internal static bool IsGameWindow(int targetPid, double ownerPid, double layer, double width, double height, double alpha) + => targetPid > 0 && ownerPid == targetPid && layer == 0 && double.IsFinite(width) && double.IsFinite(height) + && width >= 64 && height >= 64 && double.IsFinite(alpha) && alpha > 0; + private static bool IsDictionary(nint value) => value != 0 && CFGetTypeID(value) == CFDictionaryGetTypeID(); + private static bool ReadNumber(nint dictionary, nint key, out double result) + { + result = 0; + var value = CFDictionaryGetValue(dictionary, key); + return value != 0 && CFGetTypeID(value) == CFNumberGetTypeID() && CFNumberGetValue(value, 13, out result); + } + public void Dispose() { foreach (var key in keys) CFRelease(key); keys.Clear(); } + + [DllImport(CoreGraphics)] private static extern nint CGWindowListCopyWindowInfo(uint option, uint relativeToWindow); + [DllImport(CoreFoundation)] private static extern nint CFStringCreateWithCString(nint allocator, [MarshalAs(UnmanagedType.LPUTF8Str)] string value, uint encoding); + [DllImport(CoreFoundation)] private static extern nint CFArrayGetCount(nint array); + [DllImport(CoreFoundation)] private static extern nint CFArrayGetValueAtIndex(nint array, nint index); + [DllImport(CoreFoundation)] private static extern nint CFDictionaryGetValue(nint dictionary, nint key); + [DllImport(CoreFoundation)] private static extern nuint CFGetTypeID(nint value); + [DllImport(CoreFoundation)] private static extern nuint CFDictionaryGetTypeID(); + [DllImport(CoreFoundation)] private static extern nuint CFNumberGetTypeID(); + [DllImport(CoreFoundation)] [return: MarshalAs(UnmanagedType.I1)] private static extern bool CFNumberGetValue(nint value, int numberType, out double result); + [DllImport(CoreFoundation)] private static extern void CFRelease(nint value); +} diff --git a/src/SHOU.Launcher.Desktop/Platform/ProcessRunner.cs b/src/SHOU.Launcher.Desktop/Platform/ProcessRunner.cs new file mode 100644 index 00000000..a2ce5c40 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/ProcessRunner.cs @@ -0,0 +1,310 @@ +using System.Collections.Concurrent; +using System.Diagnostics; +using System.Security.Cryptography; +using System.Text; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.Platform; + +/// Runs only explicit executables; shell scripts are a separate caller decision. +public sealed partial class ProcessRunner : IProcessRunner, IAsyncDisposable, IGameWindowObserver, IGameWindowCustomization +{ + private readonly ConcurrentDictionary _owned = new(); + private int _disposed; + + public async Task StartAsync(ProcessSpec spec, IProgress? output = null, + CancellationToken cancellationToken = default) + { + byte[]? privateInput = null; + ManagedProcess? managed = null; + try + { + // Consumption transfers ownership even if validation/startup subsequently fails. Never replay private input. + privateInput = spec.SensitiveInput?.ConsumeOwnedBytes(); + ObjectDisposedException.ThrowIf(Volatile.Read(ref _disposed) != 0, this); + cancellationToken.ThrowIfCancellationRequested(); + if (!Path.IsPathFullyQualified(spec.FileName) || !Path.IsPathFullyQualified(spec.WorkingDirectory)) + throw new ArgumentException("Process filename and working directory must be absolute."); + if (!Directory.Exists(spec.WorkingDirectory)) throw new DirectoryNotFoundException("The process working directory does not exist."); + if (spec.OutputLimitCharacters is <= 0 or > 16777216) + throw new ArgumentOutOfRangeException(nameof(spec), "The capture limit must be between 1 and 16777216 characters."); + if (spec.Timeout is { } timeout && timeout != Timeout.InfiniteTimeSpan && timeout <= TimeSpan.Zero) + throw new ArgumentOutOfRangeException(nameof(spec), "The timeout must be positive."); + + var start = new ProcessStartInfo(spec.FileName) + { + WorkingDirectory = spec.WorkingDirectory, + UseShellExecute = false, + CreateNoWindow = true, + RedirectStandardOutput = true, + RedirectStandardError = true, + RedirectStandardInput = privateInput is not null, + StandardOutputEncoding = Encoding.UTF8, + StandardErrorEncoding = Encoding.UTF8 + }; + foreach (var argument in spec.Arguments) start.ArgumentList.Add(argument); + if (spec.EnvironmentOverrides is not null) + foreach (var (key, value) in spec.EnvironmentOverrides) + { + if (value is null) start.Environment.Remove(key); + else start.Environment[key] = value; + } + + var process = new Process { StartInfo = start }; + try + { + if (!process.Start()) throw new InvalidOperationException("The operating system did not start the process."); + } + catch { process.Dispose(); throw; } + + managed = new ManagedProcess(process, spec, output, cancellationToken); + if (spec.Priority != GameProcessPriority.Normal) + process.PriorityClass = spec.Priority switch { GameProcessPriority.BelowNormal => ProcessPriorityClass.BelowNormal, GameProcessPriority.AboveNormal => ProcessPriorityClass.AboveNormal, GameProcessPriority.High => ProcessPriorityClass.High, _ => throw new ArgumentException("未知进程优先级。") }; + _owned[managed.ProcessId] = managed; + var started = managed; + _ = managed.Completion.ContinueWith(_ => _owned.TryRemove(started.ProcessId, out var removed), + CancellationToken.None, TaskContinuationOptions.ExecuteSynchronously, TaskScheduler.Default); + // Persist a nonsecret session identity before the bootstrap receives credentials and enters the game. + // A failed callback follows the same owned-child cleanup as a failed private transfer. + spec.OnStarted?.Invoke(managed.ProcessId); + // ManagedProcess already drains both output streams while the child reads its private input. + if (privateInput is not null) + await managed.SendPrivateInputAsync(privateInput, spec.SensitiveInput!.TransferTimeout, cancellationToken).ConfigureAwait(false); + if (Volatile.Read(ref _disposed) != 0) + return await DisposeRejectedStartAsync(managed).ConfigureAwait(false); + return managed; + } + catch + { + if (managed is not null) await managed.DisposeAsync().ConfigureAwait(false); + throw; + } + finally { if (privateInput is not null) CryptographicOperations.ZeroMemory(privateInput); } + } + + private static async Task DisposeRejectedStartAsync(ManagedProcess process) + { + await process.DisposeAsync().ConfigureAwait(false); + throw new ObjectDisposedException(nameof(ProcessRunner)); + } + + public async Task RunAsync(ProcessSpec spec, IProgress? output = null, + CancellationToken cancellationToken = default) + { + await using var process = await StartAsync(spec, output, cancellationToken).ConfigureAwait(false); + return await process.Completion.ConfigureAwait(false); + } + + // Shutdown may run after the desktop dispatcher has stopped; no continuation may depend on it. + public async ValueTask DisposeAsync() + { + if (Interlocked.Exchange(ref _disposed, 1) != 0) return; + await Task.WhenAll(_owned.Values.Select(async process => await process.DisposeAsync().ConfigureAwait(false))).ConfigureAwait(false); + } + + public bool SupportsGameWindowObservation => OperatingSystem.IsWindows() || OperatingSystem.IsMacOS(); + public bool SupportsGameWindowTitle => OperatingSystem.IsWindows(); + public async Task WaitForGameWindowAsync(IManagedProcess process, TimeSpan timeout, CancellationToken cancellationToken) + { + cancellationToken.ThrowIfCancellationRequested(); + if (OperatingSystem.IsMacOS()) return await WaitForMacGameWindowAsync(process, timeout, cancellationToken).ConfigureAwait(false); + if (!OperatingSystem.IsWindows()) return false; + var timer = Stopwatch.StartNew(); + using var native = Process.GetProcessById(process.ProcessId); + while ((timeout == Timeout.InfiniteTimeSpan || timer.Elapsed < timeout) && !process.Completion.IsCompleted) + { + cancellationToken.ThrowIfCancellationRequested(); + native.Refresh(); + if (native.MainWindowHandle != IntPtr.Zero) return true; + await Task.Delay(150, cancellationToken).ConfigureAwait(false); + } + return false; + } + + public Task SetGameWindowTitleAsync(IManagedProcess process, string title, CancellationToken cancellationToken) + { + cancellationToken.ThrowIfCancellationRequested(); + if (!OperatingSystem.IsWindows()) throw new PlatformNotSupportedException("此平台尚未提供原生游戏窗口标题适配。"); + using var native = Process.GetProcessById(process.ProcessId); native.Refresh(); + if (native.MainWindowHandle != IntPtr.Zero && !SetWindowText(native.MainWindowHandle, title)) throw new IOException("无法设置游戏窗口标题。"); + return Task.CompletedTask; + } + [System.Runtime.InteropServices.DllImport("user32.dll", CharSet = System.Runtime.InteropServices.CharSet.Unicode, SetLastError = true)] + [return: System.Runtime.InteropServices.MarshalAs(System.Runtime.InteropServices.UnmanagedType.Bool)] + private static extern bool SetWindowText(IntPtr window, string text); + + private sealed class ManagedProcess : IDetachableProcess + { + private readonly Process _process; + private readonly CancellationTokenSource _stop = new(); + private readonly object _captureLock = new(); + private readonly StringBuilder _stdout = new(); + private readonly StringBuilder _stderr = new(); + private readonly int _limit; + private readonly IProgress? _output; + private int _captured; + private bool _truncated; + private int _disposed; + private int _inputClosed; + private readonly TaskCompletionSource _detach = new(TaskCreationOptions.RunContinuationsAsynchronously); + private bool _detached; + public int ProcessId { get; } + public Task Completion { get; } + + public ManagedProcess(Process process, ProcessSpec spec, IProgress? output, CancellationToken cancellation) + { + _process = process; + ProcessId = process.Id; + _limit = spec.OutputLimitCharacters; + _output = output; + Completion = ObserveAsync(spec.Timeout, cancellation); + } + + public async Task SendPrivateInputAsync(byte[] bytes, TimeSpan timeout, CancellationToken cancellation) + { + using var deadline = new CancellationTokenSource(timeout); + using var linked = CancellationTokenSource.CreateLinkedTokenSource(cancellation, _stop.Token, deadline.Token); + Task? transfer = null; + try + { + transfer = WritePrivateInputAsync(bytes, linked.Token); + await transfer.WaitAsync(linked.Token).ConfigureAwait(false); + if (Completion.IsCompletedSuccessfully && (await Completion.ConfigureAwait(false)).ExitCode != 0) + throw new IOException("The child exited unsuccessfully during private input transfer."); + } + catch (Exception error) + { + // Close/kill only this owned child. A failed transfer never retries through argv or a file. + _stop.Cancel(); + CloseInput(); + await StopAsync().ConfigureAwait(false); + if (transfer is not null) + { + try { await transfer.WaitAsync(TimeSpan.FromSeconds(2)).ConfigureAwait(false); } + catch { _ = transfer.ContinueWith(task => _ = task.Exception, TaskContinuationOptions.OnlyOnFaulted); } + } + if (cancellation.IsCancellationRequested) throw new OperationCanceledException(cancellation); + if (deadline.IsCancellationRequested) throw new TimeoutException("Private process input transfer timed out; the owned child was stopped."); + if (error is OperationCanceledException) throw new OperationCanceledException("Private process input transfer was stopped."); + throw new IOException("Private process input transfer failed; the owned child was stopped."); + } + finally { CloseInput(); } + } + + private async Task WritePrivateInputAsync(byte[] bytes, CancellationToken cancellation) + { + var input = _process.StandardInput.BaseStream; + await input.WriteAsync(bytes.AsMemory(), cancellation).ConfigureAwait(false); + await input.FlushAsync(cancellation).ConfigureAwait(false); + } + + private void CloseInput() + { + if (Interlocked.Exchange(ref _inputClosed, 1) != 0) return; + try { if (_process.StartInfo.RedirectStandardInput) _process.StandardInput.Close(); } + catch (Exception error) when (error is IOException or ObjectDisposedException or InvalidOperationException) { } + } + + private async Task ReadAsync(StreamReader reader, bool standardError) + { + var buffer = new char[4096]; + try + { + while (true) + { + var count = await reader.ReadAsync(buffer.AsMemory()).ConfigureAwait(false); + if (count == 0) break; + string? captured = null; + lock (_captureLock) + { + var allowed = Math.Min(count, _limit - _captured); + if (allowed < count) _truncated = true; + if (allowed > 0) + { + captured = new string(buffer, 0, allowed); + (standardError ? _stderr : _stdout).Append(captured); + _captured += allowed; + } + } + // Continue draining both pipes after the bound, but do not enqueue unlimited UI callbacks. + if (captured is not null && _output is not null) + { + try { _output.Report(new ProcessOutput(DateTimeOffset.UtcNow, standardError, captured)); } + catch { /* A presentation callback must not leave the child blocked on a full pipe. */ } + } + } + } + catch (ObjectDisposedException) { lock (_captureLock) _truncated = true; } + catch (IOException) { lock (_captureLock) _truncated = true; } + } + + private async Task ObserveAsync(TimeSpan? timeout, CancellationToken cancellation) + { + using var deadline = new CancellationTokenSource(); + if (timeout is { } value && value != Timeout.InfiniteTimeSpan) deadline.CancelAfter(value); + using var linked = CancellationTokenSource.CreateLinkedTokenSource(cancellation, _stop.Token, deadline.Token); + var reads = Task.WhenAll(ReadAsync(_process.StandardOutput, false), ReadAsync(_process.StandardError, true)); + var timedOut = false; + var cancelled = false; + try + { + var exit = _process.WaitForExitAsync(linked.Token); + if (await Task.WhenAny(exit, _detach.Task).ConfigureAwait(false) == _detach.Task) + { + _detached = true; + linked.Cancel(); + try { await exit.ConfigureAwait(false); } catch (OperationCanceledException) { } + // The game's verified bootstrap owns its bounded log file; it no longer writes these pipes. + _process.StandardOutput.Dispose(); _process.StandardError.Dispose(); + return new ProcessResult(0, "", "", Detached: true); + } + await exit.ConfigureAwait(false); + } + catch (OperationCanceledException) when (linked.IsCancellationRequested) + { + cancelled = cancellation.IsCancellationRequested || _stop.IsCancellationRequested; + timedOut = deadline.IsCancellationRequested && !cancelled; + try { _process.Kill(entireProcessTree: true); } + catch (InvalidOperationException) when (_process.HasExited) { } + await _process.WaitForExitAsync().ConfigureAwait(false); + } + finally + { + // A descendant may retain a redirected pipe after the parent exits. Bound that drain too. + try + { + if (_detached) _ = reads.ContinueWith(task => _ = task.Exception, TaskContinuationOptions.OnlyOnFaulted); + else await reads.WaitAsync(TimeSpan.FromSeconds(3)).ConfigureAwait(false); + } + catch (TimeoutException) + { + _process.StandardOutput.Dispose(); + _process.StandardError.Dispose(); + lock (_captureLock) _truncated = true; + } + } + lock (_captureLock) + return new ProcessResult(_process.ExitCode, _stdout.ToString(), _stderr.ToString(), timedOut, cancelled, _truncated); + } + + public async Task StopAsync(CancellationToken cancellationToken = default) + { + if (!Completion.IsCompleted) _stop.Cancel(); + await Completion.WaitAsync(cancellationToken).ConfigureAwait(false); + } + + public async ValueTask DisposeAsync() + { + if (Interlocked.Exchange(ref _disposed, 1) != 0) return; + try { if (!_detached) await StopAsync().ConfigureAwait(false); } + finally { CloseInput(); _process.Dispose(); _stop.Dispose(); } + } + + public async ValueTask DetachAsync() + { + _detach.TrySetResult(); + await Completion.ConfigureAwait(false); + await DisposeAsync().ConfigureAwait(false); + } + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/Windows/LegacyFieldDecryptor.cs b/src/SHOU.Launcher.Desktop/Platform/Windows/LegacyFieldDecryptor.cs new file mode 100644 index 00000000..267ae438 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/Windows/LegacyFieldDecryptor.cs @@ -0,0 +1,205 @@ +using System.Buffers.Binary; +using System.Numerics; +using System.Runtime.InteropServices; +using System.Security.Cryptography; +using System.Text; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.Platform.Windows; + +/// Read compatibility with PCL.Core/Utils/Secret/EncryptHelper and its original encryption providers. +public static class LegacyFieldDecryptor +{ + private const uint Magic = 0x454e4321; // ENC!; deliberately different from the new credential store's SHOU header. + private const string DefaultRawCode = "B09675A9351CBD1FD568056781FE3966DD936CC9B94E51AB5CF67EEB7E74C075"; + private static readonly UTF8Encoding StrictUtf8 = new(false, true); + + public static bool UsesUserKey(string encoded) => HasHeader(DecodeBase64(encoded)); + + /// v0 stream cipher and historical CBC have no authentication tag. Their integrity cannot be established. + public static bool HasAuthenticationTag(string encoded) + { + var bytes = DecodeBase64(encoded); + if (!HasHeader(bytes)) return false; + var envelope = Envelope(bytes); + return envelope.Version is 1 or 2; + } + + public static string Decrypt(string? encoded, ReadOnlySpan userKey = default, string? historicalPassword = null) + { + if (string.IsNullOrEmpty(encoded)) return ""; + byte[]? plaintext = null; + try + { + var bytes = DecodeBase64(encoded); + if (HasHeader(bytes)) + { + if (userKey.Length != 32) throw new CryptographicException("Legacy field requires a 32-byte user key."); + var envelope = Envelope(bytes); + plaintext = envelope.Version switch + { + 0 => DecryptSoftwareChaCha(envelope.Payload, userKey), + 1 => DecryptChaChaPoly1305(envelope.Payload, userKey), + 2 => DecryptAesGcm(envelope.Payload, userKey), + _ => throw new CryptographicException("Unsupported legacy field version.") + }; + } + else + { + if (historicalPassword is null) throw new CryptographicException("Historical AES password is required."); + plaintext = DecryptHistoricalCbc(bytes, historicalPassword); + } + return StrictUtf8.GetString(plaintext); + } + catch (CredentialStoreException) { throw; } + catch (PlatformNotSupportedException ex) + { throw new CredentialStoreException(CredentialFailure.Unavailable, "本机不支持读取该历史加密算法;原字段保留。", ex); } + catch (Exception ex) when (ex is CryptographicException or ArgumentException or FormatException) + { throw new CredentialStoreException(CredentialFailure.Corrupt, "旧凭据字段无法解密;不会按明文返回或覆盖原记录。", ex); } + finally { if (plaintext is not null) CryptographicOperations.ZeroMemory(plaintext); } + } + + public static string HistoricalPasswordFromCpuId(string? cpuId) + { + var rawCode = cpuId is null ? DefaultRawCode : Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(cpuId))); + return Convert.ToHexString(SHA512.HashData(Encoding.UTF8.GetBytes(rawCode))).Substring(4, 32); + } + + internal static (uint Version, byte[] Payload) Envelope(ReadOnlySpan bytes) + { + if (bytes.Length < 12 || !HasHeader(bytes)) throw Corrupt("旧 ENC! 包装头损坏。"); + var count = BinaryPrimitives.ReadInt32BigEndian(bytes[8..]); + if (count < 0 || count > 1048576 || count != bytes.Length - 12) throw Corrupt("旧 ENC! 包装长度无效。"); + return (BinaryPrimitives.ReadUInt32BigEndian(bytes[4..]), bytes[12..].ToArray()); + } + private static bool HasHeader(ReadOnlySpan bytes) => bytes.Length >= 4 && BinaryPrimitives.ReadUInt32BigEndian(bytes) == Magic; + private static byte[] DecodeBase64(string encoded) + { + try + { + if (encoded.Length > 1500000) throw new FormatException("Encoded field exceeds the read budget."); + var bytes = Convert.FromBase64String(encoded); + if (bytes.Length >= 4 && BinaryPrimitives.ReadUInt32BigEndian(bytes) == 0x53484f55) + throw Corrupt("新 SHOU 凭据记录不是旧 ENC! 包装;不能按旧字段读取。"); + return bytes; + } + catch (FormatException ex) { throw new CredentialStoreException(CredentialFailure.Corrupt, "旧凭据不是有效的受支持编码;原字段保留。", ex); } + } + private static CredentialStoreException Corrupt(string message) => new(CredentialFailure.Corrupt, message); + + private static byte[] DecryptAesGcm(ReadOnlySpan data, ReadOnlySpan key) + { + if (data.Length < 28) throw new CryptographicException("Invalid AES-GCM field length."); + var plaintext = new byte[data.Length - 28]; + try + { + using var aes = new AesGcm(key, 16); + aes.Decrypt(data[..12], data[28..], data.Slice(12, 16), plaintext); + return plaintext; + } + catch { CryptographicOperations.ZeroMemory(plaintext); throw; } + } + + private static byte[] DecryptChaChaPoly1305(ReadOnlySpan data, ReadOnlySpan key) + { + if (data.Length < 44) throw new CryptographicException("Invalid ChaCha20-Poly1305 field length."); + Span derived = stackalloc byte[32]; + HKDF.DeriveKey(HashAlgorithmName.SHA256, key, derived, data[..16], "PCL.Core.Utils.Encryption.ChaCha20"u8); + var plaintext = new byte[data.Length - 44]; + try + { + if (ChaCha20Poly1305.IsSupported) + { + using var chacha = new ChaCha20Poly1305(derived); + chacha.Decrypt(data.Slice(16, 12), data[44..], data.Slice(28, 16), plaintext); + } + else + { + // Windows 10 lacks the OS primitive. Retain authenticated read compatibility + // through the maintained managed provider; never downgrade to the v0 cipher. + var cipher = new Org.BouncyCastle.Crypto.Modes.ChaCha20Poly1305(); + cipher.Init(false, new Org.BouncyCastle.Crypto.Parameters.AeadParameters( + new Org.BouncyCastle.Crypto.Parameters.KeyParameter(derived), 128, data.Slice(16, 12).ToArray())); + var authenticated = new byte[data.Length - 28]; + data[44..].CopyTo(authenticated); data.Slice(28, 16).CopyTo(authenticated.AsSpan(data.Length - 44)); + try + { + var count = cipher.ProcessBytes(authenticated, 0, authenticated.Length, plaintext, 0); + count += cipher.DoFinal(plaintext, count); + if (count != plaintext.Length) throw new CryptographicException("Invalid authenticated plaintext length."); + } + catch (Org.BouncyCastle.Crypto.InvalidCipherTextException ex) + { throw new CryptographicException("Legacy field authentication failed.", ex); } + finally { CryptographicOperations.ZeroMemory(authenticated); cipher.Reset(); } + } + return plaintext; + } + catch { CryptographicOperations.ZeroMemory(plaintext); throw; } + finally { CryptographicOperations.ZeroMemory(derived); } + } + + private static byte[] DecryptHistoricalCbc(ReadOnlySpan data, string password) + { + if (data.Length < 64 || (data.Length - 48) % 16 != 0) throw new CryptographicException("Invalid historical CBC length."); + var passwordBytes = Encoding.UTF8.GetBytes(password); + var derived = Rfc2898DeriveBytes.Pbkdf2(passwordBytes, data[..32], 1000, HashAlgorithmName.SHA1, 32); + try + { + using var aes = Aes.Create(); + aes.Key = derived; + return aes.DecryptCbc(data[48..], data.Slice(32, 16), PaddingMode.PKCS7); + } + finally { CryptographicOperations.ZeroMemory(passwordBytes); CryptographicOperations.ZeroMemory(derived); } + } + + // Original v0 is ChaCha20 with a 96-bit nonce and counter starting at zero, without Poly1305. + // This reader retains that precise format; it never writes new v0 ciphertext. + private static byte[] DecryptSoftwareChaCha(ReadOnlySpan data, ReadOnlySpan key) + { + if (data.Length < 12) throw new CryptographicException("Invalid software ChaCha20 field length."); + var nonce = data[..12]; var ciphertext = data[12..]; + var plaintext = new byte[ciphertext.Length]; + Span state = stackalloc uint[16]; + Span block = stackalloc uint[16]; + state[0] = 0x61707865; state[1] = 0x3320646e; state[2] = 0x79622d32; state[3] = 0x6b206574; + for (var i = 0; i < 8; i++) state[4 + i] = BinaryPrimitives.ReadUInt32LittleEndian(key.Slice(i * 4, 4)); + state[12] = 0; + state[13] = BinaryPrimitives.ReadUInt32LittleEndian(nonce); + state[14] = BinaryPrimitives.ReadUInt32LittleEndian(nonce[4..]); + state[15] = BinaryPrimitives.ReadUInt32LittleEndian(nonce[8..]); + Span stream = stackalloc byte[64]; + try + { + for (var offset = 0; offset < ciphertext.Length; offset += 64) + { + state.CopyTo(block); + for (var round = 0; round < 10; round++) + { + Quarter(block, 0, 4, 8, 12); Quarter(block, 1, 5, 9, 13); Quarter(block, 2, 6, 10, 14); Quarter(block, 3, 7, 11, 15); + Quarter(block, 0, 5, 10, 15); Quarter(block, 1, 6, 11, 12); Quarter(block, 2, 7, 8, 13); Quarter(block, 3, 4, 9, 14); + } + for (var i = 0; i < 16; i++) BinaryPrimitives.WriteUInt32LittleEndian(stream.Slice(i * 4, 4), unchecked(block[i] + state[i])); + state[12]++; + for (var i = 0; i < Math.Min(64, ciphertext.Length - offset); i++) plaintext[offset + i] = (byte)(ciphertext[offset + i] ^ stream[i]); + } + return plaintext; + } + finally + { + CryptographicOperations.ZeroMemory(MemoryMarshal.AsBytes(state)); + CryptographicOperations.ZeroMemory(MemoryMarshal.AsBytes(block)); + CryptographicOperations.ZeroMemory(stream); + } + } + + private static void Quarter(Span block, int a, int b, int c, int d) + { + unchecked + { + block[a] += block[b]; block[d] = BitOperations.RotateLeft(block[d] ^ block[a], 16); + block[c] += block[d]; block[b] = BitOperations.RotateLeft(block[b] ^ block[c], 12); + block[a] += block[b]; block[d] = BitOperations.RotateLeft(block[d] ^ block[a], 8); + block[c] += block[d]; block[b] = BitOperations.RotateLeft(block[b] ^ block[c], 7); + } + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsDpapiCredentialStore.cs b/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsDpapiCredentialStore.cs new file mode 100644 index 00000000..596002a3 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsDpapiCredentialStore.cs @@ -0,0 +1,117 @@ +using System.Buffers.Binary; +using System.Security.Cryptography; +using System.Text; +using System.Runtime.Versioning; +using PlainToolkit.CngProtectedData; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.Platform.Windows; + +/// New credential records only. Legacy UserKey.bin and account files are never replaced or migrated here. +[SupportedOSPlatform("windows")] +public sealed class WindowsDpapiCredentialStore : ICredentialStore +{ + private static readonly byte[] Entropy = "PCL CE Encryption Key"u8.ToArray(); + private readonly string _directory; + private readonly string _sharedRoot; + private readonly SemaphoreSlim _gate = new(1, 1); + + public WindowsDpapiCredentialStore(IAppPaths paths) + { + if (!OperatingSystem.IsWindows()) throw new PlatformNotSupportedException("DPAPI requires Windows."); + _sharedRoot = paths.SharedDataDirectory; + _directory = Path.Combine(_sharedRoot, "credentials-v1"); + } + + public async Task ReadAsync(string key, CancellationToken cancellationToken = default) + { + await _gate.WaitAsync(cancellationToken); + try + { + byte[] bytes; + try { bytes = await File.ReadAllBytesAsync(Location(key), cancellationToken); } + catch (FileNotFoundException) { return null; } + catch (DirectoryNotFoundException) { return null; } + if (bytes.Length < 12 || BinaryPrimitives.ReadUInt32BigEndian(bytes) != 0x53484f55 + || BinaryPrimitives.ReadInt32BigEndian(bytes.AsSpan(8)) != bytes.Length - 12) + throw new CredentialStoreException(CredentialFailure.Corrupt, "凭据记录格式损坏;保留原文件。"); + var version = BinaryPrimitives.ReadUInt32BigEndian(bytes.AsSpan(4)); + try + { + return version switch + { + 1 => ProtectedData.Unprotect(bytes[12..], Entropy, System.Security.Cryptography.DataProtectionScope.CurrentUser), + 2 => CngProtectedData.Unprotect(bytes[12..], Entropy, PlainToolkit.CngProtectedData.DataProtectionScope.CurrentUser), + _ => throw new CredentialStoreException(CredentialFailure.Corrupt, "不支持的凭据保护版本;保留原文件。") + }; + } + catch (CryptographicException ex) { throw new CredentialStoreException(CredentialFailure.Corrupt, "DPAPI 无法解密原凭据;不会替换密钥。", ex); } + catch (Exception ex) when (ex is System.ComponentModel.Win32Exception or PlatformNotSupportedException) + { throw new CredentialStoreException(CredentialFailure.Unavailable, "本机 DPAPI 暂不可用;原凭据保留。", ex); } + } + catch (UnauthorizedAccessException ex) { throw new CredentialStoreException(CredentialFailure.Denied, "没有读取凭据的权限。", ex); } + catch (IOException ex) { throw new CredentialStoreException(CredentialFailure.IOFailure, "凭据读取失败;保留原文件。", ex); } + finally { _gate.Release(); } + } + + public async Task WriteAsync(string key, ReadOnlyMemory value, CancellationToken cancellationToken = default) + { + if (value.Length > 1048576) throw new ArgumentOutOfRangeException(nameof(value)); + await _gate.WaitAsync(cancellationToken); + byte[] raw = value.ToArray(); + string? temporary = null; + try + { + var target = Location(key); + byte[] encrypted; + try + { + encrypted = CngProtectedData.Protect(raw, Entropy, PlainToolkit.CngProtectedData.DataProtectionScope.CurrentUser); + var roundTrip = CngProtectedData.Unprotect(encrypted, Entropy, PlainToolkit.CngProtectedData.DataProtectionScope.CurrentUser); + try + { + if (!CryptographicOperations.FixedTimeEquals(raw, roundTrip)) + throw new CredentialStoreException(CredentialFailure.Unavailable, "DPAPI 写入自检失败;不会保存不可恢复的凭据。"); + } + finally { CryptographicOperations.ZeroMemory(roundTrip); } + } + catch (Exception ex) when (ex is CryptographicException or System.ComponentModel.Win32Exception or PlatformNotSupportedException) + { throw new CredentialStoreException(CredentialFailure.Unavailable, "本机 DPAPI 不可用;不会降级保存。", ex); } + var bytes = new byte[12 + encrypted.Length]; + BinaryPrimitives.WriteUInt32BigEndian(bytes, 0x53484f55); + BinaryPrimitives.WriteUInt32BigEndian(bytes.AsSpan(4), 2); + BinaryPrimitives.WriteInt32BigEndian(bytes.AsSpan(8), encrypted.Length); + encrypted.CopyTo(bytes, 12); + Directory.CreateDirectory(_directory); + temporary = target + ".tmp-" + Guid.NewGuid().ToString("N"); + await using (var stream = new FileStream(temporary, FileMode.CreateNew, FileAccess.Write, FileShare.None, 4096, true)) + { + await stream.WriteAsync(bytes, cancellationToken); + stream.Flush(true); + } + cancellationToken.ThrowIfCancellationRequested(); + File.Move(temporary, target, true); + } + catch (UnauthorizedAccessException ex) { throw new CredentialStoreException(CredentialFailure.Denied, "没有保存凭据的权限。", ex); } + catch (IOException ex) { throw new CredentialStoreException(CredentialFailure.IOFailure, "凭据未保存成功;原记录保留。", ex); } + finally { CryptographicOperations.ZeroMemory(raw); _gate.Release(); } + } + + public async Task DeleteAsync(string key, CancellationToken cancellationToken = default) + { + await _gate.WaitAsync(cancellationToken); + try { cancellationToken.ThrowIfCancellationRequested(); File.Delete(Location(key)); } + catch (UnauthorizedAccessException ex) { throw new CredentialStoreException(CredentialFailure.Denied, "没有删除凭据的权限。", ex); } + catch (IOException ex) { throw new CredentialStoreException(CredentialFailure.IOFailure, "凭据删除失败。", ex); } + finally { _gate.Release(); } + } + + private string Location(string key) + { + if (string.IsNullOrWhiteSpace(key) || key.Length > 1024 || key.Contains('\0')) throw new ArgumentException("Invalid credential identifier."); + AppPaths.EnsureContained(_sharedRoot, _directory); + var path = Path.Combine(_directory, Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(key))).ToLowerInvariant() + ".bin"); + if (new FileInfo(path).LinkTarget is not null) throw new IOException("Credential records cannot be symbolic links."); + return path; + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsJavaCandidates.cs b/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsJavaCandidates.cs new file mode 100644 index 00000000..b3e58e68 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsJavaCandidates.cs @@ -0,0 +1,49 @@ +using Microsoft.Win32; +using System.Runtime.Versioning; +using System.Security; + +namespace SHOU.Launcher.Desktop.Platform.Windows; + +[SupportedOSPlatform("windows")] +internal static class WindowsJavaCandidates +{ + private static readonly string[] Roots = + [ + @"SOFTWARE\JavaSoft\Java Development Kit", @"SOFTWARE\JavaSoft\Java Runtime Environment", + @"SOFTWARE\JavaSoft\JDK", @"SOFTWARE\JavaSoft\JRE", @"SOFTWARE\Azul Systems\Zulu", + @"SOFTWARE\BellSoft\Liberica", @"SOFTWARE\Eclipse Adoptium", @"SOFTWARE\AdoptOpenJDK", + @"SOFTWARE\Microsoft\JDK", @"SOFTWARE\Amazon\Corretto" + ]; + + public static IReadOnlyList RegistryHomes() + { + var homes = new HashSet(StringComparer.OrdinalIgnoreCase); + foreach (var hive in new[] { RegistryHive.LocalMachine, RegistryHive.CurrentUser }) + foreach (var view in new[] { RegistryView.Registry64, RegistryView.Registry32 }) + { + try + { + using var baseKey = RegistryKey.OpenBaseKey(hive, view); + foreach (var root in Roots) + { + using var key = baseKey.OpenSubKey(root, writable: false); + if (key is not null) Visit(key, 0); + } + } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or SecurityException) { } + } + return homes.Order(StringComparer.OrdinalIgnoreCase).ToArray(); + + void Visit(RegistryKey key, int depth) + { + foreach (var name in new[] { "JavaHome", "InstallationPath", "Path", "Home" }) + if (key.GetValue(name) is string path && Path.IsPathFullyQualified(path)) homes.Add(path); + if (depth >= 4) return; + foreach (var name in key.GetSubKeyNames().Take(256)) + { + using var child = key.OpenSubKey(name, writable: false); + if (child is not null) Visit(child, depth + 1); + } + } + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsLegacyCredentialReader.cs b/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsLegacyCredentialReader.cs new file mode 100644 index 00000000..6de53965 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsLegacyCredentialReader.cs @@ -0,0 +1,121 @@ +using System.Runtime.InteropServices; +using System.Security.Cryptography; +using PlainToolkit.CngProtectedData; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.Platform.Windows; + +/// Reads original UserKey.bin/fields without creation, migration, quarantine, persistence or key rotation. +public sealed class WindowsLegacyCredentialReader +{ + private static readonly byte[] Entropy = "PCL CE Encryption Key"u8.ToArray(); + private readonly Func _unprotect; + private readonly Func _cpuId; + public string UserKeyPath { get; } + + public WindowsLegacyCredentialReader(string userKeyPath, Func? unprotect = null, + Func? cpuId = null) + { + if (!Path.IsPathFullyQualified(userKeyPath)) throw new ArgumentException("The legacy key path must be absolute."); + UserKeyPath = Path.GetFullPath(userKeyPath); + _unprotect = unprotect ?? NativeUnprotect; + _cpuId = cpuId ?? NativeCpuId; + } + + /// Null means absent only. Returned key bytes belong to the caller and should be zeroed after use. + public async Task ReadUserKeyAsync(CancellationToken cancellationToken = default) + { + byte[] data; + try + { + await using var stream = new FileStream(UserKeyPath, FileMode.Open, FileAccess.Read, FileShare.Read, 4096, true); + if (stream.Length is < 12 or > 1048588) throw new CredentialStoreException(CredentialFailure.Corrupt, "旧 UserKey.bin 大小无效;原文件保留。"); + data = new byte[(int)stream.Length]; + await stream.ReadExactlyAsync(data, cancellationToken); + } + catch (FileNotFoundException) { return null; } + catch (DirectoryNotFoundException) { return null; } + catch (UnauthorizedAccessException ex) { throw new CredentialStoreException(CredentialFailure.Denied, "没有读取旧 UserKey.bin 的权限。", ex); } + catch (IOException ex) { throw new CredentialStoreException(CredentialFailure.IOFailure, "旧 UserKey.bin 暂不可读;不会轮换密钥或改名原文件。", ex); } + var envelope = LegacyFieldDecryptor.Envelope(data); + if (envelope.Version is not (1 or 2)) + throw new CredentialStoreException(CredentialFailure.Corrupt, "旧密钥包装版本未知;原 UserKey.bin 保留。"); + if (envelope.Payload.Length == 0) + throw new CredentialStoreException(CredentialFailure.Corrupt, "旧 DPAPI 密钥包装为空;原 UserKey.bin 保留。"); + try + { + cancellationToken.ThrowIfCancellationRequested(); + var key = _unprotect(envelope.Version, envelope.Payload); + if (key.Length == 32) return key; + CryptographicOperations.ZeroMemory(key); + throw new CredentialStoreException(CredentialFailure.Corrupt, "旧用户密钥长度无效;不会生成替代密钥。"); + } + catch (CredentialStoreException) { throw; } + catch (Exception ex) when (ex is PlatformNotSupportedException or DllNotFoundException or EntryPointNotFoundException) + { throw new CredentialStoreException(CredentialFailure.Unavailable, "当前环境不能解开 Windows DPAPI 旧密钥;原文件保留。", ex); } + catch (UnauthorizedAccessException ex) { throw new CredentialStoreException(CredentialFailure.Denied, "没有解开旧用户密钥的权限。", ex); } + catch (Exception ex) when (ex is CryptographicException or ArgumentException or System.ComponentModel.Win32Exception) + { throw new CredentialStoreException(CredentialFailure.Corrupt, "DPAPI 无法解开旧用户密钥;不会轮换、迁移或覆盖原文件。", ex); } + } + + /// Failure is terminal for this read. The importer must disable persistence rather than save an empty profile list. + public async Task DecryptFieldAsync(string? value, CancellationToken cancellationToken = default) + { + if (string.IsNullOrEmpty(value)) return ""; + cancellationToken.ThrowIfCancellationRequested(); + byte[]? key = null; + try + { + if (LegacyFieldDecryptor.UsesUserKey(value)) + { + key = await ReadUserKeyAsync(cancellationToken) + ?? throw new CredentialStoreException(CredentialFailure.Unavailable, "缺少旧 UserKey.bin;无法读取原加密字段,不能创建替代密钥。"); + return LegacyFieldDecryptor.Decrypt(value, key); + } + var password = await Task.Run(() => LegacyFieldDecryptor.HistoricalPasswordFromCpuId(_cpuId()), cancellationToken); + return LegacyFieldDecryptor.Decrypt(value, historicalPassword: password); + } + finally { if (key is not null) CryptographicOperations.ZeroMemory(key); } + } + + private static byte[] NativeUnprotect(uint version, byte[] data) + { + if (!OperatingSystem.IsWindows()) throw new PlatformNotSupportedException(); + return version switch + { + 1 => ProtectedData.Unprotect(data, Entropy, System.Security.Cryptography.DataProtectionScope.CurrentUser), + 2 => CngProtectedData.Unprotect(data, Entropy, PlainToolkit.CngProtectedData.DataProtectionScope.CurrentUser), + _ => throw new CryptographicException("Unsupported original UserKey.bin wrapper version.") + }; + } + + private static string? NativeCpuId() + { + if (!OperatingSystem.IsWindows()) throw new CredentialStoreException(CredentialFailure.Unavailable, "历史 CPU 派生凭据只能在原 Windows 环境读取。"); + object? locator = null, services = null, processors = null; + try + { + var type = Type.GetTypeFromProgID("WbemScripting.SWbemLocator", throwOnError: true)!; + locator = Activator.CreateInstance(type); + services = ((dynamic)locator!).ConnectServer(".", @"root\cimv2"); + processors = ((dynamic)services!).ExecQuery("SELECT ProcessorId FROM Win32_Processor"); + foreach (object processor in (dynamic)processors!) + { + try { return ((dynamic)processor).ProcessorId?.ToString(); } + finally { ReleaseCom(processor); } + } + return null; + } + catch (Exception ex) when (ex is COMException or UnauthorizedAccessException or System.Security.SecurityException + or System.Reflection.TargetInvocationException or Microsoft.CSharp.RuntimeBinder.RuntimeBinderException) + { + // Same historic default raw-code path as IdentifyOld; a wrong fallback still fails decryption, never writes. + return null; + } + finally { ReleaseCom(processors); ReleaseCom(services); ReleaseCom(locator); } + } + private static void ReleaseCom(object? value) + { + if (OperatingSystem.IsWindows() && value is not null && Marshal.IsComObject(value)) Marshal.ReleaseComObject(value); + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsLegacyDesktopDataReader.cs b/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsLegacyDesktopDataReader.cs new file mode 100644 index 00000000..cd9a4dda --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsLegacyDesktopDataReader.cs @@ -0,0 +1,146 @@ +using System.Security.Cryptography; +using System.Text; +using System.Text.Json.Nodes; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Authentication; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Desktop.Platform.Windows; + +/// Only the colocated launcher's public settings and the current user's PCLCE Profile are read. +public sealed class WindowsLegacyDesktopDataReader(string executableDirectory, string sharedDirectory, + Func>? decryptField = null) : ILegacyDesktopDataReader +{ + public async Task ReadAsync(CancellationToken cancellationToken = default) + { + var ct = cancellationToken; + var folders = new HashSet(StringComparer.OrdinalIgnoreCase); + var issues = new List(); var accounts = new List(); + var launchSettings = new Dictionary(StringComparer.Ordinal); + var runtimeKeys = new HashSet(["LaunchArgumentJavaSelect", "LaunchRamType", "LaunchRamCustom", "LaunchRamCustomInitial"], StringComparer.Ordinal); + string? selectedFolder = null, selectedVersion = null, selectedAccount = null; + var executable = Path.GetFullPath(executableDirectory); + void Add(string? path) + { + if (string.IsNullOrWhiteSpace(path)) return; + path = path.Replace("$", executable + Path.DirectorySeparatorChar, StringComparison.Ordinal); + if (!Path.IsPathFullyQualified(path)) path = Path.Combine(executable, path); + path = Path.TrimEndingDirectorySeparator(Path.GetFullPath(path)); + SafePath.RejectLinks(path); + if (Directory.Exists(Path.Combine(path, "versions"))) folders.Add(path); + } + try + { + Add(executable); Add(Path.Combine(executable, ".minecraft")); + // Match the old launcher's immediate-child discovery, never a whole-drive scan. + foreach (var child in Directory.EnumerateDirectories(executable).Take(1000)) + { + ct.ThrowIfCancellationRequested(); + try { Add(child); } catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { issues.Add("legacy_child_unreadable"); } + } + } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { issues.Add("legacy_folder_read:" + ex.GetType().Name); } + JsonObject? shared = null; + try + { + shared = await ReadJsonAsync(Path.Combine(sharedDirectory, "config.v1.json"), ct); + foreach (var key in runtimeKeys) + if (shared?[key] is JsonValue value && value.ToJsonString().Length <= 32768) + launchSettings[key] = value.TryGetValue(out var text) ? text ?? "" : value.ToJsonString(); + if (Text(shared, "LaunchFolders") is { } configured) + foreach (var part in configured.Split('|').Take(1000)) { var separator = part.IndexOf('>'); if (separator >= 0) Add(part[(separator + 1)..]); } + // Read only allowlisted public scalars; local runtime settings override the shared source. + var local = Path.Combine(executable, "PCL", "config.v1.yml"); + if (File.Exists(local)) + { + SafePath.RejectLinks(local); if (new FileInfo(local).Length > 2_000_000) throw new InvalidDataException(); + foreach (var line in await File.ReadAllLinesAsync(local, ct)) + { + var separator = line.IndexOf(':'); if (separator < 0) continue; + var key = line[..separator].Trim(); + if (key is not ("LaunchFolderSelect" or "LaunchInstanceSelect") && !runtimeKeys.Contains(key)) continue; + var value = Scalar(line[(separator + 1)..].Trim()); + if (key == "LaunchFolderSelect") selectedFolder = value; + if (key == "LaunchInstanceSelect") selectedVersion = value; + if (runtimeKeys.Contains(key)) launchSettings[key] = value; + } + } + // Older Setup.ini public keys remain read-only. Do not interpret login/cache fields. + var ini = Path.Combine(executable, "PCL", "Setup.ini"); + if (File.Exists(ini)) + { + SafePath.RejectLinks(ini); if (new FileInfo(ini).Length > 2_000_000) throw new InvalidDataException(); + foreach (var line in await File.ReadAllLinesAsync(ini, ct)) + { + var colon = line.IndexOf(':'); var equals = line.IndexOf('='); + var split = colon < 0 ? equals : equals < 0 ? colon : Math.Min(colon, equals); if (split < 0) continue; + var key = line[..split].Trim(); var value = line[(split + 1)..].Trim(); + if (key == "LaunchFolderSelect") selectedFolder ??= value; + if (key == "LaunchInstanceSelect") selectedVersion ??= value; + if (key == "LaunchFolders") foreach (var part in value.Split('|').Take(1000)) { var p = part.IndexOf('>'); if (p >= 0) Add(part[(p + 1)..]); } + if (runtimeKeys.Contains(key)) launchSettings.TryAdd(key, value); + } + } + Add(selectedFolder); + } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or System.Text.Json.JsonException or ArgumentException) { issues.Add("legacy_settings_read:" + ex.GetType().Name); } + if (Text(shared, "Profile") is { Length: > 0 } encoded) + { + try + { + var decrypt = decryptField ?? new WindowsLegacyCredentialReader(Path.Combine(sharedDirectory, "UserKey.bin")).DecryptFieldAsync; + var plaintext = await decrypt(encoded, ct); + if (plaintext.Length > 1_500_000) throw new InvalidDataException(); + var profile = JsonNode.Parse(plaintext) as JsonObject ?? throw new InvalidDataException(); + var rows = profile["profiles"] as JsonArray ?? throw new InvalidDataException(); + if (rows.Count > 128) throw new InvalidDataException(); + var selected = (int?)profile["lastUsed"] ?? -1; + for (var index = 0; index < rows.Count; index++) + { + ct.ThrowIfCancellationRequested(); + try + { + var row = rows[index] as JsonObject ?? throw new InvalidDataException(); + var name = Required(row, "username", 64); var uuid = Guid.Parse(Required(row, "uuid", 36)).ToString("N"); + var type = Required(row, "profileType", 32); var provider = Text(row, "provider"); + var kind = type switch { "Offline" => AccountKind.Offline, "Microsoft" when provider == "microsoft" => AccountKind.Microsoft, + "Authlib" => AccountKind.Yggdrasil, _ => throw new InvalidDataException() }; + var server = kind == AccountKind.Yggdrasil ? AuthenticationClient.NormalizeYggdrasilRoot(new Uri(Required(row, "server", 2048))) : null; + var id = kind switch { AccountKind.Microsoft => "microsoft:" + uuid, AccountKind.Yggdrasil => "yggdrasil:" + Convert.ToHexStringLower(SHA256.HashData(Encoding.UTF8.GetBytes(server!)))[..12] + ":" + uuid, _ => "offline:" + uuid }; + var access = kind == AccountKind.Offline ? "" : Text(row, "accessToken") ?? ""; + var refresh = kind == AccountKind.Microsoft ? Text(row, "refreshToken") : null; + var client = kind == AccountKind.Yggdrasil ? Text(row, "clientToken") : null; + if (access.Length > 32768 || refresh?.Length > 32768 || client?.Length > 32768) throw new InvalidDataException(); + var recoverable = kind == AccountKind.Offline || kind == AccountKind.Microsoft && !string.IsNullOrWhiteSpace(refresh) + || kind == AccountKind.Yggdrasil && !string.IsNullOrWhiteSpace(access) && !string.IsNullOrWhiteSpace(client); + var account = new AccountProfile(id, kind, name, uuid, server, Status: recoverable ? "旧凭据已接入 · 使用时验证" : "旧凭据不可恢复 · 请重新登录"); + if (accounts.Any(a => a.Profile.Id == id)) continue; + accounts.Add(new(account, recoverable ? access : "", recoverable ? refresh : null, recoverable ? client : null)); + if (index == selected) selectedAccount = id; + } + catch (Exception ex) when (ex is InvalidDataException or ArgumentException or InvalidOperationException or FormatException or AuthenticationException) { issues.Add("legacy_profile_unsupported"); } + } + } + catch (CredentialStoreException ex) { issues.Add("legacy_credentials:" + ex.Failure); } + catch (Exception ex) when (ex is IOException or System.Text.Json.JsonException or InvalidOperationException or ArgumentException) { issues.Add("legacy_profile_read:" + ex.GetType().Name); } + } + string? selectedDirectory = null; + if (!string.IsNullOrWhiteSpace(selectedFolder) && !string.IsNullOrWhiteSpace(selectedVersion) + && selectedVersion.IndexOfAny(['/', '\\', ':']) < 0 && selectedVersion is not ("." or "..")) + { + var root = selectedFolder.Replace("$", executable + Path.DirectorySeparatorChar, StringComparison.Ordinal); + if (Path.IsPathFullyQualified(root)) selectedDirectory = Path.GetFullPath(Path.Combine(root, "versions", selectedVersion)); + } + return new(folders.ToArray(), accounts, selectedAccount, selectedDirectory, issues, launchSettings, executable); + } + private static string Scalar(string value) => value.StartsWith('"') ? System.Text.Json.JsonSerializer.Deserialize(value) ?? "" + : value.StartsWith('\'') && value.EndsWith('\'') ? value[1..^1].Replace("''", "'") : value; + private static string? Text(JsonObject? row, string key) => row?[key] is JsonValue v && v.TryGetValue(out var text) ? text : null; + private static string Required(JsonObject row, string key, int limit) => Text(row, key) is { Length: > 0 } text && text.Length <= limit && !text.Any(char.IsControl) ? text : throw new InvalidDataException(); + private static async Task ReadJsonAsync(string file, CancellationToken ct) + { + if (!File.Exists(file)) return null; + SafePath.RejectLinks(file); if (new FileInfo(file).Length > 2_000_000) throw new InvalidDataException(); + var text = await File.ReadAllTextAsync(file, ct); return JsonNode.Parse(text.TrimStart('\ufeff')) as JsonObject ?? throw new InvalidDataException(); + } +} diff --git a/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsLegacyMicrosoftAccountReader.cs b/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsLegacyMicrosoftAccountReader.cs new file mode 100644 index 00000000..802ee217 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsLegacyMicrosoftAccountReader.cs @@ -0,0 +1,85 @@ +using System.Security.Cryptography; +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.Platform.Windows; + +/// Explicit, read-only compatibility with the current user's old Profile container. +public sealed class WindowsLegacyMicrosoftAccountReader : ILegacyMicrosoftAccountReader +{ + private readonly string configPath; + private readonly Func> decrypt; + + public WindowsLegacyMicrosoftAccountReader(string directory) + : this(directory, new WindowsLegacyCredentialReader(Path.Combine(directory, "UserKey.bin")).DecryptFieldAsync) { } + + public WindowsLegacyMicrosoftAccountReader(string directory, Func> decrypt) + { + if (!Path.IsPathFullyQualified(directory)) throw new ArgumentException("旧账户目录必须是绝对路径。"); + configPath = Path.Combine(directory, "config.v1.json"); + this.decrypt = decrypt; + } + + public async Task> ReadAsync(CancellationToken cancellationToken = default) + { + try + { + byte[] data; + try + { + await using var stream = new FileStream(configPath, FileMode.Open, FileAccess.Read, FileShare.Read, 4096, true); + if (stream.Length is <= 0 or > 2_000_000) throw Invalid(); + data = new byte[(int)stream.Length]; + await stream.ReadExactlyAsync(data, cancellationToken).ConfigureAwait(false); + } + catch (FileNotFoundException) { return []; } + catch (DirectoryNotFoundException) { return []; } + try + { + ReadOnlyMemory json = data; + if (data.AsSpan().StartsWith(new byte[] { 0xef, 0xbb, 0xbf })) json = json[3..]; + using var config = JsonDocument.Parse(json, new() { MaxDepth = 32 }); + if (!config.RootElement.TryGetProperty("Profile", out var field)) return []; + if (field.ValueKind != JsonValueKind.String || field.GetString() is not { Length: > 0 and <= 1_500_000 } encoded) throw Invalid(); + var plaintext = await decrypt(encoded, cancellationToken).ConfigureAwait(false); + if (plaintext.Length > 1_500_000) throw Invalid(); + using var document = JsonDocument.Parse(plaintext, new() { MaxDepth = 32 }); + if (!document.RootElement.TryGetProperty("profiles", out var profiles) || profiles.ValueKind != JsonValueKind.Array || profiles.GetArrayLength() > 128) throw Invalid(); + var result = new List(); + foreach (var entry in profiles.EnumerateArray()) + { + cancellationToken.ThrowIfCancellationRequested(); + if (entry.ValueKind != JsonValueKind.Object) throw Invalid(); + if (!entry.TryGetProperty("profileType", out var type) || type.ValueKind != JsonValueKind.String || type.GetString() != "Microsoft") continue; + // Never interpret a third-party skin provider's token as a Microsoft token. + if (!entry.TryGetProperty("provider", out var provider) || provider.ValueKind != JsonValueKind.String || provider.GetString() != "microsoft") continue; + var id = String(entry, "profileId", 128); + var name = String(entry, "username", 64); + var uuid = String(entry, "uuid", 36); + var refresh = String(entry, "refreshToken", 32_768); + if (!Guid.TryParse(uuid, out var parsed) || parsed == Guid.Empty) throw Invalid(); + if (string.IsNullOrWhiteSpace(refresh)) continue; // Standard OAuth remains available. + var normalized = parsed.ToString("N"); + var sourceId = Convert.ToHexString(SHA256.HashData(Encoding.UTF8.GetBytes(id + "\0" + normalized))).ToLowerInvariant(); + if (result.Any(item => item.SourceId == sourceId)) throw Invalid(); + result.Add(new(sourceId, name, normalized, refresh)); + } + return result; + } + finally { CryptographicOperations.ZeroMemory(data); } + } + catch (CredentialStoreException) { throw; } + catch (UnauthorizedAccessException) { throw new CredentialStoreException(CredentialFailure.Denied, "无法读取旧账户;原文件保留,可使用微软官网授权登录。"); } + catch (IOException) { throw new CredentialStoreException(CredentialFailure.IOFailure, "旧账户暂不可读;原文件保留,请重试或使用微软官网授权。"); } + catch (Exception ex) when (ex is JsonException or InvalidOperationException or ArgumentException) + { throw Invalid(); } // Do not propagate parser text, paths or secret field contents. + } + + private static string String(JsonElement entry, string key, int limit) + { + if (!entry.TryGetProperty(key, out var value) || value.ValueKind != JsonValueKind.String || value.GetString() is not { } text || text.Length > limit || text.Any(char.IsControl)) throw Invalid(); + return text; + } + private static CredentialStoreException Invalid() => new(CredentialFailure.Corrupt, "旧账户格式无法安全识别;原文件保留,请使用微软官网授权。"); +} diff --git a/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsStartupPaths.cs b/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsStartupPaths.cs new file mode 100644 index 00000000..6d8ee115 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Platform/Windows/WindowsStartupPaths.cs @@ -0,0 +1,13 @@ +namespace SHOU.Launcher.Desktop.Platform.Windows; + +public static class WindowsStartupPaths +{ + /// Explicit --data-dir wins. Existing desktop state takes priority over first-run legacy discovery. + public static string? ResolveDataDirectory(string executableDirectory, string localDirectory) + { + var production = Path.Combine(localDirectory, "PCLCE", "shou.desktop.v1.json"); + if (File.Exists(production)) return null; + var preview = Path.Combine(localDirectory, "SHOU-Launcher-Preview"); + return File.Exists(Path.Combine(preview, "local", "shou.desktop.v1.json")) ? preview : null; + } +} diff --git a/src/SHOU.Launcher.Desktop/Program.cs b/src/SHOU.Launcher.Desktop/Program.cs new file mode 100644 index 00000000..7f78578a --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Program.cs @@ -0,0 +1,27 @@ +using Avalonia; + +namespace SHOU.Launcher.Desktop; + +internal static class Program +{ + [STAThread] + public static int Main(string[] args) + { + return Bootstrap.Run(args); + } + public static AppBuilder BuildAvaloniaApp() + { + var builder = AppBuilder.Configure().UsePlatformDetect().LogToTrace(); + var behavior = Bootstrap.Launcher?.Snapshot.Settings.Launcher ?? new SHOU.Launcher.Core.Abstractions.LauncherBehavior(); + if (OperatingSystem.IsWindows() && behavior.DisableHardwareAcceleration) + builder.With(new Win32PlatformOptions { RenderingMode = [Win32RenderingMode.Software] }); + // Keep popup menus and selectors in the same accessible AppKit window as their owner. + if (OperatingSystem.IsMacOS()) + { + var options = new AvaloniaNativePlatformOptions { OverlayPopups = true }; + if (behavior.DisableHardwareAcceleration) options.RenderingMode = [AvaloniaNativeRenderingMode.Software]; + builder.With(options); + } + return builder; + } +} diff --git a/src/SHOU.Launcher.Desktop/SHOU.Launcher.Desktop.csproj b/src/SHOU.Launcher.Desktop/SHOU.Launcher.Desktop.csproj new file mode 100644 index 00000000..3e49c767 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/SHOU.Launcher.Desktop.csproj @@ -0,0 +1,39 @@ + + + WinExenet10.0 + SHOU.Launcher.Desktop + osx-arm64;win-x64;win-arm64;linux-x64 + false + falsefalsefalse + ../../Plain Craft Launcher 2/Images/Conduit/club.ico + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/SavedInstanceLaunch.cs b/src/SHOU.Launcher.Desktop/SavedInstanceLaunch.cs new file mode 100644 index 00000000..eb6521f3 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/SavedInstanceLaunch.cs @@ -0,0 +1,15 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Desktop; + +public static class SavedInstanceLaunch +{ + public static Task RunAsync(ILauncherService launcher, string instanceId, CancellationToken ct) + { + SafePath.Identifier(instanceId); + if (!launcher.Snapshot.Instances.Any(i => i.Id == instanceId)) throw new InvalidOperationException("脚本对应的实例不存在,请在启动器中重新导出。"); + if (!launcher.Snapshot.Accounts.Any(a => a.Id == launcher.Snapshot.SelectedAccountId)) throw new InvalidOperationException("请先在启动器中登录并选择账户,再运行脚本。"); + return launcher.LaunchAsync(instanceId, cancellationToken: ct); + } +} diff --git a/src/SHOU.Launcher.Desktop/Themes/ClubIcons.cs b/src/SHOU.Launcher.Desktop/Themes/ClubIcons.cs new file mode 100644 index 00000000..fc626cdc --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Themes/ClubIcons.cs @@ -0,0 +1,30 @@ +namespace SHOU.Launcher.Desktop.Themes; + +/// Semantic names from the shared, licensed Lucide 24-unit SVG set. +public static class ClubIcons +{ + public const string Cube = "box", Puzzle = "puzzle", Document = "file-archive", Layers = "layers", + Sparkles = "sparkles", Globe = "globe", Heart = "heart", Cloth = "scroll", Fox = "cat", + Link = "link-2", Toolbox = "tool-case", Chat = "message-circle", Download = "download", + Folder = "folder-open", Settings = "settings"; + public static string ForDownloadCategory(string key) => key switch + { + "minecraft" => "boxes", "installer-minecraft" => "package", "mod" => Puzzle, + "modpack" => "package", "datapack" => Document, "resourcepack" => Layers, + "shader" => Sparkles, "world" => Globe, "favorites" => Heart, "tasks" => Download, + "installer-fabric" or "installer-legacyfabric" => Cloth, + "installer-quilt" => Layers, + "installer-neoforge" or "installer-labymod" => Fox, "installer-optifine" => "gauge", + "installer-forge" => "anvil", "installer-cleanroom" => "flask-conical", + "installer-liteloader" => "egg", _ => Cube + }; + public static string ForInstanceIcon(string? key) => key switch + { "fabric" => Cloth, "quilt" => Layers, "forge" => "anvil", "neoforge" => Fox, _ => Cube }; + public static string ForInstanceSection(string key) => key switch + { + "overview" => "layout-dashboard", "settings" => Settings, "modify" => "wrench", + "export" => "package", "worlds" => Globe, "selection" => Folder, "screenshots" => "image", + "mods" => Puzzle, "resourcepacks" => Layers, "shaders" => Sparkles, + "schematics" => "file-box", "servers" => "server", "relations" => "git-pull-request-arrow", _ => Cube + }; +} diff --git a/src/SHOU.Launcher.Desktop/Themes/ClubPalette.axaml b/src/SHOU.Launcher.Desktop/Themes/ClubPalette.axaml new file mode 100644 index 00000000..38387529 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Themes/ClubPalette.axaml @@ -0,0 +1,47 @@ + + PingFang SC + + + #FFF5FB + #FCF6FB + #FFF9FC + #5C3A54 + #927B8B + #AC2F6C + #EADDE6 + #EF98C6 + #B14F91 + #FFFFFF + #EDF8FE + #26799F + #26799F + #FBE8F4 + #FFF1E5 + #9B3C32 + + + + + + #261F2A + #302634 + #2B222F + #F0DDEB + #BEA8B9 + #EF9CC8 + #49384A + #956082 + #74365F + #FFFFFF + #233E4D + #8ED6F4 + #26799F + #493047 + #4C302E + #FFD0BE + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Themes/ClubStyles.axaml b/src/SHOU.Launcher.Desktop/Themes/ClubStyles.axaml new file mode 100644 index 00000000..1fa68c28 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Themes/ClubStyles.axaml @@ -0,0 +1,182 @@ + + + 1318 + 2814 + 10,37,3 + 44 + 2828 + 2412,0,8,0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Themes/LauncherAccentPalette.cs b/src/SHOU.Launcher.Desktop/Themes/LauncherAccentPalette.cs new file mode 100644 index 00000000..ac474d6d --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Themes/LauncherAccentPalette.cs @@ -0,0 +1,26 @@ +namespace SHOU.Launcher.Desktop.Themes; + +// Semantic Avalonia palettes. Classic names follow the WPF choices; legacy IDs remain readable. +internal sealed record LauncherAccentPalette(string Background, string Surface, string Sidebar, string Foreground, + string Muted, string Accent, string Title, string Border, string Selection, string SelectionForeground) +{ + internal static LauncherAccentPalette For(string choice, bool dark) => (choice, dark) switch + { + ("garnet", false) => new("#FDF9F3", "#FCF8F1", "#FEFAF4", "#55483F", "#928078", "#A45160", "#A95B6B", "#E6D9D0", "#FCE7EA", "#904855"), + ("garnet", true) => new("#241D20", "#33262A", "#2D2226", "#F4D9BE", "#C0A5A3", "#FFB2BC", "#59343D", "#534344", "#402B31", "#FFB2BC"), + ("aimisi", false) => new("#FFF7FB", "#FFFBFD", "#FCE5F0", "#302633", "#887580", "#99345F", "#C7538A", "#D9CBD4", "#EDF7FD", "#286F96"), + ("aimisi", true) => new("#211D29", "#302330", "#292B3A", "#FFE7F4", "#AE94A5", "#FFACD3", "#60354E", "#574452", "#402939", "#99DDF6"), + ("elegant", false) => new("#F4F5F7", "#FFFFFF", "#F1F3F5", "#22262B", "#747C86", "#745700", "#806000", "#CFD4DA", "#FAF4DE", "#745700"), + ("elegant", true) => new("#191D23", "#252A31", "#20242A", "#F6F7F8", "#9BA5B1", "#F4D16B", "#50482D", "#444B55", "#35332D", "#F4D16B"), + ("sky" or "blue", false) => new("#F2F9FD", "#FBFDFF", "#F5FAFE", "#29485D", "#6C879A", "#17658B", "#327A9A", "#D7E6EF", "#DFEFFA", "#17658B"), + ("sky" or "blue", true) => new("#182831", "#223640", "#1C2F39", "#DDEEF5", "#A3BECF", "#8FD2F1", "#274C69", "#3A5364", "#294A5D", "#8FD2F1"), + ("cat", false) => new("#F4F6FD", "#FBFCFF", "#F0F3FC", "#354365", "#7B85A2", "#4B69A5", "#5A77AC", "#DCE1ED", "#E8EDFC", "#4B69A5"), + ("cat", true) => new("#202532", "#2A3040", "#242B39", "#E3E8F7", "#ACB7D1", "#A9C5FF", "#3F5175", "#46506A", "#334362", "#A9C5FF"), + ("death", false) => new("#F0F3FC", "#F9FBFF", "#EBF0FD", "#293962", "#6C7FA7", "#234FC2", "#2E55B2", "#D2DCF2", "#DDE7FF", "#234FC2"), + ("death", true) => new("#151D31", "#212D47", "#19233A", "#DFE7FF", "#9FAFD2", "#A0BEFF", "#263C6F", "#3B4D75", "#2B4170", "#A0BEFF"), + ("jade", false) => new("#F0FAF5", "#FAFFFC", "#F1F9F6", "#2F5148", "#6B8B80", "#226D60", "#367968", "#D7E7DF", "#E1F1E9", "#226D60"), + ("jade", true) => new("#1C2C26", "#273B32", "#22332C", "#DCEFE5", "#ABC7B9", "#8BD7C5", "#28594F", "#3C5749", "#2C4B3B", "#8BD7C5"), + (_, false) => new("#FFF5FB", "#FCF6FB", "#FFF9FC", "#5C3A54", "#927B8B", "#AC2F6C", "#B14F91", "#EADDE6", "#EDF8FE", "#26799F"), + _ => new("#261F2A", "#302634", "#2B222F", "#F0DDEB", "#BEA8B9", "#EF9CC8", "#74365F", "#49384A", "#233B49", "#8FD2F1") + }; +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.Appearance.cs b/src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.Appearance.cs new file mode 100644 index 00000000..b99e836d --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.Appearance.cs @@ -0,0 +1,237 @@ +using System.Collections.ObjectModel; +using Avalonia.Threading; +using CommunityToolkit.Mvvm.ComponentModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Authentication; +using SkinModel = SHOU.Launcher.Core.Abstractions.AccountSkinModel; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record AccountSkinModelChoice(AccountSkinModel Value, string Name); +public sealed record AccountSkinSelectionTarget(string AccountId, string Identity, long Generation, AccountSkinModel Model); +public enum AccountAppearanceDialogPage { Preview, LocalSkin, OnlineSkin, Capes } +public sealed class AccountAppearanceRow(AccountProfile profile) : ObservableObject +{ + public AccountProfile Profile { get; private set; } = profile; + public string DisplayName => Profile.DisplayName; + public string SourceName => AccountsPageViewModel.SourceName(Profile); + private AccountTextureImage? skin; + public AccountTextureImage? Skin { get => skin; internal set => SetProperty(ref skin, value); } + internal void Update(AccountProfile profile) + { Profile = profile; OnPropertyChanged(nameof(Profile)); OnPropertyChanged(nameof(DisplayName)); OnPropertyChanged(nameof(SourceName)); } +} + +public sealed partial class AccountsPageViewModel +{ + private readonly Dictionary appearanceCache = new(StringComparer.Ordinal); + private IAccountAppearanceService? appearanceService; + private string? appearanceIdentity; + private string? appearanceSessionStamp; + private bool appearanceSessionChangedWhileReading; + private long appearanceGeneration; + private CancellationTokenSource? appearanceReadCancellation; + private bool appearanceReady, appearanceReadScheduled, appearanceRead, appearanceBusy, appearanceDialogOpen, appearancePickerActive; + private bool allow3DPreview = true, showSkinOuterLayer = true, showPreviewCape = true; + private string appearanceMessage = ""; + private AccountAppearance? accountAppearance; + private AccountCapeAppearance? selectedPreviewCape; + private AccountAppearanceDialogPage appearanceDialogPage; + private AccountSkinModelChoice localSkinModel = new(SkinModel.Classic, "经典(4 像素)"); + public ObservableCollection AppearanceAccountRows { get; } = []; + public ObservableCollection AccountCapes { get; } = []; + public IReadOnlyList SkinModelChoices { get; } = [new(SkinModel.Classic, "经典(4 像素)"), new(SkinModel.Slim, "纤细(3 像素)")]; + public AccountAppearanceRow? SelectedAppearanceAccountRow + { + get => AppearanceAccountRows.FirstOrDefault(row => row.Profile.Id == SelectedAccount?.Id); + set { if (value is not null) SelectedAccount = value.Profile; } + } + public AccountSkinModelChoice SelectedLocalSkinModel { get => localSkinModel; set { if (value is not null && SetProperty(ref localSkinModel, value)) NotifyOnlineAppearance(); } } + public AccountTextureImage? AccountSkin => accountAppearance?.Skin; + public AccountSkinModel AccountSkinModel => accountAppearance?.Model ?? SkinModel.Classic; + public bool HasAccountSkin => AccountSkin is not null; + public bool HasAccountCapes => AccountCapes.Count > 0; + public bool IsAccountAppearanceBusy => appearanceBusy; + public string AccountAppearanceStatus => appearanceMessage; + public bool HasAccountAppearanceMessage => appearanceMessage.Length > 0; + public string AccountAppearanceCapability => accountAppearance?.Capability ?? (appearanceService is null ? "当前服务没有提供外观读取能力。" : SelectedChannelAccount is { Kind: AccountKind.Offline } local ? AccountAppearanceStore.EmptyOffline(local.Id).Capability : "点击“刷新头像”读取真实皮肤与披风;在线修改请前往官网。"); + public string AccountAppearanceSummary => !HasAccountSkin ? "尚无已读取的皮肤" : (AccountSkinModel == SkinModel.Slim ? "纤细模型" : "经典模型") + (AccountCapes.Any(c => c.IsActive) ? " · 已读取当前披风" : " · 未穿戴披风"); + public string AccountAppearancePlayer => SelectedPlayerName + " · " + SelectedPlayerSource; + public bool CanChooseLocalSkin => CanEdit && !appearanceBusy && !appearancePickerActive && appearanceService is not null && SelectedChannelAccount is { Kind: AccountKind.Offline }; + public bool CanSaveSkinPng => HasAccountSkin && !appearanceBusy; + public bool CanOpenAppearanceWebsite => SelectedChannelAccount is { } account && AccountAppearanceClient.ManagementUri(account) is not null; + public bool CanPreviewAccountSkin => allow3DPreview && HasAccountSkin; + public bool Allow3DPreview { get => allow3DPreview; set { if (SetProperty(ref allow3DPreview, value)) { if (!value && IsAccountPreviewPage) CloseAccountAppearance(); OnPropertyChanged(nameof(CanPreviewAccountSkin)); } } } + public bool ShowSkinOuterLayer { get => showSkinOuterLayer; set => SetProperty(ref showSkinOuterLayer, value); } + public bool ShowPreviewCape { get => showPreviewCape; set => SetProperty(ref showPreviewCape, value); } + public AccountCapeAppearance? SelectedPreviewCape + { get => selectedPreviewCape; set { if (SetProperty(ref selectedPreviewCape, value)) { OnPropertyChanged(nameof(PreviewCapeTexture)); NotifyOnlineAppearance(); } } } + public AccountTextureImage? PreviewCapeTexture => SelectedPreviewCape?.Texture; + public bool IsAccountAppearanceDialogOpen => appearanceDialogOpen; + public bool IsAccountPreviewPage => appearanceDialogPage == AccountAppearanceDialogPage.Preview; + public bool IsLocalSkinPage => appearanceDialogPage == AccountAppearanceDialogPage.LocalSkin; + public bool IsOnlineSkinPage => appearanceDialogPage == AccountAppearanceDialogPage.OnlineSkin; + public bool IsAccountCapePage => appearanceDialogPage == AccountAppearanceDialogPage.Capes; + public string AccountAppearanceDialogTitle => appearanceDialogPage switch { AccountAppearanceDialogPage.LocalSkin => "本地离线皮肤", AccountAppearanceDialogPage.OnlineSkin => "修改在线皮肤", AccountAppearanceDialogPage.Capes => "角色披风", _ => "3D 皮肤与披风" }; + public string AccountCapeSummary => SelectedChannelAccount?.Kind == AccountKind.Yggdrasil ? "公开纹理仅提供当前披风;其他披风请在对应官网查看。" : SelectedChannelAccount?.Kind == AccountKind.Offline ? "离线角色没有在线披风列表。" : $"已读取 {AccountCapes.Count} 件披风;选中后可预览,点击穿戴才会更新角色。"; + public AsyncRelayCommand RefreshAppearanceCommand { get; private set; } = null!; + public AsyncRelayCommand OpenAppearanceWebsiteCommand { get; private set; } = null!; + public RelayCommand CloseAppearanceCommand { get; private set; } = null!; + public RelayCommand CancelAppearanceReadCommand { get; private set; } = null!; + + private void InitializeAccountAppearance() + { + appearanceService = Service as IAccountAppearanceService; + RefreshAppearanceCommand = AsyncCommand(() => ReadAccountAppearanceAsync(true), () => appearanceService is not null && SelectedChannelAccount is not null && Owner.CanReadRemote && !appearanceBusy); + OpenAppearanceWebsiteCommand = AsyncCommand(async () => + { + var account = SelectedChannelAccount; + if (account is null || AccountAppearanceClient.ManagementUri(account) is not { } uri) return; + await Owner.RunControlAsync("打开此外观官网", ct => Owner.ExternalLauncher.OpenUriAsync(uri, ct)); + }, () => CanOpenAppearanceWebsite); + CloseAppearanceCommand = Command(CloseAccountAppearance); + CancelAppearanceReadCommand = Command(() => appearanceReadCancellation?.Cancel(), () => appearanceBusy); + InitializeOnlineAppearance(); + appearanceReady = true; + } + // Renewing a token does not change the character. Keep its in-flight avatar read alive. + private static string AppearanceIdentity(AccountProfile account) => account.Id + "\n" + account.Kind + "\n" + account.PlayerUuid + "\n" + account.AuthenticationServer; + private void RefreshAccountAppearanceRows() + { + if (!appearanceReady) return; + var previous = AppearanceAccountRows.ToDictionary(row => row.Profile.Id, StringComparer.Ordinal); + var next = Accounts.Select(account => { var row = previous.GetValueOrDefault(account.Id) ?? new AccountAppearanceRow(account); row.Update(account); row.Skin = appearanceCache.GetValueOrDefault(AppearanceIdentity(account))?.Skin; return row; }).ToArray(); + if (!AppearanceAccountRows.SequenceEqual(next)) { AppearanceAccountRows.Clear(); foreach (var row in next) AppearanceAccountRows.Add(row); } + foreach (var key in appearanceCache.Keys.Where(key => !Accounts.Any(a => AppearanceIdentity(a) == key)).ToArray()) appearanceCache.Remove(key); + OnPropertyChanged(nameof(SelectedAppearanceAccountRow)); RefreshAccountAppearanceIdentity(); + } + private void RefreshAccountAppearanceIdentity() + { + if (!appearanceReady) return; + OnPropertyChanged(nameof(SelectedAppearanceAccountRow)); + var identity = SelectedChannelAccount is { } account ? AppearanceIdentity(account) : null; + var stamp = SelectedChannelAccount is { } current ? current.ExpiresAt?.UtcTicks + "\n" + current.Persisted + "\n" + current.Status : null; + var sessionChanged = appearanceSessionStamp != stamp; appearanceSessionStamp = stamp; + if (appearanceIdentity == identity) + { + // Authentication can complete during this very read. Do not cancel it, but + // do retry a previously failed portrait after a later successful sign-in. + if (sessionChanged) { if (appearanceBusy) appearanceSessionChangedWhileReading = true; else appearanceRead = false; } + OnPropertyChanged(nameof(AccountAppearancePlayer)); NotifyAccountAppearanceCommands(); ScheduleUnreadAccountAppearance(); return; + } + ++appearanceGeneration; appearanceReadCancellation?.Cancel(); appearanceReadCancellation = null; + appearanceIdentity = identity; appearanceRead = false; appearanceBusy = false; appearancePickerActive = false; + appearanceSessionChangedWhileReading = false; + onlineSkinDraft = null; onlineWriteNeedsRefresh = false; + CloseAccountAppearance(); appearanceMessage = ""; accountAppearance = identity is null ? null : appearanceCache.GetValueOrDefault(identity); + UpdateAccountAppearance(accountAppearance); ScheduleUnreadAccountAppearance(); + } + private void ScheduleUnreadAccountAppearance() + { + if (!appearanceReady || appearanceReadScheduled || appearanceRead || appearanceBusy || appearanceService is null || appearanceIdentity is null || !IsAppearancePageActive) return; + appearanceReadScheduled = true; + Dispatcher.UIThread.Post(() => { appearanceReadScheduled = false; if (appearanceRead || appearanceBusy || appearanceIdentity is null || !Owner.CanReadRemote || !IsAppearancePageActive) return; _ = ReadAccountAppearanceAsync(false); }); + } + public async Task ReadAccountAppearanceAsync(bool refreshRemote) + { + if (appearanceService is null || SelectedChannelAccount is not { } account || appearanceBusy) return; + var identity = AppearanceIdentity(account); var generation = appearanceGeneration; + appearanceSessionChangedWhileReading = false; var retryAfterRenewal = false; + using var cancellation = new CancellationTokenSource(); appearanceReadCancellation = cancellation; appearanceBusy = true; appearanceMessage = "正在读取外观…"; NotifyAppearancePresentation(); + try + { + var result = await appearanceService.GetAccountAppearanceAsync(account.Id, refreshRemote, cancellation.Token); + // A first visit should show the selected online character, without requiring a manual refresh. + // Read cache first; preserve cancellation and identity checks before issuing the remote request. + if (!refreshRemote && result.Skin is null && account.Kind != AccountKind.Offline + && !cancellation.IsCancellationRequested && IsCurrentAppearance(identity, generation)) + result = await appearanceService.GetAccountAppearanceAsync(account.Id, true, cancellation.Token); + if (cancellation.IsCancellationRequested || !IsCurrentAppearance(identity, generation) || result.AccountId != account.Id) return; + CacheAppearance(identity, result); appearanceRead = true; appearanceMessage = result.Skin is null ? account.Kind == AccountKind.Offline ? "尚未选择本地皮肤。" : result.IsRemote ? "服务未返回当前皮肤。" : "点击“刷新头像”读取在线外观。" : refreshRemote ? "外观已刷新" : ""; + if (refreshRemote && result.IsRemote) onlineWriteNeedsRefresh = false; + UpdateAccountAppearance(result); + } + catch (OperationCanceledException) when (cancellation.IsCancellationRequested) { if (IsCurrentAppearance(identity, generation)) { appearanceRead = true; appearanceMessage = "读取已取消,已有外观保留。"; } } + catch (Exception ex) + { + if (IsCurrentAppearance(identity, generation)) + { + retryAfterRenewal = appearanceSessionChangedWhileReading && ex is not AuthenticationException; + appearanceRead = !retryAfterRenewal; + if (!retryAfterRenewal) appearanceMessage = UiPrivacy.Redact(ex.Message); + } + } + finally + { + if (ReferenceEquals(appearanceReadCancellation, cancellation)) appearanceReadCancellation = null; + if (IsCurrentAppearance(identity, generation)) + { + appearanceBusy = false; appearanceSessionChangedWhileReading = false; NotifyAppearancePresentation(); + if (retryAfterRenewal) ScheduleUnreadAccountAppearance(); + } + } + } + private bool IsCurrentAppearance(string identity, long generation) => appearanceIdentity == identity && appearanceGeneration == generation && SelectedChannelAccount is { } selected && AppearanceIdentity(selected) == identity; + private void UpdateAccountAppearance(AccountAppearance? value) + { + accountAppearance = value; AccountCapes.Clear(); foreach (var cape in value?.Capes ?? []) AccountCapes.Add(cape); + SelectedPreviewCape = AccountCapes.FirstOrDefault(c => c.IsActive) ?? AccountCapes.FirstOrDefault(); + if (value is not null && AppearanceAccountRows.FirstOrDefault(row => row.Profile.Id == value.AccountId) is { } row) row.Skin = value.Skin; + SelectedLocalSkinModel = SkinModelChoices.First(c => c.Value == (value?.Model ?? SkinModel.Classic)); NotifyAppearancePresentation(); + } + public AccountSkinSelectionTarget? CaptureLocalSkinTarget() + { + if (!CanChooseLocalSkin || SelectedChannelAccount is not { } account || appearanceIdentity is null) return null; + appearancePickerActive = true; NotifyAppearancePresentation(); + return new(account.Id, appearanceIdentity, appearanceGeneration, SelectedLocalSkinModel.Value); + } + public void EndLocalSkinPicker(AccountSkinSelectionTarget target) + { if (IsCurrentAppearance(target.Identity, target.Generation)) { appearancePickerActive = false; NotifyAppearancePresentation(); } } + public async Task SavePickedSkinAsync(string? path, AccountSkinSelectionTarget target) + { + if (path is null) return false; + if (!IsCurrentAppearance(target.Identity, target.Generation) || SelectedChannelAccount?.Id != target.AccountId || appearanceService is null) + { Owner.ShowError("当前角色已改变,所选皮肤未保存。请为当前角色重新选择。"); return false; } + AccountAppearance? result = null; + var saved = await Owner.RunAsync("保存本地皮肤", async ct => + { + var png = await AccountAppearanceStore.ReadPickedSkinAsync(path, ct); + if (!IsCurrentAppearance(target.Identity, target.Generation)) throw new InvalidOperationException("读取期间角色已改变,皮肤未保存。"); + result = await appearanceService.SaveOfflineAccountSkinAsync(target.AccountId, png, target.Model, ct); + }); + if (saved && result is not null && IsCurrentAppearance(target.Identity, target.Generation)) + { + CacheAppearance(target.Identity, result); appearanceRead = true; appearanceMessage = "已保存此离线角色的本地皮肤。"; UpdateAccountAppearance(result); return true; + } + return false; + } + public bool OpenAccountAppearance(AccountAppearanceDialogPage page) + { + if (SelectedChannelAccount is null || page == AccountAppearanceDialogPage.Preview && !CanPreviewAccountSkin || page == AccountAppearanceDialogPage.LocalSkin && SelectedChannelAccount.Kind != AccountKind.Offline || page == AccountAppearanceDialogPage.OnlineSkin && !SupportsOnlineAppearance) return false; + appearanceDialogPage = page; appearanceDialogOpen = true; NotifyAppearancePresentation(); return true; + } + public void CloseAccountAppearance() + { if (appearanceDialogOpen) { appearanceDialogOpen = false; OnPropertyChanged(nameof(IsAccountAppearanceDialogOpen)); } } + private void CancelAccountAppearanceWork() + { appearanceReadCancellation?.Cancel(); CloseAccountAppearance(); } + private void CacheAppearance(string identity, AccountAppearance value) + { + appearanceCache.Remove(identity); + while (appearanceCache.Count >= 8) appearanceCache.Remove(appearanceCache.Keys.First()); + appearanceCache[identity] = value; + } + private bool IsAppearancePageActive => ReferenceEquals(Owner.SelectedPage, Owner.Home) || ReferenceEquals(Owner.SelectedPage, this); + private void NotifyAppearancePresentation() + { + NotifyOnlineAppearance(); + foreach (var property in new[] { nameof(AccountSkin), nameof(AccountSkinModel), nameof(HasAccountSkin), nameof(HasAccountCapes), nameof(IsAccountAppearanceBusy), nameof(AccountAppearanceStatus), nameof(HasAccountAppearanceMessage), nameof(AccountAppearanceCapability), nameof(AccountAppearanceSummary), nameof(AccountAppearancePlayer), nameof(CanChooseLocalSkin), nameof(CanSaveSkinPng), nameof(CanOpenAppearanceWebsite), nameof(CanPreviewAccountSkin), nameof(IsAccountAppearanceDialogOpen), nameof(IsAccountPreviewPage), nameof(IsLocalSkinPage), nameof(IsAccountCapePage), nameof(AccountAppearanceDialogTitle), nameof(AccountCapeSummary) }) OnPropertyChanged(property); + NotifyAccountAppearanceCommands(); + } + private void NotifyAccountAppearanceCommands() + { + if (!appearanceReady) return; + NotifyOnlineAppearance(); + OnPropertyChanged(nameof(CanChooseLocalSkin)); OnPropertyChanged(nameof(CanSaveSkinPng)); + RefreshAppearanceCommand.NotifyCanExecuteChanged(); OpenAppearanceWebsiteCommand.NotifyCanExecuteChanged(); CancelAppearanceReadCommand.NotifyCanExecuteChanged(); ScheduleUnreadAccountAppearance(); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.AppearanceWrite.cs b/src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.AppearanceWrite.cs new file mode 100644 index 00000000..a4fe9664 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.AppearanceWrite.cs @@ -0,0 +1,73 @@ +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Authentication; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class AccountsPageViewModel +{ + private AccountTextureImage? onlineSkinDraft; + private bool onlineWriteNeedsRefresh; + public bool SupportsOnlineAppearance => Service is IAccountAppearanceMutationService && SelectedChannelAccount?.Kind == AccountKind.Microsoft; + public bool CanChooseOnlineSkin => SupportsOnlineAppearance && CanEdit && !appearanceBusy && !appearancePickerActive; + public AccountTextureImage? OnlineSkinPreview => onlineSkinDraft ?? AccountSkin; + public bool HasOnlineSkinDraft => onlineSkinDraft is not null; + public AsyncRelayCommand UploadOnlineSkinCommand { get; private set; } = null!; + public AsyncRelayCommand WearOnlineCapeCommand { get; private set; } = null!; + public AsyncRelayCommand HideOnlineCapeCommand { get; private set; } = null!; + private bool CanWriteOnlineAppearance => SupportsOnlineAppearance && CanEdit && !appearanceBusy && !appearancePickerActive && !onlineWriteNeedsRefresh; + private void InitializeOnlineAppearance() + { + UploadOnlineSkinCommand = AsyncCommand(() => WriteOnlineAppearanceAsync(new(AccountAppearanceAction.UploadSkin, onlineSkinDraft!.Png, SelectedLocalSkinModel.Value)), () => CanWriteOnlineAppearance && HasOnlineSkinDraft); + WearOnlineCapeCommand = AsyncCommand(() => WriteOnlineAppearanceAsync(new(AccountAppearanceAction.WearCape, CapeId: SelectedPreviewCape!.Id)), () => CanWriteOnlineAppearance && SelectedPreviewCape is { IsActive: false }); + HideOnlineCapeCommand = AsyncCommand(() => WriteOnlineAppearanceAsync(new(AccountAppearanceAction.HideCape)), () => CanWriteOnlineAppearance && AccountCapes.Any(c => c.IsActive)); + } + public AccountSkinSelectionTarget? CaptureOnlineSkinTarget() + { + if (!CanChooseOnlineSkin || SelectedChannelAccount is not { } account || appearanceIdentity is null) return null; + appearancePickerActive = true; NotifyAppearancePresentation(); + return new(account.Id, appearanceIdentity, appearanceGeneration, SelectedLocalSkinModel.Value); + } + public async Task PreviewPickedOnlineSkinAsync(string? path, AccountSkinSelectionTarget target) + { + if (path is null) return false; + try + { + var png = await AccountAppearanceStore.ReadPickedSkinAsync(path); + if (!IsCurrentAppearance(target.Identity, target.Generation)) { Owner.ShowError("当前角色已改变,请重新选择皮肤。"); return false; } + onlineSkinDraft = AccountAppearancePng.Decode(png); appearanceMessage = "预览已就绪,点击“上传到此角色”后生效。"; NotifyAppearancePresentation(); return true; + } + catch (Exception ex) { if (IsCurrentAppearance(target.Identity, target.Generation)) { appearanceMessage = UiPrivacy.Redact(ex.Message); NotifyAppearancePresentation(); } return false; } + } + private async Task WriteOnlineAppearanceAsync(AccountAppearanceChange change) + { + if (!CanWriteOnlineAppearance || Service is not IAccountAppearanceMutationService writer || SelectedChannelAccount is not { } account || appearanceIdentity is not { } identity) return; + var generation = appearanceGeneration; + using var cancellation = new CancellationTokenSource(); appearanceReadCancellation = cancellation; appearanceBusy = true; + appearanceMessage = "正在更新在线外观…"; NotifyAppearancePresentation(); + try + { + await Owner.RunInlineAsync("更新在线外观", async ct => + { + using var linked = CancellationTokenSource.CreateLinkedTokenSource(ct, cancellation.Token); + var result = await writer.ChangeAccountAppearanceAsync(account.Id, change, linked.Token); + if (!IsCurrentAppearance(identity, generation)) { Owner.ShowError("此前角色的外观操作已结束,请刷新该角色核对结果。"); return; } + appearanceMessage = result.Message; + onlineWriteNeedsRefresh = result.State is AccountAppearanceWriteState.AcceptedNeedsRefresh or AccountAppearanceWriteState.OutcomeUnknown; + if (result.Appearance is { } updated) { CacheAppearance(identity, updated); appearanceRead = true; UpdateAccountAppearance(updated); } + else if (onlineWriteNeedsRefresh) appearanceCache.Remove(identity); + if (result.State == AccountAppearanceWriteState.Verified && change.Action == AccountAppearanceAction.UploadSkin) onlineSkinDraft = null; + }); + } + finally + { + if (ReferenceEquals(appearanceReadCancellation, cancellation)) appearanceReadCancellation = null; + if (IsCurrentAppearance(identity, generation)) { appearanceBusy = false; NotifyAppearancePresentation(); } + } + } + private void NotifyOnlineAppearance() + { + foreach (var property in new[] { nameof(SupportsOnlineAppearance), nameof(CanChooseOnlineSkin), nameof(OnlineSkinPreview), nameof(HasOnlineSkinDraft), nameof(IsOnlineSkinPage) }) OnPropertyChanged(property); + UploadOnlineSkinCommand?.NotifyCanExecuteChanged(); WearOnlineCapeCommand?.NotifyCanExecuteChanged(); HideOnlineCapeCommand?.NotifyCanExecuteChanged(); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.CredentialRecovery.cs b/src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.CredentialRecovery.cs new file mode 100644 index 00000000..4d7e2a00 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.CredentialRecovery.cs @@ -0,0 +1,17 @@ +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class AccountsPageViewModel +{ + public bool NeedsCredentialAuthorization => !Owner.Snapshot.CanPersistAccounts && Owner.Snapshot.Accounts.Any(a => a.Kind != AccountKind.Offline) + && Service is ICredentialAccessRecoveryService { CanAuthorizeCredentialAccess: true }; + public AsyncRelayCommand RecoverCredentialAccessCommand { get; private set; } = null!; + private void InitializeCredentialRecovery() + { + RecoverCredentialAccessCommand = AsyncCommand(async () => + await Owner.RunAsync("读取原登录凭据", ct => ((ICredentialAccessRecoveryService)Service).RecoverCredentialAccessAsync(ct)), + () => CanEdit && NeedsCredentialAuthorization); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.Panel.cs b/src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.Panel.cs new file mode 100644 index 00000000..bf9ef7f5 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.Panel.cs @@ -0,0 +1,137 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class AccountsPageViewModel +{ + private bool _panelReady; + private bool _providerInitialized; + private bool _providerChosenByUser; + private bool _initialAccountApplied; + private bool _showAllAccounts; + private bool _isAddingAccount; + private bool _showRemoval; + public ObservableCollection ChannelAccounts { get; } = []; + public bool ShowAllAccounts + { + get => _showAllAccounts; + private set { if (SetProperty(ref _showAllAccounts, value)) { OnPropertyChanged(nameof(AllAccountsButtonLabel)); NotifyPanelVisibility(); } } + } + public bool IsAddingAccount + { + get => _isAddingAccount; + private set { if (SetProperty(ref _isAddingAccount, value)) { OnPropertyChanged(nameof(AddingAccountSummary)); NotifyPanelVisibility(); } } + } + public bool ShowRemoval { get => _showRemoval; private set => SetProperty(ref _showRemoval, value); } + public bool ShowChannelAccount => !ShowAllAccounts; + public bool ShowSelectedAccount => !ShowAllAccounts && !IsAddingAccount && SelectedChannelAccount is not null; + public bool ShowEmptyChannel => !ShowAllAccounts && !IsAddingAccount && SelectedChannelAccount is null; + public bool IsOfflineChannel => SelectedProvider.Id == "offline"; + public bool IsMicrosoftChannel => SelectedProvider.Id == "microsoft"; + public bool IsLittleSkinChannel => SelectedProvider.Id == "littleskin"; + public bool IsMuaChannel => SelectedProvider.Id == "mua"; + public string MicrosoftChannelTitle => Localization.UiLocalization.Instance.Format("微软正版登录({0})", Accounts.Count(a => a.Kind == AccountKind.Microsoft)); + public string LittleSkinChannelTitle => Localization.UiLocalization.Instance.Format("LittleSkin 登录({0})", CountProvider("littleskin")); + public string MuaChannelTitle => Localization.UiLocalization.Instance.Format("MUA 登录({0})", CountProvider("mua")); + public string OfflineChannelTitle => Localization.UiLocalization.Instance.Format("离线登录({0})", Accounts.Count(a => a.Kind == AccountKind.Offline)); + public string ChannelTitle => ShowAllAccounts ? Localization.UiLocalization.Instance.Format("全部账户({0} 个角色)", Accounts.Count) : Localization.UiLocalization.Instance.Format("{0}({1} 个角色)", Localization.UiLocalization.Instance.Text(SelectedProvider.Name), ChannelAccounts.Count); + public string AllAccountsButtonLabel => ShowAllAccounts ? "隐藏" : "全部"; + public string AddingAccountSummary => Localization.UiLocalization.Instance.Format("正在添加:{0}。可直接点击其他登录方式切换。", Localization.UiLocalization.Instance.Text(SelectedProvider.Name)); + public string SelectedPlayerName => SelectedChannelAccount?.DisplayName ?? "尚未选择角色"; + public string SelectedPlayerSource => SelectedChannelAccount is { } account ? SourceName(account) : ""; + public string SelectedPlayerStatus => SelectedChannelAccount is { } account ? UiPrivacy.Redact(account.Status) + (account.Persisted ? " · 已保存" : " · 本次会话") : ""; + public AccountProfile? SelectedChannelAccount + { + get => ChannelAccounts.FirstOrDefault(a => a.Id == SelectedAccount?.Id); + set { if (value is not null && ChannelAccounts.Any(a => a.Id == value.Id)) SelectedAccount = value; } + } + public RelayCommand SelectProviderCommand { get; private set; } = null!; + public RelayCommand ToggleAllAccountsCommand { get; private set; } = null!; + public RelayCommand BeginAddAccountCommand { get; private set; } = null!; + public RelayCommand EndAddAccountCommand { get; private set; } = null!; + public RelayCommand RequestRemovalCommand { get; private set; } = null!; + public RelayCommand CancelRemovalCommand { get; private set; } = null!; + public AsyncRelayCommand OpenProviderWebsiteCommand { get; private set; } = null!; + + private void InitializeAccountPanel() + { + SelectProviderCommand = new(id => + { + if (!CanEdit) return; + if (Providers.FirstOrDefault(p => p.Id == id) is { } provider) { _providerChosenByUser = true; SelectedProvider = provider; ShowAllAccounts = false; IsAddingAccount = ChannelAccounts.Count == 0; } + }, _ => CanEdit); + ToggleAllAccountsCommand = Command(() => { ShowAllAccounts = !ShowAllAccounts; IsAddingAccount = false; Password = ""; OnPropertyChanged(nameof(ChannelTitle)); }, () => CanEdit); + BeginAddAccountCommand = Command(() => { ShowAllAccounts = false; IsAddingAccount = true; ShowRemoval = false; ConfirmRemoval = false; }, () => CanEdit); + EndAddAccountCommand = Command(() => { IsAddingAccount = false; Password = ""; }, () => CanEdit); + RequestRemovalCommand = Command(() => { ShowRemoval = true; ConfirmRemoval = false; }, () => CanEdit && SelectedChannelAccount is not null); + CancelRemovalCommand = Command(() => { ShowRemoval = false; ConfirmRemoval = false; }); + OpenProviderWebsiteCommand = AsyncCommand(() => Owner.RunControlAsync("打开登录渠道官网", ct => Owner.ExternalLauncher.OpenUriAsync(new Uri(SelectedProvider.Id switch + { "mua" => "https://skin.mualliance.ltd/", "littleskin" => "https://littleskin.cn/", _ => throw new InvalidOperationException("此渠道没有皮肤站入口。") }), ct)), () => IsYggdrasil); + _panelReady = true; + } + + private int CountProvider(string id) => Accounts.Count(a => ProviderId(a) == id); + private void SelectProviderForAccount(AccountProfile account) + { + if (Providers.FirstOrDefault(p => p.Id == ProviderId(account)) is { } provider) SelectedProvider = provider; + } + private static string? ProviderId(AccountProfile account) + { + if (account.Kind == AccountKind.Offline) return "offline"; + if (account.Kind == AccountKind.Microsoft) return "microsoft"; + if (!Uri.TryCreate(account.AuthenticationServer, UriKind.Absolute, out var uri) || uri.Scheme != "https") return null; + var endpoint = uri.AbsoluteUri.TrimEnd('/'); + if (endpoint.Equals("https://skin.mualliance.ltd/api/yggdrasil", StringComparison.OrdinalIgnoreCase)) return "mua"; + if (endpoint.Equals("https://littleskin.cn/api/yggdrasil", StringComparison.OrdinalIgnoreCase)) return "littleskin"; + return null; + } + public static string SourceName(AccountProfile account) => ProviderId(account) switch + { "offline" => "离线角色", "microsoft" => "微软正版", "mua" => "MUA Union", "littleskin" => "LittleSkin", _ => "其他认证来源" }; + private void RefreshAccountPanel() + { + if (!_panelReady) return; + if (!_providerInitialized) + { + if (SelectedAccount is { } selected && Providers.FirstOrDefault(p => p.Id == ProviderId(selected)) is { } provider) _provider = provider; + _providerInitialized = true; + OnPropertyChanged(nameof(SelectedProvider)); OnPropertyChanged(nameof(IsOffline)); OnPropertyChanged(nameof(IsMicrosoft)); OnPropertyChanged(nameof(IsYggdrasil)); + UpdateChannelAccounts(); + IsAddingAccount = ChannelAccounts.Count == 0; + } + // Configuration can arrive after the first empty snapshot. Preserve an explicit channel choice. + if (!_providerChosenByUser && !_initialAccountApplied && SelectedAccount is { } initial) + { + SelectProviderForAccount(initial); _initialAccountApplied = true; IsAddingAccount = false; + } + UpdateChannelAccounts(); + foreach (var property in new[] { nameof(MicrosoftChannelTitle), nameof(LittleSkinChannelTitle), nameof(MuaChannelTitle), nameof(OfflineChannelTitle), nameof(ChannelTitle) }) OnPropertyChanged(property); + } + private void UpdateChannelAccounts() + { + if (!_panelReady) return; + var accounts = Accounts.Where(a => ProviderId(a) == SelectedProvider.Id).ToArray(); + if (!ChannelAccounts.SequenceEqual(accounts)) { ChannelAccounts.Clear(); foreach (var account in accounts) ChannelAccounts.Add(account); } + foreach (var property in new[] { nameof(IsOfflineChannel), nameof(IsMicrosoftChannel), nameof(IsLittleSkinChannel), nameof(IsMuaChannel), nameof(ChannelTitle) }) OnPropertyChanged(property); + NotifySelectedAccount(); + } + private void NotifySelectedAccount() + { + if (!_panelReady) return; + OnPropertyChanged(nameof(SelectedChannelAccount)); OnPropertyChanged(nameof(SelectedPlayerName)); OnPropertyChanged(nameof(SelectedPlayerSource)); OnPropertyChanged(nameof(SelectedPlayerStatus)); + ShowRemoval = false; NotifyPanelVisibility(); + RefreshAccountAppearanceIdentity(); + } + private void NotifyPanelVisibility() + { + OnPropertyChanged(nameof(ShowChannelAccount)); OnPropertyChanged(nameof(ShowSelectedAccount)); OnPropertyChanged(nameof(ShowEmptyChannel)); + RequestRemovalCommand?.NotifyCanExecuteChanged(); + } + public override void NotifyCommands() + { + base.NotifyCommands(); + SelectProviderCommand?.NotifyCanExecuteChanged(); + NotifyAccountAppearanceCommands(); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.cs b/src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.cs new file mode 100644 index 00000000..9ed6e0c4 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/AccountsPageViewModel.cs @@ -0,0 +1,295 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record LoginProviderChoice(string Id, string Name, Uri? AuthenticationServer = null); + +public sealed partial class AccountsPageViewModel : PageViewModel +{ + private bool _refreshing; + private AccountProfile? _selectedAccount; + private LoginProviderChoice _provider; + private string _playerName = ""; + private string _username = ""; + private string _password = ""; + private DeviceCodeChallenge? _challenge; + private AuthenticationProfileChallengeViewModel? _profileChallenge; + private long _authenticationGeneration; + private bool _authenticationActive; + private long _openedDeviceGeneration = -1; + private string _deviceAutomationStatus = ""; + public Func? DeviceCodeClipboardWriter { get; set; } + public string DeviceAutomationStatus { get => _deviceAutomationStatus; private set => SetProperty(ref _deviceAutomationStatus, value); } + public RelayCommand CancelMicrosoftAuthorizationCommand { get; private set; } = null!; + private bool _confirmRemoval; + public ObservableCollection Accounts { get; } = []; + public IReadOnlyList Providers { get; } = + [ + new("offline", "离线角色"), new("microsoft", "微软正版"), + new("mua", "MUA", new Uri("https://skin.mualliance.ltd/api/yggdrasil")), + new("littleskin", "LittleSkin", new Uri("https://littleskin.cn/api/yggdrasil")) + ]; + public LoginProviderChoice SelectedProvider + { + get => _provider; + set + { + if (value is null || (!_refreshing && !Owner.CanMutate) || !SetProperty(ref _provider, value)) return; + Password = ""; + OnPropertyChanged(nameof(IsOffline)); OnPropertyChanged(nameof(IsMicrosoft)); OnPropertyChanged(nameof(ShowMicrosoftLoginForm)); OnPropertyChanged(nameof(IsYggdrasil)); + OnPropertyChanged(nameof(AddingAccountSummary)); + UpdateChannelAccounts(); + NotifyCommands(); + } + } + public bool IsOffline => SelectedProvider.Id == "offline"; + public bool IsMicrosoft => SelectedProvider.Id == "microsoft"; + public bool ShowMicrosoftLoginForm => IsMicrosoft && !HasDeviceChallenge; + public bool IsYggdrasil => SelectedProvider.AuthenticationServer is not null; + public string PlayerName { get => _playerName; set { SetProperty(ref _playerName, value ?? ""); OnPropertyChanged(nameof(HasNonAsciiPlayerName)); NotifyCommands(); } } + public bool HasNonAsciiPlayerName => PlayerName.Any(c => c > 127); + private OfflineUuidMode offlineUuidMode; + private string customOfflineUuid = ""; + public bool IsStandardUuid { get => offlineUuidMode == OfflineUuidMode.Standard; set { if (value) SetUuidMode(OfflineUuidMode.Standard); } } + public bool IsLegacyUuid { get => offlineUuidMode == OfflineUuidMode.Legacy; set { if (value) SetUuidMode(OfflineUuidMode.Legacy); } } + public bool IsCustomUuid { get => offlineUuidMode == OfflineUuidMode.Custom; set { if (value) SetUuidMode(OfflineUuidMode.Custom); } } + public string CustomOfflineUuid { get => customOfflineUuid; set { SetProperty(ref customOfflineUuid, value ?? ""); NotifyCommands(); } } + public bool SupportsOfflineUuidModes => Service is IOfflineAccountService; + private void SetUuidMode(OfflineUuidMode mode) + { + offlineUuidMode = mode; + OnPropertyChanged(nameof(IsStandardUuid)); OnPropertyChanged(nameof(IsLegacyUuid)); OnPropertyChanged(nameof(IsCustomUuid)); NotifyCommands(); + } + public string Username { get => _username; set { SetProperty(ref _username, value ?? ""); NotifyCommands(); } } + public string Password { get => _password; set { SetProperty(ref _password, value ?? ""); NotifyCommands(); } } + public bool ConfirmRemoval { get => _confirmRemoval; set { SetProperty(ref _confirmRemoval, value); NotifyCommands(); } } + public AccountProfile? SelectedAccount + { + get => _selectedAccount; + set + { + if (!_refreshing && !Owner.CanMutate) { OnPropertyChanged(nameof(SelectedAccount)); return; } + if (!SetProperty(ref _selectedAccount, value)) return; + ConfirmRemoval = false; + if (!_refreshing && ShowAllAccounts && value is not null) SelectProviderForAccount(value); + OnPropertyChanged(nameof(AccountDetail)); + NotifySelectedAccount(); + NotifyCommands(); + if (!_refreshing && value is not null) + _ = Owner.RunAsync("选择账户", ct => Service.SelectAccountAsync(value.Id, ct)); + } + } + public string AccountDetail => SelectedAccount is { } account + ? $"{account.DisplayName} · {account.Kind}\n{UiPrivacy.Redact(account.Status)} · {(account.Persisted ? "已保存" : "仅本次会话")}\n{UiPrivacy.Redact(account.AuthenticationServer ?? "本地/微软认证")}" + : "尚未选择账户。相同昵称的不同来源角色仍是独立账户。"; + public string PersistenceSummary => Owner.Snapshot.CanPersistAccounts && Service.Capabilities.SupportsCredentialPersistence + ? "凭据由系统安全存储保存,账户列表不含密码或令牌。" + : "当前无法安全持久保存账户;保留已有档案,新授权可能仅在本次会话有效。"; + public bool HasDeviceChallenge => _challenge is not null; + public string DeviceCode => _challenge?.UserCode ?? ""; + public string DeviceInstructions => _challenge is { } challenge ? $"在微软官网输入此代码,有效至 {challenge.ExpiresAt.ToLocalTime():HH:mm:ss}。\n{UiPrivacy.Redact(challenge.Message)}" : ""; + public AuthenticationProfileChallengeViewModel? ProfileChallenge + { + get => _profileChallenge; + private set { if (SetProperty(ref _profileChallenge, value)) OnPropertyChanged(nameof(HasProfileChallenge)); } + } + public bool HasProfileChallenge => ProfileChallenge is { IsPending: true }; + public bool IsAuthenticating => _authenticationActive; + public AsyncRelayCommand AddOfflineCommand { get; } + public AsyncRelayCommand LoginMicrosoftCommand { get; } + public AsyncRelayCommand LoginYggdrasilCommand { get; } + public AsyncRelayCommand OpenVerificationCommand { get; } + public AsyncRelayCommand RefreshAccountCommand { get; } + public AsyncRelayCommand RemoveAccountCommand { get; } + + public AccountsPageViewModel(MainWindowViewModel owner) : base(owner, "账户", "管理离线、Microsoft、MUA 与 LittleSkin 角色。") + { + _provider = Providers.First(p => p.Id == "microsoft"); + AddOfflineCommand = AsyncCommand(async () => + { + var name = PlayerName.Trim(); var mode = offlineUuidMode; var custom = CustomOfflineUuid.Trim(); + if (await Owner.RunAsync("添加离线角色", async ct => + { + if (Service is IOfflineAccountService identities) await identities.AddOfflineAccountAsync(name, mode, custom, ct); + else if (mode == OfflineUuidMode.Standard) await Service.AddOfflineAccountAsync(name, ct); + else throw new InvalidOperationException("当前服务不支持此 UUID 标准。"); + })) IsAddingAccount = false; + }, () => CanEdit && !string.IsNullOrWhiteSpace(PlayerName) && (!IsCustomUuid || (Guid.TryParseExact(CustomOfflineUuid.Trim(), "N", out var id) || Guid.TryParseExact(CustomOfflineUuid.Trim(), "D", out id)) && id != Guid.Empty)); + LoginMicrosoftCommand = AsyncCommand(LoginMicrosoftAsync, () => CanEdit); + LoginYggdrasilCommand = AsyncCommand(LoginYggdrasilAsync, () => CanEdit && IsYggdrasil && !string.IsNullOrWhiteSpace(Username) && Password.Length > 0); + OpenVerificationCommand = AsyncCommand(() => Owner.RunControlAsync("打开微软授权页", ct => Owner.ExternalLauncher.OpenUriAsync(_challenge!.VerificationUri, ct)), () => _challenge is { VerificationUri.Scheme: "https" }); + CancelMicrosoftAuthorizationCommand = Command(() => Owner.CancelOperationCommand.Execute(null)); + RefreshAccountCommand = AsyncCommand(() => Owner.RunAsync("刷新账户", ct => Service.RefreshAccountAsync(SelectedAccount!.Id, ct)), () => CanEdit && SelectedAccount is { Kind: not AccountKind.Offline }); + RemoveAccountCommand = AsyncCommand(async () => + { + var id = SelectedAccount!.Id; + await Owner.RunAsync("移除本机账户", ct => Service.RemoveAccountAsync(id, ct)); + ConfirmRemoval = false; + }, () => CanEdit && SelectedAccount is not null && ConfirmRemoval); + InitializeCredentialRecovery(); + InitializeAccountPanel(); + InitializeAccountAppearance(); + } + private async Task LoginMicrosoftAsync() + { + var generation = BeginAuthentication(); + try + { + if (await Owner.RunInlineAsync("微软设备授权", async ct => + { + var progress = new DispatchProgress(challenge => Owner.Dispatch(() => + { + if (IsCurrentAuthentication(generation) && !ct.IsCancellationRequested) + { + SetChallenge(challenge); + if (_openedDeviceGeneration != generation) + { + _openedDeviceGeneration = generation; + _ = PrepareDeviceAuthorizationAsync(challenge, generation, ct); + } + } + })); + await Service.LoginMicrosoftAsync(progress, ct); + })) IsAddingAccount = false; + } + finally { EndAuthentication(generation); } + } + private async Task PrepareDeviceAuthorizationAsync(DeviceCodeChallenge challenge, long generation, CancellationToken ct) + { + var copied = false; + try + { + if (!IsCurrentAuthentication(generation) || ct.IsCancellationRequested) return; + if (DeviceCodeClipboardWriter is { } writer) { await writer(challenge.UserCode, ct); copied = true; } + } + catch (Exception) { /* Clipboard failure must not end an otherwise valid device authorization. */ } + try + { + if (!IsCurrentAuthentication(generation) || ct.IsCancellationRequested) return; + await Owner.ExternalLauncher.OpenUriAsync(challenge.VerificationUri, ct); + if (IsCurrentAuthentication(generation) && !ct.IsCancellationRequested) + DeviceAutomationStatus = copied ? "代码已复制,已打开默认浏览器;粘贴代码后完成授权。" : "已打开默认浏览器;请复制上方代码完成授权。"; + } + catch (OperationCanceledException) { } + catch (Exception) + { + if (IsCurrentAuthentication(generation) && !ct.IsCancellationRequested) + DeviceAutomationStatus = copied ? "代码已复制;浏览器未能打开,请点击“打开微软授权页”重试。" : "请点击下方按钮打开授权页并复制代码。"; + } + } + private async Task LoginYggdrasilAsync() + { + var server = SelectedProvider.AuthenticationServer!; + var username = Username.Trim(); + var password = Password; + Password = ""; + var generation = BeginAuthentication(); + try + { + if (await Owner.RunAsync("登录 " + SelectedProvider.Name, async ct => + { + var accounts = await Service.LoginYggdrasilWithProfileSelectionAsync(server, username, password, + (choices, selectionToken) => SelectProfileAsync(choices, generation, ct, selectionToken), ct); + if (accounts.Count == 0) throw new InvalidOperationException("认证服务没有返回可用角色。"); + }, false, password)) IsAddingAccount = false; + } + finally { EndAuthentication(generation); } + } + private long BeginAuthentication() + { + IsAddingAccount = true; + var generation = ++_authenticationGeneration; + _authenticationActive = true; + ClearProfileChallenge(new CancellationToken(true)); + SetChallenge(null); + OnPropertyChanged(nameof(IsAuthenticating)); + return generation; + } + private bool IsCurrentAuthentication(long generation) => _authenticationActive && generation == _authenticationGeneration; + private void EndAuthentication(long generation) + { + if (!IsCurrentAuthentication(generation)) return; + _authenticationActive = false; + ClearProfileChallenge(new CancellationToken(true)); + SetChallenge(null); + OnPropertyChanged(nameof(IsAuthenticating)); + } + private async Task SelectProfileAsync(IReadOnlyList choices, long generation, + CancellationToken authenticationToken, CancellationToken selectionToken) + { + using var cancellation = CancellationTokenSource.CreateLinkedTokenSource(authenticationToken, selectionToken); + var token = cancellation.Token; + token.ThrowIfCancellationRequested(); + if (choices.Count == 0) throw new InvalidOperationException("认证服务没有提供可选择的角色。"); + AuthenticationProfileChallengeViewModel challenge = null!; + challenge = new(choices, + () => IsCurrentAuthentication(generation) && ReferenceEquals(ProfileChallenge, challenge) && !token.IsCancellationRequested, + () => Owner.CancelOperationCommand.Execute(null)); + using var registration = token.Register(() => + { + challenge.Cancel(token); + Owner.Dispatch(() => ClearProfileChallenge(token, challenge)); + }); + Owner.Dispatch(() => + { + if (!IsCurrentAuthentication(generation) || token.IsCancellationRequested) { challenge.Cancel(token); return; } + ClearProfileChallenge(new CancellationToken(true)); + ProfileChallenge = challenge; + }); + try { return await challenge.Completion.ConfigureAwait(false); } + finally { Owner.Dispatch(() => ClearProfileChallenge(token, challenge)); } + } + private void ClearProfileChallenge(CancellationToken token, AuthenticationProfileChallengeViewModel? expected = null) + { + if (ProfileChallenge is not { } current || (expected is not null && !ReferenceEquals(current, expected))) return; + current.Cancel(token); + current.NotifyCompleted(); + ProfileChallenge = null; + } + internal void OnNavigatingAway() + { + CancelAccountAppearanceWork(); + Password = ""; + if (_authenticationActive) Owner.CancelOperationCommand.Execute(null); + } + internal void CancelAuthenticationState(CancellationToken token) + { + CancelAccountAppearanceWork(); + if (!_authenticationActive && ProfileChallenge is null && _challenge is null) return; + ++_authenticationGeneration; + _authenticationActive = false; + ClearProfileChallenge(token); + SetChallenge(null); + Password = ""; + OnPropertyChanged(nameof(IsAuthenticating)); + } + private void SetChallenge(DeviceCodeChallenge? challenge) + { + if (_challenge == challenge) return; + _challenge = challenge; + DeviceAutomationStatus = ""; + OnPropertyChanged(nameof(HasDeviceChallenge)); OnPropertyChanged(nameof(ShowMicrosoftLoginForm)); OnPropertyChanged(nameof(DeviceCode)); OnPropertyChanged(nameof(DeviceInstructions)); + OpenVerificationCommand.NotifyCanExecuteChanged(); + } + public override void Refresh(LauncherSnapshot snapshot) + { + _refreshing = true; + try + { + if (!Accounts.SequenceEqual(snapshot.Accounts)) { Accounts.Clear(); foreach (var account in snapshot.Accounts) Accounts.Add(account); } + SelectedAccount = Accounts.FirstOrDefault(a => a.Id == snapshot.SelectedAccountId); + RefreshAccountPanel(); + RefreshAccountAppearanceRows(); + OnPropertyChanged(nameof(AccountDetail)); OnPropertyChanged(nameof(PersistenceSummary)); OnPropertyChanged(nameof(NeedsCredentialAuthorization)); + } + finally { _refreshing = false; } + base.Refresh(snapshot); + } +} + +internal sealed class DispatchProgress(Action report) : IProgress +{ + public void Report(T value) => report(value); +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/AuthenticationProfileChallengeViewModel.cs b/src/SHOU.Launcher.Desktop/ViewModels/AuthenticationProfileChallengeViewModel.cs new file mode 100644 index 00000000..a3fc64b8 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/AuthenticationProfileChallengeViewModel.cs @@ -0,0 +1,53 @@ +using CommunityToolkit.Mvvm.ComponentModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +/// A single nonsecret role-selection challenge. Commands cannot complete a later challenge. +public sealed class AuthenticationProfileChallengeViewModel : ObservableObject +{ + private readonly TaskCompletionSource _completion = new(TaskCreationOptions.RunContinuationsAsynchronously); + private readonly Func _isCurrent; + private AuthenticationProfileChoice? _selectedChoice; + public IReadOnlyList Choices { get; } + public AuthenticationProfileChoice? SelectedChoice + { + get => _selectedChoice; + set + { + if (!IsPending || !_isCurrent()) return; + if (value is not null && !Choices.Any(c => c.Id == value.Id)) return; + if (SetProperty(ref _selectedChoice, value)) ConfirmCommand.NotifyCanExecuteChanged(); + } + } + public bool IsPending => !_completion.Task.IsCompleted; + public RelayCommand ConfirmCommand { get; } + public RelayCommand CancelCommand { get; } + internal Task Completion => _completion.Task; + + internal AuthenticationProfileChallengeViewModel(IReadOnlyList choices, + Func isCurrent, Action cancelAuthentication) + { + Choices = choices.ToArray(); + _isCurrent = isCurrent; + ConfirmCommand = new(() => + { + if (!CanConfirm()) return; + _completion.TrySetResult(SelectedChoice!.Id); + NotifyCompleted(); + }, CanConfirm); + CancelCommand = new(() => { if (IsPending && _isCurrent()) cancelAuthentication(); }, () => IsPending && _isCurrent()); + } + private bool CanConfirm() => IsPending && _isCurrent() && SelectedChoice is { } choice && Choices.Any(c => c.Id == choice.Id); + internal void Cancel(CancellationToken token) + { + _completion.TrySetCanceled(token.IsCancellationRequested ? token : new CancellationToken(true)); + } + internal void NotifyCompleted() + { + OnPropertyChanged(nameof(IsPending)); + ConfirmCommand.NotifyCanExecuteChanged(); + CancelCommand.NotifyCanExecuteChanged(); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/BundledLicenseDocuments.cs b/src/SHOU.Launcher.Desktop/ViewModels/BundledLicenseDocuments.cs new file mode 100644 index 00000000..ab51f088 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/BundledLicenseDocuments.cs @@ -0,0 +1,45 @@ +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public static class BundledLicenseDocuments +{ + // Keep the existing bounded, top-level document list. Runtime package catalogs stay in the bundle. + public static IReadOnlyList Read(string executableDirectory) + { + using var embedded = typeof(BundledLicenseDocuments).Assembly.GetManifestResourceStream("SHOU.Desktop.Documents.zip"); + if (embedded is not null) + { + using var archive = new System.IO.Compression.ZipArchive(embedded); + return archive.Entries.Where(e => e.Name.Length > 0 && e.Length <= 1024 * 1024 + && (e.FullName is "LICENSE" or "LICENCE" || e.FullName.StartsWith("licenses/", StringComparison.Ordinal) + && e.FullName.Count(c => c == '/') == 1 && Path.GetExtension(e.Name) is ".txt" or ".md")) + .Take(100).Select(e => { using var reader = new StreamReader(e.Open()); return new LicenseDocument(e.Name, reader.ReadToEnd()); }).ToArray(); + } + var executable = new DirectoryInfo(Path.TrimEndingDirectorySeparator(Path.GetFullPath(executableDirectory))); + var roots = new List { executable.FullName }; + if (executable.Name == "MacOS" && executable.Parent is { Name: "Contents" } contents && contents.Parent?.Extension == ".app") + roots.Insert(0, Path.Combine(contents.FullName, "Resources")); + var documents = new List(); var seen = new HashSet(StringComparer.OrdinalIgnoreCase); + foreach (var root in roots) + { + try + { + if (!Directory.Exists(root)) continue; SafePath.RejectLinks(root); + var licenses = Path.Combine(root, "licenses"); + IEnumerable files = []; + if (Directory.Exists(licenses)) { SafePath.RejectLinks(licenses); files = new DirectoryInfo(licenses).EnumerateFiles().ToArray(); } + files = files.Concat(new[] { "LICENSE", "LICENCE", "LICENSE.txt", "ThirdPartyNotices.txt", "THIRDPARTYNOTICES.txt" }.Select(n => new FileInfo(Path.Combine(root, n))).Where(f => f.Exists)); + foreach (var file in files.OrderBy(f => f.Name)) + { + if (documents.Count >= 100) return documents; + if (file.LinkTarget is not null || file.Length > 1024 * 1024 || file.Extension.ToLowerInvariant() is not (".txt" or ".md" or "") || !seen.Add(file.Name)) continue; + try { SafePath.RejectLinks(file.FullName); documents.Add(new(file.Name, File.ReadAllText(file.FullName))); } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { } + } + } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { } + } + return documents; + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/ContentProjectRowViewModel.Favorites.cs b/src/SHOU.Launcher.Desktop/ViewModels/ContentProjectRowViewModel.Favorites.cs new file mode 100644 index 00000000..fc7e1930 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/ContentProjectRowViewModel.Favorites.cs @@ -0,0 +1,25 @@ +using CommunityToolkit.Mvvm.Input; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class ContentProjectRowViewModel +{ + private string favoriteNote = "", favoriteNoteDraft = ""; private bool editingFavoriteNote; + public string FavoriteNote => favoriteNote; + public bool HasFavoriteNote => favoriteNote.Length > 0; + public string FavoriteNoteDraft { get => favoriteNoteDraft; set => SetProperty(ref favoriteNoteDraft, value ?? ""); } + public bool IsEditingFavoriteNote { get => editingFavoriteNote; private set => SetProperty(ref editingFavoriteNote, value); } + public RelayCommand EditFavoriteNoteCommand { get; private set; } = null!; + public RelayCommand CancelFavoriteNoteCommand { get; private set; } = null!; + public AsyncRelayCommand SaveFavoriteNoteCommand { get; private set; } = null!; + public AsyncRelayCommand RemoveFavoriteCommand { get; private set; } = null!; + private void InitializeFavoriteRow(DownloadsPageViewModel owner) + { + PropertyChanged += (_, e) => { if (e.PropertyName == nameof(IsSelected)) owner.FavoriteSelectionChanged(); }; + EditFavoriteNoteCommand = new(() => { FavoriteNoteDraft = FavoriteNote; IsEditingFavoriteNote = true; }); + CancelFavoriteNoteCommand = new(() => { FavoriteNoteDraft = FavoriteNote; IsEditingFavoriteNote = false; }); + SaveFavoriteNoteCommand = new(async () => { if (await owner.SaveFavoriteNoteAsync(this, FavoriteNoteDraft)) IsEditingFavoriteNote = false; }); + RemoveFavoriteCommand = new(() => owner.RemoveFavoriteRowAsync(this)); + } + internal void SetFavoriteNote(string value) { SetProperty(ref favoriteNote, value, nameof(FavoriteNote)); OnPropertyChanged(nameof(HasFavoriteNote)); FavoriteNoteDraft = value; IsEditingFavoriteNote = false; } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/CrashAnalysisViewModel.cs b/src/SHOU.Launcher.Desktop/ViewModels/CrashAnalysisViewModel.cs new file mode 100644 index 00000000..35a49ca6 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/CrashAnalysisViewModel.cs @@ -0,0 +1,53 @@ +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed class CrashAnalysisViewModel : PageViewModel, IDisposable +{ + private readonly CancellationTokenSource lifetime = new(); + private CrashAnalysisReport? report, lastAutomatic; + private bool busy, disposed; + private string text = "选择游戏日志或崩溃报告 ZIP,按旧版规则分析原因。"; + public CrashAnalysisViewModel(MainWindowViewModel owner) : base(owner, "崩溃分析", "游戏日志与错误报告") + { + AnalyzeInstanceCommand = AsyncCommand(async () => + { + if (Service.Snapshot.SelectedInstanceId is { } id) await AnalyzeAsync(ct => ((ICrashAnalysisService)Service).AnalyzeInstanceCrashAsync(id, Language, ct)); + }, () => CanAnalyze && Service.Snapshot.SelectedInstanceId is not null); + OpenInstanceSettingsCommand = Command(() => + { + if (report?.InstanceId is { } id && Service.Snapshot.Instances.FirstOrDefault(i => i.Id == id) is { } instance) + { Owner.Instances.SelectedInstance = instance; Owner.SelectedPage = Owner.Instances; } + }, () => HasInstanceAction); + } + public bool CanAnalyze => !disposed && !busy && Owner.CanMutate && Service is ICrashAnalysisService; + public bool HasReport => report is not null; + public bool HasInstanceAction => report?.SuggestInstanceSettings == true && report.InstanceId is not null; + public string AnalysisText { get => text; private set => SetProperty(ref text, value); } + private string Language => Localization.UiLocalization.Instance.Locale; + public AsyncRelayCommand AnalyzeInstanceCommand { get; } + public RelayCommand OpenInstanceSettingsCommand { get; } + public Task AnalyzeFilesAsync(IReadOnlyList files) => AnalyzeAsync(ct => ((ICrashAnalysisService)Service).AnalyzeCrashFilesAsync(files, Language, ct)); + private async Task AnalyzeAsync(Func> analyze) + { + if (!CanAnalyze) return; + busy = true; NotifyCommands(); + try + { + CrashAnalysisReport? result = null; + if (await Owner.RunInlineAsync("分析崩溃日志", async ct => + { using var linked = CancellationTokenSource.CreateLinkedTokenSource(ct, lifetime.Token); result = await analyze(linked.Token); }) && !disposed && result is not null) Show(result); + } + finally { busy = false; NotifyCommands(); } + } + private void Show(CrashAnalysisReport result) + { + report = result; + AnalysisText = result.Text; + OnPropertyChanged(nameof(HasReport)); OnPropertyChanged(nameof(HasInstanceAction)); NotifyCommands(); + } + public Task ExportAsync(string path) => report is { } current ? Owner.RunControlAsync("导出错误报告", ct => ((ICrashAnalysisService)Service).ExportCrashAnalysisAsync(current, path, ct)) : Task.CompletedTask; + public override void Refresh(LauncherSnapshot snapshot) { if (snapshot.LastCrash is { } last && !ReferenceEquals(last, lastAutomatic)) { lastAutomatic = last; Show(last); } base.Refresh(snapshot); } + public void Dispose() { disposed = true; lifetime.Cancel(); lifetime.Dispose(); } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Browsing.cs b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Browsing.cs new file mode 100644 index 00000000..666464da --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Browsing.cs @@ -0,0 +1,151 @@ +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class DownloadsPageViewModel +{ + private sealed class BrowseRead(string label, bool page, CancellationToken token) + { + public string Label { get; } = label; + public bool Page { get; } = page; + public CancellationTokenSource Cancellation { get; } = CancellationTokenSource.CreateLinkedTokenSource(token); + } + private sealed record SearchDraft(string Query, string Game, string Loader, ContentSortChoice Sort, string Category, string Source, + int Offset, bool Completed, DateTimeOffset Fetched, ContentProject[] Projects, string Status, bool ShowStatus); + private readonly Dictionary _browseReads = new(StringComparer.Ordinal); + private readonly Dictionary _searchDrafts = new(StringComparer.Ordinal); + private CancellationTokenSource? _filterDelay; + private bool _searchRequested, _restoringSearch; + private DateTimeOffset _searchFetched; + public RelayCommand CancelBrowseCommand { get; private set; } = null!; + public bool IsPageLoading => _browseReads.Values.Any(r => r.Page); + public string PageLoadingText => _browseReads.Values.FirstOrDefault(r => r.Page)?.Label + "…"; + public bool ShowFullPageLoading => IsPageLoading && (IsCatalogPage && !HasCatalog + || IsResourceDetail && !HasReleases || IsPackageDetail && MinecraftPackages.Count == 0 || IsInstallerPage && !HasInstallerVersions); + public bool ShowLoadingBadge => IsPageLoading && !ShowFullPageLoading; + + private void InitializeBrowsing() => CancelBrowseCommand = Command(() => + { + CancelBrowseReads(reportCancelled: true); + SetRequestStatus("查询已取消,可重试。"); + NotifyCommands(); + }); + + private void NotifyBrowseState() + { + _loading = _browseReads.Count > 0; + foreach (var name in new[] { nameof(IsLoading), nameof(IsPageLoading), nameof(ShowFullPageLoading), nameof(ShowLoadingBadge), nameof(PageLoadingText) }) OnPropertyChanged(name); + } + private void CancelBrowseReads(bool reportCancelled = false) + { + _catalogRequestActive = false; _searchRequested = false; + _filterDelay?.Cancel(); _filterDelay = null; + foreach (var read in _browseReads.Values.ToArray()) read.Cancellation.Cancel(); + foreach (var loader in AdditionalLoaders.Where(x => x.IsLoading)) + { loader.IsLoading = false; if (reportCancelled) loader.Status = "已取消,可重试。"; } + if (FabricLoading && reportCancelled) FabricStatus = "已取消,可重试。"; + FabricLoading = false; + _browseReads.Clear(); NotifyBrowseState(); + } + public void OnNavigatingAway() + { + InvalidateFavoriteDownload(); + SaveSearchDraft(); ++_requestRevision; CancelBrowseReads(); + _catalogRequestActive = false; + foreach (var loader in AdditionalLoaders) loader.IsLoading = false; + FabricLoading = false; + } + private async Task ReadBrowseAsync(string label, int revision, Func action, + string key = "page", bool page = true, Action? failure = null) + { + if (!CanQuery) return false; + if (_browseReads.TryGetValue(key, out var previous)) previous.Cancellation.Cancel(); + using var read = new DisposableRead(new(label, page, _imageToken)); + var request = read.Value; + request.Cancellation.CancelAfter(TimeSpan.FromSeconds(45)); + _browseReads[key] = request; + if (page) SetRequestStatus("", false); + NotifyBrowseState(); NotifyCommands(); + bool Current() => !_disposed && revision == _requestRevision && _browseReads.GetValueOrDefault(key) == request; + try { await action(request.Cancellation.Token); return Current() && !request.Cancellation.IsCancellationRequested; } + catch (Exception ex) + { + if (Current()) + { + var message = ex is OperationCanceledException ? "读取超时,请重试。" : UiPrivacy.Redact(ex.Message); + if (failure is not null) failure(message); else SetRequestStatus(message); + } + return false; + } + finally + { + if (_browseReads.GetValueOrDefault(key) == request) _browseReads.Remove(key); + NotifyBrowseState(); NotifyCommands(); + } + } + private sealed class DisposableRead(BrowseRead value) : IDisposable + { public BrowseRead Value { get; } = value; public void Dispose() => Value.Cancellation.Dispose(); } + + private void SaveSearchDraft() + { + if (!IsSearchPage && !IsResourceDetail) return; + _searchDrafts[SelectedCategory.Id] = new(QueryText, GameVersionFilter, LoaderFilter, SelectedSort, SelectedContentCategory.Id, SelectedSource.Id, _searchOffset, + _searchCompleted, _searchFetched, Projects.Select(p => p.Project).ToArray(), RequestStatus, ShowRequestStatus); + } + private void RestoreSearchDraft(string category) + { + _restoringSearch = true; + try + { + _searchDrafts.TryGetValue(category, out var draft); + QueryText = draft?.Query ?? ""; GameVersionFilter = draft?.Game ?? ""; LoaderFilter = draft?.Loader ?? "任意"; + SelectedSource = ContentSourceChoices.FirstOrDefault(s => s.Id == draft?.Source) ?? ContentSourceChoices[0]; + SelectedSort = draft?.Sort ?? SortChoices[0]; + _contentCategory = new(draft?.Category ?? "", CategoryName(draft?.Category ?? "")); UpdateContentCategories(); + _searchOffset = draft?.Offset ?? 0; _searchCompleted = draft?.Completed ?? false; _searchFetched = draft?.Fetched ?? DateTimeOffset.MinValue; + ClearProjectRows(Projects); + foreach (var project in draft?.Projects ?? []) Projects.Add(new(this, project)); + SetRequestStatus(draft?.Status ?? "", draft?.ShowStatus ?? false); + } + finally { _restoringSearch = false; } + } + private void FiltersChanged() + { + if (_restoringSearch || _disposed || (!IsSearchPage && !IsResourceDetail)) return; + _filterDelay?.Cancel(); + var delay = CancellationTokenSource.CreateLinkedTokenSource(_imageToken); _filterDelay = delay; + _ = RefreshFiltersAfterDelayAsync(delay); + } + private async Task RefreshFiltersAfterDelayAsync(CancellationTokenSource delay) + { + try + { + await Task.Delay(350, delay.Token); + if (!ReferenceEquals(Owner.SelectedPage, this) || _disposed) return; + if (IsResourceDetail) await RefreshReleasesAsync(); + else { _searchRequested = true; TryStartSearchRequest(); } + } + catch (OperationCanceledException) when (delay.IsCancellationRequested) { } + finally { if (_filterDelay == delay) _filterDelay = null; delay.Dispose(); } + } + private void TryStartSearchRequest() + { + if (!_searchRequested || !CanQuery || !IsSearchPage || !SearchSupported || !ReferenceEquals(Owner.SelectedPage, this)) return; + _searchRequested = false; _ = SearchAsync(0); + } + private void RestoreSearchIcons() + { + if (_catalog is null || !CanQuery || !IsSearchPage || _browseReads.ContainsKey("cached-icons") || Projects.All(p => p.HasIcon || string.IsNullOrWhiteSpace(p.Project.IconUrl))) return; + var rows = Projects.ToArray(); var revision = _requestRevision; + _ = ReadBrowseAsync("读取资源图标", revision, ct => Task.WhenAll(rows.Select(p => p.LoadIconAsync(_catalog, _imageGate, ct))), + "cached-icons", page: false, failure: _ => { }); + } + private void RestoreFavoriteIcons() + { + if (_catalog is null || !CanQuery || !IsFavoritesPage || _browseReads.ContainsKey("favorite-icons")) return; + var rows = FavoriteProjects.Where(p => !p.HasIcon && !string.IsNullOrWhiteSpace(p.Project.IconUrl)).ToArray(); + if (rows.Length == 0) return; + _ = ReadBrowseAsync("读取收藏图标", _requestRevision, ct => Task.WhenAll(rows.Select(p => p.LoadIconAsync(_catalog, _imageGate, ct))), "favorite-icons", page: false, failure: _ => { }); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Categories.cs b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Categories.cs new file mode 100644 index 00000000..00396853 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Categories.cs @@ -0,0 +1,56 @@ +using System.Collections.ObjectModel; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record ContentCategoryChoice(string Id, string Name); +public sealed partial class DownloadsPageViewModel +{ + private IReadOnlyList? _contentCategories; + private ContentCategoryChoice _contentCategory = new("", "全部"); + private string _categoryStatus = ""; + public ObservableCollection ContentCategoryChoices { get; } = [new("", "全部")]; + public bool HasContentCategoryChoices => ContentCategoryChoices.Count > 1; + public string CategoryStatus { get => _categoryStatus; private set => SetProperty(ref _categoryStatus, value); } + public ContentCategoryChoice SelectedContentCategory + { + get => _contentCategory; + set { if (value is not null && SetProperty(ref _contentCategory, value)) FiltersChanged(); } + } + private void UpdateContentCategories() + { + var wasRestoring = _restoringSearch; _restoringSearch = true; + try { + var selected = _contentCategory.Id; + ContentCategoryChoices.Clear(); ContentCategoryChoices.Add(new("", "全部")); + var kind = SelectedCategory.Id == "datapack" ? "mod" : SelectedCategory.Id; + foreach (var tag in (_contentCategories ?? []).Where(c => (c.Source == "curseforge" ? c.Kind == SelectedCategory.Id : c.Kind == kind) && (SelectedSource.Id == "all" || c.Source == SelectedSource.Id)).OrderBy(c => c.Name ?? c.Id, StringComparer.Ordinal)) + if (!LoaderFilters.Any(l => l.Equals(tag.Id, StringComparison.OrdinalIgnoreCase)) && tag.Id != "datapack") ContentCategoryChoices.Add(new(tag.Id, (tag.Name ?? CategoryName(tag.Id)) + (SelectedSource.Id == "all" ? tag.Source == "curseforge" ? " (CurseForge)" : " (Modrinth)" : ""))); + _contentCategory = ContentCategoryChoices.FirstOrDefault(c => c.Id == selected) ?? ContentCategoryChoices[0]; + OnPropertyChanged(nameof(SelectedContentCategory)); OnPropertyChanged(nameof(HasContentCategoryChoices)); + } finally { _restoringSearch = wasRestoring; } + } + private async Task ReadContentCategoriesAsync(int revision) + { + if (_contentCategories is not null) { UpdateContentCategories(); return; } + if ((_catalog as IContentCategoryCatalogService ?? Service as IContentCategoryCatalogService) is not { } service) return; + await ReadBrowseAsync("获取资源标签", revision, async ct => + { + var categories = await service.GetContentCategoriesAsync(ct); ct.ThrowIfCancellationRequested(); + if (_disposed) return; + _contentCategories = categories; CategoryStatus = ""; + if (IsSearchPage) UpdateContentCategories(); + }, "categories", page: false, failure: message => CategoryStatus = message); + } + internal static string CategoryName(string id) => id switch + { + "optimization" => "性能优化", "library" => "支持库", "adventure" => "冒险", "decoration" => "装饰", + "worldgen" => "世界生成", "technology" => "科技", "magic" => "魔法", "utility" => "实用", "management" => "管理", + "storage" => "存储", "mobs" => "生物", "equipment" => "装备", "transportation" => "交通", "food" => "食物", + "game-mechanics" => "游戏机制", "social" => "社交", + "vanilla-like" => "原版风", "modded" => "兼容模组", "locale" => "含语言", "cursed" => "奇趣", + "colored-lighting" => "彩色光照", "fantasy" => "幻想风", "semi-realistic" => "半写实", "realistic" => "写实", + "potato" => "极低配", "low" => "低配", "medium" => "中配", "high" => "高配", "ultra" => "高画质", + "bloom" => "泛光", "cartoon" => "卡通风", "shadows" => "阴影", _ => id + }; +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Description.cs b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Description.cs new file mode 100644 index 00000000..347bb236 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Description.cs @@ -0,0 +1,26 @@ +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class DownloadsPageViewModel +{ + private string translatedDescription = ""; + public string TranslatedDescription { get => translatedDescription; private set { SetProperty(ref translatedDescription, value); OnPropertyChanged(nameof(HasTranslatedDescription)); } } + public bool HasTranslatedDescription => TranslatedDescription.Length > 0; + public bool CanTranslateDescription => Localization.UiLocalization.Instance.Locale == "zh-CN" && Service is IContentDescriptionService; + public bool HasWikiReference => Localization.UiLocalization.Instance.Locale == "zh-CN" && _selectedProject is { } project && ContentReferenceIndex.Find(project) is not null; + private AsyncRelayCommand? translateDescriptionCommand, openWikiReferenceCommand; + public AsyncRelayCommand TranslateDescriptionCommand => translateDescriptionCommand ??= new(TranslateDescriptionAsync); + public AsyncRelayCommand OpenWikiReferenceCommand => openWikiReferenceCommand ??= new(() => _selectedProject is { } project && ContentReferenceIndex.Find(project) is { } reference ? Owner.RunControlAsync("打开 MC 百科", ct => Owner.ExternalLauncher.OpenUriAsync(reference.PageUri, ct)) : Task.CompletedTask); + private async Task TranslateDescriptionAsync() + { + if (_selectedProject is not { } project || Service is not IContentDescriptionService service) return; + var revision = _requestRevision; + await ReadBrowseAsync("翻译简介", revision, async ct => + { var text = await service.GetChineseContentDescriptionAsync(project, ct); if (revision == _requestRevision && _selectedProject == project && !ct.IsCancellationRequested) TranslatedDescription = text ?? "暂无中文翻译。"; }, "description", page: false, failure: message => TranslatedDescription = message); + } + private void ResetProjectDescription() + { TranslatedDescription = ""; OnPropertyChanged(nameof(CanTranslateDescription)); OnPropertyChanged(nameof(HasWikiReference)); } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.FavoriteDownloads.cs b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.FavoriteDownloads.cs new file mode 100644 index 00000000..f43c324f --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.FavoriteDownloads.cs @@ -0,0 +1,75 @@ +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class DownloadsPageViewModel +{ + private ContentProject[] favoriteDownloadProjects = []; + private Dictionary> favoriteDownloadReleases = []; + private string favoriteBatchLoader = "", favoriteBatchVersion = "", favoriteBatchStatus = ""; + private IReadOnlyList favoriteBatchLoaders = [], favoriteBatchVersions = []; + private int favoriteBatchRevision; + private CancellationTokenSource? favoriteBatchRead; + public string FavoriteBatchIdentity => favoriteBatchRevision + "|" + FavoriteBatchLoader + "|" + FavoriteBatchVersion; + public string FavoriteBatchSummary { get { try { return CanSaveFavoriteBatch ? string.Join("\n", FavoriteDownloads.Plan(favoriteDownloadProjects, favoriteDownloadReleases, FavoriteBatchLoader, FavoriteBatchVersion).Select(e => e.Title + " → " + e.DestinationName)) : ""; } catch (Exception ex) when (ex is IOException or InvalidDataException or ArgumentException) { return UiPrivacy.Redact(ex.Message); } } } + public IReadOnlyList FavoriteBatchLoaders => favoriteBatchLoaders; + public IReadOnlyList FavoriteBatchVersions => favoriteBatchVersions; + public string FavoriteBatchLoader { get => favoriteBatchLoader; set { if (SetProperty(ref favoriteBatchLoader, value ?? "")) { FavoriteBatchVersion = ""; favoriteBatchVersions = FavoriteDownloads.CommonVersions(favoriteDownloadProjects, favoriteDownloadReleases, FavoriteBatchLoader); OnPropertyChanged(nameof(FavoriteBatchVersions)); FavoriteBatchVersion = FavoriteBatchVersions.FirstOrDefault() ?? ""; } } } + public string FavoriteBatchVersion { get => favoriteBatchVersion; set { if (SetProperty(ref favoriteBatchVersion, value ?? "")) { OnPropertyChanged(nameof(CanSaveFavoriteBatch)); OnPropertyChanged(nameof(FavoriteBatchSummary)); } } } + public string FavoriteBatchStatus { get => favoriteBatchStatus; private set => SetProperty(ref favoriteBatchStatus, value); } + public bool HasFavoriteBatch => favoriteDownloadProjects.Length > 0; + public bool CanSaveFavoriteBatch => HasFavoriteBatch && FavoriteBatchVersions.Contains(FavoriteBatchVersion) && FavoriteBatchLoaders.Contains(FavoriteBatchLoader) && CanEdit; + public AsyncRelayCommand PrepareFavoriteDownloadCommand { get; private set; } = null!; + public RelayCommand CancelFavoriteDownloadCommand { get; private set; } = null!; + private void InitializeFavoriteDownloads() + { + PrepareFavoriteDownloadCommand = new(PrepareFavoriteDownloadAsync, () => CanQuery && HasFavoriteSelection); + CancelFavoriteDownloadCommand = new(InvalidateFavoriteDownload); + } + private void InvalidateFavoriteDownload() + { + ++favoriteBatchRevision; favoriteBatchRead?.Cancel(); favoriteDownloadProjects = []; favoriteDownloadReleases.Clear(); favoriteBatchLoaders = []; favoriteBatchVersions = []; FavoriteBatchLoader = ""; FavoriteBatchVersion = ""; + foreach (var name in new[] { nameof(HasFavoriteBatch), nameof(CanSaveFavoriteBatch), nameof(FavoriteBatchLoaders), nameof(FavoriteBatchVersions), nameof(FavoriteBatchSummary) }) OnPropertyChanged(name); + PrepareFavoriteDownloadCommand?.NotifyCanExecuteChanged(); + } + private async Task PrepareFavoriteDownloadAsync() + { + var projects = CurrentFavoriteRows.Where(r => r.IsSelected).Select(r => r.Project).ToArray(); if (projects.Length == 0 || _catalog is null) return; + InvalidateFavoriteDownload(); + var revision = favoriteBatchRevision; var releases = new Dictionary>(); var failed = new List(); + FavoriteBatchStatus = ""; + var success = await Owner.RunAsync("读取收藏共同版本", async ct => + { + using var read = CancellationTokenSource.CreateLinkedTokenSource(ct); favoriteBatchRead = read; ct = read.Token; + using var gate = new SemaphoreSlim(4); + await Task.WhenAll(projects.Select(async project => + { + await gate.WaitAsync(ct); + try { var versions = await _catalog.GetContentReleasesAsync(project.Id, cancellationToken: ct); lock (releases) releases[project.Id] = versions; } + catch (Exception ex) when (ex is IOException or InvalidDataException or HttpRequestException or InvalidOperationException or ArgumentException) { lock (failed) failed.Add(project.Title); } + finally { gate.Release(); } + })); + }); + favoriteBatchRead = null; + if (!success || revision != favoriteBatchRevision) return; + if (failed.Count > 0) { FavoriteBatchStatus = Localization.UiLocalization.Instance.Format("未能读取所选项目,未下载:{0}", string.Join(", ", failed)); FavoriteStatus = FavoriteBatchStatus; return; } + favoriteDownloadProjects = projects; favoriteDownloadReleases = releases; + // Publish stable choices before selecting; replacing ItemsSource after selection clears Avalonia's selection. + favoriteBatchLoaders = FavoriteDownloads.CommonLoaders(projects, releases); OnPropertyChanged(nameof(FavoriteBatchLoaders)); FavoriteBatchLoader = FavoriteBatchLoaders.FirstOrDefault() ?? ""; + FavoriteBatchStatus = FavoriteBatchVersion.Length == 0 ? "所选收藏没有共同支持的加载器或游戏版本。" : "选择共同版本和保存目录后下载;仅保存文件,不安装到实例。所选版本可能包含测试版。"; + foreach (var name in new[] { nameof(HasFavoriteBatch), nameof(CanSaveFavoriteBatch), nameof(FavoriteBatchSummary) }) OnPropertyChanged(name); + } + public async Task SaveFavoriteDownloadAsync(string directory, string? expectedIdentity = null) + { + if (!CanSaveFavoriteBatch || _catalog is null || expectedIdentity is not null && expectedIdentity != FavoriteBatchIdentity) return; + var plan = FavoriteDownloads.Plan(favoriteDownloadProjects, favoriteDownloadReleases, FavoriteBatchLoader, FavoriteBatchVersion); + FavoriteDownloadResult? result = null; FavoriteBatchStatus = ""; + Owner.ShowTaskNotification(this, "收藏批量下载", "已开始下载;点击查看下载过程。"); + if (!await Owner.RunBackgroundInstallAsync("批量下载收藏", async ct => result = Service is IContentBatchDownloadService batch ? await batch.DownloadFavoriteFilesAsync(plan, directory, ct) : await FavoriteDownloads.ExportAsync(plan, directory, _catalog.DownloadContentAsync, ct), ex => FavoriteBatchStatus = UiPrivacy.Redact(ex.Message))) + { if (FavoriteBatchStatus.Length == 0) FavoriteBatchStatus = Owner.ErrorMessage ?? "下载已取消或失败;已完成的文件保留。"; Owner.ShowTaskNotification(this, "收藏批量下载", FavoriteBatchStatus); return; } + FavoriteBatchStatus = Localization.UiLocalization.Instance.Format("已保存 {0} 个文件,复用 {1} 个文件。", result!.Added, result.Reused) + (result.Failures.Count > 0 ? " " + Localization.UiLocalization.Instance.Format("未完成:{0}", string.Join(";", result.Failures.Select(f => f.Name + ":" + UiPrivacy.Redact(f.Reason)))) : ""); + Owner.ShowTaskNotification(this, "收藏批量下载", FavoriteBatchStatus); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Favorites.cs b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Favorites.cs new file mode 100644 index 00000000..d91bbd16 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Favorites.cs @@ -0,0 +1,158 @@ +using System.Collections.ObjectModel; +using System.Text.Json; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record FavoriteKindGroup(string Title, IReadOnlyList Projects) { public int Count => Projects.Count; } +public sealed partial class DownloadsPageViewModel +{ + private string FavoritesPath => _favoritesPathOverride ?? SafePath.Within(Service.Paths.DataDirectory, "preferences/download-favorites.json"); + public ObservableCollection FavoriteFolders { get; } = []; + private FavoriteFolder? favoriteFolder, favoriteDestination; + private string favoriteQuery = "", favoriteFolderName = "", favoriteShareCode = "", deletingFavoriteFolder = ""; + public FavoriteFolder? SelectedFavoriteFolder { get => favoriteFolder; set { if (SetProperty(ref favoriteFolder, value)) { foreach (var row in FavoriteProjects) { row.IsSelected = false; row.SetFavoriteNote(value?.Notes?.GetValueOrDefault(row.Project.Id) ?? ""); } deletingFavoriteFolder = ""; FavoriteFolderName = value?.Name ?? ""; FavoriteDestinationFolder = FavoriteFolders.FirstOrDefault(f => f.Id != value?.Id); NotifyFavoriteFilter(); OnPropertyChanged(nameof(IsProjectFavorite)); OnPropertyChanged(nameof(FavoriteAction)); } } } + public FavoriteFolder? FavoriteDestinationFolder { get => favoriteDestination; set => SetProperty(ref favoriteDestination, value); } + public string FavoriteFolderName { get => favoriteFolderName; set => SetProperty(ref favoriteFolderName, value ?? ""); } + public string FavoriteShareCode { get => favoriteShareCode; set => SetProperty(ref favoriteShareCode, value ?? ""); } + public string FavoriteQuery { get => favoriteQuery; set { if (SetProperty(ref favoriteQuery, value ?? "")) NotifyFavoriteFilter(); } } + private IEnumerable CurrentFavoriteRows => FavoriteProjects.Where(p => SelectedFavoriteFolder?.Projects.Contains(p.Project.Id) ?? true); + public IReadOnlyList FilteredFavoriteProjects => CurrentFavoriteRows.Select(p => (Row: p, Score: FavoriteData.SearchScore(p.Project, p.FavoriteNote, FavoriteQuery))).Where(p => p.Score > 0).OrderByDescending(p => p.Score).Select(p => p.Row).ToArray(); + public IReadOnlyList FavoriteGroups => FilteredFavoriteProjects.GroupBy(r => FavoriteQuery.Trim().Length > 0 ? "search" : r.Project.Kind).Select(g => new FavoriteKindGroup((g.Key switch { "mod" => "模组", "modpack" => "整合包", "resourcepack" => "资源包", "shader" => "光影包", "datapack" => "数据包", "world" => "世界", "search" => "搜索结果", _ => "其他资源" }), g.ToArray())).ToArray(); + public string[] UnresolvedFavorites => SelectedFavoriteFolder?.Unresolved ?? []; + public bool HasUnresolvedFavorites => UnresolvedFavorites.Length > 0; + public string UnresolvedFavoriteSummary => Localization.UiLocalization.Instance.Format("暂未读取的收藏:{0}", string.Join(", ", UnresolvedFavorites)); + public bool IsFavoriteFolderEmpty => !CurrentFavoriteRows.Any() && !HasUnresolvedFavorites; + public bool HasNoFavoriteMatches => !IsFavoriteFolderEmpty && FavoriteQuery.Trim().Length > 0 && FilteredFavoriteProjects.Count == 0; + public bool HasFavoriteSelection => CurrentFavoriteRows.Any(r => r.IsSelected); + public bool HasFavoriteFolderDeletion => deletingFavoriteFolder.Length > 0; + public string FavoriteFolderDeletionSummary => Localization.UiLocalization.Instance.Format("删除收藏夹“{0}”及其收藏记录?其他收藏夹不受影响。", FavoriteFolders.FirstOrDefault(f => f.Id == deletingFavoriteFolder)?.Name); + public AsyncRelayCommand CreateFavoriteFolderCommand { get; private set; } = null!; + public AsyncRelayCommand RenameFavoriteFolderCommand { get; private set; } = null!; + public AsyncRelayCommand DeleteFavoriteFolderCommand { get; private set; } = null!; + public AsyncRelayCommand ConfirmDeleteFavoriteFolderCommand { get; private set; } = null!; + public RelayCommand CancelDeleteFavoriteFolderCommand { get; private set; } = null!; + public AsyncRelayCommand RemoveSelectedFavoritesCommand { get; private set; } = null!; + public AsyncRelayCommand CopySelectedFavoritesCommand { get; private set; } = null!; + public AsyncRelayCommand MoveSelectedFavoritesCommand { get; private set; } = null!; + public AsyncRelayCommand ImportFavoriteShareCommand { get; private set; } = null!; + public AsyncRelayCommand RetryUnresolvedFavoritesCommand { get; private set; } = null!; + public RelayCommand SelectAllFavoritesCommand { get; private set; } = null!; + private void InitializeFavorites() + { + bool Editable() => CanEdit && !_favoritesLoadFailed; + CreateFavoriteFolderCommand = new(() => SaveFavoritesAsync(_favorites.ToArray(), FavoriteFolders.Append(new(Guid.NewGuid().ToString("N"), FolderName(), [])).ToArray(), selectLast: true), Editable); + RenameFavoriteFolderCommand = new(() => SaveFavoritesAsync(_favorites.ToArray(), FavoriteFolders.Select(f => f.Id == SelectedFavoriteFolder?.Id ? f with { Name = FolderName() } : f).ToArray()), Editable); + DeleteFavoriteFolderCommand = new(() => { deletingFavoriteFolder = SelectedFavoriteFolder?.Id ?? ""; NotifyFavoriteFilter(); return Task.CompletedTask; }, () => Editable() && FavoriteFolders.Count > 1); + ConfirmDeleteFavoriteFolderCommand = new(DeleteFavoriteFolderAsync, Editable); + CancelDeleteFavoriteFolderCommand = new(() => { deletingFavoriteFolder = ""; NotifyFavoriteFilter(); }); + RemoveSelectedFavoritesCommand = new(RemoveSelectedFavoritesAsync, Editable); + CopySelectedFavoritesCommand = new(() => TransferFavoriteSelectionAsync(false), Editable); MoveSelectedFavoritesCommand = new(() => TransferFavoriteSelectionAsync(true), Editable); + ImportFavoriteShareCommand = new(() => ImportLegacyFavoritesAsync(FavoriteShareCode, false), Editable); + RetryUnresolvedFavoritesCommand = new(() => ImportLegacyFavoritesAsync(JsonSerializer.Serialize(UnresolvedFavorites), false), Editable); + SelectAllFavoritesCommand = new(() => { var rows = FilteredFavoriteProjects; var select = rows.Any(r => !r.IsSelected); foreach (var row in rows) row.IsSelected = select; }); + InitializeFavoriteDownloads(); + } + private string FolderName() => string.IsNullOrWhiteSpace(FavoriteFolderName) ? Localization.UiLocalization.Instance.Text("新收藏夹") : FavoriteFolderName.Trim(); + private void NotifyFavoriteFilter() + { foreach (var name in new[] { nameof(FilteredFavoriteProjects), nameof(FavoriteGroups), nameof(HasNoFavoriteMatches), nameof(IsFavoriteFolderEmpty), nameof(UnresolvedFavorites), nameof(HasUnresolvedFavorites), nameof(UnresolvedFavoriteSummary), nameof(HasFavoriteSelection), nameof(HasFavoriteFolderDeletion), nameof(FavoriteFolderDeletionSummary) }) OnPropertyChanged(name); } + internal void FavoriteSelectionChanged() { OnPropertyChanged(nameof(HasFavoriteSelection)); InvalidateFavoriteDownload(); } + private void LoadFavorites() + { + try + { + var path = FavoritesPath; SafePath.RejectLinks(path); + if (!File.Exists(path)) { FavoriteFolders.Add(new("default", Localization.UiLocalization.Instance.Text("默认收藏夹"), [])); SelectedFavoriteFolder = FavoriteFolders[0]; FavoriteStatus = "尚未收藏任何资源。"; return; } + if (new FileInfo(path).Length > 1048576) throw new IOException("收藏文件超过大小限制。"); + using var json = JsonDocument.Parse(File.ReadAllText(path)); + var document = json.RootElement.ValueKind == JsonValueKind.Array ? new FavoriteDocument(1, json.RootElement.Deserialize() ?? [], []) : json.RootElement.Deserialize() ?? throw new IOException("收藏文件格式无效。"); + var items = document.Projects; ValidateFavoriteProjects(items); + if (document.Version is not (1 or 2 or 3) || document.Folders is null || document.Folders.Any(f => f is null || string.IsNullOrWhiteSpace(f.Id) || string.IsNullOrWhiteSpace(f.Name) || f.Projects is null || f.Projects.Any(id => !items.Any(p => p.Id == id))) || document.Folders.Select(f => f.Id).Distinct().Count() != document.Folders.Length) throw new IOException("收藏分组格式无效。"); + foreach (var folder in document.Folders) { foreach (var id in folder.Unresolved ?? []) _ = FavoriteData.CanonicalId(id); if (folder.Notes?.Any(n => n.Value is null || !folder.Projects.Concat(folder.Unresolved ?? []).Contains(n.Key)) == true) throw new IOException("收藏备注格式无效。"); } + _favorites.AddRange(items.DistinctBy(p => p.Id)); foreach (var folder in document.Folders) FavoriteFolders.Add(folder); + if (FavoriteFolders.Count == 0) FavoriteFolders.Add(new("default", Localization.UiLocalization.Instance.Text("默认收藏夹"), items.Select(p => p.Id).ToArray())); + SelectedFavoriteFolder = FavoriteFolders[0]; RefreshFavorites(); + } + catch (Exception ex) { _favoritesLoadFailed = true; FavoriteStatus = "收藏读取失败,原文件已保留:" + UiPrivacy.Redact(ex.Message); } + } + private static void ValidateFavoriteProjects(ContentProject[] items) + { + if (items is null || items.Any(p => p is null || string.IsNullOrWhiteSpace(p.Id) || p.PageUri is null || !p.PageUri.IsAbsoluteUri || p.PageUri.Scheme != "https" || !p.PageUri.IsDefaultPort || p.PageUri.UserInfo.Length != 0 || (p.Source == "curseforge" ? !p.Id.StartsWith("cf-", StringComparison.Ordinal) || p.PageUri.Host is not ("www.curseforge.com" or "curseforge.com") : p.Source != "modrinth" || p.PageUri.Host != "modrinth.com"))) throw new IOException("收藏文件格式无效。"); + } + private void RefreshFavorites() + { + ClearProjectRows(FavoriteProjects); foreach (var project in _favorites) { var row = new ContentProjectRowViewModel(this, project); row.SetFavoriteNote(SelectedFavoriteFolder?.Notes?.GetValueOrDefault(project.Id) ?? ""); FavoriteProjects.Add(row); } + FavoriteStatus = _favorites.Count == 0 ? "尚未收藏任何资源。" : $"已保存 {_favorites.Count} 项收藏。"; + foreach (var property in new[] { nameof(HasFavorites), nameof(IsProjectFavorite), nameof(FavoriteAction) }) OnPropertyChanged(property); + NotifyFavoriteFilter(); RestoreFavoriteIcons(); InvalidateFavoriteDownload(); + } + private async Task SaveFavoritesAsync(ContentProject[] projects, FavoriteFolder[] folders, bool selectLast = false) + { + try { ValidateFavoriteProjects(projects); } catch (IOException ex) { Owner.ShowError(ex.Message); return false; } + var selected = selectLast ? folders.Last().Id : SelectedFavoriteFolder?.Id; + if (!await Owner.RunAsync("保存收藏", async ct => + { + var path = FavoritesPath; Directory.CreateDirectory(Path.GetDirectoryName(path)!); SafePath.RejectLinks(path); var temporary = path + "." + Guid.NewGuid().ToString("N") + ".tmp"; + try { var json = JsonSerializer.SerializeToUtf8Bytes(new FavoriteDocument(3, projects, folders)); if (json.Length > 1048576) throw new IOException("收藏文件超过大小限制。"); await File.WriteAllBytesAsync(temporary, json, ct); ct.ThrowIfCancellationRequested(); SafePath.RejectLinks(path); SafePath.RejectLinks(path + ".bak"); if (File.Exists(path)) File.Copy(path, path + ".bak", true); File.Move(temporary, path, true); } + finally { if (File.Exists(temporary)) File.Delete(temporary); } + })) { FavoriteStatus = Owner.ErrorMessage ?? "保存收藏已取消。"; return false; } + _favorites.Clear(); _favorites.AddRange(projects); FavoriteFolders.Clear(); foreach (var f in folders) FavoriteFolders.Add(f); SelectedFavoriteFolder = FavoriteFolders.FirstOrDefault(f => f.Id == selected) ?? FavoriteFolders.FirstOrDefault(); RefreshFavorites(); NotifyCommands(); return true; + } + private static FavoriteFolder RemoveIds(FavoriteFolder folder, HashSet ids) => folder with { Projects = folder.Projects.Where(id => !ids.Contains(id)).ToArray(), Unresolved = (folder.Unresolved ?? []).Where(id => !ids.Contains(id)).ToArray(), Notes = (folder.Notes ?? []).Where(n => !ids.Contains(n.Key)).ToDictionary() }; + private async Task ToggleFavoriteAsync() + { + if (_selectedProject is not { } project) return; var remove = IsProjectFavorite; var target = SelectedFavoriteFolder?.Id; + var folders = FavoriteFolders.Select(f => f.Id != target ? f : remove ? RemoveIds(f, [project.Id]) : f with { Projects = f.Projects.Append(project.Id).Distinct().ToArray() }).ToArray(); + var remaining = folders.SelectMany(f => f.Projects).ToHashSet(); await SaveFavoritesAsync(_favorites.Append(project).DistinctBy(p => p.Id).Where(p => remaining.Contains(p.Id)).ToArray(), folders); + } + private async Task DeleteFavoriteFolderAsync() + { + if (FavoriteFolders.Count <= 1 || !FavoriteFolders.Any(f => f.Id == deletingFavoriteFolder)) return; var folders = FavoriteFolders.Where(f => f.Id != deletingFavoriteFolder).ToArray(); var remaining = folders.SelectMany(f => f.Projects).ToHashSet(); + if (await SaveFavoritesAsync(_favorites.Where(p => remaining.Contains(p.Id)).ToArray(), folders)) { deletingFavoriteFolder = ""; NotifyFavoriteFilter(); } + } + private Task RemoveSelectedFavoritesAsync() => RemoveFavoriteIdsAsync(FilteredFavoriteProjects.Where(r => r.IsSelected).Select(r => r.Project.Id).ToHashSet()); + internal Task RemoveFavoriteRowAsync(ContentProjectRowViewModel row) => CurrentFavoriteRows.Contains(row) ? RemoveFavoriteIdsAsync([row.Project.Id]) : Task.CompletedTask; + private Task RemoveFavoriteIdsAsync(HashSet ids) + { var folders = FavoriteFolders.Select(f => f.Id == SelectedFavoriteFolder?.Id ? RemoveIds(f, ids) : f).ToArray(); var remaining = folders.SelectMany(f => f.Projects).ToHashSet(); return ids.Count == 0 ? Task.CompletedTask : SaveFavoritesAsync(_favorites.Where(p => remaining.Contains(p.Id)).ToArray(), folders); } + internal async Task SaveFavoriteNoteAsync(ContentProjectRowViewModel row, string note) + { + if (!CurrentFavoriteRows.Contains(row)) return false; + var folders = FavoriteFolders.Select(f => { if (f.Id != SelectedFavoriteFolder?.Id) return f; var notes = new Dictionary(f.Notes ?? []); if (string.IsNullOrWhiteSpace(note)) notes.Remove(row.Project.Id); else notes[row.Project.Id] = note.Trim(); return f with { Notes = notes }; }).ToArray(); + return await SaveFavoritesAsync(_favorites.ToArray(), folders); + } + private async Task TransferFavoriteSelectionAsync(bool move) + { + if (SelectedFavoriteFolder is not { } source || FavoriteDestinationFolder is not { } destination || source.Id == destination.Id || !FavoriteFolders.Contains(destination)) return; + var ids = CurrentFavoriteRows.Where(r => r.IsSelected).Select(r => r.Project.Id).ToHashSet(); if (ids.Count == 0) return; + var folders = FavoriteFolders.Select(f => { if (f.Id == destination.Id) { var notes = new Dictionary(f.Notes ?? []); foreach (var id in ids) if (!notes.ContainsKey(id) && source.Notes?.TryGetValue(id, out var note) == true) notes[id] = note; return f with { Projects = f.Projects.Concat(ids).Distinct().ToArray(), Notes = notes }; } return move && f.Id == source.Id ? RemoveIds(f, ids) : f; }).ToArray(); + await SaveFavoritesAsync(_favorites.ToArray(), folders); + } + public string GetFavoriteShareCode() + { var rows = CurrentFavoriteRows.ToArray(); var chosen = rows.Any(r => r.IsSelected) ? rows.Where(r => r.IsSelected) : rows; return JsonSerializer.Serialize(chosen.Select(r => r.Project.Source == "curseforge" ? r.Project.Id[3..] : r.Project.Id).Concat(rows.Any(r => r.IsSelected) ? [] : UnresolvedFavorites.Select(id => id.StartsWith("cf-", StringComparison.Ordinal) ? id[3..] : id)).Distinct()); } + public async Task ImportLegacyFavoritesAsync(string text, bool preserveFolders = true) + { + if (_catalog is not IContentDependencyCatalogService catalog) { FavoriteStatus = "当前资源服务不支持读取分享项目。"; return; } + IReadOnlyList imported; + try { imported = FavoriteData.ReadLegacy(text, FolderName()); } catch (Exception ex) when (ex is JsonException or IOException or InvalidDataException or ArgumentException) { Owner.ShowError(UiPrivacy.Redact(ex.Message)); return; } + var target = SelectedFavoriteFolder?.Id; var additions = new Dictionary(); var failures = new HashSet(); + if (!await Owner.RunAsync("导入收藏", async ct => + { + foreach (var id in imported.SelectMany(f => f.Projects).Distinct()) + { ct.ThrowIfCancellationRequested(); if (_favorites.FirstOrDefault(p => p.Id == id) is { } saved) { additions[id] = saved; continue; } + try { var project = await catalog.GetContentProjectAsync(id, ct); if (project.Id != id) throw new InvalidDataException("资源身份不符。"); ValidateFavoriteProjects([project]); additions[id] = project; } + catch (Exception ex) when (ex is HttpRequestException or IOException or InvalidDataException or ArgumentException or InvalidOperationException) { failures.Add(id); } } + })) return; + var folders = FavoriteFolders.ToList(); + foreach (var folder in imported) + { + var id = preserveFolders ? "wpf-" + Convert.ToHexStringLower(System.Security.Cryptography.SHA256.HashData(System.Text.Encoding.UTF8.GetBytes(folder.Id.Length > 0 ? folder.Id : folder.Name)))[..24] : target!; + var index = folders.FindIndex(f => f.Id == id); var previous = index < 0 ? new FavoriteFolder(id, folder.Name, []) : folders[index]; + var notes = new Dictionary(previous.Notes ?? []); foreach (var note in folder.Notes) notes.TryAdd(note.Key, note.Value); + var updated = previous with { Projects = previous.Projects.Concat(folder.Projects.Where(additions.ContainsKey)).Distinct().ToArray(), Unresolved = (previous.Unresolved ?? []).Concat(folder.Projects.Where(failures.Contains)).Where(i => !additions.ContainsKey(i)).Distinct().ToArray(), Notes = notes }; + if (index < 0) folders.Add(updated); else folders[index] = updated; + } + if (await SaveFavoritesAsync(_favorites.Concat(additions.Values).DistinctBy(p => p.Id).ToArray(), folders.ToArray())) FavoriteStatus = Localization.UiLocalization.Instance.Format("已导入 {0} 项收藏。", additions.Count) + (failures.Count > 0 ? " " + Localization.UiLocalization.Instance.Format("无法读取(已保留,可重试):{0}", string.Join(", ", failures)) : ""); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Installation.cs b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Installation.cs new file mode 100644 index 00000000..842e131f --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Installation.cs @@ -0,0 +1,283 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.ComponentModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Content; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record ContentTargetChoice(GameInstance Instance, string GameVersion) +{ + public string Label => $"{Instance.Name} · {GameVersion} · {Instance.Loader}"; +} +public sealed partial class PackOptionalFileViewModel(string path, string? name = null, string? detail = null) : ObservableObject +{ + public string Path { get; } = path; + public string Name { get; } = name ?? path; + public string Detail { get; } = detail ?? ""; + public bool HasDetail => Detail.Length > 0; + [ObservableProperty] private bool selected; +} + +public sealed partial class DownloadsPageViewModel +{ + private IContentInstallationService? _contentInstall; + private IModrinthPackService? _packs; + private ILocalPackService? _localPacks; + private ContentTargetChoice? _installTarget; + private bool _updatingTargets; + private string _resourceInstallStatus = "选择明确的兼容实例后点击文件旁的“装入实例”;required依赖会预检并一同安装。"; + private string _localPackPath = "", _packName = "", _packStatus = ""; + private ModrinthPackInspection? _packInspection; + private LocalPackInspection? _localPackInspection; + private IReadOnlyList _packImportDetails = []; + private int _packRevision; + private bool _packPreflightSucceeded; + private bool _localPackSelectionDirty; + private bool preparePackAfterImport; + public bool PreparePackAfterImport { get => preparePackAfterImport; set => SetProperty(ref preparePackAfterImport, value); } + public ObservableCollection ContentInstallTargets { get; } = []; + public ContentTargetChoice? SelectedInstallTarget + { + get => _installTarget; + set { if (value is null && _updatingTargets) return; if (SetProperty(ref _installTarget, value)) { WorldInstallTargetChanged(); NotifyCommands(); } } + } + public bool ShowResourceInstall => IsResourceDetail && SelectedProject?.Kind is "mod" or "resourcepack" or "shader"; + public bool ShowPackImport => IsSearchPage && SelectedCategory.Id == "modpack"; + public bool ShowLocalPackPanel => ShowPackImport && LocalPackPath.Length > 0; + public bool PackServiceAvailable => _packs is not null || _localPacks is not null; + public string ResourceInstallStatus { get => _resourceInstallStatus; private set => SetProperty(ref _resourceInstallStatus, value); } + public string PackStatus { get => _packStatus; private set => SetProperty(ref _packStatus, value); } + public string PackInstanceName { get => _packName; set { if (SetProperty(ref _packName, value)) ImportLocalPackCommand.NotifyCanExecuteChanged(); } } + public string LocalPackPath => _localPackPath; + public ModrinthPackInspection? PackInspection => _packInspection; + public LocalPackInspection? DetectedLocalPack => _localPackInspection; + public bool HasPackInspection => _localPackInspection is not null || _packInspection is not null; + public string PackDetails => string.Join(Environment.NewLine, + (_packPreflightSucceeded ? _localPackInspection?.Warnings ?? _packInspection?.Warnings ?? [] : []).Concat(_packImportDetails).Distinct(StringComparer.Ordinal)); + public bool HasPackDetails => PackDetails.Length > 0; + private bool CanImportLocalPack => _packPreflightSucceeded && (_localPackSelectionDirty || (_localPackInspection?.CanImport ?? _packInspection?.CanImport ?? false)); + public string LocalPackImportAction => _localPackSelectionDirty ? "检查选择并导入" : "导入到独立新实例"; + public ObservableCollection LocalPackManualFiles { get; } = []; + public bool HasLocalPackManualFiles => LocalPackManualFiles.Count > 0; + public ObservableCollection OptionalPackFiles { get; } = []; + public bool HasOptionalPackFiles => OptionalPackFiles.Count > 0; + public AsyncRelayCommand ImportLocalPackCommand { get; private set; } = null!; + public AsyncRelayCommand ReadCachedPackCommand { get; private set; } = null!; + public AsyncRelayCommand RecheckLocalPackCommand { get; private set; } = null!; + private void InitializeContentInstallation(IContentInstallationService? installation, IModrinthPackService? packs, ILocalPackService? localPacks) + { + _contentInstall = installation ?? Service as IContentInstallationService; _packs = packs ?? Service as IModrinthPackService; + _localPacks = localPacks ?? Service as ILocalPackService; + InitializeWorldContentInstallation(); + if (_contentInstall is null) ResourceInstallStatus = "当前后端未提供实例资源安装能力;文件仍可明确下载到缓存。"; + ImportLocalPackCommand = AsyncCommand(ImportLocalPackAsync, () => CanEdit && PackServiceAvailable && CanImportLocalPack && !string.IsNullOrWhiteSpace(PackInstanceName) && PackInstanceName.Length <= 80); + ReadCachedPackCommand = AsyncCommand(() => ReadLocalPackAsync(LastDownloadPath), () => CanEdit && PackServiceAvailable && HasDownloadedFile && + (LastDownloadPath.EndsWith(".mrpack", StringComparison.OrdinalIgnoreCase) || LastDownloadPath.EndsWith(".zip", StringComparison.OrdinalIgnoreCase))); + RecheckLocalPackCommand = AsyncCommand(() => ReadLocalPackCoreAsync(_localPackPath, preserveDraft: true), + () => CanEdit && !_disposed && PackServiceAvailable && _localPackPath.Length > 0); + if (!PackServiceAvailable) PackStatus = "当前后端未提供整合包导入能力。"; + } + private void RefreshContentTargets(LauncherSnapshot snapshot) + { + var choices = new List(); + foreach (var instance in snapshot.Instances) + { + try { choices.Add(new(instance, InstanceIdentity.GameVersion(instance))); } + catch (Exception ex) when (ex is InvalidDataException or ArgumentException) { } + } + var previousTarget = _installTarget; + var selectedId = _installTarget?.Instance.Id ?? snapshot.SelectedInstanceId; + _updatingTargets = true; + try + { + for (var i = ContentInstallTargets.Count - 1; i >= 0; i--) if (choices.All(c => c.Instance.Id != ContentInstallTargets[i].Instance.Id)) ContentInstallTargets.RemoveAt(i); + foreach (var choice in choices) + { + var current = ContentInstallTargets.FirstOrDefault(c => c.Instance.Id == choice.Instance.Id); + if (current is null) ContentInstallTargets.Add(choice); + else if (current != choice) ContentInstallTargets[ContentInstallTargets.IndexOf(current)] = choice; + } + _installTarget = ContentInstallTargets.FirstOrDefault(c => c.Instance.Id == selectedId); + } + finally { _updatingTargets = false; } + OnPropertyChanged(nameof(SelectedInstallTarget)); + if (previousTarget?.Instance.Id != _installTarget?.Instance.Id || previousTarget?.Instance.GameDirectory != _installTarget?.Instance.GameDirectory) WorldInstallTargetChanged(); + else RefreshWorldTargets(); + NotifyCommands(); + } + internal bool CanInstallResource(ContentRelease? release) => ShowWorldContentInstall ? CanPreviewWorldResource(release) : CanEdit && _contentInstall is not null && ShowResourceInstall && + release is not null && _installTarget is { } target && ContentInstallPlanner.Compatible(release, SelectedProject!.Kind, target.GameVersion, target.Instance.Loader); + internal async Task InstallResourceAsync(ContentRelease release, ContentFile file) + { + if (ShowWorldContentInstall) { await PreviewWorldResourceAsync(release, file); return; } + if (!CanInstallResource(release) || SelectedProject is not { } project || SelectedInstallTarget is not { } target) return; + var request = new ContentInstallRequest(target.Instance.Id, project.Id, release.Id, file.FileName, project.Kind); + var revision = _requestRevision; ContentInstallResult? installed = null; + ResourceInstallStatus = "正在预检required依赖与冲突,随后校验并装入所选实例…"; + var success = await Owner.RunAsync("装入实例资源", async ct => installed = await _contentInstall!.InstallContentAsync(request, ct)); + if (revision != _requestRevision || SelectedProject?.Id != project.Id) return; + ResourceInstallStatus = success ? $"已装入 {target.Instance.Name}:{installed!.Files.Count} 个资源文件,新增 {installed.AddedFiles} 个。安装清单已保存。" + + (installed.Warnings.Count > 0 ? " " + string.Join(" ", installed.Warnings) : "") : Owner.ErrorMessage ?? "安装已取消,已有不同文件未被覆盖。"; + } + public Task ReadLocalPackAsync(string path) => ReadLocalPackCoreAsync(path, preserveDraft: false); + public async Task InstallDroppedPackAsync(string path) + { + PreparePackAfterImport = true; + await ReadLocalPackAsync(path); + // A drop is an installation request. Stop only where the pack needs a real user choice. + if (!_disposed && LocalPackPath == path && !HasOptionalPackFiles && !HasLocalPackManualFiles && ImportLocalPackCommand.CanExecute(null)) + { + PreparePackAfterImport = true; + await ImportLocalPackCommand.ExecuteAsync(null); + } + } + private async Task ReadLocalPackCoreAsync(string path, bool preserveDraft, string? expectedSha256 = null) + { + if (!PackServiceAvailable || !CanEdit || _disposed) return; + var name = PackInstanceName; var previousLocal = preserveDraft ? _localPackInspection : null; + var previousMr = preserveDraft ? _packInspection : null; + var selected = OptionalPackFiles.Where(f => f.Selected).Select(f => f.Path).ToHashSet(StringComparer.Ordinal); + var previousRows = preserveDraft ? OptionalPackFiles.ToArray() : []; + var revision = ++_packRevision; _localPackPath = path; _packInspection = null; _localPackInspection = null; + _packPreflightSucceeded = false; _localPackSelectionDirty = false; _packImportDetails = []; OptionalPackFiles.Clear(); LocalPackManualFiles.Clear(); + PackStatus = preserveDraft ? "正在重新预检整合包与补充文件…" : "正在读取本机整合包…"; + NotifyLocalPackInspection(); + ModrinthPackInspection? inspected = null; + LocalPackInspection? local = null; + var success = await Owner.RunAsync("读取本机整合包", async ct => + { + if (preserveDraft && _localPacks is ILocalPackSelectionService choices) { local = await choices.InspectLocalPackSelectionAsync(path, selected.ToArray(), cancellationToken: ct, + expectedArchiveSha256: expectedSha256 ?? previousLocal?.ArchiveSha256 ?? previousMr?.ArchiveSha256); inspected = local.Modrinth; } + else if (_localPacks is not null) { local = await _localPacks.InspectLocalPackAsync(path, ct); inspected = local.Modrinth; } + else inspected = await _packs!.InspectModrinthPackAsync(path, ct); + ct.ThrowIfCancellationRequested(); + }); + if (revision != _packRevision || _disposed) return; + if (success) + { + var hash = local?.ArchiveSha256 ?? inspected!.ArchiveSha256; + if (expectedSha256 is not null && !hash.Equals(expectedSha256, StringComparison.OrdinalIgnoreCase)) + { + PackStatus = "整合包在补充文件后已改变,请重新选择并预检,再确认安装。"; + NotifyLocalPackInspection(); return; + } + _packPreflightSucceeded = true; _packInspection = inspected; _localPackInspection = local; + PackInstanceName = preserveDraft ? name : local?.Name ?? inspected!.Name; + var previousHash = previousLocal?.ArchiveSha256 ?? previousMr?.ArchiveSha256; + if (local?.Format == LocalPackFormat.CurseForge) + foreach (var file in local.OptionalFiles ?? []) AddLocalOptionalRow(new(file.Key, file.Name, file.Notice), preserveDraft && hash == previousHash && selected.Contains(file.Key)); + else foreach (var file in inspected?.Files.Where(f => f.Client == "optional") ?? []) + AddLocalOptionalRow(new(file.Path), preserveDraft && hash == previousHash && selected.Contains(file.Path)); + if (preserveDraft && previousHash is not null && hash != previousHash) + _packImportDetails = ["整合包文件已改变,本次已按新文件重新预检,请核对内容后安装。"]; + PackStatus = local is not null + ? local.CanImport ? $"{local.Format switch { LocalPackFormat.CurseForge => "CurseForge ZIP", LocalPackFormat.ShouExport => "SHOU ZIP", LocalPackFormat.MultiMC => "MultiMC ZIP", LocalPackFormat.Hmcl => "HMCL ZIP", LocalPackFormat.Mcbbs => "MCBBS ZIP", LocalPackFormat.CompressedInstance => "压缩实例 ZIP", _ => "Modrinth .mrpack" }} · Minecraft {local.GameVersion} · {(local.Loader + " " + local.LoaderVersion).Trim()}。" + : local.CapabilityReason ?? "此整合包暂不支持导入。" + : inspected!.CanImport ? $"{inspected.GameVersion} · {inspected.Loader} · {inspected.Files.Count} 项清单文件 · {inspected.Overrides.Count} 项客户端覆盖文件。" + string.Join(" ", inspected.Warnings) : inspected.CapabilityReason ?? "此整合包暂不支持导入。"; + } + else + { + _localPackInspection = previousLocal; _packInspection = previousMr; + foreach (var file in previousRows) AddLocalOptionalRow(new(file.Path, file.Name, file.Detail), selected.Contains(file.Path)); + PackStatus = Owner.ErrorMessage ?? "整合包预检已取消;可重新预检后继续。"; + } + PopulateLocalManualFiles(revision); + NotifyLocalPackInspection(); + } + private void AddLocalOptionalRow(PackOptionalFileViewModel row, bool selected) + { + row.Selected = selected; OptionalPackFiles.Add(row); + row.PropertyChanged += (_, e) => + { + if (e.PropertyName != nameof(row.Selected) || _disposed || !OptionalPackFiles.Contains(row) || + _localPackInspection?.Format != LocalPackFormat.CurseForge || _localPacks is not ILocalPackSelectionService) return; + ++_packRevision; + _localPackSelectionDirty = !OptionalPackFiles.Where(f => f.Selected).Select(f => f.Path).ToHashSet(StringComparer.Ordinal) + .SetEquals(_localPackInspection.SelectedOptionalFiles ?? []); + LocalPackManualFiles.Clear(); + PackStatus = "可选项目已更改,导入前会重新预检本次选择。"; + NotifyLocalPackInspection(); + }; + } + private void PopulateLocalManualFiles(int revision) + { + LocalPackManualFiles.Clear(); + foreach (var file in _localPackInspection?.ManualFiles ?? []) + LocalPackManualFiles.Add(new(Owner, file, ProvideLocalManualFileAsync, + row => !_disposed && revision == _packRevision && LocalPackManualFiles.Contains(row), + () => _localPacks is ILocalPackManualFileService)); + } + private async Task ProvideLocalManualFileAsync(PackManualFileRowViewModel row, string path) + { + if (!CanEdit || !row.IsCurrent || _localPackInspection is not { } inspection || _localPacks is not ILocalPackManualFileService manual) return; + var revision = _packRevision; var archive = _localPackPath; + var selected = OptionalPackFiles.Where(f => f.Selected).Select(f => f.Path).ToArray(); + PackStatus = "正在按官方版本校验补充文件…"; + var success = await Owner.RunAsync("校验补充文件", async ct => + { + if (_localPacks is ILocalPackSelectionService choices) + await choices.ProvideSelectedLocalPackFileAsync(archive, inspection.ArchiveSha256, selected, row.File.ProjectId, row.File.FileId, path, ct); + else await manual.ProvideLocalPackFileAsync(archive, inspection.ArchiveSha256, row.File.ProjectId, row.File.FileId, path, ct); + ct.ThrowIfCancellationRequested(); + }); + if (_disposed || revision != _packRevision) return; + if (!success) + { + _packPreflightSucceeded = false; + PackStatus = Owner.ErrorMessage ?? "补充文件已取消;待补文件保留,可重试或重新预检。"; + NotifyLocalPackInspection(); return; + } + LocalPackManualFiles.Remove(row); + _localPackInspection = inspection with { ManualFiles = LocalPackManualFiles.Select(f => f.File).ToArray() }; + await ReadLocalPackCoreAsync(archive, preserveDraft: true, expectedSha256: inspection.ArchiveSha256); + } + private void NotifyLocalPackInspection() + { + foreach (var property in new[] { nameof(LocalPackPath), nameof(ShowLocalPackPanel), nameof(PackInspection), nameof(DetectedLocalPack), + nameof(HasPackInspection), nameof(HasOptionalPackFiles), nameof(HasLocalPackManualFiles), nameof(LocalPackImportAction), nameof(PackDetails), nameof(HasPackDetails) }) OnPropertyChanged(property); + foreach (var row in LocalPackManualFiles) row.Refresh(); + NotifyCommands(); + } + private async Task ImportLocalPackAsync() + { + if (!CanEdit || _disposed || !CanImportLocalPack || !PackServiceAvailable) return; + if (_localPackSelectionDirty) + { + await ReadLocalPackCoreAsync(_localPackPath, preserveDraft: true, expectedSha256: _localPackInspection!.ArchiveSha256); + if (!CanEdit || _disposed || !CanImportLocalPack) return; + } + var hash = _localPackInspection?.ArchiveSha256 ?? _packInspection!.ArchiveSha256; + var selected = OptionalPackFiles.Where(f => f.Selected).Select(f => f.Path).ToArray(); + var request = new ModrinthPackImportRequest(_localPackPath, hash, PackInstanceName, selected, PreparePackAfterImport); + ModrinthPackImportResult? imported = null; var revision = _packRevision; + LocalPackImportResult? local = null; + _packImportDetails = []; + OnPropertyChanged(nameof(PackDetails)); OnPropertyChanged(nameof(HasPackDetails)); + PackStatus = "正在校验文件并导入独立新实例…"; + var success = await Owner.RunAsync("导入整合包", async ct => + { + if (_localPacks is not null) local = await _localPacks.ImportLocalPackAsync(new(request.ArchivePath, hash, request.InstanceName, selected, request.PrepareAfterImport), ct); + else imported = await _packs!.ImportModrinthPackAsync(request, ct); + }); + if (revision != _packRevision || _disposed) return; + if (success) + { + _packImportDetails = local?.Warnings ?? []; + if (imported is { } result && (result.SkippedServerFiles > 0 || result.SkippedOptionalFiles > 0)) + _packImportDetails = [$"跳过 {result.SkippedServerFiles} 个服务器文件与 {result.SkippedOptionalFiles} 个未选可选文件。"]; + PackStatus = $"已创建 {local?.Instance.Name ?? imported!.Instance.Name},装入 {local?.InstalledFiles ?? imported!.InstalledFiles} 个文件。首次启动会补全游戏本体。"; + } + else PackStatus = Owner.ErrorMessage ?? "导入已取消,未登记新实例。"; + OnPropertyChanged(nameof(PackDetails)); OnPropertyChanged(nameof(HasPackDetails)); + } + private void NotifyContentInstallationPage() + { + NotifyWorldContentPage(); + OnPropertyChanged(nameof(ShowResourceInstall)); OnPropertyChanged(nameof(ShowPackImport)); OnPropertyChanged(nameof(ShowLocalPackPanel)); + } + private void ResetResourceInstallStatus() => ResourceInstallStatus = _contentInstall is null + ? "当前后端未提供实例资源安装能力;文件仍可明确下载到缓存。" + : "选择明确的兼容实例后点击文件旁的“装入实例”;required依赖会预检并一同安装。"; +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Installers.cs b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Installers.cs new file mode 100644 index 00000000..d20e6558 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Installers.cs @@ -0,0 +1,78 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record InstallerVersionRow(InstallerVersion Version) +{ + public string Title => Version.Loader == "optifine" ? Version.GameVersion + " " + Version.Version : Version.Version; + public string FileName => SHOU.Launcher.Core.Loaders.InstallerCatalogReader.InstallerFileName(Version); + public string Detail => string.Join(" · ", new[] { Version.Recommended ? "推荐版" : null, Version.Latest ? "最新版本" : null, + Version.Channel is "production" or "stable" ? "稳定版" : Version.Channel is "snapshot" or "preview" ? "测试版" : null, + Version.Published is { } date ? $"发布于 {date.LocalDateTime:yyyy/M/d HH:mm}" : null }.Where(x => x is not null)); + public string Verification => Version.Loader is "labymod" or "liteloader" ? "下载并另存安装器;官方 HTTPS、大小与 JAR 结构检查。上游未提供此安装器的文件哈希。" : "下载并另存安装器;验证来源、大小及文件哈希。"; + public Avalonia.Media.IImage Icon => LoaderArtwork.For(Version.Loader); +} +public sealed record InstallerVersionGroup(string Header, IReadOnlyList Versions, bool IsExpanded) +{ + public IReadOnlyList Highlights => Versions.Count <= 2 ? [] : Versions.Where(v => v.Version.Recommended || v.Version.Latest).OrderByDescending(v => v.Version.Recommended).ThenByDescending(v => v.Version.Latest).ToArray(); + public bool HasHighlights => Highlights.Count > 0; + public string AllVersionsHeader => $"全部版本 ({Versions.Count})"; +} + +public sealed partial class DownloadsPageViewModel +{ + private string? _loadedInstaller; + private string _installerStatus = ""; + public ObservableCollection InstallerVersionGroups { get; } = []; + public bool HasInstallerVersions => InstallerVersionGroups.Count > 0; + public string InstallerStatus { get => _installerStatus; private set => SetProperty(ref _installerStatus, value); } + public AsyncRelayCommand RefreshInstallerCatalogCommand { get; private set; } = null!; + public string InstallerIntroduction => SelectedCategory.Id switch + { + "installer-forge" => "Forge 是一个模组加载器;安装对应版本后,即可使用为 Forge 开发的模组。", + "installer-neoforge" => "NeoForge 是一个模组加载器;请选择与 Minecraft 版本对应的安装器。", + "installer-fabric" or "installer-legacyfabric" => "Fabric 安装器可选择游戏与加载器版本。这里下载独立安装器文件。", + "installer-quilt" => "Quilt 安装器可选择游戏与加载器版本。这里下载独立安装器文件。", + "installer-optifine" => "OptiFine 可改善画面与性能,支持光影和高清材质;请留意与模组的兼容性。", + "installer-cleanroom" => "Cleanroom 是基于 Forge 的 Minecraft 1.12.2 模组加载器。", + "installer-labymod" => "LabyMod 是 Minecraft 的优化客户端。这里下载 Java 安装器,保存后可自行安装。", + "installer-liteloader" => "LiteLoader 是适用于较早 Minecraft 版本的轻量模组加载器。", + _ => "选择所需版本,或前往项目官方网站。" + }; + private void InitializeInstallerBrowsing() => RefreshInstallerCatalogCommand = AsyncCommand(RefreshInstallerCatalogAsync, () => CanQuery && IsInstallerPage); + private void StartInstallerCatalog() + { + if (IsInstallerPage && CanQuery && _loadedInstaller != SelectedCategory.Id) _ = RefreshInstallerCatalogAsync(); + } + private async Task RefreshInstallerCatalogAsync() + { + if (!CanQuery || !IsInstallerPage) return; + var category = SelectedCategory.Id; var revision = _requestRevision; + if (_loadedInstaller != category) InstallerVersionGroups.Clear(); + InstallerStatus = ""; OnPropertyChanged(nameof(HasInstallerVersions)); + await ReadBrowseAsync("正在获取 " + InstallerTitle + " 版本列表", revision, async ct => + { + if (Service is not IInstallerCatalogService service) { InstallerStatus = "当前服务未提供安装器目录,可前往官方网站。"; _loadedInstaller = category; return; } + var result = await service.GetInstallerCatalogAsync(category[10..], ct); ct.ThrowIfCancellationRequested(); + if (revision != _requestRevision || SelectedCategory.Id != category) return; + InstallerVersionGroups.Clear(); + foreach (var group in result.Versions.GroupBy(v => v.Loader == "optifine" && v.Channel == "preview" ? "快照版本" : v.GameVersion)) + { + var versions = group.Select(v => new InstallerVersionRow(v)).ToArray(); + if (versions.Length <= 2) versions = versions.OrderByDescending(v => v.Version.Recommended).ToArray(); + InstallerVersionGroups.Add(new(group.Key, versions, InstallerVersionGroups.Count == 0)); + } + _loadedInstaller = category; + InstallerStatus = result.Notice ?? (result.Versions.Count == 0 ? "此来源没有返回可用安装器。" : ""); + OnPropertyChanged(nameof(HasInstallerVersions)); NotifyBrowseState(); + }, failure: message => InstallerStatus = message); + } + public async Task SaveInstallerAsync(InstallerVersionRow row, string destination) + { + if (!CanEdit || Service is not IInstallerCatalogService service) return; + var success = await Owner.RunAsync("下载并校验安装器", ct => service.SaveInstallerAsync(row.Version, destination, ct)); + InstallerStatus = success ? "安装器已保存。" : Owner.ErrorMessage ?? "下载已取消,可重试。"; + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Loaders.cs b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Loaders.cs new file mode 100644 index 00000000..90dc3e55 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Loaders.cs @@ -0,0 +1,119 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.ComponentModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed class AdditionalLoaderCatalogViewModel(DownloadsPageViewModel owner, string id, string title) : ObservableObject +{ + public string Id { get; } = id; + public string Title { get; } = title; + public Avalonia.Media.IImage Icon => LoaderArtwork.For(Id); + public ObservableCollection Versions { get; } = []; + public LoaderVersionChoice? SelectedVersion { get => owner.SelectedAdditionalLoader?.Loader == Id ? owner.SelectedAdditionalLoader : null; set => owner.SelectAdditionalLoader(Id, value); } + private string _status = ""; + private bool _isLoading; + public bool Loaded { get; internal set; } + public bool IsLoading { get => _isLoading; internal set { if (SetProperty(ref _isLoading, value)) NotifyState(); } } + public string Summary => SelectedVersion?.DisplayVersion ?? (IsLoading ? "正在获取版本…" : Versions.Count > 0 ? Versions.Any(v => v.CanInstall) ? "可以添加" : "仅浏览" : Loaded ? "无可用版本" : Status.Length > 0 ? "读取失败" : ""); + public bool HasSelection => SelectedVersion is not null; + public string Status { get => _status; internal set { if (SetProperty(ref _status, value)) OnPropertyChanged(nameof(Summary)); } } + public bool CanEdit => owner.CanEdit; + public AsyncRelayCommand RefreshCommand { get; } = new(() => owner.RefreshAdditionalLoaderAsync(id), () => owner.CanReadAdditionalLoader); + public RelayCommand ClearCommand { get; } = new(() => owner.SelectAdditionalLoader(id, null), () => owner.CanEdit && owner.SelectedAdditionalLoader?.Loader == id); + internal void NotifyState() + { + OnPropertyChanged(nameof(SelectedVersion)); OnPropertyChanged(nameof(CanEdit)); + OnPropertyChanged(nameof(Summary)); + OnPropertyChanged(nameof(HasSelection)); + RefreshCommand.NotifyCanExecuteChanged(); ClearCommand.NotifyCanExecuteChanged(); + } +} + +public sealed partial class DownloadsPageViewModel +{ + private ILoaderInstanceService? _loaderService; + private bool _fabricLoading, _fabricLoaded; + public bool FabricLoading { get => _fabricLoading; private set { if (SetProperty(ref _fabricLoading, value)) OnPropertyChanged(nameof(FabricSummary)); } } + public string FabricSummary => SelectedFabric?.Version ?? (FabricLoading ? "正在获取版本…" : FabricVersions.Count > 0 ? "可以添加" : _fabricLoaded ? "无可用版本" : FabricStatus.Length > 0 ? "读取失败" : ""); + private void StartAutomaticLoaders() + { + if (!IsConfiguration || !CanQuery) return; + if (!_fabricLoaded && !FabricLoading) _ = RefreshFabricAsync(); + foreach (var loader in AdditionalLoaders.Where(x => !x.Loaded && !x.IsLoading)) _ = RefreshAdditionalLoaderAsync(loader.Id); + } + private LoaderVersionChoice? _selectedAdditionalLoader; + public IReadOnlyList AdditionalLoaders { get; private set; } = []; + public LoaderVersionChoice? SelectedAdditionalLoader => _selectedAdditionalLoader; + public string AdditionalLoaderCapability => _loaderService is null ? "当前后端尚未提供Forge / NeoForge / Quilt安装能力。" + : "选择目录中受支持的加载器版本进行安装。"; + internal bool CanReadAdditionalLoader => _loaderService is not null && CanQuery && _selectedVersion is { CanInstall: true } && IsConfiguration; + private bool ValidAdditionalLoader => _selectedAdditionalLoader is null || _loaderService is not null && _selectedAdditionalLoader.CanInstall; + private string AdditionalLoaderValidation => _selectedAdditionalLoader is null ? "" + : _loaderService is null ? "当前后端未提供所选加载器安装能力。" + : !_selectedAdditionalLoader.CanInstall ? _selectedAdditionalLoader.Detail ?? "此加载器版本的安装链尚未支持。" : ""; + private static string LoaderTitle(string loader) => loader switch { "forge" => "Forge", "neoforge" => "NeoForge", "quilt" => "Quilt", "cleanroom" => "Cleanroom", "legacyfabric" => "Legacy Fabric", "optifine" => "OptiFine", "labymod" => "LabyMod", "liteloader" => "LiteLoader", _ => loader }; + private void InitializeAdditionalLoaders(ILoaderInstanceService? service) + { + _loaderService = service ?? Service as ILoaderInstanceService; + AdditionalLoaders = [new(this, "forge", "Forge"), new(this, "neoforge", "NeoForge"), new(this, "quilt", "Quilt"), new(this, "cleanroom", "Cleanroom"), new(this, "legacyfabric", "Legacy Fabric"), new(this, "optifine", "OptiFine"), new(this, "labymod", "LabyMod"), new(this, "liteloader", "LiteLoader")]; + } + private void ClearAdditionalSelection() + { + _selectedAdditionalLoader = null; OnPropertyChanged(nameof(SelectedAdditionalLoader)); + foreach (var catalog in AdditionalLoaders) catalog.NotifyState(); + } + internal void SelectAdditionalLoader(string loader, LoaderVersionChoice? version, bool internalUpdate = false) + { + if (!internalUpdate && !CanEdit || version is null && _selectedAdditionalLoader?.Loader != loader || version is not null && version.Loader != loader) return; + if (Equals(_selectedAdditionalLoader, version)) return; + var previousDefault = DefaultInstallationName; + _selectedAdditionalLoader = version; + if (version is not null) { _selectedFabric = null; OnPropertyChanged(nameof(SelectedFabric)); } + OnPropertyChanged(nameof(SelectedAdditionalLoader)); + foreach (var catalog in AdditionalLoaders) catalog.NotifyState(); + if (InstallationName == previousDefault) InstallationName = DefaultInstallationName; + NotifyInstallDraft(); + } + internal async Task RefreshAdditionalLoaderAsync(string loader) + { + if (!CanReadAdditionalLoader || _loaderService is null) return; + var catalog = AdditionalLoaders.Single(c => c.Id == loader); var game = SelectedVersionId; var revision = _requestRevision; + if (catalog.IsLoading) return; + var previous = catalog.SelectedVersion?.Version; + catalog.IsLoading = true; catalog.Status = ""; + try { await ReadBrowseAsync("获取 " + catalog.Title + " 版本", revision, async ct => + { + var versions = await _loaderService.GetLoaderVersionsAsync(loader, game, ct); ct.ThrowIfCancellationRequested(); + if (revision != _requestRevision || !IsConfiguration) return; + if (versions.Count > 2000 || versions.Any(v => v.Loader != loader || string.IsNullOrWhiteSpace(v.Version))) throw new InvalidDataException("加载器目录身份或数量无效。"); + catalog.Versions.Clear(); foreach (var version in versions.DistinctBy(v => v.Version)) catalog.Versions.Add(version); + if (_selectedAdditionalLoader?.Loader == loader) + { + var next = catalog.Versions.FirstOrDefault(v => v.Version == previous); + if (next is null) + { + next = _selectedAdditionalLoader with { CanInstall = false, Detail = "此前选择已不在最新目录,请重新选择或明确使用原版。" }; + catalog.Versions.Insert(0, next); + } + SelectAdditionalLoader(loader, next, internalUpdate: true); + } + catalog.Status = versions.Count == 0 ? "此 Minecraft 版本没有可用的 " + catalog.Title + " 构建。" + : versions.Any(v => v.CanInstall) ? "" : "此 Minecraft 版本暂不支持安装此加载器。"; + catalog.Loaded = true; + }, "loader-" + loader, page: false, failure: message => catalog.Status = message); } + finally { if (revision == _requestRevision) { catalog.IsLoading = false; catalog.NotifyState(); } } + } + private void ResetAdditionalLoaders() + { + ClearAdditionalSelection(); + foreach (var catalog in AdditionalLoaders) { catalog.Versions.Clear(); catalog.Loaded = false; catalog.IsLoading = false; catalog.Status = ""; } + _fabricLoaded = false; FabricLoading = false; + } + private void ClearAllLoaders() + { + SelectedFabric = null; + if (_selectedAdditionalLoader is { } selected) SelectAdditionalLoader(selected.Loader, null); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Minecraft.cs b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Minecraft.cs new file mode 100644 index 00000000..2ae7737e --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.Minecraft.cs @@ -0,0 +1,64 @@ +using System.Collections.ObjectModel; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record MinecraftPackageRow(string Version, MinecraftPackage Package) +{ + public string Title => Package.Title; + public string Detail => $"{Package.FileName} · {Package.Size / 1048576d:0.00} MiB"; + public string Checksum => "SHA-1 " + Package.Sha1; +} + +public sealed partial class DownloadsPageViewModel +{ + private bool _isPackageDetail; + private GameCatalogVersion? _packageVersion; + public bool IsPackageDetail => _isPackageDetail; + public string PackageVersionId => _packageVersion?.Id ?? ""; + public string CatalogPurpose => SelectedCategory.Id == "installer-minecraft" + ? "选择 Minecraft 版本,下载客户端或服务端 JAR。" + : "选择 Minecraft 版本,下载并安装基础游戏;也可选择兼容的加载器。"; + public ObservableCollection MinecraftPackages { get; } = []; + public void OnNavigatedTo() + { + if (!_catalogLoaded && !_catalogRequestActive && IsCatalogPage && ReferenceEquals(Owner.SelectedPage, this)) + _catalogRequested = true; + TryStartCatalogRequest(); + if (IsSearchPage && (!_searchCompleted || DateTimeOffset.UtcNow - _searchFetched > TimeSpan.FromMinutes(5))) _searchRequested = true; + TryStartSearchRequest(); + if (IsSearchPage && !IsPageLoading) RestoreSearchIcons(); + if (IsFavoritesPage) RestoreFavoriteIcons(); + if (IsSearchPage && !SearchSupported) SetRequestStatus(SearchCapabilityReason); + if (IsConfiguration) StartAutomaticLoaders(); + if (IsInstallerPage) StartInstallerCatalog(); + } + private void TryStartCatalogRequest() + { + if (!_catalogRequested || _catalogLoaded || _catalogRequestActive || !CanQuery + || !IsCatalogPage || !ReferenceEquals(Owner.SelectedPage, this)) return; + _catalogRequested = false; + _ = RefreshCatalogAsync(false); + } + public async Task OpenPackageVersionAsync(GameCatalogVersion version) + { + if (!CanEdit || !version.CanInstall || SelectedCategory.Id != "installer-minecraft") return; + var revision = ++_requestRevision; + _packageVersion = version; _isPackageDetail = true; _isConfiguration = false; _isResourceDetail = false; + MinecraftPackages.Clear(); OnPropertyChanged(nameof(PackageVersionId)); NotifyPage(); + if (Service is not IMinecraftPackageService packages) { SetRequestStatus("当前服务尚未支持独立游戏文件下载。"); return; } + await QueryAsync("读取 Minecraft 文件", revision, async ct => + { + var files = await packages.GetMinecraftPackagesAsync(version.Id, ct); ct.ThrowIfCancellationRequested(); + if (revision != _requestRevision) return; + foreach (var file in files) MinecraftPackages.Add(new(version.Id, file)); + SetRequestStatus(files.Count == 0 ? "此历史版本未提供独立客户端或服务端文件。" : "选择文件保存位置。下载完成后会校验大小与 SHA-1。", files.Count == 0); + }); + } + public async Task SaveMinecraftPackageAsync(MinecraftPackageRow row, string destination) + { + if (!CanEdit || Service is not IMinecraftPackageService packages) return; + var success = await Owner.RunAsync("下载 Minecraft 文件", ct => packages.DownloadMinecraftPackageAsync(row.Version, row.Package.Kind, destination, ct)); + SetRequestStatus(success ? "Minecraft 文件已下载并通过校验。" : Owner.ErrorMessage ?? "下载已取消,可重新选择文件重试。"); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.PackTasks.cs b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.PackTasks.cs new file mode 100644 index 00000000..cc5ca5a3 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.PackTasks.cs @@ -0,0 +1,76 @@ +using System.Collections.ObjectModel; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class DownloadsPageViewModel +{ + public ObservableCollection PackTasks { get; } = []; + internal PackInstallTaskViewModel? ActivePackTask { get; set; } + public bool HasPackTasks => PackTasks.Count > 0; + public bool ShowTaskSummarySidebar => IsTasksPage; + private DownloadStatistics TransferTotals => Owner.Snapshot.DownloadTotals ?? new(Files: Tasks.Count, + Completed: Tasks.Count(t => t.Task.State == "Completed"), Pending: Tasks.Count(t => t.Task.State is "Queued" or "Downloading" or "Verifying" or "Retrying"), + Downloading: Tasks.Count(t => t.Task.State == "Downloading"), UnknownSizes: Tasks.Count(t => t.Task.TotalBytes is null), + ReadyBytes: Tasks.Sum(t => t.Task.BytesReceived), KnownTotalBytes: Tasks.Sum(t => t.Task.TotalBytes ?? 0)); + private DownloadStatistics CurrentFileTotals => Owner.Snapshot.DownloadActivity?.Statistics ?? TransferTotals; + private bool IsFilePreparation => Owner.Snapshot.State is "Installing" or "Launching"; + public bool TaskProgressIsIndeterminate => ActivePackTask is null && IsFilePreparation && + (CurrentFileTotals.UnknownSizes > 0 || CurrentFileTotals.Pending == 0 || CurrentFileTotals.Verifying > 0 && CurrentFileTotals.Downloading == 0); + public double TaskOverallProgress => ActivePackTask?.OverallProgress ?? + (CurrentFileTotals.KnownTotalBytes > 0 ? Math.Clamp(CurrentFileTotals.ReadyBytes * 100d / CurrentFileTotals.KnownTotalBytes, 0, 100) : + CurrentFileTotals.Files > 0 && CurrentFileTotals.Completed == CurrentFileTotals.Files ? 100 : PackTasks.LastOrDefault()?.OverallProgress ?? 0); + public string TaskProgressText => TaskProgressIsIndeterminate ? "处理中" : + ActivePackTask is null && (Owner.Snapshot.DownloadActivity?.State is "Failed" or "Cancelled") ? "未完成" : $"{TaskOverallProgress:0.00}%"; + public string TaskSpeedText => $"{CurrentTransferSpeed / 1048576d:0.00} MiB/s"; + private double CurrentTransferSpeed => Owner.Snapshot.DownloadRateUpdatedAt != default && + DateTimeOffset.UtcNow - Owner.Snapshot.DownloadRateUpdatedAt >= TimeSpan.FromSeconds(1.5) ? 0 : Owner.Snapshot.DownloadBytesPerSecond; + public string TaskRemainingText => ActivePackTask?.RemainingFileText ?? + (IsFilePreparation && CurrentFileTotals.Pending == 0 ? "统计中" : CurrentFileTotals.Pending.ToString()); + public string TransferFileSummary => $"{TransferTotals.Files} 项文件任务 · {TransferTotals.Completed} 已完成 · {TransferTotals.Pending} 待处理 · {TransferTotals.Failed} 失败 · {TransferTotals.Cancelled} 已取消"; + public string TransferByteSummary => $"累计就绪 {Bytes(TransferTotals.ReadyBytes)} / 已知总量 {Bytes(TransferTotals.KnownTotalBytes)} · 缓存复用 {Bytes(TransferTotals.CachedBytes)}"; + public string TransferConnectionSummary => $"{TransferTotals.Connections} 个活动连接 · {TransferTotals.Verifying} 项校验中" + + (TransferTotals.UnknownSizes > 0 ? $" · {TransferTotals.UnknownSizes} 项大小待解析" : "") + ";解析过程中会继续发现文件。"; + public string TransferDetailScope => $"下方显示最近 {Tasks.Count} 项明细;上方统计包含本次启动的全部文件任务。累计就绪包含续传和缓存,不等同于网络流量。"; + private static string Bytes(long value) => value >= 1073741824 ? $"{value / 1073741824d:0.00} GiB" : $"{value / 1048576d:0.00} MiB"; + public ObservableCollection DownloadHistoryRows { get; } = []; + public bool HasDownloadHistory => DownloadHistoryRows.Count > 0; + private IReadOnlyList lastHistory = []; + private readonly Avalonia.Threading.DispatcherTimer transferDisplayTimer = new() { Interval = TimeSpan.FromSeconds(1) }; + private void InitializeTransferSummary() + { + transferDisplayTimer.Tick += (_, _) => { if (IsTasksPage) OnPropertyChanged(nameof(TaskSpeedText)); }; + transferDisplayTimer.Start(); + } + private void RefreshTransferHistory(LauncherSnapshot snapshot) + { + if (lastHistory.SequenceEqual(snapshot.DownloadHistory)) return; + lastHistory = snapshot.DownloadHistory; DownloadHistoryRows.Clear(); + foreach (var item in snapshot.DownloadHistory) DownloadHistoryRows.Add(new(item)); + OnPropertyChanged(nameof(HasDownloadHistory)); + } + public bool ExpandFileTransfers => !HasPackTasks; + internal void NotifyPackTasks() + { + foreach (var name in new[] { nameof(HasPackTasks), nameof(IsEmpty), nameof(Summary), nameof(TaskOverallProgress), nameof(TaskProgressText), nameof(TaskSpeedText), nameof(TaskRemainingText), nameof(ExpandFileTransfers), nameof(TaskProgressIsIndeterminate), nameof(TransferFileSummary), nameof(TransferByteSummary), nameof(TransferConnectionSummary), nameof(TransferDetailScope) }) OnPropertyChanged(name); + } + internal async Task DownloadCatalogPackAsync(ContentFile file, ContentRelease? release) + { + if (!CanEdit || _catalog is null || SelectedProject is not { Kind: "modpack" } project) return; + var previous = PackTasks.LastOrDefault(t => t.Identity.Equals(file.Sha1, StringComparison.OrdinalIgnoreCase)); + if (previous is not null && (previous.IsActive || previous.IsCompleted)) + { + Owner.ShowTaskNotification(this, previous.IsCompleted ? "此整合包已安装" : "此整合包正在安装", project.Title + " · 点击查看任务"); return; + } + var task = previous ?? new PackInstallTaskViewModel(this, Owner, project, release, file, _catalog, _localPacks, _packs); + if (previous is null) PackTasks.Add(task); + await task.RunAsync(); + } +} + +public sealed record DownloadHistoryRowViewModel(DownloadActivitySnapshot Activity) +{ + public string Name => Activity.Name; + public string Status => Activity.State switch { "Completed" => "已完成", "Cancelled" => "已取消", "Failed" => "失败", _ => "进行中" }; + public string Summary => $"{Activity.StartedAt.ToLocalTime():HH:mm:ss} · {Status} · {Activity.Statistics.Completed}/{Activity.Statistics.Files} 项文件完成 · 就绪 {Activity.Statistics.ReadyBytes / 1048576d:0.00} MiB · 缓存 {Activity.Statistics.CachedBytes / 1048576d:0.00} MiB"; +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.WorldContent.cs b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.WorldContent.cs new file mode 100644 index 00000000..17352fe6 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.WorldContent.cs @@ -0,0 +1,116 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class DownloadsPageViewModel +{ + private IWorldContentInstallationService? _worldContent; + private WorldContentTarget? _selectedWorldTarget; + private WorldContentPreview? _worldPreview; + private string _worldFolder = "", _worldInstallStatus = ""; + private string? _loadedWorldInstance; + private string? _worldStatusProject; + private int _worldReadRevision, _worldPreviewRevision; + private CancellationTokenSource? _worldRead; + private (string Instance, string GameDirectory, string World)? _worldBrowserContext; + public void OpenWorldContentBrowser(GameInstance instance, string? worldDirectoryName = null) + { + var target = ContentInstallTargets.FirstOrDefault(t => t.Instance.Id == instance.Id && t.Instance.GameDirectory == instance.GameDirectory) + ?? throw new InvalidOperationException("目标实例已经改变,请重新选择。"); + _worldBrowserContext = null; _worldRead?.Cancel(); ++_worldReadRevision; _loadedWorldInstance = null; + WorldContentTargets.Clear(); SelectedWorldContentTarget = null; SelectedInstallTarget = target; + if (worldDirectoryName is not null) _worldBrowserContext = (instance.Id, instance.GameDirectory, worldDirectoryName); + _isConfiguration = false; _isResourceDetail = false; _isPackageDetail = false; + SelectCategory(worldDirectoryName is null ? "world" : "datapack"); + } + private void WorldInstallTargetChanged() + { + if (_worldBrowserContext is { } context && (SelectedInstallTarget?.Instance.Id != context.Instance || SelectedInstallTarget.Instance.GameDirectory != context.GameDirectory)) _worldBrowserContext = null; + _worldRead?.Cancel(); ++_worldReadRevision; _loadedWorldInstance = null; + WorldContentTargets.Clear(); SelectedWorldContentTarget = null; + InvalidateWorldPreview(); RefreshWorldTargets(); + } + public bool ShowWorldContentInstall => IsResourceDetail && SelectedProject?.Kind is "datapack" or "world"; + public bool IsDatapackInstall => ShowWorldContentInstall && SelectedProject?.Kind == "datapack"; + public bool IsWorldDownloadInstall => ShowWorldContentInstall && SelectedProject?.Kind == "world"; + public ObservableCollection WorldContentTargets { get; } = []; + public WorldContentTarget? SelectedWorldContentTarget { get => _selectedWorldTarget; set { if (SetProperty(ref _selectedWorldTarget, value)) { InvalidateWorldPreview(); NotifyCommands(); } } } + public string NewWorldDirectoryName { get => _worldFolder; set { if (SetProperty(ref _worldFolder, value)) { InvalidateWorldPreview(); NotifyCommands(); } } } + public string WorldContentStatus { get => _worldInstallStatus; private set => SetProperty(ref _worldInstallStatus, value); } + public bool HasWorldContentPreview => _worldPreview is not null; + public string WorldContentPreviewText => _worldPreview is { } p ? $"目标:{p.InstanceName} / {p.WorldDirectoryName} · {p.GameVersion}\n{p.Files.Count} 个文件\n" + string.Join("\n", p.Warnings) : ""; + public AsyncRelayCommand ConfirmWorldContentInstallCommand { get; private set; } = null!; + public RelayCommand CancelWorldContentPreviewCommand { get; private set; } = null!; + public RelayCommand RefreshWorldContentTargetsCommand { get; private set; } = null!; + private void InitializeWorldContentInstallation() + { + _worldContent = Service as IWorldContentInstallationService; + ConfirmWorldContentInstallCommand = AsyncCommand(ConfirmWorldContentInstallAsync, () => CanEdit && _worldPreview is not null); + CancelWorldContentPreviewCommand = Command(() => InvalidateWorldPreview(), () => CanEdit && HasWorldContentPreview); + RefreshWorldContentTargetsCommand = Command(() => { _loadedWorldInstance = null; RefreshWorldTargets(); }, () => CanEdit && IsDatapackInstall && SelectedInstallTarget is not null); + } + private void InvalidateWorldPreview() + { + ++_worldPreviewRevision; _worldPreview = null; + OnPropertyChanged(nameof(HasWorldContentPreview)); OnPropertyChanged(nameof(WorldContentPreviewText)); + ConfirmWorldContentInstallCommand?.NotifyCanExecuteChanged(); CancelWorldContentPreviewCommand?.NotifyCanExecuteChanged(); + } + private async void RefreshWorldTargets() + { + if (_worldContent is null || !IsDatapackInstall || SelectedInstallTarget is not { } target || _loadedWorldInstance == target.Instance.Id) return; + _worldRead?.Cancel(); _worldRead?.Dispose(); _worldRead = CancellationTokenSource.CreateLinkedTokenSource(_imageToken); + var token = _worldRead.Token; var revision = ++_worldReadRevision; + _loadedWorldInstance = target.Instance.Id; WorldContentTargets.Clear(); SelectedWorldContentTarget = null; + try + { + var worlds = await _worldContent.GetWorldContentTargetsAsync(target.Instance.Id, token); + if (revision != _worldReadRevision || _disposed || !IsDatapackInstall || SelectedInstallTarget?.Instance.Id != target.Instance.Id) return; + foreach (var world in worlds) WorldContentTargets.Add(world); + if (_worldBrowserContext is { } context && target.Instance.Id == context.Instance && target.Instance.GameDirectory == context.GameDirectory) + { + SelectedWorldContentTarget = worlds.FirstOrDefault(w => w.DirectoryName == context.World && w.Error is null); + _worldBrowserContext = null; + if (SelectedWorldContentTarget is null) WorldContentStatus = "此前选择的存档已不可用,请重新选择目标。"; + } + if (worlds.Count == 0) WorldContentStatus = "此实例没有可选存档。"; + else if (WorldContentStatus.StartsWith("此实例没有", StringComparison.Ordinal) || WorldContentStatus.StartsWith("读取存档失败", StringComparison.Ordinal)) WorldContentStatus = ""; + } + catch (OperationCanceledException) { } + catch (Exception ex) { if (revision == _worldReadRevision && !_disposed) { _loadedWorldInstance = null; WorldContentStatus = "读取存档失败:" + UiPrivacy.Redact(ex.Message); } } + finally { if (revision == _worldReadRevision && !_disposed) NotifyCommands(); } + } + private bool CanPreviewWorldResource(ContentRelease? release) => CanEdit && _worldContent is not null && ShowWorldContentInstall && + release is not null && SelectedInstallTarget is { } target && release.GameVersions.Contains(target.GameVersion, StringComparer.Ordinal) && + (IsDatapackInstall ? SelectedWorldContentTarget is { Error: null } : !string.IsNullOrWhiteSpace(NewWorldDirectoryName)); + private async Task PreviewWorldResourceAsync(ContentRelease release, ContentFile file) + { + if (!CanPreviewWorldResource(release) || SelectedProject is not { } project || SelectedInstallTarget is not { } target) return; + InvalidateWorldPreview(); var revision = _worldPreviewRevision; + var world = IsDatapackInstall ? SelectedWorldContentTarget!.DirectoryName : NewWorldDirectoryName.Trim(); + WorldContentPreview? preview = null; WorldContentStatus = "正在下载并检查兼容性与冲突…"; + var success = await Owner.RunAsync("预检存档资源", async ct => preview = await _worldContent!.PreviewWorldContentAsync(new(target.Instance.Id, project.Id, release.Id, file.FileName, project.Kind, world), ct)); + if (revision != _worldPreviewRevision || SelectedProject?.Id != project.Id) return; + _worldPreview = success ? preview : null; WorldContentStatus = success ? "" : Owner.ErrorMessage ?? "预检已取消。"; + OnPropertyChanged(nameof(HasWorldContentPreview)); OnPropertyChanged(nameof(WorldContentPreviewText)); NotifyCommands(); + } + private async Task ConfirmWorldContentInstallAsync() + { + if (_worldPreview is not { } preview || _worldContent is null) return; + var revision = _worldPreviewRevision; WorldContentResult? installed = null; + var success = await Owner.RunAsync("安装存档资源", async ct => installed = await _worldContent.InstallWorldContentAsync(preview.Id, ct)); + if (revision != _worldPreviewRevision) return; + InvalidateWorldPreview(); + WorldContentStatus = success ? $"已安装到 {preview.InstanceName} / {installed!.WorldDirectoryName},新增 {installed.AddedFiles} 个文件。" : Owner.ErrorMessage ?? "安装已取消,原存档保留。"; + _loadedWorldInstance = null; RefreshWorldTargets(); + } + private void NotifyWorldContentPage() + { + if (_worldStatusProject != SelectedProject?.Id) { _worldStatusProject = SelectedProject?.Id; WorldContentStatus = ""; } + InvalidateWorldPreview(); + foreach (var name in new[] { nameof(ShowWorldContentInstall), nameof(IsDatapackInstall), nameof(IsWorldDownloadInstall) }) OnPropertyChanged(name); + if (IsWorldDownloadInstall && string.IsNullOrWhiteSpace(NewWorldDirectoryName)) NewWorldDirectoryName = SelectedProject?.Slug ?? ""; + RefreshWorldTargets(); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.cs b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.cs new file mode 100644 index 00000000..e7cedde3 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/DownloadsPageViewModel.cs @@ -0,0 +1,637 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using CommunityToolkit.Mvvm.ComponentModel; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Desktop.Themes; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed class DownloadRowViewModel : ObservableObject +{ + public DownloadTaskSnapshot Task { get; private set; } + public AsyncRelayCommand CancelCommand { get; } + public AsyncRelayCommand RetryCommand { get; } + public string Name => Task.Name; + public string State => Task.State switch { "Queued" => "等待中", "Downloading" => "下载中", "Verifying" => "校验中", "Retrying" => "重试/切源", "Completed" => "已完成", "Failed" => "失败", "Cancelled" => "已取消", _ => Task.State }; + public bool IsIndeterminate => Task.State is "Verifying" or "Retrying" || (Task.State is "Queued" or "Downloading") && (Task.TotalBytes is null or <= 0); + public double Progress => Task.State == "Completed" ? 100 : Task.TotalBytes is > 0 ? Math.Clamp(Task.BytesReceived * 100d / Task.TotalBytes.Value, 0, 100) : 0; + public string Transfer => $"{FormatBytes(Task.BytesReceived)} / {(Task.TotalBytes is { } total ? FormatBytes(total) : Task.State == "Completed" ? FormatBytes(Task.BytesReceived) : "未知大小")} · {FormatBytes((long)Task.BytesPerSecond)}/s"; + public string Source => UiPrivacy.Redact((Task.Backend ?? "内置") + " · " + (Task.Source == "cache" ? "缓存复用" : Task.Source ?? "来源尚未确定") + (Task.Detail is { Length: > 0 } detail ? " · " + detail : "")); + public string? Error => Task.Error is { } error ? UiPrivacy.Redact(error) : null; + public bool HasError => !string.IsNullOrWhiteSpace(Error); + public DownloadRowViewModel(MainWindowViewModel owner, DownloadTaskSnapshot task) + { + Task = task; + CancelCommand = new(() => owner.RunControlAsync("取消所属安装", ct => owner.Service.CancelDownloadAsync(Task.Id, ct)), () => Task.State is "Queued" or "Downloading" or "Verifying" or "Retrying"); + RetryCommand = new(() => owner.RunAsync("重试所属安装", ct => owner.Service.RetryDownloadAsync(Task.Id, ct)), () => owner.CanMutate && Task.State is "Failed" or "Cancelled"); + } + internal void Update(DownloadTaskSnapshot task) + { + if (Task == task) return; + Task = task; + foreach (var property in new[] { nameof(Task), nameof(Name), nameof(State), nameof(IsIndeterminate), nameof(Progress), nameof(Transfer), nameof(Source), nameof(Error), nameof(HasError) }) OnPropertyChanged(property); + CancelCommand.NotifyCanExecuteChanged(); RetryCommand.NotifyCanExecuteChanged(); + } + private static string FormatBytes(long bytes) => bytes >= 1048576 ? $"{bytes / 1048576d:0.0} MiB" : bytes >= 1024 ? $"{bytes / 1024d:0.0} KiB" : $"{bytes} B"; +} + +public sealed class DownloadCategoryViewModel(DownloadsPageViewModel owner, string id, string title, string icon) + : ObservableObject +{ + public string Id { get; } = id; + public string Title { get; } = title; + public string IconKind { get; } = icon; + public bool IsSelected => owner.SelectedCategory.Id == Id; + public RelayCommand SelectCommand { get; } = new(() => owner.SelectCategory(id)); + internal void RefreshSelection() => OnPropertyChanged(nameof(IsSelected)); +} + +public sealed class GameCatalogRowViewModel +{ + public GameCatalogVersion Version { get; } + public string Id => Version.Id; + private static readonly Lazy ReleaseIcon = new(() => LoadIcon("Grass")); + private static readonly Lazy SnapshotIcon = new(() => LoadIcon("CommandBlock")); + private static Avalonia.Media.Imaging.Bitmap LoadIcon(string name) + { using var stream = Avalonia.Platform.AssetLoader.Open(new("avares://SHOU.Launcher.Desktop/Assets/Minecraft/" + name + ".png")); return new(stream); } + public Avalonia.Media.IImage Icon => Version.Kind == "snapshot" ? SnapshotIcon.Value : ReleaseIcon.Value; + public string Detail => !Version.CanInstall ? "此历史版本标识暂不支持安装。" + : (Version.Latest ? (Version.Kind == "release" ? "最新正式版," : "最新预览版,") : "") + + (Version.ReleaseTime == DateTimeOffset.MinValue ? "未提供发布时间" : $"发布于 {Version.ReleaseTime.LocalDateTime:yyyy/M/d HH:mm}"); + public RelayCommand SelectCommand { get; } + public GameCatalogRowViewModel(DownloadsPageViewModel owner, GameCatalogVersion version) + { + Version = version; + SelectCommand = new(() => owner.SelectVersion(version), () => owner.CanEdit && version.CanInstall); + } +} + +public sealed record GameCatalogGroupViewModel(string Name, IReadOnlyList Versions) +{ + public string Header => $"{Name} ({Versions.Count})"; +} +public sealed record ContentSortChoice(string Id, string Name); +public sealed record ContentSourceChoice(string Id, string Name); + +public sealed partial class ContentProjectRowViewModel : ObservableObject, IDisposable +{ + private bool _disposed; + private bool selected; + public bool IsSelected { get => selected; set => SetProperty(ref selected, value); } + private Avalonia.Media.Imaging.Bitmap? _icon; + public Avalonia.Media.Imaging.Bitmap? Icon { get => _icon; private set { if (SetProperty(ref _icon, value)) OnPropertyChanged(nameof(HasIcon)); } } + public bool HasIcon => Icon is not null; + public ContentProject Project { get; } + public string Title => Project.Title; + public string Description => Project.Description; + public string Tile => Title.Length == 0 ? "?" : System.Globalization.StringInfo.GetNextTextElement(Title); + public string SourceName => Project.Source == "curseforge" ? "CurseForge" : "Modrinth"; + public string Detail => $"{Project.Author} · 下载 {Project.Downloads:N0} 次 · {SourceName}"; + public string Downloads => Project.Downloads >= 100000000 ? $"{Project.Downloads / 100000000d:0.##} 亿" : Project.Downloads >= 10000 ? $"{Project.Downloads / 10000d:0.##} 万" : Project.Downloads.ToString("N0"); + public string Tags => string.Join(" · ", (Project.Categories ?? []).Where(c => c is not ("fabric" or "forge" or "neoforge" or "quilt" or "datapack")).Take(2).Select(DownloadsPageViewModel.CategoryName)); + public bool HasTags => Tags.Length > 0; + public string Compatibility => string.Join(" / ", (Project.Categories ?? []).Where(c => c is "fabric" or "forge" or "neoforge" or "quilt")) + + (Project.GameVersions is { Count: > 0 } versions ? " " + versions[0] + (versions.Count > 1 ? " 等" : "") : ""); + public string Updated => Project.Updated is { } date ? date.LocalDateTime.ToString("yyyy/M/d") : ""; + public bool HasUpdated => Project.Updated is not null; + public bool HasCompatibility => Compatibility.Trim().Length > 0; + public AsyncRelayCommand OpenCommand { get; } + public ContentProjectRowViewModel(DownloadsPageViewModel owner, ContentProject project) + { + Project = project; InitializeFavoriteRow(owner); + OpenCommand = new(() => owner.OpenProjectAsync(project), () => owner.CanQuery); + } + internal async Task LoadIconAsync(ILauncherCatalogService catalog, SemaphoreSlim gate, CancellationToken ct) + { + if (_disposed || Icon is not null || string.IsNullOrWhiteSpace(Project.IconUrl)) return; + await gate.WaitAsync(ct); + try + { + var bytes = await catalog.GetContentIconAsync(Project.IconUrl, ct); ct.ThrowIfCancellationRequested(); + using var stream = new MemoryStream(bytes, writable: false); + var bitmap = Avalonia.Media.Imaging.Bitmap.DecodeToWidth(stream, 40); + if (_disposed) bitmap.Dispose(); else Icon = bitmap; + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { throw; } + catch (Exception) { /* A missing or invalid thumbnail keeps the text fallback. */ } + finally { gate.Release(); } + } + public void Dispose() { if (_disposed) return; _disposed = true; Icon?.Dispose(); Icon = null; } +} + +public sealed class ContentFileRowViewModel +{ + public ContentFile File { get; } + public string Name => File.FileName; + public bool IsPackFile { get; } + public string Detail { get; } + public AsyncRelayCommand DownloadCommand { get; } + public AsyncRelayCommand InstallCommand { get; } + public bool ShowInstallButton { get; } + public string InstallCaption { get; } + public ContentFileRowViewModel(DownloadsPageViewModel owner, ContentFile file, ContentRelease? release = null) + { + File = file; + IsPackFile = owner.SelectedProject?.Kind == "modpack"; + Detail = IsPackFile ? $"{release?.Version} · {File.Size / 1048576d:0.00} MiB" + (release is null ? "" : $" · 更新于 {release.Published.LocalDateTime:yyyy/M/d}") + : $"{File.Size / 1048576d:0.00} MiB · SHA-1 {File.Sha1[..Math.Min(12, File.Sha1.Length)]}…"; + DownloadCommand = new(() => IsPackFile ? owner.DownloadCatalogPackAsync(file, release) : owner.DownloadFileAsync(file), () => owner.CanEdit && owner.CatalogAvailable); + InstallCommand = new(() => owner.InstallResourceAsync(release!, file), () => owner.CanInstallResource(release) && + (!owner.ShowWorldContentInstall || file.FileName.EndsWith(".zip", StringComparison.OrdinalIgnoreCase))); + ShowInstallButton = owner.ShowResourceInstall || owner.ShowWorldContentInstall; + InstallCaption = owner.ShowWorldContentInstall ? "预检安装" : Localization.UiLocalization.Instance.Get("t8624c13ae5d21b79"); + } +} +public sealed record ContentReleaseRowViewModel(ContentRelease Release, IReadOnlyList Files, bool WorldContent = false) +{ + public bool ShowHeading => !Files.Any(f => f.IsPackFile); + public string Notice => Release.Notice ?? ""; + public bool HasNotice => !string.IsNullOrWhiteSpace(Release.Notice); + public string Name => Release.Name; + public string Detail => $"{Release.Version} · {Release.Published.LocalDateTime:yyyy/M/d HH:mm}" + + (!WorldContent && Release.Environment is "server_only" or "server_only_client_optional" or "dedicated_server_only" ? " · 服务器专用,客户端不支持安装" : ""); +} +public sealed record ContentReleaseGroupViewModel(string Header, IReadOnlyList Releases); + +public sealed partial class DownloadsPageViewModel : PageViewModel, IDisposable +{ + private readonly ILauncherCatalogService? _catalog; + private readonly CancellationTokenSource _imageLifetime = new(); + private readonly CancellationToken _imageToken; + private readonly SemaphoreSlim _imageGate = new(4, 4); + private bool _disposed; + internal bool IsDisposed => _disposed; + private readonly string? _favoritesPathOverride; + private readonly List _favorites = []; + private DownloadCategoryViewModel _selectedCategory = null!; + private bool _isConfiguration; + private bool _isResourceDetail; + private bool _loading; + private bool _catalogLoaded; + private bool _catalogRequestActive, _catalogRequested; + private string _catalogStatus = "正在准备 Minecraft 版本目录…"; + private bool _requestMessageVisible, _catalogMessageVisible; + private string? _catalogSourceConfiguration; + private int _catalogSourceRevision; + private bool _searchCompleted; + private int _requestRevision; + private int _searchOffset; + private string _queryText = ""; + private string _gameVersionFilter = ""; + private string _loaderFilter = "任意"; + private ContentSortChoice _selectedSort = null!; + private ContentSourceChoice _selectedSource = new("all", "全部"); + private string _requestStatus = "正在准备 Minecraft 版本目录…"; + private string _catalogSource = ""; + private GameCatalogVersion? _selectedVersion; + private LoaderCatalogVersion? _selectedFabric; + private string _installationName = ""; + private string _fabricStatus = ""; + private string _installStatus = ""; + private string? _createdInstanceId; + private ContentProject? _selectedProject; + private string _lastDownloadPath = ""; + private string _favoriteStatus = ""; + private bool _favoritesLoadFailed; + + public ObservableCollection Tasks { get; } = []; + public bool IsEmpty => Tasks.Count == 0 && PackTasks.Count == 0; + public string Summary => HasPackTasks + ? $"{PackTasks.Count} 项整合包任务 · {PackTasks.Count(t => t.IsActive)} 项安装中 · {TransferTotals.Downloading} 个文件下载中" + : $"{TransferTotals.Files} 项文件任务 · {TransferTotals.Downloading} 项下载中"; + public DownloadCategoryViewModel MinecraftCategory { get; } + public IReadOnlyList CommunityCategories { get; } + public IReadOnlyList InstallerCategories { get; } + public DownloadCategoryViewModel TasksCategory { get; } + public DownloadCategoryViewModel SelectedCategory => _selectedCategory; + private IEnumerable Categories => new[] { MinecraftCategory }.Concat(CommunityCategories).Concat(InstallerCategories).Append(TasksCategory); + public bool IsCatalogPage => !_isConfiguration && !_isResourceDetail && !IsPackageDetail && SelectedCategory.Id is "minecraft" or "installer-minecraft"; + public bool IsSearchPage => !_isConfiguration && !_isResourceDetail && SelectedCategory.Id is "mod" or "modpack" or "datapack" or "resourcepack" or "shader" or "world"; + public bool IsInstallerPage => !_isConfiguration && !_isResourceDetail && !IsPackageDetail && SelectedCategory.Id != "installer-minecraft" && SelectedCategory.Id.StartsWith("installer-", StringComparison.Ordinal); + public bool IsFavoritesPage => !_isConfiguration && !_isResourceDetail && SelectedCategory.Id == "favorites"; + public bool IsTasksPage => !_isConfiguration && !_isResourceDetail && SelectedCategory.Id == "tasks"; + public bool IsConfiguration => _isConfiguration; + public bool IsResourceDetail => _isResourceDetail; + public bool ShowCategorySidebar => !_isResourceDetail && !IsTasksPage; + public bool CatalogAvailable => _catalog is not null; + public bool CanQuery => !_disposed && CatalogAvailable && Owner.CanBrowseDownloads; + public bool IsLoading => _loading; + public string RequestStatus { get => _requestStatus; private set { if (SetProperty(ref _requestStatus, value)) OnPropertyChanged(nameof(ShowRequestStatus)); } } + public bool ShowRequestStatus => _requestMessageVisible; + private void SetRequestStatus(string message, bool visible = true) + { _requestMessageVisible = visible; RequestStatus = message; OnPropertyChanged(nameof(ShowRequestStatus)); } + public string CatalogSource { get => _catalogSource; private set => SetProperty(ref _catalogSource, value); } + public bool HasCatalog => LatestVersions.Count > 0 || VersionGroups.Count > 0; + public ObservableCollection LatestVersions { get; } = []; + public ObservableCollection VersionGroups { get; } = []; + public string QueryText { get => _queryText; set { if (SetProperty(ref _queryText, value ?? "")) FiltersChanged(); } } + public string GameVersionFilter { get => _gameVersionFilter; set { if (SetProperty(ref _gameVersionFilter, value ?? "")) FiltersChanged(); } } + public IReadOnlyList LoaderFilters { get; } = ["任意", "Fabric", "Forge", "NeoForge", "Quilt"]; + public string LoaderFilter { get => _loaderFilter; set { if (SetProperty(ref _loaderFilter, value ?? "任意")) FiltersChanged(); } } + public IReadOnlyList SortChoices { get; } = [new("relevance", "默认"), new("downloads", "下载数量"), new("newest", "最新发布"), new("updated", "最近更新")]; + public ContentSortChoice SelectedSort { get => _selectedSort; set { if (value is not null && SetProperty(ref _selectedSort, value)) FiltersChanged(); } } + public IReadOnlyList ContentSourceChoices => SelectedCategory.Id == "world" ? [new("all", "全部"), new("curseforge", "CurseForge")] : [new("all", "全部"), new("curseforge", "CurseForge"), new("modrinth", "Modrinth")]; + public ContentSourceChoice SelectedSource + { + get => _selectedSource; + set + { + if (value is null || !SetProperty(ref _selectedSource, value) || _restoringSearch) return; + ++_requestRevision; CancelBrowseReads(); _searchCompleted = false; + _contentCategory = new("", "全部"); UpdateContentCategories(); FiltersChanged(); + } + } + public ObservableCollection Projects { get; } = []; + public bool HasProjects => Projects.Count > 0; + public string SearchPlaceholder => "搜索" + SelectedCategory.Title; + public bool SearchSupported => SelectedCategory.Id != "world" || SelectedSource.Id != "modrinth"; + public string SearchCapabilityReason => SearchSupported ? "" : "Modrinth 未提供世界目录,请选择 CurseForge。"; + public string PageSummary => $"第 {_searchOffset / 30 + 1} 页 · {Projects.Count} 项"; + public string QueryCapabilityReason => CatalogAvailable ? "" : "目录服务尚未接入,当前可在实例页手动创建并安装游戏。"; + public string SelectedVersionId => _selectedVersion?.Id ?? ""; + public string InstallationName { get => _installationName; set { if (SetProperty(ref _installationName, value ?? "")) NotifyInstallDraft(); } } + public string InstallationValidation => string.IsNullOrWhiteSpace(InstallationName) ? "请输入安装名称。" + : InstallationName.Trim().Length > 80 ? "安装名称最多 80 个字符。" + : !ValidAdditionalLoader ? AdditionalLoaderValidation + : Owner.Snapshot.Instances.Any(i => string.Equals(i.Name, InstallationName.Trim(), StringComparison.OrdinalIgnoreCase)) ? "已有同名实例,请修改安装名称。" + : "名称可用。"; + public bool ValidInstallation => _selectedVersion is { CanInstall: true } && !string.IsNullOrWhiteSpace(InstallationName) && InstallationName.Trim().Length <= 80 + && ValidAdditionalLoader && !Owner.Snapshot.Instances.Any(i => string.Equals(i.Name, InstallationName.Trim(), StringComparison.OrdinalIgnoreCase)); + public bool HasInstallationValidation => _createdInstanceId is null && !ValidInstallation; + public string InstallationSummary => _selectedAdditionalLoader is { } loader ? $"Minecraft {SelectedVersionId} + {LoaderTitle(loader.Loader)} {loader.DisplayVersion}" + : _selectedFabric is { } fabric ? $"Minecraft {SelectedVersionId} + Fabric Loader {fabric.Version}" : $"Minecraft {SelectedVersionId} · 原版"; + public ObservableCollection FabricVersions { get; } = []; + public LoaderCatalogVersion? SelectedFabric + { + get => _selectedFabric; + set + { + var previousDefault = DefaultInstallationName; + if (!SetProperty(ref _selectedFabric, value)) return; + if (value is not null) ClearAdditionalSelection(); + if (InstallationName == previousDefault) InstallationName = DefaultInstallationName; + NotifyInstallDraft(); + OnPropertyChanged(nameof(FabricSummary)); + } + } + private string DefaultInstallationName => _selectedAdditionalLoader is { } loader ? $"{SelectedVersionId}-{LoaderTitle(loader.Loader)}_{loader.DisplayVersion}" + : _selectedFabric is { } fabric ? $"{SelectedVersionId}-Fabric_{fabric.Version}" : SelectedVersionId; + public string FabricStatus { get => _fabricStatus; private set => SetProperty(ref _fabricStatus, value); } + public string InstallStatus { get => _installStatus; private set => SetProperty(ref _installStatus, value); } + public bool HasCreatedInstance => _createdInstanceId is not null; + public ContentProject? SelectedProject => _selectedProject; + private ContentProjectRowViewModel? projectHeaderRow; + public Avalonia.Media.Imaging.Bitmap? ProjectIcon => projectHeaderRow?.Icon; + public bool HasProjectIcon => projectHeaderRow?.HasIcon == true; + private void ProjectHeaderIconChanged(object? sender, System.ComponentModel.PropertyChangedEventArgs e) + { if (e.PropertyName is nameof(ContentProjectRowViewModel.Icon) or nameof(ContentProjectRowViewModel.HasIcon)) { OnPropertyChanged(nameof(ProjectIcon)); OnPropertyChanged(nameof(HasProjectIcon)); } } + public string ProjectTitle => _selectedProject?.Title ?? ""; + public string ProjectDescription => _selectedProject?.Description ?? ""; + public string ProjectSourceName => _selectedProject?.Source == "curseforge" ? "CurseForge" : "Modrinth"; + public string ProjectDetail => _selectedProject is { } project ? $"{project.Author} · 下载 {project.Downloads:N0} 次 · {ProjectSourceName}" : ""; + public string ProjectTile => ProjectTitle.Length == 0 ? "?" : System.Globalization.StringInfo.GetNextTextElement(ProjectTitle); + public ObservableCollection ReleaseGroups { get; } = []; + public bool HasReleases => ReleaseGroups.Count > 0; + public string LastDownloadPath { get => _lastDownloadPath; private set { if (SetProperty(ref _lastDownloadPath, value)) { OnPropertyChanged(nameof(HasDownloadedFile)); OpenDownloadDirectoryCommand.NotifyCanExecuteChanged(); ReadCachedPackCommand.NotifyCanExecuteChanged(); } } } + public bool HasDownloadedFile => LastDownloadPath.Length > 0; + public ObservableCollection FavoriteProjects { get; } = []; + public bool HasFavorites => FavoriteProjects.Count > 0; + public bool IsProjectFavorite => _selectedProject is { } project && _favorites.Any(p => p.Id == project.Id) && (SelectedFavoriteFolder?.Projects.Contains(project.Id) ?? true); + public string FavoriteAction => IsProjectFavorite ? "取消收藏" : "收藏"; + public string FavoriteStatus { get => _favoriteStatus; private set { SetProperty(ref _favoriteStatus, value); OnPropertyChanged(nameof(ShowProjectFavoriteStatus)); } } + public bool ShowProjectFavoriteStatus => _favoritesLoadFailed; + public string InstallerTitle => SelectedCategory.Title; + private Uri InstallerPageUri => new(SelectedCategory.Id switch + { + "installer-optifine" => "https://optifine.net/downloads", + "installer-forge" => "https://files.minecraftforge.net/net/minecraftforge/forge/", + "installer-neoforge" => "https://neoforged.net/", + "installer-cleanroom" => "https://cleanroommc.com/", + "installer-fabric" => "https://fabricmc.net/use/installer/", + "installer-quilt" => "https://quiltmc.org/", + "installer-legacyfabric" => "https://legacyfabric.net/", + "installer-labymod" => "https://laby.net/client", + "installer-liteloader" => "https://www.liteloader.com/", + _ => "https://www.minecraft.net/" + }); + public string InstallerDescription => SelectedCategory.Id == "installer-minecraft" + ? "Minecraft 的自动创建、依赖下载与校验已接入。独立安装包保存尚未迁移,可返回自动安装。" + : SelectedCategory.Id == "installer-fabric" ? "Fabric Loader 可在 Minecraft 自动安装配置中选择。独立 Fabric 安装器下载尚未迁移。" + : SelectedCategory.Id is "installer-forge" or "installer-neoforge" ? $"{SelectedCategory.Title}自动安装已在Minecraft配置页接入;独立安装器下载保存尚未迁移。" + : $"{SelectedCategory.Title} 的安装器下载与安装链尚未迁移。"; + + public AsyncRelayCommand RefreshCatalogCommand { get; } + public AsyncRelayCommand SearchCommand { get; } + public AsyncRelayCommand NextPageCommand { get; } + public AsyncRelayCommand PreviousPageCommand { get; } + public RelayCommand ResetFiltersCommand { get; } + public RelayCommand BackToListCommand { get; } + public RelayCommand ShowAutomaticInstallCommand { get; } + public AsyncRelayCommand RefreshFabricCommand { get; } + public RelayCommand ClearFabricCommand { get; } + public AsyncRelayCommand InstallVersionCommand { get; } + public RelayCommand ShowCreatedInstanceCommand { get; } + public AsyncRelayCommand RefreshReleasesCommand { get; } + public AsyncRelayCommand OpenProjectPageCommand { get; } + public AsyncRelayCommand ToggleFavoriteCommand { get; } + public AsyncRelayCommand OpenDownloadDirectoryCommand { get; } + public AsyncRelayCommand OpenInstallerPageCommand { get; } + + public DownloadsPageViewModel(MainWindowViewModel owner, ILauncherCatalogService? catalog = null, string? favoritesPath = null, + IContentInstallationService? contentInstall = null, IModrinthPackService? modrinthPacks = null, ILoaderInstanceService? loaderService = null, + ILocalPackService? localPacks = null) + : base(owner, "下载", "Minecraft 自动安装与社区资源") + { + InitializeTransferSummary(); + _catalogSourceConfiguration = owner.Snapshot.Settings.DownloadSourcesJson; + _catalog = catalog ?? Service as ILauncherCatalogService; + _imageToken = _imageLifetime.Token; + _favoritesPathOverride = favoritesPath; + InitializeContentInstallation(contentInstall, modrinthPacks, localPacks ?? catalog as ILocalPackService); + InitializeAdditionalLoaders(loaderService); + DownloadCategoryViewModel Category(string id, string title) => new(this, id, title, ClubIcons.ForDownloadCategory(id)); + MinecraftCategory = Category("minecraft", "Minecraft"); + CommunityCategories = [Category("mod", "模组"), Category("modpack", "整合包"), Category("datapack", "数据包"), Category("resourcepack", "资源包"), Category("shader", "光影包"), Category("world", "世界"), Category("favorites", "收藏夹")]; + InstallerCategories = [Category("installer-minecraft", "Minecraft"), Category("installer-optifine", "OptiFine"), Category("installer-forge", "Forge"), Category("installer-neoforge", "NeoForge"), Category("installer-cleanroom", "Cleanroom"), Category("installer-fabric", "Fabric"), Category("installer-quilt", "Quilt"), Category("installer-legacyfabric", "Legacy Fabric"), Category("installer-labymod", "LabyMod"), Category("installer-liteloader", "LiteLoader")]; + TasksCategory = Category("tasks", "下载任务"); + _selectedCategory = MinecraftCategory; + _selectedSort = SortChoices[0]; + InitializeBrowsing(); + InitializeInstallerBrowsing(); + RefreshCatalogCommand = AsyncCommand(() => RefreshCatalogAsync(true), () => CanQuery && !_catalogRequestActive); + SearchCommand = AsyncCommand(() => SearchAsync(0), () => CanQuery && IsSearchPage && SearchSupported); + NextPageCommand = AsyncCommand(() => SearchAsync(_searchOffset + 30), () => CanQuery && _searchCompleted && Projects.Count == 30); + PreviousPageCommand = AsyncCommand(() => SearchAsync(Math.Max(0, _searchOffset - 30)), () => CanQuery && _searchCompleted && _searchOffset > 0); + ResetFiltersCommand = Command(() => { QueryText = ""; GameVersionFilter = ""; LoaderFilter = "任意"; SelectedSort = SortChoices[0]; SelectedContentCategory = ContentCategoryChoices[0]; FiltersChanged(); }, () => CanEdit); + BackToListCommand = Command(BackToList); + ShowAutomaticInstallCommand = Command(() => SelectCategory("minecraft")); + RefreshFabricCommand = AsyncCommand(RefreshFabricAsync, () => CanQuery && _selectedVersion is not null); + ClearFabricCommand = Command(ClearAllLoaders, () => CanEdit && (SelectedFabric is not null || SelectedAdditionalLoader is not null)); + InstallVersionCommand = AsyncCommand(InstallVersionAsync, () => CanEdit && ValidInstallation); + ShowCreatedInstanceCommand = Command(() => Owner.ShowInstancesCommand.Execute(null), () => HasCreatedInstance); + RefreshReleasesCommand = AsyncCommand(RefreshReleasesAsync, () => CanQuery && _selectedProject is not null); + OpenProjectPageCommand = AsyncCommand(() => Owner.RunControlAsync("打开项目页", ct => Owner.ExternalLauncher.OpenUriAsync(_selectedProject!.PageUri, ct)), () => _selectedProject is not null); + ToggleFavoriteCommand = AsyncCommand(ToggleFavoriteAsync, () => CanEdit && !_favoritesLoadFailed && _selectedProject is not null); + OpenDownloadDirectoryCommand = AsyncCommand(() => Owner.RunControlAsync("打开下载目录", ct => Owner.ExternalLauncher.OpenDirectoryAsync(Path.GetDirectoryName(LastDownloadPath)!, ct)), () => HasDownloadedFile); + OpenInstallerPageCommand = AsyncCommand(() => + { + var uri = InstallerPageUri; + return Owner.RunControlAsync("打开官方网站", ct => Owner.ExternalLauncher.OpenUriAsync(uri, ct)); + }, () => IsInstallerPage); + InitializeFavorites(); + LoadFavorites(); + } + + public void SelectCategory(string id) + { + instanceResourceReturn = null; + if (id != "datapack") _worldBrowserContext = null; + var selected = Categories.FirstOrDefault(c => c.Id == id); + if (selected is null) return; + if (!ReferenceEquals(_selectedCategory, selected)) + { + SaveSearchDraft(); + ++_requestRevision; + CancelBrowseReads(); _catalogRequestActive = false; + _selectedCategory = selected; + _isConfiguration = false; _isResourceDetail = false; _isPackageDetail = false; + _searchOffset = 0; _searchCompleted = false; ClearProjectRows(Projects); + SetRequestStatus(id is "minecraft" or "installer-minecraft" ? _catalogStatus + : id == "world" ? SearchCapabilityReason : "输入条件后点击搜索。", id is "minecraft" or "installer-minecraft" && _catalogMessageVisible); + if (IsSearchPage) RestoreSearchDraft(id); + } + NotifyPage(); + OnNavigatedTo(); + } + private void NotifyPage() + { + OnPropertyChanged(nameof(ShowRequestStatus)); OnPropertyChanged(nameof(CanTranslateDescription)); OnPropertyChanged(nameof(HasWikiReference)); + OnPropertyChanged(nameof(InstallerIntroduction)); + OnPropertyChanged(nameof(ContentSourceChoices)); OnPropertyChanged(nameof(SelectedSource)); + foreach (var category in Categories) category.RefreshSelection(); + OnPropertyChanged(nameof(IsPackageDetail)); OnPropertyChanged(nameof(CatalogPurpose)); + NotifyContentInstallationPage(); + foreach (var name in new[] { nameof(SelectedCategory), nameof(IsCatalogPage), nameof(IsSearchPage), nameof(IsInstallerPage), nameof(IsFavoritesPage), nameof(IsTasksPage), nameof(IsConfiguration), nameof(IsResourceDetail), nameof(ShowCategorySidebar), nameof(ShowTaskSummarySidebar), nameof(SearchPlaceholder), nameof(SearchSupported), nameof(SearchCapabilityReason), nameof(PageSummary), nameof(InstallerTitle), nameof(InstallerDescription), nameof(HasProjects) }) OnPropertyChanged(name); + NotifyCommands(); + NotifyBrowseState(); + } + private Task QueryAsync(string label, int revision, Func action) + => ReadBrowseAsync(label, revision, action); + private async Task RefreshCatalogAsync(bool forceRefresh) + { + if (_catalogRequestActive || !CanQuery) return; + _catalogRequestActive = true; + var revision = _requestRevision; + var sourceRevision = _catalogSourceRevision; + try { await QueryAsync("读取 Minecraft 目录", revision, async ct => + { + var catalog = forceRefresh && _catalog is IMinecraftCatalogCacheService cache + ? await cache.RefreshGameCatalogAsync(ct) : await _catalog!.GetGameCatalogAsync(ct); + ct.ThrowIfCancellationRequested(); + if (sourceRevision != _catalogSourceRevision) return; + // Both Minecraft routes share immutable catalog rows, even if navigation changed during the request. + LatestVersions.Clear(); VersionGroups.Clear(); + var rows = catalog.Versions.OrderByDescending(v => v.ReleaseTime).Select(v => new GameCatalogRowViewModel(this, v)).ToArray(); + foreach (var row in rows.Where(v => v.Version.Latest).OrderBy(v => v.Version.Kind == "release" ? 0 : 1)) LatestVersions.Add(row); + foreach (var group in rows.GroupBy(v => SHOU.Launcher.Core.Catalog.MinecraftCatalogGroups.Group(v.Version)).OrderBy(g => g.Key switch { "正式版" => 0, "预览版" => 1, "远古版" => 2, "愚人节版" => 3, _ => 4 })) + VersionGroups.Add(new(group.Key, group.ToArray())); + _catalogLoaded = true; + CatalogSource = "来源:" + catalog.Source + (catalog.Partial ? " · 精简目录,可能缺少历史版本" : "") + + (catalog.FromCache ? " · 本地缓存" : "") + (catalog.FetchedAt is { } date ? $" · 更新于 {date.LocalDateTime:yyyy/M/d HH:mm}" : ""); + _catalogStatus = (rows.Length == 0 ? "目录没有返回版本。" : $"已读取 {rows.Length} 个版本。") + + (catalog.Notice is { Length: > 0 } notice ? " " + notice : ""); + _catalogMessageVisible = rows.Length == 0 || !string.IsNullOrEmpty(catalog.Notice); + if (IsCatalogPage) SetRequestStatus(_catalogStatus, _catalogMessageVisible); + OnPropertyChanged(nameof(HasCatalog)); NotifyCommands(); + }); } + finally { if (revision == _requestRevision && sourceRevision == _catalogSourceRevision) _catalogRequestActive = false; NotifyCommands(); } + } + public void SelectVersion(GameCatalogVersion version) + { + if (!CanEdit || !version.CanInstall) return; + if (SelectedCategory.Id == "installer-minecraft") { _ = OpenPackageVersionAsync(version); return; } + ++_requestRevision; CancelBrowseReads(); + if (_selectedVersion?.Id == version.Id && _createdInstanceId is null) + { _isConfiguration = true; _isResourceDetail = false; _isPackageDetail = false; NotifyPage(); StartAutomaticLoaders(); return; } + _selectedVersion = version; _selectedFabric = null; _createdInstanceId = null; + ResetAdditionalLoaders(); + _isConfiguration = true; _isResourceDetail = false; _isPackageDetail = false; FabricVersions.Clear(); + _installationName = DefaultInstallationName; InstallStatus = ""; + FabricStatus = ""; + OnPropertyChanged(nameof(InstallationName)); OnPropertyChanged(nameof(SelectedVersionId)); OnPropertyChanged(nameof(SelectedFabric)); OnPropertyChanged(nameof(HasCreatedInstance)); + NotifyInstallDraft(); NotifyPage(); StartAutomaticLoaders(); + } + private void BackToList() + { + ++_requestRevision; CancelBrowseReads(); _isConfiguration = false; _isResourceDetail = false; _isPackageDetail = false; + SetRequestStatus(IsCatalogPage ? _catalogStatus : _searchCompleted ? $"已返回 {Projects.Count} 项资源。" : "输入条件后点击搜索。", IsCatalogPage && _catalogMessageVisible); + NotifyPage(); RestoreFavoriteIcons(); + ReturnToInstanceResource(); + } + private async Task RefreshFabricAsync() + { + var revision = _requestRevision; var game = SelectedVersionId; + if (!CanQuery || _selectedVersion is null || FabricLoading) return; + FabricLoading = true; FabricStatus = ""; + try { await ReadBrowseAsync("获取 Fabric 版本", revision, async ct => + { + var versions = await _catalog!.GetFabricCatalogAsync(game, ct); ct.ThrowIfCancellationRequested(); + if (revision != _requestRevision) return; + FabricVersions.Clear(); foreach (var version in versions) FabricVersions.Add(version); + if (SelectedFabric is not null && !versions.Contains(SelectedFabric)) SelectedFabric = null; + FabricStatus = versions.Count == 0 ? "此 Minecraft 版本没有可用的 Fabric Loader。" : ""; + _fabricLoaded = true; + }, "loader-fabric", page: false, failure: message => FabricStatus = message); } + finally { if (revision == _requestRevision) { FabricLoading = false; OnPropertyChanged(nameof(FabricSummary)); } } + } + private void NotifyInstallDraft() + { + OnPropertyChanged(nameof(InstallationValidation)); OnPropertyChanged(nameof(ValidInstallation)); OnPropertyChanged(nameof(HasInstallationValidation)); OnPropertyChanged(nameof(InstallationSummary)); + InstallVersionCommand?.NotifyCanExecuteChanged(); ClearFabricCommand?.NotifyCanExecuteChanged(); + } + private async Task InstallVersionAsync() + { + if (!ValidInstallation || _selectedVersion is null) return; + var name = InstallationName.Trim(); var version = _selectedVersion.Id; var fabric = SelectedFabric?.Version; var loader = SelectedAdditionalLoader; + _createdInstanceId = null; OnPropertyChanged(nameof(HasCreatedInstance)); + InstallStatus = "正在下载并安装 Minecraft…"; + var success = await Owner.RunAsync("下载并安装 Minecraft", async ct => + { + var instance = Service is ITransactionalInstanceInstaller transactional ? await transactional.CreateInstalledInstanceAsync(name, version, + loader?.Loader ?? (fabric is null ? "vanilla" : "fabric"), loader?.Version ?? fabric, ct) + : loader is not null ? await _loaderService!.CreateLoaderInstanceAsync(name, version, loader.Loader, loader.Version, ct) + : fabric is null ? await Service.CreateInstanceAsync(name, version, ct) + : await Service.CreateFabricInstanceAsync(name, version, fabric, ct); + _createdInstanceId = instance.Id; OnPropertyChanged(nameof(HasCreatedInstance)); + if (!instance.Installed) await Service.InstallInstanceAsync(instance.Id, ct); + }); + InstallStatus = success ? "Minecraft 已下载并安装,可在启动页选择此版本。" + : _createdInstanceId is null ? Owner.ErrorMessage ?? "创建已取消。" : "实例已创建,但安装尚未完成。可在实例页继续安装。"; + ShowCreatedInstanceCommand.NotifyCanExecuteChanged(); NotifyInstallDraft(); + } + private async Task SearchAsync(int offset) + { + if (!SearchSupported) return; + if (QueryText.Length > 256) { SetRequestStatus("搜索关键词最多 256 个字符。"); return; } + _filterDelay?.Cancel(); _searchRequested = false; + var revision = ++_requestRevision; + _ = ReadContentCategoriesAsync(revision); + var query = new ContentQuery(SelectedCategory.Id, QueryText.Trim(), NullIfBlank(GameVersionFilter), LoaderFilter == "任意" ? null : LoaderFilter.ToLowerInvariant(), SelectedSort.Id, offset, NullIfBlank(SelectedContentCategory.Id), SelectedSource.Id); + await QueryAsync("查询社区资源", revision, async ct => + { + var page = (_catalog as IContentSourceCatalogService) is { } multi ? await multi.SearchContentPageAsync(query, ct) : new ContentSearchPage(await _catalog!.SearchContentAsync(query, ct)); + var projects = page.Projects; ct.ThrowIfCancellationRequested(); + if (revision != _requestRevision) return; + ClearProjectRows(Projects); foreach (var project in projects) Projects.Add(new(this, project)); + _searchOffset = offset; _searchCompleted = true; _searchFetched = DateTimeOffset.UtcNow; + SetRequestStatus(page.Notice ?? (projects.Count == 0 ? "没有符合条件的资源,请调整搜索条件。" : $"已返回 {projects.Count} 项资源。"), projects.Count == 0 || page.Notice is not null); + OnPropertyChanged(nameof(HasProjects)); OnPropertyChanged(nameof(PageSummary)); NotifyBrowseState(); NotifyCommands(); + SaveSearchDraft(); + using var images = CancellationTokenSource.CreateLinkedTokenSource(ct, _imageToken); + await Task.WhenAll(Projects.ToArray().Select(p => p.LoadIconAsync(_catalog!, _imageGate, images.Token))); + }); + } + public async Task OpenProjectAsync(ContentProject project, bool keepInstanceReturn = false) + { + if (!CanQuery) return; + if (!keepInstanceReturn) instanceResourceReturn = null; + ++_requestRevision; CancelBrowseReads(); _selectedProject = project; _isResourceDetail = true; _isConfiguration = false; + if (projectHeaderRow is not null) { projectHeaderRow.PropertyChanged -= ProjectHeaderIconChanged; projectHeaderRow.Dispose(); } + projectHeaderRow = new(this, project); projectHeaderRow.PropertyChanged += ProjectHeaderIconChanged; + OnPropertyChanged(nameof(ProjectIcon)); OnPropertyChanged(nameof(HasProjectIcon)); + _ = LoadProjectHeaderIconAsync(projectHeaderRow); + ResetResourceInstallStatus(); ResetProjectDescription(); + OnPropertyChanged(nameof(ProjectSourceName)); + ReleaseGroups.Clear(); LastDownloadPath = ""; + foreach (var name in new[] { nameof(SelectedProject), nameof(ProjectTitle), nameof(ProjectDescription), nameof(ProjectDetail), nameof(ProjectTile), nameof(IsProjectFavorite), nameof(FavoriteAction), nameof(HasReleases) }) OnPropertyChanged(name); + NotifyPage(); await RefreshReleasesAsync(); + } + private async Task LoadProjectHeaderIconAsync(ContentProjectRowViewModel row) + { + try { if (_catalog is not null) await row.LoadIconAsync(_catalog, _imageGate, _imageToken); } + catch (OperationCanceledException) { } + } + private async Task RefreshReleasesAsync() + { + if (_selectedProject is null) return; + var projectId = _selectedProject.Id; var revision = _requestRevision; + var game = NullIfBlank(GameVersionFilter); var loader = LoaderFilter == "任意" ? null : LoaderFilter.ToLowerInvariant(); + if (_selectedProject.Kind == "world") loader = null; + else if (_selectedProject.Kind == "datapack") loader = projectId.StartsWith("cf-", StringComparison.Ordinal) ? null : "datapack"; + await QueryAsync("读取资源文件", revision, async ct => + { + var releases = await _catalog!.GetContentReleasesAsync(projectId, game, loader, ct); ct.ThrowIfCancellationRequested(); + if (revision != _requestRevision) return; + ReleaseGroups.Clear(); + foreach (var group in releases.OrderByDescending(r => r.Published).GroupBy(r => string.Join(" / ", r.Loaders) + " " + (r.GameVersions.Count > 3 ? $"{r.GameVersions[0]} 等 {r.GameVersions.Count} 个版本" : string.Join(" / ", r.GameVersions)))) + ReleaseGroups.Add(new(group.Key.Trim(), group.Select(r => new ContentReleaseRowViewModel(r, r.Files.OrderByDescending(f => f.Primary).Select(f => new ContentFileRowViewModel(this, f, r)).ToArray(), ShowWorldContentInstall)).ToArray())); + SetRequestStatus(releases.Count == 0 ? "没有匹配当前版本与加载器的文件。" : $"已读取 {releases.Count} 个资源版本。", releases.Count == 0); + OnPropertyChanged(nameof(HasReleases)); NotifyCommands(); + }); + } + internal async Task DownloadFileAsync(ContentFile file) + { + if (!CatalogAvailable) return; + var success = await Owner.RunAsync("下载并校验资源", async ct => LastDownloadPath = await _catalog!.DownloadContentAsync(file, ct)); + SetRequestStatus(success ? "文件已校验并保存到缓存;尚未自动装入实例或存档。" : Owner.ErrorMessage ?? "下载已取消,可重试。"); + } + private static string? NullIfBlank(string? value) => string.IsNullOrWhiteSpace(value) ? null : value.Trim(); + + private static void ClearProjectRows(ObservableCollection rows) + { + foreach (var row in rows) row.Dispose(); + rows.Clear(); + } + public void Dispose() + { + if (projectHeaderRow is not null) { projectHeaderRow.PropertyChanged -= ProjectHeaderIconChanged; projectHeaderRow.Dispose(); projectHeaderRow = null; } + _worldRead?.Cancel(); _worldRead?.Dispose(); + if (_disposed) return; + _disposed = true; ++_requestRevision; CancelBrowseReads(); _imageLifetime.Cancel(); + ClearProjectRows(Projects); ClearProjectRows(FavoriteProjects); + transferDisplayTimer.Stop(); + _imageLifetime.Dispose(); + } + public override void Refresh(LauncherSnapshot snapshot) + { + if (_catalogSourceConfiguration != snapshot.Settings.DownloadSourcesJson) + { + _catalogSourceConfiguration = snapshot.Settings.DownloadSourcesJson; ++_catalogSourceRevision; + if (_browseReads.TryGetValue("page", out var read) && IsCatalogPage) { read.Cancellation.Cancel(); _catalogRequestActive = false; } + _catalogLoaded = false; _catalogRequested = true; _catalogStatus = "下载来源已更改,正在重新读取版本目录…"; + LatestVersions.Clear(); VersionGroups.Clear(); OnPropertyChanged(nameof(HasCatalog)); + _catalogMessageVisible = false; + if (IsCatalogPage) SetRequestStatus(_catalogStatus, false); + } + var ids = snapshot.Downloads.Select(t => t.Id).ToHashSet(StringComparer.Ordinal); + for (var i = Tasks.Count - 1; i >= 0; i--) if (!ids.Contains(Tasks[i].Task.Id)) Tasks.RemoveAt(i); + for (var i = 0; i < snapshot.Downloads.Count; i++) + { + var task = snapshot.Downloads[i]; + var row = Tasks.FirstOrDefault(t => t.Task.Id == task.Id); + if (row is null) Tasks.Insert(i, new(Owner, task)); + else { row.Update(task); if (Tasks.IndexOf(row) != i) Tasks.Move(Tasks.IndexOf(row), i); } + } + RefreshTransferHistory(snapshot); + RefreshContentTargets(snapshot); + foreach (var task in PackTasks) task.Refresh(snapshot); + NotifyPackTasks(); + OnPropertyChanged(nameof(CanTranslateDescription)); OnPropertyChanged(nameof(HasWikiReference)); + OnPropertyChanged(nameof(IsEmpty)); OnPropertyChanged(nameof(Summary)); NotifyInstallDraft(); base.Refresh(snapshot); + } + public override void NotifyCommands() + { + foreach (var task in Tasks) { task.CancelCommand.NotifyCanExecuteChanged(); task.RetryCommand.NotifyCanExecuteChanged(); } + foreach (var task in PackTasks) { task.RetryCommand.NotifyCanExecuteChanged(); task.OpenInstanceCommand.NotifyCanExecuteChanged(); task.RefreshOptionalCommands(); foreach (var row in task.ManualFiles) row.Refresh(); } + foreach (var row in LocalPackManualFiles) row.Refresh(); + foreach (var row in LatestVersions.Concat(VersionGroups.SelectMany(g => g.Versions))) row.SelectCommand.NotifyCanExecuteChanged(); + foreach (var row in Projects.Concat(FavoriteProjects)) row.OpenCommand.NotifyCanExecuteChanged(); + foreach (var file in ReleaseGroups.SelectMany(g => g.Releases).SelectMany(r => r.Files)) { file.DownloadCommand.NotifyCanExecuteChanged(); file.InstallCommand.NotifyCanExecuteChanged(); } + ImportLocalPackCommand?.NotifyCanExecuteChanged(); ReadCachedPackCommand?.NotifyCanExecuteChanged(); + ConfirmWorldContentInstallCommand?.NotifyCanExecuteChanged(); CancelWorldContentPreviewCommand?.NotifyCanExecuteChanged(); RefreshWorldContentTargetsCommand?.NotifyCanExecuteChanged(); + foreach (var loader in AdditionalLoaders) loader.NotifyState(); + foreach (var command in new[] { CreateFavoriteFolderCommand, RenameFavoriteFolderCommand, DeleteFavoriteFolderCommand, RemoveSelectedFavoritesCommand, ImportFavoriteShareCommand, ConfirmDeleteFavoriteFolderCommand, CopySelectedFavoritesCommand, MoveSelectedFavoritesCommand, RetryUnresolvedFavoritesCommand, PrepareFavoriteDownloadCommand }) command?.NotifyCanExecuteChanged(); + base.NotifyCommands(); OnPropertyChanged(nameof(CanQuery)); OnPropertyChanged(nameof(CanSaveFavoriteBatch)); + TryStartCatalogRequest(); TryStartSearchRequest(); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/FavoriteData.cs b/src/SHOU.Launcher.Desktop/ViewModels/FavoriteData.cs new file mode 100644 index 00000000..34b32b4e --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/FavoriteData.cs @@ -0,0 +1,70 @@ +using System.Text; +using System.Text.Json; +using SHOU.Launcher.Core; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record FavoriteFolder(string Id, string Name, string[] Projects, Dictionary? Notes = null, string[]? Unresolved = null) +{ public override string ToString() => Name; } +public sealed record FavoriteDocument(int Version, ContentProject[] Projects, FavoriteFolder[] Folders); +public sealed record LegacyFavoriteFolder(string Id, string Name, string[] Projects, Dictionary Notes); +public static class FavoriteData +{ + public static string CanonicalId(string id) + { + if (string.IsNullOrEmpty(id) || id.Length > 128 || id.Any(c => !char.IsAsciiLetterOrDigit(c) && c != '-')) throw new InvalidDataException("收藏 ID 无效。"); + return id.All(char.IsAsciiDigit) ? "cf-" + id : id; + } + public static IReadOnlyList ReadLegacy(string text, string defaultName) + { + if (Encoding.UTF8.GetByteCount(text) > 1048576) throw new InvalidDataException("收藏文件超过大小限制。"); + using var json = JsonDocument.Parse(text); + JsonElement Find(JsonElement node, int depth) + { + if (depth > 12) throw new InvalidDataException("收藏配置层级过深。"); + if (node.ValueKind == JsonValueKind.String) { using var nested = JsonDocument.Parse(node.GetString()!); return Find(nested.RootElement, depth + 1); } + if (node.ValueKind == JsonValueKind.Array) return node.Clone(); + if (node.ValueKind == JsonValueKind.Object) + { + foreach (var property in node.EnumerateObject()) if (property.Name.Equals("CompFavorites", StringComparison.OrdinalIgnoreCase)) return Find(property.Value, depth + 1); + foreach (var property in node.EnumerateObject()) if (property.Name.Equals("Game", StringComparison.OrdinalIgnoreCase)) return Find(property.Value, depth + 1); + } + throw new InvalidDataException("请选择旧 WPF 收藏夹 JSON 或包含 CompFavorites 的配置导出。"); + } + var array = Find(json.RootElement, 0); var items = array.EnumerateArray().ToArray(); + if (items.All(e => e.ValueKind is JsonValueKind.String or JsonValueKind.Number)) return [new("", defaultName, items.Select(e => CanonicalId(e.ValueKind == JsonValueKind.String ? e.GetString()! : e.GetRawText())).Distinct().ToArray(), [])]; + var result = new List(); + foreach (var item in items) + { + if (item.ValueKind != JsonValueKind.Object || !item.TryGetProperty("Favs", out var favs) || favs.ValueKind != JsonValueKind.Array) throw new InvalidDataException("旧收藏夹格式无效。"); + var ids = favs.EnumerateArray().Select(e => CanonicalId(e.ValueKind == JsonValueKind.String ? e.GetString()! : e.GetRawText())).Distinct().ToArray(); + var notes = new Dictionary(); + if (item.TryGetProperty("Notes", out var annotations) && annotations.ValueKind == JsonValueKind.Object) + foreach (var note in annotations.EnumerateObject()) { var id = CanonicalId(note.Name); if (ids.Contains(id) && note.Value.ValueKind == JsonValueKind.String && !string.IsNullOrWhiteSpace(note.Value.GetString())) notes[id] = note.Value.GetString()!; } + var name = item.TryGetProperty("Name", out var label) && label.ValueKind == JsonValueKind.String ? label.GetString() : null; + var identity = item.TryGetProperty("Id", out var key) && key.ValueKind == JsonValueKind.String ? key.GetString() : ""; + result.Add(new(identity ?? "", string.IsNullOrWhiteSpace(name) ? defaultName : name!, ids, notes)); + } + return result; + } + public static double SearchScore(ContentProject project, string note, string query) + { + static string Normalize(string value) => value.Normalize(NormalizationForm.FormKC).ToLowerInvariant(); + query = Normalize(query.Trim()); if (query.Length == 0) return 1; + var terms = query.Split((char[]?)null, StringSplitOptions.RemoveEmptyEntries); if (terms.Length > 1) { var scores = terms.Select(t => SearchScore(project, note, t)).ToArray(); return scores.Any(s => s <= 0) ? 0 : scores.Average(); } + var fields = new[] { (project.Title, 10d), (ContentReferenceIndex.Find(project)?.Name ?? "", 10d), (note, 9d), (project.Slug, 8d), (project.Author, 6d), (project.Description, 4d), (string.Join(' ', (project.Categories ?? []).Concat((project.Categories ?? []).Select(DownloadsPageViewModel.CategoryName))), 3d), (project.Kind + " " + project.Source + " " + (project.Kind switch { "mod" => "模组", "modpack" => "整合包", "shader" => "光影包", "resourcepack" => "资源包", "world" => "世界", "datapack" => "数据包", _ => "" }), 2d) }; + var score = fields.Max(f => Normalize(f.Item1).Contains(query, StringComparison.Ordinal) ? f.Item2 : 0); + if (score > 0 || query.Length is < 4 or > 64 || query.Any(c => !char.IsAsciiLetterOrDigit(c))) return score; + foreach (var (field, weight) in fields.Take(4)) + foreach (var word in System.Text.RegularExpressions.Regex.Matches(Normalize(field), "[a-z0-9]+").Select(m => m.Value).Where(w => Math.Abs(w.Length - query.Length) <= 2).Take(64)) + if (Distance(query, word) <= Math.Max(1, query.Length / 4)) score = Math.Max(score, weight / 3); + return score; + } + private static int Distance(string a, string b) + { + var matrix = new int[a.Length + 1, b.Length + 1]; for (var i = 0; i <= a.Length; i++) matrix[i, 0] = i; for (var j = 0; j <= b.Length; j++) matrix[0, j] = j; + for (var i = 1; i <= a.Length; i++) for (var j = 1; j <= b.Length; j++) { matrix[i, j] = Math.Min(Math.Min(matrix[i - 1, j] + 1, matrix[i, j - 1] + 1), matrix[i - 1, j - 1] + (a[i - 1] == b[j - 1] ? 0 : 1)); if (i > 1 && j > 1 && a[i - 1] == b[j - 2] && a[i - 2] == b[j - 1]) matrix[i, j] = Math.Min(matrix[i, j], matrix[i - 2, j - 2] + 1); } + return matrix[a.Length, b.Length]; + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/HomePageViewModel.Appearance.cs b/src/SHOU.Launcher.Desktop/ViewModels/HomePageViewModel.Appearance.cs new file mode 100644 index 00000000..70e28e9f --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/HomePageViewModel.Appearance.cs @@ -0,0 +1,114 @@ +using Avalonia; +using Avalonia.Media; +using Avalonia.Media.Imaging; +using Avalonia.Platform; +using Avalonia.Threading; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Downloads; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class HomePageViewModel +{ + private SettingsPresentationPreferences presentation = new(); + private readonly DispatcherTimer backgroundTimer = new() { Interval = TimeSpan.FromSeconds(8) }; + private Bitmap? background, previousBackground; + private double backgroundFade = 1; + public double BackgroundFade { get => backgroundFade; private set => SetProperty(ref backgroundFade, value); } + public bool HasHomeBackdrop => presentation.RotateHomeBackground || (presentation.BackgroundImages?.Length ?? 0) > 0; + public double BackgroundImageOpacity => (double)presentation.BackgroundOpacity / 100; + public double BackgroundImageBlur => (double)presentation.BackgroundBlur; + public IBrush? BackgroundBrush => Brush(background); + public IBrush? PreviousBackgroundBrush => Brush(previousBackground); + private IBrush? Brush(Bitmap? bitmap) + { + if (bitmap is null) return null; + var fit = presentation.BackgroundFit; + return new ImageBrush(bitmap) + { + Stretch = fit is "smart" ? Stretch.UniformToFill : fit == "fit" ? Stretch.Uniform : fit == "stretch" ? Stretch.Fill : Stretch.None, + AlignmentX = fit.EndsWith("left", StringComparison.Ordinal) ? AlignmentX.Left : fit.EndsWith("right", StringComparison.Ordinal) ? AlignmentX.Right : AlignmentX.Center, + AlignmentY = fit.StartsWith("top", StringComparison.Ordinal) ? AlignmentY.Top : fit.StartsWith("bottom", StringComparison.Ordinal) ? AlignmentY.Bottom : AlignmentY.Center, + TileMode = fit == "tile" ? TileMode.Tile : TileMode.None, + DestinationRect = fit == "tile" ? new RelativeRect(0, 0, bitmap.Size.Width, bitmap.Size.Height, RelativeUnit.Absolute) : RelativeRect.Fill + }; + } + private string[] backgroundFiles = []; + private int backgroundIndex; + private bool backgroundTimerReady; + private string homeDocument = ""; + private CancellationTokenSource? customHomeRead; + private long homeGeneration; + public Bitmap? HomeBackground => background; + public bool IsCustomHome => presentation.HomeSource != "default"; + public bool ShowDefaultHome => !IsCustomHome; + public string HomeDocumentLocation => presentation.HomeLocation; + public bool ShowCustomHomeDocument => IsCustomHome && presentation.HomeSource != "empty"; + public bool IsRemoteHome => presentation.HomeSource == "remote"; + public string HomeDocument { get => homeDocument; private set => SetProperty(ref homeDocument, value); } + public bool ShowGameTip => presentation.ShowLaunchTips; + public string GameTip => "你可以在实例设置中为每个实例选择独立的 Java 和内存。"; + internal void ApplyAppearance(SettingsPresentationPreferences settings) + { + var previousHome = presentation.HomeSource + presentation.HomeLocation; + var previousImages = string.Join('\n', presentation.BackgroundImages ?? []); + presentation = settings; UpdateHomeFileWatcher(); + if (background is null || previousImages != string.Join('\n', settings.BackgroundImages ?? [])) RefreshBackgrounds(); + backgroundTimer.Interval = TimeSpan.FromSeconds((double)settings.SlideshowSeconds); + backgroundTimer.IsEnabled = settings.RotateHomeBackground && backgroundFiles.Length > 1; + foreach (var field in new[] { nameof(HasHomeBackdrop), nameof(BackgroundBrush), nameof(PreviousBackgroundBrush), nameof(BackgroundImageOpacity), nameof(BackgroundImageBlur) }) OnPropertyChanged(field); + foreach (var name in new[] { nameof(IsCustomHome), nameof(ShowCustomHomeDocument), nameof(ShowDefaultHome), nameof(HomeDocumentLocation), nameof(IsRemoteHome), nameof(ShowGameTip), nameof(ShowClubIntroduction), nameof(ShowClubServers) }) OnPropertyChanged(name); + if (previousHome != settings.HomeSource + settings.HomeLocation) _ = ReadCustomHomeAsync(); + } + public void RefreshBackgrounds() + { + if (!backgroundTimerReady) { backgroundTimerReady = true; backgroundTimer.Tick += (_, _) => { backgroundIndex++; LoadBackground(); }; } + backgroundFiles = (presentation.BackgroundImages ?? []).Where(File.Exists).Take(32).ToArray(); + if (backgroundFiles.Length == 0) backgroundFiles = ["avares://SHOU.Launcher.Desktop/Assets/Conduit/campus-lake.jpg", "avares://SHOU.Launcher.Desktop/Assets/Conduit/spawn-plaza.jpg", "avares://SHOU.Launcher.Desktop/Assets/Conduit/spawn-statues.jpg"]; + backgroundIndex = 0; LoadBackground(); + backgroundTimer.IsEnabled = presentation.RotateHomeBackground && backgroundFiles.Length > 1; + } + private void LoadBackground() + { + Bitmap? next = null; + try + { + if (backgroundFiles.Length > 0) + { + var path = backgroundFiles[backgroundIndex % backgroundFiles.Length]; + if (path.StartsWith("avares://", StringComparison.Ordinal)) + { using var input = AssetLoader.Open(new Uri(path)); next = Bitmap.DecodeToWidth(input, 1600); } + else + { + SHOU.Launcher.Core.IO.SafePath.RejectLinks(path); + if (new FileInfo(path).Length > 20 * 1024 * 1024) throw new InvalidDataException("背景图片过大。"); + using var input = File.OpenRead(path); next = Bitmap.DecodeToWidth(input, 1600); + } + } + } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or ArgumentException or NotSupportedException) { } + if (next is null) + { + try { using var input = AssetLoader.Open(new Uri("avares://SHOU.Launcher.Desktop/Assets/Conduit/campus-lake.jpg")); next = Bitmap.DecodeToWidth(input, 1600); } + catch (Exception ex) when (ex is IOException or InvalidOperationException or NotSupportedException) { } + } + previousBackground?.Dispose(); previousBackground = background; background = next; + BackgroundFade = previousBackground is null ? 1 : 0; + foreach (var field in new[] { nameof(HomeBackground), nameof(BackgroundBrush), nameof(PreviousBackgroundBrush) }) OnPropertyChanged(field); + Dispatcher.UIThread.Post(() => BackgroundFade = 1); + } + public CommunityToolkit.Mvvm.Input.AsyncRelayCommand RefreshCustomHomeCommand => refreshCustomHomeCommand ??= new(ReadCustomHomeAsync); + private CommunityToolkit.Mvvm.Input.AsyncRelayCommand? refreshCustomHomeCommand; + private async Task ReadCustomHomeAsync() + { + customHomeRead?.Cancel(); var generation = ++homeGeneration; HomeDocument = ""; + if (!IsCustomHome || presentation.HomeSource == "empty" || Service is not ILauncherInformationService info) { HomeDocument = ""; return; } + using var cts = CancellationTokenSource.CreateLinkedTokenSource(communityLifetime.Token); customHomeRead = cts; + try { var text = await info.ReadHomeDocumentAsync(presentation.HomeLocation, presentation.HomeSource == "remote", cts.Token); if (generation == homeGeneration && !cts.IsCancellationRequested) HomeDocument = text; } + catch (OperationCanceledException) { } + catch (Exception ex) when (ex is IOException or HttpRequestException or ArgumentException or UnauthorizedAccessException) + { if (generation == homeGeneration) HomeDocument = "主页读取失败:" + UiPrivacy.Redact(ex.Message); } + finally { if (ReferenceEquals(customHomeRead, cts)) customHomeRead = null; } + } + private void DisposeAppearance() { SetHomeFileWatching(false); customHomeRead?.Cancel(); backgroundTimer.Stop(); background?.Dispose(); previousBackground?.Dispose(); } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/HomePageViewModel.Community.cs b/src/SHOU.Launcher.Desktop/ViewModels/HomePageViewModel.Community.cs new file mode 100644 index 00000000..14400d48 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/HomePageViewModel.Community.cs @@ -0,0 +1,110 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.ComponentModel; +using CommunityToolkit.Mvvm.Input; +using PCL.Core.Conduit; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed class ClubUpdateItemViewModel : ObservableObject +{ + public ClubUpdateNotice Notice { get; } + public string Header => Notice.DateText + " · " + Notice.Title; + private readonly HomePageViewModel owner; + private string body = "展开后读取正文。"; + private bool expanded, loading; + public ClubUpdateItemViewModel(HomePageViewModel owner, ClubUpdateNotice notice) + { this.owner = owner; Notice = notice; RetryCommand = new(() => owner.ReadArticleAsync(this, true)); } + public string Body { get => body; internal set => SetProperty(ref body, value); } + public bool IsLoading { get => loading; internal set => SetProperty(ref loading, value); } + internal bool Loaded { get; set; } + public bool IsExpanded { get => expanded; set { if (SetProperty(ref expanded, value) && value && !Loaded && !loading) _ = owner.ReadArticleAsync(this); } } + internal void ExpandWithoutLoading() => SetProperty(ref expanded, true, nameof(IsExpanded)); + public AsyncRelayCommand RetryCommand { get; } +} + +public sealed partial class HomePageViewModel : IDisposable +{ + private readonly CancellationTokenSource communityLifetime = new(); + private CancellationTokenSource? updatesRead; + private bool communityStarted, serverRefreshing, updatesOpen, updatesLoading; + private long updatesGeneration; + private string updatesStatus = "", updatesCache = "", serverFeedback = "尚未查询"; + private Task? statusRequest; + public ObservableCollection UpdateItems { get; } = []; + public bool IsServerRefreshing { get => serverRefreshing; private set { SetProperty(ref serverRefreshing, value); RefreshServersCommand.NotifyCanExecuteChanged(); } } + public string ServerStatusSummary => IsServerRefreshing ? "正在查询服务器状态…" : serverFeedback + "\n" + string.Join("\n", Owner.Snapshot.Servers.Where(s => s.Id != "none").Select(s => s.Name + ":" + (s.OnlinePlayers is { } n ? n + " 人在线" : s.Status))); + public bool IsUpdatesOpen { get => updatesOpen; private set => SetProperty(ref updatesOpen, value); } + public bool IsUpdatesLoading { get => updatesLoading; private set { if (SetProperty(ref updatesLoading, value)) OnPropertyChanged(nameof(ShowUpdatesEmpty)); RefreshUpdatesCommand.NotifyCanExecuteChanged(); } } + public bool HasUpdates => UpdateItems.Count > 0; + public bool ShowUpdatesEmpty => !IsUpdatesLoading && !HasUpdates; + public string UpdatesStatus { get => updatesStatus; private set => SetProperty(ref updatesStatus, value); } + public string UpdatesCacheSummary { get => updatesCache; private set => SetProperty(ref updatesCache, value); } + public RelayCommand CloseUpdatesCommand { get; private set; } = null!; + public AsyncRelayCommand RefreshUpdatesCommand { get; private set; } = null!; + public AsyncRelayCommand OpenUpdatesWebsiteCommand { get; private set; } = null!; + private void InitializeCommunityCommands() + { + CloseUpdatesCommand = Command(CloseUpdates); + RefreshUpdatesCommand = AsyncCommand(() => ReadUpdatesAsync(true), () => !IsUpdatesLoading); + OpenUpdatesWebsiteCommand = Open(ClubUpdateNoticeParser.IndexUrl); + } + public void StartCommunityRefresh() + { + if (communityStarted || Service is not IClubContentService) return; + communityStarted = true; _ = RefreshServerStatusAsync(); _ = PollServersAsync(); + } + private async Task PollServersAsync() + { + using var timer = new PeriodicTimer(TimeSpan.FromMinutes(1)); + try { while (await timer.WaitForNextTickAsync(communityLifetime.Token)) await RefreshServerStatusAsync(); } + catch (OperationCanceledException) when (communityLifetime.IsCancellationRequested) { } + } + private Task RefreshServerStatusAsync() => statusRequest is { IsCompleted: false } ? statusRequest : statusRequest = RefreshServerStatusCoreAsync(); + private async Task RefreshServerStatusCoreAsync() + { + IsServerRefreshing = true; OnPropertyChanged(nameof(ServerStatusSummary)); + try { await Service.RefreshServersAsync(communityLifetime.Token); serverFeedback = "已刷新 " + DateTime.Now.ToString("HH:mm"); } + catch (OperationCanceledException) when (communityLifetime.IsCancellationRequested) { } + catch (Exception) { serverFeedback = "暂时无法查询,可点击刷新重试。"; } + finally { IsServerRefreshing = false; OnPropertyChanged(nameof(ServerStatusSummary)); } + } + private async Task OpenUpdatesAsync() + { + if (IsUpdatesOpen) return; + updatesRead?.Dispose(); updatesRead = CancellationTokenSource.CreateLinkedTokenSource(communityLifetime.Token); + ++updatesGeneration; IsUpdatesOpen = true; await ReadUpdatesAsync(false); + } + private async Task ReadUpdatesAsync(bool refresh) + { + if (IsUpdatesLoading || !IsUpdatesOpen) return; + if (Service is not IClubContentService service) { UpdatesStatus = "当前服务不支持内嵌日志,可在社团网站阅读。"; return; } + var ct = updatesRead!.Token; var generation = updatesGeneration; IsUpdatesLoading = true; UpdatesStatus = "正在读取社团更新日志…"; + try + { + var result = await service.GetClubUpdatesAsync(refresh, ct); ct.ThrowIfCancellationRequested(); + if (generation != updatesGeneration) return; + var previous = UpdateItems.ToDictionary(i => i.Notice.Id); + UpdateItems.Clear(); foreach (var notice in result.Notices) UpdateItems.Add(previous.GetValueOrDefault(notice.Id) ?? new(this, notice)); + OnPropertyChanged(nameof(HasUpdates)); OnPropertyChanged(nameof(ShowUpdatesEmpty)); + UpdatesStatus = result.Warning ?? (result.FromCache ? "已读取缓存" : "已刷新 " + result.FetchedAt.LocalDateTime.ToString("HH:mm")); + UpdatesCacheSummary = ""; + if (UpdateItems.FirstOrDefault() is { } first) + { first.ExpandWithoutLoading(); if (refresh || !first.Loaded) await ReadArticleAsync(first, refresh); } + } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { } + catch (Exception ex) { if (generation == updatesGeneration) { UpdatesStatus = UiPrivacy.Redact(ex.Message); UpdatesCacheSummary = HasUpdates ? "保留已有内容,可重试。" : "可重试或在社团网站阅读。"; } } + finally { if (generation == updatesGeneration) IsUpdatesLoading = false; } + } + internal async Task ReadArticleAsync(ClubUpdateItemViewModel row, bool refresh = false) + { + if (Service is not IClubContentService service || updatesRead is null || !IsUpdatesOpen || row.IsLoading || !UpdateItems.Contains(row)) return; + var ct = updatesRead.Token; var generation = updatesGeneration; row.IsLoading = true; + try { var result = await service.GetClubUpdateArticleAsync(row.Notice, refresh, ct); ct.ThrowIfCancellationRequested(); if (generation == updatesGeneration && UpdateItems.Contains(row)) { row.Body = result.Body; row.Loaded = true; } } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { } + catch (Exception ex) { if (generation == updatesGeneration) row.Body = UiPrivacy.Redact(ex.Message) + "\n可点击重新读取正文。"; } + finally { row.IsLoading = false; } + } + private void CloseUpdates() { updatesRead?.Cancel(); ++updatesGeneration; IsUpdatesOpen = false; IsUpdatesLoading = false; } + public void Dispose() { CloseUpdates(); DisposeAppearance(); communityLifetime.Cancel(); } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/HomePageViewModel.CustomHome.cs b/src/SHOU.Launcher.Desktop/ViewModels/HomePageViewModel.CustomHome.cs new file mode 100644 index 00000000..98aa85c4 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/HomePageViewModel.CustomHome.cs @@ -0,0 +1,56 @@ +using Avalonia.Threading; +using SHOU.Launcher.Core; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class HomePageViewModel +{ + private FileSystemWatcher? homeWatcher; + private CancellationTokenSource? homeWatchDelay; + private bool homeWatching; + private string homeWatchPath = "", homeActionFeedback = ""; + public string HomeActionFeedback { get => homeActionFeedback; private set { SetProperty(ref homeActionFeedback, value); OnPropertyChanged(nameof(HasHomeActionFeedback)); } } + public bool HasHomeActionFeedback => HomeActionFeedback.Length > 0; + public void SetHomeFileWatching(bool active) { var changed = homeWatching != active; homeWatching = active; UpdateHomeFileWatcher(); if (active && changed && presentation.HomeSource == "local") _ = ReadCustomHomeAsync(); } + private void UpdateHomeFileWatcher() + { + var target = homeWatching && presentation.HomeSource == "local" ? presentation.HomeLocation : ""; + if (homeWatcher is not null && target == homeWatchPath) return; + homeWatcher?.Dispose(); homeWatcher = null; homeWatchDelay?.Cancel(); homeWatchDelay = null; homeWatchPath = target; + if (target.Length == 0 || !Path.IsPathFullyQualified(target) || !Directory.Exists(Path.GetDirectoryName(target))) return; + try + { + var watcher = new FileSystemWatcher(Path.GetDirectoryName(target)!, Path.GetFileName(target)) { NotifyFilter = NotifyFilters.FileName | NotifyFilters.LastWrite | NotifyFilters.Size }; + void Changed(object? sender, FileSystemEventArgs args) => Dispatcher.UIThread.Post(() => + { if (!ReferenceEquals(homeWatcher, watcher)) return; homeWatchDelay?.Cancel(); homeWatchDelay = new(); _ = ReadAfterChangeAsync(watcher, homeWatchDelay); }); + watcher.Changed += Changed; watcher.Created += Changed; watcher.Deleted += Changed; watcher.Renamed += (s, e) => Changed(s, e); homeWatcher = watcher; watcher.EnableRaisingEvents = true; + } + catch (Exception ex) when (ex is IOException or ArgumentException or UnauthorizedAccessException) { HomeActionFeedback = "主页文件监视失败:" + UiPrivacy.Redact(ex.Message); } + } + private async Task ReadAfterChangeAsync(FileSystemWatcher watcher, CancellationTokenSource delay) + { + try { await Task.Delay(250, delay.Token); if (ReferenceEquals(homeWatcher, watcher) && !delay.IsCancellationRequested) await ReadCustomHomeAsync(); } + catch (OperationCanceledException) { } + finally { if (ReferenceEquals(homeWatchDelay, delay)) homeWatchDelay = null; delay.Dispose(); } + } + public async Task ExecuteCustomHomeActionAsync(HomeAction action, CancellationToken ct = default) + { + ct.ThrowIfCancellationRequested(); + switch (action.Type) + { + case "OpenUrl": await Owner.RunControlAsync("打开主页链接", token => Owner.ExternalLauncher.OpenUriAsync(new(action.Data), token)); break; + case "RefreshHomepage": case "RefreshPage": await ReadCustomHomeAsync(); break; + case "ShowHint": HomeActionFeedback = action.Data.Split('|')[0].Replace("\\n", "\n"); break; + case "SwitchPage": + var parts = action.Data.Split('|'); var section = parts[0].ToLowerInvariant(); var child = parts.Length > 1 ? parts[1].ToLowerInvariant() : ""; + if (section is "launch" or "home" or "启动") Owner.SelectedPage = Owner.Home; + else if (section is "download" or "downloads" or "下载") + { var category = child switch { "downloadmod" => "mod", "downloadpack" => "modpack", "downloaddatapack" => "datapack", "downloadworld" => "world", "downloadinstall" => "minecraft", "downloadclient" => "installer-minecraft", "downloadresourcepack" => "resourcepack", "downloadshader" => "shader", "downloadcompfavorites" or "favorites" => "favorites", "" or "default" => "minecraft", _ => child }; Owner.Downloads.SelectCategory(category); Owner.SelectedPage = Owner.Downloads; } + else if (section is "setup" or "settings" or "设置") { if (child.Length > 0 && child != "default") Owner.Settings.SelectedSection = child switch { "setupui" => "appearance", "setuplaunch" => "launch", "setupsystem" or "setuplaunchermisc" => "misc", "setupjava" => "java", "setupgamemanage" => "manage", "setupabout" => "about", "setuplog" => "logs", "setupfeedback" => "feedback", "setupupdate" => "updates", "setuplauncherlanguage" => "language", _ => child }; Owner.SelectedPage = Owner.Settings; } + else if (section is "tools" or "other" or "工具") Owner.SelectedPage = Owner.Tools; + else throw new InvalidDataException("尚未适配的主页页面入口:" + action.Data); + break; + default: throw new InvalidDataException("尚未适配的主页事件:" + action.Type); + } + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/HomePageViewModel.cs b/src/SHOU.Launcher.Desktop/ViewModels/HomePageViewModel.cs new file mode 100644 index 00000000..fd998d65 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/HomePageViewModel.cs @@ -0,0 +1,85 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record ServerChoice(string Id, string Name, string Detail, string Status); + +public sealed partial class HomePageViewModel : PageViewModel +{ + private bool _showClubIntroduction; + private bool _showClubServers; + private bool _rotateHomeBackground = true; + private double _windowOpacity = 1; + public bool ShowClubIntroduction => _showClubIntroduction && !IsCustomHome; + public bool ShowClubServers => _showClubServers && !IsCustomHome; + public bool RotateHomeBackground => _rotateHomeBackground; + public double WindowOpacity => _windowOpacity; + public ObservableCollection Servers { get; } = []; + private ServerChoice? _selectedServer; + public ServerChoice? SelectedServer + { + get => _selectedServer; + set { if (SetProperty(ref _selectedServer, value)) { OnPropertyChanged(nameof(DestinationSummary)); Owner.NotifyState(); } } + } + public string SelectedServerId => SelectedServer?.Id ?? "none"; + public string DestinationSummary => SelectedServerId == "none" ? "只启动游戏,不自动连接服务器。" : $"启动后前往 {SelectedServer?.Name}。"; + public string BrandName => Owner.Snapshot.Build.Name; + public string ClubName => "潮涌核心社"; + public string SelectedInstanceName => Owner.Snapshot.Instances.FirstOrDefault(i => i.Id == Owner.Snapshot.SelectedInstanceId)?.Name ?? "尚未选择实例"; + public string OnlinePlayerSummary + { + get + { + var servers = Owner.Snapshot.Servers.Where(s => s.Id != "none").ToArray(); + var known = servers.Where(s => s.OnlinePlayers is not null).ToArray(); + // The entrances share the club gateway: do not count the same population three times. + return known.Length == 0 ? "未知" : known.Max(s => s.OnlinePlayers ?? 0).ToString() + (known.Length < servers.Length ? "+" : ""); + } + } + public string PlatformSummary => Owner.PlatformSummary; + public string DataDirectory => Service.Paths.DataDirectory; + public string CapabilitiesSummary => Service.Capabilities.Limitations.Count == 0 ? "平台基础能力已就绪。" : string.Join("\n", Service.Capabilities.Limitations); + public AsyncRelayCommand RefreshServersCommand { get; } + public AsyncRelayCommand OpenWikiCommand { get; } + public AsyncRelayCommand OpenGuideCommand { get; } + public AsyncRelayCommand OpenReleasesCommand { get; } + public AsyncRelayCommand OpenDataDirectoryCommand { get; } + + public HomePageViewModel(MainWindowViewModel owner) : base(owner, "社团首页", "五湖四海之士,汇于东海之滨") + { + RefreshServersCommand = AsyncCommand(RefreshServerStatusAsync, () => !IsServerRefreshing); + OpenWikiCommand = Open("https://conduit-club.github.io/"); + OpenGuideCommand = Open("https://conduit-club.github.io/servers/velocity/"); + OpenReleasesCommand = AsyncCommand(OpenUpdatesAsync); + OpenDataDirectoryCommand = AsyncCommand(() => Owner.RunControlAsync("打开数据目录", ct => Owner.ExternalLauncher.OpenDirectoryAsync(Service.Paths.DataDirectory, ct))); + InitializeCommunityCommands(); + } + private AsyncRelayCommand Open(string url) => AsyncCommand(() => Owner.RunControlAsync("打开链接", ct => Owner.ExternalLauncher.OpenUriAsync(new Uri(url), ct))); + public void SetPresentation(bool showIntroduction, bool showServers, bool rotateBackground = true, double opacity = 1) + { + SetProperty(ref _showClubIntroduction, showIntroduction, nameof(ShowClubIntroduction)); + SetProperty(ref _showClubServers, showServers, nameof(ShowClubServers)); + SetProperty(ref _rotateHomeBackground, rotateBackground, nameof(RotateHomeBackground)); + SetProperty(ref _windowOpacity, Math.Clamp(double.IsFinite(opacity) ? opacity : 1, 0.25, 1), nameof(WindowOpacity)); + } + public override void Refresh(LauncherSnapshot snapshot) + { + var selectedId = SelectedServerId; + var choices = new List { new("none", "只启动游戏", "不自动入服", "本地启动") }; + foreach (var server in snapshot.Servers.Where(s => s.Id != "none")) + choices.Add(new(server.Id, server.Name, server.Address, server.OnlinePlayers is { } online ? $"{online} 人在线 · {server.Status}" : server.Status)); + if (!Servers.SequenceEqual(choices)) { Servers.Clear(); foreach (var choice in choices) Servers.Add(choice); } + _selectedServer = Servers.FirstOrDefault(s => s.Id == selectedId) ?? Servers[0]; + OnPropertyChanged(nameof(SelectedServer)); + OnPropertyChanged(nameof(DestinationSummary)); + OnPropertyChanged(nameof(BrandName)); + OnPropertyChanged(nameof(SelectedInstanceName)); + OnPropertyChanged(nameof(OnlinePlayerSummary)); + OnPropertyChanged(nameof(ServerStatusSummary)); + OnPropertyChanged(nameof(PlatformSummary)); + OnPropertyChanged(nameof(CapabilitiesSummary)); + base.Refresh(snapshot); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstanceArtworkImages.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstanceArtworkImages.cs new file mode 100644 index 00000000..2d69edf7 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstanceArtworkImages.cs @@ -0,0 +1,16 @@ +using Avalonia.Media; +using Avalonia.Media.Imaging; +using Avalonia.Platform; + +namespace SHOU.Launcher.Desktop.ViewModels; + +internal static class InstanceArtworkImages +{ + private static readonly Dictionary cache = new(); + internal static IImage For(string? key) + { + var name = key switch { "fabric" or "legacyfabric" => "Fabric", "forge" => "Anvil", "neoforge" => "NeoForge", "quilt" => "Quilt", "cleanroom" => "Cleanroom", "optifine" or "grasspath" => "GrassPath", "labymod" => "LabyMod", "liteloader" => "Egg", "cobblestone" => "CobbleStone", "commandblock" => "CommandBlock", "redstonelamp" => "RedstoneLampOn", "goldblock" => "GoldBlock", "redstoneblock" => "RedstoneBlock", _ => "Grass" }; + if (!cache.TryGetValue(name, out var image)) { using var stream = AssetLoader.Open(new("avares://SHOU.Launcher.Desktop/Assets/Minecraft/" + name + ".png")); cache[name] = image = new Bitmap(stream); } + return image; + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstanceContentRowViewModel.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstanceContentRowViewModel.cs new file mode 100644 index 00000000..312def76 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstanceContentRowViewModel.cs @@ -0,0 +1,65 @@ +using CommunityToolkit.Mvvm.ComponentModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed class InstanceContentRowViewModel : ObservableObject +{ + private InstanceContentEntry entry; + private bool selected, duplicate; + private InstanceModUpdate? update; + public InstanceContentRowViewModel(InstanceContentEntry value, Action changed, Func requestUpdate, Action details, + Func? reveal = null, Func? toggle = null, Action? trash = null) + { + entry = value; + PropertyChanged += (_, e) => { if (e.PropertyName == nameof(Selected)) changed(); }; + UpdateCommand = new AsyncRelayCommand(() => requestUpdate(this)); DetailsCommand = new RelayCommand(() => details(this)); + RevealCommand = new AsyncRelayCommand(() => reveal?.Invoke(this) ?? Task.CompletedTask); + ToggleCommand = new AsyncRelayCommand(() => toggle?.Invoke(this) ?? Task.CompletedTask); + TrashCommand = new RelayCommand(() => trash?.Invoke(this)); + } + public InstanceContentEntry Entry { get => entry; internal set { SetProperty(ref entry, value); Refresh(); } } + public string Name => Entry.Name; + public bool IsMod => Entry.Kind == "mods"; + public bool Selected { get => selected; set { if (!Entry.Directory) SetProperty(ref selected, value); } } + public bool IsDirectory => Entry.Directory; + public bool IsFile => !Entry.Directory; + public bool Duplicate { get => duplicate; internal set { SetProperty(ref duplicate, value); Refresh(); } } + public InstanceModUpdate? Update { get => update; internal set { SetProperty(ref update, value); Refresh(); } } + public ContentProject? Project { get; internal set; } + public IReadOnlyList ResourceRequirements { get; internal set; } = []; + public bool HasUpdate => Update is not null; + public bool HasError => Entry.MetadataError is not null; + public string StateText => HasError ? Localization.UiLocalization.Instance.Text(Entry.MetadataError!) : string.Join(" · ", new[] { Entry.Enabled ? "" : Localization.UiLocalization.Instance.Text("已禁用"), Duplicate ? Localization.UiLocalization.Instance.Text("重复项目") : "", Update is { } u ? Localization.UiLocalization.Instance.Format("可更新至 {0}", u.NewVersion) : "" }.Where(s => s.Length > 0)); + public string Description => Project?.Description ?? Entry.Description ?? ""; + public string Title => Project?.Title ?? Entry.DisplayName; + public string Version => Entry.VersionLabel.Length > 0 ? Entry.VersionLabel : Update?.CurrentVersion ?? ""; + public bool HasVersion => Version.Length > 0; + public double TitleMaximum => IsMod ? 300 : 450; + public string SecondaryText => Entry.Directory ? Localization.UiLocalization.Instance.Text("双击或按 Enter 进入文件夹") : string.Join(" · ", new[] { Entry.Enabled ? "" : Localization.UiLocalization.Instance.Text("已禁用"), Duplicate ? Localization.UiLocalization.Instance.Text("重复项目") : "", Path.GetFileNameWithoutExtension(Name) + (HasError ? ": " + Localization.UiLocalization.Instance.Text(Entry.MetadataError!) : Description.Length > 0 ? ": " + string.Join(" ", Description.Split((char[]?)null, StringSplitOptions.RemoveEmptyEntries)) : "") }.Where(s => s.Length > 0)); + public IReadOnlyList Tags => (Project?.Categories ?? []).Select(DownloadsPageViewModel.CategoryName).Select(Localization.UiLocalization.Instance.Text).Distinct().Take(3).ToArray(); + public string SearchTags => string.Join(" ", (Project?.Categories ?? []).Concat(Tags)); + public string FallbackIcon => Entry.Directory ? "folder-open" : Entry.Kind switch { "resourcepacks" => "layers", "shaders" => "sparkles", "schematics" => "file-box", _ => "puzzle" }; + public string ToggleCaption => Localization.UiLocalization.Instance.Text(Entry.Enabled ? "禁用模组" : "启用模组"); + public string ToggleIcon => Entry.Enabled ? "circle-minus" : "circle-check"; + public string UpdateCaption => Localization.UiLocalization.Instance.Text(IsMod ? "更新模组" : "更新资源"); + public string Detail => string.Join("\n", new[] { Title, Entry.VersionLabel, Entry.Name, Description, Entry.ModId is { } id ? "ID: " + id : "", IsMod ? "必需依赖:" + string.Join(", ", Entry.Dependencies ?? []) : "", IsMod ? "内嵌 JAR:" + string.Join(", ", Entry.EmbeddedMods ?? []) : "", + ResourceRequirements.Count == 0 ? "" : Localization.UiLocalization.Instance.Text("资源版本依赖:") + string.Join(", ", ResourceRequirements.Select(d => Localization.UiLocalization.Instance.Text(d.Type switch { "required" => "必需", "incompatible" => "不兼容", "optional" => "可选", "embedded" => "内嵌", _ => d.Type }) + ": " + (d.ProjectId ?? d.VersionId ?? d.FileName ?? "?") + (d.ProjectId is not null && d.VersionId is not null ? " @ " + d.VersionId : ""))), StateText }.Where(s => s.Length > 0)); + public IAsyncRelayCommand UpdateCommand { get; } + public IRelayCommand DetailsCommand { get; } + public IAsyncRelayCommand RevealCommand { get; } + public IAsyncRelayCommand ToggleCommand { get; } + public IRelayCommand TrashCommand { get; } + internal void Refresh() { foreach (var name in new[] { nameof(Title), nameof(Description), nameof(HasUpdate), nameof(HasError), nameof(StateText), nameof(Detail), nameof(Version), nameof(HasVersion), nameof(SecondaryText), nameof(Tags), nameof(SearchTags), nameof(FallbackIcon), nameof(ToggleCaption), nameof(ToggleIcon) }) OnPropertyChanged(name); } +} + +public sealed class ModFilterViewModel(string key, Action select) : ObservableObject +{ + private string title = key; private bool active, shown = true; + public string Key { get; } = key; + public string Title { get => title; internal set => SetProperty(ref title, value); } + public bool Active { get => active; internal set => SetProperty(ref active, value); } + public bool Shown { get => shown; internal set => SetProperty(ref shown, value); } + public IRelayCommand SelectCommand { get; } = new RelayCommand(() => select(key)); +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Advanced.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Advanced.cs new file mode 100644 index 00000000..830979b1 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Advanced.cs @@ -0,0 +1,56 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class InstancesPageViewModel +{ + private InstanceDirectoryMode directoryMode; + private bool directoryConfirmed, initialMemory, consoleJava, debugLogging; + private decimal initialMemoryMiB = 512; + private string classpath = "", beforeExecutable = "", beforeArguments = ""; + public IReadOnlyList DirectoryModes { get; } = Enum.GetValues(); + public InstanceDirectoryMode DirectoryMode { get => directoryMode; set { if (SetProperty(ref directoryMode, value)) { _instanceDraftDirty = true; DirectoryChangeConfirmed = false; OnPropertyChanged(nameof(DirectoryPreview)); OnPropertyChanged(nameof(DirectoryWillChange)); } } } + public bool DirectoryChangeConfirmed { get => directoryConfirmed; set => SetProperty(ref directoryConfirmed, value); } + public string DirectoryPreview => SelectedInstance is { } i ? InstanceDirectoryPolicy.Resolve(i, InstanceDirectoryPolicy.Describe(i, Service.Paths) with { Mode = DirectoryMode }, Service.Snapshot.Settings) : ""; + public bool DirectoryWillChange => SelectedInstance is { } i && !string.Equals(Path.TrimEndingDirectorySeparator(DirectoryPreview), Path.TrimEndingDirectorySeparator(i.GameDirectory), OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); + public bool InstanceInitialMemory { get => initialMemory; set { if (SetProperty(ref initialMemory, value)) _instanceDraftDirty = true; } } + public decimal InstanceInitialMemoryMiB { get => initialMemoryMiB; set { if (SetProperty(ref initialMemoryMiB, value)) _instanceDraftDirty = true; } } + public string InstanceClasspath { get => classpath; set { if (SetProperty(ref classpath, value ?? "")) _instanceDraftDirty = true; } } + public string InstanceBeforeExecutable { get => beforeExecutable; set { if (SetProperty(ref beforeExecutable, value ?? "")) _instanceDraftDirty = true; } } + public string InstanceBeforeArguments { get => beforeArguments; set { if (SetProperty(ref beforeArguments, value ?? "")) _instanceDraftDirty = true; } } + public bool InstanceConsoleJava { get => consoleJava; set { if (SetProperty(ref consoleJava, value)) _instanceDraftDirty = true; } } + public bool InstanceDebugLogging { get => debugLogging; set { if (SetProperty(ref debugLogging, value)) _instanceDraftDirty = true; } } + public bool IsWindows => Service.Snapshot.Platform.OS == LauncherOS.Windows; + public bool HasLegacySettings => SelectedInstance?.Origin is not null && Service is ILegacyInstanceSettingsService; + private void LoadAdvanced(GameInstance i, GameLaunchOptions options) + { + DirectoryMode = i.Directories?.Mode ?? InstanceDirectoryMode.Current; DirectoryChangeConfirmed = false; + InstanceInitialMemory = options.MinimumMemoryMiB.HasValue; InstanceInitialMemoryMiB = options.MinimumMemoryMiB ?? 512; + InstanceClasspath = options.ClasspathPrepend; InstanceBeforeExecutable = options.BeforeLaunchExecutable; InstanceBeforeArguments = options.BeforeLaunchArguments; + InstanceConsoleJava = options.UseConsoleJava; InstanceDebugLogging = options.DebugLogging; + OnPropertyChanged(nameof(DirectoryPreview)); OnPropertyChanged(nameof(DirectoryWillChange)); + OnPropertyChanged(nameof(HasLegacySettings)); + } + public async Task ReadLegacySettingsAsync() + { + if (SelectedInstance is not { } instance || Service is not ILegacyInstanceSettingsService legacy || !CanEdit) return; + await Owner.RunAsync("读取旧版实例设置", async ct => + { + var draft = await legacy.ReadLegacyInstanceSettingsAsync(instance.Id, ct); + if (SelectedInstance?.Id != instance.Id) return; + LoadInstanceLaunchOptions(instance with { LaunchOptions = draft.Options }, Service.Snapshot.Settings); + if (draft.JavaExecutable is { } java) { InstanceJavaExecutable = java; UseGlobalJava = false; } + if (draft.MemoryMiB is { } memory) { InstanceMemoryMiB = memory; UseGlobalMemory = false; } + if (draft.DirectoryMode is { } mode) DirectoryMode = mode; + _instanceDraftDirty = true; + Feedback = draft.Warnings.Count == 0 ? "已读取为草稿,请核对后保存。" : string.Join("\n", draft.Warnings); + }); + } + public async Task ExportScriptAsync(string executable, string destination, bool overwrite) + { + if (SelectedInstance is not { } instance || Service is not ILaunchScriptService scripts || !CanEdit) return; + if (_instanceDraftDirty) { Owner.ShowError("请先保存实例设置,再导出使用已保存设置的启动脚本。"); return; } + if (await Owner.RunAsync("导出启动脚本", ct => scripts.ExportLaunchScriptAsync(instance.Id, executable, destination, overwrite, ct))) Feedback = "启动脚本已保存。"; + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Close.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Close.cs new file mode 100644 index 00000000..edef7f84 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Close.cs @@ -0,0 +1,7 @@ +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class InstancesPageViewModel +{ + public bool HasUnsavedInstanceChanges => _runtimeDirty || _instanceDraftDirty || IsDatapackOrderDirty || _worldDrafts.Values.Any(d => d.ServerDirty || d.EditorOpen) + || worldSettingsDrafts.Values.Any(d => d.Dirty); +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Components.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Components.cs new file mode 100644 index 00000000..35bbe77b --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Components.cs @@ -0,0 +1,85 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class InstancesPageViewModel +{ + private bool componentsInitialized, componentLoading, componentChanging, confirmComponentChange; + private CancellationTokenSource? componentRead; + private string componentInstance = "", componentReadKey = "", componentFeedback = ""; + private InstanceLoaderChoice componentLoader = new("fabric", "Fabric"); + private LoaderVersionChoice? componentVersion; + private TaskCompletionSource? componentDone; + public IReadOnlyList ComponentLoaderChoices { get; } = [new("vanilla", "原版"), new("fabric", "Fabric"), new("quilt", "Quilt"), new("forge", "Forge"), new("neoforge", "NeoForge"), new("cleanroom", "Cleanroom"), new("legacyfabric", "Legacy Fabric"), new("optifine", "OptiFine"), new("labymod", "LabyMod"), new("liteloader", "LiteLoader")]; + public ObservableCollection ComponentVersions { get; } = []; + public InstanceLoaderChoice ComponentLoader { get => componentLoader; set { if (value is null || !SetProperty(ref componentLoader, value)) return; componentReadKey = ""; ConfirmComponentChange = false; OnPropertyChanged(nameof(ComponentNeedsVersion)); ScheduleComponentRefresh(); NotifyCommands(); } } + public LoaderVersionChoice? ComponentVersion { get => componentVersion; set { if (SetProperty(ref componentVersion, value)) { ConfirmComponentChange = false; NotifyCommands(); } } } + public bool ComponentNeedsVersion => ComponentLoader.Id != "vanilla"; + public bool ConfirmComponentChange { get => confirmComponentChange; set { if (SetProperty(ref confirmComponentChange, value)) NotifyCommands(); } } + public bool IsComponentBusy => componentLoading || componentChanging; + public string ComponentFeedback { get => componentFeedback; private set => SetProperty(ref componentFeedback, value); } + public AsyncRelayCommand RefreshComponentVersionsCommand { get; private set; } = null!; + public AsyncRelayCommand ChangeInstanceComponentCommand { get; private set; } = null!; + public RelayCommand CancelComponentWorkCommand { get; private set; } = null!; + private void InitializeComponents() + { + RefreshComponentVersionsCommand = AsyncCommand(() => ReadComponentVersionsAsync(true), () => !IsComponentBusy && CanEdit && SelectedInstance is not null); + ChangeInstanceComponentCommand = AsyncCommand(ChangeComponentAsync, () => CanEdit && !IsSelectedInstanceRunning && !IsComponentBusy && ConfirmComponentChange && SelectedInstance is not null + && Service is IInstanceComponentService && (!ComponentNeedsVersion || ComponentVersion is { CanInstall: true })); + CancelComponentWorkCommand = Command(() => { componentRead?.Cancel(); if (componentChanging) Owner.CancelOperationCommand.Execute(null); }, () => IsComponentBusy); + componentsInitialized = true; + } + private void ScheduleComponentRefresh() + { + if (!componentsInitialized) return; + if (!IsModify || SelectedInstance is not { } instance) { componentRead?.Cancel(); return; } + if (componentInstance != instance.Id) + { + componentInstance = instance.Id; componentLoader = ComponentLoaderChoices.FirstOrDefault(c => c.Id == instance.Loader) ?? ComponentLoaderChoices[0]; + OnPropertyChanged(nameof(ComponentLoader)); OnPropertyChanged(nameof(ComponentNeedsVersion)); ConfirmComponentChange = false; componentReadKey = ""; + } + if (!IsComponentBusy && componentReadKey != instance.Id + ":" + ComponentLoader.Id) _ = ReadComponentVersionsAsync(false); + } + private async Task ReadComponentVersionsAsync(bool force) + { + if (SelectedInstance is not { } instance || componentChanging) return; + if (Service is not ILoaderInstanceService catalog) { ComponentFeedback = "当前服务不支持组件目录。"; return; } + var loader = ComponentLoader.Id; var key = instance.Id + ":" + loader; + if (!force && componentReadKey == key) return; + componentRead?.Cancel(); using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(30)); componentRead = cts; + componentLoading = true; NotifyComponentState(); ComponentFeedback = ""; + try + { + IReadOnlyList versions = loader == "vanilla" ? [] : await catalog.GetLoaderVersionsAsync(loader, Core.Instances.InstanceIdentity.GameVersion(instance), cts.Token); + cts.Token.ThrowIfCancellationRequested(); + if (SelectedInstance?.Id != instance.Id || ComponentLoader.Id != loader || !IsModify) return; + ComponentVersions.Clear(); foreach (var version in versions.Where(v => v.CanInstall)) ComponentVersions.Add(version); + ComponentVersion = ComponentVersions.FirstOrDefault(v => v.Version == instance.LoaderVersion) ?? ComponentVersions.FirstOrDefault(v => v.Stable) ?? ComponentVersions.FirstOrDefault(); + componentReadKey = key; + if (loader != "vanilla" && ComponentVersions.Count == 0) ComponentFeedback = "此 Minecraft 版本暂无可用加载器版本。"; + } + catch (OperationCanceledException) { } + catch (Exception ex) when (ex is IOException or HttpRequestException or NotSupportedException or InvalidOperationException or AggregateException) + { ComponentFeedback = UiPrivacy.Redact(ex.Message); } + finally { if (ReferenceEquals(componentRead, cts)) { componentRead = null; componentLoading = false; NotifyComponentState(); if (SelectedInstance?.Id != instance.Id) ScheduleComponentRefresh(); } } + } + private async Task ChangeComponentAsync() + { + if (SelectedInstance is not { } instance || Service is not IInstanceComponentService service) return; + var loader = ComponentLoader.Id; var version = ComponentVersion?.Version; + componentChanging = true; var done = componentDone = new(TaskCreationOptions.RunContinuationsAsynchronously); NotifyComponentState(); + try + { + var success = await Owner.RunInlineAsync("修改实例组件", ct => service.ChangeInstanceLoaderAsync(instance.Id, loader, version, ct)); + ComponentFeedback = success ? "实例组件已修改;原有模组和资源文件保留。" : "修改未完成,原实例配置仍保留。"; + ConfirmComponentChange = false; + } + finally { componentChanging = false; done.TrySetResult(); componentDone = null; NotifyComponentState(); } + } + private void NotifyComponentState() { OnPropertyChanged(nameof(IsComponentBusy)); NotifyCommands(); } + public async Task CancelComponentWorkAsync() + { componentRead?.Cancel(); var pending = componentDone?.Task; if (componentChanging) Owner.CancelOperationCommand.Execute(null); if (pending is not null) await pending; } + private void DisposeComponents() => componentRead?.Cancel(); +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ContentBrowser.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ContentBrowser.cs new file mode 100644 index 00000000..b2635f3e --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ContentBrowser.cs @@ -0,0 +1,38 @@ +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class InstancesPageViewModel +{ + private string contentDirectory = ""; + private int contentDirectoryGeneration; + public string ContentDirectory => contentDirectory; + public bool CanBrowseContentDirectories => IsContentList && SelectedSection.Key == "schematics" && Service is IInstanceContentBrowserService; + public bool IsContentSubdirectory => CanBrowseContentDirectories && contentDirectory.Length > 0; + public string ContentDirectoryCaption => IsContentSubdirectory ? "schematics/" + contentDirectory : "schematics"; + public AsyncRelayCommand ParentContentDirectoryCommand { get; private set; } = null!; + private void InitializeContentBrowser() + => ParentContentDirectoryCommand = AsyncCommand(() => NavigateContentDirectoryAsync(contentDirectory.Contains('/') ? contentDirectory[..contentDirectory.LastIndexOf('/')] : ""), () => CanEdit && IsContentSubdirectory && !RefreshContentCommand.IsRunning); + private void ResetContentDirectory() + { + contentDirectory = ""; ++contentDirectoryGeneration; NotifyContentDirectory(); + } + private void NotifyContentDirectory() + { + foreach (var name in new[] { nameof(ContentDirectory), nameof(ContentDirectoryCaption), nameof(CanBrowseContentDirectories), nameof(IsContentSubdirectory) }) OnPropertyChanged(name); + ParentContentDirectoryCommand?.NotifyCanExecuteChanged(); + } + public Task OpenContentFolderAsync(InstanceContentRowViewModel row) + { + if (!CanBrowseContentDirectories || !CurrentContentRow(row) || !row.Entry.Directory || !row.Entry.RelativePath.StartsWith("schematics/", StringComparison.Ordinal)) return Task.CompletedTask; + return NavigateContentDirectoryAsync(row.Entry.RelativePath[11..]); + } + private async Task NavigateContentDirectoryAsync(string directory) + { + if (!CanBrowseContentDirectories || !CanEdit || RefreshContentCommand.IsRunning) return; + contentDirectory = directory; ++contentDirectoryGeneration; + ContentSearchText = ""; ContentEntries.Clear(); SelectedContent = null; ClearModUpdates(); Feedback = ""; + NotifyContentDirectory(); NotifyContentFilter(); await RefreshContentCommand.ExecuteAsync(null); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.DatapackBackups.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.DatapackBackups.cs new file mode 100644 index 00000000..a5286d46 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.DatapackBackups.cs @@ -0,0 +1,97 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class InstancesPageViewModel +{ + private bool _packBackupsOpen; + private int _packBackupsEpoch; + private WorldDatapackBackupEntry? _selectedDatapackBackup; + private WorldDatapackRestorePreview? _datapackRestorePreview; + public ObservableCollection DatapackBackups { get; } = []; + public WorldDatapackBackupEntry? SelectedDatapackBackup + { + get => _selectedDatapackBackup; + set { if (SetProperty(ref _selectedDatapackBackup, value)) { InvalidateDatapackRestore(); NotifyDatapackManagement(); } } + } + public bool IsDatapackBackupsOpen => _packBackupsOpen; + public bool HasDatapackRestorePreview => _datapackRestorePreview is not null; + public string DatapackBackupStatus => SelectedDatapackBackup?.Status ?? (DatapackBackups.Count == 0 ? "暂无更新备份。" : "请选择一条更新备份。"); + public string DatapackRestoreSummary => _datapackRestorePreview is { } preview ? string.Join("\n", preview.Changes.Concat(preview.Warnings)) : ""; + public AsyncRelayCommand ReadDatapackBackupsCommand { get; private set; } = null!; + public AsyncRelayCommand PreviewDatapackRestoreCommand { get; private set; } = null!; + public AsyncRelayCommand ConfirmDatapackRestoreCommand { get; private set; } = null!; + public AsyncRelayCommand OpenDatapackBackupDirectoryCommand { get; private set; } = null!; + private bool CanManageDatapackBackups => CanManageDatapacks && !IsDatapackOrderDirty && Service is IWorldDatapackBackupService; + private void InitializeDatapackBackups() + { + ReadDatapackBackupsCommand = AsyncCommand(ReadDatapackBackupsAsync, () => CanManageDatapackBackups); + PreviewDatapackRestoreCommand = AsyncCommand(PreviewDatapackRestoreAsync, () => CanManageDatapackBackups && SelectedDatapackBackup?.CanRestore == true); + ConfirmDatapackRestoreCommand = AsyncCommand(ConfirmDatapackRestoreAsync, () => CanManageDatapackBackups && _packManagementKey == PackManagementKey && _datapackRestorePreview is not null); + OpenDatapackBackupDirectoryCommand = AsyncCommand(async () => + { + if (SelectedInstance is not { } instance || SelectedWorldRow is not { } world || SelectedDatapackBackup is not { } selected || Service is not IWorldDatapackBackupService service) return; + await Owner.RunControlAsync("打开数据包更新备份", async ct => await Owner.ExternalLauncher.OpenDirectoryAsync(await service.GetWorldDatapackBackupDirectoryAsync(instance.Id, world.DirectoryName, selected.Id, ct), ct)); + }, () => CanReadPackManagement && !Owner.IsBusy && SelectedDatapackBackup is not null && Service is IWorldDatapackBackupService); + } + private void InvalidateDatapackRestore() + { + ++_packBackupsEpoch; var old = _datapackRestorePreview; _datapackRestorePreview = null; if (old is not null) DiscardDatapackRestore(old.Id); + } + private async void DiscardDatapackRestore(string id) + { try { if (Service is IWorldDatapackBackupService service) await service.DiscardWorldDatapackRestoreAsync(id); } catch (Exception ex) { Owner.ShowError(UiPrivacy.Redact(ex.Message)); } } + private void ClearDatapackBackups() + { InvalidateDatapackRestore(); _packBackupsOpen = false; _selectedDatapackBackup = null; DatapackBackups.Clear(); } + private async Task ReadDatapackBackupsAsync() + { + if (!CanManageDatapackBackups || SelectedInstance is not { } instance || SelectedWorldRow is not { } world || Service is not IWorldDatapackBackupService service) return; + InvalidateDatapackRestore(); InvalidateDatapackUpdate(); _packManagementKey = PackManagementKey; var key = _packManagementKey; var epoch = _packBackupsEpoch; + _packBackupsOpen = true; _packManagementBusy = true; _packManagementFeedback = "正在读取更新备份…"; NotifyDatapackManagement(); IReadOnlyList? rows = null; + try + { + var success = await Owner.RunInlineAsync("读取数据包更新备份", async ct => rows = await service.GetWorldDatapackBackupsAsync(instance.Id, world.DirectoryName, ct)); + if (key != PackManagementKey || epoch != _packBackupsEpoch) return; + if (success && rows is not null) { DatapackBackups.Clear(); foreach (var entry in rows) DatapackBackups.Add(entry); _selectedDatapackBackup = DatapackBackups.FirstOrDefault(); } + _packManagementFeedback = success ? "" : Owner.ErrorMessage ?? "读取已取消。"; + } + finally { _packManagementBusy = false; NotifyDatapackManagement(); } + } + private async Task PreviewDatapackRestoreAsync() + { + if (!CanManageDatapackBackups || SelectedInstance is not { } instance || SelectedWorldRow is not { } world || SelectedDatapackBackup is not { CanRestore: true } selected || Service is not IWorldDatapackBackupService service) return; + InvalidateDatapackRestore(); InvalidateDatapackUpdate(); var epoch = _packBackupsEpoch; var key = PackManagementKey; + _packManagementBusy = true; _packManagementFeedback = "正在核对备份与当前文件…"; NotifyDatapackManagement(); WorldDatapackRestorePreview? preview = null; + try + { + var success = await Owner.RunInlineAsync("预检数据包备份恢复", async ct => preview = await service.PreviewWorldDatapackRestoreAsync(instance.Id, world.DirectoryName, selected.Id, ct)); + if (key != PackManagementKey || epoch != _packBackupsEpoch) { if (preview is not null) DiscardDatapackRestore(preview.Id); return; } + _datapackRestorePreview = success ? preview : null; _packManagementFeedback = success ? "" : Owner.ErrorMessage ?? "检查已取消,文件保留。"; + } + finally { _packManagementBusy = false; NotifyDatapackManagement(); } + } + private async Task ConfirmDatapackRestoreAsync() + { + if (!CanManageDatapackBackups || _datapackRestorePreview is not { } preview || Service is not IWorldDatapackBackupService service) return; + var key = PackManagementKey; WorldDatapackRestoreReceipt? receipt = null; _packManagementBusy = true; _packManagementFeedback = "正在恢复并保留替换版本…"; NotifyDatapackManagement(); + try { await Owner.RunInlineAsync("恢复数据包更新备份", async ct => receipt = await service.RestoreWorldDatapackBackupAsync(preview.Id, ct)); } + finally { _packManagementBusy = false; NotifyDatapackManagement(); } + if (key != PackManagementKey) return; + InvalidateDatapackRestore(); + if (receipt is not null) + { + InvalidateDatapackUpdate(); await RefreshManagedDatapacksAsync(); if (_packOrderOpen) await ReadDatapackOrderAsync(); await ReadDatapackBackupsAsync(); + _packManagementFeedback = "已恢复,原备份和替换版本均保留。"; + } + else _packManagementFeedback = Owner.ErrorMessage ?? "恢复已取消,文件保留。"; + NotifyDatapackManagement(); + } + private void NotifyDatapackBackups() + { + if (ReadDatapackBackupsCommand is null) return; + if (IsDatapackOrderDirty && _datapackRestorePreview is not null) InvalidateDatapackRestore(); + foreach (var name in new[] { nameof(IsDatapackBackupsOpen), nameof(HasDatapackRestorePreview), nameof(DatapackBackupStatus), nameof(DatapackRestoreSummary), nameof(SelectedDatapackBackup) }) OnPropertyChanged(name); + foreach (var command in new IRelayCommand[] { ReadDatapackBackupsCommand, PreviewDatapackRestoreCommand, ConfirmDatapackRestoreCommand, OpenDatapackBackupDirectoryCommand }) command.NotifyCanExecuteChanged(); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.DatapackManagement.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.DatapackManagement.cs new file mode 100644 index 00000000..7b7b5ad5 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.DatapackManagement.cs @@ -0,0 +1,173 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class InstancesPageViewModel +{ + private string? _packManagementKey, _updatePackId; + private WorldDatapackOrderState? _packOrder; + private WorldDatapackOrderItem? _selectedPackOrder; + private WorldDatapackUpdateOptions? _packUpdateOptions; + private WorldDatapackUpdateChoice? _packUpdateChoice; + private WorldDatapackUpdatePreview? _packUpdatePreview; + private bool _packOrderOpen, _packUpdateOpen, _packManagementBusy; + private int _packManagementRevision; + private string _packManagementFeedback = ""; + private string? PackManagementKey => SelectedInstance?.Id == Owner.Snapshot.SelectedInstanceId ? WorldSettingsKey : null; + public ObservableCollection DatapackOrderItems { get; } = []; + public IReadOnlyList DatapackUpdateChoices => _packUpdateOptions?.Choices ?? []; + public WorldDatapackOrderItem? SelectedDatapackOrderItem { get => _selectedPackOrder; set { if (SetProperty(ref _selectedPackOrder, value)) NotifyDatapackManagement(); } } + public WorldDatapackUpdateChoice? SelectedDatapackUpdateChoice { get => _packUpdateChoice; set { if (SetProperty(ref _packUpdateChoice, value)) { InvalidateDatapackUpdate(); NotifyDatapackManagement(); } } } + public bool IsDatapackOrderOpen => _packOrderOpen; + public bool IsDatapackUpdateOpen => _packUpdateOpen; + public bool IsDatapackManagementBusy => _packManagementBusy; + public bool ShowDatapackManagementStatus => _packOrderOpen || _packUpdateOpen || _packBackupsOpen || _packManagementBusy || _packManagementFeedback.Length > 0; + public bool IsDatapackOrderDirty => _packOrder is not null && !_packOrder.Items.SequenceEqual(DatapackOrderItems); + public bool HasDatapackUpdatePreview => _packUpdatePreview is not null; + public bool HasDatapackUpdateChoices => DatapackUpdateChoices.Count > 0; + public string DatapackManagementFeedback => _packManagementFeedback; + public string DatapackOrderWarnings => _packOrder?.Warnings.Count > 0 ? "以下资源存在重叠,改变顺序会改变覆盖结果:\n" + string.Join("\n", _packOrder.Warnings) : ""; + public string DatapackUpdateOrigin => _packUpdateOptions is { } options ? options.Name + " · " + options.Origin : ""; + public string DatapackUpdateSummary => _packUpdatePreview is { } preview ? string.Join("\n", preview.Changes.Concat(preview.Warnings)) : ""; + public bool CanChooseLocalDatapackUpdate => CanManageDatapacks && !IsDatapackOrderDirty && _packUpdateOptions is not null && _packUpdateOpen; + private bool CanReadPackManagement => WorldWorkspaceCanRead && IsWorldDatapacksPage && Service is IWorldDatapackManagementService; + private bool CanManageDatapacks => CanReadPackManagement && WorldWorkspaceCanWrite && !_packManagementBusy && !IsWorldSettingsDirty; + public AsyncRelayCommand ReadDatapackOrderCommand { get; private set; } = null!; + public RelayCommand MoveDatapackOrderUpCommand { get; private set; } = null!; + public RelayCommand MoveDatapackOrderDownCommand { get; private set; } = null!; + public AsyncRelayCommand SaveDatapackOrderCommand { get; private set; } = null!; + public RelayCommand CancelDatapackManagementCommand { get; private set; } = null!; + public AsyncRelayCommand ReadDatapackUpdatesCommand { get; private set; } = null!; + public AsyncRelayCommand PreviewDatapackUpdateCommand { get; private set; } = null!; + public AsyncRelayCommand ConfirmDatapackUpdateCommand { get; private set; } = null!; + private void InitializeDatapackManagement() + { + ReadDatapackOrderCommand = AsyncCommand(ReadDatapackOrderAsync, () => CanManageDatapacks && !IsDatapackOrderDirty); + MoveDatapackOrderUpCommand = Command(() => MoveDatapackOrder(-1), () => CanManageDatapacks && SelectedDatapackOrderItem is { } item && DatapackOrderItems.IndexOf(item) > 0); + MoveDatapackOrderDownCommand = Command(() => MoveDatapackOrder(1), () => CanManageDatapacks && SelectedDatapackOrderItem is { } item && DatapackOrderItems.IndexOf(item) < DatapackOrderItems.Count - 1); + SaveDatapackOrderCommand = AsyncCommand(SaveDatapackOrderAsync, () => CanManageDatapacks && IsDatapackOrderDirty && _packManagementKey == PackManagementKey); + ReadDatapackUpdatesCommand = AsyncCommand(ReadDatapackUpdatesAsync, () => CanManageDatapacks && !IsDatapackOrderDirty && SelectedDatapacks.Count == 1); + PreviewDatapackUpdateCommand = AsyncCommand(() => PreviewDatapackUpdateAsync(null), () => CanChooseLocalDatapackUpdate && !IsDatapackOrderDirty && SelectedDatapackUpdateChoice is not null); + ConfirmDatapackUpdateCommand = AsyncCommand(ConfirmDatapackUpdateAsync, () => CanManageDatapacks && !IsDatapackOrderDirty && HasDatapackUpdatePreview && _packManagementKey == PackManagementKey); + CancelDatapackManagementCommand = Command(() => + { + if (_packManagementBusy && Owner.CancelOperationCommand.CanExecute(null)) Owner.CancelOperationCommand.Execute(null); + ClearDatapackManagement(); NotifyWorldEditingCommands(); + }); + InitializeDatapackBackups(); + } + private void ClearDatapackManagement() + { + InvalidateDatapackUpdate(); _packOrder = null; _packOrderOpen = _packUpdateOpen = false; + DatapackOrderItems.Clear(); _selectedPackOrder = null; _packUpdateOptions = null; _packUpdateChoice = null; _updatePackId = null; _packManagementFeedback = ""; + ClearDatapackBackups(); + } + private void InvalidateDatapackUpdate() + { + InvalidateDatapackRestore(); + ++_packManagementRevision; var previous = _packUpdatePreview; _packUpdatePreview = null; + if (previous is not null) DiscardDatapackPreview(previous.Id); + } + private async void DiscardDatapackPreview(string id) + { + try { if (Service is IWorldDatapackManagementService service) await service.DiscardWorldDatapackUpdateAsync(id); } + catch (Exception ex) { Owner.ShowError(UiPrivacy.Redact(ex.Message)); } + } + private async Task ReadDatapackOrderAsync() + { + if (!CanReadPackManagement || SelectedInstance is not { } instance || SelectedWorldRow is not { } world || Service is not IWorldDatapackManagementService service) return; + _packManagementKey = PackManagementKey; var key = _packManagementKey; var revision = _packManagementRevision; _packOrderOpen = true; _packManagementBusy = true; _packManagementFeedback = "正在读取加载顺序…"; NotifyDatapackManagement(); + WorldDatapackOrderState? state = null; + try + { + var success = await Owner.RunInlineAsync("读取数据包加载顺序", async ct => state = await service.GetWorldDatapackOrderAsync(instance.Id, world.DirectoryName, ct)); + if (key != PackManagementKey || revision != _packManagementRevision) return; + if (success && state is not null) { _packOrder = state; DatapackOrderItems.Clear(); foreach (var item in state.Items) DatapackOrderItems.Add(item); _selectedPackOrder = DatapackOrderItems.FirstOrDefault(); } + _packManagementFeedback = success ? "" : Owner.ErrorMessage ?? "读取已取消,原顺序保留。"; + } + finally { _packManagementBusy = false; NotifyWorldEditingCommands(); } + } + private void MoveDatapackOrder(int delta) + { + if (SelectedDatapackOrderItem is not { } item) return; var index = DatapackOrderItems.IndexOf(item); var next = index + delta; + if (index < 0 || next < 0 || next >= DatapackOrderItems.Count) return; DatapackOrderItems.Move(index, next); InvalidateDatapackUpdate(); NotifyDatapackManagement(); NotifyWorldEditingCommands(); + } + private async Task SaveDatapackOrderAsync() + { + if (_packOrder is not { } order || SelectedInstance is not { } instance || SelectedWorldRow is not { } world || Service is not IWorldDatapackManagementService service) return; + var key = PackManagementKey; WorldEditReceipt? receipt = null; _packManagementBusy = true; _packManagementFeedback = "正在保存加载顺序…"; NotifyDatapackManagement(); + try { await Owner.RunInlineAsync("保存数据包加载顺序", async ct => receipt = await service.SaveWorldDatapackOrderAsync(instance.Id, world.DirectoryName, order.Revision, DatapackOrderItems.ToArray(), ct)); } + finally { _packManagementBusy = false; NotifyDatapackManagement(); } + if (key != PackManagementKey) return; + if (receipt is not null) { _packUpdateOpen = false; _packUpdateOptions = null; await RefreshManagedDatapacksAsync(); await ReadDatapackOrderAsync(); _packManagementFeedback = "加载顺序已保存,下次进入存档时生效。"; } + else _packManagementFeedback = Owner.ErrorMessage ?? "保存已取消,草稿保留。"; + NotifyDatapackManagement(); + } + private async Task ReadDatapackUpdatesAsync() + { + if (SelectedDatapacks.Count != 1 || SelectedDatapacks[0] is not InstanceDatapackRowViewModel selected || SelectedInstance is not { } instance || SelectedWorldRow is not { } world || Service is not IWorldDatapackManagementService service) return; + InvalidateDatapackUpdate(); _packManagementKey = PackManagementKey; var key = _packManagementKey; + _updatePackId = "file/" + selected.Name; var id = _updatePackId; _packUpdateOpen = true; _packUpdateOptions = null; _packUpdateChoice = null; + var revision = _packManagementRevision; _packManagementBusy = true; _packManagementFeedback = "正在检查数据包来源与可用版本…"; NotifyDatapackManagement(); WorldDatapackUpdateOptions? options = null; + try + { + var success = await Owner.RunInlineAsync("检查数据包更新", async ct => options = await service.GetWorldDatapackUpdateOptionsAsync(instance.Id, world.DirectoryName, id, ct)); + if (key != PackManagementKey || revision != _packManagementRevision) return; + _packUpdateOptions = success ? options : null; _packUpdateChoice = options?.Choices.FirstOrDefault(); + _packManagementFeedback = success ? options?.Notice ?? (options?.ProjectId is not null && options.Choices.Count == 0 ? "没有其它兼容版本。" : "") : Owner.ErrorMessage ?? "检查已取消。"; + } + finally { _packManagementBusy = false; NotifyDatapackManagement(); } + } + public async Task PreviewLocalDatapackUpdateAsync(string path, string expectedContext, string expectedPackId) + { + if (!CanChooseLocalDatapackUpdate || PackManagementKey != expectedContext || _updatePackId != expectedPackId) { Owner.ShowError("目标已改变,未读取替换文件。"); return; } + await PreviewDatapackUpdateAsync(path); + } + public string? DatapackUpdateContext => _packManagementKey; + public string? DatapackUpdatePackId => _updatePackId; + private async Task PreviewDatapackUpdateAsync(string? localPath) + { + if (_packUpdateOptions is not { } options || SelectedInstance is not { } instance || SelectedWorldRow is not { } world || Service is not IWorldDatapackManagementService service) return; + if (localPath is null && _packUpdateChoice is null) return; + InvalidateDatapackUpdate(); var revision = _packManagementRevision; var key = PackManagementKey; + var request = new WorldDatapackUpdateRequest(instance.Id, world.DirectoryName, options.WorkspaceRevision, options.Selection, + localPath is null ? _packUpdateChoice!.ReleaseId : null, localPath is null ? _packUpdateChoice!.FileName : null, localPath); + WorldDatapackUpdatePreview? preview = null; _packManagementBusy = true; _packManagementFeedback = "正在检查兼容性、依赖与冲突…"; NotifyDatapackManagement(); + try + { + var success = await Owner.RunInlineAsync("预检数据包更新", async ct => preview = await service.PreviewWorldDatapackUpdateAsync(request, ct)); + if (key != PackManagementKey || revision != _packManagementRevision) { if (preview is not null) DiscardDatapackPreview(preview.Id); return; } + _packUpdatePreview = success ? preview : null; _packManagementFeedback = success ? "" : Owner.ErrorMessage ?? "预检已取消,原文件保留。"; + } + finally { _packManagementBusy = false; NotifyDatapackManagement(); } + } + private async Task ConfirmDatapackUpdateAsync() + { + if (_packUpdatePreview is not { } preview || Service is not IWorldDatapackManagementService service) return; + var key = PackManagementKey; WorldDatapackUpdateReceipt? receipt = null; + _packManagementBusy = true; _packManagementFeedback = "正在更新并备份原数据包…"; NotifyDatapackManagement(); + try { await Owner.RunInlineAsync("更新数据包", async ct => receipt = await service.ApplyWorldDatapackUpdateAsync(preview.Id, ct)); } + finally { _packManagementBusy = false; NotifyDatapackManagement(); } + if (key != PackManagementKey) return; + InvalidateDatapackUpdate(); + if (receipt is not null) { await RefreshManagedDatapacksAsync(); if (_packOrderOpen) await ReadDatapackOrderAsync(); _packUpdateOpen = false; _packUpdateOptions = null; _packManagementFeedback = "更新已完成,原包及设置已备份至 " + UiPrivacy.Redact(receipt.BackupDirectory); } + else _packManagementFeedback = Owner.ErrorMessage ?? "更新已取消,原文件保留。"; + NotifyDatapackManagement(); + } + private async Task RefreshManagedDatapacksAsync() + { + CurrentWorldSettings.Phase = WorldReadPhase.Unread; await RefreshWorldPacksAsync(); + } + private void NotifyDatapackManagement() + { + if (ReadDatapackOrderCommand is null) return; + if (_packManagementKey != PackManagementKey) ClearDatapackManagement(); + if (_packUpdateOpen && (SelectedDatapacks.Count != 1 || SelectedDatapacks[0] is not InstanceDatapackRowViewModel selected || "file/" + selected.Name != _updatePackId)) { InvalidateDatapackUpdate(); _packUpdateOptions = null; _packUpdateOpen = false; } + OnPropertyChanged(nameof(CanImportWorldDatapack)); OnPropertyChanged(nameof(CanEditWorldMetadata)); OnPropertyChanged(nameof(CanEditWorldDifficulty)); + foreach (var name in new[] { nameof(IsDatapackOrderOpen), nameof(IsDatapackUpdateOpen), nameof(IsDatapackManagementBusy), nameof(ShowDatapackManagementStatus), nameof(IsDatapackOrderDirty), nameof(HasDatapackUpdatePreview), nameof(HasDatapackUpdateChoices), nameof(DatapackManagementFeedback), nameof(DatapackOrderWarnings), nameof(DatapackUpdateOrigin), nameof(DatapackUpdateSummary), nameof(DatapackUpdateChoices), nameof(SelectedDatapackOrderItem), nameof(SelectedDatapackUpdateChoice), nameof(CanChooseLocalDatapackUpdate) }) OnPropertyChanged(name); + foreach (var command in new IRelayCommand[] { ReadDatapackOrderCommand, MoveDatapackOrderUpCommand, MoveDatapackOrderDownCommand, SaveDatapackOrderCommand, CancelDatapackManagementCommand, ReadDatapackUpdatesCommand, PreviewDatapackUpdateCommand, ConfirmDatapackUpdateCommand }) command.NotifyCanExecuteChanged(); + NotifyDatapackBackups(); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Existing.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Existing.cs new file mode 100644 index 00000000..721e2750 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Existing.cs @@ -0,0 +1,111 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class InstancesPageViewModel +{ + public ObservableCollection ExistingCandidates { get; } = []; + private ExistingInstanceCandidate? existingCandidate; + private bool folderBusy; + public ExistingInstanceCandidate? ExistingCandidate { get => existingCandidate; set { SetProperty(ref existingCandidate, value); NotifyCommands(); } } + public bool HasExistingCandidates => ExistingCandidates.Count > 0; + public ObservableCollection ExistingIssues { get; } = []; + public bool HasExistingIssues => ExistingIssues.Count > 0; + public bool CanBatchAttach => Service is IExistingInstanceBatchService; + public string AttachAllCaption => $"接入全部({ExistingCandidates.Count})"; + public AsyncRelayCommand AttachAllExistingCommand { get; private set; } = null!; + public bool IsFolderBusy { get => folderBusy; private set { SetProperty(ref folderBusy, value); NotifyCommands(); } } + public AsyncRelayCommand AttachExistingCommand { get; private set; } = null!; + public RelayCommand DismissExistingCommand { get; private set; } = null!; + public RelayCommand ManageGameDirectoryCommand { get; private set; } = null!; + private void InitializeExistingInstances() + { + ManageGameDirectoryCommand = Command(() => { Owner.Settings.SelectedSection = "manage"; Owner.ShowSettingsCommand.Execute(null); }); + DismissExistingCommand = Command(() => { ExistingCandidates.Clear(); ExistingCandidate = null; OnPropertyChanged(nameof(HasExistingCandidates)); }); + AttachAllExistingCommand = AsyncCommand(async () => + { + var candidates = ExistingCandidates.ToArray(); IsFolderBusy = true; + try + { + await Owner.RunControlAsync("接入实例目录", async ct => + { + var attached = await ((IExistingInstanceBatchService)Service).AttachExistingInstancesAsync(candidates, ct); + ExistingCandidates.Clear(); ExistingCandidate = null; OnPropertyChanged(nameof(HasExistingCandidates)); + SearchText = ""; FavoritesOnly = false; InstanceCategoryFilter = "全部分类"; + SelectedGameFolder = GameFolders.FirstOrDefault(f => SameFolder(f.Path, candidates[0].Origin.MinecraftRoot)) ?? GameFolders.First(); + Feedback = $"已接入 {attached.Count} 个实例。"; + }); + } + finally { IsFolderBusy = false; } + }, () => CanEdit && !IsFolderBusy && HasExistingCandidates && CanBatchAttach); + AttachExistingCommand = AsyncCommand(async () => + { + var candidate = ExistingCandidate!; IsFolderBusy = true; + try + { + await Owner.RunControlAsync("接入实例目录", async ct => + { + await ((IExistingInstanceService)Service).AttachExistingInstanceAsync(candidate, ct); + ExistingCandidates.Clear(); ExistingCandidate = null; OnPropertyChanged(nameof(HasExistingCandidates)); + Feedback = "实例目录已接入。"; + }); + } + finally { IsFolderBusy = false; } + }, () => CanEdit && !IsFolderBusy && ExistingCandidate is not null && Service is IExistingInstanceService); + } + public async Task InspectExistingFolderAsync(string folder) + { + if (!CanEdit || IsFolderBusy || Service is not IExistingInstanceService existing) return; + IsFolderBusy = true; + try + { + await Owner.RunControlAsync("读取实例目录", async ct => + { + ExistingInstanceInspection inspected = existing is IExistingInstanceBatchService batch ? await batch.InspectInstanceFolderDetailedAsync(folder, ct) : new(await existing.InspectInstanceFolderAsync(folder, ct), []); + var candidates = inspected.Candidates.Where(c => !Owner.Snapshot.Instances.Any(i => i.Origin is { } origin && SameFolder(origin.VersionDirectory, c.Origin.VersionDirectory))).ToArray(); + ExistingCandidates.Clear(); foreach (var candidate in candidates) ExistingCandidates.Add(candidate); + ExistingIssues.Clear(); foreach (var issue in inspected.Issues) ExistingIssues.Add(issue); OnPropertyChanged(nameof(HasExistingIssues)); OnPropertyChanged(nameof(AttachAllCaption)); + ExistingCandidate = ExistingCandidates.FirstOrDefault(); OnPropertyChanged(nameof(HasExistingCandidates)); + Feedback = candidates.Length == 0 ? inspected.Candidates.Count > 0 ? "所选目录中的实例已接入。" : "所选目录中没有有效的 Minecraft 实例。" : ""; + }); + } + finally { IsFolderBusy = false; } + } + private bool useGlobalLaunchOptions = true; + private GameProcessPriority instancePriority; + private GameIpPreference instanceIp; + private LauncherVisibility instanceVisibility; + private string instanceTitle = "", instanceJvm = ""; + private bool instanceLockMemory; + private bool instanceCustomWindow, instanceFullscreen; + private decimal instanceWindowWidth = 854, instanceWindowHeight = 480; + private string instanceCustomInfo = "", instanceGameArguments = ""; + public bool UseGlobalLaunchOptions { get => useGlobalLaunchOptions; set { if (SetProperty(ref useGlobalLaunchOptions, value)) _instanceDraftDirty = true; } } + public GameProcessPriority InstancePriority { get => instancePriority; set { if (SetProperty(ref instancePriority, value)) _instanceDraftDirty = true; } } + public GameIpPreference InstanceIpPreference { get => instanceIp; set { if (SetProperty(ref instanceIp, value)) _instanceDraftDirty = true; } } + public LauncherVisibility InstanceVisibility { get => instanceVisibility; set { if (SetProperty(ref instanceVisibility, value)) _instanceDraftDirty = true; } } + public string InstanceWindowTitle { get => instanceTitle; set { if (SetProperty(ref instanceTitle, value ?? "")) _instanceDraftDirty = true; } } + public string InstanceJvmArguments { get => instanceJvm; set { if (SetProperty(ref instanceJvm, value ?? "")) _instanceDraftDirty = true; } } + public bool InstanceLockMemory { get => instanceLockMemory; set { if (SetProperty(ref instanceLockMemory, value)) _instanceDraftDirty = true; } } + public bool InstanceCustomWindow { get => instanceCustomWindow; set { if (SetProperty(ref instanceCustomWindow, value)) _instanceDraftDirty = true; } } + public bool InstanceFullscreen { get => instanceFullscreen; set { if (SetProperty(ref instanceFullscreen, value)) _instanceDraftDirty = true; } } + public decimal InstanceWindowWidth { get => instanceWindowWidth; set { if (SetProperty(ref instanceWindowWidth, value)) _instanceDraftDirty = true; } } + public decimal InstanceWindowHeight { get => instanceWindowHeight; set { if (SetProperty(ref instanceWindowHeight, value)) _instanceDraftDirty = true; } } + public string InstanceCustomInfo { get => instanceCustomInfo; set { if (SetProperty(ref instanceCustomInfo, value ?? "")) _instanceDraftDirty = true; } } + public string InstanceGameArguments { get => instanceGameArguments; set { if (SetProperty(ref instanceGameArguments, value ?? "")) _instanceDraftDirty = true; } } + private void LoadInstanceLaunchOptions(GameInstance instance, LauncherSettings settings) + { + UseGlobalLaunchOptions = instance.LaunchOptions is null or { InheritGlobal: true }; + var options = SHOU.Launcher.Core.Minecraft.GameSettingsPolicy.Options(instance, settings); + LoadAdvanced(instance, options); + InstancePriority = options.Priority; InstanceIpPreference = options.IpPreference; InstanceVisibility = options.Visibility; InstanceWindowTitle = options.WindowTitle; InstanceJvmArguments = options.JvmArguments; InstanceLockMemory = options.LockMemory; + InstanceCustomWindow = options.WindowWidth.HasValue; InstanceWindowWidth = options.WindowWidth ?? settings.GameWindowWidth ?? 854; InstanceWindowHeight = options.WindowHeight ?? settings.GameWindowHeight ?? 480; + InstanceFullscreen = options.Fullscreen ?? settings.GameFullscreen; InstanceCustomInfo = options.CustomInfo ?? settings.CustomInfo ?? ""; InstanceGameArguments = options.GameArguments; + } + private GameLaunchOptions? BuildInstanceLaunchOptions() => UseGlobalLaunchOptions ? null : (SelectedInstance?.LaunchOptions ?? Owner.Snapshot.Settings.LaunchOptions ?? new()) with + { InheritGlobal = false, Priority = InstancePriority, IpPreference = InstanceIpPreference, Visibility = InstanceVisibility, WindowTitle = InstanceWindowTitle.Trim(), JvmArguments = InstanceJvmArguments.Trim(), LockMemory = InstanceLockMemory, + WindowWidth = InstanceCustomWindow ? (int)InstanceWindowWidth : null, WindowHeight = InstanceCustomWindow ? (int)InstanceWindowHeight : null, Fullscreen = InstanceFullscreen, CustomInfo = InstanceCustomInfo.Trim(), GameArguments = InstanceGameArguments.Trim(), + ClasspathPrepend = InstanceClasspath.Trim(), BeforeLaunchExecutable = InstanceBeforeExecutable.Trim(), BeforeLaunchArguments = InstanceBeforeArguments.Trim(), UseConsoleJava = InstanceConsoleJava, DebugLogging = InstanceDebugLogging, MinimumMemoryMiB = InstanceInitialMemory ? (int)InstanceInitialMemoryMiB : null }; +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Export.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Export.cs new file mode 100644 index 00000000..d05552b0 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Export.cs @@ -0,0 +1,56 @@ +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class InstancesPageViewModel +{ + private string _exportPackName = "", _exportPackVersion = "1.0.0"; + private string? _exportDraftInstanceId; + private bool _exportPackConfig = true, _exportPackOptions, _exportPackLocalFiles; + public string ExportPackName { get => _exportPackName; set => SetProperty(ref _exportPackName, value); } + public string ExportPackVersion { get => _exportPackVersion; set => SetProperty(ref _exportPackVersion, value); } + public bool ExportPackConfig { get => _exportPackConfig; set => SetProperty(ref _exportPackConfig, value); } + public bool ExportPackOptions { get => _exportPackOptions; set => SetProperty(ref _exportPackOptions, value); } + public bool ExportPackLocalFiles { get => _exportPackLocalFiles; set => SetProperty(ref _exportPackLocalFiles, value); } + public AsyncRelayCommand ExportModrinthPackCommand { get; private set; } = null!; + public AsyncRelayCommand ExportCurseForgePackCommand { get; private set; } = null!; + public RelayCommand OpenPackImportCommand { get; private set; } = null!; + private void InitializePackExport() + { + InitializeExportSelection(); + ExportCurseForgePackCommand = AsyncCommand(async () => + { + var instance = SelectedInstance!; var paths = new List(); + void Add(string relative) { if (Path.Exists(Path.Combine(instance.GameDirectory, relative))) paths.Add(relative); } + if (ExportPackConfig) { Add("config"); Add("defaultconfigs"); } + if (ExportPackOptions) Add("options.txt"); + if (ExportPackLocalFiles) foreach (var path in new[] { "mods", "resourcepacks", "shaderpacks" }) Add(path); + string? output = null; + if (await Owner.RunAsync("导出 CurseForge 整合包", async ct => output = await ((ICurseForgeExportService)Service).ExportCurseForgePackAsync(instance.Id, + new(ExportPackName.Trim(), ExportPackVersion.Trim(), MergeExportPaths(paths), ExportPackLocalFiles), ct))) Feedback = "已导出客户端整合包至 " + output; + }, () => CanEdit && !IsSelectedInstanceRunning && SelectedInstance?.Loader is "vanilla" or "fabric" or "quilt" or "forge" or "neoforge" && Service is ICurseForgeExportService); + OpenPackImportCommand = Command(() => { Owner.Downloads.SelectCategory("modpack"); Owner.SelectedPage = Owner.Downloads; }, () => CanEdit && Service is IModrinthPackService); + ExportModrinthPackCommand = AsyncCommand(async () => + { + var instance = SelectedInstance!; var selected = new List(); + void AddExisting(string relative) + { + var path = Path.Combine(instance.GameDirectory, relative); + if (File.Exists(path) || Directory.Exists(path)) selected.Add(relative); + } + if (ExportPackConfig) AddExisting("config"); + if (ExportPackOptions) AddExisting("options.txt"); + if (ExportPackLocalFiles) foreach (var path in new[] { "mods", "resourcepacks", "shaderpacks" }) AddExisting(path); + var options = new ModrinthPackExportOptions(ExportPackName.Trim(), ExportPackVersion.Trim(), MergeExportPaths(selected), ExportPackLocalFiles); + string? output = null; + if (await Owner.RunAsync("导出Modrinth整合包", async ct => output = await ((IModrinthPackService)Service).ExportModrinthPackAsync(instance.Id, options, ct))) + Feedback = "已导出客户端整合包至 " + output; + }, () => CanEdit && !IsSelectedInstanceRunning && (SelectedInstance?.Loader is "vanilla" or "fabric" or "quilt" or "forge" or "neoforge") && Service is IModrinthPackService); + } + private void RefreshPackExport() + { + if (_exportDraftInstanceId == SelectedInstance?.Id) return; + _exportDraftInstanceId = SelectedInstance?.Id; ExportPackName = SelectedInstance?.Name ?? ""; ExportPackVersion = "1.0.0"; + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ExportSelection.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ExportSelection.cs new file mode 100644 index 00000000..13c6f12c --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ExportSelection.cs @@ -0,0 +1,102 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.ComponentModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed class ExportEntryChoice(InstanceExportEntry entry, bool selected, Action select, Func browse) : ObservableObject +{ + private bool isSelected = selected; + public string Name => entry.Name; + public string RelativePath => entry.RelativePath; + public bool Directory => entry.Directory; + public bool CanSelect => entry.CanSelect; + public string? Reason => entry.Reason; + public string Icon => Directory ? "folder" : "file"; + public bool Selected { get => isSelected; set { if (entry.CanSelect && SetProperty(ref isSelected, value)) select(RelativePath, value); } } + public AsyncRelayCommand OpenCommand { get; } = new(() => browse(entry.RelativePath), () => entry.Directory && entry.CanSelect); +} +public sealed record ExportSelectedPath(string RelativePath, RelayCommand RemoveCommand); + +public sealed partial class InstancesPageViewModel +{ + private CancellationTokenSource? exportBrowseCancellation; + private int exportBrowseGeneration; + private string? exportBrowseInstance, exportBrowseGameDirectory; + private string exportBrowseDirectory = "", exportBrowseFeedback = ""; + private bool exportBrowseLoaded, exportBrowseBusy; + public bool ExportBrowserAvailable => Service is IInstanceExportSelectionService; + public string ExportBrowseDirectory => exportBrowseDirectory.Length == 0 ? "/" : exportBrowseDirectory; + public string ExportBrowseFeedback => exportBrowseFeedback; + public bool IsExportBrowseBusy => exportBrowseBusy; + public string ExportSelectedSummary => Localization.UiLocalization.Instance.Format("另选 {0} 项文件或目录", ExportSelectedPaths.Count); + public ObservableCollection ExportEntries { get; } = []; + public ObservableCollection ExportSelectedPaths { get; } = []; + public AsyncRelayCommand RefreshExportEntriesCommand { get; private set; } = null!; + public AsyncRelayCommand ExportParentDirectoryCommand { get; private set; } = null!; + public RelayCommand ClearExportPathsCommand { get; private set; } = null!; + private void InitializeExportSelection() + { + RefreshExportEntriesCommand = AsyncCommand(() => ReadExportEntriesAsync(exportBrowseDirectory), () => CanEdit && IsExport && ExportBrowserAvailable && !exportBrowseBusy); + ExportParentDirectoryCommand = AsyncCommand(() => ReadExportEntriesAsync(exportBrowseDirectory.Contains('/') ? exportBrowseDirectory[..exportBrowseDirectory.LastIndexOf('/')] : ""), () => CanEdit && IsExport && ExportBrowserAvailable && !exportBrowseBusy && exportBrowseDirectory.Length > 0); + ClearExportPathsCommand = Command(() => { ExportSelectedPaths.Clear(); RefreshExportRowSelection(); NotifyExportBrowser(); }, () => CanEdit && ExportSelectedPaths.Count > 0); + } + private void CancelExportBrowse() + { ++exportBrowseGeneration; exportBrowseCancellation?.Cancel(); exportBrowseCancellation?.Dispose(); exportBrowseCancellation = null; exportBrowseBusy = false; } + private void ExportNavigationChanged() + { + if (!_workspaceReady || _workspaceDisposed) return; + if (SelectedInstance?.Id != exportBrowseInstance || SelectedInstance?.GameDirectory != exportBrowseGameDirectory) + { + CancelExportBrowse(); exportBrowseInstance = SelectedInstance?.Id; exportBrowseGameDirectory = SelectedInstance?.GameDirectory; + exportBrowseDirectory = ""; exportBrowseLoaded = false; ExportEntries.Clear(); ExportSelectedPaths.Clear(); exportBrowseFeedback = ""; NotifyExportBrowser(); + } + if (!IsExport || !ReferenceEquals(Owner.SelectedPage, this)) { CancelExportBrowse(); return; } + if (!exportBrowseLoaded && !exportBrowseBusy && ExportBrowserAvailable) _ = ReadExportEntriesAsync(exportBrowseDirectory); + } + private async Task ReadExportEntriesAsync(string directory) + { + if (_workspaceDisposed || !IsExport || !ReferenceEquals(Owner.SelectedPage, this) || SelectedInstance is not { } instance || Service is not IInstanceExportSelectionService service) return; + CancelExportBrowse(); var generation = exportBrowseGeneration; var source = new CancellationTokenSource(); exportBrowseCancellation = source; + exportBrowseBusy = true; exportBrowseFeedback = ""; NotifyExportBrowser(); + bool Context() => !_workspaceDisposed && IsExport && ReferenceEquals(Owner.SelectedPage, this) && SelectedInstance?.Id == instance.Id && SelectedInstance.GameDirectory == instance.GameDirectory; + bool Current() => generation == exportBrowseGeneration && Context(); + try + { + var rows = await service.GetInstanceExportEntriesAsync(instance.Id, directory, source.Token); + if (!Current()) return; + exportBrowseDirectory = directory; exportBrowseLoaded = true; ExportEntries.Clear(); + foreach (var row in rows) ExportEntries.Add(new(row, ExportSelectedPaths.Any(p => p.RelativePath == row.RelativePath), (path, selected) => + { + if (!Context() || !CanEdit || exportBrowseDirectory != directory) return; + SetExportPath(path, selected); + }, path => Context() && CanEdit && exportBrowseDirectory == directory ? ReadExportEntriesAsync(path) : Task.CompletedTask)); + } + catch (OperationCanceledException) { } + catch (Exception ex) when (ex is IOException or InvalidOperationException or ArgumentException or UnauthorizedAccessException) + { if (Current()) exportBrowseFeedback = Localization.UiLocalization.Instance.Text("导出目录读取失败:") + UiPrivacy.Redact(ex.Message); } + finally { if (Current()) { exportBrowseBusy = false; NotifyExportBrowser(); } if (ReferenceEquals(exportBrowseCancellation, source)) exportBrowseCancellation = null; source.Dispose(); } + } + private void SetExportPath(string path, bool selected) + { + var current = ExportSelectedPaths.FirstOrDefault(p => p.RelativePath == path); + var id = SelectedInstance?.Id; var directory = SelectedInstance?.GameDirectory; + if (selected && current is null) ExportSelectedPaths.Add(new(path, new RelayCommand(() => + { if (CanEdit && SelectedInstance?.Id == id && SelectedInstance?.GameDirectory == directory) { SetExportPath(path, false); RefreshExportRowSelection(); } }))); + else if (!selected && current is not null) ExportSelectedPaths.Remove(current); + NotifyExportBrowser(); + } + private void RefreshExportRowSelection() + { foreach (var row in ExportEntries) row.Selected = ExportSelectedPaths.Any(p => p.RelativePath == row.RelativePath); } + private void NotifyExportBrowser() + { + foreach (var name in new[] { nameof(ExportBrowseDirectory), nameof(ExportBrowseFeedback), nameof(IsExportBrowseBusy), nameof(ExportSelectedSummary), nameof(ExportBrowserAvailable) }) OnPropertyChanged(name); + RefreshExportEntriesCommand?.NotifyCanExecuteChanged(); ExportParentDirectoryCommand?.NotifyCanExecuteChanged(); ClearExportPathsCommand?.NotifyCanExecuteChanged(); + } + private IReadOnlyList MergeExportPaths(IEnumerable builtIn) + { + var paths = builtIn.Concat(ExportSelectedPaths.Select(p => p.RelativePath)).Distinct(StringComparer.Ordinal).ToArray(); + return paths.Where(p => !paths.Any(parent => parent != p && p.StartsWith(parent + "/", StringComparison.Ordinal))).ToArray(); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Folders.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Folders.cs new file mode 100644 index 00000000..3a7b327f --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Folders.cs @@ -0,0 +1,44 @@ +using System.Collections.ObjectModel; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record InstanceFolderChoice(string Title, string? Path) +{ + public bool HasPath => !string.IsNullOrEmpty(Path); +} +public sealed partial class InstancesPageViewModel +{ + public IInstanceArtworkService? ArtworkService => Service as IInstanceArtworkService; + public ObservableCollection GameFolders { get; } = []; + public ObservableCollection CategoryFilters { get; } = ["全部分类"]; + private InstanceFolderChoice? selectedFolder; + private string categoryFilter = "全部分类"; + public InstanceFolderChoice? SelectedGameFolder { get => selectedFolder; set { if (value is not null && SetProperty(ref selectedFolder, value)) FilterInstances(); } } + public string InstanceCategoryFilter { get => categoryFilter; set { if (value is not null && SetProperty(ref categoryFilter, value)) FilterInstances(); } } + private static string CategoryOf(GameInstance instance) => instance.Presentation?.Category is { } c && c != "auto" ? c : instance.Presentation?.Icon switch { "commandblock" => "预览版", "cobblestone" => "远古版", _ => instance.Loader is "vanilla" or "optifine" ? "原版" : "可安装模组" }; + private static bool SameFolder(string? a, string? b) => string.Equals(a is null ? null : Path.TrimEndingDirectorySeparator(Path.GetFullPath(a)), b is null ? null : Path.TrimEndingDirectorySeparator(Path.GetFullPath(b)), OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); + private string FolderOf(GameInstance instance) => instance.Origin?.MinecraftRoot ?? Path.GetDirectoryName(Path.TrimEndingDirectorySeparator(instance.GameDirectory)) ?? Service.Paths.InstancesDirectory; + private void RefreshFolders() + { + var paths = Instances.Select(FolderOf).Prepend(Service.Paths.InstancesDirectory).Distinct(OperatingSystem.IsWindows() ? StringComparer.OrdinalIgnoreCase : StringComparer.Ordinal).ToArray(); + var rows = new[] { new InstanceFolderChoice("全部目录", null) }.Concat(paths.Select(p => new InstanceFolderChoice(SameFolder(p, Service.Paths.InstancesDirectory) ? "本地实例" : Path.GetFileName(Path.TrimEndingDirectorySeparator(p)), p))).ToArray(); + var old = selectedFolder?.Path; + if (!GameFolders.SequenceEqual(rows)) { GameFolders.Clear(); foreach (var row in rows) GameFolders.Add(row); } + SelectedGameFolder = GameFolders.FirstOrDefault(r => SameFolder(r.Path, old)) ?? GameFolders[0]; OnPropertyChanged(nameof(SelectedGameFolder)); + var categories = Instances.Select(CategoryOf).Distinct().Order().Prepend("全部分类").ToArray(); + if (!CategoryFilters.SequenceEqual(categories)) { CategoryFilters.Clear(); foreach (var c in categories) CategoryFilters.Add(c); } + if (!CategoryFilters.Contains(InstanceCategoryFilter)) InstanceCategoryFilter = "全部分类"; + } + public async Task SaveCroppedInstanceIconAsync(string instanceId, byte[] png) + { + if (SelectedInstance?.Id != instanceId || Service is not IInstanceArtworkService artwork || !CanEdit) return false; + var success = await Owner.RunAsync("保存实例图标", ct => artwork.SaveInstanceIconAsync(instanceId, png, ct)); + if (success && SelectedInstance?.Id == instanceId) + { + _presentationRefreshing = true; try { PresentationIcon = InstanceIcons.Single(i => i.Id == "custom"); } finally { _presentationRefreshing = false; } + Feedback = "实例图标已保存。"; OnPropertyChanged(nameof(InstanceIconKind)); + } + return success; + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.LocalWorldImport.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.LocalWorldImport.cs new file mode 100644 index 00000000..f4b2e97e --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.LocalWorldImport.cs @@ -0,0 +1,103 @@ +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class InstancesPageViewModel +{ + private string _localWorldPath = "", _localWorldFolder = "", _localWorldStatus = ""; + private string? _localWorldContext; + private LocalWorldImportPreview? _localWorldPreview; + private int _localWorldRevision; + private bool _localWorldBusy; + private string? LocalWorldContextKey => SelectedInstance is { } instance && instance.Id == Owner.Snapshot.SelectedInstanceId ? instance.Id + "\0" + instance.GameDirectory : null; + public bool CanSelectLocalWorldArchive => WorldWorkspaceCanWrite && IsWorldListPage && ReferenceEquals(Owner.SelectedPage, this) && Service is ILocalWorldImportService && !_localWorldBusy; + public bool IsLocalWorldImportOpen => _localWorldPath.Length > 0; + public bool IsLocalWorldImportBusy => _localWorldBusy; + public bool HasLocalWorldPreview => _localWorldPreview is not null; + public string LocalWorldArchiveName => Path.GetFileName(_localWorldPath); + public string LocalWorldDirectoryName { get => _localWorldFolder; set { if (SetProperty(ref _localWorldFolder, value)) { InvalidateLocalWorldPreview(); _localWorldStatus = ""; NotifyLocalWorldImport(); } } } + public string LocalWorldImportStatus => _localWorldStatus; + public string LocalWorldPreviewSummary => _localWorldPreview is { } p ? $"{p.WorldName}\n{p.Installation.GameVersion} · {p.Installation.Files.Count} 个文件\n目标:{p.Installation.InstanceName} / {p.Installation.WorldDirectoryName}" : ""; + public AsyncRelayCommand PreviewLocalWorldImportCommand { get; private set; } = null!; + public AsyncRelayCommand ConfirmLocalWorldImportCommand { get; private set; } = null!; + public RelayCommand CancelLocalWorldImportCommand { get; private set; } = null!; + private void InitializeLocalWorldImport() + { + PreviewLocalWorldImportCommand = AsyncCommand(PreviewLocalWorldImportAsync, () => CanSelectLocalWorldArchive && IsLocalWorldImportOpen && !string.IsNullOrWhiteSpace(LocalWorldDirectoryName)); + ConfirmLocalWorldImportCommand = AsyncCommand(ConfirmLocalWorldImportAsync, () => CanSelectLocalWorldArchive && HasLocalWorldPreview && _localWorldContext == LocalWorldContextKey); + CancelLocalWorldImportCommand = Command(() => + { + if (_localWorldBusy && Owner.CancelOperationCommand.CanExecute(null)) Owner.CancelOperationCommand.Execute(null); + InvalidateLocalWorldPreview(); _localWorldPath = ""; _localWorldStatus = ""; NotifyLocalWorldImport(); + }, () => IsLocalWorldImportOpen); + } + public bool SelectLocalWorldArchive(IReadOnlyList paths, string expectedInstanceId, string expectedGameDirectory) + { + if (!CanSelectLocalWorldArchive || SelectedInstance is not { } instance || instance.Id != expectedInstanceId || instance.GameDirectory != expectedGameDirectory) + { Owner.ShowError("目标实例已经改变,未读取或导入文件。"); return false; } + if (paths.Count != 1 || !Path.IsPathFullyQualified(paths[0]) || !Path.GetExtension(paths[0]).Equals(".zip", StringComparison.OrdinalIgnoreCase)) + { Owner.ShowError("请选择或复制一个本地 Java 世界 ZIP 文件。"); return false; } + InvalidateLocalWorldPreview(); _localWorldContext = LocalWorldContextKey; _localWorldPath = paths[0]; + var name = Path.GetFileNameWithoutExtension(paths[0]); + _localWorldFolder = new string(name.Where(c => !char.IsControl(c) && !"<>:\"/\\|?*".Contains(c)).Take(120).ToArray()).Trim().Trim('.'); + if (_localWorldFolder.Length == 0 || _localWorldFolder.StartsWith('.')) _localWorldFolder = "导入的世界"; + _localWorldStatus = ""; NotifyLocalWorldImport(); return true; + } + private void InvalidateLocalWorldPreview() + { + ++_localWorldRevision; var previous = _localWorldPreview; _localWorldPreview = null; + if (previous is not null) DiscardLocalWorldPreview(previous.Installation.Id); + } + private async void DiscardLocalWorldPreview(string id) + { + try { if (Service is ILocalWorldImportService service) await service.DiscardLocalWorldImportAsync(id); } + catch (Exception ex) { Owner.ShowError("预检释放失败:" + UiPrivacy.Redact(ex.Message)); } + } + private async Task PreviewLocalWorldImportAsync() + { + if (!CanSelectLocalWorldArchive || SelectedInstance is not { } instance || Service is not ILocalWorldImportService service) return; + InvalidateLocalWorldPreview(); var revision = _localWorldRevision; var key = LocalWorldContextKey; + var request = new LocalWorldImportRequest(instance.Id, _localWorldPath, LocalWorldDirectoryName.Trim()); + LocalWorldImportPreview? preview = null; _localWorldBusy = true; _localWorldStatus = "正在检查世界与版本…"; NotifyLocalWorldImport(); + try + { + var success = await Owner.RunInlineAsync("检查本地世界", async ct => preview = await service.PreviewLocalWorldImportAsync(request, ct)); + if (revision != _localWorldRevision || key != LocalWorldContextKey) + { if (preview is not null) DiscardLocalWorldPreview(preview.Installation.Id); return; } + _localWorldPreview = success ? preview : null; _localWorldStatus = success ? "" : Owner.ErrorMessage ?? "检查已取消,未写入存档。"; + } + finally { _localWorldBusy = false; NotifyLocalWorldImport(); } + } + private async Task ConfirmLocalWorldImportAsync() + { + if (!CanSelectLocalWorldArchive || _localWorldPreview is not { } preview || _localWorldContext != LocalWorldContextKey || Service is not ILocalWorldImportService service) return; + var key = LocalWorldContextKey; var revision = _localWorldRevision; var sourcePath = _localWorldPath; WorldContentResult? imported = null; + _localWorldBusy = true; _localWorldStatus = "正在导入世界…"; NotifyLocalWorldImport(); + try + { + var success = await Owner.RunInlineAsync("导入本地世界", async ct => imported = await service.ImportLocalWorldAsync(preview.Installation.Id, ct)); + if (key != LocalWorldContextKey) return; + if (revision != _localWorldRevision) + { + if (imported is not null) + { + _localWorldPath = sourcePath; _localWorldContext = key; _localWorldStatus = "世界已完成导入,取消请求未移除已完成的存档。"; + await RefreshWorldsAsync(); + } + return; + } + InvalidateLocalWorldPreview(); _localWorldStatus = imported is not null ? $"已导入 {imported.WorldDirectoryName}。" : success ? "导入未返回结果,请重新读取核对。" : Owner.ErrorMessage ?? "导入已取消,原存档保留。"; + if (imported is not null) await RefreshWorldsAsync(); + } + finally { _localWorldBusy = false; NotifyLocalWorldImport(); } + } + private void NotifyLocalWorldImport() + { + if (PreviewLocalWorldImportCommand is null) return; + if (_localWorldContext != LocalWorldContextKey && IsLocalWorldImportOpen) + { InvalidateLocalWorldPreview(); _localWorldPath = ""; _localWorldStatus = ""; } + foreach (var name in new[] { nameof(CanSelectLocalWorldArchive), nameof(IsLocalWorldImportOpen), nameof(IsLocalWorldImportBusy), nameof(HasLocalWorldPreview), nameof(LocalWorldArchiveName), nameof(LocalWorldDirectoryName), nameof(LocalWorldImportStatus), nameof(LocalWorldPreviewSummary) }) OnPropertyChanged(name); + PreviewLocalWorldImportCommand.NotifyCanExecuteChanged(); ConfirmLocalWorldImportCommand.NotifyCanExecuteChanged(); CancelLocalWorldImportCommand.NotifyCanExecuteChanged(); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ManualUpdates.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ManualUpdates.cs new file mode 100644 index 00000000..df497432 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ManualUpdates.cs @@ -0,0 +1,46 @@ +using System.Collections.ObjectModel; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class InstancesPageViewModel +{ + public ObservableCollection UpdateManualFiles { get; } = []; + public bool HasUpdateManualFiles => UpdateManualFiles.Count > 0; + private int manualUpdateGeneration; + private void ClearManualUpdates() + { + manualUpdateGeneration++; UpdateManualFiles.Clear(); OnPropertyChanged(nameof(HasUpdateManualFiles)); + } + private async Task PrepareManualUpdatesAsync(IReadOnlyList updates) + { + ClearManualUpdates(); + if (Service is not IInstanceManualUpdateService service || updates.Count == 0) return true; + var instance = SelectedInstance; var section = SelectedSection.Key; var generation = manualUpdateGeneration; + bool Current() => !_workspaceDisposed && generation == manualUpdateGeneration && SelectedInstance == instance && SelectedSection.Key == section && ReferenceEquals(Owner.SelectedPage, this); + var missing = new List<(InstanceModUpdate Update, CurseForgeManualFile File)>(); + if (!await Owner.RunInlineAsync("核对更新文件", async ct => + { + foreach (var update in updates) + foreach (var file in await service.GetInstanceUpdateManualFilesAsync(update.Token, ct)) missing.Add((update, file)); + }) || !Current()) return false; + foreach (var group in missing.GroupBy(p => p.File)) + { + var file = group.Key; var tokens = group.Select(p => p.Update.Token).Distinct().ToArray(); + UpdateManualFiles.Add(new(Owner, file, async (row, path) => + { + if (!Current()) return; + if (!await Owner.RunInlineAsync("校验官网文件", async ct => + { + // One verified cache entry can satisfy the same required dependency of several updates. + foreach (var token in tokens) + if ((await service.GetInstanceUpdateManualFilesAsync(token, ct)).Contains(file)) await service.ProvideInstanceUpdateManualFileAsync(token, file, path, ct); + }) || !Current()) return; + UpdateManualFiles.Remove(row); OnPropertyChanged(nameof(HasUpdateManualFiles)); + if (!HasUpdateManualFiles) await RequestContentUpdatesAsync(updates); + }, row => Current() && UpdateManualFiles.Contains(row), () => Service is IInstanceManualUpdateService)); + } + OnPropertyChanged(nameof(HasUpdateManualFiles)); + return missing.Count == 0; + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Mods.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Mods.cs new file mode 100644 index 00000000..0cbc187a --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Mods.cs @@ -0,0 +1,294 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class InstancesPageViewModel +{ + private bool refreshingContentRows; + private string contentSearchText = "", contentFilter = "全部", contentSort = "资源名称"; + private readonly Dictionary contentRows = new(StringComparer.Ordinal); + private InstanceContentRowViewModel? selectedContentRow; + private CancellationTokenSource? modScanCancellation; + private readonly List modReads = []; + private int modCheckGeneration; + private bool modScanBusy; + private string modUpdateStatus = "", modDetail = "", modAction = ""; + private InstanceModUpdate? selectedModUpdate; + private IReadOnlyList pendingModUpdates = []; + private IReadOnlyList pendingModPaths = []; + public string ContentSearchText { get => contentSearchText; set { if (SetProperty(ref contentSearchText, value ?? "")) NotifyContentFilter(); } } + public IReadOnlyList ContentSortChoices { get; } = ["资源名称", "文件名", "添加时间", "文件大小", "标签数量"]; + public string ContentSort { get => contentSort; set { if (SetProperty(ref contentSort, value)) NotifyContentFilter(); } } + public ObservableCollection ModFilters { get; } = []; + public ObservableCollection ModUpdates { get; } = []; + public ObservableCollection ModTrash { get; } = []; + public InstanceModTrash? SelectedModTrash { get; set; } + public bool HasModTrash => ModTrash.Count > 0; + public InstanceModUpdate? SelectedModUpdate { get => selectedModUpdate; set { SetProperty(ref selectedModUpdate, value); NotifyCommands(); } } + public bool ConfirmModUpdate { get; set; } + public bool IsModScanBusy { get => modScanBusy; private set { SetProperty(ref modScanBusy, value); NotifyModActions(); } } + public string ModUpdateStatus { get => modUpdateStatus; private set { SetProperty(ref modUpdateStatus, value); OnPropertyChanged(nameof(HasModUpdateStatus)); OnPropertyChanged(nameof(ModUpdateSummary)); OnPropertyChanged(nameof(ModUpdateDetails)); OnPropertyChanged(nameof(HasModUpdateDetails)); } } + public string ModUpdateSummary => ModUpdateStatus.Split('\n', 2)[0]; + public string ModUpdateDetails => ModUpdateStatus.Contains('\n') ? ModUpdateStatus.Split('\n', 2)[1] : ""; + public bool HasModUpdateDetails => ModUpdateDetails.Length > 0; + public bool HasModUpdateStatus => ModUpdateStatus.Length > 0 && (!IsModsSection || Owner.IsFeatureVisible("mod-updates")); + public bool HasModUpdates => ModUpdates.Count > 0; + public string ModDetail { get => modDetail; private set { SetProperty(ref modDetail, value); OnPropertyChanged(nameof(HasModDetail)); } } + public bool HasModDetail => ModDetail.Length > 0; + public string ModActionSummary { get => modAction; private set { SetProperty(ref modAction, value); OnPropertyChanged(nameof(HasModAction)); } } + public bool HasModAction => ModActionSummary.Length > 0; + public string ModActionCaption => pendingModUpdates.Count > 0 ? "更新并备份" : "移到回收站"; + public bool HasModSelection => Rows().Any(r => r.Selected); + public string ModSelectionSummary => Localization.UiLocalization.Instance.Format("已选择 {0} 项", Rows().Count(r => r.Selected)); + public bool CanManageMods => CanEdit && !IsSelectedInstanceRunning && IsModsSection && !IsModScanBusy; + public InstanceContentRowViewModel? SelectedContentRow { get => selectedContentRow; set { if (SetProperty(ref selectedContentRow, value)) SelectedContent = value?.Entry; } } + public IReadOnlyList FilteredContentEntries => FilteredContentRows.Select(r => r.Entry).ToArray(); + private InstanceContentRowViewModel Row(InstanceContentEntry entry) + { + if (contentRows.TryGetValue(entry.RelativePath, out var existing)) return existing; + var row = new InstanceContentRowViewModel(entry, NotifyModActions, RequestContentRowUpdateAsync, ShowContentDetails, + RevealContentRowAsync, ToggleContentRowAsync, r => { if (CanTrashContent && CurrentContentRow(r)) RequestModTrash([r.Entry.RelativePath]); }); + contentRows.Add(entry.RelativePath, row); return row; + } + private InstanceContentRowViewModel[] Rows() => ContentEntries.Select(Row).ToArray(); + public IReadOnlyList FilteredContentRows + { + get + { + var rows = Rows().Where(r => (ContentSearchText.Trim().Length == 0 || (r.Title + " " + r.Entry.Name + " " + r.Entry.VersionLabel + " " + r.Description + " " + r.SearchTags).Contains(ContentSearchText.Trim(), StringComparison.OrdinalIgnoreCase)) && + (contentFilter switch { "可更新" => r.HasUpdate, "启用" => r.Entry.Enabled, "禁用" => !r.Entry.Enabled, "错误" => r.HasError, "重复" => r.Duplicate, _ => true })); + var sorted = (ContentSort switch { "文件名" => rows.OrderBy(r => r.Name, StringComparer.CurrentCultureIgnoreCase), "添加时间" => rows.OrderByDescending(r => r.Entry.Created ?? r.Entry.Modified), "文件大小" => rows.OrderByDescending(r => r.Entry.Bytes), "标签数量" => rows.OrderByDescending(r => r.Project?.Categories?.Count ?? 0), _ => rows.OrderBy(r => r.Title, StringComparer.CurrentCultureIgnoreCase) }); + return sorted.OrderByDescending(r => r.IsDirectory).ToArray(); + } + } + private void NotifyContentFilter() + { + OnPropertyChanged(nameof(FilteredContentEntries)); OnPropertyChanged(nameof(FilteredContentRows)); OnPropertyChanged(nameof(IsContentEmpty)); OnPropertyChanged(nameof(ContentEmptyTitle)); + var rows = Rows().Where(r => ContentSearchText.Trim().Length == 0 || (r.Title + " " + r.Name + " " + r.Version + " " + r.Description + " " + r.SearchTags).Contains(ContentSearchText.Trim(), StringComparison.OrdinalIgnoreCase)).ToArray(); + foreach (var filter in ModFilters) + { + var count = filter.Key switch { "可更新" => rows.Count(r => r.HasUpdate), "启用" => rows.Count(r => r.Entry.Enabled), "禁用" => rows.Count(r => !r.Entry.Enabled), "错误" => rows.Count(r => r.HasError), "重复" => rows.Count(r => r.Duplicate), _ => rows.Length }; + filter.Title = Localization.UiLocalization.Instance.Format("{0}({1})", Localization.UiLocalization.Instance.Text(filter.Key), count); filter.Active = contentFilter == filter.Key; + filter.Shown = filter.Active || filter.Key == "全部" || (filter.Key switch { "启用" => IsModsSection && count > 0 && count < rows.Length, "禁用" or "可更新" or "错误" or "重复" => count > 0, _ => false }); + } + } + public RelayCommand DownloadInstanceResourcesCommand { get; private set; } = null!; + public AsyncRelayCommand CheckModUpdatesCommand { get; private set; } = null!; + public AsyncRelayCommand ApplyModUpdateCommand { get; private set; } = null!; + public RelayCommand CancelModScanCommand { get; private set; } = null!; + public RelayCommand SelectAllModsCommand { get; private set; } = null!; + public RelayCommand ClearModSelectionCommand { get; private set; } = null!; + public AsyncRelayCommand UpdateSelectedModsCommand { get; private set; } = null!; + public AsyncRelayCommand EnableSelectedModsCommand { get; private set; } = null!; + public AsyncRelayCommand DisableSelectedModsCommand { get; private set; } = null!; + public RelayCommand TrashSelectedModsCommand { get; private set; } = null!; + public AsyncRelayCommand ConfirmModActionCommand { get; private set; } = null!; + public RelayCommand CancelModActionCommand { get; private set; } = null!; + public RelayCommand CloseModDetailsCommand { get; private set; } = null!; + public AsyncRelayCommand OpenModChangelogCommand { get; private set; } = null!; + public AsyncRelayCommand RefreshModTrashCommand { get; private set; } = null!; + public AsyncRelayCommand RestoreModsCommand { get; private set; } = null!; + public RelayCommand DiagnoseModsCommand { get; private set; } = null!; + private void InitializeModManagement() + { + foreach (var key in new[] { "全部", "启用", "禁用", "可更新", "错误", "重复" }) ModFilters.Add(new(key, k => { contentFilter = k; NotifyContentFilter(); })); + ContentEntries.CollectionChanged += (_, _) => { if (!refreshingContentRows) NotifyContentFilter(); }; + DownloadInstanceResourcesCommand = Command(() => { Owner.Downloads.OpenInstanceResourceBrowser(SelectedInstance!, SelectedSection.Key); Owner.SelectedPage = Owner.Downloads; }, () => CanEdit && SelectedInstance is not null && SelectedSection.Key is "mods" or "resourcepacks" or "shaders"); + CheckModUpdatesCommand = AsyncCommand(() => CheckModUpdatesAsync(false), () => CanEdit && !IsModScanBusy && SelectedInstance is not null && (IsModsSection && Service is IInstanceModUpdateService || IsResourceUpdateSection && Service is IInstanceResourceUpdateService)); + CancelModScanCommand = Command(() => { StopModScan(); ModUpdateStatus = Localization.UiLocalization.Instance.Text(IsModsSection ? "检查已取消,未修改模组文件。" : "检查已取消,未修改资源文件。"); }, () => IsModScanBusy); + ApplyModUpdateCommand = AsyncCommand(() => RequestContentUpdatesAsync(SelectedModUpdate is { } u ? [u] : []), () => CanUpdateContent && SelectedModUpdate is not null); + SelectAllModsCommand = Command(() => { var visible = FilteredContentRows.Where(r => r.IsFile).ToArray(); var value = visible.Any(r => !r.Selected); foreach (var row in visible) row.Selected = value; }, () => IsContentList); + ClearModSelectionCommand = Command(() => { foreach (var row in Rows()) row.Selected = false; }, () => HasModSelection); + UpdateSelectedModsCommand = AsyncCommand(() => RequestContentUpdatesAsync(Rows().Where(r => r.Selected && r.Update is not null).Select(r => r.Update!).ToArray()), () => CanUpdateContent && Rows().Any(r => r.Selected && r.HasUpdate)); + EnableSelectedModsCommand = AsyncCommand(() => ToggleSelectedModsAsync(true), () => CanManageMods && HasModSelection && Service is IInstanceModManagementService); + DisableSelectedModsCommand = AsyncCommand(() => ToggleSelectedModsAsync(false), () => CanManageMods && HasModSelection && Service is IInstanceModManagementService); + TrashSelectedModsCommand = Command(() => RequestModTrash(Rows().Where(r => r.Selected).Select(r => r.Entry.RelativePath).ToArray()), () => CanTrashContent && HasModSelection); + ConfirmModActionCommand = AsyncCommand(ConfirmModActionAsync, () => HasModAction && (pendingModUpdates.Count > 0 ? CanManageMods : CanTrashContent)); + CancelModActionCommand = Command(() => { ModActionSummary = ""; pendingModUpdates = []; pendingModPaths = []; }, () => HasModAction); + CloseModDetailsCommand = Command(() => { detailRow = null; ModDetail = ""; OnPropertyChanged(nameof(CanOpenContentProject)); }); + OpenContentProjectCommand = AsyncCommand(OpenContentProjectAsync, () => CanOpenContentProject); + CloseContentTrashCommand = Command(() => { ModTrash.Clear(); SelectedModTrash = null; OnPropertyChanged(nameof(HasModTrash)); NotifyModActions(); }); + DiagnoseModsCommand = Command(DiagnoseMods, () => IsModsSection); + OpenModChangelogCommand = AsyncCommand(async () => { if (SelectedContentRow?.Update?.ChangelogUri is { } uri) await Owner.RunControlAsync("查看更新日志", ct => Owner.ExternalLauncher.OpenUriAsync(uri, ct)); }, () => SelectedContentRow?.Update?.ChangelogUri is not null); + RefreshModTrashCommand = AsyncCommand(ReadModTrashAsync, () => CanReadContentTrash); + RestoreModsCommand = AsyncCommand(RestoreContentTrashAsync, () => CanTrashContent && HasModTrash); + } + private void NotifyModActions() + { + foreach (var file in UpdateManualFiles) file.Refresh(); + OnPropertyChanged(nameof(HasModSelection)); OnPropertyChanged(nameof(HasSelectedMods)); OnPropertyChanged(nameof(ResourceListBottomMargin)); OnPropertyChanged(nameof(ModSelectionSummary)); OnPropertyChanged(nameof(CanManageMods)); OnPropertyChanged(nameof(CanUpdateContent)); OnPropertyChanged(nameof(CanTrashMods)); OnPropertyChanged(nameof(CanTrashContent)); OnPropertyChanged(nameof(CanReadContentTrash)); OnPropertyChanged(nameof(ContentTrashTitle)); OnPropertyChanged(nameof(CanOpenContentProject)); OnPropertyChanged(nameof(CheckContentUpdatesCaption)); if (_workspaceReady && !_workspaceDisposed) NotifyCommands(); + } + internal void StopModScan() { ++modCheckGeneration; modScanCancellation?.Cancel(); IsModScanBusy = false; } + private async Task StopModScanAsync() + { + StopModScan(); + StopModRelations(); + // In particular on Windows, allow all cancelled readers to close their JAR handles before a move. + var readers = modReads.Append(CheckModUpdatesCommand?.ExecutionTask ?? Task.CompletedTask).Where(t => !t.IsCompleted).ToArray(); + if (readers.Length > 0) await Task.WhenAll(readers); + var relationTasks = relationReads.Append(RefreshModRelationsCommand?.ExecutionTask ?? Task.CompletedTask).Where(t => !t.IsCompleted).ToArray(); + if (relationTasks.Length > 0) await Task.WhenAll(relationTasks); + relationReads.RemoveAll(t => t.IsCompleted); + modReads.RemoveAll(t => t.IsCompleted); + } + private void ClearModUpdates() + { + ClearModRelations(); + StopModScan(); ModUpdates.Clear(); SelectedModUpdate = null; ModUpdateStatus = ""; contentRows.Clear(); contentFilter = "全部"; + ClearManualUpdates(); + ModDetail = ""; detailRow = null; ModTrash.Clear(); SelectedModTrash = null; OnPropertyChanged(nameof(HasModTrash)); ModActionSummary = ""; pendingModUpdates = []; pendingModPaths = []; OnPropertyChanged(nameof(HasModUpdates)); NotifyModActions(); + } + internal void ModWorkspaceNavigationChanged() + { + ExportNavigationChanged(); + ServerStatusNavigationChanged(); + if (!ReferenceEquals(Owner.SelectedPage, this)) { StopModScan(); StopModRelations(); } + else if (IsContentList) { _pendingContentRefresh = true; ScheduleContentRefresh(); } + else if (IsRelationsSection) ScheduleModRelations(); + } + private void StartAutoModScan() + { + if (!_workspaceDisposed && ReferenceEquals(Owner.SelectedPage, this) && IsResourceUpdateSection && Service is IInstanceResourceUpdateService && !IsModScanBusy) + { modReads.RemoveAll(t => t.IsCompleted); modReads.Add(CheckModUpdatesAsync(true)); return; } + if (!_workspaceDisposed && ReferenceEquals(Owner.SelectedPage, this) && IsResourceBrowserSection && !IsModsSection && Service is IInstanceContentMetadataService && !IsModScanBusy) + { modReads.RemoveAll(t => t.IsCompleted); modReads.Add(ReadResourceMetadataAsync()); return; } + if (_workspaceDisposed || !ReferenceEquals(Owner.SelectedPage, this) || !IsModsSection || !Owner.IsFeatureVisible("mod-updates") || Service is not IInstanceModUpdateService || IsModScanBusy) return; + modReads.RemoveAll(t => t.IsCompleted); + modReads.Add(CheckModUpdatesAsync(true)); + } + private async Task CheckModUpdatesAsync(bool automatic) + { + StopModScan(); var instance = SelectedInstance!; var section = SelectedSection.Key; var resource = section != "mods"; var generation = ++modCheckGeneration; var source = new CancellationTokenSource(); modScanCancellation = source; + if (resource) { ModUpdates.Clear(); SelectedModUpdate = null; foreach (var row in Rows()) row.Update = null; NotifyContentFilter(); } + IsModScanBusy = true; ModUpdateStatus = Localization.UiLocalization.Instance.Text(resource ? "正在核对已安装资源及其官方更新,可随时取消。" : "正在核对已安装模组及其官方更新,可随时取消。"); + bool Current() => !_workspaceDisposed && generation == modCheckGeneration && SelectedInstance?.Id == instance.Id && SelectedInstance.GameDirectory == instance.GameDirectory && SelectedSection.Key == section && ReferenceEquals(Owner.SelectedPage, this); + var progress = new Progress(p => { if (Current()) ModUpdateStatus = Localization.UiLocalization.Instance.Format(resource ? "已检查 {0}/{1} 项资源" : "已检查 {0}/{1} 个模组", p.CompletedFiles, p.TotalFiles) + (p.CurrentFile is { } name ? " · " + UiPrivacy.Redact(name) : "") + ";未修改文件。"; }); + try + { + InstanceModUpdateCheck? result = null; + async Task Read(CancellationToken ct) + { + using var linked = CancellationTokenSource.CreateLinkedTokenSource(ct, source.Token); + result = resource ? await ((IInstanceResourceUpdateService)Service).CheckInstanceResourceUpdatesAsync(instance.Id, section, !automatic, progress, linked.Token) + : !automatic && Service is IInstanceModRefreshService refresh ? await refresh.RefreshInstanceModUpdatesAsync(instance.Id, progress, linked.Token) : Service is IInstanceModUpdateProgressService tracked ? await tracked.CheckInstanceModUpdatesWithProgressAsync(instance.Id, progress, linked.Token) : await ((IInstanceModUpdateService)Service).CheckInstanceModUpdatesAsync(instance.Id, linked.Token); + } + if (automatic) await Read(source.Token); + else if (!await (resource ? Owner.RunInlineAsync("检查资源更新", Read) : Owner.RunAsync("检查模组更新", Read))) + { if (Current()) ModUpdateStatus = Localization.UiLocalization.Instance.Text(resource ? "检查已取消或失败,未修改资源文件。" : "检查已取消或失败,未修改模组文件。"); return; } + if (!Current() || result is null) return; + ModUpdates.Clear(); foreach (var update in result.Updates) ModUpdates.Add(update); SelectedModUpdate = ModUpdates.FirstOrDefault(); + foreach (var row in Rows()) row.Update = ModUpdates.FirstOrDefault(u => u.RelativePath == row.Entry.RelativePath); + foreach (var online in result.OnlineInfo ?? []) if (contentRows.TryGetValue(online.RelativePath, out var row)) { row.Project = online.Project; if (resource) { row.ResourceRequirements = online.Requirements ?? []; row.Entry = row.Entry with { ModVersion = online.Version }; } else row.Refresh(); } + MarkDuplicateMods(); NotifyContentFilter(); OnPropertyChanged(nameof(HasModUpdates)); + ModUpdateStatus = resource ? Localization.UiLocalization.Instance.Format("已检查 {0} 项资源,发现 {1} 项同游戏版本的正式版更新。", result.CheckedFiles, result.Updates.Count) + : $"已检查 {result.CheckedFiles} 个模组,发现 {result.Updates.Count} 项同游戏版本/加载器的正式版更新。"; + if (result.Notices.Count > 0) ModUpdateStatus += Localization.UiLocalization.Instance.Format(" {0} 项未能核实,未计为最新版。", result.Notices.Count) + "\n" + string.Join("\n", result.Notices.Take(5)); + IsModScanBusy = false; + if (Service is ILauncherCatalogService icons) + foreach (var row in Rows().Where(r => !r.Entry.HasIcon && r.Project?.IconUrl is not null)) + { + if (!Current()) break; + try { var bytes = await icons.GetContentIconAsync(row.Project!.IconUrl!, source.Token); if (Current()) row.Entry = row.Entry with { IconPng = bytes }; } + catch (OperationCanceledException) { throw; } + catch (Exception ex) when (ex is IOException or HttpRequestException or InvalidOperationException or AggregateException) { } + } + } + catch (OperationCanceledException) { if (Current()) ModUpdateStatus = Localization.UiLocalization.Instance.Text(IsModsSection ? "检查已取消,未修改模组文件。" : "检查已取消,未修改资源文件。"); } + catch (Exception ex) { if (Current()) ModUpdateStatus = Localization.UiLocalization.Instance.Text(resource ? "暂未能核实资源更新:" : "暂未能核实模组更新:") + UiPrivacy.Redact(ex.Message); } + finally { if (generation == modCheckGeneration) { ++modCheckGeneration; IsModScanBusy = false; } if (ReferenceEquals(modScanCancellation, source)) modScanCancellation = null; source.Dispose(); } + } + private void MarkDuplicateMods() + { + foreach (var row in Rows()) row.Duplicate = false; + foreach (var group in Rows().Where(r => r.Entry.ModId is not null).GroupBy(r => r.Entry.ModId, StringComparer.OrdinalIgnoreCase).Where(g => g.Count() > 1)) foreach (var row in group) row.Duplicate = true; + foreach (var group in Rows().Where(r => r.Project is not null).GroupBy(r => r.Project!.Id, StringComparer.Ordinal).Where(g => g.Count() > 1)) foreach (var row in group) row.Duplicate = true; + } + private void DiagnoseMods() + { + if (Service is IInstanceModRelationsService) { SelectedSection = Sections.Single(s => s.Key == "relations"); return; } + MarkDuplicateMods(); NotifyContentFilter(); + var rows = Rows(); var ids = rows.Where(r => r.Entry.Enabled && r.Entry.ModId is not null).Select(r => r.Entry.ModId!).ToHashSet(StringComparer.OrdinalIgnoreCase); + ids.UnionWith(["minecraft", "java", "forge", "neoforge", "fabricloader", "quilt_loader", "liteloader"]); + var lines = new List { $"共 {rows.Length} 个模组;{rows.Count(r => r.HasError)} 项归档错误,{rows.Count(r => r.Duplicate)} 项重复项目。" }; + foreach (var row in rows) + { + if (row.HasError) lines.Add(row.Name + ":" + row.Entry.MetadataError); + foreach (var dependency in row.Entry.Dependencies ?? []) if (!ids.Contains(dependency)) lines.Add(row.Name + ":顶层列表未找到依赖 " + dependency + "(可能由内嵌模组提供)。"); + if (row.Entry.EmbeddedMods is { Count: > 0 } embedded) lines.Add(row.Name + " 内嵌:" + string.Join(", ", embedded)); + } + lines.Add("此检查核对归档、项目重复和声明的依赖 ID;版本范围与内嵌依赖级联仍需核实。"); ModDetail = string.Join("\n", lines); + } + public string ExportContentInformation(bool csv) + { + static string Quote(string text) => "\"" + text.Replace("\"", "\"\"") + "\""; + IReadOnlyList rows = HasModSelection ? Rows().Where(r => r.Selected).ToArray() : FilteredContentRows; + return csv ? "Name,Version,File,State\n" + string.Join("\n", rows.Select(r => string.Join(",", new[] { r.Title, r.Entry.VersionLabel, r.Name, r.StateText }.Select(Quote)))) + : string.Join("\n\n", rows.Select(r => r.Detail)); + } + private void RequestModUpdate(IReadOnlyList updates) + { + pendingModUpdates = updates.Where(u => u.InstanceId == SelectedInstance?.Id).ToArray(); if (pendingModUpdates.Count == 0) return; + ModActionSummary = Localization.UiLocalization.Instance.Text("更新所选模组并保留原文件备份。整合包定制版本可能不适合单独更新。") + "\n" + string.Join("\n", pendingModUpdates.Select(u => u.Name + " " + u.CurrentVersion + " → " + u.NewVersion)); + OnPropertyChanged(nameof(ModActionCaption)); NotifyModActions(); + } + private async Task ToggleSelectedModsAsync(bool enabled) + { + var instance = SelectedInstance!; var paths = Rows().Where(r => r.Selected).Select(r => r.Entry.RelativePath).ToArray(); + if (await Owner.RunAsync(enabled ? "启用模组" : "禁用模组", async ct => { await StopModScanAsync(); await ((IInstanceModManagementService)Service).SetInstanceModsEnabledAsync(instance.Id, paths, enabled, ct); })) await RefreshContentCommand.ExecuteAsync(null); + } + private async Task ConfirmModActionAsync() + { + if (!HasModAction || !(pendingModUpdates.Count > 0 ? CanManageMods : CanTrashContent) || SelectedInstance is null) return; + var instance = SelectedInstance!; var kind = SelectedSection.Key; var updates = pendingModUpdates.ToArray(); var paths = pendingModPaths.ToArray(); + ModActionSummary = ""; pendingModUpdates = []; pendingModPaths = []; StopModScan(); + if (updates.Length == 0) + { + if (await Owner.RunAsync(kind == "mods" ? "回收模组" : "回收资源", async ct => + { + await StopModScanAsync(); + if (kind == "mods") await ((IInstanceModManagementService)Service).TrashInstanceModsAsync(instance.Id, paths, ct); + else await ((IInstanceContentTrashService)Service).TrashInstanceContentAsync(instance.Id, kind, paths, ct); + }) && SelectedInstance?.Id == instance.Id && SelectedInstance.GameDirectory == instance.GameDirectory && SelectedSection.Key == kind && ReferenceEquals(Owner.SelectedPage, this)) + { await RefreshContentCommand.ExecuteAsync(null); await ReadModTrashAsync(); } + return; + } + var completed = 0; var failures = new List(); + await Owner.RunAsync("更新模组并备份", async ct => + { + await StopModScanAsync(); + foreach (var update in updates) + { + ct.ThrowIfCancellationRequested(); if (SelectedInstance?.Id != instance.Id) break; + try { await ((IInstanceModUpdateService)Service).ApplyInstanceModUpdateAsync(update.Token, ct); completed++; } + catch (OperationCanceledException) { throw; } + catch (Exception ex) when (ex is IOException or InvalidOperationException or HttpRequestException or AggregateException) { failures.Add(update.Name + ":" + UiPrivacy.Redact(ex.Message)); } + } + }); + Feedback = $"已更新 {completed}/{updates.Length} 项模组,原文件已备份。" + (failures.Count > 0 ? "\n" + string.Join("\n", failures) : ""); + if (SelectedInstance?.Id == instance.Id && IsModsSection) await RefreshContentCommand.ExecuteAsync(null); + } + private async Task ReadModTrashAsync() + { + if (SelectedInstance is not { } instance || !CanReadContentTrash) return; + var kind = SelectedSection.Key; IReadOnlyList? rows = null; + if (!await Owner.RunInlineAsync(kind == "mods" ? "读取模组回收站" : "读取资源回收站", async ct => rows = kind == "mods" + ? await ((IInstanceModManagementService)Service).GetInstanceModTrashAsync(instance.Id, ct) + : await ((IInstanceContentTrashService)Service).GetInstanceContentTrashAsync(instance.Id, kind, ct)) || rows is null || SelectedInstance?.Id != instance.Id || SelectedInstance.GameDirectory != instance.GameDirectory || SelectedSection.Key != kind || !ReferenceEquals(Owner.SelectedPage, this)) return; + ModTrash.Clear(); foreach (var row in rows) ModTrash.Add(row); SelectedModTrash = ModTrash.FirstOrDefault(); OnPropertyChanged(nameof(SelectedModTrash)); OnPropertyChanged(nameof(HasModTrash)); NotifyModActions(); + } +} + +public sealed partial class DownloadsPageViewModel +{ + public void OpenInstanceResourceBrowser(GameInstance instance, string section) + { + var target = ContentInstallTargets.FirstOrDefault(t => t.Instance.Id == instance.Id && t.Instance.GameDirectory == instance.GameDirectory) ?? throw new InvalidOperationException("目标实例已改变,请重新选择。"); + SelectedInstallTarget = target; _isConfiguration = false; _isResourceDetail = false; _isPackageDetail = false; + SelectCategory(section switch { "mods" => "mod", "resourcepacks" => "resourcepack", "shaders" => "shader", _ => throw new ArgumentException("此类别没有资源目录。") }); + GameVersionFilter = InstanceIdentity.GameVersion(instance); + LoaderFilter = section == "mods" ? LoaderFilters.FirstOrDefault(l => l.Equals(instance.Loader, StringComparison.OrdinalIgnoreCase)) ?? "任意" : "任意"; + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Presentation.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Presentation.cs new file mode 100644 index 00000000..80c73ebe --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Presentation.cs @@ -0,0 +1,79 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record InstanceIconChoice(string Id, string Title); + +public sealed partial class InstancesPageViewModel +{ + private InstanceIconChoice _presentationIcon = null!; + private string _presentationCategory = "自动", _presentationDescription = ""; + private string? _presentationInstanceId; + private bool _presentationDirty, _presentationRefreshing, _descriptionEditorOpen, _presentationFavorite; + public IReadOnlyList InstanceIcons { get; } = [new("auto", "自动"), new("custom", "自定义图片"), new("minecraft", "Minecraft"), new("fabric", "Fabric"), new("quilt", "Quilt"), new("forge", "Forge"), new("neoforge", "NeoForge"), new("cleanroom", "Cleanroom"), new("legacyfabric", "Legacy Fabric"), new("optifine", "OptiFine"), new("labymod", "LabyMod"), new("liteloader", "LiteLoader"), new("grasspath", "草径"), new("cobblestone", "圆石"), new("commandblock", "命令方块"), new("redstonelamp", "红石灯"), new("goldblock", "金块"), new("redstoneblock", "红石块")]; + public ObservableCollection InstanceCategories { get; } = ["自动", "常用", "整合包", "测试"]; + public InstanceIconChoice PresentationIcon { get => _presentationIcon; set { if (value is not null && SetProperty(ref _presentationIcon, value) && !_presentationRefreshing) PresentationChanged(); } } + public string PresentationCategory { get => _presentationCategory; set { if (SetProperty(ref _presentationCategory, value ?? "自动") && !_presentationRefreshing) PresentationChanged(); } } + public string PresentationDescription { get => _presentationDescription; set { if (SetProperty(ref _presentationDescription, value ?? "") && !_presentationRefreshing) PresentationChanged(); } } + public bool IsDescriptionEditorOpen { get => _descriptionEditorOpen; private set => SetProperty(ref _descriptionEditorOpen, value); } + public string PresentationSummary => _presentationDirty ? "个性化有未保存的修改。" : SelectedInstance?.Presentation?.Description ?? ""; + public string FavoriteCaption => _presentationFavorite ? "移出收藏夹" : "加入收藏夹"; + public string LaunchCountLabel => (SelectedInstance?.Presentation?.LaunchCount ?? 0).ToString("N0", System.Globalization.CultureInfo.CurrentCulture) + " 次"; + public string InstanceIconKind => Themes.ClubIcons.ForInstanceIcon(PresentationIcon?.Id == "auto" ? SelectedInstance?.Loader : PresentationIcon?.Id); + public bool FavoritesOnly { get => _favoritesOnly; set { if (SetProperty(ref _favoritesOnly, value)) FilterInstances(); } } + private bool _favoritesOnly; + public AsyncRelayCommand SavePresentationCommand { get; private set; } = null!; + public RelayCommand EditDescriptionCommand { get; private set; } = null!; + public RelayCommand CancelDescriptionCommand { get; private set; } = null!; + public AsyncRelayCommand ToggleFavoriteCommand { get; private set; } = null!; + private bool CanEditPresentation => CanEdit && SelectedInstance is not null && Service is IInstancePresentationService; + private void InitializePresentation() + { + _presentationIcon = InstanceIcons[0]; + SavePresentationCommand = AsyncCommand(SavePresentationAsync, () => CanEditPresentation && SelectedInstance?.Id == _presentationInstanceId); + EditDescriptionCommand = Command(() => IsDescriptionEditorOpen = true, () => CanEditPresentation); + CancelDescriptionCommand = Command(() => { IsDescriptionEditorOpen = false; _presentationDirty = false; RefreshPresentation(); }); + ToggleFavoriteCommand = AsyncCommand(async () => { _presentationFavorite = !_presentationFavorite; PresentationChanged(); await SavePresentationAsync(); }, () => CanEditPresentation); + } + private void PresentationChanged() + { + _presentationDirty = true; + OnPropertyChanged(nameof(PresentationSummary)); OnPropertyChanged(nameof(FavoriteCaption)); OnPropertyChanged(nameof(InstanceIconKind)); + } + private void RefreshPresentation() + { + if (SelectedInstance?.Id != _presentationInstanceId || !_presentationDirty) + { + _presentationRefreshing = true; + try + { + if (SelectedInstance?.Id != _presentationInstanceId) IsDescriptionEditorOpen = false; + _presentationInstanceId = SelectedInstance?.Id; + var value = SelectedInstance?.Presentation ?? new(); + PresentationIcon = InstanceIcons.FirstOrDefault(i => i.Id == value.Icon) ?? InstanceIcons[0]; + var category = value.Category == "auto" ? "自动" : value.Category; + if (!InstanceCategories.Contains(category)) InstanceCategories.Add(category); + PresentationCategory = category; PresentationDescription = value.Description; _presentationFavorite = value.Favorite; _presentationDirty = false; + } + finally { _presentationRefreshing = false; } + } + foreach (var name in new[] { nameof(PresentationSummary), nameof(FavoriteCaption), nameof(LaunchCountLabel), nameof(InstanceIconKind) }) OnPropertyChanged(name); + } + private async Task SavePresentationAsync() + { + var target = SelectedInstance!.Id; + var edit = new InstancePresentationEdit(PresentationIcon.Id, PresentationCategory == "自动" ? "auto" : PresentationCategory.Trim(), PresentationDescription, _presentationFavorite); + if (await Owner.RunAsync("保存实例个性化", ct => ((IInstancePresentationService)Service).UpdateInstancePresentationAsync(target, edit, ct)) && SelectedInstance?.Id == target) + { + _presentationDirty = false; IsDescriptionEditorOpen = false; RefreshPresentation(); FilterInstances(); Feedback = "实例个性化已保存。"; + } + } + private static string DisplayGameVersion(GameInstance instance) + { + try { return InstanceIdentity.GameVersion(instance); } + catch (InvalidDataException) { return instance.VersionId; } + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Relations.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Relations.cs new file mode 100644 index 00000000..1bd43f27 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Relations.cs @@ -0,0 +1,123 @@ +using Avalonia; +using Avalonia.Threading; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; +using SHOU.Launcher.Desktop.Localization; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class InstancesPageViewModel +{ + private InstanceModRelations? modRelations; + private CancellationTokenSource? relationCancellation; + private readonly List relationReads = []; + private int relationGeneration; + private bool relationsBusy, relationIssuesOnly; + private string relationSearch = "", relationStatus = ""; + private ModRelationHostViewModel? selectedRelationHost; + private IReadOnlyList relationHosts = []; + public bool IsRelationsSection => !IsSelection && SelectedSection?.Key == "relations"; + public bool IsModRelationsBusy { get => relationsBusy; private set { SetProperty(ref relationsBusy, value); RefreshModRelationsCommand?.NotifyCanExecuteChanged(); CancelModRelationsCommand?.NotifyCanExecuteChanged(); } } + public string ModRelationSearch { get => relationSearch; set { if (SetProperty(ref relationSearch, value)) FilterModRelations(); } } + public bool ModRelationIssuesOnly { get => relationIssuesOnly; set { if (SetProperty(ref relationIssuesOnly, value)) FilterModRelations(); } } + public string ModRelationStatus { get => relationStatus; private set => SetProperty(ref relationStatus, value); } + public string ModRelationSummary => modRelations is null ? "" : UiLocalization.Instance.Format("{0} 个文件 · {1} 个声明节点 · {2} 项依赖", modRelations.Hosts.Count, modRelations.Hosts.Sum(h => ModRelations.Flatten(h.Declaration).Count()), modRelations.Dependencies.Count); + public IReadOnlyList FilteredModRelationHosts => relationHosts.Where(h => (!ModRelationIssuesOnly || h.HasIssues) && (ModRelationSearch.Trim().Length == 0 || h.Search.Contains(ModRelationSearch.Trim(), StringComparison.OrdinalIgnoreCase))).ToArray(); + public bool ModRelationsEmpty => !IsModRelationsBusy && FilteredModRelationHosts.Count == 0; + public ModRelationHostViewModel? SelectedModRelationHost { get => selectedRelationHost; set { SetProperty(ref selectedRelationHost, value); OnPropertyChanged(nameof(HasSelectedModRelationHost)); } } + public bool HasSelectedModRelationHost => SelectedModRelationHost is not null; + public AsyncRelayCommand RefreshModRelationsCommand { get; private set; } = null!; + public RelayCommand CancelModRelationsCommand { get; private set; } = null!; + public RelayCommand BackToModsCommand { get; private set; } = null!; + private void InitializeModRelations() + { + RefreshModRelationsCommand = AsyncCommand(RefreshModRelationsAsync, () => IsRelationsSection && SelectedInstance is not null && !IsModRelationsBusy && Service is IInstanceModRelationsService); + CancelModRelationsCommand = Command(() => { StopModRelations(); ModRelationStatus = UiLocalization.Instance.Text("读取已取消,可重新读取。"); }, () => IsModRelationsBusy); + BackToModsCommand = Command(() => SelectedSection = Sections.Single(s => s.Key == "mods")); + } + private void FilterModRelations() + { + var filtered = FilteredModRelationHosts; + var selection = filtered.FirstOrDefault(h => h.File == selectedRelationHost?.File) ?? filtered.FirstOrDefault(); + // Populate the ComboBox before selecting: a selection published against its old items is discarded. + OnPropertyChanged(nameof(FilteredModRelationHosts)); + SelectedModRelationHost = selection; + OnPropertyChanged(nameof(SelectedModRelationHost)); + OnPropertyChanged(nameof(ModRelationsEmpty)); OnPropertyChanged(nameof(ModRelationSummary)); + } + private void StopModRelations() + { + ++relationGeneration; relationCancellation?.Cancel(); relationCancellation = null; IsModRelationsBusy = false; + } + private void ClearModRelations() + { + StopModRelations(); modRelations = null; relationHosts = []; SelectedModRelationHost = null; ModRelationStatus = ""; FilterModRelations(); + } + private void ScheduleModRelations() + { + if (!IsRelationsSection || _workspaceDisposed) return; + Dispatcher.UIThread.Post(() => + { + if (_workspaceDisposed || !IsRelationsSection || !ReferenceEquals(Owner.SelectedPage, this) || IsModRelationsBusy) return; + if (Service is not IInstanceModRelationsService) { ModRelationStatus = UiLocalization.Instance.Text("当前服务不支持读取模组关系。"); return; } + relationReads.RemoveAll(t => t.IsCompleted); relationReads.Add(RefreshModRelationsCommand.ExecuteAsync(null)); + }, DispatcherPriority.Background); + } + private async Task RefreshModRelationsAsync() + { + if (SelectedInstance is not { } instance || Service is not IInstanceModRelationsService service || !IsRelationsSection) return; + StopModRelations(); var generation = relationGeneration; var source = new CancellationTokenSource(); relationCancellation = source; + bool Current() => !_workspaceDisposed && generation == relationGeneration && IsRelationsSection && SelectedInstance?.Id == instance.Id && SelectedInstance.GameDirectory == instance.GameDirectory && ReferenceEquals(Owner.SelectedPage, this); + IsModRelationsBusy = true; ModRelationStatus = UiLocalization.Instance.Text("正在读取模组与内嵌声明…"); + try + { + var result = await service.ReadInstanceModRelationsAsync(instance.Id, source.Token); + if (!Current() || source.IsCancellationRequested) return; + modRelations = result; relationHosts = result.Hosts.Select(h => new ModRelationHostViewModel(h, result.Dependencies.Where(d => d.HostPath == h.RelativePath).ToArray())).ToArray(); + ModRelationStatus = UiLocalization.Instance.Text(result.Notices.Count > 0 ? "部分声明未能读取,请查看文件详情。" : "声明读取完成。"); FilterModRelations(); + } + catch (OperationCanceledException) { if (Current()) ModRelationStatus = UiLocalization.Instance.Text("读取已取消,可重新读取。"); } + catch (Exception ex) { if (Current()) ModRelationStatus = UiLocalization.Instance.Text("读取失败:") + UiPrivacy.Redact(ex.Message); } + finally { if (Current()) { IsModRelationsBusy = false; OnPropertyChanged(nameof(ModRelationsEmpty)); } if (ReferenceEquals(relationCancellation, source)) relationCancellation = null; source.Dispose(); } + } +} + +public sealed class ModRelationHostViewModel +{ + public ModRelationHostViewModel(ModRelationHost host, IReadOnlyList dependencies) + { + Name = host.Declaration.Name; File = host.RelativePath; Enabled = host.Enabled; + Nodes = Flatten(host.Declaration, 0).ToArray(); Dependencies = dependencies.Select(d => new ModRelationDependencyViewModel(d)).ToArray(); + HasIssues = Nodes.Any(n => n.Notices.Length > 0) || dependencies.Any(d => d.OwnerEnabled && !d.Dependency.Optional && d.Presence is ModDeclarationPresence.Disabled or ModDeclarationPresence.NotFound or ModDeclarationPresence.Unverified); + Search = string.Join("\n", Nodes.Select(n => n.Title + " " + n.Path + " " + n.Ids).Concat(Dependencies.Select(d => d.Description + " " + d.Providers))); + } + public string Name { get; } + public string File { get; } + public bool Enabled { get; } + public string State => UiLocalization.Instance.Text(Enabled ? "已启用" : "已禁用"); + public bool HasIssues { get; } + public string Search { get; } + public IReadOnlyList Nodes { get; } + public IReadOnlyList Dependencies { get; } + public bool HasDependencies => Dependencies.Count > 0; + public override string ToString() => Name; + private static IEnumerable Flatten(ModDeclaration node, int depth) + { yield return new(node, depth); foreach (var child in node.Children) foreach (var row in Flatten(child, depth + 1)) yield return row; } +} +public sealed class ModRelationNodeViewModel(ModDeclaration node, int depth) +{ + public Thickness Indent => new(depth * 12, 0, 0, 0); + public string Title => node.Name + (node.Version is { } v ? " · " + v : ""); + public string Ids => string.Join(", ", node.Ids); + public string Path => node.Path; + public string Notices => string.Join("\n", node.Notices.Select(UiLocalization.Instance.Text)); + public bool HasNotices => node.Notices.Count > 0; +} +public sealed class ModRelationDependencyViewModel(ModDependencyRelation relation) +{ + public string Description => relation.OwnerName + " → " + relation.Dependency.Id + (relation.Dependency.Requirement is { } r ? " " + r : "") + (relation.Dependency.Optional ? " · " + UiLocalization.Instance.Text("可选") : ""); + public string Presence => UiLocalization.Instance.Text(relation.Presence switch { ModDeclarationPresence.Independent => "找到独立声明", ModDeclarationPresence.Embedded => "找到内嵌声明", ModDeclarationPresence.Disabled => "仅在已禁用文件中找到", ModDeclarationPresence.NotFound => "未找到声明", _ => "读取不完整,尚未核实" }); + public string Providers => string.Join("\n", relation.Providers); + public bool HasProviders => relation.Providers.Count > 0; +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ResourceManagement.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ResourceManagement.cs new file mode 100644 index 00000000..d4327629 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ResourceManagement.cs @@ -0,0 +1,60 @@ +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class InstancesPageViewModel +{ + private InstanceContentRowViewModel? detailRow; + private bool IsResourceTrashSection => IsContentList && SelectedSection.Key is "resourcepacks" or "shaders" or "schematics"; + public bool CanReadContentTrash => SelectedInstance is not null && + (IsModsSection && Service is IInstanceModManagementService || IsResourceTrashSection && Service is IInstanceContentTrashService); + public bool CanTrashContent => CanTrashMods || !_workspaceDisposed && ReferenceEquals(Owner.SelectedPage, this) && CanEdit && !IsSelectedInstanceRunning && IsResourceTrashSection && Service is IInstanceContentTrashService; + public string ContentTrashTitle => Localization.UiLocalization.Instance.Text(IsModsSection ? "模组回收站" : "资源回收站"); + public bool CanOpenContentProject => CanEdit && detailRow is { Project: not null } row && CurrentContentRow(row) && Owner.Downloads.CanQuery; + public AsyncRelayCommand OpenContentProjectCommand { get; private set; } = null!; + public RelayCommand CloseContentTrashCommand { get; private set; } = null!; + private void ShowContentDetails(InstanceContentRowViewModel row) + { + if (!CurrentContentRow(row)) return; + detailRow = row; ModDetail = row.Detail; OnPropertyChanged(nameof(CanOpenContentProject)); NotifyCommands(); + } + private async Task OpenContentProjectAsync() + { + if (!CanOpenContentProject || detailRow?.Project is not { } project || SelectedInstance is not { } instance) return; + var kind = SelectedSection.Key; detailRow = null; ModDetail = ""; + await Owner.Downloads.OpenInstalledResourceProjectAsync(instance, kind, project); + } + private async Task RestoreContentTrashAsync() + { + if (!CanTrashContent || SelectedInstance is not { } instance) return; + var kind = SelectedSection.Key; var trash = SelectedModTrash ?? ModTrash.FirstOrDefault(); + if (trash is null || !ModTrash.Any(t => t.Id == trash.Id)) return; + if (await Owner.RunAsync(kind == "mods" ? "恢复模组" : "恢复资源", async ct => + { + await StopModScanAsync(); + if (kind == "mods") await ((IInstanceModManagementService)Service).RestoreInstanceModsAsync(instance.Id, trash.Id, ct); + else await ((IInstanceContentTrashService)Service).RestoreInstanceContentAsync(instance.Id, kind, trash.Id, ct); + }) && SelectedInstance?.Id == instance.Id && SelectedInstance.GameDirectory == instance.GameDirectory && SelectedSection.Key == kind && ReferenceEquals(Owner.SelectedPage, this)) + { await RefreshContentCommand.ExecuteAsync(null); await ReadModTrashAsync(); } + } +} + +public sealed partial class DownloadsPageViewModel +{ + private (string Id, string Directory, string Kind)? instanceResourceReturn; + public async Task OpenInstalledResourceProjectAsync(GameInstance instance, string kind, ContentProject project) + { + if (!CanQuery || kind is not ("mods" or "resourcepacks" or "shaders")) return; + OpenInstanceResourceBrowser(instance, kind); + instanceResourceReturn = (instance.Id, instance.GameDirectory, kind); + Owner.SelectedPage = this; + await OpenProjectAsync(project, keepInstanceReturn: true); + } + private void ReturnToInstanceResource() + { + var target = instanceResourceReturn; instanceResourceReturn = null; + if (target is { } origin && Owner.Instances.SelectedInstance is { } current && current.Id == origin.Id && current.GameDirectory == origin.Directory && Owner.Instances.SelectedSection.Key == origin.Kind) + Owner.SelectedPage = Owner.Instances; + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ResourceRows.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ResourceRows.cs new file mode 100644 index 00000000..fdcf0231 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ResourceRows.cs @@ -0,0 +1,91 @@ +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class InstancesPageViewModel +{ + public Avalonia.Thickness ResourceListBottomMargin => HasModSelection ? new(0, 0, 0, 84) : default; + public bool IsResourceBrowserSection => IsContentList && SelectedSection.Key is "mods" or "resourcepacks" or "shaders"; + public int ResourceToolbarColumns => IsModsSection ? 6 : IsResourceBrowserSection ? 5 : 4; + public bool HasSelectedMods => IsModsSection && HasModSelection; + public bool IsResourceUpdateSection => IsResourceBrowserSection && !IsModsSection; + public bool CanUpdateContent => !_workspaceDisposed && ReferenceEquals(Owner.SelectedPage, this) && CanEdit && !IsSelectedInstanceRunning && !IsModScanBusy && + (IsModsSection && Service is IInstanceModUpdateService || IsResourceUpdateSection && Service is IInstanceResourceUpdateService); + public string CheckContentUpdatesCaption => Localization.UiLocalization.Instance.Text(IsModsSection ? "检查模组更新" : "检查资源更新"); + public bool CanTrashMods => CanManageMods && Service is IInstanceModManagementService; + private Task RequestContentRowUpdateAsync(InstanceContentRowViewModel row) + => CurrentContentRow(row) ? RequestContentUpdatesAsync(row.Update is { } u ? [u] : []) : Task.CompletedTask; + private async Task RequestContentUpdatesAsync(IReadOnlyList updates) + { + if (!CanUpdateContent) return; + var current = Rows(); + var valid = updates.Where(u => u.InstanceId == SelectedInstance?.Id && ModUpdates.Any(known => known.Token == u.Token) && current.Any(r => r.Update?.Token == u.Token)).ToArray(); + if (!await PrepareManualUpdatesAsync(valid)) return; + if (IsModsSection) { RequestModUpdate(valid); return; } + if (valid.Length == 0 || SelectedInstance is not { } instance || Service is not IInstanceResourceUpdateService service) return; + var section = SelectedSection.Key; var completed = 0; var failures = new List(); var notices = new HashSet(); + await Owner.RunAsync("更新资源并备份", async ct => + { + await StopModScanAsync(); + foreach (var update in valid) + { + ct.ThrowIfCancellationRequested(); + if (SelectedInstance?.Id != instance.Id || SelectedSection.Key != section) break; + try { var result = await service.ApplyInstanceResourceUpdateAsync(update.Token, ct); completed++; foreach (var notice in result.Notices ?? []) notices.Add(Localization.UiLocalization.Instance.Text(notice)); } + catch (OperationCanceledException) { throw; } + catch (Exception ex) when (ex is IOException or InvalidDataException or InvalidOperationException or HttpRequestException or AggregateException) + { failures.Add(update.Name + ":" + UiPrivacy.Redact(ex.Message)); } + } + }); + Feedback = Localization.UiLocalization.Instance.Format("已更新 {0}/{1} 项资源,原文件已备份。", completed, valid.Length) + (failures.Count > 0 ? "\n" + string.Join("\n", failures) : "") + (notices.Count > 0 ? "\n" + string.Join("\n", notices) : ""); + if (SelectedInstance?.Id == instance.Id && SelectedSection.Key == section) await RefreshContentCommand.ExecuteAsync(null); + } + private bool CurrentContentRow(InstanceContentRowViewModel row) => !_workspaceDisposed && ReferenceEquals(Owner.SelectedPage, this) && IsContentList && SelectedInstance is not null && SelectedSection.Key == row.Entry.Kind && contentRows.TryGetValue(row.Entry.RelativePath, out var current) && ReferenceEquals(current, row); + public void ToggleContentSelection(InstanceContentRowViewModel row) + { if (CurrentContentRow(row)) row.Selected = !row.Selected; } + private Task RevealContentRowAsync(InstanceContentRowViewModel row) + => CurrentContentRow(row) ? Owner.RunControlAsync("显示资源文件", ct => row.IsDirectory ? Owner.ExternalLauncher.OpenDirectoryAsync(row.Entry.FullPath, ct) : Owner.ExternalLauncher.RevealFileAsync(row.Entry.FullPath, ct)) : Task.CompletedTask; + private async Task ToggleContentRowAsync(InstanceContentRowViewModel row) + { + if (!CanManageMods || !CurrentContentRow(row) || Service is not IInstanceWorkspaceService service || SelectedInstance is not { } instance) return; + var entry = row.Entry; + if (await Owner.RunAsync(entry.Enabled ? "禁用模组" : "启用模组", async ct => + { + await StopModScanAsync(); + if (SelectedInstance?.Id != instance.Id || !CurrentContentRow(row)) return; + await service.SetInstanceModEnabledAsync(instance.Id, entry.RelativePath, !entry.Enabled, ct); + }) && SelectedInstance?.Id == instance.Id && IsModsSection) await RefreshContentCommand.ExecuteAsync(null); + } + private void RequestModTrash(IReadOnlyList paths) + { + if (paths.Count == 0) return; + pendingModUpdates = []; pendingModPaths = paths.ToArray(); + ModActionSummary = Localization.UiLocalization.Instance.Text(IsModsSection ? "将所选模组移到实例回收站?" : "将所选资源移到实例回收站?") + "\n" + string.Join("\n", pendingModPaths); + OnPropertyChanged(nameof(ModActionCaption)); NotifyModActions(); + } + private async Task ReadResourceMetadataAsync() + { + var instance = SelectedInstance!; var kind = SelectedSection.Key; StopModScan(); var generation = ++modCheckGeneration; + var source = new CancellationTokenSource(); modScanCancellation = source; IsModScanBusy = true; + bool Current() => !_workspaceDisposed && generation == modCheckGeneration && SelectedInstance?.Id == instance.Id && SelectedInstance.GameDirectory == instance.GameDirectory && SelectedSection.Key == kind && ReferenceEquals(Owner.SelectedPage, this); + ModUpdateStatus = Localization.UiLocalization.Instance.Text("正在核对资源展示信息,本机列表可继续使用。"); + try + { + var result = await ((IInstanceContentMetadataService)Service).ReadInstanceContentMetadataAsync(instance.Id, kind, source.Token); + if (!Current()) return; + foreach (var online in result.Info) if (contentRows.TryGetValue(online.RelativePath, out var row)) + { row.Project = online.Project; row.Entry = row.Entry with { ModVersion = online.Version }; } + NotifyContentFilter(); ModUpdateStatus = Localization.UiLocalization.Instance.Format("已核实 {0} 项资源展示信息;{1} 项保留本机信息。", result.Info.Count, result.Notices.Count); + if (Service is ILauncherCatalogService icons) foreach (var row in Rows().Where(r => !r.Entry.HasIcon && r.Project?.IconUrl is not null)) + { + if (!Current()) break; + try { var bytes = await icons.GetContentIconAsync(row.Project!.IconUrl!, source.Token); if (Current()) row.Entry = row.Entry with { IconPng = bytes }; } + catch (OperationCanceledException) { throw; } + catch (Exception ex) when (ex is IOException or HttpRequestException or InvalidOperationException or AggregateException) { } + } + } + catch (OperationCanceledException) { } + catch (Exception ex) { if (Current()) ModUpdateStatus = Localization.UiLocalization.Instance.Text("资源展示信息暂不可用,本机列表保留。") + " " + UiPrivacy.Redact(ex.Message); } + finally { if (Current()) IsModScanBusy = false; if (ReferenceEquals(modScanCancellation, source)) modScanCancellation = null; source.Dispose(); } + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Screenshots.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Screenshots.cs new file mode 100644 index 00000000..938c4e7e --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Screenshots.cs @@ -0,0 +1,152 @@ +using System.Collections.ObjectModel; +using Avalonia.Media.Imaging; +using Avalonia.Input; +using Avalonia.Input.Platform; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed class InstanceScreenshotPreview(string instanceId, InstanceContentEntry file, Bitmap? preview, AsyncRelayCommand reveal, AsyncRelayCommand remove, AsyncRelayCommand open) : IDisposable +{ + public string InstanceId => instanceId; + public string RelativePath => file.RelativePath; + public string Name => file.Name; + public Bitmap? Preview { get; } = preview; + public bool HasPreview => Preview is not null; + public AsyncRelayCommand RevealCommand { get; } = reveal; + public AsyncRelayCommand RemoveCommand { get; } = remove; + public AsyncRelayCommand OpenCommand { get; } = open; + public void Dispose() => Preview?.Dispose(); +} + +public sealed partial class InstancesPageViewModel : IDisposable +{ + private int _screenshotGeneration; + private long _screenshotCopyTicket; + private readonly SemaphoreSlim _screenshotClipboardGate = new(1, 1); + private string? _trashInstanceId; + private IReadOnlyList _screenshotTrash = []; + public AsyncRelayCommand RestoreScreenshotCommand { get; private set; } = null!; + public ObservableCollection ScreenshotPreviews { get; } = []; + public bool IsScreenshots => IsFileSection && SelectedSection.Key == "screenshots"; + public bool IsContentList => IsFileSection && !IsScreenshots; + private IReadOnlyList screenshotFiles = []; + private CancellationTokenSource? screenshotCancellation; + private bool loadingScreenshots; + public bool HasMoreScreenshots => ScreenshotPreviews.Count < screenshotFiles.Count; + public bool HasTruncatedScreenshots => HasMoreScreenshots; + public bool IsLoadingScreenshots => loadingScreenshots; + public AsyncRelayCommand LoadMoreScreenshotsCommand { get; private set; } = null!; + public bool IsModsSection => IsFileSection && SelectedSection.Key == "mods"; + public string OpenContentFolderCaption => "打开" + SectionTitle + "文件夹"; + public string ScreenshotSummary => Localization.UiLocalization.Instance.Format("已显示 {0}/{1} 张截图", ScreenshotPreviews.Count, screenshotFiles.Count); + + private void ClearScreenshotPreviews() + { + _screenshotGeneration++; screenshotCancellation?.Cancel(); screenshotCancellation?.Dispose(); screenshotCancellation = null; screenshotFiles = []; loadingScreenshots = false; + Interlocked.Increment(ref _screenshotCopyTicket); + foreach (var item in ScreenshotPreviews) item.Dispose(); + ScreenshotPreviews.Clear(); NotifyScreenshotPaging(); + } + private void NotifyScreenshotPaging() + { + foreach (var name in new[] { nameof(ScreenshotSummary), nameof(HasMoreScreenshots), nameof(HasTruncatedScreenshots), nameof(IsLoadingScreenshots) }) OnPropertyChanged(name); + LoadMoreScreenshotsCommand?.NotifyCanExecuteChanged(); + } + private async Task LoadScreenshotPreviewsAsync(string instanceId, IReadOnlyList files, CancellationToken ct) + { + ClearScreenshotPreviews(); var generation = _screenshotGeneration; + var trashEntries = Service is IScreenshotTrashService trash ? await trash.ListScreenshotTrashAsync(instanceId, ct) : []; + if (generation != _screenshotGeneration || SelectedInstance?.Id != instanceId || !IsScreenshots) return; + _screenshotTrash = trashEntries; _trashInstanceId = instanceId; RestoreScreenshotCommand.NotifyCanExecuteChanged(); + screenshotFiles = files.Where(f => !f.Directory).OrderByDescending(f => f.Created ?? f.Modified).ThenBy(f => f.Name, StringComparer.OrdinalIgnoreCase).ToArray(); + screenshotCancellation = new(); using var linked = CancellationTokenSource.CreateLinkedTokenSource(ct, screenshotCancellation.Token); + await AppendScreenshotsAsync(linked.Token); + } + private async Task AppendScreenshotsAsync(CancellationToken ct) + { + if (loadingScreenshots || SelectedInstance is not { } instance || !IsScreenshots) return; + var generation = _screenshotGeneration; var batch = screenshotFiles.Skip(ScreenshotPreviews.Count).Take(20).ToArray(); + bool Current() => !_workspaceDisposed && generation == _screenshotGeneration && SelectedInstance?.Id == instance.Id && SelectedInstance.GameDirectory == instance.GameDirectory && IsScreenshots && ReferenceEquals(Owner.SelectedPage, this); + loadingScreenshots = true; NotifyScreenshotPaging(); + try + { + foreach (var file in batch) + { + ct.ThrowIfCancellationRequested(); if (!Current()) return; + var preview = await Task.Run(() => ScreenshotImages.Read(file, true, ct), ct); + if (ct.IsCancellationRequested || !Current()) { preview?.Dispose(); ct.ThrowIfCancellationRequested(); return; } + async Task ReadFile(Func action) + { + if (!Current()) return; + await Owner.RunControlAsync("打开截图", async token => + { + var files = await ((IInstanceWorkspaceService)Service).ListInstanceContentAsync(instance.Id, "screenshots", token); + if (!Current()) return; + var found = files.SingleOrDefault(f => f.RelativePath == file.RelativePath) ?? throw new FileNotFoundException("截图已移动,请刷新列表。"); + await action(found, token); + }); + } + ScreenshotPreviews.Add(new(instance.Id, file, preview, + new AsyncRelayCommand(() => ReadFile((found, token) => Owner.ExternalLauncher.RevealFileAsync(found.FullPath, token))), + new AsyncRelayCommand(async () => + { + if (!Current() || Service is not IScreenshotTrashService trashService) return; + if (await Owner.RunAsync("移入截图回收站", token => trashService.MoveScreenshotToTrashAsync(instance.Id, file.RelativePath, token)) && Current()) + { Feedback = "截图已移入实例回收站,可恢复最近删除。"; await RefreshContentCommand.ExecuteAsync(null); } + }, () => CanEdit && Service is IScreenshotTrashService && Current()), + new AsyncRelayCommand(() => ReadFile((found, token) => ((ILocalFileLauncher)Owner.ExternalLauncher).OpenFileAsync(found.FullPath, token)), () => Current() && Owner.ExternalLauncher is ILocalFileLauncher))); + } + } + finally { if (generation == _screenshotGeneration) { loadingScreenshots = false; NotifyScreenshotPaging(); } } + } + private void InitializeScreenshotActions() + { + LoadMoreScreenshotsCommand = AsyncCommand(async () => + { try { if (screenshotCancellation is { } source) await AppendScreenshotsAsync(source.Token); } catch (OperationCanceledException) { } }, () => !_workspaceDisposed && IsScreenshots && HasMoreScreenshots && !loadingScreenshots && ReferenceEquals(Owner.SelectedPage, this)); + RestoreScreenshotCommand = AsyncCommand(async () => + { + var instanceId = _trashInstanceId!; var entry = _screenshotTrash[0]; + if (await Owner.RunAsync("恢复截图", ct => ((IScreenshotTrashService)Service).RestoreScreenshotAsync(instanceId, entry.Id, ct))) + { Feedback = "已恢复截图,原位置的同名文件不会被覆盖。"; await RefreshContentCommand.ExecuteAsync(null); } + }, () => CanEdit && IsScreenshots && SelectedInstance?.Id == _trashInstanceId && _screenshotTrash.Count > 0 && Service is IScreenshotTrashService); + } + public Task CopyScreenshotAsync(InstanceScreenshotPreview item, IClipboard clipboard) + { + var ticket = Interlocked.Increment(ref _screenshotCopyTicket); var generation = _screenshotGeneration; + bool Current() => !_workspaceDisposed && ticket == Interlocked.Read(ref _screenshotCopyTicket) && generation == _screenshotGeneration && SelectedInstance?.Id == item.InstanceId && IsScreenshots; + return Owner.RunControlAsync("复制截图", async ct => + { + if (!Current()) return; + var files = await ((IInstanceWorkspaceService)Service).ListInstanceContentAsync(item.InstanceId, "screenshots", ct); + if (!Current()) return; + var file = files.SingleOrDefault(f => f.RelativePath == item.RelativePath) ?? throw new FileNotFoundException("截图已移动,请刷新。"); + var bitmap = await Task.Run(() => DecodeScreenshot(file, false), ct) ?? throw new InvalidDataException("截图无法安全解码。"); + var transfer = new OwnedBitmapTransfer(bitmap); var transferred = false; + try + { + await _screenshotClipboardGate.WaitAsync(ct); + try + { + if (!Current()) return; + ct.ThrowIfCancellationRequested(); await clipboard.SetDataAsync(transfer); transferred = true; + if (Current()) Feedback = "图片已复制到剪贴板。"; + } + finally { _screenshotClipboardGate.Release(); } + } + finally { if (!transferred) transfer.Dispose(); } + }); + } + private sealed class OwnedBitmapTransfer : IAsyncDataTransfer, IDataTransfer + { + private readonly DataTransfer data = new(); private Bitmap? bitmap; + public OwnedBitmapTransfer(Bitmap image) { bitmap = image; data.Add(DataTransferItem.Create(DataFormat.Bitmap, image)); } + public IReadOnlyList Formats => data.Formats; + IReadOnlyList IAsyncDataTransfer.Items => ((IAsyncDataTransfer)data).Items; + IReadOnlyList IDataTransfer.Items => ((IDataTransfer)data).Items; + public void Dispose() => Interlocked.Exchange(ref bitmap, null)?.Dispose(); + } + private static Bitmap? DecodeScreenshot(InstanceContentEntry file, bool thumbnail = true) => ScreenshotImages.Read(file, thumbnail); + public void Dispose() { _workspaceDisposed = true; CancelExportBrowse(); CancelServerStatus(); foreach (var draft in _worldDrafts.Values) foreach (var row in draft.Servers) row.Dispose(); StopModScan(); StopModRelations(); _pendingContentRefresh = false; DisposeComponents(); ClearScreenshotPreviews(); } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ServerStatus.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ServerStatus.cs new file mode 100644 index 00000000..9e3d276a --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.ServerStatus.cs @@ -0,0 +1,81 @@ +using Avalonia.Media.Imaging; +using CommunityToolkit.Mvvm.ComponentModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed class InstanceServerDraftViewModel(Guid draftId, int? existingIndex, string name, string address) : ObservableObject, IDisposable +{ + private ClubServer? result; private Bitmap? icon; private bool querying; + public Guid DraftId => draftId; + public int? ExistingIndex => existingIndex; + public string Name => name; + public string Address => address; + public Bitmap? StatusIcon => icon; + public bool HasStatusIcon => icon is not null; + public string Motd => result?.Motd ?? ""; + public bool HasMotd => Motd.Length > 0; + public string StatusSummary => querying ? Localization.UiLocalization.Instance.Text("正在查询…") : result is null ? Localization.UiLocalization.Instance.Text("尚未查询") : + string.Join(" · ", new[] { Localization.UiLocalization.Instance.Text(result.Status), result.OnlinePlayers is { } online ? online + (result.MaximumPlayers is { } maximum ? " / " + maximum : "") : "", result.GameVersion ?? "", result.PingMilliseconds is { } ping ? $"Ping {ping} ms" : result.ResponseMilliseconds is { } elapsed ? Localization.UiLocalization.Instance.Format("响应 {0} ms", elapsed) : "" }.Where(x => x.Length > 0)); + internal void SetQuerying(bool value) { querying = value; OnPropertyChanged(nameof(StatusSummary)); } + internal void SetStatus(ClubServer value) + { + result = value; querying = false; icon?.Dispose(); icon = null; + if (value.IconPng is { Length: > 0 } bytes) try { using var stream = new MemoryStream(bytes, false); icon = Bitmap.DecodeToWidth(stream, 40); } catch (Exception ex) when (ex is ArgumentException or InvalidOperationException or IOException) { } + foreach (var property in new[] { nameof(StatusSummary), nameof(Motd), nameof(HasMotd), nameof(StatusIcon), nameof(HasStatusIcon) }) OnPropertyChanged(property); + } + public void Dispose() { icon?.Dispose(); icon = null; } +} + +public sealed partial class InstancesPageViewModel +{ + private CancellationTokenSource? serverStatusCancellation; + private int serverStatusGeneration; + private bool serverStatusBusy; + public bool IsServerStatusBusy => serverStatusBusy; + public AsyncRelayCommand RefreshInstanceServerStatusCommand { get; private set; } = null!; + public AsyncRelayCommand RefreshSingleServerStatusCommand { get; private set; } = null!; + public bool IsCurrentServerRow(InstanceServerDraftViewModel? row) => !_workspaceDisposed && IsInstanceServersPage && ReferenceEquals(Owner.SelectedPage, this) && row is not null && InstanceServerRows.Contains(row); + private void InitializeServerStatus() + { + RefreshInstanceServerStatusCommand = AsyncCommand(() => RefreshInstanceServerStatusAsync(), () => IsInstanceServersPage && !serverStatusBusy && Service is IToolboxService && Owner.CanReadRemote); + RefreshSingleServerStatusCommand = new(row => IsCurrentServerRow(row) ? RefreshInstanceServerStatusAsync(row) : Task.CompletedTask, row => IsCurrentServerRow(row) && !serverStatusBusy && Service is IToolboxService && Owner.CanReadRemote); + } + private void CancelServerStatus() + { + ++serverStatusGeneration; serverStatusCancellation?.Cancel(); serverStatusCancellation?.Dispose(); serverStatusCancellation = null; serverStatusBusy = false; + foreach (var draft in _worldDrafts.Values) foreach (var row in draft.Servers) row.SetQuerying(false); + OnPropertyChanged(nameof(IsServerStatusBusy)); RefreshInstanceServerStatusCommand?.NotifyCanExecuteChanged(); RefreshSingleServerStatusCommand?.NotifyCanExecuteChanged(); + } + private void ServerStatusNavigationChanged() + { if (!IsInstanceServersPage || !ReferenceEquals(Owner.SelectedPage, this)) CancelServerStatus(); } + private async Task RefreshInstanceServerStatusAsync(InstanceServerDraftViewModel? single = null) + { + if (_workspaceDisposed || !IsInstanceServersPage || !ReferenceEquals(Owner.SelectedPage, this) || SelectedInstance is not { } instance || Service is not IToolboxService service) return; + CancelServerStatus(); var generation = serverStatusGeneration; var source = new CancellationTokenSource(); serverStatusCancellation = source; var token = source.Token; var draft = _worldDraft; + var rows = single is null ? draft.Servers.ToArray() : draft.Servers.Contains(single) ? new[] { single } : []; + bool Current() => !_workspaceDisposed && generation == serverStatusGeneration && ReferenceEquals(draft, _worldDraft) && IsInstanceServersPage && ReferenceEquals(Owner.SelectedPage, this) && SelectedInstance?.Id == instance.Id && SelectedInstance.GameDirectory == instance.GameDirectory; + serverStatusBusy = true; OnPropertyChanged(nameof(IsServerStatusBusy)); RefreshInstanceServerStatusCommand?.NotifyCanExecuteChanged(); RefreshSingleServerStatusCommand?.NotifyCanExecuteChanged(); + using var concurrency = new SemaphoreSlim(4); + try + { + await Task.WhenAll(rows.Select(async row => + { + await concurrency.WaitAsync(token); + try + { + if (!Current() || !draft.Servers.Contains(row)) return; row.SetQuerying(true); + ClubServer status; + try { status = await service.QueryToolServerAsync(row.Address, token); } + catch (OperationCanceledException) { throw; } + catch (Exception ex) when (ex is IOException or ArgumentException or InvalidOperationException or HttpRequestException or NotSupportedException) { status = new("instance-query", row.Name, row.Address, "状态暂不可用"); } + if (Current() && draft.Servers.Contains(row)) row.SetStatus(status); + } + finally { concurrency.Release(); } + })); + } + catch (OperationCanceledException) { } + finally { if (Current()) CancelServerStatus(); if (ReferenceEquals(serverStatusCancellation, source)) serverStatusCancellation = null; source.Dispose(); } + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Workspace.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Workspace.cs new file mode 100644 index 00000000..8b910e67 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Workspace.cs @@ -0,0 +1,273 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using Avalonia.Threading; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record InstanceSectionChoice(string Key, string Title, string Icon) +{ + public string IconKind => Themes.ClubIcons.ForInstanceSection(Key); + public bool StartsResources => Key == "worlds"; +} +public sealed partial class InstancesPageViewModel +{ + private bool _isSelection = true; + private bool _workspaceReady; + private string _searchText = ""; + private InstanceSectionChoice _selectedSection = null!; + private string _editName = "", _instanceJava = "", _feedback = ""; + private decimal _instanceMemory = 2048; + private bool _useGlobalJava = true, _useGlobalMemory = true, _includeWorlds, _instanceDraftDirty; + private string? _draftInstanceId; + private InstanceContentEntry? _selectedContent; + private bool _pendingContentRefresh, _contentRefreshScheduled, _workspaceDisposed; + private bool _isRenameEditorOpen; + private string _renameDraft = ""; + private string? _renamingInstance; + public string GameVersionLabel => SelectedInstance is { } instance ? DisplayGameVersion(instance) : ""; + public bool HasModLoader => SelectedInstance is { Loader: not "vanilla" }; + public string LoaderLabel => SelectedInstance?.Loader == "fabric" ? "Fabric" : SelectedInstance?.Loader ?? ""; + public bool IsRenameEditorOpen { get => _isRenameEditorOpen; private set { if (SetProperty(ref _isRenameEditorOpen, value)) NotifyCommands(); } } + public string RenameDraft { get => _renameDraft; set => SetProperty(ref _renameDraft, value); } + public RelayCommand BeginRenameCommand { get; private set; } = null!; + public RelayCommand CancelRenameCommand { get; private set; } = null!; + public AsyncRelayCommand SaveRenameCommand { get; private set; } = null!; + public IReadOnlyList Sections { get; } = [new("overview", "概览", "◉"), new("settings", "设置", "⚙"), + new("modify", "修改", "↻"), new("export", "导出", "⇧"), new("worlds", "存档", "▣"), new("screenshots", "截图", "▧"), + new("mods", "模组", "◇"), new("resourcepacks", "资源包", "▤"), new("shaders", "光影包", "☼"), + new("schematics", "投影原理图", "▥"), new("servers", "服务器", "▱"), new("relations", "模组关系", "⌘")]; + public IReadOnlyList GameSections => Sections.Take(4).Where(s => Owner.IsFeatureVisible("instance-" + s.Key)).ToArray(); + public IReadOnlyList ResourceSections => Sections.Skip(4).Where(s => Owner.IsFeatureVisible("instance-" + s.Key)).ToArray(); + public ObservableCollection FilteredInstances { get; } = []; + public ObservableCollection ContentEntries { get; } = []; + public bool IsSelection { get => _isSelection; private set { if (SetProperty(ref _isSelection, value)) { if (value) IsRenameEditorOpen = false; NotifyWorkspace(); } } } + public string SearchText { get => _searchText; set { if (SetProperty(ref _searchText, value)) FilterInstances(); } } + public string InstanceCountSummary => $"全部实例({FilteredInstances.Count})"; + public string GameDirectorySummary => SelectedInstance?.Origin?.MinecraftRoot ?? Owner.Snapshot.Settings.GameRoot ?? Service.Paths.InstancesDirectory; + public string ContextTitle => IsSelection ? "实例选择" : "实例设置 · " + (SelectedInstance?.Name ?? "尚未选择实例"); + public InstanceSectionChoice SelectedSection + { + get => _selectedSection; + set + { + if (value is null || !SetProperty(ref _selectedSection, value)) return; + ResetContentDirectory(); + Feedback = ""; ContentSearchText = ""; ContentEntries.Clear(); SelectedContent = null; ClearScreenshotPreviews(); ClearModUpdates(); NotifyWorkspace(); + ActivateWorldWorkspace(value.Key); + _pendingContentRefresh = IsFileSection; + ScheduleContentRefresh(); + ScheduleComponentRefresh(); + ScheduleModRelations(); + ExportNavigationChanged(); + } + } + public bool IsOverview => !IsSelection && SelectedSection?.Key == "overview"; + public bool IsInstanceSettings => !IsSelection && SelectedSection?.Key == "settings"; + public bool IsModify => !IsSelection && SelectedSection?.Key == "modify"; + public bool IsExport => !IsSelection && SelectedSection?.Key == "export"; + public bool IsFileSection => !IsSelection && SelectedSection?.Key is "screenshots" or "mods" or "resourcepacks" or "shaders" or "schematics"; + public bool IsOtherSection => !IsSelection && !IsOverview && !IsInstanceSettings && !IsModify && !IsExport && !IsFileSection && !IsRelationsSection && SelectedSection?.Key is not ("worlds" or "servers"); + public bool ModsUnsupported => SelectedSection?.Key == "mods" && SelectedInstance is { } instance && !InstanceIdentity.SupportsModDirectory(instance.Loader); + public bool IsContentEmpty => IsContentList ? FilteredContentEntries.Count == 0 : ContentEntries.Count == 0; + public bool CanImportContent => IsFileSection && SelectedSection.Key != "worlds" && !ModsUnsupported && CanEdit && !IsSelectedInstanceRunning && Service is IInstanceWorkspaceService; + public string SectionTitle => SelectedSection?.Title ?? "实例"; + public string ContentEmptyTitle => IsContentSubdirectory && ContentEntries.Count == 0 ? Localization.UiLocalization.Instance.Text("当前文件夹为空") : ModsUnsupported ? "该实例不可使用模组" : ContentSearchText.Trim().Length > 0 && ContentEntries.Count > 0 ? "没有匹配搜索的资源" + : ContentEntries.Count > 0 && contentFilter != "全部" ? Localization.UiLocalization.Instance.Text(contentFilter == "可更新" ? "当前筛选下没有可更新的资源" : "当前筛选下没有资源") : "尚未发现" + SectionTitle; + public string CapabilityReason => SelectedSection?.Key switch + { + "servers" => "服务器列表的 NBT 编辑与单实例连接仍待移植,可直接在游戏内管理;原文件保持。", + "relations" => "只读展示独立与内嵌模组声明及依赖来源。", + "modify" => "可重新校验原版、Fabric、Quilt、Forge 与 NeoForge。切换加载器请创建独立实例,保留当前文件。", + _ when ModsUnsupported => "此实例尚未安装模组加载器,请先选择支持模组的实例。", + _ => "列表来自当前实例目录。可打开文件夹,或导入支持的本机文件。" + }; + public string EditName { get => _editName; set { if (SetProperty(ref _editName, value)) _instanceDraftDirty = true; } } + public string InstanceJavaExecutable { get => _instanceJava; set { if (SetProperty(ref _instanceJava, value)) _instanceDraftDirty = true; } } + public decimal InstanceMemoryMiB { get => _instanceMemory; set { if (SetProperty(ref _instanceMemory, value)) _instanceDraftDirty = true; } } + public bool UseGlobalJava { get => _useGlobalJava; set { if (SetProperty(ref _useGlobalJava, value)) _instanceDraftDirty = true; } } + public bool UseGlobalMemory { get => _useGlobalMemory; set { if (SetProperty(ref _useGlobalMemory, value)) _instanceDraftDirty = true; } } + public bool IncludeWorlds { get => _includeWorlds; set => SetProperty(ref _includeWorlds, value); } + public string Feedback { get => _feedback; private set { SetProperty(ref _feedback, value); OnPropertyChanged(nameof(HasFeedback)); } } + public bool HasFeedback => Feedback.Length > 0; + public InstanceContentEntry? SelectedContent { get => _selectedContent; set { if (SetProperty(ref _selectedContent, value)) NotifyWorkspace(); } } + public RelayCommand ShowInstanceSettingsCommand { get; private set; } = null!; + public RelayCommand OpenVisibleInstanceCommand { get; private set; } = null!; + public RelayCommand OpenSelectedVisibleInstanceCommand { get; private set; } = null!; + public RelayCommand ShowSelectionCommand { get; private set; } = null!; + public RelayCommand NavigateBackCommand { get; private set; } = null!; + public AsyncRelayCommand SaveInstanceSettingsCommand { get; private set; } = null!; + public AsyncRelayCommand RefreshContentCommand { get; private set; } = null!; + public AsyncRelayCommand OpenInstanceDirectoryCommand { get; private set; } = null!; + public AsyncRelayCommand OpenContentDirectoryCommand { get; private set; } = null!; + public AsyncRelayCommand ToggleModCommand { get; private set; } = null!; + public AsyncRelayCommand ExportInstanceCommand { get; private set; } = null!; + private void InitializeWorkspace() + { + _selectedSection = Sections[0]; + ShowInstanceSettingsCommand = Command(() => { IsSelection = false; SelectedSection = Sections[0]; Owner.SelectedPage = this; RefreshWorkspaceSnapshot(Owner.Snapshot); }, () => SelectedInstance is not null); + OpenVisibleInstanceCommand = new(instance => + { + if (instance is not null && FilteredInstances.Contains(instance) && SelectedInstance?.Id == instance.Id) ShowInstanceSettingsCommand.Execute(null); + }, instance => instance is not null && FilteredInstances.Contains(instance) && SelectedInstance?.Id == instance.Id); + OpenSelectedVisibleInstanceCommand = Command(() => OpenVisibleInstanceCommand.Execute(SelectedInstance), () => OpenVisibleInstanceCommand.CanExecute(SelectedInstance)); + BeginRenameCommand = Command(() => { _renamingInstance = SelectedInstance!.Id; RenameDraft = SelectedInstance.Name; IsRenameEditorOpen = true; }, () => CanEdit && !IsSelectedInstanceRunning && SelectedInstance is not null && Service is IInstanceWorkspaceService); + CancelRenameCommand = Command(() => IsRenameEditorOpen = false); + SaveRenameCommand = AsyncCommand(async () => + { + var instance = SelectedInstance!; + if (await Owner.RunAsync("修改实例名", ct => ((IInstanceWorkspaceService)Service).UpdateInstanceAsync(instance.Id, new(RenameDraft.Trim(), instance.JavaExecutable, instance.MemoryMiB, instance.LaunchOptions), ct))) + { IsRenameEditorOpen = false; Feedback = "实例名称已保存。"; } + }, () => IsRenameEditorOpen && CanEdit && SelectedInstance?.Id == _renamingInstance && Service is IInstanceWorkspaceService); + ShowSelectionCommand = Command(() => { IsSelection = true; Owner.SelectedPage = this; }); + NavigateBackCommand = Command(() => { if (IsWorldDetails) BackFromWorldCommand.Execute(null); else if (IsSelection) Owner.SelectedPage = Owner.Home; else IsSelection = true; }); + SaveInstanceSettingsCommand = AsyncCommand(SaveInstanceEditAsync, () => CanEdit && !IsSelectedInstanceRunning && SelectedInstance is not null && Service is IInstanceWorkspaceService); + RefreshContentCommand = AsyncCommand(RefreshContentAsync, () => SelectedInstance is not null && IsFileSection && Owner.CanReadRemote && Service is IInstanceWorkspaceService); + RefreshContentCommand.PropertyChanged += (_, e) => { if (e.PropertyName == nameof(RefreshContentCommand.IsRunning)) { ScheduleContentRefresh(); NotifyContentDirectory(); } }; + OpenInstanceDirectoryCommand = AsyncCommand(() => OpenInstanceFolderAsync(null), () => SelectedInstance is not null); + OpenContentDirectoryCommand = AsyncCommand(OpenContentDirectoryAsync, () => SelectedInstance is not null && IsFileSection); + ToggleModCommand = AsyncCommand(ToggleModAsync, () => CanEdit && !IsSelectedInstanceRunning && SelectedSection.Key == "mods" && SelectedContent is not null && Service is IInstanceWorkspaceService); + ExportInstanceCommand = AsyncCommand(ExportAsync, () => CanEdit && !IsSelectedInstanceRunning && SelectedInstance is not null && Service is IInstanceWorkspaceService); + _workspaceReady = true; + InitializeModManagement(); + InitializeContentBrowser(); + InitializeModRelations(); + InitializeExistingInstances(); + } + private void ScheduleContentRefresh() + { + if (!_workspaceReady || _workspaceDisposed || !_pendingContentRefresh || _contentRefreshScheduled) return; + _contentRefreshScheduled = true; + Dispatcher.UIThread.Post(() => + { + _contentRefreshScheduled = false; + if (_workspaceDisposed) return; + if (!IsFileSection || SelectedInstance is null) { _pendingContentRefresh = false; return; } + if (RefreshContentCommand.IsRunning || !RefreshContentCommand.CanExecute(null)) return; + _pendingContentRefresh = false; + _ = RefreshContentCommand.ExecuteAsync(null); + }, DispatcherPriority.Background); + } + private void RefreshWorkspaceSnapshot(LauncherSnapshot snapshot) + { + if (!_workspaceReady) return; + RefreshPresentation(); + RefreshPackExport(); + ExportNavigationChanged(); + FilterInstances(); + if (SelectedInstance is { } selected && (_draftInstanceId != selected.Id || !_instanceDraftDirty)) + { + _draftInstanceId = selected.Id; + EditName = selected.Name; InstanceJavaExecutable = selected.JavaExecutable ?? ""; + InstanceMemoryMiB = selected.MemoryMiB ?? snapshot.Settings.MemoryMiB; + UseGlobalJava = selected.JavaExecutable is null; UseGlobalMemory = selected.MemoryMiB is null; + LoadInstanceLaunchOptions(selected, snapshot.Settings); + _instanceDraftDirty = false; + } + NotifyWorkspace(); + ScheduleComponentRefresh(); + } + private void FilterInstances() + { + var query = SearchText.Trim(); + var rows = Instances.Where(i => (SelectedGameFolder?.Path is not { } folder || SameFolder(FolderOf(i), folder)) && (InstanceCategoryFilter == "隐藏" || CategoryOf(i) != "隐藏") && (InstanceCategoryFilter == "全部分类" || CategoryOf(i) == InstanceCategoryFilter) && (!FavoritesOnly || i.Presentation?.Favorite == true) && (query.Length == 0 || (i.Name + " " + DisplayGameVersion(i) + " " + i.VersionId + " " + i.Loader + " " + i.Presentation?.Description + " " + i.Presentation?.Category).Contains(query, StringComparison.OrdinalIgnoreCase))).OrderByDescending(i => i.Presentation?.Favorite == true).ThenBy(i => i.Name, StringComparer.CurrentCultureIgnoreCase).ToArray(); + if (!FilteredInstances.SequenceEqual(rows)) + { + FilteredInstances.Clear(); foreach (var row in rows) FilteredInstances.Add(row); + OnPropertyChanged(nameof(SelectedInstance)); + } + OnPropertyChanged(nameof(InstanceCountSummary)); + OpenSelectedVisibleInstanceCommand?.NotifyCanExecuteChanged(); + } + private void NotifyWorkspace() + { + foreach (var name in new[] { nameof(ContextTitle), nameof(IsOverview), nameof(IsInstanceSettings), nameof(IsModify), nameof(IsExport), nameof(IsFileSection), nameof(IsOtherSection), nameof(IsRelationsSection), nameof(IsResourceBrowserSection), nameof(IsResourceUpdateSection), nameof(CheckContentUpdatesCaption), nameof(CanUpdateContent), nameof(CanTrashContent), nameof(CanReadContentTrash), nameof(ContentTrashTitle), nameof(CanOpenContentProject), nameof(ResourceToolbarColumns), nameof(HasSelectedMods), + nameof(SectionTitle), nameof(ContentEmptyTitle), nameof(CapabilityReason), nameof(ModsUnsupported), nameof(IsContentEmpty), nameof(CanImportContent), nameof(IsScreenshots), nameof(IsContentList), nameof(ScreenshotSummary), nameof(HasTruncatedScreenshots), nameof(IsModsSection), nameof(CanShowModUpdates), nameof(OpenContentFolderCaption), nameof(GameVersionLabel), nameof(HasModLoader), nameof(LoaderLabel), nameof(GameDirectorySummary) }) OnPropertyChanged(name); + if (_workspaceReady) NotifyCommands(); + } + private async Task SaveInstanceEditAsync() + { + if (DirectoryWillChange && !DirectoryChangeConfirmed) { Owner.ShowError("请确认切换游戏目录;原目录文件不会移动或合并。"); return; } + if (!UseGlobalLaunchOptions && InstanceInitialMemory && (InstanceInitialMemoryMiB != decimal.Truncate(InstanceInitialMemoryMiB) || InstanceInitialMemoryMiB is < 512 or > 32768)) { Owner.ShowError("初始内存须为 512–32768 MiB 的整数。"); return; } + if (!UseGlobalLaunchOptions && InstanceCustomWindow && (InstanceWindowWidth != decimal.Truncate(InstanceWindowWidth) || InstanceWindowHeight != decimal.Truncate(InstanceWindowHeight) || InstanceWindowWidth is < 320 or > 16384 || InstanceWindowHeight is < 320 or > 16384)) + { Owner.ShowError("窗口宽高须为 320–16384 的整数。"); return; } + if (!UseGlobalMemory && (decimal.Truncate(InstanceMemoryMiB) != InstanceMemoryMiB || InstanceMemoryMiB is < 512 or > 32768)) + { Owner.ShowError("实例内存须为512–32768 MiB的整数。"); return; } + var edit = new InstanceEdit(EditName.Trim(), UseGlobalJava ? null : InstanceJavaExecutable.Trim(), UseGlobalMemory ? null : (int)InstanceMemoryMiB, BuildInstanceLaunchOptions(), DirectoryMode, DirectoryChangeConfirmed); + if (await Owner.RunAsync("保存实例设置", ct => ((IInstanceWorkspaceService)Service).UpdateInstanceAsync(SelectedInstance!.Id, edit, ct))) + { _instanceDraftDirty = false; RefreshWorkspaceSnapshot(Service.Snapshot); Feedback = "实例设置已保存。"; } + } + private async Task RefreshContentAsync() + { + var selected = SelectedInstance!; var section = SelectedSection.Key; var directory = contentDirectory; var generation = contentDirectoryGeneration; + StopModScan(); contentRows.Clear(); + NotifyContentDirectory(); + await Owner.RunAsync("读取实例" + SectionTitle, async ct => + { + var rows = CanBrowseContentDirectories && Service is IInstanceContentBrowserService browser + ? await browser.BrowseInstanceContentAsync(selected.Id, section, directory, ct) + : await ((IInstanceWorkspaceService)Service).ListInstanceContentAsync(selected.Id, section, ct); + if (_workspaceDisposed || SelectedInstance?.Id != selected.Id || SelectedInstance.GameDirectory != selected.GameDirectory || SelectedSection.Key != section || generation != contentDirectoryGeneration) return; + refreshingContentRows = true; + try { ContentEntries.Clear(); foreach (var row in rows) ContentEntries.Add(row); } + finally { refreshingContentRows = false; } + SelectedContent = null; NotifyWorkspace(); + if (section == "screenshots") await LoadScreenshotPreviewsAsync(selected.Id, rows, ct); + MarkDuplicateMods(); NotifyContentFilter(); + }, true); + NotifyContentDirectory(); + if (!_workspaceDisposed && SelectedInstance?.Id == selected.Id && SelectedInstance.GameDirectory == selected.GameDirectory && SelectedSection.Key == section && generation == contentDirectoryGeneration) StartAutoModScan(); + } + public async Task ImportContentFileAsync(string path) + { + if (!CanImportContent) return; + await ImportDroppedContentAsync(SelectedInstance!, SelectedSection.Key, [path], contentDirectory); + } + public async Task ImportDroppedContentAsync(GameInstance expected, string kind, IReadOnlyList paths, string? expectedDirectory = null) + { + if (SelectedInstance != expected || !CanEdit || IsSelectedInstanceRunning || Service is not IInstanceWorkspaceService workspace) return; + var directory = expectedDirectory ?? (kind == SelectedSection.Key ? contentDirectory : ""); + if (kind == SelectedSection.Key && directory != contentDirectory) return; + var completed = 0; + var success = await Owner.RunAsync("导入实例文件", async ct => + { + await StopModScanAsync(); + foreach (var path in paths) + { + ct.ThrowIfCancellationRequested(); + if (SelectedInstance != expected || kind == SelectedSection.Key && directory != contentDirectory) throw new IOException("目标实例或目录已改变,剩余文件未导入。"); + if (kind == "schematics" && Service is IInstanceContentBrowserService browser) await browser.ImportInstanceContentToDirectoryAsync(expected.Id, kind, directory, path, ct); + else await workspace.ImportInstanceContentAsync(expected.Id, kind, path, ct); + completed++; + } + }); + Feedback = success ? $"已导入 {completed} 个文件。" : $"已导入 {completed}/{paths.Count} 个文件;其余未完成。"; + if (ReferenceEquals(Owner.SelectedPage, this) && SelectedInstance == expected && SelectedSection.Key == kind) + await RefreshContentCommand.ExecuteAsync(null); + } + private async Task ToggleModAsync() + { + var selected = SelectedContent!; + if (await Owner.RunAsync(selected.Enabled ? "禁用模组" : "启用模组", async ct => { await StopModScanAsync(); await ((IInstanceWorkspaceService)Service).SetInstanceModEnabledAsync(SelectedInstance!.Id, selected.RelativePath, !selected.Enabled, ct); })) + await RefreshContentCommand.ExecuteAsync(null); + } + private Task OpenContentDirectoryAsync() => !IsContentSubdirectory ? OpenInstanceFolderAsync(SelectedSection.Key) : Owner.RunControlAsync("打开资源文件夹", async ct => + { + var instance = SelectedInstance!; var directory = contentDirectory; var generation = contentDirectoryGeneration; + var folder = await ((IInstanceContentBrowserService)Service).GetInstanceContentDirectoryAsync(instance.Id, SelectedSection.Key, directory, ct); + if (SelectedInstance?.Id == instance.Id && SelectedInstance.GameDirectory == instance.GameDirectory && generation == contentDirectoryGeneration) await Owner.ExternalLauncher.OpenDirectoryAsync(folder, ct); + }); + public Task OpenInstanceFolderAsync(string? kind) => Owner.RunControlAsync("打开实例文件夹", async ct => + { + if (Service is not IInstanceDirectoryService directories) throw new NotSupportedException("此服务没有实例目录适配器。"); + var folder = await directories.GetInstanceDirectoryAsync(SelectedInstance!.Id, kind, true, ct); + await Owner.ExternalLauncher.OpenDirectoryAsync(folder, ct); + }); + private async Task ExportAsync() + { + string? exported = null; + if (await Owner.RunAsync("导出实例", async ct => exported = await ((IInstanceWorkspaceService)Service).ExportInstanceAsync(SelectedInstance!.Id, IncludeWorlds, ct))) + Feedback = "已导出至 " + exported; + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.WorldActions.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.WorldActions.cs new file mode 100644 index 00000000..a2df8e87 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.WorldActions.cs @@ -0,0 +1,97 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class InstancesPageViewModel +{ + private sealed record PackRemovalDraft(string Key, string Revision, IReadOnlyList Packs, string Names); + private PackRemovalDraft? _packRemoval; + private string? _trashWorldKey; + private WorldDatapackTrashEntry? _selectedTrash; + public ObservableCollection WorldDatapackTrash { get; } = []; + public WorldDatapackTrashEntry? SelectedWorldDatapackTrash { get => _selectedTrash; set { if (SetProperty(ref _selectedTrash, value)) NotifyWorldActions(); } } + public string SelectedWorldTrashStatus => SelectedWorldDatapackTrash?.Status ?? ""; + public bool HasWorldPackRemovalConfirmation => _packRemoval is { } draft && draft.Key == WorldSettingsKey; + public string WorldPackRemovalNames => HasWorldPackRemovalConfirmation ? _packRemoval!.Names : ""; + public RelayCommand DownloadWorldResourcesCommand { get; private set; } = null!; + public RelayCommand DownloadWorldDatapacksCommand { get; private set; } = null!; + public RelayCommand RequestRecycleWorldDatapacksCommand { get; private set; } = null!; + public RelayCommand CancelRecycleWorldDatapacksCommand { get; private set; } = null!; + public AsyncRelayCommand ConfirmRecycleWorldDatapacksCommand { get; private set; } = null!; + public AsyncRelayCommand RefreshWorldDatapackTrashCommand { get; private set; } = null!; + public AsyncRelayCommand RestoreWorldDatapacksCommand { get; private set; } = null!; + private bool CanRecyclePacks => Service is IWorldDatapackTrashService && CanChangeSelectedPacks && !IsWorldSettingsDirty && CurrentWorldPacks.Selected.Count <= 16; + private void InitializeWorldActions() + { + DownloadWorldResourcesCommand = Command(() => OpenWorldDownloadBrowser(false), () => WorldWorkspaceCanRead && Service is IWorldContentInstallationService); + DownloadWorldDatapacksCommand = Command(() => OpenWorldDownloadBrowser(true), () => CanImportWorldDatapack && Service is IWorldContentInstallationService); + RequestRecycleWorldDatapacksCommand = Command(() => + { + _packRemoval = new(WorldSettingsKey!, CurrentWorldSettings.State!.Revision, + CurrentWorldPacks.Selected.Select(p => new WorldDatapackSelection(p.Details!.PackId, p.Details.ContentRevision)).ToArray(), + string.Join("、", CurrentWorldPacks.Selected.Select(p => p.Name))); + NotifyWorldActions(); + }, () => CanRecyclePacks); + CancelRecycleWorldDatapacksCommand = Command(() => { _packRemoval = null; NotifyWorldActions(); }); + ConfirmRecycleWorldDatapacksCommand = AsyncCommand(RecycleSelectedWorldDatapacksAsync, () => WorldWorkspaceCanWrite && IsWorldDatapacksPage && !IsDatapackOrderDirty && !IsWorldSettingsDirty && HasWorldPackRemovalConfirmation); + RefreshWorldDatapackTrashCommand = AsyncCommand(ReadWorldDatapackTrashAsync, () => WorldWorkspaceCanRead && IsWorldDatapacksPage && Service is IWorldDatapackTrashService); + RestoreWorldDatapacksCommand = AsyncCommand(RestoreSelectedWorldDatapacksAsync, () => WorldWorkspaceCanWrite && IsWorldDatapacksPage && !IsDatapackOrderDirty && !IsWorldSettingsDirty && SelectedWorldDatapackTrash is { CanRestore: true } && _trashWorldKey == WorldSettingsKey); + } + private void OpenWorldDownloadBrowser(bool datapack) + { + if (SelectedInstance is not { } instance) return; + try + { + Owner.Downloads.OpenWorldContentBrowser(instance, datapack ? SelectedWorldRow?.DirectoryName : null); + Owner.SelectedPage = Owner.Downloads; + } + catch (InvalidOperationException ex) { Owner.ShowError(UiPrivacy.Redact(ex.Message)); } + } + public async Task ImportClipboardWorldDatapackAsync(IReadOnlyList localFiles, string instanceId, string worldDirectory, string gameDirectory) + { + if (localFiles.Count != 1 || !Path.IsPathFullyQualified(localFiles[0]) || !Path.GetExtension(localFiles[0]).Equals(".zip", StringComparison.OrdinalIgnoreCase)) + { Owner.ShowError("请在文件管理器中复制一个本地 ZIP 数据包文件后再粘贴。"); return false; } + return await ImportWorldDatapackFileAsync(localFiles[0], instanceId, worldDirectory, gameDirectory); + } + private async Task ReadWorldDatapackTrashAsync() + { + if (Service is not IWorldDatapackTrashService service || SelectedInstance is not { } instance || SelectedWorldRow is not { } world) return; + var key = WorldSettingsKey; IReadOnlyList? entries = null; + var success = await Owner.RunInlineAsync("读取数据包回收记录", async ct => entries = await service.GetWorldDatapackTrashAsync(instance.Id, world.DirectoryName, ct)); + if (key != WorldSettingsKey) return; + WorldDatapackTrash.Clear(); _selectedTrash = null; _trashWorldKey = success ? key : null; + if (entries is not null) foreach (var entry in entries) WorldDatapackTrash.Add(entry); + OnPropertyChanged(nameof(SelectedWorldDatapackTrash)); NotifyWorldActions(); + } + private async Task RecycleSelectedWorldDatapacksAsync() + { + if (!HasWorldPackRemovalConfirmation || _packRemoval is not { } removal || Service is not IWorldDatapackTrashService service || SelectedInstance is not { } instance || SelectedWorldRow is not { } world) return; + _packRemoval = null; var draft = _worldDraft; + var success = await Owner.RunInlineAsync("回收数据包", ct => service.RecycleWorldDatapacksAsync(instance.Id, world.DirectoryName, removal.Revision, removal.Packs, ct)); + draft.Feedback = success ? "数据包已移入回收记录,可在当前存档页恢复。" : Owner.ErrorMessage ?? "回收已取消,原文件保留。"; + if (WorldSettingsKey == removal.Key) await RefreshAfterPackTrashAsync(); + } + private async Task RestoreSelectedWorldDatapacksAsync() + { + if (SelectedWorldDatapackTrash is not { CanRestore: true } entry || _trashWorldKey != WorldSettingsKey || Service is not IWorldDatapackTrashService service || SelectedInstance is not { } instance || SelectedWorldRow is not { } world) return; + var key = WorldSettingsKey; var draft = _worldDraft; + var success = await Owner.RunInlineAsync("恢复数据包", ct => service.RestoreWorldDatapacksAsync(instance.Id, world.DirectoryName, entry.Id, ct)); + draft.Feedback = success ? "已恢复数据包、原启停状态和安装记录。" : Owner.ErrorMessage ?? "恢复已取消,回收文件保留。"; + if (key == WorldSettingsKey) await RefreshAfterPackTrashAsync(); + } + private async Task RefreshAfterPackTrashAsync() + { + CurrentWorldSettings.Phase = WorldReadPhase.Unread; + await RefreshWorldPacksAsync(); await ReadWorldDatapackTrashAsync(); NotifyWorldPresentation(); + } + private void NotifyWorldActions() + { + if (DownloadWorldResourcesCommand is null) return; + if (_packRemoval is { } draft && draft.Key != WorldSettingsKey) _packRemoval = null; + if (_trashWorldKey != WorldSettingsKey) { WorldDatapackTrash.Clear(); _selectedTrash = null; OnPropertyChanged(nameof(SelectedWorldDatapackTrash)); } + foreach (var property in new[] { nameof(HasWorldPackRemovalConfirmation), nameof(WorldPackRemovalNames), nameof(SelectedWorldTrashStatus) }) OnPropertyChanged(property); + foreach (var command in new IRelayCommand[] { DownloadWorldResourcesCommand, DownloadWorldDatapacksCommand, RequestRecycleWorldDatapacksCommand, CancelRecycleWorldDatapacksCommand, ConfirmRecycleWorldDatapacksCommand, RefreshWorldDatapackTrashCommand, RestoreWorldDatapacksCommand }) command.NotifyCanExecuteChanged(); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.WorldEditing.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.WorldEditing.cs new file mode 100644 index 00000000..3426328b --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.WorldEditing.cs @@ -0,0 +1,168 @@ +using System.Globalization; +using Avalonia.Threading; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record WorldPermissionChoice(bool Value, string Name); +public sealed record WorldDifficultyChoice(int Value, string Name); +public sealed partial class InstancesPageViewModel +{ + private sealed class WorldSettingsDraft + { + public WorldEditState? State; + public WorldReadPhase Phase; + public bool AllowCommands, DifficultyLocked, Dirty, Conflict; + public int Difficulty = 2; + public string Feedback = "", Backup = ""; + } + private readonly Dictionary worldSettingsDrafts = new(StringComparer.Ordinal); + private readonly WorldSettingsDraft emptyWorldSettings = new(); + private bool worldEditingReady, worldEditingReadScheduled; + private string? WorldSettingsKey => SelectedInstance is { } instance && SelectedWorldRow is { } world ? instance.Id + "\0" + instance.GameDirectory + "\0" + world.DirectoryName : null; + private WorldSettingsDraft CurrentWorldSettings + { + get { if (WorldSettingsKey is not { } key) return emptyWorldSettings; if (!worldSettingsDrafts.TryGetValue(key, out var draft)) worldSettingsDrafts[key] = draft = new(); return draft; } + } + public IReadOnlyList WorldPermissionChoices { get; } = [new(false, "不允许"), new(true, "允许")]; + public IReadOnlyList WorldDifficultyChoices { get; } = [new(0, "和平"), new(1, "简单"), new(2, "普通"), new(3, "困难")]; + public WorldPermissionChoice SelectedWorldPermission + { + get => WorldPermissionChoices.First(c => c.Value == CurrentWorldSettings.AllowCommands); + set { if (value is null || !CanEditWorldMetadata || value.Value == CurrentWorldSettings.AllowCommands) return; CurrentWorldSettings.AllowCommands = value.Value; MarkWorldSettingsChanged(); } + } + public WorldDifficultyChoice SelectedWorldDifficulty + { + get => WorldDifficultyChoices.First(c => c.Value == CurrentWorldSettings.Difficulty); + set { if (value is null || !CanEditWorldDifficulty || value.Value is < 0 or > 3 || value.Value == CurrentWorldSettings.Difficulty) return; CurrentWorldSettings.Difficulty = value.Value; MarkWorldSettingsChanged(); } + } + public bool WorldDifficultyLocked + { + get => CurrentWorldSettings.DifficultyLocked; + set { if (!CanEditWorldMetadata || CurrentWorldSettings.DifficultyLocked == value) return; CurrentWorldSettings.DifficultyLocked = value; MarkWorldSettingsChanged(); } + } + public bool IsWorldSettingsDirty => CurrentWorldSettings.Dirty; + public bool HasWorldSettingsConflict => CurrentWorldSettings.Conflict; + public bool ShowWorldSettingsSaveActions => IsWorldSettingsDirty || HasWorldSettingsConflict; + public bool CanEditWorldMetadata => worldEditingReady && WorldWorkspaceCanWrite && !IsDatapackOrderDirty && CurrentWorldSettings is { Phase: WorldReadPhase.Ready, Conflict: false, State.CanEditMetadata: true }; + public bool CanEditWorldDifficulty => CanEditWorldMetadata && !WorldDifficultyLocked && SelectedWorldRow?.Summary.Hardcore != true; + public string WorldSettingsStatus => Service is not IInstanceWorldEditService ? "当前服务未提供世界设置与启停写入。" + : CurrentWorldSettings.Conflict ? "文件已有变化或保存未完成;草稿保留,请核对后显式放弃并重新读取。" + : CurrentWorldSettings.Phase switch { WorldReadPhase.Unread => "尚未读取世界设置。", WorldReadPhase.Loading => "正在读取世界设置与数据包状态…", WorldReadPhase.Error => "读取未完成,原文件与草稿保留。", _ => CurrentWorldSettings.State?.Capability ?? "尚未读取世界设置。" }; + public string WorldSettingsFeedback => CurrentWorldSettings.Feedback; + public string WorldEditBackupPath => UiPrivacy.Redact(CurrentWorldSettings.Backup); + public bool HasWorldEditBackup => CurrentWorldSettings.Backup.Length > 0; + public string WorldSpawnText => CurrentWorldSettings.State?.Values is { SpawnX: { } x, SpawnY: { } y, SpawnZ: { } z } ? $"{x} / {y} / {z}" : "未知"; + public string WorldRuntimeText => CurrentWorldSettings.State?.Values.WorldTicks is >= 0 and var ticks ? $"{ticks / 72000:N0} 小时 {(ticks / 1200) % 60:N0} 分 {(ticks / 20) % 60:N0} 秒(世界运行时间)" : "未知"; + public bool CanEnableSelectedDatapacks => CanChangeSelectedPacks && CurrentWorldPacks.Selected.Any(row => row.Details?.Enabled != true); + public bool CanDisableSelectedDatapacks => CanChangeSelectedPacks && CurrentWorldPacks.Selected.Any(row => row.Details?.Enabled != false); + private bool CanChangeSelectedPacks => worldEditingReady && IsWorldDatapacksPage && WorldWorkspaceCanWrite && !IsDatapackOrderDirty && CurrentWorldSettings is { Phase: WorldReadPhase.Ready, Conflict: false, State.CanToggleDatapacks: true } + && CurrentWorldPacks.Selected.Count > 0 && CurrentWorldPacks.Selected.All(row => row.Details is { CanToggle: true, ContentRevision.Length: > 0 }); + public AsyncRelayCommand RefreshWorldEditCommand { get; private set; } = null!; + public AsyncRelayCommand DiscardWorldSettingsCommand { get; private set; } = null!; + public AsyncRelayCommand SaveWorldSettingsCommand { get; private set; } = null!; + public AsyncRelayCommand EnableWorldDatapacksCommand { get; private set; } = null!; + public AsyncRelayCommand DisableWorldDatapacksCommand { get; private set; } = null!; + private void InitializeWorldEditing() + { + if (worldEditingReady) return; + RefreshWorldEditCommand = AsyncCommand(() => ReadWorldEditStateAsync(false), () => WorldCanReadEdits && !IsWorldSettingsDirty); + DiscardWorldSettingsCommand = AsyncCommand(() => ReadWorldEditStateAsync(true), () => WorldCanReadEdits && (IsWorldSettingsDirty || HasWorldSettingsConflict)); + SaveWorldSettingsCommand = AsyncCommand(SaveWorldSettingsAsync, () => CanEditWorldMetadata && IsWorldSettingsDirty); + EnableWorldDatapacksCommand = AsyncCommand(() => ChangeSelectedDatapacksAsync(true), () => CanEnableSelectedDatapacks); + DisableWorldDatapacksCommand = AsyncCommand(() => ChangeSelectedDatapacksAsync(false), () => CanDisableSelectedDatapacks); + foreach (var command in new[] { RefreshWorldEditCommand, DiscardWorldSettingsCommand, SaveWorldSettingsCommand, EnableWorldDatapacksCommand, DisableWorldDatapacksCommand }) + command.PropertyChanged += (_, args) => { if (args.PropertyName == nameof(AsyncRelayCommand.IsRunning) && !command.IsRunning) ScheduleUnreadWorldEditing(); }; + worldEditingReady = true; + } + private bool WorldCanReadEdits => worldEditingReady && IsWorldDetails && WorldWorkspaceCanRead && Service is IInstanceWorldEditService; + private void MarkWorldSettingsChanged() + { + var draft = CurrentWorldSettings; + draft.Dirty = draft.State is { } state && (state.Values.AllowCommands != draft.AllowCommands || state.Values.Difficulty != draft.Difficulty || state.Values.DifficultyLocked != draft.DifficultyLocked); + draft.Feedback = draft.Dirty ? "有未保存的世界设置,仅点击保存后写入 level.dat。" : ""; NotifyWorldEditing(); + } + private void NotifyWorldEditing() + { + if (!worldEditingReady) return; + ApplyWorldPackDetails(); + OnPropertyChanged(nameof(DatapackListStatus)); + foreach (var name in new[] { nameof(SelectedWorldPermission), nameof(SelectedWorldDifficulty), nameof(WorldDifficultyLocked), nameof(IsWorldSettingsDirty), nameof(HasWorldSettingsConflict), nameof(ShowWorldSettingsSaveActions), nameof(CanEditWorldMetadata), nameof(CanEditWorldDifficulty), nameof(WorldSettingsStatus), nameof(WorldSettingsFeedback), nameof(WorldEditBackupPath), nameof(HasWorldEditBackup), nameof(WorldSpawnText), nameof(WorldRuntimeText), nameof(CanEnableSelectedDatapacks), nameof(CanDisableSelectedDatapacks) }) OnPropertyChanged(name); + NotifyWorldEditingCommands(); ScheduleUnreadWorldEditing(); + } + private void NotifyWorldEditingCommands() + { + if (!worldEditingReady) return; + foreach (var command in new IRelayCommand[] { RefreshWorldEditCommand, DiscardWorldSettingsCommand, SaveWorldSettingsCommand, EnableWorldDatapacksCommand, DisableWorldDatapacksCommand }) command.NotifyCanExecuteChanged(); + OnPropertyChanged(nameof(CanEnableSelectedDatapacks)); OnPropertyChanged(nameof(CanDisableSelectedDatapacks)); + NotifyWorldActions(); + NotifyDatapackManagement(); + } + private void ScheduleUnreadWorldEditing() + { + if (!worldEditingReady || Service is not IInstanceWorldEditService || worldEditingReadScheduled || !IsWorldDetails || CurrentWorldSettings.Phase != WorldReadPhase.Unread || !ReferenceEquals(Owner.SelectedPage, this)) return; + worldEditingReadScheduled = true; + Dispatcher.UIThread.Post(() => + { + worldEditingReadScheduled = false; + if (WorldCanReadEdits && CurrentWorldSettings.Phase == WorldReadPhase.Unread && ReferenceEquals(Owner.SelectedPage, this) && RefreshWorldEditCommand is { IsRunning: false } && RefreshWorldEditCommand.CanExecute(null)) RefreshWorldEditCommand.Execute(null); + }, DispatcherPriority.Background); + } + private async Task ReadWorldEditStateAsync(bool discard) + { + if (!WorldCanReadEdits || SelectedInstance is not { } instance || SelectedWorldRow is not { } world || CurrentWorldSettings.Phase == WorldReadPhase.Loading || !discard && IsWorldSettingsDirty) return; + var key = WorldSettingsKey; var draft = CurrentWorldSettings; var previousPhase = draft.Phase; + draft.Phase = WorldReadPhase.Loading; NotifyWorldEditing(); WorldEditState? result = null; var cancelled = false; + var completed = await Owner.RunInlineAsync("读取存档设置", async ct => + { + try { result = await ((IInstanceWorldEditService)Service).GetWorldEditStateAsync(instance.Id, world.DirectoryName, ct); ct.ThrowIfCancellationRequested(); } + catch (OperationCanceledException) when (ct.IsCancellationRequested) { cancelled = true; throw; } + }); + if (completed && result is not null) + { + draft.State = result; draft.AllowCommands = result.Values.AllowCommands ?? false; draft.Difficulty = result.Values.Difficulty ?? 2; draft.DifficultyLocked = result.Values.DifficultyLocked ?? false; + draft.Dirty = false; draft.Conflict = false; draft.Phase = WorldReadPhase.Ready; draft.Feedback = ""; + } + else if (cancelled) { draft.Phase = draft.State is not null ? previousPhase : WorldReadPhase.Error; draft.Feedback = "读取已取消,已有草稿与上次读取状态保留。"; } + else { draft.Phase = WorldReadPhase.Error; draft.Feedback = "读取未完成,已有草稿保留。"; } + if (key == WorldSettingsKey) NotifyWorldEditing(); + } + private void ApplyWorldPackDetails() + { + if (CurrentWorldSettings.State is not { } state) return; + var map = state.Datapacks.ToDictionary(pack => pack.File.Name, StringComparer.Ordinal); + var changed = false; + foreach (var row in CurrentWorldPacks.Rows) { var details = map.GetValueOrDefault(row.Name); changed |= row.Details != details; row.Details = details; } + if (changed && CurrentWorldPacks.Query.Trim().Length > 0) { FilterPackRows(CurrentWorldPacks); OnPropertyChanged(nameof(DatapackCountSummary)); } + } + private async Task SaveWorldSettingsAsync() + { + if (!CanEditWorldMetadata || !IsWorldSettingsDirty || SelectedInstance is not { } instance || SelectedWorldRow is not { } world || CurrentWorldSettings.State is not { } state) return; + var key = WorldSettingsKey; var draft = CurrentWorldSettings; var edit = new WorldMetadataEdit(draft.AllowCommands, draft.Difficulty, draft.DifficultyLocked); WorldEditReceipt? receipt = null; + var completed = await Owner.RunAsync("保存世界设置", async ct => receipt = await ((IInstanceWorldEditService)Service).SaveWorldMetadataAsync(instance.Id, world.DirectoryName, state.Revision, edit, ct)); + if (completed && receipt is not null) + { + draft.State = state with { Revision = receipt.Revision, Values = state.Values with { AllowCommands = edit.AllowCommands, Difficulty = edit.Difficulty, DifficultyLocked = edit.DifficultyLocked } }; + draft.Dirty = false; draft.Conflict = false; draft.Backup = receipt.BackupPath ?? draft.Backup; draft.Feedback = "世界设置已保存;原 level.dat 已备份。"; + } + else { draft.Conflict = true; draft.Feedback = "设置保存未完成,草稿保留;请重新读取核对。"; } + if (key == WorldSettingsKey) NotifyWorldEditing(); + } + private async Task ChangeSelectedDatapacksAsync(bool enabled) + { + if (!(enabled ? CanEnableSelectedDatapacks : CanDisableSelectedDatapacks) || SelectedInstance is not { } instance || SelectedWorldRow is not { } world || CurrentWorldSettings.State is not { } state) return; + var key = WorldSettingsKey; var workspace = _worldDraft; var draft = CurrentWorldSettings; var selections = CurrentWorldPacks.Selected.Select(row => new WorldDatapackSelection(row.Details!.PackId, row.Details.ContentRevision)).ToArray(); + WorldEditReceipt? receipt = null; + var completed = await Owner.RunAsync(enabled ? "启用世界数据包" : "禁用世界数据包", async ct => receipt = await ((IInstanceWorldEditService)Service).SetWorldDatapacksEnabledAsync(instance.Id, world.DirectoryName, state.Revision, selections, enabled, ct)); + if (completed && receipt is not null) + { + var ids = selections.Select(p => p.PackId).ToHashSet(StringComparer.Ordinal); + draft.State = state with { Revision = receipt.Revision, Datapacks = state.Datapacks.Select(pack => ids.Contains(pack.PackId) ? pack with { Enabled = enabled } : pack).ToArray() }; + workspace.Feedback = ""; + draft.Backup = receipt.BackupPath ?? draft.Backup; draft.Feedback = enabled ? "数据包启用状态已保存,下次进入世界时生效。" : "数据包禁用状态已保存,下次进入世界时生效。"; + } + else { draft.Conflict = true; draft.Feedback = "启停保存未完成,选择与设置草稿保留;请重新读取核对。"; } + if (key == WorldSettingsKey) { OnPropertyChanged(nameof(WorldWorkspaceFeedback)); NotifyWorldEditing(); } + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Worlds.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Worlds.cs new file mode 100644 index 00000000..822c3ad0 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.Worlds.cs @@ -0,0 +1,358 @@ +using System.Collections; +using System.Collections.ObjectModel; +using System.Globalization; +using CommunityToolkit.Mvvm.Input; +using CommunityToolkit.Mvvm.ComponentModel; +using Avalonia.Threading; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed class InstanceWorldRowViewModel +{ + public InstanceWorldSummary Summary { get; } + public string Name => Summary.Name; + public string DirectoryName => Summary.DirectoryName; + public bool HasError => Summary.Error is not null; + public string Error => UiPrivacy.Redact(Summary.Error ?? ""); + public string Version => Summary.Version is { Length: > 0 } version ? version + (Summary.DataVersion is { } data ? $"({data})" : "") : "未知版本"; + public string LastPlayed => Summary.LastPlayed?.ToLocalTime().ToString("g", CultureInfo.CurrentCulture) ?? "未知"; + public string Subtitle => HasError ? Error : $"{Version} · 最后游玩:{LastPlayed}"; + public RelayCommand OpenCommand { get; } + public InstanceWorldRowViewModel(InstanceWorldSummary summary, Action open) + { Summary = summary; OpenCommand = new(() => open(this), () => !HasError); } +} + +public sealed class InstanceDatapackRowViewModel(WorldDatapackFile file) : ObservableObject +{ + public WorldDatapackFile File { get; } = file; + private WorldDatapackState? details; + public WorldDatapackState? Details + { + get => details; + internal set { if (SetProperty(ref details, value)) { OnPropertyChanged(nameof(Subtitle)); OnPropertyChanged(nameof(Status)); OnPropertyChanged(nameof(Description)); } } + } + public string Name => File.Name; + public string Description => Details?.Description ?? ""; + public string Subtitle => (Description.Length > 0 ? Description + " · " : "") + (File.IsDirectory ? "文件夹" : $"{File.Size ?? 0:N0} B") + " · " + File.Modified.ToLocalTime().ToString("g", CultureInfo.CurrentCulture); + public string Status => Details is { } data ? (data.Enabled switch { true => "已启用", false => "已禁用", _ => "未列入世界配置" }) + (data.PackFormat is { } format ? $" · 格式 {format}" : "") + " · " + data.Capability : File.Status; +} + + +public sealed partial class InstancesPageViewModel +{ + private enum WorldReadPhase { Unread, Loading, Ready, Error } + private sealed class WorldPackDraft + { + public ObservableCollection Rows { get; } = []; + public ObservableCollection Filtered { get; } = []; + public ObservableCollection Selected { get; } = []; + public WorldReadPhase Phase; + public string Query = ""; + } + private sealed class InstanceWorldDraft + { + public ObservableCollection Worlds { get; } = []; + public ObservableCollection FilteredWorlds { get; } = []; + public ObservableCollection Servers { get; } = []; + public Dictionary Packs { get; } = new(StringComparer.Ordinal); + public WorldReadPhase WorldsPhase, ServersPhase; + public string WorldQuery = "", ServerRevision = "", Feedback = "", Backup = "", WorldRoute = "list"; + public bool ServerDirty, ServerConflict, EditorOpen; + public string EditorName = "", EditorAddress = ""; + public InstanceServerDraftViewModel? EditingServer, SelectedServer; + public InstanceWorldRowViewModel? SelectedWorld; + } + private readonly Dictionary _worldDrafts = new(StringComparer.Ordinal); + private InstanceWorldDraft _worldDraft = new(); + private readonly WorldPackDraft _emptyPackDraft = new(); + private bool _worldWorkspaceReady; + private bool _worldUnreadScheduled; + private string? _worldInstanceKey; + private string _worldSectionKey = ""; + private WorldPackDraft CurrentWorldPacks => SelectedWorldRow is { } selected && _worldDraft.Packs.TryGetValue(selected.DirectoryName, out var packs) ? packs : _emptyPackDraft; + public bool IsWorldWorkspaceSection => !IsSelection && _worldSectionKey is "worlds" or "servers"; + public bool IsWorldListPage => IsWorldWorkspaceSection && _worldSectionKey == "worlds" && _worldDraft.WorldRoute == "list"; + public bool IsWorldDetails => IsWorldWorkspaceSection && _worldSectionKey == "worlds" && _worldDraft.WorldRoute != "list" && SelectedWorldRow is not null; + public bool IsWorldInformationPage => IsWorldDetails && _worldDraft.WorldRoute == "info"; + public bool IsWorldDatapacksPage => IsWorldDetails && _worldDraft.WorldRoute == "datapacks"; + public bool IsInstanceServersPage => IsWorldWorkspaceSection && _worldSectionKey == "servers"; + public bool WorldWorkspaceCanRead => _worldWorkspaceReady && SelectedInstance is not null && Service is IInstanceWorldService + && SelectedInstance.Id == Owner.Snapshot.SelectedInstanceId && Owner.CanReadRemote; + public bool WorldWorkspaceCanWrite => WorldWorkspaceCanRead && CanEdit && !IsSelectedInstanceRunning; + public bool ShowWorldWorkspaceCapability => !WorldWorkspaceCanRead || IsSelectedInstanceRunning; + public string WorldWorkspaceCapability => Service is not IInstanceWorldService ? "此服务尚未接入存档与服务器读写。" + : SelectedInstance is null || SelectedInstance.Id != Owner.Snapshot.SelectedInstanceId ? "请先选定当前实例。" + : IsSelectedInstanceRunning ? "写入前请先退出此实例的游戏。" + : Service is IInstanceWorldEditService ? "仅当前选中的实例可读取和保存;世界设置与数据包启停需要显式保存。" + : "仅当前选中的实例可读取和保存;level.dat 保持只读。"; + public string WorldContextTitle => IsWorldDetails ? "存档管理 · " + SelectedWorldRow?.Name : "实例设置 · " + SelectedInstance?.Name; + public string WorldWorkspaceFeedback => _worldDraft.Feedback; + public ObservableCollection WorldRows => _worldDraft.FilteredWorlds; + public string WorldSearchText { get => _worldDraft.WorldQuery; set { if (_worldDraft.WorldQuery == value) return; _worldDraft.WorldQuery = value; OnPropertyChanged(); FilterWorldRows(); } } + public string WorldCountSummary => $"存档列表({WorldRows.Count})"; + public string WorldListStatus => _worldDraft.WorldsPhase switch { WorldReadPhase.Unread => "尚未读取当前实例的存档。", WorldReadPhase.Loading => "正在读取存档…", WorldReadPhase.Error => "读取失败,请查看错误提示后重新读取。", _ => WorldRows.Count == 0 ? "当前搜索范围内没有存档。" : $"已读取 {_worldDraft.Worlds.Count} 个存档。" }; + public bool ShowWorldListStatus => _worldDraft.WorldsPhase != WorldReadPhase.Ready || WorldRows.Count == 0; + public InstanceWorldRowViewModel? SelectedWorldRow { get => _worldDraft.SelectedWorld; set { if (ReferenceEquals(_worldDraft.SelectedWorld, value)) return; _worldDraft.SelectedWorld = value; OnPropertyChanged(); NotifyWorldPresentation(); } } + public string WorldDetailName => SelectedWorldRow?.Name ?? ""; + public string WorldDetailVersion => SelectedWorldRow?.Version ?? ""; + public string WorldDetailLastPlayed => SelectedWorldRow?.LastPlayed ?? ""; + public string WorldSeedText => SelectedWorldRow?.Summary.Seed?.ToString(CultureInfo.InvariantCulture) ?? "未知"; + public bool HasWorldSeed => SelectedWorldRow?.Summary.Seed is not null; + public string WorldGameModeText => SelectedWorldRow?.Summary.GameMode switch { 0 => "生存模式", 1 => "创造模式", 2 => "冒险模式", 3 => "旁观模式", null => "未知", var value => $"未知模式({value})" }; + public string WorldHardcoreText => SelectedWorldRow?.Summary.Hardcore switch { true => "是", false => "否", _ => "未知" }; + public ObservableCollection DatapackRows => CurrentWorldPacks.Filtered; + public IList SelectedDatapacks => CurrentWorldPacks.Selected; + public string DatapackSearchText { get => CurrentWorldPacks.Query; set { var packs = CurrentWorldPacks; if (packs.Query == value) return; packs.Query = value; OnPropertyChanged(); FilterPackRows(packs); NotifyWorldPresentation(); } } + public string DatapackCountSummary => $"全部({DatapackRows.Count})"; + public string DatapackSelectionSummary => $"已选择 {CurrentWorldPacks.Selected.Count} 个文件"; + public bool HasSelectedDatapacks => CurrentWorldPacks.Selected.Count > 0; + public string DatapackListStatus => CurrentWorldPacks.Phase switch { WorldReadPhase.Unread => "尚未读取此世界的数据包文件。", WorldReadPhase.Loading => "正在读取数据包…", WorldReadPhase.Error => "读取失败,请重新读取。", _ => DatapackRows.Count == 0 ? "当前搜索范围内没有数据包文件。" : CurrentWorldSettings is { Phase: WorldReadPhase.Ready, State.CanToggleDatapacks: true } ? "已读取 level.dat 启停状态;格式与可用操作见每行。" : "仅列出文件;版本兼容性与启停状态未验证。" }; + public bool CanImportWorldDatapack => WorldWorkspaceCanWrite && !IsDatapackOrderDirty && ReferenceEquals(Owner.SelectedPage, this) && IsWorldDatapacksPage && SelectedWorldRow is { HasError: false }; + public ObservableCollection InstanceServerRows => _worldDraft.Servers; + public InstanceServerDraftViewModel? SelectedInstanceServer { get => _worldDraft.SelectedServer; set { if (ReferenceEquals(_worldDraft.SelectedServer, value)) return; _worldDraft.SelectedServer = value; OnPropertyChanged(); NotifyWorldCommands(); } } + public bool IsServerDraftDirty => _worldDraft.ServerDirty; + public bool HasServerConflict => _worldDraft.ServerConflict; + public string ServerDraftStatus => _worldDraft.ServerConflict ? "服务器文件已有变化或保存未完成,当前草稿仍保留;请核对后显式放弃并重新读取。" : _worldDraft.ServerDirty ? "有未保存的服务器修改;仅点击“保存服务器”后写入文件。" : "当前没有未保存的服务器修改。"; + public string ServerListStatus => _worldDraft.ServersPhase switch { WorldReadPhase.Unread => "尚未读取当前实例的服务器列表。", WorldReadPhase.Loading => "正在读取 servers.dat…", WorldReadPhase.Error => "读取失败;原文件保持不变。", _ => InstanceServerRows.Count == 0 ? "此实例尚无服务器,可添加到草稿后显式保存。" : $"服务器({InstanceServerRows.Count});可直接启动当前实例并连接已保存的服务器。" }; + public AsyncRelayCommand ConnectInstanceServerCommand { get; private set; } = null!; + public bool IsServerEditorOpen => IsInstanceServersPage && _worldDraft.EditorOpen; + public bool IsEditingExistingServer => _worldDraft.EditingServer is not null; + public string ServerEditorTitle => _worldDraft.EditingServer is null ? "添加服务器" : "修改服务器"; + public string ServerNameDraft { get => _worldDraft.EditorName; set { if (_worldDraft.EditorName == value) return; _worldDraft.EditorName = value; OnPropertyChanged(); NotifyWorldCommands(); } } + public string ServerAddressDraft { get => _worldDraft.EditorAddress; set { if (_worldDraft.EditorAddress == value) return; _worldDraft.EditorAddress = value; OnPropertyChanged(); NotifyWorldCommands(); } } + public string ServerBackupPath => UiPrivacy.Redact(_worldDraft.Backup); + public bool HasServerBackup => _worldDraft.Backup.Length > 0; + public AsyncRelayCommand RefreshWorldsCommand { get; private set; } = null!; + public AsyncRelayCommand RefreshWorldDatapacksCommand { get; private set; } = null!; + public RelayCommand ShowWorldInformationCommand { get; private set; } = null!; + public AsyncRelayCommand ShowWorldDatapacksCommand { get; private set; } = null!; + public RelayCommand BackFromWorldCommand { get; private set; } = null!; + public AsyncRelayCommand OpenWorldSavesDirectoryCommand { get; private set; } = null!; + public AsyncRelayCommand OpenWorldDirectoryCommand { get; private set; } = null!; + public AsyncRelayCommand OpenWorldDatapacksDirectoryCommand { get; private set; } = null!; + public RelayCommand SelectAllWorldDatapacksCommand { get; private set; } = null!; + public RelayCommand ClearWorldDatapackSelectionCommand { get; private set; } = null!; + public AsyncRelayCommand RefreshInstanceServersCommand { get; private set; } = null!; + public AsyncRelayCommand DiscardInstanceServersCommand { get; private set; } = null!; + public AsyncRelayCommand SaveInstanceServersCommand { get; private set; } = null!; + public RelayCommand AddInstanceServerCommand { get; private set; } = null!; + public RelayCommand EditInstanceServerCommand { get; private set; } = null!; + public RelayCommand RemoveInstanceServerCommand { get; private set; } = null!; + public RelayCommand ApplyInstanceServerDraftCommand { get; private set; } = null!; + public RelayCommand CancelInstanceServerEditorCommand { get; private set; } = null!; + + public void InitializeWorldWorkspace() + { + if (_worldWorkspaceReady) return; + ConnectInstanceServerCommand = new(async row => + { + if (row is null || SelectedInstance is not { } instance || Service is not IServerLaunchService service) return; + var destination = row.Address; + await Owner.RunLaunchAsync(instance, async ct => + { + if (!instance.Installed) await Service.InstallInstanceAsync(instance.Id, ct); + ct.ThrowIfCancellationRequested(); await service.LaunchToServerAsync(instance.Id, destination, ct); + }); + }, row => row is not null && CanLaunch() && !IsServerDraftDirty && !IsServerEditorOpen && Service is IServerLaunchService); + RefreshWorldsCommand = AsyncCommand(RefreshWorldsAsync, () => WorldWorkspaceCanRead); + RefreshWorldDatapacksCommand = AsyncCommand(RefreshWorldPacksAsync, () => WorldWorkspaceCanRead && SelectedWorldRow is { HasError: false }); + ShowWorldInformationCommand = Command(() => { _worldDraft.WorldRoute = "info"; NotifyWorldPresentation(); }, () => SelectedWorldRow is { HasError: false }); + ShowWorldDatapacksCommand = AsyncCommand(async () => { _worldDraft.WorldRoute = "datapacks"; EnsurePackDraft(); NotifyWorldPresentation(); if (CurrentWorldPacks.Phase == WorldReadPhase.Unread) await RefreshWorldPacksAsync(); }, () => WorldWorkspaceCanRead && SelectedWorldRow is { HasError: false }); + BackFromWorldCommand = Command(() => { _worldDraft.WorldRoute = "list"; NotifyWorldPresentation(); }); + OpenWorldSavesDirectoryCommand = AsyncCommand(() => OpenWorldFolderAsync("saves"), () => WorldWorkspaceCanRead); + OpenWorldDirectoryCommand = AsyncCommand(() => OpenWorldFolderAsync("saves/" + SelectedWorldRow!.DirectoryName), () => WorldWorkspaceCanRead && SelectedWorldRow is { HasError: false }); + OpenWorldDatapacksDirectoryCommand = AsyncCommand(() => OpenWorldFolderAsync("saves/" + SelectedWorldRow!.DirectoryName + "/datapacks"), () => WorldWorkspaceCanRead && SelectedWorldRow is { HasError: false }); + SelectAllWorldDatapacksCommand = Command(() => { var packs = CurrentWorldPacks; packs.Selected.Clear(); foreach (var row in packs.Filtered) packs.Selected.Add(row); }, () => DatapackRows.Count > 0); + ClearWorldDatapackSelectionCommand = Command(() => CurrentWorldPacks.Selected.Clear()); + RefreshInstanceServersCommand = AsyncCommand(() => ReadInstanceServersAsync(false), () => WorldWorkspaceCanRead && !_worldDraft.ServerDirty && !_worldDraft.EditorOpen); + DiscardInstanceServersCommand = AsyncCommand(() => ReadInstanceServersAsync(true), () => WorldWorkspaceCanRead && (_worldDraft.ServerDirty || _worldDraft.ServerConflict || _worldDraft.EditorOpen)); + SaveInstanceServersCommand = AsyncCommand(SaveInstanceServersDraftAsync, () => WorldWorkspaceCanWrite && _worldDraft.ServerDirty && !_worldDraft.ServerConflict && !_worldDraft.EditorOpen); + AddInstanceServerCommand = Command(() => BeginServerEditor(null), () => WorldWorkspaceCanWrite && _worldDraft.ServersPhase == WorldReadPhase.Ready); + EditInstanceServerCommand = Command(() => BeginServerEditor(SelectedInstanceServer), () => WorldWorkspaceCanWrite && SelectedInstanceServer is not null); + RemoveInstanceServerCommand = Command(() => { if (SelectedInstanceServer is not { } row) return; _worldDraft.Servers.Remove(row); _worldDraft.SelectedServer = null; _worldDraft.EditorOpen = false; _worldDraft.ServerDirty = true; _worldDraft.Feedback = "已从草稿移除;尚未写入 servers.dat。"; NotifyWorldPresentation(); }, () => WorldWorkspaceCanWrite && SelectedInstanceServer is not null); + ApplyInstanceServerDraftCommand = Command(ApplyServerEditor, () => WorldWorkspaceCanWrite && !string.IsNullOrWhiteSpace(ServerNameDraft) && !string.IsNullOrWhiteSpace(ServerAddressDraft)); + CancelInstanceServerEditorCommand = Command(() => { _worldDraft.EditorOpen = false; NotifyWorldPresentation(); }); + foreach (var command in new[] { RefreshWorldsCommand, RefreshInstanceServersCommand, RefreshWorldDatapacksCommand }) + command.PropertyChanged += (_, args) => { if (args.PropertyName == nameof(AsyncRelayCommand.IsRunning) && !command.IsRunning) ScheduleUnreadWorldSection(); }; + InitializeServerStatus(); _worldWorkspaceReady = true; InitializeWorldEditing(); InitializeWorldActions(); InitializeLocalWorldImport(); InitializeDatapackManagement(); NotifyWorldWorkspace(); + } + public void ActivateWorldWorkspace(string sectionKey) + { + if (!_worldWorkspaceReady) return; + _worldSectionKey = sectionKey; NotifyWorldWorkspace(); ServerStatusNavigationChanged(); + } + public void NotifyWorldWorkspace() + { + if (!_worldWorkspaceReady) return; + var key = SelectedInstance is { } instance ? instance.Id + "\0" + instance.GameDirectory : null; + if (key != _worldInstanceKey) + { + _worldInstanceKey = key; + if (key is null) _worldDraft = new(); + else if (!_worldDrafts.TryGetValue(key, out _worldDraft!)) _worldDrafts[key] = _worldDraft = new(); + } + NotifyWorldPresentation(); + } + private void NotifyWorldPresentation() + { + OnPropertyChanged(nameof(ShowWorldWorkspaceCapability)); + OnPropertyChanged(nameof(IsEditingExistingServer)); + foreach (var name in new[] { nameof(IsWorldWorkspaceSection), nameof(IsWorldListPage), nameof(IsWorldDetails), nameof(IsWorldInformationPage), nameof(IsWorldDatapacksPage), nameof(IsInstanceServersPage), nameof(WorldWorkspaceCanRead), nameof(WorldWorkspaceCanWrite), nameof(WorldWorkspaceCapability), nameof(WorldContextTitle), nameof(WorldWorkspaceFeedback), nameof(WorldRows), nameof(WorldSearchText), nameof(WorldCountSummary), nameof(WorldListStatus), nameof(ShowWorldListStatus), nameof(SelectedWorldRow), nameof(WorldDetailName), nameof(WorldDetailVersion), nameof(WorldDetailLastPlayed), nameof(WorldSeedText), nameof(HasWorldSeed), nameof(WorldGameModeText), nameof(WorldHardcoreText), nameof(DatapackRows), nameof(SelectedDatapacks), nameof(DatapackSearchText), nameof(DatapackCountSummary), nameof(DatapackSelectionSummary), nameof(HasSelectedDatapacks), nameof(DatapackListStatus), nameof(CanImportWorldDatapack), nameof(InstanceServerRows), nameof(SelectedInstanceServer), nameof(IsServerDraftDirty), nameof(HasServerConflict), nameof(ServerDraftStatus), nameof(ServerListStatus), nameof(IsServerEditorOpen), nameof(ServerEditorTitle), nameof(ServerNameDraft), nameof(ServerAddressDraft), nameof(ServerBackupPath), nameof(HasServerBackup) }) OnPropertyChanged(name); + NotifyWorldCommands(); + NotifyWorldEditing(); + NotifyWorldActions(); + NotifyLocalWorldImport(); + NotifyDatapackManagement(); + ScheduleUnreadWorldSection(); + } + private void ScheduleUnreadWorldSection() + { + if (!_worldWorkspaceReady || _worldUnreadScheduled || !ReferenceEquals(Owner.SelectedPage, this)) return; + if (!(IsWorldListPage && _worldDraft.WorldsPhase == WorldReadPhase.Unread || IsInstanceServersPage && _worldDraft.ServersPhase == WorldReadPhase.Unread + || IsWorldDatapacksPage && CurrentWorldPacks.Phase == WorldReadPhase.Unread)) return; + _worldUnreadScheduled = true; + Dispatcher.UIThread.Post(() => + { + _worldUnreadScheduled = false; + if (!WorldWorkspaceCanRead || !ReferenceEquals(Owner.SelectedPage, this)) return; + AsyncRelayCommand? command = IsWorldListPage && _worldDraft.WorldsPhase == WorldReadPhase.Unread ? RefreshWorldsCommand + : IsInstanceServersPage && _worldDraft.ServersPhase == WorldReadPhase.Unread ? RefreshInstanceServersCommand + : IsWorldDatapacksPage && CurrentWorldPacks.Phase == WorldReadPhase.Unread ? RefreshWorldDatapacksCommand : null; + if (command is { IsRunning: false } && command.CanExecute(null)) command.Execute(null); + }, DispatcherPriority.Background); + } + private void NotifyWorldCommands() + { + if (!_worldWorkspaceReady) return; + foreach (var command in new IRelayCommand[] { ConnectInstanceServerCommand, RefreshWorldsCommand, RefreshWorldDatapacksCommand, ShowWorldInformationCommand, ShowWorldDatapacksCommand, BackFromWorldCommand, OpenWorldSavesDirectoryCommand, OpenWorldDirectoryCommand, OpenWorldDatapacksDirectoryCommand, SelectAllWorldDatapacksCommand, ClearWorldDatapackSelectionCommand, RefreshInstanceServersCommand, DiscardInstanceServersCommand, SaveInstanceServersCommand, AddInstanceServerCommand, EditInstanceServerCommand, RemoveInstanceServerCommand, ApplyInstanceServerDraftCommand, CancelInstanceServerEditorCommand }) command.NotifyCanExecuteChanged(); + } + private void FilterWorldRows(InstanceWorldDraft? target = null) + { + var draft = target ?? _worldDraft; var query = draft.WorldQuery.Trim(); draft.FilteredWorlds.Clear(); + foreach (var row in draft.Worlds.Where(row => query.Length == 0 || (row.Name + " " + row.DirectoryName + " " + row.Version).Contains(query, StringComparison.OrdinalIgnoreCase)).OrderBy(row => row.DirectoryName, StringComparer.Ordinal)) draft.FilteredWorlds.Add(row); + if (!ReferenceEquals(draft, _worldDraft)) return; + OnPropertyChanged(nameof(WorldCountSummary)); OnPropertyChanged(nameof(WorldListStatus)); OnPropertyChanged(nameof(ShowWorldListStatus)); + } + private async Task RefreshWorldsAsync() + { + if (!WorldWorkspaceCanRead || SelectedInstance is not { } instance) return; + var draft = _worldDraft; draft.WorldsPhase = WorldReadPhase.Loading; NotifyWorldPresentation(); IReadOnlyList? rows = null; + var completed = await Owner.RunInlineAsync("读取实例存档", async ct => rows = await ((IInstanceWorldService)Service).GetInstanceWorldsAsync(instance.Id, ct)); + if (completed && rows is not null) + { + var selected = draft.SelectedWorld?.DirectoryName; draft.Worlds.Clear(); + foreach (var row in rows) draft.Worlds.Add(new(row, OpenWorldDetails)); + draft.SelectedWorld = draft.Worlds.FirstOrDefault(row => row.DirectoryName == selected); draft.WorldsPhase = WorldReadPhase.Ready; + if (draft.SelectedWorld is null) draft.WorldRoute = "list"; + FilterWorldRows(draft); + } + else draft.WorldsPhase = WorldReadPhase.Error; + if (ReferenceEquals(draft, _worldDraft)) NotifyWorldPresentation(); + } + private void OpenWorldDetails(InstanceWorldRowViewModel row) + { + if (row.HasError || !_worldDraft.Worlds.Contains(row)) return; + _worldDraft.SelectedWorld = row; _worldDraft.WorldRoute = "info"; EnsurePackDraft(); NotifyWorldPresentation(); + } + private void EnsurePackDraft() + { + if (SelectedWorldRow is not { } row || _worldDraft.Packs.ContainsKey(row.DirectoryName)) return; + var packs = new WorldPackDraft(); packs.Selected.CollectionChanged += (_, _) => { if (ReferenceEquals(CurrentWorldPacks, packs)) { OnPropertyChanged(nameof(HasSelectedDatapacks)); OnPropertyChanged(nameof(DatapackSelectionSummary)); NotifyWorldEditingCommands(); } }; + _worldDraft.Packs.Add(row.DirectoryName, packs); + } + private static void FillPacks(WorldPackDraft packs, IReadOnlyList rows) + { + packs.Selected.Clear(); packs.Rows.Clear(); foreach (var row in rows) packs.Rows.Add(new(row)); packs.Phase = WorldReadPhase.Ready; FilterPackRows(packs); + } + private static void FilterPackRows(WorldPackDraft packs) + { + packs.Filtered.Clear(); foreach (var row in packs.Rows.Where(row => (row.Name + " " + row.Description).Contains(packs.Query.Trim(), StringComparison.OrdinalIgnoreCase)).OrderBy(row => row.Name, StringComparer.Ordinal)) packs.Filtered.Add(row); + } + private async Task RefreshWorldPacksAsync() + { + if (!WorldWorkspaceCanRead || SelectedInstance is not { } instance || SelectedWorldRow is not { HasError: false } world) return; + EnsurePackDraft(); var packs = CurrentWorldPacks; packs.Phase = WorldReadPhase.Loading; NotifyWorldPresentation(); IReadOnlyList? rows = null; + var completed = await Owner.RunInlineAsync("读取世界数据包", async ct => rows = await ((IInstanceWorldService)Service).GetWorldDatapacksAsync(instance.Id, world.DirectoryName, ct)); + if (completed && rows is not null) FillPacks(packs, rows); else packs.Phase = WorldReadPhase.Error; + if (ReferenceEquals(CurrentWorldPacks, packs)) NotifyWorldPresentation(); + if (completed && ReferenceEquals(CurrentWorldPacks, packs) && Service is IInstanceWorldEditService && !IsWorldSettingsDirty) await ReadWorldEditStateAsync(false); + } + public async Task ImportWorldDatapackFileAsync(string path, string? expectedInstanceId = null, string? expectedWorldDirectory = null, string? expectedGameDirectory = null) + { + if (expectedInstanceId is not null && expectedInstanceId != SelectedInstance?.Id || expectedWorldDirectory is not null && expectedWorldDirectory != SelectedWorldRow?.DirectoryName + || expectedGameDirectory is not null && expectedGameDirectory != SelectedInstance?.GameDirectory) + { _worldDraft.Feedback = "选择目标已经改变,未导入文件。"; NotifyWorldPresentation(); return false; } + if (!CanImportWorldDatapack || SelectedInstance is not { } instance || SelectedWorldRow is not { } world) + { _worldDraft.Feedback = "当前目标不可导入。" + WorldWorkspaceCapability; NotifyWorldPresentation(); return false; } + var draft = _worldDraft; var packs = CurrentWorldPacks; WorldDatapackFile? imported = null; IReadOnlyList? rows = null; + var completed = await Owner.RunAsync("导入世界数据包文件", async ct => + { + imported = await ((IInstanceWorldService)Service).ImportWorldDatapackAsync(instance.Id, world.DirectoryName, path, ct); + rows = await ((IInstanceWorldService)Service).GetWorldDatapacksAsync(instance.Id, world.DirectoryName, ct); + }); + if (rows is not null) FillPacks(packs, rows); + draft.Feedback = completed && imported is not null ? $"已导入 {imported.Name}。{imported.Status}" : imported is not null ? "文件已导入,但列表刷新失败,请重新读取。" : "导入未完成,请重新读取核对文件列表。"; + if (ReferenceEquals(draft, _worldDraft)) NotifyWorldPresentation(); + if (completed && ReferenceEquals(draft, _worldDraft) && Service is IInstanceWorldEditService && !IsWorldSettingsDirty) await ReadWorldEditStateAsync(false); + return completed; + } + private async Task ReadInstanceServersAsync(bool discardDraft) + { + if (!WorldWorkspaceCanRead || SelectedInstance is not { } instance) return; + var draft = _worldDraft; + if (!discardDraft && (draft.ServerDirty || draft.EditorOpen)) { draft.Feedback = "草稿仍保留,请先保存或显式放弃并重新读取。"; NotifyWorldPresentation(); return; } + draft.ServersPhase = WorldReadPhase.Loading; NotifyWorldPresentation(); InstanceServerList? result = null; + var completed = await Owner.RunAsync("读取实例服务器", async ct => result = await ((IInstanceWorldService)Service).GetInstanceServersAsync(instance.Id, ct), true); + if (completed && result is not null) LoadServerList(draft, result); + else { draft.ServersPhase = WorldReadPhase.Error; draft.Feedback = "读取未完成,已有草稿仍保留。"; } + if (ReferenceEquals(draft, _worldDraft)) NotifyWorldPresentation(); + if (ReferenceEquals(draft, _worldDraft) && completed) await RefreshInstanceServerStatusAsync(); + } + private static void LoadServerList(InstanceWorldDraft draft, InstanceServerList list) + { + foreach (var row in draft.Servers) row.Dispose(); draft.Servers.Clear(); foreach (var row in list.Entries) draft.Servers.Add(new(Guid.NewGuid(), row.ExistingIndex, row.Name, row.Address)); + draft.ServerRevision = list.Revision; draft.ServerDirty = false; draft.ServerConflict = false; draft.ServersPhase = WorldReadPhase.Ready; draft.EditorOpen = false; draft.EditingServer = null; draft.SelectedServer = null; + if (list.BackupPath is not null) draft.Backup = list.BackupPath; + } + private void BeginServerEditor(InstanceServerDraftViewModel? server) + { + _worldDraft.EditingServer = server; _worldDraft.EditorName = server?.Name ?? ""; _worldDraft.EditorAddress = server?.Address ?? ""; _worldDraft.EditorOpen = true; NotifyWorldPresentation(); + } + private void ApplyServerEditor() + { + var name = ServerNameDraft.Trim(); var address = ServerAddressDraft.Trim(); + if (name.Length is 0 or > 128 || name.Any(char.IsControl) || address.Length is 0 or > 1024 || address.Any(c => char.IsControl(c) || char.IsWhiteSpace(c))) + { Owner.ShowError("请填写有效的服务器名称与地址。名称最多128字符,地址不能包含空白。"); return; } + var previous = _worldDraft.EditingServer; var row = new InstanceServerDraftViewModel(previous?.DraftId ?? Guid.NewGuid(), previous?.ExistingIndex, name, address); + if (previous is not null && _worldDraft.Servers.IndexOf(previous) is var index && index >= 0) _worldDraft.Servers[index] = row; else _worldDraft.Servers.Add(row); + _worldDraft.SelectedServer = row; _worldDraft.EditorOpen = false; _worldDraft.ServerDirty = true; _worldDraft.Feedback = "已更新草稿;尚未写入 servers.dat。"; NotifyWorldPresentation(); + } + private async Task SaveInstanceServersDraftAsync() + { + if (!WorldWorkspaceCanWrite || !_worldDraft.ServerDirty || _worldDraft.ServerConflict || _worldDraft.EditorOpen || SelectedInstance is not { } instance) return; + var draft = _worldDraft; var entries = draft.Servers.Select(row => new InstanceServerEdit(row.ExistingIndex, row.Name, row.Address)).ToArray(); InstanceServerList? saved = null; var conflict = false; + var completed = await Owner.RunAsync("保存当前实例服务器", async ct => + { + var service = (IInstanceWorldService)Service; + var current = await service.GetInstanceServersAsync(instance.Id, ct); + if (current.Revision != draft.ServerRevision) { conflict = true; return; } + try { saved = await service.SaveInstanceServersAsync(instance.Id, draft.ServerRevision, entries, ct); } + catch (IOException) { conflict = true; throw; } + }); + if (completed && saved is not null) { LoadServerList(draft, saved); draft.Feedback = "服务器列表已保存。"; } + else { draft.ServerConflict = conflict; draft.Feedback = conflict ? "文件已有外部修改或保存未完成;当前草稿仍保留,请核对后重新读取。" : "保存未完成,当前草稿仍保留。"; } + if (ReferenceEquals(draft, _worldDraft)) NotifyWorldPresentation(); + } + private Task OpenWorldFolderAsync(string relative) + { + if (!WorldWorkspaceCanRead || SelectedInstance is not { } instance) return Task.CompletedTask; + return Owner.RunControlAsync("打开存档文件夹", async ct => + { + var game = SafePath.Canonical(instance.GameDirectory); var path = SafePath.Within(game, relative); + if (!SafePath.IsWithin(SafePath.Canonical(Service.Paths.DataDirectory), game) || !Directory.Exists(path)) throw new IOException("文件夹不存在或不在当前隔离实例内。"); + await Owner.ExternalLauncher.OpenDirectoryAsync(path, ct); + }); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.cs b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.cs new file mode 100644 index 00000000..be2f4dd1 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/InstancesPageViewModel.cs @@ -0,0 +1,205 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record InstanceLoaderChoice(string Id, string Name); + +public sealed partial class InstancesPageViewModel : PageViewModel +{ + private bool _refreshing; + private bool _draftLoaded; + private bool _runtimeDirty; + private string _instanceName = "原版 1.21.1"; + private string _versionId = "1.21.1"; + private string _fabricLoaderVersion = "0.16.14"; + private InstanceLoaderChoice _selectedLoader = null!; + private string _javaExecutable = ""; + private decimal _memoryMiB = 2048; + private GameInstance? _selectedInstance; + private JavaInstallation? _selectedJava; + private string _planDiagnostics = ""; + public ObservableCollection Instances { get; } = []; + public ObservableCollection JavaInstallations { get; } = []; + public IReadOnlyList LoaderChoices { get; } = [new("vanilla", "原版"), new("fabric", "Fabric")]; + public string InstanceName { get => _instanceName; set { SetProperty(ref _instanceName, value); NotifyCommands(); } } + public string VersionId { get => _versionId; set { SetProperty(ref _versionId, value); OnPropertyChanged(nameof(CreationHint)); NotifyCommands(); } } + public string FabricLoaderVersion { get => _fabricLoaderVersion; set { SetProperty(ref _fabricLoaderVersion, value); OnPropertyChanged(nameof(CreationHint)); NotifyCommands(); } } + public InstanceLoaderChoice SelectedLoader + { + get => _selectedLoader; + set + { + if (value is null) return; + var oldDefaultName = $"{_selectedLoader.Name} {VersionId}"; + if (!SetProperty(ref _selectedLoader, value)) return; + if (InstanceName == oldDefaultName) InstanceName = $"{value.Name} {VersionId}"; + OnPropertyChanged(nameof(IsFabricCreation)); OnPropertyChanged(nameof(CreationHint)); NotifyCommands(); + } + } + public bool IsFabricCreation => SelectedLoader.Id == "fabric"; + public string CreationHint => SelectedLoader.Id switch + { + "vanilla" => "创建原版 Minecraft 实例后,再安装并启动。", + "fabric" when string.IsNullOrWhiteSpace(FabricLoaderVersion) => "请明确填写 Fabric Loader 版本。", + "fabric" => $"Minecraft {VersionId} + Fabric Loader {FabricLoaderVersion};创建后安装所需依赖。", + _ => $"暂不支持加载器 {SelectedLoader.Id},不会作为原版创建。" + }; + public string JavaExecutable { get => _javaExecutable; set { if (SetProperty(ref _javaExecutable, value) && !_refreshing) { _runtimeDirty = true; OnPropertyChanged(nameof(RuntimeDraftSummary)); } } } + public decimal MemoryMiB { get => _memoryMiB; set { if (SetProperty(ref _memoryMiB, value) && !_refreshing) { _runtimeDirty = true; OnPropertyChanged(nameof(RuntimeDraftSummary)); } } } + public string RuntimeDraftSummary => _runtimeDirty ? "Java 与内存有未应用的修改。" : "当前显示已保存的全局 Java 与内存。"; + public string PlanDiagnostics { get => _planDiagnostics; private set { SetProperty(ref _planDiagnostics, value); OnPropertyChanged(nameof(HasPlanDiagnostics)); } } + public bool HasPlanDiagnostics => PlanDiagnostics.Length > 0; + public GameInstance? SelectedInstance + { + get => _selectedInstance; + set + { + // Filtering a list must not erase the launcher's persisted current instance. + if (value is null && !_refreshing) return; + if (!_refreshing && !Owner.CanMutate) { OnPropertyChanged(nameof(SelectedInstance)); return; } + var changedDirectory = _selectedInstance?.Id != value?.Id || _selectedInstance?.GameDirectory != value?.GameDirectory; + if (!SetProperty(ref _selectedInstance, value)) return; + if (changedDirectory) { ResetContentDirectory(); ContentEntries.Clear(); SelectedContent = null; } + ClearModUpdates(); + ScheduleModRelations(); + OnPropertyChanged(nameof(InstanceSummary)); + OnPropertyChanged(nameof(LaunchPrerequisite)); + NotifyCommands(); + if (!_refreshing && value is not null) + _ = Owner.RunAsync("选择实例", ct => Service.SelectInstanceAsync(value.Id, ct)); + } + } + public JavaInstallation? SelectedJava + { + get => _selectedJava; + set { if (SetProperty(ref _selectedJava, value) && value is not null && !_refreshing) JavaExecutable = value.ExecutablePath; } + } + public string InstanceSummary => SelectedInstance is { } item ? $"Minecraft {DisplayGameVersion(item)} · {LoaderSummary(item)} · {(item.Installed ? "已安装" : "尚未安装")}\n{item.GameDirectory}" : "尚未选择实例。"; + private static string LoaderSummary(GameInstance item) => item.Loader switch + { + "vanilla" => "原版", + "fabric" => "Fabric Loader " + (string.IsNullOrWhiteSpace(item.LoaderVersion) ? "版本缺失" : item.LoaderVersion), + "quilt" or "forge" or "neoforge" => item.Loader + " " + item.LoaderVersion, + _ => "未支持的加载器:" + item.Loader + }; + private bool SelectedInstanceSupported + { + get + { + if (SelectedInstance is not { Loader: "vanilla" or "fabric" or "quilt" or "forge" or "neoforge" or "cleanroom" or "legacyfabric" or "optifine" or "labymod" or "liteloader" } instance) return false; + try { _ = Core.Instances.InstanceIdentity.GameVersion(instance); return true; } + catch (InvalidDataException) { return false; } + } + } + public string LaunchPrerequisite + { + get + { + if (SelectedInstance is null) return "创建或选择一个实例。"; + if (!SelectedInstanceSupported) return $"当前候选不支持加载器 {SelectedInstance.Loader},不会按原版安装或启动。"; + if (IsSelectedInstanceRunning) return "可再开一个游戏窗口;多开共享此实例的配置和存档,同一世界不可同时打开。关闭启动器不会结束游戏。"; + var account = Owner.Snapshot.Accounts.FirstOrDefault(a => a.Id == Owner.Snapshot.SelectedAccountId); + if (account is null) return "请在账户页添加并选择账户。"; + if (!SelectedInstance.Installed) return "首次启动会自动下载并校验游戏本体与加载器,然后启动。"; + return Owner.Home.DestinationSummary; + } + } + public AsyncRelayCommand CreateInstanceCommand { get; } + public AsyncRelayCommand DiscoverJavaCommand { get; } + public AsyncRelayCommand SaveRuntimeCommand { get; } + public RelayCommand AutomaticJavaCommand { get; } + public AsyncRelayCommand InstallCommand { get; } + public AsyncRelayCommand LaunchCommand { get; } + public AsyncRelayCommand InspectPlanCommand { get; } + public AsyncRelayCommand StopGameCommand => Owner.StopGameCommand; + + public InstancesPageViewModel(MainWindowViewModel owner) : base(owner, "实例与启动", "创建实例,选择运行时,然后安装并启动 Minecraft。") + { + _selectedLoader = LoaderChoices[0]; + CreateInstanceCommand = AsyncCommand(CreateInstanceAsync, () => CanEdit && !string.IsNullOrWhiteSpace(InstanceName) && !string.IsNullOrWhiteSpace(VersionId) + && (SelectedLoader.Id == "vanilla" || (IsFabricCreation && !string.IsNullOrWhiteSpace(FabricLoaderVersion)))); + DiscoverJavaCommand = AsyncCommand(() => Owner.RunAsync("发现 Java", async ct => { await Service.DiscoverJavaAsync(ct); }), () => CanEdit); + SaveRuntimeCommand = AsyncCommand(SaveRuntimeAsync, () => CanEdit); + AutomaticJavaCommand = Command(() => { JavaExecutable = ""; SelectedJava = null; }, () => CanEdit); + InstallCommand = AsyncCommand(() => Owner.RunAsync("安装/校验实例", ct => Service.InstallInstanceAsync(SelectedInstance!.Id, ct)), () => CanPrepareSelectedInstance); + LaunchCommand = AsyncCommand(LaunchSelectedInstanceAsync, CanLaunch); + InspectPlanCommand = AsyncCommand(() => Owner.RunAsync("检查启动计划", async ct => + { + var plan = await Service.BuildLaunchPlanAsync(SelectedInstance!.Id, ct); + PlanDiagnostics = $"Java:{plan.JavaExecutable}\n架构:{plan.JavaRuntimeArchitecture}\n类路径:{plan.ClasspathEntries.Count} 项\n" + string.Join("\n", plan.RedactedDiagnostics.Select(s => UiPrivacy.Redact(s))); + }), () => CanPrepareSelectedInstance && SelectedInstance?.Installed == true); + InitializeWorkspace(); + InitializePresentation(); + InitializeScreenshotActions(); + InitializePackExport(); + InitializeWorldWorkspace(); + InitializeComponents(); + } + private async Task CreateInstanceAsync() + { + var loader = SelectedLoader.Id; + var name = InstanceName.Trim(); + var gameVersion = VersionId.Trim(); + var loaderVersion = FabricLoaderVersion.Trim(); + await Owner.RunAsync("创建实例", async ct => + { + switch (loader) + { + case "vanilla": await Service.CreateInstanceAsync(name, gameVersion, ct); break; + case "fabric": await Service.CreateFabricInstanceAsync(name, gameVersion, loaderVersion, ct); break; + default: throw new InvalidOperationException("暂不支持此加载器,不会作为原版创建。"); + } + }); + } + public bool IsSelectedInstanceRunning => SelectedInstance is { } instance && + (Owner.Snapshot.GameSessions.Any(s => s.InstanceId == instance.Id) + || Owner.Snapshot.GameSessions.Count == 0 && Owner.Snapshot.GameProcessId is not null && Owner.Snapshot.SelectedInstanceId == instance.Id); + public bool CanPrepareSelectedInstance => CanEdit && !IsSelectedInstanceRunning && SelectedInstanceSupported; + public string LaunchCaption => IsSelectedInstanceRunning ? "再开一个游戏窗口" : Localization.UiLocalization.Instance.Text("启动游戏"); + public string ConcurrentPlayHint => IsSelectedInstanceRunning ? "多开将共享此实例的配置和存档;同一世界不可同时打开。运行期间请勿修改模组与资源。" : ""; + private bool CanLaunch() => CanEdit && (!IsSelectedInstanceRunning || SelectedInstance?.Installed == true) && SelectedInstanceSupported && Owner.Snapshot.Accounts.Any(a => a.Id == Owner.Snapshot.SelectedAccountId); + private Task LaunchSelectedInstanceAsync() + { + if (!CanLaunch() || SelectedInstance is not { } instance) return Task.CompletedTask; + var destination = Owner.Home.SelectedServerId; + return Owner.RunLaunchAsync(instance, async ct => + { + if (!instance.Installed) await Service.InstallInstanceAsync(instance.Id, ct); + ct.ThrowIfCancellationRequested(); + await Service.LaunchAsync(instance.Id, destination, ct); + }); + } + private async Task SaveRuntimeAsync() + { + if (MemoryMiB is < 512 or > 32768 || decimal.Truncate(MemoryMiB) != MemoryMiB) { Owner.ShowError("内存须为 512–32768 MiB 的整数。"); return; } + var java = JavaExecutable.Trim(); + if (java.Length > 0 && !Path.IsPathFullyQualified(java)) { Owner.ShowError("Java 路径须为绝对路径;留空使用自动选择。"); return; } + if (await Owner.RunAsync("保存全局 Java 与内存", ct => Service.SaveSettingsAsync(Owner.Snapshot.Settings with { JavaExecutable = java.Length == 0 ? null : java, MemoryMiB = (int)MemoryMiB, LaunchOptions = (Owner.Snapshot.Settings.LaunchOptions ?? new()) with { AutomaticMemory = false } }, ct))) + { + _runtimeDirty = false; Refresh(Service.Snapshot); + } + } + public override void Refresh(LauncherSnapshot snapshot) + { + _refreshing = true; + try + { + if (!Instances.SequenceEqual(snapshot.Instances)) { Instances.Clear(); foreach (var item in snapshot.Instances) Instances.Add(item); } + RefreshFolders(); + // Populate the bound list before selecting a newly published instance; otherwise ListBox writes null back. + FilterInstances(); + SelectedInstance = Instances.FirstOrDefault(i => i.Id == snapshot.SelectedInstanceId); + if (!JavaInstallations.SequenceEqual(snapshot.JavaInstallations)) { JavaInstallations.Clear(); foreach (var java in snapshot.JavaInstallations) JavaInstallations.Add(java); } + SelectedJava = JavaInstallations.FirstOrDefault(j => j.ExecutablePath == snapshot.Settings.JavaExecutable); + if (!_draftLoaded || !_runtimeDirty) { JavaExecutable = snapshot.Settings.JavaExecutable ?? ""; MemoryMiB = snapshot.Settings.MemoryMiB; _draftLoaded = true; } + OnPropertyChanged(nameof(RuntimeDraftSummary)); + OnPropertyChanged(nameof(LaunchPrerequisite)); + } + finally { _refreshing = false; } + RefreshWorkspaceSnapshot(snapshot); + base.Refresh(snapshot); + } + public override void NotifyCommands() { base.NotifyCommands(); foreach (var image in ScreenshotPreviews) image.RemoveCommand.NotifyCanExecuteChanged(); OnPropertyChanged(nameof(IsSelectedInstanceRunning)); OnPropertyChanged(nameof(CanUpdateContent)); OnPropertyChanged(nameof(CanTrashContent)); OnPropertyChanged(nameof(CanOpenContentProject)); OnPropertyChanged(nameof(CanPrepareSelectedInstance)); OnPropertyChanged(nameof(LaunchPrerequisite)); OnPropertyChanged(nameof(LaunchCaption)); OnPropertyChanged(nameof(ConcurrentPlayHint)); OnPropertyChanged(nameof(CanImportContent)); ScheduleContentRefresh(); NotifyWorldWorkspace(); } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/JavaTrustToolsViewModel.cs b/src/SHOU.Launcher.Desktop/ViewModels/JavaTrustToolsViewModel.cs new file mode 100644 index 00000000..14185fd3 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/JavaTrustToolsViewModel.cs @@ -0,0 +1,146 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record JavaTrustFindingViewModel(string Path, string Hash, string Summary, string Details); + +public sealed class JavaTrustToolsViewModel : PageViewModel +{ + private readonly IJavaTrustWorkflowService? workflow; + private string target = "", status = "", provenance = ""; + private long generation; + private bool inspected, repairable, preferenceLoaded, autoRepair = true, preferenceDirty, detailsExpanded; + private JavaTrustDerivation? prepared; + private JavaTrustSelectionChange? selectionChange; + public JavaTrustToolsViewModel(MainWindowViewModel owner) : base(owner, "Java 证书", "只读检查、独立副本与默认 Java 选择") + { + workflow = Service as IJavaTrustWorkflowService; + InspectCommand = AsyncCommand(InspectAsync, () => Owner.CanReadRemote && HasExplicitTarget); + PrepareCopyCommand = AsyncCommand(PrepareAsync, () => CanEdit && CanPrepare); + SelectCopyCommand = AsyncCommand(SelectAsync, () => CanEdit && CanSelectPrepared); + RestoreSelectionCommand = AsyncCommand(RestoreAsync, () => CanEdit && HasRollback); + SavePreferenceCommand = AsyncCommand(SavePreferenceAsync, () => CanEdit && preferenceDirty); + UseDefaultTargetCommand = Command(() => TargetJava = Owner.Snapshot.Settings.JavaExecutable ?? "", () => CanEdit && !string.IsNullOrWhiteSpace(Owner.Snapshot.Settings.JavaExecutable)); + } + public string TargetJava + { + get => target; + set + { + if (!SetProperty(ref target, value ?? "")) return; + ++generation; inspected = repairable = false; prepared = null; Findings.Clear(); Provenance = ""; + Status = ""; + NotifyPresentation(); + } + } + public bool HasExplicitTarget => !string.IsNullOrWhiteSpace(TargetJava) && Path.IsPathFullyQualified(TargetJava.Trim()); + public bool WorkflowAvailable => workflow is not null; + public bool CanPrepare => WorkflowAvailable && HasExplicitTarget && inspected && repairable && prepared is null; + public bool HasPrepared => prepared is not null; + public bool CanSelectPrepared => prepared is { Java.IsUsable: true } copy && !SamePath(copy.Java.ExecutablePath, Owner.Snapshot.Settings.JavaExecutable); + public string PreparedJava => prepared?.Java.ExecutablePath ?? ""; + public bool HasRollback => selectionChange is not null; + public string RollbackLabel => selectionChange?.PreviousJavaExecutable is null ? "恢复自动选择" : "恢复之前的默认 Java"; + public string CurrentDefaultJava => Owner.Snapshot.Settings.JavaExecutable ?? "自动选择 Java"; + public bool AutoRepair + { + get => autoRepair; + set { if (SetProperty(ref autoRepair, value)) { preferenceDirty = value != Owner.Snapshot.Settings.ConduitJavaTrustAutoRepair; OnPropertyChanged(nameof(PreferenceSummary)); NotifyCommands(); } } + } + public string PreferenceSummary => preferenceDirty ? "有未保存的更改。" : ""; + public string Status { get => status; private set => SetProperty(ref status, value); } + public string Provenance { get => provenance; private set { SetProperty(ref provenance, value); OnPropertyChanged(nameof(HasProvenance)); } } + public bool HasProvenance => Provenance.Length > 0; + public bool DetailsExpanded { get => detailsExpanded; set => SetProperty(ref detailsExpanded, value); } + public ObservableCollection Findings { get; } = []; + public AsyncRelayCommand InspectCommand { get; } + public AsyncRelayCommand PrepareCopyCommand { get; } + public AsyncRelayCommand SelectCopyCommand { get; } + public AsyncRelayCommand RestoreSelectionCommand { get; } + public AsyncRelayCommand SavePreferenceCommand { get; } + public RelayCommand UseDefaultTargetCommand { get; } + private static bool SamePath(string? first, string? second) => string.Equals(first, second, OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); + private bool TryTarget(out string path) + { + path = TargetJava.Trim(); + if (HasExplicitTarget) return true; + Status = "请明确选择 Java 可执行文件的绝对路径。"; return false; + } + private async Task InspectAsync() + { + if (!TryTarget(out var path)) return; + var current = generation; inspected = repairable = false; prepared = null; Findings.Clear(); Provenance = ""; + Status = "正在只读检查 Java…"; NotifyPresentation(); + IReadOnlyList? results = null; + var success = await Owner.RunAsync("检查 Java 证书", async ct => { results = await Service.InspectJavaTrustAsync(path, ct); ct.ThrowIfCancellationRequested(); }, true); + if (current != generation) return; + if (!success) { Status = "检查失败或已取消,结果未知。可重试,默认 Java 未改变。"; NotifyPresentation(); return; } + var items = results ?? []; ShowFindings(items); + inspected = items.Count > 0; + repairable = inspected && items.All(f => f.CanRepair) && items.Any(f => f.NeedsRepair); + Status = !inspected || items.Any(f => !f.CanRepair) ? "结果未知:检查不完整或策略不支持,暂不能自动修复。请查看检查详情。" + : repairable ? "需要修复:检测到已知证书问题,可创建独立修复副本。" + : "健康:没有发现当前策略识别的证书问题。"; + NotifyPresentation(); + } + private async Task PrepareAsync() + { + if (!TryTarget(out var path) || !CanPrepare) return; + var current = generation; Status = "正在创建并核验独立副本,尚未更改默认 Java…"; + JavaTrustDerivation? result = null; + var success = await Owner.RunAsync("创建 Java 修复副本", async ct => + { + result = await workflow!.PrepareJavaTrustCopyAsync(path, ct); ct.ThrowIfCancellationRequested(); + if (!result.Java.IsUsable || !Path.IsPathFullyQualified(result.Java.ExecutablePath)) throw new InvalidDataException("副本未通过 Java 探测。"); + }); + if (current != generation) return; + if (!success || result is null) { Status = "创建失败或已取消,未选用任何副本。可以重试。"; NotifyPresentation(); return; } + prepared = result; ShowFindings(result.Findings); + Provenance = UiPrivacy.Redact($"策略:{result.PolicyId}\n源 Java:{result.SourceJavaExecutable}\n副本:{result.Java.ExecutablePath}\n源 SHA-256:{result.SourceTreeSha256}\n副本 SHA-256:{result.OutputTreeSha256}\n来源记录:{result.ProvenancePath}"); + Status = "独立副本已核验,尚未选用。原始 Java 未修改。"; NotifyPresentation(); + } + private async Task SelectAsync() + { + if (prepared is not { } copy || !CanSelectPrepared) return; + var current = generation; JavaTrustSelectionChange? change = null; + var success = await Owner.RunAsync("选用 Java 修复副本", async ct => change = await workflow!.SelectJavaTrustCopyAsync(copy, ct)); + if (success && change is not null) { selectionChange = change; Status = "已选用并保存为默认 Java;实例独立设置保持。可以恢复之前的选择。"; } + else { if (current == generation) prepared = null; Status = "选用失败或已取消,请重新检查副本;未选用不完整副本。"; } + NotifyPresentation(); + } + private async Task RestoreAsync() + { + if (selectionChange is not { } change) return; + var success = await Owner.RunAsync("恢复 Java 选择", ct => workflow!.RestoreJavaTrustSelectionAsync(change, ct)); + if (success) { selectionChange = null; Status = "已恢复之前的 Java 选择,修复副本和来源记录保留。"; } + else Status = "恢复失败或已取消,未覆盖已保存的 Java 选择。"; + NotifyPresentation(); + } + private async Task SavePreferenceAsync() + { + var value = AutoRepair; + await Owner.RunAsync("保存 Java 自动修复偏好", ct => Service.SaveSettingsAsync(Service.Snapshot.Settings with { ConduitJavaTrustAutoRepair = value }, ct)); + preferenceDirty = AutoRepair != Owner.Snapshot.Settings.ConduitJavaTrustAutoRepair; + OnPropertyChanged(nameof(PreferenceSummary)); NotifyCommands(); + } + private void ShowFindings(IReadOnlyList findings) + { + Findings.Clear(); + foreach (var f in findings) Findings.Add(new(UiPrivacy.Redact(f.Path), f.Hash, + f.NeedsRepair ? f.CanRepair ? "可在独立副本中修复" : "需要处理,策略不支持" : f.CanRepair ? "未发现已知问题" : "未知,未能检查", UiPrivacy.Redact(f.Details))); + if (findings.Any(f => f.NeedsRepair || !f.CanRepair)) DetailsExpanded = true; + } + private void NotifyPresentation() + { + foreach (var name in new[] { nameof(HasExplicitTarget), nameof(CanPrepare), nameof(HasPrepared), nameof(CanSelectPrepared), nameof(PreparedJava), nameof(HasRollback), nameof(RollbackLabel), nameof(CurrentDefaultJava) }) OnPropertyChanged(name); + NotifyCommands(); + } + public override void Refresh(LauncherSnapshot snapshot) + { + if (!preferenceLoaded || !preferenceDirty) { autoRepair = snapshot.Settings.ConduitJavaTrustAutoRepair; preferenceLoaded = true; OnPropertyChanged(nameof(AutoRepair)); OnPropertyChanged(nameof(PreferenceSummary)); } + selectionChange = snapshot.Settings.JavaTrustSelection is { } change && SamePath(snapshot.Settings.JavaExecutable, change.SelectedJavaExecutable) ? change : null; + NotifyPresentation(); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/LauncherFeatures.cs b/src/SHOU.Launcher.Desktop/ViewModels/LauncherFeatures.cs new file mode 100644 index 00000000..35aa17ae --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/LauncherFeatures.cs @@ -0,0 +1,60 @@ +using CommunityToolkit.Mvvm.ComponentModel; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed class FeatureHideChoice(SettingsPageViewModel owner, string id, string title) : ObservableObject +{ + public string Id { get; } = id; + public string Title { get; } = title; + public bool Hidden { get => owner.IsFeatureHidden(Id); set { if (Hidden == value) return; owner.SetFeatureHidden(Id, value); } } + internal void Refresh() => OnPropertyChanged(nameof(Hidden)); +} +public sealed record FeatureHideGroup(string Title, IReadOnlyList Choices); +public static class LauncherFeatures +{ + public static IReadOnlyList<(string Group, string Id, string Title)> Entries { get; } = + [ + ("主页面", "download", "下载"), ("主页面", "settings", "设置"), ("主页面", "tools", "工具"), + ("设置子页面", "settings-launch", "启动"), ("设置子页面", "settings-java", "Java"), ("设置子页面", "settings-manage", "管理"), + ("设置子页面", "settings-appearance", "个性化"), ("设置子页面", "settings-language", "语言"), ("设置子页面", "settings-misc", "杂项"), + ("设置子页面", "settings-updates", "软件更新"), ("设置子页面", "settings-about", "软件信息"), ("设置子页面", "settings-feedback", "反馈"), ("设置子页面", "settings-logs", "查看日志"), + ("工具子页面", "tools-java", "Java 证书修复"), ("工具子页面", "tools-toolbox", "百宝箱"), + ("实例设置子页面", "instance-modify", "修改"), ("实例设置子页面", "instance-export", "导出"), ("实例设置子页面", "instance-worlds", "存档"), + ("实例设置子页面", "instance-screenshots", "截图"), ("实例设置子页面", "instance-mods", "模组"), ("实例设置子页面", "instance-resourcepacks", "资源包"), + ("实例设置子页面", "instance-shaders", "光影包"), ("实例设置子页面", "instance-schematics", "投影原理图"), ("实例设置子页面", "instance-servers", "服务器"), + ("实例设置子页面", "instance-relations", "模组关系"), ("特定功能", "instance-manager", "实例管理"), ("特定功能", "mod-updates", "模组更新"), ("特定功能", "feature-hide", "功能隐藏") + ]; + public static bool IsKnown(string id) => Entries.Any(e => e.Id == id); +} +public sealed partial class MainWindowViewModel +{ + private bool revealHiddenFeatures; + public bool RevealHiddenFeatures => revealHiddenFeatures; + public bool IsFeatureVisible(string id) => revealHiddenFeatures || Settings?.SavedPresentation.HiddenSections?.Contains(id) != true; + public IReadOnlyDictionary VisibleFeatures => LauncherFeatures.Entries.ToDictionary(e => e.Id, e => IsFeatureVisible(e.Id)); + public void ToggleHiddenFeatures() + { revealHiddenFeatures = !revealHiddenFeatures; OnPropertyChanged(nameof(RevealHiddenFeatures)); NotifyLauncherAppearance(); } + private void NotifyFeatureVisibility() + { + OnPropertyChanged(nameof(VisibleFeatures)); Instances?.NotifyFeatureNavigation(); + } +} +public sealed partial class SettingsPageViewModel +{ + public IReadOnlyList FeatureGroups { get; private set; } = []; + private void InitializeFeatureGroups() => FeatureGroups = LauncherFeatures.Entries.GroupBy(e => e.Group) + .Select(g => new FeatureHideGroup(g.Key, g.Select(e => new FeatureHideChoice(this, e.Id, e.Title)).ToArray())).ToArray(); + internal bool IsFeatureHidden(string id) => appearanceOptions.HiddenSections?.Contains(id) == true; + internal void SetFeatureHidden(string id, bool hidden) + { + if (!LauncherFeatures.IsKnown(id)) return; + SetHidden(id, hidden); RefreshFeatureChoices(); + } + private void RefreshFeatureChoices() { foreach (var choice in FeatureGroups.SelectMany(g => g.Choices)) choice.Refresh(); } +} +public sealed partial class InstancesPageViewModel +{ + public bool CanShowModUpdates => IsModsSection && Root.IsFeatureVisible("mod-updates") || IsResourceUpdateSection && Service is IInstanceResourceUpdateService; + internal void NotifyFeatureNavigation() { OnPropertyChanged(nameof(GameSections)); OnPropertyChanged(nameof(ResourceSections)); OnPropertyChanged(nameof(HasModUpdateStatus)); OnPropertyChanged(nameof(CanShowModUpdates)); } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/LoaderArtwork.cs b/src/SHOU.Launcher.Desktop/ViewModels/LoaderArtwork.cs new file mode 100644 index 00000000..85e66c61 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/LoaderArtwork.cs @@ -0,0 +1,20 @@ +using Avalonia.Media; +using Avalonia.Media.Imaging; +using Avalonia.Platform; + +namespace SHOU.Launcher.Desktop.ViewModels; + +internal static class LoaderArtwork +{ + private static readonly Dictionary Images = new(StringComparer.Ordinal); + public static IImage For(string loader) + { + var name = loader switch { "fabric" or "legacyfabric" => "Fabric", "quilt" => "Quilt", "optifine" => "Grass", "cleanroom" => "Cleanroom", "labymod" => "LabyMod", "liteloader" => "Egg", _ => "Anvil" }; + if (!Images.TryGetValue(name, out var image)) + { + using var stream = AssetLoader.Open(new("avares://SHOU.Launcher.Desktop/Assets/Minecraft/" + name + ".png")); + Images[name] = image = new Bitmap(stream); + } + return image; + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/LogsPageViewModel.cs b/src/SHOU.Launcher.Desktop/ViewModels/LogsPageViewModel.cs new file mode 100644 index 00000000..98660269 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/LogsPageViewModel.cs @@ -0,0 +1,39 @@ +using System.Collections.ObjectModel; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record LogLineViewModel(DateTimeOffset Timestamp, string Level, string Message) +{ + public string Time => Timestamp.ToLocalTime().ToString("HH:mm:ss.fff"); + public string Text => $"{Time} [{Level}] {Message}"; +} + +public sealed class LogsPageViewModel(MainWindowViewModel owner) : PageViewModel(owner, "日志", "实时、脱敏的启动器与游戏输出。最多保留最近 2000 行。") +{ + public const int Capacity = 2000; + public ObservableCollection Entries { get; } = []; + private readonly HashSet _seen = []; + private bool _followTail = true; + public bool FollowTail { get => _followTail; set => SetProperty(ref _followTail, value); } + private string _feedback = ""; + public string Feedback { get => _feedback; set => SetProperty(ref _feedback, value); } + public bool IsEmpty => Entries.Count == 0; + public string Summary => $"{Entries.Count} 行 · 复制与导出均使用脱敏内容"; + public string ExportText => string.Join(Environment.NewLine, Entries.Select(e => e.Text)); + internal void Append(LauncherLog log) + { + var line = new LogLineViewModel(log.Timestamp, UiPrivacy.Redact(log.Level), UiPrivacy.Redact(log.Message)); + if (!_seen.Add(line)) return; + Entries.Add(line); + while (Entries.Count > (Owner.Snapshot.Settings.Launcher?.LogLineLimit ?? Capacity)) { _seen.Remove(Entries[0]); Entries.RemoveAt(0); } + OnPropertyChanged(nameof(IsEmpty)); OnPropertyChanged(nameof(Summary)); OnPropertyChanged(nameof(ExportText)); + } + public void ClearDisplay() + { + Entries.Clear(); + _seen.Clear(); + OnPropertyChanged(nameof(IsEmpty)); OnPropertyChanged(nameof(Summary)); OnPropertyChanged(nameof(ExportText)); + Feedback = "已清空当前显示;磁盘日志保留。"; + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/MainWindowViewModel.BackgroundTasks.cs b/src/SHOU.Launcher.Desktop/ViewModels/MainWindowViewModel.BackgroundTasks.cs new file mode 100644 index 00000000..67c2f2ed --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/MainWindowViewModel.BackgroundTasks.cs @@ -0,0 +1,45 @@ +using CommunityToolkit.Mvvm.Input; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class MainWindowViewModel +{ + private bool backgroundInstall; + private Action? backgroundFailure; + private string? handledBackgroundError; + private DownloadsPageViewModel? notificationDownloads; + private bool taskNotificationVisible; + private string taskNotificationTitle = "", taskNotificationMessage = ""; + internal bool HasBackgroundInstall => backgroundInstall; + internal bool CanBrowseDownloads => !_disposed && !closing && (CanReadRemote || backgroundInstall && _executing); + public bool IsTaskNotificationVisible { get => taskNotificationVisible; private set => SetProperty(ref taskNotificationVisible, value); } + public string TaskNotificationTitle { get => taskNotificationTitle; private set => SetProperty(ref taskNotificationTitle, value); } + public string TaskNotificationMessage { get => taskNotificationMessage; private set => SetProperty(ref taskNotificationMessage, value); } + public RelayCommand ViewTaskNotificationCommand { get; private set; } = null!; + public RelayCommand DismissTaskNotificationCommand { get; private set; } = null!; + private void InitializeTaskNotifications() + { + ViewTaskNotificationCommand = new(() => + { + if (notificationDownloads is not { } downloads || _disposed) return; + downloads.SelectCategory("tasks"); SelectedPage = downloads; + IsTaskNotificationVisible = false; + }); + DismissTaskNotificationCommand = new(() => IsTaskNotificationVisible = false); + } + internal void ShowTaskNotification(DownloadsPageViewModel source, string title, string message) + { + if (_disposed || closing) return; + notificationDownloads = source; + TaskNotificationTitle = UiPrivacy.Redact(title); + TaskNotificationMessage = UiPrivacy.Redact(message); + IsTaskNotificationVisible = true; + } + internal async Task RunBackgroundInstallAsync(string label, Func action, Action failure) + { + if (!CanMutate || backgroundInstall) return false; + backgroundInstall = true; backgroundFailure = failure; + try { return await RunAsync(label, action); } + finally { backgroundInstall = false; backgroundFailure = null; if (!_disposed) NotifyState(); } + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/MainWindowViewModel.Launch.cs b/src/SHOU.Launcher.Desktop/ViewModels/MainWindowViewModel.Launch.cs new file mode 100644 index 00000000..0fa4efc8 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/MainWindowViewModel.Launch.cs @@ -0,0 +1,65 @@ +using SHOU.Launcher.Core.Abstractions; +using Avalonia.Threading; +using CommunityToolkit.Mvvm.Input; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class MainWindowViewModel +{ + private bool homeLaunching; + private string launchInstanceName = ""; + private int? dismissedLaunchProcessId; + private DispatcherTimer? launchWaitTimer; + public RelayCommand HomeLaunchActionCommand { get; } + public bool IsWaitingForGameWindow => Snapshot.LaunchActivity?.ProcessId is not null; + public bool IsHomeLaunching => homeLaunching || IsWaitingForGameWindow && Snapshot.LaunchActivity!.ProcessId != dismissedLaunchProcessId; + public string LaunchInstanceName => Snapshot.LaunchActivity?.InstanceName ?? launchInstanceName; + public string LaunchStage => Localization.UiLocalization.Instance.Text(Snapshot.LaunchActivity?.Stage ?? (Snapshot.State == "Installing" ? "下载并检查游戏文件" : "准备游戏")); + public string LaunchHeading => Localization.UiLocalization.Instance.Text(Snapshot.LaunchActivity?.Stage == "等待游戏窗口" ? "游戏正在初始化" : "正在启动游戏"); + public string HomeLaunchActionCaption => Localization.UiLocalization.Instance.Text(IsWaitingForGameWindow ? "返回启动器" : "取消"); + public string LaunchWaitSummary => Snapshot.LaunchActivity?.ProcessStartedAt is { } started + ? Localization.UiLocalization.Instance.Format("已等待 {0:0} 秒,正在初始化游戏窗口…", Math.Max(0, (DateTimeOffset.UtcNow - started).TotalSeconds)) : ""; + public string LaunchAuthentication => Snapshot.LaunchActivity?.Authentication ?? + (Snapshot.Accounts.FirstOrDefault(a => a.Id == Snapshot.SelectedAccountId)?.Kind switch + { AccountKind.Microsoft => "微软正版验证", AccountKind.Yggdrasil => "外置账户验证", _ => "离线角色" }); + public bool IsLaunchProgressIndeterminate => Snapshot.LaunchActivity?.TotalBytes is not > 0; + public double LaunchProgress => Snapshot.LaunchActivity is { TotalBytes: > 0 } progress + ? Math.Clamp(100d * progress.BytesReceived / progress.TotalBytes.Value, 0, 100) : 0; + public string LaunchTransferSummary => Snapshot.LaunchActivity is { TotalBytes: > 0 } progress + ? $"当前文件 {LaunchProgress:F0}% · {progress.BytesReceived / 1048576d:F1} / {progress.TotalBytes.Value / 1048576d:F1} MiB" : ""; + public async Task RunLaunchAsync(GameInstance instance, Func action) + { + if (!CanMutate || homeLaunching) return; + dismissedLaunchProcessId = null; launchInstanceName = instance.Name; homeLaunching = true; + SelectedPage = Home; NotifyLaunchPresentation(); + try { await RunAsync("启动游戏", action); } + finally { homeLaunching = false; NotifyState(); } + } + private void HomeLaunchAction() + { + if (Snapshot.LaunchActivity?.ProcessId is { } pid) + { + dismissedLaunchProcessId = pid; homeLaunching = false; + NotifyState(); // Presentation only. The committed game and its window observer keep running. + } + else CancelCurrentOperation(); + } + private void NotifyLaunchPresentation() + { + if (IsWaitingForGameWindow && IsHomeLaunching && !_disposed) + { + if (launchWaitTimer is null) + { + launchWaitTimer = new() { Interval = TimeSpan.FromSeconds(1) }; + launchWaitTimer.Tick += (_, _) => OnPropertyChanged(nameof(LaunchWaitSummary)); + } + launchWaitTimer.Start(); + } + else launchWaitTimer?.Stop(); + foreach (var property in new[] { nameof(IsHomeLaunching), nameof(LaunchInstanceName), nameof(LaunchStage), nameof(LaunchHeading), + nameof(LaunchAuthentication), nameof(IsLaunchProgressIndeterminate), nameof(LaunchProgress), nameof(LaunchTransferSummary), + nameof(IsWaitingForGameWindow), nameof(HomeLaunchActionCaption), nameof(LaunchWaitSummary) }) + OnPropertyChanged(property); + HomeLaunchActionCommand.NotifyCanExecuteChanged(); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/MainWindowViewModel.cs b/src/SHOU.Launcher.Desktop/ViewModels/MainWindowViewModel.cs new file mode 100644 index 00000000..e89b3c0d --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/MainWindowViewModel.cs @@ -0,0 +1,397 @@ +using System.Collections.ObjectModel; +using System.Text.RegularExpressions; +using Avalonia; +using Avalonia.Styling; +using Avalonia.Threading; +using CommunityToolkit.Mvvm.ComponentModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public abstract class PageViewModel(MainWindowViewModel owner, string title, string description) : ObservableObject +{ + protected MainWindowViewModel Owner { get; } = owner; + public MainWindowViewModel Root => Owner; + protected ILauncherService Service => Owner.Service; + public string Title => Localization.UiLocalization.Instance.Text(title); + public string Description => Localization.UiLocalization.Instance.Text(description); + private readonly List _commands = []; + protected AsyncRelayCommand AsyncCommand(Func execute, Func? canExecute = null) + { + var command = canExecute is null ? new AsyncRelayCommand(execute) : new AsyncRelayCommand(execute, canExecute); + _commands.Add(command); + return command; + } + protected RelayCommand Command(Action execute, Func? canExecute = null) + { + var command = canExecute is null ? new RelayCommand(execute) : new RelayCommand(execute, canExecute); + _commands.Add(command); + return command; + } + public virtual void Refresh(LauncherSnapshot snapshot) => NotifyCommands(); + public virtual void NotifyCommands() + { + foreach (var command in _commands) command.NotifyCanExecuteChanged(); + OnPropertyChanged(nameof(CanEdit)); + } + public bool CanEdit => Owner.CanMutate; +} + +public sealed partial class MainWindowViewModel : ObservableObject, IDisposable +{ + internal ILauncherService Service { get; } + public IExternalLauncher ExternalLauncher { get; } + private readonly CancellationTokenSource _lifetime = new(); + private CancellationTokenSource? _operation; + private bool _executing; + private bool closing; + private TaskCompletionSource? operationCompletion; + private bool _disposed; + private bool _initialized; + private string?[] _sensitiveValues = []; + private string _operationLabel = "就绪"; + private string? _errorMessage; + private PageViewModel _selectedPage = null!; + public LauncherSnapshot Snapshot { get; private set; } + public HomePageViewModel Home { get; } + public InstancesPageViewModel Instances { get; } + public DownloadsPageViewModel Downloads { get; } + public AccountsPageViewModel Accounts { get; } + public SettingsPageViewModel Settings { get; } + public LogsPageViewModel Logs { get; } + public ToolsPageViewModel Tools { get; } + public ObservableCollection Pages { get; } + public RelayCommand ShowHomeCommand { get; } + public RelayCommand ShowDownloadsCommand { get; } + public RelayCommand ShowSettingsCommand { get; } + public RelayCommand ShowToolsCommand { get; } + public RelayCommand ShowCrashAnalysisCommand { get; } + public bool HasCrashAnalysis => Snapshot.LastCrash is not null; + public RelayCommand ShowInstancesCommand { get; } + public RelayCommand ShowAccountsCommand { get; } + public RelayCommand ShowLogsCommand { get; } + public RelayCommand BackCommand { get; } + public RelayCommand CancelOperationCommand { get; } + public RelayCommand DismissErrorCommand { get; } + public AsyncRelayCommand StopGameCommand { get; } + + public MainWindowViewModel(ILauncherService service, IExternalLauncher externalLauncher, ILauncherCatalogService? catalog = null) + { + Service = service ?? throw new ArgumentNullException(nameof(service)); + ExternalLauncher = externalLauncher ?? throw new ArgumentNullException(nameof(externalLauncher)); + Snapshot = service.Snapshot; + Home = new(this); + Instances = new(this); + Downloads = new(this, catalog); + InitializeTaskNotifications(); + Accounts = new(this); + Settings = new(this); + Logs = new(this); + Tools = new(this); + Pages = [Home, Instances, Downloads, Accounts, Settings, Logs, Tools]; + _selectedPage = Home; + ShowHomeCommand = new(() => SelectedPage = Home); + ShowDownloadsCommand = new(() => SelectedPage = Downloads); + ShowSettingsCommand = new(() => SelectedPage = Settings); + ShowToolsCommand = new(() => SelectedPage = Tools); + ShowCrashAnalysisCommand = new(() => { SelectedPage = Tools; Tools.ShowToolboxCommand.Execute(null); }); + ShowInstancesCommand = new(() => Instances.ShowSelectionCommand.Execute(null)); + ShowAccountsCommand = new(() => SelectedPage = Accounts); + ShowLogsCommand = new(() => SelectedPage = Logs); + BackCommand = new(() => + { + if (ReferenceEquals(SelectedPage, Instances)) Instances.NavigateBackCommand.Execute(null); + else if (ReferenceEquals(SelectedPage, Downloads) && Downloads.IsResourceDetail) Downloads.BackToListCommand.Execute(null); + else if (ReferenceEquals(SelectedPage, Downloads) && Downloads.IsTasksPage) Downloads.SelectCategory("modpack"); + else SelectedPage = ReferenceEquals(SelectedPage, Logs) ? Settings : Home; + }, () => IsContextPage); + CancelOperationCommand = new(CancelCurrentOperation, () => _operation is { IsCancellationRequested: false }); + HomeLaunchActionCommand = new(HomeLaunchAction, () => IsWaitingForGameWindow || _operation is { IsCancellationRequested: false }); + DismissErrorCommand = new(() => ShowError(null)); + StopGameCommand = new(() => RunControlAsync("停止游戏", ct => Service.StopGameAsync(ct)), () => HasRunningGame); + Service.SnapshotChanged += OnSnapshotChanged; + Service.LogReceived += OnLogReceived; + Instances.PropertyChanged += OnInstancesPropertyChanged; + Downloads.PropertyChanged += OnDownloadsPropertyChanged; + ApplySnapshot(Snapshot); + } + + public PageViewModel SelectedPage + { + get => _selectedPage; + set + { + if (value is null) return; + if (ReferenceEquals(value, _selectedPage)) { NotifyNavigation(); if (ReferenceEquals(value, Downloads)) Downloads.OnNavigatedTo(); return; } + var leavingAccounts = ReferenceEquals(_selectedPage, Accounts) || ReferenceEquals(_selectedPage, Home); + var leavingDownloads = ReferenceEquals(_selectedPage, Downloads); + var leavingTools = ReferenceEquals(_selectedPage, Tools); + var leavingSettings = ReferenceEquals(_selectedPage, Settings); + if (!SetProperty(ref _selectedPage, value)) return; + if (leavingAccounts) Accounts.OnNavigatingAway(); + if (leavingDownloads) Downloads.OnNavigatingAway(); + if (leavingTools) Tools.OnNavigatingAway(); + if (leavingSettings) Settings.OnNavigatingAway(); + Instances.ModWorkspaceNavigationChanged(); + NotifyNavigation(); + if (ReferenceEquals(value, Downloads)) Downloads.OnNavigatedTo(); + } + } + private void NotifyNavigation() + { + OnPropertyChanged(nameof(CurrentSection)); + OnPropertyChanged(nameof(IsContextPage)); + OnPropertyChanged(nameof(NavigationTitle)); + OnPropertyChanged(nameof(IsLaunchSelected)); + OnPropertyChanged(nameof(IsDownloadsSelected)); + OnPropertyChanged(nameof(IsSettingsSelected)); + OnPropertyChanged(nameof(IsToolsSelected)); + OnPropertyChanged(nameof(ShowOperationStatus)); + OnPropertyChanged(nameof(OperationInset)); + BackCommand.NotifyCanExecuteChanged(); + } + public string CurrentSection => ReferenceEquals(SelectedPage, Downloads) ? "download" + : ReferenceEquals(SelectedPage, Settings) || ReferenceEquals(SelectedPage, Logs) ? "settings" + : ReferenceEquals(SelectedPage, Tools) ? "tools" : "launch"; + public bool IsContextPage => ReferenceEquals(SelectedPage, Instances) || ReferenceEquals(SelectedPage, Accounts) || ReferenceEquals(SelectedPage, Logs) + || (ReferenceEquals(SelectedPage, Downloads) && (Downloads.IsResourceDetail || Downloads.IsTasksPage)); + public string NavigationTitle => ReferenceEquals(SelectedPage, Instances) ? (Instances.IsWorldDetails ? Instances.WorldContextTitle : Instances.ContextTitle) + : ReferenceEquals(SelectedPage, Downloads) && Downloads.IsTasksPage ? "任务管理" + : ReferenceEquals(SelectedPage, Downloads) && Downloads.IsResourceDetail ? "资源下载 - " + Downloads.ProjectTitle : SelectedPage.Title; + public bool IsLaunchSelected => CurrentSection == "launch"; + public bool IsDownloadsSelected => CurrentSection == "download"; + public bool IsSettingsSelected => CurrentSection == "settings"; + public bool IsToolsSelected => CurrentSection == "tools"; + public string WindowTitle => Localization.UiLocalization.Instance.Text(Snapshot.Build.Name); + public string BrandTitle => Settings.SavedPresentation.TitleMode == "text" ? Settings.SavedPresentation.TitleText : WindowTitle; + internal void NotifyLauncherAppearance() { OnPropertyChanged(nameof(BrandTitle)); NotifyFeatureVisibility(); } + public string BuildSummary => $"{Snapshot.Build.Version} · {Snapshot.Build.Codename} · {Snapshot.Build.Configuration}"; + public string SourceSummary => Snapshot.Build.SourceSha.Length > 12 ? Snapshot.Build.SourceSha[..12] : Snapshot.Build.SourceSha; + public string PlatformSummary => $"{Snapshot.Platform.OS} · 硬件 {Snapshot.Platform.HardwareArchitecture} / 进程 {Snapshot.Platform.ProcessArchitecture}"; + public string StateSummary => _executing ? _operationLabel : IsWaitingForGameWindow ? "游戏正在初始化" + : Snapshot.GameSessions.Any(session => session.WindowReady == false) ? "游戏进程已启动,窗口状态尚未确认" : Snapshot.State switch + { + "Installing" => "正在安装", "Launching" => "正在启动", "Running" => "就绪", + "Authenticating" => "正在验证账户", "Error" => "操作失败,可修正后重试", _ => _operationLabel + }; + public bool IsBusy => _executing || Snapshot.State is "Installing" or "Launching" or "Authenticating"; + public bool CanMutate => !_disposed && !closing && !_executing && Snapshot.State is "Ready" or "Error" or "Running"; + public bool CanReadRemote => !_disposed && !closing && !_executing && Snapshot.State is "Ready" or "Error" or "Running"; + public bool HasRunningGame => !_disposed && (Snapshot.State == "Running" || Snapshot.GameProcessId is not null); + private int inlineOperations; + public string OperationTransferSummary + { + get + { + if (!IsBusy) return ""; + var transfer = Snapshot.Downloads.LastOrDefault(t => t.State is "Downloading" or "Queued" or "Verifying" or "Retrying"); + if (transfer is null) return ""; + var bytes = transfer.TotalBytes is > 0 ? $"{transfer.BytesReceived / 1048576d:F1} / {transfer.TotalBytes.Value / 1048576d:F1} MiB" : $"{transfer.BytesReceived / 1048576d:F1} MiB"; + return $"当前文件:{UiPrivacy.Redact(transfer.Name)}\n{bytes}"; + } + } + public bool HasOperationTransferSummary => OperationTransferSummary.Length > 0; + public bool ShowOperationStatus => !backgroundInstall && inlineOperations == 0 && IsBusy && (!IsHomeLaunching || !ReferenceEquals(SelectedPage, Home)); + public async Task RunInlineAsync(string label, Func action) + { + inlineOperations++; OnPropertyChanged(nameof(ShowOperationStatus)); + try { return await RunAsync(label, action); } + finally { inlineOperations--; OnPropertyChanged(nameof(ShowOperationStatus)); } + } + public Thickness OperationInset => new(ReferenceEquals(SelectedPage, Downloads) ? Downloads.ShowCategorySidebar ? 180 : 0 + : ReferenceEquals(SelectedPage, Settings) || ReferenceEquals(SelectedPage, Tools) ? 135 + : ReferenceEquals(SelectedPage, Instances) ? Instances.IsSelection ? 175 : 150 + : ReferenceEquals(SelectedPage, Home) ? 300 : 0, 0, 0, 0); + public string? ErrorMessage => _errorMessage; + public bool HasError => !string.IsNullOrWhiteSpace(_errorMessage); + + public async Task InitializeAsync() + { + if (_initialized || _disposed) return; + _initialized = true; + await RunAsync("正在初始化", async ct => + { + await Service.InitializeAsync(ct); + foreach (var log in Service.GetRecentLogs()) Logs.Append(log); + }, allowWhileRunning: true); + if (!_disposed) { Home.StartCommunityRefresh(); Downloads.OnNavigatedTo(); } + } + + public async Task RunAsync(string label, Func action, bool allowWhileRunning = false, params string?[] sensitiveValues) + { + if (!(allowWhileRunning ? CanReadRemote : CanMutate)) return false; + using var operation = CancellationTokenSource.CreateLinkedTokenSource(_lifetime.Token); + _operation = operation; + var completion = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); operationCompletion = completion; + _sensitiveValues = sensitiveValues; + if (!backgroundInstall) handledBackgroundError = null; + _executing = true; + _operationLabel = label; + ShowError(null); + NotifyState(); + try + { + await action(operation.Token); + _operationLabel = label + "已完成"; + return true; + } + catch (OperationCanceledException) when (operation.IsCancellationRequested) + { + _operationLabel = "操作已取消"; + return false; + } + catch (Exception ex) + { + _operationLabel = label + "失败"; + if (backgroundFailure is { } failure) failure(ex); + else ShowError(UiPrivacy.Redact(ex.Message, sensitiveValues)); + return false; + } + finally + { + _executing = false; + _operation = null; + if (!_disposed) ApplySnapshot(Service.Snapshot); + _sensitiveValues = []; + completion.TrySetResult(); + } + } + + public async Task CancelAndWaitForCloseAsync() + { + closing = true; + var pending = operationCompletion?.Task ?? Task.CompletedTask; + CancelCurrentOperation(); + try + { + await Task.WhenAll(pending, Tools.Toolbox.CancelAndWaitAsync(), Settings.CancelAndWaitAsync(), Instances.CancelComponentWorkAsync()).WaitAsync(TimeSpan.FromSeconds(30)); + } + finally { closing = false; NotifyState(); } + await Settings.FlushAutoSaveAsync(); + } + + public async Task RunControlAsync(string label, Func action) + { + if (_disposed) return; + try { await action(_lifetime.Token); } + catch (OperationCanceledException) when (_lifetime.IsCancellationRequested) { } + catch (Exception ex) { ShowError(label + "失败:" + UiPrivacy.Redact(ex.Message)); } + finally { if (!_disposed) ApplySnapshot(Service.Snapshot); } + } + + public void ShowError(string? message) + { + _errorMessage = string.IsNullOrWhiteSpace(message) ? null : UiPrivacy.Redact(message, _sensitiveValues); + OnPropertyChanged(nameof(ErrorMessage)); + OnPropertyChanged(nameof(HasError)); + } + + internal void Dispatch(Action action) + { + if (_disposed) return; + if (Dispatcher.UIThread.CheckAccess()) action(); + else Dispatcher.UIThread.Post(() => { if (!_disposed) action(); }); + } + + private int snapshotRefreshQueued; + private void OnSnapshotChanged(object? sender, LauncherSnapshot snapshot) + { + if (Dispatcher.UIThread.CheckAccess()) { if (!_disposed) ApplySnapshot(Service.Snapshot); return; } + // Background file completions can arrive thousands at a time. One queued + // refresh consumes the newest complete snapshot; accounting stays in Core. + if (Interlocked.Exchange(ref snapshotRefreshQueued, 1) != 0) return; + Dispatch(() => { Interlocked.Exchange(ref snapshotRefreshQueued, 0); ApplySnapshot(Service.Snapshot); }); + } + private void OnInstancesPropertyChanged(object? sender, System.ComponentModel.PropertyChangedEventArgs e) + { + if (e.PropertyName is nameof(Instances.ContextTitle) or nameof(Instances.WorldContextTitle) or nameof(Instances.IsWorldDetails) && ReferenceEquals(SelectedPage, Instances)) + OnPropertyChanged(nameof(NavigationTitle)); + } + private void OnDownloadsPropertyChanged(object? sender, System.ComponentModel.PropertyChangedEventArgs e) + { + if (ReferenceEquals(SelectedPage, Downloads) && e.PropertyName is nameof(Downloads.IsResourceDetail) or nameof(Downloads.ProjectTitle) or nameof(Downloads.IsTasksPage)) + NotifyNavigation(); + } + private void OnLogReceived(object? sender, LauncherLog log) + { + var safeLog = log with { Message = UiPrivacy.Redact(log.Message, _sensitiveValues) }; + Dispatch(() => Logs.Append(safeLog)); + } + private void ApplySnapshot(LauncherSnapshot snapshot) + { + Snapshot = snapshot; + Localization.UiLocalization.Instance.SetLanguage(snapshot.Settings.Language, snapshot.Settings.Launcher?.RegionalFormat ?? "system"); + if (!string.IsNullOrWhiteSpace(snapshot.Error)) + { + if (backgroundInstall) handledBackgroundError = snapshot.Error; + else if (snapshot.Error != handledBackgroundError) ShowError(snapshot.Error); + } + foreach (var page in Pages) page.Refresh(snapshot); + if (Application.Current is { } app) + app.RequestedThemeVariant = snapshot.Settings.Theme switch { "Dark" => ThemeVariant.Dark, "Light" => ThemeVariant.Light, _ => ThemeVariant.Default }; + OnPropertyChanged(nameof(Snapshot)); + OnPropertyChanged(nameof(HasCrashAnalysis)); + OnPropertyChanged(nameof(WindowTitle)); + OnPropertyChanged(nameof(BrandTitle)); + OnPropertyChanged(nameof(BuildSummary)); + OnPropertyChanged(nameof(SourceSummary)); + OnPropertyChanged(nameof(PlatformSummary)); + NotifyState(); + } + internal void NotifyState() + { + OnPropertyChanged(nameof(IsBusy)); + OnPropertyChanged(nameof(CanMutate)); + OnPropertyChanged(nameof(CanReadRemote)); + OnPropertyChanged(nameof(HasRunningGame)); + OnPropertyChanged(nameof(ShowOperationStatus)); + OnPropertyChanged(nameof(StateSummary)); + OnPropertyChanged(nameof(OperationTransferSummary)); + OnPropertyChanged(nameof(HasOperationTransferSummary)); + NotifyLaunchPresentation(); + CancelOperationCommand.NotifyCanExecuteChanged(); + StopGameCommand.NotifyCanExecuteChanged(); + foreach (var page in Pages) page.NotifyCommands(); + } + private void CancelCurrentOperation() + { + var operation = _operation; + var token = operation?.Token ?? new CancellationToken(true); + operation?.Cancel(); + Accounts.CancelAuthenticationState(token); + NotifyState(); + } + public void Dispose() + { + if (_disposed) return; + _disposed = true; + launchWaitTimer?.Stop(); + Service.SnapshotChanged -= OnSnapshotChanged; + Service.LogReceived -= OnLogReceived; + Instances.PropertyChanged -= OnInstancesPropertyChanged; + Downloads.PropertyChanged -= OnDownloadsPropertyChanged; + _operation?.Cancel(); + _lifetime.Cancel(); + Accounts.CancelAuthenticationState(_lifetime.Token); + Home.Dispose(); + Instances.Dispose(); + Downloads.Dispose(); + Tools.Dispose(); + Settings.DisposeLauncherSettings(); + _lifetime.Dispose(); + // Bootstrap owns the service, its processes, pending writes and data lease. + } +} + +public static class UiPrivacy +{ + public static string Redact(string? value, params string?[] sensitiveValues) + { + var result = value ?? ""; + foreach (var secret in sensitiveValues.Where(s => !string.IsNullOrEmpty(s)).OrderByDescending(s => s!.Length)) + result = result.Replace(secret!, "[已隐藏]", StringComparison.Ordinal); + result = Regex.Replace(result, @"(?i)(\b(?:access[_-]?token|refresh[_-]?token|id[_-]?token|client[_-]?token|client[_-]?secret|api[_-]?key|token|secret|password|passwd|rpc[_-]?secret|authorization|code_verifier)\b[""']?\s*[:=]\s*[""']?)(?:Bearer\s+)?[^\s,""';&]+", "$1[已隐藏]"); + return Regex.Replace(result, @"(?i)\bBearer\s+[A-Za-z0-9._~+/=-]+", "Bearer [已隐藏]"); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/PackInstallTaskViewModel.cs b/src/SHOU.Launcher.Desktop/ViewModels/PackInstallTaskViewModel.cs new file mode 100644 index 00000000..a8598f7c --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/PackInstallTaskViewModel.cs @@ -0,0 +1,277 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.ComponentModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed class PackTaskStepViewModel(string name, double weight) : ObservableObject +{ + public string Name { get; } = name; + internal double Weight { get; } = weight; + private string state = "等待中", detail = ""; + private double progress; + private bool indeterminate; + public string State => state; + public string Detail => detail; + public double Progress => progress; + public bool IsIndeterminate => indeterminate; + internal void Update(string status, double percent = 0, bool unknown = false, string text = "") + { + state = status; progress = Math.Clamp(percent, 0, 100); indeterminate = unknown; detail = text; + foreach (var p in new[] { nameof(State), nameof(Progress), nameof(IsIndeterminate), nameof(Detail) }) OnPropertyChanged(p); + } +} + +public sealed class PackInstallTaskViewModel : ObservableObject +{ + public ObservableCollection ManualFiles { get; } = []; + public bool HasManualFiles => ManualFiles.Count > 0; + private string? manualArchiveSha; + private string? optionalArchiveSha; + private bool optionalConfirmed, awaitingOptionalSelection; + public ObservableCollection OptionalFiles { get; } = []; + public bool HasOptionalFiles => OptionalFiles.Count > 0 && importedInstance is null && state != "已取消"; + public bool HasPendingOptionalSelection => awaitingOptionalSelection; + public bool CanChooseOptions => !page.IsDisposed && owner.CanMutate && !IsActive && importedInstance is null; + public AsyncRelayCommand ConfirmOptionalFilesCommand { get; } + internal MainWindowViewModel Root => owner; + private readonly MainWindowViewModel owner; + private readonly DownloadsPageViewModel page; + private readonly ILauncherCatalogService catalog; + private readonly ILocalPackService? localPacks; + private readonly IModrinthPackService? mrpacks; + private readonly ContentFile file; + private readonly string instanceName; + private HashSet priorTransfers = []; + private string state = "等待中", detail = "", error = ""; + private string? cachedPath; + private int stepIndex = -1, runVersion, completedFiles, totalFiles; + private double speed; + private GameInstance? importedInstance; + internal string Identity => file.Sha1; + public string Name { get; } + public string State => state; + public string Detail => detail; + public string Error => error; + public bool HasError => error.Length > 0; + public bool IsActive => state == "正在安装"; + public bool IsCompleted => state == "已完成"; + public int RemainingFiles => Math.Max(0, totalFiles - completedFiles); + public string RemainingFileText => IsActive && totalFiles == 0 ? "统计中" : RemainingFiles.ToString(); + public double BytesPerSecond => speed; + public double OverallProgress => Steps.Sum(s => s.Weight * s.Progress / 100); + public ObservableCollection Steps { get; } = + [new("下载整合包文件", 30), new("解析安装清单", 10), new("安装整合包文件", 45), new("准备游戏本体与加载器", 15)]; + public AsyncRelayCommand RetryCommand { get; } + public RelayCommand CancelCommand { get; } + public AsyncRelayCommand OpenInstanceCommand { get; } + internal PackInstallTaskViewModel(DownloadsPageViewModel page, MainWindowViewModel owner, ContentProject project, ContentRelease? release, + ContentFile file, ILauncherCatalogService catalog, ILocalPackService? localPacks, IModrinthPackService? mrpacks) + { + this.page = page; this.owner = owner; this.file = file; this.catalog = catalog; this.localPacks = localPacks; this.mrpacks = mrpacks; + var version = release?.Version; + var display = release?.Name.Trim() ?? ""; + if (display.EndsWith(".zip", StringComparison.OrdinalIgnoreCase) || display.EndsWith(".mrpack", StringComparison.OrdinalIgnoreCase)) display = Path.GetFileNameWithoutExtension(display); + static string Key(string text) => new(text.Where(char.IsLetterOrDigit).Select(char.ToLowerInvariant).ToArray()); + var label = project.Source == "curseforge" && display.Length > 0 && + (Key(display).StartsWith(Key(project.Slug), StringComparison.Ordinal) || Key(display).StartsWith(Key(project.Title), StringComparison.Ordinal)) + ? display : project.Title + (string.IsNullOrWhiteSpace(version) ? "" : " " + version); + instanceName = new string(label.Where(c => !char.IsControl(c)).Take(80).ToArray()).Trim(); + if (instanceName.Length == 0) instanceName = "新整合包"; + Name = (project.Source == "curseforge" ? "CurseForge" : "Modrinth") + " 整合包下载:" + UiPrivacy.Redact(project.Title); + RetryCommand = new(RunAsync, () => owner.CanMutate && state is "失败" or "已取消" or "需要补充文件"); + CancelCommand = new(() => + { + if (ReferenceEquals(page.ActivePackTask, this)) owner.CancelOperationCommand.Execute(null); + else { state = "已取消"; detail = "已取消;可重试并重新确认可选文件。"; error = ""; awaitingOptionalSelection = false; optionalConfirmed = false; ManualFiles.Clear(); Changed(); } + }, () => IsActive || awaitingOptionalSelection || HasManualFiles); + ConfirmOptionalFilesCommand = new(async () => + { + if (!CanChooseOptions || !awaitingOptionalSelection || page.ActivePackTask is not null) return; + optionalConfirmed = true; awaitingOptionalSelection = false; await RunAsync(); + }, () => CanChooseOptions && awaitingOptionalSelection && page.ActivePackTask is null); + OpenInstanceCommand = new(async () => + { + if (importedInstance is null) return; + if (await owner.RunAsync("选择已安装实例", ct => owner.Service.SelectInstanceAsync(importedInstance.Id, ct))) owner.ShowHomeCommand.Execute(null); + }, () => importedInstance is not null && owner.CanMutate && !IsActive); + } + internal async Task RunAsync() + { + if (page.IsDisposed || !owner.CanMutate || page.ActivePackTask is not null) return; + var selected = OptionalFiles.Where(f => f.Selected).Select(f => f.Path).ToArray(); + page.ActivePackTask = this; var generation = ++runVersion; + priorTransfers = owner.Snapshot.Downloads.Select(t => t.Id).ToHashSet(StringComparer.Ordinal); + error = ""; state = "正在安装"; completedFiles = totalFiles = 0; speed = 0; + ManualFiles.Clear(); manualArchiveSha = null; + if (importedInstance is null) { stepIndex = -1; foreach (var step in Steps) step.Update("等待中"); } + Changed(); owner.ShowTaskNotification(page, "已开始下载整合包", instanceName + " · 点击查看下载和安装进度"); + try + { + var success = await owner.RunBackgroundInstallAsync(Name, async ct => + { + if (importedInstance is null) + { + Activate(0); cachedPath = await catalog.DownloadContentAsync(file, ct); Steps[0].Update("已完成", 100); + Activate(1); + LocalPackInspection? inspected = null; + ModrinthPackInspection? mr = null; + var readProgress = ProgressFor(generation, 1); + if (optionalConfirmed && localPacks is ILocalPackSelectionService choices) inspected = await choices.InspectLocalPackSelectionAsync(cachedPath, selected, readProgress, ct, optionalArchiveSha); + else if (localPacks is ILocalPackProgressService tracked) inspected = await tracked.InspectLocalPackWithProgressAsync(cachedPath, readProgress, ct); + else if (localPacks is not null) inspected = await localPacks.InspectLocalPackAsync(cachedPath, ct); + else if (mrpacks is not null) mr = await mrpacks.InspectModrinthPackAsync(cachedPath, ct); + else throw new NotSupportedException("当前后端未提供整合包安装能力。"); + ct.ThrowIfCancellationRequested(); + if (page.IsDisposed || generation != runVersion) + { state = page.IsDisposed ? "已取消" : "等待选择可选文件"; throw new PackBlockedException(); } + var hash = inspected?.ArchiveSha256 ?? mr!.ArchiveSha256; + if (optionalArchiveSha is not null && optionalArchiveSha != hash) optionalConfirmed = false; + SetOptionalFiles(inspected, inspected?.Modrinth ?? mr, hash); + if (OptionalFiles.Count > 0 && !optionalConfirmed) + { + awaitingOptionalSelection = true; state = "等待选择可选文件"; + detail = "勾选需要的可选下载后继续;未勾选的下载将跳过。"; + throw new PackBlockedException(); + } + if (!(inspected?.CanImport ?? mr?.CanImport ?? false)) + { + manualArchiveSha = inspected?.ArchiveSha256; + foreach (var missing in inspected?.ManualFiles ?? []) + ManualFiles.Add(new(owner, missing, ProvideManualFileAsync, row => !page.IsDisposed && ManualFiles.Contains(row), + () => localPacks is ILocalPackManualFileService && !IsActive)); + state = "需要补充文件"; + error = (inspected?.CapabilityReason ?? mr?.CapabilityReason ?? "此整合包不能安装。") + Environment.NewLine + + string.Join(Environment.NewLine, inspected?.Warnings ?? mr?.Warnings ?? []); + throw new PackBlockedException(); + } + Steps[1].Update("已完成", 100); Activate(2); + var progress = ProgressFor(generation, 2); + if (localPacks is not null) + { + var request = new LocalPackImportRequest(cachedPath, inspected!.ArchiveSha256, instanceName, selected); + var installed = localPacks is ILocalPackProgressService reporting + ? await reporting.ImportLocalPackWithProgressAsync(request, progress, ct) : await localPacks.ImportLocalPackAsync(request, ct); + importedInstance = installed.Instance; + } + else importedInstance = (await mrpacks!.ImportModrinthPackAsync(new(cachedPath, mr!.ArchiveSha256, instanceName, selected), ct)).Instance; + Steps[2].Update("已完成", 100); + } + Activate(3); + if (owner.Service is IInstanceInstallProgressService preparing) + await preparing.InstallInstanceWithProgressAsync(importedInstance.Id, ProgressFor(generation, 3), ct); + else await owner.Service.InstallInstanceAsync(importedInstance.Id, ct); + Steps[3].Update("已完成", 100); + }, ex => + { + if (ex is not PackBlockedException) { state = "失败"; error = UiPrivacy.Redact(ex.Message); } + }); + if (success) { state = "已完成"; detail = "已创建独立实例并准备好游戏文件;选择实例即可开始。"; completedFiles = totalFiles; } + else if (state == "正在安装") { state = "已取消"; detail = importedInstance is null ? "已取消;可重试,未登记不完整实例。" : "已导入的实例已保留;重试将继续准备游戏文件。"; } + if (!success && stepIndex >= 0) Steps[stepIndex].Update(state, Steps[stepIndex].Progress, text: error); + } + finally + { + if (ReferenceEquals(page.ActivePackTask, this)) page.ActivePackTask = null; + speed = 0; Changed(); + owner.ShowTaskNotification(page, IsCompleted ? "整合包安装完成" : state, instanceName + " · 点击查看任务"); + } + } + private sealed class PackBlockedException : Exception; + private void SetOptionalFiles(LocalPackInspection? local, ModrinthPackInspection? mr, string hash) + { + var keep = optionalArchiveSha == hash ? OptionalFiles.Where(f => f.Selected).Select(f => f.Path).ToHashSet(StringComparer.Ordinal) : []; + OptionalFiles.Clear(); optionalArchiveSha = hash; + var files = local?.Format == LocalPackFormat.CurseForge + ? (local.OptionalFiles ?? []).Select(f => new PackOptionalFileViewModel(f.Key, f.Name, f.Notice)) + : (mr?.Files.Where(f => f.Client == "optional") ?? []).Select(f => new PackOptionalFileViewModel(f.Path)); + foreach (var row in files) + { + row.Selected = keep.Contains(row.Path); OptionalFiles.Add(row); + row.PropertyChanged += (_, e) => + { + if (e.PropertyName != nameof(row.Selected) || !OptionalFiles.Contains(row) || page.IsDisposed) return; + ++runVersion; optionalConfirmed = false; awaitingOptionalSelection = true; ManualFiles.Clear(); + state = "等待选择可选文件"; error = ""; detail = "可选项目已更改,继续前会重新预检本次选择。"; Changed(); + }; + } + } + internal void RefreshOptionalCommands() + { OnPropertyChanged(nameof(CanChooseOptions)); ConfirmOptionalFilesCommand.NotifyCanExecuteChanged(); CancelCommand.NotifyCanExecuteChanged(); } + public async Task ProvideManualFileAsync(PackManualFileRowViewModel row, string path) + { + if (page.IsDisposed || !owner.CanMutate || !ManualFiles.Contains(row) || cachedPath is null || manualArchiveSha is null || localPacks is not ILocalPackManualFileService manual) return; + var generation = runVersion; var selected = OptionalFiles.Where(f => f.Selected).Select(f => f.Path).ToArray(); + if (!await owner.RunAsync("校验补充文件", async ct => { + if (localPacks is ILocalPackSelectionService choices) await choices.ProvideSelectedLocalPackFileAsync(cachedPath, manualArchiveSha, selected, row.File.ProjectId, row.File.FileId, path, ct); + else await manual.ProvideLocalPackFileAsync(cachedPath, manualArchiveSha, row.File.ProjectId, row.File.FileId, path, ct); + ct.ThrowIfCancellationRequested(); + }) || page.IsDisposed || generation != runVersion) return; + ManualFiles.Remove(row); Changed(); + if (ManualFiles.Count == 0) await RunAsync(); + } + private IProgress ProgressFor(int generation, int step) + => new Progress(p => + { + if (generation != runVersion || !IsActive || stepIndex != step) return; + completedFiles = Math.Max(0, p.CompletedFiles); totalFiles = Math.Max(completedFiles, p.TotalFiles); + detail = UiPrivacy.Redact(p.Stage + (p.CurrentFile is null ? "" : ":" + p.CurrentFile)); + Steps[step].Update("进行中", step == 3 || totalFiles == 0 ? 0 : completedFiles * 100d / totalFiles, step == 3 || totalFiles == 0, detail + (totalFiles > 0 ? $" · {completedFiles}/{totalFiles} 项" : "")); + Changed(); + }); + private void Activate(int step) + { + stepIndex = step; completedFiles = totalFiles = 0; + priorTransfers = owner.Snapshot.Downloads.Select(t => t.Id).ToHashSet(StringComparer.Ordinal); + detail = Steps[step].Name; Steps[step].Update("进行中", unknown: true); Changed(); + } + internal void Refresh(LauncherSnapshot snapshot) + { + if (IsActive) + { + var files = snapshot.Downloads.Where(t => !priorTransfers.Contains(t.Id)).ToArray(); + speed = snapshot.DownloadBytesPerSecond; + var active = files.Where(t => t.State is "Queued" or "Downloading" or "Verifying" or "Retrying").ToArray(); + var transfer = active.OrderBy(t => t.UpdatedAt).LastOrDefault(); + if (transfer is not null && stepIndex is 0 or 2 or 3) + { + var transferDetail = $"{active.Length} 项传输/校验 · " + UiPrivacy.Redact(transfer.Name) + $" · {transfer.BytesReceived / 1048576d:0.0} / " + + (transfer.TotalBytes is { } size ? $"{size / 1048576d:0.0} MiB" : "未知大小"); + if (stepIndex == 0) detail = transfer.State == "Verifying" ? "整合包文件校验中" : transferDetail; + if (stepIndex == 0) Steps[0].Update("进行中", transfer.TotalBytes is > 0 ? transfer.BytesReceived * 100d / transfer.TotalBytes.Value : 0, + transfer.State != "Downloading" || transfer.TotalBytes is null or <= 0, detail); + } + } + Changed(); + } + private void Changed() + { + foreach (var p in new[] { nameof(State), nameof(Detail), nameof(Error), nameof(HasError), nameof(HasManualFiles), nameof(IsActive), nameof(IsCompleted), nameof(HasOptionalFiles), nameof(HasPendingOptionalSelection), nameof(CanChooseOptions), nameof(RemainingFiles), nameof(RemainingFileText), nameof(BytesPerSecond), nameof(OverallProgress) }) OnPropertyChanged(p); + foreach (var row in ManualFiles) row.Refresh(); + RetryCommand.NotifyCanExecuteChanged(); CancelCommand.NotifyCanExecuteChanged(); ConfirmOptionalFilesCommand.NotifyCanExecuteChanged(); OpenInstanceCommand.NotifyCanExecuteChanged(); page.NotifyPackTasks(); + } +} + +public sealed class PackManualFileRowViewModel : ObservableObject +{ + private readonly MainWindowViewModel owner; + private readonly Func provide; + private readonly Func current; + private readonly Func supported; + internal MainWindowViewModel Root => owner; + internal bool IsCurrent => current(this); + public bool CanProvide => owner.CanMutate && IsCurrent && supported(); + public CurseForgeManualFile File { get; } + public string Name => File.FileName; + public string Detail => Localization.UiLocalization.Instance.Format("{0:0.##} MiB · 官方文件 {1}", File.Size / 1048576d, File.FileId); + public AsyncRelayCommand OpenPageCommand { get; } + internal PackManualFileRowViewModel(MainWindowViewModel owner, CurseForgeManualFile file, + Func provide, Func current, Func supported) + { + this.owner = owner; this.provide = provide; this.current = current; this.supported = supported; File = file; + OpenPageCommand = new(() => IsCurrent ? owner.RunControlAsync("打开文件官网", ct => owner.ExternalLauncher.OpenUriAsync(file.PageUri, ct)) : Task.CompletedTask, () => IsCurrent); + } + public Task ProvideFileAsync(string path) => CanProvide ? provide(this, path) : Task.CompletedTask; + internal void Refresh() { OnPropertyChanged(nameof(CanProvide)); OnPropertyChanged(nameof(Detail)); OpenPageCommand.NotifyCanExecuteChanged(); } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/ScreenshotImages.cs b/src/SHOU.Launcher.Desktop/ViewModels/ScreenshotImages.cs new file mode 100644 index 00000000..3a958b85 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/ScreenshotImages.cs @@ -0,0 +1,48 @@ +using Avalonia.Media.Imaging; +using BitMiracle.LibTiff.Classic; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.IO; +using SkiaSharp; + +namespace SHOU.Launcher.Desktop.ViewModels; + +internal static class ScreenshotImages +{ + private static bool ValidSize(int width, int height) => width is > 0 and <= 16384 && height is > 0 and <= 16384 && (long)width * height <= 64 * 1024 * 1024; + public static Bitmap? Read(InstanceContentEntry file, bool thumbnail, CancellationToken ct = default) + { + try + { + SafePath.RejectLinks(file.FullPath); var info = new FileInfo(file.FullPath); + if (!info.Exists || info.Length is <= 0 or > 32 * 1024 * 1024) return null; + using var stream = new FileStream(file.FullPath, FileMode.Open, FileAccess.Read, FileShare.Read); + using var codec = SKCodec.Create(new SKManagedStream(stream, false)); + ct.ThrowIfCancellationRequested(); + if (codec is null) { stream.Position = 0; return ReadTiff(stream, thumbnail, ct); } + var size = codec.Info; if (!ValidSize(size.Width, size.Height)) return null; + stream.Position = 0; + return !thumbnail ? new Bitmap(stream) : (long)size.Width * 270 >= (long)size.Height * 480 ? Bitmap.DecodeToWidth(stream, 480) : Bitmap.DecodeToHeight(stream, 270); + } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or ArgumentException or InvalidOperationException or NotSupportedException or OverflowException) { return null; } + } + private static Bitmap? ReadTiff(Stream stream, bool thumbnail, CancellationToken ct) + { + Span header = stackalloc byte[4]; if (stream.Read(header) != 4 || !(header.SequenceEqual(new byte[] { 73, 73, 42, 0 }) || header.SequenceEqual(new byte[] { 77, 77, 0, 42 }))) return null; + stream.Position = 0; using var tiff = Tiff.ClientOpen("screenshot", "r", stream, new TiffStream()); + if (tiff is null) return null; + var width = tiff.GetField(TiffTag.IMAGEWIDTH)?[0].ToInt() ?? 0; var height = tiff.GetField(TiffTag.IMAGELENGTH)?[0].ToInt() ?? 0; + if (!ValidSize(width, height)) return null; ct.ThrowIfCancellationRequested(); + var raster = new int[checked(width * height)]; if (!tiff.ReadRGBAImageOriented(width, height, raster, Orientation.TOPLEFT, true)) return null; + ct.ThrowIfCancellationRequested(); var scale = thumbnail ? Math.Min(1d, Math.Min(480d / width, 270d / height)) : 1d; + var w = Math.Max(1, (int)(width * scale)); var h = Math.Max(1, (int)(height * scale)); + using var image = new SKBitmap(w, h, SKColorType.Rgba8888, SKAlphaType.Unpremul); var pixels = new byte[checked(w * h * 4)]; + for (var y = 0; y < h; y++) + { + ct.ThrowIfCancellationRequested(); + for (var x = 0; x < w; x++) + { var value = raster[Math.Min(height - 1, (int)(y / scale)) * width + Math.Min(width - 1, (int)(x / scale))]; var i = (y * w + x) * 4; pixels[i] = (byte)Tiff.GetR(value); pixels[i + 1] = (byte)Tiff.GetG(value); pixels[i + 2] = (byte)Tiff.GetB(value); pixels[i + 3] = (byte)Tiff.GetA(value); } + } + System.Runtime.InteropServices.Marshal.Copy(pixels, 0, image.GetPixels(), pixels.Length); + using var encoded = image.Encode(SKEncodedImageFormat.Png, 100); using var output = encoded.AsStream(); return new Bitmap(output); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.About.cs b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.About.cs new file mode 100644 index 00000000..0d6c2807 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.About.cs @@ -0,0 +1,50 @@ +using Avalonia.Media.Imaging; +using Avalonia.Platform; +using CommunityToolkit.Mvvm.Input; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record AboutCredit(string Name, string Description, string ActionLabel, string? Page, + Bitmap? Portrait, AsyncRelayCommand? OpenCommand) +{ + public bool HasPortrait => Portrait is not null; + public bool HasAction => OpenCommand is not null; +} +public sealed partial class SettingsPageViewModel +{ + public IReadOnlyList OriginalCredits { get; private set; } = []; + public IReadOnlyList ClubAcknowledgements { get; private set; } = []; + public IReadOnlyList HistoricalCredits { get; private set; } = []; + public IReadOnlyList ClubContributors { get; private set; } = []; + public AsyncRelayCommand OpenPrivacyCommand { get; private set; } = null!; + public AsyncRelayCommand OpenOriginalSourceCommand { get; private set; } = null!; + public AsyncRelayCommand OpenCommunitySourceCommand { get; private set; } = null!; + private void InitializeAbout() + { + AboutCredit Credit(string name, string description, string label = "", string? uri = null, string? portrait = null) + { + Bitmap? bitmap = null; + if (portrait is not null) + { + try { using var file = AssetLoader.Open(new Uri("avares://SHOU.Launcher.Desktop/Assets/" + portrait)); bitmap = Bitmap.DecodeToWidth(file, 96); } + catch (IOException) { } + } + return new(name, description, label, uri, bitmap, uri is null ? null : OpenLink("打开链接", uri)); + } + OriginalCredits = [Credit("龙腾猫跃", "Plain Craft Launcher 的原作者", "赞助原作者", "https://ifdian.net/a/LTCat", "Credits/LTCat.jpg"), + Credit("PCL Community", "Plain Craft Launcher Community Edition 的开发团队", "GitHub 主页", "https://github.com/PCL-Community", "Credits/PCL-Community.png"), + Credit("潮涌核心社启动器", "由社团独立维护的跨平台新版本", "查看源代码", "https://github.com/Conduit-Club/SHOU-Launcher", "Conduit/club-logo.png")]; + ClubAcknowledgements = [Credit("特别鸣谢 · 社团指导老师-ZRY", "为 Minecraft 潮涌核心社团的创立提供了大力支持。", "了解指导老师", "https://xxxy.shou.edu.cn/_t2275/2023/0706/c17034a320081/page.psp"), + Credit("特别贡献 · 空间博士-ZST", "为社团在虚拟现实与 Unity 技术上的发展作出了贡献。", "了解空间博士", "https://xxxy.shou.edu.cn/_t2275/2023/0707/c17036a353973/page.psp")]; + HistoricalCredits = [Credit("bangbang93 / BMCLAPI", "Minecraft 下载镜像服务", "访问项目", "https://bmclapidoc.bangbang93.com/"), + Credit("MC 百科", "中文 Minecraft 模组资料", "打开 MC 百科", "https://www.mcmod.cn"), + Credit("Pysio", "历史项目支持与贡献", "访问网站", "https://www.pysio.online"), Credit("Yunmoan", "历史项目支持与贡献", "访问网站", "https://www.zyghit.cn"), + Credit("EasyTier", "历史联机组件贡献;新版本已移除联机功能", "访问项目", "https://easytier.cn"), Credit("Z0z0r4", "历史项目贡献者"), Credit("Emperormummy", "历史项目贡献者")]; + ClubContributors = [Credit("Moeary", "项目开发与社团维护"), Credit("Codex", "开发协作与测试")]; + OpenPrivacyCommand = OpenLink("打开隐私说明", "https://github.com/Conduit-Club/SHOU-Launcher/blob/main/docs/conduit/PRIVACY.md"); + OpenOriginalSourceCommand = OpenLink("打开原项目源代码", "https://github.com/Meloong-Git/PCL"); + OpenCommunitySourceCommand = OpenLink("打开 PCL-CE 源代码", "https://github.com/PCL-Community/PCL-CE"); + } + private void DisposeAbout() + { foreach (var row in OriginalCredits.Concat(ClubAcknowledgements).Concat(HistoricalCredits).Concat(ClubContributors)) row.Portrait?.Dispose(); } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Appearance.cs b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Appearance.cs new file mode 100644 index 00000000..1ff24d11 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Appearance.cs @@ -0,0 +1,16 @@ +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class SettingsPageViewModel +{ + public string MotdFont { get => appearanceOptions.MotdFontFamily; set => Appearance(value ?? "", p => p.MotdFontFamily, (p, v) => p with { MotdFontFamily = v }); } + public string BackgroundFit { get => appearanceOptions.BackgroundFit; set => Appearance(value, p => p.BackgroundFit, (p, v) => p with { BackgroundFit = v }); } + public decimal BackgroundOpacity { get => appearanceOptions.BackgroundOpacity; set => Appearance(value, p => p.BackgroundOpacity, (p, v) => p with { BackgroundOpacity = v }); } + public decimal BackgroundBlur { get => appearanceOptions.BackgroundBlur; set => Appearance(value, p => p.BackgroundBlur, (p, v) => p with { BackgroundBlur = v }); } + public decimal SlideshowSeconds { get => appearanceOptions.SlideshowSeconds; set => Appearance(value, p => p.SlideshowSeconds, (p, v) => p with { SlideshowSeconds = v }); } + public IReadOnlyList BackgroundFits { get; } = ["smart", "center", "fit", "stretch", "tile", "top-left", "top-right", "bottom-left", "bottom-right"]; + public bool IsCustomHomeFile => HomeSource == "local"; + private void NotifyAppearanceFields() + { + foreach (var name in new[] { nameof(MotdFont), nameof(BackgroundFit), nameof(BackgroundOpacity), nameof(BackgroundBlur), nameof(SlideshowSeconds), nameof(IsCustomHomeFile), nameof(MusicVolume), nameof(MusicAutoPlay), nameof(MusicShuffle), nameof(MusicGamePolicy) }) OnPropertyChanged(name); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Aria2.cs b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Aria2.cs new file mode 100644 index 00000000..56207c73 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Aria2.cs @@ -0,0 +1,21 @@ +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class SettingsPageViewModel +{ + private string aria2ConnectionSummary = "默认连接 http://localhost:6800/jsonrpc;下载前检查连接,未连接时使用内置下载器。"; + public string Aria2ConnectionSummary { get => aria2ConnectionSummary; private set => SetProperty(ref aria2ConnectionSummary, value); } + public AsyncRelayCommand TestAria2ConnectionCommand { get; private set; } = null!; + private void InitializeAria2Connection() + { + TestAria2ConnectionCommand = AsyncCommand(() => RunSettingsWork(async ct => + { + if (!await FlushAutoSaveAsync()) return; + var result = await ((IAria2ConnectionService)Service).TestAria2ConnectionAsync(ct); + ct.ThrowIfCancellationRequested(); + Aria2ConnectionSummary = result.Message + (result.Version is { } version ? " · v" + version : ""); + }), () => CanEdit && !IsLauncherBusy && Service is IAria2ConnectionService); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.AutoSave.cs b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.AutoSave.cs new file mode 100644 index 00000000..0b94213a --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.AutoSave.cs @@ -0,0 +1,65 @@ +using Avalonia.Threading; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class SettingsPageViewModel +{ + private readonly DispatcherTimer autoSaveTimer = new() { Interval = TimeSpan.FromMilliseconds(350) }; + private readonly SemaphoreSlim settingsSaveGate = new(1, 1); + private bool autoSaveReady, saveInProgress, saveIsAutomatic, waitingToSave; + private long settingsEditRevision; + private string autoSaveFeedback = ""; + public string AutoSaveFeedback { get => autoSaveFeedback; private set { if (SetProperty(ref autoSaveFeedback, value)) OnPropertyChanged(nameof(HasAutoSaveFeedback)); } } + public bool HasAutoSaveFeedback => !string.IsNullOrWhiteSpace(AutoSaveFeedback); + private void InitializeAutoSave() + { + autoSaveTimer.Tick += async (_, _) => + { + autoSaveTimer.Stop(); + if (saveInProgress || settingsLifetime.IsCancellationRequested) return; + await SaveSettingsCoreAsync(true); + }; + } + private void QueueAutoSave() + { + if (!autoSaveReady || _loading || settingsLifetime.IsCancellationRequested) return; + autoSaveTimer.Stop(); autoSaveTimer.Start(); + } + public async Task FlushAutoSaveAsync() + { + autoSaveTimer.Stop(); + if (!autoSaveReady || !IsDirty) return true; + await SaveSettingsCoreAsync(true); + return !IsDirty; + } + private void ReportSettingsError(string message) + { + AutoSaveFeedback = message; + if (!saveIsAutomatic) Owner.ShowError(message); + } + private async Task SaveSettingsCoreAsync(bool automatic) + { + try { await settingsSaveGate.WaitAsync(settingsLifetime.Token); } + catch (OperationCanceledException) { return; } + var revision = settingsEditRevision; + try + { + if (!IsDirty || settingsLifetime.IsCancellationRequested) return; + if (!CanEdit) { waitingToSave = true; return; } + saveInProgress = true; saveIsAutomatic = automatic; waitingToSave = false; AutoSaveFeedback = ""; + await SaveValidatedSettingsAsync(revision); + } + catch (OperationCanceledException) { if (!settingsLifetime.IsCancellationRequested) AutoSaveFeedback = "自动保存超时;当前输入未全部保存,请重试。"; } + catch (Exception ex) + { + AutoSaveFeedback = "设置未全部保存,请检查输入或安全存储后重试。"; + if (!automatic) Owner.ShowError(UiPrivacy.Redact(ex.Message, ProxySecret, Aria2Secret)); + } + finally + { + saveInProgress = false; saveIsAutomatic = false; settingsSaveGate.Release(); + if (IsDirty && revision != settingsEditRevision) QueueAutoSave(); + } + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Game.cs b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Game.cs new file mode 100644 index 00000000..442da965 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Game.cs @@ -0,0 +1,86 @@ +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Minecraft; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class SettingsPageViewModel +{ + private bool automaticMemory, lockMemory, httpsOnly, preferOfficialCatalog = true, selectInstalledInstance = true; + private InstanceIsolation isolation; + private LauncherVisibility visibility; + private GameProcessPriority priority; + private GameIpPreference ipPreference; + private DownloadSourcePreference sourcePreference; + private string gameTitle = "", jvmArguments = ""; + private string gameArguments = "", beforeLaunchExecutable = "", beforeLaunchArguments = ""; + private bool debugLogging; + private string classpathPrepend = ""; + public bool DebugLogging { get => debugLogging; set { if (SetProperty(ref debugLogging, value)) MarkDirty(); } } + public string ClasspathPrepend { get => classpathPrepend; set { if (SetProperty(ref classpathPrepend, value ?? "")) MarkDirty(); } } + private bool useConsoleJava; + public bool UseConsoleJava { get => useConsoleJava; set { if (SetProperty(ref useConsoleJava, value)) MarkDirty(); } } + public bool CanUseConsoleJava => Owner.Snapshot.Platform.OS == LauncherOS.Windows; + private decimal maximumConnections = DownloadDefaults.Connections, maximumKiBPerSecond; + private MemoryStatus? systemMemory; + private DateTime lastMemoryRead; + public bool AutomaticMemory { get => automaticMemory; set { if (SetProperty(ref automaticMemory, value)) { MarkDirty(); NotifyMemory(); OnPropertyChanged(nameof(CustomMemory)); } } } + public bool CustomMemory { get => !AutomaticMemory; set { if (value) AutomaticMemory = false; } } + public bool LockMemory { get => lockMemory; set { if (SetProperty(ref lockMemory, value)) MarkDirty(); } } + public InstanceIsolation Isolation { get => isolation; set { if (SetProperty(ref isolation, value)) MarkDirty(); } } + public LauncherVisibility Visibility { get => visibility; set { if (SetProperty(ref visibility, value)) MarkDirty(); } } + public GameProcessPriority Priority { get => priority; set { if (SetProperty(ref priority, value)) MarkDirty(); } } + public GameIpPreference IpPreference { get => ipPreference; set { if (SetProperty(ref ipPreference, value)) MarkDirty(); } } + public string GameTitle { get => gameTitle; set { if (SetProperty(ref gameTitle, value ?? "")) MarkDirty(); } } + public string JvmArguments { get => jvmArguments; set { if (SetProperty(ref jvmArguments, value ?? "")) MarkDirty(); } } + public string GameArguments { get => gameArguments; set { if (SetProperty(ref gameArguments, value ?? "")) MarkDirty(); } } + public string BeforeLaunchExecutable { get => beforeLaunchExecutable; set { if (SetProperty(ref beforeLaunchExecutable, value ?? "")) MarkDirty(); } } + public string BeforeLaunchArguments { get => beforeLaunchArguments; set { if (SetProperty(ref beforeLaunchArguments, value ?? "")) MarkDirty(); } } + public bool CanCustomizeGameTitle => Owner.Snapshot.Platform.OS == LauncherOS.Windows; + public IReadOnlyList IsolationChoices { get; } = Enum.GetValues(); + public IReadOnlyList VisibilityChoices { get; } = Enum.GetValues(); + public IReadOnlyList PriorityChoices => Owner.Snapshot.Platform.OS == LauncherOS.MacOS ? [GameProcessPriority.Normal, GameProcessPriority.BelowNormal] : Enum.GetValues(); + public IReadOnlyList IpChoices { get; } = Enum.GetValues(); + public IReadOnlyList SourcePreferenceChoices { get; } = Enum.GetValues(); + public DownloadSourcePreference SourcePreference { get => sourcePreference; set { if (SetProperty(ref sourcePreference, value)) { MarkDirty(); OnPropertyChanged(nameof(UseCustomSources)); } } } + public bool UseCustomSources { get => SourcePreference == DownloadSourcePreference.Custom; set { SourcePreference = value ? DownloadSourcePreference.Custom : DownloadSourcePreference.OfficialFirst; } } + public bool HttpsOnly { get => httpsOnly; set { if (SetProperty(ref httpsOnly, value)) MarkDirty(); } } + public bool PreferOfficialCatalog { get => preferOfficialCatalog; set { if (SetProperty(ref preferOfficialCatalog, value)) MarkDirty(); } } + public bool SelectInstalledInstance { get => selectInstalledInstance; set { if (SetProperty(ref selectInstalledInstance, value)) MarkDirty(); } } + public decimal MaximumConnections { get => maximumConnections; set { if (SetProperty(ref maximumConnections, value)) MarkDirty(); } } + public decimal MaximumKiBPerSecond { get => maximumKiBPerSecond; set { if (SetProperty(ref maximumKiBPerSecond, value)) MarkDirty(); } } + public string SystemMemorySummary => systemMemory is { } memory ? $"已使用 / 已安装内存:{(memory.TotalBytes - memory.AvailableBytes) / 1073741824d:0.#} / {memory.TotalBytes / 1073741824d:0.#} GiB" : "无法读取系统内存;保留指定内存。"; + public double UsedMemoryPercent => systemMemory is { TotalBytes: > 0 } m ? 100d * (m.TotalBytes - m.AvailableBytes) / m.TotalBytes : 0; + public int EffectiveMemoryMiB => GameSettingsPolicy.MemoryMiB(new("preview", "preview", "preview", Service.Paths.InstancesDirectory), Owner.Snapshot.Settings with { MemoryMiB = (int)MemoryMiB, MinimumMemoryMiB = UseMinimumMemory ? (int)MinimumMemoryMiB : null, LaunchOptions = BuildGameOptions() }, systemMemory); + public decimal DisplayMemoryMiB { get => AutomaticMemory ? EffectiveMemoryMiB : MemoryMiB; set { if (!AutomaticMemory) MemoryMiB = value; } } + private GameLaunchOptions BuildGameOptions() => (Owner.Snapshot.Settings.LaunchOptions ?? new()) with + { AutomaticMemory = AutomaticMemory, Isolation = Isolation, Visibility = Visibility, Priority = Priority, IpPreference = IpPreference, WindowTitle = GameTitle.Trim(), JvmArguments = JvmArguments.Trim(), LockMemory = LockMemory, + GameArguments = GameArguments.Trim(), BeforeLaunchExecutable = BeforeLaunchExecutable.Trim(), BeforeLaunchArguments = BeforeLaunchArguments.Trim(), UseConsoleJava = UseConsoleJava, DebugLogging = DebugLogging, ClasspathPrepend = ClasspathPrepend.Trim() }; + private DownloadBehavior BuildDownloadOptions() => new((int)MaximumConnections, (int)MaximumKiBPerSecond, HttpsOnly, SourcePreference, PreferOfficialCatalog, SelectInstalledInstance); + private void LoadGameOptions(LauncherSettings settings) + { + var options = settings.LaunchOptions ?? new(); + AutomaticMemory = options.AutomaticMemory; Isolation = options.Isolation; Visibility = options.Visibility; Priority = options.Priority; IpPreference = options.IpPreference; GameTitle = options.WindowTitle; JvmArguments = options.JvmArguments; LockMemory = options.LockMemory; + GameArguments = options.GameArguments; BeforeLaunchExecutable = options.BeforeLaunchExecutable; BeforeLaunchArguments = options.BeforeLaunchArguments; + DebugLogging = options.DebugLogging; ClasspathPrepend = options.ClasspathPrepend; UseConsoleJava = options.UseConsoleJava; OnPropertyChanged(nameof(CanUseConsoleJava)); + var downloads = settings.Downloads ?? new(); + MaximumConnections = downloads.MaximumConnections; MaximumKiBPerSecond = downloads.MaximumKiBPerSecond; HttpsOnly = downloads.HttpsOnly; SourcePreference = downloads.SourcePreference; PreferOfficialCatalog = downloads.PreferOfficialCatalog; SelectInstalledInstance = downloads.SelectInstalledInstance; + RefreshSystemMemory(); + } + public void RefreshSystemMemory() + { + if (DateTime.UtcNow - lastMemoryRead < TimeSpan.FromSeconds(5)) return; + lastMemoryRead = DateTime.UtcNow; + systemMemory = (Service as IGameSettingsService)?.ReadMemoryStatus(); NotifyMemory(); + } + private void NotifyMemory() { OnPropertyChanged(nameof(MemorySummary)); OnPropertyChanged(nameof(SystemMemorySummary)); OnPropertyChanged(nameof(UsedMemoryPercent)); OnPropertyChanged(nameof(EffectiveMemoryMiB)); OnPropertyChanged(nameof(DisplayMemoryMiB)); } + private bool ValidateGameOptions() + { + try + { + GameSettingsPolicy.Validate(BuildGameOptions()); + if (MaximumConnections != decimal.Truncate(MaximumConnections) || MaximumConnections is < 1 or > DownloadDefaults.MaximumConnections || MaximumKiBPerSecond != decimal.Truncate(MaximumKiBPerSecond) || MaximumKiBPerSecond is < 0 or > 1048576) throw new ArgumentException("请填写有效的下载并发和限速值。"); + return true; + } + catch (Exception ex) when (ex is ArgumentException or InvalidDataException) { ReportSettingsError(ex.Message); return false; } + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.JavaSelection.cs b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.JavaSelection.cs new file mode 100644 index 00000000..d4ac0854 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.JavaSelection.cs @@ -0,0 +1,45 @@ +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class SettingsPageViewModel +{ + private string _savedJavaExecutable = ""; + private bool _javaSelectionConflict; + public bool HasJavaSelectionConflict + { + get => _javaSelectionConflict; + private set { if (SetProperty(ref _javaSelectionConflict, value)) { OnPropertyChanged(nameof(SaveSummary)); NotifyCommands(); } } + } + public string SavedJavaSelection => Owner.Snapshot.Settings.JavaExecutable ?? "自动选择 Java"; + public RelayCommand UseSavedJavaSelectionCommand { get; private set; } = null!; + public RelayCommand KeepJavaDraftCommand { get; private set; } = null!; + private void InitializeJavaSelectionConflict() + { + UseSavedJavaSelectionCommand = Command(() => + { + _savedJavaExecutable = Owner.Snapshot.Settings.JavaExecutable ?? ""; + JavaExecutable = _savedJavaExecutable; HasJavaSelectionConflict = false; + }, () => CanEdit && HasJavaSelectionConflict); + KeepJavaDraftCommand = Command(() => + { + _savedJavaExecutable = Owner.Snapshot.Settings.JavaExecutable ?? ""; HasJavaSelectionConflict = false; MarkDirty(); + }, () => CanEdit && HasJavaSelectionConflict); + } + private static bool EqualJavaSelection(string first, string second) => first.Trim().Equals(second.Trim(), + OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal); + private void ReconcileJavaSelection(LauncherSettings latest) + { + var saved = latest.JavaExecutable ?? ""; + if (EqualJavaSelection(JavaExecutable, _savedJavaExecutable)) + { + _loading = true; + try { JavaExecutable = saved; _savedJavaExecutable = saved; HasJavaSelectionConflict = false; } + finally { _loading = false; } + } + else if (EqualJavaSelection(JavaExecutable, saved)) { _savedJavaExecutable = saved; HasJavaSelectionConflict = false; } + else HasJavaSelectionConflict = !EqualJavaSelection(saved, _savedJavaExecutable); + OnPropertyChanged(nameof(SavedJavaSelection)); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Launcher.cs b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Launcher.cs new file mode 100644 index 00000000..b39f7e74 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Launcher.cs @@ -0,0 +1,203 @@ +using System.Collections.ObjectModel; +using System.Runtime.CompilerServices; +using System.Text.Json; +using Avalonia.Media; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Tools; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record LicenseDocument(string Name, string Text); +public sealed partial class SettingsPageViewModel +{ + private SettingsPresentationPreferences appearanceOptions = new(); + private LauncherBehavior launcherOptions = new(); + private CancellationTokenSource? settingsWork; + private TaskCompletionSource? settingsWorkDone; + private string workSection = ""; + private bool autoJavaAttempted, autoFeedbackAttempted; + private int navigationGeneration; + private bool settingsBusy; + private string launcherFeedback = ""; + private string feedbackQuery = ""; + private IReadOnlyList allFeedback = []; + private IReadOnlyList historicalLogs = []; + private string lastLogRecycle = ""; + private bool confirmLogCleanup; + private readonly CancellationTokenSource settingsLifetime = new(); + public CancellationToken SettingsLifetime => settingsLifetime.Token; + public void ShowLauncherFeedback(string text) => LauncherFeedback = text; + public SettingsPresentationPreferences SavedPresentation => _savedPresentation; + public Avalonia.Controls.GridLength SidebarWidth => new(Localization.UiLocalization.Instance.Locale.StartsWith("zh", StringComparison.Ordinal) ? 135 : 180); + public bool IsLauncherBusy { get => settingsBusy; private set { if (SetProperty(ref settingsBusy, value)) NotifyCommands(); } } + public string LauncherFeedback { get => launcherFeedback; private set => SetProperty(ref launcherFeedback, value); } + public string BackgroundSummary => appearanceOptions.BackgroundImages is { Length: > 0 } images ? string.Join(Environment.NewLine, images.Select(Path.GetFileName)) : "当前使用内置社团实景。"; + public bool LockWindowSize { get => appearanceOptions.LockWindowSize; set => Appearance(value, p => p.LockWindowSize, (p, v) => p with { LockWindowSize = v }); } + public bool ShowStartupLogo { get => appearanceOptions.ShowStartupLogo; set => Appearance(value, p => p.ShowStartupLogo, (p, v) => p with { ShowStartupLogo = v }); } + public bool ShowLaunchTips { get => appearanceOptions.ShowLaunchTips; set => Appearance(value, p => p.ShowLaunchTips, (p, v) => p with { ShowLaunchTips = v }); } + public bool NotifyClubUpdates { get => appearanceOptions.NotifyClubUpdates; set { Appearance(value, p => p.NotifyClubUpdates, (p, v) => p with { NotifyClubUpdates = v }); OnPropertyChanged(nameof(AnnouncementMode)); } } + public IReadOnlyList AnnouncementModes { get; } = ["off", "club-updates"]; + public string AnnouncementMode { get => NotifyClubUpdates ? "club-updates" : "off"; set => NotifyClubUpdates = value == "club-updates"; } + public bool AdvancedMaterial { get => appearanceOptions.AdvancedMaterial; set => Appearance(value, p => p.AdvancedMaterial, (p, v) => p with { AdvancedMaterial = v }); } + public string SelectedFont { get => appearanceOptions.FontFamily; set => Appearance(value ?? "", p => p.FontFamily, (p, v) => p with { FontFamily = v }); } + public string LightAccent { get => appearanceOptions.LightAccent; set => Appearance(value, p => p.LightAccent, (p, v) => p with { LightAccent = v }); } + public string DarkAccent { get => appearanceOptions.DarkAccent; set => Appearance(value, p => p.DarkAccent, (p, v) => p with { DarkAccent = v }); } + public string TitleMode { get => appearanceOptions.TitleMode; set { Appearance(value, p => p.TitleMode, (p, v) => p with { TitleMode = v }); OnPropertyChanged(nameof(IsTextTitle)); OnPropertyChanged(nameof(IsImageTitle)); } } + public bool IsTextTitle => TitleMode == "text"; + public bool IsImageTitle => TitleMode == "image"; + public string CustomTitleText { get => appearanceOptions.TitleText; set => Appearance(value, p => p.TitleText, (p, v) => p with { TitleText = v }); } + public string CustomTitleImage { get => appearanceOptions.TitleImage; set => Appearance(value, p => p.TitleImage, (p, v) => p with { TitleImage = v }); } + public string HomeSource { get => appearanceOptions.HomeSource; set { Appearance(value, p => p.HomeSource, (p, v) => p with { HomeSource = v }); OnPropertyChanged(nameof(IsCustomHome)); OnPropertyChanged(nameof(IsCustomHomeFile)); } } + public bool IsCustomHome => HomeSource is "local" or "remote"; + public string HomeLocation { get => appearanceOptions.HomeLocation; set => Appearance(value, p => p.HomeLocation, (p, v) => p with { HomeLocation = v }); } + public bool HideDownloads { get => appearanceOptions.HiddenSections?.Contains("download") == true; set => SetHidden("download", value); } + public bool HideTools { get => appearanceOptions.HiddenSections?.Contains("tools") == true; set => SetHidden("tools", value); } + public string RegionalFormat { get => launcherOptions.RegionalFormat; set => Behavior(value, p => p.RegionalFormat, (p, v) => p with { RegionalFormat = v }); } + public decimal LogLineLimit { get => launcherOptions.LogLineLimit; set => Behavior((int)value, p => p.LogLineLimit, (p, v) => p with { LogLineLimit = v }); } + public bool DisableHardwareAcceleration { get => launcherOptions.DisableHardwareAcceleration; set => Behavior(value, p => p.DisableHardwareAcceleration, (p, v) => p with { DisableHardwareAcceleration = v }); } + public bool UseDnsOverHttps { get => launcherOptions.UseDnsOverHttps; set => Behavior(value, p => p.UseDnsOverHttps, (p, v) => p with { UseDnsOverHttps = v }); } + public IReadOnlyList TitleModes { get; } = ["default", "none", "text", "image"]; + public IReadOnlyList HomeSources { get; } = ["default", "empty", "local", "remote"]; + public IReadOnlyList AccentChoices { get; } = ["default", "sky", "cat", "death", "garnet", "aimisi", "elegant", "blue", "jade"]; + public IReadOnlyList RegionChoices { get; } = ["system", "zh-CN", "zh-TW", "en-US", "en-GB", "ja-JP", "fr-FR", "es-ES"]; + public ObservableCollection FontChoices { get; } = [""]; + public ObservableCollection Releases { get; } = []; + public ObservableCollection FeedbackItems { get; } = []; + public ObservableCollection Licenses { get; } = []; + private LauncherRelease? selectedRelease; + public LauncherRelease? SelectedRelease { get => selectedRelease; set { if (SetProperty(ref selectedRelease, value)) { OnPropertyChanged(nameof(ReleaseNotes)); NotifyCommands(); } } } + public string ReleaseNotes => SelectedRelease?.Notes ?? ""; + public string FeedbackQuery { get => feedbackQuery; set { if (SetProperty(ref feedbackQuery, value)) FilterFeedback(); } } + public bool ConfirmLogCleanup { get => confirmLogCleanup; set { SetProperty(ref confirmLogCleanup, value); RecycleHistoricalLogsCommand.NotifyCanExecuteChanged(); } } + public string HistoricalLogsSummary => historicalLogs.Count == 0 ? "没有可清理的历史日志。" : $"可回收 {historicalLogs.Count} 个超过七天的历史日志;当前日志保留。"; + public bool HasHistoricalLogPreview => historicalLogs.Count > 0 || Directory.Exists(lastLogRecycle); + public AsyncRelayCommand CheckUpdatesCommand { get; private set; } = null!; + public AsyncRelayCommand OpenSelectedReleaseCommand { get; private set; } = null!; + public AsyncRelayCommand RefreshFeedbackCommand { get; private set; } = null!; + public AsyncRelayCommand OpenFeedbackItemCommand { get; private set; } = null!; + public AsyncRelayCommand ScanHistoricalLogsCommand { get; private set; } = null!; + public AsyncRelayCommand RecycleHistoricalLogsCommand { get; private set; } = null!; + public AsyncRelayCommand RestoreHistoricalLogsCommand { get; private set; } = null!; + public RelayCommand CancelSettingsWorkCommand { get; private set; } = null!; + public RelayCommand RestoreBackgroundCommand { get; private set; } = null!; + public RelayCommand RefreshBackgroundCommand { get; private set; } = null!; + public AsyncRelayCommand OpenPicturesDirectoryCommand { get; private set; } = null!; + public AsyncRelayCommand OpenMusicDirectoryCommand { get; private set; } = null!; + + private void Appearance(T value, Func get, Func set, [CallerMemberName] string property = "") + { if (EqualityComparer.Default.Equals(get(appearanceOptions), value)) return; appearanceOptions = set(appearanceOptions, value); OnPropertyChanged(property); MarkDirty(); } + private void Behavior(T value, Func get, Func set, [CallerMemberName] string property = "") + { if (EqualityComparer.Default.Equals(get(launcherOptions), value)) return; launcherOptions = set(launcherOptions, value); OnPropertyChanged(property); MarkDirty(); } + private void SetHidden(string section, bool hidden, [CallerMemberName] string property = "") + { var items = (appearanceOptions.HiddenSections ?? []).Where(s => s != section).ToList(); if (hidden) items.Add(section); appearanceOptions = appearanceOptions with { HiddenSections = items.ToArray() }; OnPropertyChanged(property); MarkDirty(); } + public void SetBackgroundImages(IReadOnlyList files) + { appearanceOptions = appearanceOptions with { BackgroundImages = files.ToArray() }; OnPropertyChanged(nameof(BackgroundSummary)); MarkDirty(); } + private bool fontsLoaded; + public void LoadFontChoices() + { if (fontsLoaded) return; fontsLoaded = true; foreach (var font in FontManager.Current.SystemFonts.Select(f => f.Name).Distinct().Order(StringComparer.CurrentCulture).Take(1000)) if (!FontChoices.Contains(font)) FontChoices.Add(font); } + private void InitializeLauncherSettings() + { + RestoreBackgroundCommand = Command(() => SetBackgroundImages([]), () => CanEdit); + RefreshBackgroundCommand = Command(() => { Owner.Home.RefreshBackgrounds(); LauncherFeedback = "背景已刷新。"; }); + OpenPicturesDirectoryCommand = OpenMediaDirectory("images"); OpenMusicDirectoryCommand = OpenMediaDirectory("music"); + CancelSettingsWorkCommand = Command(() => settingsWork?.Cancel(), () => IsLauncherBusy); + CheckUpdatesCommand = AsyncCommand(() => RunSettingsWork(async ct => + { + if (Service is not ILauncherInformationService info) throw new NotSupportedException("当前服务不支持版本检查。"); + var releases = await info.CheckLauncherReleasesAsync(ct); ct.ThrowIfCancellationRequested(); Releases.Clear(); foreach (var release in releases) Releases.Add(release); + SelectedRelease = Releases.FirstOrDefault(r => r.Prerelease == false) ?? Releases.FirstOrDefault(); + LauncherFeedback = releases.Count == 0 ? "没有已发布版本。" : "最新发布:" + SelectedRelease?.Tag; + }), () => !IsLauncherBusy); + OpenSelectedReleaseCommand = AsyncCommand(() => Owner.RunControlAsync("打开发行下载页", ct => Owner.ExternalLauncher.OpenUriAsync(SelectedRelease!.Page, ct)), () => SelectedRelease is not null); + RefreshFeedbackCommand = AsyncCommand(() => RunSettingsWork(async ct => + { autoFeedbackAttempted = true; var found = await ((ILauncherInformationService)Service).GetLauncherFeedbackAsync(ct); ct.ThrowIfCancellationRequested(); allFeedback = found; FilterFeedback(); LauncherFeedback = FeedbackItems.Count == 0 ? "没有匹配的反馈。" : ""; }), () => !IsLauncherBusy && Service is ILauncherInformationService); + OpenFeedbackItemCommand = new(item => item is null ? Task.CompletedTask : Owner.RunControlAsync("打开反馈", ct => Owner.ExternalLauncher.OpenUriAsync(item.Page, ct))); + ScanHistoricalLogsCommand = AsyncCommand(() => RunSettingsWork(async ct => { historicalLogs = await LauncherLogArchive.ScanAsync(LogsDirectory, ct); ConfirmLogCleanup = false; OnPropertyChanged(nameof(HistoricalLogsSummary)); OnPropertyChanged(nameof(HasHistoricalLogPreview)); if (historicalLogs.Count == 0) LauncherFeedback = HistoricalLogsSummary; }), () => !IsLauncherBusy); + RecycleHistoricalLogsCommand = AsyncCommand(() => RunSettingsWork(async ct => { lastLogRecycle = await LauncherLogArchive.RecycleAsync(LogsDirectory, historicalLogs, ct); historicalLogs = []; ConfirmLogCleanup = false; OnPropertyChanged(nameof(HistoricalLogsSummary)); RefreshLogFiles(); LauncherFeedback = "历史日志已移入回收目录。"; NotifyCommands(); }), () => !IsLauncherBusy && ConfirmLogCleanup && historicalLogs.Count > 0); + RestoreHistoricalLogsCommand = AsyncCommand(() => RunSettingsWork(async ct => { await LauncherLogArchive.RestoreAsync(LogsDirectory, lastLogRecycle, ct); RefreshLogFiles(); LauncherFeedback = "历史日志已恢复。"; }), () => !IsLauncherBusy && Directory.Exists(lastLogRecycle)); + LoadLicenses(); + InitializeMusic(); + InitializeFeatureGroups(); + InitializeAbout(); + } + public Task AddJavaAsync(string path) => RunSettingsWork(async ct => + { + if (Service is not IJavaManagementService management) { JavaExecutable = path; return; } + var java = await management.InspectJavaAsync(path, ct); + var existing = JavaInstallations.FirstOrDefault(j => j.ExecutablePath.Equals(java.ExecutablePath, OperatingSystem.IsWindows() ? StringComparison.OrdinalIgnoreCase : StringComparison.Ordinal)); + if (existing is not null) JavaInstallations.Remove(existing); + JavaInstallations.Insert(0, java); SelectedJava = java; OnPropertyChanged(nameof(DiscoveredJavaTitle)); + if (java.IsUsable) JavaExecutable = java.ExecutablePath; else LauncherFeedback = java.ProbeError ?? "无法识别此 Java。"; + }); + private AsyncRelayCommand OpenMediaDirectory(string kind) => AsyncCommand(() => Owner.RunControlAsync("打开素材目录", async ct => + { var path = SHOU.Launcher.Core.IO.SafePath.Within(DataDirectory, "appearance/" + kind); SHOU.Launcher.Core.IO.SafePath.RejectLinks(path); Directory.CreateDirectory(path); await Owner.ExternalLauncher.OpenDirectoryAsync(path, ct); })); + private void LoadLicenses() + { + foreach (var document in BundledLicenseDocuments.Read(AppContext.BaseDirectory)) Licenses.Add(document); + } + private void FilterFeedback() { FeedbackItems.Clear(); foreach (var item in allFeedback.Where(f => f.Title.Contains(FeedbackQuery, StringComparison.CurrentCultureIgnoreCase) || f.Body.Contains(FeedbackQuery, StringComparison.CurrentCultureIgnoreCase))) FeedbackItems.Add(item); } + private async Task RunSettingsWork(Func work) + { + if (IsLauncherBusy || settingsLifetime.IsCancellationRequested) return; using var cts = CancellationTokenSource.CreateLinkedTokenSource(settingsLifetime.Token); cts.CancelAfter(TimeSpan.FromMinutes(5)); settingsWork = cts; var done = settingsWorkDone = new(TaskCreationOptions.RunContinuationsAsynchronously); workSection = SelectedSection; IsLauncherBusy = true; LauncherFeedback = ""; + try { await work(cts.Token); } + catch (OperationCanceledException) { LauncherFeedback = "操作已取消或超时。"; } + catch (HttpRequestException ex) when (ex.StatusCode is System.Net.HttpStatusCode.Forbidden or System.Net.HttpStatusCode.TooManyRequests) + { LauncherFeedback = "服务暂时限制了请求。请稍后重试,或前往项目页面查看。"; } + catch (HttpRequestException) { LauncherFeedback = "无法连接服务。请检查网络后重试。"; } + catch (Exception ex) when (ex is IOException or HttpRequestException or JsonException or ArgumentException or InvalidOperationException or NotSupportedException or UnauthorizedAccessException) + { LauncherFeedback = UiPrivacy.Redact(ex.Message); } + finally { settingsWork = null; IsLauncherBusy = false; done.TrySetResult(); if (ReferenceEquals(settingsWorkDone, done)) settingsWorkDone = null; } + } + private async Task NavigateLauncherSectionAsync(string section) + { + var generation = ++navigationGeneration; + if (IsLauncherBusy && workSection != section) { settingsWork?.Cancel(); if (settingsWorkDone is { } pending) await pending.Task; } + if (generation != navigationGeneration || settingsLifetime.IsCancellationRequested || SelectedSection != section) return; + LauncherFeedback = ""; + if (section == "java" && !autoJavaAttempted && JavaInstallations.Count == 0 && DiscoverJavaCommand.CanExecute(null)) await DiscoverJavaCommand.ExecuteAsync(null); + if (section == "feedback" && !autoFeedbackAttempted && RefreshFeedbackCommand.CanExecute(null)) await RefreshFeedbackCommand.ExecuteAsync(null); + } + internal void OnNavigatingAway() => settingsWork?.Cancel(); + public async Task RunFileOperationAsync(Func action) + { + var completed = false; await RunSettingsWork(async ct => { await action(ct); completed = true; }); return completed; + } + public async Task CancelAndWaitAsync() { var pending = settingsWorkDone?.Task; settingsWork?.Cancel(); if (pending is not null) await pending; } + private void LoadLauncherOptions(LauncherSettings settings) + { launcherOptions = settings.Launcher ?? new(); foreach (var name in new[] { nameof(RegionalFormat), nameof(LogLineLimit), nameof(DisableHardwareAcceleration), nameof(UseDnsOverHttps) }) OnPropertyChanged(name); } + private void LoadAppearanceOptions(SettingsPresentationPreferences preferences) + { appearanceOptions = preferences; foreach (var font in new[] { preferences.FontFamily, preferences.MotdFontFamily }) if (!FontChoices.Contains(font)) FontChoices.Add(font); foreach (var name in new[] { nameof(LockWindowSize), nameof(ShowStartupLogo), nameof(ShowLaunchTips), nameof(NotifyClubUpdates), nameof(AdvancedMaterial), nameof(SelectedFont), nameof(LightAccent), nameof(DarkAccent), nameof(TitleMode), nameof(CustomTitleText), nameof(CustomTitleImage), nameof(HomeSource), nameof(HomeLocation), nameof(IsCustomHome), nameof(IsImageTitle), nameof(IsTextTitle), nameof(HideDownloads), nameof(HideTools), nameof(BackgroundSummary) }) OnPropertyChanged(name); RefreshFeatureChoices(); NotifyAppearanceFields(); } + private SettingsPresentationPreferences BuildPresentation() => appearanceOptions with { ShowClubIntroduction = ShowClubIntroduction, ShowClubServers = ShowClubServers, RotateHomeBackground = RotateHomeBackground, WindowOpacity = WindowOpacity, LastClubNotice = _savedPresentation.LastClubNotice }; + internal async Task RecordClubNoticeAsync(string key, CancellationToken ct) + { + await settingsSaveGate.WaitAsync(ct); + try + { + var updated = _savedPresentation with { LastClubNotice = key }; + await _presentationStore.SaveAsync(updated, ct); _savedPresentation = updated; + } + finally { settingsSaveGate.Release(); } + } + public byte[] ExportSettings() + { + var saved = Owner.Snapshot.Settings; + saved = saved with { MicrosoftClientId = null, JavaTrustSelection = null, Proxy = saved.Proxy is { } p ? p with { CredentialKey = null } : null, Aria2 = saved.Aria2 is { } a ? a with { CredentialKey = null } : null }; + if (System.Text.RegularExpressions.Regex.IsMatch(saved.DownloadSourcesJson, @"(?i)(token|password|secret|api[_-]?key|authorization)")) throw new InvalidDataException("自定义下载源含敏感字段,请先移除后导出。"); + return JsonSerializer.SerializeToUtf8Bytes(new { format = "SHOU-Settings-v1", settings = saved, presentation = _savedPresentation }, new JsonSerializerOptions(JsonSerializerDefaults.Web) { WriteIndented = true }); + } + public void ImportSettings(ReadOnlyMemory data) + { + if (data.Length > 1048576) throw new InvalidDataException("设置文件不能超过 1 MiB。"); + using var json = JsonDocument.Parse(data); if (json.RootElement.GetProperty("format").GetString() != "SHOU-Settings-v1") throw new InvalidDataException("请选择 SHOU 设置导出文件。"); + var opts = new JsonSerializerOptions(JsonSerializerDefaults.Web); + var imported = json.RootElement.GetProperty("settings").Deserialize(opts) ?? throw new InvalidDataException("设置为空。"); + var presentation = json.RootElement.GetProperty("presentation").Deserialize(opts) ?? throw new InvalidDataException("界面偏好为空。"); + var current = Owner.Snapshot.Settings; + imported = imported with { MicrosoftClientId = current.MicrosoftClientId, JavaTrustSelection = current.JavaTrustSelection, + Proxy = imported.Proxy is { } p ? p with { CredentialKey = current.Proxy?.CredentialKey } : current.Proxy, + Aria2 = imported.Aria2 is { } a ? a with { CredentialKey = current.Aria2?.CredentialKey } : current.Aria2 }; + SHOU.Launcher.Core.Configuration.ConfigurationStore.ValidateSettings(imported); SettingsPresentationStore.Validate(presentation); + Load(imported); LoadPresentation(presentation); MarkDirty(); LauncherFeedback = "已导入设置,有效内容会自动保存。"; + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Music.cs b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Music.cs new file mode 100644 index 00000000..b2f5879b --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Music.cs @@ -0,0 +1,77 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Downloads; +using SHOU.Launcher.Desktop.Platform; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record MusicTrack(string Name, string Path); +public sealed partial class SettingsPageViewModel +{ + private readonly BackgroundAudio backgroundAudio = new(); + private MusicTrack? selectedMusic, playingTrack; + private string musicFeedback = ""; + public string MusicFeedback { get => musicFeedback; private set { if (SetProperty(ref musicFeedback, value)) OnPropertyChanged(nameof(HasMusicFeedback)); } } + public bool HasMusicFeedback => !string.IsNullOrWhiteSpace(MusicFeedback); + private bool musicWanted, musicAutoWasEnabled, musicStoppedManually, previousMusicGameRunning; + private decimal appliedVolume = -1; + private readonly Avalonia.Threading.DispatcherTimer musicTimer = new() { Interval = TimeSpan.FromSeconds(.5) }; + public decimal MusicVolume { get => appearanceOptions.MusicVolume; set => Appearance(value, p => p.MusicVolume, (p, v) => p with { MusicVolume = v }); } + public bool MusicAutoPlay { get => appearanceOptions.MusicAutoPlay; set => Appearance(value, p => p.MusicAutoPlay, (p, v) => p with { MusicAutoPlay = v }); } + public bool MusicShuffle { get => appearanceOptions.MusicShuffle; set => Appearance(value, p => p.MusicShuffle, (p, v) => p with { MusicShuffle = v }); } + public string MusicGamePolicy { get => appearanceOptions.MusicGamePolicy; set => Appearance(value, p => p.MusicGamePolicy, (p, v) => p with { MusicGamePolicy = v }); } + public IReadOnlyList MusicGamePolicies { get; } = ["keep", "stop", "only"]; + public ObservableCollection MusicTracks { get; } = []; + public MusicTrack? SelectedMusic { get => selectedMusic; set { if (SetProperty(ref selectedMusic, value)) PlayMusicCommand.NotifyCanExecuteChanged(); } } + public RelayCommand RefreshMusicCommand { get; private set; } = null!; + public RelayCommand PlayMusicCommand { get; private set; } = null!; + public RelayCommand StopMusicCommand { get; private set; } = null!; + private void InitializeMusic() + { + RefreshMusicCommand = Command(() => + { + MusicTracks.Clear(); var root = Path.Combine(DataDirectory, "appearance", "music"); + try + { + SHOU.Launcher.Core.IO.SafePath.RejectLinks(root); + if (Directory.Exists(root)) foreach (var file in new DirectoryInfo(root).EnumerateFiles().Where(f => f.LinkTarget is null && f.Extension.ToLowerInvariant() is ".mp3" or ".wav" or ".m4a").OrderBy(f => f.Name).Take(200)) MusicTracks.Add(new(file.Name, file.FullName)); + SelectedMusic = MusicTracks.FirstOrDefault(); MusicFeedback = MusicTracks.Count == 0 ? "音乐目录中没有 WAV、MP3 或 M4A 文件。" : ""; + } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { MusicFeedback = UiPrivacy.Redact(ex.Message); } + }); + PlayMusicCommand = Command(() => { musicWanted = true; musicStoppedManually = false; playingTrack = null; backgroundAudio.Stop(); UpdateMusicPlayback(); }, () => SelectedMusic is not null); + StopMusicCommand = Command(() => { musicWanted = false; musicStoppedManually = true; backgroundAudio.Stop(); playingTrack = null; }); + musicTimer.Tick += (_, _) => UpdateMusicPlayback(); musicTimer.Start(); + RefreshMusicCommand.Execute(null); ApplyMusicOptions(); + } + private void ApplyMusicOptions() + { + if (_savedPresentation.MusicAutoPlay != musicAutoWasEnabled) + { musicWanted = _savedPresentation.MusicAutoPlay; musicAutoWasEnabled = _savedPresentation.MusicAutoPlay; if (!musicWanted) backgroundAudio.Stop(); } + UpdateMusicPlayback(); + } + private void UpdateMusicPlayback() + { + if (settingsLifetime.IsCancellationRequested || !OperatingSystem.IsWindows() && !OperatingSystem.IsMacOS()) return; + var p = _savedPresentation; var running = Owner.Snapshot.GameSessions.Count > 0 || Owner.Snapshot.GameProcessId is not null; + if (running && !previousMusicGameRunning && p.MusicGamePolicy == "only") musicStoppedManually = false; + previousMusicGameRunning = running; + if (musicStoppedManually) return; + if (p.MusicGamePolicy == "stop" && running || p.MusicGamePolicy == "only" && !running) + { backgroundAudio.Stop(); return; } + if ((!musicWanted && !(p.MusicGamePolicy == "only" && running)) || MusicTracks.Count == 0) return; + try + { + var volumeChanged = appliedVolume != p.MusicVolume; + if (backgroundAudio.IsPlaying && (!volumeChanged || OperatingSystem.IsWindows())) + { if (volumeChanged) backgroundAudio.SetVolume(p.MusicVolume); appliedVolume = p.MusicVolume; return; } + var track = volumeChanged && playingTrack is not null ? playingTrack : playingTrack is null ? SelectedMusic ?? MusicTracks[0] : + p.MusicShuffle ? MusicTracks[Random.Shared.Next(MusicTracks.Count)] : MusicTracks[(Math.Max(0, MusicTracks.IndexOf(playingTrack)) + 1) % MusicTracks.Count]; + backgroundAudio.Play(track.Path, p.MusicVolume); playingTrack = track; appliedVolume = p.MusicVolume; + } + catch (Exception ex) when (ex is IOException or ArgumentException or InvalidOperationException) + { musicWanted = false; musicStoppedManually = true; backgroundAudio.Stop(); MusicFeedback = UiPrivacy.Redact(ex.Message); } + } + + internal void DisposeLauncherSettings() { autoSaveTimer.Stop(); musicTimer.Stop(); DisposeAbout(); settingsLifetime.Cancel(); settingsWork?.Cancel(); backgroundAudio.Dispose(); } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Parity.cs b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Parity.cs new file mode 100644 index 00000000..eca8e162 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.Parity.cs @@ -0,0 +1,179 @@ +using System.Collections.ObjectModel; +using System.Globalization; +using System.Runtime.InteropServices; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed record SettingsLogFile(string Name, string Modified, string Size, string Path, AsyncRelayCommand? OpenCommand = null); + +public sealed partial class SettingsPageViewModel +{ + public static IReadOnlyList SectionIds { get; } = ["launch", "java", "manage", "appearance", "language", "misc", "about", "updates", "feedback", "logs"]; + private string _selectedSection = "launch"; + public string SelectedSection + { + get => _selectedSection; + set + { + if (!SectionIds.Contains(value) || !SetProperty(ref _selectedSection, value)) return; + foreach (var property in new[] { nameof(IsLaunchSection), nameof(IsJavaSection), nameof(IsManageSection), nameof(IsAppearanceSection), nameof(IsLanguageSection), nameof(IsMiscSection), nameof(IsAboutSection), nameof(IsUpdatesSection), nameof(IsFeedbackSection), nameof(IsLogsSection) }) OnPropertyChanged(property); + if (IsLogsSection) RefreshLogFiles(); + if (IsLaunchSection) RefreshSystemMemory(); + if (IsAppearanceSection) LoadFontChoices(); + _ = NavigateLauncherSectionAsync(value); + } + } + public bool IsLaunchSection => SelectedSection == "launch"; + public bool IsJavaSection => SelectedSection == "java"; + public bool IsManageSection => SelectedSection == "manage"; + public bool IsAppearanceSection => SelectedSection == "appearance"; + public bool IsLanguageSection => SelectedSection == "language"; + public bool IsMiscSection => SelectedSection == "misc"; + public bool IsAboutSection => SelectedSection == "about"; + public bool IsUpdatesSection => SelectedSection == "updates"; + public bool IsFeedbackSection => SelectedSection == "feedback"; + public bool IsLogsSection => SelectedSection == "logs"; + public RelayCommand SelectSectionCommand { get; private set; } = null!; + + private bool _useCustomWindow; + private decimal _gameWindowWidth = 854; + private decimal _gameWindowHeight = 480; + private bool _gameFullscreen; + private bool _useMinimumMemory; + private decimal _minimumMemoryMiB = 512; + private string _customInfo = ""; + public bool UseCustomWindow { get => _useCustomWindow; set { if (SetProperty(ref _useCustomWindow, value)) MarkDirty(); } } + public decimal GameWindowWidth { get => _gameWindowWidth; set { if (SetProperty(ref _gameWindowWidth, value)) MarkDirty(); } } + public decimal GameWindowHeight { get => _gameWindowHeight; set { if (SetProperty(ref _gameWindowHeight, value)) MarkDirty(); } } + public bool GameFullscreen { get => _gameFullscreen; set { if (SetProperty(ref _gameFullscreen, value)) MarkDirty(); } } + public bool UseMinimumMemory { get => _useMinimumMemory; set { if (SetProperty(ref _useMinimumMemory, value)) MarkDirty(); } } + public decimal MinimumMemoryMiB { get => _minimumMemoryMiB; set { if (SetProperty(ref _minimumMemoryMiB, value)) MarkDirty(); } } + public string CustomInfo { get => _customInfo; set { if (SetProperty(ref _customInfo, value)) MarkDirty(); } } + public string MemorySummary => $"游戏分配:{EffectiveMemoryMiB / 1024d:0.##} GiB({EffectiveMemoryMiB} MiB)"; + public string JavaSelectionSummary => string.IsNullOrWhiteSpace(JavaExecutable) ? "自动选择 Java(推荐)" : "已指定全局 Java"; + public ObservableCollection JavaInstallations { get; } = []; + private JavaInstallation? _selectedJava; + private bool _aria2DetailsExpanded; + public bool Aria2DetailsExpanded { get => _aria2DetailsExpanded; set => SetProperty(ref _aria2DetailsExpanded, value); } + public JavaInstallation? SelectedJava { get => _selectedJava; set { if (SetProperty(ref _selectedJava, value)) UseSelectedJavaCommand.NotifyCanExecuteChanged(); } } + public string DiscoveredJavaTitle => Localization.UiLocalization.Instance.Format("已发现的 Java({0})", JavaInstallations.Count); + public AsyncRelayCommand DiscoverJavaCommand { get; private set; } = null!; + public RelayCommand UseAutomaticJavaCommand { get; private set; } = null!; + public RelayCommand UseSelectedJavaCommand { get; private set; } = null!; + + private SettingsPresentationStore _presentationStore = null!; + private SettingsPresentationPreferences _savedPresentation = new(); + private bool _showClubIntroduction; + private bool _showClubServers; + private bool _rotateHomeBackground = true; + private decimal _windowOpacity = 100; + public bool ShowClubIntroduction { get => _showClubIntroduction; set { if (SetProperty(ref _showClubIntroduction, value)) MarkDirty(); } } + public bool ShowClubServers { get => _showClubServers; set { if (SetProperty(ref _showClubServers, value)) MarkDirty(); } } + public bool RotateHomeBackground { get => _rotateHomeBackground; set { if (SetProperty(ref _rotateHomeBackground, value)) MarkDirty(); } } + public decimal WindowOpacity { get => _windowOpacity; set { if (SetProperty(ref _windowOpacity, value)) MarkDirty(); } } + public string SoftwareName => Owner.Snapshot.Build.Name; + public string SoftwareVersion => Localization.UiLocalization.Instance.Format("发行版本 v{0} · 代号 {1}", Owner.Snapshot.Build.Version, Owner.Snapshot.Build.Codename); + public string BuildDetails => $"{Owner.Snapshot.Build.Configuration} · {Owner.Snapshot.Build.SourceSha}\n{RuntimeInformation.FrameworkDescription} · {Owner.Snapshot.Platform.OS} / {Owner.Snapshot.Platform.ProcessArchitecture}"; + public string CredentialCapability => Owner.Snapshot.CanPersistAccounts ? "系统安全存储可用" : "系统安全存储不可用"; + public string UpdateCapability => "在线版本检查尚未接入;请在本社团仓库的发行页核对版本。"; + public string FeedbackCapability => "反馈列表尚未接入;可打开本社团仓库的问题列表。"; + public ObservableCollection LogFiles { get; } = []; + private string _logFilesSummary = "尚未读取日志目录。"; + public string LogFilesSummary { get => _logFilesSummary; private set => SetProperty(ref _logFilesSummary, value); } + public RelayCommand RefreshLogFilesCommand { get; private set; } = null!; + public AsyncRelayCommand OpenLogsDirectoryCommand { get; private set; } = null!; + public AsyncRelayCommand OpenProjectCommand { get; private set; } = null!; + public AsyncRelayCommand OpenReleasesCommand { get; private set; } = null!; + public AsyncRelayCommand OpenFeedbackCommand { get; private set; } = null!; + public AsyncRelayCommand OpenClubCommand { get; private set; } = null!; + public RelayCommand ShowLiveLogsCommand { get; private set; } = null!; + + private void InitializeParity() + { + SelectSectionCommand = new(section => { if (section is not null) SelectedSection = section; }); + DiscoverJavaCommand = AsyncCommand(() => RunSettingsWork(async ct => { autoJavaAttempted = true; var found = await Service.DiscoverJavaAsync(ct); ct.ThrowIfCancellationRequested(); UpdateJava(found); }), () => !IsLauncherBusy && Owner.CanReadRemote); + UseAutomaticJavaCommand = Command(() => JavaExecutable = "", () => CanEdit); + UseSelectedJavaCommand = Command(() => JavaExecutable = SelectedJava!.ExecutablePath, () => CanEdit && SelectedJava is { IsUsable: true }); + RefreshLogFilesCommand = Command(RefreshLogFiles); + OpenLogsDirectoryCommand = AsyncCommand(() => Owner.RunControlAsync("打开日志目录", ct => Owner.ExternalLauncher.OpenDirectoryAsync(LogsDirectory, ct))); + OpenProjectCommand = OpenLink("打开社团源码", "https://github.com/Conduit-Club/SHOU-Launcher"); + OpenReleasesCommand = OpenLink("打开发行页", "https://github.com/Conduit-Club/SHOU-Launcher/releases"); + OpenFeedbackCommand = OpenLink("打开问题列表", "https://github.com/Conduit-Club/SHOU-Launcher/issues"); + OpenClubCommand = OpenLink("打开社团主页", "https://conduit-club.github.io/"); + ShowLiveLogsCommand = Command(() => Owner.SelectedPage = Owner.Logs); + _presentationStore = new(DataDirectory); + try { _savedPresentation = _presentationStore.Load(); } + catch (Exception ex) when (ex is IOException or InvalidDataException or UnauthorizedAccessException or System.Text.Json.JsonException) { Feedback = "界面偏好未加载:" + UiPrivacy.Redact(ex.Message); } + LoadPresentation(_savedPresentation); + InitializeSourceEditor(); + InitializeLauncherSettings(); + } + + private AsyncRelayCommand OpenLink(string label, string url) => AsyncCommand(() => Owner.RunControlAsync(label, ct => Owner.ExternalLauncher.OpenUriAsync(new Uri(url), ct))); + private void LoadPresentation(SettingsPresentationPreferences preferences) + { + var wasLoading = _loading; _loading = true; + try { ShowClubIntroduction = preferences.ShowClubIntroduction; ShowClubServers = preferences.ShowClubServers; RotateHomeBackground = preferences.RotateHomeBackground; WindowOpacity = preferences.WindowOpacity; LoadAppearanceOptions(preferences); } + finally { _loading = wasLoading; } + ApplyPresentation(); + } + private void ApplyPresentation() + { + Owner.Home.SetPresentation(_savedPresentation.ShowClubIntroduction, _savedPresentation.ShowClubServers, _savedPresentation.RotateHomeBackground, (double)_savedPresentation.WindowOpacity / 100); + Owner.Home.ApplyAppearance(_savedPresentation); + if (PlayMusicCommand is not null) ApplyMusicOptions(); + OnPropertyChanged(nameof(SavedPresentation)); + Owner.NotifyLauncherAppearance(); + } + private async Task SavePresentationAsync(SettingsPresentationPreferences preferences, CancellationToken cancellationToken) + { + SettingsPresentationStore.Validate(preferences); + await _presentationStore.SaveAsync(preferences, cancellationToken); + _savedPresentation = preferences; + ApplyPresentation(); + } + private bool ValidateLaunchDraft() + { + if (UseCustomWindow && (GameWindowWidth is < 320 or > 16384 || GameWindowHeight is < 320 or > 16384 || decimal.Truncate(GameWindowWidth) != GameWindowWidth || decimal.Truncate(GameWindowHeight) != GameWindowHeight)) + { ReportSettingsError("窗口宽高须为 320–16384 的整数。"); if (!saveIsAutomatic) SelectedSection = "launch"; return false; } + if (UseMinimumMemory && (MinimumMemoryMiB < 512 || MinimumMemoryMiB > MemoryMiB || decimal.Truncate(MinimumMemoryMiB) != MinimumMemoryMiB)) + { ReportSettingsError("初始内存须为不少于 512 MiB 且不超过最大内存的整数。"); if (!saveIsAutomatic) SelectedSection = "launch"; return false; } + if (WindowOpacity is < 50 or > 100) { ReportSettingsError("窗口不透明度须为 50–100%。"); if (!saveIsAutomatic) SelectedSection = "appearance"; return false; } + return true; + } + private void LoadLaunchDraft(LauncherSettings settings) + { + UseCustomWindow = settings.GameWindowWidth is not null || settings.GameWindowHeight is not null; + GameWindowWidth = settings.GameWindowWidth ?? 854; GameWindowHeight = settings.GameWindowHeight ?? 480; + GameFullscreen = settings.GameFullscreen; UseMinimumMemory = settings.MinimumMemoryMiB is not null; + MinimumMemoryMiB = settings.MinimumMemoryMiB ?? 512; CustomInfo = settings.CustomInfo ?? ""; + } + private void UpdateJava(IReadOnlyList java) + { + var selected = SelectedJava?.ExecutablePath; + if (!JavaInstallations.SequenceEqual(java)) { JavaInstallations.Clear(); foreach (var item in java) JavaInstallations.Add(item); } + SelectedJava = JavaInstallations.FirstOrDefault(j => j.ExecutablePath == (selected ?? JavaExecutable)); + OnPropertyChanged(nameof(DiscoveredJavaTitle)); + } + private void RefreshParity(LauncherSnapshot snapshot) + { + OnPropertyChanged(nameof(SidebarWidth)); + UpdateJava(snapshot.JavaInstallations); + OnPropertyChanged(nameof(SoftwareName)); OnPropertyChanged(nameof(SoftwareVersion)); OnPropertyChanged(nameof(BuildDetails)); OnPropertyChanged(nameof(CredentialCapability)); + } + private void RefreshLogFiles() + { + LogFiles.Clear(); + try + { + if (!Directory.Exists(LogsDirectory)) { LogFilesSummary = "尚无启动器日志文件。"; return; } + foreach (var file in new DirectoryInfo(LogsDirectory).EnumerateFiles().Where(f => f.Extension is ".log" or ".txt").OrderByDescending(f => f.LastWriteTimeUtc).Take(200)) + LogFiles.Add(new(UiPrivacy.Redact(file.Name), file.LastWriteTime.ToString("g", Localization.UiLocalization.Instance.FormattingCulture), $"{file.Length / 1024d:0.#} KiB", UiPrivacy.Redact(file.FullName), + new AsyncRelayCommand(() => Owner.RunControlAsync("打开日志文件", ct => ((ILocalFileLauncher)Owner.ExternalLauncher).OpenFileAsync(file.FullName, ct)), () => Owner.ExternalLauncher is ILocalFileLauncher))); + LogFilesSummary = LogFiles.Count == 0 ? "尚无启动器日志文件。" : ""; + } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException) { LogFilesSummary = "无法读取日志目录:" + UiPrivacy.Redact(ex.Message); } + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.cs b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.cs new file mode 100644 index 00000000..1694d929 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPageViewModel.cs @@ -0,0 +1,165 @@ +using System.Text.Json; +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class SettingsPageViewModel : PageViewModel +{ + private bool _loading; + private bool _loaded; + private LauncherSettings? _lastLoadedSettings; + private bool _isDirty; + private string _gameRoot = ""; + private string _javaExecutable = ""; + private decimal _memoryMiB = 2048; + private string _language = "zh-CN"; + private string _theme = "System"; + private string _downloadSourcesJson = ""; + private ProxyMode _proxyMode = ProxyMode.System; + private string _proxyAddress = ""; + private string _proxySecret = ""; + private bool _aria2Enabled; + private string _aria2Endpoint = "http://localhost:6800/jsonrpc"; + private string _aria2Secret = ""; + private string _microsoftClientId = ""; + private string _feedback = ""; + public string GameRoot { get => _gameRoot; set { if (SetProperty(ref _gameRoot, value)) MarkDirty(); } } + public string JavaExecutable + { + get => _javaExecutable; + set + { + if (!SetProperty(ref _javaExecutable, value)) return; + OnPropertyChanged(nameof(JavaSelectionSummary)); + MarkDirty(); if (!_loading) ReconcileJavaSelection(Owner.Snapshot.Settings); NotifyCommands(); + } + } + public decimal MemoryMiB { get => _memoryMiB; set { if (SetProperty(ref _memoryMiB, value)) { MarkDirty(); NotifyMemory(); } } } + public string Language { get => _language; set { if (!string.IsNullOrWhiteSpace(value) && SetProperty(ref _language, value)) MarkDirty(); } } + public string Theme { get => _theme; set { if (!string.IsNullOrWhiteSpace(value) && SetProperty(ref _theme, value)) MarkDirty(); } } + public string DownloadSourcesJson { get => _downloadSourcesJson; set { if (SetProperty(ref _downloadSourcesJson, value)) { MarkDirty(); RefreshSourceEditor(value); } } } + public ProxyMode ProxyMode { get => _proxyMode; set { if (SetProperty(ref _proxyMode, value)) { MarkDirty(); OnPropertyChanged(nameof(IsCustomProxy)); } } } + public bool IsCustomProxy => ProxyMode == ProxyMode.Custom; + public string ProxyAddress { get => _proxyAddress; set { if (SetProperty(ref _proxyAddress, value)) MarkDirty(); } } + public string ProxySecret { get => _proxySecret; set { if (SetProperty(ref _proxySecret, value)) MarkDirty(); } } + public bool Aria2Enabled { get => _aria2Enabled; set { if (SetProperty(ref _aria2Enabled, value)) { if (value) Aria2DetailsExpanded = true; MarkDirty(); } } } + public string Aria2Endpoint { get => _aria2Endpoint; set { if (SetProperty(ref _aria2Endpoint, value)) { Aria2ConnectionSummary = "地址已更改;有效输入会自动保存。"; MarkDirty(); } } } + public string Aria2Secret { get => _aria2Secret; set { if (SetProperty(ref _aria2Secret, value)) { Aria2ConnectionSummary = "密钥已更改;有效输入会自动保存。"; MarkDirty(); } } } + public string MicrosoftClientId { get => _microsoftClientId; set { if (SetProperty(ref _microsoftClientId, value)) MarkDirty(); } } + public bool IsDirty { get => _isDirty; private set { SetProperty(ref _isDirty, value); OnPropertyChanged(nameof(SaveSummary)); NotifyCommands(); } } + public string SaveSummary => HasJavaSelectionConflict ? "默认 Java 已在工具页更改,请先到 Java 设置确认保留哪一项。" : IsDirty ? "正在更新设置;有效输入会自动保存。" : "当前显示已保存的设置。"; + public string Feedback { get => _feedback; private set => SetProperty(ref _feedback, value); } + public string DataDirectory => Service.Paths.DataDirectory; + public string CacheDirectory => Service.Paths.CacheDirectory; + public string LogsDirectory => Service.Paths.LogsDirectory; + public string CredentialsSummary => Owner.Snapshot.CanPersistAccounts ? "密钥写入系统安全存储;留空保留已有密钥。" : "安全存储不可用,不能保存新的连接密钥。"; + public ObservableCollection Themes { get; } = ["System", "Light", "Dark"]; + public IReadOnlyList ProxyModes { get; } = Enum.GetValues(); + public IReadOnlyList Languages => Localization.UiLocalization.SupportedLanguages; + public AsyncRelayCommand SaveCommand { get; } + public RelayCommand DiscardDraftCommand { get; } + public AsyncRelayCommand OpenDataDirectoryCommand { get; } + public RelayCommand OpenJavaTrustToolsCommand { get; } + + public SettingsPageViewModel(MainWindowViewModel owner) : base(owner, "设置", "游戏路径、运行时、界面与网络配置。有效输入会自动保存。") + { + InitializeAutoSave(); + InitializeAria2Connection(); + SaveCommand = AsyncCommand(SaveAsync, () => CanEdit && IsDirty && !HasJavaSelectionConflict); + DiscardDraftCommand = Command(() => { Load(Owner.Snapshot.Settings); LoadPresentation(_savedPresentation); Feedback = "已恢复为已保存的设置。"; }, () => CanEdit && IsDirty); + OpenDataDirectoryCommand = AsyncCommand(() => Owner.RunControlAsync("打开数据目录", ct => Owner.ExternalLauncher.OpenDirectoryAsync(DataDirectory, ct))); + OpenJavaTrustToolsCommand = Command(() => { Owner.Tools.ShowJavaTrustCommand.Execute(null); Owner.ShowToolsCommand.Execute(null); }); + InitializeJavaSelectionConflict(); + InitializeParity(); + } + private void MarkDirty() { if (!_loading) { settingsEditRevision++; IsDirty = true; Feedback = ""; AutoSaveFeedback = ""; QueueAutoSave(); } } + private Task SaveAsync() => SaveSettingsCoreAsync(false); + private async Task SaveValidatedSettingsAsync(long revision) + { + if (HasJavaSelectionConflict) { ReportSettingsError("默认 Java 已更改,请先在 Java 设置中选择确认使用当前默认或此处路径。"); if (!saveIsAutomatic) SelectedSection = "java"; return; } + var gameRoot = GameRoot.Trim(); + var java = JavaExecutable.Trim(); + if ((gameRoot.Length > 0 && !Path.IsPathFullyQualified(gameRoot)) || (java.Length > 0 && !Path.IsPathFullyQualified(java))) { ReportSettingsError("游戏与 Java 路径须为绝对路径;留空使用默认选择。"); return; } + if (MemoryMiB is < 512 or > 32768 || decimal.Truncate(MemoryMiB) != MemoryMiB) { ReportSettingsError("内存须为 512–32768 MiB 的整数。"); return; } + if (!ValidateLaunchDraft() || !ValidateGameOptions()) return; + try { SettingsPresentationStore.Validate(BuildPresentation()); } + catch (InvalidDataException ex) { ReportSettingsError(ex.Message); if (!saveIsAutomatic) SelectedSection = "appearance"; return; } + if (!string.IsNullOrWhiteSpace(MicrosoftClientId) && !Guid.TryParse(MicrosoftClientId.Trim(), out _)) { ReportSettingsError("Microsoft Client ID 必须是有效 GUID。"); return; } + try { _ = PCL.Core.Conduit.DownloadSources.Parse(DownloadSourcesJson); } + catch (Exception ex) when (ex is JsonException or InvalidDataException or ArgumentException) { ReportSettingsError("下载源配置无效:" + UiPrivacy.Redact(ex.Message)); if (!saveIsAutomatic) SelectedSection = "manage"; return; } + if (IsCustomProxy && !IsHttpEndpoint(ProxyAddress)) { ReportSettingsError("自定义代理需要有效的 HTTP/HTTPS 地址;凭据请填入独立密钥字段。"); return; } + if (ProxySecret.Length > 0 && !ProxySecret.Contains(':')) { ReportSettingsError("代理凭据须使用 username:password 格式,不会以明文保存。"); return; } + if (Aria2Enabled && !IsLocalAria2Endpoint(Aria2Endpoint)) { ReportSettingsError("本候选仅支持本机 aria2 RPC(localhost、127.0.0.1 或 ::1),尚不支持远程 RPC;地址须为不含凭据、查询或片段的 HTTP/HTTPS URL。"); return; } + if (ProxyMode == ProxyMode.System && !Service.Capabilities.SupportsSystemProxy) { ReportSettingsError("当前平台尚不支持系统代理,请明确选择直连或自定义代理。"); return; } + var presentation = BuildPresentation(); + var latest = Service.Snapshot.Settings; + var candidate = latest with { GameRoot = gameRoot.Length == 0 ? null : gameRoot, JavaExecutable = java.Length == 0 ? null : java, + MemoryMiB = (int)MemoryMiB, Language = Language, Theme = Theme, DownloadSourcesJson = DownloadSourcesJson, + Proxy = new ProxySettings(ProxyMode, string.IsNullOrWhiteSpace(ProxyAddress) ? null : ProxyAddress.Trim(), latest.Proxy?.CredentialKey), + Aria2 = new Aria2Settings(Aria2Enabled, Aria2Endpoint.Trim(), latest.Aria2?.CredentialKey), + MicrosoftClientId = string.IsNullOrWhiteSpace(MicrosoftClientId) ? null : MicrosoftClientId.Trim(), + GameWindowWidth = UseCustomWindow ? (int)GameWindowWidth : null, GameWindowHeight = UseCustomWindow ? (int)GameWindowHeight : null, + GameFullscreen = GameFullscreen, MinimumMemoryMiB = UseMinimumMemory ? (int)MinimumMemoryMiB : null, + CustomInfo = string.IsNullOrWhiteSpace(CustomInfo) ? null : CustomInfo.Trim(), LaunchOptions = BuildGameOptions(), Downloads = BuildDownloadOptions(), Launcher = launcherOptions }; + var proxySecret = ProxySecret; var ariaSecret = Aria2Secret; + if (!saveIsAutomatic) Owner.ShowError(null); + using var timeout = CancellationTokenSource.CreateLinkedTokenSource(settingsLifetime.Token); timeout.CancelAfter(TimeSpan.FromSeconds(15)); + try + { + if (ariaSecret.Length > 0) await Service.SaveConnectionSecretAsync("aria2", ariaSecret, timeout.Token); + if (proxySecret.Length > 0) await Service.SaveConnectionSecretAsync("proxy", proxySecret, timeout.Token); + var keys = Service.Snapshot.Settings; + candidate = candidate with { Proxy = candidate.Proxy! with { CredentialKey = keys.Proxy?.CredentialKey }, Aria2 = candidate.Aria2! with { CredentialKey = keys.Aria2?.CredentialKey } }; + await Service.SaveSettingsAsync(candidate, timeout.Token); + await SavePresentationAsync(presentation, timeout.Token); + } + catch (Exception ex) when (ex is not OperationCanceledException) + { + AutoSaveFeedback = "设置未全部保存,请检查输入或安全存储后重试。"; + if (!saveIsAutomatic) Owner.ShowError(UiPrivacy.Redact(ex.Message, proxySecret, ariaSecret)); + return; + } + var loading = _loading; _loading = true; + try { if (ProxySecret == proxySecret) ProxySecret = ""; if (Aria2Secret == ariaSecret) Aria2Secret = ""; } finally { _loading = loading; } + _lastLoadedSettings = Service.Snapshot.Settings; _savedJavaExecutable = candidate.JavaExecutable ?? ""; + if (revision == settingsEditRevision) { Load(Service.Snapshot.Settings); LauncherFeedback = ""; Feedback = "设置已自动保存。"; AutoSaveFeedback = ""; } + } + private static bool IsHttpEndpoint(string address) => Uri.TryCreate(address.Trim(), UriKind.Absolute, out var uri) && uri.Scheme is "http" or "https" && string.IsNullOrEmpty(uri.UserInfo); + private static bool IsLocalAria2Endpoint(string address) => Uri.TryCreate(address.Trim(), UriKind.Absolute, out var uri) + && uri.Scheme is "http" or "https" && uri.IsLoopback && string.IsNullOrEmpty(uri.UserInfo) + && string.IsNullOrEmpty(uri.Query) && string.IsNullOrEmpty(uri.Fragment); + private void Load(LauncherSettings settings) + { + _loading = true; + try + { + GameRoot = settings.GameRoot ?? ""; JavaExecutable = settings.JavaExecutable ?? ""; MemoryMiB = settings.MemoryMiB; + _savedJavaExecutable = settings.JavaExecutable ?? ""; HasJavaSelectionConflict = false; + if (!string.IsNullOrWhiteSpace(settings.Theme) && !Themes.Contains(settings.Theme)) Themes.Add(settings.Theme); + Language = Localization.UiLocalization.NormalizeLanguage(settings.Language); Theme = settings.Theme; DownloadSourcesJson = settings.DownloadSourcesJson; + ProxyMode = settings.Proxy?.Mode ?? ProxyMode.System; ProxyAddress = settings.Proxy?.Address ?? ""; + Aria2Enabled = settings.Aria2?.Enabled ?? false; Aria2Endpoint = settings.Aria2?.Endpoint ?? "http://localhost:6800/jsonrpc"; + MicrosoftClientId = settings.MicrosoftClientId ?? ""; ProxySecret = ""; Aria2Secret = ""; + LoadLaunchDraft(settings); + LoadGameOptions(settings); + LoadLauncherOptions(settings); + RefreshSourceEditor(settings.DownloadSourcesJson); + Aria2ConnectionSummary = "尚未测试当前保存的连接;下载时会自动探测,未连接则使用内置下载器。"; + _lastLoadedSettings = settings; + IsDirty = false; _loaded = true; + } + finally { _loading = false; } + } + public override void Refresh(LauncherSnapshot snapshot) + { + if (!_loaded || !IsDirty && snapshot.Settings != _lastLoadedSettings) Load(snapshot.Settings); + else if (IsDirty && !saveInProgress) ReconcileJavaSelection(snapshot.Settings); + OnPropertyChanged(nameof(CredentialsSummary)); + RefreshParity(snapshot); + base.Refresh(snapshot); + autoSaveReady = true; + if (waitingToSave && CanEdit) QueueAutoSave(); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/SettingsPresentationPreferences.cs b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPresentationPreferences.cs new file mode 100644 index 00000000..eee71808 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/SettingsPresentationPreferences.cs @@ -0,0 +1,65 @@ +using System.Text.Json; +using SHOU.Launcher.Core.IO; + +namespace SHOU.Launcher.Desktop.ViewModels; + +// Presentation preferences are isolated from credentials and from game launch configuration. +public sealed record SettingsPresentationPreferences(bool ShowClubIntroduction = true, bool ShowClubServers = true, + bool RotateHomeBackground = true, decimal WindowOpacity = 100, string[]? BackgroundImages = null, + bool LockWindowSize = false, bool ShowStartupLogo = false, bool ShowLaunchTips = true, bool NotifyClubUpdates = false, + bool AdvancedMaterial = false, string FontFamily = "", string LightAccent = "default", string DarkAccent = "default", + string TitleMode = "default", string TitleText = "", string TitleImage = "", string HomeSource = "default", + string HomeLocation = "", string[]? HiddenSections = null, string LastClubNotice = "", + string MotdFontFamily = "", string BackgroundFit = "smart", decimal BackgroundOpacity = 100, decimal BackgroundBlur = 9, decimal SlideshowSeconds = 15, decimal MusicVolume = 50, bool MusicAutoPlay = false, bool MusicShuffle = false, string MusicGamePolicy = "keep"); + +public sealed class SettingsPresentationStore(string dataDirectory) +{ + public string FilePath => SafePath.Within(dataDirectory, "desktop-presentation.json"); + private static readonly JsonSerializerOptions Json = new(JsonSerializerDefaults.Web) { WriteIndented = true }; + + public SettingsPresentationPreferences Load() + { + if (!File.Exists(FilePath)) return new(); + SHOU.Launcher.Core.IO.SafePath.RejectLinks(FilePath); + if (new FileInfo(FilePath).Length > 65536) throw new InvalidDataException("界面偏好文件过大,未加载。"); + var settings = JsonSerializer.Deserialize(File.ReadAllBytes(FilePath), Json) + ?? throw new InvalidDataException("界面偏好文件为空,未加载。"); + Validate(settings); + return settings; + } + + public async Task SaveAsync(SettingsPresentationPreferences settings, CancellationToken cancellationToken = default) + { + Validate(settings); + Directory.CreateDirectory(Path.GetDirectoryName(FilePath)!); + var temporary = SafePath.Within(dataDirectory, "desktop-presentation." + Guid.NewGuid().ToString("N") + ".tmp"); + try + { + SHOU.Launcher.Core.IO.SafePath.RejectLinks(FilePath); + SHOU.Launcher.Core.IO.SafePath.RejectLinks(FilePath + ".bak"); + var merged = File.Exists(FilePath) ? System.Text.Json.Nodes.JsonNode.Parse(await File.ReadAllBytesAsync(FilePath, cancellationToken))!.AsObject() : new System.Text.Json.Nodes.JsonObject(); + foreach (var pair in JsonSerializer.SerializeToNode(settings, Json)!.AsObject()) merged[pair.Key] = pair.Value?.DeepClone(); + await File.WriteAllBytesAsync(temporary, JsonSerializer.SerializeToUtf8Bytes(merged, Json), cancellationToken); + cancellationToken.ThrowIfCancellationRequested(); + if (File.Exists(FilePath)) File.Copy(FilePath, FilePath + ".bak", true); + File.Move(temporary, FilePath, true); + } + finally { if (File.Exists(temporary)) File.Delete(temporary); } + } + + internal static void Validate(SettingsPresentationPreferences settings) + { + if (settings.WindowOpacity is < 50 or > 100) + throw new InvalidDataException("窗口不透明度须为 50–100%。"); + if (settings.BackgroundImages is { Length: > 32 } || settings.BackgroundImages?.Any(p => string.IsNullOrWhiteSpace(p) || !Path.IsPathFullyQualified(p)) == true) + throw new InvalidDataException("背景图片最多 32 张,须使用本机绝对路径。"); + if (settings.MotdFontFamily is null || settings.FontFamily is null || settings.TitleText is null || settings.TitleImage is null || settings.HomeLocation is null || settings.LastClubNotice is null + || settings.MotdFontFamily.Length > 128 || settings.FontFamily.Length > 128 || settings.TitleText.Length > 256 || settings.TitleText.Any(char.IsControl) + || settings.TitleMode is not ("default" or "none" or "text" or "image") || settings.HomeSource is not ("default" or "empty" or "local" or "remote") + || settings.HiddenSections?.Any(s => !LauncherFeatures.IsKnown(s)) == true) + throw new InvalidDataException("界面偏好格式无效。"); + if (settings.BackgroundFit is not ("smart" or "center" or "fit" or "stretch" or "tile" or "top-left" or "top-right" or "bottom-left" or "bottom-right") || + settings.BackgroundOpacity is < 0 or > 100 || settings.BackgroundBlur is < 0 or > 40 || settings.SlideshowSeconds is < 5 or > 300 || settings.MusicVolume is < 0 or > 100 || settings.MusicGamePolicy is not ("keep" or "stop" or "only")) + throw new InvalidDataException("背景或音乐参数无效:透明度/音量 0–100%,模糊 0–40,轮播间隔 5–300 秒。"); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/SettingsSourceEditor.cs b/src/SHOU.Launcher.Desktop/ViewModels/SettingsSourceEditor.cs new file mode 100644 index 00000000..efc4e577 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/SettingsSourceEditor.cs @@ -0,0 +1,117 @@ +using System.Collections.ObjectModel; +using System.Text.Json; +using CommunityToolkit.Mvvm.ComponentModel; +using CommunityToolkit.Mvvm.Input; +using PCL.Core.Conduit; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed class SettingsSourceRow(DownloadSource source, Action changed) : ObservableObject +{ + public IReadOnlyList LayoutChoices { get; } = Enum.GetValues(); + public SourceCategory Category { get; } = source.Category; + private string _name = source.Name; + private SourceLayout _layout = source.Layout; + private string _baseUrl = source.BaseUrl; + private string _originPrefix = source.OriginPrefix; + private int _priority = source.Priority; + private bool _enabled = source.Enabled; + public string Name { get => _name; set { if (SetProperty(ref _name, value)) changed(); } } + public SourceLayout Layout { get => _layout; set { if (SetProperty(ref _layout, value)) { changed(); OnPropertyChanged(nameof(IsPrefix)); OnPropertyChanged(nameof(IsAddressEditable)); } } } + public string BaseUrl { get => _baseUrl; set { if (SetProperty(ref _baseUrl, value)) changed(); } } + public string OriginPrefix { get => _originPrefix; set { if (SetProperty(ref _originPrefix, value)) changed(); } } + public int Priority { get => _priority; set { if (SetProperty(ref _priority, value)) changed(); } } + public bool Enabled { get => _enabled; set { if (SetProperty(ref _enabled, value)) changed(); } } + public bool IsPrefix => Layout == SourceLayout.Prefix; + public bool IsAddressEditable => Layout != SourceLayout.Official; + public string Summary => $"{Layout} · 优先级 {Priority}"; + public DownloadSource ToSource() => new() { Name = Name, Category = Category, Layout = Layout, BaseUrl = BaseUrl, OriginPrefix = OriginPrefix, Priority = Priority, Enabled = Enabled }; +} + +public sealed partial class SettingsPageViewModel +{ + private bool _updatingSources; + private bool _sourceEditorReady; + private readonly ObservableCollection _allSources = []; + public ObservableCollection Sources { get; } = []; + public IReadOnlyList SourceLayouts { get; } = Enum.GetValues(); + private SourceCategory _selectedSourceCategory = SourceCategory.Minecraft; + public SourceCategory SelectedSourceCategory + { + get => _selectedSourceCategory; + set + { + if (!SetProperty(ref _selectedSourceCategory, value)) return; + OnPropertyChanged(nameof(IsMinecraftSources)); OnPropertyChanged(nameof(IsModSources)); OnPropertyChanged(nameof(IsLoaderSources)); UpdateSourceCategory(); + } + } + public bool IsMinecraftSources => SelectedSourceCategory == SourceCategory.Minecraft; + public bool IsModSources => SelectedSourceCategory == SourceCategory.Mod; + public bool IsLoaderSources => SelectedSourceCategory == SourceCategory.Loader; + private SettingsSourceRow? _selectedSource; + public SettingsSourceRow? SelectedSource { get => _selectedSource; set { if (SetProperty(ref _selectedSource, value)) { OnPropertyChanged(nameof(HasSelectedSource)); NotifyCommands(); } } } + public bool HasSelectedSource => SelectedSource is not null; + private string _sourceEditorSummary = ""; + public string SourceEditorSummary { get => _sourceEditorSummary; private set => SetProperty(ref _sourceEditorSummary, value); } + public RelayCommand SelectSourceCategoryCommand { get; private set; } = null!; + public RelayCommand MoveSourceUpCommand { get; private set; } = null!; + public RelayCommand MoveSourceDownCommand { get; private set; } = null!; + public RelayCommand AddSourceCommand { get; private set; } = null!; + public RelayCommand RemoveSourceCommand { get; private set; } = null!; + public RelayCommand ResetSourcesCommand { get; private set; } = null!; + private void InitializeSourceEditor() + { + SelectSourceCategoryCommand = new(category => { if (Enum.TryParse(category, out var parsed)) SelectedSourceCategory = parsed; }); + MoveSourceUpCommand = Command(() => MoveSource(-1), () => CanEdit && SelectedSource is not null && Sources.IndexOf(SelectedSource) > 0); + MoveSourceDownCommand = Command(() => MoveSource(1), () => CanEdit && SelectedSource is not null && Sources.IndexOf(SelectedSource) < Sources.Count - 1); + AddSourceCommand = Command(() => + { + var row = NewRow(new() { Name = "自定义源", Category = SelectedSourceCategory, Layout = SourceLayout.Prefix, BaseUrl = "", OriginPrefix = "", Priority = Sources.Count + 1, Enabled = true }); + _allSources.Add(row); UpdateSourceCategory(row); SyncSourcesJson(); + }, () => CanEdit); + RemoveSourceCommand = Command(() => { _allSources.Remove(SelectedSource!); UpdateSourceCategory(); SyncSourcesJson(); }, () => CanEdit && SelectedSource is not null); + ResetSourcesCommand = Command(() => { DownloadSourcesJson = ""; RefreshSourceEditor(""); MarkDirty(); }, () => CanEdit); + _sourceEditorReady = true; RefreshSourceEditor(DownloadSourcesJson); + } + private SettingsSourceRow NewRow(DownloadSource source) => new(source, SyncSourcesJson); + private void RefreshSourceEditor(string json) + { + if (!_sourceEditorReady || _updatingSources) return; + try + { + var parsed = DownloadSources.Parse(json); + string Signature(IEnumerable sources) => JsonSerializer.Serialize(sources.OrderBy(s => s.Category).ThenBy(s => s.Priority)); + if (Signature(parsed) == Signature(_allSources.Select(s => s.ToSource()))) { SourceEditorSummary = ""; return; } + _allSources.Clear(); foreach (var source in parsed) _allSources.Add(NewRow(source)); + UpdateSourceCategory(); SourceEditorSummary = ""; + } + catch (Exception ex) when (ex is JsonException or InvalidDataException or ArgumentException) { SourceEditorSummary = "来源配置无效:" + UiPrivacy.Redact(ex.Message); } + } + private void UpdateSourceCategory(SettingsSourceRow? preferred = null) + { + var selected = preferred ?? SelectedSource; + Sources.Clear(); foreach (var row in _allSources.Where(s => s.Category == SelectedSourceCategory).OrderBy(s => s.Priority)) Sources.Add(row); + SelectedSource = Sources.Contains(selected!) ? selected : Sources.FirstOrDefault(); NotifyCommands(); + } + private void MoveSource(int direction) + { + if (SelectedSource is not { } selected) return; + var index = Sources.IndexOf(selected); var target = index + direction; + if (index < 0 || target < 0 || target >= Sources.Count) return; + _updatingSources = true; + try { Sources.Move(index, target); for (var i = 0; i < Sources.Count; i++) Sources[i].Priority = i + 1; } + finally { _updatingSources = false; } + SyncSourcesJson(); NotifyCommands(); + } + private void SyncSourcesJson() + { + if (_updatingSources || !_sourceEditorReady) return; + _updatingSources = true; + try + { + DownloadSourcesJson = JsonSerializer.Serialize(_allSources.Select(s => s.ToSource()).OrderBy(s => s.Category).ThenBy(s => s.Priority)); + SourceEditorSummary = "来源顺序已更改,有效配置会自动保存。"; + } + finally { _updatingSources = false; } + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/ToolboxViewModel.Cache.cs b/src/SHOU.Launcher.Desktop/ViewModels/ToolboxViewModel.Cache.cs new file mode 100644 index 00000000..ea18d7c6 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/ToolboxViewModel.Cache.cs @@ -0,0 +1,38 @@ +using System.Collections.ObjectModel; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class ToolboxViewModel +{ + private CacheCleanupPlan? cachePlan; + private bool confirmCache; + private string cacheFeedback = ""; + public string CacheFeedback { get => cacheFeedback; private set { SetProperty(ref cacheFeedback, value); OnPropertyChanged(nameof(HasCacheFeedback)); } } + public bool HasCacheFeedback => CacheFeedback.Length != 0; + public bool HasCachePreview => cachePlan?.Files.Count > 0; + public bool ConfirmCache { get => confirmCache; set { SetProperty(ref confirmCache, value); NotifyCommands(); } } + public ObservableCollection CacheFiles { get; } = []; + public AsyncRelayCommand ScanCacheCommand { get; private set; } = null!; + public AsyncRelayCommand ClearCacheCommand { get; private set; } = null!; + private void InitializeCacheTools() + { + ScanCacheCommand = AsyncCommand(() => RunAsync("cache", async ct => + { + cachePlan = null; CacheFiles.Clear(); ConfirmCache = false; OnPropertyChanged(nameof(HasCachePreview)); + var plan = await ((ICacheMaintenanceService)Service).ScanLauncherCacheAsync(ct); + cachePlan = plan; foreach (var file in plan.Files.Take(200)) CacheFiles.Add(file); + CacheFeedback = plan.Files.Count == 0 ? "没有可清理的缓存。" : $"可清理 {plan.Files.Count} 个文件,共 {plan.Bytes / 1048576d:F2} MiB。清理后会按需重新下载。"; + if (plan.SkippedFiles > 0) CacheFeedback += $" 已保留 {plan.SkippedFiles} 项导出、临时下载或不属于缓存的内容。"; + OnPropertyChanged(nameof(HasCachePreview)); + }), () => CanUseTools && !HasRunningGame && Service is ICacheMaintenanceService); + ClearCacheCommand = AsyncCommand(() => RunAsync("cache", async ct => + { + var result = await ((ICacheMaintenanceService)Service).ClearLauncherCacheAsync(cachePlan!, ct); + CacheFeedback = $"已清理 {result.DeletedFiles} 个文件,释放 {result.FreedBytes / 1048576d:F2} MiB。" + (result.Cancelled ? "已取消剩余清理。" : ""); + if (result.SkippedFiles > 0) CacheFeedback += $"保留 {result.SkippedFiles} 项受保护或正在使用的内容。"; + cachePlan = null; CacheFiles.Clear(); ConfirmCache = false; OnPropertyChanged(nameof(HasCachePreview)); + }), () => CanUseTools && !HasRunningGame && ConfirmCache && HasCachePreview); + } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/ToolboxViewModel.cs b/src/SHOU.Launcher.Desktop/ViewModels/ToolboxViewModel.cs new file mode 100644 index 00000000..6736b06e --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/ToolboxViewModel.cs @@ -0,0 +1,181 @@ +using System.Collections.ObjectModel; +using Avalonia.Media.Imaging; +using CommunityToolkit.Mvvm.Input; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Authentication; +using SHOU.Launcher.Core.Tools; +using SHOU.Launcher.Desktop.Platform; +using SHOU.Launcher.Desktop.Views; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed partial class ToolboxViewModel : PageViewModel, IDisposable +{ + private readonly IToolboxService? tools; + private readonly CancellationTokenSource lifetime = new(); + private CancellationTokenSource? operation; + private TaskCompletionSource? idle; + private string busyTool = "", actionFeedback = "", downloadFeedback = "", skinFeedback = "", serverFeedback = "", imageFeedback = "", avatarFeedback = ""; + private string downloadUrl = "", downloadDirectory, downloadName = "", playerName = "", serverAddress = ""; + private string itemId = "grass_block", achievementTitle = "Achievement get!", achievementLine1 = "Hello Minecraft", achievementLine2 = ""; + private GameLogCleanupPlan? cleanupPlan; + private bool confirmCleanup; + private bool cleanupRequested; + private AccountTextureImage? avatarSkin; + private byte[]? achievementPng, avatarPng, customItemIcon; + private Bitmap? achievementPreview, avatarPreview; + private int avatarSizeIndex; + public ToolboxViewModel(MainWindowViewModel owner) : base(owner, "百宝箱", "启动器工具") + { + tools = Service as IToolboxService; downloadDirectory = Path.Combine(Service.Paths.DataDirectory, "Downloads"); + OpenCommunityUpdatesCommand = AsyncCommand(async () => { Owner.ShowHomeCommand.Execute(null); await Owner.Home.OpenReleasesCommand.ExecuteAsync(null); }); + FortuneCommand = AsyncCommand(() => RunAsync("actions", async ct => ActionFeedback = $"今日人品:{await tools!.GetDailyFortuneAsync(DateOnly.FromDateTime(DateTime.Now), ct)} / 100"), () => CanUseTools); + LaunchCountCommand = Command(() => + { + var instances = Service.Snapshot.Instances; + ActionFeedback = $"已启动游戏 {instances.Sum(i => (decimal)(i.Presentation?.LaunchCount ?? 0)):0} 次。" + + string.Concat(instances.Where(i => i.Presentation?.LaunchCount > 0).OrderByDescending(i => i.Presentation!.LaunchCount).Take(10).Select(i => $"\n{UiPrivacy.Redact(i.Name)}:{i.Presentation!.LaunchCount} 次")); + }, () => !IsBusy && CanEdit); + ScanCleanupCommand = AsyncCommand(() => RunAsync("actions", async ct => + { + cleanupRequested = true; OnPropertyChanged(nameof(HasCleanupControls)); + cleanupPlan = await tools!.ScanGameLogsAsync(ct); CleanupFiles.Clear(); foreach (var file in cleanupPlan.Files) CleanupFiles.Add(file); + ConfirmCleanup = false; ActionFeedback = cleanupPlan.Files.Count == 0 ? "没有超过一天的游戏日志或崩溃报告可整理。" : $"可整理 {cleanupPlan.Files.Count} 个文件,共 {cleanupPlan.Bytes / 1048576d:F2} MiB。"; + OnPropertyChanged(nameof(HasCleanupPreview)); + }), () => CanUseTools && !HasRunningGame); + MoveCleanupCommand = AsyncCommand(() => RunAsync("actions", async ct => + { + await tools!.MoveGameLogsAsync(cleanupPlan!, ct); ActionFeedback = "日志已移入实例内的回收目录,可恢复最近一次清理。"; + cleanupPlan = null; CleanupFiles.Clear(); ConfirmCleanup = false; OnPropertyChanged(nameof(HasCleanupPreview)); + }), () => CanUseTools && !HasRunningGame && ConfirmCleanup && HasCleanupPreview); + RestoreCleanupCommand = AsyncCommand(() => RunAsync("actions", async ct => + { var count = await tools!.RestoreGameLogsAsync(ct); ActionFeedback = count == 0 ? "没有可恢复的日志。" : $"已恢复 {count} 个日志文件。"; }), () => CanUseTools && !HasRunningGame); + DownloadCommand = AsyncCommand(() => RunAsync("download", async ct => + { + var source = new Uri(DownloadUrl.Trim()); var name = DownloadName.Trim(); + if (name.IndexOfAny(['/', '\\', ':']) >= 0 || name is "." or "..") throw new ArgumentException("文件名不能包含路径或目录。"); + var destination = Path.Combine(DownloadDirectory.Trim(), name); + DownloadFeedback = "正在下载…"; + var progress = new DispatchProgress(p => Owner.Dispatch(() => + { + if (ct.IsCancellationRequested || operation is null || operation.Token != ct) return; + DownloadFeedback = p.TotalBytes is { } size ? $"正在下载:{p.BytesReceived / 1048576d:F1} / {size / 1048576d:F1} MiB" : $"正在下载:{p.BytesReceived / 1048576d:F1} MiB"; + })); + await tools!.DownloadToolFileAsync(source, destination, progress, ct); DownloadFeedback = "已保存:" + DownloadName.Trim(); + }), () => CanUseTools && Uri.TryCreate(DownloadUrl.Trim(), UriKind.Absolute, out var uri) && uri.Scheme is "http" or "https" && Path.IsPathFullyQualified(DownloadDirectory) && DownloadName.Trim().Length > 0); + OpenDownloadDirectoryCommand = AsyncCommand(() => RunAsync("download", async ct => + { Directory.CreateDirectory(DownloadDirectory.Trim()); await Owner.ExternalLauncher.OpenDirectoryAsync(DownloadDirectory.Trim(), ct); }), () => !IsBusy && CanEdit && Path.IsPathFullyQualified(DownloadDirectory)); + QueryServerCommand = AsyncCommand(() => RunAsync("server", async ct => + { var server = await tools!.QueryToolServerAsync(ServerAddress, ct); ServerFeedback = server.OnlinePlayers is { } count ? $"在线 · {count} 人" : server.Status; }), () => CanUseTools && ServerAddress.Trim().Length > 0); + PreviewAchievementCommand = AsyncCommand(() => RunAsync("image", ct => + { ct.ThrowIfCancellationRequested(); achievementPng = ToolAchievementRenderer.Render(ItemId, AchievementTitle, AchievementLine1, AchievementLine2, customItemIcon); ReplacePreview(ref achievementPreview, achievementPng); OnPropertyChanged(nameof(AchievementPreview)); OnPropertyChanged(nameof(HasAchievement)); ImageFeedback = ""; return Task.CompletedTask; }), () => !IsBusy && CanEdit); + CancelCommand = Command(() => operation?.Cancel(), () => IsBusy); + InitializeCacheTools(); + } + public bool IsBusy => busyTool.Length != 0; + public bool CanUseTools => !IsBusy && CanEdit && tools is not null; + public bool IsActionsBusy => busyTool == "actions"; + public bool IsDownloadBusy => busyTool == "download"; + public bool IsSkinBusy => busyTool == "skin"; + public bool IsServerBusy => busyTool == "server"; + public bool IsImageBusy => busyTool is "image" or "avatar"; + public bool IsCacheBusy => busyTool == "cache"; + public bool HasRunningGame => Service.Snapshot.GameSessions.Count > 0 || Service.Snapshot.GameProcessId is not null; + public string ActionFeedback { get => actionFeedback; private set { SetProperty(ref actionFeedback, value); OnPropertyChanged(nameof(HasActionFeedback)); } } + public bool HasActionFeedback => ActionFeedback.Length != 0; + public string DownloadFeedback { get => downloadFeedback; private set { SetProperty(ref downloadFeedback, value); OnPropertyChanged(nameof(HasDownloadFeedback)); } } + public bool HasDownloadFeedback => DownloadFeedback.Length != 0; + public string SkinFeedback { get => skinFeedback; private set { SetProperty(ref skinFeedback, value); OnPropertyChanged(nameof(HasSkinFeedback)); } } + public bool HasSkinFeedback => SkinFeedback.Length != 0; + public string ServerFeedback { get => serverFeedback; private set { SetProperty(ref serverFeedback, value); OnPropertyChanged(nameof(HasServerFeedback)); } } + public bool HasServerFeedback => ServerFeedback.Length != 0; + public string ImageFeedback { get => imageFeedback; private set { SetProperty(ref imageFeedback, value); OnPropertyChanged(nameof(HasImageFeedback)); } } + public bool HasImageFeedback => ImageFeedback.Length != 0; + public string AvatarFeedback { get => avatarFeedback; private set { SetProperty(ref avatarFeedback, value); OnPropertyChanged(nameof(HasAvatarFeedback)); } } + public bool HasAvatarFeedback => AvatarFeedback.Length != 0; + public string DownloadUrl + { + get => downloadUrl; + set + { + if (!SetProperty(ref downloadUrl, value ?? "")) return; + if (DownloadName.Length == 0 && Uri.TryCreate(downloadUrl.Trim(), UriKind.Absolute, out var uri)) DownloadName = Path.GetFileName(Uri.UnescapeDataString(uri.AbsolutePath)); + NotifyCommands(); + } + } + public string DownloadDirectory { get => downloadDirectory; set { SetProperty(ref downloadDirectory, value ?? ""); NotifyCommands(); } } + public string DownloadName { get => downloadName; set { SetProperty(ref downloadName, value ?? ""); NotifyCommands(); } } + public string SkinPlayerName { get => playerName; set { SetProperty(ref playerName, value ?? ""); NotifyCommands(); } } + public string ServerAddress { get => serverAddress; set { SetProperty(ref serverAddress, value ?? ""); NotifyCommands(); } } + public ObservableCollection CleanupFiles { get; } = []; + public bool HasCleanupPreview => cleanupPlan?.Files.Count > 0; + public bool HasCleanupControls => cleanupRequested; + public bool ConfirmCleanup { get => confirmCleanup; set { SetProperty(ref confirmCleanup, value); NotifyCommands(); } } + public string ItemId { get => itemId; set { SetProperty(ref itemId, value ?? ""); customItemIcon = null; InvalidateAchievement(); } } + public IReadOnlyList LegacyItemNames => LegacyAchievementIcons.Names; + public string AchievementTitle { get => achievementTitle; set { SetProperty(ref achievementTitle, value ?? ""); InvalidateAchievement(); } } + public string AchievementLine1 { get => achievementLine1; set { SetProperty(ref achievementLine1, value ?? ""); InvalidateAchievement(); } } + public string AchievementLine2 { get => achievementLine2; set { SetProperty(ref achievementLine2, value ?? ""); InvalidateAchievement(); } } + public Bitmap? AchievementPreview => achievementPreview; + public bool HasAchievement => achievementPng is not null; + public Bitmap? AvatarPreview => avatarPreview; + public bool HasAvatar => avatarPng is not null; + public int AvatarSizeIndex { get => avatarSizeIndex; set { if (SetProperty(ref avatarSizeIndex, Math.Clamp(value, 0, 2))) { BuildAvatar(); AvatarFeedback = ""; } } } + public int AvatarSize => new[] { 64, 128, 256 }[AvatarSizeIndex]; + public AsyncRelayCommand FortuneCommand { get; } + public AsyncRelayCommand OpenCommunityUpdatesCommand { get; } + public RelayCommand LaunchCountCommand { get; } + public AsyncRelayCommand ScanCleanupCommand { get; } + public AsyncRelayCommand MoveCleanupCommand { get; } + public AsyncRelayCommand RestoreCleanupCommand { get; } + public AsyncRelayCommand DownloadCommand { get; } + public AsyncRelayCommand OpenDownloadDirectoryCommand { get; } + public AsyncRelayCommand QueryServerCommand { get; } + public AsyncRelayCommand PreviewAchievementCommand { get; } + public RelayCommand CancelCommand { get; } + public Task CreateShortcutAsync(string destination) => RunAsync("actions", async ct => { await LauncherShortcut.CreateAsync(destination, Service.Paths.DataDirectory, ct); ActionFeedback = "启动器快捷方式已创建。"; }); + public Task SaveSkinAsync(string destination) => RunAsync("skin", async ct => + { var image = await tools!.DownloadPublicSkinAsync(SkinPlayerName.Trim(), ct); await WriteImageAsync(destination, image.Png, ct); SkinFeedback = "皮肤已保存。"; }); + public Task LoadAvatarAsync(string path) => RunAsync("avatar", async ct => + { var bytes = await AccountAppearanceStore.ReadPickedSkinAsync(path, ct); avatarSkin = AccountAppearancePng.Decode(bytes); BuildAvatar(); AvatarFeedback = ""; }); + public Task LoadItemIconAsync(string path) => RunAsync("image", async ct => + { + var info = new FileInfo(path); if (info.Length is < 45 or > 2 * 1024 * 1024) throw new InvalidDataException("请选择不超过 2 MiB 的 PNG 图标。"); + var bytes = await File.ReadAllBytesAsync(path, ct); ToolAchievementRenderer.ValidateIcon(bytes); ItemId = "custom"; customItemIcon = bytes; InvalidateAchievement(); ImageFeedback = "已选择物品图标。"; + }); + public Task SaveAchievementAsync(string destination) => RunAsync("image", async ct => { if (achievementPng is null) return; await WriteImageAsync(destination, achievementPng, ct); ImageFeedback = "成就图片已保存。"; }); + public Task SaveAvatarAsync(string destination) => RunAsync("avatar", async ct => { if (avatarPng is null) return; await WriteImageAsync(destination, avatarPng, ct); AvatarFeedback = "头像已保存。"; }); + private static async Task WriteImageAsync(string destination, ReadOnlyMemory png, CancellationToken ct) + { + destination = ToolFileTransfer.ValidateDestination(destination); var stage = Path.Combine(Path.GetDirectoryName(destination)!, ".shou-image-" + Guid.NewGuid().ToString("N") + ".part"); var owned = false; + try + { + await using (var stream = new FileStream(stage, FileMode.CreateNew, FileAccess.Write, FileShare.None, 4096, true)) { owned = true; await stream.WriteAsync(png, ct); await stream.FlushAsync(ct); } + ct.ThrowIfCancellationRequested(); ToolFileTransfer.ValidateDestination(destination); File.Move(stage, destination, false); owned = false; + } + finally { if (owned && File.Exists(stage)) File.Delete(stage); } + } + private void InvalidateAchievement() { achievementPng = null; achievementPreview?.Dispose(); achievementPreview = null; OnPropertyChanged(nameof(AchievementPreview)); OnPropertyChanged(nameof(HasAchievement)); } + private void BuildAvatar() { if (avatarSkin is null) return; avatarPng = ToolImages.Avatar(avatarSkin, AvatarSize); ReplacePreview(ref avatarPreview, avatarPng); OnPropertyChanged(nameof(AvatarPreview)); OnPropertyChanged(nameof(HasAvatar)); } + private static void ReplacePreview(ref Bitmap? field, byte[] png) { var replacement = new Bitmap(new MemoryStream(png)); field?.Dispose(); field = replacement; } + private async Task RunAsync(string tool, Func action) + { + if (IsBusy || !CanEdit || lifetime.IsCancellationRequested) return; + using var cancellation = CancellationTokenSource.CreateLinkedTokenSource(lifetime.Token); + var completion = new TaskCompletionSource(TaskCreationOptions.RunContinuationsAsynchronously); idle = completion; + operation = cancellation; busyTool = tool; NotifyBusy(); + try { await action(cancellation.Token); } + catch (OperationCanceledException) { Feedback(tool, cancellation.IsCancellationRequested ? "已取消,可重新操作。" : "操作超时,请重试。"); } + catch (Exception ex) { Feedback(tool, UiPrivacy.Redact(ex is System.Net.Http.HttpRequestException ? "无法连接服务,请稍后重试。" : ex.Message)); } + finally { operation = null; busyTool = ""; NotifyBusy(); idle = null; completion.TrySetResult(); } + } + private void Feedback(string tool, string value) + { switch (tool) { case "cache": CacheFeedback = value; break; case "download": DownloadFeedback = value; break; case "skin": SkinFeedback = value; break; case "server": ServerFeedback = value; break; case "image": ImageFeedback = value; break; case "avatar": AvatarFeedback = value; break; default: ActionFeedback = value; break; } } + private void NotifyBusy() + { foreach (var name in new[] { nameof(IsBusy), nameof(CanUseTools), nameof(IsActionsBusy), nameof(IsDownloadBusy), nameof(IsSkinBusy), nameof(IsServerBusy), nameof(IsImageBusy), nameof(IsCacheBusy) }) OnPropertyChanged(name); NotifyCommands(); } + public override void Refresh(LauncherSnapshot snapshot) { base.Refresh(snapshot); OnPropertyChanged(nameof(CanUseTools)); OnPropertyChanged(nameof(HasRunningGame)); } + public override void NotifyCommands() { base.NotifyCommands(); OnPropertyChanged(nameof(CanUseTools)); } + public void Cancel() => operation?.Cancel(); + public Task CancelAndWaitAsync() { var pending = idle?.Task ?? Task.CompletedTask; Cancel(); return pending; } + public void Dispose() { lifetime.Cancel(); lifetime.Dispose(); achievementPreview?.Dispose(); avatarPreview?.Dispose(); } +} diff --git a/src/SHOU.Launcher.Desktop/ViewModels/ToolsPageViewModel.cs b/src/SHOU.Launcher.Desktop/ViewModels/ToolsPageViewModel.cs new file mode 100644 index 00000000..5c5fbd67 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/ViewModels/ToolsPageViewModel.cs @@ -0,0 +1,37 @@ +using CommunityToolkit.Mvvm.Input; + +namespace SHOU.Launcher.Desktop.ViewModels; + +public sealed class ToolsPageViewModel : PageViewModel, IDisposable +{ + public JavaTrustToolsViewModel JavaTrust { get; } + public ToolboxViewModel Toolbox { get; } + public CrashAnalysisViewModel Crash { get; } + private bool _isJavaTrust = true; + public bool IsJavaTrust => _isJavaTrust; + public bool IsToolbox => !_isJavaTrust; + public RelayCommand ShowJavaTrustCommand { get; } + public RelayCommand ShowJavaSettingsCommand { get; } + public RelayCommand ShowToolboxCommand { get; } + + public ToolsPageViewModel(MainWindowViewModel owner) : base(owner, "工具", "Java 证书诊断与百宝箱") + { + JavaTrust = new(owner); + Toolbox = new(owner); + Crash = new(owner); + ShowJavaTrustCommand = Command(() => SelectPage(true)); + ShowJavaSettingsCommand = Command(() => { Owner.Settings.SelectedSection = "java"; Owner.ShowSettingsCommand.Execute(null); }); + ShowToolboxCommand = Command(() => SelectPage(false)); + } + public override void Refresh(SHOU.Launcher.Core.Abstractions.LauncherSnapshot snapshot) { JavaTrust.Refresh(snapshot); Toolbox.Refresh(snapshot); Crash.Refresh(snapshot); base.Refresh(snapshot); } + public override void NotifyCommands() { JavaTrust?.NotifyCommands(); Toolbox?.NotifyCommands(); base.NotifyCommands(); } + public void OnNavigatingAway() => Toolbox.Cancel(); + public void Dispose() { Toolbox.Dispose(); Crash.Dispose(); } + + private void SelectPage(bool isJavaTrust) + { + if (isJavaTrust) Toolbox.Cancel(); + if (!SetProperty(ref _isJavaTrust, isJavaTrust, nameof(IsJavaTrust))) OnPropertyChanged(nameof(IsJavaTrust)); + OnPropertyChanged(nameof(IsToolbox)); + } +} diff --git a/src/SHOU.Launcher.Desktop/Views/AccountAppearanceOverlay.axaml b/src/SHOU.Launcher.Desktop/Views/AccountAppearanceOverlay.axaml new file mode 100644 index 00000000..3fc3bec6 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Views/AccountAppearanceOverlay.axaml @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/SHOU.Launcher.Desktop/Views/InstanceArtwork.cs b/src/SHOU.Launcher.Desktop/Views/InstanceArtwork.cs new file mode 100644 index 00000000..f5963ef2 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Views/InstanceArtwork.cs @@ -0,0 +1,47 @@ +using Avalonia; +using Avalonia.Controls; +using Avalonia.Media; +using Avalonia.Media.Imaging; +using Avalonia.VisualTree; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Desktop.ViewModels; + +namespace SHOU.Launcher.Desktop.Views; + +public sealed class InstanceArtwork : Control +{ + public static readonly StyledProperty InstanceProperty = AvaloniaProperty.Register(nameof(Instance)); + public static readonly StyledProperty ServiceProperty = AvaloniaProperty.Register(nameof(Service)); + public static readonly StyledProperty LoaderProperty = AvaloniaProperty.Register(nameof(Loader), "minecraft"); + public GameInstance? Instance { get => GetValue(InstanceProperty); set => SetValue(InstanceProperty, value); } + public IInstanceArtworkService? Service { get => GetValue(ServiceProperty); set => SetValue(ServiceProperty, value); } + public string Loader { get => GetValue(LoaderProperty); set => SetValue(LoaderProperty, value); } + private Bitmap? bitmap; private CancellationTokenSource? lifetime; private bool attached; + protected override void OnAttachedToVisualTree(VisualTreeAttachmentEventArgs e) { base.OnAttachedToVisualTree(e); attached = true; Reload(); } + protected override void OnDetachedFromVisualTree(VisualTreeAttachmentEventArgs e) { attached = false; lifetime?.Cancel(); lifetime?.Dispose(); lifetime = null; bitmap?.Dispose(); bitmap = null; base.OnDetachedFromVisualTree(e); } + protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change) + { base.OnPropertyChanged(change); if (change.Property == InstanceProperty || change.Property == ServiceProperty || change.Property == LoaderProperty) Reload(); } + private async void Reload() + { + if (!attached) return; + lifetime?.Cancel(); lifetime?.Dispose(); lifetime = new(); var current = lifetime; bitmap?.Dispose(); bitmap = null; InvalidateVisual(); + var reader = Service ?? (this.FindAncestorOfType()?.DataContext as InstancesPageViewModel)?.ArtworkService; + if (Instance is not { } instance || reader is not { } service) return; + try + { + var bytes = await Task.Run(() => service.ReadInstanceIconAsync(instance.Id, current.Token), current.Token); + if (current.IsCancellationRequested || lifetime != current || !attached || bytes is null) return; + using var stream = new MemoryStream(bytes); bitmap = new Bitmap(stream); InvalidateVisual(); + } + catch (OperationCanceledException) { } + catch (Exception ex) when (ex is IOException or UnauthorizedAccessException or ArgumentException or InvalidOperationException or NotSupportedException) + { if (!current.IsCancellationRequested && attached) ToolTip.SetTip(this, "图标无法读取,已显示默认图标。"); } + } + public override void Render(DrawingContext context) + { + base.Render(context); var icon = Instance?.Presentation?.Icon; + var key = icon is null or "auto" or "custom" ? Instance?.Loader ?? Loader : icon; + var image = (IImage?)bitmap ?? InstanceArtworkImages.For(key); + var side = Math.Min(Bounds.Width, Bounds.Height); context.DrawImage(image, new Rect((Bounds.Width - side) / 2, (Bounds.Height - side) / 2, side, side)); + } +} diff --git a/src/SHOU.Launcher.Desktop/Views/InstanceContentArtwork.cs b/src/SHOU.Launcher.Desktop/Views/InstanceContentArtwork.cs new file mode 100644 index 00000000..c8acf8c8 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Views/InstanceContentArtwork.cs @@ -0,0 +1,24 @@ +using Avalonia; +using Avalonia.Controls; +using Avalonia.Media.Imaging; +using SHOU.Launcher.Core.Abstractions; + +namespace SHOU.Launcher.Desktop.Views; + +public sealed class InstanceContentArtwork : Image +{ + public static readonly StyledProperty EntryProperty = AvaloniaProperty.Register(nameof(Entry)); + public InstanceContentEntry? Entry { get => GetValue(EntryProperty); set => SetValue(EntryProperty, value); } + private Bitmap? bitmap; + protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change) + { base.OnPropertyChanged(change); if (change.Property == EntryProperty) Load(); } + protected override void OnAttachedToVisualTree(VisualTreeAttachmentEventArgs e) { base.OnAttachedToVisualTree(e); Load(); } + protected override void OnDetachedFromVisualTree(VisualTreeAttachmentEventArgs e) { Source = null; bitmap?.Dispose(); bitmap = null; base.OnDetachedFromVisualTree(e); } + private void Load() + { + Source = null; bitmap?.Dispose(); bitmap = null; + if (Entry?.IconPng is not { Length: > 0 } png) return; + try { using var stream = new MemoryStream(png, false); bitmap = Bitmap.DecodeToWidth(stream, 80); Source = bitmap; } + catch (Exception ex) when (ex is ArgumentException or IOException or NotSupportedException) { } + } +} diff --git a/src/SHOU.Launcher.Desktop/Views/InstanceIconCrop.cs b/src/SHOU.Launcher.Desktop/Views/InstanceIconCrop.cs new file mode 100644 index 00000000..e7ddac66 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Views/InstanceIconCrop.cs @@ -0,0 +1,102 @@ +using Avalonia; +using Avalonia.Controls; +using Avalonia.Input; +using Avalonia.Media; +using Avalonia.Media.Imaging; +using Avalonia.Layout; +using CommunityToolkit.Mvvm.ComponentModel; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; +using SkiaSharp; + +namespace SHOU.Launcher.Desktop.Views; + +public sealed class InstanceIconCropModel : ObservableObject, IDisposable +{ + private InstanceIconPixels source; private double zoom = 1, x = .5, y = .5; private Bitmap? preview; + public double Zoom { get => zoom; set { if (SetProperty(ref zoom, Math.Clamp(value, 1, 8))) Refresh(); } } + public double OffsetX { get => x; set { if (SetProperty(ref x, Math.Clamp(value, 0, 1))) Refresh(); } } + public double OffsetY { get => y; set { if (SetProperty(ref y, Math.Clamp(value, 0, 1))) Refresh(); } } + public Bitmap? Preview => preview; + public double HorizontalOverflow => source.Width / (Math.Min(source.Width, source.Height) / Zoom) - 1; + public double VerticalOverflow => source.Height / (Math.Min(source.Width, source.Height) / Zoom) - 1; + public InstanceIconCropModel(InstanceIconPixels image) { source = image; Refresh(); } + public byte[] Crop(CancellationToken ct = default) => InstanceIconImages.Crop(source, Zoom, OffsetX, OffsetY, ct); + private void Refresh() { var bytes = Crop(); using var stream = new MemoryStream(bytes); var next = new Bitmap(stream); var old = preview; preview = next; OnPropertyChanged(nameof(Preview)); old?.Dispose(); } + public void Reset() { zoom = 1; x = y = .5; OnPropertyChanged(nameof(Zoom)); OnPropertyChanged(nameof(OffsetX)); OnPropertyChanged(nameof(OffsetY)); Refresh(); } + public void Rotate() + { + var pixels = new byte[source.Rgba.Length]; var original = source.Rgba.Span; + for (var py = 0; py < source.Height; py++) for (var px = 0; px < source.Width; px++) original.Slice((py * source.Width + px) * 4, 4).CopyTo(pixels.AsSpan((px * source.Height + source.Height - py - 1) * 4, 4)); + source = new(source.Height, source.Width, pixels); Reset(); + } + public static InstanceIconPixels ReadImage(string path, CancellationToken ct = default) + { + SHOU.Launcher.Core.IO.SafePath.RejectLinks(path); + using var input = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read); + if (input.Length is < 1 or > 16 * 1024 * 1024) throw new IOException("请选择不超过 16 MiB 的图片。"); + var bytes = new byte[checked((int)input.Length)]; input.ReadExactly(bytes); ct.ThrowIfCancellationRequested(); + using var codec = SKCodec.Create(new SKMemoryStream(bytes)) ?? throw new InvalidDataException("无法读取此图片。"); + var info = codec.Info; + if (info.Width is < 1 or > 8192 || info.Height is < 1 or > 8192 || (long)info.Width * info.Height > 32 * 1024 * 1024 || codec.FrameCount > 1) throw new InvalidDataException("图片像素过大或为动画,请选择静态图片。"); + using var image = SKBitmap.Decode(codec) ?? throw new InvalidDataException("图片不完整或无法解码。"); + var scale = Math.Min(1d, 2048d / Math.Max(image.Width, image.Height)); var w = Math.Max(1, (int)(image.Width * scale)); var h = Math.Max(1, (int)(image.Height * scale)); var rgba = new byte[w * h * 4]; + for (var py = 0; py < h; py++) { ct.ThrowIfCancellationRequested(); for (var px = 0; px < w; px++) { var color = image.GetPixel(Math.Min(image.Width - 1, (int)(px / scale)), Math.Min(image.Height - 1, (int)(py / scale))); var i = (py * w + px) * 4; rgba[i] = color.Red; rgba[i + 1] = color.Green; rgba[i + 2] = color.Blue; rgba[i + 3] = color.Alpha; } } + return new(w, h, rgba); + } + public void Dispose() { preview?.Dispose(); preview = null; } +} + +public sealed class InstanceIconCropCanvas : Control +{ + public InstanceIconCropModel Model { get; } + private Point? drag; + public InstanceIconCropCanvas(InstanceIconCropModel model) + { + Model = model; Width = Height = 256; Focusable = true; Cursor = new(StandardCursorType.Hand); + model.PropertyChanged += (_, _) => InvalidateVisual(); + } + public override void Render(DrawingContext context) { context.FillRectangle(Brushes.LightGray, new Rect(Bounds.Size)); if (Model.Preview is { } image) context.DrawImage(image, new Rect(Bounds.Size)); } + protected override void OnPointerPressed(PointerPressedEventArgs e) { base.OnPointerPressed(e); if (e.GetCurrentPoint(this).Properties.IsLeftButtonPressed) { drag = e.GetPosition(this); e.Pointer.Capture(this); e.Handled = true; } } + protected override void OnPointerMoved(PointerEventArgs e) + { + base.OnPointerMoved(e); if (drag is not { } previous) return; var point = e.GetPosition(this); drag = point; + if (Model.HorizontalOverflow > 0) Model.OffsetX -= (point.X - previous.X) / (Bounds.Width * Model.HorizontalOverflow); + if (Model.VerticalOverflow > 0) Model.OffsetY -= (point.Y - previous.Y) / (Bounds.Height * Model.VerticalOverflow); + } + protected override void OnPointerReleased(PointerReleasedEventArgs e) { drag = null; e.Pointer.Capture(null); base.OnPointerReleased(e); } + protected override void OnPointerWheelChanged(PointerWheelEventArgs e) { Model.Zoom = Math.Clamp(Model.Zoom * Math.Pow(1.15, e.Delta.Y), 1, 8); e.Handled = true; base.OnPointerWheelChanged(e); } +} + +public sealed class InstanceIconCropWindow : Window +{ + public InstanceIconCropModel Model { get; } + public InstanceIconCropWindow(InstanceIconPixels source, Func> save, Action? cancelSaving = null, Func? error = null) + { + Title = "裁剪实例图标"; Width = 450; Height = 540; CanResize = false; WindowStartupLocation = WindowStartupLocation.CenterOwner; + Model = new(source); DataContext = Model; + var panel = new StackPanel { Margin = new Thickness(24), Spacing = 12 }; + var canvas = new InstanceIconCropCanvas(Model) { Name = "InstanceIconCropCanvas", HorizontalAlignment = HorizontalAlignment.Center }; panel.Children.Add(canvas); var editors = new List { canvas }; + foreach (var row in new[] { ("缩放", nameof(Model.Zoom), 1d, 8d), ("水平位置", nameof(Model.OffsetX), 0d, 1d), ("垂直位置", nameof(Model.OffsetY), 0d, 1d) }) + { + var grid = new Grid { ColumnDefinitions = new("80,*") }; grid.Children.Add(new TextBlock { Text = row.Item1, VerticalAlignment = VerticalAlignment.Center }); + var slider = new Slider { Name = "Crop" + row.Item2, Minimum = row.Item3, Maximum = row.Item4 }; slider.Bind(Slider.ValueProperty, new Avalonia.Data.Binding(row.Item2) { Mode = Avalonia.Data.BindingMode.TwoWay }); Grid.SetColumn(slider, 1); grid.Children.Add(slider); panel.Children.Add(grid); editors.Add(grid); + } + var buttons = new StackPanel { Orientation = Orientation.Horizontal, Spacing = 10, HorizontalAlignment = HorizontalAlignment.Center }; + var rotate = new Button { Content = "旋转", Name = "RotateInstanceIcon" }; rotate.Click += (_, _) => Model.Rotate(); buttons.Children.Add(rotate); + var reset = new Button { Content = "复位" }; reset.Click += (_, _) => Model.Reset(); buttons.Children.Add(reset); + var saving = false; var cancel = new Button { Content = "取消", Name = "CancelInstanceIconCrop" }; cancel.Click += (_, _) => { if (saving) cancelSaving?.Invoke(); else Close(); }; buttons.Children.Add(cancel); + var feedback = new TextBlock { TextWrapping = TextWrapping.Wrap, IsVisible = false, Name = "InstanceIconCropError" }; + var confirm = new Button { Content = "保存图标", Name = "SaveInstanceIconCrop" }; confirm.Click += async (_, _) => + { + saving = true; confirm.IsEnabled = rotate.IsEnabled = reset.IsEnabled = false; foreach (var editor in editors) editor.IsEnabled = false; feedback.IsVisible = false; var done = false; + try { done = await save(Model.Crop()); if (!done) { feedback.Text = error?.Invoke() ?? "保存失败,原图标保留。"; feedback.IsVisible = true; } } + finally { saving = false; confirm.IsEnabled = rotate.IsEnabled = reset.IsEnabled = true; foreach (var editor in editors) editor.IsEnabled = true; } + if (done) Close(); + }; buttons.Children.Add(confirm); + panel.Children.Add(buttons); panel.Children.Add(feedback); Content = panel; + Closing += (_, e) => { if (saving) { e.Cancel = true; cancelSaving?.Invoke(); } }; + KeyDown += (_, e) => { if (e.Key == Key.Escape) { if (saving) cancelSaving?.Invoke(); else Close(); e.Handled = true; } }; + Closed += (_, _) => Model.Dispose(); + } +} diff --git a/src/SHOU.Launcher.Desktop/Views/InstanceInfoConverter.cs b/src/SHOU.Launcher.Desktop/Views/InstanceInfoConverter.cs new file mode 100644 index 00000000..b67e1681 --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Views/InstanceInfoConverter.cs @@ -0,0 +1,17 @@ +using System.Globalization; +using Avalonia.Data.Converters; +using SHOU.Launcher.Core.Abstractions; +using SHOU.Launcher.Core.Instances; + +namespace SHOU.Launcher.Desktop.Views; + +public sealed class InstanceInfoConverter : IValueConverter +{ + public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) + { + if (value is not GameInstance instance) return ""; + if (parameter as string == "loader") return instance.Loader == "vanilla" ? "" : instance.Loader switch { "fabric" => "Fabric", "quilt" => "Quilt", "forge" => "Forge", "neoforge" => "NeoForge", "cleanroom" => "Cleanroom", "legacyfabric" => "Legacy Fabric", "optifine" => "OptiFine", "labymod" => "LabyMod", "liteloader" => "LiteLoader", _ => instance.Loader } + " " + instance.LoaderVersion; + try { return InstanceIdentity.GameVersion(instance); } catch (InvalidDataException) { return instance.VersionId; } + } + public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) => throw new NotSupportedException(); +} diff --git a/src/SHOU.Launcher.Desktop/Views/InstanceWorldsView.axaml b/src/SHOU.Launcher.Desktop/Views/InstanceWorldsView.axaml new file mode 100644 index 00000000..7af8e0ea --- /dev/null +++ b/src/SHOU.Launcher.Desktop/Views/InstanceWorldsView.axaml @@ -0,0 +1,133 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +