Cod3x

⭐ — (13 endorsements) 📥 56 downloads 📌 v0.3 📅 5/27/2026
🟡 Updated this year

By S3ctorOMW · Gameplay

⬇ Download Mod Source: Nexus Mods ↗ 📅 Updated: 5/29/2026 📅 Created: 5/27/2026
⚠️ Install Order · 2 steps
1🛠️ MWSE — Morrowind Script Extender Download ↗
2🔧 MCP — Morrowind Code Patch Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 🏆 #238 of 348 Gameplay mods in this game by downloads

📋 About This Mod

Context-aware LLS annotations for OpenMW with improved auto-complete and OpenMW specializations.

If you've written OpenMW-Lua before, then you know one of the first problems you'll run into is its documentation. The system OpenMW developers built is quite complex and unorthodox for a Lua API. It's not bad, but it's unusual, and I'd argue it requires highly specialized tooling in order to... actually work.

What's more, OpenMW's official Lua documentation is actually riddled with fundamental inaccuracies it makes no attempt whatsoever to correct. For instance, as a scripter, you might've noticed `:teleport` only works in a GLOBAL script. OpenMW's LDT and Teal docs would never prevent you from making this class of mistake.

Cod3x does that and more.

Installation instructions

Cod3x is not a normal OpenMW mod. You do not enable it in the OpenMW launcher.

Cod3x is a set of Lua Language Server annotations for OpenMW-Lua scripters. It gives your editor better autocomplete, hover docs, and context-aware warnings for openmw.* APIs.

Firstly, you need an editor that supports Lua Language Server. This is essentially all of them. For VSCode and forks, install the Lua plugin by Sumneko.

Download Cod3x manually from Nexus and extract it somewhere stable.

For example:

C:/Modding/Tools/Cod3x/

or on Linux:

/home/you/Modding/Tools/Cod3x/

The folder should contain files like:

openmw.lua

omw_context_plugin.lua

.luarc.json

Then, copy the .luarc.json from `examples` into your the root folder of your mod, open the .luarc.json in your favorite text editor, and replace both /absolute/path/to/Cod3x/ instances with the actual location you extracted Cod3x to.

Why?

Cod3x is not just "the OpenMW annotations converted to LuaLS." Those already exist. Cod3x is a curated, LuaLS-native annotation pack plus a real LuaLS plugin built specifically for OpenMW-Lua scripting.

The official OpenMW docs and LDT annotations are valuable references, and the community LLS conversions helped prove there was demand for this. Cod3x goes further: it fixes inherited type-correctness issues, adds context awareness, and gives LuaLS active plugin logic instead of only static stubs.

Context-aware OpenMW diagnostics

OpenMW Lua scripts do not all run in the same world. A global script, player script, local object script, menu script, and load script have different API access. Cod3x lets you declare that context directly in the file:

---@omw-context

📊 Mod Details

Game
Morrowind Mods
Author
S3ctorOMW
Version
0.3
Downloads
56
Endorsements
13
Category
Gameplay
Created
5/27/2026
Updated
5/29/2026

🔧 How to Install Morrowind Mods

Download from Nexus.

📖 Full step-by-step install guide for Morrowind →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Morrowind commands, item IDs, and more.

Keep browsing — more Morrowind mods await

📋 All Morrowind Mods 🏆 Top 25 📂 More Gameplay 👤 More by S3ctorOMW 🔎 Similar Mods 🌐 Best Gameplay (All Games) ⚠️ Fix Crashes & Errors 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods