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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Skellett Skellett Block Regenerators - Instant block placing

Discussion in 'Tutorials' started by LimeGlass, Feb 13, 2017.

  1. LimeGlass

    VIP Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    621
    Likes Received:
    436
    Medals:
    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:
    Code (Skript):
    1. [skellett] regenerator with id %string% (1¦does|2¦does(n't| not)) exist
    2. (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%]
    3. pos[ition][ ]1 of [skellett] regenerator [[with] id] %string%
    4. pos[ition][ ]2 of [skellett] regenerator [[with] id] %string%
    5. #This will allow you to update the locations if you change the pos locs
    6. re[ ]configure [the] [skellett] regenerator with ID %string%
    7. re(generate|[ ]build) [the] [skellett] regenerator with ID %string%
    8. [(the|all)] [of] [the] [skellett] regenerator[s] [ids]

    First lets save a regenerator.
    Code (Skript):
    1. if regenerator with id "Example" does not exist:
    2.     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
    Code (Skript):
    1. 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.

    Code (Skript):
    1. on skript unload:
    2.     loop all regenerator ids:
    3.        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!
     
    #1 LimeGlass, Feb 13, 2017
    Last edited: Mar 28, 2017
    • Like Like x 7
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    219
    I just want to ask, is there a limit of blocks you can regenerate? Because, I've installed FWE, and enabled the Regenerator Auto Queue in the Skellett config. For example, it doesn't regenerate a 200x200 blocks Arena. No errors in Console btw @LimeGlass :emoji_grin:
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    219
    it should be unlimited blocks. But maybe you can configure it with FAWE in the settings. Or the settings of WorldEdit. Never really tested that.
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    219
    Does it work for 1.8.8? Give error in code

    Code (Skript):
    1. [15:41:11 INFO]: [Skript] Reloading all scripts...
    2. [15:41:12 ERROR]: Can't understand this condition/effect: create a regenerator w
    3. ith ID "Example" from {_pos1} to {_pos2} (xRegenSk.sk, line 5: create a regenera
    4. tor with ID "Example" from {_pos1} to {_pos2}')
    5. [15:41:12 INFO]: Loaded 1 script with a total of 0 triggers and 1 command in 0.1
    6. 8 seconds
    7. [15:41:12 INFO]: [Skript] Encountered 1 error while reloading all scripts!
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    219
    What version of Skellett do you have and are the regenerators enabled in the SyntaxToggles.yml?
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    219
    I'm using Skellett version 1.9.5 and Everything is enabled in SyntaxToggles.yml, but it gives me this error in the console when starting the server.

    Code (Skript):
    1. [12:31:48 INFO]: [Skellett] Enabling Skellett v1.9.5
    2. [12:31:48 INFO]: [Skellett] The item merge event is only for 1.9+ versions!
    3. [12:31:48 INFO]: [Skellett] The offhand switch event is only for 1.9+ versions!
    4. [12:31:48 INFO]: [Skellett] The breeding event is only for 1.10+ versions!
    5. [12:31:50 INFO]: [Skellett] Main.PrepareEnchant syntax is for 1.11.2+ spigot ver
    6. sions!
    7. [12:31:50 INFO]: [Skellett] Syntax.Events.BrewingFuel syntax is for 1.11.2+ spig
    8. ot versions!
    9. [12:31:50 INFO]: [Skellett] Unbreakable syntax is for 1.11.2+ spigot versions!
    10. [12:31:50 INFO]: [Skellett] ItemCooldown syntax is for 1.11.2+ spigot versions!
    11. [12:31:51 INFO]: [Skellett] Syntax.Expressions.Unbreakable syntax is for 1.11.2+
    12.  spigot versions!
    13. [12:31:51 INFO]: [Skellett] Syntax.Events.AnvilPrepare syntax is for 1.11.2+ spi
    14. got versions!
    15. [12:31:51 INFO]: [Skellett] Main.Books syntax is for 1.9R1+ spigot versions!
    16. [12:31:51 INFO]: [Skellett] Unbreakable syntax is for 1.11.2+ spigot versions!
    17. [12:31:51 INFO]: [Skellett] TitleAndSubtitle syntax is for 1.11.2+ spigot versio
    18. ns!
    19. [12:31:51 INFO]: [Skellett] SpectralArrow syntax is for 1.10+ spigot versions!
    20. [12:31:51 INFO]: [Skellett] Syntax.Events.BrewingFuel syntax is for 1.11.2+ spig
    21. ot versions!
    22. [12:31:51 INFO]: [Skellett] LlamaColour syntax is for 1.11+ spigot versions!
    23. [12:31:51 INFO]: [Skellett] GravityState syntax is for 1.10+ spigot versions!
    24. [12:31:51 INFO]: [Skellett] LlamaInventoryDecor syntax is for 1.11+ spigot versi
    25. ons!
    26. [12:31:51 INFO]: [Skellett] GlideState syntax is for 1.10+ spigot versions!
    27. [12:31:52 INFO]: [Skellett] InvulnerableState syntax is for 1.9R1+ spigot versio
    28. ns!
    29. [12:31:52 INFO]: [Skellett] SilentState syntax is for 1.10+ spigot versions!
    30. [12:31:52 INFO]: [Skellett] Main.PrepareEnchant syntax is for 1.11.2+ spigot ver
    31. sions!
    32. [12:31:52 INFO]: [Skellett] LlamaInventory syntax is for 1.11+ spigot versions!
    33. [12:31:53 INFO]: [Skellett] Main.PrepareEnchant syntax is for 1.11.2+ spigot ver
    34. sions!
    35. [12:31:53 INFO]: [Skellett] Main.Books syntax is for 1.9R1+ spigot versions!
    36. [12:31:53 INFO]: [Skellett] Main.PrepareEnchant syntax is for 1.11.2+ spigot ver
    37. sions!
    38. [12:31:53 ERROR]: Error occurred while enabling Skellett v1.9.5 (Is it up to dat
    39. e?)
    40. java.lang.NoClassDefFoundError: org/bukkit/boss/BossBar
    41.         at com.gmail.thelimeglass.BossBars.ExprLastCreatedBossBar.getReturnType(
    42. ExprLastCreatedBossBar.java:28) ~[?:?]
    43.         at com.gmail.thelimeglass.Skellett.register(Skellett.java:544) ~[?:?]
    44.         at com.gmail.thelimeglass.Skellett.onEnable(Skellett.java:208) ~[?:?]
    45.         at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[s
    46. pigot.jar:git-Spigot-d97e08b-880a532]
    47.         at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    48. .java:340) [spigot.jar:git-Spigot-d97e08b-880a532]
    49.         at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    50. r.java:405) [spigot.jar:git-Spigot-d97e08b-880a532]
    51.         at org.bukkit.craftbukkit.v1_8_R3.CraftServer.loadPlugin(CraftServer.jav
    52. a:357) [spigot.jar:git-Spigot-d97e08b-880a532]
    53.         at org.bukkit.craftbukkit.v1_8_R3.CraftServer.enablePlugins(CraftServer.
    54. java:317) [spigot.jar:git-Spigot-d97e08b-880a532]
    55.         at net.minecraft.server.v1_8_R3.MinecraftServer.s(MinecraftServer.java:4
    56. 14) [spigot.jar:git-Spigot-d97e08b-880a532]
    57.         at net.minecraft.server.v1_8_R3.MinecraftServer.k(MinecraftServer.java:3
    58. 78) [spigot.jar:git-Spigot-d97e08b-880a532]
    59.         at net.minecraft.server.v1_8_R3.MinecraftServer.a(MinecraftServer.java:3
    60. 33) [spigot.jar:git-Spigot-d97e08b-880a532]
    61.         at net.minecraft.server.v1_8_R3.DedicatedServer.init(DedicatedServer.jav
    62. a:263) [spigot.jar:git-Spigot-d97e08b-880a532]
    63.         at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java
    64. :524) [spigot.jar:git-Spigot-d97e08b-880a532]
    65.         at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]
    66. Caused by: java.lang.ClassNotFoundException: org.bukkit.boss.BossBar
    67.         at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    68. java:91) ~[spigot.jar:git-Spigot-d97e08b-880a532]
    69.         at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.
    70. java:86) ~[spigot.jar:git-Spigot-d97e08b-880a532]
    71.         at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_111]
    72.         at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.8.0_111]
    73.         ... 14 more
     
  7. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,181
    Likes Received:
    219
    Oh update your Skellett version or disable bossbar syntax in the SyntaxToggles.yml
     

Share This Page

Loading...