Blockbench Reference Docs
    Preparing search index...

    Variable Undo

    Blockbench's undo system of the current project to register edits to the project and switch between them

    Undo.initEdit({elements: []});

    let new_cube = new Cube({name: 'kevin'}).init();
    let other_cube = new Cube({name: 'lars'}).init();

    Undo.finishEdit('Add new cubes', {elements: [new_cube, other_cube]});