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 Apply potion effect.

Discussion in 'Skript' started by clqrifiedwithaQ, Aug 8, 2021.

Tags:
Thread Status:
Not open for further replies.
  1. clqrifiedwithaQ

    Joined:
    May 12, 2021
    Messages:
    27
    Likes Received:
    1
    Code (Text):
    1. apply potion of night vision of tier 1 to player for 100000000 seconds
    Doesn't work.

    Addons:
    skRayFall
    TuSKe
    skQuery
     
  2. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
    the time can't be that long I believe, just use 99 years and you will be fine
     
  3. clqrifiedwithaQ

    Joined:
    May 12, 2021
    Messages:
    27
    Likes Received:
    1
    I made it 10 seconds and it still didn't work.
    --- Double Post Merged, Aug 8, 2021, Original Post Date: Aug 8, 2021 ---
    upload_2021-8-8_11-25-45.png

    upload_2021-8-8_11-25-58.png


    I have also noticed that speed shows up as yellow and night vision as grey.
     
  4. Crocie

    Crocie Member

    Joined:
    Jul 2, 2021
    Messages:
    36
    Likes Received:
    0
    Code (Text):
    1. command /test <player>:
    2.     trigger:
    3.         execute console command "/effect give %arg 1% speed <time> <power>"
    use the 3rd line for ur skript

    also u can use

    Code (Text):
    1. apply potion of Swiftness to player for 10000000 seconds
    The first code is tested, the other one isnt
     
    #4 Crocie, Aug 8, 2021
    Last edited: Aug 8, 2021
  5. clqrifiedwithaQ

    Joined:
    May 12, 2021
    Messages:
    27
    Likes Received:
    1

    For the first one would it be possible to make it not a command? or would %player% be able to replace %arg 1%

    For the second one my issue is I need night vision but it doesn't seem to recognize "night vision" when I write it in 2 words.
    --- Double Post Merged, Aug 8, 2021, Original Post Date: Aug 8, 2021 ---
    Ok I figured it out

    Code (Text):
    1. execute console command "/effect give %player% night_vision 1000000 1"
    Thanks for all the help!
     
    • Like Like x 1
  6. Crocie

    Crocie Member

    Joined:
    Jul 2, 2021
    Messages:
    36
    Likes Received:
    0
    %player% is for the player doing the event, if u want to do it in command u can use %arg%
     
  7. clqrifiedwithaQ

    Joined:
    May 12, 2021
    Messages:
    27
    Likes Received:
    1
    %player% is replaced by the player's name.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...