Hello, I was looking to set the damage in a on damage event to a value which ignores armour. To give you an example of what I was looking to do, the following code should explain.
However, doing this doesn't show the death message properly if a player kills another player, and generally just messes with other plugins I'm using.
From what I've seen, Tuske's damage modifier expression might have helped, but it seems it was removed in 1.12. Furthermore, the final damage expression can't be set to anything. Is there any way around this aside from editing the nbt of the victim's armour every time?
code_language.skript:
on damage:
set {_damage} to 10
set damage to 0
set victim's health to victim's health - ({_damage} / 2)
However, doing this doesn't show the death message properly if a player kills another player, and generally just messes with other plugins I'm using.
From what I've seen, Tuske's damage modifier expression might have helped, but it seems it was removed in 1.12. Furthermore, the final damage expression can't be set to anything. Is there any way around this aside from editing the nbt of the victim's armour every time?