Minecraft wiki entry for Enchanting, associated text: In Creative mode, books can enchant any item with any enchantment, such as a stick having Knockback II.‌[JE only] However, mutually-exclusive enchantments, such as Infinity and Mending, cannot be applied this way or via /enchant (though are still available via /give).