Zevn
本帖最后由 Zevn 于 2018-12-8 20:53 编辑

当一个function里的任意一条命令成功后执行一次say 1 ,可以做到吗?

Zevn
本帖最后由 Zevn 于 2018-12-8 20:54 编辑

手滑发出来了
  等等  我马上编辑好
    版本:最新版本

SPGoding
scoreboard objectives add tmp dummy


execute store success score $success1 tmp run <command1...>
execute store success score $success2 tmp run <command2...>
scoreboard players operation $success1 tmp > $success2 tmp
execute if score $success1 tmp matches 1.. run say 1