Creating a Dyeable Item

Step 1: Toggling Tint Per Face

To get started with making a model dyeable, we need to enable the tinting of each face on the cubes that we want to be colored. The fastest way we can do this is by popping our model into blockbench.

Once your model is open in blockbench, click on a face of your model and right click on the selection in the UV box on the left side of your screen. In this menu we will have an option for tint, and ticking the checkbox will allow that face to be colored in-game. Repeat this process for each face that you want to be colored.

If you'd like to be able to preview the tint color in blockbench, you can download a plugin called "Tint Preview". To do this go to File > Plugins and then search for "Tint Preview" under the available tab. Once installed, enable it under the "tools" tab.

Note: Make sure when making dyeable models that the areas you want colored are very light shades of white. Any color tint is going to cover the base model's color, so if you're using anything other than white, chances are you'll get a very unpleasant result.

Step 2: Creating a predicate

Now that your model has tint enabled, we need to create a predicate on a tintable item. If the model is not assigned to a tintable item, it won't wint. There's only a select few dyeable items that we can use and the most common are leather horse armor, and potions. For this tutorial we will use leather horse armor.

Same steps as usual for creating a custom item as in the custom item tutorial.

{
     "parent":"item/generated",
     "textures":{
          "layer0":"item/leather_horse_armor"
     },
     "overrides":[{
          "predicate":{
               "custom_model_data": 1 }, "model":"custom/cushion_chair"
          }]
}

Step 3: Result

You've enabled tinting and added your item. Now it's time to test it out in game. If you give the item normally, it won't have any tint and will be base white. It can be tinted through dyes in the crafting table or via commands.

/give @p leather_horse_armor{CustomModelData:1} 1

/give @p leather_horse_armor{CustomModelData:1,display:{color:15597568}} 1

Copyright MCModels ©2023.

We use cookies and similar technologies to ensure you get the best experience on our website.