Somnium
by BananaFructa
Somnium is a Forge magic mod in which a goat horn starts rituals whose effects are generated at runtime by a chain of local language models.
What it does
Players use a goat horn to begin a ritual by performing actions in the world, and the mod's event handler watches for those activities. Once a ritual is triggered, a chain of four language models, run in sequence with constrained inputs and outputs, produces the outcome and then code that the server executes. Because the results are generated rather than fixed, the exact effect of a ritual is not known in advance, and the author notes that burning items is one example of what can happen.
The language models run through Ollama, which must be installed with the models pulled before the mod can work. The models need about 16.11 GB of storage in total, and generation is slow, so a graphics card with a modest amount of video memory is recommended, or a machine with plenty of system memory as an alternative. Players can check the Ollama server by sending a chat message after joining a world. The mod is open source under the GNU General Public License v3.0 or later, and it works in singleplayer only, since multiplayer is not officially supported yet.
Somnium is published for Forge only, with files for 1.20.1 – 1.20.6 and the latest file, 0.0.2, built for 1.20.6. It is listed in the Magic category, with Equipment and Game mechanics as secondary categories. A server running it needs every connecting player to have it too. Source code and an issue tracker are linked from the project.
Key features
Goat horn rituals
A goat horn initiates a ritual when it is used at the right place, and the ritual takes effect from the actions performed there.
Generated mechanics
Ritual effects are produced at runtime by the language model chain rather than defined ahead of time in the mod.
Four-model chain
Four language models are classified by role, with a descriptor, a filter and a context generation model feeding the outcome.
Runtime code execution
After the code generator finishes, the generated code is run on the server to apply the ritual's result.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Questions
Does Somnium need a strong graphics card?
Does Somnium work on multiplayer servers?
How is the language model setup checked?
In the catalog
Somnium is one of 7,216 Magic mods on ModsFinder, and one of 3,927 Magic mods for Forge. 11,154 mods support Minecraft 1.20.6.
Similar mods
What the author says
Somnium is a magic focused Minecraft mod in which game mechanics and code logic is generated dynamically at runtime. This is performed by using a chain of agents framework (a series of sequential LLMs) where its input and output is constrained by a preexisting application interface. Disclaimer: Even if items have a…
Official listing
- Modrinth page
- modrinth.com/mod/somnium
- Owner
- BananaFructa
- Published
- 2025-11-22
- Updated on Modrinth
- 2025-11-22
- Facts verified
- 2026-10-15
