我在 Python shell 中写了一段代码,如下
from mcpi.minecraft import *
mc=Minecraft.create()
mc.postToChat("HELLO")
结果出了个报错 ↓
Traceback (most recent call last):
File "C:\Users\PC\Music\Desktop\12.py", line 2, in <module>
mc=Minecraft.create()
File "C:\Users\PC\AppData\Local\Programs\Python\Python39\lib\site-packages\mcpi\minecraft.py", line 376, in create
return Minecraft(Connection(address, port))
File "C:\Users\PC\AppData\Local\Programs\Python\Python39\lib\site-packages\mcpi\connection.py", line 17, in __init__
self.socket.connect((address, port))
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。
这玩意使我非常烦恼,目前没有找到有用的教程
有人能帮帮我吗?