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

Protocol for r/21_u5 NetworkProtocolVersion 766 #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

oswaldolb
Copy link
Collaborator

Minecraft Network Protocol Docs 11/07/2024

For r21_u5, Network Protocol Version 766

New Packets

CameraAimAssistPresetsPacket:

  • Added mCategories (std::vectorSharedTypes::v1_21_50::CameraAimAssistCategoriesDefinition) [type definition in New Types]
  • Added mPresets (std::vectorSharedTypes::v1_21_50::CameraAimAssistPresetDefinition) [type definition in New Types]

Packet Changes

CameraAimAssistPacket:

  • Added mPresetId (std::string)

ItemStackResponseSlotInfo:

  • Added Filtered Custom Name (std::string)

PlayerAuthInputPacket:

  • mInputData is now being serialized as std::bitset<static_cast(InputData::INPUT_NUM)> (previous was unsigned varint64)
  • Changed mClientTick type from uint64_t to PlayerInputTick
  • Added mRawMoveVector (Vec2)

ResourcePacksInfoPacket:

  • Added mData.mWorldTemplateIdAndVersion.mId (mce::UUID)
  • Added mData.mWorldTemplateIdAndVersion.mVersion.asString() (std::string)
  • Changes to PackInfoData:
    • Changed pack.mPackIdVersion.mId from std::string to mce::UUID mId

New Types

SharedTypes::v1_21_50::CameraAimAssistCategoriesDefinition:

  • Added mIdentifier (std::string)
  • Added mCategories (std::vectorSharedTypes::v1_21_50::CameraAimAssistCategoryDefinition) [type definition below]

SharedTypes::v1_21_50::CameraAimAssistCategoryDefinition:

  • Added mName (std::string)
  • Added mPriorities (SharedTypes::v1_21_50::CameraAimAssistCategoryPriorities) [type definition below]

SharedTypes::v1_21_50::CameraAimAssistCategoryPriorities:

  • Added mEntities (std::unordered_map<std::string, int32_t>)
  • Added mBlocks (std::unordered_map<std::string, int32_t>)

SharedTypes::v1_21_50::CameraAimAssistPresetDefinition:

  • Added mIdentifier (std::string)
  • Added mCategories (std::string)
  • Added mExclusionList (std::vectorstd::string)
  • Added mLiquidTargetingList (std::vectorstd::string)
  • Added mItemSettings (std::unordered_map<std::string, std::string>)
  • Added mDefaultItemSettings (std::optionalstd::string)
  • Added mHandSettings (std::optionalstd::string)

SharedTypes::Comprehensive::v1_21_50::CameraPresetAimAssistDefinition:

  • Added mPresetId (brstd::optionalstd::string)
  • Added mTargetMode (brstd::optionalCameraAimAssist::TargetMode) [enum definition in New Enums]
  • Added mAngle (brstd::optional)
  • Added mDistance (brstd::optional)

Other Changes in Types

CameraPreset:

  • Added mTrackingRadius (brstd::optional)
  • Added mAimAssist (brstd::optionalSharedTypes::Comprehensive::v1_21_50::CameraPresetAimAssistDefinition) [type definition in New Types]

New Enums

CameraAimAssist::TargetMode:

  • Added Angle(0)
  • Added Distance(1)

Enum Changes

ActorType:

  • Added Creaking(146 | Monster)

BuildPlatform:

  • Added GearVR_Deprecated(5)
  • Removed GearVR

CameraAimAssistPacket::Action:

  • Added _count(2)

CameraAimAssistPacket::TargetMode:

  • Added _count(2)

Connection::DisconnectFailReason:

  • Added ConnectionLost_DEPRECATED(66)
  • Removed ConnectionLost

ContainerID:

  • Removed CONTAINER_ID_REGISTRY_INVENTORY

CraftingDataEntryType:

  • Added UserDataShapelessRecipe(5)
  • Removed ShulkerBoxRecipe

LevelEvent:

  • Added ParticleCreakingHeartTrail(9816)

MapItemTrackedActor::Type:

  • Removed COUNT

MinecraftPacketIds:

  • Added MovementEffect(318)
  • Added SetMovementAuthorityMode(319)
  • Added CameraAimAssistPresets(320)
  • Displaced EndId

ParticleType:

  • Added CreakingCrumble(94)
  • Added PaleOakLeaves(95)
  • Added EyeblossomOpen(96)
  • Added EyeblossomClose(97)
  • Displaced _count

PlayerActionType:

  • Added StartSpinAttack(23)
  • Added StartUsingItem(37)
  • Changed Count from 37 to 38
  • Removed DEPRECATED_StartSpinAttack

PlayerAuthInputPacket::InputData:

  • Added StartUsingItem(53)
  • Added IsCameraRelativeMovementEnabled(54)
  • Added IsRotControlledByMoveDirection(55)
  • Added StartSpinAttack(56)
  • Added StopSpinAttack(57)
  • Added IsHotbarOnlyTouch(58)
  • Added JumpReleasedRaw(59)
  • Added JumpPressedRaw(60)
  • Added JumpCurrentRaw(61)
  • Added SneakReleasedRaw(62)
  • Added SneakPressedRaw(63)
  • Added SneakCurrentRaw(64)
  • Displaced INPUT_NUM

