Minecraft enchanting efficiency 300000 cheating?

Mi
1

I once saw a YouTuber that he cheated efficiency 300000 and now I would like to know how I can cheat that too.

Pa

You must have activated cheats in the world and then execute the command:

/ give @p diamond_pickaxe {Enchantments: [{id: efficiency, lvl: 300000}]} 1