Look at the code for the spawn eggs. https://github.com/PocketMine/Pocke...11343/src/pocketmine/item/SpawnEgg.php#L43-77