Punch it so it moves away from the bedrock, dig under where it lands by 2 blocks, place a torch, and dig the block under the egg. It acts like a falling entity like sand and gravel and will break when it hits the torch.
You go into profile settings and enable the proper versions (either snapshots for snapshots, beta for beta, or alpha for alpha), then select the version you want from the menu and save the profile settings. Now you can run the version you selected.
How can you obtain sponge in survival without killing Elder Guardians?