#Credits to Zyntasius
on attack:
set {_d} to "%damage%" parsed as number
if victim's offhand is shield:
if victim is blocking:
if {blocking::%uuid of victim%} is false:
send "Test" to victim
damage attacker by {_d}
set {shield::%uuid of victim%} to victim's offhand tool
set victim's offhand to air
set {blocking::%uuid of victim%} to true
wait 4 seconds
set victim's offhand tool to {shield::%uuid of victim%}
set {blocking::%uuid of victim%} to false
#Only works for mobs?
1 messages · Page 1 of 1 (latest)
It only triggers if you are attacked by a zombie or a mob but not if an other player does
Also when you block with the shield can it still get the damage?
the damage in the event is already parsed as a number
not sure why you're damaging them, that's just gonna deal double damage as you arent cancelling the event
unless I understood wrong
and instead of setting the variable to false, delete it
ig that's what the on attack: event does. Switch to on damage [of player]:
i mean yeah, you are damaging them...
cant he just set the damage of the event?