Disable Throwing of snowball

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

Ashey_Gamer

New Member
May 22, 2024
8
0
1
20
a simple skript on disabling snowballs being thrown.

been using below so far but can find anything of actually cancelling projectile event

on rightclick with snowball:
if "%region at shooter%" contains "spleef":
 
Code:
on shoot:
    if projectile is snowball:
        send "Beans" to shooter
        cancel event

Sorry for region, i don't have that plugin right now
#EDIT: I tested with region condition too, works fine
 
Last edited:
Code:
on right click:
  if player's tool is snowball:
    cancel event
maybe use this instead of on shoot this uses on right click which refines the skript in a way that before even the thought of shooting the snowball the skript cancels the code for throwing a snowball