#Dyeable Custom Armour
1 messages · Page 1 of 1 (latest)
Your item needs the "dyed" parameter in the "minecraft:icon" component, also it must need the "minecraft:dyeable" component to work.
Thaks mate, but will this also automaticaly have the couldron dyeing function?
Managed to make just the item to work, what do I need to do for it show in when wearing the armour?
Oh, well yeah still thanks again))
you will need a render controller for it
so, in the attachables, add another material called "dyed" and set the value to "entity_alphatest_change_color"
also, place another texture called "dyed" and a name.
oh wait, sorry, wrong explanation
I tried it and doesn't seem to work, or is my code wrong?
it needs a render controller
What render controller though? Like the leather armour's?
What should I put in the render controller?
I don't seem to understand what part will I have molang in, I'm not familiar with it, I searched it up but I don't know where in the render controller I will put it
Like this? I checked the internet
"format_version": "1.8.0",
"render_controllers": {
"controller.render.armor.chest.v1.0": {
"arrays": {
"materials": {
"array.armor_material": [
"material.armor",
"material.armor_enchanted",
"material.armor_leather",
"material.armor_leather_enchanted"
]
},
"textures": {
"array.armor_texture": [
"texture.leather",
"texture.chain",
"texture.iron",
"texture.diamond",
"texture.gold"
]
}
},
"geometry": "geometry.armor",
"materials" : [
{ "body": "array.armor_material[query.armor_material_slot(1)]" },
{ "leftarm": "array.armor_material[query.armor_material_slot(1)]" },
{ "rightarm": "array.armor_material[query.armor_material_slot(1)]" }
],
"part_visibility" : [
{ "*": 0 },
{ "body": "query.has_armor_slot(1)" },
{ "leftarm": "query.has_armor_slot(1)" },
{ "rightarm": "query.has_armor_slot(1)" }
],
"color": {
"r": "query.armor_color_slot(1, 0)",
"g": "query.armor_color_slot(1, 1)",
"b": "query.armor_color_slot(1, 2)",
"a": "query.armor_color_slot(1, 3)"
},
"textures": ["array.armor_texture[query.armor_texture_slot(1)]", "texture.enchanted"]
}
}
sorry, i dont have any expert knowledge about render controllers
you could try asking at the resource pack forrum
Ok, but anyways still thanks, atleast I got it items to work.
the model texture has to be similar to the ones that sheep has, it needs to be a .tga file format
it's how dyeable textures change their color
the non-transparent parts are the ones that will be colored, while the almost transparent parts are the parts that doesn't change color (it must be almost-transparent, making it fully transparent will make the texture empty)
I know, its that the armour isn't being coloured despite that it is not transparent.