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.

Lava i-frames

Discussion in 'Skript' started by ApplePenChicken, Aug 28, 2021.

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

    Joined:
    Aug 8, 2021
    Messages:
    24
    Likes Received:
    0
    on damage:
    if damage cause is not attack, suffocation or fire:
    wait 1 tick
    set victim's invulnerability ticks to 0
    so with this script
    fire damage still removes invulnerability ticks
    but attack and suffocation still works
    but lava gives an error
    pls help
    Thanks.
     
  2. DieHollander_

    DieHollander_ Active Member

    Joined:
    Mar 25, 2018
    Messages:
    188
    Likes Received:
    12
    Add 'lava' to the "if damage cause is not ...".
    Lava has it's own 'damage cause', that's why it's not working.
     
  3. ApplePenChicken

    Joined:
    Aug 8, 2021
    Messages:
    24
    Likes Received:
    0
    it gives no error but still shreds my health i did
    on damage:
    if damage cause is not attack, suffocation, fire or lava:
    wait 1 tick
    set victim's invulnerability ticks to 0
     
Thread Status:
Not open for further replies.

Share This Page

Loading...