baritone

baritone

高性能Minecraft自动寻路和任务执行系统

Baritone是一款开源的Minecraft自动寻路和任务执行系统。它支持多个Minecraft版本,能够自动完成采矿、建造等任务,并提供API接口。Baritone以高效的寻路算法和稳定性能著称,已被多个知名客户端采用。项目提供详细文档,适合Minecraft自动化爱好者和开发者使用。

BaritoneMinecraft寻路系统模组自动化Github开源项目

Baritone

<p align="center"> <a href="https://github.com/cabaletta/baritone/releases/"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/eb210024-ccb5-4f79-bfc2-1a54db59679f.svg" alt="GitHub 所有版本"/></a> </p> <p align="center"> <a href="#Baritone"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/b28bb31f-d974-49f5-bff5-fb4ffad3020a.svg" alt="Minecraft"/></a> <a href="#Baritone"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/48e72c8c-f41d-4df1-936f-fda7925e9073.svg" alt="Minecraft"/></a> <a href="#Baritone"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/709fd8d8-9166-41e2-931f-e039e9df31f1.svg" alt="Minecraft"/></a> <a href="#Baritone"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/eac3e743-7edd-48a9-a723-922bbeca14e0.svg" alt="Minecraft"/></a> <a href="#Baritone"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/203af966-1001-42b9-bf23-7deb95217c48.svg" alt="Minecraft"/></a> <a href="#Baritone"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/4d677881-7231-4338-b40d-051b49e23c7f.svg" alt="Minecraft"/></a> <a href="#Baritone"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/74f2ea3a-c8eb-4eaa-964b-fab5153dbdfc.svg" alt="Minecraft"/></a> <a href="#Baritone"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/fb88f30f-0596-4850-9f7a-56b8d6d73d05.svg" alt="Minecraft"/></a> <a href="#Baritone"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/494a2a02-fbf9-416c-a79b-7ccb9d51882f.svg" alt="Minecraft"/></a> <a href="#Baritone"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/29ee4ab4-6616-4c90-98e8-d97eea42bd3e.svg" alt="Minecraft"/></a> </p> <p align="center"> <a href="https://travis-ci.com/cabaletta/baritone/"><img src="https://travis-ci.com/cabaletta/baritone.svg?branch=master" alt="构建状态"/></a> <a href="https://github.com/cabaletta/baritone/releases/"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/961a332f-9b11-4abe-9e9b-3b13a1a5a4c6.svg" alt="发布"/></a> <a href="LICENSE"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/34239094-bab4-43ea-aa7e-126104849260.svg" alt="许可证"/></a> <a href="https://www.codacy.com/gh/cabaletta/baritone/dashboard?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=cabaletta/baritone&amp;utm_campaign=Badge_Grade"><img src="https://app.codacy.com/project/badge/Grade/cadab857dab049438b6e28b3cfc5570e" alt="Codacy 徽章"/></a> <a href="https://github.com/cabaletta/baritone/blob/master/CODE_OF_CONDUCT.md"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/e57e5e43-632a-4be1-a292-995437d4cba3.svg?style=flat" alt="行为准则"/></a> <a href="https://snyk.io/test/github/cabaletta/baritone?targetFile=build.gradle"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/42cc37f8-b419-44f1-989f-ab41632cdb2b.svg?targetFile=build.gradle" alt="已知漏洞"/></a> <a href="https://github.com/cabaletta/baritone/issues/"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/96da3353-fe42-4a3f-a14c-4de83a0f7047.svg?style=flat" alt="欢迎贡献"/></a> <a href="https://github.com/cabaletta/baritone/issues/"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/a4149cb1-188d-4b3b-8901-41e7a1f6bc4d.svg" alt="问题"/></a> <a href="https://github.com/cabaletta/baritone/issues?q=is%3Aissue+is%3Aclosed"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/68aad5b1-0728-4235-8c01-3c32f605e7aa.svg" alt="GitHub 已关闭的问题"/></a> <a href="https://github.com/cabaletta/baritone/pulls/"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/ad38e0a6-7a85-4a11-ac25-5fdaeedb8465.svg" alt="拉取请求"/></a> <a href="https://github.com/cabaletta/baritone/graphs/contributors/"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/97ba41f6-98b7-4b65-bd8f-6c5e0f912ac3.svg" alt="GitHub 贡献者"/></a> <a href="https://github.com/cabaletta/baritone/commit/"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/865c523d-4e38-4fdd-8251-99e288aee5a8.svg" alt="GitHub 提交"/></a> <img src="https://yellow-cdn.veclightyear.com/ab5030c0/c58b3b3d-0b3a-4418-81d2-7e0b69972b42.svg" alt="代码大小"/> <img src="https://yellow-cdn.veclightyear.com/ab5030c0/53c7e79c-cd90-41ff-9644-7f641319ab0f.svg" alt="GitHub 仓库大小"/> <img src="https://tokei.rs/b1/github/cabaletta/baritone?category=code&style=flat" alt="代码行数"/> <img src="https://yellow-cdn.veclightyear.com/ab5030c0/427e7d00-d65a-41f0-9c40-73219dc1fc3c.svg" alt="是"/> </p> <p align="center"> <a href="https://impactclient.net/"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/79879c68-c386-4203-9381-bf422bef46af.svg" alt="Impact 集成"/></a> <a href="https://github.com/lambda-client/lambda"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/0592ed74-f92a-45d5-bf76-71ad090783ed.svg" alt="Lambda 集成"/></a> <a href="https://github.com/fr1kin/ForgeHax/"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/89f748ad-09d7-4423-ba8b-db43cb682cd4.svg" alt="ForgeHax 集成"/></a> <a href="https://aristois.net/"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/f918168a-bc20-4899-92b8-529802c3cdc1.svg" alt="Aristois 附加集成"/></a> <a href="https://rootnet.dev/"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/e9c9159a-f60d-439b-b202-f242bd397240.svg" alt="rootNET 集成"/></a> <a href="https://futureclient.net/"><img src="https://img.shields.io/badge/Future%20integration-v1.2.12%20%2F%20v1.3.6%20%2F%20v1.4.4-red" alt="Future 集成"/></a> <a href="https://rusherhack.org/"><img src="https://img.shields.io/badge/RusherHack%20integration-v1.2.14-green" alt="RusherHack 集成"/></a> </p> <p align="center"> <a href="http://forthebadge.com/"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/cecd1aff-1b40-4167-8aab-81751c710929.svg" alt="forthebadge"/></a> <a href="http://forthebadge.com/"><img src="https://yellow-cdn.veclightyear.com/ab5030c0/81670dcc-387e-43d7-9774-3998c09382c3.svg" alt="forthebadge"/></a> </p>

