"hello world" works, "where am I" raises error

36 views
Skip to first unread message

Frisco Del Rosario

unread,
Dec 31, 2020, 6:41:55 AM12/31/20
to Adventures in Minecraft Forum
elementary OS 5.1.7
Linux 5.4.0
Java 1.8.0_265
Python 3.6.9

server 1.12
client 1.12.2
launcher 1.6.89-j

>>> mc.postToChat("hello world")
>>> pos = mc.player.getTilePos()
Traceback (most recent call last):
  File "<pyshell>", line 1, in <module>
  File "/home/frisco/AdventuresInMinecraft-Linux/MyAdventures/mcpi/minecraft.py", line 90, in getTilePos
    return CmdPositioner.getTilePos(self, [])
  File "/home/frisco/AdventuresInMinecraft-Linux/MyAdventures/mcpi/minecraft.py", line 48, in getTilePos
    s = self.conn.sendReceive(self.pkg + b".getTile", id)
  File "/home/frisco/AdventuresInMinecraft-Linux/MyAdventures/mcpi/connection.py", line 63, in sendReceive
    return self.receive()
  File "/home/frisco/AdventuresInMinecraft-Linux/MyAdventures/mcpi/connection.py", line 57, in receive
    raise RequestError("%s failed"%self.lastSent.strip())
mcpi.connection.RequestError: b'player.getTile()' failed

Martin O'Hanlon

unread,
Jan 2, 2021, 7:15:42 AM1/2/21
to Adventures in Minecraft Forum
Is an error reported by RaspberryJuice in the server console?

The only reason I can think that getTilePos would return an error is if there is not a player "in the server".

A screenshot which shows Minecraft, your Python program and the minecraft server console would be useful.

Martin O'Hanlon

unread,
Jan 2, 2021, 7:29:08 AM1/2/21
to Adventures in Minecraft Forum
I noticed you are using 

server 1.12
client 1.12.2 

When I try and connect client 1.12.2 to server  1.12 I get an "Failed to connect to the server. Outdated server! Im still on 1.12" message.

Are you connecting to the server by selecting "Multiplayer" in Minecraft, "Direct connect" and entering "localhost"?

Martin O'Hanlon

unread,
Jan 2, 2021, 7:30:09 AM1/2/21
to Adventures in Minecraft Forum
minecraft 1.12.2 error.PNG

Martin O'Hanlon

unread,
Jan 2, 2021, 7:32:36 AM1/2/21
to Adventures in Minecraft Forum
If you have everything setup correctly this is what you should see.

test.PNG

Reply all
Reply to author
Forward
0 new messages