From aaf72e780691fcf9ee90f69cb9b81dff3df2247d Mon Sep 17 00:00:00 2001 From: Xeon0X Date: Sat, 20 Apr 2024 12:58:20 +0200 Subject: [PATCH] Add run instructions and requirements --- README.md | 9 +++++++++ hello-world.py => main.py | 2 +- requirements.txt | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) rename hello-world.py => main.py (82%) create mode 100644 requirements.txt diff --git a/README.md b/README.md index cf086b4..05d6dbe 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,11 @@ # GDMC-2024 A procedural city generator for Minecraft as part of the GDMC 2024 competition. + +# Run + +Install required packages using `pip`: +```python +pip install -r requirements.txt +``` + +Run `main.py`. \ No newline at end of file diff --git a/hello-world.py b/main.py similarity index 82% rename from hello-world.py rename to main.py index c366081..061ccec 100644 --- a/hello-world.py +++ b/main.py @@ -6,7 +6,7 @@ editor = Editor(buffering=True) block = editor.getBlock((0,48,0)) # Place a block -editor.placeBlock((448, 92, 515), Block("stone")) +editor.placeBlock((394, 132, 741), Block("stone")) # Build a cube geometry.placeCuboid(editor, (458, 92, 488), (468, 99, 471), Block("oak_planks")) \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..93a8a41 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +gdpc==7.1.0