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.

Loop (dropped) items

Discussion in 'Skript' started by RaikaS, Mar 3, 2019.

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

    RaikaS Active Member

    Joined:
    Apr 6, 2018
    Messages:
    53
    Likes Received:
    1
    Skript Version (do not put latest): Skript 2.3.5 (dev20c)
    Skript Author: Bensku
    Minecraft Version: 1.13(.2)
    ---
    Full Code:

    Code (Text):
    1. on rightclick on cake:
    2.   if data value of clicked block is 0:
    3.     send "Lautanen"
    4.     loop dropped items at block above event-block:
    5.       if loop-item is water bottle:
    6.         send "Vesipullo"
    7.         add 1 to data value of the clicked block
    8.  
    Errors on Reload:

    Event-block is not a direction



    Troubleshooting:

    Have you tried searching the docs? Yes
    Have you tried searching the forums? Yes
    What other methods have you tried to fix it? Nothing
     
  2. TPGamesNL

    Supporter Addon Developer Dev Programme

    Joined:
    Jan 20, 2018
    Messages:
    1,501
    Likes Received:
    108
    Medals:
    Try
    Code (Text):
    1. loop dropped items in radius 0.1 of location of (block above event-block):
    Change 0.1 to a lower number to make it more precise (0 won't work)
     
Thread Status:
Not open for further replies.

Share This Page

Loading...