Hey guys, I'm here with a relatively small problem that I just haven't been able to solve. When a player is riding an arrow, at one point in the flight, the arrow will have the right angle to be able to hit the player, and I don't want that. I want the players in survival to be able to fly on arrows in survival, without the player being in creative for a duration of the flight or something like that. I have tried an EntityDamageEvent to cancel the arrow damage, but it just hasn't worked the way it does in creative. Maybe I could make the player invulnerable while on the arrow (which I don't know how to do )? Any suggestions? Thanks!
The event very simply checks for it being an arrow damaging a player (verified to be working), and then cancels it. The problem with this is that the arrow changes direction and it kind of screws the flight up a bit.