Just some blocks!

hello! so i added some a lot of block that can help you in your projects!
here’s the most resent:

<am?::sensing>
(run random (() @addInput :: ring) boolean::control)

here it is!
just some blocks by cybercube | Snap! Build Your Own Blocks

see inside the project first then export the custom blocks

hmm…
usefull blocks script pic (1)
usefull blocks script pic (2)

sorry, i wasn’t clear
i was showing you those blocks to suggest you should fix them (if they’re meant to be included, of course)

i fixed the text list okay

:+1:
imho, i actually think that block and hide all sprites :: looks could be useful, good job!

It seem snapblocks don’t support brackets [.]

By the way, idk why you guys use snapblocks on the forum since “script pic” exist…

i think it’s because snapblocks replaces brackets with inputs

for 1 block, it is way faster to do snapblocks most times (provided you use [sb] instead of [snapblocks] )
text list [\[1,2,3,4\]] ::list reporter is the same as split [\[1,2,3,4,\]] by [[json] v] . Otherwise this is great!

Yes and no. It does use square brackets for text inputs, but you can put a backslash before them to make snapblocks not parse them (aka, show it as text instead of replacing it with an input).

Faster for the op, but if i read the forum and i have interest into a block, i have to open the project and scriptpic by myself.

And in 5 years, when the op will be ban or had close his account: 404 not found…

The script pic will be forever on the forum (maybe?)

Thk for clarification…

For me, if I’m just mentioning a single primitive block, anapblocks is quick and simple, but if I’m sharing a larger script meant for people to actually use or a custom block, I would use a script pic.

If i’m being truly honest, I really am not sure what this means. Could you pls clarify?

usefull blocks script pic
creates
[“1”, " 2", " 3", " 4"] (with spaces)
instead of
[“1”, “2”, “3”, “4”] (without spaces).
Instead, split by " ,"!


First, there’s actually a loop for that called the FOR loop:

for ((i)) = (1) to (10){
}

(‘i’ will be 1,2,3,4,5,6,7,8,9,10, and you drag it out of the upvar slot)
And even FOR EACH:

for each ((item)) in $list{
}$loop::lists

Where ITEM is each item of a loop,
but the most elegant solution, because of hyperization is…

What's hyperization

usefull blocks script pic (2)
returns 6, but what happens for a list?
usefull blocks script pic (3)
Well, that returns
download
Because TIMES is hyperized; 4 \times 8 is 32, 3 \times 2 is 6.
And it returns that list because TIMES is hyperized.


The (IS MYSELF A SPRITE) is there because the stage can hide,
and the REPORT is there 'cause of a weird bug…

Hope this helps! :slight_smile:

okay i added new blocks, and with help of @redgeographysnap for helping me with the code.

, and usefull blocks script pic is usefull blocks script pic (1).

Other than that, what did you add?

I made a mistake:
It was actually ", ", sorry!

its okay

It has been confirmed by jens that this won’t be “fixed” because the part that is unintended is putting a list into the first input at all. Because this is unintended, it is even possible (albeit unlikely) that this ability gets entirely removed in the future. Thus, I would recommend using FOR EACH instead, like so:


Additionally, what I do to get all the sprites including myself if I’m not a sprite is this:
usefull blocks script pic (1)
my [stage V] is used instead of the default dropdown in ask because the stage can be renamed.