1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Throw Cobwebs?

Discussion in 'Skript' started by JustADev, Aug 2, 2017.

Thread Status:
Not open for further replies.
  1. JustADev

    JustADev Well-Known Member

    Joined:
    Apr 8, 2017
    Messages:
    380
    Likes Received:
    9
    Question: How would I make a sword launch cobwebs in the direction that a player is facing if they right click a wooden sword named "&eWeb Launcher &7(Right Click)"?

    I would much appreciate an example for me to use in the future..
    Thanks so much guys, you are the greatest.
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    I'm interested in how to check to see if a player is using an item with a specific name as well.
     
  3. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Ok, here is the code for that:

    Code:
    Code (Skript):
    1. on rightclick holding a wood sword:
    2.     if name of player's tool is "&eMagical Sword":
     
  4. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    How would you phrase it if it were an item rather than a tool? I'm still wrapping my head around the syntax of Skript.
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    You always use tool, if it is an item you still use tool.
     
  6. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Right you are! I had a spelling mistake in the item name so it didn't seem to be triggering.

    Here is a question:

    In JustaDev's example what stops a player from naming a wooden sword on an anvil to make any wooden sword into a 'web shooter'? Is there another way to create a unique item than changing the name?
     
  7. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    You just add color code to it
     
  8. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    231
    Using metadata or nbt
     
Thread Status:
Not open for further replies.

Share This Page

Loading...