Modifier

Partager via


CustomCommandOrigin Class

Details about the origins of the command.

Properties

initiator

read-only initiator?: Entity;

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

Type: Entity

sourceBlock

read-only sourceBlock?: Block;

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

Type: Block

sourceEntity

read-only sourceEntity?: Entity;

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

Type: Entity

sourceType

read-only sourceType: CustomCommandSource;

Returns the type of source that fired this command.

Type: CustomCommandSource