@mclc/yggdrasil
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.1 • Public • Published

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: 'john@example.com',
    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();

Package Sidebar

Install

npm i @mclc/yggdrasil

Weekly Downloads

0

Version

1.0.0-beta.1

License

MIT

Unpacked Size

48.7 kB

Total Files

11

Last publish

Collaborators

  • padowyt2