it took me so long to make this command but it is finally finished! tested on 1.12. it might not work. i tried to do it a few times but just gave me an egg called "mystery egg" and did not do anything. enjoy!
Note: Minify the command to avoid issues :)