HomeJavaModsLittle Whale AI
Little Whale AI
Little Whale AI — screenshot 1

A lightweight, fully asynchronous Fabric mod that brings a friendly AI player named Little Whale into your Minecraft server. Powered by any OpenAI-compatible API, it can chat with players in private or public, understand context, and speak their language.

✨ Features

📦 Installation

  1. Install Fabric for Minecraft 1.21.8.
  2. Download the mod .jar file and place it into the mods/ folder.
  3. Launch the server or client. A default configuration file will be generated at config/aichat.json.
  4. Edit config/aichat.json and fill in your apiKey and (optionally) apiUrl. Save the file.
  5. Run /aichat reload (requires OP) or restart the server.

⚙️ Configuration (config/aichat.json)

Key Type Default Description
apiUrl String https://open.bigmodel.cn/api/paas/v4/chat/completions API endpoint (OpenAI-compatible)
apiKey String "" Your API key
systemPrompt String (multilingual, anti-prefix, plain‑text prompt) System prompt that defines AI behavior
modelName String "general" Model name to send to the API
temperature Double 0.7 Creativity of responses (0.0–2.0)
autoClearContext Boolean true Enable automatic context clearing
contextExpireSeconds Integer 300 Seconds between auto‑clears
prefix String "<LittleWhale> " Prefix added to every AI reply (supports color codes)
mode Integer 2 Chat mode: 1 = private, 2 = public, 3 = mixed

🎮 Usage

Chat Triggers

Admin Commands (requires OP, permission level 2)

Command Description
/aichat clear Clear your own private context (mode 1/3)
/aichat clear <player> Clear the private context of a specific player
/aichat clearglobal Clear the global public conversation context
/aichat clearall Clear all contexts (private + global)
/aichat reload Reload the configuration without restarting
/aichat info Display current settings (API, model, mode, etc.)
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more