undefined
可以限制在指定方块被检测到时才执行命令:
execute <origin: target> <position: x y z> detect <detectPos: x y z> <block: Block> <data: int> <command: command>
新语法树状图
/execute ...
… align <axes: string> <chainedCommand: ExecuteChainedOption_0>
… anchored <eyes|feet> <chainedCommand: ExecuteChainedOption_0>
… as <origin: target> <chainedCommand: ExecuteChainedOption_0>
… at <origin: target> <chainedCommand: ExecuteChainedOption_0>
… facing ...
… <position: x y z> <chainedCommand: ExecuteChainedOption_0>
… entity <origin: target> <eyes|feet> <chainedCommand: ExecuteChainedOption_0>
… in <dimension: Dimension> <chainedCommand: ExecuteChainedOption_0>
… positioned ...
… <position: x y z> <chainedCommand: ExecuteChainedOption_0>
… as <origin: target> <chainedCommand: ExecuteChainedOption_0>
… rotated ...
… <yaw: value> <pitch: value> <chainedCommand: ExecuteChainedOption_0>
… as <origin: target> <chainedCommand: ExecuteChainedOption_0>
… run <command: command>
… <subcommand: Option_If_Unless> ...
… block <position: x y z> <block: Block> ... [lbk]chainedCommand: ExecuteChainedOption_0[rbk]
… <blockStates: block states> [lbk]chainedCommand: ExecuteChainedOption_0[rbk]
… <data: int> [lbk]chainedCommand: ExecuteChainedOption_0[rbk]
… blocks <begin: x y z> <end: x y z> <destination: x y z> <scan mode: BlocksScanMode> [lbk]chainedCommand: ExecuteChainedOption_0[rbk]
… entity <target: target> [lbk]chainedCommand: ExecuteChainedOption_0[rbk]
… score <target: target> <objective: string> ...
… <operation: compare operator> <source: target> <objective: string> [lbk]chainedCommand: ExecuteChainedOption_0[rbk]
… matches <range: integer range> [lbk]chainedCommand: ExecuteChainedOption_0[rbk]
可以限制在指定方块被检测到时才执行命令:
execute <origin: target> <position: x y z> detect <detectPos: x y z> <block: Block> <data: int> <command: command>
新语法树状图
/execute ...
… align <axes: string> <chainedCommand: ExecuteChainedOption_0>
… anchored <eyes|feet> <chainedCommand: ExecuteChainedOption_0>
… as <origin: target> <chainedCommand: ExecuteChainedOption_0>
… at <origin: target> <chainedCommand: ExecuteChainedOption_0>
… facing ...
… <position: x y z> <chainedCommand: ExecuteChainedOption_0>
… entity <origin: target> <eyes|feet> <chainedCommand: ExecuteChainedOption_0>
… in <dimension: Dimension> <chainedCommand: ExecuteChainedOption_0>
… positioned ...
… <position: x y z> <chainedCommand: ExecuteChainedOption_0>
… as <origin: target> <chainedCommand: ExecuteChainedOption_0>
… rotated ...
… <yaw: value> <pitch: value> <chainedCommand: ExecuteChainedOption_0>
… as <origin: target> <chainedCommand: ExecuteChainedOption_0>
… run <command: command>
… <subcommand: Option_If_Unless> ...
… block <position: x y z> <block: Block> ... [lbk]chainedCommand: ExecuteChainedOption_0[rbk]
… <blockStates: block states> [lbk]chainedCommand: ExecuteChainedOption_0[rbk]
… <data: int> [lbk]chainedCommand: ExecuteChainedOption_0[rbk]
… blocks <begin: x y z> <end: x y z> <destination: x y z> <scan mode: BlocksScanMode> [lbk]chainedCommand: ExecuteChainedOption_0[rbk]
… entity <target: target> [lbk]chainedCommand: ExecuteChainedOption_0[rbk]
… score <target: target> <objective: string> ...
… <operation: compare operator> <source: target> <objective: string> [lbk]chainedCommand: ExecuteChainedOption_0[rbk]
… matches <range: integer range> [lbk]chainedCommand: ExecuteChainedOption_0[rbk]