Does Colored Armor have Item ID's?

Status
This thread has been locked.

Mick

BuiltByBit Owner
Administrator
Feedback score
28
Posts
6,434
Reactions
7,641
Resources
0
Hello,
So with a project that I'm working on, I need countless types of armour to retexture in Cubik. I was wondering if it is possible to have thousands of variants of armour in a texturepack all be different things. (For example, a helmet coloured 0, 0, 255 in RGB would have a white stripe on the helmet, whereas 0, 255, 0 is striped).

(Sorry for making that question super long and confusing, It's hard to explain)
 

jimuskin

Feedback score
0
Posts
34
Reactions
13
Resources
0
Hello,
So with a project that I'm working on, I need countless types of armour to retexture in Cubik. I was wondering if it is possible to have thousands of variants of armour in a texturepack all be different things. (For example, a helmet coloured 0, 0, 255 in RGB would have a white stripe on the helmet, whereas 0, 255, 0 is striped).

(Sorry for making that question super long and confusing, It's hard to explain)

To my knowledge, coloured armour does not have item IDs.
 

Mick

BuiltByBit Owner
Administrator
Feedback score
28
Posts
6,434
Reactions
7,641
Resources
0
To my knowledge, coloured armour does not have item IDs.
I have seen some servers such as Hypixel (I think) have many types of leather armour, quite strange. Thanks anyways

(200 posts! (party))
 

jimuskin

Feedback score
0
Posts
34
Reactions
13
Resources
0
I have seen some servers such as Hypixel (I think) have many types of leather armour, quite strange. Thanks anyways

(200 posts! (party))

You can change the colour of leather armour by doing the following:
Code:
ItemStack item = new ItemStack(Material.MATERIAL, 1);
LeatherArmorMeta im = (LeatherArmorMeta) item.getItemMeta();
im.setColor(Color.COLOR);
item.setItemMeta(im);

But I don't think they physically have IDs (like 300:2) which can be used to refer to them.
 

JustRayz

Feedback score
4
Posts
517
Reactions
119
Resources
0
You can change the colour of leather armour by doing the following:
Code:
ItemStack item = new ItemStack(Material.MATERIAL, 1);
LeatherArmorMeta im = (LeatherArmorMeta) item.getItemMeta();
im.setColor(Color.COLOR);
item.setItemMeta(im);

But I don't think they physically have IDs (like 300:2) which can be used to refer to them.


you're right, I wish they had item ids. But you have to define it in the item meta of the armor to dye it.
 

jimuskin

Feedback score
0
Posts
34
Reactions
13
Resources
0
you're right, I wish they had item ids. But you have to define it in the item meta of the armor to dye it.

Problem with having item ids, is that there would be (256 ^ 3) ids, because you need an id for each possible colour from RGB, which would end up being a mess.
 
Status
This thread has been locked.
Top