mcpi | Minecraft : Pi Edition API Python Library
kandi X-RAY | mcpi Summary
kandi X-RAY | mcpi Summary
Minecraft: Pi Edition API Python Library
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mcpi
mcpi Key Features
mcpi Examples and Code Snippets
Community Discussions
Trending Discussions on mcpi
QUESTION
The Y coordinate listed below teleports you to double what it's supposed to ingame. It is supposed to teleport you to 0, 62, 0, but it teleports you to 0, 124, 0
...ANSWER
Answered 2022-Jan-17 at 21:39Per comments on the documentation for mcpi, it would appear that the coordinates are relative to the world spawn:
getPos, getTilePos, setPos and setTilePos all appear to be relative to the player's spawn point at least in a single player world. I am going through trying to teleport my character but the coordinates I end up on are not the world's coordinates but a coordinate relative to where my character would spawn.
This appears to hold true with the results you observed, which were that different coordinate pairs produced a common difference in the expected and actual coordinates (i.e. (0, 32, 0) (0, 98, 0)
; (0, 62, 0) (0, 128, 0)
).
So, either fix an offset of 66 blocks into the y-axis values, or manually set the world spawn to (0, 0, 0)
with /setworldspawn
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mcpi
No Installation instructions are available at this moment for mcpi.Refer to component home page for details.
Support
If you have any questions vist the community on GitHub, Stack Overflow.
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page