New "Magic Select" function in the editor

Implementation of magic selector of building blocks in step 2 of the editor, selects necessary blocks to create their materials and optimizes the selection by order of priority.