MCBE
OverviewPacketsScriptCustomEvent
ID 0x75 · 117BothScripting

ScriptCustomEvent

Lets scripts on the client and server exchange a named event with JSON payload.

script-custom-event.bin
struct ScriptCustomEvent {
  string                                       EventName;
  byte[]                                       EventData;
}

Structure

FieldTypeDescription
Event NamestringName used by both sides to identify the event.
Event Databyte[]Typically a JSON encoded string.

Notes

  • Deprecated since 1.20.10 — use ScriptMessage (177) instead.