Skip to content

@loontail/minecraft-kit v0.8.14 / Loaders

Variable: Loaders

ts
const Loaders: {
  FABRIC: "fabric";
  FORGE: "forge";
  VANILLA: "vanilla";
};

Discriminator literal identifying which mod loader is active for a target.

Use the Loaders const object instead of bare strings. loader.type === Loaders.FABRIC is preferred over loader.type === "fabric".

Example

ts
import { asMinecraftVersionId, Loaders } from "@loontail/minecraft-kit";

await kit.targets.resolve({
  id: "modded",
  directory: "/games/modded",
  minecraft: { version: asMinecraftVersionId("1.20.1") },
  loader: { type: Loaders.FABRIC },
});

Type declaration

MemberTypeValueDescription
FABRIC"fabric""fabric"Fabric mod loader.
FORGE"forge""forge"Forge mod loader.
VANILLA"vanilla""vanilla"Plain vanilla Minecraft, no mod loader.

Source

src/types/loader.ts:23

MIT License