# 关于mod.json文件

The mod.json is responsible for governing when, and where your mod is loaded, and follows a layout that is fairly complicated at first glance, but ultimately simple

```json
{
	"Name" : "SimpleRandomiser",
	"Description" : "SimpleRandomiser",
	"Version": "0.1.0",
	"LoadPriority": 1,
```

The script above defines the pubic and listed details of the mod

```json
	"Scripts": [
		{
			"Path": "sh_SimpleRandomiser.gnut",
			"RunOn": "MP",
			"ClientCallback": {
				"After": "simplerandomiser_init"
			},

			"ServerCallback": {
				"After": "simplerandomiser_init"
			}
		}
	],
```

The scirpt above defines both what functions to run, when to run them and WHERE to run them, in this case it runs your simplerandomiser\_init, when on multiplayer and for both the server and the client

```json
	"Localisation": [
		"resource/simplerandomiser_localisation_%language%.txt"
	]
}
```

this defines the path to the language file

name this file mod.json, and it should go in the mods root folder


---

# Agent Instructions: 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://r2northstar.gitbook.io/r2northstar-wiki/chinese/modding-and-development/getting-started/what-is-squirrel/settingmodsintro/the-json.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.
