Skip to content

Custom blocks show red and throw (IR: Unknown stacked block) — guidance on which files are required for native-level blocks #1117

@saing048246638

Description

@saing048246638

Hello, I am currently trying to add a custom category called MoonCar to TurboWarp. The category button and blocks appear correctly in the GUI, but all custom blocks render as solid red. When I run the project, I consistently get the following error:

(Sprite1: Error: IR: Unknown stacked block: mooncar_connect)

At the moment, the only files I know how to modify are make-toolbox-xml.js and the category color configuration (blockColors). With just these two changes, the custom button and category appear correctly, but it seems that the opcode is not properly registered on the VM/runtime side.

I would like to kindly ask:

  • Which VM/runtime files are required to properly register a custom opcode so that the red blocks and the IR: Unknown stacked block error can be resolved?

  • If I want this custom category to behave like native Scratch/TurboWarp blocks (rather than plugin-style blocks), which files are generally required to be modified in total (such as extensions, runtime, GUI, colors, etc.)?

If there is a minimal working example or a list of essential file paths that I can follow, I would be very grateful.
Thank you very much for your time and help.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions