> For the complete documentation index, see [llms.txt](https://xiaomomi.gitbook.io/ecoenchants/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xiaomomi.gitbook.io/ecoenchants/pei-zhi/ji-chu-pei-zhi.md).

# 基础配置

## 配置布局

每个附魔都有自己的配置文件。它们储存在`/enchants/<type>/<permissionname>.yml`中。例如，脆弱诅咒会被储存在`/enchants/curse/fragilitycurse.yml`&#x20;

其他配置文件是`lang.yml`（存储着消息、原版附魔、颜色）`config.yml`（包含核心配置\[稀有度，附魔台，铁砧，战利品箱，显示等]）

## 编辑稀有度

附魔台概率（Table probability）是从附魔台中获得附魔的几率，以百分比表示，最低等级（Minimum Level）是你获得附魔所必须的最低经验等级，村民概率（Villager probability）是村民进行这项交易的几率，以百分比表示。所有附魔的原版默认值是2.7%，但是你可以让它们更加稀有。战利品箱概率（Loot probability）是战利品箱中某个物品拥有这个附魔的几率。

你可以按照这个格式添加更多稀有度。

稀有度不会显示给玩家，你可以随心所欲地设置稀有度。它们只用于插件内部，例如设置一个附魔的稀有度。

```
common:
  table-probability: 30
  minimum-level: 1
  villager-probability: 10.5
  loot-probability: 12
uncommon:
  table-probability: 20
  minimum-level: 5
  villager-probability: 9
  loot-probability: 16
rare:
  table-probability: 20
  minimum-level: 15
  villager-probability: 7.5
  loot-probability: 18
epic:
  table-probability: 10
  minimum-level: 16
  villager-probability: 6
  loot-probability: 20
legendary:
  table-probability: 8
  minimum-level: 20
  villager-probability: 4.5
  loot-probability: 15
special:
  table-probability: 2
  minimum-level: 30
  villager-probability: 3
  loot-probability: 5
veryspecial:
  table-probability: 1
  minimum-level: 30
  villager-probability: 1.5
  loot-probability: 2
```

## 在lang.yml中使用颜色

颜色用&{code}表示，例如\&a。还支持其他格式，例如粗体、下划线等。

目前不支持1.16 RGB颜色。


---

# 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://xiaomomi.gitbook.io/ecoenchants/pei-zhi/ji-chu-pei-zhi.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.
