@mclc/yggdrasil
v1.0.0-beta.1
Published
Add Yggdrasil support to minecraft-launcher-core
Downloads
3
Readme
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();