My Blocks: Difference between revisions
m (Image added) |
mNo edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[File:DefineBlockButBroken.png|thumb|The broken 'define {return(1)}' blockset]] |
[[File:DefineBlockButBroken.png|thumb|The broken 'define {return(1)}' blockset]] |
||
'''My Blocks''' is a category that originated from Scratch. |
'''My Blocks''' is a category that originated from [[Scratch]]. When a custom block is created, there is a define hat block that shows up. The code for a custom block is put under its define block. For example: |
||
<scratchblocks> |
|||
define go to x: 5 |
|||
set x to (5) |
|||
when this sprite clicked |
|||
⚫ | |||
go to x: 5 |
|||
⚫ | |||
</scratchblocks> |
|||
⚫ | |||
Whenever the sprite is clicked, the sprite will go to an [[x position]] of 5. |
|||
Inputs can be added to custom blocks, for use in the define code. For example: |
|||
<scratchblocks> |
|||
define delete (item num) of list |
|||
delete (item num) of [my list v] |
|||
when this sprite clicked |
|||
delete (1) of list |
|||
</scratchblocks> |
|||
Whenever the sprite is clicked, the 1st item of the list called "my list" will be deleted. |
|||
⚫ | |||
⚫ | |||
⚫ | |||
==Trivia== |
==Trivia== |
||
*In Scratch 2.0, this category was called More Blocks, was purple instead of pink, and there was a way to set the color (but this affected all custom blocks).<ref>https://en.scratch-wiki.info/wiki/My_Blocks</ref><ref>https://en.scratch-wiki.info/wiki/Edit_Block_Colors</ref> |
*In Scratch 2.0, this category was called More Blocks, was purple instead of pink, and there was a way to set the color (but this affected all custom blocks).<ref>https://en.scratch-wiki.info/wiki/My_Blocks</ref><ref>https://en.scratch-wiki.info/wiki/Edit_Block_Colors</ref> |
||
Line 11: | Line 29: | ||
**If the extension color is changed, the top right preset color will display that color in the preview but have the 3.0 extension color selected, and if "OK" is pressed without modifying the color, the preset color is used. |
**If the extension color is changed, the top right preset color will display that color in the preview but have the 3.0 extension color selected, and if "OK" is pressed without modifying the color, the preset color is used. |
||
*The top row of preset colors are the default Scratch 3.0 colors. |
*The top row of preset colors are the default Scratch 3.0 colors. |
||
*When the "Block palette category icons" addon is enabled, the icon for this category is a cube, as shown below in the gallery. |
|||
==Gallery== |
==Gallery== |
||
<gallery> |
<gallery> |
||
Line 21: | Line 40: | ||
CustomColoredBlockCreation.png|Creation of a colored block |
CustomColoredBlockCreation.png|Creation of a colored block |
||
ColoredCapBlock.png|Colored cap block |
ColoredCapBlock.png|Colored cap block |
||
Block_icon.svg|Cube icon (with block palette category icons on) |
|||
</gallery> |
</gallery> |
||
==References== |
==References== |
||
<references/> |
<references/> |
||
{{CategoriesNav}} |
|||
[[Category:Vanilla Categories]] |
[[Category:Vanilla Categories]] |
Latest revision as of 23:02, 8 July 2024
![](http://static.miraheze.org/pmodwiki/e/ef/DefineBlockButBroken.png)
My Blocks is a category that originated from Scratch. When a custom block is created, there is a define hat block that shows up. The code for a custom block is put under its define block. For example:
define go to x: 5 set x to (5) when this sprite clicked go to x: 5
Whenever the sprite is clicked, the sprite will go to an x position of 5.
Inputs can be added to custom blocks, for use in the define code. For example:
define delete (item num) of list delete (item num) of [my list v] when this sprite clicked delete (1) of list
Whenever the sprite is clicked, the 1st item of the list called "my list" will be deleted.
Custom blocks in PenguinMod can be set to a specific block type (reporter, cap, boolean, and stack [default]), or be set to a custom color, with a list of preset colors being available. To select a preset color, just simply click the color.
Blocks
return ()::custom cap
(allowing the returning of values)
Trivia
- In Scratch 2.0, this category was called More Blocks, was purple instead of pink, and there was a way to set the color (but this affected all custom blocks).[1][2]
- There are some special behaviors that result from setting options in the "Customizable block colors" addon, which originated from TurboWarp.
- The default color that is set when creating a new custom block can be changed by setting the "Custom" option.
- If the extension color is changed, the top right preset color will display that color in the preview but have the 3.0 extension color selected, and if "OK" is pressed without modifying the color, the preset color is used.
- The top row of preset colors are the default Scratch 3.0 colors.
- When the "Block palette category icons" addon is enabled, the icon for this category is a cube, as shown below in the gallery.
Gallery
-
A customized "custom" option
-
Creation screen (with Scratch 2.0 custom block color)
-
Creation of a custom cap block
-
Creation of a reporter block (that reports text)
-
Creation of a reporter block (that reports a number)
-
Creation of a boolean block
-
Creation of a colored block
-
Colored cap block
-
Cube icon (with block palette category icons on)
References
v • e Categories Nav | |
---|---|
Vanilla | Motion · Looks · Sound · Variables (Variables · Lists) · Events · Control · Sensing · Operators · My Blocks |