#Only works for mobs?

1 messages · Page 1 of 1 (latest)

paper jasper
#

#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

#

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?

raven finch
pulsar citrus
#

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

pulsar citrus
pulsar citrus
raven finch