interface EventBlock {
    arguments?: Record<string, Argument>;
    blockIconURI?: string;
    blockType: "event";
    filter?: ("target" | "sprite")[];
    func?: string;
    hideFromPalette?: boolean;
    isEdgeActivated: false;
    opcode: string;
    shouldRestartExistingThreads?: boolean;
    text: string | string[];
}

Hierarchy (View Summary)

Properties

arguments?: Record<string, Argument>
blockIconURI?: string
blockType: "event"
filter?: ("target" | "sprite")[]
func?: string
hideFromPalette?: boolean
isEdgeActivated: false

This must be explicitly set to false, otherwise the block will not work. Event blocks cannot be edge activated. Use hat instead.

opcode: string
shouldRestartExistingThreads?: boolean

Defaults to false.

text: string | string[]