SimpleAIChatPlugin
A lightweight Minecraft plugin that allows players to interact with an AI directly through in-game chat. Powered by the Cerebras AI API with support for free tier models.
Features
- Chat with AI directly from in-game using simple commands
- Cerebras AI API powered with free tier models available
- Lightweight and performance-friendly - minimal server impact
- Personality Profiles - 5 different AI personalities (Helper, Tutor, Entertainer, Expert, Casual)
- Player Management - Whitelist/blacklist system to control access
- Conversation Storage - Automatic conversation tracking and memory per player
- Response Control - Choose between short (simple) or long (detailed) responses
- Simple setup with API key configuration
- Clean command system - easy to use
- Suitable for small and large servers
Supported AI Models
- Llama-3.1-8B (default)
- Qwen-3-32B
- GPT-OSS-120B
- ZAI GLM 4.6
- Llama-3.3-70B
- Qwen3-235B (Instruct)
Commands
# Player Commands
- /ai <prompt> - Chat with AI directly
- Example: /ai How do I build a house?
# Admin Commands
- /aiadmin reload - Reload config after file edit
- /aiadmin setkey <key> - Update API key instantly (no restart needed!)
- /aiadmin status - Shows all current configuration
- /aiadmin setmodel <model> - Switch AI model without restart
- /aiadmin models - List available AI models
- /aiadmin personalities - List available AI personalities
- /aiadmin setpersonality <name> - Set default AI personality
- /aiadmin whitelist <enable|disable|list> - Manage player whitelist
- /aiadmin blacklist <add|remove|list> - Manage player blacklist
- /aiadmin help - Show help message
# Permissions
- aiplugin.use - Allows players to use the `/ai` command to chat with AI (default: true)
- aiplugin.admin - Allows access to `/aiadmin` command and administrative features (default: op)
# Installation
1. Download the plugin JAR: SimpleAIChatPlugin-1.2.0.jar
2. Place in your server's plugins folder
3. Restart your server
4. Edit plugins/SimpleAIChatPlugin/config.yml and add your Cerebras AI API key
5. Run /aiadmin reload to apply changes
Or restart your server's
## Configuration
# Cerebras AI API Configuration
api:
key: "YOUR_API_KEY_HERE"
base_url: "https://api.cerebras.ai/v1"
model: "llama3.1-8b"
timeout: 30
# Chat Settings
chat:
prefix: "&8[&bAI&8]&r "
max_prompt_length: 500
cooldown_seconds: 5
# Response Settings (short = 1-2 sentences, long = detailed)
response:
max_length: 256
split_long_messages: true
response_style: "short"
# Conversation Storage
storage:
enabled: true
max_conversations_per_player: 100
cleanup_days: 30
# AI Personality (helper, tutor, entertainer, expert, casual)
personality:
default: "helper"
# Player Management
player_management:
whitelist_enabled: false
whitelist: []
blacklist: []
# Getting a Cerebras AI API Key
1. Sign up at [Cerebras AI]( https://www.cerebras.ai/)
2. Create an API key in your account settings
3. Copy your API key and paste it in the config file
4. Run `/aiadmin reload` to activate
If you find bugs or add new Features, you can contact me :
[email protected]
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta