# Colored models

{% hint style="info" %}

#### Why?

To make a colored element or a colored vehicle you don't have to make a separate model for each item with a different color.

For example a custom colored furniture.
{% endhint %}

## How can I do this?

### 1. open your model with Blockbench

![](https://2228257718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faipc4QQKwVS0w1Q604ya%2Fuploads%2Fgit-blob-c87520bc78b14b5ddddc17ba02a3ddae0fc7da65%2Fimage_\(79\).png?alt=media)

### 2. select the face you want to be colored

![](https://2228257718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faipc4QQKwVS0w1Q604ya%2Fuploads%2Fgit-blob-0dd30ffcd56bfb7834c0d2336d13eed3f370ee11%2Fimage_\(80\).png?alt=media)

### 3. use a white/gray texture, for better coloring

### 4. enable the hidden "Tint" feature

![](https://2228257718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faipc4QQKwVS0w1Q604ya%2Fuploads%2Fgit-blob-698a54136acedc60b69d072f6544c2512607552e%2Fimage_\(81\).png?alt=media)

![](https://2228257718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faipc4QQKwVS0w1Q604ya%2Fuploads%2Fgit-blob-818587988101259874f7dfb68159203395725eea%2Fimage_\(83\).png?alt=media)

### 5. enable the coloring for each face you want to be colored

![](https://2228257718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faipc4QQKwVS0w1Q604ya%2Fuploads%2Fgit-blob-cc64b01bfd9b10ed539c62693253c1fee5cc33cc%2Fimage_\(85\).png?alt=media)

### 6. set the specific color attribute in your .yml file.

In this example I used `leather_horse_armor` but you can also use `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
```

#### Getting colors

* **Decimal** colors using [this tool](https://www.mathsisfun.com/hexadecimal-decimal-colors.html)
* Colors from this list
  * `WHITE`
  * `SILVER`
  * `GRAY`
  * `BLACK`
  * `RED`
  * `MAROON`
  * `YELLOW`
  * `OLIVE`
  * `LIME`
  * `GREEN`
  * `AQUA`
  * `TEAL`
  * `BLUE`
  * `NAVY`
  * `FUCHSIA`
  * `PURPLE`
  * `ORANGE`

### 7. now you can create as many as furnitures you want, just change the color and it will be automatically colored by the game

![](https://2228257718-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Faipc4QQKwVS0w1Q604ya%2Fuploads%2Fgit-blob-261461e6b35b2d5cffdd7636d15071cae260d2d4%2Fimage_\(86\).png?alt=media)
