Loop (dropped) items

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

RaikaS

Active Member
Apr 6, 2018
53
1
0
20
Skript Version (do not put latest): Skript 2.3.5 (dev20c)
Skript Author: Bensku
Minecraft Version: 1.13(.2)
---
Full Code:

Code:
on rightclick on cake:
  if data value of clicked block is 0:
    send "Lautanen"
    loop dropped items at block above event-block:
      if loop-item is water bottle:
        send "Vesipullo"
        add 1 to data value of the clicked block
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
 
Try
Code:
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)
 
Status
Not open for further replies.