#Apply Damage Formula

1 messages · Page 1 of 1 (latest)

full storm
#

Instead of modifying the damage every single time I use damage player (to account for armor, armor toughness, effects, etc) is there any way to apply vanilla damage?

simple wasp
#

You can make a damage b

full storm
#

no that's not what i'm talking about at all

#

how do i apply a set amount of damage to something with armor, armor toughness, effects all accounted for? (without doing it manually)

#

the final damage expression only applies as a measure of the damage event itself

#

to the guy who just deleted his message i don't think that works, i think that only assigns a cause to the damage even in the "damage entity" effect

#

thank you though

slim salmon
#

that was me - didn’t see you already fixed the issue so i removed my possible solution

full storm
#

would your solution have worked though

#

if it did then it would've been far more efficient than this

slim salmon
# full storm thank you though

btw the effect i linked uses the same api as the minecraft /damage command, to which i believe accounts for all attributes (including armor, potion effects, etc)

full storm
#

it does?

#

are you 100% sure

slim salmon
full storm
#

found in the wiki

#

The amount: int is not the final amount of reduced health value. The reduced health value is usually less than or greater than the amount: int due to world difficulty, armors, status effects, or the target entity itself, etc.

#

you are right the damage command does account for armor and all that nonsense

#

thank you

#

thank you thank you

slim salmon
# full storm are you 100% sure

not 100% sure
can’t hurt to try though
(having connection issues, sent this message before you confirmed it but was sent too late)

full storm
#

no you are right

#

i thought the damage account just dealt raw damage