Morlok8k / MinecraftLandGenerator

Pregenerate Land in a SMP Minecraft Server
http://www.minecraftforum.net/topic/187737-minecraft-land-generator/
Do What The F*ck You Want To Public License
97 stars 20 forks source link

Minecraft Land Generator version 1.7.6

Updated January 19, 2015 (BuildID: 1421666774000)

Original Code by Corrodias November 2010 Enhanced Code by Morlok8k Feb. 2011 to Now (or at least to January 19, 2015!) Additional Code by pr0f1x October 2011 Additional Code/Idea by jaseg August 2012 Additional Code by Gallion January 2015

Website: https://sites.google.com/site/minecraftlandgenerator/ Forum: http://www.minecraftforum.net/topic/187737- Source: https://github.com/Morlok8k/MinecraftLandGenerator


This program lets you generate an area of land with your Minecraft SMP server (and is prossibly future-proof for newer versions). You set up your java command line and minecraft server paths in the MinecraftLandGenerator.conf file, set up the server's server.properties file with the name of the world you wish to use, and then run this program. When a Minecraft server is launched, it automatically generates chunks within a square area of 25x25 chunks (400x400 blocks), centered on the current spawn point (formally 20x20 chunks, 320x320 blocks). When provided X and Z ranges as arguments, this program will launch the server repeatedly, editing the level.dat file between sessions, to generate large amounts of land without players having to explore them. The generated land will have about the X and Z ranges as requested by the arguments, though it will not be exact due to the spawn point typically not on the border of a chunk. (Because of this, MLG by default adds a slight overlap with each pass - 380x380 blocks) You can use the -x and -z switches to override the spawn offset and center the land generation on a different point. The program makes a backup of level.dat as level_backup.dat before editing, and restores the backup at the end. In the event that a level_backup.dat file already exists, the program will refuse to proceed, leaving the user to determine why the level_backup.dat file exists and whether they would rather restore it or delete it, which must be done manually.

This program is free, and the source code is included in the .jar file. (If accidently missing, like in 1.3.0 and 1.4.0, it is always available at Github.)

Copyright © 2010 This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.

The JNBT library is included (inside the .jar). It is not public domain. Its license is included, as LICENSE.TXT. It is also available at: http://jnbt.sourceforge.net/ (Original) and at: https://github.com/Morlok8k/JNBT (Current)

The "unescape" method/function is also not Public Domain. Its License is the W3C© Software License, and located here: http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 Other Public Domain code has been used in this program, and references to sources are included in the comments of Minecraft Land Generator's source code.

Usage: java -jar MinecraftLandGenerator.jar x z [serverpath] [switches]

Arguments: x : X range to generate z : Z range to generate serverpath : the path to the directory in which the server runs (takes precedence over the config file setting)

Switches: -verbose : causes the application to output the server's messages to the console -v : same as -verbose -w : Ignore [WARNING] and [SEVERE] messages. -alt : alternate server launch sequence -a : same as -alt -nowait : don't pause for anything -n : same as -nowait -i# : override the iteration spawn offset increment (default 380) (example: -i100) -x# : set the X offset to generate land around (example: -x0 or -x1000 or -x-500) -z# : set the Z offset to generate land around (example: -z0 or -z1000 or -z-500)

Other options: java -jar MinecraftLandGenerator.jar -update Checks for and downloads new versions of MLG online.

java -jar MinecraftLandGenerator.jar -printspawn java -jar MinecraftLandGenerator.jar -ps Outputs the current world's spawn point coordinates.

java -jar MinecraftLandGenerator.jar -conf java -jar MinecraftLandGenerator.jar -conf download Generates or downloads a MinecraftLandGenerator.conf file.

java -jar MinecraftLandGenerator.jar -readme readme.txt java -jar MinecraftLandGenerator.jar -readme Generates a readme file using supplied name or the default _MLG_Readme.txt

java -jar MinecraftLandGenerator.jar -downloadfile http://example.com/file.txt Downloads whatever file from the internet you give it. java -jar MinecraftLandGenerator.jar -downloadlist list.txt list.txt (or any other file) contains a URL on each line which will be downloaded.

java -jar MinecraftLandGenerator.jar -version java -jar MinecraftLandGenerator.jar -help java -jar MinecraftLandGenerator.jar /? Prints this message.

When launched with the -conf switch, this application creates a MinecraftLandGenerator.conf file that contains configuration options. If this file does not exist or does not contain all required properties, the application will not run.

MinecraftLandGenerator.conf properties: Java : The command line to use to launch the server ServerPath : The path to the directory in which the server runs (can be overridden by the serverpath argument) Done_Text : The output from the server that tells us that we are done Preparing_Text : The output from the server that tells us the percentage Preparing_Level : The output from the server that tells us the level it is working on Level-0 : Name of Level 0: The Overworld Level-1 : Name of Level 1: The Nether Level-2 : Name of Level 2: The End Level-3 : Name of Level 3: (Future Level) Level-4 : Name of Level 4: (Future Level) Level-5 : Name of Level 5: (Future Level) Level-6 : Name of Level 6: (Future Level) Level-7 : Name of Level 7: (Future Level) Level-8 : Name of Level 8: (Future Level) Level-9 : Name of Level 9: (Future Level) WaitSave : Optional: Wait before saving.


Version History: Morlok8k: 1.7.6

1.6.11

1.6.1

1.6.05

1.6.02

1.5.1

1.5.0

1.4.5 (pre 1.5.0)

1.4.4

1.4.3

1.4.2

1.4.0

1.3.0


Corrodias: 1.2.0

1.1.0

1.0.0


Notes: Due to changes in server beta 1.6, it now generates the nether as well as the world at the same time. However, Since beta 1.9 and Minecraft 1.0, the nether or the end is no longer generated. The "Server Generation Fix Mod" by Morlok8k can generate The Nether and The End. Link: http://www.minecraftforum.net/topic/1378775-

I recommend using MCEDIT to relight the map after you generate it. This will take a long time, but should fix all those incorrectly dark spots in your level.