aarontwf / BattleNight-Core

The main CraftBukkit plugin.
http://dev.bukkit.org/bukkit-plugins/battlenight/
5 stars 5 forks source link

Leather Armour #105

Closed SpecialN closed 11 years ago

SpecialN commented 11 years ago

Is there a way to add colours to armour. If so, how?

aarontwf commented 11 years ago

Yes it is possible with v1.8.0. If you still have a the default classes have a look at the Medic class. Under classes.Medic.armour.helmet in Classes.yml there is a leather helmet with a pink colour. The colour is under the colour tag in RGB format. For any armour you want coloured add this tag with the colour you want it to be.

Hope this helped, if your still a bit stuck just ask and I can post an example.

SpecialN commented 11 years ago

What are the values of the colours? Like which number represents which colour? Thanks for the speedy reply

aarontwf commented 11 years ago

Okay so here 177 is red, 93 is green and 155 is blue. The format is R, G, B

classes:
    Medic:
        armour:
            helmet:
                type: leather_helmet
                enchantments: 0~2
                colour: 177, 93, 155

I'm not sure if your familiar with RGB but for example a solid blue helmet would look like so:

classes:
    Medic:
        armour:
            helmet:
                type: leather_helmet
                enchantments: 0~2
                colour: 0, 0, 225

You can use a tool like this http://www.colorpicker.com/ to pick a colour then just copy the R, G and B values in.