Skellett Block Regenerators - Instant block placing

Have you ever wanted to save and place blocks at an alarming rate? Well look no further, Regenerators are here to fix your slow variable saving methods!

Using Skellett 1.7.3+


Regenerators are saved by strings/text in Skript. You create and remove Regenerators by ID based strings/text

Syntax:
[skellett] regenerator with id %string% (1¦does|2¦does(n't| not)) exist
(create|make) [a] [new] [skellett] regenerator with ID %string% (from|within) [location[s]] %location% (to|and) %location%(delete|remove) [the] [skellett] regenerator with ID %string% [re[ ]build %-boolean%]
pos[ition][ ]1 of [skellett] regenerator [[with] id] %string%
pos[ition][ ]2 of [skellett] regenerator [[with] id] %string%
#This will allow you to update the locations if you change the pos locs
re[ ]configure [the] [skellett] regenerator with ID %string%
re(generate|[ ]build) [the] [skellett] regenerator with ID %string%
[(the|all)] [of] [the] [skellett] regenerator[s] [ids]



First lets save a regenerator.
if regenerator with id "Example" does not exist:
create a regenerator with ID "Example" from {_pos1} to {_pos2}

This tests if a regenerator isn't created with the same ID and then saves the blocks within location {_pos1} to {_pos2}

Pretty simple right? Now how about regenerating the blocks within? Say a minigame where tnt and stuff is allowed. The map is destoryed! We want to regenerate all the blocks within this arena instantly so we can start another game.

This is how you would regenerate the blocks
regenerate regenerator with ID "Example"


Boom done! Nice and quick.

Now since Skellett doesn't save the regenerators on restart (I might add later) you can use this method to fix saving.

on skript unload:
loop all regenerator ids:
regenerate regenerator with ID "%loop-value%"

Then if we want to rebuild them when the server starts again we can use the same methods as creating. All you need is the pos1 and pos2 locations saved :emoji_grinning:

That's pretty much it. Quick block regeneration done quick and simple :emoji_grinning:

But wait! There is more! Asynchronous Methods!

You can install FAWE to make Skellett use Asynchronous methods. Asynchronous basically means that while Skellett places all these blocks it won't lag your server since it will be placing all the blocks in a different thread on your system.


Make sure the Async method is enabled in the config.yml of Skellett in order to use this.

Script example: https://www.spigotmc.org/resources/xregensk-best-script-for-arena-regeneration-easy-and-simple.38549/

Hope this help and replaces your old slow variable saving methods :emoji_grinning: I know this helped me and my clients alot.

Happy skripting!