TBS: AI Integration — an add-on for The Broken Script that adds AI for Null.
This is an unofficial fan-made add-on. It is not affiliated with the creators of The Broken Script and has not been endorsed by them.
Features
Player Data Each request to the model includes the following information: player name, TBS reputation, health, hunger, biome, dimension, in-game day and time, and recent events.
Context Dialogues are stored in the world’s SavedData—up to 1,000 entries
Event Control The AI can trigger one of The Broken Script’s 90 random events depending on what you’ve written to it. It cannot trigger story events. In the config, you can set the cooldown and the hourly limit for such events.
Providers Built-in support for Google AI Studio (Gemini) and any OpenAI-compatible API. More will be added in the future.
Available Settings Provider, key, base URL, model, temperature, token limit, events, memory, and system prompt. Requires Configured.
Requirements
- Minecraft: 1.21.1
- NeoForge: 21.1.249 or newer
- The Broken Script: 2.0.5 or newer
The mod is optimized for single-client use and has not been tested on a server
Commands
/tbsai memory— memory size, summary length, and latest event./tbsai resetmemory— clear the AI’s memory in this world./tbsai test— test request with provider, model, HTTP status, and latency./tbsai reload— reload the config and recreate the HTTP client./tbsai event <id>— force a TBS event to trigger.
Important to Know
This addon is completely safe for your worlds. If you install it and later want to remove it, there will be no issues

