This is a demo for my students on how to make and use a custom block. Click the green flag to start. See how the Jump block is defined and how it is called when the program starts running, and later called AGAIN, after the duck appears and disappears. The point of using the Jump block is that it can be called more than once in the program, so you don't have to write the same code again when you want the frog to jump again.
Based on the Scratch Ed team's video: https://www.youtube.com/watch?v=-q5vYECkNek