Need help on a crossbow that when is shooted gives slownes and blindness effect to players in a 5 block radius

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

kanyelover912

New Member
Dec 26, 2023
5
0
1
Need help on a crossbow named "&3&lSHADOW CROSSBOW" that when is shooted gives slownes and blindness effect to players in a 5 block radius
code_language.skript:
options:
    effectRadius: 5

on projectile hit:
    projectile is arrow:
      name of shooter's tool is "&3&lSHADOW CROSSBOW":
        loop players in radius {@effectRadius} of event-block:
 
on load:
set {shadowcrossbow} to bow named "&3&lSHADOW CROSSBOW"

on projectile hit:
if projectile is arrow:
if player is holding {shadowcrossbow}:
loop all players in a 5 block radius of the projectile:
#Effects here

I don't know if this will work but won't hurt to give it a shot!