diff --git a/main.py b/main.py index 8572335b09caef50a151ae18bda716e4a5b060df..cd94d11c6b364f4558718b08c15b797f7f35f706 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,7 @@ from mcpi.minecraft import Minecraft -mc = Minecraft.create() -mc.postToChat("Hello World") \ No newline at end of file +try: + mc = Minecraft.create() + mc.postToChat("Hello World") +except: + print("Error connecting to Minecraft") \ No newline at end of file