Skip to content

Instantly share code, notes, and snippets.

@RadialFire
RadialFire / map.js
Created August 26, 2022 19:51 — forked from lluiscab/map.js
Mineflayer map
const mineflayer = require('mineflayer')
const PNGImage = require('pngjs-image');
if (process.argv.length < 4 || process.argv.length > 6) {
console.log('Usage : node echo.js <host> <port> [<name>] [<password>]')
process.exit(1)
}
const bot = mineflayer.createBot({