# EcoX 实体语法学习

## 基础语法格式

### 原版实体

你只需要填写这个原版实体的 ID 即可。例如 `husk` 代表原版里的 **尸壳**。

### 第三方插件实体

使用 `namespace:id` 的格式，以 **EcoBosses** 为例，如 `ecobosses:tarantula`。

## 修饰符

位于基础语法格式的后面，用于补充实体的相关信息。我们可以将添加的信息称之为修饰符，各个修饰符之间用空格隔开，修饰符可以在上述所有基础语法格式后使用。有如下几种的修饰符：

### adult

使得实体一定是成年体。

### attack-damage

设置实体的攻击伤害。

### attack-speed

设置实体的攻击速度。

### baby

使得实体一定是幼年体。

### charged

使得苦力否立即爆炸。

### explosion-radius

设置苦力怕的爆炸范围。

### fly-speed

设置实体的飞行速度。

### follow-range

设置实体的跟随距离。

### health

设置实体的血量。

### jump-strength

设置马的跳跃强度。

### knockback

设置实体的攻击击退距离。

### knockback-resistance

设置实体的击退抗性。

### name

设置实体的显示名称。可以用 `" "` 符号包囊。

### no-ai

使得实体没有 AI。

### size

设置史莱姆或幻翼的大小。

### spawn-reinforcements

设置僵尸的召集距离。一个僵尸受到伤害后，它会召集范围内的僵尸到这里。

### speed

设置实体的速度。

### silent

设置实体不会产生声音。

### head、chest、legs、feet、hand、off\_hand

设置实体的头盔、胸甲、护腿、靴子、主手、副手的物品。

{% hint style="info" %}
说一下下面的实体语法是什么意思？

phantom size:5 follow-range:25 speed:2 health:200 name:"&4死亡幻翼"
{% endhint %}


---

# 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/ecox-doc/yi-ban-pei-zhi-ge-shi/ecox-shi-ti-yu-fa-xue-xi.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.
