I want to make a mob die and give an item when it gets damaged, but it does not seem to work. Any suggestions?
Mob file:
- skill{s=RegularMountHit} ~onDamaged
Skill File:
RegularMountHit:
Skills:
- command{c="mm items give <target.name> RegularMountSaddle"} @Owner
- effect:smoke @Self
- remove @Self
P.S. Yes, I correctly set the owner of the mob when it is spawned.
Mob file:
- skill{s=RegularMountHit} ~onDamaged
Skill File:
RegularMountHit:
Skills:
- command{c="mm items give <target.name> RegularMountSaddle"} @Owner
- effect:smoke @Self
- remove @Self
P.S. Yes, I correctly set the owner of the mob when it is spawned.