Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Official [scratchblocks] Testing Topic 9
#17481July 3, 2025 22:24:15
- erikschorr
-
Scratcher
100+ posts
Official [scratchblocks] Testing Topic 9
Use this topic to test out the [scratchblocks] tag on the forums!owksksksskkssksisksoksksksk92929292292983922910122343when green flag clicked
say [Test out Scratchblocks!!!]
You can also use the preview button (green check button) to test out Scratchblocks as you create your post.
Please do not repeatedly spam this thread or try to make ongoing stories, though. Once you are familiar with the plugin, please stop posting here. Also, please don't make massive scripts that kill the browser - be considerate of your fellow Scratchers
If you want to convert a script in a project, please use apple502j's Scratch 3.0 converter or blob8108's Scratch 2.0 converter.
Also, check out blob8108's Scratchblocks test page.
For more information on the Scratchblocks formatting syntax, see the topic in the Wiki
or, this nice tutorial topic by @han614698
Credit to @jvvg for the original topic on these forums.
Credit to @78ch3 (with help from others) for hosting a version of the topic here
Link to the last version of the topic
#17482July 3, 2025 23:13:03
- sillyNate
-
Scratcher
67 posts
Official [scratchblocks] Testing Topic 9
Colors :: #ffffff hat
Are :: #aaaaaa
Fun :: #000000
Oops :: #ff0000 grab
That :: #ff8800
Was :: #ffff00
Supposed :: #00ff00
To :: #0088ff
Say :: #cc00ff
"Fun" :: #ffffff cap
#17483July 4, 2025 00:39:17
- MaxSaturn3000_
-
Scratcher
44 posts
Official [scratchblocks] Testing Topic 9
Find the real scratch block.Nobody has given one sure, correct answer yet…Snippy-Snip-Snip! Post shortened! (^ω^::#666666)::#aa0000 cat
@vdiaz041
You had multiple answers, and seemed unsure. You must confidently answer with one block.
@WatermelonMan10
The block you were referring to is not the correct block, however your answer did contain the correct version of that block.
@mintguy976
You gave more than one answer. You must answer with only one block.
Last edited by MaxSaturn3000_ (July 8, 2025 19:50:19)
#17484July 4, 2025 10:05:16
- amagamecode
-
Scratcher
500+ posts
Official [scratchblocks] Testing Topic 9
Find the real scratch block.Even though you can't find in the block menu, it exists.when [A v] key is pressed::events hat
wait until < <(current [decade v]) equals [203]::operators> not::operators> true::control
set variable [foo v] to [1]::variables
create a clone of [myself v]::control
wait (3) secs
set variable [foo v] to [0]::variables
when I start as clone::hat control
point towards [mouse pointer v]
while <(variable [foo v]::variables) equals [1]::operators>{
move (1) step::motion
}::loop control
delete myself::cap control
while<>{
}::control Yeah i have a project that has this block.Last edited by amagamecode (July 4, 2025 10:05:40)
#17485July 4, 2025 11:09:08
- amagamecode
-
Scratcher
500+ posts
Official [scratchblocks] Testing Topic 9
Colors :: #ffffff hat
Are :: #aaaaaa
Fun :: #000000
Oops :: #ff0000 grab
That :: #ff8800
Was :: #ffff00
Supposed :: #00ff00
To :: #0088ff
Say :: #cc00ff
"Fun" :: #ffffff cap
Why::#ff0000 hat
Did:: #ff8800
You ::#ffff00
Say::#00ff00
That::#0088ff cap
((King of page [883]::sensing)+(edit))::hat events cat
Last edited by amagamecode (July 4, 2025 11:10:37)
#17486July 4, 2025 15:09:47
#17487July 4, 2025 17:59:08
- sillyNate
-
Scratcher
67 posts
Official [scratchblocks] Testing Topic 9
Why::#ff0000 hat
Did:: #ff8800
You ::#ffff00
Say::#00ff00
That::#0088ff cap
Why :: #4488ff hat
Not :: #ffff00
Lol :: #ff0000 cap
#17488July 4, 2025 18:39:06
- lnecel
-
Scratcher
500+ posts
Official [scratchblocks] Testing Topic 9
Pizza partyyay{lets eat it
{
}{
::ring
::ring
((::ring))
::ring
((::ring))
::ring
::ring
}{
::ring
((::ring))
::ring
((::ring))
::ring
((::ring))
::ring
}{
::ring
::ring
((::ring))
::ring
((::ring))
::ring
::ring
}{
::ring
((::ring))
::ring
((::ring))
::ring
((::ring))
::ring
}{
::ring
::ring
((::ring))
::ring
((::ring))
::ring
::ring
}{
}::#fab15c reporter
}::variables reporterwhen this post is posted::events hat
deactivate icons{
{
{
}{
::ring
::ring
((::ring))
::ring
((::ring))
::ring
::ring
}{
::ring
((::ring))
::ring
((::ring))
::ring
((::ring))
::ring
}{
::ring
::ring
((::ring))
::ring
((::ring))
::ring
::ring
}{
::ring
((::ring))
::ring
((::ring))
::ring
((::ring))
::ring
}{
::ring
::ring
((::ring))
::ring
((::ring))
::ring
::ring
}{
}::#fab15c reporter
}::variables reporter
}::control
create blocks{
make a pizza::control
boolean:<variable [i] exists?::sensing>::#595959
}::control
when this post is quoted::events hat
run (last created stack::control)::control
say (last created boolean::control boolean)
when this post is posted::events hat
repeat until <variable [pizzas] exists?::sensing>
create a variable named [pizzas]::variables
end
set [pizzas v] to [0]
repeat until <(pizzas)=[100]>
make a pizza::control
change [pizzas v] by (1)
end
#17489July 4, 2025 18:58:42
- MaxSaturn3000_
-
Scratcher
44 posts
Official [scratchblocks] Testing Topic 9
Congratulations! You found the real Scratch block!Find the real scratch block.Even though you can't find in the block menu, it exists.Snippy-Snip-Snip! Post shortened! (^ω^::#666666)::#aa0000 catwhile<>{Yeah i have a project that has this block.
}::control
while <>{
}::control loopThe ‘while’ block is a real Scratch block that exists in 3.0, but it is a hidden block. It has the opposite function of the ‘repeat until’ block.Last edited by MaxSaturn3000_ (July 8, 2025 19:50:49)
#17490July 5, 2025 01:09:54
- amagamecode
-
Scratcher
500+ posts
Official [scratchblocks] Testing Topic 9
Yippie!Congratulations! You found the real Scratch block!Find the real scratch block.Even though you can't find in the block menu, it exists.when [A v] key is pressed::events hat
wait until < <(current [decade v]) equals [203]::operators> not::operators> true::control
set variable [foo v] to [1]::variables
create a clone of [myself v]::control
wait (3) secs
set variable [foo v] to [0]::variables
when I start as clone::hat control
point towards [mouse pointer v]
while <(variable [foo v]::variables) equals [1]::operators>{
move (1) step::motion
}::loop control
delete myself::cap controlwhile<>{Yeah i have a project that has this block.
}::controlwhile <>{The ‘while’ block is a real Scratch block that exists in 3.0, but it is a hidden block. It has the opposite function of the ‘repeat until’ block.
}::control loop
#17491July 5, 2025 05:04:04
- lnecel
-
Scratcher
500+ posts
Official [scratchblocks] Testing Topic 9
Please quote my pizza party for the pizzas::events hat
To see it scroll up until you find something with the words “Pizza party”::motion capture
Last edited by lnecel (July 5, 2025 05:05:32)
#17492July 5, 2025 06:22:13
- amagamecode
-
Scratcher
500+ posts
Official [scratchblocks] Testing Topic 9
Pizza partyyay{Got back the pizza
{
}{
::ring
::ring
((::ring))
::ring
((::ring))
::ring
::ring
}{
::ring
((::ring))
::ring
((::ring))
::ring
((::ring))
::ring
}{
::ring
::ring
((::ring))
::ring
((::ring))
::ring
::ring
}{
::ring
((::ring))
::ring
((::ring))
::ring
((::ring))
::ring
}{
::ring
::ring
((::ring))
::ring
((::ring))
::ring
::ring
}{
}::#fab15c reporter
}::variables reporterwhen this post is posted::events hat
deactivate icons{
{
{
}{
::ring
::ring
((::ring))
::ring
((::ring))
::ring
::ring
}{
::ring
((::ring))
::ring
((::ring))
::ring
((::ring))
::ring
}{
::ring
::ring
((::ring))
::ring
((::ring))
::ring
::ring
}{
::ring
((::ring))
::ring
((::ring))
::ring
((::ring))
::ring
}{
::ring
::ring
((::ring))
::ring
((::ring))
::ring
::ring
}{
}::#fab15c reporter
}::variables reporter
}::control
create blocks{
make a pizza::control
boolean:<variable [i] exists?::sensing>::#595959
}::control
when this post is quoted::events hat
run (last created stack::control)::control
say (last created boolean::control boolean)when this post is posted::events hat
repeat until <variable [pizzas] exists?::sensing>
create a variable named [pizzas]::variables
end
set [pizzas v] to [0]
repeat until <(pizzas)=[100]>
make a pizza::control
change [pizzas v] by (1)
end
when this post is posted::events hatActivated
activate icons{
{
{
}{
::ring
::ring
((::ring))
::ring
((::ring))
::ring
::ring
}{
::ring
((::ring))
::ring
((::ring))
::ring
((::ring))
::ring
}{
::ring
::ring
((::ring))
::ring
((::ring))
::ring
::ring
}{
::ring
((::ring))
::ring
((::ring))
::ring
((::ring))
::ring
}{
::ring
::ring
((::ring))
::ring
((::ring))
::ring
::ring
}{
}::#fab15c reporter
}::variables reporter
}::control
Note: my post is “Got back the pizza”, but someone changed it into “lets eat it” so I changed back. WHO DID IT?
Last edited by amagamecode (July 5, 2025 06:30:00)
#17493July 5, 2025 12:22:56
- WatermelonMan10
-
Scratcher
100+ posts
Official [scratchblocks] Testing Topic 9
yall what is he goin on about brocreate a clone of myself, wait 3 seconds, when i start as clone, point towards mouse pointer set variable foo to 1 set variable foo to 0Find the real scratch block.when [A v] key is pressed::events hat
wait until < <(current [decade v]) equals [203]::operators> not::operators> true::control
set variable [foo v] to [1]::variables
create a clone of [myself v]::control
wait (3) secs
set variable [foo v] to [0]::variables
when I start as clone::hat control
point towards [mouse pointer v]
while <(variable [foo v]::variables) equals [1]::operators>{
move (1) step::motion
}::loop control
delete myself::cap controlwhen I start as a clone
#17494July 5, 2025 14:33:43
- catsua_real
-
Scratcher
100+ posts
Official [scratchblocks] Testing Topic 9
stop all sounds
stop all sounds
change volume by ()
clear sound effects
change volume by ()
#17495July 5, 2025 20:01:12
#17496July 5, 2025 20:58:30
- MaxSaturn3000_
-
Scratcher
44 posts
Official [scratchblocks] Testing Topic 9
Find the real Scratch block in each script.
when this sprite touches (mouse-pointer v)::events hat
change [foo v] by (#ff0550)::variables stack
display text [Don't touch that!] on micro:bit::microbit stack
wait (1) sec::control stack
clear the display::microbit stack
stop [this script]::control cap
if (down down down down left left left left v) is pressed in order::makeymakey hat
set [foo4 v] to [0]::events stack
for each [foo v] in [27]{
set variable [foo2 v] to (pick from (-100) to (100)::operators reporter)::variables stack
set variable [foo3 v] to (pick from (-100) to (100)::operators reporter)::variables stack
ask (join (join (variable [foo2 v]::variables reporter) and [+]::operators reporter) and (variable [foo3 v]::variables reporter)::operators reporter) and wait::motion stack
if <(answer::motion reporter) equals ((variable [foo2 v]::variables reporter) plus (variable [foo3 v]::variables reporter)::operators reporter)::operators boolean>{
say [Correct!] for (1 v) sec::looks stack
change [foo4 v] by (1)::events stack
}otherwise{
say [Incorrect!] for (1 v) sec::looks stack
}::control loop
}::control loop
if <(variable [foo4 v]::variables reporter) equals [27]::operators boolean>{
broadcast [reward]::events stack
}otherwise{
say [You didn't answer all questions correctly. Try again!] for (1 v) sec::looks stack
}::control loop
end [this script v]::control cap
when @stopSign clicked::events hat
ask for (code v) and wait::sensing stack
if <(code::sensing reporter) equals [122448]::operators boolean> then say [You are MaxSaturn3000] otherwise say [You are not MaxSaturn3000]::custom stack
stop [everything v]::control cap
Last edited by MaxSaturn3000_ (July 5, 2025 21:00:12)
#17497July 6, 2025 01:34:10
- sillyNate
-
Scratcher
67 posts
Official [scratchblocks] Testing Topic 9
Find the real Scratch block in each script.when this sprite touches (mouse-pointer v)::events hat
change [foo v] by (#ff0550)::variables stack
display text [Don't touch that!] on micro:bit::microbit stack
wait (1) sec::control stack
clear the display::microbit stack
stop [this script]::control cap
if (down down down down left left left left v) is pressed in order::makeymakey hat
set [foo4 v] to [0]::events stack
for each [foo v] in [27]{
set variable [foo2 v] to (pick from (-100) to (100)::operators reporter)::variables stack
set variable [foo3 v] to (pick from (-100) to (100)::operators reporter)::variables stack
ask (join (join (variable [foo2 v]::variables reporter) and [+]::operators reporter) and (variable [foo3 v]::variables reporter)::operators reporter) and wait::motion stack
if <(answer::motion reporter) equals ((variable [foo2 v]::variables reporter) plus (variable [foo3 v]::variables reporter)::operators reporter)::operators boolean>{
say [Correct!] for (1 v) sec::looks stack
change [foo4 v] by (1)::events stack
}otherwise{
say [Incorrect!] for (1 v) sec::looks stack
}::control loop
}::control loop
if <(variable [foo4 v]::variables reporter) equals [27]::operators boolean>{
broadcast [reward]::events stack
}otherwise{
say [You didn't answer all questions correctly. Try again!] for (1 v) sec::looks stack
}::control loop
end [this script v]::control cap
when @stopSign clicked::events hat
ask for (code v) and wait::sensing stack
if <(code::sensing reporter) equals [122448]::operators boolean> then say [You are MaxSaturn3000] otherwise say [You are not MaxSaturn3000]::custom stack
stop [everything v]::control cap
I think it's the “display text” micro:bit block for the first one
Second one is the “for each” block
Last one is the myBlock
#17498July 6, 2025 01:43:16
- vdiaz041
-
Scratcher
500+ posts
Official [scratchblocks] Testing Topic 9
Challenge:define yourself in 3 scratch blocks
Edit: Wait a sec, now I'M the king of page 882?
kind
silly
kind of a nuisance
#17499July 6, 2025 01:44:20
- vdiaz041
-
Scratcher
500+ posts
Official [scratchblocks] Testing Topic 9
Challenge:define yourself in 3 scratch blocks
Edit: Wait a sec, now I'M the king of page 882?
kind
silly
kind of a nuisance
Find the real scratch block.Nobody has given one sure, correct answer yet…when [A v] key is pressed::events hat
wait until < <(current [decade v]) equals [203]::operators> not::operators> true::control
set variable [foo v] to [1]::variables
create a clone of [myself v]::control
wait (3) secs
set variable [foo v] to [0]::variables
when I start as clone::hat control
point towards [mouse pointer v]
while <(variable [foo v]::variables) equals [1]::operators>{
move (1) step::motion
}::loop control
delete myself::cap control
@vdiaz041
You had multiple answers, and seemed unsure. You must confidently answer with one block.
@WatermelonMan10
The block you were referring to is not the correct block, however your answer did contain the correct version of that block.
@mintguy976
You gave more than one answer. You must answer with only one block.
while <> {
}:: control wait why the hell am I posting this pretend like this didn't exist
Last edited by vdiaz041 (July 6, 2025 01:46:01)
#17500July 6, 2025 02:03:04
- vdiaz041
-
Scratcher
500+ posts
Official [scratchblocks] Testing Topic 9
try to find the real scratchblock
when the @greenFlag is clicked:: events cat
wait [1] second @addInput:: control
speak [Hello!]:: looks
point in direction [182] and {update list [my list v] to have length of (20000):: list ring}:: motion
stop this script:: control
run @stopSign and wait:: events
when @stopSign is run {
move [Infinity] stpes:: motion
say ([Your user ID is ] and (user id:: sensing):: operators) for [1.6e+-6] minutes:: looks
}:: events
Last edited by vdiaz041 (July 6, 2025 02:03:54)









