This commit is contained in:
12
main.py
Normal file
12
main.py
Normal file
@@ -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"))
|
||||||
Reference in New Issue
Block a user