Package Exports
- @miner-org/mineflayer-baritone
- @miner-org/mineflayer-baritone/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@miner-org/mineflayer-baritone) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
πββοΈ Mineflayer Pathfinder (WIP)
β οΈ DISCLAIMER: DOES NOT WORK WELL FOR LONG DISTANCES, PLEASE USE FOR GENERAL THINGS β οΈ
Overview
This is a basic pathfinder for Mineflayer that includes:
- β Basic Pathfinding
- β Parkour Moves
- β Breaking Blocks
- π§ Placing Blocks (Work in Progress)
Bot goes brrr and sometimes does things correctly. Sometimes.
β οΈ Warning: Very Buggy!
This is still in active development. Expect weird movement, unintended falls, and occasional bot existential crises.
π¦ Installation
To install, run:
npm install @miner-org/mineflayer-baritoneExample
const mineflayer = require("mineflayer");
const pathfinder = require("@miner-org/mineflayer-baritone").loader;
const goals = require("@miner-org/mineflayer-baritone").goals;
const { Vec3 } = require("vec3");
const bot = mineflayer.createBot({ username: "PathfinderBot" });
bot.loadPlugin(pathfinder);
bot.once("spawn", async () => {
await bot.waitForChunks()
const goal = new goals.GoalExact(new Vec3(100, 65, 100));
await bot.ashfinder.goto(goal);
});(Yes, it might fail, but thatβs part of the experience.)
Known issues
- Tends to get stuck when doing parkour so if you're using this for short distance stuff disable parkour.
Contributing
Pull requests are welcome! If you encounter issues, feel free to report them.