VillagerGPT breathes new life into your server's villagers, allowing players to talk and trade with them using the same technology that powers ChatGPT. Players can have a conversation with any villager and haggle for better deals, or come up with previously impossible trades.
AI villagers are aware of various aspects of the game world, their reputation with players, and they each have their own distinct personality based on their profession and a randomly-chosen personality archetype.
To start a conversation with a villager, use the command /ttv ("talk to villager") then right-click on the villager you'd like to speak to. Once the conversation has started, simply send chat messages to continue. You can end the conversation with /ttvend, or by walking away from the villager.
If an AI villager proposes a trade, you can act on it by opening the trading menu like normal (right-clicking on the villager).
AI villagers have access to the following information:
They can perform the following actions in their responses:
AI villagers also have one of these randomly selected personalities:
To configure this plugin you will need an OpenAI API key and, optionally, GPT-4 access. You can obtain an API key here. Once you have obtained one, place it in the plugin's config.yml under openai-key.
More configuration options are planned in the future (such as the ability to add custom villager personalities), but as of now I am focusing on polishing the core functionality.
If you have GPT-4 access, it is highly recommended you switch the model in the config to use GPT-4 instead of the default model. GPT-4 is significantly better at listening to the system message and thus following instructions.
You can switch to GPT-4 by replacing openai-model in config.yml with gpt-4.
/ttv: Initiate a conversation with a villager/ttvclear: Clear the current villager conversation/ttvend: End the current villager conversationThe following permissions are available:
villagergpt.ttv: Allow use of the /ttv commandvillagergpt.ttvclear: Allow use of the /ttvclear commandvillagergpt.ttvend: Allow use of the /ttvend command
Talk to and barter with villagers powered by GPT-4/ChatGPT