Skip to content

Commit

Permalink
1.20.2 protocol: nbt data can have different root data types (#807)
Browse files Browse the repository at this point in the history
* 1.20.2 protocol: nbt data can have different root data types

* Update protocol.json fix entityMetadataItem
  • Loading branch information
extremeheat committed Dec 25, 2023
1 parent f851a09 commit 37e2880
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions data/pc/1.20.2/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@
"restBuffer": "native",
"nbt": "native",
"optionalNbt": "native",
"nbtRoot": [
"nbt",
{
"tagType": "anonymousNbt"
}
],
"optionalNbtRoot": [
"optionalNbt",
{
"tagType": "anonymousNbt"
}
],
"string": [
"pstring",
{
Expand Down Expand Up @@ -117,7 +129,7 @@
},
{
"name": "nbtData",
"type": "optionalNbt"
"type": "optionalNbtRoot"
}
]
]
Expand Down Expand Up @@ -420,7 +432,7 @@
],
"block_state": "varint",
"optional_block_state": "optvarint",
"compound_tag": "nbt",
"compound_tag": "nbtRoot",
"particle": "particle",
"villager_data": [
"container",
Expand Down Expand Up @@ -611,7 +623,7 @@
},
{
"name": "nbtData",
"type": "optionalNbt"
"type": "optionalNbtRoot"
}
]
],
Expand Down Expand Up @@ -1707,7 +1719,7 @@
[
{
"name": "codec",
"type": "nbt"
"type": "nbtRoot"
}
]
],
Expand Down Expand Up @@ -2299,7 +2311,7 @@
},
{
"name": "nbtData",
"type": "optionalNbt"
"type": "optionalNbtRoot"
}
]
],
Expand Down Expand Up @@ -2572,7 +2584,7 @@
},
{
"name": "nbt",
"type": "optionalNbt"
"type": "optionalNbtRoot"
}
]
],
Expand Down Expand Up @@ -2947,7 +2959,7 @@
},
{
"name": "heightmaps",
"type": "nbt"
"type": "nbtRoot"
},
{
"name": "chunkData",
Expand Down Expand Up @@ -5138,7 +5150,7 @@
"name": "factorCodec",
"type": [
"option",
"nbt"
"nbtRoot"
]
}
]
Expand Down Expand Up @@ -5674,7 +5686,7 @@
"0x0a": "boss_bar",
"0x0b": "difficulty",
"0x0c": "chunk_batch_finished",
"0x0d": "chunk_batch_start",
"0x0d": "chunk_batch_start",
"0x0e": "chunk_biomes",
"0x0f": "clear_titles",
"0x10": "tab_complete",
Expand Down Expand Up @@ -6946,8 +6958,8 @@
"container",
[
{
"name":"id",
"type": "i64"
"name": "id",
"type": "i64"
}
]
],
Expand Down

0 comments on commit 37e2880

Please sign in to comment.