Damaging entities + death
SelfMadeSystem opened this issue · 0 comments
SelfMadeSystem commented
Describe the problem related to your feature request.
We need a way to damage & heal entities. We can currently just set their health via valence_entity::living::Health
, but there are a few problems with this:
If decrementing health:
- This doesn't have a damage source (e.g. magic, wither, pvp ig idk, etc.)
- The entity's health just drops, without any effect (sound effect, camera effect, etc.)
- There's no death either. If the entity dies, they just stay there and if the client gets a death screen, they're soft locked because they can't respawn.
- Absorption isn't considered. See #557
If incrementing health:
- We have no way of knowing the entity's max health yet. See #555 for
EntityAttributes
What solution would you like?
- A way to damage entities
- Damage sources
- A way to heal entities
What alternative(s) have you considered?
Just setting Health
, but it has drawbacks as previously mentioned.