Discuss Scratch

BigNate469
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

They should update the links so that they're not redirecting from the LLK pages anymore, and instead directly using the scratchfoundation links…
CodeOfBlaze
Scratcher
13 posts

Guide to Modding Scratch 3.0

Hi
MasonYayYay
Scratcher
39 posts

Guide to Modding Scratch 3.0

What if i just want to make dfalt scratch with less rolls for more creativity
HeHem my chat room giting band ):
gem1001
Scratcher
100+ posts

Guide to Modding Scratch 3.0

JGames101 wrote:

If your new blog appears red and without text in the GUI, and you have added it in the scratch-blocks folder and built scratch-blocks, try following the Build steps below. That has always fixed this issue for me, although the cause is unknown. When I find the actual cause and the solution, this post will be updated.
Look's like there's a little typo here…
gem1001
Scratcher
100+ posts

Guide to Modding Scratch 3.0

My browser / operating system: Windows NT 10.0, Chrome 129.0.0.0, Flash 32.0 (release 0)
Running
npm install
from the
scratch-blocks
folder gives this error:
Could not find "java" in your PATH.
Using remote compiler: closure-compiler.appspot.com ...

Error: Closure not found. Read this:
developers.google.com/blockly/guides/modify/web/closure
npm error code 1
npm error path E:\thing\scratch-blocks
npm error command failed
npm error command C:\windows\system32\cmd.exe /d /s /c python build.py && webpack
npm error A complete log of this run can be found in: C:\Users\[user]\AppData\Local\npm-cache\_logs\2024-10-03T09_00_29_238Z-debug-0.log
even after trying what the Wiki said.

Last edited by gem1001 (Oct. 3, 2024 09:07:43)

Mrcomputer1
Scratcher
500+ posts

Guide to Modding Scratch 3.0

gem1001 wrote:

My browser / operating system: Windows NT 10.0, Chrome 129.0.0.0, Flash 32.0 (release 0)
Running
npm install
from the
scratch-blocks
folder gives this error:
Could not find "java" in your PATH.
Using remote compiler: closure-compiler.appspot.com ...

Error: Closure not found. Read this:
developers.google.com/blockly/guides/modify/web/closure
npm error code 1
npm error path E:\thing\scratch-blocks
npm error command failed
npm error command C:\windows\system32\cmd.exe /d /s /c python build.py && webpack
npm error A complete log of this run can be found in: C:\Users\[user]\AppData\Local\npm-cache\_logs\2024-10-03T09_00_29_238Z-debug-0.log
even after trying what the Wiki said.
One of the dependencies of scratch-blocks/Blockly uses Java, so you need Java installed.
gem1001
Scratcher
100+ posts

Guide to Modding Scratch 3.0

Mrcomputer1 wrote:

gem1001 wrote:

My browser / operating system: Windows NT 10.0, Chrome 129.0.0.0, Flash 32.0 (release 0)
Running
npm install
from the
scratch-blocks
folder gives this error:
Could not find "java" in your PATH.
Using remote compiler: closure-compiler.appspot.com ...

Error: Closure not found. Read this:
developers.google.com/blockly/guides/modify/web/closure
npm error code 1
npm error path E:\thing\scratch-blocks
npm error command failed
npm error command C:\windows\system32\cmd.exe /d /s /c python build.py && webpack
npm error A complete log of this run can be found in: C:\Users\[user]\AppData\Local\npm-cache\_logs\2024-10-03T09_00_29_238Z-debug-0.log
even after trying what the Wiki said.
One of the dependencies of scratch-blocks/Blockly uses Java, so you need Java installed.
Now it's saying:
npm error code 2
npm error path E:\thing\scratch-blocks
npm error command failed
npm error command C:\windows\system32\cmd.exe /d /s /c python build.py && webpack
npm error A complete log of this run can be found in: C:\Users\[USER]\AppData\Local\npm-cache\_logs\2024-10-04T06_23_15_501Z-debug-0.log

Last edited by gem1001 (Oct. 4, 2024 06:28:03)

