Solved Storing blocks into a list on break then putting them back after a specific time.

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

NeptunePlayz

Member
Apr 23, 2017
13
0
0
36
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:
on enable:
 set block at {cave::cobble} to cobble

on disable:
 set block at {cave::cobble} to cobble

every 2 minutes:
 set block at {cave::cobble} to cobble

on block break:
 if player is in world "Some world":
  if event-block is cobble:
   cancel event
   set event-block to stone or andesite or cobble
   add location of event-block to {cave::cobble}

command /test:
 trigger:
  set block at {cave::cobble} to cobble

So if anyone can help me I would really appreciate it.
[doublepost=1578166849,1578148030][/doublepost]I fixed it. I will post a new reply later saying what I did
 
Status
Not open for further replies.