Описание

Saro's AI Chat Mod integrates a fully functional AI chat system into Minecraft, powered by Google Gemini. This mod allows players to interact with an intelligent agent that responds contextually, understands in-game data, and (optionally) executes commands depending on your configuration.

* **AI Chat Integration** 🤖
* Chat with an AI powered by the Google Gemini API.
* **Context Awareness** 🌍
* The AI receives Minecraft data such as player location, biome, weather, and time to craft intelligent replies.
* **Conversation Memory** 💬
* The AI remembers previous messages for fluid conversation. Reset with `!clear`.
* **Markdown Formatting** 📝
* Supports **bold**, *italic*, `code`, and `# Headings` in chat messages.
* **Optional AI Cheats (Configurable)** 🧪
* When enabled in config, the AI can:
* Give/remove items (even unobtainable ones)
* Clear inventories or kill players
* Apply effects, change weather/time, and run any command
* Otherwise, it explains why actions are restricted
* **Configuration System** ⚙️
* Easy-to-edit config (`sarosaichatmod-common.toml`) to manage API key, toggles, and features.
* **API Key Check** 🔐
* Validates Google Gemini API key on game start.
* You can currently get a free API key at [Google AI Studio](https://aistudio.google.com/).

## Soon
### Currently Supported ✅
* **Forge 1.20.1**
### Configuration Example
```toml
# Gemini AI Chat Mod Configuration
[api]
# Your Google Gemini API Key
geminiApiKey = "YOUR_GEMINI_API_KEY_HERE"
[chat]
# If enabled, the AI will respond to chat messages
respondToTextMessages = true
[features]
# If enabled, the AI can perform game‑changing actions:
# - Give any item to the player (including dragon heads, command blocks, etc.)
# - Remove items from the player's inventory
# - Clear the player's entire inventory
# - Kill the player
# - Apply status effects
# - Change weather and time
# - Execute any Minecraft command
# When disabled, the AI will explain why these features aren't available.
enableCheatAI = false
```
For support, feedback, or suggestions, join my [Discord](https://discord.gg/H8a8CJe) community and follow the mod’s development!
[](https://server.sarocesch.de/refersaro.php "https://server.sarocesch.de/refersaro.php")
**Project Support & Usage**
**Hosting:** For the best performance, I recommend using BisectHosting linked in the banner.
**Modpacks:** You are free to include my work in any modpack. Please ensure proper credit is given by providing a link to this project page.