How to re-place a destroyed block

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

    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.

WiebeHero

Active Member
Aug 23, 2017
135
5
0
Hello everyone,
I am a newbie in skript so bear with me please.
I just wanted to know how to get re-place a block after a certain time limit.
This was my wuestion hopefully il get a reply.
Goodbye.
 
on the break event, set a global list variable to the block you broke and its location, wait the time you want it to stay broken and then set the block to the variable again and delete the variable from the list.

In case the server closes, on load you should loop the global variable and set all blocks to it's original state.
 
thats not totally it i mean an enderdragon egg i made a boss plugin when you right click it it dissepears but now i need to find a way to replace the block
 
thats not totally it i mean an enderdragon egg i made a boss plugin when you right click it it dissepears but now I need to find a way to replace the block
What he said will work for enderdragon eggs too. You are essentially saving that block as it's broken, then putting it back from that temp list holding it.
 
Status
Not open for further replies.