SavageCabage619 Posted April 11, 2021 Share Posted April 11, 2021 Im trying to write a script that does an effect whenever mobs attack you. How would I do this event? 1 1 Link to comment Share on other sites More sharing options...
rosabel Posted April 12, 2021 Share Posted April 12, 2021 Make sure to learn & study Skript on your own! But I was in your shoes once, too, so I will provide you with the code you would need. on damage of player: attacker is a spider apply weakness 1 to the victim for 10 seconds This should work. I will explain for you, so you can at least learn from this. 'On damage of player' is the event, which is self explanatory. 'Attacker is a spider' - ensuring the effect is ONLY given if it's a spider. You can change this on you own. 'apply weakness 1 to the victim for 10 seconds' - Also self explanatory, change this to the effect you want. RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRi code, animate, develop, UI design, learn, and adapt, as well as make servers, of courseJoined Minehut sometime in 2014VIP sometime in 2018Legend in January 2021Helper on 4/11/2021♥ (Retired) on 5/17/2021 Moderator on 8/18/2023 Link to comment Share on other sites More sharing options...
SavageCabage619 Posted April 12, 2021 Author Share Posted April 12, 2021 10 hours ago, rosathorn said: Make sure to learn & study Skript on your own! But I was in your shoes once, too, so I will provide you with the code you would need. on damage of player: attacker is a spider apply weakness 1 to the victim for 10 seconds This should work. I will explain for you, so you can at least learn from this. 'On damage of player' is the event, which is self explanatory. 'Attacker is a spider' - ensuring the effect is ONLY given if it's a spider. You can change this on you own. 'apply weakness 1 to the victim for 10 seconds' - Also self explanatory, change this to the effect you want. thanks! Link to comment Share on other sites More sharing options...
Jackson85 Posted April 16, 2021 Share Posted April 16, 2021 Question answered. Topic locked. Joined on January 17th 2016 VIP since April 5 2017 - August 1st 2019 JrMod since August 1st Mod since October 1st SrMod since November 2nd - 2/7/21 Patron since February 8 - 3/7/21 Mod since March 8 2021 Retired since idk when If I helped or entertained you at all today, please react with a heart. Link to comment Share on other sites More sharing options...
Recommended Posts