Skip to content

TheShovel/block-ai

Repository files navigation

icon-crop

Block AI

The first ever chatbot to help you code in Scratch (TurboWarp/PenguinMod)

Features

  • Displays code with scratchblocks
  • Can read the current code in the sprite you are working in
  • Automatically selects the best Gemini model for you
  • Stylish simple to use UI with adaptable colors
  • Compatibility with most TurboWarp forks

How to use

PenguinMod

Load it from this link: PenguinMod with BlockAI or Load it into an existing project using this link https://extensions.penguinmod.com/extensions/TheShovel/blockAI.js

TurboWarp

Copy the text from here and paste it into the extension loader window. Make sure to run it unsandboxed!

How it works

It uses the Gemini API with a huge block of text with a lot of information regarding scratchblocks and how Scratch works. It then renders the output with scratchblocks and explains what it did.

Limitations

It doesn't know much about other custom extensions. It's knowledge is limited to the Scratch block palette.

Contributing

If you want to contribute, there are two essential files in the repository: blockAI.js and trainingdata
If you want to contribute to it's knowladge, you should look in trainingdata.
If you want to contribute to the interface, you should look in blockAI.js.

Example uses

In PenguinMod image image In TurboWarp image