Discuss Scratch

17Domin0
Scratcher
100+ posts

The Official Guide to the Scratchblocks Plugin

han614698 wrote:

Section 3 - Advanced Syntax
SUBSECTION ONE - DEVELOPING NEW BLOCKS
Custom Coloring
To create custom coloring on a block, you must add a preset color or hex code after the block.
The preset colors available are the following:
  • motion
  • looks
  • sound
  • pen
  • variables
  • list
  • events
  • control
  • sensing
  • operators
  • custom
  • custom-arg
  • extension
  • grey
  • obsolete
cool new block::custom-arg
produces
cool new block::custom-arg
Custom Shapes
In order to create custom shapes, you have to put one of the below types of block after two colons (::).
  • hat
  • stack
  • ring
  • boolean
  • reporter
  • cap
when green flag clicked::cap 
produces
when green flag clicked::cap
Stacking Custom Colors and Blocks
If you want to have a custom shape and color of a block, you can stack the two above properties.
when project ends::grey reporter
produces
when project ends::grey reporter
Custom C
To create a custom C block, you have to use curly brackets to separate the lines.
repeat (forever v){
move (10) blocks
}and ever::control
produces
repeat (forever v){
move (10) steps
}and ever::control
SUBSECTION TWO - INSERTABLE IMAGES
Green Flag
If you want to add a Green Flag to a block, you have to type the code @greenFlag.
<@greenFlag clicked?::control>
produces
<@greenFlag clicked?::control>
Input Addition and Deletion
If you want to add the symbol to delete and add inputs to a block, you have to type the codes @delInput or @addInput.
create variable [foo] [bar] @delInput @addInput::variables
produces
create variable [foo] [bar] @delInput @addInput::variables
Loop Arrow
If you want to add a loop arrow to a block, you have to type the code @loopArrow.
if <[1]=[1]> then repeat (10){ 
. . .
} @loopArrow::control
produces
if <[1]=[1]> then repeat (10){ 
. . .
} @loopArrow::control
When you said “curly brackets” you meant braces

