explaingit

cabaletta/baritone

8,855JavaAudience · generalComplexity · 3/5Setup · moderate

TLDR

A pathfinding bot for Minecraft that automatically navigates terrain for you. Tell it where to go and it finds the route itself, handling climbing, swimming, block-breaking, and obstacle avoidance using the A* navigation algorithm.

Mindmap

mindmap
  root((Baritone))
    What it does
      Automated navigation
      A* pathfinding
      Terrain traversal
    How to use
      Client mod integration
      Forge support
      Pre-built client support
    Compatibility
      1.12.2 stable branch
      1.19.4 active development
    Audience
      Minecraft players
      Mod developers
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Let Baritone automatically walk your Minecraft character to a set of coordinates while you focus on something else.

USE CASE 2

Automate resource-gathering routes in Minecraft by having Baritone navigate to mining spots repeatedly.

USE CASE 3

Integrate Baritone's A* pathfinding into a custom Minecraft client mod to add automated navigation features.

Tech stack

JavaForgeMinecraft

Getting it running

Difficulty · moderate Time to first run · 30min

Requires a compatible Minecraft client version, the master branch targets 1.12.2 while active new features are being built on the 1.19.4 branch.

In plain English

Baritone is a pathfinding bot for Minecraft. The description calls it "google maps for block game," which is a good summary: you tell it where you want to go, and it figures out the route, navigating terrain, climbing, swimming, and avoiding obstacles on its own. Instead of manually walking your character through a world, Baritone can do the traveling for you. The core of the project is a navigation algorithm called A*, which is a well-known technique for finding efficient paths from one point to another. Baritone applies this to Minecraft's block-based worlds, calculating how a player character would need to move step by step to reach a destination, including breaking blocks, placing temporary ones, or using other movement options the game allows. Baritone is not a standalone application. It runs as a mod that plugs into existing Minecraft clients. The README lists several clients that have built Baritone in directly, including Impact, Lambda, Aristois, rootNET, and others. If you are already using one of those clients, Baritone may already be available to you. It can also be installed separately for use with Forge, a popular Minecraft modding platform. The repository's master branch holds the version built for Minecraft 1.12.2, which is an older version of the game. As of August 2023, primary development shifted to a branch targeting version 1.19.4, prompted by a major server updating away from 1.12.2. The 1.12.2 branch has been in development for over five years and is considered stable, but new features are being built on the newer branch instead. The project is open source and welcomes contributions. A Discord server is available for users and contributors. The license includes an unusual informal clause noted in the badge display.

Copy-paste prompts

Prompt 1
I have Baritone installed on my Minecraft client. What commands do I type in-game to tell it to navigate to specific coordinates, and how do I stop it mid-path if needed?
Prompt 2
How do I set up Baritone to automatically mine a specific block type like diamonds while avoiding hazards like lava?
Prompt 3
I'm writing a Minecraft Forge mod and want to use Baritone's pathfinding. Show me how to add it as a dependency and call its API to navigate a player entity to a target position.
Prompt 4
How do I switch from using the Baritone 1.12.2 master branch to the 1.19.4 development branch, and what should I be aware of about stability differences?
Open on GitHub → Explain another repo

← cabaletta on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.