Mrcomputer1
Scratcher
500+ posts

Guide to Modding Scratch 3.0

gem1001 wrote:

Mrcomputer1 wrote:

gem1001 wrote:

-snip-
One of the dependencies of scratch-blocks/Blockly uses Java, so you need Java installed.
Now it's saying:
npm error code 2
npm error path E:\thing\scratch-blocks
npm error command failed
npm error command C:\windows\system32\cmd.exe /d /s /c python build.py && webpack
npm error A complete log of this run can be found in: C:\Users\[USER]\AppData\Local\npm-cache\_logs\2024-10-04T06_23_15_501Z-debug-0.log
Does it say anything else, or just that? Because, it seems to only say it failed and doesn't have an explanation for why it failed.
gem1001
Scratcher
100+ posts

Guide to Modding Scratch 3.0

Mrcomputer1 wrote:

gem1001 wrote:

Mrcomputer1 wrote:

gem1001 wrote:

-snip-
One of the dependencies of scratch-blocks/Blockly uses Java, so you need Java installed.
Now it's saying:
npm error code 2
npm error path E:\thing\scratch-blocks
npm error command failed
npm error command C:\windows\system32\cmd.exe /d /s /c python build.py && webpack
npm error A complete log of this run can be found in: C:\Users\[USER]\AppData\Local\npm-cache\_logs\2024-10-04T06_23_15_501Z-debug-0.log
Does it say anything else, or just that? Because, it seems to only say it failed and doesn't have an explanation for why it failed.
It also said
    ERROR in ./shim/blockly_compressed_horizontal.js
Module not found: Error: Can't resolve '../blockly_compressed_horizontal' in 'E:\thing\scratch-blocks\shim'
@ ./shim/blockly_compressed_horizontal.js 1:17-116
@ ./shim/blockly_compressed_horizontal.goog.js
@ ./node_modules/imports-loader?Blockly=../shim/blocks_compressed_horizontal-blockly_compressed_horizontal-messages,goog=../shim/blockly_compressed_horizontal.goog!./node_modules/exports-loader?Blockly!./msg/scratch_msgs.js
@ ./shim/horizontal.js

