Hey! Is there any way to detect when a fireball gets deflected? I tried searching a lot on google, but I couldn't find anything except things that don't work, like EntityDamageByEntityEvent or such. I basically need to get the fireball that is getting deflected, and give it to the player instead of shooting it back. Thanks!
Sorry, it does actually work! My bad. I managed to fix it. Now, I need to figure out if the fireball hits a block instead of a player. Is there a clean and easy way to do this? I need to get the block it hits to drop an item there. @FisheyLP
@Eos Thanks! Fixed that aswell, though, I have a problem. Whenever I shoot the fireball towards a wall or at the roof, it drops at the top of the roof, or outside the wall. How would I go forth if I wanted to make it actually spawn within the arena?
@jimbo8 You could try settings the Y of the projectile or get the block that was hit and spawn it 2 blocks under.