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]}); Copy
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]});
Blockbench's undo system of the current project to register edits to the project and switch between them
Example