5.2 KiB
(assuming you already have Baritone set up)
Prefix
Baritone commands can by default be typed in the chatbox. However if you make a typo, like typing "gola 10000 10000" instead of goal it goes into public chat, which is bad.
Therefore you can use a prefix before your messages.
On Baritone v1.1.0 and newer: The prefix is # by default. Anything beginning with # isn't sent, and is only interpreted by Baritone.
For older than v1.1.0, # must be enabled by toggling on the prefix setting.
Only in Impact 4.4 is .b also a valid prefix. In 4.4, # does not work, neither does saying the commands directly in chat.
Other clients like Kami and Asuna have their own custom things (like -path), and can disable direct chat control entirely.
Commands
All of these commands may need a prefix before them, as above ^.
help for (rudimentary) help. You can see what it says here.
To toggle a boolean setting, just say its name in chat (for example saying allowBreak toggles whether Baritone will consider breaking blocks). For a numeric setting, say its name then the new value (like primaryTimeoutMS 250). It's case insensitive. To reset a setting to its default value, say acceptableThrowawayItems reset. To reset all settings, say reset. To see all settings that have been modified from their default values, say modified.
Some common examples:
thisway 1000thenpathto go in the direction you're facing for a thousand blocksgoal x y zorgoal x zorgoal y, thenpathto go to a certain coordinategoalto set the goal to your player's feetgoal clearto clear the goalcancelorstopto stop everythinggoto portalorgoto ender_chestorgoto block_typeto go to a block. (in Impact,.gotois an alias for.b gotofor the most part)mine diamond_oreto mine diamond ore (turn on the settinglegitMineto only mine ores that it can actually see. It will explore randomly around y=11 until it finds them.)follow playerNameto follow a player.followto follow the entity you're looking at (only works if it hitting range).followplayersto follow any players in range (combine with Kill Aura for a fun time).save waypointNameto save a waypoint.goto waypointNameto go to it.axisto go to an axis or diagonal axis at y=120 (axisHeightis a configurable setting, defaults to 120).invertto invert the current goal and path. This gets as far away from it as possible, instead of as close as possible. For example, dogoaltheninvertto run as far as possible from where you're standing at the start.renderto rerender the world in caserenderCachedChunksis being glitchydamndaniel
For the rest of the commands, you can take a look at the code here.
All the settings and documentation are here. If you find HTML easier to read than Javadoc, you can look here.
There are about a hundred settings, but here are some fun / interesting / important ones that you might want to look at changing in normal usage of Baritone. The documentation for each can be found at the above links.
allowBreakallowSprintallowPlaceallowParkourallowParkourPlacerenderCachedChunks(andcachedChunksOpacity) <-- very fun but you need a beefy computeravoidancelegitMinefollowRadius
Troubleshooting / common issues
Baritone highlights a block in green but gets completely stuck? Also I'm using Baritone with Future?
Baritone is trying to right click to place a block there, but it can't since there's a conflicting mixin. Baritone can't force click right click when Future is also installed. Left click does work on recent Baritone even with Future, however. For now, turn off allowPlace and Baritone will only search for paths that don't require placing blocks to complete. allowBreak can remain on.
Why doesn't Baritone respond to any of my chat commands?
This could be one of many things.
First, make sure it's actually installed. An easy way to check is seeing if it created the folder baritone in your Minecraft folder.
Second, make sure that you're using the prefix properly, and that chat control is enabled in the way you expect.
For example, Impact disables direct chat control. (i.e. anything typed in chat without a prefix will be ignored and sent publicly). This is a saved setting, so if you run Impact once, chatControl will be off from then on, even in other clients.
So you'll need to use the # prefix or edit baritone/settings.txt in your Minecraft folder to undo that (specifically, remove the line chatControl false then restart your client).
Why can I do .goto x z in Impact but nowhere else? Why can I do -path to x z in KAMI but nowhere else?
These are custom commands that they added; those aren't from Baritone.
The equivalent you're looking for is goal x z then path.