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.

Solved Blind item

Discussion in 'Skript' started by Sunbex, Sep 13, 2021.

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

    Sunbex New Member

    Joined:
    Sep 13, 2021
    Messages:
    8
    Likes Received:
    0
    I just started skript yesterday so I don’t know much. Can someone write some code that would blind other people but not the user?

     
  2. Best Answer:
    Post #5 by timeis, Sep 20, 2021
  3. oToghty

    VIP Supporter +

    Joined:
    Sep 1, 2020
    Messages:
    143
    Likes Received:
    5
    I mean, just give them the blindless effect

    apply blindness x to all players where [input is not player] for x days or seconds or whatever
     
  4. WhiteWolf

    WhiteWolf Member

    Joined:
    May 2, 2020
    Messages:
    32
    Likes Received:
    2
    Could you elaborate more about what you mean by the title, "Blind item"?
     
  5. Sunbex

    Sunbex New Member

    Joined:
    Sep 13, 2021
    Messages:
    8
    Likes Received:
    0
    An item that effects blindness to every player but the user and is a one time item
     
  6. timeis

    timeis Member

    Joined:
    May 19, 2021
    Messages:
    27
    Likes Received:
    1
    Code (Text):
    1. on right click:
    2.  if name of player's tool is "blind item":
    3.   set player's tool to air
    4.   loop all players:
    5.    if loop-player is not player:
    6.      apply blindness to loop-player
     
  7. WhiteWolf

    WhiteWolf Member

    Joined:
    May 2, 2020
    Messages:
    32
    Likes Received:
    2
    That applies blindness to them for 5 minutes. Use
    Code (Skript):
    1.  
    2. apply blindness to loop-player for 10 seconds # applies blindness for 10 seconds
    3.  
    to use it for a shorter amount of time.
     
  8. bop a doo wop

    bop a doo wop Member

    Joined:
    Oct 12, 2021
    Messages:
    2
    Likes Received:
    0
    perhaps something like
    Code (Text):
    1. on event:
    2.     loop all players:
    3.         if loop-player is not event-player:
    4.             apply blindness to loop-player for %timespan%
     
    #7 bop a doo wop, Oct 12, 2021
    Last edited: Oct 12, 2021
  9. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    40
    Code (Text):
    1. apply blindness to all players where [player input is not player] for 10 seconds
     
Thread Status:
Not open for further replies.

Share This Page

Loading...