You can create a custom block with inputs, for example:

Click "Make a Block" to see this dialog box:

Click Options to add inputs. For example, add a number input:

In the define block, inputs 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: Make a Block