snowball stick problem

  • 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 community!

    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.

Doorstep_

Member
Dec 18, 2020
16
0
1
error which is " while attacker's held item is stick:" it's supposed to have no delay hit on snowballs only but everything is affected and has no hit delay. So I came on here for some help :emoji_grinning: (the thing that i added in the skript "While attacker's held item is stick" it crashes my server when i use the stick and hit something with left click)

on right click:
if player's tool is stick:
name of item is "§aStick of §cPROJECTILE":
cancel event
loop 10 times:
shoot a snowball at speed 2
wait 2 ticks
on projectile hit:
if projectile is an arrow:
kill projectile
on damage:
while attacker's held item is stick:
damage victim by 0.03 heart
set maximum damage delay of victim to 5 ticks
wait 0.5 seconds
set maximum damage delay of victim to 20 ticks
command /stick:
permission: op
permission message: §cInsufficient access.
trigger:
give player stick named "§aStick of §cPROJECTILE"
[doublepost=1623832056,1623831517][/doublepost]Nvm i fixed it
[doublepost=1623832096][/doublepost]on right click:
if player's tool is stick:
name of item is "§aStick of §cPROJECTILE":
cancel event
loop 10 times:
shoot a snowball at speed 2
wait 2 ticks
on projectile hit:
if projectile is an arrow:
kill projectile
on damage:
if attacker's tool is stick:
damage victim by 0.03 heart
set maximum damage delay of victim to 5 ticks
wait 0.5 seconds
set maximum damage delay of victim to 20 ticks
command /stick:
permission: op
permission message: §cInsufficient access.
trigger:
give player stick named "§aStick of §cPROJECTILE"
if you want it here
[doublepost=1623832259][/doublepost]How do I lock my thread?
 
Status
Not open for further replies.