On break

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

Gavin Hill

New Member
Jan 27, 2019
6
0
0
20
how would I do it when I break the sea lantern the apples stop spawning.


Code:
on place of a sea lantern:
    set {_loc} to the location 1 meter above the block
    set block 1 meters above the block to glass
    loop 100 times:
        wait 5 seconds
        drop 10 apples at the event-location
 
You have to add a condition in the loop to check if the block at the location is still a sea lantern, if it's not, exit the loop
 
I'll code what TPGamesNL said:
Code:
on place of a sea lantern:
    set {_loc} to the location 1 meter above the block
    set block 1 meters above the block to glass
    loop 100 times:
        block at event-block is not sea lantern:
            exit loop
        wait 5 seconds
        drop 10 apples at the event-location
 
Status
Not open for further replies.