Use an anvil in creative mode.
Chat with our AI personalities
You can enchant items with an Enchanting Table.
You can enchant bows, swords, picks, axes, swords, and all pieces armour.
That all depends on what you want to accomplish using the sword. If you want to kill undead mobs easier, then smite. If you want to push back mobs, then knockback.
Enchanted Book or Encantment Table.
The previous information was incorrect, so here is what you can do. Minecraft has an enchanting system, and at level 28 of the enchantment table, your pickaxe or shovel will turn into Silk Touch if you enchant at level 28. Go outside, or where grass is, and harvest the grass with the pickaxe - yes, the pickaxe (with silk touch)! This will give you the grass block.