Jump to content

need help with mob attack player event


SavageCabage619

Recommended Posts

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.

rose city STICKER

RosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaRosaR

i code, animate, develop, UI design, learn, and adapt, as well as make servers, of course

💐Joined Minehut sometime in 2014
💐VIP sometime in 2018
💐Legend in January 2021
💐Helper on 4/11/2021
💐♥ (Retired) on 5/17/2021
💐 Moderator on 8/18/2023

Link to comment
Share on other sites

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

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

 

    [IMG]    button.png?t=Appeal&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1 button.png?t=Rules&f=Calibri-Bold&ts=26&tc=fff&tshs=1&tshc=000&hp=20&vp=8&c=10&bgt=gradient&bgc=1d0dea&ebgc=1a0855&be=1  

If I helped or entertained you at all today, please react with a heart.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...