mc.player.getPos() error

54 views
Skip to first unread message

Alyona Seitova

unread,
Apr 11, 2022, 3:19:37 AM4/11/22
to Adventures in Minecraft Forum
Hello! What should i do to fix mc.player.getPos()  error?
I  installed Python 3.10.,  last version of mcpi (not shure),  Java Version 8 Update 321,  I connect to Spigot server 1.18.2:
mc = Minecraft.create(address="127.0.0.1", port=25565)
after i try to get  player position:
position = mc.player.getPos()
and i have error in this road:
File "C:\Users\1005504\AppData\Local\Programs\Python\Python310\lib\site-packages\mcpi\minecraft.py", line 153, in getPos
    return CmdPositioner.getPos(self, [])
  File "C:\Users\1005504\AppData\Local\Programs\Python\Python310\lib\site-packages\mcpi\minecraft.py", line 47, in getPos
    return Vec3(*list(map(float, s.split(","))))
ValueError: could not convert string to float: ''

Reply all
Reply to author
Forward
0 new messages