Adds a simple fireball item that can be thrown with a right click. Give it to yourself by running /function fireball:give. You can also hook the give command up to your custom games or create your own crafting recipes. Other than that, it's pretty simple, right click to throw.
This is the video where I made the item in a data pack: