Appearance
@loontail/minecraft-kit v0.8.14 / planForgeRepair
Function: planForgeRepair()
ts
function planForgeRepair(input): Promise<RepairPlan>Build a repair plan covering the Forge loader slice: version JSON, libraries, installer download, and the Forge processors that produce the final installation. When the Forge version JSON was missing during verify (so libraries couldn't be enumerated), 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
| Parameter | Type |
|---|---|
input | AspectRepairInput |
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);