MCBE
OverviewPacketsModalFormResponse
ID 0x65 · 101Client → ServerUI

ModalFormResponse

Client's answer to a ModalFormRequest: form id plus button index, toggle/float/slider values or raw input JSON.

modal-form-response.bin
struct ModalFormResponse {
  varuint32                                    FormId;
  optional byte + string                       JsonResponse;
  optional byte + ModalFormCancelReason        FormCancelReason;
}

Structure

FieldTypeDescription
Form Idvaruint32
Json Responseoptional byte + stringPresence flag on the wire; value omitted when absent.
Form Cancel Reasonoptional byte + ModalFormCancelReasonPresence flag on the wire; value omitted when absent.

Notes

  • A cancel flag (0x01) instead of a response payload means the form was closed.