Skip to content

Commit

Permalink
Bedrock stack and request network id fix for 1.16.220 to 1.20.10 (#762)
Browse files Browse the repository at this point in the history
* ItemStackResponses and ItemStackRequest type fix 1.20.x

* temStackResponses and ItemStackRequest type fix 1.19..x

* ItemStackResponses and ItemStackRequest type fix 1.18.x

* ItemStackResponses and ItemStackRequest type fix 1.17.x

* ItemStackResponses and ItemStackRequest type fix 1.16.220
  • Loading branch information
irkmandeer committed Aug 25, 2023
1 parent 5c7e796 commit 7f144de
Show file tree
Hide file tree
Showing 42 changed files with 126 additions and 126 deletions.
6 changes: 3 additions & 3 deletions data/bedrock/1.16.220/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2064,7 +2064,7 @@
[
{
"name": "request_id",
"type": "varint"
"type": "zigzag32"
},
{
"name": "actions",
Expand Down Expand Up @@ -2342,7 +2342,7 @@
},
{
"name": "request_id",
"type": "varint"
"type": "zigzag32"
},
{
"anon": true,
Expand Down Expand Up @@ -2390,7 +2390,7 @@
},
{
"name": "item_stack_id",
"type": "varint"
"type": "zigzag32"
},
{
"name": "custom_name",
Expand Down
6 changes: 3 additions & 3 deletions data/bedrock/1.16.220/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ StackRequestSlotInfo:
ItemStackRequest:
# RequestID is a unique ID for the request. This ID is used by the server to send a response for this
# specific request in the ItemStackResponse packet.
request_id: varint
request_id: zigzag32
actions: []varint
type_id: u8 =>
# TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
Expand Down Expand Up @@ -915,7 +915,7 @@ ItemStackResponses: []varint
1: error
# RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
# will undo the actions from the request with this ID.
request_id: varint
request_id: zigzag32
_: status ?
if ok:
# ContainerInfo holds information on the containers that had their contents changed as a result of the
Expand All @@ -936,7 +936,7 @@ ItemStackResponses: []varint
# sent to the client.
count: u8
# StackNetworkID is the network ID of the new stack at a specific slot.
item_stack_id: varint
item_stack_id: zigzag32
# CustomName is the custom name of the item stack. It is used in relation to text filtering.
custom_name: string
# DurabilityCorrection is the current durability of the item stack. This durability will be shown
Expand Down
6 changes: 3 additions & 3 deletions data/bedrock/1.17.0/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2067,7 +2067,7 @@
[
{
"name": "request_id",
"type": "varint"
"type": "zigzag32"
},
{
"name": "actions",
Expand Down Expand Up @@ -2345,7 +2345,7 @@
},
{
"name": "request_id",
"type": "varint"
"type": "zigzag32"
},
{
"anon": true,
Expand Down Expand Up @@ -2393,7 +2393,7 @@
},
{
"name": "item_stack_id",
"type": "varint"
"type": "zigzag32"
},
{
"name": "custom_name",
Expand Down
6 changes: 3 additions & 3 deletions data/bedrock/1.17.0/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ StackRequestSlotInfo:
ItemStackRequest:
# RequestID is a unique ID for the request. This ID is used by the server to send a response for this
# specific request in the ItemStackResponse packet.
request_id: varint
request_id: zigzag32
actions: []varint
type_id: u8 =>
# TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
Expand Down Expand Up @@ -918,7 +918,7 @@ ItemStackResponses: []varint
1: error
# RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
# will undo the actions from the request with this ID.
request_id: varint
request_id: zigzag32
_: status ?
if ok:
# ContainerInfo holds information on the containers that had their contents changed as a result of the
Expand All @@ -939,7 +939,7 @@ ItemStackResponses: []varint
# sent to the client.
count: u8
# StackNetworkID is the network ID of the new stack at a specific slot.
item_stack_id: varint
item_stack_id: zigzag32
# CustomName is the custom name of the item stack. It is used in relation to text filtering.
custom_name: string
# DurabilityCorrection is the current durability of the item stack. This durability will be shown
Expand Down
6 changes: 3 additions & 3 deletions data/bedrock/1.17.10/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2067,7 +2067,7 @@
[
{
"name": "request_id",
"type": "varint"
"type": "zigzag32"
},
{
"name": "actions",
Expand Down Expand Up @@ -2345,7 +2345,7 @@
},
{
"name": "request_id",
"type": "varint"
"type": "zigzag32"
},
{
"anon": true,
Expand Down Expand Up @@ -2393,7 +2393,7 @@
},
{
"name": "item_stack_id",
"type": "varint"
"type": "zigzag32"
},
{
"name": "custom_name",
Expand Down
6 changes: 3 additions & 3 deletions data/bedrock/1.17.10/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ StackRequestSlotInfo:
ItemStackRequest:
# RequestID is a unique ID for the request. This ID is used by the server to send a response for this
# specific request in the ItemStackResponse packet.
request_id: varint
request_id: zigzag32
actions: []varint
type_id: u8 =>
# TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
Expand Down Expand Up @@ -918,7 +918,7 @@ ItemStackResponses: []varint
1: error
# RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
# will undo the actions from the request with this ID.
request_id: varint
request_id: zigzag32
_: status ?
if ok:
# ContainerInfo holds information on the containers that had their contents changed as a result of the
Expand All @@ -939,7 +939,7 @@ ItemStackResponses: []varint
# sent to the client.
count: u8
# StackNetworkID is the network ID of the new stack at a specific slot.
item_stack_id: varint
item_stack_id: zigzag32
# CustomName is the custom name of the item stack. It is used in relation to text filtering.
custom_name: string
# DurabilityCorrection is the current durability of the item stack. This durability will be shown
Expand Down
6 changes: 3 additions & 3 deletions data/bedrock/1.17.30/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2075,7 +2075,7 @@
[
{
"name": "request_id",
"type": "varint"
"type": "zigzag32"
},
{
"name": "actions",
Expand Down Expand Up @@ -2353,7 +2353,7 @@
},
{
"name": "request_id",
"type": "varint"
"type": "zigzag32"
},
{
"anon": true,
Expand Down Expand Up @@ -2401,7 +2401,7 @@
},
{
"name": "item_stack_id",
"type": "varint"
"type": "zigzag32"
},
{
"name": "custom_name",
Expand Down
6 changes: 3 additions & 3 deletions data/bedrock/1.17.30/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ StackRequestSlotInfo:
ItemStackRequest:
# RequestID is a unique ID for the request. This ID is used by the server to send a response for this
# specific request in the ItemStackResponse packet.
request_id: varint
request_id: zigzag32
actions: []varint
type_id: u8 =>
# TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
Expand Down Expand Up @@ -923,7 +923,7 @@ ItemStackResponses: []varint
1: error
# RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
# will undo the actions from the request with this ID.
request_id: varint
request_id: zigzag32
_: status ?
if ok:
# ContainerInfo holds information on the containers that had their contents changed as a result of the
Expand All @@ -944,7 +944,7 @@ ItemStackResponses: []varint
# sent to the client.
count: u8
# StackNetworkID is the network ID of the new stack at a specific slot.
item_stack_id: varint
item_stack_id: zigzag32
# CustomName is the custom name of the item stack. It is used in relation to text filtering.
custom_name: string
# DurabilityCorrection is the current durability of the item stack. This durability will be shown
Expand Down
6 changes: 3 additions & 3 deletions data/bedrock/1.17.40/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2075,7 +2075,7 @@
[
{
"name": "request_id",
"type": "varint"
"type": "zigzag32"
},
{
"name": "actions",
Expand Down Expand Up @@ -2377,7 +2377,7 @@
},
{
"name": "request_id",
"type": "varint"
"type": "zigzag32"
},
{
"anon": true,
Expand Down Expand Up @@ -2425,7 +2425,7 @@
},
{
"name": "item_stack_id",
"type": "varint"
"type": "zigzag32"
},
{
"name": "custom_name",
Expand Down
6 changes: 3 additions & 3 deletions data/bedrock/1.17.40/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ StackRequestSlotInfo:
ItemStackRequest:
# RequestID is a unique ID for the request. This ID is used by the server to send a response for this
# specific request in the ItemStackResponse packet.
request_id: varint
request_id: zigzag32
actions: []varint
type_id: u8 =>
# TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
Expand Down Expand Up @@ -938,7 +938,7 @@ ItemStackResponses: []varint
1: error
# RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
# will undo the actions from the request with this ID.
request_id: varint
request_id: zigzag32
_: status ?
if ok:
# ContainerInfo holds information on the containers that had their contents changed as a result of the
Expand All @@ -959,7 +959,7 @@ ItemStackResponses: []varint
# sent to the client.
count: u8
# StackNetworkID is the network ID of the new stack at a specific slot.
item_stack_id: varint
item_stack_id: zigzag32
# CustomName is the custom name of the item stack. It is used in relation to text filtering.
custom_name: string
# DurabilityCorrection is the current durability of the item stack. This durability will be shown
Expand Down
6 changes: 3 additions & 3 deletions data/bedrock/1.18.0/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2075,7 +2075,7 @@
[
{
"name": "request_id",
"type": "varint"
"type": "zigzag32"
},
{
"name": "actions",
Expand Down Expand Up @@ -2377,7 +2377,7 @@
},
{
"name": "request_id",
"type": "varint"
"type": "zigzag32"
},
{
"anon": true,
Expand Down Expand Up @@ -2425,7 +2425,7 @@
},
{
"name": "item_stack_id",
"type": "varint"
"type": "zigzag32"
},
{
"name": "custom_name",
Expand Down
6 changes: 3 additions & 3 deletions data/bedrock/1.18.0/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ StackRequestSlotInfo:
ItemStackRequest:
# RequestID is a unique ID for the request. This ID is used by the server to send a response for this
# specific request in the ItemStackResponse packet.
request_id: varint
request_id: zigzag32
actions: []varint
type_id: u8 =>
# TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
Expand Down Expand Up @@ -938,7 +938,7 @@ ItemStackResponses: []varint
1: error
# RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
# will undo the actions from the request with this ID.
request_id: varint
request_id: zigzag32
_: status ?
if ok:
# ContainerInfo holds information on the containers that had their contents changed as a result of the
Expand All @@ -959,7 +959,7 @@ ItemStackResponses: []varint
# sent to the client.
count: u8
# StackNetworkID is the network ID of the new stack at a specific slot.
item_stack_id: varint
item_stack_id: zigzag32
# CustomName is the custom name of the item stack. It is used in relation to text filtering.
custom_name: string
# DurabilityCorrection is the current durability of the item stack. This durability will be shown
Expand Down
6 changes: 3 additions & 3 deletions data/bedrock/1.18.11/protocol.json
Original file line number Diff line number Diff line change
Expand Up @@ -2075,7 +2075,7 @@
[
{
"name": "request_id",
"type": "varint"
"type": "zigzag32"
},
{
"name": "actions",
Expand Down Expand Up @@ -2379,7 +2379,7 @@
},
{
"name": "request_id",
"type": "varint"
"type": "zigzag32"
},
{
"anon": true,
Expand Down Expand Up @@ -2427,7 +2427,7 @@
},
{
"name": "item_stack_id",
"type": "varint"
"type": "zigzag32"
},
{
"name": "custom_name",
Expand Down
6 changes: 3 additions & 3 deletions data/bedrock/1.18.11/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ StackRequestSlotInfo:
ItemStackRequest:
# RequestID is a unique ID for the request. This ID is used by the server to send a response for this
# specific request in the ItemStackResponse packet.
request_id: varint
request_id: zigzag32
actions: []varint
type_id: u8 =>
# TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
Expand Down Expand Up @@ -946,7 +946,7 @@ ItemStackResponses: []varint
1: error
# RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
# will undo the actions from the request with this ID.
request_id: varint
request_id: zigzag32
_: status ?
if ok:
# ContainerInfo holds information on the containers that had their contents changed as a result of the
Expand All @@ -967,7 +967,7 @@ ItemStackResponses: []varint
# sent to the client.
count: u8
# StackNetworkID is the network ID of the new stack at a specific slot.
item_stack_id: varint
item_stack_id: zigzag32
# CustomName is the custom name of the item stack. It is used in relation to text filtering.
custom_name: string
# DurabilityCorrection is the current durability of the item stack. This durability will be shown
Expand Down
Loading

0 comments on commit 7f144de

Please sign in to comment.