Skip to content

Instantly share code, notes, and snippets.

@jocopa3
Last active August 11, 2024 01:04
Show Gist options
  • Save jocopa3/5f718f4198f1ea91a37e3a9da468675c to your computer and use it in GitHub Desktop.
Save jocopa3/5f718f4198f1ea91a37e3a9da468675c to your computer and use it in GitHub Desktop.
// To subscribe to an event, pass this JSON text to the client through the WebSocket:
{
"body": {
"eventName": "NameOfEvent" // Replace with an event name listed below
},
"header": {
"requestId": "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxx", // UUID
"messagePurpose": "subscribe",
"version": 1, // Protocol version (currently 1 as-of 1.0.2)
"messageType": "commandRequest"
}
}
====== Event Names ======
Note: I haven't tested many of these. Most seem to work, but a few may not.
AdditionalContentLoaded
AgentCommand
AgentCreated
ApiInit
AppPaused
AppResumed
AppSuspended
AwardAchievement
BlockBroken
BlockPlaced
BoardTextUpdated
BossKilled
CameraUsed
CauldronUsed
ChunkChanged - Does not work in 1.0.2
ChunkLoaded - Does not work in 1.0.2
ChunkUnloaded - Does not work in 1.0.2
ConfigurationChanged
ConnectionFailed
CraftingSessionCompleted
EndOfDay
EntitySpawned
FileTransmissionCancelled
FileTransmissionCompleted
FileTransmissionStarted
FirstTimeClientOpen
FocusGained
FocusLost
GameSessionComplete
GameSessionStart
HardwareInfo
HasNewContent
ItemAcquired
ItemCrafted
ItemDestroyed
ItemDropped
ItemEnchanted
ItemSmelted
ItemUsed
JoinCanceled
JukeboxUsed
LicenseCensus
MascotCreated
MenuShown
MobInteracted
MobKilled
MultiplayerConnectionStateChanged
MultiplayerRoundEnd
MultiplayerRoundStart
NpcPropertiesUpdated
OptionsUpdated
performanceMetrics
PackImportStage
PlayerBounced
PlayerDied
PlayerJoin
PlayerLeave
PlayerMessage
PlayerTeleported
PlayerTransform
PlayerTravelled
PortalBuilt
PortalUsed
PortfolioExported
PotionBrewed
PurchaseAttempt
PurchaseResolved
RegionalPopup
RespondedToAcceptContent
ScreenChanged
ScreenHeartbeat
SignInToEdu
SignInToXboxLive
SignOutOfXboxLive
SpecialMobBuilt
StartClient
StartWorld
TextToSpeechToggled
UgcDownloadCompleted
UgcDownloadStarted
UploadSkin
VehicleExited
WorldExported
WorldFilesListed
WorldGenerated
WorldLoaded
WorldUnloaded
@vanistillhere
Copy link

How did you find these event names? Is it in the install directory or something (Windows 10)?

i think it's a packet dump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment