Custom blocks (Part 1)

@ashtyboi
Not really, but there's a simple (ish) workaround:
image -->


Actually, I guess I could make a non-javascript (kinda) block using this. Hang on

The block itself doesn't use javascript, but it has blocks in it that use javascript.

Done.

Can you add a block that acts like the blockJS-4.0 script pic (1) block but with sprites? It should also include the edge option. Like this:
blockJS-4.0 script pic

Sorry, I don't know how to make the bounce part of it. (Way more complicated than you might think.)

untitled script pic (19)

This is already a primitive! Just use
untitled script pic (20)
The definition is also unnecessarily complicated.
Also, if you turn off the negative? and decimal? flags, the block basically loses all meaning, since it just reports 1. Why even have those?


untitled script pic (21)

There's a much simpler way to make this definition:


The "reverse string" block is missing a definition.


untitled script pic (29)

This can be done much more easily:
untitled script pic (24)


untitled script pic (23)

...What?
Why don't you just use untitled script pic (26)?


untitled script pic (27)

Can be simplified:
untitled script pic (28)

Because untitled script pic (26) has precision issues. The blocks I made simply make precision better.

Okay, sorry for all of that. Here are some blocks that deal with multilines.
blockJS-5.0 script pic (2)


Will you add my textbox blocks?


(var is a text variable dropdown input)

(box is a read-only number input)
(Playing with morphs is so fun!)

Done.

you can add any of my blocks, also please add a set of blocks that you can use to get data from the forums.

Why do you need that?

1: why do you always ask that
2: so I can make a project that tells you the (nth) post, topic and other things like that.

If I had to take a wild guess, I would say that maybe it's because I want to know why you need that.

Can you add menu blocks? Even if you think the dialog boxes are enough, can you do it?

How do i make the "value of textbox" block work?
image
Also there should be multiline textbox and monospace font, and also, set [var] textbox to [text]
(multiline textbox + monospace font = coding lol)

Fixed.

Sorry, I don't know how to do that.

i dont think it got fixed
image

Fixed.

ok so i figured out how to make it monospace

box.contents().text.fontName = 'monospace'