Skip to content

@loontail/minecraft-kit / planForgeRepair

Function: planForgeRepair()

ts
function planForgeRepair(input): Promise<RepairPlan>;

Defined in: src/repair/forge.ts:46

Build a repair plan covering the Forge loader slice: version JSON, libraries, and the Forge processors that produce the final installation. A forge-processor-output issue re-runs only the processors that declare the broken file; a missing version JSON or a broken installer JAR re-runs all of them. In every case every forge-library download is added defensively — downloadFile skips files already on disk.

Throws INVALID_INPUT when the target is not a Forge install.

Prefer kit.repair.forge.plan(target, { from }) over importing this directly.

Parameters

ParameterType
inputAspectRepairInput

Returns

Promise<RepairPlan>

Example

ts
import { MinecraftKit } from "@loontail/minecraft-kit";

const kit = new MinecraftKit();
const verification = await kit.verify.forge.run(forgeTarget);
const plan = await kit.repair.forge.plan(forgeTarget, { from: verification });
await kit.repair.forge.run(plan);

MIT License