Skip to content

Commit

Permalink
Add bedrock 1.20.40 protocol data (#784)
Browse files Browse the repository at this point in the history
* Add support for bedrock 1.20.40 protocol

* Change disconnect fail reasons to lower snake_case

* switch DisconnectFailReason type to zigzag32 and backprop MapDecoration enum

* Update bedrock-ci.yml increase job time

---------

Co-authored-by: extremeheat <[email protected]>
  • Loading branch information
CreeperG16 and extremeheat committed Oct 26, 2023
1 parent 2a236db commit 0c1d4e6
Show file tree
Hide file tree
Showing 53 changed files with 19,594 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bedrock-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 12
timeout-minutes: 14

steps:
- name: Use Node.js 14.x
Expand Down
33 changes: 32 additions & 1 deletion data/bedrock/1.16.220/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2558,7 +2558,38 @@
[
{
"name": "type",
"type": "u8"
"type": [
"mapper",
{
"type": "u8",
"mappings": {
"0": "marker_white",
"1": "marker_green",
"2": "marker_red",
"3": "marker_blue",
"4": "cross_white",
"5": "triangle_red",
"6": "square_white",
"7": "marker_sign",
"8": "marker_pink",
"9": "marker_orange",
"10": "marker_yellow",
"11": "marker_teal",
"12": "triangle_green",
"13": "small_square_white",
"14": "mansion",
"15": "monument",
"16": "no_draw",
"17": "village_desert",
"18": "village_plains",
"19": "village_savanna",
"20": "village_snowy",
"21": "village_taiga",
"22": "jungle_temple",
"23": "witch_hut"
}
}
]
},
{
"name": "rotation",
Expand Down
26 changes: 25 additions & 1 deletion data/bedrock/1.16.220/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,31 @@ TrackedObject:
# MapDecoration is a fixed decoration on a map: Its position or other properties do not change automatically
# client-side.
MapDecoration:
type: u8
type: u8 =>
- marker_white
- marker_green
- marker_red
- marker_blue
- cross_white
- triangle_red
- square_white
- marker_sign
- marker_pink
- marker_orange
- marker_yellow
- marker_teal
- triangle_green
- small_square_white
- mansion
- monument
- no_draw
- village_desert
- village_plains
- village_savanna
- village_snowy
- village_taiga
- jungle_temple
- witch_hut
# Rotation is the rotation of the map decoration. It is byte due to the 16 fixed directions that the
# map decoration may face.
rotation: u8
Expand Down
33 changes: 32 additions & 1 deletion data/bedrock/1.17.0/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2561,7 +2561,38 @@
[
{
"name": "type",
"type": "u8"
"type": [
"mapper",
{
"type": "u8",
"mappings": {
"0": "marker_white",
"1": "marker_green",
"2": "marker_red",
"3": "marker_blue",
"4": "cross_white",
"5": "triangle_red",
"6": "square_white",
"7": "marker_sign",
"8": "marker_pink",
"9": "marker_orange",
"10": "marker_yellow",
"11": "marker_teal",
"12": "triangle_green",
"13": "small_square_white",
"14": "mansion",
"15": "monument",
"16": "no_draw",
"17": "village_desert",
"18": "village_plains",
"19": "village_savanna",
"20": "village_snowy",
"21": "village_taiga",
"22": "jungle_temple",
"23": "witch_hut"
}
}
]
},
{
"name": "rotation",
Expand Down
26 changes: 25 additions & 1 deletion data/bedrock/1.17.0/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,31 @@ TrackedObject:
# MapDecoration is a fixed decoration on a map: Its position or other properties do not change automatically
# client-side.
MapDecoration:
type: u8
type: u8 =>
- marker_white
- marker_green
- marker_red
- marker_blue
- cross_white
- triangle_red
- square_white
- marker_sign
- marker_pink
- marker_orange
- marker_yellow
- marker_teal
- triangle_green
- small_square_white
- mansion
- monument
- no_draw
- village_desert
- village_plains
- village_savanna
- village_snowy
- village_taiga
- jungle_temple
- witch_hut
# Rotation is the rotation of the map decoration. It is byte due to the 16 fixed directions that the
# map decoration may face.
rotation: u8
Expand Down
33 changes: 32 additions & 1 deletion data/bedrock/1.17.10/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2561,7 +2561,38 @@
[
{
"name": "type",
"type": "u8"
"type": [
"mapper",
{
"type": "u8",
"mappings": {
"0": "marker_white",
"1": "marker_green",
"2": "marker_red",
"3": "marker_blue",
"4": "cross_white",
"5": "triangle_red",
"6": "square_white",
"7": "marker_sign",
"8": "marker_pink",
"9": "marker_orange",
"10": "marker_yellow",
"11": "marker_teal",
"12": "triangle_green",
"13": "small_square_white",
"14": "mansion",
"15": "monument",
"16": "no_draw",
"17": "village_desert",
"18": "village_plains",
"19": "village_savanna",
"20": "village_snowy",
"21": "village_taiga",
"22": "jungle_temple",
"23": "witch_hut"
}
}
]
},
{
"name": "rotation",
Expand Down
26 changes: 25 additions & 1 deletion data/bedrock/1.17.10/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,31 @@ TrackedObject:
# MapDecoration is a fixed decoration on a map: Its position or other properties do not change automatically
# client-side.
MapDecoration:
type: u8
type: u8 =>
- marker_white
- marker_green
- marker_red
- marker_blue
- cross_white
- triangle_red
- square_white
- marker_sign
- marker_pink
- marker_orange
- marker_yellow
- marker_teal
- triangle_green
- small_square_white
- mansion
- monument
- no_draw
- village_desert
- village_plains
- village_savanna
- village_snowy
- village_taiga
- jungle_temple
- witch_hut
# Rotation is the rotation of the map decoration. It is byte due to the 16 fixed directions that the
# map decoration may face.
rotation: u8
Expand Down
33 changes: 32 additions & 1 deletion data/bedrock/1.17.30/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2569,7 +2569,38 @@
[
{
"name": "type",
"type": "u8"
"type": [
"mapper",
{
"type": "u8",
"mappings": {
"0": "marker_white",
"1": "marker_green",
"2": "marker_red",
"3": "marker_blue",
"4": "cross_white",
"5": "triangle_red",
"6": "square_white",
"7": "marker_sign",
"8": "marker_pink",
"9": "marker_orange",
"10": "marker_yellow",
"11": "marker_teal",
"12": "triangle_green",
"13": "small_square_white",
"14": "mansion",
"15": "monument",
"16": "no_draw",
"17": "village_desert",
"18": "village_plains",
"19": "village_savanna",
"20": "village_snowy",
"21": "village_taiga",
"22": "jungle_temple",
"23": "witch_hut"
}
}
]
},
{
"name": "rotation",
Expand Down
26 changes: 25 additions & 1 deletion data/bedrock/1.17.30/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,31 @@ TrackedObject:
# MapDecoration is a fixed decoration on a map: Its position or other properties do not change automatically
# client-side.
MapDecoration:
type: u8
type: u8 =>
- marker_white
- marker_green
- marker_red
- marker_blue
- cross_white
- triangle_red
- square_white
- marker_sign
- marker_pink
- marker_orange
- marker_yellow
- marker_teal
- triangle_green
- small_square_white
- mansion
- monument
- no_draw
- village_desert
- village_plains
- village_savanna
- village_snowy
- village_taiga
- jungle_temple
- witch_hut
# Rotation is the rotation of the map decoration. It is byte due to the 16 fixed directions that the
# map decoration may face.
rotation: u8
Expand Down
33 changes: 32 additions & 1 deletion data/bedrock/1.17.40/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2593,7 +2593,38 @@
[
{
"name": "type",
"type": "u8"
"type": [
"mapper",
{
"type": "u8",
"mappings": {
"0": "marker_white",
"1": "marker_green",
"2": "marker_red",
"3": "marker_blue",
"4": "cross_white",
"5": "triangle_red",
"6": "square_white",
"7": "marker_sign",
"8": "marker_pink",
"9": "marker_orange",
"10": "marker_yellow",
"11": "marker_teal",
"12": "triangle_green",
"13": "small_square_white",
"14": "mansion",
"15": "monument",
"16": "no_draw",
"17": "village_desert",
"18": "village_plains",
"19": "village_savanna",
"20": "village_snowy",
"21": "village_taiga",
"22": "jungle_temple",
"23": "witch_hut"
}
}
]
},
{
"name": "rotation",
Expand Down
26 changes: 25 additions & 1 deletion data/bedrock/1.17.40/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,31 @@ TrackedObject:
# MapDecoration is a fixed decoration on a map: Its position or other properties do not change automatically
# client-side.
MapDecoration:
type: u8
type: u8 =>
- marker_white
- marker_green
- marker_red
- marker_blue
- cross_white
- triangle_red
- square_white
- marker_sign
- marker_pink
- marker_orange
- marker_yellow
- marker_teal
- triangle_green
- small_square_white
- mansion
- monument
- no_draw
- village_desert
- village_plains
- village_savanna
- village_snowy
- village_taiga
- jungle_temple
- witch_hut
# Rotation is the rotation of the map decoration. It is byte due to the 16 fixed directions that the
# map decoration may face.
rotation: u8
Expand Down
Loading

0 comments on commit 0c1d4e6

Please sign in to comment.