ERROR in ./shim/blockly_compressed_vertical.js
Module not found: Error: Can't resolve '../blockly_compressed_vertical' in 'E:\thing\scratch-blocks\shim'
@ ./shim/blockly_compressed_vertical.js 1:17-114
@ ./shim/blockly_compressed_vertical.goog.js
@ ./node_modules/imports-loader?Blockly=../shim/blocks_compressed_vertical-blockly_compressed_vertical-messages,goog=../shim/blockly_compressed_vertical.goog!./node_modules/exports-loader?Blockly!./msg/scratch_msgs.js
@ ./shim/vertical.js
and
The command line is too long.
UNKNOWN ERROR
The command line is too long.
UNKNOWN ERROR
SUCCESS: blockly_uncompressed_vertical.js
SUCCESS: blockly_uncompressed_horizontal.js
SUCCESS: blocks_compressed_horizontal.js
Size changed from 41 KB to 20 KB (50%).
blocks_vertical/vertical_extensions.js:55: WARNING - Misplaced function annotation. This JSDoc is not attached to a function node. Are you missing parentheses?
return function() {
^^^^^^^^^^^^^^^^^^^
Mrcomputer1
Scratcher
500+ posts

Guide to Modding Scratch 3.0

gem1001 wrote:

Mrcomputer1 wrote:

gem1001 wrote:

-snip
Does it say anything else, or just that? Because, it seems to only say it failed and doesn't have an explanation for why it failed.
It also said
    ERROR in ./shim/blockly_compressed_horizontal.js
Module not found: Error: Can't resolve '../blockly_compressed_horizontal' in 'E:\thing\scratch-blocks\shim'
@ ./shim/blockly_compressed_horizontal.js 1:17-116
@ ./shim/blockly_compressed_horizontal.goog.js
@ ./node_modules/imports-loader?Blockly=../shim/blocks_compressed_horizontal-blockly_compressed_horizontal-messages,goog=../shim/blockly_compressed_horizontal.goog!./node_modules/exports-loader?Blockly!./msg/scratch_msgs.js
@ ./shim/horizontal.js

ERROR in ./shim/blockly_compressed_vertical.js
Module not found: Error: Can't resolve '../blockly_compressed_vertical' in 'E:\thing\scratch-blocks\shim'
@ ./shim/blockly_compressed_vertical.js 1:17-114
@ ./shim/blockly_compressed_vertical.goog.js
@ ./node_modules/imports-loader?Blockly=../shim/blocks_compressed_vertical-blockly_compressed_vertical-messages,goog=../shim/blockly_compressed_vertical.goog!./node_modules/exports-loader?Blockly!./msg/scratch_msgs.js
@ ./shim/vertical.js
and
The command line is too long.
UNKNOWN ERROR
The command line is too long.
UNKNOWN ERROR
SUCCESS: blockly_uncompressed_vertical.js
SUCCESS: blockly_uncompressed_horizontal.js
SUCCESS: blocks_compressed_horizontal.js
Size changed from 41 KB to 20 KB (50%).
blocks_vertical/vertical_extensions.js:55: WARNING - Misplaced function annotation. This JSDoc is not attached to a function node. Are you missing parentheses?
return function() {
^^^^^^^^^^^^^^^^^^^

scratch-blocks tries to execute a command through the Windows Command Prompt that is too large for it. A simple fix is to change line 333 of build.py from this:
for group in [[CLOSURE_COMPILER_NPM], dash_args]:
to this:
for group in [["node", "node_modules/google-closure-compiler/cli.js"], dash_args]:
This change makes the command not need to go through the Command Prompt.
gem1001
Scratcher
100+ posts

Guide to Modding Scratch 3.0

Mrcomputer1 wrote:

gem1001 wrote:

snip

scratch-blocks tries to execute a command through the Windows Command Prompt that is too large for it. A simple fix is to change line 333 of build.py from this:
for group in [[CLOSURE_COMPILER_NPM], dash_args]:
to this:
for group in [["node", "node_modules/google-closure-compiler/cli.js"], dash_args]:
This change makes the command not need to go through the Command Prompt.
After running
npm run prepublish
it says
Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Program Files\python273\lib\threading.py", line 551, in __bootstrap_inner
self.run()
File "build.py", line 232, in run
self.gen_core(True)
File "build.py", line 261, in gen_core
[os.path.join("core", "blockly.js")])
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 243, in CalculateDependencies
ResolveDependencies(require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 308, in ResolveDependencies
raise Exception('Missing provider for (%s)' % require)
Exception: Missing provider for (Blockly.Workspace)

Last edited by gem1001 (Oct. 13, 2024 15:14:39)

Mrcomputer1
Scratcher
500+ posts

Guide to Modding Scratch 3.0

gem1001 wrote:

Mrcomputer1 wrote:

snip
After running
npm run prepublish
it says
Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Program Files\python273\lib\threading.py", line 551, in __bootstrap_inner
self.run()
File "build.py", line 232, in run
self.gen_core(True)
File "build.py", line 261, in gen_core
[os.path.join("core", "blockly.js")])
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 243, in CalculateDependencies
ResolveDependencies(require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 308, in ResolveDependencies
raise Exception('Missing provider for (%s)' % require)
Exception: Missing provider for (Blockly.Workspace)
I'm not sure what that error means. Have you been able to make other changes to scratch-blocks or is this another thing that is preventing the base scratch-blocks from working?
realmasterlevi
Scratcher
83 posts

Guide to Modding Scratch 3.0

Landon_And_Emma wrote:

JGames101 wrote:

Things to Know Before Starting
  • JavaScript: Scratch 3 is almost entirely written in JavaScript. You should be familiar with JavaScript to mod Scratch 3.
  • React, HTML, and CSS: Scratch 3 uses the JavaScript library React. If you're interested in modding the UI, you should be familiar with React, HTML, and CSS.
  • NPM or Yarn: Although it's not necessary to understand NPM or Yarn to Mod Scratch 3, as this post shows the commands you need to use, for more advanced mods that aren't explained in this post, understanding NPM or Yarn will be helpful.
Install (If you Haven't Already)
  • Git: Git allows you to clone the Scratch 3 code and then (if you want) upload it to your own repository that you can share with others on Scratch.
  • NodeJS: NodeJS is a tool for running JavaScript code in the command line, and includes a package manager, NPM. NPM will allow you to install dependencies, and open Scratch 3 in a browser.
  • NPM or Yarn: NPM and Yarn are package managers that use the same database of packages. Use whichever you prefer.
  • Code Editor: Although theoretically, you could create a Scratch 3 mod in Notepad, it's much easier with a code editor such as Visual Studio Code, Atom, Notepad++, or the many others available online.
  • Python: Scratch Blocks' build tool uses Python. If your mod adds new blocks, you'll need Python. Scratch Blocks is incompatible with Python 3.x. Use Python 2.x instead.
Get Started
Create a new folder for your mod.

Scratch 3.0 is designed in a modular way.

Image From Scratch-GUI Wiki
Every part is a different repository on GitHub.

As you add more functionality to your mod, your folder you just created will contain each component. For example, your mod may look like this:
scratch_mod
scratch-gui
project.json
src
...
scratch-blocks
project.json
src
...
scratch-vm
project.json
src
...

Here are the components and links to their repositories:
  • Scratch GUI - The GUI for Scratch 3.
  • Scratch Blocks - The Blocks interface for Scratch 3, based on Google's Blockly. This allows you to add or remove blocks.
  • Scratch VM - Running the Scratch 3 project. This allows you to add or change functions of any blocks.
  • Scratch Render - Renders the Scratch 3 project in WebGL.
  • Scratch Paint - The Vector Editor for Scratch 3.
  • Scratch Audio - The Audio Engine for making noise in Scratch 3.
  • Scratch Storage - Loading and Storing projects and assets in Scratch 3.
  • Scratch SVG Renderer - Handles “quirks” of Scratch 2 SVGs.
Most mods will only require modifications to Scratch GUI, Scratch Blocks, and Scratch VM.

Scratch GUI
From your new folder, run the command
git clone https://github.com/llk/scratch-gui
cd scratch-gui
Install all the dependencies using
npm install
or
yarn install
To open the GUI in a browser, run
npm start
or
yarn start
And open localhost:8601 in your browser.

Scratch Blocks
From the folder you created at the start of this post (NOT scratch-gui, but its parent folder), run
git clone https://github.com/llk/scratch-blocks
cd scratch-blocks
Inside scratch-blocks, run
npm install
or
yarn install
Link it to your GUI so that your changes to scratch-blocks are reflected in the GUI by running the command
npm link
or
yarn link
And then, from the scratch-gui folder, run
npm link scratch-blocks
or
yarn link scratch-blocks
This removes the original scratch-blocks dependency inside scratch-gui and replaces it with a reference to your scratch-blocks folder.
To add or change a block, open the blocks_vertical folder.
Open the file for the type of block you want to add or change (for example, motion.js)
A block looks like this:
Blockly.Blocks['motion_movesteps'] = {
  /**
   * Block to move steps.
   * @this Blockly.Block
   */
  init: function() {
    this.jsonInit({
      "message0": Blockly.Msg.MOTION_MOVESTEPS,
      "args0": [
        {
          "type": "input_value",
          "name": "STEPS"
        }
      ],
      "category": Blockly.Categories.motion,
      "extensions": ["colours_motion", "shape_statement"]
    });
  }
};
If you're adding a new block, open msg/messages.js and add a label for the block with the same name you used in the block. For example, here's a move 100 steps block:
// motion.js
Blockly.Blocks['motion_move100steps'] = {
  /**
   * Block to move 100 steps.
   * @this Blockly.Block
   */
  init: function() {
    this.jsonInit({
      "message0": Blockly.Msg.MOTION_MOVE100STEPS,
      "category": Blockly.Categories.motion,
      "extensions": ["colours_motion", "shape_statement"]
    });
  }
};
And in msg/messages.js:
Blockly.Msg.MOTION_MOVE100STEPS = 'move 100 steps';
// Place the block with other blocks from the category!
To add the block to the GUI, or change its location or default values, open scratch-gui/src/make-toolbox-xml.js and add the block somewhere in the tree. Example:
<!-- Move 100 Steps Block -->
<block type="motion_move100steps" />
<!-- Move X Steps Block -->
<block type="motion_movesteps">
  <value name="STEPS">
    <shadow type="math_number">
      <field name="NUM">2</field>
    </shadow>
  </value>
</block>
Once you've changed or added a block, build Scratch Blocks by running
npm run prepublish
or
yarn prepublish
If you get an error on this step, it is probably because Scratch Blocks' compiler uses a Python library that does not work on Windows. There are a few solutions:
  • Run the command from a Bash Terminal, such as the one that comes with Git on Windows, or in a Windows Subsystem for Linux environment.
  • Use the online version of the compiler: If Java is not available, the online version of the compiler will be run. You can temporarily deactivate Java without uninstalling it by temporarily removing it from the path.
This issue should not affect Linux or Mac users.

If your new blog appears red and without text in the GUI, and you have added it in the scratch-blocks folder and built scratch-blocks, try following the Build steps below. That has always fixed this issue for me, although the cause is unknown. When I find the actual cause and the solution, this post will be updated.

Scratch VM
From the folder you created at the start of this post (NOT scratch-gui, but its parent folder), run
git clone https://github.com/llk/scratch-vm
cd scratch-vm
inside scratch-vm, run
npm install
or
yarn install
Link it to your GUI so that your changes to scratch-vm are reflected in the GUI by running the command
npm link
or
yarn link
And then, from the scratch-gui folder, run
npm link scratch-vm
or
yarn link scratch-vm
This removes the original scratch-blocks dependency inside scratch-gui and replaces it with a reference to your scratch-blocks folder.
To change the way a block works open the section's file under src/blocks. For example, for a motion block, open src/blocks/scratch3_motion.js.
Find the function for the block you want to change. For example, to change Move Steps, find
moveSteps (args, util) {
  const steps = Cast.toNumber(args.STEPS);
  const radians = MathUtil.degToRad(90 - util.target.direction);
  const dx = steps * Math.cos(radians);
  const dy = steps * Math.sin(radians);
  util.target.setXY(util.target.x + dx, util.target.y + dy);
}
To make a sprite move 100 times the amount of steps you entered, change the function to
moveSteps (args, util) {
  const steps = Cast.toNumber(args.STEPS*100);
  const radians = MathUtil.degToRad(90 - util.target.direction);
  const dx = steps * Math.cos(radians);
  const dy = steps * Math.sin(radians);
  util.target.setXY(util.target.x + dx, util.target.y + dy);
}
If you have scratch-gui open in your browser, refresh the page, and see the sprite move much farther than before!

To add functionality for a new block, open the file for the category the block is in. For example, for a motion block, open src/blocks/scratch3_motion.js. In the function getPrimitives, add an entry for the name you used in Scratch Blocks (for example, motion_move100steps) and map it to a new function. for example, with the motion_move100steps block:
class Scratch3MotionBlocks {
  getPrimitives () {
        return {
            motion_move100steps: this.move100Steps,
           // Other Blocks
        };
    };
    
    // Other Functions
    move100Steps (args, util) {
        const steps = 100;
        const radians = MathUtil.degToRad(90 - util.target.direction);
        const dx = steps * Math.cos(radians);
        const dy = steps * Math.sin(radians);
        util.target.setXY(util.target.x + dx, util.target.y + dy);
    }
}
Refresh Scratch-GUI in your browser and try it out!

Building and Releasing
To build Scratch 3, in your Scratch-GUI folder, run
npm run build
or
yarn build
Then, open the folder build inside Scratch-GUI, and open the index.html file in your browser. You should see your Scratch 3 mod running.
You can upload the contents of build to whatever hosting service you want (GitHub Pages, Firebase Hosting, etc), or your own server, and share your mod on Scratch!
You're telling me Scratch modding exists? But why?
So we can use custom blocks and things that easily allow us to do stuff like: access api’s,
Have easier 3d
Not be restricted to scratches rules (I’m talking to you pen****mod and sn***ide)
To have more cool blocks
And etc.
gem1001
Scratcher
100+ posts

Guide to Modding Scratch 3.0

Mrcomputer1 wrote:

gem1001 wrote:

Mrcomputer1 wrote:

snip
After running
npm run prepublish
it says
Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Program Files\python273\lib\threading.py", line 551, in __bootstrap_inner
self.run()
File "build.py", line 232, in run
self.gen_core(True)
File "build.py", line 261, in gen_core
[os.path.join("core", "blockly.js")])
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 243, in CalculateDependencies
ResolveDependencies(require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 308, in ResolveDependencies
raise Exception('Missing provider for (%s)' % require)
Exception: Missing provider for (Blockly.Workspace)
I'm not sure what that error means. Have you been able to make other changes to scratch-blocks or is this another thing that is preventing the base scratch-blocks from working?
I added an exponent block
8to16
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

gem1001 wrote:

I added an exponent block
does it do anything or is it just like clicking it but no tooltip appears (and if you put it through a say block, it says “undefined”)
gem1001
Scratcher
100+ posts

Guide to Modding Scratch 3.0

8to16 wrote:

gem1001 wrote:

I added an exponent block
does it do anything or is it just like clicking it but no tooltip appears (and if you put it through a say block, it says “undefined”)
Its that I get this error when running
npm run prepublish
:
Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Program Files\python273\lib\threading.py", line 551, in __bootstrap_inner
self.run()
File "build.py", line 232, in run
self.gen_core(True)
File "build.py", line 261, in gen_core
[os.path.join("core", "blockly.js")])
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 243, in CalculateDependencies
ResolveDependencies(require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 308, in ResolveDependencies
raise Exception('Missing provider for (%s)' % require)
Exception: Missing provider for (Blockly.Workspace)
BabyBellaBoor
Scratcher
100+ posts

Guide to Modding Scratch 3.0

gem1001 wrote:

8to16 wrote:

gem1001 wrote:

I added an exponent block
does it do anything or is it just like clicking it but no tooltip appears (and if you put it through a say block, it says “undefined”)
Its that I get this error when running
npm run prepublish
:
Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Program Files\python273\lib\threading.py", line 551, in __bootstrap_inner
self.run()
File "build.py", line 232, in run
self.gen_core(True)
File "build.py", line 261, in gen_core
[os.path.join("core", "blockly.js")])
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 243, in CalculateDependencies
ResolveDependencies(require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 314, in ResolveDependencies
ResolveDependencies(sub_require, search_hash, result_list, seen_list)
File "node_modules\google-closure-library\closure\bin\calcdeps.py", line 308, in ResolveDependencies
raise Exception('Missing provider for (%s)' % require)
Exception: Missing provider for (Blockly.Workspace)
HEY MAN YOU DO REALIZE YOU CAN COMBINE DESTOP AND MOBILE PROJECTS
BigNate469
Scratcher
1000+ posts

Guide to Modding Scratch 3.0

BabyBellaBoor wrote:

HEY MAN YOU DO REALIZE YOU CAN COMBINE DESTOP AND MOBILE PROJECTS
And how is that related?
pacjaxy12345
Scratcher
12 posts

Guide to Modding Scratch 3.0

i will make changes to it like this

Repeat (10) {

} :: #000000

When Flag Clicked Do :: #000000 hat

Forever{

} :: cap #000000

and a changes to the names of the catergoys. this is awesome thanks!
GamerDAC
Scratcher
100+ posts

Guide to Modding Scratch 3.0

(long unnecessary quote removed by moderator - please don't spam)

if you're still alive can u answer this question: do i have to use github or can i just use my terminal?

Last edited by Paddle2See (March 5, 2025 01:05:31)

Powered by DjangoBB