Sb3utility Tutorial -

SB3Utility is a desktop application designed to decompress, edit, and recompress Scratch 3.0 (.sb3) files. Unlike the official Scratch editor, SB3Utility allows you to:

Important: SB3Utility is not an editor for code logic (blocks). To change scripts, you still need the Scratch editor. SB3Utility modifies the assets and structure of the project.

Let’s say you want to export a character or an outfit to edit in Blender or simply view the textures.

1. Opening a File

2. Navigating the "Object Tree"

3. Exporting a Mesh (3D Model)

4. Exporting Textures


| Error | Cause | Solution | |-------|-------|----------| | “Unsupported version” | Game uses a newer archive format | Update SB3Utility to the latest release. | | Texture import fails | Wrong dimensions (not power of two) | Resize to 256x256, 512x512, 1024x1024, etc. | | Mesh looks broken in game | Vertex count changed or normals missing | Do not add/remove vertices; recalc normals in Blender. | | Archive won’t save | File is read-only | Remove read-only attribute from the .unity3d file. | | Missing shaders after modding | Material references broken | Do not change material names; use original shaders. |


Blocks are the building blocks of Scratch programs. Here's how to access and manipulate blocks:

# Get a block by its ID
block = sprite.blocks['block_id']
# Create a new block
new_block = sb3utility.Block('motion_move_steps', 'STEPS': 10)
sprite.blocks.append(new_block)

Here's an example of how to load a Scratch project using sb3utility: sb3utility tutorial

import sb3utility
# Load a Scratch project
project = sb3utility.Project('path/to/project.sb3')
# Print the project's name
print(project.name)
# Print the project's targets (sprites, stages, etc.)
for target in project.targets:
    print(target.name)

Steps:

  • Change it to "visible": false.
  • Click Save JSON.
  • Save the .sb3 project.
  • What else can you edit in JSON?

    Warning: Invalid JSON will corrupt your project. Always make a backup before manual editing. SB3Utility is a desktop application designed to decompress,

    When you launch SB3Utility, you will see:


    To download SB3 Utility, visit the official GitHub repository and follow the installation instructions for your operating system.