Cuberite Forum
Dyed Leather armor - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Dyed Leather armor (/thread-2563.html)



Dyed Leather armor - TTex_ - 10-20-2016

How can I create a cItem object that contains a dyed piece of leather armor?


RE: Dyed Leather armor - NiLSPACE - 10-20-2016

I believe that isn't implemented yet I'm afraid.


RE: Dyed Leather armor - TTex_ - 10-20-2016

(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


RE: Dyed Leather armor - Seadragon91 - 10-20-2016

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.


RE: Dyed Leather armor - NiLSPACE - 10-20-2016

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.