Discuss Scratch
- Discussion Forums
- » Suggestions
- » Better Custom Blocks
- PlatoHero_
-
Scratcher
500+ posts
Better Custom Blocks
I support you as well. When I want to make artificial intelligence, I have to use many
blocks, but this could change with my boolean and reporter blocks.
If such an update happened, programming with scratch would be much easier.
blocks, but this could change with my boolean and reporter blocks.
If such an update happened, programming with scratch would be much easier.
Last edited by PlatoHero_ (Oct. 7, 2020 21:36:09)
- PkmnQ
-
Scratcher
1000+ posts
Better Custom Blocks
Y'know, I had something that was like this.Cool, that'll be closed as a dupe, because this was in 2013.
- trieuminh
-
Scratcher
100+ posts
Better Custom Blocks
I don't think these are the same thing.Y'know, I had something that was like this.Cool, that'll be closed as a dupe, because this was in 2013.
- PkmnQ
-
Scratcher
1000+ posts
Better Custom Blocks
Even if it was, this wouldn't be closed down. This isn't the dupe.I don't think these are the same thing.Y'know, I had something that was like this.Cool, that'll be closed as a dupe, because this was in 2013.
- gosoccerboy5
-
Scratcher
1000+ posts
Better Custom Blocks
Bump. I was messing around with snap and I learned that you can actually apply recursion to custom reporters
- Hearst10
-
Scratcher
100+ posts
Better Custom Blocks
Support all! All are used in real coding; why not here?support! exactly
- _tenfictions_
-
Scratcher
100+ posts
Better Custom Blocks
i love how this is still alive anyways where 3.0 mockup
- PkmnQ
-
Scratcher
1000+ posts
Better Custom Blocks
i love how this is still alive anyways where 3.0 mockup
Sure.AonymousGuy posted:3.0 has released alredy so can you give use a pic of what it should look like in 3.0?
[snip]
- gosoccerboy5
-
Scratcher
1000+ posts
Better Custom Blocks
I can give you one with the Scratchblocks plugin
Here's an example that I came across:
My bad 
Here's an example that I came across:
define (factorial (n:: custom))Edit: oh darn sorry forgot to close the tag
if <(n :: custom) = [0]> then
report [0] :: control cap
else
report ((n:: custom) * (factorial of (n:: custom) - [1]))::control cap
//Here's how it would look:
(factorial of [7]:: custom)
My bad 
Last edited by gosoccerboy5 (Nov. 6, 2020 14:00:59)
- space_elephant
-
Scratcher
500+ posts
Better Custom Blocks
I can give you one with the Scratchblocks plugin
Here's an example that I came across:define (factorial (n:: custom))
if <(n :: custom) = [0]> then
report [0] :: control cap
else
report ((n:: custom) * (factorial of (n:: custom) - [1]))::control cap
//Here's how it would look:
(factorial of [7]:: custom)
[/quote]
0! = 1.
- Vaibhs11
-
Scratcher
1000+ posts
Better Custom Blocks
Support for the bootlean! That could be a fully different way to customize but great for experienced scratchers!
- gosoccerboy5
-
Scratcher
1000+ posts
Better Custom Blocks
Support support and supportand why and why and why

- Marc92020
-
Scratcher
1000+ posts
Better Custom Blocks
Support but a feature could also be to add a dropdown into the block.
- sathvikrias
-
Scratcher
500+ posts
Better Custom Blocks
Support but a feature could also be to add a dropdown into the block.yes, and also custom c would be good as an input which would look like a stack block, and it would report what is placed in the c. that would need a block called
run{
}::controland(call () :: control
- Marc92020
-
Scratcher
1000+ posts
Better Custom Blocks
Yeah. A custom C block would be cool! And a custom hat, and a cap.Support but a feature could also be to add a dropdown into the block.yes, and also custom c would be good as an input which would look like a stack block, and it would report what is placed in the c. that would need a block calledrun{and
}::control(call () :: control
- sathvikrias
-
Scratcher
500+ posts
Better Custom Blocks
hat and cap are good. also here is how i think we should do a hat:Yeah. A custom C block would be cool! And a custom hat, and a cap.Support but a feature could also be to add a dropdown into the block.yes, and also custom c would be good as an input which would look like a stack block, and it would report what is placed in the c. that would need a block calledrun{and
}::control(call () :: control
well, first the input slot options would be the same, [], <> the definition would look like
when <> :: custom hatidea for script vars:
use script variable (var::#dd0000){
}::variablesand lists:use temporary list (list::#ff8800){
}::listanduse script variable [var]{
}::variablesand lists:use temporary list [list]{
}::listlast thing: please add back number inputs in custom blocks!Last edited by sathvikrias (Nov. 13, 2020 22:51:46)
