Discuss Scratch

tycable
Scratcher
82 posts

Better Custom Blocks

We need better custom blocks!
define block if [<>] then {} else use [[]] and {} and repeat [()] {} (... :: tip stack)
(<>) {if <<>> then
...
end} ([]) {
else ([]){... ([]) :: tip stack} :: custom-arg} (()) {repeat (())
...
end} :: custom-arg cap

set [foo v] to [0]
block if <mouse down?> then {think [Mouse down.] for (2) secs} else use ([hi]) and {say ([hi]) for (2) secs} and repeat (10) {change [foo v] by (1)}

define <true>
<[0] = [0]> :: custom-arg cap

define (pi)
(3.14159265359) :: custom-arg cap

define <(broadcast ⛛ :: custom-arg) received?>
<((broadcast ⛛ :: custom-arg) :: variables) = [true]> :: custom-arg cap

when I receive [message1 v]
set [message1 v] to [true]
wait (0.00001) secs
set [message1 v] to [false]

<[message1 v] received? :: custom-arg>

defense named [Mario and Yoshi] against [evil kumquats] and loves [Remixes] and (r(a(i(n(b(o(w :: #ff0000) :: #ff00ff) :: #0000ff) :: #00ffff) :: #00ff00) :: #efef00) :: #ffa500) :: #ff0000)) and :: hat extension
move (10) steps away from (enemy :: extension) :: motion
Minecraft command: [/kill @e(type=evilkumquats)] :: extension //Wait...
move [on top of v] [swirly platform v] :: motion
stop [this post v]
Heh, heh.
-Accio-
Scratcher
1000+ posts

Better Custom Blocks

What are you suggesting here, please use words, and give each new block it's own suggestion topic.

Hi There! I'm -Accio-

But you can call me the Duplicate Destroyer

Potterhead | Ravenclaw | Forum Helper | SDS Curator | Science | Math


Check out the current SDS “Prehistoric” here:
https://scratch.mit.edu/studios/25273127/
tycable
Scratcher
82 posts

Better Custom Blocks

Oh, okay. Typing {} in a custom block would make it have a C-block mouth. Drag the “…” to a mouth to show what will be the real mouth.

defense named [Mario and Yoshi] against [evil kumquats] and loves [Remixes] and (r(a(i(n(b(o(w :: #ff0000) :: #ff00ff) :: #0000ff) :: #00ffff) :: #00ff00) :: #efef00) :: #ffa500) :: #ff0000)) and :: hat extension
move (10) steps away from (enemy :: extension) :: motion
Minecraft command: [/kill @e(type=evilkumquats)] :: extension //Wait...
move [on top of v] [swirly platform v] :: motion
stop [this post v]
Heh, heh.
NilsTheBest
Scratcher
1000+ posts

Better Custom Blocks

I don't understand what you are suggesting. Could you explain in detail what each function would do?

UstedButler
New to Scratch
2 posts

Better Custom Blocks

I agree I like better custom blocks too!
tycable
Scratcher
82 posts

Better Custom Blocks

NilsTheBest wrote:

I don't understand what you are suggesting. Could you explain in detail what each function would do?
Here I go: If you add {} to a custom block, it'll have a “mouth” for a C block, or an E block if you add 2. Take the “…” and put 1 in every mouth. Put another C block around the … as well! That's the C one, and the boolean/reporter: It would be a define block, but there'd be a boolean/reporter slot at the bottom. Like this!
define <...>
<> :: cap custom
define (...)
() :: cap custom
You could just put a bunch of boolean/reporters-and-numbers at the bottom hole. The boolean/reporter you made would act like all those booleans/reporters at once.

defense named [Mario and Yoshi] against [evil kumquats] and loves [Remixes] and (r(a(i(n(b(o(w :: #ff0000) :: #ff00ff) :: #0000ff) :: #00ffff) :: #00ff00) :: #efef00) :: #ffa500) :: #ff0000)) and :: hat extension
move (10) steps away from (enemy :: extension) :: motion
Minecraft command: [/kill @e(type=evilkumquats)] :: extension //Wait...
move [on top of v] [swirly platform v] :: motion
stop [this post v]
Heh, heh.
tycable
Scratcher
82 posts

Better Custom Blocks

We also need dropdowns and colors and Added Inputs for custom blocks. We can select which kind it is from a list. One is “position”, one is “sprites”, one is “sprites, stage, and mice”, one is “variable” and so on. Maybe even “custom”!
define [var ▼] color to with colors {[1l]>[2l]>[3l]>[4l]>[5l]>} until <dun> :: custom_arg
repeat until <dun>
set (variable ▼) color to (1l) :: variables
set (variable ▼) color to (2l) :: variables
set (variable ▼) color to (3l) :: variables
set (variable ▼) color to (4l) :: variables
set (variable ▼) color to (5l) :: variables
end

Last edited by tycable (Jan. 17, 2019 19:28:38)


defense named [Mario and Yoshi] against [evil kumquats] and loves [Remixes] and (r(a(i(n(b(o(w :: #ff0000) :: #ff00ff) :: #0000ff) :: #00ffff) :: #00ff00) :: #efef00) :: #ffa500) :: #ff0000)) and :: hat extension
move (10) steps away from (enemy :: extension) :: motion
Minecraft command: [/kill @e(type=evilkumquats)] :: extension //Wait...
move [on top of v] [swirly platform v] :: motion
stop [this post v]
Heh, heh.

Powered by DjangoBB

Standard | Mobile