This is a plugin (block) that you can use for going to x, y, and z. This uses size to change the z position (it also changes the x and y based on the z, which makes the 3D effect).
This is based completely off "3D bouncy ball" by boisvert. Without that project, this would not exist. All I did was turn it into a plugin.