Compare commits
15 Commits
bot-system
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 52aca2e3b1 | |||
| 01ba712d33 | |||
| e0985d3b68 | |||
| 7181d2c91a | |||
| e66d8616ce | |||
| 656dd91004 | |||
| d88b3a7799 | |||
| 7cdbc4acca | |||
| de68e6630e | |||
| de89da20b2 | |||
| 17a06621f5 | |||
| b3de840e04 | |||
| 539b8ef973 | |||
| 710170ef2d | |||
| fb22cf05eb |
@@ -14,12 +14,19 @@ Baritone version:
|
|||||||
Forge mods (if used):
|
Forge mods (if used):
|
||||||
|
|
||||||
## Exception, error or logs
|
## Exception, error or logs
|
||||||
You can find your logs in `%appdata%/.minecraft/logs/` (Windows) or `/Library/Application\ Support/minecraft/logs` (Mac).
|
Please find your `latest.log` or `debug.log` in this folder and attach it to the issue
|
||||||
|
|
||||||
|
Linux: `~/.minecraft/logs/`
|
||||||
|
|
||||||
|
Windows: `%appdata%/.minecraft/logs/`
|
||||||
|
|
||||||
|
Mac: `/Library/Application\ Support/minecraft/logs/`
|
||||||
|
|
||||||
## How to reproduce
|
## How to reproduce
|
||||||
Add your steps to reproduce the issue/bug experienced here.
|
Add your steps to reproduce the issue/bug experienced here.
|
||||||
|
|
||||||
## Final checklist
|
## Final checklist
|
||||||
|
- [x] I know how to properly use check boxes
|
||||||
- [ ] I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
|
- [ ] I have included the version of Minecraft I'm running, baritone's version and forge mods (if used).
|
||||||
- [ ] I have included logs, exceptions and / or steps to reproduce the issue.
|
- [ ] I have included logs, exceptions and / or steps to reproduce the issue.
|
||||||
- [ ] I have not used any OwO's or UwU's in this issue.
|
- [ ] I have not used any OwO's or UwU's in this issue.
|
||||||
@@ -10,4 +10,5 @@ assignees: ''
|
|||||||
With as much detail as possible, describe your question and what you may need help with.
|
With as much detail as possible, describe your question and what you may need help with.
|
||||||
|
|
||||||
## Final checklist
|
## Final checklist
|
||||||
|
- [x] I know how to properly use check boxes
|
||||||
- [ ] I have not used any OwO's or UwU's in this issue.
|
- [ ] I have not used any OwO's or UwU's in this issue.
|
||||||
@@ -16,4 +16,5 @@ If applicable, what settings/customizability should be offered to tweak the func
|
|||||||
Describe how your suggestion would improve Baritone, or the reason behind it being added.
|
Describe how your suggestion would improve Baritone, or the reason behind it being added.
|
||||||
|
|
||||||
## Final checklist
|
## Final checklist
|
||||||
|
- [x] I know how to properly use check boxes
|
||||||
- [ ] I have not used any OwO's or UwU's in this issue.
|
- [ ] I have not used any OwO's or UwU's in this issue.
|
||||||
@@ -1,86 +1 @@
|
|||||||
# Baritone
|
[Release](https://github.com/hykilpikonna/baritone/releases/tag/sx-1)
|
||||||
[](https://travis-ci.com/cabaletta/baritone/)
|
|
||||||
[](https://github.com/cabaletta/baritone/releases/)
|
|
||||||
[](LICENSE)
|
|
||||||
[](https://www.codacy.com/app/leijurv/baritone?utm_source=github.com&utm_medium=referral&utm_content=cabaletta/baritone&utm_campaign=Badge_Grade)
|
|
||||||
[](http://hits.dwyl.com/cabaletta/baritone/)
|
|
||||||
[](https://github.com/cabaletta/baritone/releases/)
|
|
||||||
[](https://github.com/cabaletta/baritone/tree/master/)
|
|
||||||
[](https://github.com/cabaletta/baritone/tree/1.13.2/)
|
|
||||||
[](https://github.com/cabaletta/baritone/tree/1.14.4/)
|
|
||||||
[](https://github.com/cabaletta/baritone/blob/master/CODE_OF_CONDUCT.md)
|
|
||||||
[](https://snyk.io/test/github/cabaletta/baritone?targetFile=build.gradle)
|
|
||||||
[](https://github.com/cabaletta/baritone/issues/)
|
|
||||||
[](https://github.com/cabaletta/baritone/issues/)
|
|
||||||
[](https://github.com/cabaletta/baritone/issues?q=is%3Aissue+is%3Aclosed)
|
|
||||||
[](https://github.com/cabaletta/baritone/pulls/)
|
|
||||||

|
|
||||||

|
|
||||||

|
|
||||||
[](https://github.com/cabaletta/baritone/graphs/contributors/)
|
|
||||||
[](https://github.com/cabaletta/baritone/commit/)
|
|
||||||
[](https://impactclient.net/)
|
|
||||||
[](https://github.com/fr1kin/ForgeHax/)
|
|
||||||
[](https://gitlab.com/emc-mods-indrit/baritone_api)
|
|
||||||
[](https://wweclient.com/)
|
|
||||||
[](https://futureclient.net/)
|
|
||||||
[](http://forthebadge.com/)
|
|
||||||
[](http://forthebadge.com/)
|
|
||||||
|
|
||||||
A Minecraft pathfinder bot.
|
|
||||||
|
|
||||||
Baritone is the pathfinding system used in [Impact](https://impactclient.net/) since 4.4. There's a [showcase video](https://www.youtube.com/watch?v=yI8hgW_m6dQ) made by @Adovin#3153 on Baritone's integration into Impact. [Here's](https://www.youtube.com/watch?v=StquF69-_wI) a video I made showing off what it can do.
|
|
||||||
|
|
||||||
The easiest way to install Baritone is to install [Impact](https://impactclient.net/), which comes with Baritone. The second easiest way (for 1.12.2 only) is to install the v1.2.* forge api jar from [releases](https://github.com/cabaletta/baritone/releases). Otherwise, see [Installation & setup](SETUP.md). Once Baritone is installed, look [here](USAGE.md) for instructions on how to use it.
|
|
||||||
|
|
||||||
For 1.14.4, [click here](https://www.dropbox.com/s/rkml3hjokd3qv0m/1.14.4-Baritone.zip?dl=1). Or [with optifine](https://github.com/cabaletta/baritone/issues/797).
|
|
||||||
|
|
||||||
This project is an updated version of [MineBot](https://github.com/leijurv/MineBot/),
|
|
||||||
the original version of the bot for Minecraft 1.8.9, rebuilt for 1.12.2 and 1.13.2. 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).
|
|
||||||
|
|
||||||
Have committed at least once a day from Aug 1 2018 to Aug 1 2019.
|
|
||||||
|
|
||||||
1Leijurv3DWTrGAfmmiTphjhXLvQiHg7K2
|
|
||||||
|
|
||||||
# Getting Started
|
|
||||||
|
|
||||||
Here are some links to help to get started:
|
|
||||||
|
|
||||||
- [Features](FEATURES.md)
|
|
||||||
|
|
||||||
- [Installation & setup](SETUP.md)
|
|
||||||
|
|
||||||
- [API Javadocs](https://baritone.leijurv.com/)
|
|
||||||
|
|
||||||
- [Settings](https://baritone.leijurv.com/baritone/api/Settings.html#field.detail)
|
|
||||||
|
|
||||||
- [Usage (chat control)](USAGE.md)
|
|
||||||
|
|
||||||
# API
|
|
||||||
|
|
||||||
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.
|
|
||||||
|
|
||||||
Below is an example of basic usage for changing some settings, and then pathing to a X/Z goal.
|
|
||||||
|
|
||||||
```
|
|
||||||
BaritoneAPI.getSettings().allowSprint.value = true;
|
|
||||||
BaritoneAPI.getSettings().primaryTimeoutMS.value = 2000L;
|
|
||||||
|
|
||||||
BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(new GoalXZ(10000, 20000));
|
|
||||||
```
|
|
||||||
|
|
||||||
# FAQ
|
|
||||||
|
|
||||||
## Can I use Baritone as a library in my custom utility client?
|
|
||||||
|
|
||||||
That's what it's for, sure! (As long as usage is in compliance with the LGPL 3.0 License)
|
|
||||||
|
|
||||||
## How is it so fast?
|
|
||||||
|
|
||||||
Magic. (Hours of [leijurv](https://github.com/leijurv/) enduring excruciating pain)
|
|
||||||
|
|
||||||
## Why is it called Baritone?
|
|
||||||
|
|
||||||
It's named for FitMC's deep sultry voice.
|
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
group 'baritone'
|
group 'baritone'
|
||||||
version '1.2.10'
|
version '1.2.11'
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public enum RelativeGoalXZ implements IDatatypePost<GoalXZ, BetterBlockPos> {
|
|||||||
final IArgConsumer consumer = ctx.getConsumer();
|
final IArgConsumer consumer = ctx.getConsumer();
|
||||||
return new GoalXZ(
|
return new GoalXZ(
|
||||||
MathHelper.floor(consumer.getDatatypePost(RelativeCoordinate.INSTANCE, (double) origin.x)),
|
MathHelper.floor(consumer.getDatatypePost(RelativeCoordinate.INSTANCE, (double) origin.x)),
|
||||||
MathHelper.floor(consumer.getDatatypePost(RelativeCoordinate.INSTANCE, (double) origin.y))
|
MathHelper.floor(consumer.getDatatypePost(RelativeCoordinate.INSTANCE, (double) origin.z))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -184,7 +184,9 @@ public final class CachedWorld implements ICachedWorld, Helper {
|
|||||||
int distZ = ((region.getZ() << 9) + 256) - pruneCenter.getZ();
|
int distZ = ((region.getZ() << 9) + 256) - pruneCenter.getZ();
|
||||||
double dist = Math.sqrt(distX * distX + distZ * distZ);
|
double dist = Math.sqrt(distX * distX + distZ * distZ);
|
||||||
if (dist > 1024) {
|
if (dist > 1024) {
|
||||||
logDebug("Deleting cached region " + region.getX() + "," + region.getZ() + " from ram");
|
if (!Baritone.settings().censorCoordinates.value) {
|
||||||
|
logDebug("Deleting cached region " + region.getX() + "," + region.getZ() + " from ram");
|
||||||
|
}
|
||||||
cachedRegions.remove(getRegionID(region.getX(), region.getZ()));
|
cachedRegions.remove(getRegionID(region.getX(), region.getZ()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user