import { system, world } from "@minecraft/server"
world.afterEvents.playerJoin.subscribe(event => {
system.runTimeOut(() => {
let player = world.getEntity(event.playerId)
console.log(player.location.x, player.dimension.getEntities({id:event.playerId})[0].location.x)
}, 80)
})Steps to reproduce
add the pack with code above to a world
make sure the error log is enabled
enter the world and wait for seconds
Observed result
The output has 2 different values where the first value is consistent with the coordinate in game.
Expected result
The output has 2 same values that consistent with the coordinate in game.
Attachments
Comments 4
Thank you for the attached MCPack!
Could you please elaborate what error appears when the issue occurs?
Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
Could you please attach an example addon showcasing the issue?
Just a reminder, to make your bug report as effective as possible, please try and include the following steps to reproduce the problem:
If your ticket does not look like the example given here, then it's likely to be closed as incomplete.
This ticket will automatically reopen when you reply.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki