baritone/USAGE.md

108 lines
8.0 KiB
Markdown
Raw Permalink Normal View History

2019-02-05 20:38:39 +00:00
(assuming you already have Baritone [set up](SETUP.md))
2019-02-05 20:34:29 +00:00
# Prefix
2019-05-16 22:20:52 +00:00
Baritone's chat control prefix is `#` by default. In Impact, you can also use `.b` as a prefix. (for example, `.b click` instead of `#click`)
2019-02-05 20:34:29 +00:00
2019-05-16 22:20:52 +00:00
Baritone commands can also 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, so using `#` is suggested.
2019-02-05 20:34:29 +00:00
2019-05-16 22:20:52 +00:00
To disable direct chat control (with no prefix), turn off the `chatControl` setting. To disable chat control with the `#` prefix, turn off the `prefixControl` setting. In Impact, `.b` cannot be disabled. Be careful that you don't leave yourself with all control methods disabled (if you do, reset your settings by deleting the file `minecraft/baritone/settings.txt` and relaunching).
2019-02-05 20:34:29 +00:00
2019-10-12 17:43:01 +00:00
# For Baritone 1.2.10+, 1.3.5+, 1.4.2+
2019-10-12 20:07:12 +00:00
Lots of the commands have changed, BUT `#help` is improved vastly (its clickable! commands have tab completion! oh my!).
2019-10-12 17:43:01 +00:00
Try `#help` I promise it won't just send you back here =)
2019-10-15 18:25:35 +00:00
"wtf where is cleararea" -> look at `#help sel`
2020-03-14 19:09:19 +00:00
"wtf where is goto death, goto waypoint" -> look at `#help wp`
2019-10-15 18:25:35 +00:00
just look at `#help` lmao
2020-02-24 20:20:13 +00:00
Watch this [showcase video](https://youtu.be/CZkLXWo4Fg4)!
2019-02-05 20:34:29 +00:00
# Commands
2020-09-12 04:54:20 +00:00
[Tutorial playlist](https://www.youtube.com/playlist?list=PLnwnJ1qsS7CoQl9Si-RTluuzCo_4Oulpa)
2019-02-05 20:34:29 +00:00
**All** of these commands may need a prefix before them, as above ^.
2019-10-15 18:25:35 +00:00
`help`
2019-02-05 20:34:29 +00:00
2019-02-22 20:13:19 +00:00
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`.
2019-02-05 20:34:29 +00:00
Commands in Baritone:
2019-02-05 20:34:29 +00:00
- `thisway 1000` then `path` to go in the direction you're facing for a thousand blocks
2019-07-24 22:33:39 +00:00
- `goal x y z` or `goal x z` or `goal y`, then `path` to set a goal to a certain coordinate then path to it
- `goto x y z` or `goto x z` or `goto y` to go to a certain coordinate (in a single step, starts going immediately)
2019-02-05 20:34:29 +00:00
- `goal` to set the goal to your player's feet
- `goal clear` to clear the goal
- `cancel` or `stop` to stop everything, `forcecancel` is also an option
2019-02-05 20:34:29 +00:00
- `goto portal` or `goto ender_chest` or `goto block_type` to go to a block. (in Impact, `.goto` is an alias for `.b goto` for the most part)
- `mine diamond_ore iron_ore` to mine diamond ore or iron ore (turn on the setting `legitMine` to only mine ores that it can actually see. It will explore randomly around y=11 until it finds them.) An amount of blocks can also be specified, for example, `mine 64 diamond_ore`.
2020-11-30 04:04:44 +00:00
- `click` to click your destination on the screen. Right click path to on top of the block, left click to path into it (either at foot level or eye level), and left click and drag to select an area (`#help sel` to see what you can do with that selection).
2020-03-14 19:09:19 +00:00
- `follow player playerName` to follow a player. `follow players` to follow any players in range (combine with Kill Aura for a fun time). `follow entities` to follow any entities. `follow entity pig` to follow entities of a specific type.
- `wp` for waypoints. A "tag" is like "home" (created automatically on right clicking a bed) or "death" (created automatically on death) or "user" (has to be created manually). So you might want `#wp save user coolbiome`, then to set the goal `#wp goal coolbiome` then `#path` to path to it. For death, `#wp goal death` will list waypoints under the "death" tag (remember stuff is clickable!)
- `build` to build a schematic. `build blah.schematic` will load `schematics/blah.schematic` and build it with the origin being your player feet. `build blah.schematic x y z` to set the origin. Any of those can be relative to your player (`~ 69 ~-420` would build at x=player x, y=69, z=player z-420).
2019-07-23 06:48:40 +00:00
- `schematica` to build the schematic that is currently open in schematica
2020-03-14 19:09:19 +00:00
- `tunnel` to dig and make a tunnel, 1x2. It will only deviate from the straight line if necessary such as to avoid lava. For a dumber tunnel that is really just cleararea, you can `tunnel 3 2 100`, to clear an area 3 high, 2 wide, and 100 deep.
- `farm` to automatically harvest, replant, or bone meal crops. Use `farm <range>` or `farm <range> <waypoint>` to limit the max distance from the starting point or a waypoint.
2019-02-06 06:17:28 +00:00
- `axis` to go to an axis or diagonal axis at y=120 (`axisHeight` is a configurable setting, defaults to 120).
2019-04-30 23:56:29 +00:00
- `explore x z` to explore the world from the origin of x,z. Leave out x and z to default to player feet. This will continually path towards the closest chunk to the origin that it's never seen before. `explorefilter filter.json` with optional invert can be used to load in a list of chunks to load.
2019-02-05 20:34:29 +00:00
- `invert` to invert the current goal and path. This gets as far away from it as possible, instead of as close as possible. For example, do `goal` then `invert` to run as far as possible from where you're standing at the start.
- `come` tells Baritone to head towards your camera, useful when freecam doesn't move your player position.
- `blacklist` will stop baritone from going to the closest block so it won't attempt to get to it.
- `eta` to get information about the estimated time until the next segment and the goal, be aware that the ETA to your goal is really unprecise.
- `proc` to view miscellaneous information about the process currently controlling Baritone.
- `repack` to re-cache the chunks around you.
- `gc` to call `System.gc()` which may free up some memory.
- `render` to fix glitched chunk rendering without having to reload all of them.
- `reloadall` to reload Baritone's world cache or `saveall` to save Baritone's world cache.
- `find` to search through Baritone's cache and attempt to find the location of the block.
- `surface` or `top` to tell Baritone to head towards the closest surface-like area, this can be the surface or highest available air space.
2019-02-27 23:46:28 +00:00
- `version` to get the version of Baritone you're running
2019-02-05 20:34:29 +00:00
- `damn` daniel
2019-04-30 23:56:29 +00:00
2019-02-23 07:32:23 +00:00
All the settings and documentation are <a href="https://github.com/cabaletta/baritone/blob/master/src/api/java/baritone/api/Settings.java">here</a>. If you find HTML easier to read than Javadoc, you can look <a href="https://baritone.leijurv.com/baritone/api/Settings.html#field.detail">here</a>.
2019-02-05 20:34:29 +00:00
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.
- `allowBreak`
- `allowSprint`
- `allowPlace`
- `allowParkour`
- `allowParkourPlace`
2019-04-30 23:56:29 +00:00
- `blockPlacementPenalty`
2019-02-05 20:34:29 +00:00
- `renderCachedChunks` (and `cachedChunksOpacity`) <-- very fun but you need a beefy computer
2019-04-30 23:56:29 +00:00
- `avoidance` (avoidance of mobs / mob spawners)
2019-02-05 20:34:29 +00:00
- `legitMine`
- `followRadius`
2019-04-30 23:56:29 +00:00
- `backfill` (fill in tunnels behind you)
- `buildInLayers`
- `buildRepeatDistance` and `buildRepeatDirection`
- `worldExploringChunkOffset`
- `acceptableThrowawayItems`
- `blocksToAvoidBreaking`
- `mineScanDroppedItems`
- `allowDiagonalAscend`
2019-04-30 23:56:29 +00:00
2019-02-05 20:34:29 +00:00
# Troubleshooting / common issues
## Why doesn't Baritone respond to any of my chat commands?
This could be one of many things.
2019-02-05 20:41:30 +00:00
First, make sure it's actually installed. An easy way to check is seeing if it created the folder `baritone` in your Minecraft folder.
2019-02-05 20:34:29 +00:00
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.
2020-03-14 19:09:19 +00:00
The equivalent you're looking for is `goto x z`.