direction = mc.player.getDirection()
AttributeError: 'CmdPlayer' object has no attribute 'getDirection' OK I understand becuz the minecraft.py file does NOT have the code.
********
Found the enhanced mcpi on GitHub. Now added the enhanced code to minecraft.py and got the following errot
*******
return CmdPositioner.getDirection(self, self.name)
AttributeError: 'CmdPlayer' object has no attribute 'name' I do not understand this error
*******
But the code for setTilePos(0 and others work fine. The only difference is the .getDirection reference in the minecradt.py code.
BTW, I'm on a mac OS X 10.11.6 MCraft vesion 1.9 Bukkit server. (Tried CanaryMod and raspberry juice but got nowhere.)
Thx for any help.
C
@CarliMac:~$ /var/folders/g3/_y8cy6bs7_d8pf7_xjq4lwlw0000gn/T/geany_run_script_BDJXLY.sh ; exit;
Traceback (most recent call last):
File "test.py", line 9, in <module>
mc = minecraft.Minecraft.create(server.address)
File "/Users/cnoblejr/Desktop/PrussM-Craft/mcpipy/mcpi/minecraft.py", line 376, in create
return Minecraft(Connection(address, port))
File "/Users/cnoblejr/Desktop/PrussM-Craft/mcpipy/mcpi/connection.py", line 38, in __init__
self.socket.connect((address, port))
ConnectionRefusedError: [Errno 61] Connection refused
------------------
(program exited with code: 1)
Press return to continue
M-craft is in /Library/Application Server/ Not sure where Python3 is, but it worked fine.
Thx,
C