Merge branch 'master' into slabs-stairs
This commit is contained in:
commit
21342d6ea5
@ -2,7 +2,7 @@
|
|||||||
- **Long distance pathing and splicing** Baritone calculates paths in segments, and precalculates the next segment when the current one is about to end, so that it's moving towards the goal at all times.
|
- **Long distance pathing and splicing** Baritone calculates paths in segments, and precalculates the next segment when the current one is about to end, so that it's moving towards the goal at all times.
|
||||||
- **Chunk caching** Baritone simplifies chunks to a compacted internal 2-bit representation (AIR, SOLID, WATER, AVOID) and stores them in RAM for better very-long-distance pathing. There is also an option to save these cached chunks to disk. <a href="https://www.youtube.com/watch?v=dyfYKSubhdc">Example</a>
|
- **Chunk caching** Baritone simplifies chunks to a compacted internal 2-bit representation (AIR, SOLID, WATER, AVOID) and stores them in RAM for better very-long-distance pathing. There is also an option to save these cached chunks to disk. <a href="https://www.youtube.com/watch?v=dyfYKSubhdc">Example</a>
|
||||||
- **Block breaking** Baritone considers breaking blocks as part of its path. It also takes into account your current tool set and hot bar. For example, if you have a Eff V diamond pick, it may choose to mine through a stone barrier, while if you only had a wood pick it might be faster to climb over it.
|
- **Block breaking** Baritone considers breaking blocks as part of its path. It also takes into account your current tool set and hot bar. For example, if you have a Eff V diamond pick, it may choose to mine through a stone barrier, while if you only had a wood pick it might be faster to climb over it.
|
||||||
- **Block placing** Baritone considers placing blocks as part of its path. This includes sneak-back-placing, pillaring, etc. It has a configurable penalty of placing a block (set to 1 second by default), to conserve its resources. The list of acceptable throwaway blocks is also configurable, and is cobble, dirt, or netherrack by default.
|
- **Block placing** Baritone considers placing blocks as part of its path. This includes sneak-back-placing, pillaring, etc. It has a configurable penalty of placing a block (set to 1 second by default), to conserve its resources. The list of acceptable throwaway blocks is also configurable, and is cobble, dirt, or netherrack by default. <a href="https://www.youtube.com/watch?v=F6FbI1L9UmU">Example</a>
|
||||||
- **Falling** Baritone will fall up to 3 blocks onto solid ground (configurable, if you have Feather Falling and/or don't mind taking a little damage). If you have a water bucket on your hotbar, it will fall up to 23 blocks and place the bucket beneath it. It will fall an unlimited distance into existing still water.
|
- **Falling** Baritone will fall up to 3 blocks onto solid ground (configurable, if you have Feather Falling and/or don't mind taking a little damage). If you have a water bucket on your hotbar, it will fall up to 23 blocks and place the bucket beneath it. It will fall an unlimited distance into existing still water.
|
||||||
- **Vines and ladders** Baritone understands how to climb and descend vines and ladders. There is experimental support for more advanced maneuvers, like strafing to a different ladder / vine column in midair (off by default, setting named `allowVines`).
|
- **Vines and ladders** Baritone understands how to climb and descend vines and ladders. There is experimental support for more advanced maneuvers, like strafing to a different ladder / vine column in midair (off by default, setting named `allowVines`).
|
||||||
- **Opening fence gates and doors**
|
- **Opening fence gates and doors**
|
||||||
|
16
IMPACT.md
Normal file
16
IMPACT.md
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Integration between Baritone and Impact
|
||||||
|
|
||||||
|
Baritone will be in Impact 4.4 with nice integrations with its hacks, but if you're impatient you can run Baritone on top of Impact 4.3 right now.
|
||||||
|
|
||||||
|
You can either build Baritone yourself, or download the jar from September 3 from <a href="https://www.dropbox.com/s/vje9x3xd3eaplxu/baritone-1.0.jar?dl=0">here</a>
|
||||||
|
|
||||||
|
To build it yourself, clone and setup Baritone (instructions in main README.md). Then, build the jar. From the command line, it's `./gradlew build` (or `gradlew build` on Windows). In IntelliJ, you can just start the `build` task in the Gradle menu.
|
||||||
|
|
||||||
|
Copy the jar into place. It should be `build/libs/baritone-1.0.0.jar` in baritone. Copy it to your libraries in your Minecraft install. For example, on Mac I do `cp Documents/baritone/build/libs/baritone-1.0.0.jar Library/Application\ Support/minecraft/libraries/cabaletta/baritone/1.0.0/baritone-1.0.0.jar`. The first time you'll need to make the directory `cabaletta/baritone/1.0.0` in libraries first.
|
||||||
|
|
||||||
|
Then, we'll need to modify the Impact launch json. Open `minecraft/versions/1.12.2-Impact_4.3/1.12.2-Impact_4.3.json` or copy your existing installation and rename the version folder, json, and id in the json.
|
||||||
|
|
||||||
|
- Add the Baritone tweak class to line 7 "minecraftArguments" like so: `"minecraftArguments": " ... --tweakClass clientapi.load.ClientTweaker --tweakClass baritone.launch.BaritoneTweakerOptifine",`. You need the Optifine tweaker even though there is no Optifine involved, for reasons I don't quite understand.
|
||||||
|
- Add the Baritone library. Insert `{ "name": "cabaletta:baritone:1.0.0" },` between Impact and ClientAPI, which should be between lines 15 and 16.
|
||||||
|
|
||||||
|
Restart the Minecraft launcher, then load Impact 4.3 as normal, and it should now include Baritone.
|
10
README.md
10
README.md
@ -1,9 +1,13 @@
|
|||||||
# Baritone
|
# Baritone
|
||||||
|
![](https://travis-ci.com/cabaletta/baritone.svg?branch=master)
|
||||||
|
|
||||||
A Minecraft bot. This project is an updated version of [Minebot](https://github.com/leijurv/MineBot/),
|
A Minecraft bot. This project is an updated version of [Minebot](https://github.com/leijurv/MineBot/),
|
||||||
the original version of the bot for Minecraft 1.8, rebuilt for 1.12.2.
|
the original version of the bot for Minecraft 1.8, rebuilt for 1.12.2.
|
||||||
|
|
||||||
<a href="https://github.com/cabaletta/baritone/blob/master/FEATURES.md">Features</a>
|
<a href="https://github.com/cabaletta/baritone/blob/master/FEATURES.md">Features</a>
|
||||||
|
|
||||||
|
<a href="https://github.com/cabaletta/baritone/blob/master/IMPACT.md">Baritone + Impact</a>
|
||||||
|
|
||||||
# Setup
|
# Setup
|
||||||
- Open the project in IntelliJ as a Gradle project
|
- Open the project in IntelliJ as a Gradle project
|
||||||
- Run the Gradle task `setupDecompWorkspace`
|
- Run the Gradle task `setupDecompWorkspace`
|
||||||
@ -34,10 +38,12 @@ PathingBehavior.INSTANCE.setGoal(new GoalXZ(10000, 20000));
|
|||||||
PathingBehavior.INSTANCE.path();
|
PathingBehavior.INSTANCE.path();
|
||||||
```
|
```
|
||||||
|
|
||||||
# Can I use Baritone as a library in my hacked client?
|
# FAQ
|
||||||
|
|
||||||
|
## Can I use Baritone as a library in my hacked client?
|
||||||
|
|
||||||
Sure!
|
Sure!
|
||||||
|
|
||||||
# How is it so fast?
|
## How is it so fast?
|
||||||
|
|
||||||
Magic
|
Magic
|
@ -34,7 +34,13 @@ import net.minecraft.util.text.TextFormatting;
|
|||||||
*/
|
*/
|
||||||
public interface Helper {
|
public interface Helper {
|
||||||
|
|
||||||
ITextComponent MESSAGE_PREFIX = new TextComponentString("§5[§dBaritone§5]§7");
|
ITextComponent MESSAGE_PREFIX = new TextComponentString(String.format(
|
||||||
|
"%s[%sBaritone%s]%s",
|
||||||
|
TextFormatting.DARK_PURPLE,
|
||||||
|
TextFormatting.LIGHT_PURPLE,
|
||||||
|
TextFormatting.DARK_PURPLE,
|
||||||
|
TextFormatting.GRAY
|
||||||
|
));
|
||||||
|
|
||||||
Minecraft mc = Minecraft.getMinecraft();
|
Minecraft mc = Minecraft.getMinecraft();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user