Skip to content

akwong189/gdmc

Repository files navigation

GDMC - Project Code

Adley Wong, Ben Cornel, Deon Lillo, Martin Jiang

Cal Poly CSC 570 - Professor Rodrigo Cannan


Features

  • GDPC http client
  • Generative Structure placement based on a masking system
  • Random pathing algorithm
  • Masking for water, lava, and paths
  • Structure padding, path location
  • Structure rotation
  • Height map and masking visualization tool
  • Border visualization

Requirements

The code requires the use of minecraft data files, particularly the village nbt files that are packaged with Minecraft.jar. Provided the EULA, we cannot provide explicitly the files within the repository. The steps to retrieve those files are provided.

  1. Download the server.jar here
  2. Unzip the server.jar file with your preferred unarchiver
  3. Open the folder and search for data folder
  4. In the folder should contain the directory minecraft
  5. In that folder has a directory structure
  6. Finally, village directory can be spotted in the folder, we will need this for the code
  7. move or copy village into the working directory and rename the folder to villages

here

This ensures that the code will know where the provided NBT files are located


Installation

  1. Install the required NBT files from minecraft, either as described in Requirements or using the script
./grab.sh
  1. Install python dependencies
> pip install -r requirements.txt

Run

> python buildVillage.py

Results

Randomly generated buildings

Heightmap and mask visualization


Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published