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
(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?
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?