To switch to the component's folder and then npm install The command will take some time to complete.Īfter the command completes, run cd scratch-* This will clone (download) the source code for the that component into into a new folder with the same name. To the end of the cloning command since the Git history contains large files. When cloning scratch-gui, it is recommended to add -depth=1 Replacing the asterisk with the component's name, for example, scratch-gui. Open a terminal from your mod's folder, run the command git clone *.git Before making any changes, the source code for at least Scratch GUI will need to be downloaded its dependencies will need to be installed. Most mods will only require modifications to Scratch GUI, Scratch Blocks, and Scratch VM.Ĭreate a new folder for your mod. For example, your mod may look like this: Every part is a different repository on GitHub.Īs you add functionality to your mod, your mod's folder will contain a sub-folder for each component. Scratch 3.0 is designed in a modular way. How Scratch 3.0 is organized Main article: Scratch Source Code#Scratch 3.0 Īdditionally you should have some knowledge of the following: Windows Subsystem for Linux (optional): If using Windows, running the commands in a Linux environment will help prevent errors.Although there is an online compiler, it can cause problems. Java Compiler (optional): Scratch Blocks requires Java to build.Scratch Blocks is incompatible with Python 3.x. Python 2 (optional): If your mod adds new blocks, you'll need Python 2. Code Editor (optional): Although a Scratch 3.0 mod could be made in a text editor like Notepad, it's easier with a code editor, such as Visual Studio Code or Atom.NodeJS: NodeJS is a tool for running JavaScript code in the command line, and includes a package manager, NPM.Git: Git allows you to clone (download) the Scratch 3.0 source code and then, if you want, upload it to a repository that you can share with others.Before modding Scratch 3.0, you must have the following installed on your computer:
0 Comments
Leave a Reply. |