Defines what the custom block will do

The define script tells a custom block what to do:

If your block has inputs, they will appear as rounded, light purple blocks. To use them, drag copies of the input blocks into other blocks within the define script.

Note: The input blocks can only be used in the define script.
See also: Using Custom Blocks