Cuberite Forum

Full Version: Dyed Leather armor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can I create a cItem object that contains a dyed piece of leather armor?
I believe that isn't implemented yet I'm afraid.
(10-20-2016, 10:42 PM)NiLSPACE Wrote: [ -> ]I believe that isn't implemented yet I'm afraid.

But you can use and craft it with a crafting table Sad
In cItem is a variable named m_ItemColor and it points to a class named cColor. This class and it's methods are not exported to lua. Maybe if it's exported, then it would be possible to get / set the color.
Oh, I didn't notice that. You're probably right, once we export cColor and m_ItemColor you can probably change it with a plugin.