MCBE
OverviewPacketsAvailableCommands
ID 0x4C · 76Server → ClientUI

AvailableCommands

The command tree the client renders for autocomplete: enums, soft enums, constraints and per-command overloads with argument types.

available-commands.bin
struct AvailableCommands {
  varuint32 [] · string[]                      EnumValues;
  varuint32 [] · string[]                      ChainedSubcommandValues;
  varuint32 [] · string[]                      Postfixes;
  varuint32 [] · EnumData[]                    Enums;
  varuint32 [] · ChainedSubcommandData[]       ChainedSubcommands;
  varuint32 [] · CommandData[]                 Commands;
  varuint32 [] · SoftEnumData[]                SoftEnums;
  varuint32 [] · ConstrainedValueData[]        Constraints;
}

Structure

FieldTypeDescription
Enum Valuesvaruint32 count + string[]Length-prefixed sequence.
Chained Subcommand Valuesvaruint32 count + string[]Length-prefixed sequence.
Postfixesvaruint32 count + string[]Length-prefixed sequence.
Enumsvaruint32 count + EnumData[]Length-prefixed sequence.
Chained Subcommandsvaruint32 count + ChainedSubcommandData[]Length-prefixed sequence.
Commandsvaruint32 count + CommandData[]Length-prefixed sequence.
Soft Enumsvaruint32 count + SoftEnumData[]Length-prefixed sequence.
Constraintsvaruint32 count + ConstrainedValueData[]Length-prefixed sequence.

Structure of EnumData

FieldTypeDescription
Namestring
Valuesvaruint32 count + uint32[]Length-prefixed sequence.

Structure of ChainedSubcommandData

FieldTypeDescription
Namestring
Valuesvaruint32 count + ChainedSubcommandRelationship[]Length-prefixed sequence.

Structure of CommandData

FieldTypeDescription
Namestring
Descriptionstring
Flagsuint16 (LE)
Permissionstring
Alias Enumint32 (LE)
Chained Subcommand Indexesvaruint32 count + uint32[]Length-prefixed sequence.
Overloadsvaruint32 count + OverloadData[]Length-prefixed sequence.

Structure of SoftEnumData

FieldTypeDescription
Namestring
Valuesvaruint32 count + string[]Length-prefixed sequence.

Structure of ConstrainedValueData

FieldTypeDescription
Enum Value Symboluint32 (LE)
Enum Symboluint32 (LE)
Constraintsvaruint32 count + uint8[]Length-prefixed sequence.

Structure of ChainedSubcommandRelationship

FieldTypeDescription
Sub Command First Valuevaruint32
Sub Command Second Valuevaruint32

Structure of OverloadData

FieldTypeDescription
Is Chainingbool
Paramsvaruint32 count + ParamData[]Length-prefixed sequence.

Structure of ParamData

FieldTypeDescription
Namestring
Parse Symboluint32 (LE)
Optionalbool
Param Optionsuint8

Notes

  • Sent on join and whenever permissions or the command set change.
  • Argument types include int/float/value/wildcard/operator targets with their own enum suffixes.