I have recently made a custom bow (ItemRubyBow) that is pretty much the ItemBow code copied but modified. So I was left clueless when, even though every other thing was working perfectly, the bow would only get the enchantment "Unbreaking", no matter how many times I enchanted it. They were different levels of Unbreaking, in case that is relevant.
Also, this may be related to the answer: Is there any way to set the durability of a bow?
Am I missing some sort of "BowMaterial"?
Here is my code: http://pastebin.com/7EX5BFTk