Discuss Scratch
- Discussion Forums
 - » Advanced Topics
 - » Guide to Modding Scratch 3.0
        
         
- cauzality
 - 
                            
						
						
                            Scratcher
                        
						
						 
100+ posts
Guide to Modding Scratch 3.0
You're telling me Scratch modding exists? But why?
I wanted to make a mod for making games easy.
I would like to individually address clones and iterate through a list of all clones of a certain sprite. Also, I would like some vector math blocks to make physics easier for younger students of math (ie, move toward or away from something by changing x and y rather than changing directions, also an “orbit” block so you can make circles around something.) Also, I would like to be able to store a sprite or specific clone as a value of a variable so sprites can keep a reference to other objects they may have a special relationship to.
With 2.0, I had added the ability to add “tags” to a sprite or clone and the ability to change the private variables of sprites and clones from another sprite or clone's scripts or from the background's. So you could tell the background to make all objects with tag “feels gravity” fall, and dynamically add or remove that tag from sprites or clones so they would fall or not fall depending on when they have the tag.
Another nice feature would be to have sprite lists so you treat some sprites as weapons and some as obstacles just based on which list they are in - an alternative to the “tag” thing. So some sprites could be in the “menu” list and some in the “world” list - so you could have separate scripts run through each list doing different things.
edit: (and happy belated bday)
Last edited by cauzality (Nov. 11, 2023 16:23:42)
- Dyrle2D
 - 
                            
						
						
                            Scratcher
                        
						
						 
31 posts
Guide to Modding Scratch 3.0
What do I do I run scratch on C++   how am I going to mod if I don't use JavaScript.   I also don't know javaScript
                        
                        
                    - Dyrle2D
 - 
                            
						
						
                            Scratcher
                        
						
						 
31 posts
Guide to Modding Scratch 3.0
I think they should just add a tab that says import files and you have a mod file rather than having to copy scratch code and  go through all of the coding which I have no clue about and don't understand.   That would just make a lot of sense if there was just a tab that said mod here.  and you could  import the correct type of file(s).    
                        
                        
                    - GAMER_BOY-_-
 - 
                            
						
						
                            Scratcher
                        
						
						 
34 posts
Guide to Modding Scratch 3.0
use penguin mod/turbowarp for js. or else it wont work
                        
                            TURBOWARP/PENGIUN
Last edited by GAMER_BOY-_- (Nov. 20, 2023 22:18:48)
- athenacoding1
 - 
                            
						
						
                            Teacher
                        
						
						 
1 post
Guide to Modding Scratch 3.0
I'm getting the red block error even after building… anyone have any solutions? 
                        
                        
                    - gatgatcode
 - 
                            
						
						
                            Scratcher
                        
						
						 
100+ posts
Guide to Modding Scratch 3.0
the links need to be changed from LLK to scratchfoundation links
                        
                        
                    - GAMER_BOY-_-
 - 
                            
						
						
                            Scratcher
                        
						
						 
34 posts
Guide to Modding Scratch 3.0
if <modded scratch> then
cool :happy:
else
AARRRGHHHH!!!!!
end
Last edited by GAMER_BOY-_- (Jan. 8, 2024 15:40:42)
- o97doge
 - 
                            
						
						
                            Scratcher
                        
						
						 
500+ posts
Guide to Modding Scratch 3.0
How do I change the file extension that's attached when exporting a project in my Scratch mod?
Edit: nvm
                        
                            Edit: nvm
Last edited by o97doge (Feb. 23, 2024 22:08:14)
- SM64-creator
 - 
                            
						
						
                            Scratcher
                        
						
						 
36 posts
Guide to Modding Scratch 3.0
YES NOW I CAN HAVE BLOCKS LIKE THESE!
                        
                        
                    when [enter] key pressed
- -Josiauh-
 - 
                            
						
						
                            Scratcher
                        
						
						 
