With Egg Catcher Command Block you can catch a mob by throwing an egg at it. Upon doing so the mob will explode and turn into its type of spawn egg.
Command Block Showcases:
How to install Egg Catcher Command Block:
- To add any one-command creation to your world, first give yourself a command block with /give @p minecraft:command_block.
- Next, place it and paste the following command inside it.