#Need some help with making protection armor useful?
1 messages · Page 1 of 1 (latest)
Code Blocks
To make it easier for others to read your code, it is asked that you send it in a code block. On Discord, you can simply send this:
```
Code here
```
on damage:
if victim's chestplate is enchanted with protection 6:
set {damage.%victim%} to final damage
set {damage} to final damage * 0.96
cancel event
damage victim by {damage.%victim%}
message "Victim: %health of victim% FinalDamage: %{damage.%victim%}% Damage: %damage%" to attacke
Whats {damage}
oh
oops
hold on
server still crashes instantly
on damage:
if victim's chestplate is enchanted with protection 6:
set {damage_.%victim%} to final damage
set {damage_.%victim%} to {damage_.%victim%} * 0.94
cancel event
damage victim by {damage_.%victim%}
message "Victim: %health of victim% FinalDamage: %{damage_.%victim%}% Damage: %damage%" to attacker