Skip to main content

Interface: ScriptEventReceiveEvent

Data delivered for one received /scriptevent message.

Properties

dimension

readonly dimension: Dimension

Dimension in which the message source was resolved.


id

readonly id: string

Explicit author-chosen <namespace>:<path> message ID.


message

readonly message: string

Payload text; the command supplies an empty string when it is omitted.


position

readonly position: Vector3

World-space source position.


sourceBlock

readonly sourceBlock: Block | null

Live sending block, or null for other or unavailable sources.


sourceEntity

readonly sourceEntity: Entity | null

Live sending entity, or null for other or unavailable sources.


sourceEntityId

readonly sourceEntityId: string | null

Stable UUID of the sending entity, even when its live facade is unavailable.


sourceKey

readonly sourceKey: string | null

Stable source key when available.


sourceType

readonly sourceType: ScriptEventSource

Kind of Minecraft source that sent the message.