> For the complete documentation index, see [llms.txt](https://ersha.gitbook.io/attributeplus-pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ersha.gitbook.io/attributeplus-pro/kai-fa-wen-dang/attributecomponent/shu-xing-ming-shuo-ming.md).

# AttributeName

## 说明

插件属性名分为两种，一种是 **属性默认名** 另一种是 **服务器属性名**\
\
**属性默认名(**&#x64;efaul&#x74;**):** 属性类注册时内 **attributeName** 参数所设属性名\
**服务器属性名(**&#x73;erve&#x72;**)**: 属性注册后会在 **attribute.yml** 生成对应配置，在配置里面修改的属性名就是 **服务器属性名**

[AttributeComponent](https://ersha.gitbook.io/attributeplus-pro/kai-fa-wen-dang/attributecomponent).getRandomValue(LivingEntity entity, String defaultAttributeName) \
这个方法内的 **defaultAttributeName** 即使属性默认名,因为一个属性类要调获取其他属性的值,需要通过 **属性默认名** 获取而不是使用 **服务器属性名** 获取


---

# 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, and the optional `goal` query parameter:

```
GET https://ersha.gitbook.io/attributeplus-pro/kai-fa-wen-dang/attributecomponent/shu-xing-ming-shuo-ming.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
