> For the complete documentation index, see [llms.txt](https://ruang-feng.gitbook.io/deer-s/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ruang-feng.gitbook.io/deer-s/zheng-wen/mo-gai-xiang-guan/mo-gai-xiang-guan-chang-shi.md).

# 魔改相关常识

### 魔改是什么

这里指的魔改是**狭义**上使用.zs后缀文件进行客户端修改的行为，不指广义上我们所理解的魔改。为什么要这样呢，~~因为这是我写的文章，我认为这样就是这样的~~。

### 魔改常用Mod

* MT（MineTweaker）\[1.7.10及以下版本]
* CrT（CraftTweaker）\[1.7.10及以上版本]
* MoT（ModTweaker）\[1.7.10-1.12.2Mod流行版本通用]：

ModTweaker是CrT或者MT的附属mod，增加大量mod魔改支持。

* CoT（ContentTweaker）\[1.12.2 | 1.10.2 | 1.7.10 | 1.12.1 | 1.12]：

CoT是CrT附属，允许你通过ZenScript创建方块，物品，流体和其他更多内容。

* 为拓展对某一个Mod支持特地制作的Mod：

比如GTTweaker；TFC：Metallum；IC2 Tweaker；Ender Tweaker等等。

* LootTableTweaker\[1.12.2 | 1.11.2 | 1.10.2]：

LootTableTweaker是CrT的一个扩展，它可以让你使用ZenScript来修改MineCraft原版中的战利品表。其主要用途是用来修改生物掉落，以及修改地牢或村庄等建筑中的战利品箱生成的物品。

* MoreTweaker\[1.12.2]：增多对Mod的魔改支持。
* InWorldCrafting\[1.12.2]：让你可以用流体、火和爆炸来合成物品。
* CraftTweaker Utils\[1.12.2]

除此之外其他附属还有很多只是相较于使用率低了一些。（有些常用Mod可能我没有排到，请向我提出）

### 相关文件存放在哪里

位于.minecraft\scripts文件夹下，写的时候需要自己手动新建zs文件。在高版本此文件夹下还可以新建子文件夹，并且也能读取.zip压缩文件。还有一个就是`craft/minetweaker.log`文件位于主文件夹，这个是输出文件，很多MT/CrT命令所输出的数据都输出在这里。

### CrT读取顺序

Crt对脚本的读取顺序是**自上而下**。比如，现在假设你现在写了两个互相冲突的脚本，在加载时不报错的情况下。Crt很有可能忽略下面的而读取上面的脚本。（只是举个栗子，这个情况应该很少）。

还有关于文件顺序的读取时按字母顺序读取。

### CrT基本语法

* 一条完成的语句&#x4EE5;**;**&#x7ED3;尾。
* 括号要互相对应，不能多也不能少。（这个不用我说吧）
* 单行注释用//或者#，区块注释使用/\*xxx\*/。
* zs使用尖括号来封装一些东西，比如矿辞、实体等等，如果希望为空值一般可输入null。但是有些不一样，比如牵涉到方块（比如置放）你想表示空就可以输入空气方块，就是\<block:minecraft:air>。

\[未完待续]


---

# 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://ruang-feng.gitbook.io/deer-s/zheng-wen/mo-gai-xiang-guan/mo-gai-xiang-guan-chang-shi.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.
