apply slowness on hit

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

pixelizedgaming

New Member
Dec 25, 2019
9
0
0
22
trying to make a custom enchant thing, skript runs with no errors but it doesnt work. where did i go wrong
Code:
on damage:
	victim is a player
	victim is online
	attacker is not the victim
	attacker is online
	if attacker's held item is a ghast tear named "&b&lIce Shard":
		apply slowness to victim for 100 ticks
 
Code:
on damage:
    victim is a player
    attacker is a player
    if attacker is holding ghast tear named "&b&lIce Shard":
        apply slowness of tier 1 to victim for 5 seconds
 
try this:

Code:
on damage:
    if victim is a player:
        if attacker is a player:
            if attacker is holding ghast tear named "&b&lIce Shard":
                apply slowness of tier 1 to victim for 5 seconds
 
Code:
on damage:
    if victim is a player:
        if attacker is a player:
            if attacker's tool is ghast tear named "&b&lIce Shard":
                apply slowness 1 to victim for 5 seconds
 
Status
Not open for further replies.