Open your chat window. Enter the command to obtain the enchanted item. The standard format for a level 255 item is /give @p {Enchantments:[{id:,lvl:255}]} where is the desired item to be enchanted and is the ID of the enchantment you wish to place on it.