Does anyone have an idea how to change a player's head to that of another player, not the rest of the skin? So: I want player1 to get his skin modified so that he has his own again, only the head part is the head of player2. It would have to be possible to modify only parts of one skin and replace them with another...
Take a look at the Human class (which is inherited by the Player class), getSkin() and setSkin() methods. As you may know, that means you can use Player->getSkin() and Player->setSkin(). To answer your question: I don't know, I never tried something like that.
I don't know what kind of string the Player->getSkin() method returns neither. Did you look at the Player class?: https://github.com/pmmp/PocketMine-...04009fbfdfe4a6359e4/src/pocketmine/Player.php
Code: $player->getSkin(); // Returns pocketmine\entity\Skin And I think you can mess around with the skin geometry.