Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlayerPositionAndLookPacket #274

Open
ytka-ciber opened this issue Apr 15, 2024 · 0 comments
Open

PlayerPositionAndLookPacket #274

ytka-ciber opened this issue Apr 15, 2024 · 0 comments

Comments

@ytka-ciber
Copy link

ytka-ciber commented Apr 15, 2024

I tried to move the character 1 block forward, but I still didn't figure out how to write the PlayerPositionAndLookPacket package.
Code:

current_position = clientbound.play.PlayerPositionAndLookPacket.PositionAndLook(
x=-13, y=70, z=-48, yaw=1, pitch=1)

packet = clientbound.play.PlayerPositionAndLookPacket()
packet.x = -13
packet.y = 70
packet.z = -48
packet.yaw = 4.0
packet.pitch = 5.0

packet.flags = 0

packet.apply(current_position)
connection.write_packet(packet)

Error: AttributeError: 'PlayerPositionAndLookPacket' object has no attribute 'teleport_id'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant