Skip to content

Add Yggdrasil support to minecraft-launcher-core

License

Notifications You must be signed in to change notification settings

CreateLumina/yggdrasil

Repository files navigation

Yggdrasil for MCLC

This package is designed to work with MCLC to add Yggdrasil support.

Installation

# npm
npm i minecraft-launcher-core

# Yarn
yarn add minecraft-launcher-core

# pnpm
pnpm add minecraft-launcher-core

Usage

import Yggdrasil from '@mclc/yggdrasil';
import { Client } from 'minecraft-launcher-core';
import { v4 } from 'uuid';

const auth = new Yggdrasil('https://url.to/yggdrasil/authserver');
const authorization = await auth.authenticate({
    username: '[email protected]',
    password: 'password',
    clientToken: v4(),
});

const client = new Client({
    // These arguments are only for the authentication
    authorization,
    customArgs: ['-javaagent:/path/to/authlib-injector.jar=https://url.to/yggdrasil'],
});

client.launch();

About

Add Yggdrasil support to minecraft-launcher-core

Resources

License

Stars

Watchers

Forks