baritone/README.md

83 lines
3.4 KiB
Markdown
Raw Permalink Normal View History

2018-09-03 21:55:44 +05:30
# Baritone
<p align="center">
2023-06-09 03:06:38 +05:30
<a href="http://forthebadge.com/"><img src="https://forthebadge.com/images/badges/not-a-bug-a-feature.svg" alt="forthebadge"/></a>
</p>
<p align="center">
<a href="http://forthebadge.com/"><img src="https://forthebadge.com/images/badges/built-with-swag.svg" alt="forthebadge"/></a>
<a href="http://forthebadge.com/"><img src="https://forthebadge.com/images/badges/mom-made-pizza-rolls.svg" alt="forthebadge"/></a>
</p>
2019-01-25 05:40:21 +05:30
2023-06-09 03:06:38 +05:30
2021-03-22 02:22:27 +05:30
A Minecraft pathfinder bot.
2023-06-09 03:06:38 +05:30
The best way to install it is to run `./gradlew build` and drop `build/libs/baritone-standalone-*.jar` into your mods folder (use `baritone-api-*.jar` if your other mods use/integrate with baritone, use `baritone-*-forge-*.jar` if using forge).
2021-03-22 02:29:00 +05:30
[**Baritone Discord Server**](http://discord.gg/s6fRBAUpmr)
2018-08-26 21:15:02 +05:30
2022-02-08 11:33:31 +05:30
Baritone is the pathfinding system used in [Impact](https://impactclient.net/) since 4.4. There's a [showcase video](https://youtu.be/CZkLXWo4Fg4) made by @Adovin#0730 on Baritone which I recommend. [Here's](https://www.youtube.com/watch?v=StquF69-_wI) a (very old!) video I made showing off what it can do.
[Tutorial playlist](https://www.youtube.com/playlist?list=PLnwnJ1qsS7CoQl9Si-RTluuzCo_4Oulpa)
2018-10-16 05:31:29 +05:30
2018-11-07 09:42:02 +05:30
This project is an updated version of [MineBot](https://github.com/leijurv/MineBot/),
2022-02-02 14:20:48 +05:30
the original version of the bot for Minecraft 1.8.9, rebuilt for 1.12.2 onwards. Baritone focuses on reliability and particularly performance (it's over [30x faster](https://github.com/cabaletta/baritone/pull/180#issuecomment-423822928) than MineBot at calculating paths).
2018-11-07 09:42:02 +05:30
2019-10-15 15:34:22 +05:30
Have committed at least once a day from Aug 1, 2018, to Aug 1, 2019.
2019-02-02 12:24:14 +05:30
2019-02-12 08:51:08 +05:30
1Leijurv3DWTrGAfmmiTphjhXLvQiHg7K2
# Getting Started
2018-09-24 06:09:04 +05:30
Here are some links to help to get started:
2018-09-02 23:45:43 +05:30
2018-09-24 06:09:04 +05:30
- [Features](FEATURES.md)
2018-09-03 22:34:48 +05:30
2019-02-28 05:16:28 +05:30
- [Installation & setup](SETUP.md)
2018-09-13 22:44:10 +05:30
2019-06-21 14:29:10 +05:30
- [API Javadocs](https://baritone.leijurv.com/)
2019-01-29 01:27:58 +05:30
2023-06-09 03:06:38 +05:30
- [Settings](https://baritone.leijurv.com/baritone/api/Settings.html#field.detail) (note that the 0xf8 fork adds more settings)
2019-02-11 06:14:09 +05:30
2019-07-05 04:22:09 +05:30
- [Usage (chat control)](USAGE.md)
2019-02-05 10:53:19 +05:30
2020-02-23 12:12:22 +05:30
# API
2019-06-21 12:18:02 +05:30
The API is heavily documented, you can find the Javadocs for the latest release [here](https://baritone.leijurv.com/).
Please note that usage of anything located outside of the ``baritone.api`` package is not supported by the API release
jar.
2019-10-15 15:34:22 +05:30
Below is an example of basic usage for changing some settings, and then pathing to an X/Z goal.
2018-08-28 00:32:51 +05:30
```java
2018-09-24 05:53:57 +05:30
BaritoneAPI.getSettings().allowSprint.value = true;
2019-01-29 00:29:08 +05:30
BaritoneAPI.getSettings().primaryTimeoutMS.value = 2000L;
2018-08-28 00:32:51 +05:30
2018-11-19 07:02:16 +05:30
BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(new GoalXZ(10000, 20000));
2018-08-30 00:55:03 +05:30
```
2018-09-03 04:31:41 +05:30
# FAQ
2018-11-20 06:44:54 +05:30
## Can I use Baritone as a library in my custom utility client?
2018-08-30 00:55:03 +05:30
2019-10-15 15:34:22 +05:30
That's what it's for, sure! (As long as usage complies with the LGPL 3.0 License)
2018-08-30 00:55:03 +05:30
2018-09-03 04:31:41 +05:30
## How is it so fast?
2018-08-30 00:55:03 +05:30
2019-06-21 14:29:10 +05:30
Magic. (Hours of [leijurv](https://github.com/leijurv/) enduring excruciating pain)
2020-07-07 05:37:59 +05:30
### Additional Special Thanks To:
![YourKit-Logo](https://www.yourkit.com/images/yklogo.png)
YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications.
YourKit is the creator of the [YourKit Java Profiler](https://www.yourkit.com/java/profiler/), [YourKit .NET Profiler](https://www.yourkit.com/.net/profiler/), and [YourKit YouMonitor](https://www.yourkit.com/youmonitor/).
We thank them for granting Baritone an OSS license so that we can make our software the best it can be.
## Why is it called Baritone?
2020-07-07 05:37:59 +05:30
It's named for FitMC's deep sultry voice.