This is my signature. Below a specific point, this doesn’t show. I can advertise: The main pageMy profileMy most viewed project Also, here are some protectors:
((((()::#F4CE92)::#FFFFFF)::#F4CE92)::obsolete)//he can suck up kumquats, but he’s eating a vanilla donut right now because it’s his lunch break
Chompy{
(x_x)
}::operators//this guy can eat kumquats. Look, he’s eating one right now!
<[]>//this guy has sharp nails to SCRATCH those kumquats
(x_x)//a dead kumquat
Cursed blocks:
start @greenFlag::events
—snip—::grey
My quote:
I rizzed my Skibidi Ohio
My story (which MUST be hidden):
when [17Domin0 v] [wakes up]::events hat
turn video [on/off v]
Syedbilal321
Scratcher
23 posts

The Official Guide to the Scratchblocks Plugin

very useful

when green flag clicked
say [Let's A Go!]
broadcast [ Let's A Go! v]

that's my Signature
Honey_Dreamz
Scratcher
100+ posts

The Official Guide to the Scratchblocks Plugin

This is really helping me tbh, good job on the sticky man

Hello! This is my signature!
❝ No cat that ever lived was perfect all the time. . .The trick is to learn from your mistakes and have courage to be true to your heart. ❞
Hey, I'm Honey, you can also call me Caspian or Saturn. He/him, please and thanks. I'm a Scratcher of over three years, possible future Wikian, Forum Helper, and beginner HTML/CSS/JS coder. My previous account was @warriorcatsfreakalt.
Status: In the midst of a likely unhealthy Hamilton obsession
Give me an internet | My Ocular | My Notebook
TheCreatorOfUnTV
Scratcher
1000+ posts

The Official Guide to the Scratchblocks Plugin

For some reason
({} @addInput)
({} @addInput)
works even though it isn't a Scratch block (it's a block from λSnap!)

This is the start of my signature. Ctrl+Shift+Down to see all of it.

Check out my about me project here! (I'm allowed to advertise here)
1st post
1000th post

;
Imakegamesalot
Scratcher
40 posts

The Official Guide to the Scratchblocks Plugin

repeat (forever v){
eat::custom
}and ever::@loopArrow looks

I can't figure out the loop arrow someone help

(someone) please <help (me)> ?:: pen

({} @addInput)

Last edited by Imakegamesalot (Oct. 13, 2024 14:26:50)


When <finished reading::motion> my (stellar::looks) post:: hat events
say [Where is her signature?]
.(::custom) ( ::custom) .::grey
___________::custom

okp32_2
Scratcher
2 posts

The Official Guide to the Scratchblocks Plugin

when green flag is not clicked
forever

end
okp32_2
Scratcher
2 posts

The Official Guide to the Scratchblocks Plugin

@greenflag clicked?
Create-Scratch101
Scratcher
100+ posts

The Official Guide to the Scratchblocks Plugin

Please DON’T test scratchblocks here!!!!!



Don’t see the images? An evil kumquat ate it
Mariolover2024
New Scratcher
5 posts

The Official Guide to the Scratchblocks Plugin

when green flag is not clicked
if <not happy?> then
poop
end
Create-Scratch101
Scratcher
100+ posts

The Official Guide to the Scratchblocks Plugin

Mariolover2024 wrote:

when green flag is not clicked
if <not happy?> then
poop
end

okp32_2 wrote:

when green flag is not clicked
forever

end

okp32_2 wrote:

@greenflag clicked?

Imakegamesalot wrote:

repeat (forever v){
eat::custom
}and ever::@loopArrow looks

I can't figure out the loop arrow someone help

(someone) please <help (me)> ?:: pen

({} @addInput)[/quote]
[quote=TheCreatorOfUnTV]For some reason
[code]
({} @addInput)
[/code]
[scratchblocks]
({} @addInput)
[/scratchblocks]
works even though it isn't a Scratch block (it's a block from [i]λSnap![/i])[/quote]

Please don’t test scratchblocks here!



Don’t see the images? An evil kumquat ate it
Ollie-Young
Scratcher
500+ posts

The Official Guide to the Scratchblocks Plugin

Imakegamesalot wrote:

repeat (forever v){
eat::custom
}and ever::@loopArrow looks

I can't figure out the loop arrow someone help

(someone) please <help (me)> ?:: pen

({Pen up :: pen} @addInput)[/quote]
?

My 500th post


Scratch :: events hat
forever
imagine :: motion
program :: looks
share :: sound
end
[scratchblocks]

[scratchblocks]
when (Ollie-Young) joined :: events hat
say [Nothin] :: motion
say [Spam :(] :: looks
say [good :D] :: sounds
say [Current me :/] :: control
say [Soon] :: sensing
say [Soon] :: operators
say [Soon] :: variables
say [Soon] :: list
So, yeah :P :: yellow
[scratchblocks]
Hey guys! I'm , [url=https://scratch-mit-edu.ezproxy.canberra.edu.au/users/Ollie-Young/]Ollie-Young[/url]. I make animations and games on Scratch.
I like this: [url=https://scratchstats.com/Ollie-Young]Scratchstats[/url]
[/scratchblocks]
hamper890
Scratcher
3 posts

The Official Guide to the Scratchblocks Plugin


when green flag clicked
forever
create clone of
end



when I start as a clone
go to
switch costume to

Last edited by hamper890 (Yesterday 02:38:48)

TheCreatorOfUnTV
Scratcher
1000+ posts

The Official Guide to the Scratchblocks Plugin

Please don't test Scratch blocks here!

Last edited by TheCreatorOfUnTV (Yesterday 23:35:51)


This is the start of my signature. Ctrl+Shift+Down to see all of it.

Check out my about me project here! (I'm allowed to advertise here)
1st post
1000th post

;

Powered by DjangoBB