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.

Water conducting lightning

Discussion in 'Skript' started by xoduk, Dec 13, 2020.

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

    xoduk Member

    Joined:
    Dec 13, 2020
    Messages:
    2
    Likes Received:
    0
    skript version: 2.5.3
    server version: paper-323(MC: 1.16.4)

    on damage:
    damage is caused by lightning
    block at victim is water
    # (in that water source)
    damage all entities by 2


    It's not very long but I want it do detect and basically conduct lightning through water and damage any mobs in that was pond/lake when it or an entity in there is struck, and to prevent mass destruction in oceans make it a radius if I can...
    Right now if any entities struck while in water it damages all entities anywhere by 2

    This Might be impossible, if so I don't really need it on my server and don't bother helping me if you don't think I can get it to work
     
  2. acai

    acai Active Member

    Joined:
    Oct 23, 2020
    Messages:
    89
    Likes Received:
    1
    "block at victim is water?" no, no, no.
    Code (Text):
    1. if block under victim is water:
     
  3. xoduk

    xoduk Member

    Joined:
    Dec 13, 2020
    Messages:
    2
    Likes Received:
    0
    Ok, but still what do I use to damage all entities in same water source.
     
  4. acai

    acai Active Member

    Joined:
    Oct 23, 2020
    Messages:
    89
    Likes Received:
    1
    you can't?
     
  5. MusicManSK

    MusicManSK Active Member

    Joined:
    Nov 30, 2017
    Messages:
    232
    Likes Received:
    11
    The idea is to use recursively Flood fill algorithm to check all block. If there is any entity on that block, damage it. Simple.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...