AIMobs is a mod that lets you chat with Minecraft mobs and other entities by creating prompts and using the OpenAI API.
- Minecraft 1.19.4
- Fabric
- Fabric API
After installing the mod, grab your OpenAI API key from here, and set it with the /aimobs setkey <key>
command.
You should now be able to talk to mobs by shift+clicking on them!
/aimobs
- View configuration status/aimobs help
- View commands help/aimobs enable/disable
- Enable/disable the mod/aimobs setkey <key>
- Set OpenAI API key/aimobs setmodel <model>
- Set AI model/aimobs settemp <temperature>
- Set model temperature
This project was initially made in 1.12 as a client Forge mod, then ported to 1.19 PaperMC as a server plugin, then ported to Fabric 1.19. Because of this, the code can be a little messy and weird. A couple hardcoded limits are 512 as the max token length and 4096 as the max prompt length (longer prompts will get the beginning cut off), these could be made configurable in the future.
Some plans for the future:
- Support for the Forge modloader.
- Support for other AI APIs.
An unofficial community-made fork is available with support for Ukranian and Español at Eianex/aimobs.
The icon used is the 🧠 emoji from Twemoji (CC BY 4.0)