# 彩色模型

{% hint style="info" %}
如果你想制作一个彩色元素（例如自定义彩色家具）或彩色车辆，你不需要为每个不同颜色的物品制作单独的模型。
{% endhint %}

## 我该怎么做？

### 1. 用 Blockbench 打开你的模型

![](/files/-Mbqc-Sp29RGtDIApENR)

### 2. 选择你想要上色的面

![](/files/-MbqcB81WzjaHgwMQtwl)

### 3. 使用白色/灰色纹理，以便更好地上色

### 4. 启用隐藏的“Tint”功能

![](/files/-MbqcPaneKWCTVG1cfW4)

![](/files/-MbqcYKWnE1-Ze9V91b_)

### 5. 为每个你想要上色的面启用上色功能

![](/files/-MbqcjVVrdu19CUmpQ-w)

### 6. 在你的 .yml 文件中设置特定的颜色属性。

在这个例子中，我使用了 `leather_horse_armor`，但你也可以使用 `potion`。

```yaml
  orange_modern_lamp:
    display_name: "Orange Modern Lamp"
    specific_properties:
      leather_horse_armor:
        color: ORANGE
    resource:
      material: LEATHER_HORSE_ARMOR
      generate: false
      model_path: item/template_modern_lamp
```

{% hint style="info" %}
如果你想使用特定颜色，你可以使用[这个颜色选择器](https://www.mathsisfun.com/hexadecimal-decimal-colors.html)。\
复制**十进制**颜色（十六进制）。
{% endhint %}

### 7. 现在你可以创建任意多的家具，只需更改颜色，游戏会自动为其上色

![](/files/-Mbqe1UMhsFeziRpVb4Z)


---

# 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://itemsadder.devs.beer/chinese/cha-jian-shi-yong-fang-fa/adding-content/colored-models.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.
