enchanting book redesign

So the idea is attached (not my design) and I was wondering how I could do this, I can make the textures but how do I make the texture apply if the level of the enchantment is the correct level.

Continue to help post