Skip to content
/ aimobs Public
forked from rebane2001/aimobs

Chat with Minecraft mobs and entities by using the OpenAI API

License

Notifications You must be signed in to change notification settings

Eianex/aimobs

 
 

Repository files navigation

AIMobs

AIMobs is a mod that lets you chat with Minecraft mobs and other entities by creating prompts and using the OpenAI API.

Requirements

  • Minecraft 1.19.4
  • Fabric
  • Fabric API

Usage

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!

Commands

  • /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

Notes

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:

  • Native Support for the Quilt modloader.
  • Support for other AI APIs.
  • More languages, already in english, spanish and ukranian.

The icon used is the 🧠 emoji from Twemoji (CC BY 4.0)

About

Chat with Minecraft mobs and entities by using the OpenAI API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%