Files
GDMC-2024/main69.py
Simon Pribylski 8c1f3c3bf5
Some checks failed
Linux arm64 / Build (push) Has been cancelled
Update main69.py
2024-10-02 14:29:17 +00:00

12 lines
306 B
Python

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"))