In project. You may want to put spaces before and after inputs. This was inspired by the sparks block creator. It has almost all of that functionality, but is modernized for the next version of scratch and supports hat blocks.
Credit to @Laternenpfal