Try the new Block Factory!

267 views
Skip to first unread message

Maribeth Moffatt

unread,
Jun 28, 2024, 9:03:19 PMJun 28
to blo...@googlegroups.com
Hello Block Builders!

The Block Factory is a tool Blockly has published for a long time to help you create custom blocks using blocks. In recent years it has not been fully updated to keep up with changes to Blockly & the JavaScript ecosystem such as the availability of plugin fields or esmodules. The legacy Block Factory is only compatible with version v10 and earlier of Blockly, since it does not have support for plugin fields like the angle, multiline text, and colour fields which are no longer shipped with core Blockly in v11+.

Starting today you can try out the new Block Factory tool which is linked on our plugin showcase site. You can also read more about how it works and how to migrate your block definitions from the old tool here.

The new tool includes support for plugin fields and it also lets you specify if you load Blockly through `import` statements or script tags, since the format for these is slightly different. If you're the owner of a plugin field, you can even add support for your field to the block factory so that others can easily create blocks with your field.

Currently the tool does not support the other features of Developer Tools such as the workspace or toolbox configuration. We will not be deleting the old tool at this time so you can keep using them at the old location if desired.

I hope you enjoy the new Block Factory and find it useful! If you find problems with it, please file an issue against blockly-samples. If you have a feature request, feel free to file that too, but do note that our team capacity for taking on feature requests is decreasing as I will be out for maternity leave for the near future.

Best,
Maribeth

fu6...@gmail.com

unread,
Jun 28, 2024, 11:29:26 PMJun 28
to Blockly
Hi,  Maribeth

I've discovered an issue in BlockFactory v10.4.3. When I try to load an existing block, an error occurs as demonstrated in the video. Please guide me on how to fix this problem. Thank you.  

Thank you.
fu6...
mari...@google.com 在 2024年6月29日 星期六上午9:03:19 [UTC+8] 的信中寫道:
blockfactoryV10.4.3.mp4

Christopher Allen

unread,
Jul 1, 2024, 8:42:20 AMJul 1
to blo...@googlegroups.com
Hi,

I've discovered an issue in BlockFactory v10.4.3. When I try to load an existing block, an error occurs as demonstrated in the video. Please guide me on how to fix this problem. Thank you.

I'm not sure if the old block factory is going to receive any further updates / bug fixes—I believe the plan is to delete it—but in the meantime it appears that you have encountered a known bug: issue #6820, blockly developer tools block display is broken.

Is this bug preventing you from porting your blocks to the new block factory?


Christopher

fu6...@gmail.com

unread,
Jul 3, 2024, 10:59:25 AMJul 3
to Blockly
Hi  Christopher,

Thank you for your explanation on this issue. I have just fixed the error in blockfactory v10.4.3 and created an offline executable version. Here is the download link.  

Best wished
fu6...

cpca...@google.com 在 2024年7月1日 星期一晚上8:42:20 [UTC+8] 的信中寫道:
blockfactoryV10.4.3.mp4

Beka Westberg

unread,
Jul 3, 2024, 1:04:22 PMJul 3
to blo...@googlegroups.com
Hello!

Would you be interested in putting up a PR with your fix for the issue? We would be happy to accept it!

Best wishes,
--Beka

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/e16d2d9e-03ad-491b-beeb-4f3cd7bc5248n%40googlegroups.com.
Message has been deleted

fu6...@gmail.com

unread,
Jul 11, 2024, 1:17:06 PMJul 11
to Blockly
Hi  Christopher,  Beka

I tried to guess the original code's intention and modified the code again as demonstrated in the video. I hope this helps.  Here is the download link.  

1.jpg

2.jpg

3.jpg



Best wishes
fu6...


fu6...@gmail.com 在 2024年7月4日 星期四下午1:26:03 [UTC+8] 的信中寫道:
Hello  Beka,

I'm not sure if the parts I have corrected are entirely accurate or if the modifications will meet the usage habits of most users. Here are the parts I have modified:

0.PNG

1.PNG
  
2.PNG

3.PNG



Best wishes
fu6...
bwes...@google.com 在 2024年7月4日 星期四凌晨1:04:22 [UTC+8] 的信中寫道:
blockfactory.mp4

fu6...@gmail.com

unread,
Jul 13, 2024, 3:09:21 AMJul 13
to Blockly
Hi,

I am trying to change the program functionality again as demonstrated in the video. If a block already exists in the dropdown menu, it must be selected and loaded from the dropdown menu before it can be edited.

Best wishes
fu6...

fu6...@gmail.com 在 2024年7月12日 星期五凌晨1:17:06 [UTC+8] 的信中寫道:
blockfactoryV10.4.3_limit.mp4

Aaron Dodson

unread,
Nov 4, 2024, 4:04:06 PM (11 days ago) Nov 4
to Blockly
Hey all,

Just wanted to circle back around here and let folks know that we've resolved an issue that could cause block previews to fail to load in the old block factory, which was preventing some folks from being able to migrate to the new block factory. Please give the new block factory a try, and let us know if you encounter any issues there (or any issues in the old version that are blocking migration for you!)

- Aaron

Clément Contet

unread,
Nov 5, 2024, 11:27:44 AM (11 days ago) Nov 5
to Blockly
Hi,

What I really miss from the old version is the ability to export all blocks at once!

Thanks,

Clément

Reply all
Reply to author
Forward
0 new messages