Is it possible to give a player a colored leather armor? I found many old threads but i think nothing works... Please help me
There is currently no way to do it in pocketmine,but you can try using code from here https://github.com/iTXTech/Genisys/blob/master/src/pocketmine/item/Armor.php#L83
PHP: $item = Item::get($item);$tempTag = new CompoundTag("", []);$tempTag->customColor = new IntTag("customColor", $colorCode);$item->setCompoundTag($tempTag);$player->getInventory()->setHelmet($item);#Or$player->getInventory()->setChestplate($item);#etc..
More precisely, the resultant numeric value of the hexadecimal code. For instance, "ABCDEF" is the hexadecimal code; 0xABCDEF is the numeric value of it
https://www.jetbrains.com/help/phpstorm/2016.2/color-picker.html (Sorry, but I personally have a bad impression in w3schools. Not only me, but the below) http://meta.stackoverflow.com/a/328898 http://meta.stackoverflow.com/q/280478 My personal taste that hates things full of ads, unofficial and getting higher position than the official one in Google Search (imagine one day Genisys get higher than www.pocketmine.net in Google Search for "PocketMine")
Everyone has his decision, we3schools helped me out the most times when I searched for the right HTML tag and the usage, they are for me like the HTML docs, compared to PHP with php.net. ^^