I know that it was already asked but I cant take a good solution from the another threads so I'll ask you can someone send a code how I can dye a leather armor in green?
Code by @60FF00 all credits goes to him PHP: public function applyColorToLeatherChestplate(\pocketmine\Player $player, $customColor = 0x0064ff00){ $chestPlate = Item::get(299); $tempTag = new CompoundTag("", []); $tempTag->customColor = new IntTag("customColor", $customColor); $chestPlate->setCompoundTag($tempTag); $player->getInventory()->setChestplate($chestPlate);}