ServerAuthMovementMode:

  • Added LegacyClientAuthoritativeV1(0)
  • Added ClientAuthoritativeV2(1)
  • Added ServerAuthoritativeV3(2)
  • Removed ClientAuthoritative
  • Removed ServerAuthoritative
  • Removed ServerAuthoritativeWithRewind

Misc

Vectors:

  • Changed size name from "Array Size" to "List Size"

Conditional statements:

  • If - else if and switch statements have more detailed info for each case

Field name changes:

  • Multiple instances of changes in field names. No changes in internal logic

@GameParrot
Copy link

I see that the protocol id mentioned here is 766 but the protocol id in the latest beta/preview is 765, was it bumped in a newer internal version or is that a typo?

@Kaooot
Copy link

Kaooot commented Nov 8, 2024

@GameParrot
As far as I know, v766 is the final version of the release protocol. I assume they probably forgot to bump up the protocol version in this week's preview because there are changes that weren't included in last week's preview (v1.21.50.26, v765). I know that the optional float mTrackingRadius/Block Listening Radius is not present in beta-26, but it is present in beta-28.

I also found a few errors in the changelog markdown file, probably caused by a copy/paste error. I strongly recommend not to copy/paste changelogs from previous versions before starting to write a new one, as this leads to confusion. (@oswaldolb)

  • changes to the CameraAimAssistPacket::Action enum were already mentioned in r/21_u4
  • changes to the CameraAimAssistPacket::TargetMode enum were already mentioned in r/21_u4
  • changes to the ContainerID enum were already mentioned in r/21_u4
  • changes to the CraftingDataEntryType enum were already mentioned in r/21_u4
  • MinecraftPacketIds for MovementEffect and SetMovementAuthorityMode are new in r/21_u4 but not in r/21_u5
  • changes to the PlayerActionType enum were already mentioned in r/21_u4
  • changes to the ServerAuthMovementMode enum were already mentioned in r/21_u4
  • changes to the PlayerAuthInputPacket::InputData enum are new since the addition of IsHotbarOnlyTouch(58), but not since the addition of StartUsingItem(53)
  • mEntityDefault and mBlockDefault (optional integers) are not mentioned (type: SharedTypes::v1_21_50::CameraAimAssistCategoryPriorities)

@GameParrot
Copy link

@GameParrot As far as I know, v766 is the final version of the release protocol. I assume they probably forgot to bump up the protocol version in this week's preview because there are changes that weren't included in last week's preview (v1.21.50.26, v765). I know that the optional float mTrackingRadius/Block Listening Radius is not present in beta-26, but it is present in beta-28.

I also found a few errors in the changelog markdown file, probably caused by a copy/paste error. I strongly recommend not to copy/paste changelogs from previous versions before starting to write a new one, as this leads to confusion. (@oswaldolb)

* changes to the CameraAimAssistPacket::Action enum were already mentioned in r/21_u4

* changes to the CameraAimAssistPacket::TargetMode enum were already mentioned in r/21_u4

* changes to the ContainerID enum were already mentioned in r/21_u4

* changes to the CraftingDataEntryType enum were already mentioned in r/21_u4

* MinecraftPacketIds for MovementEffect and SetMovementAuthorityMode are new in r/21_u4 but not in r/21_u5

* changes to the PlayerActionType enum were already mentioned in r/21_u4

* changes to the ServerAuthMovementMode enum were already mentioned in r/21_u4

* changes to the PlayerAuthInputPacket::InputData enum are new since the addition of `IsHotbarOnlyTouch(58)`, but not since the addition of `StartUsingItem(53)`

* mEntityDefault and mBlockDefault (optional integers) are not mentioned (type: SharedTypes::v1_21_50::CameraAimAssistCategoryPriorities)

It seems like InputData in PlayerAuthInputPacket is still serialized as unsigned varint64, is that a changelog mistake or is it likely to change in the next beta/preview

@theaddonn
Copy link

It is a changelog mistake, from what I know

@HeroFluxx
Copy link

Any plans to release the rest of the missing docs?

@theaddonn
Copy link

Any plans to release the rest of the missing docs?

What docs are missing?

@HeroFluxx
Copy link

Any plans to release the rest of the missing docs?

What docs are missing?

Look at the 5th pull request

@HeroFluxx
Copy link

@Kaooot Any protocol changelog for r/21_u6?

@Kaooot
Copy link

Kaooot commented Dec 6, 2024

@Kaooot Any protocol changelog for r/21_u6?

@HeroFluxx https://github.com/Kaooot/bedrock-protocol-docs

@HeroFluxx
Copy link

@Kaooot Any protocol changelog for r/21_u6?

@HeroFluxx https://github.com/Kaooot/bedrock-protocol-docs

Thank you!

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.

5 participants