Skip to content

Protocol: Fix some packets #331

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

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

Happy2018new
Copy link

@Happy2018new Happy2018new commented Jul 12, 2025

This pull request fix so many packets (the data type for some fields), and the following is the reference list.

  • See UpdateSubChunkBlocks, and you can find that the data type for Position is protocol.BlockPos which encoding by io.UBlockPos.

  • See PlayerAuthInput and PackedItemUseLegacyInventoryTransaction, and you can find that the correct marshal for field BlockPosition is io.UBlockPos.

  • See AddVolumeEntity, RemoveVolumeEntity and EntityNetId, and you can find that the data type for EntityRuntimeID is uint32 whcih encoding by io.Varuint32.

  • See AgentActionEvent and int, and you can find that the data type for Action is int32 which encoding by io.Int32.

  • See ChangeMobProperty and ActorUniqueID, and you can find that the data type for EntityUniqueID is int64 which encoding by io.Varint64.

  • See CommandBlockUpdate, and you can find that the data type for TickDelay is uint32 (unsigned int) which encoding by io.Uint32.

  • See LessonProgress, and you can find that the data type for Action is int32 which encoding by io.Varint32.

  • See OnScreenTextureAnimation, and you can find that the data type for AnimationType is uint32 (unsigned int) which encoding by io.Uint32.

  • See RequestChunkRadius, and you can find that the data type for MaxChunkRadius is byte which encoding by io.Uint8.

  • See RequestPermissions, and you can find that the data type for PermissionLevel is int32 which encoding by io.Varint32.

  • See SimpleEvent, and you can find that the data type for EventType is uint16 (unsigned short) which encoding by io.Uint16.

  • See StartGame which path is StartGamePacket/Settings (LevelSettings) and LevelSettings which path is LevelSettings/override force experimental gameplay has value, and you can find that the data type for ForceExperimentalGameplay is bool which encoding by io.Bool.

@Happy2018new Happy2018new marked this pull request as draft July 12, 2025 11:36
@Happy2018new Happy2018new marked this pull request as ready for review July 12, 2025 11:37
@Happy2018new Happy2018new changed the title Protocol: Fix packet.UpdateSubChunkBlocks Protocol: Fix some packets Jul 13, 2025
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Happy2018new and others added 2 commits July 13, 2025 12:18
…ntity`

Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Happy2018new and others added 4 commits July 13, 2025 12:37
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
…ionType`

Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
@Happy2018new Happy2018new marked this pull request as draft July 13, 2025 04:52
Happy2018new and others added 3 commits July 13, 2025 12:54
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
Co-Authored-By: Liliya233 <79683806+Liliya233@users.noreply.github.com>
@Happy2018new Happy2018new marked this pull request as ready for review July 13, 2025 05:09
@Happy2018new
Copy link
Author

Happy2018new commented Jul 13, 2025

All right, and ready for review.

@Happy2018new
Copy link
Author

Happy2018new commented Jul 13, 2025

Most changes are come from @CoozillaX, and I just compare these changes with documents which wrote by Mojang.

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

Successfully merging this pull request may close these issues.

1 participant