一个 Minecraft 寻路机器人。

Baritone 是 Impact 自 4.4 版本以来使用的寻路系统。这里是一个(非常旧的!)我制作的展示其功能的视频。

Baritone Discord 服务器

快速下载链接:

ForgeFabric
1.12.2 Forge
1.16.5 Forge1.16.5 Fabric
1.17.1 Forge1.17.1 Fabric
1.18.2 Forge1.18.2 Fabric
1.19.2 Forge1.19.2 Fabric
1.19.3 Forge1.19.3 Fabric
1.19.4 Forge1.19.4 Fabric
1.20.1 Forge1.20.1 Fabric
1.20.3 Forge1.20.3 Fabric
1.20.4 Forge1.20.4 Fabric

给寻找1.19/1.20版本Baritone的2b2t玩家的信息 如果你愿意,请尝试2b2t的Baritone Elytra测试版,可以在Baritone的Discord的#announcements频道中找到。它支持1.19.4和1.20.1版本,适用于Forge或Fabric。如果你需要亲眼看到才能相信,请观看这个YouTube视频

如何立即开始使用: 在聊天框中输入#goto 1000 500以前往x=1000 z=500的位置。输入#mine diamond_ore以开始挖掘钻石矿石。输入#stop以停止。更多信息请阅读使用说明页面和/或观看这个教程播放列表。也可以尝试使用#elytra命令在下界使用烟花火箭进行鞘翅飞行。

对于其他版本的Minecraft或更复杂的情况或开发需求,请参阅安装与设置。你也可以考虑直接安装Impact,它已经包含了Baritone,比手动处理版本JSON和压缩包更容易安装。对于1.16.5版本,点击这里并查看描述。安装Baritone后,请查看这里了解如何使用它的说明。我推荐观看由@Adovin#6313制作的Baritone展示视频

这个项目是MineBot的更新版本,原版是为Minecraft 1.8.9开发的机器人,现在已经重建并适用于1.12.2及以后的版本。Baritone注重可靠性,特别是性能(在计算路径方面比MineBot快30倍以上)。

从2018年8月1日到2019年8月1日,每天至少提交一次。

1Leijurv3DWTrGAfmmiTphjhXLvQiHg7K2

入门指南

以下是一些帮助你入门的链接:

星标数量随时间变化

