I recently starting learning Skript just to have some fun coding some small plugins. Recently I wanted to replicate a video I saw where when you hit a mob, it duplicates. The only problem is, when I do on damage: it says it "Cant understand this condition: 'on damage' (MobDupe.sk line 10: on damage:')" so is there any way I can fix this? heres my code.
(The last line was just for testing in the future I will code the rest)
Code:
variables:
{mobs} = 2
{stop} = 0
command /mobdupe:
trigger:
set {stop} to 0
while {stop} = 0:
on damage:
victim is a mob:
send "%victim% was hit by %attacker%"
(The last line was just for testing in the future I will code the rest)