For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server/classes/ScriptEventCommandMessageAfterEvent.md.

Class: ScriptEventCommandMessageAfterEvent

event

Beta

返回关于 /scriptevent 命令调用的附加数据。

Returns additional data about a /scriptevent command invocation.

Properties

id

readonly id: string

Beta

Remarks

此 ScriptEvent 命令消息的标识符。

Identifier of this ScriptEvent command message.


initiator?

readonly optional initiator?: Entity

Beta

Remarks

如果此命令是通过 NPC 发起的,则返回发起 NPC 对话的实体。

If this command was initiated via an NPC, returns the entity that initiated the NPC dialogue.


message

readonly message: string

Beta

Remarks

通过脚本事件命令传递的可选附加数据。

Optional additional data passed in with the script event command.


sourceBlock?

readonly optional sourceBlock?: Block

Beta

Remarks

如果此命令是通过方块(如命令方块)触发的,则为源方块。

Source block if this command was triggered via a block (e.g., a commandblock.)


sourceEntity?

readonly optional sourceEntity?: Entity

Beta

Remarks

如果此命令是由实体(如 NPC)触发的,则为源实体。

Source entity if this command was triggered by an entity (e.g., a NPC).


sourceType

readonly sourceType: ScriptEventSource

Beta

Remarks

返回触发此命令的源类型。

Returns the type of source that fired this command.

同领域相关