To see the enchantments on your new pickaxe, open your inventory by pressing the E key. Now you will see the closest player (which is you) get an enchanted diamond pickaxe. When a player pulls the lever, the command block will be activated. In this example, we are going to use a lever to activate the command block.
Now, activate the command block with the redstone device such as a lever, button, or pressure plate. When you are finished entering the command, click on the Done button. In this example, we have entered the Minecraft Java Edition (PC/Mac) 1.8 command. We will post the command here once it is possible to do in Minecraft Education Edition. This complex command is not yet possible in Minecraft Education Edition, but will be available in a future release of the game.