########################################################################################## # # # PreChunk # # Pregenerates your world in a squared shape. # # Version: 1.1 Author: Icecapade # # # # Documentation: # # https://github.com/Hydroxycobalamin/Denizen-Script-Collection/wiki/PreChunk # # # # # ########################################################################################## PreChunk: type: command debug: false name: prechunk description: Pre generate your world! usage: /prechunk [size] [world] permission: prechunk.gen tab completions: 1: 16|32|64|128|256 2: check_generated: - define i:++ - if <[i].mod[10]> == 0: - wait 1t - if ,<[Y]>,<[world]>].is_generated>: - define Y:++ - repeat next script: - if == 2 && && >= 4 && ]>: - narrate "<&3>[PreChunk] Generation started! See console for information." - define world - define X - define Y # Generate a square. - define rows <[X].mul[-2]> - repeat <[rows]>: - if !,<[Y]>,<[world]>].is_generated>: - chunkload ,<[Y]>,<[world]>]> duration:1t - repeat <[rows]>: # Skip if the chunk was already generated before. - inject