mcpi | Minecraft : Pi Edition API Python Library

 by   martinohanlon Python Version: Current License: MIT

kandi X-RAY | mcpi Summary

kandi X-RAY | mcpi Summary

null

Minecraft: Pi Edition API Python Library
Support
    Quality
      Security
        License
          Reuse

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mcpi
            Get all kandi verified functions for this library.

            mcpi Key Features

            No Key Features are available at this moment for mcpi.

            mcpi Examples and Code Snippets

            No Code Snippets are available at this moment for mcpi.

            Community Discussions

            Trending Discussions on mcpi

            QUESTION

            Python + Minecraft Coordinates Trouble
            Asked 2022-Jan-17 at 21:43

            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:39

            Per 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.

            Source https://stackoverflow.com/questions/70747581

            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

            For feature suggestions, bugs create an issue on GitHub
            If you have any questions vist the community on GitHub, Stack Overflow.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries