This is a plugin for the Bukkit Minecraft Mod and contains a ChunkGenerator
that models the Canton of Zurich in Minecraft including buildings and trees.
The plugin automatically downloads the required digital terrain model (DTM) from GIS-ZH.
- Build this plugin with Apache Maven:
> mvn clean install
- Build a CraftBukkit Minecraft server mod. Instructions are available on spigotmc.org
- Copy
craftbukkit.jarbuilt by spigotmc to a directory where you will run the server. E.g.craftbukkit. - Start the server for the first time with:
> java -Xmx2g -jar craftbukkit.jar
- The server will stop after a short while and tell you to accept the EULA.
- Once you have done that, start the server again. It will create a new world and write a set of configuration files.
- Stop the server
- Create a sub directory
craftbukkit/pluginsand copy the mhmp plugin jar into this directory. - Copy the file
src/test/resources/server.propertiesto thecraftbukkitfolder. It contains a few changes to the default values. - Open the file
bukkit.ymlwith a text editor and add the following lines at the end. It will tell the server to use the chunk generator from the plugin instead of the default minecraft one.
worlds:
world:
generator: Minecraft-Height-Model-Plugin
- Delete the world initialized by the previous startup:
> rm -r world*
- Start the server with the plugin and the laszip4j dependency:
> java -Xmx2g -cp $HOME/.m2/repository/com/github/mreutegg/laszip4j/0.1/laszip4j-0.1.jar:craftbukkit-1.11.jar org.bukkit.craftbukkit.Main
- Start a Minecraft client and connect to the server (Multiplayer->Direct Connect).
Use
localhostas server address.
The default spawn point is outside the railway station of Winterthur.
If you want to spawn at another place, remove the world and add a spawn system
property to the command that starts the server. The following default spawn
point is in the city of Zurich on the terrace of ETH.
> java -Dspawn=2683677/1247844 -Xmx2g -cp $HOME/.m2/repository/com/github/mreutegg/laszip4j/0.1/laszip4j-0.1.jar:craftbukkit-1.11.jar org.bukkit.craftbukkit.Main
