Discuss Scratch

the2000
Scratcher
1000+ posts

Shift+Click R to access the functional hidden blocks

In Scratch 3.0, there are seven hidden blocks with functional and practical uses. These are, in no particular order:
while <> {

} :: control

for each [variable v] in (10) {

} :: control

(counter :: control)

increment counter :: control

clear counter :: control

<loud? :: sensing>

when this sprite touches [mouse pointer v] :: hat :: events
(Arguably, the ([sound name v]) reporter does have proper functionality, but it doesn't have any practical use to my knowledge, so I left it out.)

Now, I know that all of these blocks (with the half-exception of the last one) have pretty simple workarounds, but I still think it would be nice to give people who are interested a way to more easily access these. I have used these in the past just because, due to being built-in blocks, they are a teeny bit more efficient than their workarounds.

Also, Shift+Click R used to have a function in 1.x versions. Come on, you know you want it back just for the novelty, or for the stupid Scratch nerd cred…

Last edited by the2000 (Feb. 13, 2021 02:32:41)

GoogleInScratch
Scratcher
1000+ posts

Shift+Click R to access the functional hidden blocks

Support, I like playing with hacked blocks, but they are very hard to make.

There is a you cam access them, but It's a little bit hard. Why not an easier way? I wanna play with hidden blocks too!

Last edited by GoogleInScratch (Feb. 13, 2021 02:00:33)

Steve0Greatness
Scratcher
1000+ posts

Shift+Click R to access the functional hidden blocks

wait… is there anyway to access them? At all?
the2000
Scratcher
1000+ posts

Shift+Click R to access the functional hidden blocks

Steve0Greatness wrote:

wait… is there anyway to access them? At all?
JSON hacking. Basically, .sb3 files are just renamed .zip files, and inside of that zip file is a file called “project.json” which contains all the block data for that project. It's a little difficult (but not as hard as you would probably expect) to hack them in. I managed to hack in all of the hidden blocks myself. I was the one who found most of the blocks on the Scratch Wiki hidden blocks page!

Last edited by the2000 (Feb. 13, 2021 02:05:13)

Prime689
Scratcher
1000+ posts

Shift+Click R to access the functional hidden blocks

Is this not part of the Scratch interface? Is this traditional to use by means of teachers/minors? Is this helpful for teachers/minors?
Is this standard for use? By what means it could be fundamental, in terms of using this for projects? By this, I don't support.

Last edited by Prime689 (Feb. 13, 2021 02:10:45)

the2000
Scratcher
1000+ posts

Shift+Click R to access the functional hidden blocks

Prime689 wrote:

Is this not part of the Scratch interface? Is this traditional to use by means of teachers/minors? Is this helpful for teachers/minors?
Is this standard for use? By what means it could be fundamental, in terms of using this for projects? By this, I don't support.
Having these blocks in the first place doesn't check any of your boxes and yet they added them anyway. They might as well either get some mileage out of these blocks or remove them entirely.
fdreerf
Scratcher
1000+ posts

Shift+Click R to access the functional hidden blocks

I don't believe they had Ctrl+Shift+R in 2.0.

I mean, I feel like they should just add the for and while blocks into the palette as they are super helpful and have analogues with real languages.
the2000
Scratcher
1000+ posts

Shift+Click R to access the functional hidden blocks

fdreerf wrote:

I don't believe they had Ctrl+Shift+R in 2.0.
Just checked and it seems you're right. Dang, gotta update the OP now.

Edit: Now that I think about it, I believe I was getting this confused with the Scratch 2.0 features that could be unlocked by shift-clicking the file and edit menus. Also, it's Shift+Click R, not Ctrl+Shift+R, get it right! Anyway, back to the original post…

fdreerf wrote:

I mean, I feel like they should just add the for and while blocks into the palette as they are super helpful and have analogues with real languages.
I agree, but I see how the two blocks are little redundant and understand why they would be hesitant to add them to the main block palette.

Last edited by the2000 (Feb. 13, 2021 02:35:26)

AidyGamer60
Scratcher
100+ posts

Shift+Click R to access the functional hidden blocks

Hey, uhm, how do you insert blocks in the JSON notepad?
change expression to [confused v] :: looks
the2000
Scratcher
1000+ posts

Shift+Click R to access the functional hidden blocks

AidyGamer60 wrote:

Hey, uhm, how do you insert blocks in the JSON notepad?
change expression to [confused v] :: looks
Check out this page.

Since you said “the JSON notepad”, I'm assuming you know how to get the JSON data, but anyway… Download the project, change the file extension to “.zip” and then extract it. Then, click on the file called “project.json”. Once you're done, compress it back into a .zip file and change the extension back to .sb3.

Now, it's a little cluttered and messy, but in the block definitions you'll notice a property called “opcode”. Replace the opcode with one of the ones listed on the page and it will give you the block. It can lead to glitched results if the block doesn't have the same inputs as the one you replaced it with, and if it's connected to blocks in a way it can't be then it will destroy the entire script.
AidyGamer60
Scratcher
100+ posts

Shift+Click R to access the functional hidden blocks

I already gave up because i know where the easy ones are haha and look at this almost fully customizable key pressed thing (Excludes some keys that can't be detected by Scratch such as Tab)

Hint vv
key [insert key here] pressed?

the2000
Scratcher
1000+ posts

Shift+Click R to access the functional hidden blocks

AidyGamer60 wrote:

I already gave up because i know where the easy ones are haha and look at this almost fully customizable key pressed thing (Excludes some keys that can't be detected by Scratch such as Tab)

Hint vv
key [insert key here] pressed?

You know you can just do that with the join block, right?

Edit: Also, it's pretty much obvious how that works if you mess with it for a few seconds. At least, I could figure it out

Last edited by the2000 (Feb. 13, 2021 19:04:32)

AidyGamer60
Scratcher
100+ posts

Shift+Click R to access the functional hidden blocks

the2000 wrote:

-snip-

You know you can just do that with the join block, right?

Edit: Also, it's pretty much obvious how that works if you mess with it for a few seconds. At least, I could figure it out

It used to be the join block, but this looks better, lol.



key [enter] pressed?
looks better than
key (join [] [insert key here]) pressed?

Last edited by AidyGamer60 (Feb. 13, 2021 19:10:29)

TheNintendoFan2020
Scratcher
1000+ posts

Shift+Click R to access the functional hidden blocks

the2000
Scratcher
1000+ posts

Shift+Click R to access the functional hidden blocks

TheNintendoFan2020 wrote:

This is technically a dupe
https://scratch-mit-edu.ezproxyberklee.flo.org/discuss/topic/444677/?page=1#post-4642993
I don't see anything about enabling the hidden blocks in that suggestion, so I'd say it's not. Just because it proposes something to do with Shift+Click R doesn't mean that these are the same suggestion.
AidyGamer60
Scratcher
100+ posts

Shift+Click R to access the functional hidden blocks

Not really, this is only UNUSED blocks. Not all of that. -_-
AidyGamer60
Scratcher
100+ posts

Shift+Click R to access the functional hidden blocks

Concept image when the menu pops up.

Last edited by AidyGamer60 (Feb. 14, 2021 02:13:23)

the2000
Scratcher
1000+ posts

Shift+Click R to access the functional hidden blocks

AidyGamer60 wrote:

Concept image when the menu pops up.
That's not coming out of the logo though… Also, I didn't really mean a drop-down menu, I just meant that the blocks would be enabled as soon as you clicked it.
AidyGamer60
Scratcher
100+ posts

Shift+Click R to access the functional hidden blocks

the2000 wrote:

AidyGamer60 wrote:

Concept image when the menu pops up.
-snip-
That's not coming out of the logo though… Also, I didn't really mean a drop-down menu, I just meant that the blocks would be enabled as soon as you clicked it.

Oh, I didn't know.
fdreerf
Scratcher
1000+ posts

Shift+Click R to access the functional hidden blocks

This might be a little tricky to do on the online editor as the Scratch logo is a link.

Powered by DjangoBB