Code:
on damage:
if victim is wearing an armor:
if victim's armor has custom enchantment Wolf:
if level of custom enchantment Wolf of attacker's tool is 1:
if {cooldown.%victim%} is true:
stop
cancel event
if {cooldown.%victim%} is not set:
set {cooldown.%victim%} to false
if {cooldown.%victim%} is false:
set {cooldown.%victim%} to true
spawn 3 wolf at victim's location
wait 1 ticks
tame the last spawned wolf to the victim
set name of last spawned wolf to "&7%victim% Wolf"
wait 1 ticks
spawn 1 wolf at victim's location
tame the last spawned wolf to the victim
set name of last spawned wolf to "&7%victim% Wolf"
wait 15 seconds
kill all animals where [input's name is "&7%victim% Wolf"]
wait 25 seconds
set {cooldown.%victim%} to false
if victim's armor has custom enchantment Wolf:
if level of custom enchantment Wolf of attacker's tool is 2:
if {cooldown.%victim%} is true:
stop
cancel event
if {cooldown.%victim%} is not set:
set {cooldown.%victim%} to false
if {cooldown.%victim%} is false:
set {cooldown.%victim%} to true
spawn 3 wolf at victim's location
wait 1 ticks
tame the last spawned wolf to the victim
set name of last spawned wolf to "&7%victim% Wolf"
wait 1 ticks
spawn 1 wolf at victim's location
tame the last spawned wolf to the victim
set name of last spawned wolf to "&7%victim% Wolf"
wait 20 seconds
kill all animals where [input's name is "&7%victim% Wolf"]
wait 30 seconds
set {cooldown.%victim%} to false
if victim's armor has custom enchantment Wolf:
if level of custom enchantment Wolf of attacker's tool is 3:
if {cooldown.%victim%} is true:
stop
cancel event
if {cooldown.%victim%} is not set:
set {cooldown.%victim%} to false
if {cooldown.%victim%} is false:
set {cooldown.%victim%} to true
spawn 5 wolf at victim's location
wait 1 ticks
tame the last spawned wolf to the victim
set name of last spawned wolf to "&7%victim% Wolf"
wait 1 ticks
spawn 1 wolf at victim's location
tame the last spawned wolf to the victim
set name of last spawned wolf to "&7%victim% Wolf"
wait 15 seconds
kill all animals where [input's name is "&7%victim% Wolf"]
wait 25 seconds
set {cooldown.%victim%} to false
Help me ;(