Discuss Scratch

ilikescratchsomuch17
Scratcher
61 posts

Custom C Shaped blocks

Suggest adding custom blocks like this:

define custom block { branch1 :: custom} {branch2 :: custom}
branch1 :: custom // You can also drag out block inputs (whatever what they're called...)
branch2 :: custom

(Sticked to the limitations of scratchblocks :( )
ilikescratchsomuch17
Scratcher
61 posts

Custom C Shaped blocks

That maybe a bad suggest
hoppingcoin404
Scratcher
100+ posts

Custom C Shaped blocks

support
Toodchop
Scratcher
100+ posts

Custom C Shaped blocks

Support. For example,

if <> then{

}wait (1) seconds::control
new_yoshi_641598
Scratcher
100+ posts

Custom C Shaped blocks

no support. if theirs only 1 definition than why do we need 2 branches thtas like haveing this
define branch 1
move (10) steps

branch 1::myblocks

define branch 2
move (10) steps

branch 2::myblocks
ose737
Scratcher
100+ posts

Custom C Shaped blocks

Support!!
ScodexPerson
Scratcher
1000+ posts

Custom C Shaped blocks

I half support because there are multiple workarounds of this suggestion.
I_wantasheep
Scratcher
1000+ posts

Custom C Shaped blocks

just stack a bunch of elifs together
if <> then 



else
if <> then



else
if <> then



else
...
end
end
end
15GerManLev
Scratcher
11 posts

Custom C Shaped blocks

I_wantasheep wrote:

just stack a bunch of elifs together
if <> then 



else
if <> then



else
if <> then



else
...
end
end
end
?????
15GerManLev
Scratcher
11 posts

Custom C Shaped blocks

support, lets say i want this:
repeat while doing idk {

} ::custom
i am absolutely not making a billion custom blocks that are used once
I_wantasheep
Scratcher
1000+ posts

Custom C Shaped blocks

15GerManLev wrote:

I_wantasheep wrote:

just stack a bunch of elifs together
if <> then 



else
if <> then



else
if <> then



else
...
end
end
end
?????
i don't understand how a custom loop should work, i felt like stacking if else blocks would do
ilikescratchsomuch17
Scratcher
61 posts

Custom C Shaped blocks

I_wantasheep wrote:

15GerManLev wrote:

I_wantasheep wrote:

just stack a bunch of elifs together
if <> then 



else
if <> then



else
if <> then



else
...
end
end
end
?????
i don't understand how a custom loop should work, i felt like stacking if else blocks would do

I'm not talking about custom loops. These are called C Shaped blocks. The use might be like this:

define while <boolean> {branch1 :: custom}
repeat until <not <boolean>>
branch1 :: custom
end

Might be useful though (that example also might not be clear though.).
CodeComet6161
Scratcher
1000+ posts

Custom C Shaped blocks

I'm afraid this is a duplicate.
ilikescratchsomuch17
Scratcher
61 posts

Custom C Shaped blocks

CodeComet6161 wrote:

I'm afraid this is a duplicate.

My block shape suggestions are different than @dhdguysg

dhdguysg wrote:

Hello again!
As you saw my last post about pen blocks maybe, I was getting good support, I hope those blocks will come to life, Anyways, Lets get to the subject
I have been looking through a lot of the posts in this thread, Seeing all of the support, I decided to update this post (my english was so bad for it I can't even.)
So here it is!
Custom C blocks
(because custom hat blocks would probably be useless)
So C blocks are really useful, but a lot of people hate having to just re-create their conditional (c-block) functions as it makes code messier.
I've decided to create a post for this feature.
I hope ST reads this.
So I've been working out a way that it works.
define cblock etc
code here
Pretty simple? But how exactly do you create them?
Alright, so you create your new custom block, it has a define. and you put code inside the define, But how does it map out how the c-block will work?
Here's an example.
define repeat*2 (int32)
repeat (int32)
// in here it'd assume ok this is a c block so we'll use this as part of the c block
end
repeat (int32)
// same for here
end

Tell me if this counts as a duplicate or not. If it is. I'll close this topic after 24 hours.
BitcoinFarmer
Scratcher
1000+ posts

Custom C Shaped blocks

Toodchop wrote:

Support. For example,

if <> then{

}wait (1) seconds::control
What's that?
Sorry, but you can just
if <> then

end
wait (1) secs

Last edited by BitcoinFarmer (Feb. 13, 2026 12:07:14)

Robo-Andrei
Scratcher
100+ posts

Custom C Shaped blocks

wait (1) seconds in between {
} :: control
han614698
Scratcher
1000+ posts

Custom C Shaped blocks

I genuinely do not see any more possible C-blocks. It's not like you can cram a bunch of stuff into them??
BeastBoy1836758
Scratcher
3 posts

Custom C Shaped blocks

Imagine all types of blocks as a custom block…

Also maybe different define blocks and vanilla recolouring custom blocks, they are custom after all!

hi :: event hat #ff6680
hi <<hi :: #ff6680> = (hi :: #ff6680)> {
hi :: #ff6680} :: #ff6680

define {block :: #ff6680}

Last edited by BeastBoy1836758 (May 20, 2026 19:43:26)

Powered by DjangoBB