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 Storing blocks into a list on break then putting them back after a specific time.

Discussion in 'Skript' started by NeptunePlayz, Jan 4, 2020.

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

    NeptunePlayz Member

    Joined:
    Apr 23, 2017
    Messages:
    13
    Likes Received:
    0
    So as the title says I basically want to store a broken block into a list then placing them back again in the same location after a specific time has gone.

    I didn't manage to do it, so here's my code:


    Code (Text):
    1. on enable:
    2.  set block at {cave::cobble} to cobble
    3.  
    4. on disable:
    5.  set block at {cave::cobble} to cobble
    6.  
    7. every 2 minutes:
    8.  set block at {cave::cobble} to cobble
    9.  
    10. on block break:
    11.  if player is in world "Some world":
    12.   if event-block is cobble:
    13.    cancel event
    14.    set event-block to stone or andesite or cobble
    15.    add location of event-block to {cave::cobble}
    16.  
    17. command /test:
    18.  trigger:
    19.   set block at {cave::cobble} to cobble
    So if anyone can help me I would really appreciate it.
    --- Double Post Merged, Jan 4, 2020, Original Post Date: Jan 4, 2020 ---
    I fixed it. I will post a new reply later saying what I did
     
Thread Status:
Not open for further replies.

Share This Page

Loading...