2 posts
Guide to Modding Scratch 3.0
here from 6 years after this post (and 1 day after the last one)
two errors doing yarn prepublish on scratch-blocks:
                        
                        
                    two errors doing yarn prepublish on scratch-blocks:
Can't resolve ‘../blockly_compressed_vertical’ in ‘F:\snatchKit\scratch-blocks\shim’if anybody knows how to fix this, please say so
Can't resolve ‘../blockly_compressed_horizontal’ in ‘F:\snatchKit\scratch-blocks\shim’
- AKshaggysurfer
 - 
                            
						
						
                            Scratcher
                        
						
						 
33 posts
Guide to Modding Scratch 3.0
i dont know
                        
                        
                    [/My browser / operating system: Windows NT 10.0, Chrome 122.0.0.0, No Flash version detectedbig]
- GvYoutube
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Guide to Modding Scratch 3.0
(long unnecessary quote removed by moderator - please don't spam)
glad to know this a a scratch team sticky page lol
                        
                            glad to know this a a scratch team sticky page lol

Last edited by Paddle2See (April 22, 2024 21:59:35)
- Haycat2009
 - 
                            
						
						
                            Scratcher
                        
						
						 
100+ posts
Guide to Modding Scratch 3.0
A question: Can I replace the python and JavaScript code with equivalent C++ code to make it faster?
                        
                        
                    - dynamicsofscratch
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Guide to Modding Scratch 3.0
off topic posts will be reported without notice
                        
                        
                    - dynamicsofscratch
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Guide to Modding Scratch 3.0
(#683)reported because well even after notice you guys don't care.
Why does it take SO LONG!!???
- dynamicsofscratch
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Guide to Modding Scratch 3.0
yeeted the og post
                        
                            Last edited by dynamicsofscratch (April 24, 2024 06:37:50)
- SMI_Productions
 - 
                            
						
						
                            Scratcher
                        
						
						 
4 posts
Guide to Modding Scratch 3.0
I attempted to npm install the blocks, but all I get is:
How do I fix this?
                        
                        
                    node:internal/crypto/hash:68
this[kHandle] = new _Hash(algorithm, xofLen);
^
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:68:19)
at Object.createHash (node:crypto:138:10)
at module.exports (E:\975 Productions\Champ\champ-blocks\node_modules\webpack\lib\util\createHash.js:135:53)
at NormalModule._initBuildHash (E:\975 Productions\Champ\champ-blocks\node_modules\webpack\lib\NormalModule.js:417:16)
at handleParseError (E:\975 Productions\Champ\champ-blocks\node_modules\webpack\lib\NormalModule.js:471:10)
at E:\975 Productions\Champ\champ-blocks\node_modules\webpack\lib\NormalModule.js:503:5
at E:\975 Productions\Champ\champ-blocks\node_modules\webpack\lib\NormalModule.js:358:12
at E:\975 Productions\Champ\champ-blocks\node_modules\loader-runner\lib\LoaderRunner.js:373:3
at iterateNormalLoaders (E:\975 Productions\Champ\champ-blocks\node_modules\loader-runner\lib\LoaderRunner.js:214:10)
at Array.<anonymous> (E:\975 Productions\Champ\champ-blocks\node_modules\loader-runner\lib\LoaderRunner.js:205:4)
at Storage.finished (E:\975 Productions\Champ\champ-blocks\node_modules\webpack\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:55:16)
at E:\975 Productions\Champ\champ-blocks\node_modules\webpack\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:91:9
at E:\975 Productions\Champ\champ-blocks\node_modules\graceful-fs\graceful-fs.js:123:16
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3) {
opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
library: 'digital envelope routines',
reason: 'unsupported',
code: 'ERR_OSSL_EVP_UNSUPPORTED'
}
Node.js v20.11.1
npm ERR! code 1
npm ERR! path E:\975 Productions\Champ\champ-blocks
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c python2 build.py && webpack
- Discussion Forums
 - » Advanced Topics
 - 
            » Guide to Modding Scratch 3.0 
         
            












