What we are asking is HOW do we enchant the blocks? Do we just place it in an Enchantment Table and select some enchantment? Is it only obtainable with /give? We aren't "stupid". We are asking questions that need an answer. Calling the critics stupid isn't going to get you anywhere and shows that you can't handle the criticism.
Now then; the questions that YOU need to answer. Can this be done in Survival? If so, do we just place it in an Enchantment Table? What enchants could show up?
The thing is: you can already enchant blocks. in an anvil, lets say you put a grass block and a sharpness IV book. you will enchant that grass block with sharpness IV, and it will function as normal. What he is suggesting, is that when you place the block down it shines purple like tools. currently, it just loses its enchant when you place it down.
I guess if you use the /enchant command you can do this, but there would be not way to do it in vanilla. Just a map maker's tool, nothing else. At least make it survival compatible, or have a purpose. This could only be used with commands.
I'll try to elaborate. Basically, any block that has the ability to carry an inventory is classified as 'tile entity'. These aren't actual blocks, they're coded differently. And while tile entities have the ability to hold NBT data, regular blocks do not.
Blocks can't be enchanted because they can't hold the information of that enchantment, the game isn't programmed to do that.
"Just change all blcoks into tile entities", I hear you think. That has one major downside though; lag.
Tile entities are significantly mor resource intensive then regular blocks. Since so very few blocks are considered tile entities (and almost none of them generate naturally, apart from dispensers in Jungle Temples) this effecat isn't noticable. It would be if a lot of tile entities are loaded at the same time, similairly to how havng a lot of mobs in a single area causes slowdown when that area is loaded.
Turning blocks into tile entities would cause performance to drop significantly, and that's what it isn't really the best thing to do, to put it lightly.
Yeah, this is why if you have a bunch of chests (which are naturally generated in dungeons [mobspawers have tile entities too] and strongholds[portals also contain entities]) Your framerate suffers. Just imagine an entire structure made out of this thing. Sorry, but no support.