# 创建一个自定义属性

## 示例配置

示例配置如下：

```yaml
# 属性的ID就是 .yml 文件的名称
# 例如 saturation.yml 的属性ID就是 saturation
# 你可以将属性的配置文件放置到 stats 文件夹下的任意位置
# 包括放置到子文件夹里面
# _example.yml 文件不会加载

name: "&#f5aa42🍖 饱食" # 显示给玩家的属性名称
placeholder: "%level% / 3" # 属性描述中使用的变量符
placeholders:
  damage: "%level% / 10" # 也支持以这种格式增加多种变量符，在描述中通过 %key% 格式使用它们，例如这里就是 %damage%
  radius: "1.5 + (%level% / 100)"
  angle: "60 + (%level% / 60)"
description: "&8饱食度消耗减少 &a%placeholder%%" # 属性描述

# 属性GUI内的设置
gui:
  enabled: false # 可选，该属性是否在GUI内显示

  position:
    row: 5
    column: 5

  icon: player_head texture:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDMzZGRiOTJjYjZiM2E3OTI4MGI4YmRjZWQ4OTc2YWVhYjEzYTRiZmZlYWVmMmQ0NmQ4MjhiZDkxZGVlMGYzZSJ9fX0=

# 属性的效果
# 使用 %level% 来表示属性等级的变量符
effects:
  - id: hunger_multiplier
    args:
      multiplier: "1 - (%level% / 300)"
      
# 属性效果能够激活的条件
# 你仍可以使用 %level% 变量符
conditions: [ ]
```

## 如何添加属性

所有的属性的配置文件都储存在 `plugins/EcoSkills/stats` 文件夹，你可以在这个文件夹添加或者删除属性的配置文件，同时这里有一个 `_example.yml` 的示例配置文件供你参考。


---

# 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://docs.superiormc.cn/auxilor-plugins/ecoskills/chuang-jian-yi-ge-zi-ding-yi-shu-xing.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.
