So i thought id be helpful and here is a command for your personal use
(Make sure your in a singleplayer creative world that has cheats enabled)
do /give @a iron_sword 1 0 {ench:[{id:16,lvl:10}]} (Just copy and paste. [highlight text then copy it. and when in MC ctrl-v it into the command block :) Also to get a command block its /give [NAME] minecraft:command_block
btw the @a just means all players :)
(basically it gives you a sharpness 10 iron sword)
if you want it diamond then just change the "iron_sword into: diamond_sword
I hope this helps anybody with any of there maps or whatnot.
-Dark