Feature Request: FireTickChange event #10522
Replies: 3 comments
-
What you want might be possible with #5242 |
Beta Was this translation helpful? Give feedback.
-
If then, it should be extended for both |
Beta Was this translation helpful? Give feedback.
-
I second this need for a
|
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem?
In Minecraft, if a player has 'Fire Resistance' effect on him and get into lava(or fire), he gets on fire. But since 'Fire Resistance' is blocking him to get damaged,
EntityDamageEvent
won't fire.In this state, there is no way to detect player is on fire or not via event. Running task every tick would be terrible idea, but I think this is the only way to detect 'Player is on fire' currently.
Describe the solution you'd like.
So, I think it would be great if there is some kind of
FireTickChangeEvent
exists. It would be fired if a player's fire tick is changed, even if the player don't take any damage from the fire/lava.Describe alternatives you've considered.
The main reason I wrote this Feature Request is get a way to detect player on fire, even if he has 'Fire Resistance' effect on him properly, without using task running every tick(s). So It doesn't matter what the event's name would be. I am terrible with naming stuff...
In addition, if the
FireTickChangeEvent
can be applied to mobs, that would be more generic I guess... (For Entity, not only for Player)Agreements
Beta Was this translation helpful? Give feedback.
All reactions