-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hacked Blocks Collection tweaks #969
Hacked Blocks Collection tweaks #969
Conversation
- Rename extension from Hacked Block Collection to Hidden Blocks - Add Documentation button linking to https://en.scratch-wiki.info/wiki/Hidden_Blocks - Remove sensing reporters with string inputs (these can be worked around by dragging a join block into their normal variants) - Move pen hex reporter into it's own subcategory, and add music note and micro:bit matrix reporters.
Just a screenshot of a few quirky blocks from the extension
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is brilliant, I left some comments
@@ -26,38 +29,37 @@ | |||
xml: '<block id="while" type="control_while"/>', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you're right in that we should remove "while", I left it in by mistake while testing the extension. It doesn't need to be here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly I think we should remove while
from the regular Control category and keep it in this extension. I've never used it and it is the only block that has been changed in the entire default block palette now that for
is gone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
People were putting in issues when the "for" loop was removed, claiming it was a bug (and that was necessary to fix some strange behaviours).
Removing "while" from the main palette, while certainly the desirable option, is not a good idea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Being one of those people, I was annoyed that there was no way to get the for loop back if I still needed it other than searching for an existing project that has the block or hacking it in myself.
With this, we only need to mention that the while loop has been transferred to an extension category (like when Music and Pen were moved in 3.0's release) and you can easily get it back by importing Hidden Blocks.
can you find a way to fit the word "hacked blocks" into the description so it shows up when people search for that? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the for loop would be less buggy if we changed the default variable from "i" to the "my variable" that already exists in default projects. Can't figure out how to set the value though since there's almost no documentation for Scratch.BlockType.XML.
That wouldn't resolve it fully, because you can just deleted "my variable" (like many people do), and the problem starts up again. |
Thanks 😄 |
Resolves #960
This makes some changes to LilyMakesThings' Hacked Blocks Collection extension.
when this sprite touches ( )
block to a sensing menu to also list other sprites, since the block supports itIt also adds a screenshot image into the extension gallery showing some of the blocks.
![image](https://private-user-images.githubusercontent.com/113677241/263557039-4e53c4c6-6069-4b82-87bb-551895adff16.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzNDkyOTEsIm5iZiI6MTcyMTM0ODk5MSwicGF0aCI6Ii8xMTM2NzcyNDEvMjYzNTU3MDM5LTRlNTNjNGM2LTYwNjktNGI4Mi04N2JiLTU1MTg5NWFkZmYxNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxOVQwMDI5NTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03MWM4MWU3MTMwNGZiZGU1NTQ5MmJkOTI0OGM1NzA4NjczODgzNjg5YjU3MmZmNzkwNDY0ZGZkMmJhYTE1NmYyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.aE_8tnUPTdZjOMIX0gO0iWOWTKUEnqX327cOYVf0Izc)
Try it out here!