mineflayer-altlogin

package to wrap mineflayer's createBot function to allow login with a username:password string

Usage no npm install needed!

<script type="module">
  import mineflayerAltlogin from 'https://cdn.skypack.dev/mineflayer-altlogin';
</script>

README

mineflayer-altlogin

This package wraps mineflayer's createBot function to allow login with a username:password string

Installation:

npm i mineflayer-altlogin

Example:

const mineflayer = require('mineflayer-altlogin')

const bot = mineflayer.createBot({
  host: 'localhost',
  login: 'username:password'
})

bot.on('spawn', () => {
  console.log("I'm in!")
})