From b04d0940925247e7aa45434094eb7b4b119322f1 Mon Sep 17 00:00:00 2001 From: Tamas Papp <86970314+CreeperG16@users.noreply.github.com> Date: Mon, 24 Jul 2023 22:11:21 +0200 Subject: [PATCH] Fix values for enum type in available_commands packet (#742) * Fix values for enum type in available commands packet * Name parameters field in command overloads --- data/bedrock/1.16.201/proto.yml | 6 +- data/bedrock/1.16.201/protocol.json | 116 +++++++++++++------------ data/bedrock/1.16.210/proto.yml | 8 +- data/bedrock/1.16.210/protocol.json | 116 +++++++++++++------------ data/bedrock/1.16.220/proto.yml | 8 +- data/bedrock/1.16.220/protocol.json | 116 +++++++++++++------------ data/bedrock/1.17.0/proto.yml | 6 +- data/bedrock/1.17.0/protocol.json | 116 +++++++++++++------------ data/bedrock/1.17.10/proto.yml | 8 +- data/bedrock/1.17.10/protocol.json | 116 +++++++++++++------------ data/bedrock/1.17.30/proto.yml | 8 +- data/bedrock/1.17.30/protocol.json | 116 +++++++++++++------------ data/bedrock/1.17.40/proto.yml | 6 +- data/bedrock/1.17.40/protocol.json | 116 +++++++++++++------------ data/bedrock/1.18.0/proto.yml | 8 +- data/bedrock/1.18.0/protocol.json | 116 +++++++++++++------------ data/bedrock/1.18.11/proto.yml | 8 +- data/bedrock/1.18.11/protocol.json | 116 +++++++++++++------------ data/bedrock/1.18.30/proto.yml | 8 +- data/bedrock/1.18.30/protocol.json | 120 ++++++++++++++------------ data/bedrock/1.19.1/proto.yml | 6 +- data/bedrock/1.19.1/protocol.json | 128 +++++++++++++++------------- data/bedrock/1.19.10/proto.yml | 6 +- data/bedrock/1.19.10/protocol.json | 128 +++++++++++++++------------- data/bedrock/1.19.20/proto.yml | 6 +- data/bedrock/1.19.20/protocol.json | 128 +++++++++++++++------------- data/bedrock/1.19.21/proto.yml | 6 +- data/bedrock/1.19.21/protocol.json | 128 +++++++++++++++------------- data/bedrock/1.19.30/proto.yml | 6 +- data/bedrock/1.19.30/protocol.json | 128 +++++++++++++++------------- data/bedrock/1.19.40/proto.yml | 6 +- data/bedrock/1.19.40/protocol.json | 128 +++++++++++++++------------- data/bedrock/1.19.50/proto.yml | 8 +- data/bedrock/1.19.50/protocol.json | 128 +++++++++++++++------------- data/bedrock/1.19.60/proto.yml | 8 +- data/bedrock/1.19.60/protocol.json | 128 +++++++++++++++------------- data/bedrock/1.19.62/proto.yml | 8 +- data/bedrock/1.19.62/protocol.json | 128 +++++++++++++++------------- data/bedrock/1.19.70/proto.yml | 6 +- data/bedrock/1.19.70/protocol.json | 128 +++++++++++++++------------- data/bedrock/1.19.80/proto.yml | 8 +- data/bedrock/1.19.80/protocol.json | 128 +++++++++++++++------------- data/bedrock/1.20.0/proto.yml | 8 +- data/bedrock/1.20.0/protocol.json | 128 +++++++++++++++------------- data/bedrock/1.20.10/protocol.json | 6 +- data/bedrock/latest/proto.yml | 6 +- 46 files changed, 1522 insertions(+), 1346 deletions(-) diff --git a/data/bedrock/1.16.201/proto.yml b/data/bedrock/1.16.201/proto.yml index 71442792b..2e02fc6b1 100644 --- a/data/bedrock/1.16.201/proto.yml +++ b/data/bedrock/1.16.201/proto.yml @@ -1332,7 +1332,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1352,9 +1352,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) diff --git a/data/bedrock/1.16.201/protocol.json b/data/bedrock/1.16.201/protocol.json index 6628123b4..6f50bbd84 100644 --- a/data/bedrock/1.16.201/protocol.json +++ b/data/bedrock/1.16.201/protocol.json @@ -5376,66 +5376,74 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "2": "float", - "3": "value", - "4": "wildcard_int", - "5": "operator", - "6": "target", - "14": "file_path", - "29": "string", - "37": "position", - "41": "message", - "43": "raw_text", - "46": "json", - "53": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "2": "float", + "3": "value", + "4": "wildcard_int", + "5": "operator", + "6": "target", + "14": "file_path", + "29": "string", + "37": "position", + "41": "message", + "43": "raw_text", + "46": "json", + "53": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.16.210/proto.yml b/data/bedrock/1.16.210/proto.yml index 7736ebe8b..fb89bdc75 100644 --- a/data/bedrock/1.16.210/proto.yml +++ b/data/bedrock/1.16.210/proto.yml @@ -1371,7 +1371,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1391,9 +1391,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) @@ -2588,4 +2588,4 @@ packet_debug_renderer: # Alpha is the alpha value from the RGBA colour rendered on the debug. alpha: lf32 # Duration is how long the debug will last in the world for. It is measured in milliseconds. - duration: li64 \ No newline at end of file + duration: li64 diff --git a/data/bedrock/1.16.210/protocol.json b/data/bedrock/1.16.210/protocol.json index 5df3e314b..8a391cf65 100644 --- a/data/bedrock/1.16.210/protocol.json +++ b/data/bedrock/1.16.210/protocol.json @@ -5547,66 +5547,74 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "2": "float", - "3": "value", - "4": "wildcard_int", - "5": "operator", - "6": "target", - "16": "file_path", - "32": "string", - "40": "position", - "44": "message", - "46": "raw_text", - "50": "json", - "63": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "2": "float", + "3": "value", + "4": "wildcard_int", + "5": "operator", + "6": "target", + "16": "file_path", + "32": "string", + "40": "position", + "44": "message", + "46": "raw_text", + "50": "json", + "63": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.16.220/proto.yml b/data/bedrock/1.16.220/proto.yml index 954276b81..00f87c347 100644 --- a/data/bedrock/1.16.220/proto.yml +++ b/data/bedrock/1.16.220/proto.yml @@ -1504,7 +1504,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1524,9 +1524,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) @@ -3063,4 +3063,4 @@ packet_debug_renderer: # Alpha is the alpha value from the RGBA colour rendered on the debug. alpha: lf32 # Duration is how long the debug will last in the world for. It is measured in milliseconds. - duration: li64 \ No newline at end of file + duration: li64 diff --git a/data/bedrock/1.16.220/protocol.json b/data/bedrock/1.16.220/protocol.json index 4552e2983..e6484a120 100644 --- a/data/bedrock/1.16.220/protocol.json +++ b/data/bedrock/1.16.220/protocol.json @@ -6113,66 +6113,74 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "2": "float", - "3": "value", - "4": "wildcard_int", - "5": "operator", - "6": "target", - "16": "file_path", - "32": "string", - "40": "position", - "44": "message", - "46": "raw_text", - "50": "json", - "63": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "2": "float", + "3": "value", + "4": "wildcard_int", + "5": "operator", + "6": "target", + "16": "file_path", + "32": "string", + "40": "position", + "44": "message", + "46": "raw_text", + "50": "json", + "63": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.17.0/proto.yml b/data/bedrock/1.17.0/proto.yml index 248d3fe9f..a2084ff71 100644 --- a/data/bedrock/1.17.0/proto.yml +++ b/data/bedrock/1.17.0/proto.yml @@ -1506,7 +1506,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1526,9 +1526,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) diff --git a/data/bedrock/1.17.0/protocol.json b/data/bedrock/1.17.0/protocol.json index e1b478fca..5679a90f6 100644 --- a/data/bedrock/1.17.0/protocol.json +++ b/data/bedrock/1.17.0/protocol.json @@ -6192,66 +6192,74 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "2": "float", - "3": "value", - "4": "wildcard_int", - "5": "operator", - "6": "target", - "16": "file_path", - "32": "string", - "40": "position", - "44": "message", - "46": "raw_text", - "50": "json", - "63": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "2": "float", + "3": "value", + "4": "wildcard_int", + "5": "operator", + "6": "target", + "16": "file_path", + "32": "string", + "40": "position", + "44": "message", + "46": "raw_text", + "50": "json", + "63": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.17.10/proto.yml b/data/bedrock/1.17.10/proto.yml index aa4f6383f..fcff889ed 100644 --- a/data/bedrock/1.17.10/proto.yml +++ b/data/bedrock/1.17.10/proto.yml @@ -1589,7 +1589,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1609,9 +1609,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) @@ -3212,4 +3212,4 @@ packet_npc_dialogue: # NPCName is the name of the NPC to be displayed to the client. npc_name: string # ActionJSON is the JSON string of the buttons/actions the server can perform. - action_json: string \ No newline at end of file + action_json: string diff --git a/data/bedrock/1.17.10/protocol.json b/data/bedrock/1.17.10/protocol.json index 00944904e..5a9aad72e 100644 --- a/data/bedrock/1.17.10/protocol.json +++ b/data/bedrock/1.17.10/protocol.json @@ -6282,66 +6282,74 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "2": "float", - "3": "value", - "4": "wildcard_int", - "5": "operator", - "6": "target", - "16": "file_path", - "32": "string", - "40": "position", - "44": "message", - "46": "raw_text", - "50": "json", - "63": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "2": "float", + "3": "value", + "4": "wildcard_int", + "5": "operator", + "6": "target", + "16": "file_path", + "32": "string", + "40": "position", + "44": "message", + "46": "raw_text", + "50": "json", + "63": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.17.30/proto.yml b/data/bedrock/1.17.30/proto.yml index 402487a24..4c0b51440 100644 --- a/data/bedrock/1.17.30/proto.yml +++ b/data/bedrock/1.17.30/proto.yml @@ -1601,7 +1601,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1621,9 +1621,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) @@ -3278,4 +3278,4 @@ packet_update_subchunk_blocks: packet_photo_info_request: !id: 0xad !bound: server - photo_id: zigzag64 \ No newline at end of file + photo_id: zigzag64 diff --git a/data/bedrock/1.17.30/protocol.json b/data/bedrock/1.17.30/protocol.json index eec9f9ad9..803ee18f6 100644 --- a/data/bedrock/1.17.30/protocol.json +++ b/data/bedrock/1.17.30/protocol.json @@ -6410,66 +6410,74 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "2": "float", - "3": "value", - "4": "wildcard_int", - "5": "operator", - "6": "target", - "16": "file_path", - "32": "string", - "40": "position", - "44": "message", - "46": "raw_text", - "50": "json", - "63": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "2": "float", + "3": "value", + "4": "wildcard_int", + "5": "operator", + "6": "target", + "16": "file_path", + "32": "string", + "40": "position", + "44": "message", + "46": "raw_text", + "50": "json", + "63": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.17.40/proto.yml b/data/bedrock/1.17.40/proto.yml index 8bc1b950a..31b10e1b4 100644 --- a/data/bedrock/1.17.40/proto.yml +++ b/data/bedrock/1.17.40/proto.yml @@ -1601,7 +1601,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1621,9 +1621,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) diff --git a/data/bedrock/1.17.40/protocol.json b/data/bedrock/1.17.40/protocol.json index 057a9b9d9..1146db208 100644 --- a/data/bedrock/1.17.40/protocol.json +++ b/data/bedrock/1.17.40/protocol.json @@ -6411,66 +6411,74 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "2": "float", - "3": "value", - "4": "wildcard_int", - "5": "operator", - "6": "target", - "16": "file_path", - "32": "string", - "40": "position", - "44": "message", - "46": "raw_text", - "50": "json", - "63": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "2": "float", + "3": "value", + "4": "wildcard_int", + "5": "operator", + "6": "target", + "16": "file_path", + "32": "string", + "40": "position", + "44": "message", + "46": "raw_text", + "50": "json", + "63": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.18.0/proto.yml b/data/bedrock/1.18.0/proto.yml index fdecf8905..c85a3a90d 100644 --- a/data/bedrock/1.18.0/proto.yml +++ b/data/bedrock/1.18.0/proto.yml @@ -1607,7 +1607,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1627,9 +1627,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) @@ -3319,4 +3319,4 @@ packet_subchunk_request: dimension: zigzag32 x: zigzag32 y: zigzag32 - z: zigzag32 \ No newline at end of file + z: zigzag32 diff --git a/data/bedrock/1.18.0/protocol.json b/data/bedrock/1.18.0/protocol.json index 1b9e908b5..df43ef0a3 100644 --- a/data/bedrock/1.18.0/protocol.json +++ b/data/bedrock/1.18.0/protocol.json @@ -6456,66 +6456,74 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "2": "float", - "3": "value", - "4": "wildcard_int", - "5": "operator", - "6": "target", - "16": "file_path", - "32": "string", - "40": "position", - "44": "message", - "46": "raw_text", - "50": "json", - "63": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "2": "float", + "3": "value", + "4": "wildcard_int", + "5": "operator", + "6": "target", + "16": "file_path", + "32": "string", + "40": "position", + "44": "message", + "46": "raw_text", + "50": "json", + "63": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.18.11/proto.yml b/data/bedrock/1.18.11/proto.yml index c084de61d..867516fd3 100644 --- a/data/bedrock/1.18.11/proto.yml +++ b/data/bedrock/1.18.11/proto.yml @@ -1614,7 +1614,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1634,9 +1634,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) @@ -3402,4 +3402,4 @@ packet_code_builder_source: - code_status - instantiation # Value contains extra data about the operation performed. It is always empty unless the operation is - value: string \ No newline at end of file + value: string diff --git a/data/bedrock/1.18.11/protocol.json b/data/bedrock/1.18.11/protocol.json index 2c1ce04d6..9226ecd22 100644 --- a/data/bedrock/1.18.11/protocol.json +++ b/data/bedrock/1.18.11/protocol.json @@ -6514,66 +6514,74 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "2": "float", - "3": "value", - "4": "wildcard_int", - "5": "operator", - "6": "target", - "16": "file_path", - "32": "string", - "40": "position", - "44": "message", - "46": "raw_text", - "50": "json", - "63": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "2": "float", + "3": "value", + "4": "wildcard_int", + "5": "operator", + "6": "target", + "16": "file_path", + "32": "string", + "40": "position", + "44": "message", + "46": "raw_text", + "50": "json", + "63": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.18.30/proto.yml b/data/bedrock/1.18.30/proto.yml index 538ab76b9..746d93e44 100644 --- a/data/bedrock/1.18.30/proto.yml +++ b/data/bedrock/1.18.30/proto.yml @@ -1622,7 +1622,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1644,9 +1644,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) @@ -3494,4 +3494,4 @@ packet_change_mob_property: # IntValue is set if the property value is an int type. If the type is not an int, this field is ignored. int_value: zigzag32 # FloatValue is set if the property value is a float type. If the type is not a float, this field is ignored. - float_value: lf32 \ No newline at end of file + float_value: lf32 diff --git a/data/bedrock/1.18.30/protocol.json b/data/bedrock/1.18.30/protocol.json index e9c18dd49..62d521274 100644 --- a/data/bedrock/1.18.30/protocol.json +++ b/data/bedrock/1.18.30/protocol.json @@ -6597,68 +6597,76 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "2": "float", - "3": "value", - "4": "wildcard_int", - "5": "operator", - "7": "target", - "9": "wildcard", - "16": "file_path", - "38": "string", - "46": "block_position", - "47": "position", - "50": "message", - "52": "raw_text", - "56": "json", - "69": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "2": "float", + "3": "value", + "4": "wildcard_int", + "5": "operator", + "7": "target", + "9": "wildcard", + "16": "file_path", + "38": "string", + "46": "block_position", + "47": "position", + "50": "message", + "52": "raw_text", + "56": "json", + "69": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.19.1/proto.yml b/data/bedrock/1.19.1/proto.yml index 3986a7d1a..fefe8b579 100644 --- a/data/bedrock/1.19.1/proto.yml +++ b/data/bedrock/1.19.1/proto.yml @@ -1632,7 +1632,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1658,9 +1658,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) diff --git a/data/bedrock/1.19.1/protocol.json b/data/bedrock/1.19.1/protocol.json index 61dcce22b..2b34d50db 100644 --- a/data/bedrock/1.19.1/protocol.json +++ b/data/bedrock/1.19.1/protocol.json @@ -6644,72 +6644,80 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "3": "float", - "4": "value", - "5": "wildcard_int", - "6": "operator", - "7": "command_operator", - "8": "target", - "10": "wildcard_target", - "17": "file_path", - "23": "integer_range", - "38": "equipment_slots", - "39": "string", - "47": "block_position", - "48": "position", - "51": "message", - "53": "raw_text", - "57": "json", - "67": "block_states", - "70": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "3": "float", + "4": "value", + "5": "wildcard_int", + "6": "operator", + "7": "command_operator", + "8": "target", + "10": "wildcard_target", + "17": "file_path", + "23": "integer_range", + "38": "equipment_slots", + "39": "string", + "47": "block_position", + "48": "position", + "51": "message", + "53": "raw_text", + "57": "json", + "67": "block_states", + "70": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.19.10/proto.yml b/data/bedrock/1.19.10/proto.yml index e87fb27e9..ca25e4b68 100644 --- a/data/bedrock/1.19.10/proto.yml +++ b/data/bedrock/1.19.10/proto.yml @@ -1683,7 +1683,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1709,9 +1709,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) diff --git a/data/bedrock/1.19.10/protocol.json b/data/bedrock/1.19.10/protocol.json index 70e7619e6..e22d8485b 100644 --- a/data/bedrock/1.19.10/protocol.json +++ b/data/bedrock/1.19.10/protocol.json @@ -6712,72 +6712,80 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "3": "float", - "4": "value", - "5": "wildcard_int", - "6": "operator", - "7": "command_operator", - "8": "target", - "10": "wildcard_target", - "17": "file_path", - "23": "integer_range", - "38": "equipment_slots", - "39": "string", - "47": "block_position", - "48": "position", - "51": "message", - "53": "raw_text", - "57": "json", - "67": "block_states", - "70": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "3": "float", + "4": "value", + "5": "wildcard_int", + "6": "operator", + "7": "command_operator", + "8": "target", + "10": "wildcard_target", + "17": "file_path", + "23": "integer_range", + "38": "equipment_slots", + "39": "string", + "47": "block_position", + "48": "position", + "51": "message", + "53": "raw_text", + "57": "json", + "67": "block_states", + "70": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.19.20/proto.yml b/data/bedrock/1.19.20/proto.yml index 2a8a721ba..0930b74d4 100644 --- a/data/bedrock/1.19.20/proto.yml +++ b/data/bedrock/1.19.20/proto.yml @@ -1704,7 +1704,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1730,9 +1730,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) diff --git a/data/bedrock/1.19.20/protocol.json b/data/bedrock/1.19.20/protocol.json index 4ea4435a8..02c540fde 100644 --- a/data/bedrock/1.19.20/protocol.json +++ b/data/bedrock/1.19.20/protocol.json @@ -6808,72 +6808,80 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "3": "float", - "4": "value", - "5": "wildcard_int", - "6": "operator", - "7": "command_operator", - "8": "target", - "10": "wildcard_target", - "17": "file_path", - "23": "integer_range", - "38": "equipment_slots", - "39": "string", - "47": "block_position", - "48": "position", - "51": "message", - "53": "raw_text", - "57": "json", - "67": "block_states", - "70": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "3": "float", + "4": "value", + "5": "wildcard_int", + "6": "operator", + "7": "command_operator", + "8": "target", + "10": "wildcard_target", + "17": "file_path", + "23": "integer_range", + "38": "equipment_slots", + "39": "string", + "47": "block_position", + "48": "position", + "51": "message", + "53": "raw_text", + "57": "json", + "67": "block_states", + "70": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.19.21/proto.yml b/data/bedrock/1.19.21/proto.yml index 9e92922c1..43e01df19 100644 --- a/data/bedrock/1.19.21/proto.yml +++ b/data/bedrock/1.19.21/proto.yml @@ -1704,7 +1704,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1730,9 +1730,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) diff --git a/data/bedrock/1.19.21/protocol.json b/data/bedrock/1.19.21/protocol.json index 4ea4435a8..02c540fde 100644 --- a/data/bedrock/1.19.21/protocol.json +++ b/data/bedrock/1.19.21/protocol.json @@ -6808,72 +6808,80 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "3": "float", - "4": "value", - "5": "wildcard_int", - "6": "operator", - "7": "command_operator", - "8": "target", - "10": "wildcard_target", - "17": "file_path", - "23": "integer_range", - "38": "equipment_slots", - "39": "string", - "47": "block_position", - "48": "position", - "51": "message", - "53": "raw_text", - "57": "json", - "67": "block_states", - "70": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "3": "float", + "4": "value", + "5": "wildcard_int", + "6": "operator", + "7": "command_operator", + "8": "target", + "10": "wildcard_target", + "17": "file_path", + "23": "integer_range", + "38": "equipment_slots", + "39": "string", + "47": "block_position", + "48": "position", + "51": "message", + "53": "raw_text", + "57": "json", + "67": "block_states", + "70": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.19.30/proto.yml b/data/bedrock/1.19.30/proto.yml index 468c03703..09db8bbb8 100644 --- a/data/bedrock/1.19.30/proto.yml +++ b/data/bedrock/1.19.30/proto.yml @@ -1705,7 +1705,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1731,9 +1731,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) diff --git a/data/bedrock/1.19.30/protocol.json b/data/bedrock/1.19.30/protocol.json index 74ef15000..1cd0b3bbe 100644 --- a/data/bedrock/1.19.30/protocol.json +++ b/data/bedrock/1.19.30/protocol.json @@ -6908,72 +6908,80 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "3": "float", - "4": "value", - "5": "wildcard_int", - "6": "operator", - "7": "command_operator", - "8": "target", - "10": "wildcard_target", - "17": "file_path", - "23": "integer_range", - "38": "equipment_slots", - "39": "string", - "47": "block_position", - "48": "position", - "51": "message", - "53": "raw_text", - "57": "json", - "67": "block_states", - "70": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "3": "float", + "4": "value", + "5": "wildcard_int", + "6": "operator", + "7": "command_operator", + "8": "target", + "10": "wildcard_target", + "17": "file_path", + "23": "integer_range", + "38": "equipment_slots", + "39": "string", + "47": "block_position", + "48": "position", + "51": "message", + "53": "raw_text", + "57": "json", + "67": "block_states", + "70": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.19.40/proto.yml b/data/bedrock/1.19.40/proto.yml index 4266e98ed..3e306bcfa 100644 --- a/data/bedrock/1.19.40/proto.yml +++ b/data/bedrock/1.19.40/proto.yml @@ -1715,7 +1715,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1741,9 +1741,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) diff --git a/data/bedrock/1.19.40/protocol.json b/data/bedrock/1.19.40/protocol.json index 4cb152fa6..e4ec0a6ab 100644 --- a/data/bedrock/1.19.40/protocol.json +++ b/data/bedrock/1.19.40/protocol.json @@ -6980,72 +6980,80 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "3": "float", - "4": "value", - "5": "wildcard_int", - "6": "operator", - "7": "command_operator", - "8": "target", - "10": "wildcard_target", - "17": "file_path", - "23": "integer_range", - "38": "equipment_slots", - "39": "string", - "47": "block_position", - "48": "position", - "51": "message", - "53": "raw_text", - "57": "json", - "67": "block_states", - "70": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "3": "float", + "4": "value", + "5": "wildcard_int", + "6": "operator", + "7": "command_operator", + "8": "target", + "10": "wildcard_target", + "17": "file_path", + "23": "integer_range", + "38": "equipment_slots", + "39": "string", + "47": "block_position", + "48": "position", + "51": "message", + "53": "raw_text", + "57": "json", + "67": "block_states", + "70": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.19.50/proto.yml b/data/bedrock/1.19.50/proto.yml index c1d8ee2cb..1affa33d8 100644 --- a/data/bedrock/1.19.50/proto.yml +++ b/data/bedrock/1.19.50/proto.yml @@ -1715,7 +1715,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1741,9 +1741,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) @@ -3848,4 +3848,4 @@ packet_update_client_input_locks: locks: InputLockFlags # Position is the server's position of the client at the time the packet was sent. It is unclear what the exact # purpose of this field is. - position: vec3f \ No newline at end of file + position: vec3f diff --git a/data/bedrock/1.19.50/protocol.json b/data/bedrock/1.19.50/protocol.json index 7924405bd..f15e822d0 100644 --- a/data/bedrock/1.19.50/protocol.json +++ b/data/bedrock/1.19.50/protocol.json @@ -6996,72 +6996,80 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "3": "float", - "4": "value", - "5": "wildcard_int", - "6": "operator", - "7": "command_operator", - "8": "target", - "10": "wildcard_target", - "17": "file_path", - "23": "integer_range", - "38": "equipment_slots", - "39": "string", - "47": "block_position", - "48": "position", - "51": "message", - "53": "raw_text", - "57": "json", - "67": "block_states", - "70": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "3": "float", + "4": "value", + "5": "wildcard_int", + "6": "operator", + "7": "command_operator", + "8": "target", + "10": "wildcard_target", + "17": "file_path", + "23": "integer_range", + "38": "equipment_slots", + "39": "string", + "47": "block_position", + "48": "position", + "51": "message", + "53": "raw_text", + "57": "json", + "67": "block_states", + "70": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.19.60/proto.yml b/data/bedrock/1.19.60/proto.yml index bb6a3f80c..7507bd311 100644 --- a/data/bedrock/1.19.60/proto.yml +++ b/data/bedrock/1.19.60/proto.yml @@ -1717,7 +1717,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1743,9 +1743,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) @@ -3872,4 +3872,4 @@ packet_client_cheat_ability: command_permission: CommandPermissionLevel # Layers contains all ability layers and their potential values. This should at least have one entry, being the # base layer. - abilities: AbilityLayers[]u8 \ No newline at end of file + abilities: AbilityLayers[]u8 diff --git a/data/bedrock/1.19.60/protocol.json b/data/bedrock/1.19.60/protocol.json index 8cb17ebd0..e31b61157 100644 --- a/data/bedrock/1.19.60/protocol.json +++ b/data/bedrock/1.19.60/protocol.json @@ -7037,72 +7037,80 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "3": "float", - "4": "value", - "5": "wildcard_int", - "6": "operator", - "7": "command_operator", - "8": "target", - "10": "wildcard_target", - "17": "file_path", - "23": "integer_range", - "38": "equipment_slots", - "39": "string", - "47": "block_position", - "48": "position", - "51": "message", - "53": "raw_text", - "57": "json", - "67": "block_states", - "70": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "3": "float", + "4": "value", + "5": "wildcard_int", + "6": "operator", + "7": "command_operator", + "8": "target", + "10": "wildcard_target", + "17": "file_path", + "23": "integer_range", + "38": "equipment_slots", + "39": "string", + "47": "block_position", + "48": "position", + "51": "message", + "53": "raw_text", + "57": "json", + "67": "block_states", + "70": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.19.62/proto.yml b/data/bedrock/1.19.62/proto.yml index b7bf6a134..d2677e0c1 100644 --- a/data/bedrock/1.19.62/proto.yml +++ b/data/bedrock/1.19.62/proto.yml @@ -1717,7 +1717,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1743,9 +1743,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) @@ -3873,4 +3873,4 @@ packet_client_cheat_ability: command_permission: CommandPermissionLevel # Layers contains all ability layers and their potential values. This should at least have one entry, being the # base layer. - abilities: AbilityLayers[]u8 \ No newline at end of file + abilities: AbilityLayers[]u8 diff --git a/data/bedrock/1.19.62/protocol.json b/data/bedrock/1.19.62/protocol.json index 76b4502ae..ad84dae38 100644 --- a/data/bedrock/1.19.62/protocol.json +++ b/data/bedrock/1.19.62/protocol.json @@ -7041,72 +7041,80 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "3": "float", - "4": "value", - "5": "wildcard_int", - "6": "operator", - "7": "command_operator", - "8": "target", - "10": "wildcard_target", - "17": "file_path", - "23": "integer_range", - "38": "equipment_slots", - "39": "string", - "47": "block_position", - "48": "position", - "51": "message", - "53": "raw_text", - "57": "json", - "67": "block_states", - "70": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "3": "float", + "4": "value", + "5": "wildcard_int", + "6": "operator", + "7": "command_operator", + "8": "target", + "10": "wildcard_target", + "17": "file_path", + "23": "integer_range", + "38": "equipment_slots", + "39": "string", + "47": "block_position", + "48": "position", + "51": "message", + "53": "raw_text", + "57": "json", + "67": "block_states", + "70": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.19.70/proto.yml b/data/bedrock/1.19.70/proto.yml index b987f5e08..ba811fc6c 100644 --- a/data/bedrock/1.19.70/proto.yml +++ b/data/bedrock/1.19.70/proto.yml @@ -1717,7 +1717,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1743,9 +1743,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) diff --git a/data/bedrock/1.19.70/protocol.json b/data/bedrock/1.19.70/protocol.json index 70ed2780a..93eeffabb 100644 --- a/data/bedrock/1.19.70/protocol.json +++ b/data/bedrock/1.19.70/protocol.json @@ -7059,72 +7059,80 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "3": "float", - "4": "value", - "5": "wildcard_int", - "6": "operator", - "7": "command_operator", - "8": "target", - "10": "wildcard_target", - "17": "file_path", - "23": "integer_range", - "38": "equipment_slots", - "39": "string", - "47": "block_position", - "48": "position", - "51": "message", - "53": "raw_text", - "57": "json", - "67": "block_states", - "70": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "3": "float", + "4": "value", + "5": "wildcard_int", + "6": "operator", + "7": "command_operator", + "8": "target", + "10": "wildcard_target", + "17": "file_path", + "23": "integer_range", + "38": "equipment_slots", + "39": "string", + "47": "block_position", + "48": "position", + "51": "message", + "53": "raw_text", + "57": "json", + "67": "block_states", + "70": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.19.80/proto.yml b/data/bedrock/1.19.80/proto.yml index 819b3ddd7..1ba2f58db 100644 --- a/data/bedrock/1.19.80/proto.yml +++ b/data/bedrock/1.19.80/proto.yml @@ -1729,7 +1729,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1755,9 +1755,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) @@ -3942,4 +3942,4 @@ packet_open_sign: !id: 0x12f !bound: client position: BlockCoordinates - is_front: bool \ No newline at end of file + is_front: bool diff --git a/data/bedrock/1.19.80/protocol.json b/data/bedrock/1.19.80/protocol.json index e83fc408f..ea3d9b66f 100644 --- a/data/bedrock/1.19.80/protocol.json +++ b/data/bedrock/1.19.80/protocol.json @@ -7122,72 +7122,80 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "3": "float", - "4": "value", - "5": "wildcard_int", - "6": "operator", - "7": "command_operator", - "8": "target", - "10": "wildcard_target", - "17": "file_path", - "23": "integer_range", - "43": "equipment_slots", - "44": "string", - "52": "block_position", - "53": "position", - "55": "message", - "58": "raw_text", - "62": "json", - "71": "block_states", - "74": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "3": "float", + "4": "value", + "5": "wildcard_int", + "6": "operator", + "7": "command_operator", + "8": "target", + "10": "wildcard_target", + "17": "file_path", + "23": "integer_range", + "43": "equipment_slots", + "44": "string", + "52": "block_position", + "53": "position", + "55": "message", + "58": "raw_text", + "62": "json", + "71": "block_states", + "74": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.20.0/proto.yml b/data/bedrock/1.20.0/proto.yml index 7fc62bf30..80f502294 100644 --- a/data/bedrock/1.20.0/proto.yml +++ b/data/bedrock/1.20.0/proto.yml @@ -1734,7 +1734,7 @@ packet_available_commands: # The list of overload parameters for this command overloads: []varint # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1760,9 +1760,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...) @@ -3958,4 +3958,4 @@ packet_open_sign: !id: 0x12f !bound: client position: BlockCoordinates - is_front: bool \ No newline at end of file + is_front: bool diff --git a/data/bedrock/1.20.0/protocol.json b/data/bedrock/1.20.0/protocol.json index 537d574ad..e3da44fe9 100644 --- a/data/bedrock/1.20.0/protocol.json +++ b/data/bedrock/1.20.0/protocol.json @@ -7133,72 +7133,80 @@ { "countType": "varint", "type": [ - "array", - { - "countType": "varint", - "type": [ - "container", - [ - { - "name": "parameter_name", - "type": "string" - }, - { - "name": "value_type", - "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "1": "int", - "3": "float", - "4": "value", - "5": "wildcard_int", - "6": "operator", - "7": "command_operator", - "8": "target", - "10": "wildcard_target", - "17": "file_path", - "23": "integer_range", - "43": "equipment_slots", - "44": "string", - "52": "block_position", - "53": "position", - "55": "message", - "58": "raw_text", - "62": "json", - "71": "block_states", - "74": "command" - } - } - ] - }, + "container", + [ + { + "name": "parameters", + "type": [ + "array", { - "name": "enum_type", + "countType": "varint", "type": [ - "mapper", - { - "type": "lu16", - "mappings": { - "16": "valid", - "32": "enum", - "256": "suffixed", - "1024": "soft_enum" + "container", + [ + { + "name": "parameter_name", + "type": "string" + }, + { + "name": "value_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "1": "int", + "3": "float", + "4": "value", + "5": "wildcard_int", + "6": "operator", + "7": "command_operator", + "8": "target", + "10": "wildcard_target", + "17": "file_path", + "23": "integer_range", + "43": "equipment_slots", + "44": "string", + "52": "block_position", + "53": "position", + "55": "message", + "58": "raw_text", + "62": "json", + "71": "block_states", + "74": "command" + } + } + ] + }, + { + "name": "enum_type", + "type": [ + "mapper", + { + "type": "lu16", + "mappings": { + "16": "valid", + "48": "enum", + "256": "suffixed", + "1040": "soft_enum" + } + } + ] + }, + { + "name": "optional", + "type": "bool" + }, + { + "name": "options", + "type": "CommandFlags" } - } + ] ] - }, - { - "name": "optional", - "type": "bool" - }, - { - "name": "options", - "type": "CommandFlags" } ] - ] - } + } + ] ] } ] diff --git a/data/bedrock/1.20.10/protocol.json b/data/bedrock/1.20.10/protocol.json index 40b74147b..2e570fb05 100644 --- a/data/bedrock/1.20.10/protocol.json +++ b/data/bedrock/1.20.10/protocol.json @@ -7206,7 +7206,7 @@ "type": "bool" }, { - "name": "__4265", + "name": "parameters", "type": [ "array", { @@ -7256,9 +7256,9 @@ "type": "lu16", "mappings": { "16": "valid", - "32": "enum", + "48": "enum", "256": "suffixed", - "1024": "soft_enum" + "1040": "soft_enum" } } ] diff --git a/data/bedrock/latest/proto.yml b/data/bedrock/latest/proto.yml index 5a4a78f6e..c5f74bd0a 100644 --- a/data/bedrock/latest/proto.yml +++ b/data/bedrock/latest/proto.yml @@ -1756,7 +1756,7 @@ packet_available_commands: # chaining determines if the parameters use chained subcommands or not. chaining: bool # Each of the parameters gets an array of posible overloads - _: []varint + parameters: []varint # The name of the parameter shown to the user (the `amount` in `/xp `) parameter_name: string value_type: lu16 => @@ -1782,9 +1782,9 @@ packet_available_commands: # In MC, this + prior field are combined to one 32bit bitfield enum_type: lu16 => 0x10: valid - 0x20: enum + 0x30: enum 0x100: suffixed - 0x400: soft_enum + 0x410: soft_enum # Is this parameter required? optional: bool # Additinal options for this command (thanks macroshaft...)