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.

How to clear all potion effects?

Discussion in 'Skript' started by pepper82, Oct 1, 2018.

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

    pepper82 Member

    Joined:
    Jan 26, 2017
    Messages:
    272
    Likes Received:
    1
    Hi all,
    I tried many things but it just won't work. my latest try:

    loop all active potions on {_p}:
    broadcast loop-value
    remove loop-value from {_p}


    also tried:

    remove all potion effects from {_p}


    p = player variable.

    It broadcasts all the active potion effects but it just does not remove it...
    And I do not want to use minecraft's effect clear command.

    Any suggestions?
     
  2. Uzumaki

    Uzumaki Well-Known Member

    Joined:
    Feb 20, 2017
    Messages:
    307
    Likes Received:
    10
    if you have skellet you can do
    Code (Skript):
    1. milk {_p}
     
  3. Scholler

    Scholler Active Member

    Joined:
    Aug 6, 2018
    Messages:
    130
    Likes Received:
    9
    https://skriptlang.github.io/Skript/effects.html#EffPotion

    Variables with underscore not working in another events, only just where you set it. Try {p}

    lol it not worked for me too

    Code (Skript):
    1. execute console command "effect %{_p}% clear"
     
    #3 Scholler, Oct 1, 2018
    Last edited: Oct 1, 2018
  4. Mr_Simba

    Mr_Simba King of the Pridelands
    Moderator Supporter

    Joined:
    Dec 9, 2016
    Messages:
    257
    Likes Received:
    55
    Medals:
    Why do you need Essentials for that? It's a vanilla command. Note though that in 1.13 it was changed to "/effect clear <entity>" so you'd need to switch the order if you're on 1.13.
     
  5. DroidVengeance

    Supporter ++

    Joined:
    Jan 27, 2017
    Messages:
    19
    Likes Received:
    2
    Skellett uses:
    Code (Skript):
    1. clear all potion effects from player
     
Thread Status:
Not open for further replies.

Share This Page

Loading...