From f65719251c951dc311f6e1c32c6e232772b648b4 Mon Sep 17 00:00:00 2001 From: Xeon0X Date: Sat, 20 Apr 2024 00:07:34 +0200 Subject: [PATCH] Add installation test file --- hello-world.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 hello-world.py diff --git a/hello-world.py b/hello-world.py new file mode 100644 index 0000000..c366081 --- /dev/null +++ b/hello-world.py @@ -0,0 +1,12 @@ +from gdpc import Editor, Block, geometry + +editor = Editor(buffering=True) + +# Get a block +block = editor.getBlock((0,48,0)) + +# Place a block +editor.placeBlock((448, 92, 515), Block("stone")) + +# Build a cube +geometry.placeCuboid(editor, (458, 92, 488), (468, 99, 471), Block("oak_planks")) \ No newline at end of file