Wiki 9Minecraft Wiki 9Minecraft

Payloads

Minecraft Legends

BSharpReferenceSheet
Official docs

Payloads are supported for all listeners and snippets. It allows you to past contextual information at the time of registering the listener, to when the snippet is executed.

  • Listeners can pass one of each payload type via payloadString, payloadInt, payloadFloat, payloadEntities
  • Snippets can receive the payload as the last argument of the snippet via payload.string, payload.int, payload.float, payload.entities
- You can also use payload.ownerVillageId which will be defined if the listener defined ownerVillageId. (This is the preferred way of getting the village in a snippet when possible)