Build walls, a start point, and an endpoint, and watch the cursor move from start to end taking the shortest path around the walls! To delete blocks, hold space while using the walls tool.
This is a remix of my 16-year-old Pathing AI project, which was needlessly complicated. Back in the Scratch 1.0 days, there was a small delay while executing loops. To make the algorithm work without extreme lag, I minimized the loops and duplicated the code instead. This had the effect of making it run quickly but making the editor impossible to work with. Everyone knows this is bad practice! But it was necessary then. Since Scratch 2.0, Turbo mode was introduced, making this workaround completely unnecessary. I cleaned up the blocks so anyone reading it can understand what is happening, and added a few helpful comments to it too. I also cleaned up the UX a bit. Enjoy & don't forget to love-it! Conceptual description of the algorithm thanks to BoltBait: http://scratch.mit.edu/discuss/topic/7160/