Stargazers over time

API

API有详尽的文档,你可以在这里找到最新版本的Javadocs。 请注意,使用baritone.api包之外的任何内容都不受API发布jar的支持。

以下是一个基本用法示例,展示了如何更改一些设置,然后设置一个X/Z目标进行寻路。

BaritoneAPI.getSettings().allowSprint.value = true; BaritoneAPI.getSettings().primaryTimeoutMS.value = 2000L; BaritoneAPI.getProvider().getPrimaryBaritone().getCustomGoalProcess().setGoalAndPath(new GoalXZ(10000, 20000));

常见问题

我可以在自定义实用程序客户端中使用Baritone作为库吗?

当然可以!这正是它的用途。(只要使用符合LGPL 3.0许可证即可)

它为什么这么快?

魔法。(leijurv忍受了数小时的痛苦)

特别鸣谢:

YourKit-Logo

YourKit通过创新和智能的工具支持开源项目,用于监控和分析Java和.NET应用程序。

YourKit是YourKit Java ProfilerYourKit .NET ProfilerYourKit YouMonitor的创造者。

我们感谢他们为Baritone授予OSS许可,使我们能够将软件做到最好。

为什么叫Baritone?

它是以FitMC深沉悦耳的嗓音命名的。

编辑推荐精选

扣子-AI办公

扣子-AI办公

职场AI,就用扣子

AI办公助手,复杂任务高效处理。办公效率低?扣子空间AI助手支持播客生成、PPT制作、网页开发及报告写作,覆盖科研、商业、舆情等领域的专家Agent 7x24小时响应,生活工作无缝切换,提升50%效率!

堆友

堆友

多风格AI绘画神器

堆友平台由阿里巴巴设计团队创建,作为一款AI驱动的设计工具,专为设计师提供一站式增长服务。功能覆盖海量3D素材、AI绘画、实时渲染以及专业抠图,显著提升设计品质和效率。平台不仅提供工具,还是一个促进创意交流和个人发展的空间,界面友好,适合所有级别的设计师和创意工作者。

图像生成AI工具AI反应堆AI工具箱AI绘画GOAI艺术字堆友相机AI图像热门
码上飞

码上飞

零代码AI应用开发平台

零代码AI应用开发平台,用户只需一句话简单描述需求,AI能自动生成小程序、APP或H5网页应用,无需编写代码。

Vora

Vora

免费创建高清无水印Sora视频

Vora是一个免费创建高清无水印Sora视频的AI工具

Refly.AI

Refly.AI

最适合小白的AI自动化工作流平台

无需编码,轻松生成可复用、可变现的AI自动化工作流

酷表ChatExcel

酷表ChatExcel

大模型驱动的Excel数据处理工具

基于大模型交互的表格处理系统,允许用户通过对话方式完成数据整理和可视化分析。系统采用机器学习算法解析用户指令,自动执行排序、公式计算和数据透视等操作,支持多种文件格式导入导出。数据处理响应速度保持在0.8秒以内,支持超过100万行数据的即时分析。

AI工具酷表ChatExcelAI智能客服AI营销产品使用教程
TRAE编程

TRAE编程

AI辅助编程,代码自动修复

Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。

AI工具TraeAI IDE协作生产力转型热门
AIWritePaper论文写作

AIWritePaper论文写作

AI论文写作指导平台

AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。

AI辅助写作AI工具AI论文工具论文写作智能生成大纲数据安全AI助手热门
博思AIPPT

博思AIPPT

AI一键生成PPT,就用博思AIPPT!

博思AIPPT,新一代的AI生成PPT平台,支持智能生成PPT、AI美化PPT、文本&链接生成PPT、导入Word/PDF/Markdown文档生成PPT等,内置海量精美PPT模板,涵盖商务、教育、科技等不同风格,同时针对每个页面提供多种版式,一键自适应切换,完美适配各种办公场景。

AI办公办公工具AI工具博思AIPPTAI生成PPT智能排版海量精品模板AI创作热门
潮际好麦

潮际好麦

AI赋能电商视觉革命,一站式智能商拍平台

潮际好麦深耕服装行业,是国内AI试衣效果最好的软件。使用先进AIGC能力为电商卖家批量提供优质的、低成本的商拍图。合作品牌有Shein、Lazada、安踏、百丽等65个国内外头部品牌,以及国内10万+淘宝、天猫、京东等主流平台的品牌商家,为卖家节省将近85%的出图成本,提升约3倍出图效率,让品牌能够快速上架。

下拉加载更多