# 💀 Vanilla But Wrong v1.0.3 - The Director's Awakening
> *"you will know me soon enough as a blade to your back..."*
This update introduces **The Director**, a fully integrated, lightning-fast AI entity that actively watches, listens, and psychologically torments players based on their in-game actions.
### 🧠 The Director AI
* **Sub-Second AI Integration:** The Director is now powered by the Groq API (Llama 3 8B), providing terrifying, context-aware responses in under a second.
* **Dynamic Eavesdropping:** The Director no longer waits to be spoken to.
* **10% chance** to randomly comment on standard chat.
* **40% chance** to answer when a player asks questions to the void.
* **70% chance** to actively stalk and harass players whose Sanity drops below 50%.
* **Contextual Awareness:** The AI knows your exact Sanity percentage and alters its personality—shifting from cold and distant to aggressive and starving as you lose your mind.
* **Auditory Hallucinations:** Messaging the Director now triggers an immediate, unsettling sculk clicking sound before it speaks.
* **The Offline Hivemind:** If an API key is missing, the Director falls back to a custom array of 20 hardcoded, deeply unsettling phrases to keep the horror alive.
### 🩸 Sanity & Survival Mechanics
* **The Violence Penalty:** Slaying peaceful animals now instantly drains 2.0% Sanity.
* **Starvation Multiplier:** Letting your hunger bar drop to zero will now cause your Sanity to decay 4x faster than normal.
* **Stress Eating:** Gorging yourself when your hunger bar is full (20) now violently strips away 4 hunger points and temporarily pauses your Sanity drain.
* **The Cure:** Sanity Pills (Sugar + Glow Berries + Glass Bottle) are fully functional.
### 🖼️ UI & Quality of Life
* **Native Configuration UI:** Added a sleek, in-game Fabric UI screen to easily configure the Director's API key.
* **Auto-Detection:** New players joining a world without an API key will be greeted with an automatic pause-screen popup explaining how to connect the AI.
* **Title Screen Integration:** Added a permanent "Director AI" button directly to the Minecraft Main Menu for easy key management, editing, or removal. No file digging required.
### ⚙️ Under the Hood (Technical Fixes)
* **API Architecture Overhaul:** Migrated to a universal OpenAI-compatible JSON structure.
* **Persistent Connections:** Replaced per-message HTTP clients with a single `SHARED_CLIENT` to eliminate SSL handshake delays.
* **Cleaned Rendering:** Scrapped clunky Mixin injections and chat commands in favor of native Fabric UI events.
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }