你是否曾想过让 ChatGPT 来控制你的 Minecraft 世界?是的?那么这绝对是为你量身定制的项目!只需下载该模组,设置一个 OpenAI API 密钥,将其配置为系统环境变量 "OPENAI_API_KEY",然后启动模组即可!随着时间的推移会产生费用,但金额非常小(大约每分钟不到一分钱),不过有一些因素会导致费用增加或减少,详见下文。有几个设置项,均可通过 /gptmc 命令访问。
命令
- /gptmc godmode <enable|disable|status> (启用、禁用并获取“上帝模式”的状态,该模式允许 ChatGPT 控制你的世界。默认情况下为开启状态。)
- /gptmc morals <get|set|clear> (获取、设置和清除“上帝模式”的“道德观念”,即 ChatGPT 所认为的对与错)
- /gptmc minimumevents <get|set|reset> (为了节省 API 密钥的费用,系统设置了阈值:如果没有事件发生,或者触发的事件数量少于该数值,则不会向 OpenAI 发送任何信息。默认数值为 3)
- /gptmc summary <get|clear> (摘要由另一个 AI 生成,用于总结最近发生的事件并将其发送给 ChatGPT。然而,一段时间后这个摘要可能会变得非常大,而摘要越大,成本就越高;因此强烈建议偶尔清除它)
- /gptmc interval <get|set> (这将更改信息被总结和发送给 ChatGPT 的时间间隔。数值越低,速度越快,但成本也越高。默认设置为 30 秒)
- /gptmc prompt (此命令只能在上帝模式禁用时运行,将允许你像在网站上那样直接从 Minecraft 访问 ChatGPT)
- /gptmc help (显示所有命令及其语法)
- /gptmc debug <response|summary> (启用对 ChatGPT 生成的摘要或回复的报告)
事件
事件类似于触发器,每当执行特定操作时就会激活。目前使用的事件允许读取聊天内容、检测实体是否被击中,以及检测方块是否被挖掘或放置。
动作
ChatGPT 有多种动作,它可以根据玩家的选择从中挑选。它可能会根据玩家的行为给予奖励或惩罚。如果玩家未道歉,ChatGPT 可能会对同一行为多次进行惩罚。其动作如下:
- say: 向服务器上的所有玩家发送消息
- give: 给玩家一件物品
- smite: 用闪电击中玩家
- clear: 清空玩家的物品栏
- lightning: 反复用闪电击中玩家,直到其死亡
- whisper: 仅向一名玩家发送消息
- effect: 给玩家施加一个效果
- time: 将时间设置为白天或黑夜
- heal: 将玩家的生命值和饥饿值恢复至满
免责声明与警告
我不拥有 OpenAI(如果我拥有,我就不会制作这个模组了)或其关联的任何公司。该模组完全开源,托管在 GitHub 上。ChatGPT 无法被完全控制,并且会带有一定的随机性,因此不建议在你经常游玩的世界中使用它。
Have you ever wanted ChatGPT to control your Minecraft world? Yes? Well then this is the perfect project for you! Simply download the mod, set up an OpenAI api key, set it to your system environment variable "OPENAI_API_KEY" and then launch the mod! This will cost money overtime, however the amount is extremely small (less than a cent every minute or so) but there are things that will increase or decrease it, as detailed below. There are several settings, all of which can be accessed through the /gptmc command.
Commands
- /gptmc godmode <enable|disable|status> (Enables, disables, and gets the status of God Mode, which is what allows ChatGPT to control your world. By default it is on.)
- /gptmc morals <get|set|clear> (Gets, sets, and clears the "morals" of God Mode, which is what ChatGPT sees as right and wrong)
- /gptmc minimumevents <get|set|reset> (To save on money from the API key, a system is set up to not send anything to OpenAI if no events or a number of events fewer than this number have been triggered. The default number is 3)
- /gptmc summary <get|clear> (The summary is a report generated by a second AI, which summarizes the recent events and sends them to ChatGPT. However, after a while this summary can get very large, and the larger it is, the more money it costs; so it is highly recommended to clear it once in a while)
- /gptmc interval <get|set> (This will change the interval at which information is summarized and sent to ChatGPT. The lower the number is, the faster and more expensive it is. By default it is set to 30 seconds)
- /gptmc prompt (This command can only be run with God Mode disabled, and will simply allow you to access ChatGPT from Minecraft like you would through the website)
- /gptmc help (Displays all commands and their syntax)
- /gptmc debug <response|summary> (Enables reports of the summary or response generated by ChatGPT)
Events
Events are like triggers that activate whenever a certain action is performed. Currently the events used allow for reading chat, detecting when entities are hit, and detecting when blocks are mined or placed.
Actions
ChatGPT has several actions, which it can choose from based on the choices made by players. It may reward or punish players based on what they do. ChatGPT may punish players multiple times for the same action until an apology is given. Its actions are as follow:
- say: Sends a message to all players on the server
- give: gives an item to a player
- smite: strikes a player with lightning
- clear: clears a player's inventory
- lightning: strikes a player with lightning repeatedly until they die
- whisper: sends a message to only one player
- effect: gives a player an effect
- time: sets the time to day or night
- heal: sets a player's health and hunger to full
Disclaimers & Warnings
I do not own OpenAI (if I did I wouldn't be making this mod) or any companies affilliated with it. This mod is entirely open-source and on GitHub. ChatGPT cannot be entirely controlled and will have a degree of randomness, so it is not recommended to use this in a world you play on regularly.
评论 0
登录后参与评分
还没有评论,来抢沙发吧