This simple client-sided mod allows you to prompt ChatGPT without leaving your game. It always assumes you are talking about Minecraft, making it a useful Minecraft assistant!
How to use it
- Go to OpenAI's website and obtain an API key. Make sure to keep this API key somewhere safe because it will only show you the key once.
- Go into the config file for the mod (Mod Menu works too) and enter the API key into its respective field. The other option lets you change what model the AI uses.
gpt-4o-mini
is the default because it is the cheapest one. You can change this togpt-4o
for more expensive but accurate responses (no matter what model you choose, the AI may get some things wrong). Keep in mind that with the most recent models, ChatGPT is trained up to October 2023, just a month after 1.20.2 was released, meaning that it does not know anything about Minecraft versions newer than 1.20.2. - Enter any world and use
/ai prompt <prompt>
(use/ai chat <prompt>
to have the AI remember what you said) to ask ChatGPT anything. To get information on the current held item, use/ai info hand
. For information about the targeted block or entity, use/ai info looking
.
Known issues
- Game freezes when prompting the AI until the response is done generating. (found by: me) (probably unfixable)
Project members
ahtism
Member
Technical information
License
MIT
Client side
required
Server side
unsupported
Project ID