BuildAI
功能
BuildAI 是一个创造模式下的实用工具,允许各种大型语言模型在游戏中建造建筑。此插件仅供娱乐,目前的 AI 模型通常还不够先进,无法建造出像样的东西。
设置
在服务器上安装插件并启动服务器后,会在 plugins/BuildAI 目录下生成一个 config.yml 文件。在该文件的底部,你可以配置想要使用的提供商。你应该能够添加所有常见的提供商,如 OpenAI 或 Anthropic(均未测试!),但如果你是在个人电脑上运行服务器,建议使用 Ollama,因为它允许你免费在本地运行大型语言模型。
用法
作为操作员,你可以使用以下命令:
/aigenerate {model_preset} {x1} {y1} {z1} {x2} {y2} {z2} {somevar=somevalue} {prompt}。你可以使用木铲进行选择,然后使用命令:
/aigenerate {model_preset} {somevar=somevalue} {prompt}。变量("somevar")可以在配置文件中设置。
安全
大多数提供商需要 API 密钥才能访问其模型。保护此密钥至关重要,因为任何拥有该密钥的人都可以未经你的同意使用该模型。此插件提供两种主要方法来存储 API 密钥:
- 将密钥存储在
config.yml文件中:
虽然这种方法可以防止玩家直接查看密钥,但你应仔细考虑谁有权访问配置文件。此外,请注意相关命令缺乏防垃圾信息保护,因此请确保只有受信任的人员才能执行该命令。 - 在配置中使用
%api-key%并允许玩家输入自己的密钥:
必须理解的是,任何拥有终端访问权限的人都可以查看 API 密钥。对于玩家而言,除非你是服务器所有者,否则强烈不建议输入你的 API 密钥。
版本
BuildAI 是使用 Paper 1.20.1 开发的,并且主要在此版本上进行测试。它应该能够在 1.13 之后的所有基于 Bukkit 的软件的所有版本中运行。
官方链接
- Modrinth:
- 源代码:
BuildAI
Functionality
BuildAI is a creative mode utility that allows various Large Language Models to build structures ingame. This plugin is meant just for fun, AI models are generally not advanced enough to build anything good.
Setup
After installing the plugin on your server and starting the server, a config.yml file will be created in the
plugins/BuildAI directory. At the bottom of this file, you can configure the provider you want to use. You should be able to add all common providers like OpenAI or Anthropic (both not tested!), but if you are running the server on your PC I suggest Ollama, as it allows you to run LLMs locally for free.
Usage
As an operator, you can use the command:
/aigenerate {model_preset} {x1} {y1} {z1} {x2} {y2} {z2} {somevar=somevalue} {prompt}. You can make a selection using a wooden shovel and use the command:
/aigenerate {model_preset} {somevar=somevalue} {prompt}. The variables ("somevar") can be configured in the config.
Security
Most providers require an API key to access their models. Safeguarding this key is crucial, as anyone with access to it can use the model without your consent. This plugin offers two primary methods for storing API keys:
- Storing the key in the
config.ymlfile:
While this method prevents players from viewing the key directly, you should carefully consider who has access to the configuration file. Additionally, note that the associated command lacks spam protection, so ensure that only trusted individuals can execute it. - Using
%api-key%in the configuration and allowing players to input their own key:
It is essential to understand that anyone with terminal access can view the API key. For players, it is strongly discouraged to input your API key unless you own the server.
Verisons
BuildAI was developed with Paper 1.20.1 and is primarly tested with this version. It should be able to run on all bukkit based softwares in all versions after 1.13.
Official links
- Modrinth:
- Source:
下载 BuildAI
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BuildAI
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BuildAI
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BuildAI
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 BuildAI
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 修复了未设置的变量在聊天中不显示的问题
- 修复了在没有选择的情况下执行命令时插件报错的问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
插件
用于绘制游戏内地图或在浏览器中随探索实时进行地图绘制的实时地图。
评论 0
登录后参与评分
还没有评论,来抢沙发吧