关于 SmartBrainLib 模组
一个为 Minecraft 打造的大脑库,让大脑系统更易于使用和管理。
这是什么?
Minecraft 中的大脑系统是 Mojang 引入的一套近乎神秘的新实体 AI 系统,用于处理更复杂的生物,并支持更高级的实体处理。
遗憾的是,Mojang 的实现有所欠缺,而且过于复杂。
此外,它的实现方式也相当低效,这意味着总体而言,这套系统并不值得用来取代现有的目标系统。
本库旨在彻底改造大脑系统,使其真正可用且可配置。
但请注意,现有的目标系统表面上仍然更简单——大脑系统是为更复杂的交互而设计的,不过用它做实验也很有趣。
那么 SmartBrainLib 能做什么?
SBL 采用多方面的方式来处理大脑系统,并会随着我的使用不断扩展和改进。
以下是它的主要特性:
自动处理记忆类型
不必再费心弄清楚要为你的实体注册哪些记忆模块。
动态传感器
传感器现在可以动态配置和处理。这允许实现更高级、更灵活的传感器。
高级行为
使用内置行为,或基于可扩展的行为类创建新行为,该类内置了回调、断言、冷却等功能。
运行时安全的行为修改
从现有实体动态添加、移除和修改行为。
优化
SBL 替换了原版大脑系统几乎全部的功能,使用高效函数尽可能消除大脑中各个区域的低效之处。如果使用得当,SBL 实体甚至可能比使用目标系统的实体更高效!
额外的传感器、行为和记忆类型
SBL 内置了可供任何实体使用的额外模块,未来还会不断增加。
新增的实用函数
除了预期的大脑功能外,SBL 还额外添加了一些辅助工具,例如:
- 优化过的关卡实体获取函数
- 对开发者友好的 Random 库
- 用于从非 SBL 实体添加/移除大脑内容的大脑接口工具
我该如何使用它?
该库的文档位于其 Wiki 页面
如果你遇到问题或想做出贡献,请前往 Github 页面并发出你的声音
如何安装 SmartBrainLib
With Millida Launcher
Install Millida Launcher
The launcher is free: download it at millida.net/launcher and sign in with any nickname.
Click “Install” on this page
The launcher opens and installs the mod for Minecraft 1.16.5–26.3 on Fabric, Forge or NeoForge automatically, together with its dependencies: Fabric API.
Launch the game
A profile with it appears in the launcher: click “Play”.
Manually
Install Fabric, Forge or NeoForge
The loader must match the game version of the mod file, for example Minecraft 26.3. After installing it, a separate profile appears in your launcher.
Download the file for your version
In the version list above, pick the file smartbrainlib-neoforge-26.3-2.0.3.jar (503 KB) for your game version and loader.
Put it in the mods folder
The folder is inside .minecraft (Windows: %appdata%\.minecraft\mods). If it does not exist, create it. Required dependencies go there too: Fabric API.
Launch the loader profile
Open “Mods” in the main menu: SmartBrainLib should be in the list.
On a server
A server on Fabric, Forge or NeoForge
The mod only works on a server with the same loader and game version, for example 26.3.
File goes into the server’s mods folder
Stop the server, put the mod file into the mods folder and start the server again.
Use the “To server” button
On Millida Hosting, the button at the top of the page uploads the file to your server and restarts it for you.
版本
含依赖项
| Minecraft | 加载器 | 文件 | 日期 | 操作 |
|---|---|---|---|---|
| 26.1.2 | NeoForge | 26.1.2503 KB | ||
| 26.1.2 | Forge | 26.1.2507 KB | ||
| 26.1.2 | Fabric | 26.1.2510 KB | ||
| 26.2 | NeoForge | 26.2503 KB | ||
| 26.2 | Forge | 26.2507 KB | ||
| 26.2 | Fabric | 26.2506 KB | ||
| 26.3 | NeoForge | 26.3503 KB | ||
| 26.3 | Forge | 26.3507 KB |
运行所需
评价
成为第一个评价 SmartBrainLib 的人


