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音乐社区,致力让每个人都能用音乐表达自我。音述AI提供零门槛AI创作工具,独创GETI法则帮助用户精准定义音乐风格,AI润色功能支持自动优化作品质感。音述AI支持交流讨论、二次创作与价值变现。针对中文用户的语言习惯与文化背景进行专门优化,支持国风融合、C-pop等本土音乐标签,让技术更好地承载人文表达。

QoderWork

QoderWork

阿里Qoder团队推出的桌面端AI智能体

QoderWork 是阿里推出的本地优先桌面 AI 智能体,适配 macOS14+/Windows10+,以自然语言交互实现文件管理、数据分析、AI 视觉生成、浏览器自动化等办公任务,自主拆解执行复杂工作流,数据本地运行零上传,技能市场可无限扩展,是高效的 Agentic 生产力办公助手。

lynote.ai

lynote.ai

一站式搞定所有学习需求

不再被海量信息淹没,开始真正理解知识。Lynote 可摘要 YouTube 视频、PDF、文章等内容。即时创建笔记,检测 AI 内容并下载资料,将您的学习效率提升 10 倍。

AniShort

AniShort

为AI短剧协作而生

专为AI短剧协作而生的AniShort正式发布,深度重构AI短剧全流程生产模式,整合创意策划、制作执行、实时协作、在线审片、资产复用等全链路功能,独创无限画布、双轨并行工业化工作流与Ani智能体助手,集成多款主流AI大模型,破解素材零散、版本混乱、沟通低效等行业痛点,助力3人团队效率提升800%,打造标准化、可追溯的AI短剧量产体系,是AI短剧团队协同创作、提升制作效率的核心工具。

seedancetwo2.0

seedancetwo2.0

能听懂你表达的视频模型

Seedance two是基于seedance2.0的中国大模型,支持图像、视频、音频、文本四种模态输入,表达方式更丰富,生成也更可控。

nano-banana纳米香蕉中文站

nano-banana纳米香蕉中文站

国内直接访问,限时3折

输入简单文字,生成想要的图片,纳米香蕉中文站基于 Google 模型的 AI 图片生成网站,支持文字生图、图生图。官网价格限时3折活动

扣子-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工具

下拉加载更多