@miner-org/mineflayer-baritone
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

🏃‍♂️ Mineflayer Pathfinder (WIP)

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-baritone

Example:

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 parkouring so if your are using this for short distance stuff disable parkour.

Contributing

Pull requests are welcome! If you encounter issues, feel free to report them.

Package Sidebar

Install

npm i @miner-org/mineflayer-baritone

Weekly Downloads

14

Version

1.0.1

License

ISC

Unpacked Size

150 kB

Total Files

26

Last publish

Collaborators

  • link-dev
  • ashdoestings
  • beveledcube
  • frostify