Command Block Command (Expression) — Skript
Addon: Skript · Category: Expression · Since: 2.10
Syntax
[the] [command[ ]block] command of %blocks/entities%Description
Gets or sets the command associated with a command block or minecart with command block.
Examples
send command of {_block}
set command of {_cmdMinecart} to "say asdf"