Minecraft wiki entry for Enchanting, associated text: Unlike with an anvil, using the enchanting table while on Creative still costs experience. However, if the player doesn't have enough experience, then experience reduces to zero and the enchantment still works, even when using the enchanting table while already at level zero.