To create a global block with JS, you need to know:
- the category (string)
- the block spec (string)
- is it global? (boolean)
- type (string / command, reporter, or predicate)
- input declarations (JS map object / kind of complicated / defaults, types, options, etc for each input)
Here
Just put the lambda/ring inside the "definition" parameter.