Arrow Damage

Discussion in 'Plugin Development' started by rohan576, May 16, 2014.

Thread Status:
Not open for further replies.
  1. Offline


    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?

  2. Offline


    Can you show what you did when you tried to cancel the entitydamageevent?
  3. Offline


    Post your code with EntityDamageEvent and explain what *exactly* is false with this solution.
  4. Offline


    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.
Thread Status:
Not open for further replies.

Share This Page