Skip to content

Commit

Permalink
Add bedrock 1.21.60 data (#980)
Browse files Browse the repository at this point in the history
* Bedrock v776 protocol support

* Update README

* cam preset fix, lang

* add item registry to login sequence

* Unnecessary type

* Consistent field naming with previous versions

* Rename item ID to runtime_id

* updates

* fix entitymetadata

* updates

* fix path, do bedrock ci against fork

* fix

* Update bedrock-ci.yml

---------

Co-authored-by: extremeheat <[email protected]>
  • Loading branch information
CreeperG16 and extremeheat authored Feb 12, 2025
1 parent c42c06e commit 641f42d
Show file tree
Hide file tree
Showing 113 changed files with 33,506 additions and 1,253 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Language independent module providing minecraft data for minecraft clients, serv
Supports
* Minecraft PC version 0.30c (classic), 1.7.10, 1.8.8, 1.9 (15w40b, 1.9, 1.9.1-pre2, 1.9.2, 1.9.4),
1.10 (16w20a, 1.10-pre1, 1.10, 1.10.1, 1.10.2), 1.11 (16w35a, 1.11, 1.11.2), 1.12 (17w15a, 17w18b, 1.12-pre4, 1.12, 1.12.1, 1.12.2), 1.13 (17w50a, 1.13, 1.13.1, 1.13.2-pre1, 1.13.2-pre2, 1.13.2), 1.14 (1.14, 1.14.1, 1.14.3, 1.14.4), 1.15 (1.15, 1.15.1, 1.15.2), 1.16 (20w13b, 20w14a, 1.16-rc1, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5), 1.17, 1.17.1, 1.18 (1.18, 1.18.1, 1.18.2), 1.19 (1.19, 1.19.2, 1.19.3, 1.19.4), 1.20 (1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6), 1.21 (1.21, 1.21.1, 1.21.3)
* Minecraft bedrock version 0.14, 0.15, 1.0, 1.16.201, 1.16.210, 1.16.220, 1.17.0, 1.17.10, 1.17.30, 1.17.40, 1.18.0, 1.18.11, 1.18.30, 1.19.1, 1.19.10, 1.19.20, 1.19.21, 1.19.30, 1.19.40, 1.19.50, 1.19.60, 1.19.62, 1.19.63, 1.19.70, 1.19.80, 1.20.0, 1.20.10, 1.20.30, 1.20.40, 1.20.50, 1.20.61, 1.20.71, 1.20.80, 1.21.0, 1.21.2, 1.21.20, 1.21.30, 1.21.42, 1.21.50
* Minecraft bedrock version 0.14, 0.15, 1.0, 1.16.201, 1.16.210, 1.16.220, 1.17.0, 1.17.10, 1.17.30, 1.17.40, 1.18.0, 1.18.11, 1.18.30, 1.19.1, 1.19.10, 1.19.20, 1.19.21, 1.19.30, 1.19.40, 1.19.50, 1.19.60, 1.19.62, 1.19.63, 1.19.70, 1.19.80, 1.20.0, 1.20.10, 1.20.30, 1.20.40, 1.20.50, 1.20.61, 1.20.71, 1.20.80, 1.21.0, 1.21.2, 1.21.20, 1.21.30, 1.21.42, 1.21.50, 1.21.60


## Wrappers
Expand Down
10 changes: 10 additions & 0 deletions data/bedrock/1.16.201/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -873,13 +873,23 @@ packet_animate:
!id: 0x2c
!bound: both
action_id: zigzag32 =>
# Unused
0: none
# Server bound notification to swing the player's arm. Server is expected to rebroadcast to all that should see the arm move.
# See also PlayerAuthInputPacket::InputData::MissedSwing for a very similar action
1: swing_arm
2: unknown
# Client bound notification to stop sleeping in a bed
3: wake_up
# Client-bound notification to play critical hit particles
4: critical_hit
# Unused
5: magic_critical_hit
# Sent every tick the client is in a boat exclusively in legacy client authoritative movement.
# See Player Auth Input for how to compute this in the latest protocol.
128: row_right
# Sent every tick the client is in a boat exclusively in legacy client authoritative movement.
# See Player Auth Input for how to compute this in the latest protocol.
129: row_left
runtime_entity_id: varint64
_: action_id ?
Expand Down
13 changes: 13 additions & 0 deletions data/bedrock/1.16.201/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,19 @@ Transaction:
changed_slots: []varint
slot_id: u8
transaction_type: varint =>
# Sent for container UI operations depending on if ItemStackNetManager is enabled
0: normal
# Sent from server to client to reject a transaction
1: inventory_mismatch
# Sent for a player performing right click style item use.
# See the contained ItemUseInventoryTransaction::ActionType for the expected use case.
2: item_use
# Sent for a player right clicking on an entity or attacking them.
# See ItemUseInventoryTransaction::ActionType for which it is.
3: item_use_on_entity
# Sent when releasing right click on a chargeable item like a bow or finishing charging like a crossbow.
# This is different than canceling item use early which would be in Player Auth Input.
# See ItemReleaseInventoryTransaction::ActionType for which it is.
4: item_release
network_ids: bool
inventory_actions: []varint
Expand Down Expand Up @@ -375,7 +384,9 @@ Transaction:
# ActionType is the type of the UseItemOnEntity inventory transaction. It is one of the action types
# found in the constants above, and specifies the way the player interacted with the entity.
action_type: varint =>
# Right click interact with actor.
0: interact
# Left click style attack of actor or elytra spin attack. Server is expected to deal damage to the entity with visuals.
1: attack
# HotBarSlot is the hot bar slot that the player was holding while clicking the entity. It should be used
# to ensure that the hot bar slot and held item are correctly synchronised with the server.
Expand All @@ -396,7 +407,9 @@ Transaction:
# As of 1.13, the ActionType is always 0. This field can be ignored, because releasing food (by consuming
# it) or releasing a bow (to shoot an arrow) is essentially the same.
action_type: varint =>
# Release right click and hold style item use, like firing a bow
0: release
# Finish right click and hold style item use, like charging a crossbow
1: consume
# HotBarSlot is the hot bar slot that the player was holding while releasing the item. It should be used
# to ensure that the hot bar slot and held item are correctly synchronised with the server.
Expand Down
10 changes: 10 additions & 0 deletions data/bedrock/1.16.210/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -894,13 +894,23 @@ packet_animate:
!id: 0x2c
!bound: both
action_id: zigzag32 =>
# Unused
0: none
# Server bound notification to swing the player's arm. Server is expected to rebroadcast to all that should see the arm move.
# See also PlayerAuthInputPacket::InputData::MissedSwing for a very similar action
1: swing_arm
2: unknown
# Client bound notification to stop sleeping in a bed
3: wake_up
# Client-bound notification to play critical hit particles
4: critical_hit
# Unused
5: magic_critical_hit
# Sent every tick the client is in a boat exclusively in legacy client authoritative movement.
# See Player Auth Input for how to compute this in the latest protocol.
128: row_right
# Sent every tick the client is in a boat exclusively in legacy client authoritative movement.
# See Player Auth Input for how to compute this in the latest protocol.
129: row_left
runtime_entity_id: varint64
_: action_id ?
Expand Down
21 changes: 11 additions & 10 deletions data/bedrock/1.16.210/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,9 @@
"16": "minecart_display_block",
"17": "minecart_display_offset",
"18": "minecart_has_display",
"20": "old_swell",
"21": "swell_dir",
"19": "horse_type",
"20": "creeper_swell",
"21": "creeper_swell_direction",
"22": "charge_amount",
"23": "enderman_held_runtime_id",
"24": "entity_age",
Expand Down Expand Up @@ -525,15 +526,15 @@
"49": "wither_target_1",
"50": "wither_target_2",
"51": "wither_target_3",
"52": "aerial_attack",
"52": "wither_aerial_attack",
"53": "boundingbox_width",
"54": "boundingbox_height",
"55": "fuse_length",
"56": "rider_seat_position",
"57": "rider_rotation_locked",
"58": "rider_max_rotation",
"59": "rider_min_rotation",
"60": "rider_rotation_offset",
"60": "rider_seat_rotation_offset",
"61": "area_effect_cloud_radius",
"62": "area_effect_cloud_waiting",
"63": "area_effect_cloud_particle_id",
Expand All @@ -550,7 +551,7 @@
"74": "controlling_rider_seat_number",
"75": "strength",
"76": "max_strength",
"77": "spell_casting_color",
"77": "evoker_spell_casting_color",
"78": "limited_life",
"79": "armor_stand_pose_index",
"80": "ender_crystal_time_offset",
Expand All @@ -568,11 +569,11 @@
"92": "flags_extended",
"93": "laying_amount",
"94": "laying_amount_previous",
"95": "duration",
"96": "spawn_time",
"97": "change_rate",
"98": "change_on_pickup",
"99": "pickup_count",
"95": "area_effect_cloud_duration",
"96": "area_effect_cloud_spawn_time",
"97": "area_effect_cloud_change_rate",
"98": "area_effect_cloud_change_on_pickup",
"99": "area_effect_cloud_pickup_count",
"100": "interact_text",
"101": "trade_tier",
"102": "max_trade_tier",
Expand Down
40 changes: 30 additions & 10 deletions data/bedrock/1.16.210/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ MetadataDictionary: []varint
16: minecart_display_block #int (id | (data << 16))
17: minecart_display_offset #int
18: minecart_has_display #byte (must be 1 for minecart to show block inside)
20: old_swell
21: swell_dir
19: horse_type
20: creeper_swell
21: creeper_swell_direction
22: charge_amount
23: enderman_held_runtime_id #short
24: entity_age #short
Expand Down Expand Up @@ -167,15 +168,15 @@ MetadataDictionary: []varint
49: wither_target_1 #long
50: wither_target_2 #long
51: wither_target_3 #long
52: aerial_attack
52: wither_aerial_attack
53: boundingbox_width
54: boundingbox_height
55: fuse_length
56: rider_seat_position #vector3f
57: rider_rotation_locked #byte
58: rider_max_rotation #float
59: rider_min_rotation #float
60: rider_rotation_offset
60: rider_seat_rotation_offset
61: area_effect_cloud_radius #float
62: area_effect_cloud_waiting #int
63: area_effect_cloud_particle_id #int
Expand All @@ -192,7 +193,7 @@ MetadataDictionary: []varint
74: controlling_rider_seat_number #byte
75: strength #int
76: max_strength #int
77: spell_casting_color #int
77: evoker_spell_casting_color #int
78: limited_life
79: armor_stand_pose_index # int
80: ender_crystal_time_offset # int
Expand All @@ -210,11 +211,11 @@ MetadataDictionary: []varint
92: flags_extended
93: laying_amount
94: laying_amount_previous
95: duration
96: spawn_time
97: change_rate
98: change_on_pickup
99: pickup_count
95: area_effect_cloud_duration
96: area_effect_cloud_spawn_time
97: area_effect_cloud_change_rate
98: area_effect_cloud_change_on_pickup
99: area_effect_cloud_pickup_count
100: interact_text
101: trade_tier
102: max_trade_tier
Expand Down Expand Up @@ -408,8 +409,14 @@ TransactionUseItem:
# ActionType is the type of the UseItem inventory transaction. It is one of the action types found above,
# and specifies the way the player interacted with the block.
action_type: varint =>
# Right click item use on a surface like placing a block
0: click_block
# Start right click and hold style item use or potentially interact with nothing.
# If it is a usable item like food the server is expected to send a SetActorDataPacket with ActorFlags::USINGITEM along with the transaction response.
# While using an item, movement speed is slowed which will be reflected in the move vector in Player Auth Input.
1: click_air
# Block breaking like left click. When using server auth block breaking as specified in StartGamePacket this is never sent.
# Instead, block actions are supplied in Player Auth Input.
2: break_block
# BlockPosition is the position of the block that was interacted with. This is only really a correct
# block position if ActionType is not UseItemActionClickAir.
Expand Down Expand Up @@ -487,10 +494,19 @@ Transaction:
legacy: TransactionLegacy
# What type of transaction took place
transaction_type: varint =>
# Sent for container UI operations depending on if ItemStackNetManager is enabled
0: normal
# Sent from server to client to reject a transaction
1: inventory_mismatch
# Sent for a player performing right click style item use.
# See the contained ItemUseInventoryTransaction::ActionType for the expected use case.
2: item_use
# Sent for a player right clicking on an entity or attacking them.
# See ItemUseInventoryTransaction::ActionType for which it is.
3: item_use_on_entity
# Sent when releasing right click on a chargeable item like a bow or finishing charging like a crossbow.
# This is different than canceling item use early which would be in Player Auth Input.
# See ItemReleaseInventoryTransaction::ActionType for which it is.
4: item_release
# The list of inventory internal actions in this packet, e.g. inventory GUI actions
actions: TransactionActions
Expand All @@ -509,7 +525,9 @@ Transaction:
# ActionType is the type of the UseItemOnEntity inventory transaction. It is one of the action types
# found in the constants above, and specifies the way the player interacted with the entity.
action_type: varint =>
# Right click interact with actor.
0: interact
# Left click style attack of actor or elytra spin attack. Server is expected to deal damage to the entity with visuals.
1: attack
# HotBarSlot is the hot bar slot that the player was holding while clicking the entity. It should be used
# to ensure that the hot bar slot and held item are correctly synchronised with the server.
Expand All @@ -530,7 +548,9 @@ Transaction:
# As of 1.13, the ActionType is always 0. This field can be ignored, because releasing food (by consuming
# it) or releasing a bow (to shoot an arrow) is essentially the same.
action_type: varint =>
# Release right click and hold style item use, like firing a bow
0: release
# Finish right click and hold style item use, like charging a crossbow
1: consume
# HotBarSlot is the hot bar slot that the player was holding while releasing the item. It should be used
# to ensure that the hot bar slot and held item are correctly synchronised with the server.
Expand Down
10 changes: 10 additions & 0 deletions data/bedrock/1.16.220/proto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -924,13 +924,23 @@ packet_animate:
!id: 0x2c
!bound: both
action_id: zigzag32 =>
# Unused
0: none
# Server bound notification to swing the player's arm. Server is expected to rebroadcast to all that should see the arm move.
# See also PlayerAuthInputPacket::InputData::MissedSwing for a very similar action
1: swing_arm
2: unknown
# Client bound notification to stop sleeping in a bed
3: wake_up
# Client-bound notification to play critical hit particles
4: critical_hit
# Unused
5: magic_critical_hit
# Sent every tick the client is in a boat exclusively in legacy client authoritative movement.
# See Player Auth Input for how to compute this in the latest protocol.
128: row_right
# Sent every tick the client is in a boat exclusively in legacy client authoritative movement.
# See Player Auth Input for how to compute this in the latest protocol.
129: row_left
runtime_entity_id: varint64
_: action_id ?
Expand Down
21 changes: 11 additions & 10 deletions data/bedrock/1.16.220/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -671,8 +671,9 @@
"16": "minecart_display_block",
"17": "minecart_display_offset",
"18": "minecart_has_display",
"20": "old_swell",
"21": "swell_dir",
"19": "horse_type",
"20": "creeper_swell",
"21": "creeper_swell_direction",
"22": "charge_amount",
"23": "enderman_held_runtime_id",
"24": "entity_age",
Expand Down Expand Up @@ -702,15 +703,15 @@
"49": "wither_target_1",
"50": "wither_target_2",
"51": "wither_target_3",
"52": "aerial_attack",
"52": "wither_aerial_attack",
"53": "boundingbox_width",
"54": "boundingbox_height",
"55": "fuse_length",
"56": "rider_seat_position",
"57": "rider_rotation_locked",
"58": "rider_max_rotation",
"59": "rider_min_rotation",
"60": "rider_rotation_offset",
"60": "rider_seat_rotation_offset",
"61": "area_effect_cloud_radius",
"62": "area_effect_cloud_waiting",
"63": "area_effect_cloud_particle_id",
Expand All @@ -727,7 +728,7 @@
"74": "controlling_rider_seat_number",
"75": "strength",
"76": "max_strength",
"77": "spell_casting_color",
"77": "evoker_spell_casting_color",
"78": "limited_life",
"79": "armor_stand_pose_index",
"80": "ender_crystal_time_offset",
Expand All @@ -745,11 +746,11 @@
"92": "flags_extended",
"93": "laying_amount",
"94": "laying_amount_previous",
"95": "duration",
"96": "spawn_time",
"97": "change_rate",
"98": "change_on_pickup",
"99": "pickup_count",
"95": "area_effect_cloud_duration",
"96": "area_effect_cloud_spawn_time",
"97": "area_effect_cloud_change_rate",
"98": "area_effect_cloud_change_on_pickup",
"99": "area_effect_cloud_pickup_count",
"100": "interact_text",
"101": "trade_tier",
"102": "max_trade_tier",
Expand Down
Loading

0 comments on commit 641f42d

Please sign in to comment.