Discuss Scratch

gigi_lindalinda
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

when green flag clicked
In vanilla Scratch::operators
when @stopSign clicked::events hat
Custom
forever@loopArrow::events hat
Custom

forever if <> then{
Custom
}@loopArrow::events cap
forever if <> then{
Custom
}else{
}@loopArrow::events cap
if <> then{
}else{
}or{
}maybe{
}probably{
}if not those, it actually would be{
Custom
}::events
erikschorr
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

Paddle2See wrote:

Use this topic to test out the [scratchblocks] tag on the forums!

when 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

owksksksskkssksisksoksksksk92929292292983922910122343
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
MaxSaturn3000_
Scratcher
44 posts

Official [scratchblocks] Testing Topic 9

MaxSaturn3000_ wrote:

Find the real scratch block.

Snippy-Snip-Snip! Post shortened! (^ω^::#666666)::#aa0000 cat
Nobody has given one sure, correct answer yet…

@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)

amagamecode
Scratcher
500+ posts

Official [scratchblocks] Testing Topic 9

MaxSaturn3000_ wrote:

Find 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 control
Even though you can't find in the block menu, it exists.
while<>{
}::control
Yeah i have a project that has this block.

Last edited by amagamecode (July 4, 2025 10:05:40)

amagamecode
Scratcher
500+ posts

Official [scratchblocks] Testing Topic 9

sillyNate wrote:

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)

catsua_real
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

hi? …
sillyNate
Scratcher
67 posts

Official [scratchblocks] Testing Topic 9

amagamecode wrote:

Why::#ff0000 hat
Did:: #ff8800
You ::#ffff00
Say::#00ff00
That::#0088ff cap
Why :: #4488ff hat
Not :: #ffff00
Lol :: #ff0000 cap
lnecel
Scratcher
500+ posts

Official [scratchblocks] Testing Topic 9

vdiaz041 wrote:

lnecel wrote:

amagamecode wrote:

{
{
}{
::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
lets eat it
when 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)
yay
Pizza party
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
MaxSaturn3000_
Scratcher
44 posts

Official [scratchblocks] Testing Topic 9

amagamecode wrote:

MaxSaturn3000_ wrote:

Find the real scratch block.

Snippy-Snip-Snip! Post shortened! (^ω^::#666666)::#aa0000 cat
Even though you can't find in the block menu, it exists.
while<>{
}::control
Yeah i have a project that has this block.
Congratulations! You found the real Scratch block!
while <>{

}::control loop
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.

Last edited by MaxSaturn3000_ (July 8, 2025 19:50:49)

amagamecode
Scratcher
500+ posts

Official [scratchblocks] Testing Topic 9

MaxSaturn3000_ wrote:

amagamecode wrote:

MaxSaturn3000_ wrote:

Find 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 control
Even though you can't find in the block menu, it exists.
while<>{
}::control
Yeah i have a project that has this block.
Congratulations! You found the real Scratch block!
while <>{

}::control loop
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.
Yippie!
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)

amagamecode
Scratcher
500+ posts

Official [scratchblocks] Testing Topic 9

lnecel wrote:

vdiaz041 wrote:

lnecel wrote:

amagamecode wrote:

{
{
}{
::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
Got back the pizza
when 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)
yay
Pizza party
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 hat 
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
Activated
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)

WatermelonMan10
Scratcher
100+ posts

Official [scratchblocks] Testing Topic 9

mintguy976 wrote:

WatermelonMan10 wrote:

MaxSaturn3000_ wrote:

Find 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 control
when I start as a clone
create 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 0
yall what is he goin on about bro
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 ()
Aida_adiA
Scratcher
64 posts

Official [scratchblocks] Testing Topic 9

I WANT TESTING TOPIC 10
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)

sillyNate
Scratcher
67 posts

Official [scratchblocks] Testing Topic 9

MaxSaturn3000_ wrote:

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
vdiaz041
Scratcher
500+ posts

Official [scratchblocks] Testing Topic 9

MaxSaturn3000_ wrote:

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
vdiaz041
Scratcher
500+ posts

Official [scratchblocks] Testing Topic 9

MaxSaturn3000_ wrote:

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

MaxSaturn3000_ wrote:

MaxSaturn3000_ wrote:

Find 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 control
Nobody has given one sure, correct answer yet…

@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)

Powered by DjangoBB