From ca2a9dc222b39aed9bfc0fd55f652fe04f358271 Mon Sep 17 00:00:00 2001 From: pumpkin <113677241+pumpkinhasapatch@users.noreply.github.com> Date: Tue, 29 Aug 2023 06:58:03 +1000 Subject: [PATCH] Lily/HackedBlocks: various tweaks (#969) --- extensions/Lily/HackedBlocks.js | 35 ++++++++++++++++---------------- images/Lily/HackedBlocks.png | Bin 0 -> 9544 bytes 2 files changed, 17 insertions(+), 18 deletions(-) create mode 100644 images/Lily/HackedBlocks.png diff --git a/extensions/Lily/HackedBlocks.js b/extensions/Lily/HackedBlocks.js index 771e0bf219..f48bfe6ccf 100644 --- a/extensions/Lily/HackedBlocks.js +++ b/extensions/Lily/HackedBlocks.js @@ -1,7 +1,8 @@ -// Name: Hacked Block Collection +// Name: Hidden Block Collection // ID: lmsHackedBlocks -// Description: Various modified vanilla blocks. +// Description: Various "hacked blocks" that work in Scratch but are not visible in the palette. // By: LilyMakesThings +// By: pumpkinhasapatch (function (Scratch) { "use strict"; @@ -10,11 +11,13 @@ getInfo() { return { id: "lmsHackedBlocks", - name: "Hacked Block Collection", + name: "Hidden Blocks", + docsURI: "https://en.scratch-wiki.info/wiki/Hidden_Blocks#Events", blocks: [ + // Use the sensing_touchingobjectmenu instead of event_ to also list sprites, since the block supports it { blockType: Scratch.BlockType.XML, - xml: '', + xml: '', }, "---", { @@ -26,38 +29,34 @@ xml: '', }, "---", + // Counting blocks that function similarly to variables { blockType: Scratch.BlockType.XML, - xml: 'enter', - }, - { - blockType: Scratch.BlockType.XML, - xml: 'Stage', - }, - { - blockType: Scratch.BlockType.XML, - xml: '#ffffff', + xml: '', }, { blockType: Scratch.BlockType.XML, - xml: '#ffffff#ffffff', + xml: '', }, { blockType: Scratch.BlockType.XML, - xml: '', + xml: '', }, "---", { blockType: Scratch.BlockType.XML, - xml: '', + xml: '60', }, + "---", { blockType: Scratch.BlockType.XML, - xml: '', + xml: '', }, + // Dot matrix input from the micro:bit extension + // Returns a 5x5 binary grid of pixels depending on what was drawn. White pixels are 1 and green pixels are 0 { blockType: Scratch.BlockType.XML, - xml: '', + xml: '1111110101001000010001110', }, ], }; diff --git a/images/Lily/HackedBlocks.png b/images/Lily/HackedBlocks.png new file mode 100644 index 0000000000000000000000000000000000000000..a89998c0ddd9486430cb828462926c3d00ee1451 GIT binary patch literal 9544 zcmaKSXE+?r6EJDIsHX%`L%3+seh6`T@0=P=4beMMqJ`7j>AkyCP78tvPVeP{5cTxl zyVw8y_I`Qi%kIuI&&=-5Jkxd~HPqyZ@M-a}u&{^}6=bxqu%3Xiu&{x+PaiQHs~?IU z5f>UNIM8&>L(2L8mZ=^c9pw(@K5TdI@9!TMP;YK- z?(Xic{t9{ct&2`#R4G@PnVG4YsCu|Ld05Zdsll3ze|@?$|1jV%Rzy@$QStDvBr8vS zp-k1WDEZ-X?PXi^!&2}Zj5W01S5)$7#P*Vi9Tr_XQhj!%x87WTbPlxyr_Q7< z!KjrBl|#ouF&NBp&bzIVe1%+vi`z^395byZEv9V4ze!Xxr4+?eo5VH2#Esv(ySuBF zs&^*gi<#{6^Yg*M!IS%wD%C1;>70+cI9P0xlas@oVwRUz{=`#FPEJL{Wbe(^ujjHZ zH+;6Sv1x8;-9=Y;#+)6gw`K3wVxhJd zSAKe5G-DMm40p_Tlq{62qhgk7OgXZ&7ZGGC`B%$(%YS$O_AK^xa}Y*W=raF9ehw+Z!^6{* z!&(BRh-2b@5E_Q1?Oi zypd(=s-e2&HiMD|r~aCq>EgA4ullAQ%iUi>+izMhv-=qI-TstiabeVC6sFyO@t0{q zo}4i3k|Xxw@BUd#*X+ey#eRc!X`Tc!mj_cM00x6Emz&H>7PGOim(rp=J?hG)Ro*RL(&6wRVv8Fy2vu{<24x>)uy3xfB+f1{#lJJk$z!e7bU7u>0N_I& zyr&4m0wm)OR|mhbJnHiQgOb}yIKVvk`kwR4UxYtdzq)=k4GJhQ?ArkxSJbp}1FH!J|L@fCPGvebaMxW( z7i>xeb8O5B5c+=vE@TqR-C4l{C7Z~Wj0;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