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 Item dropped on water

Discussion in 'Skript' started by FistoF, Apr 17, 2021.

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

    FistoF Active Member

    Joined:
    Feb 11, 2017
    Messages:
    53
    Likes Received:
    0
    How to detect when when a dropped item hits water?
     
  2. DieHollander_

    DieHollander_ Active Member

    Joined:
    Mar 25, 2018
    Messages:
    188
    Likes Received:
    12
    You could create a loop that tests if the block at location of the dropped item is water.
     
  3. FistoF

    FistoF Active Member

    Joined:
    Feb 11, 2017
    Messages:
    53
    Likes Received:
    0
    I don't know how to do that.
     
  4. TheRealUnderscore

    Joined:
    Mar 31, 2019
    Messages:
    10
    Likes Received:
    1
    Code (Text):
    1. on drop:
    2.     while event-entity is alive:
    3.         if (block at event-entity) is water:
    4.             broadcast "%event-entity% hit water!"
    5.             stop
    6.         wait 5 ticks
    It's gonna be a lag machine with a lot of dropped items, though.
     
    • Friendly Friendly x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...