Let's say that for a hypothetical Minecraft map, there's a height limit of y=221, where…
- User
Let's say that for a hypothetical Minecraft map, there's a height limit of y=221, where if your hitbox enters, you get pushed downwards immediately. If we had a player who was flying with an elytra and facing straight down, and recreating their position without an elytra led to the Y coordinate being displayed as y=220.75 in the F3 menu, what would the y coordinate of the highest point of the players hitbox be with the elytra? If the answer is above y=221 that is fine and implies that the player was using a modified version of the map. Keep in mind that the hitbox with an elytra is 0.6 blocks tall and the player's eye hight is at the highest point of the hitbox (so, also 0.6 blocks high), as opposed to normally where the hitbox is 1.8 blocks tall and their eye height is 1.62 blocks. Note: The position of the player with the elytra cannot simply be calculated based on the hitbox height. Due to the eye level differences between not using an elytra and using it, extra calculations have to be made to ensure equivalence.
- Assistant
To determine the highest point of the player's hitbox when using an elytra, we'll need to account for the differences in hitbox height and eye height between normal movement and elytra flight.
Normal Movement (Without Elytra)
- Hitbox Height: 1.8 blocks
- Eye Height: 1.62 blocks above the feet
- Displayed Y Coordinate: 220.75 (this represents the feet position)
- Eye Position: ( 220.75 + 1.62 = 222.37 )
Elytra Flight
- Hitbox Height: 0.6 blocks
- Eye Height: 0.6 blocks above the feet
To maintain the same eye position (222.37) while using the elytra, we need to adjust the feet's Y coordinate accordingly.