From 3f0d9055038732285aedbff702f22366ecfa0ded Mon Sep 17 00:00:00 2001 From: Simon Pribylski Date: Wed, 2 Oct 2024 14:21:21 +0000 Subject: [PATCH] Add main.py --- main.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..98c886a --- /dev/null +++ b/main.py @@ -0,0 +1,12 @@ +from gdpc import Editor, Block, geometry + +editor = Editor(host="http://gdmc.ale-pri.com:9000", buffering=True) + +# Get a block +block = editor.getBlock((0,48,0)) + +# Place a block +editor.placeBlock((0,80,0), Block("stone")) + +# Build a cube +geometry.placeCuboid(editor, (0,80,2), (2,82,4), Block("oak_planks")) \ No newline at end of file