Hello! Have you heard of my blocks? They are custom blocks you can make so you don't have to repeat lengthy code. I made some my-blocks that you might find helpful. Click see inside and back-pack the my-blocks that have a string of code underneath them. Then, add the code to your projects. Scroll down to the My-block section and you should see the My-Blocks there!
Please Credit me (@Arizona126) if you use these blocks.