Discuss Scratch

Paddle2See
Scratch Team
1000+ posts

Official [scratchblocks] testing topic

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 blob8108's 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 @theonlygusti


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

RetroTV
Scratcher
100+ posts

Official [scratchblocks] testing topic

Oh hey, first

when green flag clicked
broadcast [Broadcast v]

when I receive [broadcast v]
broadcast [broadcast v]

DONT USE THIS SCRIPT! It is very infinite
RetroTV
Scratcher
100+ posts

Official [scratchblocks] testing topic

When {Scratch}Is Typed into your search bar on google :: hat :: events
forever
Imagine :: pen
Program :: sound
Share :: list

Last edited by RetroTV (Aug. 12, 2017 22:44:00)

Roseyfurby_Aj
Scratcher
100+ posts

Official [scratchblocks] testing topic

[Hello!] :: obsolete hat
I'm back! :: list
Looks like the[last v][forum]closed.(insert[emoji sad v] :: events) :: events
It's[OK]though. :: variables
I[understand v]why. :: control
[But,] :: operators stack
This[forum][came v] along! :: sensing
[#000000][#ffffff][#ffffff][#ffffff][#000000] :: #ffffff stack
[#ffffff][#000000][#ffffff][#000000][#ffffff] :: #ffffff stack
[#ffffff][#ffffff][#000000][#ffffff][#ffffff][#000000][#000000][#000000][#000000][#ffffff][#000000][#ffffff][#ffffff][#ffffff][#000000] :: #ffffff stack
[#ffffff][#ffffff][#000000][#ffffff][#ffffff][#000000][#ffffff][#000000][#ffffff][#000000][#ffffff][#000000][#ffffff][#000000] :: #ffffff stack
[#ffffff][#ffffff][#000000][#ffffff][#ffffff][#000000][#000000][#000000][#ffffff][#000000][#ffffff][#ffffff][#000000][#ffffff] :: #ffffff stack
[#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#000000] :: #ffffff stack
[#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#000000][#000000] :: #ffffff stack
Hopefully[nobody][spams v],[makes ongoing stories v]or[says something bad v], :: motion
or[this v][forum]might[be closed]. :: custom-arg
Anyways, :: looks
Bye! :: sound cap
Charles12310
Scratcher
1000+ posts

Official [scratchblocks] testing topic

start [the game v] :: custom
asivi
Scratcher
1000+ posts

Official [scratchblocks] testing topic

HI::#ffffff
ProjectScratching
Scratcher
100+ posts

Official [scratchblocks] testing topic

say [nothing]
set [something] to [nothing]

Last edited by ProjectScratching (Aug. 13, 2017 15:58:52)

ProjectScratching
Scratcher
100+ posts

Official [scratchblocks] testing topic

set <something> to <something>
How do i make custom color ones

Last edited by ProjectScratching (Aug. 13, 2017 13:47:24)

jctag
Scratcher
100+ posts

Official [scratchblocks] testing topic

ProjectScratching wrote:

set <something> to <something>
How do i make custom color ones
you make the block then at the end put ::#
and after that put 6 numbers or letters(i think letters stop at f) of the color code you want.
ProjectScratching
Scratcher
100+ posts

Official [scratchblocks] testing topic

thanks
forever::#ff0000
forever::#ff9900
forever::#fff600
forever::#00ff00
forever::#0000ff
say [Hai]::#ff00e9
end
end
end
end
end
when green flag clicked
forever
if <scratch clicked?::#00b2ff>::#f7ad01
forever
imagine::#000cff
program::#ff09cc
share::#cc8822
hack your blocks::#f41f11
end
else
say [Please go to scratch if you feel like it]
end
end
say [hai] {::#ff0000 {::#f7ad01 {::#ffff00 {::#048e00 {::#00a5ff {say [Hi]::#e008d9} } } } } }


say [(<something>)]
stop [This Madness v]
when flag clicked
say [But I don't want to.] for (2) secs
say [FINE] for (0.5) secs
Bye!::#321051 cap

define when (meow) mreowed then <next line pls>::#00ccff stack
when (meow) mreowed then <hi>::#00ccff
if <mouse down?> then
say [pls stop pressing on your mouse] for (odd::hat #ff0000) secs

Last edited by ProjectScratching (Sept. 23, 2017 18:02:40)

RetroTV
Scratcher
100+ posts

Official [scratchblocks] testing topic

ProjectScratching wrote:

forever :: #ff0000 ::cstart
forever :: #ff9900 ::cstart
forever :: #fff600 ::cstart
forever :: #00ff00 ::cstart
forever :: #0000ff ::cstart
say [hai] :: #ff00e9
end
end
end
end
end
Fixed it

Last edited by RetroTV (Aug. 13, 2017 16:09:20)

TheGamer8608
Scratcher
16 posts

Official [scratchblocks] testing topic

Q:

ProjectScratching wrote:

How do I make a block like stop but it doesnt say stop it can say like Bye with no thing on the bottom

;
A:
Use “cap” without quotes at the end of the block. Tip:You can also use “hat”, “stack”, “ring”, without quotes. Tip: You can use () or <> for reporter or Boolean, respectively.Tip: You can use another block's type to make a block that color.
Bye::cap
(hello)<wha?>
Keep Scratching!::variables
Bye::cap
(hello)<wha?>
Keep Scratching!::variables
For more help, go here.

;
Roseyfurby_Aj
Scratcher
100+ posts

Official [scratchblocks] testing topic

[#ffffff][#ffffff][#000000][#000000][#000000][#ffffff][#ffffff][#ffffff][#000000][#000000][#000000] :: #ffffff stack
[#ffffff][#000000][#ff0000][#ff0000][#ff0000][#000000][#ffffff][#000000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#000000][#ff0000][#ff0000][#ffffff][#ff0000][#ff0000][#000000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#000000][#ff0000][#ffffff][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#000000][#ff0000][#ffffff][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#ffffff][#000000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#ffffff][#ffffff][#000000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#ffffff][#ffffff][#ffffff][#000000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#ffffff][#ffffff][#ffffff][#ffffff][#000000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#000000][#ff0000][#000000] :: #ffffff stack
[#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#000000] :: #ffffff stack
Charles12310
Scratcher
1000+ posts

Official [scratchblocks] testing topic

Roseyfurby_Aj wrote:

[#ffffff][#ffffff][#000000][#000000][#000000][#ffffff][#ffffff][#ffffff][#000000][#000000][#000000] :: #ffffff stack
[#ffffff][#000000][#ff0000][#ff0000][#ff0000][#000000][#ffffff][#000000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#000000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#000000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#000000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#000000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#ffffff][#000000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#ffffff][#ffffff][#000000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#ffffff][#ffffff][#ffffff][#000000][#ff0000][#ff0000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#ffffff][#ffffff][#ffffff][#ffffff][#000000][#ff0000][#ff0000][#ff0000][#000000] :: #ffffff stack
[#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#000000][#ff0000][#000000] :: #ffffff stack
[#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#ffffff][#000000] :: #ffffff stack
…just…plain…wow…
tkinter
Scratcher
7 posts

Official [scratchblocks] testing topic

when green flag clicked 
create clone of [myself v]
when I start as a clone
forever
move (10) steps
turn cw (15) degrees
if on edge, bounce
create clone of [myself v]
end

actually you probably shouldn't do that
RetroTV
Scratcher
100+ posts

Official [scratchblocks] testing topic

tkinter wrote:

when green flag clicked 
create clone of [myself v]
when I start as a clone
forever
move (10) steps
turn cw (15) degrees
if on edge, bounce
create clone of [myself v]
end

actually you probably shouldn't do that
*does the code*
Welp, I broke my computer…
when [windows v] crashes :: hat :: events
replace item (Windows v) of [owned computers v] with [A Mac]
broadcast [Power-On Macintosh v] and wait

when I receive [Power-On Macintosh v]
play sound [Boot up sound-fx v]
Computer start up :: more blocks




define computer start up
next costume
switch backdrop to [Home Screen 1 v]
show all applications :: looks
turn on system 32 {
Broadcast [system-boot v]
Download (app.data) and wait :: #b60372
... :: Grey } :: control

when I receive [system-boot v]
Set (app.data) to ((3.1415926535897932384626433832795028841971693993751) + (☁️save data))

Last edited by RetroTV (Aug. 13, 2017 23:46:12)

LionHeart70
Scratcher
1000+ posts

Official [scratchblocks] testing topic

when I receive [go to Help With Scripts forum v]
go to [This topic v]
ask [Wait, what happened to the old one?] and wait
think [Oh. I think it was closed because of spam..]
say [Well..]
say [This would probably be the only reason I ever communicated with blocks.]
redstonelasher2010
Scratcher
100+ posts

Official [scratchblocks] testing topic

jctag wrote:

ProjectScratching wrote:

set <something> to <something>
How do i make custom color ones
you make the block then at the end put ::#
and after that put 6 numbers or letters(i think letters stop at f) of the color code you want.
Oh.
redstonelasher2010
Scratcher
100+ posts

Official [scratchblocks] testing topic

New Control block:
end
end
VideoGamerCanInvent
Scratcher
1000+ posts

Official [scratchblocks] testing topic

HI::#ffff00

Powered by DjangoBB