Skip to content

Additional authentication method for Mineflayer, specially for EasyMC and Thealtening

License

Notifications You must be signed in to change notification settings

My-IT-SCM/Mineflayer-Alt-Auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mineflayer-Alt-Auth

Add additional feature to Mineflayer by adding support for alt accounts. Mineflayer is a Minecraft bot that allows user using predefined script to login and play the Minecraft Server using High Level JavaScript API.

Requirements

  • NodeJS LTS

Features

  • Support for EasyMC authentication
  • Support for The Altening authentication

Getting Started

  1. Install dependencies
npm install mineflayer mineflayer-alt-auth
  1. Get your alt token or account from their website, can be EasyMC and The Altening

  2. Example Usage

const mineflayer = require("mineflayer");
const authClient = require("mineflayer-alt-auth");
const path = require("path");

const bot = mineflayer.createBot({
  host: "example.com", // server ip
  username: "[email protected]", // alt token
  auth: authClient({
    cache: true, // Specify whether do caching for the account, prevent everytime login needs renewal.
    cacheFile: path.join(__dirname, "./cache.json"), // Cache location
    provider: "thealtening", // Provider can be 'thealtening' and 'easymc'
  }),
  version: "1.12.2", // Other arguments same as Mineflayer.creteBot
});

Contribution

Feel free to make pull requests and contribute to this project.

About

Additional authentication method for Mineflayer, specially for EasyMC and Thealtening

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published