> For the complete documentation index, see [llms.txt](https://worldboxopenmods.gitbook.io/mod-tutorial-en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://worldboxopenmods.gitbook.io/mod-tutorial-en/packed/basicmod.md).

# Basic Mod

Basic Mod is exactly class `BasicMod`. If you want these features, you should make your mod main class inherit from `BasicMod` instead of `MonoBehaviour` and `IMod`.

## Mod Loading

`BasicMod` is different with `IMod` in modder's layer. BasicMod implements `OnLoad` in IMod, and call `OnModLoad` to initialize mod. You should implement OnModLoad in BasicMod instead of OnLoad.

## Multilingual

`BasicMod` loads files under folder `Locales` automatically. `cz.json` is Simplified Chinese, `en.json` is English, `ch.json` is Tranditional Chinese.

The following is an example of localization for Simplified Chinese in JSON format.

```jsonc
// cz.json
{
    "Humans": "人类",
    "Orcs": "兽人"
}
```

Except of `.json` file, you can also use `.csv` to make localization.

The following is an example `lang.csv`

```csv
key,cz,en,ch
Humans,人类,Humans,人類
Orcs,兽人,Orcs,獸人
```

File name for `.csv` is not important.

## Mod Configuration

`BasicMod` provides default mod configuration file(`default_config.json` under mod's folder) and consistent user's mod configuration.

You can write `default_config.json` refer to [Mod Configuration](/mod-tutorial-en/basic-concepts/modconfiguration.md)

### Default mod configuration file

It provides format of mod configuration and default values for them.

#### When add/remove configuration item(excluding modifying default value)

Consistent user's mod configuration will add/remove corresponding items with new default values.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://worldboxopenmods.gitbook.io/mod-tutorial-en/packed/basicmod.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
