show playerposlook coords in console
This commit is contained in:
parent
b836c31658
commit
9413ac4a85
1 changed files with 4 additions and 1 deletions
|
@ -170,8 +170,11 @@ class Treepuncher(MinecraftClient):
|
||||||
|
|
||||||
@self.on_packet(PacketPosition)
|
@self.on_packet(PacketPosition)
|
||||||
async def player_rubberband_cb(packet:PacketPosition):
|
async def player_rubberband_cb(packet:PacketPosition):
|
||||||
self._logger.info("Position synchronized")
|
|
||||||
self.position = BlockPos(packet.x, packet.y, packet.z)
|
self.position = BlockPos(packet.x, packet.y, packet.z)
|
||||||
|
self._logger.info(
|
||||||
|
"Position synchronized : (x:{%.0f},y:{%.0f},z:{%.0f})",
|
||||||
|
self.position.x, self.position.y, self.position.z
|
||||||
|
)
|
||||||
await self.dispatcher.write(
|
await self.dispatcher.write(
|
||||||
PacketTeleportConfirm(
|
PacketTeleportConfirm(
|
||||||
self.dispatcher.proto,
|
self.dispatcher.proto,
|
||||||
|
|
Loading…
Reference in a new issue