Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

[Feature] Player / Entity Armor Tag #52

Open
QAngelusQ opened this issue Apr 28, 2018 · 3 comments
Open

[Feature] Player / Entity Armor Tag #52

QAngelusQ opened this issue Apr 28, 2018 · 3 comments
Labels

Comments

@QAngelusQ
Copy link

Would it be possible to implement a tag for the numerical armor value of mobs / the player?

@mcmonkey4eva
Copy link
Member

As in, a way of calculating how well protected from some damage source the player is?
I'm not sure that's exactly representable as a single number, but there's probably a way to calculate with the concept.
Like how different protection enchantments will affect damage sources different.

I imagine there could be a tag that you feed in the entity (like player bob), a damage value (like 5 hp), and a damage source (like an arrow), and you'll get back the damage that would be applied to the player directly after armor calc if that hit happened (like '0.5 hp')

@mcmonkey4eva
Copy link
Member

@Xenmai pointed out that you might mean the armor value approximation displayed on the HUD alongside HP and all. If you mean that, could also be (even more easily) added. Though the thing I wrote above would be neat too still :P

@QAngelusQ
Copy link
Author

Haha sorry I wasn't more clear! Appreciate it 😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants