JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 96
  • Score
    100M100P100Q86984F
  • License ISC

Minecraft pathfinder made in javascript using mineflayer and node js.

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