alternate Ender Dragon Loottable

I'm trying to let the dragon drop loot based on the way it was killed for example if he was killed by a bow, you have a 20% chance to drop a power X book.
Continue to help post