#Apply Damage Formula
1 messages · Page 1 of 1 (latest)
You can make a damage b
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
ok, for anyone in the future with the same question as me
https://www.spigotmc.org/resources/skript-damage-calculation.113731/
someone else did it manually. this is the only way to SET the proper damage value
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
that was me - didn’t see you already fixed the issue so i removed my possible solution
would your solution have worked though
if it did then it would've been far more efficient than this
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)
you have already fixed it, if you really want to see if it works (never tried it so i don’t know if it will) then here’s the effect https://skripthub.net/docs/?id=10512
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
not 100% sure
can’t hurt to try though
(having connection issues, sent this message before you confirmed it but was sent too late)